@longvansoftware/storefront-js-client 3.4.4 → 3.4.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.
@@ -585,10 +585,6 @@ exports.GET_WORK_EFFORT_BY_ID = (0, graphql_tag_1.gql) `
585
585
  mode
586
586
  partyGroupIds
587
587
  tagIds
588
- contactName
589
- contactPhone
590
- contactEmail
591
- extSource
592
588
  owner {
593
589
  id
594
590
  fullName
@@ -15,7 +15,7 @@ export declare class PortalService extends Service {
15
15
  handlePackage(orderId: string, byUser: string): Promise<any>;
16
16
  packageBoxes(): Promise<any>;
17
17
  shipmentParameter(orderId: string): Promise<any>;
18
- connectShipment(orderId: string, byUser: string): Promise<any>;
18
+ connectShipment(orderId: string, byUser: string, pickupType: string, trackingCode: string): Promise<any>;
19
19
  ffmStage(orderId: string): Promise<any>;
20
20
  completeCancelFFMOrder(orderId: string, note: string, reason: string): Promise<any>;
21
21
  saveTextEditor(saveTextEditor: any): Promise<any>;
@@ -178,12 +178,15 @@ class PortalService extends serviceSDK_1.Service {
178
178
  }
179
179
  });
180
180
  }
181
- connectShipment(orderId, byUser) {
181
+ connectShipment(orderId, byUser, pickupType, trackingCode) {
182
182
  return __awaiter(this, void 0, void 0, function* () {
183
- const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/connect-shipment/${byUser}`;
183
+ const endpoint = `/fulfillment-api/public/fulfillment/${this.orgId}/${orderId}/connect-shipment/${byUser}?pickupType=${pickupType}`;
184
184
  const method = "POST";
185
+ const dataBody = {
186
+ trackingCode,
187
+ };
185
188
  try {
186
- const response = yield this.restApiCallWithNoHeader(endpoint, method);
189
+ const response = yield this.restApiCallWithNoHeader(endpoint, method, dataBody);
187
190
  return response;
188
191
  }
189
192
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.4.4",
3
+ "version": "3.4.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [