@spaceinvoices/js-sdk 14.3.0 → 14.5.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/expenses/expenses.d.cts +1 -1
- package/dist/generated/expenses/expenses.d.ts +1 -1
- package/dist/generated/model/index.d.cts +1 -0
- package/dist/generated/model/index.d.ts +1 -0
- package/dist/generated/model/movablePremise.d.cts +7 -0
- package/dist/generated/model/movablePremise.d.ts +7 -0
- package/dist/generated/model/movablePremisePremiseType.d.cts +16 -0
- package/dist/generated/model/movablePremisePremiseType.d.ts +16 -0
- package/dist/generated-zod/expenses/expenses.d.cts +1 -1
- package/dist/generated-zod/expenses/expenses.d.ts +1 -1
- package/dist/generated-zod/furs-premises/furs-premises.d.cts +20 -0
- package/dist/generated-zod/furs-premises/furs-premises.d.ts +20 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -885,7 +885,7 @@ export declare const updateExpense: (id: string, updateExpenseBody: UpdateExpens
|
|
|
885
885
|
/**
|
|
886
886
|
* Deletes an expense together with all of its attachments, including the source file of an OCR recognition. Draft expenses can always be deleted. Posted expenses (including voided ones) can be deleted only when they were entered manually (`creation_source=standard`) or created by OCR (`creation_source=ocr`) and did not come from a received e-invoice; expenses created through `/expenses/custom`, legacy-migrated expenses and expenses from received e-invoices can only be voided (422).
|
|
887
887
|
|
|
888
|
-
An expense with
|
|
888
|
+
The expense's payments are deleted with it, and each emits a `payment.deleted` event, exactly like deleting the payment on its own. An expense with credit-note settlements applied to it (or recorded by it) cannot be deleted (422): void it instead. While automatic recognition of the expense's document is still queued or processing, or has finished but its usage is not yet recorded, the request fails with 409 (try again shortly).
|
|
889
889
|
|
|
890
890
|
Deleting does not change usage: the expense still counts toward the document count of the billing period it was created in, and OCR pages that were scanned stay counted (their usage is kept in the metered usage ledger). Submitting the same document again creates a new expense and a new recognition that is counted again. Stock movements and accounting-recognition entries of the expense are removed.
|
|
891
891
|
* @summary Delete expense
|
|
@@ -885,7 +885,7 @@ export declare const updateExpense: (id: string, updateExpenseBody: UpdateExpens
|
|
|
885
885
|
/**
|
|
886
886
|
* Deletes an expense together with all of its attachments, including the source file of an OCR recognition. Draft expenses can always be deleted. Posted expenses (including voided ones) can be deleted only when they were entered manually (`creation_source=standard`) or created by OCR (`creation_source=ocr`) and did not come from a received e-invoice; expenses created through `/expenses/custom`, legacy-migrated expenses and expenses from received e-invoices can only be voided (422).
|
|
887
887
|
|
|
888
|
-
An expense with
|
|
888
|
+
The expense's payments are deleted with it, and each emits a `payment.deleted` event, exactly like deleting the payment on its own. An expense with credit-note settlements applied to it (or recorded by it) cannot be deleted (422): void it instead. While automatic recognition of the expense's document is still queued or processing, or has finished but its usage is not yet recorded, the request fails with 409 (try again shortly).
|
|
889
889
|
|
|
890
890
|
Deleting does not change usage: the expense still counts toward the document count of the billing period it was created in, and OCR pages that were scanned stay counted (their usage is kept in the metered usage ledger). Submitting the same document again creates a new expense and a new recognition that is counted again. Stock movements and accounting-recognition entries of the expense are removed.
|
|
891
891
|
* @summary Delete expense
|
|
@@ -1021,6 +1021,7 @@ export * from './migrationJobListResponse.cjs';
|
|
|
1021
1021
|
export * from './migrationJobResponse.cjs';
|
|
1022
1022
|
export * from './migrationJobResponseStatus.cjs';
|
|
1023
1023
|
export * from './movablePremise.cjs';
|
|
1024
|
+
export * from './movablePremisePremiseType.cjs';
|
|
1024
1025
|
export * from './navAnnulmentRequest.cjs';
|
|
1025
1026
|
export * from './navAnnulmentRequestAnnulmentCode.cjs';
|
|
1026
1027
|
export * from './navDocumentActionErrorBody.cjs';
|
|
@@ -1021,6 +1021,7 @@ export * from './migrationJobListResponse.js';
|
|
|
1021
1021
|
export * from './migrationJobResponse.js';
|
|
1022
1022
|
export * from './migrationJobResponseStatus.js';
|
|
1023
1023
|
export * from './movablePremise.js';
|
|
1024
|
+
export * from './movablePremisePremiseType.js';
|
|
1024
1025
|
export * from './navAnnulmentRequest.js';
|
|
1025
1026
|
export * from './navAnnulmentRequestAnnulmentCode.js';
|
|
1026
1027
|
export * from './navDocumentActionErrorBody.js';
|
|
@@ -5,6 +5,13 @@
|
|
|
5
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
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { MovablePremisePremiseType } from './movablePremisePremiseType.cjs';
|
|
8
9
|
export interface MovablePremise {
|
|
10
|
+
/** Type of movable premise: A=vehicle, B=market stall, C=vending machine */
|
|
11
|
+
premise_type?: MovablePremisePremiseType;
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated alias of premise_type, kept for older clients. Always equals premise_type.
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
9
16
|
type: string;
|
|
10
17
|
}
|
|
@@ -5,6 +5,13 @@
|
|
|
5
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
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
|
+
import type { MovablePremisePremiseType } from './movablePremisePremiseType.js';
|
|
8
9
|
export interface MovablePremise {
|
|
10
|
+
/** Type of movable premise: A=vehicle, B=market stall, C=vending machine */
|
|
11
|
+
premise_type?: MovablePremisePremiseType;
|
|
12
|
+
/**
|
|
13
|
+
* Deprecated alias of premise_type, kept for older clients. Always equals premise_type.
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
9
16
|
type: string;
|
|
10
17
|
}
|
|
@@ -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
|
+
* Type of movable premise: A=vehicle, B=market stall, C=vending machine
|
|
10
|
+
*/
|
|
11
|
+
export type MovablePremisePremiseType = typeof MovablePremisePremiseType[keyof typeof MovablePremisePremiseType];
|
|
12
|
+
export declare const MovablePremisePremiseType: {
|
|
13
|
+
readonly A: "A";
|
|
14
|
+
readonly B: "B";
|
|
15
|
+
readonly C: "C";
|
|
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
|
+
* Type of movable premise: A=vehicle, B=market stall, C=vending machine
|
|
10
|
+
*/
|
|
11
|
+
export type MovablePremisePremiseType = typeof MovablePremisePremiseType[keyof typeof MovablePremisePremiseType];
|
|
12
|
+
export declare const MovablePremisePremiseType: {
|
|
13
|
+
readonly A: "A";
|
|
14
|
+
readonly B: "B";
|
|
15
|
+
readonly C: "C";
|
|
16
|
+
};
|
|
@@ -2790,7 +2790,7 @@ export declare const UpdateExpenseResponse: zod.ZodObject<{
|
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Deletes an expense together with all of its attachments, including the source file of an OCR recognition. Draft expenses can always be deleted. Posted expenses (including voided ones) can be deleted only when they were entered manually (`creation_source=standard`) or created by OCR (`creation_source=ocr`) and did not come from a received e-invoice; expenses created through `/expenses/custom`, legacy-migrated expenses and expenses from received e-invoices can only be voided (422).
|
|
2792
2792
|
|
|
2793
|
-
An expense with
|
|
2793
|
+
The expense's payments are deleted with it, and each emits a `payment.deleted` event, exactly like deleting the payment on its own. An expense with credit-note settlements applied to it (or recorded by it) cannot be deleted (422): void it instead. While automatic recognition of the expense's document is still queued or processing, or has finished but its usage is not yet recorded, the request fails with 409 (try again shortly).
|
|
2794
2794
|
|
|
2795
2795
|
Deleting does not change usage: the expense still counts toward the document count of the billing period it was created in, and OCR pages that were scanned stay counted (their usage is kept in the metered usage ledger). Submitting the same document again creates a new expense and a new recognition that is counted again. Stock movements and accounting-recognition entries of the expense are removed.
|
|
2796
2796
|
* @summary Delete expense
|
|
@@ -2790,7 +2790,7 @@ export declare const UpdateExpenseResponse: zod.ZodObject<{
|
|
|
2790
2790
|
/**
|
|
2791
2791
|
* Deletes an expense together with all of its attachments, including the source file of an OCR recognition. Draft expenses can always be deleted. Posted expenses (including voided ones) can be deleted only when they were entered manually (`creation_source=standard`) or created by OCR (`creation_source=ocr`) and did not come from a received e-invoice; expenses created through `/expenses/custom`, legacy-migrated expenses and expenses from received e-invoices can only be voided (422).
|
|
2792
2792
|
|
|
2793
|
-
An expense with
|
|
2793
|
+
The expense's payments are deleted with it, and each emits a `payment.deleted` event, exactly like deleting the payment on its own. An expense with credit-note settlements applied to it (or recorded by it) cannot be deleted (422): void it instead. While automatic recognition of the expense's document is still queued or processing, or has finished but its usage is not yet recorded, the request fails with 409 (try again shortly).
|
|
2794
2794
|
|
|
2795
2795
|
Deleting does not change usage: the expense still counts toward the document count of the billing period it was created in, and OCR pages that were scanned stay counted (their usage is kept in the metered usage ledger). Submitting the same document again creates a new expense and a new recognition that is counted again. Stock movements and accounting-recognition entries of the expense are removed.
|
|
2796
2796
|
* @summary Delete expense
|
|
@@ -30,6 +30,11 @@ export declare const ListFursBusinessPremisesResponseItem: zod.ZodObject<{
|
|
|
30
30
|
postal_code: zod.ZodNullable<zod.ZodString>;
|
|
31
31
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
32
32
|
movable_premise: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
33
|
+
premise_type: zod.ZodOptional<zod.ZodEnum<{
|
|
34
|
+
B: "B";
|
|
35
|
+
C: "C";
|
|
36
|
+
A: "A";
|
|
37
|
+
}>>;
|
|
33
38
|
type: zod.ZodString;
|
|
34
39
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
35
40
|
is_active: zod.ZodBoolean;
|
|
@@ -67,6 +72,11 @@ export declare const ListFursBusinessPremisesResponse: zod.ZodArray<zod.ZodObjec
|
|
|
67
72
|
postal_code: zod.ZodNullable<zod.ZodString>;
|
|
68
73
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
69
74
|
movable_premise: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
75
|
+
premise_type: zod.ZodOptional<zod.ZodEnum<{
|
|
76
|
+
B: "B";
|
|
77
|
+
C: "C";
|
|
78
|
+
A: "A";
|
|
79
|
+
}>>;
|
|
70
80
|
type: zod.ZodString;
|
|
71
81
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
72
82
|
is_active: zod.ZodBoolean;
|
|
@@ -114,6 +124,11 @@ export declare const GetFursBusinessPremiseResponse: zod.ZodObject<{
|
|
|
114
124
|
postal_code: zod.ZodNullable<zod.ZodString>;
|
|
115
125
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
116
126
|
movable_premise: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
127
|
+
premise_type: zod.ZodOptional<zod.ZodEnum<{
|
|
128
|
+
B: "B";
|
|
129
|
+
C: "C";
|
|
130
|
+
A: "A";
|
|
131
|
+
}>>;
|
|
117
132
|
type: zod.ZodString;
|
|
118
133
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
119
134
|
is_active: zod.ZodBoolean;
|
|
@@ -165,6 +180,11 @@ export declare const UpdateFursBusinessPremiseResponse: zod.ZodObject<{
|
|
|
165
180
|
postal_code: zod.ZodNullable<zod.ZodString>;
|
|
166
181
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
167
182
|
movable_premise: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
183
|
+
premise_type: zod.ZodOptional<zod.ZodEnum<{
|
|
184
|
+
B: "B";
|
|
185
|
+
C: "C";
|
|
186
|
+
A: "A";
|
|
187
|
+
}>>;
|
|
168
188
|
type: zod.ZodString;
|
|
169
189
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
170
190
|
is_active: zod.ZodBoolean;
|
|
@@ -30,6 +30,11 @@ export declare const ListFursBusinessPremisesResponseItem: zod.ZodObject<{
|
|
|
30
30
|
postal_code: zod.ZodNullable<zod.ZodString>;
|
|
31
31
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
32
32
|
movable_premise: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
33
|
+
premise_type: zod.ZodOptional<zod.ZodEnum<{
|
|
34
|
+
B: "B";
|
|
35
|
+
C: "C";
|
|
36
|
+
A: "A";
|
|
37
|
+
}>>;
|
|
33
38
|
type: zod.ZodString;
|
|
34
39
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
35
40
|
is_active: zod.ZodBoolean;
|
|
@@ -67,6 +72,11 @@ export declare const ListFursBusinessPremisesResponse: zod.ZodArray<zod.ZodObjec
|
|
|
67
72
|
postal_code: zod.ZodNullable<zod.ZodString>;
|
|
68
73
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
69
74
|
movable_premise: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
75
|
+
premise_type: zod.ZodOptional<zod.ZodEnum<{
|
|
76
|
+
B: "B";
|
|
77
|
+
C: "C";
|
|
78
|
+
A: "A";
|
|
79
|
+
}>>;
|
|
70
80
|
type: zod.ZodString;
|
|
71
81
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
72
82
|
is_active: zod.ZodBoolean;
|
|
@@ -114,6 +124,11 @@ export declare const GetFursBusinessPremiseResponse: zod.ZodObject<{
|
|
|
114
124
|
postal_code: zod.ZodNullable<zod.ZodString>;
|
|
115
125
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
116
126
|
movable_premise: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
127
|
+
premise_type: zod.ZodOptional<zod.ZodEnum<{
|
|
128
|
+
B: "B";
|
|
129
|
+
C: "C";
|
|
130
|
+
A: "A";
|
|
131
|
+
}>>;
|
|
117
132
|
type: zod.ZodString;
|
|
118
133
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
119
134
|
is_active: zod.ZodBoolean;
|
|
@@ -165,6 +180,11 @@ export declare const UpdateFursBusinessPremiseResponse: zod.ZodObject<{
|
|
|
165
180
|
postal_code: zod.ZodNullable<zod.ZodString>;
|
|
166
181
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
167
182
|
movable_premise: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
183
|
+
premise_type: zod.ZodOptional<zod.ZodEnum<{
|
|
184
|
+
B: "B";
|
|
185
|
+
C: "C";
|
|
186
|
+
A: "A";
|
|
187
|
+
}>>;
|
|
168
188
|
type: zod.ZodString;
|
|
169
189
|
}, zod.z.core.$strip>, zod.ZodNull]>;
|
|
170
190
|
is_active: zod.ZodBoolean;
|