@financeable/aggregation 0.7.4 → 0.8.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/README.md +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +192 -14
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +186 -19
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts +136 -15
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +131 -11
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +370 -14
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +358 -20
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/currencycodeiso4217.d.ts +25 -0
- package/models/components/currencycodeiso4217.d.ts.map +1 -0
- package/models/components/currencycodeiso4217.js +59 -0
- package/models/components/currencycodeiso4217.js.map +1 -0
- package/models/components/customerassetattributes.d.ts +37 -0
- package/models/components/customerassetattributes.d.ts.map +1 -0
- package/models/components/customerassetattributes.js +77 -0
- package/models/components/customerassetattributes.js.map +1 -0
- package/models/components/customerassettype.d.ts +46 -0
- package/models/components/customerassettype.d.ts.map +1 -0
- package/models/components/customerassettype.js +66 -0
- package/models/components/customerassettype.js.map +1 -0
- package/models/components/customerattributes.d.ts +3 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +3 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/customerliabilityattributes.d.ts +46 -0
- package/models/components/customerliabilityattributes.d.ts.map +1 -0
- package/models/components/customerliabilityattributes.js +88 -0
- package/models/components/customerliabilityattributes.js.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.d.ts +31 -0
- package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.js +61 -0
- package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
- package/models/components/customerliabilitytype.d.ts +40 -0
- package/models/components/customerliabilitytype.d.ts.map +1 -0
- package/models/components/customerliabilitytype.js +64 -0
- package/models/components/customerliabilitytype.js.map +1 -0
- package/models/components/expenseattributes.d.ts +38 -0
- package/models/components/expenseattributes.d.ts.map +1 -0
- package/models/components/expenseattributes.js +78 -0
- package/models/components/expenseattributes.js.map +1 -0
- package/models/components/expensefrequency.d.ts +31 -0
- package/models/components/expensefrequency.d.ts.map +1 -0
- package/models/components/expensefrequency.js +61 -0
- package/models/components/expensefrequency.js.map +1 -0
- package/models/components/expensetype.d.ts +79 -0
- package/models/components/expensetype.d.ts.map +1 -0
- package/models/components/expensetype.js +78 -0
- package/models/components/expensetype.js.map +1 -0
- package/models/components/incomeattributes.d.ts +38 -0
- package/models/components/incomeattributes.d.ts.map +1 -0
- package/models/components/incomeattributes.js +78 -0
- package/models/components/incomeattributes.js.map +1 -0
- package/models/components/incomefrequency.d.ts +34 -0
- package/models/components/incomefrequency.d.ts.map +1 -0
- package/models/components/incomefrequency.js +62 -0
- package/models/components/incomefrequency.js.map +1 -0
- package/models/components/incometype.d.ts +49 -0
- package/models/components/incometype.d.ts.map +1 -0
- package/models/components/incometype.js +68 -0
- package/models/components/incometype.js.map +1 -0
- package/models/components/index.d.ts +14 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -0
- package/models/components/index.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +252 -30
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +266 -19
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/monetaryquantity.d.ts +63 -0
- package/models/components/monetaryquantity.d.ts.map +1 -0
- package/models/components/monetaryquantity.js +93 -0
- package/models/components/monetaryquantity.js.map +1 -0
- package/models/components/percentagequantity.d.ts +57 -0
- package/models/components/percentagequantity.d.ts.map +1 -0
- package/models/components/percentagequantity.js +89 -0
- package/models/components/percentagequantity.js.map +1 -0
- package/models/operations/createapplication.d.ts +102 -4
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +107 -1
- package/models/operations/createapplication.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +426 -25
- package/src/models/components/consumersecuredloanassetattributes.ts +282 -25
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +895 -40
- package/src/models/components/currencycodeiso4217.ts +32 -0
- package/src/models/components/customerassetattributes.ts +89 -0
- package/src/models/components/customerassettype.ts +39 -0
- package/src/models/components/customerattributes.ts +10 -0
- package/src/models/components/customerliabilityattributes.ts +114 -0
- package/src/models/components/customerliabilityrepaymentfrequency.ts +38 -0
- package/src/models/components/customerliabilitytype.ts +37 -0
- package/src/models/components/expenseattributes.ts +94 -0
- package/src/models/components/expensefrequency.ts +34 -0
- package/src/models/components/expensetype.ts +48 -0
- package/src/models/components/incomeattributes.ts +94 -0
- package/src/models/components/incomefrequency.ts +35 -0
- package/src/models/components/incometype.ts +38 -0
- package/src/models/components/index.ts +14 -0
- package/src/models/components/loandetailsattributes.ts +537 -48
- package/src/models/components/monetaryquantity.ts +110 -0
- package/src/models/components/percentagequantity.ts +102 -0
- package/src/models/operations/createapplication.ts +191 -3
|
@@ -0,0 +1,110 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CurrencyCodeIso4217,
|
|
12
|
+
CurrencyCodeIso4217$inboundSchema,
|
|
13
|
+
CurrencyCodeIso4217$outboundSchema,
|
|
14
|
+
} from "./currencycodeiso4217.js";
|
|
15
|
+
|
|
16
|
+
export const ValueType = {
|
|
17
|
+
Monetary: "monetary",
|
|
18
|
+
} as const;
|
|
19
|
+
export type ValueType = ClosedEnum<typeof ValueType>;
|
|
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
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const ValueType$inboundSchema: z.ZodNativeEnum<typeof ValueType> = z
|
|
35
|
+
.nativeEnum(ValueType);
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ValueType$outboundSchema: z.ZodNativeEnum<typeof ValueType> =
|
|
39
|
+
ValueType$inboundSchema;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace ValueType$ {
|
|
46
|
+
/** @deprecated use `ValueType$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = ValueType$inboundSchema;
|
|
48
|
+
/** @deprecated use `ValueType$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = ValueType$outboundSchema;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const MonetaryQuantity$inboundSchema: z.ZodType<
|
|
54
|
+
MonetaryQuantity,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
valueType: ValueType$inboundSchema,
|
|
59
|
+
value: z.string(),
|
|
60
|
+
currencyCode: CurrencyCodeIso4217$inboundSchema,
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type MonetaryQuantity$Outbound = {
|
|
65
|
+
valueType: string;
|
|
66
|
+
value: string;
|
|
67
|
+
currencyCode: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const MonetaryQuantity$outboundSchema: z.ZodType<
|
|
72
|
+
MonetaryQuantity$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
MonetaryQuantity
|
|
75
|
+
> = z.object({
|
|
76
|
+
valueType: ValueType$outboundSchema,
|
|
77
|
+
value: z.string(),
|
|
78
|
+
currencyCode: CurrencyCodeIso4217$outboundSchema,
|
|
79
|
+
});
|
|
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 MonetaryQuantity$ {
|
|
86
|
+
/** @deprecated use `MonetaryQuantity$inboundSchema` instead. */
|
|
87
|
+
export const inboundSchema = MonetaryQuantity$inboundSchema;
|
|
88
|
+
/** @deprecated use `MonetaryQuantity$outboundSchema` instead. */
|
|
89
|
+
export const outboundSchema = MonetaryQuantity$outboundSchema;
|
|
90
|
+
/** @deprecated use `MonetaryQuantity$Outbound` instead. */
|
|
91
|
+
export type Outbound = MonetaryQuantity$Outbound;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function monetaryQuantityToJSON(
|
|
95
|
+
monetaryQuantity: MonetaryQuantity,
|
|
96
|
+
): string {
|
|
97
|
+
return JSON.stringify(
|
|
98
|
+
MonetaryQuantity$outboundSchema.parse(monetaryQuantity),
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function monetaryQuantityFromJSON(
|
|
103
|
+
jsonString: string,
|
|
104
|
+
): SafeParseResult<MonetaryQuantity, SDKValidationError> {
|
|
105
|
+
return safeParse(
|
|
106
|
+
jsonString,
|
|
107
|
+
(x) => MonetaryQuantity$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
+
`Failed to parse 'MonetaryQuantity' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const PercentageQuantityValueType = {
|
|
12
|
+
Percentage: "percentage",
|
|
13
|
+
} as const;
|
|
14
|
+
export type PercentageQuantityValueType = ClosedEnum<
|
|
15
|
+
typeof PercentageQuantityValueType
|
|
16
|
+
>;
|
|
17
|
+
|
|
18
|
+
export type PercentageQuantity = {
|
|
19
|
+
valueType: PercentageQuantityValueType;
|
|
20
|
+
/**
|
|
21
|
+
* Percentage quantity, e.g. provide '10' for 10%
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const PercentageQuantityValueType$inboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof PercentageQuantityValueType
|
|
29
|
+
> = z.nativeEnum(PercentageQuantityValueType);
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const PercentageQuantityValueType$outboundSchema: z.ZodNativeEnum<
|
|
33
|
+
typeof PercentageQuantityValueType
|
|
34
|
+
> = PercentageQuantityValueType$inboundSchema;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
|
+
*/
|
|
40
|
+
export namespace PercentageQuantityValueType$ {
|
|
41
|
+
/** @deprecated use `PercentageQuantityValueType$inboundSchema` instead. */
|
|
42
|
+
export const inboundSchema = PercentageQuantityValueType$inboundSchema;
|
|
43
|
+
/** @deprecated use `PercentageQuantityValueType$outboundSchema` instead. */
|
|
44
|
+
export const outboundSchema = PercentageQuantityValueType$outboundSchema;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const PercentageQuantity$inboundSchema: z.ZodType<
|
|
49
|
+
PercentageQuantity,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
unknown
|
|
52
|
+
> = z.object({
|
|
53
|
+
valueType: PercentageQuantityValueType$inboundSchema,
|
|
54
|
+
value: z.string(),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type PercentageQuantity$Outbound = {
|
|
59
|
+
valueType: string;
|
|
60
|
+
value: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const PercentageQuantity$outboundSchema: z.ZodType<
|
|
65
|
+
PercentageQuantity$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
PercentageQuantity
|
|
68
|
+
> = z.object({
|
|
69
|
+
valueType: PercentageQuantityValueType$outboundSchema,
|
|
70
|
+
value: z.string(),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
+
*/
|
|
77
|
+
export namespace PercentageQuantity$ {
|
|
78
|
+
/** @deprecated use `PercentageQuantity$inboundSchema` instead. */
|
|
79
|
+
export const inboundSchema = PercentageQuantity$inboundSchema;
|
|
80
|
+
/** @deprecated use `PercentageQuantity$outboundSchema` instead. */
|
|
81
|
+
export const outboundSchema = PercentageQuantity$outboundSchema;
|
|
82
|
+
/** @deprecated use `PercentageQuantity$Outbound` instead. */
|
|
83
|
+
export type Outbound = PercentageQuantity$Outbound;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function percentageQuantityToJSON(
|
|
87
|
+
percentageQuantity: PercentageQuantity,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
PercentageQuantity$outboundSchema.parse(percentageQuantity),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function percentageQuantityFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<PercentageQuantity, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => PercentageQuantity$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'PercentageQuantity' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
@@ -19,6 +19,32 @@ export type CreateApplicationRequestBody = {
|
|
|
19
19
|
| components.ConsumerSecuredApplicationPayload;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
+
export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType =
|
|
23
|
+
{
|
|
24
|
+
CustomerAssets: "customer-assets",
|
|
25
|
+
} as const;
|
|
26
|
+
export type CreateApplicationIncludedApplicationsResponse201ApplicationJSONType =
|
|
27
|
+
ClosedEnum<
|
|
28
|
+
typeof CreateApplicationIncludedApplicationsResponse201ApplicationJSONType
|
|
29
|
+
>;
|
|
30
|
+
|
|
31
|
+
export type Seven = {
|
|
32
|
+
type: CreateApplicationIncludedApplicationsResponse201ApplicationJSONType;
|
|
33
|
+
id: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const CreateApplicationIncludedApplicationsResponse201Type = {
|
|
37
|
+
CustomerLiabilities: "customer-liabilities",
|
|
38
|
+
} as const;
|
|
39
|
+
export type CreateApplicationIncludedApplicationsResponse201Type = ClosedEnum<
|
|
40
|
+
typeof CreateApplicationIncludedApplicationsResponse201Type
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
export type Six = {
|
|
44
|
+
type: CreateApplicationIncludedApplicationsResponse201Type;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
22
48
|
export const CreateApplicationIncludedApplicationsResponseType = {
|
|
23
49
|
Customers: "customers",
|
|
24
50
|
} as const;
|
|
@@ -75,7 +101,7 @@ export type One = {
|
|
|
75
101
|
id: string;
|
|
76
102
|
};
|
|
77
103
|
|
|
78
|
-
export type Included = One | Two | Three | Four | Five;
|
|
104
|
+
export type Included = One | Two | Three | Four | Five | Six | Seven;
|
|
79
105
|
|
|
80
106
|
export type Links = {};
|
|
81
107
|
|
|
@@ -87,7 +113,7 @@ export type CreateApplicationResponseBody = {
|
|
|
87
113
|
* Represents either a Consumer or Commercial Application resource
|
|
88
114
|
*/
|
|
89
115
|
data: components.ApplicationResource;
|
|
90
|
-
included?: Array<One | Two | Three | Four | Five> | undefined;
|
|
116
|
+
included?: Array<One | Two | Three | Four | Five | Six | Seven> | undefined;
|
|
91
117
|
links?: Links | undefined;
|
|
92
118
|
};
|
|
93
119
|
|
|
@@ -201,6 +227,156 @@ export function createApplicationRequestBodyFromJSON(
|
|
|
201
227
|
);
|
|
202
228
|
}
|
|
203
229
|
|
|
230
|
+
/** @internal */
|
|
231
|
+
export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema:
|
|
232
|
+
z.ZodNativeEnum<
|
|
233
|
+
typeof CreateApplicationIncludedApplicationsResponse201ApplicationJSONType
|
|
234
|
+
> = z.nativeEnum(
|
|
235
|
+
CreateApplicationIncludedApplicationsResponse201ApplicationJSONType,
|
|
236
|
+
);
|
|
237
|
+
|
|
238
|
+
/** @internal */
|
|
239
|
+
export const CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$outboundSchema:
|
|
240
|
+
z.ZodNativeEnum<
|
|
241
|
+
typeof CreateApplicationIncludedApplicationsResponse201ApplicationJSONType
|
|
242
|
+
> =
|
|
243
|
+
CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @internal
|
|
247
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
248
|
+
*/
|
|
249
|
+
export namespace CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$ {
|
|
250
|
+
/** @deprecated use `CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema` instead. */
|
|
251
|
+
export const inboundSchema =
|
|
252
|
+
CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema;
|
|
253
|
+
/** @deprecated use `CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$outboundSchema` instead. */
|
|
254
|
+
export const outboundSchema =
|
|
255
|
+
CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$outboundSchema;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** @internal */
|
|
259
|
+
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
|
|
260
|
+
.object({
|
|
261
|
+
type:
|
|
262
|
+
CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$inboundSchema,
|
|
263
|
+
id: z.string(),
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
/** @internal */
|
|
267
|
+
export type Seven$Outbound = {
|
|
268
|
+
type: string;
|
|
269
|
+
id: string;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
/** @internal */
|
|
273
|
+
export const Seven$outboundSchema: z.ZodType<
|
|
274
|
+
Seven$Outbound,
|
|
275
|
+
z.ZodTypeDef,
|
|
276
|
+
Seven
|
|
277
|
+
> = z.object({
|
|
278
|
+
type:
|
|
279
|
+
CreateApplicationIncludedApplicationsResponse201ApplicationJSONType$outboundSchema,
|
|
280
|
+
id: z.string(),
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* @internal
|
|
285
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
286
|
+
*/
|
|
287
|
+
export namespace Seven$ {
|
|
288
|
+
/** @deprecated use `Seven$inboundSchema` instead. */
|
|
289
|
+
export const inboundSchema = Seven$inboundSchema;
|
|
290
|
+
/** @deprecated use `Seven$outboundSchema` instead. */
|
|
291
|
+
export const outboundSchema = Seven$outboundSchema;
|
|
292
|
+
/** @deprecated use `Seven$Outbound` instead. */
|
|
293
|
+
export type Outbound = Seven$Outbound;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export function sevenToJSON(seven: Seven): string {
|
|
297
|
+
return JSON.stringify(Seven$outboundSchema.parse(seven));
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export function sevenFromJSON(
|
|
301
|
+
jsonString: string,
|
|
302
|
+
): SafeParseResult<Seven, SDKValidationError> {
|
|
303
|
+
return safeParse(
|
|
304
|
+
jsonString,
|
|
305
|
+
(x) => Seven$inboundSchema.parse(JSON.parse(x)),
|
|
306
|
+
`Failed to parse 'Seven' from JSON`,
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/** @internal */
|
|
311
|
+
export const CreateApplicationIncludedApplicationsResponse201Type$inboundSchema:
|
|
312
|
+
z.ZodNativeEnum<typeof CreateApplicationIncludedApplicationsResponse201Type> =
|
|
313
|
+
z.nativeEnum(CreateApplicationIncludedApplicationsResponse201Type);
|
|
314
|
+
|
|
315
|
+
/** @internal */
|
|
316
|
+
export const CreateApplicationIncludedApplicationsResponse201Type$outboundSchema:
|
|
317
|
+
z.ZodNativeEnum<typeof CreateApplicationIncludedApplicationsResponse201Type> =
|
|
318
|
+
CreateApplicationIncludedApplicationsResponse201Type$inboundSchema;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
323
|
+
*/
|
|
324
|
+
export namespace CreateApplicationIncludedApplicationsResponse201Type$ {
|
|
325
|
+
/** @deprecated use `CreateApplicationIncludedApplicationsResponse201Type$inboundSchema` instead. */
|
|
326
|
+
export const inboundSchema =
|
|
327
|
+
CreateApplicationIncludedApplicationsResponse201Type$inboundSchema;
|
|
328
|
+
/** @deprecated use `CreateApplicationIncludedApplicationsResponse201Type$outboundSchema` instead. */
|
|
329
|
+
export const outboundSchema =
|
|
330
|
+
CreateApplicationIncludedApplicationsResponse201Type$outboundSchema;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/** @internal */
|
|
334
|
+
export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
|
|
335
|
+
.object({
|
|
336
|
+
type: CreateApplicationIncludedApplicationsResponse201Type$inboundSchema,
|
|
337
|
+
id: z.string(),
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
/** @internal */
|
|
341
|
+
export type Six$Outbound = {
|
|
342
|
+
type: string;
|
|
343
|
+
id: string;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
/** @internal */
|
|
347
|
+
export const Six$outboundSchema: z.ZodType<Six$Outbound, z.ZodTypeDef, Six> = z
|
|
348
|
+
.object({
|
|
349
|
+
type: CreateApplicationIncludedApplicationsResponse201Type$outboundSchema,
|
|
350
|
+
id: z.string(),
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @internal
|
|
355
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
356
|
+
*/
|
|
357
|
+
export namespace Six$ {
|
|
358
|
+
/** @deprecated use `Six$inboundSchema` instead. */
|
|
359
|
+
export const inboundSchema = Six$inboundSchema;
|
|
360
|
+
/** @deprecated use `Six$outboundSchema` instead. */
|
|
361
|
+
export const outboundSchema = Six$outboundSchema;
|
|
362
|
+
/** @deprecated use `Six$Outbound` instead. */
|
|
363
|
+
export type Outbound = Six$Outbound;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export function sixToJSON(six: Six): string {
|
|
367
|
+
return JSON.stringify(Six$outboundSchema.parse(six));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export function sixFromJSON(
|
|
371
|
+
jsonString: string,
|
|
372
|
+
): SafeParseResult<Six, SDKValidationError> {
|
|
373
|
+
return safeParse(
|
|
374
|
+
jsonString,
|
|
375
|
+
(x) => Six$inboundSchema.parse(JSON.parse(x)),
|
|
376
|
+
`Failed to parse 'Six' from JSON`,
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
|
|
204
380
|
/** @internal */
|
|
205
381
|
export const CreateApplicationIncludedApplicationsResponseType$inboundSchema:
|
|
206
382
|
z.ZodNativeEnum<typeof CreateApplicationIncludedApplicationsResponseType> = z
|
|
@@ -556,6 +732,8 @@ export const Included$inboundSchema: z.ZodType<
|
|
|
556
732
|
z.lazy(() => Three$inboundSchema),
|
|
557
733
|
z.lazy(() => Four$inboundSchema),
|
|
558
734
|
z.lazy(() => Five$inboundSchema),
|
|
735
|
+
z.lazy(() => Six$inboundSchema),
|
|
736
|
+
z.lazy(() => Seven$inboundSchema),
|
|
559
737
|
]);
|
|
560
738
|
|
|
561
739
|
/** @internal */
|
|
@@ -564,7 +742,9 @@ export type Included$Outbound =
|
|
|
564
742
|
| Two$Outbound
|
|
565
743
|
| Three$Outbound
|
|
566
744
|
| Four$Outbound
|
|
567
|
-
| Five$Outbound
|
|
745
|
+
| Five$Outbound
|
|
746
|
+
| Six$Outbound
|
|
747
|
+
| Seven$Outbound;
|
|
568
748
|
|
|
569
749
|
/** @internal */
|
|
570
750
|
export const Included$outboundSchema: z.ZodType<
|
|
@@ -577,6 +757,8 @@ export const Included$outboundSchema: z.ZodType<
|
|
|
577
757
|
z.lazy(() => Three$outboundSchema),
|
|
578
758
|
z.lazy(() => Four$outboundSchema),
|
|
579
759
|
z.lazy(() => Five$outboundSchema),
|
|
760
|
+
z.lazy(() => Six$outboundSchema),
|
|
761
|
+
z.lazy(() => Seven$outboundSchema),
|
|
580
762
|
]);
|
|
581
763
|
|
|
582
764
|
/**
|
|
@@ -661,6 +843,8 @@ export const CreateApplicationResponseBody$inboundSchema: z.ZodType<
|
|
|
661
843
|
z.lazy(() => Three$inboundSchema),
|
|
662
844
|
z.lazy(() => Four$inboundSchema),
|
|
663
845
|
z.lazy(() => Five$inboundSchema),
|
|
846
|
+
z.lazy(() => Six$inboundSchema),
|
|
847
|
+
z.lazy(() => Seven$inboundSchema),
|
|
664
848
|
]),
|
|
665
849
|
).optional(),
|
|
666
850
|
links: z.lazy(() => Links$inboundSchema).optional(),
|
|
@@ -676,6 +860,8 @@ export type CreateApplicationResponseBody$Outbound = {
|
|
|
676
860
|
| Three$Outbound
|
|
677
861
|
| Four$Outbound
|
|
678
862
|
| Five$Outbound
|
|
863
|
+
| Six$Outbound
|
|
864
|
+
| Seven$Outbound
|
|
679
865
|
>
|
|
680
866
|
| undefined;
|
|
681
867
|
links?: Links$Outbound | undefined;
|
|
@@ -695,6 +881,8 @@ export const CreateApplicationResponseBody$outboundSchema: z.ZodType<
|
|
|
695
881
|
z.lazy(() => Three$outboundSchema),
|
|
696
882
|
z.lazy(() => Four$outboundSchema),
|
|
697
883
|
z.lazy(() => Five$outboundSchema),
|
|
884
|
+
z.lazy(() => Six$outboundSchema),
|
|
885
|
+
z.lazy(() => Seven$outboundSchema),
|
|
698
886
|
]),
|
|
699
887
|
).optional(),
|
|
700
888
|
links: z.lazy(() => Links$outboundSchema).optional(),
|