@apideck/unify 0.29.5 → 0.29.7

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 (39) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +4 -4
  4. package/lib/config.js +4 -4
  5. package/lib/config.js.map +1 -1
  6. package/models/components/index.d.ts +2 -0
  7. package/models/components/index.d.ts.map +1 -1
  8. package/models/components/index.js +2 -0
  9. package/models/components/index.js.map +1 -1
  10. package/models/components/invoiceitem.d.ts +11 -0
  11. package/models/components/invoiceitem.d.ts.map +1 -1
  12. package/models/components/invoiceitem.js +5 -0
  13. package/models/components/invoiceitem.js.map +1 -1
  14. package/models/components/job.d.ts +2 -2
  15. package/models/components/job.d.ts.map +1 -1
  16. package/models/components/job.js +2 -2
  17. package/models/components/job.js.map +1 -1
  18. package/models/components/linkedtaxdetail.d.ts +47 -0
  19. package/models/components/linkedtaxdetail.d.ts.map +1 -0
  20. package/models/components/linkedtaxdetail.js +86 -0
  21. package/models/components/linkedtaxdetail.js.map +1 -0
  22. package/models/components/linkedtaxstatusdetail.d.ts +37 -0
  23. package/models/components/linkedtaxstatusdetail.d.ts.map +1 -0
  24. package/models/components/linkedtaxstatusdetail.js +80 -0
  25. package/models/components/linkedtaxstatusdetail.js.map +1 -0
  26. package/models/components/supplier.d.ts +40 -0
  27. package/models/components/supplier.d.ts.map +1 -1
  28. package/models/components/supplier.js +46 -0
  29. package/models/components/supplier.js.map +1 -1
  30. package/models/components/timeoffrequestsfilter.d.ts +2 -2
  31. package/package.json +1 -1
  32. package/src/lib/config.ts +4 -4
  33. package/src/models/components/index.ts +2 -0
  34. package/src/models/components/invoiceitem.ts +19 -0
  35. package/src/models/components/job.ts +4 -4
  36. package/src/models/components/linkedtaxdetail.ts +99 -0
  37. package/src/models/components/linkedtaxstatusdetail.ts +85 -0
  38. package/src/models/components/supplier.ts +94 -0
  39. package/src/models/components/timeoffrequestsfilter.ts +2 -2
@@ -49,6 +49,12 @@ import {
49
49
  LinkedLedgerAccountInput$Outbound,
50
50
  LinkedLedgerAccountInput$outboundSchema,
51
51
  } from "./linkedledgeraccountinput.js";
