@apideck/unify 0.13.2 → 0.13.3

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 (137) hide show
  1. package/README.md +0 -13
  2. package/docs/sdks/pipelines/README.md +0 -542
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/bill.d.ts +5 -0
  6. package/models/components/bill.d.ts.map +1 -1
  7. package/models/components/bill.js +9 -0
  8. package/models/components/bill.js.map +1 -1
  9. package/models/components/index.d.ts +0 -8
  10. package/models/components/index.d.ts.map +1 -1
  11. package/models/components/index.js +0 -8
  12. package/models/components/index.js.map +1 -1
  13. package/models/components/ledgeraccount.d.ts +5 -0
  14. package/models/components/ledgeraccount.d.ts.map +1 -1
  15. package/models/components/ledgeraccount.js +9 -0
  16. package/models/components/ledgeraccount.js.map +1 -1
  17. package/models/components/supplier.d.ts +5 -0
  18. package/models/components/supplier.d.ts.map +1 -1
  19. package/models/components/supplier.js +9 -0
  20. package/models/components/supplier.js.map +1 -1
  21. package/models/operations/index.d.ts +0 -5
  22. package/models/operations/index.d.ts.map +1 -1
  23. package/models/operations/index.js +0 -5
  24. package/models/operations/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/sdk/accounting.d.ts +0 -3
  27. package/sdk/accounting.d.ts.map +1 -1
  28. package/sdk/accounting.js +0 -4
  29. package/sdk/accounting.js.map +1 -1
  30. package/sdk/pipelines.d.ts +0 -28
  31. package/sdk/pipelines.d.ts.map +1 -1
  32. package/sdk/pipelines.js +0 -41
  33. package/sdk/pipelines.js.map +1 -1
  34. package/src/lib/config.ts +2 -2
  35. package/src/models/components/bill.ts +18 -0
  36. package/src/models/components/index.ts +0 -8
  37. package/src/models/components/ledgeraccount.ts +18 -0
  38. package/src/models/components/supplier.ts +18 -0
  39. package/src/models/operations/index.ts +0 -5
  40. package/src/sdk/accounting.ts +0 -6
  41. package/src/sdk/pipelines.ts +0 -73
  42. package/docs/sdks/agedcreditors/README.md +0 -115
  43. package/funcs/accountingAgedCreditorsGet.d.ts +0 -16
  44. package/funcs/accountingAgedCreditorsGet.d.ts.map +0 -1
  45. package/funcs/accountingAgedCreditorsGet.js +0 -122
  46. package/funcs/accountingAgedCreditorsGet.js.map +0 -1
  47. package/funcs/crmPipelinesCreate.d.ts +0 -16
  48. package/funcs/crmPipelinesCreate.d.ts.map +0 -1
  49. package/funcs/crmPipelinesCreate.js +0 -121
  50. package/funcs/crmPipelinesCreate.js.map +0 -1
  51. package/funcs/crmPipelinesDelete.d.ts +0 -16
  52. package/funcs/crmPipelinesDelete.d.ts.map +0 -1
  53. package/funcs/crmPipelinesDelete.js +0 -126
  54. package/funcs/crmPipelinesDelete.js.map +0 -1
  55. package/funcs/crmPipelinesGet.d.ts +0 -16
  56. package/funcs/crmPipelinesGet.d.ts.map +0 -1
  57. package/funcs/crmPipelinesGet.js +0 -127
  58. package/funcs/crmPipelinesGet.js.map +0 -1
  59. package/funcs/crmPipelinesUpdate.d.ts +0 -16
  60. package/funcs/crmPipelinesUpdate.d.ts.map +0 -1
  61. package/funcs/crmPipelinesUpdate.js +0 -127
  62. package/funcs/crmPipelinesUpdate.js.map +0 -1
  63. package/models/components/agedcreditors.d.ts +0 -51
  64. package/models/components/agedcreditors.d.ts.map +0 -1
  65. package/models/components/agedcreditors.js +0 -88
  66. package/models/components/agedcreditors.js.map +0 -1
  67. package/models/components/createpipelineresponse.d.ts +0 -58
  68. package/models/components/createpipelineresponse.d.ts.map +0 -1
  69. package/models/components/createpipelineresponse.js +0 -79
  70. package/models/components/createpipelineresponse.js.map +0 -1
  71. package/models/components/deletepipelineresponse.d.ts +0 -58
  72. package/models/components/deletepipelineresponse.d.ts.map +0 -1
  73. package/models/components/deletepipelineresponse.js +0 -79
  74. package/models/components/deletepipelineresponse.js.map +0 -1
  75. package/models/components/getagedcreditorsresponse.d.ts +0 -58
  76. package/models/components/getagedcreditorsresponse.d.ts.map +0 -1
  77. package/models/components/getagedcreditorsresponse.js +0 -79
  78. package/models/components/getagedcreditorsresponse.js.map +0 -1
  79. package/models/components/getpipelineresponse.d.ts +0 -58
  80. package/models/components/getpipelineresponse.d.ts.map +0 -1
  81. package/models/components/getpipelineresponse.js +0 -79
  82. package/models/components/getpipelineresponse.js.map +0 -1
  83. package/models/components/outstandingbalancebysupplier.d.ts +0 -40
  84. package/models/components/outstandingbalancebysupplier.d.ts.map +0 -1
  85. package/models/components/outstandingbalancebysupplier.js +0 -77
  86. package/models/components/outstandingbalancebysupplier.js.map +0 -1
  87. package/models/components/pipelineinput.d.ts +0 -117
  88. package/models/components/pipelineinput.d.ts.map +0 -1
  89. package/models/components/pipelineinput.js +0 -133
  90. package/models/components/pipelineinput.js.map +0 -1
  91. package/models/components/updatepipelineresponse.d.ts +0 -58
  92. package/models/components/updatepipelineresponse.d.ts.map +0 -1
  93. package/models/components/updatepipelineresponse.js +0 -79
  94. package/models/components/updatepipelineresponse.js.map +0 -1
  95. package/models/operations/accountingagedcreditorsone.d.ts +0 -125
  96. package/models/operations/accountingagedcreditorsone.d.ts.map +0 -1
  97. package/models/operations/accountingagedcreditorsone.js +0 -153
  98. package/models/operations/accountingagedcreditorsone.js.map +0 -1
  99. package/models/operations/crmpipelinesadd.d.ts +0 -108
  100. package/models/operations/crmpipelinesadd.d.ts.map +0 -1
  101. package/models/operations/crmpipelinesadd.js +0 -149
  102. package/models/operations/crmpipelinesadd.js.map +0 -1
  103. package/models/operations/crmpipelinesdelete.d.ts +0 -111
  104. package/models/operations/crmpipelinesdelete.d.ts.map +0 -1
  105. package/models/operations/crmpipelinesdelete.js +0 -141
  106. package/models/operations/crmpipelinesdelete.js.map +0 -1
  107. package/models/operations/crmpipelinesone.d.ts +0 -116
  108. package/models/operations/crmpipelinesone.d.ts.map +0 -1
  109. package/models/operations/crmpipelinesone.js +0 -141
  110. package/models/operations/crmpipelinesone.js.map +0 -1
  111. package/models/operations/crmpipelinesupdate.d.ts +0 -113
  112. package/models/operations/crmpipelinesupdate.d.ts.map +0 -1
  113. package/models/operations/crmpipelinesupdate.js +0 -151
  114. package/models/operations/crmpipelinesupdate.js.map +0 -1
  115. package/sdk/agedcreditors.d.ts +0 -12
  116. package/sdk/agedcreditors.d.ts.map +0 -1
  117. package/sdk/agedcreditors.js +0 -22
  118. package/sdk/agedcreditors.js.map +0 -1
  119. package/src/funcs/accountingAgedCreditorsGet.ts +0 -193
  120. package/src/funcs/crmPipelinesCreate.ts +0 -179
  121. package/src/funcs/crmPipelinesDelete.ts +0 -185
  122. package/src/funcs/crmPipelinesGet.ts +0 -186
  123. package/src/funcs/crmPipelinesUpdate.ts +0 -186
  124. package/src/models/components/agedcreditors.ts +0 -120
  125. package/src/models/components/createpipelineresponse.ts +0 -119
  126. package/src/models/components/deletepipelineresponse.ts +0 -119
  127. package/src/models/components/getagedcreditorsresponse.ts +0 -119
  128. package/src/models/components/getpipelineresponse.ts +0 -119
  129. package/src/models/components/outstandingbalancebysupplier.ts +0 -109
  130. package/src/models/components/pipelineinput.ts +0 -233
  131. package/src/models/components/updatepipelineresponse.ts +0 -119
  132. package/src/models/operations/accountingagedcreditorsone.ts +0 -277
  133. package/src/models/operations/crmpipelinesadd.ts +0 -250
  134. package/src/models/operations/crmpipelinesdelete.ts +0 -245
  135. package/src/models/operations/crmpipelinesone.ts +0 -248
  136. package/src/models/operations/crmpipelinesupdate.ts +0 -257
  137. package/src/sdk/agedcreditors.ts +0 -27
