@be-link/ecommerce-backend-bff-service-node-sdk 0.0.25 → 0.0.26

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/cjs/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { PandoraExampleService } from './bff/modules/pandora/example/service';
2
- import { PandoraStoreService } from './bff/modules/pandora/store/service';
3
- import { PandoraStoreSelectionService } from './bff/modules/pandora/storeSelection/service';
4
2
  import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
5
3
  import { PandoraProductService } from './bff/modules/pandora/product/service';
6
4
  import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
@@ -22,14 +20,6 @@ export declare class PandoraSDK {
22
20
  product: PandoraProductService;
23
21
  productExp: PandoraProductExpService;
24
22
  productLive: PandoraProductLiveService;
25
- /**
26
- * Pandora 门店服务模块
27
- */
28
- store: PandoraStoreService;
29
- /**
30
- * Pandora 圈选门店服务模块
31
- */
32
- storeSelection: PandoraStoreSelectionService;
33
23
  /**
34
24
  * 使用配置选项初始化 Pandora SDK
35
25
  * @param options - SDK 配置,包含凭证回调函数
@@ -60,8 +50,6 @@ export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
60
50
  export * from './enums';
61
51
  export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
62
52
  export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
63
- export { Service as PandoraStoreTypes } from './bff/modules/pandora/store/types';
64
- export { Service as PandoraStoreSelectionTypes } from './bff/modules/pandora/storeSelection/types';
65
53
  export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
66
54
  export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
67
55
  export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
package/cjs/index.js CHANGED
@@ -14,15 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.PandoraStoreSelectionTypes = exports.PandoraStoreTypes = exports.SystemError = exports.BizError = exports.SdkError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
17
+ exports.SystemError = exports.BizError = exports.SdkError = exports.MiniProgramSDK = exports.PandoraSDK = void 0;
18
18
  const client_1 = require("./bff/request/client");
19
19
  const service_1 = require("./bff/modules/pandora/example/service");
20
- const service_2 = require("./bff/modules/pandora/store/service");
21
- const service_3 = require("./bff/modules/pandora/storeSelection/service");
22
- const service_4 = require("./bff/modules/miniprogram/demo/service");
23
- const service_5 = require("./bff/modules/pandora/product/service");
24
- const service_6 = require("./bff/modules/pandora/productExp/service");
25
- const service_7 = require("./bff/modules/pandora/productLive/service");
20
+ const service_2 = require("./bff/modules/miniprogram/demo/service");
21
+ const service_3 = require("./bff/modules/pandora/product/service");
22
+ const service_4 = require("./bff/modules/pandora/productExp/service");
23
+ const service_5 = require("./bff/modules/pandora/productLive/service");
26
24
  /**
27
25
  * Pandora 平台 SDK(管理后台)
28
26
  * 包含所有 Pandora 平台相关的服务
@@ -37,11 +35,9 @@ class PandoraSDK {
37
35
  this.http = new client_1.HttpClient(options);
38
36
  // 使用 HttpClient 实例化所有 Pandora 服务模块
39
37
  this.example = new service_1.PandoraExampleService(this.http);
40
- this.store = new service_2.PandoraStoreService(this.http);
41
- this.storeSelection = new service_3.PandoraStoreSelectionService(this.http);
42
- this.product = new service_5.PandoraProductService(this.http);
43
- this.productExp = new service_6.PandoraProductExpService(this.http);
44
- this.productLive = new service_7.PandoraProductLiveService(this.http);
38
+ this.product = new service_3.PandoraProductService(this.http);
39
+ this.productExp = new service_4.PandoraProductExpService(this.http);
40
+ this.productLive = new service_5.PandoraProductLiveService(this.http);
45
41
  }
46
42
  }
47
43
  exports.PandoraSDK = PandoraSDK;
@@ -58,7 +54,7 @@ class MiniProgramSDK {
58
54
  // 使用提供的选项初始化 HttpClient
59
55
  this.http = new client_1.HttpClient(options);
60
56
  // 使用 HttpClient 实例化所有小程序服务模块
61
- this.demo = new service_4.MiniProgramDemoService(this.http);
57
+ this.demo = new service_2.MiniProgramDemoService(this.http);
62
58
  }
63
59
  }
64
60
  exports.MiniProgramSDK = MiniProgramSDK;
@@ -70,7 +66,3 @@ Object.defineProperty(exports, "BizError", { enumerable: true, get: function ()
70
66
  Object.defineProperty(exports, "SystemError", { enumerable: true, get: function () { return errors_1.SystemError; } });
71
67
  // 枚举和常量
72
68
  __exportStar(require("./enums"), exports);
73
- var types_1 = require("./bff/modules/pandora/store/types");
74
- Object.defineProperty(exports, "PandoraStoreTypes", { enumerable: true, get: function () { return types_1.Service; } });
75
- var types_2 = require("./bff/modules/pandora/storeSelection/types");
76
- Object.defineProperty(exports, "PandoraStoreSelectionTypes", { enumerable: true, get: function () { return types_2.Service; } });
package/esm/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { PandoraExampleService } from './bff/modules/pandora/example/service';
2
- import { PandoraStoreService } from './bff/modules/pandora/store/service';
3
- import { PandoraStoreSelectionService } from './bff/modules/pandora/storeSelection/service';
4
2
  import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service';
5
3
  import { PandoraProductService } from './bff/modules/pandora/product/service';
6
4
  import { PandoraProductExpService } from './bff/modules/pandora/productExp/service';
@@ -22,14 +20,6 @@ export declare class PandoraSDK {
22
20
  product: PandoraProductService;
23
21
  productExp: PandoraProductExpService;
24
22
  productLive: PandoraProductLiveService;
25
- /**
26
- * Pandora 门店服务模块
27
- */
28
- store: PandoraStoreService;
29
- /**
30
- * Pandora 圈选门店服务模块
31
- */
32
- storeSelection: PandoraStoreSelectionService;
33
23
  /**
34
24
  * 使用配置选项初始化 Pandora SDK
35
25
  * @param options - SDK 配置,包含凭证回调函数
@@ -60,8 +50,6 @@ export { SdkOptions, IRequestStrategy, StandardResponse } from './types';
60
50
  export * from './enums';
61
51
  export { Service as MiniProgramDemoTypes } from './bff/modules/miniprogram/demo/types';
62
52
  export { Service as PandoraExampleTypes } from './bff/modules/pandora/example/types';
63
- export { Service as PandoraStoreTypes } from './bff/modules/pandora/store/types';
64
- export { Service as PandoraStoreSelectionTypes } from './bff/modules/pandora/storeSelection/types';
65
53
  export { PandoraProductService as PandoraProductServiceTypes } from './bff/modules/pandora/product/types';
66
54
  export { PandoraProductExpService as PandoraProductExpServiceTypes } from './bff/modules/pandora/productExp/types';
67
55
  export { PandoraProductLiveService as PandoraProductLiveServiceTypes } from './bff/modules/pandora/productLive/types';
package/esm/index.mjs CHANGED
@@ -1,7 +1,5 @@
1
1
  import { HttpClient } from './bff/request/client.mjs';
2
2
  import { PandoraExampleService } from './bff/modules/pandora/example/service.mjs';
3
- import { PandoraStoreService } from './bff/modules/pandora/store/service.mjs';
4
- import { PandoraStoreSelectionService } from './bff/modules/pandora/storeSelection/service.mjs';
5
3
  import { MiniProgramDemoService } from './bff/modules/miniprogram/demo/service.mjs';
6
4
  import { PandoraProductService } from './bff/modules/pandora/product/service.mjs';
7
5
  import { PandoraProductExpService } from './bff/modules/pandora/productExp/service.mjs';
@@ -20,8 +18,6 @@ export class PandoraSDK {
20
18
  this.http = new HttpClient(options);
21
19
  // 使用 HttpClient 实例化所有 Pandora 服务模块
22
20
  this.example = new PandoraExampleService(this.http);
23
- this.store = new PandoraStoreService(this.http);
24
- this.storeSelection = new PandoraStoreSelectionService(this.http);
25
21
  this.product = new PandoraProductService(this.http);
26
22
  this.productExp = new PandoraProductExpService(this.http);
27
23
  this.productLive = new PandoraProductLiveService(this.http);
@@ -48,5 +44,3 @@ export class MiniProgramSDK {
48
44
  export { SdkError, BizError, SystemError } from './errors/index.mjs';
49
45
  // 枚举和常量
50
46
  export * from './enums.mjs';
51
- export { Service as PandoraStoreTypes } from './bff/modules/pandora/store/types.mjs';
52
- export { Service as PandoraStoreSelectionTypes } from './bff/modules/pandora/storeSelection/types.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-backend-bff-service-node-sdk",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -1,77 +0,0 @@
1
- import { Service } from './types';
2
- import BaseService from '../../BaseService';
3
- import type { StandardResponse } from '../../../../types';
4
- /**
5
- * PandoraStoreService - Pandora Store 服务模块
6
- * 提供门店管理相关的 API 方法
7
- * 平台: pandora
8
- */
9
- export declare class PandoraStoreService extends BaseService {
10
- protected prefixUrl: string;
11
- /**
12
- * 创建门店
13
- * @param request - 请求参数
14
- * @returns Promise,解析为标准响应格式
15
- */
16
- createStore(request: Service.Request.createStore): Promise<StandardResponse<Service.Response.createStore>>;
17
- /**
18
- * 编辑门店信息
19
- * @param request - 请求参数
20
- * @returns Promise,解析为标准响应格式
21
- */
22
- updateStoreInfo(request: Service.Request.updateStoreInfo): Promise<StandardResponse<Service.Response.updateStoreInfo>>;
23
- /**
24
- * 获取门店详情
25
- * @param request - 请求参数
26
- * @returns Promise,解析为标准响应格式
27
- */
28
- getStoreDetail(request: Service.Request.getStoreDetail): Promise<StandardResponse<Service.Response.getStoreDetail>>;
29
- /**
30
- * 获取门店列表
31
- * @param request - 请求参数
32
- * @returns Promise,解析为标准响应格式
33
- */
34
- getStoreList(request: Service.Request.getStoreList): Promise<StandardResponse<Service.Response.getStoreList>>;
35
- /**
36
- * 批量修改门店经营状态
37
- * @param request - 请求参数
38
- * @returns Promise,解析为标准响应格式
39
- */
40
- batchUpdateBusinessStatus(request: Service.Request.batchUpdateBusinessStatus): Promise<StandardResponse<Service.Response.batchUpdateBusinessStatus>>;
41
- /**
42
- * 绑定用户到门店
43
- * @param request - 请求参数
44
- * @returns Promise,解析为标准响应格式
45
- */
46
- bindUserToStore(request: Service.Request.bindUserToStore): Promise<StandardResponse<Service.Response.bindUserToStore>>;
47
- /**
48
- * 解绑用户
49
- * @param request - 请求参数
50
- * @returns Promise,解析为标准响应格式
51
- */
52
- unbindUserFromStore(request: Service.Request.unbindUserFromStore): Promise<StandardResponse<Service.Response.unbindUserFromStore>>;
53
- /**
54
- * 创建门店分组
55
- * @param request - 请求参数
56
- * @returns Promise,解析为标准响应格式
57
- */
58
- createStoreGroup(request: Service.Request.createStoreGroup): Promise<StandardResponse<Service.Response.createStoreGroup>>;
59
- /**
60
- * 编辑门店分组
61
- * @param request - 请求参数
62
- * @returns Promise,解析为标准响应格式
63
- */
64
- editStoreGroup(request: Service.Request.editStoreGroup): Promise<StandardResponse<Service.Response.editStoreGroup>>;
65
- /**
66
- * 删除门店分组
67
- * @param request - 请求参数
68
- * @returns Promise,解析为标准响应格式
69
- */
70
- deleteStoreGroup(request: Service.Request.deleteStoreGroup): Promise<StandardResponse<Service.Response.deleteStoreGroup>>;
71
- /**
72
- * 查询门店分组列表
73
- * @param request - 请求参数
74
- * @returns Promise,解析为标准响应格式
75
- */
76
- getStoreGroupList(request: Service.Request.getStoreGroupList): Promise<StandardResponse<Service.Response.getStoreGroupList>>;
77
- }
@@ -1,107 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PandoraStoreService = void 0;
7
- const BaseService_1 = __importDefault(require("../../BaseService"));
8
- /**
9
- * PandoraStoreService - Pandora Store 服务模块
10
- * 提供门店管理相关的 API 方法
11
- * 平台: pandora
12
- */
13
- class PandoraStoreService extends BaseService_1.default {
14
- constructor() {
15
- super(...arguments);
16
- this.prefixUrl = '/pandora/store';
17
- }
18
- /**
19
- * 创建门店
20
- * @param request - 请求参数
21
- * @returns Promise,解析为标准响应格式
22
- */
23
- createStore(request) {
24
- return this.request(this.createStore, request);
25
- }
26
- /**
27
- * 编辑门店信息
28
- * @param request - 请求参数
29
- * @returns Promise,解析为标准响应格式
30
- */
31
- updateStoreInfo(request) {
32
- return this.request(this.updateStoreInfo, request);
33
- }
34
- /**
35
- * 获取门店详情
36
- * @param request - 请求参数
37
- * @returns Promise,解析为标准响应格式
38
- */
39
- getStoreDetail(request) {
40
- return this.request(this.getStoreDetail, request);
41
- }
42
- /**
43
- * 获取门店列表
44
- * @param request - 请求参数
45
- * @returns Promise,解析为标准响应格式
46
- */
47
- getStoreList(request) {
48
- return this.request(this.getStoreList, request);
49
- }
50
- /**
51
- * 批量修改门店经营状态
52
- * @param request - 请求参数
53
- * @returns Promise,解析为标准响应格式
54
- */
55
- batchUpdateBusinessStatus(request) {
56
- return this.request(this.batchUpdateBusinessStatus, request);
57
- }
58
- /**
59
- * 绑定用户到门店
60
- * @param request - 请求参数
61
- * @returns Promise,解析为标准响应格式
62
- */
63
- bindUserToStore(request) {
64
- return this.request(this.bindUserToStore, request);
65
- }
66
- /**
67
- * 解绑用户
68
- * @param request - 请求参数
69
- * @returns Promise,解析为标准响应格式
70
- */
71
- unbindUserFromStore(request) {
72
- return this.request(this.unbindUserFromStore, request);
73
- }
74
- /**
75
- * 创建门店分组
76
- * @param request - 请求参数
77
- * @returns Promise,解析为标准响应格式
78
- */
79
- createStoreGroup(request) {
80
- return this.request(this.createStoreGroup, request);
81
- }
82
- /**
83
- * 编辑门店分组
84
- * @param request - 请求参数
85
- * @returns Promise,解析为标准响应格式
86
- */
87
- editStoreGroup(request) {
88
- return this.request(this.editStoreGroup, request);
89
- }
90
- /**
91
- * 删除门店分组
92
- * @param request - 请求参数
93
- * @returns Promise,解析为标准响应格式
94
- */
95
- deleteStoreGroup(request) {
96
- return this.request(this.deleteStoreGroup, request);
97
- }
98
- /**
99
- * 查询门店分组列表
100
- * @param request - 请求参数
101
- * @returns Promise,解析为标准响应格式
102
- */
103
- getStoreGroupList(request) {
104
- return this.request(this.getStoreGroupList, request);
105
- }
106
- }
107
- exports.PandoraStoreService = PandoraStoreService;