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
@@ -0,0 +1,196 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * cutoverDate: "cutoverDate"
5
+ * }
6
+ */
7
+ export interface PostV1MigrationBooksValidateRequest {
8
+ cutoverDate: string;
9
+ source?: string;
10
+ accounts?: PostV1MigrationBooksValidateRequest.Accounts.Item[];
11
+ partners?: PostV1MigrationBooksValidateRequest.Partners.Item[];
12
+ items?: PostV1MigrationBooksValidateRequest.Items.Item[];
13
+ openingBalances?: PostV1MigrationBooksValidateRequest.OpeningBalances;
14
+ journal?: PostV1MigrationBooksValidateRequest.Journal.Item[];
15
+ openReceivables?: PostV1MigrationBooksValidateRequest.OpenReceivables.Item[];
16
+ openPayables?: PostV1MigrationBooksValidateRequest.OpenPayables.Item[];
17
+ assetGroups?: PostV1MigrationBooksValidateRequest.AssetGroups.Item[];
18
+ fixedAssets?: PostV1MigrationBooksValidateRequest.FixedAssets.Item[];
19
+ stock?: PostV1MigrationBooksValidateRequest.Stock.Item[];
20
+ }
21
+ export declare namespace PostV1MigrationBooksValidateRequest {
22
+ type Accounts = Accounts.Item[];
23
+ namespace Accounts {
24
+ interface Item {
25
+ code: string;
26
+ name: string;
27
+ type: Item.Type;
28
+ parentCode?: string | undefined;
29
+ isPostable?: boolean | undefined;
30
+ }
31
+ namespace Item {
32
+ const Type: {
33
+ readonly Asset: "asset";
34
+ readonly Liability: "liability";
35
+ readonly Equity: "equity";
36
+ readonly Income: "income";
37
+ readonly Expense: "expense";
38
+ };
39
+ type Type = (typeof Type)[keyof typeof Type];
40
+ }
41
+ }
42
+ type Partners = Partners.Item[];
43
+ namespace Partners {
44
+ interface Item {
45
+ code: string;
46
+ name: string;
47
+ type?: Item.Type | undefined;
48
+ vatCode?: string | undefined;
49
+ email?: string | undefined;
50
+ phone?: string | undefined;
51
+ isCustomer?: boolean | undefined;
52
+ isSupplier?: boolean | undefined;
53
+ paymentTermDays?: number | undefined;
54
+ address?: Item.Address | undefined;
55
+ notes?: string | undefined;
56
+ }
57
+ namespace Item {
58
+ const Type: {
59
+ readonly Company: "company";
60
+ readonly Person: "person";
61
+ };
62
+ type Type = (typeof Type)[keyof typeof Type];
63
+ interface Address {
64
+ street?: string | undefined;
65
+ city?: string | undefined;
66
+ postalCode?: string | undefined;
67
+ countryCode?: string | undefined;
68
+ }
69
+ }
70
+ }
71
+ type Items = Items.Item[];
72
+ namespace Items {
73
+ interface Item {
74
+ code: string;
75
+ name: string;
76
+ type?: Item.Type | undefined;
77
+ unit?: string | undefined;
78
+ barcode?: string | undefined;
79
+ vatRatePercent?: string | undefined;
80
+ salePriceExclVat?: string | undefined;
81
+ purchasePriceExclVat?: string | undefined;
82
+ description?: string | undefined;
83
+ }
84
+ namespace Item {
85
+ const Type: {
86
+ readonly Product: "product";
87
+ readonly Service: "service";
88
+ };
89
+ type Type = (typeof Type)[keyof typeof Type];
90
+ }
91
+ }
92
+ interface OpeningBalances {
93
+ date?: string | undefined;
94
+ balancingAccountCode?: string | undefined;
95
+ entries: OpeningBalances.Entries.Item[];
96
+ }
97
+ namespace OpeningBalances {
98
+ type Entries = Entries.Item[];
99
+ namespace Entries {
100
+ interface Item {
101
+ accountCode: string;
102
+ debit?: string | undefined;
103
+ credit?: string | undefined;
104
+ description?: string | undefined;
105
+ }
106
+ }
107
+ }
108
+ type Journal = Journal.Item[];
109
+ namespace Journal {
110
+ interface Item {
111
+ date: string;
112
+ description?: string | undefined;
113
+ reference?: string | undefined;
114
+ entries: Item.Entries.Item[];
115
+ }
116
+ namespace Item {
117
+ type Entries = Entries.Item[];
118
+ namespace Entries {
119
+ interface Item {
120
+ accountCode: string;
121
+ debit?: string | undefined;
122
+ credit?: string | undefined;
123
+ description?: string | undefined;
124
+ }
125
+ }
126
+ }
127
+ }
128
+ type OpenReceivables = OpenReceivables.Item[];
129
+ namespace OpenReceivables {
130
+ interface Item {
131
+ partnerCode: string;
132
+ dueDate?: string | undefined;
133
+ currency?: string | undefined;
134
+ grossTotal: string;
135
+ vatTotal?: string | undefined;
136
+ outstanding?: string | undefined;
137
+ fxRate?: string | undefined;
138
+ notes?: string | undefined;
139
+ number: string;
140
+ issueDate: string;
141
+ }
142
+ }
143
+ type OpenPayables = OpenPayables.Item[];
144
+ namespace OpenPayables {
145
+ interface Item {
146
+ partnerCode: string;
147
+ dueDate?: string | undefined;
148
+ currency?: string | undefined;
149
+ grossTotal: string;
150
+ vatTotal?: string | undefined;
151
+ outstanding?: string | undefined;
152
+ fxRate?: string | undefined;
153
+ notes?: string | undefined;
154
+ documentNumber: string;
155
+ documentDate: string;
156
+ }
157
+ }
158
+ type AssetGroups = AssetGroups.Item[];
159
+ namespace AssetGroups {
160
+ interface Item {
161
+ code: string;
162
+ name: string;
163
+ assetAccountCode: string;
164
+ depreciationAccountCode: string;
165
+ expenseAccountCode?: string | undefined;
166
+ defaultUsefulLifeMonths?: number | undefined;
167
+ }
168
+ }
169
+ type FixedAssets = FixedAssets.Item[];
170
+ namespace FixedAssets {
171
+ interface Item {
172
+ groupCode: string;
173
+ code: string;
174
+ name: string;
175
+ acquisitionDate: string;
176
+ depreciationStartDate?: string | undefined;
177
+ acquisitionCost: string;
178
+ salvageValue?: string | undefined;
179
+ usefulLifeMonths?: number | undefined;
180
+ accumulatedDepreciation?: string | undefined;
181
+ depreciatedMonths?: number | undefined;
182
+ notes?: string | undefined;
183
+ }
184
+ }
185
+ type Stock = Stock.Item[];
186
+ namespace Stock {
187
+ interface Item {
188
+ warehouseCode?: string | undefined;
189
+ itemCode: string;
190
+ quantity: string;
191
+ unitCost: string;
192
+ lotNumber?: string | undefined;
193
+ expiryDate?: string | undefined;
194
+ }
195
+ }
196
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PostV1MigrationBooksValidateRequest = void 0;
5
+ var PostV1MigrationBooksValidateRequest;
6
+ (function (PostV1MigrationBooksValidateRequest) {
7
+ let Accounts;
8
+ (function (Accounts) {
9
+ let Item;
10
+ (function (Item) {
11
+ Item.Type = {
12
+ Asset: "asset",
13
+ Liability: "liability",
14
+ Equity: "equity",
15
+ Income: "income",
16
+ Expense: "expense",
17
+ };
18
+ })(Item = Accounts.Item || (Accounts.Item = {}));
19
+ })(Accounts = PostV1MigrationBooksValidateRequest.Accounts || (PostV1MigrationBooksValidateRequest.Accounts = {}));
20
+ let Partners;
21
+ (function (Partners) {
22
+ let Item;
23
+ (function (Item) {
24
+ Item.Type = {
25
+ Company: "company",
26
+ Person: "person",
27
+ };
28
+ })(Item = Partners.Item || (Partners.Item = {}));
29
+ })(Partners = PostV1MigrationBooksValidateRequest.Partners || (PostV1MigrationBooksValidateRequest.Partners = {}));
30
+ let Items;
31
+ (function (Items) {
32
+ let Item;
33
+ (function (Item) {
34
+ Item.Type = {
35
+ Product: "product",
36
+ Service: "service",
37
+ };
38
+ })(Item = Items.Item || (Items.Item = {}));
39
+ })(Items = PostV1MigrationBooksValidateRequest.Items || (PostV1MigrationBooksValidateRequest.Items = {}));
40
+ })(PostV1MigrationBooksValidateRequest || (exports.PostV1MigrationBooksValidateRequest = PostV1MigrationBooksValidateRequest = {}));
@@ -0,0 +1,2 @@
1
+ export { PostV1MigrationBooksImportRequest } from "./PostV1MigrationBooksImportRequest.js";
2
+ export { PostV1MigrationBooksValidateRequest } from "./PostV1MigrationBooksValidateRequest.js";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostV1MigrationBooksValidateRequest = exports.PostV1MigrationBooksImportRequest = void 0;
4
+ var PostV1MigrationBooksImportRequest_js_1 = require("./PostV1MigrationBooksImportRequest.js");
5
+ Object.defineProperty(exports, "PostV1MigrationBooksImportRequest", { enumerable: true, get: function () { return PostV1MigrationBooksImportRequest_js_1.PostV1MigrationBooksImportRequest; } });
6
+ var PostV1MigrationBooksValidateRequest_js_1 = require("./PostV1MigrationBooksValidateRequest.js");
7
+ Object.defineProperty(exports, "PostV1MigrationBooksValidateRequest", { enumerable: true, get: function () { return PostV1MigrationBooksValidateRequest_js_1.PostV1MigrationBooksValidateRequest; } });
@@ -0,0 +1,2 @@
1
+ export { MigrationClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MigrationClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "MigrationClient", { enumerable: true, get: function () { return Client_js_1.MigrationClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,71 @@
1
+ export interface PostV1MigrationBooksImportResponse {
2
+ dryRun: boolean;
3
+ cutoverDate: string;
4
+ accounts: PostV1MigrationBooksImportResponse.Accounts;
5
+ partners: PostV1MigrationBooksImportResponse.Partners;
6
+ items: PostV1MigrationBooksImportResponse.Items;
7
+ assetGroups: PostV1MigrationBooksImportResponse.AssetGroups;
8
+ openingBalances: PostV1MigrationBooksImportResponse.OpeningBalances | null;
9
+ journal: PostV1MigrationBooksImportResponse.Journal;
10
+ openReceivables: PostV1MigrationBooksImportResponse.OpenReceivables;
11
+ openPayables: PostV1MigrationBooksImportResponse.OpenPayables;
12
+ fixedAssets: PostV1MigrationBooksImportResponse.FixedAssets;
13
+ stock: PostV1MigrationBooksImportResponse.Stock;
14
+ numberSeries: PostV1MigrationBooksImportResponse.NumberSeries.Item[];
15
+ warnings: string[];
16
+ }
17
+ export declare namespace PostV1MigrationBooksImportResponse {
18
+ interface Accounts {
19
+ created: number;
20
+ existing: number;
21
+ }
22
+ interface Partners {
23
+ created: number;
24
+ existing: number;
25
+ }
26
+ interface Items {
27
+ created: number;
28
+ existing: number;
29
+ }
30
+ interface AssetGroups {
31
+ created: number;
32
+ existing: number;
33
+ }
34
+ interface OpeningBalances {
35
+ journalTransactionId: string | null;
36
+ date: string;
37
+ entries: number;
38
+ debitTotal: string;
39
+ creditTotal: string;
40
+ balancingAmount: string;
41
+ }
42
+ interface Journal {
43
+ transactions: number;
44
+ entries: number;
45
+ }
46
+ interface OpenReceivables {
47
+ created: number;
48
+ outstandingTotal: string;
49
+ }
50
+ interface OpenPayables {
51
+ created: number;
52
+ outstandingTotal: string;
53
+ }
54
+ interface FixedAssets {
55
+ created: number;
56
+ costTotal: string;
57
+ accumulatedDepreciationTotal: string;
58
+ }
59
+ interface Stock {
60
+ movements: number;
61
+ costTotal: string;
62
+ }
63
+ type NumberSeries = NumberSeries.Item[];
64
+ namespace NumberSeries {
65
+ interface Item {
66
+ prefix: string;
67
+ year: number;
68
+ nextNumber: number;
69
+ }
70
+ }
71
+ }
@@ -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,71 @@
1
+ export interface PostV1MigrationBooksValidateResponse {
2
+ dryRun: boolean;
3
+ cutoverDate: string;
4
+ accounts: PostV1MigrationBooksValidateResponse.Accounts;
5
+ partners: PostV1MigrationBooksValidateResponse.Partners;
6
+ items: PostV1MigrationBooksValidateResponse.Items;
7
+ assetGroups: PostV1MigrationBooksValidateResponse.AssetGroups;
8
+ openingBalances: PostV1MigrationBooksValidateResponse.OpeningBalances | null;
9
+ journal: PostV1MigrationBooksValidateResponse.Journal;
10
+ openReceivables: PostV1MigrationBooksValidateResponse.OpenReceivables;
11
+ openPayables: PostV1MigrationBooksValidateResponse.OpenPayables;
12
+ fixedAssets: PostV1MigrationBooksValidateResponse.FixedAssets;
13
+ stock: PostV1MigrationBooksValidateResponse.Stock;
14
+ numberSeries: PostV1MigrationBooksValidateResponse.NumberSeries.Item[];
15
+ warnings: string[];
16
+ }
17
+ export declare namespace PostV1MigrationBooksValidateResponse {
18
+ interface Accounts {
19
+ created: number;
20
+ existing: number;
21
+ }
22
+ interface Partners {
23
+ created: number;
24
+ existing: number;
25
+ }
26
+ interface Items {
27
+ created: number;
28
+ existing: number;
29
+ }
30
+ interface AssetGroups {
31
+ created: number;
32
+ existing: number;
33
+ }
34
+ interface OpeningBalances {
35
+ journalTransactionId: string | null;
36
+ date: string;
37
+ entries: number;
38
+ debitTotal: string;
39
+ creditTotal: string;
40
+ balancingAmount: string;
41
+ }
42
+ interface Journal {
43
+ transactions: number;
44
+ entries: number;
45
+ }
46
+ interface OpenReceivables {
47
+ created: number;
48
+ outstandingTotal: string;
49
+ }
50
+ interface OpenPayables {
51
+ created: number;
52
+ outstandingTotal: string;
53
+ }
54
+ interface FixedAssets {
55
+ created: number;
56
+ costTotal: string;
57
+ accumulatedDepreciationTotal: string;
58
+ }
59
+ interface Stock {
60
+ movements: number;
61
+ costTotal: string;
62
+ }
63
+ type NumberSeries = NumberSeries.Item[];
64
+ namespace NumberSeries {
65
+ interface Item {
66
+ prefix: string;
67
+ year: number;
68
+ nextNumber: number;
69
+ }
70
+ }
71
+ }
@@ -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,2 @@
1
+ export * from "./PostV1MigrationBooksImportResponse.js";
2
+ export * from "./PostV1MigrationBooksValidateResponse.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./PostV1MigrationBooksImportResponse.js"), exports);
18
+ __exportStar(require("./PostV1MigrationBooksValidateResponse.js"), exports);
@@ -403,6 +403,28 @@ export declare class PartnersClient {
403
403
  */
404
404
  postV1PartnersDelete(request: NordletApi.PostV1PartnersDeleteRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1PartnersDeleteResponse>;
405
405
  private __postV1PartnersDelete;
406
+ /**
407
+ * Removes birth date, self-employment certificate number, email, phone, address, notes, contacts, addresses and bank accounts, then hides the partner. The name, code and VAT number stay because issued invoices must keep identifying the counterparty for the statutory retention period.
408
+ *
409
+ * @param {NordletApi.PostV1PartnersAnonymizeRequest} request
410
+ * @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
411
+ *
412
+ * @throws {@link NordletApi.BadRequestError}
413
+ * @throws {@link NordletApi.UnauthorizedError}
414
+ * @throws {@link NordletApi.ForbiddenError}
415
+ * @throws {@link NordletApi.NotFoundError}
416
+ * @throws {@link NordletApi.ConflictError}
417
+ * @throws {@link NordletApi.UnprocessableEntityError}
418
+ * @throws {@link NordletApi.TooManyRequestsError}
419
+ * @throws {@link NordletApi.InternalServerError}
420
+ *
421
+ * @example
422
+ * await client.partners.blankAPartnersPersonalDataAndHideTheRecord({
423
+ * id: "id"
424
+ * })
425
+ */
426
+ blankAPartnersPersonalDataAndHideTheRecord(request: NordletApi.PostV1PartnersAnonymizeRequest, requestOptions?: PartnersClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1PartnersAnonymizeResponse>;
427
+ private __blankAPartnersPersonalDataAndHideTheRecord;
406
428
  /**
407
429
  * @param {NordletApi.PostV1PartnersListRequest} request
408
430
  * @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1517,6 +1517,82 @@ class PartnersClient {
1517
1517
  }
1518
1518
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/partners/delete");
1519
1519
  }
1520
+ /**
1521
+ * Removes birth date, self-employment certificate number, email, phone, address, notes, contacts, addresses and bank accounts, then hides the partner. The name, code and VAT number stay because issued invoices must keep identifying the counterparty for the statutory retention period.
1522
+ *
1523
+ * @param {NordletApi.PostV1PartnersAnonymizeRequest} request
1524
+ * @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
1525
+ *
1526
+ * @throws {@link NordletApi.BadRequestError}
1527
+ * @throws {@link NordletApi.UnauthorizedError}
1528
+ * @throws {@link NordletApi.ForbiddenError}
1529
+ * @throws {@link NordletApi.NotFoundError}
1530
+ * @throws {@link NordletApi.ConflictError}
1531
+ * @throws {@link NordletApi.UnprocessableEntityError}
1532
+ * @throws {@link NordletApi.TooManyRequestsError}
1533
+ * @throws {@link NordletApi.InternalServerError}
1534
+ *
1535
+ * @example
1536
+ * await client.partners.blankAPartnersPersonalDataAndHideTheRecord({
1537
+ * id: "id"
1538
+ * })
1539
+ */
1540
+ blankAPartnersPersonalDataAndHideTheRecord(request, requestOptions) {
1541
+ return core.HttpResponsePromise.fromPromise(this.__blankAPartnersPersonalDataAndHideTheRecord(request, requestOptions));
1542
+ }
1543
+ async __blankAPartnersPersonalDataAndHideTheRecord(request, requestOptions) {
1544
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1545
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1546
+ const _response = await core.fetcher({
1547
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1548
+ (await core.Supplier.get(this._options.environment)) ??
1549
+ environments.NordletApiEnvironment.Production, "v1/partners/anonymize"),
1550
+ method: "POST",
1551
+ headers: _headers,
1552
+ contentType: "application/json",
1553
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1554
+ requestType: "json",
1555
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1556
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1557
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1558
+ abortSignal: requestOptions?.abortSignal,
1559
+ fetchFn: this._options?.fetch,
1560
+ logging: this._options.logging,
1561
+ });
1562
+ if (_response.ok) {
1563
+ return {
1564
+ data: _response.body,
1565
+ rawResponse: _response.rawResponse,
1566
+ };
1567
+ }
1568
+ if (_response.error.reason === "status-code") {
1569
+ switch (_response.error.statusCode) {
1570
+ case 400:
1571
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1572
+ case 401:
1573
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1574
+ case 403:
1575
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1576
+ case 404:
1577
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1578
+ case 409:
1579
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1580
+ case 422:
1581
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1582
+ case 429:
1583
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1584
+ case 500:
1585
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1586
+ default:
1587
+ throw new errors.NordletApiError({
1588
+ statusCode: _response.error.statusCode,
1589
+ body: _response.error.body,
1590
+ rawResponse: _response.rawResponse,
1591
+ });
1592
+ }
1593
+ }
1594
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/partners/anonymize");
1595
+ }
1520
1596
  /**
1521
1597
  * @param {NordletApi.PostV1PartnersListRequest} request
1522
1598
  * @param {PartnersClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface PostV1PartnersAnonymizeRequest {
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 });
@@ -2,6 +2,7 @@ export { PostV1PartnersAddressesCreateRequest } from "./PostV1PartnersAddressesC
2
2
  export type { PostV1PartnersAddressesDeleteRequest } from "./PostV1PartnersAddressesDeleteRequest.js";
3
3
  export { PostV1PartnersAddressesListRequest } from "./PostV1PartnersAddressesListRequest.js";
4
4
  export { PostV1PartnersAddressesUpdateRequest } from "./PostV1PartnersAddressesUpdateRequest.js";
5
+ export type { PostV1PartnersAnonymizeRequest } from "./PostV1PartnersAnonymizeRequest.js";
5
6
  export type { PostV1PartnersBankAccountsCreateRequest } from "./PostV1PartnersBankAccountsCreateRequest.js";
6
7
  export type { PostV1PartnersBankAccountsDeleteRequest } from "./PostV1PartnersBankAccountsDeleteRequest.js";
7
8
  export { PostV1PartnersBankAccountsListRequest } from "./PostV1PartnersBankAccountsListRequest.js";
@@ -0,0 +1,4 @@
1
+ export interface PostV1PartnersAnonymizeResponse {
2
+ id: string;
3
+ anonymized: boolean;
4
+ }
@@ -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 });
@@ -2,6 +2,7 @@ export * from "./PostV1PartnersAddressesCreateResponse.js";
2
2
  export * from "./PostV1PartnersAddressesDeleteResponse.js";
3
3
  export * from "./PostV1PartnersAddressesListResponse.js";
4
4
  export * from "./PostV1PartnersAddressesUpdateResponse.js";
5
+ export * from "./PostV1PartnersAnonymizeResponse.js";
5
6
  export * from "./PostV1PartnersBankAccountsCreateResponse.js";
6
7
  export * from "./PostV1PartnersBankAccountsDeleteResponse.js";
7
8
  export * from "./PostV1PartnersBankAccountsListResponse.js";
@@ -18,6 +18,7 @@ __exportStar(require("./PostV1PartnersAddressesCreateResponse.js"), exports);
18
18
  __exportStar(require("./PostV1PartnersAddressesDeleteResponse.js"), exports);
19
19
  __exportStar(require("./PostV1PartnersAddressesListResponse.js"), exports);
20
20
  __exportStar(require("./PostV1PartnersAddressesUpdateResponse.js"), exports);
21
+ __exportStar(require("./PostV1PartnersAnonymizeResponse.js"), exports);
21
22
  __exportStar(require("./PostV1PartnersBankAccountsCreateResponse.js"), exports);
22
23
  __exportStar(require("./PostV1PartnersBankAccountsDeleteResponse.js"), exports);
23
24
  __exportStar(require("./PostV1PartnersBankAccountsListResponse.js"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nordlet",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Official TypeScript/JavaScript SDK for the Nordlet Accounting API",
5
5
  "license": "MIT",
6
6
  "repository": "github:nordlet/nordlet-sdk-typescript",