@longvansoftware/storefront-js-client 2.6.4 → 2.6.6

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.
@@ -37,14 +37,14 @@ exports.environmentEndpoints = {
37
37
  warehouse: "https://portal.longvan.vn/facility-api/public-facility/1.0.0/inventory-item",
38
38
  computing: "https://api-gateway.longvan.vn/computing-service/graphql",
39
39
  campaign: "https://crm.longvan.vn/campaign-gateway/graphql",
40
- image: "https://product-service.dev.longvan.vn/product-service/v1/products",
40
+ image: "https://product-service.longvan.vn/product-service/v1/products",
41
41
  paymentV2: "https://payment.longvan.vn/graphql",
42
42
  warehouseV2: "https://portal.longvan.vn/facility-api",
43
43
  deepLinkVietQr: "https://api.vietqr.io/v2",
44
44
  comhub: "https://com-hub.longvan.vn/com-hub/v1",
45
45
  portal: " https://portal.longvan.vn",
46
- upload: "https://fileservice.dev.longvan.vn/omnichannel/files/upload",
47
- getImage: "https://s3-img-gw.longvan.net/img/omnichannel",
46
+ upload: "https://fileservice.longvan.vn/omnichannel/files/upload",
47
+ getImage: "https://s3-hcm-r1.longvan.net/files-store-longvan",
48
48
  accounting: "https://api-gateway.dev.longvan.vn/accounting-service",
49
49
  omnigateway: "https://omni-gateway.longvan.vn/omni-gateway/v1",
50
50
  authorization: "https://id.longvan.vn/authorization/public",
@@ -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/{{partnerId}}/{{order_id}}/handle-package/{{byUser}}`;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [