nordlet 0.2.1 → 0.2.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.
Files changed (88) hide show
  1. package/dist/Client.d.ts +3 -0
  2. package/dist/Client.js +28 -24
  3. package/dist/api/resources/account/client/Client.d.ts +155 -0
  4. package/dist/api/resources/account/client/Client.js +587 -0
  5. package/dist/api/resources/account/client/requests/PostV1AccountConsentAcceptRequest.d.ts +11 -0
  6. package/dist/api/resources/account/client/requests/PostV1AccountConsentAcceptRequest.js +3 -0
  7. package/dist/api/resources/account/client/requests/PostV1AccountDeleteRequest.d.ts +9 -0
  8. package/dist/api/resources/account/client/requests/PostV1AccountDeleteRequest.js +3 -0
  9. package/dist/api/resources/account/client/requests/PostV1AccountEmailChangeRequestRequest.d.ts +18 -0
  10. package/dist/api/resources/account/client/requests/PostV1AccountEmailChangeRequestRequest.js +12 -0
  11. package/dist/api/resources/account/client/requests/PostV1AccountExportRequest.d.ts +5 -0
  12. package/dist/api/resources/account/client/requests/PostV1AccountExportRequest.js +3 -0
  13. package/dist/api/resources/account/client/requests/PostV1AccountInvitesAcceptRequest.d.ts +2 -0
  14. package/dist/api/resources/account/client/requests/PostV1AccountLoginLinkRequestRequest.d.ts +2 -0
  15. package/dist/api/resources/account/client/requests/PostV1AccountProfileUpdateRequest.d.ts +7 -0
  16. package/dist/api/resources/account/client/requests/PostV1AccountProfileUpdateRequest.js +3 -0
  17. package/dist/api/resources/account/client/requests/PostV1AccountSessionsListRequest.d.ts +5 -0
  18. package/dist/api/resources/account/client/requests/PostV1AccountSessionsListRequest.js +3 -0
  19. package/dist/api/resources/account/client/requests/PostV1AccountSessionsRevokeOthersRequest.d.ts +5 -0
  20. package/dist/api/resources/account/client/requests/PostV1AccountSessionsRevokeOthersRequest.js +3 -0
  21. package/dist/api/resources/account/client/requests/PostV1AccountSessionsRevokeRequest.d.ts +9 -0
  22. package/dist/api/resources/account/client/requests/PostV1AccountSessionsRevokeRequest.js +3 -0
  23. package/dist/api/resources/account/client/requests/index.d.ts +8 -0
  24. package/dist/api/resources/account/client/requests/index.js +3 -1
  25. package/dist/api/resources/account/types/PostV1AccountConsentAcceptResponse.d.ts +9 -0
  26. package/dist/api/resources/account/types/PostV1AccountConsentAcceptResponse.js +3 -0
  27. package/dist/api/resources/account/types/PostV1AccountDeleteResponse.d.ts +3 -0
  28. package/dist/api/resources/account/types/PostV1AccountDeleteResponse.js +3 -0
  29. package/dist/api/resources/account/types/PostV1AccountEmailChangeRequestResponse.d.ts +3 -0
  30. package/dist/api/resources/account/types/PostV1AccountEmailChangeRequestResponse.js +3 -0
  31. package/dist/api/resources/account/types/PostV1AccountExportResponse.d.ts +77 -0
  32. package/dist/api/resources/account/types/PostV1AccountExportResponse.js +3 -0
  33. package/dist/api/resources/account/types/PostV1AccountMeResponse.d.ts +10 -0
  34. package/dist/api/resources/account/types/PostV1AccountProfileUpdateResponse.d.ts +5 -0
  35. package/dist/api/resources/account/types/PostV1AccountProfileUpdateResponse.js +3 -0
  36. package/dist/api/resources/account/types/PostV1AccountSessionsListResponse.d.ts +15 -0
  37. package/dist/api/resources/account/types/PostV1AccountSessionsListResponse.js +3 -0
  38. package/dist/api/resources/account/types/PostV1AccountSessionsRevokeOthersResponse.d.ts +3 -0
  39. package/dist/api/resources/account/types/PostV1AccountSessionsRevokeOthersResponse.js +3 -0
  40. package/dist/api/resources/account/types/PostV1AccountSessionsRevokeResponse.d.ts +3 -0
  41. package/dist/api/resources/account/types/PostV1AccountSessionsRevokeResponse.js +3 -0
  42. package/dist/api/resources/account/types/index.d.ts +8 -0
  43. package/dist/api/resources/account/types/index.js +8 -0
  44. package/dist/api/resources/hr/client/Client.d.ts +42 -0
  45. package/dist/api/resources/hr/client/Client.js +150 -0
  46. package/dist/api/resources/hr/client/requests/PostV1HrEmployeesAnonymizeRequest.d.ts +9 -0
  47. package/dist/api/resources/hr/client/requests/PostV1HrEmployeesAnonymizeRequest.js +3 -0
  48. package/dist/api/resources/hr/client/requests/PostV1HrEmployeesDeleteRequest.d.ts +9 -0
  49. package/dist/api/resources/hr/client/requests/PostV1HrEmployeesDeleteRequest.js +3 -0
  50. package/dist/api/resources/hr/client/requests/index.d.ts +2 -0
  51. package/dist/api/resources/hr/types/PostV1HrEmployeesAnonymizeResponse.d.ts +35 -0
  52. package/dist/api/resources/hr/types/PostV1HrEmployeesAnonymizeResponse.js +11 -0
  53. package/dist/api/resources/hr/types/PostV1HrEmployeesDeleteResponse.d.ts +3 -0
  54. package/dist/api/resources/hr/types/PostV1HrEmployeesDeleteResponse.js +3 -0
  55. package/dist/api/resources/hr/types/index.d.ts +2 -0
  56. package/dist/api/resources/hr/types/index.js +2 -0
  57. package/dist/api/resources/index.d.ts +3 -0
  58. package/dist/api/resources/index.js +4 -1
  59. package/dist/api/resources/migration/client/Client.d.ts +57 -0
  60. package/dist/api/resources/migration/client/Client.js +203 -0
  61. package/dist/api/resources/migration/client/index.d.ts +1 -0
  62. package/dist/api/resources/migration/client/index.js +17 -0
  63. package/dist/api/resources/migration/client/requests/PostV1MigrationBooksImportRequest.d.ts +196 -0
  64. package/dist/api/resources/migration/client/requests/PostV1MigrationBooksImportRequest.js +40 -0
  65. package/dist/api/resources/migration/client/requests/PostV1MigrationBooksValidateRequest.d.ts +196 -0
  66. package/dist/api/resources/migration/client/requests/PostV1MigrationBooksValidateRequest.js +40 -0
  67. package/dist/api/resources/migration/client/requests/index.d.ts +2 -0
  68. package/dist/api/resources/migration/client/requests/index.js +7 -0
  69. package/dist/api/resources/migration/exports.d.ts +2 -0
  70. package/dist/api/resources/migration/exports.js +21 -0
  71. package/dist/api/resources/migration/index.d.ts +2 -0
  72. package/dist/api/resources/migration/index.js +18 -0
  73. package/dist/api/resources/migration/types/PostV1MigrationBooksImportResponse.d.ts +71 -0
  74. package/dist/api/resources/migration/types/PostV1MigrationBooksImportResponse.js +3 -0
  75. package/dist/api/resources/migration/types/PostV1MigrationBooksValidateResponse.d.ts +71 -0
  76. package/dist/api/resources/migration/types/PostV1MigrationBooksValidateResponse.js +3 -0
  77. package/dist/api/resources/migration/types/index.d.ts +2 -0
  78. package/dist/api/resources/migration/types/index.js +18 -0
  79. package/dist/api/resources/partners/client/Client.d.ts +22 -0
  80. package/dist/api/resources/partners/client/Client.js +76 -0
  81. package/dist/api/resources/partners/client/requests/PostV1PartnersAnonymizeRequest.d.ts +9 -0
  82. package/dist/api/resources/partners/client/requests/PostV1PartnersAnonymizeRequest.js +3 -0
  83. package/dist/api/resources/partners/client/requests/index.d.ts +1 -0
  84. package/dist/api/resources/partners/types/PostV1PartnersAnonymizeResponse.d.ts +4 -0
  85. package/dist/api/resources/partners/types/PostV1PartnersAnonymizeResponse.js +3 -0
  86. package/dist/api/resources/partners/types/index.d.ts +1 -0
  87. package/dist/api/resources/partners/types/index.js +1 -0
  88. package/package.json +1 -1
