@apideck/unify 0.29.2 → 0.29.4

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 (101) hide show
  1. package/docs/sdks/quotes/README.md +4 -0
  2. package/examples/accountingTaxRatesList.example.ts +1 -1
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +4 -4
  6. package/lib/config.js +4 -4
  7. package/lib/security.d.ts.map +1 -1
  8. package/lib/security.js.map +1 -1
  9. package/models/components/applicant.d.ts +74 -0
  10. package/models/components/applicant.d.ts.map +1 -1
  11. package/models/components/applicant.js +46 -1
  12. package/models/components/applicant.js.map +1 -1
  13. package/models/components/bill.d.ts +114 -2
  14. package/models/components/bill.d.ts.map +1 -1
  15. package/models/components/bill.js +87 -1
  16. package/models/components/bill.js.map +1 -1
  17. package/models/components/billlineitem.d.ts +91 -0
  18. package/models/components/billlineitem.d.ts.map +1 -1
  19. package/models/components/billlineitem.js +61 -0
  20. package/models/components/billlineitem.js.map +1 -1
  21. package/models/components/billpayment.d.ts +2 -2
  22. package/models/components/creditnote.d.ts +12 -2
  23. package/models/components/creditnote.d.ts.map +1 -1
  24. package/models/components/creditnote.js +8 -0
  25. package/models/components/creditnote.js.map +1 -1
  26. package/models/components/customer.d.ts +2 -2
  27. package/models/components/expense.d.ts +2 -2
  28. package/models/components/index.d.ts +2 -0
  29. package/models/components/index.d.ts.map +1 -1
  30. package/models/components/index.js +2 -0
  31. package/models/components/index.js.map +1 -1
  32. package/models/components/invoice.d.ts +22 -2
  33. package/models/components/invoice.d.ts.map +1 -1
  34. package/models/components/invoice.js +16 -0
  35. package/models/components/invoice.js.map +1 -1
  36. package/models/components/invoicelineitem.d.ts +7 -50
  37. package/models/components/invoicelineitem.d.ts.map +1 -1
  38. package/models/components/invoicelineitem.js +6 -37
  39. package/models/components/invoicelineitem.js.map +1 -1
  40. package/models/components/jobstatus.d.ts +3 -0
  41. package/models/components/jobstatus.d.ts.map +1 -1
  42. package/models/components/jobstatus.js +1 -0
  43. package/models/components/jobstatus.js.map +1 -1
  44. package/models/components/journalentry.d.ts +2 -2
  45. package/models/components/linkedattachment.d.ts +57 -0
  46. package/models/components/linkedattachment.d.ts.map +1 -0
  47. package/models/components/linkedattachment.js +90 -0
  48. package/models/components/linkedattachment.js.map +1 -0
  49. package/models/components/linkedworktag.d.ts +37 -0
  50. package/models/components/linkedworktag.d.ts.map +1 -0
  51. package/models/components/linkedworktag.js +71 -0
  52. package/models/components/linkedworktag.js.map +1 -0
  53. package/models/components/payment.d.ts +1 -1
  54. package/models/components/paymentinput.d.ts +1 -1
  55. package/models/components/phonenumber.d.ts +3 -0
  56. package/models/components/phonenumber.d.ts.map +1 -1
  57. package/models/components/phonenumber.js +1 -0
  58. package/models/components/phonenumber.js.map +1 -1
  59. package/models/components/purchaseorder.d.ts +21 -11
  60. package/models/components/purchaseorder.d.ts.map +1 -1
  61. package/models/components/purchaseorder.js +27 -15
  62. package/models/components/purchaseorder.js.map +1 -1
  63. package/models/components/quote.d.ts +12 -2
  64. package/models/components/quote.d.ts.map +1 -1
  65. package/models/components/quote.js +8 -0
  66. package/models/components/quote.js.map +1 -1
  67. package/models/components/subsidiary.d.ts +11 -0
  68. package/models/components/subsidiary.d.ts.map +1 -1
  69. package/models/components/subsidiary.js +9 -0
  70. package/models/components/subsidiary.js.map +1 -1
  71. package/models/components/supplier.d.ts +2 -2
  72. package/models/components/webhookeventtype.d.ts +3 -0
  73. package/models/components/webhookeventtype.d.ts.map +1 -1
  74. package/models/components/webhookeventtype.js +1 -0
  75. package/models/components/webhookeventtype.js.map +1 -1
  76. package/package.json +1 -1
  77. package/src/__tests__/quotes.test.ts +3 -0
  78. package/src/lib/config.ts +4 -4
  79. package/src/lib/security.ts +4 -1
  80. package/src/models/components/applicant.ts +90 -0
  81. package/src/models/components/bill.ts +178 -2
  82. package/src/models/components/billlineitem.ts +156 -0
  83. package/src/models/components/billpayment.ts +2 -2
  84. package/src/models/components/creditnote.ts +20 -2
  85. package/src/models/components/customer.ts +2 -2
  86. package/src/models/components/expense.ts +2 -2
  87. package/src/models/components/index.ts +2 -0
  88. package/src/models/components/invoice.ts +38 -2
  89. package/src/models/components/invoicelineitem.ts +16 -60
  90. package/src/models/components/jobstatus.ts +1 -0
  91. package/src/models/components/journalentry.ts +2 -2
  92. package/src/models/components/linkedattachment.ts +115 -0
  93. package/src/models/components/linkedworktag.ts +72 -0
  94. package/src/models/components/payment.ts +1 -1
  95. package/src/models/components/paymentinput.ts +1 -1
  96. package/src/models/components/phonenumber.ts +1 -0
  97. package/src/models/components/purchaseorder.ts +45 -21
  98. package/src/models/components/quote.ts +20 -2
  99. package/src/models/components/subsidiary.ts +23 -0
  100. package/src/models/components/supplier.ts +2 -2
  101. package/src/models/components/webhookeventtype.ts +1 -0
