servicem8 0.9.8 → 0.9.10
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/api.json +303 -303
- package/bin/mcp-server.js +6 -6
- package/bin/mcp-server.js.map +4 -4
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/server.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/attachments/README.md +12 -12
- package/docs/sdks/badges/README.md +12 -12
- package/docs/sdks/bundles/README.md +4 -4
- package/docs/sdks/categories/README.md +4 -4
- package/docs/sdks/clients/README.md +8 -8
- package/docs/sdks/companycontacts/README.md +8 -8
- package/docs/sdks/emailtemplates/README.md +4 -4
- package/docs/sdks/feedback/README.md +8 -8
- package/docs/sdks/formfields/README.md +8 -8
- package/docs/sdks/formresponses/README.md +28 -28
- package/docs/sdks/forms/README.md +8 -8
- package/docs/sdks/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/jobtemplates/README.md +4 -4
- package/docs/sdks/knowledgearticles/README.md +4 -4
- package/docs/sdks/locations/README.md +4 -4
- package/docs/sdks/materials/README.md +8 -8
- package/docs/sdks/notes/README.md +12 -12
- package/docs/sdks/securityroles/README.md +4 -4
- package/docs/sdks/smstemplates/README.md +4 -4
- package/docs/sdks/staffmembers/README.md +12 -12
- package/docs/sdks/staffmessages/README.md +16 -16
- package/docs/sdks/tasks/README.md +20 -20
- package/docs/sdks/taxrates/README.md +4 -4
- package/docs/sdks/vendors/README.md +2 -2
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
|
@@ -121,8 +121,8 @@ const serviceM8 = new ServiceM8({
|
|
|
121
121
|
|
|
122
122
|
async function run() {
|
|
123
123
|
const result = await serviceM8.companyContacts.createCompanyContacts({
|
|
124
|
-
uuid: "123e4567-
|
|
125
|
-
companyUuid: "123e4567-
|
|
124
|
+
uuid: "123e4567-a4bd-4030-baca-230a691e2bfb",
|
|
125
|
+
companyUuid: "123e4567-3753-4586-a9e4-230a675344bb",
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
console.log(result);
|
|
@@ -149,8 +149,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
149
149
|
|
|
150
150
|
async function run() {
|
|
151
151
|
const res = await companyContactsCreateCompanyContacts(serviceM8, {
|
|
152
|
-
uuid: "123e4567-
|
|
153
|
-
companyUuid: "123e4567-
|
|
152
|
+
uuid: "123e4567-a4bd-4030-baca-230a691e2bfb",
|
|
153
|
+
companyUuid: "123e4567-3753-4586-a9e4-230a675344bb",
|
|
154
154
|
});
|
|
155
155
|
if (res.ok) {
|
|
156
156
|
const { value: result } = res;
|
|
@@ -289,8 +289,8 @@ async function run() {
|
|
|
289
289
|
const result = await serviceM8.companyContacts.updateCompanyContacts({
|
|
290
290
|
uuid: "14a84f05-390e-4d88-ad00-a75bba477a48",
|
|
291
291
|
companyContact: {
|
|
292
|
-
uuid: "123e4567-
|
|
293
|
-
companyUuid: "123e4567-
|
|
292
|
+
uuid: "123e4567-a4bd-4030-baca-230a691e2bfb",
|
|
293
|
+
companyUuid: "123e4567-3753-4586-a9e4-230a675344bb",
|
|
294
294
|
},
|
|
295
295
|
});
|
|
296
296
|
|
|
@@ -320,8 +320,8 @@ async function run() {
|
|
|
320
320
|
const res = await companyContactsUpdateCompanyContacts(serviceM8, {
|
|
321
321
|
uuid: "14a84f05-390e-4d88-ad00-a75bba477a48",
|
|
322
322
|
companyContact: {
|
|
323
|
-
uuid: "123e4567-
|
|
324
|
-
companyUuid: "123e4567-
|
|
323
|
+
uuid: "123e4567-a4bd-4030-baca-230a691e2bfb",
|
|
324
|
+
companyUuid: "123e4567-3753-4586-a9e4-230a675344bb",
|
|
325
325
|
},
|
|
326
326
|
});
|
|
327
327
|
if (res.ok) {
|
|
@@ -111,7 +111,7 @@ const serviceM8 = new ServiceM8({
|
|
|
111
111
|
|
|
112
112
|
async function run() {
|
|
113
113
|
const result = await serviceM8.emailTemplates.createEmailTemplates({
|
|
114
|
-
uuid: "123e4567-
|
|
114
|
+
uuid: "123e4567-2f02-4e67-b1b9-230a6290ecbb",
|
|
115
115
|
name: "<value>",
|
|
116
116
|
});
|
|
117
117
|
|
|
@@ -139,7 +139,7 @@ const serviceM8 = new ServiceM8Core({
|
|
|
139
139
|
|
|
140
140
|
async function run() {
|
|
141
141
|
const res = await emailTemplatesCreateEmailTemplates(serviceM8, {
|
|
142
|
-
uuid: "123e4567-
|
|
142
|
+
uuid: "123e4567-2f02-4e67-b1b9-230a6290ecbb",
|
|
143
143
|
name: "<value>",
|
|
144
144
|
});
|
|
145
145
|
if (res.ok) {
|
|
@@ -269,7 +269,7 @@ async function run() {
|
|
|
269
269
|
const result = await serviceM8.emailTemplates.updateEmailTemplates({
|
|
270
270
|
uuid: "a3ce5f33-781a-4062-b068-2e3f8605b008",
|
|
271
271
|
emailTemplate: {
|
|
272
|
-
uuid: "123e4567-
|
|
272
|
+
uuid: "123e4567-2f02-4e67-b1b9-230a6290ecbb",
|
|
273
273
|
name: "<value>",
|
|
274
274
|
},
|
|
275
275
|
});
|
|
@@ -300,7 +300,7 @@ async function run() {
|
|
|
300
300
|
const res = await emailTemplatesUpdateEmailTemplates(serviceM8, {
|
|
301
301
|
uuid: "a3ce5f33-781a-4062-b068-2e3f8605b008",
|
|
302
302
|
emailTemplate: {
|
|
303
|
-
uuid: "123e4567-
|
|
303
|
+
uuid: "123e4567-2f02-4e67-b1b9-230a6290ecbb",
|
|
304
304
|
name: "<value>",
|
|
305
305
|
},
|
|
306
306
|
});
|
|
@@ -111,8 +111,8 @@ const serviceM8 = new ServiceM8({
|
|
|
111
111
|
|
|
112
112
|
async function run() {
|
|
113
113
|
const result = await serviceM8.feedback.createFeedback({
|
|
114
|
-
uuid: "123e4567-
|
|
115
|
-
relatedObjectUuid: "123e4567-
|
|
114
|
+
uuid: "123e4567-a277-491b-8151-230a62cb98db",
|
|
115
|
+
relatedObjectUuid: "123e4567-89e3-4417-a034-230a6fba7fab",
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
console.log(result);
|
|
@@ -139,8 +139,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
139
139
|
|
|
140
140
|
async function run() {
|
|
141
141
|
const res = await feedbackCreateFeedback(serviceM8, {
|
|
142
|
-
uuid: "123e4567-
|
|
143
|
-
relatedObjectUuid: "123e4567-
|
|
142
|
+
uuid: "123e4567-a277-491b-8151-230a62cb98db",
|
|
143
|
+
relatedObjectUuid: "123e4567-89e3-4417-a034-230a6fba7fab",
|
|
144
144
|
});
|
|
145
145
|
if (res.ok) {
|
|
146
146
|
const { value: result } = res;
|
|
@@ -269,8 +269,8 @@ async function run() {
|
|
|
269
269
|
const result = await serviceM8.feedback.updateFeedback({
|
|
270
270
|
uuid: "4b9b8627-caa7-402a-94b0-02cb8641823c",
|
|
271
271
|
feedback: {
|
|
272
|
-
uuid: "123e4567-
|
|
273
|
-
relatedObjectUuid: "123e4567-
|
|
272
|
+
uuid: "123e4567-a277-491b-8151-230a62cb98db",
|
|
273
|
+
relatedObjectUuid: "123e4567-89e3-4417-a034-230a6fba7fab",
|
|
274
274
|
},
|
|
275
275
|
});
|
|
276
276
|
|
|
@@ -300,8 +300,8 @@ async function run() {
|
|
|
300
300
|
const res = await feedbackUpdateFeedback(serviceM8, {
|
|
301
301
|
uuid: "4b9b8627-caa7-402a-94b0-02cb8641823c",
|
|
302
302
|
feedback: {
|
|
303
|
-
uuid: "123e4567-
|
|
304
|
-
relatedObjectUuid: "123e4567-
|
|
303
|
+
uuid: "123e4567-a277-491b-8151-230a62cb98db",
|
|
304
|
+
relatedObjectUuid: "123e4567-89e3-4417-a034-230a6fba7fab",
|
|
305
305
|
},
|
|
306
306
|
});
|
|
307
307
|
if (res.ok) {
|
|
@@ -111,8 +111,8 @@ const serviceM8 = new ServiceM8({
|
|
|
111
111
|
|
|
112
112
|
async function run() {
|
|
113
113
|
const result = await serviceM8.formFields.createFormFields({
|
|
114
|
-
uuid: "123e4567-
|
|
115
|
-
formUuid: "123e4567-
|
|
114
|
+
uuid: "123e4567-f09a-4ca8-9834-230a6bce376b",
|
|
115
|
+
formUuid: "123e4567-41e1-408a-92d9-230a67e897eb",
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
console.log(result);
|
|
@@ -139,8 +139,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
139
139
|
|
|
140
140
|
async function run() {
|
|
141
141
|
const res = await formFieldsCreateFormFields(serviceM8, {
|
|
142
|
-
uuid: "123e4567-
|
|
143
|
-
formUuid: "123e4567-
|
|
142
|
+
uuid: "123e4567-f09a-4ca8-9834-230a6bce376b",
|
|
143
|
+
formUuid: "123e4567-41e1-408a-92d9-230a67e897eb",
|
|
144
144
|
});
|
|
145
145
|
if (res.ok) {
|
|
146
146
|
const { value: result } = res;
|
|
@@ -269,8 +269,8 @@ async function run() {
|
|
|
269
269
|
const result = await serviceM8.formFields.updateFormFields({
|
|
270
270
|
uuid: "21a23c6a-1fd9-4be5-84ed-065250f0e6a3",
|
|
271
271
|
formField: {
|
|
272
|
-
uuid: "123e4567-
|
|
273
|
-
formUuid: "123e4567-
|
|
272
|
+
uuid: "123e4567-f09a-4ca8-9834-230a6bce376b",
|
|
273
|
+
formUuid: "123e4567-41e1-408a-92d9-230a67e897eb",
|
|
274
274
|
},
|
|
275
275
|
});
|
|
276
276
|
|
|
@@ -300,8 +300,8 @@ async function run() {
|
|
|
300
300
|
const res = await formFieldsUpdateFormFields(serviceM8, {
|
|
301
301
|
uuid: "21a23c6a-1fd9-4be5-84ed-065250f0e6a3",
|
|
302
302
|
formField: {
|
|
303
|
-
uuid: "123e4567-
|
|
304
|
-
formUuid: "123e4567-
|
|
303
|
+
uuid: "123e4567-f09a-4ca8-9834-230a6bce376b",
|
|
304
|
+
formUuid: "123e4567-41e1-408a-92d9-230a67e897eb",
|
|
305
305
|
},
|
|
306
306
|
});
|
|
307
307
|
if (res.ok) {
|
|
@@ -111,14 +111,14 @@ const serviceM8 = new ServiceM8({
|
|
|
111
111
|
|
|
112
112
|
async function run() {
|
|
113
113
|
const result = await serviceM8.formResponses.createFormResponses({
|
|
114
|
-
uuid: "123e4567-
|
|
115
|
-
formUuid: "123e4567-
|
|
116
|
-
staffUuid: "123e4567-
|
|
117
|
-
regardingObjectUuid: "123e4567-
|
|
114
|
+
uuid: "123e4567-ea25-48c3-b77a-230a6b97fd6b",
|
|
115
|
+
formUuid: "123e4567-3b18-473a-916d-230a66849b3b",
|
|
116
|
+
staffUuid: "123e4567-26d4-4394-8dc2-230a625f51db",
|
|
117
|
+
regardingObjectUuid: "123e4567-e396-4d97-9986-230a6ae7147b",
|
|
118
118
|
timestamp: "2025-07-01 12:00:00",
|
|
119
|
-
formByStaffUuid: "123e4567-
|
|
120
|
-
documentAttachmentUuid: "123e4567-
|
|
121
|
-
assetUuid: "123e4567-
|
|
119
|
+
formByStaffUuid: "123e4567-f556-45a5-83e2-230a6c3cf0fb",
|
|
120
|
+
documentAttachmentUuid: "123e4567-1a1d-46ba-913c-230a6e89e1eb",
|
|
121
|
+
assetUuid: "123e4567-746b-4270-bf4a-230a6a2b0adb",
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
console.log(result);
|
|
@@ -145,14 +145,14 @@ const serviceM8 = new ServiceM8Core({
|
|
|
145
145
|
|
|
146
146
|
async function run() {
|
|
147
147
|
const res = await formResponsesCreateFormResponses(serviceM8, {
|
|
148
|
-
uuid: "123e4567-
|
|
149
|
-
formUuid: "123e4567-
|
|
150
|
-
staffUuid: "123e4567-
|
|
151
|
-
regardingObjectUuid: "123e4567-
|
|
148
|
+
uuid: "123e4567-ea25-48c3-b77a-230a6b97fd6b",
|
|
149
|
+
formUuid: "123e4567-3b18-473a-916d-230a66849b3b",
|
|
150
|
+
staffUuid: "123e4567-26d4-4394-8dc2-230a625f51db",
|
|
151
|
+
regardingObjectUuid: "123e4567-e396-4d97-9986-230a6ae7147b",
|
|
152
152
|
timestamp: "2025-07-01 12:00:00",
|
|
153
|
-
formByStaffUuid: "123e4567-
|
|
154
|
-
documentAttachmentUuid: "123e4567-
|
|
155
|
-
assetUuid: "123e4567-
|
|
153
|
+
formByStaffUuid: "123e4567-f556-45a5-83e2-230a6c3cf0fb",
|
|
154
|
+
documentAttachmentUuid: "123e4567-1a1d-46ba-913c-230a6e89e1eb",
|
|
155
|
+
assetUuid: "123e4567-746b-4270-bf4a-230a6a2b0adb",
|
|
156
156
|
});
|
|
157
157
|
if (res.ok) {
|
|
158
158
|
const { value: result } = res;
|
|
@@ -281,14 +281,14 @@ async function run() {
|
|
|
281
281
|
const result = await serviceM8.formResponses.updateFormResponses({
|
|
282
282
|
uuid: "5f593a3c-772d-4259-856d-86a8df7ae53d",
|
|
283
283
|
formResponse: {
|
|
284
|
-
uuid: "123e4567-
|
|
285
|
-
formUuid: "123e4567-
|
|
286
|
-
staffUuid: "123e4567-
|
|
287
|
-
regardingObjectUuid: "123e4567-
|
|
284
|
+
uuid: "123e4567-ea25-48c3-b77a-230a6b97fd6b",
|
|
285
|
+
formUuid: "123e4567-3b18-473a-916d-230a66849b3b",
|
|
286
|
+
staffUuid: "123e4567-26d4-4394-8dc2-230a625f51db",
|
|
287
|
+
regardingObjectUuid: "123e4567-e396-4d97-9986-230a6ae7147b",
|
|
288
288
|
timestamp: "2025-07-01 12:00:00",
|
|
289
|
-
formByStaffUuid: "123e4567-
|
|
290
|
-
documentAttachmentUuid: "123e4567-
|
|
291
|
-
assetUuid: "123e4567-
|
|
289
|
+
formByStaffUuid: "123e4567-f556-45a5-83e2-230a6c3cf0fb",
|
|
290
|
+
documentAttachmentUuid: "123e4567-1a1d-46ba-913c-230a6e89e1eb",
|
|
291
|
+
assetUuid: "123e4567-746b-4270-bf4a-230a6a2b0adb",
|
|
292
292
|
},
|
|
293
293
|
});
|
|
294
294
|
|
|
@@ -318,14 +318,14 @@ async function run() {
|
|
|
318
318
|
const res = await formResponsesUpdateFormResponses(serviceM8, {
|
|
319
319
|
uuid: "5f593a3c-772d-4259-856d-86a8df7ae53d",
|
|
320
320
|
formResponse: {
|
|
321
|
-
uuid: "123e4567-
|
|
322
|
-
formUuid: "123e4567-
|
|
323
|
-
staffUuid: "123e4567-
|
|
324
|
-
regardingObjectUuid: "123e4567-
|
|
321
|
+
uuid: "123e4567-ea25-48c3-b77a-230a6b97fd6b",
|
|
322
|
+
formUuid: "123e4567-3b18-473a-916d-230a66849b3b",
|
|
323
|
+
staffUuid: "123e4567-26d4-4394-8dc2-230a625f51db",
|
|
324
|
+
regardingObjectUuid: "123e4567-e396-4d97-9986-230a6ae7147b",
|
|
325
325
|
timestamp: "2025-07-01 12:00:00",
|
|
326
|
-
formByStaffUuid: "123e4567-
|
|
327
|
-
documentAttachmentUuid: "123e4567-
|
|
328
|
-
assetUuid: "123e4567-
|
|
326
|
+
formByStaffUuid: "123e4567-f556-45a5-83e2-230a6c3cf0fb",
|
|
327
|
+
documentAttachmentUuid: "123e4567-1a1d-46ba-913c-230a6e89e1eb",
|
|
328
|
+
assetUuid: "123e4567-746b-4270-bf4a-230a6a2b0adb",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
331
331
|
if (res.ok) {
|
|
@@ -111,8 +111,8 @@ const serviceM8 = new ServiceM8({
|
|
|
111
111
|
|
|
112
112
|
async function run() {
|
|
113
113
|
const result = await serviceM8.forms.createForms({
|
|
114
|
-
documentTemplateUuid: "123e4567-
|
|
115
|
-
uuid: "123e4567-
|
|
114
|
+
documentTemplateUuid: "123e4567-60b8-486d-865a-230a642fb6bb",
|
|
115
|
+
uuid: "123e4567-6ec8-47f2-9047-230a63a266cb",
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
console.log(result);
|
|
@@ -139,8 +139,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
139
139
|
|
|
140
140
|
async function run() {
|
|
141
141
|
const res = await formsCreateForms(serviceM8, {
|
|
142
|
-
documentTemplateUuid: "123e4567-
|
|
143
|
-
uuid: "123e4567-
|
|
142
|
+
documentTemplateUuid: "123e4567-60b8-486d-865a-230a642fb6bb",
|
|
143
|
+
uuid: "123e4567-6ec8-47f2-9047-230a63a266cb",
|
|
144
144
|
});
|
|
145
145
|
if (res.ok) {
|
|
146
146
|
const { value: result } = res;
|
|
@@ -269,8 +269,8 @@ async function run() {
|
|
|
269
269
|
const result = await serviceM8.forms.updateForms({
|
|
270
270
|
uuid: "2473c622-cde4-4803-b91a-cd7a656f7e3b",
|
|
271
271
|
form: {
|
|
272
|
-
documentTemplateUuid: "123e4567-
|
|
273
|
-
uuid: "123e4567-
|
|
272
|
+
documentTemplateUuid: "123e4567-60b8-486d-865a-230a642fb6bb",
|
|
273
|
+
uuid: "123e4567-6ec8-47f2-9047-230a63a266cb",
|
|
274
274
|
},
|
|
275
275
|
});
|
|
276
276
|
|
|
@@ -300,8 +300,8 @@ async function run() {
|
|
|
300
300
|
const res = await formsUpdateForms(serviceM8, {
|
|
301
301
|
uuid: "2473c622-cde4-4803-b91a-cd7a656f7e3b",
|
|
302
302
|
form: {
|
|
303
|
-
documentTemplateUuid: "123e4567-
|
|
304
|
-
uuid: "123e4567-
|
|
303
|
+
documentTemplateUuid: "123e4567-60b8-486d-865a-230a642fb6bb",
|
|
304
|
+
uuid: "123e4567-6ec8-47f2-9047-230a63a266cb",
|
|
305
305
|
},
|
|
306
306
|
});
|
|
307
307
|
if (res.ok) {
|
|
@@ -121,15 +121,15 @@ const serviceM8 = new ServiceM8({
|
|
|
121
121
|
|
|
122
122
|
async function run() {
|
|
123
123
|
const result = await serviceM8.jobActivities.createJobActivities({
|
|
124
|
-
uuid: "123e4567-
|
|
125
|
-
jobUuid: "123e4567-
|
|
126
|
-
staffUuid: "123e4567-
|
|
124
|
+
uuid: "123e4567-250c-4d37-8786-230a6f8b726b",
|
|
125
|
+
jobUuid: "123e4567-cae7-47cf-9325-230a6f7c252b",
|
|
126
|
+
staffUuid: "123e4567-557a-4fc6-9a5e-230a627f0a4b",
|
|
127
127
|
startDate: "2025-07-01 12:00:00",
|
|
128
128
|
endDate: "2025-07-01 12:00:00",
|
|
129
129
|
hasBeenOpenedTimestamp: "2025-07-01 12:00:00",
|
|
130
|
-
allocatedByStaffUuid: "123e4567-
|
|
130
|
+
allocatedByStaffUuid: "123e4567-6bfb-41cc-8c8f-230a6a6d86fb",
|
|
131
131
|
allocatedTimestamp: "2025-07-01 12:00:00",
|
|
132
|
-
materialUuid: "123e4567-
|
|
132
|
+
materialUuid: "123e4567-f018-4d7b-8cb4-230a6984392b",
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
console.log(result);
|
|
@@ -156,15 +156,15 @@ const serviceM8 = new ServiceM8Core({
|
|
|
156
156
|
|
|
157
157
|
async function run() {
|
|
158
158
|
const res = await jobActivitiesCreateJobActivities(serviceM8, {
|
|
159
|
-
uuid: "123e4567-
|
|
160
|
-
jobUuid: "123e4567-
|
|
161
|
-
staffUuid: "123e4567-
|
|
159
|
+
uuid: "123e4567-250c-4d37-8786-230a6f8b726b",
|
|
160
|
+
jobUuid: "123e4567-cae7-47cf-9325-230a6f7c252b",
|
|
161
|
+
staffUuid: "123e4567-557a-4fc6-9a5e-230a627f0a4b",
|
|
162
162
|
startDate: "2025-07-01 12:00:00",
|
|
163
163
|
endDate: "2025-07-01 12:00:00",
|
|
164
164
|
hasBeenOpenedTimestamp: "2025-07-01 12:00:00",
|
|
165
|
-
allocatedByStaffUuid: "123e4567-
|
|
165
|
+
allocatedByStaffUuid: "123e4567-6bfb-41cc-8c8f-230a6a6d86fb",
|
|
166
166
|
allocatedTimestamp: "2025-07-01 12:00:00",
|
|
167
|
-
materialUuid: "123e4567-
|
|
167
|
+
materialUuid: "123e4567-f018-4d7b-8cb4-230a6984392b",
|
|
168
168
|
});
|
|
169
169
|
if (res.ok) {
|
|
170
170
|
const { value: result } = res;
|
|
@@ -303,15 +303,15 @@ async function run() {
|
|
|
303
303
|
const result = await serviceM8.jobActivities.updateJobActivities({
|
|
304
304
|
uuid: "5ccaaaf0-ee37-4a96-a41a-cc701c3f1a65",
|
|
305
305
|
jobActivity: {
|
|
306
|
-
uuid: "123e4567-
|
|
307
|
-
jobUuid: "123e4567-
|
|
308
|
-
staffUuid: "123e4567-
|
|
306
|
+
uuid: "123e4567-250c-4d37-8786-230a6f8b726b",
|
|
307
|
+
jobUuid: "123e4567-cae7-47cf-9325-230a6f7c252b",
|
|
308
|
+
staffUuid: "123e4567-557a-4fc6-9a5e-230a627f0a4b",
|
|
309
309
|
startDate: "2025-07-01 12:00:00",
|
|
310
310
|
endDate: "2025-07-01 12:00:00",
|
|
311
311
|
hasBeenOpenedTimestamp: "2025-07-01 12:00:00",
|
|
312
|
-
allocatedByStaffUuid: "123e4567-
|
|
312
|
+
allocatedByStaffUuid: "123e4567-6bfb-41cc-8c8f-230a6a6d86fb",
|
|
313
313
|
allocatedTimestamp: "2025-07-01 12:00:00",
|
|
314
|
-
materialUuid: "123e4567-
|
|
314
|
+
materialUuid: "123e4567-f018-4d7b-8cb4-230a6984392b",
|
|
315
315
|
},
|
|
316
316
|
});
|
|
317
317
|
|
|
@@ -341,15 +341,15 @@ async function run() {
|
|
|
341
341
|
const res = await jobActivitiesUpdateJobActivities(serviceM8, {
|
|
342
342
|
uuid: "5ccaaaf0-ee37-4a96-a41a-cc701c3f1a65",
|
|
343
343
|
jobActivity: {
|
|
344
|
-
uuid: "123e4567-
|
|
345
|
-
jobUuid: "123e4567-
|
|
346
|
-
staffUuid: "123e4567-
|
|
344
|
+
uuid: "123e4567-250c-4d37-8786-230a6f8b726b",
|
|
345
|
+
jobUuid: "123e4567-cae7-47cf-9325-230a6f7c252b",
|
|
346
|
+
staffUuid: "123e4567-557a-4fc6-9a5e-230a627f0a4b",
|
|
347
347
|
startDate: "2025-07-01 12:00:00",
|
|
348
348
|
endDate: "2025-07-01 12:00:00",
|
|
349
349
|
hasBeenOpenedTimestamp: "2025-07-01 12:00:00",
|
|
350
|
-
allocatedByStaffUuid: "123e4567-
|
|
350
|
+
allocatedByStaffUuid: "123e4567-6bfb-41cc-8c8f-230a6a6d86fb",
|
|
351
351
|
allocatedTimestamp: "2025-07-01 12:00:00",
|
|
352
|
-
materialUuid: "123e4567-
|
|
352
|
+
materialUuid: "123e4567-f018-4d7b-8cb4-230a6984392b",
|
|
353
353
|
},
|
|
354
354
|
});
|
|
355
355
|
if (res.ok) {
|
|
@@ -121,13 +121,13 @@ const serviceM8 = new ServiceM8({
|
|
|
121
121
|
|
|
122
122
|
async function run() {
|
|
123
123
|
const result = await serviceM8.jobAllocations.createJobAllocations({
|
|
124
|
-
uuid: "123e4567-
|
|
125
|
-
jobUuid: "123e4567-
|
|
126
|
-
queueUuid: "123e4567-
|
|
127
|
-
staffUuid: "123e4567-
|
|
124
|
+
uuid: "123e4567-6a09-4941-bffc-230a6683df9b",
|
|
125
|
+
jobUuid: "123e4567-21e8-4a0a-b94b-230a64d1b61b",
|
|
126
|
+
queueUuid: "123e4567-d612-49c9-847c-230a65341f3b",
|
|
127
|
+
staffUuid: "123e4567-010f-4427-939b-230a6ea02e0b",
|
|
128
128
|
allocationDate: "2025-07-01 12:00:00",
|
|
129
|
-
allocationWindowUuid: "123e4567-
|
|
130
|
-
allocatedByStaffUuid: "123e4567-
|
|
129
|
+
allocationWindowUuid: "123e4567-5725-4e95-9009-230a6d89ce9b",
|
|
130
|
+
allocatedByStaffUuid: "123e4567-2003-4447-9ced-230a633f01db",
|
|
131
131
|
allocatedTimestamp: "2025-07-01 12:00:00",
|
|
132
132
|
expiryTimestamp: "2025-07-01 12:00:00",
|
|
133
133
|
readTimestamp: "2025-07-01 12:00:00",
|
|
@@ -159,13 +159,13 @@ const serviceM8 = new ServiceM8Core({
|
|
|
159
159
|
|
|
160
160
|
async function run() {
|
|
161
161
|
const res = await jobAllocationsCreateJobAllocations(serviceM8, {
|
|
162
|
-
uuid: "123e4567-
|
|
163
|
-
jobUuid: "123e4567-
|
|
164
|
-
queueUuid: "123e4567-
|
|
165
|
-
staffUuid: "123e4567-
|
|
162
|
+
uuid: "123e4567-6a09-4941-bffc-230a6683df9b",
|
|
163
|
+
jobUuid: "123e4567-21e8-4a0a-b94b-230a64d1b61b",
|
|
164
|
+
queueUuid: "123e4567-d612-49c9-847c-230a65341f3b",
|
|
165
|
+
staffUuid: "123e4567-010f-4427-939b-230a6ea02e0b",
|
|
166
166
|
allocationDate: "2025-07-01 12:00:00",
|
|
167
|
-
allocationWindowUuid: "123e4567-
|
|
168
|
-
allocatedByStaffUuid: "123e4567-
|
|
167
|
+
allocationWindowUuid: "123e4567-5725-4e95-9009-230a6d89ce9b",
|
|
168
|
+
allocatedByStaffUuid: "123e4567-2003-4447-9ced-230a633f01db",
|
|
169
169
|
allocatedTimestamp: "2025-07-01 12:00:00",
|
|
170
170
|
expiryTimestamp: "2025-07-01 12:00:00",
|
|
171
171
|
readTimestamp: "2025-07-01 12:00:00",
|
|
@@ -309,13 +309,13 @@ async function run() {
|
|
|
309
309
|
const result = await serviceM8.jobAllocations.updateJobAllocations({
|
|
310
310
|
uuid: "583058ca-b387-4a2b-86cf-ca46e5b89aba",
|
|
311
311
|
jobAllocation: {
|
|
312
|
-
uuid: "123e4567-
|
|
313
|
-
jobUuid: "123e4567-
|
|
314
|
-
queueUuid: "123e4567-
|
|
315
|
-
staffUuid: "123e4567-
|
|
312
|
+
uuid: "123e4567-6a09-4941-bffc-230a6683df9b",
|
|
313
|
+
jobUuid: "123e4567-21e8-4a0a-b94b-230a64d1b61b",
|
|
314
|
+
queueUuid: "123e4567-d612-49c9-847c-230a65341f3b",
|
|
315
|
+
staffUuid: "123e4567-010f-4427-939b-230a6ea02e0b",
|
|
316
316
|
allocationDate: "2025-07-01 12:00:00",
|
|
317
|
-
allocationWindowUuid: "123e4567-
|
|
318
|
-
allocatedByStaffUuid: "123e4567-
|
|
317
|
+
allocationWindowUuid: "123e4567-5725-4e95-9009-230a6d89ce9b",
|
|
318
|
+
allocatedByStaffUuid: "123e4567-2003-4447-9ced-230a633f01db",
|
|
319
319
|
allocatedTimestamp: "2025-07-01 12:00:00",
|
|
320
320
|
expiryTimestamp: "2025-07-01 12:00:00",
|
|
321
321
|
readTimestamp: "2025-07-01 12:00:00",
|
|
@@ -350,13 +350,13 @@ async function run() {
|
|
|
350
350
|
const res = await jobAllocationsUpdateJobAllocations(serviceM8, {
|
|
351
351
|
uuid: "583058ca-b387-4a2b-86cf-ca46e5b89aba",
|
|
352
352
|
jobAllocation: {
|
|
353
|
-
uuid: "123e4567-
|
|
354
|
-
jobUuid: "123e4567-
|
|
355
|
-
queueUuid: "123e4567-
|
|
356
|
-
staffUuid: "123e4567-
|
|
353
|
+
uuid: "123e4567-6a09-4941-bffc-230a6683df9b",
|
|
354
|
+
jobUuid: "123e4567-21e8-4a0a-b94b-230a64d1b61b",
|
|
355
|
+
queueUuid: "123e4567-d612-49c9-847c-230a65341f3b",
|
|
356
|
+
staffUuid: "123e4567-010f-4427-939b-230a6ea02e0b",
|
|
357
357
|
allocationDate: "2025-07-01 12:00:00",
|
|
358
|
-
allocationWindowUuid: "123e4567-
|
|
359
|
-
allocatedByStaffUuid: "123e4567-
|
|
358
|
+
allocationWindowUuid: "123e4567-5725-4e95-9009-230a6d89ce9b",
|
|
359
|
+
allocatedByStaffUuid: "123e4567-2003-4447-9ced-230a633f01db",
|
|
360
360
|
allocatedTimestamp: "2025-07-01 12:00:00",
|
|
361
361
|
expiryTimestamp: "2025-07-01 12:00:00",
|
|
362
362
|
readTimestamp: "2025-07-01 12:00:00",
|
|
@@ -111,18 +111,18 @@ const serviceM8 = new ServiceM8({
|
|
|
111
111
|
|
|
112
112
|
async function run() {
|
|
113
113
|
const result = await serviceM8.jobChecklists.createJobChecklists({
|
|
114
|
-
uuid: "123e4567-
|
|
115
|
-
jobUuid: "123e4567-
|
|
114
|
+
uuid: "123e4567-f362-4e71-ae35-230a6d0102db",
|
|
115
|
+
jobUuid: "123e4567-d999-40ca-af2f-230a6e46f4fb",
|
|
116
116
|
completedTimestamp: "2025-07-01 12:00:00",
|
|
117
|
-
completedByStaffUuid: "123e4567-
|
|
118
|
-
completedDuringCheckinUuid: "123e4567-
|
|
119
|
-
regardingObjectUuid: "123e4567-
|
|
120
|
-
fulfilledByObjectUuid: "123e4567-
|
|
117
|
+
completedByStaffUuid: "123e4567-5bce-445f-95cf-230a6d5f60eb",
|
|
118
|
+
completedDuringCheckinUuid: "123e4567-420f-49fe-a68c-230a6f4a115b",
|
|
119
|
+
regardingObjectUuid: "123e4567-0ade-4436-811c-230a62ed91ab",
|
|
120
|
+
fulfilledByObjectUuid: "123e4567-8406-4e38-9ba2-230a67112bbb",
|
|
121
121
|
assignedToStaffUuids: [
|
|
122
|
-
"123e4567-
|
|
122
|
+
"123e4567-901c-414c-b018-230a6a9503bb",
|
|
123
123
|
],
|
|
124
124
|
assignedTimestamp: "2025-07-01 12:00:00",
|
|
125
|
-
assignedByStaffUuid: "123e4567-
|
|
125
|
+
assignedByStaffUuid: "123e4567-84b1-4b1a-8b0d-230a6efcb2ab",
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
console.log(result);
|
|
@@ -149,18 +149,18 @@ const serviceM8 = new ServiceM8Core({
|
|
|
149
149
|
|
|
150
150
|
async function run() {
|
|
151
151
|
const res = await jobChecklistsCreateJobChecklists(serviceM8, {
|
|
152
|
-
uuid: "123e4567-
|
|
153
|
-
jobUuid: "123e4567-
|
|
152
|
+
uuid: "123e4567-f362-4e71-ae35-230a6d0102db",
|
|
153
|
+
jobUuid: "123e4567-d999-40ca-af2f-230a6e46f4fb",
|
|
154
154
|
completedTimestamp: "2025-07-01 12:00:00",
|
|
155
|
-
completedByStaffUuid: "123e4567-
|
|
156
|
-
completedDuringCheckinUuid: "123e4567-
|
|
157
|
-
regardingObjectUuid: "123e4567-
|
|
158
|
-
fulfilledByObjectUuid: "123e4567-
|
|
155
|
+
completedByStaffUuid: "123e4567-5bce-445f-95cf-230a6d5f60eb",
|
|
156
|
+
completedDuringCheckinUuid: "123e4567-420f-49fe-a68c-230a6f4a115b",
|
|
157
|
+
regardingObjectUuid: "123e4567-0ade-4436-811c-230a62ed91ab",
|
|
158
|
+
fulfilledByObjectUuid: "123e4567-8406-4e38-9ba2-230a67112bbb",
|
|
159
159
|
assignedToStaffUuids: [
|
|
160
|
-
"123e4567-
|
|
160
|
+
"123e4567-901c-414c-b018-230a6a9503bb",
|
|
161
161
|
],
|
|
162
162
|
assignedTimestamp: "2025-07-01 12:00:00",
|
|
163
|
-
assignedByStaffUuid: "123e4567-
|
|
163
|
+
assignedByStaffUuid: "123e4567-84b1-4b1a-8b0d-230a6efcb2ab",
|
|
164
164
|
});
|
|
165
165
|
if (res.ok) {
|
|
166
166
|
const { value: result } = res;
|
|
@@ -289,18 +289,18 @@ async function run() {
|
|
|
289
289
|
const result = await serviceM8.jobChecklists.updateJobChecklists({
|
|
290
290
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
291
291
|
jobChecklist: {
|
|
292
|
-
uuid: "123e4567-
|
|
293
|
-
jobUuid: "123e4567-
|
|
292
|
+
uuid: "123e4567-f362-4e71-ae35-230a6d0102db",
|
|
293
|
+
jobUuid: "123e4567-d999-40ca-af2f-230a6e46f4fb",
|
|
294
294
|
completedTimestamp: "2025-07-01 12:00:00",
|
|
295
|
-
completedByStaffUuid: "123e4567-
|
|
296
|
-
completedDuringCheckinUuid: "123e4567-
|
|
297
|
-
regardingObjectUuid: "123e4567-
|
|
298
|
-
fulfilledByObjectUuid: "123e4567-
|
|
295
|
+
completedByStaffUuid: "123e4567-5bce-445f-95cf-230a6d5f60eb",
|
|
296
|
+
completedDuringCheckinUuid: "123e4567-420f-49fe-a68c-230a6f4a115b",
|
|
297
|
+
regardingObjectUuid: "123e4567-0ade-4436-811c-230a62ed91ab",
|
|
298
|
+
fulfilledByObjectUuid: "123e4567-8406-4e38-9ba2-230a67112bbb",
|
|
299
299
|
assignedToStaffUuids: [
|
|
300
|
-
"123e4567-
|
|
300
|
+
"123e4567-901c-414c-b018-230a6a9503bb",
|
|
301
301
|
],
|
|
302
302
|
assignedTimestamp: "2025-07-01 12:00:00",
|
|
303
|
-
assignedByStaffUuid: "123e4567-
|
|
303
|
+
assignedByStaffUuid: "123e4567-84b1-4b1a-8b0d-230a6efcb2ab",
|
|
304
304
|
},
|
|
305
305
|
});
|
|
306
306
|
|
|
@@ -330,18 +330,18 @@ async function run() {
|
|
|
330
330
|
const res = await jobChecklistsUpdateJobChecklists(serviceM8, {
|
|
331
331
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
332
332
|
jobChecklist: {
|
|
333
|
-
uuid: "123e4567-
|
|
334
|
-
jobUuid: "123e4567-
|
|
333
|
+
uuid: "123e4567-f362-4e71-ae35-230a6d0102db",
|
|
334
|
+
jobUuid: "123e4567-d999-40ca-af2f-230a6e46f4fb",
|
|
335
335
|
completedTimestamp: "2025-07-01 12:00:00",
|
|
336
|
-
completedByStaffUuid: "123e4567-
|
|
337
|
-
completedDuringCheckinUuid: "123e4567-
|
|
338
|
-
regardingObjectUuid: "123e4567-
|
|
339
|
-
fulfilledByObjectUuid: "123e4567-
|
|
336
|
+
completedByStaffUuid: "123e4567-5bce-445f-95cf-230a6d5f60eb",
|
|
337
|
+
completedDuringCheckinUuid: "123e4567-420f-49fe-a68c-230a6f4a115b",
|
|
338
|
+
regardingObjectUuid: "123e4567-0ade-4436-811c-230a62ed91ab",
|
|
339
|
+
fulfilledByObjectUuid: "123e4567-8406-4e38-9ba2-230a67112bbb",
|
|
340
340
|
assignedToStaffUuids: [
|
|
341
|
-
"123e4567-
|
|
341
|
+
"123e4567-901c-414c-b018-230a6a9503bb",
|
|
342
342
|
],
|
|
343
343
|
assignedTimestamp: "2025-07-01 12:00:00",
|
|
344
|
-
assignedByStaffUuid: "123e4567-
|
|
344
|
+
assignedByStaffUuid: "123e4567-84b1-4b1a-8b0d-230a6efcb2ab",
|
|
345
345
|
},
|
|
346
346
|
});
|
|
347
347
|
if (res.ok) {
|
|
@@ -121,8 +121,8 @@ const serviceM8 = new ServiceM8({
|
|
|
121
121
|
|
|
122
122
|
async function run() {
|
|
123
123
|
const result = await serviceM8.jobContacts.createJobContacts({
|
|
124
|
-
uuid: "123e4567-
|
|
125
|
-
jobUuid: "123e4567-
|
|
124
|
+
uuid: "123e4567-28e8-4d82-83ce-230a6534375b",
|
|
125
|
+
jobUuid: "123e4567-e318-4e04-ab0c-230a6dd600eb",
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
console.log(result);
|
|
@@ -149,8 +149,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
149
149
|
|
|
150
150
|
async function run() {
|
|
151
151
|
const res = await jobContactsCreateJobContacts(serviceM8, {
|
|
152
|
-
uuid: "123e4567-
|
|
153
|
-
jobUuid: "123e4567-
|
|
152
|
+
uuid: "123e4567-28e8-4d82-83ce-230a6534375b",
|
|
153
|
+
jobUuid: "123e4567-e318-4e04-ab0c-230a6dd600eb",
|
|
154
154
|
});
|
|
155
155
|
if (res.ok) {
|
|
156
156
|
const { value: result } = res;
|
|
@@ -289,8 +289,8 @@ async function run() {
|
|
|
289
289
|
const result = await serviceM8.jobContacts.updateJobContacts({
|
|
290
290
|
uuid: "9ce8245c-9fb9-4361-8f7f-25eba557ff71",
|
|
291
291
|
jobContact: {
|
|
292
|
-
uuid: "123e4567-
|
|
293
|
-
jobUuid: "123e4567-
|
|
292
|
+
uuid: "123e4567-28e8-4d82-83ce-230a6534375b",
|
|
293
|
+
jobUuid: "123e4567-e318-4e04-ab0c-230a6dd600eb",
|
|
294
294
|
},
|
|
295
295
|
});
|
|
296
296
|
|
|
@@ -320,8 +320,8 @@ async function run() {
|
|
|
320
320
|
const res = await jobContactsUpdateJobContacts(serviceM8, {
|
|
321
321
|
uuid: "9ce8245c-9fb9-4361-8f7f-25eba557ff71",
|
|
322
322
|
jobContact: {
|
|
323
|
-
uuid: "123e4567-
|
|
324
|
-
jobUuid: "123e4567-
|
|
323
|
+
uuid: "123e4567-28e8-4d82-83ce-230a6534375b",
|
|
324
|
+
jobUuid: "123e4567-e318-4e04-ab0c-230a6dd600eb",
|
|
325
325
|
},
|
|
326
326
|
});
|
|
327
327
|
if (res.ok) {
|