@youzan-cloud/zan-saas-cli 0.0.0-stage → 0.1.0-beta.4
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/DEPENDENCIES.json +50 -0
- package/INSTALL.md +79 -0
- package/LICENSE +21 -0
- package/NOTICE +1 -0
- package/README.md +151 -2
- package/THIRD_PARTY_NOTICES.txt +162 -0
- package/bin/zan-saas-cli.js +28 -0
- package/internal/registry/index.js +123 -0
- package/internal/registry/manifest.json +424 -0
- package/npm-shrinkwrap.json +86 -0
- package/package.json +33 -4
- package/skills/README.md +30 -0
- package/skills/zan-saas/SKILL.md +54 -0
- package/skills/zan-saas/references/host-entry.md +25 -0
- package/skills/zan-saas-access/SKILL.md +37 -0
- package/skills/zan-saas-access/references/role-list.md +11 -0
- package/skills/zan-saas-access/references/staff-perms-get.md +11 -0
- package/skills/zan-saas-aftersale/SKILL.md +31 -0
- package/skills/zan-saas-aftersale/references/case-list.md +13 -0
- package/skills/zan-saas-aftersale/references/case-scan.md +31 -0
- package/skills/zan-saas-benefit/SKILL.md +46 -0
- package/skills/zan-saas-benefit/references/card-get.md +7 -0
- package/skills/zan-saas-benefit/references/card-grant-list.md +11 -0
- package/skills/zan-saas-benefit/references/card-list.md +7 -0
- package/skills/zan-saas-benefit/references/customer-card-get.md +7 -0
- package/skills/zan-saas-benefit/references/customer-card-list.md +7 -0
- package/skills/zan-saas-coupon/SKILL.md +41 -0
- package/skills/zan-saas-coupon/references/activity-get.md +11 -0
- package/skills/zan-saas-coupon/references/activity-list.md +15 -0
- package/skills/zan-saas-coupon/references/voucher-get.md +13 -0
- package/skills/zan-saas-coupon/references/voucher-list.md +25 -0
- package/skills/zan-saas-customer/SKILL.md +73 -0
- package/skills/zan-saas-customer/references/customer-scan.md +11 -0
- package/skills/zan-saas-customer/references/segment-list.md +22 -0
- package/skills/zan-saas-fulfillment/SKILL.md +36 -0
- package/skills/zan-saas-fulfillment/references/delivery-get.md +11 -0
- package/skills/zan-saas-fulfillment/references/shipment-list.md +11 -0
- package/skills/zan-saas-fulfillment/references/waybill-get.md +9 -0
- package/skills/zan-saas-interaction/SKILL.md +37 -0
- package/skills/zan-saas-interaction/references/lottery-get.md +11 -0
- package/skills/zan-saas-interaction/references/lottery-list.md +19 -0
- package/skills/zan-saas-item/SKILL.md +61 -0
- package/skills/zan-saas-item/references/attribute-list.md +11 -0
- package/skills/zan-saas-item/references/brand-list.md +7 -0
- package/skills/zan-saas-item/references/classification-get.md +7 -0
- package/skills/zan-saas-item/references/classification-list.md +7 -0
- package/skills/zan-saas-item/references/group-list.md +9 -0
- package/skills/zan-saas-item/references/item-content.md +9 -0
- package/skills/zan-saas-item/references/item-get.md +9 -0
- package/skills/zan-saas-item/references/item-search.md +23 -0
- package/skills/zan-saas-item/references/product-identity.md +11 -0
- package/skills/zan-saas-member/SKILL.md +41 -0
- package/skills/zan-saas-member/references/customer-level-get.md +7 -0
- package/skills/zan-saas-member/references/growth-log-list.md +17 -0
- package/skills/zan-saas-member/references/membership-get.md +7 -0
- package/skills/zan-saas-order/SKILL.md +56 -0
- package/skills/zan-saas-order/references/order-get.md +26 -0
- package/skills/zan-saas-order/references/order-list.md +25 -0
- package/skills/zan-saas-order/references/order-scan.md +35 -0
- package/skills/zan-saas-org/SKILL.md +37 -0
- package/skills/zan-saas-org/references/staff-get.md +15 -0
- package/skills/zan-saas-org/references/staff-role-get.md +11 -0
- package/skills/zan-saas-org/references/unit-get.md +11 -0
- package/skills/zan-saas-org/references/unit-list.md +15 -0
- package/skills/zan-saas-points/SKILL.md +42 -0
- package/skills/zan-saas-points/references/account-get.md +7 -0
- package/skills/zan-saas-points/references/log-list.md +17 -0
- package/skills/zan-saas-points/references/rule-list.md +2 -0
- package/skills/zan-saas-privacy/SKILL.md +30 -0
- package/skills/zan-saas-privacy/references/field-decrypt.md +19 -0
- package/skills/zan-saas-shared/SKILL.md +94 -0
- package/skills/zan-saas-shared/references/authentication.md +52 -0
- package/skills/zan-saas-shared/references/value-processing.md +27 -0
- package/skills/zan-saas-stock/SKILL.md +28 -0
- package/skills/zan-saas-stock/references/log-list.md +11 -0
- package/skills/zan-saas-valuecard/SKILL.md +37 -0
- package/skills/zan-saas-valuecard/references/card-get.md +13 -0
- package/skills/zan-saas-valuecard/references/card-list.md +11 -0
- package/src/auth/browser.js +28 -0
- package/src/auth/callback-server.js +99 -0
- package/src/auth/config.js +53 -0
- package/src/auth/credential-store.js +109 -0
- package/src/auth/oauth-client.js +105 -0
- package/src/auth/pkce.js +28 -0
- package/src/auth/session.js +178 -0
- package/src/auth/tool.js +25 -0
- package/src/cli/command-paths.js +126 -0
- package/src/cli/context-help.js +102 -0
- package/src/cli/diagnostic-command.js +57 -0
- package/src/cli/domain-catalog.js +42 -0
- package/src/cli/help-text.js +32 -0
- package/src/cli/native-loader.js +120 -0
- package/src/cli/native-path.js +22 -0
- package/src/cli/parser-policy.js +141 -0
- package/src/cli/program.js +134 -0
- package/src/cli/skill-catalog.js +241 -0
- package/src/commands/native/access/commands.index.json +24 -0
- package/src/commands/native/access/domain.json +3 -0
- package/src/commands/native/access/role/list/command.js +141 -0
- package/src/commands/native/access/role/list/schema.json +393 -0
- package/src/commands/native/access/staff-perms/get/command.js +119 -0
- package/src/commands/native/access/staff-perms/get/schema.json +703 -0
- package/src/commands/native/aftersale/case/get/command.js +104 -0
- package/src/commands/native/aftersale/case/get/exact-json.js +52 -0
- package/src/commands/native/aftersale/case/get/money.js +28 -0
- package/src/commands/native/aftersale/case/get/projection.js +120 -0
- package/src/commands/native/aftersale/case/get/query.js +72 -0
- package/src/commands/native/aftersale/case/get/schema.json +134 -0
- package/src/commands/native/aftersale/case/list/command.js +135 -0
- package/src/commands/native/aftersale/case/list/schema.json +1095 -0
- package/src/commands/native/aftersale/case/scan/command.js +110 -0
- package/src/commands/native/aftersale/case/scan/query.js +62 -0
- package/src/commands/native/aftersale/case/scan/scan.js +78 -0
- package/src/commands/native/aftersale/case/scan/schema.json +964 -0
- package/src/commands/native/aftersale/case/scan/search.js +108 -0
- package/src/commands/native/aftersale/commands.index.json +42 -0
- package/src/commands/native/aftersale/domain.json +3 -0
- package/src/commands/native/aftersale/refund/list/command.js +97 -0
- package/src/commands/native/aftersale/refund/list/money.js +25 -0
- package/src/commands/native/aftersale/refund/list/projection.js +50 -0
- package/src/commands/native/aftersale/refund/list/query.js +73 -0
- package/src/commands/native/aftersale/refund/list/schema.json +130 -0
- package/src/commands/native/aftersale/shared/query.js +58 -0
- package/src/commands/native/aftersale/shared/search.js +128 -0
- package/src/commands/native/benefit/card-definition/get/command.js +110 -0
- package/src/commands/native/benefit/card-definition/get/schema.json +545 -0
- package/src/commands/native/benefit/card-definition/list/command.js +106 -0
- package/src/commands/native/benefit/card-definition/list/schema.json +690 -0
- package/src/commands/native/benefit/card-grant/list/command.js +135 -0
- package/src/commands/native/benefit/card-grant/list/schema.json +758 -0
- package/src/commands/native/benefit/commands.index.json +51 -0
- package/src/commands/native/benefit/customer-card/get/command.js +110 -0
- package/src/commands/native/benefit/customer-card/get/schema.json +340 -0
- package/src/commands/native/benefit/customer-card/list/command.js +103 -0
- package/src/commands/native/benefit/customer-card/list/schema.json +731 -0
- package/src/commands/native/benefit/domain.json +3 -0
- package/src/commands/native/coupon/activity/get/command.js +183 -0
- package/src/commands/native/coupon/activity/get/schema.json +624 -0
- package/src/commands/native/coupon/activity/list/command.js +169 -0
- package/src/commands/native/coupon/activity/list/schema.json +845 -0
- package/src/commands/native/coupon/commands.index.json +42 -0
- package/src/commands/native/coupon/domain.json +3 -0
- package/src/commands/native/coupon/shared/query.js +15 -0
- package/src/commands/native/coupon/voucher/get/command.js +113 -0
- package/src/commands/native/coupon/voucher/get/schema.json +147 -0
- package/src/commands/native/coupon/voucher/list/command.js +155 -0
- package/src/commands/native/coupon/voucher/list/schema.json +772 -0
- package/src/commands/native/customer/commands.index.json +96 -0
- package/src/commands/native/customer/customer/get/adapter.js +82 -0
- package/src/commands/native/customer/customer/get/command.js +106 -0
- package/src/commands/native/customer/customer/get/schema.json +958 -0
- package/src/commands/native/customer/customer/list/command.js +78 -0
- package/src/commands/native/customer/customer/list/input.js +145 -0
- package/src/commands/native/customer/customer/list/query.js +103 -0
- package/src/commands/native/customer/customer/list/schema.json +969 -0
- package/src/commands/native/customer/customer/scan/command.js +80 -0
- package/src/commands/native/customer/customer/scan/scan.js +92 -0
- package/src/commands/native/customer/customer/scan/schema.json +211 -0
- package/src/commands/native/customer/customer-tag/get/command.js +166 -0
- package/src/commands/native/customer/customer-tag/get/schema.json +317 -0
- package/src/commands/native/customer/customer-tag/list/command.js +143 -0
- package/src/commands/native/customer/customer-tag/list/schema.json +259 -0
- package/src/commands/native/customer/domain.json +3 -0
- package/src/commands/native/customer/segment/list/command.js +96 -0
- package/src/commands/native/customer/segment/list/query.js +98 -0
- package/src/commands/native/customer/segment/list/schema.json +135 -0
- package/src/commands/native/customer/segment-customer/list/command.js +171 -0
- package/src/commands/native/customer/segment-customer/list/schema.json +123 -0
- package/src/commands/native/customer/shared/search-input.js +179 -0
- package/src/commands/native/customer/shared/search-page.js +54 -0
- package/src/commands/native/customer/tag/get/command.js +73 -0
- package/src/commands/native/customer/tag/get/schema.json +339 -0
- package/src/commands/native/customer/tagcategory/get/command.js +80 -0
- package/src/commands/native/customer/tagcategory/get/query.js +98 -0
- package/src/commands/native/customer/tagcategory/get/schema.json +339 -0
- package/src/commands/native/customer/tagcategory/list/command.js +127 -0
- package/src/commands/native/customer/tagcategory/list/schema.json +394 -0
- package/src/commands/native/fulfillment/commands.index.json +33 -0
- package/src/commands/native/fulfillment/delivery/get/command.js +107 -0
- package/src/commands/native/fulfillment/delivery/get/projection.js +142 -0
- package/src/commands/native/fulfillment/delivery/get/schema.json +173 -0
- package/src/commands/native/fulfillment/domain.json +3 -0
- package/src/commands/native/fulfillment/shipment/list/command.js +83 -0
- package/src/commands/native/fulfillment/shipment/list/projection.js +130 -0
- package/src/commands/native/fulfillment/shipment/list/schema.json +752 -0
- package/src/commands/native/fulfillment/waybill/get/command.js +193 -0
- package/src/commands/native/fulfillment/waybill/get/response.js +68 -0
- package/src/commands/native/fulfillment/waybill/get/schema.json +190 -0
- package/src/commands/native/interaction/commands.index.json +24 -0
- package/src/commands/native/interaction/domain.json +3 -0
- package/src/commands/native/interaction/lottery/get/command.js +61 -0
- package/src/commands/native/interaction/lottery/get/query.js +152 -0
- package/src/commands/native/interaction/lottery/get/schema.json +1004 -0
- package/src/commands/native/interaction/lottery/list/command.js +176 -0
- package/src/commands/native/interaction/lottery/list/schema.json +898 -0
- package/src/commands/native/item/attribute/list/command.js +122 -0
- package/src/commands/native/item/attribute/list/schema.json +727 -0
- package/src/commands/native/item/brand/list/command.js +114 -0
- package/src/commands/native/item/brand/list/schema.json +725 -0
- package/src/commands/native/item/classification/get/command.js +87 -0
- package/src/commands/native/item/classification/get/schema.json +596 -0
- package/src/commands/native/item/classification/list/command.js +105 -0
- package/src/commands/native/item/classification/list/schema.json +676 -0
- package/src/commands/native/item/commands.index.json +87 -0
- package/src/commands/native/item/domain.json +1 -0
- package/src/commands/native/item/group/list/command.js +122 -0
- package/src/commands/native/item/group/list/schema.json +809 -0
- package/src/commands/native/item/item/get/command.js +122 -0
- package/src/commands/native/item/item/get/schema.json +3799 -0
- package/src/commands/native/item/item/list/command.js +7 -0
- package/src/commands/native/item/item/list/schema.json +1118 -0
- package/src/commands/native/item/item/scan/command.js +7 -0
- package/src/commands/native/item/item/scan/schema.json +1046 -0
- package/src/commands/native/item/item-content/get/command.js +54 -0
- package/src/commands/native/item/item-content/get/schema.json +677 -0
- package/src/commands/native/item/shared/api.js +31 -0
- package/src/commands/native/item/shared/content.js +20 -0
- package/src/commands/native/item/shared/diagnostics.js +61 -0
- package/src/commands/native/item/shared/h5.js +63 -0
- package/src/commands/native/item/shared/identity.js +62 -0
- package/src/commands/native/item/shared/normalize.js +49 -0
- package/src/commands/native/item/shared/scope.js +22 -0
- package/src/commands/native/item/shared/search-command.js +61 -0
- package/src/commands/native/item/shared/search-options.js +150 -0
- package/src/commands/native/item/shared/search.js +158 -0
- package/src/commands/native/member/commands.index.json +60 -0
- package/src/commands/native/member/customer-level/get/command.js +122 -0
- package/src/commands/native/member/customer-level/get/schema.json +300 -0
- package/src/commands/native/member/domain.json +3 -0
- package/src/commands/native/member/growth/get/command.js +64 -0
- package/src/commands/native/member/growth/get/schema.json +283 -0
- package/src/commands/native/member/growth-log/list/command.js +203 -0
- package/src/commands/native/member/growth-log/list/schema.json +695 -0
- package/src/commands/native/member/level/get/command.js +70 -0
- package/src/commands/native/member/level/get/query.js +125 -0
- package/src/commands/native/member/level/get/schema.json +339 -0
- package/src/commands/native/member/level/list/command.js +50 -0
- package/src/commands/native/member/level/list/query.js +109 -0
- package/src/commands/native/member/level/list/schema.json +104 -0
- package/src/commands/native/member/membership/get/command.js +78 -0
- package/src/commands/native/member/membership/get/schema.json +283 -0
- package/src/commands/native/order/commands.index.json +33 -0
- package/src/commands/native/order/domain.json +3 -0
- package/src/commands/native/order/order/get/command.js +155 -0
- package/src/commands/native/order/order/get/schema.json +1167 -0
- package/src/commands/native/order/order/list/command.js +230 -0
- package/src/commands/native/order/order/list/schema.json +1363 -0
- package/src/commands/native/order/order/scan/command.js +148 -0
- package/src/commands/native/order/order/scan/scan.js +89 -0
- package/src/commands/native/order/order/scan/schema.json +1445 -0
- package/src/commands/native/order/shared/projection.js +183 -0
- package/src/commands/native/order/shared/query.js +84 -0
- package/src/commands/native/order/shared/search.js +112 -0
- package/src/commands/native/org/commands.index.json +42 -0
- package/src/commands/native/org/domain.json +3 -0
- package/src/commands/native/org/shared/single-staff.js +115 -0
- package/src/commands/native/org/staff/get/command.js +148 -0
- package/src/commands/native/org/staff/get/schema.json +114 -0
- package/src/commands/native/org/staff-role/get/command.js +45 -0
- package/src/commands/native/org/staff-role/get/schema.json +93 -0
- package/src/commands/native/org/unit/get/command.js +131 -0
- package/src/commands/native/org/unit/get/schema.json +478 -0
- package/src/commands/native/org/unit/list/command.js +187 -0
- package/src/commands/native/org/unit/list/schema.json +828 -0
- package/src/commands/native/points/account/get/command.js +65 -0
- package/src/commands/native/points/account/get/schema.json +303 -0
- package/src/commands/native/points/commands.index.json +33 -0
- package/src/commands/native/points/domain.json +3 -0
- package/src/commands/native/points/log/list/command.js +141 -0
- package/src/commands/native/points/log/list/schema.json +761 -0
- package/src/commands/native/points/rule/list/command.js +82 -0
- package/src/commands/native/points/rule/list/schema.json +294 -0
- package/src/commands/native/privacy/commands.index.json +15 -0
- package/src/commands/native/privacy/domain.json +3 -0
- package/src/commands/native/privacy/field/decrypt/command.js +185 -0
- package/src/commands/native/privacy/field/decrypt/schema.json +656 -0
- package/src/commands/native/privacy/shared/order-source.js +33 -0
- package/src/commands/native/stock/commands.index.json +15 -0
- package/src/commands/native/stock/domain.json +3 -0
- package/src/commands/native/stock/log/list/command.js +207 -0
- package/src/commands/native/stock/log/list/schema.json +922 -0
- package/src/commands/native/valuecard/card/get/command.js +107 -0
- package/src/commands/native/valuecard/card/get/schema.json +683 -0
- package/src/commands/native/valuecard/card/list/command.js +136 -0
- package/src/commands/native/valuecard/card/list/pagination.js +23 -0
- package/src/commands/native/valuecard/card/list/schema.json +780 -0
- package/src/commands/native/valuecard/commands.index.json +24 -0
- package/src/commands/native/valuecard/domain.json +3 -0
- package/src/commands/native/valuecard/shared/projection.js +57 -0
- package/src/commands/system/api.js +47 -0
- package/src/commands/system/auth.js +118 -0
- package/src/commands/system/contracts.js +373 -0
- package/src/commands/system/doctor.js +24 -0
- package/src/commands/system/install.js +41 -0
- package/src/commands/system/printer.js +16 -0
- package/src/commands/system/schema.js +162 -0
- package/src/commands/system/shop-guidance.js +9 -0
- package/src/commands/system/shop.js +237 -0
- package/src/commands/system/skills.js +49 -0
- package/src/execution/beijing-date-time.js +29 -0
- package/src/execution/beijing-time.js +21 -0
- package/src/execution/bounded-input.js +42 -0
- package/src/execution/command-io.js +137 -0
- package/src/execution/command-policy.js +41 -0
- package/src/execution/command-schema.js +131 -0
- package/src/execution/datetime.js +83 -0
- package/src/execution/error-details.js +399 -0
- package/src/execution/error-model.js +82 -0
- package/src/execution/exact-json.js +80 -0
- package/src/execution/list-total.js +10 -0
- package/src/execution/money.js +59 -0
- package/src/execution/parser-error.js +66 -0
- package/src/execution/privacy.js +197 -0
- package/src/execution/public-schema.js +52 -0
- package/src/execution/query-api.js +101 -0
- package/src/execution/range.js +84 -0
- package/src/execution/request-state.js +55 -0
- package/src/execution/schema-completeness.js +116 -0
- package/src/execution/shop-query.js +54 -0
- package/src/execution/target-shop-default.js +23 -0
- package/src/execution/target-shop.js +49 -0
- package/src/identity/context-store.js +54 -0
- package/src/identity/context.js +38 -0
- package/src/installation/install.js +158 -0
- package/src/installation/npm-error.js +93 -0
- package/src/installation/skill.js +113 -0
- package/src/transport/account-api.js +152 -0
- package/src/transport/api.js +199 -0
- package/src/transport/shop-app.js +63 -0
|
@@ -0,0 +1,969 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"input": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"kdtId",
|
|
8
|
+
"filters",
|
|
9
|
+
"pageNo",
|
|
10
|
+
"pageSize"
|
|
11
|
+
],
|
|
12
|
+
"description": "CLI 解析后的业务输入,不接收此对象作为 JSON 参数。范围表达式规范化为边界对象,控制项不进入业务模型。",
|
|
13
|
+
"properties": {
|
|
14
|
+
"kdtId": {
|
|
15
|
+
"$ref": "#/definitions/id"
|
|
16
|
+
},
|
|
17
|
+
"filters": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"description": "省略条件不筛选。keyword 与 mobile 互斥;hasLevel=false 与 levelIds 冲突,hasBenefitCard=false 与 benefitCardIds 冲突。",
|
|
21
|
+
"properties": {
|
|
22
|
+
"keyword": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1,
|
|
25
|
+
"maxLength": 200,
|
|
26
|
+
"pattern": "^\\S(?:[\\s\\S]*\\S)?$",
|
|
27
|
+
"description": "模糊搜索姓名、手机号、昵称,无首尾空白,与 mobile 互斥。"
|
|
28
|
+
},
|
|
29
|
+
"mobile": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^\\+?[0-9]{5,20}$",
|
|
32
|
+
"description": "精确单手机号,保留加号、国家码与前导零;不是稳定客户标识,不接受号码数组。"
|
|
33
|
+
},
|
|
34
|
+
"isMember": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "true 会员,false 非会员;省略查全部客户,不从等级、卡或时间推算。"
|
|
37
|
+
},
|
|
38
|
+
"tagIds": {
|
|
39
|
+
"$ref": "#/definitions/ids",
|
|
40
|
+
"description": "必须全部满足的标签定义 ID,按首现去重。CLI 接受 CSV 或 JSON 字符串数组,原始 1..50 项。"
|
|
41
|
+
},
|
|
42
|
+
"created": {
|
|
43
|
+
"$ref": "#/definitions/timeRange",
|
|
44
|
+
"description": "成为客户时间,北京时间起点..终点,允许单边,不填补省略边界。"
|
|
45
|
+
},
|
|
46
|
+
"memberCreated": {
|
|
47
|
+
"$ref": "#/definitions/timeRange",
|
|
48
|
+
"description": "成为会员时间,不证明当前仍是会员,可与 isMember=false 组合。"
|
|
49
|
+
},
|
|
50
|
+
"lastTrade": {
|
|
51
|
+
"$ref": "#/definitions/timeRange",
|
|
52
|
+
"description": "最后购买时间,不表示任意窗口内购买或未下单。"
|
|
53
|
+
},
|
|
54
|
+
"tradeCount": {
|
|
55
|
+
"$ref": "#/definitions/countRange",
|
|
56
|
+
"description": "历史购次上下限,不保证全渠道口径。"
|
|
57
|
+
},
|
|
58
|
+
"tradeAmount": {
|
|
59
|
+
"$ref": "#/definitions/moneyRange",
|
|
60
|
+
"description": "累计消费金额上下限,人民币元精确文本,不表示净收入。"
|
|
61
|
+
},
|
|
62
|
+
"points": {
|
|
63
|
+
"$ref": "#/definitions/pointsRange",
|
|
64
|
+
"description": "搜索积分上下限,非负安全整数,不读取积分流水。"
|
|
65
|
+
},
|
|
66
|
+
"storedBalance": {
|
|
67
|
+
"$ref": "#/definitions/moneyRange",
|
|
68
|
+
"description": "储值余额上下限,人民币元文本,不等于逐卡可支付余额或客户全部资产。"
|
|
69
|
+
},
|
|
70
|
+
"levelIds": {
|
|
71
|
+
"$ref": "#/definitions/ids",
|
|
72
|
+
"description": "等级定义数值 ID,非 alias、等级值或客户 ID。CSV 或 JSON 字符串数组,原始 1..50 项;不推定多值 AND/OR。"
|
|
73
|
+
},
|
|
74
|
+
"hasLevel": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"description": "true 有等级,false 无等级;false 与指定等级 ID 冲突,不自动补 true。"
|
|
77
|
+
},
|
|
78
|
+
"benefitCardIds": {
|
|
79
|
+
"$ref": "#/definitions/ids",
|
|
80
|
+
"description": "权益卡定义数值 ID,可从 benefit.card-definition.list 的 cardId 取得,非 cardAlias、cardNo 或储值卡号;不推定多值 AND/OR。"
|
|
81
|
+
},
|
|
82
|
+
"hasBenefitCard": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"description": "true 有卡,false 无卡;false 与指定卡定义 ID 冲突,不证明卡有效或可用,不自动补 true。"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"pageNo": {
|
|
89
|
+
"type": "integer",
|
|
90
|
+
"minimum": 1,
|
|
91
|
+
"maximum": 500,
|
|
92
|
+
"description": "请求页码,乘页容量不得超过 10000。"
|
|
93
|
+
},
|
|
94
|
+
"pageSize": {
|
|
95
|
+
"type": "integer",
|
|
96
|
+
"minimum": 1,
|
|
97
|
+
"maximum": 50,
|
|
98
|
+
"description": "本页容量,不表示总数。"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"output": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"required": [
|
|
106
|
+
"data"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"data": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"required": [
|
|
113
|
+
"customers",
|
|
114
|
+
"pagination"
|
|
115
|
+
],
|
|
116
|
+
"properties": {
|
|
117
|
+
"customers": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"maxItems": 50,
|
|
120
|
+
"items": {
|
|
121
|
+
"$ref": "#/definitions/customer"
|
|
122
|
+
},
|
|
123
|
+
"description": "本页有限摘要,按观察顺序保留首次 yzOpenId;姓名或手机号相同不合并。明确空页才返回空数组。"
|
|
124
|
+
},
|
|
125
|
+
"pagination": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"additionalProperties": false,
|
|
128
|
+
"required": [
|
|
129
|
+
"pageNo",
|
|
130
|
+
"pageSize",
|
|
131
|
+
"hasMore"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"pageNo": {
|
|
135
|
+
"type": "integer",
|
|
136
|
+
"minimum": 1,
|
|
137
|
+
"maximum": 500,
|
|
138
|
+
"description": "实际请求页码,不自动翻页。"
|
|
139
|
+
},
|
|
140
|
+
"pageSize": {
|
|
141
|
+
"type": "integer",
|
|
142
|
+
"minimum": 1,
|
|
143
|
+
"maximum": 50,
|
|
144
|
+
"description": "实际请求的本页容量。"
|
|
145
|
+
},
|
|
146
|
+
"total": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"minimum": 0,
|
|
149
|
+
"maximum": 9007199254740991,
|
|
150
|
+
"description": "匹配本次查询条件的总记录数,不是当前页返回条数;上游未提供可确认总数时省略。"
|
|
151
|
+
},
|
|
152
|
+
"hasMore": {
|
|
153
|
+
"type": [
|
|
154
|
+
"boolean",
|
|
155
|
+
"null"
|
|
156
|
+
],
|
|
157
|
+
"description": "true 表示还有后续页,false 表示已确认没有后续页;无法确定时为 null,不以空页或短页推算。"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"preview": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"required": [
|
|
169
|
+
"requests"
|
|
170
|
+
],
|
|
171
|
+
"description": "纯本地计划,固定先店铺核验再搜索,不读取凭证或发出认证及业务请求,不证明对象、总数或权限。",
|
|
172
|
+
"properties": {
|
|
173
|
+
"requests": {
|
|
174
|
+
"type": "array",
|
|
175
|
+
"minItems": 2,
|
|
176
|
+
"maxItems": 2,
|
|
177
|
+
"additionalItems": false,
|
|
178
|
+
"items": [
|
|
179
|
+
{
|
|
180
|
+
"type": "object",
|
|
181
|
+
"additionalProperties": false,
|
|
182
|
+
"required": [
|
|
183
|
+
"method",
|
|
184
|
+
"path",
|
|
185
|
+
"body"
|
|
186
|
+
],
|
|
187
|
+
"properties": {
|
|
188
|
+
"method": {
|
|
189
|
+
"const": "POST"
|
|
190
|
+
},
|
|
191
|
+
"path": {
|
|
192
|
+
"const": "youzan.shop.basic.get/3.0.0"
|
|
193
|
+
},
|
|
194
|
+
"body": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"additionalProperties": false,
|
|
197
|
+
"maxProperties": 0
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "object",
|
|
203
|
+
"additionalProperties": false,
|
|
204
|
+
"required": [
|
|
205
|
+
"method",
|
|
206
|
+
"path",
|
|
207
|
+
"body"
|
|
208
|
+
],
|
|
209
|
+
"properties": {
|
|
210
|
+
"method": {
|
|
211
|
+
"const": "POST"
|
|
212
|
+
},
|
|
213
|
+
"path": {
|
|
214
|
+
"const": "youzan.scrm.customer.list/1.0.0"
|
|
215
|
+
},
|
|
216
|
+
"body": {
|
|
217
|
+
"$ref": "#/definitions/searchBody"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"error": {
|
|
226
|
+
"type": "object",
|
|
227
|
+
"additionalProperties": false,
|
|
228
|
+
"required": [
|
|
229
|
+
"success",
|
|
230
|
+
"code",
|
|
231
|
+
"message",
|
|
232
|
+
"details"
|
|
233
|
+
],
|
|
234
|
+
"properties": {
|
|
235
|
+
"success": {
|
|
236
|
+
"const": false
|
|
237
|
+
},
|
|
238
|
+
"code": {
|
|
239
|
+
"const": -10001
|
|
240
|
+
},
|
|
241
|
+
"message": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"minLength": 1,
|
|
244
|
+
"description": "受控诊断,不回显客户条件、自由消息或响应原文。"
|
|
245
|
+
},
|
|
246
|
+
"details": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"additionalProperties": false,
|
|
249
|
+
"required": [
|
|
250
|
+
"category",
|
|
251
|
+
"stage",
|
|
252
|
+
"command",
|
|
253
|
+
"targetScope",
|
|
254
|
+
"requestState",
|
|
255
|
+
"nextStep",
|
|
256
|
+
"errorVersion",
|
|
257
|
+
"recovery",
|
|
258
|
+
"execution"
|
|
259
|
+
],
|
|
260
|
+
"properties": {
|
|
261
|
+
"category": {
|
|
262
|
+
"enum": [
|
|
263
|
+
"validation",
|
|
264
|
+
"configuration",
|
|
265
|
+
"authentication",
|
|
266
|
+
"permission",
|
|
267
|
+
"scope_unresolved",
|
|
268
|
+
"http",
|
|
269
|
+
"business_rejected",
|
|
270
|
+
"transport",
|
|
271
|
+
"protocol",
|
|
272
|
+
"limit"
|
|
273
|
+
],
|
|
274
|
+
"description": "validation 输入错误;configuration 调用配置不可用;authentication 认证失败;permission 权限拒绝;scope_unresolved 店铺未确认;http HTTP 拒绝;business_rejected 业务拒绝;transport 传输失败;protocol 模型不符;limit 超预算。"
|
|
275
|
+
},
|
|
276
|
+
"stage": {
|
|
277
|
+
"enum": [
|
|
278
|
+
"input",
|
|
279
|
+
"context",
|
|
280
|
+
"configuration",
|
|
281
|
+
"shop-binding",
|
|
282
|
+
"search",
|
|
283
|
+
"output"
|
|
284
|
+
],
|
|
285
|
+
"description": "input 输入;context 上下文;configuration 公共环境;shop-binding 同店绑定;search 搜索;output 输出组装。"
|
|
286
|
+
},
|
|
287
|
+
"command": {
|
|
288
|
+
"const": "customer.customer.list"
|
|
289
|
+
},
|
|
290
|
+
"targetScope": {
|
|
291
|
+
"type": "object",
|
|
292
|
+
"additionalProperties": false,
|
|
293
|
+
"properties": {
|
|
294
|
+
"kdtId": {
|
|
295
|
+
"$ref": "#/definitions/id"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"description": "仅保留已校验的店铺 ID,未确定时为空对象,不包含客户条件。"
|
|
299
|
+
},
|
|
300
|
+
"requestState": {
|
|
301
|
+
"enum": [
|
|
302
|
+
"not_sent",
|
|
303
|
+
"sent",
|
|
304
|
+
"unknown"
|
|
305
|
+
],
|
|
306
|
+
"description": "not_sent 相关失败请求未发送;sent 已收到响应,不等于业务成功;unknown 已发送但结果不明。"
|
|
307
|
+
},
|
|
308
|
+
"nextStep": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"minLength": 1,
|
|
311
|
+
"description": "保持原目标排查,不自动重放、换身份或切店。"
|
|
312
|
+
},
|
|
313
|
+
"api": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"enum": [
|
|
316
|
+
"youzan.shop.basic.get/3.0.0",
|
|
317
|
+
"youzan.scrm.customer.list/1.0.0"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"httpStatus": {
|
|
321
|
+
"type": "integer",
|
|
322
|
+
"minimum": 100,
|
|
323
|
+
"maximum": 599
|
|
324
|
+
},
|
|
325
|
+
"businessCode": {
|
|
326
|
+
"$ref": "#/definitions/diagnosticCode"
|
|
327
|
+
},
|
|
328
|
+
"gatewayCode": {
|
|
329
|
+
"$ref": "#/definitions/diagnosticCode"
|
|
330
|
+
},
|
|
331
|
+
"trace_id": {
|
|
332
|
+
"$ref": "#/definitions/trace"
|
|
333
|
+
},
|
|
334
|
+
"request_id": {
|
|
335
|
+
"$ref": "#/definitions/trace"
|
|
336
|
+
},
|
|
337
|
+
"errorVersion": {
|
|
338
|
+
"const": 2,
|
|
339
|
+
"description": "本命令采用错误诊断协议第二版。"
|
|
340
|
+
},
|
|
341
|
+
"issues": {
|
|
342
|
+
"type": "array",
|
|
343
|
+
"minItems": 1,
|
|
344
|
+
"maxItems": 16,
|
|
345
|
+
"items": {
|
|
346
|
+
"$ref": "#/definitions/diagnosticIssue"
|
|
347
|
+
},
|
|
348
|
+
"description": "最多十六个已定位问题,不包含收到的原值。"
|
|
349
|
+
},
|
|
350
|
+
"issuesTruncated": {
|
|
351
|
+
"const": true,
|
|
352
|
+
"description": "问题超过返回上限,当前列表没有穷尽全部问题。"
|
|
353
|
+
},
|
|
354
|
+
"recovery": {
|
|
355
|
+
"$ref": "#/definitions/diagnosticRecovery",
|
|
356
|
+
"description": "受限的恢复说明,不会自动执行。"
|
|
357
|
+
},
|
|
358
|
+
"execution": {
|
|
359
|
+
"$ref": "#/definitions/diagnosticExecution",
|
|
360
|
+
"description": "整次调用的请求观察,独立于失败阶段的 requestState。"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"definitions": {
|
|
367
|
+
"id": {
|
|
368
|
+
"type": "string",
|
|
369
|
+
"pattern": "^[1-9][0-9]*$",
|
|
370
|
+
"maxLength": 16,
|
|
371
|
+
"description": "正十进制安全整数 ID 文本,最大 9007199254740991,无首尾空白,不接受别名。"
|
|
372
|
+
},
|
|
373
|
+
"ids": {
|
|
374
|
+
"type": "array",
|
|
375
|
+
"minItems": 1,
|
|
376
|
+
"maxItems": 50,
|
|
377
|
+
"uniqueItems": true,
|
|
378
|
+
"items": {
|
|
379
|
+
"$ref": "#/definitions/id"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"requestIds": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"minItems": 1,
|
|
385
|
+
"maxItems": 50,
|
|
386
|
+
"uniqueItems": true,
|
|
387
|
+
"items": {
|
|
388
|
+
"type": "integer",
|
|
389
|
+
"minimum": 1,
|
|
390
|
+
"maximum": 9007199254740991
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"time": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"format": "beijing-date-time-ms",
|
|
396
|
+
"pattern": "\\.000$",
|
|
397
|
+
"description": "北京时间 YYYY-MM-DD HH:mm:ss.SSS,输入允许 1..3 位零毫秒;拒绝非零毫秒,时间边界须处于 Unix 秒 0..4102444800。"
|
|
398
|
+
},
|
|
399
|
+
"timeRange": {
|
|
400
|
+
"type": "object",
|
|
401
|
+
"additionalProperties": false,
|
|
402
|
+
"minProperties": 1,
|
|
403
|
+
"properties": {
|
|
404
|
+
"start": {
|
|
405
|
+
"$ref": "#/definitions/time"
|
|
406
|
+
},
|
|
407
|
+
"end": {
|
|
408
|
+
"$ref": "#/definitions/time"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"description": "起点..终点,至少一端存在且起点不晚于终点。时间必须含 ..,不接受裸时间;不补省略边界。"
|
|
412
|
+
},
|
|
413
|
+
"countRange": {
|
|
414
|
+
"type": "object",
|
|
415
|
+
"additionalProperties": false,
|
|
416
|
+
"minProperties": 1,
|
|
417
|
+
"properties": {
|
|
418
|
+
"min": {
|
|
419
|
+
"type": "integer",
|
|
420
|
+
"minimum": 0,
|
|
421
|
+
"maximum": 2147483647
|
|
422
|
+
},
|
|
423
|
+
"max": {
|
|
424
|
+
"type": "integer",
|
|
425
|
+
"minimum": 0,
|
|
426
|
+
"maximum": 2147483647
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"description": "LOW..HIGH、LOW..、..HIGH;裸值规范化为相同双边,min 不大于 max。"
|
|
430
|
+
},
|
|
431
|
+
"pointsRange": {
|
|
432
|
+
"type": "object",
|
|
433
|
+
"additionalProperties": false,
|
|
434
|
+
"minProperties": 1,
|
|
435
|
+
"properties": {
|
|
436
|
+
"min": {
|
|
437
|
+
"type": "integer",
|
|
438
|
+
"minimum": 0,
|
|
439
|
+
"maximum": 9007199254740991
|
|
440
|
+
},
|
|
441
|
+
"max": {
|
|
442
|
+
"type": "integer",
|
|
443
|
+
"minimum": 0,
|
|
444
|
+
"maximum": 9007199254740991
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"description": "LOW..HIGH、LOW..、..HIGH;裸值规范化为相同双边,min 不大于 max。"
|
|
448
|
+
},
|
|
449
|
+
"money": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"pattern": "^(0|[1-9][0-9]*)\\.[0-9]{2}$",
|
|
452
|
+
"description": "人民币 CNY 元,固定两位精确文本;输入最多两位小数,分值不超过 9007199254740991。"
|
|
453
|
+
},
|
|
454
|
+
"moneyRange": {
|
|
455
|
+
"type": "object",
|
|
456
|
+
"additionalProperties": false,
|
|
457
|
+
"minProperties": 1,
|
|
458
|
+
"properties": {
|
|
459
|
+
"min": {
|
|
460
|
+
"$ref": "#/definitions/money"
|
|
461
|
+
},
|
|
462
|
+
"max": {
|
|
463
|
+
"$ref": "#/definitions/money"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"description": "元金额 LOW..HIGH,可单边或裸值,裸值为相同双边,精确比较 min 不大于 max,不补 0.00。"
|
|
467
|
+
},
|
|
468
|
+
"customer": {
|
|
469
|
+
"type": "object",
|
|
470
|
+
"additionalProperties": false,
|
|
471
|
+
"required": [
|
|
472
|
+
"yzOpenId"
|
|
473
|
+
],
|
|
474
|
+
"description": "有限客户摘要。可选字段未取得时省略,不补空值、零或 false;已返回字段为 null 或错型时整体失败。",
|
|
475
|
+
"properties": {
|
|
476
|
+
"yzOpenId": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"minLength": 1,
|
|
479
|
+
"pattern": "^\\S(?:[\\s\\S]*\\S)?$",
|
|
480
|
+
"description": "店铺客户稳定标识,非空且无首尾空白;不以内部用户数字 ID、手机号或姓名替代。"
|
|
481
|
+
},
|
|
482
|
+
"name": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"description": "客户姓名,合法空文本保留。"
|
|
485
|
+
},
|
|
486
|
+
"showName": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"description": "服务端推荐展示名,CLI 不重新排优先级,允许空文本。"
|
|
489
|
+
},
|
|
490
|
+
"mobile": {
|
|
491
|
+
"type": "string",
|
|
492
|
+
"description": "客户手机号,允许空文本,未取得不推断无手机号。"
|
|
493
|
+
},
|
|
494
|
+
"gender": {
|
|
495
|
+
"type": "integer",
|
|
496
|
+
"minimum": -9007199254740991,
|
|
497
|
+
"maximum": 9007199254740991,
|
|
498
|
+
"description": "0 其他,1 男,2 女;未知安全整数保留原码,不贴新标签。"
|
|
499
|
+
},
|
|
500
|
+
"isMember": {
|
|
501
|
+
"type": "boolean",
|
|
502
|
+
"description": "true 会员,false 非会员;不从等级、持卡或入会时间推导。"
|
|
503
|
+
},
|
|
504
|
+
"tradeCount": {
|
|
505
|
+
"type": "integer",
|
|
506
|
+
"minimum": 0,
|
|
507
|
+
"maximum": 2147483647,
|
|
508
|
+
"description": "搜索服务购次,不保证全渠道订单口径。"
|
|
509
|
+
},
|
|
510
|
+
"points": {
|
|
511
|
+
"type": "integer",
|
|
512
|
+
"minimum": -9007199254740991,
|
|
513
|
+
"maximum": 9007199254740991,
|
|
514
|
+
"description": "搜索服务积分安全整数,不从筛选条件补值。"
|
|
515
|
+
},
|
|
516
|
+
"createdAt": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"format": "beijing-date-time-ms",
|
|
519
|
+
"description": "成为客户时间,北京时间三位毫秒;零时间和 null 不可用。"
|
|
520
|
+
},
|
|
521
|
+
"memberCreatedAt": {
|
|
522
|
+
"anyOf": [
|
|
523
|
+
{
|
|
524
|
+
"type": "string",
|
|
525
|
+
"format": "beijing-date-time-ms"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"const": 0
|
|
529
|
+
}
|
|
530
|
+
],
|
|
531
|
+
"description": "成为会员时间,北京时间三位毫秒;额外保留数字 0 哨兵,不独立解释为非会员。"
|
|
532
|
+
},
|
|
533
|
+
"isMobileAuthorized": {
|
|
534
|
+
"type": "boolean",
|
|
535
|
+
"description": "true 手机号已授权,false 未授权;不是手机号已验证。"
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"diagnosticCode": {
|
|
540
|
+
"anyOf": [
|
|
541
|
+
{
|
|
542
|
+
"type": "integer",
|
|
543
|
+
"minimum": -9007199254740991,
|
|
544
|
+
"maximum": 9007199254740991
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"type": "string",
|
|
548
|
+
"pattern": "^-?[0-9]{1,12}$"
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
"trace": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"pattern": "^[a-zA-Z0-9_-]{1,128}$"
|
|
555
|
+
},
|
|
556
|
+
"searchBody": {
|
|
557
|
+
"type": "object",
|
|
558
|
+
"additionalProperties": false,
|
|
559
|
+
"required": [
|
|
560
|
+
"page_no",
|
|
561
|
+
"page_size"
|
|
562
|
+
],
|
|
563
|
+
"properties": {
|
|
564
|
+
"page_no": {
|
|
565
|
+
"type": "integer",
|
|
566
|
+
"minimum": 1,
|
|
567
|
+
"maximum": 500
|
|
568
|
+
},
|
|
569
|
+
"page_size": {
|
|
570
|
+
"type": "integer",
|
|
571
|
+
"minimum": 1,
|
|
572
|
+
"maximum": 50
|
|
573
|
+
},
|
|
574
|
+
"keyword": {
|
|
575
|
+
"const": "***"
|
|
576
|
+
},
|
|
577
|
+
"mobile": {
|
|
578
|
+
"const": "***"
|
|
579
|
+
},
|
|
580
|
+
"is_member": {
|
|
581
|
+
"type": "integer",
|
|
582
|
+
"enum": [
|
|
583
|
+
0,
|
|
584
|
+
1
|
|
585
|
+
]
|
|
586
|
+
},
|
|
587
|
+
"all_match_tag_ids": {
|
|
588
|
+
"$ref": "#/definitions/requestIds"
|
|
589
|
+
},
|
|
590
|
+
"level_ids": {
|
|
591
|
+
"$ref": "#/definitions/requestIds"
|
|
592
|
+
},
|
|
593
|
+
"card_ids": {
|
|
594
|
+
"$ref": "#/definitions/requestIds"
|
|
595
|
+
},
|
|
596
|
+
"has_level": {
|
|
597
|
+
"type": "boolean"
|
|
598
|
+
},
|
|
599
|
+
"has_card": {
|
|
600
|
+
"type": "boolean"
|
|
601
|
+
},
|
|
602
|
+
"created_at_start": {
|
|
603
|
+
"type": "integer",
|
|
604
|
+
"minimum": 0,
|
|
605
|
+
"maximum": 4102444800
|
|
606
|
+
},
|
|
607
|
+
"created_at_end": {
|
|
608
|
+
"type": "integer",
|
|
609
|
+
"minimum": 0,
|
|
610
|
+
"maximum": 4102444800
|
|
611
|
+
},
|
|
612
|
+
"created_member_at_start": {
|
|
613
|
+
"type": "integer",
|
|
614
|
+
"minimum": 0,
|
|
615
|
+
"maximum": 4102444800
|
|
616
|
+
},
|
|
617
|
+
"created_member_at_end": {
|
|
618
|
+
"type": "integer",
|
|
619
|
+
"minimum": 0,
|
|
620
|
+
"maximum": 4102444800
|
|
621
|
+
},
|
|
622
|
+
"last_trade_time_start": {
|
|
623
|
+
"type": "integer",
|
|
624
|
+
"minimum": 0,
|
|
625
|
+
"maximum": 4102444800
|
|
626
|
+
},
|
|
627
|
+
"last_trade_time_end": {
|
|
628
|
+
"type": "integer",
|
|
629
|
+
"minimum": 0,
|
|
630
|
+
"maximum": 4102444800
|
|
631
|
+
},
|
|
632
|
+
"total_trade_count_min": {
|
|
633
|
+
"type": "integer",
|
|
634
|
+
"minimum": 0,
|
|
635
|
+
"maximum": 2147483647
|
|
636
|
+
},
|
|
637
|
+
"total_trade_count_max": {
|
|
638
|
+
"type": "integer",
|
|
639
|
+
"minimum": 0,
|
|
640
|
+
"maximum": 2147483647
|
|
641
|
+
},
|
|
642
|
+
"total_trade_amount_min": {
|
|
643
|
+
"type": "integer",
|
|
644
|
+
"minimum": 0,
|
|
645
|
+
"maximum": 9007199254740991
|
|
646
|
+
},
|
|
647
|
+
"total_trade_amount_max": {
|
|
648
|
+
"type": "integer",
|
|
649
|
+
"minimum": 0,
|
|
650
|
+
"maximum": 9007199254740991
|
|
651
|
+
},
|
|
652
|
+
"points_min": {
|
|
653
|
+
"type": "integer",
|
|
654
|
+
"minimum": 0,
|
|
655
|
+
"maximum": 9007199254740991
|
|
656
|
+
},
|
|
657
|
+
"points_max": {
|
|
658
|
+
"type": "integer",
|
|
659
|
+
"minimum": 0,
|
|
660
|
+
"maximum": 9007199254740991
|
|
661
|
+
},
|
|
662
|
+
"stored_balance_min": {
|
|
663
|
+
"type": "integer",
|
|
664
|
+
"minimum": 0,
|
|
665
|
+
"maximum": 9007199254740991
|
|
666
|
+
},
|
|
667
|
+
"stored_balance_max": {
|
|
668
|
+
"type": "integer",
|
|
669
|
+
"minimum": 0,
|
|
670
|
+
"maximum": 9007199254740991
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"diagnosticExpected": {
|
|
675
|
+
"type": "object",
|
|
676
|
+
"additionalProperties": false,
|
|
677
|
+
"required": [],
|
|
678
|
+
"properties": {
|
|
679
|
+
"type": {
|
|
680
|
+
"anyOf": [
|
|
681
|
+
{
|
|
682
|
+
"type": "string",
|
|
683
|
+
"description": "预期的 JSON 类型。"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"type": "array",
|
|
687
|
+
"items": {
|
|
688
|
+
"type": "string",
|
|
689
|
+
"description": "预期的 JSON 类型。"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
"description": "同版模型允许的类型。"
|
|
694
|
+
},
|
|
695
|
+
"enum": {
|
|
696
|
+
"type": "array",
|
|
697
|
+
"items": {
|
|
698
|
+
"anyOf": [
|
|
699
|
+
{
|
|
700
|
+
"type": "string"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"type": "number"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"type": "boolean"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"type": "null"
|
|
710
|
+
}
|
|
711
|
+
],
|
|
712
|
+
"description": "契约声明的静态标量约束。"
|
|
713
|
+
},
|
|
714
|
+
"description": "同版模型允许的静态值。"
|
|
715
|
+
},
|
|
716
|
+
"const": {
|
|
717
|
+
"anyOf": [
|
|
718
|
+
{
|
|
719
|
+
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"type": "number"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"type": "boolean"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"type": "null"
|
|
729
|
+
}
|
|
730
|
+
],
|
|
731
|
+
"description": "契约声明的静态标量约束。"
|
|
732
|
+
},
|
|
733
|
+
"minimum": {
|
|
734
|
+
"type": "number",
|
|
735
|
+
"description": "包含的最小值。"
|
|
736
|
+
},
|
|
737
|
+
"maximum": {
|
|
738
|
+
"type": "number",
|
|
739
|
+
"description": "包含的最大值。"
|
|
740
|
+
},
|
|
741
|
+
"exclusiveMinimum": {
|
|
742
|
+
"type": "number",
|
|
743
|
+
"description": "不包含的最小值。"
|
|
744
|
+
},
|
|
745
|
+
"exclusiveMaximum": {
|
|
746
|
+
"type": "number",
|
|
747
|
+
"description": "不包含的最大值。"
|
|
748
|
+
},
|
|
749
|
+
"minLength": {
|
|
750
|
+
"type": "integer",
|
|
751
|
+
"description": "最少字符数。"
|
|
752
|
+
},
|
|
753
|
+
"maxLength": {
|
|
754
|
+
"type": "integer",
|
|
755
|
+
"description": "最多字符数。"
|
|
756
|
+
},
|
|
757
|
+
"minItems": {
|
|
758
|
+
"type": "integer",
|
|
759
|
+
"description": "最少元素数。"
|
|
760
|
+
},
|
|
761
|
+
"maxItems": {
|
|
762
|
+
"type": "integer",
|
|
763
|
+
"description": "最多元素数。"
|
|
764
|
+
},
|
|
765
|
+
"format": {
|
|
766
|
+
"type": "string",
|
|
767
|
+
"description": "同版模型声明的格式。"
|
|
768
|
+
},
|
|
769
|
+
"pattern": {
|
|
770
|
+
"type": "string",
|
|
771
|
+
"description": "同版模型声明的字符约束。"
|
|
772
|
+
},
|
|
773
|
+
"additionalProperties": {
|
|
774
|
+
"const": false,
|
|
775
|
+
"description": "对象拒绝契约以外的属性。"
|
|
776
|
+
},
|
|
777
|
+
"contains": {
|
|
778
|
+
"type": "object",
|
|
779
|
+
"additionalProperties": false,
|
|
780
|
+
"required": [
|
|
781
|
+
"const"
|
|
782
|
+
],
|
|
783
|
+
"properties": {
|
|
784
|
+
"const": {
|
|
785
|
+
"anyOf": [
|
|
786
|
+
{
|
|
787
|
+
"type": "string"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"type": "number"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"type": "boolean"
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"type": "null"
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
"description": "契约声明的静态标量约束。"
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
"items": {
|
|
804
|
+
"type": "object",
|
|
805
|
+
"additionalProperties": false,
|
|
806
|
+
"required": [
|
|
807
|
+
"enum"
|
|
808
|
+
],
|
|
809
|
+
"properties": {
|
|
810
|
+
"enum": {
|
|
811
|
+
"type": "array",
|
|
812
|
+
"items": {
|
|
813
|
+
"anyOf": [
|
|
814
|
+
{
|
|
815
|
+
"type": "string"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"type": "number"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"type": "boolean"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"type": "null"
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"description": "契约声明的静态标量约束。"
|
|
828
|
+
},
|
|
829
|
+
"description": "元素允许的静态值。"
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"diagnosticIssue": {
|
|
836
|
+
"type": "object",
|
|
837
|
+
"additionalProperties": false,
|
|
838
|
+
"required": [
|
|
839
|
+
"source",
|
|
840
|
+
"reason"
|
|
841
|
+
],
|
|
842
|
+
"properties": {
|
|
843
|
+
"source": {
|
|
844
|
+
"enum": [
|
|
845
|
+
"argv",
|
|
846
|
+
"input",
|
|
847
|
+
"context",
|
|
848
|
+
"output",
|
|
849
|
+
"preview"
|
|
850
|
+
],
|
|
851
|
+
"description": "问题所属的参数、输入、上下文、结果或预览模型。"
|
|
852
|
+
},
|
|
853
|
+
"path": {
|
|
854
|
+
"type": "string",
|
|
855
|
+
"description": "对应模型中的 JSON Pointer;不含原始输入或动态字典键。"
|
|
856
|
+
},
|
|
857
|
+
"option": {
|
|
858
|
+
"type": "string",
|
|
859
|
+
"description": "可定位时给出的已注册 CLI 选项。"
|
|
860
|
+
},
|
|
861
|
+
"reason": {
|
|
862
|
+
"enum": [
|
|
863
|
+
"required",
|
|
864
|
+
"invalid_type",
|
|
865
|
+
"invalid_choice",
|
|
866
|
+
"out_of_range",
|
|
867
|
+
"invalid_format",
|
|
868
|
+
"conditional_required",
|
|
869
|
+
"constraint",
|
|
870
|
+
"unexpected_property",
|
|
871
|
+
"unknown_option",
|
|
872
|
+
"unknown_command",
|
|
873
|
+
"excess_arguments",
|
|
874
|
+
"missing_value"
|
|
875
|
+
],
|
|
876
|
+
"description": "字段违反的约束类型,原始值不回显。"
|
|
877
|
+
},
|
|
878
|
+
"expected": {
|
|
879
|
+
"$ref": "#/definitions/diagnosticExpected",
|
|
880
|
+
"description": "同版契约的静态预期。"
|
|
881
|
+
},
|
|
882
|
+
"relatedPaths": {
|
|
883
|
+
"type": "array",
|
|
884
|
+
"items": {
|
|
885
|
+
"type": "string",
|
|
886
|
+
"description": "关联字段的 JSON Pointer。"
|
|
887
|
+
},
|
|
888
|
+
"description": "触发条件约束的关联字段。"
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"diagnosticRecovery": {
|
|
893
|
+
"type": "object",
|
|
894
|
+
"additionalProperties": false,
|
|
895
|
+
"required": [
|
|
896
|
+
"action",
|
|
897
|
+
"automaticBusinessRetry"
|
|
898
|
+
],
|
|
899
|
+
"properties": {
|
|
900
|
+
"action": {
|
|
901
|
+
"enum": [
|
|
902
|
+
"correct_input",
|
|
903
|
+
"complete_authentication",
|
|
904
|
+
"request_access_review",
|
|
905
|
+
"stop_and_inspect"
|
|
906
|
+
],
|
|
907
|
+
"description": "依次表示修正本地输入、补认证、核对权限或停止核查;仅是说明,不执行操作或授予权限。"
|
|
908
|
+
},
|
|
909
|
+
"automaticBusinessRetry": {
|
|
910
|
+
"const": false,
|
|
911
|
+
"description": "不据此自动重放业务请求。"
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"diagnosticExecution": {
|
|
916
|
+
"type": "object",
|
|
917
|
+
"additionalProperties": false,
|
|
918
|
+
"required": [
|
|
919
|
+
"requestState",
|
|
920
|
+
"coverage",
|
|
921
|
+
"observedAttempts"
|
|
922
|
+
],
|
|
923
|
+
"properties": {
|
|
924
|
+
"requestState": {
|
|
925
|
+
"enum": [
|
|
926
|
+
"not_sent",
|
|
927
|
+
"sent",
|
|
928
|
+
"unknown"
|
|
929
|
+
],
|
|
930
|
+
"description": "整次调用尚未发送、已有发送记录或无法排除未知请求;不代表业务完成。"
|
|
931
|
+
},
|
|
932
|
+
"coverage": {
|
|
933
|
+
"enum": [
|
|
934
|
+
"complete",
|
|
935
|
+
"partial"
|
|
936
|
+
],
|
|
937
|
+
"description": "请求观察覆盖全部已接入路径,或存在未观测路径;部分覆盖不能声明零请求。"
|
|
938
|
+
},
|
|
939
|
+
"observedAttempts": {
|
|
940
|
+
"type": "integer",
|
|
941
|
+
"minimum": 0,
|
|
942
|
+
"maximum": 9007199254740991,
|
|
943
|
+
"description": "本地已进入发送边界的观测次数下界,不是服务端执行次数。"
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"api": {
|
|
949
|
+
"method": "POST",
|
|
950
|
+
"path": "youzan.scrm.customer.list/1.0.0"
|
|
951
|
+
},
|
|
952
|
+
"success": {
|
|
953
|
+
"description": "同店核验、搜索、所有客户字段及分页和预算均满足契约后,一次输出有限摘要,不返回部分成功。"
|
|
954
|
+
},
|
|
955
|
+
"errors": {
|
|
956
|
+
"description": "失败 stdout 为空,stderr 为一份脱敏 JSON,退出码非零。不重试、重定向、切店、换身份或改用批查。",
|
|
957
|
+
"diagnosticsVersion": 2
|
|
958
|
+
},
|
|
959
|
+
"notes": [
|
|
960
|
+
"15 个筛选直接组合成同一次搜索。固定按创建时间降序;没有任意过滤 JSON、排序、来源渠道、phones 或 lookup。",
|
|
961
|
+
"数值范围支持 LOW..HIGH、LOW..、..HIGH 和相同双边裸值;时间必须含 ..。拒绝首尾或分隔符旁空白、负数、指数及多个分隔符。省略边界不补零或当前时间。",
|
|
962
|
+
"执行需要 userId、hq、shopId、orgType 四字段上下文。非总部目标必须匹配 shopId;总部也仅查本次同店核验目标,不遍历分店。at=all 和绑定成功不证明员工授权。",
|
|
963
|
+
"缺少上下文时只允许显式合法目标的本地 dry-run;无效或冲突上下文即使预览也拒绝。预览不读凭证,不触发认证。",
|
|
964
|
+
"最多一次店铺核验和一次搜索,每次超时 10 秒,累计响应上限 10MiB,最终 UTF-8 输出含换行上限 5MiB,超限失败不裁切。",
|
|
965
|
+
"本页不构成全店全集或强一致快照。继续读取使用明确页码和容量;未知总数、短页或空页不证明全部读取完成。",
|
|
966
|
+
"筛选事实不是摘要事实,不用输入补资产、金额、等级或卡状态;可用 yzOpenId 继续 customer.customer.get,其他命令契约不变。",
|
|
967
|
+
"--kdt-id 省略时使用本次有效上下文 shopId;显式提供的非法值不回退。两者都缺失时拒绝;目标范围、同店核验和服务端权限仍按本命令校验。"
|
|
968
|
+
]
|
|
969
|
+
}
|