@greensecurity/javascript-sdk 0.30.48 → 0.30.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/bin/mcp-server.js +422 -185
- package/bin/mcp-server.js.map +23 -19
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +122 -1
- 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 +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/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/financialstatus.d.ts +70 -0
- package/dist/commonjs/models/components/financialstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/financialstatus.js +74 -0
- package/dist/commonjs/models/components/financialstatus.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoice.js +3 -2
- package/dist/commonjs/models/components/invoice.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +16 -0
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +19 -0
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- 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 +4 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +8 -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__/vendors.test.js +122 -1
- 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 +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/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/financialstatus.d.ts +70 -0
- package/dist/esm/models/components/financialstatus.d.ts.map +1 -0
- package/dist/esm/models/components/financialstatus.js +38 -0
- package/dist/esm/models/components/financialstatus.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/esm/models/components/invoice.js +3 -2
- package/dist/esm/models/components/invoice.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +16 -0
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +19 -0
- package/dist/esm/models/components/subscription.js.map +1 -1
- 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 +4 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +8 -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 +125 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +1 -1
- 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/expand.ts +6 -0
- package/src/models/components/financialstatus.ts +47 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoice.ts +5 -4
- package/src/models/components/subscription.ts +42 -0
- package/src/models/components/vendor.ts +68 -0
- package/src/models/components/vendorcredentialfile.ts +6 -10
- package/src/models/components/vendorcredentialsummary.ts +12 -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
package/bin/mcp-server.js
CHANGED
|
@@ -34192,9 +34192,9 @@ var init_config = __esm(() => {
|
|
|
34192
34192
|
SDK_METADATA = {
|
|
34193
34193
|
language: "typescript",
|
|
34194
34194
|
openapiDocVersion: "0.0.3",
|
|
34195
|
-
sdkVersion: "0.30.
|
|
34196
|
-
genVersion: "2.
|
|
34197
|
-
userAgent: "speakeasy-sdk/typescript 0.30.
|
|
34195
|
+
sdkVersion: "0.30.53",
|
|
34196
|
+
genVersion: "2.605.0",
|
|
34197
|
+
userAgent: "speakeasy-sdk/typescript 0.30.53 2.605.0 0.0.3 @greensecurity/javascript-sdk"
|
|
34198
34198
|
};
|
|
34199
34199
|
});
|
|
34200
34200
|
|
|
@@ -35935,7 +35935,7 @@ var init_invoice = __esm(() => {
|
|
|
35935
35935
|
convenience_fee: nullableType(numberType()).optional(),
|
|
35936
35936
|
shipping: nullableType(numberType().int()).optional(),
|
|
35937
35937
|
discount: numberType().int().optional(),
|
|
35938
|
-
lines: nullableType(arrayType(InvoiceItem$inboundSchema)).optional(),
|
|
35938
|
+
lines: nullableType(arrayType(nullableType(InvoiceItem$inboundSchema))).optional(),
|
|
35939
35939
|
transactions: nullableType(arrayType(InvoiceTransaction$inboundSchema)).optional()
|
|
35940
35940
|
}).transform((v2) => {
|
|
35941
35941
|
return remap(v2, {
|
|
@@ -35958,7 +35958,7 @@ var init_invoice = __esm(() => {
|
|
|
35958
35958
|
convenienceFee: nullableType(numberType()).optional(),
|
|
35959
35959
|
shipping: nullableType(numberType().int()).optional(),
|
|
35960
35960
|
discount: numberType().int().optional(),
|
|
35961
|
-
lines: nullableType(arrayType(InvoiceItem$outboundSchema)).optional(),
|
|
35961
|
+
lines: nullableType(arrayType(nullableType(InvoiceItem$outboundSchema))).optional(),
|
|
35962
35962
|
transactions: nullableType(arrayType(InvoiceTransaction$outboundSchema)).optional()
|
|
35963
35963
|
}).transform((v2) => {
|
|
35964
35964
|
return remap(v2, {
|
|
@@ -36771,6 +36771,7 @@ var init_expand = __esm(() => {
|
|
|
36771
36771
|
FacilityWorkflow: "facility.workflow",
|
|
36772
36772
|
VendorUser: "vendor.user",
|
|
36773
36773
|
VendorVendorType: "vendor.vendor_type",
|
|
36774
|
+
VendorVendorJob: "vendor.vendor_job",
|
|
36774
36775
|
VendorPaymentProfile: "vendor.payment_profile",
|
|
36775
36776
|
VendorImageUrls: "vendor.image_urls",
|
|
36776
36777
|
VendorPrimaryFacility: "vendor.primary_facility",
|
|
@@ -36780,6 +36781,7 @@ var init_expand = __esm(() => {
|
|
|
36780
36781
|
VendorScrubsSubscription: "vendor.scrubs_subscription",
|
|
36781
36782
|
VendorPaymentResponsibility: "vendor.payment_responsibility",
|
|
36782
36783
|
VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires",
|
|
36784
|
+
VendorRegistrationData: "vendor.registration_data",
|
|
36783
36785
|
SupportArticleDescription: "support_article.description",
|
|
36784
36786
|
SupportArticlePublished: "support_article.published",
|
|
36785
36787
|
SupportArticleNotes: "support_article.notes",
|
|
@@ -36800,7 +36802,9 @@ var init_expand = __esm(() => {
|
|
|
36800
36802
|
VendorCredentialVendorCredentialDefaultStatus: "vendor_credential.vendor_credential_default_status",
|
|
36801
36803
|
VendorCredentialVendorCredentialDataRequests: "vendor_credential.vendor_credential_data_requests",
|
|
36802
36804
|
VendorCredentialCredentialVariants: "vendor_credential.credential_variants",
|
|
36803
|
-
VendorCredentialTargetsChop: "vendor_credential.targets_chop"
|
|
36805
|
+
VendorCredentialTargetsChop: "vendor_credential.targets_chop",
|
|
36806
|
+
VendorCredentialFileVendorCredential: "vendor_credential_file.vendor_credential",
|
|
36807
|
+
VendorCredentialFileCredentialDocument: "vendor_credential_file.credential_document"
|
|
36804
36808
|
};
|
|
36805
36809
|
Expand$inboundSchema = nativeEnumType(Expand);
|
|
36806
36810
|
Expand$outboundSchema = Expand$inboundSchema;
|
|
@@ -37387,6 +37391,36 @@ var init_facility = __esm(() => {
|
|
|
37387
37391
|
})(Facility$ ||= {});
|
|
37388
37392
|
});
|
|
37389
37393
|
|
|
37394
|
+
// src/models/components/financialstatus.ts
|
|
37395
|
+
var FinancialStatus, FinancialStatus$inboundSchema, FinancialStatus$outboundSchema, FinancialStatus$;
|
|
37396
|
+
var init_financialstatus = __esm(() => {
|
|
37397
|
+
init_lib();
|
|
37398
|
+
FinancialStatus = {
|
|
37399
|
+
Pending: "pending",
|
|
37400
|
+
Authorized: "authorized",
|
|
37401
|
+
Captured: "captured",
|
|
37402
|
+
Refunded: "refunded",
|
|
37403
|
+
RefundedToCredits: "refunded to credits",
|
|
37404
|
+
Voided: "voided",
|
|
37405
|
+
Waived: "waived",
|
|
37406
|
+
Overdue: "overdue",
|
|
37407
|
+
Paid: "paid",
|
|
37408
|
+
PaidByCredits: "paid by credits",
|
|
37409
|
+
PaidByCreditCard: "paid by credit card",
|
|
37410
|
+
PaidByCheck: "paid by check",
|
|
37411
|
+
PaidByShareback: "paid by shareback",
|
|
37412
|
+
PaidByPo: "paid by po",
|
|
37413
|
+
PaidByOtherMeans: "paid by other means",
|
|
37414
|
+
Credited: "credited"
|
|
37415
|
+
};
|
|
37416
|
+
FinancialStatus$inboundSchema = nativeEnumType(FinancialStatus);
|
|
37417
|
+
FinancialStatus$outboundSchema = FinancialStatus$inboundSchema;
|
|
37418
|
+
((FinancialStatus$) => {
|
|
37419
|
+
FinancialStatus$.inboundSchema = FinancialStatus$inboundSchema;
|
|
37420
|
+
FinancialStatus$.outboundSchema = FinancialStatus$outboundSchema;
|
|
37421
|
+
})(FinancialStatus$ ||= {});
|
|
37422
|
+
});
|
|
37423
|
+
|
|
37390
37424
|
// src/models/components/zoneconfig.ts
|
|
37391
37425
|
var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, ZoneConfigAppliesTo$inboundSchema, ZoneConfigAppliesTo$outboundSchema, ZoneConfigAppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
|
|
37392
37426
|
var init_zoneconfig = __esm(() => {
|
|
@@ -37568,7 +37602,9 @@ var init_zoneconfig = __esm(() => {
|
|
|
37568
37602
|
auto_approve_visit_requests: nullableType(booleanType()).optional(),
|
|
37569
37603
|
auto_checkin_visit_requests: nullableType(booleanType()).optional(),
|
|
37570
37604
|
auto_approve_visit_requests_with_flags: nullableType(booleanType()).optional(),
|
|
37571
|
-
auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional()
|
|
37605
|
+
auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional(),
|
|
37606
|
+
company_name_field: stringType().optional(),
|
|
37607
|
+
email_field: stringType().optional()
|
|
37572
37608
|
}).transform((v2) => {
|
|
37573
37609
|
return remap(v2, {
|
|
37574
37610
|
ask_questions_visit_requests: "askQuestionsVisitRequests",
|
|
@@ -37578,7 +37614,9 @@ var init_zoneconfig = __esm(() => {
|
|
|
37578
37614
|
auto_approve_visit_requests: "autoApproveVisitRequests",
|
|
37579
37615
|
auto_checkin_visit_requests: "autoCheckinVisitRequests",
|
|
37580
37616
|
auto_approve_visit_requests_with_flags: "autoApproveVisitRequestsWithFlags",
|
|
37581
|
-
auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags"
|
|
37617
|
+
auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags",
|
|
37618
|
+
company_name_field: "companyNameField",
|
|
37619
|
+
email_field: "emailField"
|
|
37582
37620
|
});
|
|
37583
37621
|
});
|
|
37584
37622
|
VisitRequestPolicy$outboundSchema = objectType({
|
|
@@ -37589,7 +37627,9 @@ var init_zoneconfig = __esm(() => {
|
|
|
37589
37627
|
autoApproveVisitRequests: nullableType(booleanType()).optional(),
|
|
37590
37628
|
autoCheckinVisitRequests: nullableType(booleanType()).optional(),
|
|
37591
37629
|
autoApproveVisitRequestsWithFlags: nullableType(booleanType()).optional(),
|
|
37592
|
-
autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional()
|
|
37630
|
+
autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional(),
|
|
37631
|
+
companyNameField: stringType().optional(),
|
|
37632
|
+
emailField: stringType().optional()
|
|
37593
37633
|
}).transform((v2) => {
|
|
37594
37634
|
return remap(v2, {
|
|
37595
37635
|
askQuestionsVisitRequests: "ask_questions_visit_requests",
|
|
@@ -37599,7 +37639,9 @@ var init_zoneconfig = __esm(() => {
|
|
|
37599
37639
|
autoApproveVisitRequests: "auto_approve_visit_requests",
|
|
37600
37640
|
autoCheckinVisitRequests: "auto_checkin_visit_requests",
|
|
37601
37641
|
autoApproveVisitRequestsWithFlags: "auto_approve_visit_requests_with_flags",
|
|
37602
|
-
autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags"
|
|
37642
|
+
autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags",
|
|
37643
|
+
companyNameField: "company_name_field",
|
|
37644
|
+
emailField: "email_field"
|
|
37603
37645
|
});
|
|
37604
37646
|
});
|
|
37605
37647
|
((VisitRequestPolicy$) => {
|
|
@@ -38435,18 +38477,28 @@ var Subscription$inboundSchema, Subscription$outboundSchema, Subscription$;
|
|
|
38435
38477
|
var init_subscription = __esm(() => {
|
|
38436
38478
|
init_lib();
|
|
38437
38479
|
init_primitives();
|
|
38480
|
+
init_financialstatus();
|
|
38481
|
+
init_invoiceitem();
|
|
38438
38482
|
Subscription$inboundSchema = objectType({
|
|
38439
38483
|
id: nullableType(numberType().int()).optional(),
|
|
38440
38484
|
date_started: nullableType(stringType()).optional(),
|
|
38441
38485
|
date_ends: nullableType(stringType()).optional(),
|
|
38442
38486
|
status: nullableType(stringType()).optional(),
|
|
38443
38487
|
locked: nullableType(booleanType()).optional(),
|
|
38444
|
-
variant_title: nullableType(stringType()).optional()
|
|
38488
|
+
variant_title: nullableType(stringType()).optional(),
|
|
38489
|
+
current_line_item: nullableType(InvoiceItem$inboundSchema).optional(),
|
|
38490
|
+
next_line_item: nullableType(InvoiceItem$inboundSchema).optional(),
|
|
38491
|
+
current_financial_status: nullableType(FinancialStatus$inboundSchema).optional(),
|
|
38492
|
+
next_financial_status: nullableType(FinancialStatus$inboundSchema).optional()
|
|
38445
38493
|
}).transform((v2) => {
|
|
38446
38494
|
return remap(v2, {
|
|
38447
38495
|
date_started: "dateStarted",
|
|
38448
38496
|
date_ends: "dateEnds",
|
|
38449
|
-
variant_title: "variantTitle"
|
|
38497
|
+
variant_title: "variantTitle",
|
|
38498
|
+
current_line_item: "currentLineItem",
|
|
38499
|
+
next_line_item: "nextLineItem",
|
|
38500
|
+
current_financial_status: "currentFinancialStatus",
|
|
38501
|
+
next_financial_status: "nextFinancialStatus"
|
|
38450
38502
|
});
|
|
38451
38503
|
});
|
|
38452
38504
|
Subscription$outboundSchema = objectType({
|
|
@@ -38455,12 +38507,20 @@ var init_subscription = __esm(() => {
|
|
|
38455
38507
|
dateEnds: nullableType(stringType()).optional(),
|
|
38456
38508
|
status: nullableType(stringType()).optional(),
|
|
38457
38509
|
locked: nullableType(booleanType()).optional(),
|
|
38458
|
-
variantTitle: nullableType(stringType()).optional()
|
|
38510
|
+
variantTitle: nullableType(stringType()).optional(),
|
|
38511
|
+
currentLineItem: nullableType(InvoiceItem$outboundSchema).optional(),
|
|
38512
|
+
nextLineItem: nullableType(InvoiceItem$outboundSchema).optional(),
|
|
38513
|
+
currentFinancialStatus: nullableType(FinancialStatus$outboundSchema).optional(),
|
|
38514
|
+
nextFinancialStatus: nullableType(FinancialStatus$outboundSchema).optional()
|
|
38459
38515
|
}).transform((v2) => {
|
|
38460
38516
|
return remap(v2, {
|
|
38461
38517
|
dateStarted: "date_started",
|
|
38462
38518
|
dateEnds: "date_ends",
|
|
38463
|
-
variantTitle: "variant_title"
|
|
38519
|
+
variantTitle: "variant_title",
|
|
38520
|
+
currentLineItem: "current_line_item",
|
|
38521
|
+
nextLineItem: "next_line_item",
|
|
38522
|
+
currentFinancialStatus: "current_financial_status",
|
|
38523
|
+
nextFinancialStatus: "next_financial_status"
|
|
38464
38524
|
});
|
|
38465
38525
|
});
|
|
38466
38526
|
((Subscription$) => {
|
|
@@ -38733,8 +38793,26 @@ var init_userlocation = __esm(() => {
|
|
|
38733
38793
|
})(UserLocation$ ||= {});
|
|
38734
38794
|
});
|
|
38735
38795
|
|
|
38796
|
+
// src/models/components/vendorjobtitle.ts
|
|
38797
|
+
var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
|
|
38798
|
+
var init_vendorjobtitle = __esm(() => {
|
|
38799
|
+
init_lib();
|
|
38800
|
+
VendorJobTitle$inboundSchema = objectType({
|
|
38801
|
+
id: numberType().int(),
|
|
38802
|
+
job: stringType()
|
|
38803
|
+
});
|
|
38804
|
+
VendorJobTitle$outboundSchema = objectType({
|
|
38805
|
+
id: numberType().int(),
|
|
38806
|
+
job: stringType()
|
|
38807
|
+
});
|
|
38808
|
+
((VendorJobTitle$) => {
|
|
38809
|
+
VendorJobTitle$.inboundSchema = VendorJobTitle$inboundSchema;
|
|
38810
|
+
VendorJobTitle$.outboundSchema = VendorJobTitle$outboundSchema;
|
|
38811
|
+
})(VendorJobTitle$ ||= {});
|
|
38812
|
+
});
|
|
38813
|
+
|
|
38736
38814
|
// src/models/components/vendor.ts
|
|
38737
|
-
var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Two2$inboundSchema, Two2$outboundSchema, Two2$, PaymentProfile2$inboundSchema, PaymentProfile2$outboundSchema, PaymentProfile2$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
|
|
38815
|
+
var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorJob$inboundSchema, VendorJob$outboundSchema, VendorJob$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Two2$inboundSchema, Two2$outboundSchema, Two2$, PaymentProfile2$inboundSchema, PaymentProfile2$outboundSchema, PaymentProfile2$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
|
|
38738
38816
|
var init_vendor = __esm(() => {
|
|
38739
38817
|
init_lib();
|
|
38740
38818
|
init_primitives();
|
|
@@ -38745,6 +38823,7 @@ var init_vendor = __esm(() => {
|
|
|
38745
38823
|
init_subscription();
|
|
38746
38824
|
init_supervisor();
|
|
38747
38825
|
init_userlocation();
|
|
38826
|
+
init_vendorjobtitle();
|
|
38748
38827
|
One$inboundSchema = objectType({
|
|
38749
38828
|
id: numberType().int().optional(),
|
|
38750
38829
|
first_name: nullableType(stringType()).optional(),
|
|
@@ -38801,6 +38880,12 @@ var init_vendor = __esm(() => {
|
|
|
38801
38880
|
VendorUser$.inboundSchema = VendorUser$inboundSchema;
|
|
38802
38881
|
VendorUser$.outboundSchema = VendorUser$outboundSchema;
|
|
38803
38882
|
})(VendorUser$ ||= {});
|
|
38883
|
+
VendorJob$inboundSchema = unionType([VendorJobTitle$inboundSchema, numberType().int()]);
|
|
38884
|
+
VendorJob$outboundSchema = unionType([VendorJobTitle$outboundSchema, numberType().int()]);
|
|
38885
|
+
((VendorJob$) => {
|
|
38886
|
+
VendorJob$.inboundSchema = VendorJob$inboundSchema;
|
|
38887
|
+
VendorJob$.outboundSchema = VendorJob$outboundSchema;
|
|
38888
|
+
})(VendorJob$ ||= {});
|
|
38804
38889
|
VendorType1$inboundSchema = objectType({
|
|
38805
38890
|
id: numberType().int().optional(),
|
|
38806
38891
|
name: stringType().optional()
|
|
@@ -38979,6 +39064,8 @@ var init_vendor = __esm(() => {
|
|
|
38979
39064
|
send_weekly_summary_email: nullableType(booleanType()).optional(),
|
|
38980
39065
|
title: nullableType(stringType()).optional(),
|
|
38981
39066
|
user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
|
|
39067
|
+
registration_data: nullableType(recordType(anyType())).optional(),
|
|
39068
|
+
vendor_job: nullableType(unionType([VendorJobTitle$inboundSchema, numberType().int()])).optional(),
|
|
38982
39069
|
vendor_type: nullableType(unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()])).optional(),
|
|
38983
39070
|
supervisor: nullableType(Supervisor$inboundSchema).optional(),
|
|
38984
39071
|
qr_code: nullableType(stringType()).optional(),
|
|
@@ -39003,6 +39090,8 @@ var init_vendor = __esm(() => {
|
|
|
39003
39090
|
return remap(v2, {
|
|
39004
39091
|
email_recepient: "emailRecepient",
|
|
39005
39092
|
send_weekly_summary_email: "sendWeeklySummaryEmail",
|
|
39093
|
+
registration_data: "registrationData",
|
|
39094
|
+
vendor_job: "vendorJob",
|
|
39006
39095
|
vendor_type: "vendorType",
|
|
39007
39096
|
qr_code: "qrCode",
|
|
39008
39097
|
head_shot: "headShot",
|
|
@@ -39023,6 +39112,8 @@ var init_vendor = __esm(() => {
|
|
|
39023
39112
|
sendWeeklySummaryEmail: nullableType(booleanType()).optional(),
|
|
39024
39113
|
title: nullableType(stringType()).optional(),
|
|
39025
39114
|
user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
|
|
39115
|
+
registrationData: nullableType(recordType(anyType())).optional(),
|
|
39116
|
+
vendorJob: nullableType(unionType([VendorJobTitle$outboundSchema, numberType().int()])).optional(),
|
|
39026
39117
|
vendorType: nullableType(unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()])).optional(),
|
|
39027
39118
|
supervisor: nullableType(Supervisor$outboundSchema).optional(),
|
|
39028
39119
|
qrCode: nullableType(stringType()).optional(),
|
|
@@ -39047,6 +39138,8 @@ var init_vendor = __esm(() => {
|
|
|
39047
39138
|
return remap(v2, {
|
|
39048
39139
|
emailRecepient: "email_recepient",
|
|
39049
39140
|
sendWeeklySummaryEmail: "send_weekly_summary_email",
|
|
39141
|
+
registrationData: "registration_data",
|
|
39142
|
+
vendorJob: "vendor_job",
|
|
39050
39143
|
vendorType: "vendor_type",
|
|
39051
39144
|
qrCode: "qr_code",
|
|
39052
39145
|
headShot: "head_shot",
|
|
@@ -39302,9 +39395,8 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39302
39395
|
numberType().int()
|
|
39303
39396
|
])).optional(),
|
|
39304
39397
|
date_uploaded: nullableType(stringType()).optional(),
|
|
39305
|
-
uploaded_by_id: nullableType(numberType().int()).optional(),
|
|
39306
39398
|
is_decline: nullableType(booleanType()).optional(),
|
|
39307
|
-
file: lazyType(() => VendorCredentialFileFile$inboundSchema).optional(),
|
|
39399
|
+
file: nullableType(lazyType(() => VendorCredentialFileFile$inboundSchema)).optional(),
|
|
39308
39400
|
processed: booleanType().optional(),
|
|
39309
39401
|
name: nullableType(stringType()).optional(),
|
|
39310
39402
|
credential_document: nullableType(unionType([CredentialDocument$inboundSchema, numberType().int()])).optional()
|
|
@@ -39312,7 +39404,6 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39312
39404
|
return remap(v2, {
|
|
39313
39405
|
vendor_credential: "vendorCredential",
|
|
39314
39406
|
date_uploaded: "dateUploaded",
|
|
39315
|
-
uploaded_by_id: "uploadedById",
|
|
39316
39407
|
is_decline: "isDecline",
|
|
39317
39408
|
credential_document: "credentialDocument"
|
|
39318
39409
|
});
|
|
@@ -39324,9 +39415,8 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39324
39415
|
numberType().int()
|
|
39325
39416
|
])).optional(),
|
|
39326
39417
|
dateUploaded: nullableType(stringType()).optional(),
|
|
39327
|
-
uploadedById: nullableType(numberType().int()).optional(),
|
|
39328
39418
|
isDecline: nullableType(booleanType()).optional(),
|
|
39329
|
-
file: lazyType(() => VendorCredentialFileFile$outboundSchema).optional(),
|
|
39419
|
+
file: nullableType(lazyType(() => VendorCredentialFileFile$outboundSchema)).optional(),
|
|
39330
39420
|
processed: booleanType().optional(),
|
|
39331
39421
|
name: nullableType(stringType()).optional(),
|
|
39332
39422
|
credentialDocument: nullableType(unionType([CredentialDocument$outboundSchema, numberType().int()])).optional()
|
|
@@ -39334,7 +39424,6 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39334
39424
|
return remap(v2, {
|
|
39335
39425
|
vendorCredential: "vendor_credential",
|
|
39336
39426
|
dateUploaded: "date_uploaded",
|
|
39337
|
-
uploadedById: "uploaded_by_id",
|
|
39338
39427
|
isDecline: "is_decline",
|
|
39339
39428
|
credentialDocument: "credential_document"
|
|
39340
39429
|
});
|
|
@@ -39443,6 +39532,8 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39443
39532
|
company: nullableType(Company$inboundSchema).optional(),
|
|
39444
39533
|
date_due: nullableType(stringType()).optional(),
|
|
39445
39534
|
date_expires: nullableType(stringType()).optional(),
|
|
39535
|
+
date_expedited: nullableType(stringType()).optional(),
|
|
39536
|
+
date_valid: nullableType(stringType()).optional(),
|
|
39446
39537
|
notes: nullableType(stringType()).optional(),
|
|
39447
39538
|
expedited: booleanType().optional(),
|
|
39448
39539
|
json_data: nullableType(stringType()).optional(),
|
|
@@ -39465,6 +39556,8 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39465
39556
|
return remap(v2, {
|
|
39466
39557
|
date_due: "dateDue",
|
|
39467
39558
|
date_expires: "dateExpires",
|
|
39559
|
+
date_expedited: "dateExpedited",
|
|
39560
|
+
date_valid: "dateValid",
|
|
39468
39561
|
json_data: "jsonData",
|
|
39469
39562
|
vendor_credential_files: "vendorCredentialFiles",
|
|
39470
39563
|
latest_vendor_credential_id: "latestVendorCredentialId",
|
|
@@ -39486,6 +39579,8 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39486
39579
|
company: nullableType(Company$outboundSchema).optional(),
|
|
39487
39580
|
dateDue: nullableType(stringType()).optional(),
|
|
39488
39581
|
dateExpires: nullableType(stringType()).optional(),
|
|
39582
|
+
dateExpedited: nullableType(stringType()).optional(),
|
|
39583
|
+
dateValid: nullableType(stringType()).optional(),
|
|
39489
39584
|
notes: nullableType(stringType()).optional(),
|
|
39490
39585
|
expedited: booleanType().optional(),
|
|
39491
39586
|
jsonData: nullableType(stringType()).optional(),
|
|
@@ -39508,6 +39603,8 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39508
39603
|
return remap(v2, {
|
|
39509
39604
|
dateDue: "date_due",
|
|
39510
39605
|
dateExpires: "date_expires",
|
|
39606
|
+
dateExpedited: "date_expedited",
|
|
39607
|
+
dateValid: "date_valid",
|
|
39511
39608
|
jsonData: "json_data",
|
|
39512
39609
|
vendorCredentialFiles: "vendor_credential_files",
|
|
39513
39610
|
latestVendorCredentialId: "latest_vendor_credential_id",
|
|
@@ -39717,24 +39814,6 @@ var init_vendorfacilitystatusview = __esm(() => {
|
|
|
39717
39814
|
})(VendorFacilityStatusView$ ||= {});
|
|
39718
39815
|
});
|
|
39719
39816
|
|
|
39720
|
-
// src/models/components/vendorjobtitle.ts
|
|
39721
|
-
var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
|
|
39722
|
-
var init_vendorjobtitle = __esm(() => {
|
|
39723
|
-
init_lib();
|
|
39724
|
-
VendorJobTitle$inboundSchema = objectType({
|
|
39725
|
-
id: numberType().int(),
|
|
39726
|
-
job: stringType()
|
|
39727
|
-
});
|
|
39728
|
-
VendorJobTitle$outboundSchema = objectType({
|
|
39729
|
-
id: numberType().int(),
|
|
39730
|
-
job: stringType()
|
|
39731
|
-
});
|
|
39732
|
-
((VendorJobTitle$) => {
|
|
39733
|
-
VendorJobTitle$.inboundSchema = VendorJobTitle$inboundSchema;
|
|
39734
|
-
VendorJobTitle$.outboundSchema = VendorJobTitle$outboundSchema;
|
|
39735
|
-
})(VendorJobTitle$ ||= {});
|
|
39736
|
-
});
|
|
39737
|
-
|
|
39738
39817
|
// src/models/components/vendormanagedbycompany.ts
|
|
39739
39818
|
var VendorManagedByCompanyCompany$inboundSchema, VendorManagedByCompanyCompany$outboundSchema, VendorManagedByCompanyCompany$, VendorManagedByCompany$inboundSchema, VendorManagedByCompany$outboundSchema, VendorManagedByCompany$;
|
|
39740
39819
|
var init_vendormanagedbycompany = __esm(() => {
|
|
@@ -40084,6 +40163,7 @@ var init_components = __esm(() => {
|
|
|
40084
40163
|
init_expand();
|
|
40085
40164
|
init_facility();
|
|
40086
40165
|
init_facilitysummary();
|
|
40166
|
+
init_financialstatus();
|
|
40087
40167
|
init_handoff();
|
|
40088
40168
|
init_imageset();
|
|
40089
40169
|
init_invoice();
|
|
@@ -40440,6 +40520,36 @@ var init_getvendorcredentialdetails = __esm(() => {
|
|
|
40440
40520
|
})(GetVendorCredentialDetailsResponseBody$ ||= {});
|
|
40441
40521
|
});
|
|
40442
40522
|
|
|
40523
|
+
// src/models/operations/getvendorcredentialfile.ts
|
|
40524
|
+
var GetVendorCredentialFileRequest$inboundSchema, GetVendorCredentialFileRequest$outboundSchema, GetVendorCredentialFileRequest$;
|
|
40525
|
+
var init_getvendorcredentialfile = __esm(() => {
|
|
40526
|
+
init_lib();
|
|
40527
|
+
init_primitives();
|
|
40528
|
+
init_components();
|
|
40529
|
+
GetVendorCredentialFileRequest$inboundSchema = objectType({
|
|
40530
|
+
vendor_credential_id: numberType().int(),
|
|
40531
|
+
id: numberType().int(),
|
|
40532
|
+
expand: arrayType(Expand$inboundSchema).optional()
|
|
40533
|
+
}).transform((v2) => {
|
|
40534
|
+
return remap(v2, {
|
|
40535
|
+
vendor_credential_id: "vendorCredentialId"
|
|
40536
|
+
});
|
|
40537
|
+
});
|
|
40538
|
+
GetVendorCredentialFileRequest$outboundSchema = objectType({
|
|
40539
|
+
vendorCredentialId: numberType().int(),
|
|
40540
|
+
id: numberType().int(),
|
|
40541
|
+
expand: arrayType(Expand$outboundSchema).optional()
|
|
40542
|
+
}).transform((v2) => {
|
|
40543
|
+
return remap(v2, {
|
|
40544
|
+
vendorCredentialId: "vendor_credential_id"
|
|
40545
|
+
});
|
|
40546
|
+
});
|
|
40547
|
+
((GetVendorCredentialFileRequest$) => {
|
|
40548
|
+
GetVendorCredentialFileRequest$.inboundSchema = GetVendorCredentialFileRequest$inboundSchema;
|
|
40549
|
+
GetVendorCredentialFileRequest$.outboundSchema = GetVendorCredentialFileRequest$outboundSchema;
|
|
40550
|
+
})(GetVendorCredentialFileRequest$ ||= {});
|
|
40551
|
+
});
|
|
40552
|
+
|
|
40443
40553
|
// src/models/operations/getvendorinvoicedetails.ts
|
|
40444
40554
|
var GetVendorInvoiceDetailsRequest$inboundSchema, GetVendorInvoiceDetailsRequest$outboundSchema, GetVendorInvoiceDetailsRequest$;
|
|
40445
40555
|
var init_getvendorinvoicedetails = __esm(() => {
|
|
@@ -42378,6 +42488,7 @@ var init_operations = __esm(() => {
|
|
|
42378
42488
|
init_getsupportarticle();
|
|
42379
42489
|
init_getuserbyid();
|
|
42380
42490
|
init_getvendorcredentialdetails();
|
|
42491
|
+
init_getvendorcredentialfile();
|
|
42381
42492
|
init_getvendorinvoicedetails();
|
|
42382
42493
|
init_getvendorsdetails();
|
|
42383
42494
|
init_getwebhookendpoint();
|
|
@@ -44607,11 +44718,127 @@ Available \`expand\` scopes are:
|
|
|
44607
44718
|
};
|
|
44608
44719
|
});
|
|
44609
44720
|
|
|
44610
|
-
// src/funcs/
|
|
44611
|
-
function
|
|
44721
|
+
// src/funcs/vendorsGetVendorCredentialFile.ts
|
|
44722
|
+
function vendorsGetVendorCredentialFile(client, request, options) {
|
|
44612
44723
|
return new APIPromise($do20(client, request, options));
|
|
44613
44724
|
}
|
|
44614
44725
|
async function $do20(client, request, options) {
|
|
44726
|
+
const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44727
|
+
if (!parsed.ok) {
|
|
44728
|
+
return [parsed, { status: "invalid" }];
|
|
44729
|
+
}
|
|
44730
|
+
const payload = parsed.value;
|
|
44731
|
+
const body = null;
|
|
44732
|
+
const pathParams = {
|
|
44733
|
+
id: encodeSimple("id", payload.id, {
|
|
44734
|
+
explode: false,
|
|
44735
|
+
charEncoding: "percent"
|
|
44736
|
+
}),
|
|
44737
|
+
vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
|
|
44738
|
+
};
|
|
44739
|
+
const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files/{id}")(pathParams);
|
|
44740
|
+
const query = encodeFormQuery({
|
|
44741
|
+
expand: payload.expand
|
|
44742
|
+
}, { explode: false });
|
|
44743
|
+
const headers = new Headers(compactMap({
|
|
44744
|
+
Accept: "application/json"
|
|
44745
|
+
}));
|
|
44746
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
44747
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44748
|
+
const context = {
|
|
44749
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44750
|
+
operationID: "getVendorCredentialFile",
|
|
44751
|
+
oAuth2Scopes: [],
|
|
44752
|
+
resolvedSecurity: requestSecurity,
|
|
44753
|
+
securitySource: client._options.security,
|
|
44754
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
44755
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
44756
|
+
};
|
|
44757
|
+
const requestRes = client._createRequest(context, {
|
|
44758
|
+
security: requestSecurity,
|
|
44759
|
+
method: "GET",
|
|
44760
|
+
baseURL: options?.serverURL,
|
|
44761
|
+
path,
|
|
44762
|
+
headers,
|
|
44763
|
+
query,
|
|
44764
|
+
body,
|
|
44765
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44766
|
+
}, options);
|
|
44767
|
+
if (!requestRes.ok) {
|
|
44768
|
+
return [requestRes, { status: "invalid" }];
|
|
44769
|
+
}
|
|
44770
|
+
const req = requestRes.value;
|
|
44771
|
+
const doResult = await client._do(req, {
|
|
44772
|
+
context,
|
|
44773
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
44774
|
+
retryConfig: context.retryConfig,
|
|
44775
|
+
retryCodes: context.retryCodes
|
|
44776
|
+
});
|
|
44777
|
+
if (!doResult.ok) {
|
|
44778
|
+
return [doResult, { status: "request-error", request: req }];
|
|
44779
|
+
}
|
|
44780
|
+
const response = doResult.value;
|
|
44781
|
+
const responseFields = {
|
|
44782
|
+
HttpMeta: { Response: response, Request: req }
|
|
44783
|
+
};
|
|
44784
|
+
const [result] = await match(json(200, VendorCredentialFile$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
44785
|
+
if (!result.ok) {
|
|
44786
|
+
return [result, { status: "complete", request: req, response }];
|
|
44787
|
+
}
|
|
44788
|
+
return [result, { status: "complete", request: req, response }];
|
|
44789
|
+
}
|
|
44790
|
+
var init_vendorsGetVendorCredentialFile = __esm(() => {
|
|
44791
|
+
init_encodings();
|
|
44792
|
+
init_matchers();
|
|
44793
|
+
init_primitives();
|
|
44794
|
+
init_schemas();
|
|
44795
|
+
init_security();
|
|
44796
|
+
init_url();
|
|
44797
|
+
init_components();
|
|
44798
|
+
init_errors();
|
|
44799
|
+
init_operations();
|
|
44800
|
+
init_async();
|
|
44801
|
+
});
|
|
44802
|
+
|
|
44803
|
+
// src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
|
|
44804
|
+
var args19, tool$vendorsGetVendorCredentialFile;
|
|
44805
|
+
var init_vendorsGetVendorCredentialFile2 = __esm(() => {
|
|
44806
|
+
init_vendorsGetVendorCredentialFile();
|
|
44807
|
+
init_operations();
|
|
44808
|
+
init_tools();
|
|
44809
|
+
args19 = {
|
|
44810
|
+
request: GetVendorCredentialFileRequest$inboundSchema
|
|
44811
|
+
};
|
|
44812
|
+
tool$vendorsGetVendorCredentialFile = {
|
|
44813
|
+
name: "vendors-get-vendor-credential-file",
|
|
44814
|
+
description: `Get vendor credential file
|
|
44815
|
+
|
|
44816
|
+
Retrieve an individual vendor credential file.
|
|
44817
|
+
|
|
44818
|
+
Available \`expand\` scopes are:
|
|
44819
|
+
|
|
44820
|
+
- vendor_credential_file.vendor_credential
|
|
44821
|
+
- vendor_credential_file.credential_document`,
|
|
44822
|
+
args: args19,
|
|
44823
|
+
tool: async (client, args20, ctx) => {
|
|
44824
|
+
const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44825
|
+
if (!result.ok) {
|
|
44826
|
+
return {
|
|
44827
|
+
content: [{ type: "text", text: result.error.message }],
|
|
44828
|
+
isError: true
|
|
44829
|
+
};
|
|
44830
|
+
}
|
|
44831
|
+
const value = result.value;
|
|
44832
|
+
return formatResult(value, apiCall);
|
|
44833
|
+
}
|
|
44834
|
+
};
|
|
44835
|
+
});
|
|
44836
|
+
|
|
44837
|
+
// src/funcs/vendorsGetVendorInvoiceDetails.ts
|
|
44838
|
+
function vendorsGetVendorInvoiceDetails(client, request, options) {
|
|
44839
|
+
return new APIPromise($do21(client, request, options));
|
|
44840
|
+
}
|
|
44841
|
+
async function $do21(client, request, options) {
|
|
44615
44842
|
const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44616
44843
|
if (!parsed.ok) {
|
|
44617
44844
|
return [parsed, { status: "invalid" }];
|
|
@@ -44689,12 +44916,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
|
|
|
44689
44916
|
});
|
|
44690
44917
|
|
|
44691
44918
|
// src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
|
|
44692
|
-
var
|
|
44919
|
+
var args20, tool$vendorsGetVendorInvoiceDetails;
|
|
44693
44920
|
var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
|
|
44694
44921
|
init_vendorsGetVendorInvoiceDetails();
|
|
44695
44922
|
init_operations();
|
|
44696
44923
|
init_tools();
|
|
44697
|
-
|
|
44924
|
+
args20 = {
|
|
44698
44925
|
request: GetVendorInvoiceDetailsRequest$inboundSchema
|
|
44699
44926
|
};
|
|
44700
44927
|
tool$vendorsGetVendorInvoiceDetails = {
|
|
@@ -44707,9 +44934,9 @@ Available \`expand\` scopes are:
|
|
|
44707
44934
|
|
|
44708
44935
|
invoice.line_items
|
|
44709
44936
|
invoice.invoice_transactions`,
|
|
44710
|
-
args:
|
|
44711
|
-
tool: async (client,
|
|
44712
|
-
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client,
|
|
44937
|
+
args: args20,
|
|
44938
|
+
tool: async (client, args21, ctx) => {
|
|
44939
|
+
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44713
44940
|
if (!result.ok) {
|
|
44714
44941
|
return {
|
|
44715
44942
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44724,9 +44951,9 @@ invoice.invoice_transactions`,
|
|
|
44724
44951
|
|
|
44725
44952
|
// src/funcs/vendorsGetVendorsDetails.ts
|
|
44726
44953
|
function vendorsGetVendorsDetails(client, request, options) {
|
|
44727
|
-
return new APIPromise($
|
|
44954
|
+
return new APIPromise($do22(client, request, options));
|
|
44728
44955
|
}
|
|
44729
|
-
async function $
|
|
44956
|
+
async function $do22(client, request, options) {
|
|
44730
44957
|
const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44731
44958
|
if (!parsed.ok) {
|
|
44732
44959
|
return [parsed, { status: "invalid" }];
|
|
@@ -44804,12 +45031,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
|
|
|
44804
45031
|
});
|
|
44805
45032
|
|
|
44806
45033
|
// src/mcp-server/tools/vendorsGetVendorsDetails.ts
|
|
44807
|
-
var
|
|
45034
|
+
var args21, tool$vendorsGetVendorsDetails;
|
|
44808
45035
|
var init_vendorsGetVendorsDetails2 = __esm(() => {
|
|
44809
45036
|
init_vendorsGetVendorsDetails();
|
|
44810
45037
|
init_operations();
|
|
44811
45038
|
init_tools();
|
|
44812
|
-
|
|
45039
|
+
args21 = {
|
|
44813
45040
|
request: GetVendorsDetailsRequest$inboundSchema
|
|
44814
45041
|
};
|
|
44815
45042
|
tool$vendorsGetVendorsDetails = {
|
|
@@ -44822,6 +45049,7 @@ Available \`expand\` scopes are:
|
|
|
44822
45049
|
|
|
44823
45050
|
vendor.user
|
|
44824
45051
|
vendor.vendor_type
|
|
45052
|
+
vendor.vendor_job
|
|
44825
45053
|
vendor.image_urls
|
|
44826
45054
|
vendor.payment_profile
|
|
44827
45055
|
vendor.primary_facility
|
|
@@ -44830,10 +45058,11 @@ vendor.company
|
|
|
44830
45058
|
vendor.credentialing_subscription
|
|
44831
45059
|
vendor.scrubs_subscription
|
|
44832
45060
|
vendor.payment_responsibility
|
|
44833
|
-
vendor.background_check_date_expires
|
|
44834
|
-
|
|
44835
|
-
|
|
44836
|
-
|
|
45061
|
+
vendor.background_check_date_expires
|
|
45062
|
+
vendor.registration_data`,
|
|
45063
|
+
args: args21,
|
|
45064
|
+
tool: async (client, args22, ctx) => {
|
|
45065
|
+
const [result, apiCall] = await vendorsGetVendorsDetails(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44837
45066
|
if (!result.ok) {
|
|
44838
45067
|
return {
|
|
44839
45068
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44848,9 +45077,9 @@ vendor.background_check_date_expires`,
|
|
|
44848
45077
|
|
|
44849
45078
|
// src/funcs/vendorsListVendorAdditionalFacilityFields.ts
|
|
44850
45079
|
function vendorsListVendorAdditionalFacilityFields(client, request, options) {
|
|
44851
|
-
return new APIPromise($
|
|
45080
|
+
return new APIPromise($do23(client, request, options));
|
|
44852
45081
|
}
|
|
44853
|
-
async function $
|
|
45082
|
+
async function $do23(client, request, options) {
|
|
44854
45083
|
const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44855
45084
|
if (!parsed.ok) {
|
|
44856
45085
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -44960,12 +45189,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
|
|
|
44960
45189
|
});
|
|
44961
45190
|
|
|
44962
45191
|
// src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
|
|
44963
|
-
var
|
|
45192
|
+
var args22, tool$vendorsListVendorAdditionalFacilityFields;
|
|
44964
45193
|
var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
44965
45194
|
init_vendorsListVendorAdditionalFacilityFields();
|
|
44966
45195
|
init_operations();
|
|
44967
45196
|
init_tools();
|
|
44968
|
-
|
|
45197
|
+
args22 = {
|
|
44969
45198
|
request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
|
|
44970
45199
|
};
|
|
44971
45200
|
tool$vendorsListVendorAdditionalFacilityFields = {
|
|
@@ -44973,9 +45202,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
|
44973
45202
|
description: `List of vendor's additional facility fields
|
|
44974
45203
|
|
|
44975
45204
|
List of vendor's additional facility fields`,
|
|
44976
|
-
args:
|
|
44977
|
-
tool: async (client,
|
|
44978
|
-
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client,
|
|
45205
|
+
args: args22,
|
|
45206
|
+
tool: async (client, args23, ctx) => {
|
|
45207
|
+
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44979
45208
|
if (!result.ok) {
|
|
44980
45209
|
return {
|
|
44981
45210
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44990,9 +45219,9 @@ List of vendor's additional facility fields`,
|
|
|
44990
45219
|
|
|
44991
45220
|
// src/funcs/vendorsListVendorCredentials.ts
|
|
44992
45221
|
function vendorsListVendorCredentials(client, request, options) {
|
|
44993
|
-
return new APIPromise($
|
|
45222
|
+
return new APIPromise($do24(client, request, options));
|
|
44994
45223
|
}
|
|
44995
|
-
async function $
|
|
45224
|
+
async function $do24(client, request, options) {
|
|
44996
45225
|
const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44997
45226
|
if (!parsed.ok) {
|
|
44998
45227
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45110,12 +45339,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
|
|
|
45110
45339
|
});
|
|
45111
45340
|
|
|
45112
45341
|
// src/mcp-server/tools/vendorsListVendorCredentials.ts
|
|
45113
|
-
var
|
|
45342
|
+
var args23, tool$vendorsListVendorCredentials;
|
|
45114
45343
|
var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
45115
45344
|
init_vendorsListVendorCredentials();
|
|
45116
45345
|
init_operations();
|
|
45117
45346
|
init_tools();
|
|
45118
|
-
|
|
45347
|
+
args23 = {
|
|
45119
45348
|
request: ListVendorCredentialsRequest$inboundSchema
|
|
45120
45349
|
};
|
|
45121
45350
|
tool$vendorsListVendorCredentials = {
|
|
@@ -45123,9 +45352,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
|
45123
45352
|
description: `List Vendor Credentials
|
|
45124
45353
|
|
|
45125
45354
|
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
45126
|
-
args:
|
|
45127
|
-
tool: async (client,
|
|
45128
|
-
const [result, apiCall] = await vendorsListVendorCredentials(client,
|
|
45355
|
+
args: args23,
|
|
45356
|
+
tool: async (client, args24, ctx) => {
|
|
45357
|
+
const [result, apiCall] = await vendorsListVendorCredentials(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45129
45358
|
if (!result.ok) {
|
|
45130
45359
|
return {
|
|
45131
45360
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45140,9 +45369,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
|
|
|
45140
45369
|
|
|
45141
45370
|
// src/funcs/vendorsListVendorCredits.ts
|
|
45142
45371
|
function vendorsListVendorCredits(client, request, options) {
|
|
45143
|
-
return new APIPromise($
|
|
45372
|
+
return new APIPromise($do25(client, request, options));
|
|
45144
45373
|
}
|
|
45145
|
-
async function $
|
|
45374
|
+
async function $do25(client, request, options) {
|
|
45146
45375
|
const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45147
45376
|
if (!parsed.ok) {
|
|
45148
45377
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45254,12 +45483,12 @@ var init_vendorsListVendorCredits = __esm(() => {
|
|
|
45254
45483
|
});
|
|
45255
45484
|
|
|
45256
45485
|
// src/mcp-server/tools/vendorsListVendorCredits.ts
|
|
45257
|
-
var
|
|
45486
|
+
var args24, tool$vendorsListVendorCredits;
|
|
45258
45487
|
var init_vendorsListVendorCredits2 = __esm(() => {
|
|
45259
45488
|
init_vendorsListVendorCredits();
|
|
45260
45489
|
init_operations();
|
|
45261
45490
|
init_tools();
|
|
45262
|
-
|
|
45491
|
+
args24 = {
|
|
45263
45492
|
request: ListVendorCreditsRequest$inboundSchema
|
|
45264
45493
|
};
|
|
45265
45494
|
tool$vendorsListVendorCredits = {
|
|
@@ -45267,9 +45496,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
|
|
|
45267
45496
|
description: `List vendor credits
|
|
45268
45497
|
|
|
45269
45498
|
List the credits for the vendor`,
|
|
45270
|
-
args:
|
|
45271
|
-
tool: async (client,
|
|
45272
|
-
const [result, apiCall] = await vendorsListVendorCredits(client,
|
|
45499
|
+
args: args24,
|
|
45500
|
+
tool: async (client, args25, ctx) => {
|
|
45501
|
+
const [result, apiCall] = await vendorsListVendorCredits(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45273
45502
|
if (!result.ok) {
|
|
45274
45503
|
return {
|
|
45275
45504
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45284,9 +45513,9 @@ List the credits for the vendor`,
|
|
|
45284
45513
|
|
|
45285
45514
|
// src/funcs/vendorsListVendorFacilityStatuses.ts
|
|
45286
45515
|
function vendorsListVendorFacilityStatuses(client, request, options) {
|
|
45287
|
-
return new APIPromise($
|
|
45516
|
+
return new APIPromise($do26(client, request, options));
|
|
45288
45517
|
}
|
|
45289
|
-
async function $
|
|
45518
|
+
async function $do26(client, request, options) {
|
|
45290
45519
|
const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45291
45520
|
if (!parsed.ok) {
|
|
45292
45521
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45394,12 +45623,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
|
45394
45623
|
});
|
|
45395
45624
|
|
|
45396
45625
|
// src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
|
|
45397
|
-
var
|
|
45626
|
+
var args25, tool$vendorsListVendorFacilityStatuses;
|
|
45398
45627
|
var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
45399
45628
|
init_vendorsListVendorFacilityStatuses();
|
|
45400
45629
|
init_operations();
|
|
45401
45630
|
init_tools();
|
|
45402
|
-
|
|
45631
|
+
args25 = {
|
|
45403
45632
|
request: ListVendorFacilityStatusesRequest$inboundSchema
|
|
45404
45633
|
};
|
|
45405
45634
|
tool$vendorsListVendorFacilityStatuses = {
|
|
@@ -45407,9 +45636,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
|
45407
45636
|
description: `List vendor facility statuses
|
|
45408
45637
|
|
|
45409
45638
|
List the facilities for the vendor`,
|
|
45410
|
-
args:
|
|
45411
|
-
tool: async (client,
|
|
45412
|
-
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client,
|
|
45639
|
+
args: args25,
|
|
45640
|
+
tool: async (client, args26, ctx) => {
|
|
45641
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45413
45642
|
if (!result.ok) {
|
|
45414
45643
|
return {
|
|
45415
45644
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45424,9 +45653,9 @@ List the facilities for the vendor`,
|
|
|
45424
45653
|
|
|
45425
45654
|
// src/funcs/vendorsListVendorInvoices.ts
|
|
45426
45655
|
function vendorsListVendorInvoices(client, request, options) {
|
|
45427
|
-
return new APIPromise($
|
|
45656
|
+
return new APIPromise($do27(client, request, options));
|
|
45428
45657
|
}
|
|
45429
|
-
async function $
|
|
45658
|
+
async function $do27(client, request, options) {
|
|
45430
45659
|
const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45431
45660
|
if (!parsed.ok) {
|
|
45432
45661
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45542,12 +45771,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
45542
45771
|
});
|
|
45543
45772
|
|
|
45544
45773
|
// src/mcp-server/tools/vendorsListVendorInvoices.ts
|
|
45545
|
-
var
|
|
45774
|
+
var args26, tool$vendorsListVendorInvoices;
|
|
45546
45775
|
var init_vendorsListVendorInvoices2 = __esm(() => {
|
|
45547
45776
|
init_vendorsListVendorInvoices();
|
|
45548
45777
|
init_operations();
|
|
45549
45778
|
init_tools();
|
|
45550
|
-
|
|
45779
|
+
args26 = {
|
|
45551
45780
|
request: ListVendorInvoicesRequest$inboundSchema
|
|
45552
45781
|
};
|
|
45553
45782
|
tool$vendorsListVendorInvoices = {
|
|
@@ -45559,9 +45788,9 @@ List invoices for Vendors
|
|
|
45559
45788
|
Available \`expand\` scopes are:
|
|
45560
45789
|
|
|
45561
45790
|
invoice.line_items`,
|
|
45562
|
-
args:
|
|
45563
|
-
tool: async (client,
|
|
45564
|
-
const [result, apiCall] = await vendorsListVendorInvoices(client,
|
|
45791
|
+
args: args26,
|
|
45792
|
+
tool: async (client, args27, ctx) => {
|
|
45793
|
+
const [result, apiCall] = await vendorsListVendorInvoices(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45565
45794
|
if (!result.ok) {
|
|
45566
45795
|
return {
|
|
45567
45796
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45576,9 +45805,9 @@ invoice.line_items`,
|
|
|
45576
45805
|
|
|
45577
45806
|
// src/funcs/vendorsListVendorManagedByCompanies.ts
|
|
45578
45807
|
function vendorsListVendorManagedByCompanies(client, request, options) {
|
|
45579
|
-
return new APIPromise($
|
|
45808
|
+
return new APIPromise($do28(client, request, options));
|
|
45580
45809
|
}
|
|
45581
|
-
async function $
|
|
45810
|
+
async function $do28(client, request, options) {
|
|
45582
45811
|
const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45583
45812
|
if (!parsed.ok) {
|
|
45584
45813
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45690,12 +45919,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
|
|
|
45690
45919
|
});
|
|
45691
45920
|
|
|
45692
45921
|
// src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
|
|
45693
|
-
var
|
|
45922
|
+
var args27, tool$vendorsListVendorManagedByCompanies;
|
|
45694
45923
|
var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
45695
45924
|
init_vendorsListVendorManagedByCompanies();
|
|
45696
45925
|
init_operations();
|
|
45697
45926
|
init_tools();
|
|
45698
|
-
|
|
45927
|
+
args27 = {
|
|
45699
45928
|
request: ListVendorManagedByCompaniesRequest$inboundSchema
|
|
45700
45929
|
};
|
|
45701
45930
|
tool$vendorsListVendorManagedByCompanies = {
|
|
@@ -45703,9 +45932,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
|
45703
45932
|
description: `List of companies managing the vendor
|
|
45704
45933
|
|
|
45705
45934
|
List of companies managing the vendor`,
|
|
45706
|
-
args:
|
|
45707
|
-
tool: async (client,
|
|
45708
|
-
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client,
|
|
45935
|
+
args: args27,
|
|
45936
|
+
tool: async (client, args28, ctx) => {
|
|
45937
|
+
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45709
45938
|
if (!result.ok) {
|
|
45710
45939
|
return {
|
|
45711
45940
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45720,9 +45949,9 @@ List of companies managing the vendor`,
|
|
|
45720
45949
|
|
|
45721
45950
|
// src/funcs/vendorsListVendorScrubDetails.ts
|
|
45722
45951
|
function vendorsListVendorScrubDetails(client, request, options) {
|
|
45723
|
-
return new APIPromise($
|
|
45952
|
+
return new APIPromise($do29(client, request, options));
|
|
45724
45953
|
}
|
|
45725
|
-
async function $
|
|
45954
|
+
async function $do29(client, request, options) {
|
|
45726
45955
|
const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45727
45956
|
if (!parsed.ok) {
|
|
45728
45957
|
return [parsed, { status: "invalid" }];
|
|
@@ -45796,12 +46025,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
|
45796
46025
|
});
|
|
45797
46026
|
|
|
45798
46027
|
// src/mcp-server/tools/vendorsListVendorScrubDetails.ts
|
|
45799
|
-
var
|
|
46028
|
+
var args28, tool$vendorsListVendorScrubDetails;
|
|
45800
46029
|
var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
45801
46030
|
init_vendorsListVendorScrubDetails();
|
|
45802
46031
|
init_operations();
|
|
45803
46032
|
init_tools();
|
|
45804
|
-
|
|
46033
|
+
args28 = {
|
|
45805
46034
|
request: ListVendorScrubDetailsRequest$inboundSchema
|
|
45806
46035
|
};
|
|
45807
46036
|
tool$vendorsListVendorScrubDetails = {
|
|
@@ -45809,9 +46038,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
|
45809
46038
|
description: `List vendor scrub details
|
|
45810
46039
|
|
|
45811
46040
|
List vendor scrub details`,
|
|
45812
|
-
args:
|
|
45813
|
-
tool: async (client,
|
|
45814
|
-
const [result, apiCall] = await vendorsListVendorScrubDetails(client,
|
|
46041
|
+
args: args28,
|
|
46042
|
+
tool: async (client, args29, ctx) => {
|
|
46043
|
+
const [result, apiCall] = await vendorsListVendorScrubDetails(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45815
46044
|
if (!result.ok) {
|
|
45816
46045
|
return {
|
|
45817
46046
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45826,9 +46055,9 @@ List vendor scrub details`,
|
|
|
45826
46055
|
|
|
45827
46056
|
// src/funcs/vendorsListVendorScrubPackages.ts
|
|
45828
46057
|
function vendorsListVendorScrubPackages(client, request, options) {
|
|
45829
|
-
return new APIPromise($
|
|
46058
|
+
return new APIPromise($do30(client, request, options));
|
|
45830
46059
|
}
|
|
45831
|
-
async function $
|
|
46060
|
+
async function $do30(client, request, options) {
|
|
45832
46061
|
const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45833
46062
|
if (!parsed.ok) {
|
|
45834
46063
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45940,12 +46169,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
|
|
|
45940
46169
|
});
|
|
45941
46170
|
|
|
45942
46171
|
// src/mcp-server/tools/vendorsListVendorScrubPackages.ts
|
|
45943
|
-
var
|
|
46172
|
+
var args29, tool$vendorsListVendorScrubPackages;
|
|
45944
46173
|
var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
45945
46174
|
init_vendorsListVendorScrubPackages();
|
|
45946
46175
|
init_operations();
|
|
45947
46176
|
init_tools();
|
|
45948
|
-
|
|
46177
|
+
args29 = {
|
|
45949
46178
|
request: ListVendorScrubPackagesRequest$inboundSchema
|
|
45950
46179
|
};
|
|
45951
46180
|
tool$vendorsListVendorScrubPackages = {
|
|
@@ -45953,9 +46182,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
|
45953
46182
|
description: `List vendor scrub packages
|
|
45954
46183
|
|
|
45955
46184
|
List vendor scrub packages`,
|
|
45956
|
-
args:
|
|
45957
|
-
tool: async (client,
|
|
45958
|
-
const [result, apiCall] = await vendorsListVendorScrubPackages(client,
|
|
46185
|
+
args: args29,
|
|
46186
|
+
tool: async (client, args30, ctx) => {
|
|
46187
|
+
const [result, apiCall] = await vendorsListVendorScrubPackages(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45959
46188
|
if (!result.ok) {
|
|
45960
46189
|
return {
|
|
45961
46190
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45970,9 +46199,9 @@ List vendor scrub packages`,
|
|
|
45970
46199
|
|
|
45971
46200
|
// src/funcs/vendorsListVendorScrubPurchases.ts
|
|
45972
46201
|
function vendorsListVendorScrubPurchases(client, request, options) {
|
|
45973
|
-
return new APIPromise($
|
|
46202
|
+
return new APIPromise($do31(client, request, options));
|
|
45974
46203
|
}
|
|
45975
|
-
async function $
|
|
46204
|
+
async function $do31(client, request, options) {
|
|
45976
46205
|
const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45977
46206
|
if (!parsed.ok) {
|
|
45978
46207
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46084,12 +46313,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
|
46084
46313
|
});
|
|
46085
46314
|
|
|
46086
46315
|
// src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
|
|
46087
|
-
var
|
|
46316
|
+
var args30, tool$vendorsListVendorScrubPurchases;
|
|
46088
46317
|
var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
46089
46318
|
init_vendorsListVendorScrubPurchases();
|
|
46090
46319
|
init_operations();
|
|
46091
46320
|
init_tools();
|
|
46092
|
-
|
|
46321
|
+
args30 = {
|
|
46093
46322
|
request: ListVendorScrubPurchasesRequest$inboundSchema
|
|
46094
46323
|
};
|
|
46095
46324
|
tool$vendorsListVendorScrubPurchases = {
|
|
@@ -46097,9 +46326,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
|
46097
46326
|
description: `List vendor scrub purchases
|
|
46098
46327
|
|
|
46099
46328
|
List vendor scrub purchases`,
|
|
46100
|
-
args:
|
|
46101
|
-
tool: async (client,
|
|
46102
|
-
const [result, apiCall] = await vendorsListVendorScrubPurchases(client,
|
|
46329
|
+
args: args30,
|
|
46330
|
+
tool: async (client, args31, ctx) => {
|
|
46331
|
+
const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46103
46332
|
if (!result.ok) {
|
|
46104
46333
|
return {
|
|
46105
46334
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46114,9 +46343,9 @@ List vendor scrub purchases`,
|
|
|
46114
46343
|
|
|
46115
46344
|
// src/funcs/vendorsPurchaseScrubCredits.ts
|
|
46116
46345
|
function vendorsPurchaseScrubCredits(client, request, options) {
|
|
46117
|
-
return new APIPromise($
|
|
46346
|
+
return new APIPromise($do32(client, request, options));
|
|
46118
46347
|
}
|
|
46119
|
-
async function $
|
|
46348
|
+
async function $do32(client, request, options) {
|
|
46120
46349
|
const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46121
46350
|
if (!parsed.ok) {
|
|
46122
46351
|
return [parsed, { status: "invalid" }];
|
|
@@ -46190,12 +46419,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
|
|
|
46190
46419
|
});
|
|
46191
46420
|
|
|
46192
46421
|
// src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
|
|
46193
|
-
var
|
|
46422
|
+
var args31, tool$vendorsPurchaseScrubCredits;
|
|
46194
46423
|
var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
46195
46424
|
init_vendorsPurchaseScrubCredits();
|
|
46196
46425
|
init_operations();
|
|
46197
46426
|
init_tools();
|
|
46198
|
-
|
|
46427
|
+
args31 = {
|
|
46199
46428
|
request: PurchaseScrubCreditsRequest$inboundSchema
|
|
46200
46429
|
};
|
|
46201
46430
|
tool$vendorsPurchaseScrubCredits = {
|
|
@@ -46203,9 +46432,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
|
46203
46432
|
description: `Purchase scrub credits
|
|
46204
46433
|
|
|
46205
46434
|
Purchase scrub credits`,
|
|
46206
|
-
args:
|
|
46207
|
-
tool: async (client,
|
|
46208
|
-
const [result, apiCall] = await vendorsPurchaseScrubCredits(client,
|
|
46435
|
+
args: args31,
|
|
46436
|
+
tool: async (client, args32, ctx) => {
|
|
46437
|
+
const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46209
46438
|
if (!result.ok) {
|
|
46210
46439
|
return {
|
|
46211
46440
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46220,9 +46449,9 @@ Purchase scrub credits`,
|
|
|
46220
46449
|
|
|
46221
46450
|
// src/funcs/vendorsUpdateVendorDetails.ts
|
|
46222
46451
|
function vendorsUpdateVendorDetails(client, request, options) {
|
|
46223
|
-
return new APIPromise($
|
|
46452
|
+
return new APIPromise($do33(client, request, options));
|
|
46224
46453
|
}
|
|
46225
|
-
async function $
|
|
46454
|
+
async function $do33(client, request, options) {
|
|
46226
46455
|
const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46227
46456
|
if (!parsed.ok) {
|
|
46228
46457
|
return [parsed, { status: "invalid" }];
|
|
@@ -46297,12 +46526,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
|
|
|
46297
46526
|
});
|
|
46298
46527
|
|
|
46299
46528
|
// src/mcp-server/tools/vendorsUpdateVendorDetails.ts
|
|
46300
|
-
var
|
|
46529
|
+
var args32, tool$vendorsUpdateVendorDetails;
|
|
46301
46530
|
var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
46302
46531
|
init_vendorsUpdateVendorDetails();
|
|
46303
46532
|
init_operations();
|
|
46304
46533
|
init_tools();
|
|
46305
|
-
|
|
46534
|
+
args32 = {
|
|
46306
46535
|
request: UpdateVendorDetailsRequest$inboundSchema
|
|
46307
46536
|
};
|
|
46308
46537
|
tool$vendorsUpdateVendorDetails = {
|
|
@@ -46310,9 +46539,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
|
46310
46539
|
description: `Update vendor details
|
|
46311
46540
|
|
|
46312
46541
|
It will update the vendor details`,
|
|
46313
|
-
args:
|
|
46314
|
-
tool: async (client,
|
|
46315
|
-
const [result, apiCall] = await vendorsUpdateVendorDetails(client,
|
|
46542
|
+
args: args32,
|
|
46543
|
+
tool: async (client, args33, ctx) => {
|
|
46544
|
+
const [result, apiCall] = await vendorsUpdateVendorDetails(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46316
46545
|
if (!result.ok) {
|
|
46317
46546
|
return {
|
|
46318
46547
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46327,9 +46556,9 @@ It will update the vendor details`,
|
|
|
46327
46556
|
|
|
46328
46557
|
// src/funcs/vendorsUpdateVendorManagedByCompany.ts
|
|
46329
46558
|
function vendorsUpdateVendorManagedByCompany(client, request, options) {
|
|
46330
|
-
return new APIPromise($
|
|
46559
|
+
return new APIPromise($do34(client, request, options));
|
|
46331
46560
|
}
|
|
46332
|
-
async function $
|
|
46561
|
+
async function $do34(client, request, options) {
|
|
46333
46562
|
const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46334
46563
|
if (!parsed.ok) {
|
|
46335
46564
|
return [parsed, { status: "invalid" }];
|
|
@@ -46403,12 +46632,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
|
|
|
46403
46632
|
});
|
|
46404
46633
|
|
|
46405
46634
|
// src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
|
|
46406
|
-
var
|
|
46635
|
+
var args33, tool$vendorsUpdateVendorManagedByCompany;
|
|
46407
46636
|
var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
46408
46637
|
init_vendorsUpdateVendorManagedByCompany();
|
|
46409
46638
|
init_operations();
|
|
46410
46639
|
init_tools();
|
|
46411
|
-
|
|
46640
|
+
args33 = {
|
|
46412
46641
|
request: UpdateVendorManagedByCompanyRequest$inboundSchema
|
|
46413
46642
|
};
|
|
46414
46643
|
tool$vendorsUpdateVendorManagedByCompany = {
|
|
@@ -46416,9 +46645,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
|
46416
46645
|
description: `Update vendor managed by company access rights
|
|
46417
46646
|
|
|
46418
46647
|
It will update the vendor managed by company access rights`,
|
|
46419
|
-
args:
|
|
46420
|
-
tool: async (client,
|
|
46421
|
-
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client,
|
|
46648
|
+
args: args33,
|
|
46649
|
+
tool: async (client, args34, ctx) => {
|
|
46650
|
+
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46422
46651
|
if (!result.ok) {
|
|
46423
46652
|
return {
|
|
46424
46653
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46433,9 +46662,9 @@ It will update the vendor managed by company access rights`,
|
|
|
46433
46662
|
|
|
46434
46663
|
// src/funcs/vendorsUpdateVendorScrubDetails.ts
|
|
46435
46664
|
function vendorsUpdateVendorScrubDetails(client, request, options) {
|
|
46436
|
-
return new APIPromise($
|
|
46665
|
+
return new APIPromise($do35(client, request, options));
|
|
46437
46666
|
}
|
|
46438
|
-
async function $
|
|
46667
|
+
async function $do35(client, request, options) {
|
|
46439
46668
|
const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46440
46669
|
if (!parsed.ok) {
|
|
46441
46670
|
return [parsed, { status: "invalid" }];
|
|
@@ -46510,12 +46739,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
|
|
|
46510
46739
|
});
|
|
46511
46740
|
|
|
46512
46741
|
// src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
|
|
46513
|
-
var
|
|
46742
|
+
var args34, tool$vendorsUpdateVendorScrubDetails;
|
|
46514
46743
|
var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
46515
46744
|
init_vendorsUpdateVendorScrubDetails();
|
|
46516
46745
|
init_operations();
|
|
46517
46746
|
init_tools();
|
|
46518
|
-
|
|
46747
|
+
args34 = {
|
|
46519
46748
|
request: UpdateVendorScrubDetailsRequest$inboundSchema
|
|
46520
46749
|
};
|
|
46521
46750
|
tool$vendorsUpdateVendorScrubDetails = {
|
|
@@ -46523,9 +46752,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
|
46523
46752
|
description: `Update vendor scrub details
|
|
46524
46753
|
|
|
46525
46754
|
Update vendor scrub details`,
|
|
46526
|
-
args:
|
|
46527
|
-
tool: async (client,
|
|
46528
|
-
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client,
|
|
46755
|
+
args: args34,
|
|
46756
|
+
tool: async (client, args35, ctx) => {
|
|
46757
|
+
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46529
46758
|
if (!result.ok) {
|
|
46530
46759
|
return {
|
|
46531
46760
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46540,9 +46769,9 @@ Update vendor scrub details`,
|
|
|
46540
46769
|
|
|
46541
46770
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
46542
46771
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
46543
|
-
return new APIPromise($
|
|
46772
|
+
return new APIPromise($do36(client, request, options));
|
|
46544
46773
|
}
|
|
46545
|
-
async function $
|
|
46774
|
+
async function $do36(client, request, options) {
|
|
46546
46775
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46547
46776
|
if (!parsed.ok) {
|
|
46548
46777
|
return [parsed, { status: "invalid" }];
|
|
@@ -46616,12 +46845,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
46616
46845
|
});
|
|
46617
46846
|
|
|
46618
46847
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
46619
|
-
var
|
|
46848
|
+
var args35, tool$webhooksGetWebhookEndpoint;
|
|
46620
46849
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
46621
46850
|
init_webhooksGetWebhookEndpoint();
|
|
46622
46851
|
init_operations();
|
|
46623
46852
|
init_tools();
|
|
46624
|
-
|
|
46853
|
+
args35 = {
|
|
46625
46854
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
46626
46855
|
};
|
|
46627
46856
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -46629,9 +46858,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
46629
46858
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
46630
46859
|
|
|
46631
46860
|
Returns the definition of a webhook endpoint by ID.`,
|
|
46632
|
-
args:
|
|
46633
|
-
tool: async (client,
|
|
46634
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
46861
|
+
args: args35,
|
|
46862
|
+
tool: async (client, args36, ctx) => {
|
|
46863
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46635
46864
|
if (!result.ok) {
|
|
46636
46865
|
return {
|
|
46637
46866
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46646,9 +46875,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
46646
46875
|
|
|
46647
46876
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
46648
46877
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
46649
|
-
return new APIPromise($
|
|
46878
|
+
return new APIPromise($do37(client, request, options));
|
|
46650
46879
|
}
|
|
46651
|
-
async function $
|
|
46880
|
+
async function $do37(client, request, options) {
|
|
46652
46881
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46653
46882
|
if (!parsed.ok) {
|
|
46654
46883
|
return [parsed, { status: "invalid" }];
|
|
@@ -46722,12 +46951,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
46722
46951
|
});
|
|
46723
46952
|
|
|
46724
46953
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
46725
|
-
var
|
|
46954
|
+
var args36, tool$webhooksListAllWebhookEndpoints;
|
|
46726
46955
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
46727
46956
|
init_webhooksListAllWebhookEndpoints();
|
|
46728
46957
|
init_operations();
|
|
46729
46958
|
init_tools();
|
|
46730
|
-
|
|
46959
|
+
args36 = {
|
|
46731
46960
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
46732
46961
|
};
|
|
46733
46962
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -46735,9 +46964,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
46735
46964
|
description: `List all webhook endpoints
|
|
46736
46965
|
|
|
46737
46966
|
Returns a list of your webhook endpoints.`,
|
|
46738
|
-
args:
|
|
46739
|
-
tool: async (client,
|
|
46740
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
46967
|
+
args: args36,
|
|
46968
|
+
tool: async (client, args37, ctx) => {
|
|
46969
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46741
46970
|
if (!result.ok) {
|
|
46742
46971
|
return {
|
|
46743
46972
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46752,9 +46981,9 @@ Returns a list of your webhook endpoints.`,
|
|
|
46752
46981
|
|
|
46753
46982
|
// src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
46754
46983
|
function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
|
|
46755
|
-
return new APIPromise($
|
|
46984
|
+
return new APIPromise($do38(client, request, options));
|
|
46756
46985
|
}
|
|
46757
|
-
async function $
|
|
46986
|
+
async function $do38(client, request, options) {
|
|
46758
46987
|
const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46759
46988
|
if (!parsed.ok) {
|
|
46760
46989
|
return [parsed, { status: "invalid" }];
|
|
@@ -46829,12 +47058,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
|
|
|
46829
47058
|
});
|
|
46830
47059
|
|
|
46831
47060
|
// src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
46832
|
-
var
|
|
47061
|
+
var args37, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
|
|
46833
47062
|
var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
46834
47063
|
init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
|
|
46835
47064
|
init_operations();
|
|
46836
47065
|
init_tools();
|
|
46837
|
-
|
|
47066
|
+
args37 = {
|
|
46838
47067
|
request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
|
|
46839
47068
|
};
|
|
46840
47069
|
tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
|
|
@@ -46842,9 +47071,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
|
46842
47071
|
description: `Updates the webhook endpoint with the given ID.
|
|
46843
47072
|
|
|
46844
47073
|
Updates the webhook endpoint with the given ID.`,
|
|
46845
|
-
args:
|
|
46846
|
-
tool: async (client,
|
|
46847
|
-
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client,
|
|
47074
|
+
args: args37,
|
|
47075
|
+
tool: async (client, args38, ctx) => {
|
|
47076
|
+
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46848
47077
|
if (!result.ok) {
|
|
46849
47078
|
return {
|
|
46850
47079
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46859,9 +47088,9 @@ Updates the webhook endpoint with the given ID.`,
|
|
|
46859
47088
|
|
|
46860
47089
|
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
46861
47090
|
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
46862
|
-
return new APIPromise($
|
|
47091
|
+
return new APIPromise($do39(client, request, options));
|
|
46863
47092
|
}
|
|
46864
|
-
async function $
|
|
47093
|
+
async function $do39(client, request, options) {
|
|
46865
47094
|
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46866
47095
|
if (!parsed.ok) {
|
|
46867
47096
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46973,12 +47202,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
|
46973
47202
|
});
|
|
46974
47203
|
|
|
46975
47204
|
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
46976
|
-
var
|
|
47205
|
+
var args38, tool$zonesListOrSearchSecurityZones;
|
|
46977
47206
|
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
46978
47207
|
init_zonesListOrSearchSecurityZones();
|
|
46979
47208
|
init_operations();
|
|
46980
47209
|
init_tools();
|
|
46981
|
-
|
|
47210
|
+
args38 = {
|
|
46982
47211
|
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
46983
47212
|
};
|
|
46984
47213
|
tool$zonesListOrSearchSecurityZones = {
|
|
@@ -46986,9 +47215,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
|
46986
47215
|
description: `List or search security zones
|
|
46987
47216
|
|
|
46988
47217
|
List or search security zones`,
|
|
46989
|
-
args:
|
|
46990
|
-
tool: async (client,
|
|
46991
|
-
const [result, apiCall] = await zonesListOrSearchSecurityZones(client,
|
|
47218
|
+
args: args38,
|
|
47219
|
+
tool: async (client, args39, ctx) => {
|
|
47220
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46992
47221
|
if (!result.ok) {
|
|
46993
47222
|
return {
|
|
46994
47223
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47003,9 +47232,9 @@ List or search security zones`,
|
|
|
47003
47232
|
|
|
47004
47233
|
// src/funcs/zonesSecurityZoneCheckin.ts
|
|
47005
47234
|
function zonesSecurityZoneCheckin(client, request, options) {
|
|
47006
|
-
return new APIPromise($
|
|
47235
|
+
return new APIPromise($do40(client, request, options));
|
|
47007
47236
|
}
|
|
47008
|
-
async function $
|
|
47237
|
+
async function $do40(client, request, options) {
|
|
47009
47238
|
const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
47010
47239
|
if (!parsed.ok) {
|
|
47011
47240
|
return [parsed, { status: "invalid" }];
|
|
@@ -47073,12 +47302,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
|
|
|
47073
47302
|
});
|
|
47074
47303
|
|
|
47075
47304
|
// src/mcp-server/tools/zonesSecurityZoneCheckin.ts
|
|
47076
|
-
var
|
|
47305
|
+
var args39, tool$zonesSecurityZoneCheckin;
|
|
47077
47306
|
var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
47078
47307
|
init_zonesSecurityZoneCheckin();
|
|
47079
47308
|
init_operations();
|
|
47080
47309
|
init_tools();
|
|
47081
|
-
|
|
47310
|
+
args39 = {
|
|
47082
47311
|
request: SecurityZoneCheckinRequestBody$inboundSchema
|
|
47083
47312
|
};
|
|
47084
47313
|
tool$zonesSecurityZoneCheckin = {
|
|
@@ -47086,9 +47315,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
|
47086
47315
|
description: `Security zone checkin request
|
|
47087
47316
|
|
|
47088
47317
|
Security zone checkin request`,
|
|
47089
|
-
args:
|
|
47090
|
-
tool: async (client,
|
|
47091
|
-
const [result, apiCall] = await zonesSecurityZoneCheckin(client,
|
|
47318
|
+
args: args39,
|
|
47319
|
+
tool: async (client, args40, ctx) => {
|
|
47320
|
+
const [result, apiCall] = await zonesSecurityZoneCheckin(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47092
47321
|
if (!result.ok) {
|
|
47093
47322
|
return {
|
|
47094
47323
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47105,7 +47334,7 @@ Security zone checkin request`,
|
|
|
47105
47334
|
function createMCPServer(deps) {
|
|
47106
47335
|
const server = new McpServer({
|
|
47107
47336
|
name: "GreenSecurity",
|
|
47108
|
-
version: "0.30.
|
|
47337
|
+
version: "0.30.53"
|
|
47109
47338
|
});
|
|
47110
47339
|
const client = new GreenSecurityCore({
|
|
47111
47340
|
security: deps.security,
|
|
@@ -47122,6 +47351,7 @@ function createMCPServer(deps) {
|
|
|
47122
47351
|
tool(tool$vendorsCreateVendorRegistration);
|
|
47123
47352
|
tool(tool$vendorsListVendorCredentials);
|
|
47124
47353
|
tool(tool$vendorsGetVendorCredentialDetails);
|
|
47354
|
+
tool(tool$vendorsGetVendorCredentialFile);
|
|
47125
47355
|
tool(tool$vendorsExpediteTimeRemaining);
|
|
47126
47356
|
tool(tool$vendorsListVendorInvoices);
|
|
47127
47357
|
tool(tool$vendorsGetVendorInvoiceDetails);
|
|
@@ -47184,6 +47414,7 @@ var init_server2 = __esm(() => {
|
|
|
47184
47414
|
init_vendorsDeleteVendorManagedByCompany2();
|
|
47185
47415
|
init_vendorsExpediteTimeRemaining2();
|
|
47186
47416
|
init_vendorsGetVendorCredentialDetails2();
|
|
47417
|
+
init_vendorsGetVendorCredentialFile2();
|
|
47187
47418
|
init_vendorsGetVendorInvoiceDetails2();
|
|
47188
47419
|
init_vendorsGetVendorsDetails2();
|
|
47189
47420
|
init_vendorsListVendorAdditionalFacilityFields2();
|
|
@@ -47233,7 +47464,10 @@ async function startStdio(flags) {
|
|
|
47233
47464
|
logger,
|
|
47234
47465
|
allowedTools: flags.tool,
|
|
47235
47466
|
scopes: flags.scope,
|
|
47236
|
-
security: {
|
|
47467
|
+
security: {
|
|
47468
|
+
token: flags["api-token"] ?? "",
|
|
47469
|
+
bearerJwt: flags["bearer-jwt"] ?? ""
|
|
47470
|
+
},
|
|
47237
47471
|
serverURL: flags["server-url"],
|
|
47238
47472
|
serverIdx: flags["server-index"]
|
|
47239
47473
|
});
|
|
@@ -47252,7 +47486,10 @@ async function startSSE(flags) {
|
|
|
47252
47486
|
logger,
|
|
47253
47487
|
allowedTools: flags.tool,
|
|
47254
47488
|
scopes: flags.scope,
|
|
47255
|
-
security: {
|
|
47489
|
+
security: {
|
|
47490
|
+
token: flags["api-token"] ?? "",
|
|
47491
|
+
bearerJwt: flags["bearer-jwt"] ?? ""
|
|
47492
|
+
},
|
|
47256
47493
|
serverURL: flags["server-url"],
|
|
47257
47494
|
serverIdx: flags["server-index"]
|
|
47258
47495
|
});
|
|
@@ -48402,7 +48639,7 @@ var routes = an({
|
|
|
48402
48639
|
var app = He(routes, {
|
|
48403
48640
|
name: "mcp",
|
|
48404
48641
|
versionInfo: {
|
|
48405
|
-
currentVersion: "0.30.
|
|
48642
|
+
currentVersion: "0.30.53"
|
|
48406
48643
|
}
|
|
48407
48644
|
});
|
|
48408
48645
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -48410,5 +48647,5 @@ export {
|
|
|
48410
48647
|
app
|
|
48411
48648
|
};
|
|
48412
48649
|
|
|
48413
|
-
//# debugId=
|
|
48650
|
+
//# debugId=7FF7AF12E489732764756E2164756E21
|
|
48414
48651
|
//# sourceMappingURL=mcp-server.js.map
|