@spaceinvoices/js-sdk 10.1.1 → 10.1.3
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/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/index.d.cts +3 -0
- package/dist/generated/model/index.d.ts +3 -0
- package/dist/generated/model/searchCompanyRegistryParams.d.cts +1 -1
- package/dist/generated/model/searchCompanyRegistryParams.d.ts +1 -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
|
@@ -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
|
+
};
|
|
@@ -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';
|
|
@@ -13,7 +13,7 @@ export type SearchCompanyRegistryParams = {
|
|
|
13
13
|
*/
|
|
14
14
|
country_code: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Partial company name, tax number, registration number, address, city or postal code (min 2 characters; queries with at least three consecutive ASCII letters or digits after accent normalization and no backslash match anywhere; other queries match field prefixes). Names and addresses ignore case and accents. Identifier searches ignore case, spaces and hyphens and accept the selected country prefix (e.g. SI1234 or 1234). Exact identifier matches rank first.
|
|
17
17
|
* @minLength 2
|
|
18
18
|
*/
|
|
19
19
|
q: string;
|
|
@@ -13,7 +13,7 @@ export type SearchCompanyRegistryParams = {
|
|
|
13
13
|
*/
|
|
14
14
|
country_code: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Partial company name, tax number, registration number, address, city or postal code (min 2 characters; queries with at least three consecutive ASCII letters or digits after accent normalization and no backslash match anywhere; other queries match field prefixes). Names and addresses ignore case and accents. Identifier searches ignore case, spaces and hyphens and accept the selected country prefix (e.g. SI1234 or 1234). Exact identifier matches rank first.
|
|
17
17
|
* @minLength 2
|
|
18
18
|
*/
|
|
19
19
|
q: string;
|
|
@@ -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>;
|