@moovio/sdk 0.10.6 → 0.10.8
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 +5 -5
- package/bin/mcp-server.js +407 -398
- package/bin/mcp-server.js.map +33 -34
- package/docs/sdks/accounts/README.md +10 -30
- package/docs/sdks/adjustments/README.md +6 -6
- package/docs/sdks/applepay/README.md +12 -12
- package/docs/sdks/bankaccounts/README.md +24 -26
- package/docs/sdks/branding/README.md +4 -4
- package/docs/sdks/capabilities/README.md +10 -10
- package/docs/sdks/cardissuing/README.md +30 -22
- package/docs/sdks/cards/README.md +10 -16
- package/docs/sdks/disputes/README.md +54 -54
- package/docs/sdks/enrichedprofile/README.md +2 -2
- package/docs/sdks/files/README.md +8 -8
- package/docs/sdks/issuingtransactions/README.md +16 -16
- package/docs/sdks/paymentlinks/README.md +14 -14
- package/docs/sdks/paymentmethods/README.md +6 -6
- package/docs/sdks/receipts/README.md +12 -9
- package/docs/sdks/representatives/README.md +16 -16
- package/docs/sdks/scheduling/README.md +96 -96
- package/docs/sdks/sweeps/README.md +18 -18
- package/docs/sdks/transfers/README.md +10 -10
- package/docs/sdks/underwriting/README.md +2 -2
- package/docs/sdks/wallets/README.md +6 -6
- package/docs/sdks/wallettransactions/README.md +10 -10
- package/funcs/receiptsCreate.d.ts +1 -1
- package/funcs/receiptsCreate.d.ts.map +1 -1
- package/funcs/receiptsCreate.js +1 -1
- package/funcs/receiptsCreate.js.map +1 -1
- package/funcs/receiptsList.d.ts +1 -1
- package/funcs/receiptsList.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts.map +1 -1
- package/mcp-server/prompts.js +5 -1
- package/mcp-server/prompts.js.map +1 -1
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +10 -2
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +2 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/receiptsList.js +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -3
- package/mcp-server/tools.js.map +1 -1
- package/models/components/achtransactionstatus.d.ts +3 -0
- package/models/components/achtransactionstatus.d.ts.map +1 -1
- package/models/components/achtransactionstatus.js +1 -0
- package/models/components/achtransactionstatus.js.map +1 -1
- package/models/components/createdtransfer.d.ts +116 -0
- package/models/components/createdtransfer.d.ts.map +1 -0
- package/models/components/createdtransfer.js +126 -0
- package/models/components/createdtransfer.js.map +1 -0
- package/models/components/createevidencefilemultipart.d.ts +2 -2
- package/models/components/createevidencefilemultipart.d.ts.map +1 -1
- package/models/components/createevidencefilemultipart.js +2 -2
- package/models/components/createevidencefilemultipart.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/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/createreceipts.d.ts +2 -2
- package/models/operations/createreceipts.d.ts.map +1 -1
- package/models/operations/createreceipts.js +2 -2
- package/models/operations/createreceipts.js.map +1 -1
- package/models/operations/createtransfer.d.ts +4 -4
- package/models/operations/createtransfer.d.ts.map +1 -1
- package/models/operations/createtransfer.js +4 -4
- package/models/operations/createtransfer.js.map +1 -1
- package/models/operations/listreceipts.d.ts +3 -3
- package/models/operations/listreceipts.d.ts.map +1 -1
- package/models/operations/listreceipts.js +2 -2
- package/models/operations/listreceipts.js.map +1 -1
- package/package.json +1 -1
- package/sdk/receipts.d.ts +1 -1
- package/sdk/receipts.js +1 -1
- package/src/funcs/receiptsCreate.ts +1 -5
- package/src/funcs/receiptsList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/receiptsList.ts +1 -1
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/components/achtransactionstatus.ts +1 -0
- package/src/models/components/createdtransfer.ts +242 -0
- package/src/models/components/createevidencefilemultipart.ts +4 -4
- package/src/models/components/index.ts +1 -1
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/createreceipts.ts +4 -4
- package/src/models/operations/createtransfer.ts +12 -12
- package/src/models/operations/listreceipts.ts +5 -5
- package/src/sdk/receipts.ts +1 -1
- package/models/components/transferresponse.d.ts +0 -27
- package/models/components/transferresponse.d.ts.map +0 -1
- package/models/components/transferresponse.js +0 -67
- package/models/components/transferresponse.js.map +0 -1
- package/models/errors/receiptvalidationerror.d.ts +0 -46
- package/models/errors/receiptvalidationerror.d.ts.map +0 -1
- package/models/errors/receiptvalidationerror.js +0 -98
- package/models/errors/receiptvalidationerror.js.map +0 -1
- package/src/models/components/transferresponse.ts +0 -72
- package/src/models/errors/receiptvalidationerror.ts +0 -99
|
@@ -114,6 +114,7 @@ export * from "./createauthorizedusererror.js";
|
|
|
114
114
|
export * from "./createauthorizeduserupdate.js";
|
|
115
115
|
export * from "./createbusinesserror.js";
|
|
116
116
|
export * from "./createbusinessprofile.js";
|
|
117
|
+
export * from "./createdtransfer.js";
|
|
117
118
|
export * from "./createevidencefilemultipart.js";
|
|
118
119
|
export * from "./createevidencetext.js";
|
|
119
120
|
export * from "./createfeeplanagreement.js";
|
|
@@ -331,7 +332,6 @@ export * from "./transferaccount.js";
|
|
|
331
332
|
export * from "./transferdestination.js";
|
|
332
333
|
export * from "./transferfailurereason.js";
|
|
333
334
|
export * from "./transferoptions.js";
|
|
334
|
-
export * from "./transferresponse.js";
|
|
335
335
|
export * from "./transfersource.js";
|
|
336
336
|
export * from "./transferstatus.js";
|
|
337
337
|
export * from "./transferwaitfor.js";
|
|
@@ -22,7 +22,6 @@ export * from "./linkcarderror.js";
|
|
|
22
22
|
export * from "./microdepositvalidationerror.js";
|
|
23
23
|
export * from "./onboardinginviteerror.js";
|
|
24
24
|
export * from "./patchsweepconfigerror.js";
|
|
25
|
-
export * from "./receiptvalidationerror.js";
|
|
26
25
|
export * from "./refundvalidationerror.js";
|
|
27
26
|
export * from "./representativevalidationerror.js";
|
|
28
27
|
export * from "./requestcarderror.js";
|
|
@@ -28,7 +28,7 @@ export type CreateReceiptsGlobals = {
|
|
|
28
28
|
|
|
29
29
|
export type CreateReceiptsResponse = {
|
|
30
30
|
headers: { [k: string]: Array<string> };
|
|
31
|
-
result: components.ReceiptResponse
|
|
31
|
+
result: Array<components.ReceiptResponse>;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
@@ -100,7 +100,7 @@ export const CreateReceiptsResponse$inboundSchema: z.ZodType<
|
|
|
100
100
|
unknown
|
|
101
101
|
> = z.object({
|
|
102
102
|
Headers: z.record(z.array(z.string())),
|
|
103
|
-
Result: components.ReceiptResponse$inboundSchema,
|
|
103
|
+
Result: z.array(components.ReceiptResponse$inboundSchema),
|
|
104
104
|
}).transform((v) => {
|
|
105
105
|
return remap$(v, {
|
|
106
106
|
"Headers": "headers",
|
|
@@ -111,7 +111,7 @@ export const CreateReceiptsResponse$inboundSchema: z.ZodType<
|
|
|
111
111
|
/** @internal */
|
|
112
112
|
export type CreateReceiptsResponse$Outbound = {
|
|
113
113
|
Headers: { [k: string]: Array<string> };
|
|
114
|
-
Result: components.ReceiptResponse$Outbound
|
|
114
|
+
Result: Array<components.ReceiptResponse$Outbound>;
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
/** @internal */
|
|
@@ -121,7 +121,7 @@ export const CreateReceiptsResponse$outboundSchema: z.ZodType<
|
|
|
121
121
|
CreateReceiptsResponse
|
|
122
122
|
> = z.object({
|
|
123
123
|
headers: z.record(z.array(z.string())),
|
|
124
|
-
result: components.ReceiptResponse$outboundSchema,
|
|
124
|
+
result: z.array(components.ReceiptResponse$outboundSchema),
|
|
125
125
|
}).transform((v) => {
|
|
126
126
|
return remap$(v, {
|
|
127
127
|
headers: "Headers",
|
|
@@ -47,15 +47,15 @@ export type CreateTransferRequest = {
|
|
|
47
47
|
|
|
48
48
|
export type CreateTransferResponseResult =
|
|
49
49
|
| components.AsyncTransfer
|
|
50
|
-
| components.
|
|
51
|
-
| components.
|
|
50
|
+
| components.CreatedTransfer
|
|
51
|
+
| components.Transfer;
|
|
52
52
|
|
|
53
53
|
export type CreateTransferResponse = {
|
|
54
54
|
headers: { [k: string]: Array<string> };
|
|
55
55
|
result:
|
|
56
56
|
| components.AsyncTransfer
|
|
57
|
-
| components.
|
|
58
|
-
| components.
|
|
57
|
+
| components.CreatedTransfer
|
|
58
|
+
| components.Transfer;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/** @internal */
|
|
@@ -202,15 +202,15 @@ export const CreateTransferResponseResult$inboundSchema: z.ZodType<
|
|
|
202
202
|
unknown
|
|
203
203
|
> = z.union([
|
|
204
204
|
components.AsyncTransfer$inboundSchema,
|
|
205
|
+
components.CreatedTransfer$inboundSchema,
|
|
205
206
|
components.Transfer$inboundSchema,
|
|
206
|
-
components.TransferResponse$inboundSchema,
|
|
207
207
|
]);
|
|
208
208
|
|
|
209
209
|
/** @internal */
|
|
210
210
|
export type CreateTransferResponseResult$Outbound =
|
|
211
211
|
| components.AsyncTransfer$Outbound
|
|
212
|
-
| components.
|
|
213
|
-
| components.
|
|
212
|
+
| components.CreatedTransfer$Outbound
|
|
213
|
+
| components.Transfer$Outbound;
|
|
214
214
|
|
|
215
215
|
/** @internal */
|
|
216
216
|
export const CreateTransferResponseResult$outboundSchema: z.ZodType<
|
|
@@ -219,8 +219,8 @@ export const CreateTransferResponseResult$outboundSchema: z.ZodType<
|
|
|
219
219
|
CreateTransferResponseResult
|
|
220
220
|
> = z.union([
|
|
221
221
|
components.AsyncTransfer$outboundSchema,
|
|
222
|
+
components.CreatedTransfer$outboundSchema,
|
|
222
223
|
components.Transfer$outboundSchema,
|
|
223
|
-
components.TransferResponse$outboundSchema,
|
|
224
224
|
]);
|
|
225
225
|
|
|
226
226
|
/**
|
|
@@ -265,8 +265,8 @@ export const CreateTransferResponse$inboundSchema: z.ZodType<
|
|
|
265
265
|
Headers: z.record(z.array(z.string())),
|
|
266
266
|
Result: z.union([
|
|
267
267
|
components.AsyncTransfer$inboundSchema,
|
|
268
|
+
components.CreatedTransfer$inboundSchema,
|
|
268
269
|
components.Transfer$inboundSchema,
|
|
269
|
-
components.TransferResponse$inboundSchema,
|
|
270
270
|
]),
|
|
271
271
|
}).transform((v) => {
|
|
272
272
|
return remap$(v, {
|
|
@@ -280,8 +280,8 @@ export type CreateTransferResponse$Outbound = {
|
|
|
280
280
|
Headers: { [k: string]: Array<string> };
|
|
281
281
|
Result:
|
|
282
282
|
| components.AsyncTransfer$Outbound
|
|
283
|
-
| components.
|
|
284
|
-
| components.
|
|
283
|
+
| components.CreatedTransfer$Outbound
|
|
284
|
+
| components.Transfer$Outbound;
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
/** @internal */
|
|
@@ -293,8 +293,8 @@ export const CreateTransferResponse$outboundSchema: z.ZodType<
|
|
|
293
293
|
headers: z.record(z.array(z.string())),
|
|
294
294
|
result: z.union([
|
|
295
295
|
components.AsyncTransfer$outboundSchema,
|
|
296
|
+
components.CreatedTransfer$outboundSchema,
|
|
296
297
|
components.Transfer$outboundSchema,
|
|
297
|
-
components.TransferResponse$outboundSchema,
|
|
298
298
|
]),
|
|
299
299
|
}).transform((v) => {
|
|
300
300
|
return remap$(v, {
|
|
@@ -28,9 +28,9 @@ export type ListReceiptsGlobals = {
|
|
|
28
28
|
|
|
29
29
|
export type ListReceiptsRequest = {
|
|
30
30
|
/**
|
|
31
|
-
* The
|
|
31
|
+
* The transfer, schedule, or transfer occurrence ID to filter receipts by.
|
|
32
32
|
*/
|
|
33
|
-
id
|
|
33
|
+
id: string;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export type ListReceiptsResponse = {
|
|
@@ -106,12 +106,12 @@ export const ListReceiptsRequest$inboundSchema: z.ZodType<
|
|
|
106
106
|
z.ZodTypeDef,
|
|
107
107
|
unknown
|
|
108
108
|
> = z.object({
|
|
109
|
-
id: z.string()
|
|
109
|
+
id: z.string(),
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
/** @internal */
|
|
113
113
|
export type ListReceiptsRequest$Outbound = {
|
|
114
|
-
id
|
|
114
|
+
id: string;
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
/** @internal */
|
|
@@ -120,7 +120,7 @@ export const ListReceiptsRequest$outboundSchema: z.ZodType<
|
|
|
120
120
|
z.ZodTypeDef,
|
|
121
121
|
ListReceiptsRequest
|
|
122
122
|
> = z.object({
|
|
123
|
-
id: z.string()
|
|
123
|
+
id: z.string(),
|
|
124
124
|
});
|
|
125
125
|
|
|
126
126
|
/**
|
package/src/sdk/receipts.ts
CHANGED
|
@@ -28,7 +28,7 @@ export class Receipts extends ClientSDK {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* List receipts by
|
|
31
|
+
* List receipts by transferID, scheduleID, or occurrenceID.
|
|
32
32
|
*
|
|
33
33
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
34
34
|
* you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
|
|
@@ -1,27 +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
|
-
import { AsyncTransfer, AsyncTransfer$Outbound } from "./asynctransfer.js";
|
|
5
|
-
import { Transfer, Transfer$Outbound } from "./transfer.js";
|
|
6
|
-
export type TransferResponse = AsyncTransfer | Transfer;
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare const TransferResponse$inboundSchema: z.ZodType<TransferResponse, z.ZodTypeDef, unknown>;
|
|
9
|
-
/** @internal */
|
|
10
|
-
export type TransferResponse$Outbound = AsyncTransfer$Outbound | Transfer$Outbound;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const TransferResponse$outboundSchema: z.ZodType<TransferResponse$Outbound, z.ZodTypeDef, TransferResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
16
|
-
*/
|
|
17
|
-
export declare namespace TransferResponse$ {
|
|
18
|
-
/** @deprecated use `TransferResponse$inboundSchema` instead. */
|
|
19
|
-
const inboundSchema: z.ZodType<TransferResponse, z.ZodTypeDef, unknown>;
|
|
20
|
-
/** @deprecated use `TransferResponse$outboundSchema` instead. */
|
|
21
|
-
const outboundSchema: z.ZodType<TransferResponse$Outbound, z.ZodTypeDef, TransferResponse>;
|
|
22
|
-
/** @deprecated use `TransferResponse$Outbound` instead. */
|
|
23
|
-
type Outbound = TransferResponse$Outbound;
|
|
24
|
-
}
|
|
25
|
-
export declare function transferResponseToJSON(transferResponse: TransferResponse): string;
|
|
26
|
-
export declare function transferResponseFromJSON(jsonString: string): SafeParseResult<TransferResponse, SDKValidationError>;
|
|
27
|
-
//# sourceMappingURL=transferresponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/transferresponse.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;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,QAAQ,EAER,iBAAiB,EAElB,MAAM,eAAe,CAAC;AAEvB,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,QAAQ,CAAC;AAExD,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CACyD,CAAC;AAEnE,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GACjC,sBAAsB,GACtB,iBAAiB,CAAC;AAEtB,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CACkD,CAAC;AAErE;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -1,67 +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.TransferResponse$ = exports.TransferResponse$outboundSchema = exports.TransferResponse$inboundSchema = void 0;
|
|
40
|
-
exports.transferResponseToJSON = transferResponseToJSON;
|
|
41
|
-
exports.transferResponseFromJSON = transferResponseFromJSON;
|
|
42
|
-
const z = __importStar(require("zod"));
|
|
43
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const asynctransfer_js_1 = require("./asynctransfer.js");
|
|
45
|
-
const transfer_js_1 = require("./transfer.js");
|
|
46
|
-
/** @internal */
|
|
47
|
-
exports.TransferResponse$inboundSchema = z.union([asynctransfer_js_1.AsyncTransfer$inboundSchema, transfer_js_1.Transfer$inboundSchema]);
|
|
48
|
-
/** @internal */
|
|
49
|
-
exports.TransferResponse$outboundSchema = z.union([asynctransfer_js_1.AsyncTransfer$outboundSchema, transfer_js_1.Transfer$outboundSchema]);
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
var TransferResponse$;
|
|
55
|
-
(function (TransferResponse$) {
|
|
56
|
-
/** @deprecated use `TransferResponse$inboundSchema` instead. */
|
|
57
|
-
TransferResponse$.inboundSchema = exports.TransferResponse$inboundSchema;
|
|
58
|
-
/** @deprecated use `TransferResponse$outboundSchema` instead. */
|
|
59
|
-
TransferResponse$.outboundSchema = exports.TransferResponse$outboundSchema;
|
|
60
|
-
})(TransferResponse$ || (exports.TransferResponse$ = TransferResponse$ = {}));
|
|
61
|
-
function transferResponseToJSON(transferResponse) {
|
|
62
|
-
return JSON.stringify(exports.TransferResponse$outboundSchema.parse(transferResponse));
|
|
63
|
-
}
|
|
64
|
-
function transferResponseFromJSON(jsonString) {
|
|
65
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TransferResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransferResponse' from JSON`);
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=transferresponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferresponse.js","sourceRoot":"","sources":["../../src/models/components/transferresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDH,wDAMC;AAED,4DAQC;AAnED,uCAAyB;AACzB,qDAAiD;AAGjD,yDAK4B;AAC5B,+CAKuB;AAIvB,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,KAAK,CAAC,CAAC,8CAA2B,EAAE,oCAAsB,CAAC,CAAC,CAAC;AAOnE,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,KAAK,CAAC,CAAC,+CAA4B,EAAE,qCAAuB,CAAC,CAAC,CAAC;AAErE;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC;AAED,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
export type ReceiptValidationErrorData = {
|
|
3
|
-
kind?: string | undefined;
|
|
4
|
-
email?: string | undefined;
|
|
5
|
-
emailAccountID?: string | undefined;
|
|
6
|
-
forTransferID?: string | undefined;
|
|
7
|
-
forScheduleID?: string | undefined;
|
|
8
|
-
forOccurrenceID?: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
export declare class ReceiptValidationError extends Error {
|
|
11
|
-
kind?: string | undefined;
|
|
12
|
-
email?: string | undefined;
|
|
13
|
-
emailAccountID?: string | undefined;
|
|
14
|
-
forTransferID?: string | undefined;
|
|
15
|
-
forScheduleID?: string | undefined;
|
|
16
|
-
forOccurrenceID?: string | undefined;
|
|
17
|
-
/** The original data that was passed to this error instance. */
|
|
18
|
-
data$: ReceiptValidationErrorData;
|
|
19
|
-
constructor(err: ReceiptValidationErrorData);
|
|
20
|
-
}
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const ReceiptValidationError$inboundSchema: z.ZodType<ReceiptValidationError, z.ZodTypeDef, unknown>;
|
|
23
|
-
/** @internal */
|
|
24
|
-
export type ReceiptValidationError$Outbound = {
|
|
25
|
-
kind?: string | undefined;
|
|
26
|
-
email?: string | undefined;
|
|
27
|
-
emailAccountID?: string | undefined;
|
|
28
|
-
forTransferID?: string | undefined;
|
|
29
|
-
forScheduleID?: string | undefined;
|
|
30
|
-
forOccurrenceID?: string | undefined;
|
|
31
|
-
};
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare const ReceiptValidationError$outboundSchema: z.ZodType<ReceiptValidationError$Outbound, z.ZodTypeDef, ReceiptValidationError>;
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
-
*/
|
|
38
|
-
export declare namespace ReceiptValidationError$ {
|
|
39
|
-
/** @deprecated use `ReceiptValidationError$inboundSchema` instead. */
|
|
40
|
-
const inboundSchema: z.ZodType<ReceiptValidationError, z.ZodTypeDef, unknown>;
|
|
41
|
-
/** @deprecated use `ReceiptValidationError$outboundSchema` instead. */
|
|
42
|
-
const outboundSchema: z.ZodType<ReceiptValidationError$Outbound, z.ZodTypeDef, ReceiptValidationError>;
|
|
43
|
-
/** @deprecated use `ReceiptValidationError$Outbound` instead. */
|
|
44
|
-
type Outbound = ReceiptValidationError$Outbound;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=receiptvalidationerror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"receiptvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/errors/receiptvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAErC,gEAAgE;IAChE,KAAK,EAAE,0BAA0B,CAAC;gBAEtB,GAAG,EAAE,0BAA0B;CAgB5C;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWL,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAUnB,CAAC;AAEN;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD"}
|
|
@@ -1,98 +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.ReceiptValidationError$ = exports.ReceiptValidationError$outboundSchema = exports.ReceiptValidationError$inboundSchema = exports.ReceiptValidationError = void 0;
|
|
40
|
-
const z = __importStar(require("zod"));
|
|
41
|
-
class ReceiptValidationError extends Error {
|
|
42
|
-
constructor(err) {
|
|
43
|
-
const message = "message" in err && typeof err.message === "string"
|
|
44
|
-
? err.message
|
|
45
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
46
|
-
super(message);
|
|
47
|
-
this.data$ = err;
|
|
48
|
-
if (err.kind != null)
|
|
49
|
-
this.kind = err.kind;
|
|
50
|
-
if (err.email != null)
|
|
51
|
-
this.email = err.email;
|
|
52
|
-
if (err.emailAccountID != null)
|
|
53
|
-
this.emailAccountID = err.emailAccountID;
|
|
54
|
-
if (err.forTransferID != null)
|
|
55
|
-
this.forTransferID = err.forTransferID;
|
|
56
|
-
if (err.forScheduleID != null)
|
|
57
|
-
this.forScheduleID = err.forScheduleID;
|
|
58
|
-
if (err.forOccurrenceID != null)
|
|
59
|
-
this.forOccurrenceID = err.forOccurrenceID;
|
|
60
|
-
this.name = "ReceiptValidationError";
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.ReceiptValidationError = ReceiptValidationError;
|
|
64
|
-
/** @internal */
|
|
65
|
-
exports.ReceiptValidationError$inboundSchema = z.object({
|
|
66
|
-
kind: z.string().optional(),
|
|
67
|
-
email: z.string().optional(),
|
|
68
|
-
emailAccountID: z.string().optional(),
|
|
69
|
-
forTransferID: z.string().optional(),
|
|
70
|
-
forScheduleID: z.string().optional(),
|
|
71
|
-
forOccurrenceID: z.string().optional(),
|
|
72
|
-
})
|
|
73
|
-
.transform((v) => {
|
|
74
|
-
return new ReceiptValidationError(v);
|
|
75
|
-
});
|
|
76
|
-
/** @internal */
|
|
77
|
-
exports.ReceiptValidationError$outboundSchema = z.instanceof(ReceiptValidationError)
|
|
78
|
-
.transform(v => v.data$)
|
|
79
|
-
.pipe(z.object({
|
|
80
|
-
kind: z.string().optional(),
|
|
81
|
-
email: z.string().optional(),
|
|
82
|
-
emailAccountID: z.string().optional(),
|
|
83
|
-
forTransferID: z.string().optional(),
|
|
84
|
-
forScheduleID: z.string().optional(),
|
|
85
|
-
forOccurrenceID: z.string().optional(),
|
|
86
|
-
}));
|
|
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
|
-
var ReceiptValidationError$;
|
|
92
|
-
(function (ReceiptValidationError$) {
|
|
93
|
-
/** @deprecated use `ReceiptValidationError$inboundSchema` instead. */
|
|
94
|
-
ReceiptValidationError$.inboundSchema = exports.ReceiptValidationError$inboundSchema;
|
|
95
|
-
/** @deprecated use `ReceiptValidationError$outboundSchema` instead. */
|
|
96
|
-
ReceiptValidationError$.outboundSchema = exports.ReceiptValidationError$outboundSchema;
|
|
97
|
-
})(ReceiptValidationError$ || (exports.ReceiptValidationError$ = ReceiptValidationError$ = {}));
|
|
98
|
-
//# sourceMappingURL=receiptvalidationerror.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"receiptvalidationerror.js","sourceRoot":"","sources":["../../src/models/errors/receiptvalidationerror.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,72 +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
|
-
AsyncTransfer,
|
|
11
|
-
AsyncTransfer$inboundSchema,
|
|
12
|
-
AsyncTransfer$Outbound,
|
|
13
|
-
AsyncTransfer$outboundSchema,
|
|
14
|
-
} from "./asynctransfer.js";
|
|
15
|
-
import {
|
|
16
|
-
Transfer,
|
|
17
|
-
Transfer$inboundSchema,
|
|
18
|
-
Transfer$Outbound,
|
|
19
|
-
Transfer$outboundSchema,
|
|
20
|
-
} from "./transfer.js";
|
|
21
|
-
|
|
22
|
-
export type TransferResponse = AsyncTransfer | Transfer;
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const TransferResponse$inboundSchema: z.ZodType<
|
|
26
|
-
TransferResponse,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
unknown
|
|
29
|
-
> = z.union([AsyncTransfer$inboundSchema, Transfer$inboundSchema]);
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type TransferResponse$Outbound =
|
|
33
|
-
| AsyncTransfer$Outbound
|
|
34
|
-
| Transfer$Outbound;
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const TransferResponse$outboundSchema: z.ZodType<
|
|
38
|
-
TransferResponse$Outbound,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
TransferResponse
|
|
41
|
-
> = z.union([AsyncTransfer$outboundSchema, Transfer$outboundSchema]);
|
|
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 TransferResponse$ {
|
|
48
|
-
/** @deprecated use `TransferResponse$inboundSchema` instead. */
|
|
49
|
-
export const inboundSchema = TransferResponse$inboundSchema;
|
|
50
|
-
/** @deprecated use `TransferResponse$outboundSchema` instead. */
|
|
51
|
-
export const outboundSchema = TransferResponse$outboundSchema;
|
|
52
|
-
/** @deprecated use `TransferResponse$Outbound` instead. */
|
|
53
|
-
export type Outbound = TransferResponse$Outbound;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function transferResponseToJSON(
|
|
57
|
-
transferResponse: TransferResponse,
|
|
58
|
-
): string {
|
|
59
|
-
return JSON.stringify(
|
|
60
|
-
TransferResponse$outboundSchema.parse(transferResponse),
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function transferResponseFromJSON(
|
|
65
|
-
jsonString: string,
|
|
66
|
-
): SafeParseResult<TransferResponse, SDKValidationError> {
|
|
67
|
-
return safeParse(
|
|
68
|
-
jsonString,
|
|
69
|
-
(x) => TransferResponse$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
-
`Failed to parse 'TransferResponse' from JSON`,
|
|
71
|
-
);
|
|
72
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
|
|
7
|
-
export type ReceiptValidationErrorData = {
|
|
8
|
-
kind?: string | undefined;
|
|
9
|
-
email?: string | undefined;
|
|
10
|
-
emailAccountID?: string | undefined;
|
|
11
|
-
forTransferID?: string | undefined;
|
|
12
|
-
forScheduleID?: string | undefined;
|
|
13
|
-
forOccurrenceID?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export class ReceiptValidationError extends Error {
|
|
17
|
-
kind?: string | undefined;
|
|
18
|
-
email?: string | undefined;
|
|
19
|
-
emailAccountID?: string | undefined;
|
|
20
|
-
forTransferID?: string | undefined;
|
|
21
|
-
forScheduleID?: string | undefined;
|
|
22
|
-
forOccurrenceID?: string | undefined;
|
|
23
|
-
|
|
24
|
-
/** The original data that was passed to this error instance. */
|
|
25
|
-
data$: ReceiptValidationErrorData;
|
|
26
|
-
|
|
27
|
-
constructor(err: ReceiptValidationErrorData) {
|
|
28
|
-
const message = "message" in err && typeof err.message === "string"
|
|
29
|
-
? err.message
|
|
30
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
31
|
-
super(message);
|
|
32
|
-
this.data$ = err;
|
|
33
|
-
|
|
34
|
-
if (err.kind != null) this.kind = err.kind;
|
|
35
|
-
if (err.email != null) this.email = err.email;
|
|
36
|
-
if (err.emailAccountID != null) this.emailAccountID = err.emailAccountID;
|
|
37
|
-
if (err.forTransferID != null) this.forTransferID = err.forTransferID;
|
|
38
|
-
if (err.forScheduleID != null) this.forScheduleID = err.forScheduleID;
|
|
39
|
-
if (err.forOccurrenceID != null) this.forOccurrenceID = err.forOccurrenceID;
|
|
40
|
-
|
|
41
|
-
this.name = "ReceiptValidationError";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const ReceiptValidationError$inboundSchema: z.ZodType<
|
|
47
|
-
ReceiptValidationError,
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
unknown
|
|
50
|
-
> = z.object({
|
|
51
|
-
kind: z.string().optional(),
|
|
52
|
-
email: z.string().optional(),
|
|
53
|
-
emailAccountID: z.string().optional(),
|
|
54
|
-
forTransferID: z.string().optional(),
|
|
55
|
-
forScheduleID: z.string().optional(),
|
|
56
|
-
forOccurrenceID: z.string().optional(),
|
|
57
|
-
})
|
|
58
|
-
.transform((v) => {
|
|
59
|
-
return new ReceiptValidationError(v);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type ReceiptValidationError$Outbound = {
|
|
64
|
-
kind?: string | undefined;
|
|
65
|
-
email?: string | undefined;
|
|
66
|
-
emailAccountID?: string | undefined;
|
|
67
|
-
forTransferID?: string | undefined;
|
|
68
|
-
forScheduleID?: string | undefined;
|
|
69
|
-
forOccurrenceID?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const ReceiptValidationError$outboundSchema: z.ZodType<
|
|
74
|
-
ReceiptValidationError$Outbound,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
ReceiptValidationError
|
|
77
|
-
> = z.instanceof(ReceiptValidationError)
|
|
78
|
-
.transform(v => v.data$)
|
|
79
|
-
.pipe(z.object({
|
|
80
|
-
kind: z.string().optional(),
|
|
81
|
-
email: z.string().optional(),
|
|
82
|
-
emailAccountID: z.string().optional(),
|
|
83
|
-
forTransferID: z.string().optional(),
|
|
84
|
-
forScheduleID: z.string().optional(),
|
|
85
|
-
forOccurrenceID: z.string().optional(),
|
|
86
|
-
}));
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
-
*/
|
|
92
|
-
export namespace ReceiptValidationError$ {
|
|
93
|
-
/** @deprecated use `ReceiptValidationError$inboundSchema` instead. */
|
|
94
|
-
export const inboundSchema = ReceiptValidationError$inboundSchema;
|
|
95
|
-
/** @deprecated use `ReceiptValidationError$outboundSchema` instead. */
|
|
96
|
-
export const outboundSchema = ReceiptValidationError$outboundSchema;
|
|
97
|
-
/** @deprecated use `ReceiptValidationError$Outbound` instead. */
|
|
98
|
-
export type Outbound = ReceiptValidationError$Outbound;
|
|
99
|
-
}
|