@workwell-global/toolkit 1.1.34 → 1.1.35
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.
- package/dist/enums/EntityNames.d.ts +1 -1
- package/dist/enums/EntityNames.js +1 -1
- package/dist/enums/EntityNames.js.map +1 -1
- package/dist/models/schemas/api/_entityTools/EntityRegistry.d.ts +1 -1
- package/dist/models/schemas/api/_entityTools/EntityRegistry.d.ts.map +1 -1
- package/dist/models/schemas/api/_entityTools/EntityRegistry.js.map +1 -1
- package/dist/models/schemas/api/_entityTools/MappersEntityTools.js +1 -1
- package/dist/models/schemas/api/_entityTools/MappersEntityTools.js.map +1 -1
- package/dist/models/schemas/api/batch/TBatchAPI.d.ts +1 -0
- package/dist/models/schemas/api/batch/TBatchAPI.d.ts.map +1 -1
- package/dist/models/schemas/api/contact/DContactAPI.d.ts +2 -2
- package/dist/models/schemas/api/contact/DContactAPI.js +2 -2
- package/dist/models/schemas/api/contact/DContactAPI.js.map +1 -1
- package/dist/models/schemas/api/contact/TContactAPI.d.ts +16 -16
- package/dist/models/schemas/api/contact/index.d.ts +16 -16
- package/dist/models/schemas/api/contractorDocument/DContractorDocumentAPI.d.ts +1 -1
- package/dist/models/schemas/api/contractorDocument/DContractorDocumentAPI.js +1 -1
- package/dist/models/schemas/api/contractorDocument/DContractorDocumentAPI.js.map +1 -1
- package/dist/models/schemas/api/contractorDocument/TContractorDocumentAPI.d.ts +28 -13
- package/dist/models/schemas/api/contractorDocument/TContractorDocumentAPI.d.ts.map +1 -1
- package/dist/models/schemas/api/contractorDocument/TContractorDocumentAPI.js +16 -0
- package/dist/models/schemas/api/contractorDocument/TContractorDocumentAPI.js.map +1 -1
- package/dist/models/schemas/api/contractorDocument/index.d.ts +12 -12
- package/dist/models/schemas/api/customerAddress/DCustomerAddressAPI.d.ts +126 -0
- package/dist/models/schemas/api/customerAddress/DCustomerAddressAPI.d.ts.map +1 -0
- package/dist/models/schemas/api/customerAddress/DCustomerAddressAPI.js +71 -0
- package/dist/models/schemas/api/customerAddress/DCustomerAddressAPI.js.map +1 -0
- package/dist/models/schemas/api/customerAddress/TCustomerAddressAPI.d.ts +557 -0
- package/dist/models/schemas/api/customerAddress/TCustomerAddressAPI.d.ts.map +1 -0
- package/dist/models/schemas/api/customerAddress/TCustomerAddressAPI.js +9 -0
- package/dist/models/schemas/api/customerAddress/TCustomerAddressAPI.js.map +1 -0
- package/dist/models/schemas/api/customerAddress/index.d.ts +594 -0
- package/dist/models/schemas/api/customerAddress/index.d.ts.map +1 -0
- package/dist/models/schemas/api/customerAddress/index.js +13 -0
- package/dist/models/schemas/api/customerAddress/index.js.map +1 -0
- package/dist/models/schemas/api/index.d.ts +1 -0
- package/dist/models/schemas/api/index.d.ts.map +1 -1
- package/dist/models/schemas/api/index.js +1 -13
- package/dist/models/schemas/api/index.js.map +1 -1
- package/dist/models/schemas/api/systemUser/TSystemUserAPI.d.ts +8 -8
- package/dist/models/schemas/api/systemUser/index.d.ts +8 -8
- package/dist/models/schemas/bff/assignmentsMetrics/SGetAssignmentsSummaryBFF.d.ts +2 -2
- package/dist/models/schemas/bff/contractorDocuments/SGetContractorDocumentBFF.d.ts +331 -0
- package/dist/models/schemas/bff/contractorDocuments/SGetContractorDocumentBFF.d.ts.map +1 -0
- package/dist/models/schemas/bff/contractorDocuments/SGetContractorDocumentBFF.js +22 -0
- package/dist/models/schemas/bff/contractorDocuments/SGetContractorDocumentBFF.js.map +1 -0
- package/dist/models/schemas/bff/contractorDocuments/SPostContractorDocumentBFF.d.ts +927 -0
- package/dist/models/schemas/bff/contractorDocuments/SPostContractorDocumentBFF.d.ts.map +1 -0
- package/dist/models/schemas/bff/contractorDocuments/SPostContractorDocumentBFF.js +23 -0
- package/dist/models/schemas/bff/contractorDocuments/SPostContractorDocumentBFF.js.map +1 -0
- package/dist/models/schemas/bff/contractorDocuments/index.d.ts +3 -0
- package/dist/models/schemas/bff/contractorDocuments/index.d.ts.map +1 -0
- package/dist/models/schemas/bff/contractorDocuments/index.js +3 -0
- package/dist/models/schemas/bff/contractorDocuments/index.js.map +1 -0
- package/dist/models/schemas/bff/engagementsSummary/SGetEngagementsAssignmentDocumentBFF.d.ts +1 -1
- package/dist/models/schemas/bff/engagementsSummary/SGetEngagementsReferralDocumentBFF.d.ts +1 -1
- package/dist/models/schemas/bff/engagementsSummary/SGetEngagementsWorkerSummaryBFF.d.ts +12 -12
- package/dist/models/schemas/bff/enquiryDetail/SGetEnquiryBFF.d.ts +1 -1
- package/dist/models/schemas/bff/enquiryDetail/SGetEnquirySimBFF.d.ts +1 -1
- package/dist/models/schemas/bff/enquiryDetail/SGetEnquirySimDocumentBFF.d.ts +1 -1
- package/dist/models/schemas/bff/index.d.ts +2 -0
- package/dist/models/schemas/bff/index.d.ts.map +1 -1
- package/dist/models/schemas/bff/index.js +2 -0
- package/dist/models/schemas/bff/index.js.map +1 -1
- package/dist/models/schemas/bff/onboardAWorker/SPostOnboardAWorker.d.ts +2 -2
- package/dist/models/schemas/bff/onboardAWorker/SPostOnboardAWorkerContact.d.ts +2 -2
- package/dist/models/schemas/bff/personalDetails/SGetPersonalDetails.d.ts +696 -0
- package/dist/models/schemas/bff/personalDetails/SGetPersonalDetails.d.ts.map +1 -0
- package/dist/models/schemas/bff/personalDetails/SGetPersonalDetails.js +30 -0
- package/dist/models/schemas/bff/personalDetails/SGetPersonalDetails.js.map +1 -0
- package/dist/models/schemas/bff/personalDetails/SPostPersonalDetails.d.ts +796 -0
- package/dist/models/schemas/bff/personalDetails/SPostPersonalDetails.d.ts.map +1 -0
- package/dist/models/schemas/bff/personalDetails/SPostPersonalDetails.js +40 -0
- package/dist/models/schemas/bff/personalDetails/SPostPersonalDetails.js.map +1 -0
- package/dist/models/schemas/bff/personalDetails/index.d.ts +3 -0
- package/dist/models/schemas/bff/personalDetails/index.d.ts.map +1 -0
- package/dist/models/schemas/bff/personalDetails/index.js +3 -0
- package/dist/models/schemas/bff/personalDetails/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/models/schemas/api/_entityTools/PartyBindings.d.ts +0 -21
- package/dist/models/schemas/api/_entityTools/PartyBindings.d.ts.map +0 -1
- package/dist/models/schemas/api/_entityTools/PartyBindings.js +0 -24
- package/dist/models/schemas/api/_entityTools/PartyBindings.js.map +0 -1
|
@@ -6,4 +6,20 @@ export const ContractorDocumentEntity = createEntityTools({
|
|
|
6
6
|
uniqueFields: contractorDocumentFields,
|
|
7
7
|
baseFields: ownershipBaseFieldsD365,
|
|
8
8
|
});
|
|
9
|
+
export const SContractorDocumentParams = z
|
|
10
|
+
.object({
|
|
11
|
+
params: z.instanceof(URLSearchParams),
|
|
12
|
+
})
|
|
13
|
+
.transform((input) => {
|
|
14
|
+
const category = input.params.get('category');
|
|
15
|
+
const types = input.params.get('types');
|
|
16
|
+
const documentStatus = input.params.get('documentstatus');
|
|
17
|
+
return {
|
|
18
|
+
contactId: input.params.get('contactId') ?? undefined,
|
|
19
|
+
documentStatus: documentStatus ? Number(documentStatus) : undefined,
|
|
20
|
+
category: category ? Number(category) : undefined,
|
|
21
|
+
types: types ? types.split(',').map(Number) : undefined,
|
|
22
|
+
includeFiles: input.params.get('includeFiles') === 'true',
|
|
23
|
+
};
|
|
24
|
+
});
|
|
9
25
|
//# sourceMappingURL=TContractorDocumentAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TContractorDocumentAPI.js","sourceRoot":"","sources":["../../../../../src/models/schemas/api/contractorDocument/TContractorDocumentAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAGtE,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,YAAY,EAAE,wBAAwB;IACtC,UAAU,EAAE,uBAAuB;CACpC,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"TContractorDocumentAPI.js","sourceRoot":"","sources":["../../../../../src/models/schemas/api/contractorDocument/TContractorDocumentAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAA;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAGtE,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,YAAY,EAAE,wBAAwB;IACtC,UAAU,EAAE,uBAAuB;CACpC,CAAC,CAAA;AAcF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC;CACtC,CAAC;KACD,SAAS,CACR,CACE,KAAK,EAOL,EAAE;IACF,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IAC7C,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACvC,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;IACzD,OAAO;QACL,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,SAAS;QACrD,cAAc,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS;QACnE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;QACjD,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;QACvD,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM;KAC1D,CAAA;AACH,CAAC,CACF,CAAA"}
|
|
@@ -179,7 +179,7 @@ export declare const ContractorDocument: {
|
|
|
179
179
|
readonly ww_documentreceiveddate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
180
180
|
readonly ww_documentstatus: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>>;
|
|
181
181
|
readonly ww_documentdisplay: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>>;
|
|
182
|
-
readonly ww_file: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").
|
|
182
|
+
readonly ww_file: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodType<File, import("zod").ZodTypeDef, File>>>>;
|
|
183
183
|
readonly ww_file_name: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
184
184
|
readonly ww_requirescontractorsignature: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>>;
|
|
185
185
|
readonly ww_signedon: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
@@ -285,7 +285,7 @@ export declare const ContractorDocument: {
|
|
|
285
285
|
ww_documentreceiveddate?: string | null | undefined;
|
|
286
286
|
ww_documentstatus?: number | null | undefined;
|
|
287
287
|
ww_documentdisplay?: number | null | undefined;
|
|
288
|
-
ww_file?:
|
|
288
|
+
ww_file?: File | null | undefined;
|
|
289
289
|
ww_file_name?: string | null | undefined;
|
|
290
290
|
ww_requirescontractorsignature?: boolean | null | undefined;
|
|
291
291
|
ww_signedon?: string | null | undefined;
|
|
@@ -356,7 +356,7 @@ export declare const ContractorDocument: {
|
|
|
356
356
|
ww_documentreceiveddate?: string | null | undefined;
|
|
357
357
|
ww_documentstatus?: number | null | undefined;
|
|
358
358
|
ww_documentdisplay?: number | null | undefined;
|
|
359
|
-
ww_file?:
|
|
359
|
+
ww_file?: File | null | undefined;
|
|
360
360
|
ww_file_name?: string | null | undefined;
|
|
361
361
|
ww_requirescontractorsignature?: boolean | null | undefined;
|
|
362
362
|
ww_signedon?: string | null | undefined;
|
|
@@ -375,7 +375,7 @@ export declare const ContractorDocument: {
|
|
|
375
375
|
readonly ww_documentreceiveddate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
376
376
|
readonly ww_documentstatus: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>>;
|
|
377
377
|
readonly ww_documentdisplay: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>>;
|
|
378
|
-
readonly ww_file: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").
|
|
378
|
+
readonly ww_file: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodType<File, import("zod").ZodTypeDef, File>>>>;
|
|
379
379
|
readonly ww_file_name: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
380
380
|
readonly ww_requirescontractorsignature: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>>;
|
|
381
381
|
readonly ww_signedon: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
@@ -463,7 +463,7 @@ export declare const ContractorDocument: {
|
|
|
463
463
|
ww_documentreceiveddate?: string | null | undefined;
|
|
464
464
|
ww_documentstatus?: number | null | undefined;
|
|
465
465
|
ww_documentdisplay?: number | null | undefined;
|
|
466
|
-
ww_file?:
|
|
466
|
+
ww_file?: File | null | undefined;
|
|
467
467
|
ww_file_name?: string | null | undefined;
|
|
468
468
|
ww_requirescontractorsignature?: boolean | null | undefined;
|
|
469
469
|
ww_signedon?: string | null | undefined;
|
|
@@ -516,7 +516,7 @@ export declare const ContractorDocument: {
|
|
|
516
516
|
ww_documentreceiveddate?: string | null | undefined;
|
|
517
517
|
ww_documentstatus?: number | null | undefined;
|
|
518
518
|
ww_documentdisplay?: number | null | undefined;
|
|
519
|
-
ww_file?:
|
|
519
|
+
ww_file?: File | null | undefined;
|
|
520
520
|
ww_file_name?: string | null | undefined;
|
|
521
521
|
ww_requirescontractorsignature?: boolean | null | undefined;
|
|
522
522
|
ww_signedon?: string | null | undefined;
|
|
@@ -647,7 +647,7 @@ export declare const ContractorDocument: {
|
|
|
647
647
|
};
|
|
648
648
|
readonly ww_file: {
|
|
649
649
|
readonly pretty: "file";
|
|
650
|
-
readonly type: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").
|
|
650
|
+
readonly type: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodType<File, import("zod").ZodTypeDef, File>>>;
|
|
651
651
|
};
|
|
652
652
|
readonly ww_file_name: {
|
|
653
653
|
readonly pretty: "fileName";
|
|
@@ -873,7 +873,7 @@ export declare const ContractorDocument: {
|
|
|
873
873
|
documentReceivedDate?: string | null | undefined;
|
|
874
874
|
documentStatus?: number | null | undefined;
|
|
875
875
|
documentDisplay?: number | null | undefined;
|
|
876
|
-
file?:
|
|
876
|
+
file?: File | null | undefined;
|
|
877
877
|
fileName?: string | null | undefined;
|
|
878
878
|
requiresContractorSignature?: boolean | null | undefined;
|
|
879
879
|
signedOn?: string | null | undefined;
|
|
@@ -944,7 +944,7 @@ export declare const ContractorDocument: {
|
|
|
944
944
|
documentReceivedDate?: string | null | undefined;
|
|
945
945
|
documentStatus?: number | null | undefined;
|
|
946
946
|
documentDisplay?: number | null | undefined;
|
|
947
|
-
file?:
|
|
947
|
+
file?: File | null | undefined;
|
|
948
948
|
fileName?: string | null | undefined;
|
|
949
949
|
requiresContractorSignature?: boolean | null | undefined;
|
|
950
950
|
signedOn?: string | null | undefined;
|
|
@@ -964,7 +964,7 @@ export declare const ContractorDocument: {
|
|
|
964
964
|
readonly documentReceivedDate: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
965
965
|
readonly documentStatus: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>>;
|
|
966
966
|
readonly documentDisplay: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>>;
|
|
967
|
-
readonly file: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").
|
|
967
|
+
readonly file: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodType<File, import("zod").ZodTypeDef, File>>>>;
|
|
968
968
|
readonly fileName: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
969
969
|
readonly requiresContractorSignature: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>>;
|
|
970
970
|
readonly signedOn: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
@@ -1051,7 +1051,7 @@ export declare const ContractorDocument: {
|
|
|
1051
1051
|
documentReceivedDate?: string | null | undefined;
|
|
1052
1052
|
documentStatus?: number | null | undefined;
|
|
1053
1053
|
documentDisplay?: number | null | undefined;
|
|
1054
|
-
file?:
|
|
1054
|
+
file?: File | null | undefined;
|
|
1055
1055
|
fileName?: string | null | undefined;
|
|
1056
1056
|
requiresContractorSignature?: boolean | null | undefined;
|
|
1057
1057
|
signedOn?: string | null | undefined;
|
|
@@ -1104,7 +1104,7 @@ export declare const ContractorDocument: {
|
|
|
1104
1104
|
documentReceivedDate?: string | null | undefined;
|
|
1105
1105
|
documentStatus?: number | null | undefined;
|
|
1106
1106
|
documentDisplay?: number | null | undefined;
|
|
1107
|
-
file?:
|
|
1107
|
+
file?: File | null | undefined;
|
|
1108
1108
|
fileName?: string | null | undefined;
|
|
1109
1109
|
requiresContractorSignature?: boolean | null | undefined;
|
|
1110
1110
|
signedOn?: string | null | undefined;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const customerAddressOptions: {
|
|
3
|
+
readonly AddressType: {
|
|
4
|
+
readonly billing: 1;
|
|
5
|
+
readonly contracts: 2;
|
|
6
|
+
readonly correspondence: 3;
|
|
7
|
+
readonly registered: 4;
|
|
8
|
+
readonly home: 5;
|
|
9
|
+
readonly overseas: 6;
|
|
10
|
+
readonly work: 7;
|
|
11
|
+
};
|
|
12
|
+
readonly ShippingMethod: {
|
|
13
|
+
readonly airborne: 1;
|
|
14
|
+
readonly dhl: 2;
|
|
15
|
+
readonly fedex: 3;
|
|
16
|
+
readonly ups: 4;
|
|
17
|
+
readonly postalMail: 5;
|
|
18
|
+
readonly fullLoad: 6;
|
|
19
|
+
readonly willCall: 7;
|
|
20
|
+
};
|
|
21
|
+
readonly FreightTerms: {
|
|
22
|
+
readonly fob: 1;
|
|
23
|
+
readonly noCharge: 2;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const customerAddressRelationships: {
|
|
27
|
+
readonly parentidContact: {
|
|
28
|
+
readonly relationshipName: "parentid_contact";
|
|
29
|
+
readonly entity: "contacts";
|
|
30
|
+
};
|
|
31
|
+
readonly parentidAccount: {
|
|
32
|
+
readonly relationshipName: "parentid_account";
|
|
33
|
+
readonly entity: "accounts";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const customerAddressFields: {
|
|
37
|
+
readonly customeraddressid: {
|
|
38
|
+
readonly pretty: "customerAddressId";
|
|
39
|
+
readonly type: z.ZodString;
|
|
40
|
+
};
|
|
41
|
+
readonly name: {
|
|
42
|
+
readonly pretty: "addressName";
|
|
43
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
};
|
|
45
|
+
readonly city: {
|
|
46
|
+
readonly pretty: "city";
|
|
47
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
};
|
|
49
|
+
readonly addresstypecode: {
|
|
50
|
+
readonly pretty: "addressType";
|
|
51
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
};
|
|
53
|
+
readonly stateorprovince: {
|
|
54
|
+
readonly pretty: "stateProvince";
|
|
55
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
};
|
|
57
|
+
readonly line1: {
|
|
58
|
+
readonly pretty: "addressLine1";
|
|
59
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
};
|
|
61
|
+
readonly postalcode: {
|
|
62
|
+
readonly pretty: "postalCode";
|
|
63
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
};
|
|
65
|
+
readonly line2: {
|
|
66
|
+
readonly pretty: "addressLine2";
|
|
67
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
};
|
|
69
|
+
readonly country: {
|
|
70
|
+
readonly pretty: "country";
|
|
71
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
};
|
|
73
|
+
readonly line3: {
|
|
74
|
+
readonly pretty: "addressLine3";
|
|
75
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
};
|
|
77
|
+
readonly ww_validfrom: {
|
|
78
|
+
readonly pretty: "validFrom";
|
|
79
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
};
|
|
81
|
+
readonly ww_validto: {
|
|
82
|
+
readonly pretty: "validTo";
|
|
83
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
};
|
|
85
|
+
readonly telephone1: {
|
|
86
|
+
readonly pretty: "mainPhone";
|
|
87
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
};
|
|
89
|
+
readonly fax: {
|
|
90
|
+
readonly pretty: "fax";
|
|
91
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
+
};
|
|
93
|
+
readonly telephone2: {
|
|
94
|
+
readonly pretty: "phone2";
|
|
95
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
};
|
|
97
|
+
readonly shippingmethodcode: {
|
|
98
|
+
readonly pretty: "shippingMethod";
|
|
99
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
100
|
+
};
|
|
101
|
+
readonly primarycontactname: {
|
|
102
|
+
readonly pretty: "addressContact";
|
|
103
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
};
|
|
105
|
+
readonly freighttermscode: {
|
|
106
|
+
readonly pretty: "freightTerms";
|
|
107
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
108
|
+
};
|
|
109
|
+
readonly _parentid_value: {
|
|
110
|
+
readonly pretty: "contactId";
|
|
111
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
};
|
|
113
|
+
readonly parentid_account: {
|
|
114
|
+
readonly relationshipName: "parentid_account";
|
|
115
|
+
readonly entity: "accounts";
|
|
116
|
+
readonly pretty: "parentidAccount";
|
|
117
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
};
|
|
119
|
+
readonly parentid_contact: {
|
|
120
|
+
readonly relationshipName: "parentid_contact";
|
|
121
|
+
readonly entity: "contacts";
|
|
122
|
+
readonly pretty: "parentidContact";
|
|
123
|
+
readonly type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=DCustomerAddressAPI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DCustomerAddressAPI.d.ts","sourceRoot":"","sources":["../../../../../src/models/schemas/api/customerAddress/DCustomerAddressAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;CAuBzB,CAAA;AAEV,eAAO,MAAM,4BAA4B;;;;;;;;;CAS/B,CAAA;AAEV,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCxB,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { EntityNames } from '../../../../enums/EntityNames.js';
|
|
3
|
+
export const customerAddressOptions = {
|
|
4
|
+
AddressType: {
|
|
5
|
+
billing: 1,
|
|
6
|
+
contracts: 2,
|
|
7
|
+
correspondence: 3,
|
|
8
|
+
registered: 4,
|
|
9
|
+
home: 5,
|
|
10
|
+
overseas: 6,
|
|
11
|
+
work: 7,
|
|
12
|
+
},
|
|
13
|
+
ShippingMethod: {
|
|
14
|
+
airborne: 1,
|
|
15
|
+
dhl: 2,
|
|
16
|
+
fedex: 3,
|
|
17
|
+
ups: 4,
|
|
18
|
+
postalMail: 5,
|
|
19
|
+
fullLoad: 6,
|
|
20
|
+
willCall: 7,
|
|
21
|
+
},
|
|
22
|
+
FreightTerms: {
|
|
23
|
+
fob: 1,
|
|
24
|
+
noCharge: 2,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const customerAddressRelationships = {
|
|
28
|
+
parentidContact: {
|
|
29
|
+
relationshipName: 'parentid_contact',
|
|
30
|
+
entity: EntityNames.contact.entitySetName,
|
|
31
|
+
},
|
|
32
|
+
parentidAccount: {
|
|
33
|
+
relationshipName: 'parentid_account',
|
|
34
|
+
entity: EntityNames.account.entitySetName,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
export const customerAddressFields = {
|
|
38
|
+
customeraddressid: { pretty: 'customerAddressId', type: z.string().uuid() },
|
|
39
|
+
name: { pretty: 'addressName', type: z.string().nullish() },
|
|
40
|
+
city: { pretty: 'city', type: z.string().nullish() },
|
|
41
|
+
addresstypecode: { pretty: 'addressType', type: z.number().nullish() },
|
|
42
|
+
stateorprovince: { pretty: 'stateProvince', type: z.string().nullish() },
|
|
43
|
+
line1: { pretty: 'addressLine1', type: z.string().nullish() },
|
|
44
|
+
postalcode: { pretty: 'postalCode', type: z.string().nullish() },
|
|
45
|
+
line2: { pretty: 'addressLine2', type: z.string().nullish() },
|
|
46
|
+
country: { pretty: 'country', type: z.string().nullish() },
|
|
47
|
+
line3: { pretty: 'addressLine3', type: z.string().nullish() },
|
|
48
|
+
ww_validfrom: { pretty: 'validFrom', type: z.string().nullish() },
|
|
49
|
+
ww_validto: { pretty: 'validTo', type: z.string().nullish() },
|
|
50
|
+
telephone1: { pretty: 'mainPhone', type: z.string().nullish() },
|
|
51
|
+
fax: { pretty: 'fax', type: z.string().nullish() },
|
|
52
|
+
telephone2: { pretty: 'phone2', type: z.string().nullish() },
|
|
53
|
+
shippingmethodcode: { pretty: 'shippingMethod', type: z.number().nullish() },
|
|
54
|
+
primarycontactname: { pretty: 'addressContact', type: z.string().nullish() },
|
|
55
|
+
freighttermscode: { pretty: 'freightTerms', type: z.number().nullish() },
|
|
56
|
+
_parentid_value: {
|
|
57
|
+
pretty: 'contactId',
|
|
58
|
+
type: z.string().uuid().nullish(),
|
|
59
|
+
},
|
|
60
|
+
parentid_account: {
|
|
61
|
+
pretty: 'parentidAccount',
|
|
62
|
+
type: z.string().uuid().nullish(),
|
|
63
|
+
...customerAddressRelationships.parentidAccount,
|
|
64
|
+
},
|
|
65
|
+
parentid_contact: {
|
|
66
|
+
pretty: 'parentidContact',
|
|
67
|
+
type: z.string().uuid().nullish(),
|
|
68
|
+
...customerAddressRelationships.parentidContact,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=DCustomerAddressAPI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DCustomerAddressAPI.js","sourceRoot":"","sources":["../../../../../src/models/schemas/api/customerAddress/DCustomerAddressAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,WAAW,EAAE;QACX,OAAO,EAAE,CAAC;QACV,SAAS,EAAE,CAAC;QACZ,cAAc,EAAE,CAAC;QACjB,UAAU,EAAE,CAAC;QACb,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE,CAAC;KACR;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,CAAC;QACX,GAAG,EAAE,CAAC;QACN,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;QACN,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,QAAQ,EAAE,CAAC;KACZ;IACD,YAAY,EAAE;QACZ,GAAG,EAAE,CAAC;QACN,QAAQ,EAAE,CAAC;KACZ;CACO,CAAA;AAEV,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,eAAe,EAAE;QACf,gBAAgB,EAAE,kBAAkB;QACpC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,aAAa;KAC1C;IACD,eAAe,EAAE;QACf,gBAAgB,EAAE,kBAAkB;QACpC,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,aAAa;KAC1C;CACO,CAAA;AAEV,MAAM,CAAC,MAAM,qBAAqB,GAAG;I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