@apideck/unify 0.18.0 → 0.20.0
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/customers/README.md +2 -0
- package/funcs/accountingAttachmentsList.js +1 -1
- package/funcs/accountingAttachmentsList.js.map +1 -1
- package/funcs/accountingBillPaymentsList.js +1 -1
- package/funcs/accountingBillPaymentsList.js.map +1 -1
- package/funcs/accountingBillsList.js +1 -1
- package/funcs/accountingBillsList.js.map +1 -1
- package/funcs/accountingCreditNotesList.js +1 -1
- package/funcs/accountingCreditNotesList.js.map +1 -1
- package/funcs/accountingCustomersList.js +1 -1
- package/funcs/accountingCustomersList.js.map +1 -1
- package/funcs/accountingDepartmentsList.js +1 -1
- package/funcs/accountingDepartmentsList.js.map +1 -1
- package/funcs/accountingExpensesList.js +1 -1
- package/funcs/accountingExpensesList.js.map +1 -1
- package/funcs/accountingInvoiceItemsList.js +1 -1
- package/funcs/accountingInvoiceItemsList.js.map +1 -1
- package/funcs/accountingInvoicesList.js +1 -1
- package/funcs/accountingInvoicesList.js.map +1 -1
- package/funcs/accountingJournalEntriesList.js +1 -1
- package/funcs/accountingJournalEntriesList.js.map +1 -1
- package/funcs/accountingLedgerAccountsList.js +1 -1
- package/funcs/accountingLedgerAccountsList.js.map +1 -1
- package/funcs/accountingLocationsList.js +1 -1
- package/funcs/accountingLocationsList.js.map +1 -1
- package/funcs/accountingPaymentsList.js +1 -1
- package/funcs/accountingPaymentsList.js.map +1 -1
- package/funcs/accountingPurchaseOrdersList.js +1 -1
- package/funcs/accountingPurchaseOrdersList.js.map +1 -1
- package/funcs/accountingSubsidiariesList.js +1 -1
- package/funcs/accountingSubsidiariesList.js.map +1 -1
- package/funcs/accountingSuppliersList.js +1 -1
- package/funcs/accountingSuppliersList.js.map +1 -1
- package/funcs/accountingTaxRatesList.js +1 -1
- package/funcs/accountingTaxRatesList.js.map +1 -1
- package/funcs/accountingTrackingCategoriesList.js +1 -1
- package/funcs/accountingTrackingCategoriesList.js.map +1 -1
- package/funcs/atsApplicantsList.js +1 -1
- package/funcs/atsApplicantsList.js.map +1 -1
- package/funcs/atsApplicationsList.js +1 -1
- package/funcs/atsApplicationsList.js.map +1 -1
- package/funcs/atsJobsList.js +1 -1
- package/funcs/atsJobsList.js.map +1 -1
- package/funcs/connectorApisList.js +1 -1
- package/funcs/connectorApisList.js.map +1 -1
- package/funcs/connectorConnectorsList.js +1 -1
- package/funcs/connectorConnectorsList.js.map +1 -1
- package/funcs/crmActivitiesList.js +1 -1
- package/funcs/crmActivitiesList.js.map +1 -1
- package/funcs/crmCompaniesList.js +1 -1
- package/funcs/crmCompaniesList.js.map +1 -1
- package/funcs/crmContactsList.js +1 -1
- package/funcs/crmContactsList.js.map +1 -1
- package/funcs/crmLeadsList.js +1 -1
- package/funcs/crmLeadsList.js.map +1 -1
- package/funcs/crmNotesList.js +1 -1
- package/funcs/crmNotesList.js.map +1 -1
- package/funcs/crmOpportunitiesList.js +1 -1
- package/funcs/crmOpportunitiesList.js.map +1 -1
- package/funcs/crmPipelinesList.js +1 -1
- package/funcs/crmPipelinesList.js.map +1 -1
- package/funcs/crmUsersList.js +1 -1
- package/funcs/crmUsersList.js.map +1 -1
- package/funcs/ecommerceCustomersList.js +1 -1
- package/funcs/ecommerceCustomersList.js.map +1 -1
- package/funcs/ecommerceOrdersList.js +1 -1
- package/funcs/ecommerceOrdersList.js.map +1 -1
- package/funcs/ecommerceProductsList.js +1 -1
- package/funcs/ecommerceProductsList.js.map +1 -1
- package/funcs/fileStorageDriveGroupsList.js +1 -1
- package/funcs/fileStorageDriveGroupsList.js.map +1 -1
- package/funcs/fileStorageDrivesList.js +1 -1
- package/funcs/fileStorageDrivesList.js.map +1 -1
- package/funcs/fileStorageFilesList.js +1 -1
- package/funcs/fileStorageFilesList.js.map +1 -1
- package/funcs/fileStorageSharedLinksList.js +1 -1
- package/funcs/fileStorageSharedLinksList.js.map +1 -1
- package/funcs/hrisCompaniesList.js +1 -1
- package/funcs/hrisCompaniesList.js.map +1 -1
- package/funcs/hrisDepartmentsList.js +1 -1
- package/funcs/hrisDepartmentsList.js.map +1 -1
- package/funcs/hrisEmployeesList.js +1 -1
- package/funcs/hrisEmployeesList.js.map +1 -1
- package/funcs/hrisTimeOffRequestsList.js +1 -1
- package/funcs/hrisTimeOffRequestsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.js +1 -1
- package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.js +1 -1
- package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
- package/funcs/issueTrackingCollectionsList.js +1 -1
- package/funcs/issueTrackingCollectionsList.js.map +1 -1
- package/funcs/smsMessagesList.js +1 -1
- package/funcs/smsMessagesList.js.map +1 -1
- package/funcs/vaultConsumersList.js +1 -1
- package/funcs/vaultConsumersList.js.map +1 -1
- package/funcs/vaultLogsList.js +1 -1
- package/funcs/vaultLogsList.js.map +1 -1
- package/funcs/webhookEventLogsList.js +1 -1
- package/funcs/webhookEventLogsList.js.map +1 -1
- package/funcs/webhookWebhooksList.js +1 -1
- package/funcs/webhookWebhooksList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +5 -5
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +4 -4
- package/lib/primitives.d.ts +3 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +7 -0
- package/lib/primitives.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/models/components/address.d.ts +8 -8
- package/models/components/address.d.ts.map +1 -1
- package/models/components/address.js +14 -13
- package/models/components/address.js.map +1 -1
- package/models/components/balancesheetfilter.d.ts +2 -0
- package/models/components/balancesheetfilter.d.ts.map +1 -1
- package/models/components/balancesheetfilter.js.map +1 -1
- package/models/components/bill.d.ts +10 -0
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +8 -0
- package/models/components/bill.js.map +1 -1
- package/models/components/billpayment.d.ts +2 -2
- package/models/components/contact.d.ts +9 -9
- package/models/components/contact.d.ts.map +1 -1
- package/models/components/contact.js +15 -16
- package/models/components/contact.js.map +1 -1
- package/models/components/customersfilter.d.ts +5 -0
- package/models/components/customersfilter.d.ts.map +1 -1
- package/models/components/customersfilter.js +4 -0
- package/models/components/customersfilter.js.map +1 -1
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/payment.d.ts +1 -1
- package/models/components/paymentinput.d.ts +1 -1
- package/models/components/profitandloss.d.ts +256 -56
- package/models/components/profitandloss.d.ts.map +1 -1
- package/models/components/profitandloss.js +158 -62
- package/models/components/profitandloss.js.map +1 -1
- package/models/components/profitandlossindicator.d.ts +32 -0
- package/models/components/profitandlossindicator.d.ts.map +1 -0
- package/models/components/profitandlossindicator.js +59 -0
- package/models/components/profitandlossindicator.js.map +1 -0
- package/models/components/profitandlosstype.d.ts +34 -0
- package/models/components/profitandlosstype.d.ts.map +1 -0
- package/models/components/profitandlosstype.js +53 -0
- package/models/components/profitandlosstype.js.map +1 -0
- package/package.json +1 -1
- package/src/funcs/accountingAttachmentsList.ts +1 -1
- package/src/funcs/accountingBillPaymentsList.ts +1 -1
- package/src/funcs/accountingBillsList.ts +1 -1
- package/src/funcs/accountingCreditNotesList.ts +1 -1
- package/src/funcs/accountingCustomersList.ts +1 -1
- package/src/funcs/accountingDepartmentsList.ts +1 -1
- package/src/funcs/accountingExpensesList.ts +1 -1
- package/src/funcs/accountingInvoiceItemsList.ts +1 -1
- package/src/funcs/accountingInvoicesList.ts +1 -1
- package/src/funcs/accountingJournalEntriesList.ts +1 -1
- package/src/funcs/accountingLedgerAccountsList.ts +1 -1
- package/src/funcs/accountingLocationsList.ts +1 -1
- package/src/funcs/accountingPaymentsList.ts +1 -1
- package/src/funcs/accountingPurchaseOrdersList.ts +1 -1
- package/src/funcs/accountingSubsidiariesList.ts +1 -1
- package/src/funcs/accountingSuppliersList.ts +1 -1
- package/src/funcs/accountingTaxRatesList.ts +1 -1
- package/src/funcs/accountingTrackingCategoriesList.ts +1 -1
- package/src/funcs/atsApplicantsList.ts +1 -1
- package/src/funcs/atsApplicationsList.ts +1 -1
- package/src/funcs/atsJobsList.ts +1 -1
- package/src/funcs/connectorApisList.ts +1 -1
- package/src/funcs/connectorConnectorsList.ts +1 -1
- package/src/funcs/crmActivitiesList.ts +1 -1
- package/src/funcs/crmCompaniesList.ts +1 -1
- package/src/funcs/crmContactsList.ts +1 -1
- package/src/funcs/crmLeadsList.ts +1 -1
- package/src/funcs/crmNotesList.ts +1 -1
- package/src/funcs/crmOpportunitiesList.ts +1 -1
- package/src/funcs/crmPipelinesList.ts +1 -1
- package/src/funcs/crmUsersList.ts +1 -1
- package/src/funcs/ecommerceCustomersList.ts +1 -1
- package/src/funcs/ecommerceOrdersList.ts +1 -1
- package/src/funcs/ecommerceProductsList.ts +1 -1
- package/src/funcs/fileStorageDriveGroupsList.ts +1 -1
- package/src/funcs/fileStorageDrivesList.ts +1 -1
- package/src/funcs/fileStorageFilesList.ts +1 -1
- package/src/funcs/fileStorageSharedLinksList.ts +1 -1
- package/src/funcs/hrisCompaniesList.ts +1 -1
- package/src/funcs/hrisDepartmentsList.ts +1 -1
- package/src/funcs/hrisEmployeesList.ts +1 -1
- package/src/funcs/hrisTimeOffRequestsList.ts +1 -1
- package/src/funcs/issueTrackingCollectionTagsList.ts +1 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +1 -1
- package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +1 -1
- package/src/funcs/issueTrackingCollectionTicketsList.ts +1 -1
- package/src/funcs/issueTrackingCollectionUsersList.ts +1 -1
- package/src/funcs/issueTrackingCollectionsList.ts +1 -1
- package/src/funcs/smsMessagesList.ts +1 -1
- package/src/funcs/vaultConsumersList.ts +1 -1
- package/src/funcs/vaultLogsList.ts +1 -1
- package/src/funcs/webhookEventLogsList.ts +1 -1
- package/src/funcs/webhookWebhooksList.ts +1 -1
- package/src/lib/config.ts +5 -5
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +2 -7
- package/src/models/components/address.ts +14 -15
- package/src/models/components/balancesheetfilter.ts +2 -0
- package/src/models/components/bill.ts +18 -0
- package/src/models/components/billpayment.ts +2 -2
- package/src/models/components/contact.ts +18 -17
- package/src/models/components/customersfilter.ts +9 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/payment.ts +1 -1
- package/src/models/components/paymentinput.ts +1 -1
- package/src/models/components/profitandloss.ts +407 -101
- package/src/models/components/profitandlossindicator.ts +69 -0
- package/src/models/components/profitandlosstype.ts +39 -0
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of address.
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const AddressType = {
|
|
16
16
|
Primary: "primary",
|
|
17
17
|
Secondary: "secondary",
|
|
18
18
|
Home: "home",
|
|
@@ -24,7 +24,7 @@ export const Type = {
|
|
|
24
24
|
/**
|
|
25
25
|
* The type of address.
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type AddressType = ClosedEnum<typeof AddressType>;
|
|
28
28
|
|
|
29
29
|
export type Address = {
|
|
30
30
|
/**
|
|
@@ -34,7 +34,7 @@ export type Address = {
|
|
|
34
34
|
/**
|
|
35
35
|
* The type of address.
|
|
36
36
|
*/
|
|
37
|
-
type?:
|
|
37
|
+
type?: AddressType | null | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* The address string. Some APIs don't provide structured address data.
|
|
40
40
|
*/
|
|
@@ -126,30 +126,29 @@ export type Address = {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
/** @internal */
|
|
129
|
-
export const
|
|
130
|
-
|
|
131
|
-
);
|
|
129
|
+
export const AddressType$inboundSchema: z.ZodNativeEnum<typeof AddressType> = z
|
|
130
|
+
.nativeEnum(AddressType);
|
|
132
131
|
|
|
133
132
|
/** @internal */
|
|
134
|
-
export const
|
|
135
|
-
|
|
133
|
+
export const AddressType$outboundSchema: z.ZodNativeEnum<typeof AddressType> =
|
|
134
|
+
AddressType$inboundSchema;
|
|
136
135
|
|
|
137
136
|
/**
|
|
138
137
|
* @internal
|
|
139
138
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
139
|
*/
|
|
141
|
-
export namespace
|
|
142
|
-
/** @deprecated use `
|
|
143
|
-
export const inboundSchema =
|
|
144
|
-
/** @deprecated use `
|
|
145
|
-
export const outboundSchema =
|
|
140
|
+
export namespace AddressType$ {
|
|
141
|
+
/** @deprecated use `AddressType$inboundSchema` instead. */
|
|
142
|
+
export const inboundSchema = AddressType$inboundSchema;
|
|
143
|
+
/** @deprecated use `AddressType$outboundSchema` instead. */
|
|
144
|
+
export const outboundSchema = AddressType$outboundSchema;
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
/** @internal */
|
|
149
148
|
export const Address$inboundSchema: z.ZodType<Address, z.ZodTypeDef, unknown> =
|
|
150
149
|
z.object({
|
|
151
150
|
id: z.nullable(z.string()).optional(),
|
|
152
|
-
type: z.nullable(
|
|
151
|
+
type: z.nullable(AddressType$inboundSchema).optional(),
|
|
153
152
|
string: z.nullable(z.string()).optional(),
|
|
154
153
|
name: z.nullable(z.string()).optional(),
|
|
155
154
|
line1: z.nullable(z.string()).optional(),
|
|
@@ -217,7 +216,7 @@ export const Address$outboundSchema: z.ZodType<
|
|
|
217
216
|
Address
|
|
218
217
|
> = z.object({
|
|
219
218
|
id: z.nullable(z.string()).optional(),
|
|
220
|
-
type: z.nullable(
|
|
219
|
+
type: z.nullable(AddressType$outboundSchema).optional(),
|
|
221
220
|
string: z.nullable(z.string()).optional(),
|
|
222
221
|
name: z.nullable(z.string()).optional(),
|
|
223
222
|
line1: z.nullable(z.string()).optional(),
|
|
@@ -25,6 +25,8 @@ export type PeriodType = ClosedEnum<typeof PeriodType>;
|
|
|
25
25
|
export type BalanceSheetFilter = {
|
|
26
26
|
/**
|
|
27
27
|
* The start date of the period to include in the resource.
|
|
28
|
+
*
|
|
29
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
28
30
|
*/
|
|
29
31
|
startDate?: string | undefined;
|
|
30
32
|
/**
|
|
@@ -206,6 +206,10 @@ export type Bill = {
|
|
|
206
206
|
* Discount percentage applied to this transaction.
|
|
207
207
|
*/
|
|
208
208
|
discountPercentage?: number | null | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero.
|
|
211
|
+
*/
|
|
212
|
+
sourceDocumentUrl?: string | null | undefined;
|
|
209
213
|
/**
|
|
210
214
|
* A list of linked tracking categories.
|
|
211
215
|
*/
|
|
@@ -346,6 +350,10 @@ export type BillInput = {
|
|
|
346
350
|
* Discount percentage applied to this transaction.
|
|
347
351
|
*/
|
|
348
352
|
discountPercentage?: number | null | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero.
|
|
355
|
+
*/
|
|
356
|
+
sourceDocumentUrl?: string | null | undefined;
|
|
349
357
|
/**
|
|
350
358
|
* A list of linked tracking categories.
|
|
351
359
|
*/
|
|
@@ -417,6 +425,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
|
|
|
417
425
|
accounting_by_row: z.nullable(z.boolean()).optional(),
|
|
418
426
|
bank_account: BankAccount$inboundSchema.optional(),
|
|
419
427
|
discount_percentage: z.nullable(z.number()).optional(),
|
|
428
|
+
source_document_url: z.nullable(z.string()).optional(),
|
|
420
429
|
tracking_categories: z.nullable(
|
|
421
430
|
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
422
431
|
).optional(),
|
|
@@ -453,6 +462,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
|
|
|
453
462
|
"accounting_by_row": "accountingByRow",
|
|
454
463
|
"bank_account": "bankAccount",
|
|
455
464
|
"discount_percentage": "discountPercentage",
|
|
465
|
+
"source_document_url": "sourceDocumentUrl",
|
|
456
466
|
"tracking_categories": "trackingCategories",
|
|
457
467
|
"updated_by": "updatedBy",
|
|
458
468
|
"created_by": "createdBy",
|
|
@@ -498,6 +508,7 @@ export type Bill$Outbound = {
|
|
|
498
508
|
accounting_by_row?: boolean | null | undefined;
|
|
499
509
|
bank_account?: BankAccount$Outbound | undefined;
|
|
500
510
|
discount_percentage?: number | null | undefined;
|
|
511
|
+
source_document_url?: string | null | undefined;
|
|
501
512
|
tracking_categories?:
|
|
502
513
|
| Array<LinkedTrackingCategory$Outbound | null>
|
|
503
514
|
| null
|
|
@@ -549,6 +560,7 @@ export const Bill$outboundSchema: z.ZodType<Bill$Outbound, z.ZodTypeDef, Bill> =
|
|
|
549
560
|
accountingByRow: z.nullable(z.boolean()).optional(),
|
|
550
561
|
bankAccount: BankAccount$outboundSchema.optional(),
|
|
551
562
|
discountPercentage: z.nullable(z.number()).optional(),
|
|
563
|
+
sourceDocumentUrl: z.nullable(z.string()).optional(),
|
|
552
564
|
trackingCategories: z.nullable(
|
|
553
565
|
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
554
566
|
).optional(),
|
|
@@ -581,6 +593,7 @@ export const Bill$outboundSchema: z.ZodType<Bill$Outbound, z.ZodTypeDef, Bill> =
|
|
|
581
593
|
accountingByRow: "accounting_by_row",
|
|
582
594
|
bankAccount: "bank_account",
|
|
583
595
|
discountPercentage: "discount_percentage",
|
|
596
|
+
sourceDocumentUrl: "source_document_url",
|
|
584
597
|
trackingCategories: "tracking_categories",
|
|
585
598
|
updatedBy: "updated_by",
|
|
586
599
|
createdBy: "created_by",
|
|
@@ -655,6 +668,7 @@ export const BillInput$inboundSchema: z.ZodType<
|
|
|
655
668
|
accounting_by_row: z.nullable(z.boolean()).optional(),
|
|
656
669
|
bank_account: BankAccount$inboundSchema.optional(),
|
|
657
670
|
discount_percentage: z.nullable(z.number()).optional(),
|
|
671
|
+
source_document_url: z.nullable(z.string()).optional(),
|
|
658
672
|
tracking_categories: z.nullable(
|
|
659
673
|
z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
|
|
660
674
|
).optional(),
|
|
@@ -681,6 +695,7 @@ export const BillInput$inboundSchema: z.ZodType<
|
|
|
681
695
|
"accounting_by_row": "accountingByRow",
|
|
682
696
|
"bank_account": "bankAccount",
|
|
683
697
|
"discount_percentage": "discountPercentage",
|
|
698
|
+
"source_document_url": "sourceDocumentUrl",
|
|
684
699
|
"tracking_categories": "trackingCategories",
|
|
685
700
|
"row_version": "rowVersion",
|
|
686
701
|
"custom_fields": "customFields",
|
|
@@ -719,6 +734,7 @@ export type BillInput$Outbound = {
|
|
|
719
734
|
accounting_by_row?: boolean | null | undefined;
|
|
720
735
|
bank_account?: BankAccount$Outbound | undefined;
|
|
721
736
|
discount_percentage?: number | null | undefined;
|
|
737
|
+
source_document_url?: string | null | undefined;
|
|
722
738
|
tracking_categories?:
|
|
723
739
|
| Array<LinkedTrackingCategory$Outbound | null>
|
|
724
740
|
| null
|
|
@@ -766,6 +782,7 @@ export const BillInput$outboundSchema: z.ZodType<
|
|
|
766
782
|
accountingByRow: z.nullable(z.boolean()).optional(),
|
|
767
783
|
bankAccount: BankAccount$outboundSchema.optional(),
|
|
768
784
|
discountPercentage: z.nullable(z.number()).optional(),
|
|
785
|
+
sourceDocumentUrl: z.nullable(z.string()).optional(),
|
|
769
786
|
trackingCategories: z.nullable(
|
|
770
787
|
z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
|
|
771
788
|
).optional(),
|
|
@@ -792,6 +809,7 @@ export const BillInput$outboundSchema: z.ZodType<
|
|
|
792
809
|
accountingByRow: "accounting_by_row",
|
|
793
810
|
bankAccount: "bank_account",
|
|
794
811
|
discountPercentage: "discount_percentage",
|
|
812
|
+
sourceDocumentUrl: "source_document_url",
|
|
795
813
|
trackingCategories: "tracking_categories",
|
|
796
814
|
rowVersion: "row_version",
|
|
797
815
|
customFields: "custom_fields",
|
|
@@ -138,7 +138,7 @@ export type BillPayment = {
|
|
|
138
138
|
*/
|
|
139
139
|
currencyRate?: number | null | undefined;
|
|
140
140
|
/**
|
|
141
|
-
* The total amount of the transaction
|
|
141
|
+
* The total amount of the transaction or record
|
|
142
142
|
*/
|
|
143
143
|
totalAmount: number | null;
|
|
144
144
|
/**
|
|
@@ -259,7 +259,7 @@ export type BillPaymentInput = {
|
|
|
259
259
|
*/
|
|
260
260
|
currencyRate?: number | null | undefined;
|
|
261
261
|
/**
|
|
262
|
-
* The total amount of the transaction
|
|
262
|
+
* The total amount of the transaction or record
|
|
263
263
|
*/
|
|
264
264
|
totalAmount: number | null;
|
|
265
265
|
/**
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
/**
|
|
61
61
|
* The type of the contact.
|
|
62
62
|
*/
|
|
63
|
-
export const
|
|
63
|
+
export const Type = {
|
|
64
64
|
Customer: "customer",
|
|
65
65
|
Supplier: "supplier",
|
|
66
66
|
Employee: "employee",
|
|
@@ -69,7 +69,7 @@ export const ContactType = {
|
|
|
69
69
|
/**
|
|
70
70
|
* The type of the contact.
|
|
71
71
|
*/
|
|
72
|
-
export type
|
|
72
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* The gender of the contact.
|
|
@@ -100,7 +100,7 @@ export type Contact = {
|
|
|
100
100
|
/**
|
|
101
101
|
* The type of the contact.
|
|
102
102
|
*/
|
|
103
|
-
type?:
|
|
103
|
+
type?: Type | null | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* The company the contact is associated with.
|
|
106
106
|
*/
|
|
@@ -239,7 +239,7 @@ export type ContactInput = {
|
|
|
239
239
|
/**
|
|
240
240
|
* The type of the contact.
|
|
241
241
|
*/
|
|
242
|
-
type?:
|
|
242
|
+
type?: Type | null | undefined;
|
|
243
243
|
/**
|
|
244
244
|
* The company the contact is associated with.
|
|
245
245
|
*/
|
|
@@ -343,22 +343,23 @@ export type ContactInput = {
|
|
|
343
343
|
};
|
|
344
344
|
|
|
345
345
|
/** @internal */
|
|
346
|
-
export const
|
|
347
|
-
|
|
346
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
347
|
+
Type,
|
|
348
|
+
);
|
|
348
349
|
|
|
349
350
|
/** @internal */
|
|
350
|
-
export const
|
|
351
|
-
|
|
351
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
352
|
+
Type$inboundSchema;
|
|
352
353
|
|
|
353
354
|
/**
|
|
354
355
|
* @internal
|
|
355
356
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
356
357
|
*/
|
|
357
|
-
export namespace
|
|
358
|
-
/** @deprecated use `
|
|
359
|
-
export const inboundSchema =
|
|
360
|
-
/** @deprecated use `
|
|
361
|
-
export const outboundSchema =
|
|
358
|
+
export namespace Type$ {
|
|
359
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
360
|
+
export const inboundSchema = Type$inboundSchema;
|
|
361
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
362
|
+
export const outboundSchema = Type$outboundSchema;
|
|
362
363
|
}
|
|
363
364
|
|
|
364
365
|
/** @internal */
|
|
@@ -388,7 +389,7 @@ export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
|
|
|
388
389
|
id: z.string().optional(),
|
|
389
390
|
name: z.nullable(z.string()),
|
|
390
391
|
owner_id: z.nullable(z.string()).optional(),
|
|
391
|
-
type: z.nullable(
|
|
392
|
+
type: z.nullable(Type$inboundSchema).optional(),
|
|
392
393
|
company_id: z.nullable(z.string()).optional(),
|
|
393
394
|
company_name: z.nullable(z.string()).optional(),
|
|
394
395
|
lead_id: z.nullable(z.string()).optional(),
|
|
@@ -517,7 +518,7 @@ export const Contact$outboundSchema: z.ZodType<
|
|
|
517
518
|
id: z.string().optional(),
|
|
518
519
|
name: z.nullable(z.string()),
|
|
519
520
|
ownerId: z.nullable(z.string()).optional(),
|
|
520
|
-
type: z.nullable(
|
|
521
|
+
type: z.nullable(Type$outboundSchema).optional(),
|
|
521
522
|
companyId: z.nullable(z.string()).optional(),
|
|
522
523
|
companyName: z.nullable(z.string()).optional(),
|
|
523
524
|
leadId: z.nullable(z.string()).optional(),
|
|
@@ -618,7 +619,7 @@ export const ContactInput$inboundSchema: z.ZodType<
|
|
|
618
619
|
> = z.object({
|
|
619
620
|
name: z.nullable(z.string()),
|
|
620
621
|
owner_id: z.nullable(z.string()).optional(),
|
|
621
|
-
type: z.nullable(
|
|
622
|
+
type: z.nullable(Type$inboundSchema).optional(),
|
|
622
623
|
company_id: z.nullable(z.string()).optional(),
|
|
623
624
|
company_name: z.nullable(z.string()).optional(),
|
|
624
625
|
lead_id: z.nullable(z.string()).optional(),
|
|
@@ -717,7 +718,7 @@ export const ContactInput$outboundSchema: z.ZodType<
|
|
|
717
718
|
> = z.object({
|
|
718
719
|
name: z.nullable(z.string()),
|
|
719
720
|
ownerId: z.nullable(z.string()).optional(),
|
|
720
|
-
type: z.nullable(
|
|
721
|
+
type: z.nullable(Type$outboundSchema).optional(),
|
|
721
722
|
companyId: z.nullable(z.string()).optional(),
|
|
722
723
|
companyName: z.nullable(z.string()).optional(),
|
|
723
724
|
leadId: z.nullable(z.string()).optional(),
|
|
@@ -49,6 +49,10 @@ export type CustomersFilter = {
|
|
|
49
49
|
*/
|
|
50
50
|
status?: CustomersFilterStatus | null | undefined;
|
|
51
51
|
updatedSince?: Date | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Supplier ID of customer to search for
|
|
54
|
+
*/
|
|
55
|
+
supplierId?: string | undefined;
|
|
52
56
|
};
|
|
53
57
|
|
|
54
58
|
/** @internal */
|
|
@@ -87,6 +91,7 @@ export const CustomersFilter$inboundSchema: z.ZodType<
|
|
|
87
91
|
updated_since: z.string().datetime({ offset: true }).transform(v =>
|
|
88
92
|
new Date(v)
|
|
89
93
|
).optional(),
|
|
94
|
+
supplier_id: z.string().optional(),
|
|
90
95
|
}).transform((v) => {
|
|
91
96
|
return remap$(v, {
|
|
92
97
|
"company_name": "companyName",
|
|
@@ -94,6 +99,7 @@ export const CustomersFilter$inboundSchema: z.ZodType<
|
|
|
94
99
|
"first_name": "firstName",
|
|
95
100
|
"last_name": "lastName",
|
|
96
101
|
"updated_since": "updatedSince",
|
|
102
|
+
"supplier_id": "supplierId",
|
|
97
103
|
});
|
|
98
104
|
});
|
|
99
105
|
|
|
@@ -106,6 +112,7 @@ export type CustomersFilter$Outbound = {
|
|
|
106
112
|
email?: string | undefined;
|
|
107
113
|
status?: string | null | undefined;
|
|
108
114
|
updated_since?: string | undefined;
|
|
115
|
+
supplier_id?: string | undefined;
|
|
109
116
|
};
|
|
110
117
|
|
|
111
118
|
/** @internal */
|
|
@@ -121,6 +128,7 @@ export const CustomersFilter$outboundSchema: z.ZodType<
|
|
|
121
128
|
email: z.string().optional(),
|
|
122
129
|
status: z.nullable(CustomersFilterStatus$outboundSchema).optional(),
|
|
123
130
|
updatedSince: z.date().transform(v => v.toISOString()).optional(),
|
|
131
|
+
supplierId: z.string().optional(),
|
|
124
132
|
}).transform((v) => {
|
|
125
133
|
return remap$(v, {
|
|
126
134
|
companyName: "company_name",
|
|
@@ -128,6 +136,7 @@ export const CustomersFilter$outboundSchema: z.ZodType<
|
|
|
128
136
|
firstName: "first_name",
|
|
129
137
|
lastName: "last_name",
|
|
130
138
|
updatedSince: "updated_since",
|
|
139
|
+
supplierId: "supplier_id",
|
|
131
140
|
});
|
|
132
141
|
});
|
|
133
142
|
|
|
@@ -411,6 +411,8 @@ export * from "./phonenumber.js";
|
|
|
411
411
|
export * from "./pipeline.js";
|
|
412
412
|
export * from "./profitandloss.js";
|
|
413
413
|
export * from "./profitandlossfilter.js";
|
|
414
|
+
export * from "./profitandlossindicator.js";
|
|
415
|
+
export * from "./profitandlosstype.js";
|
|
414
416
|
export * from "./purchaseorder.js";
|
|
415
417
|
export * from "./purchaseordersfilter.js";
|
|
416
418
|
export * from "./purchaseorderssort.js";
|