servicem8 0.9.40 → 0.9.41
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 +292 -292
- package/bin/mcp-server.js +5 -5
- package/bin/mcp-server.js.map +4 -4
- 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.js +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.js +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/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 -1
|
@@ -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-a57b-486a-932e-2320afc8ca0b",
|
|
131
|
+
uuid: "123e4567-f890-4455-af8e-2320a1ef935b",
|
|
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-a57b-486a-932e-2320afc8ca0b",
|
|
159
|
+
uuid: "123e4567-f890-4455-af8e-2320a1ef935b",
|
|
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
|
form: {
|
|
309
|
-
documentTemplateUuid: "123e4567-
|
|
310
|
-
uuid: "123e4567-
|
|
309
|
+
documentTemplateUuid: "123e4567-a57b-486a-932e-2320afc8ca0b",
|
|
310
|
+
uuid: "123e4567-f890-4455-af8e-2320a1ef935b",
|
|
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
|
form: {
|
|
340
|
-
documentTemplateUuid: "123e4567-
|
|
341
|
-
uuid: "123e4567-
|
|
340
|
+
documentTemplateUuid: "123e4567-a57b-486a-932e-2320afc8ca0b",
|
|
341
|
+
uuid: "123e4567-f890-4455-af8e-2320a1ef935b",
|
|
342
342
|
},
|
|
343
343
|
});
|
|
344
344
|
if (res.ok) {
|
|
@@ -127,15 +127,15 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobActivities.createJobActivities({
|
|
130
|
-
uuid: "123e4567-
|
|
131
|
-
jobUuid: "123e4567-
|
|
132
|
-
staffUuid: "123e4567-
|
|
130
|
+
uuid: "123e4567-cdad-4686-96ae-2320a05f996b",
|
|
131
|
+
jobUuid: "123e4567-e268-4251-895e-2320a9eea21b",
|
|
132
|
+
staffUuid: "123e4567-5c23-49fd-a2e0-2320a43f16ab",
|
|
133
133
|
startDate: "2025-08-01 12:00:00",
|
|
134
134
|
endDate: "2025-08-01 12:00:00",
|
|
135
135
|
hasBeenOpenedTimestamp: "2025-08-01 12:00:00",
|
|
136
|
-
allocatedByStaffUuid: "123e4567-
|
|
136
|
+
allocatedByStaffUuid: "123e4567-408f-48e0-96db-2320af26b05b",
|
|
137
137
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
138
|
-
materialUuid: "123e4567-
|
|
138
|
+
materialUuid: "123e4567-3c79-4cf1-bc02-2320a6f291bb",
|
|
139
139
|
});
|
|
140
140
|
|
|
141
141
|
console.log(result);
|
|
@@ -162,15 +162,15 @@ const serviceM8 = new ServiceM8Core({
|
|
|
162
162
|
|
|
163
163
|
async function run() {
|
|
164
164
|
const res = await jobActivitiesCreateJobActivities(serviceM8, {
|
|
165
|
-
uuid: "123e4567-
|
|
166
|
-
jobUuid: "123e4567-
|
|
167
|
-
staffUuid: "123e4567-
|
|
165
|
+
uuid: "123e4567-cdad-4686-96ae-2320a05f996b",
|
|
166
|
+
jobUuid: "123e4567-e268-4251-895e-2320a9eea21b",
|
|
167
|
+
staffUuid: "123e4567-5c23-49fd-a2e0-2320a43f16ab",
|
|
168
168
|
startDate: "2025-08-01 12:00:00",
|
|
169
169
|
endDate: "2025-08-01 12:00:00",
|
|
170
170
|
hasBeenOpenedTimestamp: "2025-08-01 12:00:00",
|
|
171
|
-
allocatedByStaffUuid: "123e4567-
|
|
171
|
+
allocatedByStaffUuid: "123e4567-408f-48e0-96db-2320af26b05b",
|
|
172
172
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
173
|
-
materialUuid: "123e4567-
|
|
173
|
+
materialUuid: "123e4567-3c79-4cf1-bc02-2320a6f291bb",
|
|
174
174
|
});
|
|
175
175
|
if (res.ok) {
|
|
176
176
|
const { value: result } = res;
|
|
@@ -320,15 +320,15 @@ async function run() {
|
|
|
320
320
|
const result = await serviceM8.jobActivities.updateJobActivities({
|
|
321
321
|
uuid: "5ccaaaf0-ee37-4a96-a41a-cc701c3f1a65",
|
|
322
322
|
jobActivity: {
|
|
323
|
-
uuid: "123e4567-
|
|
324
|
-
jobUuid: "123e4567-
|
|
325
|
-
staffUuid: "123e4567-
|
|
323
|
+
uuid: "123e4567-cdad-4686-96ae-2320a05f996b",
|
|
324
|
+
jobUuid: "123e4567-e268-4251-895e-2320a9eea21b",
|
|
325
|
+
staffUuid: "123e4567-5c23-49fd-a2e0-2320a43f16ab",
|
|
326
326
|
startDate: "2025-08-01 12:00:00",
|
|
327
327
|
endDate: "2025-08-01 12:00:00",
|
|
328
328
|
hasBeenOpenedTimestamp: "2025-08-01 12:00:00",
|
|
329
|
-
allocatedByStaffUuid: "123e4567-
|
|
329
|
+
allocatedByStaffUuid: "123e4567-408f-48e0-96db-2320af26b05b",
|
|
330
330
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
331
|
-
materialUuid: "123e4567-
|
|
331
|
+
materialUuid: "123e4567-3c79-4cf1-bc02-2320a6f291bb",
|
|
332
332
|
},
|
|
333
333
|
});
|
|
334
334
|
|
|
@@ -358,15 +358,15 @@ async function run() {
|
|
|
358
358
|
const res = await jobActivitiesUpdateJobActivities(serviceM8, {
|
|
359
359
|
uuid: "5ccaaaf0-ee37-4a96-a41a-cc701c3f1a65",
|
|
360
360
|
jobActivity: {
|
|
361
|
-
uuid: "123e4567-
|
|
362
|
-
jobUuid: "123e4567-
|
|
363
|
-
staffUuid: "123e4567-
|
|
361
|
+
uuid: "123e4567-cdad-4686-96ae-2320a05f996b",
|
|
362
|
+
jobUuid: "123e4567-e268-4251-895e-2320a9eea21b",
|
|
363
|
+
staffUuid: "123e4567-5c23-49fd-a2e0-2320a43f16ab",
|
|
364
364
|
startDate: "2025-08-01 12:00:00",
|
|
365
365
|
endDate: "2025-08-01 12:00:00",
|
|
366
366
|
hasBeenOpenedTimestamp: "2025-08-01 12:00:00",
|
|
367
|
-
allocatedByStaffUuid: "123e4567-
|
|
367
|
+
allocatedByStaffUuid: "123e4567-408f-48e0-96db-2320af26b05b",
|
|
368
368
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
369
|
-
materialUuid: "123e4567-
|
|
369
|
+
materialUuid: "123e4567-3c79-4cf1-bc02-2320a6f291bb",
|
|
370
370
|
},
|
|
371
371
|
});
|
|
372
372
|
if (res.ok) {
|
|
@@ -127,13 +127,13 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobAllocations.createJobAllocations({
|
|
130
|
-
uuid: "123e4567-
|
|
131
|
-
jobUuid: "123e4567-
|
|
132
|
-
queueUuid: "123e4567-
|
|
133
|
-
staffUuid: "123e4567-
|
|
130
|
+
uuid: "123e4567-f2c8-468b-b9d1-2320ae4ae82b",
|
|
131
|
+
jobUuid: "123e4567-6564-4a57-85f7-2320a06ca4bb",
|
|
132
|
+
queueUuid: "123e4567-f35d-4dd4-acf4-2320a1662bdb",
|
|
133
|
+
staffUuid: "123e4567-8380-4a7a-b324-2320acf2709b",
|
|
134
134
|
allocationDate: "2025-08-01 12:00:00",
|
|
135
|
-
allocationWindowUuid: "123e4567-
|
|
136
|
-
allocatedByStaffUuid: "123e4567-
|
|
135
|
+
allocationWindowUuid: "123e4567-6227-4e2b-a2fd-2320a4e8bc5b",
|
|
136
|
+
allocatedByStaffUuid: "123e4567-f951-4540-9f31-2320a8c98f8b",
|
|
137
137
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
138
138
|
expiryTimestamp: "2025-08-01 12:00:00",
|
|
139
139
|
readTimestamp: "2025-08-01 12:00:00",
|
|
@@ -165,13 +165,13 @@ const serviceM8 = new ServiceM8Core({
|
|
|
165
165
|
|
|
166
166
|
async function run() {
|
|
167
167
|
const res = await jobAllocationsCreateJobAllocations(serviceM8, {
|
|
168
|
-
uuid: "123e4567-
|
|
169
|
-
jobUuid: "123e4567-
|
|
170
|
-
queueUuid: "123e4567-
|
|
171
|
-
staffUuid: "123e4567-
|
|
168
|
+
uuid: "123e4567-f2c8-468b-b9d1-2320ae4ae82b",
|
|
169
|
+
jobUuid: "123e4567-6564-4a57-85f7-2320a06ca4bb",
|
|
170
|
+
queueUuid: "123e4567-f35d-4dd4-acf4-2320a1662bdb",
|
|
171
|
+
staffUuid: "123e4567-8380-4a7a-b324-2320acf2709b",
|
|
172
172
|
allocationDate: "2025-08-01 12:00:00",
|
|
173
|
-
allocationWindowUuid: "123e4567-
|
|
174
|
-
allocatedByStaffUuid: "123e4567-
|
|
173
|
+
allocationWindowUuid: "123e4567-6227-4e2b-a2fd-2320a4e8bc5b",
|
|
174
|
+
allocatedByStaffUuid: "123e4567-f951-4540-9f31-2320a8c98f8b",
|
|
175
175
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
176
176
|
expiryTimestamp: "2025-08-01 12:00:00",
|
|
177
177
|
readTimestamp: "2025-08-01 12:00:00",
|
|
@@ -326,13 +326,13 @@ async function run() {
|
|
|
326
326
|
const result = await serviceM8.jobAllocations.updateJobAllocations({
|
|
327
327
|
uuid: "583058ca-b387-4a2b-86cf-ca46e5b89aba",
|
|
328
328
|
jobAllocation: {
|
|
329
|
-
uuid: "123e4567-
|
|
330
|
-
jobUuid: "123e4567-
|
|
331
|
-
queueUuid: "123e4567-
|
|
332
|
-
staffUuid: "123e4567-
|
|
329
|
+
uuid: "123e4567-f2c8-468b-b9d1-2320ae4ae82b",
|
|
330
|
+
jobUuid: "123e4567-6564-4a57-85f7-2320a06ca4bb",
|
|
331
|
+
queueUuid: "123e4567-f35d-4dd4-acf4-2320a1662bdb",
|
|
332
|
+
staffUuid: "123e4567-8380-4a7a-b324-2320acf2709b",
|
|
333
333
|
allocationDate: "2025-08-01 12:00:00",
|
|
334
|
-
allocationWindowUuid: "123e4567-
|
|
335
|
-
allocatedByStaffUuid: "123e4567-
|
|
334
|
+
allocationWindowUuid: "123e4567-6227-4e2b-a2fd-2320a4e8bc5b",
|
|
335
|
+
allocatedByStaffUuid: "123e4567-f951-4540-9f31-2320a8c98f8b",
|
|
336
336
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
337
337
|
expiryTimestamp: "2025-08-01 12:00:00",
|
|
338
338
|
readTimestamp: "2025-08-01 12:00:00",
|
|
@@ -367,13 +367,13 @@ async function run() {
|
|
|
367
367
|
const res = await jobAllocationsUpdateJobAllocations(serviceM8, {
|
|
368
368
|
uuid: "583058ca-b387-4a2b-86cf-ca46e5b89aba",
|
|
369
369
|
jobAllocation: {
|
|
370
|
-
uuid: "123e4567-
|
|
371
|
-
jobUuid: "123e4567-
|
|
372
|
-
queueUuid: "123e4567-
|
|
373
|
-
staffUuid: "123e4567-
|
|
370
|
+
uuid: "123e4567-f2c8-468b-b9d1-2320ae4ae82b",
|
|
371
|
+
jobUuid: "123e4567-6564-4a57-85f7-2320a06ca4bb",
|
|
372
|
+
queueUuid: "123e4567-f35d-4dd4-acf4-2320a1662bdb",
|
|
373
|
+
staffUuid: "123e4567-8380-4a7a-b324-2320acf2709b",
|
|
374
374
|
allocationDate: "2025-08-01 12:00:00",
|
|
375
|
-
allocationWindowUuid: "123e4567-
|
|
376
|
-
allocatedByStaffUuid: "123e4567-
|
|
375
|
+
allocationWindowUuid: "123e4567-6227-4e2b-a2fd-2320a4e8bc5b",
|
|
376
|
+
allocatedByStaffUuid: "123e4567-f951-4540-9f31-2320a8c98f8b",
|
|
377
377
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
378
378
|
expiryTimestamp: "2025-08-01 12:00:00",
|
|
379
379
|
readTimestamp: "2025-08-01 12:00:00",
|
|
@@ -127,18 +127,18 @@ 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-cf72-482c-828d-2320a56ddebb",
|
|
131
|
+
jobUuid: "123e4567-7cfb-4916-bfdb-2320a24e84eb",
|
|
132
132
|
completedTimestamp: "2025-08-01 12:00:00",
|
|
133
|
-
completedByStaffUuid: "123e4567-
|
|
134
|
-
completedDuringCheckinUuid: "123e4567-
|
|
135
|
-
regardingObjectUuid: "123e4567-
|
|
136
|
-
fulfilledByObjectUuid: "123e4567-
|
|
133
|
+
completedByStaffUuid: "123e4567-531b-4dcc-87eb-2320a854df7b",
|
|
134
|
+
completedDuringCheckinUuid: "123e4567-8339-4951-8054-2320a859ca2b",
|
|
135
|
+
regardingObjectUuid: "123e4567-bfa3-4021-92aa-2320ab4efb5b",
|
|
136
|
+
fulfilledByObjectUuid: "123e4567-4d60-440d-9e8c-2320a7ca325b",
|
|
137
137
|
assignedToStaffUuids: [
|
|
138
|
-
"123e4567-
|
|
138
|
+
"123e4567-fae9-413a-b75f-2320aa4ad33b",
|
|
139
139
|
],
|
|
140
140
|
assignedTimestamp: "2025-08-01 12:00:00",
|
|
141
|
-
assignedByStaffUuid: "123e4567-
|
|
141
|
+
assignedByStaffUuid: "123e4567-b5a4-4841-9bdc-2320ad4d4a9b",
|
|
142
142
|
});
|
|
143
143
|
|
|
144
144
|
console.log(result);
|
|
@@ -165,18 +165,18 @@ const serviceM8 = new ServiceM8Core({
|
|
|
165
165
|
|
|
166
166
|
async function run() {
|
|
167
167
|
const res = await jobChecklistsCreateJobChecklists(serviceM8, {
|
|
168
|
-
uuid: "123e4567-
|
|
169
|
-
jobUuid: "123e4567-
|
|
168
|
+
uuid: "123e4567-cf72-482c-828d-2320a56ddebb",
|
|
169
|
+
jobUuid: "123e4567-7cfb-4916-bfdb-2320a24e84eb",
|
|
170
170
|
completedTimestamp: "2025-08-01 12:00:00",
|
|
171
|
-
completedByStaffUuid: "123e4567-
|
|
172
|
-
completedDuringCheckinUuid: "123e4567-
|
|
173
|
-
regardingObjectUuid: "123e4567-
|
|
174
|
-
fulfilledByObjectUuid: "123e4567-
|
|
171
|
+
completedByStaffUuid: "123e4567-531b-4dcc-87eb-2320a854df7b",
|
|
172
|
+
completedDuringCheckinUuid: "123e4567-8339-4951-8054-2320a859ca2b",
|
|
173
|
+
regardingObjectUuid: "123e4567-bfa3-4021-92aa-2320ab4efb5b",
|
|
174
|
+
fulfilledByObjectUuid: "123e4567-4d60-440d-9e8c-2320a7ca325b",
|
|
175
175
|
assignedToStaffUuids: [
|
|
176
|
-
"123e4567-
|
|
176
|
+
"123e4567-fae9-413a-b75f-2320aa4ad33b",
|
|
177
177
|
],
|
|
178
178
|
assignedTimestamp: "2025-08-01 12:00:00",
|
|
179
|
-
assignedByStaffUuid: "123e4567-
|
|
179
|
+
assignedByStaffUuid: "123e4567-b5a4-4841-9bdc-2320ad4d4a9b",
|
|
180
180
|
});
|
|
181
181
|
if (res.ok) {
|
|
182
182
|
const { value: result } = res;
|
|
@@ -326,18 +326,18 @@ async function run() {
|
|
|
326
326
|
const result = await serviceM8.jobChecklists.updateJobChecklists({
|
|
327
327
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
328
328
|
jobChecklist: {
|
|
329
|
-
uuid: "123e4567-
|
|
330
|
-
jobUuid: "123e4567-
|
|
329
|
+
uuid: "123e4567-cf72-482c-828d-2320a56ddebb",
|
|
330
|
+
jobUuid: "123e4567-7cfb-4916-bfdb-2320a24e84eb",
|
|
331
331
|
completedTimestamp: "2025-08-01 12:00:00",
|
|
332
|
-
completedByStaffUuid: "123e4567-
|
|
333
|
-
completedDuringCheckinUuid: "123e4567-
|
|
334
|
-
regardingObjectUuid: "123e4567-
|
|
335
|
-
fulfilledByObjectUuid: "123e4567-
|
|
332
|
+
completedByStaffUuid: "123e4567-531b-4dcc-87eb-2320a854df7b",
|
|
333
|
+
completedDuringCheckinUuid: "123e4567-8339-4951-8054-2320a859ca2b",
|
|
334
|
+
regardingObjectUuid: "123e4567-bfa3-4021-92aa-2320ab4efb5b",
|
|
335
|
+
fulfilledByObjectUuid: "123e4567-4d60-440d-9e8c-2320a7ca325b",
|
|
336
336
|
assignedToStaffUuids: [
|
|
337
|
-
"123e4567-
|
|
337
|
+
"123e4567-fae9-413a-b75f-2320aa4ad33b",
|
|
338
338
|
],
|
|
339
339
|
assignedTimestamp: "2025-08-01 12:00:00",
|
|
340
|
-
assignedByStaffUuid: "123e4567-
|
|
340
|
+
assignedByStaffUuid: "123e4567-b5a4-4841-9bdc-2320ad4d4a9b",
|
|
341
341
|
},
|
|
342
342
|
});
|
|
343
343
|
|
|
@@ -367,18 +367,18 @@ async function run() {
|
|
|
367
367
|
const res = await jobChecklistsUpdateJobChecklists(serviceM8, {
|
|
368
368
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
369
369
|
jobChecklist: {
|
|
370
|
-
uuid: "123e4567-
|
|
371
|
-
jobUuid: "123e4567-
|
|
370
|
+
uuid: "123e4567-cf72-482c-828d-2320a56ddebb",
|
|
371
|
+
jobUuid: "123e4567-7cfb-4916-bfdb-2320a24e84eb",
|
|
372
372
|
completedTimestamp: "2025-08-01 12:00:00",
|
|
373
|
-
completedByStaffUuid: "123e4567-
|
|
374
|
-
completedDuringCheckinUuid: "123e4567-
|
|
375
|
-
regardingObjectUuid: "123e4567-
|
|
376
|
-
fulfilledByObjectUuid: "123e4567-
|
|
373
|
+
completedByStaffUuid: "123e4567-531b-4dcc-87eb-2320a854df7b",
|
|
374
|
+
completedDuringCheckinUuid: "123e4567-8339-4951-8054-2320a859ca2b",
|
|
375
|
+
regardingObjectUuid: "123e4567-bfa3-4021-92aa-2320ab4efb5b",
|
|
376
|
+
fulfilledByObjectUuid: "123e4567-4d60-440d-9e8c-2320a7ca325b",
|
|
377
377
|
assignedToStaffUuids: [
|
|
378
|
-
"123e4567-
|
|
378
|
+
"123e4567-fae9-413a-b75f-2320aa4ad33b",
|
|
379
379
|
],
|
|
380
380
|
assignedTimestamp: "2025-08-01 12:00:00",
|
|
381
|
-
assignedByStaffUuid: "123e4567-
|
|
381
|
+
assignedByStaffUuid: "123e4567-b5a4-4841-9bdc-2320ad4d4a9b",
|
|
382
382
|
},
|
|
383
383
|
});
|
|
384
384
|
if (res.ok) {
|
|
@@ -127,8 +127,8 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobContacts.createJobContacts({
|
|
130
|
-
uuid: "123e4567-
|
|
131
|
-
jobUuid: "123e4567-
|
|
130
|
+
uuid: "123e4567-1800-4ea0-8ae0-2320a936fefb",
|
|
131
|
+
jobUuid: "123e4567-7cb7-40bb-8adc-2320a60d0dfb",
|
|
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
|
-
uuid: "123e4567-
|
|
159
|
-
jobUuid: "123e4567-
|
|
158
|
+
uuid: "123e4567-1800-4ea0-8ae0-2320a936fefb",
|
|
159
|
+
jobUuid: "123e4567-7cb7-40bb-8adc-2320a60d0dfb",
|
|
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
|
jobContact: {
|
|
309
|
-
uuid: "123e4567-
|
|
310
|
-
jobUuid: "123e4567-
|
|
309
|
+
uuid: "123e4567-1800-4ea0-8ae0-2320a936fefb",
|
|
310
|
+
jobUuid: "123e4567-7cb7-40bb-8adc-2320a60d0dfb",
|
|
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
|
jobContact: {
|
|
340
|
-
uuid: "123e4567-
|
|
341
|
-
jobUuid: "123e4567-
|
|
340
|
+
uuid: "123e4567-1800-4ea0-8ae0-2320a936fefb",
|
|
341
|
+
jobUuid: "123e4567-7cb7-40bb-8adc-2320a60d0dfb",
|
|
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-11f1-4600-8af9-2320aafffb8b",
|
|
131
|
+
materialBundleUuid: "123e4567-6492-4161-9fef-2320aca42dbb",
|
|
132
|
+
jobUuid: "123e4567-5fa8-45b7-9545-2320ad188d6b",
|
|
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-11f1-4600-8af9-2320aafffb8b",
|
|
160
|
+
materialBundleUuid: "123e4567-6492-4161-9fef-2320aca42dbb",
|
|
161
|
+
jobUuid: "123e4567-5fa8-45b7-9545-2320ad188d6b",
|
|
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
|
jobMaterialBundle: {
|
|
311
|
-
uuid: "123e4567-
|
|
312
|
-
materialBundleUuid: "123e4567-
|
|
313
|
-
jobUuid: "123e4567-
|
|
311
|
+
uuid: "123e4567-11f1-4600-8af9-2320aafffb8b",
|
|
312
|
+
materialBundleUuid: "123e4567-6492-4161-9fef-2320aca42dbb",
|
|
313
|
+
jobUuid: "123e4567-5fa8-45b7-9545-2320ad188d6b",
|
|
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
|
jobMaterialBundle: {
|
|
343
|
-
uuid: "123e4567-
|
|
344
|
-
materialBundleUuid: "123e4567-
|
|
345
|
-
jobUuid: "123e4567-
|
|
343
|
+
uuid: "123e4567-11f1-4600-8af9-2320aafffb8b",
|
|
344
|
+
materialBundleUuid: "123e4567-6492-4161-9fef-2320aca42dbb",
|
|
345
|
+
jobUuid: "123e4567-5fa8-45b7-9545-2320ad188d6b",
|
|
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
|
-
uuid: "123e4567-
|
|
131
|
-
jobUuid: "123e4567-
|
|
132
|
-
materialUuid: "123e4567-
|
|
130
|
+
uuid: "123e4567-74a7-4a41-a16e-2320a5bb5fab",
|
|
131
|
+
jobUuid: "123e4567-e4b0-4cc6-bed0-2320ae054aab",
|
|
132
|
+
materialUuid: "123e4567-450b-44d2-989a-2320a48e500b",
|
|
133
133
|
quantity: "<value>",
|
|
134
|
-
taxRateUuid: "123e4567-
|
|
135
|
-
jobMaterialBundleUuid: "123e4567-
|
|
134
|
+
taxRateUuid: "123e4567-77be-42cb-a1e1-2320a802e8bb",
|
|
135
|
+
jobMaterialBundleUuid: "123e4567-b620-4927-a7f2-2320a207e85b",
|
|
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
|
-
uuid: "123e4567-
|
|
163
|
-
jobUuid: "123e4567-
|
|
164
|
-
materialUuid: "123e4567-
|
|
162
|
+
uuid: "123e4567-74a7-4a41-a16e-2320a5bb5fab",
|
|
163
|
+
jobUuid: "123e4567-e4b0-4cc6-bed0-2320ae054aab",
|
|
164
|
+
materialUuid: "123e4567-450b-44d2-989a-2320a48e500b",
|
|
165
165
|
quantity: "<value>",
|
|
166
|
-
taxRateUuid: "123e4567-
|
|
167
|
-
jobMaterialBundleUuid: "123e4567-
|
|
166
|
+
taxRateUuid: "123e4567-77be-42cb-a1e1-2320a802e8bb",
|
|
167
|
+
jobMaterialBundleUuid: "123e4567-b620-4927-a7f2-2320a207e85b",
|
|
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
|
jobMaterial: {
|
|
317
|
-
uuid: "123e4567-
|
|
318
|
-
jobUuid: "123e4567-
|
|
319
|
-
materialUuid: "123e4567-
|
|
317
|
+
uuid: "123e4567-74a7-4a41-a16e-2320a5bb5fab",
|
|
318
|
+
jobUuid: "123e4567-e4b0-4cc6-bed0-2320ae054aab",
|
|
319
|
+
materialUuid: "123e4567-450b-44d2-989a-2320a48e500b",
|
|
320
320
|
quantity: "<value>",
|
|
321
|
-
taxRateUuid: "123e4567-
|
|
322
|
-
jobMaterialBundleUuid: "123e4567-
|
|
321
|
+
taxRateUuid: "123e4567-77be-42cb-a1e1-2320a802e8bb",
|
|
322
|
+
jobMaterialBundleUuid: "123e4567-b620-4927-a7f2-2320a207e85b",
|
|
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
|
jobMaterial: {
|
|
352
|
-
uuid: "123e4567-
|
|
353
|
-
jobUuid: "123e4567-
|
|
354
|
-
materialUuid: "123e4567-
|
|
352
|
+
uuid: "123e4567-74a7-4a41-a16e-2320a5bb5fab",
|
|
353
|
+
jobUuid: "123e4567-e4b0-4cc6-bed0-2320ae054aab",
|
|
354
|
+
materialUuid: "123e4567-450b-44d2-989a-2320a48e500b",
|
|
355
355
|
quantity: "<value>",
|
|
356
|
-
taxRateUuid: "123e4567-
|
|
357
|
-
jobMaterialBundleUuid: "123e4567-
|
|
356
|
+
taxRateUuid: "123e4567-77be-42cb-a1e1-2320a802e8bb",
|
|
357
|
+
jobMaterialBundleUuid: "123e4567-b620-4927-a7f2-2320a207e85b",
|
|
358
358
|
},
|
|
359
359
|
});
|
|
360
360
|
if (res.ok) {
|
|
@@ -127,11 +127,11 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobPayments.createJobPayments({
|
|
130
|
-
uuid: "123e4567-
|
|
131
|
-
jobUuid: "123e4567-
|
|
132
|
-
actionedByUuid: "123e4567-
|
|
130
|
+
uuid: "123e4567-5a44-4d16-b299-2320a20a2dab",
|
|
131
|
+
jobUuid: "123e4567-c7c7-46d3-8ede-2320a3441a6b",
|
|
132
|
+
actionedByUuid: "123e4567-a1b0-4937-8ef6-2320aed5087b",
|
|
133
133
|
timestamp: "2025-08-01 12:00:00",
|
|
134
|
-
attachmentUuid: "123e4567-
|
|
134
|
+
attachmentUuid: "123e4567-0de8-43f5-b650-2320a73a877b",
|
|
135
135
|
});
|
|
136
136
|
|
|
137
137
|
console.log(result);
|
|
@@ -158,11 +158,11 @@ const serviceM8 = new ServiceM8Core({
|
|
|
158
158
|
|
|
159
159
|
async function run() {
|
|
160
160
|
const res = await jobPaymentsCreateJobPayments(serviceM8, {
|
|
161
|
-
uuid: "123e4567-
|
|
162
|
-
jobUuid: "123e4567-
|
|
163
|
-
actionedByUuid: "123e4567-
|
|
161
|
+
uuid: "123e4567-5a44-4d16-b299-2320a20a2dab",
|
|
162
|
+
jobUuid: "123e4567-c7c7-46d3-8ede-2320a3441a6b",
|
|
163
|
+
actionedByUuid: "123e4567-a1b0-4937-8ef6-2320aed5087b",
|
|
164
164
|
timestamp: "2025-08-01 12:00:00",
|
|
165
|
-
attachmentUuid: "123e4567-
|
|
165
|
+
attachmentUuid: "123e4567-0de8-43f5-b650-2320a73a877b",
|
|
166
166
|
});
|
|
167
167
|
if (res.ok) {
|
|
168
168
|
const { value: result } = res;
|
|
@@ -312,11 +312,11 @@ async function run() {
|
|
|
312
312
|
const result = await serviceM8.jobPayments.updateJobPayments({
|
|
313
313
|
uuid: "11677578-ba16-4ac4-b2d7-62ad0de4655c",
|
|
314
314
|
jobPayment: {
|
|
315
|
-
uuid: "123e4567-
|
|
316
|
-
jobUuid: "123e4567-
|
|
317
|
-
actionedByUuid: "123e4567-
|
|
315
|
+
uuid: "123e4567-5a44-4d16-b299-2320a20a2dab",
|
|
316
|
+
jobUuid: "123e4567-c7c7-46d3-8ede-2320a3441a6b",
|
|
317
|
+
actionedByUuid: "123e4567-a1b0-4937-8ef6-2320aed5087b",
|
|
318
318
|
timestamp: "2025-08-01 12:00:00",
|
|
319
|
-
attachmentUuid: "123e4567-
|
|
319
|
+
attachmentUuid: "123e4567-0de8-43f5-b650-2320a73a877b",
|
|
320
320
|
},
|
|
321
321
|
});
|
|
322
322
|
|
|
@@ -346,11 +346,11 @@ async function run() {
|
|
|
346
346
|
const res = await jobPaymentsUpdateJobPayments(serviceM8, {
|
|
347
347
|
uuid: "11677578-ba16-4ac4-b2d7-62ad0de4655c",
|
|
348
348
|
jobPayment: {
|
|
349
|
-
uuid: "123e4567-
|
|
350
|
-
jobUuid: "123e4567-
|
|
351
|
-
actionedByUuid: "123e4567-
|
|
349
|
+
uuid: "123e4567-5a44-4d16-b299-2320a20a2dab",
|
|
350
|
+
jobUuid: "123e4567-c7c7-46d3-8ede-2320a3441a6b",
|
|
351
|
+
actionedByUuid: "123e4567-a1b0-4937-8ef6-2320aed5087b",
|
|
352
352
|
timestamp: "2025-08-01 12:00:00",
|
|
353
|
-
attachmentUuid: "123e4567-
|
|
353
|
+
attachmentUuid: "123e4567-0de8-43f5-b650-2320a73a877b",
|
|
354
354
|
},
|
|
355
355
|
});
|
|
356
356
|
if (res.ok) {
|
|
@@ -127,7 +127,7 @@ const serviceM8 = new ServiceM8({
|
|
|
127
127
|
|
|
128
128
|
async function run() {
|
|
129
129
|
const result = await serviceM8.jobQueues.createJobQueues({
|
|
130
|
-
uuid: "123e4567-
|
|
130
|
+
uuid: "123e4567-0559-491a-9cc7-2320a468ed1b",
|
|
131
131
|
});
|
|
132
132
|
|
|
133
133
|
console.log(result);
|
|
@@ -154,7 +154,7 @@ const serviceM8 = new ServiceM8Core({
|
|
|
154
154
|
|
|
155
155
|
async function run() {
|
|
156
156
|
const res = await jobQueuesCreateJobQueues(serviceM8, {
|
|
157
|
-
uuid: "123e4567-
|
|
157
|
+
uuid: "123e4567-0559-491a-9cc7-2320a468ed1b",
|
|
158
158
|
});
|
|
159
159
|
if (res.ok) {
|
|
160
160
|
const { value: result } = res;
|
|
@@ -304,7 +304,7 @@ async function run() {
|
|
|
304
304
|
const result = await serviceM8.jobQueues.updateJobQueues({
|
|
305
305
|
uuid: "d5fb31ee-995a-4e2f-8fa6-92068fea17a2",
|
|
306
306
|
queue: {
|
|
307
|
-
uuid: "123e4567-
|
|
307
|
+
uuid: "123e4567-0559-491a-9cc7-2320a468ed1b",
|
|
308
308
|
},
|
|
309
309
|
});
|
|
310
310
|
|
|
@@ -334,7 +334,7 @@ async function run() {
|
|
|
334
334
|
const res = await jobQueuesUpdateJobQueues(serviceM8, {
|
|
335
335
|
uuid: "d5fb31ee-995a-4e2f-8fa6-92068fea17a2",
|
|
336
336
|
queue: {
|
|
337
|
-
uuid: "123e4567-
|
|
337
|
+
uuid: "123e4567-0559-491a-9cc7-2320a468ed1b",
|
|
338
338
|
},
|
|
339
339
|
});
|
|
340
340
|
if (res.ok) {
|