nordlet 0.2.2 → 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.
- package/dist/api/resources/account/client/Client.d.ts +155 -0
- package/dist/api/resources/account/client/Client.js +587 -0
- package/dist/api/resources/account/client/requests/PostV1AccountConsentAcceptRequest.d.ts +11 -0
- package/dist/api/resources/account/client/requests/PostV1AccountConsentAcceptRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountDeleteRequest.d.ts +9 -0
- package/dist/api/resources/account/client/requests/PostV1AccountDeleteRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountEmailChangeRequestRequest.d.ts +18 -0
- package/dist/api/resources/account/client/requests/PostV1AccountEmailChangeRequestRequest.js +12 -0
- package/dist/api/resources/account/client/requests/PostV1AccountExportRequest.d.ts +5 -0
- package/dist/api/resources/account/client/requests/PostV1AccountExportRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountInvitesAcceptRequest.d.ts +2 -0
- package/dist/api/resources/account/client/requests/PostV1AccountLoginLinkRequestRequest.d.ts +2 -0
- package/dist/api/resources/account/client/requests/PostV1AccountProfileUpdateRequest.d.ts +7 -0
- package/dist/api/resources/account/client/requests/PostV1AccountProfileUpdateRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountSessionsListRequest.d.ts +5 -0
- package/dist/api/resources/account/client/requests/PostV1AccountSessionsListRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountSessionsRevokeOthersRequest.d.ts +5 -0
- package/dist/api/resources/account/client/requests/PostV1AccountSessionsRevokeOthersRequest.js +3 -0
- package/dist/api/resources/account/client/requests/PostV1AccountSessionsRevokeRequest.d.ts +9 -0
- package/dist/api/resources/account/client/requests/PostV1AccountSessionsRevokeRequest.js +3 -0
- package/dist/api/resources/account/client/requests/index.d.ts +8 -0
- package/dist/api/resources/account/client/requests/index.js +3 -1
- package/dist/api/resources/account/types/PostV1AccountConsentAcceptResponse.d.ts +9 -0
- package/dist/api/resources/account/types/PostV1AccountConsentAcceptResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountDeleteResponse.d.ts +3 -0
- package/dist/api/resources/account/types/PostV1AccountDeleteResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountEmailChangeRequestResponse.d.ts +3 -0
- package/dist/api/resources/account/types/PostV1AccountEmailChangeRequestResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountExportResponse.d.ts +77 -0
- package/dist/api/resources/account/types/PostV1AccountExportResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountMeResponse.d.ts +10 -0
- package/dist/api/resources/account/types/PostV1AccountProfileUpdateResponse.d.ts +5 -0
- package/dist/api/resources/account/types/PostV1AccountProfileUpdateResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountSessionsListResponse.d.ts +15 -0
- package/dist/api/resources/account/types/PostV1AccountSessionsListResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountSessionsRevokeOthersResponse.d.ts +3 -0
- package/dist/api/resources/account/types/PostV1AccountSessionsRevokeOthersResponse.js +3 -0
- package/dist/api/resources/account/types/PostV1AccountSessionsRevokeResponse.d.ts +3 -0
- package/dist/api/resources/account/types/PostV1AccountSessionsRevokeResponse.js +3 -0
- package/dist/api/resources/account/types/index.d.ts +8 -0
- package/dist/api/resources/account/types/index.js +8 -0
- package/dist/api/resources/hr/client/Client.d.ts +42 -0
- package/dist/api/resources/hr/client/Client.js +150 -0
- package/dist/api/resources/hr/client/requests/PostV1HrEmployeesAnonymizeRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/PostV1HrEmployeesAnonymizeRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/PostV1HrEmployeesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/hr/client/requests/PostV1HrEmployeesDeleteRequest.js +3 -0
- package/dist/api/resources/hr/client/requests/index.d.ts +2 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesAnonymizeResponse.d.ts +35 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesAnonymizeResponse.js +11 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesDeleteResponse.js +3 -0
- package/dist/api/resources/hr/types/index.d.ts +2 -0
- package/dist/api/resources/hr/types/index.js +2 -0
- package/dist/api/resources/partners/client/Client.d.ts +22 -0
- package/dist/api/resources/partners/client/Client.js +76 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersAnonymizeRequest.d.ts +9 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersAnonymizeRequest.js +3 -0
- package/dist/api/resources/partners/client/requests/index.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersAnonymizeResponse.d.ts +4 -0
- package/dist/api/resources/partners/types/PostV1PartnersAnonymizeResponse.js +3 -0
- package/dist/api/resources/partners/types/index.d.ts +1 -0
- package/dist/api/resources/partners/types/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PostV1HrEmployeesAnonymizeResponse = void 0;
|
|
5
|
+
var PostV1HrEmployeesAnonymizeResponse;
|
|
6
|
+
(function (PostV1HrEmployeesAnonymizeResponse) {
|
|
7
|
+
PostV1HrEmployeesAnonymizeResponse.Status = {
|
|
8
|
+
Active: "active",
|
|
9
|
+
Terminated: "terminated",
|
|
10
|
+
};
|
|
11
|
+
})(PostV1HrEmployeesAnonymizeResponse || (exports.PostV1HrEmployeesAnonymizeResponse = PostV1HrEmployeesAnonymizeResponse = {}));
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from "./PostV1HrContractsCreateResponse.js";
|
|
2
2
|
export * from "./PostV1HrContractsEndResponse.js";
|
|
3
3
|
export * from "./PostV1HrContractsListResponse.js";
|
|
4
|
+
export * from "./PostV1HrEmployeesAnonymizeResponse.js";
|
|
4
5
|
export * from "./PostV1HrEmployeesAttachmentsListResponse.js";
|
|
5
6
|
export * from "./PostV1HrEmployeesCreateResponse.js";
|
|
7
|
+
export * from "./PostV1HrEmployeesDeleteResponse.js";
|
|
6
8
|
export * from "./PostV1HrEmployeesGetResponse.js";
|
|
7
9
|
export * from "./PostV1HrEmployeesListResponse.js";
|
|
8
10
|
export * from "./PostV1HrEmployeesRecordsCreateResponse.js";
|
|
@@ -17,8 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./PostV1HrContractsCreateResponse.js"), exports);
|
|
18
18
|
__exportStar(require("./PostV1HrContractsEndResponse.js"), exports);
|
|
19
19
|
__exportStar(require("./PostV1HrContractsListResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./PostV1HrEmployeesAnonymizeResponse.js"), exports);
|
|
20
21
|
__exportStar(require("./PostV1HrEmployeesAttachmentsListResponse.js"), exports);
|
|
21
22
|
__exportStar(require("./PostV1HrEmployeesCreateResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./PostV1HrEmployeesDeleteResponse.js"), exports);
|
|
22
24
|
__exportStar(require("./PostV1HrEmployeesGetResponse.js"), exports);
|
|
23
25
|
__exportStar(require("./PostV1HrEmployeesListResponse.js"), exports);
|
|
24
26
|
__exportStar(require("./PostV1HrEmployeesRecordsCreateResponse.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.
|
|
@@ -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";
|
|
@@ -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);
|