@unified-api/typescript-sdk 2.6.4 → 2.7.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.
Files changed (156) hide show
  1. package/README.md +12 -0
  2. package/funcs/accountingCreateAccountingOrder.d.ts +13 -0
  3. package/funcs/accountingCreateAccountingOrder.d.ts.map +1 -0
  4. package/funcs/accountingCreateAccountingOrder.js +98 -0
  5. package/funcs/accountingCreateAccountingOrder.js.map +1 -0
  6. package/funcs/accountingGetAccountingOrder.d.ts +13 -0
  7. package/funcs/accountingGetAccountingOrder.d.ts.map +1 -0
  8. package/funcs/accountingGetAccountingOrder.js +101 -0
  9. package/funcs/accountingGetAccountingOrder.js.map +1 -0
  10. package/funcs/accountingListAccountingOrders.d.ts +13 -0
  11. package/funcs/accountingListAccountingOrders.d.ts.map +1 -0
  12. package/funcs/accountingListAccountingOrders.js +105 -0
  13. package/funcs/accountingListAccountingOrders.js.map +1 -0
  14. package/funcs/accountingPatchAccountingOrder.d.ts +13 -0
  15. package/funcs/accountingPatchAccountingOrder.d.ts.map +1 -0
  16. package/funcs/accountingPatchAccountingOrder.js +102 -0
  17. package/funcs/accountingPatchAccountingOrder.js.map +1 -0
  18. package/funcs/accountingRemoveAccountingOrder.d.ts +12 -0
  19. package/funcs/accountingRemoveAccountingOrder.d.ts.map +1 -0
  20. package/funcs/accountingRemoveAccountingOrder.js +97 -0
  21. package/funcs/accountingRemoveAccountingOrder.js.map +1 -0
  22. package/funcs/accountingUpdateAccountingOrder.d.ts +13 -0
  23. package/funcs/accountingUpdateAccountingOrder.d.ts.map +1 -0
  24. package/funcs/accountingUpdateAccountingOrder.js +102 -0
  25. package/funcs/accountingUpdateAccountingOrder.js.map +1 -0
  26. package/funcs/orderCreateAccountingOrder.d.ts +13 -0
  27. package/funcs/orderCreateAccountingOrder.d.ts.map +1 -0
  28. package/funcs/orderCreateAccountingOrder.js +98 -0
  29. package/funcs/orderCreateAccountingOrder.js.map +1 -0
  30. package/funcs/orderGetAccountingOrder.d.ts +13 -0
  31. package/funcs/orderGetAccountingOrder.d.ts.map +1 -0
  32. package/funcs/orderGetAccountingOrder.js +101 -0
  33. package/funcs/orderGetAccountingOrder.js.map +1 -0
  34. package/funcs/orderListAccountingOrders.d.ts +13 -0
  35. package/funcs/orderListAccountingOrders.d.ts.map +1 -0
  36. package/funcs/orderListAccountingOrders.js +105 -0
  37. package/funcs/orderListAccountingOrders.js.map +1 -0
  38. package/funcs/orderPatchAccountingOrder.d.ts +13 -0
  39. package/funcs/orderPatchAccountingOrder.d.ts.map +1 -0
  40. package/funcs/orderPatchAccountingOrder.js +102 -0
  41. package/funcs/orderPatchAccountingOrder.js.map +1 -0
  42. package/funcs/orderRemoveAccountingOrder.d.ts +12 -0
  43. package/funcs/orderRemoveAccountingOrder.d.ts.map +1 -0
  44. package/funcs/orderRemoveAccountingOrder.js +97 -0
  45. package/funcs/orderRemoveAccountingOrder.js.map +1 -0
  46. package/funcs/orderUpdateAccountingOrder.d.ts +13 -0
  47. package/funcs/orderUpdateAccountingOrder.d.ts.map +1 -0
  48. package/funcs/orderUpdateAccountingOrder.js +102 -0
  49. package/funcs/orderUpdateAccountingOrder.js.map +1 -0
  50. package/lib/config.d.ts +3 -3
  51. package/lib/config.js +3 -3
  52. package/lib/config.js.map +1 -1
  53. package/package.json +1 -1
  54. package/sdk/accounting.d.ts +24 -0
  55. package/sdk/accounting.d.ts.map +1 -1
  56. package/sdk/accounting.js +42 -0
  57. package/sdk/accounting.js.map +1 -1
  58. package/sdk/models/operations/createaccountingorder.d.ts +36 -0
  59. package/sdk/models/operations/createaccountingorder.d.ts.map +1 -0
  60. package/sdk/models/operations/createaccountingorder.js +66 -0
  61. package/sdk/models/operations/createaccountingorder.js.map +1 -0
  62. package/sdk/models/operations/getaccountingorder.d.ts +38 -0
  63. package/sdk/models/operations/getaccountingorder.d.ts.map +1 -0
  64. package/sdk/models/operations/getaccountingorder.js +63 -0
  65. package/sdk/models/operations/getaccountingorder.js.map +1 -0
  66. package/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -0
  67. package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
  68. package/sdk/models/operations/getunifiedintegrationauth.js +2 -0
  69. package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
  70. package/sdk/models/operations/index.d.ts +6 -0
  71. package/sdk/models/operations/index.d.ts.map +1 -1
  72. package/sdk/models/operations/index.js +6 -0
  73. package/sdk/models/operations/index.js.map +1 -1
  74. package/sdk/models/operations/listaccountingorders.d.ts +53 -0
  75. package/sdk/models/operations/listaccountingorders.d.ts.map +1 -0
  76. package/sdk/models/operations/listaccountingorders.js +78 -0
  77. package/sdk/models/operations/listaccountingorders.js.map +1 -0
  78. package/sdk/models/operations/patchaccountingorder.d.ts +41 -0
  79. package/sdk/models/operations/patchaccountingorder.d.ts.map +1 -0
  80. package/sdk/models/operations/patchaccountingorder.js +68 -0
  81. package/sdk/models/operations/patchaccountingorder.js.map +1 -0
  82. package/sdk/models/operations/removeaccountingorder.d.ts +33 -0
  83. package/sdk/models/operations/removeaccountingorder.d.ts.map +1 -0
  84. package/sdk/models/operations/removeaccountingorder.js +61 -0
  85. package/sdk/models/operations/removeaccountingorder.js.map +1 -0
  86. package/sdk/models/operations/updateaccountingorder.d.ts +41 -0
  87. package/sdk/models/operations/updateaccountingorder.d.ts.map +1 -0
  88. package/sdk/models/operations/updateaccountingorder.js +68 -0
  89. package/sdk/models/operations/updateaccountingorder.js.map +1 -0
  90. package/sdk/models/shared/accountinginvoice.d.ts +29 -0
  91. package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
  92. package/sdk/models/shared/accountinginvoice.js +27 -1
  93. package/sdk/models/shared/accountinginvoice.js.map +1 -1
  94. package/sdk/models/shared/accountingorder.d.ts +122 -0
  95. package/sdk/models/shared/accountingorder.d.ts.map +1 -0
  96. package/sdk/models/shared/accountingorder.js +147 -0
  97. package/sdk/models/shared/accountingorder.js.map +1 -0
  98. package/sdk/models/shared/index.d.ts +3 -0
  99. package/sdk/models/shared/index.d.ts.map +1 -1
  100. package/sdk/models/shared/index.js +3 -0
  101. package/sdk/models/shared/index.js.map +1 -1
  102. package/sdk/models/shared/propertyaccountingorderbillingaddress.d.ts +39 -0
  103. package/sdk/models/shared/propertyaccountingorderbillingaddress.d.ts.map +1 -0
  104. package/sdk/models/shared/propertyaccountingorderbillingaddress.js +77 -0
  105. package/sdk/models/shared/propertyaccountingorderbillingaddress.js.map +1 -0
  106. package/sdk/models/shared/propertyaccountingordershippingaddress.d.ts +39 -0
  107. package/sdk/models/shared/propertyaccountingordershippingaddress.d.ts.map +1 -0
  108. package/sdk/models/shared/propertyaccountingordershippingaddress.js +77 -0
  109. package/sdk/models/shared/propertyaccountingordershippingaddress.js.map +1 -0
  110. package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
  111. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  112. package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  113. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  114. package/sdk/models/shared/webhook.d.ts +3 -0
  115. package/sdk/models/shared/webhook.d.ts.map +1 -1
  116. package/sdk/models/shared/webhook.js +1 -0
  117. package/sdk/models/shared/webhook.js.map +1 -1
  118. package/sdk/order.d.ts +30 -0
  119. package/sdk/order.d.ts.map +1 -0
  120. package/sdk/order.js +54 -0
  121. package/sdk/order.js.map +1 -0
  122. package/sdk/sdk.d.ts +3 -0
  123. package/sdk/sdk.d.ts.map +1 -1
  124. package/sdk/sdk.js +5 -0
  125. package/sdk/sdk.js.map +1 -1
  126. package/src/funcs/accountingCreateAccountingOrder.ts +126 -0
  127. package/src/funcs/accountingGetAccountingOrder.ts +128 -0
  128. package/src/funcs/accountingListAccountingOrders.ts +133 -0
  129. package/src/funcs/accountingPatchAccountingOrder.ts +130 -0
  130. package/src/funcs/accountingRemoveAccountingOrder.ts +124 -0
  131. package/src/funcs/accountingUpdateAccountingOrder.ts +130 -0
  132. package/src/funcs/orderCreateAccountingOrder.ts +126 -0
  133. package/src/funcs/orderGetAccountingOrder.ts +128 -0
  134. package/src/funcs/orderListAccountingOrders.ts +133 -0
  135. package/src/funcs/orderPatchAccountingOrder.ts +130 -0
  136. package/src/funcs/orderRemoveAccountingOrder.ts +124 -0
  137. package/src/funcs/orderUpdateAccountingOrder.ts +130 -0
  138. package/src/lib/config.ts +3 -3
  139. package/src/sdk/accounting.ts +90 -0
  140. package/src/sdk/models/operations/createaccountingorder.ts +71 -0
  141. package/src/sdk/models/operations/getaccountingorder.ts +71 -0
  142. package/src/sdk/models/operations/getunifiedintegrationauth.ts +2 -0
  143. package/src/sdk/models/operations/index.ts +6 -0
  144. package/src/sdk/models/operations/listaccountingorders.ts +101 -0
  145. package/src/sdk/models/operations/patchaccountingorder.ts +78 -0
  146. package/src/sdk/models/operations/removeaccountingorder.ts +64 -0
  147. package/src/sdk/models/operations/updateaccountingorder.ts +78 -0
  148. package/src/sdk/models/shared/accountinginvoice.ts +38 -0
  149. package/src/sdk/models/shared/accountingorder.ts +200 -0
  150. package/src/sdk/models/shared/index.ts +3 -0
  151. package/src/sdk/models/shared/propertyaccountingorderbillingaddress.ts +88 -0
  152. package/src/sdk/models/shared/propertyaccountingordershippingaddress.ts +88 -0
  153. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  154. package/src/sdk/models/shared/webhook.ts +1 -0
  155. package/src/sdk/order.ts +100 -0
  156. package/src/sdk/sdk.ts +6 -0
