servicem8 0.9.44 → 0.9.46

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.
Files changed (63) hide show
  1. package/api.json +516 -512
  2. package/bin/mcp-server.js +22 -14
  3. package/bin/mcp-server.js.map +7 -7
  4. package/dist/commonjs/lib/config.d.ts +3 -3
  5. package/dist/commonjs/lib/config.js +3 -3
  6. package/dist/commonjs/lib/config.js.map +1 -1
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/models/components/knowledgearticle.d.ts +4 -4
  10. package/dist/commonjs/models/components/staff.d.ts +4 -0
  11. package/dist/commonjs/models/components/staff.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/staff.js +8 -0
  13. package/dist/commonjs/models/components/staff.js.map +1 -1
  14. package/dist/esm/lib/config.d.ts +3 -3
  15. package/dist/esm/lib/config.js +3 -3
  16. package/dist/esm/lib/config.js.map +1 -1
  17. package/dist/esm/mcp-server/mcp-server.js +1 -1
  18. package/dist/esm/mcp-server/server.js +1 -1
  19. package/dist/esm/models/components/knowledgearticle.d.ts +4 -4
  20. package/dist/esm/models/components/staff.d.ts +4 -0
  21. package/dist/esm/models/components/staff.d.ts.map +1 -1
  22. package/dist/esm/models/components/staff.js +8 -0
  23. package/dist/esm/models/components/staff.js.map +1 -1
  24. package/docs/sdks/allocationwindows/README.md +4 -4
  25. package/docs/sdks/assets/README.md +8 -8
  26. package/docs/sdks/assettypefields/README.md +8 -8
  27. package/docs/sdks/assettypes/README.md +4 -4
  28. package/docs/sdks/badges/README.md +12 -12
  29. package/docs/sdks/bundles/README.md +4 -4
  30. package/docs/sdks/categories/README.md +4 -4
  31. package/docs/sdks/clients/README.md +8 -8
  32. package/docs/sdks/companycontacts/README.md +8 -8
  33. package/docs/sdks/documenttemplates/README.md +4 -4
  34. package/docs/sdks/emailtemplates/README.md +4 -4
  35. package/docs/sdks/feedback/README.md +8 -8
  36. package/docs/sdks/formfields/README.md +8 -8
  37. package/docs/sdks/formresponses/README.md +32 -32
  38. package/docs/sdks/forms/README.md +8 -8
  39. package/docs/sdks/jobactivities/README.md +36 -36
  40. package/docs/sdks/joballocations/README.md +48 -48
  41. package/docs/sdks/jobchecklists/README.md +40 -40
  42. package/docs/sdks/jobcontacts/README.md +8 -8
  43. package/docs/sdks/jobmaterialbundles/README.md +12 -12
  44. package/docs/sdks/jobmaterials/README.md +20 -20
  45. package/docs/sdks/jobpayments/README.md +20 -20
  46. package/docs/sdks/jobqueues/README.md +4 -4
  47. package/docs/sdks/jobs/README.md +76 -76
  48. package/docs/sdks/knowledgearticles/README.md +4 -4
  49. package/docs/sdks/locations/README.md +4 -4
  50. package/docs/sdks/materials/README.md +8 -8
  51. package/docs/sdks/smstemplates/README.md +4 -4
  52. package/docs/sdks/staffmembers/README.md +32 -28
  53. package/docs/sdks/staffmessages/README.md +28 -28
  54. package/docs/sdks/tasks/README.md +28 -28
  55. package/docs/sdks/taxrates/README.md +4 -4
  56. package/examples/package-lock.json +1 -1
  57. package/jsr.json +1 -1
  58. package/package.json +1 -1
  59. package/src/lib/config.ts +3 -3
  60. package/src/mcp-server/mcp-server.ts +1 -1
  61. package/src/mcp-server/server.ts +1 -1
  62. package/src/models/components/knowledgearticle.ts +4 -4
  63. package/src/models/components/staff.ts +12 -0
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "servicem8",
21
- "version": "0.9.44",
21
+ "version": "0.9.46",
22
22
  "dependencies": {
23
23
  "zod": "^3.20.0"
24
24
  },
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "servicem8",
5
- "version": "0.9.44",
5
+ "version": "0.9.46",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "servicem8",
3
- "version": "0.9.44",
3
+ "version": "0.9.46",
4
4
  "author": "ServiceM8",
