@greensecurity/javascript-sdk 0.30.29 → 0.30.33
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/bin/mcp-server.js +17 -25
- package/bin/mcp-server.js.map +9 -9
- 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 +3 -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/funcs/organizationsListOrSearchFacilities.js +2 -0
- package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorInvoices.js +2 -2
- package/dist/commonjs/funcs/vendorsListVendorInvoices.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/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/operations/listorsearchfacilities.d.ts +10 -0
- package/dist/commonjs/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorsearchfacilities.js +4 -0
- package/dist/commonjs/models/operations/listorsearchfacilities.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts +3 -45
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.js +1 -15
- package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +6 -0
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js +4 -0
- package/dist/commonjs/react-query/organizationsListOrSearchFacilities.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 +3 -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/funcs/organizationsListOrSearchFacilities.js +2 -0
- package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorInvoices.js +2 -2
- package/dist/esm/funcs/vendorsListVendorInvoices.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/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/operations/listorsearchfacilities.d.ts +10 -0
- package/dist/esm/models/operations/listorsearchfacilities.d.ts.map +1 -1
- package/dist/esm/models/operations/listorsearchfacilities.js +4 -0
- package/dist/esm/models/operations/listorsearchfacilities.js.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.d.ts +3 -45
- package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.js +1 -15
- package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +6 -0
- package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchFacilities.js +4 -0
- package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +3 -3
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/funcs/organizationsListOrSearchFacilities.ts +2 -0
- package/src/funcs/vendorsListVendorInvoices.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/listorsearchfacilities.ts +14 -0
- package/src/models/operations/listvendorinvoices.ts +1 -15
- package/src/react-query/organizationsListOrSearchFacilities.ts +10 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34166,9 +34166,9 @@ var init_config = __esm(() => {
|
|
|
34166
34166
|
SDK_METADATA = {
|
|
34167
34167
|
language: "typescript",
|
|
34168
34168
|
openapiDocVersion: "0.0.3",
|
|
34169
|
-
sdkVersion: "0.30.
|
|
34170
|
-
genVersion: "2.
|
|
34171
|
-
userAgent: "speakeasy-sdk/typescript 0.30.
|
|
34169
|
+
sdkVersion: "0.30.33",
|
|
34170
|
+
genVersion: "2.591.1",
|
|
34171
|
+
userAgent: "speakeasy-sdk/typescript 0.30.33 2.591.1 0.0.3 @greensecurity/javascript-sdk"
|
|
34172
34172
|
};
|
|
34173
34173
|
});
|
|
34174
34174
|
|
|
@@ -38954,7 +38954,9 @@ var init_listorsearchfacilities = __esm(() => {
|
|
|
38954
38954
|
system_id: numberType().int().optional(),
|
|
38955
38955
|
name_like: stringType().optional(),
|
|
38956
38956
|
state_like: stringType().optional(),
|
|
38957
|
-
active_status: ActiveStatus$inboundSchema.default("Active")
|
|
38957
|
+
active_status: ActiveStatus$inboundSchema.default("Active"),
|
|
38958
|
+
latitude: numberType().optional(),
|
|
38959
|
+
longitude: numberType().optional()
|
|
38958
38960
|
}).transform((v2) => {
|
|
38959
38961
|
return remap(v2, {
|
|
38960
38962
|
items_per_page: "itemsPerPage",
|
|
@@ -38973,7 +38975,9 @@ var init_listorsearchfacilities = __esm(() => {
|
|
|
38973
38975
|
systemId: numberType().int().optional(),
|
|
38974
38976
|
nameLike: stringType().optional(),
|
|
38975
38977
|
stateLike: stringType().optional(),
|
|
38976
|
-
activeStatus: ActiveStatus$outboundSchema.default("Active")
|
|
38978
|
+
activeStatus: ActiveStatus$outboundSchema.default("Active"),
|
|
38979
|
+
latitude: numberType().optional(),
|
|
38980
|
+
longitude: numberType().optional()
|
|
38977
38981
|
}).transform((v2) => {
|
|
38978
38982
|
return remap(v2, {
|
|
38979
38983
|
itemsPerPage: "items_per_page",
|
|
@@ -39418,22 +39422,8 @@ var init_listvendorinvoices = __esm(() => {
|
|
|
39418
39422
|
init_primitives();
|
|
39419
39423
|
init_components();
|
|
39420
39424
|
InvoiceFinancialStatus = {
|
|
39421
|
-
Pending: "pending",
|
|
39422
|
-
Authorized: "authorized",
|
|
39423
|
-
Captured: "captured",
|
|
39424
|
-
Refunded: "refunded",
|
|
39425
|
-
RefundedToCredits: "refunded to credits",
|
|
39426
|
-
Voided: "voided",
|
|
39427
|
-
Waived: "waived",
|
|
39428
|
-
Overdue: "overdue",
|
|
39429
39425
|
Paid: "paid",
|
|
39430
|
-
|
|
39431
|
-
PaidByCreditCard: "paid by credit card",
|
|
39432
|
-
PaidByCheck: "paid by check",
|
|
39433
|
-
PaidByShareback: "paid by shareback",
|
|
39434
|
-
PaidByPo: "paid by po",
|
|
39435
|
-
PaidByOtherMeans: "paid by other means",
|
|
39436
|
-
Credited: "credited"
|
|
39426
|
+
Unpaid: "unpaid"
|
|
39437
39427
|
};
|
|
39438
39428
|
InvoiceFinancialStatus$inboundSchema = nativeEnumType(InvoiceFinancialStatus);
|
|
39439
39429
|
InvoiceFinancialStatus$outboundSchema = InvoiceFinancialStatus$inboundSchema;
|
|
@@ -40698,6 +40688,8 @@ async function $do3(client, request, options) {
|
|
|
40698
40688
|
active_status: payload.active_status,
|
|
40699
40689
|
desc: payload.desc,
|
|
40700
40690
|
items_per_page: payload.items_per_page,
|
|
40691
|
+
latitude: payload.latitude,
|
|
40692
|
+
longitude: payload.longitude,
|
|
40701
40693
|
name_like: payload.name_like,
|
|
40702
40694
|
page: payload.page,
|
|
40703
40695
|
sort: payload.sort,
|
|
@@ -43313,7 +43305,7 @@ async function $do25(client, request, options) {
|
|
|
43313
43305
|
const req = requestRes.value;
|
|
43314
43306
|
const doResult = await client._do(req, {
|
|
43315
43307
|
context,
|
|
43316
|
-
errorCodes: ["400", "401", "4XX", "5XX"],
|
|
43308
|
+
errorCodes: ["400", "401", "403", "4XX", "5XX"],
|
|
43317
43309
|
retryConfig: context.retryConfig,
|
|
43318
43310
|
retryCodes: context.retryCodes
|
|
43319
43311
|
});
|
|
@@ -43326,7 +43318,7 @@ async function $do25(client, request, options) {
|
|
|
43326
43318
|
};
|
|
43327
43319
|
const [result, raw] = await match(json(200, ListVendorInvoicesResponse$inboundSchema, {
|
|
43328
43320
|
key: "Result"
|
|
43329
|
-
}), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43321
|
+
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
43330
43322
|
if (!result.ok) {
|
|
43331
43323
|
return [haltIterator(result), {
|
|
43332
43324
|
status: "complete",
|
|
@@ -44587,7 +44579,7 @@ Returns a list of your webhook endpoints.`,
|
|
|
44587
44579
|
function createMCPServer(deps) {
|
|
44588
44580
|
const server = new McpServer({
|
|
44589
44581
|
name: "GreenSecurity",
|
|
44590
|
-
version: "0.30.
|
|
44582
|
+
version: "0.30.33"
|
|
44591
44583
|
});
|
|
44592
44584
|
const client = new GreenSecurityCore({
|
|
44593
44585
|
security: deps.security,
|
|
@@ -45879,7 +45871,7 @@ var routes = rn({
|
|
|
45879
45871
|
var app = Ve(routes, {
|
|
45880
45872
|
name: "mcp",
|
|
45881
45873
|
versionInfo: {
|
|
45882
|
-
currentVersion: "0.30.
|
|
45874
|
+
currentVersion: "0.30.33"
|
|
45883
45875
|
}
|
|
45884
45876
|
});
|
|
45885
45877
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -45887,5 +45879,5 @@ export {
|
|
|
45887
45879
|
app
|
|
45888
45880
|
};
|
|
45889
45881
|
|
|
45890
|
-
//# debugId=
|
|
45882
|
+
//# debugId=448787CA53EC3CF664756E2164756E21
|
|
45891
45883
|
//# sourceMappingURL=mcp-server.js.map
|