@unified-api/typescript-sdk 2.6.3 → 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.
- package/README.md +12 -0
- package/funcs/accountingCreateAccountingOrder.d.ts +13 -0
- package/funcs/accountingCreateAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingCreateAccountingOrder.js +98 -0
- package/funcs/accountingCreateAccountingOrder.js.map +1 -0
- package/funcs/accountingGetAccountingOrder.d.ts +13 -0
- package/funcs/accountingGetAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingGetAccountingOrder.js +101 -0
- package/funcs/accountingGetAccountingOrder.js.map +1 -0
- package/funcs/accountingListAccountingOrders.d.ts +13 -0
- package/funcs/accountingListAccountingOrders.d.ts.map +1 -0
- package/funcs/accountingListAccountingOrders.js +105 -0
- package/funcs/accountingListAccountingOrders.js.map +1 -0
- package/funcs/accountingPatchAccountingOrder.d.ts +13 -0
- package/funcs/accountingPatchAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingPatchAccountingOrder.js +102 -0
- package/funcs/accountingPatchAccountingOrder.js.map +1 -0
- package/funcs/accountingRemoveAccountingOrder.d.ts +12 -0
- package/funcs/accountingRemoveAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingRemoveAccountingOrder.js +97 -0
- package/funcs/accountingRemoveAccountingOrder.js.map +1 -0
- package/funcs/accountingUpdateAccountingOrder.d.ts +13 -0
- package/funcs/accountingUpdateAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingUpdateAccountingOrder.js +102 -0
- package/funcs/accountingUpdateAccountingOrder.js.map +1 -0
- package/funcs/orderCreateAccountingOrder.d.ts +13 -0
- package/funcs/orderCreateAccountingOrder.d.ts.map +1 -0
- package/funcs/orderCreateAccountingOrder.js +98 -0
- package/funcs/orderCreateAccountingOrder.js.map +1 -0
- package/funcs/orderGetAccountingOrder.d.ts +13 -0
- package/funcs/orderGetAccountingOrder.d.ts.map +1 -0
- package/funcs/orderGetAccountingOrder.js +101 -0
- package/funcs/orderGetAccountingOrder.js.map +1 -0
- package/funcs/orderListAccountingOrders.d.ts +13 -0
- package/funcs/orderListAccountingOrders.d.ts.map +1 -0
- package/funcs/orderListAccountingOrders.js +105 -0
- package/funcs/orderListAccountingOrders.js.map +1 -0
- package/funcs/orderPatchAccountingOrder.d.ts +13 -0
- package/funcs/orderPatchAccountingOrder.d.ts.map +1 -0
- package/funcs/orderPatchAccountingOrder.js +102 -0
- package/funcs/orderPatchAccountingOrder.js.map +1 -0
- package/funcs/orderRemoveAccountingOrder.d.ts +12 -0
- package/funcs/orderRemoveAccountingOrder.d.ts.map +1 -0
- package/funcs/orderRemoveAccountingOrder.js +97 -0
- package/funcs/orderRemoveAccountingOrder.js.map +1 -0
- package/funcs/orderUpdateAccountingOrder.d.ts +13 -0
- package/funcs/orderUpdateAccountingOrder.d.ts.map +1 -0
- package/funcs/orderUpdateAccountingOrder.js +102 -0
- package/funcs/orderUpdateAccountingOrder.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +24 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +42 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/models/operations/createaccountingorder.d.ts +36 -0
- package/sdk/models/operations/createaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/createaccountingorder.js +66 -0
- package/sdk/models/operations/createaccountingorder.js.map +1 -0
- package/sdk/models/operations/getaccountingorder.d.ts +38 -0
- package/sdk/models/operations/getaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingorder.js +63 -0
- package/sdk/models/operations/getaccountingorder.js.map +1 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
- package/sdk/models/operations/getunifiedintegrationauth.js +2 -0
- package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingorders.d.ts +53 -0
- package/sdk/models/operations/listaccountingorders.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingorders.js +78 -0
- package/sdk/models/operations/listaccountingorders.js.map +1 -0
- package/sdk/models/operations/patchaccountingorder.d.ts +41 -0
- package/sdk/models/operations/patchaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/patchaccountingorder.js +68 -0
- package/sdk/models/operations/patchaccountingorder.js.map +1 -0
- package/sdk/models/operations/removeaccountingorder.d.ts +33 -0
- package/sdk/models/operations/removeaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/removeaccountingorder.js +61 -0
- package/sdk/models/operations/removeaccountingorder.js.map +1 -0
- package/sdk/models/operations/updateaccountingorder.d.ts +41 -0
- package/sdk/models/operations/updateaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/updateaccountingorder.js +68 -0
- package/sdk/models/operations/updateaccountingorder.js.map +1 -0
- package/sdk/models/shared/accountinginvoice.d.ts +29 -0
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +27 -1
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/accountingorder.d.ts +122 -0
- package/sdk/models/shared/accountingorder.d.ts.map +1 -0
- package/sdk/models/shared/accountingorder.js +147 -0
- package/sdk/models/shared/accountingorder.js.map +1 -0
- package/sdk/models/shared/commerceitem.d.ts +2 -0
- package/sdk/models/shared/commerceitem.d.ts.map +1 -1
- package/sdk/models/shared/commerceitem.js +4 -0
- package/sdk/models/shared/commerceitem.js.map +1 -1
- package/sdk/models/shared/index.d.ts +3 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +3 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyaccountingorderbillingaddress.d.ts +39 -0
- package/sdk/models/shared/propertyaccountingorderbillingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingorderbillingaddress.js +77 -0
- package/sdk/models/shared/propertyaccountingorderbillingaddress.js.map +1 -0
- package/sdk/models/shared/propertyaccountingordershippingaddress.d.ts +39 -0
- package/sdk/models/shared/propertyaccountingordershippingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingordershippingaddress.js +77 -0
- package/sdk/models/shared/propertyaccountingordershippingaddress.js.map +1 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/storagefile.d.ts +2 -0
- package/sdk/models/shared/storagefile.d.ts.map +1 -1
- package/sdk/models/shared/storagefile.js +2 -0
- package/sdk/models/shared/storagefile.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/order.d.ts +30 -0
- package/sdk/order.d.ts.map +1 -0
- package/sdk/order.js +54 -0
- package/sdk/order.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountingCreateAccountingOrder.ts +126 -0
- package/src/funcs/accountingGetAccountingOrder.ts +128 -0
- package/src/funcs/accountingListAccountingOrders.ts +133 -0
- package/src/funcs/accountingPatchAccountingOrder.ts +130 -0
- package/src/funcs/accountingRemoveAccountingOrder.ts +124 -0
- package/src/funcs/accountingUpdateAccountingOrder.ts +130 -0
- package/src/funcs/orderCreateAccountingOrder.ts +126 -0
- package/src/funcs/orderGetAccountingOrder.ts +128 -0
- package/src/funcs/orderListAccountingOrders.ts +133 -0
- package/src/funcs/orderPatchAccountingOrder.ts +130 -0
- package/src/funcs/orderRemoveAccountingOrder.ts +124 -0
- package/src/funcs/orderUpdateAccountingOrder.ts +130 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/accounting.ts +90 -0
- package/src/sdk/models/operations/createaccountingorder.ts +71 -0
- package/src/sdk/models/operations/getaccountingorder.ts +71 -0
- package/src/sdk/models/operations/getunifiedintegrationauth.ts +2 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listaccountingorders.ts +101 -0
- package/src/sdk/models/operations/patchaccountingorder.ts +78 -0
- package/src/sdk/models/operations/removeaccountingorder.ts +64 -0
- package/src/sdk/models/operations/updateaccountingorder.ts +78 -0
- package/src/sdk/models/shared/accountinginvoice.ts +38 -0
- package/src/sdk/models/shared/accountingorder.ts +200 -0
- package/src/sdk/models/shared/commerceitem.ts +6 -0
- package/src/sdk/models/shared/index.ts +3 -0
- package/src/sdk/models/shared/propertyaccountingorderbillingaddress.ts +88 -0
- package/src/sdk/models/shared/propertyaccountingordershippingaddress.ts +88 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/storagefile.ts +4 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/order.ts +100 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -10,6 +10,7 @@ export * from "./accountinginvoice.js";
|
|
|
10
10
|
export * from "./accountingjournal.js";
|
|
11
11
|
export * from "./accountingjournallineitem.js";
|
|
12
12
|
export * from "./accountinglineitem.js";
|
|
13
|
+
export * from "./accountingorder.js";
|
|
13
14
|
export * from "./accountingorganization.js";
|
|
14
15
|
export * from "./accountingtaxrate.js";
|
|
15
16
|
export * from "./accountingtelephone.js";
|
|
@@ -91,6 +92,8 @@ export * from "./paymentpayout.js";
|
|
|
91
92
|
export * from "./paymentrefund.js";
|
|
92
93
|
export * from "./propertyaccountingcontactbillingaddress.js";
|
|
93
94
|
export * from "./propertyaccountingcontactshippingaddress.js";
|
|
95
|
+
export * from "./propertyaccountingorderbillingaddress.js";
|
|
96
|
+
export * from "./propertyaccountingordershippingaddress.js";
|
|
94
97
|
export * from "./propertyaccountingorganizationaddress.js";
|
|
95
98
|
export * from "./propertyatsactivityfrom.js";
|
|
96
99
|
export * from "./propertyatscandidateaddress.js";
|
|
@@ -0,0 +1,88 @@
|
|
|
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 PropertyAccountingOrderBillingAddress = {
|
|
9
|
+
address1?: string | undefined;
|
|
10
|
+
address2?: string | undefined;
|
|
11
|
+
city?: string | undefined;
|
|
12
|
+
country?: string | undefined;
|
|
13
|
+
countryCode?: string | undefined;
|
|
14
|
+
postalCode?: string | undefined;
|
|
15
|
+
region?: string | undefined;
|
|
16
|
+
regionCode?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const PropertyAccountingOrderBillingAddress$inboundSchema: z.ZodType<
|
|
21
|
+
PropertyAccountingOrderBillingAddress,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
address1: z.string().optional(),
|
|
26
|
+
address2: z.string().optional(),
|
|
27
|
+
city: z.string().optional(),
|
|
28
|
+
country: z.string().optional(),
|
|
29
|
+
country_code: z.string().optional(),
|
|
30
|
+
postal_code: z.string().optional(),
|
|
31
|
+
region: z.string().optional(),
|
|
32
|
+
region_code: z.string().optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"country_code": "countryCode",
|
|
36
|
+
"postal_code": "postalCode",
|
|
37
|
+
"region_code": "regionCode",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type PropertyAccountingOrderBillingAddress$Outbound = {
|
|
43
|
+
address1?: string | undefined;
|
|
44
|
+
address2?: string | undefined;
|
|
45
|
+
city?: string | undefined;
|
|
46
|
+
country?: string | undefined;
|
|
47
|
+
country_code?: string | undefined;
|
|
48
|
+
postal_code?: string | undefined;
|
|
49
|
+
region?: string | undefined;
|
|
50
|
+
region_code?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const PropertyAccountingOrderBillingAddress$outboundSchema: z.ZodType<
|
|
55
|
+
PropertyAccountingOrderBillingAddress$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
PropertyAccountingOrderBillingAddress
|
|
58
|
+
> = z.object({
|
|
59
|
+
address1: z.string().optional(),
|
|
60
|
+
address2: z.string().optional(),
|
|
61
|
+
city: z.string().optional(),
|
|
62
|
+
country: z.string().optional(),
|
|
63
|
+
countryCode: z.string().optional(),
|
|
64
|
+
postalCode: z.string().optional(),
|
|
65
|
+
region: z.string().optional(),
|
|
66
|
+
regionCode: z.string().optional(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
countryCode: "country_code",
|
|
70
|
+
postalCode: "postal_code",
|
|
71
|
+
regionCode: "region_code",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export namespace PropertyAccountingOrderBillingAddress$ {
|
|
80
|
+
/** @deprecated use `PropertyAccountingOrderBillingAddress$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema =
|
|
82
|
+
PropertyAccountingOrderBillingAddress$inboundSchema;
|
|
83
|
+
/** @deprecated use `PropertyAccountingOrderBillingAddress$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema =
|
|
85
|
+
PropertyAccountingOrderBillingAddress$outboundSchema;
|
|
86
|
+
/** @deprecated use `PropertyAccountingOrderBillingAddress$Outbound` instead. */
|
|
87
|
+
export type Outbound = PropertyAccountingOrderBillingAddress$Outbound;
|
|
88
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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 PropertyAccountingOrderShippingAddress = {
|
|
9
|
+
address1?: string | undefined;
|
|
10
|
+
address2?: string | undefined;
|
|
11
|
+
city?: string | undefined;
|
|
12
|
+
country?: string | undefined;
|
|
13
|
+
countryCode?: string | undefined;
|
|
14
|
+
postalCode?: string | undefined;
|
|
15
|
+
region?: string | undefined;
|
|
16
|
+
regionCode?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const PropertyAccountingOrderShippingAddress$inboundSchema: z.ZodType<
|
|
21
|
+
PropertyAccountingOrderShippingAddress,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
address1: z.string().optional(),
|
|
26
|
+
address2: z.string().optional(),
|
|
27
|
+
city: z.string().optional(),
|
|
28
|
+
country: z.string().optional(),
|
|
29
|
+
country_code: z.string().optional(),
|
|
30
|
+
postal_code: z.string().optional(),
|
|
31
|
+
region: z.string().optional(),
|
|
32
|
+
region_code: z.string().optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"country_code": "countryCode",
|
|
36
|
+
"postal_code": "postalCode",
|
|
37
|
+
"region_code": "regionCode",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type PropertyAccountingOrderShippingAddress$Outbound = {
|
|
43
|
+
address1?: string | undefined;
|
|
44
|
+
address2?: string | undefined;
|
|
45
|
+
city?: string | undefined;
|
|
46
|
+
country?: string | undefined;
|
|
47
|
+
country_code?: string | undefined;
|
|
48
|
+
postal_code?: string | undefined;
|
|
49
|
+
region?: string | undefined;
|
|
50
|
+
region_code?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const PropertyAccountingOrderShippingAddress$outboundSchema: z.ZodType<
|
|
55
|
+
PropertyAccountingOrderShippingAddress$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
PropertyAccountingOrderShippingAddress
|
|
58
|
+
> = z.object({
|
|
59
|
+
address1: z.string().optional(),
|
|
60
|
+
address2: z.string().optional(),
|
|
61
|
+
city: z.string().optional(),
|
|
62
|
+
country: z.string().optional(),
|
|
63
|
+
countryCode: z.string().optional(),
|
|
64
|
+
postalCode: z.string().optional(),
|
|
65
|
+
region: z.string().optional(),
|
|
66
|
+
regionCode: z.string().optional(),
|
|
67
|
+
}).transform((v) => {
|
|
68
|
+
return remap$(v, {
|
|
69
|
+
countryCode: "country_code",
|
|
70
|
+
postalCode: "postal_code",
|
|
71
|
+
regionCode: "region_code",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export namespace PropertyAccountingOrderShippingAddress$ {
|
|
80
|
+
/** @deprecated use `PropertyAccountingOrderShippingAddress$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema =
|
|
82
|
+
PropertyAccountingOrderShippingAddress$inboundSchema;
|
|
83
|
+
/** @deprecated use `PropertyAccountingOrderShippingAddress$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema =
|
|
85
|
+
PropertyAccountingOrderShippingAddress$outboundSchema;
|
|
86
|
+
/** @deprecated use `PropertyAccountingOrderShippingAddress$Outbound` instead. */
|
|
87
|
+
export type Outbound = PropertyAccountingOrderShippingAddress$Outbound;
|
|
88
|
+
}
|
|
@@ -20,6 +20,8 @@ export const PropertyConnectionPermissions = {
|
|
|
20
20
|
AccountingTaxrateRead: "accounting_taxrate_read",
|
|
21
21
|
AccountingTaxrateWrite: "accounting_taxrate_write",
|
|
22
22
|
AccountingOrganizationRead: "accounting_organization_read",
|
|
23
|
+
AccountingOrderRead: "accounting_order_read",
|
|
24
|
+
AccountingOrderWrite: "accounting_order_write",
|
|
23
25
|
PaymentPaymentRead: "payment_payment_read",
|
|
24
26
|
PaymentPaymentWrite: "payment_payment_write",
|
|
25
27
|
PaymentPayoutRead: "payment_payout_read",
|
|
@@ -20,6 +20,7 @@ export type StorageFileType = ClosedEnum<typeof StorageFileType>;
|
|
|
20
20
|
|
|
21
21
|
export type StorageFile = {
|
|
22
22
|
createdAt?: Date | undefined;
|
|
23
|
+
data?: string | undefined;
|
|
23
24
|
description?: string | undefined;
|
|
24
25
|
downloadUrl?: string | undefined;
|
|
25
26
|
hash?: string | undefined;
|
|
@@ -64,6 +65,7 @@ export const StorageFile$inboundSchema: z.ZodType<
|
|
|
64
65
|
> = z.object({
|
|
65
66
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
66
67
|
.optional(),
|
|
68
|
+
data: z.string().optional(),
|
|
67
69
|
description: z.string().optional(),
|
|
68
70
|
download_url: z.string().optional(),
|
|
69
71
|
hash: z.string().optional(),
|
|
@@ -92,6 +94,7 @@ export const StorageFile$inboundSchema: z.ZodType<
|
|
|
92
94
|
/** @internal */
|
|
93
95
|
export type StorageFile$Outbound = {
|
|
94
96
|
created_at?: string | undefined;
|
|
97
|
+
data?: string | undefined;
|
|
95
98
|
description?: string | undefined;
|
|
96
99
|
download_url?: string | undefined;
|
|
97
100
|
hash?: string | undefined;
|
|
@@ -114,6 +117,7 @@ export const StorageFile$outboundSchema: z.ZodType<
|
|
|
114
117
|
StorageFile
|
|
115
118
|
> = z.object({
|
|
116
119
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
120
|
+
data: z.string().optional(),
|
|
117
121
|
description: z.string().optional(),
|
|
118
122
|
downloadUrl: z.string().optional(),
|
|
119
123
|
hash: z.string().optional(),
|
|
@@ -21,6 +21,7 @@ export const ObjectType = {
|
|
|
21
21
|
AccountingInvoice: "accounting_invoice",
|
|
22
22
|
AccountingTaxrate: "accounting_taxrate",
|
|
23
23
|
AccountingOrganization: "accounting_organization",
|
|
24
|
+
AccountingOrder: "accounting_order",
|
|
24
25
|
PaymentPayment: "payment_payment",
|
|
25
26
|
PaymentLink: "payment_link",
|
|
26
27
|
PaymentPayout: "payment_payout",
|
package/src/sdk/order.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { orderCreateAccountingOrder } from "../funcs/orderCreateAccountingOrder.js";
|
|
6
|
+
import { orderGetAccountingOrder } from "../funcs/orderGetAccountingOrder.js";
|
|
7
|
+
import { orderListAccountingOrders } from "../funcs/orderListAccountingOrders.js";
|
|
8
|
+
import { orderPatchAccountingOrder } from "../funcs/orderPatchAccountingOrder.js";
|
|
9
|
+
import { orderRemoveAccountingOrder } from "../funcs/orderRemoveAccountingOrder.js";
|
|
10
|
+
import { orderUpdateAccountingOrder } from "../funcs/orderUpdateAccountingOrder.js";
|
|
11
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import * as operations from "./models/operations/index.js";
|
|
13
|
+
import * as shared from "./models/shared/index.js";
|
|
14
|
+
import { unwrapAsync } from "./types/fp.js";
|
|
15
|
+
|
|
16
|
+
export class Order extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* Create an order
|
|
19
|
+
*/
|
|
20
|
+
async createAccountingOrder(
|
|
21
|
+
request: operations.CreateAccountingOrderRequest,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<shared.AccountingOrder> {
|
|
24
|
+
return unwrapAsync(orderCreateAccountingOrder(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve an order
|
|
33
|
+
*/
|
|
34
|
+
async getAccountingOrder(
|
|
35
|
+
request: operations.GetAccountingOrderRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): Promise<shared.AccountingOrder> {
|
|
38
|
+
return unwrapAsync(orderGetAccountingOrder(
|
|
39
|
+
this,
|
|
40
|
+
request,
|
|
41
|
+
options,
|
|
42
|
+
));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* List all orders
|
|
47
|
+
*/
|
|
48
|
+
async listAccountingOrders(
|
|
49
|
+
request: operations.ListAccountingOrdersRequest,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): Promise<Array<shared.AccountingOrder>> {
|
|
52
|
+
return unwrapAsync(orderListAccountingOrders(
|
|
53
|
+
this,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Update an order
|
|
61
|
+
*/
|
|
62
|
+
async patchAccountingOrder(
|
|
63
|
+
request: operations.PatchAccountingOrderRequest,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<shared.AccountingOrder> {
|
|
66
|
+
return unwrapAsync(orderPatchAccountingOrder(
|
|
67
|
+
this,
|
|
68
|
+
request,
|
|
69
|
+
options,
|
|
70
|
+
));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Remove an order
|
|
75
|
+
*/
|
|
76
|
+
async removeAccountingOrder(
|
|
77
|
+
request: operations.RemoveAccountingOrderRequest,
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): Promise<void> {
|
|
80
|
+
return unwrapAsync(orderRemoveAccountingOrder(
|
|
81
|
+
this,
|
|
82
|
+
request,
|
|
83
|
+
options,
|
|
84
|
+
));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Update an order
|
|
89
|
+
*/
|
|
90
|
+
async updateAccountingOrder(
|
|
91
|
+
request: operations.UpdateAccountingOrderRequest,
|
|
92
|
+
options?: RequestOptions,
|
|
93
|
+
): Promise<shared.AccountingOrder> {
|
|
94
|
+
return unwrapAsync(orderUpdateAccountingOrder(
|
|
95
|
+
this,
|
|
96
|
+
request,
|
|
97
|
+
options,
|
|
98
|
+
));
|
|
99
|
+
}
|
|
100
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -50,6 +50,7 @@ import { Message } from "./message.js";
|
|
|
50
50
|
import { Messaging } from "./messaging.js";
|
|
51
51
|
import { Model } from "./model.js";
|
|
52
52
|
import { Note } from "./note.js";
|
|
53
|
+
import { Order } from "./order.js";
|
|
53
54
|
import { Organization } from "./organization.js";
|
|
54
55
|
import { Page } from "./page.js";
|
|
55
56
|
import { Passthrough } from "./passthrough.js";
|
|
@@ -102,6 +103,11 @@ export class UnifiedTo extends ClientSDK {
|
|
|
102
103
|
return (this._journal ??= new Journal(this._options));
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
private _order?: Order;
|
|
107
|
+
get order(): Order {
|
|
108
|
+
return (this._order ??= new Order(this._options));
|
|
109
|
+
}
|
|
110
|
+
|
|
105
111
|
private _organization?: Organization;
|
|
106
112
|
get organization(): Organization {
|
|
107
113
|
return (this._organization ??= new Organization(this._options));
|