@apideck/unify 0.29.2 → 0.29.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/quotes/README.md +4 -0
- package/examples/accountingTaxRatesList.example.ts +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/applicant.d.ts +74 -0
- package/models/components/applicant.d.ts.map +1 -1
- package/models/components/applicant.js +46 -1
- package/models/components/applicant.js.map +1 -1
- package/models/components/bill.d.ts +114 -2
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +87 -1
- package/models/components/bill.js.map +1 -1
- package/models/components/billlineitem.d.ts +91 -0
- package/models/components/billlineitem.d.ts.map +1 -1
- package/models/components/billlineitem.js +61 -0
- package/models/components/billlineitem.js.map +1 -1
- package/models/components/billpayment.d.ts +2 -2
- package/models/components/creditnote.d.ts +12 -2
- package/models/components/creditnote.d.ts.map +1 -1
- package/models/components/creditnote.js +8 -0
- package/models/components/creditnote.js.map +1 -1
- package/models/components/customer.d.ts +2 -2
- package/models/components/expense.d.ts +2 -2
- 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/invoice.d.ts +22 -2
- package/models/components/invoice.d.ts.map +1 -1
- package/models/components/invoice.js +16 -0
- package/models/components/invoice.js.map +1 -1
- package/models/components/invoicelineitem.d.ts +7 -50
- package/models/components/invoicelineitem.d.ts.map +1 -1
- package/models/components/invoicelineitem.js +6 -37
- package/models/components/invoicelineitem.js.map +1 -1
- package/models/components/journalentry.d.ts +2 -2
- package/models/components/linkedattachment.d.ts +57 -0
- package/models/components/linkedattachment.d.ts.map +1 -0
- package/models/components/linkedattachment.js +90 -0
- package/models/components/linkedattachment.js.map +1 -0
- package/models/components/linkedworktag.d.ts +37 -0
- package/models/components/linkedworktag.d.ts.map +1 -0
- package/models/components/linkedworktag.js +71 -0
- package/models/components/linkedworktag.js.map +1 -0
- package/models/components/payment.d.ts +1 -1
- package/models/components/paymentinput.d.ts +1 -1
- package/models/components/purchaseorder.d.ts +21 -11
- package/models/components/purchaseorder.d.ts.map +1 -1
- package/models/components/purchaseorder.js +27 -15
- package/models/components/purchaseorder.js.map +1 -1
- package/models/components/quote.d.ts +12 -2
- package/models/components/quote.d.ts.map +1 -1
- package/models/components/quote.js +8 -0
- package/models/components/quote.js.map +1 -1
- package/models/components/supplier.d.ts +2 -2
- package/package.json +1 -1
- package/src/__tests__/quotes.test.ts +3 -0
- package/src/lib/config.ts +4 -4
- package/src/models/components/applicant.ts +90 -0
- package/src/models/components/bill.ts +178 -2
- package/src/models/components/billlineitem.ts +156 -0
- package/src/models/components/billpayment.ts +2 -2
- package/src/models/components/creditnote.ts +20 -2
- package/src/models/components/customer.ts +2 -2
- package/src/models/components/expense.ts +2 -2
- package/src/models/components/index.ts +2 -0
- package/src/models/components/invoice.ts +38 -2
- package/src/models/components/invoicelineitem.ts +16 -60
- package/src/models/components/journalentry.ts +2 -2
- package/src/models/components/linkedattachment.ts +115 -0
- package/src/models/components/linkedworktag.ts +72 -0
- package/src/models/components/payment.ts +1 -1
- package/src/models/components/paymentinput.ts +1 -1
- package/src/models/components/purchaseorder.ts +45 -21
- package/src/models/components/quote.ts +20 -2
- package/src/models/components/supplier.ts +2 -2
|
@@ -105,9 +105,13 @@ export type Quote = {
|
|
|
105
105
|
*/
|
|
106
106
|
salesOrderId?: string | null | undefined;
|
|
107
107
|
/**
|
|
108
|
-
* The company
|
|
108
|
+
* The company ID the transaction belongs to
|
|
109
109
|
*/
|
|
110
110
|
companyId?: string | null | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* The ID of the department
|
|
113
|
+
*/
|
|
114
|
+
departmentId?: string | null | undefined;
|
|
111
115
|
/**
|
|
112
116
|
* The unique identifier for the linked project.
|
|
113
117
|
*/
|
|
@@ -228,9 +232,13 @@ export type QuoteInput = {
|
|
|
228
232
|
*/
|
|
229
233
|
salesOrderId?: string | null | undefined;
|
|
230
234
|
/**
|
|
231
|
-
* The company
|
|
235
|
+
* The company ID the transaction belongs to
|
|
232
236
|
*/
|
|
233
237
|
companyId?: string | null | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* The ID of the department
|
|
240
|
+
*/
|
|
241
|
+
departmentId?: string | null | undefined;
|
|
234
242
|
/**
|
|
235
243
|
* The unique identifier for the linked project.
|
|
236
244
|
*/
|
|
@@ -350,6 +358,7 @@ export const Quote$inboundSchema: z.ZodType<Quote, z.ZodTypeDef, unknown> = z
|
|
|
350
358
|
invoice_id: z.string().optional(),
|
|
351
359
|
sales_order_id: z.nullable(z.string()).optional(),
|
|
352
360
|
company_id: z.nullable(z.string()).optional(),
|
|
361
|
+
department_id: z.nullable(z.string()).optional(),
|
|
353
362
|
project_id: z.string().optional(),
|
|
354
363
|
quote_date: z.nullable(z.string().transform(v => new RFCDate(v)))
|
|
355
364
|
.optional(),
|
|
@@ -393,6 +402,7 @@ export const Quote$inboundSchema: z.ZodType<Quote, z.ZodTypeDef, unknown> = z
|
|
|
393
402
|
"invoice_id": "invoiceId",
|
|
394
403
|
"sales_order_id": "salesOrderId",
|
|
395
404
|
"company_id": "companyId",
|
|
405
|
+
"department_id": "departmentId",
|
|
396
406
|
"project_id": "projectId",
|
|
397
407
|
"quote_date": "quoteDate",
|
|
398
408
|
"expiry_date": "expiryDate",
|
|
@@ -429,6 +439,7 @@ export type Quote$Outbound = {
|
|
|
429
439
|
invoice_id?: string | undefined;
|
|
430
440
|
sales_order_id?: string | null | undefined;
|
|
431
441
|
company_id?: string | null | undefined;
|
|
442
|
+
department_id?: string | null | undefined;
|
|
432
443
|
project_id?: string | undefined;
|
|
433
444
|
quote_date?: string | null | undefined;
|
|
434
445
|
expiry_date?: string | null | undefined;
|
|
@@ -476,6 +487,7 @@ export const Quote$outboundSchema: z.ZodType<
|
|
|
476
487
|
invoiceId: z.string().optional(),
|
|
477
488
|
salesOrderId: z.nullable(z.string()).optional(),
|
|
478
489
|
companyId: z.nullable(z.string()).optional(),
|
|
490
|
+
departmentId: z.nullable(z.string()).optional(),
|
|
479
491
|
projectId: z.string().optional(),
|
|
480
492
|
quoteDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
481
493
|
.optional(),
|
|
@@ -515,6 +527,7 @@ export const Quote$outboundSchema: z.ZodType<
|
|
|
515
527
|
invoiceId: "invoice_id",
|
|
516
528
|
salesOrderId: "sales_order_id",
|
|
517
529
|
companyId: "company_id",
|
|
530
|
+
departmentId: "department_id",
|
|
518
531
|
projectId: "project_id",
|
|
519
532
|
quoteDate: "quote_date",
|
|
520
533
|
expiryDate: "expiry_date",
|
|
@@ -579,6 +592,7 @@ export const QuoteInput$inboundSchema: z.ZodType<
|
|
|
579
592
|
customer: z.nullable(LinkedCustomerInput$inboundSchema).optional(),
|
|
580
593
|
sales_order_id: z.nullable(z.string()).optional(),
|
|
581
594
|
company_id: z.nullable(z.string()).optional(),
|
|
595
|
+
department_id: z.nullable(z.string()).optional(),
|
|
582
596
|
project_id: z.string().optional(),
|
|
583
597
|
quote_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
584
598
|
expiry_date: z.nullable(z.string().transform(v => new RFCDate(v))).optional(),
|
|
@@ -610,6 +624,7 @@ export const QuoteInput$inboundSchema: z.ZodType<
|
|
|
610
624
|
return remap$(v, {
|
|
611
625
|
"sales_order_id": "salesOrderId",
|
|
612
626
|
"company_id": "companyId",
|
|
627
|
+
"department_id": "departmentId",
|
|
613
628
|
"project_id": "projectId",
|
|
614
629
|
"quote_date": "quoteDate",
|
|
615
630
|
"expiry_date": "expiryDate",
|
|
@@ -639,6 +654,7 @@ export type QuoteInput$Outbound = {
|
|
|
639
654
|
customer?: LinkedCustomerInput$Outbound | null | undefined;
|
|
640
655
|
sales_order_id?: string | null | undefined;
|
|
641
656
|
company_id?: string | null | undefined;
|
|
657
|
+
department_id?: string | null | undefined;
|
|
642
658
|
project_id?: string | undefined;
|
|
643
659
|
quote_date?: string | null | undefined;
|
|
644
660
|
expiry_date?: string | null | undefined;
|
|
@@ -679,6 +695,7 @@ export const QuoteInput$outboundSchema: z.ZodType<
|
|
|
679
695
|
customer: z.nullable(LinkedCustomerInput$outboundSchema).optional(),
|
|
680
696
|
salesOrderId: z.nullable(z.string()).optional(),
|
|
681
697
|
companyId: z.nullable(z.string()).optional(),
|
|
698
|
+
departmentId: z.nullable(z.string()).optional(),
|
|
682
699
|
projectId: z.string().optional(),
|
|
683
700
|
quoteDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString()))
|
|
684
701
|
.optional(),
|
|
@@ -712,6 +729,7 @@ export const QuoteInput$outboundSchema: z.ZodType<
|
|
|
712
729
|
return remap$(v, {
|
|
713
730
|
salesOrderId: "sales_order_id",
|
|
714
731
|
companyId: "company_id",
|
|
732
|
+
departmentId: "department_id",
|
|
715
733
|
projectId: "project_id",
|
|
716
734
|
quoteDate: "quote_date",
|
|
717
735
|
expiryDate: "expiry_date",
|
|
@@ -117,7 +117,7 @@ export type Supplier = {
|
|
|
117
117
|
*/
|
|
118
118
|
companyName?: string | null | undefined;
|
|
119
119
|
/**
|
|
120
|
-
* The company
|
|
120
|
+
* The company ID the transaction belongs to
|
|
121
121
|
*/
|
|
122
122
|
companyId?: string | null | undefined;
|
|
123
123
|
/**
|
|
@@ -226,7 +226,7 @@ export type SupplierInput = {
|
|
|
226
226
|
*/
|
|
227
227
|
companyName?: string | null | undefined;
|
|
228
228
|
/**
|
|
229
|
-
* The company
|
|
229
|
+
* The company ID the transaction belongs to
|
|
230
230
|
*/
|
|
231
231
|
companyId?: string | null | undefined;
|
|
232
232
|
/**
|