@apideck/unify 0.23.2 → 0.23.3
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 +6 -3
- package/models/components/ecommerceorder.d.ts.map +1 -1
- package/models/components/ecommerceorder.js +2 -3
- package/models/components/ecommerceorder.js.map +1 -1
- 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 +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -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 +4 -10
- 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 +0 -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
|
@@ -20,12 +20,6 @@ import {
|
|
|
20
20
|
Currency$inboundSchema,
|
|
21
21
|
Currency$outboundSchema,
|
|
22
22
|
} from "./currency.js";
|
|
23
|
-
import {
|
|
24
|
-
CustomMappings,
|
|
25
|
-
CustomMappings$inboundSchema,
|
|
26
|
-
CustomMappings$Outbound,
|
|
27
|
-
CustomMappings$outboundSchema,
|
|
28
|
-
} from "./custommappings.js";
|
|
29
23
|
import {
|
|
30
24
|
Email,
|
|
31
25
|
Email$inboundSchema,
|
|
@@ -134,7 +128,7 @@ export type CompanyInfo = {
|
|
|
134
128
|
/**
|
|
135
129
|
* When custom mappings are configured on the resource, the result is included here.
|
|
136
130
|
*/
|
|
137
|
-
customMappings?:
|
|
131
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
138
132
|
/**
|
|
139
133
|
* 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.
|
|
140
134
|
*/
|
|
@@ -221,7 +215,7 @@ export const CompanyInfo$inboundSchema: z.ZodType<
|
|
|
221
215
|
addresses: z.array(Address$inboundSchema).optional(),
|
|
222
216
|
phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
|
|
223
217
|
emails: z.array(Email$inboundSchema).optional(),
|
|
224
|
-
custom_mappings: z.nullable(
|
|
218
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
225
219
|
row_version: z.nullable(z.string()).optional(),
|
|
226
220
|
updated_by: z.nullable(z.string()).optional(),
|
|
227
221
|
created_by: z.nullable(z.string()).optional(),
|
|
@@ -269,7 +263,7 @@ export type CompanyInfo$Outbound = {
|
|
|
269
263
|
addresses?: Array<Address$Outbound> | undefined;
|
|
270
264
|
phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
|
|
271
265
|
emails?: Array<Email$Outbound> | undefined;
|
|
272
|
-
custom_mappings?:
|
|
266
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
273
267
|
row_version?: string | null | undefined;
|
|
274
268
|
updated_by?: string | null | undefined;
|
|
275
269
|
created_by?: string | null | undefined;
|
|
@@ -300,7 +294,7 @@ export const CompanyInfo$outboundSchema: z.ZodType<
|
|
|
300
294
|
addresses: z.array(Address$outboundSchema).optional(),
|
|
301
295
|
phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
|
|
302
296
|
emails: z.array(Email$outboundSchema).optional(),
|
|
303
|
-
customMappings: z.nullable(
|
|
297
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
304
298
|
rowVersion: z.nullable(z.string()).optional(),
|
|
305
299
|
updatedBy: z.nullable(z.string()).optional(),
|
|
306
300
|
createdBy: z.nullable(z.string()).optional(),
|
|
@@ -20,12 +20,6 @@ import {
|
|
|
20
20
|
CustomField$Outbound,
|
|
21
21
|
CustomField$outboundSchema,
|
|
22
22
|
} from "./customfield.js";
|
|
23
|
-
import {
|
|
24
|
-
CustomMappings,
|
|
25
|
-
CustomMappings$inboundSchema,
|
|
26
|
-
CustomMappings$Outbound,
|
|
27
|
-
CustomMappings$outboundSchema,
|
|
28
|
-
} from "./custommappings.js";
|
|
29
23
|
import {
|
|
30
24
|
Email,
|
|
31
25
|
Email$inboundSchema,
|
|
@@ -191,7 +185,7 @@ export type Contact = {
|
|
|
191
185
|
phoneNumbers?: Array<PhoneNumber> | undefined;
|
|
192
186
|
emails?: Array<Email> | undefined;
|
|
193
187
|
emailDomain?: string | null | undefined;
|
|
194
|
-
customFields?: Array<CustomField> | undefined;
|
|
188
|
+
customFields?: Array<CustomField> | null | undefined;
|
|
195
189
|
tags?: Array<string> | null | undefined;
|
|
196
190
|
/**
|
|
197
191
|
* The first call date of the contact.
|
|
@@ -208,7 +202,7 @@ export type Contact = {
|
|
|
208
202
|
/**
|
|
209
203
|
* When custom mappings are configured on the resource, the result is included here.
|
|
210
204
|
*/
|
|
211
|
-
customMappings?:
|
|
205
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
212
206
|
/**
|
|
213
207
|
* The last update date of the contact.
|
|
214
208
|
*/
|
|
@@ -330,7 +324,7 @@ export type ContactInput = {
|
|
|
330
324
|
phoneNumbers?: Array<PhoneNumber> | undefined;
|
|
331
325
|
emails?: Array<Email> | undefined;
|
|
332
326
|
emailDomain?: string | null | undefined;
|
|
333
|
-
customFields?: Array<CustomField> | undefined;
|
|
327
|
+
customFields?: Array<CustomField> | null | undefined;
|
|
334
328
|
tags?: Array<string> | null | undefined;
|
|
335
329
|
/**
|
|
336
330
|
* The opportunity ids of the contact.
|
|
@@ -416,7 +410,7 @@ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
|
|
|
416
410
|
phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
|
|
417
411
|
emails: z.array(Email$inboundSchema).optional(),
|
|
418
412
|
email_domain: z.nullable(z.string()).optional(),
|
|
419
|
-
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
413
|
+
custom_fields: z.nullable(z.array(CustomField$inboundSchema)).optional(),
|
|
420
414
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
421
415
|
first_call_at: z.nullable(
|
|
422
416
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -427,7 +421,7 @@ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
|
|
|
427
421
|
last_activity_at: z.nullable(
|
|
428
422
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
429
423
|
).optional(),
|
|
430
|
-
custom_mappings: z.nullable(
|
|
424
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
431
425
|
updated_at: z.nullable(
|
|
432
426
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
433
427
|
).optional(),
|
|
@@ -496,12 +490,12 @@ export type Contact$Outbound = {
|
|
|
496
490
|
phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
|
|
497
491
|
emails?: Array<Email$Outbound> | undefined;
|
|
498
492
|
email_domain?: string | null | undefined;
|
|
499
|
-
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
493
|
+
custom_fields?: Array<CustomField$Outbound> | null | undefined;
|
|
500
494
|
tags?: Array<string> | null | undefined;
|
|
501
495
|
first_call_at?: string | null | undefined;
|
|
502
496
|
first_email_at?: string | null | undefined;
|
|
503
497
|
last_activity_at?: string | null | undefined;
|
|
504
|
-
custom_mappings?:
|
|
498
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
505
499
|
updated_at?: string | null | undefined;
|
|
506
500
|
created_at?: string | null | undefined;
|
|
507
501
|
opportunity_ids?: Array<string> | undefined;
|
|
@@ -545,13 +539,13 @@ export const Contact$outboundSchema: z.ZodType<
|
|
|
545
539
|
phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
|
|
546
540
|
emails: z.array(Email$outboundSchema).optional(),
|
|
547
541
|
emailDomain: z.nullable(z.string()).optional(),
|
|
548
|
-
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
542
|
+
customFields: z.nullable(z.array(CustomField$outboundSchema)).optional(),
|
|
549
543
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
550
544
|
firstCallAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
551
545
|
firstEmailAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
552
546
|
lastActivityAt: z.nullable(z.date().transform(v => v.toISOString()))
|
|
553
547
|
.optional(),
|
|
554
|
-
customMappings: z.nullable(
|
|
548
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
555
549
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
556
550
|
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
557
551
|
opportunityIds: z.array(z.string()).optional(),
|
|
@@ -646,7 +640,7 @@ export const ContactInput$inboundSchema: z.ZodType<
|
|
|
646
640
|
phone_numbers: z.array(PhoneNumber$inboundSchema).optional(),
|
|
647
641
|
emails: z.array(Email$inboundSchema).optional(),
|
|
648
642
|
email_domain: z.nullable(z.string()).optional(),
|
|
649
|
-
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
643
|
+
custom_fields: z.nullable(z.array(CustomField$inboundSchema)).optional(),
|
|
650
644
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
651
645
|
opportunity_ids: z.array(z.string()).optional(),
|
|
652
646
|
pass_through: z.array(PassThroughBody$inboundSchema).optional(),
|
|
@@ -703,7 +697,7 @@ export type ContactInput$Outbound = {
|
|
|
703
697
|
phone_numbers?: Array<PhoneNumber$Outbound> | undefined;
|
|
704
698
|
emails?: Array<Email$Outbound> | undefined;
|
|
705
699
|
email_domain?: string | null | undefined;
|
|
706
|
-
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
700
|
+
custom_fields?: Array<CustomField$Outbound> | null | undefined;
|
|
707
701
|
tags?: Array<string> | null | undefined;
|
|
708
702
|
opportunity_ids?: Array<string> | undefined;
|
|
709
703
|
pass_through?: Array<PassThroughBody$Outbound> | undefined;
|
|
@@ -745,7 +739,7 @@ export const ContactInput$outboundSchema: z.ZodType<
|
|
|
745
739
|
phoneNumbers: z.array(PhoneNumber$outboundSchema).optional(),
|
|
746
740
|
emails: z.array(Email$outboundSchema).optional(),
|
|
747
741
|
emailDomain: z.nullable(z.string()).optional(),
|
|
748
|
-
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
742
|
+
customFields: z.nullable(z.array(CustomField$outboundSchema)).optional(),
|
|
749
743
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
750
744
|
opportunityIds: z.array(z.string()).optional(),
|
|
751
745
|
passThrough: z.array(PassThroughBody$outboundSchema).optional(),
|
|
@@ -35,12 +35,6 @@ import {
|
|
|
35
35
|
CustomField$Outbound,
|
|
36
36
|
CustomField$outboundSchema,
|
|
37
37
|
} from "./customfield.js";
|
|
38
|
-
import {
|
|
39
|
-
CustomMappings,
|
|
40
|
-
CustomMappings$inboundSchema,
|
|
41
|
-
CustomMappings$Outbound,
|
|
42
|
-
CustomMappings$outboundSchema,
|
|
43
|
-
} from "./custommappings.js";
|
|
44
38
|
import {
|
|
45
39
|
InvoiceLineItem,
|
|
46
40
|
InvoiceLineItem$inboundSchema,
|
|
@@ -208,7 +202,7 @@ export type CreditNote = {
|
|
|
208
202
|
/**
|
|
209
203
|
* When custom mappings are configured on the resource, the result is included here.
|
|
210
204
|
*/
|
|
211
|
-
customMappings?:
|
|
205
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
212
206
|
customFields?: Array<CustomField> | undefined;
|
|
213
207
|
/**
|
|
214
208
|
* 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.
|
|
@@ -412,7 +406,7 @@ export const CreditNote$inboundSchema: z.ZodType<
|
|
|
412
406
|
tracking_categories: z.nullable(
|
|
413
407
|
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
414
408
|
).optional(),
|
|
415
|
-
custom_mappings: z.nullable(
|
|
409
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
416
410
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
417
411
|
row_version: z.nullable(z.string()).optional(),
|
|
418
412
|
updated_by: z.nullable(z.string()).optional(),
|
|
@@ -482,7 +476,7 @@ export type CreditNote$Outbound = {
|
|
|
482
476
|
| Array<LinkedTrackingCategory$Outbound | null>
|
|
483
477
|
| null
|
|
484
478
|
| undefined;
|
|
485
|
-
custom_mappings?:
|
|
479
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
486
480
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
487
481
|
row_version?: string | null | undefined;
|
|
488
482
|
updated_by?: string | null | undefined;
|
|
@@ -526,7 +520,7 @@ export const CreditNote$outboundSchema: z.ZodType<
|
|
|
526
520
|
trackingCategories: z.nullable(
|
|
527
521
|
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
528
522
|
).optional(),
|
|
529
|
-
customMappings: z.nullable(
|
|
523
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
530
524
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
531
525
|
rowVersion: z.nullable(z.string()).optional(),
|
|
532
526
|
updatedBy: 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,
|
|
@@ -193,7 +187,7 @@ export type Customer = {
|
|
|
193
187
|
/**
|
|
194
188
|
* When custom mappings are configured on the resource, the result is included here.
|
|
195
189
|
*/
|
|
196
|
-
customMappings?:
|
|
190
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
197
191
|
/**
|
|
198
192
|
* The user who last updated the object.
|
|
199
193
|
*/
|
|
@@ -360,7 +354,7 @@ export const Customer$inboundSchema: z.ZodType<
|
|
|
360
354
|
payment_method: z.nullable(z.string()).optional(),
|
|
361
355
|
channel: z.nullable(z.string()).optional(),
|
|
362
356
|
custom_fields: z.array(CustomField$inboundSchema).optional(),
|
|
363
|
-
custom_mappings: z.nullable(
|
|
357
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
364
358
|
updated_by: z.nullable(z.string()).optional(),
|
|
365
359
|
created_by: z.nullable(z.string()).optional(),
|
|
366
360
|
updated_at: z.nullable(
|
|
@@ -427,7 +421,7 @@ export type Customer$Outbound = {
|
|
|
427
421
|
payment_method?: string | null | undefined;
|
|
428
422
|
channel?: string | null | undefined;
|
|
429
423
|
custom_fields?: Array<CustomField$Outbound> | undefined;
|
|
430
|
-
custom_mappings?:
|
|
424
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
431
425
|
updated_by?: string | null | undefined;
|
|
432
426
|
created_by?: string | null | undefined;
|
|
433
427
|
updated_at?: string | null | undefined;
|
|
@@ -470,7 +464,7 @@ export const Customer$outboundSchema: z.ZodType<
|
|
|
470
464
|
paymentMethod: z.nullable(z.string()).optional(),
|
|
471
465
|
channel: z.nullable(z.string()).optional(),
|
|
472
466
|
customFields: z.array(CustomField$outboundSchema).optional(),
|
|
473
|
-
customMappings: z.nullable(
|
|
467
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
474
468
|
updatedBy: z.nullable(z.string()).optional(),
|
|
475
469
|
createdBy: z.nullable(z.string()).optional(),
|
|
476
470
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
CustomMappings,
|
|
12
|
-
CustomMappings$inboundSchema,
|
|
13
|
-
CustomMappings$Outbound,
|
|
14
|
-
CustomMappings$outboundSchema,
|
|
15
|
-
} from "./custommappings.js";
|
|
16
10
|
import {
|
|
17
11
|
PassThroughBody,
|
|
18
12
|
PassThroughBody$inboundSchema,
|
|
@@ -38,7 +32,7 @@ export type Department = {
|
|
|
38
32
|
/**
|
|
39
33
|
* When custom mappings are configured on the resource, the result is included here.
|
|
40
34
|
*/
|
|
41
|
-
customMappings?:
|
|
35
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
42
36
|
/**
|
|
43
37
|
* The user who last updated the object.
|
|
44
38
|
*/
|
|
@@ -72,7 +66,7 @@ export const Department$inboundSchema: z.ZodType<
|
|
|
72
66
|
name: z.nullable(z.string()).optional(),
|
|
73
67
|
code: z.nullable(z.string()).optional(),
|
|
74
68
|
description: z.nullable(z.string()).optional(),
|
|
75
|
-
custom_mappings: z.nullable(
|
|
69
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
76
70
|
updated_by: z.nullable(z.string()).optional(),
|
|
77
71
|
created_by: z.nullable(z.string()).optional(),
|
|
78
72
|
updated_at: z.nullable(
|
|
@@ -101,7 +95,7 @@ export type Department$Outbound = {
|
|
|
101
95
|
name?: string | null | undefined;
|
|
102
96
|
code?: string | null | undefined;
|
|
103
97
|
description?: string | null | undefined;
|
|
104
|
-
custom_mappings?:
|
|
98
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
105
99
|
updated_by?: string | null | undefined;
|
|
106
100
|
created_by?: string | null | undefined;
|
|
107
101
|
updated_at?: string | null | undefined;
|
|
@@ -120,7 +114,7 @@ export const Department$outboundSchema: z.ZodType<
|
|
|
120
114
|
name: z.nullable(z.string()).optional(),
|
|
121
115
|
code: z.nullable(z.string()).optional(),
|
|
122
116
|
description: z.nullable(z.string()).optional(),
|
|
123
|
-
customMappings: z.nullable(
|
|
117
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
124
118
|
updatedBy: z.nullable(z.string()).optional(),
|
|
125
119
|
createdBy: z.nullable(z.string()).optional(),
|
|
126
120
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
CustomMappings,
|
|
12
|
-
CustomMappings$inboundSchema,
|
|
13
|
-
CustomMappings$Outbound,
|
|
14
|
-
CustomMappings$outboundSchema,
|
|
15
|
-
} from "./custommappings.js";
|
|
16
10
|
import {
|
|
17
11
|
PassThroughBody,
|
|
18
12
|
PassThroughBody$inboundSchema,
|
|
@@ -36,7 +30,7 @@ export type Drive = {
|
|
|
36
30
|
/**
|
|
37
31
|
* When custom mappings are configured on the resource, the result is included here.
|
|
38
32
|
*/
|
|
39
|
-
customMappings?:
|
|
33
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
40
34
|
/**
|
|
41
35
|
* The user who last updated the object.
|
|
42
36
|
*/
|
|
@@ -65,7 +59,7 @@ export const Drive$inboundSchema: z.ZodType<Drive, z.ZodTypeDef, unknown> = z
|
|
|
65
59
|
id: z.string(),
|
|
66
60
|
name: z.string(),
|
|
67
61
|
description: z.nullable(z.string()).optional(),
|
|
68
|
-
custom_mappings: z.nullable(
|
|
62
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
69
63
|
updated_by: z.nullable(z.string()).optional(),
|
|
70
64
|
created_by: z.nullable(z.string()).optional(),
|
|
71
65
|
updated_at: z.nullable(
|
|
@@ -91,7 +85,7 @@ export type Drive$Outbound = {
|
|
|
91
85
|
id: string;
|
|
92
86
|
name: string;
|
|
93
87
|
description?: string | null | undefined;
|
|
94
|
-
custom_mappings?:
|
|
88
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
95
89
|
updated_by?: string | null | undefined;
|
|
96
90
|
created_by?: string | null | undefined;
|
|
97
91
|
updated_at?: string | null | undefined;
|
|
@@ -108,7 +102,7 @@ export const Drive$outboundSchema: z.ZodType<
|
|
|
108
102
|
id: z.string(),
|
|
109
103
|
name: z.string(),
|
|
110
104
|
description: z.nullable(z.string()).optional(),
|
|
111
|
-
customMappings: z.nullable(
|
|
105
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
112
106
|
updatedBy: z.nullable(z.string()).optional(),
|
|
113
107
|
createdBy: z.nullable(z.string()).optional(),
|
|
114
108
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
CustomMappings,
|
|
12
|
-
CustomMappings$inboundSchema,
|
|
13
|
-
CustomMappings$Outbound,
|
|
14
|
-
CustomMappings$outboundSchema,
|
|
15
|
-
} from "./custommappings.js";
|
|
16
10
|
import {
|
|
17
11
|
PassThroughBody,
|
|
18
12
|
PassThroughBody$inboundSchema,
|
|
@@ -40,7 +34,7 @@ export type DriveGroup = {
|
|
|
40
34
|
/**
|
|
41
35
|
* When custom mappings are configured on the resource, the result is included here.
|
|
42
36
|
*/
|
|
43
|
-
customMappings?:
|
|
37
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
44
38
|
/**
|
|
45
39
|
* The user who last updated the object.
|
|
46
40
|
*/
|
|
@@ -73,7 +67,7 @@ export const DriveGroup$inboundSchema: z.ZodType<
|
|
|
73
67
|
name: z.string(),
|
|
74
68
|
display_name: z.nullable(z.string()).optional(),
|
|
75
69
|
description: z.nullable(z.string()).optional(),
|
|
76
|
-
custom_mappings: z.nullable(
|
|
70
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
77
71
|
updated_by: z.nullable(z.string()).optional(),
|
|
78
72
|
created_by: z.nullable(z.string()).optional(),
|
|
79
73
|
updated_at: z.nullable(
|
|
@@ -101,7 +95,7 @@ export type DriveGroup$Outbound = {
|
|
|
101
95
|
name: string;
|
|
102
96
|
display_name?: string | null | undefined;
|
|
103
97
|
description?: string | null | undefined;
|
|
104
|
-
custom_mappings?:
|
|
98
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
105
99
|
updated_by?: string | null | undefined;
|
|
106
100
|
created_by?: string | null | undefined;
|
|
107
101
|
updated_at?: string | null | undefined;
|
|
@@ -119,7 +113,7 @@ export const DriveGroup$outboundSchema: z.ZodType<
|
|
|
119
113
|
name: z.string(),
|
|
120
114
|
displayName: z.nullable(z.string()).optional(),
|
|
121
115
|
description: z.nullable(z.string()).optional(),
|
|
122
|
-
customMappings: z.nullable(
|
|
116
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
123
117
|
updatedBy: z.nullable(z.string()).optional(),
|
|
124
118
|
createdBy: z.nullable(z.string()).optional(),
|
|
125
119
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
@@ -13,12 +13,6 @@ import {
|
|
|
13
13
|
Currency$inboundSchema,
|
|
14
14
|
Currency$outboundSchema,
|
|
15
15
|
} from "./currency.js";
|
|
16
|
-
import {
|
|
17
|
-
CustomMappings,
|
|
18
|
-
CustomMappings$inboundSchema,
|
|
19
|
-
CustomMappings$Outbound,
|
|
20
|
-
CustomMappings$outboundSchema,
|
|
21
|
-
} from "./custommappings.js";
|
|
22
16
|
import {
|
|
23
17
|
Email,
|
|
24
18
|
Email$inboundSchema,
|
|
@@ -134,7 +128,7 @@ export type EcommerceCustomer = {
|
|
|
134
128
|
/**
|
|
135
129
|
* When custom mappings are configured on the resource, the result is included here.
|
|
136
130
|
*/
|
|
137
|
-
customMappings?:
|
|
131
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
138
132
|
/**
|
|
139
133
|
* The date and time when the object was created.
|
|
140
134
|
*/
|
|
@@ -283,7 +277,7 @@ export const EcommerceCustomer$inboundSchema: z.ZodType<
|
|
|
283
277
|
phone_numbers: z.nullable(z.array(PhoneNumber$inboundSchema)).optional(),
|
|
284
278
|
addresses: z.array(z.lazy(() => Addresses$inboundSchema)).optional(),
|
|
285
279
|
orders: z.array(LinkedEcommerceOrder$inboundSchema).optional(),
|
|
286
|
-
custom_mappings: z.nullable(
|
|
280
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
287
281
|
created_at: z.nullable(
|
|
288
282
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
289
283
|
).optional(),
|
|
@@ -315,7 +309,7 @@ export type EcommerceCustomer$Outbound = {
|
|
|
315
309
|
phone_numbers?: Array<PhoneNumber$Outbound> | null | undefined;
|
|
316
310
|
addresses?: Array<Addresses$Outbound> | undefined;
|
|
317
311
|
orders?: Array<LinkedEcommerceOrder$Outbound> | undefined;
|
|
318
|
-
custom_mappings?:
|
|
312
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
319
313
|
created_at?: string | null | undefined;
|
|
320
314
|
updated_at?: string | null | undefined;
|
|
321
315
|
};
|
|
@@ -337,7 +331,7 @@ export const EcommerceCustomer$outboundSchema: z.ZodType<
|
|
|
337
331
|
phoneNumbers: z.nullable(z.array(PhoneNumber$outboundSchema)).optional(),
|
|
338
332
|
addresses: z.array(z.lazy(() => Addresses$outboundSchema)).optional(),
|
|
339
333
|
orders: z.array(LinkedEcommerceOrder$outboundSchema).optional(),
|
|
340
|
-
customMappings: z.nullable(
|
|
334
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
341
335
|
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
342
336
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
343
337
|
}).transform((v) => {
|
|
@@ -13,12 +13,6 @@ import {
|
|
|
13
13
|
Currency$inboundSchema,
|
|
14
14
|
Currency$outboundSchema,
|
|
15
15
|
} from "./currency.js";
|
|
16
|
-
import {
|
|
17
|
-
CustomMappings,
|
|
18
|
-
CustomMappings$inboundSchema,
|
|
19
|
-
CustomMappings$Outbound,
|
|
20
|
-
CustomMappings$outboundSchema,
|
|
21
|
-
} from "./custommappings.js";
|
|
22
16
|
import {
|
|
23
17
|
EcommerceAddress,
|
|
24
18
|
EcommerceAddress$inboundSchema,
|
|
@@ -170,7 +164,7 @@ export type EcommerceOrder = {
|
|
|
170
164
|
/**
|
|
171
165
|
* When custom mappings are configured on the resource, the result is included here.
|
|
172
166
|
*/
|
|
173
|
-
customMappings?:
|
|
167
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
174
168
|
/**
|
|
175
169
|
* The date and time when the object was created.
|
|
176
170
|
*/
|
|
@@ -251,7 +245,7 @@ export const EcommerceOrder$inboundSchema: z.ZodType<
|
|
|
251
245
|
tracking: z.array(TrackingItem$inboundSchema).optional(),
|
|
252
246
|
line_items: z.array(EcommerceOrderLineItem$inboundSchema).optional(),
|
|
253
247
|
note: z.nullable(z.string()).optional(),
|
|
254
|
-
custom_mappings: z.nullable(
|
|
248
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
255
249
|
created_at: z.nullable(
|
|
256
250
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
257
251
|
).optional(),
|
|
@@ -303,7 +297,7 @@ export type EcommerceOrder$Outbound = {
|
|
|
303
297
|
tracking?: Array<TrackingItem$Outbound> | undefined;
|
|
304
298
|
line_items?: Array<EcommerceOrderLineItem$Outbound> | undefined;
|
|
305
299
|
note?: string | null | undefined;
|
|
306
|
-
custom_mappings?:
|
|
300
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
307
301
|
created_at?: string | null | undefined;
|
|
308
302
|
updated_at?: string | null | undefined;
|
|
309
303
|
};
|
|
@@ -336,7 +330,7 @@ export const EcommerceOrder$outboundSchema: z.ZodType<
|
|
|
336
330
|
tracking: z.array(TrackingItem$outboundSchema).optional(),
|
|
337
331
|
lineItems: z.array(EcommerceOrderLineItem$outboundSchema).optional(),
|
|
338
332
|
note: z.nullable(z.string()).optional(),
|
|
339
|
-
customMappings: z.nullable(
|
|
333
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
340
334
|
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
341
335
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
342
336
|
}).transform((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
|
|
|
18
12
|
/**
|
|
19
13
|
* The current status of the product (active or archived).
|
|
@@ -177,7 +171,7 @@ export type EcommerceProduct = {
|
|
|
177
171
|
/**
|
|
178
172
|
* When custom mappings are configured on the resource, the result is included here.
|
|
179
173
|
*/
|
|
180
|
-
customMappings?:
|
|
174
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
181
175
|
/**
|
|
182
176
|
* The date and time when the object was created.
|
|
183
177
|
*/
|
|
@@ -605,7 +599,7 @@ export const EcommerceProduct$inboundSchema: z.ZodType<
|
|
|
605
599
|
tags: z.array(z.nullable(z.string())).optional(),
|
|
606
600
|
categories: z.array(z.lazy(() => EcommerceProductCategories$inboundSchema))
|
|
607
601
|
.optional(),
|
|
608
|
-
custom_mappings: z.nullable(
|
|
602
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
609
603
|
created_at: z.nullable(
|
|
610
604
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
611
605
|
).optional(),
|
|
@@ -638,7 +632,7 @@ export type EcommerceProduct$Outbound = {
|
|
|
638
632
|
variants?: Array<Variants$Outbound> | undefined;
|
|
639
633
|
tags?: Array<string | null> | undefined;
|
|
640
634
|
categories?: Array<EcommerceProductCategories$Outbound> | undefined;
|
|
641
|
-
custom_mappings?:
|
|
635
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
642
636
|
created_at?: string | null | undefined;
|
|
643
637
|
updated_at?: string | null | undefined;
|
|
644
638
|
};
|
|
@@ -665,7 +659,7 @@ export const EcommerceProduct$outboundSchema: z.ZodType<
|
|
|
665
659
|
tags: z.array(z.nullable(z.string())).optional(),
|
|
666
660
|
categories: z.array(z.lazy(() => EcommerceProductCategories$outboundSchema))
|
|
667
661
|
.optional(),
|
|
668
|
-
customMappings: z.nullable(
|
|
662
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
669
663
|
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
670
664
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
671
665
|
}).transform((v) => {
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
CustomMappings,
|
|
12
|
-
CustomMappings$inboundSchema,
|
|
13
|
-
CustomMappings$Outbound,
|
|
14
|
-
CustomMappings$outboundSchema,
|
|
15
|
-
} from "./custommappings.js";
|
|
16
10
|
|
|
17
11
|
export type EcommerceStore = {
|
|
18
12
|
/**
|
|
@@ -34,7 +28,7 @@ export type EcommerceStore = {
|
|
|
34
28
|
/**
|
|
35
29
|
* When custom mappings are configured on the resource, the result is included here.
|
|
36
30
|
*/
|
|
37
|
-
customMappings?:
|
|
31
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
38
32
|
/**
|
|
39
33
|
* The date and time when the object was created.
|
|
40
34
|
*/
|
|
@@ -55,7 +49,7 @@ export const EcommerceStore$inboundSchema: z.ZodType<
|
|
|
55
49
|
name: z.nullable(z.string()).optional(),
|
|
56
50
|
store_url: z.nullable(z.string()).optional(),
|
|
57
51
|
admin_url: z.nullable(z.string()).optional(),
|
|
58
|
-
custom_mappings: z.nullable(
|
|
52
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
59
53
|
created_at: z.nullable(
|
|
60
54
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
61
55
|
).optional(),
|
|
@@ -78,7 +72,7 @@ export type EcommerceStore$Outbound = {
|
|
|
78
72
|
name?: string | null | undefined;
|
|
79
73
|
store_url?: string | null | undefined;
|
|
80
74
|
admin_url?: string | null | undefined;
|
|
81
|
-
custom_mappings?:
|
|
75
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
82
76
|
created_at?: string | null | undefined;
|
|
83
77
|
updated_at?: string | null | undefined;
|
|
84
78
|
};
|
|
@@ -93,7 +87,7 @@ export const EcommerceStore$outboundSchema: z.ZodType<
|
|
|
93
87
|
name: z.nullable(z.string()).optional(),
|
|
94
88
|
storeUrl: z.nullable(z.string()).optional(),
|
|
95
89
|
adminUrl: z.nullable(z.string()).optional(),
|
|
96
|
-
customMappings: z.nullable(
|
|
90
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
97
91
|
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
98
92
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
99
93
|
}).transform((v) => {
|
|
@@ -27,12 +27,6 @@ import {
|
|
|
27
27
|
CustomField$Outbound,
|
|
28
28
|
CustomField$outboundSchema,
|
|
29
29
|
} from "./customfield.js";
|
|
30
|
-
import {
|
|
31
|
-
CustomMappings,
|
|
32
|
-
CustomMappings$inboundSchema,
|
|
33
|
-
CustomMappings$Outbound,
|
|
34
|
-
CustomMappings$outboundSchema,
|
|
35
|
-
} from "./custommappings.js";
|
|
36
30
|
import {
|
|
37
31
|
Email,
|
|
38
32
|
Email$inboundSchema,
|
|
@@ -388,7 +382,7 @@ export type Employee = {
|
|
|
388
382
|
/**
|
|
389
383
|
* When custom mappings are configured on the resource, the result is included here.
|
|
390
384
|
*/
|
|
391
|
-
customMappings?:
|
|
385
|
+
customMappings?: { [k: string]: any } | null | undefined;
|
|
392
386
|
/**
|
|
393
387
|
* 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.
|
|
394
388
|
*/
|
|
@@ -945,7 +939,7 @@ export const Employee$inboundSchema: z.ZodType<
|
|
|
945
939
|
food_allergies: z.nullable(z.array(z.string())).optional(),
|
|
946
940
|
probation_period: z.lazy(() => ProbationPeriod$inboundSchema).optional(),
|
|
947
941
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
948
|
-
custom_mappings: z.nullable(
|
|
942
|
+
custom_mappings: z.nullable(z.record(z.any())).optional(),
|
|
949
943
|
row_version: z.nullable(z.string()).optional(),
|
|
950
944
|
deleted: z.nullable(z.boolean()).optional(),
|
|
951
945
|
updated_by: z.nullable(z.string()).optional(),
|
|
@@ -1066,7 +1060,7 @@ export type Employee$Outbound = {
|
|
|
1066
1060
|
food_allergies?: Array<string> | null | undefined;
|
|
1067
1061
|
probation_period?: ProbationPeriod$Outbound | undefined;
|
|
1068
1062
|
tags?: Array<string> | null | undefined;
|
|
1069
|
-
custom_mappings?:
|
|
1063
|
+
custom_mappings?: { [k: string]: any } | null | undefined;
|
|
1070
1064
|
row_version?: string | null | undefined;
|
|
1071
1065
|
deleted?: boolean | null | undefined;
|
|
1072
1066
|
updated_by?: string | null | undefined;
|
|
@@ -1144,7 +1138,7 @@ export const Employee$outboundSchema: z.ZodType<
|
|
|
1144
1138
|
foodAllergies: z.nullable(z.array(z.string())).optional(),
|
|
1145
1139
|
probationPeriod: z.lazy(() => ProbationPeriod$outboundSchema).optional(),
|
|
1146
1140
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
1147
|
-
customMappings: z.nullable(
|
|
1141
|
+
customMappings: z.nullable(z.record(z.any())).optional(),
|
|
1148
1142
|
rowVersion: z.nullable(z.string()).optional(),
|
|
1149
1143
|
deleted: z.nullable(z.boolean()).optional(),
|
|
1150
1144
|
updatedBy: z.nullable(z.string()).optional(),
|