servicem8 0.9.42 → 0.9.43
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 +1 -7
- package/api.json +295 -789
- package/bin/mcp-server.js +84 -589
- package/bin/mcp-server.js.map +9 -18
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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 +1 -7
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/staffmessage.d.ts +0 -49
- package/dist/commonjs/models/components/staffmessage.d.ts.map +1 -1
- package/dist/commonjs/models/components/staffmessage.js +1 -66
- 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/index.d.ts +0 -3
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -3
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/staffmessages.d.ts +0 -32
- package/dist/commonjs/sdk/staffmessages.d.ts.map +1 -1
- package/dist/commonjs/sdk/staffmessages.js +0 -41
- package/dist/commonjs/sdk/staffmessages.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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 +1 -7
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/staffmessage.d.ts +0 -49
- package/dist/esm/models/components/staffmessage.d.ts.map +1 -1
- package/dist/esm/models/components/staffmessage.js +0 -63
- 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/index.d.ts +0 -3
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -3
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/staffmessages.d.ts +0 -32
- package/dist/esm/sdk/staffmessages.d.ts.map +1 -1
- package/dist/esm/sdk/staffmessages.js +0 -41
- 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 +0 -305
- 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/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -7
- package/src/models/components/staffmessage.ts +0 -120
- package/src/models/components/vendor.ts +2 -2
- package/src/models/operations/index.ts +0 -3
- package/src/sdk/staffmessages.ts +0 -65
- package/dist/commonjs/funcs/staffMessagesCreateStaffMessages.d.ts +0 -24
- package/dist/commonjs/funcs/staffMessagesCreateStaffMessages.d.ts.map +0 -1
- package/dist/commonjs/funcs/staffMessagesCreateStaffMessages.js +0 -136
- package/dist/commonjs/funcs/staffMessagesCreateStaffMessages.js.map +0 -1
- package/dist/commonjs/funcs/staffMessagesDeleteStaffMessages.d.ts +0 -23
- package/dist/commonjs/funcs/staffMessagesDeleteStaffMessages.d.ts.map +0 -1
- package/dist/commonjs/funcs/staffMessagesDeleteStaffMessages.js +0 -137
- package/dist/commonjs/funcs/staffMessagesDeleteStaffMessages.js.map +0 -1
- package/dist/commonjs/funcs/staffMessagesUpdateStaffMessages.d.ts +0 -21
- package/dist/commonjs/funcs/staffMessagesUpdateStaffMessages.d.ts.map +0 -1
- package/dist/commonjs/funcs/staffMessagesUpdateStaffMessages.js +0 -136
- package/dist/commonjs/funcs/staffMessagesUpdateStaffMessages.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/staffMessagesCreateStaffMessages.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/staffMessagesCreateStaffMessages.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/staffMessagesCreateStaffMessages.js +0 -74
- package/dist/commonjs/mcp-server/tools/staffMessagesCreateStaffMessages.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/staffMessagesDeleteStaffMessages.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/staffMessagesDeleteStaffMessages.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/staffMessagesDeleteStaffMessages.js +0 -73
- package/dist/commonjs/mcp-server/tools/staffMessagesDeleteStaffMessages.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/staffMessagesUpdateStaffMessages.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/staffMessagesUpdateStaffMessages.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/staffMessagesUpdateStaffMessages.js +0 -69
- package/dist/commonjs/mcp-server/tools/staffMessagesUpdateStaffMessages.js.map +0 -1
- package/dist/commonjs/models/operations/createstaffmessages.d.ts +0 -36
- package/dist/commonjs/models/operations/createstaffmessages.d.ts.map +0 -1
- package/dist/commonjs/models/operations/createstaffmessages.js +0 -83
- package/dist/commonjs/models/operations/createstaffmessages.js.map +0 -1
- package/dist/commonjs/models/operations/deletestaffmessages.d.ts +0 -32
- package/dist/commonjs/models/operations/deletestaffmessages.d.ts.map +0 -1
- package/dist/commonjs/models/operations/deletestaffmessages.js +0 -69
- package/dist/commonjs/models/operations/deletestaffmessages.js.map +0 -1
- package/dist/commonjs/models/operations/updatestaffmessages.d.ts +0 -38
- package/dist/commonjs/models/operations/updatestaffmessages.d.ts.map +0 -1
- package/dist/commonjs/models/operations/updatestaffmessages.js +0 -81
- package/dist/commonjs/models/operations/updatestaffmessages.js.map +0 -1
- package/dist/esm/funcs/staffMessagesCreateStaffMessages.d.ts +0 -24
- package/dist/esm/funcs/staffMessagesCreateStaffMessages.d.ts.map +0 -1
- package/dist/esm/funcs/staffMessagesCreateStaffMessages.js +0 -100
- package/dist/esm/funcs/staffMessagesCreateStaffMessages.js.map +0 -1
- package/dist/esm/funcs/staffMessagesDeleteStaffMessages.d.ts +0 -23
- package/dist/esm/funcs/staffMessagesDeleteStaffMessages.d.ts.map +0 -1
- package/dist/esm/funcs/staffMessagesDeleteStaffMessages.js +0 -101
- package/dist/esm/funcs/staffMessagesDeleteStaffMessages.js.map +0 -1
- package/dist/esm/funcs/staffMessagesUpdateStaffMessages.d.ts +0 -21
- package/dist/esm/funcs/staffMessagesUpdateStaffMessages.d.ts.map +0 -1
- package/dist/esm/funcs/staffMessagesUpdateStaffMessages.js +0 -100
- package/dist/esm/funcs/staffMessagesUpdateStaffMessages.js.map +0 -1
- package/dist/esm/mcp-server/tools/staffMessagesCreateStaffMessages.d.ts +0 -8
- package/dist/esm/mcp-server/tools/staffMessagesCreateStaffMessages.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/staffMessagesCreateStaffMessages.js +0 -38
- package/dist/esm/mcp-server/tools/staffMessagesCreateStaffMessages.js.map +0 -1
- package/dist/esm/mcp-server/tools/staffMessagesDeleteStaffMessages.d.ts +0 -8
- package/dist/esm/mcp-server/tools/staffMessagesDeleteStaffMessages.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/staffMessagesDeleteStaffMessages.js +0 -37
- package/dist/esm/mcp-server/tools/staffMessagesDeleteStaffMessages.js.map +0 -1
- package/dist/esm/mcp-server/tools/staffMessagesUpdateStaffMessages.d.ts +0 -8
- package/dist/esm/mcp-server/tools/staffMessagesUpdateStaffMessages.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/staffMessagesUpdateStaffMessages.js +0 -33
- package/dist/esm/mcp-server/tools/staffMessagesUpdateStaffMessages.js.map +0 -1
- package/dist/esm/models/operations/createstaffmessages.d.ts +0 -36
- package/dist/esm/models/operations/createstaffmessages.d.ts.map +0 -1
- package/dist/esm/models/operations/createstaffmessages.js +0 -45
- package/dist/esm/models/operations/createstaffmessages.js.map +0 -1
- package/dist/esm/models/operations/deletestaffmessages.d.ts +0 -32
- package/dist/esm/models/operations/deletestaffmessages.d.ts.map +0 -1
- package/dist/esm/models/operations/deletestaffmessages.js +0 -31
- package/dist/esm/models/operations/deletestaffmessages.js.map +0 -1
- package/dist/esm/models/operations/updatestaffmessages.d.ts +0 -38
- package/dist/esm/models/operations/updatestaffmessages.d.ts.map +0 -1
- package/dist/esm/models/operations/updatestaffmessages.js +0 -43
- package/dist/esm/models/operations/updatestaffmessages.js.map +0 -1
- package/src/funcs/staffMessagesCreateStaffMessages.ts +0 -200
- package/src/funcs/staffMessagesDeleteStaffMessages.ts +0 -207
- package/src/funcs/staffMessagesUpdateStaffMessages.ts +0 -206
- package/src/mcp-server/tools/staffMessagesCreateStaffMessages.ts +0 -49
- package/src/mcp-server/tools/staffMessagesDeleteStaffMessages.ts +0 -48
- package/src/mcp-server/tools/staffMessagesUpdateStaffMessages.ts +0 -44
- package/src/models/operations/createstaffmessages.ts +0 -84
- package/src/models/operations/deletestaffmessages.ts +0 -69
- package/src/models/operations/updatestaffmessages.ts +0 -86
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.
|
|
34208
|
+
sdkVersion: "0.9.43",
|
|
34209
34209
|
genVersion: "2.684.0",
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.9.
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.9.43 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$;
|
|
40141
40141
|
var init_staffmessage = __esm(() => {
|
|
40142
40142
|
init_esm();
|
|
40143
40143
|
init_primitives();
|
|
@@ -40203,54 +40203,6 @@ 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$ ||= {});
|
|
40254
40206
|
});
|
|
40255
40207
|
|
|
40256
40208
|
// src/models/components/successresponse.ts
|
|
@@ -41899,36 +41851,6 @@ var init_createstaffmembers = __esm(() => {
|
|
|
41899
41851
|
})(CreateStaffMembersResponse$ ||= {});
|
|
41900
41852
|
});
|
|
41901
41853
|
|
|
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
|
-
|
|
41932
41854
|
// src/models/operations/createtasks.ts
|
|
41933
41855
|
var CreateTasksResponse$inboundSchema, CreateTasksResponse$outboundSchema, CreateTasksResponse$;
|
|
41934
41856
|
var init_createtasks = __esm(() => {
|
|
@@ -42437,22 +42359,6 @@ var init_deletestaffmembers = __esm(() => {
|
|
|
42437
42359
|
})(DeleteStaffMembersRequest$ ||= {});
|
|
42438
42360
|
});
|
|
42439
42361
|
|
|
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
|
-
|
|
42456
42362
|
// src/models/operations/deletetasks.ts
|
|
42457
42363
|
var DeleteTasksRequest$inboundSchema, DeleteTasksRequest$outboundSchema, DeleteTasksRequest$;
|
|
42458
42364
|
var init_deletetasks = __esm(() => {
|
|
@@ -44006,34 +43912,6 @@ var init_updatestaffmembers = __esm(() => {
|
|
|
44006
43912
|
})(UpdateStaffMembersRequest$ ||= {});
|
|
44007
43913
|
});
|
|
44008
43914
|
|
|
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
|
-
|
|
44037
43915
|
// src/models/operations/updatetasks.ts
|
|
44038
43916
|
var UpdateTasksRequest$inboundSchema, UpdateTasksRequest$outboundSchema, UpdateTasksRequest$;
|
|
44039
43917
|
var init_updatetasks = __esm(() => {
|
|
@@ -44124,7 +44002,6 @@ var init_operations = __esm(() => {
|
|
|
44124
44002
|
init_creatematerials();
|
|
44125
44003
|
init_createsmstemplates();
|
|
44126
44004
|
init_createstaffmembers();
|
|
44127
|
-
init_createstaffmessages();
|
|
44128
44005
|
init_createtasks();
|
|
44129
44006
|
init_createtaxrates();
|
|
44130
44007
|
init_deleteallocationwindows();
|
|
@@ -44155,7 +44032,6 @@ var init_operations = __esm(() => {
|
|
|
44155
44032
|
init_deletematerials();
|
|
44156
44033
|
init_deletesmstemplates();
|
|
44157
44034
|
init_deletestaffmembers();
|
|
44158
|
-
init_deletestaffmessages();
|
|
44159
44035
|
init_deletetasks();
|
|
44160
44036
|
init_deletetaxrates();
|
|
44161
44037
|
init_generalsearch();
|
|
@@ -44228,7 +44104,6 @@ var init_operations = __esm(() => {
|
|
|
44228
44104
|
init_updatematerials();
|
|
44229
44105
|
init_updatesmstemplates();
|
|
44230
44106
|
init_updatestaffmembers();
|
|
44231
|
-
init_updatestaffmessages();
|
|
44232
44107
|
init_updatetasks();
|
|
44233
44108
|
init_updatetaxrates();
|
|
44234
44109
|
});
|
|
@@ -63114,262 +62989,11 @@ This endpoint requires the following OAuth scope **manage_staff**.
|
|
|
63114
62989
|
};
|
|
63115
62990
|
});
|
|
63116
62991
|
|
|
63117
|
-
// src/funcs/staffMessagesCreateStaffMessages.ts
|
|
63118
|
-
function staffMessagesCreateStaffMessages(client, request, options) {
|
|
63119
|
-
return new APIPromise($do158(client, request, options));
|
|
63120
|
-
}
|
|
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
62992
|
// src/funcs/staffMessagesGetStaffMessages.ts
|
|
63369
62993
|
function staffMessagesGetStaffMessages(client, request, options) {
|
|
63370
|
-
return new APIPromise($
|
|
62994
|
+
return new APIPromise($do158(client, request, options));
|
|
63371
62995
|
}
|
|
63372
|
-
async function $
|
|
62996
|
+
async function $do158(client, request, options) {
|
|
63373
62997
|
const parsed = safeParse(request, (value) => GetStaffMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63374
62998
|
if (!parsed.ok) {
|
|
63375
62999
|
return [parsed, { status: "invalid" }];
|
|
@@ -63454,12 +63078,12 @@ var init_staffMessagesGetStaffMessages = __esm(() => {
|
|
|
63454
63078
|
});
|
|
63455
63079
|
|
|
63456
63080
|
// src/mcp-server/tools/staffMessagesGetStaffMessages.ts
|
|
63457
|
-
var
|
|
63081
|
+
var args127, tool$staffMessagesGetStaffMessages;
|
|
63458
63082
|
var init_staffMessagesGetStaffMessages2 = __esm(() => {
|
|
63459
63083
|
init_staffMessagesGetStaffMessages();
|
|
63460
63084
|
init_operations();
|
|
63461
63085
|
init_tools();
|
|
63462
|
-
|
|
63086
|
+
args127 = {
|
|
63463
63087
|
request: GetStaffMessagesRequest$inboundSchema
|
|
63464
63088
|
};
|
|
63465
63089
|
tool$staffMessagesGetStaffMessages = {
|
|
@@ -63472,9 +63096,9 @@ var init_staffMessagesGetStaffMessages2 = __esm(() => {
|
|
|
63472
63096
|
This endpoint requires the following OAuth scope **read_messages**.
|
|
63473
63097
|
|
|
63474
63098
|
`,
|
|
63475
|
-
args:
|
|
63476
|
-
tool: async (client,
|
|
63477
|
-
const [result2, apiCall] = await staffMessagesGetStaffMessages(client,
|
|
63099
|
+
args: args127,
|
|
63100
|
+
tool: async (client, args128, ctx) => {
|
|
63101
|
+
const [result2, apiCall] = await staffMessagesGetStaffMessages(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63478
63102
|
if (!result2.ok) {
|
|
63479
63103
|
return {
|
|
63480
63104
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63489,9 +63113,9 @@ This endpoint requires the following OAuth scope **read_messages**.
|
|
|
63489
63113
|
|
|
63490
63114
|
// src/funcs/staffMessagesListStaffMessages.ts
|
|
63491
63115
|
function staffMessagesListStaffMessages(client, options) {
|
|
63492
|
-
return new APIPromise($
|
|
63116
|
+
return new APIPromise($do159(client, options));
|
|
63493
63117
|
}
|
|
63494
|
-
async function $
|
|
63118
|
+
async function $do159(client, options) {
|
|
63495
63119
|
const path = pathToFunc("/staffmessage.json")();
|
|
63496
63120
|
const headers = new Headers(compactMap({
|
|
63497
63121
|
Accept: "application/json"
|
|
@@ -63593,134 +63217,11 @@ This endpoint requires the following OAuth scope **read_messages**.
|
|
|
63593
63217
|
};
|
|
63594
63218
|
});
|
|
63595
63219
|
|
|
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
|
-
|
|
63719
63220
|
// src/funcs/tasksCreateTasks.ts
|
|
63720
63221
|
function tasksCreateTasks(client, request, options) {
|
|
63721
|
-
return new APIPromise($
|
|
63222
|
+
return new APIPromise($do160(client, request, options));
|
|
63722
63223
|
}
|
|
63723
|
-
async function $
|
|
63224
|
+
async function $do160(client, request, options) {
|
|
63724
63225
|
const parsed = safeParse(request, (value) => TaskInput$outboundSchema.parse(value), "Input validation failed");
|
|
63725
63226
|
if (!parsed.ok) {
|
|
63726
63227
|
return [parsed, { status: "invalid" }];
|
|
@@ -63803,12 +63304,12 @@ var init_tasksCreateTasks = __esm(() => {
|
|
|
63803
63304
|
});
|
|
63804
63305
|
|
|
63805
63306
|
// src/mcp-server/tools/tasksCreateTasks.ts
|
|
63806
|
-
var
|
|
63307
|
+
var args128, tool$tasksCreateTasks;
|
|
63807
63308
|
var init_tasksCreateTasks2 = __esm(() => {
|
|
63808
63309
|
init_tasksCreateTasks();
|
|
63809
63310
|
init_components();
|
|
63810
63311
|
init_tools();
|
|
63811
|
-
|
|
63312
|
+
args128 = {
|
|
63812
63313
|
request: TaskInput$inboundSchema
|
|
63813
63314
|
};
|
|
63814
63315
|
tool$tasksCreateTasks = {
|
|
@@ -63826,9 +63327,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
63826
63327
|
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.
|
|
63827
63328
|
|
|
63828
63329
|
`,
|
|
63829
|
-
args:
|
|
63830
|
-
tool: async (client,
|
|
63831
|
-
const [result2, apiCall] = await tasksCreateTasks(client,
|
|
63330
|
+
args: args128,
|
|
63331
|
+
tool: async (client, args129, ctx) => {
|
|
63332
|
+
const [result2, apiCall] = await tasksCreateTasks(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63832
63333
|
if (!result2.ok) {
|
|
63833
63334
|
return {
|
|
63834
63335
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63843,9 +63344,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
63843
63344
|
|
|
63844
63345
|
// src/funcs/tasksDeleteTasks.ts
|
|
63845
63346
|
function tasksDeleteTasks(client, request, options) {
|
|
63846
|
-
return new APIPromise($
|
|
63347
|
+
return new APIPromise($do161(client, request, options));
|
|
63847
63348
|
}
|
|
63848
|
-
async function $
|
|
63349
|
+
async function $do161(client, request, options) {
|
|
63849
63350
|
const parsed = safeParse(request, (value) => DeleteTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63850
63351
|
if (!parsed.ok) {
|
|
63851
63352
|
return [parsed, { status: "invalid" }];
|
|
@@ -63930,12 +63431,12 @@ var init_tasksDeleteTasks = __esm(() => {
|
|
|
63930
63431
|
});
|
|
63931
63432
|
|
|
63932
63433
|
// src/mcp-server/tools/tasksDeleteTasks.ts
|
|
63933
|
-
var
|
|
63434
|
+
var args129, tool$tasksDeleteTasks;
|
|
63934
63435
|
var init_tasksDeleteTasks2 = __esm(() => {
|
|
63935
63436
|
init_tasksDeleteTasks();
|
|
63936
63437
|
init_operations();
|
|
63937
63438
|
init_tools();
|
|
63938
|
-
|
|
63439
|
+
args129 = {
|
|
63939
63440
|
request: DeleteTasksRequest$inboundSchema
|
|
63940
63441
|
};
|
|
63941
63442
|
tool$tasksDeleteTasks = {
|
|
@@ -63952,9 +63453,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
63952
63453
|
This endpoint requires the following OAuth scope **manage_tasks**.
|
|
63953
63454
|
|
|
63954
63455
|
`,
|
|
63955
|
-
args:
|
|
63956
|
-
tool: async (client,
|
|
63957
|
-
const [result2, apiCall] = await tasksDeleteTasks(client,
|
|
63456
|
+
args: args129,
|
|
63457
|
+
tool: async (client, args130, ctx) => {
|
|
63458
|
+
const [result2, apiCall] = await tasksDeleteTasks(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
63958
63459
|
if (!result2.ok) {
|
|
63959
63460
|
return {
|
|
63960
63461
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -63969,9 +63470,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
63969
63470
|
|
|
63970
63471
|
// src/funcs/tasksGetTasks.ts
|
|
63971
63472
|
function tasksGetTasks(client, request, options) {
|
|
63972
|
-
return new APIPromise($
|
|
63473
|
+
return new APIPromise($do162(client, request, options));
|
|
63973
63474
|
}
|
|
63974
|
-
async function $
|
|
63475
|
+
async function $do162(client, request, options) {
|
|
63975
63476
|
const parsed = safeParse(request, (value) => GetTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
63976
63477
|
if (!parsed.ok) {
|
|
63977
63478
|
return [parsed, { status: "invalid" }];
|
|
@@ -64056,12 +63557,12 @@ var init_tasksGetTasks = __esm(() => {
|
|
|
64056
63557
|
});
|
|
64057
63558
|
|
|
64058
63559
|
// src/mcp-server/tools/tasksGetTasks.ts
|
|
64059
|
-
var
|
|
63560
|
+
var args130, tool$tasksGetTasks;
|
|
64060
63561
|
var init_tasksGetTasks2 = __esm(() => {
|
|
64061
63562
|
init_tasksGetTasks();
|
|
64062
63563
|
init_operations();
|
|
64063
63564
|
init_tools();
|
|
64064
|
-
|
|
63565
|
+
args130 = {
|
|
64065
63566
|
request: GetTasksRequest$inboundSchema
|
|
64066
63567
|
};
|
|
64067
63568
|
tool$tasksGetTasks = {
|
|
@@ -64074,9 +63575,9 @@ var init_tasksGetTasks2 = __esm(() => {
|
|
|
64074
63575
|
This endpoint requires the following OAuth scope **read_tasks**.
|
|
64075
63576
|
|
|
64076
63577
|
`,
|
|
64077
|
-
args:
|
|
64078
|
-
tool: async (client,
|
|
64079
|
-
const [result2, apiCall] = await tasksGetTasks(client,
|
|
63578
|
+
args: args130,
|
|
63579
|
+
tool: async (client, args131, ctx) => {
|
|
63580
|
+
const [result2, apiCall] = await tasksGetTasks(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64080
63581
|
if (!result2.ok) {
|
|
64081
63582
|
return {
|
|
64082
63583
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64091,9 +63592,9 @@ This endpoint requires the following OAuth scope **read_tasks**.
|
|
|
64091
63592
|
|
|
64092
63593
|
// src/funcs/tasksListTasks.ts
|
|
64093
63594
|
function tasksListTasks(client, options) {
|
|
64094
|
-
return new APIPromise($
|
|
63595
|
+
return new APIPromise($do163(client, options));
|
|
64095
63596
|
}
|
|
64096
|
-
async function $
|
|
63597
|
+
async function $do163(client, options) {
|
|
64097
63598
|
const path = pathToFunc("/task.json")();
|
|
64098
63599
|
const headers = new Headers(compactMap({
|
|
64099
63600
|
Accept: "application/json"
|
|
@@ -64197,9 +63698,9 @@ This endpoint requires the following OAuth scope **read_tasks**.
|
|
|
64197
63698
|
|
|
64198
63699
|
// src/funcs/tasksUpdateTasks.ts
|
|
64199
63700
|
function tasksUpdateTasks(client, request, options) {
|
|
64200
|
-
return new APIPromise($
|
|
63701
|
+
return new APIPromise($do164(client, request, options));
|
|
64201
63702
|
}
|
|
64202
|
-
async function $
|
|
63703
|
+
async function $do164(client, request, options) {
|
|
64203
63704
|
const parsed = safeParse(request, (value) => UpdateTasksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64204
63705
|
if (!parsed.ok) {
|
|
64205
63706
|
return [parsed, { status: "invalid" }];
|
|
@@ -64285,12 +63786,12 @@ var init_tasksUpdateTasks = __esm(() => {
|
|
|
64285
63786
|
});
|
|
64286
63787
|
|
|
64287
63788
|
// src/mcp-server/tools/tasksUpdateTasks.ts
|
|
64288
|
-
var
|
|
63789
|
+
var args131, tool$tasksUpdateTasks;
|
|
64289
63790
|
var init_tasksUpdateTasks2 = __esm(() => {
|
|
64290
63791
|
init_tasksUpdateTasks();
|
|
64291
63792
|
init_operations();
|
|
64292
63793
|
init_tools();
|
|
64293
|
-
|
|
63794
|
+
args131 = {
|
|
64294
63795
|
request: UpdateTasksRequest$inboundSchema
|
|
64295
63796
|
};
|
|
64296
63797
|
tool$tasksUpdateTasks = {
|
|
@@ -64303,9 +63804,9 @@ var init_tasksUpdateTasks2 = __esm(() => {
|
|
|
64303
63804
|
This endpoint requires the following OAuth scope **manage_tasks**.
|
|
64304
63805
|
|
|
64305
63806
|
`,
|
|
64306
|
-
args:
|
|
64307
|
-
tool: async (client,
|
|
64308
|
-
const [result2, apiCall] = await tasksUpdateTasks(client,
|
|
63807
|
+
args: args131,
|
|
63808
|
+
tool: async (client, args132, ctx) => {
|
|
63809
|
+
const [result2, apiCall] = await tasksUpdateTasks(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64309
63810
|
if (!result2.ok) {
|
|
64310
63811
|
return {
|
|
64311
63812
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64320,9 +63821,9 @@ This endpoint requires the following OAuth scope **manage_tasks**.
|
|
|
64320
63821
|
|
|
64321
63822
|
// src/funcs/taxRatesCreateTaxRates.ts
|
|
64322
63823
|
function taxRatesCreateTaxRates(client, request, options) {
|
|
64323
|
-
return new APIPromise($
|
|
63824
|
+
return new APIPromise($do165(client, request, options));
|
|
64324
63825
|
}
|
|
64325
|
-
async function $
|
|
63826
|
+
async function $do165(client, request, options) {
|
|
64326
63827
|
const parsed = safeParse(request, (value) => TaxRateInput$outboundSchema.parse(value), "Input validation failed");
|
|
64327
63828
|
if (!parsed.ok) {
|
|
64328
63829
|
return [parsed, { status: "invalid" }];
|
|
@@ -64405,12 +63906,12 @@ var init_taxRatesCreateTaxRates = __esm(() => {
|
|
|
64405
63906
|
});
|
|
64406
63907
|
|
|
64407
63908
|
// src/mcp-server/tools/taxRatesCreateTaxRates.ts
|
|
64408
|
-
var
|
|
63909
|
+
var args132, tool$taxRatesCreateTaxRates;
|
|
64409
63910
|
var init_taxRatesCreateTaxRates2 = __esm(() => {
|
|
64410
63911
|
init_taxRatesCreateTaxRates();
|
|
64411
63912
|
init_components();
|
|
64412
63913
|
init_tools();
|
|
64413
|
-
|
|
63914
|
+
args132 = {
|
|
64414
63915
|
request: TaxRateInput$inboundSchema
|
|
64415
63916
|
};
|
|
64416
63917
|
tool$taxRatesCreateTaxRates = {
|
|
@@ -64428,9 +63929,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
64428
63929
|
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.
|
|
64429
63930
|
|
|
64430
63931
|
`,
|
|
64431
|
-
args:
|
|
64432
|
-
tool: async (client,
|
|
64433
|
-
const [result2, apiCall] = await taxRatesCreateTaxRates(client,
|
|
63932
|
+
args: args132,
|
|
63933
|
+
tool: async (client, args133, ctx) => {
|
|
63934
|
+
const [result2, apiCall] = await taxRatesCreateTaxRates(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64434
63935
|
if (!result2.ok) {
|
|
64435
63936
|
return {
|
|
64436
63937
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64445,9 +63946,9 @@ UUID is optional for record creation. If no UUID is supplied, a UUID will be aut
|
|
|
64445
63946
|
|
|
64446
63947
|
// src/funcs/taxRatesDeleteTaxRates.ts
|
|
64447
63948
|
function taxRatesDeleteTaxRates(client, request, options) {
|
|
64448
|
-
return new APIPromise($
|
|
63949
|
+
return new APIPromise($do166(client, request, options));
|
|
64449
63950
|
}
|
|
64450
|
-
async function $
|
|
63951
|
+
async function $do166(client, request, options) {
|
|
64451
63952
|
const parsed = safeParse(request, (value) => DeleteTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64452
63953
|
if (!parsed.ok) {
|
|
64453
63954
|
return [parsed, { status: "invalid" }];
|
|
@@ -64532,12 +64033,12 @@ var init_taxRatesDeleteTaxRates = __esm(() => {
|
|
|
64532
64033
|
});
|
|
64533
64034
|
|
|
64534
64035
|
// src/mcp-server/tools/taxRatesDeleteTaxRates.ts
|
|
64535
|
-
var
|
|
64036
|
+
var args133, tool$taxRatesDeleteTaxRates;
|
|
64536
64037
|
var init_taxRatesDeleteTaxRates2 = __esm(() => {
|
|
64537
64038
|
init_taxRatesDeleteTaxRates();
|
|
64538
64039
|
init_operations();
|
|
64539
64040
|
init_tools();
|
|
64540
|
-
|
|
64041
|
+
args133 = {
|
|
64541
64042
|
request: DeleteTaxRatesRequest$inboundSchema
|
|
64542
64043
|
};
|
|
64543
64044
|
tool$taxRatesDeleteTaxRates = {
|
|
@@ -64554,9 +64055,9 @@ In ServiceM8, deleting a record sets its \`active\` field to \`0\`. Inactive rec
|
|
|
64554
64055
|
This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
64555
64056
|
|
|
64556
64057
|
`,
|
|
64557
|
-
args:
|
|
64558
|
-
tool: async (client,
|
|
64559
|
-
const [result2, apiCall] = await taxRatesDeleteTaxRates(client,
|
|
64058
|
+
args: args133,
|
|
64059
|
+
tool: async (client, args134, ctx) => {
|
|
64060
|
+
const [result2, apiCall] = await taxRatesDeleteTaxRates(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64560
64061
|
if (!result2.ok) {
|
|
64561
64062
|
return {
|
|
64562
64063
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64571,9 +64072,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
64571
64072
|
|
|
64572
64073
|
// src/funcs/taxRatesGetTaxRates.ts
|
|
64573
64074
|
function taxRatesGetTaxRates(client, request, options) {
|
|
64574
|
-
return new APIPromise($
|
|
64075
|
+
return new APIPromise($do167(client, request, options));
|
|
64575
64076
|
}
|
|
64576
|
-
async function $
|
|
64077
|
+
async function $do167(client, request, options) {
|
|
64577
64078
|
const parsed = safeParse(request, (value) => GetTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64578
64079
|
if (!parsed.ok) {
|
|
64579
64080
|
return [parsed, { status: "invalid" }];
|
|
@@ -64658,12 +64159,12 @@ var init_taxRatesGetTaxRates = __esm(() => {
|
|
|
64658
64159
|
});
|
|
64659
64160
|
|
|
64660
64161
|
// src/mcp-server/tools/taxRatesGetTaxRates.ts
|
|
64661
|
-
var
|
|
64162
|
+
var args134, tool$taxRatesGetTaxRates;
|
|
64662
64163
|
var init_taxRatesGetTaxRates2 = __esm(() => {
|
|
64663
64164
|
init_taxRatesGetTaxRates();
|
|
64664
64165
|
init_operations();
|
|
64665
64166
|
init_tools();
|
|
64666
|
-
|
|
64167
|
+
args134 = {
|
|
64667
64168
|
request: GetTaxRatesRequest$inboundSchema
|
|
64668
64169
|
};
|
|
64669
64170
|
tool$taxRatesGetTaxRates = {
|
|
@@ -64676,9 +64177,9 @@ var init_taxRatesGetTaxRates2 = __esm(() => {
|
|
|
64676
64177
|
This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
64677
64178
|
|
|
64678
64179
|
`,
|
|
64679
|
-
args:
|
|
64680
|
-
tool: async (client,
|
|
64681
|
-
const [result2, apiCall] = await taxRatesGetTaxRates(client,
|
|
64180
|
+
args: args134,
|
|
64181
|
+
tool: async (client, args135, ctx) => {
|
|
64182
|
+
const [result2, apiCall] = await taxRatesGetTaxRates(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64682
64183
|
if (!result2.ok) {
|
|
64683
64184
|
return {
|
|
64684
64185
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64693,9 +64194,9 @@ This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
|
64693
64194
|
|
|
64694
64195
|
// src/funcs/taxRatesListTaxRates.ts
|
|
64695
64196
|
function taxRatesListTaxRates(client, options) {
|
|
64696
|
-
return new APIPromise($
|
|
64197
|
+
return new APIPromise($do168(client, options));
|
|
64697
64198
|
}
|
|
64698
|
-
async function $
|
|
64199
|
+
async function $do168(client, options) {
|
|
64699
64200
|
const path = pathToFunc("/taxrate.json")();
|
|
64700
64201
|
const headers = new Headers(compactMap({
|
|
64701
64202
|
Accept: "application/json"
|
|
@@ -64799,9 +64300,9 @@ This endpoint requires the following OAuth scope **read_tax_rates**.
|
|
|
64799
64300
|
|
|
64800
64301
|
// src/funcs/taxRatesUpdateTaxRates.ts
|
|
64801
64302
|
function taxRatesUpdateTaxRates(client, request, options) {
|
|
64802
|
-
return new APIPromise($
|
|
64303
|
+
return new APIPromise($do169(client, request, options));
|
|
64803
64304
|
}
|
|
64804
|
-
async function $
|
|
64305
|
+
async function $do169(client, request, options) {
|
|
64805
64306
|
const parsed = safeParse(request, (value) => UpdateTaxRatesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64806
64307
|
if (!parsed.ok) {
|
|
64807
64308
|
return [parsed, { status: "invalid" }];
|
|
@@ -64887,12 +64388,12 @@ var init_taxRatesUpdateTaxRates = __esm(() => {
|
|
|
64887
64388
|
});
|
|
64888
64389
|
|
|
64889
64390
|
// src/mcp-server/tools/taxRatesUpdateTaxRates.ts
|
|
64890
|
-
var
|
|
64391
|
+
var args135, tool$taxRatesUpdateTaxRates;
|
|
64891
64392
|
var init_taxRatesUpdateTaxRates2 = __esm(() => {
|
|
64892
64393
|
init_taxRatesUpdateTaxRates();
|
|
64893
64394
|
init_operations();
|
|
64894
64395
|
init_tools();
|
|
64895
|
-
|
|
64396
|
+
args135 = {
|
|
64896
64397
|
request: UpdateTaxRatesRequest$inboundSchema
|
|
64897
64398
|
};
|
|
64898
64399
|
tool$taxRatesUpdateTaxRates = {
|
|
@@ -64905,9 +64406,9 @@ var init_taxRatesUpdateTaxRates2 = __esm(() => {
|
|
|
64905
64406
|
This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
64906
64407
|
|
|
64907
64408
|
`,
|
|
64908
|
-
args:
|
|
64909
|
-
tool: async (client,
|
|
64910
|
-
const [result2, apiCall] = await taxRatesUpdateTaxRates(client,
|
|
64409
|
+
args: args135,
|
|
64410
|
+
tool: async (client, args136, ctx) => {
|
|
64411
|
+
const [result2, apiCall] = await taxRatesUpdateTaxRates(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
64911
64412
|
if (!result2.ok) {
|
|
64912
64413
|
return {
|
|
64913
64414
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -64922,9 +64423,9 @@ This endpoint requires the following OAuth scope **manage_tax_rates**.
|
|
|
64922
64423
|
|
|
64923
64424
|
// src/funcs/vendorsGetVendors.ts
|
|
64924
64425
|
function vendorsGetVendors(client, request, options) {
|
|
64925
|
-
return new APIPromise($
|
|
64426
|
+
return new APIPromise($do170(client, request, options));
|
|
64926
64427
|
}
|
|
64927
|
-
async function $
|
|
64428
|
+
async function $do170(client, request, options) {
|
|
64928
64429
|
const parsed = safeParse(request, (value) => GetVendorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
64929
64430
|
if (!parsed.ok) {
|
|
64930
64431
|
return [parsed, { status: "invalid" }];
|
|
@@ -65009,12 +64510,12 @@ var init_vendorsGetVendors = __esm(() => {
|
|
|
65009
64510
|
});
|
|
65010
64511
|
|
|
65011
64512
|
// src/mcp-server/tools/vendorsGetVendors.ts
|
|
65012
|
-
var
|
|
64513
|
+
var args136, tool$vendorsGetVendors;
|
|
65013
64514
|
var init_vendorsGetVendors2 = __esm(() => {
|
|
65014
64515
|
init_vendorsGetVendors();
|
|
65015
64516
|
init_operations();
|
|
65016
64517
|
init_tools();
|
|
65017
|
-
|
|
64518
|
+
args136 = {
|
|
65018
64519
|
request: GetVendorsRequest$inboundSchema
|
|
65019
64520
|
};
|
|
65020
64521
|
tool$vendorsGetVendors = {
|
|
@@ -65029,9 +64530,9 @@ Vendor account information
|
|
|
65029
64530
|
This endpoint requires the following OAuth scope **vendor**.
|
|
65030
64531
|
|
|
65031
64532
|
`,
|
|
65032
|
-
args:
|
|
65033
|
-
tool: async (client,
|
|
65034
|
-
const [result2, apiCall] = await vendorsGetVendors(client,
|
|
64533
|
+
args: args136,
|
|
64534
|
+
tool: async (client, args137, ctx) => {
|
|
64535
|
+
const [result2, apiCall] = await vendorsGetVendors(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
65035
64536
|
if (!result2.ok) {
|
|
65036
64537
|
return {
|
|
65037
64538
|
content: [{ type: "text", text: result2.error.message }],
|
|
@@ -65046,9 +64547,9 @@ This endpoint requires the following OAuth scope **vendor**.
|
|
|
65046
64547
|
|
|
65047
64548
|
// src/funcs/vendorsListVendors.ts
|
|
65048
64549
|
function vendorsListVendors(client, options) {
|
|
65049
|
-
return new APIPromise($
|
|
64550
|
+
return new APIPromise($do171(client, options));
|
|
65050
64551
|
}
|
|
65051
|
-
async function $
|
|
64552
|
+
async function $do171(client, options) {
|
|
65052
64553
|
const path = pathToFunc("/vendor.json")();
|
|
65053
64554
|
const headers = new Headers(compactMap({
|
|
65054
64555
|
Accept: "application/json"
|
|
@@ -65156,7 +64657,7 @@ This endpoint requires the following OAuth scope **vendor**.
|
|
|
65156
64657
|
function createMCPServer(deps) {
|
|
65157
64658
|
const server = new McpServer({
|
|
65158
64659
|
name: "ServiceM8",
|
|
65159
|
-
version: "0.9.
|
|
64660
|
+
version: "0.9.43"
|
|
65160
64661
|
});
|
|
65161
64662
|
const client = new ServiceM8Core({
|
|
65162
64663
|
security: deps.security,
|
|
@@ -65317,10 +64818,7 @@ function createMCPServer(deps) {
|
|
|
65317
64818
|
tool(tool$staffMembersUpdateStaffMembers);
|
|
65318
64819
|
tool(tool$staffMembersDeleteStaffMembers);
|
|
65319
64820
|
tool(tool$staffMessagesListStaffMessages);
|
|
65320
|
-
tool(tool$staffMessagesCreateStaffMessages);
|
|
65321
64821
|
tool(tool$staffMessagesGetStaffMessages);
|
|
65322
|
-
tool(tool$staffMessagesUpdateStaffMessages);
|
|
65323
|
-
tool(tool$staffMessagesDeleteStaffMessages);
|
|
65324
64822
|
tool(tool$tasksListTasks);
|
|
65325
64823
|
tool(tool$tasksCreateTasks);
|
|
65326
64824
|
tool(tool$tasksGetTasks);
|
|
@@ -65508,11 +65006,8 @@ var init_server2 = __esm(() => {
|
|
|
65508
65006
|
init_staffMembersGetStaffMembers2();
|
|
65509
65007
|
init_staffMembersListStaffMembers2();
|
|
65510
65008
|
init_staffMembersUpdateStaffMembers2();
|
|
65511
|
-
init_staffMessagesCreateStaffMessages2();
|
|
65512
|
-
init_staffMessagesDeleteStaffMessages2();
|
|
65513
65009
|
init_staffMessagesGetStaffMessages2();
|
|
65514
65010
|
init_staffMessagesListStaffMessages2();
|
|
65515
|
-
init_staffMessagesUpdateStaffMessages2();
|
|
65516
65011
|
init_tasksCreateTasks2();
|
|
65517
65012
|
init_tasksDeleteTasks2();
|
|
65518
65013
|
init_tasksGetTasks2();
|
|
@@ -66707,7 +66202,7 @@ var routes = an({
|
|
|
66707
66202
|
var app = He(routes, {
|
|
66708
66203
|
name: "mcp",
|
|
66709
66204
|
versionInfo: {
|
|
66710
|
-
currentVersion: "0.9.
|
|
66205
|
+
currentVersion: "0.9.43"
|
|
66711
66206
|
}
|
|
66712
66207
|
});
|
|
66713
66208
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -66715,5 +66210,5 @@ export {
|
|
|
66715
66210
|
app
|
|
66716
66211
|
};
|
|
66717
66212
|
|
|
66718
|
-
//# debugId=
|
|
66213
|
+
//# debugId=E2B0BE63F013AE3D64756E2164756E21
|
|
66719
66214
|
//# sourceMappingURL=mcp-server.js.map
|