@@ -6,12 +6,14 @@ import { accountingCreateAccountingAccount } from "../funcs/accountingCreateAcco
6
6
  import { accountingCreateAccountingContact } from "../funcs/accountingCreateAccountingContact.js";
7
7
  import { accountingCreateAccountingInvoice } from "../funcs/accountingCreateAccountingInvoice.js";
8
8
  import { accountingCreateAccountingJournal } from "../funcs/accountingCreateAccountingJournal.js";
9
+ import { accountingCreateAccountingOrder } from "../funcs/accountingCreateAccountingOrder.js";
9
10
  import { accountingCreateAccountingTaxrate } from "../funcs/accountingCreateAccountingTaxrate.js";
10
11
  import { accountingCreateAccountingTransaction } from "../funcs/accountingCreateAccountingTransaction.js";
11
12
  import { accountingGetAccountingAccount } from "../funcs/accountingGetAccountingAccount.js";
12
13
  import { accountingGetAccountingContact } from "../funcs/accountingGetAccountingContact.js";
13
14
  import { accountingGetAccountingInvoice } from "../funcs/accountingGetAccountingInvoice.js";
14
15
  import { accountingGetAccountingJournal } from "../funcs/accountingGetAccountingJournal.js";
16
+ import { accountingGetAccountingOrder } from "../funcs/accountingGetAccountingOrder.js";
15
17
  import { accountingGetAccountingOrganization } from "../funcs/accountingGetAccountingOrganization.js";
