@apideck/unify 0.13.1 → 0.13.2

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 (54) hide show
  1. package/docs/sdks/agedcreditors/README.md +2 -0
  2. package/docs/sdks/ageddebtors/README.md +2 -0
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/agedcreditors.d.ts +3 -3
  6. package/models/components/agedcreditors.d.ts.map +1 -1
  7. package/models/components/agedcreditors.js +5 -3
  8. package/models/components/agedcreditors.js.map +1 -1
  9. package/models/components/ageddebtors.d.ts +3 -3
  10. package/models/components/ageddebtors.d.ts.map +1 -1
  11. package/models/components/ageddebtors.js +5 -3
  12. package/models/components/ageddebtors.js.map +1 -1
  13. package/models/components/agedreportfilter.d.ts +5 -0
  14. package/models/components/agedreportfilter.d.ts.map +1 -1
  15. package/models/components/agedreportfilter.js +4 -0
  16. package/models/components/agedreportfilter.js.map +1 -1
  17. package/models/components/balancebyperiod.d.ts +6 -6
  18. package/models/components/balancebyperiod.d.ts.map +1 -1
  19. package/models/components/balancebyperiod.js +6 -4
  20. package/models/components/balancebyperiod.js.map +1 -1
  21. package/models/components/balancebytransaction.d.ts +8 -3
  22. package/models/components/balancebytransaction.d.ts.map +1 -1
  23. package/models/components/balancebytransaction.js +5 -1
  24. package/models/components/balancebytransaction.js.map +1 -1
  25. package/models/components/index.d.ts +2 -1
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +2 -1
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/outstandingbalancebycurrency.d.ts +5 -0
  30. package/models/components/outstandingbalancebycurrency.d.ts.map +1 -1
  31. package/models/components/outstandingbalancebycurrency.js +4 -0
  32. package/models/components/outstandingbalancebycurrency.js.map +1 -1
  33. package/models/components/outstandingbalancebycustomer.d.ts +40 -0
  34. package/models/components/outstandingbalancebycustomer.d.ts.map +1 -0
  35. package/models/components/{outstandingbalance.js → outstandingbalancebycustomer.js} +17 -17
  36. package/models/components/outstandingbalancebycustomer.js.map +1 -0
  37. package/models/components/outstandingbalancebysupplier.d.ts +40 -0
  38. package/models/components/outstandingbalancebysupplier.d.ts.map +1 -0
  39. package/models/components/outstandingbalancebysupplier.js +77 -0
  40. package/models/components/outstandingbalancebysupplier.js.map +1 -0
  41. package/package.json +1 -1
  42. package/src/lib/config.ts +2 -2
  43. package/src/models/components/agedcreditors.ts +13 -9
  44. package/src/models/components/ageddebtors.ts +13 -9
  45. package/src/models/components/agedreportfilter.ts +9 -0
  46. package/src/models/components/balancebyperiod.ts +12 -10
  47. package/src/models/components/balancebytransaction.ts +10 -1
  48. package/src/models/components/index.ts +2 -1
  49. package/src/models/components/outstandingbalancebycurrency.ts +9 -0
  50. package/src/models/components/{outstandingbalance.ts → outstandingbalancebycustomer.ts} +25 -23
  51. package/src/models/components/outstandingbalancebysupplier.ts +109 -0
  52. package/models/components/outstandingbalance.d.ts +0 -40
  53. package/models/components/outstandingbalance.d.ts.map +0 -1
  54. package/models/components/outstandingbalance.js.map +0 -1
@@ -8,6 +8,10 @@ export type OutstandingBalanceByCurrency = {
8
8
  * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
9
9
  */
10
10
  currency?: Currency | null | undefined;
11
+ /**
12
+ * Total amount of the outstanding balance.
13
+ */
14
+ totalAmount?: number | undefined;
11
15
  balancesByPeriod?: Array<BalanceByPeriod> | undefined;
12
16
  };
13
17
  /** @internal */
@@ -15,6 +19,7 @@ export declare const OutstandingBalanceByCurrency$inboundSchema: z.ZodType<Outst
15
19
  /** @internal */
16
20
  export type OutstandingBalanceByCurrency$Outbound = {
17
21
  currency?: string | null | undefined;
22
+ total_amount?: number | undefined;
18
23
  balances_by_period?: Array<BalanceByPeriod$Outbound> | undefined;
19
24
  };
