From 3a803b95196738e8727fe7d6795a1ce535d4c39a Mon Sep 17 00:00:00 2001 From: chenruilong Date: Sun, 29 Jan 2023 15:56:44 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20opendb-sms-task=20?= =?UTF-8?q?=E8=A1=A8=E7=9F=AD=E4=BF=A1=E6=8E=A5=E6=94=B6=E8=80=85=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=20condition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-sms-task/collection.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/collection/opendb-sms-task/collection.json b/collection/opendb-sms-task/collection.json index a789dc7..2db218c 100644 --- a/collection/opendb-sms-task/collection.json +++ b/collection/opendb-sms-task/collection.json @@ -42,15 +42,19 @@ "properties": { "all": { "bsonType": "bool", - "description": "全部用户发送" + "description": "全部用户发送;字段废弃,由 condition 替代" }, "type": { "bsonType": "string", - "description": "to.all=true时用来区分发送类型, 可选值 user | userTags" + "description": "可选值 user | userTags" }, "receiver": { "bsonType": "array", - "description": "用户ID's \/ 用户标签ID's" + "description": "用户ID's \/ 用户标签ID's;指定id发送" + }, + "condition": { + "bsonType": "object", + "description": "根据条件发送,例如给所有人发送" } } }, @@ -76,4 +80,4 @@ } }, "index": [] -} \ No newline at end of file +} From dad224e9f8ee84a3f154d86c46416b3df41b7e6a Mon Sep 17 00:00:00 2001 From: VK <370725567@qq.com> Date: Tue, 7 Feb 2023 12:11:42 +0800 Subject: [PATCH 2/5] add uni-stat-error-source-map --- .../uni-stat-error-source-map/collection.json | 69 +++++++++++++++++++ .../uni-stat-error-source-map/package.json | 13 ++++ database/opendb-admin/db_init.json | 1 + database/uni-stat/db_init.json | 1 + 4 files changed, 84 insertions(+) create mode 100644 collection/uni-stat-error-source-map/collection.json create mode 100644 collection/uni-stat-error-source-map/package.json diff --git a/collection/uni-stat-error-source-map/collection.json b/collection/uni-stat-error-source-map/collection.json new file mode 100644 index 0000000..f98ec84 --- /dev/null +++ b/collection/uni-stat-error-source-map/collection.json @@ -0,0 +1,69 @@ +{ + "schema": { + "bsonType": "object", + "description": "存储sourceMap文件资源地址", + "required": [], + "permission": { + "read": false, + "create": false, + "update": false, + "delete": false + }, + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "appid": { + "bsonType": "string", + "description": "应用ID" + }, + "uni_platform": { + "title": "应用平台", + "bsonType": "string", + "description": "uni客户端平台,如:web、mp-weixin、mp-alipay、app等", + "trim": "both" + }, + "version": { + "bsonType": "string", + "description": "客户端上报的应用版本号" + }, + "file_id": { + "bsonType": "string", + "description": "fileID" + }, + "url": { + "bsonType": "string", + "description": "文件外网url路径" + }, + "name": { + "bsonType": "string", + "description": "文件名" + }, + "size": { + "bsonType": "int", + "description": "文件大小" + }, + "cloud_path": { + "bsonType": "string", + "description": "云端路径,通过该值识别是否是同一个文件" + }, + "base": { + "bsonType": "string", + "description": "基础路径" + }, + "create_time": { + "bsonType": "timestamp", + "description": "上传时间", + "forceDefaultValue": { + "$env": "now" + } + } + } + }, + "index": [ + {"IndexName": "appid","MgoKeySchema": {"MgoIndexKeys": [{"Name": "appid","Direction": "1"}],"MgoIsUnique": false}}, + {"IndexName": "base","MgoKeySchema": {"MgoIndexKeys": [{"Name": "base","Direction": "1"}],"MgoIsUnique": false}}, + {"IndexName": "cloud_path","MgoKeySchema": {"MgoIndexKeys": [{"Name": "cloud_path","Direction": "1"}],"MgoIsUnique": false}}, + {"IndexName": "create_time","MgoKeySchema": {"MgoIndexKeys": [{"Name": "create_time","Direction": "1"}],"MgoIsUnique": false}} + ] +} diff --git a/collection/uni-stat-error-source-map/package.json b/collection/uni-stat-error-source-map/package.json new file mode 100644 index 0000000..18c160d --- /dev/null +++ b/collection/uni-stat-error-source-map/package.json @@ -0,0 +1,13 @@ +{ + "name": "@opendb/uni-stat-error-source-map", + "version": "0.0.1", + "description": "uni-stat-error-source-map", + "keywords": ["存储sourceMap文件资源地址"], + "opendb": { + "title": "存储sourceMap文件资源地址", + "type": "collection", + "contributors": [ + { "name": "DCloud", "email": "", "homepage": "https://gitee.com/dcloud/opendb" } + ] + } +} diff --git a/database/opendb-admin/db_init.json b/database/opendb-admin/db_init.json index db38ed0..14270f8 100644 --- a/database/opendb-admin/db_init.json +++ b/database/opendb-admin/db_init.json @@ -12,6 +12,7 @@ "uni-stat-app-platforms": {}, "uni-stat-error-logs": {}, "uni-stat-error-result": {}, + "uni-stat-error-source-map": {}, "uni-stat-event-logs": {}, "uni-stat-event-result": {}, "uni-stat-events": {}, diff --git a/database/uni-stat/db_init.json b/database/uni-stat/db_init.json index 51cebd3..ee0b772 100644 --- a/database/uni-stat/db_init.json +++ b/database/uni-stat/db_init.json @@ -7,6 +7,7 @@ "uni-stat-app-versions": {}, "uni-stat-error-logs": {}, "uni-stat-error-result": {}, + "uni-stat-error-source-map": {}, "uni-stat-event-logs": {}, "uni-stat-event-result": {}, "uni-stat-events": {}, From f0b21acd2fdfa911120464f3c60bddec917f97c8 Mon Sep 17 00:00:00 2001 From: VK <370725567@qq.com> Date: Wed, 8 Feb 2023 18:18:44 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=20db=5Finit.jso?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/opendb-admin/db_init.json | 14 +++++----- database/uni-stat/db_init.json | 42 +++++++++++++++--------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/database/opendb-admin/db_init.json b/database/opendb-admin/db_init.json index 14270f8..72cd25c 100644 --- a/database/opendb-admin/db_init.json +++ b/database/opendb-admin/db_init.json @@ -1,10 +1,10 @@ { "opendb-admin-menus": {}, - "opendb-admin-log":{}, - "opendb-app-list":{}, - "opendb-department":{}, - "opendb-device":{}, - "opendb-app-versions":{}, + "opendb-admin-log": {}, + "opendb-app-list": {}, + "opendb-department": {}, + "opendb-device": {}, + "opendb-app-versions": {}, "uni-stat-active-devices": {}, "uni-stat-active-users": {}, "uni-stat-app-channels": {}, @@ -12,7 +12,7 @@ "uni-stat-app-platforms": {}, "uni-stat-error-logs": {}, "uni-stat-error-result": {}, - "uni-stat-error-source-map": {}, + "uni-stat-error-source-map": {}, "uni-stat-event-logs": {}, "uni-stat-event-result": {}, "uni-stat-events": {}, @@ -26,7 +26,7 @@ "uni-stat-session-logs": {}, "uni-stat-share-logs": {}, "uni-stat-user-session-logs": {}, - "uni-stat-pay-result":{}, + "uni-stat-pay-result": {}, "uni-batch-sms-template": {}, "uni-batch-sms-task": {}, "uni-batch-sms-result": {} diff --git a/database/uni-stat/db_init.json b/database/uni-stat/db_init.json index ee0b772..10ccf38 100644 --- a/database/uni-stat/db_init.json +++ b/database/uni-stat/db_init.json @@ -1,24 +1,24 @@ { - "uni-stat-active-devices": {}, - "uni-stat-active-users": {}, - "uni-stat-app-channels": {}, - "uni-stat-app-crash-logs": {}, - "uni-stat-app-platforms": {}, - "uni-stat-app-versions": {}, - "uni-stat-error-logs": {}, - "uni-stat-error-result": {}, + "uni-stat-active-devices": {}, + "uni-stat-active-users": {}, + "uni-stat-app-channels": {}, + "uni-stat-app-crash-logs": {}, + "uni-stat-app-platforms": {}, + "uni-stat-app-versions": {}, + "uni-stat-error-logs": {}, + "uni-stat-error-result": {}, "uni-stat-error-source-map": {}, - "uni-stat-event-logs": {}, - "uni-stat-event-result": {}, - "uni-stat-events": {}, - "uni-stat-loyalty-result": {}, - "uni-stat-mp-scenes": {}, - "uni-stat-page-logs": {}, - "uni-stat-page-result": {}, - "uni-stat-pages": {}, - "uni-stat-result": {}, - "uni-stat-run-errors": {}, - "uni-stat-session-logs": {}, - "uni-stat-share-logs": {}, - "uni-stat-user-session-logs": {} + "uni-stat-event-logs": {}, + "uni-stat-event-result": {}, + "uni-stat-events": {}, + "uni-stat-loyalty-result": {}, + "uni-stat-mp-scenes": {}, + "uni-stat-page-logs": {}, + "uni-stat-page-result": {}, + "uni-stat-pages": {}, + "uni-stat-result": {}, + "uni-stat-run-errors": {}, + "uni-stat-session-logs": {}, + "uni-stat-share-logs": {}, + "uni-stat-user-session-logs": {} } From 181561be1ae7a2a80af289ab8cd6bbec7a6e2ee0 Mon Sep 17 00:00:00 2001 From: chenruilong Date: Fri, 10 Feb 2023 14:48:54 +0800 Subject: [PATCH 4/5] =?UTF-8?q?feat:=20uni-id-users=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E5=B9=B3=E5=8F=B0=E8=BA=AB=E4=BB=BD=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=AD=97=E6=AE=B5(identities)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/uni-id-users/collection.json | 8 ++++++++ collection/uni-id-users/package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/collection/uni-id-users/collection.json b/collection/uni-id-users/collection.json index 1685e93..bf8faa3 100644 --- a/collection/uni-id-users/collection.json +++ b/collection/uni-id-users/collection.json @@ -441,6 +441,14 @@ "my_invite_code": { "bsonType": "string", "description": "用户自身邀请码" + }, + "identities": { + "bsonType": "array", + "description": "三方平台身份信息;一个对象代表一个身份,参数支持: provider 身份源, userInfo 三方用户信息, openid 三方openid, unionid 三方unionid, uid 三方uid", + "permission": { + "read": "'READ_UNI_ID_USERS' in auth.permission", + "write": "'CREATE_UNI_ID_USERS' in auth.permission || 'UPDATE_UNI_ID_USERS' in auth.permission" + } } } }, diff --git a/collection/uni-id-users/package.json b/collection/uni-id-users/package.json index aeccf69..8cd0ba7 100644 --- a/collection/uni-id-users/package.json +++ b/collection/uni-id-users/package.json @@ -1,6 +1,6 @@ { "name": "@opendb/uni-id-users", - "version": "1.0.2", + "version": "1.0.3", "description": "uni-id-users", "keywords": ["uni-id", "用户管理", "登录", "注册"], "opendb": { From 599c47b4abd290d652c9ff12ea8731244726d337 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 13 Feb 2023 10:42:45 +0800 Subject: [PATCH 5/5] fix: app-versions store_list --- .../opendb-app-versions/collection.json | 39 +++++++++++++++++-- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/collection/opendb-app-versions/collection.json b/collection/opendb-app-versions/collection.json index a263c5e..bdc976d 100644 --- a/collection/opendb-app-versions/collection.json +++ b/collection/opendb-app-versions/collection.json @@ -81,8 +81,8 @@ }, "uni_platform": { "bsonType": "string", - "description": "uni平台信息,如:mp-weixin/web/app", - "label": "平台" + "description": "uni平台信息,如:mp-weixin/web/ios/android", + "label": "uni 平台" }, "version": { "bsonType": "string", @@ -96,8 +96,8 @@ }, "url": { "bsonType": "string", - "description": "可下载安装包地址", - "label": "包地址" + "description": "可下载或跳转的链接", + "label": "链接" }, "stable_publish": { "bsonType": "bool", @@ -129,6 +129,37 @@ "create_env": { "bsonType": "string", "description": "创建来源,uni-stat:uni统计自动创建,upgrade-center:升级中心管理员创建" + }, + "store_list": { + "bsonType": "array", + "description": "发布的应用市场", + "label": "应用市场", + "properties": { + "id": { + "bsonType": "string", + "description": "应用id,自动生成", + "label": "id" + }, + "name": { + "bsonType": "string", + "description": "应用名称", + "label": "应用名称" + }, + "scheme": { + "bsonType": "string", + "description": "应用 scheme", + "label": "应用 scheme" + }, + "enable": { + "bsonType": "bool", + "description": "是否启用" + }, + "priority": { + "bsonType": "int", + "description": "按照从大到小排序", + "label": "优先级" + } + } } }, "version": "0.0.1"