nordlet 0.3.9 → 0.3.11
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/Client.d.ts +6 -0
- package/dist/Client.js +28 -20
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +8 -0
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +8 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +8 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +8 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.js +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.js +1 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +2 -2
- package/dist/api/resources/bank/client/requests/index.js +5 -1
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +8 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.js +14 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +8 -0
- package/dist/api/resources/bank/types/SettlementsCommissionBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsGetBankResponse.d.ts +7 -0
- package/dist/api/resources/bank/types/SettlementsImportBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsLinkBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsMatchBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsPostBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsUnlinkBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.js +1 -0
- package/dist/api/resources/capture/client/Client.d.ts +2 -0
- package/dist/api/resources/capture/client/Client.js +2 -0
- package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +29 -0
- package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.js +8 -0
- package/dist/api/resources/capture/client/requests/index.d.ts +1 -1
- package/dist/api/resources/capture/client/requests/index.js +3 -1
- package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +93 -0
- package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.js +23 -0
- package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsListCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.js +7 -0
- package/dist/api/resources/declarations/client/Client.d.ts +93 -1
- package/dist/api/resources/declarations/client/Client.js +325 -1
- package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.d.ts +9 -0
- package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.d.ts +9 -0
- package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.d.ts +11 -0
- package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.d.ts +11 -0
- package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/index.d.ts +4 -0
- package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.d.ts +25 -0
- package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.d.ts +6 -0
- package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.d.ts +67 -0
- package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.js +27 -0
- package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.d.ts +38 -0
- package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/index.d.ts +4 -0
- package/dist/api/resources/declarations/types/index.js +4 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +7 -1
- package/dist/api/resources/inventory/client/Client.d.ts +22 -0
- package/dist/api/resources/inventory/client/Client.js +80 -0
- package/dist/api/resources/inventory/client/requests/WarehousesCreateInventoryRequest.d.ts +1 -0
- package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.d.ts +11 -0
- package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/LandedCostsCreateInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/LandedCostsGetInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesCreateInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.d.ts +8 -0
- package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.js +3 -0
- package/dist/api/resources/inventory/types/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/index.js +1 -0
- package/dist/api/resources/ledger/client/requests/JournalTransactionsCreateLedgerRequest.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +1 -0
- package/dist/api/resources/peppol/client/Client.d.ts +58 -0
- package/dist/api/resources/peppol/client/Client.js +207 -0
- package/dist/api/resources/peppol/client/index.d.ts +1 -0
- package/dist/api/resources/peppol/client/index.js +17 -0
- package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.d.ts +8 -0
- package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.js +3 -0
- package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.d.ts +12 -0
- package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.js +3 -0
- package/dist/api/resources/peppol/client/requests/index.d.ts +2 -0
- package/dist/api/resources/peppol/client/requests/index.js +2 -0
- package/dist/api/resources/peppol/exports.d.ts +2 -0
- package/dist/api/resources/peppol/exports.js +21 -0
- package/dist/api/resources/peppol/index.d.ts +2 -0
- package/dist/api/resources/peppol/index.js +18 -0
- package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.d.ts +9 -0
- package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.js +3 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.d.ts +6 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.js +9 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolResponse.d.ts +3 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolResponse.js +3 -0
- package/dist/api/resources/peppol/types/index.d.ts +3 -0
- package/dist/api/resources/peppol/types/index.js +19 -0
- package/dist/api/resources/platformSellers/client/Client.d.ts +130 -0
- package/dist/api/resources/platformSellers/client/Client.js +458 -0
- package/dist/api/resources/platformSellers/client/index.d.ts +1 -0
- package/dist/api/resources/platformSellers/client/index.js +17 -0
- package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.d.ts +98 -0
- package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.js +35 -0
- package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.d.ts +9 -0
- package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.js +3 -0
- package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.d.ts +9 -0
- package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.js +3 -0
- package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.d.ts +48 -0
- package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.js +31 -0
- package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.d.ts +100 -0
- package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.js +35 -0
- package/dist/api/resources/platformSellers/client/requests/index.d.ts +5 -0
- package/dist/api/resources/platformSellers/client/requests/index.js +9 -0
- package/dist/api/resources/platformSellers/exports.d.ts +2 -0
- package/dist/api/resources/platformSellers/exports.js +21 -0
- package/dist/api/resources/platformSellers/index.d.ts +2 -0
- package/dist/api/resources/platformSellers/index.js +18 -0
- package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.d.ts +4 -0
- package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.js +3 -0
- package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.d.ts +59 -0
- package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.js +17 -0
- package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/index.d.ts +5 -0
- package/dist/api/resources/platformSellers/types/index.js +21 -0
- package/dist/api/resources/purchases/client/requests/InvoicesRegisterPurchasesRequest.d.ts +1 -0
- package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.d.ts +16 -0
- package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.js +8 -0
- package/dist/api/resources/reports/types/OnlineSalesReportsResponse.d.ts +1 -0
- package/dist/api/resources/sales/client/Client.d.ts +26 -0
- package/dist/api/resources/sales/client/Client.js +84 -0
- package/dist/api/resources/sales/client/requests/InvoicesApplyAdvanceSalesRequest.d.ts +2 -0
- package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sales/types/InvoicesApplyAdvanceSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesCreateSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesGetSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesIssueSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +5 -0
- package/dist/api/resources/sales/types/InvoicesLockSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +11 -0
- package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.js +10 -0
- package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.d.ts +15 -0
- package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.js +13 -0
- package/dist/api/resources/sales/types/InvoicesUnlockSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesUpdateSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/index.d.ts +1 -0
- package/dist/api/resources/sales/types/index.js +1 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +4 -0
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhooks = exports.transport = exports.sales = exports.reports = exports.reference = exports.purchases = exports.public_ = exports.projects = exports.production = exports.pos = exports.payroll = exports.partners = exports.operationTypes = exports.officers = exports.migration = exports.ledger = exports.leads = exports.inventory = exports.hr = exports.fleet = exports.files = exports.ecommerce = exports.documentSeries = exports.declarations = exports.consolidation = exports.catalog = exports.cash = exports.capture = exports.calendar = exports.billing = exports.bank = exports.audit = exports.assets = exports.agreements = exports.account = void 0;
|
|
39
|
+
exports.webhooks = exports.transport = exports.sales = exports.reports = exports.reference = exports.purchases = exports.public_ = exports.projects = exports.production = exports.pos = exports.platformSellers = exports.peppol = exports.payroll = exports.partners = exports.operationTypes = exports.officers = exports.migration = exports.ledger = exports.leads = exports.inventory = exports.hr = exports.fleet = exports.files = exports.ecommerce = exports.documentSeries = exports.declarations = exports.consolidation = exports.catalog = exports.cash = exports.capture = exports.calendar = exports.billing = exports.bank = exports.audit = exports.assets = exports.agreements = exports.account = void 0;
|
|
40
40
|
__exportStar(require("./account/client/requests/index.js"), exports);
|
|
41
41
|
exports.account = __importStar(require("./account/index.js"));
|
|
42
42
|
__exportStar(require("./account/types/index.js"), exports);
|
|
@@ -112,6 +112,12 @@ __exportStar(require("./partners/types/index.js"), exports);
|
|
|
112
112
|
__exportStar(require("./payroll/client/requests/index.js"), exports);
|
|
113
113
|
exports.payroll = __importStar(require("./payroll/index.js"));
|
|
114
114
|
__exportStar(require("./payroll/types/index.js"), exports);
|
|
115
|
+
__exportStar(require("./peppol/client/requests/index.js"), exports);
|
|
116
|
+
exports.peppol = __importStar(require("./peppol/index.js"));
|
|
117
|
+
__exportStar(require("./peppol/types/index.js"), exports);
|
|
118
|
+
__exportStar(require("./platformSellers/client/requests/index.js"), exports);
|
|
119
|
+
exports.platformSellers = __importStar(require("./platformSellers/index.js"));
|
|
120
|
+
__exportStar(require("./platformSellers/types/index.js"), exports);
|
|
115
121
|
__exportStar(require("./pos/client/requests/index.js"), exports);
|
|
116
122
|
exports.pos = __importStar(require("./pos/index.js"));
|
|
117
123
|
__exportStar(require("./pos/types/index.js"), exports);
|
|
@@ -95,6 +95,28 @@ export declare class InventoryClient {
|
|
|
95
95
|
*/
|
|
96
96
|
warehousesList(request?: NordletApi.WarehousesListInventoryRequest, requestOptions?: InventoryClient.RequestOptions): core.HttpResponsePromise<NordletApi.WarehousesListInventoryResponse>;
|
|
97
97
|
private __warehousesList;
|
|
98
|
+
/**
|
|
99
|
+
* @param {NordletApi.WarehousesUpdateInventoryRequest} request
|
|
100
|
+
* @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
103
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
104
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
105
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
106
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
107
|
+
* @throws {@link NordletApi.ConflictError}
|
|
108
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
109
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
110
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
111
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await client.inventory.warehousesUpdate({
|
|
115
|
+
* id: "id"
|
|
116
|
+
* })
|
|
117
|
+
*/
|
|
118
|
+
warehousesUpdate(request: NordletApi.WarehousesUpdateInventoryRequest, requestOptions?: InventoryClient.RequestOptions): core.HttpResponsePromise<NordletApi.WarehousesUpdateInventoryResponse>;
|
|
119
|
+
private __warehousesUpdate;
|
|
98
120
|
/**
|
|
99
121
|
* @param {NordletApi.StockReceiveInventoryRequest} request
|
|
100
122
|
* @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -364,6 +364,86 @@ class InventoryClient {
|
|
|
364
364
|
}
|
|
365
365
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/warehouses/list");
|
|
366
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* @param {NordletApi.WarehousesUpdateInventoryRequest} request
|
|
369
|
+
* @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
370
|
+
*
|
|
371
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
372
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
373
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
374
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
375
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
376
|
+
* @throws {@link NordletApi.ConflictError}
|
|
377
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
378
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
379
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
380
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* await client.inventory.warehousesUpdate({
|
|
384
|
+
* id: "id"
|
|
385
|
+
* })
|
|
386
|
+
*/
|
|
387
|
+
warehousesUpdate(request, requestOptions) {
|
|
388
|
+
return core.HttpResponsePromise.fromPromise(this.__warehousesUpdate(request, requestOptions));
|
|
389
|
+
}
|
|
390
|
+
async __warehousesUpdate(request, requestOptions) {
|
|
391
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
392
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
393
|
+
const _response = await core.fetcher({
|
|
394
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
395
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
396
|
+
environments.NordletApiEnvironment.Production, "v1/inventory/warehouses/update"),
|
|
397
|
+
method: "POST",
|
|
398
|
+
headers: _headers,
|
|
399
|
+
contentType: "application/json",
|
|
400
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
401
|
+
requestType: "json",
|
|
402
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
403
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
404
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
405
|
+
abortSignal: requestOptions?.abortSignal,
|
|
406
|
+
fetchFn: this._options?.fetch,
|
|
407
|
+
logging: this._options.logging,
|
|
408
|
+
});
|
|
409
|
+
if (_response.ok) {
|
|
410
|
+
return {
|
|
411
|
+
data: _response.body,
|
|
412
|
+
rawResponse: _response.rawResponse,
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
if (_response.error.reason === "status-code") {
|
|
416
|
+
switch (_response.error.statusCode) {
|
|
417
|
+
case 400:
|
|
418
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
419
|
+
case 401:
|
|
420
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
421
|
+
case 402:
|
|
422
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
423
|
+
case 403:
|
|
424
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
425
|
+
case 404:
|
|
426
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
427
|
+
case 409:
|
|
428
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
429
|
+
case 413:
|
|
430
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
431
|
+
case 422:
|
|
432
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
433
|
+
case 429:
|
|
434
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
435
|
+
case 500:
|
|
436
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
437
|
+
default:
|
|
438
|
+
throw new errors.NordletApiError({
|
|
439
|
+
statusCode: _response.error.statusCode,
|
|
440
|
+
body: _response.error.body,
|
|
441
|
+
rawResponse: _response.rawResponse,
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/inventory/warehouses/update");
|
|
446
|
+
}
|
|
367
447
|
/**
|
|
368
448
|
* @param {NordletApi.StockReceiveInventoryRequest} request
|
|
369
449
|
* @param {InventoryClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -19,3 +19,4 @@ export type { StockTransferInventoryRequest } from "./StockTransferInventoryRequ
|
|
|
19
19
|
export type { StockWriteOffInventoryRequest } from "./StockWriteOffInventoryRequest.js";
|
|
20
20
|
export type { WarehousesCreateInventoryRequest } from "./WarehousesCreateInventoryRequest.js";
|
|
21
21
|
export { WarehousesListInventoryRequest } from "./WarehousesListInventoryRequest.js";
|
|
22
|
+
export type { WarehousesUpdateInventoryRequest } from "./WarehousesUpdateInventoryRequest.js";
|
|
@@ -7,6 +7,7 @@ export interface LandedCostsCreateInventoryResponse {
|
|
|
7
7
|
sourceInvoiceId: string | null;
|
|
8
8
|
notes: string | null;
|
|
9
9
|
createdAt: string;
|
|
10
|
+
journalTransactionId: string | null;
|
|
10
11
|
lines: LandedCostsCreateInventoryResponse.Lines.Item[];
|
|
11
12
|
}
|
|
12
13
|
export declare namespace LandedCostsCreateInventoryResponse {
|
|
@@ -7,6 +7,7 @@ export interface LandedCostsGetInventoryResponse {
|
|
|
7
7
|
sourceInvoiceId: string | null;
|
|
8
8
|
notes: string | null;
|
|
9
9
|
createdAt: string;
|
|
10
|
+
journalTransactionId: string | null;
|
|
10
11
|
lines: LandedCostsGetInventoryResponse.Lines.Item[];
|
|
11
12
|
}
|
|
12
13
|
export declare namespace LandedCostsGetInventoryResponse {
|
|
@@ -19,3 +19,4 @@ export * from "./StockTransferInventoryResponse.js";
|
|
|
19
19
|
export * from "./StockWriteOffInventoryResponse.js";
|
|
20
20
|
export * from "./WarehousesCreateInventoryResponse.js";
|
|
21
21
|
export * from "./WarehousesListInventoryResponse.js";
|
|
22
|
+
export * from "./WarehousesUpdateInventoryResponse.js";
|
|
@@ -35,3 +35,4 @@ __exportStar(require("./StockTransferInventoryResponse.js"), exports);
|
|
|
35
35
|
__exportStar(require("./StockWriteOffInventoryResponse.js"), exports);
|
|
36
36
|
__exportStar(require("./WarehousesCreateInventoryResponse.js"), exports);
|
|
37
37
|
__exportStar(require("./WarehousesListInventoryResponse.js"), exports);
|
|
38
|
+
__exportStar(require("./WarehousesUpdateInventoryResponse.js"), exports);
|
package/dist/api/resources/ledger/client/requests/JournalTransactionsCreateLedgerRequest.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
export interface JournalTransactionsCreateLedgerRequest {
|
|
11
11
|
date: string;
|
|
12
12
|
description?: string;
|
|
13
|
+
currency?: string;
|
|
13
14
|
entries: JournalTransactionsCreateLedgerRequest.Entries.Item[];
|
|
14
15
|
}
|
|
15
16
|
export declare namespace JournalTransactionsCreateLedgerRequest {
|
|
@@ -12,6 +12,7 @@ export interface RunsApprovePayrollResponse {
|
|
|
12
12
|
employerContributionsTotal: string;
|
|
13
13
|
componentTotals: RunsApprovePayrollResponse.ComponentTotals.Item[];
|
|
14
14
|
netTotal: string;
|
|
15
|
+
paidAmount: string;
|
|
15
16
|
journalTransactionId: string | null;
|
|
16
17
|
notes: string | null;
|
|
17
18
|
warnings: string[];
|
|
@@ -12,6 +12,7 @@ export interface RunsCreatePayrollResponse {
|
|
|
12
12
|
employerContributionsTotal: string;
|
|
13
13
|
componentTotals: RunsCreatePayrollResponse.ComponentTotals.Item[];
|
|
14
14
|
netTotal: string;
|
|
15
|
+
paidAmount: string;
|
|
15
16
|
journalTransactionId: string | null;
|
|
16
17
|
notes: string | null;
|
|
17
18
|
warnings: string[];
|
|
@@ -12,6 +12,7 @@ export interface RunsGetPayrollResponse {
|
|
|
12
12
|
employerContributionsTotal: string;
|
|
13
13
|
componentTotals: RunsGetPayrollResponse.ComponentTotals.Item[];
|
|
14
14
|
netTotal: string;
|
|
15
|
+
paidAmount: string;
|
|
15
16
|
journalTransactionId: string | null;
|
|
16
17
|
notes: string | null;
|
|
17
18
|
warnings: string[];
|
|
@@ -24,6 +24,7 @@ export declare namespace RunsListPayrollResponse {
|
|
|
24
24
|
employerContributionsTotal: string;
|
|
25
25
|
componentTotals: Item.ComponentTotals.Item[];
|
|
26
26
|
netTotal: string;
|
|
27
|
+
paidAmount: string;
|
|
27
28
|
journalTransactionId: string | null;
|
|
28
29
|
notes: string | null;
|
|
29
30
|
warnings: string[];
|
|
@@ -12,6 +12,7 @@ export interface RunsReversePayrollResponse {
|
|
|
12
12
|
employerContributionsTotal: string;
|
|
13
13
|
componentTotals: RunsReversePayrollResponse.ComponentTotals.Item[];
|
|
14
14
|
netTotal: string;
|
|
15
|
+
paidAmount: string;
|
|
15
16
|
journalTransactionId: string | null;
|
|
16
17
|
notes: string | null;
|
|
17
18
|
warnings: string[];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as NordletApi from "../../../index.js";
|
|
5
|
+
export declare namespace PeppolClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class PeppolClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PeppolClient.Options>;
|
|
12
|
+
constructor(options: PeppolClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Look a receiver up on the Peppol network (SML and SMP) and say which Peppol BIS Billing 3.0 documents it accepts. Give `partnerId` to look up a partner by its Peppol ID, VAT code or registration code, or `participantId` as "<scheme>:<identifier>". Works without an access point.
|
|
15
|
+
*
|
|
16
|
+
* @param {NordletApi.ParticipantsLookupPeppolRequest} request
|
|
17
|
+
* @param {PeppolClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
20
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
21
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
22
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
23
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
24
|
+
* @throws {@link NordletApi.ConflictError}
|
|
25
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
26
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
27
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
28
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.peppol.participantsLookup()
|
|
32
|
+
*/
|
|
33
|
+
participantsLookup(request?: NordletApi.ParticipantsLookupPeppolRequest, requestOptions?: PeppolClient.RequestOptions): core.HttpResponsePromise<NordletApi.ParticipantsLookupPeppolResponse>;
|
|
34
|
+
private __participantsLookup;
|
|
35
|
+
/**
|
|
36
|
+
* @param {NordletApi.WebhooksPeppolRequest} request
|
|
37
|
+
* @param {PeppolClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
40
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
41
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
42
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
43
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
44
|
+
* @throws {@link NordletApi.ConflictError}
|
|
45
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
46
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
47
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
48
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.peppol.webhooks({
|
|
52
|
+
* provider: "recommand",
|
|
53
|
+
* companyId: "companyId"
|
|
54
|
+
* })
|
|
55
|
+
*/
|
|
56
|
+
webhooks(request: NordletApi.WebhooksPeppolRequest, requestOptions?: PeppolClient.RequestOptions): core.HttpResponsePromise<NordletApi.WebhooksPeppolResponse>;
|
|
57
|
+
private __webhooks;
|
|
58
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PeppolClient = void 0;
|
|
38
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
39
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const requestBody_js_1 = require("../../../../core/requestBody.js");
|
|
42
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
43
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
44
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
45
|
+
const NordletApi = __importStar(require("../../../index.js"));
|
|
46
|
+
class PeppolClient {
|
|
47
|
+
constructor(options) {
|
|
48
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Look a receiver up on the Peppol network (SML and SMP) and say which Peppol BIS Billing 3.0 documents it accepts. Give `partnerId` to look up a partner by its Peppol ID, VAT code or registration code, or `participantId` as "<scheme>:<identifier>". Works without an access point.
|
|
52
|
+
*
|
|
53
|
+
* @param {NordletApi.ParticipantsLookupPeppolRequest} request
|
|
54
|
+
* @param {PeppolClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
57
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
58
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
59
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
60
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
61
|
+
* @throws {@link NordletApi.ConflictError}
|
|
62
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
63
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
64
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
65
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.peppol.participantsLookup()
|
|
69
|
+
*/
|
|
70
|
+
participantsLookup(request = {}, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__participantsLookup(request, requestOptions));
|
|
72
|
+
}
|
|
73
|
+
async __participantsLookup(request = {}, requestOptions) {
|
|
74
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
75
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
76
|
+
const _response = await core.fetcher({
|
|
77
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
78
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
79
|
+
environments.NordletApiEnvironment.Production, "v1/peppol/participants/lookup"),
|
|
80
|
+
method: "POST",
|
|
81
|
+
headers: _headers,
|
|
82
|
+
contentType: "application/json",
|
|
83
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
84
|
+
requestType: "json",
|
|
85
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
86
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
87
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
88
|
+
abortSignal: requestOptions?.abortSignal,
|
|
89
|
+
fetchFn: this._options?.fetch,
|
|
90
|
+
logging: this._options.logging,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return {
|
|
94
|
+
data: _response.body,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (_response.error.reason === "status-code") {
|
|
99
|
+
switch (_response.error.statusCode) {
|
|
100
|
+
case 400:
|
|
101
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
102
|
+
case 401:
|
|
103
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
104
|
+
case 402:
|
|
105
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
106
|
+
case 403:
|
|
107
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
108
|
+
case 404:
|
|
109
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
110
|
+
case 409:
|
|
111
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
112
|
+
case 413:
|
|
113
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
114
|
+
case 422:
|
|
115
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 429:
|
|
117
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
118
|
+
case 500:
|
|
119
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
120
|
+
default:
|
|
121
|
+
throw new errors.NordletApiError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.body,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/peppol/participants/lookup");
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @param {NordletApi.WebhooksPeppolRequest} request
|
|
132
|
+
* @param {PeppolClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
135
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
136
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
137
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
138
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
139
|
+
* @throws {@link NordletApi.ConflictError}
|
|
140
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
141
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
142
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
143
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* await client.peppol.webhooks({
|
|
147
|
+
* provider: "recommand",
|
|
148
|
+
* companyId: "companyId"
|
|
149
|
+
* })
|
|
150
|
+
*/
|
|
151
|
+
webhooks(request, requestOptions) {
|
|
152
|
+
return core.HttpResponsePromise.fromPromise(this.__webhooks(request, requestOptions));
|
|
153
|
+
}
|
|
154
|
+
async __webhooks(request, requestOptions) {
|
|
155
|
+
const { provider, companyId } = request;
|
|
156
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
157
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
158
|
+
const _response = await core.fetcher({
|
|
159
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
160
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
161
|
+
environments.NordletApiEnvironment.Production, `v1/peppol/webhooks/${core.url.encodePathParam(provider)}/${core.url.encodePathParam(companyId)}`),
|
|
162
|
+
method: "POST",
|
|
163
|
+
headers: _headers,
|
|
164
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
165
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
166
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
167
|
+
abortSignal: requestOptions?.abortSignal,
|
|
168
|
+
fetchFn: this._options?.fetch,
|
|
169
|
+
logging: this._options.logging,
|
|
170
|
+
});
|
|
171
|
+
if (_response.ok) {
|
|
172
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
173
|
+
}
|
|
174
|
+
if (_response.error.reason === "status-code") {
|
|
175
|
+
switch (_response.error.statusCode) {
|
|
176
|
+
case 400:
|
|
177
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
178
|
+
case 401:
|
|
179
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
180
|
+
case 402:
|
|
181
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
182
|
+
case 403:
|
|
183
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
184
|
+
case 404:
|
|
185
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
186
|
+
case 409:
|
|
187
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
188
|
+
case 413:
|
|
189
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
190
|
+
case 422:
|
|
191
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
192
|
+
case 429:
|
|
193
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
194
|
+
case 500:
|
|
195
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
196
|
+
default:
|
|
197
|
+
throw new errors.NordletApiError({
|
|
198
|
+
statusCode: _response.error.statusCode,
|
|
199
|
+
body: _response.error.body,
|
|
200
|
+
rawResponse: _response.rawResponse,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/peppol/webhooks/{provider}/{companyId}");
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
exports.PeppolClient = PeppolClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./requests/index.js"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as NordletApi from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* provider: "recommand",
|
|
6
|
+
* companyId: "companyId"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface WebhooksPeppolRequest {
|
|
10
|
+
provider: NordletApi.WebhooksPeppolRequestProvider;
|
|
11
|
+
companyId: string;
|
|
12
|
+
}
|