52
+ import {
53
+ LinkedTaxDetail,
54
+ LinkedTaxDetail$inboundSchema,
55
+ LinkedTaxDetail$Outbound,
56
+ LinkedTaxDetail$outboundSchema,
57
+ } from "./linkedtaxdetail.js";
52
58
  import {
53
59
  LinkedTaxRate,
54
60
  LinkedTaxRate$inboundSchema,
@@ -61,6 +67,12 @@ import {
61
67
  LinkedTaxRateInput$Outbound,
62
68
  LinkedTaxRateInput$outboundSchema,
63
69
  } from "./linkedtaxrateinput.js";
70
+ import {
71
+ LinkedTaxStatusDetail,
72
+ LinkedTaxStatusDetail$inboundSchema,
73
+ LinkedTaxStatusDetail$Outbound,
74
+ LinkedTaxStatusDetail$outboundSchema,
75
+ } from "./linkedtaxstatusdetail.js";
64
76
  import {
65
77
  PassThroughBody,
66
78
  PassThroughBody$inboundSchema,
@@ -177,11 +189,21 @@ export type Supplier = {
177
189
  * The channel through which the transaction is processed.
178
190
  */
179
191
  channel?: string | null | undefined;
192
+ /**
193
+ * Method of issuance of the purchase order for the supplier
194
+ */
195
+ issuedMethod?: string | null | undefined;
196
+ /**
197
+ * Email address of the person who issued the purchase order for the supplier
198
+ */
199
+ issuedEmail?: string | null | undefined;
180
200
  /**
181
201
  * When custom mappings are configured on the resource, the result is included here.
182
202
  */
183
203
  customMappings?: { [k: string]: any } | null | undefined;
184
204
  customFields?: Array<CustomField> | undefined;
205
+ taxDetails?: Array<LinkedTaxDetail | null> | undefined;
206
+ taxStatusDetails?: Array<LinkedTaxStatusDetail | null> | undefined;
185
207
  /**
186
208
  * The user who last updated the object.
187
209
  */
@@ -210,6 +232,10 @@ export type Supplier = {
210
232
  * The subsidiary the supplier belongs to.
211
233
  */
212
234
  subsidiaryId?: string | undefined;
235
+ /**
236
+ * The integration system the supplier belongs to.
237
+ */
238
+ integrationSystemId?: string | undefined;
213
239
  };
214
240
 
215
241
  export type SupplierInput = {
@@ -286,7 +312,17 @@ export type SupplierInput = {
286
312
  * The channel through which the transaction is processed.
287
313
  */
288
314
  channel?: string | null | undefined;
315
+ /**
316
+ * Method of issuance of the purchase order for the supplier
317
+ */
318
+ issuedMethod?: string | null | undefined;
319
+ /**
320
+ * Email address of the person who issued the purchase order for the supplier
321
+ */
322
+ issuedEmail?: string | null | undefined;
289
323
  customFields?: Array<CustomField> | undefined;
324
+ taxDetails?: Array<LinkedTaxDetail | null> | undefined;
325
+ taxStatusDetails?: Array<LinkedTaxStatusDetail | null> | undefined;
290
326
  /**
291
327
  * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
292
328
  */
@@ -299,6 +335,10 @@ export type SupplierInput = {
299
335
  * The subsidiary the supplier belongs to.
300
336
  */
301
337
  subsidiaryId?: string | undefined;
338
+ /**
339
+ * The integration system the supplier belongs to.
340
+ */
341
+ integrationSystemId?: string | undefined;
302
342
  };
303
343
 
304
344
  /** @internal */
@@ -355,8 +395,13 @@ export const Supplier$inboundSchema: z.ZodType<
355
395
  payment_method: z.nullable(z.string()).optional(),
356
396
  terms: z.nullable(z.string()).optional(),
357
397
  channel: z.nullable(z.string()).optional(),
398
+ issued_method: z.nullable(z.string()).optional(),
399
+ issued_email: z.nullable(z.string()).optional(),
358
400
  custom_mappings: z.nullable(z.record(z.any())).optional(),
359
401
  custom_fields: z.array(CustomField$inboundSchema).optional(),
402
+ tax_details: z.array(z.nullable(LinkedTaxDetail$inboundSchema)).optional(),
403
+ tax_status_details: z.array(z.nullable(LinkedTaxStatusDetail$inboundSchema))
404
+ .optional(),
360
405
  updated_by: z.nullable(z.string()).optional(),
361
406
  created_by: z.nullable(z.string()).optional(),
362
407
  updated_at: z.nullable(
@@ -368,6 +413,7 @@ export const Supplier$inboundSchema: z.ZodType<
368
413
  row_version: z.nullable(z.string()).optional(),
369
414
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
370
415
  subsidiary_id: z.string().optional(),
416
+ integration_system_id: z.string().optional(),
371
417
  }).transform((v) => {
372
418
  return remap$(v, {
373
419
  "downstream_id": "downstreamId",
@@ -384,8 +430,12 @@ export const Supplier$inboundSchema: z.ZodType<
384
430
  "tax_rate": "taxRate",
385
431
  "tax_number": "taxNumber",
386
432
  "payment_method": "paymentMethod",
433
+ "issued_method": "issuedMethod",
434
+ "issued_email": "issuedEmail",
387
435
  "custom_mappings": "customMappings",
388
436
  "custom_fields": "customFields",
437
+ "tax_details": "taxDetails",
438
+ "tax_status_details": "taxStatusDetails",
389
439
  "updated_by": "updatedBy",
390
440
  "created_by": "createdBy",
391
441
  "updated_at": "updatedAt",
@@ -393,6 +443,7 @@ export const Supplier$inboundSchema: z.ZodType<
393
443
  "row_version": "rowVersion",
394
444
  "pass_through": "passThrough",
395
445
  "subsidiary_id": "subsidiaryId",
446
+ "integration_system_id": "integrationSystemId",
396
447
  });
397
448
  });
398
449
 
@@ -425,8 +476,12 @@ export type Supplier$Outbound = {
425
476
  payment_method?: string | null | undefined;
426
477
  terms?: string | null | undefined;
427
478
  channel?: string | null | undefined;
479
+ issued_method?: string | null | undefined;
480
+ issued_email?: string | null | undefined;
428
481
  custom_mappings?: { [k: string]: any } | null | undefined;
429
482
  custom_fields?: Array<CustomField$Outbound> | undefined;
483
+ tax_details?: Array<LinkedTaxDetail$Outbound | null> | undefined;
484
+ tax_status_details?: Array<LinkedTaxStatusDetail$Outbound | null> | undefined;
430
485
  updated_by?: string | null | undefined;
431
486
  created_by?: string | null | undefined;
432
487
  updated_at?: string | null | undefined;
@@ -434,6 +489,7 @@ export type Supplier$Outbound = {
434
489
  row_version?: string | null | undefined;
435
490
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
436
491
  subsidiary_id?: string | undefined;
492
+ integration_system_id?: string | undefined;
437
493
  };
438
494
 
439
495
  /** @internal */
@@ -469,8 +525,13 @@ export const Supplier$outboundSchema: z.ZodType<
469
525
  paymentMethod: z.nullable(z.string()).optional(),
470
526
  terms: z.nullable(z.string()).optional(),
471
527
  channel: z.nullable(z.string()).optional(),
528
+ issuedMethod: z.nullable(z.string()).optional(),
529
+ issuedEmail: z.nullable(z.string()).optional(),
472
530
  customMappings: z.nullable(z.record(z.any())).optional(),
473
531
  customFields: z.array(CustomField$outboundSchema).optional(),
532
+ taxDetails: z.array(z.nullable(LinkedTaxDetail$outboundSchema)).optional(),
533
+ taxStatusDetails: z.array(z.nullable(LinkedTaxStatusDetail$outboundSchema))
534
+ .optional(),
474
535
  updatedBy: z.nullable(z.string()).optional(),
475
536
  createdBy: z.nullable(z.string()).optional(),
476
537
  updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
@@ -478,6 +539,7 @@ export const Supplier$outboundSchema: z.ZodType<
478
539
  rowVersion: z.nullable(z.string()).optional(),
479
540
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
480
541
  subsidiaryId: z.string().optional(),
542
+ integrationSystemId: z.string().optional(),
481
543
  }).transform((v) => {
482
544
  return remap$(v, {
483
545
  downstreamId: "downstream_id",
@@ -494,8 +556,12 @@ export const Supplier$outboundSchema: z.ZodType<
494
556
  taxRate: "tax_rate",
495
557
  taxNumber: "tax_number",
496
558
  paymentMethod: "payment_method",
559
+ issuedMethod: "issued_method",
560
+ issuedEmail: "issued_email",
497
561
  customMappings: "custom_mappings",
498
562
  customFields: "custom_fields",
563
+ taxDetails: "tax_details",
564
+ taxStatusDetails: "tax_status_details",
499
565
  updatedBy: "updated_by",
500
566
  createdBy: "created_by",
501
567
  updatedAt: "updated_at",
@@ -503,6 +569,7 @@ export const Supplier$outboundSchema: z.ZodType<
503
569
  rowVersion: "row_version",
504
570
  passThrough: "pass_through",
505
571
  subsidiaryId: "subsidiary_id",
572
+ integrationSystemId: "integration_system_id",
506
573
  });
507
574
  });
508
575
 
@@ -564,10 +631,16 @@ export const SupplierInput$inboundSchema: z.ZodType<
564
631
  payment_method: z.nullable(z.string()).optional(),
565
632
  terms: z.nullable(z.string()).optional(),
566
633
  channel: z.nullable(z.string()).optional(),
634
+ issued_method: z.nullable(z.string()).optional(),
635
+ issued_email: z.nullable(z.string()).optional(),
567
636
  custom_fields: z.array(CustomField$inboundSchema).optional(),
637
+ tax_details: z.array(z.nullable(LinkedTaxDetail$inboundSchema)).optional(),
638
+ tax_status_details: z.array(z.nullable(LinkedTaxStatusDetail$inboundSchema))
639
+ .optional(),
568
640
  row_version: z.nullable(z.string()).optional(),
569
641
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
570
642
  subsidiary_id: z.string().optional(),
643
+ integration_system_id: z.string().optional(),
571
644
  }).transform((v) => {
572
645
  return remap$(v, {
573
646
  "display_id": "displayId",
@@ -583,10 +656,15 @@ export const SupplierInput$inboundSchema: z.ZodType<
583
656
  "tax_rate": "taxRate",
584
657
  "tax_number": "taxNumber",
585
658
  "payment_method": "paymentMethod",
659
+ "issued_method": "issuedMethod",
660
+ "issued_email": "issuedEmail",
586
661
  "custom_fields": "customFields",
662
+ "tax_details": "taxDetails",
663
+ "tax_status_details": "taxStatusDetails",
587
664
  "row_version": "rowVersion",
588
665
  "pass_through": "passThrough",
589
666
  "subsidiary_id": "subsidiaryId",
667
+ "integration_system_id": "integrationSystemId",
590
668
  });
591
669
  });
592
670
 
@@ -617,10 +695,15 @@ export type SupplierInput$Outbound = {
617
695
  payment_method?: string | null | undefined;
618
696
  terms?: string | null | undefined;
619
697
  channel?: string | null | undefined;
698
+ issued_method?: string | null | undefined;
699
+ issued_email?: string | null | undefined;
620
700
  custom_fields?: Array<CustomField$Outbound> | undefined;
701
+ tax_details?: Array<LinkedTaxDetail$Outbound | null> | undefined;
702
+ tax_status_details?: Array<LinkedTaxStatusDetail$Outbound | null> | undefined;
621
703
  row_version?: string | null | undefined;
622
704
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
623
705
  subsidiary_id?: string | undefined;
706
+ integration_system_id?: string | undefined;
624
707
  };
625
708
 
626
709
  /** @internal */
@@ -654,10 +737,16 @@ export const SupplierInput$outboundSchema: z.ZodType<
654
737
  paymentMethod: z.nullable(z.string()).optional(),
655
738
  terms: z.nullable(z.string()).optional(),
656
739
  channel: z.nullable(z.string()).optional(),
740
+ issuedMethod: z.nullable(z.string()).optional(),
741
+ issuedEmail: z.nullable(z.string()).optional(),
657
742
  customFields: z.array(CustomField$outboundSchema).optional(),
743
+ taxDetails: z.array(z.nullable(LinkedTaxDetail$outboundSchema)).optional(),
744
+ taxStatusDetails: z.array(z.nullable(LinkedTaxStatusDetail$outboundSchema))
745
+ .optional(),
658
746
  rowVersion: z.nullable(z.string()).optional(),
659
747
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
660
748
  subsidiaryId: z.string().optional(),
749
+ integrationSystemId: z.string().optional(),
661
750
  }).transform((v) => {
662
751
  return remap$(v, {
663
752
  displayId: "display_id",
@@ -673,10 +762,15 @@ export const SupplierInput$outboundSchema: z.ZodType<
673
762
  taxRate: "tax_rate",
674
763
  taxNumber: "tax_number",
675
764
  paymentMethod: "payment_method",
765
+ issuedMethod: "issued_method",
766
+ issuedEmail: "issued_email",
676
767
  customFields: "custom_fields",
768
+ taxDetails: "tax_details",
769
+ taxStatusDetails: "tax_status_details",
677
770
  rowVersion: "row_version",
678
771
  passThrough: "pass_through",
679
772
  subsidiaryId: "subsidiary_id",
773
+ integrationSystemId: "integration_system_id",
680
774
  });
681
775
  });
682
776
 
@@ -27,11 +27,11 @@ export type TimeOffRequestStatus = ClosedEnum<typeof TimeOffRequestStatus>;
27
27
 
28
28
  export type TimeOffRequestsFilter = {
29
29
  /**
30
- * Start date
30
+ * Start date of the date range to filter time off requests. When used with end_date, filters for requests within the specified date range.
31
31
  */
32
32
  startDate?: string | undefined;
33
33
  /**
34
- * End date
34
+ * End date of the date range to filter time off requests. When used with start_date, filters for requests within the specified date range.
35
35
  */
36
36
  endDate?: string | undefined;
37
37
  /**