From b6f1775c78422686a83877afcb44ca34911543a9 Mon Sep 17 00:00:00 2001 From: Pierluigi Viti Date: Mon, 20 Nov 2023 16:01:15 +0100 Subject: [PATCH] feat: update trigger list --- .github/release.yml | 24 + .github/workflows/codeql-analysis.yml | 70 ++ README.md | 164 +++ gen/templates/action.tpl | 4 +- package.json | 22 +- pnpm-lock.yaml | 1074 ++++++++--------- src/base.ts | 6 + src/commands/adyen_payment/details.ts | 4 +- src/commands/authorization/capture.ts | 4 +- .../authorization/capture_amount_cents.ts | 4 +- src/commands/authorization/void.ts | 4 +- src/commands/axerve_payment/update.ts | 4 +- .../bundle/compute_compare_at_amount.ts | 4 +- src/commands/bundle/compute_price_amount.ts | 4 +- src/commands/buy_x_pay_y_promotion/disable.ts | 4 +- src/commands/buy_x_pay_y_promotion/enable.ts | 4 +- src/commands/capture/refund.ts | 4 +- src/commands/capture/refund_amount_cents.ts | 4 +- src/commands/checkout_com_payment/details.ts | 4 +- src/commands/checkout_com_payment/refresh.ts | 4 +- .../reset_password_token.ts | 4 +- src/commands/external_promotion/disable.ts | 4 +- src/commands/external_promotion/enable.ts | 4 +- .../fixed_amount_promotion/disable.ts | 4 +- src/commands/fixed_amount_promotion/enable.ts | 4 +- src/commands/fixed_price_promotion/disable.ts | 4 +- src/commands/fixed_price_promotion/enable.ts | 4 +- src/commands/free_gift_promotion/disable.ts | 4 +- src/commands/free_gift_promotion/enable.ts | 4 +- .../free_shipping_promotion/disable.ts | 4 +- .../free_shipping_promotion/enable.ts | 4 +- src/commands/gift_card/activate.ts | 4 +- .../gift_card/balance_change_cents.ts | 4 +- src/commands/gift_card/deactivate.ts | 4 +- src/commands/gift_card/purchase.ts | 4 +- .../in_stock_subscription/activate.ts | 4 +- .../in_stock_subscription/deactivate.ts | 4 +- src/commands/klarna_payment/update.ts | 4 +- src/commands/line_item/external_price.ts | 4 +- src/commands/line_item/reserve_stock.ts | 4 +- src/commands/market/disable.ts | 4 +- src/commands/market/enable.ts | 4 +- src/commands/order/approve.ts | 4 +- src/commands/order/approve_and_capture.ts | 4 +- src/commands/order/archive.ts | 4 +- .../order/authorization_amount_cents.ts | 4 +- src/commands/order/authorize.ts | 4 +- .../order/billing_address_clone_id.ts | 4 +- .../order/billing_address_same_as_shipping.ts | 4 +- src/commands/order/cancel.ts | 4 +- src/commands/order/capture.ts | 4 +- src/commands/order/commit_invoice.ts | 4 +- src/commands/order/create_subscriptions.ts | 4 +- .../order/customer_payment_source_id.ts | 4 +- src/commands/order/nullify_payment_source.ts | 4 +- src/commands/order/place.ts | 4 +- src/commands/order/refresh.ts | 4 +- src/commands/order/refund.ts | 4 +- src/commands/order/refund_invoice.ts | 4 +- ...illing_address_to_customer_address_book.ts | 4 +- .../save_payment_source_to_customer_wallet.ts | 4 +- ...ipping_address_to_customer_address_book.ts | 4 +- .../order/shipping_address_clone_id.ts | 4 +- .../order/shipping_address_same_as_billing.ts | 4 +- src/commands/order/start_editing.ts | 4 +- src/commands/order/stop_editing.ts | 4 +- src/commands/order/unarchive.ts | 4 +- src/commands/order/update_taxes.ts | 4 +- src/commands/order/validate.ts | 4 +- src/commands/order_subscription/activate.ts | 4 +- src/commands/order_subscription/cancel.ts | 4 +- src/commands/order_subscription/deactivate.ts | 4 +- src/commands/payment_method/disable.ts | 4 +- src/commands/payment_method/enable.ts | 4 +- .../percentage_discount_promotion/disable.ts | 4 +- .../percentage_discount_promotion/enable.ts | 4 +- src/commands/return/approve.ts | 4 +- src/commands/return/archive.ts | 4 +- src/commands/return/cancel.ts | 4 +- src/commands/return/receive.ts | 4 +- src/commands/return/reject.ts | 4 +- src/commands/return/request.ts | 4 +- src/commands/return/restock.ts | 4 +- src/commands/return/ship.ts | 4 +- src/commands/return/unarchive.ts | 4 +- src/commands/return_line_item/restock.ts | 4 +- src/commands/satispay_payment/refresh.ts | 4 +- src/commands/shipment/decrement_stock.ts | 36 + src/commands/shipment/get_rates.ts | 4 +- src/commands/shipment/on_hold.ts | 4 +- src/commands/shipment/packing.ts | 4 +- src/commands/shipment/picking.ts | 4 +- src/commands/shipment/purchase.ts | 4 +- src/commands/shipment/ready_to_ship.ts | 4 +- src/commands/shipment/release_stock.ts | 36 + src/commands/shipment/reserve_stock.ts | 36 + src/commands/shipment/ship.ts | 4 +- src/commands/shipment/upcoming.ts | 36 + src/commands/shipping_method/disable.ts | 4 +- src/commands/shipping_method/enable.ts | 4 +- src/commands/stock_reservation/index.ts | 57 + src/commands/stock_reservation/pending.ts | 36 + src/commands/stock_transfer/cancel.ts | 4 +- src/commands/stock_transfer/complete.ts | 4 +- src/commands/stock_transfer/in_transit.ts | 4 +- src/commands/stock_transfer/on_hold.ts | 36 + src/commands/stock_transfer/picking.ts | 4 +- src/commands/stock_transfer/upcoming.ts | 4 +- src/commands/stripe_payment/refresh.ts | 4 +- src/commands/stripe_payment/update.ts | 4 +- src/commands/webhook/reset_circuit.ts | 4 +- src/exec.ts | 13 +- src/triggers/shipments.ts | 28 +- src/triggers/stock_reservations.ts | 15 + src/triggers/stock_transfers.ts | 6 + .../commands/shipment/decrement_stock.test.ts | 11 + test/commands/shipment/release_stock.test.ts | 11 + test/commands/shipment/reserve_stock.test.ts | 11 + test/commands/shipment/upcoming.test.ts | 11 + .../stock_reservation/pending.test.ts | 11 + test/commands/stock_transfer/on_hold.test.ts | 11 + 121 files changed, 1348 insertions(+), 805 deletions(-) create mode 100644 .github/release.yml create mode 100644 .github/workflows/codeql-analysis.yml create mode 100644 src/commands/shipment/decrement_stock.ts create mode 100644 src/commands/shipment/release_stock.ts create mode 100644 src/commands/shipment/reserve_stock.ts create mode 100644 src/commands/shipment/upcoming.ts create mode 100644 src/commands/stock_reservation/index.ts create mode 100644 src/commands/stock_reservation/pending.ts create mode 100644 src/commands/stock_transfer/on_hold.ts create mode 100644 src/triggers/stock_reservations.ts create mode 100644 test/commands/shipment/decrement_stock.test.ts create mode 100644 test/commands/shipment/release_stock.test.ts create mode 100644 test/commands/shipment/reserve_stock.test.ts create mode 100644 test/commands/shipment/upcoming.test.ts create mode 100644 test/commands/stock_reservation/pending.test.ts create mode 100644 test/commands/stock_transfer/on_hold.test.ts diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..0fa560f --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,24 @@ +# .github/release.yaml + +changelog: + exclude: + labels: + - ignore-for-release + authors: + - octocat + categories: + - title: đŸ’Ĩ Breaking Change + labels: + - breaking-change + - title: 🚀 Enhancement + labels: + - enhancement + - title: 🐛 Bug Fix + labels: + - bug + - title: 📝 Documentation + labels: + - documentation + - title: Other Changes + labels: + - "*" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..10de201 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,70 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ main ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ main ] + schedule: + - cron: '16 10 * * 6' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'javascript' ] + # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] + # Learn more about CodeQL language support at https://git.io/codeql-language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/README.md b/README.md index a4870b9..ff1ce65 100644 --- a/README.md +++ b/README.md @@ -136,20 +136,27 @@ $ commercelayer plugins:install triggers * [`commercelayer satispay_payment ID`](#commercelayer-satispay_payment-id) * [`commercelayer satispay_payment:refresh ID`](#commercelayer-satispay_paymentrefresh-id) * [`commercelayer shipment ID`](#commercelayer-shipment-id) +* [`commercelayer shipment:decrement_stock ID`](#commercelayer-shipmentdecrement_stock-id) * [`commercelayer shipment:get_rates ID`](#commercelayer-shipmentget_rates-id) * [`commercelayer shipment:on_hold ID`](#commercelayer-shipmenton_hold-id) * [`commercelayer shipment:packing ID`](#commercelayer-shipmentpacking-id) * [`commercelayer shipment:picking ID`](#commercelayer-shipmentpicking-id) * [`commercelayer shipment:purchase ID`](#commercelayer-shipmentpurchase-id) * [`commercelayer shipment:ready_to_ship ID`](#commercelayer-shipmentready_to_ship-id) +* [`commercelayer shipment:release_stock ID`](#commercelayer-shipmentrelease_stock-id) +* [`commercelayer shipment:reserve_stock ID`](#commercelayer-shipmentreserve_stock-id) * [`commercelayer shipment:ship ID`](#commercelayer-shipmentship-id) +* [`commercelayer shipment:upcoming ID`](#commercelayer-shipmentupcoming-id) * [`commercelayer shipping_method ID`](#commercelayer-shipping_method-id) * [`commercelayer shipping_method:disable ID`](#commercelayer-shipping_methoddisable-id) * [`commercelayer shipping_method:enable ID`](#commercelayer-shipping_methodenable-id) +* [`commercelayer stock_reservation ID`](#commercelayer-stock_reservation-id) +* [`commercelayer stock_reservation:pending ID`](#commercelayer-stock_reservationpending-id) * [`commercelayer stock_transfer ID`](#commercelayer-stock_transfer-id) * [`commercelayer stock_transfer:cancel ID`](#commercelayer-stock_transfercancel-id) * [`commercelayer stock_transfer:complete ID`](#commercelayer-stock_transfercomplete-id) * [`commercelayer stock_transfer:in_transit ID`](#commercelayer-stock_transferin_transit-id) +* [`commercelayer stock_transfer:on_hold ID`](#commercelayer-stock_transferon_hold-id) * [`commercelayer stock_transfer:picking ID`](#commercelayer-stock_transferpicking-id) * [`commercelayer stock_transfer:upcoming ID`](#commercelayer-stock_transferupcoming-id) * [`commercelayer stripe_payment ID`](#commercelayer-stripe_payment-id) @@ -2507,6 +2514,29 @@ DESCRIPTION _See code: [src/commands/shipment/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/index.ts)_ +### `commercelayer shipment:decrement_stock ID` + +Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. + +```sh-session +USAGE + $ commercelayer shipment:decrement_stock ID [-u [-j -p]] + +ARGUMENTS + ID the unique id of the resource + +FLAGS + -j, --json print result in JSON format + -p, --print print out the modified resource + -u, --unformatted print JSON output without indentation + +DESCRIPTION + Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line + item. Can be done only when fulfillment is in progress. +``` + +_See code: [src/commands/shipment/decrement_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/decrement_stock.ts)_ + ### `commercelayer shipment:get_rates ID` Send this attribute if you want get the shipping rates from the associated carrier accounts. @@ -2639,6 +2669,52 @@ DESCRIPTION _See code: [src/commands/shipment/ready_to_ship.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/ready_to_ship.ts)_ +### `commercelayer shipment:release_stock ID` + +Send this attribute if you want to automatically release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. + +```sh-session +USAGE + $ commercelayer shipment:release_stock ID [-u [-j -p]] + +ARGUMENTS + ID the unique id of the resource + +FLAGS + -j, --json print result in JSON format + -p, --print print out the modified resource + -u, --unformatted print JSON output without indentation + +DESCRIPTION + Send this attribute if you want to automatically release the stock for each of the associated stock line item. Can be + done only when fulfillment is in progress. +``` + +_See code: [src/commands/shipment/release_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/release_stock.ts)_ + +### `commercelayer shipment:reserve_stock ID` + +Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. + +```sh-session +USAGE + $ commercelayer shipment:reserve_stock ID [-u [-j -p]] + +ARGUMENTS + ID the unique id of the resource + +FLAGS + -j, --json print result in JSON format + -p, --print print out the modified resource + -u, --unformatted print JSON output without indentation + +DESCRIPTION + Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be + done only when fulfillment is in progress. +``` + +_See code: [src/commands/shipment/reserve_stock.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/reserve_stock.ts)_ + ### `commercelayer shipment:ship ID` Send this attribute if you want to mark this shipment as shipped. @@ -2661,6 +2737,28 @@ DESCRIPTION _See code: [src/commands/shipment/ship.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/ship.ts)_ +### `commercelayer shipment:upcoming ID` + +Send this attribute if you want to mark this shipment as upcoming. + +```sh-session +USAGE + $ commercelayer shipment:upcoming ID [-u [-j -p]] + +ARGUMENTS + ID the unique id of the resource + +FLAGS + -j, --json print result in JSON format + -p, --print print out the modified resource + -u, --unformatted print JSON output without indentation + +DESCRIPTION + Send this attribute if you want to mark this shipment as upcoming. +``` + +_See code: [src/commands/shipment/upcoming.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipment/upcoming.ts)_ + ### `commercelayer shipping_method ID` Execute an action on a resource of type shipping_methods. @@ -2727,6 +2825,50 @@ DESCRIPTION _See code: [src/commands/shipping_method/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/shipping_method/enable.ts)_ +### `commercelayer stock_reservation ID` + +Execute an action on a resource of type stock_reservations. + +```sh-session +USAGE + $ commercelayer stock_reservation ID [-u [-j -p]] + +ARGUMENTS + ID the unique id of the resource + +FLAGS + -j, --json print result in JSON format + -p, --print print out the modified resource + -u, --unformatted print JSON output without indentation + +DESCRIPTION + execute an action on a resource of type stock_reservations +``` + +_See code: [src/commands/stock_reservation/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_reservation/index.ts)_ + +### `commercelayer stock_reservation:pending ID` + +Send this attribute if you want to mark this stock reservation as pending. + +```sh-session +USAGE + $ commercelayer stock_reservation:pending ID [-u [-j -p]] + +ARGUMENTS + ID the unique id of the resource + +FLAGS + -j, --json print result in JSON format + -p, --print print out the modified resource + -u, --unformatted print JSON output without indentation + +DESCRIPTION + Send this attribute if you want to mark this stock reservation as pending. +``` + +_See code: [src/commands/stock_reservation/pending.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_reservation/pending.ts)_ + ### `commercelayer stock_transfer ID` Execute an action on a resource of type stock_transfers. @@ -2815,6 +2957,28 @@ DESCRIPTION _See code: [src/commands/stock_transfer/in_transit.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_transfer/in_transit.ts)_ +### `commercelayer stock_transfer:on_hold ID` + +Send this attribute if you want to put this stock transfer on hold. + +```sh-session +USAGE + $ commercelayer stock_transfer:on_hold ID [-u [-j -p]] + +ARGUMENTS + ID the unique id of the resource + +FLAGS + -j, --json print result in JSON format + -p, --print print out the modified resource + -u, --unformatted print JSON output without indentation + +DESCRIPTION + Send this attribute if you want to put this stock transfer on hold. +``` + +_See code: [src/commands/stock_transfer/on_hold.ts](https://github.com/commercelayer/commercelayer-cli-plugin-triggers/blob/main/src/commands/stock_transfer/on_hold.ts)_ + ### `commercelayer stock_transfer:picking ID` Send this attribute if you want to start picking this stock transfer. diff --git a/gen/templates/action.tpl b/gen/templates/action.tpl index fbb35e8..8bdeb73 100644 --- a/gen/templates/action.tpl +++ b/gen/templates/action.tpl @@ -1,6 +1,6 @@ import Command##__FLAGS_IMPORT__## from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/##__RESOURCE_TYPE__##' +import { type ##__RESOURCE_CLASS__## } from '@commercelayer/sdk' const TRIGGER = '##__ACTION_ID__##' @@ -23,7 +23,7 @@ export default class ##__RESOURCE_CLASS__####__ACTION_NAME__## extends Command { const { args, flags } = await this.parse(##__RESOURCE_CLASS__####__ACTION_NAME__##) - const res = await exec('##__RESOURCE_TYPE__##', args.id, TRIGGER, flags) + const res = await this.executeAction<##__RESOURCE_CLASS__##>('##__RESOURCE_TYPE__##', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/package.json b/package.json index ae3d90e..8c6aef7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@commercelayer/cli-plugin-triggers", "description": "Commerce Layer CLI Triggers plugin", - "version": "3.14.0", + "version": "3.15.0", "author": "Pierluigi Viti ", "bugs": "https://github.com/commercelayer/commercelayer-cli-plugin-triggers/issues", "engines": { @@ -55,26 +55,26 @@ "types": "lib/index.d.ts", "devDependencies": { "@commercelayer/cli-dev": "^2.0.5", - "@commercelayer/eslint-config-ts": "^1.1.0", + "@commercelayer/eslint-config-ts": "^1.2.0", "@oclif/plugin-help": "^5.2.20", "@oclif/test": "^2.5.6", - "@types/chai": "^4.3.7", - "@types/inquirer": "^8.2.7", - "@types/lodash": "^4.14.199", - "@types/mocha": "^10.0.2", - "@types/node": "^20.8.4", + "@types/chai": "^4.3.10", + "@types/inquirer": "^8.2.10", + "@types/lodash": "^4.14.201", + "@types/mocha": "^10.0.4", + "@types/node": "^20.9.2", "chai": "^4.3.10", - "eslint": "^8.51.0", + "eslint": "^8.54.0", "inflector-js": "^1.0.1", "lodash": "^4.17.21", "mocha": "^10.2.0", "nyc": "^15.1.0", "ts-node": "^10.9.1", - "typescript": "5.0.4" + "typescript": "5.2.2" }, "dependencies": { - "@commercelayer/cli-core": "^3.12.1", - "@commercelayer/sdk": "^5.16.0", + "@commercelayer/cli-core": "^4.3.3", + "@commercelayer/sdk": "^5.22.1", "@oclif/core": "^2.15.0", "inquirer": "^8.2.6", "tslib": "^2.6.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f9e4cb..7c7fc51 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,14 +6,14 @@ settings: dependencies: '@commercelayer/cli-core': - specifier: ^3.12.1 - version: 3.12.1(@types/node@20.8.4)(typescript@5.0.4) + specifier: ^4.3.3 + version: 4.3.3(@types/node@20.9.2)(typescript@5.2.2) '@commercelayer/sdk': - specifier: ^5.16.0 - version: 5.16.0 + specifier: ^5.22.1 + version: 5.22.1 '@oclif/core': specifier: ^2.15.0 - version: 2.15.0(@types/node@20.8.4)(typescript@5.0.4) + version: 2.15.0(@types/node@20.9.2)(typescript@5.2.2) inquirer: specifier: ^8.2.6 version: 8.2.6 @@ -24,37 +24,37 @@ dependencies: devDependencies: '@commercelayer/cli-dev': specifier: ^2.0.5 - version: 2.0.5(@types/node@20.8.4)(typescript@5.0.4) + version: 2.0.5(@types/node@20.9.2)(typescript@5.2.2) '@commercelayer/eslint-config-ts': - specifier: ^1.1.0 - version: 1.1.0(eslint@8.51.0)(typescript@5.0.4) + specifier: ^1.2.0 + version: 1.2.0(eslint@8.54.0)(typescript@5.2.2) '@oclif/plugin-help': specifier: ^5.2.20 - version: 5.2.20(@types/node@20.8.4)(typescript@5.0.4) + version: 5.2.20(@types/node@20.9.2)(typescript@5.2.2) '@oclif/test': specifier: ^2.5.6 - version: 2.5.6(@types/node@20.8.4)(typescript@5.0.4) + version: 2.5.6(@types/node@20.9.2)(typescript@5.2.2) '@types/chai': - specifier: ^4.3.7 - version: 4.3.7 + specifier: ^4.3.10 + version: 4.3.10 '@types/inquirer': - specifier: ^8.2.7 - version: 8.2.7 + specifier: ^8.2.10 + version: 8.2.10 '@types/lodash': - specifier: ^4.14.199 - version: 4.14.199 + specifier: ^4.14.201 + version: 4.14.201 '@types/mocha': - specifier: ^10.0.2 - version: 10.0.2 + specifier: ^10.0.4 + version: 10.0.4 '@types/node': - specifier: ^20.8.4 - version: 20.8.4 + specifier: ^20.9.2 + version: 20.9.2 chai: specifier: ^4.3.10 version: 4.3.10 eslint: - specifier: ^8.51.0 - version: 8.51.0 + specifier: ^8.54.0 + version: 8.54.0 inflector-js: specifier: ^1.0.1 version: 1.0.1 @@ -69,10 +69,10 @@ devDependencies: version: 15.1.0 ts-node: specifier: ^10.9.1 - version: 10.9.1(@types/node@20.8.4)(typescript@5.0.4) + version: 10.9.1(@types/node@20.9.2)(typescript@5.2.2) typescript: - specifier: 5.0.4 - version: 5.0.4 + specifier: 5.2.2 + version: 5.2.2 packages: @@ -86,36 +86,36 @@ packages: engines: {node: '>=6.0.0'} dependencies: '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.20 dev: true - /@babel/code-frame@7.22.13: - resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} + /@babel/code-frame@7.23.4: + resolution: {integrity: sha512-r1IONyb6Ia+jYR2vvIDhdWdlTGhqbBoFqLTQidzZ4kepUFH15ejXvFHxCVbtl7BOXIudsIubf4E81xeA3h3IXA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': 7.22.20 + '@babel/highlight': 7.23.4 chalk: 2.4.2 dev: true - /@babel/compat-data@7.22.20: - resolution: {integrity: sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==} + /@babel/compat-data@7.23.3: + resolution: {integrity: sha512-BmR4bWbDIoFJmJ9z2cZ8Gmm2MXgEDgjdWgpKmKWUt54UGFJdlj31ECtbaDvCG/qVdG3AQ1SfpZEs01lUFbzLOQ==} engines: {node: '>=6.9.0'} dev: true - /@babel/core@7.23.0: - resolution: {integrity: sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==} + /@babel/core@7.23.3: + resolution: {integrity: sha512-Jg+msLuNuCJDyBvFv5+OKOUjWMZgd85bKjbICd3zWrKAo+bJ49HJufi7CQE0q0uR8NGyO6xkCACScNqyjHSZew==} engines: {node: '>=6.9.0'} dependencies: '@ampproject/remapping': 2.2.1 - '@babel/code-frame': 7.22.13 - '@babel/generator': 7.23.0 + '@babel/code-frame': 7.23.4 + '@babel/generator': 7.23.4 '@babel/helper-compilation-targets': 7.22.15 - '@babel/helper-module-transforms': 7.23.0(@babel/core@7.23.0) - '@babel/helpers': 7.23.1 - '@babel/parser': 7.23.0 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.3) + '@babel/helpers': 7.23.4 + '@babel/parser': 7.23.4 '@babel/template': 7.22.15 - '@babel/traverse': 7.23.0 - '@babel/types': 7.23.0 + '@babel/traverse': 7.23.4 + '@babel/types': 7.23.4 convert-source-map: 2.0.0 debug: 4.3.4(supports-color@8.1.1) gensync: 1.0.0-beta.2 @@ -125,13 +125,13 @@ packages: - supports-color dev: true - /@babel/generator@7.23.0: - resolution: {integrity: sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==} + /@babel/generator@7.23.4: + resolution: {integrity: sha512-esuS49Cga3HcThFNebGhlgsrVLkvhqvYDTzgjfFFlHJcIfLe5jFmRRfCQ1KuBfc4Jrtn3ndLgKWAKjBE+IraYQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.23.4 '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.20 jsesc: 2.5.2 dev: true @@ -139,7 +139,7 @@ packages: resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/compat-data': 7.22.20 + '@babel/compat-data': 7.23.3 '@babel/helper-validator-option': 7.22.15 browserslist: 4.22.1 lru-cache: 5.1.1 @@ -156,30 +156,30 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.22.15 - '@babel/types': 7.23.0 + '@babel/types': 7.23.4 dev: true /@babel/helper-hoist-variables@7.22.5: resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.23.4 dev: true /@babel/helper-module-imports@7.22.15: resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.23.4 dev: true - /@babel/helper-module-transforms@7.23.0(@babel/core@7.23.0): - resolution: {integrity: sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==} + /@babel/helper-module-transforms@7.23.3(@babel/core@7.23.3): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.23.0 + '@babel/core': 7.23.3 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 @@ -191,18 +191,18 @@ packages: resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.23.4 dev: true /@babel/helper-split-export-declaration@7.22.6: resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.23.4 dev: true - /@babel/helper-string-parser@7.22.5: - resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} + /@babel/helper-string-parser@7.23.4: + resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} engines: {node: '>=6.9.0'} dev: true @@ -216,19 +216,19 @@ packages: engines: {node: '>=6.9.0'} dev: true - /@babel/helpers@7.23.1: - resolution: {integrity: sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==} + /@babel/helpers@7.23.4: + resolution: {integrity: sha512-HfcMizYz10cr3h29VqyfGL6ZWIjTwWfvYBMsBVGwpcbhNGe3wQ1ZXZRPzZoAHhd9OqHadHqjQ89iVKINXnbzuw==} engines: {node: '>=6.9.0'} dependencies: '@babel/template': 7.22.15 - '@babel/traverse': 7.23.0 - '@babel/types': 7.23.0 + '@babel/traverse': 7.23.4 + '@babel/types': 7.23.4 transitivePeerDependencies: - supports-color dev: true - /@babel/highlight@7.22.20: - resolution: {integrity: sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==} + /@babel/highlight@7.23.4: + resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} engines: {node: '>=6.9.0'} dependencies: '@babel/helper-validator-identifier': 7.22.20 @@ -236,59 +236,59 @@ packages: js-tokens: 4.0.0 dev: true - /@babel/parser@7.23.0: - resolution: {integrity: sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==} + /@babel/parser@7.23.4: + resolution: {integrity: sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': 7.23.0 + '@babel/types': 7.23.4 dev: true /@babel/template@7.22.15: resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.22.13 - '@babel/parser': 7.23.0 - '@babel/types': 7.23.0 + '@babel/code-frame': 7.23.4 + '@babel/parser': 7.23.4 + '@babel/types': 7.23.4 dev: true - /@babel/traverse@7.23.0: - resolution: {integrity: sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==} + /@babel/traverse@7.23.4: + resolution: {integrity: sha512-IYM8wSUwunWTB6tFC2dkKZhxbIjHoWemdK+3f8/wq8aKhbUscxD5MX72ubd90fxvFknaLPeGw5ycU84V1obHJg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': 7.22.13 - '@babel/generator': 7.23.0 + '@babel/code-frame': 7.23.4 + '@babel/generator': 7.23.4 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.23.0 - '@babel/types': 7.23.0 + '@babel/parser': 7.23.4 + '@babel/types': 7.23.4 debug: 4.3.4(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color dev: true - /@babel/types@7.23.0: - resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} + /@babel/types@7.23.4: + resolution: {integrity: sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': 7.22.5 + '@babel/helper-string-parser': 7.23.4 '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 dev: true - /@commercelayer/cli-core@3.12.1(@types/node@20.8.4)(typescript@5.0.4): - resolution: {integrity: sha512-4+yPJxnPq7az3ag13CN2vM0iUhIoikiB/9rlhGOg86/usI69drpuHQLQc2jNe2gXJXcXfaRwuagrpx8y/0uh/Q==} + /@commercelayer/cli-core@4.3.3(@types/node@20.9.2)(typescript@5.2.2): + resolution: {integrity: sha512-8j1IBfU6Dos7tPFhMU1vl2hIwQSkQO6EMGKMaOTuBy+mptwMJqrWN7OHsB/aG9jNXw8FC2Ng/aPt3NSBcNjaiA==} engines: {node: ^16.13.0 || >=18.0.0} dependencies: - '@commercelayer/js-auth': 2.3.0 - '@oclif/core': 2.15.0(@types/node@20.8.4)(typescript@5.0.4) - axios: 1.4.0 + '@commercelayer/js-auth': 4.2.0 + '@oclif/core': 2.15.0(@types/node@20.9.2)(typescript@5.2.2) + axios: 1.6.1 chalk: 4.1.2 - jsonwebtoken: 8.5.1 + jsonwebtoken: 9.0.2 update-notifier-cjs: 5.1.6 transitivePeerDependencies: - '@swc/core' @@ -299,12 +299,12 @@ packages: - typescript dev: false - /@commercelayer/cli-dev@2.0.5(@types/node@20.8.4)(typescript@5.0.4): + /@commercelayer/cli-dev@2.0.5(@types/node@20.9.2)(typescript@5.2.2): resolution: {integrity: sha512-pavZ/3aff5u11XLvSq0PEN/zAB3tCDDe3ltnpFShpGMEme8MxPQ5dsVLu7/+u8gip9ifPi/ek+ECE0CDWyUMng==} engines: {node: '>=16'} hasBin: true dependencies: - '@oclif/core': 2.15.0(@types/node@20.8.4)(typescript@5.0.4) + '@oclif/core': 2.15.0(@types/node@20.9.2)(typescript@5.2.2) fs-extra: 10.1.0 github-slugger: 1.5.0 normalize-package-data: 5.0.0 @@ -316,23 +316,23 @@ packages: - typescript dev: true - /@commercelayer/eslint-config-ts@1.1.0(eslint@8.51.0)(typescript@5.0.4): - resolution: {integrity: sha512-OOzV3RPN7JlEZkwNxWVHdRRknjuLboB/CwxeS832/Kd5sMvOHyaYymNVSpG2tiQj7aFsvtfK8m1umM7Lhod6AA==} + /@commercelayer/eslint-config-ts@1.2.0(eslint@8.54.0)(typescript@5.2.2): + resolution: {integrity: sha512-F49LqnNyGpSrijYgYfV/sztu0G4aRpw/vZrdapCu9qwAJt/y1wZcRlXRGhJJ9kN0Ag9+vDC+ZN8EOH7cjSseDA==} peerDependencies: eslint: '>=8.0' typescript: '>=5.0' dependencies: - '@typescript-eslint/eslint-plugin': 6.7.5(@typescript-eslint/parser@6.7.5)(eslint@8.51.0)(typescript@5.0.4) - '@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.0.4) - eslint: 8.51.0 - eslint-config-prettier: 9.0.0(eslint@8.51.0) - eslint-config-standard-with-typescript: 39.1.1(@typescript-eslint/eslint-plugin@6.7.5)(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.51.0)(typescript@5.0.4) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.5)(eslint@8.51.0) - eslint-plugin-n: 16.1.0(eslint@8.51.0) - eslint-plugin-prettier: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@3.0.3) - eslint-plugin-promise: 6.1.1(eslint@8.51.0) - prettier: 3.0.3 - typescript: 5.0.4 + '@typescript-eslint/eslint-plugin': 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.11.0(eslint@8.54.0)(typescript@5.2.2) + eslint: 8.54.0 + eslint-config-prettier: 9.0.0(eslint@8.54.0) + eslint-config-standard-with-typescript: 39.1.1(@typescript-eslint/eslint-plugin@6.11.0)(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.54.0)(typescript@5.2.2) + eslint-plugin-import: 2.29.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0) + eslint-plugin-n: 16.3.1(eslint@8.54.0) + eslint-plugin-prettier: 5.0.1(eslint-config-prettier@9.0.0)(eslint@8.54.0)(prettier@3.1.0) + eslint-plugin-promise: 6.1.1(eslint@8.54.0) + prettier: 3.1.0 + typescript: 5.2.2 transitivePeerDependencies: - '@types/eslint' - eslint-import-resolver-typescript @@ -340,18 +340,16 @@ packages: - supports-color dev: true - /@commercelayer/js-auth@2.3.0: - resolution: {integrity: sha512-+jly3Rgyy7LZ7PJENZg8QFfFJlyTdS/3otnBUtnWFRHFbl7eQ2bSYvNvxDOgai8TP6d9uMBIgm6Twcy94XjA1w==} - dependencies: - client-oauth2: 4.3.3 - tslib: 2.6.2 + /@commercelayer/js-auth@4.2.0: + resolution: {integrity: sha512-KVVi3blZDVKHJCo2DWWbAuhfEGiF3a90OtPHVkjtyeW7n8m5/m2+++5CnMhRZKHvKIS7NpW0XPwoQNb7P8hO4Q==} + engines: {node: '>=18.0.0'} dev: false - /@commercelayer/sdk@5.16.0: - resolution: {integrity: sha512-+HYiYLxgl+reRuzQuPYaRqsTdzFp3wQvwlAjRm3nx/i2hCl7fd1IufwN5bWw9nMv159IOFzT76cvuVrChVKgZA==} + /@commercelayer/sdk@5.22.1: + resolution: {integrity: sha512-eF3vlF1sK45tMRydbMg+bQGx6yZWnjg1B+PKwxtFNmsfcURvazBqQtRMv9Tab/3PX2lEFvAFrxkjoxafRUFV8Q==} engines: {node: '>=16 || ^14.17'} dependencies: - axios: 1.5.1 + axios: 1.6.1 transitivePeerDependencies: - debug dev: false @@ -362,30 +360,30 @@ packages: dependencies: '@jridgewell/trace-mapping': 0.3.9 - /@eslint-community/eslint-utils@4.4.0(eslint@8.51.0): + /@eslint-community/eslint-utils@4.4.0(eslint@8.54.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: 8.51.0 + eslint: 8.54.0 eslint-visitor-keys: 3.4.3 dev: true - /@eslint-community/regexpp@4.9.1: - resolution: {integrity: sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==} + /@eslint-community/regexpp@4.10.0: + resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true - /@eslint/eslintrc@2.1.2: - resolution: {integrity: sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==} + /@eslint/eslintrc@2.1.3: + resolution: {integrity: sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: ajv: 6.12.6 debug: 4.3.4(supports-color@8.1.1) espree: 9.6.1 globals: 13.23.0 - ignore: 5.2.4 + ignore: 5.3.0 import-fresh: 3.3.0 js-yaml: 4.1.0 minimatch: 3.1.2 @@ -394,16 +392,16 @@ packages: - supports-color dev: true - /@eslint/js@8.51.0: - resolution: {integrity: sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==} + /@eslint/js@8.54.0: + resolution: {integrity: sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /@humanwhocodes/config-array@0.11.11: - resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==} + /@humanwhocodes/config-array@0.11.13: + resolution: {integrity: sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==} engines: {node: '>=10.10.0'} dependencies: - '@humanwhocodes/object-schema': 1.2.1 + '@humanwhocodes/object-schema': 2.0.1 debug: 4.3.4(supports-color@8.1.1) minimatch: 3.1.2 transitivePeerDependencies: @@ -415,8 +413,8 @@ packages: engines: {node: '>=12.22'} dev: true - /@humanwhocodes/object-schema@1.2.1: - resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} + /@humanwhocodes/object-schema@2.0.1: + resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==} dev: true /@istanbuljs/load-nyc-config@1.1.0: @@ -441,7 +439,7 @@ packages: dependencies: '@jridgewell/set-array': 1.1.2 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.19 + '@jridgewell/trace-mapping': 0.3.20 dev: true /@jridgewell/resolve-uri@3.1.1: @@ -456,8 +454,8 @@ packages: /@jridgewell/sourcemap-codec@1.4.15: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} - /@jridgewell/trace-mapping@0.3.19: - resolution: {integrity: sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==} + /@jridgewell/trace-mapping@0.3.20: + resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==} dependencies: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 @@ -487,11 +485,11 @@ packages: '@nodelib/fs.scandir': 2.1.5 fastq: 1.15.0 - /@oclif/core@2.15.0(@types/node@20.8.4)(typescript@5.0.4): + /@oclif/core@2.15.0(@types/node@20.9.2)(typescript@5.2.2): resolution: {integrity: sha512-fNEMG5DzJHhYmI3MgpByTvltBOMyFcnRIUMxbiz2ai8rhaYgaTHMG3Q38HcosfIvtw9nCjxpcQtC8MN8QtVCcA==} engines: {node: '>=14.0.0'} dependencies: - '@types/cli-progress': 3.11.3 + '@types/cli-progress': 3.11.5 ansi-escapes: 4.3.2 ansi-styles: 4.3.0 cardinal: 2.1.1 @@ -514,7 +512,7 @@ packages: strip-ansi: 6.0.1 supports-color: 8.1.1 supports-hyperlinks: 2.3.0 - ts-node: 10.9.1(@types/node@20.8.4)(typescript@5.0.4) + ts-node: 10.9.1(@types/node@20.9.2)(typescript@5.2.2) tslib: 2.6.2 widest-line: 3.1.0 wordwrap: 1.0.0 @@ -525,11 +523,11 @@ packages: - '@types/node' - typescript - /@oclif/plugin-help@5.2.20(@types/node@20.8.4)(typescript@5.0.4): + /@oclif/plugin-help@5.2.20(@types/node@20.9.2)(typescript@5.2.2): resolution: {integrity: sha512-u+GXX/KAGL9S10LxAwNUaWdzbEBARJ92ogmM7g3gDVud2HioCmvWQCDohNRVZ9GYV9oKwZ/M8xwd6a1d95rEKQ==} engines: {node: '>=12.0.0'} dependencies: - '@oclif/core': 2.15.0(@types/node@20.8.4)(typescript@5.0.4) + '@oclif/core': 2.15.0(@types/node@20.9.2)(typescript@5.2.2) transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -537,11 +535,11 @@ packages: - typescript dev: true - /@oclif/test@2.5.6(@types/node@20.8.4)(typescript@5.0.4): + /@oclif/test@2.5.6(@types/node@20.9.2)(typescript@5.2.2): resolution: {integrity: sha512-AcusFApdU6/akXaofhBDrY4IM9uYzlOD9bYCCM0NwUXOv1m6320hSp2DT/wkj9H1gsvKbJXZHqgtXsNGZTWLFg==} engines: {node: '>=12.0.0'} dependencies: - '@oclif/core': 2.15.0(@types/node@20.8.4)(typescript@5.0.4) + '@oclif/core': 2.15.0(@types/node@20.9.2)(typescript@5.2.2) fancy-test: 2.0.42 transitivePeerDependencies: - '@swc/core' @@ -556,7 +554,7 @@ packages: engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} dependencies: cross-spawn: 7.0.3 - fast-glob: 3.3.1 + fast-glob: 3.3.2 is-glob: 4.0.3 open: 9.1.0 picocolors: 1.0.0 @@ -584,10 +582,6 @@ packages: config-chain: 1.1.13 dev: false - /@servie/events@1.0.0: - resolution: {integrity: sha512-sBSO19KzdrJCM3gdx6eIxV8M9Gxfgg6iDQmH5TIAGaUu+X9VDdsINXJOnoiZ1Kx3TrHdH4bt5UVglkjsEGBcvw==} - dev: false - /@tsconfig/node10@1.0.9: resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} @@ -600,69 +594,65 @@ packages: /@tsconfig/node16@1.0.4: resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - /@types/chai@4.3.7: - resolution: {integrity: sha512-/k+vesl92vMvMygmQrFe9Aimxi6oQXFUX9mA5HanTrKUSAMoLauSi6PNFOdRw0oeqilaW600GNx2vSaT2f8aIQ==} + /@types/chai@4.3.10: + resolution: {integrity: sha512-of+ICnbqjmFCiixUnqRulbylyXQrPqIGf/B3Jax1wIF3DvSheysQxAWvqHhZiW3IQrycvokcLcFQlveGp+vyNg==} dev: true - /@types/cli-progress@3.11.3: - resolution: {integrity: sha512-/+C9xAdVtc+g5yHHkGBThgAA8rYpi5B+2ve3wLtybYj0JHEBs57ivR4x/zGfSsplRnV+psE91Nfin1soNKqz5Q==} + /@types/cli-progress@3.11.5: + resolution: {integrity: sha512-D4PbNRbviKyppS5ivBGyFO29POlySLmA2HyUFE4p5QGazAMM3CwkKWcvTl8gvElSuxRh6FPKL8XmidX873ou4g==} dependencies: - '@types/node': 20.8.4 + '@types/node': 20.9.2 - /@types/inquirer@8.2.7: - resolution: {integrity: sha512-uICJEaJOf6MsKyyAf8p58+QxTS6dwy91QVfXk1hnQ0rUT+u7KpkeFx5dxQ/oju0BaOKB284brEMBHLpNf4bZDQ==} + /@types/inquirer@8.2.10: + resolution: {integrity: sha512-IdD5NmHyVjWM8SHWo/kPBgtzXatwPkfwzyP3fN1jF2g9BWt5WO+8hL2F4o2GKIYsU40PpqeevuUWvkS/roXJkA==} dependencies: - '@types/through': 0.0.31 + '@types/through': 0.0.33 rxjs: 7.8.1 dev: true - /@types/json-schema@7.0.13: - resolution: {integrity: sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==} + /@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} dev: true /@types/json5@0.0.29: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} dev: true - /@types/lodash@4.14.199: - resolution: {integrity: sha512-Vrjz5N5Ia4SEzWWgIVwnHNEnb1UE1XMkvY5DGXrAeOGE9imk0hgTHh5GyDjLDJi9OTCn9oo9dXH1uToK1VRfrg==} + /@types/lodash@4.14.201: + resolution: {integrity: sha512-y9euML0cim1JrykNxADLfaG0FgD1g/yTHwUs/Jg9ZIU7WKj2/4IW9Lbb1WZbvck78W/lfGXFfe+u2EGfIJXdLQ==} dev: true - /@types/mocha@10.0.2: - resolution: {integrity: sha512-NaHL0+0lLNhX6d9rs+NSt97WH/gIlRHmszXbQ/8/MV/eVcFNdeJ/GYhrFuUc8K7WuPhRhTSdMkCp8VMzhUq85w==} + /@types/mocha@10.0.4: + resolution: {integrity: sha512-xKU7bUjiFTIttpWaIZ9qvgg+22O1nmbA+HRxdlR+u6TWsGfmFdXrheJoK4fFxrHNVIOBDvDNKZG+LYBpMHpX3w==} dev: true - /@types/node@20.8.4: - resolution: {integrity: sha512-ZVPnqU58giiCjSxjVUESDtdPk4QR5WQhhINbc9UBrKLU68MX5BF6kbQzTrkwbolyr0X8ChBpXfavr5mZFKZQ5A==} + /@types/node@20.9.2: + resolution: {integrity: sha512-WHZXKFCEyIUJzAwh3NyyTHYSR35SevJ6mZ1nWwJafKtiQbqRTIKSRcw3Ma3acqgsent3RRDqeVwpHntMk+9irg==} dependencies: - undici-types: 5.25.3 + undici-types: 5.26.5 - /@types/semver@7.5.3: - resolution: {integrity: sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==} + /@types/semver@7.5.5: + resolution: {integrity: sha512-+d+WYC1BxJ6yVOgUgzK8gWvp5qF8ssV5r4nsDcZWKRWcDQLQ619tvWAxJQYGgBrO1MnLJC7a5GtiYsAoQ47dJg==} dev: true - /@types/sinon@10.0.19: - resolution: {integrity: sha512-MWZNGPSchIdDfb5FL+VFi4zHsHbNOTQEgjqFQk7HazXSXwUU9PAX3z9XBqb3AJGYr9YwrtCtaSMsT3brYsN/jQ==} + /@types/sinon@17.0.1: + resolution: {integrity: sha512-Q2Go6TJetYn5Za1+RJA1Aik61Oa2FS8SuJ0juIqUuJ5dZR4wvhKfmSdIqWtQ3P6gljKWjW0/R7FZkA4oXVL6OA==} dependencies: - '@types/sinonjs__fake-timers': 8.1.3 + '@types/sinonjs__fake-timers': 8.1.5 dev: true - /@types/sinonjs__fake-timers@8.1.3: - resolution: {integrity: sha512-4g+2YyWe0Ve+LBh+WUm1697PD0Kdi6coG1eU0YjQbwx61AZ8XbEpL1zIT6WjuUKrCMCROpEaYQPDjBnDouBVAQ==} + /@types/sinonjs__fake-timers@8.1.5: + resolution: {integrity: sha512-mQkU2jY8jJEF7YHjHvsQO8+3ughTL1mcnn96igfhONmR+fUPSKIkefQYpSe8bsly2Ep7oQbn/6VG5/9/0qcArQ==} dev: true - /@types/through@0.0.31: - resolution: {integrity: sha512-LpKpmb7FGevYgXnBXYs6HWnmiFyVG07Pt1cnbgM1IhEacITTiUaBXXvOR3Y50ksaJWGSfhbEvQFivQEFGCC55w==} + /@types/through@0.0.33: + resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} dependencies: - '@types/node': 20.8.4 + '@types/node': 20.9.2 dev: true - /@types/tough-cookie@2.3.9: - resolution: {integrity: sha512-jLZVDbs/2XRjcgg6X5aXlni7AC85LYOjIQ5H9Eouny0t1SDKiXWxkbTPLkMdFKYxlKVZtMstlkpU1v6d14hVbA==} - dev: false - - /@typescript-eslint/eslint-plugin@6.7.5(@typescript-eslint/parser@6.7.5)(eslint@8.51.0)(typescript@5.0.4): - resolution: {integrity: sha512-JhtAwTRhOUcP96D0Y6KYnwig/MRQbOoLGXTON2+LlyB/N35SP9j1boai2zzwXb7ypKELXMx3DVk9UTaEq1vHEw==} + /@typescript-eslint/eslint-plugin@6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@5.2.2): + resolution: {integrity: sha512-uXnpZDc4VRjY4iuypDBKzW1rz9T5YBBK0snMn8MaTSNd2kMlj50LnLBABELjJiOL5YHk7ZD8hbSpI9ubzqYI0w==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -672,26 +662,26 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': 4.9.1 - '@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.0.4) - '@typescript-eslint/scope-manager': 6.7.5 - '@typescript-eslint/type-utils': 6.7.5(eslint@8.51.0)(typescript@5.0.4) - '@typescript-eslint/utils': 6.7.5(eslint@8.51.0)(typescript@5.0.4) - '@typescript-eslint/visitor-keys': 6.7.5 + '@eslint-community/regexpp': 4.10.0 + '@typescript-eslint/parser': 6.11.0(eslint@8.54.0)(typescript@5.2.2) + '@typescript-eslint/scope-manager': 6.11.0 + '@typescript-eslint/type-utils': 6.11.0(eslint@8.54.0)(typescript@5.2.2) + '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.51.0 + eslint: 8.54.0 graphemer: 1.4.0 - ignore: 5.2.4 + ignore: 5.3.0 natural-compare: 1.4.0 semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@5.0.4) - typescript: 5.0.4 + ts-api-utils: 1.0.3(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/parser@6.7.5(eslint@8.51.0)(typescript@5.0.4): - resolution: {integrity: sha512-bIZVSGx2UME/lmhLcjdVc7ePBwn7CLqKarUBL4me1C5feOd663liTGjMBGVcGr+BhnSLeP4SgwdvNnnkbIdkCw==} + /@typescript-eslint/parser@6.11.0(eslint@8.54.0)(typescript@5.2.2): + resolution: {integrity: sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -700,27 +690,27 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 6.7.5 - '@typescript-eslint/types': 6.7.5 - '@typescript-eslint/typescript-estree': 6.7.5(typescript@5.0.4) - '@typescript-eslint/visitor-keys': 6.7.5 + '@typescript-eslint/scope-manager': 6.11.0 + '@typescript-eslint/types': 6.11.0 + '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4(supports-color@8.1.1) - eslint: 8.51.0 - typescript: 5.0.4 + eslint: 8.54.0 + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/scope-manager@6.7.5: - resolution: {integrity: sha512-GAlk3eQIwWOJeb9F7MKQ6Jbah/vx1zETSDw8likab/eFcqkjSD7BI75SDAeC5N2L0MmConMoPvTsmkrg71+B1A==} + /@typescript-eslint/scope-manager@6.11.0: + resolution: {integrity: sha512-0A8KoVvIURG4uhxAdjSaxy8RdRE//HztaZdG8KiHLP8WOXSk0vlF7Pvogv+vlJA5Rnjj/wDcFENvDaHb+gKd1A==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.7.5 - '@typescript-eslint/visitor-keys': 6.7.5 + '@typescript-eslint/types': 6.11.0 + '@typescript-eslint/visitor-keys': 6.11.0 dev: true - /@typescript-eslint/type-utils@6.7.5(eslint@8.51.0)(typescript@5.0.4): - resolution: {integrity: sha512-Gs0qos5wqxnQrvpYv+pf3XfcRXW6jiAn9zE/K+DlmYf6FcpxeNYN0AIETaPR7rHO4K2UY+D0CIbDP9Ut0U4m1g==} + /@typescript-eslint/type-utils@6.11.0(eslint@8.54.0)(typescript@5.2.2): + resolution: {integrity: sha512-nA4IOXwZtqBjIoYrJcYxLRO+F9ri+leVGoJcMW1uqr4r1Hq7vW5cyWrA43lFbpRvQ9XgNrnfLpIkO3i1emDBIA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -729,23 +719,23 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 6.7.5(typescript@5.0.4) - '@typescript-eslint/utils': 6.7.5(eslint@8.51.0)(typescript@5.0.4) + '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.2.2) + '@typescript-eslint/utils': 6.11.0(eslint@8.54.0)(typescript@5.2.2) debug: 4.3.4(supports-color@8.1.1) - eslint: 8.51.0 - ts-api-utils: 1.0.3(typescript@5.0.4) - typescript: 5.0.4 + eslint: 8.54.0 + ts-api-utils: 1.0.3(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/types@6.7.5: - resolution: {integrity: sha512-WboQBlOXtdj1tDFPyIthpKrUb+kZf2VroLZhxKa/VlwLlLyqv/PwUNgL30BlTVZV1Wu4Asu2mMYPqarSO4L5ZQ==} + /@typescript-eslint/types@6.11.0: + resolution: {integrity: sha512-ZbEzuD4DwEJxwPqhv3QULlRj8KYTAnNsXxmfuUXFCxZmO6CF2gM/y+ugBSAQhrqaJL3M+oe4owdWunaHM6beqA==} engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/typescript-estree@6.7.5(typescript@5.0.4): - resolution: {integrity: sha512-NhJiJ4KdtwBIxrKl0BqG1Ur+uw7FiOnOThcYx9DpOGJ/Abc9z2xNzLeirCG02Ig3vkvrc2qFLmYSSsaITbKjlg==} + /@typescript-eslint/typescript-estree@6.11.0(typescript@5.2.2): + resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -753,59 +743,63 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': 6.7.5 - '@typescript-eslint/visitor-keys': 6.7.5 + '@typescript-eslint/types': 6.11.0 + '@typescript-eslint/visitor-keys': 6.11.0 debug: 4.3.4(supports-color@8.1.1) globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.4 - ts-api-utils: 1.0.3(typescript@5.0.4) - typescript: 5.0.4 + ts-api-utils: 1.0.3(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /@typescript-eslint/utils@6.7.5(eslint@8.51.0)(typescript@5.0.4): - resolution: {integrity: sha512-pfRRrH20thJbzPPlPc4j0UNGvH1PjPlhlCMq4Yx7EGjV7lvEeGX0U6MJYe8+SyFutWgSHsdbJ3BXzZccYggezA==} + /@typescript-eslint/utils@6.11.0(eslint@8.54.0)(typescript@5.2.2): + resolution: {integrity: sha512-p23ibf68fxoZy605dc0dQAEoUsoiNoP3MD9WQGiHLDuTSOuqoTsa4oAy+h3KDkTcxbbfOtUjb9h3Ta0gT4ug2g==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) - '@types/json-schema': 7.0.13 - '@types/semver': 7.5.3 - '@typescript-eslint/scope-manager': 6.7.5 - '@typescript-eslint/types': 6.7.5 - '@typescript-eslint/typescript-estree': 6.7.5(typescript@5.0.4) - eslint: 8.51.0 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.5 + '@typescript-eslint/scope-manager': 6.11.0 + '@typescript-eslint/types': 6.11.0 + '@typescript-eslint/typescript-estree': 6.11.0(typescript@5.2.2) + eslint: 8.54.0 semver: 7.5.4 transitivePeerDependencies: - supports-color - typescript dev: true - /@typescript-eslint/visitor-keys@6.7.5: - resolution: {integrity: sha512-3MaWdDZtLlsexZzDSdQWsFQ9l9nL8B80Z4fImSpyllFC/KLqWQRdEcB+gGGO+N3Q2uL40EsG66wZLsohPxNXvg==} + /@typescript-eslint/visitor-keys@6.11.0: + resolution: {integrity: sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': 6.7.5 + '@typescript-eslint/types': 6.11.0 eslint-visitor-keys: 3.4.3 dev: true - /acorn-jsx@5.3.2(acorn@8.10.0): + /@ungap/structured-clone@1.2.0: + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + dev: true + + /acorn-jsx@5.3.2(acorn@8.11.2): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: 8.10.0 + acorn: 8.11.2 dev: true - /acorn-walk@8.2.0: - resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} + /acorn-walk@8.3.0: + resolution: {integrity: sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==} engines: {node: '>=0.4.0'} - /acorn@8.10.0: - resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} + /acorn@8.11.2: + resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==} engines: {node: '>=0.4.0'} hasBin: true @@ -897,7 +891,7 @@ packages: /array-buffer-byte-length@1.0.0: resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 is-array-buffer: 3.0.2 dev: true @@ -905,10 +899,10 @@ packages: resolution: {integrity: sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 - get-intrinsic: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 is-string: 1.0.7 dev: true @@ -920,31 +914,31 @@ packages: resolution: {integrity: sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 - es-shim-unscopables: 1.0.0 - get-intrinsic: 1.2.1 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.2 + get-intrinsic: 1.2.2 dev: true /array.prototype.flat@1.3.2: resolution: {integrity: sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 - es-shim-unscopables: 1.0.0 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.2 dev: true /array.prototype.flatmap@1.3.2: resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 - es-shim-unscopables: 1.0.0 + es-abstract: 1.22.3 + es-shim-unscopables: 1.0.2 dev: true /arraybuffer.prototype.slice@1.0.2: @@ -952,10 +946,10 @@ packages: engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.0 - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 - get-intrinsic: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 is-array-buffer: 3.0.2 is-shared-array-buffer: 1.0.2 dev: true @@ -968,8 +962,8 @@ packages: resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} engines: {node: '>=8'} - /async@3.2.4: - resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==} + /async@3.2.5: + resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} /asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} @@ -980,18 +974,8 @@ packages: engines: {node: '>= 0.4'} dev: true - /axios@1.4.0: - resolution: {integrity: sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==} - dependencies: - follow-redirects: 1.15.3 - form-data: 4.0.0 - proxy-from-env: 1.1.0 - transitivePeerDependencies: - - debug - dev: false - - /axios@1.5.1: - resolution: {integrity: sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==} + /axios@1.6.1: + resolution: {integrity: sha512-vfBmhDpKafglh0EldBEbVuoe7DyAavGSLWhuSm5ZSEKQnHhBf0xAAwybbNH1IkrJNGnS/VG4I5yxig1pCEXE4g==} dependencies: follow-redirects: 1.15.3 form-data: 4.0.0 @@ -1072,8 +1056,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001547 - electron-to-chromium: 1.4.548 + caniuse-lite: 1.0.30001563 + electron-to-chromium: 1.4.588 node-releases: 2.0.13 update-browserslist-db: 1.0.13(browserslist@4.22.1) dev: true @@ -1089,6 +1073,11 @@ packages: ieee754: 1.2.1 dev: false + /builtin-modules@3.3.0: + resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} + engines: {node: '>=6'} + dev: true + /builtins@5.0.1: resolution: {integrity: sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==} dependencies: @@ -1102,10 +1091,6 @@ packages: run-applescript: 5.0.0 dev: true - /byte-length@1.0.2: - resolution: {integrity: sha512-ovBpjmsgd/teRmgcPh23d4gJvxDoXtAzEL9xTfMU8Yc2kqCDb7L9jAG0XHl1nzuGl+h3ebCIF1i62UFyA9V/2Q==} - dev: false - /caching-transform@4.0.0: resolution: {integrity: sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==} engines: {node: '>=8'} @@ -1116,11 +1101,12 @@ packages: write-file-atomic: 3.0.3 dev: true - /call-bind@1.0.2: - resolution: {integrity: sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==} + /call-bind@1.0.5: + resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==} dependencies: - function-bind: 1.1.1 - get-intrinsic: 1.2.1 + function-bind: 1.1.2 + get-intrinsic: 1.2.2 + set-function-length: 1.1.1 dev: true /callsites@3.1.0: @@ -1137,8 +1123,8 @@ packages: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} - /caniuse-lite@1.0.30001547: - resolution: {integrity: sha512-W7CrtIModMAxobGhz8iXmDfuJiiKg1WADMO/9x7/CLNin5cpSbuBjooyoIUVB5eyCc36QuTVlkVa1iB2S5+/eA==} + /caniuse-lite@1.0.30001563: + resolution: {integrity: sha512-na2WUmOxnwIZtwnFI2CZ/3er0wdNzU7hN+cPYz/z2ajHThnkWjNBOpEPP4n+4r2WPM847JaMotaJE3bnfzjyKw==} dev: true /cardinal@2.1.1: @@ -1156,7 +1142,7 @@ packages: check-error: 1.0.3 deep-eql: 4.1.3 get-func-name: 2.0.2 - loupe: 2.3.6 + loupe: 2.3.7 pathval: 1.1.1 type-detect: 4.0.8 dev: true @@ -1245,14 +1231,6 @@ packages: engines: {node: '>= 10'} dev: false - /client-oauth2@4.3.3: - resolution: {integrity: sha512-k8AvUYJon0vv75ufoVo4nALYb/qwFFicO3I0+39C6xEdflqVtr+f9cy+0ZxAduoVSTfhP5DX2tY2XICAd5hy6Q==} - engines: {node: '>=4.2.0'} - dependencies: - popsicle: 12.1.0 - safe-buffer: 5.2.1 - dev: false - /cliui@6.0.0: resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} dependencies: @@ -1430,13 +1408,13 @@ packages: clone: 1.0.4 dev: false - /define-data-property@1.1.0: - resolution: {integrity: sha512-UzGwzcjyv3OtAvolTj1GoyNYzfFR+iqbGjcnBEENZVCpM4/Ng1yhGNvS3lR/xDS74Tb2wGG9WzNSNIOS9UVb2g==} + /define-data-property@1.1.1: + resolution: {integrity: sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 gopd: 1.0.1 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.1 dev: true /define-lazy-prop@3.0.0: @@ -1448,8 +1426,8 @@ packages: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} dependencies: - define-data-property: 1.1.0 - has-property-descriptors: 1.0.0 + define-data-property: 1.1.1 + has-property-descriptors: 1.0.1 object-keys: 1.1.1 dev: true @@ -1507,33 +1485,33 @@ packages: dependencies: jake: 10.8.7 - /electron-to-chromium@1.4.548: - resolution: {integrity: sha512-R77KD6mXv37DOyKLN/eW1rGS61N6yHOfapNSX9w+y9DdPG83l9Gkuv7qkCFZ4Ta4JPhrjgQfYbv4Y3TnM1Hi2Q==} + /electron-to-chromium@1.4.588: + resolution: {integrity: sha512-soytjxwbgcCu7nh5Pf4S2/4wa6UIu+A3p03U2yVr53qGxi1/VTR3ENI+p50v+UxqqZAfl48j3z55ud7VHIOr9w==} dev: true /emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - /es-abstract@1.22.2: - resolution: {integrity: sha512-YoxfFcDmhjOgWPWsV13+2RNjq1F6UQnfs+8TftwNqtzlmFzEXvlUwdrNrYeaizfjQzRMxkZ6ElWMOJIFKdVqwA==} + /es-abstract@1.22.3: + resolution: {integrity: sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==} engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.0 arraybuffer.prototype.slice: 1.0.2 available-typed-arrays: 1.0.5 - call-bind: 1.0.2 - es-set-tostringtag: 2.0.1 + call-bind: 1.0.5 + es-set-tostringtag: 2.0.2 es-to-primitive: 1.2.1 function.prototype.name: 1.1.6 - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 get-symbol-description: 1.0.0 globalthis: 1.0.3 gopd: 1.0.1 - has: 1.0.4 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.1 has-proto: 1.0.1 has-symbols: 1.0.3 - internal-slot: 1.0.5 + hasown: 2.0.0 + internal-slot: 1.0.6 is-array-buffer: 3.0.2 is-callable: 1.2.7 is-negative-zero: 2.0.2 @@ -1542,7 +1520,7 @@ packages: is-string: 1.0.7 is-typed-array: 1.1.12 is-weakref: 1.0.2 - object-inspect: 1.12.3 + object-inspect: 1.13.1 object-keys: 1.1.1 object.assign: 4.1.4 regexp.prototype.flags: 1.5.1 @@ -1556,22 +1534,22 @@ packages: typed-array-byte-offset: 1.0.0 typed-array-length: 1.0.4 unbox-primitive: 1.0.2 - which-typed-array: 1.1.11 + which-typed-array: 1.1.13 dev: true - /es-set-tostringtag@2.0.1: - resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} + /es-set-tostringtag@2.0.2: + resolution: {integrity: sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.1 - has: 1.0.4 + get-intrinsic: 1.2.2 has-tostringtag: 1.0.0 + hasown: 2.0.0 dev: true - /es-shim-unscopables@1.0.0: - resolution: {integrity: sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==} + /es-shim-unscopables@1.0.2: + resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} dependencies: - has: 1.0.4 + hasown: 2.0.0 dev: true /es-to-primitive@1.2.1: @@ -1605,16 +1583,16 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - /eslint-config-prettier@9.0.0(eslint@8.51.0): + /eslint-config-prettier@9.0.0(eslint@8.54.0): resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==} hasBin: true peerDependencies: eslint: '>=7.0.0' dependencies: - eslint: 8.51.0 + eslint: 8.54.0 dev: true - /eslint-config-standard-with-typescript@39.1.1(@typescript-eslint/eslint-plugin@6.7.5)(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.51.0)(typescript@5.0.4): + /eslint-config-standard-with-typescript@39.1.1(@typescript-eslint/eslint-plugin@6.11.0)(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.54.0)(typescript@5.2.2): resolution: {integrity: sha512-t6B5Ep8E4I18uuoYeYxINyqcXb2UbC0SOOTxRtBSt2JUs+EzeXbfe2oaiPs71AIdnoWhXDO2fYOHz8df3kV84A==} peerDependencies: '@typescript-eslint/eslint-plugin': ^6.4.0 @@ -1624,19 +1602,19 @@ packages: eslint-plugin-promise: ^6.0.0 typescript: '*' dependencies: - '@typescript-eslint/eslint-plugin': 6.7.5(@typescript-eslint/parser@6.7.5)(eslint@8.51.0)(typescript@5.0.4) - '@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.0.4) - eslint: 8.51.0 - eslint-config-standard: 17.1.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.51.0) - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.5)(eslint@8.51.0) - eslint-plugin-n: 16.1.0(eslint@8.51.0) - eslint-plugin-promise: 6.1.1(eslint@8.51.0) - typescript: 5.0.4 + '@typescript-eslint/eslint-plugin': 6.11.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0)(typescript@5.2.2) + '@typescript-eslint/parser': 6.11.0(eslint@8.54.0)(typescript@5.2.2) + eslint: 8.54.0 + eslint-config-standard: 17.1.0(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.54.0) + eslint-plugin-import: 2.29.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0) + eslint-plugin-n: 16.3.1(eslint@8.54.0) + eslint-plugin-promise: 6.1.1(eslint@8.54.0) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - /eslint-config-standard@17.1.0(eslint-plugin-import@2.28.1)(eslint-plugin-n@16.1.0)(eslint-plugin-promise@6.1.1)(eslint@8.51.0): + /eslint-config-standard@17.1.0(eslint-plugin-import@2.29.0)(eslint-plugin-n@16.3.1)(eslint-plugin-promise@6.1.1)(eslint@8.54.0): resolution: {integrity: sha512-IwHwmaBNtDK4zDHQukFDW5u/aTb8+meQWZvNFWkiGmbWjD6bqyuSSBxxXKkCftCUzc1zwCH2m/baCNDLGmuO5Q==} engines: {node: '>=12.0.0'} peerDependencies: @@ -1645,23 +1623,23 @@ packages: eslint-plugin-n: '^15.0.0 || ^16.0.0 ' eslint-plugin-promise: ^6.0.0 dependencies: - eslint: 8.51.0 - eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.7.5)(eslint@8.51.0) - eslint-plugin-n: 16.1.0(eslint@8.51.0) - eslint-plugin-promise: 6.1.1(eslint@8.51.0) + eslint: 8.54.0 + eslint-plugin-import: 2.29.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0) + eslint-plugin-n: 16.3.1(eslint@8.54.0) + eslint-plugin-promise: 6.1.1(eslint@8.54.0) dev: true /eslint-import-resolver-node@0.3.9: resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} dependencies: debug: 3.2.7 - is-core-module: 2.13.0 - resolve: 1.22.6 + is-core-module: 2.13.1 + resolve: 1.22.8 transitivePeerDependencies: - supports-color dev: true - /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.7.5)(eslint-import-resolver-node@0.3.9)(eslint@8.51.0): + /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.11.0)(eslint-import-resolver-node@0.3.9)(eslint@8.54.0): resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} engines: {node: '>=4'} peerDependencies: @@ -1682,27 +1660,27 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.0.4) + '@typescript-eslint/parser': 6.11.0(eslint@8.54.0)(typescript@5.2.2) debug: 3.2.7 - eslint: 8.51.0 + eslint: 8.54.0 eslint-import-resolver-node: 0.3.9 transitivePeerDependencies: - supports-color dev: true - /eslint-plugin-es-x@7.2.0(eslint@8.51.0): - resolution: {integrity: sha512-9dvv5CcvNjSJPqnS5uZkqb3xmbeqRLnvXKK7iI5+oK/yTusyc46zbBZKENGsOfojm/mKfszyZb+wNqNPAPeGXA==} + /eslint-plugin-es-x@7.3.0(eslint@8.54.0): + resolution: {integrity: sha512-W9zIs+k00I/I13+Bdkl/zG1MEO07G97XjUSQuH117w620SJ6bHtLUmoMvkGA2oYnI/gNdr+G7BONLyYnFaLLEQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: eslint: '>=8' dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) - '@eslint-community/regexpp': 4.9.1 - eslint: 8.51.0 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@eslint-community/regexpp': 4.10.0 + eslint: 8.54.0 dev: true - /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.7.5)(eslint@8.51.0): - resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==} + /eslint-plugin-import@2.29.0(@typescript-eslint/parser@6.11.0)(eslint@8.54.0): + resolution: {integrity: sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==} engines: {node: '>=4'} peerDependencies: '@typescript-eslint/parser': '*' @@ -1711,18 +1689,18 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.0.4) + '@typescript-eslint/parser': 6.11.0(eslint@8.54.0)(typescript@5.2.2) array-includes: 3.1.7 array.prototype.findlastindex: 1.2.3 array.prototype.flat: 1.3.2 array.prototype.flatmap: 1.3.2 debug: 3.2.7 doctrine: 2.1.0 - eslint: 8.51.0 + eslint: 8.54.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.7.5)(eslint-import-resolver-node@0.3.9)(eslint@8.51.0) - has: 1.0.4 - is-core-module: 2.13.0 + eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.11.0)(eslint-import-resolver-node@0.3.9)(eslint@8.54.0) + hasown: 2.0.0 + is-core-module: 2.13.1 is-glob: 4.0.3 minimatch: 3.1.2 object.fromentries: 2.0.7 @@ -1736,26 +1714,27 @@ packages: - supports-color dev: true - /eslint-plugin-n@16.1.0(eslint@8.51.0): - resolution: {integrity: sha512-3wv/TooBst0N4ND+pnvffHuz9gNPmk/NkLwAxOt2JykTl/hcuECe6yhTtLJcZjIxtZwN+GX92ACp/QTLpHA3Hg==} + /eslint-plugin-n@16.3.1(eslint@8.54.0): + resolution: {integrity: sha512-w46eDIkxQ2FaTHcey7G40eD+FhTXOdKudDXPUO2n9WNcslze/i/HT2qJ3GXjHngYSGDISIgPNhwGtgoix4zeOw==} engines: {node: '>=16.0.0'} peerDependencies: eslint: '>=7.0.0' dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) builtins: 5.0.1 - eslint: 8.51.0 - eslint-plugin-es-x: 7.2.0(eslint@8.51.0) + eslint: 8.54.0 + eslint-plugin-es-x: 7.3.0(eslint@8.54.0) get-tsconfig: 4.7.2 - ignore: 5.2.4 - is-core-module: 2.13.0 + ignore: 5.3.0 + is-builtin-module: 3.2.1 + is-core-module: 2.13.1 minimatch: 3.1.2 - resolve: 1.22.6 + resolve: 1.22.8 semver: 7.5.4 dev: true - /eslint-plugin-prettier@5.0.0(eslint-config-prettier@9.0.0)(eslint@8.51.0)(prettier@3.0.3): - resolution: {integrity: sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==} + /eslint-plugin-prettier@5.0.1(eslint-config-prettier@9.0.0)(eslint@8.54.0)(prettier@3.1.0): + resolution: {integrity: sha512-m3u5RnR56asrwV/lDC4GHorlW75DsFfmUcjfCYylTUs85dBRnB7VM6xG8eCMJdeDRnppzmxZVf1GEPJvl1JmNg==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: '@types/eslint': '>=8.0.0' @@ -1768,20 +1747,20 @@ packages: eslint-config-prettier: optional: true dependencies: - eslint: 8.51.0 - eslint-config-prettier: 9.0.0(eslint@8.51.0) - prettier: 3.0.3 + eslint: 8.54.0 + eslint-config-prettier: 9.0.0(eslint@8.54.0) + prettier: 3.1.0 prettier-linter-helpers: 1.0.0 synckit: 0.8.5 dev: true - /eslint-plugin-promise@6.1.1(eslint@8.51.0): + /eslint-plugin-promise@6.1.1(eslint@8.54.0): resolution: {integrity: sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - eslint: 8.51.0 + eslint: 8.54.0 dev: true /eslint-scope@7.2.2: @@ -1797,18 +1776,19 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - /eslint@8.51.0: - resolution: {integrity: sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==} + /eslint@8.54.0: + resolution: {integrity: sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0) - '@eslint-community/regexpp': 4.9.1 - '@eslint/eslintrc': 2.1.2 - '@eslint/js': 8.51.0 - '@humanwhocodes/config-array': 0.11.11 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0) + '@eslint-community/regexpp': 4.10.0 + '@eslint/eslintrc': 2.1.3 + '@eslint/js': 8.54.0 + '@humanwhocodes/config-array': 0.11.13 '@humanwhocodes/module-importer': 1.0.1 '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 @@ -1826,7 +1806,7 @@ packages: glob-parent: 6.0.2 globals: 13.23.0 graphemer: 1.4.0 - ignore: 5.2.4 + ignore: 5.3.0 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 @@ -1847,8 +1827,8 @@ packages: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: 8.10.0 - acorn-jsx: 5.3.2(acorn@8.10.0) + acorn: 8.11.2 + acorn-jsx: 5.3.2(acorn@8.11.2) eslint-visitor-keys: 3.4.3 dev: true @@ -1924,13 +1904,13 @@ packages: resolution: {integrity: sha512-TX8YTALYAmExny+f+G24MFxWry3Pk09+9uykwRjfwjibRxJ9ZjJzrnHYVBZK46XQdyli7d+rQc5U/KK7V6uLsw==} engines: {node: '>=12.0.0'} dependencies: - '@types/chai': 4.3.7 - '@types/lodash': 4.14.199 - '@types/node': 20.8.4 - '@types/sinon': 10.0.19 + '@types/chai': 4.3.10 + '@types/lodash': 4.14.201 + '@types/node': 20.9.2 + '@types/sinon': 17.0.1 lodash: 4.17.21 mock-stdin: 1.0.0 - nock: 13.3.3 + nock: 13.3.8 stdout-stderr: 0.1.13 transitivePeerDependencies: - supports-color @@ -1944,8 +1924,8 @@ packages: resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} dev: true - /fast-glob@3.3.1: - resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==} + /fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} dependencies: '@nodelib/fs.stat': 2.0.5 @@ -1978,7 +1958,7 @@ packages: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flat-cache: 3.1.1 + flat-cache: 3.2.0 dev: true /filelist@1.0.4: @@ -2017,9 +1997,9 @@ packages: path-exists: 4.0.0 dev: true - /flat-cache@3.1.1: - resolution: {integrity: sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==} - engines: {node: '>=12.0.0'} + /flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} + engines: {node: ^10.12.0 || >=12.0.0} dependencies: flatted: 3.2.9 keyv: 4.5.4 @@ -2078,7 +2058,7 @@ packages: dependencies: graceful-fs: 4.2.11 jsonfile: 6.1.0 - universalify: 2.0.0 + universalify: 2.0.1 dev: true /fs.realpath@1.0.0: @@ -2093,17 +2073,17 @@ packages: dev: true optional: true - /function-bind@1.1.1: - resolution: {integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==} + /function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} dev: true /function.prototype.name@1.1.6: resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 functions-have-names: 1.2.3 dev: true @@ -2125,13 +2105,13 @@ packages: resolution: {integrity: sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==} dev: true - /get-intrinsic@1.2.1: - resolution: {integrity: sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==} + /get-intrinsic@1.2.2: + resolution: {integrity: sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==} dependencies: - function-bind: 1.1.1 - has: 1.0.4 + function-bind: 1.1.2 has-proto: 1.0.1 has-symbols: 1.0.3 + hasown: 2.0.0 dev: true /get-package-type@0.1.0: @@ -2147,8 +2127,8 @@ packages: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 dev: true /get-tsconfig@4.7.2: @@ -2228,15 +2208,15 @@ packages: dependencies: array-union: 2.1.0 dir-glob: 3.0.1 - fast-glob: 3.3.1 - ignore: 5.2.4 + fast-glob: 3.3.2 + ignore: 5.3.0 merge2: 1.4.1 slash: 3.0.0 /gopd@1.0.1: resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 dev: true /graceful-fs@4.2.10: @@ -2263,10 +2243,10 @@ packages: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} - /has-property-descriptors@1.0.0: - resolution: {integrity: sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==} + /has-property-descriptors@1.0.1: + resolution: {integrity: sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==} dependencies: - get-intrinsic: 1.2.1 + get-intrinsic: 1.2.2 dev: true /has-proto@1.0.1: @@ -2291,11 +2271,6 @@ packages: engines: {node: '>=8'} dev: false - /has@1.0.4: - resolution: {integrity: sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==} - engines: {node: '>= 0.4.0'} - dev: true - /hasha@5.2.2: resolution: {integrity: sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==} engines: {node: '>=8'} @@ -2304,6 +2279,13 @@ packages: type-fest: 0.8.1 dev: true + /hasown@2.0.0: + resolution: {integrity: sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==} + engines: {node: '>= 0.4'} + dependencies: + function-bind: 1.1.2 + dev: true + /he@1.2.0: resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} hasBin: true @@ -2345,8 +2327,8 @@ packages: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} dev: false - /ignore@5.2.4: - resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==} + /ignore@5.3.0: + resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==} engines: {node: '>= 4'} /import-fresh@3.3.0: @@ -2414,25 +2396,20 @@ packages: wrap-ansi: 6.2.0 dev: false - /internal-slot@1.0.5: - resolution: {integrity: sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==} + /internal-slot@1.0.6: + resolution: {integrity: sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==} engines: {node: '>= 0.4'} dependencies: - get-intrinsic: 1.2.1 - has: 1.0.4 + get-intrinsic: 1.2.2 + hasown: 2.0.0 side-channel: 1.0.4 dev: true - /ip-regex@2.1.0: - resolution: {integrity: sha512-58yWmlHpp7VYfcdTwMTvwMmqx/Elfxjd9RXTDyMsbL7lLWmhMylLEqiYVLKuLzOZqVgiWXD9MfR62Vv89VRxkw==} - engines: {node: '>=4'} - dev: false - /is-array-buffer@3.0.2: resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 is-typed-array: 1.1.12 dev: true @@ -2453,10 +2430,17 @@ packages: resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 dev: true + /is-builtin-module@3.2.1: + resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==} + engines: {node: '>=6'} + dependencies: + builtin-modules: 3.3.0 + dev: true + /is-callable@1.2.7: resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} engines: {node: '>= 0.4'} @@ -2469,10 +2453,10 @@ packages: ci-info: 2.0.0 dev: false - /is-core-module@2.13.0: - resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==} + /is-core-module@2.13.1: + resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: - has: 1.0.4 + hasown: 2.0.0 dev: true /is-date-object@1.0.5: @@ -2567,14 +2551,14 @@ packages: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-tostringtag: 1.0.0 dev: true /is-shared-array-buffer@1.0.2: resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 dev: true /is-stream@2.0.1: @@ -2605,7 +2589,7 @@ packages: resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==} engines: {node: '>= 0.4'} dependencies: - which-typed-array: 1.1.11 + which-typed-array: 1.1.13 dev: true /is-typedarray@1.0.0: @@ -2618,7 +2602,7 @@ packages: /is-weakref@1.0.2: resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 dev: true /is-windows@1.0.2: @@ -2652,8 +2636,8 @@ packages: - encoding dev: false - /istanbul-lib-coverage@3.2.0: - resolution: {integrity: sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==} + /istanbul-lib-coverage@3.2.2: + resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} engines: {node: '>=8'} dev: true @@ -2668,9 +2652,9 @@ packages: resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.23.0 + '@babel/core': 7.23.3 '@istanbuljs/schema': 0.1.3 - istanbul-lib-coverage: 3.2.0 + istanbul-lib-coverage: 3.2.2 semver: 6.3.1 transitivePeerDependencies: - supports-color @@ -2682,7 +2666,7 @@ packages: dependencies: archy: 1.0.0 cross-spawn: 7.0.3 - istanbul-lib-coverage: 3.2.0 + istanbul-lib-coverage: 3.2.2 p-map: 3.0.0 rimraf: 3.0.2 uuid: 8.3.2 @@ -2692,7 +2676,7 @@ packages: resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} engines: {node: '>=10'} dependencies: - istanbul-lib-coverage: 3.2.0 + istanbul-lib-coverage: 3.2.2 make-dir: 4.0.0 supports-color: 7.2.0 dev: true @@ -2702,7 +2686,7 @@ packages: engines: {node: '>=10'} dependencies: debug: 4.3.4(supports-color@8.1.1) - istanbul-lib-coverage: 3.2.0 + istanbul-lib-coverage: 3.2.2 source-map: 0.6.1 transitivePeerDependencies: - supports-color @@ -2721,7 +2705,7 @@ packages: engines: {node: '>=10'} hasBin: true dependencies: - async: 3.2.4 + async: 3.2.5 chalk: 4.1.2 filelist: 1.0.4 minimatch: 3.1.2 @@ -2782,14 +2766,14 @@ packages: /jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} dependencies: - universalify: 2.0.0 + universalify: 2.0.1 optionalDependencies: graceful-fs: 4.2.11 dev: true - /jsonwebtoken@8.5.1: - resolution: {integrity: sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==} - engines: {node: '>=4', npm: '>=1.4.28'} + /jsonwebtoken@9.0.2: + resolution: {integrity: sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==} + engines: {node: '>=12', npm: '>=6'} dependencies: jws: 3.2.2 lodash.includes: 4.3.0 @@ -2800,7 +2784,7 @@ packages: lodash.isstring: 4.0.1 lodash.once: 4.1.1 ms: 2.1.3 - semver: 5.7.2 + semver: 7.5.4 dev: false /jwa@1.4.1: @@ -2892,8 +2876,8 @@ packages: chalk: 4.1.2 is-unicode-supported: 0.1.0 - /loupe@2.3.6: - resolution: {integrity: sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==} + /loupe@2.3.7: + resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} dependencies: get-func-name: 2.0.2 dev: true @@ -2928,12 +2912,6 @@ packages: semver: 7.5.4 dev: true - /make-error-cause@2.3.0: - resolution: {integrity: sha512-etgt+n4LlOkGSJbBTV9VROHA5R7ekIPS4vfh+bCAoJgRrJWdqJCBbpS3osRJ/HrT7R68MzMiY3L3sDJ/Fd8aBg==} - dependencies: - make-error: 1.3.6 - dev: false - /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} @@ -3049,13 +3027,12 @@ packages: /natural-orderby@2.0.3: resolution: {integrity: sha512-p7KTHxU0CUrcOXe62Zfrb5Z13nLvPhSWR/so3kFulUQU0sgUll2Z0LwpsLN351eOOD+hRGu/F1g+6xDfPeD++Q==} - /nock@13.3.3: - resolution: {integrity: sha512-z+KUlILy9SK/RjpeXDiDUEAq4T94ADPHE3qaRkf66mpEhzc/ytOMm3Bwdrbq6k1tMWkbdujiKim3G2tfQARuJw==} + /nock@13.3.8: + resolution: {integrity: sha512-96yVFal0c/W1lG7mmfRe7eO+hovrhJYd2obzzOZ90f6fjpeU/XNvd9cYHZKZAQJumDfhXgoTpkpJ9pvMj+hqHw==} engines: {node: '>= 10.13'} dependencies: debug: 4.3.4(supports-color@8.1.1) json-stringify-safe: 5.0.1 - lodash: 4.17.21 propagate: 2.0.1 transitivePeerDependencies: - supports-color @@ -3089,7 +3066,7 @@ packages: engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: hosted-git-info: 6.1.1 - is-core-module: 2.13.0 + is-core-module: 2.13.1 semver: 7.5.4 validate-npm-package-license: 3.0.4 dev: true @@ -3128,7 +3105,7 @@ packages: foreground-child: 2.0.0 get-package-type: 0.1.0 glob: 7.2.3 - istanbul-lib-coverage: 3.2.0 + istanbul-lib-coverage: 3.2.2 istanbul-lib-hook: 3.0.0 istanbul-lib-instrument: 4.0.3 istanbul-lib-processinfo: 2.0.3 @@ -3149,8 +3126,8 @@ packages: - supports-color dev: true - /object-inspect@1.12.3: - resolution: {integrity: sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==} + /object-inspect@1.13.1: + resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==} dev: true /object-keys@1.1.1: @@ -3166,7 +3143,7 @@ packages: resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 has-symbols: 1.0.3 object-keys: 1.1.1 @@ -3176,27 +3153,27 @@ packages: resolution: {integrity: sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /object.groupby@1.0.1: resolution: {integrity: sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 - get-intrinsic: 1.2.1 + es-abstract: 1.22.3 + get-intrinsic: 1.2.2 dev: true /object.values@1.1.7: resolution: {integrity: sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /once@1.4.0: @@ -3369,70 +3346,6 @@ packages: find-up: 4.1.0 dev: true - /popsicle-content-encoding@1.0.0(servie@4.3.3): - resolution: {integrity: sha512-4Df+vTfM8wCCJVTzPujiI6eOl3SiWQkcZg0AMrOkD1enMXsF3glIkFUZGvour1Sj7jOWCsNSEhBxpbbhclHhzw==} - peerDependencies: - servie: ^4.0.0 - dependencies: - servie: 4.3.3 - dev: false - - /popsicle-cookie-jar@1.0.0(servie@4.3.3): - resolution: {integrity: sha512-vrlOGvNVELko0+J8NpGC5lHWDGrk8LQJq9nwAMIVEVBfN1Lib3BLxAaLRGDTuUnvl45j5N9dT2H85PULz6IjjQ==} - peerDependencies: - servie: ^4.0.0 - dependencies: - '@types/tough-cookie': 2.3.9 - servie: 4.3.3 - tough-cookie: 3.0.1 - dev: false - - /popsicle-redirects@1.1.1(servie@4.3.3): - resolution: {integrity: sha512-mC2HrKjdTAWDalOjGxlXw9j6Qxrz/Yd2ui6bPxpi2IQDYWpF4gUAMxbA8EpSWJhLi0PuWKDwTHHPrUPGutAoIA==} - peerDependencies: - servie: ^4.1.0 - dependencies: - servie: 4.3.3 - dev: false - - /popsicle-transport-http@1.2.1(servie@4.3.3): - resolution: {integrity: sha512-i5r3IGHkGiBDm1oPFvOfEeSGWR0lQJcsdTqwvvDjXqcTHYJJi4iSi3ecXIttDiTBoBtRAFAE9nF91fspQr63FQ==} - peerDependencies: - servie: ^4.2.0 - dependencies: - make-error-cause: 2.3.0 - servie: 4.3.3 - dev: false - - /popsicle-transport-xhr@2.0.0(servie@4.3.3): - resolution: {integrity: sha512-5Sbud4Widngf1dodJE5cjEYXkzEUIl8CzyYRYR57t6vpy9a9KPGQX6KBKdPjmBZlR5A06pOBXuJnVr23l27rtA==} - peerDependencies: - servie: ^4.2.0 - dependencies: - servie: 4.3.3 - dev: false - - /popsicle-user-agent@1.0.0(servie@4.3.3): - resolution: {integrity: sha512-epKaq3TTfTzXcxBxjpoKYMcTTcAX8Rykus6QZu77XNhJuRHSRxMd+JJrbX/3PFI0opFGSN0BabbAYCbGxbu0mA==} - peerDependencies: - servie: ^4.0.0 - dependencies: - servie: 4.3.3 - dev: false - - /popsicle@12.1.0: - resolution: {integrity: sha512-muNC/cIrWhfR6HqqhHazkxjob3eyECBe8uZYSQ/N5vixNAgssacVleerXnE8Are5fspR0a+d2qWaBR1g7RYlmw==} - dependencies: - popsicle-content-encoding: 1.0.0(servie@4.3.3) - popsicle-cookie-jar: 1.0.0(servie@4.3.3) - popsicle-redirects: 1.1.1(servie@4.3.3) - popsicle-transport-http: 1.2.1(servie@4.3.3) - popsicle-transport-xhr: 2.0.0(servie@4.3.3) - popsicle-user-agent: 1.0.0(servie@4.3.3) - servie: 4.3.3 - throwback: 4.1.0 - dev: false - /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -3445,8 +3358,8 @@ packages: fast-diff: 1.3.0 dev: true - /prettier@3.0.3: - resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==} + /prettier@3.1.0: + resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==} engines: {node: '>=14'} hasBin: true dev: true @@ -3471,13 +3384,10 @@ packages: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} dev: false - /psl@1.9.0: - resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} - dev: false - - /punycode@2.3.0: - resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} + /punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} + dev: true /pupa@2.1.1: resolution: {integrity: sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==} @@ -3530,7 +3440,7 @@ packages: resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 set-function-name: 2.0.1 dev: true @@ -3579,11 +3489,11 @@ packages: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} dev: true - /resolve@1.22.6: - resolution: {integrity: sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==} + /resolve@1.22.8: + resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true dependencies: - is-core-module: 2.13.0 + is-core-module: 2.13.1 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 dev: true @@ -3633,8 +3543,8 @@ packages: resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==} engines: {node: '>=0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 has-symbols: 1.0.3 isarray: 2.0.5 dev: true @@ -3645,8 +3555,8 @@ packages: /safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 is-regex: 1.1.4 dev: true @@ -3661,11 +3571,6 @@ packages: semver: 6.3.1 dev: false - /semver@5.7.2: - resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} - hasBin: true - dev: false - /semver@6.3.1: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true @@ -3683,25 +3588,27 @@ packages: randombytes: 2.1.0 dev: true - /servie@4.3.3: - resolution: {integrity: sha512-b0IrY3b1gVMsWvJppCf19g1p3JSnS0hQi6xu4Hi40CIhf0Lx8pQHcvBL+xunShpmOiQzg1NOia812NAWdSaShw==} - dependencies: - '@servie/events': 1.0.0 - byte-length: 1.0.2 - ts-expect: 1.3.0 - dev: false - /set-blocking@2.0.0: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} dev: true + /set-function-length@1.1.1: + resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==} + engines: {node: '>= 0.4'} + dependencies: + define-data-property: 1.1.1 + get-intrinsic: 1.2.2 + gopd: 1.0.1 + has-property-descriptors: 1.0.1 + dev: true + /set-function-name@2.0.1: resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==} engines: {node: '>= 0.4'} dependencies: - define-data-property: 1.1.0 + define-data-property: 1.1.1 functions-have-names: 1.2.3 - has-property-descriptors: 1.0.0 + has-property-descriptors: 1.0.1 dev: true /shebang-command@2.0.0: @@ -3717,9 +3624,9 @@ packages: /side-channel@1.0.4: resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 - object-inspect: 1.12.3 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 + object-inspect: 1.13.1 dev: true /signal-exit@3.0.7: @@ -3801,25 +3708,25 @@ packages: resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /string.prototype.trimend@1.0.7: resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /string.prototype.trimstart@1.0.7: resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 define-properties: 1.2.1 - es-abstract: 1.22.2 + es-abstract: 1.22.3 dev: true /string_decoder@1.3.0: @@ -3920,10 +3827,6 @@ packages: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: false - /throwback@4.1.0: - resolution: {integrity: sha512-dLFe8bU8SeH0xeqeKL7BNo8XoPC/o91nz9/ooeplZPiso+DZukhoyZcSz9TFnUNScm+cA9qjU1m1853M6sPOng==} - dev: false - /titleize@3.0.0: resolution: {integrity: sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==} engines: {node: '>=12'} @@ -3947,33 +3850,20 @@ packages: dependencies: is-number: 7.0.0 - /tough-cookie@3.0.1: - resolution: {integrity: sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==} - engines: {node: '>=6'} - dependencies: - ip-regex: 2.1.0 - psl: 1.9.0 - punycode: 2.3.0 - dev: false - /tr46@0.0.3: resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} dev: false - /ts-api-utils@1.0.3(typescript@5.0.4): + /ts-api-utils@1.0.3(typescript@5.2.2): resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==} engines: {node: '>=16.13.0'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: 5.0.4 + typescript: 5.2.2 dev: true - /ts-expect@1.3.0: - resolution: {integrity: sha512-e4g0EJtAjk64xgnFPD6kTBUtpnMVzDrMb12N1YZV0VvSlhnVT3SGxiYTLdGy8Q5cYHOIC/FAHmZ10eGrAguicQ==} - dev: false - - /ts-node@10.9.1(@types/node@20.8.4)(typescript@5.0.4): + /ts-node@10.9.1(@types/node@20.9.2)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -3992,14 +3882,14 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.8.4 - acorn: 8.10.0 - acorn-walk: 8.2.0 + '@types/node': 20.9.2 + acorn: 8.11.2 + acorn-walk: 8.3.0 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.0.4 + typescript: 5.2.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 @@ -4044,8 +3934,8 @@ packages: resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 - get-intrinsic: 1.2.1 + call-bind: 1.0.5 + get-intrinsic: 1.2.2 is-typed-array: 1.1.12 dev: true @@ -4053,7 +3943,7 @@ packages: resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==} engines: {node: '>= 0.4'} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 has-proto: 1.0.1 is-typed-array: 1.1.12 @@ -4064,7 +3954,7 @@ packages: engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 has-proto: 1.0.1 is-typed-array: 1.1.12 @@ -4073,7 +3963,7 @@ packages: /typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 is-typed-array: 1.1.12 dev: true @@ -4083,22 +3973,22 @@ packages: dependencies: is-typedarray: 1.0.0 - /typescript@5.0.4: - resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} - engines: {node: '>=12.20'} + /typescript@5.2.2: + resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} + engines: {node: '>=14.17'} hasBin: true /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: - call-bind: 1.0.2 + call-bind: 1.0.5 has-bigints: 1.0.2 has-symbols: 1.0.3 which-boxed-primitive: 1.0.2 dev: true - /undici-types@5.25.3: - resolution: {integrity: sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==} + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} /unique-string@2.0.0: resolution: {integrity: sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==} @@ -4107,8 +3997,8 @@ packages: crypto-random-string: 2.0.0 dev: false - /universalify@2.0.0: - resolution: {integrity: sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==} + /universalify@2.0.1: + resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} dev: true @@ -4155,7 +4045,7 @@ packages: /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: - punycode: 2.3.0 + punycode: 2.3.1 dev: true /util-deprecate@1.0.2: @@ -4212,12 +4102,12 @@ packages: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} dev: true - /which-typed-array@1.1.11: - resolution: {integrity: sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==} + /which-typed-array@1.1.13: + resolution: {integrity: sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==} engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.5 - call-bind: 1.0.2 + call-bind: 1.0.5 for-each: 0.3.3 gopd: 1.0.1 has-tostringtag: 1.0.0 diff --git a/src/base.ts b/src/base.ts index d89be8f..39c8ee0 100644 --- a/src/base.ts +++ b/src/base.ts @@ -4,6 +4,7 @@ import { clApi, clColor, clOutput, clUpdate } from '@commercelayer/cli-core' import type { CommandError } from '@oclif/core/lib/interfaces' import type { Resource } from '@commercelayer/sdk/lib/cjs/resource' import type { CLIError } from '@oclif/core/lib/errors' +import exec from './exec' const pkg = require('../package.json') @@ -105,6 +106,11 @@ export default abstract class extends Command { this.log(`\nAction ${clColor.api.trigger(action)} executed without errors on ${resource.replace(/_/g, ' ')} ${clColor.api.id(id)}\n`) } + + protected async executeAction(resourceType: string, id: string, action: string, flags: any, fields?: string[]): Promise { + return await exec(resourceType, id, action, flags, fields, this.config) + } + } diff --git a/src/commands/adyen_payment/details.ts b/src/commands/adyen_payment/details.ts index b2b71af..8ce2e03 100644 --- a/src/commands/adyen_payment/details.ts +++ b/src/commands/adyen_payment/details.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/adyen_payments' +import { type AdyenPayment } from '@commercelayer/sdk' const TRIGGER = 'details' @@ -23,7 +23,7 @@ export default class AdyenPaymentDetails extends Command { const { args, flags } = await this.parse(AdyenPaymentDetails) - const res = await exec('adyen_payments', args.id, TRIGGER, flags) + const res = await this.executeAction('adyen_payments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/authorization/capture.ts b/src/commands/authorization/capture.ts index 7c162bf..a130bab 100644 --- a/src/commands/authorization/capture.ts +++ b/src/commands/authorization/capture.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/authorizations' +import { type Authorization } from '@commercelayer/sdk' const TRIGGER = 'capture' @@ -23,7 +23,7 @@ export default class AuthorizationCapture extends Command { const { args, flags } = await this.parse(AuthorizationCapture) - const res = await exec('authorizations', args.id, TRIGGER, flags) + const res = await this.executeAction('authorizations', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/authorization/capture_amount_cents.ts b/src/commands/authorization/capture_amount_cents.ts index fa20692..3a7ef59 100644 --- a/src/commands/authorization/capture_amount_cents.ts +++ b/src/commands/authorization/capture_amount_cents.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/authorizations' +import { type Authorization } from '@commercelayer/sdk' const TRIGGER = 'capture_amount_cents' @@ -23,7 +23,7 @@ export default class AuthorizationCaptureAmountCents extends Command { const { args, flags } = await this.parse(AuthorizationCaptureAmountCents) - const res = await exec('authorizations', args.id, TRIGGER, flags) + const res = await this.executeAction('authorizations', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/authorization/void.ts b/src/commands/authorization/void.ts index 9e1cb66..1db0199 100644 --- a/src/commands/authorization/void.ts +++ b/src/commands/authorization/void.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/authorizations' +import { type Authorization } from '@commercelayer/sdk' const TRIGGER = 'void' @@ -23,7 +23,7 @@ export default class AuthorizationVoid extends Command { const { args, flags } = await this.parse(AuthorizationVoid) - const res = await exec('authorizations', args.id, TRIGGER, flags) + const res = await this.executeAction('authorizations', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/axerve_payment/update.ts b/src/commands/axerve_payment/update.ts index fd1382b..cbbc337 100644 --- a/src/commands/axerve_payment/update.ts +++ b/src/commands/axerve_payment/update.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/axerve_payments' +import { type AxervePayment } from '@commercelayer/sdk' const TRIGGER = 'update' @@ -23,7 +23,7 @@ export default class AxervePaymentUpdate extends Command { const { args, flags } = await this.parse(AxervePaymentUpdate) - const res = await exec('axerve_payments', args.id, TRIGGER, flags) + const res = await this.executeAction('axerve_payments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/bundle/compute_compare_at_amount.ts b/src/commands/bundle/compute_compare_at_amount.ts index ddaf013..fbb940c 100644 --- a/src/commands/bundle/compute_compare_at_amount.ts +++ b/src/commands/bundle/compute_compare_at_amount.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/bundles' +import { type Bundle } from '@commercelayer/sdk' const TRIGGER = 'compute_compare_at_amount' @@ -23,7 +23,7 @@ export default class BundleComputeCompareAtAmount extends Command { const { args, flags } = await this.parse(BundleComputeCompareAtAmount) - const res = await exec('bundles', args.id, TRIGGER, flags) + const res = await this.executeAction('bundles', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/bundle/compute_price_amount.ts b/src/commands/bundle/compute_price_amount.ts index ce5373e..2f523dd 100644 --- a/src/commands/bundle/compute_price_amount.ts +++ b/src/commands/bundle/compute_price_amount.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/bundles' +import { type Bundle } from '@commercelayer/sdk' const TRIGGER = 'compute_price_amount' @@ -23,7 +23,7 @@ export default class BundleComputePriceAmount extends Command { const { args, flags } = await this.parse(BundleComputePriceAmount) - const res = await exec('bundles', args.id, TRIGGER, flags) + const res = await this.executeAction('bundles', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/buy_x_pay_y_promotion/disable.ts b/src/commands/buy_x_pay_y_promotion/disable.ts index 91729bd..59e50bb 100644 --- a/src/commands/buy_x_pay_y_promotion/disable.ts +++ b/src/commands/buy_x_pay_y_promotion/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/buy_x_pay_y_promotions' +import { type BuyXPayYPromotion } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class BuyXPayYPromotionDisable extends Command { const { args, flags } = await this.parse(BuyXPayYPromotionDisable) - const res = await exec('buy_x_pay_y_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('buy_x_pay_y_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/buy_x_pay_y_promotion/enable.ts b/src/commands/buy_x_pay_y_promotion/enable.ts index 14fad59..d8f110a 100644 --- a/src/commands/buy_x_pay_y_promotion/enable.ts +++ b/src/commands/buy_x_pay_y_promotion/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/buy_x_pay_y_promotions' +import { type BuyXPayYPromotion } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class BuyXPayYPromotionEnable extends Command { const { args, flags } = await this.parse(BuyXPayYPromotionEnable) - const res = await exec('buy_x_pay_y_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('buy_x_pay_y_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/capture/refund.ts b/src/commands/capture/refund.ts index 7330d26..0b2041e 100644 --- a/src/commands/capture/refund.ts +++ b/src/commands/capture/refund.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/captures' +import { type Capture } from '@commercelayer/sdk' const TRIGGER = 'refund' @@ -23,7 +23,7 @@ export default class CaptureRefund extends Command { const { args, flags } = await this.parse(CaptureRefund) - const res = await exec('captures', args.id, TRIGGER, flags) + const res = await this.executeAction('captures', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/capture/refund_amount_cents.ts b/src/commands/capture/refund_amount_cents.ts index ecd4041..d5b6acf 100644 --- a/src/commands/capture/refund_amount_cents.ts +++ b/src/commands/capture/refund_amount_cents.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/captures' +import { type Capture } from '@commercelayer/sdk' const TRIGGER = 'refund_amount_cents' @@ -23,7 +23,7 @@ export default class CaptureRefundAmountCents extends Command { const { args, flags } = await this.parse(CaptureRefundAmountCents) - const res = await exec('captures', args.id, TRIGGER, flags) + const res = await this.executeAction('captures', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/checkout_com_payment/details.ts b/src/commands/checkout_com_payment/details.ts index 0e6472c..8a71fde 100644 --- a/src/commands/checkout_com_payment/details.ts +++ b/src/commands/checkout_com_payment/details.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/checkout_com_payments' +import { type CheckoutComPayment } from '@commercelayer/sdk' const TRIGGER = 'details' @@ -23,7 +23,7 @@ export default class CheckoutComPaymentDetails extends Command { const { args, flags } = await this.parse(CheckoutComPaymentDetails) - const res = await exec('checkout_com_payments', args.id, TRIGGER, flags) + const res = await this.executeAction('checkout_com_payments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/checkout_com_payment/refresh.ts b/src/commands/checkout_com_payment/refresh.ts index e77d99c..594eecc 100644 --- a/src/commands/checkout_com_payment/refresh.ts +++ b/src/commands/checkout_com_payment/refresh.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/checkout_com_payments' +import { type CheckoutComPayment } from '@commercelayer/sdk' const TRIGGER = 'refresh' @@ -23,7 +23,7 @@ export default class CheckoutComPaymentRefresh extends Command { const { args, flags } = await this.parse(CheckoutComPaymentRefresh) - const res = await exec('checkout_com_payments', args.id, TRIGGER, flags) + const res = await this.executeAction('checkout_com_payments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/customer_password_reset/reset_password_token.ts b/src/commands/customer_password_reset/reset_password_token.ts index c7b5d90..a1e2b87 100644 --- a/src/commands/customer_password_reset/reset_password_token.ts +++ b/src/commands/customer_password_reset/reset_password_token.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/customer_password_resets' +import { type CustomerPasswordReset } from '@commercelayer/sdk' const TRIGGER = 'reset_password_token' @@ -23,7 +23,7 @@ export default class CustomerPasswordResetResetPasswordToken extends Command { const { args, flags } = await this.parse(CustomerPasswordResetResetPasswordToken) - const res = await exec('customer_password_resets', args.id, TRIGGER, flags) + const res = await this.executeAction('customer_password_resets', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/external_promotion/disable.ts b/src/commands/external_promotion/disable.ts index 8e5b01b..8de1d8e 100644 --- a/src/commands/external_promotion/disable.ts +++ b/src/commands/external_promotion/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/external_promotions' +import { type ExternalPromotion } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class ExternalPromotionDisable extends Command { const { args, flags } = await this.parse(ExternalPromotionDisable) - const res = await exec('external_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('external_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/external_promotion/enable.ts b/src/commands/external_promotion/enable.ts index ac5cfed..da15192 100644 --- a/src/commands/external_promotion/enable.ts +++ b/src/commands/external_promotion/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/external_promotions' +import { type ExternalPromotion } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class ExternalPromotionEnable extends Command { const { args, flags } = await this.parse(ExternalPromotionEnable) - const res = await exec('external_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('external_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/fixed_amount_promotion/disable.ts b/src/commands/fixed_amount_promotion/disable.ts index 49e796a..8840857 100644 --- a/src/commands/fixed_amount_promotion/disable.ts +++ b/src/commands/fixed_amount_promotion/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/fixed_amount_promotions' +import { type FixedAmountPromotion } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class FixedAmountPromotionDisable extends Command { const { args, flags } = await this.parse(FixedAmountPromotionDisable) - const res = await exec('fixed_amount_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('fixed_amount_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/fixed_amount_promotion/enable.ts b/src/commands/fixed_amount_promotion/enable.ts index 561de23..f078de4 100644 --- a/src/commands/fixed_amount_promotion/enable.ts +++ b/src/commands/fixed_amount_promotion/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/fixed_amount_promotions' +import { type FixedAmountPromotion } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class FixedAmountPromotionEnable extends Command { const { args, flags } = await this.parse(FixedAmountPromotionEnable) - const res = await exec('fixed_amount_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('fixed_amount_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/fixed_price_promotion/disable.ts b/src/commands/fixed_price_promotion/disable.ts index 0358456..e5b0890 100644 --- a/src/commands/fixed_price_promotion/disable.ts +++ b/src/commands/fixed_price_promotion/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/fixed_price_promotions' +import { type FixedPricePromotion } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class FixedPricePromotionDisable extends Command { const { args, flags } = await this.parse(FixedPricePromotionDisable) - const res = await exec('fixed_price_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('fixed_price_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/fixed_price_promotion/enable.ts b/src/commands/fixed_price_promotion/enable.ts index 245d6bd..e48f1a3 100644 --- a/src/commands/fixed_price_promotion/enable.ts +++ b/src/commands/fixed_price_promotion/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/fixed_price_promotions' +import { type FixedPricePromotion } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class FixedPricePromotionEnable extends Command { const { args, flags } = await this.parse(FixedPricePromotionEnable) - const res = await exec('fixed_price_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('fixed_price_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/free_gift_promotion/disable.ts b/src/commands/free_gift_promotion/disable.ts index 39dfad8..45ab56b 100644 --- a/src/commands/free_gift_promotion/disable.ts +++ b/src/commands/free_gift_promotion/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/free_gift_promotions' +import { type FreeGiftPromotion } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class FreeGiftPromotionDisable extends Command { const { args, flags } = await this.parse(FreeGiftPromotionDisable) - const res = await exec('free_gift_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('free_gift_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/free_gift_promotion/enable.ts b/src/commands/free_gift_promotion/enable.ts index 5a26731..0511948 100644 --- a/src/commands/free_gift_promotion/enable.ts +++ b/src/commands/free_gift_promotion/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/free_gift_promotions' +import { type FreeGiftPromotion } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class FreeGiftPromotionEnable extends Command { const { args, flags } = await this.parse(FreeGiftPromotionEnable) - const res = await exec('free_gift_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('free_gift_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/free_shipping_promotion/disable.ts b/src/commands/free_shipping_promotion/disable.ts index c31a3f8..0e88eed 100644 --- a/src/commands/free_shipping_promotion/disable.ts +++ b/src/commands/free_shipping_promotion/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/free_shipping_promotions' +import { type FreeShippingPromotion } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class FreeShippingPromotionDisable extends Command { const { args, flags } = await this.parse(FreeShippingPromotionDisable) - const res = await exec('free_shipping_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('free_shipping_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/free_shipping_promotion/enable.ts b/src/commands/free_shipping_promotion/enable.ts index b5b3256..5b14dee 100644 --- a/src/commands/free_shipping_promotion/enable.ts +++ b/src/commands/free_shipping_promotion/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/free_shipping_promotions' +import { type FreeShippingPromotion } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class FreeShippingPromotionEnable extends Command { const { args, flags } = await this.parse(FreeShippingPromotionEnable) - const res = await exec('free_shipping_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('free_shipping_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/gift_card/activate.ts b/src/commands/gift_card/activate.ts index 443939b..9d26bdb 100644 --- a/src/commands/gift_card/activate.ts +++ b/src/commands/gift_card/activate.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/gift_cards' +import { type GiftCard } from '@commercelayer/sdk' const TRIGGER = 'activate' @@ -23,7 +23,7 @@ export default class GiftCardActivate extends Command { const { args, flags } = await this.parse(GiftCardActivate) - const res = await exec('gift_cards', args.id, TRIGGER, flags) + const res = await this.executeAction('gift_cards', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/gift_card/balance_change_cents.ts b/src/commands/gift_card/balance_change_cents.ts index 39080ef..e4415bb 100644 --- a/src/commands/gift_card/balance_change_cents.ts +++ b/src/commands/gift_card/balance_change_cents.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/gift_cards' +import { type GiftCard } from '@commercelayer/sdk' const TRIGGER = 'balance_change_cents' @@ -23,7 +23,7 @@ export default class GiftCardBalanceChangeCents extends Command { const { args, flags } = await this.parse(GiftCardBalanceChangeCents) - const res = await exec('gift_cards', args.id, TRIGGER, flags) + const res = await this.executeAction('gift_cards', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/gift_card/deactivate.ts b/src/commands/gift_card/deactivate.ts index 93b0c99..144fbb3 100644 --- a/src/commands/gift_card/deactivate.ts +++ b/src/commands/gift_card/deactivate.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/gift_cards' +import { type GiftCard } from '@commercelayer/sdk' const TRIGGER = 'deactivate' @@ -23,7 +23,7 @@ export default class GiftCardDeactivate extends Command { const { args, flags } = await this.parse(GiftCardDeactivate) - const res = await exec('gift_cards', args.id, TRIGGER, flags) + const res = await this.executeAction('gift_cards', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/gift_card/purchase.ts b/src/commands/gift_card/purchase.ts index 6afc3e2..d3406b1 100644 --- a/src/commands/gift_card/purchase.ts +++ b/src/commands/gift_card/purchase.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/gift_cards' +import { type GiftCard } from '@commercelayer/sdk' const TRIGGER = 'purchase' @@ -23,7 +23,7 @@ export default class GiftCardPurchase extends Command { const { args, flags } = await this.parse(GiftCardPurchase) - const res = await exec('gift_cards', args.id, TRIGGER, flags) + const res = await this.executeAction('gift_cards', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/in_stock_subscription/activate.ts b/src/commands/in_stock_subscription/activate.ts index b34781f..cc8416b 100644 --- a/src/commands/in_stock_subscription/activate.ts +++ b/src/commands/in_stock_subscription/activate.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/in_stock_subscriptions' +import { type InStockSubscription } from '@commercelayer/sdk' const TRIGGER = 'activate' @@ -23,7 +23,7 @@ export default class InStockSubscriptionActivate extends Command { const { args, flags } = await this.parse(InStockSubscriptionActivate) - const res = await exec('in_stock_subscriptions', args.id, TRIGGER, flags) + const res = await this.executeAction('in_stock_subscriptions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/in_stock_subscription/deactivate.ts b/src/commands/in_stock_subscription/deactivate.ts index 46ccc67..bfb3c1f 100644 --- a/src/commands/in_stock_subscription/deactivate.ts +++ b/src/commands/in_stock_subscription/deactivate.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/in_stock_subscriptions' +import { type InStockSubscription } from '@commercelayer/sdk' const TRIGGER = 'deactivate' @@ -23,7 +23,7 @@ export default class InStockSubscriptionDeactivate extends Command { const { args, flags } = await this.parse(InStockSubscriptionDeactivate) - const res = await exec('in_stock_subscriptions', args.id, TRIGGER, flags) + const res = await this.executeAction('in_stock_subscriptions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/klarna_payment/update.ts b/src/commands/klarna_payment/update.ts index e2f1bb5..29301e9 100644 --- a/src/commands/klarna_payment/update.ts +++ b/src/commands/klarna_payment/update.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/klarna_payments' +import { type KlarnaPayment } from '@commercelayer/sdk' const TRIGGER = 'update' @@ -23,7 +23,7 @@ export default class KlarnaPaymentUpdate extends Command { const { args, flags } = await this.parse(KlarnaPaymentUpdate) - const res = await exec('klarna_payments', args.id, TRIGGER, flags) + const res = await this.executeAction('klarna_payments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/line_item/external_price.ts b/src/commands/line_item/external_price.ts index 7a7cd4e..cab3bb0 100644 --- a/src/commands/line_item/external_price.ts +++ b/src/commands/line_item/external_price.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/line_items' +import { type LineItem } from '@commercelayer/sdk' const TRIGGER = 'external_price' @@ -23,7 +23,7 @@ export default class LineItemExternalPrice extends Command { const { args, flags } = await this.parse(LineItemExternalPrice) - const res = await exec('line_items', args.id, TRIGGER, flags) + const res = await this.executeAction('line_items', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/line_item/reserve_stock.ts b/src/commands/line_item/reserve_stock.ts index 4c51538..eadc654 100644 --- a/src/commands/line_item/reserve_stock.ts +++ b/src/commands/line_item/reserve_stock.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/line_items' +import { type LineItem } from '@commercelayer/sdk' const TRIGGER = 'reserve_stock' @@ -23,7 +23,7 @@ export default class LineItemReserveStock extends Command { const { args, flags } = await this.parse(LineItemReserveStock) - const res = await exec('line_items', args.id, TRIGGER, flags) + const res = await this.executeAction('line_items', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/market/disable.ts b/src/commands/market/disable.ts index 05e7019..4348001 100644 --- a/src/commands/market/disable.ts +++ b/src/commands/market/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/markets' +import { type Market } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class MarketDisable extends Command { const { args, flags } = await this.parse(MarketDisable) - const res = await exec('markets', args.id, TRIGGER, flags) + const res = await this.executeAction('markets', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/market/enable.ts b/src/commands/market/enable.ts index 8e597bb..bbc5433 100644 --- a/src/commands/market/enable.ts +++ b/src/commands/market/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/markets' +import { type Market } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class MarketEnable extends Command { const { args, flags } = await this.parse(MarketEnable) - const res = await exec('markets', args.id, TRIGGER, flags) + const res = await this.executeAction('markets', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/approve.ts b/src/commands/order/approve.ts index bf59b04..53595aa 100644 --- a/src/commands/order/approve.ts +++ b/src/commands/order/approve.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'approve' @@ -23,7 +23,7 @@ export default class OrderApprove extends Command { const { args, flags } = await this.parse(OrderApprove) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/approve_and_capture.ts b/src/commands/order/approve_and_capture.ts index 08999a3..36e7ed2 100644 --- a/src/commands/order/approve_and_capture.ts +++ b/src/commands/order/approve_and_capture.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'approve_and_capture' @@ -23,7 +23,7 @@ export default class OrderApproveAndCapture extends Command { const { args, flags } = await this.parse(OrderApproveAndCapture) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/archive.ts b/src/commands/order/archive.ts index 362e045..3499b2d 100644 --- a/src/commands/order/archive.ts +++ b/src/commands/order/archive.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'archive' @@ -23,7 +23,7 @@ export default class OrderArchive extends Command { const { args, flags } = await this.parse(OrderArchive) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/authorization_amount_cents.ts b/src/commands/order/authorization_amount_cents.ts index 13d95af..eb5471d 100644 --- a/src/commands/order/authorization_amount_cents.ts +++ b/src/commands/order/authorization_amount_cents.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'authorization_amount_cents' @@ -23,7 +23,7 @@ export default class OrderAuthorizationAmountCents extends Command { const { args, flags } = await this.parse(OrderAuthorizationAmountCents) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/authorize.ts b/src/commands/order/authorize.ts index 0757e15..f6b7c69 100644 --- a/src/commands/order/authorize.ts +++ b/src/commands/order/authorize.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'authorize' @@ -23,7 +23,7 @@ export default class OrderAuthorize extends Command { const { args, flags } = await this.parse(OrderAuthorize) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/billing_address_clone_id.ts b/src/commands/order/billing_address_clone_id.ts index 6a9d70c..879995b 100644 --- a/src/commands/order/billing_address_clone_id.ts +++ b/src/commands/order/billing_address_clone_id.ts @@ -1,6 +1,6 @@ import Command, { Flags } from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'billing_address_clone_id' @@ -28,7 +28,7 @@ export default class OrderBillingAddressCloneId extends Command { const { args, flags } = await this.parse(OrderBillingAddressCloneId) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/billing_address_same_as_shipping.ts b/src/commands/order/billing_address_same_as_shipping.ts index f0b15cb..fa3534f 100644 --- a/src/commands/order/billing_address_same_as_shipping.ts +++ b/src/commands/order/billing_address_same_as_shipping.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'billing_address_same_as_shipping' @@ -23,7 +23,7 @@ export default class OrderBillingAddressSameAsShipping extends Command { const { args, flags } = await this.parse(OrderBillingAddressSameAsShipping) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/cancel.ts b/src/commands/order/cancel.ts index 88967e1..0b5b82c 100644 --- a/src/commands/order/cancel.ts +++ b/src/commands/order/cancel.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'cancel' @@ -23,7 +23,7 @@ export default class OrderCancel extends Command { const { args, flags } = await this.parse(OrderCancel) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/capture.ts b/src/commands/order/capture.ts index 43b1e44..0334851 100644 --- a/src/commands/order/capture.ts +++ b/src/commands/order/capture.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'capture' @@ -23,7 +23,7 @@ export default class OrderCapture extends Command { const { args, flags } = await this.parse(OrderCapture) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/commit_invoice.ts b/src/commands/order/commit_invoice.ts index c466e4f..2e41624 100644 --- a/src/commands/order/commit_invoice.ts +++ b/src/commands/order/commit_invoice.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'commit_invoice' @@ -23,7 +23,7 @@ export default class OrderCommitInvoice extends Command { const { args, flags } = await this.parse(OrderCommitInvoice) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/create_subscriptions.ts b/src/commands/order/create_subscriptions.ts index 0427724..64c8912 100644 --- a/src/commands/order/create_subscriptions.ts +++ b/src/commands/order/create_subscriptions.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'create_subscriptions' @@ -23,7 +23,7 @@ export default class OrderCreateSubscriptions extends Command { const { args, flags } = await this.parse(OrderCreateSubscriptions) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/customer_payment_source_id.ts b/src/commands/order/customer_payment_source_id.ts index 3b403df..d28fffd 100644 --- a/src/commands/order/customer_payment_source_id.ts +++ b/src/commands/order/customer_payment_source_id.ts @@ -1,6 +1,6 @@ import Command, { Flags } from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'customer_payment_source_id' @@ -28,7 +28,7 @@ export default class OrderCustomerPaymentSourceId extends Command { const { args, flags } = await this.parse(OrderCustomerPaymentSourceId) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/nullify_payment_source.ts b/src/commands/order/nullify_payment_source.ts index 5cf7e82..b724c33 100644 --- a/src/commands/order/nullify_payment_source.ts +++ b/src/commands/order/nullify_payment_source.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'nullify_payment_source' @@ -23,7 +23,7 @@ export default class OrderNullifyPaymentSource extends Command { const { args, flags } = await this.parse(OrderNullifyPaymentSource) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/place.ts b/src/commands/order/place.ts index c26d0c4..4d3c65b 100644 --- a/src/commands/order/place.ts +++ b/src/commands/order/place.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'place' @@ -23,7 +23,7 @@ export default class OrderPlace extends Command { const { args, flags } = await this.parse(OrderPlace) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/refresh.ts b/src/commands/order/refresh.ts index b782393..5ce0126 100644 --- a/src/commands/order/refresh.ts +++ b/src/commands/order/refresh.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'refresh' @@ -23,7 +23,7 @@ export default class OrderRefresh extends Command { const { args, flags } = await this.parse(OrderRefresh) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/refund.ts b/src/commands/order/refund.ts index 4b0d5b3..6d428b1 100644 --- a/src/commands/order/refund.ts +++ b/src/commands/order/refund.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'refund' @@ -23,7 +23,7 @@ export default class OrderRefund extends Command { const { args, flags } = await this.parse(OrderRefund) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/refund_invoice.ts b/src/commands/order/refund_invoice.ts index 5778aef..5f5223f 100644 --- a/src/commands/order/refund_invoice.ts +++ b/src/commands/order/refund_invoice.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'refund_invoice' @@ -23,7 +23,7 @@ export default class OrderRefundInvoice extends Command { const { args, flags } = await this.parse(OrderRefundInvoice) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/save_billing_address_to_customer_address_book.ts b/src/commands/order/save_billing_address_to_customer_address_book.ts index db6ba0e..318c489 100644 --- a/src/commands/order/save_billing_address_to_customer_address_book.ts +++ b/src/commands/order/save_billing_address_to_customer_address_book.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'save_billing_address_to_customer_address_book' @@ -23,7 +23,7 @@ export default class OrderSaveBillingAddressToCustomerAddressBook extends Comman const { args, flags } = await this.parse(OrderSaveBillingAddressToCustomerAddressBook) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/save_payment_source_to_customer_wallet.ts b/src/commands/order/save_payment_source_to_customer_wallet.ts index 8e348ee..d0f5e0d 100644 --- a/src/commands/order/save_payment_source_to_customer_wallet.ts +++ b/src/commands/order/save_payment_source_to_customer_wallet.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'save_payment_source_to_customer_wallet' @@ -23,7 +23,7 @@ export default class OrderSavePaymentSourceToCustomerWallet extends Command { const { args, flags } = await this.parse(OrderSavePaymentSourceToCustomerWallet) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/save_shipping_address_to_customer_address_book.ts b/src/commands/order/save_shipping_address_to_customer_address_book.ts index bd0aa75..f8d134e 100644 --- a/src/commands/order/save_shipping_address_to_customer_address_book.ts +++ b/src/commands/order/save_shipping_address_to_customer_address_book.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'save_shipping_address_to_customer_address_book' @@ -23,7 +23,7 @@ export default class OrderSaveShippingAddressToCustomerAddressBook extends Comma const { args, flags } = await this.parse(OrderSaveShippingAddressToCustomerAddressBook) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/shipping_address_clone_id.ts b/src/commands/order/shipping_address_clone_id.ts index 8bf0bf8..e43e3fd 100644 --- a/src/commands/order/shipping_address_clone_id.ts +++ b/src/commands/order/shipping_address_clone_id.ts @@ -1,6 +1,6 @@ import Command, { Flags } from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'shipping_address_clone_id' @@ -28,7 +28,7 @@ export default class OrderShippingAddressCloneId extends Command { const { args, flags } = await this.parse(OrderShippingAddressCloneId) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/shipping_address_same_as_billing.ts b/src/commands/order/shipping_address_same_as_billing.ts index a23caa3..d52abd1 100644 --- a/src/commands/order/shipping_address_same_as_billing.ts +++ b/src/commands/order/shipping_address_same_as_billing.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'shipping_address_same_as_billing' @@ -23,7 +23,7 @@ export default class OrderShippingAddressSameAsBilling extends Command { const { args, flags } = await this.parse(OrderShippingAddressSameAsBilling) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/start_editing.ts b/src/commands/order/start_editing.ts index b4d2cf1..bb86d7a 100644 --- a/src/commands/order/start_editing.ts +++ b/src/commands/order/start_editing.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'start_editing' @@ -23,7 +23,7 @@ export default class OrderStartEditing extends Command { const { args, flags } = await this.parse(OrderStartEditing) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/stop_editing.ts b/src/commands/order/stop_editing.ts index cecf4a6..2b048ba 100644 --- a/src/commands/order/stop_editing.ts +++ b/src/commands/order/stop_editing.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'stop_editing' @@ -23,7 +23,7 @@ export default class OrderStopEditing extends Command { const { args, flags } = await this.parse(OrderStopEditing) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/unarchive.ts b/src/commands/order/unarchive.ts index 7e38930..4ef64fb 100644 --- a/src/commands/order/unarchive.ts +++ b/src/commands/order/unarchive.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'unarchive' @@ -23,7 +23,7 @@ export default class OrderUnarchive extends Command { const { args, flags } = await this.parse(OrderUnarchive) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/update_taxes.ts b/src/commands/order/update_taxes.ts index 4f84b50..f33aa53 100644 --- a/src/commands/order/update_taxes.ts +++ b/src/commands/order/update_taxes.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'update_taxes' @@ -23,7 +23,7 @@ export default class OrderUpdateTaxes extends Command { const { args, flags } = await this.parse(OrderUpdateTaxes) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order/validate.ts b/src/commands/order/validate.ts index 7468b0a..467c91b 100644 --- a/src/commands/order/validate.ts +++ b/src/commands/order/validate.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/orders' +import { type Order } from '@commercelayer/sdk' const TRIGGER = 'validate' @@ -23,7 +23,7 @@ export default class OrderValidate extends Command { const { args, flags } = await this.parse(OrderValidate) - const res = await exec('orders', args.id, TRIGGER, flags) + const res = await this.executeAction('orders', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order_subscription/activate.ts b/src/commands/order_subscription/activate.ts index db0bdda..facb0b5 100644 --- a/src/commands/order_subscription/activate.ts +++ b/src/commands/order_subscription/activate.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/order_subscriptions' +import { type OrderSubscription } from '@commercelayer/sdk' const TRIGGER = 'activate' @@ -23,7 +23,7 @@ export default class OrderSubscriptionActivate extends Command { const { args, flags } = await this.parse(OrderSubscriptionActivate) - const res = await exec('order_subscriptions', args.id, TRIGGER, flags) + const res = await this.executeAction('order_subscriptions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order_subscription/cancel.ts b/src/commands/order_subscription/cancel.ts index e39ea3a..08844c8 100644 --- a/src/commands/order_subscription/cancel.ts +++ b/src/commands/order_subscription/cancel.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/order_subscriptions' +import { type OrderSubscription } from '@commercelayer/sdk' const TRIGGER = 'cancel' @@ -23,7 +23,7 @@ export default class OrderSubscriptionCancel extends Command { const { args, flags } = await this.parse(OrderSubscriptionCancel) - const res = await exec('order_subscriptions', args.id, TRIGGER, flags) + const res = await this.executeAction('order_subscriptions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/order_subscription/deactivate.ts b/src/commands/order_subscription/deactivate.ts index 1ce8e91..ea303cc 100644 --- a/src/commands/order_subscription/deactivate.ts +++ b/src/commands/order_subscription/deactivate.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/order_subscriptions' +import { type OrderSubscription } from '@commercelayer/sdk' const TRIGGER = 'deactivate' @@ -23,7 +23,7 @@ export default class OrderSubscriptionDeactivate extends Command { const { args, flags } = await this.parse(OrderSubscriptionDeactivate) - const res = await exec('order_subscriptions', args.id, TRIGGER, flags) + const res = await this.executeAction('order_subscriptions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/payment_method/disable.ts b/src/commands/payment_method/disable.ts index 61aa716..b92eff3 100644 --- a/src/commands/payment_method/disable.ts +++ b/src/commands/payment_method/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/payment_methods' +import { type PaymentMethod } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class PaymentMethodDisable extends Command { const { args, flags } = await this.parse(PaymentMethodDisable) - const res = await exec('payment_methods', args.id, TRIGGER, flags) + const res = await this.executeAction('payment_methods', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/payment_method/enable.ts b/src/commands/payment_method/enable.ts index 94c3853..b9c20a9 100644 --- a/src/commands/payment_method/enable.ts +++ b/src/commands/payment_method/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/payment_methods' +import { type PaymentMethod } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class PaymentMethodEnable extends Command { const { args, flags } = await this.parse(PaymentMethodEnable) - const res = await exec('payment_methods', args.id, TRIGGER, flags) + const res = await this.executeAction('payment_methods', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/percentage_discount_promotion/disable.ts b/src/commands/percentage_discount_promotion/disable.ts index 9586548..eb3ed0a 100644 --- a/src/commands/percentage_discount_promotion/disable.ts +++ b/src/commands/percentage_discount_promotion/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/percentage_discount_promotions' +import { type PercentageDiscountPromotion } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class PercentageDiscountPromotionDisable extends Command { const { args, flags } = await this.parse(PercentageDiscountPromotionDisable) - const res = await exec('percentage_discount_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('percentage_discount_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/percentage_discount_promotion/enable.ts b/src/commands/percentage_discount_promotion/enable.ts index 22e708d..bdd018c 100644 --- a/src/commands/percentage_discount_promotion/enable.ts +++ b/src/commands/percentage_discount_promotion/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/percentage_discount_promotions' +import { type PercentageDiscountPromotion } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class PercentageDiscountPromotionEnable extends Command { const { args, flags } = await this.parse(PercentageDiscountPromotionEnable) - const res = await exec('percentage_discount_promotions', args.id, TRIGGER, flags) + const res = await this.executeAction('percentage_discount_promotions', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/approve.ts b/src/commands/return/approve.ts index 5d70346..64a60cb 100644 --- a/src/commands/return/approve.ts +++ b/src/commands/return/approve.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'approve' @@ -23,7 +23,7 @@ export default class ReturnApprove extends Command { const { args, flags } = await this.parse(ReturnApprove) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/archive.ts b/src/commands/return/archive.ts index 847fae1..30bab2f 100644 --- a/src/commands/return/archive.ts +++ b/src/commands/return/archive.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'archive' @@ -23,7 +23,7 @@ export default class ReturnArchive extends Command { const { args, flags } = await this.parse(ReturnArchive) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/cancel.ts b/src/commands/return/cancel.ts index 6e97ab2..5415f95 100644 --- a/src/commands/return/cancel.ts +++ b/src/commands/return/cancel.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'cancel' @@ -23,7 +23,7 @@ export default class ReturnCancel extends Command { const { args, flags } = await this.parse(ReturnCancel) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/receive.ts b/src/commands/return/receive.ts index 84a0733..e127d25 100644 --- a/src/commands/return/receive.ts +++ b/src/commands/return/receive.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'receive' @@ -23,7 +23,7 @@ export default class ReturnReceive extends Command { const { args, flags } = await this.parse(ReturnReceive) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/reject.ts b/src/commands/return/reject.ts index 5e38931..29891e3 100644 --- a/src/commands/return/reject.ts +++ b/src/commands/return/reject.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'reject' @@ -23,7 +23,7 @@ export default class ReturnReject extends Command { const { args, flags } = await this.parse(ReturnReject) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/request.ts b/src/commands/return/request.ts index fd231e1..6d2b07d 100644 --- a/src/commands/return/request.ts +++ b/src/commands/return/request.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'request' @@ -23,7 +23,7 @@ export default class ReturnRequest extends Command { const { args, flags } = await this.parse(ReturnRequest) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/restock.ts b/src/commands/return/restock.ts index c1b9fac..3e72feb 100644 --- a/src/commands/return/restock.ts +++ b/src/commands/return/restock.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'restock' @@ -23,7 +23,7 @@ export default class ReturnRestock extends Command { const { args, flags } = await this.parse(ReturnRestock) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/ship.ts b/src/commands/return/ship.ts index 4043eb7..68a4958 100644 --- a/src/commands/return/ship.ts +++ b/src/commands/return/ship.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'ship' @@ -23,7 +23,7 @@ export default class ReturnShip extends Command { const { args, flags } = await this.parse(ReturnShip) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return/unarchive.ts b/src/commands/return/unarchive.ts index 6713d75..751b1ea 100644 --- a/src/commands/return/unarchive.ts +++ b/src/commands/return/unarchive.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/returns' +import { type Return } from '@commercelayer/sdk' const TRIGGER = 'unarchive' @@ -23,7 +23,7 @@ export default class ReturnUnarchive extends Command { const { args, flags } = await this.parse(ReturnUnarchive) - const res = await exec('returns', args.id, TRIGGER, flags) + const res = await this.executeAction('returns', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/return_line_item/restock.ts b/src/commands/return_line_item/restock.ts index edb5936..ce00eeb 100644 --- a/src/commands/return_line_item/restock.ts +++ b/src/commands/return_line_item/restock.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/return_line_items' +import { type ReturnLineItem } from '@commercelayer/sdk' const TRIGGER = 'restock' @@ -23,7 +23,7 @@ export default class ReturnLineItemRestock extends Command { const { args, flags } = await this.parse(ReturnLineItemRestock) - const res = await exec('return_line_items', args.id, TRIGGER, flags) + const res = await this.executeAction('return_line_items', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/satispay_payment/refresh.ts b/src/commands/satispay_payment/refresh.ts index 2085274..48e86c4 100644 --- a/src/commands/satispay_payment/refresh.ts +++ b/src/commands/satispay_payment/refresh.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/satispay_payments' +import { type SatispayPayment } from '@commercelayer/sdk' const TRIGGER = 'refresh' @@ -23,7 +23,7 @@ export default class SatispayPaymentRefresh extends Command { const { args, flags } = await this.parse(SatispayPaymentRefresh) - const res = await exec('satispay_payments', args.id, TRIGGER, flags) + const res = await this.executeAction('satispay_payments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipment/decrement_stock.ts b/src/commands/shipment/decrement_stock.ts new file mode 100644 index 0000000..3e8d535 --- /dev/null +++ b/src/commands/shipment/decrement_stock.ts @@ -0,0 +1,36 @@ +import Command from '../../base' +import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' + + +const TRIGGER = 'decrement_stock' + + +export default class ShipmentDecrementStock extends Command { + + static description = triggers[TRIGGER].description + + static flags = { + + } + + static args = { + ...Command.args, + } + + + async run(): Promise { + + const { args, flags } = await this.parse(ShipmentDecrementStock) + + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) + + if (flags.print) this.printOutput(res, flags) + + this.successMessage('shipment', TRIGGER, res.id) + + return res + + } + +} diff --git a/src/commands/shipment/get_rates.ts b/src/commands/shipment/get_rates.ts index c0a0a0e..b77a9bd 100644 --- a/src/commands/shipment/get_rates.ts +++ b/src/commands/shipment/get_rates.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' const TRIGGER = 'get_rates' @@ -23,7 +23,7 @@ export default class ShipmentGetRates extends Command { const { args, flags } = await this.parse(ShipmentGetRates) - const res = await exec('shipments', args.id, TRIGGER, flags) + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipment/on_hold.ts b/src/commands/shipment/on_hold.ts index c60bd29..243e509 100644 --- a/src/commands/shipment/on_hold.ts +++ b/src/commands/shipment/on_hold.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' const TRIGGER = 'on_hold' @@ -23,7 +23,7 @@ export default class ShipmentOnHold extends Command { const { args, flags } = await this.parse(ShipmentOnHold) - const res = await exec('shipments', args.id, TRIGGER, flags) + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipment/packing.ts b/src/commands/shipment/packing.ts index a9cf28f..f1053e5 100644 --- a/src/commands/shipment/packing.ts +++ b/src/commands/shipment/packing.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' const TRIGGER = 'packing' @@ -23,7 +23,7 @@ export default class ShipmentPacking extends Command { const { args, flags } = await this.parse(ShipmentPacking) - const res = await exec('shipments', args.id, TRIGGER, flags) + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipment/picking.ts b/src/commands/shipment/picking.ts index 48a0360..fb25fdf 100644 --- a/src/commands/shipment/picking.ts +++ b/src/commands/shipment/picking.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' const TRIGGER = 'picking' @@ -23,7 +23,7 @@ export default class ShipmentPicking extends Command { const { args, flags } = await this.parse(ShipmentPicking) - const res = await exec('shipments', args.id, TRIGGER, flags) + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipment/purchase.ts b/src/commands/shipment/purchase.ts index 6632125..799eaaa 100644 --- a/src/commands/shipment/purchase.ts +++ b/src/commands/shipment/purchase.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' const TRIGGER = 'purchase' @@ -23,7 +23,7 @@ export default class ShipmentPurchase extends Command { const { args, flags } = await this.parse(ShipmentPurchase) - const res = await exec('shipments', args.id, TRIGGER, flags) + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipment/ready_to_ship.ts b/src/commands/shipment/ready_to_ship.ts index 9815a0e..73bbe20 100644 --- a/src/commands/shipment/ready_to_ship.ts +++ b/src/commands/shipment/ready_to_ship.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' const TRIGGER = 'ready_to_ship' @@ -23,7 +23,7 @@ export default class ShipmentReadyToShip extends Command { const { args, flags } = await this.parse(ShipmentReadyToShip) - const res = await exec('shipments', args.id, TRIGGER, flags) + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipment/release_stock.ts b/src/commands/shipment/release_stock.ts new file mode 100644 index 0000000..aed7aac --- /dev/null +++ b/src/commands/shipment/release_stock.ts @@ -0,0 +1,36 @@ +import Command from '../../base' +import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' + + +const TRIGGER = 'release_stock' + + +export default class ShipmentReleaseStock extends Command { + + static description = triggers[TRIGGER].description + + static flags = { + + } + + static args = { + ...Command.args, + } + + + async run(): Promise { + + const { args, flags } = await this.parse(ShipmentReleaseStock) + + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) + + if (flags.print) this.printOutput(res, flags) + + this.successMessage('shipment', TRIGGER, res.id) + + return res + + } + +} diff --git a/src/commands/shipment/reserve_stock.ts b/src/commands/shipment/reserve_stock.ts new file mode 100644 index 0000000..e494b36 --- /dev/null +++ b/src/commands/shipment/reserve_stock.ts @@ -0,0 +1,36 @@ +import Command from '../../base' +import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' + + +const TRIGGER = 'reserve_stock' + + +export default class ShipmentReserveStock extends Command { + + static description = triggers[TRIGGER].description + + static flags = { + + } + + static args = { + ...Command.args, + } + + + async run(): Promise { + + const { args, flags } = await this.parse(ShipmentReserveStock) + + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) + + if (flags.print) this.printOutput(res, flags) + + this.successMessage('shipment', TRIGGER, res.id) + + return res + + } + +} diff --git a/src/commands/shipment/ship.ts b/src/commands/shipment/ship.ts index 6425714..c62b574 100644 --- a/src/commands/shipment/ship.ts +++ b/src/commands/shipment/ship.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' const TRIGGER = 'ship' @@ -23,7 +23,7 @@ export default class ShipmentShip extends Command { const { args, flags } = await this.parse(ShipmentShip) - const res = await exec('shipments', args.id, TRIGGER, flags) + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipment/upcoming.ts b/src/commands/shipment/upcoming.ts new file mode 100644 index 0000000..5dbbf26 --- /dev/null +++ b/src/commands/shipment/upcoming.ts @@ -0,0 +1,36 @@ +import Command from '../../base' +import { triggers } from '../../triggers/shipments' +import { type Shipment } from '@commercelayer/sdk' + + +const TRIGGER = 'upcoming' + + +export default class ShipmentUpcoming extends Command { + + static description = triggers[TRIGGER].description + + static flags = { + + } + + static args = { + ...Command.args, + } + + + async run(): Promise { + + const { args, flags } = await this.parse(ShipmentUpcoming) + + const res = await this.executeAction('shipments', args.id, TRIGGER, flags) + + if (flags.print) this.printOutput(res, flags) + + this.successMessage('shipment', TRIGGER, res.id) + + return res + + } + +} diff --git a/src/commands/shipping_method/disable.ts b/src/commands/shipping_method/disable.ts index 1396f47..33f2047 100644 --- a/src/commands/shipping_method/disable.ts +++ b/src/commands/shipping_method/disable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipping_methods' +import { type ShippingMethod } from '@commercelayer/sdk' const TRIGGER = 'disable' @@ -23,7 +23,7 @@ export default class ShippingMethodDisable extends Command { const { args, flags } = await this.parse(ShippingMethodDisable) - const res = await exec('shipping_methods', args.id, TRIGGER, flags) + const res = await this.executeAction('shipping_methods', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/shipping_method/enable.ts b/src/commands/shipping_method/enable.ts index 285bb0e..9285733 100644 --- a/src/commands/shipping_method/enable.ts +++ b/src/commands/shipping_method/enable.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/shipping_methods' +import { type ShippingMethod } from '@commercelayer/sdk' const TRIGGER = 'enable' @@ -23,7 +23,7 @@ export default class ShippingMethodEnable extends Command { const { args, flags } = await this.parse(ShippingMethodEnable) - const res = await exec('shipping_methods', args.id, TRIGGER, flags) + const res = await this.executeAction('shipping_methods', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/stock_reservation/index.ts b/src/commands/stock_reservation/index.ts new file mode 100644 index 0000000..5fc836d --- /dev/null +++ b/src/commands/stock_reservation/index.ts @@ -0,0 +1,57 @@ +import Command from '../../base' +import exec from '../../exec' +import inquirer from 'inquirer' +import { clColor } from '@commercelayer/cli-core' +import { triggers } from '../../triggers/stock_reservations' + + +const promptAction = async (id: string): Promise => { + const answers = await inquirer.prompt([{ + type: 'list', + name: 'trigger', + message: `Select an action to execute on stock reservation ${clColor.api.id(id)}:`, + choices: Object.keys(triggers).sort().map(a => { + return { name: a, value: a } + }), + loop: false, + pageSize: 10, + }]) + return answers.trigger +} + + +export default class StockReservationIndex extends Command { + + static description = 'execute an action on a resource of type stock_reservations' + + static flags = { + + } + + static args = { + ...Command.args, + } + + async run(): Promise { + + const { args, flags } = await this.parse(StockReservationIndex) + + const id = args.id + + const action = await promptAction(id) + + const fields = [] as string[] + + const res = await exec('stock_reservations', id, action, flags, fields) + + this.log() + this.printOutput(res, flags) + + this.successMessage('stock reservation', action, res.id) + + return res + + } + + +} diff --git a/src/commands/stock_reservation/pending.ts b/src/commands/stock_reservation/pending.ts new file mode 100644 index 0000000..854ff8a --- /dev/null +++ b/src/commands/stock_reservation/pending.ts @@ -0,0 +1,36 @@ +import Command from '../../base' +import { triggers } from '../../triggers/stock_reservations' +import { type StockReservation } from '@commercelayer/sdk' + + +const TRIGGER = 'pending' + + +export default class StockReservationPending extends Command { + + static description = triggers[TRIGGER].description + + static flags = { + + } + + static args = { + ...Command.args, + } + + + async run(): Promise { + + const { args, flags } = await this.parse(StockReservationPending) + + const res = await this.executeAction('stock_reservations', args.id, TRIGGER, flags) + + if (flags.print) this.printOutput(res, flags) + + this.successMessage('stock_reservation', TRIGGER, res.id) + + return res + + } + +} diff --git a/src/commands/stock_transfer/cancel.ts b/src/commands/stock_transfer/cancel.ts index 3b22283..6bdcc6d 100644 --- a/src/commands/stock_transfer/cancel.ts +++ b/src/commands/stock_transfer/cancel.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/stock_transfers' +import { type StockTransfer } from '@commercelayer/sdk' const TRIGGER = 'cancel' @@ -23,7 +23,7 @@ export default class StockTransferCancel extends Command { const { args, flags } = await this.parse(StockTransferCancel) - const res = await exec('stock_transfers', args.id, TRIGGER, flags) + const res = await this.executeAction('stock_transfers', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/stock_transfer/complete.ts b/src/commands/stock_transfer/complete.ts index 1e77b04..6dc0ffa 100644 --- a/src/commands/stock_transfer/complete.ts +++ b/src/commands/stock_transfer/complete.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/stock_transfers' +import { type StockTransfer } from '@commercelayer/sdk' const TRIGGER = 'complete' @@ -23,7 +23,7 @@ export default class StockTransferComplete extends Command { const { args, flags } = await this.parse(StockTransferComplete) - const res = await exec('stock_transfers', args.id, TRIGGER, flags) + const res = await this.executeAction('stock_transfers', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/stock_transfer/in_transit.ts b/src/commands/stock_transfer/in_transit.ts index 63f4a38..b337b0d 100644 --- a/src/commands/stock_transfer/in_transit.ts +++ b/src/commands/stock_transfer/in_transit.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/stock_transfers' +import { type StockTransfer } from '@commercelayer/sdk' const TRIGGER = 'in_transit' @@ -23,7 +23,7 @@ export default class StockTransferInTransit extends Command { const { args, flags } = await this.parse(StockTransferInTransit) - const res = await exec('stock_transfers', args.id, TRIGGER, flags) + const res = await this.executeAction('stock_transfers', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/stock_transfer/on_hold.ts b/src/commands/stock_transfer/on_hold.ts new file mode 100644 index 0000000..0b1bbbc --- /dev/null +++ b/src/commands/stock_transfer/on_hold.ts @@ -0,0 +1,36 @@ +import Command from '../../base' +import { triggers } from '../../triggers/stock_transfers' +import { type StockTransfer } from '@commercelayer/sdk' + + +const TRIGGER = 'on_hold' + + +export default class StockTransferOnHold extends Command { + + static description = triggers[TRIGGER].description + + static flags = { + + } + + static args = { + ...Command.args, + } + + + async run(): Promise { + + const { args, flags } = await this.parse(StockTransferOnHold) + + const res = await this.executeAction('stock_transfers', args.id, TRIGGER, flags) + + if (flags.print) this.printOutput(res, flags) + + this.successMessage('stock_transfer', TRIGGER, res.id) + + return res + + } + +} diff --git a/src/commands/stock_transfer/picking.ts b/src/commands/stock_transfer/picking.ts index ccb4385..ed0cd46 100644 --- a/src/commands/stock_transfer/picking.ts +++ b/src/commands/stock_transfer/picking.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/stock_transfers' +import { type StockTransfer } from '@commercelayer/sdk' const TRIGGER = 'picking' @@ -23,7 +23,7 @@ export default class StockTransferPicking extends Command { const { args, flags } = await this.parse(StockTransferPicking) - const res = await exec('stock_transfers', args.id, TRIGGER, flags) + const res = await this.executeAction('stock_transfers', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/stock_transfer/upcoming.ts b/src/commands/stock_transfer/upcoming.ts index 0e87628..7b57de2 100644 --- a/src/commands/stock_transfer/upcoming.ts +++ b/src/commands/stock_transfer/upcoming.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/stock_transfers' +import { type StockTransfer } from '@commercelayer/sdk' const TRIGGER = 'upcoming' @@ -23,7 +23,7 @@ export default class StockTransferUpcoming extends Command { const { args, flags } = await this.parse(StockTransferUpcoming) - const res = await exec('stock_transfers', args.id, TRIGGER, flags) + const res = await this.executeAction('stock_transfers', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/stripe_payment/refresh.ts b/src/commands/stripe_payment/refresh.ts index 3d4d80d..345cf43 100644 --- a/src/commands/stripe_payment/refresh.ts +++ b/src/commands/stripe_payment/refresh.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/stripe_payments' +import { type StripePayment } from '@commercelayer/sdk' const TRIGGER = 'refresh' @@ -23,7 +23,7 @@ export default class StripePaymentRefresh extends Command { const { args, flags } = await this.parse(StripePaymentRefresh) - const res = await exec('stripe_payments', args.id, TRIGGER, flags) + const res = await this.executeAction('stripe_payments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/stripe_payment/update.ts b/src/commands/stripe_payment/update.ts index c4e6efa..cbc2d90 100644 --- a/src/commands/stripe_payment/update.ts +++ b/src/commands/stripe_payment/update.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/stripe_payments' +import { type StripePayment } from '@commercelayer/sdk' const TRIGGER = 'update' @@ -23,7 +23,7 @@ export default class StripePaymentUpdate extends Command { const { args, flags } = await this.parse(StripePaymentUpdate) - const res = await exec('stripe_payments', args.id, TRIGGER, flags) + const res = await this.executeAction('stripe_payments', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/commands/webhook/reset_circuit.ts b/src/commands/webhook/reset_circuit.ts index 6591740..e91c814 100644 --- a/src/commands/webhook/reset_circuit.ts +++ b/src/commands/webhook/reset_circuit.ts @@ -1,6 +1,6 @@ import Command from '../../base' -import exec from '../../exec' import { triggers } from '../../triggers/webhooks' +import { type Webhook } from '@commercelayer/sdk' const TRIGGER = 'reset_circuit' @@ -23,7 +23,7 @@ export default class WebhookResetCircuit extends Command { const { args, flags } = await this.parse(WebhookResetCircuit) - const res = await exec('webhooks', args.id, TRIGGER, flags) + const res = await this.executeAction('webhooks', args.id, TRIGGER, flags) if (flags.print) this.printOutput(res, flags) diff --git a/src/exec.ts b/src/exec.ts index 3128454..f0816a1 100644 --- a/src/exec.ts +++ b/src/exec.ts @@ -1,25 +1,30 @@ +import { clUtil } from '@commercelayer/cli-core' import commercelayer, { type CommerceLayerClient, CommerceLayerStatic, type QueryParamsRetrieve } from '@commercelayer/sdk' +import { type Config } from '@oclif/core/lib/interfaces' -const commercelayerInit = (flags: any): CommerceLayerClient => { +const commercelayerInit = (flags: any, config?: Config): CommerceLayerClient => { const organization = flags.organization const domain = flags.domain const accessToken = flags.accessToken + const userAgent = config? clUtil.userAgent(config) : undefined + return commercelayer({ organization, domain, accessToken, + userAgent }) } -const executeAction = async (resourceType: string, id: string, action: string, flags: any, fields?: string[]): Promise => { +const exec = async (resourceType: string, id: string, action: string, flags: any, fields?: string[], config?: Config): Promise => { - const cl = commercelayerInit(flags) + const cl = commercelayerInit(flags, config) const res: any = { id } const trigger = `_${action}` @@ -43,4 +48,4 @@ const executeAction = async (resourceType: string, id: string, action: string, f } -export default executeAction +export default exec diff --git a/src/triggers/shipments.ts b/src/triggers/shipments.ts index ff3df73..198b1f9 100644 --- a/src/triggers/shipments.ts +++ b/src/triggers/shipments.ts @@ -3,7 +3,12 @@ import type { Trigger } from '../common' export const triggers: Record = { - on_hold: { + upcoming: { + action: 'upcoming', + trigger: '_upcoming', + description: 'Send this attribute if you want to mark this shipment as upcoming.', + }, + on_hold: { action: 'on_hold', trigger: '_on_hold', description: 'Send this attribute if you want to put this shipment on hold.', @@ -27,6 +32,21 @@ export const triggers: Record = { action: 'ship', trigger: '_ship', description: 'Send this attribute if you want to mark this shipment as shipped.', + }, + reserve_stock: { + action: 'reserve_stock', + trigger: '_reserve_stock', + description: 'Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.', + }, + release_stock: { + action: 'release_stock', + trigger: '_release_stock', + description: 'Send this attribute if you want to automatically release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.', + }, + decrement_stock: { + action: 'decrement_stock', + trigger: '_decrement_stock', + description: 'Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.', }, get_rates: { action: 'get_rates', @@ -42,10 +62,14 @@ export const triggers: Record = { export type ActionType = - 'on_hold' | + 'upcoming' | + 'on_hold' | 'picking' | 'packing' | 'ready_to_ship' | 'ship' | + 'reserve_stock' | + 'release_stock' | + 'decrement_stock' | 'get_rates' | 'purchase' diff --git a/src/triggers/stock_reservations.ts b/src/triggers/stock_reservations.ts new file mode 100644 index 0000000..d67ca11 --- /dev/null +++ b/src/triggers/stock_reservations.ts @@ -0,0 +1,15 @@ + +import type { Trigger } from '../common' + + +export const triggers: Record = { + pending: { + action: 'pending', + trigger: '_pending', + description: 'Send this attribute if you want to mark this stock reservation as pending.', + }, +} + + +export type ActionType = + 'pending' diff --git a/src/triggers/stock_transfers.ts b/src/triggers/stock_transfers.ts index 8ebf799..3259f74 100644 --- a/src/triggers/stock_transfers.ts +++ b/src/triggers/stock_transfers.ts @@ -7,6 +7,11 @@ export const triggers: Record = { action: 'upcoming', trigger: '_upcoming', description: 'Send this attribute if you want to mark this stock transfer as upcoming.', + }, + on_hold: { + action: 'on_hold', + trigger: '_on_hold', + description: 'Send this attribute if you want to put this stock transfer on hold.', }, picking: { action: 'picking', @@ -33,6 +38,7 @@ export const triggers: Record = { export type ActionType = 'upcoming' | + 'on_hold' | 'picking' | 'in_transit' | 'complete' | diff --git a/test/commands/shipment/decrement_stock.test.ts b/test/commands/shipment/decrement_stock.test.ts new file mode 100644 index 0000000..3a36181 --- /dev/null +++ b/test/commands/shipment/decrement_stock.test.ts @@ -0,0 +1,11 @@ +import { expect, test } from '@oclif/test' + +describe('shipments:decrement_stock', () => { + test + .timeout(15000) + .stdout() + .command(['noc']) + .it('runs NoC', ctx => { + expect(ctx.stdout).to.contain('-= NoC =-') + }) +}) diff --git a/test/commands/shipment/release_stock.test.ts b/test/commands/shipment/release_stock.test.ts new file mode 100644 index 0000000..cb15441 --- /dev/null +++ b/test/commands/shipment/release_stock.test.ts @@ -0,0 +1,11 @@ +import { expect, test } from '@oclif/test' + +describe('shipments:release_stock', () => { + test + .timeout(15000) + .stdout() + .command(['noc']) + .it('runs NoC', ctx => { + expect(ctx.stdout).to.contain('-= NoC =-') + }) +}) diff --git a/test/commands/shipment/reserve_stock.test.ts b/test/commands/shipment/reserve_stock.test.ts new file mode 100644 index 0000000..4a64337 --- /dev/null +++ b/test/commands/shipment/reserve_stock.test.ts @@ -0,0 +1,11 @@ +import { expect, test } from '@oclif/test' + +describe('shipments:reserve_stock', () => { + test + .timeout(15000) + .stdout() + .command(['noc']) + .it('runs NoC', ctx => { + expect(ctx.stdout).to.contain('-= NoC =-') + }) +}) diff --git a/test/commands/shipment/upcoming.test.ts b/test/commands/shipment/upcoming.test.ts new file mode 100644 index 0000000..4a898a4 --- /dev/null +++ b/test/commands/shipment/upcoming.test.ts @@ -0,0 +1,11 @@ +import { expect, test } from '@oclif/test' + +describe('shipments:upcoming', () => { + test + .timeout(15000) + .stdout() + .command(['noc']) + .it('runs NoC', ctx => { + expect(ctx.stdout).to.contain('-= NoC =-') + }) +}) diff --git a/test/commands/stock_reservation/pending.test.ts b/test/commands/stock_reservation/pending.test.ts new file mode 100644 index 0000000..a740588 --- /dev/null +++ b/test/commands/stock_reservation/pending.test.ts @@ -0,0 +1,11 @@ +import { expect, test } from '@oclif/test' + +describe('stock_reservations:pending', () => { + test + .timeout(15000) + .stdout() + .command(['noc']) + .it('runs NoC', ctx => { + expect(ctx.stdout).to.contain('-= NoC =-') + }) +}) diff --git a/test/commands/stock_transfer/on_hold.test.ts b/test/commands/stock_transfer/on_hold.test.ts new file mode 100644 index 0000000..66d1419 --- /dev/null +++ b/test/commands/stock_transfer/on_hold.test.ts @@ -0,0 +1,11 @@ +import { expect, test } from '@oclif/test' + +describe('stock_transfers:on_hold', () => { + test + .timeout(15000) + .stdout() + .command(['noc']) + .it('runs NoC', ctx => { + expect(ctx.stdout).to.contain('-= NoC =-') + }) +})