@spaceinvoices/js-sdk 14.18.0 → 14.19.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/dist/generated/model/index.d.cts +2 -0
- package/dist/generated/model/index.d.ts +2 -0
- package/dist/generated/model/orderIntegrationBase.d.cts +3 -0
- package/dist/generated/model/orderIntegrationBase.d.ts +3 -0
- package/dist/generated/model/orderIntegrationBaseDocumentCurrency.d.cts +15 -0
- package/dist/generated/model/orderIntegrationBaseDocumentCurrency.d.ts +15 -0
- package/dist/generated/model/updateOrderIntegrationBody.d.cts +6 -0
- package/dist/generated/model/updateOrderIntegrationBody.d.ts +6 -0
- package/dist/generated/model/updateOrderIntegrationBodyDocumentCurrency.d.cts +16 -0
- package/dist/generated/model/updateOrderIntegrationBodyDocumentCurrency.d.ts +16 -0
- package/dist/generated-zod/order-integrations/order-integrations.d.cts +13 -0
- package/dist/generated-zod/order-integrations/order-integrations.d.ts +13 -0
- package/dist/index.cjs +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1150,6 +1150,7 @@ export * from './orderCustomer.cjs';
|
|
|
1150
1150
|
export * from './orderIntegration.cjs';
|
|
1151
1151
|
export * from './orderIntegrationBase.cjs';
|
|
1152
1152
|
export * from './orderIntegrationBaseAutoProcessOn.cjs';
|
|
1153
|
+
export * from './orderIntegrationBaseDocumentCurrency.cjs';
|
|
1153
1154
|
export * from './orderIntegrationBaseMetadata.cjs';
|
|
1154
1155
|
export * from './orderIntegrationBaseSource.cjs';
|
|
1155
1156
|
export * from './orderItem.cjs';
|
|
@@ -1824,6 +1825,7 @@ export * from './updateOrderBodyMetadata.cjs';
|
|
|
1824
1825
|
export * from './updateOrderBodyPaymentStatus.cjs';
|
|
1825
1826
|
export * from './updateOrderIntegrationBody.cjs';
|
|
1826
1827
|
export * from './updateOrderIntegrationBodyAutoProcessOn.cjs';
|
|
1828
|
+
export * from './updateOrderIntegrationBodyDocumentCurrency.cjs';
|
|
1827
1829
|
export * from './updateOrderIntegrationBodyMetadata.cjs';
|
|
1828
1830
|
export * from './updatePaymentBody.cjs';
|
|
1829
1831
|
export * from './updatePaymentBodyMetadata.cjs';
|
|
@@ -1150,6 +1150,7 @@ export * from './orderCustomer.js';
|
|
|
1150
1150
|
export * from './orderIntegration.js';
|
|
1151
1151
|
export * from './orderIntegrationBase.js';
|
|
1152
1152
|
export * from './orderIntegrationBaseAutoProcessOn.js';
|
|
1153
|
+
export * from './orderIntegrationBaseDocumentCurrency.js';
|
|
1153
1154
|
export * from './orderIntegrationBaseMetadata.js';
|
|
1154
1155
|
export * from './orderIntegrationBaseSource.js';
|
|
1155
1156
|
export * from './orderItem.js';
|
|
@@ -1824,6 +1825,7 @@ export * from './updateOrderBodyMetadata.js';
|
|
|
1824
1825
|
export * from './updateOrderBodyPaymentStatus.js';
|
|
1825
1826
|
export * from './updateOrderIntegrationBody.js';
|
|
1826
1827
|
export * from './updateOrderIntegrationBodyAutoProcessOn.js';
|
|
1828
|
+
export * from './updateOrderIntegrationBodyDocumentCurrency.js';
|
|
1827
1829
|
export * from './updateOrderIntegrationBodyMetadata.js';
|
|
1828
1830
|
export * from './updatePaymentBody.js';
|
|
1829
1831
|
export * from './updatePaymentBodyMetadata.js';
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { OrderIntegrationBaseAutoProcessOn } from './orderIntegrationBaseAutoProcessOn.cjs';
|
|
9
|
+
import type { OrderIntegrationBaseDocumentCurrency } from './orderIntegrationBaseDocumentCurrency.cjs';
|
|
9
10
|
import type { OrderIntegrationBaseMetadata } from './orderIntegrationBaseMetadata.cjs';
|
|
10
11
|
import type { OrderIntegrationBaseSource } from './orderIntegrationBaseSource.cjs';
|
|
11
12
|
/**
|
|
@@ -48,6 +49,8 @@ export interface OrderIntegrationBase {
|
|
|
48
49
|
send_estimate_email: boolean;
|
|
49
50
|
attach_pdf_to_email: boolean;
|
|
50
51
|
issue_invoice_for_bank: boolean;
|
|
52
|
+
/** Currency for documents created from Shopify orders: `store` uses the shop's base currency; `checkout` uses the currency the buyer paid in (Shopify presentment currency). Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. */
|
|
53
|
+
document_currency?: OrderIntegrationBaseDocumentCurrency;
|
|
51
54
|
issue_invoice_on_complete: boolean;
|
|
52
55
|
/**
|
|
53
56
|
* @minimum -2147483648
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { OrderIntegrationBaseAutoProcessOn } from './orderIntegrationBaseAutoProcessOn.js';
|
|
9
|
+
import type { OrderIntegrationBaseDocumentCurrency } from './orderIntegrationBaseDocumentCurrency.js';
|
|
9
10
|
import type { OrderIntegrationBaseMetadata } from './orderIntegrationBaseMetadata.js';
|
|
10
11
|
import type { OrderIntegrationBaseSource } from './orderIntegrationBaseSource.js';
|
|
11
12
|
/**
|
|
@@ -48,6 +49,8 @@ export interface OrderIntegrationBase {
|
|
|
48
49
|
send_estimate_email: boolean;
|
|
49
50
|
attach_pdf_to_email: boolean;
|
|
50
51
|
issue_invoice_for_bank: boolean;
|
|
52
|
+
/** Currency for documents created from Shopify orders: `store` uses the shop's base currency; `checkout` uses the currency the buyer paid in (Shopify presentment currency). Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. */
|
|
53
|
+
document_currency?: OrderIntegrationBaseDocumentCurrency;
|
|
51
54
|
issue_invoice_on_complete: boolean;
|
|
52
55
|
/**
|
|
53
56
|
* @minimum -2147483648
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Currency for documents created from Shopify orders: `store` uses the shop's base currency; `checkout` uses the currency the buyer paid in (Shopify presentment currency). Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting.
|
|
10
|
+
*/
|
|
11
|
+
export type OrderIntegrationBaseDocumentCurrency = typeof OrderIntegrationBaseDocumentCurrency[keyof typeof OrderIntegrationBaseDocumentCurrency];
|
|
12
|
+
export declare const OrderIntegrationBaseDocumentCurrency: {
|
|
13
|
+
readonly store: "store";
|
|
14
|
+
readonly checkout: "checkout";
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Currency for documents created from Shopify orders: `store` uses the shop's base currency; `checkout` uses the currency the buyer paid in (Shopify presentment currency). Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting.
|
|
10
|
+
*/
|
|
11
|
+
export type OrderIntegrationBaseDocumentCurrency = typeof OrderIntegrationBaseDocumentCurrency[keyof typeof OrderIntegrationBaseDocumentCurrency];
|
|
12
|
+
export declare const OrderIntegrationBaseDocumentCurrency: {
|
|
13
|
+
readonly store: "store";
|
|
14
|
+
readonly checkout: "checkout";
|
|
15
|
+
};
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { UpdateOrderIntegrationBodyAutoProcessOn } from './updateOrderIntegrationBodyAutoProcessOn.cjs';
|
|
9
|
+
import type { UpdateOrderIntegrationBodyDocumentCurrency } from './updateOrderIntegrationBodyDocumentCurrency.cjs';
|
|
9
10
|
import type { UpdateOrderIntegrationBodyMetadata } from './updateOrderIntegrationBodyMetadata.cjs';
|
|
10
11
|
export type UpdateOrderIntegrationBody = {
|
|
11
12
|
/** @minLength 1 */
|
|
@@ -53,4 +54,9 @@ export type UpdateOrderIntegrationBody = {
|
|
|
53
54
|
issue_invoice_on_complete?: boolean;
|
|
54
55
|
/** @minimum 0 */
|
|
55
56
|
auto_process_delay_seconds?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Currency for documents created from Shopify orders: `store` uses the shop's base currency; `checkout` uses the currency the buyer paid in (Shopify presentment currency). Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. Null leaves the setting unchanged.
|
|
59
|
+
* @nullable
|
|
60
|
+
*/
|
|
61
|
+
document_currency?: UpdateOrderIntegrationBodyDocumentCurrency;
|
|
56
62
|
};
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { UpdateOrderIntegrationBodyAutoProcessOn } from './updateOrderIntegrationBodyAutoProcessOn.js';
|
|
9
|
+
import type { UpdateOrderIntegrationBodyDocumentCurrency } from './updateOrderIntegrationBodyDocumentCurrency.js';
|
|
9
10
|
import type { UpdateOrderIntegrationBodyMetadata } from './updateOrderIntegrationBodyMetadata.js';
|
|
10
11
|
export type UpdateOrderIntegrationBody = {
|
|
11
12
|
/** @minLength 1 */
|
|
@@ -53,4 +54,9 @@ export type UpdateOrderIntegrationBody = {
|
|
|
53
54
|
issue_invoice_on_complete?: boolean;
|
|
54
55
|
/** @minimum 0 */
|
|
55
56
|
auto_process_delay_seconds?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Currency for documents created from Shopify orders: `store` uses the shop's base currency; `checkout` uses the currency the buyer paid in (Shopify presentment currency). Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. Null leaves the setting unchanged.
|
|
59
|
+
* @nullable
|
|
60
|
+
*/
|
|
61
|
+
document_currency?: UpdateOrderIntegrationBodyDocumentCurrency;
|
|
56
62
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Currency for documents created from Shopify orders: `store` uses the shop's base currency; `checkout` uses the currency the buyer paid in (Shopify presentment currency). Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. Null leaves the setting unchanged.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type UpdateOrderIntegrationBodyDocumentCurrency = typeof UpdateOrderIntegrationBodyDocumentCurrency[keyof typeof UpdateOrderIntegrationBodyDocumentCurrency] | null;
|
|
13
|
+
export declare const UpdateOrderIntegrationBodyDocumentCurrency: {
|
|
14
|
+
readonly store: "store";
|
|
15
|
+
readonly checkout: "checkout";
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Space Invoices API
|
|
5
|
+
* REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Currency for documents created from Shopify orders: `store` uses the shop's base currency; `checkout` uses the currency the buyer paid in (Shopify presentment currency). Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. Null leaves the setting unchanged.
|
|
10
|
+
* @nullable
|
|
11
|
+
*/
|
|
12
|
+
export type UpdateOrderIntegrationBodyDocumentCurrency = typeof UpdateOrderIntegrationBodyDocumentCurrency[keyof typeof UpdateOrderIntegrationBodyDocumentCurrency] | null;
|
|
13
|
+
export declare const UpdateOrderIntegrationBodyDocumentCurrency: {
|
|
14
|
+
readonly store: "store";
|
|
15
|
+
readonly checkout: "checkout";
|
|
16
|
+
};
|
|
@@ -483,6 +483,10 @@ export declare const GetOrderIntegrationsResponse: zod.ZodObject<{
|
|
|
483
483
|
send_estimate_email: zod.ZodBoolean;
|
|
484
484
|
attach_pdf_to_email: zod.ZodBoolean;
|
|
485
485
|
issue_invoice_for_bank: zod.ZodBoolean;
|
|
486
|
+
document_currency: zod.ZodOptional<zod.ZodEnum<{
|
|
487
|
+
store: "store";
|
|
488
|
+
checkout: "checkout";
|
|
489
|
+
}>>;
|
|
486
490
|
issue_invoice_on_complete: zod.ZodBoolean;
|
|
487
491
|
auto_process_delay_seconds: zod.ZodNumber;
|
|
488
492
|
auto_reissue_on_update: zod.ZodBoolean;
|
|
@@ -553,6 +557,10 @@ export declare const GetOrderIntegrationByIdResponse: zod.ZodIntersection<zod.Zo
|
|
|
553
557
|
send_estimate_email: zod.ZodBoolean;
|
|
554
558
|
attach_pdf_to_email: zod.ZodBoolean;
|
|
555
559
|
issue_invoice_for_bank: zod.ZodBoolean;
|
|
560
|
+
document_currency: zod.ZodOptional<zod.ZodEnum<{
|
|
561
|
+
store: "store";
|
|
562
|
+
checkout: "checkout";
|
|
563
|
+
}>>;
|
|
556
564
|
issue_invoice_on_complete: zod.ZodBoolean;
|
|
557
565
|
auto_process_delay_seconds: zod.ZodNumber;
|
|
558
566
|
auto_reissue_on_update: zod.ZodBoolean;
|
|
@@ -605,6 +613,7 @@ export declare const UpdateOrderIntegrationBody: zod.ZodObject<{
|
|
|
605
613
|
issue_invoice_for_bank: zod.ZodOptional<zod.ZodBoolean>;
|
|
606
614
|
issue_invoice_on_complete: zod.ZodOptional<zod.ZodBoolean>;
|
|
607
615
|
auto_process_delay_seconds: zod.ZodOptional<zod.ZodNumber>;
|
|
616
|
+
document_currency: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"store">, zod.ZodLiteral<"checkout">, zod.ZodLiteral<null>]>>>;
|
|
608
617
|
}, zod.z.core.$strip>;
|
|
609
618
|
export declare const updateOrderIntegrationResponseOneIdMax = 36;
|
|
610
619
|
export declare const updateOrderIntegrationResponseOneEntityIdMax = 36;
|
|
@@ -645,6 +654,10 @@ export declare const UpdateOrderIntegrationResponse: zod.ZodIntersection<zod.Zod
|
|
|
645
654
|
send_estimate_email: zod.ZodBoolean;
|
|
646
655
|
attach_pdf_to_email: zod.ZodBoolean;
|
|
647
656
|
issue_invoice_for_bank: zod.ZodBoolean;
|
|
657
|
+
document_currency: zod.ZodOptional<zod.ZodEnum<{
|
|
658
|
+
store: "store";
|
|
659
|
+
checkout: "checkout";
|
|
660
|
+
}>>;
|
|
648
661
|
issue_invoice_on_complete: zod.ZodBoolean;
|
|
649
662
|
auto_process_delay_seconds: zod.ZodNumber;
|
|
650
663
|
auto_reissue_on_update: zod.ZodBoolean;
|
|
@@ -483,6 +483,10 @@ export declare const GetOrderIntegrationsResponse: zod.ZodObject<{
|
|
|
483
483
|
send_estimate_email: zod.ZodBoolean;
|
|
484
484
|
attach_pdf_to_email: zod.ZodBoolean;
|
|
485
485
|
issue_invoice_for_bank: zod.ZodBoolean;
|
|
486
|
+
document_currency: zod.ZodOptional<zod.ZodEnum<{
|
|
487
|
+
store: "store";
|
|
488
|
+
checkout: "checkout";
|
|
489
|
+
}>>;
|
|
486
490
|
issue_invoice_on_complete: zod.ZodBoolean;
|
|
487
491
|
auto_process_delay_seconds: zod.ZodNumber;
|
|
488
492
|
auto_reissue_on_update: zod.ZodBoolean;
|
|
@@ -553,6 +557,10 @@ export declare const GetOrderIntegrationByIdResponse: zod.ZodIntersection<zod.Zo
|
|
|
553
557
|
send_estimate_email: zod.ZodBoolean;
|
|
554
558
|
attach_pdf_to_email: zod.ZodBoolean;
|
|
555
559
|
issue_invoice_for_bank: zod.ZodBoolean;
|
|
560
|
+
document_currency: zod.ZodOptional<zod.ZodEnum<{
|
|
561
|
+
store: "store";
|
|
562
|
+
checkout: "checkout";
|
|
563
|
+
}>>;
|
|
556
564
|
issue_invoice_on_complete: zod.ZodBoolean;
|
|
557
565
|
auto_process_delay_seconds: zod.ZodNumber;
|
|
558
566
|
auto_reissue_on_update: zod.ZodBoolean;
|
|
@@ -605,6 +613,7 @@ export declare const UpdateOrderIntegrationBody: zod.ZodObject<{
|
|
|
605
613
|
issue_invoice_for_bank: zod.ZodOptional<zod.ZodBoolean>;
|
|
606
614
|
issue_invoice_on_complete: zod.ZodOptional<zod.ZodBoolean>;
|
|
607
615
|
auto_process_delay_seconds: zod.ZodOptional<zod.ZodNumber>;
|
|
616
|
+
document_currency: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<readonly [zod.ZodLiteral<"store">, zod.ZodLiteral<"checkout">, zod.ZodLiteral<null>]>>>;
|
|
608
617
|
}, zod.z.core.$strip>;
|
|
609
618
|
export declare const updateOrderIntegrationResponseOneIdMax = 36;
|
|
610
619
|
export declare const updateOrderIntegrationResponseOneEntityIdMax = 36;
|
|
@@ -645,6 +654,10 @@ export declare const UpdateOrderIntegrationResponse: zod.ZodIntersection<zod.Zod
|
|
|
645
654
|
send_estimate_email: zod.ZodBoolean;
|
|
646
655
|
attach_pdf_to_email: zod.ZodBoolean;
|
|
647
656
|
issue_invoice_for_bank: zod.ZodBoolean;
|
|
657
|
+
document_currency: zod.ZodOptional<zod.ZodEnum<{
|
|
658
|
+
store: "store";
|
|
659
|
+
checkout: "checkout";
|
|
660
|
+
}>>;
|
|
648
661
|
issue_invoice_on_complete: zod.ZodBoolean;
|
|
649
662
|
auto_process_delay_seconds: zod.ZodNumber;
|
|
650
663
|
auto_reissue_on_update: zod.ZodBoolean;
|