@apideck/unify 0.36.1 → 0.36.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 +2 -2
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/examples/package-lock.json +2 -2
- package/funcs/fileStorageSharedLinksList.d.ts +2 -2
- package/funcs/fileStorageSharedLinksList.js +2 -2
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/sdks.js +2 -2
- package/lib/sdks.js.map +1 -1
- package/models/components/accountingdepartment.d.ts +13 -0
- package/models/components/accountingdepartment.d.ts.map +1 -1
- package/models/components/accountingdepartment.js +6 -0
- package/models/components/accountingdepartment.js.map +1 -1
- package/models/components/accountinglocation.d.ts +13 -0
- package/models/components/accountinglocation.d.ts.map +1 -1
- package/models/components/accountinglocation.js +6 -0
- package/models/components/accountinglocation.js.map +1 -1
- package/models/components/agedcreditors.d.ts +2 -2
- package/models/components/agedcreditors.d.ts.map +1 -1
- package/models/components/ageddebtors.d.ts +2 -2
- package/models/components/ageddebtors.d.ts.map +1 -1
- package/models/components/bill.d.ts +9 -0
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +4 -0
- package/models/components/bill.js.map +1 -1
- package/models/components/creditnote.d.ts +10 -0
- package/models/components/creditnote.d.ts.map +1 -1
- package/models/components/creditnote.js +5 -0
- package/models/components/creditnote.js.map +1 -1
- package/models/components/expense.d.ts +35 -13
- package/models/components/expense.d.ts.map +1 -1
- package/models/components/expense.js +20 -12
- package/models/components/expense.js.map +1 -1
- package/models/components/expenselineitem.d.ts +12 -11
- package/models/components/expenselineitem.d.ts.map +1 -1
- package/models/components/expenselineitem.js +6 -3
- package/models/components/expenselineitem.js.map +1 -1
- package/models/components/expenselineiteminput.d.ts +15 -13
- package/models/components/expenselineiteminput.d.ts.map +1 -1
- package/models/components/expenselineiteminput.js +6 -3
- package/models/components/expenselineiteminput.js.map +1 -1
- package/models/components/formfield.d.ts +1 -1
- package/models/components/formfield.d.ts.map +1 -1
- package/models/components/index.d.ts +5 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -1
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +9 -0
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +4 -0
- package/models/components/invoice.js.map +1 -1
- package/models/components/ledgeraccountsfilter.d.ts +5 -0
- package/models/components/ledgeraccountsfilter.d.ts.map +1 -1
- package/models/components/ledgeraccountsfilter.js +1 -0
- package/models/components/ledgeraccountsfilter.js.map +1 -1
- package/models/components/linkeddepartment.d.ts +25 -0
- package/models/components/linkeddepartment.d.ts.map +1 -0
- package/models/components/{linkedbankaccount.js → linkeddepartment.js} +10 -26
- package/models/components/linkeddepartment.js.map +1 -0
- package/models/components/linkeddepartmentinput.d.ts +20 -0
- package/models/components/linkeddepartmentinput.d.ts.map +1 -0
- package/models/components/linkeddepartmentinput.js +55 -0
- package/models/components/linkeddepartmentinput.js.map +1 -0
- package/models/components/linkedfinancialaccount.d.ts +92 -0
- package/models/components/linkedfinancialaccount.d.ts.map +1 -0
- package/models/components/linkedfinancialaccount.js +91 -0
- package/models/components/linkedfinancialaccount.js.map +1 -0
- package/models/components/linkedlocation.d.ts +25 -0
- package/models/components/linkedlocation.d.ts.map +1 -0
- package/models/components/linkedlocation.js +59 -0
- package/models/components/linkedlocation.js.map +1 -0
- package/models/components/linkedlocationinput.d.ts +25 -0
- package/models/components/linkedlocationinput.d.ts.map +1 -0
- package/models/components/linkedlocationinput.js +56 -0
- package/models/components/linkedlocationinput.js.map +1 -0
- package/models/components/linkedtrackingcategory.d.ts +5 -0
- package/models/components/linkedtrackingcategory.d.ts.map +1 -1
- package/models/components/linkedtrackingcategory.js +2 -0
- package/models/components/linkedtrackingcategory.js.map +1 -1
- package/models/components/paymentsfilter.d.ts +5 -0
- package/models/components/paymentsfilter.d.ts.map +1 -1
- package/models/components/paymentsfilter.js +2 -0
- package/models/components/paymentsfilter.js.map +1 -1
- package/models/components/project.d.ts +1 -1
- package/models/components/project.d.ts.map +1 -1
- package/models/components/purchaseorder.d.ts +9 -0
- package/models/components/purchaseorder.d.ts.map +1 -1
- package/models/components/purchaseorder.js +4 -0
- package/models/components/purchaseorder.js.map +1 -1
- package/models/components/subsidiary.d.ts +4 -0
- package/models/components/subsidiary.d.ts.map +1 -1
- package/models/components/subsidiary.js +2 -0
- package/models/components/subsidiary.js.map +1 -1
- package/package.json +2 -2
- package/sdk/sharedlinks.d.ts +2 -2
- package/sdk/sharedlinks.js +2 -2
- package/src/__tests__/expenses.test.ts +0 -28
- package/src/funcs/fileStorageSharedLinksList.ts +2 -2
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/accountingdepartment.ts +19 -0
- package/src/models/components/accountinglocation.ts +19 -0
- package/src/models/components/agedcreditors.ts +2 -2
- package/src/models/components/ageddebtors.ts +2 -2
- package/src/models/components/bill.ts +13 -0
- package/src/models/components/creditnote.ts +14 -0
- package/src/models/components/expense.ts +79 -31
- package/src/models/components/expenselineitem.ts +24 -14
- package/src/models/components/expenselineiteminput.ts +30 -16
- package/src/models/components/formfield.ts +1 -1
- package/src/models/components/index.ts +5 -1
- package/src/models/components/invoice.ts +13 -0
- package/src/models/components/ledgeraccountsfilter.ts +6 -0
- package/src/models/components/linkeddepartment.ts +55 -0
- package/src/models/components/linkeddepartmentinput.ts +45 -0
- package/src/models/components/linkedfinancialaccount.ts +161 -0
- package/src/models/components/linkedlocation.ts +55 -0
- package/src/models/components/linkedlocationinput.ts +51 -0
- package/src/models/components/linkedtrackingcategory.ts +7 -0
- package/src/models/components/paymentsfilter.ts +7 -0
- package/src/models/components/project.ts +1 -1
- package/src/models/components/purchaseorder.ts +13 -0
- package/src/models/components/subsidiary.ts +6 -0
- package/src/sdk/sharedlinks.ts +2 -2
- package/models/components/linkedbankaccount.d.ts +0 -35
- package/models/components/linkedbankaccount.d.ts.map +0 -1
- package/models/components/linkedbankaccount.js.map +0 -1
- package/src/models/components/linkedbankaccount.ts +0 -86
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type LinkedLocationInput = {
|
|
9
|
+
/**
|
|
10
|
+
* The unique identifier for the location.
|
|
11
|
+
*/
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Id to be displayed.
|
|
15
|
+
*/
|
|
16
|
+
displayId?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The name of the location.
|
|
19
|
+
*/
|
|
20
|
+
name?: string | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type LinkedLocationInput$Outbound = {
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
display_id?: string | null | undefined;
|
|
27
|
+
name?: string | null | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const LinkedLocationInput$outboundSchema: z.ZodType<
|
|
32
|
+
LinkedLocationInput$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
LinkedLocationInput
|
|
35
|
+
> = z.object({
|
|
36
|
+
id: z.string().optional(),
|
|
37
|
+
displayId: z.nullable(z.string()).optional(),
|
|
38
|
+
name: z.nullable(z.string()).optional(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
displayId: "display_id",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function linkedLocationInputToJSON(
|
|
46
|
+
linkedLocationInput: LinkedLocationInput,
|
|
47
|
+
): string {
|
|
48
|
+
return JSON.stringify(
|
|
49
|
+
LinkedLocationInput$outboundSchema.parse(linkedLocationInput),
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -13,6 +13,10 @@ export type LinkedTrackingCategory = {
|
|
|
13
13
|
* The unique identifier for the tracking category.
|
|
14
14
|
*/
|
|
15
15
|
id?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The code of the tracking category.
|
|
18
|
+
*/
|
|
19
|
+
code?: string | null | undefined;
|
|
16
20
|
/**
|
|
17
21
|
* The name of the tracking category.
|
|
18
22
|
*/
|
|
@@ -34,6 +38,7 @@ export const LinkedTrackingCategory$inboundSchema: z.ZodType<
|
|
|
34
38
|
unknown
|
|
35
39
|
> = z.object({
|
|
36
40
|
id: z.string().optional(),
|
|
41
|
+
code: z.nullable(z.string()).optional(),
|
|
37
42
|
name: z.nullable(z.string()).optional(),
|
|
38
43
|
parent_id: z.string().optional(),
|
|
39
44
|
parent_name: z.nullable(z.string()).optional(),
|
|
@@ -46,6 +51,7 @@ export const LinkedTrackingCategory$inboundSchema: z.ZodType<
|
|
|
46
51
|
/** @internal */
|
|
47
52
|
export type LinkedTrackingCategory$Outbound = {
|
|
48
53
|
id?: string | undefined;
|
|
54
|
+
code?: string | null | undefined;
|
|
49
55
|
name?: string | null | undefined;
|
|
50
56
|
parent_id?: string | undefined;
|
|
51
57
|
parent_name?: string | null | undefined;
|
|
@@ -58,6 +64,7 @@ export const LinkedTrackingCategory$outboundSchema: z.ZodType<
|
|
|
58
64
|
LinkedTrackingCategory
|
|
59
65
|
> = z.object({
|
|
60
66
|
id: z.string().optional(),
|
|
67
|
+
code: z.nullable(z.string()).optional(),
|
|
61
68
|
name: z.nullable(z.string()).optional(),
|
|
62
69
|
parentId: z.string().optional(),
|
|
63
70
|
parentName: z.nullable(z.string()).optional(),
|
|
@@ -22,6 +22,10 @@ export type PaymentsFilter = {
|
|
|
22
22
|
updatedSince?: Date | undefined;
|
|
23
23
|
invoiceId?: string | undefined;
|
|
24
24
|
supplierId?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Filter by customer id
|
|
27
|
+
*/
|
|
28
|
+
customerId?: string | undefined;
|
|
25
29
|
type?: PaymentsFilterType | undefined;
|
|
26
30
|
};
|
|
27
31
|
|
|
@@ -35,6 +39,7 @@ export type PaymentsFilter$Outbound = {
|
|
|
35
39
|
updated_since?: string | undefined;
|
|
36
40
|
invoice_id?: string | undefined;
|
|
37
41
|
supplier_id?: string | undefined;
|
|
42
|
+
customer_id?: string | undefined;
|
|
38
43
|
type?: string | undefined;
|
|
39
44
|
};
|
|
40
45
|
|
|
@@ -47,12 +52,14 @@ export const PaymentsFilter$outboundSchema: z.ZodType<
|
|
|
47
52
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
48
53
|
invoiceId: z.string().optional(),
|
|
49
54
|
supplierId: z.string().optional(),
|
|
55
|
+
customerId: z.string().optional(),
|
|
50
56
|
type: PaymentsFilterType$outboundSchema.optional(),
|
|
51
57
|
}).transform((v) => {
|
|
52
58
|
return remap$(v, {
|
|
53
59
|
updatedSince: "updated_since",
|
|
54
60
|
invoiceId: "invoice_id",
|
|
55
61
|
supplierId: "supplier_id",
|
|
62
|
+
customerId: "customer_id",
|
|
56
63
|
});
|
|
57
64
|
});
|
|
58
65
|
|
|
@@ -126,6 +126,10 @@ export type PurchaseOrder = {
|
|
|
126
126
|
* The company ID the transaction belongs to
|
|
127
127
|
*/
|
|
128
128
|
companyId?: string | null | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* The ID of the location
|
|
131
|
+
*/
|
|
132
|
+
locationId?: string | null | undefined;
|
|
129
133
|
/**
|
|
130
134
|
* The ID of the department
|
|
131
135
|
*/
|
|
@@ -288,6 +292,10 @@ export type PurchaseOrderInput = {
|
|
|
288
292
|
* The company ID the transaction belongs to
|
|
289
293
|
*/
|
|
290
294
|
companyId?: string | null | undefined;
|
|
295
|
+
/**
|
|
296
|
+
* The ID of the location
|
|
297
|
+
*/
|
|
298
|
+
locationId?: string | null | undefined;
|
|
291
299
|
/**
|
|
292
300
|
* The ID of the department
|
|
293
301
|
*/
|
|
@@ -437,6 +445,7 @@ export const PurchaseOrder$inboundSchema: z.ZodType<
|
|
|
437
445
|
supplier: z.nullable(LinkedSupplier$inboundSchema).optional(),
|
|
438
446
|
subsidiary_id: z.nullable(z.string()).optional(),
|
|
439
447
|
company_id: z.nullable(z.string()).optional(),
|
|
448
|
+
location_id: z.nullable(z.string()).optional(),
|
|
440
449
|
department_id: z.nullable(z.string()).optional(),
|
|
441
450
|
status: z.nullable(PurchaseOrderStatus$inboundSchema).optional(),
|
|
442
451
|
issued_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
@@ -492,6 +501,7 @@ export const PurchaseOrder$inboundSchema: z.ZodType<
|
|
|
492
501
|
"po_number": "poNumber",
|
|
493
502
|
"subsidiary_id": "subsidiaryId",
|
|
494
503
|
"company_id": "companyId",
|
|
504
|
+
"location_id": "locationId",
|
|
495
505
|
"department_id": "departmentId",
|
|
496
506
|
"issued_date": "issuedDate",
|
|
497
507
|
"delivery_date": "deliveryDate",
|
|
@@ -545,6 +555,7 @@ export type PurchaseOrderInput$Outbound = {
|
|
|
545
555
|
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
546
556
|
subsidiary_id?: string | null | undefined;
|
|
547
557
|
company_id?: string | null | undefined;
|
|
558
|
+
location_id?: string | null | undefined;
|
|
548
559
|
department_id?: string | null | undefined;
|
|
549
560
|
status?: string | null | undefined;
|
|
550
561
|
issued_date?: string | null | undefined;
|
|
@@ -596,6 +607,7 @@ export const PurchaseOrderInput$outboundSchema: z.ZodType<
|
|
|
596
607
|
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
597
608
|
subsidiaryId: z.nullable(z.string()).optional(),
|
|
598
609
|
companyId: z.nullable(z.string()).optional(),
|
|
610
|
+
locationId: z.nullable(z.string()).optional(),
|
|
599
611
|
departmentId: z.nullable(z.string()).optional(),
|
|
600
612
|
status: z.nullable(PurchaseOrderStatus$outboundSchema).optional(),
|
|
601
613
|
issuedDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
@@ -644,6 +656,7 @@ export const PurchaseOrderInput$outboundSchema: z.ZodType<
|
|
|
644
656
|
poNumber: "po_number",
|
|
645
657
|
subsidiaryId: "subsidiary_id",
|
|
646
658
|
companyId: "company_id",
|
|
659
|
+
locationId: "location_id",
|
|
647
660
|
departmentId: "department_id",
|
|
648
661
|
issuedDate: "issued_date",
|
|
649
662
|
deliveryDate: "delivery_date",
|
|
@@ -55,6 +55,10 @@ export type Subsidiary = {
|
|
|
55
55
|
* Display ID of the subsidiary
|
|
56
56
|
*/
|
|
57
57
|
displayId?: string | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The third-party API ID of original entity
|
|
60
|
+
*/
|
|
61
|
+
downstreamId?: string | null | undefined;
|
|
58
62
|
/**
|
|
59
63
|
* Based on the status some functionality is enabled or disabled.
|
|
60
64
|
*/
|
|
@@ -145,6 +149,7 @@ export const Subsidiary$inboundSchema: z.ZodType<
|
|
|
145
149
|
parent_id: z.nullable(z.string()).optional(),
|
|
146
150
|
name: z.nullable(z.string()).optional(),
|
|
147
151
|
display_id: z.nullable(z.string()).optional(),
|
|
152
|
+
downstream_id: z.nullable(z.string()).optional(),
|
|
148
153
|
status: SubsidiaryStatus$inboundSchema.optional(),
|
|
149
154
|
address: Address$inboundSchema.optional(),
|
|
150
155
|
currencies: z.nullable(z.array(z.nullable(Currency$inboundSchema)))
|
|
@@ -164,6 +169,7 @@ export const Subsidiary$inboundSchema: z.ZodType<
|
|
|
164
169
|
return remap$(v, {
|
|
165
170
|
"parent_id": "parentId",
|
|
166
171
|
"display_id": "displayId",
|
|
172
|
+
"downstream_id": "downstreamId",
|
|
167
173
|
"custom_mappings": "customMappings",
|
|
168
174
|
"row_version": "rowVersion",
|
|
169
175
|
"updated_by": "updatedBy",
|
package/src/sdk/sharedlinks.ts
CHANGED
|
@@ -14,10 +14,10 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
|
14
14
|
|
|
15
15
|
export class SharedLinks extends ClientSDK {
|
|
16
16
|
/**
|
|
17
|
-
* List
|
|
17
|
+
* List Shared Links
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* List
|
|
20
|
+
* List Shared Links
|
|
21
21
|
*/
|
|
22
22
|
async list(
|
|
23
23
|
request: operations.FileStorageSharedLinksAllRequest,
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type LinkedBankAccount = {
|
|
5
|
-
/**
|
|
6
|
-
* The unique identifier for the bank account.
|
|
7
|
-
*/
|
|
8
|
-
id?: string | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* The name of the bank account
|
|
11
|
-
*/
|
|
12
|
-
name?: string | null | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* The bank account number
|
|
15
|
-
*/
|
|
16
|
-
accountNumber?: string | null | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* The name of the bank or financial institution
|
|
19
|
-
*/
|
|
20
|
-
bankName?: string | null | undefined;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const LinkedBankAccount$inboundSchema: z.ZodType<LinkedBankAccount, z.ZodTypeDef, unknown>;
|
|
24
|
-
/** @internal */
|
|
25
|
-
export type LinkedBankAccount$Outbound = {
|
|
26
|
-
id?: string | undefined;
|
|
27
|
-
name?: string | null | undefined;
|
|
28
|
-
account_number?: string | null | undefined;
|
|
29
|
-
bank_name?: string | null | undefined;
|
|
30
|
-
};
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare const LinkedBankAccount$outboundSchema: z.ZodType<LinkedBankAccount$Outbound, z.ZodTypeDef, LinkedBankAccount>;
|
|
33
|
-
export declare function linkedBankAccountToJSON(linkedBankAccount: LinkedBankAccount): string;
|
|
34
|
-
export declare function linkedBankAccountFromJSON(jsonString: string): SafeParseResult<LinkedBankAccount, SDKValidationError>;
|
|
35
|
-
//# sourceMappingURL=linkedbankaccount.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkedbankaccount.d.ts","sourceRoot":"","sources":["../../src/models/components/linkedbankaccount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAWjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkedbankaccount.js","sourceRoot":"","sources":["../../src/models/components/linkedbankaccount.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEH,0DAMC;AACD,8DAQC;AAjFD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAuBjD,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,eAAe;QACjC,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AACD,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type LinkedBankAccount = {
|
|
12
|
-
/**
|
|
13
|
-
* The unique identifier for the bank account.
|
|
14
|
-
*/
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* The name of the bank account
|
|
18
|
-
*/
|
|
19
|
-
name?: string | null | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* The bank account number
|
|
22
|
-
*/
|
|
23
|
-
accountNumber?: string | null | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* The name of the bank or financial institution
|
|
26
|
-
*/
|
|
27
|
-
bankName?: string | null | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const LinkedBankAccount$inboundSchema: z.ZodType<
|
|
32
|
-
LinkedBankAccount,
|
|
33
|
-
z.ZodTypeDef,
|
|
34
|
-
unknown
|
|
35
|
-
> = z.object({
|
|
36
|
-
id: z.string().optional(),
|
|
37
|
-
name: z.nullable(z.string()).optional(),
|
|
38
|
-
account_number: z.nullable(z.string()).optional(),
|
|
39
|
-
bank_name: z.nullable(z.string()).optional(),
|
|
40
|
-
}).transform((v) => {
|
|
41
|
-
return remap$(v, {
|
|
42
|
-
"account_number": "accountNumber",
|
|
43
|
-
"bank_name": "bankName",
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
/** @internal */
|
|
47
|
-
export type LinkedBankAccount$Outbound = {
|
|
48
|
-
id?: string | undefined;
|
|
49
|
-
name?: string | null | undefined;
|
|
50
|
-
account_number?: string | null | undefined;
|
|
51
|
-
bank_name?: string | null | undefined;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const LinkedBankAccount$outboundSchema: z.ZodType<
|
|
56
|
-
LinkedBankAccount$Outbound,
|
|
57
|
-
z.ZodTypeDef,
|
|
58
|
-
LinkedBankAccount
|
|
59
|
-
> = z.object({
|
|
60
|
-
id: z.string().optional(),
|
|
61
|
-
name: z.nullable(z.string()).optional(),
|
|
62
|
-
accountNumber: z.nullable(z.string()).optional(),
|
|
63
|
-
bankName: z.nullable(z.string()).optional(),
|
|
64
|
-
}).transform((v) => {
|
|
65
|
-
return remap$(v, {
|
|
66
|
-
accountNumber: "account_number",
|
|
67
|
-
bankName: "bank_name",
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export function linkedBankAccountToJSON(
|
|
72
|
-
linkedBankAccount: LinkedBankAccount,
|
|
73
|
-
): string {
|
|
74
|
-
return JSON.stringify(
|
|
75
|
-
LinkedBankAccount$outboundSchema.parse(linkedBankAccount),
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
export function linkedBankAccountFromJSON(
|
|
79
|
-
jsonString: string,
|
|
80
|
-
): SafeParseResult<LinkedBankAccount, SDKValidationError> {
|
|
81
|
-
return safeParse(
|
|
82
|
-
jsonString,
|
|
83
|
-
(x) => LinkedBankAccount$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
-
`Failed to parse 'LinkedBankAccount' from JSON`,
|
|
85
|
-
);
|
|
86
|
-
}
|