@apideck/unify 0.18.0 → 0.20.0

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 (225) hide show
  1. package/docs/sdks/customers/README.md +2 -0
  2. package/funcs/accountingAttachmentsList.js +1 -1
  3. package/funcs/accountingAttachmentsList.js.map +1 -1
  4. package/funcs/accountingBillPaymentsList.js +1 -1
  5. package/funcs/accountingBillPaymentsList.js.map +1 -1
  6. package/funcs/accountingBillsList.js +1 -1
  7. package/funcs/accountingBillsList.js.map +1 -1
  8. package/funcs/accountingCreditNotesList.js +1 -1
  9. package/funcs/accountingCreditNotesList.js.map +1 -1
  10. package/funcs/accountingCustomersList.js +1 -1
  11. package/funcs/accountingCustomersList.js.map +1 -1
  12. package/funcs/accountingDepartmentsList.js +1 -1
  13. package/funcs/accountingDepartmentsList.js.map +1 -1
  14. package/funcs/accountingExpensesList.js +1 -1
  15. package/funcs/accountingExpensesList.js.map +1 -1
  16. package/funcs/accountingInvoiceItemsList.js +1 -1
  17. package/funcs/accountingInvoiceItemsList.js.map +1 -1
  18. package/funcs/accountingInvoicesList.js +1 -1
  19. package/funcs/accountingInvoicesList.js.map +1 -1
  20. package/funcs/accountingJournalEntriesList.js +1 -1
  21. package/funcs/accountingJournalEntriesList.js.map +1 -1
  22. package/funcs/accountingLedgerAccountsList.js +1 -1
  23. package/funcs/accountingLedgerAccountsList.js.map +1 -1
  24. package/funcs/accountingLocationsList.js +1 -1
  25. package/funcs/accountingLocationsList.js.map +1 -1
  26. package/funcs/accountingPaymentsList.js +1 -1
  27. package/funcs/accountingPaymentsList.js.map +1 -1
  28. package/funcs/accountingPurchaseOrdersList.js +1 -1
  29. package/funcs/accountingPurchaseOrdersList.js.map +1 -1
  30. package/funcs/accountingSubsidiariesList.js +1 -1
  31. package/funcs/accountingSubsidiariesList.js.map +1 -1
  32. package/funcs/accountingSuppliersList.js +1 -1
  33. package/funcs/accountingSuppliersList.js.map +1 -1
  34. package/funcs/accountingTaxRatesList.js +1 -1
  35. package/funcs/accountingTaxRatesList.js.map +1 -1
  36. package/funcs/accountingTrackingCategoriesList.js +1 -1
  37. package/funcs/accountingTrackingCategoriesList.js.map +1 -1
  38. package/funcs/atsApplicantsList.js +1 -1
  39. package/funcs/atsApplicantsList.js.map +1 -1
  40. package/funcs/atsApplicationsList.js +1 -1
  41. package/funcs/atsApplicationsList.js.map +1 -1
  42. package/funcs/atsJobsList.js +1 -1
  43. package/funcs/atsJobsList.js.map +1 -1
  44. package/funcs/connectorApisList.js +1 -1
  45. package/funcs/connectorApisList.js.map +1 -1
  46. package/funcs/connectorConnectorsList.js +1 -1
  47. package/funcs/connectorConnectorsList.js.map +1 -1
  48. package/funcs/crmActivitiesList.js +1 -1
  49. package/funcs/crmActivitiesList.js.map +1 -1
  50. package/funcs/crmCompaniesList.js +1 -1
  51. package/funcs/crmCompaniesList.js.map +1 -1
  52. package/funcs/crmContactsList.js +1 -1
  53. package/funcs/crmContactsList.js.map +1 -1
  54. package/funcs/crmLeadsList.js +1 -1
  55. package/funcs/crmLeadsList.js.map +1 -1
  56. package/funcs/crmNotesList.js +1 -1
  57. package/funcs/crmNotesList.js.map +1 -1
  58. package/funcs/crmOpportunitiesList.js +1 -1
  59. package/funcs/crmOpportunitiesList.js.map +1 -1
  60. package/funcs/crmPipelinesList.js +1 -1
  61. package/funcs/crmPipelinesList.js.map +1 -1
  62. package/funcs/crmUsersList.js +1 -1
  63. package/funcs/crmUsersList.js.map +1 -1
  64. package/funcs/ecommerceCustomersList.js +1 -1
  65. package/funcs/ecommerceCustomersList.js.map +1 -1
  66. package/funcs/ecommerceOrdersList.js +1 -1
  67. package/funcs/ecommerceOrdersList.js.map +1 -1
  68. package/funcs/ecommerceProductsList.js +1 -1
  69. package/funcs/ecommerceProductsList.js.map +1 -1
  70. package/funcs/fileStorageDriveGroupsList.js +1 -1
  71. package/funcs/fileStorageDriveGroupsList.js.map +1 -1
  72. package/funcs/fileStorageDrivesList.js +1 -1
  73. package/funcs/fileStorageDrivesList.js.map +1 -1
  74. package/funcs/fileStorageFilesList.js +1 -1
  75. package/funcs/fileStorageFilesList.js.map +1 -1
  76. package/funcs/fileStorageSharedLinksList.js +1 -1
  77. package/funcs/fileStorageSharedLinksList.js.map +1 -1
  78. package/funcs/hrisCompaniesList.js +1 -1
  79. package/funcs/hrisCompaniesList.js.map +1 -1
  80. package/funcs/hrisDepartmentsList.js +1 -1
  81. package/funcs/hrisDepartmentsList.js.map +1 -1
  82. package/funcs/hrisEmployeesList.js +1 -1
  83. package/funcs/hrisEmployeesList.js.map +1 -1
  84. package/funcs/hrisTimeOffRequestsList.js +1 -1
  85. package/funcs/hrisTimeOffRequestsList.js.map +1 -1
  86. package/funcs/issueTrackingCollectionTagsList.js +1 -1
  87. package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
  88. package/funcs/issueTrackingCollectionTicketCommentsGet.js +1 -1
  89. package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
  90. package/funcs/issueTrackingCollectionTicketCommentsList.js +1 -1
  91. package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
  92. package/funcs/issueTrackingCollectionTicketsList.js +1 -1
  93. package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
  94. package/funcs/issueTrackingCollectionUsersList.js +1 -1
  95. package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
  96. package/funcs/issueTrackingCollectionsList.js +1 -1
  97. package/funcs/issueTrackingCollectionsList.js.map +1 -1
  98. package/funcs/smsMessagesList.js +1 -1
  99. package/funcs/smsMessagesList.js.map +1 -1
  100. package/funcs/vaultConsumersList.js +1 -1
  101. package/funcs/vaultConsumersList.js.map +1 -1
  102. package/funcs/vaultLogsList.js +1 -1
  103. package/funcs/vaultLogsList.js.map +1 -1
  104. package/funcs/webhookEventLogsList.js +1 -1
  105. package/funcs/webhookEventLogsList.js.map +1 -1
  106. package/funcs/webhookWebhooksList.js +1 -1
  107. package/funcs/webhookWebhooksList.js.map +1 -1
  108. package/jsr.json +1 -1
  109. package/lib/config.d.ts +5 -5
  110. package/lib/config.d.ts.map +1 -1
  111. package/lib/config.js +4 -4
  112. package/lib/primitives.d.ts +3 -0
  113. package/lib/primitives.d.ts.map +1 -1
  114. package/lib/primitives.js +7 -0
  115. package/lib/primitives.js.map +1 -1
  116. package/lib/sdks.d.ts.map +1 -1
  117. package/lib/sdks.js +2 -8
  118. package/lib/sdks.js.map +1 -1
  119. package/models/components/address.d.ts +8 -8
  120. package/models/components/address.d.ts.map +1 -1
  121. package/models/components/address.js +14 -13
  122. package/models/components/address.js.map +1 -1
  123. package/models/components/balancesheetfilter.d.ts +2 -0
  124. package/models/components/balancesheetfilter.d.ts.map +1 -1
  125. package/models/components/balancesheetfilter.js.map +1 -1
  126. package/models/components/bill.d.ts +10 -0
  127. package/models/components/bill.d.ts.map +1 -1
  128. package/models/components/bill.js +8 -0
  129. package/models/components/bill.js.map +1 -1
  130. package/models/components/billpayment.d.ts +2 -2
  131. package/models/components/contact.d.ts +9 -9
  132. package/models/components/contact.d.ts.map +1 -1
  133. package/models/components/contact.js +15 -16
  134. package/models/components/contact.js.map +1 -1
  135. package/models/components/customersfilter.d.ts +5 -0
  136. package/models/components/customersfilter.d.ts.map +1 -1
  137. package/models/components/customersfilter.js +4 -0
  138. package/models/components/customersfilter.js.map +1 -1
  139. package/models/components/index.d.ts +2 -0
  140. package/models/components/index.d.ts.map +1 -1
  141. package/models/components/index.js +2 -0
  142. package/models/components/index.js.map +1 -1
  143. package/models/components/payment.d.ts +1 -1
  144. package/models/components/paymentinput.d.ts +1 -1
  145. package/models/components/profitandloss.d.ts +256 -56
  146. package/models/components/profitandloss.d.ts.map +1 -1
  147. package/models/components/profitandloss.js +158 -62
  148. package/models/components/profitandloss.js.map +1 -1
  149. package/models/components/profitandlossindicator.d.ts +32 -0
  150. package/models/components/profitandlossindicator.d.ts.map +1 -0
  151. package/models/components/profitandlossindicator.js +59 -0
  152. package/models/components/profitandlossindicator.js.map +1 -0
  153. package/models/components/profitandlosstype.d.ts +34 -0
  154. package/models/components/profitandlosstype.d.ts.map +1 -0
  155. package/models/components/profitandlosstype.js +53 -0
  156. package/models/components/profitandlosstype.js.map +1 -0
  157. package/package.json +1 -1
  158. package/src/funcs/accountingAttachmentsList.ts +1 -1
  159. package/src/funcs/accountingBillPaymentsList.ts +1 -1
  160. package/src/funcs/accountingBillsList.ts +1 -1
  161. package/src/funcs/accountingCreditNotesList.ts +1 -1
  162. package/src/funcs/accountingCustomersList.ts +1 -1
  163. package/src/funcs/accountingDepartmentsList.ts +1 -1
  164. package/src/funcs/accountingExpensesList.ts +1 -1
  165. package/src/funcs/accountingInvoiceItemsList.ts +1 -1
  166. package/src/funcs/accountingInvoicesList.ts +1 -1
  167. package/src/funcs/accountingJournalEntriesList.ts +1 -1
  168. package/src/funcs/accountingLedgerAccountsList.ts +1 -1
  169. package/src/funcs/accountingLocationsList.ts +1 -1
  170. package/src/funcs/accountingPaymentsList.ts +1 -1
  171. package/src/funcs/accountingPurchaseOrdersList.ts +1 -1
  172. package/src/funcs/accountingSubsidiariesList.ts +1 -1
  173. package/src/funcs/accountingSuppliersList.ts +1 -1
  174. package/src/funcs/accountingTaxRatesList.ts +1 -1
  175. package/src/funcs/accountingTrackingCategoriesList.ts +1 -1
  176. package/src/funcs/atsApplicantsList.ts +1 -1
  177. package/src/funcs/atsApplicationsList.ts +1 -1
  178. package/src/funcs/atsJobsList.ts +1 -1
  179. package/src/funcs/connectorApisList.ts +1 -1
  180. package/src/funcs/connectorConnectorsList.ts +1 -1
  181. package/src/funcs/crmActivitiesList.ts +1 -1
  182. package/src/funcs/crmCompaniesList.ts +1 -1
  183. package/src/funcs/crmContactsList.ts +1 -1
  184. package/src/funcs/crmLeadsList.ts +1 -1
  185. package/src/funcs/crmNotesList.ts +1 -1
  186. package/src/funcs/crmOpportunitiesList.ts +1 -1
  187. package/src/funcs/crmPipelinesList.ts +1 -1
  188. package/src/funcs/crmUsersList.ts +1 -1
  189. package/src/funcs/ecommerceCustomersList.ts +1 -1
  190. package/src/funcs/ecommerceOrdersList.ts +1 -1
  191. package/src/funcs/ecommerceProductsList.ts +1 -1
  192. package/src/funcs/fileStorageDriveGroupsList.ts +1 -1
  193. package/src/funcs/fileStorageDrivesList.ts +1 -1
  194. package/src/funcs/fileStorageFilesList.ts +1 -1
  195. package/src/funcs/fileStorageSharedLinksList.ts +1 -1
  196. package/src/funcs/hrisCompaniesList.ts +1 -1
  197. package/src/funcs/hrisDepartmentsList.ts +1 -1
  198. package/src/funcs/hrisEmployeesList.ts +1 -1
  199. package/src/funcs/hrisTimeOffRequestsList.ts +1 -1
  200. package/src/funcs/issueTrackingCollectionTagsList.ts +1 -1
  201. package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +1 -1
  202. package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +1 -1
  203. package/src/funcs/issueTrackingCollectionTicketsList.ts +1 -1
  204. package/src/funcs/issueTrackingCollectionUsersList.ts +1 -1
  205. package/src/funcs/issueTrackingCollectionsList.ts +1 -1
  206. package/src/funcs/smsMessagesList.ts +1 -1
  207. package/src/funcs/vaultConsumersList.ts +1 -1
  208. package/src/funcs/vaultLogsList.ts +1 -1
  209. package/src/funcs/webhookEventLogsList.ts +1 -1
  210. package/src/funcs/webhookWebhooksList.ts +1 -1
  211. package/src/lib/config.ts +5 -5
  212. package/src/lib/primitives.ts +14 -0
  213. package/src/lib/sdks.ts +2 -7
  214. package/src/models/components/address.ts +14 -15
  215. package/src/models/components/balancesheetfilter.ts +2 -0
  216. package/src/models/components/bill.ts +18 -0
  217. package/src/models/components/billpayment.ts +2 -2
  218. package/src/models/components/contact.ts +18 -17
  219. package/src/models/components/customersfilter.ts +9 -0
  220. package/src/models/components/index.ts +2 -0
  221. package/src/models/components/payment.ts +1 -1
  222. package/src/models/components/paymentinput.ts +1 -1
  223. package/src/models/components/profitandloss.ts +407 -101
  224. package/src/models/components/profitandlossindicator.ts +69 -0
  225. package/src/models/components/profitandlosstype.ts +39 -0
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of address.
14
14
  */