@@ -30,6 +30,12 @@ import {
30
30
  Currency$inboundSchema,
31
31
  Currency$outboundSchema,
32
32
  } from "./currency.js";
33
+ import {
34
+ CustomField,
35
+ CustomField$inboundSchema,
36
+ CustomField$Outbound,
37
+ CustomField$outboundSchema,
38
+ } from "./customfield.js";
33
39
  import {
34
40
  CustomMappings,
35
41
  CustomMappings$inboundSchema,
@@ -224,6 +230,7 @@ export type Bill = {
224
230
  * 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.
225
231
  */
226
232
  rowVersion?: string | null | undefined;
233
+ customFields?: Array<CustomField> | undefined;
227
234
  /**
228
235
  * When custom mappings are configured on the resource, the result is included here.
229
236
  */
@@ -347,6 +354,7 @@ export type BillInput = {
347
354
  * 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.
348
355
  */
349
356
  rowVersion?: string | null | undefined;
357
+ customFields?: Array<CustomField> | undefined;
350
358
  /**
351
359
  * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
352
360
  */
@@ -421,6 +429,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
421
429
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
422
430
  ).optional(),
423
431
  row_version: z.nullable(z.string()).optional(),
432
+ custom_fields: z.array(CustomField$inboundSchema).optional(),
424
433
  custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
425
434
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
426
435
  accounting_period: z.nullable(z.string()).optional(),
@@ -450,6 +459,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
450
459
  "updated_at": "updatedAt",
451
460
  "created_at": "createdAt",
452
461
  "row_version": "rowVersion",
462
+ "custom_fields": "customFields",
453
463
  "custom_mappings": "customMappings",
454
464
  "pass_through": "passThrough",
455
465
  "accounting_period": "accountingPeriod",
@@ -497,6 +507,7 @@ export type Bill$Outbound = {
497
507
  updated_at?: string | null | undefined;
498
508
  created_at?: string | null | undefined;
499
509
  row_version?: string | null | undefined;
510
+ custom_fields?: Array<CustomField$Outbound> | undefined;
500
511
  custom_mappings?: CustomMappings$Outbound | null | undefined;
501
512
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
502
513
  accounting_period?: string | null | undefined;
@@ -544,6 +555,7 @@ export const Bill$outboundSchema: z.ZodType<Bill$Outbound, z.ZodTypeDef, Bill> =
544
555
  updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
545
556
  createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
546
557
  rowVersion: z.nullable(z.string()).optional(),
558
+ customFields: z.array(CustomField$outboundSchema).optional(),
547
559
  customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
548
560
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
549
561
  accountingPeriod: z.nullable(z.string()).optional(),
@@ -573,6 +585,7 @@ export const Bill$outboundSchema: z.ZodType<Bill$Outbound, z.ZodTypeDef, Bill> =
573
585
  updatedAt: "updated_at",
574
586
  createdAt: "created_at",
575
587
  rowVersion: "row_version",
588
+ customFields: "custom_fields",
576
589
  customMappings: "custom_mappings",
577
590
  passThrough: "pass_through",
578
591
  accountingPeriod: "accounting_period",
@@ -643,6 +656,7 @@ export const BillInput$inboundSchema: z.ZodType<
643
656
  tracking_categories: z.nullable(z.array(LinkedTrackingCategory$inboundSchema))
644
657
  .optional(),
645
658
  row_version: z.nullable(z.string()).optional(),
659
+ custom_fields: z.array(CustomField$inboundSchema).optional(),
646
660
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
647
661
  accounting_period: z.nullable(z.string()).optional(),
648
662
  }).transform((v) => {
@@ -666,6 +680,7 @@ export const BillInput$inboundSchema: z.ZodType<
666
680
  "discount_percentage": "discountPercentage",
667
681
  "tracking_categories": "trackingCategories",
668
682
  "row_version": "rowVersion",
683
+ "custom_fields": "customFields",
669
684
  "pass_through": "passThrough",
670
685
  "accounting_period": "accountingPeriod",
671
686
  });
@@ -706,6 +721,7 @@ export type BillInput$Outbound = {
706
721
  | null
707
722
  | undefined;
708
723
  row_version?: string | null | undefined;
724
+ custom_fields?: Array<CustomField$Outbound> | undefined;
709
725
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
710
726
  accounting_period?: string | null | undefined;
711
727
  };
@@ -748,6 +764,7 @@ export const BillInput$outboundSchema: z.ZodType<
748
764
  trackingCategories: z.nullable(z.array(LinkedTrackingCategory$outboundSchema))
749
765
  .optional(),
750
766
  rowVersion: z.nullable(z.string()).optional(),
767
+ customFields: z.array(CustomField$outboundSchema).optional(),
751
768
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
752
769
  accountingPeriod: z.nullable(z.string()).optional(),
753
770
  }).transform((v) => {
@@ -771,6 +788,7 @@ export const BillInput$outboundSchema: z.ZodType<
771
788
  discountPercentage: "discount_percentage",
772
789
  trackingCategories: "tracking_categories",
773
790
  rowVersion: "row_version",
791
+ customFields: "custom_fields",
774
792
  passThrough: "pass_through",
775
793
  accountingPeriod: "accounting_period",
776
794
  });
