@apideck/unify 0.27.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/docs/sdks/categories/README.md +12 -0
- package/docs/sdks/companies/README.md +4 -4
- package/examples/README.md +26 -0
- package/examples/accountingTaxRatesList.example.ts +41 -0
- package/examples/package-lock.json +613 -0
- package/examples/package.json +18 -0
- package/funcs/accountingCategoriesGet.d.ts.map +1 -1
- package/funcs/accountingCategoriesGet.js +4 -2
- package/funcs/accountingCategoriesGet.js.map +1 -1
- package/funcs/accountingCategoriesList.d.ts.map +1 -1
- package/funcs/accountingCategoriesList.js +4 -2
- package/funcs/accountingCategoriesList.js.map +1 -1
- package/funcs/crmCompaniesCreate.js +1 -1
- package/funcs/crmCompaniesCreate.js.map +1 -1
- package/funcs/crmCompaniesUpdate.js +1 -1
- package/funcs/crmCompaniesUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/balancesheetfilter.d.ts +5 -0
- package/models/components/balancesheetfilter.d.ts.map +1 -1
- package/models/components/balancesheetfilter.js +4 -0
- package/models/components/balancesheetfilter.js.map +1 -1
- package/models/components/bankaccount.d.ts +5 -0
- package/models/components/bankaccount.d.ts.map +1 -1
- package/models/components/bankaccount.js +2 -0
- package/models/components/bankaccount.js.map +1 -1
- package/models/components/bankaccount1.d.ts +123 -0
- package/models/components/bankaccount1.d.ts.map +1 -0
- package/models/components/bankaccount1.js +128 -0
- package/models/components/bankaccount1.js.map +1 -0
- package/models/components/categoriesfilter.d.ts +67 -0
- package/models/components/categoriesfilter.d.ts.map +1 -0
- package/models/components/categoriesfilter.js +82 -0
- package/models/components/categoriesfilter.js.map +1 -0
- package/models/components/category.d.ts +39 -0
- package/models/components/category.d.ts.map +1 -1
- package/models/components/category.js +26 -1
- package/models/components/category.js.map +1 -1
- package/models/components/{company.d.ts → company1.d.ts} +32 -32
- package/models/components/company1.d.ts.map +1 -0
- package/models/components/{company.js → company1.js} +37 -37
- package/models/components/company1.js.map +1 -0
- package/models/components/companyinfo.d.ts +5 -0
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +4 -0
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/connection.d.ts +13 -13
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +16 -17
- package/models/components/connection.js.map +1 -1
- package/models/components/customfield.d.ts +37 -38
- package/models/components/customfield.d.ts.map +1 -1
- package/models/components/customfield.js +25 -54
- package/models/components/customfield.js.map +1 -1
- package/models/components/getcompaniesresponse.d.ts +3 -3
- package/models/components/getcompaniesresponse.d.ts.map +1 -1
- package/models/components/getcompaniesresponse.js +3 -3
- package/models/components/getcompaniesresponse.js.map +1 -1
- package/models/components/getcompanyresponse.d.ts +3 -3
- package/models/components/getcompanyresponse.d.ts.map +1 -1
- package/models/components/getcompanyresponse.js +3 -3
- package/models/components/getcompanyresponse.js.map +1 -1
- package/models/components/index.d.ts +3 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -1
- package/models/components/index.js.map +1 -1
- package/models/components/invoicelineitem.d.ts +10 -0
- package/models/components/invoicelineitem.d.ts.map +1 -1
- package/models/components/invoicelineitem.js +8 -0
- package/models/components/invoicelineitem.js.map +1 -1
- package/models/components/profitandlossfilter.d.ts +5 -0
- package/models/components/profitandlossfilter.d.ts.map +1 -1
- package/models/components/profitandlossfilter.js +4 -0
- package/models/components/profitandlossfilter.js.map +1 -1
- package/models/components/simpleformfieldoption.d.ts +13 -13
- package/models/components/simpleformfieldoption.d.ts.map +1 -1
- package/models/components/simpleformfieldoption.js +16 -16
- package/models/components/simpleformfieldoption.js.map +1 -1
- package/models/components/supplier.d.ts +10 -0
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +4 -0
- package/models/components/supplier.js.map +1 -1
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +8 -2
- package/models/errors/apierror.js.map +1 -1
- package/models/errors/badrequestresponse.js +1 -1
- package/models/errors/badrequestresponse.js.map +1 -1
- package/models/errors/notfoundresponse.js +1 -1
- package/models/errors/notfoundresponse.js.map +1 -1
- package/models/errors/paymentrequiredresponse.js +1 -1
- package/models/errors/paymentrequiredresponse.js.map +1 -1
- package/models/errors/unauthorizedresponse.js +1 -1
- package/models/errors/unauthorizedresponse.js.map +1 -1
- package/models/errors/unprocessableresponse.js +1 -1
- package/models/errors/unprocessableresponse.js.map +1 -1
- package/models/operations/accountingcategoriesall.d.ts +5 -0
- package/models/operations/accountingcategoriesall.d.ts.map +1 -1
- package/models/operations/accountingcategoriesall.js +2 -0
- package/models/operations/accountingcategoriesall.js.map +1 -1
- package/models/operations/accountingcategoriesone.d.ts +5 -0
- package/models/operations/accountingcategoriesone.d.ts.map +1 -1
- package/models/operations/accountingcategoriesone.js +2 -0
- package/models/operations/accountingcategoriesone.js.map +1 -1
- package/models/operations/crmcompaniesadd.d.ts +2 -2
- package/models/operations/crmcompaniesadd.d.ts.map +1 -1
- package/models/operations/crmcompaniesadd.js +4 -4
- package/models/operations/crmcompaniesadd.js.map +1 -1
- package/models/operations/crmcompaniesupdate.d.ts +2 -2
- package/models/operations/crmcompaniesupdate.d.ts.map +1 -1
- package/models/operations/crmcompaniesupdate.js +4 -4
- package/models/operations/crmcompaniesupdate.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/activities.test.ts +364 -13
- package/src/__tests__/apideckcompanies.test.ts +373 -9
- package/src/__tests__/apideckdepartments.test.ts +181 -9
- package/src/__tests__/applicants.test.ts +473 -9
- package/src/__tests__/applications.test.ts +189 -9
- package/src/__tests__/bankfeedaccounts.test.ts +4 -4
- package/src/__tests__/billpayments.test.ts +378 -20
- package/src/__tests__/bills.test.ts +500 -9
- package/src/__tests__/collectionticketcomments.test.ts +183 -7
- package/src/__tests__/collectiontickets.test.ts +191 -7
- package/src/__tests__/companies.test.ts +607 -78
- package/src/__tests__/connections.test.ts +409 -5
- package/src/__tests__/connectionsettings.test.ts +410 -5
- package/src/__tests__/contacts.test.ts +470 -13
- package/src/__tests__/creditnotes.test.ts +819 -148
- package/src/__tests__/customers.test.ts +517 -13
- package/src/__tests__/customobjects.test.ts +150 -9
- package/src/__tests__/customobjectschemas.test.ts +321 -9
- package/src/__tests__/departments.test.ts +173 -9
- package/src/__tests__/drivegroups.test.ts +181 -9
- package/src/__tests__/drives.test.ts +179 -9
- package/src/__tests__/employees.test.ts +829 -94
- package/src/__tests__/expenses.test.ts +338 -15
- package/src/__tests__/files.test.ts +106 -5
- package/src/__tests__/folders.test.ts +296 -13
- package/src/__tests__/invoiceitems.test.ts +272 -9
- package/src/__tests__/invoices.test.ts +695 -89
- package/src/__tests__/journalentries.test.ts +490 -8
- package/src/__tests__/leads.test.ts +450 -13
- package/src/__tests__/ledgeraccounts.test.ts +248 -19
- package/src/__tests__/locations.test.ts +298 -9
- package/src/__tests__/messages.test.ts +195 -9
- package/src/__tests__/notes.test.ts +191 -9
- package/src/__tests__/opportunities.test.ts +218 -9
- package/src/__tests__/payments.test.ts +323 -20
- package/src/__tests__/pipelines.test.ts +194 -9
- package/src/__tests__/purchaseorders.test.ts +847 -178
- package/src/__tests__/sharedlinks.test.ts +183 -9
- package/src/__tests__/subsidiaries.test.ts +183 -9
- package/src/__tests__/suppliers.test.ts +509 -13
- package/src/__tests__/taxrates.test.ts +235 -12
- package/src/__tests__/timeoffrequests.test.ts +210 -9
- package/src/__tests__/trackingcategories.test.ts +187 -7
- package/src/__tests__/uploadsessions.test.ts +78 -5
- package/src/__tests__/users.test.ts +356 -9
- package/src/funcs/accountingCategoriesGet.ts +15 -5
- package/src/funcs/accountingCategoriesList.ts +17 -7
- package/src/funcs/crmCompaniesCreate.ts +1 -1
- package/src/funcs/crmCompaniesUpdate.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/models/components/balancesheetfilter.ts +9 -0
- package/src/models/components/bankaccount.ts +7 -0
- package/src/models/components/bankaccount1.ts +207 -0
- package/src/models/components/categoriesfilter.ts +104 -0
- package/src/models/components/category.ts +39 -0
- package/src/models/components/{company.ts → company1.ts} +131 -128
- package/src/models/components/companyinfo.ts +9 -0
- package/src/models/components/connection.ts +27 -20
- package/src/models/components/customfield.ts +51 -83
- package/src/models/components/getcompaniesresponse.ts +9 -9
- package/src/models/components/getcompanyresponse.ts +9 -9
- package/src/models/components/index.ts +3 -1
- package/src/models/components/invoicelineitem.ts +18 -0
- package/src/models/components/profitandlossfilter.ts +9 -0
- package/src/models/components/simpleformfieldoption.ts +21 -18
- package/src/models/components/supplier.ts +14 -0
- package/src/models/errors/apierror.ts +8 -2
- package/src/models/errors/badrequestresponse.ts +1 -1
- package/src/models/errors/notfoundresponse.ts +1 -1
- package/src/models/errors/paymentrequiredresponse.ts +1 -1
- package/src/models/errors/unauthorizedresponse.ts +1 -1
- package/src/models/errors/unprocessableresponse.ts +1 -1
- package/src/models/operations/accountingcategoriesall.ts +7 -0
- package/src/models/operations/accountingcategoriesone.ts +7 -0
- package/src/models/operations/crmcompaniesadd.ts +6 -6
- package/src/models/operations/crmcompaniesupdate.ts +6 -6
- package/models/components/company.d.ts.map +0 -1
- package/models/components/company.js.map +0 -1
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
Address$outboundSchema,
|
|
16
16
|
} from "./address.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
18
|
+
BankAccount1,
|
|
19
|
+
BankAccount1$inboundSchema,
|
|
20
|
+
BankAccount1$Outbound,
|
|
21
|
+
BankAccount1$outboundSchema,
|
|
22
|
+
} from "./bankaccount1.js";
|
|
23
23
|
import {
|
|
24
24
|
Currency,
|
|
25
25
|
Currency$inboundSchema,
|
|
@@ -67,7 +67,7 @@ export type CompanyRowType = {
|
|
|
67
67
|
name?: string | null | undefined;
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
-
export type
|
|
70
|
+
export type Company1 = {
|
|
71
71
|
/**
|
|
72
72
|
* Unique identifier for the company
|
|
73
73
|
*/
|
|
@@ -156,7 +156,7 @@ export type Company = {
|
|
|
156
156
|
* Parent ID
|
|
157
157
|
*/
|
|
158
158
|
parentId?: string | null | undefined;
|
|
159
|
-
bankAccounts?: Array<
|
|
159
|
+
bankAccounts?: Array<BankAccount1> | undefined;
|
|
160
160
|
websites?: Array<Website> | undefined;
|
|
161
161
|
addresses?: Array<Address> | undefined;
|
|
162
162
|
socialLinks?: Array<SocialLink> | undefined;
|
|
@@ -211,7 +211,7 @@ export type Company = {
|
|
|
211
211
|
passThrough?: Array<PassThroughBody> | undefined;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
export type
|
|
214
|
+
export type Company1Input = {
|
|
215
215
|
/**
|
|
216
216
|
* Name of the company
|
|
217
217
|
*/
|
|
@@ -288,7 +288,7 @@ export type CompanyInput = {
|
|
|
288
288
|
* The last name of the person.
|
|
289
289
|
*/
|
|
290
290
|
lastName?: string | null | undefined;
|
|
291
|
-
bankAccounts?: Array<
|
|
291
|
+
bankAccounts?: Array<BankAccount1> | undefined;
|
|
292
292
|
websites?: Array<Website> | undefined;
|
|
293
293
|
addresses?: Array<Address> | undefined;
|
|
294
294
|
socialLinks?: Array<SocialLink> | undefined;
|
|
@@ -369,88 +369,91 @@ export function companyRowTypeFromJSON(
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
/** @internal */
|
|
372
|
-
export const
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
372
|
+
export const Company1$inboundSchema: z.ZodType<
|
|
373
|
+
Company1,
|
|
374
|
+
z.ZodTypeDef,
|
|
375
|
+
unknown
|
|
376
|
+
> = z.object({
|
|
377
|
+
id: z.string().optional(),
|
|
378
|
+
name: z.nullable(z.string()),
|
|
379
|
+
interaction_count: z.nullable(z.number().int()).optional(),
|
|
380
|
+
owner_id: z.nullable(z.string()).optional(),
|
|
381
|
+
image: z.nullable(z.string()).optional(),
|
|
382
|
+
description: z.nullable(z.string()).optional(),
|
|
383
|
+
vat_number: z.nullable(z.string()).optional(),
|
|
384
|
+
currency: z.nullable(Currency$inboundSchema).optional(),
|
|
385
|
+
status: z.nullable(z.string()).optional(),
|
|
386
|
+
fax: z.nullable(z.string()).optional(),
|
|
387
|
+
annual_revenue: z.nullable(z.string()).optional(),
|
|
388
|
+
number_of_employees: z.nullable(z.string()).optional(),
|
|
389
|
+
industry: z.nullable(z.string()).optional(),
|
|
390
|
+
ownership: z.nullable(z.string()).optional(),
|
|
391
|
+
sales_tax_number: z.nullable(z.string()).optional(),
|
|
392
|
+
payee_number: z.nullable(z.string()).optional(),
|
|
393
|
+
abn_or_tfn: z.nullable(z.string()).optional(),
|
|
394
|
+
abn_branch: z.nullable(z.string()).optional(),
|
|
395
|
+
acn: z.nullable(z.string()).optional(),
|
|
396
|
+
first_name: z.nullable(z.string()).optional(),
|
|
397
|
+
last_name: z.nullable(z.string()).optional(),
|
|
398
|
+
parent_id: z.nullable(z.string()).optional(),
|
|
399
|
+
bank_accounts: z.array(BankAccount1$inboundSchema).optional(),
|
|
400
|
+
websites: z.array(Website$inboundSchema).optional(),
|
|
401
|
+
addresses: z.array(Address$inboundSchema).optional(),
|
|
402
|
+
social_links: z.array(SocialLink$inboundSchema).optional(),
|
|
403
|
+
phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
|
|
404
|
+
emails: z.array(Email$inboundSchema).optional(),
|
|
405
|
+
row_type: z.lazy(() => CompanyRowType$inboundSchema).optional(),
|
|
406
|
+
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
407
|
+
tags: z.nullable(z.array(z.string())).optional(),
|
|
408
|
+
read_only: z.nullable(z.boolean()).optional(),
|
|
409
|
+
last_activity_at: z.nullable(
|
|
410
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
411
|
+
).optional(),
|
|
412
|
+
deleted: z.boolean().optional(),
|
|
413
|
+
salutation: z.nullable(z.string()).optional(),
|
|
414
|
+
birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
415
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
416
|
+
updated_by: z.nullable(z.string()).optional(),
|
|
417
|
+
created_by: z.nullable(z.string()).optional(),
|
|
418
|
+
updated_at: z.nullable(
|
|
419
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
420
|
+
).optional(),
|
|
421
|
+
created_at: z.nullable(
|
|
422
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
423
|
+
).optional(),
|
|
424
|
+
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
425
|
+
}).transform((v) => {
|
|
426
|
+
return remap$(v, {
|
|
427
|
+
"interaction_count": "interactionCount",
|
|
428
|
+
"owner_id": "ownerId",
|
|
429
|
+
"vat_number": "vatNumber",
|
|
430
|
+
"annual_revenue": "annualRevenue",
|
|
431
|
+
"number_of_employees": "numberOfEmployees",
|
|
432
|
+
"sales_tax_number": "salesTaxNumber",
|
|
433
|
+
"payee_number": "payeeNumber",
|
|
434
|
+
"abn_or_tfn": "abnOrTfn",
|
|
435
|
+
"abn_branch": "abnBranch",
|
|
436
|
+
"first_name": "firstName",
|
|
437
|
+
"last_name": "lastName",
|
|
438
|
+
"parent_id": "parentId",
|
|
439
|
+
"bank_accounts": "bankAccounts",
|
|
440
|
+
"social_links": "socialLinks",
|
|
441
|
+
"phone_numbers": "phoneNumbers",
|
|
442
|
+
"row_type": "rowType",
|
|
443
|
+
"custom_fields": "customFields",
|
|
444
|
+
"read_only": "readOnly",
|
|
445
|
+
"last_activity_at": "lastActivityAt",
|
|
446
|
+
"custom_mappings": "customMappings",
|
|
447
|
+
"updated_by": "updatedBy",
|
|
448
|
+
"created_by": "createdBy",
|
|
449
|
+
"updated_at": "updatedAt",
|
|
450
|
+
"created_at": "createdAt",
|
|
451
|
+
"pass_through": "passThrough",
|
|
450
452
|
});
|
|
453
|
+
});
|
|
451
454
|
|
|
452
455
|
/** @internal */
|
|
453
|
-
export type
|
|
456
|
+
export type Company1$Outbound = {
|
|
454
457
|
id?: string | undefined;
|
|
455
458
|
name: string | null;
|
|
456
459
|
interaction_count?: number | null | undefined;
|
|
@@ -473,7 +476,7 @@ export type Company$Outbound = {
|
|
|
473
476
|
first_name?: string | null | undefined;
|
|
474
477
|
last_name?: string | null | undefined;
|
|
475
478
|
parent_id?: string | null | undefined;
|
|
476
|
-
bank_accounts?: Array<
|
|
479
|
+
bank_accounts?: Array<BankAccount1$Outbound> | undefined;
|
|
477
480
|
websites?: Array<Website$Outbound> | undefined;
|
|
478
481
|
addresses?: Array<Address$Outbound> | undefined;
|
|
479
482
|
social_links?: Array<SocialLink$Outbound> | undefined;
|
|
@@ -496,10 +499,10 @@ export type Company$Outbound = {
|
|
|
496
499
|
};
|
|
497
500
|
|
|
498
501
|
/** @internal */
|
|
499
|
-
export const
|
|
500
|
-
|
|
502
|
+
export const Company1$outboundSchema: z.ZodType<
|
|
503
|
+
Company1$Outbound,
|
|
501
504
|
z.ZodTypeDef,
|
|
502
|
-
|
|
505
|
+
Company1
|
|
503
506
|
> = z.object({
|
|
504
507
|
id: z.string().optional(),
|
|
505
508
|
name: z.nullable(z.string()),
|
|
@@ -523,7 +526,7 @@ export const Company$outboundSchema: z.ZodType<
|
|
|
523
526
|
firstName: z.nullable(z.string()).optional(),
|
|
524
527
|
lastName: z.nullable(z.string()).optional(),
|
|
525
528
|
parentId: z.nullable(z.string()).optional(),
|
|
526
|
-
bankAccounts: z.array(
|
|
529
|
+
bankAccounts: z.array(BankAccount1$outboundSchema).optional(),
|
|
527
530
|
websites: z.array(Website$outboundSchema).optional(),
|
|
528
531
|
addresses: z.array(Address$outboundSchema).optional(),
|
|
529
532
|
socialLinks: z.array(SocialLink$outboundSchema).optional(),
|
|
@@ -579,32 +582,32 @@ export const Company$outboundSchema: z.ZodType<
|
|
|
579
582
|
* @internal
|
|
580
583
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
581
584
|
*/
|
|
582
|
-
export namespace
|
|
583
|
-
/** @deprecated use `
|
|
584
|
-
export const inboundSchema =
|
|
585
|
-
/** @deprecated use `
|
|
586
|
-
export const outboundSchema =
|
|
587
|
-
/** @deprecated use `
|
|
588
|
-
export type Outbound =
|
|
585
|
+
export namespace Company1$ {
|
|
586
|
+
/** @deprecated use `Company1$inboundSchema` instead. */
|
|
587
|
+
export const inboundSchema = Company1$inboundSchema;
|
|
588
|
+
/** @deprecated use `Company1$outboundSchema` instead. */
|
|
589
|
+
export const outboundSchema = Company1$outboundSchema;
|
|
590
|
+
/** @deprecated use `Company1$Outbound` instead. */
|
|
591
|
+
export type Outbound = Company1$Outbound;
|
|
589
592
|
}
|
|
590
593
|
|
|
591
|
-
export function
|
|
592
|
-
return JSON.stringify(
|
|
594
|
+
export function company1ToJSON(company1: Company1): string {
|
|
595
|
+
return JSON.stringify(Company1$outboundSchema.parse(company1));
|
|
593
596
|
}
|
|
594
597
|
|
|
595
|
-
export function
|
|
598
|
+
export function company1FromJSON(
|
|
596
599
|
jsonString: string,
|
|
597
|
-
): SafeParseResult<
|
|
600
|
+
): SafeParseResult<Company1, SDKValidationError> {
|
|
598
601
|
return safeParse(
|
|
599
602
|
jsonString,
|
|
600
|
-
(x) =>
|
|
601
|
-
`Failed to parse '
|
|
603
|
+
(x) => Company1$inboundSchema.parse(JSON.parse(x)),
|
|
604
|
+
`Failed to parse 'Company1' from JSON`,
|
|
602
605
|
);
|
|
603
606
|
}
|
|
604
607
|
|
|
605
608
|
/** @internal */
|
|
606
|
-
export const
|
|
607
|
-
|
|
609
|
+
export const Company1Input$inboundSchema: z.ZodType<
|
|
610
|
+
Company1Input,
|
|
608
611
|
z.ZodTypeDef,
|
|
609
612
|
unknown
|
|
610
613
|
> = z.object({
|
|
@@ -627,7 +630,7 @@ export const CompanyInput$inboundSchema: z.ZodType<
|
|
|
627
630
|
acn: z.nullable(z.string()).optional(),
|
|
628
631
|
first_name: z.nullable(z.string()).optional(),
|
|
629
632
|
last_name: z.nullable(z.string()).optional(),
|
|
630
|
-
bank_accounts: z.array(
|
|
633
|
+
bank_accounts: z.array(BankAccount1$inboundSchema).optional(),
|
|
631
634
|
websites: z.array(Website$inboundSchema).optional(),
|
|
632
635
|
addresses: z.array(Address$inboundSchema).optional(),
|
|
633
636
|
social_links: z.array(SocialLink$inboundSchema).optional(),
|
|
@@ -663,7 +666,7 @@ export const CompanyInput$inboundSchema: z.ZodType<
|
|
|
663
666
|
});
|
|
664
667
|
|
|
665
668
|
/** @internal */
|
|
666
|
-
export type
|
|
669
|
+
export type Company1Input$Outbound = {
|
|
667
670
|
name: string | null;
|
|
668
671
|
owner_id?: string | null | undefined;
|
|
669
672
|
image?: string | null | undefined;
|
|
@@ -683,7 +686,7 @@ export type CompanyInput$Outbound = {
|
|
|
683
686
|
acn?: string | null | undefined;
|
|
684
687
|
first_name?: string | null | undefined;
|
|
685
688
|
last_name?: string | null | undefined;
|
|
686
|
-
bank_accounts?: Array<
|
|
689
|
+
bank_accounts?: Array<BankAccount1$Outbound> | undefined;
|
|
687
690
|
websites?: Array<Website$Outbound> | undefined;
|
|
688
691
|
addresses?: Array<Address$Outbound> | undefined;
|
|
689
692
|
social_links?: Array<SocialLink$Outbound> | undefined;
|
|
@@ -699,10 +702,10 @@ export type CompanyInput$Outbound = {
|
|
|
699
702
|
};
|
|
700
703
|
|
|
701
704
|
/** @internal */
|
|
702
|
-
export const
|
|
703
|
-
|
|
705
|
+
export const Company1Input$outboundSchema: z.ZodType<
|
|
706
|
+
Company1Input$Outbound,
|
|
704
707
|
z.ZodTypeDef,
|
|
705
|
-
|
|
708
|
+
Company1Input
|
|
706
709
|
> = z.object({
|
|
707
710
|
name: z.nullable(z.string()),
|
|
708
711
|
ownerId: z.nullable(z.string()).optional(),
|
|
@@ -723,7 +726,7 @@ export const CompanyInput$outboundSchema: z.ZodType<
|
|
|
723
726
|
acn: z.nullable(z.string()).optional(),
|
|
724
727
|
firstName: z.nullable(z.string()).optional(),
|
|
725
728
|
lastName: z.nullable(z.string()).optional(),
|
|
726
|
-
bankAccounts: z.array(
|
|
729
|
+
bankAccounts: z.array(BankAccount1$outboundSchema).optional(),
|
|
727
730
|
websites: z.array(Website$outboundSchema).optional(),
|
|
728
731
|
addresses: z.array(Address$outboundSchema).optional(),
|
|
729
732
|
socialLinks: z.array(SocialLink$outboundSchema).optional(),
|
|
@@ -763,25 +766,25 @@ export const CompanyInput$outboundSchema: z.ZodType<
|
|
|
763
766
|
* @internal
|
|
764
767
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
765
768
|
*/
|
|
766
|
-
export namespace
|
|
767
|
-
/** @deprecated use `
|
|
768
|
-
export const inboundSchema =
|
|
769
|
-
/** @deprecated use `
|
|
770
|
-
export const outboundSchema =
|
|
771
|
-
/** @deprecated use `
|
|
772
|
-
export type Outbound =
|
|
769
|
+
export namespace Company1Input$ {
|
|
770
|
+
/** @deprecated use `Company1Input$inboundSchema` instead. */
|
|
771
|
+
export const inboundSchema = Company1Input$inboundSchema;
|
|
772
|
+
/** @deprecated use `Company1Input$outboundSchema` instead. */
|
|
773
|
+
export const outboundSchema = Company1Input$outboundSchema;
|
|
774
|
+
/** @deprecated use `Company1Input$Outbound` instead. */
|
|
775
|
+
export type Outbound = Company1Input$Outbound;
|
|
773
776
|
}
|
|
774
777
|
|
|
775
|
-
export function
|
|
776
|
-
return JSON.stringify(
|
|
778
|
+
export function company1InputToJSON(company1Input: Company1Input): string {
|
|
779
|
+
return JSON.stringify(Company1Input$outboundSchema.parse(company1Input));
|
|
777
780
|
}
|
|
778
781
|
|
|
779
|
-
export function
|
|
782
|
+
export function company1InputFromJSON(
|
|
780
783
|
jsonString: string,
|
|
781
|
-
): SafeParseResult<
|
|
784
|
+
): SafeParseResult<Company1Input, SDKValidationError> {
|
|
782
785
|
return safeParse(
|
|
783
786
|
jsonString,
|
|
784
|
-
(x) =>
|
|
785
|
-
`Failed to parse '
|
|
787
|
+
(x) => Company1Input$inboundSchema.parse(JSON.parse(x)),
|
|
788
|
+
`Failed to parse 'Company1Input' from JSON`,
|
|
786
789
|
);
|
|
787
790
|
}
|
|
@@ -129,6 +129,10 @@ export type CompanyInfo = {
|
|
|
129
129
|
* When custom mappings are configured on the resource, the result is included here.
|
|
130
130
|
*/
|
|
131
131
|
customMappings?: { [k: string]: any } | null | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Whether tracking categories are enabled for the company on transactions
|
|
134
|
+
*/
|
|
135
|
+
trackingCategoriesEnabled?: boolean | undefined;
|
|
132
136
|
/**
|
|
133
137
|
* A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.
|
|
134
138
|
*/
|
|
@@ -216,6 +220,7 @@ export const CompanyInfo$inboundSchema: z.ZodType<
|
|
|
216
220
|
phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
|
|
217
221
|
emails: z.array(Email$inboundSchema).optional(),
|
|
218
222
|
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
223
|
+
tracking_categories_enabled: z.boolean().optional(),
|
|
219
224
|
row_version: z.nullable(z.string()).optional(),
|
|
220
225
|
updated_by: z.nullable(z.string()).optional(),
|
|
221
226
|
created_by: z.nullable(z.string()).optional(),
|
|
@@ -237,6 +242,7 @@ export const CompanyInfo$inboundSchema: z.ZodType<
|
|
|
237
242
|
"company_start_date": "companyStartDate",
|
|
238
243
|
"phone_numbers": "phoneNumbers",
|
|
239
244
|
"custom_mappings": "customMappings",
|
|
245
|
+
"tracking_categories_enabled": "trackingCategoriesEnabled",
|
|
240
246
|
"row_version": "rowVersion",
|
|
241
247
|
"updated_by": "updatedBy",
|
|
242
248
|
"created_by": "createdBy",
|
|
@@ -264,6 +270,7 @@ export type CompanyInfo$Outbound = {
|
|
|
264
270
|
phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
|
|
265
271
|
emails?: Array<Email$Outbound> | undefined;
|
|
266
272
|
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
273
|
+
tracking_categories_enabled?: boolean | undefined;
|
|
267
274
|
row_version?: string | null | undefined;
|
|
268
275
|
updated_by?: string | null | undefined;
|
|
269
276
|
created_by?: string | null | undefined;
|
|
@@ -295,6 +302,7 @@ export const CompanyInfo$outboundSchema: z.ZodType<
|
|
|
295
302
|
phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
|
|
296
303
|
emails: z.array(Email$outboundSchema).optional(),
|
|
297
304
|
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
305
|
+
trackingCategoriesEnabled: z.boolean().optional(),
|
|
298
306
|
rowVersion: z.nullable(z.string()).optional(),
|
|
299
307
|
updatedBy: z.nullable(z.string()).optional(),
|
|
300
308
|
createdBy: z.nullable(z.string()).optional(),
|
|
@@ -312,6 +320,7 @@ export const CompanyInfo$outboundSchema: z.ZodType<
|
|
|
312
320
|
companyStartDate: "company_start_date",
|
|
313
321
|
phoneNumbers: "phone_numbers",
|
|
314
322
|
customMappings: "custom_mappings",
|
|
323
|
+
trackingCategoriesEnabled: "tracking_categories_enabled",
|
|
315
324
|
rowVersion: "row_version",
|
|
316
325
|
updatedBy: "updated_by",
|
|
317
326
|
createdBy: "created_by",
|
|
@@ -78,7 +78,7 @@ export const Target = {
|
|
|
78
78
|
} as const;
|
|
79
79
|
export type Target = ClosedEnum<typeof Target>;
|
|
80
80
|
|
|
81
|
-
export type
|
|
81
|
+
export type ConnectionValue5 = string | number | number;
|
|
82
82
|
|
|
83
83
|
export type ConnectionValue =
|
|
84
84
|
| string
|
|
@@ -280,43 +280,50 @@ export namespace Target$ {
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
/** @internal */
|
|
283
|
-
export const
|
|
284
|
-
|
|
283
|
+
export const ConnectionValue5$inboundSchema: z.ZodType<
|
|
284
|
+
ConnectionValue5,
|
|
285
|
+
z.ZodTypeDef,
|
|
286
|
+
unknown
|
|
287
|
+
> = z.union([z.string(), z.number().int(), z.number()]);
|
|
285
288
|
|
|
286
289
|
/** @internal */
|
|
287
|
-
export type
|
|
290
|
+
export type ConnectionValue5$Outbound = string | number | number;
|
|
288
291
|
|
|
289
292
|
/** @internal */
|
|
290
|
-
export const
|
|
291
|
-
|
|
293
|
+
export const ConnectionValue5$outboundSchema: z.ZodType<
|
|
294
|
+
ConnectionValue5$Outbound,
|
|
292
295
|
z.ZodTypeDef,
|
|
293
|
-
|
|
296
|
+
ConnectionValue5
|
|
294
297
|
> = z.union([z.string(), z.number().int(), z.number()]);
|
|
295
298
|
|
|
296
299
|
/**
|
|
297
300
|
* @internal
|
|
298
301
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
299
302
|
*/
|
|
300
|
-
export namespace
|
|
301
|
-
/** @deprecated use `
|
|
302
|
-
export const inboundSchema =
|
|
303
|
-
/** @deprecated use `
|
|
304
|
-
export const outboundSchema =
|
|
305
|
-
/** @deprecated use `
|
|
306
|
-
export type Outbound =
|
|
303
|
+
export namespace ConnectionValue5$ {
|
|
304
|
+
/** @deprecated use `ConnectionValue5$inboundSchema` instead. */
|
|
305
|
+
export const inboundSchema = ConnectionValue5$inboundSchema;
|
|
306
|
+
/** @deprecated use `ConnectionValue5$outboundSchema` instead. */
|
|
307
|
+
export const outboundSchema = ConnectionValue5$outboundSchema;
|
|
308
|
+
/** @deprecated use `ConnectionValue5$Outbound` instead. */
|
|
309
|
+
export type Outbound = ConnectionValue5$Outbound;
|
|
307
310
|
}
|
|
308
311
|
|
|
309
|
-
export function
|
|
310
|
-
|
|
312
|
+
export function connectionValue5ToJSON(
|
|
313
|
+
connectionValue5: ConnectionValue5,
|
|
314
|
+
): string {
|
|
315
|
+
return JSON.stringify(
|
|
316
|
+
ConnectionValue5$outboundSchema.parse(connectionValue5),
|
|
317
|
+
);
|
|
311
318
|
}
|
|
312
319
|
|
|
313
|
-
export function
|
|
320
|
+
export function connectionValue5FromJSON(
|
|
314
321
|
jsonString: string,
|
|
315
|
-
): SafeParseResult<
|
|
322
|
+
): SafeParseResult<ConnectionValue5, SDKValidationError> {
|
|
316
323
|
return safeParse(
|
|
317
324
|
jsonString,
|
|
318
|
-
(x) =>
|
|
319
|
-
`Failed to parse '
|
|
325
|
+
(x) => ConnectionValue5$inboundSchema.parse(JSON.parse(x)),
|
|
326
|
+
`Failed to parse 'ConnectionValue5' from JSON`,
|
|
320
327
|
);
|
|
321
328
|
}
|
|
322
329
|
|