@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.29 → 0.0.30

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/enum.d.ts CHANGED
@@ -140,12 +140,12 @@ export declare namespace ENUM {
140
140
  REPEAL = "\u5DF2\u64A4\u9500"
141
141
  }
142
142
  enum APPLY_TYPE {
143
- STOCK_SHORTAGE = "STOCK_SHORTAGE",
144
- OTHER = "OTHER"
143
+ STOCK_IN_REPLENISH = "STOCK_IN_REPLENISH",
144
+ ACTIVE_APPLY = "ACTIVE_APPLY"
145
145
  }
146
146
  enum APPLY_TYPE_CHINESE {
147
- STOCK_SHORTAGE = "\u7F3A\u8D27",
148
- OTHER = "\u5176\u4ED6"
147
+ STOCK_IN_REPLENISH = "\u5165\u5E93\u5355\u8865\u8D27",
148
+ ACTIVE_APPLY = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27"
149
149
  }
150
150
  enum LOSS_TYPE {
151
151
  STOCK = "STOCK",
@@ -168,8 +168,8 @@ export declare namespace ENUM {
168
168
  };
169
169
  /** 申请类型映射 */
170
170
  const APPLY_TYPE_MAP: {
171
- readonly STOCK_SHORTAGE: APPLY_TYPE_CHINESE.STOCK_SHORTAGE;
172
- readonly OTHER: APPLY_TYPE_CHINESE.OTHER;
171
+ readonly STOCK_IN_REPLENISH: APPLY_TYPE_CHINESE.STOCK_IN_REPLENISH;
172
+ readonly ACTIVE_APPLY: APPLY_TYPE_CHINESE.ACTIVE_APPLY;
173
173
  };
174
174
  /** 计损类型映射 */
175
175
  const LOSS_TYPE_MAP: {
package/enum.js CHANGED
@@ -163,13 +163,13 @@ var ENUM;
163
163
  })(STATUS_CHINESE = STORE_REPLENISH_ORDER_ENUM.STATUS_CHINESE || (STORE_REPLENISH_ORDER_ENUM.STATUS_CHINESE = {}));
164
164
  let APPLY_TYPE;
165
165
  (function (APPLY_TYPE) {
166
- APPLY_TYPE["STOCK_SHORTAGE"] = "STOCK_SHORTAGE";
167
- APPLY_TYPE["OTHER"] = "OTHER";
166
+ APPLY_TYPE["STOCK_IN_REPLENISH"] = "STOCK_IN_REPLENISH";
167
+ APPLY_TYPE["ACTIVE_APPLY"] = "ACTIVE_APPLY";
168
168
  })(APPLY_TYPE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE = {}));
169
169
  let APPLY_TYPE_CHINESE;
170
170
  (function (APPLY_TYPE_CHINESE) {
171
- APPLY_TYPE_CHINESE["STOCK_SHORTAGE"] = "\u7F3A\u8D27";
172
- APPLY_TYPE_CHINESE["OTHER"] = "\u5176\u4ED6";
171
+ APPLY_TYPE_CHINESE["STOCK_IN_REPLENISH"] = "\u5165\u5E93\u5355\u8865\u8D27";
172
+ APPLY_TYPE_CHINESE["ACTIVE_APPLY"] = "\u4E3B\u52A8\u7533\u8BF7\u8865\u8D27";
173
173
  })(APPLY_TYPE_CHINESE = STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE || (STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_CHINESE = {}));
174
174
  let LOSS_TYPE;
175
175
  (function (LOSS_TYPE) {
@@ -194,8 +194,8 @@ var ENUM;
194
194
  };
195
195
  /** 申请类型映射 */
196
196
  STORE_REPLENISH_ORDER_ENUM.APPLY_TYPE_MAP = {
197
- [APPLY_TYPE.STOCK_SHORTAGE]: APPLY_TYPE_CHINESE.STOCK_SHORTAGE,
198
- [APPLY_TYPE.OTHER]: APPLY_TYPE_CHINESE.OTHER,
197
+ [APPLY_TYPE.STOCK_IN_REPLENISH]: APPLY_TYPE_CHINESE.STOCK_IN_REPLENISH,
198
+ [APPLY_TYPE.ACTIVE_APPLY]: APPLY_TYPE_CHINESE.ACTIVE_APPLY,
199
199
  };
200
200
  /** 计损类型映射 */
201
201
  STORE_REPLENISH_ORDER_ENUM.LOSS_TYPE_MAP = {
@@ -34,6 +34,10 @@ declare class StoreReplenishOrderService extends BaseService implements StoreRep
34
34
  * 撤销审批
35
35
  */
36
36
  revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
37
+ /**
38
+ * 更新审批理由
39
+ */
40
+ updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
37
41
  }
38
42
  export declare const storeReplenishOrderService: StoreReplenishOrderService;
39
43
  export default storeReplenishOrderService;
@@ -69,6 +69,12 @@ let StoreReplenishOrderService = class StoreReplenishOrderService extends BaseSe
69
69
  revokeApproval(request) {
70
70
  return (0, http_1.callApi)(this.getApiUrl(this.revokeApproval), request);
71
71
  }
72
+ /**
73
+ * 更新审批理由
74
+ */
75
+ updateApprovalReason(request) {
76
+ return (0, http_1.callApi)(this.getApiUrl(this.updateApprovalReason), request);
77
+ }
72
78
  };
73
79
  __decorate([
74
80
  (0, tsoa_1.Post)('apply-replenish'),
@@ -102,6 +108,10 @@ __decorate([
102
108
  (0, tsoa_1.Post)('revoke-approval'),
103
109
  __param(0, (0, tsoa_1.Body)())
104
110
  ], StoreReplenishOrderService.prototype, "revokeApproval", null);
111
+ __decorate([
112
+ (0, tsoa_1.Post)('update-approval-reason'),
113
+ __param(0, (0, tsoa_1.Body)())
114
+ ], StoreReplenishOrderService.prototype, "updateApprovalReason", null);
105
115
  StoreReplenishOrderService = __decorate([
106
116
  (0, tsoa_1.Route)('StoreReplenishOrder'),
107
117
  (0, tsoa_1.Tags)('storeReplenishOrder')
@@ -97,6 +97,12 @@ export declare namespace StoreReplenishOrderTypes {
97
97
  approvalReason: string;
98
98
  operator: string;
99
99
  }
100
+ /** 更新审批理由 */
101
+ interface UpdateApprovalReason {
102
+ id: string;
103
+ approvalReason: string;
104
+ operator: string;
105
+ }
100
106
  /** 撤销审批 */
101
107
  interface RevokeApproval {
102
108
  id: string;
@@ -181,5 +187,7 @@ export declare namespace StoreReplenishOrderTypes {
181
187
  approveReplenish(request: StoreReplenishOrderTypes.Request.ApproveReplenish): Promise<void>;
182
188
  /** 撤销审批 */
183
189
  revokeApproval(request: StoreReplenishOrderTypes.Request.RevokeApproval): Promise<void>;
190
+ /** 更新审批理由 */
191
+ updateApprovalReason(request: StoreReplenishOrderTypes.Request.UpdateApprovalReason): Promise<void>;
184
192
  }
185
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-plan-allocation-service-node-sdk",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",