@@ -11,7 +11,6 @@ export * from "./activitiessort.js";
11
11
  export * from "./activity.js";
12
12
  export * from "./activityattendee.js";
13
13
  export * from "./address.js";
14
- export * from "./agedcreditors.js";
15
14
  export * from "./ageddebtors.js";
16
15
  export * from "./agedreportfilter.js";
17
16
  export * from "./allocation.js";
@@ -105,7 +104,6 @@ export * from "./createmessageresponse.js";
105
104
  export * from "./createnoteresponse.js";
106
105
  export * from "./createopportunityresponse.js";
107
106
  export * from "./createpaymentresponse.js";
108
- export * from "./createpipelineresponse.js";
109
107
  export * from "./createpurchaseorderresponse.js";
110
108
  export * from "./createsessionresponse.js";
111
109
  export * from "./createsharedlinkresponse.js";
@@ -163,7 +161,6 @@ export * from "./deletemessageresponse.js";
163
161
  export * from "./deletenoteresponse.js";
164
162
  export * from "./deleteopportunityresponse.js";
165
163
  export * from "./deletepaymentresponse.js";
166
- export * from "./deletepipelineresponse.js";
167
164
  export * from "./deletepurchaseorderresponse.js";
168
165
  export * from "./deletesharedlinkresponse.js";
