nordlet 0.2.2 → 0.2.6
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/PostV1AccountDeleteRequest.d.ts +9 -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/agreements/client/Client.d.ts +0 -1
- package/dist/api/resources/agreements/client/Client.js +0 -1
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsCreateRequest.d.ts +15 -2
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsCreateRequest.js +9 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsUpdateRequest.d.ts +12 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsUpdateRequest.js +9 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsCreateResponse.d.ts +15 -1
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsCreateResponse.js +9 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsGetResponse.d.ts +15 -1
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsGetResponse.js +9 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsListResponse.d.ts +15 -1
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsListResponse.js +9 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsUpdateResponse.d.ts +15 -1
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsUpdateResponse.js +9 -0
- package/dist/api/resources/assets/client/requests/PostV1AssetsAssetsCreateRequest.d.ts +10 -0
- package/dist/api/resources/assets/types/PostV1AssetsAssetsCreateResponse.d.ts +8 -0
- package/dist/api/resources/assets/types/PostV1AssetsAssetsGetResponse.d.ts +8 -0
- package/dist/api/resources/assets/types/PostV1AssetsAssetsListResponse.d.ts +8 -0
- package/dist/api/resources/assets/types/PostV1AssetsAssetsModernizeResponse.d.ts +8 -0
- package/dist/api/resources/bank/client/Client.d.ts +143 -0
- package/dist/api/resources/bank/client/Client.js +521 -0
- package/dist/api/resources/bank/client/requests/PostV1BankAccountsCreateRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsAccountsConfigureRequest.d.ts +20 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsAccountsConfigureRequest.js +13 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesCreateRequest.d.ts +34 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesCreateRequest.js +12 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesDeleteRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesGetRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesGetRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesListRequest.d.ts +46 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesListRequest.js +31 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesUpdateRequest.d.ts +34 -0
- package/dist/api/resources/bank/client/requests/PostV1BankImportTemplatesUpdateRequest.js +12 -0
- package/dist/api/resources/bank/client/requests/PostV1BankStatementsImportRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/PostV1BankTransactionsRecordRequest.d.ts +25 -0
- package/dist/api/resources/bank/client/requests/PostV1BankTransactionsRecordRequest.js +11 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +7 -0
- package/dist/api/resources/bank/client/requests/index.js +11 -1
- package/dist/api/resources/bank/types/PostV1BankFeedsAccountsConfigureResponse.d.ts +23 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsAccountsConfigureResponse.js +13 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsAccountsLinkResponse.d.ts +11 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsAccountsLinkResponse.js +10 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsCompleteResponse.d.ts +11 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsCompleteResponse.js +12 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsGetResponse.d.ts +11 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsGetResponse.js +12 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsSyncResponse.d.ts +6 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesCreateResponse.d.ts +30 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesCreateResponse.js +12 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesDeleteResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesDeleteResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesGetResponse.d.ts +30 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesGetResponse.js +12 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesListResponse.d.ts +41 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesListResponse.js +18 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesUpdateResponse.d.ts +30 -0
- package/dist/api/resources/bank/types/PostV1BankImportTemplatesUpdateResponse.js +12 -0
- package/dist/api/resources/bank/types/PostV1BankStatementsImportResponse.d.ts +7 -0
- package/dist/api/resources/bank/types/PostV1BankTransactionsRecordResponse.d.ts +23 -0
- package/dist/api/resources/bank/types/PostV1BankTransactionsRecordResponse.js +11 -0
- package/dist/api/resources/bank/types/index.d.ts +7 -0
- package/dist/api/resources/bank/types/index.js +7 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsConfirmResponse.d.ts +1 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsCreateRequest.d.ts +1 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsUpdateRequest.d.ts +1 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsCreateResponse.d.ts +1 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsGetResponse.d.ts +1 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsListResponse.d.ts +1 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsUpdateResponse.d.ts +1 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsConfigsListResponse.d.ts +1 -0
- package/dist/api/resources/files/client/Client.d.ts +0 -1
- package/dist/api/resources/files/client/Client.js +0 -1
- package/dist/api/resources/files/client/requests/PostV1FilesUploadRequest.d.ts +1 -2
- package/dist/api/resources/files/types/PostV1FilesGetResponse.d.ts +2 -1
- package/dist/api/resources/files/types/PostV1FilesListResponse.d.ts +2 -1
- package/dist/api/resources/files/types/PostV1FilesUploadResponse.d.ts +2 -1
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesCreateRequest.d.ts +8 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesCreateResponse.d.ts +8 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesGetResponse.d.ts +8 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesListResponse.d.ts +8 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesUpdateResponse.d.ts +8 -0
- package/dist/api/resources/hr/client/Client.d.ts +42 -1
- package/dist/api/resources/hr/client/Client.js +150 -1
- package/dist/api/resources/hr/client/requests/PostV1HrContractsCreateRequest.d.ts +6 -3
- package/dist/api/resources/hr/client/requests/PostV1HrContractsCreateRequest.js +3 -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/PostV1HrEmployeesCreateRequest.d.ts +8 -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/PostV1HrEmployeesUpdateRequest.d.ts +8 -0
- package/dist/api/resources/hr/client/requests/index.d.ts +2 -0
- package/dist/api/resources/hr/types/PostV1HrContractsCreateResponse.d.ts +11 -1
- package/dist/api/resources/hr/types/PostV1HrContractsCreateResponse.js +7 -0
- package/dist/api/resources/hr/types/PostV1HrContractsEndResponse.d.ts +11 -1
- package/dist/api/resources/hr/types/PostV1HrContractsEndResponse.js +7 -0
- package/dist/api/resources/hr/types/PostV1HrContractsListResponse.d.ts +11 -1
- package/dist/api/resources/hr/types/PostV1HrContractsListResponse.js +7 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesAnonymizeResponse.d.ts +43 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesAnonymizeResponse.js +11 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesCreateResponse.d.ts +8 -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/PostV1HrEmployeesGetResponse.d.ts +8 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesListResponse.d.ts +8 -0
- package/dist/api/resources/hr/types/PostV1HrEmployeesUpdateResponse.d.ts +8 -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/ledger/client/requests/PostV1LedgerAccountsCreateRequest.d.ts +17 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerAccountsUpdateRequest.d.ts +19 -0
- package/dist/api/resources/ledger/types/PostV1LedgerAccountsCreateResponse.d.ts +17 -0
- package/dist/api/resources/ledger/types/PostV1LedgerAccountsListResponse.d.ts +17 -0
- package/dist/api/resources/ledger/types/PostV1LedgerAccountsUpdateResponse.d.ts +17 -0
- package/dist/api/resources/ledger/types/PostV1LedgerJournalTransactionsCreateResponse.d.ts +1 -0
- package/dist/api/resources/ledger/types/PostV1LedgerJournalTransactionsGetResponse.d.ts +1 -0
- package/dist/api/resources/ledger/types/PostV1LedgerJournalTransactionsListResponse.d.ts +1 -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/PostV1PartnersCreateRequest.d.ts +1 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersFindOrCreateRequest.d.ts +1 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersUpdateRequest.d.ts +1 -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/PostV1PartnersCreateResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersFindOrCreateResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersGetResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersListResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/PostV1PartnersUpdateResponse.d.ts +1 -0
- package/dist/api/resources/partners/types/index.d.ts +1 -0
- package/dist/api/resources/partners/types/index.js +1 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesCreateRequest.d.ts +1 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCreateRequest.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesCreateResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesGetResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesListResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesRegisterResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesUpdateResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersApproveResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCancelResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCloseResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCreateResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersGetResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersListResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersRejectResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersSubmitResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersUpdateResponse.d.ts +1 -0
- package/dist/api/resources/reference/client/Client.d.ts +0 -40
- package/dist/api/resources/reference/client/Client.js +0 -148
- package/dist/api/resources/reference/client/requests/index.d.ts +0 -2
- package/dist/api/resources/reference/types/index.d.ts +0 -2
- package/dist/api/resources/reference/types/index.js +0 -2
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesCreateRequest.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesApplyAdvanceResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesCreateResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesGetResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesIssueResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesListResponse.d.ts +1 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesUpdateResponse.d.ts +1 -0
- package/package.json +1 -1
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesImportsListRequest.d.ts +0 -7
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSyncRequest.d.ts +0 -5
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesImportsListResponse.d.ts +0 -34
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesImportsListResponse.js +0 -23
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSyncResponse.d.ts +0 -16
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSyncResponse.js +0 -12
- /package/dist/api/resources/{reference/client/requests/PostV1ReferenceEuVatRatesImportsListRequest.js → account/client/requests/PostV1AccountConsentAcceptRequest.js} +0 -0
- /package/dist/api/resources/{reference/client/requests/PostV1ReferenceEuVatRatesSyncRequest.js → account/client/requests/PostV1AccountDeleteRequest.js} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface PostV1BankTransactionsRecordResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
bankAccountId: string;
|
|
4
|
+
date: string;
|
|
5
|
+
amount: string;
|
|
6
|
+
currency: string;
|
|
7
|
+
counterpartyName: string | null;
|
|
8
|
+
counterpartyIban: string | null;
|
|
9
|
+
description: string | null;
|
|
10
|
+
externalId: string | null;
|
|
11
|
+
status: PostV1BankTransactionsRecordResponse.Status;
|
|
12
|
+
matchedDocumentType: string | null;
|
|
13
|
+
matchedDocumentId: string | null;
|
|
14
|
+
journalTransactionId: string | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace PostV1BankTransactionsRecordResponse {
|
|
18
|
+
const Status: {
|
|
19
|
+
readonly New: "new";
|
|
20
|
+
readonly Matched: "matched";
|
|
21
|
+
};
|
|
22
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
23
|
+
}
|
|
@@ -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.PostV1BankTransactionsRecordResponse = void 0;
|
|
5
|
+
var PostV1BankTransactionsRecordResponse;
|
|
6
|
+
(function (PostV1BankTransactionsRecordResponse) {
|
|
7
|
+
PostV1BankTransactionsRecordResponse.Status = {
|
|
8
|
+
New: "new",
|
|
9
|
+
Matched: "matched",
|
|
10
|
+
};
|
|
11
|
+
})(PostV1BankTransactionsRecordResponse || (exports.PostV1BankTransactionsRecordResponse = PostV1BankTransactionsRecordResponse = {}));
|
|
@@ -2,6 +2,7 @@ export * from "./PostV1BankAccountsCreateResponse.js";
|
|
|
2
2
|
export * from "./PostV1BankAccountsListResponse.js";
|
|
3
3
|
export * from "./PostV1BankAccountsUpdateResponse.js";
|
|
4
4
|
export * from "./PostV1BankDirectDebitsExportResponse.js";
|
|
5
|
+
export * from "./PostV1BankFeedsAccountsConfigureResponse.js";
|
|
5
6
|
export * from "./PostV1BankFeedsAccountsLinkResponse.js";
|
|
6
7
|
export * from "./PostV1BankFeedsBanksListResponse.js";
|
|
7
8
|
export * from "./PostV1BankFeedsConnectionsCompleteResponse.js";
|
|
@@ -10,6 +11,11 @@ export * from "./PostV1BankFeedsConnectionsGetResponse.js";
|
|
|
10
11
|
export * from "./PostV1BankFeedsConnectionsListResponse.js";
|
|
11
12
|
export * from "./PostV1BankFeedsConnectionsStartResponse.js";
|
|
12
13
|
export * from "./PostV1BankFeedsSyncResponse.js";
|
|
14
|
+
export * from "./PostV1BankImportTemplatesCreateResponse.js";
|
|
15
|
+
export * from "./PostV1BankImportTemplatesDeleteResponse.js";
|
|
16
|
+
export * from "./PostV1BankImportTemplatesGetResponse.js";
|
|
17
|
+
export * from "./PostV1BankImportTemplatesListResponse.js";
|
|
18
|
+
export * from "./PostV1BankImportTemplatesUpdateResponse.js";
|
|
13
19
|
export * from "./PostV1BankMandatesCancelResponse.js";
|
|
14
20
|
export * from "./PostV1BankMandatesCreateResponse.js";
|
|
15
21
|
export * from "./PostV1BankMandatesGetResponse.js";
|
|
@@ -25,4 +31,5 @@ export * from "./PostV1BankStatementsImportResponse.js";
|
|
|
25
31
|
export * from "./PostV1BankTransactionsImportResponse.js";
|
|
26
32
|
export * from "./PostV1BankTransactionsListResponse.js";
|
|
27
33
|
export * from "./PostV1BankTransactionsMatchResponse.js";
|
|
34
|
+
export * from "./PostV1BankTransactionsRecordResponse.js";
|
|
28
35
|
export * from "./PostV1BankTransactionsSuggestMatchesResponse.js";
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./PostV1BankAccountsCreateResponse.js"), exports);
|
|
|
18
18
|
__exportStar(require("./PostV1BankAccountsListResponse.js"), exports);
|
|
19
19
|
__exportStar(require("./PostV1BankAccountsUpdateResponse.js"), exports);
|
|
20
20
|
__exportStar(require("./PostV1BankDirectDebitsExportResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./PostV1BankFeedsAccountsConfigureResponse.js"), exports);
|
|
21
22
|
__exportStar(require("./PostV1BankFeedsAccountsLinkResponse.js"), exports);
|
|
22
23
|
__exportStar(require("./PostV1BankFeedsBanksListResponse.js"), exports);
|
|
23
24
|
__exportStar(require("./PostV1BankFeedsConnectionsCompleteResponse.js"), exports);
|
|
@@ -26,6 +27,11 @@ __exportStar(require("./PostV1BankFeedsConnectionsGetResponse.js"), exports);
|
|
|
26
27
|
__exportStar(require("./PostV1BankFeedsConnectionsListResponse.js"), exports);
|
|
27
28
|
__exportStar(require("./PostV1BankFeedsConnectionsStartResponse.js"), exports);
|
|
28
29
|
__exportStar(require("./PostV1BankFeedsSyncResponse.js"), exports);
|
|
30
|
+
__exportStar(require("./PostV1BankImportTemplatesCreateResponse.js"), exports);
|
|
31
|
+
__exportStar(require("./PostV1BankImportTemplatesDeleteResponse.js"), exports);
|
|
32
|
+
__exportStar(require("./PostV1BankImportTemplatesGetResponse.js"), exports);
|
|
33
|
+
__exportStar(require("./PostV1BankImportTemplatesListResponse.js"), exports);
|
|
34
|
+
__exportStar(require("./PostV1BankImportTemplatesUpdateResponse.js"), exports);
|
|
29
35
|
__exportStar(require("./PostV1BankMandatesCancelResponse.js"), exports);
|
|
30
36
|
__exportStar(require("./PostV1BankMandatesCreateResponse.js"), exports);
|
|
31
37
|
__exportStar(require("./PostV1BankMandatesGetResponse.js"), exports);
|
|
@@ -41,4 +47,5 @@ __exportStar(require("./PostV1BankStatementsImportResponse.js"), exports);
|
|
|
41
47
|
__exportStar(require("./PostV1BankTransactionsImportResponse.js"), exports);
|
|
42
48
|
__exportStar(require("./PostV1BankTransactionsListResponse.js"), exports);
|
|
43
49
|
__exportStar(require("./PostV1BankTransactionsMatchResponse.js"), exports);
|
|
50
|
+
__exportStar(require("./PostV1BankTransactionsRecordResponse.js"), exports);
|
|
44
51
|
__exportStar(require("./PostV1BankTransactionsSuggestMatchesResponse.js"), exports);
|
|
@@ -82,6 +82,7 @@ export declare namespace PostV1CaptureDocumentsConfirmResponse {
|
|
|
82
82
|
creditedInvoiceId: string | null;
|
|
83
83
|
purchaseOrderId: string | null;
|
|
84
84
|
notes: string | null;
|
|
85
|
+
documentRef: string | null;
|
|
85
86
|
createdAt: string;
|
|
86
87
|
updatedAt: string;
|
|
87
88
|
lines: Invoice.Lines.Item[];
|
|
@@ -23,6 +23,7 @@ export interface PostV1CatalogItemsCreateRequest {
|
|
|
23
23
|
description?: string;
|
|
24
24
|
groupId?: string;
|
|
25
25
|
attributes?: Record<string, string>;
|
|
26
|
+
documentRef?: string;
|
|
26
27
|
translations?: Record<string, PostV1CatalogItemsCreateRequest.Translations.Value>;
|
|
27
28
|
components?: PostV1CatalogItemsCreateRequest.Components.Item[];
|
|
28
29
|
}
|
|
@@ -24,6 +24,7 @@ export interface PostV1CatalogItemsUpdateRequest {
|
|
|
24
24
|
description?: string;
|
|
25
25
|
groupId?: string;
|
|
26
26
|
attributes?: Record<string, string>;
|
|
27
|
+
documentRef?: string;
|
|
27
28
|
translations?: Record<string, PostV1CatalogItemsUpdateRequest.Translations.Value>;
|
|
28
29
|
components?: PostV1CatalogItemsUpdateRequest.Components.Item[];
|
|
29
30
|
}
|
|
@@ -18,6 +18,7 @@ export interface PostV1CatalogItemsCreateResponse {
|
|
|
18
18
|
description: string | null;
|
|
19
19
|
groupId: string | null;
|
|
20
20
|
attributes: Record<string, string | null> | null;
|
|
21
|
+
documentRef: string | null;
|
|
21
22
|
translations: Record<string, PostV1CatalogItemsCreateResponse.Translations.Value | null> | null;
|
|
22
23
|
components: PostV1CatalogItemsCreateResponse.Components.Item[];
|
|
23
24
|
createdAt: string;
|
|
@@ -18,6 +18,7 @@ export interface PostV1CatalogItemsGetResponse {
|
|
|
18
18
|
description: string | null;
|
|
19
19
|
groupId: string | null;
|
|
20
20
|
attributes: Record<string, string | null> | null;
|
|
21
|
+
documentRef: string | null;
|
|
21
22
|
translations: Record<string, PostV1CatalogItemsGetResponse.Translations.Value | null> | null;
|
|
22
23
|
components: PostV1CatalogItemsGetResponse.Components.Item[];
|
|
23
24
|
createdAt: string;
|
|
@@ -27,6 +27,7 @@ export declare namespace PostV1CatalogItemsListResponse {
|
|
|
27
27
|
description: string | null;
|
|
28
28
|
groupId: string | null;
|
|
29
29
|
attributes: Record<string, string | null> | null;
|
|
30
|
+
documentRef: string | null;
|
|
30
31
|
translations: Record<string, Item.Translations.Value | null> | null;
|
|
31
32
|
components: Item.Components.Item[];
|
|
32
33
|
createdAt: string;
|
|
@@ -18,6 +18,7 @@ export interface PostV1CatalogItemsUpdateResponse {
|
|
|
18
18
|
description: string | null;
|
|
19
19
|
groupId: string | null;
|
|
20
20
|
attributes: Record<string, string | null> | null;
|
|
21
|
+
documentRef: string | null;
|
|
21
22
|
translations: Record<string, PostV1CatalogItemsUpdateResponse.Translations.Value | null> | null;
|
|
22
23
|
components: PostV1CatalogItemsUpdateResponse.Components.Item[];
|
|
23
24
|
createdAt: string;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* entity: "entity",
|
|
5
|
-
* entityId: "entityId",
|
|
6
5
|
* fileName: "fileName",
|
|
7
6
|
* mimeType: "mimeType",
|
|
8
7
|
* content: "content"
|
|
@@ -10,7 +9,7 @@
|
|
|
10
9
|
*/
|
|
11
10
|
export interface PostV1FilesUploadRequest {
|
|
12
11
|
entity: string;
|
|
13
|
-
entityId
|
|
12
|
+
entityId?: string;
|
|
14
13
|
fileName: string;
|
|
15
14
|
mimeType: string;
|
|
16
15
|
/** Base64-encoded file content */
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export interface PostV1FilesGetResponse {
|
|
2
2
|
id: string;
|
|
3
3
|
entity: string;
|
|
4
|
-
entityId: string;
|
|
4
|
+
entityId: string | null;
|
|
5
5
|
fileName: string;
|
|
6
6
|
mimeType: string;
|
|
7
7
|
sizeBytes: number;
|
|
8
8
|
sha256: string;
|
|
9
|
+
storageKey: string;
|
|
9
10
|
createdAt: string;
|
|
10
11
|
content: string;
|
|
11
12
|
}
|
|
@@ -10,11 +10,12 @@ export declare namespace PostV1FilesListResponse {
|
|
|
10
10
|
interface Item {
|
|
11
11
|
id: string;
|
|
12
12
|
entity: string;
|
|
13
|
-
entityId: string;
|
|
13
|
+
entityId: string | null;
|
|
14
14
|
fileName: string;
|
|
15
15
|
mimeType: string;
|
|
16
16
|
sizeBytes: number;
|
|
17
17
|
sha256: string;
|
|
18
|
+
storageKey: string;
|
|
18
19
|
createdAt: string;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -19,6 +19,7 @@ export interface PostV1FleetVehiclesCreateRequest {
|
|
|
19
19
|
technicalInspectionDue?: string;
|
|
20
20
|
insuranceDue?: string;
|
|
21
21
|
notes?: string;
|
|
22
|
+
documents?: PostV1FleetVehiclesCreateRequest.Documents.Item[];
|
|
22
23
|
}
|
|
23
24
|
export declare namespace PostV1FleetVehiclesCreateRequest {
|
|
24
25
|
const FuelType: {
|
|
@@ -30,4 +31,11 @@ export declare namespace PostV1FleetVehiclesCreateRequest {
|
|
|
30
31
|
readonly Other: "other";
|
|
31
32
|
};
|
|
32
33
|
type FuelType = (typeof FuelType)[keyof typeof FuelType];
|
|
34
|
+
type Documents = Documents.Item[];
|
|
35
|
+
namespace Documents {
|
|
36
|
+
interface Item {
|
|
37
|
+
name: string;
|
|
38
|
+
ref: string;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
33
41
|
}
|
|
@@ -13,6 +13,7 @@ export interface PostV1FleetVehiclesCreateResponse {
|
|
|
13
13
|
insuranceDue: string | null;
|
|
14
14
|
status: PostV1FleetVehiclesCreateResponse.Status;
|
|
15
15
|
notes: string | null;
|
|
16
|
+
documents: PostV1FleetVehiclesCreateResponse.Documents.Item[] | null;
|
|
16
17
|
currentAssignment: PostV1FleetVehiclesCreateResponse.CurrentAssignment | null;
|
|
17
18
|
createdAt: string;
|
|
18
19
|
}
|
|
@@ -23,6 +24,13 @@ export declare namespace PostV1FleetVehiclesCreateResponse {
|
|
|
23
24
|
readonly Scrapped: "scrapped";
|
|
24
25
|
};
|
|
25
26
|
type Status = (typeof Status)[keyof typeof Status];
|
|
27
|
+
type Documents = Documents.Item[];
|
|
28
|
+
namespace Documents {
|
|
29
|
+
interface Item {
|
|
30
|
+
name: string;
|
|
31
|
+
ref: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
26
34
|
interface CurrentAssignment {
|
|
27
35
|
id: string;
|
|
28
36
|
employeeId: string;
|
|
@@ -13,6 +13,7 @@ export interface PostV1FleetVehiclesGetResponse {
|
|
|
13
13
|
insuranceDue: string | null;
|
|
14
14
|
status: PostV1FleetVehiclesGetResponse.Status;
|
|
15
15
|
notes: string | null;
|
|
16
|
+
documents: PostV1FleetVehiclesGetResponse.Documents.Item[] | null;
|
|
16
17
|
currentAssignment: PostV1FleetVehiclesGetResponse.CurrentAssignment | null;
|
|
17
18
|
createdAt: string;
|
|
18
19
|
}
|
|
@@ -23,6 +24,13 @@ export declare namespace PostV1FleetVehiclesGetResponse {
|
|
|
23
24
|
readonly Scrapped: "scrapped";
|
|
24
25
|
};
|
|
25
26
|
type Status = (typeof Status)[keyof typeof Status];
|
|
27
|
+
type Documents = Documents.Item[];
|
|
28
|
+
namespace Documents {
|
|
29
|
+
interface Item {
|
|
30
|
+
name: string;
|
|
31
|
+
ref: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
26
34
|
interface CurrentAssignment {
|
|
27
35
|
id: string;
|
|
28
36
|
employeeId: string;
|
|
@@ -22,6 +22,7 @@ export declare namespace PostV1FleetVehiclesListResponse {
|
|
|
22
22
|
insuranceDue: string | null;
|
|
23
23
|
status: Item.Status;
|
|
24
24
|
notes: string | null;
|
|
25
|
+
documents: Item.Documents.Item[] | null;
|
|
25
26
|
currentAssignment: Item.CurrentAssignment | null;
|
|
26
27
|
createdAt: string;
|
|
27
28
|
}
|
|
@@ -32,6 +33,13 @@ export declare namespace PostV1FleetVehiclesListResponse {
|
|
|
32
33
|
readonly Scrapped: "scrapped";
|
|
33
34
|
};
|
|
34
35
|
type Status = (typeof Status)[keyof typeof Status];
|
|
36
|
+
type Documents = Documents.Item[];
|
|
37
|
+
namespace Documents {
|
|
38
|
+
interface Item {
|
|
39
|
+
name: string;
|
|
40
|
+
ref: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
35
43
|
interface CurrentAssignment {
|
|
36
44
|
id: string;
|
|
37
45
|
employeeId: string;
|
|
@@ -13,6 +13,7 @@ export interface PostV1FleetVehiclesUpdateResponse {
|
|
|
13
13
|
insuranceDue: string | null;
|
|
14
14
|
status: PostV1FleetVehiclesUpdateResponse.Status;
|
|
15
15
|
notes: string | null;
|
|
16
|
+
documents: PostV1FleetVehiclesUpdateResponse.Documents.Item[] | null;
|
|
16
17
|
currentAssignment: PostV1FleetVehiclesUpdateResponse.CurrentAssignment | null;
|
|
17
18
|
createdAt: string;
|
|
18
19
|
}
|
|
@@ -23,6 +24,13 @@ export declare namespace PostV1FleetVehiclesUpdateResponse {
|
|
|
23
24
|
readonly Scrapped: "scrapped";
|
|
24
25
|
};
|
|
25
26
|
type Status = (typeof Status)[keyof typeof Status];
|
|
27
|
+
type Documents = Documents.Item[];
|
|
28
|
+
namespace Documents {
|
|
29
|
+
interface Item {
|
|
30
|
+
name: string;
|
|
31
|
+
ref: string;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
26
34
|
interface CurrentAssignment {
|
|
27
35
|
id: string;
|
|
28
36
|
employeeId: string;
|
|
@@ -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.
|
|
@@ -163,7 +205,6 @@ export declare class HrClient {
|
|
|
163
205
|
* @example
|
|
164
206
|
* await client.hr.postV1HrContractsCreate({
|
|
165
207
|
* employeeId: "employeeId",
|
|
166
|
-
* contractNo: "contractNo",
|
|
167
208
|
* startDate: "startDate",
|
|
168
209
|
* baseSalary: "baseSalary"
|
|
169
210
|
* })
|
|
@@ -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.
|
|
@@ -578,7 +728,6 @@ class HrClient {
|
|
|
578
728
|
* @example
|
|
579
729
|
* await client.hr.postV1HrContractsCreate({
|
|
580
730
|
* employeeId: "employeeId",
|
|
581
|
-
* contractNo: "contractNo",
|
|
582
731
|
* startDate: "startDate",
|
|
583
732
|
* baseSalary: "baseSalary"
|
|
584
733
|
* })
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* employeeId: "employeeId",
|
|
5
|
-
* contractNo: "contractNo",
|
|
6
5
|
* startDate: "startDate",
|
|
7
6
|
* baseSalary: "baseSalary"
|
|
8
7
|
* }
|
|
@@ -12,13 +11,14 @@ export interface PostV1HrContractsCreateRequest {
|
|
|
12
11
|
positionId?: string;
|
|
13
12
|
departmentId?: string;
|
|
14
13
|
scheduleId?: string;
|
|
15
|
-
|
|
14
|
+
agreementId?: string;
|
|
15
|
+
contractNo?: string;
|
|
16
16
|
type?: PostV1HrContractsCreateRequest.Type;
|
|
17
17
|
startDate: string;
|
|
18
18
|
endDate?: string;
|
|
19
19
|
baseSalary: string;
|
|
20
20
|
salaryType?: PostV1HrContractsCreateRequest.SalaryType;
|
|
21
|
-
|
|
21
|
+
workHours?: string;
|
|
22
22
|
notes?: string;
|
|
23
23
|
}
|
|
24
24
|
export declare namespace PostV1HrContractsCreateRequest {
|
|
@@ -30,6 +30,9 @@ export declare namespace PostV1HrContractsCreateRequest {
|
|
|
30
30
|
const SalaryType: {
|
|
31
31
|
readonly Monthly: "monthly";
|
|
32
32
|
readonly Hourly: "hourly";
|
|
33
|
+
readonly Weekly: "weekly";
|
|
34
|
+
readonly Daily: "daily";
|
|
35
|
+
readonly Yearly: "yearly";
|
|
33
36
|
};
|
|
34
37
|
type SalaryType = (typeof SalaryType)[keyof typeof SalaryType];
|
|
35
38
|
}
|
|
@@ -11,5 +11,8 @@ var PostV1HrContractsCreateRequest;
|
|
|
11
11
|
PostV1HrContractsCreateRequest.SalaryType = {
|
|
12
12
|
Monthly: "monthly",
|
|
13
13
|
Hourly: "hourly",
|
|
14
|
+
Weekly: "weekly",
|
|
15
|
+
Daily: "daily",
|
|
16
|
+
Yearly: "yearly",
|
|
14
17
|
};
|
|
15
18
|
})(PostV1HrContractsCreateRequest || (exports.PostV1HrContractsCreateRequest = PostV1HrContractsCreateRequest = {}));
|
|
@@ -22,6 +22,7 @@ export interface PostV1HrEmployeesCreateRequest {
|
|
|
22
22
|
npdOverride?: string | null;
|
|
23
23
|
pensionAccumulation?: boolean;
|
|
24
24
|
notes?: string;
|
|
25
|
+
attributes?: PostV1HrEmployeesCreateRequest.Attributes.Item[];
|
|
25
26
|
}
|
|
26
27
|
export declare namespace PostV1HrEmployeesCreateRequest {
|
|
27
28
|
interface Address {
|
|
@@ -30,4 +31,11 @@ export declare namespace PostV1HrEmployeesCreateRequest {
|
|
|
30
31
|
postalCode?: string | undefined;
|
|
31
32
|
countryCode?: string | undefined;
|
|
32
33
|
}
|
|
34
|
+
type Attributes = Attributes.Item[];
|
|
35
|
+
namespace Attributes {
|
|
36
|
+
interface Item {
|
|
37
|
+
name: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
33
41
|
}
|