@apideck/unify 0.23.1 → 0.23.2
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 +26 -0
- package/docs/sdks/bankfeedaccounts/README.md +571 -0
- package/docs/sdks/bankfeedstatements/README.md +605 -0
- package/funcs/accountingBankFeedAccountsCreate.d.ts +17 -0
- package/funcs/accountingBankFeedAccountsCreate.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsCreate.js +123 -0
- package/funcs/accountingBankFeedAccountsCreate.js.map +1 -0
- package/funcs/accountingBankFeedAccountsDelete.d.ts +17 -0
- package/funcs/accountingBankFeedAccountsDelete.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsDelete.js +128 -0
- package/funcs/accountingBankFeedAccountsDelete.js.map +1 -0
- package/funcs/accountingBankFeedAccountsGet.d.ts +17 -0
- package/funcs/accountingBankFeedAccountsGet.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsGet.js +129 -0
- package/funcs/accountingBankFeedAccountsGet.js.map +1 -0
- package/funcs/accountingBankFeedAccountsList.d.ts +20 -0
- package/funcs/accountingBankFeedAccountsList.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsList.js +149 -0
- package/funcs/accountingBankFeedAccountsList.js.map +1 -0
- package/funcs/accountingBankFeedAccountsUpdate.d.ts +17 -0
- package/funcs/accountingBankFeedAccountsUpdate.d.ts.map +1 -0
- package/funcs/accountingBankFeedAccountsUpdate.js +129 -0
- package/funcs/accountingBankFeedAccountsUpdate.js.map +1 -0
- package/funcs/accountingBankFeedStatementsCreate.d.ts +17 -0
- package/funcs/accountingBankFeedStatementsCreate.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsCreate.js +123 -0
- package/funcs/accountingBankFeedStatementsCreate.js.map +1 -0
- package/funcs/accountingBankFeedStatementsDelete.d.ts +17 -0
- package/funcs/accountingBankFeedStatementsDelete.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsDelete.js +128 -0
- package/funcs/accountingBankFeedStatementsDelete.js.map +1 -0
- package/funcs/accountingBankFeedStatementsGet.d.ts +17 -0
- package/funcs/accountingBankFeedStatementsGet.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsGet.js +129 -0
- package/funcs/accountingBankFeedStatementsGet.js.map +1 -0
- package/funcs/accountingBankFeedStatementsList.d.ts +20 -0
- package/funcs/accountingBankFeedStatementsList.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsList.js +149 -0
- package/funcs/accountingBankFeedStatementsList.js.map +1 -0
- package/funcs/accountingBankFeedStatementsUpdate.d.ts +17 -0
- package/funcs/accountingBankFeedStatementsUpdate.d.ts.map +1 -0
- package/funcs/accountingBankFeedStatementsUpdate.js +129 -0
- package/funcs/accountingBankFeedStatementsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +6 -11
- package/lib/sdks.js.map +1 -1
- package/models/components/bankfeedaccount.d.ts +230 -0
- package/models/components/bankfeedaccount.d.ts.map +1 -0
- package/models/components/bankfeedaccount.js +229 -0
- package/models/components/bankfeedaccount.js.map +1 -0
- package/models/components/bankfeedstatement.d.ts +307 -0
- package/models/components/bankfeedstatement.d.ts.map +1 -0
- package/models/components/bankfeedstatement.js +286 -0
- package/models/components/bankfeedstatement.js.map +1 -0
- package/models/components/createbankfeedaccountresponse.d.ts +70 -0
- package/models/components/createbankfeedaccountresponse.d.ts.map +1 -0
- package/models/components/createbankfeedaccountresponse.js +83 -0
- package/models/components/createbankfeedaccountresponse.js.map +1 -0
- package/models/components/createbankfeedstatementresponse.d.ts +70 -0
- package/models/components/createbankfeedstatementresponse.d.ts.map +1 -0
- package/models/components/createbankfeedstatementresponse.js +83 -0
- package/models/components/createbankfeedstatementresponse.js.map +1 -0
- package/models/components/creditordebit.d.ts +34 -0
- package/models/components/creditordebit.d.ts.map +1 -0
- package/models/components/creditordebit.js +53 -0
- package/models/components/creditordebit.js.map +1 -0
- package/models/components/deletebankfeedaccountresponse.d.ts +70 -0
- package/models/components/deletebankfeedaccountresponse.d.ts.map +1 -0
- package/models/components/deletebankfeedaccountresponse.js +83 -0
- package/models/components/deletebankfeedaccountresponse.js.map +1 -0
- package/models/components/deletebankfeedstatementresponse.d.ts +70 -0
- package/models/components/deletebankfeedstatementresponse.d.ts.map +1 -0
- package/models/components/deletebankfeedstatementresponse.js +83 -0
- package/models/components/deletebankfeedstatementresponse.js.map +1 -0
- package/models/components/ecommerceorderlineitem.d.ts +2 -2
- package/models/components/ecommerceorderlineitem.d.ts.map +1 -1
- package/models/components/ecommerceorderlineitem.js +2 -2
- package/models/components/ecommerceorderlineitem.js.map +1 -1
- package/models/components/getbankfeedaccountresponse.d.ts +67 -0
- package/models/components/getbankfeedaccountresponse.d.ts.map +1 -0
- package/models/components/getbankfeedaccountresponse.js +83 -0
- package/models/components/getbankfeedaccountresponse.js.map +1 -0
- package/models/components/getbankfeedaccountsresponse.d.ts +79 -0
- package/models/components/getbankfeedaccountsresponse.d.ts.map +1 -0
- package/models/components/getbankfeedaccountsresponse.js +89 -0
- package/models/components/getbankfeedaccountsresponse.js.map +1 -0
- package/models/components/getbankfeedstatementresponse.d.ts +67 -0
- package/models/components/getbankfeedstatementresponse.d.ts.map +1 -0
- package/models/components/getbankfeedstatementresponse.js +83 -0
- package/models/components/getbankfeedstatementresponse.js.map +1 -0
- package/models/components/getbankfeedstatementsresponse.d.ts +79 -0
- package/models/components/getbankfeedstatementsresponse.d.ts.map +1 -0
- package/models/components/getbankfeedstatementsresponse.js +89 -0
- package/models/components/getbankfeedstatementsresponse.js.map +1 -0
- package/models/components/index.d.ts +13 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +13 -0
- package/models/components/index.js.map +1 -1
- package/models/components/updatebankfeedaccountresponse.d.ts +70 -0
- package/models/components/updatebankfeedaccountresponse.d.ts.map +1 -0
- package/models/components/updatebankfeedaccountresponse.js +83 -0
- package/models/components/updatebankfeedaccountresponse.js.map +1 -0
- package/models/components/updatebankfeedstatementresponse.d.ts +70 -0
- package/models/components/updatebankfeedstatementresponse.d.ts.map +1 -0
- package/models/components/updatebankfeedstatementresponse.js +83 -0
- package/models/components/updatebankfeedstatementresponse.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsadd.d.ts +118 -0
- package/models/operations/accountingbankfeedaccountsadd.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsadd.js +153 -0
- package/models/operations/accountingbankfeedaccountsadd.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsall.d.ts +140 -0
- package/models/operations/accountingbankfeedaccountsall.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsall.js +159 -0
- package/models/operations/accountingbankfeedaccountsall.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsdelete.d.ts +121 -0
- package/models/operations/accountingbankfeedaccountsdelete.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsdelete.js +145 -0
- package/models/operations/accountingbankfeedaccountsdelete.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsone.d.ts +126 -0
- package/models/operations/accountingbankfeedaccountsone.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsone.js +147 -0
- package/models/operations/accountingbankfeedaccountsone.js.map +1 -0
- package/models/operations/accountingbankfeedaccountsupdate.d.ts +123 -0
- package/models/operations/accountingbankfeedaccountsupdate.d.ts.map +1 -0
- package/models/operations/accountingbankfeedaccountsupdate.js +155 -0
- package/models/operations/accountingbankfeedaccountsupdate.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsadd.d.ts +118 -0
- package/models/operations/accountingbankfeedstatementsadd.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsadd.js +153 -0
- package/models/operations/accountingbankfeedstatementsadd.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsall.d.ts +140 -0
- package/models/operations/accountingbankfeedstatementsall.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsall.js +159 -0
- package/models/operations/accountingbankfeedstatementsall.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsdelete.d.ts +121 -0
- package/models/operations/accountingbankfeedstatementsdelete.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsdelete.js +145 -0
- package/models/operations/accountingbankfeedstatementsdelete.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsone.d.ts +126 -0
- package/models/operations/accountingbankfeedstatementsone.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsone.js +147 -0
- package/models/operations/accountingbankfeedstatementsone.js.map +1 -0
- package/models/operations/accountingbankfeedstatementsupdate.d.ts +123 -0
- package/models/operations/accountingbankfeedstatementsupdate.d.ts.map +1 -0
- package/models/operations/accountingbankfeedstatementsupdate.js +155 -0
- package/models/operations/accountingbankfeedstatementsupdate.js.map +1 -0
- package/models/operations/index.d.ts +10 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +10 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +6 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +8 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/bankfeedaccounts.d.ts +43 -0
- package/sdk/bankfeedaccounts.d.ts.map +1 -0
- package/sdk/bankfeedaccounts.js +63 -0
- package/sdk/bankfeedaccounts.js.map +1 -0
- package/sdk/bankfeedstatements.d.ts +43 -0
- package/sdk/bankfeedstatements.d.ts.map +1 -0
- package/sdk/bankfeedstatements.js +63 -0
- package/sdk/bankfeedstatements.js.map +1 -0
- package/src/__tests__/bankfeedaccounts.test.ts +333 -0
- package/src/__tests__/bankfeedstatements.test.ts +398 -0
- package/src/funcs/accountingBankFeedAccountsCreate.ts +221 -0
- package/src/funcs/accountingBankFeedAccountsDelete.ts +227 -0
- package/src/funcs/accountingBankFeedAccountsGet.ts +228 -0
- package/src/funcs/accountingBankFeedAccountsList.ts +295 -0
- package/src/funcs/accountingBankFeedAccountsUpdate.ts +228 -0
- package/src/funcs/accountingBankFeedStatementsCreate.ts +221 -0
- package/src/funcs/accountingBankFeedStatementsDelete.ts +227 -0
- package/src/funcs/accountingBankFeedStatementsGet.ts +228 -0
- package/src/funcs/accountingBankFeedStatementsList.ts +295 -0
- package/src/funcs/accountingBankFeedStatementsUpdate.ts +228 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +11 -11
- package/src/models/components/bankfeedaccount.ts +413 -0
- package/src/models/components/bankfeedstatement.ts +535 -0
- package/src/models/components/createbankfeedaccountresponse.ts +133 -0
- package/src/models/components/createbankfeedstatementresponse.ts +133 -0
- package/src/models/components/creditordebit.ts +39 -0
- package/src/models/components/deletebankfeedaccountresponse.ts +133 -0
- package/src/models/components/deletebankfeedstatementresponse.ts +133 -0
- package/src/models/components/ecommerceorderlineitem.ts +4 -4
- package/src/models/components/getbankfeedaccountresponse.ts +128 -0
- package/src/models/components/getbankfeedaccountsresponse.ts +156 -0
- package/src/models/components/getbankfeedstatementresponse.ts +130 -0
- package/src/models/components/getbankfeedstatementsresponse.ts +156 -0
- package/src/models/components/index.ts +13 -0
- package/src/models/components/updatebankfeedaccountresponse.ts +133 -0
- package/src/models/components/updatebankfeedstatementresponse.ts +133 -0
- package/src/models/operations/accountingbankfeedaccountsadd.ts +281 -0
- package/src/models/operations/accountingbankfeedaccountsall.ts +305 -0
- package/src/models/operations/accountingbankfeedaccountsdelete.ts +294 -0
- package/src/models/operations/accountingbankfeedaccountsone.ts +283 -0
- package/src/models/operations/accountingbankfeedaccountsupdate.ts +306 -0
- package/src/models/operations/accountingbankfeedstatementsadd.ts +289 -0
- package/src/models/operations/accountingbankfeedstatementsall.ts +313 -0
- package/src/models/operations/accountingbankfeedstatementsdelete.ts +295 -0
- package/src/models/operations/accountingbankfeedstatementsone.ts +291 -0
- package/src/models/operations/accountingbankfeedstatementsupdate.ts +307 -0
- package/src/models/operations/index.ts +10 -0
- package/src/sdk/accounting.ts +12 -0
- package/src/sdk/bankfeedaccounts.ts +105 -0
- package/src/sdk/bankfeedstatements.ts +105 -0
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
Currency,
|
|
13
|
+
Currency$inboundSchema,
|
|
14
|
+
Currency$outboundSchema,
|
|
15
|
+
} from "./currency.js";
|
|
16
|
+
import {
|
|
17
|
+
CustomField,
|
|
18
|
+
CustomField$inboundSchema,
|
|
19
|
+
CustomField$Outbound,
|
|
20
|
+
CustomField$outboundSchema,
|
|
21
|
+
} from "./customfield.js";
|
|
22
|
+
import {
|
|
23
|
+
CustomMappings,
|
|
24
|
+
CustomMappings$inboundSchema,
|
|
25
|
+
CustomMappings$Outbound,
|
|
26
|
+
CustomMappings$outboundSchema,
|
|
27
|
+
} from "./custommappings.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Type of the bank account.
|
|
31
|
+
*/
|
|
32
|
+
export const BankAccountType = {
|
|
33
|
+
Bank: "bank",
|
|
34
|
+
CreditCard: "credit_card",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Type of the bank account.
|
|
38
|
+
*/
|
|
39
|
+
export type BankAccountType = ClosedEnum<typeof BankAccountType>;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Current status of the bank feed.
|
|
43
|
+
*/
|
|
44
|
+
export const FeedStatus = {
|
|
45
|
+
Pending: "pending",
|
|
46
|
+
Rejected: "rejected",
|
|
47
|
+
} as const;
|
|
48
|
+
/**
|
|
49
|
+
* Current status of the bank feed.
|
|
50
|
+
*/
|
|
51
|
+
export type FeedStatus = ClosedEnum<typeof FeedStatus>;
|
|
52
|
+
|
|
53
|
+
export type BankFeedAccount = {
|
|
54
|
+
/**
|
|
55
|
+
* A unique identifier for an object.
|
|
56
|
+
*/
|
|
57
|
+
id: string;
|
|
58
|
+
/**
|
|
59
|
+
* Type of the bank account.
|
|
60
|
+
*/
|
|
61
|
+
bankAccountType?: BankAccountType | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* The source account's unique identifier.
|
|
64
|
+
*/
|
|
65
|
+
sourceAccountId?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The target account's unique identifier in the accounting connector.
|
|
68
|
+
*/
|
|
69
|
+
targetAccountId?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Name associated with the target account.
|
|
72
|
+
*/
|
|
73
|
+
targetAccountName?: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Account number of the destination bank account.
|
|
76
|
+
*/
|
|
77
|
+
targetAccountNumber?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
80
|
+
*/
|
|
81
|
+
currency?: Currency | null | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Current status of the bank feed.
|
|
84
|
+
*/
|
|
85
|
+
feedStatus?: FeedStatus | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Country code according to ISO 3166-1 alpha-2.
|
|
88
|
+
*/
|
|
89
|
+
country?: string | null | undefined;
|
|
90
|
+
customFields?: Array<CustomField> | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* When custom mappings are configured on the resource, the result is included here.
|
|
93
|
+
*/
|
|
94
|
+
customMappings?: CustomMappings | null | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* The date and time when the object was created.
|
|
97
|
+
*/
|
|
98
|
+
createdAt?: Date | null | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* The date and time when the object was last updated.
|
|
101
|
+
*/
|
|
102
|
+
updatedAt?: Date | null | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* The user who last updated the object.
|
|
105
|
+
*/
|
|
106
|
+
updatedBy?: string | null | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* The user who created the object.
|
|
109
|
+
*/
|
|
110
|
+
createdBy?: string | null | undefined;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export type BankFeedAccountInput = {
|
|
114
|
+
/**
|
|
115
|
+
* Type of the bank account.
|
|
116
|
+
*/
|
|
117
|
+
bankAccountType?: BankAccountType | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* The source account's unique identifier.
|
|
120
|
+
*/
|
|
121
|
+
sourceAccountId?: string | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* The target account's unique identifier in the accounting connector.
|
|
124
|
+
*/
|
|
125
|
+
targetAccountId?: string | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Name associated with the target account.
|
|
128
|
+
*/
|
|
129
|
+
targetAccountName?: string | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* Account number of the destination bank account.
|
|
132
|
+
*/
|
|
133
|
+
targetAccountNumber?: string | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
|
|
136
|
+
*/
|
|
137
|
+
currency?: Currency | null | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* Current status of the bank feed.
|
|
140
|
+
*/
|
|
141
|
+
feedStatus?: FeedStatus | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Country code according to ISO 3166-1 alpha-2.
|
|
144
|
+
*/
|
|
145
|
+
country?: string | null | undefined;
|
|
146
|
+
customFields?: Array<CustomField> | undefined;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const BankAccountType$inboundSchema: z.ZodNativeEnum<
|
|
151
|
+
typeof BankAccountType
|
|
152
|
+
> = z.nativeEnum(BankAccountType);
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const BankAccountType$outboundSchema: z.ZodNativeEnum<
|
|
156
|
+
typeof BankAccountType
|
|
157
|
+
> = BankAccountType$inboundSchema;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
162
|
+
*/
|
|
163
|
+
export namespace BankAccountType$ {
|
|
164
|
+
/** @deprecated use `BankAccountType$inboundSchema` instead. */
|
|
165
|
+
export const inboundSchema = BankAccountType$inboundSchema;
|
|
166
|
+
/** @deprecated use `BankAccountType$outboundSchema` instead. */
|
|
167
|
+
export const outboundSchema = BankAccountType$outboundSchema;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const FeedStatus$inboundSchema: z.ZodNativeEnum<typeof FeedStatus> = z
|
|
172
|
+
.nativeEnum(FeedStatus);
|
|
173
|
+
|
|
174
|
+
/** @internal */
|
|
175
|
+
export const FeedStatus$outboundSchema: z.ZodNativeEnum<typeof FeedStatus> =
|
|
176
|
+
FeedStatus$inboundSchema;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
181
|
+
*/
|
|
182
|
+
export namespace FeedStatus$ {
|
|
183
|
+
/** @deprecated use `FeedStatus$inboundSchema` instead. */
|
|
184
|
+
export const inboundSchema = FeedStatus$inboundSchema;
|
|
185
|
+
/** @deprecated use `FeedStatus$outboundSchema` instead. */
|
|
186
|
+
export const outboundSchema = FeedStatus$outboundSchema;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const BankFeedAccount$inboundSchema: z.ZodType<
|
|
191
|
+
BankFeedAccount,
|
|
192
|
+
z.ZodTypeDef,
|
|
193
|
+
unknown
|
|
194
|
+
> = z.object({
|
|
195
|
+
id: z.string(),
|
|
196
|
+
bank_account_type: BankAccountType$inboundSchema.optional(),
|
|
197
|
+
source_account_id: z.string().optional(),
|
|
198
|
+
target_account_id: z.string().optional(),
|
|
199
|
+
target_account_name: z.string().optional(),
|
|
200
|
+
target_account_number: z.string().optional(),
|
|
201
|
+
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
202
|
+
feed_status: FeedStatus$inboundSchema.optional(),
|
|
203
|
+
country: z.nullable(z.string()).optional(),
|
|
204
|
+
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
205
|
+
custom_mappings: z.nullable(CustomMappings$inboundSchema).optional(),
|
|
206
|
+
created_at: z.nullable(
|
|
207
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
208
|
+
).optional(),
|
|
209
|
+
updated_at: z.nullable(
|
|
210
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
211
|
+
).optional(),
|
|
212
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
213
|
+
created_by: z.nullable(z.string()).optional(),
|
|
214
|
+
}).transform((v) => {
|
|
215
|
+
return remap$(v, {
|
|
216
|
+
"bank_account_type": "bankAccountType",
|
|
217
|
+
"source_account_id": "sourceAccountId",
|
|
218
|
+
"target_account_id": "targetAccountId",
|
|
219
|
+
"target_account_name": "targetAccountName",
|
|
220
|
+
"target_account_number": "targetAccountNumber",
|
|
221
|
+
"feed_status": "feedStatus",
|
|
222
|
+
"custom_fields": "customFields",
|
|
223
|
+
"custom_mappings": "customMappings",
|
|
224
|
+
"created_at": "createdAt",
|
|
225
|
+
"updated_at": "updatedAt",
|
|
226
|
+
"updated_by": "updatedBy",
|
|
227
|
+
"created_by": "createdBy",
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
/** @internal */
|
|
232
|
+
export type BankFeedAccount$Outbound = {
|
|
233
|
+
id: string;
|
|
234
|
+
bank_account_type?: string | undefined;
|
|
235
|
+
source_account_id?: string | undefined;
|
|
236
|
+
target_account_id?: string | undefined;
|
|
237
|
+
target_account_name?: string | undefined;
|
|
238
|
+
target_account_number?: string | undefined;
|
|
239
|
+
currency?: string | null | undefined;
|
|
240
|
+
feed_status?: string | undefined;
|
|
241
|
+
country?: string | null | undefined;
|
|
242
|
+
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
243
|
+
custom_mappings?: CustomMappings$Outbound | null | undefined;
|
|
244
|
+
created_at?: string | null | undefined;
|
|
245
|
+
updated_at?: string | null | undefined;
|
|
246
|
+
updated_by?: string | null | undefined;
|
|
247
|
+
created_by?: string | null | undefined;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const BankFeedAccount$outboundSchema: z.ZodType<
|
|
252
|
+
BankFeedAccount$Outbound,
|
|
253
|
+
z.ZodTypeDef,
|
|
254
|
+
BankFeedAccount
|
|
255
|
+
> = z.object({
|
|
256
|
+
id: z.string(),
|
|
257
|
+
bankAccountType: BankAccountType$outboundSchema.optional(),
|
|
258
|
+
sourceAccountId: z.string().optional(),
|
|
259
|
+
targetAccountId: z.string().optional(),
|
|
260
|
+
targetAccountName: z.string().optional(),
|
|
261
|
+
targetAccountNumber: z.string().optional(),
|
|
262
|
+
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
263
|
+
feedStatus: FeedStatus$outboundSchema.optional(),
|
|
264
|
+
country: z.nullable(z.string()).optional(),
|
|
265
|
+
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
266
|
+
customMappings: z.nullable(CustomMappings$outboundSchema).optional(),
|
|
267
|
+
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
268
|
+
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
269
|
+
updatedBy: z.nullable(z.string()).optional(),
|
|
270
|
+
createdBy: z.nullable(z.string()).optional(),
|
|
271
|
+
}).transform((v) => {
|
|
272
|
+
return remap$(v, {
|
|
273
|
+
bankAccountType: "bank_account_type",
|
|
274
|
+
sourceAccountId: "source_account_id",
|
|
275
|
+
targetAccountId: "target_account_id",
|
|
276
|
+
targetAccountName: "target_account_name",
|
|
277
|
+
targetAccountNumber: "target_account_number",
|
|
278
|
+
feedStatus: "feed_status",
|
|
279
|
+
customFields: "custom_fields",
|
|
280
|
+
customMappings: "custom_mappings",
|
|
281
|
+
createdAt: "created_at",
|
|
282
|
+
updatedAt: "updated_at",
|
|
283
|
+
updatedBy: "updated_by",
|
|
284
|
+
createdBy: "created_by",
|
|
285
|
+
});
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @internal
|
|
290
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
291
|
+
*/
|
|
292
|
+
export namespace BankFeedAccount$ {
|
|
293
|
+
/** @deprecated use `BankFeedAccount$inboundSchema` instead. */
|
|
294
|
+
export const inboundSchema = BankFeedAccount$inboundSchema;
|
|
295
|
+
/** @deprecated use `BankFeedAccount$outboundSchema` instead. */
|
|
296
|
+
export const outboundSchema = BankFeedAccount$outboundSchema;
|
|
297
|
+
/** @deprecated use `BankFeedAccount$Outbound` instead. */
|
|
298
|
+
export type Outbound = BankFeedAccount$Outbound;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function bankFeedAccountToJSON(
|
|
302
|
+
bankFeedAccount: BankFeedAccount,
|
|
303
|
+
): string {
|
|
304
|
+
return JSON.stringify(BankFeedAccount$outboundSchema.parse(bankFeedAccount));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export function bankFeedAccountFromJSON(
|
|
308
|
+
jsonString: string,
|
|
309
|
+
): SafeParseResult<BankFeedAccount, SDKValidationError> {
|
|
310
|
+
return safeParse(
|
|
311
|
+
jsonString,
|
|
312
|
+
(x) => BankFeedAccount$inboundSchema.parse(JSON.parse(x)),
|
|
313
|
+
`Failed to parse 'BankFeedAccount' from JSON`,
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/** @internal */
|
|
318
|
+
export const BankFeedAccountInput$inboundSchema: z.ZodType<
|
|
319
|
+
BankFeedAccountInput,
|
|
320
|
+
z.ZodTypeDef,
|
|
321
|
+
unknown
|
|
322
|
+
> = z.object({
|
|
323
|
+
bank_account_type: BankAccountType$inboundSchema.optional(),
|
|
324
|
+
source_account_id: z.string().optional(),
|
|
325
|
+
target_account_id: z.string().optional(),
|
|
326
|
+
target_account_name: z.string().optional(),
|
|
327
|
+
target_account_number: z.string().optional(),
|
|
328
|
+
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
329
|
+
feed_status: FeedStatus$inboundSchema.optional(),
|
|
330
|
+
country: z.nullable(z.string()).optional(),
|
|
331
|
+
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
332
|
+
}).transform((v) => {
|
|
333
|
+
return remap$(v, {
|
|
334
|
+
"bank_account_type": "bankAccountType",
|
|
335
|
+
"source_account_id": "sourceAccountId",
|
|
336
|
+
"target_account_id": "targetAccountId",
|
|
337
|
+
"target_account_name": "targetAccountName",
|
|
338
|
+
"target_account_number": "targetAccountNumber",
|
|
339
|
+
"feed_status": "feedStatus",
|
|
340
|
+
"custom_fields": "customFields",
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
/** @internal */
|
|
345
|
+
export type BankFeedAccountInput$Outbound = {
|
|
346
|
+
bank_account_type?: string | undefined;
|
|
347
|
+
source_account_id?: string | undefined;
|
|
348
|
+
target_account_id?: string | undefined;
|
|
349
|
+
target_account_name?: string | undefined;
|
|
350
|
+
target_account_number?: string | undefined;
|
|
351
|
+
currency?: string | null | undefined;
|
|
352
|
+
feed_status?: string | undefined;
|
|
353
|
+
country?: string | null | undefined;
|
|
354
|
+
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
/** @internal */
|
|
358
|
+
export const BankFeedAccountInput$outboundSchema: z.ZodType<
|
|
359
|
+
BankFeedAccountInput$Outbound,
|
|
360
|
+
z.ZodTypeDef,
|
|
361
|
+
BankFeedAccountInput
|
|
362
|
+
> = z.object({
|
|
363
|
+
bankAccountType: BankAccountType$outboundSchema.optional(),
|
|
364
|
+
sourceAccountId: z.string().optional(),
|
|
365
|
+
targetAccountId: z.string().optional(),
|
|
366
|
+
targetAccountName: z.string().optional(),
|
|
367
|
+
targetAccountNumber: z.string().optional(),
|
|
368
|
+
currency: z.nullable(Currency$outboundSchema).optional(),
|
|
369
|
+
feedStatus: FeedStatus$outboundSchema.optional(),
|
|
370
|
+
country: z.nullable(z.string()).optional(),
|
|
371
|
+
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
372
|
+
}).transform((v) => {
|
|
373
|
+
return remap$(v, {
|
|
374
|
+
bankAccountType: "bank_account_type",
|
|
375
|
+
sourceAccountId: "source_account_id",
|
|
376
|
+
targetAccountId: "target_account_id",
|
|
377
|
+
targetAccountName: "target_account_name",
|
|
378
|
+
targetAccountNumber: "target_account_number",
|
|
379
|
+
feedStatus: "feed_status",
|
|
380
|
+
customFields: "custom_fields",
|
|
381
|
+
});
|
|
382
|
+
});
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* @internal
|
|
386
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
387
|
+
*/
|
|
388
|
+
export namespace BankFeedAccountInput$ {
|
|
389
|
+
/** @deprecated use `BankFeedAccountInput$inboundSchema` instead. */
|
|
390
|
+
export const inboundSchema = BankFeedAccountInput$inboundSchema;
|
|
391
|
+
/** @deprecated use `BankFeedAccountInput$outboundSchema` instead. */
|
|
392
|
+
export const outboundSchema = BankFeedAccountInput$outboundSchema;
|
|
393
|
+
/** @deprecated use `BankFeedAccountInput$Outbound` instead. */
|
|
394
|
+
export type Outbound = BankFeedAccountInput$Outbound;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export function bankFeedAccountInputToJSON(
|
|
398
|
+
bankFeedAccountInput: BankFeedAccountInput,
|
|
399
|
+
): string {
|
|
400
|
+
return JSON.stringify(
|
|
401
|
+
BankFeedAccountInput$outboundSchema.parse(bankFeedAccountInput),
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export function bankFeedAccountInputFromJSON(
|
|
406
|
+
jsonString: string,
|
|
407
|
+
): SafeParseResult<BankFeedAccountInput, SDKValidationError> {
|
|
408
|
+
return safeParse(
|
|
409
|
+
jsonString,
|
|
410
|
+
(x) => BankFeedAccountInput$inboundSchema.parse(JSON.parse(x)),
|
|
411
|
+
`Failed to parse 'BankFeedAccountInput' from JSON`,
|
|
412
|
+
);
|
|
413
|
+
}
|