@greensecurity/javascript-sdk 0.19.0 → 0.21.3
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/REACT_QUERY.md +15 -15
- package/README.md +93 -9
- package/bin/mcp-server.js +1734 -271
- package/bin/mcp-server.js.map +50 -26
- package/funcs/organizationsListOrSearchFacilities.d.ts +2 -1
- package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/funcs/organizationsListOrSearchFacilities.js +3 -2
- package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/funcs/vendorScansVendorScanOut.d.ts +17 -0
- package/funcs/vendorScansVendorScanOut.d.ts.map +1 -0
- package/funcs/vendorScansVendorScanOut.js +120 -0
- package/funcs/vendorScansVendorScanOut.js.map +1 -0
- package/funcs/vendorsGetVendorsDetails.d.ts +32 -0
- package/funcs/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/funcs/vendorsGetVendorsDetails.js +139 -0
- package/funcs/vendorsGetVendorsDetails.js.map +1 -0
- package/funcs/vendorsListVendorCredentials.d.ts +4 -1
- package/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
- package/funcs/vendorsListVendorCredentials.js +46 -6
- package/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/funcs/vendorsListVendorFacilityStatuses.d.ts +1 -1
- package/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
- package/funcs/vendorsListVendorFacilityStatuses.js +3 -2
- package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
- package/funcs/vendorsListVendorJobTitles.d.ts +1 -1
- package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/funcs/vendorsListVendorJobTitles.js +21 -6
- package/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/funcs/vendorsListVendorScrubDetails.d.ts +18 -0
- package/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/funcs/vendorsListVendorScrubDetails.js +121 -0
- package/funcs/vendorsListVendorScrubDetails.js.map +1 -0
- package/funcs/vendorsListVendorScrubPurchases.d.ts +20 -0
- package/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/funcs/vendorsListVendorScrubPurchases.js +160 -0
- package/funcs/vendorsListVendorScrubPurchases.js.map +1 -0
- package/funcs/webhooksGetWebhookEndpoint.d.ts +18 -0
- package/funcs/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/funcs/webhooksGetWebhookEndpoint.js +121 -0
- package/funcs/webhooksGetWebhookEndpoint.js.map +1 -0
- package/funcs/webhooksListAllWebhookEndpoints.d.ts +17 -0
- package/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/funcs/webhooksListAllWebhookEndpoints.js +121 -0
- package/funcs/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/mcp-server/extensions.d.ts +2 -0
- package/mcp-server/extensions.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts +26 -0
- package/mcp-server/prompts.d.ts.map +1 -0
- package/mcp-server/prompts.js +47 -0
- package/mcp-server/prompts.js.map +1 -0
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +1 -0
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +16 -4
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/vendorScansVendorScanOut.d.ts +8 -0
- package/mcp-server/tools/vendorScansVendorScanOut.d.ts.map +1 -0
- package/mcp-server/tools/{userPasswordResetRequest.js → vendorScansVendorScanOut.js} +9 -9
- package/mcp-server/tools/{userPasswordResetRequest.js.map → vendorScansVendorScanOut.js.map} +1 -1
- package/mcp-server/tools/vendorsGetVendorsDetails.d.ts +8 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.js +78 -0
- package/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorCredentials.js +1 -1
- package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -1
- package/mcp-server/tools/vendorsListVendorScrubDetails.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/mcp-server/tools/{userGetUserById.js → vendorsListVendorScrubDetails.js} +9 -9
- package/mcp-server/tools/vendorsListVendorScrubDetails.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorScrubPurchases.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/mcp-server/tools/{userPassword.js → vendorsListVendorScrubPurchases.js} +10 -11
- package/mcp-server/tools/vendorsListVendorScrubPurchases.js.map +1 -0
- package/mcp-server/tools/webhooksGetWebhookEndpoint.d.ts +8 -0
- package/mcp-server/tools/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/mcp-server/tools/{vendorsListVendorJobTitles.js → webhooksGetWebhookEndpoint.js} +10 -10
- package/mcp-server/tools/webhooksGetWebhookEndpoint.js.map +1 -0
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.d.ts +8 -0
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/mcp-server/tools/{userMagiclink.js → webhooksListAllWebhookEndpoints.js} +9 -9
- package/mcp-server/tools/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +1 -0
- package/mcp-server/tools.js.map +1 -1
- package/models/components/company.d.ts +15 -15
- package/models/components/company.d.ts.map +1 -1
- package/models/components/company.js +19 -18
- package/models/components/company.js.map +1 -1
- package/models/components/contact.d.ts +13 -13
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +16 -16
- package/models/components/contact.js.map +1 -1
- package/models/components/department.d.ts +34 -0
- package/models/components/department.d.ts.map +1 -0
- package/models/components/department.js +71 -0
- package/models/components/department.js.map +1 -0
- package/models/components/expand.d.ts +24 -0
- package/models/components/expand.d.ts.map +1 -1
- package/models/components/expand.js +8 -0
- package/models/components/expand.js.map +1 -1
- package/models/components/facility.d.ts +17 -17
- package/models/components/facility.d.ts.map +1 -1
- package/models/components/facility.js +20 -20
- package/models/components/facility.js.map +1 -1
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/scantype.d.ts +31 -0
- package/models/components/scantype.d.ts.map +1 -0
- package/models/components/scantype.js +62 -0
- package/models/components/scantype.js.map +1 -0
- package/models/components/subscription.d.ts +42 -0
- package/models/components/subscription.d.ts.map +1 -0
- package/models/components/subscription.js +92 -0
- package/models/components/subscription.js.map +1 -0
- package/models/components/user.d.ts +8 -25
- package/models/components/user.d.ts.map +1 -1
- package/models/components/user.js +8 -31
- package/models/components/user.js.map +1 -1
- package/models/components/vendor.d.ts +374 -0
- package/models/components/vendor.d.ts.map +1 -0
- package/models/components/vendor.js +523 -0
- package/models/components/vendor.js.map +1 -0
- package/models/components/vendorscrubdetails.d.ts +42 -0
- package/models/components/vendorscrubdetails.d.ts.map +1 -0
- package/models/components/vendorscrubdetails.js +98 -0
- package/models/components/vendorscrubdetails.js.map +1 -0
- package/models/components/vendorscrubpurchase.d.ts +38 -0
- package/models/components/vendorscrubpurchase.d.ts.map +1 -0
- package/models/components/vendorscrubpurchase.js +84 -0
- package/models/components/vendorscrubpurchase.js.map +1 -0
- package/models/components/webhookendpoint.d.ts +135 -0
- package/models/components/webhookendpoint.d.ts.map +1 -0
- package/models/components/webhookendpoint.js +158 -0
- package/models/components/webhookendpoint.js.map +1 -0
- package/models/operations/getvendorsdetails.d.ts +38 -0
- package/models/operations/getvendorsdetails.d.ts.map +1 -0
- package/models/operations/getvendorsdetails.js +81 -0
- package/models/operations/getvendorsdetails.js.map +1 -0
- package/models/operations/getwebhookendpoint.d.ts +32 -0
- package/models/operations/getwebhookendpoint.d.ts.map +1 -0
- package/models/operations/getwebhookendpoint.js +69 -0
- package/models/operations/getwebhookendpoint.js.map +1 -0
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listallwebhookendpoints.d.ts +81 -0
- package/models/operations/listallwebhookendpoints.d.ts.map +1 -0
- package/models/operations/listallwebhookendpoints.js +114 -0
- package/models/operations/listallwebhookendpoints.js.map +1 -0
- package/models/operations/listorsearchfacilities.d.ts +2 -2
- package/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/models/operations/listorsearchfacilities.js +2 -2
- package/models/operations/listorsearchfacilities.js.map +1 -1
- package/models/operations/listvendorcredentials.d.ts +77 -5
- package/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/models/operations/listvendorcredentials.js +78 -3
- package/models/operations/listvendorcredentials.js.map +1 -1
- package/models/operations/listvendorfacilitystatuses.d.ts +5 -0
- package/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
- package/models/operations/listvendorfacilitystatuses.js +4 -0
- package/models/operations/listvendorfacilitystatuses.js.map +1 -1
- package/models/operations/listvendorjobtitles.d.ts +27 -0
- package/models/operations/listvendorjobtitles.d.ts.map +1 -1
- package/models/operations/listvendorjobtitles.js +38 -1
- package/models/operations/listvendorjobtitles.js.map +1 -1
- package/models/operations/listvendorscrubdetails.d.ts +32 -0
- package/models/operations/listvendorscrubdetails.d.ts.map +1 -0
- package/models/operations/listvendorscrubdetails.js +78 -0
- package/models/operations/listvendorscrubdetails.js.map +1 -0
- package/models/operations/listvendorscrubpurchases.d.ts +111 -0
- package/models/operations/listvendorscrubpurchases.d.ts.map +1 -0
- package/models/operations/listvendorscrubpurchases.js +153 -0
- package/models/operations/listvendorscrubpurchases.js.map +1 -0
- package/models/operations/vendorscanout.d.ts +64 -0
- package/models/operations/vendorscanout.d.ts.map +1 -0
- package/models/operations/vendorscanout.js +100 -0
- package/models/operations/vendorscanout.js.map +1 -0
- package/package.json +1 -1
- package/react-query/index.d.ts +6 -0
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +6 -0
- package/react-query/index.js.map +1 -1
- package/react-query/vendorScansVendorScanOut.d.ts +23 -0
- package/react-query/vendorScansVendorScanOut.d.ts.map +1 -0
- package/react-query/vendorScansVendorScanOut.js +47 -0
- package/react-query/vendorScansVendorScanOut.js.map +1 -0
- package/react-query/vendorsGetVendorsDetails.d.ts +71 -0
- package/react-query/vendorsGetVendorsDetails.d.ts.map +1 -0
- package/react-query/vendorsGetVendorsDetails.js +123 -0
- package/react-query/vendorsGetVendorsDetails.js.map +1 -0
- package/react-query/vendorsListVendorCredentials.d.ts +40 -3
- package/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/react-query/vendorsListVendorCredentials.js +67 -0
- package/react-query/vendorsListVendorCredentials.js.map +1 -1
- package/react-query/vendorsListVendorFacilityStatuses.d.ts +3 -0
- package/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
- package/react-query/vendorsListVendorFacilityStatuses.js +2 -0
- package/react-query/vendorsListVendorFacilityStatuses.js.map +1 -1
- package/react-query/vendorsListVendorJobTitles.d.ts +7 -7
- package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
- package/react-query/vendorsListVendorJobTitles.js +15 -15
- package/react-query/vendorsListVendorJobTitles.js.map +1 -1
- package/react-query/vendorsListVendorScrubDetails.d.ts +31 -0
- package/react-query/vendorsListVendorScrubDetails.d.ts.map +1 -0
- package/react-query/vendorsListVendorScrubDetails.js +96 -0
- package/react-query/vendorsListVendorScrubDetails.js.map +1 -0
- package/react-query/vendorsListVendorScrubPurchases.d.ts +77 -0
- package/react-query/vendorsListVendorScrubPurchases.d.ts.map +1 -0
- package/react-query/vendorsListVendorScrubPurchases.js +160 -0
- package/react-query/vendorsListVendorScrubPurchases.js.map +1 -0
- package/react-query/webhooksGetWebhookEndpoint.d.ts +31 -0
- package/react-query/webhooksGetWebhookEndpoint.d.ts.map +1 -0
- package/react-query/webhooksGetWebhookEndpoint.js +96 -0
- package/react-query/webhooksGetWebhookEndpoint.js.map +1 -0
- package/react-query/webhooksListAllWebhookEndpoints.d.ts +50 -0
- package/react-query/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
- package/react-query/webhooksListAllWebhookEndpoints.js +101 -0
- package/react-query/webhooksListAllWebhookEndpoints.js.map +1 -0
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/vendors.d.ts +41 -2
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +47 -3
- package/sdk/vendors.js.map +1 -1
- package/sdk/vendorscans.d.ts +12 -0
- package/sdk/vendorscans.d.ts.map +1 -0
- package/sdk/vendorscans.js +22 -0
- package/sdk/vendorscans.js.map +1 -0
- package/sdk/webhooks.d.ts +20 -0
- package/sdk/webhooks.d.ts.map +1 -0
- package/sdk/webhooks.js +32 -0
- package/sdk/webhooks.js.map +1 -0
- package/src/__tests__/vendors.test.ts +50 -152
- package/src/__tests__/vendorscans.test.ts +27 -0
- package/src/__tests__/webhooks.test.ts +45 -0
- package/src/funcs/organizationsListOrSearchFacilities.ts +12 -1
- package/src/funcs/vendorScansVendorScanOut.ts +172 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +192 -0
- package/src/funcs/vendorsListVendorCredentials.ts +104 -27
- package/src/funcs/vendorsListVendorFacilityStatuses.ts +7 -1
- package/src/funcs/vendorsListVendorJobTitles.ts +25 -2
- package/src/funcs/vendorsListVendorScrubDetails.ts +172 -0
- package/src/funcs/vendorsListVendorScrubPurchases.ts +249 -0
- package/src/funcs/webhooksGetWebhookEndpoint.ts +173 -0
- package/src/funcs/webhooksListAllWebhookEndpoints.ts +174 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +11 -3
- package/src/mcp-server/extensions.ts +4 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +110 -0
- package/src/mcp-server/resources.ts +1 -0
- package/src/mcp-server/server.ts +16 -4
- package/src/mcp-server/tools/vendorScansVendorScanOut.ts +37 -0
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +51 -0
- package/src/mcp-server/tools/vendorsListVendorCredentials.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorScrubDetails.ts +37 -0
- package/src/mcp-server/tools/vendorsListVendorScrubPurchases.ts +38 -0
- package/src/mcp-server/tools/{vendorsListVendorJobTitles.ts → webhooksGetWebhookEndpoint.ts} +8 -8
- package/src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts +38 -0
- package/src/mcp-server/tools.ts +1 -0
- package/src/models/components/company.ts +27 -24
- package/src/models/components/contact.ts +24 -20
- package/src/models/components/department.ts +69 -0
- package/src/models/components/expand.ts +8 -0
- package/src/models/components/facility.ts +28 -32
- package/src/models/components/index.ts +7 -0
- package/src/models/components/scantype.ts +32 -0
- package/src/models/components/subscription.ts +98 -0
- package/src/models/components/user.ts +19 -53
- package/src/models/components/vendor.ts +925 -0
- package/src/models/components/vendorscrubdetails.ts +108 -0
- package/src/models/components/vendorscrubpurchase.ts +90 -0
- package/src/models/components/webhookendpoint.ts +244 -0
- package/src/models/operations/getvendorsdetails.ts +86 -0
- package/src/models/operations/getwebhookendpoint.ts +69 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listallwebhookendpoints.ts +175 -0
- package/src/models/operations/listorsearchfacilities.ts +4 -4
- package/src/models/operations/listvendorcredentials.ts +160 -7
- package/src/models/operations/listvendorfacilitystatuses.ts +9 -0
- package/src/models/operations/listvendorjobtitles.ts +72 -0
- package/src/models/operations/listvendorscrubdetails.ts +80 -0
- package/src/models/operations/listvendorscrubpurchases.ts +252 -0
- package/src/models/operations/vendorscanout.ts +138 -0
- package/src/react-query/index.ts +6 -0
- package/src/react-query/vendorScansVendorScanOut.ts +89 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +201 -0
- package/src/react-query/vendorsListVendorCredentials.ts +169 -1
- package/src/react-query/vendorsListVendorFacilityStatuses.ts +5 -0
- package/src/react-query/vendorsListVendorJobTitles.ts +15 -0
- package/src/react-query/vendorsListVendorScrubDetails.ts +166 -0
- package/src/react-query/vendorsListVendorScrubPurchases.ts +346 -0
- package/src/react-query/webhooksGetWebhookEndpoint.ts +163 -0
- package/src/react-query/webhooksListAllWebhookEndpoints.ts +193 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/vendors.ts +76 -2
- package/src/sdk/vendorscans.ts +27 -0
- package/src/sdk/webhooks.ts +46 -0
- package/mcp-server/tools/userGetCurrentUser.d.ts +0 -3
- package/mcp-server/tools/userGetCurrentUser.d.ts.map +0 -1
- package/mcp-server/tools/userGetCurrentUser.js +0 -26
- package/mcp-server/tools/userGetCurrentUser.js.map +0 -1
- package/mcp-server/tools/userGetUserById.d.ts +0 -8
- package/mcp-server/tools/userGetUserById.d.ts.map +0 -1
- package/mcp-server/tools/userGetUserById.js.map +0 -1
- package/mcp-server/tools/userLogsUserIntoTheSystem.d.ts +0 -8
- package/mcp-server/tools/userLogsUserIntoTheSystem.d.ts.map +0 -1
- package/mcp-server/tools/userLogsUserIntoTheSystem.js +0 -94
- package/mcp-server/tools/userLogsUserIntoTheSystem.js.map +0 -1
- package/mcp-server/tools/userMagiclink.d.ts +0 -8
- package/mcp-server/tools/userMagiclink.d.ts.map +0 -1
- package/mcp-server/tools/userMagiclink.js.map +0 -1
- package/mcp-server/tools/userPassword.d.ts +0 -8
- package/mcp-server/tools/userPassword.d.ts.map +0 -1
- package/mcp-server/tools/userPassword.js.map +0 -1
- package/mcp-server/tools/userPasswordResetRequest.d.ts +0 -8
- package/mcp-server/tools/userPasswordResetRequest.d.ts.map +0 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.d.ts +0 -8
- package/mcp-server/tools/vendorsListVendorJobTitles.d.ts.map +0 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.js.map +0 -1
- package/src/__tests__/organizations.test.ts +0 -78
- package/src/__tests__/supportarticles.test.ts +0 -64
- package/src/__tests__/user.test.ts +0 -218
- package/vitest.config.ts +0 -8
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VendorScrubDetails$ = exports.VendorScrubDetails$outboundSchema = exports.VendorScrubDetails$inboundSchema = void 0;
|
|
40
|
+
exports.vendorScrubDetailsToJSON = vendorScrubDetailsToJSON;
|
|
41
|
+
exports.vendorScrubDetailsFromJSON = vendorScrubDetailsFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.VendorScrubDetails$inboundSchema = z.object({
|
|
47
|
+
scrub_top_size: z.nullable(z.string()).optional(),
|
|
48
|
+
scrub_bottom_size: z.nullable(z.string()).optional(),
|
|
49
|
+
scrub_color: z.nullable(z.string()).optional(),
|
|
50
|
+
total_credits: z.nullable(z.number().int()).optional(),
|
|
51
|
+
total_debits: z.nullable(z.number().int()).optional(),
|
|
52
|
+
scrub_credits: z.nullable(z.number().int()).optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
"scrub_top_size": "scrubTopSize",
|
|
56
|
+
"scrub_bottom_size": "scrubBottomSize",
|
|
57
|
+
"scrub_color": "scrubColor",
|
|
58
|
+
"total_credits": "totalCredits",
|
|
59
|
+
"total_debits": "totalDebits",
|
|
60
|
+
"scrub_credits": "scrubCredits",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.VendorScrubDetails$outboundSchema = z.object({
|
|
65
|
+
scrubTopSize: z.nullable(z.string()).optional(),
|
|
66
|
+
scrubBottomSize: z.nullable(z.string()).optional(),
|
|
67
|
+
scrubColor: z.nullable(z.string()).optional(),
|
|
68
|
+
totalCredits: z.nullable(z.number().int()).optional(),
|
|
69
|
+
totalDebits: z.nullable(z.number().int()).optional(),
|
|
70
|
+
scrubCredits: z.nullable(z.number().int()).optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return (0, primitives_js_1.remap)(v, {
|
|
73
|
+
scrubTopSize: "scrub_top_size",
|
|
74
|
+
scrubBottomSize: "scrub_bottom_size",
|
|
75
|
+
scrubColor: "scrub_color",
|
|
76
|
+
totalCredits: "total_credits",
|
|
77
|
+
totalDebits: "total_debits",
|
|
78
|
+
scrubCredits: "scrub_credits",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
var VendorScrubDetails$;
|
|
86
|
+
(function (VendorScrubDetails$) {
|
|
87
|
+
/** @deprecated use `VendorScrubDetails$inboundSchema` instead. */
|
|
88
|
+
VendorScrubDetails$.inboundSchema = exports.VendorScrubDetails$inboundSchema;
|
|
89
|
+
/** @deprecated use `VendorScrubDetails$outboundSchema` instead. */
|
|
90
|
+
VendorScrubDetails$.outboundSchema = exports.VendorScrubDetails$outboundSchema;
|
|
91
|
+
})(VendorScrubDetails$ || (exports.VendorScrubDetails$ = VendorScrubDetails$ = {}));
|
|
92
|
+
function vendorScrubDetailsToJSON(vendorScrubDetails) {
|
|
93
|
+
return JSON.stringify(exports.VendorScrubDetails$outboundSchema.parse(vendorScrubDetails));
|
|
94
|
+
}
|
|
95
|
+
function vendorScrubDetailsFromJSON(jsonString) {
|
|
96
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VendorScrubDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VendorScrubDetails' from JSON`);
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=vendorscrubdetails.js.map
|
|
@@ -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AAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reduced list of attributes of Vendor ScrubPurchase record
|
|
6
|
+
*/
|
|
7
|
+
export type VendorScrubPurchase = {
|
|
8
|
+
id?: number | undefined;
|
|
9
|
+
purchaseDate?: string | null | undefined;
|
|
10
|
+
quantity?: number | null | undefined;
|
|
11
|
+
total?: number | null | undefined;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const VendorScrubPurchase$inboundSchema: z.ZodType<VendorScrubPurchase, z.ZodTypeDef, unknown>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type VendorScrubPurchase$Outbound = {
|
|
17
|
+
id?: number | undefined;
|
|
18
|
+
purchase_date?: string | null | undefined;
|
|
19
|
+
quantity?: number | null | undefined;
|
|
20
|
+
total?: number | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const VendorScrubPurchase$outboundSchema: z.ZodType<VendorScrubPurchase$Outbound, z.ZodTypeDef, VendorScrubPurchase>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace VendorScrubPurchase$ {
|
|
29
|
+
/** @deprecated use `VendorScrubPurchase$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<VendorScrubPurchase, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `VendorScrubPurchase$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<VendorScrubPurchase$Outbound, z.ZodTypeDef, VendorScrubPurchase>;
|
|
33
|
+
/** @deprecated use `VendorScrubPurchase$Outbound` instead. */
|
|
34
|
+
type Outbound = VendorScrubPurchase$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function vendorScrubPurchaseToJSON(vendorScrubPurchase: VendorScrubPurchase): string;
|
|
37
|
+
export declare function vendorScrubPurchaseFromJSON(jsonString: string): SafeParseResult<VendorScrubPurchase, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=vendorscrubpurchase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorscrubpurchase.d.ts","sourceRoot":"","sources":["../../src/models/components/vendorscrubpurchase.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;AAErE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAUnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.VendorScrubPurchase$ = exports.VendorScrubPurchase$outboundSchema = exports.VendorScrubPurchase$inboundSchema = void 0;
|
|
40
|
+
exports.vendorScrubPurchaseToJSON = vendorScrubPurchaseToJSON;
|
|
41
|
+
exports.vendorScrubPurchaseFromJSON = vendorScrubPurchaseFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.VendorScrubPurchase$inboundSchema = z.object({
|
|
47
|
+
id: z.number().int().optional(),
|
|
48
|
+
purchase_date: z.nullable(z.string()).optional(),
|
|
49
|
+
quantity: z.nullable(z.number().int()).optional(),
|
|
50
|
+
total: z.nullable(z.number().int()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return (0, primitives_js_1.remap)(v, {
|
|
53
|
+
"purchase_date": "purchaseDate",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
/** @internal */
|
|
57
|
+
exports.VendorScrubPurchase$outboundSchema = z.object({
|
|
58
|
+
id: z.number().int().optional(),
|
|
59
|
+
purchaseDate: z.nullable(z.string()).optional(),
|
|
60
|
+
quantity: z.nullable(z.number().int()).optional(),
|
|
61
|
+
total: z.nullable(z.number().int()).optional(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return (0, primitives_js_1.remap)(v, {
|
|
64
|
+
purchaseDate: "purchase_date",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
+
*/
|
|
71
|
+
var VendorScrubPurchase$;
|
|
72
|
+
(function (VendorScrubPurchase$) {
|
|
73
|
+
/** @deprecated use `VendorScrubPurchase$inboundSchema` instead. */
|
|
74
|
+
VendorScrubPurchase$.inboundSchema = exports.VendorScrubPurchase$inboundSchema;
|
|
75
|
+
/** @deprecated use `VendorScrubPurchase$outboundSchema` instead. */
|
|
76
|
+
VendorScrubPurchase$.outboundSchema = exports.VendorScrubPurchase$outboundSchema;
|
|
77
|
+
})(VendorScrubPurchase$ || (exports.VendorScrubPurchase$ = VendorScrubPurchase$ = {}));
|
|
78
|
+
function vendorScrubPurchaseToJSON(vendorScrubPurchase) {
|
|
79
|
+
return JSON.stringify(exports.VendorScrubPurchase$outboundSchema.parse(vendorScrubPurchase));
|
|
80
|
+
}
|
|
81
|
+
function vendorScrubPurchaseFromJSON(jsonString) {
|
|
82
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VendorScrubPurchase$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VendorScrubPurchase' from JSON`);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=vendorscrubpurchase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorscrubpurchase.js","sourceRoot":"","sources":["../../src/models/components/vendorscrubpurchase.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEH,8DAMC;AAED,kEAQC;AArFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAcjD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC/B,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The signature algorithm which will be used by you to verify the content of the webhook was actually sent by Green Security LLC.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SignatureAlgo: {
|
|
9
|
+
readonly SigHmacSha256: "sig_hmac_sha256";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The signature algorithm which will be used by you to verify the content of the webhook was actually sent by Green Security LLC.
|
|
13
|
+
*/
|
|
14
|
+
export type SignatureAlgo = ClosedEnum<typeof SignatureAlgo>;
|
|
15
|
+
/**
|
|
16
|
+
* Identifies which consumers will receive events for this webhook. This should be treated as a union (meaning multiple settings are considered an OR operation).
|
|
17
|
+
*/
|
|
18
|
+
export type Consumers = {
|
|
19
|
+
/**
|
|
20
|
+
* A unique identifier for a health system. If specified, this webhook will fire for all facilities within the specified health system.
|
|
21
|
+
*/
|
|
22
|
+
systemId?: number | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* A unique identifier for a hospital facility. If specified, this webhook will fire for any events matching this facility.
|
|
25
|
+
*/
|
|
26
|
+
facilityId?: number | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* A unique identifier for a company. If specified, this webhook will fire for any event related to this company.
|
|
29
|
+
*/
|
|
30
|
+
companyId?: number | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* A unique identifier for a specific user. If specified, this webhook will fire for any event for this specific user.
|
|
33
|
+
*/
|
|
34
|
+
userId?: number | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* A simplified representation of a WebhookEndpoint, typically used in list views.
|
|
38
|
+
*/
|
|
39
|
+
export type WebhookEndpoint = {
|
|
40
|
+
/**
|
|
41
|
+
* Unique identifier for the object.
|
|
42
|
+
*/
|
|
43
|
+
id: number;
|
|
44
|
+
/**
|
|
45
|
+
* The URL of the webhook endpoint.
|
|
46
|
+
*/
|
|
47
|
+
webhookUrl: string;
|
|
48
|
+
/**
|
|
49
|
+
* The signature algorithm which will be used by you to verify the content of the webhook was actually sent by Green Security LLC.
|
|
50
|
+
*/
|
|
51
|
+
signatureAlgo?: SignatureAlgo | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The list of events to enable for this endpoint.
|
|
54
|
+
*/
|
|
55
|
+
subscriptions: Array<string> | null;
|
|
56
|
+
/**
|
|
57
|
+
* Identifies which consumers will receive events for this webhook. This should be treated as a union (meaning multiple settings are considered an OR operation).
|
|
58
|
+
*/
|
|
59
|
+
consumers: Consumers;
|
|
60
|
+
/**
|
|
61
|
+
* The endpoint’s secret, used to generate webhook signatures. Only returned at creation.
|
|
62
|
+
*/
|
|
63
|
+
secrets?: Array<string> | null | undefined;
|
|
64
|
+
};
|
|
65
|
+
/** @internal */
|
|
66
|
+
export declare const SignatureAlgo$inboundSchema: z.ZodNativeEnum<typeof SignatureAlgo>;
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const SignatureAlgo$outboundSchema: z.ZodNativeEnum<typeof SignatureAlgo>;
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export declare namespace SignatureAlgo$ {
|
|
74
|
+
/** @deprecated use `SignatureAlgo$inboundSchema` instead. */
|
|
75
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
76
|
+
readonly SigHmacSha256: "sig_hmac_sha256";
|
|
77
|
+
}>;
|
|
78
|
+
/** @deprecated use `SignatureAlgo$outboundSchema` instead. */
|
|
79
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
80
|
+
readonly SigHmacSha256: "sig_hmac_sha256";
|
|
81
|
+
}>;
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
export declare const Consumers$inboundSchema: z.ZodType<Consumers, z.ZodTypeDef, unknown>;
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type Consumers$Outbound = {
|
|
87
|
+
system_id?: number | null | undefined;
|
|
88
|
+
facility_id?: number | null | undefined;
|
|
89
|
+
company_id?: number | null | undefined;
|
|
90
|
+
user_id?: number | null | undefined;
|
|
91
|
+
};
|
|
92
|
+
/** @internal */
|
|
93
|
+
export declare const Consumers$outboundSchema: z.ZodType<Consumers$Outbound, z.ZodTypeDef, Consumers>;
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
+
*/
|
|
98
|
+
export declare namespace Consumers$ {
|
|
99
|
+
/** @deprecated use `Consumers$inboundSchema` instead. */
|
|
100
|
+
const inboundSchema: z.ZodType<Consumers, z.ZodTypeDef, unknown>;
|
|
101
|
+
/** @deprecated use `Consumers$outboundSchema` instead. */
|
|
102
|
+
const outboundSchema: z.ZodType<Consumers$Outbound, z.ZodTypeDef, Consumers>;
|
|
103
|
+
/** @deprecated use `Consumers$Outbound` instead. */
|
|
104
|
+
type Outbound = Consumers$Outbound;
|
|
105
|
+
}
|
|
106
|
+
export declare function consumersToJSON(consumers: Consumers): string;
|
|
107
|
+
export declare function consumersFromJSON(jsonString: string): SafeParseResult<Consumers, SDKValidationError>;
|
|
108
|
+
/** @internal */
|
|
109
|
+
export declare const WebhookEndpoint$inboundSchema: z.ZodType<WebhookEndpoint, z.ZodTypeDef, unknown>;
|
|
110
|
+
/** @internal */
|
|
111
|
+
export type WebhookEndpoint$Outbound = {
|
|
112
|
+
id: number;
|
|
113
|
+
webhook_url: string;
|
|
114
|
+
signature_algo: string;
|
|
115
|
+
subscriptions: Array<string> | null;
|
|
116
|
+
consumers: Consumers$Outbound;
|
|
117
|
+
secrets?: Array<string> | null | undefined;
|
|
118
|
+
};
|
|
119
|
+
/** @internal */
|
|
120
|
+
export declare const WebhookEndpoint$outboundSchema: z.ZodType<WebhookEndpoint$Outbound, z.ZodTypeDef, WebhookEndpoint>;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export declare namespace WebhookEndpoint$ {
|
|
126
|
+
/** @deprecated use `WebhookEndpoint$inboundSchema` instead. */
|
|
127
|
+
const inboundSchema: z.ZodType<WebhookEndpoint, z.ZodTypeDef, unknown>;
|
|
128
|
+
/** @deprecated use `WebhookEndpoint$outboundSchema` instead. */
|
|
129
|
+
const outboundSchema: z.ZodType<WebhookEndpoint$Outbound, z.ZodTypeDef, WebhookEndpoint>;
|
|
130
|
+
/** @deprecated use `WebhookEndpoint$Outbound` instead. */
|
|
131
|
+
type Outbound = WebhookEndpoint$Outbound;
|
|
132
|
+
}
|
|
133
|
+
export declare function webhookEndpointToJSON(webhookEndpoint: WebhookEndpoint): string;
|
|
134
|
+
export declare function webhookEndpointFromJSON(jsonString: string): SafeParseResult<WebhookEndpoint, SDKValidationError>;
|
|
135
|
+
//# sourceMappingURL=webhookendpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookendpoint.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookendpoint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,aAAa;;CAEhB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eA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uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WebhookEndpoint$ = exports.WebhookEndpoint$outboundSchema = exports.WebhookEndpoint$inboundSchema = exports.Consumers$ = exports.Consumers$outboundSchema = exports.Consumers$inboundSchema = exports.SignatureAlgo$ = exports.SignatureAlgo$outboundSchema = exports.SignatureAlgo$inboundSchema = exports.SignatureAlgo = void 0;
|
|
40
|
+
exports.consumersToJSON = consumersToJSON;
|
|
41
|
+
exports.consumersFromJSON = consumersFromJSON;
|
|
42
|
+
exports.webhookEndpointToJSON = webhookEndpointToJSON;
|
|
43
|
+
exports.webhookEndpointFromJSON = webhookEndpointFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
/**
|
|
48
|
+
* The signature algorithm which will be used by you to verify the content of the webhook was actually sent by Green Security LLC.
|
|
49
|
+
*/
|
|
50
|
+
exports.SignatureAlgo = {
|
|
51
|
+
SigHmacSha256: "sig_hmac_sha256",
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.SignatureAlgo$inboundSchema = z.nativeEnum(exports.SignatureAlgo);
|
|
55
|
+
/** @internal */
|
|
56
|
+
exports.SignatureAlgo$outboundSchema = exports.SignatureAlgo$inboundSchema;
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
var SignatureAlgo$;
|
|
62
|
+
(function (SignatureAlgo$) {
|
|
63
|
+
/** @deprecated use `SignatureAlgo$inboundSchema` instead. */
|
|
64
|
+
SignatureAlgo$.inboundSchema = exports.SignatureAlgo$inboundSchema;
|
|
65
|
+
/** @deprecated use `SignatureAlgo$outboundSchema` instead. */
|
|
66
|
+
SignatureAlgo$.outboundSchema = exports.SignatureAlgo$outboundSchema;
|
|
67
|
+
})(SignatureAlgo$ || (exports.SignatureAlgo$ = SignatureAlgo$ = {}));
|
|
68
|
+
/** @internal */
|
|
69
|
+
exports.Consumers$inboundSchema = z.object({
|
|
70
|
+
system_id: z.nullable(z.number().int()).optional(),
|
|
71
|
+
facility_id: z.nullable(z.number().int()).optional(),
|
|
72
|
+
company_id: z.nullable(z.number().int()).optional(),
|
|
73
|
+
user_id: z.nullable(z.number().int()).optional(),
|
|
74
|
+
}).transform((v) => {
|
|
75
|
+
return (0, primitives_js_1.remap)(v, {
|
|
76
|
+
"system_id": "systemId",
|
|
77
|
+
"facility_id": "facilityId",
|
|
78
|
+
"company_id": "companyId",
|
|
79
|
+
"user_id": "userId",
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
/** @internal */
|
|
83
|
+
exports.Consumers$outboundSchema = z.object({
|
|
84
|
+
systemId: z.nullable(z.number().int()).optional(),
|
|
85
|
+
facilityId: z.nullable(z.number().int()).optional(),
|
|
86
|
+
companyId: z.nullable(z.number().int()).optional(),
|
|
87
|
+
userId: z.nullable(z.number().int()).optional(),
|
|
88
|
+
}).transform((v) => {
|
|
89
|
+
return (0, primitives_js_1.remap)(v, {
|
|
90
|
+
systemId: "system_id",
|
|
91
|
+
facilityId: "facility_id",
|
|
92
|
+
companyId: "company_id",
|
|
93
|
+
userId: "user_id",
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
99
|
+
*/
|
|
100
|
+
var Consumers$;
|
|
101
|
+
(function (Consumers$) {
|
|
102
|
+
/** @deprecated use `Consumers$inboundSchema` instead. */
|
|
103
|
+
Consumers$.inboundSchema = exports.Consumers$inboundSchema;
|
|
104
|
+
/** @deprecated use `Consumers$outboundSchema` instead. */
|
|
105
|
+
Consumers$.outboundSchema = exports.Consumers$outboundSchema;
|
|
106
|
+
})(Consumers$ || (exports.Consumers$ = Consumers$ = {}));
|
|
107
|
+
function consumersToJSON(consumers) {
|
|
108
|
+
return JSON.stringify(exports.Consumers$outboundSchema.parse(consumers));
|
|
109
|
+
}
|
|
110
|
+
function consumersFromJSON(jsonString) {
|
|
111
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Consumers$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Consumers' from JSON`);
|
|
112
|
+
}
|
|
113
|
+
/** @internal */
|
|
114
|
+
exports.WebhookEndpoint$inboundSchema = z.object({
|
|
115
|
+
id: z.number().int(),
|
|
116
|
+
webhook_url: z.string(),
|
|
117
|
+
signature_algo: exports.SignatureAlgo$inboundSchema.default("sig_hmac_sha256"),
|
|
118
|
+
subscriptions: z.nullable(z.array(z.string())),
|
|
119
|
+
consumers: z.lazy(() => exports.Consumers$inboundSchema),
|
|
120
|
+
secrets: z.nullable(z.array(z.string())).optional(),
|
|
121
|
+
}).transform((v) => {
|
|
122
|
+
return (0, primitives_js_1.remap)(v, {
|
|
123
|
+
"webhook_url": "webhookUrl",
|
|
124
|
+
"signature_algo": "signatureAlgo",
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
/** @internal */
|
|
128
|
+
exports.WebhookEndpoint$outboundSchema = z.object({
|
|
129
|
+
id: z.number().int(),
|
|
130
|
+
webhookUrl: z.string(),
|
|
131
|
+
signatureAlgo: exports.SignatureAlgo$outboundSchema.default("sig_hmac_sha256"),
|
|
132
|
+
subscriptions: z.nullable(z.array(z.string())),
|
|
133
|
+
consumers: z.lazy(() => exports.Consumers$outboundSchema),
|
|
134
|
+
secrets: z.nullable(z.array(z.string())).optional(),
|
|
135
|
+
}).transform((v) => {
|
|
136
|
+
return (0, primitives_js_1.remap)(v, {
|
|
137
|
+
webhookUrl: "webhook_url",
|
|
138
|
+
signatureAlgo: "signature_algo",
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
/**
|
|
142
|
+
* @internal
|
|
143
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
144
|
+
*/
|
|
145
|
+
var WebhookEndpoint$;
|
|
146
|
+
(function (WebhookEndpoint$) {
|
|
147
|
+
/** @deprecated use `WebhookEndpoint$inboundSchema` instead. */
|
|
148
|
+
WebhookEndpoint$.inboundSchema = exports.WebhookEndpoint$inboundSchema;
|
|
149
|
+
/** @deprecated use `WebhookEndpoint$outboundSchema` instead. */
|
|
150
|
+
WebhookEndpoint$.outboundSchema = exports.WebhookEndpoint$outboundSchema;
|
|
151
|
+
})(WebhookEndpoint$ || (exports.WebhookEndpoint$ = WebhookEndpoint$ = {}));
|
|
152
|
+
function webhookEndpointToJSON(webhookEndpoint) {
|
|
153
|
+
return JSON.stringify(exports.WebhookEndpoint$outboundSchema.parse(webhookEndpoint));
|
|
154
|
+
}
|
|
155
|
+
function webhookEndpointFromJSON(jsonString) {
|
|
156
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookEndpoint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookEndpoint' from JSON`);
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=webhookendpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookendpoint.js","sourceRoot":"","sources":["../../src/models/components/webhookendpoint.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwJH,0CAEC;AAED,8CAQC;AA+DD,sDAIC;AAED,0DAQC;AA/OD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAKjD;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,aAAa,EAAE,iBAAiB;CACxB,CAAC;AA0DX,gBAAgB;AACH,QAAA,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,qBAAa,CAAC,CAAC;AAEhC,gBAAgB;AACH,QAAA,4BAA4B,GAErC,mCA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B,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type GetVendorsDetailsRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* Either the ID of the vendor rep or the keyword "me" to represent the current vendor.
|
|
8
|
+
*/
|
|
9
|
+
vendorIdOrMe: string;
|
|
10
|
+
/**
|
|
11
|
+
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
12
|
+
*/
|
|
13
|
+
expand?: Array<components.Expand> | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const GetVendorsDetailsRequest$inboundSchema: z.ZodType<GetVendorsDetailsRequest, z.ZodTypeDef, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type GetVendorsDetailsRequest$Outbound = {
|
|
19
|
+
vendor_id_or_me: string;
|
|
20
|
+
expand?: Array<string> | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const GetVendorsDetailsRequest$outboundSchema: z.ZodType<GetVendorsDetailsRequest$Outbound, z.ZodTypeDef, GetVendorsDetailsRequest>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace GetVendorsDetailsRequest$ {
|
|
29
|
+
/** @deprecated use `GetVendorsDetailsRequest$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<GetVendorsDetailsRequest, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `GetVendorsDetailsRequest$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<GetVendorsDetailsRequest$Outbound, z.ZodTypeDef, GetVendorsDetailsRequest>;
|
|
33
|
+
/** @deprecated use `GetVendorsDetailsRequest$Outbound` instead. */
|
|
34
|
+
type Outbound = GetVendorsDetailsRequest$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function getVendorsDetailsRequestToJSON(getVendorsDetailsRequest: GetVendorsDetailsRequest): string;
|
|
37
|
+
export declare function getVendorsDetailsRequestFromJSON(jsonString: string): SafeParseResult<GetVendorsDetailsRequest, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=getvendorsdetails.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getvendorsdetails.d.ts","sourceRoot":"","sources":["../../src/models/operations/getvendorsdetails.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,YAAY,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