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" 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 +} 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": { 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..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,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": {}, @@ -25,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 51cebd3..10ccf38 100644 --- a/database/uni-stat/db_init.json +++ b/database/uni-stat/db_init.json @@ -1,23 +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-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-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": {} }