@apideck/unify 0.23.2 → 0.23.4
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/docs/sdks/activities/README.md +38 -78
- package/docs/sdks/apideckcompanies/README.md +76 -66
- package/docs/sdks/apideckdepartments/README.md +10 -132
- package/docs/sdks/applicants/README.md +138 -102
- package/docs/sdks/applications/README.md +32 -42
- package/docs/sdks/bankfeedaccounts/README.md +20 -26
- package/docs/sdks/bankfeedstatements/README.md +20 -20
- package/docs/sdks/billpayments/README.md +30 -174
- package/docs/sdks/bills/README.md +206 -218
- package/docs/sdks/collectionticketcomments/README.md +32 -100
- package/docs/sdks/collectiontickets/README.md +112 -12
- package/docs/sdks/companies/README.md +166 -286
- package/docs/sdks/connections/README.md +30 -196
- package/docs/sdks/connectionsettings/README.md +20 -194
- package/docs/sdks/contacts/README.md +210 -190
- package/docs/sdks/creditnotes/README.md +37 -525
- package/docs/sdks/customers/README.md +110 -328
- package/docs/sdks/departments/README.md +10 -84
- package/docs/sdks/drivegroups/README.md +0 -16
- package/docs/sdks/drives/README.md +10 -132
- package/docs/sdks/employees/README.md +266 -296
- package/docs/sdks/expenses/README.md +42 -136
- package/docs/sdks/files/README.md +0 -116
- package/docs/sdks/folders/README.md +0 -264
- package/docs/sdks/invoiceitems/README.md +4 -112
- package/docs/sdks/invoices/README.md +210 -316
- package/docs/sdks/journalentries/README.md +272 -476
- package/docs/sdks/leads/README.md +216 -64
- package/docs/sdks/ledgeraccounts/README.md +58 -78
- package/docs/sdks/locations/README.md +6 -120
- package/docs/sdks/messages/README.md +0 -90
- package/docs/sdks/notes/README.md +46 -16
- package/docs/sdks/opportunities/README.md +38 -42
- package/docs/sdks/payments/README.md +24 -200
- package/docs/sdks/pipelines/README.md +16 -28
- package/docs/sdks/purchaseorders/README.md +212 -294
- package/docs/sdks/sharedlinks/README.md +10 -74
- package/docs/sdks/subsidiaries/README.md +10 -116
- package/docs/sdks/suppliers/README.md +24 -322
- package/docs/sdks/taxrates/README.md +32 -26
- package/docs/sdks/timeoffrequests/README.md +0 -142
- package/docs/sdks/trackingcategories/README.md +32 -100
- package/docs/sdks/uploadsessions/README.md +90 -0
- package/docs/sdks/users/README.md +124 -136
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/accountingdepartment.d.ts +6 -3
- package/models/components/accountingdepartment.d.ts.map +1 -1
- package/models/components/accountingdepartment.js +2 -3
- package/models/components/accountingdepartment.js.map +1 -1
- package/models/components/accountinglocation.d.ts +6 -3
- package/models/components/accountinglocation.d.ts.map +1 -1
- package/models/components/accountinglocation.js +2 -3
- package/models/components/accountinglocation.js.map +1 -1
- package/models/components/activity.d.ts +6 -3
- package/models/components/activity.d.ts.map +1 -1
- package/models/components/activity.js +2 -3
- package/models/components/activity.js.map +1 -1
- package/models/components/applicant.d.ts +6 -3
- package/models/components/applicant.d.ts.map +1 -1
- package/models/components/applicant.js +2 -3
- package/models/components/applicant.js.map +1 -1
- package/models/components/application.d.ts +6 -3
- package/models/components/application.d.ts.map +1 -1
- package/models/components/application.js +2 -3
- package/models/components/application.js.map +1 -1
- package/models/components/balancesheet.d.ts +6 -3
- package/models/components/balancesheet.d.ts.map +1 -1
- package/models/components/balancesheet.js +2 -3
- package/models/components/balancesheet.js.map +1 -1
- package/models/components/bankfeedaccount.d.ts +6 -3
- package/models/components/bankfeedaccount.d.ts.map +1 -1
- package/models/components/bankfeedaccount.js +2 -3
- package/models/components/bankfeedaccount.js.map +1 -1
- package/models/components/bill.d.ts +6 -3
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +2 -3
- package/models/components/bill.js.map +1 -1
- package/models/components/billpayment.d.ts +6 -3
- package/models/components/billpayment.d.ts.map +1 -1
- package/models/components/billpayment.js +2 -3
- package/models/components/billpayment.js.map +1 -1
- package/models/components/collection.d.ts +6 -3
- package/models/components/collection.d.ts.map +1 -1
- package/models/components/collection.js +2 -3
- package/models/components/collection.js.map +1 -1
- package/models/components/collectiontag.d.ts +6 -3
- package/models/components/collectiontag.d.ts.map +1 -1
- package/models/components/collectiontag.js +2 -3
- package/models/components/collectiontag.js.map +1 -1
- package/models/components/collectionticketcomment.d.ts +6 -3
- package/models/components/collectionticketcomment.d.ts.map +1 -1
- package/models/components/collectionticketcomment.js +2 -3
- package/models/components/collectionticketcomment.js.map +1 -1
- package/models/components/collectionuser.d.ts +6 -3
- package/models/components/collectionuser.d.ts.map +1 -1
- package/models/components/collectionuser.js +2 -3
- package/models/components/collectionuser.js.map +1 -1
- package/models/components/company.d.ts +6 -3
- package/models/components/company.d.ts.map +1 -1
- package/models/components/company.js +2 -3
- package/models/components/company.js.map +1 -1
- package/models/components/companyinfo.d.ts +6 -3
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +2 -3
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/contact.d.ts +10 -7
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +6 -7
- package/models/components/contact.js.map +1 -1
- package/models/components/creditnote.d.ts +6 -3
- package/models/components/creditnote.d.ts.map +1 -1
- package/models/components/creditnote.js +2 -3
- package/models/components/creditnote.js.map +1 -1
- package/models/components/customer.d.ts +6 -3
- package/models/components/customer.d.ts.map +1 -1
- package/models/components/customer.js +2 -3
- package/models/components/customer.js.map +1 -1
- package/models/components/department.d.ts +6 -3
- package/models/components/department.d.ts.map +1 -1
- package/models/components/department.js +2 -3
- package/models/components/department.js.map +1 -1
- package/models/components/drive.d.ts +6 -3
- package/models/components/drive.d.ts.map +1 -1
- package/models/components/drive.js +2 -3
- package/models/components/drive.js.map +1 -1
- package/models/components/drivegroup.d.ts +6 -3
- package/models/components/drivegroup.d.ts.map +1 -1
- package/models/components/drivegroup.js +2 -3
- package/models/components/drivegroup.js.map +1 -1
- package/models/components/ecommercecustomer.d.ts +6 -3
- package/models/components/ecommercecustomer.d.ts.map +1 -1
- package/models/components/ecommercecustomer.js +2 -3
- package/models/components/ecommercecustomer.js.map +1 -1
- package/models/components/ecommerceorder.d.ts +9 -3
- package/models/components/ecommerceorder.d.ts.map +1 -1
- package/models/components/ecommerceorder.js +5 -3
- package/models/components/ecommerceorder.js.map +1 -1
- package/models/components/ecommerceorderrefund.d.ts +56 -0
- package/models/components/ecommerceorderrefund.d.ts.map +1 -0
- package/models/components/ecommerceorderrefund.js +77 -0
- package/models/components/ecommerceorderrefund.js.map +1 -0
- package/models/components/ecommerceproduct.d.ts +6 -3
- package/models/components/ecommerceproduct.d.ts.map +1 -1
- package/models/components/ecommerceproduct.js +2 -3
- package/models/components/ecommerceproduct.js.map +1 -1
- package/models/components/ecommercestore.d.ts +6 -3
- package/models/components/ecommercestore.d.ts.map +1 -1
- package/models/components/ecommercestore.js +2 -3
- package/models/components/ecommercestore.js.map +1 -1
- package/models/components/employee.d.ts +6 -3
- package/models/components/employee.d.ts.map +1 -1
- package/models/components/employee.js +2 -3
- package/models/components/employee.js.map +1 -1
- package/models/components/expense.d.ts +16 -3
- package/models/components/expense.d.ts.map +1 -1
- package/models/components/expense.js +10 -3
- package/models/components/expense.js.map +1 -1
- package/models/components/expenselineitem.d.ts +5 -0
- package/models/components/expenselineitem.d.ts.map +1 -1
- package/models/components/expenselineitem.js +4 -0
- package/models/components/expenselineitem.js.map +1 -1
- package/models/components/expenselineiteminput.d.ts +5 -0
- package/models/components/expenselineiteminput.d.ts.map +1 -1
- package/models/components/expenselineiteminput.js +4 -0
- package/models/components/expenselineiteminput.js.map +1 -1
- package/models/components/folder.d.ts +6 -3
- package/models/components/folder.d.ts.map +1 -1
- package/models/components/folder.js +2 -3
- package/models/components/folder.js.map +1 -1
- package/models/components/hriscompany.d.ts +6 -3
- package/models/components/hriscompany.d.ts.map +1 -1
- package/models/components/hriscompany.js +2 -3
- package/models/components/hriscompany.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/invoice.d.ts +6 -3
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +2 -3
- package/models/components/invoice.js.map +1 -1
- package/models/components/invoiceitem.d.ts +6 -3
- package/models/components/invoiceitem.d.ts.map +1 -1
- package/models/components/invoiceitem.js +2 -3
- package/models/components/invoiceitem.js.map +1 -1
- package/models/components/job.d.ts +6 -3
- package/models/components/job.d.ts.map +1 -1
- package/models/components/job.js +2 -3
- package/models/components/job.js.map +1 -1
- package/models/components/journalentry.d.ts +6 -3
- package/models/components/journalentry.d.ts.map +1 -1
- package/models/components/journalentry.js +2 -3
- package/models/components/journalentry.js.map +1 -1
- package/models/components/lead.d.ts +10 -7
- package/models/components/lead.d.ts.map +1 -1
- package/models/components/lead.js +6 -7
- package/models/components/lead.js.map +1 -1
- package/models/components/leadinput.d.ts +4 -4
- package/models/components/leadinput.d.ts.map +1 -1
- package/models/components/leadinput.js +4 -4
- package/models/components/leadinput.js.map +1 -1
- package/models/components/ledgeraccount.d.ts +6 -3
- package/models/components/ledgeraccount.d.ts.map +1 -1
- package/models/components/ledgeraccount.js +2 -3
- package/models/components/ledgeraccount.js.map +1 -1
- package/models/components/message.d.ts +6 -3
- package/models/components/message.d.ts.map +1 -1
- package/models/components/message.js +2 -3
- package/models/components/message.js.map +1 -1
- package/models/components/note.d.ts +6 -3
- package/models/components/note.d.ts.map +1 -1
- package/models/components/note.js +2 -3
- package/models/components/note.js.map +1 -1
- package/models/components/opportunity.d.ts +6 -3
- package/models/components/opportunity.d.ts.map +1 -1
- package/models/components/opportunity.js +2 -3
- package/models/components/opportunity.js.map +1 -1
- package/models/components/payment.d.ts +6 -3
- package/models/components/payment.d.ts.map +1 -1
- package/models/components/payment.js +2 -3
- package/models/components/payment.js.map +1 -1
- package/models/components/paymentsfilter.d.ts +2 -0
- package/models/components/paymentsfilter.d.ts.map +1 -1
- package/models/components/paymentsfilter.js +4 -0
- package/models/components/paymentsfilter.js.map +1 -1
- package/models/components/payroll.d.ts +6 -3
- package/models/components/payroll.d.ts.map +1 -1
- package/models/components/payroll.js +2 -3
- package/models/components/payroll.js.map +1 -1
- package/models/components/person.d.ts +6 -3
- package/models/components/person.d.ts.map +1 -1
- package/models/components/person.js +2 -3
- package/models/components/person.js.map +1 -1
- package/models/components/profitandloss.d.ts +10 -7
- package/models/components/profitandloss.d.ts.map +1 -1
- package/models/components/profitandloss.js +6 -7
- package/models/components/profitandloss.js.map +1 -1
- package/models/components/purchaseorder.d.ts +16 -3
- package/models/components/purchaseorder.d.ts.map +1 -1
- package/models/components/purchaseorder.js +10 -3
- package/models/components/purchaseorder.js.map +1 -1
- package/models/components/subsidiary.d.ts +6 -3
- package/models/components/subsidiary.d.ts.map +1 -1
- package/models/components/subsidiary.js +2 -3
- package/models/components/subsidiary.js.map +1 -1
- package/models/components/supplier.d.ts +6 -3
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +2 -3
- package/models/components/supplier.js.map +1 -1
- package/models/components/taxrate.d.ts +6 -3
- package/models/components/taxrate.d.ts.map +1 -1
- package/models/components/taxrate.js +2 -3
- package/models/components/taxrate.js.map +1 -1
- package/models/components/ticket.d.ts +6 -3
- package/models/components/ticket.d.ts.map +1 -1
- package/models/components/ticket.js +2 -3
- package/models/components/ticket.js.map +1 -1
- package/models/components/timeoffrequest.d.ts +6 -3
- package/models/components/timeoffrequest.d.ts.map +1 -1
- package/models/components/timeoffrequest.js +2 -3
- package/models/components/timeoffrequest.js.map +1 -1
- package/models/components/trackingcategory.d.ts +6 -3
- package/models/components/trackingcategory.d.ts.map +1 -1
- package/models/components/trackingcategory.js +2 -3
- package/models/components/trackingcategory.js.map +1 -1
- package/models/components/unifiedfile.d.ts +6 -3
- package/models/components/unifiedfile.d.ts.map +1 -1
- package/models/components/unifiedfile.js +2 -3
- package/models/components/unifiedfile.js.map +1 -1
- package/models/components/user.d.ts +6 -3
- package/models/components/user.d.ts.map +1 -1
- package/models/components/user.js +2 -3
- package/models/components/user.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +4 -4
- package/src/models/components/accountingdepartment.ts +4 -10
- package/src/models/components/accountinglocation.ts +4 -10
- package/src/models/components/activity.ts +4 -10
- package/src/models/components/applicant.ts +4 -10
- package/src/models/components/application.ts +4 -10
- package/src/models/components/balancesheet.ts +4 -10
- package/src/models/components/bankfeedaccount.ts +4 -10
- package/src/models/components/bill.ts +4 -10
- package/src/models/components/billpayment.ts +4 -10
- package/src/models/components/collection.ts +4 -10
- package/src/models/components/collectiontag.ts +4 -10
- package/src/models/components/collectionticketcomment.ts +4 -10
- package/src/models/components/collectionuser.ts +4 -10
- package/src/models/components/company.ts +4 -10
- package/src/models/components/companyinfo.ts +4 -10
- package/src/models/components/contact.ts +12 -18
- package/src/models/components/creditnote.ts +4 -10
- package/src/models/components/customer.ts +4 -10
- package/src/models/components/department.ts +4 -10
- package/src/models/components/drive.ts +4 -10
- package/src/models/components/drivegroup.ts +4 -10
- package/src/models/components/ecommercecustomer.ts +4 -10
- package/src/models/components/ecommerceorder.ts +14 -10
- package/src/models/components/ecommerceorderrefund.ts +116 -0
- package/src/models/components/ecommerceproduct.ts +4 -10
- package/src/models/components/ecommercestore.ts +4 -10
- package/src/models/components/employee.ts +4 -10
- package/src/models/components/expense.ts +22 -10
- package/src/models/components/expenselineitem.ts +9 -0
- package/src/models/components/expenselineiteminput.ts +9 -0
- package/src/models/components/folder.ts +4 -10
- package/src/models/components/hriscompany.ts +4 -10
- package/src/models/components/index.ts +1 -1
- package/src/models/components/invoice.ts +4 -10
- package/src/models/components/invoiceitem.ts +4 -10
- package/src/models/components/job.ts +4 -10
- package/src/models/components/journalentry.ts +4 -10
- package/src/models/components/lead.ts +12 -18
- package/src/models/components/leadinput.ts +8 -8
- package/src/models/components/ledgeraccount.ts +4 -10
- package/src/models/components/message.ts +4 -10
- package/src/models/components/note.ts +4 -10
- package/src/models/components/opportunity.ts +4 -10
- package/src/models/components/payment.ts +4 -10
- package/src/models/components/paymentsfilter.ts +6 -0
- package/src/models/components/payroll.ts +4 -10
- package/src/models/components/person.ts +4 -10
- package/src/models/components/profitandloss.ts +12 -18
- package/src/models/components/purchaseorder.ts +22 -10
- package/src/models/components/subsidiary.ts +4 -10
- package/src/models/components/supplier.ts +4 -10
- package/src/models/components/taxrate.ts +4 -10
- package/src/models/components/ticket.ts +4 -10
- package/src/models/components/timeoffrequest.ts +4 -10
- package/src/models/components/trackingcategory.ts +4 -10
- package/src/models/components/unifiedfile.ts +4 -10
- package/src/models/components/user.ts +4 -10
- package/models/components/custommappings.d.ts +0 -28
- package/models/components/custommappings.d.ts.map +0 -1
- package/models/components/custommappings.js +0 -55
- package/models/components/custommappings.js.map +0 -1
- package/src/models/components/custommappings.ts +0 -57
|
@@ -13,12 +13,6 @@ import {
|
|
|
13
13
|
Compensation$Outbound,
|
|
14
14
|
Compensation$outboundSchema,
|
|
15
15
|
} from "./compensation.js";
|
|
16
|
-
import {
|
|
17
|
-
CustomMappings,
|
|
18
|
-
CustomMappings$inboundSchema,
|
|
19
|
-
CustomMappings$Outbound,
|
|
20
|
-
CustomMappings$outboundSchema,
|
|
21
|
-
} from "./custommappings.js";
|
|
22
16
|
import {
|
|
23
17
|
PayrollTotals,
|
|
24
18
|
PayrollTotals$inboundSchema,
|
|
@@ -66,7 +60,7 @@ export type Payroll = {
|
|
|
66
60
|
/**
|
|
67
61
|
* When custom mappings are configured on the resource, the result is included here.
|
|
68
62
|
*/
|
|
69
|
-
customMappings?:
|
|
63
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
70
64
|
};
|
|
71
65
|
|
|
72
66
|
/** @internal */
|
|
@@ -81,7 +75,7 @@ export const Payroll$inboundSchema: z.ZodType<Payroll, z.ZodTypeDef, unknown> =
|
|
|
81
75
|
end_date: z.nullable(z.string()),
|
|
82
76
|
totals: PayrollTotals$inboundSchema.optional(),
|
|
83
77
|
compensations: z.array(Compensation$inboundSchema).optional(),
|
|
84
|
-
custom_mappings: z.nullable(
|
|
78
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
85
79
|
}).transform((v) => {
|
|
86
80
|
return remap$(v, {
|
|
87
81
|
"company_id": "companyId",
|
|
@@ -104,7 +98,7 @@ export type Payroll$Outbound = {
|
|
|
104
98
|
end_date: string | null;
|
|
105
99
|
totals?: PayrollTotals$Outbound | undefined;
|
|
106
100
|
compensations?: Array<Compensation$Outbound> | undefined;
|
|
107
|
-
custom_mappings?:
|
|
101
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
108
102
|
};
|
|
109
103
|
|
|
110
104
|
/** @internal */
|
|
@@ -122,7 +116,7 @@ export const Payroll$outboundSchema: z.ZodType<
|
|
|
122
116
|
endDate: z.nullable(z.string()),
|
|
123
117
|
totals: PayrollTotals$outboundSchema.optional(),
|
|
124
118
|
compensations: z.array(Compensation$outboundSchema).optional(),
|
|
125
|
-
customMappings: z.nullable(
|
|
119
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
126
120
|
}).transform((v) => {
|
|
127
121
|
return remap$(v, {
|
|
128
122
|
companyId: "company_id",
|
|
@@ -8,12 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { RFCDate } from "../../types/rfcdate.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
CustomMappings,
|
|
13
|
-
CustomMappings$inboundSchema,
|
|
14
|
-
CustomMappings$Outbound,
|
|
15
|
-
CustomMappings$outboundSchema,
|
|
16
|
-
} from "./custommappings.js";
|
|
17
11
|
import {
|
|
18
12
|
Gender,
|
|
19
13
|
Gender$inboundSchema,
|
|
@@ -56,7 +50,7 @@ export type Person = {
|
|
|
56
50
|
/**
|
|
57
51
|
* When custom mappings are configured on the resource, the result is included here.
|
|
58
52
|
*/
|
|
59
|
-
customMappings?:
|
|
53
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
60
54
|
};
|
|
61
55
|
|
|
62
56
|
/** @internal */
|
|
@@ -71,7 +65,7 @@ export const Person$inboundSchema: z.ZodType<Person, z.ZodTypeDef, unknown> = z
|
|
|
71
65
|
birthday: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
72
66
|
deceased_on: z.nullable(z.string().transform(v => new RFCDate(v)))
|
|
73
67
|
.optional(),
|
|
74
|
-
custom_mappings: z.nullable(
|
|
68
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
75
69
|
}).transform((v) => {
|
|
76
70
|
return remap$(v, {
|
|
77
71
|
"first_name": "firstName",
|
|
@@ -92,7 +86,7 @@ export type Person$Outbound = {
|
|
|
92
86
|
initials?: string | null | undefined;
|
|
93
87
|
birthday?: string | null | undefined;
|
|
94
88
|
deceased_on?: string | null | undefined;
|
|
95
|
-
custom_mappings?:
|
|
89
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
96
90
|
};
|
|
97
91
|
|
|
98
92
|
/** @internal */
|
|
@@ -111,7 +105,7 @@ export const Person$outboundSchema: z.ZodType<
|
|
|
111
105
|
.optional(),
|
|
112
106
|
deceasedOn: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
113
107
|
.optional(),
|
|
114
|
-
customMappings: z.nullable(
|
|
108
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
115
109
|
}).transform((v) => {
|
|
116
110
|
return remap$(v, {
|
|
117
111
|
firstName: "first_name",
|
|
@@ -12,12 +12,6 @@ import {
|
|
|
12
12
|
Currency$inboundSchema,
|
|
13
13
|
Currency$outboundSchema,
|
|
14
14
|
} from "./currency.js";
|
|
15
|
-
import {
|
|
16
|
-
CustomMappings,
|
|
17
|
-
CustomMappings$inboundSchema,
|
|
18
|
-
CustomMappings$Outbound,
|
|
19
|
-
CustomMappings$outboundSchema,
|
|
20
|
-
} from "./custommappings.js";
|
|
21
15
|
import {
|
|
22
16
|
ProfitAndLossIndicator,
|
|
23
17
|
ProfitAndLossIndicator$inboundSchema,
|
|
@@ -134,7 +128,7 @@ export type OtherIncome = {
|
|
|
134
128
|
/**
|
|
135
129
|
* The aggregated total of all accounts within this category.
|
|
136
130
|
*/
|
|
137
|
-
total
|
|
131
|
+
total?: number | null | undefined;
|
|
138
132
|
records?: any | undefined;
|
|
139
133
|
};
|
|
140
134
|
|
|
@@ -161,7 +155,7 @@ export type OtherExpenses = {
|
|
|
161
155
|
/**
|
|
162
156
|
* The aggregated total of all accounts within this category.
|
|
163
157
|
*/
|
|
164
|
-
total
|
|
158
|
+
total?: number | null | undefined;
|
|
165
159
|
records?: any | undefined;
|
|
166
160
|
};
|
|
167
161
|
|
|
@@ -243,7 +237,7 @@ export type ProfitAndLoss = {
|
|
|
243
237
|
/**
|
|
244
238
|
* When custom mappings are configured on the resource, the result is included here.
|
|
245
239
|
*/
|
|
246
|
-
customMappings?:
|
|
240
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
247
241
|
/**
|
|
248
242
|
* The customer id
|
|
249
243
|
*/
|
|
@@ -454,7 +448,7 @@ export const OtherIncome$inboundSchema: z.ZodType<
|
|
|
454
448
|
code: z.string().optional(),
|
|
455
449
|
title: z.string().optional(),
|
|
456
450
|
type: z.nullable(ProfitAndLossType$inboundSchema).optional(),
|
|
457
|
-
total: z.nullable(z.number()),
|
|
451
|
+
total: z.nullable(z.number()).optional(),
|
|
458
452
|
records: z.any().optional(),
|
|
459
453
|
});
|
|
460
454
|
|
|
@@ -464,7 +458,7 @@ export type OtherIncome$Outbound = {
|
|
|
464
458
|
code?: string | undefined;
|
|
465
459
|
title?: string | undefined;
|
|
466
460
|
type?: string | null | undefined;
|
|
467
|
-
total
|
|
461
|
+
total?: number | null | undefined;
|
|
468
462
|
records?: any | undefined;
|
|
469
463
|
};
|
|
470
464
|
|
|
@@ -478,7 +472,7 @@ export const OtherIncome$outboundSchema: z.ZodType<
|
|
|
478
472
|
code: z.string().optional(),
|
|
479
473
|
title: z.string().optional(),
|
|
480
474
|
type: z.nullable(ProfitAndLossType$outboundSchema).optional(),
|
|
481
|
-
total: z.nullable(z.number()),
|
|
475
|
+
total: z.nullable(z.number()).optional(),
|
|
482
476
|
records: z.any().optional(),
|
|
483
477
|
});
|
|
484
478
|
|
|
@@ -519,7 +513,7 @@ export const OtherExpenses$inboundSchema: z.ZodType<
|
|
|
519
513
|
code: z.string().optional(),
|
|
520
514
|
title: z.string().optional(),
|
|
521
515
|
type: z.nullable(ProfitAndLossType$inboundSchema).optional(),
|
|
522
|
-
total: z.nullable(z.number()),
|
|
516
|
+
total: z.nullable(z.number()).optional(),
|
|
523
517
|
records: z.any().optional(),
|
|
524
518
|
});
|
|
525
519
|
|
|
@@ -529,7 +523,7 @@ export type OtherExpenses$Outbound = {
|
|
|
529
523
|
code?: string | undefined;
|
|
530
524
|
title?: string | undefined;
|
|
531
525
|
type?: string | null | undefined;
|
|
532
|
-
total
|
|
526
|
+
total?: number | null | undefined;
|
|
533
527
|
records?: any | undefined;
|
|
534
528
|
};
|
|
535
529
|
|
|
@@ -543,7 +537,7 @@ export const OtherExpenses$outboundSchema: z.ZodType<
|
|
|
543
537
|
code: z.string().optional(),
|
|
544
538
|
title: z.string().optional(),
|
|
545
539
|
type: z.nullable(ProfitAndLossType$outboundSchema).optional(),
|
|
546
|
-
total: z.nullable(z.number()),
|
|
540
|
+
total: z.nullable(z.number()).optional(),
|
|
547
541
|
records: z.any().optional(),
|
|
548
542
|
});
|
|
549
543
|
|
|
@@ -664,7 +658,7 @@ export const ProfitAndLoss$inboundSchema: z.ZodType<
|
|
|
664
658
|
gross_profit: ProfitAndLossIndicator$inboundSchema.optional(),
|
|
665
659
|
net_operating_income: ProfitAndLossIndicator$inboundSchema.optional(),
|
|
666
660
|
net_income: ProfitAndLossIndicator$inboundSchema.optional(),
|
|
667
|
-
custom_mappings: z.nullable(
|
|
661
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
668
662
|
customer: z.string().optional(),
|
|
669
663
|
}).transform((v) => {
|
|
670
664
|
return remap$(v, {
|
|
@@ -698,7 +692,7 @@ export type ProfitAndLoss$Outbound = {
|
|
|
698
692
|
gross_profit?: ProfitAndLossIndicator$Outbound | undefined;
|
|
699
693
|
net_operating_income?: ProfitAndLossIndicator$Outbound | undefined;
|
|
700
694
|
net_income?: ProfitAndLossIndicator$Outbound | undefined;
|
|
701
|
-
custom_mappings?:
|
|
695
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
702
696
|
customer?: string | undefined;
|
|
703
697
|
};
|
|
704
698
|
|
|
@@ -723,7 +717,7 @@ export const ProfitAndLoss$outboundSchema: z.ZodType<
|
|
|
723
717
|
grossProfit: ProfitAndLossIndicator$outboundSchema.optional(),
|
|
724
718
|
netOperatingIncome: ProfitAndLossIndicator$outboundSchema.optional(),
|
|
725
719
|
netIncome: ProfitAndLossIndicator$outboundSchema.optional(),
|
|
726
|
-
customMappings: z.nullable(
|
|
720
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
727
721
|
customer: z.string().optional(),
|
|
728
722
|
}).transform((v) => {
|
|
729
723
|
return remap$(v, {
|
|
@@ -32,12 +32,6 @@ import {
|
|
|
32
32
|
CustomField$Outbound,
|
|
33
33
|
CustomField$outboundSchema,
|
|
34
34
|
} from "./customfield.js";
|
|
35
|
-
import {
|
|
36
|
-
CustomMappings,
|
|
37
|
-
CustomMappings$inboundSchema,
|
|
38
|
-
CustomMappings$Outbound,
|
|
39
|
-
CustomMappings$outboundSchema,
|
|
40
|
-
} from "./custommappings.js";
|
|
41
35
|
import {
|
|
42
36
|
InvoiceLineItem,
|
|
43
37
|
InvoiceLineItem$inboundSchema,
|
|
@@ -116,6 +110,10 @@ export type PurchaseOrder = {
|
|
|
116
110
|
* The supplier this entity is linked to.
|
|
117
111
|
*/
|
|
118
112
|
supplier?: LinkedSupplier | null | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the subsidiary
|
|
115
|
+
*/
|
|
116
|
+
subsidiaryId?: string | null | undefined;
|
|
119
117
|
/**
|
|
120
118
|
* The company or subsidiary id the transaction belongs to
|
|
121
119
|
*/
|
|
@@ -200,7 +198,7 @@ export type PurchaseOrder = {
|
|
|
200
198
|
/**
|
|
201
199
|
* When custom mappings are configured on the resource, the result is included here.
|
|
202
200
|
*/
|
|
203
|
-
customMappings?:
|
|
201
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
204
202
|
customFields?: Array<CustomField> | undefined;
|
|
205
203
|
/**
|
|
206
204
|
* 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.
|
|
@@ -241,6 +239,10 @@ export type PurchaseOrderInput = {
|
|
|
241
239
|
* The supplier this entity is linked to.
|
|
242
240
|
*/
|
|
243
241
|
supplier?: LinkedSupplierInput | null | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* The ID of the subsidiary
|
|
244
|
+
*/
|
|
245
|
+
subsidiaryId?: string | null | undefined;
|
|
244
246
|
/**
|
|
245
247
|
* The company or subsidiary id the transaction belongs to
|
|
246
248
|
*/
|
|
@@ -365,6 +367,7 @@ export const PurchaseOrder$inboundSchema: z.ZodType<
|
|
|
365
367
|
po_number: z.nullable(z.string()).optional(),
|
|
366
368
|
reference: z.nullable(z.string()).optional(),
|
|
367
369
|
supplier: z.nullable(LinkedSupplier$inboundSchema).optional(),
|
|
370
|
+
subsidiary_id: z.nullable(z.string()).optional(),
|
|
368
371
|
company_id: z.nullable(z.string()).optional(),
|
|
369
372
|
status: z.nullable(PurchaseOrderStatus$inboundSchema).optional(),
|
|
370
373
|
issued_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
@@ -393,7 +396,7 @@ export const PurchaseOrder$inboundSchema: z.ZodType<
|
|
|
393
396
|
tracking_categories: z.nullable(
|
|
394
397
|
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
395
398
|
).optional(),
|
|
396
|
-
custom_mappings: z.nullable(
|
|
399
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
397
400
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
398
401
|
row_version: z.nullable(z.string()).optional(),
|
|
399
402
|
updated_by: z.nullable(z.string()).optional(),
|
|
@@ -409,6 +412,7 @@ export const PurchaseOrder$inboundSchema: z.ZodType<
|
|
|
409
412
|
return remap$(v, {
|
|
410
413
|
"downstream_id": "downstreamId",
|
|
411
414
|
"po_number": "poNumber",
|
|
415
|
+
"subsidiary_id": "subsidiaryId",
|
|
412
416
|
"company_id": "companyId",
|
|
413
417
|
"issued_date": "issuedDate",
|
|
414
418
|
"delivery_date": "deliveryDate",
|
|
@@ -446,6 +450,7 @@ export type PurchaseOrder$Outbound = {
|
|
|
446
450
|
po_number?: string | null | undefined;
|
|
447
451
|
reference?: string | null | undefined;
|
|
448
452
|
supplier?: LinkedSupplier$Outbound | null | undefined;
|
|
453
|
+
subsidiary_id?: string | null | undefined;
|
|
449
454
|
company_id?: string | null | undefined;
|
|
450
455
|
status?: string | null | undefined;
|
|
451
456
|
issued_date?: string | null | undefined;
|
|
@@ -473,7 +478,7 @@ export type PurchaseOrder$Outbound = {
|
|
|
473
478
|
| Array<LinkedTrackingCategory$Outbound | null>
|
|
474
479
|
| null
|
|
475
480
|
| undefined;
|
|
476
|
-
custom_mappings?:
|
|
481
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
477
482
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
478
483
|
row_version?: string | null | undefined;
|
|
479
484
|
updated_by?: string | null | undefined;
|
|
@@ -494,6 +499,7 @@ export const PurchaseOrder$outboundSchema: z.ZodType<
|
|
|
494
499
|
poNumber: z.nullable(z.string()).optional(),
|
|
495
500
|
reference: z.nullable(z.string()).optional(),
|
|
496
501
|
supplier: z.nullable(LinkedSupplier$outboundSchema).optional(),
|
|
502
|
+
subsidiaryId: z.nullable(z.string()).optional(),
|
|
497
503
|
companyId: z.nullable(z.string()).optional(),
|
|
498
504
|
status: z.nullable(PurchaseOrderStatus$outboundSchema).optional(),
|
|
499
505
|
issuedDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
@@ -525,7 +531,7 @@ export const PurchaseOrder$outboundSchema: z.ZodType<
|
|
|
525
531
|
trackingCategories: z.nullable(
|
|
526
532
|
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
527
533
|
).optional(),
|
|
528
|
-
customMappings: z.nullable(
|
|
534
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
529
535
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
530
536
|
rowVersion: z.nullable(z.string()).optional(),
|
|
531
537
|
updatedBy: z.nullable(z.string()).optional(),
|
|
@@ -537,6 +543,7 @@ export const PurchaseOrder$outboundSchema: z.ZodType<
|
|
|
537
543
|
return remap$(v, {
|
|
538
544
|
downstreamId: "downstream_id",
|
|
539
545
|
poNumber: "po_number",
|
|
546
|
+
subsidiaryId: "subsidiary_id",
|
|
540
547
|
companyId: "company_id",
|
|
541
548
|
issuedDate: "issued_date",
|
|
542
549
|
deliveryDate: "delivery_date",
|
|
@@ -603,6 +610,7 @@ export const PurchaseOrderInput$inboundSchema: z.ZodType<
|
|
|
603
610
|
po_number: z.nullable(z.string()).optional(),
|
|
604
611
|
reference: z.nullable(z.string()).optional(),
|
|
605
612
|
supplier: z.nullable(LinkedSupplierInput$inboundSchema).optional(),
|
|
613
|
+
subsidiary_id: z.nullable(z.string()).optional(),
|
|
606
614
|
company_id: z.nullable(z.string()).optional(),
|
|
607
615
|
status: z.nullable(PurchaseOrderStatus$inboundSchema).optional(),
|
|
608
616
|
issued_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
@@ -637,6 +645,7 @@ export const PurchaseOrderInput$inboundSchema: z.ZodType<
|
|
|
637
645
|
}).transform((v) => {
|
|
638
646
|
return remap$(v, {
|
|
639
647
|
"po_number": "poNumber",
|
|
648
|
+
"subsidiary_id": "subsidiaryId",
|
|
640
649
|
"company_id": "companyId",
|
|
641
650
|
"issued_date": "issuedDate",
|
|
642
651
|
"delivery_date": "deliveryDate",
|
|
@@ -667,6 +676,7 @@ export type PurchaseOrderInput$Outbound = {
|
|
|
667
676
|
po_number?: string | null | undefined;
|
|
668
677
|
reference?: string | null | undefined;
|
|
669
678
|
supplier?: LinkedSupplierInput$Outbound | null | undefined;
|
|
679
|
+
subsidiary_id?: string | null | undefined;
|
|
670
680
|
company_id?: string | null | undefined;
|
|
671
681
|
status?: string | null | undefined;
|
|
672
682
|
issued_date?: string | null | undefined;
|
|
@@ -708,6 +718,7 @@ export const PurchaseOrderInput$outboundSchema: z.ZodType<
|
|
|
708
718
|
poNumber: z.nullable(z.string()).optional(),
|
|
709
719
|
reference: z.nullable(z.string()).optional(),
|
|
710
720
|
supplier: z.nullable(LinkedSupplierInput$outboundSchema).optional(),
|
|
721
|
+
subsidiaryId: z.nullable(z.string()).optional(),
|
|
711
722
|
companyId: z.nullable(z.string()).optional(),
|
|
712
723
|
status: z.nullable(PurchaseOrderStatus$outboundSchema).optional(),
|
|
713
724
|
issuedDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
@@ -745,6 +756,7 @@ export const PurchaseOrderInput$outboundSchema: z.ZodType<
|
|
|
745
756
|
}).transform((v) => {
|
|
746
757
|
return remap$(v, {
|
|
747
758
|
poNumber: "po_number",
|
|
759
|
+
subsidiaryId: "subsidiary_id",
|
|
748
760
|
companyId: "company_id",
|
|
749
761
|
issuedDate: "issued_date",
|
|
750
762
|
deliveryDate: "delivery_date",
|
|
@@ -8,12 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
CustomMappings,
|
|
13
|
-
CustomMappings$inboundSchema,
|
|
14
|
-
CustomMappings$Outbound,
|
|
15
|
-
CustomMappings$outboundSchema,
|
|
16
|
-
} from "./custommappings.js";
|
|
17
11
|
import {
|
|
18
12
|
PassThroughBody,
|
|
19
13
|
PassThroughBody$inboundSchema,
|
|
@@ -53,7 +47,7 @@ export type Subsidiary = {
|
|
|
53
47
|
/**
|
|
54
48
|
* When custom mappings are configured on the resource, the result is included here.
|
|
55
49
|
*/
|
|
56
|
-
customMappings?:
|
|
50
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
57
51
|
/**
|
|
58
52
|
* 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.
|
|
59
53
|
*/
|
|
@@ -134,7 +128,7 @@ export const Subsidiary$inboundSchema: z.ZodType<
|
|
|
134
128
|
parent_id: z.nullable(z.string()).optional(),
|
|
135
129
|
name: z.nullable(z.string()).optional(),
|
|
136
130
|
status: SubsidiaryStatus$inboundSchema.optional(),
|
|
137
|
-
custom_mappings: z.nullable(
|
|
131
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
138
132
|
row_version: z.nullable(z.string()).optional(),
|
|
139
133
|
updated_by: z.nullable(z.string()).optional(),
|
|
140
134
|
created_by: z.nullable(z.string()).optional(),
|
|
@@ -164,7 +158,7 @@ export type Subsidiary$Outbound = {
|
|
|
164
158
|
parent_id?: string | null | undefined;
|
|
165
159
|
name?: string | null | undefined;
|
|
166
160
|
status?: string | undefined;
|
|
167
|
-
custom_mappings?:
|
|
161
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
168
162
|
row_version?: string | null | undefined;
|
|
169
163
|
updated_by?: string | null | undefined;
|
|
170
164
|
created_by?: string | null | undefined;
|
|
@@ -183,7 +177,7 @@ export const Subsidiary$outboundSchema: z.ZodType<
|
|
|
183
177
|
parentId: z.nullable(z.string()).optional(),
|
|
184
178
|
name: z.nullable(z.string()).optional(),
|
|
185
179
|
status: SubsidiaryStatus$outboundSchema.optional(),
|
|
186
|
-
customMappings: z.nullable(
|
|
180
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
187
181
|
rowVersion: z.nullable(z.string()).optional(),
|
|
188
182
|
updatedBy: z.nullable(z.string()).optional(),
|
|
189
183
|
createdBy: z.nullable(z.string()).optional(),
|
|
@@ -31,12 +31,6 @@ import {
|
|
|
31
31
|
CustomField$Outbound,
|
|
32
32
|
CustomField$outboundSchema,
|
|
33
33
|
} from "./customfield.js";
|
|
34
|
-
import {
|
|
35
|
-
CustomMappings,
|
|
36
|
-
CustomMappings$inboundSchema,
|
|
37
|
-
CustomMappings$Outbound,
|
|
38
|
-
CustomMappings$outboundSchema,
|
|
39
|
-
} from "./custommappings.js";
|
|
40
34
|
import {
|
|
41
35
|
Email,
|
|
42
36
|
Email$inboundSchema,
|
|
@@ -178,7 +172,7 @@ export type Supplier = {
|
|
|
178
172
|
/**
|
|
179
173
|
* When custom mappings are configured on the resource, the result is included here.
|
|
180
174
|
*/
|
|
181
|
-
customMappings?:
|
|
175
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
182
176
|
customFields?: Array<CustomField> | undefined;
|
|
183
177
|
/**
|
|
184
178
|
* The user who last updated the object.
|
|
@@ -343,7 +337,7 @@ export const Supplier$inboundSchema: z.ZodType<
|
|
|
343
337
|
status: z.nullable(SupplierStatus$inboundSchema).optional(),
|
|
344
338
|
payment_method: z.nullable(z.string()).optional(),
|
|
345
339
|
channel: z.nullable(z.string()).optional(),
|
|
346
|
-
custom_mappings: z.nullable(
|
|
340
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
347
341
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
348
342
|
updated_by: z.nullable(z.string()).optional(),
|
|
349
343
|
created_by: z.nullable(z.string()).optional(),
|
|
@@ -410,7 +404,7 @@ export type Supplier$Outbound = {
|
|
|
410
404
|
status?: string | null | undefined;
|
|
411
405
|
payment_method?: string | null | undefined;
|
|
412
406
|
channel?: string | null | undefined;
|
|
413
|
-
custom_mappings?:
|
|
407
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
414
408
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
415
409
|
updated_by?: string | null | undefined;
|
|
416
410
|
created_by?: string | null | undefined;
|
|
@@ -452,7 +446,7 @@ export const Supplier$outboundSchema: z.ZodType<
|
|
|
452
446
|
status: z.nullable(SupplierStatus$outboundSchema).optional(),
|
|
453
447
|
paymentMethod: z.nullable(z.string()).optional(),
|
|
454
448
|
channel: z.nullable(z.string()).optional(),
|
|
455
|
-
customMappings: z.nullable(
|
|
449
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
456
450
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
457
451
|
updatedBy: z.nullable(z.string()).optional(),
|
|
458
452
|
createdBy: z.nullable(z.string()).optional(),
|
|
@@ -14,12 +14,6 @@ import {
|
|
|
14
14
|
CustomField$Outbound,
|
|
15
15
|
CustomField$outboundSchema,
|
|
16
16
|
} from "./customfield.js";
|
|
17
|
-
import {
|
|
18
|
-
CustomMappings,
|
|
19
|
-
CustomMappings$inboundSchema,
|
|
20
|
-
CustomMappings$Outbound,
|
|
21
|
-
CustomMappings$outboundSchema,
|
|
22
|
-
} from "./custommappings.js";
|
|
23
17
|
import {
|
|
24
18
|
PassThroughBody,
|
|
25
19
|
PassThroughBody$inboundSchema,
|
|
@@ -107,7 +101,7 @@ export type TaxRate = {
|
|
|
107
101
|
/**
|
|
108
102
|
* When custom mappings are configured on the resource, the result is included here.
|
|
109
103
|
*/
|
|
110
|
-
customMappings?:
|
|
104
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
111
105
|
/**
|
|
112
106
|
* 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.
|
|
113
107
|
*/
|
|
@@ -351,7 +345,7 @@ export const TaxRate$inboundSchema: z.ZodType<TaxRate, z.ZodTypeDef, unknown> =
|
|
|
351
345
|
report_tax_type: z.nullable(z.string()).optional(),
|
|
352
346
|
original_tax_rate_id: z.nullable(z.string()).optional(),
|
|
353
347
|
status: z.nullable(TaxRateStatus$inboundSchema).optional(),
|
|
354
|
-
custom_mappings: z.nullable(
|
|
348
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
355
349
|
row_version: z.nullable(z.string()).optional(),
|
|
356
350
|
updated_by: z.nullable(z.string()).optional(),
|
|
357
351
|
created_by: z.nullable(z.string()).optional(),
|
|
@@ -398,7 +392,7 @@ export type TaxRate$Outbound = {
|
|
|
398
392
|
report_tax_type?: string | null | undefined;
|
|
399
393
|
original_tax_rate_id?: string | null | undefined;
|
|
400
394
|
status?: string | null | undefined;
|
|
401
|
-
custom_mappings?:
|
|
395
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
402
396
|
row_version?: string | null | undefined;
|
|
403
397
|
updated_by?: string | null | undefined;
|
|
404
398
|
created_by?: string | null | undefined;
|
|
@@ -429,7 +423,7 @@ export const TaxRate$outboundSchema: z.ZodType<
|
|
|
429
423
|
reportTaxType: z.nullable(z.string()).optional(),
|
|
430
424
|
originalTaxRateId: z.nullable(z.string()).optional(),
|
|
431
425
|
status: z.nullable(TaxRateStatus$outboundSchema).optional(),
|
|
432
|
-
customMappings: z.nullable(
|
|
426
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
433
427
|
rowVersion: z.nullable(z.string()).optional(),
|
|
434
428
|
updatedBy: z.nullable(z.string()).optional(),
|
|
435
429
|
createdBy: z.nullable(z.string()).optional(),
|
|
@@ -32,12 +32,6 @@ import {
|
|
|
32
32
|
CollectionTagInput$Outbound,
|
|
33
33
|
CollectionTagInput$outboundSchema,
|
|
34
34
|
} from "./collectiontaginput.js";
|
|
35
|
-
import {
|
|
36
|
-
CustomMappings,
|
|
37
|
-
CustomMappings$inboundSchema,
|
|
38
|
-
CustomMappings$Outbound,
|
|
39
|
-
CustomMappings$outboundSchema,
|
|
40
|
-
} from "./custommappings.js";
|
|
41
35
|
import {
|
|
42
36
|
PassThroughBody,
|
|
43
37
|
PassThroughBody$inboundSchema,
|
|
@@ -117,7 +111,7 @@ export type Ticket = {
|
|
|
117
111
|
/**
|
|
118
112
|
* When custom mappings are configured on the resource, the result is included here.
|
|
119
113
|
*/
|
|
120
|
-
customMappings?:
|
|
114
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
121
115
|
/**
|
|
122
116
|
* The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
|
|
123
117
|
*/
|
|
@@ -206,7 +200,7 @@ export const Ticket$inboundSchema: z.ZodType<Ticket, z.ZodTypeDef, unknown> = z
|
|
|
206
200
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
207
201
|
).optional(),
|
|
208
202
|
tags: z.array(CollectionTag$inboundSchema).optional(),
|
|
209
|
-
custom_mappings: z.nullable(
|
|
203
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
210
204
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
211
205
|
}).transform((v) => {
|
|
212
206
|
return remap$(v, {
|
|
@@ -239,7 +233,7 @@ export type Ticket$Outbound = {
|
|
|
239
233
|
due_date?: string | null | undefined;
|
|
240
234
|
completed_at?: string | null | undefined;
|
|
241
235
|
tags?: Array<CollectionTag$Outbound> | undefined;
|
|
242
|
-
custom_mappings?:
|
|
236
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
243
237
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
244
238
|
};
|
|
245
239
|
|
|
@@ -264,7 +258,7 @@ export const Ticket$outboundSchema: z.ZodType<
|
|
|
264
258
|
dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
265
259
|
completedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
266
260
|
tags: z.array(CollectionTag$outboundSchema).optional(),
|
|
267
|
-
customMappings: z.nullable(
|
|
261
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
268
262
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
269
263
|
}).transform((v) => {
|
|
270
264
|
return remap$(v, {
|
|
@@ -8,12 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
CustomMappings,
|
|
13
|
-
CustomMappings$inboundSchema,
|
|
14
|
-
CustomMappings$Outbound,
|
|
15
|
-
CustomMappings$outboundSchema,
|
|
16
|
-
} from "./custommappings.js";
|
|
17
11
|
import {
|
|
18
12
|
PassThroughBody,
|
|
19
13
|
PassThroughBody$inboundSchema,
|
|
@@ -131,7 +125,7 @@ export type TimeOffRequest = {
|
|
|
131
125
|
/**
|
|
132
126
|
* When custom mappings are configured on the resource, the result is included here.
|
|
133
127
|
*/
|
|
134
|
-
customMappings?:
|
|
128
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
135
129
|
/**
|
|
136
130
|
* The user who last updated the object.
|
|
137
131
|
*/
|
|
@@ -348,7 +342,7 @@ export const TimeOffRequest$inboundSchema: z.ZodType<
|
|
|
348
342
|
amount: z.nullable(z.number()).optional(),
|
|
349
343
|
day_part: z.nullable(z.string()).optional(),
|
|
350
344
|
notes: z.lazy(() => Notes$inboundSchema).optional(),
|
|
351
|
-
custom_mappings: z.nullable(
|
|
345
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
352
346
|
updated_by: z.nullable(z.string()).optional(),
|
|
353
347
|
created_by: z.nullable(z.string()).optional(),
|
|
354
348
|
updated_at: z.nullable(
|
|
@@ -395,7 +389,7 @@ export type TimeOffRequest$Outbound = {
|
|
|
395
389
|
amount?: number | null | undefined;
|
|
396
390
|
day_part?: string | null | undefined;
|
|
397
391
|
notes?: Notes$Outbound | undefined;
|
|
398
|
-
custom_mappings?:
|
|
392
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
399
393
|
updated_by?: string | null | undefined;
|
|
400
394
|
created_by?: string | null | undefined;
|
|
401
395
|
updated_at?: string | null | undefined;
|
|
@@ -424,7 +418,7 @@ export const TimeOffRequest$outboundSchema: z.ZodType<
|
|
|
424
418
|
amount: z.nullable(z.number()).optional(),
|
|
425
419
|
dayPart: z.nullable(z.string()).optional(),
|
|
426
420
|
notes: z.lazy(() => Notes$outboundSchema).optional(),
|
|
427
|
-
customMappings: z.nullable(
|
|
421
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
428
422
|
updatedBy: z.nullable(z.string()).optional(),
|
|
429
423
|
createdBy: z.nullable(z.string()).optional(),
|
|
430
424
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -8,12 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
CustomMappings,
|
|
13
|
-
CustomMappings$inboundSchema,
|
|
14
|
-
CustomMappings$Outbound,
|
|
15
|
-
CustomMappings$outboundSchema,
|
|
16
|
-
} from "./custommappings.js";
|
|
17
11
|
import {
|
|
18
12
|
PassThroughBody,
|
|
19
13
|
PassThroughBody$inboundSchema,
|
|
@@ -64,7 +58,7 @@ export type TrackingCategory = {
|
|
|
64
58
|
/**
|
|
65
59
|
* When custom mappings are configured on the resource, the result is included here.
|
|
66
60
|
*/
|
|
67
|
-
customMappings?:
|
|
61
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
68
62
|
/**
|
|
69
63
|
* 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.
|
|
70
64
|
*/
|
|
@@ -214,7 +208,7 @@ export const TrackingCategory$inboundSchema: z.ZodType<
|
|
|
214
208
|
name: z.string().optional(),
|
|
215
209
|
code: z.nullable(z.string()).optional(),
|
|
216
210
|
status: TrackingCategoryStatus$inboundSchema.optional(),
|
|
217
|
-
custom_mappings: z.nullable(
|
|
211
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
218
212
|
row_version: z.nullable(z.string()).optional(),
|
|
219
213
|
updated_by: z.nullable(z.string()).optional(),
|
|
220
214
|
created_by: z.nullable(z.string()).optional(),
|
|
@@ -248,7 +242,7 @@ export type TrackingCategory$Outbound = {
|
|
|
248
242
|
name?: string | undefined;
|
|
249
243
|
code?: string | null | undefined;
|
|
250
244
|
status?: string | undefined;
|
|
251
|
-
custom_mappings?:
|
|
245
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
252
246
|
row_version?: string | null | undefined;
|
|
253
247
|
updated_by?: string | null | undefined;
|
|
254
248
|
created_by?: string | null | undefined;
|
|
@@ -269,7 +263,7 @@ export const TrackingCategory$outboundSchema: z.ZodType<
|
|
|
269
263
|
name: z.string().optional(),
|
|
270
264
|
code: z.nullable(z.string()).optional(),
|
|
271
265
|
status: TrackingCategoryStatus$outboundSchema.optional(),
|
|
272
|
-
customMappings: z.nullable(
|
|
266
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
273
267
|
rowVersion: z.nullable(z.string()).optional(),
|
|
274
268
|
updatedBy: z.nullable(z.string()).optional(),
|
|
275
269
|
createdBy: z.nullable(z.string()).optional(),
|