servicem8 0.9.36 → 0.9.37
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 +300 -296
- package/bin/mcp-server.js +10 -10
- 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/formfield.d.ts +28 -4
- package/dist/commonjs/models/components/formfield.d.ts.map +1 -1
- package/dist/commonjs/models/components/formfield.js +4 -4
- package/dist/commonjs/models/components/formfield.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/formfield.d.ts +28 -4
- package/dist/esm/models/components/formfield.d.ts.map +1 -1
- package/dist/esm/models/components/formfield.js +4 -4
- package/dist/esm/models/components/formfield.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/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 +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/formfield.ts +32 -8
|
@@ -124,7 +124,7 @@ const serviceM8 = new ServiceM8({
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.categories.createCategories({
|
|
126
126
|
name: "<value>",
|
|
127
|
-
uuid: "123e4567-
|
|
127
|
+
uuid: "123e4567-6681-41da-a7c9-231efc583d0b",
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
console.log(result);
|
|
@@ -152,7 +152,7 @@ const serviceM8 = new ServiceM8Core({
|
|
|
152
152
|
async function run() {
|
|
153
153
|
const res = await categoriesCreateCategories(serviceM8, {
|
|
154
154
|
name: "<value>",
|
|
155
|
-
uuid: "123e4567-
|
|
155
|
+
uuid: "123e4567-6681-41da-a7c9-231efc583d0b",
|
|
156
156
|
});
|
|
157
157
|
if (res.ok) {
|
|
158
158
|
const { value: result } = res;
|
|
@@ -294,7 +294,7 @@ async function run() {
|
|
|
294
294
|
uuid: "c830c901-e3ae-427d-8f08-cf28c94b319f",
|
|
295
295
|
category: {
|
|
296
296
|
name: "<value>",
|
|
297
|
-
uuid: "123e4567-
|
|
297
|
+
uuid: "123e4567-6681-41da-a7c9-231efc583d0b",
|
|
298
298
|
},
|
|
299
299
|
});
|
|
300
300
|
|
|
@@ -325,7 +325,7 @@ async function run() {
|
|
|
325
325
|
uuid: "c830c901-e3ae-427d-8f08-cf28c94b319f",
|
|
326
326
|
category: {
|
|
327
327
|
name: "<value>",
|
|
328
|
-
uuid: "123e4567-
|
|
328
|
+
uuid: "123e4567-6681-41da-a7c9-231efc583d0b",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
331
331
|
if (res.ok) {
|
|
@@ -124,8 +124,8 @@ const serviceM8 = new ServiceM8({
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.clients.createClients({
|
|
126
126
|
name: "<value>",
|
|
127
|
-
uuid: "123e4567-
|
|
128
|
-
taxRateUuid: "123e4567-
|
|
127
|
+
uuid: "123e4567-cda6-46f8-a965-231efa2aeadb",
|
|
128
|
+
taxRateUuid: "123e4567-3ef7-493f-a007-231ef86799ab",
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
console.log(result);
|
|
@@ -153,8 +153,8 @@ const serviceM8 = new ServiceM8Core({
|
|
|
153
153
|
async function run() {
|
|
154
154
|
const res = await clientsCreateClients(serviceM8, {
|
|
155
155
|
name: "<value>",
|
|
156
|
-
uuid: "123e4567-
|
|
157
|
-
taxRateUuid: "123e4567-
|
|
156
|
+
uuid: "123e4567-cda6-46f8-a965-231efa2aeadb",
|
|
157
|
+
taxRateUuid: "123e4567-3ef7-493f-a007-231ef86799ab",
|
|
158
158
|
});
|
|
159
159
|
if (res.ok) {
|
|
160
160
|
const { value: result } = res;
|
|
@@ -296,8 +296,8 @@ async function run() {
|
|
|
296
296
|
uuid: "55f6bcc0-3bb7-4509-b13b-98c02374f910",
|
|
297
297
|
company: {
|
|
298
298
|
name: "<value>",
|
|
299
|
-
uuid: "123e4567-
|
|
300
|
-
taxRateUuid: "123e4567-
|
|
299
|
+
uuid: "123e4567-cda6-46f8-a965-231efa2aeadb",
|
|
300
|
+
taxRateUuid: "123e4567-3ef7-493f-a007-231ef86799ab",
|
|
301
301
|
},
|
|
302
302
|
});
|
|
303
303
|
|
|
@@ -328,8 +328,8 @@ async function run() {
|
|
|
328
328
|
uuid: "55f6bcc0-3bb7-4509-b13b-98c02374f910",
|
|
329
329
|
company: {
|
|
330
330
|
name: "<value>",
|
|
331
|
-
uuid: "123e4567-
|
|
332
|
-
taxRateUuid: "123e4567-
|
|
331
|
+
uuid: "123e4567-cda6-46f8-a965-231efa2aeadb",
|
|
332
|
+
taxRateUuid: "123e4567-3ef7-493f-a007-231ef86799ab",
|
|
333
333
|
},
|
|
334
334
|
});
|
|
335
335
|
if (res.ok) {
|
|
@@ -123,8 +123,8 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.companyContacts.createCompanyContacts({
|
|
126
|
-
uuid: "123e4567-
|
|
127
|
-
companyUuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-ba3e-4d9d-941c-231ef2be166b",
|
|
127
|
+
companyUuid: "123e4567-83eb-4341-8bd6-231ef47cdb9b",
|
|
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 companyContactsCreateCompanyContacts(serviceM8, {
|
|
154
|
-
uuid: "123e4567-
|
|
155
|
-
companyUuid: "123e4567-
|
|
154
|
+
uuid: "123e4567-ba3e-4d9d-941c-231ef2be166b",
|
|
155
|
+
companyUuid: "123e4567-83eb-4341-8bd6-231ef47cdb9b",
|
|
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.companyContacts.updateCompanyContacts({
|
|
294
294
|
uuid: "14a84f05-390e-4d88-ad00-a75bba477a48",
|
|
295
295
|
companyContact: {
|
|
296
|
-
uuid: "123e4567-
|
|
297
|
-
companyUuid: "123e4567-
|
|
296
|
+
uuid: "123e4567-ba3e-4d9d-941c-231ef2be166b",
|
|
297
|
+
companyUuid: "123e4567-83eb-4341-8bd6-231ef47cdb9b",
|
|
298
298
|
},
|
|
299
299
|
});
|
|
300
300
|
|
|
@@ -324,8 +324,8 @@ async function run() {
|
|
|
324
324
|
const res = await companyContactsUpdateCompanyContacts(serviceM8, {
|
|
325
325
|
uuid: "14a84f05-390e-4d88-ad00-a75bba477a48",
|
|
326
326
|
companyContact: {
|
|
327
|
-
uuid: "123e4567-
|
|
328
|
-
companyUuid: "123e4567-
|
|
327
|
+
uuid: "123e4567-ba3e-4d9d-941c-231ef2be166b",
|
|
328
|
+
companyUuid: "123e4567-83eb-4341-8bd6-231ef47cdb9b",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
331
331
|
if (res.ok) {
|
|
@@ -123,7 +123,7 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.documentTemplates.createDocumentTemplates({
|
|
126
|
-
uuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-5206-45da-9928-231efd9d626b",
|
|
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 documentTemplatesCreateDocumentTemplates(serviceM8, {
|
|
153
|
-
uuid: "123e4567-
|
|
153
|
+
uuid: "123e4567-5206-45da-9928-231efd9d626b",
|
|
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.documentTemplates.updateDocumentTemplates({
|
|
292
292
|
uuid: "e371a482-2feb-4b5b-a72a-56796a683d72",
|
|
293
293
|
documentTemplate: {
|
|
294
|
-
uuid: "123e4567-
|
|
294
|
+
uuid: "123e4567-5206-45da-9928-231efd9d626b",
|
|
295
295
|
},
|
|
296
296
|
});
|
|
297
297
|
|
|
@@ -321,7 +321,7 @@ async function run() {
|
|
|
321
321
|
const res = await documentTemplatesUpdateDocumentTemplates(serviceM8, {
|
|
322
322
|
uuid: "e371a482-2feb-4b5b-a72a-56796a683d72",
|
|
323
323
|
documentTemplate: {
|
|
324
|
-
uuid: "123e4567-
|
|
324
|
+
uuid: "123e4567-5206-45da-9928-231efd9d626b",
|
|
325
325
|
},
|
|
326
326
|
});
|
|
327
327
|
if (res.ok) {
|
|
@@ -123,7 +123,7 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.emailTemplates.createEmailTemplates({
|
|
126
|
-
uuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-c84c-48ba-a513-231ef637561b",
|
|
127
127
|
name: "<value>",
|
|
128
128
|
});
|
|
129
129
|
|
|
@@ -151,7 +151,7 @@ const serviceM8 = new ServiceM8Core({
|
|
|
151
151
|
|
|
152
152
|
async function run() {
|
|
153
153
|
const res = await emailTemplatesCreateEmailTemplates(serviceM8, {
|
|
154
|
-
uuid: "123e4567-
|
|
154
|
+
uuid: "123e4567-c84c-48ba-a513-231ef637561b",
|
|
155
155
|
name: "<value>",
|
|
156
156
|
});
|
|
157
157
|
if (res.ok) {
|
|
@@ -293,7 +293,7 @@ async function run() {
|
|
|
293
293
|
const result = await serviceM8.emailTemplates.updateEmailTemplates({
|
|
294
294
|
uuid: "a3ce5f33-781a-4062-b068-2e3f8605b008",
|
|
295
295
|
emailTemplate: {
|
|
296
|
-
uuid: "123e4567-
|
|
296
|
+
uuid: "123e4567-c84c-48ba-a513-231ef637561b",
|
|
297
297
|
name: "<value>",
|
|
298
298
|
},
|
|
299
299
|
});
|
|
@@ -324,7 +324,7 @@ async function run() {
|
|
|
324
324
|
const res = await emailTemplatesUpdateEmailTemplates(serviceM8, {
|
|
325
325
|
uuid: "a3ce5f33-781a-4062-b068-2e3f8605b008",
|
|
326
326
|
emailTemplate: {
|
|
327
|
-
uuid: "123e4567-
|
|
327
|
+
uuid: "123e4567-c84c-48ba-a513-231ef637561b",
|
|
328
328
|
name: "<value>",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
@@ -123,8 +123,8 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.feedback.createFeedback({
|
|
126
|
-
uuid: "123e4567-
|
|
127
|
-
relatedObjectUuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-b440-49ef-89fd-231ef48e504b",
|
|
127
|
+
relatedObjectUuid: "123e4567-0dea-48c3-9700-231ef5ad851b",
|
|
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 feedbackCreateFeedback(serviceM8, {
|
|
154
|
-
uuid: "123e4567-
|
|
155
|
-
relatedObjectUuid: "123e4567-
|
|
154
|
+
uuid: "123e4567-b440-49ef-89fd-231ef48e504b",
|
|
155
|
+
relatedObjectUuid: "123e4567-0dea-48c3-9700-231ef5ad851b",
|
|
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.feedback.updateFeedback({
|
|
294
294
|
uuid: "4b9b8627-caa7-402a-94b0-02cb8641823c",
|
|
295
295
|
feedback: {
|
|
296
|
-
uuid: "123e4567-
|
|
297
|
-
relatedObjectUuid: "123e4567-
|
|
296
|
+
uuid: "123e4567-b440-49ef-89fd-231ef48e504b",
|
|
297
|
+
relatedObjectUuid: "123e4567-0dea-48c3-9700-231ef5ad851b",
|
|
298
298
|
},
|
|
299
299
|
});
|
|
300
300
|
|
|
@@ -324,8 +324,8 @@ async function run() {
|
|
|
324
324
|
const res = await feedbackUpdateFeedback(serviceM8, {
|
|
325
325
|
uuid: "4b9b8627-caa7-402a-94b0-02cb8641823c",
|
|
326
326
|
feedback: {
|
|
327
|
-
uuid: "123e4567-
|
|
328
|
-
relatedObjectUuid: "123e4567-
|
|
327
|
+
uuid: "123e4567-b440-49ef-89fd-231ef48e504b",
|
|
328
|
+
relatedObjectUuid: "123e4567-0dea-48c3-9700-231ef5ad851b",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
331
331
|
if (res.ok) {
|
|
@@ -123,8 +123,8 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.formFields.createFormFields({
|
|
126
|
-
uuid: "123e4567-
|
|
127
|
-
formUuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-8959-4e71-a440-231efbceb33b",
|
|
127
|
+
formUuid: "123e4567-3336-4f31-b5d5-231efbefc3eb",
|
|
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 formFieldsCreateFormFields(serviceM8, {
|
|
154
|
-
uuid: "123e4567-
|
|
155
|
-
formUuid: "123e4567-
|
|
154
|
+
uuid: "123e4567-8959-4e71-a440-231efbceb33b",
|
|
155
|
+
formUuid: "123e4567-3336-4f31-b5d5-231efbefc3eb",
|
|
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.formFields.updateFormFields({
|
|
294
294
|
uuid: "21a23c6a-1fd9-4be5-84ed-065250f0e6a3",
|
|
295
295
|
formField: {
|
|
296
|
-
uuid: "123e4567-
|
|
297
|
-
formUuid: "123e4567-
|
|
296
|
+
uuid: "123e4567-8959-4e71-a440-231efbceb33b",
|
|
297
|
+
formUuid: "123e4567-3336-4f31-b5d5-231efbefc3eb",
|
|
298
298
|
},
|
|
299
299
|
});
|
|
300
300
|
|
|
@@ -324,8 +324,8 @@ async function run() {
|
|
|
324
324
|
const res = await formFieldsUpdateFormFields(serviceM8, {
|
|
325
325
|
uuid: "21a23c6a-1fd9-4be5-84ed-065250f0e6a3",
|
|
326
326
|
formField: {
|
|
327
|
-
uuid: "123e4567-
|
|
328
|
-
formUuid: "123e4567-
|
|
327
|
+
uuid: "123e4567-8959-4e71-a440-231efbceb33b",
|
|
328
|
+
formUuid: "123e4567-3336-4f31-b5d5-231efbefc3eb",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
331
331
|
if (res.ok) {
|
|
@@ -123,8 +123,8 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.forms.createForms({
|
|
126
|
-
documentTemplateUuid: "123e4567-
|
|
127
|
-
uuid: "123e4567-
|
|
126
|
+
documentTemplateUuid: "123e4567-2c71-4964-b2e1-231ef7d90b3b",
|
|
127
|
+
uuid: "123e4567-506f-4823-8210-231efbde9d3b",
|
|
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 formsCreateForms(serviceM8, {
|
|
154
|
-
documentTemplateUuid: "123e4567-
|
|
155
|
-
uuid: "123e4567-
|
|
154
|
+
documentTemplateUuid: "123e4567-2c71-4964-b2e1-231ef7d90b3b",
|
|
155
|
+
uuid: "123e4567-506f-4823-8210-231efbde9d3b",
|
|
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.forms.updateForms({
|
|
294
294
|
uuid: "2473c622-cde4-4803-b91a-cd7a656f7e3b",
|
|
295
295
|
form: {
|
|
296
|
-
documentTemplateUuid: "123e4567-
|
|
297
|
-
uuid: "123e4567-
|
|
296
|
+
documentTemplateUuid: "123e4567-2c71-4964-b2e1-231ef7d90b3b",
|
|
297
|
+
uuid: "123e4567-506f-4823-8210-231efbde9d3b",
|
|
298
298
|
},
|
|
299
299
|
});
|
|
300
300
|
|
|
@@ -324,8 +324,8 @@ async function run() {
|
|
|
324
324
|
const res = await formsUpdateForms(serviceM8, {
|
|
325
325
|
uuid: "2473c622-cde4-4803-b91a-cd7a656f7e3b",
|
|
326
326
|
form: {
|
|
327
|
-
documentTemplateUuid: "123e4567-
|
|
328
|
-
uuid: "123e4567-
|
|
327
|
+
documentTemplateUuid: "123e4567-2c71-4964-b2e1-231ef7d90b3b",
|
|
328
|
+
uuid: "123e4567-506f-4823-8210-231efbde9d3b",
|
|
329
329
|
},
|
|
330
330
|
});
|
|
331
331
|
if (res.ok) {
|
|
@@ -123,15 +123,15 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.jobActivities.createJobActivities({
|
|
126
|
-
uuid: "123e4567-
|
|
127
|
-
jobUuid: "123e4567-
|
|
128
|
-
staffUuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-ee6c-45b2-8d04-231ef770d48b",
|
|
127
|
+
jobUuid: "123e4567-51e1-4d64-abaf-231ef3f7702b",
|
|
128
|
+
staffUuid: "123e4567-38a4-44a9-825a-231ef5b665fb",
|
|
129
129
|
startDate: "2025-08-01 12:00:00",
|
|
130
130
|
endDate: "2025-08-01 12:00:00",
|
|
131
131
|
hasBeenOpenedTimestamp: "2025-08-01 12:00:00",
|
|
132
|
-
allocatedByStaffUuid: "123e4567-
|
|
132
|
+
allocatedByStaffUuid: "123e4567-3b9e-4986-8941-231ef301953b",
|
|
133
133
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
134
|
-
materialUuid: "123e4567-
|
|
134
|
+
materialUuid: "123e4567-bec3-446f-ad99-231efcdde23b",
|
|
135
135
|
});
|
|
136
136
|
|
|
137
137
|
console.log(result);
|
|
@@ -158,15 +158,15 @@ const serviceM8 = new ServiceM8Core({
|
|
|
158
158
|
|
|
159
159
|
async function run() {
|
|
160
160
|
const res = await jobActivitiesCreateJobActivities(serviceM8, {
|
|
161
|
-
uuid: "123e4567-
|
|
162
|
-
jobUuid: "123e4567-
|
|
163
|
-
staffUuid: "123e4567-
|
|
161
|
+
uuid: "123e4567-ee6c-45b2-8d04-231ef770d48b",
|
|
162
|
+
jobUuid: "123e4567-51e1-4d64-abaf-231ef3f7702b",
|
|
163
|
+
staffUuid: "123e4567-38a4-44a9-825a-231ef5b665fb",
|
|
164
164
|
startDate: "2025-08-01 12:00:00",
|
|
165
165
|
endDate: "2025-08-01 12:00:00",
|
|
166
166
|
hasBeenOpenedTimestamp: "2025-08-01 12:00:00",
|
|
167
|
-
allocatedByStaffUuid: "123e4567-
|
|
167
|
+
allocatedByStaffUuid: "123e4567-3b9e-4986-8941-231ef301953b",
|
|
168
168
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
169
|
-
materialUuid: "123e4567-
|
|
169
|
+
materialUuid: "123e4567-bec3-446f-ad99-231efcdde23b",
|
|
170
170
|
});
|
|
171
171
|
if (res.ok) {
|
|
172
172
|
const { value: result } = res;
|
|
@@ -307,15 +307,15 @@ async function run() {
|
|
|
307
307
|
const result = await serviceM8.jobActivities.updateJobActivities({
|
|
308
308
|
uuid: "5ccaaaf0-ee37-4a96-a41a-cc701c3f1a65",
|
|
309
309
|
jobActivity: {
|
|
310
|
-
uuid: "123e4567-
|
|
311
|
-
jobUuid: "123e4567-
|
|
312
|
-
staffUuid: "123e4567-
|
|
310
|
+
uuid: "123e4567-ee6c-45b2-8d04-231ef770d48b",
|
|
311
|
+
jobUuid: "123e4567-51e1-4d64-abaf-231ef3f7702b",
|
|
312
|
+
staffUuid: "123e4567-38a4-44a9-825a-231ef5b665fb",
|
|
313
313
|
startDate: "2025-08-01 12:00:00",
|
|
314
314
|
endDate: "2025-08-01 12:00:00",
|
|
315
315
|
hasBeenOpenedTimestamp: "2025-08-01 12:00:00",
|
|
316
|
-
allocatedByStaffUuid: "123e4567-
|
|
316
|
+
allocatedByStaffUuid: "123e4567-3b9e-4986-8941-231ef301953b",
|
|
317
317
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
318
|
-
materialUuid: "123e4567-
|
|
318
|
+
materialUuid: "123e4567-bec3-446f-ad99-231efcdde23b",
|
|
319
319
|
},
|
|
320
320
|
});
|
|
321
321
|
|
|
@@ -345,15 +345,15 @@ async function run() {
|
|
|
345
345
|
const res = await jobActivitiesUpdateJobActivities(serviceM8, {
|
|
346
346
|
uuid: "5ccaaaf0-ee37-4a96-a41a-cc701c3f1a65",
|
|
347
347
|
jobActivity: {
|
|
348
|
-
uuid: "123e4567-
|
|
349
|
-
jobUuid: "123e4567-
|
|
350
|
-
staffUuid: "123e4567-
|
|
348
|
+
uuid: "123e4567-ee6c-45b2-8d04-231ef770d48b",
|
|
349
|
+
jobUuid: "123e4567-51e1-4d64-abaf-231ef3f7702b",
|
|
350
|
+
staffUuid: "123e4567-38a4-44a9-825a-231ef5b665fb",
|
|
351
351
|
startDate: "2025-08-01 12:00:00",
|
|
352
352
|
endDate: "2025-08-01 12:00:00",
|
|
353
353
|
hasBeenOpenedTimestamp: "2025-08-01 12:00:00",
|
|
354
|
-
allocatedByStaffUuid: "123e4567-
|
|
354
|
+
allocatedByStaffUuid: "123e4567-3b9e-4986-8941-231ef301953b",
|
|
355
355
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
356
|
-
materialUuid: "123e4567-
|
|
356
|
+
materialUuid: "123e4567-bec3-446f-ad99-231efcdde23b",
|
|
357
357
|
},
|
|
358
358
|
});
|
|
359
359
|
if (res.ok) {
|
|
@@ -123,13 +123,13 @@ 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-
|
|
126
|
+
uuid: "123e4567-ca97-44c1-97b8-231efb5598ab",
|
|
127
|
+
jobUuid: "123e4567-02e2-47ef-b40e-231efbb85a1b",
|
|
128
|
+
queueUuid: "123e4567-3b38-4f8f-9979-231efed268eb",
|
|
129
|
+
staffUuid: "123e4567-5308-40ba-88de-231efa9f8f9b",
|
|
130
130
|
allocationDate: "2025-08-01 12:00:00",
|
|
131
|
-
allocationWindowUuid: "123e4567-
|
|
132
|
-
allocatedByStaffUuid: "123e4567-
|
|
131
|
+
allocationWindowUuid: "123e4567-03ab-4ae7-9cfc-231ef37ef11b",
|
|
132
|
+
allocatedByStaffUuid: "123e4567-7257-42b8-89fb-231efd798c0b",
|
|
133
133
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
134
134
|
expiryTimestamp: "2025-08-01 12:00:00",
|
|
135
135
|
readTimestamp: "2025-08-01 12:00:00",
|
|
@@ -161,13 +161,13 @@ 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-
|
|
164
|
+
uuid: "123e4567-ca97-44c1-97b8-231efb5598ab",
|
|
165
|
+
jobUuid: "123e4567-02e2-47ef-b40e-231efbb85a1b",
|
|
166
|
+
queueUuid: "123e4567-3b38-4f8f-9979-231efed268eb",
|
|
167
|
+
staffUuid: "123e4567-5308-40ba-88de-231efa9f8f9b",
|
|
168
168
|
allocationDate: "2025-08-01 12:00:00",
|
|
169
|
-
allocationWindowUuid: "123e4567-
|
|
170
|
-
allocatedByStaffUuid: "123e4567-
|
|
169
|
+
allocationWindowUuid: "123e4567-03ab-4ae7-9cfc-231ef37ef11b",
|
|
170
|
+
allocatedByStaffUuid: "123e4567-7257-42b8-89fb-231efd798c0b",
|
|
171
171
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
172
172
|
expiryTimestamp: "2025-08-01 12:00:00",
|
|
173
173
|
readTimestamp: "2025-08-01 12:00:00",
|
|
@@ -313,13 +313,13 @@ 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-
|
|
316
|
+
uuid: "123e4567-ca97-44c1-97b8-231efb5598ab",
|
|
317
|
+
jobUuid: "123e4567-02e2-47ef-b40e-231efbb85a1b",
|
|
318
|
+
queueUuid: "123e4567-3b38-4f8f-9979-231efed268eb",
|
|
319
|
+
staffUuid: "123e4567-5308-40ba-88de-231efa9f8f9b",
|
|
320
320
|
allocationDate: "2025-08-01 12:00:00",
|
|
321
|
-
allocationWindowUuid: "123e4567-
|
|
322
|
-
allocatedByStaffUuid: "123e4567-
|
|
321
|
+
allocationWindowUuid: "123e4567-03ab-4ae7-9cfc-231ef37ef11b",
|
|
322
|
+
allocatedByStaffUuid: "123e4567-7257-42b8-89fb-231efd798c0b",
|
|
323
323
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
324
324
|
expiryTimestamp: "2025-08-01 12:00:00",
|
|
325
325
|
readTimestamp: "2025-08-01 12:00:00",
|
|
@@ -354,13 +354,13 @@ 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-
|
|
357
|
+
uuid: "123e4567-ca97-44c1-97b8-231efb5598ab",
|
|
358
|
+
jobUuid: "123e4567-02e2-47ef-b40e-231efbb85a1b",
|
|
359
|
+
queueUuid: "123e4567-3b38-4f8f-9979-231efed268eb",
|
|
360
|
+
staffUuid: "123e4567-5308-40ba-88de-231efa9f8f9b",
|
|
361
361
|
allocationDate: "2025-08-01 12:00:00",
|
|
362
|
-
allocationWindowUuid: "123e4567-
|
|
363
|
-
allocatedByStaffUuid: "123e4567-
|
|
362
|
+
allocationWindowUuid: "123e4567-03ab-4ae7-9cfc-231ef37ef11b",
|
|
363
|
+
allocatedByStaffUuid: "123e4567-7257-42b8-89fb-231efd798c0b",
|
|
364
364
|
allocatedTimestamp: "2025-08-01 12:00:00",
|
|
365
365
|
expiryTimestamp: "2025-08-01 12:00:00",
|
|
366
366
|
readTimestamp: "2025-08-01 12:00:00",
|
|
@@ -123,18 +123,18 @@ const serviceM8 = new ServiceM8({
|
|
|
123
123
|
|
|
124
124
|
async function run() {
|
|
125
125
|
const result = await serviceM8.jobChecklists.createJobChecklists({
|
|
126
|
-
uuid: "123e4567-
|
|
127
|
-
jobUuid: "123e4567-
|
|
126
|
+
uuid: "123e4567-ae42-4b82-9d85-231ef59d636b",
|
|
127
|
+
jobUuid: "123e4567-b9ef-4c8f-be37-231ef6ff488b",
|
|
128
128
|
completedTimestamp: "2025-08-01 12:00:00",
|
|
129
|
-
completedByStaffUuid: "123e4567-
|
|
130
|
-
completedDuringCheckinUuid: "123e4567-
|
|
131
|
-
regardingObjectUuid: "123e4567-
|
|
132
|
-
fulfilledByObjectUuid: "123e4567-
|
|
129
|
+
completedByStaffUuid: "123e4567-c9f0-4572-974c-231efdba7c1b",
|
|
130
|
+
completedDuringCheckinUuid: "123e4567-b92f-4cd8-b962-231efbe7116b",
|
|
131
|
+
regardingObjectUuid: "123e4567-6ad2-41d4-8778-231eff7413ab",
|
|
132
|
+
fulfilledByObjectUuid: "123e4567-5b0e-4a15-8bea-231ef6ab6a4b",
|
|
133
133
|
assignedToStaffUuids: [
|
|
134
|
-
"123e4567-
|
|
134
|
+
"123e4567-1579-47da-a0a3-231ef6dcb01b",
|
|
135
135
|
],
|
|
136
136
|
assignedTimestamp: "2025-08-01 12:00:00",
|
|
137
|
-
assignedByStaffUuid: "123e4567-
|
|
137
|
+
assignedByStaffUuid: "123e4567-8553-4767-a0d8-231ef390647b",
|
|
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 jobChecklistsCreateJobChecklists(serviceM8, {
|
|
164
|
-
uuid: "123e4567-
|
|
165
|
-
jobUuid: "123e4567-
|
|
164
|
+
uuid: "123e4567-ae42-4b82-9d85-231ef59d636b",
|
|
165
|
+
jobUuid: "123e4567-b9ef-4c8f-be37-231ef6ff488b",
|
|
166
166
|
completedTimestamp: "2025-08-01 12:00:00",
|
|
167
|
-
completedByStaffUuid: "123e4567-
|
|
168
|
-
completedDuringCheckinUuid: "123e4567-
|
|
169
|
-
regardingObjectUuid: "123e4567-
|
|
170
|
-
fulfilledByObjectUuid: "123e4567-
|
|
167
|
+
completedByStaffUuid: "123e4567-c9f0-4572-974c-231efdba7c1b",
|
|
168
|
+
completedDuringCheckinUuid: "123e4567-b92f-4cd8-b962-231efbe7116b",
|
|
169
|
+
regardingObjectUuid: "123e4567-6ad2-41d4-8778-231eff7413ab",
|
|
170
|
+
fulfilledByObjectUuid: "123e4567-5b0e-4a15-8bea-231ef6ab6a4b",
|
|
171
171
|
assignedToStaffUuids: [
|
|
172
|
-
"123e4567-
|
|
172
|
+
"123e4567-1579-47da-a0a3-231ef6dcb01b",
|
|
173
173
|
],
|
|
174
174
|
assignedTimestamp: "2025-08-01 12:00:00",
|
|
175
|
-
assignedByStaffUuid: "123e4567-
|
|
175
|
+
assignedByStaffUuid: "123e4567-8553-4767-a0d8-231ef390647b",
|
|
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.jobChecklists.updateJobChecklists({
|
|
314
314
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
315
315
|
jobChecklist: {
|
|
316
|
-
uuid: "123e4567-
|
|
317
|
-
jobUuid: "123e4567-
|
|
316
|
+
uuid: "123e4567-ae42-4b82-9d85-231ef59d636b",
|
|
317
|
+
jobUuid: "123e4567-b9ef-4c8f-be37-231ef6ff488b",
|
|
318
318
|
completedTimestamp: "2025-08-01 12:00:00",
|
|
319
|
-
completedByStaffUuid: "123e4567-
|
|
320
|
-
completedDuringCheckinUuid: "123e4567-
|
|
321
|
-
regardingObjectUuid: "123e4567-
|
|
322
|
-
fulfilledByObjectUuid: "123e4567-
|
|
319
|
+
completedByStaffUuid: "123e4567-c9f0-4572-974c-231efdba7c1b",
|
|
320
|
+
completedDuringCheckinUuid: "123e4567-b92f-4cd8-b962-231efbe7116b",
|
|
321
|
+
regardingObjectUuid: "123e4567-6ad2-41d4-8778-231eff7413ab",
|
|
322
|
+
fulfilledByObjectUuid: "123e4567-5b0e-4a15-8bea-231ef6ab6a4b",
|
|
323
323
|
assignedToStaffUuids: [
|
|
324
|
-
"123e4567-
|
|
324
|
+
"123e4567-1579-47da-a0a3-231ef6dcb01b",
|
|
325
325
|
],
|
|
326
326
|
assignedTimestamp: "2025-08-01 12:00:00",
|
|
327
|
-
assignedByStaffUuid: "123e4567-
|
|
327
|
+
assignedByStaffUuid: "123e4567-8553-4767-a0d8-231ef390647b",
|
|
328
328
|
},
|
|
329
329
|
});
|
|
330
330
|
|
|
@@ -354,18 +354,18 @@ async function run() {
|
|
|
354
354
|
const res = await jobChecklistsUpdateJobChecklists(serviceM8, {
|
|
355
355
|
uuid: "cd24d8b9-7620-4771-805e-b96a73214740",
|
|
356
356
|
jobChecklist: {
|
|
357
|
-
uuid: "123e4567-
|
|
358
|
-
jobUuid: "123e4567-
|
|
357
|
+
uuid: "123e4567-ae42-4b82-9d85-231ef59d636b",
|
|
358
|
+
jobUuid: "123e4567-b9ef-4c8f-be37-231ef6ff488b",
|
|
359
359
|
completedTimestamp: "2025-08-01 12:00:00",
|
|
360
|
-
completedByStaffUuid: "123e4567-
|
|
361
|
-
completedDuringCheckinUuid: "123e4567-
|
|
362
|
-
regardingObjectUuid: "123e4567-
|
|
363
|
-
fulfilledByObjectUuid: "123e4567-
|
|
360
|
+
completedByStaffUuid: "123e4567-c9f0-4572-974c-231efdba7c1b",
|
|
361
|
+
completedDuringCheckinUuid: "123e4567-b92f-4cd8-b962-231efbe7116b",
|
|
362
|
+
regardingObjectUuid: "123e4567-6ad2-41d4-8778-231eff7413ab",
|
|
363
|
+
fulfilledByObjectUuid: "123e4567-5b0e-4a15-8bea-231ef6ab6a4b",
|
|
364
364
|
assignedToStaffUuids: [
|
|
365
|
-
"123e4567-
|
|
365
|
+
"123e4567-1579-47da-a0a3-231ef6dcb01b",
|
|
366
366
|
],
|
|
367
367
|
assignedTimestamp: "2025-08-01 12:00:00",
|
|
368
|
-
assignedByStaffUuid: "123e4567-
|
|
368
|
+
assignedByStaffUuid: "123e4567-8553-4767-a0d8-231ef390647b",
|
|
369
369
|
},
|
|
370
370
|
});
|
|
371
371
|
if (res.ok) {
|