@greensecurity/javascript-sdk 0.30.13 → 0.30.17
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 +506 -59
- package/bin/mcp-server.js.map +18 -15
- 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 +17 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorInvoices.js +2 -0
- package/dist/commonjs/funcs/vendorsListVendorInvoices.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.js +1 -1
- package/dist/commonjs/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +122 -0
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/prompts.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/prompts.js +5 -1
- package/dist/commonjs/mcp-server/prompts.js.map +1 -1
- package/dist/commonjs/mcp-server/resources.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/resources.js +10 -2
- package/dist/commonjs/mcp-server/resources.js.map +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +4 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorDetails.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorDetails.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorDetails.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorDetails.js.map +1 -0
- package/dist/commonjs/mcp-server/tools.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools.js +4 -3
- package/dist/commonjs/mcp-server/tools.js.map +1 -1
- package/dist/commonjs/models/components/userlocation.d.ts +654 -1
- package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/userlocation.js +257 -3
- package/dist/commonjs/models/components/userlocation.js.map +1 -1
- 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/models/operations/listvendorinvoices.d.ts +54 -0
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.js +35 -1
- package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.d.ts +121 -0
- package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatevendordetails.js +154 -0
- package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -0
- 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/vendorsListVendorInvoices.d.ts +6 -0
- package/dist/commonjs/react-query/vendorsListVendorInvoices.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorInvoices.js +4 -0
- package/dist/commonjs/react-query/vendorsListVendorInvoices.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +23 -0
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +47 -0
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -0
- package/dist/commonjs/sdk/vendors.d.ts +7 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +10 -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 +17 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorInvoices.js +2 -0
- package/dist/esm/funcs/vendorsListVendorInvoices.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorJobTitles.js +1 -1
- package/dist/esm/funcs/vendorsListVendorJobTitles.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +17 -0
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js +86 -0
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/prompts.d.ts.map +1 -1
- package/dist/esm/mcp-server/prompts.js +5 -1
- package/dist/esm/mcp-server/prompts.js.map +1 -1
- package/dist/esm/mcp-server/resources.d.ts.map +1 -1
- package/dist/esm/mcp-server/resources.js +10 -2
- package/dist/esm/mcp-server/resources.js.map +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +4 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsUpdateVendorDetails.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsUpdateVendorDetails.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsUpdateVendorDetails.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsUpdateVendorDetails.js.map +1 -0
- package/dist/esm/mcp-server/tools.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools.js +4 -3
- package/dist/esm/mcp-server/tools.js.map +1 -1
- package/dist/esm/models/components/userlocation.d.ts +654 -1
- package/dist/esm/models/components/userlocation.d.ts.map +1 -1
- package/dist/esm/models/components/userlocation.js +256 -2
- package/dist/esm/models/components/userlocation.js.map +1 -1
- 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/models/operations/listvendorinvoices.d.ts +54 -0
- package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.js +34 -0
- package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.d.ts +121 -0
- package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -0
- package/dist/esm/models/operations/updatevendordetails.js +114 -0
- package/dist/esm/models/operations/updatevendordetails.js.map +1 -0
- 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/vendorsListVendorInvoices.d.ts +6 -0
- package/dist/esm/react-query/vendorsListVendorInvoices.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorInvoices.js +4 -0
- package/dist/esm/react-query/vendorsListVendorInvoices.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +23 -0
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js +42 -0
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -0
- package/dist/esm/sdk/vendors.d.ts +7 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +10 -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 +20 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/funcs/vendorsListVendorInvoices.ts +2 -0
- package/src/funcs/vendorsListVendorJobTitles.ts +1 -1
- package/src/funcs/vendorsUpdateVendorDetails.ts +175 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +5 -3
- package/src/mcp-server/tools/vendorsUpdateVendorDetails.ts +37 -0
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/components/userlocation.ts +278 -3
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listvendorinvoices.ts +56 -0
- package/src/models/operations/updatevendordetails.ts +224 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsListVendorInvoices.ts +10 -0
- package/src/react-query/vendorsUpdateVendorDetails.ts +88 -0
- package/src/sdk/vendors.ts +18 -0
package/bin/mcp-server.js
CHANGED
|
@@ -4012,12 +4012,6 @@ var init_console_logger = __esm(() => {
|
|
|
4012
4012
|
];
|
|
4013
4013
|
});
|
|
4014
4014
|
|
|
4015
|
-
// src/mcp-server/scopes.ts
|
|
4016
|
-
var mcpScopes;
|
|
4017
|
-
var init_scopes = __esm(() => {
|
|
4018
|
-
mcpScopes = [];
|
|
4019
|
-
});
|
|
4020
|
-
|
|
4021
4015
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
4022
4016
|
var LATEST_PROTOCOL_VERSION = "2024-11-05", SUPPORTED_PROTOCOL_VERSIONS, JSONRPC_VERSION = "2.0", ProgressTokenSchema, CursorSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, EmbeddedResourceSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, ResourceReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError;
|
|
4023
4017
|
var init_types = __esm(() => {
|
|
@@ -34172,9 +34166,9 @@ var init_config = __esm(() => {
|
|
|
34172
34166
|
SDK_METADATA = {
|
|
34173
34167
|
language: "typescript",
|
|
34174
34168
|
openapiDocVersion: "0.0.3",
|
|
34175
|
-
sdkVersion: "0.30.
|
|
34176
|
-
genVersion: "2.
|
|
34177
|
-
userAgent: "speakeasy-sdk/typescript 0.30.
|
|
34169
|
+
sdkVersion: "0.30.17",
|
|
34170
|
+
genVersion: "2.568.2",
|
|
34171
|
+
userAgent: "speakeasy-sdk/typescript 0.30.17 2.568.2 0.0.3 @greensecurity/javascript-sdk"
|
|
34178
34172
|
};
|
|
34179
34173
|
});
|
|
34180
34174
|
|
|
@@ -34980,7 +34974,10 @@ var init_core = __esm(() => {
|
|
|
34980
34974
|
function createRegisterPrompt(logger, server, sdk, allowedScopes) {
|
|
34981
34975
|
return (prompt) => {
|
|
34982
34976
|
const scopes = prompt.scopes ?? [];
|
|
34983
|
-
if (
|
|
34977
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
34978
|
+
return;
|
|
34979
|
+
}
|
|
34980
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
34984
34981
|
return;
|
|
34985
34982
|
}
|
|
34986
34983
|
if (prompt.args) {
|
|
@@ -35051,7 +35048,10 @@ var init_shared = __esm(() => {
|
|
|
35051
35048
|
function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
35052
35049
|
return (resource) => {
|
|
35053
35050
|
const scopes = resource.scopes ?? [];
|
|
35054
|
-
if (
|
|
35051
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35052
|
+
return;
|
|
35053
|
+
}
|
|
35054
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35055
35055
|
return;
|
|
35056
35056
|
}
|
|
35057
35057
|
const metadata = {
|
|
@@ -35065,7 +35065,10 @@ function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
|
35065
35065
|
function createRegisterResourceTemplate(logger, server, sdk, allowedScopes) {
|
|
35066
35066
|
return (resource) => {
|
|
35067
35067
|
const scopes = resource.scopes ?? [];
|
|
35068
|
-
if (
|
|
35068
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35069
|
+
return;
|
|
35070
|
+
}
|
|
35071
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35069
35072
|
return;
|
|
35070
35073
|
}
|
|
35071
35074
|
const metadata = {
|
|
@@ -35123,11 +35126,11 @@ function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
|
|
|
35123
35126
|
if (allowedTools && !allowedTools.has(tool.name)) {
|
|
35124
35127
|
return;
|
|
35125
35128
|
}
|
|
35126
|
-
const
|
|
35127
|
-
if (allowedScopes.size > 0 &&
|
|
35129
|
+
const scopes = tool.scopes ?? [];
|
|
35130
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35128
35131
|
return;
|
|
35129
35132
|
}
|
|
35130
|
-
if (!
|
|
35133
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35131
35134
|
return;
|
|
35132
35135
|
}
|
|
35133
35136
|
if (tool.args) {
|
|
@@ -37098,26 +37101,261 @@ var init_supportarticle = __esm(() => {
|
|
|
37098
37101
|
});
|
|
37099
37102
|
|
|
37100
37103
|
// src/models/components/userlocation.ts
|
|
37101
|
-
var UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
|
|
37104
|
+
var State, Timezone, State$inboundSchema, State$outboundSchema, State$, Timezone$inboundSchema, Timezone$outboundSchema, Timezone$, UserLocation$inboundSchema, UserLocation$outboundSchema, UserLocation$;
|
|
37102
37105
|
var init_userlocation = __esm(() => {
|
|
37103
37106
|
init_lib();
|
|
37107
|
+
init_primitives();
|
|
37108
|
+
State = {
|
|
37109
|
+
Al: "AL",
|
|
37110
|
+
Ak: "AK",
|
|
37111
|
+
Az: "AZ",
|
|
37112
|
+
Ar: "AR",
|
|
37113
|
+
Ca: "CA",
|
|
37114
|
+
Co: "CO",
|
|
37115
|
+
Ct: "CT",
|
|
37116
|
+
De: "DE",
|
|
37117
|
+
Dc: "DC",
|
|
37118
|
+
Fl: "FL",
|
|
37119
|
+
Ga: "GA",
|
|
37120
|
+
Hi: "HI",
|
|
37121
|
+
Id: "ID",
|
|
37122
|
+
Il: "IL",
|
|
37123
|
+
In: "IN",
|
|
37124
|
+
Ia: "IA",
|
|
37125
|
+
Ks: "KS",
|
|
37126
|
+
Ky: "KY",
|
|
37127
|
+
La: "LA",
|
|
37128
|
+
Me: "ME",
|
|
37129
|
+
Md: "MD",
|
|
37130
|
+
Ma: "MA",
|
|
37131
|
+
Mi: "MI",
|
|
37132
|
+
Mn: "MN",
|
|
37133
|
+
Ms: "MS",
|
|
37134
|
+
Mo: "MO",
|
|
37135
|
+
Mt: "MT",
|
|
37136
|
+
Ne: "NE",
|
|
37137
|
+
Nv: "NV",
|
|
37138
|
+
Nh: "NH",
|
|
37139
|
+
Nj: "NJ",
|
|
37140
|
+
Nm: "NM",
|
|
37141
|
+
Ny: "NY",
|
|
37142
|
+
Nc: "NC",
|
|
37143
|
+
Nd: "ND",
|
|
37144
|
+
Oh: "OH",
|
|
37145
|
+
Ok: "OK",
|
|
37146
|
+
Or: "OR",
|
|
37147
|
+
Pa: "PA",
|
|
37148
|
+
Ri: "RI",
|
|
37149
|
+
Sc: "SC",
|
|
37150
|
+
Sd: "SD",
|
|
37151
|
+
Tn: "TN",
|
|
37152
|
+
Tx: "TX",
|
|
37153
|
+
Ut: "UT",
|
|
37154
|
+
Vt: "VT",
|
|
37155
|
+
Va: "VA",
|
|
37156
|
+
Wa: "WA",
|
|
37157
|
+
Wv: "WV",
|
|
37158
|
+
Wi: "WI",
|
|
37159
|
+
Wy: "WY"
|
|
37160
|
+
};
|
|
37161
|
+
Timezone = {
|
|
37162
|
+
InternationalDateLineWest: "International Date Line West",
|
|
37163
|
+
MidwayIsland: "Midway Island",
|
|
37164
|
+
AmericanSamoa: "American Samoa",
|
|
37165
|
+
Hawaii: "Hawaii",
|
|
37166
|
+
Alaska: "Alaska",
|
|
37167
|
+
PacificTimeUSAndCanada: "Pacific Time (US & Canada)",
|
|
37168
|
+
Tijuana: "Tijuana",
|
|
37169
|
+
MountainTimeUSAndCanada: "Mountain Time (US & Canada)",
|
|
37170
|
+
Arizona: "Arizona",
|
|
37171
|
+
Chihuahua: "Chihuahua",
|
|
37172
|
+
Mazatlan: "Mazatlan",
|
|
37173
|
+
CentralTimeUSAndCanada: "Central Time (US & Canada)",
|
|
37174
|
+
Saskatchewan: "Saskatchewan",
|
|
37175
|
+
Guadalajara: "Guadalajara",
|
|
37176
|
+
MexicoCity: "Mexico City",
|
|
37177
|
+
Monterrey: "Monterrey",
|
|
37178
|
+
CentralAmerica: "Central America",
|
|
37179
|
+
EasternTimeUSAndCanada: "Eastern Time (US & Canada)",
|
|
37180
|
+
IndianaEast: "Indiana (East)",
|
|
37181
|
+
Bogota: "Bogota",
|
|
37182
|
+
Lima: "Lima",
|
|
37183
|
+
Quito: "Quito",
|
|
37184
|
+
AtlanticTimeCanada: "Atlantic Time (Canada)",
|
|
37185
|
+
Caracas: "Caracas",
|
|
37186
|
+
LaPaz: "La Paz",
|
|
37187
|
+
Santiago: "Santiago",
|
|
37188
|
+
Newfoundland: "Newfoundland",
|
|
37189
|
+
Brasilia: "Brasilia",
|
|
37190
|
+
BuenosAires: "Buenos Aires",
|
|
37191
|
+
Montevideo: "Montevideo",
|
|
37192
|
+
Georgetown: "Georgetown",
|
|
37193
|
+
PuertoRico: "Puerto Rico",
|
|
37194
|
+
Greenland: "Greenland",
|
|
37195
|
+
MidAtlantic: "Mid-Atlantic",
|
|
37196
|
+
Azores: "Azores",
|
|
37197
|
+
CapeVerdeIs: "Cape Verde Is.",
|
|
37198
|
+
Dublin: "Dublin",
|
|
37199
|
+
Edinburgh: "Edinburgh",
|
|
37200
|
+
Lisbon: "Lisbon",
|
|
37201
|
+
London: "London",
|
|
37202
|
+
Casablanca: "Casablanca",
|
|
37203
|
+
Monrovia: "Monrovia",
|
|
37204
|
+
Utc: "UTC",
|
|
37205
|
+
Belgrade: "Belgrade",
|
|
37206
|
+
Bratislava: "Bratislava",
|
|
37207
|
+
Budapest: "Budapest",
|
|
37208
|
+
Ljubljana: "Ljubljana",
|
|
37209
|
+
Prague: "Prague",
|
|
37210
|
+
Sarajevo: "Sarajevo",
|
|
37211
|
+
Skopje: "Skopje",
|
|
37212
|
+
Warsaw: "Warsaw",
|
|
37213
|
+
Zagreb: "Zagreb",
|
|
37214
|
+
Brussels: "Brussels",
|
|
37215
|
+
Copenhagen: "Copenhagen",
|
|
37216
|
+
Madrid: "Madrid",
|
|
37217
|
+
Paris: "Paris",
|
|
37218
|
+
Amsterdam: "Amsterdam",
|
|
37219
|
+
Berlin: "Berlin",
|
|
37220
|
+
Bern: "Bern",
|
|
37221
|
+
Zurich: "Zurich",
|
|
37222
|
+
Rome: "Rome",
|
|
37223
|
+
Stockholm: "Stockholm",
|
|
37224
|
+
Vienna: "Vienna",
|
|
37225
|
+
WestCentralAfrica: "West Central Africa",
|
|
37226
|
+
Bucharest: "Bucharest",
|
|
37227
|
+
Cairo: "Cairo",
|
|
37228
|
+
Helsinki: "Helsinki",
|
|
37229
|
+
Kyiv: "Kyiv",
|
|
37230
|
+
Riga: "Riga",
|
|
37231
|
+
Sofia: "Sofia",
|
|
37232
|
+
Tallinn: "Tallinn",
|
|
37233
|
+
Vilnius: "Vilnius",
|
|
37234
|
+
Athens: "Athens",
|
|
37235
|
+
Istanbul: "Istanbul",
|
|
37236
|
+
Minsk: "Minsk",
|
|
37237
|
+
Jerusalem: "Jerusalem",
|
|
37238
|
+
Harare: "Harare",
|
|
37239
|
+
Pretoria: "Pretoria",
|
|
37240
|
+
Kaliningrad: "Kaliningrad",
|
|
37241
|
+
Moscow: "Moscow",
|
|
37242
|
+
StPetersburg: "St. Petersburg",
|
|
37243
|
+
Volgograd: "Volgograd",
|
|
37244
|
+
Samara: "Samara",
|
|
37245
|
+
Kuwait: "Kuwait",
|
|
37246
|
+
Riyadh: "Riyadh",
|
|
37247
|
+
Nairobi: "Nairobi",
|
|
37248
|
+
Baghdad: "Baghdad",
|
|
37249
|
+
Tehran: "Tehran",
|
|
37250
|
+
AbuDhabi: "Abu Dhabi",
|
|
37251
|
+
Muscat: "Muscat",
|
|
37252
|
+
Baku: "Baku",
|
|
37253
|
+
Tbilisi: "Tbilisi",
|
|
37254
|
+
Yerevan: "Yerevan",
|
|
37255
|
+
Kabul: "Kabul",
|
|
37256
|
+
Ekaterinburg: "Ekaterinburg",
|
|
37257
|
+
Islamabad: "Islamabad",
|
|
37258
|
+
Karachi: "Karachi",
|
|
37259
|
+
Tashkent: "Tashkent",
|
|
37260
|
+
Chennai: "Chennai",
|
|
37261
|
+
Kolkata: "Kolkata",
|
|
37262
|
+
Mumbai: "Mumbai",
|
|
37263
|
+
NewDelhi: "New Delhi",
|
|
37264
|
+
Kathmandu: "Kathmandu",
|
|
37265
|
+
Astana: "Astana",
|
|
37266
|
+
Dhaka: "Dhaka",
|
|
37267
|
+
SriJayawardenepura: "Sri Jayawardenepura",
|
|
37268
|
+
Almaty: "Almaty",
|
|
37269
|
+
Novosibirsk: "Novosibirsk",
|
|
37270
|
+
Rangoon: "Rangoon",
|
|
37271
|
+
Bangkok: "Bangkok",
|
|
37272
|
+
Hanoi: "Hanoi",
|
|
37273
|
+
Jakarta: "Jakarta",
|
|
37274
|
+
Krasnoyarsk: "Krasnoyarsk",
|
|
37275
|
+
Beijing: "Beijing",
|
|
37276
|
+
Chongqing: "Chongqing",
|
|
37277
|
+
HongKong: "Hong Kong",
|
|
37278
|
+
Urumqi: "Urumqi",
|
|
37279
|
+
KualaLumpur: "Kuala Lumpur",
|
|
37280
|
+
Singapore: "Singapore",
|
|
37281
|
+
Taipei: "Taipei",
|
|
37282
|
+
Perth: "Perth",
|
|
37283
|
+
Irkutsk: "Irkutsk",
|
|
37284
|
+
Ulaanbaatar: "Ulaanbaatar",
|
|
37285
|
+
Seoul: "Seoul",
|
|
37286
|
+
Osaka: "Osaka",
|
|
37287
|
+
Sapporo: "Sapporo",
|
|
37288
|
+
Tokyo: "Tokyo",
|
|
37289
|
+
Yakutsk: "Yakutsk",
|
|
37290
|
+
Darwin: "Darwin",
|
|
37291
|
+
Adelaide: "Adelaide",
|
|
37292
|
+
Canberra: "Canberra",
|
|
37293
|
+
Melbourne: "Melbourne",
|
|
37294
|
+
Sydney: "Sydney",
|
|
37295
|
+
Brisbane: "Brisbane",
|
|
37296
|
+
Hobart: "Hobart",
|
|
37297
|
+
Vladivostok: "Vladivostok",
|
|
37298
|
+
Guam: "Guam",
|
|
37299
|
+
PortMoresby: "Port Moresby",
|
|
37300
|
+
Magadan: "Magadan",
|
|
37301
|
+
Srednekolymsk: "Srednekolymsk",
|
|
37302
|
+
SolomonIs: "Solomon Is.",
|
|
37303
|
+
NewCaledonia: "New Caledonia",
|
|
37304
|
+
Fiji: "Fiji",
|
|
37305
|
+
Kamchatka: "Kamchatka",
|
|
37306
|
+
MarshallIs: "Marshall Is.",
|
|
37307
|
+
Auckland: "Auckland",
|
|
37308
|
+
Wellington: "Wellington",
|
|
37309
|
+
NukuAlofa: "Nuku'alofa",
|
|
37310
|
+
TokelauIs: "Tokelau Is.",
|
|
37311
|
+
ChathamIs: "Chatham Is.",
|
|
37312
|
+
Samoa: "Samoa"
|
|
37313
|
+
};
|
|
37314
|
+
State$inboundSchema = nativeEnumType(State);
|
|
37315
|
+
State$outboundSchema = State$inboundSchema;
|
|
37316
|
+
((State$) => {
|
|
37317
|
+
State$.inboundSchema = State$inboundSchema;
|
|
37318
|
+
State$.outboundSchema = State$outboundSchema;
|
|
37319
|
+
})(State$ ||= {});
|
|
37320
|
+
Timezone$inboundSchema = nativeEnumType(Timezone);
|
|
37321
|
+
Timezone$outboundSchema = Timezone$inboundSchema;
|
|
37322
|
+
((Timezone$) => {
|
|
37323
|
+
Timezone$.inboundSchema = Timezone$inboundSchema;
|
|
37324
|
+
Timezone$.outboundSchema = Timezone$outboundSchema;
|
|
37325
|
+
})(Timezone$ ||= {});
|
|
37104
37326
|
UserLocation$inboundSchema = objectType({
|
|
37105
37327
|
address: nullableType(stringType()).optional(),
|
|
37106
37328
|
address1: nullableType(stringType()).optional(),
|
|
37107
37329
|
address2: nullableType(stringType()).optional(),
|
|
37108
37330
|
city: nullableType(stringType()).optional(),
|
|
37109
|
-
state: nullableType(
|
|
37331
|
+
state: nullableType(State$inboundSchema).optional(),
|
|
37110
37332
|
zip: nullableType(stringType()).optional(),
|
|
37111
|
-
|
|
37333
|
+
phone: nullableType(stringType()).optional(),
|
|
37334
|
+
mobile_phone: nullableType(stringType()).optional(),
|
|
37335
|
+
fax: nullableType(stringType()).optional(),
|
|
37336
|
+
country: nullableType(stringType()).optional(),
|
|
37337
|
+
timezone: nullableType(Timezone$inboundSchema).optional()
|
|
37338
|
+
}).transform((v2) => {
|
|
37339
|
+
return remap(v2, {
|
|
37340
|
+
mobile_phone: "mobilePhone"
|
|
37341
|
+
});
|
|
37112
37342
|
});
|
|
37113
37343
|
UserLocation$outboundSchema = objectType({
|
|
37114
37344
|
address: nullableType(stringType()).optional(),
|
|
37115
37345
|
address1: nullableType(stringType()).optional(),
|
|
37116
37346
|
address2: nullableType(stringType()).optional(),
|
|
37117
37347
|
city: nullableType(stringType()).optional(),
|
|
37118
|
-
state: nullableType(
|
|
37348
|
+
state: nullableType(State$outboundSchema).optional(),
|
|
37119
37349
|
zip: nullableType(stringType()).optional(),
|
|
37120
|
-
|
|
37350
|
+
phone: nullableType(stringType()).optional(),
|
|
37351
|
+
mobilePhone: nullableType(stringType()).optional(),
|
|
37352
|
+
fax: nullableType(stringType()).optional(),
|
|
37353
|
+
country: nullableType(stringType()).optional(),
|
|
37354
|
+
timezone: nullableType(Timezone$outboundSchema).optional()
|
|
37355
|
+
}).transform((v2) => {
|
|
37356
|
+
return remap(v2, {
|
|
37357
|
+
mobilePhone: "mobile_phone"
|
|
37358
|
+
});
|
|
37121
37359
|
});
|
|
37122
37360
|
((UserLocation$) => {
|
|
37123
37361
|
UserLocation$.inboundSchema = UserLocation$inboundSchema;
|
|
@@ -38998,22 +39236,40 @@ var init_listvendorfacilitystatuses = __esm(() => {
|
|
|
38998
39236
|
});
|
|
38999
39237
|
|
|
39000
39238
|
// src/models/operations/listvendorinvoices.ts
|
|
39001
|
-
var ListVendorInvoicesRequest$inboundSchema, ListVendorInvoicesRequest$outboundSchema, ListVendorInvoicesRequest$, ListVendorInvoicesResponseBody$inboundSchema, ListVendorInvoicesResponseBody$outboundSchema, ListVendorInvoicesResponseBody$, ListVendorInvoicesResponse$inboundSchema, ListVendorInvoicesResponse$outboundSchema, ListVendorInvoicesResponse$;
|
|
39239
|
+
var InvoiceStatus, InvoiceStatus$inboundSchema, InvoiceStatus$outboundSchema, InvoiceStatus$, ListVendorInvoicesRequest$inboundSchema, ListVendorInvoicesRequest$outboundSchema, ListVendorInvoicesRequest$, ListVendorInvoicesResponseBody$inboundSchema, ListVendorInvoicesResponseBody$outboundSchema, ListVendorInvoicesResponseBody$, ListVendorInvoicesResponse$inboundSchema, ListVendorInvoicesResponse$outboundSchema, ListVendorInvoicesResponse$;
|
|
39002
39240
|
var init_listvendorinvoices = __esm(() => {
|
|
39003
39241
|
init_lib();
|
|
39004
39242
|
init_primitives();
|
|
39005
39243
|
init_components();
|
|
39244
|
+
InvoiceStatus = {
|
|
39245
|
+
Cart: "cart",
|
|
39246
|
+
Pending: "pending",
|
|
39247
|
+
Canceled: "canceled",
|
|
39248
|
+
ReadyToShip: "ready to ship",
|
|
39249
|
+
Processed: "processed",
|
|
39250
|
+
UnderReview: "under review"
|
|
39251
|
+
};
|
|
39252
|
+
InvoiceStatus$inboundSchema = nativeEnumType(InvoiceStatus);
|
|
39253
|
+
InvoiceStatus$outboundSchema = InvoiceStatus$inboundSchema;
|
|
39254
|
+
((InvoiceStatus$) => {
|
|
39255
|
+
InvoiceStatus$.inboundSchema = InvoiceStatus$inboundSchema;
|
|
39256
|
+
InvoiceStatus$.outboundSchema = InvoiceStatus$outboundSchema;
|
|
39257
|
+
})(InvoiceStatus$ ||= {});
|
|
39006
39258
|
ListVendorInvoicesRequest$inboundSchema = objectType({
|
|
39007
39259
|
sort: nullableType(stringType()).optional(),
|
|
39008
39260
|
desc: Desc$inboundSchema.optional(),
|
|
39009
39261
|
page: numberType().int().optional(),
|
|
39010
39262
|
items_per_page: numberType().int().optional(),
|
|
39011
39263
|
expand: arrayType(Expand$inboundSchema).optional(),
|
|
39012
|
-
vendor_id_or_me: stringType()
|
|
39264
|
+
vendor_id_or_me: stringType(),
|
|
39265
|
+
invoice_number: stringType().optional(),
|
|
39266
|
+
invoice_status: InvoiceStatus$inboundSchema.optional()
|
|
39013
39267
|
}).transform((v2) => {
|
|
39014
39268
|
return remap(v2, {
|
|
39015
39269
|
items_per_page: "itemsPerPage",
|
|
39016
|
-
vendor_id_or_me: "vendorIdOrMe"
|
|
39270
|
+
vendor_id_or_me: "vendorIdOrMe",
|
|
39271
|
+
invoice_number: "invoiceNumber",
|
|
39272
|
+
invoice_status: "invoiceStatus"
|
|
39017
39273
|
});
|
|
39018
39274
|
});
|
|
39019
39275
|
ListVendorInvoicesRequest$outboundSchema = objectType({
|
|
@@ -39022,11 +39278,15 @@ var init_listvendorinvoices = __esm(() => {
|
|
|
39022
39278
|
page: numberType().int().optional(),
|
|
39023
39279
|
itemsPerPage: numberType().int().optional(),
|
|
39024
39280
|
expand: arrayType(Expand$outboundSchema).optional(),
|
|
39025
|
-
vendorIdOrMe: stringType()
|
|
39281
|
+
vendorIdOrMe: stringType(),
|
|
39282
|
+
invoiceNumber: stringType().optional(),
|
|
39283
|
+
invoiceStatus: InvoiceStatus$outboundSchema.optional()
|
|
39026
39284
|
}).transform((v2) => {
|
|
39027
39285
|
return remap(v2, {
|
|
39028
39286
|
itemsPerPage: "items_per_page",
|
|
39029
|
-
vendorIdOrMe: "vendor_id_or_me"
|
|
39287
|
+
vendorIdOrMe: "vendor_id_or_me",
|
|
39288
|
+
invoiceNumber: "invoice_number",
|
|
39289
|
+
invoiceStatus: "invoice_status"
|
|
39030
39290
|
});
|
|
39031
39291
|
});
|
|
39032
39292
|
((ListVendorInvoicesRequest$) => {
|
|
@@ -39540,6 +39800,78 @@ var init_passwordresetrequest = __esm(() => {
|
|
|
39540
39800
|
})(PasswordResetRequestPasswordResetRequestOk$ ||= {});
|
|
39541
39801
|
});
|
|
39542
39802
|
|
|
39803
|
+
// src/models/operations/updatevendordetails.ts
|
|
39804
|
+
var EmailRecepient, EmailRecepient$inboundSchema, EmailRecepient$outboundSchema, EmailRecepient$, UpdateVendorDetailsRequestBody$inboundSchema, UpdateVendorDetailsRequestBody$outboundSchema, UpdateVendorDetailsRequestBody$, UpdateVendorDetailsRequest$inboundSchema, UpdateVendorDetailsRequest$outboundSchema, UpdateVendorDetailsRequest$;
|
|
39805
|
+
var init_updatevendordetails = __esm(() => {
|
|
39806
|
+
init_lib();
|
|
39807
|
+
init_primitives();
|
|
39808
|
+
init_components();
|
|
39809
|
+
EmailRecepient = {
|
|
39810
|
+
NoEmail: "No email",
|
|
39811
|
+
Vendor: "Vendor",
|
|
39812
|
+
CompanyManager: "Company manager",
|
|
39813
|
+
VendorAndCompanyManager: "Vendor and company manager"
|
|
39814
|
+
};
|
|
39815
|
+
EmailRecepient$inboundSchema = nativeEnumType(EmailRecepient);
|
|
39816
|
+
EmailRecepient$outboundSchema = EmailRecepient$inboundSchema;
|
|
39817
|
+
((EmailRecepient$) => {
|
|
39818
|
+
EmailRecepient$.inboundSchema = EmailRecepient$inboundSchema;
|
|
39819
|
+
EmailRecepient$.outboundSchema = EmailRecepient$outboundSchema;
|
|
39820
|
+
})(EmailRecepient$ ||= {});
|
|
39821
|
+
UpdateVendorDetailsRequestBody$inboundSchema = objectType({
|
|
39822
|
+
qr_code: stringType().optional(),
|
|
39823
|
+
email_recepient: EmailRecepient$inboundSchema.optional(),
|
|
39824
|
+
send_weekly_summary_email: booleanType().optional(),
|
|
39825
|
+
title: stringType().optional(),
|
|
39826
|
+
location: nullableType(UserLocation$inboundSchema).optional()
|
|
39827
|
+
}).transform((v2) => {
|
|
39828
|
+
return remap(v2, {
|
|
39829
|
+
qr_code: "qrCode",
|
|
39830
|
+
email_recepient: "emailRecepient",
|
|
39831
|
+
send_weekly_summary_email: "sendWeeklySummaryEmail"
|
|
39832
|
+
});
|
|
39833
|
+
});
|
|
39834
|
+
UpdateVendorDetailsRequestBody$outboundSchema = objectType({
|
|
39835
|
+
qrCode: stringType().optional(),
|
|
39836
|
+
emailRecepient: EmailRecepient$outboundSchema.optional(),
|
|
39837
|
+
sendWeeklySummaryEmail: booleanType().optional(),
|
|
39838
|
+
title: stringType().optional(),
|
|
39839
|
+
location: nullableType(UserLocation$outboundSchema).optional()
|
|
39840
|
+
}).transform((v2) => {
|
|
39841
|
+
return remap(v2, {
|
|
39842
|
+
qrCode: "qr_code",
|
|
39843
|
+
emailRecepient: "email_recepient",
|
|
39844
|
+
sendWeeklySummaryEmail: "send_weekly_summary_email"
|
|
39845
|
+
});
|
|
39846
|
+
});
|
|
39847
|
+
((UpdateVendorDetailsRequestBody$) => {
|
|
39848
|
+
UpdateVendorDetailsRequestBody$.inboundSchema = UpdateVendorDetailsRequestBody$inboundSchema;
|
|
39849
|
+
UpdateVendorDetailsRequestBody$.outboundSchema = UpdateVendorDetailsRequestBody$outboundSchema;
|
|
39850
|
+
})(UpdateVendorDetailsRequestBody$ ||= {});
|
|
39851
|
+
UpdateVendorDetailsRequest$inboundSchema = objectType({
|
|
39852
|
+
vendor_id_or_me: stringType(),
|
|
39853
|
+
RequestBody: lazyType(() => UpdateVendorDetailsRequestBody$inboundSchema)
|
|
39854
|
+
}).transform((v2) => {
|
|
39855
|
+
return remap(v2, {
|
|
39856
|
+
vendor_id_or_me: "vendorIdOrMe",
|
|
39857
|
+
RequestBody: "requestBody"
|
|
39858
|
+
});
|
|
39859
|
+
});
|
|
39860
|
+
UpdateVendorDetailsRequest$outboundSchema = objectType({
|
|
39861
|
+
vendorIdOrMe: stringType(),
|
|
39862
|
+
requestBody: lazyType(() => UpdateVendorDetailsRequestBody$outboundSchema)
|
|
39863
|
+
}).transform((v2) => {
|
|
39864
|
+
return remap(v2, {
|
|
39865
|
+
vendorIdOrMe: "vendor_id_or_me",
|
|
39866
|
+
requestBody: "RequestBody"
|
|
39867
|
+
});
|
|
39868
|
+
});
|
|
39869
|
+
((UpdateVendorDetailsRequest$) => {
|
|
39870
|
+
UpdateVendorDetailsRequest$.inboundSchema = UpdateVendorDetailsRequest$inboundSchema;
|
|
39871
|
+
UpdateVendorDetailsRequest$.outboundSchema = UpdateVendorDetailsRequest$outboundSchema;
|
|
39872
|
+
})(UpdateVendorDetailsRequest$ ||= {});
|
|
39873
|
+
});
|
|
39874
|
+
|
|
39543
39875
|
// src/models/operations/updatevendormanagedbycompany.ts
|
|
39544
39876
|
var UpdateVendorManagedByCompanyRequestBody$inboundSchema, UpdateVendorManagedByCompanyRequestBody$outboundSchema, UpdateVendorManagedByCompanyRequestBody$, UpdateVendorManagedByCompanyRequest$inboundSchema, UpdateVendorManagedByCompanyRequest$outboundSchema, UpdateVendorManagedByCompanyRequest$, UpdateVendorManagedByCompanyResponseBody$inboundSchema, UpdateVendorManagedByCompanyResponseBody$outboundSchema, UpdateVendorManagedByCompanyResponseBody$;
|
|
39545
39877
|
var init_updatevendormanagedbycompany = __esm(() => {
|
|
@@ -39775,6 +40107,7 @@ var init_operations = __esm(() => {
|
|
|
39775
40107
|
init_magiclink();
|
|
39776
40108
|
init_password();
|
|
39777
40109
|
init_passwordresetrequest();
|
|
40110
|
+
init_updatevendordetails();
|
|
39778
40111
|
init_updatevendormanagedbycompany();
|
|
39779
40112
|
init_updatevendorscrubdetails();
|
|
39780
40113
|
init_vendorscanout();
|
|
@@ -42434,6 +42767,8 @@ async function $do23(client, request, options) {
|
|
|
42434
42767
|
expand: payload.expand
|
|
42435
42768
|
}, { explode: false }), encodeFormQuery({
|
|
42436
42769
|
desc: payload.desc,
|
|
42770
|
+
invoice_number: payload.invoice_number,
|
|
42771
|
+
invoice_status: payload.invoice_status,
|
|
42437
42772
|
items_per_page: payload.items_per_page,
|
|
42438
42773
|
page: payload.page,
|
|
42439
42774
|
sort: payload.sort
|
|
@@ -43100,11 +43435,118 @@ List vendor scrub purchases`,
|
|
|
43100
43435
|
};
|
|
43101
43436
|
});
|
|
43102
43437
|
|
|
43103
|
-
// src/funcs/
|
|
43104
|
-
function
|
|
43438
|
+
// src/funcs/vendorsUpdateVendorDetails.ts
|
|
43439
|
+
function vendorsUpdateVendorDetails(client, request, options) {
|
|
43105
43440
|
return new APIPromise($do28(client, request, options));
|
|
43106
43441
|
}
|
|
43107
43442
|
async function $do28(client, request, options) {
|
|
43443
|
+
const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43444
|
+
if (!parsed.ok) {
|
|
43445
|
+
return [parsed, { status: "invalid" }];
|
|
43446
|
+
}
|
|
43447
|
+
const payload = parsed.value;
|
|
43448
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
43449
|
+
const pathParams = {
|
|
43450
|
+
vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
|
|
43451
|
+
explode: false,
|
|
43452
|
+
charEncoding: "percent"
|
|
43453
|
+
})
|
|
43454
|
+
};
|
|
43455
|
+
const path = pathToFunc("/vendors/{vendor_id_or_me}")(pathParams);
|
|
43456
|
+
const headers = new Headers(compactMap({
|
|
43457
|
+
"Content-Type": "application/json",
|
|
43458
|
+
Accept: "application/json"
|
|
43459
|
+
}));
|
|
43460
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
43461
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
43462
|
+
const context = {
|
|
43463
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
43464
|
+
operationID: "updateVendorDetails",
|
|
43465
|
+
oAuth2Scopes: [],
|
|
43466
|
+
resolvedSecurity: requestSecurity,
|
|
43467
|
+
securitySource: client._options.security,
|
|
43468
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
43469
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
43470
|
+
};
|
|
43471
|
+
const requestRes = client._createRequest(context, {
|
|
43472
|
+
security: requestSecurity,
|
|
43473
|
+
method: "PUT",
|
|
43474
|
+
baseURL: options?.serverURL,
|
|
43475
|
+
path,
|
|
43476
|
+
headers,
|
|
43477
|
+
body,
|
|
43478
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
43479
|
+
}, options);
|
|
43480
|
+
if (!requestRes.ok) {
|
|
43481
|
+
return [requestRes, { status: "invalid" }];
|
|
43482
|
+
}
|
|
43483
|
+
const req = requestRes.value;
|
|
43484
|
+
const doResult = await client._do(req, {
|
|
43485
|
+
context,
|
|
43486
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
43487
|
+
retryConfig: context.retryConfig,
|
|
43488
|
+
retryCodes: context.retryCodes
|
|
43489
|
+
});
|
|
43490
|
+
if (!doResult.ok) {
|
|
43491
|
+
return [doResult, { status: "request-error", request: req }];
|
|
43492
|
+
}
|
|
43493
|
+
const response = doResult.value;
|
|
43494
|
+
const responseFields = {
|
|
43495
|
+
HttpMeta: { Response: response, Request: req }
|
|
43496
|
+
};
|
|
43497
|
+
const [result] = await match(json(200, booleanType()), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43498
|
+
if (!result.ok) {
|
|
43499
|
+
return [result, { status: "complete", request: req, response }];
|
|
43500
|
+
}
|
|
43501
|
+
return [result, { status: "complete", request: req, response }];
|
|
43502
|
+
}
|
|
43503
|
+
var init_vendorsUpdateVendorDetails = __esm(() => {
|
|
43504
|
+
init_lib();
|
|
43505
|
+
init_encodings();
|
|
43506
|
+
init_matchers();
|
|
43507
|
+
init_primitives();
|
|
43508
|
+
init_schemas();
|
|
43509
|
+
init_security();
|
|
43510
|
+
init_url();
|
|
43511
|
+
init_errors();
|
|
43512
|
+
init_operations();
|
|
43513
|
+
init_async();
|
|
43514
|
+
});
|
|
43515
|
+
|
|
43516
|
+
// src/mcp-server/tools/vendorsUpdateVendorDetails.ts
|
|
43517
|
+
var args27, tool$vendorsUpdateVendorDetails;
|
|
43518
|
+
var init_vendorsUpdateVendorDetails2 = __esm(() => {
|
|
43519
|
+
init_vendorsUpdateVendorDetails();
|
|
43520
|
+
init_operations();
|
|
43521
|
+
init_tools();
|
|
43522
|
+
args27 = {
|
|
43523
|
+
request: UpdateVendorDetailsRequest$inboundSchema
|
|
43524
|
+
};
|
|
43525
|
+
tool$vendorsUpdateVendorDetails = {
|
|
43526
|
+
name: "vendors-update-vendor-details",
|
|
43527
|
+
description: `Update vendor details
|
|
43528
|
+
|
|
43529
|
+
It will update the vendor details`,
|
|
43530
|
+
args: args27,
|
|
43531
|
+
tool: async (client, args28, ctx) => {
|
|
43532
|
+
const [result, apiCall] = await vendorsUpdateVendorDetails(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43533
|
+
if (!result.ok) {
|
|
43534
|
+
return {
|
|
43535
|
+
content: [{ type: "text", text: result.error.message }],
|
|
43536
|
+
isError: true
|
|
43537
|
+
};
|
|
43538
|
+
}
|
|
43539
|
+
const value = result.value;
|
|
43540
|
+
return formatResult(value, apiCall);
|
|
43541
|
+
}
|
|
43542
|
+
};
|
|
43543
|
+
});
|
|
43544
|
+
|
|
43545
|
+
// src/funcs/vendorsUpdateVendorManagedByCompany.ts
|
|
43546
|
+
function vendorsUpdateVendorManagedByCompany(client, request, options) {
|
|
43547
|
+
return new APIPromise($do29(client, request, options));
|
|
43548
|
+
}
|
|
43549
|
+
async function $do29(client, request, options) {
|
|
43108
43550
|
const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43109
43551
|
if (!parsed.ok) {
|
|
43110
43552
|
return [parsed, { status: "invalid" }];
|
|
@@ -43178,12 +43620,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
|
|
|
43178
43620
|
});
|
|
43179
43621
|
|
|
43180
43622
|
// src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
|
|
43181
|
-
var
|
|
43623
|
+
var args28, tool$vendorsUpdateVendorManagedByCompany;
|
|
43182
43624
|
var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
43183
43625
|
init_vendorsUpdateVendorManagedByCompany();
|
|
43184
43626
|
init_operations();
|
|
43185
43627
|
init_tools();
|
|
43186
|
-
|
|
43628
|
+
args28 = {
|
|
43187
43629
|
request: UpdateVendorManagedByCompanyRequest$inboundSchema
|
|
43188
43630
|
};
|
|
43189
43631
|
tool$vendorsUpdateVendorManagedByCompany = {
|
|
@@ -43191,9 +43633,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
|
|
|
43191
43633
|
description: `Update vendor managed by company access rights
|
|
43192
43634
|
|
|
43193
43635
|
It will update the vendor managed by company access rights`,
|
|
43194
|
-
args:
|
|
43195
|
-
tool: async (client,
|
|
43196
|
-
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client,
|
|
43636
|
+
args: args28,
|
|
43637
|
+
tool: async (client, args29, ctx) => {
|
|
43638
|
+
const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43197
43639
|
if (!result.ok) {
|
|
43198
43640
|
return {
|
|
43199
43641
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43208,9 +43650,9 @@ It will update the vendor managed by company access rights`,
|
|
|
43208
43650
|
|
|
43209
43651
|
// src/funcs/vendorsUpdateVendorScrubDetails.ts
|
|
43210
43652
|
function vendorsUpdateVendorScrubDetails(client, request, options) {
|
|
43211
|
-
return new APIPromise($
|
|
43653
|
+
return new APIPromise($do30(client, request, options));
|
|
43212
43654
|
}
|
|
43213
|
-
async function $
|
|
43655
|
+
async function $do30(client, request, options) {
|
|
43214
43656
|
const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43215
43657
|
if (!parsed.ok) {
|
|
43216
43658
|
return [parsed, { status: "invalid" }];
|
|
@@ -43285,12 +43727,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
|
|
|
43285
43727
|
});
|
|
43286
43728
|
|
|
43287
43729
|
// src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
|
|
43288
|
-
var
|
|
43730
|
+
var args29, tool$vendorsUpdateVendorScrubDetails;
|
|
43289
43731
|
var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
43290
43732
|
init_vendorsUpdateVendorScrubDetails();
|
|
43291
43733
|
init_operations();
|
|
43292
43734
|
init_tools();
|
|
43293
|
-
|
|
43735
|
+
args29 = {
|
|
43294
43736
|
request: UpdateVendorScrubDetailsRequest$inboundSchema
|
|
43295
43737
|
};
|
|
43296
43738
|
tool$vendorsUpdateVendorScrubDetails = {
|
|
@@ -43298,9 +43740,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
|
|
|
43298
43740
|
description: `Update vendor scrub details
|
|
43299
43741
|
|
|
43300
43742
|
Update vendor scrub details`,
|
|
43301
|
-
args:
|
|
43302
|
-
tool: async (client,
|
|
43303
|
-
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client,
|
|
43743
|
+
args: args29,
|
|
43744
|
+
tool: async (client, args30, ctx) => {
|
|
43745
|
+
const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43304
43746
|
if (!result.ok) {
|
|
43305
43747
|
return {
|
|
43306
43748
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43315,9 +43757,9 @@ Update vendor scrub details`,
|
|
|
43315
43757
|
|
|
43316
43758
|
// src/funcs/webhooksGetWebhookEndpoint.ts
|
|
43317
43759
|
function webhooksGetWebhookEndpoint(client, request, options) {
|
|
43318
|
-
return new APIPromise($
|
|
43760
|
+
return new APIPromise($do31(client, request, options));
|
|
43319
43761
|
}
|
|
43320
|
-
async function $
|
|
43762
|
+
async function $do31(client, request, options) {
|
|
43321
43763
|
const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43322
43764
|
if (!parsed.ok) {
|
|
43323
43765
|
return [parsed, { status: "invalid" }];
|
|
@@ -43391,12 +43833,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
|
|
|
43391
43833
|
});
|
|
43392
43834
|
|
|
43393
43835
|
// src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
|
|
43394
|
-
var
|
|
43836
|
+
var args30, tool$webhooksGetWebhookEndpoint;
|
|
43395
43837
|
var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
43396
43838
|
init_webhooksGetWebhookEndpoint();
|
|
43397
43839
|
init_operations();
|
|
43398
43840
|
init_tools();
|
|
43399
|
-
|
|
43841
|
+
args30 = {
|
|
43400
43842
|
request: GetWebhookEndpointRequest$inboundSchema
|
|
43401
43843
|
};
|
|
43402
43844
|
tool$webhooksGetWebhookEndpoint = {
|
|
@@ -43404,9 +43846,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
|
|
|
43404
43846
|
description: `Retrieves the webhook endpoint with the given ID.
|
|
43405
43847
|
|
|
43406
43848
|
Returns the definition of a webhook endpoint by ID.`,
|
|
43407
|
-
args:
|
|
43408
|
-
tool: async (client,
|
|
43409
|
-
const [result, apiCall] = await webhooksGetWebhookEndpoint(client,
|
|
43849
|
+
args: args30,
|
|
43850
|
+
tool: async (client, args31, ctx) => {
|
|
43851
|
+
const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43410
43852
|
if (!result.ok) {
|
|
43411
43853
|
return {
|
|
43412
43854
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43421,9 +43863,9 @@ Returns the definition of a webhook endpoint by ID.`,
|
|
|
43421
43863
|
|
|
43422
43864
|
// src/funcs/webhooksListAllWebhookEndpoints.ts
|
|
43423
43865
|
function webhooksListAllWebhookEndpoints(client, request, options) {
|
|
43424
|
-
return new APIPromise($
|
|
43866
|
+
return new APIPromise($do32(client, request, options));
|
|
43425
43867
|
}
|
|
43426
|
-
async function $
|
|
43868
|
+
async function $do32(client, request, options) {
|
|
43427
43869
|
const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43428
43870
|
if (!parsed.ok) {
|
|
43429
43871
|
return [parsed, { status: "invalid" }];
|
|
@@ -43497,12 +43939,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
|
|
|
43497
43939
|
});
|
|
43498
43940
|
|
|
43499
43941
|
// src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
|
|
43500
|
-
var
|
|
43942
|
+
var args31, tool$webhooksListAllWebhookEndpoints;
|
|
43501
43943
|
var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
43502
43944
|
init_webhooksListAllWebhookEndpoints();
|
|
43503
43945
|
init_operations();
|
|
43504
43946
|
init_tools();
|
|
43505
|
-
|
|
43947
|
+
args31 = {
|
|
43506
43948
|
request: ListAllWebhookEndpointsRequest$inboundSchema
|
|
43507
43949
|
};
|
|
43508
43950
|
tool$webhooksListAllWebhookEndpoints = {
|
|
@@ -43510,9 +43952,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
|
|
|
43510
43952
|
description: `List all webhook endpoints
|
|
43511
43953
|
|
|
43512
43954
|
Returns a list of your webhook endpoints.`,
|
|
43513
|
-
args:
|
|
43514
|
-
tool: async (client,
|
|
43515
|
-
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client,
|
|
43955
|
+
args: args31,
|
|
43956
|
+
tool: async (client, args32, ctx) => {
|
|
43957
|
+
const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43516
43958
|
if (!result.ok) {
|
|
43517
43959
|
return {
|
|
43518
43960
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43529,14 +43971,14 @@ Returns a list of your webhook endpoints.`,
|
|
|
43529
43971
|
function createMCPServer(deps) {
|
|
43530
43972
|
const server = new McpServer({
|
|
43531
43973
|
name: "GreenSecurity",
|
|
43532
|
-
version: "0.30.
|
|
43974
|
+
version: "0.30.17"
|
|
43533
43975
|
});
|
|
43534
43976
|
const client = new GreenSecurityCore({
|
|
43535
43977
|
security: deps.security,
|
|
43536
43978
|
serverURL: deps.serverURL,
|
|
43537
43979
|
serverIdx: deps.serverIdx
|
|
43538
43980
|
});
|
|
43539
|
-
const scopes = new Set(deps.scopes
|
|
43981
|
+
const scopes = new Set(deps.scopes);
|
|
43540
43982
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
43541
43983
|
const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
|
|
43542
43984
|
const resource = createRegisterResource(deps.logger, server, client, scopes);
|
|
@@ -43554,6 +43996,7 @@ function createMCPServer(deps) {
|
|
|
43554
43996
|
tool(tool$vendorsUpdateVendorScrubDetails);
|
|
43555
43997
|
tool(tool$vendorsListVendorScrubPackages);
|
|
43556
43998
|
tool(tool$vendorsGetVendorsDetails);
|
|
43999
|
+
tool(tool$vendorsUpdateVendorDetails);
|
|
43557
44000
|
tool(tool$vendorsListVendorCredits);
|
|
43558
44001
|
tool(tool$vendorsListVendorAdditionalFacilityFields);
|
|
43559
44002
|
tool(tool$vendorsListVendorManagedByCompanies);
|
|
@@ -43580,7 +44023,6 @@ var init_server2 = __esm(() => {
|
|
|
43580
44023
|
init_mcp();
|
|
43581
44024
|
init_core();
|
|
43582
44025
|
init_resources();
|
|
43583
|
-
init_scopes();
|
|
43584
44026
|
init_tools();
|
|
43585
44027
|
init_organizationsGetFacility2();
|
|
43586
44028
|
init_organizationsListOrSearchFacilities2();
|
|
@@ -43609,6 +44051,7 @@ var init_server2 = __esm(() => {
|
|
|
43609
44051
|
init_vendorsListVendorScrubDetails2();
|
|
43610
44052
|
init_vendorsListVendorScrubPackages2();
|
|
43611
44053
|
init_vendorsListVendorScrubPurchases2();
|
|
44054
|
+
init_vendorsUpdateVendorDetails2();
|
|
43612
44055
|
init_vendorsUpdateVendorManagedByCompany2();
|
|
43613
44056
|
init_vendorsUpdateVendorScrubDetails2();
|
|
43614
44057
|
init_webhooksGetWebhookEndpoint2();
|
|
@@ -44697,7 +45140,11 @@ function buildContext(process2) {
|
|
|
44697
45140
|
// src/mcp-server/cli/start/command.ts
|
|
44698
45141
|
init_lib();
|
|
44699
45142
|
init_console_logger();
|
|
44700
|
-
|
|
45143
|
+
|
|
45144
|
+
// src/mcp-server/scopes.ts
|
|
45145
|
+
var mcpScopes = [];
|
|
45146
|
+
|
|
45147
|
+
// src/mcp-server/cli/start/command.ts
|
|
44701
45148
|
var startCommand = tn({
|
|
44702
45149
|
loader: async () => {
|
|
44703
45150
|
const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
|
|
@@ -44810,7 +45257,7 @@ var routes = rn({
|
|
|
44810
45257
|
var app = Ve(routes, {
|
|
44811
45258
|
name: "mcp",
|
|
44812
45259
|
versionInfo: {
|
|
44813
|
-
currentVersion: "0.30.
|
|
45260
|
+
currentVersion: "0.30.17"
|
|
44814
45261
|
}
|
|
44815
45262
|
});
|
|
44816
45263
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -44818,5 +45265,5 @@ export {
|
|
|
44818
45265
|
app
|
|
44819
45266
|
};
|
|
44820
45267
|
|
|
44821
|
-
//# debugId=
|
|
45268
|
+
//# debugId=029AAF59282D9EB264756E2164756E21
|
|
44822
45269
|
//# sourceMappingURL=mcp-server.js.map
|