@longvansoftware/storefront-js-client 2.6.3 → 2.6.5
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.
|
@@ -10,4 +10,11 @@ export declare class PortalService extends Service {
|
|
|
10
10
|
imagesProduct(parentId: string, parentType: string, width?: number, height?: number): string;
|
|
11
11
|
completeOrder(orderId: string, byUser: string): Promise<any>;
|
|
12
12
|
pushMessage(message: any): Promise<any>;
|
|
13
|
+
confirmExport(orderId: string, updateBy: string): Promise<any>;
|
|
14
|
+
confirmPackage(orderId: string, packageBoxId: string, byUser: string): Promise<any>;
|
|
15
|
+
handlePackage(orderId: string, byUser: string): Promise<any>;
|
|
16
|
+
packageBoxes(): Promise<any>;
|
|
17
|
+
shipmentParameter(orderId: string): Promise<any>;
|
|
18
|
+
connectShipment(orderId: string, byUser: string): Promise<any>;
|
|
19
|
+
ffmStage(orderId: string): Promise<any>;
|
|
13
20
|
}
|
|
@@ -113,5 +113,96 @@ class PortalService extends serviceSDK_1.Service {
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
+
confirmExport(orderId, updateBy) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/confirm-export/${updateBy}`;
|
|
119
|
+
const method = "PUT";
|
|
120
|
+
try {
|
|
121
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
122
|
+
return response;
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
throw error;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
confirmPackage(orderId, packageBoxId, byUser) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/confirm-package/${packageBoxId}/${byUser}`;
|
|
132
|
+
const method = "PUT";
|
|
133
|
+
try {
|
|
134
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
135
|
+
return response;
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
throw error;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
handlePackage(orderId, byUser) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/handle-package/${byUser}`;
|
|
145
|
+
const method = "PUT";
|
|
146
|
+
try {
|
|
147
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
148
|
+
return response;
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
throw error;
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
packageBoxes() {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/packageBoxes`;
|
|
158
|
+
const method = "GET";
|
|
159
|
+
try {
|
|
160
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
161
|
+
return response;
|
|
162
|
+
}
|
|
163
|
+
catch (error) {
|
|
164
|
+
throw error;
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
shipmentParameter(orderId) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/shipment-parameters`;
|
|
171
|
+
const method = "GET";
|
|
172
|
+
try {
|
|
173
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
174
|
+
return response;
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
throw error;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
connectShipment(orderId, byUser) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/connect-shipment/${byUser}`;
|
|
184
|
+
const method = "POST";
|
|
185
|
+
try {
|
|
186
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
187
|
+
return response;
|
|
188
|
+
}
|
|
189
|
+
catch (error) {
|
|
190
|
+
throw error;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
ffmStage(orderId) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/fulfillment-stage`;
|
|
197
|
+
const method = "GET";
|
|
198
|
+
try {
|
|
199
|
+
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
200
|
+
return response;
|
|
201
|
+
}
|
|
202
|
+
catch (error) {
|
|
203
|
+
throw error;
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
}
|
|
116
207
|
}
|
|
117
208
|
exports.PortalService = PortalService;
|
|
@@ -24,9 +24,9 @@ class ZcaService extends serviceSDK_1.Service {
|
|
|
24
24
|
setToken(token) {
|
|
25
25
|
this.token = token;
|
|
26
26
|
}
|
|
27
|
-
loginQR() {
|
|
27
|
+
loginQR(sessionId) {
|
|
28
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
const endpoint = `/login`;
|
|
29
|
+
const endpoint = `/login?sessionId=${sessionId}`;
|
|
30
30
|
const method = "GET";
|
|
31
31
|
try {
|
|
32
32
|
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|