@spaceinvoices/js-sdk 18.4.0 → 18.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/accounting/accounting.d.cts +1 -0
- package/dist/generated/accounting/accounting.d.ts +1 -0
- package/dist/generated/model/getPayrollParameterHistoryParams.d.cts +5 -0
- package/dist/generated/model/getPayrollParameterHistoryParams.d.ts +5 -0
- package/dist/generated/model/getPayrollParameterHistoryScope.d.cts +12 -0
- package/dist/generated/model/getPayrollParameterHistoryScope.d.ts +12 -0
- package/dist/generated/model/index.d.cts +2 -0
- package/dist/generated/model/index.d.ts +2 -0
- package/dist/generated/model/payrollParameterRow.d.cts +4 -1
- package/dist/generated/model/payrollParameterRow.d.ts +4 -1
- package/dist/generated/model/payrollParameterRowScope.d.cts +15 -0
- package/dist/generated/model/payrollParameterRowScope.d.ts +15 -0
- package/dist/generated-zod/accounting/accounting.d.cts +13 -0
- package/dist/generated-zod/accounting/accounting.d.ts +13 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -755,6 +755,7 @@ export type resolvePayrollParametersResponse = (resolvePayrollParametersResponse
|
|
|
755
755
|
export declare const getResolvePayrollParametersUrl: (params?: ResolvePayrollParametersParams) => string;
|
|
756
756
|
export declare const resolvePayrollParameters: (params?: ResolvePayrollParametersParams, options?: RequestInit) => Promise<resolvePayrollParametersResponse>;
|
|
757
757
|
/**
|
|
758
|
+
* Returns the shared statutory rows for the key and the current entity's own override rows (another entity's overrides are never returned). Every row carries `scope`: `statutory` (entity_id null) or `entity` (an override owned by the caller). Rows are ordered by `effective_from`, oldest first; when a statutory and an entity row share the same `effective_from`, both are listed, statutory first. While an entity override is effective it takes precedence over statutory rows when parameters are resolved (see `is_override` on the resolve endpoint). Pass `scope` to return only one kind.
|
|
758
759
|
* @summary Get the full effective-dated history for a payroll parameter key
|
|
759
760
|
*/
|
|
760
761
|
export type getPayrollParameterHistoryResponse200 = {
|
|
@@ -755,6 +755,7 @@ export type resolvePayrollParametersResponse = (resolvePayrollParametersResponse
|
|
|
755
755
|
export declare const getResolvePayrollParametersUrl: (params?: ResolvePayrollParametersParams) => string;
|
|
756
756
|
export declare const resolvePayrollParameters: (params?: ResolvePayrollParametersParams, options?: RequestInit) => Promise<resolvePayrollParametersResponse>;
|
|
757
757
|
/**
|
|
758
|
+
* Returns the shared statutory rows for the key and the current entity's own override rows (another entity's overrides are never returned). Every row carries `scope`: `statutory` (entity_id null) or `entity` (an override owned by the caller). Rows are ordered by `effective_from`, oldest first; when a statutory and an entity row share the same `effective_from`, both are listed, statutory first. While an entity override is effective it takes precedence over statutory rows when parameters are resolved (see `is_override` on the resolve endpoint). Pass `scope` to return only one kind.
|
|
758
759
|
* @summary Get the full effective-dated history for a payroll parameter key
|
|
759
760
|
*/
|
|
760
761
|
export type getPayrollParameterHistoryResponse200 = {
|
|
@@ -5,6 +5,7 @@
|
|
|
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 { GetPayrollParameterHistoryScope } from './getPayrollParameterHistoryScope.cjs';
|
|
8
9
|
export type GetPayrollParameterHistoryParams = {
|
|
9
10
|
/**
|
|
10
11
|
* @minLength 2
|
|
@@ -15,4 +16,8 @@ export type GetPayrollParameterHistoryParams = {
|
|
|
15
16
|
* @minLength 1
|
|
16
17
|
*/
|
|
17
18
|
key: string;
|
|
19
|
+
/**
|
|
20
|
+
* Return only `statutory` rows or only the calling entity's `entity` overrides. Omit to return both.
|
|
21
|
+
*/
|
|
22
|
+
scope?: GetPayrollParameterHistoryScope;
|
|
18
23
|
};
|
|
@@ -5,6 +5,7 @@
|
|
|
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 { GetPayrollParameterHistoryScope } from './getPayrollParameterHistoryScope.js';
|
|
8
9
|
export type GetPayrollParameterHistoryParams = {
|
|
9
10
|
/**
|
|
10
11
|
* @minLength 2
|
|
@@ -15,4 +16,8 @@ export type GetPayrollParameterHistoryParams = {
|
|
|
15
16
|
* @minLength 1
|
|
16
17
|
*/
|
|
17
18
|
key: string;
|
|
19
|
+
/**
|
|
20
|
+
* Return only `statutory` rows or only the calling entity's `entity` overrides. Omit to return both.
|
|
21
|
+
*/
|
|
22
|
+
scope?: GetPayrollParameterHistoryScope;
|
|
18
23
|
};
|
|
@@ -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
|
+
export type GetPayrollParameterHistoryScope = typeof GetPayrollParameterHistoryScope[keyof typeof GetPayrollParameterHistoryScope];
|
|
9
|
+
export declare const GetPayrollParameterHistoryScope: {
|
|
10
|
+
readonly statutory: "statutory";
|
|
11
|
+
readonly entity: "entity";
|
|
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
|
+
export type GetPayrollParameterHistoryScope = typeof GetPayrollParameterHistoryScope[keyof typeof GetPayrollParameterHistoryScope];
|
|
9
|
+
export declare const GetPayrollParameterHistoryScope: {
|
|
10
|
+
readonly statutory: "statutory";
|
|
11
|
+
readonly entity: "entity";
|
|
12
|
+
};
|
|
@@ -980,6 +980,7 @@ export * from './getPayments200.cjs';
|
|
|
980
980
|
export * from './getPaymentsParams.cjs';
|
|
981
981
|
export * from './getPayrollParameterHistory200.cjs';
|
|
982
982
|
export * from './getPayrollParameterHistoryParams.cjs';
|
|
983
|
+
export * from './getPayrollParameterHistoryScope.cjs';
|
|
983
984
|
export * from './getPdfExportStatus200.cjs';
|
|
984
985
|
export * from './getPdfExportStatus200Result.cjs';
|
|
985
986
|
export * from './getPdfExportStatus200Status.cjs';
|
|
@@ -1398,6 +1399,7 @@ export * from './paymentReminderTranslationsPaymentInstructions.cjs';
|
|
|
1398
1399
|
export * from './paymentReminderTrigger.cjs';
|
|
1399
1400
|
export * from './paymentType.cjs';
|
|
1400
1401
|
export * from './payrollParameterRow.cjs';
|
|
1402
|
+
export * from './payrollParameterRowScope.cjs';
|
|
1401
1403
|
export * from './payrollParameterRowValueJson.cjs';
|
|
1402
1404
|
export * from './payrollRun.cjs';
|
|
1403
1405
|
export * from './payrollRunDetail.cjs';
|
|
@@ -980,6 +980,7 @@ export * from './getPayments200.js';
|
|
|
980
980
|
export * from './getPaymentsParams.js';
|
|
981
981
|
export * from './getPayrollParameterHistory200.js';
|
|
982
982
|
export * from './getPayrollParameterHistoryParams.js';
|
|
983
|
+
export * from './getPayrollParameterHistoryScope.js';
|
|
983
984
|
export * from './getPdfExportStatus200.js';
|
|
984
985
|
export * from './getPdfExportStatus200Result.js';
|
|
985
986
|
export * from './getPdfExportStatus200Status.js';
|
|
@@ -1398,6 +1399,7 @@ export * from './paymentReminderTranslationsPaymentInstructions.js';
|
|
|
1398
1399
|
export * from './paymentReminderTrigger.js';
|
|
1399
1400
|
export * from './paymentType.js';
|
|
1400
1401
|
export * from './payrollParameterRow.js';
|
|
1402
|
+
export * from './payrollParameterRowScope.js';
|
|
1401
1403
|
export * from './payrollParameterRowValueJson.js';
|
|
1402
1404
|
export * from './payrollRun.js';
|
|
1403
1405
|
export * from './payrollRunDetail.js';
|
|
@@ -5,9 +5,10 @@
|
|
|
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 { PayrollParameterRowScope } from './payrollParameterRowScope.cjs';
|
|
8
9
|
import type { PayrollParameterRowValueJson } from './payrollParameterRowValueJson.cjs';
|
|
9
10
|
/**
|
|
10
|
-
* A single effective-dated payroll parameter row
|
|
11
|
+
* A single effective-dated payroll parameter row. `scope` tells whether it is a shared statutory row or an override owned by the calling entity.
|
|
11
12
|
*/
|
|
12
13
|
export interface PayrollParameterRow {
|
|
13
14
|
/** @maxLength 36 */
|
|
@@ -49,4 +50,6 @@ export interface PayrollParameterRow {
|
|
|
49
50
|
entity_id?: string | null;
|
|
50
51
|
created_at: string;
|
|
51
52
|
updated_at: string;
|
|
53
|
+
/** Where the row comes from: `statutory` is a shared row for the country (entity_id is null), `entity` is an override that belongs to the calling entity (entity_id is that entity's id). Always present in responses; declared optional so the contract change stays additive. */
|
|
54
|
+
scope?: PayrollParameterRowScope;
|
|
52
55
|
}
|
|
@@ -5,9 +5,10 @@
|
|
|
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 { PayrollParameterRowScope } from './payrollParameterRowScope.js';
|
|
8
9
|
import type { PayrollParameterRowValueJson } from './payrollParameterRowValueJson.js';
|
|
9
10
|
/**
|
|
10
|
-
* A single effective-dated payroll parameter row
|
|
11
|
+
* A single effective-dated payroll parameter row. `scope` tells whether it is a shared statutory row or an override owned by the calling entity.
|
|
11
12
|
*/
|
|
12
13
|
export interface PayrollParameterRow {
|
|
13
14
|
/** @maxLength 36 */
|
|
@@ -49,4 +50,6 @@ export interface PayrollParameterRow {
|
|
|
49
50
|
entity_id?: string | null;
|
|
50
51
|
created_at: string;
|
|
51
52
|
updated_at: string;
|
|
53
|
+
/** Where the row comes from: `statutory` is a shared row for the country (entity_id is null), `entity` is an override that belongs to the calling entity (entity_id is that entity's id). Always present in responses; declared optional so the contract change stays additive. */
|
|
54
|
+
scope?: PayrollParameterRowScope;
|
|
52
55
|
}
|
|
@@ -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
|
+
* Where the row comes from: `statutory` is a shared row for the country (entity_id is null), `entity` is an override that belongs to the calling entity (entity_id is that entity's id). Always present in responses; declared optional so the contract change stays additive.
|
|
10
|
+
*/
|
|
11
|
+
export type PayrollParameterRowScope = typeof PayrollParameterRowScope[keyof typeof PayrollParameterRowScope];
|
|
12
|
+
export declare const PayrollParameterRowScope: {
|
|
13
|
+
readonly statutory: "statutory";
|
|
14
|
+
readonly entity: "entity";
|
|
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
|
+
* Where the row comes from: `statutory` is a shared row for the country (entity_id is null), `entity` is an override that belongs to the calling entity (entity_id is that entity's id). Always present in responses; declared optional so the contract change stays additive.
|
|
10
|
+
*/
|
|
11
|
+
export type PayrollParameterRowScope = typeof PayrollParameterRowScope[keyof typeof PayrollParameterRowScope];
|
|
12
|
+
export declare const PayrollParameterRowScope: {
|
|
13
|
+
readonly statutory: "statutory";
|
|
14
|
+
readonly entity: "entity";
|
|
15
|
+
};
|
|
@@ -1171,6 +1171,7 @@ export declare const ResolvePayrollParametersResponse: zod.ZodObject<{
|
|
|
1171
1171
|
}, zod.z.core.$strip>>;
|
|
1172
1172
|
}, zod.z.core.$strip>;
|
|
1173
1173
|
/**
|
|
1174
|
+
* Returns the shared statutory rows for the key and the current entity's own override rows (another entity's overrides are never returned). Every row carries `scope`: `statutory` (entity_id null) or `entity` (an override owned by the caller). Rows are ordered by `effective_from`, oldest first; when a statutory and an entity row share the same `effective_from`, both are listed, statutory first. While an entity override is effective it takes precedence over statutory rows when parameters are resolved (see `is_override` on the resolve endpoint). Pass `scope` to return only one kind.
|
|
1174
1175
|
* @summary Get the full effective-dated history for a payroll parameter key
|
|
1175
1176
|
*/
|
|
1176
1177
|
export declare const getPayrollParameterHistoryQueryCountryCodeDefault = "SI";
|
|
@@ -1179,6 +1180,10 @@ export declare const getPayrollParameterHistoryQueryCountryCodeMax = 2;
|
|
|
1179
1180
|
export declare const GetPayrollParameterHistoryQueryParams: zod.ZodObject<{
|
|
1180
1181
|
country_code: zod.ZodDefault<zod.ZodString>;
|
|
1181
1182
|
key: zod.ZodString;
|
|
1183
|
+
scope: zod.ZodOptional<zod.ZodEnum<{
|
|
1184
|
+
entity: "entity";
|
|
1185
|
+
statutory: "statutory";
|
|
1186
|
+
}>>;
|
|
1182
1187
|
}, zod.z.core.$strip>;
|
|
1183
1188
|
export declare const GetPayrollParameterHistoryHeader: zod.ZodObject<{
|
|
1184
1189
|
"x-entity-id": zod.ZodOptional<zod.ZodString>;
|
|
@@ -1209,6 +1214,10 @@ export declare const GetPayrollParameterHistoryResponse: zod.ZodObject<{
|
|
|
1209
1214
|
entity_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1210
1215
|
created_at: zod.z.ZodISODateTime;
|
|
1211
1216
|
updated_at: zod.z.ZodISODateTime;
|
|
1217
|
+
scope: zod.ZodOptional<zod.ZodEnum<{
|
|
1218
|
+
entity: "entity";
|
|
1219
|
+
statutory: "statutory";
|
|
1220
|
+
}>>;
|
|
1212
1221
|
}, zod.z.core.$strip>>;
|
|
1213
1222
|
}, zod.z.core.$strip>;
|
|
1214
1223
|
/**
|
|
@@ -1268,6 +1277,10 @@ export declare const SetPayrollParameterOverrideResponse: zod.ZodObject<{
|
|
|
1268
1277
|
entity_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1269
1278
|
created_at: zod.z.ZodISODateTime;
|
|
1270
1279
|
updated_at: zod.z.ZodISODateTime;
|
|
1280
|
+
scope: zod.ZodOptional<zod.ZodEnum<{
|
|
1281
|
+
entity: "entity";
|
|
1282
|
+
statutory: "statutory";
|
|
1283
|
+
}>>;
|
|
1271
1284
|
}, zod.z.core.$strip>;
|
|
1272
1285
|
/**
|
|
1273
1286
|
* Computes the salary (REK-O 1001) of every active employee employed in the whole period from the employee record, the month's attendance and the payroll parameters effective on the first day of the period. Holiday compensation defaults to the ZDR-1 Art. 137 average of the three previous approved or paid months, falling back to the monthly base rate when fewer exist; each item records which method applied. Money amounts are euros as numbers with two decimals.
|
|
@@ -1171,6 +1171,7 @@ export declare const ResolvePayrollParametersResponse: zod.ZodObject<{
|
|
|
1171
1171
|
}, zod.z.core.$strip>>;
|
|
1172
1172
|
}, zod.z.core.$strip>;
|
|
1173
1173
|
/**
|
|
1174
|
+
* Returns the shared statutory rows for the key and the current entity's own override rows (another entity's overrides are never returned). Every row carries `scope`: `statutory` (entity_id null) or `entity` (an override owned by the caller). Rows are ordered by `effective_from`, oldest first; when a statutory and an entity row share the same `effective_from`, both are listed, statutory first. While an entity override is effective it takes precedence over statutory rows when parameters are resolved (see `is_override` on the resolve endpoint). Pass `scope` to return only one kind.
|
|
1174
1175
|
* @summary Get the full effective-dated history for a payroll parameter key
|
|
1175
1176
|
*/
|
|
1176
1177
|
export declare const getPayrollParameterHistoryQueryCountryCodeDefault = "SI";
|
|
@@ -1179,6 +1180,10 @@ export declare const getPayrollParameterHistoryQueryCountryCodeMax = 2;
|
|
|
1179
1180
|
export declare const GetPayrollParameterHistoryQueryParams: zod.ZodObject<{
|
|
1180
1181
|
country_code: zod.ZodDefault<zod.ZodString>;
|
|
1181
1182
|
key: zod.ZodString;
|
|
1183
|
+
scope: zod.ZodOptional<zod.ZodEnum<{
|
|
1184
|
+
entity: "entity";
|
|
1185
|
+
statutory: "statutory";
|
|
1186
|
+
}>>;
|
|
1182
1187
|
}, zod.z.core.$strip>;
|
|
1183
1188
|
export declare const GetPayrollParameterHistoryHeader: zod.ZodObject<{
|
|
1184
1189
|
"x-entity-id": zod.ZodOptional<zod.ZodString>;
|
|
@@ -1209,6 +1214,10 @@ export declare const GetPayrollParameterHistoryResponse: zod.ZodObject<{
|
|
|
1209
1214
|
entity_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1210
1215
|
created_at: zod.z.ZodISODateTime;
|
|
1211
1216
|
updated_at: zod.z.ZodISODateTime;
|
|
1217
|
+
scope: zod.ZodOptional<zod.ZodEnum<{
|
|
1218
|
+
entity: "entity";
|
|
1219
|
+
statutory: "statutory";
|
|
1220
|
+
}>>;
|
|
1212
1221
|
}, zod.z.core.$strip>>;
|
|
1213
1222
|
}, zod.z.core.$strip>;
|
|
1214
1223
|
/**
|
|
@@ -1268,6 +1277,10 @@ export declare const SetPayrollParameterOverrideResponse: zod.ZodObject<{
|
|
|
1268
1277
|
entity_id: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1269
1278
|
created_at: zod.z.ZodISODateTime;
|
|
1270
1279
|
updated_at: zod.z.ZodISODateTime;
|
|
1280
|
+
scope: zod.ZodOptional<zod.ZodEnum<{
|
|
1281
|
+
entity: "entity";
|
|
1282
|
+
statutory: "statutory";
|
|
1283
|
+
}>>;
|
|
1271
1284
|
}, zod.z.core.$strip>;
|
|
1272
1285
|
/**
|
|
1273
1286
|
* Computes the salary (REK-O 1001) of every active employee employed in the whole period from the employee record, the month's attendance and the payroll parameters effective on the first day of the period. Holiday compensation defaults to the ZDR-1 Art. 137 average of the three previous approved or paid months, falling back to the monthly base rate when fewer exist; each item records which method applied. Money amounts are euros as numbers with two decimals.
|