@greensecurity/javascript-sdk 0.30.46 → 0.30.51
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/README.md +3 -0
- package/bin/mcp-server.js +439 -212
- package/bin/mcp-server.js.map +25 -21
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +127 -3
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +9 -52
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts +23 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js +131 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/cli/start/impl.js +8 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.js +69 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +3 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/models/components/credential.d.ts +4 -0
- package/dist/commonjs/models/components/credential.d.ts.map +1 -1
- package/dist/commonjs/models/components/credential.js +8 -0
- package/dist/commonjs/models/components/credential.js.map +1 -1
- package/dist/commonjs/models/components/expand.d.ts +12 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +4 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +2 -2
- package/dist/commonjs/models/components/invoice.js +2 -2
- package/dist/commonjs/models/components/invoiceitem.d.ts +52 -4
- package/dist/commonjs/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoiceitem.js +60 -9
- package/dist/commonjs/models/components/invoiceitem.js.map +1 -1
- package/dist/commonjs/models/components/product.d.ts +36 -0
- package/dist/commonjs/models/components/product.d.ts.map +1 -0
- package/dist/commonjs/models/components/product.js +73 -0
- package/dist/commonjs/models/components/product.js.map +1 -0
- package/dist/commonjs/models/components/vendor.d.ts +30 -0
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +33 -1
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts +2 -4
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialfile.js +4 -6
- package/dist/commonjs/models/components/vendorcredentialfile.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.d.ts +4 -0
- package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.js +8 -0
- package/dist/commonjs/models/components/zoneconfig.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorcredentialfile.d.ts +43 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.js +83 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.d.ts +55 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.js +108 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +14 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +17 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +127 -3
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +9 -52
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts +23 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.js +95 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/cli/start/impl.js +8 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.js +33 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +3 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/models/components/credential.d.ts +4 -0
- package/dist/esm/models/components/credential.d.ts.map +1 -1
- package/dist/esm/models/components/credential.js +8 -0
- package/dist/esm/models/components/credential.js.map +1 -1
- package/dist/esm/models/components/expand.d.ts +12 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +4 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +2 -2
- package/dist/esm/models/components/invoice.js +2 -2
- package/dist/esm/models/components/invoiceitem.d.ts +52 -4
- package/dist/esm/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/esm/models/components/invoiceitem.js +55 -8
- package/dist/esm/models/components/invoiceitem.js.map +1 -1
- package/dist/esm/models/components/product.d.ts +36 -0
- package/dist/esm/models/components/product.d.ts.map +1 -0
- package/dist/esm/models/components/product.js +35 -0
- package/dist/esm/models/components/product.js.map +1 -0
- package/dist/esm/models/components/vendor.d.ts +30 -0
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +30 -0
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialfile.d.ts +2 -4
- package/dist/esm/models/components/vendorcredentialfile.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialfile.js +4 -6
- package/dist/esm/models/components/vendorcredentialfile.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/models/components/zoneconfig.d.ts +4 -0
- package/dist/esm/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/esm/models/components/zoneconfig.js +8 -0
- package/dist/esm/models/components/zoneconfig.js.map +1 -1
- package/dist/esm/models/operations/getvendorcredentialfile.d.ts +43 -0
- package/dist/esm/models/operations/getvendorcredentialfile.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorcredentialfile.js +45 -0
- package/dist/esm/models/operations/getvendorcredentialfile.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.d.ts +55 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.js +98 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +4 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +4 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +14 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +17 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +130 -3
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +9 -52
- package/src/funcs/vendorsGetVendorCredentialFile.ts +191 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/impl.ts +8 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/vendorsGetVendorCredentialFile.ts +43 -0
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +3 -1
- package/src/models/components/credential.ts +12 -0
- package/src/models/components/expand.ts +6 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoice.ts +4 -4
- package/src/models/components/invoiceitem.ts +126 -12
- package/src/models/components/product.ts +70 -0
- package/src/models/components/vendor.ts +68 -0
- package/src/models/components/vendorcredentialfile.ts +6 -10
- package/src/models/components/vendorcredentialsummary.ts +6 -0
- package/src/models/components/zoneconfig.ts +12 -0
- package/src/models/operations/getvendorcredentialfile.ts +95 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsGetVendorCredentialFile.ts +197 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +4 -0
- package/src/sdk/vendors.ts +25 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.js","sourceRoot":"","sources":["../../../../src/models/components/credential.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,gCAAgC,EAEhC,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,GAAG;IACT,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,KAAK,EAAE,GAAG;I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QAAQ,EAAE;IAC1C,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,aAAa;QACzB,YAAY,EAAE,eAAe;QAC7B,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,WAAW;QACrB,mBAAmB,EAAE,sBAAsB;QAC3C,OAAO,EAAE,UAAU;QACnB,cAAc,EAAE,kBAAkB;KACnC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,WAAW,CAO3B;AAPD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,wBAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,yBAAyB,CAAC;AAG1D,CAAC,EAPgB,WAAW,KAAX,WAAW,QAO3B;AAED,MAAM,UAAU,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare const Expand: {
|
|
|
20
20
|
readonly FacilityWorkflow: "facility.workflow";
|
|
21
21
|
readonly VendorUser: "vendor.user";
|
|
22
22
|
readonly VendorVendorType: "vendor.vendor_type";
|
|
23
|
+
readonly VendorVendorJob: "vendor.vendor_job";
|
|
23
24
|
readonly VendorPaymentProfile: "vendor.payment_profile";
|
|
24
25
|
readonly VendorImageUrls: "vendor.image_urls";
|
|
25
26
|
readonly VendorPrimaryFacility: "vendor.primary_facility";
|
|
@@ -29,6 +30,7 @@ export declare const Expand: {
|
|
|
29
30
|
readonly VendorScrubsSubscription: "vendor.scrubs_subscription";
|
|
30
31
|
readonly VendorPaymentResponsibility: "vendor.payment_responsibility";
|
|
31
32
|
readonly VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires";
|
|
33
|
+
readonly VendorRegistrationData: "vendor.registration_data";
|
|
32
34
|
readonly SupportArticleDescription: "support_article.description";
|
|
33
35
|
readonly SupportArticlePublished: "support_article.published";
|
|
34
36
|
readonly SupportArticleNotes: "support_article.notes";
|
|
@@ -50,6 +52,8 @@ export declare const Expand: {
|
|
|
50
52
|
readonly VendorCredentialVendorCredentialDataRequests: "vendor_credential.vendor_credential_data_requests";
|
|
51
53
|
readonly VendorCredentialCredentialVariants: "vendor_credential.credential_variants";
|
|
52
54
|
readonly VendorCredentialTargetsChop: "vendor_credential.targets_chop";
|
|
55
|
+
readonly VendorCredentialFileVendorCredential: "vendor_credential_file.vendor_credential";
|
|
56
|
+
readonly VendorCredentialFileCredentialDocument: "vendor_credential_file.credential_document";
|
|
53
57
|
};
|
|
54
58
|
/**
|
|
55
59
|
* An expansion scope that is valid for the object being requested.
|
|
@@ -82,6 +86,7 @@ export declare namespace Expand$ {
|
|
|
82
86
|
readonly FacilityWorkflow: "facility.workflow";
|
|
83
87
|
readonly VendorUser: "vendor.user";
|
|
84
88
|
readonly VendorVendorType: "vendor.vendor_type";
|
|
89
|
+
readonly VendorVendorJob: "vendor.vendor_job";
|
|
85
90
|
readonly VendorPaymentProfile: "vendor.payment_profile";
|
|
86
91
|
readonly VendorImageUrls: "vendor.image_urls";
|
|
87
92
|
readonly VendorPrimaryFacility: "vendor.primary_facility";
|
|
@@ -91,6 +96,7 @@ export declare namespace Expand$ {
|
|
|
91
96
|
readonly VendorScrubsSubscription: "vendor.scrubs_subscription";
|
|
92
97
|
readonly VendorPaymentResponsibility: "vendor.payment_responsibility";
|
|
93
98
|
readonly VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires";
|
|
99
|
+
readonly VendorRegistrationData: "vendor.registration_data";
|
|
94
100
|
readonly SupportArticleDescription: "support_article.description";
|
|
95
101
|
readonly SupportArticlePublished: "support_article.published";
|
|
96
102
|
readonly SupportArticleNotes: "support_article.notes";
|
|
@@ -112,6 +118,8 @@ export declare namespace Expand$ {
|
|
|
112
118
|
readonly VendorCredentialVendorCredentialDataRequests: "vendor_credential.vendor_credential_data_requests";
|
|
113
119
|
readonly VendorCredentialCredentialVariants: "vendor_credential.credential_variants";
|
|
114
120
|
readonly VendorCredentialTargetsChop: "vendor_credential.targets_chop";
|
|
121
|
+
readonly VendorCredentialFileVendorCredential: "vendor_credential_file.vendor_credential";
|
|
122
|
+
readonly VendorCredentialFileCredentialDocument: "vendor_credential_file.credential_document";
|
|
115
123
|
}>;
|
|
116
124
|
/** @deprecated use `Expand$outboundSchema` instead. */
|
|
117
125
|
const outboundSchema: z.ZodNativeEnum<{
|
|
@@ -131,6 +139,7 @@ export declare namespace Expand$ {
|
|
|
131
139
|
readonly FacilityWorkflow: "facility.workflow";
|
|
132
140
|
readonly VendorUser: "vendor.user";
|
|
133
141
|
readonly VendorVendorType: "vendor.vendor_type";
|
|
142
|
+
readonly VendorVendorJob: "vendor.vendor_job";
|
|
134
143
|
readonly VendorPaymentProfile: "vendor.payment_profile";
|
|
135
144
|
readonly VendorImageUrls: "vendor.image_urls";
|
|
136
145
|
readonly VendorPrimaryFacility: "vendor.primary_facility";
|
|
@@ -140,6 +149,7 @@ export declare namespace Expand$ {
|
|
|
140
149
|
readonly VendorScrubsSubscription: "vendor.scrubs_subscription";
|
|
141
150
|
readonly VendorPaymentResponsibility: "vendor.payment_responsibility";
|
|
142
151
|
readonly VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires";
|
|
152
|
+
readonly VendorRegistrationData: "vendor.registration_data";
|
|
143
153
|
readonly SupportArticleDescription: "support_article.description";
|
|
144
154
|
readonly SupportArticlePublished: "support_article.published";
|
|
145
155
|
readonly SupportArticleNotes: "support_article.notes";
|
|
@@ -161,6 +171,8 @@ export declare namespace Expand$ {
|
|
|
161
171
|
readonly VendorCredentialVendorCredentialDataRequests: "vendor_credential.vendor_credential_data_requests";
|
|
162
172
|
readonly VendorCredentialCredentialVariants: "vendor_credential.credential_variants";
|
|
163
173
|
readonly VendorCredentialTargetsChop: "vendor_credential.targets_chop";
|
|
174
|
+
readonly VendorCredentialFileVendorCredential: "vendor_credential_file.vendor_credential";
|
|
175
|
+
readonly VendorCredentialFileCredentialDocument: "vendor_credential_file.credential_document";
|
|
164
176
|
}>;
|
|
165
177
|
}
|
|
166
178
|
//# sourceMappingURL=expand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../../src/models/components/expand.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../../src/models/components/expand.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DT,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAE/C,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC3C,CAAC;AAEtB,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,MAAM,CAC3C,CAAC;AAEvB;;;GAGG;AACH,yBAAiB,OAAO,CAAC;IACvB,sDAAsD;IAC/C,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAuB,CAAC;IAClD,uDAAuD;IAChD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAwB,CAAC;CACrD"}
|
|
@@ -22,6 +22,7 @@ export const Expand = {
|
|
|
22
22
|
FacilityWorkflow: "facility.workflow",
|
|
23
23
|
VendorUser: "vendor.user",
|
|
24
24
|
VendorVendorType: "vendor.vendor_type",
|
|
25
|
+
VendorVendorJob: "vendor.vendor_job",
|
|
25
26
|
VendorPaymentProfile: "vendor.payment_profile",
|
|
26
27
|
VendorImageUrls: "vendor.image_urls",
|
|
27
28
|
VendorPrimaryFacility: "vendor.primary_facility",
|
|
@@ -31,6 +32,7 @@ export const Expand = {
|
|
|
31
32
|
VendorScrubsSubscription: "vendor.scrubs_subscription",
|
|
32
33
|
VendorPaymentResponsibility: "vendor.payment_responsibility",
|
|
33
34
|
VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires",
|
|
35
|
+
VendorRegistrationData: "vendor.registration_data",
|
|
34
36
|
SupportArticleDescription: "support_article.description",
|
|
35
37
|
SupportArticlePublished: "support_article.published",
|
|
36
38
|
SupportArticleNotes: "support_article.notes",
|
|
@@ -52,6 +54,8 @@ export const Expand = {
|
|
|
52
54
|
VendorCredentialVendorCredentialDataRequests: "vendor_credential.vendor_credential_data_requests",
|
|
53
55
|
VendorCredentialCredentialVariants: "vendor_credential.credential_variants",
|
|
54
56
|
VendorCredentialTargetsChop: "vendor_credential.targets_chop",
|
|
57
|
+
VendorCredentialFileVendorCredential: "vendor_credential_file.vendor_credential",
|
|
58
|
+
VendorCredentialFileCredentialDocument: "vendor_credential_file.credential_document",
|
|
55
59
|
};
|
|
56
60
|
/** @internal */
|
|
57
61
|
export const Expand$inboundSchema = z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand.js","sourceRoot":"","sources":["../../../../src/models/components/expand.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,eAAe,EAAE,kBAAkB;IACnC,aAAa,EAAE,gBAAgB;IAC/B,iBAAiB,EAAE,oBAAoB;IACvC,yBAAyB,EAAE,6BAA6B;IACxD,gBAAgB,EAAE,mBAAmB;IACrC,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,oBAAoB,EAAE,wBAAwB;IAC9C,cAAc,EAAE,iBAAiB;IACjC,yBAAyB,EAAE,8BAA8B;IACzD,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,gBAAgB,EAAE,mBAAmB;IACrC,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,oBAAoB;IACtC,oBAAoB,EAAE,wBAAwB;IAC9C,eAAe,EAAE,mBAAmB;IACpC,qBAAqB,EAAE,yBAAyB;IAChD,uBAAuB,EAAE,2BAA2B;IACpD,aAAa,EAAE,gBAAgB;IAC/B,+BAA+B,EAAE,mCAAmC;IACpE,wBAAwB,EAAE,4BAA4B;IACtD,2BAA2B,EAAE,+BAA+B;IAC5D,gCAAgC,EAAE,sCAAsC;IACxE,yBAAyB,EAAE,6BAA6B;IACxD,uBAAuB,EAAE,2BAA2B;IACpD,mBAAmB,EAAE,uBAAuB;IAC5C,6BAA6B,EAAE,kCAAkC;IACjE,gBAAgB,EAAE,oBAAoB;IACtC,0BAA0B,EAAE,8BAA8B;IAC1D,0BAA0B,EAAE,8BAA8B;IAC1D,sBAAsB,EAAE,0BAA0B;IAClD,uBAAuB,EAAE,2BAA2B;IACpD,qCAAqC,EACnC,2CAA2C;IAC7C,wCAAwC,EACtC,+CAA+C;IACjD,kCAAkC,EAAE,uCAAuC;IAC3E,uCAAuC,EACrC,4CAA4C;IAC9C,+BAA+B,EAAE,oCAAoC;IACrE,wCAAwC,EACtC,+CAA+C;IACjD,+BAA+B,EAAE,oCAAoC;IACrE,sCAAsC,EACpC,4CAA4C;IAC9C,6CAA6C,EAC3C,oDAAoD;IACtD,4CAA4C,EAC1C,mDAAmD;IACrD,kCAAkC,EAAE,uCAAuC;IAC3E,2BAA2B,EAAE,gCAAgC;
|
|
1
|
+
{"version":3,"file":"expand.js","sourceRoot":"","sources":["../../../../src/models/components/expand.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,eAAe,EAAE,kBAAkB;IACnC,aAAa,EAAE,gBAAgB;IAC/B,iBAAiB,EAAE,oBAAoB;IACvC,yBAAyB,EAAE,6BAA6B;IACxD,gBAAgB,EAAE,mBAAmB;IACrC,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,oBAAoB,EAAE,wBAAwB;IAC9C,cAAc,EAAE,iBAAiB;IACjC,yBAAyB,EAAE,8BAA8B;IACzD,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,gBAAgB,EAAE,mBAAmB;IACrC,UAAU,EAAE,aAAa;IACzB,gBAAgB,EAAE,oBAAoB;IACtC,eAAe,EAAE,mBAAmB;IACpC,oBAAoB,EAAE,wBAAwB;IAC9C,eAAe,EAAE,mBAAmB;IACpC,qBAAqB,EAAE,yBAAyB;IAChD,uBAAuB,EAAE,2BAA2B;IACpD,aAAa,EAAE,gBAAgB;IAC/B,+BAA+B,EAAE,mCAAmC;IACpE,wBAAwB,EAAE,4BA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ponse.js";
|
|
24
24
|
export * from "./pager.js";
|
|
25
25
|
export * from "./passwordrequiredresponse.js";
|
|
26
|
+
export * from "./product.js";
|
|
26
27
|
export * from "./productvariant.js";
|
|
27
28
|
export * from "./samlloginrequiredresponse.js";
|
|
28
29
|
export * from "./scantype.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,c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;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
|
@@ -26,6 +26,7 @@ export * from "./loginrequirementsfromemail.js";
|
|
|
26
26
|
export * from "./mfarequiredresponse.js";
|
|
27
27
|
export * from "./pager.js";
|
|
28
28
|
export * from "./passwordrequiredresponse.js";
|
|
29
|
+
export * from "./product.js";
|
|
29
30
|
export * from "./productvariant.js";
|
|
30
31
|
export * from "./samlloginrequiredresponse.js";
|
|
31
32
|
export * from "./scantype.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAA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AAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
|
@@ -18,7 +18,7 @@ export type Invoice = {
|
|
|
18
18
|
convenienceFee?: number | null | undefined;
|
|
19
19
|
shipping?: number | null | undefined;
|
|
20
20
|
discount?: number | undefined;
|
|
21
|
-
|
|
21
|
+
lines?: Array<InvoiceItem> | null | undefined;
|
|
22
22
|
transactions?: Array<InvoiceTransaction> | null | undefined;
|
|
23
23
|
};
|
|
24
24
|
/** @internal */
|
|
@@ -36,7 +36,7 @@ export type Invoice$Outbound = {
|
|
|
36
36
|
convenience_fee?: number | null | undefined;
|
|
37
37
|
shipping?: number | null | undefined;
|
|
38
38
|
discount?: number | undefined;
|
|
39
|
-
|
|
39
|
+
lines?: Array<InvoiceItem$Outbound> | null | undefined;
|
|
40
40
|
transactions?: Array<InvoiceTransaction$Outbound> | null | undefined;
|
|
41
41
|
};
|
|
42
42
|
/** @internal */
|
|
@@ -19,7 +19,7 @@ export const Invoice$inboundSchema = z.object({
|
|
|
19
19
|
convenience_fee: z.nullable(z.number()).optional(),
|
|
20
20
|
shipping: z.nullable(z.number().int()).optional(),
|
|
21
21
|
discount: z.number().int().optional(),
|
|
22
|
-
|
|
22
|
+
lines: z.nullable(z.array(InvoiceItem$inboundSchema)).optional(),
|
|
23
23
|
transactions: z.nullable(z.array(InvoiceTransaction$inboundSchema))
|
|
24
24
|
.optional(),
|
|
25
25
|
}).transform((v) => {
|
|
@@ -44,7 +44,7 @@ export const Invoice$outboundSchema = z.object({
|
|
|
44
44
|
convenienceFee: z.nullable(z.number()).optional(),
|
|
45
45
|
shipping: z.nullable(z.number().int()).optional(),
|
|
46
46
|
discount: z.number().int().optional(),
|
|
47
|
-
|
|
47
|
+
lines: z.nullable(z.array(InvoiceItem$outboundSchema)).optional(),
|
|
48
48
|
transactions: z.nullable(z.array(InvoiceTransaction$outboundSchema))
|
|
49
49
|
.optional(),
|
|
50
50
|
}).transform((v) => {
|
|
@@ -1,33 +1,81 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { Product, Product$Outbound } from "./product.js";
|
|
5
|
+
import { ProductVariant, ProductVariant$Outbound } from "./productvariant.js";
|
|
6
|
+
export type Variant = ProductVariant | number;
|
|
7
|
+
export type InvoiceItemProduct = Product | number;
|
|
4
8
|
/**
|
|
5
9
|
* Reduced list of attributes of the Invoice line item record
|
|
6
10
|
*/
|
|
7
11
|
export type InvoiceItem = {
|
|
8
|
-
|
|
12
|
+
id?: number | undefined;
|
|
9
13
|
dateStarts?: string | null | undefined;
|
|
10
14
|
dateEnds?: string | null | undefined;
|
|
11
15
|
isSubscription?: boolean | null | undefined;
|
|
12
16
|
productTitle?: string | null | undefined;
|
|
13
|
-
|
|
17
|
+
title?: string | null | undefined;
|
|
14
18
|
quantity?: number | null | undefined;
|
|
15
19
|
unitPrice?: number | null | undefined;
|
|
16
20
|
subtotal?: number | null | undefined;
|
|
21
|
+
variant?: ProductVariant | number | null | undefined;
|
|
22
|
+
product?: Product | number | null | undefined;
|
|
17
23
|
};
|
|
18
24
|
/** @internal */
|
|
25
|
+
export declare const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type Variant$Outbound = ProductVariant$Outbound | number;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const Variant$outboundSchema: z.ZodType<Variant$Outbound, z.ZodTypeDef, Variant>;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export declare namespace Variant$ {
|
|
35
|
+
/** @deprecated use `Variant$inboundSchema` instead. */
|
|
36
|
+
const inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown>;
|
|
37
|
+
/** @deprecated use `Variant$outboundSchema` instead. */
|
|
38
|
+
const outboundSchema: z.ZodType<Variant$Outbound, z.ZodTypeDef, Variant>;
|
|
39
|
+
/** @deprecated use `Variant$Outbound` instead. */
|
|
40
|
+
type Outbound = Variant$Outbound;
|
|
41
|
+
}
|
|
42
|
+
export declare function variantToJSON(variant: Variant): string;
|
|
43
|
+
export declare function variantFromJSON(jsonString: string): SafeParseResult<Variant, SDKValidationError>;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export declare const InvoiceItemProduct$inboundSchema: z.ZodType<InvoiceItemProduct, z.ZodTypeDef, unknown>;
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type InvoiceItemProduct$Outbound = Product$Outbound | number;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const InvoiceItemProduct$outboundSchema: z.ZodType<InvoiceItemProduct$Outbound, z.ZodTypeDef, InvoiceItemProduct>;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export declare namespace InvoiceItemProduct$ {
|
|
55
|
+
/** @deprecated use `InvoiceItemProduct$inboundSchema` instead. */
|
|
56
|
+
const inboundSchema: z.ZodType<InvoiceItemProduct, z.ZodTypeDef, unknown>;
|
|
57
|
+
/** @deprecated use `InvoiceItemProduct$outboundSchema` instead. */
|
|
58
|
+
const outboundSchema: z.ZodType<InvoiceItemProduct$Outbound, z.ZodTypeDef, InvoiceItemProduct>;
|
|
59
|
+
/** @deprecated use `InvoiceItemProduct$Outbound` instead. */
|
|
60
|
+
type Outbound = InvoiceItemProduct$Outbound;
|
|
61
|
+
}
|
|
62
|
+
export declare function invoiceItemProductToJSON(invoiceItemProduct: InvoiceItemProduct): string;
|
|
63
|
+
export declare function invoiceItemProductFromJSON(jsonString: string): SafeParseResult<InvoiceItemProduct, SDKValidationError>;
|
|
64
|
+
/** @internal */
|
|
19
65
|
export declare const InvoiceItem$inboundSchema: z.ZodType<InvoiceItem, z.ZodTypeDef, unknown>;
|
|
20
66
|
/** @internal */
|
|
21
67
|
export type InvoiceItem$Outbound = {
|
|
22
|
-
|
|
68
|
+
id?: number | undefined;
|
|
23
69
|
date_starts?: string | null | undefined;
|
|
24
70
|
date_ends?: string | null | undefined;
|
|
25
71
|
is_subscription?: boolean | null | undefined;
|
|
26
72
|
product_title?: string | null | undefined;
|
|
27
|
-
|
|
73
|
+
title?: string | null | undefined;
|
|
28
74
|
quantity?: number | null | undefined;
|
|
29
75
|
unit_price?: number | null | undefined;
|
|
30
76
|
subtotal?: number | null | undefined;
|
|
77
|
+
variant?: ProductVariant$Outbound | number | null | undefined;
|
|
78
|
+
product?: Product$Outbound | number | null | undefined;
|
|
31
79
|
};
|
|
32
80
|
/** @internal */
|
|
33
81
|
export declare const InvoiceItem$outboundSchema: z.ZodType<InvoiceItem$Outbound, z.ZodTypeDef, InvoiceItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoiceitem.d.ts","sourceRoot":"","sources":["../../../../src/models/components/invoiceitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"invoiceitem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AAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -4,47 +4,94 @@
|
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Product$inboundSchema, Product$outboundSchema, } from "./product.js";
|
|
8
|
+
import { ProductVariant$inboundSchema, ProductVariant$outboundSchema, } from "./productvariant.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const Variant$inboundSchema = z.union([ProductVariant$inboundSchema, z.number().int()]);
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const Variant$outboundSchema = z.union([ProductVariant$outboundSchema, z.number().int()]);
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
16
|
+
*/
|
|
17
|
+
export var Variant$;
|
|
18
|
+
(function (Variant$) {
|
|
19
|
+
/** @deprecated use `Variant$inboundSchema` instead. */
|
|
20
|
+
Variant$.inboundSchema = Variant$inboundSchema;
|
|
21
|
+
/** @deprecated use `Variant$outboundSchema` instead. */
|
|
22
|
+
Variant$.outboundSchema = Variant$outboundSchema;
|
|
23
|
+
})(Variant$ || (Variant$ = {}));
|
|
24
|
+
export function variantToJSON(variant) {
|
|
25
|
+
return JSON.stringify(Variant$outboundSchema.parse(variant));
|
|
26
|
+
}
|
|
27
|
+
export function variantFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => Variant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Variant' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const InvoiceItemProduct$inboundSchema = z.union([Product$inboundSchema, z.number().int()]);
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const InvoiceItemProduct$outboundSchema = z.union([Product$outboundSchema, z.number().int()]);
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
+
*/
|
|
38
|
+
export var InvoiceItemProduct$;
|
|
39
|
+
(function (InvoiceItemProduct$) {
|
|
40
|
+
/** @deprecated use `InvoiceItemProduct$inboundSchema` instead. */
|
|
41
|
+
InvoiceItemProduct$.inboundSchema = InvoiceItemProduct$inboundSchema;
|
|
42
|
+
/** @deprecated use `InvoiceItemProduct$outboundSchema` instead. */
|
|
43
|
+
InvoiceItemProduct$.outboundSchema = InvoiceItemProduct$outboundSchema;
|
|
44
|
+
})(InvoiceItemProduct$ || (InvoiceItemProduct$ = {}));
|
|
45
|
+
export function invoiceItemProductToJSON(invoiceItemProduct) {
|
|
46
|
+
return JSON.stringify(InvoiceItemProduct$outboundSchema.parse(invoiceItemProduct));
|
|
47
|
+
}
|
|
48
|
+
export function invoiceItemProductFromJSON(jsonString) {
|
|
49
|
+
return safeParse(jsonString, (x) => InvoiceItemProduct$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvoiceItemProduct' from JSON`);
|
|
50
|
+
}
|
|
7
51
|
/** @internal */
|
|
8
52
|
export const InvoiceItem$inboundSchema = z.object({
|
|
9
|
-
|
|
53
|
+
id: z.number().int().optional(),
|
|
10
54
|
date_starts: z.nullable(z.string()).optional(),
|
|
11
55
|
date_ends: z.nullable(z.string()).optional(),
|
|
12
56
|
is_subscription: z.nullable(z.boolean()).optional(),
|
|
13
57
|
product_title: z.nullable(z.string()).optional(),
|
|
14
|
-
|
|
58
|
+
title: z.nullable(z.string()).optional(),
|
|
15
59
|
quantity: z.nullable(z.number()).optional(),
|
|
16
60
|
unit_price: z.nullable(z.number().int()).optional(),
|
|
17
61
|
subtotal: z.nullable(z.number().int()).optional(),
|
|
62
|
+
variant: z.nullable(z.union([ProductVariant$inboundSchema, z.number().int()]))
|
|
63
|
+
.optional(),
|
|
64
|
+
product: z.nullable(z.union([Product$inboundSchema, z.number().int()]))
|
|
65
|
+
.optional(),
|
|
18
66
|
}).transform((v) => {
|
|
19
67
|
return remap$(v, {
|
|
20
|
-
"item_id": "itemId",
|
|
21
68
|
"date_starts": "dateStarts",
|
|
22
69
|
"date_ends": "dateEnds",
|
|
23
70
|
"is_subscription": "isSubscription",
|
|
24
71
|
"product_title": "productTitle",
|
|
25
|
-
"item_title": "itemTitle",
|
|
26
72
|
"unit_price": "unitPrice",
|
|
27
73
|
});
|
|
28
74
|
});
|
|
29
75
|
/** @internal */
|
|
30
76
|
export const InvoiceItem$outboundSchema = z.object({
|
|
31
|
-
|
|
77
|
+
id: z.number().int().optional(),
|
|
32
78
|
dateStarts: z.nullable(z.string()).optional(),
|
|
33
79
|
dateEnds: z.nullable(z.string()).optional(),
|
|
34
80
|
isSubscription: z.nullable(z.boolean()).optional(),
|
|
35
81
|
productTitle: z.nullable(z.string()).optional(),
|
|
36
|
-
|
|
82
|
+
title: z.nullable(z.string()).optional(),
|
|
37
83
|
quantity: z.nullable(z.number()).optional(),
|
|
38
84
|
unitPrice: z.nullable(z.number().int()).optional(),
|
|
39
85
|
subtotal: z.nullable(z.number().int()).optional(),
|
|
86
|
+
variant: z.nullable(z.union([ProductVariant$outboundSchema, z.number().int()])).optional(),
|
|
87
|
+
product: z.nullable(z.union([Product$outboundSchema, z.number().int()]))
|
|
88
|
+
.optional(),
|
|
40
89
|
}).transform((v) => {
|
|
41
90
|
return remap$(v, {
|
|
42
|
-
itemId: "item_id",
|
|
43
91
|
dateStarts: "date_starts",
|
|
44
92
|
dateEnds: "date_ends",
|
|
45
93
|
isSubscription: "is_subscription",
|
|
46
94
|
productTitle: "product_title",
|
|
47
|
-
itemTitle: "item_title",
|
|
48
95
|
unitPrice: "unit_price",
|
|
49
96
|
});
|
|
50
97
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoiceitem.js","sourceRoot":"","sources":["../../../../src/models/components/invoiceitem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"invoiceitem.js","sourceRoot":"","sources":["../../../../src/models/components/invoiceitem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,qBAAqB,EAErB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,4BAA4B,EAE5B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAuB7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAChC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAK5D,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAI/B,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,KAAW,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACvB,uDAAuD;IAC1C,sBAAa,GAAG,qBAAqB,CAAC;IACnD,wDAAwD;IAC3C,uBAAc,GAAG,sBAAsB,CAAC;AAGvD,CAAC,EAPgB,QAAQ,KAAR,Q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2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reduced list of attributes of Product record
|
|
6
|
+
*/
|
|
7
|
+
export type Product = {
|
|
8
|
+
id?: number | undefined;
|
|
9
|
+
title?: string | null | undefined;
|
|
10
|
+
description?: string | null | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type Product$Outbound = {
|
|
16
|
+
id?: number | undefined;
|
|
17
|
+
title?: string | null | undefined;
|
|
18
|
+
description?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const Product$outboundSchema: z.ZodType<Product$Outbound, z.ZodTypeDef, Product>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace Product$ {
|
|
27
|
+
/** @deprecated use `Product$inboundSchema` instead. */
|
|
28
|
+
const inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
|
|
29
|
+
/** @deprecated use `Product$outboundSchema` instead. */
|
|
30
|
+
const outboundSchema: z.ZodType<Product$Outbound, z.ZodTypeDef, Product>;
|
|
31
|
+
/** @deprecated use `Product$Outbound` instead. */
|
|
32
|
+
type Outbound = Product$Outbound;
|
|
33
|
+
}
|
|
34
|
+
export declare function productToJSON(product: Product): string;
|
|
35
|
+
export declare function productFromJSON(jsonString: string): SafeParseResult<Product, SDKValidationError>;
|
|
36
|
+
//# sourceMappingURL=product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/models/components/product.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,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|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const Product$inboundSchema = z.object({
|
|
8
|
+
id: z.number().int().optional(),
|
|
9
|
+
title: z.nullable(z.string()).optional(),
|
|
10
|
+
description: z.nullable(z.string()).optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const Product$outboundSchema = z.object({
|
|
14
|
+
id: z.number().int().optional(),
|
|
15
|
+
title: z.nullable(z.string()).optional(),
|
|
16
|
+
description: z.nullable(z.string()).optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export var Product$;
|
|
23
|
+
(function (Product$) {
|
|
24
|
+
/** @deprecated use `Product$inboundSchema` instead. */
|
|
25
|
+
Product$.inboundSchema = Product$inboundSchema;
|
|
26
|
+
/** @deprecated use `Product$outboundSchema` instead. */
|
|
27
|
+
Product$.outboundSchema = Product$outboundSchema;
|
|
28
|
+
})(Product$ || (Product$ = {}));
|
|
29
|
+
export function productToJSON(product) {
|
|
30
|
+
return JSON.stringify(Product$outboundSchema.parse(product));
|
|
31
|
+
}
|
|
32
|
+
export function productFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => Product$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Product' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../../src/models/components/product.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,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KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { ImageSet, ImageSet$Outbound } from "./imageset.js";
|
|
|
8
8
|
import { Subscription, Subscription$Outbound } from "./subscription.js";
|
|
9
9
|
import { Supervisor, Supervisor$Outbound } from "./supervisor.js";
|
|
10
10
|
import { UserLocation, UserLocation$Outbound } from "./userlocation.js";
|
|
11
|
+
import { VendorJobTitle, VendorJobTitle$Outbound } from "./vendorjobtitle.js";
|
|
11
12
|
export type One = {
|
|
12
13
|
id?: number | undefined;
|
|
13
14
|
firstName?: string | null | undefined;
|
|
@@ -29,6 +30,7 @@ export type One = {
|
|
|
29
30
|
location?: UserLocation | null | undefined;
|
|
30
31
|
};
|
|
31
32
|
export type VendorUser = One | number;
|
|
33
|
+
export type VendorJob = VendorJobTitle | number;
|
|
32
34
|
export type VendorType1 = {
|
|
33
35
|
id?: number | undefined;
|
|
34
36
|
name?: string | undefined;
|
|
@@ -76,6 +78,10 @@ export type Vendor = {
|
|
|
76
78
|
sendWeeklySummaryEmail?: boolean | null | undefined;
|
|
77
79
|
title?: string | null | undefined;
|
|
78
80
|
user?: One | number | undefined;
|
|
81
|
+
registrationData?: {
|
|
82
|
+
[k: string]: any;
|
|
83
|
+
} | null | undefined;
|
|
84
|
+
vendorJob?: VendorJobTitle | number | null | undefined;
|
|
79
85
|
vendorType?: VendorType1 | number | null | undefined;
|
|
80
86
|
/**
|
|
81
87
|
* list of the vendor supervisor attributes
|
|
@@ -172,6 +178,26 @@ export declare namespace VendorUser$ {
|
|
|
172
178
|
export declare function vendorUserToJSON(vendorUser: VendorUser): string;
|
|
173
179
|
export declare function vendorUserFromJSON(jsonString: string): SafeParseResult<VendorUser, SDKValidationError>;
|
|
174
180
|
/** @internal */
|
|
181
|
+
export declare const VendorJob$inboundSchema: z.ZodType<VendorJob, z.ZodTypeDef, unknown>;
|
|
182
|
+
/** @internal */
|
|
183
|
+
export type VendorJob$Outbound = VendorJobTitle$Outbound | number;
|
|
184
|
+
/** @internal */
|
|
185
|
+
export declare const VendorJob$outboundSchema: z.ZodType<VendorJob$Outbound, z.ZodTypeDef, VendorJob>;
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
189
|
+
*/
|
|
190
|
+
export declare namespace VendorJob$ {
|
|
191
|
+
/** @deprecated use `VendorJob$inboundSchema` instead. */
|
|
192
|
+
const inboundSchema: z.ZodType<VendorJob, z.ZodTypeDef, unknown>;
|
|
193
|
+
/** @deprecated use `VendorJob$outboundSchema` instead. */
|
|
194
|
+
const outboundSchema: z.ZodType<VendorJob$Outbound, z.ZodTypeDef, VendorJob>;
|
|
195
|
+
/** @deprecated use `VendorJob$Outbound` instead. */
|
|
196
|
+
type Outbound = VendorJob$Outbound;
|
|
197
|
+
}
|
|
198
|
+
export declare function vendorJobToJSON(vendorJob: VendorJob): string;
|
|
199
|
+
export declare function vendorJobFromJSON(jsonString: string): SafeParseResult<VendorJob, SDKValidationError>;
|
|
200
|
+
/** @internal */
|
|
175
201
|
export declare const VendorType1$inboundSchema: z.ZodType<VendorType1, z.ZodTypeDef, unknown>;
|
|
176
202
|
/** @internal */
|
|
177
203
|
export type VendorType1$Outbound = {
|
|
@@ -367,6 +393,10 @@ export type Vendor$Outbound = {
|
|
|
367
393
|
send_weekly_summary_email?: boolean | null | undefined;
|
|
368
394
|
title?: string | null | undefined;
|
|
369
395
|
user?: One$Outbound | number | undefined;
|
|
396
|
+
registration_data?: {
|
|
397
|
+
[k: string]: any;
|
|
398
|
+
} | null | undefined;
|
|
399
|
+
vendor_job?: VendorJobTitle$Outbound | number | null | undefined;
|
|
370
400
|
vendor_type?: VendorType1$Outbound | number | null | undefined;
|
|
371
401
|
supervisor?: Supervisor$Outbound | null | undefined;
|
|
372
402
|
qr_code?: string | null | undefined;
|