16
18
  import { accountingGetAccountingTaxrate } from "../funcs/accountingGetAccountingTaxrate.js";
17
19
  import { accountingGetAccountingTransaction } from "../funcs/accountingGetAccountingTransaction.js";
@@ -19,6 +21,7 @@ import { accountingListAccountingAccounts } from "../funcs/accountingListAccount
19
21
  import { accountingListAccountingContacts } from "../funcs/accountingListAccountingContacts.js";
20
22
  import { accountingListAccountingInvoices } from "../funcs/accountingListAccountingInvoices.js";
21
23
  import { accountingListAccountingJournals } from "../funcs/accountingListAccountingJournals.js";
24
+ import { accountingListAccountingOrders } from "../funcs/accountingListAccountingOrders.js";
22
25
  import { accountingListAccountingOrganizations } from "../funcs/accountingListAccountingOrganizations.js";
23
26
  import { accountingListAccountingTaxrates } from "../funcs/accountingListAccountingTaxrates.js";
24
27
  import { accountingListAccountingTransactions } from "../funcs/accountingListAccountingTransactions.js";
@@ -26,18 +29,21 @@ import { accountingPatchAccountingAccount } from "../funcs/accountingPatchAccoun
26
29
  import { accountingPatchAccountingContact } from "../funcs/accountingPatchAccountingContact.js";
27
30
  import { accountingPatchAccountingInvoice } from "../funcs/accountingPatchAccountingInvoice.js";
28
31
  import { accountingPatchAccountingJournal } from "../funcs/accountingPatchAccountingJournal.js";
