@apideck/unify 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +0 -2
- package/README.md +0 -15
- package/docs/sdks/activities/README.md +0 -14
- package/docs/sdks/ageddebtors/README.md +0 -2
- package/docs/sdks/apideckcompanies/README.md +0 -12
- package/docs/sdks/apideckcustomers/README.md +0 -6
- package/docs/sdks/apideckdepartments/README.md +0 -12
- package/docs/sdks/apis/README.md +0 -2
- package/docs/sdks/applicants/README.md +0 -12
- package/docs/sdks/applications/README.md +0 -12
- package/docs/sdks/attachments/README.md +0 -8
- package/docs/sdks/balancesheet/README.md +0 -2
- package/docs/sdks/billpayments/README.md +0 -14
- package/docs/sdks/bills/README.md +0 -14
- package/docs/sdks/collections/README.md +0 -8
- package/docs/sdks/collectiontags/README.md +0 -4
- package/docs/sdks/collectionticketcomments/README.md +0 -16
- package/docs/sdks/collectiontickets/README.md +0 -14
- package/docs/sdks/collectionusers/README.md +0 -6
- package/docs/sdks/companies/README.md +0 -14
- package/docs/sdks/companyinfo/README.md +0 -2
- package/docs/sdks/connectors/README.md +0 -2
- package/docs/sdks/consumers/README.md +2 -6
- package/docs/sdks/contacts/README.md +0 -14
- package/docs/sdks/creditnotes/README.md +0 -14
- package/docs/sdks/customers/README.md +0 -14
- package/docs/sdks/departments/README.md +0 -12
- package/docs/sdks/drivegroups/README.md +0 -12
- package/docs/sdks/drives/README.md +0 -12
- package/docs/sdks/employeepayrolls/README.md +0 -4
- package/docs/sdks/employees/README.md +0 -14
- package/docs/sdks/employeeschedules/README.md +0 -2
- package/docs/sdks/eventlogs/README.md +0 -2
- package/docs/sdks/expenses/README.md +0 -12
- package/docs/sdks/files/README.md +0 -14
- package/docs/sdks/folders/README.md +0 -10
- package/docs/sdks/invoiceitems/README.md +6 -12
- package/docs/sdks/invoices/README.md +0 -14
- package/docs/sdks/jobs/README.md +0 -6
- package/docs/sdks/journalentries/README.md +0 -14
- package/docs/sdks/leads/README.md +0 -14
- package/docs/sdks/ledgeraccounts/README.md +0 -14
- package/docs/sdks/locations/README.md +0 -12
- package/docs/sdks/logs/README.md +0 -2
- package/docs/sdks/messages/README.md +0 -12
- package/docs/sdks/notes/README.md +0 -12
- package/docs/sdks/opportunities/README.md +0 -14
- package/docs/sdks/orders/README.md +0 -8
- package/docs/sdks/payments/README.md +0 -14
- package/docs/sdks/payrolls/README.md +0 -4
- package/docs/sdks/pipelines/README.md +0 -4
- package/docs/sdks/products/README.md +0 -6
- package/docs/sdks/profitandloss/README.md +0 -2
- package/docs/sdks/purchaseorders/README.md +0 -14
- package/docs/sdks/sessions/README.md +0 -18
- package/docs/sdks/sharedlinks/README.md +0 -12
- package/docs/sdks/stores/README.md +0 -2
- package/docs/sdks/subsidiaries/README.md +0 -12
- package/docs/sdks/suppliers/README.md +0 -14
- package/docs/sdks/taxrates/README.md +0 -12
- package/docs/sdks/timeoffrequests/README.md +0 -12
- package/docs/sdks/trackingcategories/README.md +0 -12
- package/docs/sdks/uploadsessions/README.md +0 -8
- package/docs/sdks/users/README.md +0 -12
- package/docs/sdks/webhooks/README.md +2 -6
- package/funcs/accountingInvoiceItemsList.d.ts.map +1 -1
- package/funcs/accountingInvoiceItemsList.js +1 -0
- package/funcs/accountingInvoiceItemsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoiceitemssort.d.ts +70 -0
- package/models/components/invoiceitemssort.d.ts.map +1 -0
- package/models/components/invoiceitemssort.js +84 -0
- package/models/components/invoiceitemssort.js.map +1 -0
- package/models/components/opportunity.d.ts +2 -2
- package/models/components/opportunity.d.ts.map +1 -1
- package/models/components/opportunity.js +2 -2
- package/models/components/opportunity.js.map +1 -1
- package/models/components/opportunityinput.d.ts +2 -2
- package/models/components/opportunityinput.d.ts.map +1 -1
- package/models/components/opportunityinput.js +2 -2
- package/models/components/opportunityinput.js.map +1 -1
- package/models/components/paymentstatus.d.ts +6 -0
- package/models/components/paymentstatus.d.ts.map +1 -1
- package/models/components/paymentstatus.js +2 -0
- package/models/components/paymentstatus.js.map +1 -1
- package/models/components/webhookeventtype.d.ts +27 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +9 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/operations/accountinginvoiceitemsall.d.ts +5 -0
- package/models/operations/accountinginvoiceitemsall.d.ts.map +1 -1
- package/models/operations/accountinginvoiceitemsall.js +2 -0
- package/models/operations/accountinginvoiceitemsall.js.map +1 -1
- package/package.json +6 -7
- package/src/funcs/accountingInvoiceItemsList.ts +1 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/retries.ts +0 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoiceitemssort.ts +115 -0
- package/src/models/components/opportunity.ts +4 -4
- package/src/models/components/opportunityinput.ts +4 -4
- package/src/models/components/paymentstatus.ts +2 -0
- package/src/models/components/webhookeventtype.ts +9 -0
- package/src/models/operations/accountinginvoiceitemsall.ts +7 -0
|
@@ -34,7 +34,7 @@ export type OpportunityInput = {
|
|
|
34
34
|
/**
|
|
35
35
|
* The unique identifier of the primary contact associated with the opportunity.
|
|
36
36
|
*/
|
|
37
|
-
primaryContactId
|
|
37
|
+
primaryContactId?: string | null | undefined;
|
|
38
38
|
/**
|
|
39
39
|
* A description of the opportunity.
|
|
40
40
|
*/
|
|
@@ -146,7 +146,7 @@ export const OpportunityInput$inboundSchema: z.ZodType<
|
|
|
146
146
|
unknown
|
|
147
147
|
> = z.object({
|
|
148
148
|
title: z.string(),
|
|
149
|
-
primary_contact_id: z.nullable(z.string()),
|
|
149
|
+
primary_contact_id: z.nullable(z.string()).optional(),
|
|
150
150
|
description: z.nullable(z.string()).optional(),
|
|
151
151
|
type: z.nullable(z.string()).optional(),
|
|
152
152
|
monetary_amount: z.nullable(z.number()).optional(),
|
|
@@ -206,7 +206,7 @@ export const OpportunityInput$inboundSchema: z.ZodType<
|
|
|
206
206
|
/** @internal */
|
|
207
207
|
export type OpportunityInput$Outbound = {
|
|
208
208
|
title: string;
|
|
209
|
-
primary_contact_id
|
|
209
|
+
primary_contact_id?: string | null | undefined;
|
|
210
210
|
description?: string | null | undefined;
|
|
211
211
|
type?: string | null | undefined;
|
|
212
212
|
monetary_amount?: number | null | undefined;
|
|
@@ -243,7 +243,7 @@ export const OpportunityInput$outboundSchema: z.ZodType<
|
|
|
243
243
|
OpportunityInput
|
|
244
244
|
> = z.object({
|
|
245
245
|
title: z.string(),
|
|
246
|
-
primaryContactId: z.nullable(z.string()),
|
|
246
|
+
primaryContactId: z.nullable(z.string()).optional(),
|
|
247
247
|
description: z.nullable(z.string()).optional(),
|
|
248
248
|
type: z.nullable(z.string()).optional(),
|
|
249
249
|
monetaryAmount: z.nullable(z.number()).optional(),
|
|
@@ -111,6 +111,15 @@ export const WebhookEventType = {
|
|
|
111
111
|
AccountingExpenseCreated: "accounting.expense.created",
|
|
112
112
|
AccountingExpenseUpdated: "accounting.expense.updated",
|
|
113
113
|
AccountingExpenseDeleted: "accounting.expense.deleted",
|
|
114
|
+
EcommerceOrderCreated: "ecommerce.order.created",
|
|
115
|
+
EcommerceOrderUpdated: "ecommerce.order.updated",
|
|
116
|
+
EcommerceOrderDeleted: "ecommerce.order.deleted",
|
|
117
|
+
EcommerceProductCreated: "ecommerce.product.created",
|
|
118
|
+
EcommerceProductUpdated: "ecommerce.product.updated",
|
|
119
|
+
EcommerceProductDeleted: "ecommerce.product.deleted",
|
|
120
|
+
EcommerceCustomerCreated: "ecommerce.customer.created",
|
|
121
|
+
EcommerceCustomerUpdated: "ecommerce.customer.updated",
|
|
122
|
+
EcommerceCustomerDeleted: "ecommerce.customer.deleted",
|
|
114
123
|
} as const;
|
|
115
124
|
export type WebhookEventType = ClosedEnum<typeof WebhookEventType>;
|
|
116
125
|
|
|
@@ -49,6 +49,10 @@ export type AccountingInvoiceItemsAllRequest = {
|
|
|
49
49
|
* Apply filters
|
|
50
50
|
*/
|
|
51
51
|
filter?: components.InvoiceItemsFilter | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Apply sorting
|
|
54
|
+
*/
|
|
55
|
+
sort?: components.InvoiceItemsSort | undefined;
|
|
52
56
|
/**
|
|
53
57
|
* Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
|
|
54
58
|
*/
|
|
@@ -143,6 +147,7 @@ export const AccountingInvoiceItemsAllRequest$inboundSchema: z.ZodType<
|
|
|
143
147
|
cursor: z.nullable(z.string()).optional(),
|
|
144
148
|
limit: z.number().int().default(20),
|
|
145
149
|
filter: components.InvoiceItemsFilter$inboundSchema.optional(),
|
|
150
|
+
sort: components.InvoiceItemsSort$inboundSchema.optional(),
|
|
146
151
|
pass_through: z.record(z.any()).optional(),
|
|
147
152
|
fields: z.nullable(z.string()).optional(),
|
|
148
153
|
}).transform((v) => {
|
|
@@ -160,6 +165,7 @@ export type AccountingInvoiceItemsAllRequest$Outbound = {
|
|
|
160
165
|
cursor?: string | null | undefined;
|
|
161
166
|
limit: number;
|
|
162
167
|
filter?: components.InvoiceItemsFilter$Outbound | undefined;
|
|
168
|
+
sort?: components.InvoiceItemsSort$Outbound | undefined;
|
|
163
169
|
pass_through?: { [k: string]: any } | undefined;
|
|
164
170
|
fields?: string | null | undefined;
|
|
165
171
|
};
|
|
@@ -177,6 +183,7 @@ export const AccountingInvoiceItemsAllRequest$outboundSchema: z.ZodType<
|
|
|
177
183
|
cursor: z.nullable(z.string()).optional(),
|
|
178
184
|
limit: z.number().int().default(20),
|
|
179
185
|
filter: components.InvoiceItemsFilter$outboundSchema.optional(),
|
|
186
|
+
sort: components.InvoiceItemsSort$outboundSchema.optional(),
|
|
180
187
|
passThrough: z.record(z.any()).optional(),
|
|
181
188
|
fields: z.nullable(z.string()).optional(),
|
|
182
189
|
}).transform((v) => {
|