5
5
  "type": "module",
6
6
  "bin": {
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.0.0",
68
- sdkVersion: "0.9.44",
69
- genVersion: "2.687.1",
70
- userAgent: "speakeasy-sdk/typescript 0.9.44 2.687.1 1.0.0 servicem8",
68
+ sdkVersion: "0.9.46",
69
+ genVersion: "2.687.13",
70
+ userAgent: "speakeasy-sdk/typescript 0.9.46 2.687.13 1.0.0 servicem8",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.9.44",
22
+ currentVersion: "0.9.46",
23
23
  },
24
24
  });
25
25
 
@@ -202,7 +202,7 @@ export function createMCPServer(deps: {
202
202
  }) {
203
203
  const server = new McpServer({
204
204
  name: "ServiceM8",
205
- version: "0.9.44",
205
+ version: "0.9.46",
206
206
  });
207
207
 
208
208
  const client = new ServiceM8Core({
@@ -52,11 +52,11 @@ export type KnowledgeArticle = {
52
52
  */
53
53
  name: string;
54
54
  /**
55
- * The main content of the knowledge article. For 'richtext' articles, this contains HTML formatted text. For 'video' articles, this may contain supplementary information. For 'call' articles, this contains call details. Supports extended text length.
55
+ * The main content of the knowledge article. For 'richtext' and 'pdf' articles, this contains HTML formatted text. For 'video' articles, this may contain supplementary information. For 'call' articles, this contains call details. Supports extended text length.
56
56
  */
57
57
  content?: string | undefined;
58
58
  /**
59
- * Type of knowledge article. Valid values are 'video', 'richtext', or 'call'. This determines how the article content is presented and processed in the system.
59
+ * Type of knowledge article. Valid values are 'video', 'richtext', 'pdf', or 'call'. This determines how the article content is presented and processed in the system.
60
60
  */
61
61
  articleType?: string | undefined;
62
62
  /**
@@ -83,11 +83,11 @@ export type KnowledgeArticleInput = {
83
83
  */
84
84
  name: string;
85
85
  /**
86
- * The main content of the knowledge article. For 'richtext' articles, this contains HTML formatted text. For 'video' articles, this may contain supplementary information. For 'call' articles, this contains call details. Supports extended text length.
86
+ * The main content of the knowledge article. For 'richtext' and 'pdf' articles, this contains HTML formatted text. For 'video' articles, this may contain supplementary information. For 'call' articles, this contains call details. Supports extended text length.
87
87
  */
88
88
  content?: string | undefined;
89
89
  /**
90
- * Type of knowledge article. Valid values are 'video', 'richtext', or 'call'. This determines how the article content is presented and processed in the system.
90
+ * Type of knowledge article. Valid values are 'video', 'richtext', 'pdf', or 'call'. This determines how the article content is presented and processed in the system.
91
91
  */
92
92
  articleType?: string | undefined;
93
93
  /**
@@ -115,6 +115,7 @@ export type Staff = {
115
115
  */
116
116
  editDate?: any | undefined;
117
117
  canReceivePushNotification?: string | undefined;
118
+ labourMaterialUuid?: string | undefined;
118
119
  };
119
120
 
120
121
  export type StaffInput = {
@@ -195,6 +196,7 @@ export type StaffInput = {
195
196
  */
196
197
  active?: StaffActive | undefined;
197
198
  canReceivePushNotification?: string | undefined;
199
+ labourMaterialUuid?: string | undefined;
198
200
  };
199
201
 
200
202
  /** @internal */
@@ -261,6 +263,7 @@ export const Staff$inboundSchema: z.ZodType<Staff, z.ZodTypeDef, unknown> = z
261
263
  active: StaffActive$inboundSchema.default(1),
262
264
  edit_date: z.any().optional(),
263
265
  can_receive_push_notification: z.string().optional(),
266
+ labour_material_uuid: z.string().optional(),
264
267
  }).transform((v) => {
265
268
  return remap$(v, {
266
269
  "geo_timestamp": "geoTimestamp",
@@ -275,6 +278,7 @@ export const Staff$inboundSchema: z.ZodType<Staff, z.ZodTypeDef, unknown> = z
275
278
  "security_role_uuid": "securityRoleUuid",
276
279
  "edit_date": "editDate",
277
280
  "can_receive_push_notification": "canReceivePushNotification",
281
+ "labour_material_uuid": "labourMaterialUuid",
278
282
  });
279
283
  });
280
284
 
@@ -301,6 +305,7 @@ export type Staff$Outbound = {
301
305
  active: number;
302
306
  edit_date?: any | undefined;
303
307
  can_receive_push_notification?: string | undefined;
308
+ labour_material_uuid?: string | undefined;
304
309
  };
305
310
 
306
311
  /** @internal */
@@ -330,6 +335,7 @@ export const Staff$outboundSchema: z.ZodType<
330
335
  active: StaffActive$outboundSchema.default(1),
331
336
  editDate: z.any().optional(),
332
337
  canReceivePushNotification: z.string().optional(),
338
+ labourMaterialUuid: z.string().optional(),
333
339
  }).transform((v) => {
334
340
  return remap$(v, {
335
341
  geoTimestamp: "geo_timestamp",
@@ -344,6 +350,7 @@ export const Staff$outboundSchema: z.ZodType<
344
350
  securityRoleUuid: "security_role_uuid",
345
351
  editDate: "edit_date",
346
352
  canReceivePushNotification: "can_receive_push_notification",
353
+ labourMaterialUuid: "labour_material_uuid",
347
354
  });
348
355
  });
