servicem8 0.9.47 → 0.9.49
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 +410 -410
- 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/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/docs/sdks/allocationwindows/README.md +4 -4
- package/docs/sdks/assets/README.md +4 -4
- package/docs/sdks/assettypefields/README.md +4 -4
- package/docs/sdks/assettypes/README.md +4 -4
- package/docs/sdks/attachments/README.md +12 -12
- package/docs/sdks/badges/README.md +12 -12
- package/docs/sdks/bundles/README.md +4 -4
- package/docs/sdks/categories/README.md +4 -4
- package/docs/sdks/clients/README.md +8 -8
- package/docs/sdks/companycontacts/README.md +8 -8
- package/docs/sdks/documenttemplates/README.md +4 -4
- package/docs/sdks/emailtemplates/README.md +4 -4
- package/docs/sdks/feedback/README.md +8 -8
- package/docs/sdks/formfields/README.md +8 -8
- package/docs/sdks/formresponses/README.md +28 -28
- package/docs/sdks/forms/README.md +8 -8
- package/docs/sdks/jobactivities/README.md +16 -16
- package/docs/sdks/joballocations/README.md +20 -20
- package/docs/sdks/jobchecklists/README.md +28 -28
- package/docs/sdks/jobcontacts/README.md +8 -8
- package/docs/sdks/jobmaterialbundles/README.md +12 -12
- package/docs/sdks/jobmaterials/README.md +20 -20
- package/docs/sdks/jobpayments/README.md +16 -16
- package/docs/sdks/jobqueues/README.md +4 -4
- package/docs/sdks/jobs/README.md +28 -28
- package/docs/sdks/knowledgearticles/README.md +4 -4
- package/docs/sdks/locations/README.md +4 -4
- package/docs/sdks/materials/README.md +8 -8
- package/docs/sdks/notes/README.md +12 -12
- package/docs/sdks/smstemplates/README.md +4 -4
- package/docs/sdks/staffmembers/README.md +16 -16
- package/docs/sdks/staffmessages/README.md +16 -16
- package/docs/sdks/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 +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
|
@@ -127,8 +127,8 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.formFields.createFormFields({
|
|
130
|
-
formUuid: "123e4567-
|
|
131
|
-
uuid: "123e4567-
|
|
130
|
+
formUuid: "123e4567-9ba6-4b3f-8d5b-23422e7e9e6b",
|
|
131
|
+
uuid: "123e4567-50b7-4b43-9d21-234223f51ebb",
|
|
132
132
|
});
|
|
133
133
|
|
|
134
134
|
console.log(result);
|
|
@@ -155,8 +155,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
155
155
|
|
|
156
156
|
async function run() {
|
|
157
157
|
const res = await formFieldsCreateFormFields(serviceM8, {
|
|
158
|
-
formUuid: "123e4567-
|
|
159
|
-
uuid: "123e4567-
|
|
158
|
+
formUuid: "123e4567-9ba6-4b3f-8d5b-23422e7e9e6b",
|
|
159
|
+
uuid: "123e4567-50b7-4b43-9d21-234223f51ebb",
|
|
160
160
|
});
|
|
161
161
|
if (res.ok) {
|
|
162
162
|
const { value: result } = res;
|
|
@@ -306,8 +306,8 @@ async function run() {
|
|
|
306
306
|
const result = await serviceM8.formFields.updateFormFields({
|
|
307
307
|
uuid: "21a23c6a-1fd9-4be5-84ed-065250f0e6a3",
|
|
308
308
|
formFieldCreate: {
|
|
309
|
-
formUuid: "123e4567-
|
|
310
|
-
uuid: "123e4567-
|
|
309
|
+
formUuid: "123e4567-9ba6-4b3f-8d5b-23422e7e9e6b",
|
|
310
|
+
uuid: "123e4567-50b7-4b43-9d21-234223f51ebb",
|
|
311
311
|
},
|
|
312
312
|
});
|
|
313
313
|
|
|
@@ -337,8 +337,8 @@ async function run() {
|
|
|
337
337
|
const res = await formFieldsUpdateFormFields(serviceM8, {
|
|
338
338
|
uuid: "21a23c6a-1fd9-4be5-84ed-065250f0e6a3",
|
|
339
339
|
formFieldCreate: {
|
|
340
|
-
formUuid: "123e4567-
|
|
341
|
-
uuid: "123e4567-
|
|
340
|
+
formUuid: "123e4567-9ba6-4b3f-8d5b-23422e7e9e6b",
|
|
341
|
+
uuid: "123e4567-50b7-4b43-9d21-234223f51ebb",
|
|
342
342
|
},
|
|
343
343
|
});
|
|
344
344
|
if (res.ok) {
|
|
@@ -127,14 +127,14 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.formResponses.createFormResponses({
|
|
130
|
-
formUuid: "123e4567-
|
|
131
|
-
staffUuid: "123e4567-
|
|
132
|
-
regardingObjectUuid: "123e4567-
|
|
130
|
+
formUuid: "123e4567-bb2c-47f8-938d-23422e8b9f8b",
|
|
131
|
+
staffUuid: "123e4567-d092-4292-9d9e-234225e1cc4b",
|
|
132
|
+
regardingObjectUuid: "123e4567-5256-463b-aa11-234222e2849b",
|
|
133
133
|
timestamp: "2025-09-01 12:00:00",
|
|
134
|
-
formByStaffUuid: "123e4567-
|
|
135
|
-
documentAttachmentUuid: "123e4567-
|
|
136
|
-
assetUuid: "123e4567-
|
|
137
|
-
uuid: "123e4567-
|
|
134
|
+
formByStaffUuid: "123e4567-7fdd-42aa-8bd5-2342240d7d6b",
|
|
135
|
+
documentAttachmentUuid: "123e4567-5788-4234-bf1c-2342247e411b",
|
|
136
|
+
assetUuid: "123e4567-6226-4383-b3c7-23422f03a50b",
|
|
137
|
+
uuid: "123e4567-b640-40f1-a792-23422370ff4b",
|
|
138
138
|
});
|
|
139
139
|
|
|
140
140
|
console.log(result);
|
|
@@ -161,14 +161,14 @@ const serviceM8 = new ServiceM8Core({
|
|
|
161
161
|
|
|
162
162
|
async function run() {
|
|
163
163
|
const res = await formResponsesCreateFormResponses(serviceM8, {
|
|
164
|
-
formUuid: "123e4567-
|
|
165
|
-
staffUuid: "123e4567-
|
|
166
|
-
regardingObjectUuid: "123e4567-
|
|
164
|
+
formUuid: "123e4567-bb2c-47f8-938d-23422e8b9f8b",
|
|
165
|
+
staffUuid: "123e4567-d092-4292-9d9e-234225e1cc4b",
|
|
166
|
+
regardingObjectUuid: "123e4567-5256-463b-aa11-234222e2849b",
|
|
167
167
|
timestamp: "2025-09-01 12:00:00",
|
|
168
|
-
formByStaffUuid: "123e4567-
|
|
169
|
-
documentAttachmentUuid: "123e4567-
|
|
170
|
-
assetUuid: "123e4567-
|
|
171
|
-
uuid: "123e4567-
|
|
168
|
+
formByStaffUuid: "123e4567-7fdd-42aa-8bd5-2342240d7d6b",
|
|
169
|
+
documentAttachmentUuid: "123e4567-5788-4234-bf1c-2342247e411b",
|
|
170
|
+
assetUuid: "123e4567-6226-4383-b3c7-23422f03a50b",
|
|
171
|
+
uuid: "123e4567-b640-40f1-a792-23422370ff4b",
|
|
172
172
|
});
|
|
173
173
|
if (res.ok) {
|
|
174
174
|
const { value: result } = res;
|
|
@@ -318,14 +318,14 @@ async function run() {
|
|
|
318
318
|
const result = await serviceM8.formResponses.updateFormResponses({
|
|
319
319
|
uuid: "5f593a3c-772d-4259-856d-86a8df7ae53d",
|
|
320
320
|
formResponseCreate: {
|
|
321
|
-
formUuid: "123e4567-
|
|
322
|
-
staffUuid: "123e4567-
|
|
323
|
-
regardingObjectUuid: "123e4567-
|
|
321
|
+
formUuid: "123e4567-bb2c-47f8-938d-23422e8b9f8b",
|
|
322
|
+
staffUuid: "123e4567-d092-4292-9d9e-234225e1cc4b",
|
|
323
|
+
regardingObjectUuid: "123e4567-5256-463b-aa11-234222e2849b",
|
|
324
324
|
timestamp: "2025-09-01 12:00:00",
|
|
325
|
-
formByStaffUuid: "123e4567-
|
|
326
|
-
documentAttachmentUuid: "123e4567-
|
|
327
|
-
assetUuid: "123e4567-
|
|
328
|
-
uuid: "123e4567-
|
|
325
|
+
formByStaffUuid: "123e4567-7fdd-42aa-8bd5-2342240d7d6b",
|
|
326
|
+
documentAttachmentUuid: "123e4567-5788-4234-bf1c-2342247e411b",
|
|
327
|
+
assetUuid: "123e4567-6226-4383-b3c7-23422f03a50b",
|
|
328
|
+
uuid: "123e4567-b640-40f1-a792-23422370ff4b",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
331
331
|
|
|
@@ -355,14 +355,14 @@ async function run() {
|
|
|
355
355
|
const res = await formResponsesUpdateFormResponses(serviceM8, {
|
|
356
356
|
uuid: "5f593a3c-772d-4259-856d-86a8df7ae53d",
|
|
357
357
|
formResponseCreate: {
|
|
358
|
-
formUuid: "123e4567-
|
|
359
|
-
staffUuid: "123e4567-
|
|
360
|
-
regardingObjectUuid: "123e4567-
|
|
358
|
+
formUuid: "123e4567-bb2c-47f8-938d-23422e8b9f8b",
|
|
359
|
+
staffUuid: "123e4567-d092-4292-9d9e-234225e1cc4b",
|
|
360
|
+
regardingObjectUuid: "123e4567-5256-463b-aa11-234222e2849b",
|
|
361
361
|
timestamp: "2025-09-01 12:00:00",
|
|
362
|
-
formByStaffUuid: "123e4567-
|
|
363
|
-
documentAttachmentUuid: "123e4567-
|
|
364
|
-
assetUuid: "123e4567-
|
|
365
|
-
uuid: "123e4567-
|
|
362
|
+
formByStaffUuid: "123e4567-7fdd-42aa-8bd5-2342240d7d6b",
|
|
363
|
+
documentAttachmentUuid: "123e4567-5788-4234-bf1c-2342247e411b",
|
|
364
|
+
assetUuid: "123e4567-6226-4383-b3c7-23422f03a50b",
|
|
365
|
+
uuid: "123e4567-b640-40f1-a792-23422370ff4b",
|
|
366
366
|
},
|
|
367
367
|
});
|
|
368
368
|
if (res.ok) {
|
|
@@ -127,8 +127,8 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.forms.createForms({
|
|
130
|
-
documentTemplateUuid: "123e4567-
|
|
131
|
-
uuid: "123e4567-
|
|
130
|
+
documentTemplateUuid: "123e4567-8d01-440c-9198-2342248b38bb",
|
|
131
|
+
uuid: "123e4567-f22f-491b-86dd-2342276c620b",
|
|
132
132
|
});
|
|
133
133
|
|
|
134
134
|
console.log(result);
|
|
@@ -155,8 +155,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
155
155
|
|
|
156
156
|
async function run() {
|
|
157
157
|
const res = await formsCreateForms(serviceM8, {
|
|
158
|
-
documentTemplateUuid: "123e4567-
|
|
159
|
-
uuid: "123e4567-
|
|
158
|
+
documentTemplateUuid: "123e4567-8d01-440c-9198-2342248b38bb",
|
|
159
|
+
uuid: "123e4567-f22f-491b-86dd-2342276c620b",
|
|
160
160
|
});
|
|
161
161
|
if (res.ok) {
|
|
162
162
|
const { value: result } = res;
|
|
@@ -306,8 +306,8 @@ async function run() {
|
|
|
306
306
|
const result = await serviceM8.forms.updateForms({
|
|
307
307
|
uuid: "2473c622-cde4-4803-b91a-cd7a656f7e3b",
|
|
308
308
|
formCreate: {
|
|
309
|
-
documentTemplateUuid: "123e4567-
|
|
310
|
-
uuid: "123e4567-
|
|
309
|
+
documentTemplateUuid: "123e4567-8d01-440c-9198-2342248b38bb",
|
|
310
|
+
uuid: "123e4567-f22f-491b-86dd-2342276c620b",
|
|
311
311
|
},
|
|
312
312
|
});
|
|
313
313
|
|
|
@@ -337,8 +337,8 @@ async function run() {
|
|
|
337
337
|
const res = await formsUpdateForms(serviceM8, {
|
|
338
338
|
uuid: "2473c622-cde4-4803-b91a-cd7a656f7e3b",
|
|
339
339
|
formCreate: {
|
|
340
|
-
documentTemplateUuid: "123e4567-
|
|
341
|
-
uuid: "123e4567-
|
|
340
|
+
documentTemplateUuid: "123e4567-8d01-440c-9198-2342248b38bb",
|
|
341
|
+
uuid: "123e4567-f22f-491b-86dd-2342276c620b",
|
|
342
342
|
},
|
|
343
343
|
});
|
|
344
344
|
if (res.ok) {
|
|
@@ -127,13 +127,13 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobActivities.createJobActivities({
|
|
130
|
-
jobUuid: "123e4567-
|
|
131
|
-
staffUuid: "123e4567-
|
|
130
|
+
jobUuid: "123e4567-5cc5-42c7-907a-234226510fbb",
|
|
131
|
+
staffUuid: "123e4567-419c-48f0-b8f9-23422a14d49b",
|
|
132
132
|
startDate: "2025-09-01 12:00:00",
|
|
133
133
|
endDate: "2025-09-01 12:00:00",
|
|
134
134
|
hasBeenOpenedTimestamp: "2025-09-01 12:00:00",
|
|
135
|
-
materialUuid: "123e4567-
|
|
136
|
-
uuid: "123e4567-
|
|
135
|
+
materialUuid: "123e4567-107d-488b-8f40-2342252baf8b",
|
|
136
|
+
uuid: "123e4567-1dc0-4e29-b037-234225458c8b",
|
|
137
137
|
});
|
|
138
138
|
|
|
139
139
|
console.log(result);
|
|
@@ -160,13 +160,13 @@ const serviceM8 = new ServiceM8Core({
|
|
|
160
160
|
|
|
161
161
|
async function run() {
|
|
162
162
|
const res = await jobActivitiesCreateJobActivities(serviceM8, {
|
|
163
|
-
jobUuid: "123e4567-
|
|
164
|
-
staffUuid: "123e4567-
|
|
163
|
+
jobUuid: "123e4567-5cc5-42c7-907a-234226510fbb",
|
|
164
|
+
staffUuid: "123e4567-419c-48f0-b8f9-23422a14d49b",
|
|
165
165
|
startDate: "2025-09-01 12:00:00",
|
|
166
166
|
endDate: "2025-09-01 12:00:00",
|
|
167
167
|
hasBeenOpenedTimestamp: "2025-09-01 12:00:00",
|
|
168
|
-
materialUuid: "123e4567-
|
|
169
|
-
uuid: "123e4567-
|
|
168
|
+
materialUuid: "123e4567-107d-488b-8f40-2342252baf8b",
|
|
169
|
+
uuid: "123e4567-1dc0-4e29-b037-234225458c8b",
|
|
170
170
|
});
|
|
171
171
|
if (res.ok) {
|
|
172
172
|
const { value: result } = res;
|
|
@@ -316,13 +316,13 @@ async function run() {
|
|
|
316
316
|
const result = await serviceM8.jobActivities.updateJobActivities({
|
|
317
317
|
uuid: "5ccaaaf0-ee37-4a96-a41a-cc701c3f1a65",
|
|
318
318
|
jobActivityCreate: {
|
|
319
|
-
jobUuid: "123e4567-
|
|
320
|
-
staffUuid: "123e4567-
|
|
319
|
+
jobUuid: "123e4567-5cc5-42c7-907a-234226510fbb",
|
|
320
|
+
staffUuid: "123e4567-419c-48f0-b8f9-23422a14d49b",
|
|
321
321
|
startDate: "2025-09-01 12:00:00",
|
|
322
322
|
endDate: "2025-09-01 12:00:00",
|
|
323
323
|
hasBeenOpenedTimestamp: "2025-09-01 12:00:00",
|
|
324
|
-
materialUuid: "123e4567-
|
|
325
|
-
uuid: "123e4567-
|
|
324
|
+
materialUuid: "123e4567-107d-488b-8f40-2342252baf8b",
|
|
325
|
+
uuid: "123e4567-1dc0-4e29-b037-234225458c8b",
|
|
326
326
|
},
|
|
327
327
|
});
|
|
328
328
|
|
|
@@ -352,13 +352,13 @@ async function run() {
|
|
|
352
352
|
const res = await jobActivitiesUpdateJobActivities(serviceM8, {
|
|
353
353
|
uuid: "5ccaaaf0-ee37-4a96-a41a-cc701c3f1a65",
|
|
354
354
|
jobActivityCreate: {
|
|
355
|
-
jobUuid: "123e4567-
|
|
356
|
-
staffUuid: "123e4567-
|
|
355
|
+
jobUuid: "123e4567-5cc5-42c7-907a-234226510fbb",
|
|
356
|
+
staffUuid: "123e4567-419c-48f0-b8f9-23422a14d49b",
|
|
357
357
|
startDate: "2025-09-01 12:00:00",
|
|
358
358
|
endDate: "2025-09-01 12:00:00",
|
|
359
359
|
hasBeenOpenedTimestamp: "2025-09-01 12:00:00",
|
|
360
|
-
materialUuid: "123e4567-
|
|
361
|
-
uuid: "123e4567-
|
|
360
|
+
materialUuid: "123e4567-107d-488b-8f40-2342252baf8b",
|
|
361
|
+
uuid: "123e4567-1dc0-4e29-b037-234225458c8b",
|
|
362
362
|
},
|
|
363
363
|
});
|
|
364
364
|
if (res.ok) {
|
|
@@ -127,16 +127,16 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobAllocations.createJobAllocations({
|
|
130
|
-
jobUuid: "123e4567-
|
|
131
|
-
staffUuid: "123e4567-
|
|
130
|
+
jobUuid: "123e4567-f1a8-48cb-8a3e-2342260ae23b",
|
|
131
|
+
staffUuid: "123e4567-a01d-4354-80d9-23422f56f06b",
|
|
132
132
|
allocationDate: "2025-09-01 12:00:00",
|
|
133
|
-
allocationWindowUuid: "123e4567-
|
|
134
|
-
allocatedByStaffUuid: "123e4567-
|
|
133
|
+
allocationWindowUuid: "123e4567-ff19-4540-98a4-23422906a49b",
|
|
134
|
+
allocatedByStaffUuid: "123e4567-8d47-42a4-b762-234225e601eb",
|
|
135
135
|
allocatedTimestamp: "2025-09-01 12:00:00",
|
|
136
136
|
expiryTimestamp: "2025-09-01 12:00:00",
|
|
137
137
|
readTimestamp: "2025-09-01 12:00:00",
|
|
138
138
|
completionTimestamp: "2025-09-01 12:00:00",
|
|
139
|
-
uuid: "123e4567-
|
|
139
|
+
uuid: "123e4567-860a-4117-905c-23422dfe739b",
|
|
140
140
|
});
|
|
141
141
|
|
|
142
142
|
console.log(result);
|
|
@@ -163,16 +163,16 @@ const serviceM8 = new ServiceM8Core({
|
|
|
163
163
|
|
|
164
164
|
async function run() {
|
|
165
165
|
const res = await jobAllocationsCreateJobAllocations(serviceM8, {
|
|
166
|
-
jobUuid: "123e4567-
|
|
167
|
-
staffUuid: "123e4567-
|
|
166
|
+
jobUuid: "123e4567-f1a8-48cb-8a3e-2342260ae23b",
|
|
167
|
+
staffUuid: "123e4567-a01d-4354-80d9-23422f56f06b",
|
|
168
168
|
allocationDate: "2025-09-01 12:00:00",
|
|
169
|
-
allocationWindowUuid: "123e4567-
|
|
170
|
-
allocatedByStaffUuid: "123e4567-
|
|
169
|
+
allocationWindowUuid: "123e4567-ff19-4540-98a4-23422906a49b",
|
|
170
|
+
allocatedByStaffUuid: "123e4567-8d47-42a4-b762-234225e601eb",
|
|
171
171
|
allocatedTimestamp: "2025-09-01 12:00:00",
|
|
172
172
|
expiryTimestamp: "2025-09-01 12:00:00",
|
|
173
173
|
readTimestamp: "2025-09-01 12:00:00",
|
|
174
174
|
completionTimestamp: "2025-09-01 12:00:00",
|
|
175
|
-
uuid: "123e4567-
|
|
175
|
+
uuid: "123e4567-860a-4117-905c-23422dfe739b",
|
|
176
176
|
});
|
|
177
177
|
if (res.ok) {
|
|
178
178
|
const { value: result } = res;
|
|
@@ -322,16 +322,16 @@ async function run() {
|
|
|
322
322
|
const result = await serviceM8.jobAllocations.updateJobAllocations({
|
|
323
323
|
uuid: "583058ca-b387-4a2b-86cf-ca46e5b89aba",
|
|
324
324
|
jobAllocationCreate: {
|
|
325
|
-
jobUuid: "123e4567-
|
|
326
|
-
staffUuid: "123e4567-
|
|
325
|
+
jobUuid: "123e4567-f1a8-48cb-8a3e-2342260ae23b",
|
|
326
|
+
staffUuid: "123e4567-a01d-4354-80d9-23422f56f06b",
|
|
327
327
|
allocationDate: "2025-09-01 12:00:00",
|
|
328
|
-
allocationWindowUuid: "123e4567-
|
|
329
|
-
allocatedByStaffUuid: "123e4567-
|
|
328
|
+
allocationWindowUuid: "123e4567-ff19-4540-98a4-23422906a49b",
|
|
329
|
+
allocatedByStaffUuid: "123e4567-8d47-42a4-b762-234225e601eb",
|
|
330
330
|
allocatedTimestamp: "2025-09-01 12:00:00",
|
|
331
331
|
expiryTimestamp: "2025-09-01 12:00:00",
|
|
332
332
|
readTimestamp: "2025-09-01 12:00:00",
|
|
333
333
|
completionTimestamp: "2025-09-01 12:00:00",
|
|
334
|
-
uuid: "123e4567-
|
|
334
|
+
uuid: "123e4567-860a-4117-905c-23422dfe739b",
|
|
335
335
|
},
|
|
336
336
|
});
|
|
337
337
|
|
|
@@ -361,16 +361,16 @@ async function run() {
|
|
|
361
361
|
const res = await jobAllocationsUpdateJobAllocations(serviceM8, {
|
|
362
362
|
uuid: "583058ca-b387-4a2b-86cf-ca46e5b89aba",
|
|
363
363
|
jobAllocationCreate: {
|
|
364
|
-
jobUuid: "123e4567-
|
|
365
|
-
staffUuid: "123e4567-
|
|
364
|
+
jobUuid: "123e4567-f1a8-48cb-8a3e-2342260ae23b",
|
|
365
|
+
staffUuid: "123e4567-a01d-4354-80d9-23422f56f06b",
|
|
366
366
|
allocationDate: "2025-09-01 12:00:00",
|
|
367
|
-
allocationWindowUuid: "123e4567-
|
|
368
|
-
allocatedByStaffUuid: "123e4567-
|
|
367
|
+
allocationWindowUuid: "123e4567-ff19-4540-98a4-23422906a49b",
|
|
368
|
+
allocatedByStaffUuid: "123e4567-8d47-42a4-b762-234225e601eb",
|
|
369
369
|
allocatedTimestamp: "2025-09-01 12:00:00",
|
|
370
370
|
expiryTimestamp: "2025-09-01 12:00:00",
|
|
371
371
|
readTimestamp: "2025-09-01 12:00:00",
|
|
372
372
|
completionTimestamp: "2025-09-01 12:00:00",
|
|
373
|
-
uuid: "123e4567-
|
|
373
|
+
uuid: "123e4567-860a-4117-905c-23422dfe739b",
|
|
374
374
|
},
|
|
375
375
|
});
|
|
376
376
|
if (res.ok) {
|
|
@@ -127,15 +127,15 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobChecklists.createJobChecklists({
|
|
130
|
-
uuid: "123e4567-
|
|
131
|
-
jobUuid: "123e4567-
|
|
130
|
+
uuid: "123e4567-329d-49ef-b818-23422bccbc0b",
|
|
131
|
+
jobUuid: "123e4567-7ed2-4a64-b822-2342218c69cb",
|
|
132
132
|
completedTimestamp: "2025-09-01 12:00:00",
|
|
133
|
-
completedByStaffUuid: "123e4567-
|
|
134
|
-
completedDuringCheckinUuid: "123e4567-
|
|
135
|
-
regardingObjectUuid: "123e4567-
|
|
136
|
-
fulfilledByObjectUuid: "123e4567-
|
|
133
|
+
completedByStaffUuid: "123e4567-4a43-4055-82fe-23422ee3aa8b",
|
|
134
|
+
completedDuringCheckinUuid: "123e4567-1183-41cd-9026-2342206e9c3b",
|
|
135
|
+
regardingObjectUuid: "123e4567-624a-4f4c-8e99-234223981e5b",
|
|
136
|
+
fulfilledByObjectUuid: "123e4567-208b-4a19-aa5b-234229e7763b",
|
|
137
137
|
assignedToStaffUuids: [
|
|
138
|
-
"123e4567-
|
|
138
|
+
"123e4567-a7f5-4fa3-baac-23422532933b",
|
|
139
139
|
],
|
|
140
140
|
});
|
|
141
141
|
|
|
@@ -163,15 +163,15 @@ const serviceM8 = new ServiceM8Core({
|
|
|
163
163
|
|
|
164
164
|
async function run() {
|
|
165
165
|
const res = await jobChecklistsCreateJobChecklists(serviceM8, {
|
|
166
|
-
uuid: "123e4567-
|
|
167
|
-
jobUuid: "123e4567-
|
|
166
|
+
uuid: "123e4567-329d-49ef-b818-23422bccbc0b",
|
|
167
|
+
jobUuid: "123e4567-7ed2-4a64-b822-2342218c69cb",
|
|
168
168
|
completedTimestamp: "2025-09-01 12:00:00",
|
|
169
|
-
completedByStaffUuid: "123e4567-
|
|
170
|
-
completedDuringCheckinUuid: "123e4567-
|
|
171
|
-
regardingObjectUuid: "123e4567-
|
|
172
|
-
fulfilledByObjectUuid: "123e4567-
|
|
169
|
+
completedByStaffUuid: "123e4567-4a43-4055-82fe-23422ee3aa8b",
|
|
170
|
+
completedDuringCheckinUuid: "123e4567-1183-41cd-9026-2342206e9c3b",
|
|
171
|
+
regardingObjectUuid: "123e4567-624a-4f4c-8e99-234223981e5b",
|
|
172
|
+
fulfilledByObjectUuid: "123e4567-208b-4a19-aa5b-234229e7763b",
|
|
173
173
|
assignedToStaffUuids: [
|
|
174
|
-
"123e4567-
|
|
174
|
+
"123e4567-a7f5-4fa3-baac-23422532933b",
|
|
175
175
|
],
|
|
176
176
|
});
|
|
177
177
|
if (res.ok) {
|
|
@@ -322,15 +322,15 @@ async function run() {
|
|
|
322
322
|
const result = await serviceM8.jobChecklists.updateJobChecklists({
|
|
323
323
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
324
324
|
jobChecklistCreate: {
|
|
325
|
-
uuid: "123e4567-
|
|
326
|
-
jobUuid: "123e4567-
|
|
325
|
+
uuid: "123e4567-329d-49ef-b818-23422bccbc0b",
|
|
326
|
+
jobUuid: "123e4567-7ed2-4a64-b822-2342218c69cb",
|
|
327
327
|
completedTimestamp: "2025-09-01 12:00:00",
|
|
328
|
-
completedByStaffUuid: "123e4567-
|
|
329
|
-
completedDuringCheckinUuid: "123e4567-
|
|
330
|
-
regardingObjectUuid: "123e4567-
|
|
331
|
-
fulfilledByObjectUuid: "123e4567-
|
|
328
|
+
completedByStaffUuid: "123e4567-4a43-4055-82fe-23422ee3aa8b",
|
|
329
|
+
completedDuringCheckinUuid: "123e4567-1183-41cd-9026-2342206e9c3b",
|
|
330
|
+
regardingObjectUuid: "123e4567-624a-4f4c-8e99-234223981e5b",
|
|
331
|
+
fulfilledByObjectUuid: "123e4567-208b-4a19-aa5b-234229e7763b",
|
|
332
332
|
assignedToStaffUuids: [
|
|
333
|
-
"123e4567-
|
|
333
|
+
"123e4567-a7f5-4fa3-baac-23422532933b",
|
|
334
334
|
],
|
|
335
335
|
},
|
|
336
336
|
});
|
|
@@ -361,15 +361,15 @@ async function run() {
|
|
|
361
361
|
const res = await jobChecklistsUpdateJobChecklists(serviceM8, {
|
|
362
362
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
363
363
|
jobChecklistCreate: {
|
|
364
|
-
uuid: "123e4567-
|
|
365
|
-
jobUuid: "123e4567-
|
|
364
|
+
uuid: "123e4567-329d-49ef-b818-23422bccbc0b",
|
|
365
|
+
jobUuid: "123e4567-7ed2-4a64-b822-2342218c69cb",
|
|
366
366
|
completedTimestamp: "2025-09-01 12:00:00",
|
|
367
|
-
completedByStaffUuid: "123e4567-
|
|
368
|
-
completedDuringCheckinUuid: "123e4567-
|
|
369
|
-
regardingObjectUuid: "123e4567-
|
|
370
|
-
fulfilledByObjectUuid: "123e4567-
|
|
367
|
+
completedByStaffUuid: "123e4567-4a43-4055-82fe-23422ee3aa8b",
|
|
368
|
+
completedDuringCheckinUuid: "123e4567-1183-41cd-9026-2342206e9c3b",
|
|
369
|
+
regardingObjectUuid: "123e4567-624a-4f4c-8e99-234223981e5b",
|
|
370
|
+
fulfilledByObjectUuid: "123e4567-208b-4a19-aa5b-234229e7763b",
|
|
371
371
|
assignedToStaffUuids: [
|
|
372
|
-
"123e4567-
|
|
372
|
+
"123e4567-a7f5-4fa3-baac-23422532933b",
|
|
373
373
|
],
|
|
374
374
|
},
|
|
375
375
|
});
|
|
@@ -127,8 +127,8 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobContacts.createJobContacts({
|
|
130
|
-
jobUuid: "123e4567-
|
|
131
|
-
uuid: "123e4567-
|
|
130
|
+
jobUuid: "123e4567-d73e-4d21-8f18-23422a493e8b",
|
|
131
|
+
uuid: "123e4567-5a68-4ecf-871a-23422179be4b",
|
|
132
132
|
});
|
|
133
133
|
|
|
134
134
|
console.log(result);
|
|
@@ -155,8 +155,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
155
155
|
|
|
156
156
|
async function run() {
|
|
157
157
|
const res = await jobContactsCreateJobContacts(serviceM8, {
|
|
158
|
-
jobUuid: "123e4567-
|
|
159
|
-
uuid: "123e4567-
|
|
158
|
+
jobUuid: "123e4567-d73e-4d21-8f18-23422a493e8b",
|
|
159
|
+
uuid: "123e4567-5a68-4ecf-871a-23422179be4b",
|
|
160
160
|
});
|
|
161
161
|
if (res.ok) {
|
|
162
162
|
const { value: result } = res;
|
|
@@ -306,8 +306,8 @@ async function run() {
|
|
|
306
306
|
const result = await serviceM8.jobContacts.updateJobContacts({
|
|
307
307
|
uuid: "9ce8245c-9fb9-4361-8f7f-25eba557ff71",
|
|
308
308
|
jobContactCreate: {
|
|
309
|
-
jobUuid: "123e4567-
|
|
310
|
-
uuid: "123e4567-
|
|
309
|
+
jobUuid: "123e4567-d73e-4d21-8f18-23422a493e8b",
|
|
310
|
+
uuid: "123e4567-5a68-4ecf-871a-23422179be4b",
|
|
311
311
|
},
|
|
312
312
|
});
|
|
313
313
|
|
|
@@ -337,8 +337,8 @@ async function run() {
|
|
|
337
337
|
const res = await jobContactsUpdateJobContacts(serviceM8, {
|
|
338
338
|
uuid: "9ce8245c-9fb9-4361-8f7f-25eba557ff71",
|
|
339
339
|
jobContactCreate: {
|
|
340
|
-
jobUuid: "123e4567-
|
|
341
|
-
uuid: "123e4567-
|
|
340
|
+
jobUuid: "123e4567-d73e-4d21-8f18-23422a493e8b",
|
|
341
|
+
uuid: "123e4567-5a68-4ecf-871a-23422179be4b",
|
|
342
342
|
},
|
|
343
343
|
});
|
|
344
344
|
if (res.ok) {
|
|
@@ -127,9 +127,9 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobMaterialBundles.createJobMaterialBundles({
|
|
130
|
-
uuid: "123e4567-
|
|
131
|
-
materialBundleUuid: "123e4567-
|
|
132
|
-
jobUuid: "123e4567-
|
|
130
|
+
uuid: "123e4567-989b-4c4b-8270-234229084ceb",
|
|
131
|
+
materialBundleUuid: "123e4567-69ae-4547-a726-23422d3cb6db",
|
|
132
|
+
jobUuid: "123e4567-a1cd-44f8-857e-23422384af1b",
|
|
133
133
|
});
|
|
134
134
|
|
|
135
135
|
console.log(result);
|
|
@@ -156,9 +156,9 @@ const serviceM8 = new ServiceM8Core({
|
|
|
156
156
|
|
|
157
157
|
async function run() {
|
|
158
158
|
const res = await jobMaterialBundlesCreateJobMaterialBundles(serviceM8, {
|
|
159
|
-
uuid: "123e4567-
|
|
160
|
-
materialBundleUuid: "123e4567-
|
|
161
|
-
jobUuid: "123e4567-
|
|
159
|
+
uuid: "123e4567-989b-4c4b-8270-234229084ceb",
|
|
160
|
+
materialBundleUuid: "123e4567-69ae-4547-a726-23422d3cb6db",
|
|
161
|
+
jobUuid: "123e4567-a1cd-44f8-857e-23422384af1b",
|
|
162
162
|
});
|
|
163
163
|
if (res.ok) {
|
|
164
164
|
const { value: result } = res;
|
|
@@ -308,9 +308,9 @@ async function run() {
|
|
|
308
308
|
const result = await serviceM8.jobMaterialBundles.updateJobMaterialBundles({
|
|
309
309
|
uuid: "6419b5e7-8edd-4c69-9648-b6ed7431256b",
|
|
310
310
|
jobMaterialBundleCreate: {
|
|
311
|
-
uuid: "123e4567-
|
|
312
|
-
materialBundleUuid: "123e4567-
|
|
313
|
-
jobUuid: "123e4567-
|
|
311
|
+
uuid: "123e4567-989b-4c4b-8270-234229084ceb",
|
|
312
|
+
materialBundleUuid: "123e4567-69ae-4547-a726-23422d3cb6db",
|
|
313
|
+
jobUuid: "123e4567-a1cd-44f8-857e-23422384af1b",
|
|
314
314
|
},
|
|
315
315
|
});
|
|
316
316
|
|
|
@@ -340,9 +340,9 @@ async function run() {
|
|
|
340
340
|
const res = await jobMaterialBundlesUpdateJobMaterialBundles(serviceM8, {
|
|
341
341
|
uuid: "6419b5e7-8edd-4c69-9648-b6ed7431256b",
|
|
342
342
|
jobMaterialBundleCreate: {
|
|
343
|
-
uuid: "123e4567-
|
|
344
|
-
materialBundleUuid: "123e4567-
|
|
345
|
-
jobUuid: "123e4567-
|
|
343
|
+
uuid: "123e4567-989b-4c4b-8270-234229084ceb",
|
|
344
|
+
materialBundleUuid: "123e4567-69ae-4547-a726-23422d3cb6db",
|
|
345
|
+
jobUuid: "123e4567-a1cd-44f8-857e-23422384af1b",
|
|
346
346
|
},
|
|
347
347
|
});
|
|
348
348
|
if (res.ok) {
|
|
@@ -127,12 +127,12 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobMaterials.createJobMaterials({
|
|
130
|
-
jobUuid: "123e4567-
|
|
131
|
-
materialUuid: "123e4567-
|
|
130
|
+
jobUuid: "123e4567-01bd-43c7-bd75-23422971b47b",
|
|
131
|
+
materialUuid: "123e4567-40f8-4fee-93e2-234228be8aab",
|
|
132
132
|
quantity: "<value>",
|
|
133
|
-
taxRateUuid: "123e4567-
|
|
134
|
-
uuid: "123e4567-
|
|
135
|
-
jobMaterialBundleUuid: "123e4567-
|
|
133
|
+
taxRateUuid: "123e4567-d250-4c12-98de-23422cf1068b",
|
|
134
|
+
uuid: "123e4567-9be1-4ced-a76d-23422aeb491b",
|
|
135
|
+
jobMaterialBundleUuid: "123e4567-a3b7-4486-87e8-23422a7727bb",
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
console.log(result);
|
|
@@ -159,12 +159,12 @@ const serviceM8 = new ServiceM8Core({
|
|
|
159
159
|
|
|
160
160
|
async function run() {
|
|
161
161
|
const res = await jobMaterialsCreateJobMaterials(serviceM8, {
|
|
162
|
-
jobUuid: "123e4567-
|
|
163
|
-
materialUuid: "123e4567-
|
|
162
|
+
jobUuid: "123e4567-01bd-43c7-bd75-23422971b47b",
|
|
163
|
+
materialUuid: "123e4567-40f8-4fee-93e2-234228be8aab",
|
|
164
164
|
quantity: "<value>",
|
|
165
|
-
taxRateUuid: "123e4567-
|
|
166
|
-
uuid: "123e4567-
|
|
167
|
-
jobMaterialBundleUuid: "123e4567-
|
|
165
|
+
taxRateUuid: "123e4567-d250-4c12-98de-23422cf1068b",
|
|
166
|
+
uuid: "123e4567-9be1-4ced-a76d-23422aeb491b",
|
|
167
|
+
jobMaterialBundleUuid: "123e4567-a3b7-4486-87e8-23422a7727bb",
|
|
168
168
|
});
|
|
169
169
|
if (res.ok) {
|
|
170
170
|
const { value: result } = res;
|
|
@@ -314,12 +314,12 @@ async function run() {
|
|
|
314
314
|
const result = await serviceM8.jobMaterials.updateJobMaterials({
|
|
315
315
|
uuid: "0afa4bc5-4269-47e6-81bd-da437fd2e097",
|
|
316
316
|
jobMaterialCreate: {
|
|
317
|
-
jobUuid: "123e4567-
|
|
318
|
-
materialUuid: "123e4567-
|
|
317
|
+
jobUuid: "123e4567-01bd-43c7-bd75-23422971b47b",
|
|
318
|
+
materialUuid: "123e4567-40f8-4fee-93e2-234228be8aab",
|
|
319
319
|
quantity: "<value>",
|
|
320
|
-
taxRateUuid: "123e4567-
|
|
321
|
-
uuid: "123e4567-
|
|
322
|
-
jobMaterialBundleUuid: "123e4567-
|
|
320
|
+
taxRateUuid: "123e4567-d250-4c12-98de-23422cf1068b",
|
|
321
|
+
uuid: "123e4567-9be1-4ced-a76d-23422aeb491b",
|
|
322
|
+
jobMaterialBundleUuid: "123e4567-a3b7-4486-87e8-23422a7727bb",
|
|
323
323
|
},
|
|
324
324
|
});
|
|
325
325
|
|
|
@@ -349,12 +349,12 @@ async function run() {
|
|
|
349
349
|
const res = await jobMaterialsUpdateJobMaterials(serviceM8, {
|
|
350
350
|
uuid: "0afa4bc5-4269-47e6-81bd-da437fd2e097",
|
|
351
351
|
jobMaterialCreate: {
|
|
352
|
-
jobUuid: "123e4567-
|
|
353
|
-
materialUuid: "123e4567-
|
|
352
|
+
jobUuid: "123e4567-01bd-43c7-bd75-23422971b47b",
|
|
353
|
+
materialUuid: "123e4567-40f8-4fee-93e2-234228be8aab",
|
|
354
354
|
quantity: "<value>",
|
|
355
|
-
taxRateUuid: "123e4567-
|
|
356
|
-
uuid: "123e4567-
|
|
357
|
-
jobMaterialBundleUuid: "123e4567-
|
|
355
|
+
taxRateUuid: "123e4567-d250-4c12-98de-23422cf1068b",
|
|
356
|
+
uuid: "123e4567-9be1-4ced-a76d-23422aeb491b",
|
|
357
|
+
jobMaterialBundleUuid: "123e4567-a3b7-4486-87e8-23422a7727bb",
|
|
358
358
|
},
|
|
359
359
|
});
|
|
360
360
|
if (res.ok) {
|