@be-link/ecommerce-backend-bff-service-node-sdk 0.1.60 → 0.1.62

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.
@@ -1,4 +1,4 @@
1
- import { SalesService as Service } from './types';
1
+ import { MiniprogramSalesService as Service } from './types';
2
2
  import BaseService from '../../BaseService';
3
3
  import type { StandardResponse } from '../../../../types';
4
4
  export declare class MiniprogramSalesService extends BaseService implements Service.SalesController {
@@ -1,5 +1,5 @@
1
1
  import { StandardResponse } from '../../../../types';
2
- export declare namespace SalesService {
2
+ export declare namespace MiniprogramSalesService {
3
3
  namespace Request {
4
4
  interface IGetSalesOverview {
5
5
  isAllStore: boolean;
@@ -56,6 +56,7 @@ export declare namespace SalesService {
56
56
  avgOrderPrice: number;
57
57
  arpu: number;
58
58
  newMemberUserCnt: number;
59
+ selfPickGmv: number;
59
60
  lastUpdatedAt: number;
60
61
  }
61
62
  interface IStoreSalesDayVO {
@@ -92,8 +93,10 @@ export declare namespace SalesService {
92
93
  arpu: number;
93
94
  }
94
95
  interface IBatchExport {
95
- headerMap: Record<string, string>;
96
- data: any[];
96
+ /** 表头 */
97
+ headers: string[];
98
+ /** 数据 */
99
+ data: (string | number)[][];
97
100
  }
98
101
  type getSalesOverview = ISalesOverviewVO;
99
102
  type getStoreSalesList = IStoreSalesListResponse;
@@ -0,0 +1,15 @@
1
+ import { PandoraQrcodeService as Service } from './types';
2
+ import BaseService from '../../BaseService';
3
+ import type { StandardResponse } from '../../../../types';
4
+ /**
5
+ * 提供 PandoraQrcodeService 相关的 API 方法
6
+ */
7
+ export declare class PandoraQrcodeService extends BaseService implements Service.QrcodeController {
8
+ protected prefixUrl: string;
9
+ /**
10
+ * 商品详情
11
+ * @param request - 请求参数
12
+ * @returns Promise,解析为标准响应格式
13
+ */
14
+ getQrcodeUrl(request: Service.Request.getQrcodeUrl): Promise<StandardResponse<Service.Response.getQrcodeUrl>>;
15
+ }
@@ -0,0 +1,25 @@
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.PandoraQrcodeService = void 0;
7
+ const BaseService_1 = __importDefault(require("../../BaseService"));
8
+ /**
9
+ * 提供 PandoraQrcodeService 相关的 API 方法
10
+ */
11
+ class PandoraQrcodeService extends BaseService_1.default {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.prefixUrl = '/pandora/qrcode';
15
+ }
16
+ /**
17
+ * 商品详情
18
+ * @param request - 请求参数
19
+ * @returns Promise,解析为标准响应格式
20
+ */
21
+ getQrcodeUrl(request) {
22
+ return this.request(this.getQrcodeUrl, request);
23
+ }
24
+ }
25
+ exports.PandoraQrcodeService = PandoraQrcodeService;
@@ -0,0 +1,24 @@
1
+ import { StandardResponse } from '../../../../types';
2
+ export declare namespace PandoraQrcodeService {
3
+ namespace Request {
4
+ interface getQrcodeUrl {
5
+ page: string;
6
+ scene: string;
7
+ }
8
+ }
9
+ namespace Response {
10
+ interface getQrcodeUrl {
11
+ /** url */
12
+ url: string;
13
+ }
14
+ }
15
+ /**
16
+ * qrcode Controller 接口定义
17
+ */
18
+ interface QrcodeController {
19
+ /**
20
+ * 获取scene对应的path
21
+ */
22
+ getQrcodeUrl(request: PandoraQrcodeService.Request.getQrcodeUrl): Promise<StandardResponse<PandoraQrcodeService.Response.getQrcodeUrl>>;
23
+ }
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import { ROOM_SERVICE_ENUM as ENUM } from '../../../../enums';
2
2
  import { StandardResponse } from '../../../../types';
3
- import { DataService as dataType } from '@be-link/ecommerce-client-backend-service-node-sdk';
3
+ import { DataService as dataType, RuleService } from '@be-link/ecommerce-client-backend-service-node-sdk';
4
4
  export declare namespace RoomService {
5
5
  namespace Request {
6
6
  /**
@@ -96,6 +96,10 @@ export declare namespace RoomService {
96
96
  type AudienceList = dataType.Request.AudienceList;
97
97
  type LiveStreamStatistics = dataType.Request.LiveStreamStatistics;
98
98
  type LiveStreamProductTop = dataType.Request.LiveStreamProductTop;
99
+ type CreateRule = RuleService.Request.Create;
100
+ type Delete = RuleService.Request.Delete;
101
+ type ListRule = RuleService.Request.List;
102
+ type CheckRule = RuleService.Request.Check;
99
103
  }
100
104
  namespace Response {
101
105
  /**
@@ -161,6 +165,8 @@ export declare namespace RoomService {
161
165
  type LiveStreamStatistics = dataType.Response.LiveStreamStatistics;
162
166
  type LiveStreamProductTop = dataType.Response.LiveStreamProductTop;
163
167
  type AudienceExport = dataType.Response.AudienceExport;
168
+ type ListRule = RuleService.Response.List;
169
+ type CheckRule = RuleService.Response.Check;
164
170
  }
165
171
  interface BaseController {
166
172
  list(request: Request.List): Promise<StandardResponse<Response.List>>;
@@ -176,6 +182,10 @@ export declare namespace RoomService {
176
182
  getLiveStreamStatistics(request: Request.LiveStreamStatistics): Promise<StandardResponse<Response.LiveStreamStatistics>>;
177
183
  getLiveStreamProductTop(request: Request.LiveStreamProductTop): Promise<StandardResponse<Response.LiveStreamProductTop>>;
178
184
  audienceExport(request: Request.AudienceList): Promise<StandardResponse<Response.AudienceExport>>;
185
+ createRoomVisibilityRule(request: Request.CreateRule): Promise<StandardResponse<void>>;
186
+ deleteRoomVisibilityRule(request: Request.Delete): Promise<StandardResponse<void>>;
187
+ getRoomVisibilityRuleList(request: Request.ListRule): Promise<StandardResponse<Response.ListRule>>;
188
+ checkRoomVisibilityRule(request: Request.CheckRule): Promise<StandardResponse<Response.CheckRule>>;
179
189
  }
180
190
  }
181
191
  /**
@@ -1,4 +1,4 @@
1
- import { SalesService as Service } from './types';
1
+ import { PandoraSalesService as Service } from './types';
2
2
  import BaseService from '../../BaseService';
3
3
  import type { StandardResponse } from '../../../../types';
4
4
  export declare class PandoraSalesService extends BaseService implements Service.SalesController {
@@ -1,5 +1,5 @@
1
1
  import { StandardResponse } from '../../../../types';
2
- export declare namespace SalesService {
2
+ export declare namespace PandoraSalesService {
3
3
  namespace Request {
4
4
  interface IGetSalesOverview {
5
5
  isAllStore: boolean;
@@ -56,6 +56,7 @@ export declare namespace SalesService {
56
56
  avgOrderPrice: number;
57
57
  arpu: number;
58
58
  newMemberUserCnt: number;
59
+ selfPickGmv: number;
59
60
  lastUpdatedAt: number;
60
61
  }
61
62
  interface IStoreSalesDayVO {
@@ -92,8 +93,10 @@ export declare namespace SalesService {
92
93
  arpu: number;
93
94
  }
94
95
  interface IBatchExport {
95
- headerMap: Record<string, string>;
96
- data: any[];
96
+ /** 表头 */
97
+ headers: string[];
98
+ /** 数据 */
99
+ data: (string | number)[][];
97
100
  }
98
101
  type getSalesOverview = ISalesOverviewVO;
99
102
  type getStoreSalesList = IStoreSalesListResponse;
package/cjs/index.d.ts CHANGED
@@ -186,5 +186,6 @@ export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff
186
186
  export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
187
187
  export { MiniprogramVerificationService as MiniprogramVerificationServiceTypes } from './bff/modules/miniprogram/verification/types';
188
188
  export { DataJobServiceTypes } from './bff/modules/pandora/dataJob/types';
189
- export { SalesService as PandoraSalesServiceTypes } from './bff/modules/pandora/sales/types';
190
- export { SalesService as MiniprogramSalesServiceTypes } from './bff/modules/miniprogram/sales/types';
189
+ export { PandoraSalesService as PandoraSalesServiceTypes } from './bff/modules/pandora/sales/types';
190
+ export { MiniprogramSalesService as MiniprogramSalesServiceTypes } from './bff/modules/miniprogram/sales/types';
191
+ export { PandoraQrcodeService as PandoraQrcodeServiceTypes } from './bff/modules/pandora/qrcode/types';
@@ -1,4 +1,4 @@
1
- import { SalesService as Service } from './types';
1
+ import { MiniprogramSalesService as Service } from './types';
2
2
  import BaseService from '../../BaseService';
3
3
  import type { StandardResponse } from '../../../../types';
4
4
  export declare class MiniprogramSalesService extends BaseService implements Service.SalesController {
@@ -1,5 +1,5 @@
1
1
  import { StandardResponse } from '../../../../types';
2
- export declare namespace SalesService {
2
+ export declare namespace MiniprogramSalesService {
3
3
  namespace Request {
4
4
  interface IGetSalesOverview {
5
5
  isAllStore: boolean;
@@ -56,6 +56,7 @@ export declare namespace SalesService {
56
56
  avgOrderPrice: number;
57
57
  arpu: number;
58
58
  newMemberUserCnt: number;
59
+ selfPickGmv: number;
59
60
  lastUpdatedAt: number;
60
61
  }
61
62
  interface IStoreSalesDayVO {
@@ -92,8 +93,10 @@ export declare namespace SalesService {
92
93
  arpu: number;
93
94
  }
94
95
  interface IBatchExport {
95
- headerMap: Record<string, string>;
96
- data: any[];
96
+ /** 表头 */
97
+ headers: string[];
98
+ /** 数据 */
99
+ data: (string | number)[][];
97
100
  }
98
101
  type getSalesOverview = ISalesOverviewVO;
99
102
  type getStoreSalesList = IStoreSalesListResponse;
@@ -0,0 +1,15 @@
1
+ import { PandoraQrcodeService as Service } from './types';
2
+ import BaseService from '../../BaseService';
3
+ import type { StandardResponse } from '../../../../types';
4
+ /**
5
+ * 提供 PandoraQrcodeService 相关的 API 方法
6
+ */
7
+ export declare class PandoraQrcodeService extends BaseService implements Service.QrcodeController {
8
+ protected prefixUrl: string;
9
+ /**
10
+ * 商品详情
11
+ * @param request - 请求参数
12
+ * @returns Promise,解析为标准响应格式
13
+ */
14
+ getQrcodeUrl(request: Service.Request.getQrcodeUrl): Promise<StandardResponse<Service.Response.getQrcodeUrl>>;
15
+ }
@@ -0,0 +1,18 @@
1
+ import BaseService from '../../BaseService.mjs';
2
+ /**
3
+ * 提供 PandoraQrcodeService 相关的 API 方法
4
+ */
5
+ export class PandoraQrcodeService extends BaseService {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.prefixUrl = '/pandora/qrcode';
9
+ }
10
+ /**
11
+ * 商品详情
12
+ * @param request - 请求参数
13
+ * @returns Promise,解析为标准响应格式
14
+ */
15
+ getQrcodeUrl(request) {
16
+ return this.request(this.getQrcodeUrl, request);
17
+ }
18
+ }
@@ -0,0 +1,24 @@
1
+ import { StandardResponse } from '../../../../types';
2
+ export declare namespace PandoraQrcodeService {
3
+ namespace Request {
4
+ interface getQrcodeUrl {
5
+ page: string;
6
+ scene: string;
7
+ }
8
+ }
9
+ namespace Response {
10
+ interface getQrcodeUrl {
11
+ /** url */
12
+ url: string;
13
+ }
14
+ }
15
+ /**
16
+ * qrcode Controller 接口定义
17
+ */
18
+ interface QrcodeController {
19
+ /**
20
+ * 获取scene对应的path
21
+ */
22
+ getQrcodeUrl(request: PandoraQrcodeService.Request.getQrcodeUrl): Promise<StandardResponse<PandoraQrcodeService.Response.getQrcodeUrl>>;
23
+ }
24
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ROOM_SERVICE_ENUM as ENUM } from '../../../../enums';
2
2
  import { StandardResponse } from '../../../../types';
3
- import { DataService as dataType } from '@be-link/ecommerce-client-backend-service-node-sdk';
3
+ import { DataService as dataType, RuleService } from '@be-link/ecommerce-client-backend-service-node-sdk';
4
4
  export declare namespace RoomService {
5
5
  namespace Request {
6
6
  /**
@@ -96,6 +96,10 @@ export declare namespace RoomService {
96
96
  type AudienceList = dataType.Request.AudienceList;
97
97
  type LiveStreamStatistics = dataType.Request.LiveStreamStatistics;
98
98
  type LiveStreamProductTop = dataType.Request.LiveStreamProductTop;
99
+ type CreateRule = RuleService.Request.Create;
100
+ type Delete = RuleService.Request.Delete;
101
+ type ListRule = RuleService.Request.List;
102
+ type CheckRule = RuleService.Request.Check;
99
103
  }
100
104
  namespace Response {
101
105
  /**
@@ -161,6 +165,8 @@ export declare namespace RoomService {
161
165
  type LiveStreamStatistics = dataType.Response.LiveStreamStatistics;
162
166
  type LiveStreamProductTop = dataType.Response.LiveStreamProductTop;
163
167
  type AudienceExport = dataType.Response.AudienceExport;
168
+ type ListRule = RuleService.Response.List;
169
+ type CheckRule = RuleService.Response.Check;
164
170
  }
165
171
  interface BaseController {
166
172
  list(request: Request.List): Promise<StandardResponse<Response.List>>;
@@ -176,6 +182,10 @@ export declare namespace RoomService {
176
182
  getLiveStreamStatistics(request: Request.LiveStreamStatistics): Promise<StandardResponse<Response.LiveStreamStatistics>>;
177
183
  getLiveStreamProductTop(request: Request.LiveStreamProductTop): Promise<StandardResponse<Response.LiveStreamProductTop>>;
178
184
  audienceExport(request: Request.AudienceList): Promise<StandardResponse<Response.AudienceExport>>;
185
+ createRoomVisibilityRule(request: Request.CreateRule): Promise<StandardResponse<void>>;
186
+ deleteRoomVisibilityRule(request: Request.Delete): Promise<StandardResponse<void>>;
187
+ getRoomVisibilityRuleList(request: Request.ListRule): Promise<StandardResponse<Response.ListRule>>;
188
+ checkRoomVisibilityRule(request: Request.CheckRule): Promise<StandardResponse<Response.CheckRule>>;
179
189
  }
180
190
  }
181
191
  /**
@@ -1,4 +1,4 @@
1
- import { SalesService as Service } from './types';
1
+ import { PandoraSalesService as Service } from './types';
2
2
  import BaseService from '../../BaseService';
3
3
  import type { StandardResponse } from '../../../../types';
4
4
  export declare class PandoraSalesService extends BaseService implements Service.SalesController {
@@ -1,5 +1,5 @@
1
1
  import { StandardResponse } from '../../../../types';
2
- export declare namespace SalesService {
2
+ export declare namespace PandoraSalesService {
3
3
  namespace Request {
4
4
  interface IGetSalesOverview {
5
5
  isAllStore: boolean;
@@ -56,6 +56,7 @@ export declare namespace SalesService {
56
56
  avgOrderPrice: number;
57
57
  arpu: number;
58
58
  newMemberUserCnt: number;
59
+ selfPickGmv: number;
59
60
  lastUpdatedAt: number;
60
61
  }
61
62
  interface IStoreSalesDayVO {
@@ -92,8 +93,10 @@ export declare namespace SalesService {
92
93
  arpu: number;
93
94
  }
94
95
  interface IBatchExport {
95
- headerMap: Record<string, string>;
96
- data: any[];
96
+ /** 表头 */
97
+ headers: string[];
98
+ /** 数据 */
99
+ data: (string | number)[][];
97
100
  }
98
101
  type getSalesOverview = ISalesOverviewVO;
99
102
  type getStoreSalesList = IStoreSalesListResponse;
package/esm/index.d.ts CHANGED
@@ -186,5 +186,6 @@ export { PandoraFranchiseeService as PandoraFranchiseeServiceTypes } from './bff
186
186
  export { MiniprogramFranchiseeService as MiniprogramFranchiseeServiceTypes } from './bff/modules/miniprogram/franchisee/types';
187
187
  export { MiniprogramVerificationService as MiniprogramVerificationServiceTypes } from './bff/modules/miniprogram/verification/types';
188
188
  export { DataJobServiceTypes } from './bff/modules/pandora/dataJob/types';
189
- export { SalesService as PandoraSalesServiceTypes } from './bff/modules/pandora/sales/types';
190
- export { SalesService as MiniprogramSalesServiceTypes } from './bff/modules/miniprogram/sales/types';
189
+ export { PandoraSalesService as PandoraSalesServiceTypes } from './bff/modules/pandora/sales/types';
190
+ export { MiniprogramSalesService as MiniprogramSalesServiceTypes } from './bff/modules/miniprogram/sales/types';
191
+ export { PandoraQrcodeService as PandoraQrcodeServiceTypes } from './bff/modules/pandora/qrcode/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-backend-bff-service-node-sdk",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -27,7 +27,7 @@
27
27
  "@be-link/ecommerce-trade-service-node-sdk": "^0.1.70",
28
28
  "@be-link/ecommerce-backend-user-service-node-sdk": "^0.1.11",
29
29
  "@be-link/ecommerce-volcengine-open-api-sdk": "^1.0.22",
30
- "@be-link/ecommerce-client-backend-service-node-sdk": "^0.1.28",
30
+ "@be-link/ecommerce-client-backend-service-node-sdk": "^0.1.42",
31
31
  "@be-link/ecommerce-tag-service-node-sdk": "^0.1.1",
32
32
  "@be-link/ecommerce-store-service-node-sdk": "^0.1.8",
33
33
  "@be-link/ecommerce-promotion-service-node-sdk": "^0.1.24",