@financeable/aggregation 0.7.4 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +192 -14
  5. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  6. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +186 -19
  7. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  8. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +192 -14
  9. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  10. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +191 -20
  11. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
  12. package/models/components/currencycodeiso4217.d.ts +25 -0
  13. package/models/components/currencycodeiso4217.d.ts.map +1 -0
  14. package/models/components/currencycodeiso4217.js +59 -0
  15. package/models/components/currencycodeiso4217.js.map +1 -0
  16. package/models/components/customerassetattributes.d.ts +37 -0
  17. package/models/components/customerassetattributes.d.ts.map +1 -0
  18. package/models/components/customerassetattributes.js +77 -0
  19. package/models/components/customerassetattributes.js.map +1 -0
  20. package/models/components/customerassettype.d.ts +46 -0
  21. package/models/components/customerassettype.d.ts.map +1 -0
  22. package/models/components/customerassettype.js +66 -0
  23. package/models/components/customerassettype.js.map +1 -0
  24. package/models/components/customerliabilityattributes.d.ts +46 -0
  25. package/models/components/customerliabilityattributes.d.ts.map +1 -0
  26. package/models/components/customerliabilityattributes.js +88 -0
  27. package/models/components/customerliabilityattributes.js.map +1 -0
  28. package/models/components/customerliabilityrepaymentfrequency.d.ts +31 -0
  29. package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -0
  30. package/models/components/customerliabilityrepaymentfrequency.js +61 -0
  31. package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
  32. package/models/components/customerliabilitytype.d.ts +40 -0
  33. package/models/components/customerliabilitytype.d.ts.map +1 -0
  34. package/models/components/customerliabilitytype.js +64 -0
  35. package/models/components/customerliabilitytype.js.map +1 -0
  36. package/models/components/index.d.ts +8 -0
  37. package/models/components/index.d.ts.map +1 -1
  38. package/models/components/index.js +8 -0
  39. package/models/components/index.js.map +1 -1
  40. package/models/components/loandetailsattributes.d.ts +252 -30
  41. package/models/components/loandetailsattributes.d.ts.map +1 -1
  42. package/models/components/loandetailsattributes.js +266 -19
  43. package/models/components/loandetailsattributes.js.map +1 -1
  44. package/models/components/monetaryquantity.d.ts +63 -0
  45. package/models/components/monetaryquantity.d.ts.map +1 -0
  46. package/models/components/monetaryquantity.js +93 -0
  47. package/models/components/monetaryquantity.js.map +1 -0
  48. package/models/components/percentagequantity.d.ts +57 -0
  49. package/models/components/percentagequantity.d.ts.map +1 -0
  50. package/models/components/percentagequantity.js +89 -0
  51. package/models/components/percentagequantity.js.map +1 -0
  52. package/models/operations/createapplication.d.ts +102 -4
  53. package/models/operations/createapplication.d.ts.map +1 -1
  54. package/models/operations/createapplication.js +107 -1
  55. package/models/operations/createapplication.js.map +1 -1
  56. package/package.json +2 -2
  57. package/src/lib/config.ts +3 -3
  58. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +426 -25
  59. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +480 -26
  60. package/src/models/components/currencycodeiso4217.ts +32 -0
  61. package/src/models/components/customerassetattributes.ts +89 -0
  62. package/src/models/components/customerassettype.ts +39 -0
  63. package/src/models/components/customerliabilityattributes.ts +114 -0
  64. package/src/models/components/customerliabilityrepaymentfrequency.ts +38 -0
  65. package/src/models/components/customerliabilitytype.ts +37 -0
  66. package/src/models/components/index.ts +8 -0
  67. package/src/models/components/loandetailsattributes.ts +537 -48
  68. package/src/models/components/monetaryquantity.ts +110 -0
  69. package/src/models/components/percentagequantity.ts +102 -0
  70. package/src/models/operations/createapplication.ts +191 -3
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ CustomerAssetType,
11
+ CustomerAssetType$inboundSchema,
12
+ CustomerAssetType$outboundSchema,
13
+ } from "./customerassettype.js";
14
+ import {
15
+ MonetaryQuantity,
16
+ MonetaryQuantity$inboundSchema,
17
+ MonetaryQuantity$Outbound,
18
+ MonetaryQuantity$outboundSchema,
19
+ } from "./monetaryquantity.js";
20
+
21
+ export type CustomerAssetAttributes = {
22
+ id?: string | undefined;
23
+ assetType: CustomerAssetType;
24
+ value?: MonetaryQuantity | undefined;
25
+ description?: string | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const CustomerAssetAttributes$inboundSchema: z.ZodType<
30
+ CustomerAssetAttributes,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ id: z.string().optional(),
35
+ assetType: CustomerAssetType$inboundSchema,
36
+ value: MonetaryQuantity$inboundSchema.optional(),
37
+ description: z.string().optional(),
38
+ });
39
+
40
+ /** @internal */
41
+ export type CustomerAssetAttributes$Outbound = {
42
+ id?: string | undefined;
43
+ assetType: string;
44
+ value?: MonetaryQuantity$Outbound | undefined;
45
+ description?: string | undefined;
46
+ };
47
+
48
+ /** @internal */
49
+ export const CustomerAssetAttributes$outboundSchema: z.ZodType<
50
+ CustomerAssetAttributes$Outbound,
51
+ z.ZodTypeDef,
52
+ CustomerAssetAttributes
53
+ > = z.object({
54
+ id: z.string().optional(),
55
+ assetType: CustomerAssetType$outboundSchema,
56
+ value: MonetaryQuantity$outboundSchema.optional(),
57
+ description: z.string().optional(),
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
+ export namespace CustomerAssetAttributes$ {
65
+ /** @deprecated use `CustomerAssetAttributes$inboundSchema` instead. */
66
+ export const inboundSchema = CustomerAssetAttributes$inboundSchema;
67
+ /** @deprecated use `CustomerAssetAttributes$outboundSchema` instead. */
68
+ export const outboundSchema = CustomerAssetAttributes$outboundSchema;
69
+ /** @deprecated use `CustomerAssetAttributes$Outbound` instead. */
70
+ export type Outbound = CustomerAssetAttributes$Outbound;
71
+ }
72
+
73
+ export function customerAssetAttributesToJSON(
74
+ customerAssetAttributes: CustomerAssetAttributes,
75
+ ): string {
76
+ return JSON.stringify(
77
+ CustomerAssetAttributes$outboundSchema.parse(customerAssetAttributes),
78
+ );
79
+ }
80
+
81
+ export function customerAssetAttributesFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<CustomerAssetAttributes, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => CustomerAssetAttributes$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'CustomerAssetAttributes' from JSON`,
88
+ );
89
+ }
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const CustomerAssetType = {
9
+ PrimaryOccupiedResidentialProperty: "PRIMARY_OCCUPIED_RESIDENTIAL_PROPERTY",
10
+ InvestmentProperty: "INVESTMENT_PROPERTY",
11
+ CommercialProperty: "COMMERCIAL_PROPERTY",
12
+ MotorVehicle: "MOTOR_VEHICLE",
13
+ CashSavings: "CASH_SAVINGS",
14
+ InvestmentShares: "INVESTMENT_SHARES",
15
+ Superannuation: "SUPERANNUATION",
16
+ Other: "OTHER",
17
+ } as const;
18
+ export type CustomerAssetType = ClosedEnum<typeof CustomerAssetType>;
19
+
20
+ /** @internal */
21
+ export const CustomerAssetType$inboundSchema: z.ZodNativeEnum<
22
+ typeof CustomerAssetType
23
+ > = z.nativeEnum(CustomerAssetType);
24
+
25
+ /** @internal */
26
+ export const CustomerAssetType$outboundSchema: z.ZodNativeEnum<
27
+ typeof CustomerAssetType
28
+ > = CustomerAssetType$inboundSchema;
29
+
30
+ /**
31
+ * @internal
32
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
33
+ */
34
+ export namespace CustomerAssetType$ {
35
+ /** @deprecated use `CustomerAssetType$inboundSchema` instead. */
36
+ export const inboundSchema = CustomerAssetType$inboundSchema;
37
+ /** @deprecated use `CustomerAssetType$outboundSchema` instead. */
38
+ export const outboundSchema = CustomerAssetType$outboundSchema;
39
+ }
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ CustomerLiabilityRepaymentFrequency,
11
+ CustomerLiabilityRepaymentFrequency$inboundSchema,
12
+ CustomerLiabilityRepaymentFrequency$outboundSchema,
13
+ } from "./customerliabilityrepaymentfrequency.js";
14
+ import {
15
+ CustomerLiabilityType,
16
+ CustomerLiabilityType$inboundSchema,
17
+ CustomerLiabilityType$outboundSchema,
18
+ } from "./customerliabilitytype.js";
19
+ import {
20
+ MonetaryQuantity,
21
+ MonetaryQuantity$inboundSchema,
22
+ MonetaryQuantity$Outbound,
23
+ MonetaryQuantity$outboundSchema,
24
+ } from "./monetaryquantity.js";
25
+
26
+ export type CustomerLiabilityAttributes = {
27
+ id?: string | undefined;
28
+ liabilityType: CustomerLiabilityType;
29
+ outstandingAmount?: MonetaryQuantity | undefined;
30
+ limit?: MonetaryQuantity | undefined;
31
+ financier?: string | undefined;
32
+ repaymentFrequency?: CustomerLiabilityRepaymentFrequency | undefined;
33
+ repaymentAmount?: MonetaryQuantity | undefined;
34
+ description?: string | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const CustomerLiabilityAttributes$inboundSchema: z.ZodType<
39
+ CustomerLiabilityAttributes,
40
+ z.ZodTypeDef,
41
+ unknown
42
+ > = z.object({
43
+ id: z.string().optional(),
44
+ liabilityType: CustomerLiabilityType$inboundSchema,
45
+ outstandingAmount: MonetaryQuantity$inboundSchema.optional(),
46
+ limit: MonetaryQuantity$inboundSchema.optional(),
47
+ financier: z.string().optional(),
48
+ repaymentFrequency: CustomerLiabilityRepaymentFrequency$inboundSchema
49
+ .optional(),
50
+ repaymentAmount: MonetaryQuantity$inboundSchema.optional(),
51
+ description: z.string().optional(),
52
+ });
53
+
54
+ /** @internal */
55
+ export type CustomerLiabilityAttributes$Outbound = {
56
+ id?: string | undefined;
57
+ liabilityType: string;
58
+ outstandingAmount?: MonetaryQuantity$Outbound | undefined;
59
+ limit?: MonetaryQuantity$Outbound | undefined;
60
+ financier?: string | undefined;
61
+ repaymentFrequency?: string | undefined;
62
+ repaymentAmount?: MonetaryQuantity$Outbound | undefined;
63
+ description?: string | undefined;
64
+ };
65
+
66
+ /** @internal */
67
+ export const CustomerLiabilityAttributes$outboundSchema: z.ZodType<
68
+ CustomerLiabilityAttributes$Outbound,
69
+ z.ZodTypeDef,
70
+ CustomerLiabilityAttributes
71
+ > = z.object({
72
+ id: z.string().optional(),
73
+ liabilityType: CustomerLiabilityType$outboundSchema,
74
+ outstandingAmount: MonetaryQuantity$outboundSchema.optional(),
75
+ limit: MonetaryQuantity$outboundSchema.optional(),
76
+ financier: z.string().optional(),
77
+ repaymentFrequency: CustomerLiabilityRepaymentFrequency$outboundSchema
78
+ .optional(),
79
+ repaymentAmount: MonetaryQuantity$outboundSchema.optional(),
80
+ description: z.string().optional(),
81
+ });
82
+
83
+ /**
84
+ * @internal
85
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
+ */
87
+ export namespace CustomerLiabilityAttributes$ {
88
+ /** @deprecated use `CustomerLiabilityAttributes$inboundSchema` instead. */
89
+ export const inboundSchema = CustomerLiabilityAttributes$inboundSchema;
90
+ /** @deprecated use `CustomerLiabilityAttributes$outboundSchema` instead. */
91
+ export const outboundSchema = CustomerLiabilityAttributes$outboundSchema;
92
+ /** @deprecated use `CustomerLiabilityAttributes$Outbound` instead. */
93
+ export type Outbound = CustomerLiabilityAttributes$Outbound;
94
+ }
95
+
96
+ export function customerLiabilityAttributesToJSON(
97
+ customerLiabilityAttributes: CustomerLiabilityAttributes,
98
+ ): string {
99
+ return JSON.stringify(
100
+ CustomerLiabilityAttributes$outboundSchema.parse(
101
+ customerLiabilityAttributes,
102
+ ),
103
+ );
104
+ }
105
+
106
+ export function customerLiabilityAttributesFromJSON(
107
+ jsonString: string,
108
+ ): SafeParseResult<CustomerLiabilityAttributes, SDKValidationError> {
109
+ return safeParse(
110
+ jsonString,
111
+ (x) => CustomerLiabilityAttributes$inboundSchema.parse(JSON.parse(x)),
112
+ `Failed to parse 'CustomerLiabilityAttributes' from JSON`,
113
+ );
114
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const CustomerLiabilityRepaymentFrequency = {
9
+ Monthly: "MONTHLY",
10
+ Weekly: "WEEKLY",
11
+ Fortnightly: "FORTNIGHTLY",
12
+ } as const;
13
+ export type CustomerLiabilityRepaymentFrequency = ClosedEnum<
14
+ typeof CustomerLiabilityRepaymentFrequency
15
+ >;
16
+
17
+ /** @internal */
18
+ export const CustomerLiabilityRepaymentFrequency$inboundSchema: z.ZodNativeEnum<
19
+ typeof CustomerLiabilityRepaymentFrequency
20
+ > = z.nativeEnum(CustomerLiabilityRepaymentFrequency);
21
+
22
+ /** @internal */
23
+ export const CustomerLiabilityRepaymentFrequency$outboundSchema:
24
+ z.ZodNativeEnum<typeof CustomerLiabilityRepaymentFrequency> =
25
+ CustomerLiabilityRepaymentFrequency$inboundSchema;
26
+
27
+ /**
28
+ * @internal
29
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
+ */
31
+ export namespace CustomerLiabilityRepaymentFrequency$ {
32
+ /** @deprecated use `CustomerLiabilityRepaymentFrequency$inboundSchema` instead. */
33
+ export const inboundSchema =
34
+ CustomerLiabilityRepaymentFrequency$inboundSchema;
35
+ /** @deprecated use `CustomerLiabilityRepaymentFrequency$outboundSchema` instead. */
36
+ export const outboundSchema =
37
+ CustomerLiabilityRepaymentFrequency$outboundSchema;
38
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const CustomerLiabilityType = {
9
+ Mortgage: "MORTGAGE",
10
+ MotorVehicle: "MOTOR_VEHICLE",
11
+ CreditCard: "CREDIT_CARD",
12
+ PersonalLoan: "PERSONAL_LOAN",
13
+ PayLater: "PAY_LATER",
14
+ Other: "OTHER",
15
+ } as const;
16
+ export type CustomerLiabilityType = ClosedEnum<typeof CustomerLiabilityType>;
17
+
18
+ /** @internal */
19
+ export const CustomerLiabilityType$inboundSchema: z.ZodNativeEnum<
20
+ typeof CustomerLiabilityType
21
+ > = z.nativeEnum(CustomerLiabilityType);
22
+
23
+ /** @internal */
24
+ export const CustomerLiabilityType$outboundSchema: z.ZodNativeEnum<
25
+ typeof CustomerLiabilityType
26
+ > = CustomerLiabilityType$inboundSchema;
27
+
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export namespace CustomerLiabilityType$ {
33
+ /** @deprecated use `CustomerLiabilityType$inboundSchema` instead. */
34
+ export const inboundSchema = CustomerLiabilityType$inboundSchema;
35
+ /** @deprecated use `CustomerLiabilityType$outboundSchema` instead. */
36
+ export const outboundSchema = CustomerLiabilityType$outboundSchema;
37
+ }
@@ -21,8 +21,14 @@ export * from "./consumersecuredloanassetattributes.js";
21
21
  export * from "./consumersecuredloanassettype.js";
22
22
  export * from "./consumersecuredloanconsumerapplicationrelationships.js";
23
23
  export * from "./createsupportingdocumentsresponse.js";
24
+ export * from "./currencycodeiso4217.js";
25
+ export * from "./customerassetattributes.js";
26
+ export * from "./customerassettype.js";
24
27
  export * from "./customerattributes.js";
25
28
  export * from "./customeridtype.js";
29
+ export * from "./customerliabilityattributes.js";
30
+ export * from "./customerliabilityrepaymentfrequency.js";
31
+ export * from "./customerliabilitytype.js";
26
32
  export * from "./customertitle.js";
27
33
  export * from "./documenttype.js";
28
34
  export * from "./entityattributes.js";
@@ -33,6 +39,8 @@ export * from "./linkobject.js";
33
39
  export * from "./livingarrangements.js";
34
40
  export * from "./loandetailsattributes.js";
35
41
  export * from "./maritalstatus.js";
42
+ export * from "./monetaryquantity.js";
43
+ export * from "./percentagequantity.js";
36
44
  export * from "./relationshipresourcenotfound.js";
37
45
  export * from "./repaymentstructure.js";
38
46
  export * from "./residencystatus.js";