@apideck/unify 0.27.0 → 0.28.1

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 (192) hide show
  1. package/README.md +5 -5
  2. package/docs/sdks/categories/README.md +12 -0
  3. package/docs/sdks/companies/README.md +4 -4
  4. package/examples/README.md +26 -0
  5. package/examples/accountingTaxRatesList.example.ts +41 -0
  6. package/examples/package-lock.json +613 -0
  7. package/examples/package.json +18 -0
  8. package/funcs/accountingCategoriesGet.d.ts.map +1 -1
  9. package/funcs/accountingCategoriesGet.js +4 -2
  10. package/funcs/accountingCategoriesGet.js.map +1 -1
  11. package/funcs/accountingCategoriesList.d.ts.map +1 -1
  12. package/funcs/accountingCategoriesList.js +4 -2
  13. package/funcs/accountingCategoriesList.js.map +1 -1
  14. package/funcs/crmCompaniesCreate.js +1 -1
  15. package/funcs/crmCompaniesCreate.js.map +1 -1
  16. package/funcs/crmCompaniesUpdate.js +1 -1
  17. package/funcs/crmCompaniesUpdate.js.map +1 -1
  18. package/jsr.json +1 -1
  19. package/lib/config.d.ts +4 -4
  20. package/lib/config.js +4 -4
  21. package/models/components/balancesheetfilter.d.ts +5 -0
  22. package/models/components/balancesheetfilter.d.ts.map +1 -1
  23. package/models/components/balancesheetfilter.js +4 -0
  24. package/models/components/balancesheetfilter.js.map +1 -1
  25. package/models/components/bankaccount.d.ts +5 -0
  26. package/models/components/bankaccount.d.ts.map +1 -1
  27. package/models/components/bankaccount.js +2 -0
  28. package/models/components/bankaccount.js.map +1 -1
  29. package/models/components/bankaccount1.d.ts +123 -0
  30. package/models/components/bankaccount1.d.ts.map +1 -0
  31. package/models/components/bankaccount1.js +128 -0
  32. package/models/components/bankaccount1.js.map +1 -0
  33. package/models/components/categoriesfilter.d.ts +67 -0
  34. package/models/components/categoriesfilter.d.ts.map +1 -0
  35. package/models/components/categoriesfilter.js +82 -0
  36. package/models/components/categoriesfilter.js.map +1 -0
  37. package/models/components/category.d.ts +39 -0
  38. package/models/components/category.d.ts.map +1 -1
  39. package/models/components/category.js +26 -1
  40. package/models/components/category.js.map +1 -1
  41. package/models/components/{company.d.ts → company1.d.ts} +32 -32
  42. package/models/components/company1.d.ts.map +1 -0
  43. package/models/components/{company.js → company1.js} +37 -37
  44. package/models/components/company1.js.map +1 -0
  45. package/models/components/companyinfo.d.ts +5 -0
  46. package/models/components/companyinfo.d.ts.map +1 -1
  47. package/models/components/companyinfo.js +4 -0
  48. package/models/components/companyinfo.js.map +1 -1
  49. package/models/components/connection.d.ts +13 -13
  50. package/models/components/connection.d.ts.map +1 -1
  51. package/models/components/connection.js +16 -17
  52. package/models/components/connection.js.map +1 -1
  53. package/models/components/customfield.d.ts +37 -38
  54. package/models/components/customfield.d.ts.map +1 -1
  55. package/models/components/customfield.js +25 -54
  56. package/models/components/customfield.js.map +1 -1
  57. package/models/components/getcompaniesresponse.d.ts +3 -3
  58. package/models/components/getcompaniesresponse.d.ts.map +1 -1
  59. package/models/components/getcompaniesresponse.js +3 -3
  60. package/models/components/getcompaniesresponse.js.map +1 -1
  61. package/models/components/getcompanyresponse.d.ts +3 -3
  62. package/models/components/getcompanyresponse.d.ts.map +1 -1
  63. package/models/components/getcompanyresponse.js +3 -3
  64. package/models/components/getcompanyresponse.js.map +1 -1
  65. package/models/components/index.d.ts +3 -1
  66. package/models/components/index.d.ts.map +1 -1
  67. package/models/components/index.js +3 -1
  68. package/models/components/index.js.map +1 -1
  69. package/models/components/invoicelineitem.d.ts +10 -0
  70. package/models/components/invoicelineitem.d.ts.map +1 -1
  71. package/models/components/invoicelineitem.js +8 -0
  72. package/models/components/invoicelineitem.js.map +1 -1
  73. package/models/components/profitandlossfilter.d.ts +5 -0
  74. package/models/components/profitandlossfilter.d.ts.map +1 -1
  75. package/models/components/profitandlossfilter.js +4 -0
  76. package/models/components/profitandlossfilter.js.map +1 -1
  77. package/models/components/simpleformfieldoption.d.ts +13 -13
  78. package/models/components/simpleformfieldoption.d.ts.map +1 -1
  79. package/models/components/simpleformfieldoption.js +16 -16
  80. package/models/components/simpleformfieldoption.js.map +1 -1
  81. package/models/components/supplier.d.ts +10 -0
  82. package/models/components/supplier.d.ts.map +1 -1
  83. package/models/components/supplier.js +4 -0
  84. package/models/components/supplier.js.map +1 -1
  85. package/models/errors/apierror.d.ts.map +1 -1
  86. package/models/errors/apierror.js +8 -2
  87. package/models/errors/apierror.js.map +1 -1
  88. package/models/errors/badrequestresponse.js +1 -1
  89. package/models/errors/badrequestresponse.js.map +1 -1
  90. package/models/errors/notfoundresponse.js +1 -1
  91. package/models/errors/notfoundresponse.js.map +1 -1
  92. package/models/errors/paymentrequiredresponse.js +1 -1
  93. package/models/errors/paymentrequiredresponse.js.map +1 -1
  94. package/models/errors/unauthorizedresponse.js +1 -1
  95. package/models/errors/unauthorizedresponse.js.map +1 -1
  96. package/models/errors/unprocessableresponse.js +1 -1
  97. package/models/errors/unprocessableresponse.js.map +1 -1
  98. package/models/operations/accountingcategoriesall.d.ts +5 -0
  99. package/models/operations/accountingcategoriesall.d.ts.map +1 -1
  100. package/models/operations/accountingcategoriesall.js +2 -0
  101. package/models/operations/accountingcategoriesall.js.map +1 -1
  102. package/models/operations/accountingcategoriesone.d.ts +5 -0
  103. package/models/operations/accountingcategoriesone.d.ts.map +1 -1
  104. package/models/operations/accountingcategoriesone.js +2 -0
  105. package/models/operations/accountingcategoriesone.js.map +1 -1
  106. package/models/operations/crmcompaniesadd.d.ts +2 -2
  107. package/models/operations/crmcompaniesadd.d.ts.map +1 -1
  108. package/models/operations/crmcompaniesadd.js +4 -4
  109. package/models/operations/crmcompaniesadd.js.map +1 -1
  110. package/models/operations/crmcompaniesupdate.d.ts +2 -2
  111. package/models/operations/crmcompaniesupdate.d.ts.map +1 -1
  112. package/models/operations/crmcompaniesupdate.js +4 -4
  113. package/models/operations/crmcompaniesupdate.js.map +1 -1
  114. package/package.json +2 -2
  115. package/src/__tests__/activities.test.ts +364 -13
  116. package/src/__tests__/apideckcompanies.test.ts +373 -9
  117. package/src/__tests__/apideckdepartments.test.ts +181 -9
  118. package/src/__tests__/applicants.test.ts +473 -9
  119. package/src/__tests__/applications.test.ts +189 -9
  120. package/src/__tests__/bankfeedaccounts.test.ts +4 -4
  121. package/src/__tests__/billpayments.test.ts +378 -20
  122. package/src/__tests__/bills.test.ts +500 -9
  123. package/src/__tests__/collectionticketcomments.test.ts +183 -7
  124. package/src/__tests__/collectiontickets.test.ts +191 -7
  125. package/src/__tests__/companies.test.ts +607 -78
  126. package/src/__tests__/connections.test.ts +409 -5
  127. package/src/__tests__/connectionsettings.test.ts +410 -5
  128. package/src/__tests__/contacts.test.ts +470 -13
  129. package/src/__tests__/creditnotes.test.ts +819 -148
  130. package/src/__tests__/customers.test.ts +517 -13
  131. package/src/__tests__/customobjects.test.ts +150 -9
  132. package/src/__tests__/customobjectschemas.test.ts +321 -9
  133. package/src/__tests__/departments.test.ts +173 -9
  134. package/src/__tests__/drivegroups.test.ts +181 -9
  135. package/src/__tests__/drives.test.ts +179 -9
  136. package/src/__tests__/employees.test.ts +829 -94
  137. package/src/__tests__/expenses.test.ts +338 -15
  138. package/src/__tests__/files.test.ts +106 -5
  139. package/src/__tests__/folders.test.ts +296 -13
  140. package/src/__tests__/invoiceitems.test.ts +272 -9
  141. package/src/__tests__/invoices.test.ts +695 -89
  142. package/src/__tests__/journalentries.test.ts +490 -8
  143. package/src/__tests__/leads.test.ts +450 -13
  144. package/src/__tests__/ledgeraccounts.test.ts +248 -19
  145. package/src/__tests__/locations.test.ts +298 -9
  146. package/src/__tests__/messages.test.ts +195 -9
  147. package/src/__tests__/notes.test.ts +191 -9
  148. package/src/__tests__/opportunities.test.ts +218 -9
  149. package/src/__tests__/payments.test.ts +323 -20
  150. package/src/__tests__/pipelines.test.ts +194 -9
  151. package/src/__tests__/purchaseorders.test.ts +847 -178
  152. package/src/__tests__/sharedlinks.test.ts +183 -9
  153. package/src/__tests__/subsidiaries.test.ts +183 -9
  154. package/src/__tests__/suppliers.test.ts +509 -13
  155. package/src/__tests__/taxrates.test.ts +235 -12
  156. package/src/__tests__/timeoffrequests.test.ts +210 -9
  157. package/src/__tests__/trackingcategories.test.ts +187 -7
  158. package/src/__tests__/uploadsessions.test.ts +78 -5
  159. package/src/__tests__/users.test.ts +356 -9
  160. package/src/funcs/accountingCategoriesGet.ts +15 -5
  161. package/src/funcs/accountingCategoriesList.ts +17 -7
  162. package/src/funcs/crmCompaniesCreate.ts +1 -1
  163. package/src/funcs/crmCompaniesUpdate.ts +1 -1
  164. package/src/lib/config.ts +4 -4
  165. package/src/models/components/balancesheetfilter.ts +9 -0
  166. package/src/models/components/bankaccount.ts +7 -0
  167. package/src/models/components/bankaccount1.ts +207 -0
  168. package/src/models/components/categoriesfilter.ts +104 -0
  169. package/src/models/components/category.ts +39 -0
  170. package/src/models/components/{company.ts → company1.ts} +131 -128
  171. package/src/models/components/companyinfo.ts +9 -0
  172. package/src/models/components/connection.ts +27 -20
  173. package/src/models/components/customfield.ts +51 -83
  174. package/src/models/components/getcompaniesresponse.ts +9 -9
  175. package/src/models/components/getcompanyresponse.ts +9 -9
  176. package/src/models/components/index.ts +3 -1
  177. package/src/models/components/invoicelineitem.ts +18 -0
  178. package/src/models/components/profitandlossfilter.ts +9 -0
  179. package/src/models/components/simpleformfieldoption.ts +21 -18
  180. package/src/models/components/supplier.ts +14 -0
  181. package/src/models/errors/apierror.ts +8 -2
  182. package/src/models/errors/badrequestresponse.ts +1 -1
  183. package/src/models/errors/notfoundresponse.ts +1 -1
  184. package/src/models/errors/paymentrequiredresponse.ts +1 -1
  185. package/src/models/errors/unauthorizedresponse.ts +1 -1
  186. package/src/models/errors/unprocessableresponse.ts +1 -1
  187. package/src/models/operations/accountingcategoriesall.ts +7 -0
  188. package/src/models/operations/accountingcategoriesone.ts +7 -0
  189. package/src/models/operations/crmcompaniesadd.ts +6 -6
  190. package/src/models/operations/crmcompaniesupdate.ts +6 -6
  191. package/models/components/company.d.ts.map +0 -1
  192. package/models/components/company.js.map +0 -1
