@moovio/sdk 0.3.0 → 0.3.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 +2 -2
- package/docs/sdks/disputes/README.md +9 -7
- package/docs/sdks/underwriting/README.md +34 -34
- package/funcs/disputesList.d.ts +2 -1
- package/funcs/disputesList.d.ts.map +1 -1
- package/funcs/disputesList.js +3 -2
- package/funcs/disputesList.js.map +1 -1
- package/funcs/disputesUploadEvidenceFile.d.ts +1 -1
- package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
- package/funcs/disputesUploadEvidenceFile.js +7 -1
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/{underwritingUpdate.d.ts → underwritingUpsert.d.ts} +3 -3
- package/funcs/{underwritingUpdate.d.ts.map → underwritingUpsert.d.ts.map} +1 -1
- package/funcs/{underwritingUpdate.js → underwritingUpsert.js} +7 -7
- package/funcs/{underwritingUpdate.js.map → underwritingUpsert.js.map} +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/capability.d.ts +9 -2
- package/models/components/capability.d.ts.map +1 -1
- package/models/components/capability.js +2 -2
- package/models/components/capability.js.map +1 -1
- package/models/components/capabilityid.d.ts +11 -0
- package/models/components/capabilityid.d.ts.map +1 -1
- package/models/components/capabilityid.js +5 -0
- package/models/components/capabilityid.js.map +1 -1
- package/models/components/createbusinessprofileupdate.d.ts +3 -3
- package/models/components/createbusinessprofileupdate.d.ts.map +1 -1
- package/models/components/createbusinessprofileupdate.js +3 -3
- package/models/components/createbusinessprofileupdate.js.map +1 -1
- package/models/components/evidenceuploadresponse.d.ts +63 -0
- package/models/components/evidenceuploadresponse.d.ts.map +1 -0
- package/models/components/evidenceuploadresponse.js +82 -0
- package/models/components/evidenceuploadresponse.js.map +1 -0
- package/models/components/filedetails.d.ts +2 -2
- package/models/components/filedetails.d.ts.map +1 -1
- package/models/components/filedetails.js +2 -2
- package/models/components/filedetails.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/industrycodes.d.ts +6 -6
- package/models/components/industrycodes.d.ts.map +1 -1
- package/models/components/industrycodes.js +6 -6
- package/models/components/industrycodes.js.map +1 -1
- package/models/errors/fileuploadvalidationerror.d.ts +63 -0
- package/models/errors/fileuploadvalidationerror.d.ts.map +1 -0
- package/models/errors/fileuploadvalidationerror.js +113 -0
- package/models/errors/fileuploadvalidationerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/disablecapability.d.ts +4 -0
- package/models/operations/disablecapability.d.ts.map +1 -1
- package/models/operations/disablecapability.js.map +1 -1
- package/models/operations/getcapability.d.ts +4 -0
- package/models/operations/getcapability.d.ts.map +1 -1
- package/models/operations/getcapability.js.map +1 -1
- package/models/operations/index.d.ts +1 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/initiatebankaccountverification.d.ts +2 -2
- package/models/operations/initiatebankaccountverification.d.ts.map +1 -1
- package/models/operations/initiatebankaccountverification.js +2 -2
- package/models/operations/initiatebankaccountverification.js.map +1 -1
- package/models/operations/uploaddisputeevidencefile.d.ts +2 -0
- package/models/operations/uploaddisputeevidencefile.d.ts.map +1 -1
- package/models/operations/uploaddisputeevidencefile.js +4 -0
- package/models/operations/uploaddisputeevidencefile.js.map +1 -1
- package/models/operations/upsertunderwriting.d.ts +101 -0
- package/models/operations/{updateunderwriting.d.ts.map → upsertunderwriting.d.ts.map} +1 -1
- package/models/operations/{updateunderwriting.js → upsertunderwriting.js} +47 -47
- package/models/operations/{updateunderwriting.js.map → upsertunderwriting.js.map} +1 -1
- package/package.json +1 -1
- package/sdk/disputes.d.ts +1 -1
- package/sdk/disputes.d.ts.map +1 -1
- package/sdk/underwriting.d.ts +2 -2
- package/sdk/underwriting.js +4 -4
- package/src/funcs/disputesList.ts +5 -1
- package/src/funcs/disputesUploadEvidenceFile.ts +12 -7
- package/src/funcs/{underwritingUpdate.ts → underwritingUpsert.ts} +8 -8
- package/src/lib/config.ts +3 -3
- package/src/models/components/capability.ts +11 -4
- package/src/models/components/capabilityid.ts +9 -0
- package/src/models/components/createbusinessprofileupdate.ts +9 -9
- package/src/models/components/evidenceuploadresponse.ts +116 -0
- package/src/models/components/filedetails.ts +4 -4
- package/src/models/components/index.ts +1 -1
- package/src/models/components/industrycodes.ts +12 -12
- package/src/models/errors/fileuploadvalidationerror.ts +133 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/disablecapability.ts +4 -0
- package/src/models/operations/getcapability.ts +4 -0
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/initiatebankaccountverification.ts +4 -4
- package/src/models/operations/uploaddisputeevidencefile.ts +6 -0
- package/src/models/operations/{updateunderwriting.ts → upsertunderwriting.ts} +63 -63
- package/src/sdk/disputes.ts +1 -1
- package/src/sdk/underwriting.ts +6 -6
- package/models/components/industrycodesupdate.d.ts +0 -33
- package/models/components/industrycodesupdate.d.ts.map +0 -1
- package/models/components/industrycodesupdate.js +0 -73
- package/models/components/industrycodesupdate.js.map +0 -1
- package/models/operations/updateunderwriting.d.ts +0 -101
- package/src/models/components/industrycodesupdate.ts +0 -74
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type UpsertUnderwritingGlobals = {
|
|
13
13
|
/**
|
|
14
14
|
* Specify an API version.
|
|
15
15
|
*
|
|
@@ -26,19 +26,19 @@ export type UpdateUnderwritingGlobals = {
|
|
|
26
26
|
xMoovVersion?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
export type
|
|
29
|
+
export type UpsertUnderwritingRequest = {
|
|
30
30
|
accountID: string;
|
|
31
31
|
updateUnderwriting: components.UpdateUnderwriting;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export type
|
|
34
|
+
export type UpsertUnderwritingResponse = {
|
|
35
35
|
headers: { [k: string]: Array<string> };
|
|
36
36
|
result: components.Underwriting;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
40
|
-
export const
|
|
41
|
-
|
|
40
|
+
export const UpsertUnderwritingGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
UpsertUnderwritingGlobals,
|
|
42
42
|
z.ZodTypeDef,
|
|
43
43
|
unknown
|
|
44
44
|
> = z.object({
|
|
@@ -50,15 +50,15 @@ export const UpdateUnderwritingGlobals$inboundSchema: z.ZodType<
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
/** @internal */
|
|
53
|
-
export type
|
|
53
|
+
export type UpsertUnderwritingGlobals$Outbound = {
|
|
54
54
|
"x-moov-version": string;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
58
|
-
export const
|
|
59
|
-
|
|
58
|
+
export const UpsertUnderwritingGlobals$outboundSchema: z.ZodType<
|
|
59
|
+
UpsertUnderwritingGlobals$Outbound,
|
|
60
60
|
z.ZodTypeDef,
|
|
61
|
-
|
|
61
|
+
UpsertUnderwritingGlobals
|
|
62
62
|
> = z.object({
|
|
63
63
|
xMoovVersion: z.string().default("v2024.01"),
|
|
64
64
|
}).transform((v) => {
|
|
@@ -71,36 +71,36 @@ export const UpdateUnderwritingGlobals$outboundSchema: z.ZodType<
|
|
|
71
71
|
* @internal
|
|
72
72
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
73
|
*/
|
|
74
|
-
export namespace
|
|
75
|
-
/** @deprecated use `
|
|
76
|
-
export const inboundSchema =
|
|
77
|
-
/** @deprecated use `
|
|
78
|
-
export const outboundSchema =
|
|
79
|
-
/** @deprecated use `
|
|
80
|
-
export type Outbound =
|
|
74
|
+
export namespace UpsertUnderwritingGlobals$ {
|
|
75
|
+
/** @deprecated use `UpsertUnderwritingGlobals$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = UpsertUnderwritingGlobals$inboundSchema;
|
|
77
|
+
/** @deprecated use `UpsertUnderwritingGlobals$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = UpsertUnderwritingGlobals$outboundSchema;
|
|
79
|
+
/** @deprecated use `UpsertUnderwritingGlobals$Outbound` instead. */
|
|
80
|
+
export type Outbound = UpsertUnderwritingGlobals$Outbound;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export function
|
|
84
|
-
|
|
83
|
+
export function upsertUnderwritingGlobalsToJSON(
|
|
84
|
+
upsertUnderwritingGlobals: UpsertUnderwritingGlobals,
|
|
85
85
|
): string {
|
|
86
86
|
return JSON.stringify(
|
|
87
|
-
|
|
87
|
+
UpsertUnderwritingGlobals$outboundSchema.parse(upsertUnderwritingGlobals),
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export function
|
|
91
|
+
export function upsertUnderwritingGlobalsFromJSON(
|
|
92
92
|
jsonString: string,
|
|
93
|
-
): SafeParseResult<
|
|
93
|
+
): SafeParseResult<UpsertUnderwritingGlobals, SDKValidationError> {
|
|
94
94
|
return safeParse(
|
|
95
95
|
jsonString,
|
|
96
|
-
(x) =>
|
|
97
|
-
`Failed to parse '
|
|
96
|
+
(x) => UpsertUnderwritingGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'UpsertUnderwritingGlobals' from JSON`,
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/** @internal */
|
|
102
|
-
export const
|
|
103
|
-
|
|
102
|
+
export const UpsertUnderwritingRequest$inboundSchema: z.ZodType<
|
|
103
|
+
UpsertUnderwritingRequest,
|
|
104
104
|
z.ZodTypeDef,
|
|
105
105
|
unknown
|
|
106
106
|
> = z.object({
|
|
@@ -113,16 +113,16 @@ export const UpdateUnderwritingRequest$inboundSchema: z.ZodType<
|
|
|
113
113
|
});
|
|
114
114
|
|
|
115
115
|
/** @internal */
|
|
116
|
-
export type
|
|
116
|
+
export type UpsertUnderwritingRequest$Outbound = {
|
|
117
117
|
accountID: string;
|
|
118
118
|
UpdateUnderwriting: components.UpdateUnderwriting$Outbound;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
/** @internal */
|
|
122
|
-
export const
|
|
123
|
-
|
|
122
|
+
export const UpsertUnderwritingRequest$outboundSchema: z.ZodType<
|
|
123
|
+
UpsertUnderwritingRequest$Outbound,
|
|
124
124
|
z.ZodTypeDef,
|
|
125
|
-
|
|
125
|
+
UpsertUnderwritingRequest
|
|
126
126
|
> = z.object({
|
|
127
127
|
accountID: z.string(),
|
|
128
128
|
updateUnderwriting: components.UpdateUnderwriting$outboundSchema,
|
|
@@ -136,36 +136,36 @@ export const UpdateUnderwritingRequest$outboundSchema: z.ZodType<
|
|
|
136
136
|
* @internal
|
|
137
137
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
138
|
*/
|
|
139
|
-
export namespace
|
|
140
|
-
/** @deprecated use `
|
|
141
|
-
export const inboundSchema =
|
|
142
|
-
/** @deprecated use `
|
|
143
|
-
export const outboundSchema =
|
|
144
|
-
/** @deprecated use `
|
|
145
|
-
export type Outbound =
|
|
139
|
+
export namespace UpsertUnderwritingRequest$ {
|
|
140
|
+
/** @deprecated use `UpsertUnderwritingRequest$inboundSchema` instead. */
|
|
141
|
+
export const inboundSchema = UpsertUnderwritingRequest$inboundSchema;
|
|
142
|
+
/** @deprecated use `UpsertUnderwritingRequest$outboundSchema` instead. */
|
|
143
|
+
export const outboundSchema = UpsertUnderwritingRequest$outboundSchema;
|
|
144
|
+
/** @deprecated use `UpsertUnderwritingRequest$Outbound` instead. */
|
|
145
|
+
export type Outbound = UpsertUnderwritingRequest$Outbound;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export function
|
|
149
|
-
|
|
148
|
+
export function upsertUnderwritingRequestToJSON(
|
|
149
|
+
upsertUnderwritingRequest: UpsertUnderwritingRequest,
|
|
150
150
|
): string {
|
|
151
151
|
return JSON.stringify(
|
|
152
|
-
|
|
152
|
+
UpsertUnderwritingRequest$outboundSchema.parse(upsertUnderwritingRequest),
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
export function
|
|
156
|
+
export function upsertUnderwritingRequestFromJSON(
|
|
157
157
|
jsonString: string,
|
|
158
|
-
): SafeParseResult<
|
|
158
|
+
): SafeParseResult<UpsertUnderwritingRequest, SDKValidationError> {
|
|
159
159
|
return safeParse(
|
|
160
160
|
jsonString,
|
|
161
|
-
(x) =>
|
|
162
|
-
`Failed to parse '
|
|
161
|
+
(x) => UpsertUnderwritingRequest$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
+
`Failed to parse 'UpsertUnderwritingRequest' from JSON`,
|
|
163
163
|
);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/** @internal */
|
|
167
|
-
export const
|
|
168
|
-
|
|
167
|
+
export const UpsertUnderwritingResponse$inboundSchema: z.ZodType<
|
|
168
|
+
UpsertUnderwritingResponse,
|
|
169
169
|
z.ZodTypeDef,
|
|
170
170
|
unknown
|
|
171
171
|
> = z.object({
|
|
@@ -179,16 +179,16 @@ export const UpdateUnderwritingResponse$inboundSchema: z.ZodType<
|
|
|
179
179
|
});
|
|
180
180
|
|
|
181
181
|
/** @internal */
|
|
182
|
-
export type
|
|
182
|
+
export type UpsertUnderwritingResponse$Outbound = {
|
|
183
183
|
Headers: { [k: string]: Array<string> };
|
|
184
184
|
Result: components.Underwriting$Outbound;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
/** @internal */
|
|
188
|
-
export const
|
|
189
|
-
|
|
188
|
+
export const UpsertUnderwritingResponse$outboundSchema: z.ZodType<
|
|
189
|
+
UpsertUnderwritingResponse$Outbound,
|
|
190
190
|
z.ZodTypeDef,
|
|
191
|
-
|
|
191
|
+
UpsertUnderwritingResponse
|
|
192
192
|
> = z.object({
|
|
193
193
|
headers: z.record(z.array(z.string())),
|
|
194
194
|
result: components.Underwriting$outboundSchema,
|
|
@@ -203,29 +203,29 @@ export const UpdateUnderwritingResponse$outboundSchema: z.ZodType<
|
|
|
203
203
|
* @internal
|
|
204
204
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
205
205
|
*/
|
|
206
|
-
export namespace
|
|
207
|
-
/** @deprecated use `
|
|
208
|
-
export const inboundSchema =
|
|
209
|
-
/** @deprecated use `
|
|
210
|
-
export const outboundSchema =
|
|
211
|
-
/** @deprecated use `
|
|
212
|
-
export type Outbound =
|
|
206
|
+
export namespace UpsertUnderwritingResponse$ {
|
|
207
|
+
/** @deprecated use `UpsertUnderwritingResponse$inboundSchema` instead. */
|
|
208
|
+
export const inboundSchema = UpsertUnderwritingResponse$inboundSchema;
|
|
209
|
+
/** @deprecated use `UpsertUnderwritingResponse$outboundSchema` instead. */
|
|
210
|
+
export const outboundSchema = UpsertUnderwritingResponse$outboundSchema;
|
|
211
|
+
/** @deprecated use `UpsertUnderwritingResponse$Outbound` instead. */
|
|
212
|
+
export type Outbound = UpsertUnderwritingResponse$Outbound;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
export function
|
|
216
|
-
|
|
215
|
+
export function upsertUnderwritingResponseToJSON(
|
|
216
|
+
upsertUnderwritingResponse: UpsertUnderwritingResponse,
|
|
217
217
|
): string {
|
|
218
218
|
return JSON.stringify(
|
|
219
|
-
|
|
219
|
+
UpsertUnderwritingResponse$outboundSchema.parse(upsertUnderwritingResponse),
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
export function
|
|
223
|
+
export function upsertUnderwritingResponseFromJSON(
|
|
224
224
|
jsonString: string,
|
|
225
|
-
): SafeParseResult<
|
|
225
|
+
): SafeParseResult<UpsertUnderwritingResponse, SDKValidationError> {
|
|
226
226
|
return safeParse(
|
|
227
227
|
jsonString,
|
|
228
|
-
(x) =>
|
|
229
|
-
`Failed to parse '
|
|
228
|
+
(x) => UpsertUnderwritingResponse$inboundSchema.parse(JSON.parse(x)),
|
|
229
|
+
`Failed to parse 'UpsertUnderwritingResponse' from JSON`,
|
|
230
230
|
);
|
|
231
231
|
}
|
package/src/sdk/disputes.ts
CHANGED
|
@@ -110,7 +110,7 @@ export class Disputes extends ClientSDK {
|
|
|
110
110
|
async uploadEvidenceFile(
|
|
111
111
|
request: operations.UploadDisputeEvidenceFileRequest,
|
|
112
112
|
options?: RequestOptions,
|
|
113
|
-
): Promise<operations.UploadDisputeEvidenceFileResponse
|
|
113
|
+
): Promise<operations.UploadDisputeEvidenceFileResponse> {
|
|
114
114
|
return unwrapAsync(disputesUploadEvidenceFile(
|
|
115
115
|
this,
|
|
116
116
|
request,
|
package/src/sdk/underwriting.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { underwritingGet } from "../funcs/underwritingGet.js";
|
|
6
|
-
import {
|
|
6
|
+
import { underwritingUpsert } from "../funcs/underwritingUpsert.js";
|
|
7
7
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
8
|
import * as operations from "../models/operations/index.js";
|
|
9
9
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -29,18 +29,18 @@ export class Underwriting extends ClientSDK {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Create or update the account's underwriting.
|
|
33
33
|
*
|
|
34
34
|
* Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/underwriting/) to learn more.
|
|
35
35
|
*
|
|
36
36
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
37
37
|
* you'll need to specify the `/accounts/{accountID}/profile.write` scope.
|
|
38
38
|
*/
|
|
39
|
-
async
|
|
40
|
-
request: operations.
|
|
39
|
+
async upsert(
|
|
40
|
+
request: operations.UpsertUnderwritingRequest,
|
|
41
41
|
options?: RequestOptions,
|
|
42
|
-
): Promise<operations.
|
|
43
|
-
return unwrapAsync(
|
|
42
|
+
): Promise<operations.UpsertUnderwritingResponse> {
|
|
43
|
+
return unwrapAsync(underwritingUpsert(
|
|
44
44
|
this,
|
|
45
45
|
request,
|
|
46
46
|
options,
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type IndustryCodesUpdate = {
|
|
5
|
-
naics?: string | undefined;
|
|
6
|
-
sic?: string | undefined;
|
|
7
|
-
mcc?: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
/** @internal */
|
|
10
|
-
export declare const IndustryCodesUpdate$inboundSchema: z.ZodType<IndustryCodesUpdate, z.ZodTypeDef, unknown>;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export type IndustryCodesUpdate$Outbound = {
|
|
13
|
-
naics?: string | undefined;
|
|
14
|
-
sic?: string | undefined;
|
|
15
|
-
mcc?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
/** @internal */
|
|
18
|
-
export declare const IndustryCodesUpdate$outboundSchema: z.ZodType<IndustryCodesUpdate$Outbound, z.ZodTypeDef, IndustryCodesUpdate>;
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
-
*/
|
|
23
|
-
export declare namespace IndustryCodesUpdate$ {
|
|
24
|
-
/** @deprecated use `IndustryCodesUpdate$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodType<IndustryCodesUpdate, z.ZodTypeDef, unknown>;
|
|
26
|
-
/** @deprecated use `IndustryCodesUpdate$outboundSchema` instead. */
|
|
27
|
-
const outboundSchema: z.ZodType<IndustryCodesUpdate$Outbound, z.ZodTypeDef, IndustryCodesUpdate>;
|
|
28
|
-
/** @deprecated use `IndustryCodesUpdate$Outbound` instead. */
|
|
29
|
-
type Outbound = IndustryCodesUpdate$Outbound;
|
|
30
|
-
}
|
|
31
|
-
export declare function industryCodesUpdateToJSON(industryCodesUpdate: IndustryCodesUpdate): string;
|
|
32
|
-
export declare function industryCodesUpdateFromJSON(jsonString: string): SafeParseResult<IndustryCodesUpdate, SDKValidationError>;
|
|
33
|
-
//# sourceMappingURL=industrycodesupdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"industrycodesupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/industrycodesupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAKnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.IndustryCodesUpdate$ = exports.IndustryCodesUpdate$outboundSchema = exports.IndustryCodesUpdate$inboundSchema = void 0;
|
|
40
|
-
exports.industryCodesUpdateToJSON = industryCodesUpdateToJSON;
|
|
41
|
-
exports.industryCodesUpdateFromJSON = industryCodesUpdateFromJSON;
|
|
42
|
-
const z = __importStar(require("zod"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
/** @internal */
|
|
45
|
-
exports.IndustryCodesUpdate$inboundSchema = z.object({
|
|
46
|
-
naics: z.string().optional(),
|
|
47
|
-
sic: z.string().optional(),
|
|
48
|
-
mcc: z.string().optional(),
|
|
49
|
-
});
|
|
50
|
-
/** @internal */
|
|
51
|
-
exports.IndustryCodesUpdate$outboundSchema = z.object({
|
|
52
|
-
naics: z.string().optional(),
|
|
53
|
-
sic: z.string().optional(),
|
|
54
|
-
mcc: z.string().optional(),
|
|
55
|
-
});
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
var IndustryCodesUpdate$;
|
|
61
|
-
(function (IndustryCodesUpdate$) {
|
|
62
|
-
/** @deprecated use `IndustryCodesUpdate$inboundSchema` instead. */
|
|
63
|
-
IndustryCodesUpdate$.inboundSchema = exports.IndustryCodesUpdate$inboundSchema;
|
|
64
|
-
/** @deprecated use `IndustryCodesUpdate$outboundSchema` instead. */
|
|
65
|
-
IndustryCodesUpdate$.outboundSchema = exports.IndustryCodesUpdate$outboundSchema;
|
|
66
|
-
})(IndustryCodesUpdate$ || (exports.IndustryCodesUpdate$ = IndustryCodesUpdate$ = {}));
|
|
67
|
-
function industryCodesUpdateToJSON(industryCodesUpdate) {
|
|
68
|
-
return JSON.stringify(exports.IndustryCodesUpdate$outboundSchema.parse(industryCodesUpdate));
|
|
69
|
-
}
|
|
70
|
-
function industryCodesUpdateFromJSON(jsonString) {
|
|
71
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.IndustryCodesUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IndustryCodesUpdate' from JSON`);
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=industrycodesupdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"industrycodesupdate.js","sourceRoot":"","sources":["../../src/models/components/industrycodesupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDH,8DAMC;AAED,kEAQC;AArED,uCAAyB;AACzB,qDAAiD;AAUjD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type UpdateUnderwritingGlobals = {
|
|
6
|
-
/**
|
|
7
|
-
* Specify an API version.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
*
|
|
11
|
-
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
12
|
-
* - `YYYY` is the year
|
|
13
|
-
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
14
|
-
* - `BB` is an **optional** build number starting at `.01` for subsequent builds in the same quarter.
|
|
15
|
-
* - If no build number is specified, the version refers to the initial release of the quarter.
|
|
16
|
-
*
|
|
17
|
-
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
18
|
-
*/
|
|
19
|
-
xMoovVersion?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
export type UpdateUnderwritingRequest = {
|
|
22
|
-
accountID: string;
|
|
23
|
-
updateUnderwriting: components.UpdateUnderwriting;
|
|
24
|
-
};
|
|
25
|
-
export type UpdateUnderwritingResponse = {
|
|
26
|
-
headers: {
|
|
27
|
-
[k: string]: Array<string>;
|
|
28
|
-
};
|
|
29
|
-
result: components.Underwriting;
|
|
30
|
-
};
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare const UpdateUnderwritingGlobals$inboundSchema: z.ZodType<UpdateUnderwritingGlobals, z.ZodTypeDef, unknown>;
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type UpdateUnderwritingGlobals$Outbound = {
|
|
35
|
-
"x-moov-version": string;
|
|
36
|
-
};
|
|
37
|
-
/** @internal */
|
|
38
|
-
export declare const UpdateUnderwritingGlobals$outboundSchema: z.ZodType<UpdateUnderwritingGlobals$Outbound, z.ZodTypeDef, UpdateUnderwritingGlobals>;
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
-
*/
|
|
43
|
-
export declare namespace UpdateUnderwritingGlobals$ {
|
|
44
|
-
/** @deprecated use `UpdateUnderwritingGlobals$inboundSchema` instead. */
|
|
45
|
-
const inboundSchema: z.ZodType<UpdateUnderwritingGlobals, z.ZodTypeDef, unknown>;
|
|
46
|
-
/** @deprecated use `UpdateUnderwritingGlobals$outboundSchema` instead. */
|
|
47
|
-
const outboundSchema: z.ZodType<UpdateUnderwritingGlobals$Outbound, z.ZodTypeDef, UpdateUnderwritingGlobals>;
|
|
48
|
-
/** @deprecated use `UpdateUnderwritingGlobals$Outbound` instead. */
|
|
49
|
-
type Outbound = UpdateUnderwritingGlobals$Outbound;
|
|
50
|
-
}
|
|
51
|
-
export declare function updateUnderwritingGlobalsToJSON(updateUnderwritingGlobals: UpdateUnderwritingGlobals): string;
|
|
52
|
-
export declare function updateUnderwritingGlobalsFromJSON(jsonString: string): SafeParseResult<UpdateUnderwritingGlobals, SDKValidationError>;
|
|
53
|
-
/** @internal */
|
|
54
|
-
export declare const UpdateUnderwritingRequest$inboundSchema: z.ZodType<UpdateUnderwritingRequest, z.ZodTypeDef, unknown>;
|
|
55
|
-
/** @internal */
|
|
56
|
-
export type UpdateUnderwritingRequest$Outbound = {
|
|
57
|
-
accountID: string;
|
|
58
|
-
UpdateUnderwriting: components.UpdateUnderwriting$Outbound;
|
|
59
|
-
};
|
|
60
|
-
/** @internal */
|
|
61
|
-
export declare const UpdateUnderwritingRequest$outboundSchema: z.ZodType<UpdateUnderwritingRequest$Outbound, z.ZodTypeDef, UpdateUnderwritingRequest>;
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
-
*/
|
|
66
|
-
export declare namespace UpdateUnderwritingRequest$ {
|
|
67
|
-
/** @deprecated use `UpdateUnderwritingRequest$inboundSchema` instead. */
|
|
68
|
-
const inboundSchema: z.ZodType<UpdateUnderwritingRequest, z.ZodTypeDef, unknown>;
|
|
69
|
-
/** @deprecated use `UpdateUnderwritingRequest$outboundSchema` instead. */
|
|
70
|
-
const outboundSchema: z.ZodType<UpdateUnderwritingRequest$Outbound, z.ZodTypeDef, UpdateUnderwritingRequest>;
|
|
71
|
-
/** @deprecated use `UpdateUnderwritingRequest$Outbound` instead. */
|
|
72
|
-
type Outbound = UpdateUnderwritingRequest$Outbound;
|
|
73
|
-
}
|
|
74
|
-
export declare function updateUnderwritingRequestToJSON(updateUnderwritingRequest: UpdateUnderwritingRequest): string;
|
|
75
|
-
export declare function updateUnderwritingRequestFromJSON(jsonString: string): SafeParseResult<UpdateUnderwritingRequest, SDKValidationError>;
|
|
76
|
-
/** @internal */
|
|
77
|
-
export declare const UpdateUnderwritingResponse$inboundSchema: z.ZodType<UpdateUnderwritingResponse, z.ZodTypeDef, unknown>;
|
|
78
|
-
/** @internal */
|
|
79
|
-
export type UpdateUnderwritingResponse$Outbound = {
|
|
80
|
-
Headers: {
|
|
81
|
-
[k: string]: Array<string>;
|
|
82
|
-
};
|
|
83
|
-
Result: components.Underwriting$Outbound;
|
|
84
|
-
};
|
|
85
|
-
/** @internal */
|
|
86
|
-
export declare const UpdateUnderwritingResponse$outboundSchema: z.ZodType<UpdateUnderwritingResponse$Outbound, z.ZodTypeDef, UpdateUnderwritingResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
-
*/
|
|
91
|
-
export declare namespace UpdateUnderwritingResponse$ {
|
|
92
|
-
/** @deprecated use `UpdateUnderwritingResponse$inboundSchema` instead. */
|
|
93
|
-
const inboundSchema: z.ZodType<UpdateUnderwritingResponse, z.ZodTypeDef, unknown>;
|
|
94
|
-
/** @deprecated use `UpdateUnderwritingResponse$outboundSchema` instead. */
|
|
95
|
-
const outboundSchema: z.ZodType<UpdateUnderwritingResponse$Outbound, z.ZodTypeDef, UpdateUnderwritingResponse>;
|
|
96
|
-
/** @deprecated use `UpdateUnderwritingResponse$Outbound` instead. */
|
|
97
|
-
type Outbound = UpdateUnderwritingResponse$Outbound;
|
|
98
|
-
}
|
|
99
|
-
export declare function updateUnderwritingResponseToJSON(updateUnderwritingResponse: UpdateUnderwritingResponse): string;
|
|
100
|
-
export declare function updateUnderwritingResponseFromJSON(jsonString: string): SafeParseResult<UpdateUnderwritingResponse, SDKValidationError>;
|
|
101
|
-
//# sourceMappingURL=updateunderwriting.d.ts.map
|
|
@@ -1,74 +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 IndustryCodesUpdate = {
|
|
11
|
-
naics?: string | undefined;
|
|
12
|
-
sic?: string | undefined;
|
|
13
|
-
mcc?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const IndustryCodesUpdate$inboundSchema: z.ZodType<
|
|
18
|
-
IndustryCodesUpdate,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
unknown
|
|
21
|
-
> = z.object({
|
|
22
|
-
naics: z.string().optional(),
|
|
23
|
-
sic: z.string().optional(),
|
|
24
|
-
mcc: z.string().optional(),
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export type IndustryCodesUpdate$Outbound = {
|
|
29
|
-
naics?: string | undefined;
|
|
30
|
-
sic?: string | undefined;
|
|
31
|
-
mcc?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const IndustryCodesUpdate$outboundSchema: z.ZodType<
|
|
36
|
-
IndustryCodesUpdate$Outbound,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
IndustryCodesUpdate
|
|
39
|
-
> = z.object({
|
|
40
|
-
naics: z.string().optional(),
|
|
41
|
-
sic: z.string().optional(),
|
|
42
|
-
mcc: z.string().optional(),
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
-
*/
|
|
49
|
-
export namespace IndustryCodesUpdate$ {
|
|
50
|
-
/** @deprecated use `IndustryCodesUpdate$inboundSchema` instead. */
|
|
51
|
-
export const inboundSchema = IndustryCodesUpdate$inboundSchema;
|
|
52
|
-
/** @deprecated use `IndustryCodesUpdate$outboundSchema` instead. */
|
|
53
|
-
export const outboundSchema = IndustryCodesUpdate$outboundSchema;
|
|
54
|
-
/** @deprecated use `IndustryCodesUpdate$Outbound` instead. */
|
|
55
|
-
export type Outbound = IndustryCodesUpdate$Outbound;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function industryCodesUpdateToJSON(
|
|
59
|
-
industryCodesUpdate: IndustryCodesUpdate,
|
|
60
|
-
): string {
|
|
61
|
-
return JSON.stringify(
|
|
62
|
-
IndustryCodesUpdate$outboundSchema.parse(industryCodesUpdate),
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function industryCodesUpdateFromJSON(
|
|
67
|
-
jsonString: string,
|
|
68
|
-
): SafeParseResult<IndustryCodesUpdate, SDKValidationError> {
|
|
69
|
-
return safeParse(
|
|
70
|
-
jsonString,
|
|
71
|
-
(x) => IndustryCodesUpdate$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
-
`Failed to parse 'IndustryCodesUpdate' from JSON`,
|
|
73
|
-
);
|
|
74
|
-
}
|