servicem8 0.9.41 → 0.9.42
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 +7 -1
- package/api.json +789 -295
- package/bin/mcp-server.js +590 -85
- package/bin/mcp-server.js.map +19 -10
- package/dist/commonjs/funcs/staffMessagesCreateStaffMessages.d.ts +24 -0
- package/dist/commonjs/funcs/staffMessagesCreateStaffMessages.d.ts.map +1 -0
- package/dist/commonjs/funcs/staffMessagesCreateStaffMessages.js +136 -0
- package/dist/commonjs/funcs/staffMessagesCreateStaffMessages.js.map +1 -0
- package/dist/commonjs/funcs/staffMessagesDeleteStaffMessages.d.ts +23 -0
- package/dist/commonjs/funcs/staffMessagesDeleteStaffMessages.d.ts.map +1 -0
- package/dist/commonjs/funcs/staffMessagesDeleteStaffMessages.js +137 -0
- package/dist/commonjs/funcs/staffMessagesDeleteStaffMessages.js.map +1 -0
- package/dist/commonjs/funcs/staffMessagesUpdateStaffMessages.d.ts +21 -0
- package/dist/commonjs/funcs/staffMessagesUpdateStaffMessages.d.ts.map +1 -0
- package/dist/commonjs/funcs/staffMessagesUpdateStaffMessages.js +136 -0
- package/dist/commonjs/funcs/staffMessagesUpdateStaffMessages.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +7 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/staffMessagesCreateStaffMessages.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesCreateStaffMessages.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesCreateStaffMessages.js +74 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesCreateStaffMessages.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesDeleteStaffMessages.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesDeleteStaffMessages.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesDeleteStaffMessages.js +73 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesDeleteStaffMessages.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesUpdateStaffMessages.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesUpdateStaffMessages.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesUpdateStaffMessages.js +69 -0
- package/dist/commonjs/mcp-server/tools/staffMessagesUpdateStaffMessages.js.map +1 -0
- package/dist/commonjs/models/components/staffmessage.d.ts +49 -0
- package/dist/commonjs/models/components/staffmessage.d.ts.map +1 -1
- package/dist/commonjs/models/components/staffmessage.js +66 -1
- package/dist/commonjs/models/components/staffmessage.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +2 -2
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createstaffmessages.d.ts +36 -0
- package/dist/commonjs/models/operations/createstaffmessages.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createstaffmessages.js +83 -0
- package/dist/commonjs/models/operations/createstaffmessages.js.map +1 -0
- package/dist/commonjs/models/operations/deletestaffmessages.d.ts +32 -0
- package/dist/commonjs/models/operations/deletestaffmessages.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletestaffmessages.js +69 -0
- package/dist/commonjs/models/operations/deletestaffmessages.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/updatestaffmessages.d.ts +38 -0
- package/dist/commonjs/models/operations/updatestaffmessages.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatestaffmessages.js +81 -0
- package/dist/commonjs/models/operations/updatestaffmessages.js.map +1 -0
- package/dist/commonjs/sdk/staffmessages.d.ts +32 -0
- package/dist/commonjs/sdk/staffmessages.d.ts.map +1 -1
- package/dist/commonjs/sdk/staffmessages.js +41 -0
- package/dist/commonjs/sdk/staffmessages.js.map +1 -1
- package/dist/esm/funcs/staffMessagesCreateStaffMessages.d.ts +24 -0
- package/dist/esm/funcs/staffMessagesCreateStaffMessages.d.ts.map +1 -0
- package/dist/esm/funcs/staffMessagesCreateStaffMessages.js +100 -0
- package/dist/esm/funcs/staffMessagesCreateStaffMessages.js.map +1 -0
- package/dist/esm/funcs/staffMessagesDeleteStaffMessages.d.ts +23 -0
- package/dist/esm/funcs/staffMessagesDeleteStaffMessages.d.ts.map +1 -0
- package/dist/esm/funcs/staffMessagesDeleteStaffMessages.js +101 -0
- package/dist/esm/funcs/staffMessagesDeleteStaffMessages.js.map +1 -0
- package/dist/esm/funcs/staffMessagesUpdateStaffMessages.d.ts +21 -0
- package/dist/esm/funcs/staffMessagesUpdateStaffMessages.d.ts.map +1 -0
- package/dist/esm/funcs/staffMessagesUpdateStaffMessages.js +100 -0
- package/dist/esm/funcs/staffMessagesUpdateStaffMessages.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +7 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/staffMessagesCreateStaffMessages.d.ts +8 -0
- package/dist/esm/mcp-server/tools/staffMessagesCreateStaffMessages.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/staffMessagesCreateStaffMessages.js +38 -0
- package/dist/esm/mcp-server/tools/staffMessagesCreateStaffMessages.js.map +1 -0
- package/dist/esm/mcp-server/tools/staffMessagesDeleteStaffMessages.d.ts +8 -0
- package/dist/esm/mcp-server/tools/staffMessagesDeleteStaffMessages.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/staffMessagesDeleteStaffMessages.js +37 -0
- package/dist/esm/mcp-server/tools/staffMessagesDeleteStaffMessages.js.map +1 -0
- package/dist/esm/mcp-server/tools/staffMessagesUpdateStaffMessages.d.ts +8 -0
- package/dist/esm/mcp-server/tools/staffMessagesUpdateStaffMessages.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/staffMessagesUpdateStaffMessages.js +33 -0
- package/dist/esm/mcp-server/tools/staffMessagesUpdateStaffMessages.js.map +1 -0
- package/dist/esm/models/components/staffmessage.d.ts +49 -0
- package/dist/esm/models/components/staffmessage.d.ts.map +1 -1
- package/dist/esm/models/components/staffmessage.js +63 -0
- package/dist/esm/models/components/staffmessage.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +2 -2
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/operations/createstaffmessages.d.ts +36 -0
- package/dist/esm/models/operations/createstaffmessages.d.ts.map +1 -0
- package/dist/esm/models/operations/createstaffmessages.js +45 -0
- package/dist/esm/models/operations/createstaffmessages.js.map +1 -0
- package/dist/esm/models/operations/deletestaffmessages.d.ts +32 -0
- package/dist/esm/models/operations/deletestaffmessages.d.ts.map +1 -0
- package/dist/esm/models/operations/deletestaffmessages.js +31 -0
- package/dist/esm/models/operations/deletestaffmessages.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/updatestaffmessages.d.ts +38 -0
- package/dist/esm/models/operations/updatestaffmessages.d.ts.map +1 -0
- package/dist/esm/models/operations/updatestaffmessages.js +43 -0
- package/dist/esm/models/operations/updatestaffmessages.js.map +1 -0
- package/dist/esm/sdk/staffmessages.d.ts +32 -0
- package/dist/esm/sdk/staffmessages.d.ts.map +1 -1
- package/dist/esm/sdk/staffmessages.js +41 -0
- package/dist/esm/sdk/staffmessages.js.map +1 -1
- package/docs/sdks/allocationwindows/README.md +4 -4
- package/docs/sdks/assets/README.md +6 -6
- package/docs/sdks/assettypefields/README.md +8 -8
- package/docs/sdks/assettypes/README.md +4 -4
- 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/forms/README.md +8 -8
- package/docs/sdks/jobactivities/README.md +20 -20
- package/docs/sdks/joballocations/README.md +24 -24
- package/docs/sdks/jobchecklists/README.md +32 -32
- 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 +32 -32
- 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/smstemplates/README.md +4 -4
- package/docs/sdks/staffmembers/README.md +12 -12
- package/docs/sdks/staffmessages/README.md +305 -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/staffMessagesCreateStaffMessages.ts +200 -0
- package/src/funcs/staffMessagesDeleteStaffMessages.ts +207 -0
- package/src/funcs/staffMessagesUpdateStaffMessages.ts +206 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +7 -1
- package/src/mcp-server/tools/staffMessagesCreateStaffMessages.ts +49 -0
- package/src/mcp-server/tools/staffMessagesDeleteStaffMessages.ts +48 -0
- package/src/mcp-server/tools/staffMessagesUpdateStaffMessages.ts +44 -0
- package/src/models/components/staffmessage.ts +120 -0
- package/src/models/components/vendor.ts +2 -2
- package/src/models/operations/createstaffmessages.ts +84 -0
- package/src/models/operations/deletestaffmessages.ts +69 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/updatestaffmessages.ts +86 -0
- package/src/sdk/staffmessages.ts +65 -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.42",
|
|
34209
|
+
genVersion: "2.684.0",
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.9.42 2.684.0 1.0.0 servicem8"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -40137,7 +40137,7 @@ var init_staff = __esm(() => {
|
|
|
40137
40137
|
});
|
|
40138
40138
|
|
|
40139
40139
|
// src/models/components/staffmessage.ts
|
|
40140
|
-
var StaffMessageActive, StaffMessageActive$inboundSchema, StaffMessageActive$outboundSchema, StaffMessageActive$, StaffMessage$inboundSchema, StaffMessage$outboundSchema, StaffMessage$;
|
|
40140
|
+
var StaffMessageActive, StaffMessageActive$inboundSchema, StaffMessageActive$outboundSchema, StaffMessageActive$, StaffMessage$inboundSchema, StaffMessage$outboundSchema, StaffMessage$, StaffMessageInput$inboundSchema, StaffMessageInput$outboundSchema, StaffMessageInput$;
|
|
40141
40141
|
var init_staffmessage = __esm(() => {
|
|
40142
40142
|
init_esm();
|
|
40143
40143
|
init_primitives();
|
|
@@ -40203,6 +40203,54 @@ var init_staffmessage = __esm(() => {
|
|
|
40203
40203
|
StaffMessage$.inboundSchema = StaffMessage$inboundSchema;
|
|
40204
40204
|
StaffMessage$.outboundSchema = StaffMessage$outboundSchema;
|
|
40205
40205
|
})(StaffMessage$ ||= {});
|
|
40206
|
+
StaffMessageInput$inboundSchema = objectType({
|
|
40207
|
+
uuid: stringType().optional(),
|
|
40208
|
+
active: StaffMessageActive$inboundSchema.default(1),
|
|
40209
|
+
from_staff_uuid: stringType().optional(),
|
|
40210
|
+
to_staff_uuid: stringType().optional(),
|
|
40211
|
+
sent_timestamp: stringType().optional(),
|
|
40212
|
+
delivered_timestamp: stringType().optional(),
|
|
40213
|
+
read_timestamp: stringType().optional(),
|
|
40214
|
+
message: stringType().optional(),
|
|
40215
|
+
regarding_job_uuid: stringType().optional(),
|
|
40216
|
+
attached_json: stringType().optional()
|
|
40217
|
+
}).transform((v2) => {
|
|
40218
|
+
return remap(v2, {
|
|
40219
|
+
from_staff_uuid: "fromStaffUuid",
|
|
40220
|
+
to_staff_uuid: "toStaffUuid",
|
|
40221
|
+
sent_timestamp: "sentTimestamp",
|
|
40222
|
+
delivered_timestamp: "deliveredTimestamp",
|
|
40223
|
+
read_timestamp: "readTimestamp",
|
|
40224
|
+
regarding_job_uuid: "regardingJobUuid",
|
|
40225
|
+
attached_json: "attachedJson"
|
|
40226
|
+
});
|
|
40227
|
+
});
|
|
40228
|
+
StaffMessageInput$outboundSchema = objectType({
|
|
40229
|
+
uuid: stringType().optional(),
|
|
40230
|
+
active: StaffMessageActive$outboundSchema.default(1),
|
|
40231
|
+
fromStaffUuid: stringType().optional(),
|
|
40232
|
+
toStaffUuid: stringType().optional(),
|
|
40233
|
+
sentTimestamp: stringType().optional(),
|
|
40234
|
+
deliveredTimestamp: stringType().optional(),
|
|
40235
|
+
readTimestamp: stringType().optional(),
|
|
40236
|
+
message: stringType().optional(),
|
|
40237
|
+
regardingJobUuid: stringType().optional(),
|
|
40238
|
+
attachedJson: stringType().optional()
|
|
40239
|
+
}).transform((v2) => {
|
|
40240
|
+
return remap(v2, {
|
|
40241
|
+
fromStaffUuid: "from_staff_uuid",
|
|
40242
|
+
toStaffUuid: "to_staff_uuid",
|
|
40243
|
+
sentTimestamp: "sent_timestamp",
|
|
40244
|
+
deliveredTimestamp: "delivered_timestamp",
|
|
40245
|
+
readTimestamp: "read_timestamp",
|
|
40246
|
+
regardingJobUuid: "regarding_job_uuid",
|
|
40247
|
+
attachedJson: "attached_json"
|
|
40248
|
+
});
|
|
40249
|
+
});
|
|
40250
|
+
((StaffMessageInput$) => {
|
|
40251
|
+
StaffMessageInput$.inboundSchema = StaffMessageInput$inboundSchema;
|
|
40252
|
+
StaffMessageInput$.outboundSchema = StaffMessageInput$outboundSchema;
|
|
40253
|
+
})(StaffMessageInput$ ||= {});
|
|
40206
40254
|
});
|
|
40207
40255
|
|
|
40208
40256
|
// src/models/components/successresponse.ts
|
|
@@ -41851,6 +41899,36 @@ var init_createstaffmembers = __esm(() => {
|
|
|
41851
41899
|
})(CreateStaffMembersResponse$ ||= {});
|
|
41852
41900
|
});
|
|
41853
41901
|
|
|
41902
|
+
// src/models/operations/createstaffmessages.ts
|
|
41903
|
+
var CreateStaffMessagesResponse$inboundSchema, CreateStaffMessagesResponse$outboundSchema, CreateStaffMessagesResponse$;
|
|
41904
|
+
var init_createstaffmessages = __esm(() => {
|
|
41905
|
+
init_esm();
|
|
41906
|
+
init_primitives();
|
|
41907
|
+
init_components();
|
|
41908
|
+
CreateStaffMessagesResponse$inboundSchema = objectType({
|
|
41909
|
+
Headers: recordType(arrayType(stringType())),
|
|
41910
|
+
Result: Result$inboundSchema
|
|
41911
|
+
}).transform((v2) => {
|
|
41912
|
+
return remap(v2, {
|
|
41913
|
+
Headers: "headers",
|
|
41914
|
+
Result: "result"
|
|
41915
|
+
});
|
|
41916
|
+
});
|
|
41917
|
+
CreateStaffMessagesResponse$outboundSchema = objectType({
|
|
41918
|
+
headers: recordType(arrayType(stringType())),
|
|
41919
|
+
result: Result$outboundSchema
|
|
41920
|
+
}).transform((v2) => {
|
|
41921
|
+
return remap(v2, {
|
|
41922
|
+
headers: "Headers",
|
|
41923
|
+
result: "Result"
|
|
41924
|
+
});
|
|
41925
|
+
});
|
|
41926
|
+
((CreateStaffMessagesResponse$) => {
|
|
41927
|
+
CreateStaffMessagesResponse$.inboundSchema = CreateStaffMessagesResponse$inboundSchema;
|
|
41928
|
+
CreateStaffMessagesResponse$.outboundSchema = CreateStaffMessagesResponse$outboundSchema;
|
|
41929
|
+
})(CreateStaffMessagesResponse$ ||= {});
|
|
41930
|
+
});
|
|
41931
|
+
|
|
41854
41932
|
// src/models/operations/createtasks.ts
|
|
41855
41933
|
var CreateTasksResponse$inboundSchema, CreateTasksResponse$outboundSchema, CreateTasksResponse$;
|
|
41856
41934
|
var init_createtasks = __esm(() => {
|
|
@@ -42359,6 +42437,22 @@ var init_deletestaffmembers = __esm(() => {
|
|
|
42359
42437
|
})(DeleteStaffMembersRequest$ ||= {});
|
|
42360
42438
|
});
|
|
42361
42439
|
|
|
42440
|
+
// src/models/operations/deletestaffmessages.ts
|
|
42441
|
+
var DeleteStaffMessagesRequest$inboundSchema, DeleteStaffMessagesRequest$outboundSchema, DeleteStaffMessagesRequest$;
|
|
42442
|
+
var init_deletestaffmessages = __esm(() => {
|
|
42443
|
+
init_esm();
|
|
42444
|
+
DeleteStaffMessagesRequest$inboundSchema = objectType({
|
|
42445
|
+
uuid: stringType()
|
|
42446
|
+
});
|
|
42447
|
+
DeleteStaffMessagesRequest$outboundSchema = objectType({
|
|
42448
|
+
uuid: stringType()
|
|
42449
|
+
});
|
|
42450
|
+
((DeleteStaffMessagesRequest$) => {
|
|
42451
|
+
DeleteStaffMessagesRequest$.inboundSchema = DeleteStaffMessagesRequest$inboundSchema;
|
|
42452
|
+
DeleteStaffMessagesRequest$.outboundSchema = DeleteStaffMessagesRequest$outboundSchema;
|
|
42453
|
+
})(DeleteStaffMessagesRequest$ ||= {});
|
|
42454
|
+
});
|
|
42455
|
+
|
|
42362
42456
|
// src/models/operations/deletetasks.ts
|
|
42363
42457
|
var DeleteTasksRequest$inboundSchema, DeleteTasksRequest$outboundSchema, DeleteTasksRequest$;
|
|
42364
42458
|
var init_deletetasks = __esm(() => {
|
|
@@ -43912,6 +44006,34 @@ var init_updatestaffmembers = __esm(() => {
|
|
|
43912
44006
|
})(UpdateStaffMembersRequest$ ||= {});
|
|
43913
44007
|
});
|
|
43914
44008
|
|
|
44009
|
+
// src/models/operations/updatestaffmessages.ts
|
|
44010
|
+
var UpdateStaffMessagesRequest$inboundSchema, UpdateStaffMessagesRequest$outboundSchema, UpdateStaffMessagesRequest$;
|
|
44011
|
+
var init_updatestaffmessages = __esm(() => {
|
|
44012
|
+
init_esm();
|
|
44013
|
+
init_primitives();
|
|
44014
|
+
init_components();
|
|
44015
|
+
UpdateStaffMessagesRequest$inboundSchema = objectType({
|
|
44016
|
+
uuid: stringType(),
|
|
44017
|
+
StaffMessage: StaffMessageInput$inboundSchema
|
|
44018
|
+
}).transform((v2) => {
|
|
44019
|
+
return remap(v2, {
|
|
44020
|
+
StaffMessage: "staffMessage"
|
|
44021
|
+
});
|
|
44022
|
+
});
|
|
44023
|
+
UpdateStaffMessagesRequest$outboundSchema = objectType({
|
|
44024
|
+
uuid: stringType(),
|
|
44025
|
+
staffMessage: StaffMessageInput$outboundSchema
|
|
44026
|
+
}).transform((v2) => {
|
|
44027
|
+
return remap(v2, {
|
|
44028
|
+
staffMessage: "StaffMessage"
|
|
44029
|
+
});
|
|
44030
|
+
});
|
|
44031
|
+
((UpdateStaffMessagesRequest$) => {
|
|
44032
|
+
UpdateStaffMessagesRequest$.inboundSchema = UpdateStaffMessagesRequest$inboundSchema;
|
|
44033
|
+
UpdateStaffMessagesRequest$.outboundSchema = UpdateStaffMessagesRequest$outboundSchema;
|
|
44034
|
+
})(UpdateStaffMessagesRequest$ ||= {});
|
|
44035
|
+
});
|
|
44036
|
+
|
|
43915
44037
|
// src/models/operations/updatetasks.ts
|
|
43916
44038
|
var UpdateTasksRequest$inboundSchema, UpdateTasksRequest$outboundSchema, UpdateTasksRequest$;
|
|
43917
44039
|
var init_updatetasks = __esm(() => {
|
|
@@ -44002,6 +44124,7 @@ var init_operations = __esm(() => {
|
|
|
44002
44124
|
init_creatematerials();
|
|
44003
44125
|
init_createsmstemplates();
|
|
44004
44126
|
init_createstaffmembers();
|
|
44127
|
+
init_createstaffmessages();
|
|
44005
44128
|
init_createtasks();
|
|
44006
44129
|
init_createtaxrates();
|
|
44007
44130
|
init_deleteallocationwindows();
|
|
@@ -44032,6 +44155,7 @@ var init_operations = __esm(() => {
|
|
|
44032
44155
|
init_deletematerials();
|
|
44033
44156
|
init_deletesmstemplates();
|
|
44034
44157
|
init_deletestaffmembers();
|
|
44158
|
+
init_deletestaffmessages();
|
|
44035
44159
|
init_deletetasks();
|
|
44036
44160
|
init_deletetaxrates();
|
|
44037
44161
|
init_generalsearch();
|
|
@@ -44104,6 +44228,7 @@ var init_operations = __esm(() => {
|
|
|
44104
44228
|
init_updatematerials();
|
|
44105
44229
|
init_updatesmstemplates();
|
|
44106
44230
|
init_updatestaffmembers();
|
|
44231
|
+
init_updatestaffmessages();
|
|
44107
44232
|
init_updatetasks();
|
|
44108
44233
|
init_updatetaxrates();
|
|
44109
44234
|
});
|
|
@@ -62989,11 +63114,262 @@ This endpoint requires the following OAuth scope **manage_staff**.
|
|
|
62989
63114
|
};
|
|
62990
63115
|
});
|
|
62991
63116
|
|
|
62992
|
-
// src/funcs/
|
|
62993
|
-
function
|
|
63117
|
+
// src/funcs/staffMessagesCreateStaffMessages.ts
|
|
63118
|
+
function staffMessagesCreateStaffMessages(client, request, options) {
|
|
62994
63119
|
return new APIPromise($do158(client, request, options));
|
|
62995
63120
|
}
|
|
62996
63121
|
async function $do158(client, request, options) {
|
|
63122
|
+
const parsed = safeParse(request, (value) => StaffMessageInput$outboundSchema.parse(value), "Input validation failed");
|
|
63123
|
+
if (!parsed.ok) {
|
|
63124
|
+
return [parsed, { status: "invalid" }];
|
|
63125
|
+
}
|
|
63126
|
+
const payload = parsed.value;
|
|
63127
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
63128
|
+
const path = pathToFunc("/staffmessage.json")();
|
|
63129
|
+
const headers = new Headers(compactMap({
|
|
63130
|
+
"Content-Type": "application/json",
|
|
63131
|
+
Accept: "application/json"
|
|
63132
|
+
}));
|
|
63133
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
63134
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63135
|
+
const context = {
|
|
63136
|
+
options: client._options,
|
|
63137
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63138
|
+
operationID: "createStaffMessages",
|
|
63139
|
+
oAuth2Scopes: [],
|
|
63140
|
+
resolvedSecurity: requestSecurity,
|
|
63141
|
+
securitySource: client._options.security,
|
|
63142
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
63143
|
+
strategy: "backoff",
|
|
63144
|
+
backoff: {
|
|
63145
|
+
initialInterval: 500,
|
|
63146
|
+
maxInterval: 60000,
|
|
63147
|
+
exponent: 1.5,
|
|
63148
|
+
maxElapsedTime: 3600000
|
|
63149
|
+
},
|
|
63150
|
+
retryConnectionErrors: true
|
|
63151
|
+
},
|
|
63152
|
+
retryCodes: options?.retryCodes || ["5XX", "429"]
|
|
63153
|
+
};
|
|
63154
|
+
const requestRes = client._createRequest(context, {
|
|
63155
|
+
security: requestSecurity,
|
|
63156
|
+
method: "POST",
|
|
63157
|
+
baseURL: options?.serverURL,
|
|
63158
|
+
path,
|
|
63159
|
+
headers,
|
|
63160
|
+
body,
|
|
63161
|
+
userAgent: client._options.userAgent,
|
|
63162
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63163
|
+
}, options);
|
|
63164
|
+
if (!requestRes.ok) {
|
|
63165
|
+
return [requestRes, { status: "invalid" }];
|
|
63166
|
+
}
|
|
63167
|
+
const req = requestRes.value;
|
|
63168
|
+
const doResult = await client._do(req, {
|
|
63169
|
+
context,
|
|
63170
|
+
errorCodes: ["400", "401", "403", "429", "4XX", "500", "5XX"],
|
|
63171
|
+
retryConfig: context.retryConfig,
|
|
63172
|
+
retryCodes: context.retryCodes
|
|
63173
|
+
});
|
|
63174
|
+
if (!doResult.ok) {
|
|
63175
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63176
|
+
}
|
|
63177
|
+
const response = doResult.value;
|
|
63178
|
+
const responseFields = {
|
|
63179
|
+
HttpMeta: { Response: response, Request: req }
|
|
63180
|
+
};
|
|
63181
|
+
const [result2] = await match(json(200, CreateStaffMessagesResponse$inboundSchema, {
|
|
63182
|
+
hdrs: true,
|
|
63183
|
+
key: "Result"
|
|
63184
|
+
}), 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 });
|
|
63185
|
+
if (!result2.ok) {
|
|
63186
|
+
return [result2, { status: "complete", request: req, response }];
|
|
63187
|
+
}
|
|
63188
|
+
return [result2, { status: "complete", request: req, response }];
|
|
63189
|
+
}
|
|
63190
|
+
var init_staffMessagesCreateStaffMessages = __esm(() => {
|
|
63191
|
+
init_encodings();
|
|
63192
|
+
init_matchers();
|
|
63193
|
+
init_primitives();
|
|
63194
|
+
init_schemas();
|
|
63195
|
+
init_security();
|
|
63196
|
+
init_url();
|
|
63197
|
+
init_components();
|
|
63198
|
+
init_errors2();
|
|
63199
|
+
init_operations();
|
|
63200
|
+
init_async();
|
|
63201
|
+
});
|
|
63202
|
+
|
|
63203
|
+
// src/mcp-server/tools/staffMessagesCreateStaffMessages.ts
|
|
63204
|
+
var args127, tool$staffMessagesCreateStaffMessages;
|
|
63205
|
+
var init_staffMessagesCreateStaffMessages2 = __esm(() => {
|
|
63206
|
+
init_staffMessagesCreateStaffMessages();
|
|
63207
|
+
init_components();
|
|
63208
|
+
init_tools();
|
|
63209
|
+
args127 = {
|
|
63210
|
+
request: StaffMessageInput$inboundSchema
|
|
63211
|
+
};
|
|
63212
|
+
tool$staffMessagesCreateStaffMessages = {
|
|
63213
|
+
name: "staff-messages-create-staff-messages",
|
|
63214
|
+
description: `Create a new Staff Message
|
|
63215
|
+
|
|
63216
|
+
|
|
63217
|
+
|
|
63218
|
+
#### OAuth Scope
|
|
63219
|
+
This endpoint requires the following OAuth scope **publish_messages**.
|
|
63220
|
+
|
|
63221
|
+
|
|
63222
|
+
|
|
63223
|
+
#### Record UUID
|
|
63224
|
+
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.
|
|
63225
|
+
|
|
63226
|
+
`,
|
|
63227
|
+
args: args127,
|
|
63228
|
+
tool: async (client, args128, ctx) => {
|
|
63229
|
+
const [result2, apiCall] = await staffMessagesCreateStaffMessages(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63230
|
+
if (!result2.ok) {
|
|
63231
|
+
return {
|
|
63232
|
+
content: [{ type: "text", text: result2.error.message }],
|
|
63233
|
+
isError: true
|
|
63234
|
+
};
|
|
63235
|
+
}
|
|
63236
|
+
const value = result2.value.result;
|
|
63237
|
+
return formatResult(value, apiCall);
|
|
63238
|
+
}
|
|
63239
|
+
};
|
|
63240
|
+
});
|
|
63241
|
+
|
|
63242
|
+
// src/funcs/staffMessagesDeleteStaffMessages.ts
|
|
63243
|
+
function staffMessagesDeleteStaffMessages(client, request, options) {
|
|
63244
|
+
return new APIPromise($do159(client, request, options));
|
|
63245
|
+
}
|
|
63246
|
+
async function $do159(client, request, options) {
|
|
63247
|
+
const parsed = safeParse(request, (value) => DeleteStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63248
|
+
if (!parsed.ok) {
|
|
63249
|
+
return [parsed, { status: "invalid" }];
|
|
63250
|
+
}
|
|
63251
|
+
const payload = parsed.value;
|
|
63252
|
+
const body = null;
|
|
63253
|
+
const pathParams = {
|
|
63254
|
+
uuid: encodeSimple("uuid", payload.uuid, {
|
|
63255
|
+
explode: false,
|
|
63256
|
+
charEncoding: "percent"
|
|
63257
|
+
})
|
|
63258
|
+
};
|
|
63259
|
+
const path = pathToFunc("/staffmessage/{uuid}.json")(pathParams);
|
|
63260
|
+
const headers = new Headers(compactMap({
|
|
63261
|
+
Accept: "application/json"
|
|
63262
|
+
}));
|
|
63263
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
63264
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63265
|
+
const context = {
|
|
63266
|
+
options: client._options,
|
|
63267
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63268
|
+
operationID: "deleteStaffMessages",
|
|
63269
|
+
oAuth2Scopes: [],
|
|
63270
|
+
resolvedSecurity: requestSecurity,
|
|
63271
|
+
securitySource: client._options.security,
|
|
63272
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
63273
|
+
strategy: "backoff",
|
|
63274
|
+
backoff: {
|
|
63275
|
+
initialInterval: 500,
|
|
63276
|
+
maxInterval: 60000,
|
|
63277
|
+
exponent: 1.5,
|
|
63278
|
+
maxElapsedTime: 3600000
|
|
63279
|
+
},
|
|
63280
|
+
retryConnectionErrors: true
|
|
63281
|
+
},
|
|
63282
|
+
retryCodes: options?.retryCodes || ["5XX", "429"]
|
|
63283
|
+
};
|
|
63284
|
+
const requestRes = client._createRequest(context, {
|
|
63285
|
+
security: requestSecurity,
|
|
63286
|
+
method: "DELETE",
|
|
63287
|
+
baseURL: options?.serverURL,
|
|
63288
|
+
path,
|
|
63289
|
+
headers,
|
|
63290
|
+
body,
|
|
63291
|
+
userAgent: client._options.userAgent,
|
|
63292
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63293
|
+
}, options);
|
|
63294
|
+
if (!requestRes.ok) {
|
|
63295
|
+
return [requestRes, { status: "invalid" }];
|
|
63296
|
+
}
|
|
63297
|
+
const req = requestRes.value;
|
|
63298
|
+
const doResult = await client._do(req, {
|
|
63299
|
+
context,
|
|
63300
|
+
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
|
|
63301
|
+
retryConfig: context.retryConfig,
|
|
63302
|
+
retryCodes: context.retryCodes
|
|
63303
|
+
});
|
|
63304
|
+
if (!doResult.ok) {
|
|
63305
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63306
|
+
}
|
|
63307
|
+
const response = doResult.value;
|
|
63308
|
+
const responseFields = {
|
|
63309
|
+
HttpMeta: { Response: response, Request: req }
|
|
63310
|
+
};
|
|
63311
|
+
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 });
|
|
63312
|
+
if (!result2.ok) {
|
|
63313
|
+
return [result2, { status: "complete", request: req, response }];
|
|
63314
|
+
}
|
|
63315
|
+
return [result2, { status: "complete", request: req, response }];
|
|
63316
|
+
}
|
|
63317
|
+
var init_staffMessagesDeleteStaffMessages = __esm(() => {
|
|
63318
|
+
init_encodings();
|
|
63319
|
+
init_matchers();
|
|
63320
|
+
init_primitives();
|
|
63321
|
+
init_schemas();
|
|
63322
|
+
init_security();
|
|
63323
|
+
init_url();
|
|
63324
|
+
init_components();
|
|
63325
|
+
init_errors2();
|
|
63326
|
+
init_operations();
|
|
63327
|
+
init_async();
|
|
63328
|
+
});
|
|
63329
|
+
|
|
63330
|
+
// src/mcp-server/tools/staffMessagesDeleteStaffMessages.ts
|
|
63331
|
+
var args128, tool$staffMessagesDeleteStaffMessages;
|
|
63332
|
+
var init_staffMessagesDeleteStaffMessages2 = __esm(() => {
|
|
63333
|
+
init_staffMessagesDeleteStaffMessages();
|
|
63334
|
+
init_operations();
|
|
63335
|
+
init_tools();
|
|
63336
|
+
args128 = {
|
|
63337
|
+
request: DeleteStaffMessagesRequest$inboundSchema
|
|
63338
|
+
};
|
|
63339
|
+
tool$staffMessagesDeleteStaffMessages = {
|
|
63340
|
+
name: "staff-messages-delete-staff-messages",
|
|
63341
|
+
description: `Delete a Staff Message
|
|
63342
|
+
|
|
63343
|
+
|
|
63344
|
+
|
|
63345
|
+
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\`.
|
|
63346
|
+
|
|
63347
|
+
|
|
63348
|
+
|
|
63349
|
+
#### OAuth Scope
|
|
63350
|
+
This endpoint requires the following OAuth scope **publish_messages**.
|
|
63351
|
+
|
|
63352
|
+
`,
|
|
63353
|
+
args: args128,
|
|
63354
|
+
tool: async (client, args129, ctx) => {
|
|
63355
|
+
const [result2, apiCall] = await staffMessagesDeleteStaffMessages(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63356
|
+
if (!result2.ok) {
|
|
63357
|
+
return {
|
|
63358
|
+
content: [{ type: "text", text: result2.error.message }],
|
|
63359
|
+
isError: true
|
|
63360
|
+
};
|
|
63361
|
+
}
|
|
63362
|
+
const value = result2.value;
|
|
63363
|
+
return formatResult(value, apiCall);
|
|
63364
|
+
}
|
|
63365
|
+
};
|
|
63366
|
+
});
|
|
63367
|
+
|
|
63368
|
+
// src/funcs/staffMessagesGetStaffMessages.ts
|
|
63369
|
+
function staffMessagesGetStaffMessages(client, request, options) {
|
|
63370
|
+
return new APIPromise($do160(client, request, options));
|
|
63371
|
+
}
|
|
63372
|
+
async function $do160(client, request, options) {
|
|
62997
63373
|
const parsed = safeParse(request, (value) => GetStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
62998
63374
|
if (!parsed.ok) {
|
|
62999
63375
|
return [parsed, { status: "invalid" }];
|
|
@@ -63078,12 +63454,12 @@ var init_staffMessagesGetStaffMessages = __esm(() => {
|
|
|
63078
63454
|
});
|
|
63079
63455
|
|
|
63080
63456
|
// src/mcp-server/tools/staffMessagesGetStaffMessages.ts
|
|
63081
|
-
var
|
|
63457
|
+
var args129, tool$staffMessagesGetStaffMessages;
|
|
63082
63458
|
var init_staffMessagesGetStaffMessages2 = __esm(() => {
|
|
63083
63459
|
init_staffMessagesGetStaffMessages();
|
|
63084
63460
|
init_operations();
|
|
63085
63461
|
init_tools();
|
|
63086
|
-
|
|
63462
|
+
args129 = {
|
|
63087
63463
|
request: GetStaffMessagesRequest$inboundSchema
|
|
63088
63464
|
};
|
|
63089
63465
|
tool$staffMessagesGetStaffMessages = {
|
|
@@ -63096,9 +63472,9 @@ var init_staffMessagesGetStaffMessages2 = __esm(() => {
|
|
|
63096
63472
|
This endpoint requires the following OAuth scope **read_messages**.
|
|
63097
63473
|
|
|
63098
63474
|
`,
|
|
63099
|
-
args:
|
|
63100
|
-
tool: async (client,
|
|
63101
|
-
const [result2, apiCall] = await staffMessagesGetStaffMessages(client,
|
|
63475
|
+
args: args129,
|
|
63476
|
+
tool: async (client, args130, ctx) => {
|
|
63477
|
+
const [result2, apiCall] = await staffMessagesGetStaffMessages(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63102
63478
|
if (!result2.ok) {
|
|
63103
63479
|
return {
|
|
63104
63480
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63113,9 +63489,9 @@ This endpoint requires the following OAuth scope **read_messages**.
|
|
|
63113
63489
|
|
|
63114
63490
|
// src/funcs/staffMessagesListStaffMessages.ts
|
|
63115
63491
|
function staffMessagesListStaffMessages(client, options) {
|
|
63116
|
-
return new APIPromise($
|
|
63492
|
+
return new APIPromise($do161(client, options));
|
|
63117
63493
|
}
|
|
63118
|
-
async function $
|
|
63494
|
+
async function $do161(client, options) {
|
|
63119
63495
|
const path = pathToFunc("/staffmessage.json")();
|
|
63120
63496
|
const headers = new Headers(compactMap({
|
|
63121
63497
|
Accept: "application/json"
|
|
@@ -63217,11 +63593,134 @@ This endpoint requires the following OAuth scope **read_messages**.
|
|
|
63217
63593
|
};
|
|
63218
63594
|
});
|
|
63219
63595
|
|
|
63596
|
+
// src/funcs/staffMessagesUpdateStaffMessages.ts
|
|
63597
|
+
function staffMessagesUpdateStaffMessages(client, request, options) {
|
|
63598
|
+
return new APIPromise($do162(client, request, options));
|
|
63599
|
+
}
|
|
63600
|
+
async function $do162(client, request, options) {
|
|
63601
|
+
const parsed = safeParse(request, (value) => UpdateStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63602
|
+
if (!parsed.ok) {
|
|
63603
|
+
return [parsed, { status: "invalid" }];
|
|
63604
|
+
}
|
|
63605
|
+
const payload = parsed.value;
|
|
63606
|
+
const body = encodeJSON("body", payload.StaffMessage, { explode: true });
|
|
63607
|
+
const pathParams = {
|
|
63608
|
+
uuid: encodeSimple("uuid", payload.uuid, {
|
|
63609
|
+
explode: false,
|
|
63610
|
+
charEncoding: "percent"
|
|
63611
|
+
})
|
|
63612
|
+
};
|
|
63613
|
+
const path = pathToFunc("/staffmessage/{uuid}.json")(pathParams);
|
|
63614
|
+
const headers = new Headers(compactMap({
|
|
63615
|
+
"Content-Type": "application/json",
|
|
63616
|
+
Accept: "application/json"
|
|
63617
|
+
}));
|
|
63618
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
63619
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
63620
|
+
const context = {
|
|
63621
|
+
options: client._options,
|
|
63622
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
63623
|
+
operationID: "updateStaffMessages",
|
|
63624
|
+
oAuth2Scopes: [],
|
|
63625
|
+
resolvedSecurity: requestSecurity,
|
|
63626
|
+
securitySource: client._options.security,
|
|
63627
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
63628
|
+
strategy: "backoff",
|
|
63629
|
+
backoff: {
|
|
63630
|
+
initialInterval: 500,
|
|
63631
|
+
maxInterval: 60000,
|
|
63632
|
+
exponent: 1.5,
|
|
63633
|
+
maxElapsedTime: 3600000
|
|
63634
|
+
},
|
|
63635
|
+
retryConnectionErrors: true
|
|
63636
|
+
},
|
|
63637
|
+
retryCodes: options?.retryCodes || ["5XX", "429"]
|
|
63638
|
+
};
|
|
63639
|
+
const requestRes = client._createRequest(context, {
|
|
63640
|
+
security: requestSecurity,
|
|
63641
|
+
method: "POST",
|
|
63642
|
+
baseURL: options?.serverURL,
|
|
63643
|
+
path,
|
|
63644
|
+
headers,
|
|
63645
|
+
body,
|
|
63646
|
+
userAgent: client._options.userAgent,
|
|
63647
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
63648
|
+
}, options);
|
|
63649
|
+
if (!requestRes.ok) {
|
|
63650
|
+
return [requestRes, { status: "invalid" }];
|
|
63651
|
+
}
|
|
63652
|
+
const req = requestRes.value;
|
|
63653
|
+
const doResult = await client._do(req, {
|
|
63654
|
+
context,
|
|
63655
|
+
errorCodes: ["400", "401", "403", "404", "429", "4XX", "500", "5XX"],
|
|
63656
|
+
retryConfig: context.retryConfig,
|
|
63657
|
+
retryCodes: context.retryCodes
|
|
63658
|
+
});
|
|
63659
|
+
if (!doResult.ok) {
|
|
63660
|
+
return [doResult, { status: "request-error", request: req }];
|
|
63661
|
+
}
|
|
63662
|
+
const response = doResult.value;
|
|
63663
|
+
const responseFields = {
|
|
63664
|
+
HttpMeta: { Response: response, Request: req }
|
|
63665
|
+
};
|
|
63666
|
+
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 });
|
|
63667
|
+
if (!result2.ok) {
|
|
63668
|
+
return [result2, { status: "complete", request: req, response }];
|
|
63669
|
+
}
|
|
63670
|
+
return [result2, { status: "complete", request: req, response }];
|
|
63671
|
+
}
|
|
63672
|
+
var init_staffMessagesUpdateStaffMessages = __esm(() => {
|
|
63673
|
+
init_encodings();
|
|
63674
|
+
init_matchers();
|
|
63675
|
+
init_primitives();
|
|
63676
|
+
init_schemas();
|
|
63677
|
+
init_security();
|
|
63678
|
+
init_url();
|
|
63679
|
+
init_components();
|
|
63680
|
+
init_errors2();
|
|
63681
|
+
init_operations();
|
|
63682
|
+
init_async();
|
|
63683
|
+
});
|
|
63684
|
+
|
|
63685
|
+
// src/mcp-server/tools/staffMessagesUpdateStaffMessages.ts
|
|
63686
|
+
var args130, tool$staffMessagesUpdateStaffMessages;
|
|
63687
|
+
var init_staffMessagesUpdateStaffMessages2 = __esm(() => {
|
|
63688
|
+
init_staffMessagesUpdateStaffMessages();
|
|
63689
|
+
init_operations();
|
|
63690
|
+
init_tools();
|
|
63691
|
+
args130 = {
|
|
63692
|
+
request: UpdateStaffMessagesRequest$inboundSchema
|
|
63693
|
+
};
|
|
63694
|
+
tool$staffMessagesUpdateStaffMessages = {
|
|
63695
|
+
name: "staff-messages-update-staff-messages",
|
|
63696
|
+
description: `Update a Staff Message
|
|
63697
|
+
|
|
63698
|
+
|
|
63699
|
+
|
|
63700
|
+
#### OAuth Scope
|
|
63701
|
+
This endpoint requires the following OAuth scope **publish_messages**.
|
|
63702
|
+
|
|
63703
|
+
`,
|
|
63704
|
+
args: args130,
|
|
63705
|
+
tool: async (client, args131, ctx) => {
|
|
63706
|
+
const [result2, apiCall] = await staffMessagesUpdateStaffMessages(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63707
|
+
if (!result2.ok) {
|
|
63708
|
+
return {
|
|
63709
|
+
content: [{ type: "text", text: result2.error.message }],
|
|
63710
|
+
isError: true
|
|
63711
|
+
};
|
|
63712
|
+
}
|
|
63713
|
+
const value = result2.value;
|
|
63714
|
+
return formatResult(value, apiCall);
|
|
63715
|
+
}
|
|
63716
|
+
};
|
|
63717
|
+
});
|
|
63718
|
+
|
|
63220
63719
|
// src/funcs/tasksCreateTasks.ts
|
|
63221
63720
|
function tasksCreateTasks(client, request, options) {
|
|
63222
|
-
return new APIPromise($
|
|
63721
|
+
return new APIPromise($do163(client, request, options));
|
|
63223
63722
|
}
|
|
63224
|
-
async function $
|
|
63723
|
+
async function $do163(client, request, options) {
|
|
63225
63724
|
const parsed = safeParse(request, (value) => TaskInput$outboundSchema.parse(value), "Input validation failed");
|
|
63226
63725
|
if (!parsed.ok) {
|
|
63227
63726
|
return [parsed, { status: "invalid" }];
|
|
@@ -63304,12 +63803,12 @@ var init_tasksCreateTasks = __esm(() => {
|
|
|
63304
63803
|
});
|
|
63305
63804
|
|
|
63306
63805
|
// src/mcp-server/tools/tasksCreateTasks.ts
|
|
63307
|
-
var
|
|
63806
|
+
var args131, tool$tasksCreateTasks;
|
|
63308
63807
|
var init_tasksCreateTasks2 = __esm(() => {
|
|
63309
63808
|
init_tasksCreateTasks();
|
|
63310
63809
|
init_components();
|
|
63311
63810
|
init_tools();
|
|
63312
|
-
|
|
63811
|
+
args131 = {
|
|
63313
63812
|
request: TaskInput$inboundSchema
|
|
63314
63813
|
};
|
|
63315
63814
|
tool$tasksCreateTasks = {
|
|
@@ -63327,9 +63826,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
63327
63826
|
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.
|
|
63328
63827
|
|
|
63329
63828
|
`,
|
|
63330
|
-
args:
|
|
63331
|
-
tool: async (client,
|
|
63332
|
-
const [result2, apiCall] = await tasksCreateTasks(client,
|
|
63829
|
+
args: args131,
|
|
63830
|
+
tool: async (client, args132, ctx) => {
|
|
63831
|
+
const [result2, apiCall] = await tasksCreateTasks(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63333
63832
|
if (!result2.ok) {
|
|
63334
63833
|
return {
|
|
63335
63834
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63344,9 +63843,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
63344
63843
|
|
|
63345
63844
|
// src/funcs/tasksDeleteTasks.ts
|
|
63346
63845
|
function tasksDeleteTasks(client, request, options) {
|
|
63347
|
-
return new APIPromise($
|
|
63846
|
+
return new APIPromise($do164(client, request, options));
|
|
63348
63847
|
}
|
|
63349
|
-
async function $
|
|
63848
|
+
async function $do164(client, request, options) {
|
|
63350
63849
|
const parsed = safeParse(request, (value) => DeleteTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63351
63850
|
if (!parsed.ok) {
|
|
63352
63851
|
return [parsed, { status: "invalid" }];
|
|
@@ -63431,12 +63930,12 @@ var init_tasksDeleteTasks = __esm(() => {
|
|
|
63431
63930
|
});
|
|
63432
63931
|
|
|
63433
63932
|
// src/mcp-server/tools/tasksDeleteTasks.ts
|
|
63434
|
-
var
|
|
63933
|
+
var args132, tool$tasksDeleteTasks;
|
|
63435
63934
|
var init_tasksDeleteTasks2 = __esm(() => {
|
|
63436
63935
|
init_tasksDeleteTasks();
|
|
63437
63936
|
init_operations();
|
|
63438
63937
|
init_tools();
|
|
63439
|
-
|
|
63938
|
+
args132 = {
|
|
63440
63939
|
request: DeleteTasksRequest$inboundSchema
|
|
63441
63940
|
};
|
|
63442
63941
|
tool$tasksDeleteTasks = {
|
|
@@ -63453,9 +63952,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
63453
63952
|
This endpoint requires the following OAuth scope **manage_tasks**.
|
|
63454
63953
|
|
|
63455
63954
|
`,
|
|
63456
|
-
args:
|
|
63457
|
-
tool: async (client,
|
|
63458
|
-
const [result2, apiCall] = await tasksDeleteTasks(client,
|
|
63955
|
+
args: args132,
|
|
63956
|
+
tool: async (client, args133, ctx) => {
|
|
63957
|
+
const [result2, apiCall] = await tasksDeleteTasks(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63459
63958
|
if (!result2.ok) {
|
|
63460
63959
|
return {
|
|
63461
63960
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63470,9 +63969,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
63470
63969
|
|
|
63471
63970
|
// src/funcs/tasksGetTasks.ts
|
|
63472
63971
|
function tasksGetTasks(client, request, options) {
|
|
63473
|
-
return new APIPromise($
|
|
63972
|
+
return new APIPromise($do165(client, request, options));
|
|
63474
63973
|
}
|
|
63475
|
-
async function $
|
|
63974
|
+
async function $do165(client, request, options) {
|
|
63476
63975
|
const parsed = safeParse(request, (value) => GetTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63477
63976
|
if (!parsed.ok) {
|
|
63478
63977
|
return [parsed, { status: "invalid" }];
|
|
@@ -63557,12 +64056,12 @@ var init_tasksGetTasks = __esm(() => {
|
|
|
63557
64056
|
});
|
|
63558
64057
|
|
|
63559
64058
|
// src/mcp-server/tools/tasksGetTasks.ts
|
|
63560
|
-
var
|
|
64059
|
+
var args133, tool$tasksGetTasks;
|
|
63561
64060
|
var init_tasksGetTasks2 = __esm(() => {
|
|
63562
64061
|
init_tasksGetTasks();
|
|
63563
64062
|
init_operations();
|
|
63564
64063
|
init_tools();
|
|
63565
|
-
|
|
64064
|
+
args133 = {
|
|
63566
64065
|
request: GetTasksRequest$inboundSchema
|
|
63567
64066
|
};
|
|
63568
64067
|
tool$tasksGetTasks = {
|
|
@@ -63575,9 +64074,9 @@ var init_tasksGetTasks2 = __esm(() => {
|
|
|
63575
64074
|
This endpoint requires the following OAuth scope **read_tasks**.
|
|
63576
64075
|
|
|
63577
64076
|
`,
|
|
63578
|
-
args:
|
|
63579
|
-
tool: async (client,
|
|
63580
|
-
const [result2, apiCall] = await tasksGetTasks(client,
|
|
64077
|
+
args: args133,
|
|
64078
|
+
tool: async (client, args134, ctx) => {
|
|
64079
|
+
const [result2, apiCall] = await tasksGetTasks(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63581
64080
|
if (!result2.ok) {
|
|
63582
64081
|
return {
|
|
63583
64082
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63592,9 +64091,9 @@ This endpoint requires the following OAuth scope **read_tasks**.
|
|
|
63592
64091
|
|
|
63593
64092
|
// src/funcs/tasksListTasks.ts
|
|
63594
64093
|
function tasksListTasks(client, options) {
|
|
63595
|
-
return new APIPromise($
|
|
64094
|
+
return new APIPromise($do166(client, options));
|
|
63596
64095
|
}
|
|
63597
|
-
async function $
|
|
64096
|
+
async function $do166(client, options) {
|
|
63598
64097
|
const path = pathToFunc("/task.json")();
|
|
63599
64098
|
const headers = new Headers(compactMap({
|
|
63600
64099
|
Accept: "application/json"
|
|
@@ -63698,9 +64197,9 @@ This endpoint requires the following OAuth scope **read_tasks**.
|
|
|
63698
64197
|
|
|
63699
64198
|
// src/funcs/tasksUpdateTasks.ts
|
|
63700
64199
|
function tasksUpdateTasks(client, request, options) {
|
|
63701
|
-
return new APIPromise($
|
|
64200
|
+
return new APIPromise($do167(client, request, options));
|
|
63702
64201
|
}
|
|
63703
|
-
async function $
|
|
64202
|
+
async function $do167(client, request, options) {
|
|
63704
64203
|
const parsed = safeParse(request, (value) => UpdateTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63705
64204
|
if (!parsed.ok) {
|
|
63706
64205
|
return [parsed, { status: "invalid" }];
|
|
@@ -63786,12 +64285,12 @@ var init_tasksUpdateTasks = __esm(() => {
|
|
|
63786
64285
|
});
|
|
63787
64286
|
|
|
63788
64287
|
// src/mcp-server/tools/tasksUpdateTasks.ts
|
|
63789
|
-
var
|
|
64288
|
+
var args134, tool$tasksUpdateTasks;
|
|
63790
64289
|
var init_tasksUpdateTasks2 = __esm(() => {
|
|
63791
64290
|
init_tasksUpdateTasks();
|
|
63792
64291
|
init_operations();
|
|
63793
64292
|
init_tools();
|
|
63794
|
-
|
|
64293
|
+
args134 = {
|
|
63795
64294
|
request: UpdateTasksRequest$inboundSchema
|
|
63796
64295
|
};
|
|
63797
64296
|
tool$tasksUpdateTasks = {
|
|
@@ -63804,9 +64303,9 @@ var init_tasksUpdateTasks2 = __esm(() => {
|
|
|
63804
64303
|
This endpoint requires the following OAuth scope **manage_tasks**.
|
|
63805
64304
|
|
|
63806
64305
|
`,
|
|
63807
|
-
args:
|
|
63808
|
-
tool: async (client,
|
|
63809
|
-
const [result2, apiCall] = await tasksUpdateTasks(client,
|
|
64306
|
+
args: args134,
|
|
64307
|
+
tool: async (client, args135, ctx) => {
|
|
64308
|
+
const [result2, apiCall] = await tasksUpdateTasks(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63810
64309
|
if (!result2.ok) {
|
|
63811
64310
|
return {
|
|
63812
64311
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63821,9 +64320,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
63821
64320
|
|
|
63822
64321
|
// src/funcs/taxRatesCreateTaxRates.ts
|
|
63823
64322
|
function taxRatesCreateTaxRates(client, request, options) {
|
|
63824
|
-
return new APIPromise($
|
|
64323
|
+
return new APIPromise($do168(client, request, options));
|
|
63825
64324
|
}
|
|
63826
|
-
async function $
|
|
64325
|
+
async function $do168(client, request, options) {
|
|
63827
64326
|
const parsed = safeParse(request, (value) => TaxRateInput$outboundSchema.parse(value), "Input validation failed");
|
|
63828
64327
|
if (!parsed.ok) {
|
|
63829
64328
|
return [parsed, { status: "invalid" }];
|
|
@@ -63906,12 +64405,12 @@ var init_taxRatesCreateTaxRates = __esm(() => {
|
|
|
63906
64405
|
});
|
|
63907
64406
|
|
|
63908
64407
|
// src/mcp-server/tools/taxRatesCreateTaxRates.ts
|
|
63909
|
-
var
|
|
64408
|
+
var args135, tool$taxRatesCreateTaxRates;
|
|
63910
64409
|
var init_taxRatesCreateTaxRates2 = __esm(() => {
|
|
63911
64410
|
init_taxRatesCreateTaxRates();
|
|
63912
64411
|
init_components();
|
|
63913
64412
|
init_tools();
|
|
63914
|
-
|
|
64413
|
+
args135 = {
|
|
63915
64414
|
request: TaxRateInput$inboundSchema
|
|
63916
64415
|
};
|
|
63917
64416
|
tool$taxRatesCreateTaxRates = {
|
|
@@ -63929,9 +64428,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
63929
64428
|
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.
|
|
63930
64429
|
|
|
63931
64430
|
`,
|
|
63932
|
-
args:
|
|
63933
|
-
tool: async (client,
|
|
63934
|
-
const [result2, apiCall] = await taxRatesCreateTaxRates(client,
|
|
64431
|
+
args: args135,
|
|
64432
|
+
tool: async (client, args136, ctx) => {
|
|
64433
|
+
const [result2, apiCall] = await taxRatesCreateTaxRates(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63935
64434
|
if (!result2.ok) {
|
|
63936
64435
|
return {
|
|
63937
64436
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63946,9 +64445,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
63946
64445
|
|
|
63947
64446
|
// src/funcs/taxRatesDeleteTaxRates.ts
|
|
63948
64447
|
function taxRatesDeleteTaxRates(client, request, options) {
|
|
63949
|
-
return new APIPromise($
|
|
64448
|
+
return new APIPromise($do169(client, request, options));
|
|
63950
64449
|
}
|
|
63951
|
-
async function $
|
|
64450
|
+
async function $do169(client, request, options) {
|
|
63952
64451
|
const parsed = safeParse(request, (value) => DeleteTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63953
64452
|
if (!parsed.ok) {
|
|
63954
64453
|
return [parsed, { status: "invalid" }];
|
|
@@ -64033,12 +64532,12 @@ var init_taxRatesDeleteTaxRates = __esm(() => {
|
|
|
64033
64532
|
});
|
|
64034
64533
|
|
|
64035
64534
|
// src/mcp-server/tools/taxRatesDeleteTaxRates.ts
|
|
64036
|
-
var
|
|
64535
|
+
var args136, tool$taxRatesDeleteTaxRates;
|
|
64037
64536
|
var init_taxRatesDeleteTaxRates2 = __esm(() => {
|
|
64038
64537
|
init_taxRatesDeleteTaxRates();
|
|
64039
64538
|
init_operations();
|
|
64040
64539
|
init_tools();
|
|
64041
|
-
|
|
64540
|
+
args136 = {
|
|
64042
64541
|
request: DeleteTaxRatesRequest$inboundSchema
|
|
64043
64542
|
};
|
|
64044
64543
|
tool$taxRatesDeleteTaxRates = {
|
|
@@ -64055,9 +64554,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
64055
64554
|
This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
64056
64555
|
|
|
64057
64556
|
`,
|
|
64058
|
-
args:
|
|
64059
|
-
tool: async (client,
|
|
64060
|
-
const [result2, apiCall] = await taxRatesDeleteTaxRates(client,
|
|
64557
|
+
args: args136,
|
|
64558
|
+
tool: async (client, args137, ctx) => {
|
|
64559
|
+
const [result2, apiCall] = await taxRatesDeleteTaxRates(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64061
64560
|
if (!result2.ok) {
|
|
64062
64561
|
return {
|
|
64063
64562
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64072,9 +64571,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
64072
64571
|
|
|
64073
64572
|
// src/funcs/taxRatesGetTaxRates.ts
|
|
64074
64573
|
function taxRatesGetTaxRates(client, request, options) {
|
|
64075
|
-
return new APIPromise($
|
|
64574
|
+
return new APIPromise($do170(client, request, options));
|
|
64076
64575
|
}
|
|
64077
|
-
async function $
|
|
64576
|
+
async function $do170(client, request, options) {
|
|
64078
64577
|
const parsed = safeParse(request, (value) => GetTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64079
64578
|
if (!parsed.ok) {
|
|
64080
64579
|
return [parsed, { status: "invalid" }];
|
|
@@ -64159,12 +64658,12 @@ var init_taxRatesGetTaxRates = __esm(() => {
|
|
|
64159
64658
|
});
|
|
64160
64659
|
|
|
64161
64660
|
// src/mcp-server/tools/taxRatesGetTaxRates.ts
|
|
64162
|
-
var
|
|
64661
|
+
var args137, tool$taxRatesGetTaxRates;
|
|
64163
64662
|
var init_taxRatesGetTaxRates2 = __esm(() => {
|
|
64164
64663
|
init_taxRatesGetTaxRates();
|
|
64165
64664
|
init_operations();
|
|
64166
64665
|
init_tools();
|
|
64167
|
-
|
|
64666
|
+
args137 = {
|
|
64168
64667
|
request: GetTaxRatesRequest$inboundSchema
|
|
64169
64668
|
};
|
|
64170
64669
|
tool$taxRatesGetTaxRates = {
|
|
@@ -64177,9 +64676,9 @@ var init_taxRatesGetTaxRates2 = __esm(() => {
|
|
|
64177
64676
|
This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
64178
64677
|
|
|
64179
64678
|
`,
|
|
64180
|
-
args:
|
|
64181
|
-
tool: async (client,
|
|
64182
|
-
const [result2, apiCall] = await taxRatesGetTaxRates(client,
|
|
64679
|
+
args: args137,
|
|
64680
|
+
tool: async (client, args138, ctx) => {
|
|
64681
|
+
const [result2, apiCall] = await taxRatesGetTaxRates(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64183
64682
|
if (!result2.ok) {
|
|
64184
64683
|
return {
|
|
64185
64684
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64194,9 +64693,9 @@ This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
|
64194
64693
|
|
|
64195
64694
|
// src/funcs/taxRatesListTaxRates.ts
|
|
64196
64695
|
function taxRatesListTaxRates(client, options) {
|
|
64197
|
-
return new APIPromise($
|
|
64696
|
+
return new APIPromise($do171(client, options));
|
|
64198
64697
|
}
|
|
64199
|
-
async function $
|
|
64698
|
+
async function $do171(client, options) {
|
|
64200
64699
|
const path = pathToFunc("/taxrate.json")();
|
|
64201
64700
|
const headers = new Headers(compactMap({
|
|
64202
64701
|
Accept: "application/json"
|
|
@@ -64300,9 +64799,9 @@ This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
|
64300
64799
|
|
|
64301
64800
|
// src/funcs/taxRatesUpdateTaxRates.ts
|
|
64302
64801
|
function taxRatesUpdateTaxRates(client, request, options) {
|
|
64303
|
-
return new APIPromise($
|
|
64802
|
+
return new APIPromise($do172(client, request, options));
|
|
64304
64803
|
}
|
|
64305
|
-
async function $
|
|
64804
|
+
async function $do172(client, request, options) {
|
|
64306
64805
|
const parsed = safeParse(request, (value) => UpdateTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64307
64806
|
if (!parsed.ok) {
|
|
64308
64807
|
return [parsed, { status: "invalid" }];
|
|
@@ -64388,12 +64887,12 @@ var init_taxRatesUpdateTaxRates = __esm(() => {
|
|
|
64388
64887
|
});
|
|
64389
64888
|
|
|
64390
64889
|
// src/mcp-server/tools/taxRatesUpdateTaxRates.ts
|
|
64391
|
-
var
|
|
64890
|
+
var args138, tool$taxRatesUpdateTaxRates;
|
|
64392
64891
|
var init_taxRatesUpdateTaxRates2 = __esm(() => {
|
|
64393
64892
|
init_taxRatesUpdateTaxRates();
|
|
64394
64893
|
init_operations();
|
|
64395
64894
|
init_tools();
|
|
64396
|
-
|
|
64895
|
+
args138 = {
|
|
64397
64896
|
request: UpdateTaxRatesRequest$inboundSchema
|
|
64398
64897
|
};
|
|
64399
64898
|
tool$taxRatesUpdateTaxRates = {
|
|
@@ -64406,9 +64905,9 @@ var init_taxRatesUpdateTaxRates2 = __esm(() => {
|
|
|
64406
64905
|
This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
64407
64906
|
|
|
64408
64907
|
`,
|
|
64409
|
-
args:
|
|
64410
|
-
tool: async (client,
|
|
64411
|
-
const [result2, apiCall] = await taxRatesUpdateTaxRates(client,
|
|
64908
|
+
args: args138,
|
|
64909
|
+
tool: async (client, args139, ctx) => {
|
|
64910
|
+
const [result2, apiCall] = await taxRatesUpdateTaxRates(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64412
64911
|
if (!result2.ok) {
|
|
64413
64912
|
return {
|
|
64414
64913
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64423,9 +64922,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
64423
64922
|
|
|
64424
64923
|
// src/funcs/vendorsGetVendors.ts
|
|
64425
64924
|
function vendorsGetVendors(client, request, options) {
|
|
64426
|
-
return new APIPromise($
|
|
64925
|
+
return new APIPromise($do173(client, request, options));
|
|
64427
64926
|
}
|
|
64428
|
-
async function $
|
|
64927
|
+
async function $do173(client, request, options) {
|
|
64429
64928
|
const parsed = safeParse(request, (value) => GetVendorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64430
64929
|
if (!parsed.ok) {
|
|
64431
64930
|
return [parsed, { status: "invalid" }];
|
|
@@ -64510,12 +65009,12 @@ var init_vendorsGetVendors = __esm(() => {
|
|
|
64510
65009
|
});
|
|
64511
65010
|
|
|
64512
65011
|
// src/mcp-server/tools/vendorsGetVendors.ts
|
|
64513
|
-
var
|
|
65012
|
+
var args139, tool$vendorsGetVendors;
|
|
64514
65013
|
var init_vendorsGetVendors2 = __esm(() => {
|
|
64515
65014
|
init_vendorsGetVendors();
|
|
64516
65015
|
init_operations();
|
|
64517
65016
|
init_tools();
|
|
64518
|
-
|
|
65017
|
+
args139 = {
|
|
64519
65018
|
request: GetVendorsRequest$inboundSchema
|
|
64520
65019
|
};
|
|
64521
65020
|
tool$vendorsGetVendors = {
|
|
@@ -64530,9 +65029,9 @@ Vendor account information
|
|
|
64530
65029
|
This endpoint requires the following OAuth scope **vendor**.
|
|
64531
65030
|
|
|
64532
65031
|
`,
|
|
64533
|
-
args:
|
|
64534
|
-
tool: async (client,
|
|
64535
|
-
const [result2, apiCall] = await vendorsGetVendors(client,
|
|
65032
|
+
args: args139,
|
|
65033
|
+
tool: async (client, args140, ctx) => {
|
|
65034
|
+
const [result2, apiCall] = await vendorsGetVendors(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64536
65035
|
if (!result2.ok) {
|
|
64537
65036
|
return {
|
|
64538
65037
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64547,9 +65046,9 @@ This endpoint requires the following OAuth scope **vendor**.
|
|
|
64547
65046
|
|
|
64548
65047
|
// src/funcs/vendorsListVendors.ts
|
|
64549
65048
|
function vendorsListVendors(client, options) {
|
|
64550
|
-
return new APIPromise($
|
|
65049
|
+
return new APIPromise($do174(client, options));
|
|
64551
65050
|
}
|
|
64552
|
-
async function $
|
|
65051
|
+
async function $do174(client, options) {
|
|
64553
65052
|
const path = pathToFunc("/vendor.json")();
|
|
64554
65053
|
const headers = new Headers(compactMap({
|
|
64555
65054
|
Accept: "application/json"
|
|
@@ -64657,7 +65156,7 @@ This endpoint requires the following OAuth scope **vendor**.
|
|
|
64657
65156
|
function createMCPServer(deps) {
|
|
64658
65157
|
const server = new McpServer({
|
|
64659
65158
|
name: "ServiceM8",
|
|
64660
|
-
version: "0.9.
|
|
65159
|
+
version: "0.9.42"
|
|
64661
65160
|
});
|
|
64662
65161
|
const client = new ServiceM8Core({
|
|
64663
65162
|
security: deps.security,
|
|
@@ -64818,7 +65317,10 @@ function createMCPServer(deps) {
|
|
|
64818
65317
|
tool(tool$staffMembersUpdateStaffMembers);
|
|
64819
65318
|
tool(tool$staffMembersDeleteStaffMembers);
|
|
64820
65319
|
tool(tool$staffMessagesListStaffMessages);
|
|
65320
|
+
tool(tool$staffMessagesCreateStaffMessages);
|
|
64821
65321
|
tool(tool$staffMessagesGetStaffMessages);
|
|
65322
|
+
tool(tool$staffMessagesUpdateStaffMessages);
|
|
65323
|
+
tool(tool$staffMessagesDeleteStaffMessages);
|
|
64822
65324
|
tool(tool$tasksListTasks);
|
|
64823
65325
|
tool(tool$tasksCreateTasks);
|
|
64824
65326
|
tool(tool$tasksGetTasks);
|
|
@@ -65006,8 +65508,11 @@ var init_server2 = __esm(() => {
|
|
|
65006
65508
|
init_staffMembersGetStaffMembers2();
|
|
65007
65509
|
init_staffMembersListStaffMembers2();
|
|
65008
65510
|
init_staffMembersUpdateStaffMembers2();
|
|
65511
|
+
init_staffMessagesCreateStaffMessages2();
|
|
65512
|
+
init_staffMessagesDeleteStaffMessages2();
|
|
65009
65513
|
init_staffMessagesGetStaffMessages2();
|
|
65010
65514
|
init_staffMessagesListStaffMessages2();
|
|
65515
|
+
init_staffMessagesUpdateStaffMessages2();
|
|
65011
65516
|
init_tasksCreateTasks2();
|
|
65012
65517
|
init_tasksDeleteTasks2();
|
|
65013
65518
|
init_tasksGetTasks2();
|
|
@@ -66202,7 +66707,7 @@ var routes = an({
|
|
|
66202
66707
|
var app = He(routes, {
|
|
66203
66708
|
name: "mcp",
|
|
66204
66709
|
versionInfo: {
|
|
66205
|
-
currentVersion: "0.9.
|
|
66710
|
+
currentVersion: "0.9.42"
|
|
66206
66711
|
}
|
|
66207
66712
|
});
|
|
66208
66713
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -66210,5 +66715,5 @@ export {
|
|
|
66210
66715
|
app
|
|
66211
66716
|
};
|
|
66212
66717
|
|
|
66213
|
-
//# debugId=
|
|
66718
|
+
//# debugId=4AC4A412EE24003564756E2164756E21
|
|
66214
66719
|
//# sourceMappingURL=mcp-server.js.map
|