@@ -15,11 +15,11 @@ import {
15
15
  Address$outboundSchema,
16
16
  } from "./address.js";
17
17
  import {
18
- BankAccount,
19
- BankAccount$inboundSchema,
20
- BankAccount$Outbound,
21
- BankAccount$outboundSchema,
22
- } from "./bankaccount.js";
18
+ BankAccount1,
19
+ BankAccount1$inboundSchema,
20
+ BankAccount1$Outbound,
21
+ BankAccount1$outboundSchema,
22
+ } from "./bankaccount1.js";
23
23
  import {
24
24
  Currency,
25
25
  Currency$inboundSchema,
@@ -67,7 +67,7 @@ export type CompanyRowType = {
67
67
  name?: string | null | undefined;
68
68
  };
69
69
 
70
- export type Company = {
70
+ export type Company1 = {
71
71
  /**
72
72
  * Unique identifier for the company
73
73
  */
@@ -156,7 +156,7 @@ export type Company = {
156
156
  * Parent ID
157
157
  */
158
158
  parentId?: string | null | undefined;
159
- bankAccounts?: Array<BankAccount> | undefined;
159
+ bankAccounts?: Array<BankAccount1> | undefined;
160
160
  websites?: Array<Website> | undefined;
161
161
  addresses?: Array<Address> | undefined;
162
162
  socialLinks?: Array<SocialLink> | undefined;
@@ -211,7 +211,7 @@ export type Company = {
211
211
  passThrough?: Array<PassThroughBody> | undefined;
212
212
  };
213
213
 
214
- export type CompanyInput = {
214
+ export type Company1Input = {
215
215
  /**
216
216
  * Name of the company
217
217
  */
@@ -288,7 +288,7 @@ export type CompanyInput = {
288
288
  * The last name of the person.
289
289
  */
290
290
  lastName?: string | null | undefined;
291
- bankAccounts?: Array<BankAccount> | undefined;
291
+ bankAccounts?: Array<BankAccount1> | undefined;
292
292
  websites?: Array<Website> | undefined;
293
293
  addresses?: Array<Address> | undefined;
294
294
  socialLinks?: Array<SocialLink> | undefined;
@@ -369,88 +369,91 @@ export function companyRowTypeFromJSON(
369
369
  }
370
370
 
371
371
  /** @internal */
372
- export const Company$inboundSchema: z.ZodType<Company, z.ZodTypeDef, unknown> =
373
- z.object({
374
- id: z.string().optional(),
375
- name: z.nullable(z.string()),
376
- interaction_count: z.nullable(z.number().int()).optional(),
377
- owner_id: z.nullable(z.string()).optional(),
378
- image: z.nullable(z.string()).optional(),
379
- description: z.nullable(z.string()).optional(),
380
- vat_number: z.nullable(z.string()).optional(),
381
- currency: z.nullable(Currency$inboundSchema).optional(),
382
- status: z.nullable(z.string()).optional(),
383
- fax: z.nullable(z.string()).optional(),
384
- annual_revenue: z.nullable(z.string()).optional(),
385
- number_of_employees: z.nullable(z.string()).optional(),
386
- industry: z.nullable(z.string()).optional(),
387
- ownership: z.nullable(z.string()).optional(),
388
- sales_tax_number: z.nullable(z.string()).optional(),
389
- payee_number: z.nullable(z.string()).optional(),
390
- abn_or_tfn: z.nullable(z.string()).optional(),
391
- abn_branch: z.nullable(z.string()).optional(),
392
- acn: z.nullable(z.string()).optional(),
393
- first_name: z.nullable(z.string()).optional(),
394
- last_name: z.nullable(z.string()).optional(),
395
- parent_id: z.nullable(z.string()).optional(),
396
- bank_accounts: z.array(BankAccount$inboundSchema).optional(),
397
- websites: z.array(Website$inboundSchema).optional(),
398
- addresses: z.array(Address$inboundSchema).optional(),
399
- social_links: z.array(SocialLink$inboundSchema).optional(),
400
- phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
401
- emails: z.array(Email$inboundSchema).optional(),
402
- row_type: z.lazy(() => CompanyRowType$inboundSchema).optional(),
403
- custom_fields: z.array(CustomField$inboundSchema).optional(),
404
- tags: z.nullable(z.array(z.string())).optional(),
405
- read_only: z.nullable(z.boolean()).optional(),
406
- last_activity_at: z.nullable(
407
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
408
- ).optional(),
409
- deleted: z.boolean().optional(),
410
- salutation: z.nullable(z.string()).optional(),
411
- birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
412
- custom_mappings: z.nullable(z.record(z.any())).optional(),
413
- updated_by: z.nullable(z.string()).optional(),
414
- created_by: z.nullable(z.string()).optional(),
415
- updated_at: z.nullable(
416
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
417
- ).optional(),
418
- created_at: z.nullable(
419
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
420
- ).optional(),
421
- pass_through: z.array(PassThroughBody$inboundSchema).optional(),
422
- }).transform((v) => {
423
- return remap$(v, {
424
- "interaction_count": "interactionCount",
425
- "owner_id": "ownerId",
426
- "vat_number": "vatNumber",
427
- "annual_revenue": "annualRevenue",
428
- "number_of_employees": "numberOfEmployees",
429
- "sales_tax_number": "salesTaxNumber",
430
- "payee_number": "payeeNumber",
431
- "abn_or_tfn": "abnOrTfn",
432
- "abn_branch": "abnBranch",
433
- "first_name": "firstName",
434
- "last_name": "lastName",
435
- "parent_id": "parentId",
436
- "bank_accounts": "bankAccounts",
437
- "social_links": "socialLinks",
438
- "phone_numbers": "phoneNumbers",
439
- "row_type": "rowType",
440
- "custom_fields": "customFields",
441
- "read_only": "readOnly",
442
- "last_activity_at": "lastActivityAt",
443
- "custom_mappings": "customMappings",
444
- "updated_by": "updatedBy",
445
- "created_by": "createdBy",
446
- "updated_at": "updatedAt",
447
- "created_at": "createdAt",
448
- "pass_through": "passThrough",
449
- });
372
+ export const Company1$inboundSchema: z.ZodType<
373
+ Company1,
374
+ z.ZodTypeDef,
375
+ unknown
376
+ > = z.object({
377
+ id: z.string().optional(),
378
+ name: z.nullable(z.string()),
379
+ interaction_count: z.nullable(z.number().int()).optional(),
380
+ owner_id: z.nullable(z.string()).optional(),
381
+ image: z.nullable(z.string()).optional(),
382
+ description: z.nullable(z.string()).optional(),
383
+ vat_number: z.nullable(z.string()).optional(),
384
+ currency: z.nullable(Currency$inboundSchema).optional(),
385
+ status: z.nullable(z.string()).optional(),
386
+ fax: z.nullable(z.string()).optional(),
387
+ annual_revenue: z.nullable(z.string()).optional(),
388
+ number_of_employees: z.nullable(z.string()).optional(),
389
+ industry: z.nullable(z.string()).optional(),
390
+ ownership: z.nullable(z.string()).optional(),
391
+ sales_tax_number: z.nullable(z.string()).optional(),
392
+ payee_number: z.nullable(z.string()).optional(),
393
+ abn_or_tfn: z.nullable(z.string()).optional(),
394
+ abn_branch: z.nullable(z.string()).optional(),
395
+ acn: z.nullable(z.string()).optional(),
396
+ first_name: z.nullable(z.string()).optional(),
397
+ last_name: z.nullable(z.string()).optional(),
398
+ parent_id: z.nullable(z.string()).optional(),
399
+ bank_accounts: z.array(BankAccount1$inboundSchema).optional(),
400
+ websites: z.array(Website$inboundSchema).optional(),
401
+ addresses: z.array(Address$inboundSchema).optional(),
402
+ social_links: z.array(SocialLink$inboundSchema).optional(),
403
+ phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
404
+ emails: z.array(Email$inboundSchema).optional(),
405
+ row_type: z.lazy(() => CompanyRowType$inboundSchema).optional(),
406
+ custom_fields: z.array(CustomField$inboundSchema).optional(),
407
+ tags: z.nullable(z.array(z.string())).optional(),
408
+ read_only: z.nullable(z.boolean()).optional(),
409
+ last_activity_at: z.nullable(
410
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
411
+ ).optional(),
412
+ deleted: z.boolean().optional(),
413
+ salutation: z.nullable(z.string()).optional(),
414
+ birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
415
+ custom_mappings: z.nullable(z.record(z.any())).optional(),
416
+ updated_by: z.nullable(z.string()).optional(),
417
+ created_by: z.nullable(z.string()).optional(),
418
+ updated_at: z.nullable(
419
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
420
+ ).optional(),
421
+ created_at: z.nullable(
422
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
423
+ ).optional(),
424
+ pass_through: z.array(PassThroughBody$inboundSchema).optional(),
425
+ }).transform((v) => {
426
+ return remap$(v, {
427
+ "interaction_count": "interactionCount",
428
+ "owner_id": "ownerId",
429
+ "vat_number": "vatNumber",
430
+ "annual_revenue": "annualRevenue",
431
+ "number_of_employees": "numberOfEmployees",
432
+ "sales_tax_number": "salesTaxNumber",
433
+ "payee_number": "payeeNumber",
434
+ "abn_or_tfn": "abnOrTfn",
435
+ "abn_branch": "abnBranch",
436
+ "first_name": "firstName",
437
+ "last_name": "lastName",
438
+ "parent_id": "parentId",
439
+ "bank_accounts": "bankAccounts",
440
+ "social_links": "socialLinks",
441
+ "phone_numbers": "phoneNumbers",
442
+ "row_type": "rowType",
443
+ "custom_fields": "customFields",
444
+ "read_only": "readOnly",
445
+ "last_activity_at": "lastActivityAt",
446
+ "custom_mappings": "customMappings",
447
+ "updated_by": "updatedBy",
448
+ "created_by": "createdBy",
449
+ "updated_at": "updatedAt",
450
+ "created_at": "createdAt",
451
+ "pass_through": "passThrough",
450
452
  });
453
+ });
451
454
 
452
455
  /** @internal */
453
- export type Company$Outbound = {
456
+ export type Company1$Outbound = {
454
457
  id?: string | undefined;
455
458
  name: string | null;
456
459
  interaction_count?: number | null | undefined;
@@ -473,7 +476,7 @@ export type Company$Outbound = {
473
476
  first_name?: string | null | undefined;
474
477
  last_name?: string | null | undefined;
475
478
  parent_id?: string | null | undefined;
476
- bank_accounts?: Array<BankAccount$Outbound> | undefined;
479
+ bank_accounts?: Array<BankAccount1$Outbound> | undefined;
477
480
  websites?: Array<Website$Outbound> | undefined;
478
481
  addresses?: Array<Address$Outbound> | undefined;
479
482
  social_links?: Array<SocialLink$Outbound> | undefined;
@@ -496,10 +499,10 @@ export type Company$Outbound = {
496
499
  };
497
500
 
498
501
  /** @internal */
499
- export const Company$outboundSchema: z.ZodType<
500
- Company$Outbound,
502
+ export const Company1$outboundSchema: z.ZodType<
503
+ Company1$Outbound,
501
504
  z.ZodTypeDef,
502
- Company
505
+ Company1
503
506
  > = z.object({
504
507
  id: z.string().optional(),
505
508
  name: z.nullable(z.string()),
@@ -523,7 +526,7 @@ export const Company$outboundSchema: z.ZodType<
523
526
  firstName: z.nullable(z.string()).optional(),
524
527
  lastName: z.nullable(z.string()).optional(),
525
528
  parentId: z.nullable(z.string()).optional(),
526
- bankAccounts: z.array(BankAccount$outboundSchema).optional(),
529
+ bankAccounts: z.array(BankAccount1$outboundSchema).optional(),
527
530
  websites: z.array(Website$outboundSchema).optional(),
528
531
  addresses: z.array(Address$outboundSchema).optional(),
529
532
  socialLinks: z.array(SocialLink$outboundSchema).optional(),
@@ -579,32 +582,32 @@ export const Company$outboundSchema: z.ZodType<
579
582
  * @internal
580
583
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
581
584
  */
582
- export namespace Company$ {
583
- /** @deprecated use `Company$inboundSchema` instead. */
584
- export const inboundSchema = Company$inboundSchema;
585
- /** @deprecated use `Company$outboundSchema` instead. */
586
- export const outboundSchema = Company$outboundSchema;
587
- /** @deprecated use `Company$Outbound` instead. */
588
- export type Outbound = Company$Outbound;
585
+ export namespace Company1$ {
586
+ /** @deprecated use `Company1$inboundSchema` instead. */
587
+ export const inboundSchema = Company1$inboundSchema;
588
+ /** @deprecated use `Company1$outboundSchema` instead. */
589
+ export const outboundSchema = Company1$outboundSchema;
590
+ /** @deprecated use `Company1$Outbound` instead. */
591
+ export type Outbound = Company1$Outbound;
589
592
  }
590
593
 
591
- export function companyToJSON(company: Company): string {
592
- return JSON.stringify(Company$outboundSchema.parse(company));
594
+ export function company1ToJSON(company1: Company1): string {
595
+ return JSON.stringify(Company1$outboundSchema.parse(company1));
593
596
  }
594
597
 
595
- export function companyFromJSON(
598
+ export function company1FromJSON(
596
599
  jsonString: string,
597
- ): SafeParseResult<Company, SDKValidationError> {
600
+ ): SafeParseResult<Company1, SDKValidationError> {
598
601
  return safeParse(
599
602
  jsonString,
600
- (x) => Company$inboundSchema.parse(JSON.parse(x)),
601
- `Failed to parse 'Company' from JSON`,
603
+ (x) => Company1$inboundSchema.parse(JSON.parse(x)),
604
+ `Failed to parse 'Company1' from JSON`,
602
605
  );
603
606
  }
604
607
 
605
608
  /** @internal */
606
- export const CompanyInput$inboundSchema: z.ZodType<
607
- CompanyInput,
609
+ export const Company1Input$inboundSchema: z.ZodType<
610
+ Company1Input,
608
611
  z.ZodTypeDef,
609
612
  unknown
610
613
  > = z.object({
@@ -627,7 +630,7 @@ export const CompanyInput$inboundSchema: z.ZodType<
627
630
  acn: z.nullable(z.string()).optional(),
628
631
  first_name: z.nullable(z.string()).optional(),
629
632
  last_name: z.nullable(z.string()).optional(),
630
- bank_accounts: z.array(BankAccount$inboundSchema).optional(),
633
+ bank_accounts: z.array(BankAccount1$inboundSchema).optional(),
631
634
  websites: z.array(Website$inboundSchema).optional(),
632
635
  addresses: z.array(Address$inboundSchema).optional(),
633
636
  social_links: z.array(SocialLink$inboundSchema).optional(),
@@ -663,7 +666,7 @@ export const CompanyInput$inboundSchema: z.ZodType<
663
666
  });
664
667
 
665
668
  /** @internal */
666
- export type CompanyInput$Outbound = {
669
+ export type Company1Input$Outbound = {
667
670
  name: string | null;
668
671
  owner_id?: string | null | undefined;
669
672
  image?: string | null | undefined;
@@ -683,7 +686,7 @@ export type CompanyInput$Outbound = {
683
686
  acn?: string | null | undefined;
684
687
  first_name?: string | null | undefined;
685
688
  last_name?: string | null | undefined;
686
- bank_accounts?: Array<BankAccount$Outbound> | undefined;
689
+ bank_accounts?: Array<BankAccount1$Outbound> | undefined;
687
690
  websites?: Array<Website$Outbound> | undefined;
688
691
  addresses?: Array<Address$Outbound> | undefined;
689
692
  social_links?: Array<SocialLink$Outbound> | undefined;
@@ -699,10 +702,10 @@ export type CompanyInput$Outbound = {
699
702
  };
700
703
 
701
704
  /** @internal */
702
- export const CompanyInput$outboundSchema: z.ZodType<
703
- CompanyInput$Outbound,
705
+ export const Company1Input$outboundSchema: z.ZodType<
706
+ Company1Input$Outbound,
704
707
  z.ZodTypeDef,
705
- CompanyInput
708
+ Company1Input
706
709
  > = z.object({
707
710
  name: z.nullable(z.string()),
708
711
  ownerId: z.nullable(z.string()).optional(),
@@ -723,7 +726,7 @@ export const CompanyInput$outboundSchema: z.ZodType<
723
726
  acn: z.nullable(z.string()).optional(),
724
727
  firstName: z.nullable(z.string()).optional(),
725
728
  lastName: z.nullable(z.string()).optional(),
726
- bankAccounts: z.array(BankAccount$outboundSchema).optional(),
729
+ bankAccounts: z.array(BankAccount1$outboundSchema).optional(),
727
730
  websites: z.array(Website$outboundSchema).optional(),
728
731
  addresses: z.array(Address$outboundSchema).optional(),
729
732
  socialLinks: z.array(SocialLink$outboundSchema).optional(),
@@ -763,25 +766,25 @@ export const CompanyInput$outboundSchema: z.ZodType<
763
766
  * @internal
764
767
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
765
768
  */
766
- export namespace CompanyInput$ {
767
- /** @deprecated use `CompanyInput$inboundSchema` instead. */
768
- export const inboundSchema = CompanyInput$inboundSchema;
769
- /** @deprecated use `CompanyInput$outboundSchema` instead. */
770
- export const outboundSchema = CompanyInput$outboundSchema;
771
- /** @deprecated use `CompanyInput$Outbound` instead. */
772
- export type Outbound = CompanyInput$Outbound;
769
+ export namespace Company1Input$ {
770
+ /** @deprecated use `Company1Input$inboundSchema` instead. */
771
+ export const inboundSchema = Company1Input$inboundSchema;
772
+ /** @deprecated use `Company1Input$outboundSchema` instead. */
773
+ export const outboundSchema = Company1Input$outboundSchema;
774
+ /** @deprecated use `Company1Input$Outbound` instead. */
775
+ export type Outbound = Company1Input$Outbound;
773
776
  }
774
777
 
775
- export function companyInputToJSON(companyInput: CompanyInput): string {
776
- return JSON.stringify(CompanyInput$outboundSchema.parse(companyInput));
778
+ export function company1InputToJSON(company1Input: Company1Input): string {
779
+ return JSON.stringify(Company1Input$outboundSchema.parse(company1Input));
777
780
  }
778
781
 
779
- export function companyInputFromJSON(
782
+ export function company1InputFromJSON(
780
783
  jsonString: string,
781
- ): SafeParseResult<CompanyInput, SDKValidationError> {
784
+ ): SafeParseResult<Company1Input, SDKValidationError> {
782
785
  return safeParse(
783
786
  jsonString,
784
- (x) => CompanyInput$inboundSchema.parse(JSON.parse(x)),
785
- `Failed to parse 'CompanyInput' from JSON`,
787
+ (x) => Company1Input$inboundSchema.parse(JSON.parse(x)),
788
+ `Failed to parse 'Company1Input' from JSON`,
786
789
  );
787
790
  }
@@ -129,6 +129,10 @@ export type CompanyInfo = {
129
129
  * When custom mappings are configured on the resource, the result is included here.
130
130
  */
131
131
  customMappings?: { [k: string]: any } | null | undefined;
132
+ /**
133
+ * Whether tracking categories are enabled for the company on transactions
134
+ */
135
+ trackingCategoriesEnabled?: boolean | undefined;
132
136
  /**
133
137
  * 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.
134
138
  */
@@ -216,6 +220,7 @@ export const CompanyInfo$inboundSchema: z.ZodType<
216
220
  phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
217
221
  emails: z.array(Email$inboundSchema).optional(),
218
222
  custom_mappings: z.nullable(z.record(z.any())).optional(),
223
+ tracking_categories_enabled: z.boolean().optional(),
219
224
  row_version: z.nullable(z.string()).optional(),
220
225
  updated_by: z.nullable(z.string()).optional(),
221
226
  created_by: z.nullable(z.string()).optional(),
@@ -237,6 +242,7 @@ export const CompanyInfo$inboundSchema: z.ZodType<
237
242
  "company_start_date": "companyStartDate",
238
243
  "phone_numbers": "phoneNumbers",
239
244
  "custom_mappings": "customMappings",
245
+ "tracking_categories_enabled": "trackingCategoriesEnabled",
240
246
  "row_version": "rowVersion",
241
247
  "updated_by": "updatedBy",
242
248
  "created_by": "createdBy",
@@ -264,6 +270,7 @@ export type CompanyInfo$Outbound = {
264
270
  phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
265
271
  emails?: Array<Email$Outbound> | undefined;
266
272
  custom_mappings?: { [k: string]: any } | null | undefined;
273
+ tracking_categories_enabled?: boolean | undefined;
267
274
  row_version?: string | null | undefined;
268
275
  updated_by?: string | null | undefined;
269
276
  created_by?: string | null | undefined;
@@ -295,6 +302,7 @@ export const CompanyInfo$outboundSchema: z.ZodType<
295
302
  phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
296
303
  emails: z.array(Email$outboundSchema).optional(),
297
304
  customMappings: z.nullable(z.record(z.any())).optional(),
305
+ trackingCategoriesEnabled: z.boolean().optional(),
298
306
  rowVersion: z.nullable(z.string()).optional(),
299
307
  updatedBy: z.nullable(z.string()).optional(),
300
308
  createdBy: z.nullable(z.string()).optional(),
@@ -312,6 +320,7 @@ export const CompanyInfo$outboundSchema: z.ZodType<
312
320
  companyStartDate: "company_start_date",
313
321
  phoneNumbers: "phone_numbers",
314
322
  customMappings: "custom_mappings",
323
+ trackingCategoriesEnabled: "tracking_categories_enabled",
315
324
  rowVersion: "row_version",
316
325
  updatedBy: "updated_by",
317
326
  createdBy: "created_by",
@@ -78,7 +78,7 @@ export const Target = {
78
78
  } as const;
79
79
  export type Target = ClosedEnum<typeof Target>;
80
80
 
81
- export type Value5 = string | number | number;
81
+ export type ConnectionValue5 = string | number | number;
82
82
 
83
83
  export type ConnectionValue =
84
84
  | string
@@ -280,43 +280,50 @@ export namespace Target$ {
280
280
  }
281
281
 
282
282
  /** @internal */
283
- export const Value5$inboundSchema: z.ZodType<Value5, z.ZodTypeDef, unknown> = z
284
- .union([z.string(), z.number().int(), z.number()]);
283
+ export const ConnectionValue5$inboundSchema: z.ZodType<
284
+ ConnectionValue5,
285
+ z.ZodTypeDef,
286
+ unknown
287
+ > = z.union([z.string(), z.number().int(), z.number()]);
285
288
 
286
289
  /** @internal */
287
- export type Value5$Outbound = string | number | number;
290
+ export type ConnectionValue5$Outbound = string | number | number;
288
291
 
289
292
  /** @internal */
290
- export const Value5$outboundSchema: z.ZodType<
291
- Value5$Outbound,
293
+ export const ConnectionValue5$outboundSchema: z.ZodType<
294
+ ConnectionValue5$Outbound,
292
295
  z.ZodTypeDef,
293
- Value5
296
+ ConnectionValue5
294
297
  > = z.union([z.string(), z.number().int(), z.number()]);
295
298
 
296
299
  /**
297
300
  * @internal
298
301
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
299
302
  */
300
- export namespace Value5$ {
301
- /** @deprecated use `Value5$inboundSchema` instead. */
302
- export const inboundSchema = Value5$inboundSchema;
303
- /** @deprecated use `Value5$outboundSchema` instead. */
304
- export const outboundSchema = Value5$outboundSchema;
305
- /** @deprecated use `Value5$Outbound` instead. */
306
- export type Outbound = Value5$Outbound;
303
+ export namespace ConnectionValue5$ {
304
+ /** @deprecated use `ConnectionValue5$inboundSchema` instead. */
305
+ export const inboundSchema = ConnectionValue5$inboundSchema;
306
+ /** @deprecated use `ConnectionValue5$outboundSchema` instead. */
307
+ export const outboundSchema = ConnectionValue5$outboundSchema;
308
+ /** @deprecated use `ConnectionValue5$Outbound` instead. */
309
+ export type Outbound = ConnectionValue5$Outbound;
307
310
  }
308
311
 
309
- export function value5ToJSON(value5: Value5): string {
310
- return JSON.stringify(Value5$outboundSchema.parse(value5));
312
+ export function connectionValue5ToJSON(
313
+ connectionValue5: ConnectionValue5,
314
+ ): string {
315
+ return JSON.stringify(
316
+ ConnectionValue5$outboundSchema.parse(connectionValue5),
317
+ );
311
318
  }
312
319
 
313
- export function value5FromJSON(
320
+ export function connectionValue5FromJSON(
314
321
  jsonString: string,
315
- ): SafeParseResult<Value5, SDKValidationError> {
322
+ ): SafeParseResult<ConnectionValue5, SDKValidationError> {
316
323
  return safeParse(
317
324
  jsonString,
318
- (x) => Value5$inboundSchema.parse(JSON.parse(x)),
319
- `Failed to parse 'Value5' from JSON`,
325
+ (x) => ConnectionValue5$inboundSchema.parse(JSON.parse(x)),
326
+ `Failed to parse 'ConnectionValue5' from JSON`,
320
327
  );
321
328
  }
322
329