32
+ import { accountingPatchAccountingOrder } from "../funcs/accountingPatchAccountingOrder.js";
29
33
  import { accountingPatchAccountingTaxrate } from "../funcs/accountingPatchAccountingTaxrate.js";
30
34
  import { accountingPatchAccountingTransaction } from "../funcs/accountingPatchAccountingTransaction.js";
31
35
  import { accountingRemoveAccountingAccount } from "../funcs/accountingRemoveAccountingAccount.js";
32
36
  import { accountingRemoveAccountingContact } from "../funcs/accountingRemoveAccountingContact.js";
33
37
  import { accountingRemoveAccountingInvoice } from "../funcs/accountingRemoveAccountingInvoice.js";
34
38
  import { accountingRemoveAccountingJournal } from "../funcs/accountingRemoveAccountingJournal.js";
39
+ import { accountingRemoveAccountingOrder } from "../funcs/accountingRemoveAccountingOrder.js";
35
40
  import { accountingRemoveAccountingTaxrate } from "../funcs/accountingRemoveAccountingTaxrate.js";
36
41
  import { accountingRemoveAccountingTransaction } from "../funcs/accountingRemoveAccountingTransaction.js";
37
42
  import { accountingUpdateAccountingAccount } from "../funcs/accountingUpdateAccountingAccount.js";
38
43
  import { accountingUpdateAccountingContact } from "../funcs/accountingUpdateAccountingContact.js";
39
44
  import { accountingUpdateAccountingInvoice } from "../funcs/accountingUpdateAccountingInvoice.js";
40
45
  import { accountingUpdateAccountingJournal } from "../funcs/accountingUpdateAccountingJournal.js";
46
+ import { accountingUpdateAccountingOrder } from "../funcs/accountingUpdateAccountingOrder.js";
41
47
  import { accountingUpdateAccountingTaxrate } from "../funcs/accountingUpdateAccountingTaxrate.js";
42
48
  import { accountingUpdateAccountingTransaction } from "../funcs/accountingUpdateAccountingTransaction.js";
43
49
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -102,6 +108,20 @@ export class Accounting extends ClientSDK {
102
108
  ));
103
109
  }
104
110
 
111
+ /**
112
+ * Create an order
113
+ */
114
+ async createAccountingOrder(
115
+ request: operations.CreateAccountingOrderRequest,
116
+ options?: RequestOptions,
117
+ ): Promise<shared.AccountingOrder> {
118
+ return unwrapAsync(accountingCreateAccountingOrder(
119
+ this,
120
+ request,
121
+ options,
122
+ ));
123
+ }
124
+
105
125
  /**
106
126
  * Create a taxrate
107
127
  */
@@ -186,6 +206,20 @@ export class Accounting extends ClientSDK {
186
206
  ));
187
207
  }
188
208
 
209
+ /**
210
+ * Retrieve an order
211
+ */
212
+ async getAccountingOrder(
213
+ request: operations.GetAccountingOrderRequest,
214
+ options?: RequestOptions,
215
+ ): Promise<shared.AccountingOrder> {
216
+ return unwrapAsync(accountingGetAccountingOrder(
217
+ this,
218
+ request,
219
+ options,
220
+ ));
221
+ }
222
+
189
223
  /**
190
224
  * Retrieve an organization
191
225
  */
@@ -284,6 +318,20 @@ export class Accounting extends ClientSDK {
284
318
  ));
285
319
  }
286
320
 
321
+ /**
322
+ * List all orders
323
+ */
324
+ async listAccountingOrders(
325
+ request: operations.ListAccountingOrdersRequest,
326
+ options?: RequestOptions,
327
+ ): Promise<Array<shared.AccountingOrder>> {
328
+ return unwrapAsync(accountingListAccountingOrders(
329
+ this,
330
+ request,
331
+ options,
332
+ ));
333
+ }
334
+
287
335
  /**
288
336
  * List all organizations
289
337
  */
@@ -382,6 +430,20 @@ export class Accounting extends ClientSDK {
382
430
  ));
383
431
  }
384
432
 
433
+ /**
434
+ * Update an order
435
+ */
436
+ async patchAccountingOrder(
437
+ request: operations.PatchAccountingOrderRequest,
438
+ options?: RequestOptions,
439
+ ): Promise<shared.AccountingOrder> {
440
+ return unwrapAsync(accountingPatchAccountingOrder(
441
+ this,
442
+ request,
443
+ options,
444
+ ));
445
+ }
446
+
385
447
  /**
386
448
  * Update a taxrate
387
449
  */
@@ -466,6 +528,20 @@ export class Accounting extends ClientSDK {
466
528
  ));
467
529
  }
468
530
 
