@qzsy/pdd-shop-sdk 0.1.0

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.
Files changed (86) hide show
  1. package/LICENSE +21 -0
  2. package/dist/apis/auth.d.ts +22 -0
  3. package/dist/apis/auth.d.ts.map +1 -0
  4. package/dist/apis/auth.js +25 -0
  5. package/dist/apis/auth.js.map +1 -0
  6. package/dist/apis/express.d.ts +58 -0
  7. package/dist/apis/express.d.ts.map +1 -0
  8. package/dist/apis/express.js +68 -0
  9. package/dist/apis/express.js.map +1 -0
  10. package/dist/apis/goods.d.ts +513 -0
  11. package/dist/apis/goods.d.ts.map +1 -0
  12. package/dist/apis/goods.js +665 -0
  13. package/dist/apis/goods.js.map +1 -0
  14. package/dist/apis/logistics.d.ts +119 -0
  15. package/dist/apis/logistics.d.ts.map +1 -0
  16. package/dist/apis/logistics.js +143 -0
  17. package/dist/apis/logistics.js.map +1 -0
  18. package/dist/apis/mall.d.ts +21 -0
  19. package/dist/apis/mall.d.ts.map +1 -0
  20. package/dist/apis/mall.js +23 -0
  21. package/dist/apis/mall.js.map +1 -0
  22. package/dist/apis/order.d.ts +256 -0
  23. package/dist/apis/order.d.ts.map +1 -0
  24. package/dist/apis/order.js +348 -0
  25. package/dist/apis/order.js.map +1 -0
  26. package/dist/apis/refund.d.ts +102 -0
  27. package/dist/apis/refund.d.ts.map +1 -0
  28. package/dist/apis/refund.js +132 -0
  29. package/dist/apis/refund.js.map +1 -0
  30. package/dist/apis/stock.d.ts +103 -0
  31. package/dist/apis/stock.d.ts.map +1 -0
  32. package/dist/apis/stock.js +123 -0
  33. package/dist/apis/stock.js.map +1 -0
  34. package/dist/apis/util.d.ts +21 -0
  35. package/dist/apis/util.d.ts.map +1 -0
  36. package/dist/apis/util.js +23 -0
  37. package/dist/apis/util.js.map +1 -0
  38. package/dist/apis/waybill.d.ts +130 -0
  39. package/dist/apis/waybill.d.ts.map +1 -0
  40. package/dist/apis/waybill.js +164 -0
  41. package/dist/apis/waybill.js.map +1 -0
  42. package/dist/client.d.ts +75 -0
  43. package/dist/client.d.ts.map +1 -0
  44. package/dist/client.js +93 -0
  45. package/dist/client.js.map +1 -0
  46. package/dist/index.d.ts +24 -0
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +14 -0
  49. package/dist/index.js.map +1 -0
  50. package/dist/types/express.d.ts +407 -0
  51. package/dist/types/express.d.ts.map +1 -0
  52. package/dist/types/express.js +2 -0
  53. package/dist/types/express.js.map +1 -0
  54. package/dist/types/goods.d.ts +6985 -0
  55. package/dist/types/goods.d.ts.map +1 -0
  56. package/dist/types/goods.js +2 -0
  57. package/dist/types/goods.js.map +1 -0
  58. package/dist/types/logistics.d.ts +578 -0
  59. package/dist/types/logistics.d.ts.map +1 -0
  60. package/dist/types/logistics.js +2 -0
  61. package/dist/types/logistics.js.map +1 -0
  62. package/dist/types/mall.d.ts +32 -0
  63. package/dist/types/mall.d.ts.map +1 -0
  64. package/dist/types/mall.js +2 -0
  65. package/dist/types/mall.js.map +1 -0
  66. package/dist/types/order.d.ts +5447 -0
  67. package/dist/types/order.d.ts.map +1 -0
  68. package/dist/types/order.js +2 -0
  69. package/dist/types/order.js.map +1 -0
  70. package/dist/types/refund.d.ts +922 -0
  71. package/dist/types/refund.d.ts.map +1 -0
  72. package/dist/types/refund.js +2 -0
  73. package/dist/types/refund.js.map +1 -0
  74. package/dist/types/stock.d.ts +553 -0
  75. package/dist/types/stock.d.ts.map +1 -0
  76. package/dist/types/stock.js +2 -0
  77. package/dist/types/stock.js.map +1 -0
  78. package/dist/types/util.d.ts +10 -0
  79. package/dist/types/util.d.ts.map +1 -0
  80. package/dist/types/util.js +2 -0
  81. package/dist/types/util.js.map +1 -0
  82. package/dist/types/waybill.d.ts +1316 -0
  83. package/dist/types/waybill.d.ts.map +1 -0
  84. package/dist/types/waybill.js +2 -0
  85. package/dist/types/waybill.js.map +1 -0
  86. package/package.json +43 -0