169
166
  export * from "./deletesubsidiaryresponse.js";
@@ -224,7 +221,6 @@ export * from "./getaccountinglocationresponse.js";
224
221
  export * from "./getaccountinglocationsresponse.js";
225
222
  export * from "./getactivitiesresponse.js";
226
223
  export * from "./getactivityresponse.js";
227
- export * from "./getagedcreditorsresponse.js";
228
224
  export * from "./getageddebtorsresponse.js";
229
225
  export * from "./getapiresourcecoverageresponse.js";
230
226
  export * from "./getapiresourceresponse.js";
@@ -311,7 +307,6 @@ export * from "./getpaymentresponse.js";
311
307
  export * from "./getpaymentsresponse.js";
312
308
  export * from "./getpayrollresponse.js";
313
309
  export * from "./getpayrollsresponse.js";
314
- export * from "./getpipelineresponse.js";
315
310
  export * from "./getpipelinesresponse.js";
316
311
  export * from "./getproductresponse.js";
317
312
  export * from "./getproductsresponse.js";
@@ -395,7 +390,6 @@ export * from "./opportunityinput.js";
395
390
  export * from "./orderssort.js";
396
391
  export * from "./outstandingbalancebycurrency.js";
397
392
  export * from "./outstandingbalancebycustomer.js";
398
- export * from "./outstandingbalancebysupplier.js";
399
393
  export * from "./owner.js";
400
394
  export * from "./paginationcoverage.js";
401
395
  export * from "./passthroughbody.js";
@@ -414,7 +408,6 @@ export * from "./person.js";
414
408
  export * from "./personinput.js";
415
409
  export * from "./phonenumber.js";
416
410
  export * from "./pipeline.js";
417
- export * from "./pipelineinput.js";
418
411
  export * from "./profitandloss.js";
419
412
  export * from "./profitandlossfilter.js";
420
413
  export * from "./purchaseorder.js";
@@ -487,7 +480,6 @@ export * from "./updatemessageresponse.js";
487
480
  export * from "./updatenoteresponse.js";
488
481
  export * from "./updateopportunityresponse.js";
489
482
  export * from "./updatepaymentresponse.js";
490
- export * from "./updatepipelineresponse.js";
491
483
  export * from "./updatepurchaseorderresponse.js";
492
484
  export * from "./updatesharedlinkresponse.js";
493
485
  export * from "./updatesubsidiaryresponse.js";
@@ -20,6 +20,12 @@ import {
20
20
  Currency$inboundSchema,
21
21
  Currency$outboundSchema,
22
22
  } from "./currency.js";