@@ -8,6 +8,8 @@ export interface PostV1AccountInvitesAcceptRequest {
8
8
  token: string;
9
9
  name?: string;
10
10
  locale?: PostV1AccountInvitesAcceptRequest.Locale;
11
+ acceptTerms?: boolean;
12
+ acceptDpa?: boolean;
11
13
  }
12
14
  export declare namespace PostV1AccountInvitesAcceptRequest {
13
15
  const Locale: {
@@ -7,6 +7,8 @@
7
7
  export interface PostV1AccountLoginLinkRequestRequest {
8
8
  email: string;
9
9
  locale?: PostV1AccountLoginLinkRequestRequest.Locale;
10
+ acceptTerms?: boolean;
11
+ acceptDpa?: boolean;
10
12
  }
11
13
  export declare namespace PostV1AccountLoginLinkRequestRequest {
12
14
  const Locale: {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface PostV1AccountProfileUpdateRequest {
6
+ name: string | null;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export type PostV1AccountSessionsListRequest = {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export type PostV1AccountSessionsRevokeOthersRequest = {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface PostV1AccountSessionsRevokeRequest {
8
+ id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,10 @@ export type { PostV1AccountCompaniesDeleteRequest } from "./PostV1AccountCompani
8
8
  export type { PostV1AccountCompaniesProfileRequest } from "./PostV1AccountCompaniesProfileRequest.js";
9
9
  export type { PostV1AccountCompaniesSelectRequest } from "./PostV1AccountCompaniesSelectRequest.js";
10
10
  export type { PostV1AccountCompaniesUpdateRequest } from "./PostV1AccountCompaniesUpdateRequest.js";
11
+ export type { PostV1AccountConsentAcceptRequest } from "./PostV1AccountConsentAcceptRequest.js";
12
+ export type { PostV1AccountDeleteRequest } from "./PostV1AccountDeleteRequest.js";
13
+ export { PostV1AccountEmailChangeRequestRequest } from "./PostV1AccountEmailChangeRequestRequest.js";
14
+ export type { PostV1AccountExportRequest } from "./PostV1AccountExportRequest.js";
11
15
  export { PostV1AccountInvitesAcceptRequest } from "./PostV1AccountInvitesAcceptRequest.js";
12
16
  export { PostV1AccountInvitesCreateRequest } from "./PostV1AccountInvitesCreateRequest.js";
13
17
  export type { PostV1AccountInvitesGetRequest } from "./PostV1AccountInvitesGetRequest.js";
@@ -21,3 +25,7 @@ export type { PostV1AccountMembersListRequest } from "./PostV1AccountMembersList
21
25
  export type { PostV1AccountMembersRemoveRequest } from "./PostV1AccountMembersRemoveRequest.js";
22
26
  export { PostV1AccountMembersSetRoleRequest } from "./PostV1AccountMembersSetRoleRequest.js";
23
27
  export type { PostV1AccountMeRequest } from "./PostV1AccountMeRequest.js";
28
+ export type { PostV1AccountProfileUpdateRequest } from "./PostV1AccountProfileUpdateRequest.js";
29
+ export type { PostV1AccountSessionsListRequest } from "./PostV1AccountSessionsListRequest.js";
30
+ export type { PostV1AccountSessionsRevokeOthersRequest } from "./PostV1AccountSessionsRevokeOthersRequest.js";
31
+ export type { PostV1AccountSessionsRevokeRequest } from "./PostV1AccountSessionsRevokeRequest.js";
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PostV1AccountMembersSetRoleRequest = exports.PostV1AccountLoginLinkRequestRequest = exports.PostV1AccountLocaleSetRequest = exports.PostV1AccountInvitesCreateRequest = exports.PostV1AccountInvitesAcceptRequest = exports.PostV1AccountCompaniesCreateRequest = void 0;
3
+ exports.PostV1AccountMembersSetRoleRequest = exports.PostV1AccountLoginLinkRequestRequest = exports.PostV1AccountLocaleSetRequest = exports.PostV1AccountInvitesCreateRequest = exports.PostV1AccountInvitesAcceptRequest = exports.PostV1AccountEmailChangeRequestRequest = exports.PostV1AccountCompaniesCreateRequest = void 0;
4
4
  var PostV1AccountCompaniesCreateRequest_js_1 = require("./PostV1AccountCompaniesCreateRequest.js");
5
5
  Object.defineProperty(exports, "PostV1AccountCompaniesCreateRequest", { enumerable: true, get: function () { return PostV1AccountCompaniesCreateRequest_js_1.PostV1AccountCompaniesCreateRequest; } });
6
+ var PostV1AccountEmailChangeRequestRequest_js_1 = require("./PostV1AccountEmailChangeRequestRequest.js");
7
+ Object.defineProperty(exports, "PostV1AccountEmailChangeRequestRequest", { enumerable: true, get: function () { return PostV1AccountEmailChangeRequestRequest_js_1.PostV1AccountEmailChangeRequestRequest; } });
6
8
  var PostV1AccountInvitesAcceptRequest_js_1 = require("./PostV1AccountInvitesAcceptRequest.js");
7
9
  Object.defineProperty(exports, "PostV1AccountInvitesAcceptRequest", { enumerable: true, get: function () { return PostV1AccountInvitesAcceptRequest_js_1.PostV1AccountInvitesAcceptRequest; } });
8
10
  var PostV1AccountInvitesCreateRequest_js_1 = require("./PostV1AccountInvitesCreateRequest.js");
@@ -0,0 +1,9 @@
1
+ export interface PostV1AccountConsentAcceptResponse {
2
+ termsVersion: string | null;
3
+ termsAcceptedAt: string | null;
4
+ dpaVersion: string | null;
5
+ dpaAcceptedAt: string | null;
6
+ currentTermsVersion: string;
7
+ currentDpaVersion: string;
8
+ required: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface PostV1AccountDeleteResponse {
2
+ deleted: boolean;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface PostV1AccountEmailChangeRequestResponse {
2
+ sent: boolean;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,77 @@
1
+ export interface PostV1AccountExportResponse {
2
+ generatedAt: string;
3
+ user: PostV1AccountExportResponse.User;
4
+ consent: PostV1AccountExportResponse.Consent;
5
+ memberships: PostV1AccountExportResponse.Memberships.Item[];
6
+ sessions: PostV1AccountExportResponse.Sessions.Item[];
7
+ billing: PostV1AccountExportResponse.Billing | null;
8
+ creditTransactions: PostV1AccountExportResponse.CreditTransactions.Item[];
9
+ auditEntries: PostV1AccountExportResponse.AuditEntries.Item[];
10
+ }
11
+ export declare namespace PostV1AccountExportResponse {
12
+ interface User {
13
+ id: string;
14
+ email: string;
15
+ name: string | null;
16
+ locale: string;
17
+ plan: string;
18
+ createdAt: string;
19
+ }
20
+ interface Consent {
21
+ termsVersion: string | null;
22
+ termsAcceptedAt: string | null;
23
+ dpaVersion: string | null;
24
+ dpaAcceptedAt: string | null;
25
+ currentTermsVersion: string;
26
+ currentDpaVersion: string;
27
+ required: boolean;
28
+ }
29
+ type Memberships = Memberships.Item[];
30
+ namespace Memberships {
31
+ interface Item {
32
+ companyId: string;
33
+ companyName: string;
34
+ role: string;
35
+ since: string;
36
+ }
37
+ }
38
+ type Sessions = Sessions.Item[];
39
+ namespace Sessions {
40
+ interface Item {
41
+ id: string;
42
+ companyId: string | null;
43
+ createdAt: string;
44
+ expiresAt: string;
45
+ current: boolean;
46
+ }
47
+ }
48
+ interface Billing {
49
+ status: string;
50
+ plan: string;
51
+ balanceCents: number;
52
+ trialEndsAt: string | null;
53
+ firstTopUpAt: string | null;
54
+ }
55
+ type CreditTransactions = CreditTransactions.Item[];
56
+ namespace CreditTransactions {
57
+ interface Item {
58
+ id: string;
59
+ type: string;
60
+ amountCents: number;
61
+ balanceAfterCents: number;
62
+ description: string;
63
+ createdAt: string;
64
+ }
65
+ }
66
+ type AuditEntries = AuditEntries.Item[];
67
+ namespace AuditEntries {
68
+ interface Item {
69
+ id: number;
70
+ companyId: string;
71
+ action: string;
72
+ entity: string;
73
+ entityId: string | null;
74
+ createdAt: string;
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,6 +4,7 @@ export interface PostV1AccountMeResponse {
4
4
  activeCompanyId: string | null;
5
5
  role: string | null;
6
6
  billing: PostV1AccountMeResponse.Billing;
7
+ consent: PostV1AccountMeResponse.Consent;
7
8
  companies: PostV1AccountMeResponse.Companies.Item[];
8
9
  }
9
10
  export declare namespace PostV1AccountMeResponse {
@@ -29,6 +30,15 @@ export declare namespace PostV1AccountMeResponse {
29
30
  };
30
31
  type Status = (typeof Status)[keyof typeof Status];
31
32
  }
33
+ interface Consent {
34
+ termsVersion: string | null;
35
+ termsAcceptedAt: string | null;
36
+ dpaVersion: string | null;
37
+ dpaAcceptedAt: string | null;
38
+ currentTermsVersion: string;
39
+ currentDpaVersion: string;
40
+ required: boolean;
41
+ }
32
42
  type Companies = Companies.Item[];
33
43
  namespace Companies {
34
44
  interface Item {
@@ -0,0 +1,5 @@
1
+ export interface PostV1AccountProfileUpdateResponse {
2
+ id: string;
3
+ email: string;
4
+ name: string | null;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ export interface PostV1AccountSessionsListResponse {
2
+ rows: PostV1AccountSessionsListResponse.Rows.Item[];
3
+ }
4
+ export declare namespace PostV1AccountSessionsListResponse {
5
+ type Rows = Rows.Item[];
6
+ namespace Rows {
7
+ interface Item {
8
+ id: string;
9
+ companyId: string | null;
10
+ createdAt: string;
11
+ expiresAt: string;
12
+ current: boolean;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface PostV1AccountSessionsRevokeOthersResponse {
2
+ revoked: number;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface PostV1AccountSessionsRevokeResponse {
2
+ revoked: boolean;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,10 @@ export * from "./PostV1AccountCompaniesDeleteResponse.js";
8
8
  export * from "./PostV1AccountCompaniesProfileResponse.js";
9
9
  export * from "./PostV1AccountCompaniesSelectResponse.js";
10
10
  export * from "./PostV1AccountCompaniesUpdateResponse.js";
11
+ export * from "./PostV1AccountConsentAcceptResponse.js";
12
+ export * from "./PostV1AccountDeleteResponse.js";
13
+ export * from "./PostV1AccountEmailChangeRequestResponse.js";
14
+ export * from "./PostV1AccountExportResponse.js";
11
15
  export * from "./PostV1AccountInvitesAcceptResponse.js";
12
16
  export * from "./PostV1AccountInvitesCreateResponse.js";
13
17
  export * from "./PostV1AccountInvitesGetResponse.js";
@@ -21,3 +25,7 @@ export * from "./PostV1AccountMembersListResponse.js";
21
25
  export * from "./PostV1AccountMembersRemoveResponse.js";
22
26
  export * from "./PostV1AccountMembersSetRoleResponse.js";
23
27
  export * from "./PostV1AccountMeResponse.js";
28
+ export * from "./PostV1AccountProfileUpdateResponse.js";
29
+ export * from "./PostV1AccountSessionsListResponse.js";
30
+ export * from "./PostV1AccountSessionsRevokeOthersResponse.js";
31
+ export * from "./PostV1AccountSessionsRevokeResponse.js";
@@ -24,6 +24,10 @@ __exportStar(require("./PostV1AccountCompaniesDeleteResponse.js"), exports);
24
24
  __exportStar(require("./PostV1AccountCompaniesProfileResponse.js"), exports);
25
25
  __exportStar(require("./PostV1AccountCompaniesSelectResponse.js"), exports);
26
26
  __exportStar(require("./PostV1AccountCompaniesUpdateResponse.js"), exports);
27
+ __exportStar(require("./PostV1AccountConsentAcceptResponse.js"), exports);
28
+ __exportStar(require("./PostV1AccountDeleteResponse.js"), exports);
29
+ __exportStar(require("./PostV1AccountEmailChangeRequestResponse.js"), exports);
30
+ __exportStar(require("./PostV1AccountExportResponse.js"), exports);
27
31
  __exportStar(require("./PostV1AccountInvitesAcceptResponse.js"), exports);
28
32
  __exportStar(require("./PostV1AccountInvitesCreateResponse.js"), exports);
29
33
  __exportStar(require("./PostV1AccountInvitesGetResponse.js"), exports);
@@ -37,3 +41,7 @@ __exportStar(require("./PostV1AccountMembersListResponse.js"), exports);
37
41
  __exportStar(require("./PostV1AccountMembersRemoveResponse.js"), exports);
38
42
  __exportStar(require("./PostV1AccountMembersSetRoleResponse.js"), exports);
39
43
  __exportStar(require("./PostV1AccountMeResponse.js"), exports);
44
+ __exportStar(require("./PostV1AccountProfileUpdateResponse.js"), exports);
45
+ __exportStar(require("./PostV1AccountSessionsListResponse.js"), exports);
46
+ __exportStar(require("./PostV1AccountSessionsRevokeOthersResponse.js"), exports);
47
+ __exportStar(require("./PostV1AccountSessionsRevokeResponse.js"), exports);
@@ -147,6 +147,48 @@ export declare class HrClient {
147
147
  */
148
148
  postV1HrEmployeesList(request?: NordletApi.PostV1HrEmployeesListRequest, requestOptions?: HrClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1HrEmployeesListResponse>;
149
149
  private __postV1HrEmployeesList;
150
+ /**
151
+ * @param {NordletApi.PostV1HrEmployeesDeleteRequest} request
152
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
153
+ *
154
+ * @throws {@link NordletApi.BadRequestError}
155
+ * @throws {@link NordletApi.UnauthorizedError}
156
+ * @throws {@link NordletApi.ForbiddenError}
157
+ * @throws {@link NordletApi.NotFoundError}
158
+ * @throws {@link NordletApi.ConflictError}
159
+ * @throws {@link NordletApi.UnprocessableEntityError}
160
+ * @throws {@link NordletApi.TooManyRequestsError}
161
+ * @throws {@link NordletApi.InternalServerError}
162
+ *
163
+ * @example
164
+ * await client.hr.postV1HrEmployeesDelete({
165
+ * id: "id"
166
+ * })
167
+ */
168
+ postV1HrEmployeesDelete(request: NordletApi.PostV1HrEmployeesDeleteRequest, requestOptions?: HrClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1HrEmployeesDeleteResponse>;
169
+ private __postV1HrEmployeesDelete;
170
+ /**
171
+ * Replaces the name with a placeholder and removes personal code, birth date, contact details, address, bank account, social-insurance number, notes and sick-leave reasons. Payroll and contract rows stay linked to the record for the statutory retention period.
172
+ *
173
+ * @param {NordletApi.PostV1HrEmployeesAnonymizeRequest} request
174
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
175
+ *
176
+ * @throws {@link NordletApi.BadRequestError}
177
+ * @throws {@link NordletApi.UnauthorizedError}
178
+ * @throws {@link NordletApi.ForbiddenError}
179
+ * @throws {@link NordletApi.NotFoundError}
180
+ * @throws {@link NordletApi.ConflictError}
181
+ * @throws {@link NordletApi.UnprocessableEntityError}
182
+ * @throws {@link NordletApi.TooManyRequestsError}
183
+ * @throws {@link NordletApi.InternalServerError}
184
+ *
185
+ * @example
186
+ * await client.hr.blankAnEmployeesPersonalDataAndHideTheRecord({
187
+ * id: "id"
188
+ * })
189
+ */
190
+ blankAnEmployeesPersonalDataAndHideTheRecord(request: NordletApi.PostV1HrEmployeesAnonymizeRequest, requestOptions?: HrClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1HrEmployeesAnonymizeResponse>;
191
+ private __blankAnEmployeesPersonalDataAndHideTheRecord;
150
192
  /**
151
193
  * @param {NordletApi.PostV1HrContractsCreateRequest} request
152
194
  * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -562,6 +562,156 @@ class HrClient {
562
562
  }
563
563
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/employees/list");
564
564
  }
565
+ /**
566
+ * @param {NordletApi.PostV1HrEmployeesDeleteRequest} request
567
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
568
+ *
569
+ * @throws {@link NordletApi.BadRequestError}
570
+ * @throws {@link NordletApi.UnauthorizedError}
571
+ * @throws {@link NordletApi.ForbiddenError}
572
+ * @throws {@link NordletApi.NotFoundError}
573
+ * @throws {@link NordletApi.ConflictError}
574
+ * @throws {@link NordletApi.UnprocessableEntityError}
575
+ * @throws {@link NordletApi.TooManyRequestsError}
576
+ * @throws {@link NordletApi.InternalServerError}
577
+ *
578
+ * @example
579
+ * await client.hr.postV1HrEmployeesDelete({
580
+ * id: "id"
581
+ * })
582
+ */
583
+ postV1HrEmployeesDelete(request, requestOptions) {
584
+ return core.HttpResponsePromise.fromPromise(this.__postV1HrEmployeesDelete(request, requestOptions));
585
+ }
586
+ async __postV1HrEmployeesDelete(request, requestOptions) {
587
+ const _authRequest = await this._options.authProvider.getAuthRequest();
588
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
589
+ const _response = await core.fetcher({
590
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
591
+ (await core.Supplier.get(this._options.environment)) ??
592
+ environments.NordletApiEnvironment.Production, "v1/hr/employees/delete"),
593
+ method: "POST",
594
+ headers: _headers,
595
+ contentType: "application/json",
596
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
597
+ requestType: "json",
598
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
599
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
600
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
601
+ abortSignal: requestOptions?.abortSignal,
602
+ fetchFn: this._options?.fetch,
603
+ logging: this._options.logging,
604
+ });
605
+ if (_response.ok) {
606
+ return {
607
+ data: _response.body,
608
+ rawResponse: _response.rawResponse,
609
+ };
610
+ }
611
+ if (_response.error.reason === "status-code") {
612
+ switch (_response.error.statusCode) {
613
+ case 400:
614
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
615
+ case 401:
616
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
617
+ case 403:
618
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
619
+ case 404:
620
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
621
+ case 409:
622
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
623
+ case 422:
624
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
625
+ case 429:
626
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
627
+ case 500:
628
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
629
+ default:
630
+ throw new errors.NordletApiError({
631
+ statusCode: _response.error.statusCode,
632
+ body: _response.error.body,
633
+ rawResponse: _response.rawResponse,
634
+ });
635
+ }
636
+ }
637
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/employees/delete");
638
+ }
639
+ /**
640
+ * Replaces the name with a placeholder and removes personal code, birth date, contact details, address, bank account, social-insurance number, notes and sick-leave reasons. Payroll and contract rows stay linked to the record for the statutory retention period.
641
+ *
642
+ * @param {NordletApi.PostV1HrEmployeesAnonymizeRequest} request
643
+ * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
644
+ *
645
+ * @throws {@link NordletApi.BadRequestError}
646
+ * @throws {@link NordletApi.UnauthorizedError}
647
+ * @throws {@link NordletApi.ForbiddenError}
648
+ * @throws {@link NordletApi.NotFoundError}
649
+ * @throws {@link NordletApi.ConflictError}
650
+ * @throws {@link NordletApi.UnprocessableEntityError}
651
+ * @throws {@link NordletApi.TooManyRequestsError}
652
+ * @throws {@link NordletApi.InternalServerError}
653
+ *
654
+ * @example
655
+ * await client.hr.blankAnEmployeesPersonalDataAndHideTheRecord({
656
+ * id: "id"
657
+ * })
658
+ */
659
+ blankAnEmployeesPersonalDataAndHideTheRecord(request, requestOptions) {
660
+ return core.HttpResponsePromise.fromPromise(this.__blankAnEmployeesPersonalDataAndHideTheRecord(request, requestOptions));
661
+ }
662
+ async __blankAnEmployeesPersonalDataAndHideTheRecord(request, requestOptions) {
663
+ const _authRequest = await this._options.authProvider.getAuthRequest();
664
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
665
+ const _response = await core.fetcher({
666
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
667
+ (await core.Supplier.get(this._options.environment)) ??
668
+ environments.NordletApiEnvironment.Production, "v1/hr/employees/anonymize"),
669
+ method: "POST",
670
+ headers: _headers,
671
+ contentType: "application/json",
672
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
673
+ requestType: "json",
674
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
675
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
676
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
677
+ abortSignal: requestOptions?.abortSignal,
678
+ fetchFn: this._options?.fetch,
679
+ logging: this._options.logging,
680
+ });
681
+ if (_response.ok) {
682
+ return {
683
+ data: _response.body,
684
+ rawResponse: _response.rawResponse,
685
+ };
686
+ }
687
+ if (_response.error.reason === "status-code") {
688
+ switch (_response.error.statusCode) {
689
+ case 400:
690
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
691
+ case 401:
692
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
693
+ case 403:
694
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
695
+ case 404:
696
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
697
+ case 409:
698
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
699
+ case 422:
700
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
701
+ case 429:
702
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
703
+ case 500:
704
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
705
+ default:
706
+ throw new errors.NordletApiError({
707
+ statusCode: _response.error.statusCode,
708
+ body: _response.error.body,
709
+ rawResponse: _response.rawResponse,
710
+ });
711
+ }
712
+ }
713
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/hr/employees/anonymize");
714
+ }
565
715
  /**
566
716
  * @param {NordletApi.PostV1HrContractsCreateRequest} request
567
717
  * @param {HrClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface PostV1HrEmployeesAnonymizeRequest {
8
+ id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface PostV1HrEmployeesDeleteRequest {
8
+ id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,10 @@
1
1
  export { PostV1HrContractsCreateRequest } from "./PostV1HrContractsCreateRequest.js";
2
2
  export type { PostV1HrContractsEndRequest } from "./PostV1HrContractsEndRequest.js";
3
3
  export { PostV1HrContractsListRequest } from "./PostV1HrContractsListRequest.js";
4
+ export type { PostV1HrEmployeesAnonymizeRequest } from "./PostV1HrEmployeesAnonymizeRequest.js";
4
5
  export type { PostV1HrEmployeesAttachmentsListRequest } from "./PostV1HrEmployeesAttachmentsListRequest.js";
5
6
  export type { PostV1HrEmployeesCreateRequest } from "./PostV1HrEmployeesCreateRequest.js";
7
+ export type { PostV1HrEmployeesDeleteRequest } from "./PostV1HrEmployeesDeleteRequest.js";
6
8
  export type { PostV1HrEmployeesGetRequest } from "./PostV1HrEmployeesGetRequest.js";
7
9
  export { PostV1HrEmployeesListRequest } from "./PostV1HrEmployeesListRequest.js";
8
10
  export { PostV1HrEmployeesRecordsCreateRequest } from "./PostV1HrEmployeesRecordsCreateRequest.js";
@@ -0,0 +1,35 @@
1
+ export interface PostV1HrEmployeesAnonymizeResponse {
2
+ id: string;
3
+ code: string | null;
4
+ firstName: string;
5
+ lastName: string;
6
+ personalCode: string | null;
7
+ birthDate: string | null;
8
+ email: string | null;
9
+ phone: string | null;
10
+ address: PostV1HrEmployeesAnonymizeResponse.Address | null;
11
+ iban: string | null;
12
+ socialInsuranceNo: string | null;
13
+ socialInsuranceStart: string | null;
14
+ hireDate: string | null;
15
+ terminationDate: string | null;
16
+ applyNpd: boolean;
17
+ npdOverride: string | null;
18
+ pensionAccumulation: boolean;
19
+ status: PostV1HrEmployeesAnonymizeResponse.Status;
20
+ notes: string | null;
21
+ createdAt: string;
22
+ }
23
+ export declare namespace PostV1HrEmployeesAnonymizeResponse {
24
+ interface Address {
25
+ street?: string | undefined;
26
+ city?: string | undefined;
27
+ postalCode?: string | undefined;
28
+ countryCode?: string | undefined;
29
+ }
30
+ const Status: {
31
+ readonly Active: "active";
32
+ readonly Terminated: "terminated";
33
+ };
34
+ type Status = (typeof Status)[keyof typeof Status];
35
+ }