349
356
 
@@ -400,6 +407,7 @@ export const StaffInput$inboundSchema: z.ZodType<
400
407
  uuid: z.string().optional(),
401
408
  active: StaffActive$inboundSchema.default(1),
402
409
  can_receive_push_notification: z.string().optional(),
410
+ labour_material_uuid: z.string().optional(),
403
411
  }).transform((v) => {
404
412
  return remap$(v, {
405
413
  "geo_timestamp": "geoTimestamp",
@@ -413,6 +421,7 @@ export const StaffInput$inboundSchema: z.ZodType<
413
421
  "hide_from_schedule": "hideFromSchedule",
414
422
  "security_role_uuid": "securityRoleUuid",
415
423
  "can_receive_push_notification": "canReceivePushNotification",
424
+ "labour_material_uuid": "labourMaterialUuid",
416
425
  });
417
426
  });
418
427
 
@@ -438,6 +447,7 @@ export type StaffInput$Outbound = {
438
447
  uuid?: string | undefined;
439
448
  active: number;
440
449
  can_receive_push_notification?: string | undefined;
450
+ labour_material_uuid?: string | undefined;
441
451
  };
442
452
 
443
453
  /** @internal */
@@ -466,6 +476,7 @@ export const StaffInput$outboundSchema: z.ZodType<
466
476
  uuid: z.string().optional(),
467
477
  active: StaffActive$outboundSchema.default(1),
468
478
  canReceivePushNotification: z.string().optional(),
479
+ labourMaterialUuid: z.string().optional(),
469
480
  }).transform((v) => {
470
481
  return remap$(v, {
471
482
  geoTimestamp: "geo_timestamp",
@@ -479,6 +490,7 @@ export const StaffInput$outboundSchema: z.ZodType<
479
490
  hideFromSchedule: "hide_from_schedule",
480
491
  securityRoleUuid: "security_role_uuid",
481
492
  canReceivePushNotification: "can_receive_push_notification",
493
+ labourMaterialUuid: "labour_material_uuid",
482
494
  });
483
495
  });
484
496