@financeable/aggregation 0.2.0 → 0.2.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/FUNCTIONS.md +0 -4
- package/README.md +945 -28
- package/docs/sdks/applications/README.md +0 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/applicationresourcebulksubmission.d.ts +0 -6
- package/models/components/applicationresourcebulksubmission.d.ts.map +1 -1
- package/models/components/applicationresourcebulksubmission.js +0 -6
- package/models/components/applicationresourcebulksubmission.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/applicationresourcebulksubmission.ts +0 -12
- package/financeable-typescript/.devcontainer/README.md +0 -30
- package/financeable-typescript/FUNCTIONS.md +0 -205
- package/financeable-typescript/README.md +0 -895
- package/financeable-typescript/RUNTIMES.md +0 -22
- package/financeable-typescript/docs/sdks/applications/README.md +0 -427
- package/financeable-typescript/docs/sdks/financeable/README.md +0 -5
- package/financeable-typescript/src/core.ts +0 -13
- package/financeable-typescript/src/funcs/applicationsCreate.ts +0 -124
- package/financeable-typescript/src/funcs/applicationsGet.ts +0 -128
- package/financeable-typescript/src/funcs/applicationsList.ts +0 -126
- package/financeable-typescript/src/hooks/hooks.ts +0 -129
- package/financeable-typescript/src/hooks/index.ts +0 -6
- package/financeable-typescript/src/hooks/types.ts +0 -109
- package/financeable-typescript/src/index.ts +0 -7
- package/financeable-typescript/src/lib/base64.ts +0 -37
- package/financeable-typescript/src/lib/config.ts +0 -59
- package/financeable-typescript/src/lib/dlv.ts +0 -53
- package/financeable-typescript/src/lib/encodings.ts +0 -449
- package/financeable-typescript/src/lib/env.ts +0 -37
- package/financeable-typescript/src/lib/files.ts +0 -40
- package/financeable-typescript/src/lib/http.ts +0 -323
- package/financeable-typescript/src/lib/is-plain-object.ts +0 -43
- package/financeable-typescript/src/lib/logger.ts +0 -9
- package/financeable-typescript/src/lib/matchers.ts +0 -322
- package/financeable-typescript/src/lib/primitives.ts +0 -122
- package/financeable-typescript/src/lib/retries.ts +0 -219
- package/financeable-typescript/src/lib/schemas.ts +0 -86
- package/financeable-typescript/src/lib/sdks.ts +0 -392
- package/financeable-typescript/src/lib/security.ts +0 -227
- package/financeable-typescript/src/lib/url.ts +0 -33
- package/financeable-typescript/src/models/components/addressattributes.ts +0 -148
- package/financeable-typescript/src/models/components/apierrorlinks.ts +0 -65
- package/financeable-typescript/src/models/components/applicationattributes.ts +0 -128
- package/financeable-typescript/src/models/components/applicationattributescreate.ts +0 -90
- package/financeable-typescript/src/models/components/applicationresourcebulksubmission.ts +0 -1000
- package/financeable-typescript/src/models/components/applicationstatus.ts +0 -39
- package/financeable-typescript/src/models/components/applicationtype.ts +0 -33
- package/financeable-typescript/src/models/components/assetattributes.ts +0 -400
- package/financeable-typescript/src/models/components/customerattributes.ts +0 -171
- package/financeable-typescript/src/models/components/customertitle.ts +0 -35
- package/financeable-typescript/src/models/components/errorsource.ts +0 -79
- package/financeable-typescript/src/models/components/forbiddenerror.ts +0 -207
- package/financeable-typescript/src/models/components/frequencytype.ts +0 -40
- package/financeable-typescript/src/models/components/index.ts +0 -20
- package/financeable-typescript/src/models/components/links.ts +0 -72
- package/financeable-typescript/src/models/components/loandetailsattributes.ts +0 -187
- package/financeable-typescript/src/models/components/repaymentstructure.ts +0 -40
- package/financeable-typescript/src/models/errors/apierror.ts +0 -27
- package/financeable-typescript/src/models/errors/createapplication.ts +0 -76
- package/financeable-typescript/src/models/errors/getapplication.ts +0 -76
- package/financeable-typescript/src/models/errors/getapplications.ts +0 -76
- package/financeable-typescript/src/models/errors/httpclienterrors.ts +0 -62
- package/financeable-typescript/src/models/errors/index.ts +0 -10
- package/financeable-typescript/src/models/errors/sdkvalidationerror.ts +0 -97
- package/financeable-typescript/src/models/operations/createapplication.ts +0 -1649
- package/financeable-typescript/src/models/operations/getapplication.ts +0 -1829
- package/financeable-typescript/src/models/operations/getapplications.ts +0 -1790
- package/financeable-typescript/src/models/operations/index.ts +0 -7
- package/financeable-typescript/src/sdk/applications.ts +0 -55
- package/financeable-typescript/src/sdk/index.ts +0 -5
- package/financeable-typescript/src/sdk/sdk.ts +0 -13
- package/financeable-typescript/src/types/blobs.ts +0 -31
- package/financeable-typescript/src/types/constdatetime.ts +0 -15
- package/financeable-typescript/src/types/enums.ts +0 -16
- package/financeable-typescript/src/types/fp.ts +0 -50
- package/financeable-typescript/src/types/index.ts +0 -11
- package/financeable-typescript/src/types/operations.ts +0 -105
- package/financeable-typescript/src/types/rfcdate.ts +0 -54
- package/financeable-typescript/src/types/streams.ts +0 -21
|
@@ -1,148 +0,0 @@
|
|
|
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 Status = {
|
|
12
|
-
Current: "current",
|
|
13
|
-
Previous: "previous",
|
|
14
|
-
} as const;
|
|
15
|
-
export type Status = ClosedEnum<typeof Status>;
|
|
16
|
-
|
|
17
|
-
export type AddressAttributes = {
|
|
18
|
-
unitNumber?: number | undefined;
|
|
19
|
-
addressType: string;
|
|
20
|
-
fullAddress: string;
|
|
21
|
-
city: string;
|
|
22
|
-
postCode: string;
|
|
23
|
-
streetAddress: string;
|
|
24
|
-
addressLine2: string;
|
|
25
|
-
streetNumber: string;
|
|
26
|
-
streetType: string;
|
|
27
|
-
street: string;
|
|
28
|
-
state: string;
|
|
29
|
-
country: string;
|
|
30
|
-
status: Status;
|
|
31
|
-
monthsAt?: number | undefined;
|
|
32
|
-
yearsAt?: number | undefined;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
|
|
37
|
-
.nativeEnum(Status);
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
|
|
41
|
-
Status$inboundSchema;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
export namespace Status$ {
|
|
48
|
-
/** @deprecated use `Status$inboundSchema` instead. */
|
|
49
|
-
export const inboundSchema = Status$inboundSchema;
|
|
50
|
-
/** @deprecated use `Status$outboundSchema` instead. */
|
|
51
|
-
export const outboundSchema = Status$outboundSchema;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const AddressAttributes$inboundSchema: z.ZodType<
|
|
56
|
-
AddressAttributes,
|
|
57
|
-
z.ZodTypeDef,
|
|
58
|
-
unknown
|
|
59
|
-
> = z.object({
|
|
60
|
-
unitNumber: z.number().int().optional(),
|
|
61
|
-
addressType: z.string(),
|
|
62
|
-
fullAddress: z.string(),
|
|
63
|
-
city: z.string(),
|
|
64
|
-
postCode: z.string(),
|
|
65
|
-
streetAddress: z.string(),
|
|
66
|
-
addressLine2: z.string(),
|
|
67
|
-
streetNumber: z.string(),
|
|
68
|
-
streetType: z.string(),
|
|
69
|
-
street: z.string(),
|
|
70
|
-
state: z.string(),
|
|
71
|
-
country: z.string(),
|
|
72
|
-
status: Status$inboundSchema,
|
|
73
|
-
monthsAt: z.number().int().optional(),
|
|
74
|
-
yearsAt: z.number().int().optional(),
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export type AddressAttributes$Outbound = {
|
|
79
|
-
unitNumber?: number | undefined;
|
|
80
|
-
addressType: string;
|
|
81
|
-
fullAddress: string;
|
|
82
|
-
city: string;
|
|
83
|
-
postCode: string;
|
|
84
|
-
streetAddress: string;
|
|
85
|
-
addressLine2: string;
|
|
86
|
-
streetNumber: string;
|
|
87
|
-
streetType: string;
|
|
88
|
-
street: string;
|
|
89
|
-
state: string;
|
|
90
|
-
country: string;
|
|
91
|
-
status: string;
|
|
92
|
-
monthsAt?: number | undefined;
|
|
93
|
-
yearsAt?: number | undefined;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const AddressAttributes$outboundSchema: z.ZodType<
|
|
98
|
-
AddressAttributes$Outbound,
|
|
99
|
-
z.ZodTypeDef,
|
|
100
|
-
AddressAttributes
|
|
101
|
-
> = z.object({
|
|
102
|
-
unitNumber: z.number().int().optional(),
|
|
103
|
-
addressType: z.string(),
|
|
104
|
-
fullAddress: z.string(),
|
|
105
|
-
city: z.string(),
|
|
106
|
-
postCode: z.string(),
|
|
107
|
-
streetAddress: z.string(),
|
|
108
|
-
addressLine2: z.string(),
|
|
109
|
-
streetNumber: z.string(),
|
|
110
|
-
streetType: z.string(),
|
|
111
|
-
street: z.string(),
|
|
112
|
-
state: z.string(),
|
|
113
|
-
country: z.string(),
|
|
114
|
-
status: Status$outboundSchema,
|
|
115
|
-
monthsAt: z.number().int().optional(),
|
|
116
|
-
yearsAt: z.number().int().optional(),
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @internal
|
|
121
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
122
|
-
*/
|
|
123
|
-
export namespace AddressAttributes$ {
|
|
124
|
-
/** @deprecated use `AddressAttributes$inboundSchema` instead. */
|
|
125
|
-
export const inboundSchema = AddressAttributes$inboundSchema;
|
|
126
|
-
/** @deprecated use `AddressAttributes$outboundSchema` instead. */
|
|
127
|
-
export const outboundSchema = AddressAttributes$outboundSchema;
|
|
128
|
-
/** @deprecated use `AddressAttributes$Outbound` instead. */
|
|
129
|
-
export type Outbound = AddressAttributes$Outbound;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export function addressAttributesToJSON(
|
|
133
|
-
addressAttributes: AddressAttributes,
|
|
134
|
-
): string {
|
|
135
|
-
return JSON.stringify(
|
|
136
|
-
AddressAttributes$outboundSchema.parse(addressAttributes),
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export function addressAttributesFromJSON(
|
|
141
|
-
jsonString: string,
|
|
142
|
-
): SafeParseResult<AddressAttributes, SDKValidationError> {
|
|
143
|
-
return safeParse(
|
|
144
|
-
jsonString,
|
|
145
|
-
(x) => AddressAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
146
|
-
`Failed to parse 'AddressAttributes' from JSON`,
|
|
147
|
-
);
|
|
148
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
|
|
10
|
-
export type APIErrorLinks = {
|
|
11
|
-
/**
|
|
12
|
-
* A URI linking to the Financeable documentation of the error
|
|
13
|
-
*/
|
|
14
|
-
about?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const APIErrorLinks$inboundSchema: z.ZodType<
|
|
19
|
-
APIErrorLinks,
|
|
20
|
-
z.ZodTypeDef,
|
|
21
|
-
unknown
|
|
22
|
-
> = z.object({
|
|
23
|
-
about: z.string().optional(),
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
/** @internal */
|
|
27
|
-
export type APIErrorLinks$Outbound = {
|
|
28
|
-
about?: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const APIErrorLinks$outboundSchema: z.ZodType<
|
|
33
|
-
APIErrorLinks$Outbound,
|
|
34
|
-
z.ZodTypeDef,
|
|
35
|
-
APIErrorLinks
|
|
36
|
-
> = z.object({
|
|
37
|
-
about: z.string().optional(),
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export namespace APIErrorLinks$ {
|
|
45
|
-
/** @deprecated use `APIErrorLinks$inboundSchema` instead. */
|
|
46
|
-
export const inboundSchema = APIErrorLinks$inboundSchema;
|
|
47
|
-
/** @deprecated use `APIErrorLinks$outboundSchema` instead. */
|
|
48
|
-
export const outboundSchema = APIErrorLinks$outboundSchema;
|
|
49
|
-
/** @deprecated use `APIErrorLinks$Outbound` instead. */
|
|
50
|
-
export type Outbound = APIErrorLinks$Outbound;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function apiErrorLinksToJSON(apiErrorLinks: APIErrorLinks): string {
|
|
54
|
-
return JSON.stringify(APIErrorLinks$outboundSchema.parse(apiErrorLinks));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function apiErrorLinksFromJSON(
|
|
58
|
-
jsonString: string,
|
|
59
|
-
): SafeParseResult<APIErrorLinks, SDKValidationError> {
|
|
60
|
-
return safeParse(
|
|
61
|
-
jsonString,
|
|
62
|
-
(x) => APIErrorLinks$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
-
`Failed to parse 'APIErrorLinks' from JSON`,
|
|
64
|
-
);
|
|
65
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
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
|
-
ApplicationStatus,
|
|
11
|
-
ApplicationStatus$inboundSchema,
|
|
12
|
-
ApplicationStatus$outboundSchema,
|
|
13
|
-
} from "./applicationstatus.js";
|
|
14
|
-
import {
|
|
15
|
-
ApplicationType,
|
|
16
|
-
ApplicationType$inboundSchema,
|
|
17
|
-
ApplicationType$outboundSchema,
|
|
18
|
-
} from "./applicationtype.js";
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Application resource attributes
|
|
22
|
-
*/
|
|
23
|
-
export type ApplicationAttributes = {
|
|
24
|
-
/**
|
|
25
|
-
* Human readable identifier
|
|
26
|
-
*/
|
|
27
|
-
humanId?: string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Purpose of the application
|
|
30
|
-
*/
|
|
31
|
-
purpose?: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Type of the application
|
|
34
|
-
*/
|
|
35
|
-
applicationType: ApplicationType;
|
|
36
|
-
/**
|
|
37
|
-
* Current status, must be 'workshop' for new applications
|
|
38
|
-
*/
|
|
39
|
-
status: ApplicationStatus;
|
|
40
|
-
/**
|
|
41
|
-
* Consent document reference
|
|
42
|
-
*/
|
|
43
|
-
consentDocument?: string | undefined;
|
|
44
|
-
introducer?: string | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Creation timestamp
|
|
47
|
-
*/
|
|
48
|
-
createdAt?: string | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Last update timestamp
|
|
51
|
-
*/
|
|
52
|
-
updatedAt?: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const ApplicationAttributes$inboundSchema: z.ZodType<
|
|
57
|
-
ApplicationAttributes,
|
|
58
|
-
z.ZodTypeDef,
|
|
59
|
-
unknown
|
|
60
|
-
> = z.object({
|
|
61
|
-
humanId: z.string().optional(),
|
|
62
|
-
purpose: z.string().optional(),
|
|
63
|
-
applicationType: ApplicationType$inboundSchema,
|
|
64
|
-
status: ApplicationStatus$inboundSchema,
|
|
65
|
-
consentDocument: z.string().optional(),
|
|
66
|
-
introducer: z.string().optional(),
|
|
67
|
-
createdAt: z.string().optional(),
|
|
68
|
-
updatedAt: z.string().optional(),
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export type ApplicationAttributes$Outbound = {
|
|
73
|
-
humanId?: string | undefined;
|
|
74
|
-
purpose?: string | undefined;
|
|
75
|
-
applicationType: string;
|
|
76
|
-
status: string;
|
|
77
|
-
consentDocument?: string | undefined;
|
|
78
|
-
introducer?: string | undefined;
|
|
79
|
-
createdAt?: string | undefined;
|
|
80
|
-
updatedAt?: string | undefined;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export const ApplicationAttributes$outboundSchema: z.ZodType<
|
|
85
|
-
ApplicationAttributes$Outbound,
|
|
86
|
-
z.ZodTypeDef,
|
|
87
|
-
ApplicationAttributes
|
|
88
|
-
> = z.object({
|
|
89
|
-
humanId: z.string().optional(),
|
|
90
|
-
purpose: z.string().optional(),
|
|
91
|
-
applicationType: ApplicationType$outboundSchema,
|
|
92
|
-
status: ApplicationStatus$outboundSchema,
|
|
93
|
-
consentDocument: z.string().optional(),
|
|
94
|
-
introducer: z.string().optional(),
|
|
95
|
-
createdAt: z.string().optional(),
|
|
96
|
-
updatedAt: z.string().optional(),
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
-
*/
|
|
103
|
-
export namespace ApplicationAttributes$ {
|
|
104
|
-
/** @deprecated use `ApplicationAttributes$inboundSchema` instead. */
|
|
105
|
-
export const inboundSchema = ApplicationAttributes$inboundSchema;
|
|
106
|
-
/** @deprecated use `ApplicationAttributes$outboundSchema` instead. */
|
|
107
|
-
export const outboundSchema = ApplicationAttributes$outboundSchema;
|
|
108
|
-
/** @deprecated use `ApplicationAttributes$Outbound` instead. */
|
|
109
|
-
export type Outbound = ApplicationAttributes$Outbound;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function applicationAttributesToJSON(
|
|
113
|
-
applicationAttributes: ApplicationAttributes,
|
|
114
|
-
): string {
|
|
115
|
-
return JSON.stringify(
|
|
116
|
-
ApplicationAttributes$outboundSchema.parse(applicationAttributes),
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function applicationAttributesFromJSON(
|
|
121
|
-
jsonString: string,
|
|
122
|
-
): SafeParseResult<ApplicationAttributes, SDKValidationError> {
|
|
123
|
-
return safeParse(
|
|
124
|
-
jsonString,
|
|
125
|
-
(x) => ApplicationAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
126
|
-
`Failed to parse 'ApplicationAttributes' from JSON`,
|
|
127
|
-
);
|
|
128
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
ApplicationType,
|
|
11
|
-
ApplicationType$inboundSchema,
|
|
12
|
-
ApplicationType$outboundSchema,
|
|
13
|
-
} from "./applicationtype.js";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Application resource attributes
|
|
17
|
-
*/
|
|
18
|
-
export type ApplicationAttributesCreate = {
|
|
19
|
-
/**
|
|
20
|
-
* Purpose of the application
|
|
21
|
-
*/
|
|
22
|
-
purpose?: string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Type of the application
|
|
25
|
-
*/
|
|
26
|
-
applicationType: ApplicationType;
|
|
27
|
-
introducer?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const ApplicationAttributesCreate$inboundSchema: z.ZodType<
|
|
32
|
-
ApplicationAttributesCreate,
|
|
33
|
-
z.ZodTypeDef,
|
|
34
|
-
unknown
|
|
35
|
-
> = z.object({
|
|
36
|
-
purpose: z.string().optional(),
|
|
37
|
-
applicationType: ApplicationType$inboundSchema,
|
|
38
|
-
introducer: z.string().optional(),
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type ApplicationAttributesCreate$Outbound = {
|
|
43
|
-
purpose?: string | undefined;
|
|
44
|
-
applicationType: string;
|
|
45
|
-
introducer?: string | undefined;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const ApplicationAttributesCreate$outboundSchema: z.ZodType<
|
|
50
|
-
ApplicationAttributesCreate$Outbound,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
ApplicationAttributesCreate
|
|
53
|
-
> = z.object({
|
|
54
|
-
purpose: z.string().optional(),
|
|
55
|
-
applicationType: ApplicationType$outboundSchema,
|
|
56
|
-
introducer: z.string().optional(),
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
-
*/
|
|
63
|
-
export namespace ApplicationAttributesCreate$ {
|
|
64
|
-
/** @deprecated use `ApplicationAttributesCreate$inboundSchema` instead. */
|
|
65
|
-
export const inboundSchema = ApplicationAttributesCreate$inboundSchema;
|
|
66
|
-
/** @deprecated use `ApplicationAttributesCreate$outboundSchema` instead. */
|
|
67
|
-
export const outboundSchema = ApplicationAttributesCreate$outboundSchema;
|
|
68
|
-
/** @deprecated use `ApplicationAttributesCreate$Outbound` instead. */
|
|
69
|
-
export type Outbound = ApplicationAttributesCreate$Outbound;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function applicationAttributesCreateToJSON(
|
|
73
|
-
applicationAttributesCreate: ApplicationAttributesCreate,
|
|
74
|
-
): string {
|
|
75
|
-
return JSON.stringify(
|
|
76
|
-
ApplicationAttributesCreate$outboundSchema.parse(
|
|
77
|
-
applicationAttributesCreate,
|
|
78
|
-
),
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function applicationAttributesCreateFromJSON(
|
|
83
|
-
jsonString: string,
|
|
84
|
-
): SafeParseResult<ApplicationAttributesCreate, SDKValidationError> {
|
|
85
|
-
return safeParse(
|
|
86
|
-
jsonString,
|
|
87
|
-
(x) => ApplicationAttributesCreate$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
-
`Failed to parse 'ApplicationAttributesCreate' from JSON`,
|
|
89
|
-
);
|
|
90
|
-
}
|