@greensecurity/javascript-sdk 0.30.46 → 0.30.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/bin/mcp-server.js +439 -212
- package/bin/mcp-server.js.map +25 -21
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +127 -3
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +9 -52
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts +23 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js +131 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/cli/start/impl.js +8 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.js +69 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +3 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/models/components/credential.d.ts +4 -0
- package/dist/commonjs/models/components/credential.d.ts.map +1 -1
- package/dist/commonjs/models/components/credential.js +8 -0
- package/dist/commonjs/models/components/credential.js.map +1 -1
- package/dist/commonjs/models/components/expand.d.ts +12 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +4 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +2 -2
- package/dist/commonjs/models/components/invoice.js +2 -2
- package/dist/commonjs/models/components/invoiceitem.d.ts +52 -4
- package/dist/commonjs/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoiceitem.js +60 -9
- package/dist/commonjs/models/components/invoiceitem.js.map +1 -1
- package/dist/commonjs/models/components/product.d.ts +36 -0
- package/dist/commonjs/models/components/product.d.ts.map +1 -0
- package/dist/commonjs/models/components/product.js +73 -0
- package/dist/commonjs/models/components/product.js.map +1 -0
- package/dist/commonjs/models/components/vendor.d.ts +30 -0
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +33 -1
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts +2 -4
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialfile.js +4 -6
- package/dist/commonjs/models/components/vendorcredentialfile.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.d.ts +4 -0
- package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.js +8 -0
- package/dist/commonjs/models/components/zoneconfig.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorcredentialfile.d.ts +43 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.js +83 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.d.ts +55 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.js +108 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +14 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +17 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +127 -3
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +9 -52
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts +23 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.js +95 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/cli/start/impl.js +8 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.js +33 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +3 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/models/components/credential.d.ts +4 -0
- package/dist/esm/models/components/credential.d.ts.map +1 -1
- package/dist/esm/models/components/credential.js +8 -0
- package/dist/esm/models/components/credential.js.map +1 -1
- package/dist/esm/models/components/expand.d.ts +12 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +4 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +2 -2
- package/dist/esm/models/components/invoice.js +2 -2
- package/dist/esm/models/components/invoiceitem.d.ts +52 -4
- package/dist/esm/models/components/invoiceitem.d.ts.map +1 -1
- package/dist/esm/models/components/invoiceitem.js +55 -8
- package/dist/esm/models/components/invoiceitem.js.map +1 -1
- package/dist/esm/models/components/product.d.ts +36 -0
- package/dist/esm/models/components/product.d.ts.map +1 -0
- package/dist/esm/models/components/product.js +35 -0
- package/dist/esm/models/components/product.js.map +1 -0
- package/dist/esm/models/components/vendor.d.ts +30 -0
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +30 -0
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialfile.d.ts +2 -4
- package/dist/esm/models/components/vendorcredentialfile.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialfile.js +4 -6
- package/dist/esm/models/components/vendorcredentialfile.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/models/components/zoneconfig.d.ts +4 -0
- package/dist/esm/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/esm/models/components/zoneconfig.js +8 -0
- package/dist/esm/models/components/zoneconfig.js.map +1 -1
- package/dist/esm/models/operations/getvendorcredentialfile.d.ts +43 -0
- package/dist/esm/models/operations/getvendorcredentialfile.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorcredentialfile.js +45 -0
- package/dist/esm/models/operations/getvendorcredentialfile.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.d.ts +55 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.js +98 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +4 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +4 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +14 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +17 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +130 -3
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +9 -52
- package/src/funcs/vendorsGetVendorCredentialFile.ts +191 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/impl.ts +8 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/vendorsGetVendorCredentialFile.ts +43 -0
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +3 -1
- package/src/models/components/credential.ts +12 -0
- package/src/models/components/expand.ts +6 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoice.ts +4 -4
- package/src/models/components/invoiceitem.ts +126 -12
- package/src/models/components/product.ts +70 -0
- package/src/models/components/vendor.ts +68 -0
- package/src/models/components/vendorcredentialfile.ts +6 -10
- package/src/models/components/vendorcredentialsummary.ts +6 -0
- package/src/models/components/zoneconfig.ts +12 -0
- package/src/models/operations/getvendorcredentialfile.ts +95 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsGetVendorCredentialFile.ts +197 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +4 -0
- package/src/sdk/vendors.ts +25 -0
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.51",
|
|
34196
|
+
genVersion: "2.605.0",
|
|
34197
|
+
userAgent: "speakeasy-sdk/typescript 0.30.51 2.605.0 0.0.3 @greensecurity/javascript-sdk"
|
|
34198
34198
|
};
|
|
34199
34199
|
});
|
|
34200
34200
|
|
|
@@ -35766,50 +35766,104 @@ var init_activestatus = __esm(() => {
|
|
|
35766
35766
|
})(ActiveStatus$ ||= {});
|
|
35767
35767
|
});
|
|
35768
35768
|
|
|
35769
|
+
// src/models/components/product.ts
|
|
35770
|
+
var Product$inboundSchema, Product$outboundSchema, Product$;
|
|
35771
|
+
var init_product = __esm(() => {
|
|
35772
|
+
init_lib();
|
|
35773
|
+
Product$inboundSchema = objectType({
|
|
35774
|
+
id: numberType().int().optional(),
|
|
35775
|
+
title: nullableType(stringType()).optional(),
|
|
35776
|
+
description: nullableType(stringType()).optional()
|
|
35777
|
+
});
|
|
35778
|
+
Product$outboundSchema = objectType({
|
|
35779
|
+
id: numberType().int().optional(),
|
|
35780
|
+
title: nullableType(stringType()).optional(),
|
|
35781
|
+
description: nullableType(stringType()).optional()
|
|
35782
|
+
});
|
|
35783
|
+
((Product$) => {
|
|
35784
|
+
Product$.inboundSchema = Product$inboundSchema;
|
|
35785
|
+
Product$.outboundSchema = Product$outboundSchema;
|
|
35786
|
+
})(Product$ ||= {});
|
|
35787
|
+
});
|
|
35788
|
+
|
|
35789
|
+
// src/models/components/productvariant.ts
|
|
35790
|
+
var ProductVariant$inboundSchema, ProductVariant$outboundSchema, ProductVariant$;
|
|
35791
|
+
var init_productvariant = __esm(() => {
|
|
35792
|
+
init_lib();
|
|
35793
|
+
ProductVariant$inboundSchema = objectType({
|
|
35794
|
+
id: numberType().int().optional(),
|
|
35795
|
+
amount: numberType().int().optional(),
|
|
35796
|
+
total: numberType().int().optional()
|
|
35797
|
+
});
|
|
35798
|
+
ProductVariant$outboundSchema = objectType({
|
|
35799
|
+
id: numberType().int().optional(),
|
|
35800
|
+
amount: numberType().int().optional(),
|
|
35801
|
+
total: numberType().int().optional()
|
|
35802
|
+
});
|
|
35803
|
+
((ProductVariant$) => {
|
|
35804
|
+
ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
|
|
35805
|
+
ProductVariant$.outboundSchema = ProductVariant$outboundSchema;
|
|
35806
|
+
})(ProductVariant$ ||= {});
|
|
35807
|
+
});
|
|
35808
|
+
|
|
35769
35809
|
// src/models/components/invoiceitem.ts
|
|
35770
|
-
var InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
|
|
35810
|
+
var Variant$inboundSchema, Variant$outboundSchema, Variant$, InvoiceItemProduct$inboundSchema, InvoiceItemProduct$outboundSchema, InvoiceItemProduct$, InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
|
|
35771
35811
|
var init_invoiceitem = __esm(() => {
|
|
35772
35812
|
init_lib();
|
|
35773
35813
|
init_primitives();
|
|
35814
|
+
init_product();
|
|
35815
|
+
init_productvariant();
|
|
35816
|
+
Variant$inboundSchema = unionType([ProductVariant$inboundSchema, numberType().int()]);
|
|
35817
|
+
Variant$outboundSchema = unionType([ProductVariant$outboundSchema, numberType().int()]);
|
|
35818
|
+
((Variant$) => {
|
|
35819
|
+
Variant$.inboundSchema = Variant$inboundSchema;
|
|
35820
|
+
Variant$.outboundSchema = Variant$outboundSchema;
|
|
35821
|
+
})(Variant$ ||= {});
|
|
35822
|
+
InvoiceItemProduct$inboundSchema = unionType([Product$inboundSchema, numberType().int()]);
|
|
35823
|
+
InvoiceItemProduct$outboundSchema = unionType([Product$outboundSchema, numberType().int()]);
|
|
35824
|
+
((InvoiceItemProduct$) => {
|
|
35825
|
+
InvoiceItemProduct$.inboundSchema = InvoiceItemProduct$inboundSchema;
|
|
35826
|
+
InvoiceItemProduct$.outboundSchema = InvoiceItemProduct$outboundSchema;
|
|
35827
|
+
})(InvoiceItemProduct$ ||= {});
|
|
35774
35828
|
InvoiceItem$inboundSchema = objectType({
|
|
35775
|
-
|
|
35829
|
+
id: numberType().int().optional(),
|
|
35776
35830
|
date_starts: nullableType(stringType()).optional(),
|
|
35777
35831
|
date_ends: nullableType(stringType()).optional(),
|
|
35778
35832
|
is_subscription: nullableType(booleanType()).optional(),
|
|
35779
35833
|
product_title: nullableType(stringType()).optional(),
|
|
35780
|
-
|
|
35834
|
+
title: nullableType(stringType()).optional(),
|
|
35781
35835
|
quantity: nullableType(numberType()).optional(),
|
|
35782
35836
|
unit_price: nullableType(numberType().int()).optional(),
|
|
35783
|
-
subtotal: nullableType(numberType().int()).optional()
|
|
35837
|
+
subtotal: nullableType(numberType().int()).optional(),
|
|
35838
|
+
variant: nullableType(unionType([ProductVariant$inboundSchema, numberType().int()])).optional(),
|
|
35839
|
+
product: nullableType(unionType([Product$inboundSchema, numberType().int()])).optional()
|
|
35784
35840
|
}).transform((v2) => {
|
|
35785
35841
|
return remap(v2, {
|
|
35786
|
-
item_id: "itemId",
|
|
35787
35842
|
date_starts: "dateStarts",
|
|
35788
35843
|
date_ends: "dateEnds",
|
|
35789
35844
|
is_subscription: "isSubscription",
|
|
35790
35845
|
product_title: "productTitle",
|
|
35791
|
-
item_title: "itemTitle",
|
|
35792
35846
|
unit_price: "unitPrice"
|
|
35793
35847
|
});
|
|
35794
35848
|
});
|
|
35795
35849
|
InvoiceItem$outboundSchema = objectType({
|
|
35796
|
-
|
|
35850
|
+
id: numberType().int().optional(),
|
|
35797
35851
|
dateStarts: nullableType(stringType()).optional(),
|
|
35798
35852
|
dateEnds: nullableType(stringType()).optional(),
|
|
35799
35853
|
isSubscription: nullableType(booleanType()).optional(),
|
|
35800
35854
|
productTitle: nullableType(stringType()).optional(),
|
|
35801
|
-
|
|
35855
|
+
title: nullableType(stringType()).optional(),
|
|
35802
35856
|
quantity: nullableType(numberType()).optional(),
|
|
35803
35857
|
unitPrice: nullableType(numberType().int()).optional(),
|
|
35804
|
-
subtotal: nullableType(numberType().int()).optional()
|
|
35858
|
+
subtotal: nullableType(numberType().int()).optional(),
|
|
35859
|
+
variant: nullableType(unionType([ProductVariant$outboundSchema, numberType().int()])).optional(),
|
|
35860
|
+
product: nullableType(unionType([Product$outboundSchema, numberType().int()])).optional()
|
|
35805
35861
|
}).transform((v2) => {
|
|
35806
35862
|
return remap(v2, {
|
|
35807
|
-
itemId: "item_id",
|
|
35808
35863
|
dateStarts: "date_starts",
|
|
35809
35864
|
dateEnds: "date_ends",
|
|
35810
35865
|
isSubscription: "is_subscription",
|
|
35811
35866
|
productTitle: "product_title",
|
|
35812
|
-
itemTitle: "item_title",
|
|
35813
35867
|
unitPrice: "unit_price"
|
|
35814
35868
|
});
|
|
35815
35869
|
});
|
|
@@ -35881,7 +35935,7 @@ var init_invoice = __esm(() => {
|
|
|
35881
35935
|
convenience_fee: nullableType(numberType()).optional(),
|
|
35882
35936
|
shipping: nullableType(numberType().int()).optional(),
|
|
35883
35937
|
discount: numberType().int().optional(),
|
|
35884
|
-
|
|
35938
|
+
lines: nullableType(arrayType(InvoiceItem$inboundSchema)).optional(),
|
|
35885
35939
|
transactions: nullableType(arrayType(InvoiceTransaction$inboundSchema)).optional()
|
|
35886
35940
|
}).transform((v2) => {
|
|
35887
35941
|
return remap(v2, {
|
|
@@ -35904,7 +35958,7 @@ var init_invoice = __esm(() => {
|
|
|
35904
35958
|
convenienceFee: nullableType(numberType()).optional(),
|
|
35905
35959
|
shipping: nullableType(numberType().int()).optional(),
|
|
35906
35960
|
discount: numberType().int().optional(),
|
|
35907
|
-
|
|
35961
|
+
lines: nullableType(arrayType(InvoiceItem$outboundSchema)).optional(),
|
|
35908
35962
|
transactions: nullableType(arrayType(InvoiceTransaction$outboundSchema)).optional()
|
|
35909
35963
|
}).transform((v2) => {
|
|
35910
35964
|
return remap(v2, {
|
|
@@ -36435,6 +36489,8 @@ var init_credential = __esm(() => {
|
|
|
36435
36489
|
credential_type: CredentialType$inboundSchema.optional(),
|
|
36436
36490
|
valid_for: ValidFor$inboundSchema.optional(),
|
|
36437
36491
|
status: CredentialStatus1$inboundSchema.optional(),
|
|
36492
|
+
has_pricing: booleanType().optional(),
|
|
36493
|
+
allow_decline: booleanType().optional(),
|
|
36438
36494
|
js_schema: nullableType(stringType()).optional(),
|
|
36439
36495
|
ui_schema: nullableType(stringType()).optional(),
|
|
36440
36496
|
behavior: nullableType(stringType()).optional(),
|
|
@@ -36445,6 +36501,8 @@ var init_credential = __esm(() => {
|
|
|
36445
36501
|
return remap(v2, {
|
|
36446
36502
|
credential_type: "credentialType",
|
|
36447
36503
|
valid_for: "validFor",
|
|
36504
|
+
has_pricing: "hasPricing",
|
|
36505
|
+
allow_decline: "allowDecline",
|
|
36448
36506
|
js_schema: "jsSchema",
|
|
36449
36507
|
ui_schema: "uiSchema",
|
|
36450
36508
|
credential_documents: "credentialDocuments",
|
|
@@ -36459,6 +36517,8 @@ var init_credential = __esm(() => {
|
|
|
36459
36517
|
credentialType: CredentialType$outboundSchema.optional(),
|
|
36460
36518
|
validFor: ValidFor$outboundSchema.optional(),
|
|
36461
36519
|
status: CredentialStatus1$outboundSchema.optional(),
|
|
36520
|
+
hasPricing: booleanType().optional(),
|
|
36521
|
+
allowDecline: booleanType().optional(),
|
|
36462
36522
|
jsSchema: nullableType(stringType()).optional(),
|
|
36463
36523
|
uiSchema: nullableType(stringType()).optional(),
|
|
36464
36524
|
behavior: nullableType(stringType()).optional(),
|
|
@@ -36469,6 +36529,8 @@ var init_credential = __esm(() => {
|
|
|
36469
36529
|
return remap(v2, {
|
|
36470
36530
|
credentialType: "credential_type",
|
|
36471
36531
|
validFor: "valid_for",
|
|
36532
|
+
hasPricing: "has_pricing",
|
|
36533
|
+
allowDecline: "allow_decline",
|
|
36472
36534
|
jsSchema: "js_schema",
|
|
36473
36535
|
uiSchema: "ui_schema",
|
|
36474
36536
|
credentialDocuments: "credential_documents",
|
|
@@ -36709,6 +36771,7 @@ var init_expand = __esm(() => {
|
|
|
36709
36771
|
FacilityWorkflow: "facility.workflow",
|
|
36710
36772
|
VendorUser: "vendor.user",
|
|
36711
36773
|
VendorVendorType: "vendor.vendor_type",
|
|
36774
|
+
VendorVendorJob: "vendor.vendor_job",
|
|
36712
36775
|
VendorPaymentProfile: "vendor.payment_profile",
|
|
36713
36776
|
VendorImageUrls: "vendor.image_urls",
|
|
36714
36777
|
VendorPrimaryFacility: "vendor.primary_facility",
|
|
@@ -36718,6 +36781,7 @@ var init_expand = __esm(() => {
|
|
|
36718
36781
|
VendorScrubsSubscription: "vendor.scrubs_subscription",
|
|
36719
36782
|
VendorPaymentResponsibility: "vendor.payment_responsibility",
|
|
36720
36783
|
VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires",
|
|
36784
|
+
VendorRegistrationData: "vendor.registration_data",
|
|
36721
36785
|
SupportArticleDescription: "support_article.description",
|
|
36722
36786
|
SupportArticlePublished: "support_article.published",
|
|
36723
36787
|
SupportArticleNotes: "support_article.notes",
|
|
@@ -36738,7 +36802,9 @@ var init_expand = __esm(() => {
|
|
|
36738
36802
|
VendorCredentialVendorCredentialDefaultStatus: "vendor_credential.vendor_credential_default_status",
|
|
36739
36803
|
VendorCredentialVendorCredentialDataRequests: "vendor_credential.vendor_credential_data_requests",
|
|
36740
36804
|
VendorCredentialCredentialVariants: "vendor_credential.credential_variants",
|
|
36741
|
-
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"
|
|
36742
36808
|
};
|
|
36743
36809
|
Expand$inboundSchema = nativeEnumType(Expand);
|
|
36744
36810
|
Expand$outboundSchema = Expand$inboundSchema;
|
|
@@ -37506,7 +37572,9 @@ var init_zoneconfig = __esm(() => {
|
|
|
37506
37572
|
auto_approve_visit_requests: nullableType(booleanType()).optional(),
|
|
37507
37573
|
auto_checkin_visit_requests: nullableType(booleanType()).optional(),
|
|
37508
37574
|
auto_approve_visit_requests_with_flags: nullableType(booleanType()).optional(),
|
|
37509
|
-
auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional()
|
|
37575
|
+
auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional(),
|
|
37576
|
+
company_name_field: stringType().optional(),
|
|
37577
|
+
email_field: stringType().optional()
|
|
37510
37578
|
}).transform((v2) => {
|
|
37511
37579
|
return remap(v2, {
|
|
37512
37580
|
ask_questions_visit_requests: "askQuestionsVisitRequests",
|
|
@@ -37516,7 +37584,9 @@ var init_zoneconfig = __esm(() => {
|
|
|
37516
37584
|
auto_approve_visit_requests: "autoApproveVisitRequests",
|
|
37517
37585
|
auto_checkin_visit_requests: "autoCheckinVisitRequests",
|
|
37518
37586
|
auto_approve_visit_requests_with_flags: "autoApproveVisitRequestsWithFlags",
|
|
37519
|
-
auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags"
|
|
37587
|
+
auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags",
|
|
37588
|
+
company_name_field: "companyNameField",
|
|
37589
|
+
email_field: "emailField"
|
|
37520
37590
|
});
|
|
37521
37591
|
});
|
|
37522
37592
|
VisitRequestPolicy$outboundSchema = objectType({
|
|
@@ -37527,7 +37597,9 @@ var init_zoneconfig = __esm(() => {
|
|
|
37527
37597
|
autoApproveVisitRequests: nullableType(booleanType()).optional(),
|
|
37528
37598
|
autoCheckinVisitRequests: nullableType(booleanType()).optional(),
|
|
37529
37599
|
autoApproveVisitRequestsWithFlags: nullableType(booleanType()).optional(),
|
|
37530
|
-
autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional()
|
|
37600
|
+
autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional(),
|
|
37601
|
+
companyNameField: stringType().optional(),
|
|
37602
|
+
emailField: stringType().optional()
|
|
37531
37603
|
}).transform((v2) => {
|
|
37532
37604
|
return remap(v2, {
|
|
37533
37605
|
askQuestionsVisitRequests: "ask_questions_visit_requests",
|
|
@@ -37537,7 +37609,9 @@ var init_zoneconfig = __esm(() => {
|
|
|
37537
37609
|
autoApproveVisitRequests: "auto_approve_visit_requests",
|
|
37538
37610
|
autoCheckinVisitRequests: "auto_checkin_visit_requests",
|
|
37539
37611
|
autoApproveVisitRequestsWithFlags: "auto_approve_visit_requests_with_flags",
|
|
37540
|
-
autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags"
|
|
37612
|
+
autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags",
|
|
37613
|
+
companyNameField: "company_name_field",
|
|
37614
|
+
emailField: "email_field"
|
|
37541
37615
|
});
|
|
37542
37616
|
});
|
|
37543
37617
|
((VisitRequestPolicy$) => {
|
|
@@ -38152,26 +38226,6 @@ var init_passwordrequiredresponse = __esm(() => {
|
|
|
38152
38226
|
})(PasswordRequiredResponse$ ||= {});
|
|
38153
38227
|
});
|
|
38154
38228
|
|
|
38155
|
-
// src/models/components/productvariant.ts
|
|
38156
|
-
var ProductVariant$inboundSchema, ProductVariant$outboundSchema, ProductVariant$;
|
|
38157
|
-
var init_productvariant = __esm(() => {
|
|
38158
|
-
init_lib();
|
|
38159
|
-
ProductVariant$inboundSchema = objectType({
|
|
38160
|
-
id: numberType().int().optional(),
|
|
38161
|
-
amount: numberType().int().optional(),
|
|
38162
|
-
total: numberType().int().optional()
|
|
38163
|
-
});
|
|
38164
|
-
ProductVariant$outboundSchema = objectType({
|
|
38165
|
-
id: numberType().int().optional(),
|
|
38166
|
-
amount: numberType().int().optional(),
|
|
38167
|
-
total: numberType().int().optional()
|
|
38168
|
-
});
|
|
38169
|
-
((ProductVariant$) => {
|
|
38170
|
-
ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
|
|
38171
|
-
ProductVariant$.outboundSchema = ProductVariant$outboundSchema;
|
|
38172
|
-
})(ProductVariant$ ||= {});
|
|
38173
|
-
});
|
|
38174
|
-
|
|
38175
38229
|
// src/models/components/samlloginrequiredresponse.ts
|
|
38176
38230
|
var SamlLoginRequiredResponseRequires, SamlLoginRequiredResponseRequires$inboundSchema, SamlLoginRequiredResponseRequires$outboundSchema, SamlLoginRequiredResponseRequires$, SamlLoginRequiredResponse$inboundSchema, SamlLoginRequiredResponse$outboundSchema, SamlLoginRequiredResponse$;
|
|
38177
38231
|
var init_samlloginrequiredresponse = __esm(() => {
|
|
@@ -38691,8 +38745,26 @@ var init_userlocation = __esm(() => {
|
|
|
38691
38745
|
})(UserLocation$ ||= {});
|
|
38692
38746
|
});
|
|
38693
38747
|
|
|
38748
|
+
// src/models/components/vendorjobtitle.ts
|
|
38749
|
+
var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
|
|
38750
|
+
var init_vendorjobtitle = __esm(() => {
|
|
38751
|
+
init_lib();
|
|
38752
|
+
VendorJobTitle$inboundSchema = objectType({
|
|
38753
|
+
id: numberType().int(),
|
|
38754
|
+
job: stringType()
|
|
38755
|
+
});
|
|
38756
|
+
VendorJobTitle$outboundSchema = objectType({
|
|
38757
|
+
id: numberType().int(),
|
|
38758
|
+
job: stringType()
|
|
38759
|
+
});
|
|
38760
|
+
((VendorJobTitle$) => {
|
|
38761
|
+
VendorJobTitle$.inboundSchema = VendorJobTitle$inboundSchema;
|
|
38762
|
+
VendorJobTitle$.outboundSchema = VendorJobTitle$outboundSchema;
|
|
38763
|
+
})(VendorJobTitle$ ||= {});
|
|
38764
|
+
});
|
|
38765
|
+
|
|
38694
38766
|
// src/models/components/vendor.ts
|
|
38695
|
-
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$;
|
|
38767
|
+
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$;
|
|
38696
38768
|
var init_vendor = __esm(() => {
|
|
38697
38769
|
init_lib();
|
|
38698
38770
|
init_primitives();
|
|
@@ -38703,6 +38775,7 @@ var init_vendor = __esm(() => {
|
|
|
38703
38775
|
init_subscription();
|
|
38704
38776
|
init_supervisor();
|
|
38705
38777
|
init_userlocation();
|
|
38778
|
+
init_vendorjobtitle();
|
|
38706
38779
|
One$inboundSchema = objectType({
|
|
38707
38780
|
id: numberType().int().optional(),
|
|
38708
38781
|
first_name: nullableType(stringType()).optional(),
|
|
@@ -38759,6 +38832,12 @@ var init_vendor = __esm(() => {
|
|
|
38759
38832
|
VendorUser$.inboundSchema = VendorUser$inboundSchema;
|
|
38760
38833
|
VendorUser$.outboundSchema = VendorUser$outboundSchema;
|
|
38761
38834
|
})(VendorUser$ ||= {});
|
|
38835
|
+
VendorJob$inboundSchema = unionType([VendorJobTitle$inboundSchema, numberType().int()]);
|
|
38836
|
+
VendorJob$outboundSchema = unionType([VendorJobTitle$outboundSchema, numberType().int()]);
|
|
38837
|
+
((VendorJob$) => {
|
|
38838
|
+
VendorJob$.inboundSchema = VendorJob$inboundSchema;
|
|
38839
|
+
VendorJob$.outboundSchema = VendorJob$outboundSchema;
|
|
38840
|
+
})(VendorJob$ ||= {});
|
|
38762
38841
|
VendorType1$inboundSchema = objectType({
|
|
38763
38842
|
id: numberType().int().optional(),
|
|
38764
38843
|
name: stringType().optional()
|
|
@@ -38937,6 +39016,8 @@ var init_vendor = __esm(() => {
|
|
|
38937
39016
|
send_weekly_summary_email: nullableType(booleanType()).optional(),
|
|
38938
39017
|
title: nullableType(stringType()).optional(),
|
|
38939
39018
|
user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
|
|
39019
|
+
registration_data: nullableType(recordType(anyType())).optional(),
|
|
39020
|
+
vendor_job: nullableType(unionType([VendorJobTitle$inboundSchema, numberType().int()])).optional(),
|
|
38940
39021
|
vendor_type: nullableType(unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()])).optional(),
|
|
38941
39022
|
supervisor: nullableType(Supervisor$inboundSchema).optional(),
|
|
38942
39023
|
qr_code: nullableType(stringType()).optional(),
|
|
@@ -38961,6 +39042,8 @@ var init_vendor = __esm(() => {
|
|
|
38961
39042
|
return remap(v2, {
|
|
38962
39043
|
email_recepient: "emailRecepient",
|
|
38963
39044
|
send_weekly_summary_email: "sendWeeklySummaryEmail",
|
|
39045
|
+
registration_data: "registrationData",
|
|
39046
|
+
vendor_job: "vendorJob",
|
|
38964
39047
|
vendor_type: "vendorType",
|
|
38965
39048
|
qr_code: "qrCode",
|
|
38966
39049
|
head_shot: "headShot",
|
|
@@ -38981,6 +39064,8 @@ var init_vendor = __esm(() => {
|
|
|
38981
39064
|
sendWeeklySummaryEmail: nullableType(booleanType()).optional(),
|
|
38982
39065
|
title: nullableType(stringType()).optional(),
|
|
38983
39066
|
user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
|
|
39067
|
+
registrationData: nullableType(recordType(anyType())).optional(),
|
|
39068
|
+
vendorJob: nullableType(unionType([VendorJobTitle$outboundSchema, numberType().int()])).optional(),
|
|
38984
39069
|
vendorType: nullableType(unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()])).optional(),
|
|
38985
39070
|
supervisor: nullableType(Supervisor$outboundSchema).optional(),
|
|
38986
39071
|
qrCode: nullableType(stringType()).optional(),
|
|
@@ -39005,6 +39090,8 @@ var init_vendor = __esm(() => {
|
|
|
39005
39090
|
return remap(v2, {
|
|
39006
39091
|
emailRecepient: "email_recepient",
|
|
39007
39092
|
sendWeeklySummaryEmail: "send_weekly_summary_email",
|
|
39093
|
+
registrationData: "registration_data",
|
|
39094
|
+
vendorJob: "vendor_job",
|
|
39008
39095
|
vendorType: "vendor_type",
|
|
39009
39096
|
qrCode: "qr_code",
|
|
39010
39097
|
headShot: "head_shot",
|
|
@@ -39260,9 +39347,8 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39260
39347
|
numberType().int()
|
|
39261
39348
|
])).optional(),
|
|
39262
39349
|
date_uploaded: nullableType(stringType()).optional(),
|
|
39263
|
-
uploaded_by_id: nullableType(numberType().int()).optional(),
|
|
39264
39350
|
is_decline: nullableType(booleanType()).optional(),
|
|
39265
|
-
file: lazyType(() => VendorCredentialFileFile$inboundSchema).optional(),
|
|
39351
|
+
file: nullableType(lazyType(() => VendorCredentialFileFile$inboundSchema)).optional(),
|
|
39266
39352
|
processed: booleanType().optional(),
|
|
39267
39353
|
name: nullableType(stringType()).optional(),
|
|
39268
39354
|
credential_document: nullableType(unionType([CredentialDocument$inboundSchema, numberType().int()])).optional()
|
|
@@ -39270,7 +39356,6 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39270
39356
|
return remap(v2, {
|
|
39271
39357
|
vendor_credential: "vendorCredential",
|
|
39272
39358
|
date_uploaded: "dateUploaded",
|
|
39273
|
-
uploaded_by_id: "uploadedById",
|
|
39274
39359
|
is_decline: "isDecline",
|
|
39275
39360
|
credential_document: "credentialDocument"
|
|
39276
39361
|
});
|
|
@@ -39282,9 +39367,8 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39282
39367
|
numberType().int()
|
|
39283
39368
|
])).optional(),
|
|
39284
39369
|
dateUploaded: nullableType(stringType()).optional(),
|
|
39285
|
-
uploadedById: nullableType(numberType().int()).optional(),
|
|
39286
39370
|
isDecline: nullableType(booleanType()).optional(),
|
|
39287
|
-
file: lazyType(() => VendorCredentialFileFile$outboundSchema).optional(),
|
|
39371
|
+
file: nullableType(lazyType(() => VendorCredentialFileFile$outboundSchema)).optional(),
|
|
39288
39372
|
processed: booleanType().optional(),
|
|
39289
39373
|
name: nullableType(stringType()).optional(),
|
|
39290
39374
|
credentialDocument: nullableType(unionType([CredentialDocument$outboundSchema, numberType().int()])).optional()
|
|
@@ -39292,7 +39376,6 @@ var init_vendorcredentialfile = __esm(() => {
|
|
|
39292
39376
|
return remap(v2, {
|
|
39293
39377
|
vendorCredential: "vendor_credential",
|
|
39294
39378
|
dateUploaded: "date_uploaded",
|
|
39295
|
-
uploadedById: "uploaded_by_id",
|
|
39296
39379
|
isDecline: "is_decline",
|
|
39297
39380
|
credentialDocument: "credential_document"
|
|
39298
39381
|
});
|
|
@@ -39403,6 +39486,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39403
39486
|
date_expires: nullableType(stringType()).optional(),
|
|
39404
39487
|
notes: nullableType(stringType()).optional(),
|
|
39405
39488
|
expedited: booleanType().optional(),
|
|
39489
|
+
json_data: nullableType(stringType()).optional(),
|
|
39406
39490
|
credential: nullableType(unionType([Credential$inboundSchema, numberType().int()])).optional(),
|
|
39407
39491
|
vendor: nullableType(unionType([Vendor$inboundSchema, numberType().int()])).optional(),
|
|
39408
39492
|
invoice: nullableType(unionType([Invoice$inboundSchema, numberType().int()])).optional(),
|
|
@@ -39422,6 +39506,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39422
39506
|
return remap(v2, {
|
|
39423
39507
|
date_due: "dateDue",
|
|
39424
39508
|
date_expires: "dateExpires",
|
|
39509
|
+
json_data: "jsonData",
|
|
39425
39510
|
vendor_credential_files: "vendorCredentialFiles",
|
|
39426
39511
|
latest_vendor_credential_id: "latestVendorCredentialId",
|
|
39427
39512
|
previously_approved: "previouslyApproved",
|
|
@@ -39444,6 +39529,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39444
39529
|
dateExpires: nullableType(stringType()).optional(),
|
|
39445
39530
|
notes: nullableType(stringType()).optional(),
|
|
39446
39531
|
expedited: booleanType().optional(),
|
|
39532
|
+
jsonData: nullableType(stringType()).optional(),
|
|
39447
39533
|
credential: nullableType(unionType([Credential$outboundSchema, numberType().int()])).optional(),
|
|
39448
39534
|
vendor: nullableType(unionType([Vendor$outboundSchema, numberType().int()])).optional(),
|
|
39449
39535
|
invoice: nullableType(unionType([Invoice$outboundSchema, numberType().int()])).optional(),
|
|
@@ -39463,6 +39549,7 @@ var init_vendorcredentialsummary = __esm(() => {
|
|
|
39463
39549
|
return remap(v2, {
|
|
39464
39550
|
dateDue: "date_due",
|
|
39465
39551
|
dateExpires: "date_expires",
|
|
39552
|
+
jsonData: "json_data",
|
|
39466
39553
|
vendorCredentialFiles: "vendor_credential_files",
|
|
39467
39554
|
latestVendorCredentialId: "latest_vendor_credential_id",
|
|
39468
39555
|
previouslyApproved: "previously_approved",
|
|
@@ -39671,24 +39758,6 @@ var init_vendorfacilitystatusview = __esm(() => {
|
|
|
39671
39758
|
})(VendorFacilityStatusView$ ||= {});
|
|
39672
39759
|
});
|
|
39673
39760
|
|
|
39674
|
-
// src/models/components/vendorjobtitle.ts
|
|
39675
|
-
var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
|
|
39676
|
-
var init_vendorjobtitle = __esm(() => {
|
|
39677
|
-
init_lib();
|
|
39678
|
-
VendorJobTitle$inboundSchema = objectType({
|
|
39679
|
-
id: numberType().int(),
|
|
39680
|
-
job: stringType()
|
|
39681
|
-
});
|
|
39682
|
-
VendorJobTitle$outboundSchema = objectType({
|
|
39683
|
-
id: numberType().int(),
|
|
39684
|
-
job: stringType()
|
|
39685
|
-
});
|
|
39686
|
-
((VendorJobTitle$) => {
|
|
39687
|
-
VendorJobTitle$.inboundSchema = VendorJobTitle$inboundSchema;
|
|
39688
|
-
VendorJobTitle$.outboundSchema = VendorJobTitle$outboundSchema;
|
|
39689
|
-
})(VendorJobTitle$ ||= {});
|
|
39690
|
-
});
|
|
39691
|
-
|
|
39692
39761
|
// src/models/components/vendormanagedbycompany.ts
|
|
39693
39762
|
var VendorManagedByCompanyCompany$inboundSchema, VendorManagedByCompanyCompany$outboundSchema, VendorManagedByCompanyCompany$, VendorManagedByCompany$inboundSchema, VendorManagedByCompany$outboundSchema, VendorManagedByCompany$;
|
|
39694
39763
|
var init_vendormanagedbycompany = __esm(() => {
|
|
@@ -40048,6 +40117,7 @@ var init_components = __esm(() => {
|
|
|
40048
40117
|
init_mfarequiredresponse();
|
|
40049
40118
|
init_pager();
|
|
40050
40119
|
init_passwordrequiredresponse();
|
|
40120
|
+
init_product();
|
|
40051
40121
|
init_productvariant();
|
|
40052
40122
|
init_samlloginrequiredresponse();
|
|
40053
40123
|
init_scantype();
|
|
@@ -40393,6 +40463,36 @@ var init_getvendorcredentialdetails = __esm(() => {
|
|
|
40393
40463
|
})(GetVendorCredentialDetailsResponseBody$ ||= {});
|
|
40394
40464
|
});
|
|
40395
40465
|
|
|
40466
|
+
// src/models/operations/getvendorcredentialfile.ts
|
|
40467
|
+
var GetVendorCredentialFileRequest$inboundSchema, GetVendorCredentialFileRequest$outboundSchema, GetVendorCredentialFileRequest$;
|
|
40468
|
+
var init_getvendorcredentialfile = __esm(() => {
|
|
40469
|
+
init_lib();
|
|
40470
|
+
init_primitives();
|
|
40471
|
+
init_components();
|
|
40472
|
+
GetVendorCredentialFileRequest$inboundSchema = objectType({
|
|
40473
|
+
vendor_credential_id: numberType().int(),
|
|
40474
|
+
id: numberType().int(),
|
|
40475
|
+
expand: arrayType(Expand$inboundSchema).optional()
|
|
40476
|
+
}).transform((v2) => {
|
|
40477
|
+
return remap(v2, {
|
|
40478
|
+
vendor_credential_id: "vendorCredentialId"
|
|
40479
|
+
});
|
|
40480
|
+
});
|
|
40481
|
+
GetVendorCredentialFileRequest$outboundSchema = objectType({
|
|
40482
|
+
vendorCredentialId: numberType().int(),
|
|
40483
|
+
id: numberType().int(),
|
|
40484
|
+
expand: arrayType(Expand$outboundSchema).optional()
|
|
40485
|
+
}).transform((v2) => {
|
|
40486
|
+
return remap(v2, {
|
|
40487
|
+
vendorCredentialId: "vendor_credential_id"
|
|
40488
|
+
});
|
|
40489
|
+
});
|
|
40490
|
+
((GetVendorCredentialFileRequest$) => {
|
|
40491
|
+
GetVendorCredentialFileRequest$.inboundSchema = GetVendorCredentialFileRequest$inboundSchema;
|
|
40492
|
+
GetVendorCredentialFileRequest$.outboundSchema = GetVendorCredentialFileRequest$outboundSchema;
|
|
40493
|
+
})(GetVendorCredentialFileRequest$ ||= {});
|
|
40494
|
+
});
|
|
40495
|
+
|
|
40396
40496
|
// src/models/operations/getvendorinvoicedetails.ts
|
|
40397
40497
|
var GetVendorInvoiceDetailsRequest$inboundSchema, GetVendorInvoiceDetailsRequest$outboundSchema, GetVendorInvoiceDetailsRequest$;
|
|
40398
40498
|
var init_getvendorinvoicedetails = __esm(() => {
|
|
@@ -42331,6 +42431,7 @@ var init_operations = __esm(() => {
|
|
|
42331
42431
|
init_getsupportarticle();
|
|
42332
42432
|
init_getuserbyid();
|
|
42333
42433
|
init_getvendorcredentialdetails();
|
|
42434
|
+
init_getvendorcredentialfile();
|
|
42334
42435
|
init_getvendorinvoicedetails();
|
|
42335
42436
|
init_getvendorsdetails();
|
|
42336
42437
|
init_getwebhookendpoint();
|
|
@@ -44560,11 +44661,127 @@ Available \`expand\` scopes are:
|
|
|
44560
44661
|
};
|
|
44561
44662
|
});
|
|
44562
44663
|
|
|
44563
|
-
// src/funcs/
|
|
44564
|
-
function
|
|
44664
|
+
// src/funcs/vendorsGetVendorCredentialFile.ts
|
|
44665
|
+
function vendorsGetVendorCredentialFile(client, request, options) {
|
|
44565
44666
|
return new APIPromise($do20(client, request, options));
|
|
44566
44667
|
}
|
|
44567
44668
|
async function $do20(client, request, options) {
|
|
44669
|
+
const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44670
|
+
if (!parsed.ok) {
|
|
44671
|
+
return [parsed, { status: "invalid" }];
|
|
44672
|
+
}
|
|
44673
|
+
const payload = parsed.value;
|
|
44674
|
+
const body = null;
|
|
44675
|
+
const pathParams = {
|
|
44676
|
+
id: encodeSimple("id", payload.id, {
|
|
44677
|
+
explode: false,
|
|
44678
|
+
charEncoding: "percent"
|
|
44679
|
+
}),
|
|
44680
|
+
vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
|
|
44681
|
+
};
|
|
44682
|
+
const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/files/{id}")(pathParams);
|
|
44683
|
+
const query = encodeFormQuery({
|
|
44684
|
+
expand: payload.expand
|
|
44685
|
+
}, { explode: false });
|
|
44686
|
+
const headers = new Headers(compactMap({
|
|
44687
|
+
Accept: "application/json"
|
|
44688
|
+
}));
|
|
44689
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
44690
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
44691
|
+
const context = {
|
|
44692
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
44693
|
+
operationID: "getVendorCredentialFile",
|
|
44694
|
+
oAuth2Scopes: [],
|
|
44695
|
+
resolvedSecurity: requestSecurity,
|
|
44696
|
+
securitySource: client._options.security,
|
|
44697
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
44698
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
44699
|
+
};
|
|
44700
|
+
const requestRes = client._createRequest(context, {
|
|
44701
|
+
security: requestSecurity,
|
|
44702
|
+
method: "GET",
|
|
44703
|
+
baseURL: options?.serverURL,
|
|
44704
|
+
path,
|
|
44705
|
+
headers,
|
|
44706
|
+
query,
|
|
44707
|
+
body,
|
|
44708
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
44709
|
+
}, options);
|
|
44710
|
+
if (!requestRes.ok) {
|
|
44711
|
+
return [requestRes, { status: "invalid" }];
|
|
44712
|
+
}
|
|
44713
|
+
const req = requestRes.value;
|
|
44714
|
+
const doResult = await client._do(req, {
|
|
44715
|
+
context,
|
|
44716
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
44717
|
+
retryConfig: context.retryConfig,
|
|
44718
|
+
retryCodes: context.retryCodes
|
|
44719
|
+
});
|
|
44720
|
+
if (!doResult.ok) {
|
|
44721
|
+
return [doResult, { status: "request-error", request: req }];
|
|
44722
|
+
}
|
|
44723
|
+
const response = doResult.value;
|
|
44724
|
+
const responseFields = {
|
|
44725
|
+
HttpMeta: { Response: response, Request: req }
|
|
44726
|
+
};
|
|
44727
|
+
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 });
|
|
44728
|
+
if (!result.ok) {
|
|
44729
|
+
return [result, { status: "complete", request: req, response }];
|
|
44730
|
+
}
|
|
44731
|
+
return [result, { status: "complete", request: req, response }];
|
|
44732
|
+
}
|
|
44733
|
+
var init_vendorsGetVendorCredentialFile = __esm(() => {
|
|
44734
|
+
init_encodings();
|
|
44735
|
+
init_matchers();
|
|
44736
|
+
init_primitives();
|
|
44737
|
+
init_schemas();
|
|
44738
|
+
init_security();
|
|
44739
|
+
init_url();
|
|
44740
|
+
init_components();
|
|
44741
|
+
init_errors();
|
|
44742
|
+
init_operations();
|
|
44743
|
+
init_async();
|
|
44744
|
+
});
|
|
44745
|
+
|
|
44746
|
+
// src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
|
|
44747
|
+
var args19, tool$vendorsGetVendorCredentialFile;
|
|
44748
|
+
var init_vendorsGetVendorCredentialFile2 = __esm(() => {
|
|
44749
|
+
init_vendorsGetVendorCredentialFile();
|
|
44750
|
+
init_operations();
|
|
44751
|
+
init_tools();
|
|
44752
|
+
args19 = {
|
|
44753
|
+
request: GetVendorCredentialFileRequest$inboundSchema
|
|
44754
|
+
};
|
|
44755
|
+
tool$vendorsGetVendorCredentialFile = {
|
|
44756
|
+
name: "vendors-get-vendor-credential-file",
|
|
44757
|
+
description: `Get vendor credential file
|
|
44758
|
+
|
|
44759
|
+
Retrieve an individual vendor credential file.
|
|
44760
|
+
|
|
44761
|
+
Available \`expand\` scopes are:
|
|
44762
|
+
|
|
44763
|
+
- vendor_credential_file.vendor_credential
|
|
44764
|
+
- vendor_credential_file.credential_document`,
|
|
44765
|
+
args: args19,
|
|
44766
|
+
tool: async (client, args20, ctx) => {
|
|
44767
|
+
const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44768
|
+
if (!result.ok) {
|
|
44769
|
+
return {
|
|
44770
|
+
content: [{ type: "text", text: result.error.message }],
|
|
44771
|
+
isError: true
|
|
44772
|
+
};
|
|
44773
|
+
}
|
|
44774
|
+
const value = result.value;
|
|
44775
|
+
return formatResult(value, apiCall);
|
|
44776
|
+
}
|
|
44777
|
+
};
|
|
44778
|
+
});
|
|
44779
|
+
|
|
44780
|
+
// src/funcs/vendorsGetVendorInvoiceDetails.ts
|
|
44781
|
+
function vendorsGetVendorInvoiceDetails(client, request, options) {
|
|
44782
|
+
return new APIPromise($do21(client, request, options));
|
|
44783
|
+
}
|
|
44784
|
+
async function $do21(client, request, options) {
|
|
44568
44785
|
const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44569
44786
|
if (!parsed.ok) {
|
|
44570
44787
|
return [parsed, { status: "invalid" }];
|
|
@@ -44642,12 +44859,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
|
|
|
44642
44859
|
});
|
|
44643
44860
|
|
|
44644
44861
|
// src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
|
|
44645
|
-
var
|
|
44862
|
+
var args20, tool$vendorsGetVendorInvoiceDetails;
|
|
44646
44863
|
var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
|
|
44647
44864
|
init_vendorsGetVendorInvoiceDetails();
|
|
44648
44865
|
init_operations();
|
|
44649
44866
|
init_tools();
|
|
44650
|
-
|
|
44867
|
+
args20 = {
|
|
44651
44868
|
request: GetVendorInvoiceDetailsRequest$inboundSchema
|
|
44652
44869
|
};
|
|
44653
44870
|
tool$vendorsGetVendorInvoiceDetails = {
|
|
@@ -44660,9 +44877,9 @@ Available \`expand\` scopes are:
|
|
|
44660
44877
|
|
|
44661
44878
|
invoice.line_items
|
|
44662
44879
|
invoice.invoice_transactions`,
|
|
44663
|
-
args:
|
|
44664
|
-
tool: async (client,
|
|
44665
|
-
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client,
|
|
44880
|
+
args: args20,
|
|
44881
|
+
tool: async (client, args21, ctx) => {
|
|
44882
|
+
const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44666
44883
|
if (!result.ok) {
|
|
44667
44884
|
return {
|
|
44668
44885
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44677,9 +44894,9 @@ invoice.invoice_transactions`,
|
|
|
44677
44894
|
|
|
44678
44895
|
// src/funcs/vendorsGetVendorsDetails.ts
|
|
44679
44896
|
function vendorsGetVendorsDetails(client, request, options) {
|
|
44680
|
-
return new APIPromise($
|
|
44897
|
+
return new APIPromise($do22(client, request, options));
|
|
44681
44898
|
}
|
|
44682
|
-
async function $
|
|
44899
|
+
async function $do22(client, request, options) {
|
|
44683
44900
|
const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44684
44901
|
if (!parsed.ok) {
|
|
44685
44902
|
return [parsed, { status: "invalid" }];
|
|
@@ -44757,12 +44974,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
|
|
|
44757
44974
|
});
|
|
44758
44975
|
|
|
44759
44976
|
// src/mcp-server/tools/vendorsGetVendorsDetails.ts
|
|
44760
|
-
var
|
|
44977
|
+
var args21, tool$vendorsGetVendorsDetails;
|
|
44761
44978
|
var init_vendorsGetVendorsDetails2 = __esm(() => {
|
|
44762
44979
|
init_vendorsGetVendorsDetails();
|
|
44763
44980
|
init_operations();
|
|
44764
44981
|
init_tools();
|
|
44765
|
-
|
|
44982
|
+
args21 = {
|
|
44766
44983
|
request: GetVendorsDetailsRequest$inboundSchema
|
|
44767
44984
|
};
|
|
44768
44985
|
tool$vendorsGetVendorsDetails = {
|
|
@@ -44775,6 +44992,7 @@ Available \`expand\` scopes are:
|
|
|
44775
44992
|
|
|
44776
44993
|
vendor.user
|
|
44777
44994
|
vendor.vendor_type
|
|
44995
|
+
vendor.vendor_job
|
|
44778
44996
|
vendor.image_urls
|
|
44779
44997
|
vendor.payment_profile
|
|
44780
44998
|
vendor.primary_facility
|
|
@@ -44783,10 +45001,11 @@ vendor.company
|
|
|
44783
45001
|
vendor.credentialing_subscription
|
|
44784
45002
|
vendor.scrubs_subscription
|
|
44785
45003
|
vendor.payment_responsibility
|
|
44786
|
-
vendor.background_check_date_expires
|
|
44787
|
-
|
|
44788
|
-
|
|
44789
|
-
|
|
45004
|
+
vendor.background_check_date_expires
|
|
45005
|
+
vendor.registration_data`,
|
|
45006
|
+
args: args21,
|
|
45007
|
+
tool: async (client, args22, ctx) => {
|
|
45008
|
+
const [result, apiCall] = await vendorsGetVendorsDetails(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44790
45009
|
if (!result.ok) {
|
|
44791
45010
|
return {
|
|
44792
45011
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44801,9 +45020,9 @@ vendor.background_check_date_expires`,
|
|
|
44801
45020
|
|
|
44802
45021
|
// src/funcs/vendorsListVendorAdditionalFacilityFields.ts
|
|
44803
45022
|
function vendorsListVendorAdditionalFacilityFields(client, request, options) {
|
|
44804
|
-
return new APIPromise($
|
|
45023
|
+
return new APIPromise($do23(client, request, options));
|
|
44805
45024
|
}
|
|
44806
|
-
async function $
|
|
45025
|
+
async function $do23(client, request, options) {
|
|
44807
45026
|
const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44808
45027
|
if (!parsed.ok) {
|
|
44809
45028
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -44913,12 +45132,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
|
|
|
44913
45132
|
});
|
|
44914
45133
|
|
|
44915
45134
|
// src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
|
|
44916
|
-
var
|
|
45135
|
+
var args22, tool$vendorsListVendorAdditionalFacilityFields;
|
|
44917
45136
|
var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
44918
45137
|
init_vendorsListVendorAdditionalFacilityFields();
|
|
44919
45138
|
init_operations();
|
|
44920
45139
|
init_tools();
|
|
44921
|
-
|
|
45140
|
+
args22 = {
|
|
44922
45141
|
request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
|
|
44923
45142
|
};
|
|
44924
45143
|
tool$vendorsListVendorAdditionalFacilityFields = {
|
|
@@ -44926,9 +45145,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
|
|
|
44926
45145
|
description: `List of vendor's additional facility fields
|
|
44927
45146
|
|
|
44928
45147
|
List of vendor's additional facility fields`,
|
|
44929
|
-
args:
|
|
44930
|
-
tool: async (client,
|
|
44931
|
-
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client,
|
|
45148
|
+
args: args22,
|
|
45149
|
+
tool: async (client, args23, ctx) => {
|
|
45150
|
+
const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44932
45151
|
if (!result.ok) {
|
|
44933
45152
|
return {
|
|
44934
45153
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44943,9 +45162,9 @@ List of vendor's additional facility fields`,
|
|
|
44943
45162
|
|
|
44944
45163
|
// src/funcs/vendorsListVendorCredentials.ts
|
|
44945
45164
|
function vendorsListVendorCredentials(client, request, options) {
|
|
44946
|
-
return new APIPromise($
|
|
45165
|
+
return new APIPromise($do24(client, request, options));
|
|
44947
45166
|
}
|
|
44948
|
-
async function $
|
|
45167
|
+
async function $do24(client, request, options) {
|
|
44949
45168
|
const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
44950
45169
|
if (!parsed.ok) {
|
|
44951
45170
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45063,12 +45282,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
|
|
|
45063
45282
|
});
|
|
45064
45283
|
|
|
45065
45284
|
// src/mcp-server/tools/vendorsListVendorCredentials.ts
|
|
45066
|
-
var
|
|
45285
|
+
var args23, tool$vendorsListVendorCredentials;
|
|
45067
45286
|
var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
45068
45287
|
init_vendorsListVendorCredentials();
|
|
45069
45288
|
init_operations();
|
|
45070
45289
|
init_tools();
|
|
45071
|
-
|
|
45290
|
+
args23 = {
|
|
45072
45291
|
request: ListVendorCredentialsRequest$inboundSchema
|
|
45073
45292
|
};
|
|
45074
45293
|
tool$vendorsListVendorCredentials = {
|
|
@@ -45076,9 +45295,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
|
|
|
45076
45295
|
description: `List Vendor Credentials
|
|
45077
45296
|
|
|
45078
45297
|
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
45079
|
-
args:
|
|
45080
|
-
tool: async (client,
|
|
45081
|
-
const [result, apiCall] = await vendorsListVendorCredentials(client,
|
|
45298
|
+
args: args23,
|
|
45299
|
+
tool: async (client, args24, ctx) => {
|
|
45300
|
+
const [result, apiCall] = await vendorsListVendorCredentials(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45082
45301
|
if (!result.ok) {
|
|
45083
45302
|
return {
|
|
45084
45303
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45093,9 +45312,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
|
|
|
45093
45312
|
|
|
45094
45313
|
// src/funcs/vendorsListVendorCredits.ts
|
|
45095
45314
|
function vendorsListVendorCredits(client, request, options) {
|
|
45096
|
-
return new APIPromise($
|
|
45315
|
+
return new APIPromise($do25(client, request, options));
|
|
45097
45316
|
}
|
|
45098
|
-
async function $
|
|
45317
|
+
async function $do25(client, request, options) {
|
|
45099
45318
|
const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45100
45319
|
if (!parsed.ok) {
|
|
45101
45320
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45207,12 +45426,12 @@ var init_vendorsListVendorCredits = __esm(() => {
|
|
|
45207
45426
|
});
|
|
45208
45427
|
|
|
45209
45428
|
// src/mcp-server/tools/vendorsListVendorCredits.ts
|
|
45210
|
-
var
|
|
45429
|
+
var args24, tool$vendorsListVendorCredits;
|
|
45211
45430
|
var init_vendorsListVendorCredits2 = __esm(() => {
|
|
45212
45431
|
init_vendorsListVendorCredits();
|
|
45213
45432
|
init_operations();
|
|
45214
45433
|
init_tools();
|
|
45215
|
-
|
|
45434
|
+
args24 = {
|
|
45216
45435
|
request: ListVendorCreditsRequest$inboundSchema
|
|
45217
45436
|
};
|
|
45218
45437
|
tool$vendorsListVendorCredits = {
|
|
@@ -45220,9 +45439,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
|
|
|
45220
45439
|
description: `List vendor credits
|
|
45221
45440
|
|
|
45222
45441
|
List the credits for the vendor`,
|
|
45223
|
-
args:
|
|
45224
|
-
tool: async (client,
|
|
45225
|
-
const [result, apiCall] = await vendorsListVendorCredits(client,
|
|
45442
|
+
args: args24,
|
|
45443
|
+
tool: async (client, args25, ctx) => {
|
|
45444
|
+
const [result, apiCall] = await vendorsListVendorCredits(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45226
45445
|
if (!result.ok) {
|
|
45227
45446
|
return {
|
|
45228
45447
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45237,9 +45456,9 @@ List the credits for the vendor`,
|
|
|
45237
45456
|
|
|
45238
45457
|
// src/funcs/vendorsListVendorFacilityStatuses.ts
|
|
45239
45458
|
function vendorsListVendorFacilityStatuses(client, request, options) {
|
|
45240
|
-
return new APIPromise($
|
|
45459
|
+
return new APIPromise($do26(client, request, options));
|
|
45241
45460
|
}
|
|
45242
|
-
async function $
|
|
45461
|
+
async function $do26(client, request, options) {
|
|
45243
45462
|
const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45244
45463
|
if (!parsed.ok) {
|
|
45245
45464
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45347,12 +45566,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
|
|
|
45347
45566
|
});
|
|
45348
45567
|
|
|
45349
45568
|
// src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
|
|
45350
|
-
var
|
|
45569
|
+
var args25, tool$vendorsListVendorFacilityStatuses;
|
|
45351
45570
|
var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
45352
45571
|
init_vendorsListVendorFacilityStatuses();
|
|
45353
45572
|
init_operations();
|
|
45354
45573
|
init_tools();
|
|
45355
|
-
|
|
45574
|
+
args25 = {
|
|
45356
45575
|
request: ListVendorFacilityStatusesRequest$inboundSchema
|
|
45357
45576
|
};
|
|
45358
45577
|
tool$vendorsListVendorFacilityStatuses = {
|
|
@@ -45360,9 +45579,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
|
|
|
45360
45579
|
description: `List vendor facility statuses
|
|
45361
45580
|
|
|
45362
45581
|
List the facilities for the vendor`,
|
|
45363
|
-
args:
|
|
45364
|
-
tool: async (client,
|
|
45365
|
-
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client,
|
|
45582
|
+
args: args25,
|
|
45583
|
+
tool: async (client, args26, ctx) => {
|
|
45584
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45366
45585
|
if (!result.ok) {
|
|
45367
45586
|
return {
|
|
45368
45587
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45377,9 +45596,9 @@ List the facilities for the vendor`,
|
|
|
45377
45596
|
|
|
45378
45597
|
// src/funcs/vendorsListVendorInvoices.ts
|
|
45379
45598
|
function vendorsListVendorInvoices(client, request, options) {
|
|
45380
|
-
return new APIPromise($
|
|
45599
|
+
return new APIPromise($do27(client, request, options));
|
|
45381
45600
|
}
|
|
45382
|
-
async function $
|
|
45601
|
+
async function $do27(client, request, options) {
|
|
45383
45602
|
const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45384
45603
|
if (!parsed.ok) {
|
|
45385
45604
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45495,12 +45714,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
|
|
|
45495
45714
|
});
|
|
45496
45715
|
|
|
45497
45716
|
// src/mcp-server/tools/vendorsListVendorInvoices.ts
|
|
45498
|
-
var
|
|
45717
|
+
var args26, tool$vendorsListVendorInvoices;
|
|
45499
45718
|
var init_vendorsListVendorInvoices2 = __esm(() => {
|
|
45500
45719
|
init_vendorsListVendorInvoices();
|
|
45501
45720
|
init_operations();
|
|
45502
45721
|
init_tools();
|
|
45503
|
-
|
|
45722
|
+
args26 = {
|
|
45504
45723
|
request: ListVendorInvoicesRequest$inboundSchema
|
|
45505
45724
|
};
|
|
45506
45725
|
tool$vendorsListVendorInvoices = {
|
|
@@ -45512,9 +45731,9 @@ List invoices for Vendors
|
|
|
45512
45731
|
Available \`expand\` scopes are:
|
|
45513
45732
|
|
|
45514
45733
|
invoice.line_items`,
|
|
45515
|
-
args:
|
|
45516
|
-
tool: async (client,
|
|
45517
|
-
const [result, apiCall] = await vendorsListVendorInvoices(client,
|
|
45734
|
+
args: args26,
|
|
45735
|
+
tool: async (client, args27, ctx) => {
|
|
45736
|
+
const [result, apiCall] = await vendorsListVendorInvoices(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45518
45737
|
if (!result.ok) {
|
|
45519
45738
|
return {
|
|
45520
45739
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45529,9 +45748,9 @@ invoice.line_items`,
|
|
|
45529
45748
|
|
|
45530
45749
|
// src/funcs/vendorsListVendorManagedByCompanies.ts
|
|
45531
45750
|
function vendorsListVendorManagedByCompanies(client, request, options) {
|
|
45532
|
-
return new APIPromise($
|
|
45751
|
+
return new APIPromise($do28(client, request, options));
|
|
45533
45752
|
}
|
|
45534
|
-
async function $
|
|
45753
|
+
async function $do28(client, request, options) {
|
|
45535
45754
|
const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45536
45755
|
if (!parsed.ok) {
|
|
45537
45756
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45643,12 +45862,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
|
|
|
45643
45862
|
});
|
|
45644
45863
|
|
|
45645
45864
|
// src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
|
|
45646
|
-
var
|
|
45865
|
+
var args27, tool$vendorsListVendorManagedByCompanies;
|
|
45647
45866
|
var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
45648
45867
|
init_vendorsListVendorManagedByCompanies();
|
|
45649
45868
|
init_operations();
|
|
45650
45869
|
init_tools();
|
|
45651
|
-
|
|
45870
|
+
args27 = {
|
|
45652
45871
|
request: ListVendorManagedByCompaniesRequest$inboundSchema
|
|
45653
45872
|
};
|
|
45654
45873
|
tool$vendorsListVendorManagedByCompanies = {
|
|
@@ -45656,9 +45875,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
|
|
|
45656
45875
|
description: `List of companies managing the vendor
|
|
45657
45876
|
|
|
45658
45877
|
List of companies managing the vendor`,
|
|
45659
|
-
args:
|
|
45660
|
-
tool: async (client,
|
|
45661
|
-
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client,
|
|
45878
|
+
args: args27,
|
|
45879
|
+
tool: async (client, args28, ctx) => {
|
|
45880
|
+
const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45662
45881
|
if (!result.ok) {
|
|
45663
45882
|
return {
|
|
45664
45883
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45673,9 +45892,9 @@ List of companies managing the vendor`,
|
|
|
45673
45892
|
|
|
45674
45893
|
// src/funcs/vendorsListVendorScrubDetails.ts
|
|
45675
45894
|
function vendorsListVendorScrubDetails(client, request, options) {
|
|
45676
|
-
return new APIPromise($
|
|
45895
|
+
return new APIPromise($do29(client, request, options));
|
|
45677
45896
|
}
|
|
45678
|
-
async function $
|
|
45897
|
+
async function $do29(client, request, options) {
|
|
45679
45898
|
const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45680
45899
|
if (!parsed.ok) {
|
|
45681
45900
|
return [parsed, { status: "invalid" }];
|
|
@@ -45749,12 +45968,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
|
|
|
45749
45968
|
});
|
|
45750
45969
|
|
|
45751
45970
|
// src/mcp-server/tools/vendorsListVendorScrubDetails.ts
|
|
45752
|
-
var
|
|
45971
|
+
var args28, tool$vendorsListVendorScrubDetails;
|
|
45753
45972
|
var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
45754
45973
|
init_vendorsListVendorScrubDetails();
|
|
45755
45974
|
init_operations();
|
|
45756
45975
|
init_tools();
|
|
45757
|
-
|
|
45976
|
+
args28 = {
|
|
45758
45977
|
request: ListVendorScrubDetailsRequest$inboundSchema
|
|
45759
45978
|
};
|
|
45760
45979
|
tool$vendorsListVendorScrubDetails = {
|
|
@@ -45762,9 +45981,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
|
|
|
45762
45981
|
description: `List vendor scrub details
|
|
45763
45982
|
|
|
45764
45983
|
List vendor scrub details`,
|
|
45765
|
-
args:
|
|
45766
|
-
tool: async (client,
|
|
45767
|
-
const [result, apiCall] = await vendorsListVendorScrubDetails(client,
|
|
45984
|
+
args: args28,
|
|
45985
|
+
tool: async (client, args29, ctx) => {
|
|
45986
|
+
const [result, apiCall] = await vendorsListVendorScrubDetails(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45768
45987
|
if (!result.ok) {
|
|
45769
45988
|
return {
|
|
45770
45989
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45779,9 +45998,9 @@ List vendor scrub details`,
|
|
|
45779
45998
|
|
|
45780
45999
|
// src/funcs/vendorsListVendorScrubPackages.ts
|
|
45781
46000
|
function vendorsListVendorScrubPackages(client, request, options) {
|
|
45782
|
-
return new APIPromise($
|
|
46001
|
+
return new APIPromise($do30(client, request, options));
|
|
45783
46002
|
}
|
|
45784
|
-
async function $
|
|
46003
|
+
async function $do30(client, request, options) {
|
|
45785
46004
|
const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45786
46005
|
if (!parsed.ok) {
|
|
45787
46006
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -45893,12 +46112,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
|
|
|
45893
46112
|
});
|
|
45894
46113
|
|
|
45895
46114
|
// src/mcp-server/tools/vendorsListVendorScrubPackages.ts
|
|
45896
|
-
var
|
|
46115
|
+
var args29, tool$vendorsListVendorScrubPackages;
|
|
45897
46116
|
var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
45898
46117
|
init_vendorsListVendorScrubPackages();
|
|
45899
46118
|
init_operations();
|
|
45900
46119
|
init_tools();
|
|
45901
|
-
|
|
46120
|
+
args29 = {
|
|
45902
46121
|
request: ListVendorScrubPackagesRequest$inboundSchema
|
|
45903
46122
|
};
|
|
45904
46123
|
tool$vendorsListVendorScrubPackages = {
|
|
@@ -45906,9 +46125,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
|
|
|
45906
46125
|
description: `List vendor scrub packages
|
|
45907
46126
|
|
|
45908
46127
|
List vendor scrub packages`,
|
|
45909
|
-
args:
|
|
45910
|
-
tool: async (client,
|
|
45911
|
-
const [result, apiCall] = await vendorsListVendorScrubPackages(client,
|
|
46128
|
+
args: args29,
|
|
46129
|
+
tool: async (client, args30, ctx) => {
|
|
46130
|
+
const [result, apiCall] = await vendorsListVendorScrubPackages(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45912
46131
|
if (!result.ok) {
|
|
45913
46132
|
return {
|
|
45914
46133
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45923,9 +46142,9 @@ List vendor scrub packages`,
|
|
|
45923
46142
|
|
|
45924
46143
|
// src/funcs/vendorsListVendorScrubPurchases.ts
|
|
45925
46144
|
function vendorsListVendorScrubPurchases(client, request, options) {
|
|
45926
|
-
return new APIPromise($
|
|
46145
|
+
return new APIPromise($do31(client, request, options));
|
|
45927
46146
|
}
|
|
45928
|
-
async function $
|
|
46147
|
+
async function $do31(client, request, options) {
|
|
45929
46148
|
const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45930
46149
|
if (!parsed.ok) {
|
|
45931
46150
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46037,12 +46256,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
|
|
|
46037
46256
|
});
|
|
46038
46257
|
|
|
46039
46258
|
// src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
|
|
46040
|
-
var
|
|
46259
|
+
var args30, tool$vendorsListVendorScrubPurchases;
|
|
46041
46260
|
var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
46042
46261
|
init_vendorsListVendorScrubPurchases();
|
|
46043
46262
|
init_operations();
|
|
46044
46263
|
init_tools();
|
|
46045
|
-
|
|
46264
|
+
args30 = {
|
|
46046
46265
|
request: ListVendorScrubPurchasesRequest$inboundSchema
|
|
46047
46266
|
};
|
|
46048
46267
|
tool$vendorsListVendorScrubPurchases = {
|
|
@@ -46050,9 +46269,9 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
|
|
|
46050
46269
|
description: `List vendor scrub purchases
|
|
46051
46270
|
|
|
46052
46271
|
List vendor scrub purchases`,
|
|
46053
|
-
args:
|
|
46054
|
-
tool: async (client,
|
|
46055
|
-
const [result, apiCall] = await vendorsListVendorScrubPurchases(client,
|
|
46272
|
+
args: args30,
|
|
46273
|
+
tool: async (client, args31, ctx) => {
|
|
46274
|
+
const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46056
46275
|
if (!result.ok) {
|
|
46057
46276
|
return {
|
|
46058
46277
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46067,9 +46286,9 @@ List vendor scrub purchases`,
|
|
|
46067
46286
|
|
|
46068
46287
|
// src/funcs/vendorsPurchaseScrubCredits.ts
|
|
46069
46288
|
function vendorsPurchaseScrubCredits(client, request, options) {
|
|
46070
|
-
return new APIPromise($
|
|
46289
|
+
return new APIPromise($do32(client, request, options));
|
|
46071
46290
|
}
|
|
46072
|
-
async function $
|
|
46291
|
+
async function $do32(client, request, options) {
|
|
46073
46292
|
const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46074
46293
|
if (!parsed.ok) {
|
|
46075
46294
|
return [parsed, { status: "invalid" }];
|
|
@@ -46143,12 +46362,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
|
|
|
46143
46362
|
});
|
|
46144
46363
|
|
|
46145
46364
|
// src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
|
|
46146
|
-
var
|
|
46365
|
+
var args31, tool$vendorsPurchaseScrubCredits;
|
|
46147
46366
|
var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
46148
46367
|
init_vendorsPurchaseScrubCredits();
|
|
46149
46368
|
init_operations();
|
|
46150
46369
|
init_tools();
|
|
46151
|
-
|
|
46370
|
+
args31 = {
|
|
46152
46371
|
request: PurchaseScrubCreditsRequest$inboundSchema
|
|
46153
46372
|
};
|
|
46154
46373
|
tool$vendorsPurchaseScrubCredits = {
|
|
@@ -46156,9 +46375,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
|
|
|
46156
46375
|
description: `Purchase scrub credits
|
|
46157
46376
|
|
|
46158
46377
|
Purchase scrub credits`,
|
|
46159
|
-
args:
|
|
46160
|
-
tool: async (client,
|
|
46161
|
-
const [result, apiCall] = await vendorsPurchaseScrubCredits(client,
|
|
46378
|
+
args: args31,
|
|
46379
|
+
tool: async (client, args32, ctx) => {
|
|
46380
|
+
const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46162
46381
|
if (!result.ok) {
|
|
46163
46382
|
return {
|
|
46164
46383
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46173,9 +46392,9 @@ Purchase scrub credits`,
|
|
|
46173
46392
|
|
|
46174
46393
|
// src/funcs/vendorsUpdateVendorDetails.ts
|
|
46175
46394
|
function vendorsUpdateVendorDetails(client, request, options) {
|
|
46176
|
-
return new APIPromise($
|
|
46395
|
+
return new APIPromise($do33(client, request, options));
|
|
46177
46396
|
}
|
|
46178
|
-
async function $
|
|
46397
|
+
async function $do33(client, request, options) {
|
|
46179
46398
|
const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46180
46399
|
if (!parsed.ok) {
|
|
46181
46400
|
return [parsed, { status: "invalid" }];
|
|
@@ -46250,12 +46469,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
|
|
|
46250
46469
|
});
|
|
46251
46470
|
|
|
46252
46471
|
// src/mcp-server/tools/vendorsUpdateVendorDetails.ts
|
|
46253
|
-
var
|
|
46472
|
+
var args32, tool$vendorsUpdateVendorDetails;
|
|
46254
46473
|
var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
46255
46474
|
init_vendorsUpdateVendorDetails();
|
|
46256
46475
|
init_operations();
|
|
46257
46476
|
init_tools();
|
|
46258
|
-
|
|
46477
|
+
args32 = {
|
|
46259
46478
|
request: UpdateVendorDetailsRequest$inboundSchema
|
|
46260
46479
|
};
|
|
46261
46480
|
tool$vendorsUpdateVendorDetails = {
|
|
@@ -46263,9 +46482,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
|
46263
46482
|
description: `Update vendor details
|
|
46264
46483
|
|
|
46265
46484
|
It will update the vendor details`,
|
|
46266
|
-
args:
|
|
46267
|
-
tool: async (client,
|
|
46268
|
-
const [result, apiCall] = await vendorsUpdateVendorDetails(client,
|
|
46485
|
+
args: args32,
|
|
46486
|
+
tool: async (client, args33, ctx) => {
|
|
46487
|
+
const [result, apiCall] = await vendorsUpdateVendorDetails(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46269
46488
|
if (!result.ok) {
|
|
46270
46489
|
return {
|
|
46271
46490
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46280,9 +46499,9 @@ It will update the vendor details`,
|
|
|
46280
46499
|
|
|
46281
46500
|
// src/funcs/vendorsUpdateVendorManagedByCompany.ts
|
|
46282
46501
|
function vendorsUpdateVendorManagedByCompany(client, request, options) {
|
|
46283
|
-
return new APIPromise($
|
|
46502
|
+
return new APIPromise($do34(client, request, options));
|
|
46284
46503
|
}
|
|
46285
|
-
async function $
|
|
46504
|
+
async function $do34(client, request, options) {
|
|
46286
46505
|
const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46287
46506
|
if (!parsed.ok) {
|
|
46288
46507
|
return [parsed, { status: "invalid" }];
|
|
@@ -46356,12 +46575,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
|
|
|
46356
46575
|
});
|
|
46357
46576
|
|
|
46358
46577
|
// src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
|
|
46359
|
-
var
|
|
46578
|
+
var args33, tool$vendorsUpdateVendorManagedByCompany;
|
|
46360
46579
|
var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
46361
46580
|
init_vendorsUpdateVendorManagedByCompany();
|
|
46362
46581
|
init_operations();
|
|
46363
46582
|
init_tools();
|
|
46364
|
-
|
|
46583
|
+
args33 = {
|
|
46365
46584
|
request: UpdateVendorManagedByCompanyRequest$inboundSchema
|
|
46366
46585
|
};
|
|
46367
46586
|
tool$vendorsUpdateVendorManagedByCompany = {
|
|
@@ -46369,9 +46588,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
|
46369
46588
|
description: `Update vendor managed by company access rights
|
|
46370
46589
|
|
|
46371
46590
|
It will update the vendor managed by company access rights`,
|
|
46372
|
-
args:
|
|
46373
|
-
tool: async (client,
|
|
46374
|
-
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client,
|
|
46591
|
+
args: args33,
|
|
46592
|
+
tool: async (client, args34, ctx) => {
|
|
46593
|
+
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46375
46594
|
if (!result.ok) {
|
|
46376
46595
|
return {
|
|
46377
46596
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46386,9 +46605,9 @@ It will update the vendor managed by company access rights`,
|
|
|
46386
46605
|
|
|
46387
46606
|
// src/funcs/vendorsUpdateVendorScrubDetails.ts
|
|
46388
46607
|
function vendorsUpdateVendorScrubDetails(client, request, options) {
|
|
46389
|
-
return new APIPromise($
|
|
46608
|
+
return new APIPromise($do35(client, request, options));
|
|
46390
46609
|
}
|
|
46391
|
-
async function $
|
|
46610
|
+
async function $do35(client, request, options) {
|
|
46392
46611
|
const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46393
46612
|
if (!parsed.ok) {
|
|
46394
46613
|
return [parsed, { status: "invalid" }];
|
|
@@ -46463,12 +46682,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
|
|
|
46463
46682
|
});
|
|
46464
46683
|
|
|
46465
46684
|
// src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
|
|
46466
|
-
var
|
|
46685
|
+
var args34, tool$vendorsUpdateVendorScrubDetails;
|
|
46467
46686
|
var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
46468
46687
|
init_vendorsUpdateVendorScrubDetails();
|
|
46469
46688
|
init_operations();
|
|
46470
46689
|
init_tools();
|
|
46471
|
-
|
|
46690
|
+
args34 = {
|
|
46472
46691
|
request: UpdateVendorScrubDetailsRequest$inboundSchema
|
|
46473
46692
|
};
|
|
46474
46693
|
tool$vendorsUpdateVendorScrubDetails = {
|
|
@@ -46476,9 +46695,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
|
46476
46695
|
description: `Update vendor scrub details
|
|
46477
46696
|
|
|
46478
46697
|
Update vendor scrub details`,
|
|
46479
|
-
args:
|
|
46480
|
-
tool: async (client,
|
|
46481
|
-
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client,
|
|
46698
|
+
args: args34,
|
|
46699
|
+
tool: async (client, args35, ctx) => {
|
|
46700
|
+
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46482
46701
|
if (!result.ok) {
|
|
46483
46702
|
return {
|
|
46484
46703
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46493,9 +46712,9 @@ Update vendor scrub details`,
|
|
|
46493
46712
|
|
|
46494
46713
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
46495
46714
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
46496
|
-
return new APIPromise($
|
|
46715
|
+
return new APIPromise($do36(client, request, options));
|
|
46497
46716
|
}
|
|
46498
|
-
async function $
|
|
46717
|
+
async function $do36(client, request, options) {
|
|
46499
46718
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46500
46719
|
if (!parsed.ok) {
|
|
46501
46720
|
return [parsed, { status: "invalid" }];
|
|
@@ -46569,12 +46788,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
46569
46788
|
});
|
|
46570
46789
|
|
|
46571
46790
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
46572
|
-
var
|
|
46791
|
+
var args35, tool$webhooksGetWebhookEndpoint;
|
|
46573
46792
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
46574
46793
|
init_webhooksGetWebhookEndpoint();
|
|
46575
46794
|
init_operations();
|
|
46576
46795
|
init_tools();
|
|
46577
|
-
|
|
46796
|
+
args35 = {
|
|
46578
46797
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
46579
46798
|
};
|
|
46580
46799
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -46582,9 +46801,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
46582
46801
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
46583
46802
|
|
|
46584
46803
|
Returns the definition of a webhook endpoint by ID.`,
|
|
46585
|
-
args:
|
|
46586
|
-
tool: async (client,
|
|
46587
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
46804
|
+
args: args35,
|
|
46805
|
+
tool: async (client, args36, ctx) => {
|
|
46806
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46588
46807
|
if (!result.ok) {
|
|
46589
46808
|
return {
|
|
46590
46809
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46599,9 +46818,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
46599
46818
|
|
|
46600
46819
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
46601
46820
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
46602
|
-
return new APIPromise($
|
|
46821
|
+
return new APIPromise($do37(client, request, options));
|
|
46603
46822
|
}
|
|
46604
|
-
async function $
|
|
46823
|
+
async function $do37(client, request, options) {
|
|
46605
46824
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46606
46825
|
if (!parsed.ok) {
|
|
46607
46826
|
return [parsed, { status: "invalid" }];
|
|
@@ -46675,12 +46894,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
46675
46894
|
});
|
|
46676
46895
|
|
|
46677
46896
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
46678
|
-
var
|
|
46897
|
+
var args36, tool$webhooksListAllWebhookEndpoints;
|
|
46679
46898
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
46680
46899
|
init_webhooksListAllWebhookEndpoints();
|
|
46681
46900
|
init_operations();
|
|
46682
46901
|
init_tools();
|
|
46683
|
-
|
|
46902
|
+
args36 = {
|
|
46684
46903
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
46685
46904
|
};
|
|
46686
46905
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -46688,9 +46907,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
46688
46907
|
description: `List all webhook endpoints
|
|
46689
46908
|
|
|
46690
46909
|
Returns a list of your webhook endpoints.`,
|
|
46691
|
-
args:
|
|
46692
|
-
tool: async (client,
|
|
46693
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
46910
|
+
args: args36,
|
|
46911
|
+
tool: async (client, args37, ctx) => {
|
|
46912
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46694
46913
|
if (!result.ok) {
|
|
46695
46914
|
return {
|
|
46696
46915
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46705,9 +46924,9 @@ Returns a list of your webhook endpoints.`,
|
|
|
46705
46924
|
|
|
46706
46925
|
// src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
46707
46926
|
function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
|
|
46708
|
-
return new APIPromise($
|
|
46927
|
+
return new APIPromise($do38(client, request, options));
|
|
46709
46928
|
}
|
|
46710
|
-
async function $
|
|
46929
|
+
async function $do38(client, request, options) {
|
|
46711
46930
|
const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46712
46931
|
if (!parsed.ok) {
|
|
46713
46932
|
return [parsed, { status: "invalid" }];
|
|
@@ -46782,12 +47001,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
|
|
|
46782
47001
|
});
|
|
46783
47002
|
|
|
46784
47003
|
// src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
|
|
46785
|
-
var
|
|
47004
|
+
var args37, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
|
|
46786
47005
|
var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
46787
47006
|
init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
|
|
46788
47007
|
init_operations();
|
|
46789
47008
|
init_tools();
|
|
46790
|
-
|
|
47009
|
+
args37 = {
|
|
46791
47010
|
request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
|
|
46792
47011
|
};
|
|
46793
47012
|
tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
|
|
@@ -46795,9 +47014,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
|
|
|
46795
47014
|
description: `Updates the webhook endpoint with the given ID.
|
|
46796
47015
|
|
|
46797
47016
|
Updates the webhook endpoint with the given ID.`,
|
|
46798
|
-
args:
|
|
46799
|
-
tool: async (client,
|
|
46800
|
-
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client,
|
|
47017
|
+
args: args37,
|
|
47018
|
+
tool: async (client, args38, ctx) => {
|
|
47019
|
+
const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46801
47020
|
if (!result.ok) {
|
|
46802
47021
|
return {
|
|
46803
47022
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46812,9 +47031,9 @@ Updates the webhook endpoint with the given ID.`,
|
|
|
46812
47031
|
|
|
46813
47032
|
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
46814
47033
|
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
46815
|
-
return new APIPromise($
|
|
47034
|
+
return new APIPromise($do39(client, request, options));
|
|
46816
47035
|
}
|
|
46817
|
-
async function $
|
|
47036
|
+
async function $do39(client, request, options) {
|
|
46818
47037
|
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
46819
47038
|
if (!parsed.ok) {
|
|
46820
47039
|
return [haltIterator(parsed), { status: "invalid" }];
|
|
@@ -46926,12 +47145,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
|
46926
47145
|
});
|
|
46927
47146
|
|
|
46928
47147
|
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
46929
|
-
var
|
|
47148
|
+
var args38, tool$zonesListOrSearchSecurityZones;
|
|
46930
47149
|
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
46931
47150
|
init_zonesListOrSearchSecurityZones();
|
|
46932
47151
|
init_operations();
|
|
46933
47152
|
init_tools();
|
|
46934
|
-
|
|
47153
|
+
args38 = {
|
|
46935
47154
|
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
46936
47155
|
};
|
|
46937
47156
|
tool$zonesListOrSearchSecurityZones = {
|
|
@@ -46939,9 +47158,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
|
46939
47158
|
description: `List or search security zones
|
|
46940
47159
|
|
|
46941
47160
|
List or search security zones`,
|
|
46942
|
-
args:
|
|
46943
|
-
tool: async (client,
|
|
46944
|
-
const [result, apiCall] = await zonesListOrSearchSecurityZones(client,
|
|
47161
|
+
args: args38,
|
|
47162
|
+
tool: async (client, args39, ctx) => {
|
|
47163
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
46945
47164
|
if (!result.ok) {
|
|
46946
47165
|
return {
|
|
46947
47166
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -46956,9 +47175,9 @@ List or search security zones`,
|
|
|
46956
47175
|
|
|
46957
47176
|
// src/funcs/zonesSecurityZoneCheckin.ts
|
|
46958
47177
|
function zonesSecurityZoneCheckin(client, request, options) {
|
|
46959
|
-
return new APIPromise($
|
|
47178
|
+
return new APIPromise($do40(client, request, options));
|
|
46960
47179
|
}
|
|
46961
|
-
async function $
|
|
47180
|
+
async function $do40(client, request, options) {
|
|
46962
47181
|
const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
46963
47182
|
if (!parsed.ok) {
|
|
46964
47183
|
return [parsed, { status: "invalid" }];
|
|
@@ -47026,12 +47245,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
|
|
|
47026
47245
|
});
|
|
47027
47246
|
|
|
47028
47247
|
// src/mcp-server/tools/zonesSecurityZoneCheckin.ts
|
|
47029
|
-
var
|
|
47248
|
+
var args39, tool$zonesSecurityZoneCheckin;
|
|
47030
47249
|
var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
47031
47250
|
init_zonesSecurityZoneCheckin();
|
|
47032
47251
|
init_operations();
|
|
47033
47252
|
init_tools();
|
|
47034
|
-
|
|
47253
|
+
args39 = {
|
|
47035
47254
|
request: SecurityZoneCheckinRequestBody$inboundSchema
|
|
47036
47255
|
};
|
|
47037
47256
|
tool$zonesSecurityZoneCheckin = {
|
|
@@ -47039,9 +47258,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
|
47039
47258
|
description: `Security zone checkin request
|
|
47040
47259
|
|
|
47041
47260
|
Security zone checkin request`,
|
|
47042
|
-
args:
|
|
47043
|
-
tool: async (client,
|
|
47044
|
-
const [result, apiCall] = await zonesSecurityZoneCheckin(client,
|
|
47261
|
+
args: args39,
|
|
47262
|
+
tool: async (client, args40, ctx) => {
|
|
47263
|
+
const [result, apiCall] = await zonesSecurityZoneCheckin(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47045
47264
|
if (!result.ok) {
|
|
47046
47265
|
return {
|
|
47047
47266
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47058,7 +47277,7 @@ Security zone checkin request`,
|
|
|
47058
47277
|
function createMCPServer(deps) {
|
|
47059
47278
|
const server = new McpServer({
|
|
47060
47279
|
name: "GreenSecurity",
|
|
47061
|
-
version: "0.30.
|
|
47280
|
+
version: "0.30.51"
|
|
47062
47281
|
});
|
|
47063
47282
|
const client = new GreenSecurityCore({
|
|
47064
47283
|
security: deps.security,
|
|
@@ -47075,6 +47294,7 @@ function createMCPServer(deps) {
|
|
|
47075
47294
|
tool(tool$vendorsCreateVendorRegistration);
|
|
47076
47295
|
tool(tool$vendorsListVendorCredentials);
|
|
47077
47296
|
tool(tool$vendorsGetVendorCredentialDetails);
|
|
47297
|
+
tool(tool$vendorsGetVendorCredentialFile);
|
|
47078
47298
|
tool(tool$vendorsExpediteTimeRemaining);
|
|
47079
47299
|
tool(tool$vendorsListVendorInvoices);
|
|
47080
47300
|
tool(tool$vendorsGetVendorInvoiceDetails);
|
|
@@ -47137,6 +47357,7 @@ var init_server2 = __esm(() => {
|
|
|
47137
47357
|
init_vendorsDeleteVendorManagedByCompany2();
|
|
47138
47358
|
init_vendorsExpediteTimeRemaining2();
|
|
47139
47359
|
init_vendorsGetVendorCredentialDetails2();
|
|
47360
|
+
init_vendorsGetVendorCredentialFile2();
|
|
47140
47361
|
init_vendorsGetVendorInvoiceDetails2();
|
|
47141
47362
|
init_vendorsGetVendorsDetails2();
|
|
47142
47363
|
init_vendorsListVendorAdditionalFacilityFields2();
|
|
@@ -47186,7 +47407,10 @@ async function startStdio(flags) {
|
|
|
47186
47407
|
logger,
|
|
47187
47408
|
allowedTools: flags.tool,
|
|
47188
47409
|
scopes: flags.scope,
|
|
47189
|
-
security: {
|
|
47410
|
+
security: {
|
|
47411
|
+
token: flags["api-token"] ?? "",
|
|
47412
|
+
bearerJwt: flags["bearer-jwt"] ?? ""
|
|
47413
|
+
},
|
|
47190
47414
|
serverURL: flags["server-url"],
|
|
47191
47415
|
serverIdx: flags["server-index"]
|
|
47192
47416
|
});
|
|
@@ -47205,7 +47429,10 @@ async function startSSE(flags) {
|
|
|
47205
47429
|
logger,
|
|
47206
47430
|
allowedTools: flags.tool,
|
|
47207
47431
|
scopes: flags.scope,
|
|
47208
|
-
security: {
|
|
47432
|
+
security: {
|
|
47433
|
+
token: flags["api-token"] ?? "",
|
|
47434
|
+
bearerJwt: flags["bearer-jwt"] ?? ""
|
|
47435
|
+
},
|
|
47209
47436
|
serverURL: flags["server-url"],
|
|
47210
47437
|
serverIdx: flags["server-index"]
|
|
47211
47438
|
});
|
|
@@ -48355,7 +48582,7 @@ var routes = an({
|
|
|
48355
48582
|
var app = He(routes, {
|
|
48356
48583
|
name: "mcp",
|
|
48357
48584
|
versionInfo: {
|
|
48358
|
-
currentVersion: "0.30.
|
|
48585
|
+
currentVersion: "0.30.51"
|
|
48359
48586
|
}
|
|
48360
48587
|
});
|
|
48361
48588
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -48363,5 +48590,5 @@ export {
|
|
|
48363
48590
|
app
|
|
48364
48591
|
};
|
|
48365
48592
|
|
|
48366
|
-
//# debugId=
|
|
48593
|
+
//# debugId=14B002FC19D420D064756E2164756E21
|
|
48367
48594
|
//# sourceMappingURL=mcp-server.js.map
|