servicem8 0.9.48 → 0.9.50
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 +15 -2
- package/api.json +1567 -600
- package/bin/mcp-server.js +1219 -374
- package/bin/mcp-server.js.map +28 -12
- package/dist/commonjs/funcs/suppliersCreateSuppliers.d.ts +24 -0
- package/dist/commonjs/funcs/suppliersCreateSuppliers.d.ts.map +1 -0
- package/dist/commonjs/funcs/suppliersCreateSuppliers.js +136 -0
- package/dist/commonjs/funcs/suppliersCreateSuppliers.js.map +1 -0
- package/dist/commonjs/funcs/suppliersDeleteSuppliers.d.ts +23 -0
- package/dist/commonjs/funcs/suppliersDeleteSuppliers.d.ts.map +1 -0
- package/dist/commonjs/funcs/suppliersDeleteSuppliers.js +137 -0
- package/dist/commonjs/funcs/suppliersDeleteSuppliers.js.map +1 -0
- package/dist/commonjs/funcs/suppliersGetSuppliers.d.ts +21 -0
- package/dist/commonjs/funcs/suppliersGetSuppliers.d.ts.map +1 -0
- package/dist/commonjs/funcs/suppliersGetSuppliers.js +135 -0
- package/dist/commonjs/funcs/suppliersGetSuppliers.js.map +1 -0
- package/dist/commonjs/funcs/suppliersListSuppliers.d.ts +23 -0
- package/dist/commonjs/funcs/suppliersListSuppliers.d.ts.map +1 -0
- package/dist/commonjs/funcs/suppliersListSuppliers.js +123 -0
- package/dist/commonjs/funcs/suppliersListSuppliers.js.map +1 -0
- package/dist/commonjs/funcs/suppliersUpdateSuppliers.d.ts +21 -0
- package/dist/commonjs/funcs/suppliersUpdateSuppliers.d.ts.map +1 -0
- package/dist/commonjs/funcs/suppliersUpdateSuppliers.js +136 -0
- package/dist/commonjs/funcs/suppliersUpdateSuppliers.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/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +11 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/suppliersCreateSuppliers.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/suppliersCreateSuppliers.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersCreateSuppliers.js +74 -0
- package/dist/commonjs/mcp-server/tools/suppliersCreateSuppliers.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersDeleteSuppliers.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/suppliersDeleteSuppliers.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersDeleteSuppliers.js +73 -0
- package/dist/commonjs/mcp-server/tools/suppliersDeleteSuppliers.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersGetSuppliers.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/suppliersGetSuppliers.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersGetSuppliers.js +69 -0
- package/dist/commonjs/mcp-server/tools/suppliersGetSuppliers.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersListSuppliers.d.ts +3 -0
- package/dist/commonjs/mcp-server/tools/suppliersListSuppliers.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersListSuppliers.js +35 -0
- package/dist/commonjs/mcp-server/tools/suppliersListSuppliers.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersUpdateSuppliers.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/suppliersUpdateSuppliers.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/suppliersUpdateSuppliers.js +69 -0
- package/dist/commonjs/mcp-server/tools/suppliersUpdateSuppliers.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/job.d.ts +8 -8
- package/dist/commonjs/models/components/job.d.ts.map +1 -1
- package/dist/commonjs/models/components/job.js +13 -14
- package/dist/commonjs/models/components/job.js.map +1 -1
- package/dist/commonjs/models/components/supplier.d.ts +180 -0
- package/dist/commonjs/models/components/supplier.d.ts.map +1 -0
- package/dist/commonjs/models/components/supplier.js +174 -0
- package/dist/commonjs/models/components/supplier.js.map +1 -0
- package/dist/commonjs/models/components/suppliercreate.d.ts +62 -0
- package/dist/commonjs/models/components/suppliercreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/suppliercreate.js +92 -0
- package/dist/commonjs/models/components/suppliercreate.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/convertinboxmessagetojob.d.ts +5 -2
- package/dist/commonjs/models/operations/convertinboxmessagetojob.d.ts.map +1 -1
- package/dist/commonjs/models/operations/convertinboxmessagetojob.js +2 -2
- package/dist/commonjs/models/operations/convertinboxmessagetojob.js.map +1 -1
- package/dist/commonjs/models/operations/createjobfromtemplate.d.ts +3 -3
- package/dist/commonjs/models/operations/createjobfromtemplate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createjobfromtemplate.js +2 -4
- package/dist/commonjs/models/operations/createjobfromtemplate.js.map +1 -1
- package/dist/commonjs/models/operations/createsuppliers.d.ts +36 -0
- package/dist/commonjs/models/operations/createsuppliers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createsuppliers.js +83 -0
- package/dist/commonjs/models/operations/createsuppliers.js.map +1 -0
- package/dist/commonjs/models/operations/deletesuppliers.d.ts +32 -0
- package/dist/commonjs/models/operations/deletesuppliers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletesuppliers.js +69 -0
- package/dist/commonjs/models/operations/deletesuppliers.js.map +1 -0
- package/dist/commonjs/models/operations/getsuppliers.d.ts +32 -0
- package/dist/commonjs/models/operations/getsuppliers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getsuppliers.js +69 -0
- package/dist/commonjs/models/operations/getsuppliers.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updatesuppliers.d.ts +38 -0
- package/dist/commonjs/models/operations/updatesuppliers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatesuppliers.js +81 -0
- package/dist/commonjs/models/operations/updatesuppliers.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/suppliers.d.ts +59 -0
- package/dist/commonjs/sdk/suppliers.d.ts.map +1 -0
- package/dist/commonjs/sdk/suppliers.js +80 -0
- package/dist/commonjs/sdk/suppliers.js.map +1 -0
- package/dist/esm/funcs/suppliersCreateSuppliers.d.ts +24 -0
- package/dist/esm/funcs/suppliersCreateSuppliers.d.ts.map +1 -0
- package/dist/esm/funcs/suppliersCreateSuppliers.js +100 -0
- package/dist/esm/funcs/suppliersCreateSuppliers.js.map +1 -0
- package/dist/esm/funcs/suppliersDeleteSuppliers.d.ts +23 -0
- package/dist/esm/funcs/suppliersDeleteSuppliers.d.ts.map +1 -0
- package/dist/esm/funcs/suppliersDeleteSuppliers.js +101 -0
- package/dist/esm/funcs/suppliersDeleteSuppliers.js.map +1 -0
- package/dist/esm/funcs/suppliersGetSuppliers.d.ts +21 -0
- package/dist/esm/funcs/suppliersGetSuppliers.d.ts.map +1 -0
- package/dist/esm/funcs/suppliersGetSuppliers.js +99 -0
- package/dist/esm/funcs/suppliersGetSuppliers.js.map +1 -0
- package/dist/esm/funcs/suppliersListSuppliers.d.ts +23 -0
- package/dist/esm/funcs/suppliersListSuppliers.d.ts.map +1 -0
- package/dist/esm/funcs/suppliersListSuppliers.js +87 -0
- package/dist/esm/funcs/suppliersListSuppliers.js.map +1 -0
- package/dist/esm/funcs/suppliersUpdateSuppliers.d.ts +21 -0
- package/dist/esm/funcs/suppliersUpdateSuppliers.d.ts.map +1 -0
- package/dist/esm/funcs/suppliersUpdateSuppliers.js +100 -0
- package/dist/esm/funcs/suppliersUpdateSuppliers.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/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +11 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/suppliersCreateSuppliers.d.ts +8 -0
- package/dist/esm/mcp-server/tools/suppliersCreateSuppliers.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersCreateSuppliers.js +38 -0
- package/dist/esm/mcp-server/tools/suppliersCreateSuppliers.js.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersDeleteSuppliers.d.ts +8 -0
- package/dist/esm/mcp-server/tools/suppliersDeleteSuppliers.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersDeleteSuppliers.js +37 -0
- package/dist/esm/mcp-server/tools/suppliersDeleteSuppliers.js.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersGetSuppliers.d.ts +8 -0
- package/dist/esm/mcp-server/tools/suppliersGetSuppliers.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersGetSuppliers.js +33 -0
- package/dist/esm/mcp-server/tools/suppliersGetSuppliers.js.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersListSuppliers.d.ts +3 -0
- package/dist/esm/mcp-server/tools/suppliersListSuppliers.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersListSuppliers.js +32 -0
- package/dist/esm/mcp-server/tools/suppliersListSuppliers.js.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersUpdateSuppliers.d.ts +8 -0
- package/dist/esm/mcp-server/tools/suppliersUpdateSuppliers.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/suppliersUpdateSuppliers.js +33 -0
- package/dist/esm/mcp-server/tools/suppliersUpdateSuppliers.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/job.d.ts +8 -8
- package/dist/esm/models/components/job.d.ts.map +1 -1
- package/dist/esm/models/components/job.js +12 -13
- package/dist/esm/models/components/job.js.map +1 -1
- package/dist/esm/models/components/supplier.d.ts +180 -0
- package/dist/esm/models/components/supplier.d.ts.map +1 -0
- package/dist/esm/models/components/supplier.js +136 -0
- package/dist/esm/models/components/supplier.js.map +1 -0
- package/dist/esm/models/components/suppliercreate.d.ts +62 -0
- package/dist/esm/models/components/suppliercreate.d.ts.map +1 -0
- package/dist/esm/models/components/suppliercreate.js +54 -0
- package/dist/esm/models/components/suppliercreate.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/convertinboxmessagetojob.d.ts +5 -2
- package/dist/esm/models/operations/convertinboxmessagetojob.d.ts.map +1 -1
- package/dist/esm/models/operations/convertinboxmessagetojob.js +2 -2
- package/dist/esm/models/operations/convertinboxmessagetojob.js.map +1 -1
- package/dist/esm/models/operations/createjobfromtemplate.d.ts +3 -3
- package/dist/esm/models/operations/createjobfromtemplate.d.ts.map +1 -1
- package/dist/esm/models/operations/createjobfromtemplate.js +2 -4
- package/dist/esm/models/operations/createjobfromtemplate.js.map +1 -1
- package/dist/esm/models/operations/createsuppliers.d.ts +36 -0
- package/dist/esm/models/operations/createsuppliers.d.ts.map +1 -0
- package/dist/esm/models/operations/createsuppliers.js +45 -0
- package/dist/esm/models/operations/createsuppliers.js.map +1 -0
- package/dist/esm/models/operations/deletesuppliers.d.ts +32 -0
- package/dist/esm/models/operations/deletesuppliers.d.ts.map +1 -0
- package/dist/esm/models/operations/deletesuppliers.js +31 -0
- package/dist/esm/models/operations/deletesuppliers.js.map +1 -0
- package/dist/esm/models/operations/getsuppliers.d.ts +32 -0
- package/dist/esm/models/operations/getsuppliers.d.ts.map +1 -0
- package/dist/esm/models/operations/getsuppliers.js +31 -0
- package/dist/esm/models/operations/getsuppliers.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updatesuppliers.d.ts +38 -0
- package/dist/esm/models/operations/updatesuppliers.d.ts.map +1 -0
- package/dist/esm/models/operations/updatesuppliers.js +43 -0
- package/dist/esm/models/operations/updatesuppliers.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/suppliers.d.ts +59 -0
- package/dist/esm/sdk/suppliers.d.ts.map +1 -0
- package/dist/esm/sdk/suppliers.js +76 -0
- package/dist/esm/sdk/suppliers.js.map +1 -0
- package/docs/sdks/allocationwindows/README.md +4 -4
- package/docs/sdks/assets/README.md +4 -4
- package/docs/sdks/assettypefields/README.md +4 -4
- package/docs/sdks/assettypes/README.md +4 -4
- package/docs/sdks/attachments/README.md +12 -12
- package/docs/sdks/badges/README.md +12 -12
- package/docs/sdks/bundles/README.md +4 -4
- package/docs/sdks/categories/README.md +4 -4
- package/docs/sdks/clients/README.md +8 -8
- package/docs/sdks/companycontacts/README.md +8 -8
- package/docs/sdks/documenttemplates/README.md +4 -4
- package/docs/sdks/emailtemplates/README.md +4 -4
- package/docs/sdks/feedback/README.md +8 -8
- package/docs/sdks/formfields/README.md +8 -8
- package/docs/sdks/formresponses/README.md +28 -28
- package/docs/sdks/forms/README.md +8 -8
- package/docs/sdks/inbox/README.md +2 -0
- package/docs/sdks/jobactivities/README.md +16 -16
- package/docs/sdks/joballocations/README.md +20 -20
- package/docs/sdks/jobchecklists/README.md +28 -28
- package/docs/sdks/jobcontacts/README.md +8 -8
- package/docs/sdks/jobmaterialbundles/README.md +12 -12
- package/docs/sdks/jobmaterials/README.md +20 -20
- package/docs/sdks/jobpayments/README.md +16 -16
- package/docs/sdks/jobqueues/README.md +4 -4
- package/docs/sdks/jobs/README.md +28 -28
- package/docs/sdks/knowledgearticles/README.md +4 -4
- package/docs/sdks/locations/README.md +4 -4
- package/docs/sdks/materials/README.md +8 -8
- package/docs/sdks/notes/README.md +12 -12
- package/docs/sdks/smstemplates/README.md +4 -4
- package/docs/sdks/staffmembers/README.md +16 -16
- package/docs/sdks/staffmessages/README.md +16 -16
- package/docs/sdks/suppliers/README.md +466 -0
- package/docs/sdks/tasks/README.md +20 -20
- package/docs/sdks/taxrates/README.md +4 -4
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/suppliersCreateSuppliers.ts +200 -0
- package/src/funcs/suppliersDeleteSuppliers.ts +206 -0
- package/src/funcs/suppliersGetSuppliers.ts +204 -0
- package/src/funcs/suppliersListSuppliers.ts +179 -0
- package/src/funcs/suppliersUpdateSuppliers.ts +205 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +11 -1
- package/src/mcp-server/tools/suppliersCreateSuppliers.ts +47 -0
- package/src/mcp-server/tools/suppliersDeleteSuppliers.ts +46 -0
- package/src/mcp-server/tools/suppliersGetSuppliers.ts +42 -0
- package/src/mcp-server/tools/suppliersListSuppliers.ts +39 -0
- package/src/mcp-server/tools/suppliersUpdateSuppliers.ts +42 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/job.ts +16 -14
- package/src/models/components/supplier.ts +278 -0
- package/src/models/components/suppliercreate.ts +118 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/convertinboxmessagetojob.ts +7 -4
- package/src/models/operations/createjobfromtemplate.ts +5 -7
- package/src/models/operations/createsuppliers.ts +82 -0
- package/src/models/operations/deletesuppliers.ts +69 -0
- package/src/models/operations/getsuppliers.ts +69 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/updatesuppliers.ts +86 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/suppliers.ts +116 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
|
|
|
34205
34205
|
SDK_METADATA = {
|
|
34206
34206
|
language: "typescript",
|
|
34207
34207
|
openapiDocVersion: "1.0.0",
|
|
34208
|
-
sdkVersion: "0.9.
|
|
34209
|
-
genVersion: "2.
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.9.
|
|
34208
|
+
sdkVersion: "0.9.50",
|
|
34209
|
+
genVersion: "2.709.0",
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.9.50 2.709.0 1.0.0 servicem8"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -37945,7 +37945,7 @@ var init_inboxmessagesresponse = __esm(() => {
|
|
|
37945
37945
|
});
|
|
37946
37946
|
|
|
37947
37947
|
// src/models/components/job.ts
|
|
37948
|
-
var JobStatus,
|
|
37948
|
+
var JobStatus, JobGeoIsValid, JobInvoiceSent, JobQuoteSent, JobActive, JobPaymentProcessed, JobPaymentReceived, JobStatus$inboundSchema, JobStatus$outboundSchema, JobStatus$, JobGeoIsValid$inboundSchema, JobGeoIsValid$outboundSchema, JobGeoIsValid$, JobInvoiceSent$inboundSchema, JobInvoiceSent$outboundSchema, JobInvoiceSent$, JobQuoteSent$inboundSchema, JobQuoteSent$outboundSchema, JobQuoteSent$, JobActive$inboundSchema, JobActive$outboundSchema, JobActive$, JobPaymentProcessed$inboundSchema, JobPaymentProcessed$outboundSchema, JobPaymentProcessed$, JobPaymentReceived$inboundSchema, JobPaymentReceived$outboundSchema, JobPaymentReceived$, Job$inboundSchema, Job$outboundSchema, Job$;
|
|
37949
37949
|
var init_job = __esm(() => {
|
|
37950
37950
|
init_esm();
|
|
37951
37951
|
init_primitives();
|
|
@@ -37955,7 +37955,7 @@ var init_job = __esm(() => {
|
|
|
37955
37955
|
Unsuccessful: "Unsuccessful",
|
|
37956
37956
|
Completed: "Completed"
|
|
37957
37957
|
};
|
|
37958
|
-
|
|
37958
|
+
JobGeoIsValid = {
|
|
37959
37959
|
Zero: 0,
|
|
37960
37960
|
One: 1
|
|
37961
37961
|
};
|
|
@@ -37985,12 +37985,12 @@ var init_job = __esm(() => {
|
|
|
37985
37985
|
JobStatus$.inboundSchema = JobStatus$inboundSchema;
|
|
37986
37986
|
JobStatus$.outboundSchema = JobStatus$outboundSchema;
|
|
37987
37987
|
})(JobStatus$ ||= {});
|
|
37988
|
-
|
|
37989
|
-
|
|
37990
|
-
((
|
|
37991
|
-
|
|
37992
|
-
|
|
37993
|
-
})(
|
|
37988
|
+
JobGeoIsValid$inboundSchema = nativeEnumType(JobGeoIsValid);
|
|
37989
|
+
JobGeoIsValid$outboundSchema = JobGeoIsValid$inboundSchema;
|
|
37990
|
+
((JobGeoIsValid$) => {
|
|
37991
|
+
JobGeoIsValid$.inboundSchema = JobGeoIsValid$inboundSchema;
|
|
37992
|
+
JobGeoIsValid$.outboundSchema = JobGeoIsValid$outboundSchema;
|
|
37993
|
+
})(JobGeoIsValid$ ||= {});
|
|
37994
37994
|
JobInvoiceSent$inboundSchema = nativeEnumType(JobInvoiceSent);
|
|
37995
37995
|
JobInvoiceSent$outboundSchema = JobInvoiceSent$inboundSchema;
|
|
37996
37996
|
((JobInvoiceSent$) => {
|
|
@@ -38035,7 +38035,7 @@ var init_job = __esm(() => {
|
|
|
38035
38035
|
payment_amount: stringType().optional(),
|
|
38036
38036
|
category_uuid: stringType().optional(),
|
|
38037
38037
|
payment_note: stringType().optional(),
|
|
38038
|
-
geo_is_valid:
|
|
38038
|
+
geo_is_valid: JobGeoIsValid$inboundSchema.optional(),
|
|
38039
38039
|
purchase_order_number: stringType().optional(),
|
|
38040
38040
|
invoice_sent: JobInvoiceSent$inboundSchema.optional(),
|
|
38041
38041
|
invoice_sent_stamp: stringType().optional(),
|
|
@@ -38135,7 +38135,7 @@ var init_job = __esm(() => {
|
|
|
38135
38135
|
paymentAmount: stringType().optional(),
|
|
38136
38136
|
categoryUuid: stringType().optional(),
|
|
38137
38137
|
paymentNote: stringType().optional(),
|
|
38138
|
-
geoIsValid:
|
|
38138
|
+
geoIsValid: JobGeoIsValid$outboundSchema.optional(),
|
|
38139
38139
|
purchaseOrderNumber: stringType().optional(),
|
|
38140
38140
|
invoiceSent: JobInvoiceSent$outboundSchema.optional(),
|
|
38141
38141
|
invoiceSentStamp: stringType().optional(),
|
|
@@ -41161,6 +41161,142 @@ var init_successresponse = __esm(() => {
|
|
|
41161
41161
|
})(SuccessResponse$ ||= {});
|
|
41162
41162
|
});
|
|
41163
41163
|
|
|
41164
|
+
// src/models/components/supplier.ts
|
|
41165
|
+
var SupplierActive, SupplierGeoIsValid, SupplierActive$inboundSchema, SupplierActive$outboundSchema, SupplierActive$, SupplierGeoIsValid$inboundSchema, SupplierGeoIsValid$outboundSchema, SupplierGeoIsValid$, Supplier$inboundSchema, Supplier$outboundSchema, Supplier$;
|
|
41166
|
+
var init_supplier = __esm(() => {
|
|
41167
|
+
init_esm();
|
|
41168
|
+
init_primitives();
|
|
41169
|
+
SupplierActive = {
|
|
41170
|
+
Zero: 0,
|
|
41171
|
+
One: 1
|
|
41172
|
+
};
|
|
41173
|
+
SupplierGeoIsValid = {
|
|
41174
|
+
Zero: 0,
|
|
41175
|
+
One: 1
|
|
41176
|
+
};
|
|
41177
|
+
SupplierActive$inboundSchema = nativeEnumType(SupplierActive);
|
|
41178
|
+
SupplierActive$outboundSchema = SupplierActive$inboundSchema;
|
|
41179
|
+
((SupplierActive$) => {
|
|
41180
|
+
SupplierActive$.inboundSchema = SupplierActive$inboundSchema;
|
|
41181
|
+
SupplierActive$.outboundSchema = SupplierActive$outboundSchema;
|
|
41182
|
+
})(SupplierActive$ ||= {});
|
|
41183
|
+
SupplierGeoIsValid$inboundSchema = nativeEnumType(SupplierGeoIsValid);
|
|
41184
|
+
SupplierGeoIsValid$outboundSchema = SupplierGeoIsValid$inboundSchema;
|
|
41185
|
+
((SupplierGeoIsValid$) => {
|
|
41186
|
+
SupplierGeoIsValid$.inboundSchema = SupplierGeoIsValid$inboundSchema;
|
|
41187
|
+
SupplierGeoIsValid$.outboundSchema = SupplierGeoIsValid$outboundSchema;
|
|
41188
|
+
})(SupplierGeoIsValid$ ||= {});
|
|
41189
|
+
Supplier$inboundSchema = objectType({
|
|
41190
|
+
uuid: stringType().optional(),
|
|
41191
|
+
active: SupplierActive$inboundSchema.default(1),
|
|
41192
|
+
edit_date: anyType().optional(),
|
|
41193
|
+
name: stringType().optional(),
|
|
41194
|
+
business_number: stringType().optional(),
|
|
41195
|
+
address: stringType().optional(),
|
|
41196
|
+
email: stringType().optional(),
|
|
41197
|
+
phone: stringType().optional(),
|
|
41198
|
+
account_number: stringType().optional(),
|
|
41199
|
+
lng: numberType().optional(),
|
|
41200
|
+
lat: numberType().optional(),
|
|
41201
|
+
geo_is_valid: SupplierGeoIsValid$inboundSchema.optional(),
|
|
41202
|
+
geo_country: stringType().optional(),
|
|
41203
|
+
geo_postcode: stringType().optional(),
|
|
41204
|
+
geo_state: stringType().optional(),
|
|
41205
|
+
geo_city: stringType().optional(),
|
|
41206
|
+
geo_street: stringType().optional(),
|
|
41207
|
+
geo_number: stringType().optional()
|
|
41208
|
+
}).transform((v2) => {
|
|
41209
|
+
return remap(v2, {
|
|
41210
|
+
edit_date: "editDate",
|
|
41211
|
+
business_number: "businessNumber",
|
|
41212
|
+
account_number: "accountNumber",
|
|
41213
|
+
geo_is_valid: "geoIsValid",
|
|
41214
|
+
geo_country: "geoCountry",
|
|
41215
|
+
geo_postcode: "geoPostcode",
|
|
41216
|
+
geo_state: "geoState",
|
|
41217
|
+
geo_city: "geoCity",
|
|
41218
|
+
geo_street: "geoStreet",
|
|
41219
|
+
geo_number: "geoNumber"
|
|
41220
|
+
});
|
|
41221
|
+
});
|
|
41222
|
+
Supplier$outboundSchema = objectType({
|
|
41223
|
+
uuid: stringType().optional(),
|
|
41224
|
+
active: SupplierActive$outboundSchema.default(1),
|
|
41225
|
+
editDate: anyType().optional(),
|
|
41226
|
+
name: stringType().optional(),
|
|
41227
|
+
businessNumber: stringType().optional(),
|
|
41228
|
+
address: stringType().optional(),
|
|
41229
|
+
email: stringType().optional(),
|
|
41230
|
+
phone: stringType().optional(),
|
|
41231
|
+
accountNumber: stringType().optional(),
|
|
41232
|
+
lng: numberType().optional(),
|
|
41233
|
+
lat: numberType().optional(),
|
|
41234
|
+
geoIsValid: SupplierGeoIsValid$outboundSchema.optional(),
|
|
41235
|
+
geoCountry: stringType().optional(),
|
|
41236
|
+
geoPostcode: stringType().optional(),
|
|
41237
|
+
geoState: stringType().optional(),
|
|
41238
|
+
geoCity: stringType().optional(),
|
|
41239
|
+
geoStreet: stringType().optional(),
|
|
41240
|
+
geoNumber: stringType().optional()
|
|
41241
|
+
}).transform((v2) => {
|
|
41242
|
+
return remap(v2, {
|
|
41243
|
+
editDate: "edit_date",
|
|
41244
|
+
businessNumber: "business_number",
|
|
41245
|
+
accountNumber: "account_number",
|
|
41246
|
+
geoIsValid: "geo_is_valid",
|
|
41247
|
+
geoCountry: "geo_country",
|
|
41248
|
+
geoPostcode: "geo_postcode",
|
|
41249
|
+
geoState: "geo_state",
|
|
41250
|
+
geoCity: "geo_city",
|
|
41251
|
+
geoStreet: "geo_street",
|
|
41252
|
+
geoNumber: "geo_number"
|
|
41253
|
+
});
|
|
41254
|
+
});
|
|
41255
|
+
((Supplier$) => {
|
|
41256
|
+
Supplier$.inboundSchema = Supplier$inboundSchema;
|
|
41257
|
+
Supplier$.outboundSchema = Supplier$outboundSchema;
|
|
41258
|
+
})(Supplier$ ||= {});
|
|
41259
|
+
});
|
|
41260
|
+
|
|
41261
|
+
// src/models/components/suppliercreate.ts
|
|
41262
|
+
var SupplierCreate$inboundSchema, SupplierCreate$outboundSchema, SupplierCreate$;
|
|
41263
|
+
var init_suppliercreate = __esm(() => {
|
|
41264
|
+
init_esm();
|
|
41265
|
+
init_primitives();
|
|
41266
|
+
SupplierCreate$inboundSchema = objectType({
|
|
41267
|
+
uuid: stringType().optional(),
|
|
41268
|
+
name: stringType().optional(),
|
|
41269
|
+
business_number: stringType().optional(),
|
|
41270
|
+
address: stringType().optional(),
|
|
41271
|
+
email: stringType().optional(),
|
|
41272
|
+
phone: stringType().optional(),
|
|
41273
|
+
account_number: stringType().optional()
|
|
41274
|
+
}).transform((v2) => {
|
|
41275
|
+
return remap(v2, {
|
|
41276
|
+
business_number: "businessNumber",
|
|
41277
|
+
account_number: "accountNumber"
|
|
41278
|
+
});
|
|
41279
|
+
});
|
|
41280
|
+
SupplierCreate$outboundSchema = objectType({
|
|
41281
|
+
uuid: stringType().optional(),
|
|
41282
|
+
name: stringType().optional(),
|
|
41283
|
+
businessNumber: stringType().optional(),
|
|
41284
|
+
address: stringType().optional(),
|
|
41285
|
+
email: stringType().optional(),
|
|
41286
|
+
phone: stringType().optional(),
|
|
41287
|
+
accountNumber: stringType().optional()
|
|
41288
|
+
}).transform((v2) => {
|
|
41289
|
+
return remap(v2, {
|
|
41290
|
+
businessNumber: "business_number",
|
|
41291
|
+
accountNumber: "account_number"
|
|
41292
|
+
});
|
|
41293
|
+
});
|
|
41294
|
+
((SupplierCreate$) => {
|
|
41295
|
+
SupplierCreate$.inboundSchema = SupplierCreate$inboundSchema;
|
|
41296
|
+
SupplierCreate$.outboundSchema = SupplierCreate$outboundSchema;
|
|
41297
|
+
})(SupplierCreate$ ||= {});
|
|
41298
|
+
});
|
|
41299
|
+
|
|
41164
41300
|
// src/models/components/task.ts
|
|
41165
41301
|
var TaskActive, TaskActive$inboundSchema, TaskActive$outboundSchema, TaskActive$, Task$inboundSchema, Task$outboundSchema, Task$;
|
|
41166
41302
|
var init_task = __esm(() => {
|
|
@@ -41640,6 +41776,8 @@ var init_components = __esm(() => {
|
|
|
41640
41776
|
init_staffmessage();
|
|
41641
41777
|
init_staffmessagecreate();
|
|
41642
41778
|
init_successresponse();
|
|
41779
|
+
init_supplier();
|
|
41780
|
+
init_suppliercreate();
|
|
41643
41781
|
init_task();
|
|
41644
41782
|
init_taskcreate();
|
|
41645
41783
|
init_taxrate();
|
|
@@ -41858,6 +41996,7 @@ var init_errors2 = __esm(() => {
|
|
|
41858
41996
|
init_ratelimiterror();
|
|
41859
41997
|
init_responsevalidationerror();
|
|
41860
41998
|
init_sdkvalidationerror();
|
|
41999
|
+
init_servicem8error();
|
|
41861
42000
|
});
|
|
41862
42001
|
|
|
41863
42002
|
// src/models/operations/addnotetoinboxmessage.ts
|
|
@@ -41952,7 +42091,7 @@ var init_convertinboxmessagetojob = __esm(() => {
|
|
|
41952
42091
|
init_components();
|
|
41953
42092
|
ConvertInboxMessageToJobRequest$inboundSchema = objectType({
|
|
41954
42093
|
uuid: stringType(),
|
|
41955
|
-
ConvertToJobRequest: ConvertToJobRequest$inboundSchema
|
|
42094
|
+
ConvertToJobRequest: ConvertToJobRequest$inboundSchema
|
|
41956
42095
|
}).transform((v2) => {
|
|
41957
42096
|
return remap(v2, {
|
|
41958
42097
|
ConvertToJobRequest: "convertToJobRequest"
|
|
@@ -41960,7 +42099,7 @@ var init_convertinboxmessagetojob = __esm(() => {
|
|
|
41960
42099
|
});
|
|
41961
42100
|
ConvertInboxMessageToJobRequest$outboundSchema = objectType({
|
|
41962
42101
|
uuid: stringType(),
|
|
41963
|
-
convertToJobRequest: ConvertToJobRequest$outboundSchema
|
|
42102
|
+
convertToJobRequest: ConvertToJobRequest$outboundSchema
|
|
41964
42103
|
}).transform((v2) => {
|
|
41965
42104
|
return remap(v2, {
|
|
41966
42105
|
convertToJobRequest: "ConvertToJobRequest"
|
|
@@ -42550,7 +42689,7 @@ var init_createjobfromtemplate = __esm(() => {
|
|
|
42550
42689
|
init_components();
|
|
42551
42690
|
CreateJobFromTemplateRequest$inboundSchema = objectType({
|
|
42552
42691
|
uuid: stringType(),
|
|
42553
|
-
JobTemplateOverrides: JobTemplateOverrides$inboundSchema
|
|
42692
|
+
JobTemplateOverrides: JobTemplateOverrides$inboundSchema
|
|
42554
42693
|
}).transform((v2) => {
|
|
42555
42694
|
return remap(v2, {
|
|
42556
42695
|
JobTemplateOverrides: "jobTemplateOverrides"
|
|
@@ -42558,7 +42697,7 @@ var init_createjobfromtemplate = __esm(() => {
|
|
|
42558
42697
|
});
|
|
42559
42698
|
CreateJobFromTemplateRequest$outboundSchema = objectType({
|
|
42560
42699
|
uuid: stringType(),
|
|
42561
|
-
jobTemplateOverrides: JobTemplateOverrides$outboundSchema
|
|
42700
|
+
jobTemplateOverrides: JobTemplateOverrides$outboundSchema
|
|
42562
42701
|
}).transform((v2) => {
|
|
42563
42702
|
return remap(v2, {
|
|
42564
42703
|
jobTemplateOverrides: "JobTemplateOverrides"
|
|
@@ -42966,6 +43105,36 @@ var init_createstaffmessages = __esm(() => {
|
|
|
42966
43105
|
})(CreateStaffMessagesResponse$ ||= {});
|
|
42967
43106
|
});
|
|
42968
43107
|
|
|
43108
|
+
// src/models/operations/createsuppliers.ts
|
|
43109
|
+
var CreateSuppliersResponse$inboundSchema, CreateSuppliersResponse$outboundSchema, CreateSuppliersResponse$;
|
|
43110
|
+
var init_createsuppliers = __esm(() => {
|
|
43111
|
+
init_esm();
|
|
43112
|
+
init_primitives();
|
|
43113
|
+
init_components();
|
|
43114
|
+
CreateSuppliersResponse$inboundSchema = objectType({
|
|
43115
|
+
Headers: recordType(arrayType(stringType())),
|
|
43116
|
+
Result: Result$inboundSchema
|
|
43117
|
+
}).transform((v2) => {
|
|
43118
|
+
return remap(v2, {
|
|
43119
|
+
Headers: "headers",
|
|
43120
|
+
Result: "result"
|
|
43121
|
+
});
|
|
43122
|
+
});
|
|
43123
|
+
CreateSuppliersResponse$outboundSchema = objectType({
|
|
43124
|
+
headers: recordType(arrayType(stringType())),
|
|
43125
|
+
result: Result$outboundSchema
|
|
43126
|
+
}).transform((v2) => {
|
|
43127
|
+
return remap(v2, {
|
|
43128
|
+
headers: "Headers",
|
|
43129
|
+
result: "Result"
|
|
43130
|
+
});
|
|
43131
|
+
});
|
|
43132
|
+
((CreateSuppliersResponse$) => {
|
|
43133
|
+
CreateSuppliersResponse$.inboundSchema = CreateSuppliersResponse$inboundSchema;
|
|
43134
|
+
CreateSuppliersResponse$.outboundSchema = CreateSuppliersResponse$outboundSchema;
|
|
43135
|
+
})(CreateSuppliersResponse$ ||= {});
|
|
43136
|
+
});
|
|
43137
|
+
|
|
42969
43138
|
// src/models/operations/createtasks.ts
|
|
42970
43139
|
var CreateTasksResponse$inboundSchema, CreateTasksResponse$outboundSchema, CreateTasksResponse$;
|
|
42971
43140
|
var init_createtasks = __esm(() => {
|
|
@@ -43538,6 +43707,22 @@ var init_deletestaffmessages = __esm(() => {
|
|
|
43538
43707
|
})(DeleteStaffMessagesRequest$ ||= {});
|
|
43539
43708
|
});
|
|
43540
43709
|
|
|
43710
|
+
// src/models/operations/deletesuppliers.ts
|
|
43711
|
+
var DeleteSuppliersRequest$inboundSchema, DeleteSuppliersRequest$outboundSchema, DeleteSuppliersRequest$;
|
|
43712
|
+
var init_deletesuppliers = __esm(() => {
|
|
43713
|
+
init_esm();
|
|
43714
|
+
DeleteSuppliersRequest$inboundSchema = objectType({
|
|
43715
|
+
uuid: stringType()
|
|
43716
|
+
});
|
|
43717
|
+
DeleteSuppliersRequest$outboundSchema = objectType({
|
|
43718
|
+
uuid: stringType()
|
|
43719
|
+
});
|
|
43720
|
+
((DeleteSuppliersRequest$) => {
|
|
43721
|
+
DeleteSuppliersRequest$.inboundSchema = DeleteSuppliersRequest$inboundSchema;
|
|
43722
|
+
DeleteSuppliersRequest$.outboundSchema = DeleteSuppliersRequest$outboundSchema;
|
|
43723
|
+
})(DeleteSuppliersRequest$ ||= {});
|
|
43724
|
+
});
|
|
43725
|
+
|
|
43541
43726
|
// src/models/operations/deletetasks.ts
|
|
43542
43727
|
var DeleteTasksRequest$inboundSchema, DeleteTasksRequest$outboundSchema, DeleteTasksRequest$;
|
|
43543
43728
|
var init_deletetasks = __esm(() => {
|
|
@@ -44148,6 +44333,22 @@ var init_getstaffmessages = __esm(() => {
|
|
|
44148
44333
|
})(GetStaffMessagesRequest$ ||= {});
|
|
44149
44334
|
});
|
|
44150
44335
|
|
|
44336
|
+
// src/models/operations/getsuppliers.ts
|
|
44337
|
+
var GetSuppliersRequest$inboundSchema, GetSuppliersRequest$outboundSchema, GetSuppliersRequest$;
|
|
44338
|
+
var init_getsuppliers = __esm(() => {
|
|
44339
|
+
init_esm();
|
|
44340
|
+
GetSuppliersRequest$inboundSchema = objectType({
|
|
44341
|
+
uuid: stringType()
|
|
44342
|
+
});
|
|
44343
|
+
GetSuppliersRequest$outboundSchema = objectType({
|
|
44344
|
+
uuid: stringType()
|
|
44345
|
+
});
|
|
44346
|
+
((GetSuppliersRequest$) => {
|
|
44347
|
+
GetSuppliersRequest$.inboundSchema = GetSuppliersRequest$inboundSchema;
|
|
44348
|
+
GetSuppliersRequest$.outboundSchema = GetSuppliersRequest$outboundSchema;
|
|
44349
|
+
})(GetSuppliersRequest$ ||= {});
|
|
44350
|
+
});
|
|
44351
|
+
|
|
44151
44352
|
// src/models/operations/gettasks.ts
|
|
44152
44353
|
var GetTasksRequest$inboundSchema, GetTasksRequest$outboundSchema, GetTasksRequest$;
|
|
44153
44354
|
var init_gettasks = __esm(() => {
|
|
@@ -45235,6 +45436,34 @@ var init_updatestaffmessages = __esm(() => {
|
|
|
45235
45436
|
})(UpdateStaffMessagesRequest$ ||= {});
|
|
45236
45437
|
});
|
|
45237
45438
|
|
|
45439
|
+
// src/models/operations/updatesuppliers.ts
|
|
45440
|
+
var UpdateSuppliersRequest$inboundSchema, UpdateSuppliersRequest$outboundSchema, UpdateSuppliersRequest$;
|
|
45441
|
+
var init_updatesuppliers = __esm(() => {
|
|
45442
|
+
init_esm();
|
|
45443
|
+
init_primitives();
|
|
45444
|
+
init_components();
|
|
45445
|
+
UpdateSuppliersRequest$inboundSchema = objectType({
|
|
45446
|
+
uuid: stringType(),
|
|
45447
|
+
SupplierCreate: SupplierCreate$inboundSchema
|
|
45448
|
+
}).transform((v2) => {
|
|
45449
|
+
return remap(v2, {
|
|
45450
|
+
SupplierCreate: "supplierCreate"
|
|
45451
|
+
});
|
|
45452
|
+
});
|
|
45453
|
+
UpdateSuppliersRequest$outboundSchema = objectType({
|
|
45454
|
+
uuid: stringType(),
|
|
45455
|
+
supplierCreate: SupplierCreate$outboundSchema
|
|
45456
|
+
}).transform((v2) => {
|
|
45457
|
+
return remap(v2, {
|
|
45458
|
+
supplierCreate: "SupplierCreate"
|
|
45459
|
+
});
|
|
45460
|
+
});
|
|
45461
|
+
((UpdateSuppliersRequest$) => {
|
|
45462
|
+
UpdateSuppliersRequest$.inboundSchema = UpdateSuppliersRequest$inboundSchema;
|
|
45463
|
+
UpdateSuppliersRequest$.outboundSchema = UpdateSuppliersRequest$outboundSchema;
|
|
45464
|
+
})(UpdateSuppliersRequest$ ||= {});
|
|
45465
|
+
});
|
|
45466
|
+
|
|
45238
45467
|
// src/models/operations/updatetasks.ts
|
|
45239
45468
|
var UpdateTasksRequest$inboundSchema, UpdateTasksRequest$outboundSchema, UpdateTasksRequest$;
|
|
45240
45469
|
var init_updatetasks = __esm(() => {
|
|
@@ -45329,6 +45558,7 @@ var init_operations = __esm(() => {
|
|
|
45329
45558
|
init_createsmstemplates();
|
|
45330
45559
|
init_createstaffmembers();
|
|
45331
45560
|
init_createstaffmessages();
|
|
45561
|
+
init_createsuppliers();
|
|
45332
45562
|
init_createtasks();
|
|
45333
45563
|
init_createtaxrates();
|
|
45334
45564
|
init_deleteallocationwindows();
|
|
@@ -45363,6 +45593,7 @@ var init_operations = __esm(() => {
|
|
|
45363
45593
|
init_deletesmstemplates();
|
|
45364
45594
|
init_deletestaffmembers();
|
|
45365
45595
|
init_deletestaffmessages();
|
|
45596
|
+
init_deletesuppliers();
|
|
45366
45597
|
init_deletetasks();
|
|
45367
45598
|
init_deletetaxrates();
|
|
45368
45599
|
init_generalsearch();
|
|
@@ -45401,6 +45632,7 @@ var init_operations = __esm(() => {
|
|
|
45401
45632
|
init_getsmstemplates();
|
|
45402
45633
|
init_getstaffmembers();
|
|
45403
45634
|
init_getstaffmessages();
|
|
45635
|
+
init_getsuppliers();
|
|
45404
45636
|
init_gettasks();
|
|
45405
45637
|
init_gettaxrates();
|
|
45406
45638
|
init_getvendors();
|
|
@@ -45441,6 +45673,7 @@ var init_operations = __esm(() => {
|
|
|
45441
45673
|
init_updatesmstemplates();
|
|
45442
45674
|
init_updatestaffmembers();
|
|
45443
45675
|
init_updatestaffmessages();
|
|
45676
|
+
init_updatesuppliers();
|
|
45444
45677
|
init_updatetasks();
|
|
45445
45678
|
init_updatetaxrates();
|
|
45446
45679
|
});
|
|
@@ -65033,7 +65266,609 @@ async function $do163(client, request, options) {
|
|
|
65033
65266
|
}
|
|
65034
65267
|
return [result2, { status: "complete", request: req, response }];
|
|
65035
65268
|
}
|
|
65036
|
-
var init_smsTemplatesDeleteSMSTemplates = __esm(() => {
|
|
65269
|
+
var init_smsTemplatesDeleteSMSTemplates = __esm(() => {
|
|
65270
|
+
init_encodings();
|
|
65271
|
+
init_matchers();
|
|
65272
|
+
init_primitives();
|
|
65273
|
+
init_schemas();
|
|
65274
|
+
init_security();
|
|
65275
|
+
init_url();
|
|
65276
|
+
init_components();
|
|
65277
|
+
init_errors2();
|
|
65278
|
+
init_operations();
|
|
65279
|
+
init_async();
|
|
65280
|
+
});
|
|
65281
|
+
|
|
65282
|
+
// src/mcp-server/tools/smsTemplatesDeleteSMSTemplates.ts
|
|
65283
|
+
var args132, tool$smsTemplatesDeleteSMSTemplates;
|
|
65284
|
+
var init_smsTemplatesDeleteSMSTemplates2 = __esm(() => {
|
|
65285
|
+
init_smsTemplatesDeleteSMSTemplates();
|
|
65286
|
+
init_operations();
|
|
65287
|
+
init_tools();
|
|
65288
|
+
args132 = {
|
|
65289
|
+
request: DeleteSMSTemplatesRequest$inboundSchema
|
|
65290
|
+
};
|
|
65291
|
+
tool$smsTemplatesDeleteSMSTemplates = {
|
|
65292
|
+
name: "SMS-templates-delete-SMS-templates",
|
|
65293
|
+
description: `Delete a SMS Template
|
|
65294
|
+
|
|
65295
|
+
|
|
65296
|
+
|
|
65297
|
+
In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive records are still accessible on the API, but are hidden in the UI. Inactive records can be restored by setting their \`active\` field to \`1\`.
|
|
65298
|
+
|
|
65299
|
+
|
|
65300
|
+
|
|
65301
|
+
#### OAuth Scope
|
|
65302
|
+
This endpoint requires the following OAuth scope **manage_templates**.
|
|
65303
|
+
|
|
65304
|
+
`,
|
|
65305
|
+
args: args132,
|
|
65306
|
+
tool: async (client, args133, ctx) => {
|
|
65307
|
+
const [result2, apiCall] = await smsTemplatesDeleteSMSTemplates(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65308
|
+
if (!result2.ok) {
|
|
65309
|
+
return {
|
|
65310
|
+
content: [{ type: "text", text: result2.error.message }],
|
|
65311
|
+
isError: true
|
|
65312
|
+
};
|
|
65313
|
+
}
|
|
65314
|
+
const value = result2.value;
|
|
65315
|
+
return formatResult(value, apiCall);
|
|
65316
|
+
}
|
|
65317
|
+
};
|
|
65318
|
+
});
|
|
65319
|
+
|
|
65320
|
+
// src/funcs/smsTemplatesGetSMSTemplates.ts
|
|
65321
|
+
function smsTemplatesGetSMSTemplates(client, request, options) {
|
|
65322
|
+
return new APIPromise($do164(client, request, options));
|
|
65323
|
+
}
|
|
65324
|
+
async function $do164(client, request, options) {
|
|
65325
|
+
const parsed = safeParse(request, (value) => GetSMSTemplatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65326
|
+
if (!parsed.ok) {
|
|
65327
|
+
return [parsed, { status: "invalid" }];
|
|
65328
|
+
}
|
|
65329
|
+
const payload = parsed.value;
|
|
65330
|
+
const body = null;
|
|
65331
|
+
const pathParams = {
|
|
65332
|
+
uuid: encodeSimple("uuid", payload.uuid, {
|
|
65333
|
+
explode: false,
|
|
65334
|
+
charEncoding: "percent"
|
|
65335
|
+
})
|
|
65336
|
+
};
|
|
65337
|
+
const path = pathToFunc("/smstemplate/{uuid}.json")(pathParams);
|
|
65338
|
+
const headers = new Headers(compactMap({
|
|
65339
|
+
Accept: "application/json"
|
|
65340
|
+
}));
|
|
65341
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
65342
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65343
|
+
const context = {
|
|
65344
|
+
options: client._options,
|
|
65345
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65346
|
+
operationID: "getSMSTemplates",
|
|
65347
|
+
oAuth2Scopes: [],
|
|
65348
|
+
resolvedSecurity: requestSecurity,
|
|
65349
|
+
securitySource: client._options.security,
|
|
65350
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
65351
|
+
strategy: "backoff",
|
|
65352
|
+
backoff: {
|
|
65353
|
+
initialInterval: 500,
|
|
65354
|
+
maxInterval: 60000,
|
|
65355
|
+
exponent: 1.5,
|
|
65356
|
+
maxElapsedTime: 3600000
|
|
65357
|
+
},
|
|
65358
|
+
retryConnectionErrors: true
|
|
65359
|
+
},
|
|
65360
|
+
retryCodes: options?.retryCodes || ["5XX", "429"]
|
|
65361
|
+
};
|
|
65362
|
+
const requestRes = client._createRequest(context, {
|
|
65363
|
+
security: requestSecurity,
|
|
65364
|
+
method: "GET",
|
|
65365
|
+
baseURL: options?.serverURL,
|
|
65366
|
+
path,
|
|
65367
|
+
headers,
|
|
65368
|
+
body,
|
|
65369
|
+
userAgent: client._options.userAgent,
|
|
65370
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
65371
|
+
}, options);
|
|
65372
|
+
if (!requestRes.ok) {
|
|
65373
|
+
return [requestRes, { status: "invalid" }];
|
|
65374
|
+
}
|
|
65375
|
+
const req = requestRes.value;
|
|
65376
|
+
const doResult = await client._do(req, {
|
|
65377
|
+
context,
|
|
65378
|
+
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
|
|
65379
|
+
retryConfig: context.retryConfig,
|
|
65380
|
+
retryCodes: context.retryCodes
|
|
65381
|
+
});
|
|
65382
|
+
if (!doResult.ok) {
|
|
65383
|
+
return [doResult, { status: "request-error", request: req }];
|
|
65384
|
+
}
|
|
65385
|
+
const response = doResult.value;
|
|
65386
|
+
const responseFields = {
|
|
65387
|
+
HttpMeta: { Response: response, Request: req }
|
|
65388
|
+
};
|
|
65389
|
+
const [result2] = await match(json(200, SmsTemplate$inboundSchema), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65390
|
+
if (!result2.ok) {
|
|
65391
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65392
|
+
}
|
|
65393
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65394
|
+
}
|
|
65395
|
+
var init_smsTemplatesGetSMSTemplates = __esm(() => {
|
|
65396
|
+
init_encodings();
|
|
65397
|
+
init_matchers();
|
|
65398
|
+
init_primitives();
|
|
65399
|
+
init_schemas();
|
|
65400
|
+
init_security();
|
|
65401
|
+
init_url();
|
|
65402
|
+
init_components();
|
|
65403
|
+
init_errors2();
|
|
65404
|
+
init_operations();
|
|
65405
|
+
init_async();
|
|
65406
|
+
});
|
|
65407
|
+
|
|
65408
|
+
// src/mcp-server/tools/smsTemplatesGetSMSTemplates.ts
|
|
65409
|
+
var args133, tool$smsTemplatesGetSMSTemplates;
|
|
65410
|
+
var init_smsTemplatesGetSMSTemplates2 = __esm(() => {
|
|
65411
|
+
init_smsTemplatesGetSMSTemplates();
|
|
65412
|
+
init_operations();
|
|
65413
|
+
init_tools();
|
|
65414
|
+
args133 = {
|
|
65415
|
+
request: GetSMSTemplatesRequest$inboundSchema
|
|
65416
|
+
};
|
|
65417
|
+
tool$smsTemplatesGetSMSTemplates = {
|
|
65418
|
+
name: "SMS-templates-get-SMS-templates",
|
|
65419
|
+
description: `Retrieve a SMS Template
|
|
65420
|
+
|
|
65421
|
+
|
|
65422
|
+
|
|
65423
|
+
#### OAuth Scope
|
|
65424
|
+
This endpoint requires the following OAuth scope **manage_templates**.
|
|
65425
|
+
|
|
65426
|
+
`,
|
|
65427
|
+
args: args133,
|
|
65428
|
+
tool: async (client, args134, ctx) => {
|
|
65429
|
+
const [result2, apiCall] = await smsTemplatesGetSMSTemplates(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65430
|
+
if (!result2.ok) {
|
|
65431
|
+
return {
|
|
65432
|
+
content: [{ type: "text", text: result2.error.message }],
|
|
65433
|
+
isError: true
|
|
65434
|
+
};
|
|
65435
|
+
}
|
|
65436
|
+
const value = result2.value;
|
|
65437
|
+
return formatResult(value, apiCall);
|
|
65438
|
+
}
|
|
65439
|
+
};
|
|
65440
|
+
});
|
|
65441
|
+
|
|
65442
|
+
// src/funcs/smsTemplatesListSMSTemplates.ts
|
|
65443
|
+
function smsTemplatesListSMSTemplates(client, options) {
|
|
65444
|
+
return new APIPromise($do165(client, options));
|
|
65445
|
+
}
|
|
65446
|
+
async function $do165(client, options) {
|
|
65447
|
+
const path = pathToFunc("/smstemplate.json")();
|
|
65448
|
+
const headers = new Headers(compactMap({
|
|
65449
|
+
Accept: "application/json"
|
|
65450
|
+
}));
|
|
65451
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
65452
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65453
|
+
const context = {
|
|
65454
|
+
options: client._options,
|
|
65455
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65456
|
+
operationID: "listSMSTemplates",
|
|
65457
|
+
oAuth2Scopes: [],
|
|
65458
|
+
resolvedSecurity: requestSecurity,
|
|
65459
|
+
securitySource: client._options.security,
|
|
65460
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
65461
|
+
strategy: "backoff",
|
|
65462
|
+
backoff: {
|
|
65463
|
+
initialInterval: 500,
|
|
65464
|
+
maxInterval: 60000,
|
|
65465
|
+
exponent: 1.5,
|
|
65466
|
+
maxElapsedTime: 3600000
|
|
65467
|
+
},
|
|
65468
|
+
retryConnectionErrors: true
|
|
65469
|
+
},
|
|
65470
|
+
retryCodes: options?.retryCodes || ["5XX", "429"]
|
|
65471
|
+
};
|
|
65472
|
+
const requestRes = client._createRequest(context, {
|
|
65473
|
+
security: requestSecurity,
|
|
65474
|
+
method: "GET",
|
|
65475
|
+
baseURL: options?.serverURL,
|
|
65476
|
+
path,
|
|
65477
|
+
headers,
|
|
65478
|
+
userAgent: client._options.userAgent,
|
|
65479
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
65480
|
+
}, options);
|
|
65481
|
+
if (!requestRes.ok) {
|
|
65482
|
+
return [requestRes, { status: "invalid" }];
|
|
65483
|
+
}
|
|
65484
|
+
const req = requestRes.value;
|
|
65485
|
+
const doResult = await client._do(req, {
|
|
65486
|
+
context,
|
|
65487
|
+
errorCodes: ["400", "401", "403", "429", "4XX", "500", "5XX"],
|
|
65488
|
+
retryConfig: context.retryConfig,
|
|
65489
|
+
retryCodes: context.retryCodes
|
|
65490
|
+
});
|
|
65491
|
+
if (!doResult.ok) {
|
|
65492
|
+
return [doResult, { status: "request-error", request: req }];
|
|
65493
|
+
}
|
|
65494
|
+
const response = doResult.value;
|
|
65495
|
+
const responseFields = {
|
|
65496
|
+
HttpMeta: { Response: response, Request: req }
|
|
65497
|
+
};
|
|
65498
|
+
const [result2] = await match(json(200, arrayType(SmsTemplate$inboundSchema)), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65499
|
+
if (!result2.ok) {
|
|
65500
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65501
|
+
}
|
|
65502
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65503
|
+
}
|
|
65504
|
+
var init_smsTemplatesListSMSTemplates = __esm(() => {
|
|
65505
|
+
init_esm();
|
|
65506
|
+
init_matchers();
|
|
65507
|
+
init_primitives();
|
|
65508
|
+
init_security();
|
|
65509
|
+
init_url();
|
|
65510
|
+
init_components();
|
|
65511
|
+
init_errors2();
|
|
65512
|
+
init_async();
|
|
65513
|
+
});
|
|
65514
|
+
|
|
65515
|
+
// src/mcp-server/tools/smsTemplatesListSMSTemplates.ts
|
|
65516
|
+
var tool$smsTemplatesListSMSTemplates;
|
|
65517
|
+
var init_smsTemplatesListSMSTemplates2 = __esm(() => {
|
|
65518
|
+
init_smsTemplatesListSMSTemplates();
|
|
65519
|
+
init_tools();
|
|
65520
|
+
tool$smsTemplatesListSMSTemplates = {
|
|
65521
|
+
name: "SMS-templates-list-SMS-templates",
|
|
65522
|
+
description: `List all SMS Templates
|
|
65523
|
+
|
|
65524
|
+
|
|
65525
|
+
|
|
65526
|
+
#### Filtering
|
|
65527
|
+
This endpoint supports result filtering. For more information on how to filter this request, [go here](/docs/filtering).
|
|
65528
|
+
|
|
65529
|
+
|
|
65530
|
+
#### OAuth Scope
|
|
65531
|
+
This endpoint requires the following OAuth scope **manage_templates**.
|
|
65532
|
+
|
|
65533
|
+
`,
|
|
65534
|
+
tool: async (client, ctx) => {
|
|
65535
|
+
const [result2, apiCall] = await smsTemplatesListSMSTemplates(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65536
|
+
if (!result2.ok) {
|
|
65537
|
+
return {
|
|
65538
|
+
content: [{ type: "text", text: result2.error.message }],
|
|
65539
|
+
isError: true
|
|
65540
|
+
};
|
|
65541
|
+
}
|
|
65542
|
+
const value = result2.value;
|
|
65543
|
+
return formatResult(value, apiCall);
|
|
65544
|
+
}
|
|
65545
|
+
};
|
|
65546
|
+
});
|
|
65547
|
+
|
|
65548
|
+
// src/funcs/smsTemplatesUpdateSMSTemplates.ts
|
|
65549
|
+
function smsTemplatesUpdateSMSTemplates(client, request, options) {
|
|
65550
|
+
return new APIPromise($do166(client, request, options));
|
|
65551
|
+
}
|
|
65552
|
+
async function $do166(client, request, options) {
|
|
65553
|
+
const parsed = safeParse(request, (value) => UpdateSMSTemplatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65554
|
+
if (!parsed.ok) {
|
|
65555
|
+
return [parsed, { status: "invalid" }];
|
|
65556
|
+
}
|
|
65557
|
+
const payload = parsed.value;
|
|
65558
|
+
const body = encodeJSON("body", payload.SmsTemplateCreate, { explode: true });
|
|
65559
|
+
const pathParams = {
|
|
65560
|
+
uuid: encodeSimple("uuid", payload.uuid, {
|
|
65561
|
+
explode: false,
|
|
65562
|
+
charEncoding: "percent"
|
|
65563
|
+
})
|
|
65564
|
+
};
|
|
65565
|
+
const path = pathToFunc("/smstemplate/{uuid}.json")(pathParams);
|
|
65566
|
+
const headers = new Headers(compactMap({
|
|
65567
|
+
"Content-Type": "application/json",
|
|
65568
|
+
Accept: "application/json"
|
|
65569
|
+
}));
|
|
65570
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
65571
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65572
|
+
const context = {
|
|
65573
|
+
options: client._options,
|
|
65574
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65575
|
+
operationID: "updateSMSTemplates",
|
|
65576
|
+
oAuth2Scopes: [],
|
|
65577
|
+
resolvedSecurity: requestSecurity,
|
|
65578
|
+
securitySource: client._options.security,
|
|
65579
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
65580
|
+
strategy: "backoff",
|
|
65581
|
+
backoff: {
|
|
65582
|
+
initialInterval: 500,
|
|
65583
|
+
maxInterval: 60000,
|
|
65584
|
+
exponent: 1.5,
|
|
65585
|
+
maxElapsedTime: 3600000
|
|
65586
|
+
},
|
|
65587
|
+
retryConnectionErrors: true
|
|
65588
|
+
},
|
|
65589
|
+
retryCodes: options?.retryCodes || ["5XX", "429"]
|
|
65590
|
+
};
|
|
65591
|
+
const requestRes = client._createRequest(context, {
|
|
65592
|
+
security: requestSecurity,
|
|
65593
|
+
method: "POST",
|
|
65594
|
+
baseURL: options?.serverURL,
|
|
65595
|
+
path,
|
|
65596
|
+
headers,
|
|
65597
|
+
body,
|
|
65598
|
+
userAgent: client._options.userAgent,
|
|
65599
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
65600
|
+
}, options);
|
|
65601
|
+
if (!requestRes.ok) {
|
|
65602
|
+
return [requestRes, { status: "invalid" }];
|
|
65603
|
+
}
|
|
65604
|
+
const req = requestRes.value;
|
|
65605
|
+
const doResult = await client._do(req, {
|
|
65606
|
+
context,
|
|
65607
|
+
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
|
|
65608
|
+
retryConfig: context.retryConfig,
|
|
65609
|
+
retryCodes: context.retryCodes
|
|
65610
|
+
});
|
|
65611
|
+
if (!doResult.ok) {
|
|
65612
|
+
return [doResult, { status: "request-error", request: req }];
|
|
65613
|
+
}
|
|
65614
|
+
const response = doResult.value;
|
|
65615
|
+
const responseFields = {
|
|
65616
|
+
HttpMeta: { Response: response, Request: req }
|
|
65617
|
+
};
|
|
65618
|
+
const [result2] = await match(json(200, Result$inboundSchema), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65619
|
+
if (!result2.ok) {
|
|
65620
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65621
|
+
}
|
|
65622
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65623
|
+
}
|
|
65624
|
+
var init_smsTemplatesUpdateSMSTemplates = __esm(() => {
|
|
65625
|
+
init_encodings();
|
|
65626
|
+
init_matchers();
|
|
65627
|
+
init_primitives();
|
|
65628
|
+
init_schemas();
|
|
65629
|
+
init_security();
|
|
65630
|
+
init_url();
|
|
65631
|
+
init_components();
|
|
65632
|
+
init_errors2();
|
|
65633
|
+
init_operations();
|
|
65634
|
+
init_async();
|
|
65635
|
+
});
|
|
65636
|
+
|
|
65637
|
+
// src/mcp-server/tools/smsTemplatesUpdateSMSTemplates.ts
|
|
65638
|
+
var args134, tool$smsTemplatesUpdateSMSTemplates;
|
|
65639
|
+
var init_smsTemplatesUpdateSMSTemplates2 = __esm(() => {
|
|
65640
|
+
init_smsTemplatesUpdateSMSTemplates();
|
|
65641
|
+
init_operations();
|
|
65642
|
+
init_tools();
|
|
65643
|
+
args134 = {
|
|
65644
|
+
request: UpdateSMSTemplatesRequest$inboundSchema
|
|
65645
|
+
};
|
|
65646
|
+
tool$smsTemplatesUpdateSMSTemplates = {
|
|
65647
|
+
name: "SMS-templates-update-SMS-templates",
|
|
65648
|
+
description: `Update a SMS Template
|
|
65649
|
+
|
|
65650
|
+
|
|
65651
|
+
|
|
65652
|
+
#### OAuth Scope
|
|
65653
|
+
This endpoint requires the following OAuth scope **manage_templates**.
|
|
65654
|
+
|
|
65655
|
+
`,
|
|
65656
|
+
args: args134,
|
|
65657
|
+
tool: async (client, args135, ctx) => {
|
|
65658
|
+
const [result2, apiCall] = await smsTemplatesUpdateSMSTemplates(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65659
|
+
if (!result2.ok) {
|
|
65660
|
+
return {
|
|
65661
|
+
content: [{ type: "text", text: result2.error.message }],
|
|
65662
|
+
isError: true
|
|
65663
|
+
};
|
|
65664
|
+
}
|
|
65665
|
+
const value = result2.value;
|
|
65666
|
+
return formatResult(value, apiCall);
|
|
65667
|
+
}
|
|
65668
|
+
};
|
|
65669
|
+
});
|
|
65670
|
+
|
|
65671
|
+
// src/funcs/staffMembersCreateStaffMembers.ts
|
|
65672
|
+
function staffMembersCreateStaffMembers(client, request, options) {
|
|
65673
|
+
return new APIPromise($do167(client, request, options));
|
|
65674
|
+
}
|
|
65675
|
+
async function $do167(client, request, options) {
|
|
65676
|
+
const parsed = safeParse(request, (value) => StaffCreate$outboundSchema.parse(value), "Input validation failed");
|
|
65677
|
+
if (!parsed.ok) {
|
|
65678
|
+
return [parsed, { status: "invalid" }];
|
|
65679
|
+
}
|
|
65680
|
+
const payload = parsed.value;
|
|
65681
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
65682
|
+
const path = pathToFunc("/staff.json")();
|
|
65683
|
+
const headers = new Headers(compactMap({
|
|
65684
|
+
"Content-Type": "application/json",
|
|
65685
|
+
Accept: "application/json"
|
|
65686
|
+
}));
|
|
65687
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
65688
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65689
|
+
const context = {
|
|
65690
|
+
options: client._options,
|
|
65691
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65692
|
+
operationID: "createStaffMembers",
|
|
65693
|
+
oAuth2Scopes: [],
|
|
65694
|
+
resolvedSecurity: requestSecurity,
|
|
65695
|
+
securitySource: client._options.security,
|
|
65696
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
65697
|
+
strategy: "backoff",
|
|
65698
|
+
backoff: {
|
|
65699
|
+
initialInterval: 500,
|
|
65700
|
+
maxInterval: 60000,
|
|
65701
|
+
exponent: 1.5,
|
|
65702
|
+
maxElapsedTime: 3600000
|
|
65703
|
+
},
|
|
65704
|
+
retryConnectionErrors: true
|
|
65705
|
+
},
|
|
65706
|
+
retryCodes: options?.retryCodes || ["5XX", "429"]
|
|
65707
|
+
};
|
|
65708
|
+
const requestRes = client._createRequest(context, {
|
|
65709
|
+
security: requestSecurity,
|
|
65710
|
+
method: "POST",
|
|
65711
|
+
baseURL: options?.serverURL,
|
|
65712
|
+
path,
|
|
65713
|
+
headers,
|
|
65714
|
+
body,
|
|
65715
|
+
userAgent: client._options.userAgent,
|
|
65716
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
65717
|
+
}, options);
|
|
65718
|
+
if (!requestRes.ok) {
|
|
65719
|
+
return [requestRes, { status: "invalid" }];
|
|
65720
|
+
}
|
|
65721
|
+
const req = requestRes.value;
|
|
65722
|
+
const doResult = await client._do(req, {
|
|
65723
|
+
context,
|
|
65724
|
+
errorCodes: ["400", "401", "403", "429", "4XX", "500", "5XX"],
|
|
65725
|
+
retryConfig: context.retryConfig,
|
|
65726
|
+
retryCodes: context.retryCodes
|
|
65727
|
+
});
|
|
65728
|
+
if (!doResult.ok) {
|
|
65729
|
+
return [doResult, { status: "request-error", request: req }];
|
|
65730
|
+
}
|
|
65731
|
+
const response = doResult.value;
|
|
65732
|
+
const responseFields = {
|
|
65733
|
+
HttpMeta: { Response: response, Request: req }
|
|
65734
|
+
};
|
|
65735
|
+
const [result2] = await match(json(200, CreateStaffMembersResponse$inboundSchema, {
|
|
65736
|
+
hdrs: true,
|
|
65737
|
+
key: "Result"
|
|
65738
|
+
}), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65739
|
+
if (!result2.ok) {
|
|
65740
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65741
|
+
}
|
|
65742
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65743
|
+
}
|
|
65744
|
+
var init_staffMembersCreateStaffMembers = __esm(() => {
|
|
65745
|
+
init_encodings();
|
|
65746
|
+
init_matchers();
|
|
65747
|
+
init_primitives();
|
|
65748
|
+
init_schemas();
|
|
65749
|
+
init_security();
|
|
65750
|
+
init_url();
|
|
65751
|
+
init_components();
|
|
65752
|
+
init_errors2();
|
|
65753
|
+
init_operations();
|
|
65754
|
+
init_async();
|
|
65755
|
+
});
|
|
65756
|
+
|
|
65757
|
+
// src/mcp-server/tools/staffMembersCreateStaffMembers.ts
|
|
65758
|
+
var args135, tool$staffMembersCreateStaffMembers;
|
|
65759
|
+
var init_staffMembersCreateStaffMembers2 = __esm(() => {
|
|
65760
|
+
init_staffMembersCreateStaffMembers();
|
|
65761
|
+
init_components();
|
|
65762
|
+
init_tools();
|
|
65763
|
+
args135 = {
|
|
65764
|
+
request: StaffCreate$inboundSchema
|
|
65765
|
+
};
|
|
65766
|
+
tool$staffMembersCreateStaffMembers = {
|
|
65767
|
+
name: "staff-members-create-staff-members",
|
|
65768
|
+
description: `Create a new Staff Member
|
|
65769
|
+
|
|
65770
|
+
|
|
65771
|
+
|
|
65772
|
+
#### OAuth Scope
|
|
65773
|
+
This endpoint requires the following OAuth scope **manage_staff**.
|
|
65774
|
+
|
|
65775
|
+
|
|
65776
|
+
|
|
65777
|
+
#### Record UUID
|
|
65778
|
+
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
65779
|
+
|
|
65780
|
+
`,
|
|
65781
|
+
args: args135,
|
|
65782
|
+
tool: async (client, args136, ctx) => {
|
|
65783
|
+
const [result2, apiCall] = await staffMembersCreateStaffMembers(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65784
|
+
if (!result2.ok) {
|
|
65785
|
+
return {
|
|
65786
|
+
content: [{ type: "text", text: result2.error.message }],
|
|
65787
|
+
isError: true
|
|
65788
|
+
};
|
|
65789
|
+
}
|
|
65790
|
+
const value = result2.value.result;
|
|
65791
|
+
return formatResult(value, apiCall);
|
|
65792
|
+
}
|
|
65793
|
+
};
|
|
65794
|
+
});
|
|
65795
|
+
|
|
65796
|
+
// src/funcs/staffMembersDeleteStaffMembers.ts
|
|
65797
|
+
function staffMembersDeleteStaffMembers(client, request, options) {
|
|
65798
|
+
return new APIPromise($do168(client, request, options));
|
|
65799
|
+
}
|
|
65800
|
+
async function $do168(client, request, options) {
|
|
65801
|
+
const parsed = safeParse(request, (value) => DeleteStaffMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65802
|
+
if (!parsed.ok) {
|
|
65803
|
+
return [parsed, { status: "invalid" }];
|
|
65804
|
+
}
|
|
65805
|
+
const payload = parsed.value;
|
|
65806
|
+
const body = null;
|
|
65807
|
+
const pathParams = {
|
|
65808
|
+
uuid: encodeSimple("uuid", payload.uuid, {
|
|
65809
|
+
explode: false,
|
|
65810
|
+
charEncoding: "percent"
|
|
65811
|
+
})
|
|
65812
|
+
};
|
|
65813
|
+
const path = pathToFunc("/staff/{uuid}.json")(pathParams);
|
|
65814
|
+
const headers = new Headers(compactMap({
|
|
65815
|
+
Accept: "application/json"
|
|
65816
|
+
}));
|
|
65817
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
65818
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
65819
|
+
const context = {
|
|
65820
|
+
options: client._options,
|
|
65821
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65822
|
+
operationID: "deleteStaffMembers",
|
|
65823
|
+
oAuth2Scopes: [],
|
|
65824
|
+
resolvedSecurity: requestSecurity,
|
|
65825
|
+
securitySource: client._options.security,
|
|
65826
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
65827
|
+
strategy: "backoff",
|
|
65828
|
+
backoff: {
|
|
65829
|
+
initialInterval: 500,
|
|
65830
|
+
maxInterval: 60000,
|
|
65831
|
+
exponent: 1.5,
|
|
65832
|
+
maxElapsedTime: 3600000
|
|
65833
|
+
},
|
|
65834
|
+
retryConnectionErrors: true
|
|
65835
|
+
},
|
|
65836
|
+
retryCodes: options?.retryCodes || ["5XX", "429"]
|
|
65837
|
+
};
|
|
65838
|
+
const requestRes = client._createRequest(context, {
|
|
65839
|
+
security: requestSecurity,
|
|
65840
|
+
method: "DELETE",
|
|
65841
|
+
baseURL: options?.serverURL,
|
|
65842
|
+
path,
|
|
65843
|
+
headers,
|
|
65844
|
+
body,
|
|
65845
|
+
userAgent: client._options.userAgent,
|
|
65846
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
65847
|
+
}, options);
|
|
65848
|
+
if (!requestRes.ok) {
|
|
65849
|
+
return [requestRes, { status: "invalid" }];
|
|
65850
|
+
}
|
|
65851
|
+
const req = requestRes.value;
|
|
65852
|
+
const doResult = await client._do(req, {
|
|
65853
|
+
context,
|
|
65854
|
+
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
|
|
65855
|
+
retryConfig: context.retryConfig,
|
|
65856
|
+
retryCodes: context.retryCodes
|
|
65857
|
+
});
|
|
65858
|
+
if (!doResult.ok) {
|
|
65859
|
+
return [doResult, { status: "request-error", request: req }];
|
|
65860
|
+
}
|
|
65861
|
+
const response = doResult.value;
|
|
65862
|
+
const responseFields = {
|
|
65863
|
+
HttpMeta: { Response: response, Request: req }
|
|
65864
|
+
};
|
|
65865
|
+
const [result2] = await match(json(200, Result$inboundSchema), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65866
|
+
if (!result2.ok) {
|
|
65867
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65868
|
+
}
|
|
65869
|
+
return [result2, { status: "complete", request: req, response }];
|
|
65870
|
+
}
|
|
65871
|
+
var init_staffMembersDeleteStaffMembers = __esm(() => {
|
|
65037
65872
|
init_encodings();
|
|
65038
65873
|
init_matchers();
|
|
65039
65874
|
init_primitives();
|
|
@@ -65046,18 +65881,18 @@ var init_smsTemplatesDeleteSMSTemplates = __esm(() => {
|
|
|
65046
65881
|
init_async();
|
|
65047
65882
|
});
|
|
65048
65883
|
|
|
65049
|
-
// src/mcp-server/tools/
|
|
65050
|
-
var
|
|
65051
|
-
var
|
|
65052
|
-
|
|
65884
|
+
// src/mcp-server/tools/staffMembersDeleteStaffMembers.ts
|
|
65885
|
+
var args136, tool$staffMembersDeleteStaffMembers;
|
|
65886
|
+
var init_staffMembersDeleteStaffMembers2 = __esm(() => {
|
|
65887
|
+
init_staffMembersDeleteStaffMembers();
|
|
65053
65888
|
init_operations();
|
|
65054
65889
|
init_tools();
|
|
65055
|
-
|
|
65056
|
-
request:
|
|
65890
|
+
args136 = {
|
|
65891
|
+
request: DeleteStaffMembersRequest$inboundSchema
|
|
65057
65892
|
};
|
|
65058
|
-
tool$
|
|
65059
|
-
name: "
|
|
65060
|
-
description: `Delete a
|
|
65893
|
+
tool$staffMembersDeleteStaffMembers = {
|
|
65894
|
+
name: "staff-members-delete-staff-members",
|
|
65895
|
+
description: `Delete a Staff Member
|
|
65061
65896
|
|
|
65062
65897
|
|
|
65063
65898
|
|
|
@@ -65066,12 +65901,12 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
65066
65901
|
|
|
65067
65902
|
|
|
65068
65903
|
#### OAuth Scope
|
|
65069
|
-
This endpoint requires the following OAuth scope **
|
|
65904
|
+
This endpoint requires the following OAuth scope **manage_staff**.
|
|
65070
65905
|
|
|
65071
65906
|
`,
|
|
65072
|
-
args:
|
|
65073
|
-
tool: async (client,
|
|
65074
|
-
const [result2, apiCall] = await
|
|
65907
|
+
args: args136,
|
|
65908
|
+
tool: async (client, args137, ctx) => {
|
|
65909
|
+
const [result2, apiCall] = await staffMembersDeleteStaffMembers(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65075
65910
|
if (!result2.ok) {
|
|
65076
65911
|
return {
|
|
65077
65912
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65084,12 +65919,12 @@ This endpoint requires the following OAuth scope **manage_templates**.
|
|
|
65084
65919
|
};
|
|
65085
65920
|
});
|
|
65086
65921
|
|
|
65087
|
-
// src/funcs/
|
|
65088
|
-
function
|
|
65089
|
-
return new APIPromise($
|
|
65922
|
+
// src/funcs/staffMembersGetStaffMembers.ts
|
|
65923
|
+
function staffMembersGetStaffMembers(client, request, options) {
|
|
65924
|
+
return new APIPromise($do169(client, request, options));
|
|
65090
65925
|
}
|
|
65091
|
-
async function $
|
|
65092
|
-
const parsed = safeParse(request, (value) =>
|
|
65926
|
+
async function $do169(client, request, options) {
|
|
65927
|
+
const parsed = safeParse(request, (value) => GetStaffMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65093
65928
|
if (!parsed.ok) {
|
|
65094
65929
|
return [parsed, { status: "invalid" }];
|
|
65095
65930
|
}
|
|
@@ -65101,7 +65936,7 @@ async function $do164(client, request, options) {
|
|
|
65101
65936
|
charEncoding: "percent"
|
|
65102
65937
|
})
|
|
65103
65938
|
};
|
|
65104
|
-
const path = pathToFunc("/
|
|
65939
|
+
const path = pathToFunc("/staff/{uuid}.json")(pathParams);
|
|
65105
65940
|
const headers = new Headers(compactMap({
|
|
65106
65941
|
Accept: "application/json"
|
|
65107
65942
|
}));
|
|
@@ -65110,7 +65945,7 @@ async function $do164(client, request, options) {
|
|
|
65110
65945
|
const context = {
|
|
65111
65946
|
options: client._options,
|
|
65112
65947
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65113
|
-
operationID: "
|
|
65948
|
+
operationID: "getStaffMembers",
|
|
65114
65949
|
oAuth2Scopes: [],
|
|
65115
65950
|
resolvedSecurity: requestSecurity,
|
|
65116
65951
|
securitySource: client._options.security,
|
|
@@ -65153,13 +65988,13 @@ async function $do164(client, request, options) {
|
|
|
65153
65988
|
const responseFields = {
|
|
65154
65989
|
HttpMeta: { Response: response, Request: req }
|
|
65155
65990
|
};
|
|
65156
|
-
const [result2] = await match(json(200,
|
|
65991
|
+
const [result2] = await match(json(200, Staff$inboundSchema), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65157
65992
|
if (!result2.ok) {
|
|
65158
65993
|
return [result2, { status: "complete", request: req, response }];
|
|
65159
65994
|
}
|
|
65160
65995
|
return [result2, { status: "complete", request: req, response }];
|
|
65161
65996
|
}
|
|
65162
|
-
var
|
|
65997
|
+
var init_staffMembersGetStaffMembers = __esm(() => {
|
|
65163
65998
|
init_encodings();
|
|
65164
65999
|
init_matchers();
|
|
65165
66000
|
init_primitives();
|
|
@@ -65172,28 +66007,28 @@ var init_smsTemplatesGetSMSTemplates = __esm(() => {
|
|
|
65172
66007
|
init_async();
|
|
65173
66008
|
});
|
|
65174
66009
|
|
|
65175
|
-
// src/mcp-server/tools/
|
|
65176
|
-
var
|
|
65177
|
-
var
|
|
65178
|
-
|
|
66010
|
+
// src/mcp-server/tools/staffMembersGetStaffMembers.ts
|
|
66011
|
+
var args137, tool$staffMembersGetStaffMembers;
|
|
66012
|
+
var init_staffMembersGetStaffMembers2 = __esm(() => {
|
|
66013
|
+
init_staffMembersGetStaffMembers();
|
|
65179
66014
|
init_operations();
|
|
65180
66015
|
init_tools();
|
|
65181
|
-
|
|
65182
|
-
request:
|
|
66016
|
+
args137 = {
|
|
66017
|
+
request: GetStaffMembersRequest$inboundSchema
|
|
65183
66018
|
};
|
|
65184
|
-
tool$
|
|
65185
|
-
name: "
|
|
65186
|
-
description: `Retrieve a
|
|
66019
|
+
tool$staffMembersGetStaffMembers = {
|
|
66020
|
+
name: "staff-members-get-staff-members",
|
|
66021
|
+
description: `Retrieve a Staff Member
|
|
65187
66022
|
|
|
65188
66023
|
|
|
65189
66024
|
|
|
65190
66025
|
#### OAuth Scope
|
|
65191
|
-
This endpoint requires the following OAuth scope **
|
|
66026
|
+
This endpoint requires the following OAuth scope **read_staff**.
|
|
65192
66027
|
|
|
65193
66028
|
`,
|
|
65194
|
-
args:
|
|
65195
|
-
tool: async (client,
|
|
65196
|
-
const [result2, apiCall] = await
|
|
66029
|
+
args: args137,
|
|
66030
|
+
tool: async (client, args138, ctx) => {
|
|
66031
|
+
const [result2, apiCall] = await staffMembersGetStaffMembers(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65197
66032
|
if (!result2.ok) {
|
|
65198
66033
|
return {
|
|
65199
66034
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65206,12 +66041,12 @@ This endpoint requires the following OAuth scope **manage_templates**.
|
|
|
65206
66041
|
};
|
|
65207
66042
|
});
|
|
65208
66043
|
|
|
65209
|
-
// src/funcs/
|
|
65210
|
-
function
|
|
65211
|
-
return new APIPromise($
|
|
66044
|
+
// src/funcs/staffMembersListStaffMembers.ts
|
|
66045
|
+
function staffMembersListStaffMembers(client, options) {
|
|
66046
|
+
return new APIPromise($do170(client, options));
|
|
65212
66047
|
}
|
|
65213
|
-
async function $
|
|
65214
|
-
const path = pathToFunc("/
|
|
66048
|
+
async function $do170(client, options) {
|
|
66049
|
+
const path = pathToFunc("/staff.json")();
|
|
65215
66050
|
const headers = new Headers(compactMap({
|
|
65216
66051
|
Accept: "application/json"
|
|
65217
66052
|
}));
|
|
@@ -65220,7 +66055,7 @@ async function $do165(client, options) {
|
|
|
65220
66055
|
const context = {
|
|
65221
66056
|
options: client._options,
|
|
65222
66057
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65223
|
-
operationID: "
|
|
66058
|
+
operationID: "listStaffMembers",
|
|
65224
66059
|
oAuth2Scopes: [],
|
|
65225
66060
|
resolvedSecurity: requestSecurity,
|
|
65226
66061
|
securitySource: client._options.security,
|
|
@@ -65262,13 +66097,13 @@ async function $do165(client, options) {
|
|
|
65262
66097
|
const responseFields = {
|
|
65263
66098
|
HttpMeta: { Response: response, Request: req }
|
|
65264
66099
|
};
|
|
65265
|
-
const [result2] = await match(json(200, arrayType(
|
|
66100
|
+
const [result2] = await match(json(200, arrayType(Staff$inboundSchema)), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65266
66101
|
if (!result2.ok) {
|
|
65267
66102
|
return [result2, { status: "complete", request: req, response }];
|
|
65268
66103
|
}
|
|
65269
66104
|
return [result2, { status: "complete", request: req, response }];
|
|
65270
66105
|
}
|
|
65271
|
-
var
|
|
66106
|
+
var init_staffMembersListStaffMembers = __esm(() => {
|
|
65272
66107
|
init_esm();
|
|
65273
66108
|
init_matchers();
|
|
65274
66109
|
init_primitives();
|
|
@@ -65279,14 +66114,14 @@ var init_smsTemplatesListSMSTemplates = __esm(() => {
|
|
|
65279
66114
|
init_async();
|
|
65280
66115
|
});
|
|
65281
66116
|
|
|
65282
|
-
// src/mcp-server/tools/
|
|
65283
|
-
var tool$
|
|
65284
|
-
var
|
|
65285
|
-
|
|
66117
|
+
// src/mcp-server/tools/staffMembersListStaffMembers.ts
|
|
66118
|
+
var tool$staffMembersListStaffMembers;
|
|
66119
|
+
var init_staffMembersListStaffMembers2 = __esm(() => {
|
|
66120
|
+
init_staffMembersListStaffMembers();
|
|
65286
66121
|
init_tools();
|
|
65287
|
-
tool$
|
|
65288
|
-
name: "
|
|
65289
|
-
description: `List all
|
|
66122
|
+
tool$staffMembersListStaffMembers = {
|
|
66123
|
+
name: "staff-members-list-staff-members",
|
|
66124
|
+
description: `List all Staff Members
|
|
65290
66125
|
|
|
65291
66126
|
|
|
65292
66127
|
|
|
@@ -65295,11 +66130,11 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
65295
66130
|
|
|
65296
66131
|
|
|
65297
66132
|
#### OAuth Scope
|
|
65298
|
-
This endpoint requires the following OAuth scope **
|
|
66133
|
+
This endpoint requires the following OAuth scope **read_staff**.
|
|
65299
66134
|
|
|
65300
66135
|
`,
|
|
65301
66136
|
tool: async (client, ctx) => {
|
|
65302
|
-
const [result2, apiCall] = await
|
|
66137
|
+
const [result2, apiCall] = await staffMembersListStaffMembers(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65303
66138
|
if (!result2.ok) {
|
|
65304
66139
|
return {
|
|
65305
66140
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65312,24 +66147,24 @@ This endpoint requires the following OAuth scope **manage_templates**.
|
|
|
65312
66147
|
};
|
|
65313
66148
|
});
|
|
65314
66149
|
|
|
65315
|
-
// src/funcs/
|
|
65316
|
-
function
|
|
65317
|
-
return new APIPromise($
|
|
66150
|
+
// src/funcs/staffMembersUpdateStaffMembers.ts
|
|
66151
|
+
function staffMembersUpdateStaffMembers(client, request, options) {
|
|
66152
|
+
return new APIPromise($do171(client, request, options));
|
|
65318
66153
|
}
|
|
65319
|
-
async function $
|
|
65320
|
-
const parsed = safeParse(request, (value) =>
|
|
66154
|
+
async function $do171(client, request, options) {
|
|
66155
|
+
const parsed = safeParse(request, (value) => UpdateStaffMembersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65321
66156
|
if (!parsed.ok) {
|
|
65322
66157
|
return [parsed, { status: "invalid" }];
|
|
65323
66158
|
}
|
|
65324
66159
|
const payload = parsed.value;
|
|
65325
|
-
const body = encodeJSON("body", payload.
|
|
66160
|
+
const body = encodeJSON("body", payload.StaffCreate, { explode: true });
|
|
65326
66161
|
const pathParams = {
|
|
65327
66162
|
uuid: encodeSimple("uuid", payload.uuid, {
|
|
65328
66163
|
explode: false,
|
|
65329
66164
|
charEncoding: "percent"
|
|
65330
66165
|
})
|
|
65331
66166
|
};
|
|
65332
|
-
const path = pathToFunc("/
|
|
66167
|
+
const path = pathToFunc("/staff/{uuid}.json")(pathParams);
|
|
65333
66168
|
const headers = new Headers(compactMap({
|
|
65334
66169
|
"Content-Type": "application/json",
|
|
65335
66170
|
Accept: "application/json"
|
|
@@ -65339,7 +66174,7 @@ async function $do166(client, request, options) {
|
|
|
65339
66174
|
const context = {
|
|
65340
66175
|
options: client._options,
|
|
65341
66176
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65342
|
-
operationID: "
|
|
66177
|
+
operationID: "updateStaffMembers",
|
|
65343
66178
|
oAuth2Scopes: [],
|
|
65344
66179
|
resolvedSecurity: requestSecurity,
|
|
65345
66180
|
securitySource: client._options.security,
|
|
@@ -65388,7 +66223,7 @@ async function $do166(client, request, options) {
|
|
|
65388
66223
|
}
|
|
65389
66224
|
return [result2, { status: "complete", request: req, response }];
|
|
65390
66225
|
}
|
|
65391
|
-
var
|
|
66226
|
+
var init_staffMembersUpdateStaffMembers = __esm(() => {
|
|
65392
66227
|
init_encodings();
|
|
65393
66228
|
init_matchers();
|
|
65394
66229
|
init_primitives();
|
|
@@ -65401,28 +66236,28 @@ var init_smsTemplatesUpdateSMSTemplates = __esm(() => {
|
|
|
65401
66236
|
init_async();
|
|
65402
66237
|
});
|
|
65403
66238
|
|
|
65404
|
-
// src/mcp-server/tools/
|
|
65405
|
-
var
|
|
65406
|
-
var
|
|
65407
|
-
|
|
66239
|
+
// src/mcp-server/tools/staffMembersUpdateStaffMembers.ts
|
|
66240
|
+
var args138, tool$staffMembersUpdateStaffMembers;
|
|
66241
|
+
var init_staffMembersUpdateStaffMembers2 = __esm(() => {
|
|
66242
|
+
init_staffMembersUpdateStaffMembers();
|
|
65408
66243
|
init_operations();
|
|
65409
66244
|
init_tools();
|
|
65410
|
-
|
|
65411
|
-
request:
|
|
66245
|
+
args138 = {
|
|
66246
|
+
request: UpdateStaffMembersRequest$inboundSchema
|
|
65412
66247
|
};
|
|
65413
|
-
tool$
|
|
65414
|
-
name: "
|
|
65415
|
-
description: `Update a
|
|
66248
|
+
tool$staffMembersUpdateStaffMembers = {
|
|
66249
|
+
name: "staff-members-update-staff-members",
|
|
66250
|
+
description: `Update a Staff Member
|
|
65416
66251
|
|
|
65417
66252
|
|
|
65418
66253
|
|
|
65419
66254
|
#### OAuth Scope
|
|
65420
|
-
This endpoint requires the following OAuth scope **
|
|
66255
|
+
This endpoint requires the following OAuth scope **manage_staff**.
|
|
65421
66256
|
|
|
65422
66257
|
`,
|
|
65423
|
-
args:
|
|
65424
|
-
tool: async (client,
|
|
65425
|
-
const [result2, apiCall] = await
|
|
66258
|
+
args: args138,
|
|
66259
|
+
tool: async (client, args139, ctx) => {
|
|
66260
|
+
const [result2, apiCall] = await staffMembersUpdateStaffMembers(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65426
66261
|
if (!result2.ok) {
|
|
65427
66262
|
return {
|
|
65428
66263
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65435,18 +66270,18 @@ This endpoint requires the following OAuth scope **manage_templates**.
|
|
|
65435
66270
|
};
|
|
65436
66271
|
});
|
|
65437
66272
|
|
|
65438
|
-
// src/funcs/
|
|
65439
|
-
function
|
|
65440
|
-
return new APIPromise($
|
|
66273
|
+
// src/funcs/staffMessagesCreateStaffMessages.ts
|
|
66274
|
+
function staffMessagesCreateStaffMessages(client, request, options) {
|
|
66275
|
+
return new APIPromise($do172(client, request, options));
|
|
65441
66276
|
}
|
|
65442
|
-
async function $
|
|
65443
|
-
const parsed = safeParse(request, (value) =>
|
|
66277
|
+
async function $do172(client, request, options) {
|
|
66278
|
+
const parsed = safeParse(request, (value) => StaffMessageCreate$outboundSchema.parse(value), "Input validation failed");
|
|
65444
66279
|
if (!parsed.ok) {
|
|
65445
66280
|
return [parsed, { status: "invalid" }];
|
|
65446
66281
|
}
|
|
65447
66282
|
const payload = parsed.value;
|
|
65448
66283
|
const body = encodeJSON("body", payload, { explode: true });
|
|
65449
|
-
const path = pathToFunc("/
|
|
66284
|
+
const path = pathToFunc("/staffmessage.json")();
|
|
65450
66285
|
const headers = new Headers(compactMap({
|
|
65451
66286
|
"Content-Type": "application/json",
|
|
65452
66287
|
Accept: "application/json"
|
|
@@ -65456,7 +66291,7 @@ async function $do167(client, request, options) {
|
|
|
65456
66291
|
const context = {
|
|
65457
66292
|
options: client._options,
|
|
65458
66293
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65459
|
-
operationID: "
|
|
66294
|
+
operationID: "createStaffMessages",
|
|
65460
66295
|
oAuth2Scopes: [],
|
|
65461
66296
|
resolvedSecurity: requestSecurity,
|
|
65462
66297
|
securitySource: client._options.security,
|
|
@@ -65499,7 +66334,7 @@ async function $do167(client, request, options) {
|
|
|
65499
66334
|
const responseFields = {
|
|
65500
66335
|
HttpMeta: { Response: response, Request: req }
|
|
65501
66336
|
};
|
|
65502
|
-
const [result2] = await match(json(200,
|
|
66337
|
+
const [result2] = await match(json(200, CreateStaffMessagesResponse$inboundSchema, {
|
|
65503
66338
|
hdrs: true,
|
|
65504
66339
|
key: "Result"
|
|
65505
66340
|
}), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
@@ -65508,7 +66343,7 @@ async function $do167(client, request, options) {
|
|
|
65508
66343
|
}
|
|
65509
66344
|
return [result2, { status: "complete", request: req, response }];
|
|
65510
66345
|
}
|
|
65511
|
-
var
|
|
66346
|
+
var init_staffMessagesCreateStaffMessages = __esm(() => {
|
|
65512
66347
|
init_encodings();
|
|
65513
66348
|
init_matchers();
|
|
65514
66349
|
init_primitives();
|
|
@@ -65521,23 +66356,23 @@ var init_staffMembersCreateStaffMembers = __esm(() => {
|
|
|
65521
66356
|
init_async();
|
|
65522
66357
|
});
|
|
65523
66358
|
|
|
65524
|
-
// src/mcp-server/tools/
|
|
65525
|
-
var
|
|
65526
|
-
var
|
|
65527
|
-
|
|
66359
|
+
// src/mcp-server/tools/staffMessagesCreateStaffMessages.ts
|
|
66360
|
+
var args139, tool$staffMessagesCreateStaffMessages;
|
|
66361
|
+
var init_staffMessagesCreateStaffMessages2 = __esm(() => {
|
|
66362
|
+
init_staffMessagesCreateStaffMessages();
|
|
65528
66363
|
init_components();
|
|
65529
66364
|
init_tools();
|
|
65530
|
-
|
|
65531
|
-
request:
|
|
66365
|
+
args139 = {
|
|
66366
|
+
request: StaffMessageCreate$inboundSchema
|
|
65532
66367
|
};
|
|
65533
|
-
tool$
|
|
65534
|
-
name: "staff-
|
|
65535
|
-
description: `Create a new Staff
|
|
66368
|
+
tool$staffMessagesCreateStaffMessages = {
|
|
66369
|
+
name: "staff-messages-create-staff-messages",
|
|
66370
|
+
description: `Create a new Staff Message
|
|
65536
66371
|
|
|
65537
66372
|
|
|
65538
66373
|
|
|
65539
66374
|
#### OAuth Scope
|
|
65540
|
-
This endpoint requires the following OAuth scope **
|
|
66375
|
+
This endpoint requires the following OAuth scope **publish_messages**.
|
|
65541
66376
|
|
|
65542
66377
|
|
|
65543
66378
|
|
|
@@ -65545,9 +66380,9 @@ This endpoint requires the following OAuth scope **manage_staff**.
|
|
|
65545
66380
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
65546
66381
|
|
|
65547
66382
|
`,
|
|
65548
|
-
args:
|
|
65549
|
-
tool: async (client,
|
|
65550
|
-
const [result2, apiCall] = await
|
|
66383
|
+
args: args139,
|
|
66384
|
+
tool: async (client, args140, ctx) => {
|
|
66385
|
+
const [result2, apiCall] = await staffMessagesCreateStaffMessages(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65551
66386
|
if (!result2.ok) {
|
|
65552
66387
|
return {
|
|
65553
66388
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65560,12 +66395,12 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
65560
66395
|
};
|
|
65561
66396
|
});
|
|
65562
66397
|
|
|
65563
|
-
// src/funcs/
|
|
65564
|
-
function
|
|
65565
|
-
return new APIPromise($
|
|
66398
|
+
// src/funcs/staffMessagesDeleteStaffMessages.ts
|
|
66399
|
+
function staffMessagesDeleteStaffMessages(client, request, options) {
|
|
66400
|
+
return new APIPromise($do173(client, request, options));
|
|
65566
66401
|
}
|
|
65567
|
-
async function $
|
|
65568
|
-
const parsed = safeParse(request, (value) =>
|
|
66402
|
+
async function $do173(client, request, options) {
|
|
66403
|
+
const parsed = safeParse(request, (value) => DeleteStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65569
66404
|
if (!parsed.ok) {
|
|
65570
66405
|
return [parsed, { status: "invalid" }];
|
|
65571
66406
|
}
|
|
@@ -65577,7 +66412,7 @@ async function $do168(client, request, options) {
|
|
|
65577
66412
|
charEncoding: "percent"
|
|
65578
66413
|
})
|
|
65579
66414
|
};
|
|
65580
|
-
const path = pathToFunc("/
|
|
66415
|
+
const path = pathToFunc("/staffmessage/{uuid}.json")(pathParams);
|
|
65581
66416
|
const headers = new Headers(compactMap({
|
|
65582
66417
|
Accept: "application/json"
|
|
65583
66418
|
}));
|
|
@@ -65586,7 +66421,7 @@ async function $do168(client, request, options) {
|
|
|
65586
66421
|
const context = {
|
|
65587
66422
|
options: client._options,
|
|
65588
66423
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65589
|
-
operationID: "
|
|
66424
|
+
operationID: "deleteStaffMessages",
|
|
65590
66425
|
oAuth2Scopes: [],
|
|
65591
66426
|
resolvedSecurity: requestSecurity,
|
|
65592
66427
|
securitySource: client._options.security,
|
|
@@ -65635,7 +66470,7 @@ async function $do168(client, request, options) {
|
|
|
65635
66470
|
}
|
|
65636
66471
|
return [result2, { status: "complete", request: req, response }];
|
|
65637
66472
|
}
|
|
65638
|
-
var
|
|
66473
|
+
var init_staffMessagesDeleteStaffMessages = __esm(() => {
|
|
65639
66474
|
init_encodings();
|
|
65640
66475
|
init_matchers();
|
|
65641
66476
|
init_primitives();
|
|
@@ -65648,18 +66483,18 @@ var init_staffMembersDeleteStaffMembers = __esm(() => {
|
|
|
65648
66483
|
init_async();
|
|
65649
66484
|
});
|
|
65650
66485
|
|
|
65651
|
-
// src/mcp-server/tools/
|
|
65652
|
-
var
|
|
65653
|
-
var
|
|
65654
|
-
|
|
66486
|
+
// src/mcp-server/tools/staffMessagesDeleteStaffMessages.ts
|
|
66487
|
+
var args140, tool$staffMessagesDeleteStaffMessages;
|
|
66488
|
+
var init_staffMessagesDeleteStaffMessages2 = __esm(() => {
|
|
66489
|
+
init_staffMessagesDeleteStaffMessages();
|
|
65655
66490
|
init_operations();
|
|
65656
66491
|
init_tools();
|
|
65657
|
-
|
|
65658
|
-
request:
|
|
66492
|
+
args140 = {
|
|
66493
|
+
request: DeleteStaffMessagesRequest$inboundSchema
|
|
65659
66494
|
};
|
|
65660
|
-
tool$
|
|
65661
|
-
name: "staff-
|
|
65662
|
-
description: `Delete a Staff
|
|
66495
|
+
tool$staffMessagesDeleteStaffMessages = {
|
|
66496
|
+
name: "staff-messages-delete-staff-messages",
|
|
66497
|
+
description: `Delete a Staff Message
|
|
65663
66498
|
|
|
65664
66499
|
|
|
65665
66500
|
|
|
@@ -65668,12 +66503,12 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
65668
66503
|
|
|
65669
66504
|
|
|
65670
66505
|
#### OAuth Scope
|
|
65671
|
-
This endpoint requires the following OAuth scope **
|
|
66506
|
+
This endpoint requires the following OAuth scope **publish_messages**.
|
|
65672
66507
|
|
|
65673
66508
|
`,
|
|
65674
|
-
args:
|
|
65675
|
-
tool: async (client,
|
|
65676
|
-
const [result2, apiCall] = await
|
|
66509
|
+
args: args140,
|
|
66510
|
+
tool: async (client, args141, ctx) => {
|
|
66511
|
+
const [result2, apiCall] = await staffMessagesDeleteStaffMessages(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65677
66512
|
if (!result2.ok) {
|
|
65678
66513
|
return {
|
|
65679
66514
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65686,12 +66521,12 @@ This endpoint requires the following OAuth scope **manage_staff**.
|
|
|
65686
66521
|
};
|
|
65687
66522
|
});
|
|
65688
66523
|
|
|
65689
|
-
// src/funcs/
|
|
65690
|
-
function
|
|
65691
|
-
return new APIPromise($
|
|
66524
|
+
// src/funcs/staffMessagesGetStaffMessages.ts
|
|
66525
|
+
function staffMessagesGetStaffMessages(client, request, options) {
|
|
66526
|
+
return new APIPromise($do174(client, request, options));
|
|
65692
66527
|
}
|
|
65693
|
-
async function $
|
|
65694
|
-
const parsed = safeParse(request, (value) =>
|
|
66528
|
+
async function $do174(client, request, options) {
|
|
66529
|
+
const parsed = safeParse(request, (value) => GetStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65695
66530
|
if (!parsed.ok) {
|
|
65696
66531
|
return [parsed, { status: "invalid" }];
|
|
65697
66532
|
}
|
|
@@ -65703,7 +66538,7 @@ async function $do169(client, request, options) {
|
|
|
65703
66538
|
charEncoding: "percent"
|
|
65704
66539
|
})
|
|
65705
66540
|
};
|
|
65706
|
-
const path = pathToFunc("/
|
|
66541
|
+
const path = pathToFunc("/staffmessage/{uuid}.json")(pathParams);
|
|
65707
66542
|
const headers = new Headers(compactMap({
|
|
65708
66543
|
Accept: "application/json"
|
|
65709
66544
|
}));
|
|
@@ -65712,7 +66547,7 @@ async function $do169(client, request, options) {
|
|
|
65712
66547
|
const context = {
|
|
65713
66548
|
options: client._options,
|
|
65714
66549
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65715
|
-
operationID: "
|
|
66550
|
+
operationID: "getStaffMessages",
|
|
65716
66551
|
oAuth2Scopes: [],
|
|
65717
66552
|
resolvedSecurity: requestSecurity,
|
|
65718
66553
|
securitySource: client._options.security,
|
|
@@ -65755,13 +66590,13 @@ async function $do169(client, request, options) {
|
|
|
65755
66590
|
const responseFields = {
|
|
65756
66591
|
HttpMeta: { Response: response, Request: req }
|
|
65757
66592
|
};
|
|
65758
|
-
const [result2] = await match(json(200,
|
|
66593
|
+
const [result2] = await match(json(200, StaffMessage$inboundSchema), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65759
66594
|
if (!result2.ok) {
|
|
65760
66595
|
return [result2, { status: "complete", request: req, response }];
|
|
65761
66596
|
}
|
|
65762
66597
|
return [result2, { status: "complete", request: req, response }];
|
|
65763
66598
|
}
|
|
65764
|
-
var
|
|
66599
|
+
var init_staffMessagesGetStaffMessages = __esm(() => {
|
|
65765
66600
|
init_encodings();
|
|
65766
66601
|
init_matchers();
|
|
65767
66602
|
init_primitives();
|
|
@@ -65774,28 +66609,28 @@ var init_staffMembersGetStaffMembers = __esm(() => {
|
|
|
65774
66609
|
init_async();
|
|
65775
66610
|
});
|
|
65776
66611
|
|
|
65777
|
-
// src/mcp-server/tools/
|
|
65778
|
-
var
|
|
65779
|
-
var
|
|
65780
|
-
|
|
66612
|
+
// src/mcp-server/tools/staffMessagesGetStaffMessages.ts
|
|
66613
|
+
var args141, tool$staffMessagesGetStaffMessages;
|
|
66614
|
+
var init_staffMessagesGetStaffMessages2 = __esm(() => {
|
|
66615
|
+
init_staffMessagesGetStaffMessages();
|
|
65781
66616
|
init_operations();
|
|
65782
66617
|
init_tools();
|
|
65783
|
-
|
|
65784
|
-
request:
|
|
66618
|
+
args141 = {
|
|
66619
|
+
request: GetStaffMessagesRequest$inboundSchema
|
|
65785
66620
|
};
|
|
65786
|
-
tool$
|
|
65787
|
-
name: "staff-
|
|
65788
|
-
description: `Retrieve a Staff
|
|
66621
|
+
tool$staffMessagesGetStaffMessages = {
|
|
66622
|
+
name: "staff-messages-get-staff-messages",
|
|
66623
|
+
description: `Retrieve a Staff Message
|
|
65789
66624
|
|
|
65790
66625
|
|
|
65791
66626
|
|
|
65792
66627
|
#### OAuth Scope
|
|
65793
|
-
This endpoint requires the following OAuth scope **
|
|
66628
|
+
This endpoint requires the following OAuth scope **read_messages**.
|
|
65794
66629
|
|
|
65795
66630
|
`,
|
|
65796
|
-
args:
|
|
65797
|
-
tool: async (client,
|
|
65798
|
-
const [result2, apiCall] = await
|
|
66631
|
+
args: args141,
|
|
66632
|
+
tool: async (client, args142, ctx) => {
|
|
66633
|
+
const [result2, apiCall] = await staffMessagesGetStaffMessages(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65799
66634
|
if (!result2.ok) {
|
|
65800
66635
|
return {
|
|
65801
66636
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65808,12 +66643,12 @@ This endpoint requires the following OAuth scope **read_staff**.
|
|
|
65808
66643
|
};
|
|
65809
66644
|
});
|
|
65810
66645
|
|
|
65811
|
-
// src/funcs/
|
|
65812
|
-
function
|
|
65813
|
-
return new APIPromise($
|
|
66646
|
+
// src/funcs/staffMessagesListStaffMessages.ts
|
|
66647
|
+
function staffMessagesListStaffMessages(client, options) {
|
|
66648
|
+
return new APIPromise($do175(client, options));
|
|
65814
66649
|
}
|
|
65815
|
-
async function $
|
|
65816
|
-
const path = pathToFunc("/
|
|
66650
|
+
async function $do175(client, options) {
|
|
66651
|
+
const path = pathToFunc("/staffmessage.json")();
|
|
65817
66652
|
const headers = new Headers(compactMap({
|
|
65818
66653
|
Accept: "application/json"
|
|
65819
66654
|
}));
|
|
@@ -65822,7 +66657,7 @@ async function $do170(client, options) {
|
|
|
65822
66657
|
const context = {
|
|
65823
66658
|
options: client._options,
|
|
65824
66659
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65825
|
-
operationID: "
|
|
66660
|
+
operationID: "listStaffMessages",
|
|
65826
66661
|
oAuth2Scopes: [],
|
|
65827
66662
|
resolvedSecurity: requestSecurity,
|
|
65828
66663
|
securitySource: client._options.security,
|
|
@@ -65864,13 +66699,13 @@ async function $do170(client, options) {
|
|
|
65864
66699
|
const responseFields = {
|
|
65865
66700
|
HttpMeta: { Response: response, Request: req }
|
|
65866
66701
|
};
|
|
65867
|
-
const [result2] = await match(json(200, arrayType(
|
|
66702
|
+
const [result2] = await match(json(200, arrayType(StaffMessage$inboundSchema)), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
65868
66703
|
if (!result2.ok) {
|
|
65869
66704
|
return [result2, { status: "complete", request: req, response }];
|
|
65870
66705
|
}
|
|
65871
66706
|
return [result2, { status: "complete", request: req, response }];
|
|
65872
66707
|
}
|
|
65873
|
-
var
|
|
66708
|
+
var init_staffMessagesListStaffMessages = __esm(() => {
|
|
65874
66709
|
init_esm();
|
|
65875
66710
|
init_matchers();
|
|
65876
66711
|
init_primitives();
|
|
@@ -65881,14 +66716,14 @@ var init_staffMembersListStaffMembers = __esm(() => {
|
|
|
65881
66716
|
init_async();
|
|
65882
66717
|
});
|
|
65883
66718
|
|
|
65884
|
-
// src/mcp-server/tools/
|
|
65885
|
-
var tool$
|
|
65886
|
-
var
|
|
65887
|
-
|
|
66719
|
+
// src/mcp-server/tools/staffMessagesListStaffMessages.ts
|
|
66720
|
+
var tool$staffMessagesListStaffMessages;
|
|
66721
|
+
var init_staffMessagesListStaffMessages2 = __esm(() => {
|
|
66722
|
+
init_staffMessagesListStaffMessages();
|
|
65888
66723
|
init_tools();
|
|
65889
|
-
tool$
|
|
65890
|
-
name: "staff-
|
|
65891
|
-
description: `List all Staff
|
|
66724
|
+
tool$staffMessagesListStaffMessages = {
|
|
66725
|
+
name: "staff-messages-list-staff-messages",
|
|
66726
|
+
description: `List all Staff Messages
|
|
65892
66727
|
|
|
65893
66728
|
|
|
65894
66729
|
|
|
@@ -65897,11 +66732,11 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
65897
66732
|
|
|
65898
66733
|
|
|
65899
66734
|
#### OAuth Scope
|
|
65900
|
-
This endpoint requires the following OAuth scope **
|
|
66735
|
+
This endpoint requires the following OAuth scope **read_messages**.
|
|
65901
66736
|
|
|
65902
66737
|
`,
|
|
65903
66738
|
tool: async (client, ctx) => {
|
|
65904
|
-
const [result2, apiCall] = await
|
|
66739
|
+
const [result2, apiCall] = await staffMessagesListStaffMessages(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65905
66740
|
if (!result2.ok) {
|
|
65906
66741
|
return {
|
|
65907
66742
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65914,24 +66749,26 @@ This endpoint requires the following OAuth scope **read_staff**.
|
|
|
65914
66749
|
};
|
|
65915
66750
|
});
|
|
65916
66751
|
|
|
65917
|
-
// src/funcs/
|
|
65918
|
-
function
|
|
65919
|
-
return new APIPromise($
|
|
66752
|
+
// src/funcs/staffMessagesUpdateStaffMessages.ts
|
|
66753
|
+
function staffMessagesUpdateStaffMessages(client, request, options) {
|
|
66754
|
+
return new APIPromise($do176(client, request, options));
|
|
65920
66755
|
}
|
|
65921
|
-
async function $
|
|
65922
|
-
const parsed = safeParse(request, (value) =>
|
|
66756
|
+
async function $do176(client, request, options) {
|
|
66757
|
+
const parsed = safeParse(request, (value) => UpdateStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65923
66758
|
if (!parsed.ok) {
|
|
65924
66759
|
return [parsed, { status: "invalid" }];
|
|
65925
66760
|
}
|
|
65926
66761
|
const payload = parsed.value;
|
|
65927
|
-
const body = encodeJSON("body", payload.
|
|
66762
|
+
const body = encodeJSON("body", payload.StaffMessageCreate, {
|
|
66763
|
+
explode: true
|
|
66764
|
+
});
|
|
65928
66765
|
const pathParams = {
|
|
65929
66766
|
uuid: encodeSimple("uuid", payload.uuid, {
|
|
65930
66767
|
explode: false,
|
|
65931
66768
|
charEncoding: "percent"
|
|
65932
66769
|
})
|
|
65933
66770
|
};
|
|
65934
|
-
const path = pathToFunc("/
|
|
66771
|
+
const path = pathToFunc("/staffmessage/{uuid}.json")(pathParams);
|
|
65935
66772
|
const headers = new Headers(compactMap({
|
|
65936
66773
|
"Content-Type": "application/json",
|
|
65937
66774
|
Accept: "application/json"
|
|
@@ -65941,7 +66778,7 @@ async function $do171(client, request, options) {
|
|
|
65941
66778
|
const context = {
|
|
65942
66779
|
options: client._options,
|
|
65943
66780
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
65944
|
-
operationID: "
|
|
66781
|
+
operationID: "updateStaffMessages",
|
|
65945
66782
|
oAuth2Scopes: [],
|
|
65946
66783
|
resolvedSecurity: requestSecurity,
|
|
65947
66784
|
securitySource: client._options.security,
|
|
@@ -65990,7 +66827,7 @@ async function $do171(client, request, options) {
|
|
|
65990
66827
|
}
|
|
65991
66828
|
return [result2, { status: "complete", request: req, response }];
|
|
65992
66829
|
}
|
|
65993
|
-
var
|
|
66830
|
+
var init_staffMessagesUpdateStaffMessages = __esm(() => {
|
|
65994
66831
|
init_encodings();
|
|
65995
66832
|
init_matchers();
|
|
65996
66833
|
init_primitives();
|
|
@@ -66003,28 +66840,28 @@ var init_staffMembersUpdateStaffMembers = __esm(() => {
|
|
|
66003
66840
|
init_async();
|
|
66004
66841
|
});
|
|
66005
66842
|
|
|
66006
|
-
// src/mcp-server/tools/
|
|
66007
|
-
var
|
|
66008
|
-
var
|
|
66009
|
-
|
|
66843
|
+
// src/mcp-server/tools/staffMessagesUpdateStaffMessages.ts
|
|
66844
|
+
var args142, tool$staffMessagesUpdateStaffMessages;
|
|
66845
|
+
var init_staffMessagesUpdateStaffMessages2 = __esm(() => {
|
|
66846
|
+
init_staffMessagesUpdateStaffMessages();
|
|
66010
66847
|
init_operations();
|
|
66011
66848
|
init_tools();
|
|
66012
|
-
|
|
66013
|
-
request:
|
|
66849
|
+
args142 = {
|
|
66850
|
+
request: UpdateStaffMessagesRequest$inboundSchema
|
|
66014
66851
|
};
|
|
66015
|
-
tool$
|
|
66016
|
-
name: "staff-
|
|
66017
|
-
description: `Update a Staff
|
|
66852
|
+
tool$staffMessagesUpdateStaffMessages = {
|
|
66853
|
+
name: "staff-messages-update-staff-messages",
|
|
66854
|
+
description: `Update a Staff Message
|
|
66018
66855
|
|
|
66019
66856
|
|
|
66020
66857
|
|
|
66021
66858
|
#### OAuth Scope
|
|
66022
|
-
This endpoint requires the following OAuth scope **
|
|
66859
|
+
This endpoint requires the following OAuth scope **publish_messages**.
|
|
66023
66860
|
|
|
66024
66861
|
`,
|
|
66025
|
-
args:
|
|
66026
|
-
tool: async (client,
|
|
66027
|
-
const [result2, apiCall] = await
|
|
66862
|
+
args: args142,
|
|
66863
|
+
tool: async (client, args143, ctx) => {
|
|
66864
|
+
const [result2, apiCall] = await staffMessagesUpdateStaffMessages(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66028
66865
|
if (!result2.ok) {
|
|
66029
66866
|
return {
|
|
66030
66867
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66037,18 +66874,18 @@ This endpoint requires the following OAuth scope **manage_staff**.
|
|
|
66037
66874
|
};
|
|
66038
66875
|
});
|
|
66039
66876
|
|
|
66040
|
-
// src/funcs/
|
|
66041
|
-
function
|
|
66042
|
-
return new APIPromise($
|
|
66877
|
+
// src/funcs/suppliersCreateSuppliers.ts
|
|
66878
|
+
function suppliersCreateSuppliers(client, request, options) {
|
|
66879
|
+
return new APIPromise($do177(client, request, options));
|
|
66043
66880
|
}
|
|
66044
|
-
async function $
|
|
66045
|
-
const parsed = safeParse(request, (value) =>
|
|
66881
|
+
async function $do177(client, request, options) {
|
|
66882
|
+
const parsed = safeParse(request, (value) => SupplierCreate$outboundSchema.parse(value), "Input validation failed");
|
|
66046
66883
|
if (!parsed.ok) {
|
|
66047
66884
|
return [parsed, { status: "invalid" }];
|
|
66048
66885
|
}
|
|
66049
66886
|
const payload = parsed.value;
|
|
66050
66887
|
const body = encodeJSON("body", payload, { explode: true });
|
|
66051
|
-
const path = pathToFunc("/
|
|
66888
|
+
const path = pathToFunc("/supplier.json")();
|
|
66052
66889
|
const headers = new Headers(compactMap({
|
|
66053
66890
|
"Content-Type": "application/json",
|
|
66054
66891
|
Accept: "application/json"
|
|
@@ -66058,7 +66895,7 @@ async function $do172(client, request, options) {
|
|
|
66058
66895
|
const context = {
|
|
66059
66896
|
options: client._options,
|
|
66060
66897
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
66061
|
-
operationID: "
|
|
66898
|
+
operationID: "createSuppliers",
|
|
66062
66899
|
oAuth2Scopes: [],
|
|
66063
66900
|
resolvedSecurity: requestSecurity,
|
|
66064
66901
|
securitySource: client._options.security,
|
|
@@ -66101,7 +66938,7 @@ async function $do172(client, request, options) {
|
|
|
66101
66938
|
const responseFields = {
|
|
66102
66939
|
HttpMeta: { Response: response, Request: req }
|
|
66103
66940
|
};
|
|
66104
|
-
const [result2] = await match(json(200,
|
|
66941
|
+
const [result2] = await match(json(200, CreateSuppliersResponse$inboundSchema, {
|
|
66105
66942
|
hdrs: true,
|
|
66106
66943
|
key: "Result"
|
|
66107
66944
|
}), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
@@ -66110,7 +66947,7 @@ async function $do172(client, request, options) {
|
|
|
66110
66947
|
}
|
|
66111
66948
|
return [result2, { status: "complete", request: req, response }];
|
|
66112
66949
|
}
|
|
66113
|
-
var
|
|
66950
|
+
var init_suppliersCreateSuppliers = __esm(() => {
|
|
66114
66951
|
init_encodings();
|
|
66115
66952
|
init_matchers();
|
|
66116
66953
|
init_primitives();
|
|
@@ -66123,23 +66960,23 @@ var init_staffMessagesCreateStaffMessages = __esm(() => {
|
|
|
66123
66960
|
init_async();
|
|
66124
66961
|
});
|
|
66125
66962
|
|
|
66126
|
-
// src/mcp-server/tools/
|
|
66127
|
-
var
|
|
66128
|
-
var
|
|
66129
|
-
|
|
66963
|
+
// src/mcp-server/tools/suppliersCreateSuppliers.ts
|
|
66964
|
+
var args143, tool$suppliersCreateSuppliers;
|
|
66965
|
+
var init_suppliersCreateSuppliers2 = __esm(() => {
|
|
66966
|
+
init_suppliersCreateSuppliers();
|
|
66130
66967
|
init_components();
|
|
66131
66968
|
init_tools();
|
|
66132
|
-
|
|
66133
|
-
request:
|
|
66969
|
+
args143 = {
|
|
66970
|
+
request: SupplierCreate$inboundSchema
|
|
66134
66971
|
};
|
|
66135
|
-
tool$
|
|
66136
|
-
name: "
|
|
66137
|
-
description: `Create a new
|
|
66972
|
+
tool$suppliersCreateSuppliers = {
|
|
66973
|
+
name: "suppliers-create-suppliers",
|
|
66974
|
+
description: `Create a new Supplier
|
|
66138
66975
|
|
|
66139
66976
|
|
|
66140
66977
|
|
|
66141
66978
|
#### OAuth Scope
|
|
66142
|
-
This endpoint requires the following OAuth scope **
|
|
66979
|
+
This endpoint requires the following OAuth scope **manage_suppliers**.
|
|
66143
66980
|
|
|
66144
66981
|
|
|
66145
66982
|
|
|
@@ -66147,9 +66984,9 @@ This endpoint requires the following OAuth scope **publish_messages**.
|
|
|
66147
66984
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
66148
66985
|
|
|
66149
66986
|
`,
|
|
66150
|
-
args:
|
|
66151
|
-
tool: async (client,
|
|
66152
|
-
const [result2, apiCall] = await
|
|
66987
|
+
args: args143,
|
|
66988
|
+
tool: async (client, args144, ctx) => {
|
|
66989
|
+
const [result2, apiCall] = await suppliersCreateSuppliers(client, args144.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66153
66990
|
if (!result2.ok) {
|
|
66154
66991
|
return {
|
|
66155
66992
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66162,12 +66999,12 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
66162
66999
|
};
|
|
66163
67000
|
});
|
|
66164
67001
|
|
|
66165
|
-
// src/funcs/
|
|
66166
|
-
function
|
|
66167
|
-
return new APIPromise($
|
|
67002
|
+
// src/funcs/suppliersDeleteSuppliers.ts
|
|
67003
|
+
function suppliersDeleteSuppliers(client, request, options) {
|
|
67004
|
+
return new APIPromise($do178(client, request, options));
|
|
66168
67005
|
}
|
|
66169
|
-
async function $
|
|
66170
|
-
const parsed = safeParse(request, (value) =>
|
|
67006
|
+
async function $do178(client, request, options) {
|
|
67007
|
+
const parsed = safeParse(request, (value) => DeleteSuppliersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66171
67008
|
if (!parsed.ok) {
|
|
66172
67009
|
return [parsed, { status: "invalid" }];
|
|
66173
67010
|
}
|
|
@@ -66179,7 +67016,7 @@ async function $do173(client, request, options) {
|
|
|
66179
67016
|
charEncoding: "percent"
|
|
66180
67017
|
})
|
|
66181
67018
|
};
|
|
66182
|
-
const path = pathToFunc("/
|
|
67019
|
+
const path = pathToFunc("/supplier/{uuid}.json")(pathParams);
|
|
66183
67020
|
const headers = new Headers(compactMap({
|
|
66184
67021
|
Accept: "application/json"
|
|
66185
67022
|
}));
|
|
@@ -66188,7 +67025,7 @@ async function $do173(client, request, options) {
|
|
|
66188
67025
|
const context = {
|
|
66189
67026
|
options: client._options,
|
|
66190
67027
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
66191
|
-
operationID: "
|
|
67028
|
+
operationID: "deleteSuppliers",
|
|
66192
67029
|
oAuth2Scopes: [],
|
|
66193
67030
|
resolvedSecurity: requestSecurity,
|
|
66194
67031
|
securitySource: client._options.security,
|
|
@@ -66237,7 +67074,7 @@ async function $do173(client, request, options) {
|
|
|
66237
67074
|
}
|
|
66238
67075
|
return [result2, { status: "complete", request: req, response }];
|
|
66239
67076
|
}
|
|
66240
|
-
var
|
|
67077
|
+
var init_suppliersDeleteSuppliers = __esm(() => {
|
|
66241
67078
|
init_encodings();
|
|
66242
67079
|
init_matchers();
|
|
66243
67080
|
init_primitives();
|
|
@@ -66250,18 +67087,18 @@ var init_staffMessagesDeleteStaffMessages = __esm(() => {
|
|
|
66250
67087
|
init_async();
|
|
66251
67088
|
});
|
|
66252
67089
|
|
|
66253
|
-
// src/mcp-server/tools/
|
|
66254
|
-
var
|
|
66255
|
-
var
|
|
66256
|
-
|
|
67090
|
+
// src/mcp-server/tools/suppliersDeleteSuppliers.ts
|
|
67091
|
+
var args144, tool$suppliersDeleteSuppliers;
|
|
67092
|
+
var init_suppliersDeleteSuppliers2 = __esm(() => {
|
|
67093
|
+
init_suppliersDeleteSuppliers();
|
|
66257
67094
|
init_operations();
|
|
66258
67095
|
init_tools();
|
|
66259
|
-
|
|
66260
|
-
request:
|
|
67096
|
+
args144 = {
|
|
67097
|
+
request: DeleteSuppliersRequest$inboundSchema
|
|
66261
67098
|
};
|
|
66262
|
-
tool$
|
|
66263
|
-
name: "
|
|
66264
|
-
description: `Delete a
|
|
67099
|
+
tool$suppliersDeleteSuppliers = {
|
|
67100
|
+
name: "suppliers-delete-suppliers",
|
|
67101
|
+
description: `Delete a Supplier
|
|
66265
67102
|
|
|
66266
67103
|
|
|
66267
67104
|
|
|
@@ -66270,12 +67107,12 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
66270
67107
|
|
|
66271
67108
|
|
|
66272
67109
|
#### OAuth Scope
|
|
66273
|
-
This endpoint requires the following OAuth scope **
|
|
67110
|
+
This endpoint requires the following OAuth scope **manage_suppliers**.
|
|
66274
67111
|
|
|
66275
67112
|
`,
|
|
66276
|
-
args:
|
|
66277
|
-
tool: async (client,
|
|
66278
|
-
const [result2, apiCall] = await
|
|
67113
|
+
args: args144,
|
|
67114
|
+
tool: async (client, args145, ctx) => {
|
|
67115
|
+
const [result2, apiCall] = await suppliersDeleteSuppliers(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66279
67116
|
if (!result2.ok) {
|
|
66280
67117
|
return {
|
|
66281
67118
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66288,12 +67125,12 @@ This endpoint requires the following OAuth scope **publish_messages**.
|
|
|
66288
67125
|
};
|
|
66289
67126
|
});
|
|
66290
67127
|
|
|
66291
|
-
// src/funcs/
|
|
66292
|
-
function
|
|
66293
|
-
return new APIPromise($
|
|
67128
|
+
// src/funcs/suppliersGetSuppliers.ts
|
|
67129
|
+
function suppliersGetSuppliers(client, request, options) {
|
|
67130
|
+
return new APIPromise($do179(client, request, options));
|
|
66294
67131
|
}
|
|
66295
|
-
async function $
|
|
66296
|
-
const parsed = safeParse(request, (value) =>
|
|
67132
|
+
async function $do179(client, request, options) {
|
|
67133
|
+
const parsed = safeParse(request, (value) => GetSuppliersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66297
67134
|
if (!parsed.ok) {
|
|
66298
67135
|
return [parsed, { status: "invalid" }];
|
|
66299
67136
|
}
|
|
@@ -66305,7 +67142,7 @@ async function $do174(client, request, options) {
|
|
|
66305
67142
|
charEncoding: "percent"
|
|
66306
67143
|
})
|
|
66307
67144
|
};
|
|
66308
|
-
const path = pathToFunc("/
|
|
67145
|
+
const path = pathToFunc("/supplier/{uuid}.json")(pathParams);
|
|
66309
67146
|
const headers = new Headers(compactMap({
|
|
66310
67147
|
Accept: "application/json"
|
|
66311
67148
|
}));
|
|
@@ -66314,7 +67151,7 @@ async function $do174(client, request, options) {
|
|
|
66314
67151
|
const context = {
|
|
66315
67152
|
options: client._options,
|
|
66316
67153
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
66317
|
-
operationID: "
|
|
67154
|
+
operationID: "getSuppliers",
|
|
66318
67155
|
oAuth2Scopes: [],
|
|
66319
67156
|
resolvedSecurity: requestSecurity,
|
|
66320
67157
|
securitySource: client._options.security,
|
|
@@ -66357,13 +67194,13 @@ async function $do174(client, request, options) {
|
|
|
66357
67194
|
const responseFields = {
|
|
66358
67195
|
HttpMeta: { Response: response, Request: req }
|
|
66359
67196
|
};
|
|
66360
|
-
const [result2] = await match(json(200,
|
|
67197
|
+
const [result2] = await match(json(200, Supplier$inboundSchema), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(404, NotFoundError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
66361
67198
|
if (!result2.ok) {
|
|
66362
67199
|
return [result2, { status: "complete", request: req, response }];
|
|
66363
67200
|
}
|
|
66364
67201
|
return [result2, { status: "complete", request: req, response }];
|
|
66365
67202
|
}
|
|
66366
|
-
var
|
|
67203
|
+
var init_suppliersGetSuppliers = __esm(() => {
|
|
66367
67204
|
init_encodings();
|
|
66368
67205
|
init_matchers();
|
|
66369
67206
|
init_primitives();
|
|
@@ -66376,28 +67213,28 @@ var init_staffMessagesGetStaffMessages = __esm(() => {
|
|
|
66376
67213
|
init_async();
|
|
66377
67214
|
});
|
|
66378
67215
|
|
|
66379
|
-
// src/mcp-server/tools/
|
|
66380
|
-
var
|
|
66381
|
-
var
|
|
66382
|
-
|
|
67216
|
+
// src/mcp-server/tools/suppliersGetSuppliers.ts
|
|
67217
|
+
var args145, tool$suppliersGetSuppliers;
|
|
67218
|
+
var init_suppliersGetSuppliers2 = __esm(() => {
|
|
67219
|
+
init_suppliersGetSuppliers();
|
|
66383
67220
|
init_operations();
|
|
66384
67221
|
init_tools();
|
|
66385
|
-
|
|
66386
|
-
request:
|
|
67222
|
+
args145 = {
|
|
67223
|
+
request: GetSuppliersRequest$inboundSchema
|
|
66387
67224
|
};
|
|
66388
|
-
tool$
|
|
66389
|
-
name: "
|
|
66390
|
-
description: `Retrieve a
|
|
67225
|
+
tool$suppliersGetSuppliers = {
|
|
67226
|
+
name: "suppliers-get-suppliers",
|
|
67227
|
+
description: `Retrieve a Supplier
|
|
66391
67228
|
|
|
66392
67229
|
|
|
66393
67230
|
|
|
66394
67231
|
#### OAuth Scope
|
|
66395
|
-
This endpoint requires the following OAuth scope **
|
|
67232
|
+
This endpoint requires the following OAuth scope **read_suppliers**.
|
|
66396
67233
|
|
|
66397
67234
|
`,
|
|
66398
|
-
args:
|
|
66399
|
-
tool: async (client,
|
|
66400
|
-
const [result2, apiCall] = await
|
|
67235
|
+
args: args145,
|
|
67236
|
+
tool: async (client, args146, ctx) => {
|
|
67237
|
+
const [result2, apiCall] = await suppliersGetSuppliers(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66401
67238
|
if (!result2.ok) {
|
|
66402
67239
|
return {
|
|
66403
67240
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66410,12 +67247,12 @@ This endpoint requires the following OAuth scope **read_messages**.
|
|
|
66410
67247
|
};
|
|
66411
67248
|
});
|
|
66412
67249
|
|
|
66413
|
-
// src/funcs/
|
|
66414
|
-
function
|
|
66415
|
-
return new APIPromise($
|
|
67250
|
+
// src/funcs/suppliersListSuppliers.ts
|
|
67251
|
+
function suppliersListSuppliers(client, options) {
|
|
67252
|
+
return new APIPromise($do180(client, options));
|
|
66416
67253
|
}
|
|
66417
|
-
async function $
|
|
66418
|
-
const path = pathToFunc("/
|
|
67254
|
+
async function $do180(client, options) {
|
|
67255
|
+
const path = pathToFunc("/supplier.json")();
|
|
66419
67256
|
const headers = new Headers(compactMap({
|
|
66420
67257
|
Accept: "application/json"
|
|
66421
67258
|
}));
|
|
@@ -66424,7 +67261,7 @@ async function $do175(client, options) {
|
|
|
66424
67261
|
const context = {
|
|
66425
67262
|
options: client._options,
|
|
66426
67263
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
66427
|
-
operationID: "
|
|
67264
|
+
operationID: "listSuppliers",
|
|
66428
67265
|
oAuth2Scopes: [],
|
|
66429
67266
|
resolvedSecurity: requestSecurity,
|
|
66430
67267
|
securitySource: client._options.security,
|
|
@@ -66466,13 +67303,13 @@ async function $do175(client, options) {
|
|
|
66466
67303
|
const responseFields = {
|
|
66467
67304
|
HttpMeta: { Response: response, Request: req }
|
|
66468
67305
|
};
|
|
66469
|
-
const [result2] = await match(json(200, arrayType(
|
|
67306
|
+
const [result2] = await match(json(200, arrayType(Supplier$inboundSchema)), jsonErr(400, ErrorT$inboundSchema), jsonErr(401, AuthenticationError$inboundSchema), jsonErr(403, ForbiddenError$inboundSchema), jsonErr(429, RateLimitError$inboundSchema), jsonErr(500, ErrorT$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
66470
67307
|
if (!result2.ok) {
|
|
66471
67308
|
return [result2, { status: "complete", request: req, response }];
|
|
66472
67309
|
}
|
|
66473
67310
|
return [result2, { status: "complete", request: req, response }];
|
|
66474
67311
|
}
|
|
66475
|
-
var
|
|
67312
|
+
var init_suppliersListSuppliers = __esm(() => {
|
|
66476
67313
|
init_esm();
|
|
66477
67314
|
init_matchers();
|
|
66478
67315
|
init_primitives();
|
|
@@ -66483,14 +67320,14 @@ var init_staffMessagesListStaffMessages = __esm(() => {
|
|
|
66483
67320
|
init_async();
|
|
66484
67321
|
});
|
|
66485
67322
|
|
|
66486
|
-
// src/mcp-server/tools/
|
|
66487
|
-
var tool$
|
|
66488
|
-
var
|
|
66489
|
-
|
|
67323
|
+
// src/mcp-server/tools/suppliersListSuppliers.ts
|
|
67324
|
+
var tool$suppliersListSuppliers;
|
|
67325
|
+
var init_suppliersListSuppliers2 = __esm(() => {
|
|
67326
|
+
init_suppliersListSuppliers();
|
|
66490
67327
|
init_tools();
|
|
66491
|
-
tool$
|
|
66492
|
-
name: "
|
|
66493
|
-
description: `List all
|
|
67328
|
+
tool$suppliersListSuppliers = {
|
|
67329
|
+
name: "suppliers-list-suppliers",
|
|
67330
|
+
description: `List all Suppliers
|
|
66494
67331
|
|
|
66495
67332
|
|
|
66496
67333
|
|
|
@@ -66499,11 +67336,11 @@ This endpoint supports result filtering. For more information on how to filter t
|
|
|
66499
67336
|
|
|
66500
67337
|
|
|
66501
67338
|
#### OAuth Scope
|
|
66502
|
-
This endpoint requires the following OAuth scope **
|
|
67339
|
+
This endpoint requires the following OAuth scope **read_suppliers**.
|
|
66503
67340
|
|
|
66504
67341
|
`,
|
|
66505
67342
|
tool: async (client, ctx) => {
|
|
66506
|
-
const [result2, apiCall] = await
|
|
67343
|
+
const [result2, apiCall] = await suppliersListSuppliers(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66507
67344
|
if (!result2.ok) {
|
|
66508
67345
|
return {
|
|
66509
67346
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66516,26 +67353,24 @@ This endpoint requires the following OAuth scope **read_messages**.
|
|
|
66516
67353
|
};
|
|
66517
67354
|
});
|
|
66518
67355
|
|
|
66519
|
-
// src/funcs/
|
|
66520
|
-
function
|
|
66521
|
-
return new APIPromise($
|
|
67356
|
+
// src/funcs/suppliersUpdateSuppliers.ts
|
|
67357
|
+
function suppliersUpdateSuppliers(client, request, options) {
|
|
67358
|
+
return new APIPromise($do181(client, request, options));
|
|
66522
67359
|
}
|
|
66523
|
-
async function $
|
|
66524
|
-
const parsed = safeParse(request, (value) =>
|
|
67360
|
+
async function $do181(client, request, options) {
|
|
67361
|
+
const parsed = safeParse(request, (value) => UpdateSuppliersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66525
67362
|
if (!parsed.ok) {
|
|
66526
67363
|
return [parsed, { status: "invalid" }];
|
|
66527
67364
|
}
|
|
66528
67365
|
const payload = parsed.value;
|
|
66529
|
-
const body = encodeJSON("body", payload.
|
|
66530
|
-
explode: true
|
|
66531
|
-
});
|
|
67366
|
+
const body = encodeJSON("body", payload.SupplierCreate, { explode: true });
|
|
66532
67367
|
const pathParams = {
|
|
66533
67368
|
uuid: encodeSimple("uuid", payload.uuid, {
|
|
66534
67369
|
explode: false,
|
|
66535
67370
|
charEncoding: "percent"
|
|
66536
67371
|
})
|
|
66537
67372
|
};
|
|
66538
|
-
const path = pathToFunc("/
|
|
67373
|
+
const path = pathToFunc("/supplier/{uuid}.json")(pathParams);
|
|
66539
67374
|
const headers = new Headers(compactMap({
|
|
66540
67375
|
"Content-Type": "application/json",
|
|
66541
67376
|
Accept: "application/json"
|
|
@@ -66545,7 +67380,7 @@ async function $do176(client, request, options) {
|
|
|
66545
67380
|
const context = {
|
|
66546
67381
|
options: client._options,
|
|
66547
67382
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
66548
|
-
operationID: "
|
|
67383
|
+
operationID: "updateSuppliers",
|
|
66549
67384
|
oAuth2Scopes: [],
|
|
66550
67385
|
resolvedSecurity: requestSecurity,
|
|
66551
67386
|
securitySource: client._options.security,
|
|
@@ -66594,7 +67429,7 @@ async function $do176(client, request, options) {
|
|
|
66594
67429
|
}
|
|
66595
67430
|
return [result2, { status: "complete", request: req, response }];
|
|
66596
67431
|
}
|
|
66597
|
-
var
|
|
67432
|
+
var init_suppliersUpdateSuppliers = __esm(() => {
|
|
66598
67433
|
init_encodings();
|
|
66599
67434
|
init_matchers();
|
|
66600
67435
|
init_primitives();
|
|
@@ -66607,28 +67442,28 @@ var init_staffMessagesUpdateStaffMessages = __esm(() => {
|
|
|
66607
67442
|
init_async();
|
|
66608
67443
|
});
|
|
66609
67444
|
|
|
66610
|
-
// src/mcp-server/tools/
|
|
66611
|
-
var
|
|
66612
|
-
var
|
|
66613
|
-
|
|
67445
|
+
// src/mcp-server/tools/suppliersUpdateSuppliers.ts
|
|
67446
|
+
var args146, tool$suppliersUpdateSuppliers;
|
|
67447
|
+
var init_suppliersUpdateSuppliers2 = __esm(() => {
|
|
67448
|
+
init_suppliersUpdateSuppliers();
|
|
66614
67449
|
init_operations();
|
|
66615
67450
|
init_tools();
|
|
66616
|
-
|
|
66617
|
-
request:
|
|
67451
|
+
args146 = {
|
|
67452
|
+
request: UpdateSuppliersRequest$inboundSchema
|
|
66618
67453
|
};
|
|
66619
|
-
tool$
|
|
66620
|
-
name: "
|
|
66621
|
-
description: `Update a
|
|
67454
|
+
tool$suppliersUpdateSuppliers = {
|
|
67455
|
+
name: "suppliers-update-suppliers",
|
|
67456
|
+
description: `Update a Supplier
|
|
66622
67457
|
|
|
66623
67458
|
|
|
66624
67459
|
|
|
66625
67460
|
#### OAuth Scope
|
|
66626
|
-
This endpoint requires the following OAuth scope **
|
|
67461
|
+
This endpoint requires the following OAuth scope **manage_suppliers**.
|
|
66627
67462
|
|
|
66628
67463
|
`,
|
|
66629
|
-
args:
|
|
66630
|
-
tool: async (client,
|
|
66631
|
-
const [result2, apiCall] = await
|
|
67464
|
+
args: args146,
|
|
67465
|
+
tool: async (client, args147, ctx) => {
|
|
67466
|
+
const [result2, apiCall] = await suppliersUpdateSuppliers(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66632
67467
|
if (!result2.ok) {
|
|
66633
67468
|
return {
|
|
66634
67469
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66643,9 +67478,9 @@ This endpoint requires the following OAuth scope **publish_messages**.
|
|
|
66643
67478
|
|
|
66644
67479
|
// src/funcs/tasksCreateTasks.ts
|
|
66645
67480
|
function tasksCreateTasks(client, request, options) {
|
|
66646
|
-
return new APIPromise($
|
|
67481
|
+
return new APIPromise($do182(client, request, options));
|
|
66647
67482
|
}
|
|
66648
|
-
async function $
|
|
67483
|
+
async function $do182(client, request, options) {
|
|
66649
67484
|
const parsed = safeParse(request, (value) => TaskCreate$outboundSchema.parse(value), "Input validation failed");
|
|
66650
67485
|
if (!parsed.ok) {
|
|
66651
67486
|
return [parsed, { status: "invalid" }];
|
|
@@ -66728,12 +67563,12 @@ var init_tasksCreateTasks = __esm(() => {
|
|
|
66728
67563
|
});
|
|
66729
67564
|
|
|
66730
67565
|
// src/mcp-server/tools/tasksCreateTasks.ts
|
|
66731
|
-
var
|
|
67566
|
+
var args147, tool$tasksCreateTasks;
|
|
66732
67567
|
var init_tasksCreateTasks2 = __esm(() => {
|
|
66733
67568
|
init_tasksCreateTasks();
|
|
66734
67569
|
init_components();
|
|
66735
67570
|
init_tools();
|
|
66736
|
-
|
|
67571
|
+
args147 = {
|
|
66737
67572
|
request: TaskCreate$inboundSchema
|
|
66738
67573
|
};
|
|
66739
67574
|
tool$tasksCreateTasks = {
|
|
@@ -66751,9 +67586,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
66751
67586
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
66752
67587
|
|
|
66753
67588
|
`,
|
|
66754
|
-
args:
|
|
66755
|
-
tool: async (client,
|
|
66756
|
-
const [result2, apiCall] = await tasksCreateTasks(client,
|
|
67589
|
+
args: args147,
|
|
67590
|
+
tool: async (client, args148, ctx) => {
|
|
67591
|
+
const [result2, apiCall] = await tasksCreateTasks(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66757
67592
|
if (!result2.ok) {
|
|
66758
67593
|
return {
|
|
66759
67594
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66768,9 +67603,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
66768
67603
|
|
|
66769
67604
|
// src/funcs/tasksDeleteTasks.ts
|
|
66770
67605
|
function tasksDeleteTasks(client, request, options) {
|
|
66771
|
-
return new APIPromise($
|
|
67606
|
+
return new APIPromise($do183(client, request, options));
|
|
66772
67607
|
}
|
|
66773
|
-
async function $
|
|
67608
|
+
async function $do183(client, request, options) {
|
|
66774
67609
|
const parsed = safeParse(request, (value) => DeleteTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66775
67610
|
if (!parsed.ok) {
|
|
66776
67611
|
return [parsed, { status: "invalid" }];
|
|
@@ -66855,12 +67690,12 @@ var init_tasksDeleteTasks = __esm(() => {
|
|
|
66855
67690
|
});
|
|
66856
67691
|
|
|
66857
67692
|
// src/mcp-server/tools/tasksDeleteTasks.ts
|
|
66858
|
-
var
|
|
67693
|
+
var args148, tool$tasksDeleteTasks;
|
|
66859
67694
|
var init_tasksDeleteTasks2 = __esm(() => {
|
|
66860
67695
|
init_tasksDeleteTasks();
|
|
66861
67696
|
init_operations();
|
|
66862
67697
|
init_tools();
|
|
66863
|
-
|
|
67698
|
+
args148 = {
|
|
66864
67699
|
request: DeleteTasksRequest$inboundSchema
|
|
66865
67700
|
};
|
|
66866
67701
|
tool$tasksDeleteTasks = {
|
|
@@ -66877,9 +67712,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
66877
67712
|
This endpoint requires the following OAuth scope **manage_tasks**.
|
|
66878
67713
|
|
|
66879
67714
|
`,
|
|
66880
|
-
args:
|
|
66881
|
-
tool: async (client,
|
|
66882
|
-
const [result2, apiCall] = await tasksDeleteTasks(client,
|
|
67715
|
+
args: args148,
|
|
67716
|
+
tool: async (client, args149, ctx) => {
|
|
67717
|
+
const [result2, apiCall] = await tasksDeleteTasks(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
66883
67718
|
if (!result2.ok) {
|
|
66884
67719
|
return {
|
|
66885
67720
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -66894,9 +67729,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
66894
67729
|
|
|
66895
67730
|
// src/funcs/tasksGetTasks.ts
|
|
66896
67731
|
function tasksGetTasks(client, request, options) {
|
|
66897
|
-
return new APIPromise($
|
|
67732
|
+
return new APIPromise($do184(client, request, options));
|
|
66898
67733
|
}
|
|
66899
|
-
async function $
|
|
67734
|
+
async function $do184(client, request, options) {
|
|
66900
67735
|
const parsed = safeParse(request, (value) => GetTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
66901
67736
|
if (!parsed.ok) {
|
|
66902
67737
|
return [parsed, { status: "invalid" }];
|
|
@@ -66981,12 +67816,12 @@ var init_tasksGetTasks = __esm(() => {
|
|
|
66981
67816
|
});
|
|
66982
67817
|
|
|
66983
67818
|
// src/mcp-server/tools/tasksGetTasks.ts
|
|
66984
|
-
var
|
|
67819
|
+
var args149, tool$tasksGetTasks;
|
|
66985
67820
|
var init_tasksGetTasks2 = __esm(() => {
|
|
66986
67821
|
init_tasksGetTasks();
|
|
66987
67822
|
init_operations();
|
|
66988
67823
|
init_tools();
|
|
66989
|
-
|
|
67824
|
+
args149 = {
|
|
66990
67825
|
request: GetTasksRequest$inboundSchema
|
|
66991
67826
|
};
|
|
66992
67827
|
tool$tasksGetTasks = {
|
|
@@ -66999,9 +67834,9 @@ var init_tasksGetTasks2 = __esm(() => {
|
|
|
66999
67834
|
This endpoint requires the following OAuth scope **read_tasks**.
|
|
67000
67835
|
|
|
67001
67836
|
`,
|
|
67002
|
-
args:
|
|
67003
|
-
tool: async (client,
|
|
67004
|
-
const [result2, apiCall] = await tasksGetTasks(client,
|
|
67837
|
+
args: args149,
|
|
67838
|
+
tool: async (client, args150, ctx) => {
|
|
67839
|
+
const [result2, apiCall] = await tasksGetTasks(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67005
67840
|
if (!result2.ok) {
|
|
67006
67841
|
return {
|
|
67007
67842
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67016,9 +67851,9 @@ This endpoint requires the following OAuth scope **read_tasks**.
|
|
|
67016
67851
|
|
|
67017
67852
|
// src/funcs/tasksListTasks.ts
|
|
67018
67853
|
function tasksListTasks(client, options) {
|
|
67019
|
-
return new APIPromise($
|
|
67854
|
+
return new APIPromise($do185(client, options));
|
|
67020
67855
|
}
|
|
67021
|
-
async function $
|
|
67856
|
+
async function $do185(client, options) {
|
|
67022
67857
|
const path = pathToFunc("/task.json")();
|
|
67023
67858
|
const headers = new Headers(compactMap({
|
|
67024
67859
|
Accept: "application/json"
|
|
@@ -67122,9 +67957,9 @@ This endpoint requires the following OAuth scope **read_tasks**.
|
|
|
67122
67957
|
|
|
67123
67958
|
// src/funcs/tasksUpdateTasks.ts
|
|
67124
67959
|
function tasksUpdateTasks(client, request, options) {
|
|
67125
|
-
return new APIPromise($
|
|
67960
|
+
return new APIPromise($do186(client, request, options));
|
|
67126
67961
|
}
|
|
67127
|
-
async function $
|
|
67962
|
+
async function $do186(client, request, options) {
|
|
67128
67963
|
const parsed = safeParse(request, (value) => UpdateTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67129
67964
|
if (!parsed.ok) {
|
|
67130
67965
|
return [parsed, { status: "invalid" }];
|
|
@@ -67210,12 +68045,12 @@ var init_tasksUpdateTasks = __esm(() => {
|
|
|
67210
68045
|
});
|
|
67211
68046
|
|
|
67212
68047
|
// src/mcp-server/tools/tasksUpdateTasks.ts
|
|
67213
|
-
var
|
|
68048
|
+
var args150, tool$tasksUpdateTasks;
|
|
67214
68049
|
var init_tasksUpdateTasks2 = __esm(() => {
|
|
67215
68050
|
init_tasksUpdateTasks();
|
|
67216
68051
|
init_operations();
|
|
67217
68052
|
init_tools();
|
|
67218
|
-
|
|
68053
|
+
args150 = {
|
|
67219
68054
|
request: UpdateTasksRequest$inboundSchema
|
|
67220
68055
|
};
|
|
67221
68056
|
tool$tasksUpdateTasks = {
|
|
@@ -67228,9 +68063,9 @@ var init_tasksUpdateTasks2 = __esm(() => {
|
|
|
67228
68063
|
This endpoint requires the following OAuth scope **manage_tasks**.
|
|
67229
68064
|
|
|
67230
68065
|
`,
|
|
67231
|
-
args:
|
|
67232
|
-
tool: async (client,
|
|
67233
|
-
const [result2, apiCall] = await tasksUpdateTasks(client,
|
|
68066
|
+
args: args150,
|
|
68067
|
+
tool: async (client, args151, ctx) => {
|
|
68068
|
+
const [result2, apiCall] = await tasksUpdateTasks(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67234
68069
|
if (!result2.ok) {
|
|
67235
68070
|
return {
|
|
67236
68071
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67245,9 +68080,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
67245
68080
|
|
|
67246
68081
|
// src/funcs/taxRatesCreateTaxRates.ts
|
|
67247
68082
|
function taxRatesCreateTaxRates(client, request, options) {
|
|
67248
|
-
return new APIPromise($
|
|
68083
|
+
return new APIPromise($do187(client, request, options));
|
|
67249
68084
|
}
|
|
67250
|
-
async function $
|
|
68085
|
+
async function $do187(client, request, options) {
|
|
67251
68086
|
const parsed = safeParse(request, (value) => TaxRateCreate$outboundSchema.parse(value), "Input validation failed");
|
|
67252
68087
|
if (!parsed.ok) {
|
|
67253
68088
|
return [parsed, { status: "invalid" }];
|
|
@@ -67330,12 +68165,12 @@ var init_taxRatesCreateTaxRates = __esm(() => {
|
|
|
67330
68165
|
});
|
|
67331
68166
|
|
|
67332
68167
|
// src/mcp-server/tools/taxRatesCreateTaxRates.ts
|
|
67333
|
-
var
|
|
68168
|
+
var args151, tool$taxRatesCreateTaxRates;
|
|
67334
68169
|
var init_taxRatesCreateTaxRates2 = __esm(() => {
|
|
67335
68170
|
init_taxRatesCreateTaxRates();
|
|
67336
68171
|
init_components();
|
|
67337
68172
|
init_tools();
|
|
67338
|
-
|
|
68173
|
+
args151 = {
|
|
67339
68174
|
request: TaxRateCreate$inboundSchema
|
|
67340
68175
|
};
|
|
67341
68176
|
tool$taxRatesCreateTaxRates = {
|
|
@@ -67353,9 +68188,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
67353
68188
|
UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the \`x-record-uuid\` response header.
|
|
67354
68189
|
|
|
67355
68190
|
`,
|
|
67356
|
-
args:
|
|
67357
|
-
tool: async (client,
|
|
67358
|
-
const [result2, apiCall] = await taxRatesCreateTaxRates(client,
|
|
68191
|
+
args: args151,
|
|
68192
|
+
tool: async (client, args152, ctx) => {
|
|
68193
|
+
const [result2, apiCall] = await taxRatesCreateTaxRates(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67359
68194
|
if (!result2.ok) {
|
|
67360
68195
|
return {
|
|
67361
68196
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67370,9 +68205,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
67370
68205
|
|
|
67371
68206
|
// src/funcs/taxRatesDeleteTaxRates.ts
|
|
67372
68207
|
function taxRatesDeleteTaxRates(client, request, options) {
|
|
67373
|
-
return new APIPromise($
|
|
68208
|
+
return new APIPromise($do188(client, request, options));
|
|
67374
68209
|
}
|
|
67375
|
-
async function $
|
|
68210
|
+
async function $do188(client, request, options) {
|
|
67376
68211
|
const parsed = safeParse(request, (value) => DeleteTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67377
68212
|
if (!parsed.ok) {
|
|
67378
68213
|
return [parsed, { status: "invalid" }];
|
|
@@ -67457,12 +68292,12 @@ var init_taxRatesDeleteTaxRates = __esm(() => {
|
|
|
67457
68292
|
});
|
|
67458
68293
|
|
|
67459
68294
|
// src/mcp-server/tools/taxRatesDeleteTaxRates.ts
|
|
67460
|
-
var
|
|
68295
|
+
var args152, tool$taxRatesDeleteTaxRates;
|
|
67461
68296
|
var init_taxRatesDeleteTaxRates2 = __esm(() => {
|
|
67462
68297
|
init_taxRatesDeleteTaxRates();
|
|
67463
68298
|
init_operations();
|
|
67464
68299
|
init_tools();
|
|
67465
|
-
|
|
68300
|
+
args152 = {
|
|
67466
68301
|
request: DeleteTaxRatesRequest$inboundSchema
|
|
67467
68302
|
};
|
|
67468
68303
|
tool$taxRatesDeleteTaxRates = {
|
|
@@ -67479,9 +68314,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
67479
68314
|
This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
67480
68315
|
|
|
67481
68316
|
`,
|
|
67482
|
-
args:
|
|
67483
|
-
tool: async (client,
|
|
67484
|
-
const [result2, apiCall] = await taxRatesDeleteTaxRates(client,
|
|
68317
|
+
args: args152,
|
|
68318
|
+
tool: async (client, args153, ctx) => {
|
|
68319
|
+
const [result2, apiCall] = await taxRatesDeleteTaxRates(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67485
68320
|
if (!result2.ok) {
|
|
67486
68321
|
return {
|
|
67487
68322
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67496,9 +68331,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
67496
68331
|
|
|
67497
68332
|
// src/funcs/taxRatesGetTaxRates.ts
|
|
67498
68333
|
function taxRatesGetTaxRates(client, request, options) {
|
|
67499
|
-
return new APIPromise($
|
|
68334
|
+
return new APIPromise($do189(client, request, options));
|
|
67500
68335
|
}
|
|
67501
|
-
async function $
|
|
68336
|
+
async function $do189(client, request, options) {
|
|
67502
68337
|
const parsed = safeParse(request, (value) => GetTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67503
68338
|
if (!parsed.ok) {
|
|
67504
68339
|
return [parsed, { status: "invalid" }];
|
|
@@ -67583,12 +68418,12 @@ var init_taxRatesGetTaxRates = __esm(() => {
|
|
|
67583
68418
|
});
|
|
67584
68419
|
|
|
67585
68420
|
// src/mcp-server/tools/taxRatesGetTaxRates.ts
|
|
67586
|
-
var
|
|
68421
|
+
var args153, tool$taxRatesGetTaxRates;
|
|
67587
68422
|
var init_taxRatesGetTaxRates2 = __esm(() => {
|
|
67588
68423
|
init_taxRatesGetTaxRates();
|
|
67589
68424
|
init_operations();
|
|
67590
68425
|
init_tools();
|
|
67591
|
-
|
|
68426
|
+
args153 = {
|
|
67592
68427
|
request: GetTaxRatesRequest$inboundSchema
|
|
67593
68428
|
};
|
|
67594
68429
|
tool$taxRatesGetTaxRates = {
|
|
@@ -67601,9 +68436,9 @@ var init_taxRatesGetTaxRates2 = __esm(() => {
|
|
|
67601
68436
|
This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
67602
68437
|
|
|
67603
68438
|
`,
|
|
67604
|
-
args:
|
|
67605
|
-
tool: async (client,
|
|
67606
|
-
const [result2, apiCall] = await taxRatesGetTaxRates(client,
|
|
68439
|
+
args: args153,
|
|
68440
|
+
tool: async (client, args154, ctx) => {
|
|
68441
|
+
const [result2, apiCall] = await taxRatesGetTaxRates(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67607
68442
|
if (!result2.ok) {
|
|
67608
68443
|
return {
|
|
67609
68444
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67618,9 +68453,9 @@ This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
|
67618
68453
|
|
|
67619
68454
|
// src/funcs/taxRatesListTaxRates.ts
|
|
67620
68455
|
function taxRatesListTaxRates(client, options) {
|
|
67621
|
-
return new APIPromise($
|
|
68456
|
+
return new APIPromise($do190(client, options));
|
|
67622
68457
|
}
|
|
67623
|
-
async function $
|
|
68458
|
+
async function $do190(client, options) {
|
|
67624
68459
|
const path = pathToFunc("/taxrate.json")();
|
|
67625
68460
|
const headers = new Headers(compactMap({
|
|
67626
68461
|
Accept: "application/json"
|
|
@@ -67724,9 +68559,9 @@ This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
|
67724
68559
|
|
|
67725
68560
|
// src/funcs/taxRatesUpdateTaxRates.ts
|
|
67726
68561
|
function taxRatesUpdateTaxRates(client, request, options) {
|
|
67727
|
-
return new APIPromise($
|
|
68562
|
+
return new APIPromise($do191(client, request, options));
|
|
67728
68563
|
}
|
|
67729
|
-
async function $
|
|
68564
|
+
async function $do191(client, request, options) {
|
|
67730
68565
|
const parsed = safeParse(request, (value) => UpdateTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67731
68566
|
if (!parsed.ok) {
|
|
67732
68567
|
return [parsed, { status: "invalid" }];
|
|
@@ -67812,12 +68647,12 @@ var init_taxRatesUpdateTaxRates = __esm(() => {
|
|
|
67812
68647
|
});
|
|
67813
68648
|
|
|
67814
68649
|
// src/mcp-server/tools/taxRatesUpdateTaxRates.ts
|
|
67815
|
-
var
|
|
68650
|
+
var args154, tool$taxRatesUpdateTaxRates;
|
|
67816
68651
|
var init_taxRatesUpdateTaxRates2 = __esm(() => {
|
|
67817
68652
|
init_taxRatesUpdateTaxRates();
|
|
67818
68653
|
init_operations();
|
|
67819
68654
|
init_tools();
|
|
67820
|
-
|
|
68655
|
+
args154 = {
|
|
67821
68656
|
request: UpdateTaxRatesRequest$inboundSchema
|
|
67822
68657
|
};
|
|
67823
68658
|
tool$taxRatesUpdateTaxRates = {
|
|
@@ -67830,9 +68665,9 @@ var init_taxRatesUpdateTaxRates2 = __esm(() => {
|
|
|
67830
68665
|
This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
67831
68666
|
|
|
67832
68667
|
`,
|
|
67833
|
-
args:
|
|
67834
|
-
tool: async (client,
|
|
67835
|
-
const [result2, apiCall] = await taxRatesUpdateTaxRates(client,
|
|
68668
|
+
args: args154,
|
|
68669
|
+
tool: async (client, args155, ctx) => {
|
|
68670
|
+
const [result2, apiCall] = await taxRatesUpdateTaxRates(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67836
68671
|
if (!result2.ok) {
|
|
67837
68672
|
return {
|
|
67838
68673
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67847,9 +68682,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
67847
68682
|
|
|
67848
68683
|
// src/funcs/vendorsGetVendors.ts
|
|
67849
68684
|
function vendorsGetVendors(client, request, options) {
|
|
67850
|
-
return new APIPromise($
|
|
68685
|
+
return new APIPromise($do192(client, request, options));
|
|
67851
68686
|
}
|
|
67852
|
-
async function $
|
|
68687
|
+
async function $do192(client, request, options) {
|
|
67853
68688
|
const parsed = safeParse(request, (value) => GetVendorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
67854
68689
|
if (!parsed.ok) {
|
|
67855
68690
|
return [parsed, { status: "invalid" }];
|
|
@@ -67934,12 +68769,12 @@ var init_vendorsGetVendors = __esm(() => {
|
|
|
67934
68769
|
});
|
|
67935
68770
|
|
|
67936
68771
|
// src/mcp-server/tools/vendorsGetVendors.ts
|
|
67937
|
-
var
|
|
68772
|
+
var args155, tool$vendorsGetVendors;
|
|
67938
68773
|
var init_vendorsGetVendors2 = __esm(() => {
|
|
67939
68774
|
init_vendorsGetVendors();
|
|
67940
68775
|
init_operations();
|
|
67941
68776
|
init_tools();
|
|
67942
|
-
|
|
68777
|
+
args155 = {
|
|
67943
68778
|
request: GetVendorsRequest$inboundSchema
|
|
67944
68779
|
};
|
|
67945
68780
|
tool$vendorsGetVendors = {
|
|
@@ -67954,9 +68789,9 @@ Vendor account information
|
|
|
67954
68789
|
This endpoint requires the following OAuth scope **vendor**.
|
|
67955
68790
|
|
|
67956
68791
|
`,
|
|
67957
|
-
args:
|
|
67958
|
-
tool: async (client,
|
|
67959
|
-
const [result2, apiCall] = await vendorsGetVendors(client,
|
|
68792
|
+
args: args155,
|
|
68793
|
+
tool: async (client, args156, ctx) => {
|
|
68794
|
+
const [result2, apiCall] = await vendorsGetVendors(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
67960
68795
|
if (!result2.ok) {
|
|
67961
68796
|
return {
|
|
67962
68797
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -67971,9 +68806,9 @@ This endpoint requires the following OAuth scope **vendor**.
|
|
|
67971
68806
|
|
|
67972
68807
|
// src/funcs/vendorsListVendors.ts
|
|
67973
68808
|
function vendorsListVendors(client, options) {
|
|
67974
|
-
return new APIPromise($
|
|
68809
|
+
return new APIPromise($do193(client, options));
|
|
67975
68810
|
}
|
|
67976
|
-
async function $
|
|
68811
|
+
async function $do193(client, options) {
|
|
67977
68812
|
const path = pathToFunc("/vendor.json")();
|
|
67978
68813
|
const headers = new Headers(compactMap({
|
|
67979
68814
|
Accept: "application/json"
|
|
@@ -68081,7 +68916,7 @@ This endpoint requires the following OAuth scope **vendor**.
|
|
|
68081
68916
|
function createMCPServer(deps) {
|
|
68082
68917
|
const server = new McpServer({
|
|
68083
68918
|
name: "ServiceM8",
|
|
68084
|
-
version: "0.9.
|
|
68919
|
+
version: "0.9.50"
|
|
68085
68920
|
});
|
|
68086
68921
|
const client = new ServiceM8Core({
|
|
68087
68922
|
security: deps.security,
|
|
@@ -68259,6 +69094,11 @@ function createMCPServer(deps) {
|
|
|
68259
69094
|
tool(tool$staffMessagesGetStaffMessages);
|
|
68260
69095
|
tool(tool$staffMessagesUpdateStaffMessages);
|
|
68261
69096
|
tool(tool$staffMessagesDeleteStaffMessages);
|
|
69097
|
+
tool(tool$suppliersListSuppliers);
|
|
69098
|
+
tool(tool$suppliersCreateSuppliers);
|
|
69099
|
+
tool(tool$suppliersGetSuppliers);
|
|
69100
|
+
tool(tool$suppliersUpdateSuppliers);
|
|
69101
|
+
tool(tool$suppliersDeleteSuppliers);
|
|
68262
69102
|
tool(tool$tasksListTasks);
|
|
68263
69103
|
tool(tool$tasksCreateTasks);
|
|
68264
69104
|
tool(tool$tasksGetTasks);
|
|
@@ -68466,6 +69306,11 @@ var init_server2 = __esm(() => {
|
|
|
68466
69306
|
init_staffMessagesGetStaffMessages2();
|
|
68467
69307
|
init_staffMessagesListStaffMessages2();
|
|
68468
69308
|
init_staffMessagesUpdateStaffMessages2();
|
|
69309
|
+
init_suppliersCreateSuppliers2();
|
|
69310
|
+
init_suppliersDeleteSuppliers2();
|
|
69311
|
+
init_suppliersGetSuppliers2();
|
|
69312
|
+
init_suppliersListSuppliers2();
|
|
69313
|
+
init_suppliersUpdateSuppliers2();
|
|
68469
69314
|
init_tasksCreateTasks2();
|
|
68470
69315
|
init_tasksDeleteTasks2();
|
|
68471
69316
|
init_tasksGetTasks2();
|
|
@@ -69660,7 +70505,7 @@ var routes = an({
|
|
|
69660
70505
|
var app = He(routes, {
|
|
69661
70506
|
name: "mcp",
|
|
69662
70507
|
versionInfo: {
|
|
69663
|
-
currentVersion: "0.9.
|
|
70508
|
+
currentVersion: "0.9.50"
|
|
69664
70509
|
}
|
|
69665
70510
|
});
|
|
69666
70511
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -69668,5 +70513,5 @@ export {
|
|
|
69668
70513
|
app
|
|
69669
70514
|
};
|
|
69670
70515
|
|
|
69671
|
-
//# debugId=
|
|
70516
|
+
//# debugId=E0859A89DAE9B1B264756E2164756E21
|
|
69672
70517
|
//# sourceMappingURL=mcp-server.js.map
|