servicem8 0.9.28 → 0.9.30

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.
Files changed (86) hide show
  1. package/api.json +381 -346
  2. package/bin/mcp-server.js +70 -30
  3. package/bin/mcp-server.js.map +9 -9
  4. package/dist/commonjs/lib/config.d.ts +2 -2
  5. package/dist/commonjs/lib/config.js +2 -2
  6. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  7. package/dist/commonjs/mcp-server/server.js +1 -1
  8. package/dist/commonjs/models/components/company.d.ts +6 -0
  9. package/dist/commonjs/models/components/company.d.ts.map +1 -1
  10. package/dist/commonjs/models/components/company.js.map +1 -1
  11. package/dist/commonjs/models/components/job.d.ts +222 -50
  12. package/dist/commonjs/models/components/job.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/job.js +107 -17
  14. package/dist/commonjs/models/components/job.js.map +1 -1
  15. package/dist/commonjs/models/components/jobactivity.d.ts +50 -8
  16. package/dist/commonjs/models/components/jobactivity.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/jobactivity.js +8 -8
  18. package/dist/commonjs/models/components/jobactivity.js.map +1 -1
  19. package/dist/commonjs/models/components/jobmaterial.d.ts +12 -0
  20. package/dist/commonjs/models/components/jobmaterial.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/jobmaterial.js.map +1 -1
  22. package/dist/esm/lib/config.d.ts +2 -2
  23. package/dist/esm/lib/config.js +2 -2
  24. package/dist/esm/mcp-server/mcp-server.js +1 -1
  25. package/dist/esm/mcp-server/server.js +1 -1
  26. package/dist/esm/models/components/company.d.ts +6 -0
  27. package/dist/esm/models/components/company.d.ts.map +1 -1
  28. package/dist/esm/models/components/company.js.map +1 -1
  29. package/dist/esm/models/components/job.d.ts +222 -50
  30. package/dist/esm/models/components/job.d.ts.map +1 -1
  31. package/dist/esm/models/components/job.js +106 -16
  32. package/dist/esm/models/components/job.js.map +1 -1
  33. package/dist/esm/models/components/jobactivity.d.ts +50 -8
  34. package/dist/esm/models/components/jobactivity.d.ts.map +1 -1
  35. package/dist/esm/models/components/jobactivity.js +8 -8
  36. package/dist/esm/models/components/jobactivity.js.map +1 -1
  37. package/dist/esm/models/components/jobmaterial.d.ts +12 -0
  38. package/dist/esm/models/components/jobmaterial.d.ts.map +1 -1
  39. package/dist/esm/models/components/jobmaterial.js.map +1 -1
  40. package/docs/sdks/allocationwindows/README.md +4 -4
  41. package/docs/sdks/assets/README.md +6 -6
  42. package/docs/sdks/assettypefields/README.md +8 -8
  43. package/docs/sdks/assettypes/README.md +4 -4
  44. package/docs/sdks/attachments/README.md +12 -12
  45. package/docs/sdks/badges/README.md +12 -12
  46. package/docs/sdks/bundles/README.md +4 -4
  47. package/docs/sdks/categories/README.md +4 -4
  48. package/docs/sdks/clients/README.md +8 -8
  49. package/docs/sdks/companycontacts/README.md +8 -8
  50. package/docs/sdks/documenttemplates/README.md +4 -4
  51. package/docs/sdks/emailtemplates/README.md +4 -4
  52. package/docs/sdks/feedback/README.md +8 -8
  53. package/docs/sdks/formfields/README.md +8 -8
  54. package/docs/sdks/formresponses/README.md +28 -28
  55. package/docs/sdks/forms/README.md +8 -8
  56. package/docs/sdks/jobactivities/README.md +20 -20
  57. package/docs/sdks/joballocations/README.md +24 -24
  58. package/docs/sdks/jobchecklists/README.md +32 -32
  59. package/docs/sdks/jobcontacts/README.md +8 -8
  60. package/docs/sdks/jobmaterialbundles/README.md +12 -12
  61. package/docs/sdks/jobmaterials/README.md +20 -20
  62. package/docs/sdks/jobpayments/README.md +20 -16
  63. package/docs/sdks/jobqueues/README.md +4 -4
  64. package/docs/sdks/jobs/README.md +32 -32
  65. package/docs/sdks/jobtemplates/README.md +4 -4
  66. package/docs/sdks/knowledgearticles/README.md +4 -4
  67. package/docs/sdks/locations/README.md +4 -4
  68. package/docs/sdks/materials/README.md +8 -8
  69. package/docs/sdks/notes/README.md +12 -12
  70. package/docs/sdks/securityroles/README.md +4 -4
  71. package/docs/sdks/smstemplates/README.md +4 -4
  72. package/docs/sdks/staffmembers/README.md +12 -12
  73. package/docs/sdks/staffmessages/README.md +16 -16
  74. package/docs/sdks/tasks/README.md +20 -20
  75. package/docs/sdks/taxrates/README.md +4 -4
  76. package/docs/sdks/vendors/README.md +2 -2
  77. package/examples/package-lock.json +1 -1
  78. package/jsr.json +1 -1
  79. package/package.json +1 -1
  80. package/src/lib/config.ts +2 -2
  81. package/src/mcp-server/mcp-server.ts +1 -1
  82. package/src/mcp-server/server.ts +1 -1
  83. package/src/models/components/company.ts +6 -0
  84. package/src/models/components/job.ts +242 -66
  85. package/src/models/components/jobactivity.ts +58 -16
  86. package/src/models/components/jobmaterial.ts +12 -0
