@spaceinvoices/js-sdk 17.2.0 → 17.3.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.
@@ -375,7 +375,7 @@ export type getPayrollParameterHistoryResponse = (getPayrollParameterHistoryResp
375
375
  export declare const getGetPayrollParameterHistoryUrl: (params: GetPayrollParameterHistoryParams) => string;
376
376
  export declare const getPayrollParameterHistory: (params: GetPayrollParameterHistoryParams, options?: RequestInit) => Promise<getPayrollParameterHistoryResponse>;
377
377
  /**
378
- * Accountant only. Creates an effective-dated override row for the current entity.
378
+ * Requires accounting access (accountant or admin role, or account owner/admin). Creates an effective-dated override row for the current entity.
379
379
  * @summary Set an entity-specific override for a payroll parameter
380
380
  */
381
381
  export type setPayrollParameterOverrideResponse200 = {
@@ -625,7 +625,7 @@ export type recomputeVatReturnResponse = (recomputeVatReturnResponseSuccess | re
625
625
  export declare const getRecomputeVatReturnUrl: (id: string) => string;
626
626
  export declare const recomputeVatReturn: (id: string, options?: RequestInit) => Promise<recomputeVatReturnResponse>;
627
627
  /**
628
- * @summary Approve a draft VAT return (accountant only)
628
+ * @summary Approve a draft VAT return (accounting access)
629
629
  */
630
630
  export type approveVatReturnResponse200 = {
631
631
  data: VatReturn;
@@ -669,7 +669,7 @@ export type approveVatReturnResponse = (approveVatReturnResponseSuccess | approv
669
669
  export declare const getApproveVatReturnUrl: (id: string) => string;
670
670
  export declare const approveVatReturn: (id: string, options?: RequestInit) => Promise<approveVatReturnResponse>;
671
671
  /**
672
- * @summary Record a VAT return as submitted to eDavki (accountant only)
672
+ * @summary Record a VAT return as submitted to eDavki (accounting access)
673
673
  */
674
674
  export type submitVatReturnResponse200 = {
675
675
  data: VatReturn;
@@ -713,7 +713,7 @@ export type submitVatReturnResponse = (submitVatReturnResponseSuccess | submitVa
713
713
  export declare const getSubmitVatReturnUrl: (id: string) => string;
714
714
  export declare const submitVatReturn: (id: string, submitVatReturnRequest?: SubmitVatReturnRequest, options?: RequestInit) => Promise<submitVatReturnResponse>;
715
715
  /**
716
- * @summary Reopen an approved VAT return back to draft (accountant only)
716
+ * @summary Reopen an approved VAT return back to draft (accounting access)
717
717
  */
718
718
  export type reopenVatReturnResponse200 = {
719
719
  data: VatReturn;
@@ -375,7 +375,7 @@ export type getPayrollParameterHistoryResponse = (getPayrollParameterHistoryResp
375
375
  export declare const getGetPayrollParameterHistoryUrl: (params: GetPayrollParameterHistoryParams) => string;
376
376
  export declare const getPayrollParameterHistory: (params: GetPayrollParameterHistoryParams, options?: RequestInit) => Promise<getPayrollParameterHistoryResponse>;
377
377
  /**
378
- * Accountant only. Creates an effective-dated override row for the current entity.
378
+ * Requires accounting access (accountant or admin role, or account owner/admin). Creates an effective-dated override row for the current entity.
379
379
  * @summary Set an entity-specific override for a payroll parameter
380
380
  */
381
381
  export type setPayrollParameterOverrideResponse200 = {
@@ -625,7 +625,7 @@ export type recomputeVatReturnResponse = (recomputeVatReturnResponseSuccess | re
625
625
  export declare const getRecomputeVatReturnUrl: (id: string) => string;
626
626
  export declare const recomputeVatReturn: (id: string, options?: RequestInit) => Promise<recomputeVatReturnResponse>;
627
627
  /**
628
- * @summary Approve a draft VAT return (accountant only)
628
+ * @summary Approve a draft VAT return (accounting access)
629
629
  */
630
630
  export type approveVatReturnResponse200 = {
631
631
  data: VatReturn;
@@ -669,7 +669,7 @@ export type approveVatReturnResponse = (approveVatReturnResponseSuccess | approv
669
669
  export declare const getApproveVatReturnUrl: (id: string) => string;
670
670
  export declare const approveVatReturn: (id: string, options?: RequestInit) => Promise<approveVatReturnResponse>;
671
671
  /**
672
- * @summary Record a VAT return as submitted to eDavki (accountant only)
672
+ * @summary Record a VAT return as submitted to eDavki (accounting access)
673
673
  */
674
674
  export type submitVatReturnResponse200 = {
675
675
  data: VatReturn;
@@ -713,7 +713,7 @@ export type submitVatReturnResponse = (submitVatReturnResponseSuccess | submitVa
713
713
  export declare const getSubmitVatReturnUrl: (id: string) => string;
714
714
  export declare const submitVatReturn: (id: string, submitVatReturnRequest?: SubmitVatReturnRequest, options?: RequestInit) => Promise<submitVatReturnResponse>;
715
715
  /**
716
- * @summary Reopen an approved VAT return back to draft (accountant only)
716
+ * @summary Reopen an approved VAT return back to draft (accounting access)
717
717
  */
718
718
  export type reopenVatReturnResponse200 = {
719
719
  data: VatReturn;
@@ -14,7 +14,7 @@ export interface EntityInvitation {
14
14
  entity_id: string;
15
15
  /** Invitee email */
16
16
  email: string;
17
- /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
17
+ /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
18
18
  role: EntityInvitationRole;
19
19
  /** ID of user who sent the invitation */
20
20
  invited_by_user_id: string;
@@ -14,7 +14,7 @@ export interface EntityInvitation {
14
14
  entity_id: string;
15
15
  /** Invitee email */
16
16
  email: string;
17
- /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
17
+ /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
18
18
  role: EntityInvitationRole;
19
19
  /** ID of user who sent the invitation */
20
20
  invited_by_user_id: string;
@@ -11,7 +11,7 @@ export interface EntityInvitationPreview {
11
11
  email: string;
12
12
  entity_name: string;
13
13
  existing_user: boolean;
14
- /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
14
+ /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
15
15
  role: EntityInvitationPreviewRole;
16
16
  status: EntityInvitationPreviewStatus;
17
17
  expires_at: string;
@@ -11,7 +11,7 @@ export interface EntityInvitationPreview {
11
11
  email: string;
12
12
  entity_name: string;
13
13
  existing_user: boolean;
14
- /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
14
+ /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
15
15
  role: EntityInvitationPreviewRole;
16
16
  status: EntityInvitationPreviewStatus;
17
17
  expires_at: string;
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  /**
9
- * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
9
+ * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
10
10
  */
11
11
  export type EntityInvitationPreviewRole = typeof EntityInvitationPreviewRole[keyof typeof EntityInvitationPreviewRole];
12
12
  export declare const EntityInvitationPreviewRole: {
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  /**
9
- * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
9
+ * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
10
10
  */
11
11
  export type EntityInvitationPreviewRole = typeof EntityInvitationPreviewRole[keyof typeof EntityInvitationPreviewRole];
12
12
  export declare const EntityInvitationPreviewRole: {
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  /**
9
- * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
9
+ * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
10
10
  */
11
11
  export type EntityInvitationRole = typeof EntityInvitationRole[keyof typeof EntityInvitationRole];
12
12
  export declare const EntityInvitationRole: {
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  /**
9
- * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
9
+ * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
10
10
  */
11
11
  export type EntityInvitationRole = typeof EntityInvitationRole[keyof typeof EntityInvitationRole];
12
12
  export declare const EntityInvitationRole: {
@@ -12,7 +12,7 @@ export interface EntityUser {
12
12
  user_id: string;
13
13
  /** Entity ID */
14
14
  entity_id: string;
15
- /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
15
+ /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
16
16
  role: EntityUserRole;
17
17
  /** User email */
18
18
  email: string;
@@ -12,7 +12,7 @@ export interface EntityUser {
12
12
  user_id: string;
13
13
  /** Entity ID */
14
14
  entity_id: string;
15
- /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
15
+ /** User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module. */
16
16
  role: EntityUserRole;
17
17
  /** User email */
18
18
  email: string;
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  /**
9
- * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
9
+ * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
10
10
  */
11
11
  export type EntityUserRole = typeof EntityUserRole[keyof typeof EntityUserRole];
12
12
  export declare const EntityUserRole: {
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  /**
9
- * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
9
+ * User role on the entity. `viewer` reads, `editor` also writes, `admin` also manages users and settings and uses the accounting module, `staff` issues invoices and works only with the invoices they created, and `accountant` works like `editor` and also uses the accounting module.
10
10
  */
11
11
  export type EntityUserRole = typeof EntityUserRole[keyof typeof EntityUserRole];
12
12
  export declare const EntityUserRole: {
@@ -35,7 +35,7 @@ export interface EntityUsersAccess {
35
35
  can_manage_entity_settings?: boolean;
36
36
  /** Whether the actor can issue invoices and work with the ones they created. When `can_read_entity` is false, the actor sees only those invoices. */
37
37
  can_use_own_documents?: boolean;
38
- /** Whether the actor can use the accounting module for this entity. Only the `accountant` role can. Clients must treat an absent value as false. */
38
+ /** Whether the actor can use the accounting module for this entity. The `accountant` and `admin` roles can (and account owners and admins). Clients must treat an absent value as false. */
39
39
  can_use_accounting?: boolean;
40
40
  /** Whether final entity admin demotion/removal must be blocked for this actor */
41
41
  enforce_entity_admin_preservation: boolean;
@@ -35,7 +35,7 @@ export interface EntityUsersAccess {
35
35
  can_manage_entity_settings?: boolean;
36
36
  /** Whether the actor can issue invoices and work with the ones they created. When `can_read_entity` is false, the actor sees only those invoices. */
37
37
  can_use_own_documents?: boolean;
38
- /** Whether the actor can use the accounting module for this entity. Only the `accountant` role can. Clients must treat an absent value as false. */
38
+ /** Whether the actor can use the accounting module for this entity. The `accountant` and `admin` roles can (and account owners and admins). Clients must treat an absent value as false. */
39
39
  can_use_accounting?: boolean;
40
40
  /** Whether final entity admin demotion/removal must be blocked for this actor */
41
41
  enforce_entity_admin_preservation: boolean;
@@ -540,7 +540,7 @@ export declare const GetPayrollParameterHistoryResponse: zod.ZodObject<{
540
540
  }, zod.z.core.$strip>>;
541
541
  }, zod.z.core.$strip>;
542
542
  /**
543
- * Accountant only. Creates an effective-dated override row for the current entity.
543
+ * Requires accounting access (accountant or admin role, or account owner/admin). Creates an effective-dated override row for the current entity.
544
544
  * @summary Set an entity-specific override for a payroll parameter
545
545
  */
546
546
  export declare const SetPayrollParameterOverrideParams: zod.ZodObject<{
@@ -939,7 +939,7 @@ export declare const RecomputeVatReturnResponse: zod.ZodObject<{
939
939
  updated_at: zod.z.ZodISODateTime;
940
940
  }, zod.z.core.$strip>;
941
941
  /**
942
- * @summary Approve a draft VAT return (accountant only)
942
+ * @summary Approve a draft VAT return (accounting access)
943
943
  */
944
944
  export declare const approveVatReturnPathIdRegExp: RegExp;
945
945
  export declare const ApproveVatReturnParams: zod.ZodObject<{
@@ -1019,7 +1019,7 @@ export declare const ApproveVatReturnResponse: zod.ZodObject<{
1019
1019
  updated_at: zod.z.ZodISODateTime;
1020
1020
  }, zod.z.core.$strip>;
1021
1021
  /**
1022
- * @summary Record a VAT return as submitted to eDavki (accountant only)
1022
+ * @summary Record a VAT return as submitted to eDavki (accounting access)
1023
1023
  */
1024
1024
  export declare const submitVatReturnPathIdRegExp: RegExp;
1025
1025
  export declare const SubmitVatReturnParams: zod.ZodObject<{
@@ -1104,7 +1104,7 @@ export declare const SubmitVatReturnResponse: zod.ZodObject<{
1104
1104
  updated_at: zod.z.ZodISODateTime;
1105
1105
  }, zod.z.core.$strip>;
1106
1106
  /**
1107
- * @summary Reopen an approved VAT return back to draft (accountant only)
1107
+ * @summary Reopen an approved VAT return back to draft (accounting access)
1108
1108
  */
1109
1109
  export declare const reopenVatReturnPathIdRegExp: RegExp;
1110
1110
  export declare const ReopenVatReturnParams: zod.ZodObject<{
@@ -540,7 +540,7 @@ export declare const GetPayrollParameterHistoryResponse: zod.ZodObject<{
540
540
  }, zod.z.core.$strip>>;
541
541
  }, zod.z.core.$strip>;
542
542
  /**
543
- * Accountant only. Creates an effective-dated override row for the current entity.
543
+ * Requires accounting access (accountant or admin role, or account owner/admin). Creates an effective-dated override row for the current entity.
544
544
  * @summary Set an entity-specific override for a payroll parameter
545
545
  */
546
546
  export declare const SetPayrollParameterOverrideParams: zod.ZodObject<{
@@ -939,7 +939,7 @@ export declare const RecomputeVatReturnResponse: zod.ZodObject<{
939
939
  updated_at: zod.z.ZodISODateTime;
940
940
  }, zod.z.core.$strip>;
941
941
  /**
942
- * @summary Approve a draft VAT return (accountant only)
942
+ * @summary Approve a draft VAT return (accounting access)
943
943
  */
944
944
  export declare const approveVatReturnPathIdRegExp: RegExp;
945
945
  export declare const ApproveVatReturnParams: zod.ZodObject<{
@@ -1019,7 +1019,7 @@ export declare const ApproveVatReturnResponse: zod.ZodObject<{
1019
1019
  updated_at: zod.z.ZodISODateTime;
1020
1020
  }, zod.z.core.$strip>;
1021
1021
  /**
1022
- * @summary Record a VAT return as submitted to eDavki (accountant only)
1022
+ * @summary Record a VAT return as submitted to eDavki (accounting access)
1023
1023
  */
1024
1024
  export declare const submitVatReturnPathIdRegExp: RegExp;
1025
1025
  export declare const SubmitVatReturnParams: zod.ZodObject<{
@@ -1104,7 +1104,7 @@ export declare const SubmitVatReturnResponse: zod.ZodObject<{
1104
1104
  updated_at: zod.z.ZodISODateTime;
1105
1105
  }, zod.z.core.$strip>;
1106
1106
  /**
1107
- * @summary Reopen an approved VAT return back to draft (accountant only)
1107
+ * @summary Reopen an approved VAT return back to draft (accounting access)
1108
1108
  */
1109
1109
  export declare const reopenVatReturnPathIdRegExp: RegExp;
1110
1110
  export declare const ReopenVatReturnParams: zod.ZodObject<{