@social-data/social-neuron-subscription 1.0.0-beta.27 → 1.0.0-beta.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.json
CHANGED
|
@@ -205,8 +205,9 @@
|
|
|
205
205
|
"additionalProperties": false,
|
|
206
206
|
"properties": {
|
|
207
207
|
"platform": {
|
|
208
|
-
"description": "
|
|
208
|
+
"description": "具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合",
|
|
209
209
|
"minLength": 1,
|
|
210
|
+
"pattern": "^[^*]+$",
|
|
210
211
|
"title": "Platform",
|
|
211
212
|
"type": "string"
|
|
212
213
|
},
|
|
@@ -511,8 +512,9 @@
|
|
|
511
512
|
"additionalProperties": false,
|
|
512
513
|
"properties": {
|
|
513
514
|
"platform": {
|
|
514
|
-
"description": "
|
|
515
|
+
"description": "具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合",
|
|
515
516
|
"minLength": 1,
|
|
517
|
+
"pattern": "^[^*]+$",
|
|
516
518
|
"title": "Platform",
|
|
517
519
|
"type": "string"
|
|
518
520
|
},
|
|
@@ -1007,8 +1009,9 @@
|
|
|
1007
1009
|
"additionalProperties": false,
|
|
1008
1010
|
"properties": {
|
|
1009
1011
|
"platform": {
|
|
1010
|
-
"description": "
|
|
1012
|
+
"description": "具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合",
|
|
1011
1013
|
"minLength": 1,
|
|
1014
|
+
"pattern": "^[^*]+$",
|
|
1012
1015
|
"title": "Platform",
|
|
1013
1016
|
"type": "string"
|
|
1014
1017
|
},
|
|
@@ -1823,8 +1826,9 @@
|
|
|
1823
1826
|
"additionalProperties": false,
|
|
1824
1827
|
"properties": {
|
|
1825
1828
|
"platform": {
|
|
1826
|
-
"description": "
|
|
1829
|
+
"description": "具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合",
|
|
1827
1830
|
"minLength": 1,
|
|
1831
|
+
"pattern": "^[^*]+$",
|
|
1828
1832
|
"title": "Platform",
|
|
1829
1833
|
"type": "string"
|
|
1830
1834
|
},
|
|
@@ -2196,8 +2200,9 @@
|
|
|
2196
2200
|
"additionalProperties": false,
|
|
2197
2201
|
"properties": {
|
|
2198
2202
|
"platform": {
|
|
2199
|
-
"description": "
|
|
2203
|
+
"description": "具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合",
|
|
2200
2204
|
"minLength": 1,
|
|
2205
|
+
"pattern": "^[^*]+$",
|
|
2201
2206
|
"title": "Platform",
|
|
2202
2207
|
"type": "string"
|
|
2203
2208
|
},
|
|
@@ -2618,8 +2623,9 @@
|
|
|
2618
2623
|
"additionalProperties": false,
|
|
2619
2624
|
"properties": {
|
|
2620
2625
|
"platform": {
|
|
2621
|
-
"description": "
|
|
2626
|
+
"description": "具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合",
|
|
2622
2627
|
"minLength": 1,
|
|
2628
|
+
"pattern": "^[^*]+$",
|
|
2623
2629
|
"title": "Platform",
|
|
2624
2630
|
"type": "string"
|
|
2625
2631
|
},
|
|
@@ -3133,8 +3139,9 @@
|
|
|
3133
3139
|
"additionalProperties": false,
|
|
3134
3140
|
"properties": {
|
|
3135
3141
|
"platform": {
|
|
3136
|
-
"description": "
|
|
3142
|
+
"description": "具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合",
|
|
3137
3143
|
"minLength": 1,
|
|
3144
|
+
"pattern": "^[^*]+$",
|
|
3138
3145
|
"title": "Platform",
|
|
3139
3146
|
"type": "string"
|
|
3140
3147
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@social-data/social-neuron-subscription",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.29",
|
|
4
4
|
"description": "Social Neuron subscription 能力 CLI —— 一能力一命令(social-neuron-subscription),薄客户端直达 /subscription/{op}。",
|
|
5
5
|
"bin": {
|
|
6
6
|
"social-neuron-subscription": "bin/cli.js"
|
|
@@ -13,6 +13,8 @@ metadata:
|
|
|
13
13
|
> 命令为一能力一命令:`social-neuron-subscription <action> --flags`(无子命令层)。
|
|
14
14
|
> **取值写法**:标量直接写(`--size 20`);**数组和对象一律写成一个 JSON 串**,与 MCP/HTTP 入参完全同形:`--platforms '["video"]'`、`--where '{...}'`。数组**不能**用逗号分隔,单个取值也要写成数组(`'["video"]'` 而不是 `video`)。
|
|
15
15
|
|
|
16
|
+
参与索引定位的 platform 禁止包含 `*`(包括前后缀通配),必须使用 list-platforms 返回的具体 name_en。全平台订阅须显式列出全部平台的 platform_site 组合;每个平台的 sites=["*"] 仍表示该平台全部站点。
|
|
17
|
+
|
|
16
18
|
系统字段 `_id`(唯一ID)始终自动输出;`fields` 仅填写 selectable=true 的业务字段,
|
|
17
19
|
禁止填写 `_id`,也不能用 `_id` 作 top 排序。
|
|
18
20
|
|
|
@@ -503,7 +505,7 @@ social-neuron-subscription job-update --job-id 1001 --active false -y
|
|
|
503
505
|
|
|
504
506
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
505
507
|
|---|---|---|---|---|
|
|
506
|
-
| platform | string | 是 | minLen=1 |
|
|
508
|
+
| platform | string | 是 | minLen=1 | 具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合 |
|
|
507
509
|
| sites | list[string] | 是 | minItems=1, minLen=1 | 站点编码数组,取 list_sites 的 value;["*"] 表示该平台全部站点,不可混用 |
|
|
508
510
|
|
|
509
511
|
**对象 `SftpTarget`** —— sftp(本期):把导出文件上传到 SFTP 远端目录。
|
|
@@ -557,7 +559,7 @@ social-neuron-subscription job-update --job-id 1001 --active false -y
|
|
|
557
559
|
|
|
558
560
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
559
561
|
|---|---|---|---|---|
|
|
560
|
-
| platform | string | 是 | minLen=1 |
|
|
562
|
+
| platform | string | 是 | minLen=1 | 具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合 |
|
|
561
563
|
| sites | list[string] | 是 | minItems=1, minLen=1 | 站点编码数组,取 list_sites 的 value;["*"] 表示该平台全部站点,不可混用 |
|
|
562
564
|
|
|
563
565
|
**对象 `PrecheckResult`**
|
|
@@ -742,7 +744,7 @@ social-neuron-subscription job-update --job-id 1001 --active false -y
|
|
|
742
744
|
|
|
743
745
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
744
746
|
|---|---|---|---|---|
|
|
745
|
-
| platform | string | 是 | minLen=1 |
|
|
747
|
+
| platform | string | 是 | minLen=1 | 具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合 |
|
|
746
748
|
| sites | list[string] | 是 | minItems=1, minLen=1 | 站点编码数组,取 list_sites 的 value;["*"] 表示该平台全部站点,不可混用 |
|
|
747
749
|
|
|
748
750
|
**对象 `SftpTarget`** —— sftp(本期):把导出文件上传到 SFTP 远端目录。
|
|
@@ -796,7 +798,7 @@ social-neuron-subscription job-update --job-id 1001 --active false -y
|
|
|
796
798
|
|
|
797
799
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
798
800
|
|---|---|---|---|---|
|
|
799
|
-
| platform | string | 是 | minLen=1 |
|
|
801
|
+
| platform | string | 是 | minLen=1 | 具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合 |
|
|
800
802
|
| sites | list[string] | 是 | minItems=1, minLen=1 | 站点编码数组,取 list_sites 的 value;["*"] 表示该平台全部站点,不可混用 |
|
|
801
803
|
|
|
802
804
|
**对象 `PrecheckResult`**
|
|
@@ -833,7 +835,7 @@ social-neuron-subscription job-update --job-id 1001 --active false -y
|
|
|
833
835
|
|
|
834
836
|
| 键 | 类型 | 必填 | 约束 | 说明 |
|
|
835
837
|
|---|---|---|---|---|
|
|
836
|
-
| platform | string | 是 | minLen=1 |
|
|
838
|
+
| platform | string | 是 | minLen=1 | 具体平台编码,禁止包含 *,取 list_platforms 的 name_en;全平台须逐一列出平台组合 |
|
|
837
839
|
| sites | list[string] | 是 | minItems=1, minLen=1 | 站点编码数组,取 list_sites 的 value;["*"] 表示该平台全部站点,不可混用 |
|
|
838
840
|
|
|
839
841
|
**出参 `SubFieldList`**
|