@longvansoftware/storefront-js-client 2.6.4 → 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.
|
@@ -14,4 +14,7 @@ export declare class PortalService extends Service {
|
|
|
14
14
|
confirmPackage(orderId: string, packageBoxId: string, byUser: string): Promise<any>;
|
|
15
15
|
handlePackage(orderId: string, byUser: string): Promise<any>;
|
|
16
16
|
packageBoxes(): Promise<any>;
|
|
17
|
+
shipmentParameter(orderId: string): Promise<any>;
|
|
18
|
+
connectShipment(orderId: string, byUser: string): Promise<any>;
|
|
19
|
+
ffmStage(orderId: string): Promise<any>;
|
|
17
20
|
}
|
|
@@ -141,7 +141,7 @@ class PortalService extends serviceSDK_1.Service {
|
|
|
141
141
|
}
|
|
142
142
|
handlePackage(orderId, byUser) {
|
|
143
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
const endpoint = `/fulfillment-api/public/fulfillment
|
|
144
|
+
const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/handle-package/${byUser}`;
|
|
145
145
|
const method = "PUT";
|
|
146
146
|
try {
|
|
147
147
|
const response = yield this.restApiCallWithNoHeader(endpoint, method);
|
|
@@ -165,5 +165,44 @@ class PortalService extends serviceSDK_1.Service {
|
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
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
|
+
}
|
|
168
207
|
}
|
|
169
208
|
exports.PortalService = PortalService;
|