@be-link/cs-cli-nodejs 0.1.115 → 0.1.117
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/cs/modules/scfMigrate/index.d.ts +238 -0
- package/cs/modules/scfMigrate/index.js +29 -0
- package/cs/modules/scfMigrate/index.js.map +1 -0
- package/cs/modules/scfMigrate/manage/restructure/service.d.ts +30 -0
- package/cs/modules/scfMigrate/manage/restructure/service.js +86 -0
- package/cs/modules/scfMigrate/manage/restructure/service.js.map +1 -0
- package/cs/modules/scfMigrate/manage/restructure/type.d.ts +219 -0
- package/cs/modules/scfMigrate/manage/restructure/type.js +3 -0
- package/cs/modules/scfMigrate/manage/restructure/type.js.map +1 -0
- package/cs/modules/scfMigrate/manage/search/service.d.ts +13 -0
- package/cs/modules/scfMigrate/manage/search/service.js +34 -0
- package/cs/modules/scfMigrate/manage/search/service.js.map +1 -0
- package/cs/modules/scfMigrate/manage/search/type.d.ts +35 -0
- package/cs/modules/scfMigrate/manage/search/type.js +3 -0
- package/cs/modules/scfMigrate/manage/search/type.js.map +1 -0
- package/cs/modules/scfMigrate/query/ecAppToB/service.d.ts +8 -0
- package/cs/modules/scfMigrate/query/ecAppToB/service.js +19 -0
- package/cs/modules/scfMigrate/query/ecAppToB/service.js.map +1 -0
- package/cs/modules/scfMigrate/query/ecAppToB/type.d.ts +41 -0
- package/cs/modules/scfMigrate/query/ecAppToB/type.js +3 -0
- package/cs/modules/scfMigrate/query/ecAppToB/type.js.map +1 -0
- package/cs/modules/scfMigrate/query/ecWeb/service.d.ts +9 -0
- package/cs/modules/scfMigrate/query/ecWeb/service.js +22 -0
- package/cs/modules/scfMigrate/query/ecWeb/service.js.map +1 -0
- package/cs/modules/scfMigrate/query/ecWeb/type.d.ts +54 -0
- package/cs/modules/scfMigrate/query/ecWeb/type.js +3 -0
- package/cs/modules/scfMigrate/query/ecWeb/type.js.map +1 -0
- package/cs/modules/scfMigrate/query/miniApp/service.d.ts +8 -0
- package/cs/modules/scfMigrate/query/miniApp/service.js +19 -0
- package/cs/modules/scfMigrate/query/miniApp/service.js.map +1 -0
- package/cs/modules/scfMigrate/query/miniApp/type.d.ts +36 -0
- package/cs/modules/scfMigrate/query/miniApp/type.js +3 -0
- package/cs/modules/scfMigrate/query/miniApp/type.js.map +1 -0
- package/cs/modules/scfMigrate/query/restructure/service.d.ts +121 -0
- package/cs/modules/scfMigrate/query/restructure/service.js +360 -0
- package/cs/modules/scfMigrate/query/restructure/service.js.map +1 -0
- package/cs/modules/scfMigrate/query/restructure/type.d.ts +1397 -0
- package/cs/modules/scfMigrate/query/restructure/type.js +3 -0
- package/cs/modules/scfMigrate/query/restructure/type.js.map +1 -0
- package/cs/modules/scfMigrate/query/search/service.d.ts +12 -0
- package/cs/modules/scfMigrate/query/search/service.js +31 -0
- package/cs/modules/scfMigrate/query/search/service.js.map +1 -0
- package/cs/modules/scfMigrate/query/search/type.d.ts +197 -0
- package/cs/modules/scfMigrate/query/search/type.js +3 -0
- package/cs/modules/scfMigrate/query/search/type.js.map +1 -0
- package/cs/modules/scfMigrate/query/web/service.d.ts +14 -0
- package/cs/modules/scfMigrate/query/web/service.js +37 -0
- package/cs/modules/scfMigrate/query/web/service.js.map +1 -0
- package/cs/modules/scfMigrate/query/web/type.d.ts +232 -0
- package/cs/modules/scfMigrate/query/web/type.js +3 -0
- package/cs/modules/scfMigrate/query/web/type.js.map +1 -0
- package/index.d.ts +11 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
export declare namespace RestructureManage {
|
|
2
|
+
namespace Request {
|
|
3
|
+
interface addItemViewCountForTwoTable {
|
|
4
|
+
itemId: string;
|
|
5
|
+
categoryTwo: string;
|
|
6
|
+
count?: number;
|
|
7
|
+
}
|
|
8
|
+
interface batchUpdateItemRelateCity {
|
|
9
|
+
itemIds: string[];
|
|
10
|
+
cityList: string[];
|
|
11
|
+
}
|
|
12
|
+
interface changeItemStatus {
|
|
13
|
+
itemId: string;
|
|
14
|
+
status: 'ONSALE' | 'DISCONTINUED';
|
|
15
|
+
operatorName?: string;
|
|
16
|
+
}
|
|
17
|
+
interface copyItemToDraft {
|
|
18
|
+
itemId: string;
|
|
19
|
+
}
|
|
20
|
+
interface createItem {
|
|
21
|
+
itemInfo: Record<string, unknown>;
|
|
22
|
+
itemExtraInfo: Record<string, unknown>;
|
|
23
|
+
skus?: Record<string, unknown>[];
|
|
24
|
+
tourMaterial?: Record<string, unknown>;
|
|
25
|
+
tourMaterialItems?: Record<string, unknown>[];
|
|
26
|
+
}
|
|
27
|
+
interface createItemTag {
|
|
28
|
+
name: string;
|
|
29
|
+
}
|
|
30
|
+
interface deleteItem {
|
|
31
|
+
itemId: string;
|
|
32
|
+
}
|
|
33
|
+
interface reduceStock {
|
|
34
|
+
bizId: string;
|
|
35
|
+
itemSkuMap: {
|
|
36
|
+
[key: string]: {
|
|
37
|
+
[key: string]: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
interface renameCombo {
|
|
42
|
+
itemId: string;
|
|
43
|
+
combo: string;
|
|
44
|
+
newName: string;
|
|
45
|
+
}
|
|
46
|
+
interface rollbackStock {
|
|
47
|
+
bizId: string;
|
|
48
|
+
itemSkuMap: {
|
|
49
|
+
[key: string]: {
|
|
50
|
+
[key: string]: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
interface updateItem {
|
|
55
|
+
itemId: string;
|
|
56
|
+
itemInfo?: Record<string, unknown>;
|
|
57
|
+
itemExtraInfo?: Record<string, unknown>;
|
|
58
|
+
skus?: Record<string, unknown>[];
|
|
59
|
+
groupBookingRule?: {
|
|
60
|
+
minNum: number;
|
|
61
|
+
maxNum: number;
|
|
62
|
+
minStartNum: number;
|
|
63
|
+
};
|
|
64
|
+
ignoreAfterUpdateSkuHook?: boolean;
|
|
65
|
+
}
|
|
66
|
+
interface updateItemTagItemList {
|
|
67
|
+
tagId: number;
|
|
68
|
+
itemIdList?: string[];
|
|
69
|
+
status?: 'VALID' | 'INVALID';
|
|
70
|
+
}
|
|
71
|
+
interface updateSku {
|
|
72
|
+
itemId: string;
|
|
73
|
+
skuId: string;
|
|
74
|
+
properties: Record<string, unknown>;
|
|
75
|
+
isEraseMemberPrice: boolean;
|
|
76
|
+
}
|
|
77
|
+
interface updateSkuSoldCnt {
|
|
78
|
+
bizId: string;
|
|
79
|
+
skuId: string;
|
|
80
|
+
operation: 'REDUCE' | 'ROLLBACK';
|
|
81
|
+
cnt: number;
|
|
82
|
+
}
|
|
83
|
+
interface multiUpdateSkuPrice {
|
|
84
|
+
itemId: string;
|
|
85
|
+
priceItem: {
|
|
86
|
+
skuId: string;
|
|
87
|
+
status?: 'ONSALE' | 'DISCONTINUED';
|
|
88
|
+
salePrice?: number;
|
|
89
|
+
marketPrice?: number;
|
|
90
|
+
memberPrice?: number;
|
|
91
|
+
settlementPrice?: number;
|
|
92
|
+
surplus?: number;
|
|
93
|
+
memberPriceLimitTimes?: number;
|
|
94
|
+
supplementSingleRoomPrice?: number;
|
|
95
|
+
supplementSingleRoomSurplus?: number;
|
|
96
|
+
supplementSingleRoomStatus?: 'ONSALE' | 'DISCONTINUED';
|
|
97
|
+
childrenPrice?: number;
|
|
98
|
+
childrenSurplus?: number;
|
|
99
|
+
childrenStatus?: 'ONSALE' | 'DISCONTINUED';
|
|
100
|
+
minOrderQuantity?: number;
|
|
101
|
+
mealInfo?: string;
|
|
102
|
+
hasAfternoonTea?: boolean;
|
|
103
|
+
hasShuttleBus?: boolean;
|
|
104
|
+
isEraseMemberPrice?: boolean;
|
|
105
|
+
roomScale?: {
|
|
106
|
+
singleBed: number;
|
|
107
|
+
doubleBed: number;
|
|
108
|
+
};
|
|
109
|
+
singleRoomAdjustmentInfo?: {
|
|
110
|
+
isEnable: boolean;
|
|
111
|
+
salePrice: number;
|
|
112
|
+
settlementPrice: number;
|
|
113
|
+
};
|
|
114
|
+
mealSettlementPrice?: number;
|
|
115
|
+
ktvSettlementPrice?: number;
|
|
116
|
+
chessSettlementPrice?: number;
|
|
117
|
+
combo?: string;
|
|
118
|
+
storeSettlementPrice?: number;
|
|
119
|
+
storeProfitRate?: number;
|
|
120
|
+
jointStoreSettlementPrice?: number;
|
|
121
|
+
jointStoreProfitRate?: number;
|
|
122
|
+
}[];
|
|
123
|
+
}
|
|
124
|
+
interface addItemViewCount {
|
|
125
|
+
itemId: string;
|
|
126
|
+
count?: number;
|
|
127
|
+
}
|
|
128
|
+
interface batchDeleteItemTag {
|
|
129
|
+
ids: string[];
|
|
130
|
+
}
|
|
131
|
+
interface discontinueCombo {
|
|
132
|
+
itemId: string;
|
|
133
|
+
combo: string;
|
|
134
|
+
}
|
|
135
|
+
interface hotelItemBatchOverrideValue {
|
|
136
|
+
key: string;
|
|
137
|
+
value: string;
|
|
138
|
+
}
|
|
139
|
+
interface updateGroupInfoByItemId {
|
|
140
|
+
skuId: string;
|
|
141
|
+
itemId: string;
|
|
142
|
+
groupInfo: {
|
|
143
|
+
leaderName: string;
|
|
144
|
+
leaderMobile?: string;
|
|
145
|
+
wxQrCode: string;
|
|
146
|
+
outboundTraffic: string;
|
|
147
|
+
returnTraffic: string;
|
|
148
|
+
notice: string;
|
|
149
|
+
volunteerName: string;
|
|
150
|
+
volunteerMobile: string;
|
|
151
|
+
tips: string;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
interface updateItemMaxSaleCountPerDay {
|
|
155
|
+
itemId: string;
|
|
156
|
+
maxSaleCountPerDay: number;
|
|
157
|
+
}
|
|
158
|
+
interface updateItemTag {
|
|
159
|
+
name?: string;
|
|
160
|
+
id: number;
|
|
161
|
+
sortType?: string;
|
|
162
|
+
}
|
|
163
|
+
interface insertFeiShuDocRecords {
|
|
164
|
+
tableid: string;
|
|
165
|
+
objtoken: string;
|
|
166
|
+
data: Record<string, unknown>[];
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
namespace Response {
|
|
170
|
+
type addItemViewCountForTwoTable = void;
|
|
171
|
+
type batchUpdateItemRelateCity = void;
|
|
172
|
+
type changeItemStatus = void;
|
|
173
|
+
type copyItemToDraft = string;
|
|
174
|
+
type createItem = string;
|
|
175
|
+
type createItemTag = void;
|
|
176
|
+
type deleteItem = void;
|
|
177
|
+
type reduceStock = boolean;
|
|
178
|
+
type renameCombo = void;
|
|
179
|
+
type rollbackStock = boolean;
|
|
180
|
+
type updateItem = void;
|
|
181
|
+
type updateItemTagItemList = void;
|
|
182
|
+
type updateSku = void;
|
|
183
|
+
type updateSkuSoldCnt = boolean | null;
|
|
184
|
+
type multiUpdateSkuPrice = void;
|
|
185
|
+
type addItemViewCount = void;
|
|
186
|
+
type batchDeleteItemTag = void;
|
|
187
|
+
type discontinueCombo = void;
|
|
188
|
+
type hotelItemBatchOverrideValue = void;
|
|
189
|
+
type updateGroupInfoByItemId = void;
|
|
190
|
+
type updateItemMaxSaleCountPerDay = void;
|
|
191
|
+
type updateItemTag = void;
|
|
192
|
+
type insertFeiShuDocRecords = void;
|
|
193
|
+
}
|
|
194
|
+
interface Controller {
|
|
195
|
+
addItemViewCountForTwoTable(request: Request.addItemViewCountForTwoTable): Promise<Response.addItemViewCountForTwoTable>;
|
|
196
|
+
batchUpdateItemRelateCity(request: Request.batchUpdateItemRelateCity): Promise<Response.batchUpdateItemRelateCity>;
|
|
197
|
+
changeItemStatus(request: Request.changeItemStatus): Promise<Response.changeItemStatus>;
|
|
198
|
+
copyItemToDraft(request: Request.copyItemToDraft): Promise<Response.copyItemToDraft>;
|
|
199
|
+
createItem(request: Request.createItem): Promise<Response.createItem>;
|
|
200
|
+
createItemTag(request: Request.createItemTag): Promise<Response.createItemTag>;
|
|
201
|
+
deleteItem(request: Request.deleteItem): Promise<Response.deleteItem>;
|
|
202
|
+
reduceStock(request: Request.reduceStock): Promise<Response.reduceStock>;
|
|
203
|
+
renameCombo(request: Request.renameCombo): Promise<Response.renameCombo>;
|
|
204
|
+
rollbackStock(request: Request.rollbackStock): Promise<Response.rollbackStock>;
|
|
205
|
+
updateItem(request: Request.updateItem): Promise<Response.updateItem>;
|
|
206
|
+
updateItemTagItemList(request: Request.updateItemTagItemList): Promise<Response.updateItemTagItemList>;
|
|
207
|
+
updateSku(request: Request.updateSku): Promise<Response.updateSku>;
|
|
208
|
+
updateSkuSoldCnt(request: Request.updateSkuSoldCnt): Promise<Response.updateSkuSoldCnt>;
|
|
209
|
+
multiUpdateSkuPrice(request: Request.multiUpdateSkuPrice): Promise<Response.multiUpdateSkuPrice>;
|
|
210
|
+
addItemViewCount(request: Request.addItemViewCount): Promise<Response.addItemViewCount>;
|
|
211
|
+
batchDeleteItemTag(request: Request.batchDeleteItemTag): Promise<Response.batchDeleteItemTag>;
|
|
212
|
+
discontinueCombo(request: Request.discontinueCombo): Promise<Response.discontinueCombo>;
|
|
213
|
+
hotelItemBatchOverrideValue(request: Request.hotelItemBatchOverrideValue): Promise<Response.hotelItemBatchOverrideValue>;
|
|
214
|
+
updateGroupInfoByItemId(request: Request.updateGroupInfoByItemId): Promise<Response.updateGroupInfoByItemId>;
|
|
215
|
+
updateItemMaxSaleCountPerDay(request: Request.updateItemMaxSaleCountPerDay): Promise<Response.updateItemMaxSaleCountPerDay>;
|
|
216
|
+
updateItemTag(request: Request.updateItemTag): Promise<Response.updateItemTag>;
|
|
217
|
+
insertFeiShuDocRecords(request: Request.insertFeiShuDocRecords): Promise<Response.insertFeiShuDocRecords>;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/manage/restructure/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import BaseService from '../../../baseService';
|
|
2
|
+
import { SearchManage } from './type';
|
|
3
|
+
declare class SearchManageService extends BaseService implements SearchManage.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
prepareSearchData(): Promise<void>;
|
|
6
|
+
importSingleItem(request: SearchManage.Request.importSingleItem): Promise<void>;
|
|
7
|
+
updateSingleItem(request: SearchManage.Request.updateSingleItem): Promise<void>;
|
|
8
|
+
batchUpdateItem(): Promise<void>;
|
|
9
|
+
removeSingleItem(request: SearchManage.Request.removeSingleItem): Promise<void>;
|
|
10
|
+
onSkuSaleEndJob(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
declare const searchManageService: SearchManageService;
|
|
13
|
+
export default searchManageService;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
const http_1 = require("../../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../../baseService"));
|
|
8
|
+
class SearchManageService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/scf-migrate/manage/search';
|
|
12
|
+
}
|
|
13
|
+
prepareSearchData() {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.prepareSearchData));
|
|
15
|
+
}
|
|
16
|
+
importSingleItem(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.importSingleItem), request);
|
|
18
|
+
}
|
|
19
|
+
updateSingleItem(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateSingleItem), request);
|
|
21
|
+
}
|
|
22
|
+
batchUpdateItem() {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchUpdateItem));
|
|
24
|
+
}
|
|
25
|
+
removeSingleItem(request) {
|
|
26
|
+
return (0, http_1.callApi)(this.getApiUrl(this.removeSingleItem), request);
|
|
27
|
+
}
|
|
28
|
+
onSkuSaleEndJob() {
|
|
29
|
+
return (0, http_1.callApi)(this.getApiUrl(this.onSkuSaleEndJob));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const searchManageService = new SearchManageService();
|
|
33
|
+
exports.default = searchManageService;
|
|
34
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/manage/search/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA0C;AAC1C,uEAA8C;AAG9C,MAAM,mBAAoB,SAAQ,qBAAW;IAA7C;;QACE,cAAS,GAAG,4BAA4B,CAAA;IAoC1C,CAAC;IAlCC,iBAAiB;QACf,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC,CACvC,CAAA;IACH,CAAC;IAED,gBAAgB,CAAC,OAA8C;QAC7D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EACrC,OAAO,CACR,CAAA;IACH,CAAC;IAED,gBAAgB,CAAC,OAA8C;QAC7D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EACrC,OAAO,CACR,CAAA;IACH,CAAC;IAED,eAAe;QACb,OAAO,IAAA,cAAO,EAA6C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAA;IAClG,CAAC;IAED,gBAAgB,CAAC,OAA8C;QAC7D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EACrC,OAAO,CACR,CAAA;IACH,CAAC;IAED,eAAe;QACb,OAAO,IAAA,cAAO,EAA6C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAA;IAClG,CAAC;CACF;AAED,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAA;AACrD,kBAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare namespace SearchManage {
|
|
2
|
+
namespace Request {
|
|
3
|
+
interface importSingleItem {
|
|
4
|
+
itemId: string;
|
|
5
|
+
}
|
|
6
|
+
interface updateSingleItem {
|
|
7
|
+
itemId: string;
|
|
8
|
+
}
|
|
9
|
+
interface removeSingleItem {
|
|
10
|
+
itemId: string;
|
|
11
|
+
}
|
|
12
|
+
interface prepareSearchData {
|
|
13
|
+
}
|
|
14
|
+
interface batchUpdateItem {
|
|
15
|
+
}
|
|
16
|
+
interface onSkuSaleEndJob {
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
namespace Response {
|
|
20
|
+
type importSingleItem = void;
|
|
21
|
+
type updateSingleItem = void;
|
|
22
|
+
type removeSingleItem = void;
|
|
23
|
+
type prepareSearchData = void;
|
|
24
|
+
type batchUpdateItem = void;
|
|
25
|
+
type onSkuSaleEndJob = void;
|
|
26
|
+
}
|
|
27
|
+
interface Controller {
|
|
28
|
+
prepareSearchData(): Promise<void>;
|
|
29
|
+
importSingleItem(request: Request.importSingleItem): Promise<void>;
|
|
30
|
+
updateSingleItem(request: Request.updateSingleItem): Promise<void>;
|
|
31
|
+
batchUpdateItem(): Promise<void>;
|
|
32
|
+
removeSingleItem(request: Request.removeSingleItem): Promise<void>;
|
|
33
|
+
onSkuSaleEndJob(): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/manage/search/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import BaseService from '../../../baseService';
|
|
2
|
+
import { EcAppToB } from './type';
|
|
3
|
+
declare class EcAppToBQueryService extends BaseService implements EcAppToB.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
queryForEcAppToB(request: EcAppToB.Request.queryForEcAppToB): Promise<EcAppToB.Response.queryForEcAppToB>;
|
|
6
|
+
}
|
|
7
|
+
declare const ecAppToBQueryService: EcAppToBQueryService;
|
|
8
|
+
export default ecAppToBQueryService;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
const http_1 = require("../../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../../baseService"));
|
|
8
|
+
class EcAppToBQueryService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/scf-migrate/query/ec-app-to-b';
|
|
12
|
+
}
|
|
13
|
+
queryForEcAppToB(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryForEcAppToB), request);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const ecAppToBQueryService = new EcAppToBQueryService();
|
|
18
|
+
exports.default = ecAppToBQueryService;
|
|
19
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/query/ecAppToB/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA0C;AAC1C,uEAA8C;AAG9C,MAAM,oBAAqB,SAAQ,qBAAW;IAA9C;;QACE,cAAS,GAAG,gCAAgC,CAAA;IAU9C,CAAC;IARC,gBAAgB,CACd,OAA0C;QAE1C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EACrC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,EAAE,CAAA;AACvD,kBAAe,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare namespace EcAppToB {
|
|
2
|
+
namespace Request {
|
|
3
|
+
interface queryForEcAppToB {
|
|
4
|
+
storeId: string;
|
|
5
|
+
condition: {
|
|
6
|
+
categoryTwoList?: string[];
|
|
7
|
+
mixedName?: string;
|
|
8
|
+
minMemberPriceRange?: number[];
|
|
9
|
+
itemSalePriceRange?: number[];
|
|
10
|
+
commissionFeeRange?: number[];
|
|
11
|
+
};
|
|
12
|
+
sortList?: {
|
|
13
|
+
field: 'minMemberPrice' | 'itemSalePrice' | 'commissionFee';
|
|
14
|
+
order: 'ASC' | 'DESC';
|
|
15
|
+
}[];
|
|
16
|
+
pageIndex: number;
|
|
17
|
+
pageSize: number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
namespace Response {
|
|
21
|
+
interface queryForEcAppToB {
|
|
22
|
+
list: {
|
|
23
|
+
id: string;
|
|
24
|
+
status: string;
|
|
25
|
+
itemName: string;
|
|
26
|
+
headPic: string;
|
|
27
|
+
categoryOne: string;
|
|
28
|
+
categoryTwo: string;
|
|
29
|
+
salePrice: number;
|
|
30
|
+
commissionFee: number;
|
|
31
|
+
minMemberPrice: number;
|
|
32
|
+
isWxSaleChannel: boolean;
|
|
33
|
+
isLiveRoomSaleChannel: boolean;
|
|
34
|
+
isTravelAgencyStore: boolean;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
interface Controller {
|
|
39
|
+
queryForEcAppToB(request: Request.queryForEcAppToB): Promise<Response.queryForEcAppToB>;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/query/ecAppToB/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseService from '../../../baseService';
|
|
2
|
+
import { EcWeb } from './type';
|
|
3
|
+
declare class EcWebQueryService extends BaseService implements EcWeb.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
queryItemForPandoraWithPage(request: EcWeb.Request.queryItemForPandoraWithPage): Promise<EcWeb.Response.queryItemForPandoraWithPage>;
|
|
6
|
+
queryItemForPandora(request: EcWeb.Request.queryItemForPandora): Promise<EcWeb.Response.queryItemForPandora>;
|
|
7
|
+
}
|
|
8
|
+
declare const ecWebQueryService: EcWebQueryService;
|
|
9
|
+
export default ecWebQueryService;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
const http_1 = require("../../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../../baseService"));
|
|
8
|
+
class EcWebQueryService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/scf-migrate/query/ec-web';
|
|
12
|
+
}
|
|
13
|
+
queryItemForPandoraWithPage(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryItemForPandoraWithPage), request);
|
|
15
|
+
}
|
|
16
|
+
queryItemForPandora(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryItemForPandora), request);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const ecWebQueryService = new EcWebQueryService();
|
|
21
|
+
exports.default = ecWebQueryService;
|
|
22
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/query/ecWeb/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA0C;AAC1C,uEAA8C;AAG9C,MAAM,iBAAkB,SAAQ,qBAAW;IAA3C;;QACE,cAAS,GAAG,2BAA2B,CAAA;IAmBzC,CAAC;IAjBC,2BAA2B,CACzB,OAAkD;QAElD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAChD,OAAO,CACR,CAAA;IACH,CAAC;IAED,mBAAmB,CACjB,OAA0C;QAE1C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,EACxC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAA;AACjD,kBAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare namespace EcWeb {
|
|
2
|
+
namespace Request {
|
|
3
|
+
interface queryItemForPandoraWithPage {
|
|
4
|
+
condition: {
|
|
5
|
+
categoryTwoList?: string[];
|
|
6
|
+
mixedName?: string;
|
|
7
|
+
ids?: string[];
|
|
8
|
+
saleType?: 'DEPOSIT' | 'NOT_EDIT';
|
|
9
|
+
notHasShortName?: boolean;
|
|
10
|
+
status?: ('ONSALE' | 'DISCONTINUED')[];
|
|
11
|
+
saleChannelBitMap?: number;
|
|
12
|
+
};
|
|
13
|
+
pageIndex: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
}
|
|
16
|
+
interface queryItemForPandora {
|
|
17
|
+
condition: queryItemForPandoraWithPage['condition'];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
namespace Response {
|
|
21
|
+
interface queryItemForPandoraWithPage {
|
|
22
|
+
list: {
|
|
23
|
+
id: string;
|
|
24
|
+
status: string;
|
|
25
|
+
shortName: string;
|
|
26
|
+
itemName: string;
|
|
27
|
+
headPic: string;
|
|
28
|
+
categoryOne: string;
|
|
29
|
+
categoryTwo: string;
|
|
30
|
+
salePrice: number;
|
|
31
|
+
memberPrice: number;
|
|
32
|
+
hasValidSku: boolean;
|
|
33
|
+
commissionFee: number;
|
|
34
|
+
unitDeposit: number;
|
|
35
|
+
majorTransportationFinalFeeList: {
|
|
36
|
+
beginCity: string;
|
|
37
|
+
fee: number;
|
|
38
|
+
}[];
|
|
39
|
+
depositTimeoutDays: number;
|
|
40
|
+
isWxSaleChannel: boolean;
|
|
41
|
+
isLiveRoomSaleChannel: boolean;
|
|
42
|
+
isTravelAgencyStore: boolean;
|
|
43
|
+
}[];
|
|
44
|
+
total: number;
|
|
45
|
+
}
|
|
46
|
+
interface queryItemForPandora {
|
|
47
|
+
list: Response.queryItemForPandoraWithPage['list'];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
interface Controller {
|
|
51
|
+
queryItemForPandoraWithPage(request: Request.queryItemForPandoraWithPage): Promise<Response.queryItemForPandoraWithPage>;
|
|
52
|
+
queryItemForPandora(request: Request.queryItemForPandora): Promise<Response.queryItemForPandora>;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/query/ecWeb/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import BaseService from '../../../baseService';
|
|
2
|
+
import { MiniApp } from './type';
|
|
3
|
+
declare class MiniAppQueryService extends BaseService implements MiniApp.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
searchItemByContent(request: MiniApp.Request.searchItemByContent): Promise<MiniApp.Response.ISearchItemByContent[]>;
|
|
6
|
+
}
|
|
7
|
+
declare const miniAppQueryService: MiniAppQueryService;
|
|
8
|
+
export default miniAppQueryService;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
const http_1 = require("../../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../../baseService"));
|
|
8
|
+
class MiniAppQueryService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/scf-migrate/query/mini-app';
|
|
12
|
+
}
|
|
13
|
+
searchItemByContent(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.searchItemByContent), request);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const miniAppQueryService = new MiniAppQueryService();
|
|
18
|
+
exports.default = miniAppQueryService;
|
|
19
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/query/miniApp/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA0C;AAC1C,uEAA8C;AAG9C,MAAM,mBAAoB,SAAQ,qBAAW;IAA7C;;QACE,cAAS,GAAG,6BAA6B,CAAA;IAU3C,CAAC;IARC,mBAAmB,CACjB,OAA4C;QAE5C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,EACxC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAA;AACrD,kBAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare namespace MiniApp {
|
|
2
|
+
namespace Request {
|
|
3
|
+
interface searchItemByContent {
|
|
4
|
+
content: string;
|
|
5
|
+
pageIndex: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
/** 云函数原从 WX 上下文获取,迁移后由调用方传入 */
|
|
8
|
+
unionId?: string;
|
|
9
|
+
/** 是否员工,云函数通过 userService.getByUnionId 获取,迁移后由灰度 handler 预处理传入 */
|
|
10
|
+
isStaff?: boolean;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
namespace Response {
|
|
14
|
+
interface ISearchItemByContent {
|
|
15
|
+
_id: string;
|
|
16
|
+
isWxShop: boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
headPic: string;
|
|
19
|
+
featuredTags: string[];
|
|
20
|
+
category: {
|
|
21
|
+
level: number;
|
|
22
|
+
categoryName: string;
|
|
23
|
+
}[];
|
|
24
|
+
multiPrice: boolean;
|
|
25
|
+
salePrice: number;
|
|
26
|
+
sellOut: boolean;
|
|
27
|
+
floatPictureUrl: string;
|
|
28
|
+
hasGroupBookingRule: boolean;
|
|
29
|
+
isMigration: number;
|
|
30
|
+
memberPrice: number;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
interface Controller {
|
|
34
|
+
searchItemByContent(request: Request.searchItemByContent): Promise<Response.ISearchItemByContent[]>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/cs/modules/scfMigrate/query/miniApp/type.ts"],"names":[],"mappings":""}
|