531
+ /**
532
+ * Remove an order
533
+ */
534
+ async removeAccountingOrder(
535
+ request: operations.RemoveAccountingOrderRequest,
536
+ options?: RequestOptions,
537
+ ): Promise<void> {
538
+ return unwrapAsync(accountingRemoveAccountingOrder(
539
+ this,
540
+ request,
541
+ options,
542
+ ));
543
+ }
544
+
469
545
  /**
470
546
  * Remove a taxrate
471
547
  */
@@ -550,6 +626,20 @@ export class Accounting extends ClientSDK {
550
626
  ));
551
627
  }
552
628
 
629
+ /**
630
+ * Update an order
631
+ */
632
+ async updateAccountingOrder(
633
+ request: operations.UpdateAccountingOrderRequest,
634
+ options?: RequestOptions,
635
+ ): Promise<shared.AccountingOrder> {
636
+ return unwrapAsync(accountingUpdateAccountingOrder(
637
+ this,
638
+ request,
639
+ options,
640
+ ));
641
+ }
642
+
553
643
  /**
554
644
  * Update a taxrate
555
645
  */
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import * as shared from "../shared/index.js";
8
+
9
+ export type CreateAccountingOrderRequest = {
10
+ accountingOrder?: shared.AccountingOrder | undefined;
11
+ /**
12
+ * ID of the connection
13
+ */
14
+ connectionId: string;
15
+ /**
16
+ * Comma-delimited fields to return
17
+ */
18
+ fields?: Array<string> | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export const CreateAccountingOrderRequest$inboundSchema: z.ZodType<
23
+ CreateAccountingOrderRequest,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ AccountingOrder: shared.AccountingOrder$inboundSchema.optional(),
28
+ connection_id: z.string(),
29
+ fields: z.array(z.string()).optional(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "AccountingOrder": "accountingOrder",
33
+ "connection_id": "connectionId",
34
+ });
35
+ });
36
+
37
+ /** @internal */
38
+ export type CreateAccountingOrderRequest$Outbound = {
39
+ AccountingOrder?: shared.AccountingOrder$Outbound | undefined;
40
+ connection_id: string;
41
+ fields?: Array<string> | undefined;
42
+ };
43
+
44
+ /** @internal */
45
+ export const CreateAccountingOrderRequest$outboundSchema: z.ZodType<
46
+ CreateAccountingOrderRequest$Outbound,
47
+ z.ZodTypeDef,
48
+ CreateAccountingOrderRequest
49
+ > = z.object({
50
+ accountingOrder: shared.AccountingOrder$outboundSchema.optional(),
51
+ connectionId: z.string(),
52
+ fields: z.array(z.string()).optional(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ accountingOrder: "AccountingOrder",
56
+ connectionId: "connection_id",
57
+ });
58
+ });
59
+
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export namespace CreateAccountingOrderRequest$ {
65
+ /** @deprecated use `CreateAccountingOrderRequest$inboundSchema` instead. */
66
+ export const inboundSchema = CreateAccountingOrderRequest$inboundSchema;
67
+ /** @deprecated use `CreateAccountingOrderRequest$outboundSchema` instead. */
68
+ export const outboundSchema = CreateAccountingOrderRequest$outboundSchema;
69
+ /** @deprecated use `CreateAccountingOrderRequest$Outbound` instead. */
70
+ export type Outbound = CreateAccountingOrderRequest$Outbound;
71
+ }
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+
8
+ export type GetAccountingOrderRequest = {
9
+ /**
10
+ * ID of the connection
11
+ */
12
+ connectionId: string;
13
+ /**
14
+ * Comma-delimited fields to return
15
+ */
16
+ fields?: Array<string> | undefined;
17
+ /**
18
+ * ID of the Order
19
+ */
20
+ id: string;
21
+ };
22
+
23
+ /** @internal */
24
+ export const GetAccountingOrderRequest$inboundSchema: z.ZodType<
25
+ GetAccountingOrderRequest,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ connection_id: z.string(),
30
+ fields: z.array(z.string()).optional(),
31
+ id: z.string(),
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ "connection_id": "connectionId",
35
+ });
36
+ });
37
+
38
+ /** @internal */
39
+ export type GetAccountingOrderRequest$Outbound = {
40
+ connection_id: string;
41
+ fields?: Array<string> | undefined;
42
+ id: string;
43
+ };
44
+
45
+ /** @internal */
46
+ export const GetAccountingOrderRequest$outboundSchema: z.ZodType<
47
+ GetAccountingOrderRequest$Outbound,
48
+ z.ZodTypeDef,
49
+ GetAccountingOrderRequest
50
+ > = z.object({
51
+ connectionId: z.string(),
52
+ fields: z.array(z.string()).optional(),
53
+ id: z.string(),
54
+ }).transform((v) => {
55
+ return remap$(v, {
56
+ connectionId: "connection_id",
57
+ });
58
+ });
59
+
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export namespace GetAccountingOrderRequest$ {
65
+ /** @deprecated use `GetAccountingOrderRequest$inboundSchema` instead. */
66
+ export const inboundSchema = GetAccountingOrderRequest$inboundSchema;
67
+ /** @deprecated use `GetAccountingOrderRequest$outboundSchema` instead. */
68
+ export const outboundSchema = GetAccountingOrderRequest$outboundSchema;
69
+ /** @deprecated use `GetAccountingOrderRequest$Outbound` instead. */
70
+ export type Outbound = GetAccountingOrderRequest$Outbound;
71
+ }
@@ -21,6 +21,8 @@ export const Scopes = {
21
21
  AccountingTaxrateRead: "accounting_taxrate_read",
22
22
  AccountingTaxrateWrite: "accounting_taxrate_write",
23
23
  AccountingOrganizationRead: "accounting_organization_read",
24
+ AccountingOrderRead: "accounting_order_read",
25
+ AccountingOrderWrite: "accounting_order_write",
24
26
  PaymentPaymentRead: "payment_payment_read",
25
27
  PaymentPaymentWrite: "payment_payment_write",
26
28
  PaymentPayoutRead: "payment_payout_read",
@@ -6,6 +6,7 @@ export * from "./createaccountingaccount.js";
6
6
  export * from "./createaccountingcontact.js";
7
7
  export * from "./createaccountinginvoice.js";
8
8
  export * from "./createaccountingjournal.js";
9
+ export * from "./createaccountingorder.js";
9
10
  export * from "./createaccountingtaxrate.js";
10
11
  export * from "./createaccountingtransaction.js";
11
12
  export * from "./createatsactivity.js";
@@ -53,6 +54,7 @@ export * from "./getaccountingaccount.js";
53
54
  export * from "./getaccountingcontact.js";
54
55
  export * from "./getaccountinginvoice.js";
55
56
  export * from "./getaccountingjournal.js";
57
+ export * from "./getaccountingorder.js";
56
58
  export * from "./getaccountingorganization.js";
57
59
  export * from "./getaccountingtaxrate.js";
58
60
  export * from "./getaccountingtransaction.js";
@@ -107,6 +109,7 @@ export * from "./listaccountingaccounts.js";
107
109
  export * from "./listaccountingcontacts.js";
108
110
  export * from "./listaccountinginvoices.js";
109
111
  export * from "./listaccountingjournals.js";
112
+ export * from "./listaccountingorders.js";
110
113
  export * from "./listaccountingorganizations.js";
111
114
  export * from "./listaccountingtaxrates.js";
112
115
  export * from "./listaccountingtransactions.js";
@@ -169,6 +172,7 @@ export * from "./patchaccountingaccount.js";
169
172
  export * from "./patchaccountingcontact.js";
170
173
  export * from "./patchaccountinginvoice.js";
171
174
  export * from "./patchaccountingjournal.js";
175
+ export * from "./patchaccountingorder.js";
172
176
  export * from "./patchaccountingtaxrate.js";
173
177
  export * from "./patchaccountingtransaction.js";
174
178
  export * from "./patchatsactivity.js";
@@ -217,6 +221,7 @@ export * from "./removeaccountingaccount.js";
217
221
  export * from "./removeaccountingcontact.js";
218
222
  export * from "./removeaccountinginvoice.js";
219
223
  export * from "./removeaccountingjournal.js";
224
+ export * from "./removeaccountingorder.js";
220
225
  export * from "./removeaccountingtaxrate.js";
221
226
  export * from "./removeaccountingtransaction.js";
222
227
  export * from "./removeatsactivity.js";
@@ -263,6 +268,7 @@ export * from "./updateaccountingaccount.js";
263
268
  export * from "./updateaccountingcontact.js";
264
269
  export * from "./updateaccountinginvoice.js";
265
270
  export * from "./updateaccountingjournal.js";
271
+ export * from "./updateaccountingorder.js";
266
272
  export * from "./updateaccountingtaxrate.js";
267
273
  export * from "./updateaccountingtransaction.js";
268
274
  export * from "./updateatsactivity.js";
@@ -0,0 +1,101 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+
8
+ export type ListAccountingOrdersRequest = {
9
+ /**
10
+ * ID of the connection
11
+ */
12
+ connectionId: string;
13
+ /**
14
+ * Comma-delimited fields to return
15
+ */
16
+ fields?: Array<string> | undefined;
17
+ limit?: number | undefined;
18
+ offset?: number | undefined;
19
+ order?: string | undefined;
20
+ /**
21
+ * Query string to search. eg. email address or name
22
+ */
23
+ query?: string | undefined;
24
+ sort?: string | undefined;
25
+ type?: string | undefined;
26
+ /**
27
+ * Return only results whose updated date is equal or greater to this value
28
+ */
29
+ updatedGte?: Date | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export const ListAccountingOrdersRequest$inboundSchema: z.ZodType<
34
+ ListAccountingOrdersRequest,
35
+ z.ZodTypeDef,
36
+ unknown
37
+ > = z.object({
38
+ connection_id: z.string(),
39
+ fields: z.array(z.string()).optional(),
40
+ limit: z.number().optional(),
41
+ offset: z.number().optional(),
42
+ order: z.string().optional(),
43
+ query: z.string().optional(),
44
+ sort: z.string().optional(),
45
+ type: z.string().optional(),
46
+ updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
47
+ .optional(),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ "connection_id": "connectionId",
51
+ "updated_gte": "updatedGte",
52
+ });
53
+ });
54
+
55
+ /** @internal */
56
+ export type ListAccountingOrdersRequest$Outbound = {
57
+ connection_id: string;
58
+ fields?: Array<string> | undefined;
59
+ limit?: number | undefined;
60
+ offset?: number | undefined;
61
+ order?: string | undefined;
62
+ query?: string | undefined;
63
+ sort?: string | undefined;
64
+ type?: string | undefined;
65
+ updated_gte?: string | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const ListAccountingOrdersRequest$outboundSchema: z.ZodType<
70
+ ListAccountingOrdersRequest$Outbound,
71
+ z.ZodTypeDef,
72
+ ListAccountingOrdersRequest
73
+ > = z.object({
74
+ connectionId: z.string(),
75
+ fields: z.array(z.string()).optional(),
76
+ limit: z.number().optional(),
77
+ offset: z.number().optional(),
78
+ order: z.string().optional(),
79
+ query: z.string().optional(),
80
+ sort: z.string().optional(),
81
+ type: z.string().optional(),
82
+ updatedGte: z.date().transform(v => v.toISOString()).optional(),
83
+ }).transform((v) => {
84
+ return remap$(v, {
85
+ connectionId: "connection_id",
86
+ updatedGte: "updated_gte",
87
+ });
88
+ });
89
+
90
+ /**
91
+ * @internal
92
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
+ */
94
+ export namespace ListAccountingOrdersRequest$ {
95
+ /** @deprecated use `ListAccountingOrdersRequest$inboundSchema` instead. */
96
+ export const inboundSchema = ListAccountingOrdersRequest$inboundSchema;
97
+ /** @deprecated use `ListAccountingOrdersRequest$outboundSchema` instead. */
98
+ export const outboundSchema = ListAccountingOrdersRequest$outboundSchema;
99
+ /** @deprecated use `ListAccountingOrdersRequest$Outbound` instead. */
100
+ export type Outbound = ListAccountingOrdersRequest$Outbound;
101
+ }
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import * as shared from "../shared/index.js";
8
+
9
+ export type PatchAccountingOrderRequest = {
10
+ accountingOrder?: shared.AccountingOrder | undefined;
11
+ /**
12
+ * ID of the connection
13
+ */
14
+ connectionId: string;
15
+ /**
16
+ * Comma-delimited fields to return
17
+ */
18
+ fields?: Array<string> | undefined;
19
+ /**
20
+ * ID of the Order
21
+ */
22
+ id: string;
23
+ };
24
+
25
+ /** @internal */
26
+ export const PatchAccountingOrderRequest$inboundSchema: z.ZodType<
27
+ PatchAccountingOrderRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ AccountingOrder: shared.AccountingOrder$inboundSchema.optional(),
32
+ connection_id: z.string(),
33
+ fields: z.array(z.string()).optional(),
34
+ id: z.string(),
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "AccountingOrder": "accountingOrder",
38
+ "connection_id": "connectionId",
39
+ });
40
+ });
41
+
42
+ /** @internal */
43
+ export type PatchAccountingOrderRequest$Outbound = {
44
+ AccountingOrder?: shared.AccountingOrder$Outbound | undefined;
45
+ connection_id: string;
46
+ fields?: Array<string> | undefined;
47
+ id: string;
48
+ };
49
+
50
+ /** @internal */
51
+ export const PatchAccountingOrderRequest$outboundSchema: z.ZodType<
52
+ PatchAccountingOrderRequest$Outbound,
53
+ z.ZodTypeDef,
54
+ PatchAccountingOrderRequest
55
+ > = z.object({
56
+ accountingOrder: shared.AccountingOrder$outboundSchema.optional(),
57
+ connectionId: z.string(),
58
+ fields: z.array(z.string()).optional(),
59
+ id: z.string(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ accountingOrder: "AccountingOrder",
63
+ connectionId: "connection_id",
64
+ });
65
+ });
66
+
67
+ /**
68
+ * @internal
69
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
70
+ */
71
+ export namespace PatchAccountingOrderRequest$ {
72
+ /** @deprecated use `PatchAccountingOrderRequest$inboundSchema` instead. */
73
+ export const inboundSchema = PatchAccountingOrderRequest$inboundSchema;
74
+ /** @deprecated use `PatchAccountingOrderRequest$outboundSchema` instead. */
75
+ export const outboundSchema = PatchAccountingOrderRequest$outboundSchema;
76
+ /** @deprecated use `PatchAccountingOrderRequest$Outbound` instead. */
77
+ export type Outbound = PatchAccountingOrderRequest$Outbound;
78
+ }
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+
8
+ export type RemoveAccountingOrderRequest = {
9
+ /**
10
+ * ID of the connection
11
+ */
12
+ connectionId: string;
13
+ /**
14
+ * ID of the Order
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const RemoveAccountingOrderRequest$inboundSchema: z.ZodType<
21
+ RemoveAccountingOrderRequest,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ connection_id: z.string(),
26
+ id: z.string(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "connection_id": "connectionId",
30
+ });
31
+ });
32
+
33
+ /** @internal */
34
+ export type RemoveAccountingOrderRequest$Outbound = {
35
+ connection_id: string;
36
+ id: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export const RemoveAccountingOrderRequest$outboundSchema: z.ZodType<
41
+ RemoveAccountingOrderRequest$Outbound,
42
+ z.ZodTypeDef,
43
+ RemoveAccountingOrderRequest
44
+ > = z.object({
45
+ connectionId: z.string(),
46
+ id: z.string(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ connectionId: "connection_id",
50
+ });
51
+ });
52
+
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export namespace RemoveAccountingOrderRequest$ {
58
+ /** @deprecated use `RemoveAccountingOrderRequest$inboundSchema` instead. */
59
+ export const inboundSchema = RemoveAccountingOrderRequest$inboundSchema;
60
+ /** @deprecated use `RemoveAccountingOrderRequest$outboundSchema` instead. */
61
+ export const outboundSchema = RemoveAccountingOrderRequest$outboundSchema;
62
+ /** @deprecated use `RemoveAccountingOrderRequest$Outbound` instead. */
63
+ export type Outbound = RemoveAccountingOrderRequest$Outbound;
64
+ }
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import * as shared from "../shared/index.js";
8
+
9
+ export type UpdateAccountingOrderRequest = {
10
+ accountingOrder?: shared.AccountingOrder | undefined;
11
+ /**
12
+ * ID of the connection
13
+ */
14
+ connectionId: string;
15
+ /**
16
+ * Comma-delimited fields to return
17
+ */
18
+ fields?: Array<string> | undefined;
19
+ /**
20
+ * ID of the Order
21
+ */
22
+ id: string;
23
+ };
24
+
25
+ /** @internal */
26
+ export const UpdateAccountingOrderRequest$inboundSchema: z.ZodType<
27
+ UpdateAccountingOrderRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ AccountingOrder: shared.AccountingOrder$inboundSchema.optional(),
32
+ connection_id: z.string(),
33
+ fields: z.array(z.string()).optional(),
34
+ id: z.string(),
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "AccountingOrder": "accountingOrder",
38
+ "connection_id": "connectionId",
39
+ });
40
+ });
41
+
42
+ /** @internal */
43
+ export type UpdateAccountingOrderRequest$Outbound = {
44
+ AccountingOrder?: shared.AccountingOrder$Outbound | undefined;
45
+ connection_id: string;
46
+ fields?: Array<string> | undefined;
47
+ id: string;
48
+ };
49
+
50
+ /** @internal */
51
+ export const UpdateAccountingOrderRequest$outboundSchema: z.ZodType<
52
+ UpdateAccountingOrderRequest$Outbound,
53
+ z.ZodTypeDef,
54
+ UpdateAccountingOrderRequest
55
+ > = z.object({
56
+ accountingOrder: shared.AccountingOrder$outboundSchema.optional(),
57
+ connectionId: z.string(),
58
+ fields: z.array(z.string()).optional(),
59
+ id: z.string(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ accountingOrder: "AccountingOrder",
63
+ connectionId: "connection_id",
64
+ });
65
+ });
66
+
67
+ /**
68
+ * @internal
69
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
70
+ */
71
+ export namespace UpdateAccountingOrderRequest$ {
72
+ /** @deprecated use `UpdateAccountingOrderRequest$inboundSchema` instead. */
73
+ export const inboundSchema = UpdateAccountingOrderRequest$inboundSchema;
74
+ /** @deprecated use `UpdateAccountingOrderRequest$outboundSchema` instead. */
75
+ export const outboundSchema = UpdateAccountingOrderRequest$outboundSchema;
76
+ /** @deprecated use `UpdateAccountingOrderRequest$Outbound` instead. */
77
+ export type Outbound = UpdateAccountingOrderRequest$Outbound;
78
+ }