@@ -23,6 +23,30 @@ export const Status = {
23
23
  */
24
24
  export type Status = ClosedEnum<typeof Status>;
25
25
 
26
+ /**
27
+ * Indicates whether the geocoding for the job address is valid. If this is false, the lat, lng, and other geo_ fields should not be used.. Valid values are [0,1]
28
+ */
29
+ export const GeoIsValid = {
30
+ Zero: 0,
31
+ One: 1,
32
+ } as const;
33
+ /**
34
+ * Indicates whether the geocoding for the job address is valid. If this is false, the lat, lng, and other geo_ fields should not be used.. Valid values are [0,1]
35
+ */
36
+ export type GeoIsValid = ClosedEnum<typeof GeoIsValid>;
37
+
38
+ /**
39
+ * Indicates whether an invoice has been sent for this job.. Valid values are [0,1]
40
+ */
41
+ export const InvoiceSent = {
42
+ Zero: 0,
43
+ One: 1,
44
+ } as const;
45
+ /**
46
+ * Indicates whether an invoice has been sent for this job.. Valid values are [0,1]
47
+ */
48
+ export type InvoiceSent = ClosedEnum<typeof InvoiceSent>;
49
+
26
50
  /**
27
51
  * Boolean flag indicating whether a quote has been sent to the client for this job. (Read only). Valid values are [0,1]
28
52
  */
@@ -47,6 +71,30 @@ export const JobActive = {
47
71
  */
48
72
  export type JobActive = ClosedEnum<typeof JobActive>;
49
73
 
74
+ /**
75
+ * Indicates whether the job has been exported to the connected Accounting Package.. Valid values are [0,1]
76
+ */
77
+ export const PaymentProcessed = {
78
+ Zero: 0,
79
+ One: 1,
80
+ } as const;
81
+ /**
82
+ * Indicates whether the job has been exported to the connected Accounting Package.. Valid values are [0,1]
83
+ */
84
+ export type PaymentProcessed = ClosedEnum<typeof PaymentProcessed>;
85
+
86
+ /**
87
+ * Indicates whether full payment has been received for this job.. Valid values are [0,1]
88
+ */
89
+ export const PaymentReceived = {
90
+ Zero: 0,
91
+ One: 1,
92
+ } as const;
93
+ /**
94
+ * Indicates whether full payment has been received for this job.. Valid values are [0,1]
95
+ */
96
+ export type PaymentReceived = ClosedEnum<typeof PaymentReceived>;
97
+
50
98
  export type Job = {
51
99
  /**
52
100
  * UUID of the staff member who created this job. Records which staff member initially added the job to the system.
@@ -69,11 +117,11 @@ export type Job = {
69
117
  */
70
118
  status: Status;
71
119
  /**
72
- * Longitude coordinate of the job location. Used for mapping and geolocation features. This is automatically populated based on the job address through geocoding.
120
+ * The longitude coordinate of the job location.
73
121
  */
74
122
  lng?: number | undefined;
75
123
  /**
76
- * Latitude coordinate of the job location. Used for mapping and geolocation features. This is automatically populated based on the job address through geocoding.
124
+ * The latitude coordinate of the job location.
77
125
  */
78
126
  lat?: number | undefined;
79
127
  /**
@@ -101,19 +149,19 @@ export type Job = {
101
149
  */
102
150
  paymentNote?: string | undefined;
103
151
  /**
104
- * Indicates whether the geocoding for the job address was successful. When true, the latitude and longitude coordinates are considered accurate for mapping and location-based features.
152
+ * Indicates whether the geocoding for the job address is valid. If this is false, the lat, lng, and other geo_ fields should not be used.. Valid values are [0,1]
105
153
  */
106
- geoIsValid?: string | undefined;
154
+ geoIsValid?: GeoIsValid | undefined;
107
155
  /**
108
156
  * Client purchase order reference number for this job. Used for cross-referencing with external accounting or order management systems.
109
157
  */
110
158
  purchaseOrderNumber?: string | undefined;
111
159
  /**
112
- * Boolean flag indicating whether an invoice has been sent to the client for this job.
160
+ * Indicates whether an invoice has been sent for this job.. Valid values are [0,1]
113
161
  */
114
- invoiceSent?: string | undefined;
162
+ invoiceSent?: InvoiceSent | undefined;
115
163
  /**
116
- * Timestamp when the invoice was sent to the client. Format is YYYY-MM-DD HH:MM:SS.
164
+ * The date and time when the invoice was sent.
117
165
  */
118
166
  invoiceSentStamp?: string | undefined;
119
167
  /**
@@ -125,47 +173,47 @@ export type Job = {
125
173
  */
126
174
  readyToInvoiceStamp?: any | undefined;
127
175
  /**
128
- * The country component extracted from the geocoded job address. Automatically populated when an address is geocoded.
176
+ * The country field of the job address.
129
177
  */
130
178
  geoCountry?: string | undefined;
131
179
  /**
132
- * The postal/zip code component extracted from the geocoded job address. Automatically populated when an address is geocoded.
180
+ * The postcode/ZIP code field of the job address.
133
181
  */
134
182
  geoPostcode?: string | undefined;
135
183
  /**
136
- * The state/province component extracted from the geocoded job address. Automatically populated when an address is geocoded.
184
+ * The state/province field of the job address.
137
185
  */
138
186
  geoState?: string | undefined;
139
187
  /**
140
- * The city/locality component extracted from the geocoded job address. Automatically populated when an address is geocoded.
188
+ * The city/suburb field of the job address.
141
189
  */
142
190
  geoCity?: string | undefined;
143
191
  /**
144
- * The street name component extracted from the geocoded job address. Automatically populated when an address is geocoded.
192
+ * The street name field of the job address.
145
193
  */
146
194
  geoStreet?: string | undefined;
147
195
  /**
148
- * The street number component extracted from the geocoded job address. Automatically populated when an address is geocoded.
196
+ * The street number field of the job address.
149
197
  */
150
198
  geoNumber?: string | undefined;
151
199
  /**
152
- * UUID reference to the queue this job is assigned to. Jobs can be organized into queues for workflow management.
200
+ * The UUID of the queue this job belongs to.
153
201
  */
154
202
  queueUuid?: string | undefined;
155
203
  /**
156
- * Timestamp when this job's assignment to the current Queue expires. After this date passes, the job is no longer considered to be in the Queue, even though queue_uuid may still contain a value.
204
+ * The date and time when the job expires from the queue.
157
205
  */
158
206
  queueExpiryDate?: string | undefined;
159
207
  /**
160
- * UUID of a Staff Member who is responsible for managing this job while it is in the queue. Only populated when the job is in a Queue which tracks Staff assignment.
208
+ * The UUID of the staff member assigned to this job in the queue.
161
209
  */
162
210
  queueAssignedStaffUuid?: string | undefined;
163
211
  /**
164
- * Comma-separated list of Badge UUIDs associated with this job. Badges are visual indicators that can be displayed on jobs in the dispatch board.
212
+ * JSON Array of Badge UUIDs
165
213
  */
166
214
  badges?: string | undefined;
167
215
  /**
168
- * Timestamp when the job was quoted. Automatically set when a job's status is changed to 'Quote'.
216
+ * The date and time that the job status was changed to Quote.
169
217
  */
170
218
  quoteDate?: string | undefined;
171
219
  /**
@@ -177,7 +225,7 @@ export type Job = {
177
225
  */
178
226
  quoteSentStamp?: string | undefined;
179
227
  /**
180
- * Timestamp when the job was converted to a work order. Automatically set when a job's status is changed to 'Work Order'.
228
+ * The date and time that the job status was changed to Work Order.
181
229
  */
182
230
  workOrderDate?: string | undefined;
183
231
  /**
@@ -213,17 +261,41 @@ export type Job = {
213
261
  * System-generated unique job identifier. This is read-only and automatically assigned when a job is created. (Read only)
214
262
  */
215
263
  generatedJobId?: string | undefined;
264
+ /**
265
+ * The total amount to be invoiced for this job.
266
+ */
216
267
  totalInvoiceAmount?: string | undefined;
217
- paymentProcessed?: string | undefined;
268
+ /**
269
+ * Indicates whether the job has been exported to the connected Accounting Package.. Valid values are [0,1]
270
+ */
271
+ paymentProcessed?: PaymentProcessed | undefined;
272
+ /**
273
+ * The date and time the job has been exported to the connected Accounting Package.
274
+ */
218
275
  paymentProcessedStamp?: string | undefined;
219
- paymentReceived?: string | undefined;
276
+ /**
277
+ * Indicates whether full payment has been received for this job.. Valid values are [0,1]
278
+ */
279
+ paymentReceived?: PaymentReceived | undefined;
280
+ /**
281
+ * The date and time when full payment was received.
282
+ */
220
283
  paymentReceivedStamp?: string | undefined;
284
+ /**
285
+ * The date and time that the job status was changed to Completed.
286
+ */
221
287
  completionDate?: string | undefined;
222
288
  /**
223
289
  * UUID of the staff member who marked this job as completed. References a staff record in the system.
224
290
  */
225
291
  completionActionedByUuid?: string | undefined;
292
+ /**
293
+ * The date and time that the job status was changed to Unsuccessful.
294
+ */
226
295
  unsuccessfulDate?: string | undefined;
296
+ /**
297
+ * The end date/time of the last scheduled activity for this job. After this date, the job is considered Unscheduled.
298
+ */
227
299
  jobIsScheduledUntilStamp?: string | undefined;
228
300
  };
229
301
 
@@ -249,11 +321,11 @@ export type JobInput = {
249
321
  */
250
322
  status: Status;
251
323
  /**
252
- * Longitude coordinate of the job location. Used for mapping and geolocation features. This is automatically populated based on the job address through geocoding.
324
+ * The longitude coordinate of the job location.
253
325
  */
254
326
  lng?: number | undefined;
255
327
  /**
256
- * Latitude coordinate of the job location. Used for mapping and geolocation features. This is automatically populated based on the job address through geocoding.
328
+ * The latitude coordinate of the job location.
257
329
  */
258
330
  lat?: number | undefined;
259
331
  /**
@@ -281,19 +353,19 @@ export type JobInput = {
281
353
  */
282
354
  paymentNote?: string | undefined;
283
355
  /**
284
- * Indicates whether the geocoding for the job address was successful. When true, the latitude and longitude coordinates are considered accurate for mapping and location-based features.
356
+ * Indicates whether the geocoding for the job address is valid. If this is false, the lat, lng, and other geo_ fields should not be used.. Valid values are [0,1]
285
357
  */
286
- geoIsValid?: string | undefined;
358
+ geoIsValid?: GeoIsValid | undefined;
287
359
  /**
288
360
  * Client purchase order reference number for this job. Used for cross-referencing with external accounting or order management systems.
289
361
  */
290
362
  purchaseOrderNumber?: string | undefined;
291
363
  /**
292
- * Boolean flag indicating whether an invoice has been sent to the client for this job.
364
+ * Indicates whether an invoice has been sent for this job.. Valid values are [0,1]
293
365
  */
294
- invoiceSent?: string | undefined;
366
+ invoiceSent?: InvoiceSent | undefined;
295
367
  /**
296
- * Timestamp when the invoice was sent to the client. Format is YYYY-MM-DD HH:MM:SS.
368
+ * The date and time when the invoice was sent.
297
369
  */
298
370
  invoiceSentStamp?: string | undefined;
299
371
  /**
@@ -305,47 +377,47 @@ export type JobInput = {
305
377
  */
306
378
  readyToInvoiceStamp?: any | undefined;
307
379
  /**
308
- * The country component extracted from the geocoded job address. Automatically populated when an address is geocoded.
380
+ * The country field of the job address.
309
381
  */
310
382
  geoCountry?: string | undefined;
311
383
  /**
312
- * The postal/zip code component extracted from the geocoded job address. Automatically populated when an address is geocoded.
384
+ * The postcode/ZIP code field of the job address.
313
385
  */
314
386
  geoPostcode?: string | undefined;
315
387
  /**
316
- * The state/province component extracted from the geocoded job address. Automatically populated when an address is geocoded.
388
+ * The state/province field of the job address.
317
389
  */
318
390
  geoState?: string | undefined;
319
391
  /**
320
- * The city/locality component extracted from the geocoded job address. Automatically populated when an address is geocoded.
392
+ * The city/suburb field of the job address.
321
393
  */
322
394
  geoCity?: string | undefined;
323
395
  /**
324
- * The street name component extracted from the geocoded job address. Automatically populated when an address is geocoded.
396
+ * The street name field of the job address.
325
397
  */
326
398
  geoStreet?: string | undefined;
327
399
  /**
328
- * The street number component extracted from the geocoded job address. Automatically populated when an address is geocoded.
400
+ * The street number field of the job address.
329
401
  */
330
402
  geoNumber?: string | undefined;
331
403
  /**
332
- * UUID reference to the queue this job is assigned to. Jobs can be organized into queues for workflow management.
404
+ * The UUID of the queue this job belongs to.
333
405
  */
334
406
  queueUuid?: string | undefined;
335
407
  /**
336
- * Timestamp when this job's assignment to the current Queue expires. After this date passes, the job is no longer considered to be in the Queue, even though queue_uuid may still contain a value.
408
+ * The date and time when the job expires from the queue.
337
409
  */
338
410
  queueExpiryDate?: string | undefined;
339
411
  /**
340
- * UUID of a Staff Member who is responsible for managing this job while it is in the queue. Only populated when the job is in a Queue which tracks Staff assignment.
412
+ * The UUID of the staff member assigned to this job in the queue.
341
413
  */
342
414
  queueAssignedStaffUuid?: string | undefined;
343
415
  /**
344
- * Comma-separated list of Badge UUIDs associated with this job. Badges are visual indicators that can be displayed on jobs in the dispatch board.
416
+ * JSON Array of Badge UUIDs
345
417
  */
346
418
  badges?: string | undefined;
347
419
  /**
348
- * Timestamp when the job was quoted. Automatically set when a job's status is changed to 'Quote'.
420
+ * The date and time that the job status was changed to Quote.
349
421
  */
350
422
  quoteDate?: string | undefined;
351
423
  /**
@@ -357,7 +429,7 @@ export type JobInput = {
357
429
  */
358
430
  quoteSentStamp?: string | undefined;
359
431
  /**
360
- * Timestamp when the job was converted to a work order. Automatically set when a job's status is changed to 'Work Order'.
432
+ * The date and time that the job status was changed to Work Order.
361
433
  */
362
434
  workOrderDate?: string | undefined;
363
435
  /**
@@ -389,17 +461,41 @@ export type JobInput = {
389
461
  * System-generated unique job identifier. This is read-only and automatically assigned when a job is created. (Read only)
390
462
  */
391
463
  generatedJobId?: string | undefined;
464
+ /**
465
+ * The total amount to be invoiced for this job.
466
+ */
392
467
  totalInvoiceAmount?: string | undefined;
393
- paymentProcessed?: string | undefined;
468
+ /**
469
+ * Indicates whether the job has been exported to the connected Accounting Package.. Valid values are [0,1]
470
+ */
471
+ paymentProcessed?: PaymentProcessed | undefined;
472
+ /**
473
+ * The date and time the job has been exported to the connected Accounting Package.
474
+ */
394
475
  paymentProcessedStamp?: string | undefined;
395
- paymentReceived?: string | undefined;
476
+ /**
477
+ * Indicates whether full payment has been received for this job.. Valid values are [0,1]
478
+ */
479
+ paymentReceived?: PaymentReceived | undefined;
480
+ /**
481
+ * The date and time when full payment was received.
482
+ */
396
483
  paymentReceivedStamp?: string | undefined;
484
+ /**
485
+ * The date and time that the job status was changed to Completed.
486
+ */
397
487
  completionDate?: string | undefined;
398
488
  /**
399
489
  * UUID of the staff member who marked this job as completed. References a staff record in the system.
400
490
  */
401
491
  completionActionedByUuid?: string | undefined;
492
+ /**
493
+ * The date and time that the job status was changed to Unsuccessful.
494
+ */
402
495
  unsuccessfulDate?: string | undefined;
496
+ /**
497
+ * The end date/time of the last scheduled activity for this job. After this date, the job is considered Unscheduled.
498
+ */
403
499
  jobIsScheduledUntilStamp?: string | undefined;
404
500
  };
405
501
 
@@ -422,6 +518,44 @@ export namespace Status$ {
422
518
  export const outboundSchema = Status$outboundSchema;
423
519
  }
424
520
 
521
+ /** @internal */
522
+ export const GeoIsValid$inboundSchema: z.ZodNativeEnum<typeof GeoIsValid> = z
523
+ .nativeEnum(GeoIsValid);
524
+
525
+ /** @internal */
526
+ export const GeoIsValid$outboundSchema: z.ZodNativeEnum<typeof GeoIsValid> =
527
+ GeoIsValid$inboundSchema;
528
+
529
+ /**
530
+ * @internal
531
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
532
+ */
533
+ export namespace GeoIsValid$ {
534
+ /** @deprecated use `GeoIsValid$inboundSchema` instead. */
535
+ export const inboundSchema = GeoIsValid$inboundSchema;
536
+ /** @deprecated use `GeoIsValid$outboundSchema` instead. */
537
+ export const outboundSchema = GeoIsValid$outboundSchema;
538
+ }
539
+
540
+ /** @internal */
541
+ export const InvoiceSent$inboundSchema: z.ZodNativeEnum<typeof InvoiceSent> = z
542
+ .nativeEnum(InvoiceSent);
543
+
544
+ /** @internal */
545
+ export const InvoiceSent$outboundSchema: z.ZodNativeEnum<typeof InvoiceSent> =
546
+ InvoiceSent$inboundSchema;
547
+
548
+ /**
549
+ * @internal
550
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
551
+ */
552
+ export namespace InvoiceSent$ {
553
+ /** @deprecated use `InvoiceSent$inboundSchema` instead. */
554
+ export const inboundSchema = InvoiceSent$inboundSchema;
555
+ /** @deprecated use `InvoiceSent$outboundSchema` instead. */
556
+ export const outboundSchema = InvoiceSent$outboundSchema;
557
+ }
558
+
425
559
  /** @internal */
426
560
  export const QuoteSent$inboundSchema: z.ZodNativeEnum<typeof QuoteSent> = z
427
561
  .nativeEnum(QuoteSent);
@@ -460,6 +594,48 @@ export namespace JobActive$ {
460
594
  export const outboundSchema = JobActive$outboundSchema;
461
595
  }
462
596
 
597
+ /** @internal */
598
+ export const PaymentProcessed$inboundSchema: z.ZodNativeEnum<
599
+ typeof PaymentProcessed
600
+ > = z.nativeEnum(PaymentProcessed);
601
+
602
+ /** @internal */
603
+ export const PaymentProcessed$outboundSchema: z.ZodNativeEnum<
604
+ typeof PaymentProcessed
605
+ > = PaymentProcessed$inboundSchema;
606
+
607
+ /**
608
+ * @internal
609
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
610
+ */
611
+ export namespace PaymentProcessed$ {
612
+ /** @deprecated use `PaymentProcessed$inboundSchema` instead. */
613
+ export const inboundSchema = PaymentProcessed$inboundSchema;
614
+ /** @deprecated use `PaymentProcessed$outboundSchema` instead. */
615
+ export const outboundSchema = PaymentProcessed$outboundSchema;
616
+ }
617
+
618
+ /** @internal */
619
+ export const PaymentReceived$inboundSchema: z.ZodNativeEnum<
620
+ typeof PaymentReceived
621
+ > = z.nativeEnum(PaymentReceived);
622
+
623
+ /** @internal */
624
+ export const PaymentReceived$outboundSchema: z.ZodNativeEnum<
625
+ typeof PaymentReceived
626
+ > = PaymentReceived$inboundSchema;
627
+
628
+ /**
629
+ * @internal
630
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
631
+ */
632
+ export namespace PaymentReceived$ {
633
+ /** @deprecated use `PaymentReceived$inboundSchema` instead. */
634
+ export const inboundSchema = PaymentReceived$inboundSchema;
635
+ /** @deprecated use `PaymentReceived$outboundSchema` instead. */
636
+ export const outboundSchema = PaymentReceived$outboundSchema;
637
+ }
638
+
463
639
  /** @internal */
464
640
  export const Job$inboundSchema: z.ZodType<Job, z.ZodTypeDef, unknown> = z
465
641
  .object({
@@ -476,9 +652,9 @@ export const Job$inboundSchema: z.ZodType<Job, z.ZodTypeDef, unknown> = z
476
652
  payment_amount: z.string().optional(),
477
653
  category_uuid: z.string().optional(),
478
654
  payment_note: z.string().optional(),
479
- geo_is_valid: z.string().optional(),
655
+ geo_is_valid: GeoIsValid$inboundSchema.optional(),
480
656
  purchase_order_number: z.string().optional(),
481
- invoice_sent: z.string().optional(),
657
+ invoice_sent: InvoiceSent$inboundSchema.optional(),
482
658
  invoice_sent_stamp: z.string().optional(),
483
659
  ready_to_invoice: z.any().optional(),
484
660
  ready_to_invoice_stamp: z.any().optional(),
@@ -506,9 +682,9 @@ export const Job$inboundSchema: z.ZodType<Job, z.ZodTypeDef, unknown> = z
506
682
  work_done_description: z.string().optional(),
507
683
  generated_job_id: z.string().optional(),
508
684
  total_invoice_amount: z.string().optional(),
509
- payment_processed: z.string().optional(),
685
+ payment_processed: PaymentProcessed$inboundSchema.optional(),
510
686
  payment_processed_stamp: z.string().optional(),
511
- payment_received: z.string().optional(),
687
+ payment_received: PaymentReceived$inboundSchema.optional(),
512
688
  payment_received_stamp: z.string().optional(),
513
689
  completion_date: z.string().optional(),
514
690
  completion_actioned_by_uuid: z.string().optional(),
@@ -578,9 +754,9 @@ export type Job$Outbound = {
578
754
  payment_amount?: string | undefined;
579
755
  category_uuid?: string | undefined;
580
756
  payment_note?: string | undefined;
581
- geo_is_valid?: string | undefined;
757
+ geo_is_valid?: number | undefined;
582
758
  purchase_order_number?: string | undefined;
583
- invoice_sent?: string | undefined;
759
+ invoice_sent?: number | undefined;
584
760
  invoice_sent_stamp?: string | undefined;
585
761
  ready_to_invoice?: any | undefined;
586
762
  ready_to_invoice_stamp?: any | undefined;
@@ -608,9 +784,9 @@ export type Job$Outbound = {
608
784
  work_done_description?: string | undefined;
609
785
  generated_job_id?: string | undefined;
610
786
  total_invoice_amount?: string | undefined;
611
- payment_processed?: string | undefined;
787
+ payment_processed?: number | undefined;
612
788
  payment_processed_stamp?: string | undefined;
613
- payment_received?: string | undefined;
789
+ payment_received?: number | undefined;
614
790
  payment_received_stamp?: string | undefined;
615
791
  completion_date?: string | undefined;
616
792
  completion_actioned_by_uuid?: string | undefined;
@@ -634,9 +810,9 @@ export const Job$outboundSchema: z.ZodType<Job$Outbound, z.ZodTypeDef, Job> = z
634
810
  paymentAmount: z.string().optional(),
635
811
  categoryUuid: z.string().optional(),
636
812
  paymentNote: z.string().optional(),
637
- geoIsValid: z.string().optional(),
813
+ geoIsValid: GeoIsValid$outboundSchema.optional(),
638
814
  purchaseOrderNumber: z.string().optional(),
639
- invoiceSent: z.string().optional(),
815
+ invoiceSent: InvoiceSent$outboundSchema.optional(),
640
816
  invoiceSentStamp: z.string().optional(),
641
817
  readyToInvoice: z.any().optional(),
642
818
  readyToInvoiceStamp: z.any().optional(),
@@ -664,9 +840,9 @@ export const Job$outboundSchema: z.ZodType<Job$Outbound, z.ZodTypeDef, Job> = z
664
840
  workDoneDescription: z.string().optional(),
665
841
  generatedJobId: z.string().optional(),
666
842
  totalInvoiceAmount: z.string().optional(),
667
- paymentProcessed: z.string().optional(),
843
+ paymentProcessed: PaymentProcessed$outboundSchema.optional(),
668
844
  paymentProcessedStamp: z.string().optional(),
669
- paymentReceived: z.string().optional(),
845
+ paymentReceived: PaymentReceived$outboundSchema.optional(),
670
846
  paymentReceivedStamp: z.string().optional(),
671
847
  completionDate: z.string().optional(),
672
848
  completionActionedByUuid: z.string().optional(),
@@ -767,9 +943,9 @@ export const JobInput$inboundSchema: z.ZodType<
767
943
  payment_amount: z.string().optional(),
768
944
  category_uuid: z.string().optional(),
769
945
  payment_note: z.string().optional(),
770
- geo_is_valid: z.string().optional(),
946
+ geo_is_valid: GeoIsValid$inboundSchema.optional(),
771
947
  purchase_order_number: z.string().optional(),
772
- invoice_sent: z.string().optional(),
948
+ invoice_sent: InvoiceSent$inboundSchema.optional(),
773
949
  invoice_sent_stamp: z.string().optional(),
774
950
  ready_to_invoice: z.any().optional(),
775
951
  ready_to_invoice_stamp: z.any().optional(),
@@ -796,9 +972,9 @@ export const JobInput$inboundSchema: z.ZodType<
796
972
  work_done_description: z.string().optional(),
797
973
  generated_job_id: z.string().optional(),
798
974
  total_invoice_amount: z.string().optional(),
799
- payment_processed: z.string().optional(),
975
+ payment_processed: PaymentProcessed$inboundSchema.optional(),
800
976
  payment_processed_stamp: z.string().optional(),
801
- payment_received: z.string().optional(),
977
+ payment_received: PaymentReceived$inboundSchema.optional(),
802
978
  payment_received_stamp: z.string().optional(),
803
979
  completion_date: z.string().optional(),
804
980
  completion_actioned_by_uuid: z.string().optional(),
@@ -867,9 +1043,9 @@ export type JobInput$Outbound = {
867
1043
  payment_amount?: string | undefined;
868
1044
  category_uuid?: string | undefined;
869
1045
  payment_note?: string | undefined;
870
- geo_is_valid?: string | undefined;
1046
+ geo_is_valid?: number | undefined;
871
1047
  purchase_order_number?: string | undefined;
872
- invoice_sent?: string | undefined;
1048
+ invoice_sent?: number | undefined;
873
1049
  invoice_sent_stamp?: string | undefined;
874
1050
  ready_to_invoice?: any | undefined;
875
1051
  ready_to_invoice_stamp?: any | undefined;
@@ -896,9 +1072,9 @@ export type JobInput$Outbound = {
896
1072
  work_done_description?: string | undefined;
897
1073
  generated_job_id?: string | undefined;
898
1074
  total_invoice_amount?: string | undefined;
899
- payment_processed?: string | undefined;
1075
+ payment_processed?: number | undefined;
900
1076
  payment_processed_stamp?: string | undefined;
901
- payment_received?: string | undefined;
1077
+ payment_received?: number | undefined;
902
1078
  payment_received_stamp?: string | undefined;
903
1079
  completion_date?: string | undefined;
904
1080
  completion_actioned_by_uuid?: string | undefined;
@@ -925,9 +1101,9 @@ export const JobInput$outboundSchema: z.ZodType<
925
1101
  paymentAmount: z.string().optional(),
926
1102
  categoryUuid: z.string().optional(),
927
1103
  paymentNote: z.string().optional(),
928
- geoIsValid: z.string().optional(),
1104
+ geoIsValid: GeoIsValid$outboundSchema.optional(),
929
1105
  purchaseOrderNumber: z.string().optional(),
930
- invoiceSent: z.string().optional(),
1106
+ invoiceSent: InvoiceSent$outboundSchema.optional(),
931
1107
  invoiceSentStamp: z.string().optional(),
932
1108
  readyToInvoice: z.any().optional(),
933
1109
  readyToInvoiceStamp: z.any().optional(),
@@ -954,9 +1130,9 @@ export const JobInput$outboundSchema: z.ZodType<
954
1130
  workDoneDescription: z.string().optional(),
955
1131
  generatedJobId: z.string().optional(),
956
1132
  totalInvoiceAmount: z.string().optional(),
957
- paymentProcessed: z.string().optional(),
1133
+ paymentProcessed: PaymentProcessed$outboundSchema.optional(),
958
1134
  paymentProcessedStamp: z.string().optional(),
959
- paymentReceived: z.string().optional(),
1135
+ paymentReceived: PaymentReceived$outboundSchema.optional(),
960
1136
  paymentReceivedStamp: z.string().optional(),
961
1137
  completionDate: z.string().optional(),
962
1138
  completionActionedByUuid: z.string().optional(),