servicem8 0.9.23 → 0.9.25
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 +522 -516
- package/bin/mcp-server.js +22 -14
- package/bin/mcp-server.js.map +6 -6
- 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/commonjs/models/components/form.d.ts +4 -0
- package/dist/commonjs/models/components/form.d.ts.map +1 -1
- package/dist/commonjs/models/components/form.js +8 -0
- package/dist/commonjs/models/components/form.js.map +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/dist/esm/models/components/form.d.ts +4 -0
- package/dist/esm/models/components/form.d.ts.map +1 -1
- package/dist/esm/models/components/form.js +8 -0
- package/dist/esm/models/components/form.js.map +1 -1
- package/docs/sdks/allocationwindows/README.md +4 -4
- package/docs/sdks/assets/README.md +8 -8
- 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 +32 -32
- package/docs/sdks/forms/README.md +8 -8
- package/docs/sdks/jobactivities/README.md +36 -36
- package/docs/sdks/joballocations/README.md +48 -48
- package/docs/sdks/jobchecklists/README.md +40 -40
- 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 +76 -76
- 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 +16 -16
- package/docs/sdks/securityroles/README.md +4 -4
- package/docs/sdks/smstemplates/README.md +4 -4
- package/docs/sdks/staffmembers/README.md +28 -28
- package/docs/sdks/staffmessages/README.md +28 -28
- package/docs/sdks/tasks/README.md +28 -28
- 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
- package/src/models/components/form.ts +12 -0
|
@@ -123,18 +123,18 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.jobAllocations.createJobAllocations({
|
|
126
|
-
uuid: "123e4567-
|
|
127
|
-
jobUuid: "123e4567-
|
|
128
|
-
queueUuid: "123e4567-
|
|
129
|
-
staffUuid: "123e4567-
|
|
130
|
-
allocationDate: "2025-
|
|
131
|
-
allocationWindowUuid: "123e4567-
|
|
132
|
-
allocatedByStaffUuid: "123e4567-
|
|
133
|
-
allocatedTimestamp: "2025-
|
|
134
|
-
expiryTimestamp: "2025-
|
|
135
|
-
readTimestamp: "2025-
|
|
136
|
-
completionTimestamp: "2025-
|
|
137
|
-
acceptanceTimestamp: "2025-
|
|
126
|
+
uuid: "123e4567-dc8a-45e0-80d6-2313f156bc9b",
|
|
127
|
+
jobUuid: "123e4567-c2f7-4bae-a2d0-2313ffc1350b",
|
|
128
|
+
queueUuid: "123e4567-3f20-480b-b3e8-2313f459c6eb",
|
|
129
|
+
staffUuid: "123e4567-2026-412a-94c5-2313f9fc04cb",
|
|
130
|
+
allocationDate: "2025-08-01 12:00:00",
|
|
131
|
+
allocationWindowUuid: "123e4567-3301-475b-ae9a-2313fc68142b",
|
|
132
|
+
allocatedByStaffUuid: "123e4567-f27b-4744-809b-2313f41eabfb",
|
|
133
|
+
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
134
|
+
expiryTimestamp: "2025-08-01 12:00:00",
|
|
135
|
+
readTimestamp: "2025-08-01 12:00:00",
|
|
136
|
+
completionTimestamp: "2025-08-01 12:00:00",
|
|
137
|
+
acceptanceTimestamp: "2025-08-01 12:00:00",
|
|
138
138
|
});
|
|
139
139
|
|
|
140
140
|
console.log(result);
|
|
@@ -161,18 +161,18 @@ const serviceM8 = new ServiceM8Core({
|
|
|
161
161
|
|
|
162
162
|
async function run() {
|
|
163
163
|
const res = await jobAllocationsCreateJobAllocations(serviceM8, {
|
|
164
|
-
uuid: "123e4567-
|
|
165
|
-
jobUuid: "123e4567-
|
|
166
|
-
queueUuid: "123e4567-
|
|
167
|
-
staffUuid: "123e4567-
|
|
168
|
-
allocationDate: "2025-
|
|
169
|
-
allocationWindowUuid: "123e4567-
|
|
170
|
-
allocatedByStaffUuid: "123e4567-
|
|
171
|
-
allocatedTimestamp: "2025-
|
|
172
|
-
expiryTimestamp: "2025-
|
|
173
|
-
readTimestamp: "2025-
|
|
174
|
-
completionTimestamp: "2025-
|
|
175
|
-
acceptanceTimestamp: "2025-
|
|
164
|
+
uuid: "123e4567-dc8a-45e0-80d6-2313f156bc9b",
|
|
165
|
+
jobUuid: "123e4567-c2f7-4bae-a2d0-2313ffc1350b",
|
|
166
|
+
queueUuid: "123e4567-3f20-480b-b3e8-2313f459c6eb",
|
|
167
|
+
staffUuid: "123e4567-2026-412a-94c5-2313f9fc04cb",
|
|
168
|
+
allocationDate: "2025-08-01 12:00:00",
|
|
169
|
+
allocationWindowUuid: "123e4567-3301-475b-ae9a-2313fc68142b",
|
|
170
|
+
allocatedByStaffUuid: "123e4567-f27b-4744-809b-2313f41eabfb",
|
|
171
|
+
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
172
|
+
expiryTimestamp: "2025-08-01 12:00:00",
|
|
173
|
+
readTimestamp: "2025-08-01 12:00:00",
|
|
174
|
+
completionTimestamp: "2025-08-01 12:00:00",
|
|
175
|
+
acceptanceTimestamp: "2025-08-01 12:00:00",
|
|
176
176
|
});
|
|
177
177
|
if (res.ok) {
|
|
178
178
|
const { value: result } = res;
|
|
@@ -313,18 +313,18 @@ async function run() {
|
|
|
313
313
|
const result = await serviceM8.jobAllocations.updateJobAllocations({
|
|
314
314
|
uuid: "583058ca-b387-4a2b-86cf-ca46e5b89aba",
|
|
315
315
|
jobAllocation: {
|
|
316
|
-
uuid: "123e4567-
|
|
317
|
-
jobUuid: "123e4567-
|
|
318
|
-
queueUuid: "123e4567-
|
|
319
|
-
staffUuid: "123e4567-
|
|
320
|
-
allocationDate: "2025-
|
|
321
|
-
allocationWindowUuid: "123e4567-
|
|
322
|
-
allocatedByStaffUuid: "123e4567-
|
|
323
|
-
allocatedTimestamp: "2025-
|
|
324
|
-
expiryTimestamp: "2025-
|
|
325
|
-
readTimestamp: "2025-
|
|
326
|
-
completionTimestamp: "2025-
|
|
327
|
-
acceptanceTimestamp: "2025-
|
|
316
|
+
uuid: "123e4567-dc8a-45e0-80d6-2313f156bc9b",
|
|
317
|
+
jobUuid: "123e4567-c2f7-4bae-a2d0-2313ffc1350b",
|
|
318
|
+
queueUuid: "123e4567-3f20-480b-b3e8-2313f459c6eb",
|
|
319
|
+
staffUuid: "123e4567-2026-412a-94c5-2313f9fc04cb",
|
|
320
|
+
allocationDate: "2025-08-01 12:00:00",
|
|
321
|
+
allocationWindowUuid: "123e4567-3301-475b-ae9a-2313fc68142b",
|
|
322
|
+
allocatedByStaffUuid: "123e4567-f27b-4744-809b-2313f41eabfb",
|
|
323
|
+
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
324
|
+
expiryTimestamp: "2025-08-01 12:00:00",
|
|
325
|
+
readTimestamp: "2025-08-01 12:00:00",
|
|
326
|
+
completionTimestamp: "2025-08-01 12:00:00",
|
|
327
|
+
acceptanceTimestamp: "2025-08-01 12:00:00",
|
|
328
328
|
},
|
|
329
329
|
});
|
|
330
330
|
|
|
@@ -354,18 +354,18 @@ async function run() {
|
|
|
354
354
|
const res = await jobAllocationsUpdateJobAllocations(serviceM8, {
|
|
355
355
|
uuid: "583058ca-b387-4a2b-86cf-ca46e5b89aba",
|
|
356
356
|
jobAllocation: {
|
|
357
|
-
uuid: "123e4567-
|
|
358
|
-
jobUuid: "123e4567-
|
|
359
|
-
queueUuid: "123e4567-
|
|
360
|
-
staffUuid: "123e4567-
|
|
361
|
-
allocationDate: "2025-
|
|
362
|
-
allocationWindowUuid: "123e4567-
|
|
363
|
-
allocatedByStaffUuid: "123e4567-
|
|
364
|
-
allocatedTimestamp: "2025-
|
|
365
|
-
expiryTimestamp: "2025-
|
|
366
|
-
readTimestamp: "2025-
|
|
367
|
-
completionTimestamp: "2025-
|
|
368
|
-
acceptanceTimestamp: "2025-
|
|
357
|
+
uuid: "123e4567-dc8a-45e0-80d6-2313f156bc9b",
|
|
358
|
+
jobUuid: "123e4567-c2f7-4bae-a2d0-2313ffc1350b",
|
|
359
|
+
queueUuid: "123e4567-3f20-480b-b3e8-2313f459c6eb",
|
|
360
|
+
staffUuid: "123e4567-2026-412a-94c5-2313f9fc04cb",
|
|
361
|
+
allocationDate: "2025-08-01 12:00:00",
|
|
362
|
+
allocationWindowUuid: "123e4567-3301-475b-ae9a-2313fc68142b",
|
|
363
|
+
allocatedByStaffUuid: "123e4567-f27b-4744-809b-2313f41eabfb",
|
|
364
|
+
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
365
|
+
expiryTimestamp: "2025-08-01 12:00:00",
|
|
366
|
+
readTimestamp: "2025-08-01 12:00:00",
|
|
367
|
+
completionTimestamp: "2025-08-01 12:00:00",
|
|
368
|
+
acceptanceTimestamp: "2025-08-01 12:00:00",
|
|
369
369
|
},
|
|
370
370
|
});
|
|
371
371
|
if (res.ok) {
|
|
@@ -113,18 +113,18 @@ const serviceM8 = new ServiceM8({
|
|
|
113
113
|
|
|
114
114
|
async function run() {
|
|
115
115
|
const result = await serviceM8.jobChecklists.createJobChecklists({
|
|
116
|
-
uuid: "123e4567-
|
|
117
|
-
jobUuid: "123e4567-
|
|
118
|
-
completedTimestamp: "2025-
|
|
119
|
-
completedByStaffUuid: "123e4567-
|
|
120
|
-
completedDuringCheckinUuid: "123e4567-
|
|
121
|
-
regardingObjectUuid: "123e4567-
|
|
122
|
-
fulfilledByObjectUuid: "123e4567-
|
|
116
|
+
uuid: "123e4567-1d34-4acb-b714-2313f6a4e5eb",
|
|
117
|
+
jobUuid: "123e4567-fe02-4710-86f0-2313ffc2a0db",
|
|
118
|
+
completedTimestamp: "2025-08-01 12:00:00",
|
|
119
|
+
completedByStaffUuid: "123e4567-3320-474b-9e29-2313f5ed3f9b",
|
|
120
|
+
completedDuringCheckinUuid: "123e4567-f003-47e4-b51d-2313f37544ab",
|
|
121
|
+
regardingObjectUuid: "123e4567-6e28-49b1-9fd4-2313fdbc608b",
|
|
122
|
+
fulfilledByObjectUuid: "123e4567-9074-4896-ba73-2313f5a4456b",
|
|
123
123
|
assignedToStaffUuids: [
|
|
124
|
-
"123e4567-
|
|
124
|
+
"123e4567-42c3-4704-90e5-2313fb6abd7b",
|
|
125
125
|
],
|
|
126
|
-
assignedTimestamp: "2025-
|
|
127
|
-
assignedByStaffUuid: "123e4567-
|
|
126
|
+
assignedTimestamp: "2025-08-01 12:00:00",
|
|
127
|
+
assignedByStaffUuid: "123e4567-4814-4a58-9099-2313fe7c5dcb",
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
console.log(result);
|
|
@@ -151,18 +151,18 @@ const serviceM8 = new ServiceM8Core({
|
|
|
151
151
|
|
|
152
152
|
async function run() {
|
|
153
153
|
const res = await jobChecklistsCreateJobChecklists(serviceM8, {
|
|
154
|
-
uuid: "123e4567-
|
|
155
|
-
jobUuid: "123e4567-
|
|
156
|
-
completedTimestamp: "2025-
|
|
157
|
-
completedByStaffUuid: "123e4567-
|
|
158
|
-
completedDuringCheckinUuid: "123e4567-
|
|
159
|
-
regardingObjectUuid: "123e4567-
|
|
160
|
-
fulfilledByObjectUuid: "123e4567-
|
|
154
|
+
uuid: "123e4567-1d34-4acb-b714-2313f6a4e5eb",
|
|
155
|
+
jobUuid: "123e4567-fe02-4710-86f0-2313ffc2a0db",
|
|
156
|
+
completedTimestamp: "2025-08-01 12:00:00",
|
|
157
|
+
completedByStaffUuid: "123e4567-3320-474b-9e29-2313f5ed3f9b",
|
|
158
|
+
completedDuringCheckinUuid: "123e4567-f003-47e4-b51d-2313f37544ab",
|
|
159
|
+
regardingObjectUuid: "123e4567-6e28-49b1-9fd4-2313fdbc608b",
|
|
160
|
+
fulfilledByObjectUuid: "123e4567-9074-4896-ba73-2313f5a4456b",
|
|
161
161
|
assignedToStaffUuids: [
|
|
162
|
-
"123e4567-
|
|
162
|
+
"123e4567-42c3-4704-90e5-2313fb6abd7b",
|
|
163
163
|
],
|
|
164
|
-
assignedTimestamp: "2025-
|
|
165
|
-
assignedByStaffUuid: "123e4567-
|
|
164
|
+
assignedTimestamp: "2025-08-01 12:00:00",
|
|
165
|
+
assignedByStaffUuid: "123e4567-4814-4a58-9099-2313fe7c5dcb",
|
|
166
166
|
});
|
|
167
167
|
if (res.ok) {
|
|
168
168
|
const { value: result } = res;
|
|
@@ -293,18 +293,18 @@ async function run() {
|
|
|
293
293
|
const result = await serviceM8.jobChecklists.updateJobChecklists({
|
|
294
294
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
295
295
|
jobChecklist: {
|
|
296
|
-
uuid: "123e4567-
|
|
297
|
-
jobUuid: "123e4567-
|
|
298
|
-
completedTimestamp: "2025-
|
|
299
|
-
completedByStaffUuid: "123e4567-
|
|
300
|
-
completedDuringCheckinUuid: "123e4567-
|
|
301
|
-
regardingObjectUuid: "123e4567-
|
|
302
|
-
fulfilledByObjectUuid: "123e4567-
|
|
296
|
+
uuid: "123e4567-1d34-4acb-b714-2313f6a4e5eb",
|
|
297
|
+
jobUuid: "123e4567-fe02-4710-86f0-2313ffc2a0db",
|
|
298
|
+
completedTimestamp: "2025-08-01 12:00:00",
|
|
299
|
+
completedByStaffUuid: "123e4567-3320-474b-9e29-2313f5ed3f9b",
|
|
300
|
+
completedDuringCheckinUuid: "123e4567-f003-47e4-b51d-2313f37544ab",
|
|
301
|
+
regardingObjectUuid: "123e4567-6e28-49b1-9fd4-2313fdbc608b",
|
|
302
|
+
fulfilledByObjectUuid: "123e4567-9074-4896-ba73-2313f5a4456b",
|
|
303
303
|
assignedToStaffUuids: [
|
|
304
|
-
"123e4567-
|
|
304
|
+
"123e4567-42c3-4704-90e5-2313fb6abd7b",
|
|
305
305
|
],
|
|
306
|
-
assignedTimestamp: "2025-
|
|
307
|
-
assignedByStaffUuid: "123e4567-
|
|
306
|
+
assignedTimestamp: "2025-08-01 12:00:00",
|
|
307
|
+
assignedByStaffUuid: "123e4567-4814-4a58-9099-2313fe7c5dcb",
|
|
308
308
|
},
|
|
309
309
|
});
|
|
310
310
|
|
|
@@ -334,18 +334,18 @@ async function run() {
|
|
|
334
334
|
const res = await jobChecklistsUpdateJobChecklists(serviceM8, {
|
|
335
335
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
336
336
|
jobChecklist: {
|
|
337
|
-
uuid: "123e4567-
|
|
338
|
-
jobUuid: "123e4567-
|
|
339
|
-
completedTimestamp: "2025-
|
|
340
|
-
completedByStaffUuid: "123e4567-
|
|
341
|
-
completedDuringCheckinUuid: "123e4567-
|
|
342
|
-
regardingObjectUuid: "123e4567-
|
|
343
|
-
fulfilledByObjectUuid: "123e4567-
|
|
337
|
+
uuid: "123e4567-1d34-4acb-b714-2313f6a4e5eb",
|
|
338
|
+
jobUuid: "123e4567-fe02-4710-86f0-2313ffc2a0db",
|
|
339
|
+
completedTimestamp: "2025-08-01 12:00:00",
|
|
340
|
+
completedByStaffUuid: "123e4567-3320-474b-9e29-2313f5ed3f9b",
|
|
341
|
+
completedDuringCheckinUuid: "123e4567-f003-47e4-b51d-2313f37544ab",
|
|
342
|
+
regardingObjectUuid: "123e4567-6e28-49b1-9fd4-2313fdbc608b",
|
|
343
|
+
fulfilledByObjectUuid: "123e4567-9074-4896-ba73-2313f5a4456b",
|
|
344
344
|
assignedToStaffUuids: [
|
|
345
|
-
"123e4567-
|
|
345
|
+
"123e4567-42c3-4704-90e5-2313fb6abd7b",
|
|
346
346
|
],
|
|
347
|
-
assignedTimestamp: "2025-
|
|
348
|
-
assignedByStaffUuid: "123e4567-
|
|
347
|
+
assignedTimestamp: "2025-08-01 12:00:00",
|
|
348
|
+
assignedByStaffUuid: "123e4567-4814-4a58-9099-2313fe7c5dcb",
|
|
349
349
|
},
|
|
350
350
|
});
|
|
351
351
|
if (res.ok) {
|
|
@@ -123,8 +123,8 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.jobContacts.createJobContacts({
|
|
126
|
-
uuid: "123e4567-
|
|
127
|
-
jobUuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-bacf-4605-b276-2313fe4b26eb",
|
|
127
|
+
jobUuid: "123e4567-4f84-4722-bceb-2313f1a93dab",
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
console.log(result);
|
|
@@ -151,8 +151,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
151
151
|
|
|
152
152
|
async function run() {
|
|
153
153
|
const res = await jobContactsCreateJobContacts(serviceM8, {
|
|
154
|
-
uuid: "123e4567-
|
|
155
|
-
jobUuid: "123e4567-
|
|
154
|
+
uuid: "123e4567-bacf-4605-b276-2313fe4b26eb",
|
|
155
|
+
jobUuid: "123e4567-4f84-4722-bceb-2313f1a93dab",
|
|
156
156
|
});
|
|
157
157
|
if (res.ok) {
|
|
158
158
|
const { value: result } = res;
|
|
@@ -293,8 +293,8 @@ async function run() {
|
|
|
293
293
|
const result = await serviceM8.jobContacts.updateJobContacts({
|
|
294
294
|
uuid: "9ce8245c-9fb9-4361-8f7f-25eba557ff71",
|
|
295
295
|
jobContact: {
|
|
296
|
-
uuid: "123e4567-
|
|
297
|
-
jobUuid: "123e4567-
|
|
296
|
+
uuid: "123e4567-bacf-4605-b276-2313fe4b26eb",
|
|
297
|
+
jobUuid: "123e4567-4f84-4722-bceb-2313f1a93dab",
|
|
298
298
|
},
|
|
299
299
|
});
|
|
300
300
|
|
|
@@ -324,8 +324,8 @@ async function run() {
|
|
|
324
324
|
const res = await jobContactsUpdateJobContacts(serviceM8, {
|
|
325
325
|
uuid: "9ce8245c-9fb9-4361-8f7f-25eba557ff71",
|
|
326
326
|
jobContact: {
|
|
327
|
-
uuid: "123e4567-
|
|
328
|
-
jobUuid: "123e4567-
|
|
327
|
+
uuid: "123e4567-bacf-4605-b276-2313fe4b26eb",
|
|
328
|
+
jobUuid: "123e4567-4f84-4722-bceb-2313f1a93dab",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
331
331
|
if (res.ok) {
|
|
@@ -113,9 +113,9 @@ const serviceM8 = new ServiceM8({
|
|
|
113
113
|
|
|
114
114
|
async function run() {
|
|
115
115
|
const result = await serviceM8.jobMaterialBundles.createJobMaterialBundles({
|
|
116
|
-
uuid: "123e4567-
|
|
117
|
-
materialBundleUuid: "123e4567-
|
|
118
|
-
jobUuid: "123e4567-
|
|
116
|
+
uuid: "123e4567-3043-4893-9d00-2313fd8b969b",
|
|
117
|
+
materialBundleUuid: "123e4567-cfad-4db5-b93a-2313f7663a1b",
|
|
118
|
+
jobUuid: "123e4567-47c3-41c6-b302-2313f350e97b",
|
|
119
119
|
});
|
|
120
120
|
|
|
121
121
|
console.log(result);
|
|
@@ -142,9 +142,9 @@ const serviceM8 = new ServiceM8Core({
|
|
|
142
142
|
|
|
143
143
|
async function run() {
|
|
144
144
|
const res = await jobMaterialBundlesCreateJobMaterialBundles(serviceM8, {
|
|
145
|
-
uuid: "123e4567-
|
|
146
|
-
materialBundleUuid: "123e4567-
|
|
147
|
-
jobUuid: "123e4567-
|
|
145
|
+
uuid: "123e4567-3043-4893-9d00-2313fd8b969b",
|
|
146
|
+
materialBundleUuid: "123e4567-cfad-4db5-b93a-2313f7663a1b",
|
|
147
|
+
jobUuid: "123e4567-47c3-41c6-b302-2313f350e97b",
|
|
148
148
|
});
|
|
149
149
|
if (res.ok) {
|
|
150
150
|
const { value: result } = res;
|
|
@@ -275,9 +275,9 @@ async function run() {
|
|
|
275
275
|
const result = await serviceM8.jobMaterialBundles.updateJobMaterialBundles({
|
|
276
276
|
uuid: "6419b5e7-8edd-4c69-9648-b6ed7431256b",
|
|
277
277
|
jobMaterialBundle: {
|
|
278
|
-
uuid: "123e4567-
|
|
279
|
-
materialBundleUuid: "123e4567-
|
|
280
|
-
jobUuid: "123e4567-
|
|
278
|
+
uuid: "123e4567-3043-4893-9d00-2313fd8b969b",
|
|
279
|
+
materialBundleUuid: "123e4567-cfad-4db5-b93a-2313f7663a1b",
|
|
280
|
+
jobUuid: "123e4567-47c3-41c6-b302-2313f350e97b",
|
|
281
281
|
},
|
|
282
282
|
});
|
|
283
283
|
|
|
@@ -307,9 +307,9 @@ async function run() {
|
|
|
307
307
|
const res = await jobMaterialBundlesUpdateJobMaterialBundles(serviceM8, {
|
|
308
308
|
uuid: "6419b5e7-8edd-4c69-9648-b6ed7431256b",
|
|
309
309
|
jobMaterialBundle: {
|
|
310
|
-
uuid: "123e4567-
|
|
311
|
-
materialBundleUuid: "123e4567-
|
|
312
|
-
jobUuid: "123e4567-
|
|
310
|
+
uuid: "123e4567-3043-4893-9d00-2313fd8b969b",
|
|
311
|
+
materialBundleUuid: "123e4567-cfad-4db5-b93a-2313f7663a1b",
|
|
312
|
+
jobUuid: "123e4567-47c3-41c6-b302-2313f350e97b",
|
|
313
313
|
},
|
|
314
314
|
});
|
|
315
315
|
if (res.ok) {
|
|
@@ -123,12 +123,12 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.jobMaterials.createJobMaterials({
|
|
126
|
-
uuid: "123e4567-
|
|
127
|
-
jobUuid: "123e4567-
|
|
128
|
-
materialUuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-333d-4dc7-a08a-2313fd47ab0b",
|
|
127
|
+
jobUuid: "123e4567-217a-4219-bea6-2313f70dbf6b",
|
|
128
|
+
materialUuid: "123e4567-89ba-4b56-b7f7-2313fd9f1e7b",
|
|
129
129
|
quantity: "<value>",
|
|
130
|
-
taxRateUuid: "123e4567-
|
|
131
|
-
jobMaterialBundleUuid: "123e4567-
|
|
130
|
+
taxRateUuid: "123e4567-698c-4b3c-a93a-2313f57deefb",
|
|
131
|
+
jobMaterialBundleUuid: "123e4567-d9a7-4203-a6c1-2313f3af974b",
|
|
132
132
|
});
|
|
133
133
|
|
|
134
134
|
console.log(result);
|
|
@@ -155,12 +155,12 @@ const serviceM8 = new ServiceM8Core({
|
|
|
155
155
|
|
|
156
156
|
async function run() {
|
|
157
157
|
const res = await jobMaterialsCreateJobMaterials(serviceM8, {
|
|
158
|
-
uuid: "123e4567-
|
|
159
|
-
jobUuid: "123e4567-
|
|
160
|
-
materialUuid: "123e4567-
|
|
158
|
+
uuid: "123e4567-333d-4dc7-a08a-2313fd47ab0b",
|
|
159
|
+
jobUuid: "123e4567-217a-4219-bea6-2313f70dbf6b",
|
|
160
|
+
materialUuid: "123e4567-89ba-4b56-b7f7-2313fd9f1e7b",
|
|
161
161
|
quantity: "<value>",
|
|
162
|
-
taxRateUuid: "123e4567-
|
|
163
|
-
jobMaterialBundleUuid: "123e4567-
|
|
162
|
+
taxRateUuid: "123e4567-698c-4b3c-a93a-2313f57deefb",
|
|
163
|
+
jobMaterialBundleUuid: "123e4567-d9a7-4203-a6c1-2313f3af974b",
|
|
164
164
|
});
|
|
165
165
|
if (res.ok) {
|
|
166
166
|
const { value: result } = res;
|
|
@@ -301,12 +301,12 @@ async function run() {
|
|
|
301
301
|
const result = await serviceM8.jobMaterials.updateJobMaterials({
|
|
302
302
|
uuid: "0afa4bc5-4269-47e6-81bd-da437fd2e097",
|
|
303
303
|
jobMaterial: {
|
|
304
|
-
uuid: "123e4567-
|
|
305
|
-
jobUuid: "123e4567-
|
|
306
|
-
materialUuid: "123e4567-
|
|
304
|
+
uuid: "123e4567-333d-4dc7-a08a-2313fd47ab0b",
|
|
305
|
+
jobUuid: "123e4567-217a-4219-bea6-2313f70dbf6b",
|
|
306
|
+
materialUuid: "123e4567-89ba-4b56-b7f7-2313fd9f1e7b",
|
|
307
307
|
quantity: "<value>",
|
|
308
|
-
taxRateUuid: "123e4567-
|
|
309
|
-
jobMaterialBundleUuid: "123e4567-
|
|
308
|
+
taxRateUuid: "123e4567-698c-4b3c-a93a-2313f57deefb",
|
|
309
|
+
jobMaterialBundleUuid: "123e4567-d9a7-4203-a6c1-2313f3af974b",
|
|
310
310
|
},
|
|
311
311
|
});
|
|
312
312
|
|
|
@@ -336,12 +336,12 @@ async function run() {
|
|
|
336
336
|
const res = await jobMaterialsUpdateJobMaterials(serviceM8, {
|
|
337
337
|
uuid: "0afa4bc5-4269-47e6-81bd-da437fd2e097",
|
|
338
338
|
jobMaterial: {
|
|
339
|
-
uuid: "123e4567-
|
|
340
|
-
jobUuid: "123e4567-
|
|
341
|
-
materialUuid: "123e4567-
|
|
339
|
+
uuid: "123e4567-333d-4dc7-a08a-2313fd47ab0b",
|
|
340
|
+
jobUuid: "123e4567-217a-4219-bea6-2313f70dbf6b",
|
|
341
|
+
materialUuid: "123e4567-89ba-4b56-b7f7-2313fd9f1e7b",
|
|
342
342
|
quantity: "<value>",
|
|
343
|
-
taxRateUuid: "123e4567-
|
|
344
|
-
jobMaterialBundleUuid: "123e4567-
|
|
343
|
+
taxRateUuid: "123e4567-698c-4b3c-a93a-2313f57deefb",
|
|
344
|
+
jobMaterialBundleUuid: "123e4567-d9a7-4203-a6c1-2313f3af974b",
|
|
345
345
|
},
|
|
346
346
|
});
|
|
347
347
|
if (res.ok) {
|
|
@@ -113,10 +113,10 @@ const serviceM8 = new ServiceM8({
|
|
|
113
113
|
|
|
114
114
|
async function run() {
|
|
115
115
|
const result = await serviceM8.jobPayments.createJobPayments({
|
|
116
|
-
uuid: "123e4567-
|
|
117
|
-
jobUuid: "123e4567-
|
|
118
|
-
actionedByUuid: "123e4567-
|
|
119
|
-
attachmentUuid: "123e4567-
|
|
116
|
+
uuid: "123e4567-d6ac-4d0b-af48-2313f350450b",
|
|
117
|
+
jobUuid: "123e4567-aac0-4801-8ca4-2313f83689db",
|
|
118
|
+
actionedByUuid: "123e4567-404a-45c2-9c72-2313f40cd75b",
|
|
119
|
+
attachmentUuid: "123e4567-07b8-4c7e-87e4-2313f20480ab",
|
|
120
120
|
});
|
|
121
121
|
|
|
122
122
|
console.log(result);
|
|
@@ -143,10 +143,10 @@ const serviceM8 = new ServiceM8Core({
|
|
|
143
143
|
|
|
144
144
|
async function run() {
|
|
145
145
|
const res = await jobPaymentsCreateJobPayments(serviceM8, {
|
|
146
|
-
uuid: "123e4567-
|
|
147
|
-
jobUuid: "123e4567-
|
|
148
|
-
actionedByUuid: "123e4567-
|
|
149
|
-
attachmentUuid: "123e4567-
|
|
146
|
+
uuid: "123e4567-d6ac-4d0b-af48-2313f350450b",
|
|
147
|
+
jobUuid: "123e4567-aac0-4801-8ca4-2313f83689db",
|
|
148
|
+
actionedByUuid: "123e4567-404a-45c2-9c72-2313f40cd75b",
|
|
149
|
+
attachmentUuid: "123e4567-07b8-4c7e-87e4-2313f20480ab",
|
|
150
150
|
});
|
|
151
151
|
if (res.ok) {
|
|
152
152
|
const { value: result } = res;
|
|
@@ -277,10 +277,10 @@ async function run() {
|
|
|
277
277
|
const result = await serviceM8.jobPayments.updateJobPayments({
|
|
278
278
|
uuid: "11677578-ba16-4ac4-b2d7-62ad0de4655c",
|
|
279
279
|
jobPayment: {
|
|
280
|
-
uuid: "123e4567-
|
|
281
|
-
jobUuid: "123e4567-
|
|
282
|
-
actionedByUuid: "123e4567-
|
|
283
|
-
attachmentUuid: "123e4567-
|
|
280
|
+
uuid: "123e4567-d6ac-4d0b-af48-2313f350450b",
|
|
281
|
+
jobUuid: "123e4567-aac0-4801-8ca4-2313f83689db",
|
|
282
|
+
actionedByUuid: "123e4567-404a-45c2-9c72-2313f40cd75b",
|
|
283
|
+
attachmentUuid: "123e4567-07b8-4c7e-87e4-2313f20480ab",
|
|
284
284
|
},
|
|
285
285
|
});
|
|
286
286
|
|
|
@@ -310,10 +310,10 @@ async function run() {
|
|
|
310
310
|
const res = await jobPaymentsUpdateJobPayments(serviceM8, {
|
|
311
311
|
uuid: "11677578-ba16-4ac4-b2d7-62ad0de4655c",
|
|
312
312
|
jobPayment: {
|
|
313
|
-
uuid: "123e4567-
|
|
314
|
-
jobUuid: "123e4567-
|
|
315
|
-
actionedByUuid: "123e4567-
|
|
316
|
-
attachmentUuid: "123e4567-
|
|
313
|
+
uuid: "123e4567-d6ac-4d0b-af48-2313f350450b",
|
|
314
|
+
jobUuid: "123e4567-aac0-4801-8ca4-2313f83689db",
|
|
315
|
+
actionedByUuid: "123e4567-404a-45c2-9c72-2313f40cd75b",
|
|
316
|
+
attachmentUuid: "123e4567-07b8-4c7e-87e4-2313f20480ab",
|
|
317
317
|
},
|
|
318
318
|
});
|
|
319
319
|
if (res.ok) {
|
|
@@ -123,7 +123,7 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.jobQueues.createJobQueues({
|
|
126
|
-
uuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-41a7-49fd-b54b-2313feb0373b",
|
|
127
127
|
});
|
|
128
128
|
|
|
129
129
|
console.log(result);
|
|
@@ -150,7 +150,7 @@ const serviceM8 = new ServiceM8Core({
|
|
|
150
150
|
|
|
151
151
|
async function run() {
|
|
152
152
|
const res = await jobQueuesCreateJobQueues(serviceM8, {
|
|
153
|
-
uuid: "123e4567-
|
|
153
|
+
uuid: "123e4567-41a7-49fd-b54b-2313feb0373b",
|
|
154
154
|
});
|
|
155
155
|
if (res.ok) {
|
|
156
156
|
const { value: result } = res;
|
|
@@ -291,7 +291,7 @@ async function run() {
|
|
|
291
291
|
const result = await serviceM8.jobQueues.updateJobQueues({
|
|
292
292
|
uuid: "d5fb31ee-995a-4e2f-8fa6-92068fea17a2",
|
|
293
293
|
queue: {
|
|
294
|
-
uuid: "123e4567-
|
|
294
|
+
uuid: "123e4567-41a7-49fd-b54b-2313feb0373b",
|
|
295
295
|
},
|
|
296
296
|
});
|
|
297
297
|
|
|
@@ -321,7 +321,7 @@ async function run() {
|
|
|
321
321
|
const res = await jobQueuesUpdateJobQueues(serviceM8, {
|
|
322
322
|
uuid: "d5fb31ee-995a-4e2f-8fa6-92068fea17a2",
|
|
323
323
|
queue: {
|
|
324
|
-
uuid: "123e4567-
|
|
324
|
+
uuid: "123e4567-41a7-49fd-b54b-2313feb0373b",
|
|
325
325
|
},
|
|
326
326
|
});
|
|
327
327
|
if (res.ok) {
|