@spaceinvoices/js-sdk 10.1.2 → 10.1.4
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/activities/activities.d.cts +1 -1
- package/dist/generated/activities/activities.d.ts +1 -1
- package/dist/generated/model/companyRegistryResult.d.cts +12 -1
- package/dist/generated/model/companyRegistryResult.d.ts +12 -1
- package/dist/generated/model/companyRegistryResultSettings.d.cts +14 -0
- package/dist/generated/model/companyRegistryResultSettings.d.ts +14 -0
- package/dist/generated/model/companyRegistryResultSettingsSlovenia.d.cts +12 -0
- package/dist/generated/model/companyRegistryResultSettingsSlovenia.d.ts +12 -0
- package/dist/generated/model/companyRegistryResultSettingsSloveniaVatProfile.d.cts +16 -0
- package/dist/generated/model/companyRegistryResultSettingsSloveniaVatProfile.d.ts +16 -0
- package/dist/generated/model/getActivitiesParams.d.cts +4 -0
- package/dist/generated/model/getActivitiesParams.d.ts +4 -0
- package/dist/generated/model/index.d.cts +3 -0
- package/dist/generated/model/index.d.ts +3 -0
- package/dist/generated-zod/activities/activities.d.cts +2 -1
- package/dist/generated-zod/activities/activities.d.ts +2 -1
- package/dist/generated-zod/company-registry/company-registry.d.cts +10 -0
- package/dist/generated-zod/company-registry/company-registry.d.ts +10 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Error, GetActivities200, GetActivitiesParams } from '../model/index.cjs';
|
|
9
9
|
/**
|
|
10
|
-
* Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Activities are ordered by
|
|
10
|
+
* Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Set include_related_payments=true with resource_id to include historical Payment events linked through invoice_id, credit_note_id, or advance_invoice_id. Other filters still apply. Omitted, null, or false retains exact resource filtering; without resource_id the flag has no effect. Activities are ordered by ID descending by default.
|
|
11
11
|
* @summary List activities
|
|
12
12
|
*/
|
|
13
13
|
export type getActivitiesResponse200 = {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { Error, GetActivities200, GetActivitiesParams } from '../model/index.js';
|
|
9
9
|
/**
|
|
10
|
-
* Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Activities are ordered by
|
|
10
|
+
* Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Set include_related_payments=true with resource_id to include historical Payment events linked through invoice_id, credit_note_id, or advance_invoice_id. Other filters still apply. Omitted, null, or false retains exact resource filtering; without resource_id the flag has no effect. Activities are ordered by ID descending by default.
|
|
11
11
|
* @summary List activities
|
|
12
12
|
*/
|
|
13
13
|
export type getActivitiesResponse200 = {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CompanyBankAccount } from './companyBankAccount.cjs';
|
|
9
|
+
import type { CompanyRegistryResultSettings } from './companyRegistryResultSettings.cjs';
|
|
9
10
|
/**
|
|
10
11
|
* Company from public registry for autocomplete
|
|
11
12
|
*/
|
|
@@ -17,8 +18,18 @@ export interface CompanyRegistryResult {
|
|
|
17
18
|
*/
|
|
18
19
|
country_code: string;
|
|
19
20
|
registration_number: string;
|
|
20
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* VAT identification number when available, otherwise the business tax number
|
|
23
|
+
* @nullable
|
|
24
|
+
*/
|
|
21
25
|
tax_number: string | null;
|
|
26
|
+
/** Entity settings suggested by registry evidence; omitted when no supported VAT profile is known */
|
|
27
|
+
settings?: CompanyRegistryResultSettings;
|
|
28
|
+
/**
|
|
29
|
+
* Autofill suggestion for ordinary domestic tax charging: true for regular registration, false for non-registration or limited registration; null for unknown or special/group cases requiring review
|
|
30
|
+
* @nullable
|
|
31
|
+
*/
|
|
32
|
+
is_tax_subject?: boolean | null;
|
|
22
33
|
name: string;
|
|
23
34
|
/** @nullable */
|
|
24
35
|
address: string | null;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: 1.0.0
|
|
7
7
|
*/
|
|
8
8
|
import type { CompanyBankAccount } from './companyBankAccount.js';
|
|
9
|
+
import type { CompanyRegistryResultSettings } from './companyRegistryResultSettings.js';
|
|
9
10
|
/**
|
|
10
11
|
* Company from public registry for autocomplete
|
|
11
12
|
*/
|
|
@@ -17,8 +18,18 @@ export interface CompanyRegistryResult {
|
|
|
17
18
|
*/
|
|
18
19
|
country_code: string;
|
|
19
20
|
registration_number: string;
|
|
20
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* VAT identification number when available, otherwise the business tax number
|
|
23
|
+
* @nullable
|
|
24
|
+
*/
|
|
21
25
|
tax_number: string | null;
|
|
26
|
+
/** Entity settings suggested by registry evidence; omitted when no supported VAT profile is known */
|
|
27
|
+
settings?: CompanyRegistryResultSettings;
|
|
28
|
+
/**
|
|
29
|
+
* Autofill suggestion for ordinary domestic tax charging: true for regular registration, false for non-registration or limited registration; null for unknown or special/group cases requiring review
|
|
30
|
+
* @nullable
|
|
31
|
+
*/
|
|
32
|
+
is_tax_subject?: boolean | null;
|
|
22
33
|
name: string;
|
|
23
34
|
/** @nullable */
|
|
24
35
|
address: string | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
import type { CompanyRegistryResultSettingsSlovenia } from './companyRegistryResultSettingsSlovenia.cjs';
|
|
9
|
+
/**
|
|
10
|
+
* Entity settings suggested by registry evidence; omitted when no supported VAT profile is known
|
|
11
|
+
*/
|
|
12
|
+
export type CompanyRegistryResultSettings = {
|
|
13
|
+
slovenia: CompanyRegistryResultSettingsSlovenia;
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
import type { CompanyRegistryResultSettingsSlovenia } from './companyRegistryResultSettingsSlovenia.js';
|
|
9
|
+
/**
|
|
10
|
+
* Entity settings suggested by registry evidence; omitted when no supported VAT profile is known
|
|
11
|
+
*/
|
|
12
|
+
export type CompanyRegistryResultSettings = {
|
|
13
|
+
slovenia: CompanyRegistryResultSettingsSlovenia;
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import type { CompanyRegistryResultSettingsSloveniaVatProfile } from './companyRegistryResultSettingsSloveniaVatProfile.cjs';
|
|
9
|
+
export type CompanyRegistryResultSettingsSlovenia = {
|
|
10
|
+
/** Slovenia-specific VAT subject subtype. */
|
|
11
|
+
vat_profile: CompanyRegistryResultSettingsSloveniaVatProfile;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import type { CompanyRegistryResultSettingsSloveniaVatProfile } from './companyRegistryResultSettingsSloveniaVatProfile.js';
|
|
9
|
+
export type CompanyRegistryResultSettingsSlovenia = {
|
|
10
|
+
/** Slovenia-specific VAT subject subtype. */
|
|
11
|
+
vat_profile: CompanyRegistryResultSettingsSloveniaVatProfile;
|
|
12
|
+
};
|
|
@@ -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
|
+
* Slovenia-specific VAT subject subtype.
|
|
10
|
+
*/
|
|
11
|
+
export type CompanyRegistryResultSettingsSloveniaVatProfile = typeof CompanyRegistryResultSettingsSloveniaVatProfile[keyof typeof CompanyRegistryResultSettingsSloveniaVatProfile];
|
|
12
|
+
export declare const CompanyRegistryResultSettingsSloveniaVatProfile: {
|
|
13
|
+
readonly standard: "standard";
|
|
14
|
+
readonly special_vat_identified: "special_vat_identified";
|
|
15
|
+
readonly non_vat_subject: "non_vat_subject";
|
|
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
|
+
* Slovenia-specific VAT subject subtype.
|
|
10
|
+
*/
|
|
11
|
+
export type CompanyRegistryResultSettingsSloveniaVatProfile = typeof CompanyRegistryResultSettingsSloveniaVatProfile[keyof typeof CompanyRegistryResultSettingsSloveniaVatProfile];
|
|
12
|
+
export declare const CompanyRegistryResultSettingsSloveniaVatProfile: {
|
|
13
|
+
readonly standard: "standard";
|
|
14
|
+
readonly special_vat_identified: "special_vat_identified";
|
|
15
|
+
readonly non_vat_subject: "non_vat_subject";
|
|
16
|
+
};
|
|
@@ -64,6 +64,10 @@ export type GetActivitiesParams = {
|
|
|
64
64
|
* Filter by specific resource ID
|
|
65
65
|
*/
|
|
66
66
|
resource_id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Include Payment activities linked to resource_id within the current entity. Other filters still apply. Defaults to false; has no effect without resource_id.
|
|
69
|
+
*/
|
|
70
|
+
include_related_payments?: boolean;
|
|
67
71
|
/**
|
|
68
72
|
* Filter by action type (e.g., created, updated, deleted, sent)
|
|
69
73
|
*/
|
|
@@ -64,6 +64,10 @@ export type GetActivitiesParams = {
|
|
|
64
64
|
* Filter by specific resource ID
|
|
65
65
|
*/
|
|
66
66
|
resource_id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Include Payment activities linked to resource_id within the current entity. Other filters still apply. Defaults to false; has no effect without resource_id.
|
|
69
|
+
*/
|
|
70
|
+
include_related_payments?: boolean;
|
|
67
71
|
/**
|
|
68
72
|
* Filter by action type (e.g., created, updated, deleted, sent)
|
|
69
73
|
*/
|
|
@@ -72,6 +72,9 @@ export * from './claimPosTabBody.cjs';
|
|
|
72
72
|
export * from './closePosTabBody.cjs';
|
|
73
73
|
export * from './companyBankAccount.cjs';
|
|
74
74
|
export * from './companyRegistryResult.cjs';
|
|
75
|
+
export * from './companyRegistryResultSettings.cjs';
|
|
76
|
+
export * from './companyRegistryResultSettingsSlovenia.cjs';
|
|
77
|
+
export * from './companyRegistryResultSettingsSloveniaVatProfile.cjs';
|
|
75
78
|
export * from './companyRegistrySearchResponse.cjs';
|
|
76
79
|
export * from './completeAdvanceInvoicePreview.cjs';
|
|
77
80
|
export * from './completeAdvanceInvoicePreviewCalculationMode.cjs';
|
|
@@ -72,6 +72,9 @@ export * from './claimPosTabBody.js';
|
|
|
72
72
|
export * from './closePosTabBody.js';
|
|
73
73
|
export * from './companyBankAccount.js';
|
|
74
74
|
export * from './companyRegistryResult.js';
|
|
75
|
+
export * from './companyRegistryResultSettings.js';
|
|
76
|
+
export * from './companyRegistryResultSettingsSlovenia.js';
|
|
77
|
+
export * from './companyRegistryResultSettingsSloveniaVatProfile.js';
|
|
75
78
|
export * from './companyRegistrySearchResponse.js';
|
|
76
79
|
export * from './completeAdvanceInvoicePreview.js';
|
|
77
80
|
export * from './completeAdvanceInvoicePreviewCalculationMode.js';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
/**
|
|
10
|
-
* Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Activities are ordered by
|
|
10
|
+
* Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Set include_related_payments=true with resource_id to include historical Payment events linked through invoice_id, credit_note_id, or advance_invoice_id. Other filters still apply. Omitted, null, or false retains exact resource filtering; without resource_id the flag has no effect. Activities are ordered by ID descending by default.
|
|
11
11
|
* @summary List activities
|
|
12
12
|
*/
|
|
13
13
|
export declare const getActivitiesQueryLimitDefault = 10;
|
|
@@ -39,6 +39,7 @@ export declare const GetActivitiesQueryParams: zod.ZodObject<{
|
|
|
39
39
|
query: zod.ZodOptional<zod.ZodString>;
|
|
40
40
|
resource_type: zod.ZodOptional<zod.ZodString>;
|
|
41
41
|
resource_id: zod.ZodOptional<zod.ZodString>;
|
|
42
|
+
include_related_payments: zod.ZodOptional<zod.ZodBoolean>;
|
|
42
43
|
action: zod.ZodOptional<zod.ZodString>;
|
|
43
44
|
}, zod.z.core.$strip>;
|
|
44
45
|
export declare const GetActivitiesHeader: zod.ZodObject<{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
/**
|
|
10
|
-
* Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Activities are ordered by
|
|
10
|
+
* Retrieve a paginated list of activities for the entity. Supports filtering by resource_type, resource_id, and action. Set include_related_payments=true with resource_id to include historical Payment events linked through invoice_id, credit_note_id, or advance_invoice_id. Other filters still apply. Omitted, null, or false retains exact resource filtering; without resource_id the flag has no effect. Activities are ordered by ID descending by default.
|
|
11
11
|
* @summary List activities
|
|
12
12
|
*/
|
|
13
13
|
export declare const getActivitiesQueryLimitDefault = 10;
|
|
@@ -39,6 +39,7 @@ export declare const GetActivitiesQueryParams: zod.ZodObject<{
|
|
|
39
39
|
query: zod.ZodOptional<zod.ZodString>;
|
|
40
40
|
resource_type: zod.ZodOptional<zod.ZodString>;
|
|
41
41
|
resource_id: zod.ZodOptional<zod.ZodString>;
|
|
42
|
+
include_related_payments: zod.ZodOptional<zod.ZodBoolean>;
|
|
42
43
|
action: zod.ZodOptional<zod.ZodString>;
|
|
43
44
|
}, zod.z.core.$strip>;
|
|
44
45
|
export declare const GetActivitiesHeader: zod.ZodObject<{
|
|
@@ -26,6 +26,16 @@ export declare const SearchCompanyRegistryResponse: zod.ZodObject<{
|
|
|
26
26
|
country_code: zod.ZodString;
|
|
27
27
|
registration_number: zod.ZodString;
|
|
28
28
|
tax_number: zod.ZodNullable<zod.ZodString>;
|
|
29
|
+
settings: zod.ZodOptional<zod.ZodObject<{
|
|
30
|
+
slovenia: zod.ZodObject<{
|
|
31
|
+
vat_profile: zod.ZodEnum<{
|
|
32
|
+
standard: "standard";
|
|
33
|
+
special_vat_identified: "special_vat_identified";
|
|
34
|
+
non_vat_subject: "non_vat_subject";
|
|
35
|
+
}>;
|
|
36
|
+
}, zod.z.core.$strip>;
|
|
37
|
+
}, zod.z.core.$strip>>;
|
|
38
|
+
is_tax_subject: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
29
39
|
name: zod.ZodString;
|
|
30
40
|
address: zod.ZodNullable<zod.ZodString>;
|
|
31
41
|
post_code: zod.ZodNullable<zod.ZodString>;
|
|
@@ -26,6 +26,16 @@ export declare const SearchCompanyRegistryResponse: zod.ZodObject<{
|
|
|
26
26
|
country_code: zod.ZodString;
|
|
27
27
|
registration_number: zod.ZodString;
|
|
28
28
|
tax_number: zod.ZodNullable<zod.ZodString>;
|
|
29
|
+
settings: zod.ZodOptional<zod.ZodObject<{
|
|
30
|
+
slovenia: zod.ZodObject<{
|
|
31
|
+
vat_profile: zod.ZodEnum<{
|
|
32
|
+
standard: "standard";
|
|
33
|
+
special_vat_identified: "special_vat_identified";
|
|
34
|
+
non_vat_subject: "non_vat_subject";
|
|
35
|
+
}>;
|
|
36
|
+
}, zod.z.core.$strip>;
|
|
37
|
+
}, zod.z.core.$strip>>;
|
|
38
|
+
is_tax_subject: zod.ZodOptional<zod.ZodNullable<zod.ZodBoolean>>;
|
|
29
39
|
name: zod.ZodString;
|
|
30
40
|
address: zod.ZodNullable<zod.ZodString>;
|
|
31
41
|
post_code: zod.ZodNullable<zod.ZodString>;
|