@financeable/aggregation 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/examples/applicationsCreate.example.ts +1 -1
- package/examples/package-lock.json +3 -3
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/models/components/addressattributes.d.ts +18 -18
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/badrequesterror.d.ts +15 -15
- package/models/components/badrequesterror.d.ts.map +1 -1
- package/models/components/badrequesterror.js.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.d.ts +84 -84
- package/models/components/commercialapplicationjsonapirelationships.d.ts.map +1 -1
- package/models/components/commercialapplicationjsonapirelationships.js +47 -47
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.d.ts +27 -27
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
- package/models/components/commercialsecuredapplicationresource.d.ts +36 -36
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationresource.js.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.d.ts +58 -58
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.js +16 -16
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +150 -150
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +92 -92
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumerapplicationjsonapirelationships.d.ts +62 -62
- package/models/components/consumerapplicationjsonapirelationships.d.ts.map +1 -1
- package/models/components/consumerapplicationjsonapirelationships.js +32 -32
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -1
- package/models/components/consumersecuredapplicationpayload.d.ts +27 -27
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/consumersecuredapplicationpayload.js.map +1 -1
- package/models/components/consumersecuredapplicationresource.d.ts +36 -36
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -1
- package/models/components/consumersecuredapplicationresource.js.map +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts +58 -58
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +16 -16
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +172 -172
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +107 -107
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/createsupportingdocumentsresponse.d.ts +16 -16
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
- package/models/components/createsupportingdocumentsresponse.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +15 -15
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +27 -3
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +26 -3
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/monetaryquantity.d.ts +11 -11
- package/models/components/monetaryquantity.d.ts.map +1 -1
- package/models/components/monetaryquantity.js.map +1 -1
- package/models/components/percentagequantity.d.ts +7 -7
- package/models/components/percentagequantity.d.ts.map +1 -1
- package/models/components/percentagequantity.js.map +1 -1
- package/models/components/relationshipresourcenotfound.d.ts +12 -12
- package/models/components/relationshipresourcenotfound.d.ts.map +1 -1
- package/models/components/relationshipresourcenotfound.js.map +1 -1
- package/models/components/resourcenotfound.d.ts +15 -15
- package/models/components/resourcenotfound.d.ts.map +1 -1
- package/models/components/resourcenotfound.js.map +1 -1
- package/models/components/supportingdocumentrelationships.d.ts +106 -106
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
- package/models/components/supportingdocumentrelationships.js +63 -63
- package/models/components/supportingdocumentrelationships.js.map +1 -1
- package/models/components/supportingdocumentresource.d.ts +11 -11
- package/models/components/supportingdocumentresource.d.ts.map +1 -1
- package/models/components/supportingdocumentresource.js.map +1 -1
- package/models/components/tokenrequest.d.ts +18 -18
- package/models/components/tokenrequest.d.ts.map +1 -1
- package/models/components/tokenrequest.js.map +1 -1
- package/models/operations/createapplication.d.ts +154 -154
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +109 -109
- package/models/operations/createapplication.js.map +1 -1
- package/package.json +3 -3
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/models/components/addressattributes.ts +19 -19
- package/src/models/components/badrequesterror.ts +14 -14
- package/src/models/components/commercialapplicationjsonapirelationships.ts +117 -117
- package/src/models/components/commercialsecuredapplicationpayload.ts +27 -27
- package/src/models/components/commercialsecuredapplicationresource.ts +46 -46
- package/src/models/components/commercialsecuredloanassetattributes.ts +45 -45
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +243 -243
- package/src/models/components/consumerapplicationjsonapirelationships.ts +83 -83
- package/src/models/components/consumersecuredapplicationpayload.ts +27 -27
- package/src/models/components/consumersecuredapplicationresource.ts +47 -47
- package/src/models/components/consumersecuredloanassetattributes.ts +53 -53
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +279 -279
- package/src/models/components/createsupportingdocumentsresponse.ts +16 -16
- package/src/models/components/forbiddenerror.ts +14 -14
- package/src/models/components/loandetailsattributes.ts +54 -5
- package/src/models/components/monetaryquantity.ts +12 -12
- package/src/models/components/percentagequantity.ts +8 -8
- package/src/models/components/relationshipresourcenotfound.ts +11 -11
- package/src/models/components/resourcenotfound.ts +14 -14
- package/src/models/components/supportingdocumentrelationships.ts +129 -129
- package/src/models/components/supportingdocumentresource.ts +8 -8
- package/src/models/components/tokenrequest.ts +19 -19
- package/src/models/operations/createapplication.ts +204 -204
|
@@ -46,6 +46,22 @@ export type CreateSupportingDocumentsResponseType = ClosedEnum<
|
|
|
46
46
|
typeof CreateSupportingDocumentsResponseType
|
|
47
47
|
>;
|
|
48
48
|
|
|
49
|
+
export type Links = {
|
|
50
|
+
/**
|
|
51
|
+
* Standard link object
|
|
52
|
+
*/
|
|
53
|
+
upload: LinkObject;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type CreateSupportingDocumentsResponse = {
|
|
57
|
+
type: CreateSupportingDocumentsResponseType;
|
|
58
|
+
id?: string | undefined;
|
|
59
|
+
attributes: SupportingDocumentAttributes;
|
|
60
|
+
relationships: SupportingDocumentRelationships;
|
|
61
|
+
links?: Links | undefined;
|
|
62
|
+
meta?: { [k: string]: any } | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
49
65
|
/** @internal */
|
|
50
66
|
export const CreateSupportingDocumentsResponseType$inboundSchema:
|
|
51
67
|
z.ZodNativeEnum<typeof CreateSupportingDocumentsResponseType> = z.nativeEnum(
|
|
@@ -70,22 +86,6 @@ export namespace CreateSupportingDocumentsResponseType$ {
|
|
|
70
86
|
CreateSupportingDocumentsResponseType$outboundSchema;
|
|
71
87
|
}
|
|
72
88
|
|
|
73
|
-
export type Links = {
|
|
74
|
-
/**
|
|
75
|
-
* Standard link object
|
|
76
|
-
*/
|
|
77
|
-
upload: LinkObject;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export type CreateSupportingDocumentsResponse = {
|
|
81
|
-
type: CreateSupportingDocumentsResponseType;
|
|
82
|
-
id?: string | undefined;
|
|
83
|
-
attributes: SupportingDocumentAttributes;
|
|
84
|
-
relationships: SupportingDocumentRelationships;
|
|
85
|
-
links?: Links | undefined;
|
|
86
|
-
meta?: { [k: string]: any } | undefined;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
89
|
/** @internal */
|
|
90
90
|
export const Links$inboundSchema: z.ZodType<Links, z.ZodTypeDef, unknown> = z
|
|
91
91
|
.object({
|
|
@@ -35,6 +35,20 @@ export const Title = {
|
|
|
35
35
|
} as const;
|
|
36
36
|
export type Title = ClosedEnum<typeof Title>;
|
|
37
37
|
|
|
38
|
+
export type ForbiddenError = {
|
|
39
|
+
id?: string | undefined;
|
|
40
|
+
links?: APIErrorLinks | undefined;
|
|
41
|
+
status: ForbiddenErrorStatus;
|
|
42
|
+
code: Code;
|
|
43
|
+
title: Title;
|
|
44
|
+
detail: string;
|
|
45
|
+
/**
|
|
46
|
+
* An object describing the source of the error from the request
|
|
47
|
+
*/
|
|
48
|
+
source?: ErrorSource | undefined;
|
|
49
|
+
meta?: { [k: string]: any } | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
38
52
|
/** @internal */
|
|
39
53
|
export const ForbiddenErrorStatus$inboundSchema: z.ZodNativeEnum<
|
|
40
54
|
typeof ForbiddenErrorStatus
|
|
@@ -96,20 +110,6 @@ export namespace Title$ {
|
|
|
96
110
|
export const outboundSchema = Title$outboundSchema;
|
|
97
111
|
}
|
|
98
112
|
|
|
99
|
-
export type ForbiddenError = {
|
|
100
|
-
id?: string | undefined;
|
|
101
|
-
links?: APIErrorLinks | undefined;
|
|
102
|
-
status: ForbiddenErrorStatus;
|
|
103
|
-
code: Code;
|
|
104
|
-
title: Title;
|
|
105
|
-
detail: string;
|
|
106
|
-
/**
|
|
107
|
-
* An object describing the source of the error from the request
|
|
108
|
-
*/
|
|
109
|
-
source?: ErrorSource | undefined;
|
|
110
|
-
meta?: { [k: string]: any } | undefined;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
113
|
/** @internal */
|
|
114
114
|
export const ForbiddenError$inboundSchema: z.ZodType<
|
|
115
115
|
ForbiddenError,
|
|
@@ -29,6 +29,11 @@ import {
|
|
|
29
29
|
RepaymentStructure$outboundSchema,
|
|
30
30
|
} from "./repaymentstructure.js";
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Repayment amount as either MonetaryQuantity model (preferred) or floating point dollars (string). The latter will be deprecated.
|
|
34
|
+
*/
|
|
35
|
+
export type Repayments = MonetaryQuantity | string;
|
|
36
|
+
|
|
32
37
|
/**
|
|
33
38
|
* Total loan amount, either MonetaryQuantity model (preferred) or floating point dollars as string. The latter will be deprecated.
|
|
34
39
|
*/
|
|
@@ -80,9 +85,9 @@ export type RateAdjustment = PercentageQuantity | string;
|
|
|
80
85
|
export type LoanDetailsAttributes = {
|
|
81
86
|
id?: string | undefined;
|
|
82
87
|
/**
|
|
83
|
-
*
|
|
88
|
+
* Repayment amount as either MonetaryQuantity model (preferred) or floating point dollars (string). The latter will be deprecated.
|
|
84
89
|
*/
|
|
85
|
-
repayments?:
|
|
90
|
+
repayments?: MonetaryQuantity | string | undefined;
|
|
86
91
|
/**
|
|
87
92
|
* Frequency of repayments
|
|
88
93
|
*/
|
|
@@ -149,6 +154,50 @@ export type LoanDetailsAttributes = {
|
|
|
149
154
|
rateAdjustment?: PercentageQuantity | string | undefined;
|
|
150
155
|
};
|
|
151
156
|
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const Repayments$inboundSchema: z.ZodType<
|
|
159
|
+
Repayments,
|
|
160
|
+
z.ZodTypeDef,
|
|
161
|
+
unknown
|
|
162
|
+
> = z.union([MonetaryQuantity$inboundSchema, z.string()]);
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export type Repayments$Outbound = MonetaryQuantity$Outbound | string;
|
|
166
|
+
|
|
167
|
+
/** @internal */
|
|
168
|
+
export const Repayments$outboundSchema: z.ZodType<
|
|
169
|
+
Repayments$Outbound,
|
|
170
|
+
z.ZodTypeDef,
|
|
171
|
+
Repayments
|
|
172
|
+
> = z.union([MonetaryQuantity$outboundSchema, z.string()]);
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
177
|
+
*/
|
|
178
|
+
export namespace Repayments$ {
|
|
179
|
+
/** @deprecated use `Repayments$inboundSchema` instead. */
|
|
180
|
+
export const inboundSchema = Repayments$inboundSchema;
|
|
181
|
+
/** @deprecated use `Repayments$outboundSchema` instead. */
|
|
182
|
+
export const outboundSchema = Repayments$outboundSchema;
|
|
183
|
+
/** @deprecated use `Repayments$Outbound` instead. */
|
|
184
|
+
export type Outbound = Repayments$Outbound;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function repaymentsToJSON(repayments: Repayments): string {
|
|
188
|
+
return JSON.stringify(Repayments$outboundSchema.parse(repayments));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function repaymentsFromJSON(
|
|
192
|
+
jsonString: string,
|
|
193
|
+
): SafeParseResult<Repayments, SDKValidationError> {
|
|
194
|
+
return safeParse(
|
|
195
|
+
jsonString,
|
|
196
|
+
(x) => Repayments$inboundSchema.parse(JSON.parse(x)),
|
|
197
|
+
`Failed to parse 'Repayments' from JSON`,
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
152
201
|
/** @internal */
|
|
153
202
|
export const LoanAmount$inboundSchema: z.ZodType<
|
|
154
203
|
LoanAmount,
|
|
@@ -556,7 +605,7 @@ export const LoanDetailsAttributes$inboundSchema: z.ZodType<
|
|
|
556
605
|
unknown
|
|
557
606
|
> = z.object({
|
|
558
607
|
id: z.string().optional(),
|
|
559
|
-
repayments: z.
|
|
608
|
+
repayments: z.union([MonetaryQuantity$inboundSchema, z.string()]).optional(),
|
|
560
609
|
repaymentFrequency: FrequencyType$inboundSchema.optional(),
|
|
561
610
|
repaymentStructure: RepaymentStructure$inboundSchema.optional(),
|
|
562
611
|
loanAmount: z.union([MonetaryQuantity$inboundSchema, z.string()]).optional(),
|
|
@@ -587,7 +636,7 @@ export const LoanDetailsAttributes$inboundSchema: z.ZodType<
|
|
|
587
636
|
/** @internal */
|
|
588
637
|
export type LoanDetailsAttributes$Outbound = {
|
|
589
638
|
id?: string | undefined;
|
|
590
|
-
repayments?:
|
|
639
|
+
repayments?: MonetaryQuantity$Outbound | string | undefined;
|
|
591
640
|
repaymentFrequency?: string | undefined;
|
|
592
641
|
repaymentStructure?: string | undefined;
|
|
593
642
|
loanAmount?: MonetaryQuantity$Outbound | string | undefined;
|
|
@@ -620,7 +669,7 @@ export const LoanDetailsAttributes$outboundSchema: z.ZodType<
|
|
|
620
669
|
LoanDetailsAttributes
|
|
621
670
|
> = z.object({
|
|
622
671
|
id: z.string().optional(),
|
|
623
|
-
repayments: z.
|
|
672
|
+
repayments: z.union([MonetaryQuantity$outboundSchema, z.string()]).optional(),
|
|
624
673
|
repaymentFrequency: FrequencyType$outboundSchema.optional(),
|
|
625
674
|
repaymentStructure: RepaymentStructure$outboundSchema.optional(),
|
|
626
675
|
loanAmount: z.union([MonetaryQuantity$outboundSchema, z.string()]).optional(),
|
|
@@ -18,6 +18,18 @@ export const ValueType = {
|
|
|
18
18
|
} as const;
|
|
19
19
|
export type ValueType = ClosedEnum<typeof ValueType>;
|
|
20
20
|
|
|
21
|
+
export type MonetaryQuantity = {
|
|
22
|
+
valueType: ValueType;
|
|
23
|
+
/**
|
|
24
|
+
* Monetary quantity, specified in lowest denominator of the provided currency (e.g: cents for AUD). Serialised as a string e.g. for $100 AUD, provide: 10000
|
|
25
|
+
*/
|
|
26
|
+
value: string;
|
|
27
|
+
/**
|
|
28
|
+
* ISO 4217 currency code, currently limited to AUD
|
|
29
|
+
*/
|
|
30
|
+
currencyCode: CurrencyCodeIso4217;
|
|
31
|
+
};
|
|
32
|
+
|
|
21
33
|
/** @internal */
|
|
22
34
|
export const ValueType$inboundSchema: z.ZodNativeEnum<typeof ValueType> = z
|
|
23
35
|
.nativeEnum(ValueType);
|
|
@@ -37,18 +49,6 @@ export namespace ValueType$ {
|
|
|
37
49
|
export const outboundSchema = ValueType$outboundSchema;
|
|
38
50
|
}
|
|
39
51
|
|
|
40
|
-
export type MonetaryQuantity = {
|
|
41
|
-
valueType: ValueType;
|
|
42
|
-
/**
|
|
43
|
-
* Monetary quantity, specified in lowest denominator of the provided currency (e.g: cents for AUD). Serialised as a string e.g. for $100 AUD, provide: 10000
|
|
44
|
-
*/
|
|
45
|
-
value: string;
|
|
46
|
-
/**
|
|
47
|
-
* ISO 4217 currency code, currently limited to AUD
|
|
48
|
-
*/
|
|
49
|
-
currencyCode: CurrencyCodeIso4217;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
52
|
/** @internal */
|
|
53
53
|
export const MonetaryQuantity$inboundSchema: z.ZodType<
|
|
54
54
|
MonetaryQuantity,
|
|
@@ -15,6 +15,14 @@ export type PercentageQuantityValueType = ClosedEnum<
|
|
|
15
15
|
typeof PercentageQuantityValueType
|
|
16
16
|
>;
|
|
17
17
|
|
|
18
|
+
export type PercentageQuantity = {
|
|
19
|
+
valueType: PercentageQuantityValueType;
|
|
20
|
+
/**
|
|
21
|
+
* Percentage quantity, e.g. provide '10' for 10%
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
18
26
|
/** @internal */
|
|
19
27
|
export const PercentageQuantityValueType$inboundSchema: z.ZodNativeEnum<
|
|
20
28
|
typeof PercentageQuantityValueType
|
|
@@ -36,14 +44,6 @@ export namespace PercentageQuantityValueType$ {
|
|
|
36
44
|
export const outboundSchema = PercentageQuantityValueType$outboundSchema;
|
|
37
45
|
}
|
|
38
46
|
|
|
39
|
-
export type PercentageQuantity = {
|
|
40
|
-
valueType: PercentageQuantityValueType;
|
|
41
|
-
/**
|
|
42
|
-
* Percentage quantity, e.g. provide '10' for 10%
|
|
43
|
-
*/
|
|
44
|
-
value: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
47
|
/** @internal */
|
|
48
48
|
export const PercentageQuantity$inboundSchema: z.ZodType<
|
|
49
49
|
PercentageQuantity,
|
|
@@ -41,6 +41,17 @@ export type RelationshipResourceNotFoundTitle = ClosedEnum<
|
|
|
41
41
|
typeof RelationshipResourceNotFoundTitle
|
|
42
42
|
>;
|
|
43
43
|
|
|
44
|
+
export type RelationshipResourceNotFound = {
|
|
45
|
+
id?: string | undefined;
|
|
46
|
+
links?: APIErrorLinks | undefined;
|
|
47
|
+
status: RelationshipResourceNotFoundStatus;
|
|
48
|
+
code: RelationshipResourceNotFoundCode;
|
|
49
|
+
title: RelationshipResourceNotFoundTitle;
|
|
50
|
+
detail: string;
|
|
51
|
+
source: ErrorSource;
|
|
52
|
+
meta: { [k: string]: any };
|
|
53
|
+
};
|
|
54
|
+
|
|
44
55
|
/** @internal */
|
|
45
56
|
export const RelationshipResourceNotFoundStatus$inboundSchema: z.ZodNativeEnum<
|
|
46
57
|
typeof RelationshipResourceNotFoundStatus
|
|
@@ -106,17 +117,6 @@ export namespace RelationshipResourceNotFoundTitle$ {
|
|
|
106
117
|
RelationshipResourceNotFoundTitle$outboundSchema;
|
|
107
118
|
}
|
|
108
119
|
|
|
109
|
-
export type RelationshipResourceNotFound = {
|
|
110
|
-
id?: string | undefined;
|
|
111
|
-
links?: APIErrorLinks | undefined;
|
|
112
|
-
status: RelationshipResourceNotFoundStatus;
|
|
113
|
-
code: RelationshipResourceNotFoundCode;
|
|
114
|
-
title: RelationshipResourceNotFoundTitle;
|
|
115
|
-
detail: string;
|
|
116
|
-
source: ErrorSource;
|
|
117
|
-
meta: { [k: string]: any };
|
|
118
|
-
};
|
|
119
|
-
|
|
120
120
|
/** @internal */
|
|
121
121
|
export const RelationshipResourceNotFound$inboundSchema: z.ZodType<
|
|
122
122
|
RelationshipResourceNotFound,
|
|
@@ -35,6 +35,20 @@ export const ResourceNotFoundTitle = {
|
|
|
35
35
|
} as const;
|
|
36
36
|
export type ResourceNotFoundTitle = ClosedEnum<typeof ResourceNotFoundTitle>;
|
|
37
37
|
|
|
38
|
+
export type ResourceNotFound = {
|
|
39
|
+
id?: string | undefined;
|
|
40
|
+
links?: APIErrorLinks | undefined;
|
|
41
|
+
status: ResourceNotFoundStatus;
|
|
42
|
+
code: ResourceNotFoundCode;
|
|
43
|
+
title: ResourceNotFoundTitle;
|
|
44
|
+
detail: string;
|
|
45
|
+
/**
|
|
46
|
+
* An object describing the source of the error from the request
|
|
47
|
+
*/
|
|
48
|
+
source?: ErrorSource | undefined;
|
|
49
|
+
meta?: { [k: string]: any } | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
38
52
|
/** @internal */
|
|
39
53
|
export const ResourceNotFoundStatus$inboundSchema: z.ZodNativeEnum<
|
|
40
54
|
typeof ResourceNotFoundStatus
|
|
@@ -98,20 +112,6 @@ export namespace ResourceNotFoundTitle$ {
|
|
|
98
112
|
export const outboundSchema = ResourceNotFoundTitle$outboundSchema;
|
|
99
113
|
}
|
|
100
114
|
|
|
101
|
-
export type ResourceNotFound = {
|
|
102
|
-
id?: string | undefined;
|
|
103
|
-
links?: APIErrorLinks | undefined;
|
|
104
|
-
status: ResourceNotFoundStatus;
|
|
105
|
-
code: ResourceNotFoundCode;
|
|
106
|
-
title: ResourceNotFoundTitle;
|
|
107
|
-
detail: string;
|
|
108
|
-
/**
|
|
109
|
-
* An object describing the source of the error from the request
|
|
110
|
-
*/
|
|
111
|
-
source?: ErrorSource | undefined;
|
|
112
|
-
meta?: { [k: string]: any } | undefined;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
115
|
/** @internal */
|
|
116
116
|
export const ResourceNotFound$inboundSchema: z.ZodType<
|
|
117
117
|
ResourceNotFound,
|
|
@@ -21,135 +21,6 @@ export type SupportingDocumentRelationshipsType = ClosedEnum<
|
|
|
21
21
|
typeof SupportingDocumentRelationshipsType
|
|
22
22
|
>;
|
|
23
23
|
|
|
24
|
-
export const SupportingDocumentRelationshipsAssetType = {
|
|
25
|
-
Assets: "assets",
|
|
26
|
-
} as const;
|
|
27
|
-
export type SupportingDocumentRelationshipsAssetType = ClosedEnum<
|
|
28
|
-
typeof SupportingDocumentRelationshipsAssetType
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
|
-
export const SupportingDocumentRelationshipsEntityType = {
|
|
32
|
-
Entities: "entities",
|
|
33
|
-
} as const;
|
|
34
|
-
export type SupportingDocumentRelationshipsEntityType = ClosedEnum<
|
|
35
|
-
typeof SupportingDocumentRelationshipsEntityType
|
|
36
|
-
>;
|
|
37
|
-
|
|
38
|
-
export const Two = {
|
|
39
|
-
CommercialSecuredApplications: "commercial-secured-applications",
|
|
40
|
-
} as const;
|
|
41
|
-
export type Two = ClosedEnum<typeof Two>;
|
|
42
|
-
|
|
43
|
-
export const One = {
|
|
44
|
-
ConsumerSecuredApplications: "consumer-secured-applications",
|
|
45
|
-
} as const;
|
|
46
|
-
export type One = ClosedEnum<typeof One>;
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const SupportingDocumentRelationshipsType$inboundSchema: z.ZodNativeEnum<
|
|
50
|
-
typeof SupportingDocumentRelationshipsType
|
|
51
|
-
> = z.nativeEnum(SupportingDocumentRelationshipsType);
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const SupportingDocumentRelationshipsType$outboundSchema:
|
|
55
|
-
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsType> =
|
|
56
|
-
SupportingDocumentRelationshipsType$inboundSchema;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
export namespace SupportingDocumentRelationshipsType$ {
|
|
63
|
-
/** @deprecated use `SupportingDocumentRelationshipsType$inboundSchema` instead. */
|
|
64
|
-
export const inboundSchema =
|
|
65
|
-
SupportingDocumentRelationshipsType$inboundSchema;
|
|
66
|
-
/** @deprecated use `SupportingDocumentRelationshipsType$outboundSchema` instead. */
|
|
67
|
-
export const outboundSchema =
|
|
68
|
-
SupportingDocumentRelationshipsType$outboundSchema;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const SupportingDocumentRelationshipsAssetType$inboundSchema:
|
|
73
|
-
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsAssetType> = z
|
|
74
|
-
.nativeEnum(SupportingDocumentRelationshipsAssetType);
|
|
75
|
-
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const SupportingDocumentRelationshipsAssetType$outboundSchema:
|
|
78
|
-
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsAssetType> =
|
|
79
|
-
SupportingDocumentRelationshipsAssetType$inboundSchema;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export namespace SupportingDocumentRelationshipsAssetType$ {
|
|
86
|
-
/** @deprecated use `SupportingDocumentRelationshipsAssetType$inboundSchema` instead. */
|
|
87
|
-
export const inboundSchema =
|
|
88
|
-
SupportingDocumentRelationshipsAssetType$inboundSchema;
|
|
89
|
-
/** @deprecated use `SupportingDocumentRelationshipsAssetType$outboundSchema` instead. */
|
|
90
|
-
export const outboundSchema =
|
|
91
|
-
SupportingDocumentRelationshipsAssetType$outboundSchema;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/** @internal */
|
|
95
|
-
export const SupportingDocumentRelationshipsEntityType$inboundSchema:
|
|
96
|
-
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsEntityType> = z
|
|
97
|
-
.nativeEnum(SupportingDocumentRelationshipsEntityType);
|
|
98
|
-
|
|
99
|
-
/** @internal */
|
|
100
|
-
export const SupportingDocumentRelationshipsEntityType$outboundSchema:
|
|
101
|
-
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsEntityType> =
|
|
102
|
-
SupportingDocumentRelationshipsEntityType$inboundSchema;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
-
*/
|
|
108
|
-
export namespace SupportingDocumentRelationshipsEntityType$ {
|
|
109
|
-
/** @deprecated use `SupportingDocumentRelationshipsEntityType$inboundSchema` instead. */
|
|
110
|
-
export const inboundSchema =
|
|
111
|
-
SupportingDocumentRelationshipsEntityType$inboundSchema;
|
|
112
|
-
/** @deprecated use `SupportingDocumentRelationshipsEntityType$outboundSchema` instead. */
|
|
113
|
-
export const outboundSchema =
|
|
114
|
-
SupportingDocumentRelationshipsEntityType$outboundSchema;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/** @internal */
|
|
118
|
-
export const Two$inboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(Two);
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export const Two$outboundSchema: z.ZodNativeEnum<typeof Two> =
|
|
122
|
-
Two$inboundSchema;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
-
*/
|
|
128
|
-
export namespace Two$ {
|
|
129
|
-
/** @deprecated use `Two$inboundSchema` instead. */
|
|
130
|
-
export const inboundSchema = Two$inboundSchema;
|
|
131
|
-
/** @deprecated use `Two$outboundSchema` instead. */
|
|
132
|
-
export const outboundSchema = Two$outboundSchema;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/** @internal */
|
|
136
|
-
export const One$inboundSchema: z.ZodNativeEnum<typeof One> = z.nativeEnum(One);
|
|
137
|
-
|
|
138
|
-
/** @internal */
|
|
139
|
-
export const One$outboundSchema: z.ZodNativeEnum<typeof One> =
|
|
140
|
-
One$inboundSchema;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
145
|
-
*/
|
|
146
|
-
export namespace One$ {
|
|
147
|
-
/** @deprecated use `One$inboundSchema` instead. */
|
|
148
|
-
export const inboundSchema = One$inboundSchema;
|
|
149
|
-
/** @deprecated use `One$outboundSchema` instead. */
|
|
150
|
-
export const outboundSchema = One$outboundSchema;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
24
|
export type SupportingDocumentRelationshipsData = {
|
|
154
25
|
type: SupportingDocumentRelationshipsType;
|
|
155
26
|
id: string;
|
|
@@ -164,6 +35,13 @@ export type Customer = {
|
|
|
164
35
|
meta?: { [k: string]: any } | undefined;
|
|
165
36
|
};
|
|
166
37
|
|
|
38
|
+
export const SupportingDocumentRelationshipsAssetType = {
|
|
39
|
+
Assets: "assets",
|
|
40
|
+
} as const;
|
|
41
|
+
export type SupportingDocumentRelationshipsAssetType = ClosedEnum<
|
|
42
|
+
typeof SupportingDocumentRelationshipsAssetType
|
|
43
|
+
>;
|
|
44
|
+
|
|
167
45
|
export type SupportingDocumentRelationshipsAssetData = {
|
|
168
46
|
type: SupportingDocumentRelationshipsAssetType;
|
|
169
47
|
id: string;
|
|
@@ -178,6 +56,13 @@ export type SupportingDocumentRelationshipsAsset = {
|
|
|
178
56
|
meta?: { [k: string]: any } | undefined;
|
|
179
57
|
};
|
|
180
58
|
|
|
59
|
+
export const SupportingDocumentRelationshipsEntityType = {
|
|
60
|
+
Entities: "entities",
|
|
61
|
+
} as const;
|
|
62
|
+
export type SupportingDocumentRelationshipsEntityType = ClosedEnum<
|
|
63
|
+
typeof SupportingDocumentRelationshipsEntityType
|
|
64
|
+
>;
|
|
65
|
+
|
|
181
66
|
export type SupportingDocumentRelationshipsEntityData = {
|
|
182
67
|
type: SupportingDocumentRelationshipsEntityType;
|
|
183
68
|
id: string;
|
|
@@ -192,6 +77,16 @@ export type Entity = {
|
|
|
192
77
|
meta?: { [k: string]: any } | undefined;
|
|
193
78
|
};
|
|
194
79
|
|
|
80
|
+
export const Two = {
|
|
81
|
+
CommercialSecuredApplications: "commercial-secured-applications",
|
|
82
|
+
} as const;
|
|
83
|
+
export type Two = ClosedEnum<typeof Two>;
|
|
84
|
+
|
|
85
|
+
export const One = {
|
|
86
|
+
ConsumerSecuredApplications: "consumer-secured-applications",
|
|
87
|
+
} as const;
|
|
88
|
+
export type One = ClosedEnum<typeof One>;
|
|
89
|
+
|
|
195
90
|
export type SupportingDocumentRelationshipsApplicationType = One | Two;
|
|
196
91
|
|
|
197
92
|
export type SupportingDocumentRelationshipsApplicationData = {
|
|
@@ -227,6 +122,29 @@ export type SupportingDocumentRelationships = {
|
|
|
227
122
|
application: Application;
|
|
228
123
|
};
|
|
229
124
|
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const SupportingDocumentRelationshipsType$inboundSchema: z.ZodNativeEnum<
|
|
127
|
+
typeof SupportingDocumentRelationshipsType
|
|
128
|
+
> = z.nativeEnum(SupportingDocumentRelationshipsType);
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const SupportingDocumentRelationshipsType$outboundSchema:
|
|
132
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsType> =
|
|
133
|
+
SupportingDocumentRelationshipsType$inboundSchema;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
+
*/
|
|
139
|
+
export namespace SupportingDocumentRelationshipsType$ {
|
|
140
|
+
/** @deprecated use `SupportingDocumentRelationshipsType$inboundSchema` instead. */
|
|
141
|
+
export const inboundSchema =
|
|
142
|
+
SupportingDocumentRelationshipsType$inboundSchema;
|
|
143
|
+
/** @deprecated use `SupportingDocumentRelationshipsType$outboundSchema` instead. */
|
|
144
|
+
export const outboundSchema =
|
|
145
|
+
SupportingDocumentRelationshipsType$outboundSchema;
|
|
146
|
+
}
|
|
147
|
+
|
|
230
148
|
/** @internal */
|
|
231
149
|
export const SupportingDocumentRelationshipsData$inboundSchema: z.ZodType<
|
|
232
150
|
SupportingDocumentRelationshipsData,
|
|
@@ -345,6 +263,29 @@ export function customerFromJSON(
|
|
|
345
263
|
);
|
|
346
264
|
}
|
|
347
265
|
|
|
266
|
+
/** @internal */
|
|
267
|
+
export const SupportingDocumentRelationshipsAssetType$inboundSchema:
|
|
268
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsAssetType> = z
|
|
269
|
+
.nativeEnum(SupportingDocumentRelationshipsAssetType);
|
|
270
|
+
|
|
271
|
+
/** @internal */
|
|
272
|
+
export const SupportingDocumentRelationshipsAssetType$outboundSchema:
|
|
273
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsAssetType> =
|
|
274
|
+
SupportingDocumentRelationshipsAssetType$inboundSchema;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @internal
|
|
278
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
279
|
+
*/
|
|
280
|
+
export namespace SupportingDocumentRelationshipsAssetType$ {
|
|
281
|
+
/** @deprecated use `SupportingDocumentRelationshipsAssetType$inboundSchema` instead. */
|
|
282
|
+
export const inboundSchema =
|
|
283
|
+
SupportingDocumentRelationshipsAssetType$inboundSchema;
|
|
284
|
+
/** @deprecated use `SupportingDocumentRelationshipsAssetType$outboundSchema` instead. */
|
|
285
|
+
export const outboundSchema =
|
|
286
|
+
SupportingDocumentRelationshipsAssetType$outboundSchema;
|
|
287
|
+
}
|
|
288
|
+
|
|
348
289
|
/** @internal */
|
|
349
290
|
export const SupportingDocumentRelationshipsAssetData$inboundSchema: z.ZodType<
|
|
350
291
|
SupportingDocumentRelationshipsAssetData,
|
|
@@ -478,6 +419,29 @@ export function supportingDocumentRelationshipsAssetFromJSON(
|
|
|
478
419
|
);
|
|
479
420
|
}
|
|
480
421
|
|
|
422
|
+
/** @internal */
|
|
423
|
+
export const SupportingDocumentRelationshipsEntityType$inboundSchema:
|
|
424
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsEntityType> = z
|
|
425
|
+
.nativeEnum(SupportingDocumentRelationshipsEntityType);
|
|
426
|
+
|
|
427
|
+
/** @internal */
|
|
428
|
+
export const SupportingDocumentRelationshipsEntityType$outboundSchema:
|
|
429
|
+
z.ZodNativeEnum<typeof SupportingDocumentRelationshipsEntityType> =
|
|
430
|
+
SupportingDocumentRelationshipsEntityType$inboundSchema;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @internal
|
|
434
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
435
|
+
*/
|
|
436
|
+
export namespace SupportingDocumentRelationshipsEntityType$ {
|
|
437
|
+
/** @deprecated use `SupportingDocumentRelationshipsEntityType$inboundSchema` instead. */
|
|
438
|
+
export const inboundSchema =
|
|
439
|
+
SupportingDocumentRelationshipsEntityType$inboundSchema;
|
|
440
|
+
/** @deprecated use `SupportingDocumentRelationshipsEntityType$outboundSchema` instead. */
|
|
441
|
+
export const outboundSchema =
|
|
442
|
+
SupportingDocumentRelationshipsEntityType$outboundSchema;
|
|
443
|
+
}
|
|
444
|
+
|
|
481
445
|
/** @internal */
|
|
482
446
|
export const SupportingDocumentRelationshipsEntityData$inboundSchema: z.ZodType<
|
|
483
447
|
SupportingDocumentRelationshipsEntityData,
|
|
@@ -600,6 +564,42 @@ export function entityFromJSON(
|
|
|
600
564
|
);
|
|
601
565
|
}
|
|
602
566
|
|
|
567
|
+
/** @internal */
|
|
568
|
+
export const Two$inboundSchema: z.ZodNativeEnum<typeof Two> = z.nativeEnum(Two);
|
|
569
|
+
|
|
570
|
+
/** @internal */
|
|
571
|
+
export const Two$outboundSchema: z.ZodNativeEnum<typeof Two> =
|
|
572
|
+
Two$inboundSchema;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @internal
|
|
576
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
577
|
+
*/
|
|
578
|
+
export namespace Two$ {
|
|
579
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
580
|
+
export const inboundSchema = Two$inboundSchema;
|
|
581
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
582
|
+
export const outboundSchema = Two$outboundSchema;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** @internal */
|
|
586
|
+
export const One$inboundSchema: z.ZodNativeEnum<typeof One> = z.nativeEnum(One);
|
|
587
|
+
|
|
588
|
+
/** @internal */
|
|
589
|
+
export const One$outboundSchema: z.ZodNativeEnum<typeof One> =
|
|
590
|
+
One$inboundSchema;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @internal
|
|
594
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
595
|
+
*/
|
|
596
|
+
export namespace One$ {
|
|
597
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
598
|
+
export const inboundSchema = One$inboundSchema;
|
|
599
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
600
|
+
export const outboundSchema = One$outboundSchema;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
603
|
/** @internal */
|
|
604
604
|
export const SupportingDocumentRelationshipsApplicationType$inboundSchema:
|
|
605
605
|
z.ZodType<
|
|
@@ -33,6 +33,14 @@ export type SupportingDocumentResourceType = ClosedEnum<
|
|
|
33
33
|
typeof SupportingDocumentResourceType
|
|
34
34
|
>;
|
|
35
35
|
|
|
36
|
+
export type SupportingDocumentResource = {
|
|
37
|
+
type: SupportingDocumentResourceType;
|
|
38
|
+
attributes: SupportingDocumentAttributesInput;
|
|
39
|
+
relationships: SupportingDocumentRelationships;
|
|
40
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
41
|
+
meta?: { [k: string]: any } | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
36
44
|
/** @internal */
|
|
37
45
|
export const SupportingDocumentResourceType$inboundSchema: z.ZodNativeEnum<
|
|
38
46
|
typeof SupportingDocumentResourceType
|
|
@@ -54,14 +62,6 @@ export namespace SupportingDocumentResourceType$ {
|
|
|
54
62
|
export const outboundSchema = SupportingDocumentResourceType$outboundSchema;
|
|
55
63
|
}
|
|
56
64
|
|
|
57
|
-
export type SupportingDocumentResource = {
|
|
58
|
-
type: SupportingDocumentResourceType;
|
|
59
|
-
attributes: SupportingDocumentAttributesInput;
|
|
60
|
-
relationships: SupportingDocumentRelationships;
|
|
61
|
-
links?: { [k: string]: LinkObject } | undefined;
|
|
62
|
-
meta?: { [k: string]: any } | undefined;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
65
|
/** @internal */
|
|
66
66
|
export const SupportingDocumentResource$inboundSchema: z.ZodType<
|
|
67
67
|
SupportingDocumentResource,
|