23
+ import {
24
+ CustomField,
25
+ CustomField$inboundSchema,
26
+ CustomField$Outbound,
27
+ CustomField$outboundSchema,
28
+ } from "./customfield.js";
23
29
  import {
24
30
  CustomMappings,
25
31
  CustomMappings$inboundSchema,
@@ -248,6 +254,7 @@ export type LedgerAccount = {
248
254
  * When custom mappings are configured on the resource, the result is included here.
249
255
  */
250
256
  customMappings?: CustomMappings | null | undefined;
257
+ customFields?: Array<CustomField> | undefined;
251
258
  /**
252
259
  * 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.
253
260
  */
@@ -357,6 +364,7 @@ export type LedgerAccountInput = {
357
364
  * The subsidiaries the account belongs to.
358
365
  */
359
366
  subsidiaries?: Array<LedgerAccountSubsidiaries> | undefined;
367
+ customFields?: Array<CustomField> | undefined;
360
368
  /**
361
369
  * 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.
362
370
  */
@@ -698,6 +706,7 @@ export const LedgerAccount$inboundSchema: z.ZodType<
698
706
  subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$inboundSchema))
699
707
  .optional(),
700
708
  custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
709
+ custom_fields: z.array(CustomField$inboundSchema).optional(),
701
710
  row_version: z.nullable(z.string()).optional(),
702
711
  updated_by: z.nullable(z.string()).optional(),
703
712
  created_by: z.nullable(z.string()).optional(),
@@ -724,6 +733,7 @@ export const LedgerAccount$inboundSchema: z.ZodType<
724
733
  "sub_accounts": "subAccounts",
725
734
  "last_reconciliation_date": "lastReconciliationDate",
726
735
  "custom_mappings": "customMappings",
736
+ "custom_fields": "customFields",
727
737
  "row_version": "rowVersion",
728
738
  "updated_by": "updatedBy",
729
739
  "created_by": "createdBy",
@@ -762,6 +772,7 @@ export type LedgerAccount$Outbound = {
762
772
  last_reconciliation_date?: string | null | undefined;
763
773
  subsidiaries?: Array<LedgerAccountSubsidiaries$Outbound> | undefined;
764
774
  custom_mappings?: CustomMappings$Outbound | null | undefined;
775
+ custom_fields?: Array<CustomField$Outbound> | undefined;
765
776
  row_version?: string | null | undefined;
766
777
  updated_by?: string | null | undefined;
767
778
  created_by?: string | null | undefined;
@@ -806,6 +817,7 @@ export const LedgerAccount$outboundSchema: z.ZodType<
806
817
  subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$outboundSchema))
807
818
  .optional(),
808
819
  customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
820
+ customFields: z.array(CustomField$outboundSchema).optional(),
809
821
  rowVersion: z.nullable(z.string()).optional(),
810
822
  updatedBy: z.nullable(z.string()).optional(),
811
823
  createdBy: z.nullable(z.string()).optional(),
@@ -828,6 +840,7 @@ export const LedgerAccount$outboundSchema: z.ZodType<
828
840
  subAccounts: "sub_accounts",
829
841
  lastReconciliationDate: "last_reconciliation_date",
830
842
  customMappings: "custom_mappings",
843
+ customFields: "custom_fields",
831
844
  rowVersion: "row_version",
832
845
  updatedBy: "updated_by",
833
846
  createdBy: "created_by",
@@ -896,6 +909,7 @@ export const LedgerAccountInput$inboundSchema: z.ZodType<
896
909
  ).optional(),
897
910
  subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$inboundSchema))
898
911
  .optional(),
912
+ custom_fields: z.array(CustomField$inboundSchema).optional(),
899
913
  row_version: z.nullable(z.string()).optional(),
900
914
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
901
915
  }).transform((v) => {
@@ -912,6 +926,7 @@ export const LedgerAccountInput$inboundSchema: z.ZodType<
912
926
  "parent_account": "parentAccount",
913
927
  "sub_account": "subAccount",
914
928
  "last_reconciliation_date": "lastReconciliationDate",
929
+ "custom_fields": "customFields",
915
930
  "row_version": "rowVersion",
916
931
  "pass_through": "passThrough",
917
932
  });
@@ -942,6 +957,7 @@ export type LedgerAccountInput$Outbound = {
942
957
  sub_account?: boolean | null | undefined;
943
958
  last_reconciliation_date?: string | null | undefined;
944
959
  subsidiaries?: Array<LedgerAccountSubsidiaries$Outbound> | undefined;
960
+ custom_fields?: Array<CustomField$Outbound> | undefined;
945
961
  row_version?: string | null | undefined;
946
962
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
947
963
  };
@@ -978,6 +994,7 @@ export const LedgerAccountInput$outboundSchema: z.ZodType<
978
994
  ).optional(),
979
995
  subsidiaries: z.array(z.lazy(() => LedgerAccountSubsidiaries$outboundSchema))
980
996
  .optional(),
997
+ customFields: z.array(CustomField$outboundSchema).optional(),
981
998
  rowVersion: z.nullable(z.string()).optional(),
982
999
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
983
1000
  }).transform((v) => {
@@ -994,6 +1011,7 @@ export const LedgerAccountInput$outboundSchema: z.ZodType<
994
1011
  parentAccount: "parent_account",
995
1012
  subAccount: "sub_account",
996
1013
  lastReconciliationDate: "last_reconciliation_date",
1014
+ customFields: "custom_fields",
997
1015
  rowVersion: "row_version",
998
1016
  passThrough: "pass_through",
999
1017
  });
@@ -25,6 +25,12 @@ import {
25
25
  Currency$inboundSchema,
26
26
  Currency$outboundSchema,
27
27
  } from "./currency.js";