package/dist/client.js ADDED
@@ -0,0 +1,93 @@
1
+ import { PddHttpClient, } from "@qzsy/pdd-core";
2
+ import { ShopAuthApi } from "./apis/auth.js";
3
+ import { ShopExpressApi } from "./apis/express.js";
4
+ import { ShopGoodsApi } from "./apis/goods.js";
5
+ import { ShopLogisticsApi } from "./apis/logistics.js";
6
+ import { ShopMallApi } from "./apis/mall.js";
7
+ import { ShopOrderApi } from "./apis/order.js";
8
+ import { ShopRefundApi } from "./apis/refund.js";
9
+ import { ShopStockApi } from "./apis/stock.js";
10
+ import { ShopUtilApi } from "./apis/util.js";
11
+ import { ShopWaybillApi } from "./apis/waybill.js";
12
+ /**
13
+ * 拼多多商家服务端客户端。
14
+ */
15
+ export class ShopClient {
16
+ /**
17
+ * 底层 HTTP 客户端,需要调用尚未封装的接口时可直接使用。
18
+ */
19
+ http;
20
+ /**
21
+ * 基础支持 / 令牌。
22
+ */
23
+ auth;
24
+ /**
25
+ * 店铺信息。
26
+ */
27
+ mall;
28
+ /**
29
+ * 通用接口,例如服务器时间。
30
+ */
31
+ util;
32
+ /**
33
+ * 仓储仓库。
34
+ */
35
+ express;
36
+ /**
37
+ * 仓储货品与分仓库存。
38
+ */
39
+ stock;
40
+ /**
41
+ * 订单。
42
+ */
43
+ order;
44
+ /**
45
+ * 售后。
46
+ */
47
+ refund;
48
+ /**
49
+ * 物流。
50
+ */
51
+ logistics;
52
+ /**
53
+ * 商品。
54
+ */
55
+ goods;
56
+ /**
57
+ * 电子面单与云打印。
58
+ */
59
+ waybill;
60
+ /**
61
+ * 以调用方注入的店铺令牌访问商家接口。
62
+ *
63
+ * 业务接口与自己持有 `accessToken` 时相同,只是令牌改由 `getAccessToken` 提供。
64
+ *
65
+ * @param caller 应用凭据、授权主体与取令牌函数
66
+ * @param options 可选的令牌存储、超时与 `fetch` 注入
67
+ */
68
+ static forAuthorizer(caller, options) {
69
+ return new ShopClient({ ...caller, callMode: "authorizer" }, options);
70
+ }
71
+ /**
72
+ * @param credentials 应用 `clientId` / `clientSecret`,以及可选的店铺令牌或代调用身份
73
+ * @param options 可选的令牌存储、超时与 `fetch` 注入
74
+ */
75
+ constructor(credentials, options) {
76
+ this.http = new PddHttpClient(credentials, {
77
+ userAgent: "@qzsy/pdd-shop-sdk",
78
+ tokenKind: "access_token",
79
+ ...options,
80
+ });
81
+ this.auth = new ShopAuthApi(this.http);
82
+ this.mall = new ShopMallApi(this.http);
83
+ this.util = new ShopUtilApi(this.http);
84
+ this.express = new ShopExpressApi(this.http);
85
+ this.stock = new ShopStockApi(this.http);
86
+ this.order = new ShopOrderApi(this.http);
87
+ this.refund = new ShopRefundApi(this.http);
88
+ this.logistics = new ShopLogisticsApi(this.http);
89
+ this.goods = new ShopGoodsApi(this.http);
90
+ this.waybill = new ShopWaybillApi(this.http);
91
+ }
92
+ }
93
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAId,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;GAEG;AACH,MAAM,OAAO,UAAU;IACrB;;OAEG;IACM,IAAI,CAAgB;IAE7B;;OA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QAC3C,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,KAAK,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;CACF"}
@@ -0,0 +1,24 @@
1
+ export { ShopClient } from "./client.ts";
2
+ export { ShopAuthApi } from "./apis/auth.ts";
3
+ export { ShopExpressApi } from "./apis/express.ts";
4
+ export { ShopGoodsApi } from "./apis/goods.ts";
5
+ export { ShopLogisticsApi } from "./apis/logistics.ts";
6
+ export { ShopMallApi } from "./apis/mall.ts";
7
+ export { ShopOrderApi } from "./apis/order.ts";
8
+ export { ShopRefundApi } from "./apis/refund.ts";
9
+ export { ShopStockApi } from "./apis/stock.ts";
10
+ export { ShopUtilApi } from "./apis/util.ts";
11
+ export { ShopWaybillApi } from "./apis/waybill.ts";
12
+ export type { ShopExpressAddDepotQuery, ShopExpressChangeDepotInfoQuery, ShopExpressDepotInfo, ShopExpressDepotInfoGetQuery, ShopExpressDepotList, ShopExpressDepotListGetQuery, ShopExpressDepotListItem, ShopExpressDepotOtherRegionProvince, ShopExpressDepotRegion, ShopExpressDepotRegionProvince, ShopExpressSearchDepotItem, ShopExpressSearchDepotQuery, ShopExpressSearchDepotResult, } from "./types/express.ts";
13
+ export type { ShopLogisticsAddress, ShopLogisticsAddressGetResult, ShopLogisticsAvailableCompany, ShopLogisticsAvailableCompanyRecommendQuery, ShopLogisticsAvailableCompanyRecommendResult, ShopLogisticsCompaniesGetResult, ShopLogisticsCompany, ShopLogisticsConsoWaybillInterceptApplyQuery, ShopLogisticsConsoWaybillInterceptApplyResult, ShopLogisticsCrossCabinetRecycleOrderQuery, ShopLogisticsCrossCabinetRecycleOrderResult, ShopLogisticsCrossPackStoreOperateQuery, ShopLogisticsCrossPackStoreOperateRequest, ShopLogisticsCrossPackStoreOperateResult, ShopLogisticsIsvTraceNotifySubQuery, ShopLogisticsIsvTraceNotifySubResult, ShopLogisticsOnlineSendQuery, ShopLogisticsOnlineSendResult, ShopLogisticsOrderTrace, ShopLogisticsOrderTraceGetQuery, ShopLogisticsOrderTraceGetResult, ShopLogisticsReceiptImageUploadQuery, ShopLogisticsReceiptImageUploadResult, ShopLogisticsShipInfo, ShopLogisticsTailExpressSyncJtQuery, ShopLogisticsTailExpressSyncJtResult, ShopLogisticsTailRuralExpressTraceSyncQuery, ShopLogisticsTailRuralExpressTraceSyncResult, } from "./types/logistics.ts";
14
+ export type { ShopMallInfo } from "./types/mall.ts";
15
+ export type { ShopRefundAddress, ShopRefundAddressList, ShopRefundAgreeQuery, ShopRefundAgreeRequest, ShopRefundAgreeResult, ShopRefundAgreeResultData, ShopRefundExchangeShippingDetail, ShopRefundExchangeShippingQuery, ShopRefundExchangeShippingRequest, ShopRefundExchangeShippingResult, ShopRefundExchangeShippingResultData, ShopRefundGeniusSendGoodsCancelInnerResult, ShopRefundGeniusSendGoodsCancelParam, ShopRefundGeniusSendGoodsCancelQuery, ShopRefundGeniusSendGoodsCancelResult, ShopRefundGeniusSendGoodsCancelResultData, ShopRefundImages, ShopRefundImagesGetQuery, ShopRefundImagesGetRequest, ShopRefundImagesGetResult, ShopRefundIncrementList, ShopRefundIncrementListGetQuery, ShopRefundIncrementListItem, ShopRefundInformation, ShopRefundInformationGetQuery, ShopRefundNextoneWarehouseResult, ShopRefundNextoneWarehouseUpdateQuery, ShopRefundNextoneWarehouseUpdateRequest, ShopRefundNextoneWarehouseUpdateResult, ShopRefundReturnGoodsAgreeQuery, ShopRefundReturnGoodsAgreeRequest, ShopRefundReturnGoodsAgreeResult, ShopRefundReturnGoodsAgreeResultData, ShopRefundStatusCheckOrder, ShopRefundStatusCheckQuery, ShopRefundStatusCheckResult, } from "./types/refund.ts";
16
+ export type { ShopStockGoodsSkuQuery, ShopStockGoodsSkuQueryResult, ShopStockMoveOrder, ShopStockMoveRecord, ShopStockWareChild, ShopStockWareChildDetail, ShopStockWareCreateQuery, ShopStockWareDeleteQuery, ShopStockWareDetail, ShopStockWareDetailQuery, ShopStockWareInfo, ShopStockWareInfoListQuery, ShopStockWareInfoListResult, ShopStockWareListQuery, ShopStockWareListResult, ShopStockWareMoveQuery, ShopStockWareSku, ShopStockWareSkuBind, ShopStockWareSkuUpdateQuery, ShopStockWareSpec, ShopStockWareUpdateQuery, ShopStockWareWarehouseQuery, ShopStockWareWarehouseQueryResult, ShopStockWareWarehouseRequest, ShopStockWareWarehouseStock, } from "./types/stock.ts";
17
+ export type { ShopTimeGetResult } from "./types/util.ts";
18
+ export type { ShopGoodsCommitDeleteDraftQuery, ShopGoodsCommitDeleteGoodsQuery, ShopGoodsAddCarouselVideo, ShopGoodsAddElecGoodsAttributes, ShopGoodsAddGoodsPropertiesTableInfoTableValueList, ShopGoodsAddGoodsPropertiesTableInfo, ShopGoodsAddGoodsProperties, ShopGoodsAddGoodsTradeAttrBookingNotes, ShopGoodsAddGoodsTradeAttr, ShopGoodsAddGoodsTravelAttr, ShopGoodsAddOverseaGoods, ShopGoodsAddSkuListOverseaSku, ShopGoodsAddSkuListSkuProperties, ShopGoodsAddSkuList, ShopGoodsAddQuery, ShopGoodsAddResult, ShopGoodsGetAuthorizationCatsQuery, ShopGoodsGetAuthorizationCatsGoodsCatsList, ShopGoodsGetAuthorizationCatsResult, ShopGoodsGetCatRuleGoodsPropertiesTableInfoTableValueList, ShopGoodsGetCatRuleGoodsPropertiesTableInfo, ShopGoodsGetCatRuleGoodsProperties, ShopGoodsGetCatRuleQuery, ShopGoodsGetCatRuleGoodsPropertiesRulePropertiesShowCondition, ShopGoodsGetCatRuleGoodsPropertiesRulePropertiesValuesGroup, ShopGoodsGetCatRuleGoodsPropertiesRulePropertiesValues, ShopGoodsGetCatRuleGoodsPropertiesRuleProperties, ShopGoodsGetCatRuleGoodsPropertiesRule, ShopGoodsGetCatRuleGoodsServiceRuleGoodsServiceRuleMapValue, ShopGoodsGetCatRuleGoodsServiceRule, ShopGoodsGetCatRuleGoodsSkuRule, ShopGoodsGetCatRuleSpuRuleKeyProp, ShopGoodsGetCatRuleSpuRule, ShopGoodsGetCatRuleTwoPiecesDiscountRule, ShopGoodsGetCatRuleResult, ShopGoodsGetCatTemplateQuery, ShopGoodsGetCatTemplatePropertiesValuesGroup, ShopGoodsGetCatTemplatePropertiesValues, ShopGoodsGetCatTemplateProperties, ShopGoodsGetCatTemplateResult, ShopGoodsGetCatsQuery, ShopGoodsGetCatsGoodsCatsList, ShopGoodsGetCatsResult, ShopGoodsEditChildSkuSkusChildSkus, ShopGoodsEditChildSkuSkus, ShopGoodsEditChildSkuQuery, ShopGoodsEditChildSkuResult, ShopGoodsGetCommitDetailQuery, ShopGoodsGetCommitDetailCarouselVideo, ShopGoodsGetCommitDetailElecGoodsAttributes, ShopGoodsGetCommitDetailGoodsPropertyListTableInfoTableValueList, ShopGoodsGetCommitDetailGoodsPropertyListTableInfo, ShopGoodsGetCommitDetailGoodsPropertyList, ShopGoodsGetCommitDetailGoodsTradeAttr, ShopGoodsGetCommitDetailGoodsTravelAttr, ShopGoodsGetCommitDetailOverseaGoods, ShopGoodsGetCommitDetailSkuListOverseaSku, ShopGoodsGetCommitDetailSkuListSkuPropertyList, ShopGoodsGetCommitDetailSkuListSpec, ShopGoodsGetCommitDetailSkuList, ShopGoodsGetCommitDetailResult, ShopGoodsGetCommitListQuery, ShopGoodsGetCommitListList, ShopGoodsGetCommitListResult, ShopGoodsGetCommitStatusQuery, ShopGoodsGetCommitStatusList, ShopGoodsGetCommitStatusResult, ShopGoodsGetCountryCountryList, ShopGoodsGetCountryResult, ShopGoodsChangeCpsMallUnitQuery, ShopGoodsChangeCpsMallUnitResult, ShopGoodsQueryCpsMallUnitResult, ShopGoodsChangeCpsUnitQuery, ShopGoodsChangeCpsUnitResult, ShopGoodsCreateCpsUnitUnits, ShopGoodsCreateCpsUnitQuery, ShopGoodsCreateCpsUnitFailedVos, ShopGoodsCreateCpsUnitResult, ShopGoodsDeleteCpsUnitQuery, ShopGoodsDeleteCpsUnitResult, ShopGoodsQueryCpsUnitQuery, ShopGoodsQueryCpsUnitCouponVo, ShopGoodsQueryCpsUnitResult, ShopGoodsGetDetailQuery, ShopGoodsGetDetailElecGoodsAttributes, ShopGoodsGetDetailGoodsPropertyListTableInfoTableValueList, ShopGoodsGetDetailGoodsPropertyListTableInfo, ShopGoodsGetDetailGoodsPropertyList, ShopGoodsGetDetailGoodsTradeAttrBookingNotes, ShopGoodsGetDetailGoodsTradeAttr, ShopGoodsGetDetailGoodsTravelAttr, ShopGoodsGetDetailOverseaGoods, ShopGoodsGetDetailSkuListOverseaSku, ShopGoodsGetDetailSkuListSkuPropertyList, ShopGoodsGetDetailSkuListSpec, ShopGoodsGetDetailSkuList, ShopGoodsGetDetailVideoGallery, ShopGoodsGetDetailResult, ShopGoodsCommitEditGoodsCarouselVideo, ShopGoodsCommitEditGoodsElecGoodsAttributes, ShopGoodsCommitEditGoodsGoodsPropertiesTableInfoTableValueList, ShopGoodsCommitEditGoodsGoodsPropertiesTableInfo, ShopGoodsCommitEditGoodsGoodsProperties, ShopGoodsCommitEditGoodsGoodsTradeAttrBookingNotes, ShopGoodsCommitEditGoodsGoodsTradeAttr, ShopGoodsCommitEditGoodsGoodsTravelAttr, ShopGoodsCommitEditGoodsOverseaGoods, ShopGoodsCommitEditGoodsSkuListOverseaSku, ShopGoodsCommitEditGoodsSkuListSkuProperties, ShopGoodsCommitEditGoodsSkuList, ShopGoodsCommitEditGoodsQuery, ShopGoodsCommitEditGoodsResult, ShopGoodsGetFileInfoQuery, ShopGoodsGetFileInfoList, ShopGoodsGetFileInfoResult, ShopGoodsUploadFilespaceImageQuery, ShopGoodsUploadFilespaceImageResult, ShopGoodsGetRelationQuery, ShopGoodsGetRelationResultItem, ShopGoodsUploadImageQuery, ShopGoodsUploadImageResult, ShopGoodsUploadImgQuery, ShopGoodsUploadImgResult, ShopGoodsGetInformationQuery, ShopGoodsGetInformationGoodsInfoSkuList, ShopGoodsGetInformationGoodsInfo, ShopGoodsGetInformationResult, ShopGoodsUpdateInformationCarouselVideo, ShopGoodsUpdateInformationElecGoodsAttributes, ShopGoodsUpdateInformationGoodsPropertiesTableInfoTableValueList, ShopGoodsUpdateInformationGoodsPropertiesTableInfo, ShopGoodsUpdateInformationGoodsProperties, ShopGoodsUpdateInformationGoodsTradeAttrBookingNotes, ShopGoodsUpdateInformationGoodsTradeAttr, ShopGoodsUpdateInformationGoodsTravelAttr, ShopGoodsUpdateInformationOverseaGoods, ShopGoodsUpdateInformationSkuListOverseaSku, ShopGoodsUpdateInformationSkuListSkuProperties, ShopGoodsUpdateInformationSkuList, ShopGoodsUpdateInformationQuery, ShopGoodsUpdateInformationResult, ShopGoodsGetLatestCommitStatusQuery, ShopGoodsGetLatestCommitStatusList, ShopGoodsGetLatestCommitStatusResult, ShopGoodsGetListQuery, ShopGoodsGetListGoodsListSkuListSpecDetails, ShopGoodsGetListGoodsListSkuList, ShopGoodsGetListGoodsList, ShopGoodsGetListResult, ShopGoodsGetLogisticsSerTemplateDetailQuery, ShopGoodsGetLogisticsSerTemplateDetailCatListListContent, ShopGoodsGetLogisticsSerTemplateDetailCatListList, ShopGoodsGetLogisticsSerTemplateDetailCatList, ShopGoodsGetLogisticsSerTemplateDetailServiceAreaList, ShopGoodsGetLogisticsSerTemplateDetailResult, ShopGoodsGetLogisticsSerTemplateListQuery, ShopGoodsGetLogisticsSerTemplateListList, ShopGoodsGetLogisticsSerTemplateListResult, ShopGoodsCreateLogisticsTemplateCostTemplateListCostProvinceList, ShopGoodsCreateLogisticsTemplateCostTemplateList, ShopGoodsCreateLogisticsTemplateFreeProvinceList, ShopGoodsCreateLogisticsTemplateQuery, ShopGoodsCreateLogisticsTemplateResult, ShopGoodsGetLogisticsTemplateQuery, ShopGoodsGetLogisticsTemplateLogisticsTemplateList, ShopGoodsGetLogisticsTemplateResult, ShopGoodsCreateMaterialQuery, ShopGoodsCreateMaterialResult, ShopGoodsDeleteMaterialQuery, ShopGoodsDeleteMaterialResult, ShopGoodsQueryMaterialQuery, ShopGoodsQueryMaterialMaterialList, ShopGoodsQueryMaterialResult, ShopGoodsGetOptQuery, ShopGoodsGetOptGoodsOptList, ShopGoodsGetOptResult, ShopGoodsGetOuterCatMappingQuery, ShopGoodsGetOuterCatMappingResult, ShopGoodsCheckPriceQuery, ShopGoodsCheckPriceResult, ShopGoodsUpdateQuantityQuery, ShopGoodsUpdateQuantityResult, ShopGoodsSetSaleStatusQuery, ShopGoodsSetSaleStatusResult, ShopGoodsGetSizespecClassResponseResultChildren, ShopGoodsGetSizespecClassResponseResult, ShopGoodsGetSizespecClassResponse, ShopGoodsGetSizespecClassResult, ShopGoodsGetSizespecMetaQuery, ShopGoodsGetSizespecMetaResponseResultElements, ShopGoodsGetSizespecMetaResponseResultGroups, ShopGoodsGetSizespecMetaResponseResult, ShopGoodsGetSizespecMetaResponse, ShopGoodsGetSizespecMetaResult, ShopGoodsGetSizespecTemplatesQuery, ShopGoodsGetSizespecTemplatesResponseResultDataContentMetaElements, ShopGoodsGetSizespecTemplatesResponseResultDataContentMetaGroups, ShopGoodsGetSizespecTemplatesResponseResultDataContentMeta, ShopGoodsGetSizespecTemplatesResponseResultDataContentRecords, ShopGoodsGetSizespecTemplatesResponseResultDataContent, ShopGoodsGetSizespecTemplatesResponseResultData, ShopGoodsGetSizespecTemplatesResponseResult, ShopGoodsGetSizespecTemplatesResponse, ShopGoodsGetSizespecTemplatesResult, ShopGoodsUpdateSkuPriceSkuPriceList, ShopGoodsUpdateSkuPriceQuery, ShopGoodsUpdateSkuPriceResult, ShopGoodsGetSkusQuery, ShopGoodsGetSkusSpec, ShopGoodsGetSkusResult, ShopGoodsUploadSnImgQuery, ShopGoodsUploadSnImgResult, ShopGoodsGetSpecQuery, ShopGoodsGetSpecGoodsSpecList, ShopGoodsGetSpecResult, ShopGoodsGetSpecIdQuery, ShopGoodsGetSpecIdResult, ShopGoodsGetSpuKeyProp, ShopGoodsGetSpuQuery, ShopGoodsGetSpuBindProp, ShopGoodsGetSpuKeyProp2, ShopGoodsGetSpuSaleProp, ShopGoodsGetSpuResult, ShopGoodsSearchSpuKeyProp, ShopGoodsSearchSpuQuery, ShopGoodsSearchSpuSpuListKeyProp, ShopGoodsSearchSpuSpuList, ShopGoodsSearchSpuResult, ShopGoodsCommitSubmitGoodsCarouselVideo, ShopGoodsCommitSubmitGoodsElecGoodsAttributes, ShopGoodsCommitSubmitGoodsGoodsPropertiesTableInfoTableValueList, ShopGoodsCommitSubmitGoodsGoodsPropertiesTableInfo, ShopGoodsCommitSubmitGoodsGoodsProperties, ShopGoodsCommitSubmitGoodsGoodsTradeAttrBookingNotes, ShopGoodsCommitSubmitGoodsGoodsTradeAttr, ShopGoodsCommitSubmitGoodsGoodsTravelAttr, ShopGoodsCommitSubmitGoodsOverseaGoods, ShopGoodsCommitSubmitGoodsSkuListOverseaSku, ShopGoodsCommitSubmitGoodsSkuListSkuProperties, ShopGoodsCommitSubmitGoodsSkuList, ShopGoodsCommitSubmitGoodsQuery, ShopGoodsCommitSubmitGoodsResult, ShopGoodsSearchTemplatePropertyValueQuery, ShopGoodsSearchTemplatePropertyValueList, ShopGoodsSearchTemplatePropertyValueResult, ShopGoodsUploadVideoQuery, ShopGoodsUploadVideoResult, ShopGoodsListSkuMeasurementMeasurementList, ShopGoodsListSkuMeasurementResult, ShopGoodsGetOneExpressCostTemplateQuery, ShopGoodsGetOneExpressCostTemplateCostTemplateListCostProvinceList, ShopGoodsGetOneExpressCostTemplateCostTemplateList, ShopGoodsGetOneExpressCostTemplateFreeDeliverHouseAreaList, ShopGoodsGetOneExpressCostTemplateFreeProvinceList, ShopGoodsGetOneExpressCostTemplateResult, } from "./types/goods.ts";
19
+ export type { ShopOrderGetBasicListItemList, ShopOrderGetBasicListOrderList, ShopOrderGetBasicListQuery, ShopOrderGetBasicListResult, ShopOrderGetBasicListStepOrderInfo, ShopOrderGetIncrementListBoughtFromVegetableInfo, ShopOrderGetIncrementListCardInfoList, ShopOrderGetIncrementListExpressMemos, ShopOrderGetIncrementListExtendedWarrantyInfo, ShopOrderGetIncrementListExtraDeliveryList, ShopOrderGetIncrementListGiftDeliveryList, ShopOrderGetIncrementListGiftList, ShopOrderGetIncrementListGovernmentSubsidySettleDetails, ShopOrderGetIncrementListItemList, ShopOrderGetIncrementListOrderDepotInfo, ShopOrderGetIncrementListOrderSnIncrementGetResponse, ShopOrderGetIncrementListOrderSnList, ShopOrderGetIncrementListOrderTagList, ShopOrderGetIncrementListPromotionDetailList, ShopOrderGetIncrementListQuery, ShopOrderGetIncrementListRelatedOrderList, ShopOrderGetIncrementListResendDeliveryList, ShopOrderGetIncrementListResult, ShopOrderGetIncrementListServiceFeeDetail, ShopOrderGetIncrementListStepOrderInfo, ShopOrderGetIncrementListWareSubInfoList, ShopOrderGetInformationBoughtFromVegetableInfo, ShopOrderGetInformationCardInfoList, ShopOrderGetInformationExpressMemos, ShopOrderGetInformationExtendedWarrantyInfo, ShopOrderGetInformationExtraDeliveryList, ShopOrderGetInformationGiftDeliveryList, ShopOrderGetInformationGiftList, ShopOrderGetInformationGovernmentSubsidySettleDetails, ShopOrderGetInformationItemList, ShopOrderGetInformationOrderDepotInfo, ShopOrderGetInformationOrderInfo, ShopOrderGetInformationOrderInfoGetResponse, ShopOrderGetInformationOrderTagList, ShopOrderGetInformationPromotionDetailList, ShopOrderGetInformationQuery, ShopOrderGetInformationRelatedOrderList, ShopOrderGetInformationResendDeliveryList, ShopOrderGetInformationResult, ShopOrderGetInformationServiceFeeDetail, ShopOrderGetInformationStepOrderInfo, ShopOrderGetInformationStoreInfo, ShopOrderGetInformationWareSubInfoList, ShopOrderGetListBoughtFromVegetableInfo, ShopOrderGetListCardInfoList, ShopOrderGetListExpressMemos, ShopOrderGetListExtendedWarrantyInfo, ShopOrderGetListExtraDeliveryList, ShopOrderGetListGiftDeliveryList, ShopOrderGetListGiftList, ShopOrderGetListGovernmentSubsidySettleDetails, ShopOrderGetListItemList, ShopOrderGetListOrderDepotInfo, ShopOrderGetListOrderList, ShopOrderGetListOrderTagList, ShopOrderGetListPromotionDetailList, ShopOrderGetListQuery, ShopOrderGetListRelatedOrderList, ShopOrderGetListResendDeliveryList, ShopOrderGetListResult, ShopOrderGetListServiceFeeDetail, ShopOrderGetListStepOrderInfo, ShopOrderGetListWareSubInfoList, ShopOrderGetPromiseInfoPromiseInfo, ShopOrderGetPromiseInfoPromiseInfoGetResponse, ShopOrderGetPromiseInfoQuery, ShopOrderGetPromiseInfoResult, ShopOrderGetPromotionOrderPromotionList, ShopOrderGetPromotionQuery, ShopOrderGetPromotionResult, ShopOrderGetPromotionSellerDiscountDetails, ShopOrderGetReviewInfoOrderList, ShopOrderGetReviewInfoOrderReviewInfoList, ShopOrderGetReviewInfoQuery, ShopOrderGetReviewInfoResponse, ShopOrderGetReviewInfoResult, ShopOrderGetSpecificInformationDeliveryScheduleSubOrderList, ShopOrderGetSpecificInformationExpressMemos, ShopOrderGetSpecificInformationGoodsEntryList, ShopOrderGetSpecificInformationItemList, ShopOrderGetSpecificInformationQuery, ShopOrderGetSpecificInformationResult, ShopOrderGetSpecificInformationSpecificOrderInfo, ShopOrderGetStatusOrderStatusList, ShopOrderGetStatusQuery, ShopOrderGetStatusResult, ShopOrderGetSubmallInformationExtendedWarrantyInfo, ShopOrderGetSubmallInformationExtraDeliveryList, ShopOrderGetSubmallInformationGiftDeliveryList, ShopOrderGetSubmallInformationGiftList, ShopOrderGetSubmallInformationGovernmentSubsidySettleDetails, ShopOrderGetSubmallInformationItemList, ShopOrderGetSubmallInformationOrderDepotInfo, ShopOrderGetSubmallInformationOrderInfo, ShopOrderGetSubmallInformationOrderInfoGetResponse, ShopOrderGetSubmallInformationOrderTagList, ShopOrderGetSubmallInformationPromotionDetailList, ShopOrderGetSubmallInformationPurchaseMallInfo, ShopOrderGetSubmallInformationQuery, ShopOrderGetSubmallInformationReportAuditInfo, ShopOrderGetSubmallInformationResendDeliveryList, ShopOrderGetSubmallInformationResult, ShopOrderGetSubmallInformationServiceFeeDetail, ShopOrderGetSubmallInformationStoreInfo, ShopOrderGetSubmallInformationWareSubInfoList, ShopOrderGetSubmallListExtendedWarrantyInfo, ShopOrderGetSubmallListExtraDeliveryList, ShopOrderGetSubmallListGiftDeliveryList, ShopOrderGetSubmallListGiftList, ShopOrderGetSubmallListGovernmentSubsidySettleDetails, ShopOrderGetSubmallListItemList, ShopOrderGetSubmallListOrderDepotInfo, ShopOrderGetSubmallListOrderList, ShopOrderGetSubmallListOrderListGetResponse, ShopOrderGetSubmallListOrderTagList, ShopOrderGetSubmallListPromotionDetailList, ShopOrderGetSubmallListPurchaseMallInfo, ShopOrderGetSubmallListQuery, ShopOrderGetSubmallListResendDeliveryList, ShopOrderGetSubmallListResult, ShopOrderGetSubmallListServiceFeeDetail, ShopOrderGetSubmallListWareSubInfoList, ShopOrderGetTradeinInfoAttachmentUploadRuleList, ShopOrderGetTradeinInfoQuery, ShopOrderGetTradeinInfoReportAuditInfo, ShopOrderGetTradeinInfoResponse, ShopOrderGetTradeinInfoResult, ShopOrderGetTradeinInfoResultData, ShopOrderGetTradeinInfoResultDataOrderActivityInfoMapValue, ShopOrderGetVirtualInformationOrderVirtualInformationResponse, ShopOrderGetVirtualInformationQuery, ShopOrderGetVirtualInformationResult, ShopOrderGroupMergeShipOrderMergeShipOrderGroupResponse, ShopOrderGroupMergeShipOrderOrderGroupList, ShopOrderGroupMergeShipOrderOrderList, ShopOrderGroupMergeShipOrderQuery, ShopOrderGroupMergeShipOrderResult, ShopOrderPostTradeinSnQuery, ShopOrderPostTradeinSnRequest, ShopOrderPostTradeinSnResponse, ShopOrderPostTradeinSnResult, ShopOrderQueryBuyOrderSplitBillAmountQuery, ShopOrderQueryBuyOrderSplitBillAmountRequest, ShopOrderQueryBuyOrderSplitBillAmountResponse, ShopOrderQueryBuyOrderSplitBillAmountResult, ShopOrderQueryBuyOrderSplitBillAmountResultData, ShopOrderQueryBuyOrderSplitBillAmountResultList, ShopOrderQuerySpecialSurveyAnswerList, ShopOrderQuerySpecialSurveyQuery, ShopOrderQuerySpecialSurveyResponse, ShopOrderQuerySpecialSurveyResult, ShopOrderQuerySpecialSurveyResultData, ShopOrderSearchQuery, ShopOrderSearchResult, ShopOrderSearchSearchOrderResponse, ShopOrderSyncErpQuery, ShopOrderSyncErpResult, ShopOrderUpdateAddressQuery, ShopOrderUpdateAddressResponse, ShopOrderUpdateAddressResult, ShopOrderUpdateAddressResultData, ShopOrderUpdateNoteQuery, ShopOrderUpdateNoteResponse, ShopOrderUpdateNoteResult, ShopOrderUpdateServiceBenefitQuery, ShopOrderUpdateServiceBenefitResult, ShopOrderUpdateServiceBenefitServiceBenefitUpdateResponse, ShopOrderUploadAccountAttachmentAttachmentInfoList, ShopOrderUploadAccountAttachmentQuery, ShopOrderUploadAccountAttachmentResult, ShopOrderUploadAccountAttachmentResultData, ShopOrderUploadDeliveryFeatureQuery, ShopOrderUploadDeliveryFeatureResult, ShopOrderUploadDeliveryFeatureUploadDeliveryFeatureResponse, ShopOrderUploadDeliveryIdenInfoConfirmNoSnConfig, ShopOrderUploadDeliveryIdenInfoGoodsIdenConfigList, ShopOrderUploadDeliveryIdenInfoImageConfigList, ShopOrderUploadDeliveryIdenInfoOrderIdenConfig, ShopOrderUploadDeliveryIdenInfoQuery, ShopOrderUploadDeliveryIdenInfoRequest, ShopOrderUploadDeliveryIdenInfoResponse, ShopOrderUploadDeliveryIdenInfoResult, ShopOrderUploadDeliveryIdenInfoResultData, ShopOrderUploadDeliveryIdenInfoTextConfigList, ShopOrderUploadExtraLogisticsExtraTrackList, ShopOrderUploadExtraLogisticsQuery, ShopOrderUploadExtraLogisticsResult, ShopOrderUploadExtraLogisticsUploadExtraLogisticsResponse, ShopOrderUploadRelationLogisticsExtraTrackList, ShopOrderUploadRelationLogisticsQuery, ShopOrderUploadRelationLogisticsResult, ShopOrderUploadRelationLogisticsUploadExtraLogisticsResponse, } from "./types/order.ts";
20
+ export type { ShopWaybillAddress, ShopWaybillApplySubscription, ShopWaybillBranchAccount, ShopWaybillCancelQuery, ShopWaybillCancelResponse, ShopWaybillCancelResult, ShopWaybillCloudPrintCustomAreaData, ShopWaybillCloudPrintData, ShopWaybillCloudPrintPrinterSetting, ShopWaybillCloudPrintQuery, ShopWaybillCloudPrintRequest, ShopWaybillCloudPrintResponse, ShopWaybillCloudPrintResult, ShopWaybillCloudPrintResultData, ShopWaybillCloudPrintResultItem, ShopWaybillCloudPrintTaskItem, ShopWaybillCloudPrintTaskQuery, ShopWaybillCloudPrintTaskQueryRequest, ShopWaybillCloudPrintTaskQueryResponse, ShopWaybillCloudPrintTaskQueryResult, ShopWaybillCloudPrintTaskQueryResultData, ShopWaybillCloudPrintVerifyCodeQuery, ShopWaybillCloudPrintVerifyCodeRequest, ShopWaybillCloudPrintVerifyCodeResult, ShopWaybillCloudPrintVerifyCodeResultData, ShopWaybillCloudPrintWaybillData, ShopWaybillCloudPrinterBindQuery, ShopWaybillCloudPrinterBindRequest, ShopWaybillCloudPrinterBindResult, ShopWaybillCloudPrinterBindResultData, ShopWaybillCloudPrinterSettingQuery, ShopWaybillCloudPrinterSettingRequest, ShopWaybillCloudPrinterSettingResponse, ShopWaybillCloudPrinterSettingResult, ShopWaybillCloudPrinterSettingResultData, ShopWaybillCloudPrinterStatusQuery, ShopWaybillCloudPrinterStatusQueryRequest, ShopWaybillCloudPrinterStatusQueryResponse, ShopWaybillCloudPrinterStatusQueryResult, ShopWaybillCloudPrinterStatusQueryResultData, ShopWaybillCustomArea, ShopWaybillCustomAreasGetQuery, ShopWaybillCustomAreasGetResponse, ShopWaybillCustomAreasGetResult, ShopWaybillCustomAreasGetResultData, ShopWaybillGetModule, ShopWaybillGetQuery, ShopWaybillGetRequest, ShopWaybillGetResponse, ShopWaybillGetResult, ShopWaybillOrderInfo, ShopWaybillPackageInfo, ShopWaybillPackageItem, ShopWaybillQueryByCodeModule, ShopWaybillQueryByCodeParam, ShopWaybillQueryByCodeQuery, ShopWaybillQueryByCodeResponse, ShopWaybillQueryByCodeResult, ShopWaybillRecipient, ShopWaybillSearchQuery, ShopWaybillSearchResponse, ShopWaybillSearchResult, ShopWaybillSender, ShopWaybillServiceAttribute, ShopWaybillServiceInfo, ShopWaybillShipAddress, ShopWaybillStdTemplate, ShopWaybillStdTemplatesGetQuery, ShopWaybillStdTemplatesGetResponse, ShopWaybillStdTemplatesGetResult, ShopWaybillStdTemplatesGetResultData, ShopWaybillStdTemplateWp, ShopWaybillTradeOrderInfo, ShopWaybillUpdateAddress, ShopWaybillUpdatePackageInfo, ShopWaybillUpdatePackageItem, ShopWaybillUpdateQuery, ShopWaybillUpdateRecipient, ShopWaybillUpdateRequest, ShopWaybillUpdateResponse, ShopWaybillUpdateResult, ShopWaybillUpdateSender, ShopWaybillVasAccount, } from "./types/waybill.ts";
21
+ export { MemoryTokenStore, PddApiError, PddError, PddHttpError, } from "@qzsy/pdd-core";
22
+ export type { PddAppCredentials, PddAuthorizerCaller, PddCallMode, PddClientCaller, PddClientOptions, PddErrorContext, PddMerchantCaller, TokenStore, } from "@qzsy/pdd-core";
23
+ export { isAuthorizerCaller } from "@qzsy/pdd-core";
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,O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AoC,EACpC,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ export { ShopClient } from "./client.js";
2
+ export { ShopAuthApi } from "./apis/auth.js";
3
+ export { ShopExpressApi } from "./apis/express.js";
4
+ export { ShopGoodsApi } from "./apis/goods.js";
5
+ export { ShopLogisticsApi } from "./apis/logistics.js";
6
+ export { ShopMallApi } from "./apis/mall.js";
7
+ export { ShopOrderApi } from "./apis/order.js";
8
+ export { ShopRefundApi } from "./apis/refund.js";
9
+ export { ShopStockApi } from "./apis/stock.js";
10
+ export { ShopUtilApi } from "./apis/util.js";
11
+ export { ShopWaybillApi } from "./apis/waybill.js";
12
+ export { MemoryTokenStore, PddApiError, PddError, PddHttpError, } from "@qzsy/pdd-core";
13
+ export { isAuthorizerCaller } from "@qzsy/pdd-core";
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA+oBnD,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,YAAY,GACb,MAAM,gBAAgB,CAAC;AAWxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,407 @@
1
+ /**
2
+ * 仓库覆盖区域:省 id → 市 id → 区 id 列表。
3
+ *
4
+ * 例如 `{"34":{"396":["3383"]}}`。
5
+ */
6
+ export type ShopExpressDepotRegion = Record<string, Record<string, readonly string[]>>;
7
+ /**
8
+ * 增加仓库的请求参数。
9
+ *
10
+ * 字段与开放平台「增加仓库」`pdd.express.add.depot` 对齐。
11
+ */
12
+ export interface ShopExpressAddDepotQuery {
13
+ /**
14
+ * 联系人姓名。
15
+ */
16
+ contact_name?: string;
17
+ /**
18
+ * 仓库详细地址5-20字。
19
+ */
20
+ depot_address: string;
21
+ /**
22
+ * 别名。
23
+ */
24
+ depot_alias: string;
25
+ /**
26
+ * 所在市 id。
27
+ */
28
+ depot_city_id: number;
29
+ /**
30
+ * 仓库编码。
31
+ */
32
+ depot_code: string;
33
+ /**
34
+ * 所在区 id。
35
+ */
36
+ depot_district_id: number;
37
+ /**
38
+ * 仓库名称。
39
+ */
40
+ depot_name: string;
41
+ /**
42
+ * 所在省 id。
43
+ */
44
+ depot_province_id: number;
45
+ /**
46
+ * 仓库区域(省->市->区id列表)。例如 `{"34":{"396":[3383]}}`。
47
+ */
48
+ depot_region: ShopExpressDepotRegion;
49
+ /**
50
+ * 联系人电话。
51
+ */
52
+ telephone?: string;
53
+ /**
54
+ * 邮编。
55
+ */
56
+ zip_code?: string;
57
+ }
58
+ /**
59
+ * 修改仓库信息的请求参数。
60
+ *
61
+ * 字段与开放平台「修改仓库信息」`pdd.express.change.depot.info` 对齐。
62
+ */
63
+ export interface ShopExpressChangeDepotInfoQuery {
64
+ /**
65
+ * 仓库 id。
66
+ */
67
+ depot_id: number;
68
+ /**
69
+ * 仓库编码。
70
+ */
71
+ depot_code?: string;
72
+ /**
73
+ * 仓库名称。
74
+ */
75
+ depot_name?: string;
76
+ /**
77
+ * 别名。
78
+ */
79
+ depot_alias?: string;
80
+ /**
81
+ * 所在省 id。
82
+ */
83
+ depot_province_id?: number;
84
+ /**
85
+ * 所在市 id。
86
+ */
87
+ depot_city_id?: number;
88
+ /**
89
+ * 所在区 id。
90
+ */
91
+ depot_district_id?: number;
92
+ /**
93
+ * 仓库详细地址 5-20字。
94
+ */
95
+ depot_address?: string;
96
+ /**
97
+ * 联系人姓名。
98
+ */
99
+ contact_name?: string;
100
+ /**
101
+ * 联系人电话。
102
+ */
103
+ telephone?: string;
104
+ /**
105
+ * 仓库区域(省->市->区id列表)。文档类型为 STRING,例如 `{"34":{"396":[3383]}}`。
106
+ */
107
+ depot_region?: string;
108
+ }
109
+ /**
110
+ * 查询仓库详情的请求参数。
111
+ *
112
+ * 字段与开放平台「仓库详细信息」`pdd.express.depot.info.get` 对齐。
113
+ */
114
+ export interface ShopExpressDepotInfoGetQuery {
115
+ /**
116
+ * 仓库 id。
117
+ */
118
+ depot_id: number;
119
+ }
120
+ /**
121
+ * 其他仓库覆盖区域中的省份信息。
122
+ *
123
+ * `district` 的区 id 列表官方类型为 `INTEGER[]`。
124
+ */
125
+ export interface ShopExpressDepotOtherRegionProvince {
126
+ /**
127
+ * `1` 半覆盖,`2` 全覆盖。
128
+ */
129
+ cover?: number;
130
+ /**
131
+ * 城市id -> 区id列表。
132
+ */
133
+ district?: Record<string, readonly number[]>;
134
+ }
135
+ /**
136
+ * 该仓库覆盖区域中的省份信息。
137
+ *
138
+ * `district` 的区 id 列表官方类型为 `STRING[]`。
139
+ */
140
+ export interface ShopExpressDepotRegionProvince {
141
+ /**
142
+ * `1` 半覆盖,`2` 全覆盖。
143
+ */
144
+ cover?: number;
145
+ /**
146
+ * 城市id -> 区id列表。
147
+ */
148
+ district?: Record<string, readonly string[]>;
149
+ }
150
+ /**
151
+ * 仓库详情。
152
+ *
153
+ * 字段与开放平台「仓库详细信息」`pdd.express.depot.info.get` 对齐。
154
+ */
155
+ export interface ShopExpressDepotInfo {
156
+ /**
157
+ * 详细地址。
158
+ */
159
+ address?: string;
160
+ /**
161
+ * 仓库别名。
162
+ */
163
+ alias?: string;
164
+ /**
165
+ * 仓库地址(市编号)。
166
+ */
167
+ city?: number;
168
+ /**
169
+ * 仓库编码。
170
+ */
171
+ code?: string;
172
+ /**
173
+ * 联系人姓名。
174
+ */
175
+ contact_name?: string;
176
+ /**
177
+ * 联系人电话。
178
+ */
179
+ contact_tel?: string;
180
+ /**
181
+ * 仓库 id。
182
+ */
183
+ depot_id?: number;
184
+ /**
185
+ * 仓库地址(区编号)。
186
+ */
187
+ district?: number;
188
+ /**
189
+ * 仓库id(string)。
190
+ */
191
+ id_str?: string;
192
+ /**
193
+ * 仓库名称。
194
+ */
195
+ name?: string;
196
+ /**
197
+ * 其他仓库覆盖区域列表(外层 key 为省 id;cover 为该省份覆盖情况:1 半覆盖,2 全覆盖;district 为省中覆盖的地址:市id->区id列表)。
198
+ */
199
+ other_region?: Record<string, ShopExpressDepotOtherRegionProvince>;
200
+ /**
201
+ * 仓库地址(省编号)。
202
+ */
203
+ province?: number;
204
+ /**
205
+ * 该仓库覆盖区域列表(外层 key 为省 id;cover 为该省份覆盖情况:1 半覆盖,2 全覆盖;district 为省中覆盖的地址:市id->区id列表)。
206
+ */
207
+ region?: Record<string, ShopExpressDepotRegionProvince>;
208
+ /**
209
+ * 仓库类型,暂时只有1。
210
+ */
211
+ type?: number;
212
+ /**
213
+ * 邮编。
214
+ */
215
+ zip?: string;
216
+ }
217
+ /**
218
+ * 查询仓库列表的请求参数。
219
+ *
220
+ * 字段与开放平台「仓库列表」`pdd.express.depot.list.get` 对齐。
221
+ */
222
+ export interface ShopExpressDepotListGetQuery {
223
+ /**
224
+ * 分页数据 size。
225
+ */
226
+ length: number;
227
+ /**
228
+ * 分页数据起始位置。
229
+ */
230
+ start: number;
231
+ }
232
+ /**
233
+ * 仓库列表中的一条仓库。
234
+ *
235
+ * 字段与开放平台「仓库列表」`pdd.express.depot.list.get` 对齐。
236
+ */
237
+ export interface ShopExpressDepotListItem {
238
+ /**
239
+ * 仓库详细地址。
240
+ */
241
+ address?: string;
242
+ /**
243
+ * 仓库别名。
244
+ */
245
+ alias?: string;
246
+ /**
247
+ * 仓库所在市。
248
+ */
249
+ city?: number;
250
+ /**
251
+ * 仓库编码。
252
+ */
253
+ code?: string;
254
+ /**
255
+ * 联系人名字。
256
+ */
257
+ contact_name?: string;
258
+ /**
259
+ * 联系人电话。
260
+ */
261
+ contact_tel?: string;
262
+ /**
263
+ * 仓库Id。
264
+ */
265
+ depot_id?: number;
266
+ /**
267
+ * 仓库所在区。
268
+ */
269
+ district?: number;
270
+ /**
271
+ * 仓库Id2。
272
+ */
273
+ id_str?: string;
274
+ /**
275
+ * 仓库名称。
276
+ */
277
+ name?: string;
278
+ /**
279
+ * 仓库所在省。
280
+ */
281
+ province?: number;
282
+ /**
283
+ * 覆盖信息。key 是覆盖的省id;value 中 `1` 表示局部,`2` 表示全部覆盖。
284
+ */
285
+ province_map?: Record<string, number>;
286
+ /**
287
+ * 仓库类型。
288
+ */
289
+ type?: number;
290
+ /**
291
+ * 邮编。
292
+ */
293
+ zip?: string;
294
+ }
295
+ /**
296
+ * 仓库列表。
297
+ */
298
+ export interface ShopExpressDepotList {
299
+ /**
300
+ * 仓库数量。
301
+ */
302
+ count?: number;
303
+ /**
304
+ * 仓库列表。
305
+ */
306
+ depot_list?: ShopExpressDepotListItem[];
307
+ }
308
+ /**
309
+ * 按名称和编码查询仓库的请求参数。
310
+ *
311
+ * 字段与开放平台「根据仓库名称和仓库编码查询仓库」`pdd.express.search.depot` 对齐。
312
+ */
313
+ export interface ShopExpressSearchDepotQuery {
314
+ /**
315
+ * 仓库编码。
316
+ */
317
+ code: string;
318
+ /**
319
+ * 分页数据size。
320
+ */
321
+ length: number;
322
+ /**
323
+ * 仓库名称。
324
+ */
325
+ name: string;
326
+ /**
327
+ * 分页数据起始位置。
328
+ */
329
+ start: number;
330
+ }
331
+ /**
332
+ * 按名称和编码查出的一条仓库。
333
+ *
334
+ * 字段与开放平台「根据仓库名称和仓库编码查询仓库」`pdd.express.search.depot` 对齐。
335
+ */
336
+ export interface ShopExpressSearchDepotItem {
337
+ /**
338
+ * 详细地址。
339
+ */
340
+ address?: string;
341
+ /**
342
+ * 仓库别名。
343
+ */
344
+ alias?: string;
345
+ /**
346
+ * 仓库地址(市编号)。
347
+ */
348
+ city?: number;
349
+ /**
350
+ * 仓库编码。
351
+ */
352
+ code?: string;
353
+ /**
354
+ * 联系人姓名。
355
+ */
356
+ contact_name?: string;
357
+ /**
358
+ * 联系人电话。
359
+ */
360
+ contact_tel?: string;
361
+ /**
362
+ * 仓库id。
363
+ */
364
+ depot_id?: number;
365
+ /**
366
+ * 仓库地址(区编号)。
367
+ */
368
+ district?: number;
369
+ /**
370
+ * 仓库id(string)。
371
+ */
372
+ id_str?: string;
373
+ /**
374
+ * 仓库名称。
375
+ */
376
+ name?: string;
377
+ /**
378
+ * 仓库地址(省编号)。
379
+ */
380
+ province?: number;
381
+ /**
382
+ * 覆盖信息,省:全覆盖。value 为 `1` 半覆盖,`2` 全覆盖。
383
+ */
384
+ province_map?: Record<string, string>;
385
+ /**
386
+ * 仓库类型,暂时只有1。
387
+ */
388
+ type?: number;
389
+ /**
390
+ * 邮编。
391
+ */
392
+ zip?: string;
393
+ }
394
+ /**
395
+ * 按名称和编码查询仓库的结果。
396
+ */
397
+ export interface ShopExpressSearchDepotResult {
398
+ /**
399
+ * 数量。
400
+ */
401
+ count?: number;
402
+ /**
403
+ * 仓库列表。
404
+ */
405
+ depot_list?: ShopExpressSearchDepotItem[];
406
+ }
407
+ //# sourceMappingURL=express.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express.d.ts","sourceRoot":"","sources":["../../src/types/express.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;AAEvF;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,YAAY,EAAE,sBAAsB,CAAC;IAErC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EA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,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,0BAA0B,EAAE,CAAC;CAC3C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=express.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express.js","sourceRoot":"","sources":["../../src/types/express.ts"],"names":[],"mappings":""}