@zeniai/client-epic-state 4.12.52 → 4.12.53

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.
@@ -27,5 +27,12 @@ export interface VendorUpdatePayload {
27
27
  w9_document_ids?: ID[];
28
28
  owner_id: ID | null;
29
29
  is_two_factor_verification_required?: boolean;
30
+ email?: string;
31
+ phone?: string;
32
+ filing1099TaxClassification?: string;
33
+ tin?: {
34
+ type: string;
35
+ value: string;
36
+ };
30
37
  }
31
38
  export declare const prepareEditVendorPayload: (state: RootState, vendorDetailLocalData: VendorDetailLocalData, vendorId: ID | undefined) => Partial<VendorUpdatePayload>;
@@ -21,12 +21,20 @@ const mapW9FormFileToAttachment = (file) => {
21
21
  };
22
22
  exports.mapW9FormFileToAttachment = mapW9FormFileToAttachment;
23
23
  const prepareEditVendor1099DetailsPayload = (state, localData, vendorId) => {
24
- var _a;
24
+ var _a, _b, _c, _d, _e;
25
25
  const { vendorState } = state;
26
26
  const vendor = (0, vendorSelector_1.getVendorByVendorId)(vendorState, vendorId);
27
27
  return {
28
28
  qbo_id: vendor === null || vendor === void 0 ? void 0 : vendor.qboId,
29
29
  w9_document_ids: (_a = localData.w9Documents) === null || _a === void 0 ? void 0 : _a.map((doc) => doc.id),
30
+ vendor_name: localData.legalName,
31
+ email: localData.email,
32
+ phone: localData.phone,
33
+ filing1099TaxClassification: localData.filing1099TaxClassification,
34
+ tin: {
35
+ type: (_c = (_b = localData.tin) === null || _b === void 0 ? void 0 : _b.type) !== null && _c !== void 0 ? _c : '',
36
+ value: (_e = (_d = localData.tin) === null || _d === void 0 ? void 0 : _d.value) !== null && _e !== void 0 ? _e : '',
37
+ },
30
38
  };
31
39
  };
32
40
  exports.prepareEditVendor1099DetailsPayload = prepareEditVendor1099DetailsPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.12.52",
3
+ "version": "4.12.53",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",