20
25
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"outstandingbalancebycurrency.d.ts","sourceRoot":"","sources":["../../src/models/components/outstandingbal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CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
1
+ {"version":3,"file":"outstandingbalancebycurrency.d.ts","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebycurrency.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,QAAQ,EAGT,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,gBAAgB,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,kBAAkB,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,SAAS,CAAC;CAClE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAU5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -37,18 +37,22 @@ const currency_js_1 = require("./currency.js");
37
37
  /** @internal */
38
38
  exports.OutstandingBalanceByCurrency$inboundSchema = z.object({
39
39
  currency: z.nullable(currency_js_1.Currency$inboundSchema).optional(),
40
+ total_amount: z.number().optional(),
40
41
  balances_by_period: z.array(balancebyperiod_js_1.BalanceByPeriod$inboundSchema).optional(),
41
42
  }).transform((v) => {
42
43
  return (0, primitives_js_1.remap)(v, {
44
+ "total_amount": "totalAmount",
43
45
  "balances_by_period": "balancesByPeriod",
44
46
  });
45
47
  });
46
48
  /** @internal */
47
49
  exports.OutstandingBalanceByCurrency$outboundSchema = z.object({
48
50
  currency: z.nullable(currency_js_1.Currency$outboundSchema).optional(),
51
+ totalAmount: z.number().optional(),
49
52
  balancesByPeriod: z.array(balancebyperiod_js_1.BalanceByPeriod$outboundSchema).optional(),
50
53
  }).transform((v) => {
51
54
  return (0, primitives_js_1.remap)(v, {
55
+ totalAmount: "total_amount",
52
56
  balancesByPeriod: "balances_by_period",
53
57
  });
54
58
  });
@@ -1 +1 @@
1
- {"version":3,"file":"outstandingbalancebycurrency.js","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebycurrency.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EH,gFAQC;AAED,oFAQC;AA1FD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,6DAK8B;AAC9B,+CAIuB;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DAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"outstandingbalancebycurrency.js","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebycurrency.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFH,gFAQC;AAED,oFAQC;AAnGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,6DAK8B;AAC9B,+CAIuB;AAcvB,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,oCAAsB,CAAC,CAAC,QAAQ,EAAE;IACvD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC,CAAC,QAAQ,EAAE;CACtE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,oBAAoB,EAAE,kBAAkB;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,qCAAuB,CAAC,CAAC,QAAQ,EAAE;IACxD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,mDAA8B,CAAC,CAAC,QAAQ,EAAE;CACrE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,gBAAgB,EAAE,oBAAoB;KACvC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,kDAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,mDAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,6CAA7B,6BAA6B,QAO7C;AAED,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,40 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { OutstandingBalanceByCurrency, OutstandingBalanceByCurrency$Outbound } from "./outstandingbalancebycurrency.js";
5
+ export type OutstandingBalanceByCustomer = {
6
+ /**
7
+ * Unique identifier for the customer.
8
+ */
9
+ customerId?: string | undefined;
10
+ /**
11
+ * Full name of the customer.
12
+ */
13
+ customerName?: string | undefined;
14
+ outstandingBalancesByCurrency?: Array<OutstandingBalanceByCurrency> | undefined;
15
+ };
16
+ /** @internal */
17
+ export declare const OutstandingBalanceByCustomer$inboundSchema: z.ZodType<OutstandingBalanceByCustomer, z.ZodTypeDef, unknown>;
18
+ /** @internal */
19
+ export type OutstandingBalanceByCustomer$Outbound = {
20
+ customer_id?: string | undefined;
21
+ customer_name?: string | undefined;
22
+ outstanding_balances_by_currency?: Array<OutstandingBalanceByCurrency$Outbound> | undefined;
23
+ };
24
+ /** @internal */
25
+ export declare const OutstandingBalanceByCustomer$outboundSchema: z.ZodType<OutstandingBalanceByCustomer$Outbound, z.ZodTypeDef, OutstandingBalanceByCustomer>;
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export declare namespace OutstandingBalanceByCustomer$ {
31
+ /** @deprecated use `OutstandingBalanceByCustomer$inboundSchema` instead. */
32
+ const inboundSchema: z.ZodType<OutstandingBalanceByCustomer, z.ZodTypeDef, unknown>;
33
+ /** @deprecated use `OutstandingBalanceByCustomer$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodType<OutstandingBalanceByCustomer$Outbound, z.ZodTypeDef, OutstandingBalanceByCustomer>;
35
+ /** @deprecated use `OutstandingBalanceByCustomer$Outbound` instead. */
36
+ type Outbound = OutstandingBalanceByCustomer$Outbound;
37
+ }
38
+ export declare function outstandingBalanceByCustomerToJSON(outstandingBalanceByCustomer: OutstandingBalanceByCustomer): string;
39
+ export declare function outstandingBalanceByCustomerFromJSON(jsonString: string): SafeParseResult<OutstandingBalanceByCustomer, SDKValidationError>;
40
+ //# sourceMappingURL=outstandingbalancebycustomer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outstandingbalancebycustomer.d.ts","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebycustomer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,6BAA6B,CAAC,EAC1B,KAAK,CAAC,4BAA4B,CAAC,GACnC,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,gCAAgC,CAAC,EAC7B,KAAK,CAAC,qCAAqC,CAAC,GAC5C,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAa5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -26,15 +26,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.OutstandingBalance$ = exports.OutstandingBalance$outboundSchema = exports.OutstandingBalance$inboundSchema = void 0;
30
- exports.outstandingBalanceToJSON = outstandingBalanceToJSON;
31
- exports.outstandingBalanceFromJSON = outstandingBalanceFromJSON;
29
+ exports.OutstandingBalanceByCustomer$ = exports.OutstandingBalanceByCustomer$outboundSchema = exports.OutstandingBalanceByCustomer$inboundSchema = void 0;
30
+ exports.outstandingBalanceByCustomerToJSON = outstandingBalanceByCustomerToJSON;
31
+ exports.outstandingBalanceByCustomerFromJSON = outstandingBalanceByCustomerFromJSON;
32
32
  const z = __importStar(require("zod"));
33
33
  const primitives_js_1 = require("../../lib/primitives.js");
34
34
  const schemas_js_1 = require("../../lib/schemas.js");
35
35
  const outstandingbalancebycurrency_js_1 = require("./outstandingbalancebycurrency.js");
36
36
  /** @internal */
37
- exports.OutstandingBalance$inboundSchema = z.object({
37
+ exports.OutstandingBalanceByCustomer$inboundSchema = z.object({
38
38
  customer_id: z.string().optional(),
39
39
  customer_name: z.string().optional(),
40
40
  outstanding_balances_by_currency: z.array(outstandingbalancebycurrency_js_1.OutstandingBalanceByCurrency$inboundSchema).optional(),
@@ -46,7 +46,7 @@ exports.OutstandingBalance$inboundSchema = z.object({
46
46
  });
47
47
  });
48
48
  /** @internal */
49
- exports.OutstandingBalance$outboundSchema = z.object({
49
+ exports.OutstandingBalanceByCustomer$outboundSchema = z.object({
50
50
  customerId: z.string().optional(),
51
51
  customerName: z.string().optional(),
52
52
  outstandingBalancesByCurrency: z.array(outstandingbalancebycurrency_js_1.OutstandingBalanceByCurrency$outboundSchema).optional(),
@@ -61,17 +61,17 @@ exports.OutstandingBalance$outboundSchema = z.object({
61
61
  * @internal
62
62
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
63
  */
64
- var OutstandingBalance$;
65
- (function (OutstandingBalance$) {
66
- /** @deprecated use `OutstandingBalance$inboundSchema` instead. */
67
- OutstandingBalance$.inboundSchema = exports.OutstandingBalance$inboundSchema;
68
- /** @deprecated use `OutstandingBalance$outboundSchema` instead. */
69
- OutstandingBalance$.outboundSchema = exports.OutstandingBalance$outboundSchema;
70
- })(OutstandingBalance$ || (exports.OutstandingBalance$ = OutstandingBalance$ = {}));
71
- function outstandingBalanceToJSON(outstandingBalance) {
72
- return JSON.stringify(exports.OutstandingBalance$outboundSchema.parse(outstandingBalance));
64
+ var OutstandingBalanceByCustomer$;
65
+ (function (OutstandingBalanceByCustomer$) {
66
+ /** @deprecated use `OutstandingBalanceByCustomer$inboundSchema` instead. */
67
+ OutstandingBalanceByCustomer$.inboundSchema = exports.OutstandingBalanceByCustomer$inboundSchema;
68
+ /** @deprecated use `OutstandingBalanceByCustomer$outboundSchema` instead. */
69
+ OutstandingBalanceByCustomer$.outboundSchema = exports.OutstandingBalanceByCustomer$outboundSchema;
70
+ })(OutstandingBalanceByCustomer$ || (exports.OutstandingBalanceByCustomer$ = OutstandingBalanceByCustomer$ = {}));
71
+ function outstandingBalanceByCustomerToJSON(outstandingBalanceByCustomer) {
72
+ return JSON.stringify(exports.OutstandingBalanceByCustomer$outboundSchema.parse(outstandingBalanceByCustomer));
73
73
  }
74
- function outstandingBalanceFromJSON(jsonString) {
75
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutstandingBalance$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutstandingBalance' from JSON`);
74
+ function outstandingBalanceByCustomerFromJSON(jsonString) {
75
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutstandingBalanceByCustomer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutstandingBalanceByCustomer' from JSON`);
76
76
  }
77
- //# sourceMappingURL=outstandingbalance.js.map
77
+ //# sourceMappingURL=outstandingbalancebycustomer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outstandingbalancebycustomer.js","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebycustomer.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFH,gFAQC;AAED,oFAQC;AAxGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uFAK2C;AAgB3C,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAA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7B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,40 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { OutstandingBalanceByCurrency, OutstandingBalanceByCurrency$Outbound } from "./outstandingbalancebycurrency.js";
5
+ export type OutstandingBalanceBySupplier = {
6
+ /**
7
+ * Unique identifier for the supplier.
8
+ */
9
+ supplierId?: string | undefined;
10
+ /**
11
+ * Full name of the supplier.
12
+ */
13
+ supplierName?: string | undefined;
14
+ outstandingBalancesByCurrency?: Array<OutstandingBalanceByCurrency> | undefined;
15
+ };
16
+ /** @internal */
17
+ export declare const OutstandingBalanceBySupplier$inboundSchema: z.ZodType<OutstandingBalanceBySupplier, z.ZodTypeDef, unknown>;
18
+ /** @internal */
19
+ export type OutstandingBalanceBySupplier$Outbound = {
20
+ supplier_id?: string | undefined;
21
+ supplier_name?: string | undefined;
22
+ outstanding_balances_by_currency?: Array<OutstandingBalanceByCurrency$Outbound> | undefined;
23
+ };
24
+ /** @internal */
25
+ export declare const OutstandingBalanceBySupplier$outboundSchema: z.ZodType<OutstandingBalanceBySupplier$Outbound, z.ZodTypeDef, OutstandingBalanceBySupplier>;
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export declare namespace OutstandingBalanceBySupplier$ {
31
+ /** @deprecated use `OutstandingBalanceBySupplier$inboundSchema` instead. */
32
+ const inboundSchema: z.ZodType<OutstandingBalanceBySupplier, z.ZodTypeDef, unknown>;
33
+ /** @deprecated use `OutstandingBalanceBySupplier$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodType<OutstandingBalanceBySupplier$Outbound, z.ZodTypeDef, OutstandingBalanceBySupplier>;
35
+ /** @deprecated use `OutstandingBalanceBySupplier$Outbound` instead. */
36
+ type Outbound = OutstandingBalanceBySupplier$Outbound;
37
+ }
38
+ export declare function outstandingBalanceBySupplierToJSON(outstandingBalanceBySupplier: OutstandingBalanceBySupplier): string;
39
+ export declare function outstandingBalanceBySupplierFromJSON(jsonString: string): SafeParseResult<OutstandingBalanceBySupplier, SDKValidationError>;
40
+ //# sourceMappingURL=outstandingbalancebysupplier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outstandingbalancebysupplier.d.ts","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebysupplier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,6BAA6B,CAAC,EAC1B,KAAK,CAAC,4BAA4B,CAAC,GACnC,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,gCAAgC,CAAC,EAC7B,KAAK,CAAC,qCAAqC,CAAC,GAC5C,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAa5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.OutstandingBalanceBySupplier$ = exports.OutstandingBalanceBySupplier$outboundSchema = exports.OutstandingBalanceBySupplier$inboundSchema = void 0;
30
+ exports.outstandingBalanceBySupplierToJSON = outstandingBalanceBySupplierToJSON;
31
+ exports.outstandingBalanceBySupplierFromJSON = outstandingBalanceBySupplierFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const primitives_js_1 = require("../../lib/primitives.js");
34
+ const schemas_js_1 = require("../../lib/schemas.js");
35
+ const outstandingbalancebycurrency_js_1 = require("./outstandingbalancebycurrency.js");
36
+ /** @internal */
37
+ exports.OutstandingBalanceBySupplier$inboundSchema = z.object({
38
+ supplier_id: z.string().optional(),
39
+ supplier_name: z.string().optional(),
40
+ outstanding_balances_by_currency: z.array(outstandingbalancebycurrency_js_1.OutstandingBalanceByCurrency$inboundSchema).optional(),
41
+ }).transform((v) => {
42
+ return (0, primitives_js_1.remap)(v, {
43
+ "supplier_id": "supplierId",
44
+ "supplier_name": "supplierName",
45
+ "outstanding_balances_by_currency": "outstandingBalancesByCurrency",
46
+ });
47
+ });
48
+ /** @internal */
49
+ exports.OutstandingBalanceBySupplier$outboundSchema = z.object({
50
+ supplierId: z.string().optional(),
51
+ supplierName: z.string().optional(),
52
+ outstandingBalancesByCurrency: z.array(outstandingbalancebycurrency_js_1.OutstandingBalanceByCurrency$outboundSchema).optional(),
53
+ }).transform((v) => {
54
+ return (0, primitives_js_1.remap)(v, {
55
+ supplierId: "supplier_id",
56
+ supplierName: "supplier_name",
57
+ outstandingBalancesByCurrency: "outstanding_balances_by_currency",
58
+ });
59
+ });
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ var OutstandingBalanceBySupplier$;
65
+ (function (OutstandingBalanceBySupplier$) {
66
+ /** @deprecated use `OutstandingBalanceBySupplier$inboundSchema` instead. */
67
+ OutstandingBalanceBySupplier$.inboundSchema = exports.OutstandingBalanceBySupplier$inboundSchema;
68
+ /** @deprecated use `OutstandingBalanceBySupplier$outboundSchema` instead. */
69
+ OutstandingBalanceBySupplier$.outboundSchema = exports.OutstandingBalanceBySupplier$outboundSchema;
70
+ })(OutstandingBalanceBySupplier$ || (exports.OutstandingBalanceBySupplier$ = OutstandingBalanceBySupplier$ = {}));
71
+ function outstandingBalanceBySupplierToJSON(outstandingBalanceBySupplier) {
72
+ return JSON.stringify(exports.OutstandingBalanceBySupplier$outboundSchema.parse(outstandingBalanceBySupplier));
73
+ }
74
+ function outstandingBalanceBySupplierFromJSON(jsonString) {
75
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OutstandingBalanceBySupplier$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutstandingBalanceBySupplier' from JSON`);
76
+ }
77
+ //# sourceMappingURL=outstandingbalancebysupplier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outstandingbalancebysupplier.js","sourceRoot":"","sources":["../../src/models/components/outstandingbalancebysupplier.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFH,gFAQC;AAED,oFAQC;AAxGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uFAK2C;AAgB3C,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,gCAAgC,EAAE,CAAC,CAAC,KAAK,CACvC,4EAA0C,CAC3C,CAAC,QAAQ,EAAE;CACb,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC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/unify",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
64
64
  export const SDK_METADATA = {
65
65
  language: "typescript",
66
66
  openapiDocVersion: "10.9.0",
67
- sdkVersion: "0.13.1",
67
+ sdkVersion: "0.13.2",
68
68
  genVersion: "2.484.0",
69
- userAgent: "speakeasy-sdk/typescript 0.13.1 2.484.0 10.9.0 @apideck/unify",
69
+ userAgent: "speakeasy-sdk/typescript 0.13.2 2.484.0 10.9.0 @apideck/unify",
70
70
  } as const;
@@ -9,11 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { RFCDate } from "../../types/rfcdate.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  import {
12
- OutstandingBalance,
13
- OutstandingBalance$inboundSchema,
14
- OutstandingBalance$Outbound,
15
- OutstandingBalance$outboundSchema,
16
- } from "./outstandingbalance.js";
12
+ OutstandingBalanceBySupplier,
13
+ OutstandingBalanceBySupplier$inboundSchema,
14
+ OutstandingBalanceBySupplier$Outbound,
15
+ OutstandingBalanceBySupplier$outboundSchema,
16
+ } from "./outstandingbalancebysupplier.js";
17
17
 
18
18
  export type AgedCreditors = {
19
19
  /**
@@ -32,7 +32,7 @@ export type AgedCreditors = {
32
32
  * Length of each aging period in days.
33
33
  */
34
34
  periodLength?: number | undefined;
35
- outstandingBalances?: Array<OutstandingBalance> | undefined;
35
+ outstandingBalances?: Array<OutstandingBalanceBySupplier> | undefined;
36
36
  };
37
37
 
38
38
  /** @internal */
@@ -47,7 +47,8 @@ export const AgedCreditors$inboundSchema: z.ZodType<
47
47
  report_as_of_date: z.string().transform(v => new RFCDate(v)).optional(),
48
48
  period_count: z.number().int().default(4),
49
49
  period_length: z.number().int().default(30),
50
- outstanding_balances: z.array(OutstandingBalance$inboundSchema).optional(),
50
+ outstanding_balances: z.array(OutstandingBalanceBySupplier$inboundSchema)
51
+ .optional(),
51
52
  }).transform((v) => {
52
53
  return remap$(v, {
53
54
  "report_generated_at": "reportGeneratedAt",
@@ -64,7 +65,9 @@ export type AgedCreditors$Outbound = {
64
65
  report_as_of_date?: string | undefined;
65
66
  period_count: number;
66
67
  period_length: number;
67
- outstanding_balances?: Array<OutstandingBalance$Outbound> | undefined;
68
+ outstanding_balances?:
69
+ | Array<OutstandingBalanceBySupplier$Outbound>
70
+ | undefined;
68
71
  };
69
72
 
70
73
  /** @internal */
@@ -77,7 +80,8 @@ export const AgedCreditors$outboundSchema: z.ZodType<
77
80
  reportAsOfDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
78
81
  periodCount: z.number().int().default(4),
79
82
  periodLength: z.number().int().default(30),
80
- outstandingBalances: z.array(OutstandingBalance$outboundSchema).optional(),
83
+ outstandingBalances: z.array(OutstandingBalanceBySupplier$outboundSchema)
84
+ .optional(),
81
85
  }).transform((v) => {
82
86
  return remap$(v, {
83
87
  reportGeneratedAt: "report_generated_at",
@@ -9,11 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { RFCDate } from "../../types/rfcdate.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  import {
12
- OutstandingBalance,
13
- OutstandingBalance$inboundSchema,
14
- OutstandingBalance$Outbound,
15
- OutstandingBalance$outboundSchema,
16
- } from "./outstandingbalance.js";
12
+ OutstandingBalanceByCustomer,
13
+ OutstandingBalanceByCustomer$inboundSchema,
14
+ OutstandingBalanceByCustomer$Outbound,
15
+ OutstandingBalanceByCustomer$outboundSchema,
16
+ } from "./outstandingbalancebycustomer.js";
17
17
 
18
18
  export type AgedDebtors = {
19
19
  /**
@@ -32,7 +32,7 @@ export type AgedDebtors = {
32
32
  * Length of each aging period in days.
33
33
  */
34
34
  periodLength?: number | undefined;
35
- outstandingBalances?: Array<OutstandingBalance> | undefined;
35
+ outstandingBalances?: Array<OutstandingBalanceByCustomer> | undefined;
36
36
  };
37
37
 
38
38
  /** @internal */
@@ -47,7 +47,8 @@ export const AgedDebtors$inboundSchema: z.ZodType<
47
47
  report_as_of_date: z.string().transform(v => new RFCDate(v)).optional(),
48
48
  period_count: z.number().int().default(4),
49
49
  period_length: z.number().int().default(30),
50
- outstanding_balances: z.array(OutstandingBalance$inboundSchema).optional(),
50
+ outstanding_balances: z.array(OutstandingBalanceByCustomer$inboundSchema)
51
+ .optional(),
51
52
  }).transform((v) => {
52
53
  return remap$(v, {
53
54
  "report_generated_at": "reportGeneratedAt",
@@ -64,7 +65,9 @@ export type AgedDebtors$Outbound = {
64
65
  report_as_of_date?: string | undefined;
65
66
  period_count: number;
66
67
  period_length: number;
67
- outstanding_balances?: Array<OutstandingBalance$Outbound> | undefined;
68
+ outstanding_balances?:
69
+ | Array<OutstandingBalanceByCustomer$Outbound>
70
+ | undefined;
68
71
  };
69
72
 
70
73
  /** @internal */
@@ -77,7 +80,8 @@ export const AgedDebtors$outboundSchema: z.ZodType<
77
80
  reportAsOfDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
78
81
  periodCount: z.number().int().default(4),
79
82
  periodLength: z.number().int().default(30),
80
- outstandingBalances: z.array(OutstandingBalance$outboundSchema).optional(),
83
+ outstandingBalances: z.array(OutstandingBalanceByCustomer$outboundSchema)
84
+ .optional(),
81
85
  }).transform((v) => {
82
86
  return remap$(v, {
83
87
  reportGeneratedAt: "report_generated_at",
@@ -13,6 +13,10 @@ export type AgedReportFilter = {
13
13
  * Filter by customer id
14
14
  */
15
15
  customerId?: string | undefined;
16
+ /**
17
+ * Filter by supplier id
18
+ */
19
+ supplierId?: string | undefined;
16
20
  /**
17
21
  * The cutoff date for considering transactions
18
22
  */
@@ -34,12 +38,14 @@ export const AgedReportFilter$inboundSchema: z.ZodType<
34
38
  unknown
35
39
  > = z.object({
36
40
  customer_id: z.string().optional(),
41
+ supplier_id: z.string().optional(),
37
42
  report_as_of_date: z.string().optional(),
38
43
  period_count: z.number().int().optional(),
39
44
  period_length: z.number().int().optional(),
40
45
  }).transform((v) => {
41
46
  return remap$(v, {
42
47
  "customer_id": "customerId",
48
+ "supplier_id": "supplierId",
43
49
  "report_as_of_date": "reportAsOfDate",
44
50
  "period_count": "periodCount",
45
51
  "period_length": "periodLength",
@@ -49,6 +55,7 @@ export const AgedReportFilter$inboundSchema: z.ZodType<
49
55
  /** @internal */
50
56
  export type AgedReportFilter$Outbound = {
51
57
  customer_id?: string | undefined;
58
+ supplier_id?: string | undefined;
52
59
  report_as_of_date?: string | undefined;
53
60
  period_count?: number | undefined;
54
61
  period_length?: number | undefined;
@@ -61,12 +68,14 @@ export const AgedReportFilter$outboundSchema: z.ZodType<
61
68
  AgedReportFilter
62
69
  > = z.object({
63
70
  customerId: z.string().optional(),
71
+ supplierId: z.string().optional(),
64
72
  reportAsOfDate: z.string().optional(),
65
73
  periodCount: z.number().int().optional(),
66
74
  periodLength: z.number().int().optional(),
67
75
  }).transform((v) => {
68
76
  return remap$(v, {
69
77
  customerId: "customer_id",
78
+ supplierId: "supplier_id",
70
79
  reportAsOfDate: "report_as_of_date",
71
80
  periodCount: "period_count",
72
81
  periodLength: "period_length",
@@ -17,13 +17,13 @@ import {
17
17
 
18
18
  export type BalanceByPeriod = {
19
19
  /**
20
- * Start date of the period.
20
+ * The starting date of the period. If not provided, it represents the oldest period, where all transactions due before the specified `end_date` are included.
21
21
  */
22
- startDate?: RFCDate | undefined;
22
+ startDate?: RFCDate | null | undefined;
23
23
  /**
24
- * End date of the period.
24
+ * The ending date of the period. If not provided, it represents an open-ended period starting from the `start_date`, typically capturing future-dated transactions that are not yet aged.
25
25
  */
26
- endDate?: RFCDate | undefined;
26
+ endDate?: RFCDate | null | undefined;
27
27
  /**
28
28
  * Total amount of the period.
29
29
  */
@@ -37,8 +37,8 @@ export const BalanceByPeriod$inboundSchema: z.ZodType<
37
37
  z.ZodTypeDef,
38
38
  unknown
39
39
  > = z.object({
40
- start_date: z.string().transform(v => new RFCDate(v)).optional(),
41
- end_date: z.string().transform(v => new RFCDate(v)).optional(),
40
+ start_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
41
+ end_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
42
42
  total_amount: z.number().optional(),
43
43
  balances_by_transaction: z.array(BalanceByTransaction$inboundSchema)
44
44
  .optional(),
@@ -53,8 +53,8 @@ export const BalanceByPeriod$inboundSchema: z.ZodType<
53
53
 
54
54
  /** @internal */
55
55
  export type BalanceByPeriod$Outbound = {
56
- start_date?: string | undefined;
57
- end_date?: string | undefined;
56
+ start_date?: string | null | undefined;
57
+ end_date?: string | null | undefined;
58
58
  total_amount?: number | undefined;
59
59
  balances_by_transaction?: Array<BalanceByTransaction$Outbound> | undefined;
60
60
  };
@@ -65,8 +65,10 @@ export const BalanceByPeriod$outboundSchema: z.ZodType<
65
65
  z.ZodTypeDef,
66
66
  BalanceByPeriod
67
67
  > = z.object({
68
- startDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
69
- endDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
68
+ startDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
69
+ .optional(),
70
+ endDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
71
+ .optional(),
70
72
  totalAmount: z.number().optional(),
71
73
  balancesByTransaction: z.array(BalanceByTransaction$outboundSchema)
72
74
  .optional(),
@@ -18,7 +18,7 @@ export const TransactionType = {
18
18
  CreditNote: "credit_note",
19
19
  Bill: "bill",
20
20
  Payment: "payment",
21
- BillPayment: "bill-payment",
21
+ BillPayment: "bill_payment",
22
22
  } as const;
23
23
  /**
24
24
  * Type of the transaction.
@@ -50,6 +50,10 @@ export type BalanceByTransaction = {
50
50
  * Outstanding balance of the transaction.
51
51
  */
52
52
  outstandingBalance?: number | undefined;
53
+ /**
54
+ * Transaction number of the transaction.
55
+ */
56
+ transactionNumber?: string | undefined;
53
57
  };
54
58
 
55
59
  /** @internal */
@@ -85,6 +89,7 @@ export const BalanceByTransaction$inboundSchema: z.ZodType<
85
89
  due_date: z.string().transform(v => new RFCDate(v)).optional(),
86
90
  original_amount: z.number().optional(),
87
91
  outstanding_balance: z.number().optional(),
92
+ transaction_number: z.string().optional(),
88
93
  }).transform((v) => {
89
94
  return remap$(v, {
90
95
  "transaction_id": "transactionId",
@@ -93,6 +98,7 @@ export const BalanceByTransaction$inboundSchema: z.ZodType<
93
98
  "due_date": "dueDate",
94
99
  "original_amount": "originalAmount",
95
100
  "outstanding_balance": "outstandingBalance",
101
+ "transaction_number": "transactionNumber",
96
102
  });
97
103
  });
98
104
 
@@ -104,6 +110,7 @@ export type BalanceByTransaction$Outbound = {
104
110
  due_date?: string | undefined;
105
111
  original_amount?: number | undefined;
106
112
  outstanding_balance?: number | undefined;
113
+ transaction_number?: string | undefined;
107
114
  };
108
115
 
109
116
  /** @internal */
@@ -119,6 +126,7 @@ export const BalanceByTransaction$outboundSchema: z.ZodType<
119
126
  dueDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
120
127
  originalAmount: z.number().optional(),
121
128
  outstandingBalance: z.number().optional(),
129
+ transactionNumber: z.string().optional(),
122
130
  }).transform((v) => {
123
131
  return remap$(v, {
124
132
  transactionId: "transaction_id",
@@ -127,6 +135,7 @@ export const BalanceByTransaction$outboundSchema: z.ZodType<
127
135
  dueDate: "due_date",
128
136
  originalAmount: "original_amount",
129
137
  outstandingBalance: "outstanding_balance",
138
+ transactionNumber: "transaction_number",
130
139
  });
131
140
  });
132
141
 
@@ -393,8 +393,9 @@ export * from "./opportunitiessort.js";
393
393
  export * from "./opportunity.js";
394
394
  export * from "./opportunityinput.js";
395
395
  export * from "./orderssort.js";
396
- export * from "./outstandingbalance.js";
397
396
  export * from "./outstandingbalancebycurrency.js";
397
+ export * from "./outstandingbalancebycustomer.js";
398
+ export * from "./outstandingbalancebysupplier.js";
398
399
  export * from "./owner.js";
399
400
  export * from "./paginationcoverage.js";
400
401
  export * from "./passthroughbody.js";