@@ -62,6 +62,12 @@ import {
62
62
  LinkedTrackingCategory$Outbound,
63
63
  LinkedTrackingCategory$outboundSchema,
64
64
  } from "./linkedtrackingcategory.js";
65
+ import {
66
+ LinkedWorktag,
67
+ LinkedWorktag$inboundSchema,
68
+ LinkedWorktag$Outbound,
69
+ LinkedWorktag$outboundSchema,
70
+ } from "./linkedworktag.js";
65
71
  import {
66
72
  Rebilling,
67
73
  Rebilling$inboundSchema,
@@ -145,6 +151,38 @@ export type BillLineItem = {
145
151
  * ID of the category of the line item
146
152
  */
147
153
  categoryId?: string | null | undefined;
154
+ /**
155
+ * ID of the shipping of the line item
156
+ */
157
+ shippingId?: string | null | undefined;
158
+ /**
159
+ * Memo
160
+ */
161
+ memo?: string | null | undefined;
162
+ /**
163
+ * Whether the line item is prepaid
164
+ */
165
+ prepaid?: boolean | null | undefined;
166
+ /**
167
+ * Tax applicable on
168
+ */
169
+ taxApplicableOn?: string | null | undefined;
170
+ /**
171
+ * Tax recoverability
172
+ */
173
+ taxRecoverability?: string | null | undefined;
174
+ /**
175
+ * Method of tax calculation
176
+ */
177
+ taxMethod?: string | null | undefined;
178
+ /**
179
+ * Retention amount
180
+ */
181
+ retentionAmount?: number | null | undefined;
182
+ /**
183
+ * Payment amount
184
+ */
185
+ paymentAmount?: number | null | undefined;
148
186
  item?: LinkedInvoiceItem | undefined;
149
187
  taxRate?: LinkedTaxRate | undefined;
150
188
  ledgerAccount?: LinkedLedgerAccount | null | undefined;
@@ -181,6 +219,10 @@ export type BillLineItem = {
181
219
  * The date and time when the object was last updated.
182
220
  */
183
221
  updatedAt?: Date | null | undefined;
222
+ /**
223
+ * A list of linked worktags. This is only supported for Workday.
224
+ */
225
+ worktags?: Array<LinkedWorktag | null> | undefined;
184
226
  };
185
227
 
186
228
  export type BillLineItemInput = {
@@ -242,6 +284,38 @@ export type BillLineItemInput = {
242
284
  * ID of the category of the line item
243
285
  */
244
286
  categoryId?: string | null | undefined;
287
+ /**
288
+ * ID of the shipping of the line item
289
+ */
290
+ shippingId?: string | null | undefined;
291
+ /**
292
+ * Memo
293
+ */
294
+ memo?: string | null | undefined;
295
+ /**
296
+ * Whether the line item is prepaid
297
+ */
298
+ prepaid?: boolean | null | undefined;
299
+ /**
300
+ * Tax applicable on
301
+ */
302
+ taxApplicableOn?: string | null | undefined;
303
+ /**
304
+ * Tax recoverability
305
+ */
306
+ taxRecoverability?: string | null | undefined;
307
+ /**
308
+ * Method of tax calculation
309
+ */
310
+ taxMethod?: string | null | undefined;
311
+ /**
312
+ * Retention amount
313
+ */
314
+ retentionAmount?: number | null | undefined;
315
+ /**
316
+ * Payment amount
317
+ */
318
+ paymentAmount?: number | null | undefined;
245
319
  item?: LinkedInvoiceItem | undefined;
246
320
  taxRate?: LinkedTaxRateInput | undefined;
247
321
  ledgerAccount?: LinkedLedgerAccountInput | null | undefined;
@@ -262,6 +336,10 @@ export type BillLineItemInput = {
262
336
  * 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.
263
337
  */
264
338
  rowVersion?: string | null | undefined;
339
+ /**
340
+ * A list of linked worktags. This is only supported for Workday.
341
+ */
342
+ worktags?: Array<LinkedWorktag | null> | undefined;
265
343
  };
266
344
 
267
345
  /** @internal */
@@ -308,6 +386,14 @@ export const BillLineItem$inboundSchema: z.ZodType<
308
386
  department_id: z.nullable(z.string()).optional(),
309
387
  subsidiary_id: z.nullable(z.string()).optional(),
310
388
  category_id: z.nullable(z.string()).optional(),
389
+ shipping_id: z.nullable(z.string()).optional(),
390
+ memo: z.nullable(z.string()).optional(),
391
+ prepaid: z.nullable(z.boolean()).optional(),
392
+ tax_applicable_on: z.nullable(z.string()).optional(),
393
+ tax_recoverability: z.nullable(z.string()).optional(),
394
+ tax_method: z.nullable(z.string()).optional(),
395
+ retention_amount: z.nullable(z.number()).optional(),
396
+ payment_amount: z.nullable(z.number()).optional(),
311
397
  item: LinkedInvoiceItem$inboundSchema.optional(),
312
398
  tax_rate: LinkedTaxRate$inboundSchema.optional(),
313
399
  ledger_account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(),
@@ -326,6 +412,7 @@ export const BillLineItem$inboundSchema: z.ZodType<
326
412
  updated_at: z.nullable(
327
413
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
328
414
  ).optional(),
415
+ worktags: z.array(z.nullable(LinkedWorktag$inboundSchema)).optional(),
329
416
  }).transform((v) => {
330
417
  return remap$(v, {
331
418
  "row_id": "rowId",
@@ -340,6 +427,12 @@ export const BillLineItem$inboundSchema: z.ZodType<
340
427
  "department_id": "departmentId",
341
428
  "subsidiary_id": "subsidiaryId",
342
429
  "category_id": "categoryId",
430
+ "shipping_id": "shippingId",
431
+ "tax_applicable_on": "taxApplicableOn",
432
+ "tax_recoverability": "taxRecoverability",
433
+ "tax_method": "taxMethod",
434
+ "retention_amount": "retentionAmount",
435
+ "payment_amount": "paymentAmount",
343
436
  "tax_rate": "taxRate",
344
437
  "ledger_account": "ledgerAccount",
345
438
  "purchase_order": "purchaseOrder",
@@ -371,6 +464,14 @@ export type BillLineItem$Outbound = {
371
464
  department_id?: string | null | undefined;
372
465
  subsidiary_id?: string | null | undefined;
373
466
  category_id?: string | null | undefined;
467
+ shipping_id?: string | null | undefined;
468
+ memo?: string | null | undefined;
469
+ prepaid?: boolean | null | undefined;
470
+ tax_applicable_on?: string | null | undefined;
471
+ tax_recoverability?: string | null | undefined;
472
+ tax_method?: string | null | undefined;
473
+ retention_amount?: number | null | undefined;
474
+ payment_amount?: number | null | undefined;
374
475
  item?: LinkedInvoiceItem$Outbound | undefined;
375
476
  tax_rate?: LinkedTaxRate$Outbound | undefined;
376
477
  ledger_account?: LinkedLedgerAccount$Outbound | null | undefined;
@@ -386,6 +487,7 @@ export type BillLineItem$Outbound = {
386
487
  created_by?: string | null | undefined;
387
488
  created_at?: string | null | undefined;
388
489
  updated_at?: string | null | undefined;
490
+ worktags?: Array<LinkedWorktag$Outbound | null> | undefined;
389
491
  };
390
492
 
391
493
  /** @internal */
@@ -411,6 +513,14 @@ export const BillLineItem$outboundSchema: z.ZodType<
411
513
  departmentId: z.nullable(z.string()).optional(),
412
514
  subsidiaryId: z.nullable(z.string()).optional(),
413
515
  categoryId: z.nullable(z.string()).optional(),
516
+ shippingId: z.nullable(z.string()).optional(),
517
+ memo: z.nullable(z.string()).optional(),
518
+ prepaid: z.nullable(z.boolean()).optional(),
519
+ taxApplicableOn: z.nullable(z.string()).optional(),
520
+ taxRecoverability: z.nullable(z.string()).optional(),
521
+ taxMethod: z.nullable(z.string()).optional(),
522
+ retentionAmount: z.nullable(z.number()).optional(),
523
+ paymentAmount: z.nullable(z.number()).optional(),
414
524
  item: LinkedInvoiceItem$outboundSchema.optional(),
415
525
  taxRate: LinkedTaxRate$outboundSchema.optional(),
416
526
  ledgerAccount: z.nullable(LinkedLedgerAccount$outboundSchema).optional(),
@@ -425,6 +535,7 @@ export const BillLineItem$outboundSchema: z.ZodType<
425
535
  createdBy: z.nullable(z.string()).optional(),
426
536
  createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
427
537
  updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
538
+ worktags: z.array(z.nullable(LinkedWorktag$outboundSchema)).optional(),
428
539
  }).transform((v) => {
429
540
  return remap$(v, {
430
541
  rowId: "row_id",
@@ -439,6 +550,12 @@ export const BillLineItem$outboundSchema: z.ZodType<
439
550
  departmentId: "department_id",
440
551
  subsidiaryId: "subsidiary_id",
441
552
  categoryId: "category_id",
553
+ shippingId: "shipping_id",
554
+ taxApplicableOn: "tax_applicable_on",
555
+ taxRecoverability: "tax_recoverability",
556
+ taxMethod: "tax_method",
557
+ retentionAmount: "retention_amount",
558
+ paymentAmount: "payment_amount",
442
559
  taxRate: "tax_rate",
443
560
  ledgerAccount: "ledger_account",
444
561
  purchaseOrder: "purchase_order",
@@ -500,6 +617,14 @@ export const BillLineItemInput$inboundSchema: z.ZodType<
500
617
  department_id: z.nullable(z.string()).optional(),
501
618
  subsidiary_id: z.nullable(z.string()).optional(),
502
619
  category_id: z.nullable(z.string()).optional(),
620
+ shipping_id: z.nullable(z.string()).optional(),
621
+ memo: z.nullable(z.string()).optional(),
622
+ prepaid: z.nullable(z.boolean()).optional(),
623
+ tax_applicable_on: z.nullable(z.string()).optional(),
624
+ tax_recoverability: z.nullable(z.string()).optional(),
625
+ tax_method: z.nullable(z.string()).optional(),
626
+ retention_amount: z.nullable(z.number()).optional(),
627
+ payment_amount: z.nullable(z.number()).optional(),
503
628
  item: LinkedInvoiceItem$inboundSchema.optional(),
504
629
  tax_rate: LinkedTaxRateInput$inboundSchema.optional(),
505
630
  ledger_account: z.nullable(LinkedLedgerAccountInput$inboundSchema).optional(),
@@ -510,6 +635,7 @@ export const BillLineItemInput$inboundSchema: z.ZodType<
510
635
  customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(),
511
636
  rebilling: z.nullable(Rebilling$inboundSchema).optional(),
512
637
  row_version: z.nullable(z.string()).optional(),
638
+ worktags: z.array(z.nullable(LinkedWorktag$inboundSchema)).optional(),
513
639
  }).transform((v) => {
514
640
  return remap$(v, {
515
641
  "row_id": "rowId",
@@ -524,6 +650,12 @@ export const BillLineItemInput$inboundSchema: z.ZodType<
524
650
  "department_id": "departmentId",
525
651
  "subsidiary_id": "subsidiaryId",
526
652
  "category_id": "categoryId",
653
+ "shipping_id": "shippingId",
654
+ "tax_applicable_on": "taxApplicableOn",
655
+ "tax_recoverability": "taxRecoverability",
656
+ "tax_method": "taxMethod",
657
+ "retention_amount": "retentionAmount",
658
+ "payment_amount": "paymentAmount",
527
659
  "tax_rate": "taxRate",
528
660
  "ledger_account": "ledgerAccount",
529
661
  "purchase_order": "purchaseOrder",
@@ -550,6 +682,14 @@ export type BillLineItemInput$Outbound = {
550
682
  department_id?: string | null | undefined;
551
683
  subsidiary_id?: string | null | undefined;
552
684
  category_id?: string | null | undefined;
685
+ shipping_id?: string | null | undefined;
686
+ memo?: string | null | undefined;
687
+ prepaid?: boolean | null | undefined;
688
+ tax_applicable_on?: string | null | undefined;
689
+ tax_recoverability?: string | null | undefined;
690
+ tax_method?: string | null | undefined;
691
+ retention_amount?: number | null | undefined;
692
+ payment_amount?: number | null | undefined;
553
693
  item?: LinkedInvoiceItem$Outbound | undefined;
554
694
  tax_rate?: LinkedTaxRateInput$Outbound | undefined;
555
695
  ledger_account?: LinkedLedgerAccountInput$Outbound | null | undefined;
@@ -561,6 +701,7 @@ export type BillLineItemInput$Outbound = {
561
701
  customer?: LinkedCustomerInput$Outbound | null | undefined;
562
702
  rebilling?: Rebilling$Outbound | null | undefined;
563
703
  row_version?: string | null | undefined;
704
+ worktags?: Array<LinkedWorktag$Outbound | null> | undefined;
564
705
  };
565
706
 
566
707
  /** @internal */
@@ -585,6 +726,14 @@ export const BillLineItemInput$outboundSchema: z.ZodType<
585
726
  departmentId: z.nullable(z.string()).optional(),
586
727
  subsidiaryId: z.nullable(z.string()).optional(),
587
728
  categoryId: z.nullable(z.string()).optional(),
729
+ shippingId: z.nullable(z.string()).optional(),
730
+ memo: z.nullable(z.string()).optional(),
731
+ prepaid: z.nullable(z.boolean()).optional(),
732
+ taxApplicableOn: z.nullable(z.string()).optional(),
733
+ taxRecoverability: z.nullable(z.string()).optional(),
734
+ taxMethod: z.nullable(z.string()).optional(),
735
+ retentionAmount: z.nullable(z.number()).optional(),
736
+ paymentAmount: z.nullable(z.number()).optional(),
588
737
  item: LinkedInvoiceItem$outboundSchema.optional(),
589
738
  taxRate: LinkedTaxRateInput$outboundSchema.optional(),
590
739
  ledgerAccount: z.nullable(LinkedLedgerAccountInput$outboundSchema).optional(),
@@ -595,6 +744,7 @@ export const BillLineItemInput$outboundSchema: z.ZodType<
595
744
  customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
596
745
  rebilling: z.nullable(Rebilling$outboundSchema).optional(),
597
746
  rowVersion: z.nullable(z.string()).optional(),
747
+ worktags: z.array(z.nullable(LinkedWorktag$outboundSchema)).optional(),
598
748
  }).transform((v) => {
599
749
  return remap$(v, {
600
750
  rowId: "row_id",
@@ -609,6 +759,12 @@ export const BillLineItemInput$outboundSchema: z.ZodType<
609
759
  departmentId: "department_id",
610
760
  subsidiaryId: "subsidiary_id",
611
761
  categoryId: "category_id",
762
+ shippingId: "shipping_id",
763
+ taxApplicableOn: "tax_applicable_on",
764
+ taxRecoverability: "tax_recoverability",
765
+ taxMethod: "tax_method",
766
+ retentionAmount: "retention_amount",
767
+ paymentAmount: "payment_amount",
612
768
  taxRate: "tax_rate",
613
769
  ledgerAccount: "ledger_account",
614
770
  purchaseOrder: "purchase_order",
@@ -161,7 +161,7 @@ export type BillPayment = {
161
161
  */
162
162
  supplier?: LinkedSupplier | null | undefined;
163
163
  /**
164
- * The company or subsidiary id the transaction belongs to
164
+ * The company ID the transaction belongs to
165
165
  */
166
166
  companyId?: string | null | undefined;
167
167
  /**
@@ -282,7 +282,7 @@ export type BillPaymentInput = {
282
282
  */
283
283
  supplier?: LinkedSupplierInput | null | undefined;
284
284
  /**
285
- * The company or subsidiary id the transaction belongs to
285
+ * The company ID the transaction belongs to
286
286
  */
287
287
  companyId?: string | null | undefined;
288
288
  /**
@@ -123,9 +123,13 @@ export type CreditNote = {
123
123
  */
124
124
  customer?: LinkedCustomer | null | undefined;
125
125
  /**
126
- * The company or subsidiary id the transaction belongs to
126
+ * The company ID the transaction belongs to
127
127
  */
128
128
  companyId?: string | null | undefined;
129
+ /**
130
+ * The ID of the department
131
+ */
132
+ departmentId?: string | null | undefined;
129
133
  /**
130
134
  * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
131
135
  */
@@ -240,9 +244,13 @@ export type CreditNoteInput = {
240
244
  */
241
245
  customer?: LinkedCustomerInput | null | undefined;
242
246
  /**
243
- * The company or subsidiary id the transaction belongs to
247
+ * The company ID the transaction belongs to
244
248
  */
245
249
  companyId?: string | null | undefined;
250
+ /**
251
+ * The ID of the department
252
+ */
253
+ departmentId?: string | null | undefined;
246
254
  /**
247
255
  * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
248
256
  */
@@ -379,6 +387,7 @@ export const CreditNote$inboundSchema: z.ZodType<
379
387
  number: z.nullable(z.string()).optional(),
380
388
  customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
381
389
  company_id: z.nullable(z.string()).optional(),
390
+ department_id: z.nullable(z.string()).optional(),
382
391
  currency: z.nullable(Currency$inboundSchema).optional(),
383
392
  currency_rate: z.nullable(z.number()).optional(),
384
393
  tax_inclusive: z.nullable(z.boolean()).optional(),
@@ -421,6 +430,7 @@ export const CreditNote$inboundSchema: z.ZodType<
421
430
  }).transform((v) => {
422
431
  return remap$(v, {
423
432
  "company_id": "companyId",
433
+ "department_id": "departmentId",
424
434
  "currency_rate": "currencyRate",
425
435
  "tax_inclusive": "taxInclusive",
426
436
  "sub_total": "subTotal",
@@ -451,6 +461,7 @@ export type CreditNote$Outbound = {
451
461
  number?: string | null | undefined;
452
462
  customer?: LinkedCustomer$Outbound | null | undefined;
453
463
  company_id?: string | null | undefined;
464
+ department_id?: string | null | undefined;
454
465
  currency?: string | null | undefined;
455
466
  currency_rate?: number | null | undefined;
456
467
  tax_inclusive?: boolean | null | undefined;
@@ -496,6 +507,7 @@ export const CreditNote$outboundSchema: z.ZodType<
496
507
  number: z.nullable(z.string()).optional(),
497
508
  customer: z.nullable(LinkedCustomer$outboundSchema).optional(),
498
509
  companyId: z.nullable(z.string()).optional(),
510
+ departmentId: z.nullable(z.string()).optional(),
499
511
  currency: z.nullable(Currency$outboundSchema).optional(),
500
512
  currencyRate: z.nullable(z.number()).optional(),
501
513
  taxInclusive: z.nullable(z.boolean()).optional(),
@@ -531,6 +543,7 @@ export const CreditNote$outboundSchema: z.ZodType<
531
543
  }).transform((v) => {
532
544
  return remap$(v, {
533
545
  companyId: "company_id",
546
+ departmentId: "department_id",
534
547
  currencyRate: "currency_rate",
535
548
  taxInclusive: "tax_inclusive",
536
549
  subTotal: "sub_total",
@@ -591,6 +604,7 @@ export const CreditNoteInput$inboundSchema: z.ZodType<
591
604
  number: z.nullable(z.string()).optional(),
592
605
  customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(),
593
606
  company_id: z.nullable(z.string()).optional(),
607
+ department_id: z.nullable(z.string()).optional(),
594
608
  currency: z.nullable(Currency$inboundSchema).optional(),
595
609
  currency_rate: z.nullable(z.number()).optional(),
596
610
  tax_inclusive: z.nullable(z.boolean()).optional(),
@@ -624,6 +638,7 @@ export const CreditNoteInput$inboundSchema: z.ZodType<
624
638
  }).transform((v) => {
625
639
  return remap$(v, {
626
640
  "company_id": "companyId",
641
+ "department_id": "departmentId",
627
642
  "currency_rate": "currencyRate",
628
643
  "tax_inclusive": "taxInclusive",
629
644
  "sub_total": "subTotal",
@@ -648,6 +663,7 @@ export type CreditNoteInput$Outbound = {
648
663
  number?: string | null | undefined;
649
664
  customer?: LinkedCustomerInput$Outbound | null | undefined;
650
665
  company_id?: string | null | undefined;
666
+ department_id?: string | null | undefined;
651
667
  currency?: string | null | undefined;
652
668
  currency_rate?: number | null | undefined;
653
669
  tax_inclusive?: boolean | null | undefined;
@@ -687,6 +703,7 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
687
703
  number: z.nullable(z.string()).optional(),
688
704
  customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
689
705
  companyId: z.nullable(z.string()).optional(),
706
+ departmentId: z.nullable(z.string()).optional(),
690
707
  currency: z.nullable(Currency$outboundSchema).optional(),
691
708
  currencyRate: z.nullable(z.number()).optional(),
692
709
  taxInclusive: z.nullable(z.boolean()).optional(),
@@ -717,6 +734,7 @@ export const CreditNoteInput$outboundSchema: z.ZodType<
717
734
  }).transform((v) => {
718
735
  return remap$(v, {
719
736
  companyId: "company_id",
737
+ departmentId: "department_id",
720
738
  currencyRate: "currency_rate",
721
739
  taxInclusive: "tax_inclusive",
722
740
  subTotal: "sub_total",
@@ -123,7 +123,7 @@ export type Customer = {
123
123
  */
124
124
  companyName?: string | null | undefined;
125
125
  /**
126
- * The company or subsidiary id the transaction belongs to
126
+ * The company ID the transaction belongs to
127
127
  */
128
128
  companyId?: string | null | undefined;
129
129
  /**
@@ -228,7 +228,7 @@ export type CustomerInput = {
228
228
  */
229
229
  companyName?: string | null | undefined;
230
230
  /**
231
- * The company or subsidiary id the transaction belongs to
231
+ * The company ID the transaction belongs to
232
232
  */
233
233
  companyId?: string | null | undefined;
234
234
  /**
@@ -101,7 +101,7 @@ export type Expense = {
101
101
  */
102
102
  supplierId?: string | undefined;
103
103
  /**
104
- * The company or subsidiary id the transaction belongs to
104
+ * The company ID the transaction belongs to
105
105
  */
106
106
  companyId?: string | null | undefined;
107
107
  /**
@@ -198,7 +198,7 @@ export type ExpenseInput = {
198
198
  */
199
199
  supplierId?: string | undefined;
200
200
  /**
201
- * The company or subsidiary id the transaction belongs to
201
+ * The company ID the transaction belongs to
202
202
  */
203
203
  companyId?: string | null | undefined;
204
204
  /**
@@ -397,6 +397,7 @@ export * from "./leadssort.js";
397
397
  export * from "./ledgeraccount.js";
398
398
  export * from "./ledgeraccountsfilter.js";
399
399
  export * from "./ledgeraccountssort.js";
400
+ export * from "./linkedattachment.js";
400
401
  export * from "./linkedconnectorresource.js";
401
402
  export * from "./linkedcustomer.js";
402
403
  export * from "./linkedcustomerinput.js";
@@ -413,6 +414,7 @@ export * from "./linkedsupplierinput.js";
413
414
  export * from "./linkedtaxrate.js";
414
415
  export * from "./linkedtaxrateinput.js";
415
416
  export * from "./linkedtrackingcategory.js";
417
+ export * from "./linkedworktag.js";
416
418
  export * from "./links.js";
417
419
  export * from "./log.js";
418
420
  export * from "./logsfilter.js";
@@ -143,6 +143,10 @@ export type Invoice = {
143
143
  * The third-party API ID of original entity
144
144
  */
145
145
  downstreamId?: string | null | undefined;
146
+ /**
147
+ * Id to be displayed.
148
+ */
149
+ displayId?: string | null | undefined;
146
150
  /**
147
151
  * Invoice type
148
152
  */
@@ -156,9 +160,13 @@ export type Invoice = {
156
160
  */
157
161
  customer?: LinkedCustomer | null | undefined;
158
162
  /**
159
- * The company or subsidiary id the transaction belongs to
163
+ * The company ID the transaction belongs to
160
164
  */
161
165
  companyId?: string | null | undefined;
166
+ /**
167
+ * The ID of the department
168
+ */
169
+ departmentId?: string | null | undefined;
162
170
  /**
163
171
  * Date invoice was issued - YYYY-MM-DD.
164
172
  */
@@ -308,6 +316,10 @@ export type Invoice = {
308
316
  };
309
317
 
310
318
  export type InvoiceInput = {
319
+ /**
320
+ * Id to be displayed.
321
+ */
322
+ displayId?: string | null | undefined;
311
323
  /**
312
324
  * Invoice type
313
325
  */
@@ -321,9 +333,13 @@ export type InvoiceInput = {
321
333
  */
322
334
  customer?: LinkedCustomerInput | null | undefined;
323
335
  /**
324
- * The company or subsidiary id the transaction belongs to
336
+ * The company ID the transaction belongs to
325
337
  */
326
338
  companyId?: string | null | undefined;
339
+ /**
340
+ * The ID of the department
341
+ */
342
+ departmentId?: string | null | undefined;
327
343
  /**
328
344
  * Date invoice was issued - YYYY-MM-DD.
329
345
  */
@@ -567,10 +583,12 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
567
583
  z.object({
568
584
  id: z.string().optional(),
569
585
  downstream_id: z.nullable(z.string()).optional(),
586
+ display_id: z.nullable(z.string()).optional(),
570
587
  type: z.nullable(InvoiceType$inboundSchema).optional(),
571
588
  number: z.nullable(z.string()).optional(),
572
589
  customer: z.nullable(LinkedCustomer$inboundSchema).optional(),
573
590
  company_id: z.nullable(z.string()).optional(),
591
+ department_id: z.nullable(z.string()).optional(),
574
592
  invoice_date: z.nullable(z.string().transform(v => new RFCDate(v)))
575
593
  .optional(),
576
594
  due_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
@@ -626,7 +644,9 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
626
644
  }).transform((v) => {
627
645
  return remap$(v, {
628
646
  "downstream_id": "downstreamId",
647
+ "display_id": "displayId",
629
648
  "company_id": "companyId",
649
+ "department_id": "departmentId",
630
650
  "invoice_date": "invoiceDate",
631
651
  "due_date": "dueDate",
632
652
  "po_number": "poNumber",
@@ -666,10 +686,12 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
666
686
  export type Invoice$Outbound = {
667
687
  id?: string | undefined;
668
688
  downstream_id?: string | null | undefined;
689
+ display_id?: string | null | undefined;
669
690
  type?: string | null | undefined;
670
691
  number?: string | null | undefined;
671
692
  customer?: LinkedCustomer$Outbound | null | undefined;
672
693
  company_id?: string | null | undefined;
694
+ department_id?: string | null | undefined;
673
695
  invoice_date?: string | null | undefined;
674
696
  due_date?: string | null | undefined;
675
697
  terms?: string | null | undefined;
@@ -727,10 +749,12 @@ export const Invoice$outboundSchema: z.ZodType<
727
749
  > = z.object({
728
750
  id: z.string().optional(),
729
751
  downstreamId: z.nullable(z.string()).optional(),
752
+ displayId: z.nullable(z.string()).optional(),
730
753
  type: z.nullable(InvoiceType$outboundSchema).optional(),
731
754
  number: z.nullable(z.string()).optional(),
732
755
  customer: z.nullable(LinkedCustomer$outboundSchema).optional(),
733
756
  companyId: z.nullable(z.string()).optional(),
757
+ departmentId: z.nullable(z.string()).optional(),
734
758
  invoiceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
735
759
  .optional(),
736
760
  dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
@@ -782,7 +806,9 @@ export const Invoice$outboundSchema: z.ZodType<
782
806
  }).transform((v) => {
783
807
  return remap$(v, {
784
808
  downstreamId: "downstream_id",
809
+ displayId: "display_id",
785
810
  companyId: "company_id",
811
+ departmentId: "department_id",
786
812
  invoiceDate: "invoice_date",
787
813
  dueDate: "due_date",
788
814
  poNumber: "po_number",
@@ -851,10 +877,12 @@ export const InvoiceInput$inboundSchema: z.ZodType<
851
877
  z.ZodTypeDef,
852
878
  unknown
853
879
  > = z.object({
880
+ display_id: z.nullable(z.string()).optional(),
854
881
  type: z.nullable(InvoiceType$inboundSchema).optional(),
855
882
  number: z.nullable(z.string()).optional(),
856
883
  customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(),
857
884
  company_id: z.nullable(z.string()).optional(),
885
+ department_id: z.nullable(z.string()).optional(),
858
886
  invoice_date: z.nullable(z.string().transform(v => new RFCDate(v)))
859
887
  .optional(),
860
888
  due_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
@@ -899,7 +927,9 @@ export const InvoiceInput$inboundSchema: z.ZodType<
899
927
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
900
928
  }).transform((v) => {
901
929
  return remap$(v, {
930
+ "display_id": "displayId",
902
931
  "company_id": "companyId",
932
+ "department_id": "departmentId",
903
933
  "invoice_date": "invoiceDate",
904
934
  "due_date": "dueDate",
905
935
  "po_number": "poNumber",
@@ -932,10 +962,12 @@ export const InvoiceInput$inboundSchema: z.ZodType<
932
962
 
933
963
  /** @internal */
934
964
  export type InvoiceInput$Outbound = {
965
+ display_id?: string | null | undefined;
935
966
  type?: string | null | undefined;
936
967
  number?: string | null | undefined;
937
968
  customer?: LinkedCustomerInput$Outbound | null | undefined;
938
969
  company_id?: string | null | undefined;
970
+ department_id?: string | null | undefined;
939
971
  invoice_date?: string | null | undefined;
940
972
  due_date?: string | null | undefined;
941
973
  terms?: string | null | undefined;
@@ -986,10 +1018,12 @@ export const InvoiceInput$outboundSchema: z.ZodType<
986
1018
  z.ZodTypeDef,
987
1019
  InvoiceInput
988
1020
  > = z.object({
1021
+ displayId: z.nullable(z.string()).optional(),
989
1022
  type: z.nullable(InvoiceType$outboundSchema).optional(),
990
1023
  number: z.nullable(z.string()).optional(),
991
1024
  customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
992
1025
  companyId: z.nullable(z.string()).optional(),
1026
+ departmentId: z.nullable(z.string()).optional(),
993
1027
  invoiceDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
994
1028
  .optional(),
995
1029
  dueDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
@@ -1035,7 +1069,9 @@ export const InvoiceInput$outboundSchema: z.ZodType<
1035
1069
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
1036
1070
  }).transform((v) => {
1037
1071
  return remap$(v, {
1072
+ displayId: "display_id",
1038
1073
  companyId: "company_id",
1074
+ departmentId: "department_id",
1039
1075
  invoiceDate: "invoice_date",
1040
1076
  dueDate: "due_date",
1041
1077
  poNumber: "po_number",