28
+ import {
29
+ CustomField,
30
+ CustomField$inboundSchema,
31
+ CustomField$Outbound,
32
+ CustomField$outboundSchema,
33
+ } from "./customfield.js";
28
34
  import {
29
35
  CustomMappings,
30
36
  CustomMappings$inboundSchema,
@@ -173,6 +179,7 @@ export type Supplier = {
173
179
  * When custom mappings are configured on the resource, the result is included here.
174
180
  */
175
181
  customMappings?: CustomMappings | null | undefined;
182
+ customFields?: Array<CustomField> | undefined;
176
183
  /**
177
184
  * The user who last updated the object.
178
185
  */
@@ -269,6 +276,7 @@ export type SupplierInput = {
269
276
  * The channel through which the transaction is processed.
270
277
  */
271
278
  channel?: string | null | undefined;
279
+ customFields?: Array<CustomField> | undefined;
272
280
  /**
273
281
  * 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.
274
282
  */
@@ -336,6 +344,7 @@ export const Supplier$inboundSchema: z.ZodType<
336
344
  payment_method: z.nullable(z.string()).optional(),
337
345
  channel: z.nullable(z.string()).optional(),
338
346
  custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
347
+ custom_fields: z.array(CustomField$inboundSchema).optional(),
339
348
  updated_by: z.nullable(z.string()).optional(),
340
349
  created_by: z.nullable(z.string()).optional(),
341
350
  updated_at: z.nullable(
@@ -363,6 +372,7 @@ export const Supplier$inboundSchema: z.ZodType<
363
372
  "tax_number": "taxNumber",
364
373
  "payment_method": "paymentMethod",
365
374
  "custom_mappings": "customMappings",
375
+ "custom_fields": "customFields",
366
376
  "updated_by": "updatedBy",
367
377
  "created_by": "createdBy",
368
378
  "updated_at": "updatedAt",
@@ -401,6 +411,7 @@ export type Supplier$Outbound = {
401
411
  payment_method?: string | null | undefined;
402
412
  channel?: string | null | undefined;
403
413
  custom_mappings?: CustomMappings$Outbound | null | undefined;
414
+ custom_fields?: Array<CustomField$Outbound> | undefined;
404
415
  updated_by?: string | null | undefined;
405
416
  created_by?: string | null | undefined;
406
417
  updated_at?: string | null | undefined;
@@ -442,6 +453,7 @@ export const Supplier$outboundSchema: z.ZodType<
442
453
  paymentMethod: z.nullable(z.string()).optional(),
443
454
  channel: z.nullable(z.string()).optional(),
444
455
  customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
456
+ customFields: z.array(CustomField$outboundSchema).optional(),
445
457
  updatedBy: z.nullable(z.string()).optional(),
446
458
  createdBy: z.nullable(z.string()).optional(),
447
459
  updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
@@ -465,6 +477,7 @@ export const Supplier$outboundSchema: z.ZodType<
465
477
  taxNumber: "tax_number",
466
478
  paymentMethod: "payment_method",
467
479
  customMappings: "custom_mappings",
480
+ customFields: "custom_fields",
468
481
  updatedBy: "updated_by",
469
482
  createdBy: "created_by",
470
483
  updatedAt: "updated_at",
@@ -531,6 +544,7 @@ export const SupplierInput$inboundSchema: z.ZodType<
531
544
  status: z.nullable(SupplierStatus$inboundSchema).optional(),
532
545
  payment_method: z.nullable(z.string()).optional(),
533
546
  channel: z.nullable(z.string()).optional(),
547
+ custom_fields: z.array(CustomField$inboundSchema).optional(),
534
548
  row_version: z.nullable(z.string()).optional(),
535
549
  pass_through: z.array(PassThroughBody$inboundSchema).optional(),
536
550
  subsidiary_id: z.string().optional(),
@@ -548,6 +562,7 @@ export const SupplierInput$inboundSchema: z.ZodType<
548
562
  "tax_rate": "taxRate",
549
563
  "tax_number": "taxNumber",
550
564
  "payment_method": "paymentMethod",
565
+ "custom_fields": "customFields",
551
566
  "row_version": "rowVersion",
552
567
  "pass_through": "passThrough",
553
568
  "subsidiary_id": "subsidiaryId",
@@ -579,6 +594,7 @@ export type SupplierInput$Outbound = {
579
594
  status?: string | null | undefined;
580
595
  payment_method?: string | null | undefined;
581
596
  channel?: string | null | undefined;
597
+ custom_fields?: Array<CustomField$Outbound> | undefined;
582
598
  row_version?: string | null | undefined;
583
599
  pass_through?: Array<PassThroughBody$Outbound> | undefined;
584
600
  subsidiary_id?: string | undefined;
@@ -613,6 +629,7 @@ export const SupplierInput$outboundSchema: z.ZodType<
613
629
  status: z.nullable(SupplierStatus$outboundSchema).optional(),
614
630
  paymentMethod: z.nullable(z.string()).optional(),
615
631
  channel: z.nullable(z.string()).optional(),
632
+ customFields: z.array(CustomField$outboundSchema).optional(),
616
633
  rowVersion: z.nullable(z.string()).optional(),
617
634
  passThrough: z.array(PassThroughBody$outboundSchema).optional(),
618
635
  subsidiaryId: z.string().optional(),
@@ -630,6 +647,7 @@ export const SupplierInput$outboundSchema: z.ZodType<
630
647
  taxRate: "tax_rate",
631
648
  taxNumber: "tax_number",
632
649
  paymentMethod: "payment_method",
650
+ customFields: "custom_fields",
633
651
  rowVersion: "row_version",
634
652
  passThrough: "pass_through",
635
653
  subsidiaryId: "subsidiary_id",
@@ -2,7 +2,6 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- export * from "./accountingagedcreditorsone.js";
6
5
  export * from "./accountingageddebtorsone.js";
7
6
  export * from "./accountingattachmentsall.js";
8
7
  export * from "./accountingattachmentsdelete.js";
@@ -146,11 +145,7 @@ export * from "./crmopportunitiesall.js";
146
145
  export * from "./crmopportunitiesdelete.js";
147
146
  export * from "./crmopportunitiesone.js";
148
147
  export * from "./crmopportunitiesupdate.js";
149
- export * from "./crmpipelinesadd.js";
150
148
  export * from "./crmpipelinesall.js";
151
- export * from "./crmpipelinesdelete.js";
152
- export * from "./crmpipelinesone.js";
153
- export * from "./crmpipelinesupdate.js";
154
149
  export * from "./crmusersadd.js";
155
150
  export * from "./crmusersall.js";
156
151
  export * from "./crmusersdelete.js";
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
- import { AgedCreditors } from "./agedcreditors.js";
7
6
  import { AgedDebtors } from "./ageddebtors.js";
8
7
  import { Attachments } from "./attachments.js";
9
8
  import { BalanceSheet } from "./balancesheet.js";
@@ -133,11 +132,6 @@ export class Accounting extends ClientSDK {
133
132
  return (this._expenses ??= new Expenses(this._options));
134
133
  }
135
134
 
136
- private _agedCreditors?: AgedCreditors;
137
- get agedCreditors(): AgedCreditors {
138
- return (this._agedCreditors ??= new AgedCreditors(this._options));
139
- }
140
-
141
135
  private _agedDebtors?: AgedDebtors;
142
136
  get agedDebtors(): AgedDebtors {
143
137
  return (this._agedDebtors ??= new AgedDebtors(this._options));
@@ -2,14 +2,9 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { crmPipelinesCreate } from "../funcs/crmPipelinesCreate.js";
6
- import { crmPipelinesDelete } from "../funcs/crmPipelinesDelete.js";
7
- import { crmPipelinesGet } from "../funcs/crmPipelinesGet.js";
8
5
  import { crmPipelinesList } from "../funcs/crmPipelinesList.js";
9
- import { crmPipelinesUpdate } from "../funcs/crmPipelinesUpdate.js";
10
6
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
7
  import * as operations from "../models/operations/index.js";
12
- import { unwrapAsync } from "../types/fp.js";
13
8
  import { PageIterator, unwrapResultIterator } from "../types/operations.js";
14
9
 
15
10
  export class Pipelines extends ClientSDK {
@@ -31,72 +26,4 @@ export class Pipelines extends ClientSDK {
31
26
  options,
32
27
  ));
33
28
  }
34
-
35
- /**
36
- * Create pipeline
37
- *
38
- * @remarks
39
- * Create pipeline
40
- */
41
- async create(
42
- request: operations.CrmPipelinesAddRequest,
43
- options?: RequestOptions,
44
- ): Promise<operations.CrmPipelinesAddResponse> {
45
- return unwrapAsync(crmPipelinesCreate(
46
- this,
47
- request,
48
- options,
49
- ));
50
- }
51
-
52
- /**
53
- * Get pipeline
54
- *
55
- * @remarks
56
- * Get pipeline
57
- */
58
- async get(
59
- request: operations.CrmPipelinesOneRequest,
60
- options?: RequestOptions,
61
- ): Promise<operations.CrmPipelinesOneResponse> {
62
- return unwrapAsync(crmPipelinesGet(
63
- this,
64
- request,
65
- options,
66
- ));
67
- }
68
-
69
- /**
70
- * Update pipeline
71
- *
72
- * @remarks
73
- * Update pipeline
74
- */
75
- async update(
76
- request: operations.CrmPipelinesUpdateRequest,
77
- options?: RequestOptions,
78
- ): Promise<operations.CrmPipelinesUpdateResponse> {
79
- return unwrapAsync(crmPipelinesUpdate(
80
- this,
81
- request,
82
- options,
83
- ));
84
- }
85
-
86
- /**
87
- * Delete pipeline
88
- *
89
- * @remarks
90
- * Delete pipeline
91
- */
92
- async delete(
93
- request: operations.CrmPipelinesDeleteRequest,
94
- options?: RequestOptions,
95
- ): Promise<operations.CrmPipelinesDeleteResponse> {
96
- return unwrapAsync(crmPipelinesDelete(
97
- this,
98
- request,
99
- options,
100
- ));
101
- }
102
29
  }
@@ -1,115 +0,0 @@
1
- # AgedCreditors
2
- (*accounting.agedCreditors*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [get](#get) - Get Aged Creditors
9
-
10
- ## get
11
-
12
- Get Aged Creditors
13
-
14
- ### Example Usage
15
-
16
- ```typescript
17
- import { Apideck } from "@apideck/unify";
18
-
19
- const apideck = new Apideck({
20
- apiKey: process.env["APIDECK_API_KEY"] ?? "",
21
- consumerId: "test-consumer",
22
- appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
23
- });
24
-
25
- async function run() {
26
- const result = await apideck.accounting.agedCreditors.get({
27
- serviceId: "salesforce",
28
- filter: {
29
- customerId: "123abc",
30
- supplierId: "123abc",
31
- reportAsOfDate: "2024-01-01",
32
- periodCount: 3,
33
- periodLength: 30,
34
- },
35
- passThrough: {
36
- "search": "San Francisco",
37
- },
38
- fields: "id,updated_at",
39
- });
40
-
41
- // Handle the result
42
- console.log(result);
43
- }
44
-
45
- run();
46
- ```
47
-
48
- ### Standalone function
49
-
50
- The standalone function version of this method:
51
-
52
- ```typescript
53
- import { ApideckCore } from "@apideck/unify/core.js";
54
- import { accountingAgedCreditorsGet } from "@apideck/unify/funcs/accountingAgedCreditorsGet.js";
55
-
56
- // Use `ApideckCore` for best tree-shaking performance.
57
- // You can create one instance of it to use across an application.
58
- const apideck = new ApideckCore({
59
- apiKey: process.env["APIDECK_API_KEY"] ?? "",
60
- consumerId: "test-consumer",
61
- appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
62
- });
63
-
64
- async function run() {
65
- const res = await accountingAgedCreditorsGet(apideck, {
66
- serviceId: "salesforce",
67
- filter: {
68
- customerId: "123abc",
69
- supplierId: "123abc",
70
- reportAsOfDate: "2024-01-01",
71
- periodCount: 3,
72
- periodLength: 30,
73
- },
74
- passThrough: {
75
- "search": "San Francisco",
76
- },
77
- fields: "id,updated_at",
78
- });
79
-
80
- if (!res.ok) {
81
- throw res.error;
82
- }
83
-
84
- const { value: result } = res;
85
-
86
- // Handle the result
87
- console.log(result);
88
- }
89
-
90
- run();
91
- ```
92
-
93
- ### Parameters
94
-
95
- | Parameter | Type | Required | Description |
96
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
97
- | `request` | [operations.AccountingAgedCreditorsOneRequest](../../models/operations/accountingagedcreditorsonerequest.md) | :heavy_check_mark: | The request object to use for the request. |
98
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
99
- | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
100
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
101
-
102
- ### Response
103
-
104
- **Promise\<[operations.AccountingAgedCreditorsOneResponse](../../models/operations/accountingagedcreditorsoneresponse.md)\>**
105
-
106
- ### Errors
107
-
108
- | Error Type | Status Code | Content Type |
109
- | ------------------------------ | ------------------------------ | ------------------------------ |
110
- | errors.BadRequestResponse | 400 | application/json |
111
- | errors.UnauthorizedResponse | 401 | application/json |
112
- | errors.PaymentRequiredResponse | 402 | application/json |
113
- | errors.NotFoundResponse | 404 | application/json |
114
- | errors.UnprocessableResponse | 422 | application/json |
115
- | errors.APIError | 4XX, 5XX | \*/\* |
@@ -1,16 +0,0 @@
1
- import { ApideckCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import { APIError } from "../models/errors/apierror.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
- import * as errors from "../models/errors/index.js";
6
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { Result } from "../types/fp.js";
9
- /**
10
- * Get Aged Creditors
11
- *
12
- * @remarks
13
- * Get Aged Creditors
14
- */
15
- export declare function accountingAgedCreditorsGet(client: ApideckCore, request: operations.AccountingAgedCreditorsOneRequest, options?: RequestOptions): Promise<Result<operations.AccountingAgedCreditorsOneResponse, errors.BadRequestResponse | errors.UnauthorizedResponse | errors.PaymentRequiredResponse | errors.NotFoundResponse | errors.UnprocessableResponse | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
- //# sourceMappingURL=accountingAgedCreditorsGet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountingAgedCreditorsGet.d.ts","sourceRoot":"","sources":["../src/funcs/accountingAgedCreditorsGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AASzC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,kCAAkC,EAC3C,MAAM,CAAC,kBAAkB,GACzB,MAAM,CAAC,oBAAoB,GAC3B,MAAM,CAAC,uBAAuB,GAC9B,MAAM,CAAC,gBAAgB,GACvB,MAAM,CAAC,qBAAqB,GAC5B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyIA"}