15
- export const Type = {
15
+ export const AddressType = {
16
16
  Primary: "primary",
17
17
  Secondary: "secondary",
18
18
  Home: "home",
@@ -24,7 +24,7 @@ export const Type = {
24
24
  /**
25
25
  * The type of address.
26
26
  */
27
- export type Type = ClosedEnum<typeof Type>;
27
+ export type AddressType = ClosedEnum<typeof AddressType>;
28
28
 
29
29
  export type Address = {
30
30
  /**
@@ -34,7 +34,7 @@ export type Address = {
34
34
  /**
35
35
  * The type of address.
36
36
  */
37
- type?: Type | null | undefined;
37
+ type?: AddressType | null | undefined;
38
38
  /**
39
39
  * The address string. Some APIs don't provide structured address data.
40
40
  */
@@ -126,30 +126,29 @@ export type Address = {
126
126
  };
127
127
 
128
128
  /** @internal */
129
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
130
- Type,
131
- );
129
+ export const AddressType$inboundSchema: z.ZodNativeEnum<typeof AddressType> = z
130
+ .nativeEnum(AddressType);
132
131
 
133
132
  /** @internal */
134
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
135
- Type$inboundSchema;
133
+ export const AddressType$outboundSchema: z.ZodNativeEnum<typeof AddressType> =
134
+ AddressType$inboundSchema;
136
135
 
137
136
  /**
138
137
  * @internal
139
138
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
140
139
  */
141
- export namespace Type$ {
142
- /** @deprecated use `Type$inboundSchema` instead. */
143
- export const inboundSchema = Type$inboundSchema;
144
- /** @deprecated use `Type$outboundSchema` instead. */
145
- export const outboundSchema = Type$outboundSchema;
140
+ export namespace AddressType$ {
141
+ /** @deprecated use `AddressType$inboundSchema` instead. */
142
+ export const inboundSchema = AddressType$inboundSchema;
143
+ /** @deprecated use `AddressType$outboundSchema` instead. */
144
+ export const outboundSchema = AddressType$outboundSchema;
146
145
  }
147
146
 
148
147
  /** @internal */
149
148
  export const Address$inboundSchema: z.ZodType<Address, z.ZodTypeDef, unknown> =
150
149
  z.object({
151
150
  id: z.nullable(z.string()).optional(),
152
- type: z.nullable(Type$inboundSchema).optional(),
151
+ type: z.nullable(AddressType$inboundSchema).optional(),
153
152
  string: z.nullable(z.string()).optional(),
154
153
  name: z.nullable(z.string()).optional(),
155
154
  line1: z.nullable(z.string()).optional(),
@@ -217,7 +216,7 @@ export const Address$outboundSchema: z.ZodType<
217
216
  Address
218
217
  > = z.object({
219
218
  id: z.nullable(z.string()).optional(),
220
- type: z.nullable(Type$outboundSchema).optional(),
219
+ type: z.nullable(AddressType$outboundSchema).optional(),
221
220
  string: z.nullable(z.string()).optional(),
222
221
  name: z.nullable(z.string()).optional(),
223
222
  line1: z.nullable(z.string()).optional(),
@@ -25,6 +25,8 @@ export type PeriodType = ClosedEnum<typeof PeriodType>;
25
25
  export type BalanceSheetFilter = {
26
26
  /**
27
27
  * The start date of the period to include in the resource.
28
+ *
29
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
28
30
  */
29
31
  startDate?: string | undefined;
30
32
  /**
@@ -206,6 +206,10 @@ export type Bill = {
206
206
  * Discount percentage applied to this transaction.
207
207
  */
208
208
  discountPercentage?: number | null | undefined;
209
+ /**
210
+ * URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero.
211
+ */
212
+ sourceDocumentUrl?: string | null | undefined;
209
213
  /**
210
214
  * A list of linked tracking categories.
211
215
  */
@@ -346,6 +350,10 @@ export type BillInput = {
346
350
  * Discount percentage applied to this transaction.
347
351
  */
348
352
  discountPercentage?: number | null | undefined;
353
+ /**
354
+ * URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero.
355
+ */
356
+ sourceDocumentUrl?: string | null | undefined;
349
357
  /**
350
358
  * A list of linked tracking categories.
351
359
  */
@@ -417,6 +425,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
417
425
  accounting_by_row: z.nullable(z.boolean()).optional(),
418
426
  bank_account: BankAccount$inboundSchema.optional(),
419
427
  discount_percentage: z.nullable(z.number()).optional(),
428
+ source_document_url: z.nullable(z.string()).optional(),
420
429
  tracking_categories: z.nullable(
421
430
  z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
422
431
  ).optional(),
@@ -453,6 +462,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
453
462
  "accounting_by_row": "accountingByRow",
454
463
  "bank_account": "bankAccount",
455
464
  "discount_percentage": "discountPercentage",
465
+ "source_document_url": "sourceDocumentUrl",
456
466
  "tracking_categories": "trackingCategories",
457
467
  "updated_by": "updatedBy",
458
468
  "created_by": "createdBy",
@@ -498,6 +508,7 @@ export type Bill$Outbound = {
498
508
  accounting_by_row?: boolean | null | undefined;
499
509
  bank_account?: BankAccount$Outbound | undefined;
500
510
  discount_percentage?: number | null | undefined;
511
+ source_document_url?: string | null | undefined;
501
512
  tracking_categories?:
502
513
  | Array<LinkedTrackingCategory$Outbound | null>
503
514
  | null
@@ -549,6 +560,7 @@ export const Bill$outboundSchema: z.ZodType<Bill$Outbound, z.ZodTypeDef, Bill> =
549
560
  accountingByRow: z.nullable(z.boolean()).optional(),
550
561
  bankAccount: BankAccount$outboundSchema.optional(),
551
562
  discountPercentage: z.nullable(z.number()).optional(),
563
+ sourceDocumentUrl: z.nullable(z.string()).optional(),
552
564
  trackingCategories: z.nullable(
553
565
  z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
554
566
  ).optional(),
@@ -581,6 +593,7 @@ export const Bill$outboundSchema: z.ZodType<Bill$Outbound, z.ZodTypeDef, Bill> =
581
593
  accountingByRow: "accounting_by_row",
582
594
  bankAccount: "bank_account",
583
595
  discountPercentage: "discount_percentage",
596
+ sourceDocumentUrl: "source_document_url",
584
597
  trackingCategories: "tracking_categories",
585
598
  updatedBy: "updated_by",
586
599
  createdBy: "created_by",
@@ -655,6 +668,7 @@ export const BillInput$inboundSchema: z.ZodType<
655
668
  accounting_by_row: z.nullable(z.boolean()).optional(),
656
669
  bank_account: BankAccount$inboundSchema.optional(),
657
670
  discount_percentage: z.nullable(z.number()).optional(),
671
+ source_document_url: z.nullable(z.string()).optional(),
658
672
  tracking_categories: z.nullable(
659
673
  z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
660
674
  ).optional(),
@@ -681,6 +695,7 @@ export const BillInput$inboundSchema: z.ZodType<
681
695
  "accounting_by_row": "accountingByRow",
682
696
  "bank_account": "bankAccount",
683
697
  "discount_percentage": "discountPercentage",
698
+ "source_document_url": "sourceDocumentUrl",
684
699
  "tracking_categories": "trackingCategories",
685
700
  "row_version": "rowVersion",
686
701
  "custom_fields": "customFields",
@@ -719,6 +734,7 @@ export type BillInput$Outbound = {
719
734
  accounting_by_row?: boolean | null | undefined;
720
735
  bank_account?: BankAccount$Outbound | undefined;
721
736
  discount_percentage?: number | null | undefined;
737
+ source_document_url?: string | null | undefined;
722
738
  tracking_categories?:
723
739
  | Array<LinkedTrackingCategory$Outbound | null>
724
740
  | null
@@ -766,6 +782,7 @@ export const BillInput$outboundSchema: z.ZodType<
766
782
  accountingByRow: z.nullable(z.boolean()).optional(),
767
783
  bankAccount: BankAccount$outboundSchema.optional(),
768
784
  discountPercentage: z.nullable(z.number()).optional(),
785
+ sourceDocumentUrl: z.nullable(z.string()).optional(),
769
786
  trackingCategories: z.nullable(
770
787
  z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
771
788
  ).optional(),
@@ -792,6 +809,7 @@ export const BillInput$outboundSchema: z.ZodType<
792
809
  accountingByRow: "accounting_by_row",
793
810
  bankAccount: "bank_account",
794
811
  discountPercentage: "discount_percentage",
812
+ sourceDocumentUrl: "source_document_url",
795
813
  trackingCategories: "tracking_categories",
796
814
  rowVersion: "row_version",
797
815
  customFields: "custom_fields",
@@ -138,7 +138,7 @@ export type BillPayment = {
138
138
  */
139
139
  currencyRate?: number | null | undefined;
140
140
  /**
141
- * The total amount of the transaction
141
+ * The total amount of the transaction or record
142
142
  */
143
143
  totalAmount: number | null;
144
144
  /**
@@ -259,7 +259,7 @@ export type BillPaymentInput = {
259
259
  */
260
260
  currencyRate?: number | null | undefined;
261
261
  /**
262
- * The total amount of the transaction
262
+ * The total amount of the transaction or record
263
263
  */
264
264
  totalAmount: number | null;
265
265
  /**
@@ -60,7 +60,7 @@ import {
60
60
  /**
61
61
  * The type of the contact.
62
62
  */
63
- export const ContactType = {
63
+ export const Type = {
64
64
  Customer: "customer",
65
65
  Supplier: "supplier",
66
66
  Employee: "employee",
@@ -69,7 +69,7 @@ export const ContactType = {
69
69
  /**
70
70
  * The type of the contact.
71
71
  */
72
- export type ContactType = ClosedEnum<typeof ContactType>;
72
+ export type Type = ClosedEnum<typeof Type>;
73
73
 
74
74
  /**
75
75
  * The gender of the contact.
@@ -100,7 +100,7 @@ export type Contact = {
100
100
  /**
101
101
  * The type of the contact.
102
102
  */
103
- type?: ContactType | null | undefined;
103
+ type?: Type | null | undefined;
104
104
  /**
105
105
  * The company the contact is associated with.
106
106
  */
@@ -239,7 +239,7 @@ export type ContactInput = {
239
239
  /**
240
240
  * The type of the contact.
241
241
  */
242
- type?: ContactType | null | undefined;
242
+ type?: Type | null | undefined;
243
243
  /**
244
244
  * The company the contact is associated with.
245
245
  */
@@ -343,22 +343,23 @@ export type ContactInput = {
343
343
  };
344
344
 
345
345
  /** @internal */
346
- export const ContactType$inboundSchema: z.ZodNativeEnum<typeof ContactType> = z
347
- .nativeEnum(ContactType);
346
+ export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
347
+ Type,
348
+ );
348
349
 
349
350
  /** @internal */
350
- export const ContactType$outboundSchema: z.ZodNativeEnum<typeof ContactType> =
351
- ContactType$inboundSchema;
351
+ export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
352
+ Type$inboundSchema;
352
353
 
353
354
  /**
354
355
  * @internal
355
356
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
356
357
  */
357
- export namespace ContactType$ {
358
- /** @deprecated use `ContactType$inboundSchema` instead. */
359
- export const inboundSchema = ContactType$inboundSchema;
360
- /** @deprecated use `ContactType$outboundSchema` instead. */
361
- export const outboundSchema = ContactType$outboundSchema;
358
+ export namespace Type$ {
359
+ /** @deprecated use `Type$inboundSchema` instead. */
360
+ export const inboundSchema = Type$inboundSchema;
361
+ /** @deprecated use `Type$outboundSchema` instead. */
362
+ export const outboundSchema = Type$outboundSchema;
362
363
  }
363
364
 
364
365
  /** @internal */
@@ -388,7 +389,7 @@ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
388
389
  id: z.string().optional(),
389
390
  name: z.nullable(z.string()),
390
391
  owner_id: z.nullable(z.string()).optional(),
391
- type: z.nullable(ContactType$inboundSchema).optional(),
392
+ type: z.nullable(Type$inboundSchema).optional(),
392
393
  company_id: z.nullable(z.string()).optional(),
393
394
  company_name: z.nullable(z.string()).optional(),
394
395
  lead_id: z.nullable(z.string()).optional(),
@@ -517,7 +518,7 @@ export const Contact$outboundSchema: z.ZodType<
517
518
  id: z.string().optional(),
518
519
  name: z.nullable(z.string()),
519
520
  ownerId: z.nullable(z.string()).optional(),
520
- type: z.nullable(ContactType$outboundSchema).optional(),
521
+ type: z.nullable(Type$outboundSchema).optional(),
521
522
  companyId: z.nullable(z.string()).optional(),
522
523
  companyName: z.nullable(z.string()).optional(),
523
524
  leadId: z.nullable(z.string()).optional(),
@@ -618,7 +619,7 @@ export const ContactInput$inboundSchema: z.ZodType<
618
619
  > = z.object({
619
620
  name: z.nullable(z.string()),
620
621
  owner_id: z.nullable(z.string()).optional(),
621
- type: z.nullable(ContactType$inboundSchema).optional(),
622
+ type: z.nullable(Type$inboundSchema).optional(),
622
623
  company_id: z.nullable(z.string()).optional(),
623
624
  company_name: z.nullable(z.string()).optional(),
624
625
  lead_id: z.nullable(z.string()).optional(),
@@ -717,7 +718,7 @@ export const ContactInput$outboundSchema: z.ZodType<
717
718
  > = z.object({
718
719
  name: z.nullable(z.string()),
719
720
  ownerId: z.nullable(z.string()).optional(),
720
- type: z.nullable(ContactType$outboundSchema).optional(),
721
+ type: z.nullable(Type$outboundSchema).optional(),
721
722
  companyId: z.nullable(z.string()).optional(),
722
723
  companyName: z.nullable(z.string()).optional(),
723
724
  leadId: z.nullable(z.string()).optional(),
@@ -49,6 +49,10 @@ export type CustomersFilter = {
49
49
  */
50
50
  status?: CustomersFilterStatus | null | undefined;
51
51
  updatedSince?: Date | undefined;
52
+ /**
53
+ * Supplier ID of customer to search for
54
+ */
55
+ supplierId?: string | undefined;
52
56
  };
53
57
 
54
58
  /** @internal */
@@ -87,6 +91,7 @@ export const CustomersFilter$inboundSchema: z.ZodType<
87
91
  updated_since: z.string().datetime({ offset: true }).transform(v =>
88
92
  new Date(v)
89
93
  ).optional(),
94
+ supplier_id: z.string().optional(),
90
95
  }).transform((v) => {
91
96
  return remap$(v, {
92
97
  "company_name": "companyName",
@@ -94,6 +99,7 @@ export const CustomersFilter$inboundSchema: z.ZodType<
94
99
  "first_name": "firstName",
95
100
  "last_name": "lastName",
96
101
  "updated_since": "updatedSince",
102
+ "supplier_id": "supplierId",
97
103
  });
98
104
  });
99
105
 
@@ -106,6 +112,7 @@ export type CustomersFilter$Outbound = {
106
112
  email?: string | undefined;
107
113
  status?: string | null | undefined;
108
114
  updated_since?: string | undefined;
115
+ supplier_id?: string | undefined;
109
116
  };
110
117
 
111
118
  /** @internal */
@@ -121,6 +128,7 @@ export const CustomersFilter$outboundSchema: z.ZodType<
121
128
  email: z.string().optional(),
122
129
  status: z.nullable(CustomersFilterStatus$outboundSchema).optional(),
123
130
  updatedSince: z.date().transform(v => v.toISOString()).optional(),
131
+ supplierId: z.string().optional(),
124
132
  }).transform((v) => {
125
133
  return remap$(v, {
126
134
  companyName: "company_name",
@@ -128,6 +136,7 @@ export const CustomersFilter$outboundSchema: z.ZodType<
128
136
  firstName: "first_name",
129
137
  lastName: "last_name",
130
138
  updatedSince: "updated_since",
139
+ supplierId: "supplier_id",
131
140
  });
132
141
  });
133
142
 
@@ -411,6 +411,8 @@ export * from "./phonenumber.js";
411
411
  export * from "./pipeline.js";
412
412
  export * from "./profitandloss.js";
413
413
  export * from "./profitandlossfilter.js";
414
+ export * from "./profitandlossindicator.js";
415
+ export * from "./profitandlosstype.js";
414
416
  export * from "./purchaseorder.js";
415
417
  export * from "./purchaseordersfilter.js";
416
418
  export * from "./purchaseorderssort.js";
@@ -89,7 +89,7 @@ export type Payment = {
89
89
  */
90
90
  currencyRate?: number | null | undefined;
91
91
  /**
92
- * The total amount of the transaction
92
+ * The total amount of the transaction or record
93
93
  */
94
94
  totalAmount: number | null;
95
95
  /**
@@ -75,7 +75,7 @@ export type PaymentInput = {
75
75
  */
76
76
  currencyRate?: number | null | undefined;
77
77
  /**
78
- * The total amount of the transaction
78
+ * The total amount of the transaction or record
79
79
  */
80
80
  totalAmount: number | null;
81
81
  /**