diff --git a/.fernignore b/.fernignore
new file mode 100644
index 000000000..d812baaa9
--- /dev/null
+++ b/.fernignore
@@ -0,0 +1,15 @@
+# Specify files that shouldn't be modified by Fern
+
+README.md
+
+.github/workflows/integration.yml
+src/wrapper
+src/index.ts
+src/errors/SquareError.ts
+src/core/index.ts
+src/core/crypto
+tests/unit/error.test.ts
+tests/unit/fetcher/stream-wrappers/webpack.test.ts
+tests/integration
+legacy
+jest.config.mjs
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
index 5c6efcd10..000000000
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve Square SDKs
-title: ''
-labels: ''
-assignees: ''
-
----
-
-## **ATTENTION**
-This issue template is for **bugs** or **documentation** errors in this SDK Repo. Please direct all technical support questions, feature requests, API-related issues, and general discussions to our Square-supported developer channels. For public support, [join us in our Square Developer Discord server](https://discord.com/invite/squaredev) or [post in our Developer Forums](https://developer.squareup.com/forums). For private support, [contact our Developer Success Engineers](https://squareup.com/help/us/en/contact?panel=BF53A9C8EF68) directly.
-
-**Describe the bug**
-A clear and concise description of what the bug is.
-
-**Expected behavior**
-A clear and concise description of what you expected to happen.
-
-**To Reproduce**
-Steps to reproduce the bug:
-1. (step 1)
-2. (step 2)
-3. (step 3)
-4. ...
-
-**Screenshots**
-If applicable, add screenshots to help explain the bug.
-
-**Square SDK version**
-For example: 17.2.x
-
-**Additional context**
-Add any other context about the problem here.
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
deleted file mode 100644
index f38eff76c..000000000
--- a/.github/ISSUE_TEMPLATE/config.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-blank_issues_enabled: false
-contact_links:
- - name: Square Developer Forums
- url: https://developer.squareup.com/forums
- about: Public discussion threads for technical support, feature requests, api discussion, and all things related to square development.
- - name: Square Developer Discord Server
- url: https://discord.com/invite/squaredev
- about: Community slack channel for real time support and conversations about building with square.
- - name: Developer Support
- url: https://squareup.com/help/us/en/contact?panel=BF53A9C8EF68
- about: Private support directly with Square Developer Success Engineers.
diff --git a/.github/labeler.yml b/.github/labeler.yml
deleted file mode 100644
index 1d486d977..000000000
--- a/.github/labeler.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# configuration settings for labeler
-
-version: v1
-
-labels:
- - label: "automerge"
- sync: true
- matcher:
- title: "^Generated PR for Release:"
-
- - label: "automerge-author"
- sync: true
- matcher:
- author:
- - square-sdk-deployer
-
- - label: "automerge-branch"
- sync: true
- matcher:
- branch: "^release"
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
deleted file mode 100644
index 77bc5759f..000000000
--- a/.github/pull_request_template.md
+++ /dev/null
@@ -1,4 +0,0 @@
-# **ATTENTION**
-This repository **cannot** accept Pull Requests. If you wish to proceed with opening this PR, please understand that your code **will not** be pulled into this repository. Consider opening an issue which lays out the problem instead. Thank you very much for your efforts and highlighting issues!
-
-Please direct all technical support questions, feature requests, API-related issues, and general discussions to our Square-supported developer channels. For public support, [join us in our Square Developer Discord server](https://discord.com/invite/squaredev) or [post in our Developer Forums](https://developer.squareup.com/forums). For private support, [contact our Developer Success Engineers](https://squareup.com/help/us/en/contact?panel=BF53A9C8EF68) directly.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 000000000..cf13c1cc0
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,30 @@
+name: ci
+
+on: [push]
+
+jobs:
+ compile:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v3
+
+ - name: Set up node
+ uses: actions/setup-node@v3
+
+ - name: Compile
+ run: yarn && yarn build
+
+ test:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v3
+
+ - name: Set up node
+ uses: actions/setup-node@v3
+
+ - name: Compile
+ run: yarn && yarn test
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
new file mode 100644
index 000000000..22e312113
--- /dev/null
+++ b/.github/workflows/integration.yml
@@ -0,0 +1,20 @@
+name: ci
+
+on: [push]
+
+jobs:
+ integration:
+ env:
+ TEST_SQUARE_TOKEN: ${{ secrets.TEST_SQUARE_TOKEN }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repo
+ uses: actions/checkout@v3
+
+ - name: Set up node
+ uses: actions/setup-node@v3
+
+ - name: Run integration tests
+ # TODO: Replace the following 'run' statement with the following when TEST_SQUARE_TOKEN secret exists.
+ # run: yarn && yarn test:integration
+ run: yarn
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml
deleted file mode 100644
index ddebc061f..000000000
--- a/.github/workflows/node.js.yml
+++ /dev/null
@@ -1,52 +0,0 @@
-# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
-# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
-
-name: Node.js CI
-
-on:
- push:
- branches: [master]
- pull_request:
- branches: [master]
-
-jobs:
- build:
- env:
- SQUARE_ENVIRONMENT: sandbox
- SQUARE_SANDBOX_TOKEN: ${{ secrets.SQUARE_SANDBOX_TOKEN }}
-
- runs-on: ubuntu-latest
-
- strategy:
- matrix:
- node-version: [14.x, 16.x, 18.x]
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
-
- steps:
- - uses: actions/checkout@v2
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v2
- with:
- node-version: ${{ matrix.node-version }}
- - run: npm install --no-save
- - run: npm run build --if-present
- - run: npm test
-
- labeler:
- needs: build
- if: ${{ github.event_name == 'pull_request' }}
- runs-on: ubuntu-latest
- steps:
- - name: automerge-labeler
- uses: fuxingloh/multi-labeler@v1
-
- automerge:
- needs: labeler
- if: ${{ github.event_name == 'pull_request' }}
- runs-on: ubuntu-latest
- steps:
- - name: automerge
- uses: "pascalgn/automerge-action@v0.14.2"
- env:
- GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- MERGE_LABELS: "automerge,automerge-branch,automerge-author"
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..72271e049
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+node_modules
+.DS_Store
+/dist
\ No newline at end of file
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 000000000..6db0876c4
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,9 @@
+node_modules
+src
+tests
+.gitignore
+.github
+.fernignore
+.prettierrc.yml
+tsconfig.json
+yarn.lock
\ No newline at end of file
diff --git a/.prettierrc.yml b/.prettierrc.yml
new file mode 100644
index 000000000..0c06786bf
--- /dev/null
+++ b/.prettierrc.yml
@@ -0,0 +1,2 @@
+tabWidth: 4
+printWidth: 120
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index 830654f59..000000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Contributing to Square SDKs
-
-Thank you for your willingness to help improve the Square SDKs. Your feedback and expertise ultimately benefits everyone who builds with Square.
-
-If you encounter a bug while using Square SDKs, please [let us know](#bug-reporting). We'll investigate the issue and fix it as soon as possible.
-
-We also accept feedback in the form of a pull request (PR), and will follow up with you if we need more information. However, any code changes required will be perfomed by Square engineering, and we'll close the PR.
-
-## Bug report
-
-To report a bug:
-* Go to the **[Issues](../../issues)** page.
-* Click **New issue**.
-* Click **Get started**.
-
-## Other support
-
-For all other support, including new feature requests, see:
-
-* Square developer forums: [https://developer.squareup.com/forums](https://developer.squareup.com/forums)
-* Square support center: [https://squareup.com/help/us/en](https://squareup.com/help/us/en)
diff --git a/LICENSE b/LICENSE
index 71fb2ce0d..f5669d1d5 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,10 +1,21 @@
-Copyright 2024 Square, Inc.
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
- https://www.apache.org/licenses/LICENSE-2.0
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+MIT License
+
+Copyright (c) 2025 Square.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/README.md b/README.md
index 82be4626c..9ee670956 100644
--- a/README.md
+++ b/README.md
@@ -1,189 +1,280 @@
-[](https://github.com/square/square-nodejs-sdk/actions/workflows/node.js.yml)
-[](https://badge.fury.io/js/square)
-[](https://www.apache.org/licenses/LICENSE-2.0)
+# Square TypeScript Library
-# Square Node.js SDK
+[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fsquare%2Fsquare-nodejs-sdk)
+[](https://www.npmjs.com/package/square)
-Use this JavaScript library to manage Square resources (such as payments, orders, items, and inventory) for your own Square account or on behalf of Square sellers.
+The Square TypeScript library provides convenient access to the Square API from TypeScript.
-* [Requirements](#requirements)
-* [Installation](#installation)
-* [Quickstart](#quickstart)
-* [Usage](#usage)
-* [Tests](#tests)
-* [SDK Reference](#sdk-reference)
-* [Deprecated APIs](#deprecated-apis)
+## Installation
-## Requirements
+```sh
+npm i -s square
+```
-Use of the Square Node.js SDK requires:
+## Reference
-* Node.js 14 or higher
+A full reference for this library is available [here](./reference.md).
-This SDK supports Node.js versions that are either current, or that are in long-term support status (LTS). The SDK does not support Node.js versions that have reached their end-of-life (EOL). For more information on Node.js versioning, see .
+## Versioning
-This SDK is for use with Node.js only. It does not support other usages, such as for web browsers or frontend applications.
+By default, the SDK is pinned to the latest version. If you would like
+to override this version you can simply pass in a request option.
-## Installation
+```ts
+await client.payments.create(..., {
+ version: "2024-05-04" // override the version used
+})
+```
+
+## Usage
-For more information, see [Set Up Your Square SDK for a Node.js Project](https://developer.squareup.com/docs/sdks/nodejs/setup-project).
+Instantiate and use the client with the following:
+
+```typescript
+import { SquareClient } from "square";
+
+const client = new SquareClient({ token: "YOUR_TOKEN" });
+await client.payments.create({
+ sourceId: "ccof:GaJGNaZa8x4OgDJn4GB",
+ idempotencyKey: "7b0f3ec5-086a-4871-8f13-3c81b3875218",
+ amountMoney: {
+ amount: BigInt(1000),
+ currency: "USD",
+ },
+ appFeeMoney: {
+ amount: BigInt(10),
+ currency: "USD",
+ },
+ autocomplete: true,
+ customerId: "W92WH6P11H4Z77CTET0RNTGFW8",
+ locationId: "L88917AVBK2S5",
+ referenceId: "123456",
+ note: "Brief description",
+});
+```
-## Quickstart
+## Legacy SDK
+
+> If you're using TypeScript, make sure that the `moduleResolution` setting in your `tsconfig.json` is equal to `node16`, `nodenext`,
+> or `bundler` to consume the legacy SDK.
+
+While the new SDK has a lot of improvements, we at Square understand that it takes time to upgrade when there are breaking changes.
+To make the migration easier, the new SDK also exports the legacy SDK as `square/legacy`. Here's an example of how you can use the
+legacy SDK alongside the new SDK inside a single file:
+
+```typescript
+import { randomUUID } from "crypto";
+import { Square, SquareClient } from "square";
+import { Client } from "square/legacy";
+
+const client = new SquareClient({
+ token: process.env.SQUARE_ACCESS_TOKEN,
+});
+
+const legacyClient = new Client({
+ bearerAuthCredentials: {
+ accessToken: process.env.SQUARE_ACCESS_TOKEN!,
+ },
+});
+
+async function getLocation(): Promise {
+ return (
+ await client.locations.get({
+ locationId: "YOUR_LOCATION_ID",
+ })
+ ).location!;
+}
+
+async function createOrder() {
+ const location = await getLocation();
+ await legacyClient.ordersApi.createOrder({
+ idempotencyKey: randomUUID(),
+ order: {
+ locationId: location.id!,
+ lineItems: [
+ {
+ name: "New Item",
+ quantity: "1",
+ basePriceMoney: {
+ amount: BigInt(100),
+ currency: "USD",
+ },
+ },
+ ],
+ },
+ });
+}
+
+createOrder();
+```
-For more information, see [Square Node.js SDK Quickstart](https://developer.squareup.com/docs/sdks/nodejs/quick-start).
+We recommend migrating to the new SDK using the following steps:
-## Usage
-For more information, see [Using the Square Node.js SDK](https://developer.squareup.com/docs/sdks/nodejs/using-nodejs-sdk).
+1. Upgrade the NPM module to `^40.0.0`
+2. Search and replace all requires and imports from `"square"` to `"square/legacy"`
-## Tests
+- For required, replace `require("square")` with `require("square/legacy")`
+- For imports, replace `from "square"` with `from "square/legacy"`
+- For dynamic imports, replace `import("square")` with `import("square/legacy")`
-First, clone the repo locally and `cd` into the directory.
+3. Gradually move over to use the new SDK by importing it from the `"square"` import.
-```sh
-git clone https://github.com/square/square-nodejs-sdk.git
-cd square-nodejs-sdk
+## Request And Response Types
+
+The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
+following namespace:
+
+```typescript
+import { Square } from "square";
+
+const request: Square.CreateMobileAuthorizationCodeRequest = {
+ ...
+};
```
-Next, install dependencies and build.
+## Exception Handling
-```sh
-npm install
-npm run build
+When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
+will be thrown.
+
+```typescript
+import { SquareError } from "square";
+
+try {
+ await client.payments.create(...);
+} catch (err) {
+ if (err instanceof SquareError) {
+ console.log(err.statusCode);
+ console.log(err.message);
+ console.log(err.body);
+ }
+}
```
-Before running the tests, get a sandbox access token from your [Developer Dashboard] and use it to set a `SQUARE_SANDBOX_TOKEN` environment variable.
+## Pagination
-```sh
-export SQUARE_SANDBOX_TOKEN="YOUR SANDBOX ACCESS TOKEN HERE"
+List endpoints are paginated. The SDK provides an iterator so that you can simply loop over the items:
+
+```typescript
+import { SquareClient } from "square";
+
+const client = new SquareClient({ token: "YOUR_TOKEN" });
+const response = await client.bankAccounts.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.bankAccounts.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
```
-And run the tests.
+## Webhook Signature Verification
-```sh
-npm test
+The SDK provides utility methods that allow you to verify webhook signatures and ensure that all
+webhook events originate from Square. The `Webhooks.verifySignature` method will verify the signature.
+
+```ts
+import { WebhooksHelper } from "square";
+
+const isValid = WebhooksHelper.verifySignature({
+ requestBody,
+ signatureHeader: request.headers['x-square-hmacsha256-signature'],
+ signatureKey: "YOUR_SIGNATURE_KEY",
+ notificationUrl: "https://example.com/webhook", // The URL where event notifications are sent.
+});
+```
+
+## Advanced
+
+### Additional Headers
+
+If you would like to send additional headers as part of the request, use the `headers` request option.
+
+```typescript
+const response = await client.payments.create(..., {
+ headers: {
+ 'X-Custom-Header': 'custom value'
+ }
+});
+```
+
+### Retries
+
+The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
+as the request is deemed retriable and the number of retry attempts has not grown larger than the configured
+retry limit (default: 2).
+
+A request is deemed retriable when any of the following HTTP status codes is returned:
+
+- [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
+- [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
+- [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
+
+Use the `maxRetries` request option to configure this behavior.
+
+```typescript
+const response = await client.payments.create(..., {
+ maxRetries: 0 // override maxRetries at the request level
+});
```
-## SDK Reference
-
-### Payments
-* [Payments]
-* [Refunds]
-* [Disputes]
-* [Checkout]
-* [Apple Pay]
-* [Cards]
-* [Payouts]
-
-### Terminal
-* [Terminal]
-
-### Orders
-* [Orders]
-* [Order Custom Attributes]
-
-### Subscriptions
-* [Subscriptions]
-
-### Invoices
-* [Invoices]
-
-### Items
-* [Catalog]
-* [Inventory]
-
-### Customers
-* [Customers]
-* [Customer Groups]
-* [Customer Segments]
-
-### Loyalty
-* [Loyalty]
-
-### Gift Cards
-* [Gift Cards]
-* [Gift Card Activities]
-
-### Bookings
-* [Bookings]
-* [Booking Custom Attributes]
-
-### Business
-* [Merchants]
-* [Merchant Custom Attributes]
-* [Locations]
-* [Location Custom Attributes]
-* [Devices]
-* [Cash Drawers]
-
-### Team
-* [Team]
-* [Labor]
-
-### Financials
-* [Bank Accounts]
-
-### Online
-* [Sites]
-* [Snippets]
-
-### Authorization
-* [Mobile Authorization]
-* [OAuth]
-
-### Webhook Subscriptions
-* [Webhook Subscriptions]
-## Deprecated APIs
-
-The following Square APIs are [deprecated](https://developer.squareup.com/docs/build-basics/api-lifecycle):
-
-* [Employees] - replaced by the [Team] API. For more information, see [Migrate from the Employees API](https://developer.squareup.com/docs/team/migrate-from-v2-employees).
-
-* [Transactions] - replaced by the [Orders] and [Payments] APIs. For more information, see [Migrate from the Transactions API](https://developer.squareup.com/docs/payments-api/migrate-from-transactions-api).
-
-
-[Developer Dashboard]: https://developer.squareup.com/apps
-[Square API]: https://squareup.com/developers
-[sign up for a developer account]: https://squareup.com/signup?v=developers
-[Locations overview]: https://developer.squareup.com/docs/locations-api
-[OAuth overview]: https://developer.squareup.com/docs/oauth-api/overview
-[Client]: doc/client.md
-[Devices]: doc/api/devices.md
-[Disputes]: doc/api/disputes.md
-[Terminal]: doc/api/terminal.md
-[Team]: doc/api/team.md
-[Cash Drawers]: doc/api/cash-drawers.md
-[Vendors]: doc/api/vendors.md
-[Customer Groups]: doc/api/customer-groups.md
-[Customer Segments]: doc/api/customer-segments.md
-[Bank Accounts]: doc/api/bank-accounts.md
-[Payments]: doc/api/payments.md
-[Checkout]: doc/api/checkout.md
-[Catalog]: doc/api/catalog.md
-[Customers]: doc/api/customers.md
-[Customer Custom Attributes]: doc/api/customer-custom-attributes.md
-[Inventory]: doc/api/inventory.md
-[Labor]: doc/api/labor.md
-[Loyalty]: doc/api/loyalty.md
-[Bookings]: doc/api/bookings.md
-[Booking Custom Attributes]: doc/api/booking-custom-attributes.md
-[Locations]: doc/api/locations.md
-[Location Custom Attributes]: doc/api/location-custom-attributes.md
-[Merchants]: doc/api/merchants.md
-[Merchant Custom Attributes]: doc/api/merchant-custom-attributes.md
-[Orders]: doc/api/orders.md
-[Order Custom Attributes]: doc/api/order-custom-attributes.md
-[Invoices]: doc/api/invoices.md
-[Apple Pay]: doc/api/apple-pay.md
-[Refunds]: doc/api/refunds.md
-[Subscriptions]: doc/api/subscriptions.md
-[Mobile Authorization]: doc/api/mobile-authorization.md
-[OAuth]: doc/api/o-auth.md
-[Sites]: doc/api/sites.md
-[Snippets]: doc/api/snippets.md
-[Cards]: doc/api/cards.md
-[Payouts]: doc/api/payouts.md
-[Gift Cards]: doc/api/gift-cards.md
-[Gift Card Activities]: doc/api/gift-card-activities.md
-[Employees]: doc/api/employees.md
-[Transactions]: doc/api/transactions.md
-[Webhook Subscriptions]: doc/api/webhook-subscriptions.md
+### Timeouts
+
+The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
+
+```typescript
+const response = await client.payments.create(..., {
+ timeoutInSeconds: 30 // override timeout to 30s
+});
+```
+
+### Aborting Requests
+
+The SDK allows users to abort requests at any point by passing in an abort signal.
+
+```typescript
+const controller = new AbortController();
+const response = await client.payments.create(..., {
+ abortSignal: controller.signal
+});
+controller.abort(); // aborts the request
+```
+
+### Runtime Compatibility
+
+The SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following
+runtimes:
+
+- Node.js 18+
+- Vercel
+- Cloudflare Workers
+- Deno v1.25+
+- Bun 1.0+
+- React Native
+
+### Customizing Fetch Client
+
+The SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an
+unsupported environment, this provides a way for you to break glass and ensure the SDK works.
+
+```typescript
+import { SquareClient } from "square";
+
+const client = new SquareClient({
+ ...
+ fetcher: // provide your implementation here
+});
+```
+
+## Contributing
+
+While we value open-source contributions to this SDK, this library is generated programmatically.
+Additions made directly to this library would have to be moved over to our generation code,
+otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
+a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
+an issue first to discuss with us!
+
+On the other hand, contributions to the README are always very welcome!
diff --git a/jest.config.js b/jest.config.js
deleted file mode 100644
index 091b875d7..000000000
--- a/jest.config.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = {
- testEnvironment: 'node',
- preset: 'ts-jest',
- transform: {
- '^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.base.json' }],
- },
-};
diff --git a/jest.config.mjs b/jest.config.mjs
new file mode 100644
index 000000000..e5adc4389
--- /dev/null
+++ b/jest.config.mjs
@@ -0,0 +1,9 @@
+/** @type {import('jest').Config} */
+export default {
+ preset: "ts-jest",
+ testEnvironment: "node",
+ moduleNameMapper: {
+ "(.+)\.js$": "$1",
+ },
+ workerThreads: true,
+};
diff --git a/CHANGELOG.md b/legacy/CHANGELOG.md
similarity index 100%
rename from CHANGELOG.md
rename to legacy/CHANGELOG.md
diff --git a/legacy/README.md b/legacy/README.md
new file mode 100644
index 000000000..1f598e529
--- /dev/null
+++ b/legacy/README.md
@@ -0,0 +1,157 @@
+# Square Legacy Node.js SDK
+
+Use this JavaScript library to manage Square resources (such as payments, orders, items, and inventory) for your own Square account or on behalf of Square sellers.
+
+* [Requirements](#requirements)
+* [Installation](#installation)
+* [Quickstart](#quickstart)
+* [Usage](#usage)
+* [Tests](#tests)
+* [SDK Reference](#sdk-reference)
+* [Deprecated APIs](#deprecated-apis)
+
+## Requirements
+
+Use of the Square Node.js SDK requires:
+
+* Node.js 14 or higher
+
+This SDK supports Node.js versions that are either current, or that are in long-term support status (LTS). The SDK does not support Node.js versions that have reached their end-of-life (EOL). For more information on Node.js versioning, see .
+
+This SDK is for use with Node.js only. It does not support other usages, such as for web browsers or frontend applications.
+
+## Installation
+
+For more information, see [Set Up Your Square SDK for a Node.js Project](https://developer.squareup.com/docs/sdks/nodejs/setup-project).
+
+## Quickstart
+
+For more information, see [Square Node.js SDK Quickstart](https://developer.squareup.com/docs/sdks/nodejs/quick-start).
+
+## Usage
+For more information, see [Using the Square Node.js SDK](https://developer.squareup.com/docs/sdks/nodejs/using-nodejs-sdk).
+
+## SDK Reference
+
+### Payments
+* [Payments]
+* [Refunds]
+* [Disputes]
+* [Checkout]
+* [Apple Pay]
+* [Cards]
+* [Payouts]
+
+### Terminal
+* [Terminal]
+
+### Orders
+* [Orders]
+* [Order Custom Attributes]
+
+### Subscriptions
+* [Subscriptions]
+
+### Invoices
+* [Invoices]
+
+### Items
+* [Catalog]
+* [Inventory]
+
+### Customers
+* [Customers]
+* [Customer Groups]
+* [Customer Segments]
+
+### Loyalty
+* [Loyalty]
+
+### Gift Cards
+* [Gift Cards]
+* [Gift Card Activities]
+
+### Bookings
+* [Bookings]
+* [Booking Custom Attributes]
+
+### Business
+* [Merchants]
+* [Merchant Custom Attributes]
+* [Locations]
+* [Location Custom Attributes]
+* [Devices]
+* [Cash Drawers]
+
+### Team
+* [Team]
+* [Labor]
+
+### Financials
+* [Bank Accounts]
+
+### Online
+* [Sites]
+* [Snippets]
+
+### Authorization
+* [Mobile Authorization]
+* [OAuth]
+
+### Webhook Subscriptions
+* [Webhook Subscriptions]
+## Deprecated APIs
+
+The following Square APIs are [deprecated](https://developer.squareup.com/docs/build-basics/api-lifecycle):
+
+* [Employees] - replaced by the [Team] API. For more information, see [Migrate from the Employees API](https://developer.squareup.com/docs/team/migrate-from-v2-employees).
+
+* [Transactions] - replaced by the [Orders] and [Payments] APIs. For more information, see [Migrate from the Transactions API](https://developer.squareup.com/docs/payments-api/migrate-from-transactions-api).
+
+
+[Developer Dashboard]: https://developer.squareup.com/apps
+[Square API]: https://squareup.com/developers
+[sign up for a developer account]: https://squareup.com/signup?v=developers
+[Locations overview]: https://developer.squareup.com/docs/locations-api
+[OAuth overview]: https://developer.squareup.com/docs/oauth-api/overview
+[Client]: doc/client.md
+[Devices]: doc/api/devices.md
+[Disputes]: doc/api/disputes.md
+[Terminal]: doc/api/terminal.md
+[Team]: doc/api/team.md
+[Cash Drawers]: doc/api/cash-drawers.md
+[Vendors]: doc/api/vendors.md
+[Customer Groups]: doc/api/customer-groups.md
+[Customer Segments]: doc/api/customer-segments.md
+[Bank Accounts]: doc/api/bank-accounts.md
+[Payments]: doc/api/payments.md
+[Checkout]: doc/api/checkout.md
+[Catalog]: doc/api/catalog.md
+[Customers]: doc/api/customers.md
+[Customer Custom Attributes]: doc/api/customer-custom-attributes.md
+[Inventory]: doc/api/inventory.md
+[Labor]: doc/api/labor.md
+[Loyalty]: doc/api/loyalty.md
+[Bookings]: doc/api/bookings.md
+[Booking Custom Attributes]: doc/api/booking-custom-attributes.md
+[Locations]: doc/api/locations.md
+[Location Custom Attributes]: doc/api/location-custom-attributes.md
+[Merchants]: doc/api/merchants.md
+[Merchant Custom Attributes]: doc/api/merchant-custom-attributes.md
+[Orders]: doc/api/orders.md
+[Order Custom Attributes]: doc/api/order-custom-attributes.md
+[Invoices]: doc/api/invoices.md
+[Apple Pay]: doc/api/apple-pay.md
+[Refunds]: doc/api/refunds.md
+[Subscriptions]: doc/api/subscriptions.md
+[Mobile Authorization]: doc/api/mobile-authorization.md
+[OAuth]: doc/api/o-auth.md
+[Sites]: doc/api/sites.md
+[Snippets]: doc/api/snippets.md
+[Cards]: doc/api/cards.md
+[Payouts]: doc/api/payouts.md
+[Gift Cards]: doc/api/gift-cards.md
+[Gift Card Activities]: doc/api/gift-card-activities.md
+[Employees]: doc/api/employees.md
+[Transactions]: doc/api/transactions.md
+[Webhook Subscriptions]: doc/api/webhook-subscriptions.md
diff --git a/doc/api-error.md b/legacy/doc/api-error.md
similarity index 100%
rename from doc/api-error.md
rename to legacy/doc/api-error.md
diff --git a/doc/api-response.md b/legacy/doc/api-response.md
similarity index 100%
rename from doc/api-response.md
rename to legacy/doc/api-response.md
diff --git a/doc/api/apple-pay.md b/legacy/doc/api/apple-pay.md
similarity index 100%
rename from doc/api/apple-pay.md
rename to legacy/doc/api/apple-pay.md
diff --git a/doc/api/bank-accounts.md b/legacy/doc/api/bank-accounts.md
similarity index 100%
rename from doc/api/bank-accounts.md
rename to legacy/doc/api/bank-accounts.md
diff --git a/doc/api/booking-custom-attributes.md b/legacy/doc/api/booking-custom-attributes.md
similarity index 100%
rename from doc/api/booking-custom-attributes.md
rename to legacy/doc/api/booking-custom-attributes.md
diff --git a/doc/api/bookings.md b/legacy/doc/api/bookings.md
similarity index 100%
rename from doc/api/bookings.md
rename to legacy/doc/api/bookings.md
diff --git a/doc/api/cards.md b/legacy/doc/api/cards.md
similarity index 100%
rename from doc/api/cards.md
rename to legacy/doc/api/cards.md
diff --git a/doc/api/cash-drawers.md b/legacy/doc/api/cash-drawers.md
similarity index 100%
rename from doc/api/cash-drawers.md
rename to legacy/doc/api/cash-drawers.md
diff --git a/doc/api/catalog.md b/legacy/doc/api/catalog.md
similarity index 100%
rename from doc/api/catalog.md
rename to legacy/doc/api/catalog.md
diff --git a/doc/api/checkout.md b/legacy/doc/api/checkout.md
similarity index 100%
rename from doc/api/checkout.md
rename to legacy/doc/api/checkout.md
diff --git a/doc/api/customer-custom-attributes.md b/legacy/doc/api/customer-custom-attributes.md
similarity index 100%
rename from doc/api/customer-custom-attributes.md
rename to legacy/doc/api/customer-custom-attributes.md
diff --git a/doc/api/customer-groups.md b/legacy/doc/api/customer-groups.md
similarity index 100%
rename from doc/api/customer-groups.md
rename to legacy/doc/api/customer-groups.md
diff --git a/doc/api/customer-segments.md b/legacy/doc/api/customer-segments.md
similarity index 100%
rename from doc/api/customer-segments.md
rename to legacy/doc/api/customer-segments.md
diff --git a/doc/api/customers.md b/legacy/doc/api/customers.md
similarity index 100%
rename from doc/api/customers.md
rename to legacy/doc/api/customers.md
diff --git a/doc/api/devices.md b/legacy/doc/api/devices.md
similarity index 100%
rename from doc/api/devices.md
rename to legacy/doc/api/devices.md
diff --git a/doc/api/disputes.md b/legacy/doc/api/disputes.md
similarity index 100%
rename from doc/api/disputes.md
rename to legacy/doc/api/disputes.md
diff --git a/doc/api/employees.md b/legacy/doc/api/employees.md
similarity index 100%
rename from doc/api/employees.md
rename to legacy/doc/api/employees.md
diff --git a/doc/api/events.md b/legacy/doc/api/events.md
similarity index 100%
rename from doc/api/events.md
rename to legacy/doc/api/events.md
diff --git a/doc/api/gift-card-activities.md b/legacy/doc/api/gift-card-activities.md
similarity index 100%
rename from doc/api/gift-card-activities.md
rename to legacy/doc/api/gift-card-activities.md
diff --git a/doc/api/gift-cards.md b/legacy/doc/api/gift-cards.md
similarity index 100%
rename from doc/api/gift-cards.md
rename to legacy/doc/api/gift-cards.md
diff --git a/doc/api/inventory.md b/legacy/doc/api/inventory.md
similarity index 100%
rename from doc/api/inventory.md
rename to legacy/doc/api/inventory.md
diff --git a/doc/api/invoices.md b/legacy/doc/api/invoices.md
similarity index 100%
rename from doc/api/invoices.md
rename to legacy/doc/api/invoices.md
diff --git a/doc/api/labor.md b/legacy/doc/api/labor.md
similarity index 100%
rename from doc/api/labor.md
rename to legacy/doc/api/labor.md
diff --git a/doc/api/location-custom-attributes.md b/legacy/doc/api/location-custom-attributes.md
similarity index 100%
rename from doc/api/location-custom-attributes.md
rename to legacy/doc/api/location-custom-attributes.md
diff --git a/doc/api/locations.md b/legacy/doc/api/locations.md
similarity index 100%
rename from doc/api/locations.md
rename to legacy/doc/api/locations.md
diff --git a/doc/api/loyalty.md b/legacy/doc/api/loyalty.md
similarity index 100%
rename from doc/api/loyalty.md
rename to legacy/doc/api/loyalty.md
diff --git a/doc/api/merchant-custom-attributes.md b/legacy/doc/api/merchant-custom-attributes.md
similarity index 100%
rename from doc/api/merchant-custom-attributes.md
rename to legacy/doc/api/merchant-custom-attributes.md
diff --git a/doc/api/merchants.md b/legacy/doc/api/merchants.md
similarity index 100%
rename from doc/api/merchants.md
rename to legacy/doc/api/merchants.md
diff --git a/doc/api/mobile-authorization.md b/legacy/doc/api/mobile-authorization.md
similarity index 100%
rename from doc/api/mobile-authorization.md
rename to legacy/doc/api/mobile-authorization.md
diff --git a/doc/api/o-auth.md b/legacy/doc/api/o-auth.md
similarity index 100%
rename from doc/api/o-auth.md
rename to legacy/doc/api/o-auth.md
diff --git a/doc/api/order-custom-attributes.md b/legacy/doc/api/order-custom-attributes.md
similarity index 100%
rename from doc/api/order-custom-attributes.md
rename to legacy/doc/api/order-custom-attributes.md
diff --git a/doc/api/orders.md b/legacy/doc/api/orders.md
similarity index 100%
rename from doc/api/orders.md
rename to legacy/doc/api/orders.md
diff --git a/doc/api/payments.md b/legacy/doc/api/payments.md
similarity index 100%
rename from doc/api/payments.md
rename to legacy/doc/api/payments.md
diff --git a/doc/api/payouts.md b/legacy/doc/api/payouts.md
similarity index 100%
rename from doc/api/payouts.md
rename to legacy/doc/api/payouts.md
diff --git a/doc/api/refunds.md b/legacy/doc/api/refunds.md
similarity index 100%
rename from doc/api/refunds.md
rename to legacy/doc/api/refunds.md
diff --git a/doc/api/sites.md b/legacy/doc/api/sites.md
similarity index 100%
rename from doc/api/sites.md
rename to legacy/doc/api/sites.md
diff --git a/doc/api/snippets.md b/legacy/doc/api/snippets.md
similarity index 100%
rename from doc/api/snippets.md
rename to legacy/doc/api/snippets.md
diff --git a/doc/api/subscriptions.md b/legacy/doc/api/subscriptions.md
similarity index 100%
rename from doc/api/subscriptions.md
rename to legacy/doc/api/subscriptions.md
diff --git a/doc/api/team.md b/legacy/doc/api/team.md
similarity index 100%
rename from doc/api/team.md
rename to legacy/doc/api/team.md
diff --git a/doc/api/terminal.md b/legacy/doc/api/terminal.md
similarity index 100%
rename from doc/api/terminal.md
rename to legacy/doc/api/terminal.md
diff --git a/doc/api/transactions.md b/legacy/doc/api/transactions.md
similarity index 100%
rename from doc/api/transactions.md
rename to legacy/doc/api/transactions.md
diff --git a/doc/api/v1-transactions.md b/legacy/doc/api/v1-transactions.md
similarity index 100%
rename from doc/api/v1-transactions.md
rename to legacy/doc/api/v1-transactions.md
diff --git a/doc/api/vendors.md b/legacy/doc/api/vendors.md
similarity index 100%
rename from doc/api/vendors.md
rename to legacy/doc/api/vendors.md
diff --git a/doc/api/webhook-subscriptions.md b/legacy/doc/api/webhook-subscriptions.md
similarity index 100%
rename from doc/api/webhook-subscriptions.md
rename to legacy/doc/api/webhook-subscriptions.md
diff --git a/doc/auth/oauth-2-bearer-token.md b/legacy/doc/auth/oauth-2-bearer-token.md
similarity index 100%
rename from doc/auth/oauth-2-bearer-token.md
rename to legacy/doc/auth/oauth-2-bearer-token.md
diff --git a/doc/client.md b/legacy/doc/client.md
similarity index 98%
rename from doc/client.md
rename to legacy/doc/client.md
index c8fa4c1b1..82130bf5c 100644
--- a/doc/client.md
+++ b/legacy/doc/client.md
@@ -55,7 +55,7 @@ const client = new Client({
## Make Calls with the API Client
```ts
-import { ApiError, Client, Environment } from 'square';
+import { ApiError, Client, Environment } from 'square/legacy';
const client = new Client({
bearerAuthCredentials: {
diff --git a/doc/models/accept-dispute-response.md b/legacy/doc/models/accept-dispute-response.md
similarity index 100%
rename from doc/models/accept-dispute-response.md
rename to legacy/doc/models/accept-dispute-response.md
diff --git a/doc/models/accepted-payment-methods.md b/legacy/doc/models/accepted-payment-methods.md
similarity index 100%
rename from doc/models/accepted-payment-methods.md
rename to legacy/doc/models/accepted-payment-methods.md
diff --git a/doc/models/accumulate-loyalty-points-request.md b/legacy/doc/models/accumulate-loyalty-points-request.md
similarity index 100%
rename from doc/models/accumulate-loyalty-points-request.md
rename to legacy/doc/models/accumulate-loyalty-points-request.md
diff --git a/doc/models/accumulate-loyalty-points-response.md b/legacy/doc/models/accumulate-loyalty-points-response.md
similarity index 100%
rename from doc/models/accumulate-loyalty-points-response.md
rename to legacy/doc/models/accumulate-loyalty-points-response.md
diff --git a/doc/models/ach-details.md b/legacy/doc/models/ach-details.md
similarity index 100%
rename from doc/models/ach-details.md
rename to legacy/doc/models/ach-details.md
diff --git a/doc/models/action-cancel-reason.md b/legacy/doc/models/action-cancel-reason.md
similarity index 100%
rename from doc/models/action-cancel-reason.md
rename to legacy/doc/models/action-cancel-reason.md
diff --git a/doc/models/activity-type.md b/legacy/doc/models/activity-type.md
similarity index 100%
rename from doc/models/activity-type.md
rename to legacy/doc/models/activity-type.md
diff --git a/doc/models/add-group-to-customer-response.md b/legacy/doc/models/add-group-to-customer-response.md
similarity index 100%
rename from doc/models/add-group-to-customer-response.md
rename to legacy/doc/models/add-group-to-customer-response.md
diff --git a/doc/models/additional-recipient.md b/legacy/doc/models/additional-recipient.md
similarity index 100%
rename from doc/models/additional-recipient.md
rename to legacy/doc/models/additional-recipient.md
diff --git a/doc/models/address.md b/legacy/doc/models/address.md
similarity index 100%
rename from doc/models/address.md
rename to legacy/doc/models/address.md
diff --git a/doc/models/adjust-loyalty-points-request.md b/legacy/doc/models/adjust-loyalty-points-request.md
similarity index 100%
rename from doc/models/adjust-loyalty-points-request.md
rename to legacy/doc/models/adjust-loyalty-points-request.md
diff --git a/doc/models/adjust-loyalty-points-response.md b/legacy/doc/models/adjust-loyalty-points-response.md
similarity index 100%
rename from doc/models/adjust-loyalty-points-response.md
rename to legacy/doc/models/adjust-loyalty-points-response.md
diff --git a/doc/models/afterpay-details.md b/legacy/doc/models/afterpay-details.md
similarity index 100%
rename from doc/models/afterpay-details.md
rename to legacy/doc/models/afterpay-details.md
diff --git a/doc/models/application-details-external-square-product.md b/legacy/doc/models/application-details-external-square-product.md
similarity index 100%
rename from doc/models/application-details-external-square-product.md
rename to legacy/doc/models/application-details-external-square-product.md
diff --git a/doc/models/application-details.md b/legacy/doc/models/application-details.md
similarity index 100%
rename from doc/models/application-details.md
rename to legacy/doc/models/application-details.md
diff --git a/doc/models/application-type.md b/legacy/doc/models/application-type.md
similarity index 100%
rename from doc/models/application-type.md
rename to legacy/doc/models/application-type.md
diff --git a/doc/models/appointment-segment.md b/legacy/doc/models/appointment-segment.md
similarity index 100%
rename from doc/models/appointment-segment.md
rename to legacy/doc/models/appointment-segment.md
diff --git a/doc/models/archived-state.md b/legacy/doc/models/archived-state.md
similarity index 100%
rename from doc/models/archived-state.md
rename to legacy/doc/models/archived-state.md
diff --git a/doc/models/availability.md b/legacy/doc/models/availability.md
similarity index 100%
rename from doc/models/availability.md
rename to legacy/doc/models/availability.md
diff --git a/doc/models/bank-account-payment-details.md b/legacy/doc/models/bank-account-payment-details.md
similarity index 100%
rename from doc/models/bank-account-payment-details.md
rename to legacy/doc/models/bank-account-payment-details.md
diff --git a/doc/models/bank-account-status.md b/legacy/doc/models/bank-account-status.md
similarity index 100%
rename from doc/models/bank-account-status.md
rename to legacy/doc/models/bank-account-status.md
diff --git a/doc/models/bank-account-type.md b/legacy/doc/models/bank-account-type.md
similarity index 100%
rename from doc/models/bank-account-type.md
rename to legacy/doc/models/bank-account-type.md
diff --git a/doc/models/bank-account.md b/legacy/doc/models/bank-account.md
similarity index 100%
rename from doc/models/bank-account.md
rename to legacy/doc/models/bank-account.md
diff --git a/doc/models/batch-change-inventory-request.md b/legacy/doc/models/batch-change-inventory-request.md
similarity index 100%
rename from doc/models/batch-change-inventory-request.md
rename to legacy/doc/models/batch-change-inventory-request.md
diff --git a/doc/models/batch-change-inventory-response.md b/legacy/doc/models/batch-change-inventory-response.md
similarity index 100%
rename from doc/models/batch-change-inventory-response.md
rename to legacy/doc/models/batch-change-inventory-response.md
diff --git a/doc/models/batch-delete-catalog-objects-request.md b/legacy/doc/models/batch-delete-catalog-objects-request.md
similarity index 100%
rename from doc/models/batch-delete-catalog-objects-request.md
rename to legacy/doc/models/batch-delete-catalog-objects-request.md
diff --git a/doc/models/batch-delete-catalog-objects-response.md b/legacy/doc/models/batch-delete-catalog-objects-response.md
similarity index 100%
rename from doc/models/batch-delete-catalog-objects-response.md
rename to legacy/doc/models/batch-delete-catalog-objects-response.md
diff --git a/doc/models/batch-retrieve-catalog-objects-request.md b/legacy/doc/models/batch-retrieve-catalog-objects-request.md
similarity index 100%
rename from doc/models/batch-retrieve-catalog-objects-request.md
rename to legacy/doc/models/batch-retrieve-catalog-objects-request.md
diff --git a/doc/models/batch-retrieve-catalog-objects-response.md b/legacy/doc/models/batch-retrieve-catalog-objects-response.md
similarity index 100%
rename from doc/models/batch-retrieve-catalog-objects-response.md
rename to legacy/doc/models/batch-retrieve-catalog-objects-response.md
diff --git a/doc/models/batch-retrieve-inventory-changes-request.md b/legacy/doc/models/batch-retrieve-inventory-changes-request.md
similarity index 100%
rename from doc/models/batch-retrieve-inventory-changes-request.md
rename to legacy/doc/models/batch-retrieve-inventory-changes-request.md
diff --git a/doc/models/batch-retrieve-inventory-changes-response.md b/legacy/doc/models/batch-retrieve-inventory-changes-response.md
similarity index 100%
rename from doc/models/batch-retrieve-inventory-changes-response.md
rename to legacy/doc/models/batch-retrieve-inventory-changes-response.md
diff --git a/doc/models/batch-retrieve-inventory-counts-request.md b/legacy/doc/models/batch-retrieve-inventory-counts-request.md
similarity index 100%
rename from doc/models/batch-retrieve-inventory-counts-request.md
rename to legacy/doc/models/batch-retrieve-inventory-counts-request.md
diff --git a/doc/models/batch-retrieve-inventory-counts-response.md b/legacy/doc/models/batch-retrieve-inventory-counts-response.md
similarity index 100%
rename from doc/models/batch-retrieve-inventory-counts-response.md
rename to legacy/doc/models/batch-retrieve-inventory-counts-response.md
diff --git a/doc/models/batch-retrieve-orders-request.md b/legacy/doc/models/batch-retrieve-orders-request.md
similarity index 100%
rename from doc/models/batch-retrieve-orders-request.md
rename to legacy/doc/models/batch-retrieve-orders-request.md
diff --git a/doc/models/batch-retrieve-orders-response.md b/legacy/doc/models/batch-retrieve-orders-response.md
similarity index 100%
rename from doc/models/batch-retrieve-orders-response.md
rename to legacy/doc/models/batch-retrieve-orders-response.md
diff --git a/doc/models/batch-upsert-catalog-objects-request.md b/legacy/doc/models/batch-upsert-catalog-objects-request.md
similarity index 100%
rename from doc/models/batch-upsert-catalog-objects-request.md
rename to legacy/doc/models/batch-upsert-catalog-objects-request.md
diff --git a/doc/models/batch-upsert-catalog-objects-response.md b/legacy/doc/models/batch-upsert-catalog-objects-response.md
similarity index 100%
rename from doc/models/batch-upsert-catalog-objects-response.md
rename to legacy/doc/models/batch-upsert-catalog-objects-response.md
diff --git a/doc/models/booking-booking-source.md b/legacy/doc/models/booking-booking-source.md
similarity index 100%
rename from doc/models/booking-booking-source.md
rename to legacy/doc/models/booking-booking-source.md
diff --git a/doc/models/booking-creator-details-creator-type.md b/legacy/doc/models/booking-creator-details-creator-type.md
similarity index 100%
rename from doc/models/booking-creator-details-creator-type.md
rename to legacy/doc/models/booking-creator-details-creator-type.md
diff --git a/doc/models/booking-creator-details.md b/legacy/doc/models/booking-creator-details.md
similarity index 100%
rename from doc/models/booking-creator-details.md
rename to legacy/doc/models/booking-creator-details.md
diff --git a/doc/models/booking-custom-attribute-delete-request.md b/legacy/doc/models/booking-custom-attribute-delete-request.md
similarity index 100%
rename from doc/models/booking-custom-attribute-delete-request.md
rename to legacy/doc/models/booking-custom-attribute-delete-request.md
diff --git a/doc/models/booking-custom-attribute-delete-response.md b/legacy/doc/models/booking-custom-attribute-delete-response.md
similarity index 100%
rename from doc/models/booking-custom-attribute-delete-response.md
rename to legacy/doc/models/booking-custom-attribute-delete-response.md
diff --git a/doc/models/booking-custom-attribute-upsert-request.md b/legacy/doc/models/booking-custom-attribute-upsert-request.md
similarity index 100%
rename from doc/models/booking-custom-attribute-upsert-request.md
rename to legacy/doc/models/booking-custom-attribute-upsert-request.md
diff --git a/doc/models/booking-custom-attribute-upsert-response.md b/legacy/doc/models/booking-custom-attribute-upsert-response.md
similarity index 100%
rename from doc/models/booking-custom-attribute-upsert-response.md
rename to legacy/doc/models/booking-custom-attribute-upsert-response.md
diff --git a/doc/models/booking-status.md b/legacy/doc/models/booking-status.md
similarity index 100%
rename from doc/models/booking-status.md
rename to legacy/doc/models/booking-status.md
diff --git a/doc/models/booking.md b/legacy/doc/models/booking.md
similarity index 100%
rename from doc/models/booking.md
rename to legacy/doc/models/booking.md
diff --git a/doc/models/break-type.md b/legacy/doc/models/break-type.md
similarity index 100%
rename from doc/models/break-type.md
rename to legacy/doc/models/break-type.md
diff --git a/doc/models/break.md b/legacy/doc/models/break.md
similarity index 100%
rename from doc/models/break.md
rename to legacy/doc/models/break.md
diff --git a/doc/models/bulk-create-customer-data.md b/legacy/doc/models/bulk-create-customer-data.md
similarity index 100%
rename from doc/models/bulk-create-customer-data.md
rename to legacy/doc/models/bulk-create-customer-data.md
diff --git a/doc/models/bulk-create-customers-request.md b/legacy/doc/models/bulk-create-customers-request.md
similarity index 100%
rename from doc/models/bulk-create-customers-request.md
rename to legacy/doc/models/bulk-create-customers-request.md
diff --git a/doc/models/bulk-create-customers-response.md b/legacy/doc/models/bulk-create-customers-response.md
similarity index 100%
rename from doc/models/bulk-create-customers-response.md
rename to legacy/doc/models/bulk-create-customers-response.md
diff --git a/doc/models/bulk-create-team-members-request.md b/legacy/doc/models/bulk-create-team-members-request.md
similarity index 100%
rename from doc/models/bulk-create-team-members-request.md
rename to legacy/doc/models/bulk-create-team-members-request.md
diff --git a/doc/models/bulk-create-team-members-response.md b/legacy/doc/models/bulk-create-team-members-response.md
similarity index 100%
rename from doc/models/bulk-create-team-members-response.md
rename to legacy/doc/models/bulk-create-team-members-response.md
diff --git a/doc/models/bulk-create-vendors-request.md b/legacy/doc/models/bulk-create-vendors-request.md
similarity index 100%
rename from doc/models/bulk-create-vendors-request.md
rename to legacy/doc/models/bulk-create-vendors-request.md
diff --git a/doc/models/bulk-create-vendors-response.md b/legacy/doc/models/bulk-create-vendors-response.md
similarity index 100%
rename from doc/models/bulk-create-vendors-response.md
rename to legacy/doc/models/bulk-create-vendors-response.md
diff --git a/doc/models/bulk-delete-booking-custom-attributes-request.md b/legacy/doc/models/bulk-delete-booking-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-delete-booking-custom-attributes-request.md
rename to legacy/doc/models/bulk-delete-booking-custom-attributes-request.md
diff --git a/doc/models/bulk-delete-booking-custom-attributes-response.md b/legacy/doc/models/bulk-delete-booking-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-delete-booking-custom-attributes-response.md
rename to legacy/doc/models/bulk-delete-booking-custom-attributes-response.md
diff --git a/doc/models/bulk-delete-customers-request.md b/legacy/doc/models/bulk-delete-customers-request.md
similarity index 100%
rename from doc/models/bulk-delete-customers-request.md
rename to legacy/doc/models/bulk-delete-customers-request.md
diff --git a/doc/models/bulk-delete-customers-response.md b/legacy/doc/models/bulk-delete-customers-response.md
similarity index 100%
rename from doc/models/bulk-delete-customers-response.md
rename to legacy/doc/models/bulk-delete-customers-response.md
diff --git a/doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md b/legacy/doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md
similarity index 100%
rename from doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md
rename to legacy/doc/models/bulk-delete-location-custom-attributes-request-location-custom-attribute-delete-request.md
diff --git a/doc/models/bulk-delete-location-custom-attributes-request.md b/legacy/doc/models/bulk-delete-location-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-delete-location-custom-attributes-request.md
rename to legacy/doc/models/bulk-delete-location-custom-attributes-request.md
diff --git a/doc/models/bulk-delete-location-custom-attributes-response-location-custom-attribute-delete-response.md b/legacy/doc/models/bulk-delete-location-custom-attributes-response-location-custom-attribute-delete-response.md
similarity index 100%
rename from doc/models/bulk-delete-location-custom-attributes-response-location-custom-attribute-delete-response.md
rename to legacy/doc/models/bulk-delete-location-custom-attributes-response-location-custom-attribute-delete-response.md
diff --git a/doc/models/bulk-delete-location-custom-attributes-response.md b/legacy/doc/models/bulk-delete-location-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-delete-location-custom-attributes-response.md
rename to legacy/doc/models/bulk-delete-location-custom-attributes-response.md
diff --git a/doc/models/bulk-delete-merchant-custom-attributes-request-merchant-custom-attribute-delete-request.md b/legacy/doc/models/bulk-delete-merchant-custom-attributes-request-merchant-custom-attribute-delete-request.md
similarity index 100%
rename from doc/models/bulk-delete-merchant-custom-attributes-request-merchant-custom-attribute-delete-request.md
rename to legacy/doc/models/bulk-delete-merchant-custom-attributes-request-merchant-custom-attribute-delete-request.md
diff --git a/doc/models/bulk-delete-merchant-custom-attributes-request.md b/legacy/doc/models/bulk-delete-merchant-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-delete-merchant-custom-attributes-request.md
rename to legacy/doc/models/bulk-delete-merchant-custom-attributes-request.md
diff --git a/doc/models/bulk-delete-merchant-custom-attributes-response-merchant-custom-attribute-delete-response.md b/legacy/doc/models/bulk-delete-merchant-custom-attributes-response-merchant-custom-attribute-delete-response.md
similarity index 100%
rename from doc/models/bulk-delete-merchant-custom-attributes-response-merchant-custom-attribute-delete-response.md
rename to legacy/doc/models/bulk-delete-merchant-custom-attributes-response-merchant-custom-attribute-delete-response.md
diff --git a/doc/models/bulk-delete-merchant-custom-attributes-response.md b/legacy/doc/models/bulk-delete-merchant-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-delete-merchant-custom-attributes-response.md
rename to legacy/doc/models/bulk-delete-merchant-custom-attributes-response.md
diff --git a/doc/models/bulk-delete-order-custom-attributes-request-delete-custom-attribute.md b/legacy/doc/models/bulk-delete-order-custom-attributes-request-delete-custom-attribute.md
similarity index 100%
rename from doc/models/bulk-delete-order-custom-attributes-request-delete-custom-attribute.md
rename to legacy/doc/models/bulk-delete-order-custom-attributes-request-delete-custom-attribute.md
diff --git a/doc/models/bulk-delete-order-custom-attributes-request.md b/legacy/doc/models/bulk-delete-order-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-delete-order-custom-attributes-request.md
rename to legacy/doc/models/bulk-delete-order-custom-attributes-request.md
diff --git a/doc/models/bulk-delete-order-custom-attributes-response.md b/legacy/doc/models/bulk-delete-order-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-delete-order-custom-attributes-response.md
rename to legacy/doc/models/bulk-delete-order-custom-attributes-response.md
diff --git a/doc/models/bulk-retrieve-bookings-request.md b/legacy/doc/models/bulk-retrieve-bookings-request.md
similarity index 100%
rename from doc/models/bulk-retrieve-bookings-request.md
rename to legacy/doc/models/bulk-retrieve-bookings-request.md
diff --git a/doc/models/bulk-retrieve-bookings-response.md b/legacy/doc/models/bulk-retrieve-bookings-response.md
similarity index 100%
rename from doc/models/bulk-retrieve-bookings-response.md
rename to legacy/doc/models/bulk-retrieve-bookings-response.md
diff --git a/doc/models/bulk-retrieve-customers-request.md b/legacy/doc/models/bulk-retrieve-customers-request.md
similarity index 100%
rename from doc/models/bulk-retrieve-customers-request.md
rename to legacy/doc/models/bulk-retrieve-customers-request.md
diff --git a/doc/models/bulk-retrieve-customers-response.md b/legacy/doc/models/bulk-retrieve-customers-response.md
similarity index 100%
rename from doc/models/bulk-retrieve-customers-response.md
rename to legacy/doc/models/bulk-retrieve-customers-response.md
diff --git a/doc/models/bulk-retrieve-team-member-booking-profiles-request.md b/legacy/doc/models/bulk-retrieve-team-member-booking-profiles-request.md
similarity index 100%
rename from doc/models/bulk-retrieve-team-member-booking-profiles-request.md
rename to legacy/doc/models/bulk-retrieve-team-member-booking-profiles-request.md
diff --git a/doc/models/bulk-retrieve-team-member-booking-profiles-response.md b/legacy/doc/models/bulk-retrieve-team-member-booking-profiles-response.md
similarity index 100%
rename from doc/models/bulk-retrieve-team-member-booking-profiles-response.md
rename to legacy/doc/models/bulk-retrieve-team-member-booking-profiles-response.md
diff --git a/doc/models/bulk-retrieve-vendors-request.md b/legacy/doc/models/bulk-retrieve-vendors-request.md
similarity index 100%
rename from doc/models/bulk-retrieve-vendors-request.md
rename to legacy/doc/models/bulk-retrieve-vendors-request.md
diff --git a/doc/models/bulk-retrieve-vendors-response.md b/legacy/doc/models/bulk-retrieve-vendors-response.md
similarity index 100%
rename from doc/models/bulk-retrieve-vendors-response.md
rename to legacy/doc/models/bulk-retrieve-vendors-response.md
diff --git a/doc/models/bulk-swap-plan-request.md b/legacy/doc/models/bulk-swap-plan-request.md
similarity index 100%
rename from doc/models/bulk-swap-plan-request.md
rename to legacy/doc/models/bulk-swap-plan-request.md
diff --git a/doc/models/bulk-swap-plan-response.md b/legacy/doc/models/bulk-swap-plan-response.md
similarity index 100%
rename from doc/models/bulk-swap-plan-response.md
rename to legacy/doc/models/bulk-swap-plan-response.md
diff --git a/doc/models/bulk-update-customer-data.md b/legacy/doc/models/bulk-update-customer-data.md
similarity index 100%
rename from doc/models/bulk-update-customer-data.md
rename to legacy/doc/models/bulk-update-customer-data.md
diff --git a/doc/models/bulk-update-customers-request.md b/legacy/doc/models/bulk-update-customers-request.md
similarity index 100%
rename from doc/models/bulk-update-customers-request.md
rename to legacy/doc/models/bulk-update-customers-request.md
diff --git a/doc/models/bulk-update-customers-response.md b/legacy/doc/models/bulk-update-customers-response.md
similarity index 100%
rename from doc/models/bulk-update-customers-response.md
rename to legacy/doc/models/bulk-update-customers-response.md
diff --git a/doc/models/bulk-update-team-members-request.md b/legacy/doc/models/bulk-update-team-members-request.md
similarity index 100%
rename from doc/models/bulk-update-team-members-request.md
rename to legacy/doc/models/bulk-update-team-members-request.md
diff --git a/doc/models/bulk-update-team-members-response.md b/legacy/doc/models/bulk-update-team-members-response.md
similarity index 100%
rename from doc/models/bulk-update-team-members-response.md
rename to legacy/doc/models/bulk-update-team-members-response.md
diff --git a/doc/models/bulk-update-vendors-request.md b/legacy/doc/models/bulk-update-vendors-request.md
similarity index 100%
rename from doc/models/bulk-update-vendors-request.md
rename to legacy/doc/models/bulk-update-vendors-request.md
diff --git a/doc/models/bulk-update-vendors-response.md b/legacy/doc/models/bulk-update-vendors-response.md
similarity index 100%
rename from doc/models/bulk-update-vendors-response.md
rename to legacy/doc/models/bulk-update-vendors-response.md
diff --git a/doc/models/bulk-upsert-booking-custom-attributes-request.md b/legacy/doc/models/bulk-upsert-booking-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-upsert-booking-custom-attributes-request.md
rename to legacy/doc/models/bulk-upsert-booking-custom-attributes-request.md
diff --git a/doc/models/bulk-upsert-booking-custom-attributes-response.md b/legacy/doc/models/bulk-upsert-booking-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-upsert-booking-custom-attributes-response.md
rename to legacy/doc/models/bulk-upsert-booking-custom-attributes-response.md
diff --git a/doc/models/bulk-upsert-customer-custom-attributes-request-customer-custom-attribute-upsert-request.md b/legacy/doc/models/bulk-upsert-customer-custom-attributes-request-customer-custom-attribute-upsert-request.md
similarity index 100%
rename from doc/models/bulk-upsert-customer-custom-attributes-request-customer-custom-attribute-upsert-request.md
rename to legacy/doc/models/bulk-upsert-customer-custom-attributes-request-customer-custom-attribute-upsert-request.md
diff --git a/doc/models/bulk-upsert-customer-custom-attributes-request.md b/legacy/doc/models/bulk-upsert-customer-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-upsert-customer-custom-attributes-request.md
rename to legacy/doc/models/bulk-upsert-customer-custom-attributes-request.md
diff --git a/doc/models/bulk-upsert-customer-custom-attributes-response-customer-custom-attribute-upsert-response.md b/legacy/doc/models/bulk-upsert-customer-custom-attributes-response-customer-custom-attribute-upsert-response.md
similarity index 100%
rename from doc/models/bulk-upsert-customer-custom-attributes-response-customer-custom-attribute-upsert-response.md
rename to legacy/doc/models/bulk-upsert-customer-custom-attributes-response-customer-custom-attribute-upsert-response.md
diff --git a/doc/models/bulk-upsert-customer-custom-attributes-response.md b/legacy/doc/models/bulk-upsert-customer-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-upsert-customer-custom-attributes-response.md
rename to legacy/doc/models/bulk-upsert-customer-custom-attributes-response.md
diff --git a/doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md b/legacy/doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md
similarity index 100%
rename from doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md
rename to legacy/doc/models/bulk-upsert-location-custom-attributes-request-location-custom-attribute-upsert-request.md
diff --git a/doc/models/bulk-upsert-location-custom-attributes-request.md b/legacy/doc/models/bulk-upsert-location-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-upsert-location-custom-attributes-request.md
rename to legacy/doc/models/bulk-upsert-location-custom-attributes-request.md
diff --git a/doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md b/legacy/doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md
similarity index 100%
rename from doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md
rename to legacy/doc/models/bulk-upsert-location-custom-attributes-response-location-custom-attribute-upsert-response.md
diff --git a/doc/models/bulk-upsert-location-custom-attributes-response.md b/legacy/doc/models/bulk-upsert-location-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-upsert-location-custom-attributes-response.md
rename to legacy/doc/models/bulk-upsert-location-custom-attributes-response.md
diff --git a/doc/models/bulk-upsert-merchant-custom-attributes-request-merchant-custom-attribute-upsert-request.md b/legacy/doc/models/bulk-upsert-merchant-custom-attributes-request-merchant-custom-attribute-upsert-request.md
similarity index 100%
rename from doc/models/bulk-upsert-merchant-custom-attributes-request-merchant-custom-attribute-upsert-request.md
rename to legacy/doc/models/bulk-upsert-merchant-custom-attributes-request-merchant-custom-attribute-upsert-request.md
diff --git a/doc/models/bulk-upsert-merchant-custom-attributes-request.md b/legacy/doc/models/bulk-upsert-merchant-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-upsert-merchant-custom-attributes-request.md
rename to legacy/doc/models/bulk-upsert-merchant-custom-attributes-request.md
diff --git a/doc/models/bulk-upsert-merchant-custom-attributes-response-merchant-custom-attribute-upsert-response.md b/legacy/doc/models/bulk-upsert-merchant-custom-attributes-response-merchant-custom-attribute-upsert-response.md
similarity index 100%
rename from doc/models/bulk-upsert-merchant-custom-attributes-response-merchant-custom-attribute-upsert-response.md
rename to legacy/doc/models/bulk-upsert-merchant-custom-attributes-response-merchant-custom-attribute-upsert-response.md
diff --git a/doc/models/bulk-upsert-merchant-custom-attributes-response.md b/legacy/doc/models/bulk-upsert-merchant-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-upsert-merchant-custom-attributes-response.md
rename to legacy/doc/models/bulk-upsert-merchant-custom-attributes-response.md
diff --git a/doc/models/bulk-upsert-order-custom-attributes-request-upsert-custom-attribute.md b/legacy/doc/models/bulk-upsert-order-custom-attributes-request-upsert-custom-attribute.md
similarity index 100%
rename from doc/models/bulk-upsert-order-custom-attributes-request-upsert-custom-attribute.md
rename to legacy/doc/models/bulk-upsert-order-custom-attributes-request-upsert-custom-attribute.md
diff --git a/doc/models/bulk-upsert-order-custom-attributes-request.md b/legacy/doc/models/bulk-upsert-order-custom-attributes-request.md
similarity index 100%
rename from doc/models/bulk-upsert-order-custom-attributes-request.md
rename to legacy/doc/models/bulk-upsert-order-custom-attributes-request.md
diff --git a/doc/models/bulk-upsert-order-custom-attributes-response.md b/legacy/doc/models/bulk-upsert-order-custom-attributes-response.md
similarity index 100%
rename from doc/models/bulk-upsert-order-custom-attributes-response.md
rename to legacy/doc/models/bulk-upsert-order-custom-attributes-response.md
diff --git a/doc/models/business-appointment-settings-alignment-time.md b/legacy/doc/models/business-appointment-settings-alignment-time.md
similarity index 100%
rename from doc/models/business-appointment-settings-alignment-time.md
rename to legacy/doc/models/business-appointment-settings-alignment-time.md
diff --git a/doc/models/business-appointment-settings-booking-location-type.md b/legacy/doc/models/business-appointment-settings-booking-location-type.md
similarity index 100%
rename from doc/models/business-appointment-settings-booking-location-type.md
rename to legacy/doc/models/business-appointment-settings-booking-location-type.md
diff --git a/doc/models/business-appointment-settings-cancellation-policy.md b/legacy/doc/models/business-appointment-settings-cancellation-policy.md
similarity index 100%
rename from doc/models/business-appointment-settings-cancellation-policy.md
rename to legacy/doc/models/business-appointment-settings-cancellation-policy.md
diff --git a/doc/models/business-appointment-settings-max-appointments-per-day-limit-type.md b/legacy/doc/models/business-appointment-settings-max-appointments-per-day-limit-type.md
similarity index 100%
rename from doc/models/business-appointment-settings-max-appointments-per-day-limit-type.md
rename to legacy/doc/models/business-appointment-settings-max-appointments-per-day-limit-type.md
diff --git a/doc/models/business-appointment-settings.md b/legacy/doc/models/business-appointment-settings.md
similarity index 100%
rename from doc/models/business-appointment-settings.md
rename to legacy/doc/models/business-appointment-settings.md
diff --git a/doc/models/business-booking-profile-booking-policy.md b/legacy/doc/models/business-booking-profile-booking-policy.md
similarity index 100%
rename from doc/models/business-booking-profile-booking-policy.md
rename to legacy/doc/models/business-booking-profile-booking-policy.md
diff --git a/doc/models/business-booking-profile-customer-timezone-choice.md b/legacy/doc/models/business-booking-profile-customer-timezone-choice.md
similarity index 100%
rename from doc/models/business-booking-profile-customer-timezone-choice.md
rename to legacy/doc/models/business-booking-profile-customer-timezone-choice.md
diff --git a/doc/models/business-booking-profile.md b/legacy/doc/models/business-booking-profile.md
similarity index 100%
rename from doc/models/business-booking-profile.md
rename to legacy/doc/models/business-booking-profile.md
diff --git a/doc/models/business-hours-period.md b/legacy/doc/models/business-hours-period.md
similarity index 100%
rename from doc/models/business-hours-period.md
rename to legacy/doc/models/business-hours-period.md
diff --git a/doc/models/business-hours.md b/legacy/doc/models/business-hours.md
similarity index 100%
rename from doc/models/business-hours.md
rename to legacy/doc/models/business-hours.md
diff --git a/doc/models/buy-now-pay-later-details.md b/legacy/doc/models/buy-now-pay-later-details.md
similarity index 100%
rename from doc/models/buy-now-pay-later-details.md
rename to legacy/doc/models/buy-now-pay-later-details.md
diff --git a/doc/models/calculate-loyalty-points-request.md b/legacy/doc/models/calculate-loyalty-points-request.md
similarity index 100%
rename from doc/models/calculate-loyalty-points-request.md
rename to legacy/doc/models/calculate-loyalty-points-request.md
diff --git a/doc/models/calculate-loyalty-points-response.md b/legacy/doc/models/calculate-loyalty-points-response.md
similarity index 100%
rename from doc/models/calculate-loyalty-points-response.md
rename to legacy/doc/models/calculate-loyalty-points-response.md
diff --git a/doc/models/calculate-order-request.md b/legacy/doc/models/calculate-order-request.md
similarity index 100%
rename from doc/models/calculate-order-request.md
rename to legacy/doc/models/calculate-order-request.md
diff --git a/doc/models/calculate-order-response.md b/legacy/doc/models/calculate-order-response.md
similarity index 100%
rename from doc/models/calculate-order-response.md
rename to legacy/doc/models/calculate-order-response.md
diff --git a/doc/models/cancel-booking-request.md b/legacy/doc/models/cancel-booking-request.md
similarity index 100%
rename from doc/models/cancel-booking-request.md
rename to legacy/doc/models/cancel-booking-request.md
diff --git a/doc/models/cancel-booking-response.md b/legacy/doc/models/cancel-booking-response.md
similarity index 100%
rename from doc/models/cancel-booking-response.md
rename to legacy/doc/models/cancel-booking-response.md
diff --git a/doc/models/cancel-invoice-request.md b/legacy/doc/models/cancel-invoice-request.md
similarity index 100%
rename from doc/models/cancel-invoice-request.md
rename to legacy/doc/models/cancel-invoice-request.md
diff --git a/doc/models/cancel-invoice-response.md b/legacy/doc/models/cancel-invoice-response.md
similarity index 100%
rename from doc/models/cancel-invoice-response.md
rename to legacy/doc/models/cancel-invoice-response.md
diff --git a/doc/models/cancel-loyalty-promotion-response.md b/legacy/doc/models/cancel-loyalty-promotion-response.md
similarity index 100%
rename from doc/models/cancel-loyalty-promotion-response.md
rename to legacy/doc/models/cancel-loyalty-promotion-response.md
diff --git a/doc/models/cancel-payment-by-idempotency-key-request.md b/legacy/doc/models/cancel-payment-by-idempotency-key-request.md
similarity index 100%
rename from doc/models/cancel-payment-by-idempotency-key-request.md
rename to legacy/doc/models/cancel-payment-by-idempotency-key-request.md
diff --git a/doc/models/cancel-payment-by-idempotency-key-response.md b/legacy/doc/models/cancel-payment-by-idempotency-key-response.md
similarity index 100%
rename from doc/models/cancel-payment-by-idempotency-key-response.md
rename to legacy/doc/models/cancel-payment-by-idempotency-key-response.md
diff --git a/doc/models/cancel-payment-response.md b/legacy/doc/models/cancel-payment-response.md
similarity index 100%
rename from doc/models/cancel-payment-response.md
rename to legacy/doc/models/cancel-payment-response.md
diff --git a/doc/models/cancel-subscription-response.md b/legacy/doc/models/cancel-subscription-response.md
similarity index 100%
rename from doc/models/cancel-subscription-response.md
rename to legacy/doc/models/cancel-subscription-response.md
diff --git a/doc/models/cancel-terminal-action-response.md b/legacy/doc/models/cancel-terminal-action-response.md
similarity index 100%
rename from doc/models/cancel-terminal-action-response.md
rename to legacy/doc/models/cancel-terminal-action-response.md
diff --git a/doc/models/cancel-terminal-checkout-response.md b/legacy/doc/models/cancel-terminal-checkout-response.md
similarity index 100%
rename from doc/models/cancel-terminal-checkout-response.md
rename to legacy/doc/models/cancel-terminal-checkout-response.md
diff --git a/doc/models/cancel-terminal-refund-response.md b/legacy/doc/models/cancel-terminal-refund-response.md
similarity index 100%
rename from doc/models/cancel-terminal-refund-response.md
rename to legacy/doc/models/cancel-terminal-refund-response.md
diff --git a/doc/models/capture-transaction-response.md b/legacy/doc/models/capture-transaction-response.md
similarity index 100%
rename from doc/models/capture-transaction-response.md
rename to legacy/doc/models/capture-transaction-response.md
diff --git a/doc/models/card-brand.md b/legacy/doc/models/card-brand.md
similarity index 100%
rename from doc/models/card-brand.md
rename to legacy/doc/models/card-brand.md
diff --git a/doc/models/card-co-brand.md b/legacy/doc/models/card-co-brand.md
similarity index 100%
rename from doc/models/card-co-brand.md
rename to legacy/doc/models/card-co-brand.md
diff --git a/doc/models/card-payment-details.md b/legacy/doc/models/card-payment-details.md
similarity index 100%
rename from doc/models/card-payment-details.md
rename to legacy/doc/models/card-payment-details.md
diff --git a/doc/models/card-payment-timeline.md b/legacy/doc/models/card-payment-timeline.md
similarity index 100%
rename from doc/models/card-payment-timeline.md
rename to legacy/doc/models/card-payment-timeline.md
diff --git a/doc/models/card-prepaid-type.md b/legacy/doc/models/card-prepaid-type.md
similarity index 100%
rename from doc/models/card-prepaid-type.md
rename to legacy/doc/models/card-prepaid-type.md
diff --git a/doc/models/card-type.md b/legacy/doc/models/card-type.md
similarity index 100%
rename from doc/models/card-type.md
rename to legacy/doc/models/card-type.md
diff --git a/doc/models/card.md b/legacy/doc/models/card.md
similarity index 100%
rename from doc/models/card.md
rename to legacy/doc/models/card.md
diff --git a/doc/models/cash-app-details.md b/legacy/doc/models/cash-app-details.md
similarity index 100%
rename from doc/models/cash-app-details.md
rename to legacy/doc/models/cash-app-details.md
diff --git a/doc/models/cash-drawer-device.md b/legacy/doc/models/cash-drawer-device.md
similarity index 100%
rename from doc/models/cash-drawer-device.md
rename to legacy/doc/models/cash-drawer-device.md
diff --git a/doc/models/cash-drawer-event-type.md b/legacy/doc/models/cash-drawer-event-type.md
similarity index 100%
rename from doc/models/cash-drawer-event-type.md
rename to legacy/doc/models/cash-drawer-event-type.md
diff --git a/doc/models/cash-drawer-shift-event.md b/legacy/doc/models/cash-drawer-shift-event.md
similarity index 100%
rename from doc/models/cash-drawer-shift-event.md
rename to legacy/doc/models/cash-drawer-shift-event.md
diff --git a/doc/models/cash-drawer-shift-state.md b/legacy/doc/models/cash-drawer-shift-state.md
similarity index 100%
rename from doc/models/cash-drawer-shift-state.md
rename to legacy/doc/models/cash-drawer-shift-state.md
diff --git a/doc/models/cash-drawer-shift-summary.md b/legacy/doc/models/cash-drawer-shift-summary.md
similarity index 100%
rename from doc/models/cash-drawer-shift-summary.md
rename to legacy/doc/models/cash-drawer-shift-summary.md
diff --git a/doc/models/cash-drawer-shift.md b/legacy/doc/models/cash-drawer-shift.md
similarity index 100%
rename from doc/models/cash-drawer-shift.md
rename to legacy/doc/models/cash-drawer-shift.md
diff --git a/doc/models/cash-payment-details.md b/legacy/doc/models/cash-payment-details.md
similarity index 100%
rename from doc/models/cash-payment-details.md
rename to legacy/doc/models/cash-payment-details.md
diff --git a/doc/models/catalog-availability-period.md b/legacy/doc/models/catalog-availability-period.md
similarity index 100%
rename from doc/models/catalog-availability-period.md
rename to legacy/doc/models/catalog-availability-period.md
diff --git a/doc/models/catalog-category-type.md b/legacy/doc/models/catalog-category-type.md
similarity index 100%
rename from doc/models/catalog-category-type.md
rename to legacy/doc/models/catalog-category-type.md
diff --git a/doc/models/catalog-category.md b/legacy/doc/models/catalog-category.md
similarity index 100%
rename from doc/models/catalog-category.md
rename to legacy/doc/models/catalog-category.md
diff --git a/doc/models/catalog-custom-attribute-definition-app-visibility.md b/legacy/doc/models/catalog-custom-attribute-definition-app-visibility.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-definition-app-visibility.md
rename to legacy/doc/models/catalog-custom-attribute-definition-app-visibility.md
diff --git a/doc/models/catalog-custom-attribute-definition-number-config.md b/legacy/doc/models/catalog-custom-attribute-definition-number-config.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-definition-number-config.md
rename to legacy/doc/models/catalog-custom-attribute-definition-number-config.md
diff --git a/doc/models/catalog-custom-attribute-definition-selection-config-custom-attribute-selection.md b/legacy/doc/models/catalog-custom-attribute-definition-selection-config-custom-attribute-selection.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-definition-selection-config-custom-attribute-selection.md
rename to legacy/doc/models/catalog-custom-attribute-definition-selection-config-custom-attribute-selection.md
diff --git a/doc/models/catalog-custom-attribute-definition-selection-config.md b/legacy/doc/models/catalog-custom-attribute-definition-selection-config.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-definition-selection-config.md
rename to legacy/doc/models/catalog-custom-attribute-definition-selection-config.md
diff --git a/doc/models/catalog-custom-attribute-definition-seller-visibility.md b/legacy/doc/models/catalog-custom-attribute-definition-seller-visibility.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-definition-seller-visibility.md
rename to legacy/doc/models/catalog-custom-attribute-definition-seller-visibility.md
diff --git a/doc/models/catalog-custom-attribute-definition-string-config.md b/legacy/doc/models/catalog-custom-attribute-definition-string-config.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-definition-string-config.md
rename to legacy/doc/models/catalog-custom-attribute-definition-string-config.md
diff --git a/doc/models/catalog-custom-attribute-definition-type.md b/legacy/doc/models/catalog-custom-attribute-definition-type.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-definition-type.md
rename to legacy/doc/models/catalog-custom-attribute-definition-type.md
diff --git a/doc/models/catalog-custom-attribute-definition.md b/legacy/doc/models/catalog-custom-attribute-definition.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-definition.md
rename to legacy/doc/models/catalog-custom-attribute-definition.md
diff --git a/doc/models/catalog-custom-attribute-value.md b/legacy/doc/models/catalog-custom-attribute-value.md
similarity index 100%
rename from doc/models/catalog-custom-attribute-value.md
rename to legacy/doc/models/catalog-custom-attribute-value.md
diff --git a/doc/models/catalog-discount-modify-tax-basis.md b/legacy/doc/models/catalog-discount-modify-tax-basis.md
similarity index 100%
rename from doc/models/catalog-discount-modify-tax-basis.md
rename to legacy/doc/models/catalog-discount-modify-tax-basis.md
diff --git a/doc/models/catalog-discount-type.md b/legacy/doc/models/catalog-discount-type.md
similarity index 100%
rename from doc/models/catalog-discount-type.md
rename to legacy/doc/models/catalog-discount-type.md
diff --git a/doc/models/catalog-discount.md b/legacy/doc/models/catalog-discount.md
similarity index 100%
rename from doc/models/catalog-discount.md
rename to legacy/doc/models/catalog-discount.md
diff --git a/doc/models/catalog-ecom-seo-data.md b/legacy/doc/models/catalog-ecom-seo-data.md
similarity index 100%
rename from doc/models/catalog-ecom-seo-data.md
rename to legacy/doc/models/catalog-ecom-seo-data.md
diff --git a/doc/models/catalog-id-mapping.md b/legacy/doc/models/catalog-id-mapping.md
similarity index 100%
rename from doc/models/catalog-id-mapping.md
rename to legacy/doc/models/catalog-id-mapping.md
diff --git a/doc/models/catalog-image.md b/legacy/doc/models/catalog-image.md
similarity index 100%
rename from doc/models/catalog-image.md
rename to legacy/doc/models/catalog-image.md
diff --git a/doc/models/catalog-info-response-limits.md b/legacy/doc/models/catalog-info-response-limits.md
similarity index 100%
rename from doc/models/catalog-info-response-limits.md
rename to legacy/doc/models/catalog-info-response-limits.md
diff --git a/doc/models/catalog-info-response.md b/legacy/doc/models/catalog-info-response.md
similarity index 100%
rename from doc/models/catalog-info-response.md
rename to legacy/doc/models/catalog-info-response.md
diff --git a/doc/models/catalog-item-food-and-beverage-details-dietary-preference-standard-dietary-preference.md b/legacy/doc/models/catalog-item-food-and-beverage-details-dietary-preference-standard-dietary-preference.md
similarity index 100%
rename from doc/models/catalog-item-food-and-beverage-details-dietary-preference-standard-dietary-preference.md
rename to legacy/doc/models/catalog-item-food-and-beverage-details-dietary-preference-standard-dietary-preference.md
diff --git a/doc/models/catalog-item-food-and-beverage-details-dietary-preference-type.md b/legacy/doc/models/catalog-item-food-and-beverage-details-dietary-preference-type.md
similarity index 100%
rename from doc/models/catalog-item-food-and-beverage-details-dietary-preference-type.md
rename to legacy/doc/models/catalog-item-food-and-beverage-details-dietary-preference-type.md
diff --git a/doc/models/catalog-item-food-and-beverage-details-dietary-preference.md b/legacy/doc/models/catalog-item-food-and-beverage-details-dietary-preference.md
similarity index 100%
rename from doc/models/catalog-item-food-and-beverage-details-dietary-preference.md
rename to legacy/doc/models/catalog-item-food-and-beverage-details-dietary-preference.md
diff --git a/doc/models/catalog-item-food-and-beverage-details-ingredient-standard-ingredient.md b/legacy/doc/models/catalog-item-food-and-beverage-details-ingredient-standard-ingredient.md
similarity index 100%
rename from doc/models/catalog-item-food-and-beverage-details-ingredient-standard-ingredient.md
rename to legacy/doc/models/catalog-item-food-and-beverage-details-ingredient-standard-ingredient.md
diff --git a/doc/models/catalog-item-food-and-beverage-details-ingredient.md b/legacy/doc/models/catalog-item-food-and-beverage-details-ingredient.md
similarity index 100%
rename from doc/models/catalog-item-food-and-beverage-details-ingredient.md
rename to legacy/doc/models/catalog-item-food-and-beverage-details-ingredient.md
diff --git a/doc/models/catalog-item-food-and-beverage-details.md b/legacy/doc/models/catalog-item-food-and-beverage-details.md
similarity index 100%
rename from doc/models/catalog-item-food-and-beverage-details.md
rename to legacy/doc/models/catalog-item-food-and-beverage-details.md
diff --git a/doc/models/catalog-item-modifier-list-info.md b/legacy/doc/models/catalog-item-modifier-list-info.md
similarity index 100%
rename from doc/models/catalog-item-modifier-list-info.md
rename to legacy/doc/models/catalog-item-modifier-list-info.md
diff --git a/doc/models/catalog-item-option-for-item.md b/legacy/doc/models/catalog-item-option-for-item.md
similarity index 100%
rename from doc/models/catalog-item-option-for-item.md
rename to legacy/doc/models/catalog-item-option-for-item.md
diff --git a/doc/models/catalog-item-option-value-for-item-variation.md b/legacy/doc/models/catalog-item-option-value-for-item-variation.md
similarity index 100%
rename from doc/models/catalog-item-option-value-for-item-variation.md
rename to legacy/doc/models/catalog-item-option-value-for-item-variation.md
diff --git a/doc/models/catalog-item-option-value.md b/legacy/doc/models/catalog-item-option-value.md
similarity index 100%
rename from doc/models/catalog-item-option-value.md
rename to legacy/doc/models/catalog-item-option-value.md
diff --git a/doc/models/catalog-item-option.md b/legacy/doc/models/catalog-item-option.md
similarity index 100%
rename from doc/models/catalog-item-option.md
rename to legacy/doc/models/catalog-item-option.md
diff --git a/doc/models/catalog-item-product-type.md b/legacy/doc/models/catalog-item-product-type.md
similarity index 100%
rename from doc/models/catalog-item-product-type.md
rename to legacy/doc/models/catalog-item-product-type.md
diff --git a/doc/models/catalog-item-variation.md b/legacy/doc/models/catalog-item-variation.md
similarity index 100%
rename from doc/models/catalog-item-variation.md
rename to legacy/doc/models/catalog-item-variation.md
diff --git a/doc/models/catalog-item.md b/legacy/doc/models/catalog-item.md
similarity index 100%
rename from doc/models/catalog-item.md
rename to legacy/doc/models/catalog-item.md
diff --git a/doc/models/catalog-measurement-unit.md b/legacy/doc/models/catalog-measurement-unit.md
similarity index 100%
rename from doc/models/catalog-measurement-unit.md
rename to legacy/doc/models/catalog-measurement-unit.md
diff --git a/doc/models/catalog-modifier-list-modifier-type.md b/legacy/doc/models/catalog-modifier-list-modifier-type.md
similarity index 100%
rename from doc/models/catalog-modifier-list-modifier-type.md
rename to legacy/doc/models/catalog-modifier-list-modifier-type.md
diff --git a/doc/models/catalog-modifier-list-selection-type.md b/legacy/doc/models/catalog-modifier-list-selection-type.md
similarity index 100%
rename from doc/models/catalog-modifier-list-selection-type.md
rename to legacy/doc/models/catalog-modifier-list-selection-type.md
diff --git a/doc/models/catalog-modifier-list.md b/legacy/doc/models/catalog-modifier-list.md
similarity index 100%
rename from doc/models/catalog-modifier-list.md
rename to legacy/doc/models/catalog-modifier-list.md
diff --git a/doc/models/catalog-modifier-override.md b/legacy/doc/models/catalog-modifier-override.md
similarity index 100%
rename from doc/models/catalog-modifier-override.md
rename to legacy/doc/models/catalog-modifier-override.md
diff --git a/doc/models/catalog-modifier.md b/legacy/doc/models/catalog-modifier.md
similarity index 100%
rename from doc/models/catalog-modifier.md
rename to legacy/doc/models/catalog-modifier.md
diff --git a/doc/models/catalog-object-batch.md b/legacy/doc/models/catalog-object-batch.md
similarity index 100%
rename from doc/models/catalog-object-batch.md
rename to legacy/doc/models/catalog-object-batch.md
diff --git a/doc/models/catalog-object-category.md b/legacy/doc/models/catalog-object-category.md
similarity index 100%
rename from doc/models/catalog-object-category.md
rename to legacy/doc/models/catalog-object-category.md
diff --git a/doc/models/catalog-object-reference.md b/legacy/doc/models/catalog-object-reference.md
similarity index 100%
rename from doc/models/catalog-object-reference.md
rename to legacy/doc/models/catalog-object-reference.md
diff --git a/doc/models/catalog-object-type.md b/legacy/doc/models/catalog-object-type.md
similarity index 100%
rename from doc/models/catalog-object-type.md
rename to legacy/doc/models/catalog-object-type.md
diff --git a/doc/models/catalog-object.md b/legacy/doc/models/catalog-object.md
similarity index 100%
rename from doc/models/catalog-object.md
rename to legacy/doc/models/catalog-object.md
diff --git a/doc/models/catalog-pricing-rule.md b/legacy/doc/models/catalog-pricing-rule.md
similarity index 100%
rename from doc/models/catalog-pricing-rule.md
rename to legacy/doc/models/catalog-pricing-rule.md
diff --git a/doc/models/catalog-pricing-type.md b/legacy/doc/models/catalog-pricing-type.md
similarity index 100%
rename from doc/models/catalog-pricing-type.md
rename to legacy/doc/models/catalog-pricing-type.md
diff --git a/doc/models/catalog-product-set.md b/legacy/doc/models/catalog-product-set.md
similarity index 100%
rename from doc/models/catalog-product-set.md
rename to legacy/doc/models/catalog-product-set.md
diff --git a/doc/models/catalog-query-exact.md b/legacy/doc/models/catalog-query-exact.md
similarity index 100%
rename from doc/models/catalog-query-exact.md
rename to legacy/doc/models/catalog-query-exact.md
diff --git a/doc/models/catalog-query-item-variations-for-item-option-values.md b/legacy/doc/models/catalog-query-item-variations-for-item-option-values.md
similarity index 100%
rename from doc/models/catalog-query-item-variations-for-item-option-values.md
rename to legacy/doc/models/catalog-query-item-variations-for-item-option-values.md
diff --git a/doc/models/catalog-query-items-for-item-options.md b/legacy/doc/models/catalog-query-items-for-item-options.md
similarity index 100%
rename from doc/models/catalog-query-items-for-item-options.md
rename to legacy/doc/models/catalog-query-items-for-item-options.md
diff --git a/doc/models/catalog-query-items-for-modifier-list.md b/legacy/doc/models/catalog-query-items-for-modifier-list.md
similarity index 100%
rename from doc/models/catalog-query-items-for-modifier-list.md
rename to legacy/doc/models/catalog-query-items-for-modifier-list.md
diff --git a/doc/models/catalog-query-items-for-tax.md b/legacy/doc/models/catalog-query-items-for-tax.md
similarity index 100%
rename from doc/models/catalog-query-items-for-tax.md
rename to legacy/doc/models/catalog-query-items-for-tax.md
diff --git a/doc/models/catalog-query-prefix.md b/legacy/doc/models/catalog-query-prefix.md
similarity index 100%
rename from doc/models/catalog-query-prefix.md
rename to legacy/doc/models/catalog-query-prefix.md
diff --git a/doc/models/catalog-query-range.md b/legacy/doc/models/catalog-query-range.md
similarity index 100%
rename from doc/models/catalog-query-range.md
rename to legacy/doc/models/catalog-query-range.md
diff --git a/doc/models/catalog-query-set.md b/legacy/doc/models/catalog-query-set.md
similarity index 100%
rename from doc/models/catalog-query-set.md
rename to legacy/doc/models/catalog-query-set.md
diff --git a/doc/models/catalog-query-sorted-attribute.md b/legacy/doc/models/catalog-query-sorted-attribute.md
similarity index 100%
rename from doc/models/catalog-query-sorted-attribute.md
rename to legacy/doc/models/catalog-query-sorted-attribute.md
diff --git a/doc/models/catalog-query-text.md b/legacy/doc/models/catalog-query-text.md
similarity index 100%
rename from doc/models/catalog-query-text.md
rename to legacy/doc/models/catalog-query-text.md
diff --git a/doc/models/catalog-query.md b/legacy/doc/models/catalog-query.md
similarity index 100%
rename from doc/models/catalog-query.md
rename to legacy/doc/models/catalog-query.md
diff --git a/doc/models/catalog-quick-amount-type.md b/legacy/doc/models/catalog-quick-amount-type.md
similarity index 100%
rename from doc/models/catalog-quick-amount-type.md
rename to legacy/doc/models/catalog-quick-amount-type.md
diff --git a/doc/models/catalog-quick-amount.md b/legacy/doc/models/catalog-quick-amount.md
similarity index 100%
rename from doc/models/catalog-quick-amount.md
rename to legacy/doc/models/catalog-quick-amount.md
diff --git a/doc/models/catalog-quick-amounts-settings-option.md b/legacy/doc/models/catalog-quick-amounts-settings-option.md
similarity index 100%
rename from doc/models/catalog-quick-amounts-settings-option.md
rename to legacy/doc/models/catalog-quick-amounts-settings-option.md
diff --git a/doc/models/catalog-quick-amounts-settings.md b/legacy/doc/models/catalog-quick-amounts-settings.md
similarity index 100%
rename from doc/models/catalog-quick-amounts-settings.md
rename to legacy/doc/models/catalog-quick-amounts-settings.md
diff --git a/doc/models/catalog-stock-conversion.md b/legacy/doc/models/catalog-stock-conversion.md
similarity index 100%
rename from doc/models/catalog-stock-conversion.md
rename to legacy/doc/models/catalog-stock-conversion.md
diff --git a/doc/models/catalog-subscription-plan-variation.md b/legacy/doc/models/catalog-subscription-plan-variation.md
similarity index 100%
rename from doc/models/catalog-subscription-plan-variation.md
rename to legacy/doc/models/catalog-subscription-plan-variation.md
diff --git a/doc/models/catalog-subscription-plan.md b/legacy/doc/models/catalog-subscription-plan.md
similarity index 100%
rename from doc/models/catalog-subscription-plan.md
rename to legacy/doc/models/catalog-subscription-plan.md
diff --git a/doc/models/catalog-tax.md b/legacy/doc/models/catalog-tax.md
similarity index 100%
rename from doc/models/catalog-tax.md
rename to legacy/doc/models/catalog-tax.md
diff --git a/doc/models/catalog-time-period.md b/legacy/doc/models/catalog-time-period.md
similarity index 100%
rename from doc/models/catalog-time-period.md
rename to legacy/doc/models/catalog-time-period.md
diff --git a/doc/models/catalog-v1-id.md b/legacy/doc/models/catalog-v1-id.md
similarity index 100%
rename from doc/models/catalog-v1-id.md
rename to legacy/doc/models/catalog-v1-id.md
diff --git a/doc/models/category-path-to-root-node.md b/legacy/doc/models/category-path-to-root-node.md
similarity index 100%
rename from doc/models/category-path-to-root-node.md
rename to legacy/doc/models/category-path-to-root-node.md
diff --git a/doc/models/change-billing-anchor-date-request.md b/legacy/doc/models/change-billing-anchor-date-request.md
similarity index 100%
rename from doc/models/change-billing-anchor-date-request.md
rename to legacy/doc/models/change-billing-anchor-date-request.md
diff --git a/doc/models/change-billing-anchor-date-response.md b/legacy/doc/models/change-billing-anchor-date-response.md
similarity index 100%
rename from doc/models/change-billing-anchor-date-response.md
rename to legacy/doc/models/change-billing-anchor-date-response.md
diff --git a/doc/models/change-timing.md b/legacy/doc/models/change-timing.md
similarity index 100%
rename from doc/models/change-timing.md
rename to legacy/doc/models/change-timing.md
diff --git a/doc/models/charge-request-additional-recipient.md b/legacy/doc/models/charge-request-additional-recipient.md
similarity index 100%
rename from doc/models/charge-request-additional-recipient.md
rename to legacy/doc/models/charge-request-additional-recipient.md
diff --git a/doc/models/charge-request.md b/legacy/doc/models/charge-request.md
similarity index 100%
rename from doc/models/charge-request.md
rename to legacy/doc/models/charge-request.md
diff --git a/doc/models/charge-response.md b/legacy/doc/models/charge-response.md
similarity index 100%
rename from doc/models/charge-response.md
rename to legacy/doc/models/charge-response.md
diff --git a/doc/models/checkout-location-settings-branding-button-shape.md b/legacy/doc/models/checkout-location-settings-branding-button-shape.md
similarity index 100%
rename from doc/models/checkout-location-settings-branding-button-shape.md
rename to legacy/doc/models/checkout-location-settings-branding-button-shape.md
diff --git a/doc/models/checkout-location-settings-branding-header-type.md b/legacy/doc/models/checkout-location-settings-branding-header-type.md
similarity index 100%
rename from doc/models/checkout-location-settings-branding-header-type.md
rename to legacy/doc/models/checkout-location-settings-branding-header-type.md
diff --git a/doc/models/checkout-location-settings-branding.md b/legacy/doc/models/checkout-location-settings-branding.md
similarity index 100%
rename from doc/models/checkout-location-settings-branding.md
rename to legacy/doc/models/checkout-location-settings-branding.md
diff --git a/doc/models/checkout-location-settings-coupons.md b/legacy/doc/models/checkout-location-settings-coupons.md
similarity index 100%
rename from doc/models/checkout-location-settings-coupons.md
rename to legacy/doc/models/checkout-location-settings-coupons.md
diff --git a/doc/models/checkout-location-settings-policy.md b/legacy/doc/models/checkout-location-settings-policy.md
similarity index 100%
rename from doc/models/checkout-location-settings-policy.md
rename to legacy/doc/models/checkout-location-settings-policy.md
diff --git a/doc/models/checkout-location-settings-tipping.md b/legacy/doc/models/checkout-location-settings-tipping.md
similarity index 100%
rename from doc/models/checkout-location-settings-tipping.md
rename to legacy/doc/models/checkout-location-settings-tipping.md
diff --git a/doc/models/checkout-location-settings.md b/legacy/doc/models/checkout-location-settings.md
similarity index 100%
rename from doc/models/checkout-location-settings.md
rename to legacy/doc/models/checkout-location-settings.md
diff --git a/doc/models/checkout-merchant-settings-payment-methods-afterpay-clearpay-eligibility-range.md b/legacy/doc/models/checkout-merchant-settings-payment-methods-afterpay-clearpay-eligibility-range.md
similarity index 100%
rename from doc/models/checkout-merchant-settings-payment-methods-afterpay-clearpay-eligibility-range.md
rename to legacy/doc/models/checkout-merchant-settings-payment-methods-afterpay-clearpay-eligibility-range.md
diff --git a/doc/models/checkout-merchant-settings-payment-methods-afterpay-clearpay.md b/legacy/doc/models/checkout-merchant-settings-payment-methods-afterpay-clearpay.md
similarity index 100%
rename from doc/models/checkout-merchant-settings-payment-methods-afterpay-clearpay.md
rename to legacy/doc/models/checkout-merchant-settings-payment-methods-afterpay-clearpay.md
diff --git a/doc/models/checkout-merchant-settings-payment-methods-payment-method.md b/legacy/doc/models/checkout-merchant-settings-payment-methods-payment-method.md
similarity index 100%
rename from doc/models/checkout-merchant-settings-payment-methods-payment-method.md
rename to legacy/doc/models/checkout-merchant-settings-payment-methods-payment-method.md
diff --git a/doc/models/checkout-merchant-settings-payment-methods.md b/legacy/doc/models/checkout-merchant-settings-payment-methods.md
similarity index 100%
rename from doc/models/checkout-merchant-settings-payment-methods.md
rename to legacy/doc/models/checkout-merchant-settings-payment-methods.md
diff --git a/doc/models/checkout-merchant-settings.md b/legacy/doc/models/checkout-merchant-settings.md
similarity index 100%
rename from doc/models/checkout-merchant-settings.md
rename to legacy/doc/models/checkout-merchant-settings.md
diff --git a/doc/models/checkout-options-payment-type.md b/legacy/doc/models/checkout-options-payment-type.md
similarity index 100%
rename from doc/models/checkout-options-payment-type.md
rename to legacy/doc/models/checkout-options-payment-type.md
diff --git a/doc/models/checkout-options.md b/legacy/doc/models/checkout-options.md
similarity index 100%
rename from doc/models/checkout-options.md
rename to legacy/doc/models/checkout-options.md
diff --git a/doc/models/checkout.md b/legacy/doc/models/checkout.md
similarity index 100%
rename from doc/models/checkout.md
rename to legacy/doc/models/checkout.md
diff --git a/doc/models/clearpay-details.md b/legacy/doc/models/clearpay-details.md
similarity index 100%
rename from doc/models/clearpay-details.md
rename to legacy/doc/models/clearpay-details.md
diff --git a/doc/models/clone-order-request.md b/legacy/doc/models/clone-order-request.md
similarity index 100%
rename from doc/models/clone-order-request.md
rename to legacy/doc/models/clone-order-request.md
diff --git a/doc/models/clone-order-response.md b/legacy/doc/models/clone-order-response.md
similarity index 100%
rename from doc/models/clone-order-response.md
rename to legacy/doc/models/clone-order-response.md
diff --git a/doc/models/collected-data.md b/legacy/doc/models/collected-data.md
similarity index 100%
rename from doc/models/collected-data.md
rename to legacy/doc/models/collected-data.md
diff --git a/doc/models/complete-payment-request.md b/legacy/doc/models/complete-payment-request.md
similarity index 100%
rename from doc/models/complete-payment-request.md
rename to legacy/doc/models/complete-payment-request.md
diff --git a/doc/models/complete-payment-response.md b/legacy/doc/models/complete-payment-response.md
similarity index 100%
rename from doc/models/complete-payment-response.md
rename to legacy/doc/models/complete-payment-response.md
diff --git a/doc/models/component-component-type.md b/legacy/doc/models/component-component-type.md
similarity index 100%
rename from doc/models/component-component-type.md
rename to legacy/doc/models/component-component-type.md
diff --git a/doc/models/component.md b/legacy/doc/models/component.md
similarity index 100%
rename from doc/models/component.md
rename to legacy/doc/models/component.md
diff --git a/doc/models/confirmation-decision.md b/legacy/doc/models/confirmation-decision.md
similarity index 100%
rename from doc/models/confirmation-decision.md
rename to legacy/doc/models/confirmation-decision.md
diff --git a/doc/models/confirmation-options.md b/legacy/doc/models/confirmation-options.md
similarity index 100%
rename from doc/models/confirmation-options.md
rename to legacy/doc/models/confirmation-options.md
diff --git a/doc/models/coordinates.md b/legacy/doc/models/coordinates.md
similarity index 100%
rename from doc/models/coordinates.md
rename to legacy/doc/models/coordinates.md
diff --git a/doc/models/country.md b/legacy/doc/models/country.md
similarity index 100%
rename from doc/models/country.md
rename to legacy/doc/models/country.md
diff --git a/doc/models/create-booking-custom-attribute-definition-request.md b/legacy/doc/models/create-booking-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/create-booking-custom-attribute-definition-request.md
rename to legacy/doc/models/create-booking-custom-attribute-definition-request.md
diff --git a/doc/models/create-booking-custom-attribute-definition-response.md b/legacy/doc/models/create-booking-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/create-booking-custom-attribute-definition-response.md
rename to legacy/doc/models/create-booking-custom-attribute-definition-response.md
diff --git a/doc/models/create-booking-request.md b/legacy/doc/models/create-booking-request.md
similarity index 100%
rename from doc/models/create-booking-request.md
rename to legacy/doc/models/create-booking-request.md
diff --git a/doc/models/create-booking-response.md b/legacy/doc/models/create-booking-response.md
similarity index 100%
rename from doc/models/create-booking-response.md
rename to legacy/doc/models/create-booking-response.md
diff --git a/doc/models/create-break-type-request.md b/legacy/doc/models/create-break-type-request.md
similarity index 100%
rename from doc/models/create-break-type-request.md
rename to legacy/doc/models/create-break-type-request.md
diff --git a/doc/models/create-break-type-response.md b/legacy/doc/models/create-break-type-response.md
similarity index 100%
rename from doc/models/create-break-type-response.md
rename to legacy/doc/models/create-break-type-response.md
diff --git a/doc/models/create-card-request.md b/legacy/doc/models/create-card-request.md
similarity index 100%
rename from doc/models/create-card-request.md
rename to legacy/doc/models/create-card-request.md
diff --git a/doc/models/create-card-response.md b/legacy/doc/models/create-card-response.md
similarity index 100%
rename from doc/models/create-card-response.md
rename to legacy/doc/models/create-card-response.md
diff --git a/doc/models/create-catalog-image-request.md b/legacy/doc/models/create-catalog-image-request.md
similarity index 100%
rename from doc/models/create-catalog-image-request.md
rename to legacy/doc/models/create-catalog-image-request.md
diff --git a/doc/models/create-catalog-image-response.md b/legacy/doc/models/create-catalog-image-response.md
similarity index 100%
rename from doc/models/create-catalog-image-response.md
rename to legacy/doc/models/create-catalog-image-response.md
diff --git a/doc/models/create-checkout-request.md b/legacy/doc/models/create-checkout-request.md
similarity index 100%
rename from doc/models/create-checkout-request.md
rename to legacy/doc/models/create-checkout-request.md
diff --git a/doc/models/create-checkout-response.md b/legacy/doc/models/create-checkout-response.md
similarity index 100%
rename from doc/models/create-checkout-response.md
rename to legacy/doc/models/create-checkout-response.md
diff --git a/doc/models/create-customer-card-request.md b/legacy/doc/models/create-customer-card-request.md
similarity index 100%
rename from doc/models/create-customer-card-request.md
rename to legacy/doc/models/create-customer-card-request.md
diff --git a/doc/models/create-customer-card-response.md b/legacy/doc/models/create-customer-card-response.md
similarity index 100%
rename from doc/models/create-customer-card-response.md
rename to legacy/doc/models/create-customer-card-response.md
diff --git a/doc/models/create-customer-custom-attribute-definition-request.md b/legacy/doc/models/create-customer-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/create-customer-custom-attribute-definition-request.md
rename to legacy/doc/models/create-customer-custom-attribute-definition-request.md
diff --git a/doc/models/create-customer-custom-attribute-definition-response.md b/legacy/doc/models/create-customer-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/create-customer-custom-attribute-definition-response.md
rename to legacy/doc/models/create-customer-custom-attribute-definition-response.md
diff --git a/doc/models/create-customer-group-request.md b/legacy/doc/models/create-customer-group-request.md
similarity index 100%
rename from doc/models/create-customer-group-request.md
rename to legacy/doc/models/create-customer-group-request.md
diff --git a/doc/models/create-customer-group-response.md b/legacy/doc/models/create-customer-group-response.md
similarity index 100%
rename from doc/models/create-customer-group-response.md
rename to legacy/doc/models/create-customer-group-response.md
diff --git a/doc/models/create-customer-request.md b/legacy/doc/models/create-customer-request.md
similarity index 100%
rename from doc/models/create-customer-request.md
rename to legacy/doc/models/create-customer-request.md
diff --git a/doc/models/create-customer-response.md b/legacy/doc/models/create-customer-response.md
similarity index 100%
rename from doc/models/create-customer-response.md
rename to legacy/doc/models/create-customer-response.md
diff --git a/doc/models/create-device-code-request.md b/legacy/doc/models/create-device-code-request.md
similarity index 100%
rename from doc/models/create-device-code-request.md
rename to legacy/doc/models/create-device-code-request.md
diff --git a/doc/models/create-device-code-response.md b/legacy/doc/models/create-device-code-response.md
similarity index 100%
rename from doc/models/create-device-code-response.md
rename to legacy/doc/models/create-device-code-response.md
diff --git a/doc/models/create-dispute-evidence-file-request.md b/legacy/doc/models/create-dispute-evidence-file-request.md
similarity index 100%
rename from doc/models/create-dispute-evidence-file-request.md
rename to legacy/doc/models/create-dispute-evidence-file-request.md
diff --git a/doc/models/create-dispute-evidence-file-response.md b/legacy/doc/models/create-dispute-evidence-file-response.md
similarity index 100%
rename from doc/models/create-dispute-evidence-file-response.md
rename to legacy/doc/models/create-dispute-evidence-file-response.md
diff --git a/doc/models/create-dispute-evidence-text-request.md b/legacy/doc/models/create-dispute-evidence-text-request.md
similarity index 100%
rename from doc/models/create-dispute-evidence-text-request.md
rename to legacy/doc/models/create-dispute-evidence-text-request.md
diff --git a/doc/models/create-dispute-evidence-text-response.md b/legacy/doc/models/create-dispute-evidence-text-response.md
similarity index 100%
rename from doc/models/create-dispute-evidence-text-response.md
rename to legacy/doc/models/create-dispute-evidence-text-response.md
diff --git a/doc/models/create-gift-card-activity-request.md b/legacy/doc/models/create-gift-card-activity-request.md
similarity index 100%
rename from doc/models/create-gift-card-activity-request.md
rename to legacy/doc/models/create-gift-card-activity-request.md
diff --git a/doc/models/create-gift-card-activity-response.md b/legacy/doc/models/create-gift-card-activity-response.md
similarity index 100%
rename from doc/models/create-gift-card-activity-response.md
rename to legacy/doc/models/create-gift-card-activity-response.md
diff --git a/doc/models/create-gift-card-request.md b/legacy/doc/models/create-gift-card-request.md
similarity index 100%
rename from doc/models/create-gift-card-request.md
rename to legacy/doc/models/create-gift-card-request.md
diff --git a/doc/models/create-gift-card-response.md b/legacy/doc/models/create-gift-card-response.md
similarity index 100%
rename from doc/models/create-gift-card-response.md
rename to legacy/doc/models/create-gift-card-response.md
diff --git a/doc/models/create-invoice-attachment-request.md b/legacy/doc/models/create-invoice-attachment-request.md
similarity index 100%
rename from doc/models/create-invoice-attachment-request.md
rename to legacy/doc/models/create-invoice-attachment-request.md
diff --git a/doc/models/create-invoice-attachment-response.md b/legacy/doc/models/create-invoice-attachment-response.md
similarity index 100%
rename from doc/models/create-invoice-attachment-response.md
rename to legacy/doc/models/create-invoice-attachment-response.md
diff --git a/doc/models/create-invoice-request.md b/legacy/doc/models/create-invoice-request.md
similarity index 100%
rename from doc/models/create-invoice-request.md
rename to legacy/doc/models/create-invoice-request.md
diff --git a/doc/models/create-invoice-response.md b/legacy/doc/models/create-invoice-response.md
similarity index 100%
rename from doc/models/create-invoice-response.md
rename to legacy/doc/models/create-invoice-response.md
diff --git a/doc/models/create-job-request.md b/legacy/doc/models/create-job-request.md
similarity index 100%
rename from doc/models/create-job-request.md
rename to legacy/doc/models/create-job-request.md
diff --git a/doc/models/create-job-response.md b/legacy/doc/models/create-job-response.md
similarity index 100%
rename from doc/models/create-job-response.md
rename to legacy/doc/models/create-job-response.md
diff --git a/doc/models/create-location-custom-attribute-definition-request.md b/legacy/doc/models/create-location-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/create-location-custom-attribute-definition-request.md
rename to legacy/doc/models/create-location-custom-attribute-definition-request.md
diff --git a/doc/models/create-location-custom-attribute-definition-response.md b/legacy/doc/models/create-location-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/create-location-custom-attribute-definition-response.md
rename to legacy/doc/models/create-location-custom-attribute-definition-response.md
diff --git a/doc/models/create-location-request.md b/legacy/doc/models/create-location-request.md
similarity index 100%
rename from doc/models/create-location-request.md
rename to legacy/doc/models/create-location-request.md
diff --git a/doc/models/create-location-response.md b/legacy/doc/models/create-location-response.md
similarity index 100%
rename from doc/models/create-location-response.md
rename to legacy/doc/models/create-location-response.md
diff --git a/doc/models/create-loyalty-account-request.md b/legacy/doc/models/create-loyalty-account-request.md
similarity index 100%
rename from doc/models/create-loyalty-account-request.md
rename to legacy/doc/models/create-loyalty-account-request.md
diff --git a/doc/models/create-loyalty-account-response.md b/legacy/doc/models/create-loyalty-account-response.md
similarity index 100%
rename from doc/models/create-loyalty-account-response.md
rename to legacy/doc/models/create-loyalty-account-response.md
diff --git a/doc/models/create-loyalty-promotion-request.md b/legacy/doc/models/create-loyalty-promotion-request.md
similarity index 100%
rename from doc/models/create-loyalty-promotion-request.md
rename to legacy/doc/models/create-loyalty-promotion-request.md
diff --git a/doc/models/create-loyalty-promotion-response.md b/legacy/doc/models/create-loyalty-promotion-response.md
similarity index 100%
rename from doc/models/create-loyalty-promotion-response.md
rename to legacy/doc/models/create-loyalty-promotion-response.md
diff --git a/doc/models/create-loyalty-reward-request.md b/legacy/doc/models/create-loyalty-reward-request.md
similarity index 100%
rename from doc/models/create-loyalty-reward-request.md
rename to legacy/doc/models/create-loyalty-reward-request.md
diff --git a/doc/models/create-loyalty-reward-response.md b/legacy/doc/models/create-loyalty-reward-response.md
similarity index 100%
rename from doc/models/create-loyalty-reward-response.md
rename to legacy/doc/models/create-loyalty-reward-response.md
diff --git a/doc/models/create-merchant-custom-attribute-definition-request.md b/legacy/doc/models/create-merchant-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/create-merchant-custom-attribute-definition-request.md
rename to legacy/doc/models/create-merchant-custom-attribute-definition-request.md
diff --git a/doc/models/create-merchant-custom-attribute-definition-response.md b/legacy/doc/models/create-merchant-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/create-merchant-custom-attribute-definition-response.md
rename to legacy/doc/models/create-merchant-custom-attribute-definition-response.md
diff --git a/doc/models/create-mobile-authorization-code-request.md b/legacy/doc/models/create-mobile-authorization-code-request.md
similarity index 100%
rename from doc/models/create-mobile-authorization-code-request.md
rename to legacy/doc/models/create-mobile-authorization-code-request.md
diff --git a/doc/models/create-mobile-authorization-code-response.md b/legacy/doc/models/create-mobile-authorization-code-response.md
similarity index 100%
rename from doc/models/create-mobile-authorization-code-response.md
rename to legacy/doc/models/create-mobile-authorization-code-response.md
diff --git a/doc/models/create-order-custom-attribute-definition-request.md b/legacy/doc/models/create-order-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/create-order-custom-attribute-definition-request.md
rename to legacy/doc/models/create-order-custom-attribute-definition-request.md
diff --git a/doc/models/create-order-custom-attribute-definition-response.md b/legacy/doc/models/create-order-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/create-order-custom-attribute-definition-response.md
rename to legacy/doc/models/create-order-custom-attribute-definition-response.md
diff --git a/doc/models/create-order-request.md b/legacy/doc/models/create-order-request.md
similarity index 100%
rename from doc/models/create-order-request.md
rename to legacy/doc/models/create-order-request.md
diff --git a/doc/models/create-order-response.md b/legacy/doc/models/create-order-response.md
similarity index 100%
rename from doc/models/create-order-response.md
rename to legacy/doc/models/create-order-response.md
diff --git a/doc/models/create-payment-link-request.md b/legacy/doc/models/create-payment-link-request.md
similarity index 100%
rename from doc/models/create-payment-link-request.md
rename to legacy/doc/models/create-payment-link-request.md
diff --git a/doc/models/create-payment-link-response.md b/legacy/doc/models/create-payment-link-response.md
similarity index 100%
rename from doc/models/create-payment-link-response.md
rename to legacy/doc/models/create-payment-link-response.md
diff --git a/doc/models/create-payment-request.md b/legacy/doc/models/create-payment-request.md
similarity index 100%
rename from doc/models/create-payment-request.md
rename to legacy/doc/models/create-payment-request.md
diff --git a/doc/models/create-payment-response.md b/legacy/doc/models/create-payment-response.md
similarity index 100%
rename from doc/models/create-payment-response.md
rename to legacy/doc/models/create-payment-response.md
diff --git a/doc/models/create-refund-request.md b/legacy/doc/models/create-refund-request.md
similarity index 100%
rename from doc/models/create-refund-request.md
rename to legacy/doc/models/create-refund-request.md
diff --git a/doc/models/create-refund-response.md b/legacy/doc/models/create-refund-response.md
similarity index 100%
rename from doc/models/create-refund-response.md
rename to legacy/doc/models/create-refund-response.md
diff --git a/doc/models/create-shift-request.md b/legacy/doc/models/create-shift-request.md
similarity index 100%
rename from doc/models/create-shift-request.md
rename to legacy/doc/models/create-shift-request.md
diff --git a/doc/models/create-shift-response.md b/legacy/doc/models/create-shift-response.md
similarity index 100%
rename from doc/models/create-shift-response.md
rename to legacy/doc/models/create-shift-response.md
diff --git a/doc/models/create-subscription-request.md b/legacy/doc/models/create-subscription-request.md
similarity index 100%
rename from doc/models/create-subscription-request.md
rename to legacy/doc/models/create-subscription-request.md
diff --git a/doc/models/create-subscription-response.md b/legacy/doc/models/create-subscription-response.md
similarity index 100%
rename from doc/models/create-subscription-response.md
rename to legacy/doc/models/create-subscription-response.md
diff --git a/doc/models/create-team-member-request.md b/legacy/doc/models/create-team-member-request.md
similarity index 100%
rename from doc/models/create-team-member-request.md
rename to legacy/doc/models/create-team-member-request.md
diff --git a/doc/models/create-team-member-response.md b/legacy/doc/models/create-team-member-response.md
similarity index 100%
rename from doc/models/create-team-member-response.md
rename to legacy/doc/models/create-team-member-response.md
diff --git a/doc/models/create-terminal-action-request.md b/legacy/doc/models/create-terminal-action-request.md
similarity index 100%
rename from doc/models/create-terminal-action-request.md
rename to legacy/doc/models/create-terminal-action-request.md
diff --git a/doc/models/create-terminal-action-response.md b/legacy/doc/models/create-terminal-action-response.md
similarity index 100%
rename from doc/models/create-terminal-action-response.md
rename to legacy/doc/models/create-terminal-action-response.md
diff --git a/doc/models/create-terminal-checkout-request.md b/legacy/doc/models/create-terminal-checkout-request.md
similarity index 100%
rename from doc/models/create-terminal-checkout-request.md
rename to legacy/doc/models/create-terminal-checkout-request.md
diff --git a/doc/models/create-terminal-checkout-response.md b/legacy/doc/models/create-terminal-checkout-response.md
similarity index 100%
rename from doc/models/create-terminal-checkout-response.md
rename to legacy/doc/models/create-terminal-checkout-response.md
diff --git a/doc/models/create-terminal-refund-request.md b/legacy/doc/models/create-terminal-refund-request.md
similarity index 100%
rename from doc/models/create-terminal-refund-request.md
rename to legacy/doc/models/create-terminal-refund-request.md
diff --git a/doc/models/create-terminal-refund-response.md b/legacy/doc/models/create-terminal-refund-response.md
similarity index 100%
rename from doc/models/create-terminal-refund-response.md
rename to legacy/doc/models/create-terminal-refund-response.md
diff --git a/doc/models/create-vendor-request.md b/legacy/doc/models/create-vendor-request.md
similarity index 100%
rename from doc/models/create-vendor-request.md
rename to legacy/doc/models/create-vendor-request.md
diff --git a/doc/models/create-vendor-response.md b/legacy/doc/models/create-vendor-response.md
similarity index 100%
rename from doc/models/create-vendor-response.md
rename to legacy/doc/models/create-vendor-response.md
diff --git a/doc/models/create-webhook-subscription-request.md b/legacy/doc/models/create-webhook-subscription-request.md
similarity index 100%
rename from doc/models/create-webhook-subscription-request.md
rename to legacy/doc/models/create-webhook-subscription-request.md
diff --git a/doc/models/create-webhook-subscription-response.md b/legacy/doc/models/create-webhook-subscription-response.md
similarity index 100%
rename from doc/models/create-webhook-subscription-response.md
rename to legacy/doc/models/create-webhook-subscription-response.md
diff --git a/doc/models/currency.md b/legacy/doc/models/currency.md
similarity index 100%
rename from doc/models/currency.md
rename to legacy/doc/models/currency.md
diff --git a/doc/models/custom-attribute-definition-visibility.md b/legacy/doc/models/custom-attribute-definition-visibility.md
similarity index 100%
rename from doc/models/custom-attribute-definition-visibility.md
rename to legacy/doc/models/custom-attribute-definition-visibility.md
diff --git a/doc/models/custom-attribute-definition.md b/legacy/doc/models/custom-attribute-definition.md
similarity index 100%
rename from doc/models/custom-attribute-definition.md
rename to legacy/doc/models/custom-attribute-definition.md
diff --git a/doc/models/custom-attribute-filter.md b/legacy/doc/models/custom-attribute-filter.md
similarity index 100%
rename from doc/models/custom-attribute-filter.md
rename to legacy/doc/models/custom-attribute-filter.md
diff --git a/doc/models/custom-attribute.md b/legacy/doc/models/custom-attribute.md
similarity index 100%
rename from doc/models/custom-attribute.md
rename to legacy/doc/models/custom-attribute.md
diff --git a/doc/models/custom-field.md b/legacy/doc/models/custom-field.md
similarity index 100%
rename from doc/models/custom-field.md
rename to legacy/doc/models/custom-field.md
diff --git a/doc/models/customer-address-filter.md b/legacy/doc/models/customer-address-filter.md
similarity index 100%
rename from doc/models/customer-address-filter.md
rename to legacy/doc/models/customer-address-filter.md
diff --git a/doc/models/customer-creation-source-filter.md b/legacy/doc/models/customer-creation-source-filter.md
similarity index 100%
rename from doc/models/customer-creation-source-filter.md
rename to legacy/doc/models/customer-creation-source-filter.md
diff --git a/doc/models/customer-creation-source.md b/legacy/doc/models/customer-creation-source.md
similarity index 100%
rename from doc/models/customer-creation-source.md
rename to legacy/doc/models/customer-creation-source.md
diff --git a/doc/models/customer-custom-attribute-filter-value.md b/legacy/doc/models/customer-custom-attribute-filter-value.md
similarity index 100%
rename from doc/models/customer-custom-attribute-filter-value.md
rename to legacy/doc/models/customer-custom-attribute-filter-value.md
diff --git a/doc/models/customer-custom-attribute-filter.md b/legacy/doc/models/customer-custom-attribute-filter.md
similarity index 100%
rename from doc/models/customer-custom-attribute-filter.md
rename to legacy/doc/models/customer-custom-attribute-filter.md
diff --git a/doc/models/customer-custom-attribute-filters.md b/legacy/doc/models/customer-custom-attribute-filters.md
similarity index 100%
rename from doc/models/customer-custom-attribute-filters.md
rename to legacy/doc/models/customer-custom-attribute-filters.md
diff --git a/doc/models/customer-details.md b/legacy/doc/models/customer-details.md
similarity index 100%
rename from doc/models/customer-details.md
rename to legacy/doc/models/customer-details.md
diff --git a/doc/models/customer-filter.md b/legacy/doc/models/customer-filter.md
similarity index 100%
rename from doc/models/customer-filter.md
rename to legacy/doc/models/customer-filter.md
diff --git a/doc/models/customer-group.md b/legacy/doc/models/customer-group.md
similarity index 100%
rename from doc/models/customer-group.md
rename to legacy/doc/models/customer-group.md
diff --git a/doc/models/customer-inclusion-exclusion.md b/legacy/doc/models/customer-inclusion-exclusion.md
similarity index 100%
rename from doc/models/customer-inclusion-exclusion.md
rename to legacy/doc/models/customer-inclusion-exclusion.md
diff --git a/doc/models/customer-preferences.md b/legacy/doc/models/customer-preferences.md
similarity index 100%
rename from doc/models/customer-preferences.md
rename to legacy/doc/models/customer-preferences.md
diff --git a/doc/models/customer-query.md b/legacy/doc/models/customer-query.md
similarity index 100%
rename from doc/models/customer-query.md
rename to legacy/doc/models/customer-query.md
diff --git a/doc/models/customer-segment.md b/legacy/doc/models/customer-segment.md
similarity index 100%
rename from doc/models/customer-segment.md
rename to legacy/doc/models/customer-segment.md
diff --git a/doc/models/customer-sort-field.md b/legacy/doc/models/customer-sort-field.md
similarity index 100%
rename from doc/models/customer-sort-field.md
rename to legacy/doc/models/customer-sort-field.md
diff --git a/doc/models/customer-sort.md b/legacy/doc/models/customer-sort.md
similarity index 100%
rename from doc/models/customer-sort.md
rename to legacy/doc/models/customer-sort.md
diff --git a/doc/models/customer-tax-ids.md b/legacy/doc/models/customer-tax-ids.md
similarity index 100%
rename from doc/models/customer-tax-ids.md
rename to legacy/doc/models/customer-tax-ids.md
diff --git a/doc/models/customer-text-filter.md b/legacy/doc/models/customer-text-filter.md
similarity index 100%
rename from doc/models/customer-text-filter.md
rename to legacy/doc/models/customer-text-filter.md
diff --git a/doc/models/customer.md b/legacy/doc/models/customer.md
similarity index 100%
rename from doc/models/customer.md
rename to legacy/doc/models/customer.md
diff --git a/doc/models/data-collection-options-input-type.md b/legacy/doc/models/data-collection-options-input-type.md
similarity index 100%
rename from doc/models/data-collection-options-input-type.md
rename to legacy/doc/models/data-collection-options-input-type.md
diff --git a/doc/models/data-collection-options.md b/legacy/doc/models/data-collection-options.md
similarity index 100%
rename from doc/models/data-collection-options.md
rename to legacy/doc/models/data-collection-options.md
diff --git a/doc/models/date-range.md b/legacy/doc/models/date-range.md
similarity index 100%
rename from doc/models/date-range.md
rename to legacy/doc/models/date-range.md
diff --git a/doc/models/day-of-week.md b/legacy/doc/models/day-of-week.md
similarity index 100%
rename from doc/models/day-of-week.md
rename to legacy/doc/models/day-of-week.md
diff --git a/doc/models/delete-booking-custom-attribute-definition-response.md b/legacy/doc/models/delete-booking-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/delete-booking-custom-attribute-definition-response.md
rename to legacy/doc/models/delete-booking-custom-attribute-definition-response.md
diff --git a/doc/models/delete-booking-custom-attribute-response.md b/legacy/doc/models/delete-booking-custom-attribute-response.md
similarity index 100%
rename from doc/models/delete-booking-custom-attribute-response.md
rename to legacy/doc/models/delete-booking-custom-attribute-response.md
diff --git a/doc/models/delete-break-type-response.md b/legacy/doc/models/delete-break-type-response.md
similarity index 100%
rename from doc/models/delete-break-type-response.md
rename to legacy/doc/models/delete-break-type-response.md
diff --git a/doc/models/delete-catalog-object-response.md b/legacy/doc/models/delete-catalog-object-response.md
similarity index 100%
rename from doc/models/delete-catalog-object-response.md
rename to legacy/doc/models/delete-catalog-object-response.md
diff --git a/doc/models/delete-customer-card-response.md b/legacy/doc/models/delete-customer-card-response.md
similarity index 100%
rename from doc/models/delete-customer-card-response.md
rename to legacy/doc/models/delete-customer-card-response.md
diff --git a/doc/models/delete-customer-custom-attribute-definition-response.md b/legacy/doc/models/delete-customer-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/delete-customer-custom-attribute-definition-response.md
rename to legacy/doc/models/delete-customer-custom-attribute-definition-response.md
diff --git a/doc/models/delete-customer-custom-attribute-response.md b/legacy/doc/models/delete-customer-custom-attribute-response.md
similarity index 100%
rename from doc/models/delete-customer-custom-attribute-response.md
rename to legacy/doc/models/delete-customer-custom-attribute-response.md
diff --git a/doc/models/delete-customer-group-response.md b/legacy/doc/models/delete-customer-group-response.md
similarity index 100%
rename from doc/models/delete-customer-group-response.md
rename to legacy/doc/models/delete-customer-group-response.md
diff --git a/doc/models/delete-customer-request.md b/legacy/doc/models/delete-customer-request.md
similarity index 100%
rename from doc/models/delete-customer-request.md
rename to legacy/doc/models/delete-customer-request.md
diff --git a/doc/models/delete-customer-response.md b/legacy/doc/models/delete-customer-response.md
similarity index 100%
rename from doc/models/delete-customer-response.md
rename to legacy/doc/models/delete-customer-response.md
diff --git a/doc/models/delete-dispute-evidence-response.md b/legacy/doc/models/delete-dispute-evidence-response.md
similarity index 100%
rename from doc/models/delete-dispute-evidence-response.md
rename to legacy/doc/models/delete-dispute-evidence-response.md
diff --git a/doc/models/delete-invoice-attachment-response.md b/legacy/doc/models/delete-invoice-attachment-response.md
similarity index 100%
rename from doc/models/delete-invoice-attachment-response.md
rename to legacy/doc/models/delete-invoice-attachment-response.md
diff --git a/doc/models/delete-invoice-request.md b/legacy/doc/models/delete-invoice-request.md
similarity index 100%
rename from doc/models/delete-invoice-request.md
rename to legacy/doc/models/delete-invoice-request.md
diff --git a/doc/models/delete-invoice-response.md b/legacy/doc/models/delete-invoice-response.md
similarity index 100%
rename from doc/models/delete-invoice-response.md
rename to legacy/doc/models/delete-invoice-response.md
diff --git a/doc/models/delete-location-custom-attribute-definition-response.md b/legacy/doc/models/delete-location-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/delete-location-custom-attribute-definition-response.md
rename to legacy/doc/models/delete-location-custom-attribute-definition-response.md
diff --git a/doc/models/delete-location-custom-attribute-response.md b/legacy/doc/models/delete-location-custom-attribute-response.md
similarity index 100%
rename from doc/models/delete-location-custom-attribute-response.md
rename to legacy/doc/models/delete-location-custom-attribute-response.md
diff --git a/doc/models/delete-loyalty-reward-response.md b/legacy/doc/models/delete-loyalty-reward-response.md
similarity index 100%
rename from doc/models/delete-loyalty-reward-response.md
rename to legacy/doc/models/delete-loyalty-reward-response.md
diff --git a/doc/models/delete-merchant-custom-attribute-definition-response.md b/legacy/doc/models/delete-merchant-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/delete-merchant-custom-attribute-definition-response.md
rename to legacy/doc/models/delete-merchant-custom-attribute-definition-response.md
diff --git a/doc/models/delete-merchant-custom-attribute-response.md b/legacy/doc/models/delete-merchant-custom-attribute-response.md
similarity index 100%
rename from doc/models/delete-merchant-custom-attribute-response.md
rename to legacy/doc/models/delete-merchant-custom-attribute-response.md
diff --git a/doc/models/delete-order-custom-attribute-definition-response.md b/legacy/doc/models/delete-order-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/delete-order-custom-attribute-definition-response.md
rename to legacy/doc/models/delete-order-custom-attribute-definition-response.md
diff --git a/doc/models/delete-order-custom-attribute-response.md b/legacy/doc/models/delete-order-custom-attribute-response.md
similarity index 100%
rename from doc/models/delete-order-custom-attribute-response.md
rename to legacy/doc/models/delete-order-custom-attribute-response.md
diff --git a/doc/models/delete-payment-link-response.md b/legacy/doc/models/delete-payment-link-response.md
similarity index 100%
rename from doc/models/delete-payment-link-response.md
rename to legacy/doc/models/delete-payment-link-response.md
diff --git a/doc/models/delete-shift-response.md b/legacy/doc/models/delete-shift-response.md
similarity index 100%
rename from doc/models/delete-shift-response.md
rename to legacy/doc/models/delete-shift-response.md
diff --git a/doc/models/delete-snippet-response.md b/legacy/doc/models/delete-snippet-response.md
similarity index 100%
rename from doc/models/delete-snippet-response.md
rename to legacy/doc/models/delete-snippet-response.md
diff --git a/doc/models/delete-subscription-action-response.md b/legacy/doc/models/delete-subscription-action-response.md
similarity index 100%
rename from doc/models/delete-subscription-action-response.md
rename to legacy/doc/models/delete-subscription-action-response.md
diff --git a/doc/models/delete-webhook-subscription-response.md b/legacy/doc/models/delete-webhook-subscription-response.md
similarity index 100%
rename from doc/models/delete-webhook-subscription-response.md
rename to legacy/doc/models/delete-webhook-subscription-response.md
diff --git a/doc/models/deprecated-create-dispute-evidence-file-request.md b/legacy/doc/models/deprecated-create-dispute-evidence-file-request.md
similarity index 100%
rename from doc/models/deprecated-create-dispute-evidence-file-request.md
rename to legacy/doc/models/deprecated-create-dispute-evidence-file-request.md
diff --git a/doc/models/deprecated-create-dispute-evidence-file-response.md b/legacy/doc/models/deprecated-create-dispute-evidence-file-response.md
similarity index 100%
rename from doc/models/deprecated-create-dispute-evidence-file-response.md
rename to legacy/doc/models/deprecated-create-dispute-evidence-file-response.md
diff --git a/doc/models/deprecated-create-dispute-evidence-text-request.md b/legacy/doc/models/deprecated-create-dispute-evidence-text-request.md
similarity index 100%
rename from doc/models/deprecated-create-dispute-evidence-text-request.md
rename to legacy/doc/models/deprecated-create-dispute-evidence-text-request.md
diff --git a/doc/models/deprecated-create-dispute-evidence-text-response.md b/legacy/doc/models/deprecated-create-dispute-evidence-text-response.md
similarity index 100%
rename from doc/models/deprecated-create-dispute-evidence-text-response.md
rename to legacy/doc/models/deprecated-create-dispute-evidence-text-response.md
diff --git a/doc/models/destination-details-card-refund-details.md b/legacy/doc/models/destination-details-card-refund-details.md
similarity index 100%
rename from doc/models/destination-details-card-refund-details.md
rename to legacy/doc/models/destination-details-card-refund-details.md
diff --git a/doc/models/destination-details-cash-refund-details.md b/legacy/doc/models/destination-details-cash-refund-details.md
similarity index 100%
rename from doc/models/destination-details-cash-refund-details.md
rename to legacy/doc/models/destination-details-cash-refund-details.md
diff --git a/doc/models/destination-details-external-refund-details.md b/legacy/doc/models/destination-details-external-refund-details.md
similarity index 100%
rename from doc/models/destination-details-external-refund-details.md
rename to legacy/doc/models/destination-details-external-refund-details.md
diff --git a/doc/models/destination-details.md b/legacy/doc/models/destination-details.md
similarity index 100%
rename from doc/models/destination-details.md
rename to legacy/doc/models/destination-details.md
diff --git a/doc/models/destination-type.md b/legacy/doc/models/destination-type.md
similarity index 100%
rename from doc/models/destination-type.md
rename to legacy/doc/models/destination-type.md
diff --git a/doc/models/destination.md b/legacy/doc/models/destination.md
similarity index 100%
rename from doc/models/destination.md
rename to legacy/doc/models/destination.md
diff --git a/doc/models/device-attributes-device-type.md b/legacy/doc/models/device-attributes-device-type.md
similarity index 100%
rename from doc/models/device-attributes-device-type.md
rename to legacy/doc/models/device-attributes-device-type.md
diff --git a/doc/models/device-attributes.md b/legacy/doc/models/device-attributes.md
similarity index 100%
rename from doc/models/device-attributes.md
rename to legacy/doc/models/device-attributes.md
diff --git a/doc/models/device-checkout-options.md b/legacy/doc/models/device-checkout-options.md
similarity index 100%
rename from doc/models/device-checkout-options.md
rename to legacy/doc/models/device-checkout-options.md
diff --git a/doc/models/device-code-status.md b/legacy/doc/models/device-code-status.md
similarity index 100%
rename from doc/models/device-code-status.md
rename to legacy/doc/models/device-code-status.md
diff --git a/doc/models/device-code.md b/legacy/doc/models/device-code.md
similarity index 100%
rename from doc/models/device-code.md
rename to legacy/doc/models/device-code.md
diff --git a/doc/models/device-component-details-application-details.md b/legacy/doc/models/device-component-details-application-details.md
similarity index 100%
rename from doc/models/device-component-details-application-details.md
rename to legacy/doc/models/device-component-details-application-details.md
diff --git a/doc/models/device-component-details-battery-details.md b/legacy/doc/models/device-component-details-battery-details.md
similarity index 100%
rename from doc/models/device-component-details-battery-details.md
rename to legacy/doc/models/device-component-details-battery-details.md
diff --git a/doc/models/device-component-details-card-reader-details.md b/legacy/doc/models/device-component-details-card-reader-details.md
similarity index 100%
rename from doc/models/device-component-details-card-reader-details.md
rename to legacy/doc/models/device-component-details-card-reader-details.md
diff --git a/doc/models/device-component-details-ethernet-details.md b/legacy/doc/models/device-component-details-ethernet-details.md
similarity index 100%
rename from doc/models/device-component-details-ethernet-details.md
rename to legacy/doc/models/device-component-details-ethernet-details.md
diff --git a/doc/models/device-component-details-external-power.md b/legacy/doc/models/device-component-details-external-power.md
similarity index 100%
rename from doc/models/device-component-details-external-power.md
rename to legacy/doc/models/device-component-details-external-power.md
diff --git a/doc/models/device-component-details-measurement.md b/legacy/doc/models/device-component-details-measurement.md
similarity index 100%
rename from doc/models/device-component-details-measurement.md
rename to legacy/doc/models/device-component-details-measurement.md
diff --git a/doc/models/device-component-details-network-interface-details.md b/legacy/doc/models/device-component-details-network-interface-details.md
similarity index 100%
rename from doc/models/device-component-details-network-interface-details.md
rename to legacy/doc/models/device-component-details-network-interface-details.md
diff --git a/doc/models/device-component-details-wi-fi-details.md b/legacy/doc/models/device-component-details-wi-fi-details.md
similarity index 100%
rename from doc/models/device-component-details-wi-fi-details.md
rename to legacy/doc/models/device-component-details-wi-fi-details.md
diff --git a/doc/models/device-details.md b/legacy/doc/models/device-details.md
similarity index 100%
rename from doc/models/device-details.md
rename to legacy/doc/models/device-details.md
diff --git a/doc/models/device-metadata.md b/legacy/doc/models/device-metadata.md
similarity index 100%
rename from doc/models/device-metadata.md
rename to legacy/doc/models/device-metadata.md
diff --git a/doc/models/device-status-category.md b/legacy/doc/models/device-status-category.md
similarity index 100%
rename from doc/models/device-status-category.md
rename to legacy/doc/models/device-status-category.md
diff --git a/doc/models/device-status.md b/legacy/doc/models/device-status.md
similarity index 100%
rename from doc/models/device-status.md
rename to legacy/doc/models/device-status.md
diff --git a/doc/models/device.md b/legacy/doc/models/device.md
similarity index 100%
rename from doc/models/device.md
rename to legacy/doc/models/device.md
diff --git a/doc/models/digital-wallet-details.md b/legacy/doc/models/digital-wallet-details.md
similarity index 100%
rename from doc/models/digital-wallet-details.md
rename to legacy/doc/models/digital-wallet-details.md
diff --git a/doc/models/disable-card-response.md b/legacy/doc/models/disable-card-response.md
similarity index 100%
rename from doc/models/disable-card-response.md
rename to legacy/doc/models/disable-card-response.md
diff --git a/doc/models/disable-events-response.md b/legacy/doc/models/disable-events-response.md
similarity index 100%
rename from doc/models/disable-events-response.md
rename to legacy/doc/models/disable-events-response.md
diff --git a/doc/models/dismiss-terminal-action-response.md b/legacy/doc/models/dismiss-terminal-action-response.md
similarity index 100%
rename from doc/models/dismiss-terminal-action-response.md
rename to legacy/doc/models/dismiss-terminal-action-response.md
diff --git a/doc/models/dismiss-terminal-checkout-response.md b/legacy/doc/models/dismiss-terminal-checkout-response.md
similarity index 100%
rename from doc/models/dismiss-terminal-checkout-response.md
rename to legacy/doc/models/dismiss-terminal-checkout-response.md
diff --git a/doc/models/dismiss-terminal-refund-response.md b/legacy/doc/models/dismiss-terminal-refund-response.md
similarity index 100%
rename from doc/models/dismiss-terminal-refund-response.md
rename to legacy/doc/models/dismiss-terminal-refund-response.md
diff --git a/doc/models/dispute-evidence-file.md b/legacy/doc/models/dispute-evidence-file.md
similarity index 100%
rename from doc/models/dispute-evidence-file.md
rename to legacy/doc/models/dispute-evidence-file.md
diff --git a/doc/models/dispute-evidence-type.md b/legacy/doc/models/dispute-evidence-type.md
similarity index 100%
rename from doc/models/dispute-evidence-type.md
rename to legacy/doc/models/dispute-evidence-type.md
diff --git a/doc/models/dispute-evidence.md b/legacy/doc/models/dispute-evidence.md
similarity index 100%
rename from doc/models/dispute-evidence.md
rename to legacy/doc/models/dispute-evidence.md
diff --git a/doc/models/dispute-reason.md b/legacy/doc/models/dispute-reason.md
similarity index 100%
rename from doc/models/dispute-reason.md
rename to legacy/doc/models/dispute-reason.md
diff --git a/doc/models/dispute-state.md b/legacy/doc/models/dispute-state.md
similarity index 100%
rename from doc/models/dispute-state.md
rename to legacy/doc/models/dispute-state.md
diff --git a/doc/models/dispute.md b/legacy/doc/models/dispute.md
similarity index 100%
rename from doc/models/dispute.md
rename to legacy/doc/models/dispute.md
diff --git a/doc/models/disputed-payment.md b/legacy/doc/models/disputed-payment.md
similarity index 100%
rename from doc/models/disputed-payment.md
rename to legacy/doc/models/disputed-payment.md
diff --git a/doc/models/ecom-visibility.md b/legacy/doc/models/ecom-visibility.md
similarity index 100%
rename from doc/models/ecom-visibility.md
rename to legacy/doc/models/ecom-visibility.md
diff --git a/doc/models/employee-status.md b/legacy/doc/models/employee-status.md
similarity index 100%
rename from doc/models/employee-status.md
rename to legacy/doc/models/employee-status.md
diff --git a/doc/models/employee-wage.md b/legacy/doc/models/employee-wage.md
similarity index 100%
rename from doc/models/employee-wage.md
rename to legacy/doc/models/employee-wage.md
diff --git a/doc/models/employee.md b/legacy/doc/models/employee.md
similarity index 100%
rename from doc/models/employee.md
rename to legacy/doc/models/employee.md
diff --git a/doc/models/enable-events-response.md b/legacy/doc/models/enable-events-response.md
similarity index 100%
rename from doc/models/enable-events-response.md
rename to legacy/doc/models/enable-events-response.md
diff --git a/doc/models/error-category.md b/legacy/doc/models/error-category.md
similarity index 100%
rename from doc/models/error-category.md
rename to legacy/doc/models/error-category.md
diff --git a/doc/models/error-code.md b/legacy/doc/models/error-code.md
similarity index 100%
rename from doc/models/error-code.md
rename to legacy/doc/models/error-code.md
diff --git a/doc/models/error.md b/legacy/doc/models/error.md
similarity index 100%
rename from doc/models/error.md
rename to legacy/doc/models/error.md
diff --git a/doc/models/event-data.md b/legacy/doc/models/event-data.md
similarity index 100%
rename from doc/models/event-data.md
rename to legacy/doc/models/event-data.md
diff --git a/doc/models/event-metadata.md b/legacy/doc/models/event-metadata.md
similarity index 100%
rename from doc/models/event-metadata.md
rename to legacy/doc/models/event-metadata.md
diff --git a/doc/models/event-type-metadata.md b/legacy/doc/models/event-type-metadata.md
similarity index 100%
rename from doc/models/event-type-metadata.md
rename to legacy/doc/models/event-type-metadata.md
diff --git a/doc/models/event.md b/legacy/doc/models/event.md
similarity index 100%
rename from doc/models/event.md
rename to legacy/doc/models/event.md
diff --git a/doc/models/exclude-strategy.md b/legacy/doc/models/exclude-strategy.md
similarity index 100%
rename from doc/models/exclude-strategy.md
rename to legacy/doc/models/exclude-strategy.md
diff --git a/doc/models/external-payment-details.md b/legacy/doc/models/external-payment-details.md
similarity index 100%
rename from doc/models/external-payment-details.md
rename to legacy/doc/models/external-payment-details.md
diff --git a/doc/models/filter-value.md b/legacy/doc/models/filter-value.md
similarity index 100%
rename from doc/models/filter-value.md
rename to legacy/doc/models/filter-value.md
diff --git a/doc/models/float-number-range.md b/legacy/doc/models/float-number-range.md
similarity index 100%
rename from doc/models/float-number-range.md
rename to legacy/doc/models/float-number-range.md
diff --git a/doc/models/fulfillment-delivery-details-order-fulfillment-delivery-details-schedule-type.md b/legacy/doc/models/fulfillment-delivery-details-order-fulfillment-delivery-details-schedule-type.md
similarity index 100%
rename from doc/models/fulfillment-delivery-details-order-fulfillment-delivery-details-schedule-type.md
rename to legacy/doc/models/fulfillment-delivery-details-order-fulfillment-delivery-details-schedule-type.md
diff --git a/doc/models/fulfillment-delivery-details.md b/legacy/doc/models/fulfillment-delivery-details.md
similarity index 100%
rename from doc/models/fulfillment-delivery-details.md
rename to legacy/doc/models/fulfillment-delivery-details.md
diff --git a/doc/models/fulfillment-fulfillment-entry.md b/legacy/doc/models/fulfillment-fulfillment-entry.md
similarity index 100%
rename from doc/models/fulfillment-fulfillment-entry.md
rename to legacy/doc/models/fulfillment-fulfillment-entry.md
diff --git a/doc/models/fulfillment-fulfillment-line-item-application.md b/legacy/doc/models/fulfillment-fulfillment-line-item-application.md
similarity index 100%
rename from doc/models/fulfillment-fulfillment-line-item-application.md
rename to legacy/doc/models/fulfillment-fulfillment-line-item-application.md
diff --git a/doc/models/fulfillment-pickup-details-curbside-pickup-details.md b/legacy/doc/models/fulfillment-pickup-details-curbside-pickup-details.md
similarity index 100%
rename from doc/models/fulfillment-pickup-details-curbside-pickup-details.md
rename to legacy/doc/models/fulfillment-pickup-details-curbside-pickup-details.md
diff --git a/doc/models/fulfillment-pickup-details-schedule-type.md b/legacy/doc/models/fulfillment-pickup-details-schedule-type.md
similarity index 100%
rename from doc/models/fulfillment-pickup-details-schedule-type.md
rename to legacy/doc/models/fulfillment-pickup-details-schedule-type.md
diff --git a/doc/models/fulfillment-pickup-details.md b/legacy/doc/models/fulfillment-pickup-details.md
similarity index 100%
rename from doc/models/fulfillment-pickup-details.md
rename to legacy/doc/models/fulfillment-pickup-details.md
diff --git a/doc/models/fulfillment-recipient.md b/legacy/doc/models/fulfillment-recipient.md
similarity index 100%
rename from doc/models/fulfillment-recipient.md
rename to legacy/doc/models/fulfillment-recipient.md
diff --git a/doc/models/fulfillment-shipment-details.md b/legacy/doc/models/fulfillment-shipment-details.md
similarity index 100%
rename from doc/models/fulfillment-shipment-details.md
rename to legacy/doc/models/fulfillment-shipment-details.md
diff --git a/doc/models/fulfillment-state.md b/legacy/doc/models/fulfillment-state.md
similarity index 100%
rename from doc/models/fulfillment-state.md
rename to legacy/doc/models/fulfillment-state.md
diff --git a/doc/models/fulfillment-type.md b/legacy/doc/models/fulfillment-type.md
similarity index 100%
rename from doc/models/fulfillment-type.md
rename to legacy/doc/models/fulfillment-type.md
diff --git a/doc/models/fulfillment.md b/legacy/doc/models/fulfillment.md
similarity index 100%
rename from doc/models/fulfillment.md
rename to legacy/doc/models/fulfillment.md
diff --git a/doc/models/get-bank-account-by-v1-id-response.md b/legacy/doc/models/get-bank-account-by-v1-id-response.md
similarity index 100%
rename from doc/models/get-bank-account-by-v1-id-response.md
rename to legacy/doc/models/get-bank-account-by-v1-id-response.md
diff --git a/doc/models/get-bank-account-response.md b/legacy/doc/models/get-bank-account-response.md
similarity index 100%
rename from doc/models/get-bank-account-response.md
rename to legacy/doc/models/get-bank-account-response.md
diff --git a/doc/models/get-break-type-response.md b/legacy/doc/models/get-break-type-response.md
similarity index 100%
rename from doc/models/get-break-type-response.md
rename to legacy/doc/models/get-break-type-response.md
diff --git a/doc/models/get-device-code-response.md b/legacy/doc/models/get-device-code-response.md
similarity index 100%
rename from doc/models/get-device-code-response.md
rename to legacy/doc/models/get-device-code-response.md
diff --git a/doc/models/get-device-response.md b/legacy/doc/models/get-device-response.md
similarity index 100%
rename from doc/models/get-device-response.md
rename to legacy/doc/models/get-device-response.md
diff --git a/doc/models/get-employee-wage-response.md b/legacy/doc/models/get-employee-wage-response.md
similarity index 100%
rename from doc/models/get-employee-wage-response.md
rename to legacy/doc/models/get-employee-wage-response.md
diff --git a/doc/models/get-invoice-response.md b/legacy/doc/models/get-invoice-response.md
similarity index 100%
rename from doc/models/get-invoice-response.md
rename to legacy/doc/models/get-invoice-response.md
diff --git a/doc/models/get-payment-refund-response.md b/legacy/doc/models/get-payment-refund-response.md
similarity index 100%
rename from doc/models/get-payment-refund-response.md
rename to legacy/doc/models/get-payment-refund-response.md
diff --git a/doc/models/get-payment-response.md b/legacy/doc/models/get-payment-response.md
similarity index 100%
rename from doc/models/get-payment-response.md
rename to legacy/doc/models/get-payment-response.md
diff --git a/doc/models/get-payout-response.md b/legacy/doc/models/get-payout-response.md
similarity index 100%
rename from doc/models/get-payout-response.md
rename to legacy/doc/models/get-payout-response.md
diff --git a/doc/models/get-shift-response.md b/legacy/doc/models/get-shift-response.md
similarity index 100%
rename from doc/models/get-shift-response.md
rename to legacy/doc/models/get-shift-response.md
diff --git a/doc/models/get-team-member-wage-response.md b/legacy/doc/models/get-team-member-wage-response.md
similarity index 100%
rename from doc/models/get-team-member-wage-response.md
rename to legacy/doc/models/get-team-member-wage-response.md
diff --git a/doc/models/get-terminal-action-response.md b/legacy/doc/models/get-terminal-action-response.md
similarity index 100%
rename from doc/models/get-terminal-action-response.md
rename to legacy/doc/models/get-terminal-action-response.md
diff --git a/doc/models/get-terminal-checkout-response.md b/legacy/doc/models/get-terminal-checkout-response.md
similarity index 100%
rename from doc/models/get-terminal-checkout-response.md
rename to legacy/doc/models/get-terminal-checkout-response.md
diff --git a/doc/models/get-terminal-refund-response.md b/legacy/doc/models/get-terminal-refund-response.md
similarity index 100%
rename from doc/models/get-terminal-refund-response.md
rename to legacy/doc/models/get-terminal-refund-response.md
diff --git a/doc/models/gift-card-activity-activate.md b/legacy/doc/models/gift-card-activity-activate.md
similarity index 100%
rename from doc/models/gift-card-activity-activate.md
rename to legacy/doc/models/gift-card-activity-activate.md
diff --git a/doc/models/gift-card-activity-adjust-decrement-reason.md b/legacy/doc/models/gift-card-activity-adjust-decrement-reason.md
similarity index 100%
rename from doc/models/gift-card-activity-adjust-decrement-reason.md
rename to legacy/doc/models/gift-card-activity-adjust-decrement-reason.md
diff --git a/doc/models/gift-card-activity-adjust-decrement.md b/legacy/doc/models/gift-card-activity-adjust-decrement.md
similarity index 100%
rename from doc/models/gift-card-activity-adjust-decrement.md
rename to legacy/doc/models/gift-card-activity-adjust-decrement.md
diff --git a/doc/models/gift-card-activity-adjust-increment-reason.md b/legacy/doc/models/gift-card-activity-adjust-increment-reason.md
similarity index 100%
rename from doc/models/gift-card-activity-adjust-increment-reason.md
rename to legacy/doc/models/gift-card-activity-adjust-increment-reason.md
diff --git a/doc/models/gift-card-activity-adjust-increment.md b/legacy/doc/models/gift-card-activity-adjust-increment.md
similarity index 100%
rename from doc/models/gift-card-activity-adjust-increment.md
rename to legacy/doc/models/gift-card-activity-adjust-increment.md
diff --git a/doc/models/gift-card-activity-block-reason.md b/legacy/doc/models/gift-card-activity-block-reason.md
similarity index 100%
rename from doc/models/gift-card-activity-block-reason.md
rename to legacy/doc/models/gift-card-activity-block-reason.md
diff --git a/doc/models/gift-card-activity-block.md b/legacy/doc/models/gift-card-activity-block.md
similarity index 100%
rename from doc/models/gift-card-activity-block.md
rename to legacy/doc/models/gift-card-activity-block.md
diff --git a/doc/models/gift-card-activity-clear-balance-reason.md b/legacy/doc/models/gift-card-activity-clear-balance-reason.md
similarity index 100%
rename from doc/models/gift-card-activity-clear-balance-reason.md
rename to legacy/doc/models/gift-card-activity-clear-balance-reason.md
diff --git a/doc/models/gift-card-activity-clear-balance.md b/legacy/doc/models/gift-card-activity-clear-balance.md
similarity index 100%
rename from doc/models/gift-card-activity-clear-balance.md
rename to legacy/doc/models/gift-card-activity-clear-balance.md
diff --git a/doc/models/gift-card-activity-deactivate-reason.md b/legacy/doc/models/gift-card-activity-deactivate-reason.md
similarity index 100%
rename from doc/models/gift-card-activity-deactivate-reason.md
rename to legacy/doc/models/gift-card-activity-deactivate-reason.md
diff --git a/doc/models/gift-card-activity-deactivate.md b/legacy/doc/models/gift-card-activity-deactivate.md
similarity index 100%
rename from doc/models/gift-card-activity-deactivate.md
rename to legacy/doc/models/gift-card-activity-deactivate.md
diff --git a/doc/models/gift-card-activity-import-reversal.md b/legacy/doc/models/gift-card-activity-import-reversal.md
similarity index 100%
rename from doc/models/gift-card-activity-import-reversal.md
rename to legacy/doc/models/gift-card-activity-import-reversal.md
diff --git a/doc/models/gift-card-activity-import.md b/legacy/doc/models/gift-card-activity-import.md
similarity index 100%
rename from doc/models/gift-card-activity-import.md
rename to legacy/doc/models/gift-card-activity-import.md
diff --git a/doc/models/gift-card-activity-load.md b/legacy/doc/models/gift-card-activity-load.md
similarity index 100%
rename from doc/models/gift-card-activity-load.md
rename to legacy/doc/models/gift-card-activity-load.md
diff --git a/doc/models/gift-card-activity-redeem-status.md b/legacy/doc/models/gift-card-activity-redeem-status.md
similarity index 100%
rename from doc/models/gift-card-activity-redeem-status.md
rename to legacy/doc/models/gift-card-activity-redeem-status.md
diff --git a/doc/models/gift-card-activity-redeem.md b/legacy/doc/models/gift-card-activity-redeem.md
similarity index 100%
rename from doc/models/gift-card-activity-redeem.md
rename to legacy/doc/models/gift-card-activity-redeem.md
diff --git a/doc/models/gift-card-activity-refund.md b/legacy/doc/models/gift-card-activity-refund.md
similarity index 100%
rename from doc/models/gift-card-activity-refund.md
rename to legacy/doc/models/gift-card-activity-refund.md
diff --git a/doc/models/gift-card-activity-transfer-balance-from.md b/legacy/doc/models/gift-card-activity-transfer-balance-from.md
similarity index 100%
rename from doc/models/gift-card-activity-transfer-balance-from.md
rename to legacy/doc/models/gift-card-activity-transfer-balance-from.md
diff --git a/doc/models/gift-card-activity-transfer-balance-to.md b/legacy/doc/models/gift-card-activity-transfer-balance-to.md
similarity index 100%
rename from doc/models/gift-card-activity-transfer-balance-to.md
rename to legacy/doc/models/gift-card-activity-transfer-balance-to.md
diff --git a/doc/models/gift-card-activity-type.md b/legacy/doc/models/gift-card-activity-type.md
similarity index 100%
rename from doc/models/gift-card-activity-type.md
rename to legacy/doc/models/gift-card-activity-type.md
diff --git a/doc/models/gift-card-activity-unblock-reason.md b/legacy/doc/models/gift-card-activity-unblock-reason.md
similarity index 100%
rename from doc/models/gift-card-activity-unblock-reason.md
rename to legacy/doc/models/gift-card-activity-unblock-reason.md
diff --git a/doc/models/gift-card-activity-unblock.md b/legacy/doc/models/gift-card-activity-unblock.md
similarity index 100%
rename from doc/models/gift-card-activity-unblock.md
rename to legacy/doc/models/gift-card-activity-unblock.md
diff --git a/doc/models/gift-card-activity-unlinked-activity-refund.md b/legacy/doc/models/gift-card-activity-unlinked-activity-refund.md
similarity index 100%
rename from doc/models/gift-card-activity-unlinked-activity-refund.md
rename to legacy/doc/models/gift-card-activity-unlinked-activity-refund.md
diff --git a/doc/models/gift-card-activity.md b/legacy/doc/models/gift-card-activity.md
similarity index 100%
rename from doc/models/gift-card-activity.md
rename to legacy/doc/models/gift-card-activity.md
diff --git a/doc/models/gift-card-gan-source.md b/legacy/doc/models/gift-card-gan-source.md
similarity index 100%
rename from doc/models/gift-card-gan-source.md
rename to legacy/doc/models/gift-card-gan-source.md
diff --git a/doc/models/gift-card-status.md b/legacy/doc/models/gift-card-status.md
similarity index 100%
rename from doc/models/gift-card-status.md
rename to legacy/doc/models/gift-card-status.md
diff --git a/doc/models/gift-card-type.md b/legacy/doc/models/gift-card-type.md
similarity index 100%
rename from doc/models/gift-card-type.md
rename to legacy/doc/models/gift-card-type.md
diff --git a/doc/models/gift-card.md b/legacy/doc/models/gift-card.md
similarity index 100%
rename from doc/models/gift-card.md
rename to legacy/doc/models/gift-card.md
diff --git a/doc/models/inventory-adjustment-group.md b/legacy/doc/models/inventory-adjustment-group.md
similarity index 100%
rename from doc/models/inventory-adjustment-group.md
rename to legacy/doc/models/inventory-adjustment-group.md
diff --git a/doc/models/inventory-adjustment.md b/legacy/doc/models/inventory-adjustment.md
similarity index 100%
rename from doc/models/inventory-adjustment.md
rename to legacy/doc/models/inventory-adjustment.md
diff --git a/doc/models/inventory-alert-type.md b/legacy/doc/models/inventory-alert-type.md
similarity index 100%
rename from doc/models/inventory-alert-type.md
rename to legacy/doc/models/inventory-alert-type.md
diff --git a/doc/models/inventory-change-type.md b/legacy/doc/models/inventory-change-type.md
similarity index 100%
rename from doc/models/inventory-change-type.md
rename to legacy/doc/models/inventory-change-type.md
diff --git a/doc/models/inventory-change.md b/legacy/doc/models/inventory-change.md
similarity index 100%
rename from doc/models/inventory-change.md
rename to legacy/doc/models/inventory-change.md
diff --git a/doc/models/inventory-count.md b/legacy/doc/models/inventory-count.md
similarity index 100%
rename from doc/models/inventory-count.md
rename to legacy/doc/models/inventory-count.md
diff --git a/doc/models/inventory-physical-count.md b/legacy/doc/models/inventory-physical-count.md
similarity index 100%
rename from doc/models/inventory-physical-count.md
rename to legacy/doc/models/inventory-physical-count.md
diff --git a/doc/models/inventory-state.md b/legacy/doc/models/inventory-state.md
similarity index 100%
rename from doc/models/inventory-state.md
rename to legacy/doc/models/inventory-state.md
diff --git a/doc/models/inventory-transfer.md b/legacy/doc/models/inventory-transfer.md
similarity index 100%
rename from doc/models/inventory-transfer.md
rename to legacy/doc/models/inventory-transfer.md
diff --git a/doc/models/invoice-accepted-payment-methods.md b/legacy/doc/models/invoice-accepted-payment-methods.md
similarity index 100%
rename from doc/models/invoice-accepted-payment-methods.md
rename to legacy/doc/models/invoice-accepted-payment-methods.md
diff --git a/doc/models/invoice-attachment.md b/legacy/doc/models/invoice-attachment.md
similarity index 100%
rename from doc/models/invoice-attachment.md
rename to legacy/doc/models/invoice-attachment.md
diff --git a/doc/models/invoice-automatic-payment-source.md b/legacy/doc/models/invoice-automatic-payment-source.md
similarity index 100%
rename from doc/models/invoice-automatic-payment-source.md
rename to legacy/doc/models/invoice-automatic-payment-source.md
diff --git a/doc/models/invoice-custom-field-placement.md b/legacy/doc/models/invoice-custom-field-placement.md
similarity index 100%
rename from doc/models/invoice-custom-field-placement.md
rename to legacy/doc/models/invoice-custom-field-placement.md
diff --git a/doc/models/invoice-custom-field.md b/legacy/doc/models/invoice-custom-field.md
similarity index 100%
rename from doc/models/invoice-custom-field.md
rename to legacy/doc/models/invoice-custom-field.md
diff --git a/doc/models/invoice-delivery-method.md b/legacy/doc/models/invoice-delivery-method.md
similarity index 100%
rename from doc/models/invoice-delivery-method.md
rename to legacy/doc/models/invoice-delivery-method.md
diff --git a/doc/models/invoice-filter.md b/legacy/doc/models/invoice-filter.md
similarity index 100%
rename from doc/models/invoice-filter.md
rename to legacy/doc/models/invoice-filter.md
diff --git a/doc/models/invoice-payment-reminder-status.md b/legacy/doc/models/invoice-payment-reminder-status.md
similarity index 100%
rename from doc/models/invoice-payment-reminder-status.md
rename to legacy/doc/models/invoice-payment-reminder-status.md
diff --git a/doc/models/invoice-payment-reminder.md b/legacy/doc/models/invoice-payment-reminder.md
similarity index 100%
rename from doc/models/invoice-payment-reminder.md
rename to legacy/doc/models/invoice-payment-reminder.md
diff --git a/doc/models/invoice-payment-request.md b/legacy/doc/models/invoice-payment-request.md
similarity index 100%
rename from doc/models/invoice-payment-request.md
rename to legacy/doc/models/invoice-payment-request.md
diff --git a/doc/models/invoice-query.md b/legacy/doc/models/invoice-query.md
similarity index 100%
rename from doc/models/invoice-query.md
rename to legacy/doc/models/invoice-query.md
diff --git a/doc/models/invoice-recipient-tax-ids.md b/legacy/doc/models/invoice-recipient-tax-ids.md
similarity index 100%
rename from doc/models/invoice-recipient-tax-ids.md
rename to legacy/doc/models/invoice-recipient-tax-ids.md
diff --git a/doc/models/invoice-recipient.md b/legacy/doc/models/invoice-recipient.md
similarity index 100%
rename from doc/models/invoice-recipient.md
rename to legacy/doc/models/invoice-recipient.md
diff --git a/doc/models/invoice-request-method.md b/legacy/doc/models/invoice-request-method.md
similarity index 100%
rename from doc/models/invoice-request-method.md
rename to legacy/doc/models/invoice-request-method.md
diff --git a/doc/models/invoice-request-type.md b/legacy/doc/models/invoice-request-type.md
similarity index 100%
rename from doc/models/invoice-request-type.md
rename to legacy/doc/models/invoice-request-type.md
diff --git a/doc/models/invoice-sort-field.md b/legacy/doc/models/invoice-sort-field.md
similarity index 100%
rename from doc/models/invoice-sort-field.md
rename to legacy/doc/models/invoice-sort-field.md
diff --git a/doc/models/invoice-sort.md b/legacy/doc/models/invoice-sort.md
similarity index 100%
rename from doc/models/invoice-sort.md
rename to legacy/doc/models/invoice-sort.md
diff --git a/doc/models/invoice-status.md b/legacy/doc/models/invoice-status.md
similarity index 100%
rename from doc/models/invoice-status.md
rename to legacy/doc/models/invoice-status.md
diff --git a/doc/models/invoice.md b/legacy/doc/models/invoice.md
similarity index 100%
rename from doc/models/invoice.md
rename to legacy/doc/models/invoice.md
diff --git a/doc/models/item-variation-location-overrides.md b/legacy/doc/models/item-variation-location-overrides.md
similarity index 100%
rename from doc/models/item-variation-location-overrides.md
rename to legacy/doc/models/item-variation-location-overrides.md
diff --git a/doc/models/job-assignment-pay-type.md b/legacy/doc/models/job-assignment-pay-type.md
similarity index 100%
rename from doc/models/job-assignment-pay-type.md
rename to legacy/doc/models/job-assignment-pay-type.md
diff --git a/doc/models/job-assignment.md b/legacy/doc/models/job-assignment.md
similarity index 100%
rename from doc/models/job-assignment.md
rename to legacy/doc/models/job-assignment.md
diff --git a/doc/models/job.md b/legacy/doc/models/job.md
similarity index 100%
rename from doc/models/job.md
rename to legacy/doc/models/job.md
diff --git a/doc/models/link-customer-to-gift-card-request.md b/legacy/doc/models/link-customer-to-gift-card-request.md
similarity index 100%
rename from doc/models/link-customer-to-gift-card-request.md
rename to legacy/doc/models/link-customer-to-gift-card-request.md
diff --git a/doc/models/link-customer-to-gift-card-response.md b/legacy/doc/models/link-customer-to-gift-card-response.md
similarity index 100%
rename from doc/models/link-customer-to-gift-card-response.md
rename to legacy/doc/models/link-customer-to-gift-card-response.md
diff --git a/doc/models/list-bank-accounts-request.md b/legacy/doc/models/list-bank-accounts-request.md
similarity index 100%
rename from doc/models/list-bank-accounts-request.md
rename to legacy/doc/models/list-bank-accounts-request.md
diff --git a/doc/models/list-bank-accounts-response.md b/legacy/doc/models/list-bank-accounts-response.md
similarity index 100%
rename from doc/models/list-bank-accounts-response.md
rename to legacy/doc/models/list-bank-accounts-response.md
diff --git a/doc/models/list-booking-custom-attribute-definitions-request.md b/legacy/doc/models/list-booking-custom-attribute-definitions-request.md
similarity index 100%
rename from doc/models/list-booking-custom-attribute-definitions-request.md
rename to legacy/doc/models/list-booking-custom-attribute-definitions-request.md
diff --git a/doc/models/list-booking-custom-attribute-definitions-response.md b/legacy/doc/models/list-booking-custom-attribute-definitions-response.md
similarity index 100%
rename from doc/models/list-booking-custom-attribute-definitions-response.md
rename to legacy/doc/models/list-booking-custom-attribute-definitions-response.md
diff --git a/doc/models/list-booking-custom-attributes-request.md b/legacy/doc/models/list-booking-custom-attributes-request.md
similarity index 100%
rename from doc/models/list-booking-custom-attributes-request.md
rename to legacy/doc/models/list-booking-custom-attributes-request.md
diff --git a/doc/models/list-booking-custom-attributes-response.md b/legacy/doc/models/list-booking-custom-attributes-response.md
similarity index 100%
rename from doc/models/list-booking-custom-attributes-response.md
rename to legacy/doc/models/list-booking-custom-attributes-response.md
diff --git a/doc/models/list-bookings-request.md b/legacy/doc/models/list-bookings-request.md
similarity index 100%
rename from doc/models/list-bookings-request.md
rename to legacy/doc/models/list-bookings-request.md
diff --git a/doc/models/list-bookings-response.md b/legacy/doc/models/list-bookings-response.md
similarity index 100%
rename from doc/models/list-bookings-response.md
rename to legacy/doc/models/list-bookings-response.md
diff --git a/doc/models/list-break-types-request.md b/legacy/doc/models/list-break-types-request.md
similarity index 100%
rename from doc/models/list-break-types-request.md
rename to legacy/doc/models/list-break-types-request.md
diff --git a/doc/models/list-break-types-response.md b/legacy/doc/models/list-break-types-response.md
similarity index 100%
rename from doc/models/list-break-types-response.md
rename to legacy/doc/models/list-break-types-response.md
diff --git a/doc/models/list-cards-request.md b/legacy/doc/models/list-cards-request.md
similarity index 100%
rename from doc/models/list-cards-request.md
rename to legacy/doc/models/list-cards-request.md
diff --git a/doc/models/list-cards-response.md b/legacy/doc/models/list-cards-response.md
similarity index 100%
rename from doc/models/list-cards-response.md
rename to legacy/doc/models/list-cards-response.md
diff --git a/doc/models/list-cash-drawer-shift-events-request.md b/legacy/doc/models/list-cash-drawer-shift-events-request.md
similarity index 100%
rename from doc/models/list-cash-drawer-shift-events-request.md
rename to legacy/doc/models/list-cash-drawer-shift-events-request.md
diff --git a/doc/models/list-cash-drawer-shift-events-response.md b/legacy/doc/models/list-cash-drawer-shift-events-response.md
similarity index 100%
rename from doc/models/list-cash-drawer-shift-events-response.md
rename to legacy/doc/models/list-cash-drawer-shift-events-response.md
diff --git a/doc/models/list-cash-drawer-shifts-request.md b/legacy/doc/models/list-cash-drawer-shifts-request.md
similarity index 100%
rename from doc/models/list-cash-drawer-shifts-request.md
rename to legacy/doc/models/list-cash-drawer-shifts-request.md
diff --git a/doc/models/list-cash-drawer-shifts-response.md b/legacy/doc/models/list-cash-drawer-shifts-response.md
similarity index 100%
rename from doc/models/list-cash-drawer-shifts-response.md
rename to legacy/doc/models/list-cash-drawer-shifts-response.md
diff --git a/doc/models/list-catalog-request.md b/legacy/doc/models/list-catalog-request.md
similarity index 100%
rename from doc/models/list-catalog-request.md
rename to legacy/doc/models/list-catalog-request.md
diff --git a/doc/models/list-catalog-response.md b/legacy/doc/models/list-catalog-response.md
similarity index 100%
rename from doc/models/list-catalog-response.md
rename to legacy/doc/models/list-catalog-response.md
diff --git a/doc/models/list-customer-custom-attribute-definitions-request.md b/legacy/doc/models/list-customer-custom-attribute-definitions-request.md
similarity index 100%
rename from doc/models/list-customer-custom-attribute-definitions-request.md
rename to legacy/doc/models/list-customer-custom-attribute-definitions-request.md
diff --git a/doc/models/list-customer-custom-attribute-definitions-response.md b/legacy/doc/models/list-customer-custom-attribute-definitions-response.md
similarity index 100%
rename from doc/models/list-customer-custom-attribute-definitions-response.md
rename to legacy/doc/models/list-customer-custom-attribute-definitions-response.md
diff --git a/doc/models/list-customer-custom-attributes-request.md b/legacy/doc/models/list-customer-custom-attributes-request.md
similarity index 100%
rename from doc/models/list-customer-custom-attributes-request.md
rename to legacy/doc/models/list-customer-custom-attributes-request.md
diff --git a/doc/models/list-customer-custom-attributes-response.md b/legacy/doc/models/list-customer-custom-attributes-response.md
similarity index 100%
rename from doc/models/list-customer-custom-attributes-response.md
rename to legacy/doc/models/list-customer-custom-attributes-response.md
diff --git a/doc/models/list-customer-groups-request.md b/legacy/doc/models/list-customer-groups-request.md
similarity index 100%
rename from doc/models/list-customer-groups-request.md
rename to legacy/doc/models/list-customer-groups-request.md
diff --git a/doc/models/list-customer-groups-response.md b/legacy/doc/models/list-customer-groups-response.md
similarity index 100%
rename from doc/models/list-customer-groups-response.md
rename to legacy/doc/models/list-customer-groups-response.md
diff --git a/doc/models/list-customer-segments-request.md b/legacy/doc/models/list-customer-segments-request.md
similarity index 100%
rename from doc/models/list-customer-segments-request.md
rename to legacy/doc/models/list-customer-segments-request.md
diff --git a/doc/models/list-customer-segments-response.md b/legacy/doc/models/list-customer-segments-response.md
similarity index 100%
rename from doc/models/list-customer-segments-response.md
rename to legacy/doc/models/list-customer-segments-response.md
diff --git a/doc/models/list-customers-request.md b/legacy/doc/models/list-customers-request.md
similarity index 100%
rename from doc/models/list-customers-request.md
rename to legacy/doc/models/list-customers-request.md
diff --git a/doc/models/list-customers-response.md b/legacy/doc/models/list-customers-response.md
similarity index 100%
rename from doc/models/list-customers-response.md
rename to legacy/doc/models/list-customers-response.md
diff --git a/doc/models/list-device-codes-request.md b/legacy/doc/models/list-device-codes-request.md
similarity index 100%
rename from doc/models/list-device-codes-request.md
rename to legacy/doc/models/list-device-codes-request.md
diff --git a/doc/models/list-device-codes-response.md b/legacy/doc/models/list-device-codes-response.md
similarity index 100%
rename from doc/models/list-device-codes-response.md
rename to legacy/doc/models/list-device-codes-response.md
diff --git a/doc/models/list-devices-request.md b/legacy/doc/models/list-devices-request.md
similarity index 100%
rename from doc/models/list-devices-request.md
rename to legacy/doc/models/list-devices-request.md
diff --git a/doc/models/list-devices-response.md b/legacy/doc/models/list-devices-response.md
similarity index 100%
rename from doc/models/list-devices-response.md
rename to legacy/doc/models/list-devices-response.md
diff --git a/doc/models/list-dispute-evidence-request.md b/legacy/doc/models/list-dispute-evidence-request.md
similarity index 100%
rename from doc/models/list-dispute-evidence-request.md
rename to legacy/doc/models/list-dispute-evidence-request.md
diff --git a/doc/models/list-dispute-evidence-response.md b/legacy/doc/models/list-dispute-evidence-response.md
similarity index 100%
rename from doc/models/list-dispute-evidence-response.md
rename to legacy/doc/models/list-dispute-evidence-response.md
diff --git a/doc/models/list-disputes-request.md b/legacy/doc/models/list-disputes-request.md
similarity index 100%
rename from doc/models/list-disputes-request.md
rename to legacy/doc/models/list-disputes-request.md
diff --git a/doc/models/list-disputes-response.md b/legacy/doc/models/list-disputes-response.md
similarity index 100%
rename from doc/models/list-disputes-response.md
rename to legacy/doc/models/list-disputes-response.md
diff --git a/doc/models/list-employee-wages-request.md b/legacy/doc/models/list-employee-wages-request.md
similarity index 100%
rename from doc/models/list-employee-wages-request.md
rename to legacy/doc/models/list-employee-wages-request.md
diff --git a/doc/models/list-employee-wages-response.md b/legacy/doc/models/list-employee-wages-response.md
similarity index 100%
rename from doc/models/list-employee-wages-response.md
rename to legacy/doc/models/list-employee-wages-response.md
diff --git a/doc/models/list-employees-request.md b/legacy/doc/models/list-employees-request.md
similarity index 100%
rename from doc/models/list-employees-request.md
rename to legacy/doc/models/list-employees-request.md
diff --git a/doc/models/list-employees-response.md b/legacy/doc/models/list-employees-response.md
similarity index 100%
rename from doc/models/list-employees-response.md
rename to legacy/doc/models/list-employees-response.md
diff --git a/doc/models/list-event-types-request.md b/legacy/doc/models/list-event-types-request.md
similarity index 100%
rename from doc/models/list-event-types-request.md
rename to legacy/doc/models/list-event-types-request.md
diff --git a/doc/models/list-event-types-response.md b/legacy/doc/models/list-event-types-response.md
similarity index 100%
rename from doc/models/list-event-types-response.md
rename to legacy/doc/models/list-event-types-response.md
diff --git a/doc/models/list-gift-card-activities-request.md b/legacy/doc/models/list-gift-card-activities-request.md
similarity index 100%
rename from doc/models/list-gift-card-activities-request.md
rename to legacy/doc/models/list-gift-card-activities-request.md
diff --git a/doc/models/list-gift-card-activities-response.md b/legacy/doc/models/list-gift-card-activities-response.md
similarity index 100%
rename from doc/models/list-gift-card-activities-response.md
rename to legacy/doc/models/list-gift-card-activities-response.md
diff --git a/doc/models/list-gift-cards-request.md b/legacy/doc/models/list-gift-cards-request.md
similarity index 100%
rename from doc/models/list-gift-cards-request.md
rename to legacy/doc/models/list-gift-cards-request.md
diff --git a/doc/models/list-gift-cards-response.md b/legacy/doc/models/list-gift-cards-response.md
similarity index 100%
rename from doc/models/list-gift-cards-response.md
rename to legacy/doc/models/list-gift-cards-response.md
diff --git a/doc/models/list-invoices-request.md b/legacy/doc/models/list-invoices-request.md
similarity index 100%
rename from doc/models/list-invoices-request.md
rename to legacy/doc/models/list-invoices-request.md
diff --git a/doc/models/list-invoices-response.md b/legacy/doc/models/list-invoices-response.md
similarity index 100%
rename from doc/models/list-invoices-response.md
rename to legacy/doc/models/list-invoices-response.md
diff --git a/doc/models/list-jobs-request.md b/legacy/doc/models/list-jobs-request.md
similarity index 100%
rename from doc/models/list-jobs-request.md
rename to legacy/doc/models/list-jobs-request.md
diff --git a/doc/models/list-jobs-response.md b/legacy/doc/models/list-jobs-response.md
similarity index 100%
rename from doc/models/list-jobs-response.md
rename to legacy/doc/models/list-jobs-response.md
diff --git a/doc/models/list-location-booking-profiles-request.md b/legacy/doc/models/list-location-booking-profiles-request.md
similarity index 100%
rename from doc/models/list-location-booking-profiles-request.md
rename to legacy/doc/models/list-location-booking-profiles-request.md
diff --git a/doc/models/list-location-booking-profiles-response.md b/legacy/doc/models/list-location-booking-profiles-response.md
similarity index 100%
rename from doc/models/list-location-booking-profiles-response.md
rename to legacy/doc/models/list-location-booking-profiles-response.md
diff --git a/doc/models/list-location-custom-attribute-definitions-request.md b/legacy/doc/models/list-location-custom-attribute-definitions-request.md
similarity index 100%
rename from doc/models/list-location-custom-attribute-definitions-request.md
rename to legacy/doc/models/list-location-custom-attribute-definitions-request.md
diff --git a/doc/models/list-location-custom-attribute-definitions-response.md b/legacy/doc/models/list-location-custom-attribute-definitions-response.md
similarity index 100%
rename from doc/models/list-location-custom-attribute-definitions-response.md
rename to legacy/doc/models/list-location-custom-attribute-definitions-response.md
diff --git a/doc/models/list-location-custom-attributes-request.md b/legacy/doc/models/list-location-custom-attributes-request.md
similarity index 100%
rename from doc/models/list-location-custom-attributes-request.md
rename to legacy/doc/models/list-location-custom-attributes-request.md
diff --git a/doc/models/list-location-custom-attributes-response.md b/legacy/doc/models/list-location-custom-attributes-response.md
similarity index 100%
rename from doc/models/list-location-custom-attributes-response.md
rename to legacy/doc/models/list-location-custom-attributes-response.md
diff --git a/doc/models/list-locations-response.md b/legacy/doc/models/list-locations-response.md
similarity index 100%
rename from doc/models/list-locations-response.md
rename to legacy/doc/models/list-locations-response.md
diff --git a/doc/models/list-loyalty-programs-response.md b/legacy/doc/models/list-loyalty-programs-response.md
similarity index 100%
rename from doc/models/list-loyalty-programs-response.md
rename to legacy/doc/models/list-loyalty-programs-response.md
diff --git a/doc/models/list-loyalty-promotions-request.md b/legacy/doc/models/list-loyalty-promotions-request.md
similarity index 100%
rename from doc/models/list-loyalty-promotions-request.md
rename to legacy/doc/models/list-loyalty-promotions-request.md
diff --git a/doc/models/list-loyalty-promotions-response.md b/legacy/doc/models/list-loyalty-promotions-response.md
similarity index 100%
rename from doc/models/list-loyalty-promotions-response.md
rename to legacy/doc/models/list-loyalty-promotions-response.md
diff --git a/doc/models/list-merchant-custom-attribute-definitions-request.md b/legacy/doc/models/list-merchant-custom-attribute-definitions-request.md
similarity index 100%
rename from doc/models/list-merchant-custom-attribute-definitions-request.md
rename to legacy/doc/models/list-merchant-custom-attribute-definitions-request.md
diff --git a/doc/models/list-merchant-custom-attribute-definitions-response.md b/legacy/doc/models/list-merchant-custom-attribute-definitions-response.md
similarity index 100%
rename from doc/models/list-merchant-custom-attribute-definitions-response.md
rename to legacy/doc/models/list-merchant-custom-attribute-definitions-response.md
diff --git a/doc/models/list-merchant-custom-attributes-request.md b/legacy/doc/models/list-merchant-custom-attributes-request.md
similarity index 100%
rename from doc/models/list-merchant-custom-attributes-request.md
rename to legacy/doc/models/list-merchant-custom-attributes-request.md
diff --git a/doc/models/list-merchant-custom-attributes-response.md b/legacy/doc/models/list-merchant-custom-attributes-response.md
similarity index 100%
rename from doc/models/list-merchant-custom-attributes-response.md
rename to legacy/doc/models/list-merchant-custom-attributes-response.md
diff --git a/doc/models/list-merchants-request.md b/legacy/doc/models/list-merchants-request.md
similarity index 100%
rename from doc/models/list-merchants-request.md
rename to legacy/doc/models/list-merchants-request.md
diff --git a/doc/models/list-merchants-response.md b/legacy/doc/models/list-merchants-response.md
similarity index 100%
rename from doc/models/list-merchants-response.md
rename to legacy/doc/models/list-merchants-response.md
diff --git a/doc/models/list-order-custom-attribute-definitions-request.md b/legacy/doc/models/list-order-custom-attribute-definitions-request.md
similarity index 100%
rename from doc/models/list-order-custom-attribute-definitions-request.md
rename to legacy/doc/models/list-order-custom-attribute-definitions-request.md
diff --git a/doc/models/list-order-custom-attribute-definitions-response.md b/legacy/doc/models/list-order-custom-attribute-definitions-response.md
similarity index 100%
rename from doc/models/list-order-custom-attribute-definitions-response.md
rename to legacy/doc/models/list-order-custom-attribute-definitions-response.md
diff --git a/doc/models/list-order-custom-attributes-request.md b/legacy/doc/models/list-order-custom-attributes-request.md
similarity index 100%
rename from doc/models/list-order-custom-attributes-request.md
rename to legacy/doc/models/list-order-custom-attributes-request.md
diff --git a/doc/models/list-order-custom-attributes-response.md b/legacy/doc/models/list-order-custom-attributes-response.md
similarity index 100%
rename from doc/models/list-order-custom-attributes-response.md
rename to legacy/doc/models/list-order-custom-attributes-response.md
diff --git a/doc/models/list-payment-links-request.md b/legacy/doc/models/list-payment-links-request.md
similarity index 100%
rename from doc/models/list-payment-links-request.md
rename to legacy/doc/models/list-payment-links-request.md
diff --git a/doc/models/list-payment-links-response.md b/legacy/doc/models/list-payment-links-response.md
similarity index 100%
rename from doc/models/list-payment-links-response.md
rename to legacy/doc/models/list-payment-links-response.md
diff --git a/doc/models/list-payment-refunds-request.md b/legacy/doc/models/list-payment-refunds-request.md
similarity index 100%
rename from doc/models/list-payment-refunds-request.md
rename to legacy/doc/models/list-payment-refunds-request.md
diff --git a/doc/models/list-payment-refunds-response.md b/legacy/doc/models/list-payment-refunds-response.md
similarity index 100%
rename from doc/models/list-payment-refunds-response.md
rename to legacy/doc/models/list-payment-refunds-response.md
diff --git a/doc/models/list-payments-request.md b/legacy/doc/models/list-payments-request.md
similarity index 100%
rename from doc/models/list-payments-request.md
rename to legacy/doc/models/list-payments-request.md
diff --git a/doc/models/list-payments-response.md b/legacy/doc/models/list-payments-response.md
similarity index 100%
rename from doc/models/list-payments-response.md
rename to legacy/doc/models/list-payments-response.md
diff --git a/doc/models/list-payout-entries-request.md b/legacy/doc/models/list-payout-entries-request.md
similarity index 100%
rename from doc/models/list-payout-entries-request.md
rename to legacy/doc/models/list-payout-entries-request.md
diff --git a/doc/models/list-payout-entries-response.md b/legacy/doc/models/list-payout-entries-response.md
similarity index 100%
rename from doc/models/list-payout-entries-response.md
rename to legacy/doc/models/list-payout-entries-response.md
diff --git a/doc/models/list-payouts-request.md b/legacy/doc/models/list-payouts-request.md
similarity index 100%
rename from doc/models/list-payouts-request.md
rename to legacy/doc/models/list-payouts-request.md
diff --git a/doc/models/list-payouts-response.md b/legacy/doc/models/list-payouts-response.md
similarity index 100%
rename from doc/models/list-payouts-response.md
rename to legacy/doc/models/list-payouts-response.md
diff --git a/doc/models/list-refunds-request.md b/legacy/doc/models/list-refunds-request.md
similarity index 100%
rename from doc/models/list-refunds-request.md
rename to legacy/doc/models/list-refunds-request.md
diff --git a/doc/models/list-refunds-response.md b/legacy/doc/models/list-refunds-response.md
similarity index 100%
rename from doc/models/list-refunds-response.md
rename to legacy/doc/models/list-refunds-response.md
diff --git a/doc/models/list-sites-response.md b/legacy/doc/models/list-sites-response.md
similarity index 100%
rename from doc/models/list-sites-response.md
rename to legacy/doc/models/list-sites-response.md
diff --git a/doc/models/list-subscription-events-request.md b/legacy/doc/models/list-subscription-events-request.md
similarity index 100%
rename from doc/models/list-subscription-events-request.md
rename to legacy/doc/models/list-subscription-events-request.md
diff --git a/doc/models/list-subscription-events-response.md b/legacy/doc/models/list-subscription-events-response.md
similarity index 100%
rename from doc/models/list-subscription-events-response.md
rename to legacy/doc/models/list-subscription-events-response.md
diff --git a/doc/models/list-team-member-booking-profiles-request.md b/legacy/doc/models/list-team-member-booking-profiles-request.md
similarity index 100%
rename from doc/models/list-team-member-booking-profiles-request.md
rename to legacy/doc/models/list-team-member-booking-profiles-request.md
diff --git a/doc/models/list-team-member-booking-profiles-response.md b/legacy/doc/models/list-team-member-booking-profiles-response.md
similarity index 100%
rename from doc/models/list-team-member-booking-profiles-response.md
rename to legacy/doc/models/list-team-member-booking-profiles-response.md
diff --git a/doc/models/list-team-member-wages-request.md b/legacy/doc/models/list-team-member-wages-request.md
similarity index 100%
rename from doc/models/list-team-member-wages-request.md
rename to legacy/doc/models/list-team-member-wages-request.md
diff --git a/doc/models/list-team-member-wages-response.md b/legacy/doc/models/list-team-member-wages-response.md
similarity index 100%
rename from doc/models/list-team-member-wages-response.md
rename to legacy/doc/models/list-team-member-wages-response.md
diff --git a/doc/models/list-transactions-request.md b/legacy/doc/models/list-transactions-request.md
similarity index 100%
rename from doc/models/list-transactions-request.md
rename to legacy/doc/models/list-transactions-request.md
diff --git a/doc/models/list-transactions-response.md b/legacy/doc/models/list-transactions-response.md
similarity index 100%
rename from doc/models/list-transactions-response.md
rename to legacy/doc/models/list-transactions-response.md
diff --git a/doc/models/list-webhook-event-types-request.md b/legacy/doc/models/list-webhook-event-types-request.md
similarity index 100%
rename from doc/models/list-webhook-event-types-request.md
rename to legacy/doc/models/list-webhook-event-types-request.md
diff --git a/doc/models/list-webhook-event-types-response.md b/legacy/doc/models/list-webhook-event-types-response.md
similarity index 100%
rename from doc/models/list-webhook-event-types-response.md
rename to legacy/doc/models/list-webhook-event-types-response.md
diff --git a/doc/models/list-webhook-subscriptions-request.md b/legacy/doc/models/list-webhook-subscriptions-request.md
similarity index 100%
rename from doc/models/list-webhook-subscriptions-request.md
rename to legacy/doc/models/list-webhook-subscriptions-request.md
diff --git a/doc/models/list-webhook-subscriptions-response.md b/legacy/doc/models/list-webhook-subscriptions-response.md
similarity index 100%
rename from doc/models/list-webhook-subscriptions-response.md
rename to legacy/doc/models/list-webhook-subscriptions-response.md
diff --git a/doc/models/list-workweek-configs-request.md b/legacy/doc/models/list-workweek-configs-request.md
similarity index 100%
rename from doc/models/list-workweek-configs-request.md
rename to legacy/doc/models/list-workweek-configs-request.md
diff --git a/doc/models/list-workweek-configs-response.md b/legacy/doc/models/list-workweek-configs-response.md
similarity index 100%
rename from doc/models/list-workweek-configs-response.md
rename to legacy/doc/models/list-workweek-configs-response.md
diff --git a/doc/models/location-booking-profile.md b/legacy/doc/models/location-booking-profile.md
similarity index 100%
rename from doc/models/location-booking-profile.md
rename to legacy/doc/models/location-booking-profile.md
diff --git a/doc/models/location-capability.md b/legacy/doc/models/location-capability.md
similarity index 100%
rename from doc/models/location-capability.md
rename to legacy/doc/models/location-capability.md
diff --git a/doc/models/location-status.md b/legacy/doc/models/location-status.md
similarity index 100%
rename from doc/models/location-status.md
rename to legacy/doc/models/location-status.md
diff --git a/doc/models/location-type.md b/legacy/doc/models/location-type.md
similarity index 100%
rename from doc/models/location-type.md
rename to legacy/doc/models/location-type.md
diff --git a/doc/models/location.md b/legacy/doc/models/location.md
similarity index 100%
rename from doc/models/location.md
rename to legacy/doc/models/location.md
diff --git a/doc/models/loyalty-account-expiring-point-deadline.md b/legacy/doc/models/loyalty-account-expiring-point-deadline.md
similarity index 100%
rename from doc/models/loyalty-account-expiring-point-deadline.md
rename to legacy/doc/models/loyalty-account-expiring-point-deadline.md
diff --git a/doc/models/loyalty-account-mapping-type.md b/legacy/doc/models/loyalty-account-mapping-type.md
similarity index 100%
rename from doc/models/loyalty-account-mapping-type.md
rename to legacy/doc/models/loyalty-account-mapping-type.md
diff --git a/doc/models/loyalty-account-mapping.md b/legacy/doc/models/loyalty-account-mapping.md
similarity index 100%
rename from doc/models/loyalty-account-mapping.md
rename to legacy/doc/models/loyalty-account-mapping.md
diff --git a/doc/models/loyalty-account.md b/legacy/doc/models/loyalty-account.md
similarity index 100%
rename from doc/models/loyalty-account.md
rename to legacy/doc/models/loyalty-account.md
diff --git a/doc/models/loyalty-event-accumulate-points.md b/legacy/doc/models/loyalty-event-accumulate-points.md
similarity index 100%
rename from doc/models/loyalty-event-accumulate-points.md
rename to legacy/doc/models/loyalty-event-accumulate-points.md
diff --git a/doc/models/loyalty-event-accumulate-promotion-points.md b/legacy/doc/models/loyalty-event-accumulate-promotion-points.md
similarity index 100%
rename from doc/models/loyalty-event-accumulate-promotion-points.md
rename to legacy/doc/models/loyalty-event-accumulate-promotion-points.md
diff --git a/doc/models/loyalty-event-adjust-points.md b/legacy/doc/models/loyalty-event-adjust-points.md
similarity index 100%
rename from doc/models/loyalty-event-adjust-points.md
rename to legacy/doc/models/loyalty-event-adjust-points.md
diff --git a/doc/models/loyalty-event-create-reward.md b/legacy/doc/models/loyalty-event-create-reward.md
similarity index 100%
rename from doc/models/loyalty-event-create-reward.md
rename to legacy/doc/models/loyalty-event-create-reward.md
diff --git a/doc/models/loyalty-event-date-time-filter.md b/legacy/doc/models/loyalty-event-date-time-filter.md
similarity index 100%
rename from doc/models/loyalty-event-date-time-filter.md
rename to legacy/doc/models/loyalty-event-date-time-filter.md
diff --git a/doc/models/loyalty-event-delete-reward.md b/legacy/doc/models/loyalty-event-delete-reward.md
similarity index 100%
rename from doc/models/loyalty-event-delete-reward.md
rename to legacy/doc/models/loyalty-event-delete-reward.md
diff --git a/doc/models/loyalty-event-expire-points.md b/legacy/doc/models/loyalty-event-expire-points.md
similarity index 100%
rename from doc/models/loyalty-event-expire-points.md
rename to legacy/doc/models/loyalty-event-expire-points.md
diff --git a/doc/models/loyalty-event-filter.md b/legacy/doc/models/loyalty-event-filter.md
similarity index 100%
rename from doc/models/loyalty-event-filter.md
rename to legacy/doc/models/loyalty-event-filter.md
diff --git a/doc/models/loyalty-event-location-filter.md b/legacy/doc/models/loyalty-event-location-filter.md
similarity index 100%
rename from doc/models/loyalty-event-location-filter.md
rename to legacy/doc/models/loyalty-event-location-filter.md
diff --git a/doc/models/loyalty-event-loyalty-account-filter.md b/legacy/doc/models/loyalty-event-loyalty-account-filter.md
similarity index 100%
rename from doc/models/loyalty-event-loyalty-account-filter.md
rename to legacy/doc/models/loyalty-event-loyalty-account-filter.md
diff --git a/doc/models/loyalty-event-order-filter.md b/legacy/doc/models/loyalty-event-order-filter.md
similarity index 100%
rename from doc/models/loyalty-event-order-filter.md
rename to legacy/doc/models/loyalty-event-order-filter.md
diff --git a/doc/models/loyalty-event-other.md b/legacy/doc/models/loyalty-event-other.md
similarity index 100%
rename from doc/models/loyalty-event-other.md
rename to legacy/doc/models/loyalty-event-other.md
diff --git a/doc/models/loyalty-event-query.md b/legacy/doc/models/loyalty-event-query.md
similarity index 100%
rename from doc/models/loyalty-event-query.md
rename to legacy/doc/models/loyalty-event-query.md
diff --git a/doc/models/loyalty-event-redeem-reward.md b/legacy/doc/models/loyalty-event-redeem-reward.md
similarity index 100%
rename from doc/models/loyalty-event-redeem-reward.md
rename to legacy/doc/models/loyalty-event-redeem-reward.md
diff --git a/doc/models/loyalty-event-source.md b/legacy/doc/models/loyalty-event-source.md
similarity index 100%
rename from doc/models/loyalty-event-source.md
rename to legacy/doc/models/loyalty-event-source.md
diff --git a/doc/models/loyalty-event-type-filter.md b/legacy/doc/models/loyalty-event-type-filter.md
similarity index 100%
rename from doc/models/loyalty-event-type-filter.md
rename to legacy/doc/models/loyalty-event-type-filter.md
diff --git a/doc/models/loyalty-event-type.md b/legacy/doc/models/loyalty-event-type.md
similarity index 100%
rename from doc/models/loyalty-event-type.md
rename to legacy/doc/models/loyalty-event-type.md
diff --git a/doc/models/loyalty-event.md b/legacy/doc/models/loyalty-event.md
similarity index 100%
rename from doc/models/loyalty-event.md
rename to legacy/doc/models/loyalty-event.md
diff --git a/doc/models/loyalty-program-accrual-rule-category-data.md b/legacy/doc/models/loyalty-program-accrual-rule-category-data.md
similarity index 100%
rename from doc/models/loyalty-program-accrual-rule-category-data.md
rename to legacy/doc/models/loyalty-program-accrual-rule-category-data.md
diff --git a/doc/models/loyalty-program-accrual-rule-item-variation-data.md b/legacy/doc/models/loyalty-program-accrual-rule-item-variation-data.md
similarity index 100%
rename from doc/models/loyalty-program-accrual-rule-item-variation-data.md
rename to legacy/doc/models/loyalty-program-accrual-rule-item-variation-data.md
diff --git a/doc/models/loyalty-program-accrual-rule-spend-data.md b/legacy/doc/models/loyalty-program-accrual-rule-spend-data.md
similarity index 100%
rename from doc/models/loyalty-program-accrual-rule-spend-data.md
rename to legacy/doc/models/loyalty-program-accrual-rule-spend-data.md
diff --git a/doc/models/loyalty-program-accrual-rule-tax-mode.md b/legacy/doc/models/loyalty-program-accrual-rule-tax-mode.md
similarity index 100%
rename from doc/models/loyalty-program-accrual-rule-tax-mode.md
rename to legacy/doc/models/loyalty-program-accrual-rule-tax-mode.md
diff --git a/doc/models/loyalty-program-accrual-rule-type.md b/legacy/doc/models/loyalty-program-accrual-rule-type.md
similarity index 100%
rename from doc/models/loyalty-program-accrual-rule-type.md
rename to legacy/doc/models/loyalty-program-accrual-rule-type.md
diff --git a/doc/models/loyalty-program-accrual-rule-visit-data.md b/legacy/doc/models/loyalty-program-accrual-rule-visit-data.md
similarity index 100%
rename from doc/models/loyalty-program-accrual-rule-visit-data.md
rename to legacy/doc/models/loyalty-program-accrual-rule-visit-data.md
diff --git a/doc/models/loyalty-program-accrual-rule.md b/legacy/doc/models/loyalty-program-accrual-rule.md
similarity index 100%
rename from doc/models/loyalty-program-accrual-rule.md
rename to legacy/doc/models/loyalty-program-accrual-rule.md
diff --git a/doc/models/loyalty-program-expiration-policy.md b/legacy/doc/models/loyalty-program-expiration-policy.md
similarity index 100%
rename from doc/models/loyalty-program-expiration-policy.md
rename to legacy/doc/models/loyalty-program-expiration-policy.md
diff --git a/doc/models/loyalty-program-reward-definition-scope.md b/legacy/doc/models/loyalty-program-reward-definition-scope.md
similarity index 100%
rename from doc/models/loyalty-program-reward-definition-scope.md
rename to legacy/doc/models/loyalty-program-reward-definition-scope.md
diff --git a/doc/models/loyalty-program-reward-definition-type.md b/legacy/doc/models/loyalty-program-reward-definition-type.md
similarity index 100%
rename from doc/models/loyalty-program-reward-definition-type.md
rename to legacy/doc/models/loyalty-program-reward-definition-type.md
diff --git a/doc/models/loyalty-program-reward-definition.md b/legacy/doc/models/loyalty-program-reward-definition.md
similarity index 100%
rename from doc/models/loyalty-program-reward-definition.md
rename to legacy/doc/models/loyalty-program-reward-definition.md
diff --git a/doc/models/loyalty-program-reward-tier.md b/legacy/doc/models/loyalty-program-reward-tier.md
similarity index 100%
rename from doc/models/loyalty-program-reward-tier.md
rename to legacy/doc/models/loyalty-program-reward-tier.md
diff --git a/doc/models/loyalty-program-status.md b/legacy/doc/models/loyalty-program-status.md
similarity index 100%
rename from doc/models/loyalty-program-status.md
rename to legacy/doc/models/loyalty-program-status.md
diff --git a/doc/models/loyalty-program-terminology.md b/legacy/doc/models/loyalty-program-terminology.md
similarity index 100%
rename from doc/models/loyalty-program-terminology.md
rename to legacy/doc/models/loyalty-program-terminology.md
diff --git a/doc/models/loyalty-program.md b/legacy/doc/models/loyalty-program.md
similarity index 100%
rename from doc/models/loyalty-program.md
rename to legacy/doc/models/loyalty-program.md
diff --git a/doc/models/loyalty-promotion-available-time-data.md b/legacy/doc/models/loyalty-promotion-available-time-data.md
similarity index 100%
rename from doc/models/loyalty-promotion-available-time-data.md
rename to legacy/doc/models/loyalty-promotion-available-time-data.md
diff --git a/doc/models/loyalty-promotion-incentive-points-addition-data.md b/legacy/doc/models/loyalty-promotion-incentive-points-addition-data.md
similarity index 100%
rename from doc/models/loyalty-promotion-incentive-points-addition-data.md
rename to legacy/doc/models/loyalty-promotion-incentive-points-addition-data.md
diff --git a/doc/models/loyalty-promotion-incentive-points-multiplier-data.md b/legacy/doc/models/loyalty-promotion-incentive-points-multiplier-data.md
similarity index 100%
rename from doc/models/loyalty-promotion-incentive-points-multiplier-data.md
rename to legacy/doc/models/loyalty-promotion-incentive-points-multiplier-data.md
diff --git a/doc/models/loyalty-promotion-incentive-type.md b/legacy/doc/models/loyalty-promotion-incentive-type.md
similarity index 100%
rename from doc/models/loyalty-promotion-incentive-type.md
rename to legacy/doc/models/loyalty-promotion-incentive-type.md
diff --git a/doc/models/loyalty-promotion-incentive.md b/legacy/doc/models/loyalty-promotion-incentive.md
similarity index 100%
rename from doc/models/loyalty-promotion-incentive.md
rename to legacy/doc/models/loyalty-promotion-incentive.md
diff --git a/doc/models/loyalty-promotion-status.md b/legacy/doc/models/loyalty-promotion-status.md
similarity index 100%
rename from doc/models/loyalty-promotion-status.md
rename to legacy/doc/models/loyalty-promotion-status.md
diff --git a/doc/models/loyalty-promotion-trigger-limit-interval.md b/legacy/doc/models/loyalty-promotion-trigger-limit-interval.md
similarity index 100%
rename from doc/models/loyalty-promotion-trigger-limit-interval.md
rename to legacy/doc/models/loyalty-promotion-trigger-limit-interval.md
diff --git a/doc/models/loyalty-promotion-trigger-limit.md b/legacy/doc/models/loyalty-promotion-trigger-limit.md
similarity index 100%
rename from doc/models/loyalty-promotion-trigger-limit.md
rename to legacy/doc/models/loyalty-promotion-trigger-limit.md
diff --git a/doc/models/loyalty-promotion.md b/legacy/doc/models/loyalty-promotion.md
similarity index 100%
rename from doc/models/loyalty-promotion.md
rename to legacy/doc/models/loyalty-promotion.md
diff --git a/doc/models/loyalty-reward-status.md b/legacy/doc/models/loyalty-reward-status.md
similarity index 100%
rename from doc/models/loyalty-reward-status.md
rename to legacy/doc/models/loyalty-reward-status.md
diff --git a/doc/models/loyalty-reward.md b/legacy/doc/models/loyalty-reward.md
similarity index 100%
rename from doc/models/loyalty-reward.md
rename to legacy/doc/models/loyalty-reward.md
diff --git a/doc/models/measurement-unit-area.md b/legacy/doc/models/measurement-unit-area.md
similarity index 100%
rename from doc/models/measurement-unit-area.md
rename to legacy/doc/models/measurement-unit-area.md
diff --git a/doc/models/measurement-unit-custom.md b/legacy/doc/models/measurement-unit-custom.md
similarity index 100%
rename from doc/models/measurement-unit-custom.md
rename to legacy/doc/models/measurement-unit-custom.md
diff --git a/doc/models/measurement-unit-generic.md b/legacy/doc/models/measurement-unit-generic.md
similarity index 100%
rename from doc/models/measurement-unit-generic.md
rename to legacy/doc/models/measurement-unit-generic.md
diff --git a/doc/models/measurement-unit-length.md b/legacy/doc/models/measurement-unit-length.md
similarity index 100%
rename from doc/models/measurement-unit-length.md
rename to legacy/doc/models/measurement-unit-length.md
diff --git a/doc/models/measurement-unit-time.md b/legacy/doc/models/measurement-unit-time.md
similarity index 100%
rename from doc/models/measurement-unit-time.md
rename to legacy/doc/models/measurement-unit-time.md
diff --git a/doc/models/measurement-unit-unit-type.md b/legacy/doc/models/measurement-unit-unit-type.md
similarity index 100%
rename from doc/models/measurement-unit-unit-type.md
rename to legacy/doc/models/measurement-unit-unit-type.md
diff --git a/doc/models/measurement-unit-volume.md b/legacy/doc/models/measurement-unit-volume.md
similarity index 100%
rename from doc/models/measurement-unit-volume.md
rename to legacy/doc/models/measurement-unit-volume.md
diff --git a/doc/models/measurement-unit-weight.md b/legacy/doc/models/measurement-unit-weight.md
similarity index 100%
rename from doc/models/measurement-unit-weight.md
rename to legacy/doc/models/measurement-unit-weight.md
diff --git a/doc/models/measurement-unit.md b/legacy/doc/models/measurement-unit.md
similarity index 100%
rename from doc/models/measurement-unit.md
rename to legacy/doc/models/measurement-unit.md
diff --git a/doc/models/merchant-status.md b/legacy/doc/models/merchant-status.md
similarity index 100%
rename from doc/models/merchant-status.md
rename to legacy/doc/models/merchant-status.md
diff --git a/doc/models/merchant.md b/legacy/doc/models/merchant.md
similarity index 100%
rename from doc/models/merchant.md
rename to legacy/doc/models/merchant.md
diff --git a/doc/models/modifier-location-overrides.md b/legacy/doc/models/modifier-location-overrides.md
similarity index 100%
rename from doc/models/modifier-location-overrides.md
rename to legacy/doc/models/modifier-location-overrides.md
diff --git a/doc/models/money.md b/legacy/doc/models/money.md
similarity index 100%
rename from doc/models/money.md
rename to legacy/doc/models/money.md
diff --git a/doc/models/obtain-token-request.md b/legacy/doc/models/obtain-token-request.md
similarity index 100%
rename from doc/models/obtain-token-request.md
rename to legacy/doc/models/obtain-token-request.md
diff --git a/doc/models/obtain-token-response.md b/legacy/doc/models/obtain-token-response.md
similarity index 100%
rename from doc/models/obtain-token-response.md
rename to legacy/doc/models/obtain-token-response.md
diff --git a/doc/models/offline-payment-details.md b/legacy/doc/models/offline-payment-details.md
similarity index 100%
rename from doc/models/offline-payment-details.md
rename to legacy/doc/models/offline-payment-details.md
diff --git a/doc/models/order-created-object.md b/legacy/doc/models/order-created-object.md
similarity index 100%
rename from doc/models/order-created-object.md
rename to legacy/doc/models/order-created-object.md
diff --git a/doc/models/order-created.md b/legacy/doc/models/order-created.md
similarity index 100%
rename from doc/models/order-created.md
rename to legacy/doc/models/order-created.md
diff --git a/doc/models/order-entry.md b/legacy/doc/models/order-entry.md
similarity index 100%
rename from doc/models/order-entry.md
rename to legacy/doc/models/order-entry.md
diff --git a/doc/models/order-fulfillment-delivery-details-schedule-type.md b/legacy/doc/models/order-fulfillment-delivery-details-schedule-type.md
similarity index 100%
rename from doc/models/order-fulfillment-delivery-details-schedule-type.md
rename to legacy/doc/models/order-fulfillment-delivery-details-schedule-type.md
diff --git a/doc/models/order-fulfillment-delivery-details.md b/legacy/doc/models/order-fulfillment-delivery-details.md
similarity index 100%
rename from doc/models/order-fulfillment-delivery-details.md
rename to legacy/doc/models/order-fulfillment-delivery-details.md
diff --git a/doc/models/order-fulfillment-fulfillment-entry.md b/legacy/doc/models/order-fulfillment-fulfillment-entry.md
similarity index 100%
rename from doc/models/order-fulfillment-fulfillment-entry.md
rename to legacy/doc/models/order-fulfillment-fulfillment-entry.md
diff --git a/doc/models/order-fulfillment-fulfillment-line-item-application.md b/legacy/doc/models/order-fulfillment-fulfillment-line-item-application.md
similarity index 100%
rename from doc/models/order-fulfillment-fulfillment-line-item-application.md
rename to legacy/doc/models/order-fulfillment-fulfillment-line-item-application.md
diff --git a/doc/models/order-fulfillment-pickup-details-curbside-pickup-details.md b/legacy/doc/models/order-fulfillment-pickup-details-curbside-pickup-details.md
similarity index 100%
rename from doc/models/order-fulfillment-pickup-details-curbside-pickup-details.md
rename to legacy/doc/models/order-fulfillment-pickup-details-curbside-pickup-details.md
diff --git a/doc/models/order-fulfillment-pickup-details-schedule-type.md b/legacy/doc/models/order-fulfillment-pickup-details-schedule-type.md
similarity index 100%
rename from doc/models/order-fulfillment-pickup-details-schedule-type.md
rename to legacy/doc/models/order-fulfillment-pickup-details-schedule-type.md
diff --git a/doc/models/order-fulfillment-pickup-details.md b/legacy/doc/models/order-fulfillment-pickup-details.md
similarity index 100%
rename from doc/models/order-fulfillment-pickup-details.md
rename to legacy/doc/models/order-fulfillment-pickup-details.md
diff --git a/doc/models/order-fulfillment-recipient.md b/legacy/doc/models/order-fulfillment-recipient.md
similarity index 100%
rename from doc/models/order-fulfillment-recipient.md
rename to legacy/doc/models/order-fulfillment-recipient.md
diff --git a/doc/models/order-fulfillment-shipment-details.md b/legacy/doc/models/order-fulfillment-shipment-details.md
similarity index 100%
rename from doc/models/order-fulfillment-shipment-details.md
rename to legacy/doc/models/order-fulfillment-shipment-details.md
diff --git a/doc/models/order-fulfillment-state.md b/legacy/doc/models/order-fulfillment-state.md
similarity index 100%
rename from doc/models/order-fulfillment-state.md
rename to legacy/doc/models/order-fulfillment-state.md
diff --git a/doc/models/order-fulfillment-type.md b/legacy/doc/models/order-fulfillment-type.md
similarity index 100%
rename from doc/models/order-fulfillment-type.md
rename to legacy/doc/models/order-fulfillment-type.md
diff --git a/doc/models/order-fulfillment-updated-object.md b/legacy/doc/models/order-fulfillment-updated-object.md
similarity index 100%
rename from doc/models/order-fulfillment-updated-object.md
rename to legacy/doc/models/order-fulfillment-updated-object.md
diff --git a/doc/models/order-fulfillment-updated-update.md b/legacy/doc/models/order-fulfillment-updated-update.md
similarity index 100%
rename from doc/models/order-fulfillment-updated-update.md
rename to legacy/doc/models/order-fulfillment-updated-update.md
diff --git a/doc/models/order-fulfillment-updated.md b/legacy/doc/models/order-fulfillment-updated.md
similarity index 100%
rename from doc/models/order-fulfillment-updated.md
rename to legacy/doc/models/order-fulfillment-updated.md
diff --git a/doc/models/order-fulfillment.md b/legacy/doc/models/order-fulfillment.md
similarity index 100%
rename from doc/models/order-fulfillment.md
rename to legacy/doc/models/order-fulfillment.md
diff --git a/doc/models/order-line-item-applied-discount.md b/legacy/doc/models/order-line-item-applied-discount.md
similarity index 100%
rename from doc/models/order-line-item-applied-discount.md
rename to legacy/doc/models/order-line-item-applied-discount.md
diff --git a/doc/models/order-line-item-applied-service-charge.md b/legacy/doc/models/order-line-item-applied-service-charge.md
similarity index 100%
rename from doc/models/order-line-item-applied-service-charge.md
rename to legacy/doc/models/order-line-item-applied-service-charge.md
diff --git a/doc/models/order-line-item-applied-tax.md b/legacy/doc/models/order-line-item-applied-tax.md
similarity index 100%
rename from doc/models/order-line-item-applied-tax.md
rename to legacy/doc/models/order-line-item-applied-tax.md
diff --git a/doc/models/order-line-item-discount-scope.md b/legacy/doc/models/order-line-item-discount-scope.md
similarity index 100%
rename from doc/models/order-line-item-discount-scope.md
rename to legacy/doc/models/order-line-item-discount-scope.md
diff --git a/doc/models/order-line-item-discount-type.md b/legacy/doc/models/order-line-item-discount-type.md
similarity index 100%
rename from doc/models/order-line-item-discount-type.md
rename to legacy/doc/models/order-line-item-discount-type.md
diff --git a/doc/models/order-line-item-discount.md b/legacy/doc/models/order-line-item-discount.md
similarity index 100%
rename from doc/models/order-line-item-discount.md
rename to legacy/doc/models/order-line-item-discount.md
diff --git a/doc/models/order-line-item-item-type.md b/legacy/doc/models/order-line-item-item-type.md
similarity index 100%
rename from doc/models/order-line-item-item-type.md
rename to legacy/doc/models/order-line-item-item-type.md
diff --git a/doc/models/order-line-item-modifier.md b/legacy/doc/models/order-line-item-modifier.md
similarity index 100%
rename from doc/models/order-line-item-modifier.md
rename to legacy/doc/models/order-line-item-modifier.md
diff --git a/doc/models/order-line-item-pricing-blocklists-blocked-discount.md b/legacy/doc/models/order-line-item-pricing-blocklists-blocked-discount.md
similarity index 100%
rename from doc/models/order-line-item-pricing-blocklists-blocked-discount.md
rename to legacy/doc/models/order-line-item-pricing-blocklists-blocked-discount.md
diff --git a/doc/models/order-line-item-pricing-blocklists-blocked-tax.md b/legacy/doc/models/order-line-item-pricing-blocklists-blocked-tax.md
similarity index 100%
rename from doc/models/order-line-item-pricing-blocklists-blocked-tax.md
rename to legacy/doc/models/order-line-item-pricing-blocklists-blocked-tax.md
diff --git a/doc/models/order-line-item-pricing-blocklists.md b/legacy/doc/models/order-line-item-pricing-blocklists.md
similarity index 100%
rename from doc/models/order-line-item-pricing-blocklists.md
rename to legacy/doc/models/order-line-item-pricing-blocklists.md
diff --git a/doc/models/order-line-item-tax-scope.md b/legacy/doc/models/order-line-item-tax-scope.md
similarity index 100%
rename from doc/models/order-line-item-tax-scope.md
rename to legacy/doc/models/order-line-item-tax-scope.md
diff --git a/doc/models/order-line-item-tax-type.md b/legacy/doc/models/order-line-item-tax-type.md
similarity index 100%
rename from doc/models/order-line-item-tax-type.md
rename to legacy/doc/models/order-line-item-tax-type.md
diff --git a/doc/models/order-line-item-tax.md b/legacy/doc/models/order-line-item-tax.md
similarity index 100%
rename from doc/models/order-line-item-tax.md
rename to legacy/doc/models/order-line-item-tax.md
diff --git a/doc/models/order-line-item.md b/legacy/doc/models/order-line-item.md
similarity index 100%
rename from doc/models/order-line-item.md
rename to legacy/doc/models/order-line-item.md
diff --git a/doc/models/order-money-amounts.md b/legacy/doc/models/order-money-amounts.md
similarity index 100%
rename from doc/models/order-money-amounts.md
rename to legacy/doc/models/order-money-amounts.md
diff --git a/doc/models/order-pricing-options.md b/legacy/doc/models/order-pricing-options.md
similarity index 100%
rename from doc/models/order-pricing-options.md
rename to legacy/doc/models/order-pricing-options.md
diff --git a/doc/models/order-quantity-unit.md b/legacy/doc/models/order-quantity-unit.md
similarity index 100%
rename from doc/models/order-quantity-unit.md
rename to legacy/doc/models/order-quantity-unit.md
diff --git a/doc/models/order-return-discount.md b/legacy/doc/models/order-return-discount.md
similarity index 100%
rename from doc/models/order-return-discount.md
rename to legacy/doc/models/order-return-discount.md
diff --git a/doc/models/order-return-line-item-modifier.md b/legacy/doc/models/order-return-line-item-modifier.md
similarity index 100%
rename from doc/models/order-return-line-item-modifier.md
rename to legacy/doc/models/order-return-line-item-modifier.md
diff --git a/doc/models/order-return-line-item.md b/legacy/doc/models/order-return-line-item.md
similarity index 100%
rename from doc/models/order-return-line-item.md
rename to legacy/doc/models/order-return-line-item.md
diff --git a/doc/models/order-return-service-charge.md b/legacy/doc/models/order-return-service-charge.md
similarity index 100%
rename from doc/models/order-return-service-charge.md
rename to legacy/doc/models/order-return-service-charge.md
diff --git a/doc/models/order-return-tax.md b/legacy/doc/models/order-return-tax.md
similarity index 100%
rename from doc/models/order-return-tax.md
rename to legacy/doc/models/order-return-tax.md
diff --git a/doc/models/order-return-tip.md b/legacy/doc/models/order-return-tip.md
similarity index 100%
rename from doc/models/order-return-tip.md
rename to legacy/doc/models/order-return-tip.md
diff --git a/doc/models/order-return.md b/legacy/doc/models/order-return.md
similarity index 100%
rename from doc/models/order-return.md
rename to legacy/doc/models/order-return.md
diff --git a/doc/models/order-reward.md b/legacy/doc/models/order-reward.md
similarity index 100%
rename from doc/models/order-reward.md
rename to legacy/doc/models/order-reward.md
diff --git a/doc/models/order-rounding-adjustment.md b/legacy/doc/models/order-rounding-adjustment.md
similarity index 100%
rename from doc/models/order-rounding-adjustment.md
rename to legacy/doc/models/order-rounding-adjustment.md
diff --git a/doc/models/order-service-charge-calculation-phase.md b/legacy/doc/models/order-service-charge-calculation-phase.md
similarity index 100%
rename from doc/models/order-service-charge-calculation-phase.md
rename to legacy/doc/models/order-service-charge-calculation-phase.md
diff --git a/doc/models/order-service-charge-scope.md b/legacy/doc/models/order-service-charge-scope.md
similarity index 100%
rename from doc/models/order-service-charge-scope.md
rename to legacy/doc/models/order-service-charge-scope.md
diff --git a/doc/models/order-service-charge-treatment-type.md b/legacy/doc/models/order-service-charge-treatment-type.md
similarity index 100%
rename from doc/models/order-service-charge-treatment-type.md
rename to legacy/doc/models/order-service-charge-treatment-type.md
diff --git a/doc/models/order-service-charge-type.md b/legacy/doc/models/order-service-charge-type.md
similarity index 100%
rename from doc/models/order-service-charge-type.md
rename to legacy/doc/models/order-service-charge-type.md
diff --git a/doc/models/order-service-charge.md b/legacy/doc/models/order-service-charge.md
similarity index 100%
rename from doc/models/order-service-charge.md
rename to legacy/doc/models/order-service-charge.md
diff --git a/doc/models/order-source.md b/legacy/doc/models/order-source.md
similarity index 100%
rename from doc/models/order-source.md
rename to legacy/doc/models/order-source.md
diff --git a/doc/models/order-state.md b/legacy/doc/models/order-state.md
similarity index 100%
rename from doc/models/order-state.md
rename to legacy/doc/models/order-state.md
diff --git a/doc/models/order-updated-object.md b/legacy/doc/models/order-updated-object.md
similarity index 100%
rename from doc/models/order-updated-object.md
rename to legacy/doc/models/order-updated-object.md
diff --git a/doc/models/order-updated.md b/legacy/doc/models/order-updated.md
similarity index 100%
rename from doc/models/order-updated.md
rename to legacy/doc/models/order-updated.md
diff --git a/doc/models/order.md b/legacy/doc/models/order.md
similarity index 100%
rename from doc/models/order.md
rename to legacy/doc/models/order.md
diff --git a/doc/models/pagination-cursor.md b/legacy/doc/models/pagination-cursor.md
similarity index 100%
rename from doc/models/pagination-cursor.md
rename to legacy/doc/models/pagination-cursor.md
diff --git a/doc/models/pause-subscription-request.md b/legacy/doc/models/pause-subscription-request.md
similarity index 100%
rename from doc/models/pause-subscription-request.md
rename to legacy/doc/models/pause-subscription-request.md
diff --git a/doc/models/pause-subscription-response.md b/legacy/doc/models/pause-subscription-response.md
similarity index 100%
rename from doc/models/pause-subscription-response.md
rename to legacy/doc/models/pause-subscription-response.md
diff --git a/doc/models/pay-order-request.md b/legacy/doc/models/pay-order-request.md
similarity index 100%
rename from doc/models/pay-order-request.md
rename to legacy/doc/models/pay-order-request.md
diff --git a/doc/models/pay-order-response.md b/legacy/doc/models/pay-order-response.md
similarity index 100%
rename from doc/models/pay-order-response.md
rename to legacy/doc/models/pay-order-response.md
diff --git a/doc/models/payment-balance-activity-app-fee-refund-detail.md b/legacy/doc/models/payment-balance-activity-app-fee-refund-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-app-fee-refund-detail.md
rename to legacy/doc/models/payment-balance-activity-app-fee-refund-detail.md
diff --git a/doc/models/payment-balance-activity-app-fee-revenue-detail.md b/legacy/doc/models/payment-balance-activity-app-fee-revenue-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-app-fee-revenue-detail.md
rename to legacy/doc/models/payment-balance-activity-app-fee-revenue-detail.md
diff --git a/doc/models/payment-balance-activity-automatic-savings-detail.md b/legacy/doc/models/payment-balance-activity-automatic-savings-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-automatic-savings-detail.md
rename to legacy/doc/models/payment-balance-activity-automatic-savings-detail.md
diff --git a/doc/models/payment-balance-activity-automatic-savings-reversed-detail.md b/legacy/doc/models/payment-balance-activity-automatic-savings-reversed-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-automatic-savings-reversed-detail.md
rename to legacy/doc/models/payment-balance-activity-automatic-savings-reversed-detail.md
diff --git a/doc/models/payment-balance-activity-charge-detail.md b/legacy/doc/models/payment-balance-activity-charge-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-charge-detail.md
rename to legacy/doc/models/payment-balance-activity-charge-detail.md
diff --git a/doc/models/payment-balance-activity-deposit-fee-detail.md b/legacy/doc/models/payment-balance-activity-deposit-fee-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-deposit-fee-detail.md
rename to legacy/doc/models/payment-balance-activity-deposit-fee-detail.md
diff --git a/doc/models/payment-balance-activity-deposit-fee-reversed-detail.md b/legacy/doc/models/payment-balance-activity-deposit-fee-reversed-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-deposit-fee-reversed-detail.md
rename to legacy/doc/models/payment-balance-activity-deposit-fee-reversed-detail.md
diff --git a/doc/models/payment-balance-activity-dispute-detail.md b/legacy/doc/models/payment-balance-activity-dispute-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-dispute-detail.md
rename to legacy/doc/models/payment-balance-activity-dispute-detail.md
diff --git a/doc/models/payment-balance-activity-fee-detail.md b/legacy/doc/models/payment-balance-activity-fee-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-fee-detail.md
rename to legacy/doc/models/payment-balance-activity-fee-detail.md
diff --git a/doc/models/payment-balance-activity-free-processing-detail.md b/legacy/doc/models/payment-balance-activity-free-processing-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-free-processing-detail.md
rename to legacy/doc/models/payment-balance-activity-free-processing-detail.md
diff --git a/doc/models/payment-balance-activity-hold-adjustment-detail.md b/legacy/doc/models/payment-balance-activity-hold-adjustment-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-hold-adjustment-detail.md
rename to legacy/doc/models/payment-balance-activity-hold-adjustment-detail.md
diff --git a/doc/models/payment-balance-activity-open-dispute-detail.md b/legacy/doc/models/payment-balance-activity-open-dispute-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-open-dispute-detail.md
rename to legacy/doc/models/payment-balance-activity-open-dispute-detail.md
diff --git a/doc/models/payment-balance-activity-other-adjustment-detail.md b/legacy/doc/models/payment-balance-activity-other-adjustment-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-other-adjustment-detail.md
rename to legacy/doc/models/payment-balance-activity-other-adjustment-detail.md
diff --git a/doc/models/payment-balance-activity-other-detail.md b/legacy/doc/models/payment-balance-activity-other-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-other-detail.md
rename to legacy/doc/models/payment-balance-activity-other-detail.md
diff --git a/doc/models/payment-balance-activity-refund-detail.md b/legacy/doc/models/payment-balance-activity-refund-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-refund-detail.md
rename to legacy/doc/models/payment-balance-activity-refund-detail.md
diff --git a/doc/models/payment-balance-activity-release-adjustment-detail.md b/legacy/doc/models/payment-balance-activity-release-adjustment-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-release-adjustment-detail.md
rename to legacy/doc/models/payment-balance-activity-release-adjustment-detail.md
diff --git a/doc/models/payment-balance-activity-reserve-hold-detail.md b/legacy/doc/models/payment-balance-activity-reserve-hold-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-reserve-hold-detail.md
rename to legacy/doc/models/payment-balance-activity-reserve-hold-detail.md
diff --git a/doc/models/payment-balance-activity-reserve-release-detail.md b/legacy/doc/models/payment-balance-activity-reserve-release-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-reserve-release-detail.md
rename to legacy/doc/models/payment-balance-activity-reserve-release-detail.md
diff --git a/doc/models/payment-balance-activity-square-capital-payment-detail.md b/legacy/doc/models/payment-balance-activity-square-capital-payment-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-square-capital-payment-detail.md
rename to legacy/doc/models/payment-balance-activity-square-capital-payment-detail.md
diff --git a/doc/models/payment-balance-activity-square-capital-reversed-payment-detail.md b/legacy/doc/models/payment-balance-activity-square-capital-reversed-payment-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-square-capital-reversed-payment-detail.md
rename to legacy/doc/models/payment-balance-activity-square-capital-reversed-payment-detail.md
diff --git a/doc/models/payment-balance-activity-square-payroll-transfer-detail.md b/legacy/doc/models/payment-balance-activity-square-payroll-transfer-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-square-payroll-transfer-detail.md
rename to legacy/doc/models/payment-balance-activity-square-payroll-transfer-detail.md
diff --git a/doc/models/payment-balance-activity-square-payroll-transfer-reversed-detail.md b/legacy/doc/models/payment-balance-activity-square-payroll-transfer-reversed-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-square-payroll-transfer-reversed-detail.md
rename to legacy/doc/models/payment-balance-activity-square-payroll-transfer-reversed-detail.md
diff --git a/doc/models/payment-balance-activity-tax-on-fee-detail.md b/legacy/doc/models/payment-balance-activity-tax-on-fee-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-tax-on-fee-detail.md
rename to legacy/doc/models/payment-balance-activity-tax-on-fee-detail.md
diff --git a/doc/models/payment-balance-activity-third-party-fee-detail.md b/legacy/doc/models/payment-balance-activity-third-party-fee-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-third-party-fee-detail.md
rename to legacy/doc/models/payment-balance-activity-third-party-fee-detail.md
diff --git a/doc/models/payment-balance-activity-third-party-fee-refund-detail.md b/legacy/doc/models/payment-balance-activity-third-party-fee-refund-detail.md
similarity index 100%
rename from doc/models/payment-balance-activity-third-party-fee-refund-detail.md
rename to legacy/doc/models/payment-balance-activity-third-party-fee-refund-detail.md
diff --git a/doc/models/payment-link-related-resources.md b/legacy/doc/models/payment-link-related-resources.md
similarity index 100%
rename from doc/models/payment-link-related-resources.md
rename to legacy/doc/models/payment-link-related-resources.md
diff --git a/doc/models/payment-link.md b/legacy/doc/models/payment-link.md
similarity index 100%
rename from doc/models/payment-link.md
rename to legacy/doc/models/payment-link.md
diff --git a/doc/models/payment-options-delay-action.md b/legacy/doc/models/payment-options-delay-action.md
similarity index 100%
rename from doc/models/payment-options-delay-action.md
rename to legacy/doc/models/payment-options-delay-action.md
diff --git a/doc/models/payment-options.md b/legacy/doc/models/payment-options.md
similarity index 100%
rename from doc/models/payment-options.md
rename to legacy/doc/models/payment-options.md
diff --git a/doc/models/payment-refund.md b/legacy/doc/models/payment-refund.md
similarity index 100%
rename from doc/models/payment-refund.md
rename to legacy/doc/models/payment-refund.md
diff --git a/doc/models/payment-sort-field.md b/legacy/doc/models/payment-sort-field.md
similarity index 100%
rename from doc/models/payment-sort-field.md
rename to legacy/doc/models/payment-sort-field.md
diff --git a/doc/models/payment.md b/legacy/doc/models/payment.md
similarity index 100%
rename from doc/models/payment.md
rename to legacy/doc/models/payment.md
diff --git a/doc/models/payout-entry.md b/legacy/doc/models/payout-entry.md
similarity index 100%
rename from doc/models/payout-entry.md
rename to legacy/doc/models/payout-entry.md
diff --git a/doc/models/payout-fee-type.md b/legacy/doc/models/payout-fee-type.md
similarity index 100%
rename from doc/models/payout-fee-type.md
rename to legacy/doc/models/payout-fee-type.md
diff --git a/doc/models/payout-fee.md b/legacy/doc/models/payout-fee.md
similarity index 100%
rename from doc/models/payout-fee.md
rename to legacy/doc/models/payout-fee.md
diff --git a/doc/models/payout-status.md b/legacy/doc/models/payout-status.md
similarity index 100%
rename from doc/models/payout-status.md
rename to legacy/doc/models/payout-status.md
diff --git a/doc/models/payout-type.md b/legacy/doc/models/payout-type.md
similarity index 100%
rename from doc/models/payout-type.md
rename to legacy/doc/models/payout-type.md
diff --git a/doc/models/payout.md b/legacy/doc/models/payout.md
similarity index 100%
rename from doc/models/payout.md
rename to legacy/doc/models/payout.md
diff --git a/doc/models/phase-input.md b/legacy/doc/models/phase-input.md
similarity index 100%
rename from doc/models/phase-input.md
rename to legacy/doc/models/phase-input.md
diff --git a/doc/models/phase.md b/legacy/doc/models/phase.md
similarity index 100%
rename from doc/models/phase.md
rename to legacy/doc/models/phase.md
diff --git a/doc/models/pre-populated-data.md b/legacy/doc/models/pre-populated-data.md
similarity index 100%
rename from doc/models/pre-populated-data.md
rename to legacy/doc/models/pre-populated-data.md
diff --git a/doc/models/processing-fee.md b/legacy/doc/models/processing-fee.md
similarity index 100%
rename from doc/models/processing-fee.md
rename to legacy/doc/models/processing-fee.md
diff --git a/doc/models/product-type.md b/legacy/doc/models/product-type.md
similarity index 100%
rename from doc/models/product-type.md
rename to legacy/doc/models/product-type.md
diff --git a/doc/models/product.md b/legacy/doc/models/product.md
similarity index 100%
rename from doc/models/product.md
rename to legacy/doc/models/product.md
diff --git a/doc/models/publish-invoice-request.md b/legacy/doc/models/publish-invoice-request.md
similarity index 100%
rename from doc/models/publish-invoice-request.md
rename to legacy/doc/models/publish-invoice-request.md
diff --git a/doc/models/publish-invoice-response.md b/legacy/doc/models/publish-invoice-response.md
similarity index 100%
rename from doc/models/publish-invoice-response.md
rename to legacy/doc/models/publish-invoice-response.md
diff --git a/doc/models/qr-code-options.md b/legacy/doc/models/qr-code-options.md
similarity index 100%
rename from doc/models/qr-code-options.md
rename to legacy/doc/models/qr-code-options.md
diff --git a/doc/models/quantity-ratio.md b/legacy/doc/models/quantity-ratio.md
similarity index 100%
rename from doc/models/quantity-ratio.md
rename to legacy/doc/models/quantity-ratio.md
diff --git a/doc/models/quick-pay.md b/legacy/doc/models/quick-pay.md
similarity index 100%
rename from doc/models/quick-pay.md
rename to legacy/doc/models/quick-pay.md
diff --git a/doc/models/range.md b/legacy/doc/models/range.md
similarity index 100%
rename from doc/models/range.md
rename to legacy/doc/models/range.md
diff --git a/doc/models/receipt-options.md b/legacy/doc/models/receipt-options.md
similarity index 100%
rename from doc/models/receipt-options.md
rename to legacy/doc/models/receipt-options.md
diff --git a/doc/models/redeem-loyalty-reward-request.md b/legacy/doc/models/redeem-loyalty-reward-request.md
similarity index 100%
rename from doc/models/redeem-loyalty-reward-request.md
rename to legacy/doc/models/redeem-loyalty-reward-request.md
diff --git a/doc/models/redeem-loyalty-reward-response.md b/legacy/doc/models/redeem-loyalty-reward-response.md
similarity index 100%
rename from doc/models/redeem-loyalty-reward-response.md
rename to legacy/doc/models/redeem-loyalty-reward-response.md
diff --git a/doc/models/refund-payment-request.md b/legacy/doc/models/refund-payment-request.md
similarity index 100%
rename from doc/models/refund-payment-request.md
rename to legacy/doc/models/refund-payment-request.md
diff --git a/doc/models/refund-payment-response.md b/legacy/doc/models/refund-payment-response.md
similarity index 100%
rename from doc/models/refund-payment-response.md
rename to legacy/doc/models/refund-payment-response.md
diff --git a/doc/models/refund-status.md b/legacy/doc/models/refund-status.md
similarity index 100%
rename from doc/models/refund-status.md
rename to legacy/doc/models/refund-status.md
diff --git a/doc/models/refund.md b/legacy/doc/models/refund.md
similarity index 100%
rename from doc/models/refund.md
rename to legacy/doc/models/refund.md
diff --git a/doc/models/register-domain-request.md b/legacy/doc/models/register-domain-request.md
similarity index 100%
rename from doc/models/register-domain-request.md
rename to legacy/doc/models/register-domain-request.md
diff --git a/doc/models/register-domain-response-status.md b/legacy/doc/models/register-domain-response-status.md
similarity index 100%
rename from doc/models/register-domain-response-status.md
rename to legacy/doc/models/register-domain-response-status.md
diff --git a/doc/models/register-domain-response.md b/legacy/doc/models/register-domain-response.md
similarity index 100%
rename from doc/models/register-domain-response.md
rename to legacy/doc/models/register-domain-response.md
diff --git a/doc/models/remove-group-from-customer-response.md b/legacy/doc/models/remove-group-from-customer-response.md
similarity index 100%
rename from doc/models/remove-group-from-customer-response.md
rename to legacy/doc/models/remove-group-from-customer-response.md
diff --git a/doc/models/resume-subscription-request.md b/legacy/doc/models/resume-subscription-request.md
similarity index 100%
rename from doc/models/resume-subscription-request.md
rename to legacy/doc/models/resume-subscription-request.md
diff --git a/doc/models/resume-subscription-response.md b/legacy/doc/models/resume-subscription-response.md
similarity index 100%
rename from doc/models/resume-subscription-response.md
rename to legacy/doc/models/resume-subscription-response.md
diff --git a/doc/models/retrieve-booking-custom-attribute-definition-request.md b/legacy/doc/models/retrieve-booking-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/retrieve-booking-custom-attribute-definition-request.md
rename to legacy/doc/models/retrieve-booking-custom-attribute-definition-request.md
diff --git a/doc/models/retrieve-booking-custom-attribute-definition-response.md b/legacy/doc/models/retrieve-booking-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/retrieve-booking-custom-attribute-definition-response.md
rename to legacy/doc/models/retrieve-booking-custom-attribute-definition-response.md
diff --git a/doc/models/retrieve-booking-custom-attribute-request.md b/legacy/doc/models/retrieve-booking-custom-attribute-request.md
similarity index 100%
rename from doc/models/retrieve-booking-custom-attribute-request.md
rename to legacy/doc/models/retrieve-booking-custom-attribute-request.md
diff --git a/doc/models/retrieve-booking-custom-attribute-response.md b/legacy/doc/models/retrieve-booking-custom-attribute-response.md
similarity index 100%
rename from doc/models/retrieve-booking-custom-attribute-response.md
rename to legacy/doc/models/retrieve-booking-custom-attribute-response.md
diff --git a/doc/models/retrieve-booking-response.md b/legacy/doc/models/retrieve-booking-response.md
similarity index 100%
rename from doc/models/retrieve-booking-response.md
rename to legacy/doc/models/retrieve-booking-response.md
diff --git a/doc/models/retrieve-business-booking-profile-response.md b/legacy/doc/models/retrieve-business-booking-profile-response.md
similarity index 100%
rename from doc/models/retrieve-business-booking-profile-response.md
rename to legacy/doc/models/retrieve-business-booking-profile-response.md
diff --git a/doc/models/retrieve-card-response.md b/legacy/doc/models/retrieve-card-response.md
similarity index 100%
rename from doc/models/retrieve-card-response.md
rename to legacy/doc/models/retrieve-card-response.md
diff --git a/doc/models/retrieve-cash-drawer-shift-request.md b/legacy/doc/models/retrieve-cash-drawer-shift-request.md
similarity index 100%
rename from doc/models/retrieve-cash-drawer-shift-request.md
rename to legacy/doc/models/retrieve-cash-drawer-shift-request.md
diff --git a/doc/models/retrieve-cash-drawer-shift-response.md b/legacy/doc/models/retrieve-cash-drawer-shift-response.md
similarity index 100%
rename from doc/models/retrieve-cash-drawer-shift-response.md
rename to legacy/doc/models/retrieve-cash-drawer-shift-response.md
diff --git a/doc/models/retrieve-catalog-object-request.md b/legacy/doc/models/retrieve-catalog-object-request.md
similarity index 100%
rename from doc/models/retrieve-catalog-object-request.md
rename to legacy/doc/models/retrieve-catalog-object-request.md
diff --git a/doc/models/retrieve-catalog-object-response.md b/legacy/doc/models/retrieve-catalog-object-response.md
similarity index 100%
rename from doc/models/retrieve-catalog-object-response.md
rename to legacy/doc/models/retrieve-catalog-object-response.md
diff --git a/doc/models/retrieve-customer-custom-attribute-definition-request.md b/legacy/doc/models/retrieve-customer-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/retrieve-customer-custom-attribute-definition-request.md
rename to legacy/doc/models/retrieve-customer-custom-attribute-definition-request.md
diff --git a/doc/models/retrieve-customer-custom-attribute-definition-response.md b/legacy/doc/models/retrieve-customer-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/retrieve-customer-custom-attribute-definition-response.md
rename to legacy/doc/models/retrieve-customer-custom-attribute-definition-response.md
diff --git a/doc/models/retrieve-customer-custom-attribute-request.md b/legacy/doc/models/retrieve-customer-custom-attribute-request.md
similarity index 100%
rename from doc/models/retrieve-customer-custom-attribute-request.md
rename to legacy/doc/models/retrieve-customer-custom-attribute-request.md
diff --git a/doc/models/retrieve-customer-custom-attribute-response.md b/legacy/doc/models/retrieve-customer-custom-attribute-response.md
similarity index 100%
rename from doc/models/retrieve-customer-custom-attribute-response.md
rename to legacy/doc/models/retrieve-customer-custom-attribute-response.md
diff --git a/doc/models/retrieve-customer-group-response.md b/legacy/doc/models/retrieve-customer-group-response.md
similarity index 100%
rename from doc/models/retrieve-customer-group-response.md
rename to legacy/doc/models/retrieve-customer-group-response.md
diff --git a/doc/models/retrieve-customer-response.md b/legacy/doc/models/retrieve-customer-response.md
similarity index 100%
rename from doc/models/retrieve-customer-response.md
rename to legacy/doc/models/retrieve-customer-response.md
diff --git a/doc/models/retrieve-customer-segment-response.md b/legacy/doc/models/retrieve-customer-segment-response.md
similarity index 100%
rename from doc/models/retrieve-customer-segment-response.md
rename to legacy/doc/models/retrieve-customer-segment-response.md
diff --git a/doc/models/retrieve-dispute-evidence-response.md b/legacy/doc/models/retrieve-dispute-evidence-response.md
similarity index 100%
rename from doc/models/retrieve-dispute-evidence-response.md
rename to legacy/doc/models/retrieve-dispute-evidence-response.md
diff --git a/doc/models/retrieve-dispute-response.md b/legacy/doc/models/retrieve-dispute-response.md
similarity index 100%
rename from doc/models/retrieve-dispute-response.md
rename to legacy/doc/models/retrieve-dispute-response.md
diff --git a/doc/models/retrieve-employee-response.md b/legacy/doc/models/retrieve-employee-response.md
similarity index 100%
rename from doc/models/retrieve-employee-response.md
rename to legacy/doc/models/retrieve-employee-response.md
diff --git a/doc/models/retrieve-gift-card-from-gan-request.md b/legacy/doc/models/retrieve-gift-card-from-gan-request.md
similarity index 100%
rename from doc/models/retrieve-gift-card-from-gan-request.md
rename to legacy/doc/models/retrieve-gift-card-from-gan-request.md
diff --git a/doc/models/retrieve-gift-card-from-gan-response.md b/legacy/doc/models/retrieve-gift-card-from-gan-response.md
similarity index 100%
rename from doc/models/retrieve-gift-card-from-gan-response.md
rename to legacy/doc/models/retrieve-gift-card-from-gan-response.md
diff --git a/doc/models/retrieve-gift-card-from-nonce-request.md b/legacy/doc/models/retrieve-gift-card-from-nonce-request.md
similarity index 100%
rename from doc/models/retrieve-gift-card-from-nonce-request.md
rename to legacy/doc/models/retrieve-gift-card-from-nonce-request.md
diff --git a/doc/models/retrieve-gift-card-from-nonce-response.md b/legacy/doc/models/retrieve-gift-card-from-nonce-response.md
similarity index 100%
rename from doc/models/retrieve-gift-card-from-nonce-response.md
rename to legacy/doc/models/retrieve-gift-card-from-nonce-response.md
diff --git a/doc/models/retrieve-gift-card-response.md b/legacy/doc/models/retrieve-gift-card-response.md
similarity index 100%
rename from doc/models/retrieve-gift-card-response.md
rename to legacy/doc/models/retrieve-gift-card-response.md
diff --git a/doc/models/retrieve-inventory-adjustment-response.md b/legacy/doc/models/retrieve-inventory-adjustment-response.md
similarity index 100%
rename from doc/models/retrieve-inventory-adjustment-response.md
rename to legacy/doc/models/retrieve-inventory-adjustment-response.md
diff --git a/doc/models/retrieve-inventory-changes-request.md b/legacy/doc/models/retrieve-inventory-changes-request.md
similarity index 100%
rename from doc/models/retrieve-inventory-changes-request.md
rename to legacy/doc/models/retrieve-inventory-changes-request.md
diff --git a/doc/models/retrieve-inventory-changes-response.md b/legacy/doc/models/retrieve-inventory-changes-response.md
similarity index 100%
rename from doc/models/retrieve-inventory-changes-response.md
rename to legacy/doc/models/retrieve-inventory-changes-response.md
diff --git a/doc/models/retrieve-inventory-count-request.md b/legacy/doc/models/retrieve-inventory-count-request.md
similarity index 100%
rename from doc/models/retrieve-inventory-count-request.md
rename to legacy/doc/models/retrieve-inventory-count-request.md
diff --git a/doc/models/retrieve-inventory-count-response.md b/legacy/doc/models/retrieve-inventory-count-response.md
similarity index 100%
rename from doc/models/retrieve-inventory-count-response.md
rename to legacy/doc/models/retrieve-inventory-count-response.md
diff --git a/doc/models/retrieve-inventory-physical-count-response.md b/legacy/doc/models/retrieve-inventory-physical-count-response.md
similarity index 100%
rename from doc/models/retrieve-inventory-physical-count-response.md
rename to legacy/doc/models/retrieve-inventory-physical-count-response.md
diff --git a/doc/models/retrieve-inventory-transfer-response.md b/legacy/doc/models/retrieve-inventory-transfer-response.md
similarity index 100%
rename from doc/models/retrieve-inventory-transfer-response.md
rename to legacy/doc/models/retrieve-inventory-transfer-response.md
diff --git a/doc/models/retrieve-job-response.md b/legacy/doc/models/retrieve-job-response.md
similarity index 100%
rename from doc/models/retrieve-job-response.md
rename to legacy/doc/models/retrieve-job-response.md
diff --git a/doc/models/retrieve-location-booking-profile-response.md b/legacy/doc/models/retrieve-location-booking-profile-response.md
similarity index 100%
rename from doc/models/retrieve-location-booking-profile-response.md
rename to legacy/doc/models/retrieve-location-booking-profile-response.md
diff --git a/doc/models/retrieve-location-custom-attribute-definition-request.md b/legacy/doc/models/retrieve-location-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/retrieve-location-custom-attribute-definition-request.md
rename to legacy/doc/models/retrieve-location-custom-attribute-definition-request.md
diff --git a/doc/models/retrieve-location-custom-attribute-definition-response.md b/legacy/doc/models/retrieve-location-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/retrieve-location-custom-attribute-definition-response.md
rename to legacy/doc/models/retrieve-location-custom-attribute-definition-response.md
diff --git a/doc/models/retrieve-location-custom-attribute-request.md b/legacy/doc/models/retrieve-location-custom-attribute-request.md
similarity index 100%
rename from doc/models/retrieve-location-custom-attribute-request.md
rename to legacy/doc/models/retrieve-location-custom-attribute-request.md
diff --git a/doc/models/retrieve-location-custom-attribute-response.md b/legacy/doc/models/retrieve-location-custom-attribute-response.md
similarity index 100%
rename from doc/models/retrieve-location-custom-attribute-response.md
rename to legacy/doc/models/retrieve-location-custom-attribute-response.md
diff --git a/doc/models/retrieve-location-response.md b/legacy/doc/models/retrieve-location-response.md
similarity index 100%
rename from doc/models/retrieve-location-response.md
rename to legacy/doc/models/retrieve-location-response.md
diff --git a/doc/models/retrieve-location-settings-response.md b/legacy/doc/models/retrieve-location-settings-response.md
similarity index 100%
rename from doc/models/retrieve-location-settings-response.md
rename to legacy/doc/models/retrieve-location-settings-response.md
diff --git a/doc/models/retrieve-loyalty-account-response.md b/legacy/doc/models/retrieve-loyalty-account-response.md
similarity index 100%
rename from doc/models/retrieve-loyalty-account-response.md
rename to legacy/doc/models/retrieve-loyalty-account-response.md
diff --git a/doc/models/retrieve-loyalty-program-response.md b/legacy/doc/models/retrieve-loyalty-program-response.md
similarity index 100%
rename from doc/models/retrieve-loyalty-program-response.md
rename to legacy/doc/models/retrieve-loyalty-program-response.md
diff --git a/doc/models/retrieve-loyalty-promotion-response.md b/legacy/doc/models/retrieve-loyalty-promotion-response.md
similarity index 100%
rename from doc/models/retrieve-loyalty-promotion-response.md
rename to legacy/doc/models/retrieve-loyalty-promotion-response.md
diff --git a/doc/models/retrieve-loyalty-reward-response.md b/legacy/doc/models/retrieve-loyalty-reward-response.md
similarity index 100%
rename from doc/models/retrieve-loyalty-reward-response.md
rename to legacy/doc/models/retrieve-loyalty-reward-response.md
diff --git a/doc/models/retrieve-merchant-custom-attribute-definition-request.md b/legacy/doc/models/retrieve-merchant-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/retrieve-merchant-custom-attribute-definition-request.md
rename to legacy/doc/models/retrieve-merchant-custom-attribute-definition-request.md
diff --git a/doc/models/retrieve-merchant-custom-attribute-definition-response.md b/legacy/doc/models/retrieve-merchant-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/retrieve-merchant-custom-attribute-definition-response.md
rename to legacy/doc/models/retrieve-merchant-custom-attribute-definition-response.md
diff --git a/doc/models/retrieve-merchant-custom-attribute-request.md b/legacy/doc/models/retrieve-merchant-custom-attribute-request.md
similarity index 100%
rename from doc/models/retrieve-merchant-custom-attribute-request.md
rename to legacy/doc/models/retrieve-merchant-custom-attribute-request.md
diff --git a/doc/models/retrieve-merchant-custom-attribute-response.md b/legacy/doc/models/retrieve-merchant-custom-attribute-response.md
similarity index 100%
rename from doc/models/retrieve-merchant-custom-attribute-response.md
rename to legacy/doc/models/retrieve-merchant-custom-attribute-response.md
diff --git a/doc/models/retrieve-merchant-response.md b/legacy/doc/models/retrieve-merchant-response.md
similarity index 100%
rename from doc/models/retrieve-merchant-response.md
rename to legacy/doc/models/retrieve-merchant-response.md
diff --git a/doc/models/retrieve-merchant-settings-response.md b/legacy/doc/models/retrieve-merchant-settings-response.md
similarity index 100%
rename from doc/models/retrieve-merchant-settings-response.md
rename to legacy/doc/models/retrieve-merchant-settings-response.md
diff --git a/doc/models/retrieve-order-custom-attribute-definition-request.md b/legacy/doc/models/retrieve-order-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/retrieve-order-custom-attribute-definition-request.md
rename to legacy/doc/models/retrieve-order-custom-attribute-definition-request.md
diff --git a/doc/models/retrieve-order-custom-attribute-definition-response.md b/legacy/doc/models/retrieve-order-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/retrieve-order-custom-attribute-definition-response.md
rename to legacy/doc/models/retrieve-order-custom-attribute-definition-response.md
diff --git a/doc/models/retrieve-order-custom-attribute-request.md b/legacy/doc/models/retrieve-order-custom-attribute-request.md
similarity index 100%
rename from doc/models/retrieve-order-custom-attribute-request.md
rename to legacy/doc/models/retrieve-order-custom-attribute-request.md
diff --git a/doc/models/retrieve-order-custom-attribute-response.md b/legacy/doc/models/retrieve-order-custom-attribute-response.md
similarity index 100%
rename from doc/models/retrieve-order-custom-attribute-response.md
rename to legacy/doc/models/retrieve-order-custom-attribute-response.md
diff --git a/doc/models/retrieve-order-response.md b/legacy/doc/models/retrieve-order-response.md
similarity index 100%
rename from doc/models/retrieve-order-response.md
rename to legacy/doc/models/retrieve-order-response.md
diff --git a/doc/models/retrieve-payment-link-response.md b/legacy/doc/models/retrieve-payment-link-response.md
similarity index 100%
rename from doc/models/retrieve-payment-link-response.md
rename to legacy/doc/models/retrieve-payment-link-response.md
diff --git a/doc/models/retrieve-snippet-response.md b/legacy/doc/models/retrieve-snippet-response.md
similarity index 100%
rename from doc/models/retrieve-snippet-response.md
rename to legacy/doc/models/retrieve-snippet-response.md
diff --git a/doc/models/retrieve-subscription-request.md b/legacy/doc/models/retrieve-subscription-request.md
similarity index 100%
rename from doc/models/retrieve-subscription-request.md
rename to legacy/doc/models/retrieve-subscription-request.md
diff --git a/doc/models/retrieve-subscription-response.md b/legacy/doc/models/retrieve-subscription-response.md
similarity index 100%
rename from doc/models/retrieve-subscription-response.md
rename to legacy/doc/models/retrieve-subscription-response.md
diff --git a/doc/models/retrieve-team-member-booking-profile-response.md b/legacy/doc/models/retrieve-team-member-booking-profile-response.md
similarity index 100%
rename from doc/models/retrieve-team-member-booking-profile-response.md
rename to legacy/doc/models/retrieve-team-member-booking-profile-response.md
diff --git a/doc/models/retrieve-team-member-response.md b/legacy/doc/models/retrieve-team-member-response.md
similarity index 100%
rename from doc/models/retrieve-team-member-response.md
rename to legacy/doc/models/retrieve-team-member-response.md
diff --git a/doc/models/retrieve-token-status-response.md b/legacy/doc/models/retrieve-token-status-response.md
similarity index 100%
rename from doc/models/retrieve-token-status-response.md
rename to legacy/doc/models/retrieve-token-status-response.md
diff --git a/doc/models/retrieve-transaction-response.md b/legacy/doc/models/retrieve-transaction-response.md
similarity index 100%
rename from doc/models/retrieve-transaction-response.md
rename to legacy/doc/models/retrieve-transaction-response.md
diff --git a/doc/models/retrieve-vendor-response.md b/legacy/doc/models/retrieve-vendor-response.md
similarity index 100%
rename from doc/models/retrieve-vendor-response.md
rename to legacy/doc/models/retrieve-vendor-response.md
diff --git a/doc/models/retrieve-wage-setting-response.md b/legacy/doc/models/retrieve-wage-setting-response.md
similarity index 100%
rename from doc/models/retrieve-wage-setting-response.md
rename to legacy/doc/models/retrieve-wage-setting-response.md
diff --git a/doc/models/retrieve-webhook-subscription-response.md b/legacy/doc/models/retrieve-webhook-subscription-response.md
similarity index 100%
rename from doc/models/retrieve-webhook-subscription-response.md
rename to legacy/doc/models/retrieve-webhook-subscription-response.md
diff --git a/doc/models/revoke-token-request.md b/legacy/doc/models/revoke-token-request.md
similarity index 100%
rename from doc/models/revoke-token-request.md
rename to legacy/doc/models/revoke-token-request.md
diff --git a/doc/models/revoke-token-response.md b/legacy/doc/models/revoke-token-response.md
similarity index 100%
rename from doc/models/revoke-token-response.md
rename to legacy/doc/models/revoke-token-response.md
diff --git a/doc/models/risk-evaluation-risk-level.md b/legacy/doc/models/risk-evaluation-risk-level.md
similarity index 100%
rename from doc/models/risk-evaluation-risk-level.md
rename to legacy/doc/models/risk-evaluation-risk-level.md
diff --git a/doc/models/risk-evaluation.md b/legacy/doc/models/risk-evaluation.md
similarity index 100%
rename from doc/models/risk-evaluation.md
rename to legacy/doc/models/risk-evaluation.md
diff --git a/doc/models/save-card-options.md b/legacy/doc/models/save-card-options.md
similarity index 100%
rename from doc/models/save-card-options.md
rename to legacy/doc/models/save-card-options.md
diff --git a/doc/models/search-availability-filter.md b/legacy/doc/models/search-availability-filter.md
similarity index 100%
rename from doc/models/search-availability-filter.md
rename to legacy/doc/models/search-availability-filter.md
diff --git a/doc/models/search-availability-query.md b/legacy/doc/models/search-availability-query.md
similarity index 100%
rename from doc/models/search-availability-query.md
rename to legacy/doc/models/search-availability-query.md
diff --git a/doc/models/search-availability-request.md b/legacy/doc/models/search-availability-request.md
similarity index 100%
rename from doc/models/search-availability-request.md
rename to legacy/doc/models/search-availability-request.md
diff --git a/doc/models/search-availability-response.md b/legacy/doc/models/search-availability-response.md
similarity index 100%
rename from doc/models/search-availability-response.md
rename to legacy/doc/models/search-availability-response.md
diff --git a/doc/models/search-catalog-items-request-stock-level.md b/legacy/doc/models/search-catalog-items-request-stock-level.md
similarity index 100%
rename from doc/models/search-catalog-items-request-stock-level.md
rename to legacy/doc/models/search-catalog-items-request-stock-level.md
diff --git a/doc/models/search-catalog-items-request.md b/legacy/doc/models/search-catalog-items-request.md
similarity index 100%
rename from doc/models/search-catalog-items-request.md
rename to legacy/doc/models/search-catalog-items-request.md
diff --git a/doc/models/search-catalog-items-response.md b/legacy/doc/models/search-catalog-items-response.md
similarity index 100%
rename from doc/models/search-catalog-items-response.md
rename to legacy/doc/models/search-catalog-items-response.md
diff --git a/doc/models/search-catalog-objects-request.md b/legacy/doc/models/search-catalog-objects-request.md
similarity index 100%
rename from doc/models/search-catalog-objects-request.md
rename to legacy/doc/models/search-catalog-objects-request.md
diff --git a/doc/models/search-catalog-objects-response.md b/legacy/doc/models/search-catalog-objects-response.md
similarity index 100%
rename from doc/models/search-catalog-objects-response.md
rename to legacy/doc/models/search-catalog-objects-response.md
diff --git a/doc/models/search-customers-request.md b/legacy/doc/models/search-customers-request.md
similarity index 100%
rename from doc/models/search-customers-request.md
rename to legacy/doc/models/search-customers-request.md
diff --git a/doc/models/search-customers-response.md b/legacy/doc/models/search-customers-response.md
similarity index 100%
rename from doc/models/search-customers-response.md
rename to legacy/doc/models/search-customers-response.md
diff --git a/doc/models/search-events-filter.md b/legacy/doc/models/search-events-filter.md
similarity index 100%
rename from doc/models/search-events-filter.md
rename to legacy/doc/models/search-events-filter.md
diff --git a/doc/models/search-events-query.md b/legacy/doc/models/search-events-query.md
similarity index 100%
rename from doc/models/search-events-query.md
rename to legacy/doc/models/search-events-query.md
diff --git a/doc/models/search-events-request.md b/legacy/doc/models/search-events-request.md
similarity index 100%
rename from doc/models/search-events-request.md
rename to legacy/doc/models/search-events-request.md
diff --git a/doc/models/search-events-response.md b/legacy/doc/models/search-events-response.md
similarity index 100%
rename from doc/models/search-events-response.md
rename to legacy/doc/models/search-events-response.md
diff --git a/doc/models/search-events-sort-field.md b/legacy/doc/models/search-events-sort-field.md
similarity index 100%
rename from doc/models/search-events-sort-field.md
rename to legacy/doc/models/search-events-sort-field.md
diff --git a/doc/models/search-events-sort.md b/legacy/doc/models/search-events-sort.md
similarity index 100%
rename from doc/models/search-events-sort.md
rename to legacy/doc/models/search-events-sort.md
diff --git a/doc/models/search-invoices-request.md b/legacy/doc/models/search-invoices-request.md
similarity index 100%
rename from doc/models/search-invoices-request.md
rename to legacy/doc/models/search-invoices-request.md
diff --git a/doc/models/search-invoices-response.md b/legacy/doc/models/search-invoices-response.md
similarity index 100%
rename from doc/models/search-invoices-response.md
rename to legacy/doc/models/search-invoices-response.md
diff --git a/doc/models/search-loyalty-accounts-request-loyalty-account-query.md b/legacy/doc/models/search-loyalty-accounts-request-loyalty-account-query.md
similarity index 100%
rename from doc/models/search-loyalty-accounts-request-loyalty-account-query.md
rename to legacy/doc/models/search-loyalty-accounts-request-loyalty-account-query.md
diff --git a/doc/models/search-loyalty-accounts-request.md b/legacy/doc/models/search-loyalty-accounts-request.md
similarity index 100%
rename from doc/models/search-loyalty-accounts-request.md
rename to legacy/doc/models/search-loyalty-accounts-request.md
diff --git a/doc/models/search-loyalty-accounts-response.md b/legacy/doc/models/search-loyalty-accounts-response.md
similarity index 100%
rename from doc/models/search-loyalty-accounts-response.md
rename to legacy/doc/models/search-loyalty-accounts-response.md
diff --git a/doc/models/search-loyalty-events-request.md b/legacy/doc/models/search-loyalty-events-request.md
similarity index 100%
rename from doc/models/search-loyalty-events-request.md
rename to legacy/doc/models/search-loyalty-events-request.md
diff --git a/doc/models/search-loyalty-events-response.md b/legacy/doc/models/search-loyalty-events-response.md
similarity index 100%
rename from doc/models/search-loyalty-events-response.md
rename to legacy/doc/models/search-loyalty-events-response.md
diff --git a/doc/models/search-loyalty-rewards-request-loyalty-reward-query.md b/legacy/doc/models/search-loyalty-rewards-request-loyalty-reward-query.md
similarity index 100%
rename from doc/models/search-loyalty-rewards-request-loyalty-reward-query.md
rename to legacy/doc/models/search-loyalty-rewards-request-loyalty-reward-query.md
diff --git a/doc/models/search-loyalty-rewards-request.md b/legacy/doc/models/search-loyalty-rewards-request.md
similarity index 100%
rename from doc/models/search-loyalty-rewards-request.md
rename to legacy/doc/models/search-loyalty-rewards-request.md
diff --git a/doc/models/search-loyalty-rewards-response.md b/legacy/doc/models/search-loyalty-rewards-response.md
similarity index 100%
rename from doc/models/search-loyalty-rewards-response.md
rename to legacy/doc/models/search-loyalty-rewards-response.md
diff --git a/doc/models/search-orders-customer-filter.md b/legacy/doc/models/search-orders-customer-filter.md
similarity index 100%
rename from doc/models/search-orders-customer-filter.md
rename to legacy/doc/models/search-orders-customer-filter.md
diff --git a/doc/models/search-orders-date-time-filter.md b/legacy/doc/models/search-orders-date-time-filter.md
similarity index 100%
rename from doc/models/search-orders-date-time-filter.md
rename to legacy/doc/models/search-orders-date-time-filter.md
diff --git a/doc/models/search-orders-filter.md b/legacy/doc/models/search-orders-filter.md
similarity index 100%
rename from doc/models/search-orders-filter.md
rename to legacy/doc/models/search-orders-filter.md
diff --git a/doc/models/search-orders-fulfillment-filter.md b/legacy/doc/models/search-orders-fulfillment-filter.md
similarity index 100%
rename from doc/models/search-orders-fulfillment-filter.md
rename to legacy/doc/models/search-orders-fulfillment-filter.md
diff --git a/doc/models/search-orders-query.md b/legacy/doc/models/search-orders-query.md
similarity index 100%
rename from doc/models/search-orders-query.md
rename to legacy/doc/models/search-orders-query.md
diff --git a/doc/models/search-orders-request.md b/legacy/doc/models/search-orders-request.md
similarity index 100%
rename from doc/models/search-orders-request.md
rename to legacy/doc/models/search-orders-request.md
diff --git a/doc/models/search-orders-response.md b/legacy/doc/models/search-orders-response.md
similarity index 100%
rename from doc/models/search-orders-response.md
rename to legacy/doc/models/search-orders-response.md
diff --git a/doc/models/search-orders-sort-field.md b/legacy/doc/models/search-orders-sort-field.md
similarity index 100%
rename from doc/models/search-orders-sort-field.md
rename to legacy/doc/models/search-orders-sort-field.md
diff --git a/doc/models/search-orders-sort.md b/legacy/doc/models/search-orders-sort.md
similarity index 100%
rename from doc/models/search-orders-sort.md
rename to legacy/doc/models/search-orders-sort.md
diff --git a/doc/models/search-orders-source-filter.md b/legacy/doc/models/search-orders-source-filter.md
similarity index 100%
rename from doc/models/search-orders-source-filter.md
rename to legacy/doc/models/search-orders-source-filter.md
diff --git a/doc/models/search-orders-state-filter.md b/legacy/doc/models/search-orders-state-filter.md
similarity index 100%
rename from doc/models/search-orders-state-filter.md
rename to legacy/doc/models/search-orders-state-filter.md
diff --git a/doc/models/search-shifts-request.md b/legacy/doc/models/search-shifts-request.md
similarity index 100%
rename from doc/models/search-shifts-request.md
rename to legacy/doc/models/search-shifts-request.md
diff --git a/doc/models/search-shifts-response.md b/legacy/doc/models/search-shifts-response.md
similarity index 100%
rename from doc/models/search-shifts-response.md
rename to legacy/doc/models/search-shifts-response.md
diff --git a/doc/models/search-subscriptions-filter.md b/legacy/doc/models/search-subscriptions-filter.md
similarity index 100%
rename from doc/models/search-subscriptions-filter.md
rename to legacy/doc/models/search-subscriptions-filter.md
diff --git a/doc/models/search-subscriptions-query.md b/legacy/doc/models/search-subscriptions-query.md
similarity index 100%
rename from doc/models/search-subscriptions-query.md
rename to legacy/doc/models/search-subscriptions-query.md
diff --git a/doc/models/search-subscriptions-request.md b/legacy/doc/models/search-subscriptions-request.md
similarity index 100%
rename from doc/models/search-subscriptions-request.md
rename to legacy/doc/models/search-subscriptions-request.md
diff --git a/doc/models/search-subscriptions-response.md b/legacy/doc/models/search-subscriptions-response.md
similarity index 100%
rename from doc/models/search-subscriptions-response.md
rename to legacy/doc/models/search-subscriptions-response.md
diff --git a/doc/models/search-team-members-filter.md b/legacy/doc/models/search-team-members-filter.md
similarity index 100%
rename from doc/models/search-team-members-filter.md
rename to legacy/doc/models/search-team-members-filter.md
diff --git a/doc/models/search-team-members-query.md b/legacy/doc/models/search-team-members-query.md
similarity index 100%
rename from doc/models/search-team-members-query.md
rename to legacy/doc/models/search-team-members-query.md
diff --git a/doc/models/search-team-members-request.md b/legacy/doc/models/search-team-members-request.md
similarity index 100%
rename from doc/models/search-team-members-request.md
rename to legacy/doc/models/search-team-members-request.md
diff --git a/doc/models/search-team-members-response.md b/legacy/doc/models/search-team-members-response.md
similarity index 100%
rename from doc/models/search-team-members-response.md
rename to legacy/doc/models/search-team-members-response.md
diff --git a/doc/models/search-terminal-actions-request.md b/legacy/doc/models/search-terminal-actions-request.md
similarity index 100%
rename from doc/models/search-terminal-actions-request.md
rename to legacy/doc/models/search-terminal-actions-request.md
diff --git a/doc/models/search-terminal-actions-response.md b/legacy/doc/models/search-terminal-actions-response.md
similarity index 100%
rename from doc/models/search-terminal-actions-response.md
rename to legacy/doc/models/search-terminal-actions-response.md
diff --git a/doc/models/search-terminal-checkouts-request.md b/legacy/doc/models/search-terminal-checkouts-request.md
similarity index 100%
rename from doc/models/search-terminal-checkouts-request.md
rename to legacy/doc/models/search-terminal-checkouts-request.md
diff --git a/doc/models/search-terminal-checkouts-response.md b/legacy/doc/models/search-terminal-checkouts-response.md
similarity index 100%
rename from doc/models/search-terminal-checkouts-response.md
rename to legacy/doc/models/search-terminal-checkouts-response.md
diff --git a/doc/models/search-terminal-refunds-request.md b/legacy/doc/models/search-terminal-refunds-request.md
similarity index 100%
rename from doc/models/search-terminal-refunds-request.md
rename to legacy/doc/models/search-terminal-refunds-request.md
diff --git a/doc/models/search-terminal-refunds-response.md b/legacy/doc/models/search-terminal-refunds-response.md
similarity index 100%
rename from doc/models/search-terminal-refunds-response.md
rename to legacy/doc/models/search-terminal-refunds-response.md
diff --git a/doc/models/search-vendors-request-filter.md b/legacy/doc/models/search-vendors-request-filter.md
similarity index 100%
rename from doc/models/search-vendors-request-filter.md
rename to legacy/doc/models/search-vendors-request-filter.md
diff --git a/doc/models/search-vendors-request-sort-field.md b/legacy/doc/models/search-vendors-request-sort-field.md
similarity index 100%
rename from doc/models/search-vendors-request-sort-field.md
rename to legacy/doc/models/search-vendors-request-sort-field.md
diff --git a/doc/models/search-vendors-request-sort.md b/legacy/doc/models/search-vendors-request-sort.md
similarity index 100%
rename from doc/models/search-vendors-request-sort.md
rename to legacy/doc/models/search-vendors-request-sort.md
diff --git a/doc/models/search-vendors-request.md b/legacy/doc/models/search-vendors-request.md
similarity index 100%
rename from doc/models/search-vendors-request.md
rename to legacy/doc/models/search-vendors-request.md
diff --git a/doc/models/search-vendors-response.md b/legacy/doc/models/search-vendors-response.md
similarity index 100%
rename from doc/models/search-vendors-response.md
rename to legacy/doc/models/search-vendors-response.md
diff --git a/doc/models/segment-filter.md b/legacy/doc/models/segment-filter.md
similarity index 100%
rename from doc/models/segment-filter.md
rename to legacy/doc/models/segment-filter.md
diff --git a/doc/models/select-option.md b/legacy/doc/models/select-option.md
similarity index 100%
rename from doc/models/select-option.md
rename to legacy/doc/models/select-option.md
diff --git a/doc/models/select-options.md b/legacy/doc/models/select-options.md
similarity index 100%
rename from doc/models/select-options.md
rename to legacy/doc/models/select-options.md
diff --git a/doc/models/shift-filter-status.md b/legacy/doc/models/shift-filter-status.md
similarity index 100%
rename from doc/models/shift-filter-status.md
rename to legacy/doc/models/shift-filter-status.md
diff --git a/doc/models/shift-filter.md b/legacy/doc/models/shift-filter.md
similarity index 100%
rename from doc/models/shift-filter.md
rename to legacy/doc/models/shift-filter.md
diff --git a/doc/models/shift-query.md b/legacy/doc/models/shift-query.md
similarity index 100%
rename from doc/models/shift-query.md
rename to legacy/doc/models/shift-query.md
diff --git a/doc/models/shift-sort-field.md b/legacy/doc/models/shift-sort-field.md
similarity index 100%
rename from doc/models/shift-sort-field.md
rename to legacy/doc/models/shift-sort-field.md
diff --git a/doc/models/shift-sort.md b/legacy/doc/models/shift-sort.md
similarity index 100%
rename from doc/models/shift-sort.md
rename to legacy/doc/models/shift-sort.md
diff --git a/doc/models/shift-status.md b/legacy/doc/models/shift-status.md
similarity index 100%
rename from doc/models/shift-status.md
rename to legacy/doc/models/shift-status.md
diff --git a/doc/models/shift-wage.md b/legacy/doc/models/shift-wage.md
similarity index 100%
rename from doc/models/shift-wage.md
rename to legacy/doc/models/shift-wage.md
diff --git a/doc/models/shift-workday-matcher.md b/legacy/doc/models/shift-workday-matcher.md
similarity index 100%
rename from doc/models/shift-workday-matcher.md
rename to legacy/doc/models/shift-workday-matcher.md
diff --git a/doc/models/shift-workday.md b/legacy/doc/models/shift-workday.md
similarity index 100%
rename from doc/models/shift-workday.md
rename to legacy/doc/models/shift-workday.md
diff --git a/doc/models/shift.md b/legacy/doc/models/shift.md
similarity index 100%
rename from doc/models/shift.md
rename to legacy/doc/models/shift.md
diff --git a/doc/models/shipping-fee.md b/legacy/doc/models/shipping-fee.md
similarity index 100%
rename from doc/models/shipping-fee.md
rename to legacy/doc/models/shipping-fee.md
diff --git a/doc/models/signature-image.md b/legacy/doc/models/signature-image.md
similarity index 100%
rename from doc/models/signature-image.md
rename to legacy/doc/models/signature-image.md
diff --git a/doc/models/signature-options.md b/legacy/doc/models/signature-options.md
similarity index 100%
rename from doc/models/signature-options.md
rename to legacy/doc/models/signature-options.md
diff --git a/doc/models/site.md b/legacy/doc/models/site.md
similarity index 100%
rename from doc/models/site.md
rename to legacy/doc/models/site.md
diff --git a/doc/models/snippet-response.md b/legacy/doc/models/snippet-response.md
similarity index 100%
rename from doc/models/snippet-response.md
rename to legacy/doc/models/snippet-response.md
diff --git a/doc/models/snippet.md b/legacy/doc/models/snippet.md
similarity index 100%
rename from doc/models/snippet.md
rename to legacy/doc/models/snippet.md
diff --git a/doc/models/sort-order.md b/legacy/doc/models/sort-order.md
similarity index 100%
rename from doc/models/sort-order.md
rename to legacy/doc/models/sort-order.md
diff --git a/doc/models/source-application.md b/legacy/doc/models/source-application.md
similarity index 100%
rename from doc/models/source-application.md
rename to legacy/doc/models/source-application.md
diff --git a/doc/models/square-account-details.md b/legacy/doc/models/square-account-details.md
similarity index 100%
rename from doc/models/square-account-details.md
rename to legacy/doc/models/square-account-details.md
diff --git a/doc/models/standard-unit-description-group.md b/legacy/doc/models/standard-unit-description-group.md
similarity index 100%
rename from doc/models/standard-unit-description-group.md
rename to legacy/doc/models/standard-unit-description-group.md
diff --git a/doc/models/standard-unit-description.md b/legacy/doc/models/standard-unit-description.md
similarity index 100%
rename from doc/models/standard-unit-description.md
rename to legacy/doc/models/standard-unit-description.md
diff --git a/doc/models/submit-evidence-response.md b/legacy/doc/models/submit-evidence-response.md
similarity index 100%
rename from doc/models/submit-evidence-response.md
rename to legacy/doc/models/submit-evidence-response.md
diff --git a/doc/models/subscription-action-type.md b/legacy/doc/models/subscription-action-type.md
similarity index 100%
rename from doc/models/subscription-action-type.md
rename to legacy/doc/models/subscription-action-type.md
diff --git a/doc/models/subscription-action.md b/legacy/doc/models/subscription-action.md
similarity index 100%
rename from doc/models/subscription-action.md
rename to legacy/doc/models/subscription-action.md
diff --git a/doc/models/subscription-cadence.md b/legacy/doc/models/subscription-cadence.md
similarity index 100%
rename from doc/models/subscription-cadence.md
rename to legacy/doc/models/subscription-cadence.md
diff --git a/doc/models/subscription-event-info-code.md b/legacy/doc/models/subscription-event-info-code.md
similarity index 100%
rename from doc/models/subscription-event-info-code.md
rename to legacy/doc/models/subscription-event-info-code.md
diff --git a/doc/models/subscription-event-info.md b/legacy/doc/models/subscription-event-info.md
similarity index 100%
rename from doc/models/subscription-event-info.md
rename to legacy/doc/models/subscription-event-info.md
diff --git a/doc/models/subscription-event-subscription-event-type.md b/legacy/doc/models/subscription-event-subscription-event-type.md
similarity index 100%
rename from doc/models/subscription-event-subscription-event-type.md
rename to legacy/doc/models/subscription-event-subscription-event-type.md
diff --git a/doc/models/subscription-event.md b/legacy/doc/models/subscription-event.md
similarity index 100%
rename from doc/models/subscription-event.md
rename to legacy/doc/models/subscription-event.md
diff --git a/doc/models/subscription-phase.md b/legacy/doc/models/subscription-phase.md
similarity index 100%
rename from doc/models/subscription-phase.md
rename to legacy/doc/models/subscription-phase.md
diff --git a/doc/models/subscription-pricing-type.md b/legacy/doc/models/subscription-pricing-type.md
similarity index 100%
rename from doc/models/subscription-pricing-type.md
rename to legacy/doc/models/subscription-pricing-type.md
diff --git a/doc/models/subscription-pricing.md b/legacy/doc/models/subscription-pricing.md
similarity index 100%
rename from doc/models/subscription-pricing.md
rename to legacy/doc/models/subscription-pricing.md
diff --git a/doc/models/subscription-source.md b/legacy/doc/models/subscription-source.md
similarity index 100%
rename from doc/models/subscription-source.md
rename to legacy/doc/models/subscription-source.md
diff --git a/doc/models/subscription-status.md b/legacy/doc/models/subscription-status.md
similarity index 100%
rename from doc/models/subscription-status.md
rename to legacy/doc/models/subscription-status.md
diff --git a/doc/models/subscription-test-result.md b/legacy/doc/models/subscription-test-result.md
similarity index 100%
rename from doc/models/subscription-test-result.md
rename to legacy/doc/models/subscription-test-result.md
diff --git a/doc/models/subscription.md b/legacy/doc/models/subscription.md
similarity index 100%
rename from doc/models/subscription.md
rename to legacy/doc/models/subscription.md
diff --git a/doc/models/swap-plan-request.md b/legacy/doc/models/swap-plan-request.md
similarity index 100%
rename from doc/models/swap-plan-request.md
rename to legacy/doc/models/swap-plan-request.md
diff --git a/doc/models/swap-plan-response.md b/legacy/doc/models/swap-plan-response.md
similarity index 100%
rename from doc/models/swap-plan-response.md
rename to legacy/doc/models/swap-plan-response.md
diff --git a/doc/models/tax-calculation-phase.md b/legacy/doc/models/tax-calculation-phase.md
similarity index 100%
rename from doc/models/tax-calculation-phase.md
rename to legacy/doc/models/tax-calculation-phase.md
diff --git a/doc/models/tax-ids.md b/legacy/doc/models/tax-ids.md
similarity index 100%
rename from doc/models/tax-ids.md
rename to legacy/doc/models/tax-ids.md
diff --git a/doc/models/tax-inclusion-type.md b/legacy/doc/models/tax-inclusion-type.md
similarity index 100%
rename from doc/models/tax-inclusion-type.md
rename to legacy/doc/models/tax-inclusion-type.md
diff --git a/doc/models/team-member-assigned-locations-assignment-type.md b/legacy/doc/models/team-member-assigned-locations-assignment-type.md
similarity index 100%
rename from doc/models/team-member-assigned-locations-assignment-type.md
rename to legacy/doc/models/team-member-assigned-locations-assignment-type.md
diff --git a/doc/models/team-member-assigned-locations.md b/legacy/doc/models/team-member-assigned-locations.md
similarity index 100%
rename from doc/models/team-member-assigned-locations.md
rename to legacy/doc/models/team-member-assigned-locations.md
diff --git a/doc/models/team-member-booking-profile.md b/legacy/doc/models/team-member-booking-profile.md
similarity index 100%
rename from doc/models/team-member-booking-profile.md
rename to legacy/doc/models/team-member-booking-profile.md
diff --git a/doc/models/team-member-invitation-status.md b/legacy/doc/models/team-member-invitation-status.md
similarity index 100%
rename from doc/models/team-member-invitation-status.md
rename to legacy/doc/models/team-member-invitation-status.md
diff --git a/doc/models/team-member-status.md b/legacy/doc/models/team-member-status.md
similarity index 100%
rename from doc/models/team-member-status.md
rename to legacy/doc/models/team-member-status.md
diff --git a/doc/models/team-member-wage.md b/legacy/doc/models/team-member-wage.md
similarity index 100%
rename from doc/models/team-member-wage.md
rename to legacy/doc/models/team-member-wage.md
diff --git a/doc/models/team-member.md b/legacy/doc/models/team-member.md
similarity index 100%
rename from doc/models/team-member.md
rename to legacy/doc/models/team-member.md
diff --git a/doc/models/tender-bank-account-details-status.md b/legacy/doc/models/tender-bank-account-details-status.md
similarity index 100%
rename from doc/models/tender-bank-account-details-status.md
rename to legacy/doc/models/tender-bank-account-details-status.md
diff --git a/doc/models/tender-bank-account-details.md b/legacy/doc/models/tender-bank-account-details.md
similarity index 100%
rename from doc/models/tender-bank-account-details.md
rename to legacy/doc/models/tender-bank-account-details.md
diff --git a/doc/models/tender-buy-now-pay-later-details-brand.md b/legacy/doc/models/tender-buy-now-pay-later-details-brand.md
similarity index 100%
rename from doc/models/tender-buy-now-pay-later-details-brand.md
rename to legacy/doc/models/tender-buy-now-pay-later-details-brand.md
diff --git a/doc/models/tender-buy-now-pay-later-details-status.md b/legacy/doc/models/tender-buy-now-pay-later-details-status.md
similarity index 100%
rename from doc/models/tender-buy-now-pay-later-details-status.md
rename to legacy/doc/models/tender-buy-now-pay-later-details-status.md
diff --git a/doc/models/tender-buy-now-pay-later-details.md b/legacy/doc/models/tender-buy-now-pay-later-details.md
similarity index 100%
rename from doc/models/tender-buy-now-pay-later-details.md
rename to legacy/doc/models/tender-buy-now-pay-later-details.md
diff --git a/doc/models/tender-card-details-entry-method.md b/legacy/doc/models/tender-card-details-entry-method.md
similarity index 100%
rename from doc/models/tender-card-details-entry-method.md
rename to legacy/doc/models/tender-card-details-entry-method.md
diff --git a/doc/models/tender-card-details-status.md b/legacy/doc/models/tender-card-details-status.md
similarity index 100%
rename from doc/models/tender-card-details-status.md
rename to legacy/doc/models/tender-card-details-status.md
diff --git a/doc/models/tender-card-details.md b/legacy/doc/models/tender-card-details.md
similarity index 100%
rename from doc/models/tender-card-details.md
rename to legacy/doc/models/tender-card-details.md
diff --git a/doc/models/tender-cash-details.md b/legacy/doc/models/tender-cash-details.md
similarity index 100%
rename from doc/models/tender-cash-details.md
rename to legacy/doc/models/tender-cash-details.md
diff --git a/doc/models/tender-square-account-details-status.md b/legacy/doc/models/tender-square-account-details-status.md
similarity index 100%
rename from doc/models/tender-square-account-details-status.md
rename to legacy/doc/models/tender-square-account-details-status.md
diff --git a/doc/models/tender-square-account-details.md b/legacy/doc/models/tender-square-account-details.md
similarity index 100%
rename from doc/models/tender-square-account-details.md
rename to legacy/doc/models/tender-square-account-details.md
diff --git a/doc/models/tender-type.md b/legacy/doc/models/tender-type.md
similarity index 100%
rename from doc/models/tender-type.md
rename to legacy/doc/models/tender-type.md
diff --git a/doc/models/tender.md b/legacy/doc/models/tender.md
similarity index 100%
rename from doc/models/tender.md
rename to legacy/doc/models/tender.md
diff --git a/doc/models/terminal-action-action-type.md b/legacy/doc/models/terminal-action-action-type.md
similarity index 100%
rename from doc/models/terminal-action-action-type.md
rename to legacy/doc/models/terminal-action-action-type.md
diff --git a/doc/models/terminal-action-query-filter.md b/legacy/doc/models/terminal-action-query-filter.md
similarity index 100%
rename from doc/models/terminal-action-query-filter.md
rename to legacy/doc/models/terminal-action-query-filter.md
diff --git a/doc/models/terminal-action-query-sort.md b/legacy/doc/models/terminal-action-query-sort.md
similarity index 100%
rename from doc/models/terminal-action-query-sort.md
rename to legacy/doc/models/terminal-action-query-sort.md
diff --git a/doc/models/terminal-action-query.md b/legacy/doc/models/terminal-action-query.md
similarity index 100%
rename from doc/models/terminal-action-query.md
rename to legacy/doc/models/terminal-action-query.md
diff --git a/doc/models/terminal-action.md b/legacy/doc/models/terminal-action.md
similarity index 100%
rename from doc/models/terminal-action.md
rename to legacy/doc/models/terminal-action.md
diff --git a/doc/models/terminal-checkout-query-filter.md b/legacy/doc/models/terminal-checkout-query-filter.md
similarity index 100%
rename from doc/models/terminal-checkout-query-filter.md
rename to legacy/doc/models/terminal-checkout-query-filter.md
diff --git a/doc/models/terminal-checkout-query-sort.md b/legacy/doc/models/terminal-checkout-query-sort.md
similarity index 100%
rename from doc/models/terminal-checkout-query-sort.md
rename to legacy/doc/models/terminal-checkout-query-sort.md
diff --git a/doc/models/terminal-checkout-query.md b/legacy/doc/models/terminal-checkout-query.md
similarity index 100%
rename from doc/models/terminal-checkout-query.md
rename to legacy/doc/models/terminal-checkout-query.md
diff --git a/doc/models/terminal-checkout.md b/legacy/doc/models/terminal-checkout.md
similarity index 100%
rename from doc/models/terminal-checkout.md
rename to legacy/doc/models/terminal-checkout.md
diff --git a/doc/models/terminal-refund-query-filter.md b/legacy/doc/models/terminal-refund-query-filter.md
similarity index 100%
rename from doc/models/terminal-refund-query-filter.md
rename to legacy/doc/models/terminal-refund-query-filter.md
diff --git a/doc/models/terminal-refund-query-sort.md b/legacy/doc/models/terminal-refund-query-sort.md
similarity index 100%
rename from doc/models/terminal-refund-query-sort.md
rename to legacy/doc/models/terminal-refund-query-sort.md
diff --git a/doc/models/terminal-refund-query.md b/legacy/doc/models/terminal-refund-query.md
similarity index 100%
rename from doc/models/terminal-refund-query.md
rename to legacy/doc/models/terminal-refund-query.md
diff --git a/doc/models/terminal-refund.md b/legacy/doc/models/terminal-refund.md
similarity index 100%
rename from doc/models/terminal-refund.md
rename to legacy/doc/models/terminal-refund.md
diff --git a/doc/models/test-webhook-subscription-request.md b/legacy/doc/models/test-webhook-subscription-request.md
similarity index 100%
rename from doc/models/test-webhook-subscription-request.md
rename to legacy/doc/models/test-webhook-subscription-request.md
diff --git a/doc/models/test-webhook-subscription-response.md b/legacy/doc/models/test-webhook-subscription-response.md
similarity index 100%
rename from doc/models/test-webhook-subscription-response.md
rename to legacy/doc/models/test-webhook-subscription-response.md
diff --git a/doc/models/time-range.md b/legacy/doc/models/time-range.md
similarity index 100%
rename from doc/models/time-range.md
rename to legacy/doc/models/time-range.md
diff --git a/doc/models/tip-settings.md b/legacy/doc/models/tip-settings.md
similarity index 100%
rename from doc/models/tip-settings.md
rename to legacy/doc/models/tip-settings.md
diff --git a/doc/models/transaction-product.md b/legacy/doc/models/transaction-product.md
similarity index 100%
rename from doc/models/transaction-product.md
rename to legacy/doc/models/transaction-product.md
diff --git a/doc/models/transaction-type.md b/legacy/doc/models/transaction-type.md
similarity index 100%
rename from doc/models/transaction-type.md
rename to legacy/doc/models/transaction-type.md
diff --git a/doc/models/transaction.md b/legacy/doc/models/transaction.md
similarity index 100%
rename from doc/models/transaction.md
rename to legacy/doc/models/transaction.md
diff --git a/doc/models/unlink-customer-from-gift-card-request.md b/legacy/doc/models/unlink-customer-from-gift-card-request.md
similarity index 100%
rename from doc/models/unlink-customer-from-gift-card-request.md
rename to legacy/doc/models/unlink-customer-from-gift-card-request.md
diff --git a/doc/models/unlink-customer-from-gift-card-response.md b/legacy/doc/models/unlink-customer-from-gift-card-response.md
similarity index 100%
rename from doc/models/unlink-customer-from-gift-card-response.md
rename to legacy/doc/models/unlink-customer-from-gift-card-response.md
diff --git a/doc/models/update-booking-custom-attribute-definition-request.md b/legacy/doc/models/update-booking-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/update-booking-custom-attribute-definition-request.md
rename to legacy/doc/models/update-booking-custom-attribute-definition-request.md
diff --git a/doc/models/update-booking-custom-attribute-definition-response.md b/legacy/doc/models/update-booking-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/update-booking-custom-attribute-definition-response.md
rename to legacy/doc/models/update-booking-custom-attribute-definition-response.md
diff --git a/doc/models/update-booking-request.md b/legacy/doc/models/update-booking-request.md
similarity index 100%
rename from doc/models/update-booking-request.md
rename to legacy/doc/models/update-booking-request.md
diff --git a/doc/models/update-booking-response.md b/legacy/doc/models/update-booking-response.md
similarity index 100%
rename from doc/models/update-booking-response.md
rename to legacy/doc/models/update-booking-response.md
diff --git a/doc/models/update-break-type-request.md b/legacy/doc/models/update-break-type-request.md
similarity index 100%
rename from doc/models/update-break-type-request.md
rename to legacy/doc/models/update-break-type-request.md
diff --git a/doc/models/update-break-type-response.md b/legacy/doc/models/update-break-type-response.md
similarity index 100%
rename from doc/models/update-break-type-response.md
rename to legacy/doc/models/update-break-type-response.md
diff --git a/doc/models/update-catalog-image-request.md b/legacy/doc/models/update-catalog-image-request.md
similarity index 100%
rename from doc/models/update-catalog-image-request.md
rename to legacy/doc/models/update-catalog-image-request.md
diff --git a/doc/models/update-catalog-image-response.md b/legacy/doc/models/update-catalog-image-response.md
similarity index 100%
rename from doc/models/update-catalog-image-response.md
rename to legacy/doc/models/update-catalog-image-response.md
diff --git a/doc/models/update-customer-custom-attribute-definition-request.md b/legacy/doc/models/update-customer-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/update-customer-custom-attribute-definition-request.md
rename to legacy/doc/models/update-customer-custom-attribute-definition-request.md
diff --git a/doc/models/update-customer-custom-attribute-definition-response.md b/legacy/doc/models/update-customer-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/update-customer-custom-attribute-definition-response.md
rename to legacy/doc/models/update-customer-custom-attribute-definition-response.md
diff --git a/doc/models/update-customer-group-request.md b/legacy/doc/models/update-customer-group-request.md
similarity index 100%
rename from doc/models/update-customer-group-request.md
rename to legacy/doc/models/update-customer-group-request.md
diff --git a/doc/models/update-customer-group-response.md b/legacy/doc/models/update-customer-group-response.md
similarity index 100%
rename from doc/models/update-customer-group-response.md
rename to legacy/doc/models/update-customer-group-response.md
diff --git a/doc/models/update-customer-request.md b/legacy/doc/models/update-customer-request.md
similarity index 100%
rename from doc/models/update-customer-request.md
rename to legacy/doc/models/update-customer-request.md
diff --git a/doc/models/update-customer-response.md b/legacy/doc/models/update-customer-response.md
similarity index 100%
rename from doc/models/update-customer-response.md
rename to legacy/doc/models/update-customer-response.md
diff --git a/doc/models/update-invoice-request.md b/legacy/doc/models/update-invoice-request.md
similarity index 100%
rename from doc/models/update-invoice-request.md
rename to legacy/doc/models/update-invoice-request.md
diff --git a/doc/models/update-invoice-response.md b/legacy/doc/models/update-invoice-response.md
similarity index 100%
rename from doc/models/update-invoice-response.md
rename to legacy/doc/models/update-invoice-response.md
diff --git a/doc/models/update-item-modifier-lists-request.md b/legacy/doc/models/update-item-modifier-lists-request.md
similarity index 100%
rename from doc/models/update-item-modifier-lists-request.md
rename to legacy/doc/models/update-item-modifier-lists-request.md
diff --git a/doc/models/update-item-modifier-lists-response.md b/legacy/doc/models/update-item-modifier-lists-response.md
similarity index 100%
rename from doc/models/update-item-modifier-lists-response.md
rename to legacy/doc/models/update-item-modifier-lists-response.md
diff --git a/doc/models/update-item-taxes-request.md b/legacy/doc/models/update-item-taxes-request.md
similarity index 100%
rename from doc/models/update-item-taxes-request.md
rename to legacy/doc/models/update-item-taxes-request.md
diff --git a/doc/models/update-item-taxes-response.md b/legacy/doc/models/update-item-taxes-response.md
similarity index 100%
rename from doc/models/update-item-taxes-response.md
rename to legacy/doc/models/update-item-taxes-response.md
diff --git a/doc/models/update-job-request.md b/legacy/doc/models/update-job-request.md
similarity index 100%
rename from doc/models/update-job-request.md
rename to legacy/doc/models/update-job-request.md
diff --git a/doc/models/update-job-response.md b/legacy/doc/models/update-job-response.md
similarity index 100%
rename from doc/models/update-job-response.md
rename to legacy/doc/models/update-job-response.md
diff --git a/doc/models/update-location-custom-attribute-definition-request.md b/legacy/doc/models/update-location-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/update-location-custom-attribute-definition-request.md
rename to legacy/doc/models/update-location-custom-attribute-definition-request.md
diff --git a/doc/models/update-location-custom-attribute-definition-response.md b/legacy/doc/models/update-location-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/update-location-custom-attribute-definition-response.md
rename to legacy/doc/models/update-location-custom-attribute-definition-response.md
diff --git a/doc/models/update-location-request.md b/legacy/doc/models/update-location-request.md
similarity index 100%
rename from doc/models/update-location-request.md
rename to legacy/doc/models/update-location-request.md
diff --git a/doc/models/update-location-response.md b/legacy/doc/models/update-location-response.md
similarity index 100%
rename from doc/models/update-location-response.md
rename to legacy/doc/models/update-location-response.md
diff --git a/doc/models/update-location-settings-request.md b/legacy/doc/models/update-location-settings-request.md
similarity index 100%
rename from doc/models/update-location-settings-request.md
rename to legacy/doc/models/update-location-settings-request.md
diff --git a/doc/models/update-location-settings-response.md b/legacy/doc/models/update-location-settings-response.md
similarity index 100%
rename from doc/models/update-location-settings-response.md
rename to legacy/doc/models/update-location-settings-response.md
diff --git a/doc/models/update-merchant-custom-attribute-definition-request.md b/legacy/doc/models/update-merchant-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/update-merchant-custom-attribute-definition-request.md
rename to legacy/doc/models/update-merchant-custom-attribute-definition-request.md
diff --git a/doc/models/update-merchant-custom-attribute-definition-response.md b/legacy/doc/models/update-merchant-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/update-merchant-custom-attribute-definition-response.md
rename to legacy/doc/models/update-merchant-custom-attribute-definition-response.md
diff --git a/doc/models/update-merchant-settings-request.md b/legacy/doc/models/update-merchant-settings-request.md
similarity index 100%
rename from doc/models/update-merchant-settings-request.md
rename to legacy/doc/models/update-merchant-settings-request.md
diff --git a/doc/models/update-merchant-settings-response.md b/legacy/doc/models/update-merchant-settings-response.md
similarity index 100%
rename from doc/models/update-merchant-settings-response.md
rename to legacy/doc/models/update-merchant-settings-response.md
diff --git a/doc/models/update-order-custom-attribute-definition-request.md b/legacy/doc/models/update-order-custom-attribute-definition-request.md
similarity index 100%
rename from doc/models/update-order-custom-attribute-definition-request.md
rename to legacy/doc/models/update-order-custom-attribute-definition-request.md
diff --git a/doc/models/update-order-custom-attribute-definition-response.md b/legacy/doc/models/update-order-custom-attribute-definition-response.md
similarity index 100%
rename from doc/models/update-order-custom-attribute-definition-response.md
rename to legacy/doc/models/update-order-custom-attribute-definition-response.md
diff --git a/doc/models/update-order-request.md b/legacy/doc/models/update-order-request.md
similarity index 100%
rename from doc/models/update-order-request.md
rename to legacy/doc/models/update-order-request.md
diff --git a/doc/models/update-order-response.md b/legacy/doc/models/update-order-response.md
similarity index 100%
rename from doc/models/update-order-response.md
rename to legacy/doc/models/update-order-response.md
diff --git a/doc/models/update-payment-link-request.md b/legacy/doc/models/update-payment-link-request.md
similarity index 100%
rename from doc/models/update-payment-link-request.md
rename to legacy/doc/models/update-payment-link-request.md
diff --git a/doc/models/update-payment-link-response.md b/legacy/doc/models/update-payment-link-response.md
similarity index 100%
rename from doc/models/update-payment-link-response.md
rename to legacy/doc/models/update-payment-link-response.md
diff --git a/doc/models/update-payment-request.md b/legacy/doc/models/update-payment-request.md
similarity index 100%
rename from doc/models/update-payment-request.md
rename to legacy/doc/models/update-payment-request.md
diff --git a/doc/models/update-payment-response.md b/legacy/doc/models/update-payment-response.md
similarity index 100%
rename from doc/models/update-payment-response.md
rename to legacy/doc/models/update-payment-response.md
diff --git a/doc/models/update-shift-request.md b/legacy/doc/models/update-shift-request.md
similarity index 100%
rename from doc/models/update-shift-request.md
rename to legacy/doc/models/update-shift-request.md
diff --git a/doc/models/update-shift-response.md b/legacy/doc/models/update-shift-response.md
similarity index 100%
rename from doc/models/update-shift-response.md
rename to legacy/doc/models/update-shift-response.md
diff --git a/doc/models/update-subscription-request.md b/legacy/doc/models/update-subscription-request.md
similarity index 100%
rename from doc/models/update-subscription-request.md
rename to legacy/doc/models/update-subscription-request.md
diff --git a/doc/models/update-subscription-response.md b/legacy/doc/models/update-subscription-response.md
similarity index 100%
rename from doc/models/update-subscription-response.md
rename to legacy/doc/models/update-subscription-response.md
diff --git a/doc/models/update-team-member-request.md b/legacy/doc/models/update-team-member-request.md
similarity index 100%
rename from doc/models/update-team-member-request.md
rename to legacy/doc/models/update-team-member-request.md
diff --git a/doc/models/update-team-member-response.md b/legacy/doc/models/update-team-member-response.md
similarity index 100%
rename from doc/models/update-team-member-response.md
rename to legacy/doc/models/update-team-member-response.md
diff --git a/doc/models/update-vendor-request.md b/legacy/doc/models/update-vendor-request.md
similarity index 100%
rename from doc/models/update-vendor-request.md
rename to legacy/doc/models/update-vendor-request.md
diff --git a/doc/models/update-vendor-response.md b/legacy/doc/models/update-vendor-response.md
similarity index 100%
rename from doc/models/update-vendor-response.md
rename to legacy/doc/models/update-vendor-response.md
diff --git a/doc/models/update-wage-setting-request.md b/legacy/doc/models/update-wage-setting-request.md
similarity index 100%
rename from doc/models/update-wage-setting-request.md
rename to legacy/doc/models/update-wage-setting-request.md
diff --git a/doc/models/update-wage-setting-response.md b/legacy/doc/models/update-wage-setting-response.md
similarity index 100%
rename from doc/models/update-wage-setting-response.md
rename to legacy/doc/models/update-wage-setting-response.md
diff --git a/doc/models/update-webhook-subscription-request.md b/legacy/doc/models/update-webhook-subscription-request.md
similarity index 100%
rename from doc/models/update-webhook-subscription-request.md
rename to legacy/doc/models/update-webhook-subscription-request.md
diff --git a/doc/models/update-webhook-subscription-response.md b/legacy/doc/models/update-webhook-subscription-response.md
similarity index 100%
rename from doc/models/update-webhook-subscription-response.md
rename to legacy/doc/models/update-webhook-subscription-response.md
diff --git a/doc/models/update-webhook-subscription-signature-key-request.md b/legacy/doc/models/update-webhook-subscription-signature-key-request.md
similarity index 100%
rename from doc/models/update-webhook-subscription-signature-key-request.md
rename to legacy/doc/models/update-webhook-subscription-signature-key-request.md
diff --git a/doc/models/update-webhook-subscription-signature-key-response.md b/legacy/doc/models/update-webhook-subscription-signature-key-response.md
similarity index 100%
rename from doc/models/update-webhook-subscription-signature-key-response.md
rename to legacy/doc/models/update-webhook-subscription-signature-key-response.md
diff --git a/doc/models/update-workweek-config-request.md b/legacy/doc/models/update-workweek-config-request.md
similarity index 100%
rename from doc/models/update-workweek-config-request.md
rename to legacy/doc/models/update-workweek-config-request.md
diff --git a/doc/models/update-workweek-config-response.md b/legacy/doc/models/update-workweek-config-response.md
similarity index 100%
rename from doc/models/update-workweek-config-response.md
rename to legacy/doc/models/update-workweek-config-response.md
diff --git a/doc/models/upsert-booking-custom-attribute-request.md b/legacy/doc/models/upsert-booking-custom-attribute-request.md
similarity index 100%
rename from doc/models/upsert-booking-custom-attribute-request.md
rename to legacy/doc/models/upsert-booking-custom-attribute-request.md
diff --git a/doc/models/upsert-booking-custom-attribute-response.md b/legacy/doc/models/upsert-booking-custom-attribute-response.md
similarity index 100%
rename from doc/models/upsert-booking-custom-attribute-response.md
rename to legacy/doc/models/upsert-booking-custom-attribute-response.md
diff --git a/doc/models/upsert-catalog-object-request.md b/legacy/doc/models/upsert-catalog-object-request.md
similarity index 100%
rename from doc/models/upsert-catalog-object-request.md
rename to legacy/doc/models/upsert-catalog-object-request.md
diff --git a/doc/models/upsert-catalog-object-response.md b/legacy/doc/models/upsert-catalog-object-response.md
similarity index 100%
rename from doc/models/upsert-catalog-object-response.md
rename to legacy/doc/models/upsert-catalog-object-response.md
diff --git a/doc/models/upsert-customer-custom-attribute-request.md b/legacy/doc/models/upsert-customer-custom-attribute-request.md
similarity index 100%
rename from doc/models/upsert-customer-custom-attribute-request.md
rename to legacy/doc/models/upsert-customer-custom-attribute-request.md
diff --git a/doc/models/upsert-customer-custom-attribute-response.md b/legacy/doc/models/upsert-customer-custom-attribute-response.md
similarity index 100%
rename from doc/models/upsert-customer-custom-attribute-response.md
rename to legacy/doc/models/upsert-customer-custom-attribute-response.md
diff --git a/doc/models/upsert-location-custom-attribute-request.md b/legacy/doc/models/upsert-location-custom-attribute-request.md
similarity index 100%
rename from doc/models/upsert-location-custom-attribute-request.md
rename to legacy/doc/models/upsert-location-custom-attribute-request.md
diff --git a/doc/models/upsert-location-custom-attribute-response.md b/legacy/doc/models/upsert-location-custom-attribute-response.md
similarity index 100%
rename from doc/models/upsert-location-custom-attribute-response.md
rename to legacy/doc/models/upsert-location-custom-attribute-response.md
diff --git a/doc/models/upsert-merchant-custom-attribute-request.md b/legacy/doc/models/upsert-merchant-custom-attribute-request.md
similarity index 100%
rename from doc/models/upsert-merchant-custom-attribute-request.md
rename to legacy/doc/models/upsert-merchant-custom-attribute-request.md
diff --git a/doc/models/upsert-merchant-custom-attribute-response.md b/legacy/doc/models/upsert-merchant-custom-attribute-response.md
similarity index 100%
rename from doc/models/upsert-merchant-custom-attribute-response.md
rename to legacy/doc/models/upsert-merchant-custom-attribute-response.md
diff --git a/doc/models/upsert-order-custom-attribute-request.md b/legacy/doc/models/upsert-order-custom-attribute-request.md
similarity index 100%
rename from doc/models/upsert-order-custom-attribute-request.md
rename to legacy/doc/models/upsert-order-custom-attribute-request.md
diff --git a/doc/models/upsert-order-custom-attribute-response.md b/legacy/doc/models/upsert-order-custom-attribute-response.md
similarity index 100%
rename from doc/models/upsert-order-custom-attribute-response.md
rename to legacy/doc/models/upsert-order-custom-attribute-response.md
diff --git a/doc/models/upsert-snippet-request.md b/legacy/doc/models/upsert-snippet-request.md
similarity index 100%
rename from doc/models/upsert-snippet-request.md
rename to legacy/doc/models/upsert-snippet-request.md
diff --git a/doc/models/upsert-snippet-response.md b/legacy/doc/models/upsert-snippet-response.md
similarity index 100%
rename from doc/models/upsert-snippet-response.md
rename to legacy/doc/models/upsert-snippet-response.md
diff --git a/doc/models/v1-device.md b/legacy/doc/models/v1-device.md
similarity index 100%
rename from doc/models/v1-device.md
rename to legacy/doc/models/v1-device.md
diff --git a/doc/models/v1-list-orders-request.md b/legacy/doc/models/v1-list-orders-request.md
similarity index 100%
rename from doc/models/v1-list-orders-request.md
rename to legacy/doc/models/v1-list-orders-request.md
diff --git a/doc/models/v1-list-orders-response.md b/legacy/doc/models/v1-list-orders-response.md
similarity index 100%
rename from doc/models/v1-list-orders-response.md
rename to legacy/doc/models/v1-list-orders-response.md
diff --git a/doc/models/v1-money.md b/legacy/doc/models/v1-money.md
similarity index 100%
rename from doc/models/v1-money.md
rename to legacy/doc/models/v1-money.md
diff --git a/doc/models/v1-order-history-entry-action.md b/legacy/doc/models/v1-order-history-entry-action.md
similarity index 100%
rename from doc/models/v1-order-history-entry-action.md
rename to legacy/doc/models/v1-order-history-entry-action.md
diff --git a/doc/models/v1-order-history-entry.md b/legacy/doc/models/v1-order-history-entry.md
similarity index 100%
rename from doc/models/v1-order-history-entry.md
rename to legacy/doc/models/v1-order-history-entry.md
diff --git a/doc/models/v1-order-state.md b/legacy/doc/models/v1-order-state.md
similarity index 100%
rename from doc/models/v1-order-state.md
rename to legacy/doc/models/v1-order-state.md
diff --git a/doc/models/v1-order.md b/legacy/doc/models/v1-order.md
similarity index 100%
rename from doc/models/v1-order.md
rename to legacy/doc/models/v1-order.md
diff --git a/doc/models/v1-phone-number.md b/legacy/doc/models/v1-phone-number.md
similarity index 100%
rename from doc/models/v1-phone-number.md
rename to legacy/doc/models/v1-phone-number.md
diff --git a/doc/models/v1-tender-card-brand.md b/legacy/doc/models/v1-tender-card-brand.md
similarity index 100%
rename from doc/models/v1-tender-card-brand.md
rename to legacy/doc/models/v1-tender-card-brand.md
diff --git a/doc/models/v1-tender-entry-method.md b/legacy/doc/models/v1-tender-entry-method.md
similarity index 100%
rename from doc/models/v1-tender-entry-method.md
rename to legacy/doc/models/v1-tender-entry-method.md
diff --git a/doc/models/v1-tender-type.md b/legacy/doc/models/v1-tender-type.md
similarity index 100%
rename from doc/models/v1-tender-type.md
rename to legacy/doc/models/v1-tender-type.md
diff --git a/doc/models/v1-tender.md b/legacy/doc/models/v1-tender.md
similarity index 100%
rename from doc/models/v1-tender.md
rename to legacy/doc/models/v1-tender.md
diff --git a/doc/models/v1-update-order-request-action.md b/legacy/doc/models/v1-update-order-request-action.md
similarity index 100%
rename from doc/models/v1-update-order-request-action.md
rename to legacy/doc/models/v1-update-order-request-action.md
diff --git a/doc/models/v1-update-order-request.md b/legacy/doc/models/v1-update-order-request.md
similarity index 100%
rename from doc/models/v1-update-order-request.md
rename to legacy/doc/models/v1-update-order-request.md
diff --git a/doc/models/vendor-contact.md b/legacy/doc/models/vendor-contact.md
similarity index 100%
rename from doc/models/vendor-contact.md
rename to legacy/doc/models/vendor-contact.md
diff --git a/doc/models/vendor-status.md b/legacy/doc/models/vendor-status.md
similarity index 100%
rename from doc/models/vendor-status.md
rename to legacy/doc/models/vendor-status.md
diff --git a/doc/models/vendor.md b/legacy/doc/models/vendor.md
similarity index 100%
rename from doc/models/vendor.md
rename to legacy/doc/models/vendor.md
diff --git a/doc/models/visibility-filter.md b/legacy/doc/models/visibility-filter.md
similarity index 100%
rename from doc/models/visibility-filter.md
rename to legacy/doc/models/visibility-filter.md
diff --git a/doc/models/void-transaction-response.md b/legacy/doc/models/void-transaction-response.md
similarity index 100%
rename from doc/models/void-transaction-response.md
rename to legacy/doc/models/void-transaction-response.md
diff --git a/doc/models/wage-setting.md b/legacy/doc/models/wage-setting.md
similarity index 100%
rename from doc/models/wage-setting.md
rename to legacy/doc/models/wage-setting.md
diff --git a/doc/models/webhook-subscription.md b/legacy/doc/models/webhook-subscription.md
similarity index 100%
rename from doc/models/webhook-subscription.md
rename to legacy/doc/models/webhook-subscription.md
diff --git a/doc/models/weekday.md b/legacy/doc/models/weekday.md
similarity index 100%
rename from doc/models/weekday.md
rename to legacy/doc/models/weekday.md
diff --git a/doc/models/workweek-config.md b/legacy/doc/models/workweek-config.md
similarity index 100%
rename from doc/models/workweek-config.md
rename to legacy/doc/models/workweek-config.md
diff --git a/legacy/exports/index.d.mts b/legacy/exports/index.d.mts
new file mode 100644
index 000000000..d4a3b9f49
--- /dev/null
+++ b/legacy/exports/index.d.mts
@@ -0,0 +1 @@
+export * from "square-legacy";
\ No newline at end of file
diff --git a/legacy/exports/index.d.ts b/legacy/exports/index.d.ts
new file mode 100644
index 000000000..d4a3b9f49
--- /dev/null
+++ b/legacy/exports/index.d.ts
@@ -0,0 +1 @@
+export * from "square-legacy";
\ No newline at end of file
diff --git a/legacy/exports/index.js b/legacy/exports/index.js
new file mode 100644
index 000000000..de8433c9d
--- /dev/null
+++ b/legacy/exports/index.js
@@ -0,0 +1 @@
+module.exports = require("square-legacy");
\ No newline at end of file
diff --git a/legacy/exports/index.mjs b/legacy/exports/index.mjs
new file mode 100644
index 000000000..d4a3b9f49
--- /dev/null
+++ b/legacy/exports/index.mjs
@@ -0,0 +1 @@
+export * from "square-legacy";
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
deleted file mode 100644
index 24fdc7754..000000000
--- a/package-lock.json
+++ /dev/null
@@ -1,9852 +0,0 @@
-{
- "name": "square",
- "version": "4.5.6",
- "lockfileVersion": 1,
- "requires": true,
- "dependencies": {
- "@apimatic/schema": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/@apimatic/schema/-/schema-0.4.1.tgz",
- "integrity": "sha512-KdGp4GaC0sTlcwshahvqZ8OrB/QEM99lxm3sEAo5JgVQP3XH0y/+zeguV8OZhiXRsHERoVZvcI4rKBSHcL84gQ==",
- "requires": {
- "lodash.flatten": "^4.4.0"
- }
- },
- "@babel/code-frame": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
- "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==",
- "dev": true,
- "requires": {
- "@babel/highlight": "^7.10.4"
- }
- },
- "@babel/compat-data": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.12.1.tgz",
- "integrity": "sha512-725AQupWJZ8ba0jbKceeFblZTY90McUBWMwHhkFQ9q1zKPJ95GUktljFcgcsIVwRnTnRKlcYzfiNImg5G9m6ZQ==",
- "dev": true
- },
- "@babel/core": {
- "version": "7.12.3",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.3.tgz",
- "integrity": "sha512-0qXcZYKZp3/6N2jKYVxZv0aNCsxTSVCiK72DTiTYZAu7sjg73W0/aynWjMbiGd87EQL4WyA8reiJVh92AVla9g==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.10.4",
- "@babel/generator": "^7.12.1",
- "@babel/helper-module-transforms": "^7.12.1",
- "@babel/helpers": "^7.12.1",
- "@babel/parser": "^7.12.3",
- "@babel/template": "^7.10.4",
- "@babel/traverse": "^7.12.1",
- "@babel/types": "^7.12.1",
- "convert-source-map": "^1.7.0",
- "debug": "^4.1.0",
- "gensync": "^1.0.0-beta.1",
- "json5": "^2.1.2",
- "lodash": "^4.17.19",
- "resolve": "^1.3.2",
- "semver": "^5.4.1",
- "source-map": "^0.5.0"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "dev": true
- }
- }
- },
- "@babel/generator": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.1.tgz",
- "integrity": "sha512-DB+6rafIdc9o72Yc3/Ph5h+6hUjeOp66pF0naQBgUFFuPqzQwIlPTm3xZR7YNvduIMtkDIj2t21LSQwnbCrXvg==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.12.1",
- "jsesc": "^2.5.1",
- "source-map": "^0.5.0"
- }
- },
- "@babel/helper-annotate-as-pure": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.10.4.tgz",
- "integrity": "sha512-XQlqKQP4vXFB7BN8fEEerrmYvHp3fK/rBkRFz9jaJbzK0B1DSfej9Kc7ZzE8Z/OnId1jpJdNAZ3BFQjWG68rcA==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.10.4"
- }
- },
- "@babel/helper-builder-binary-assignment-operator-visitor": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.10.4.tgz",
- "integrity": "sha512-L0zGlFrGWZK4PbT8AszSfLTM5sDU1+Az/En9VrdT8/LmEiJt4zXt+Jve9DCAnQcbqDhCI+29y/L93mrDzddCcg==",
- "dev": true,
- "requires": {
- "@babel/helper-explode-assignable-expression": "^7.10.4",
- "@babel/types": "^7.10.4"
- }
- },
- "@babel/helper-compilation-targets": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.12.1.tgz",
- "integrity": "sha512-jtBEif7jsPwP27GPHs06v4WBV0KrE8a/P7n0N0sSvHn2hwUCYnolP/CLmz51IzAW4NlN+HuoBtb9QcwnRo9F/g==",
- "dev": true,
- "requires": {
- "@babel/compat-data": "^7.12.1",
- "@babel/helper-validator-option": "^7.12.1",
- "browserslist": "^4.12.0",
- "semver": "^5.5.0"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "dev": true
- }
- }
- },
- "@babel/helper-create-class-features-plugin": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.12.1.tgz",
- "integrity": "sha512-hkL++rWeta/OVOBTRJc9a5Azh5mt5WgZUGAKMD8JM141YsE08K//bp1unBBieO6rUKkIPyUE0USQ30jAy3Sk1w==",
- "dev": true,
- "requires": {
- "@babel/helper-function-name": "^7.10.4",
- "@babel/helper-member-expression-to-functions": "^7.12.1",
- "@babel/helper-optimise-call-expression": "^7.10.4",
- "@babel/helper-replace-supers": "^7.12.1",
- "@babel/helper-split-export-declaration": "^7.10.4"
- }
- },
- "@babel/helper-create-regexp-features-plugin": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.12.1.tgz",
- "integrity": "sha512-rsZ4LGvFTZnzdNZR5HZdmJVuXK8834R5QkF3WvcnBhrlVtF0HSIUC6zbreL9MgjTywhKokn8RIYRiq99+DLAxA==",
- "dev": true,
- "requires": {
- "@babel/helper-annotate-as-pure": "^7.10.4",
- "@babel/helper-regex": "^7.10.4",
- "regexpu-core": "^4.7.1"
- }
- },
- "@babel/helper-define-map": {
- "version": "7.10.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.10.5.tgz",
- "integrity": "sha512-fMw4kgFB720aQFXSVaXr79pjjcW5puTCM16+rECJ/plGS+zByelE8l9nCpV1GibxTnFVmUuYG9U8wYfQHdzOEQ==",
- "dev": true,
- "requires": {
- "@babel/helper-function-name": "^7.10.4",
- "@babel/types": "^7.10.5",
- "lodash": "^4.17.19"
- }
- },
- "@babel/helper-define-polyfill-provider": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.0.3.tgz",
- "integrity": "sha512-dULDd/APiP4JowYDAMosecKOi/1v+UId99qhBGiO3myM29KtAVKS/R3x3OJJNBR0FeYB1BcYb2dCwkhqvxWXXQ==",
- "dev": true,
- "requires": {
- "@babel/helper-compilation-targets": "^7.10.4",
- "@babel/helper-module-imports": "^7.10.4",
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/traverse": "^7.11.5",
- "debug": "^4.1.1",
- "lodash.debounce": "^4.0.8",
- "resolve": "^1.14.2",
- "semver": "^6.1.2"
- },
- "dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "dev": true
- }
- }
- },
- "@babel/helper-explode-assignable-expression": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.12.1.tgz",
- "integrity": "sha512-dmUwH8XmlrUpVqgtZ737tK88v07l840z9j3OEhCLwKTkjlvKpfqXVIZ0wpK3aeOxspwGrf/5AP5qLx4rO3w5rA==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.12.1"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz",
- "integrity": "sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "^7.10.4",
- "@babel/template": "^7.10.4",
- "@babel/types": "^7.10.4"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz",
- "integrity": "sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.10.4"
- }
- },
- "@babel/helper-hoist-variables": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.10.4.tgz",
- "integrity": "sha512-wljroF5PgCk2juF69kanHVs6vrLwIPNp6DLD+Lrl3hoQ3PpPPikaDRNFA+0t81NOoMt2DL6WW/mdU8k4k6ZzuA==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.10.4"
- }
- },
- "@babel/helper-member-expression-to-functions": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.12.1.tgz",
- "integrity": "sha512-k0CIe3tXUKTRSoEx1LQEPFU9vRQfqHtl+kf8eNnDqb4AUJEy5pz6aIiog+YWtVm2jpggjS1laH68bPsR+KWWPQ==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.12.1"
- }
- },
- "@babel/helper-module-imports": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.12.1.tgz",
- "integrity": "sha512-ZeC1TlMSvikvJNy1v/wPIazCu3NdOwgYZLIkmIyAsGhqkNpiDoQQRmaCK8YP4Pq3GPTLPV9WXaPCJKvx06JxKA==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.12.1"
- }
- },
- "@babel/helper-module-transforms": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.12.1.tgz",
- "integrity": "sha512-QQzehgFAZ2bbISiCpmVGfiGux8YVFXQ0abBic2Envhej22DVXV9nCFaS5hIQbkyo1AdGb+gNME2TSh3hYJVV/w==",
- "dev": true,
- "requires": {
- "@babel/helper-module-imports": "^7.12.1",
- "@babel/helper-replace-supers": "^7.12.1",
- "@babel/helper-simple-access": "^7.12.1",
- "@babel/helper-split-export-declaration": "^7.11.0",
- "@babel/helper-validator-identifier": "^7.10.4",
- "@babel/template": "^7.10.4",
- "@babel/traverse": "^7.12.1",
- "@babel/types": "^7.12.1",
- "lodash": "^4.17.19"
- }
- },
- "@babel/helper-optimise-call-expression": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.4.tgz",
- "integrity": "sha512-n3UGKY4VXwXThEiKrgRAoVPBMqeoPgHVqiHZOanAJCG9nQUL2pLRQirUzl0ioKclHGpGqRgIOkgcIJaIWLpygg==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.10.4"
- }
- },
- "@babel/helper-plugin-utils": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz",
- "integrity": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==",
- "dev": true
- },
- "@babel/helper-regex": {
- "version": "7.10.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.10.5.tgz",
- "integrity": "sha512-68kdUAzDrljqBrio7DYAEgCoJHxppJOERHOgOrDN7WjOzP0ZQ1LsSDRXcemzVZaLvjaJsJEESb6qt+znNuENDg==",
- "dev": true,
- "requires": {
- "lodash": "^4.17.19"
- }
- },
- "@babel/helper-remap-async-to-generator": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.12.1.tgz",
- "integrity": "sha512-9d0KQCRM8clMPcDwo8SevNs+/9a8yWVVmaE80FGJcEP8N1qToREmWEGnBn8BUlJhYRFz6fqxeRL1sl5Ogsed7A==",
- "dev": true,
- "requires": {
- "@babel/helper-annotate-as-pure": "^7.10.4",
- "@babel/helper-wrap-function": "^7.10.4",
- "@babel/types": "^7.12.1"
- }
- },
- "@babel/helper-replace-supers": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.12.1.tgz",
- "integrity": "sha512-zJjTvtNJnCFsCXVi5rUInstLd/EIVNmIKA1Q9ynESmMBWPWd+7sdR+G4/wdu+Mppfep0XLyG2m7EBPvjCeFyrw==",
- "dev": true,
- "requires": {
- "@babel/helper-member-expression-to-functions": "^7.12.1",
- "@babel/helper-optimise-call-expression": "^7.10.4",
- "@babel/traverse": "^7.12.1",
- "@babel/types": "^7.12.1"
- }
- },
- "@babel/helper-simple-access": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.12.1.tgz",
- "integrity": "sha512-OxBp7pMrjVewSSC8fXDFrHrBcJATOOFssZwv16F3/6Xtc138GHybBfPbm9kfiqQHKhYQrlamWILwlDCeyMFEaA==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.12.1"
- }
- },
- "@babel/helper-skip-transparent-expression-wrappers": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.12.1.tgz",
- "integrity": "sha512-Mf5AUuhG1/OCChOJ/HcADmvcHM42WJockombn8ATJG3OnyiSxBK/Mm5x78BQWvmtXZKHgbjdGL2kin/HOLlZGA==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.12.1"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.11.0",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz",
- "integrity": "sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.11.0"
- }
- },
- "@babel/helper-validator-identifier": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz",
- "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==",
- "dev": true
- },
- "@babel/helper-validator-option": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.12.1.tgz",
- "integrity": "sha512-YpJabsXlJVWP0USHjnC/AQDTLlZERbON577YUVO/wLpqyj6HAtVYnWaQaN0iUN+1/tWn3c+uKKXjRut5115Y2A==",
- "dev": true
- },
- "@babel/helper-wrap-function": {
- "version": "7.12.3",
- "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.12.3.tgz",
- "integrity": "sha512-Cvb8IuJDln3rs6tzjW3Y8UeelAOdnpB8xtQ4sme2MSZ9wOxrbThporC0y/EtE16VAtoyEfLM404Xr1e0OOp+ow==",
- "dev": true,
- "requires": {
- "@babel/helper-function-name": "^7.10.4",
- "@babel/template": "^7.10.4",
- "@babel/traverse": "^7.10.4",
- "@babel/types": "^7.10.4"
- }
- },
- "@babel/helpers": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.12.1.tgz",
- "integrity": "sha512-9JoDSBGoWtmbay98efmT2+mySkwjzeFeAL9BuWNoVQpkPFQF8SIIFUfY5os9u8wVzglzoiPRSW7cuJmBDUt43g==",
- "dev": true,
- "requires": {
- "@babel/template": "^7.10.4",
- "@babel/traverse": "^7.12.1",
- "@babel/types": "^7.12.1"
- }
- },
- "@babel/highlight": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
- "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==",
- "dev": true,
- "requires": {
- "@babel/helper-validator-identifier": "^7.10.4",
- "chalk": "^2.0.0",
- "js-tokens": "^4.0.0"
- },
- "dependencies": {
- "chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
- "dev": true,
- "requires": {
- "ansi-styles": "^3.2.1",
- "escape-string-regexp": "^1.0.5",
- "supports-color": "^5.3.0"
- }
- }
- }
- },
- "@babel/parser": {
- "version": "7.12.3",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.3.tgz",
- "integrity": "sha512-kFsOS0IbsuhO5ojF8Hc8z/8vEIOkylVBrjiZUbLTE3XFe0Qi+uu6HjzQixkFaqr0ZPAMZcBVxEwmsnsLPZ2Xsw==",
- "dev": true
- },
- "@babel/plugin-proposal-async-generator-functions": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.12.1.tgz",
- "integrity": "sha512-d+/o30tJxFxrA1lhzJqiUcEJdI6jKlNregCv5bASeGf2Q4MXmnwH7viDo7nhx1/ohf09oaH8j1GVYG/e3Yqk6A==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-remap-async-to-generator": "^7.12.1",
- "@babel/plugin-syntax-async-generators": "^7.8.0"
- }
- },
- "@babel/plugin-proposal-class-properties": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.1.tgz",
- "integrity": "sha512-cKp3dlQsFsEs5CWKnN7BnSHOd0EOW8EKpEjkoz1pO2E5KzIDNV9Ros1b0CnmbVgAGXJubOYVBOGCT1OmJwOI7w==",
- "dev": true,
- "requires": {
- "@babel/helper-create-class-features-plugin": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-proposal-dynamic-import": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.12.1.tgz",
- "integrity": "sha512-a4rhUSZFuq5W8/OO8H7BL5zspjnc1FLd9hlOxIK/f7qG4a0qsqk8uvF/ywgBA8/OmjsapjpvaEOYItfGG1qIvQ==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/plugin-syntax-dynamic-import": "^7.8.0"
- }
- },
- "@babel/plugin-proposal-export-namespace-from": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.12.1.tgz",
- "integrity": "sha512-6CThGf0irEkzujYS5LQcjBx8j/4aQGiVv7J9+2f7pGfxqyKh3WnmVJYW3hdrQjyksErMGBPQrCnHfOtna+WLbw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/plugin-syntax-export-namespace-from": "^7.8.3"
- }
- },
- "@babel/plugin-proposal-json-strings": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.12.1.tgz",
- "integrity": "sha512-GoLDUi6U9ZLzlSda2Df++VSqDJg3CG+dR0+iWsv6XRw1rEq+zwt4DirM9yrxW6XWaTpmai1cWJLMfM8qQJf+yw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/plugin-syntax-json-strings": "^7.8.0"
- }
- },
- "@babel/plugin-proposal-logical-assignment-operators": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.12.1.tgz",
- "integrity": "sha512-k8ZmVv0JU+4gcUGeCDZOGd0lCIamU/sMtIiX3UWnUc5yzgq6YUGyEolNYD+MLYKfSzgECPcqetVcJP9Afe/aCA==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"
- }
- },
- "@babel/plugin-proposal-nullish-coalescing-operator": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.12.1.tgz",
- "integrity": "sha512-nZY0ESiaQDI1y96+jk6VxMOaL4LPo/QDHBqL+SF3/vl6dHkTwHlOI8L4ZwuRBHgakRBw5zsVylel7QPbbGuYgg==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0"
- }
- },
- "@babel/plugin-proposal-numeric-separator": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.12.1.tgz",
- "integrity": "sha512-MR7Ok+Af3OhNTCxYVjJZHS0t97ydnJZt/DbR4WISO39iDnhiD8XHrY12xuSJ90FFEGjir0Fzyyn7g/zY6hxbxA==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/plugin-syntax-numeric-separator": "^7.10.4"
- }
- },
- "@babel/plugin-proposal-object-rest-spread": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.12.1.tgz",
- "integrity": "sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/plugin-syntax-object-rest-spread": "^7.8.0",
- "@babel/plugin-transform-parameters": "^7.12.1"
- }
- },
- "@babel/plugin-proposal-optional-catch-binding": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.12.1.tgz",
- "integrity": "sha512-hFvIjgprh9mMw5v42sJWLI1lzU5L2sznP805zeT6rySVRA0Y18StRhDqhSxlap0oVgItRsB6WSROp4YnJTJz0g==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/plugin-syntax-optional-catch-binding": "^7.8.0"
- }
- },
- "@babel/plugin-proposal-optional-chaining": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.12.1.tgz",
- "integrity": "sha512-c2uRpY6WzaVDzynVY9liyykS+kVU+WRZPMPYpkelXH8KBt1oXoI89kPbZKKG/jDT5UK92FTW2fZkZaJhdiBabw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-skip-transparent-expression-wrappers": "^7.12.1",
- "@babel/plugin-syntax-optional-chaining": "^7.8.0"
- }
- },
- "@babel/plugin-proposal-private-methods": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.12.1.tgz",
- "integrity": "sha512-mwZ1phvH7/NHK6Kf8LP7MYDogGV+DKB1mryFOEwx5EBNQrosvIczzZFTUmWaeujd5xT6G1ELYWUz3CutMhjE1w==",
- "dev": true,
- "requires": {
- "@babel/helper-create-class-features-plugin": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-proposal-unicode-property-regex": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.12.1.tgz",
- "integrity": "sha512-MYq+l+PvHuw/rKUz1at/vb6nCnQ2gmJBNaM62z0OgH7B2W1D9pvkpYtlti9bGtizNIU1K3zm4bZF9F91efVY0w==",
- "dev": true,
- "requires": {
- "@babel/helper-create-regexp-features-plugin": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-syntax-async-generators": {
- "version": "7.8.4",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
- "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.0"
- }
- },
- "@babel/plugin-syntax-bigint": {
- "version": "7.8.3",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz",
- "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.0"
- }
- },
- "@babel/plugin-syntax-class-properties": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.1.tgz",
- "integrity": "sha512-U40A76x5gTwmESz+qiqssqmeEsKvcSyvtgktrm0uzcARAmM9I1jR221f6Oq+GmHrcD+LvZDag1UTOTe2fL3TeA==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-syntax-dynamic-import": {
- "version": "7.8.3",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz",
- "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.0"
- }
- },
- "@babel/plugin-syntax-export-namespace-from": {
- "version": "7.8.3",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz",
- "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.3"
- }
- },
- "@babel/plugin-syntax-import-meta": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz",
- "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-syntax-json-strings": {
- "version": "7.8.3",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",
- "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.0"
- }
- },
- "@babel/plugin-syntax-logical-assignment-operators": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz",
- "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-syntax-nullish-coalescing-operator": {
- "version": "7.8.3",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
- "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.0"
- }
- },
- "@babel/plugin-syntax-numeric-separator": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz",
- "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-syntax-object-rest-spread": {
- "version": "7.8.3",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",
- "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.0"
- }
- },
- "@babel/plugin-syntax-optional-catch-binding": {
- "version": "7.8.3",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",
- "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.0"
- }
- },
- "@babel/plugin-syntax-optional-chaining": {
- "version": "7.8.3",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",
- "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.8.0"
- }
- },
- "@babel/plugin-syntax-top-level-await": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.12.1.tgz",
- "integrity": "sha512-i7ooMZFS+a/Om0crxZodrTzNEPJHZrlMVGMTEpFAj6rYY/bKCddB0Dk/YxfPuYXOopuhKk/e1jV6h+WUU9XN3A==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-arrow-functions": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.12.1.tgz",
- "integrity": "sha512-5QB50qyN44fzzz4/qxDPQMBCTHgxg3n0xRBLJUmBlLoU/sFvxVWGZF/ZUfMVDQuJUKXaBhbupxIzIfZ6Fwk/0A==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-async-to-generator": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.12.1.tgz",
- "integrity": "sha512-SDtqoEcarK1DFlRJ1hHRY5HvJUj5kX4qmtpMAm2QnhOlyuMC4TMdCRgW6WXpv93rZeYNeLP22y8Aq2dbcDRM1A==",
- "dev": true,
- "requires": {
- "@babel/helper-module-imports": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-remap-async-to-generator": "^7.12.1"
- }
- },
- "@babel/plugin-transform-block-scoped-functions": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.12.1.tgz",
- "integrity": "sha512-5OpxfuYnSgPalRpo8EWGPzIYf0lHBWORCkj5M0oLBwHdlux9Ri36QqGW3/LR13RSVOAoUUMzoPI/jpE4ABcHoA==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-block-scoping": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.12.1.tgz",
- "integrity": "sha512-zJyAC9sZdE60r1nVQHblcfCj29Dh2Y0DOvlMkcqSo0ckqjiCwNiUezUKw+RjOCwGfpLRwnAeQ2XlLpsnGkvv9w==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-classes": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.12.1.tgz",
- "integrity": "sha512-/74xkA7bVdzQTBeSUhLLJgYIcxw/dpEpCdRDiHgPJ3Mv6uC11UhjpOhl72CgqbBCmt1qtssCyB2xnJm1+PFjog==",
- "dev": true,
- "requires": {
- "@babel/helper-annotate-as-pure": "^7.10.4",
- "@babel/helper-define-map": "^7.10.4",
- "@babel/helper-function-name": "^7.10.4",
- "@babel/helper-optimise-call-expression": "^7.10.4",
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-replace-supers": "^7.12.1",
- "@babel/helper-split-export-declaration": "^7.10.4",
- "globals": "^11.1.0"
- }
- },
- "@babel/plugin-transform-computed-properties": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.12.1.tgz",
- "integrity": "sha512-vVUOYpPWB7BkgUWPo4C44mUQHpTZXakEqFjbv8rQMg7TC6S6ZhGZ3otQcRH6u7+adSlE5i0sp63eMC/XGffrzg==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-destructuring": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.12.1.tgz",
- "integrity": "sha512-fRMYFKuzi/rSiYb2uRLiUENJOKq4Gnl+6qOv5f8z0TZXg3llUwUhsNNwrwaT/6dUhJTzNpBr+CUvEWBtfNY1cw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-dotall-regex": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.12.1.tgz",
- "integrity": "sha512-B2pXeRKoLszfEW7J4Hg9LoFaWEbr/kzo3teWHmtFCszjRNa/b40f9mfeqZsIDLLt/FjwQ6pz/Gdlwy85xNckBA==",
- "dev": true,
- "requires": {
- "@babel/helper-create-regexp-features-plugin": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-duplicate-keys": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.12.1.tgz",
- "integrity": "sha512-iRght0T0HztAb/CazveUpUQrZY+aGKKaWXMJ4uf9YJtqxSUe09j3wteztCUDRHs+SRAL7yMuFqUsLoAKKzgXjw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-exponentiation-operator": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.12.1.tgz",
- "integrity": "sha512-7tqwy2bv48q+c1EHbXK0Zx3KXd2RVQp6OC7PbwFNt/dPTAV3Lu5sWtWuAj8owr5wqtWnqHfl2/mJlUmqkChKug==",
- "dev": true,
- "requires": {
- "@babel/helper-builder-binary-assignment-operator-visitor": "^7.10.4",
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-for-of": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.12.1.tgz",
- "integrity": "sha512-Zaeq10naAsuHo7heQvyV0ptj4dlZJwZgNAtBYBnu5nNKJoW62m0zKcIEyVECrUKErkUkg6ajMy4ZfnVZciSBhg==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-function-name": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.12.1.tgz",
- "integrity": "sha512-JF3UgJUILoFrFMEnOJLJkRHSk6LUSXLmEFsA23aR2O5CSLUxbeUX1IZ1YQ7Sn0aXb601Ncwjx73a+FVqgcljVw==",
- "dev": true,
- "requires": {
- "@babel/helper-function-name": "^7.10.4",
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-literals": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.12.1.tgz",
- "integrity": "sha512-+PxVGA+2Ag6uGgL0A5f+9rklOnnMccwEBzwYFL3EUaKuiyVnUipyXncFcfjSkbimLrODoqki1U9XxZzTvfN7IQ==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-member-expression-literals": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.12.1.tgz",
- "integrity": "sha512-1sxePl6z9ad0gFMB9KqmYofk34flq62aqMt9NqliS/7hPEpURUCMbyHXrMPlo282iY7nAvUB1aQd5mg79UD9Jg==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-modules-amd": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.12.1.tgz",
- "integrity": "sha512-tDW8hMkzad5oDtzsB70HIQQRBiTKrhfgwC/KkJeGsaNFTdWhKNt/BiE8c5yj19XiGyrxpbkOfH87qkNg1YGlOQ==",
- "dev": true,
- "requires": {
- "@babel/helper-module-transforms": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4",
- "babel-plugin-dynamic-import-node": "^2.3.3"
- }
- },
- "@babel/plugin-transform-modules-commonjs": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.12.1.tgz",
- "integrity": "sha512-dY789wq6l0uLY8py9c1B48V8mVL5gZh/+PQ5ZPrylPYsnAvnEMjqsUXkuoDVPeVK+0VyGar+D08107LzDQ6pag==",
- "dev": true,
- "requires": {
- "@babel/helper-module-transforms": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-simple-access": "^7.12.1",
- "babel-plugin-dynamic-import-node": "^2.3.3"
- }
- },
- "@babel/plugin-transform-modules-systemjs": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.12.1.tgz",
- "integrity": "sha512-Hn7cVvOavVh8yvW6fLwveFqSnd7rbQN3zJvoPNyNaQSvgfKmDBO9U1YL9+PCXGRlZD9tNdWTy5ACKqMuzyn32Q==",
- "dev": true,
- "requires": {
- "@babel/helper-hoist-variables": "^7.10.4",
- "@babel/helper-module-transforms": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-validator-identifier": "^7.10.4",
- "babel-plugin-dynamic-import-node": "^2.3.3"
- }
- },
- "@babel/plugin-transform-modules-umd": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.12.1.tgz",
- "integrity": "sha512-aEIubCS0KHKM0zUos5fIoQm+AZUMt1ZvMpqz0/H5qAQ7vWylr9+PLYurT+Ic7ID/bKLd4q8hDovaG3Zch2uz5Q==",
- "dev": true,
- "requires": {
- "@babel/helper-module-transforms": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-named-capturing-groups-regex": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.12.1.tgz",
- "integrity": "sha512-tB43uQ62RHcoDp9v2Nsf+dSM8sbNodbEicbQNA53zHz8pWUhsgHSJCGpt7daXxRydjb0KnfmB+ChXOv3oADp1Q==",
- "dev": true,
- "requires": {
- "@babel/helper-create-regexp-features-plugin": "^7.12.1"
- }
- },
- "@babel/plugin-transform-new-target": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.12.1.tgz",
- "integrity": "sha512-+eW/VLcUL5L9IvJH7rT1sT0CzkdUTvPrXC2PXTn/7z7tXLBuKvezYbGdxD5WMRoyvyaujOq2fWoKl869heKjhw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-object-super": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.12.1.tgz",
- "integrity": "sha512-AvypiGJH9hsquNUn+RXVcBdeE3KHPZexWRdimhuV59cSoOt5kFBmqlByorAeUlGG2CJWd0U+4ZtNKga/TB0cAw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-replace-supers": "^7.12.1"
- }
- },
- "@babel/plugin-transform-parameters": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.12.1.tgz",
- "integrity": "sha512-xq9C5EQhdPK23ZeCdMxl8bbRnAgHFrw5EOC3KJUsSylZqdkCaFEXxGSBuTSObOpiiHHNyb82es8M1QYgfQGfNg==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-property-literals": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.12.1.tgz",
- "integrity": "sha512-6MTCR/mZ1MQS+AwZLplX4cEySjCpnIF26ToWo942nqn8hXSm7McaHQNeGx/pt7suI1TWOWMfa/NgBhiqSnX0cQ==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-regenerator": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.12.1.tgz",
- "integrity": "sha512-gYrHqs5itw6i4PflFX3OdBPMQdPbF4bj2REIUxlMRUFk0/ZOAIpDFuViuxPjUL7YC8UPnf+XG7/utJvqXdPKng==",
- "dev": true,
- "requires": {
- "regenerator-transform": "^0.14.2"
- }
- },
- "@babel/plugin-transform-reserved-words": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.12.1.tgz",
- "integrity": "sha512-pOnUfhyPKvZpVyBHhSBoX8vfA09b7r00Pmm1sH+29ae2hMTKVmSp4Ztsr8KBKjLjx17H0eJqaRC3bR2iThM54A==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-shorthand-properties": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.12.1.tgz",
- "integrity": "sha512-GFZS3c/MhX1OusqB1MZ1ct2xRzX5ppQh2JU1h2Pnfk88HtFTM+TWQqJNfwkmxtPQtb/s1tk87oENfXJlx7rSDw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-spread": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.12.1.tgz",
- "integrity": "sha512-vuLp8CP0BE18zVYjsEBZ5xoCecMK6LBMMxYzJnh01rxQRvhNhH1csMMmBfNo5tGpGO+NhdSNW2mzIvBu3K1fng==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-skip-transparent-expression-wrappers": "^7.12.1"
- }
- },
- "@babel/plugin-transform-sticky-regex": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.12.1.tgz",
- "integrity": "sha512-CiUgKQ3AGVk7kveIaPEET1jNDhZZEl1RPMWdTBE1799bdz++SwqDHStmxfCtDfBhQgCl38YRiSnrMuUMZIWSUQ==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-regex": "^7.10.4"
- }
- },
- "@babel/plugin-transform-template-literals": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.12.1.tgz",
- "integrity": "sha512-b4Zx3KHi+taXB1dVRBhVJtEPi9h1THCeKmae2qP0YdUHIFhVjtpqqNfxeVAa1xeHVhAy4SbHxEwx5cltAu5apw==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-typeof-symbol": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.12.1.tgz",
- "integrity": "sha512-EPGgpGy+O5Kg5pJFNDKuxt9RdmTgj5sgrus2XVeMp/ZIbOESadgILUbm50SNpghOh3/6yrbsH+NB5+WJTmsA7Q==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-unicode-escapes": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.12.1.tgz",
- "integrity": "sha512-I8gNHJLIc7GdApm7wkVnStWssPNbSRMPtgHdmH3sRM1zopz09UWPS4x5V4n1yz/MIWTVnJ9sp6IkuXdWM4w+2Q==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/plugin-transform-unicode-regex": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.12.1.tgz",
- "integrity": "sha512-SqH4ClNngh/zGwHZOOQMTD+e8FGWexILV+ePMyiDJttAWRh5dhDL8rcl5lSgU3Huiq6Zn6pWTMvdPAb21Dwdyg==",
- "dev": true,
- "requires": {
- "@babel/helper-create-regexp-features-plugin": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4"
- }
- },
- "@babel/preset-env": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.12.1.tgz",
- "integrity": "sha512-H8kxXmtPaAGT7TyBvSSkoSTUK6RHh61So05SyEbpmr0MCZrsNYn7mGMzzeYoOUCdHzww61k8XBft2TaES+xPLg==",
- "dev": true,
- "requires": {
- "@babel/compat-data": "^7.12.1",
- "@babel/helper-compilation-targets": "^7.12.1",
- "@babel/helper-module-imports": "^7.12.1",
- "@babel/helper-plugin-utils": "^7.10.4",
- "@babel/helper-validator-option": "^7.12.1",
- "@babel/plugin-proposal-async-generator-functions": "^7.12.1",
- "@babel/plugin-proposal-class-properties": "^7.12.1",
- "@babel/plugin-proposal-dynamic-import": "^7.12.1",
- "@babel/plugin-proposal-export-namespace-from": "^7.12.1",
- "@babel/plugin-proposal-json-strings": "^7.12.1",
- "@babel/plugin-proposal-logical-assignment-operators": "^7.12.1",
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.1",
- "@babel/plugin-proposal-numeric-separator": "^7.12.1",
- "@babel/plugin-proposal-object-rest-spread": "^7.12.1",
- "@babel/plugin-proposal-optional-catch-binding": "^7.12.1",
- "@babel/plugin-proposal-optional-chaining": "^7.12.1",
- "@babel/plugin-proposal-private-methods": "^7.12.1",
- "@babel/plugin-proposal-unicode-property-regex": "^7.12.1",
- "@babel/plugin-syntax-async-generators": "^7.8.0",
- "@babel/plugin-syntax-class-properties": "^7.12.1",
- "@babel/plugin-syntax-dynamic-import": "^7.8.0",
- "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
- "@babel/plugin-syntax-json-strings": "^7.8.0",
- "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
- "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0",
- "@babel/plugin-syntax-numeric-separator": "^7.10.4",
- "@babel/plugin-syntax-object-rest-spread": "^7.8.0",
- "@babel/plugin-syntax-optional-catch-binding": "^7.8.0",
- "@babel/plugin-syntax-optional-chaining": "^7.8.0",
- "@babel/plugin-syntax-top-level-await": "^7.12.1",
- "@babel/plugin-transform-arrow-functions": "^7.12.1",
- "@babel/plugin-transform-async-to-generator": "^7.12.1",
- "@babel/plugin-transform-block-scoped-functions": "^7.12.1",
- "@babel/plugin-transform-block-scoping": "^7.12.1",
- "@babel/plugin-transform-classes": "^7.12.1",
- "@babel/plugin-transform-computed-properties": "^7.12.1",
- "@babel/plugin-transform-destructuring": "^7.12.1",
- "@babel/plugin-transform-dotall-regex": "^7.12.1",
- "@babel/plugin-transform-duplicate-keys": "^7.12.1",
- "@babel/plugin-transform-exponentiation-operator": "^7.12.1",
- "@babel/plugin-transform-for-of": "^7.12.1",
- "@babel/plugin-transform-function-name": "^7.12.1",
- "@babel/plugin-transform-literals": "^7.12.1",
- "@babel/plugin-transform-member-expression-literals": "^7.12.1",
- "@babel/plugin-transform-modules-amd": "^7.12.1",
- "@babel/plugin-transform-modules-commonjs": "^7.12.1",
- "@babel/plugin-transform-modules-systemjs": "^7.12.1",
- "@babel/plugin-transform-modules-umd": "^7.12.1",
- "@babel/plugin-transform-named-capturing-groups-regex": "^7.12.1",
- "@babel/plugin-transform-new-target": "^7.12.1",
- "@babel/plugin-transform-object-super": "^7.12.1",
- "@babel/plugin-transform-parameters": "^7.12.1",
- "@babel/plugin-transform-property-literals": "^7.12.1",
- "@babel/plugin-transform-regenerator": "^7.12.1",
- "@babel/plugin-transform-reserved-words": "^7.12.1",
- "@babel/plugin-transform-shorthand-properties": "^7.12.1",
- "@babel/plugin-transform-spread": "^7.12.1",
- "@babel/plugin-transform-sticky-regex": "^7.12.1",
- "@babel/plugin-transform-template-literals": "^7.12.1",
- "@babel/plugin-transform-typeof-symbol": "^7.12.1",
- "@babel/plugin-transform-unicode-escapes": "^7.12.1",
- "@babel/plugin-transform-unicode-regex": "^7.12.1",
- "@babel/preset-modules": "^0.1.3",
- "@babel/types": "^7.12.1",
- "core-js-compat": "^3.6.2",
- "semver": "^5.5.0"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "dev": true
- }
- }
- },
- "@babel/preset-modules": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.4.tgz",
- "integrity": "sha512-J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@babel/plugin-proposal-unicode-property-regex": "^7.4.4",
- "@babel/plugin-transform-dotall-regex": "^7.4.4",
- "@babel/types": "^7.4.4",
- "esutils": "^2.0.2"
- }
- },
- "@babel/runtime": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",
- "integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",
- "dev": true,
- "requires": {
- "regenerator-runtime": "^0.13.4"
- }
- },
- "@babel/runtime-corejs3": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.12.1.tgz",
- "integrity": "sha512-umhPIcMrlBZ2aTWlWjUseW9LjQKxi1dpFlQS8DzsxB//5K+u6GLTC/JliPKHsd5kJVPIU6X/Hy0YvWOYPcMxBw==",
- "dev": true,
- "requires": {
- "core-js-pure": "^3.0.0",
- "regenerator-runtime": "^0.13.4"
- }
- },
- "@babel/template": {
- "version": "7.10.4",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz",
- "integrity": "sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.10.4",
- "@babel/parser": "^7.10.4",
- "@babel/types": "^7.10.4"
- }
- },
- "@babel/traverse": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.1.tgz",
- "integrity": "sha512-MA3WPoRt1ZHo2ZmoGKNqi20YnPt0B1S0GTZEPhhd+hw2KGUzBlHuVunj6K4sNuK+reEvyiPwtp0cpaqLzJDmAw==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.10.4",
- "@babel/generator": "^7.12.1",
- "@babel/helper-function-name": "^7.10.4",
- "@babel/helper-split-export-declaration": "^7.11.0",
- "@babel/parser": "^7.12.1",
- "@babel/types": "^7.12.1",
- "debug": "^4.1.0",
- "globals": "^11.1.0",
- "lodash": "^4.17.19"
- }
- },
- "@babel/types": {
- "version": "7.12.1",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.12.1.tgz",
- "integrity": "sha512-BzSY3NJBKM4kyatSOWh3D/JJ2O3CVzBybHWxtgxnggaxEuaSTTDqeiSb/xk9lrkw2Tbqyivw5ZU4rT+EfznQsA==",
- "dev": true,
- "requires": {
- "@babel/helper-validator-identifier": "^7.10.4",
- "lodash": "^4.17.19",
- "to-fast-properties": "^2.0.0"
- }
- },
- "@bcoe/v8-coverage": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",
- "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
- "dev": true
- },
- "@cnakazawa/watch": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz",
- "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==",
- "dev": true,
- "requires": {
- "exec-sh": "^0.3.2",
- "minimist": "^1.2.0"
- }
- },
- "@istanbuljs/load-nyc-config": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",
- "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==",
- "dev": true,
- "requires": {
- "camelcase": "^5.3.1",
- "find-up": "^4.1.0",
- "get-package-type": "^0.1.0",
- "js-yaml": "^3.13.1",
- "resolve-from": "^5.0.0"
- },
- "dependencies": {
- "camelcase": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
- "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
- "dev": true
- },
- "find-up": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
- "dev": true,
- "requires": {
- "locate-path": "^5.0.0",
- "path-exists": "^4.0.0"
- }
- },
- "locate-path": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
- "dev": true,
- "requires": {
- "p-locate": "^4.1.0"
- }
- },
- "p-limit": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
- "dev": true,
- "requires": {
- "p-try": "^2.0.0"
- }
- },
- "p-locate": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
- "dev": true,
- "requires": {
- "p-limit": "^2.2.0"
- }
- },
- "p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
- "dev": true
- },
- "path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
- "dev": true
- },
- "resolve-from": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
- "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
- "dev": true
- }
- }
- },
- "@istanbuljs/schema": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.2.tgz",
- "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==",
- "dev": true
- },
- "@jest/console": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/@jest/console/-/console-25.5.0.tgz",
- "integrity": "sha512-T48kZa6MK1Y6k4b89sexwmSF4YLeZS/Udqg3Jj3jG/cHH+N/sLFCEoXEDMOKugJQ9FxPN1osxIknvKkxt6MKyw==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "chalk": "^3.0.0",
- "jest-message-util": "^25.5.0",
- "jest-util": "^25.5.0",
- "slash": "^3.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "@jest/core": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/@jest/core/-/core-25.5.4.tgz",
- "integrity": "sha512-3uSo7laYxF00Dg/DMgbn4xMJKmDdWvZnf89n8Xj/5/AeQ2dOQmn6b6Hkj/MleyzZWXpwv+WSdYWl4cLsy2JsoA==",
- "dev": true,
- "requires": {
- "@jest/console": "^25.5.0",
- "@jest/reporters": "^25.5.1",
- "@jest/test-result": "^25.5.0",
- "@jest/transform": "^25.5.1",
- "@jest/types": "^25.5.0",
- "ansi-escapes": "^4.2.1",
- "chalk": "^3.0.0",
- "exit": "^0.1.2",
- "graceful-fs": "^4.2.4",
- "jest-changed-files": "^25.5.0",
- "jest-config": "^25.5.4",
- "jest-haste-map": "^25.5.1",
- "jest-message-util": "^25.5.0",
- "jest-regex-util": "^25.2.6",
- "jest-resolve": "^25.5.1",
- "jest-resolve-dependencies": "^25.5.4",
- "jest-runner": "^25.5.4",
- "jest-runtime": "^25.5.4",
- "jest-snapshot": "^25.5.1",
- "jest-util": "^25.5.0",
- "jest-validate": "^25.5.0",
- "jest-watcher": "^25.5.0",
- "micromatch": "^4.0.2",
- "p-each-series": "^2.1.0",
- "realpath-native": "^2.0.0",
- "rimraf": "^3.0.0",
- "slash": "^3.0.0",
- "strip-ansi": "^6.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "dev": true,
- "requires": {
- "glob": "^7.1.3"
- }
- },
- "strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
- "dev": true,
- "requires": {
- "ansi-regex": "^5.0.0"
- }
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "@jest/environment": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-25.5.0.tgz",
- "integrity": "sha512-U2VXPEqL07E/V7pSZMSQCvV5Ea4lqOlT+0ZFijl/i316cRMHvZ4qC+jBdryd+lmRetjQo0YIQr6cVPNxxK87mA==",
- "dev": true,
- "requires": {
- "@jest/fake-timers": "^25.5.0",
- "@jest/types": "^25.5.0",
- "jest-mock": "^25.5.0"
- }
- },
- "@jest/fake-timers": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-25.5.0.tgz",
- "integrity": "sha512-9y2+uGnESw/oyOI3eww9yaxdZyHq7XvprfP/eeoCsjqKYts2yRlsHS/SgjPDV8FyMfn2nbMy8YzUk6nyvdLOpQ==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "jest-message-util": "^25.5.0",
- "jest-mock": "^25.5.0",
- "jest-util": "^25.5.0",
- "lolex": "^5.0.0"
- }
- },
- "@jest/globals": {
- "version": "25.5.2",
- "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-25.5.2.tgz",
- "integrity": "sha512-AgAS/Ny7Q2RCIj5kZ+0MuKM1wbF0WMLxbCVl/GOMoCNbODRdJ541IxJ98xnZdVSZXivKpJlNPIWa3QmY0l4CXA==",
- "dev": true,
- "requires": {
- "@jest/environment": "^25.5.0",
- "@jest/types": "^25.5.0",
- "expect": "^25.5.0"
- }
- },
- "@jest/reporters": {
- "version": "25.5.1",
- "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-25.5.1.tgz",
- "integrity": "sha512-3jbd8pPDTuhYJ7vqiHXbSwTJQNavczPs+f1kRprRDxETeE3u6srJ+f0NPuwvOmk+lmunZzPkYWIFZDLHQPkviw==",
- "dev": true,
- "requires": {
- "@bcoe/v8-coverage": "^0.2.3",
- "@jest/console": "^25.5.0",
- "@jest/test-result": "^25.5.0",
- "@jest/transform": "^25.5.1",
- "@jest/types": "^25.5.0",
- "chalk": "^3.0.0",
- "collect-v8-coverage": "^1.0.0",
- "exit": "^0.1.2",
- "glob": "^7.1.2",
- "graceful-fs": "^4.2.4",
- "istanbul-lib-coverage": "^3.0.0",
- "istanbul-lib-instrument": "^4.0.0",
- "istanbul-lib-report": "^3.0.0",
- "istanbul-lib-source-maps": "^4.0.0",
- "istanbul-reports": "^3.0.2",
- "jest-haste-map": "^25.5.1",
- "jest-resolve": "^25.5.1",
- "jest-util": "^25.5.0",
- "jest-worker": "^25.5.0",
- "node-notifier": "^6.0.0",
- "slash": "^3.0.0",
- "source-map": "^0.6.0",
- "string-length": "^3.1.0",
- "terminal-link": "^2.0.0",
- "v8-to-istanbul": "^4.1.3"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "@jest/source-map": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-25.5.0.tgz",
- "integrity": "sha512-eIGx0xN12yVpMcPaVpjXPnn3N30QGJCJQSkEDUt9x1fI1Gdvb07Ml6K5iN2hG7NmMP6FDmtPEssE3z6doOYUwQ==",
- "dev": true,
- "requires": {
- "callsites": "^3.0.0",
- "graceful-fs": "^4.2.4",
- "source-map": "^0.6.0"
- },
- "dependencies": {
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true
- }
- }
- },
- "@jest/test-result": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-25.5.0.tgz",
- "integrity": "sha512-oV+hPJgXN7IQf/fHWkcS99y0smKLU2czLBJ9WA0jHITLst58HpQMtzSYxzaBvYc6U5U6jfoMthqsUlUlbRXs0A==",
- "dev": true,
- "requires": {
- "@jest/console": "^25.5.0",
- "@jest/types": "^25.5.0",
- "@types/istanbul-lib-coverage": "^2.0.0",
- "collect-v8-coverage": "^1.0.0"
- }
- },
- "@jest/test-sequencer": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-25.5.4.tgz",
- "integrity": "sha512-pTJGEkSeg1EkCO2YWq6hbFvKNXk8ejqlxiOg1jBNLnWrgXOkdY6UmqZpwGFXNnRt9B8nO1uWMzLLZ4eCmhkPNA==",
- "dev": true,
- "requires": {
- "@jest/test-result": "^25.5.0",
- "graceful-fs": "^4.2.4",
- "jest-haste-map": "^25.5.1",
- "jest-runner": "^25.5.4",
- "jest-runtime": "^25.5.4"
- }
- },
- "@jest/transform": {
- "version": "25.5.1",
- "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-25.5.1.tgz",
- "integrity": "sha512-Y8CEoVwXb4QwA6Y/9uDkn0Xfz0finGkieuV0xkdF9UtZGJeLukD5nLkaVrVsODB1ojRWlaoD0AJZpVHCSnJEvg==",
- "dev": true,
- "requires": {
- "@babel/core": "^7.1.0",
- "@jest/types": "^25.5.0",
- "babel-plugin-istanbul": "^6.0.0",
- "chalk": "^3.0.0",
- "convert-source-map": "^1.4.0",
- "fast-json-stable-stringify": "^2.0.0",
- "graceful-fs": "^4.2.4",
- "jest-haste-map": "^25.5.1",
- "jest-regex-util": "^25.2.6",
- "jest-util": "^25.5.0",
- "micromatch": "^4.0.2",
- "pirates": "^4.0.1",
- "realpath-native": "^2.0.0",
- "slash": "^3.0.0",
- "source-map": "^0.6.1",
- "write-file-atomic": "^3.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "@jest/types": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/@jest/types/-/types-25.5.0.tgz",
- "integrity": "sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw==",
- "dev": true,
- "requires": {
- "@types/istanbul-lib-coverage": "^2.0.0",
- "@types/istanbul-reports": "^1.1.1",
- "@types/yargs": "^15.0.0",
- "chalk": "^3.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "@rollup/plugin-babel": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.2.1.tgz",
- "integrity": "sha512-Jd7oqFR2dzZJ3NWANDyBjwTtX/lYbZpVcmkHrfQcpvawHs9E4c0nYk5U2mfZ6I/DZcIvy506KZJi54XK/jxH7A==",
- "dev": true,
- "requires": {
- "@babel/helper-module-imports": "^7.10.4",
- "@rollup/pluginutils": "^3.1.0"
- }
- },
- "@rollup/plugin-commonjs": {
- "version": "11.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-11.1.0.tgz",
- "integrity": "sha512-Ycr12N3ZPN96Fw2STurD21jMqzKwL9QuFhms3SD7KKRK7oaXUsBU9Zt0jL/rOPHiPYisI21/rXGO3jr9BnLHUA==",
- "dev": true,
- "requires": {
- "@rollup/pluginutils": "^3.0.8",
- "commondir": "^1.0.1",
- "estree-walker": "^1.0.1",
- "glob": "^7.1.2",
- "is-reference": "^1.1.2",
- "magic-string": "^0.25.2",
- "resolve": "^1.11.0"
- }
- },
- "@rollup/plugin-json": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-4.1.0.tgz",
- "integrity": "sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==",
- "dev": true,
- "requires": {
- "@rollup/pluginutils": "^3.0.8"
- }
- },
- "@rollup/plugin-node-resolve": {
- "version": "9.0.0",
- "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-9.0.0.tgz",
- "integrity": "sha512-gPz+utFHLRrd41WMP13Jq5mqqzHL3OXrfj3/MkSyB6UBIcuNt9j60GCbarzMzdf1VHFpOxfQh/ez7wyadLMqkg==",
- "dev": true,
- "requires": {
- "@rollup/pluginutils": "^3.1.0",
- "@types/resolve": "1.17.1",
- "builtin-modules": "^3.1.0",
- "deepmerge": "^4.2.2",
- "is-module": "^1.0.0",
- "resolve": "^1.17.0"
- }
- },
- "@rollup/plugin-replace": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.3.3.tgz",
- "integrity": "sha512-XPmVXZ7IlaoWaJLkSCDaa0Y6uVo5XQYHhiMFzOd5qSv5rE+t/UJToPIOE56flKIxBFQI27ONsxb7dqHnwSsjKQ==",
- "dev": true,
- "requires": {
- "@rollup/pluginutils": "^3.0.8",
- "magic-string": "^0.25.5"
- }
- },
- "@rollup/pluginutils": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz",
- "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==",
- "dev": true,
- "requires": {
- "@types/estree": "0.0.39",
- "estree-walker": "^1.0.1",
- "picomatch": "^2.2.2"
- }
- },
- "@sinonjs/commons": {
- "version": "1.8.1",
- "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.1.tgz",
- "integrity": "sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw==",
- "dev": true,
- "requires": {
- "type-detect": "4.0.8"
- }
- },
- "@types/babel__core": {
- "version": "7.1.10",
- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.10.tgz",
- "integrity": "sha512-x8OM8XzITIMyiwl5Vmo2B1cR1S1Ipkyv4mdlbJjMa1lmuKvKY9FrBbEANIaMlnWn5Rf7uO+rC/VgYabNkE17Hw==",
- "dev": true,
- "requires": {
- "@babel/parser": "^7.1.0",
- "@babel/types": "^7.0.0",
- "@types/babel__generator": "*",
- "@types/babel__template": "*",
- "@types/babel__traverse": "*"
- }
- },
- "@types/babel__generator": {
- "version": "7.6.2",
- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.2.tgz",
- "integrity": "sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.0.0"
- }
- },
- "@types/babel__template": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.0.3.tgz",
- "integrity": "sha512-uCoznIPDmnickEi6D0v11SBpW0OuVqHJCa7syXqQHy5uktSCreIlt0iglsCnmvz8yCb38hGcWeseA8cWJSwv5Q==",
- "dev": true,
- "requires": {
- "@babel/parser": "^7.1.0",
- "@babel/types": "^7.0.0"
- }
- },
- "@types/babel__traverse": {
- "version": "7.0.15",
- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.15.tgz",
- "integrity": "sha512-Pzh9O3sTK8V6I1olsXpCfj2k/ygO2q1X0vhhnDrEQyYLHZesWz+zMZMVcwXLCYf0U36EtmyYaFGPfXlTtDHe3A==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.3.0"
- }
- },
- "@types/detect-node": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/@types/detect-node/-/detect-node-2.0.0.tgz",
- "integrity": "sha512-+BozjlbPTACYITf1PWf62HLtDV79HbmZosUN1mv1gGrnjDCRwBXkDKka1sf6YQJvspmfPXVcy+X6tFW62KteeQ==",
- "dev": true
- },
- "@types/eslint-visitor-keys": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz",
- "integrity": "sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==",
- "dev": true
- },
- "@types/estree": {
- "version": "0.0.39",
- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz",
- "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",
- "dev": true
- },
- "@types/graceful-fs": {
- "version": "4.1.4",
- "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.4.tgz",
- "integrity": "sha512-mWA/4zFQhfvOA8zWkXobwJvBD7vzcxgrOQ0J5CH1votGqdq9m7+FwtGaqyCZqC3NyyBkc9z4m+iry4LlqcMWJg==",
- "dev": true,
- "requires": {
- "@types/node": "*"
- }
- },
- "@types/istanbul-lib-coverage": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz",
- "integrity": "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==",
- "dev": true
- },
- "@types/istanbul-lib-report": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz",
- "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==",
- "dev": true,
- "requires": {
- "@types/istanbul-lib-coverage": "*"
- }
- },
- "@types/istanbul-reports": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz",
- "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==",
- "dev": true,
- "requires": {
- "@types/istanbul-lib-coverage": "*",
- "@types/istanbul-lib-report": "*"
- }
- },
- "@types/jest": {
- "version": "25.2.3",
- "resolved": "https://registry.npmjs.org/@types/jest/-/jest-25.2.3.tgz",
- "integrity": "sha512-JXc1nK/tXHiDhV55dvfzqtmP4S3sy3T3ouV2tkViZgxY/zeUkcpQcQPGRlgF4KmWzWW5oiWYSZwtCB+2RsE4Fw==",
- "dev": true,
- "requires": {
- "jest-diff": "^25.2.1",
- "pretty-format": "^25.2.1"
- }
- },
- "@types/json-schema": {
- "version": "7.0.6",
- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz",
- "integrity": "sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==",
- "dev": true
- },
- "@types/json5": {
- "version": "0.0.29",
- "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
- "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=",
- "dev": true
- },
- "@types/lodash": {
- "version": "4.14.161",
- "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.161.tgz",
- "integrity": "sha512-EP6O3Jkr7bXvZZSZYlsgt5DIjiGr0dXP1/jVEwVLTFgg0d+3lWVQkRavYVQszV7dYUwvg0B8R0MBDpcmXg7XIA==",
- "dev": true
- },
- "@types/lodash.flatmap": {
- "version": "4.5.6",
- "resolved": "https://registry.npmjs.org/@types/lodash.flatmap/-/lodash.flatmap-4.5.6.tgz",
- "integrity": "sha512-ELNrUL9q+MB7AACaHivWIsKDFDgYhHE3/svXhqvDJgONtn2c467Cy87nEb7CEDvfaGCPv91lPaW596I8s5oiNQ==",
- "dev": true,
- "requires": {
- "@types/lodash": "*"
- }
- },
- "@types/node": {
- "version": "14.14.2",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.2.tgz",
- "integrity": "sha512-jeYJU2kl7hL9U5xuI/BhKPZ4vqGM/OmK6whiFAXVhlstzZhVamWhDSmHyGLIp+RVyuF9/d0dqr2P85aFj4BvJg==",
- "dev": true
- },
- "@types/normalize-package-data": {
- "version": "2.4.0",
- "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
- "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==",
- "dev": true
- },
- "@types/parse-json": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz",
- "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==",
- "dev": true
- },
- "@types/prettier": {
- "version": "1.19.1",
- "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-1.19.1.tgz",
- "integrity": "sha512-5qOlnZscTn4xxM5MeGXAMOsIOIKIbh9e85zJWfBRVPlRMEVawzoPhINYbRGkBZCI8LxvBe7tJCdWiarA99OZfQ==",
- "dev": true
- },
- "@types/resolve": {
- "version": "1.17.1",
- "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz",
- "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==",
- "dev": true,
- "requires": {
- "@types/node": "*"
- }
- },
- "@types/stack-utils": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz",
- "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==",
- "dev": true
- },
- "@types/uuid": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz",
- "integrity": "sha512-eQ9qFW/fhfGJF8WKHGEHZEyVWfZxrT+6CLIJGBcZPfxUh/+BnEj+UCGYMlr9qZuX/2AltsvwrGqp0LhEW8D0zQ==",
- "dev": true
- },
- "@types/yargs": {
- "version": "15.0.9",
- "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.9.tgz",
- "integrity": "sha512-HmU8SeIRhZCWcnRskCs36Q1Q00KBV6Cqh/ora8WN1+22dY07AZdn6Gel8QZ3t26XYPImtcL8WV/eqjhVmMEw4g==",
- "dev": true,
- "requires": {
- "@types/yargs-parser": "*"
- }
- },
- "@types/yargs-parser": {
- "version": "15.0.0",
- "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-15.0.0.tgz",
- "integrity": "sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==",
- "dev": true
- },
- "@typescript-eslint/eslint-plugin": {
- "version": "2.34.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.34.0.tgz",
- "integrity": "sha512-4zY3Z88rEE99+CNvTbXSyovv2z9PNOVffTWD2W8QF5s2prBQtwN2zadqERcrHpcR7O/+KMI3fcTAmUUhK/iQcQ==",
- "dev": true,
- "requires": {
- "@typescript-eslint/experimental-utils": "2.34.0",
- "functional-red-black-tree": "^1.0.1",
- "regexpp": "^3.0.0",
- "tsutils": "^3.17.1"
- }
- },
- "@typescript-eslint/experimental-utils": {
- "version": "2.34.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.34.0.tgz",
- "integrity": "sha512-eS6FTkq+wuMJ+sgtuNTtcqavWXqsflWcfBnlYhg/nS4aZ1leewkXGbvBhaapn1q6qf4M71bsR1tez5JTRMuqwA==",
- "dev": true,
- "requires": {
- "@types/json-schema": "^7.0.3",
- "@typescript-eslint/typescript-estree": "2.34.0",
- "eslint-scope": "^5.0.0",
- "eslint-utils": "^2.0.0"
- }
- },
- "@typescript-eslint/parser": {
- "version": "2.34.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.34.0.tgz",
- "integrity": "sha512-03ilO0ucSD0EPTw2X4PntSIRFtDPWjrVq7C3/Z3VQHRC7+13YB55rcJI3Jt+YgeHbjUdJPcPa7b23rXCBokuyA==",
- "dev": true,
- "requires": {
- "@types/eslint-visitor-keys": "^1.0.0",
- "@typescript-eslint/experimental-utils": "2.34.0",
- "@typescript-eslint/typescript-estree": "2.34.0",
- "eslint-visitor-keys": "^1.1.0"
- }
- },
- "@typescript-eslint/typescript-estree": {
- "version": "2.34.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.34.0.tgz",
- "integrity": "sha512-OMAr+nJWKdlVM9LOqCqh3pQQPwxHAN7Du8DR6dmwCrAmxtiXQnhHJ6tBNtf+cggqfo51SG/FCwnKhXCIM7hnVg==",
- "dev": true,
- "requires": {
- "debug": "^4.1.1",
- "eslint-visitor-keys": "^1.1.0",
- "glob": "^7.1.6",
- "is-glob": "^4.0.1",
- "lodash": "^4.17.15",
- "semver": "^7.3.2",
- "tsutils": "^3.17.1"
- }
- },
- "abab": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz",
- "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==",
- "dev": true
- },
- "abort-controller": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
- "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
- "dev": true,
- "requires": {
- "event-target-shim": "^5.0.0"
- }
- },
- "acorn": {
- "version": "7.4.1",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",
- "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
- "dev": true
- },
- "acorn-globals": {
- "version": "4.3.4",
- "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.4.tgz",
- "integrity": "sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A==",
- "dev": true,
- "requires": {
- "acorn": "^6.0.1",
- "acorn-walk": "^6.0.1"
- },
- "dependencies": {
- "acorn": {
- "version": "6.4.2",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz",
- "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==",
- "dev": true
- }
- }
- },
- "acorn-jsx": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz",
- "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==",
- "dev": true
- },
- "acorn-walk": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.2.0.tgz",
- "integrity": "sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA==",
- "dev": true
- },
- "ajv": {
- "version": "6.12.6",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
- "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
- "dev": true,
- "requires": {
- "fast-deep-equal": "^3.1.1",
- "fast-json-stable-stringify": "^2.0.0",
- "json-schema-traverse": "^0.4.1",
- "uri-js": "^4.2.2"
- }
- },
- "ansi-colors": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
- "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
- "dev": true
- },
- "ansi-escapes": {
- "version": "4.3.1",
- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz",
- "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==",
- "dev": true,
- "requires": {
- "type-fest": "^0.11.0"
- }
- },
- "ansi-regex": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
- "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
- "dev": true
- },
- "ansi-styles": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
- "dev": true,
- "requires": {
- "color-convert": "^1.9.0"
- }
- },
- "anymatch": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz",
- "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==",
- "dev": true,
- "requires": {
- "normalize-path": "^3.0.0",
- "picomatch": "^2.0.4"
- }
- },
- "argparse": {
- "version": "1.0.10",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
- "dev": true,
- "requires": {
- "sprintf-js": "~1.0.2"
- }
- },
- "aria-query": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz",
- "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.10.2",
- "@babel/runtime-corejs3": "^7.10.2"
- }
- },
- "arr-diff": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz",
- "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=",
- "dev": true
- },
- "arr-flatten": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz",
- "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
- "dev": true
- },
- "arr-union": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz",
- "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=",
- "dev": true
- },
- "array-equal": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz",
- "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=",
- "dev": true
- },
- "array-includes": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.1.tgz",
- "integrity": "sha512-c2VXaCHl7zPsvpkFsw4nxvFie4fh1ur9bpcgsVkIjqn0H/Xwdg+7fv3n2r/isyS8EBj5b06M9kHyZuIr4El6WQ==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.17.0",
- "is-string": "^1.0.5"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "array-unique": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz",
- "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
- "dev": true
- },
- "array.prototype.flat": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz",
- "integrity": "sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.17.0-next.1"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "array.prototype.flatmap": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.3.tgz",
- "integrity": "sha512-OOEk+lkePcg+ODXIpvuU9PAryCikCJyo7GlDG1upleEpQRx6mzL9puEBkozQ5iAx20KV0l3DbyQwqciJtqe5Pg==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.17.0-next.1",
- "function-bind": "^1.1.1"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "asn1": {
- "version": "0.2.4",
- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
- "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
- "dev": true,
- "requires": {
- "safer-buffer": "~2.1.0"
- }
- },
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true
- },
- "assign-symbols": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz",
- "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=",
- "dev": true
- },
- "ast-types-flow": {
- "version": "0.0.7",
- "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",
- "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=",
- "dev": true
- },
- "astral-regex": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz",
- "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==",
- "dev": true
- },
- "asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
- },
- "asyncro": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/asyncro/-/asyncro-3.0.0.tgz",
- "integrity": "sha512-nEnWYfrBmA3taTiuiOoZYmgJ/CNrSoQLeLs29SeLcPu60yaw/mHDBHV0iOZ051fTvsTHxpCY+gXibqT9wbQYfg==",
- "dev": true
- },
- "at-least-node": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
- "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
- "dev": true
- },
- "atob": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
- "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
- "dev": true
- },
- "aws-sign2": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
- "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
- "dev": true
- },
- "aws4": {
- "version": "1.10.1",
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz",
- "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==",
- "dev": true
- },
- "axe-core": {
- "version": "3.5.5",
- "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-3.5.5.tgz",
- "integrity": "sha512-5P0QZ6J5xGikH780pghEdbEKijCTrruK9KxtPZCFWUpef0f6GipO+xEZ5GKCb020mmqgbiNO6TcA55CriL784Q==",
- "dev": true
- },
- "axios": {
- "version": "0.20.0",
- "resolved": "https://registry.npmjs.org/axios/-/axios-0.20.0.tgz",
- "integrity": "sha512-ANA4rr2BDcmmAQLOKft2fufrtuvlqR+cXNNinUmvfeSNCOF98PZL+7M/v1zIdGo7OLjEA9J2gXJL+j4zGsl0bA==",
- "requires": {
- "follow-redirects": "^1.10.0"
- }
- },
- "axobject-query": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz",
- "integrity": "sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==",
- "dev": true
- },
- "babel-eslint": {
- "version": "10.1.0",
- "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz",
- "integrity": "sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.0.0",
- "@babel/parser": "^7.7.0",
- "@babel/traverse": "^7.7.0",
- "@babel/types": "^7.7.0",
- "eslint-visitor-keys": "^1.0.0",
- "resolve": "^1.12.0"
- }
- },
- "babel-jest": {
- "version": "25.5.1",
- "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-25.5.1.tgz",
- "integrity": "sha512-9dA9+GmMjIzgPnYtkhBg73gOo/RHqPmLruP3BaGL4KEX3Dwz6pI8auSN8G8+iuEG90+GSswyKvslN+JYSaacaQ==",
- "dev": true,
- "requires": {
- "@jest/transform": "^25.5.1",
- "@jest/types": "^25.5.0",
- "@types/babel__core": "^7.1.7",
- "babel-plugin-istanbul": "^6.0.0",
- "babel-preset-jest": "^25.5.0",
- "chalk": "^3.0.0",
- "graceful-fs": "^4.2.4",
- "slash": "^3.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "babel-plugin-annotate-pure-calls": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-annotate-pure-calls/-/babel-plugin-annotate-pure-calls-0.4.0.tgz",
- "integrity": "sha512-oi4M/PWUJOU9ZyRGoPTfPMqdyMp06jbJAomd3RcyYuzUtBOddv98BqLm96Lucpi2QFoQHkdGQt0ACvw7VzVEQA==",
- "dev": true
- },
- "babel-plugin-dev-expression": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/babel-plugin-dev-expression/-/babel-plugin-dev-expression-0.2.2.tgz",
- "integrity": "sha512-y32lfBif+c2FIh5dwGfcc/IfX5aw/Bru7Du7W2n17sJE/GJGAsmIk5DPW/8JOoeKpXW5evJfJOvRq5xkiS6vng==",
- "dev": true
- },
- "babel-plugin-dynamic-import-node": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz",
- "integrity": "sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==",
- "dev": true,
- "requires": {
- "object.assign": "^4.1.0"
- }
- },
- "babel-plugin-istanbul": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz",
- "integrity": "sha512-AF55rZXpe7trmEylbaE1Gv54wn6rwU03aptvRoVIGP8YykoSxqdVLV1TfwflBCE/QtHmqtP8SWlTENqbK8GCSQ==",
- "dev": true,
- "requires": {
- "@babel/helper-plugin-utils": "^7.0.0",
- "@istanbuljs/load-nyc-config": "^1.0.0",
- "@istanbuljs/schema": "^0.1.2",
- "istanbul-lib-instrument": "^4.0.0",
- "test-exclude": "^6.0.0"
- }
- },
- "babel-plugin-jest-hoist": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-25.5.0.tgz",
- "integrity": "sha512-u+/W+WAjMlvoocYGTwthAiQSxDcJAyHpQ6oWlHdFZaaN+Rlk8Q7iiwDPg2lN/FyJtAYnKjFxbn7xus4HCFkg5g==",
- "dev": true,
- "requires": {
- "@babel/template": "^7.3.3",
- "@babel/types": "^7.3.3",
- "@types/babel__traverse": "^7.0.6"
- }
- },
- "babel-plugin-macros": {
- "version": "2.8.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz",
- "integrity": "sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.7.2",
- "cosmiconfig": "^6.0.0",
- "resolve": "^1.12.0"
- }
- },
- "babel-plugin-polyfill-regenerator": {
- "version": "0.0.4",
- "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.0.4.tgz",
- "integrity": "sha512-+/uCzO9JTYVZVGCpZpVAQkgPGt2zkR0VYiZvJ4aVoCe4ccgpKvNQqcjzAgQzSsjK64Jhc5hvrCR3l0087BevkA==",
- "dev": true,
- "requires": {
- "@babel/helper-define-polyfill-provider": "^0.0.3"
- }
- },
- "babel-plugin-transform-rename-import": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/babel-plugin-transform-rename-import/-/babel-plugin-transform-rename-import-2.3.0.tgz",
- "integrity": "sha512-dPgJoT57XC0PqSnLgl2FwNvxFrWlspatX2dkk7yjKQj5HHGw071vAcOf+hqW8ClqcBDMvEbm6mevn5yHAD8mlQ==",
- "dev": true
- },
- "babel-preset-current-node-syntax": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-0.1.4.tgz",
- "integrity": "sha512-5/INNCYhUGqw7VbVjT/hb3ucjgkVHKXY7lX3ZjlN4gm565VyFmJUrJ/h+h16ECVB38R/9SF6aACydpKMLZ/c9w==",
- "dev": true,
- "requires": {
- "@babel/plugin-syntax-async-generators": "^7.8.4",
- "@babel/plugin-syntax-bigint": "^7.8.3",
- "@babel/plugin-syntax-class-properties": "^7.8.3",
- "@babel/plugin-syntax-import-meta": "^7.8.3",
- "@babel/plugin-syntax-json-strings": "^7.8.3",
- "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3",
- "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
- "@babel/plugin-syntax-numeric-separator": "^7.8.3",
- "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
- "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
- "@babel/plugin-syntax-optional-chaining": "^7.8.3"
- }
- },
- "babel-preset-jest": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-25.5.0.tgz",
- "integrity": "sha512-8ZczygctQkBU+63DtSOKGh7tFL0CeCuz+1ieud9lJ1WPQ9O6A1a/r+LGn6Y705PA6whHQ3T1XuB/PmpfNYf8Fw==",
- "dev": true,
- "requires": {
- "babel-plugin-jest-hoist": "^25.5.0",
- "babel-preset-current-node-syntax": "^0.1.2"
- }
- },
- "balanced-match": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
- "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
- "dev": true
- },
- "base": {
- "version": "0.11.2",
- "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz",
- "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==",
- "dev": true,
- "requires": {
- "cache-base": "^1.0.1",
- "class-utils": "^0.3.5",
- "component-emitter": "^1.2.1",
- "define-property": "^1.0.0",
- "isobject": "^3.0.1",
- "mixin-deep": "^1.2.0",
- "pascalcase": "^0.1.1"
- },
- "dependencies": {
- "define-property": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
- "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
- "dev": true,
- "requires": {
- "is-descriptor": "^1.0.0"
- }
- },
- "is-accessor-descriptor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
- "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
- "dev": true,
- "requires": {
- "kind-of": "^6.0.0"
- }
- },
- "is-data-descriptor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
- "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
- "dev": true,
- "requires": {
- "kind-of": "^6.0.0"
- }
- },
- "is-descriptor": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
- "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
- "dev": true,
- "requires": {
- "is-accessor-descriptor": "^1.0.0",
- "is-data-descriptor": "^1.0.0",
- "kind-of": "^6.0.2"
- }
- }
- }
- },
- "bcrypt-pbkdf": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
- "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
- "dev": true,
- "requires": {
- "tweetnacl": "^0.14.3"
- }
- },
- "brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "dev": true,
- "requires": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
- "braces": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
- "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
- "dev": true,
- "requires": {
- "fill-range": "^7.0.1"
- }
- },
- "browser-process-hrtime": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz",
- "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==",
- "dev": true
- },
- "browser-resolve": {
- "version": "1.11.3",
- "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz",
- "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==",
- "dev": true,
- "requires": {
- "resolve": "1.1.7"
- },
- "dependencies": {
- "resolve": {
- "version": "1.1.7",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz",
- "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=",
- "dev": true
- }
- }
- },
- "browserslist": {
- "version": "4.14.5",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.14.5.tgz",
- "integrity": "sha512-Z+vsCZIvCBvqLoYkBFTwEYH3v5MCQbsAjp50ERycpOjnPmolg1Gjy4+KaWWpm8QOJt9GHkhdqAl14NpCX73CWA==",
- "dev": true,
- "requires": {
- "caniuse-lite": "^1.0.30001135",
- "electron-to-chromium": "^1.3.571",
- "escalade": "^3.1.0",
- "node-releases": "^1.1.61"
- }
- },
- "bs-logger": {
- "version": "0.2.6",
- "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz",
- "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==",
- "dev": true,
- "requires": {
- "fast-json-stable-stringify": "2.x"
- }
- },
- "bser": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz",
- "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==",
- "dev": true,
- "requires": {
- "node-int64": "^0.4.0"
- }
- },
- "buffer-from": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
- "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
- "dev": true
- },
- "builtin-modules": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.1.0.tgz",
- "integrity": "sha512-k0KL0aWZuBt2lrxrcASWDfwOLMnodeQjodT/1SxEQAXsHANgo6ZC/VEaSEHCXt7aSTZ4/4H5LKa+tBXmW7Vtvw==",
- "dev": true
- },
- "cache-base": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz",
- "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==",
- "dev": true,
- "requires": {
- "collection-visit": "^1.0.0",
- "component-emitter": "^1.2.1",
- "get-value": "^2.0.6",
- "has-value": "^1.0.0",
- "isobject": "^3.0.1",
- "set-value": "^2.0.0",
- "to-object-path": "^0.3.0",
- "union-value": "^1.0.0",
- "unset-value": "^1.0.0"
- }
- },
- "callsites": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
- "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
- "dev": true
- },
- "camelcase": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.1.0.tgz",
- "integrity": "sha512-WCMml9ivU60+8rEJgELlFp1gxFcEGxwYleE3bziHEDeqsqAWGHdimB7beBFGjLzVNgPGyDsfgXLQEYMpmIFnVQ==",
- "dev": true
- },
- "caniuse-lite": {
- "version": "1.0.30001150",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001150.tgz",
- "integrity": "sha512-kiNKvihW0m36UhAFnl7bOAv0i1K1f6wpfVtTF5O5O82XzgtBnb05V0XeV3oZ968vfg2sRNChsHw8ASH2hDfoYQ==",
- "dev": true
- },
- "capture-exit": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz",
- "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==",
- "dev": true,
- "requires": {
- "rsvp": "^4.8.4"
- }
- },
- "caseless": {
- "version": "0.12.0",
- "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
- "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
- "dev": true
- },
- "chalk": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
- "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "chardet": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
- "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==",
- "dev": true
- },
- "ci-info": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz",
- "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==",
- "dev": true
- },
- "class-utils": {
- "version": "0.3.6",
- "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz",
- "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==",
- "dev": true,
- "requires": {
- "arr-union": "^3.1.0",
- "define-property": "^0.2.5",
- "isobject": "^3.0.0",
- "static-extend": "^0.1.1"
- },
- "dependencies": {
- "define-property": {
- "version": "0.2.5",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
- "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
- "dev": true,
- "requires": {
- "is-descriptor": "^0.1.0"
- }
- }
- }
- },
- "cli-cursor": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
- "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
- "dev": true,
- "requires": {
- "restore-cursor": "^3.1.0"
- }
- },
- "cli-spinners": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.5.0.tgz",
- "integrity": "sha512-PC+AmIuK04E6aeSs/pUccSujsTzBhu4HzC2dL+CfJB/Jcc2qTRbEwZQDfIUpt2Xl8BodYBEq8w4fc0kU2I9DjQ==",
- "dev": true
- },
- "cli-width": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz",
- "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==",
- "dev": true
- },
- "cliui": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
- "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
- "dev": true,
- "requires": {
- "string-width": "^4.2.0",
- "strip-ansi": "^6.0.0",
- "wrap-ansi": "^6.2.0"
- },
- "dependencies": {
- "strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
- "dev": true,
- "requires": {
- "ansi-regex": "^5.0.0"
- }
- }
- }
- },
- "clone": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
- "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=",
- "dev": true
- },
- "co": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
- "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",
- "dev": true
- },
- "collect-v8-coverage": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz",
- "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==",
- "dev": true
- },
- "collection-visit": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
- "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=",
- "dev": true,
- "requires": {
- "map-visit": "^1.0.0",
- "object-visit": "^1.0.0"
- }
- },
- "color-convert": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
- "dev": true,
- "requires": {
- "color-name": "1.1.3"
- }
- },
- "color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
- "dev": true
- },
- "combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "requires": {
- "delayed-stream": "~1.0.0"
- }
- },
- "commander": {
- "version": "2.20.3",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
- "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
- "dev": true
- },
- "commondir": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
- "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
- "dev": true
- },
- "component-emitter": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
- "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==",
- "dev": true
- },
- "concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
- "dev": true
- },
- "confusing-browser-globals": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.9.tgz",
- "integrity": "sha512-KbS1Y0jMtyPgIxjO7ZzMAuUpAKMt1SzCL9fsrKsX6b0zJPTaT0SiSPmewwVZg9UAO83HVIlEhZF84LIjZ0lmAw==",
- "dev": true
- },
- "contains-path": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz",
- "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=",
- "dev": true
- },
- "convert-source-map": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz",
- "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==",
- "dev": true,
- "requires": {
- "safe-buffer": "~5.1.1"
- }
- },
- "copy-descriptor": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
- "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
- "dev": true
- },
- "core-js-compat": {
- "version": "3.6.5",
- "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.6.5.tgz",
- "integrity": "sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng==",
- "dev": true,
- "requires": {
- "browserslist": "^4.8.5",
- "semver": "7.0.0"
- },
- "dependencies": {
- "semver": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz",
- "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==",
- "dev": true
- }
- }
- },
- "core-js-pure": {
- "version": "3.6.5",
- "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.6.5.tgz",
- "integrity": "sha512-lacdXOimsiD0QyNf9BC/mxivNJ/ybBGJXQFKzRekp1WTHoVUWsUHEn+2T8GJAzzIhyOuXA+gOxCVN3l+5PLPUA==",
- "dev": true
- },
- "core-util-is": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
- "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
- "dev": true
- },
- "cosmiconfig": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz",
- "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==",
- "dev": true,
- "requires": {
- "@types/parse-json": "^4.0.0",
- "import-fresh": "^3.1.0",
- "parse-json": "^5.0.0",
- "path-type": "^4.0.0",
- "yaml": "^1.7.2"
- }
- },
- "cross-spawn": {
- "version": "6.0.5",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
- "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
- "dev": true,
- "requires": {
- "nice-try": "^1.0.4",
- "path-key": "^2.0.1",
- "semver": "^5.5.0",
- "shebang-command": "^1.2.0",
- "which": "^1.2.9"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "dev": true
- }
- }
- },
- "cssom": {
- "version": "0.4.4",
- "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz",
- "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==",
- "dev": true
- },
- "cssstyle": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz",
- "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==",
- "dev": true,
- "requires": {
- "cssom": "~0.3.6"
- },
- "dependencies": {
- "cssom": {
- "version": "0.3.8",
- "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz",
- "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==",
- "dev": true
- }
- }
- },
- "damerau-levenshtein": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.6.tgz",
- "integrity": "sha512-JVrozIeElnj3QzfUIt8tB8YMluBJom4Vw9qTPpjGYQ9fYlB3D/rb6OordUxf3xeFB35LKWs0xqcO5U6ySvBtug==",
- "dev": true
- },
- "dashdash": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
- "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
- "dev": true,
- "requires": {
- "assert-plus": "^1.0.0"
- }
- },
- "data-urls": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz",
- "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==",
- "dev": true,
- "requires": {
- "abab": "^2.0.0",
- "whatwg-mimetype": "^2.2.0",
- "whatwg-url": "^7.0.0"
- }
- },
- "debug": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz",
- "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==",
- "dev": true,
- "requires": {
- "ms": "2.1.2"
- }
- },
- "decamelize": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
- "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
- "dev": true
- },
- "decode-uri-component": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
- "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
- "dev": true
- },
- "deep-is": {
- "version": "0.1.3",
- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz",
- "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=",
- "dev": true
- },
- "deepmerge": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",
- "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==",
- "dev": true
- },
- "defaults": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz",
- "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=",
- "dev": true,
- "requires": {
- "clone": "^1.0.2"
- }
- },
- "define-properties": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
- "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
- "dev": true,
- "requires": {
- "object-keys": "^1.0.12"
- }
- },
- "define-property": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz",
- "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==",
- "dev": true,
- "requires": {
- "is-descriptor": "^1.0.2",
- "isobject": "^3.0.1"
- },
- "dependencies": {
- "is-accessor-descriptor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
- "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
- "dev": true,
- "requires": {
- "kind-of": "^6.0.0"
- }
- },
- "is-data-descriptor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
- "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
- "dev": true,
- "requires": {
- "kind-of": "^6.0.0"
- }
- },
- "is-descriptor": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
- "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
- "dev": true,
- "requires": {
- "is-accessor-descriptor": "^1.0.0",
- "is-data-descriptor": "^1.0.0",
- "kind-of": "^6.0.2"
- }
- }
- }
- },
- "delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
- },
- "detect-newline": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",
- "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==",
- "dev": true
- },
- "detect-node": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz",
- "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw=="
- },
- "diff-sequences": {
- "version": "25.2.6",
- "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-25.2.6.tgz",
- "integrity": "sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg==",
- "dev": true
- },
- "doctrine": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
- "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2"
- }
- },
- "domexception": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz",
- "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==",
- "dev": true,
- "requires": {
- "webidl-conversions": "^4.0.2"
- }
- },
- "ecc-jsbn": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
- "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
- "dev": true,
- "requires": {
- "jsbn": "~0.1.0",
- "safer-buffer": "^2.1.0"
- }
- },
- "electron-to-chromium": {
- "version": "1.3.582",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.582.tgz",
- "integrity": "sha512-0nCJ7cSqnkMC+kUuPs0YgklFHraWGl/xHqtZWWtOeVtyi+YqkoAOMGuZQad43DscXCQI/yizcTa3u6B5r+BLww==",
- "dev": true
- },
- "emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true
- },
- "end-of-stream": {
- "version": "1.4.4",
- "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
- "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
- "dev": true,
- "requires": {
- "once": "^1.4.0"
- }
- },
- "enquirer": {
- "version": "2.3.6",
- "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz",
- "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==",
- "dev": true,
- "requires": {
- "ansi-colors": "^4.1.1"
- }
- },
- "error-ex": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
- "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
- "dev": true,
- "requires": {
- "is-arrayish": "^0.2.1"
- }
- },
- "es-abstract": {
- "version": "1.18.0-next.1",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.1.tgz",
- "integrity": "sha512-I4UGspA0wpZXWENrdA0uHbnhte683t3qT/1VFH9aX2dA5PPSf6QW5HHXf5HImaqPmjXaVeVk4RGWnaylmV7uAA==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-negative-zero": "^2.0.0",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- },
- "es-to-primitive": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz",
- "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==",
- "dev": true,
- "requires": {
- "is-callable": "^1.1.4",
- "is-date-object": "^1.0.1",
- "is-symbol": "^1.0.2"
- }
- },
- "escalade": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
- "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
- "dev": true
- },
- "escape-string-regexp": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
- "dev": true
- },
- "escodegen": {
- "version": "1.14.3",
- "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz",
- "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==",
- "dev": true,
- "requires": {
- "esprima": "^4.0.1",
- "estraverse": "^4.2.0",
- "esutils": "^2.0.2",
- "optionator": "^0.8.1",
- "source-map": "~0.6.1"
- },
- "dependencies": {
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true,
- "optional": true
- }
- }
- },
- "eslint": {
- "version": "6.8.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz",
- "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.0.0",
- "ajv": "^6.10.0",
- "chalk": "^2.1.0",
- "cross-spawn": "^6.0.5",
- "debug": "^4.0.1",
- "doctrine": "^3.0.0",
- "eslint-scope": "^5.0.0",
- "eslint-utils": "^1.4.3",
- "eslint-visitor-keys": "^1.1.0",
- "espree": "^6.1.2",
- "esquery": "^1.0.1",
- "esutils": "^2.0.2",
- "file-entry-cache": "^5.0.1",
- "functional-red-black-tree": "^1.0.1",
- "glob-parent": "^5.0.0",
- "globals": "^12.1.0",
- "ignore": "^4.0.6",
- "import-fresh": "^3.0.0",
- "imurmurhash": "^0.1.4",
- "inquirer": "^7.0.0",
- "is-glob": "^4.0.0",
- "js-yaml": "^3.13.1",
- "json-stable-stringify-without-jsonify": "^1.0.1",
- "levn": "^0.3.0",
- "lodash": "^4.17.14",
- "minimatch": "^3.0.4",
- "mkdirp": "^0.5.1",
- "natural-compare": "^1.4.0",
- "optionator": "^0.8.3",
- "progress": "^2.0.0",
- "regexpp": "^2.0.1",
- "semver": "^6.1.2",
- "strip-ansi": "^5.2.0",
- "strip-json-comments": "^3.0.1",
- "table": "^5.2.3",
- "text-table": "^0.2.0",
- "v8-compile-cache": "^2.0.3"
- },
- "dependencies": {
- "chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
- "dev": true,
- "requires": {
- "ansi-styles": "^3.2.1",
- "escape-string-regexp": "^1.0.5",
- "supports-color": "^5.3.0"
- }
- },
- "eslint-utils": {
- "version": "1.4.3",
- "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz",
- "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==",
- "dev": true,
- "requires": {
- "eslint-visitor-keys": "^1.1.0"
- }
- },
- "globals": {
- "version": "12.4.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz",
- "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==",
- "dev": true,
- "requires": {
- "type-fest": "^0.8.1"
- }
- },
- "regexpp": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz",
- "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==",
- "dev": true
- },
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "dev": true
- },
- "type-fest": {
- "version": "0.8.1",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz",
- "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
- "dev": true
- }
- }
- },
- "eslint-config-prettier": {
- "version": "6.14.0",
- "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-6.14.0.tgz",
- "integrity": "sha512-DbVwh0qZhAC7CNDWcq8cBdK6FcVHiMTKmCypOPWeZkp9hJ8xYwTaWSa6bb6cjfi8KOeJy0e9a8Izxyx+O4+gCQ==",
- "dev": true,
- "requires": {
- "get-stdin": "^6.0.0"
- }
- },
- "eslint-config-react-app": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-5.2.1.tgz",
- "integrity": "sha512-pGIZ8t0mFLcV+6ZirRgYK6RVqUIKRIi9MmgzUEmrIknsn3AdO0I32asO86dJgloHq+9ZPl8UIg8mYrvgP5u2wQ==",
- "dev": true,
- "requires": {
- "confusing-browser-globals": "^1.0.9"
- }
- },
- "eslint-import-resolver-node": {
- "version": "0.3.4",
- "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz",
- "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==",
- "dev": true,
- "requires": {
- "debug": "^2.6.9",
- "resolve": "^1.13.1"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- },
- "ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
- "dev": true
- }
- }
- },
- "eslint-module-utils": {
- "version": "2.6.0",
- "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz",
- "integrity": "sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==",
- "dev": true,
- "requires": {
- "debug": "^2.6.9",
- "pkg-dir": "^2.0.0"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- },
- "ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
- "dev": true
- }
- }
- },
- "eslint-plugin-flowtype": {
- "version": "3.13.0",
- "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-3.13.0.tgz",
- "integrity": "sha512-bhewp36P+t7cEV0b6OdmoRWJCBYRiHFlqPZAG1oS3SF+Y0LQkeDvFSM4oxoxvczD1OdONCXMlJfQFiWLcV9urw==",
- "dev": true,
- "requires": {
- "lodash": "^4.17.15"
- }
- },
- "eslint-plugin-import": {
- "version": "2.22.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz",
- "integrity": "sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw==",
- "dev": true,
- "requires": {
- "array-includes": "^3.1.1",
- "array.prototype.flat": "^1.2.3",
- "contains-path": "^0.1.0",
- "debug": "^2.6.9",
- "doctrine": "1.5.0",
- "eslint-import-resolver-node": "^0.3.4",
- "eslint-module-utils": "^2.6.0",
- "has": "^1.0.3",
- "minimatch": "^3.0.4",
- "object.values": "^1.1.1",
- "read-pkg-up": "^2.0.0",
- "resolve": "^1.17.0",
- "tsconfig-paths": "^3.9.0"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- },
- "doctrine": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz",
- "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "isarray": "^1.0.0"
- }
- },
- "ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
- "dev": true
- }
- }
- },
- "eslint-plugin-jsx-a11y": {
- "version": "6.3.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.3.1.tgz",
- "integrity": "sha512-i1S+P+c3HOlBJzMFORRbC58tHa65Kbo8b52/TwCwSKLohwvpfT5rm2GjGWzOHTEuq4xxf2aRlHHTtmExDQOP+g==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.10.2",
- "aria-query": "^4.2.2",
- "array-includes": "^3.1.1",
- "ast-types-flow": "^0.0.7",
- "axe-core": "^3.5.4",
- "axobject-query": "^2.1.2",
- "damerau-levenshtein": "^1.0.6",
- "emoji-regex": "^9.0.0",
- "has": "^1.0.3",
- "jsx-ast-utils": "^2.4.1",
- "language-tags": "^1.0.5"
- },
- "dependencies": {
- "emoji-regex": {
- "version": "9.2.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.0.tgz",
- "integrity": "sha512-DNc3KFPK18bPdElMJnf/Pkv5TXhxFU3YFDEuGLDRtPmV4rkmCjBkCSEp22u6rBHdSN9Vlp/GK7k98prmE1Jgug==",
- "dev": true
- }
- }
- },
- "eslint-plugin-prettier": {
- "version": "3.1.4",
- "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.4.tgz",
- "integrity": "sha512-jZDa8z76klRqo+TdGDTFJSavwbnWK2ZpqGKNZ+VvweMW516pDUMmQ2koXvxEE4JhzNvTv+radye/bWGBmA6jmg==",
- "dev": true,
- "requires": {
- "prettier-linter-helpers": "^1.0.0"
- }
- },
- "eslint-plugin-react": {
- "version": "7.21.5",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.21.5.tgz",
- "integrity": "sha512-8MaEggC2et0wSF6bUeywF7qQ46ER81irOdWS4QWxnnlAEsnzeBevk1sWh7fhpCghPpXb+8Ks7hvaft6L/xsR6g==",
- "dev": true,
- "requires": {
- "array-includes": "^3.1.1",
- "array.prototype.flatmap": "^1.2.3",
- "doctrine": "^2.1.0",
- "has": "^1.0.3",
- "jsx-ast-utils": "^2.4.1 || ^3.0.0",
- "object.entries": "^1.1.2",
- "object.fromentries": "^2.0.2",
- "object.values": "^1.1.1",
- "prop-types": "^15.7.2",
- "resolve": "^1.18.1",
- "string.prototype.matchall": "^4.0.2"
- },
- "dependencies": {
- "doctrine": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
- "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2"
- }
- }
- }
- },
- "eslint-plugin-react-hooks": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.5.1.tgz",
- "integrity": "sha512-Y2c4b55R+6ZzwtTppKwSmK/Kar8AdLiC2f9NADCuxbcTgPPg41Gyqa6b9GppgXSvCtkRw43ZE86CT5sejKC6/g==",
- "dev": true
- },
- "eslint-scope": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
- "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
- "dev": true,
- "requires": {
- "esrecurse": "^4.3.0",
- "estraverse": "^4.1.1"
- }
- },
- "eslint-utils": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz",
- "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
- "dev": true,
- "requires": {
- "eslint-visitor-keys": "^1.1.0"
- }
- },
- "eslint-visitor-keys": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
- "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
- "dev": true
- },
- "espree": {
- "version": "6.2.1",
- "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz",
- "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==",
- "dev": true,
- "requires": {
- "acorn": "^7.1.1",
- "acorn-jsx": "^5.2.0",
- "eslint-visitor-keys": "^1.1.0"
- }
- },
- "esprima": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
- "dev": true
- },
- "esquery": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz",
- "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==",
- "dev": true,
- "requires": {
- "estraverse": "^5.1.0"
- },
- "dependencies": {
- "estraverse": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz",
- "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==",
- "dev": true
- }
- }
- },
- "esrecurse": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
- "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
- "dev": true,
- "requires": {
- "estraverse": "^5.2.0"
- },
- "dependencies": {
- "estraverse": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz",
- "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==",
- "dev": true
- }
- }
- },
- "estraverse": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
- "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
- "dev": true
- },
- "estree-walker": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz",
- "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==",
- "dev": true
- },
- "esutils": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
- "dev": true
- },
- "event-target-shim": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
- "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
- "dev": true
- },
- "exec-sh": {
- "version": "0.3.4",
- "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz",
- "integrity": "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==",
- "dev": true
- },
- "execa": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.3.tgz",
- "integrity": "sha512-WFDXGHckXPWZX19t1kCsXzOpqX9LWYNqn4C+HqZlk/V0imTkzJZqf87ZBhvpHaftERYknpk0fjSylnXVlVgI0A==",
- "dev": true,
- "requires": {
- "cross-spawn": "^7.0.0",
- "get-stream": "^5.0.0",
- "human-signals": "^1.1.1",
- "is-stream": "^2.0.0",
- "merge-stream": "^2.0.0",
- "npm-run-path": "^4.0.0",
- "onetime": "^5.1.0",
- "signal-exit": "^3.0.2",
- "strip-final-newline": "^2.0.0"
- },
- "dependencies": {
- "cross-spawn": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
- "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
- "dev": true,
- "requires": {
- "path-key": "^3.1.0",
- "shebang-command": "^2.0.0",
- "which": "^2.0.1"
- }
- },
- "path-key": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
- "dev": true
- },
- "shebang-command": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
- "dev": true,
- "requires": {
- "shebang-regex": "^3.0.0"
- }
- },
- "shebang-regex": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
- "dev": true
- },
- "which": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "dev": true,
- "requires": {
- "isexe": "^2.0.0"
- }
- }
- }
- },
- "exit": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
- "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=",
- "dev": true
- },
- "expand-brackets": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz",
- "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=",
- "dev": true,
- "requires": {
- "debug": "^2.3.3",
- "define-property": "^0.2.5",
- "extend-shallow": "^2.0.1",
- "posix-character-classes": "^0.1.0",
- "regex-not": "^1.0.0",
- "snapdragon": "^0.8.1",
- "to-regex": "^3.0.1"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- },
- "define-property": {
- "version": "0.2.5",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
- "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
- "dev": true,
- "requires": {
- "is-descriptor": "^0.1.0"
- }
- },
- "extend-shallow": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
- "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
- "dev": true,
- "requires": {
- "is-extendable": "^0.1.0"
- }
- },
- "ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
- "dev": true
- }
- }
- },
- "expect": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/expect/-/expect-25.5.0.tgz",
- "integrity": "sha512-w7KAXo0+6qqZZhovCaBVPSIqQp7/UTcx4M9uKt2m6pd2VB1voyC8JizLRqeEqud3AAVP02g+hbErDu5gu64tlA==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "ansi-styles": "^4.0.0",
- "jest-get-type": "^25.2.6",
- "jest-matcher-utils": "^25.5.0",
- "jest-message-util": "^25.5.0",
- "jest-regex-util": "^25.2.6"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- }
- }
- },
- "extend": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
- "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
- "dev": true
- },
- "extend-shallow": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz",
- "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=",
- "dev": true,
- "requires": {
- "assign-symbols": "^1.0.0",
- "is-extendable": "^1.0.1"
- },
- "dependencies": {
- "is-extendable": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz",
- "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",
- "dev": true,
- "requires": {
- "is-plain-object": "^2.0.4"
- }
- }
- }
- },
- "external-editor": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
- "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
- "dev": true,
- "requires": {
- "chardet": "^0.7.0",
- "iconv-lite": "^0.4.24",
- "tmp": "^0.0.33"
- }
- },
- "extglob": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz",
- "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==",
- "dev": true,
- "requires": {
- "array-unique": "^0.3.2",
- "define-property": "^1.0.0",
- "expand-brackets": "^2.1.4",
- "extend-shallow": "^2.0.1",
- "fragment-cache": "^0.2.1",
- "regex-not": "^1.0.0",
- "snapdragon": "^0.8.1",
- "to-regex": "^3.0.1"
- },
- "dependencies": {
- "define-property": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
- "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
- "dev": true,
- "requires": {
- "is-descriptor": "^1.0.0"
- }
- },
- "extend-shallow": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
- "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
- "dev": true,
- "requires": {
- "is-extendable": "^0.1.0"
- }
- },
- "is-accessor-descriptor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
- "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
- "dev": true,
- "requires": {
- "kind-of": "^6.0.0"
- }
- },
- "is-data-descriptor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
- "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
- "dev": true,
- "requires": {
- "kind-of": "^6.0.0"
- }
- },
- "is-descriptor": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
- "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
- "dev": true,
- "requires": {
- "is-accessor-descriptor": "^1.0.0",
- "is-data-descriptor": "^1.0.0",
- "kind-of": "^6.0.2"
- }
- }
- }
- },
- "extsprintf": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
- "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
- "dev": true
- },
- "fast-deep-equal": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
- "dev": true
- },
- "fast-diff": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz",
- "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==",
- "dev": true
- },
- "fast-json-stable-stringify": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
- "dev": true
- },
- "fast-levenshtein": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
- "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
- "dev": true
- },
- "fb-watchman": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz",
- "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==",
- "dev": true,
- "requires": {
- "bser": "2.1.1"
- }
- },
- "figures": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz",
- "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==",
- "dev": true,
- "requires": {
- "escape-string-regexp": "^1.0.5"
- }
- },
- "file-entry-cache": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz",
- "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==",
- "dev": true,
- "requires": {
- "flat-cache": "^2.0.1"
- }
- },
- "fill-range": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
- "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
- "dev": true,
- "requires": {
- "to-regex-range": "^5.0.1"
- }
- },
- "find-cache-dir": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz",
- "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==",
- "dev": true,
- "requires": {
- "commondir": "^1.0.1",
- "make-dir": "^3.0.2",
- "pkg-dir": "^4.1.0"
- },
- "dependencies": {
- "find-up": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
- "dev": true,
- "requires": {
- "locate-path": "^5.0.0",
- "path-exists": "^4.0.0"
- }
- },
- "locate-path": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
- "dev": true,
- "requires": {
- "p-locate": "^4.1.0"
- }
- },
- "p-limit": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
- "dev": true,
- "requires": {
- "p-try": "^2.0.0"
- }
- },
- "p-locate": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
- "dev": true,
- "requires": {
- "p-limit": "^2.2.0"
- }
- },
- "p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
- "dev": true
- },
- "path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
- "dev": true
- },
- "pkg-dir": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
- "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
- "dev": true,
- "requires": {
- "find-up": "^4.0.0"
- }
- }
- }
- },
- "find-up": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
- "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
- "dev": true,
- "requires": {
- "locate-path": "^2.0.0"
- }
- },
- "flat-cache": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz",
- "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==",
- "dev": true,
- "requires": {
- "flatted": "^2.0.0",
- "rimraf": "2.6.3",
- "write": "1.0.3"
- }
- },
- "flatted": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz",
- "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==",
- "dev": true
- },
- "follow-redirects": {
- "version": "1.13.0",
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.0.tgz",
- "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA=="
- },
- "for-in": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
- "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=",
- "dev": true
- },
- "forever-agent": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
- "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
- "dev": true
- },
- "form-data": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz",
- "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==",
- "requires": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.8",
- "mime-types": "^2.1.12"
- }
- },
- "fragment-cache": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
- "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=",
- "dev": true,
- "requires": {
- "map-cache": "^0.2.2"
- }
- },
- "fs-extra": {
- "version": "9.0.1",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz",
- "integrity": "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==",
- "dev": true,
- "requires": {
- "at-least-node": "^1.0.0",
- "graceful-fs": "^4.2.0",
- "jsonfile": "^6.0.1",
- "universalify": "^1.0.0"
- }
- },
- "fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
- "dev": true
- },
- "fsevents": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz",
- "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==",
- "dev": true,
- "optional": true
- },
- "function-bind": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
- "dev": true
- },
- "functional-red-black-tree": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz",
- "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=",
- "dev": true
- },
- "gensync": {
- "version": "1.0.0-beta.1",
- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz",
- "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==",
- "dev": true
- },
- "get-caller-file": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
- "dev": true
- },
- "get-package-type": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
- "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",
- "dev": true
- },
- "get-stdin": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz",
- "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==",
- "dev": true
- },
- "get-stream": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
- "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
- "dev": true,
- "requires": {
- "pump": "^3.0.0"
- }
- },
- "get-value": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz",
- "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=",
- "dev": true
- },
- "getpass": {
- "version": "0.1.7",
- "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
- "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
- "dev": true,
- "requires": {
- "assert-plus": "^1.0.0"
- }
- },
- "glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
- "dev": true,
- "requires": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- }
- },
- "glob-parent": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz",
- "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==",
- "dev": true,
- "requires": {
- "is-glob": "^4.0.1"
- }
- },
- "globals": {
- "version": "11.12.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
- "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
- "dev": true
- },
- "globalyzer": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.4.tgz",
- "integrity": "sha512-LeguVWaxgHN0MNbWC6YljNMzHkrCny9fzjmEUdnF1kQ7wATFD1RHFRqA1qxaX2tgxGENlcxjOflopBwj3YZiXA==",
- "dev": true
- },
- "globrex": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
- "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",
- "dev": true
- },
- "graceful-fs": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
- "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==",
- "dev": true
- },
- "growly": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz",
- "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=",
- "dev": true,
- "optional": true
- },
- "har-schema": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
- "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",
- "dev": true
- },
- "har-validator": {
- "version": "5.1.5",
- "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz",
- "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==",
- "dev": true,
- "requires": {
- "ajv": "^6.12.3",
- "har-schema": "^2.0.0"
- }
- },
- "has": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
- "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
- "dev": true,
- "requires": {
- "function-bind": "^1.1.1"
- }
- },
- "has-flag": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
- "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
- "dev": true
- },
- "has-symbols": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
- "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
- "dev": true
- },
- "has-value": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz",
- "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=",
- "dev": true,
- "requires": {
- "get-value": "^2.0.6",
- "has-values": "^1.0.0",
- "isobject": "^3.0.0"
- }
- },
- "has-values": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz",
- "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=",
- "dev": true,
- "requires": {
- "is-number": "^3.0.0",
- "kind-of": "^4.0.0"
- },
- "dependencies": {
- "is-number": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
- "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
- "dev": true,
- "requires": {
- "kind-of": "^3.0.2"
- },
- "dependencies": {
- "kind-of": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.5"
- }
- }
- }
- },
- "kind-of": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz",
- "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.5"
- }
- }
- }
- },
- "hosted-git-info": {
- "version": "2.8.8",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz",
- "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==",
- "dev": true
- },
- "html-encoding-sniffer": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz",
- "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==",
- "dev": true,
- "requires": {
- "whatwg-encoding": "^1.0.1"
- }
- },
- "html-escaper": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
- "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
- "dev": true
- },
- "http-signature": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
- "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
- "dev": true,
- "requires": {
- "assert-plus": "^1.0.0",
- "jsprim": "^1.2.2",
- "sshpk": "^1.7.0"
- }
- },
- "human-signals": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
- "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==",
- "dev": true
- },
- "humanize-duration": {
- "version": "3.24.0",
- "resolved": "https://registry.npmjs.org/humanize-duration/-/humanize-duration-3.24.0.tgz",
- "integrity": "sha512-B3udnqisaDeRsvUSb+5n2hjxhABI9jotB+i1IEhgHhguTeM5LxIUKoVIu7UpeyaPOygr/Fnv7UhOi45kYYG+tg==",
- "dev": true
- },
- "iconv-lite": {
- "version": "0.4.24",
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
- "dev": true,
- "requires": {
- "safer-buffer": ">= 2.1.2 < 3"
- }
- },
- "ignore": {
- "version": "4.0.6",
- "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz",
- "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==",
- "dev": true
- },
- "import-fresh": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz",
- "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==",
- "dev": true,
- "requires": {
- "parent-module": "^1.0.0",
- "resolve-from": "^4.0.0"
- }
- },
- "import-local": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz",
- "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==",
- "dev": true,
- "requires": {
- "pkg-dir": "^4.2.0",
- "resolve-cwd": "^3.0.0"
- },
- "dependencies": {
- "find-up": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
- "dev": true,
- "requires": {
- "locate-path": "^5.0.0",
- "path-exists": "^4.0.0"
- }
- },
- "locate-path": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
- "dev": true,
- "requires": {
- "p-locate": "^4.1.0"
- }
- },
- "p-limit": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
- "dev": true,
- "requires": {
- "p-try": "^2.0.0"
- }
- },
- "p-locate": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
- "dev": true,
- "requires": {
- "p-limit": "^2.2.0"
- }
- },
- "p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
- "dev": true
- },
- "path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
- "dev": true
- },
- "pkg-dir": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
- "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
- "dev": true,
- "requires": {
- "find-up": "^4.0.0"
- }
- }
- }
- },
- "imurmurhash": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
- "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
- "dev": true
- },
- "inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
- "dev": true,
- "requires": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
- "dev": true
- },
- "inquirer": {
- "version": "7.3.3",
- "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.3.tgz",
- "integrity": "sha512-JG3eIAj5V9CwcGvuOmoo6LB9kbAYT8HXffUl6memuszlwDC/qvFAJw49XJ5NROSFNPxp3iQg1GqkFhaY/CR0IA==",
- "dev": true,
- "requires": {
- "ansi-escapes": "^4.2.1",
- "chalk": "^4.1.0",
- "cli-cursor": "^3.1.0",
- "cli-width": "^3.0.0",
- "external-editor": "^3.0.3",
- "figures": "^3.0.0",
- "lodash": "^4.17.19",
- "mute-stream": "0.0.8",
- "run-async": "^2.4.0",
- "rxjs": "^6.6.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0",
- "through": "^2.3.6"
- },
- "dependencies": {
- "strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
- "dev": true,
- "requires": {
- "ansi-regex": "^5.0.0"
- }
- }
- }
- },
- "internal-slot": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.2.tgz",
- "integrity": "sha512-2cQNfwhAfJIkU4KZPkDI+Gj5yNNnbqi40W9Gge6dfnk4TocEVm00B3bdiL+JINrbGJil2TeHvM4rETGzk/f/0g==",
- "dev": true,
- "requires": {
- "es-abstract": "^1.17.0-next.1",
- "has": "^1.0.3",
- "side-channel": "^1.0.2"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "interpret": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
- "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
- "dev": true
- },
- "ip-regex": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz",
- "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=",
- "dev": true
- },
- "is-accessor-descriptor": {
- "version": "0.1.6",
- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",
- "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=",
- "dev": true,
- "requires": {
- "kind-of": "^3.0.2"
- },
- "dependencies": {
- "kind-of": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.5"
- }
- }
- }
- },
- "is-arrayish": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
- "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
- "dev": true
- },
- "is-buffer": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
- "dev": true
- },
- "is-callable": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.2.tgz",
- "integrity": "sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA==",
- "dev": true
- },
- "is-ci": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz",
- "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==",
- "dev": true,
- "requires": {
- "ci-info": "^2.0.0"
- }
- },
- "is-core-module": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.0.0.tgz",
- "integrity": "sha512-jq1AH6C8MuteOoBPwkxHafmByhL9j5q4OaPGdbuD+ZtQJVzH+i6E3BJDQcBA09k57i2Hh2yQbEG8yObZ0jdlWw==",
- "dev": true,
- "requires": {
- "has": "^1.0.3"
- }
- },
- "is-data-descriptor": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
- "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=",
- "dev": true,
- "requires": {
- "kind-of": "^3.0.2"
- },
- "dependencies": {
- "kind-of": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.5"
- }
- }
- }
- },
- "is-date-object": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz",
- "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==",
- "dev": true
- },
- "is-descriptor": {
- "version": "0.1.6",
- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",
- "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",
- "dev": true,
- "requires": {
- "is-accessor-descriptor": "^0.1.6",
- "is-data-descriptor": "^0.1.4",
- "kind-of": "^5.0.0"
- },
- "dependencies": {
- "kind-of": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",
- "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",
- "dev": true
- }
- }
- },
- "is-docker": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz",
- "integrity": "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==",
- "dev": true,
- "optional": true
- },
- "is-extendable": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",
- "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=",
- "dev": true
- },
- "is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
- "dev": true
- },
- "is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true
- },
- "is-generator-fn": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz",
- "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==",
- "dev": true
- },
- "is-glob": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
- "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
- "dev": true,
- "requires": {
- "is-extglob": "^2.1.1"
- }
- },
- "is-interactive": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",
- "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==",
- "dev": true
- },
- "is-module": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
- "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=",
- "dev": true
- },
- "is-negative-zero": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.0.tgz",
- "integrity": "sha1-lVOxIbD6wohp2p7UWeIMdUN4hGE=",
- "dev": true
- },
- "is-number": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
- "dev": true
- },
- "is-plain-object": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",
- "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
- "dev": true,
- "requires": {
- "isobject": "^3.0.1"
- }
- },
- "is-reference": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",
- "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",
- "dev": true,
- "requires": {
- "@types/estree": "*"
- }
- },
- "is-regex": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz",
- "integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==",
- "dev": true,
- "requires": {
- "has-symbols": "^1.0.1"
- }
- },
- "is-stream": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz",
- "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==",
- "dev": true
- },
- "is-string": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz",
- "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==",
- "dev": true
- },
- "is-symbol": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz",
- "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==",
- "dev": true,
- "requires": {
- "has-symbols": "^1.0.1"
- }
- },
- "is-typedarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
- "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
- "dev": true
- },
- "is-windows": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",
- "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
- "dev": true
- },
- "is-wsl": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
- "dev": true,
- "optional": true,
- "requires": {
- "is-docker": "^2.0.0"
- }
- },
- "isarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
- "dev": true
- },
- "isexe": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
- "dev": true
- },
- "isobject": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
- "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
- "dev": true
- },
- "isstream": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
- "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
- "dev": true
- },
- "istanbul-lib-coverage": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz",
- "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==",
- "dev": true
- },
- "istanbul-lib-instrument": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz",
- "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==",
- "dev": true,
- "requires": {
- "@babel/core": "^7.7.5",
- "@istanbuljs/schema": "^0.1.2",
- "istanbul-lib-coverage": "^3.0.0",
- "semver": "^6.3.0"
- },
- "dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "dev": true
- }
- }
- },
- "istanbul-lib-report": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz",
- "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==",
- "dev": true,
- "requires": {
- "istanbul-lib-coverage": "^3.0.0",
- "make-dir": "^3.0.0",
- "supports-color": "^7.1.0"
- },
- "dependencies": {
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "istanbul-lib-source-maps": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz",
- "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==",
- "dev": true,
- "requires": {
- "debug": "^4.1.1",
- "istanbul-lib-coverage": "^3.0.0",
- "source-map": "^0.6.1"
- },
- "dependencies": {
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true
- }
- }
- },
- "istanbul-reports": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz",
- "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==",
- "dev": true,
- "requires": {
- "html-escaper": "^2.0.0",
- "istanbul-lib-report": "^3.0.0"
- }
- },
- "jest": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/jest/-/jest-25.5.4.tgz",
- "integrity": "sha512-hHFJROBTqZahnO+X+PMtT6G2/ztqAZJveGqz//FnWWHurizkD05PQGzRZOhF3XP6z7SJmL+5tCfW8qV06JypwQ==",
- "dev": true,
- "requires": {
- "@jest/core": "^25.5.4",
- "import-local": "^3.0.2",
- "jest-cli": "^25.5.4"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "jest-cli": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-25.5.4.tgz",
- "integrity": "sha512-rG8uJkIiOUpnREh1768/N3n27Cm+xPFkSNFO91tgg+8o2rXeVLStz+vkXkGr4UtzH6t1SNbjwoiswd7p4AhHTw==",
- "dev": true,
- "requires": {
- "@jest/core": "^25.5.4",
- "@jest/test-result": "^25.5.0",
- "@jest/types": "^25.5.0",
- "chalk": "^3.0.0",
- "exit": "^0.1.2",
- "graceful-fs": "^4.2.4",
- "import-local": "^3.0.2",
- "is-ci": "^2.0.0",
- "jest-config": "^25.5.4",
- "jest-util": "^25.5.0",
- "jest-validate": "^25.5.0",
- "prompts": "^2.0.1",
- "realpath-native": "^2.0.0",
- "yargs": "^15.3.1"
- }
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-changed-files": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-25.5.0.tgz",
- "integrity": "sha512-EOw9QEqapsDT7mKF162m8HFzRPbmP8qJQny6ldVOdOVBz3ACgPm/1nAn5fPQ/NDaYhX/AHkrGwwkCncpAVSXcw==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "execa": "^3.2.0",
- "throat": "^5.0.0"
- },
- "dependencies": {
- "cross-spawn": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
- "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
- "dev": true,
- "requires": {
- "path-key": "^3.1.0",
- "shebang-command": "^2.0.0",
- "which": "^2.0.1"
- }
- },
- "execa": {
- "version": "3.4.0",
- "resolved": "https://registry.npmjs.org/execa/-/execa-3.4.0.tgz",
- "integrity": "sha512-r9vdGQk4bmCuK1yKQu1KTwcT2zwfWdbdaXfCtAh+5nU/4fSX+JAb7vZGvI5naJrQlvONrEB20jeruESI69530g==",
- "dev": true,
- "requires": {
- "cross-spawn": "^7.0.0",
- "get-stream": "^5.0.0",
- "human-signals": "^1.1.1",
- "is-stream": "^2.0.0",
- "merge-stream": "^2.0.0",
- "npm-run-path": "^4.0.0",
- "onetime": "^5.1.0",
- "p-finally": "^2.0.0",
- "signal-exit": "^3.0.2",
- "strip-final-newline": "^2.0.0"
- }
- },
- "p-finally": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz",
- "integrity": "sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==",
- "dev": true
- },
- "path-key": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
- "dev": true
- },
- "shebang-command": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
- "dev": true,
- "requires": {
- "shebang-regex": "^3.0.0"
- }
- },
- "shebang-regex": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
- "dev": true
- },
- "which": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "dev": true,
- "requires": {
- "isexe": "^2.0.0"
- }
- }
- }
- },
- "jest-config": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-25.5.4.tgz",
- "integrity": "sha512-SZwR91SwcdK6bz7Gco8qL7YY2sx8tFJYzvg216DLihTWf+LKY/DoJXpM9nTzYakSyfblbqeU48p/p7Jzy05Atg==",
- "dev": true,
- "requires": {
- "@babel/core": "^7.1.0",
- "@jest/test-sequencer": "^25.5.4",
- "@jest/types": "^25.5.0",
- "babel-jest": "^25.5.1",
- "chalk": "^3.0.0",
- "deepmerge": "^4.2.2",
- "glob": "^7.1.1",
- "graceful-fs": "^4.2.4",
- "jest-environment-jsdom": "^25.5.0",
- "jest-environment-node": "^25.5.0",
- "jest-get-type": "^25.2.6",
- "jest-jasmine2": "^25.5.4",
- "jest-regex-util": "^25.2.6",
- "jest-resolve": "^25.5.1",
- "jest-util": "^25.5.0",
- "jest-validate": "^25.5.0",
- "micromatch": "^4.0.2",
- "pretty-format": "^25.5.0",
- "realpath-native": "^2.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-diff": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-25.5.0.tgz",
- "integrity": "sha512-z1kygetuPiREYdNIumRpAHY6RXiGmp70YHptjdaxTWGmA085W3iCnXNx0DhflK3vwrKmrRWyY1wUpkPMVxMK7A==",
- "dev": true,
- "requires": {
- "chalk": "^3.0.0",
- "diff-sequences": "^25.2.6",
- "jest-get-type": "^25.2.6",
- "pretty-format": "^25.5.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-docblock": {
- "version": "25.3.0",
- "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-25.3.0.tgz",
- "integrity": "sha512-aktF0kCar8+zxRHxQZwxMy70stc9R1mOmrLsT5VO3pIT0uzGRSDAXxSlz4NqQWpuLjPpuMhPRl7H+5FRsvIQAg==",
- "dev": true,
- "requires": {
- "detect-newline": "^3.0.0"
- }
- },
- "jest-each": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-25.5.0.tgz",
- "integrity": "sha512-QBogUxna3D8vtiItvn54xXde7+vuzqRrEeaw8r1s+1TG9eZLVJE5ZkKoSUlqFwRjnlaA4hyKGiu9OlkFIuKnjA==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "chalk": "^3.0.0",
- "jest-get-type": "^25.2.6",
- "jest-util": "^25.5.0",
- "pretty-format": "^25.5.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-environment-jsdom": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-25.5.0.tgz",
- "integrity": "sha512-7Jr02ydaq4jaWMZLY+Skn8wL5nVIYpWvmeatOHL3tOcV3Zw8sjnPpx+ZdeBfc457p8jCR9J6YCc+Lga0oIy62A==",
- "dev": true,
- "requires": {
- "@jest/environment": "^25.5.0",
- "@jest/fake-timers": "^25.5.0",
- "@jest/types": "^25.5.0",
- "jest-mock": "^25.5.0",
- "jest-util": "^25.5.0",
- "jsdom": "^15.2.1"
- }
- },
- "jest-environment-node": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-25.5.0.tgz",
- "integrity": "sha512-iuxK6rQR2En9EID+2k+IBs5fCFd919gVVK5BeND82fYeLWPqvRcFNPKu9+gxTwfB5XwBGBvZ0HFQa+cHtIoslA==",
- "dev": true,
- "requires": {
- "@jest/environment": "^25.5.0",
- "@jest/fake-timers": "^25.5.0",
- "@jest/types": "^25.5.0",
- "jest-mock": "^25.5.0",
- "jest-util": "^25.5.0",
- "semver": "^6.3.0"
- },
- "dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "dev": true
- }
- }
- },
- "jest-get-type": {
- "version": "25.2.6",
- "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-25.2.6.tgz",
- "integrity": "sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig==",
- "dev": true
- },
- "jest-haste-map": {
- "version": "25.5.1",
- "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-25.5.1.tgz",
- "integrity": "sha512-dddgh9UZjV7SCDQUrQ+5t9yy8iEgKc1AKqZR9YDww8xsVOtzPQSMVLDChc21+g29oTRexb9/B0bIlZL+sWmvAQ==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "@types/graceful-fs": "^4.1.2",
- "anymatch": "^3.0.3",
- "fb-watchman": "^2.0.0",
- "fsevents": "^2.1.2",
- "graceful-fs": "^4.2.4",
- "jest-serializer": "^25.5.0",
- "jest-util": "^25.5.0",
- "jest-worker": "^25.5.0",
- "micromatch": "^4.0.2",
- "sane": "^4.0.3",
- "walker": "^1.0.7",
- "which": "^2.0.2"
- },
- "dependencies": {
- "which": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "dev": true,
- "requires": {
- "isexe": "^2.0.0"
- }
- }
- }
- },
- "jest-jasmine2": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-25.5.4.tgz",
- "integrity": "sha512-9acbWEfbmS8UpdcfqnDO+uBUgKa/9hcRh983IHdM+pKmJPL77G0sWAAK0V0kr5LK3a8cSBfkFSoncXwQlRZfkQ==",
- "dev": true,
- "requires": {
- "@babel/traverse": "^7.1.0",
- "@jest/environment": "^25.5.0",
- "@jest/source-map": "^25.5.0",
- "@jest/test-result": "^25.5.0",
- "@jest/types": "^25.5.0",
- "chalk": "^3.0.0",
- "co": "^4.6.0",
- "expect": "^25.5.0",
- "is-generator-fn": "^2.0.0",
- "jest-each": "^25.5.0",
- "jest-matcher-utils": "^25.5.0",
- "jest-message-util": "^25.5.0",
- "jest-runtime": "^25.5.4",
- "jest-snapshot": "^25.5.1",
- "jest-util": "^25.5.0",
- "pretty-format": "^25.5.0",
- "throat": "^5.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-leak-detector": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-25.5.0.tgz",
- "integrity": "sha512-rV7JdLsanS8OkdDpZtgBf61L5xZ4NnYLBq72r6ldxahJWWczZjXawRsoHyXzibM5ed7C2QRjpp6ypgwGdKyoVA==",
- "dev": true,
- "requires": {
- "jest-get-type": "^25.2.6",
- "pretty-format": "^25.5.0"
- }
- },
- "jest-matcher-utils": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-25.5.0.tgz",
- "integrity": "sha512-VWI269+9JS5cpndnpCwm7dy7JtGQT30UHfrnM3mXl22gHGt/b7NkjBqXfbhZ8V4B7ANUsjK18PlSBmG0YH7gjw==",
- "dev": true,
- "requires": {
- "chalk": "^3.0.0",
- "jest-diff": "^25.5.0",
- "jest-get-type": "^25.2.6",
- "pretty-format": "^25.5.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-message-util": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-25.5.0.tgz",
- "integrity": "sha512-ezddz3YCT/LT0SKAmylVyWWIGYoKHOFOFXx3/nA4m794lfVUskMcwhip6vTgdVrOtYdjeQeis2ypzes9mZb4EA==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.0.0",
- "@jest/types": "^25.5.0",
- "@types/stack-utils": "^1.0.1",
- "chalk": "^3.0.0",
- "graceful-fs": "^4.2.4",
- "micromatch": "^4.0.2",
- "slash": "^3.0.0",
- "stack-utils": "^1.0.1"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-mock": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-25.5.0.tgz",
- "integrity": "sha512-eXWuTV8mKzp/ovHc5+3USJMYsTBhyQ+5A1Mak35dey/RG8GlM4YWVylZuGgVXinaW6tpvk/RSecmF37FKUlpXA==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0"
- }
- },
- "jest-pnp-resolver": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz",
- "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==",
- "dev": true
- },
- "jest-regex-util": {
- "version": "25.2.6",
- "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-25.2.6.tgz",
- "integrity": "sha512-KQqf7a0NrtCkYmZZzodPftn7fL1cq3GQAFVMn5Hg8uKx/fIenLEobNanUxb7abQ1sjADHBseG/2FGpsv/wr+Qw==",
- "dev": true
- },
- "jest-resolve": {
- "version": "25.5.1",
- "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-25.5.1.tgz",
- "integrity": "sha512-Hc09hYch5aWdtejsUZhA+vSzcotf7fajSlPA6EZPE1RmPBAD39XtJhvHWFStid58iit4IPDLI/Da4cwdDmAHiQ==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "browser-resolve": "^1.11.3",
- "chalk": "^3.0.0",
- "graceful-fs": "^4.2.4",
- "jest-pnp-resolver": "^1.2.1",
- "read-pkg-up": "^7.0.1",
- "realpath-native": "^2.0.0",
- "resolve": "^1.17.0",
- "slash": "^3.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "find-up": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
- "dev": true,
- "requires": {
- "locate-path": "^5.0.0",
- "path-exists": "^4.0.0"
- }
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "locate-path": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
- "dev": true,
- "requires": {
- "p-locate": "^4.1.0"
- }
- },
- "p-limit": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
- "dev": true,
- "requires": {
- "p-try": "^2.0.0"
- }
- },
- "p-locate": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
- "dev": true,
- "requires": {
- "p-limit": "^2.2.0"
- }
- },
- "p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
- "dev": true
- },
- "path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
- "dev": true
- },
- "read-pkg": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz",
- "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==",
- "dev": true,
- "requires": {
- "@types/normalize-package-data": "^2.4.0",
- "normalize-package-data": "^2.5.0",
- "parse-json": "^5.0.0",
- "type-fest": "^0.6.0"
- },
- "dependencies": {
- "type-fest": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz",
- "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==",
- "dev": true
- }
- }
- },
- "read-pkg-up": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz",
- "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==",
- "dev": true,
- "requires": {
- "find-up": "^4.1.0",
- "read-pkg": "^5.2.0",
- "type-fest": "^0.8.1"
- }
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- },
- "type-fest": {
- "version": "0.8.1",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz",
- "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==",
- "dev": true
- }
- }
- },
- "jest-resolve-dependencies": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-25.5.4.tgz",
- "integrity": "sha512-yFmbPd+DAQjJQg88HveObcGBA32nqNZ02fjYmtL16t1xw9bAttSn5UGRRhzMHIQbsep7znWvAvnD4kDqOFM0Uw==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "jest-regex-util": "^25.2.6",
- "jest-snapshot": "^25.5.1"
- }
- },
- "jest-runner": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-25.5.4.tgz",
- "integrity": "sha512-V/2R7fKZo6blP8E9BL9vJ8aTU4TH2beuqGNxHbxi6t14XzTb+x90B3FRgdvuHm41GY8ch4xxvf0ATH4hdpjTqg==",
- "dev": true,
- "requires": {
- "@jest/console": "^25.5.0",
- "@jest/environment": "^25.5.0",
- "@jest/test-result": "^25.5.0",
- "@jest/types": "^25.5.0",
- "chalk": "^3.0.0",
- "exit": "^0.1.2",
- "graceful-fs": "^4.2.4",
- "jest-config": "^25.5.4",
- "jest-docblock": "^25.3.0",
- "jest-haste-map": "^25.5.1",
- "jest-jasmine2": "^25.5.4",
- "jest-leak-detector": "^25.5.0",
- "jest-message-util": "^25.5.0",
- "jest-resolve": "^25.5.1",
- "jest-runtime": "^25.5.4",
- "jest-util": "^25.5.0",
- "jest-worker": "^25.5.0",
- "source-map-support": "^0.5.6",
- "throat": "^5.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-runtime": {
- "version": "25.5.4",
- "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-25.5.4.tgz",
- "integrity": "sha512-RWTt8LeWh3GvjYtASH2eezkc8AehVoWKK20udV6n3/gC87wlTbE1kIA+opCvNWyyPeBs6ptYsc6nyHUb1GlUVQ==",
- "dev": true,
- "requires": {
- "@jest/console": "^25.5.0",
- "@jest/environment": "^25.5.0",
- "@jest/globals": "^25.5.2",
- "@jest/source-map": "^25.5.0",
- "@jest/test-result": "^25.5.0",
- "@jest/transform": "^25.5.1",
- "@jest/types": "^25.5.0",
- "@types/yargs": "^15.0.0",
- "chalk": "^3.0.0",
- "collect-v8-coverage": "^1.0.0",
- "exit": "^0.1.2",
- "glob": "^7.1.3",
- "graceful-fs": "^4.2.4",
- "jest-config": "^25.5.4",
- "jest-haste-map": "^25.5.1",
- "jest-message-util": "^25.5.0",
- "jest-mock": "^25.5.0",
- "jest-regex-util": "^25.2.6",
- "jest-resolve": "^25.5.1",
- "jest-snapshot": "^25.5.1",
- "jest-util": "^25.5.0",
- "jest-validate": "^25.5.0",
- "realpath-native": "^2.0.0",
- "slash": "^3.0.0",
- "strip-bom": "^4.0.0",
- "yargs": "^15.3.1"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "strip-bom": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz",
- "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-serializer": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.5.0.tgz",
- "integrity": "sha512-LxD8fY1lByomEPflwur9o4e2a5twSQ7TaVNLlFUuToIdoJuBt8tzHfCsZ42Ok6LkKXWzFWf3AGmheuLAA7LcCA==",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.2.4"
- }
- },
- "jest-snapshot": {
- "version": "25.5.1",
- "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-25.5.1.tgz",
- "integrity": "sha512-C02JE1TUe64p2v1auUJ2ze5vcuv32tkv9PyhEb318e8XOKF7MOyXdJ7kdjbvrp3ChPLU2usI7Rjxs97Dj5P0uQ==",
- "dev": true,
- "requires": {
- "@babel/types": "^7.0.0",
- "@jest/types": "^25.5.0",
- "@types/prettier": "^1.19.0",
- "chalk": "^3.0.0",
- "expect": "^25.5.0",
- "graceful-fs": "^4.2.4",
- "jest-diff": "^25.5.0",
- "jest-get-type": "^25.2.6",
- "jest-matcher-utils": "^25.5.0",
- "jest-message-util": "^25.5.0",
- "jest-resolve": "^25.5.1",
- "make-dir": "^3.0.0",
- "natural-compare": "^1.4.0",
- "pretty-format": "^25.5.0",
- "semver": "^6.3.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-util": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-25.5.0.tgz",
- "integrity": "sha512-KVlX+WWg1zUTB9ktvhsg2PXZVdkI1NBevOJSkTKYAyXyH4QSvh+Lay/e/v+bmaFfrkfx43xD8QTfgobzlEXdIA==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "chalk": "^3.0.0",
- "graceful-fs": "^4.2.4",
- "is-ci": "^2.0.0",
- "make-dir": "^3.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-validate": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-25.5.0.tgz",
- "integrity": "sha512-okUFKqhZIpo3jDdtUXUZ2LxGUZJIlfdYBvZb1aczzxrlyMlqdnnws9MOxezoLGhSaFc2XYaHNReNQfj5zPIWyQ==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "camelcase": "^5.3.1",
- "chalk": "^3.0.0",
- "jest-get-type": "^25.2.6",
- "leven": "^3.1.0",
- "pretty-format": "^25.5.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "camelcase": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
- "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
- "dev": true
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-watch-typeahead": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/jest-watch-typeahead/-/jest-watch-typeahead-0.5.0.tgz",
- "integrity": "sha512-4r36w9vU8+rdg48hj0Z7TvcSqVP6Ao8dk04grlHQNgduyCB0SqrI0xWIl85ZhXrzYvxQ0N5H+rRLAejkQzEHeQ==",
- "dev": true,
- "requires": {
- "ansi-escapes": "^4.2.1",
- "chalk": "^3.0.0",
- "jest-regex-util": "^25.2.1",
- "jest-watcher": "^25.2.4",
- "slash": "^3.0.0",
- "string-length": "^3.1.0",
- "strip-ansi": "^6.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
- "dev": true,
- "requires": {
- "ansi-regex": "^5.0.0"
- }
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-watcher": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-25.5.0.tgz",
- "integrity": "sha512-XrSfJnVASEl+5+bb51V0Q7WQx65dTSk7NL4yDdVjPnRNpM0hG+ncFmDYJo9O8jaSRcAitVbuVawyXCRoxGrT5Q==",
- "dev": true,
- "requires": {
- "@jest/test-result": "^25.5.0",
- "@jest/types": "^25.5.0",
- "ansi-escapes": "^4.2.1",
- "chalk": "^3.0.0",
- "jest-util": "^25.5.0",
- "string-length": "^3.1.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jest-worker": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-25.5.0.tgz",
- "integrity": "sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw==",
- "dev": true,
- "requires": {
- "merge-stream": "^2.0.0",
- "supports-color": "^7.0.0"
- },
- "dependencies": {
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "jpjs": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/jpjs/-/jpjs-1.2.1.tgz",
- "integrity": "sha512-GxJWybWU4NV0RNKi6EIqk6IRPOTqd/h+U7sbtyuD7yUISUzV78LdHnq2xkevJsTlz/EImux4sWj+wfMiwKLkiw==",
- "dev": true
- },
- "js-tokens": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
- "dev": true
- },
- "js-yaml": {
- "version": "3.14.0",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz",
- "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==",
- "dev": true,
- "requires": {
- "argparse": "^1.0.7",
- "esprima": "^4.0.0"
- }
- },
- "jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
- "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
- "dev": true
- },
- "jsdom": {
- "version": "15.2.1",
- "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-15.2.1.tgz",
- "integrity": "sha512-fAl1W0/7T2G5vURSyxBzrJ1LSdQn6Tr5UX/xD4PXDx/PDgwygedfW6El/KIj3xJ7FU61TTYnc/l/B7P49Eqt6g==",
- "dev": true,
- "requires": {
- "abab": "^2.0.0",
- "acorn": "^7.1.0",
- "acorn-globals": "^4.3.2",
- "array-equal": "^1.0.0",
- "cssom": "^0.4.1",
- "cssstyle": "^2.0.0",
- "data-urls": "^1.1.0",
- "domexception": "^1.0.1",
- "escodegen": "^1.11.1",
- "html-encoding-sniffer": "^1.0.2",
- "nwsapi": "^2.2.0",
- "parse5": "5.1.0",
- "pn": "^1.1.0",
- "request": "^2.88.0",
- "request-promise-native": "^1.0.7",
- "saxes": "^3.1.9",
- "symbol-tree": "^3.2.2",
- "tough-cookie": "^3.0.1",
- "w3c-hr-time": "^1.0.1",
- "w3c-xmlserializer": "^1.1.2",
- "webidl-conversions": "^4.0.2",
- "whatwg-encoding": "^1.0.5",
- "whatwg-mimetype": "^2.3.0",
- "whatwg-url": "^7.0.0",
- "ws": "^7.0.0",
- "xml-name-validator": "^3.0.0"
- }
- },
- "jsesc": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
- "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
- "dev": true
- },
- "json-parse-even-better-errors": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
- "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
- "dev": true
- },
- "json-schema": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
- "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
- "dev": true
- },
- "json-schema-traverse": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
- "dev": true
- },
- "json-stable-stringify-without-jsonify": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
- "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=",
- "dev": true
- },
- "json-stringify-safe": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
- "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
- "dev": true
- },
- "json5": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz",
- "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==",
- "dev": true,
- "requires": {
- "minimist": "^1.2.5"
- }
- },
- "jsonfile": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz",
- "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.6",
- "universalify": "^1.0.0"
- }
- },
- "jsprim": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
- "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
- "dev": true,
- "requires": {
- "assert-plus": "1.0.0",
- "extsprintf": "1.3.0",
- "json-schema": "0.2.3",
- "verror": "1.10.0"
- }
- },
- "jsx-ast-utils": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.4.1.tgz",
- "integrity": "sha512-z1xSldJ6imESSzOjd3NNkieVJKRlKYSOtMG8SFyCj2FIrvSaSuli/WjpBkEzCBoR9bYYYFgqJw61Xhu7Lcgk+w==",
- "dev": true,
- "requires": {
- "array-includes": "^3.1.1",
- "object.assign": "^4.1.0"
- }
- },
- "kind-of": {
- "version": "6.0.3",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
- "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
- "dev": true
- },
- "kleur": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
- "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
- "dev": true
- },
- "language-subtag-registry": {
- "version": "0.3.20",
- "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.20.tgz",
- "integrity": "sha512-KPMwROklF4tEx283Xw0pNKtfTj1gZ4UByp4EsIFWLgBavJltF4TiYPc39k06zSTsLzxTVXXDSpbwaQXaFB4Qeg==",
- "dev": true
- },
- "language-tags": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz",
- "integrity": "sha1-0yHbxNowuovzAk4ED6XBRmH5GTo=",
- "dev": true,
- "requires": {
- "language-subtag-registry": "~0.3.2"
- }
- },
- "leven": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
- "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==",
- "dev": true
- },
- "levn": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
- "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
- "dev": true,
- "requires": {
- "prelude-ls": "~1.1.2",
- "type-check": "~0.3.2"
- }
- },
- "lines-and-columns": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz",
- "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=",
- "dev": true
- },
- "load-json-file": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
- "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.2",
- "parse-json": "^2.2.0",
- "pify": "^2.0.0",
- "strip-bom": "^3.0.0"
- },
- "dependencies": {
- "parse-json": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
- "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
- "dev": true,
- "requires": {
- "error-ex": "^1.2.0"
- }
- }
- }
- },
- "locate-path": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
- "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
- "dev": true,
- "requires": {
- "p-locate": "^2.0.0",
- "path-exists": "^3.0.0"
- }
- },
- "lodash": {
- "version": "4.17.20",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz",
- "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==",
- "dev": true
- },
- "lodash.debounce": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
- "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=",
- "dev": true
- },
- "lodash.flatmap": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/lodash.flatmap/-/lodash.flatmap-4.5.0.tgz",
- "integrity": "sha1-74y/QI9uSCaGYzRTBcaswLd4cC4="
- },
- "lodash.flatten": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
- "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8="
- },
- "lodash.memoize": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
- "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=",
- "dev": true
- },
- "lodash.merge": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
- "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
- "dev": true
- },
- "lodash.sortby": {
- "version": "4.7.0",
- "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz",
- "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=",
- "dev": true
- },
- "log-symbols": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz",
- "integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==",
- "dev": true,
- "requires": {
- "chalk": "^2.4.2"
- },
- "dependencies": {
- "chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
- "dev": true,
- "requires": {
- "ansi-styles": "^3.2.1",
- "escape-string-regexp": "^1.0.5",
- "supports-color": "^5.3.0"
- }
- }
- }
- },
- "log-update": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/log-update/-/log-update-2.3.0.tgz",
- "integrity": "sha1-iDKP19HOeTiykoN0bwsbwSayRwg=",
- "dev": true,
- "requires": {
- "ansi-escapes": "^3.0.0",
- "cli-cursor": "^2.0.0",
- "wrap-ansi": "^3.0.1"
- },
- "dependencies": {
- "ansi-escapes": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
- "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==",
- "dev": true
- },
- "ansi-regex": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
- "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
- "dev": true
- },
- "cli-cursor": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
- "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
- "dev": true,
- "requires": {
- "restore-cursor": "^2.0.0"
- }
- },
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
- "dev": true
- },
- "mimic-fn": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
- "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
- "dev": true
- },
- "onetime": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
- "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
- "dev": true,
- "requires": {
- "mimic-fn": "^1.0.0"
- }
- },
- "restore-cursor": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
- "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
- "dev": true,
- "requires": {
- "onetime": "^2.0.0",
- "signal-exit": "^3.0.2"
- }
- },
- "string-width": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
- "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
- "dev": true,
- "requires": {
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^4.0.0"
- }
- },
- "strip-ansi": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
- "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
- "dev": true,
- "requires": {
- "ansi-regex": "^3.0.0"
- }
- },
- "wrap-ansi": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-3.0.1.tgz",
- "integrity": "sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo=",
- "dev": true,
- "requires": {
- "string-width": "^2.1.1",
- "strip-ansi": "^4.0.0"
- }
- }
- }
- },
- "lolex": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz",
- "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==",
- "dev": true,
- "requires": {
- "@sinonjs/commons": "^1.7.0"
- }
- },
- "loose-envify": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
- "dev": true,
- "requires": {
- "js-tokens": "^3.0.0 || ^4.0.0"
- }
- },
- "lower-case": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.1.tgz",
- "integrity": "sha512-LiWgfDLLb1dwbFQZsSglpRj+1ctGnayXz3Uv0/WO8n558JycT5fg6zkNcnW0G68Nn0aEldTFeEfmjCfmqry/rQ==",
- "dev": true,
- "requires": {
- "tslib": "^1.10.0"
- },
- "dependencies": {
- "tslib": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
- "dev": true
- }
- }
- },
- "magic-string": {
- "version": "0.25.7",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.7.tgz",
- "integrity": "sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==",
- "dev": true,
- "requires": {
- "sourcemap-codec": "^1.4.4"
- }
- },
- "make-dir": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
- "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
- "dev": true,
- "requires": {
- "semver": "^6.0.0"
- },
- "dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "dev": true
- }
- }
- },
- "make-error": {
- "version": "1.3.6",
- "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
- "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
- "dev": true
- },
- "makeerror": {
- "version": "1.0.11",
- "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz",
- "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=",
- "dev": true,
- "requires": {
- "tmpl": "1.0.x"
- }
- },
- "map-cache": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz",
- "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=",
- "dev": true
- },
- "map-visit": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz",
- "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=",
- "dev": true,
- "requires": {
- "object-visit": "^1.0.0"
- }
- },
- "merge-stream": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
- "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
- "dev": true
- },
- "micromatch": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz",
- "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==",
- "dev": true,
- "requires": {
- "braces": "^3.0.1",
- "picomatch": "^2.0.5"
- }
- },
- "mime-db": {
- "version": "1.44.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
- "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg=="
- },
- "mime-types": {
- "version": "2.1.27",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",
- "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",
- "requires": {
- "mime-db": "1.44.0"
- }
- },
- "mimic-fn": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
- "dev": true
- },
- "minimatch": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
- "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "dev": true,
- "requires": {
- "brace-expansion": "^1.1.7"
- }
- },
- "minimist": {
- "version": "1.2.5",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
- "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
- "dev": true
- },
- "mixin-deep": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz",
- "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==",
- "dev": true,
- "requires": {
- "for-in": "^1.0.2",
- "is-extendable": "^1.0.1"
- },
- "dependencies": {
- "is-extendable": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz",
- "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",
- "dev": true,
- "requires": {
- "is-plain-object": "^2.0.4"
- }
- }
- }
- },
- "mkdirp": {
- "version": "0.5.5",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
- "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
- "dev": true,
- "requires": {
- "minimist": "^1.2.5"
- }
- },
- "mri": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/mri/-/mri-1.1.6.tgz",
- "integrity": "sha512-oi1b3MfbyGa7FJMP9GmLTttni5JoICpYBRlq+x5V16fZbLsnL9N3wFqqIm/nIG43FjUFkFh9Epzp/kzUGUnJxQ==",
- "dev": true
- },
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
- "dev": true
- },
- "mute-stream": {
- "version": "0.0.8",
- "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",
- "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==",
- "dev": true
- },
- "nanomatch": {
- "version": "1.2.13",
- "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
- "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==",
- "dev": true,
- "requires": {
- "arr-diff": "^4.0.0",
- "array-unique": "^0.3.2",
- "define-property": "^2.0.2",
- "extend-shallow": "^3.0.2",
- "fragment-cache": "^0.2.1",
- "is-windows": "^1.0.2",
- "kind-of": "^6.0.2",
- "object.pick": "^1.3.0",
- "regex-not": "^1.0.0",
- "snapdragon": "^0.8.1",
- "to-regex": "^3.0.1"
- }
- },
- "natural-compare": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
- "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=",
- "dev": true
- },
- "nice-try": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
- "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
- "dev": true
- },
- "no-case": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.3.tgz",
- "integrity": "sha512-ehY/mVQCf9BL0gKfsJBvFJen+1V//U+0HQMPrWct40ixE4jnv0bfvxDbWtAHL9EcaPEOJHVVYKoQn1TlZUB8Tw==",
- "dev": true,
- "requires": {
- "lower-case": "^2.0.1",
- "tslib": "^1.10.0"
- },
- "dependencies": {
- "tslib": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
- "dev": true
- }
- }
- },
- "node-int64": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",
- "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=",
- "dev": true
- },
- "node-modules-regexp": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz",
- "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=",
- "dev": true
- },
- "node-notifier": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-6.0.0.tgz",
- "integrity": "sha512-SVfQ/wMw+DesunOm5cKqr6yDcvUTDl/yc97ybGHMrteNEY6oekXpNpS3lZwgLlwz0FLgHoiW28ZpmBHUDg37cw==",
- "dev": true,
- "optional": true,
- "requires": {
- "growly": "^1.3.0",
- "is-wsl": "^2.1.1",
- "semver": "^6.3.0",
- "shellwords": "^0.1.1",
- "which": "^1.3.1"
- },
- "dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "dev": true,
- "optional": true
- }
- }
- },
- "node-releases": {
- "version": "1.1.64",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.64.tgz",
- "integrity": "sha512-Iec8O9166/x2HRMJyLLLWkd0sFFLrFNy+Xf+JQfSQsdBJzPcHpNl3JQ9gD4j+aJxmCa25jNsIbM4bmACtSbkSg==",
- "dev": true
- },
- "normalize-package-data": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
- "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
- "dev": true,
- "requires": {
- "hosted-git-info": "^2.1.4",
- "resolve": "^1.10.0",
- "semver": "2 || 3 || 4 || 5",
- "validate-npm-package-license": "^3.0.1"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "dev": true
- }
- }
- },
- "normalize-path": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
- "dev": true
- },
- "npm-run-path": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
- "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
- "dev": true,
- "requires": {
- "path-key": "^3.0.0"
- },
- "dependencies": {
- "path-key": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
- "dev": true
- }
- }
- },
- "nwsapi": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz",
- "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==",
- "dev": true
- },
- "oauth-sign": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
- "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==",
- "dev": true
- },
- "object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
- "dev": true
- },
- "object-copy": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz",
- "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=",
- "dev": true,
- "requires": {
- "copy-descriptor": "^0.1.0",
- "define-property": "^0.2.5",
- "kind-of": "^3.0.3"
- },
- "dependencies": {
- "define-property": {
- "version": "0.2.5",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
- "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
- "dev": true,
- "requires": {
- "is-descriptor": "^0.1.0"
- }
- },
- "kind-of": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.5"
- }
- }
- }
- },
- "object-inspect": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz",
- "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==",
- "dev": true
- },
- "object-keys": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
- "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
- "dev": true
- },
- "object-visit": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz",
- "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=",
- "dev": true,
- "requires": {
- "isobject": "^3.0.0"
- }
- },
- "object.assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.1.tgz",
- "integrity": "sha512-VT/cxmx5yaoHSOTSyrCygIDFco+RsibY2NM0a4RdEeY/4KgqezwFtK1yr3U67xYhqJSlASm2pKhLVzPj2lr4bA==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.18.0-next.0",
- "has-symbols": "^1.0.1",
- "object-keys": "^1.1.1"
- }
- },
- "object.entries": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.2.tgz",
- "integrity": "sha512-BQdB9qKmb/HyNdMNWVr7O3+z5MUIx3aiegEIJqjMBbBf0YT9RRxTJSim4mzFqtyr7PDAHigq0N9dO0m0tRakQA==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.17.5",
- "has": "^1.0.3"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "object.fromentries": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.2.tgz",
- "integrity": "sha512-r3ZiBH7MQppDJVLx6fhD618GKNG40CZYH9wgwdhKxBDDbQgjeWGGd4AtkZad84d291YxvWe7bJGuE65Anh0dxQ==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.17.0-next.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "object.pick": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz",
- "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=",
- "dev": true,
- "requires": {
- "isobject": "^3.0.1"
- }
- },
- "object.values": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.1.tgz",
- "integrity": "sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.17.0-next.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "dev": true,
- "requires": {
- "wrappy": "1"
- }
- },
- "onetime": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
- "dev": true,
- "requires": {
- "mimic-fn": "^2.1.0"
- }
- },
- "optionator": {
- "version": "0.8.3",
- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz",
- "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==",
- "dev": true,
- "requires": {
- "deep-is": "~0.1.3",
- "fast-levenshtein": "~2.0.6",
- "levn": "~0.3.0",
- "prelude-ls": "~1.1.2",
- "type-check": "~0.3.2",
- "word-wrap": "~1.2.3"
- }
- },
- "ora": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/ora/-/ora-4.1.1.tgz",
- "integrity": "sha512-sjYP8QyVWBpBZWD6Vr1M/KwknSw6kJOz41tvGMlwWeClHBtYKTbHMki1PsLZnxKpXMPbTKv9b3pjQu3REib96A==",
- "dev": true,
- "requires": {
- "chalk": "^3.0.0",
- "cli-cursor": "^3.1.0",
- "cli-spinners": "^2.2.0",
- "is-interactive": "^1.0.0",
- "log-symbols": "^3.0.0",
- "mute-stream": "0.0.8",
- "strip-ansi": "^6.0.0",
- "wcwidth": "^1.0.1"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "chalk": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
- "dev": true,
- "requires": {
- "ansi-regex": "^5.0.0"
- }
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "os-tmpdir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
- "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
- "dev": true
- },
- "p-each-series": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.1.0.tgz",
- "integrity": "sha512-ZuRs1miPT4HrjFa+9fRfOFXxGJfORgelKV9f9nNOWw2gl6gVsRaVDOQP0+MI0G0wGKns1Yacsu0GjOFbTK0JFQ==",
- "dev": true
- },
- "p-finally": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
- "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
- "dev": true
- },
- "p-limit": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
- "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
- "dev": true,
- "requires": {
- "p-try": "^1.0.0"
- }
- },
- "p-locate": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
- "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
- "dev": true,
- "requires": {
- "p-limit": "^1.1.0"
- }
- },
- "p-try": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
- "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
- "dev": true
- },
- "parent-module": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
- "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
- "dev": true,
- "requires": {
- "callsites": "^3.0.0"
- }
- },
- "parse-json": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz",
- "integrity": "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.0.0",
- "error-ex": "^1.3.1",
- "json-parse-even-better-errors": "^2.3.0",
- "lines-and-columns": "^1.1.6"
- }
- },
- "parse5": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz",
- "integrity": "sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==",
- "dev": true
- },
- "pascal-case": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.1.tgz",
- "integrity": "sha512-XIeHKqIrsquVTQL2crjq3NfJUxmdLasn3TYOU0VBM+UX2a6ztAWBlJQBePLGY7VHW8+2dRadeIPK5+KImwTxQA==",
- "dev": true,
- "requires": {
- "no-case": "^3.0.3",
- "tslib": "^1.10.0"
- },
- "dependencies": {
- "tslib": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
- "dev": true
- }
- }
- },
- "pascalcase": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz",
- "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=",
- "dev": true
- },
- "path-exists": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
- "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
- "dev": true
- },
- "path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
- "dev": true
- },
- "path-key": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
- "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
- "dev": true
- },
- "path-parse": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
- "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
- "dev": true
- },
- "path-type": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
- "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
- "dev": true
- },
- "performance-now": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
- "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
- "dev": true
- },
- "picomatch": {
- "version": "2.2.2",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz",
- "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==",
- "dev": true
- },
- "pify": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
- "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
- "dev": true
- },
- "pirates": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz",
- "integrity": "sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==",
- "dev": true,
- "requires": {
- "node-modules-regexp": "^1.0.0"
- }
- },
- "pkg-dir": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz",
- "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=",
- "dev": true,
- "requires": {
- "find-up": "^2.1.0"
- }
- },
- "pn": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz",
- "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==",
- "dev": true
- },
- "posix-character-classes": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
- "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=",
- "dev": true
- },
- "prelude-ls": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
- "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
- "dev": true
- },
- "prettier": {
- "version": "1.19.1",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz",
- "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==",
- "dev": true
- },
- "prettier-linter-helpers": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",
- "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==",
- "dev": true,
- "requires": {
- "fast-diff": "^1.1.2"
- }
- },
- "pretty-format": {
- "version": "25.5.0",
- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-25.5.0.tgz",
- "integrity": "sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ==",
- "dev": true,
- "requires": {
- "@jest/types": "^25.5.0",
- "ansi-regex": "^5.0.0",
- "ansi-styles": "^4.0.0",
- "react-is": "^16.12.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- }
- }
- },
- "progress": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
- "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
- "dev": true
- },
- "progress-estimator": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/progress-estimator/-/progress-estimator-0.2.2.tgz",
- "integrity": "sha512-GF76Ac02MTJD6o2nMNtmtOFjwWCnHcvXyn5HOWPQnEMO8OTLw7LAvNmrwe8LmdsB+eZhwUu9fX/c9iQnBxWaFA==",
- "dev": true,
- "requires": {
- "chalk": "^2.4.1",
- "cli-spinners": "^1.3.1",
- "humanize-duration": "^3.15.3",
- "log-update": "^2.3.0"
- },
- "dependencies": {
- "chalk": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
- "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
- "dev": true,
- "requires": {
- "ansi-styles": "^3.2.1",
- "escape-string-regexp": "^1.0.5",
- "supports-color": "^5.3.0"
- }
- },
- "cli-spinners": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-1.3.1.tgz",
- "integrity": "sha512-1QL4544moEsDVH9T/l6Cemov/37iv1RtoKf7NJ04A60+4MREXNfx/QvavbH6QoGdsD4N4Mwy49cmaINR/o2mdg==",
- "dev": true
- }
- }
- },
- "prompts": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.3.2.tgz",
- "integrity": "sha512-Q06uKs2CkNYVID0VqwfAl9mipo99zkBv/n2JtWY89Yxa3ZabWSrs0e2KTudKVa3peLUvYXMefDqIleLPVUBZMA==",
- "dev": true,
- "requires": {
- "kleur": "^3.0.3",
- "sisteransi": "^1.0.4"
- }
- },
- "prop-types": {
- "version": "15.7.2",
- "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz",
- "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==",
- "dev": true,
- "requires": {
- "loose-envify": "^1.4.0",
- "object-assign": "^4.1.1",
- "react-is": "^16.8.1"
- }
- },
- "psl": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
- "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==",
- "dev": true
- },
- "pump": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
- "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
- "dev": true,
- "requires": {
- "end-of-stream": "^1.1.0",
- "once": "^1.3.1"
- }
- },
- "punycode": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
- "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
- "dev": true
- },
- "qs": {
- "version": "6.5.2",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
- "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==",
- "dev": true
- },
- "randombytes": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
- "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
- "dev": true,
- "requires": {
- "safe-buffer": "^5.1.0"
- }
- },
- "react-is": {
- "version": "16.13.1",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
- "dev": true
- },
- "read-pkg": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
- "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=",
- "dev": true,
- "requires": {
- "load-json-file": "^2.0.0",
- "normalize-package-data": "^2.3.2",
- "path-type": "^2.0.0"
- },
- "dependencies": {
- "path-type": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz",
- "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=",
- "dev": true,
- "requires": {
- "pify": "^2.0.0"
- }
- }
- }
- },
- "read-pkg-up": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz",
- "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=",
- "dev": true,
- "requires": {
- "find-up": "^2.0.0",
- "read-pkg": "^2.0.0"
- }
- },
- "realpath-native": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-2.0.0.tgz",
- "integrity": "sha512-v1SEYUOXXdbBZK8ZuNgO4TBjamPsiSgcFr0aP+tEKpQZK8vooEUqV6nm6Cv502mX4NF2EfsnVqtNAHG+/6Ur1Q==",
- "dev": true
- },
- "rechoir": {
- "version": "0.6.2",
- "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
- "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=",
- "dev": true,
- "requires": {
- "resolve": "^1.1.6"
- }
- },
- "regenerate": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.1.tgz",
- "integrity": "sha512-j2+C8+NtXQgEKWk49MMP5P/u2GhnahTtVkRIHr5R5lVRlbKvmQ+oS+A5aLKWp2ma5VkT8sh6v+v4hbH0YHR66A==",
- "dev": true
- },
- "regenerate-unicode-properties": {
- "version": "8.2.0",
- "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz",
- "integrity": "sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA==",
- "dev": true,
- "requires": {
- "regenerate": "^1.4.0"
- }
- },
- "regenerator-runtime": {
- "version": "0.13.7",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz",
- "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==",
- "dev": true
- },
- "regenerator-transform": {
- "version": "0.14.5",
- "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.5.tgz",
- "integrity": "sha512-eOf6vka5IO151Jfsw2NO9WpGX58W6wWmefK3I1zEGr0lOD0u8rwPaNqQL1aRxUaxLeKO3ArNh3VYg1KbaD+FFw==",
- "dev": true,
- "requires": {
- "@babel/runtime": "^7.8.4"
- }
- },
- "regex-not": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz",
- "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==",
- "dev": true,
- "requires": {
- "extend-shallow": "^3.0.2",
- "safe-regex": "^1.1.0"
- }
- },
- "regexp.prototype.flags": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz",
- "integrity": "sha512-2+Q0C5g951OlYlJz6yu5/M33IcsESLlLfsyIaLJaG4FA2r4yP8MvVMJUUP/fVBkSpbbbZlS5gynbEWLipiiXiQ==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.17.0-next.1"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "regexpp": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz",
- "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==",
- "dev": true
- },
- "regexpu-core": {
- "version": "4.7.1",
- "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.1.tgz",
- "integrity": "sha512-ywH2VUraA44DZQuRKzARmw6S66mr48pQVva4LBeRhcOltJ6hExvWly5ZjFLYo67xbIxb6W1q4bAGtgfEl20zfQ==",
- "dev": true,
- "requires": {
- "regenerate": "^1.4.0",
- "regenerate-unicode-properties": "^8.2.0",
- "regjsgen": "^0.5.1",
- "regjsparser": "^0.6.4",
- "unicode-match-property-ecmascript": "^1.0.4",
- "unicode-match-property-value-ecmascript": "^1.2.0"
- }
- },
- "regjsgen": {
- "version": "0.5.2",
- "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz",
- "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==",
- "dev": true
- },
- "regjsparser": {
- "version": "0.6.4",
- "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.4.tgz",
- "integrity": "sha512-64O87/dPDgfk8/RQqC4gkZoGyyWFIEUTTh80CU6CWuK5vkCGyekIx+oKcEIYtP/RAxSQltCZHCNu/mdd7fqlJw==",
- "dev": true,
- "requires": {
- "jsesc": "~0.5.0"
- },
- "dependencies": {
- "jsesc": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz",
- "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=",
- "dev": true
- }
- }
- },
- "remove-trailing-separator": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
- "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=",
- "dev": true
- },
- "repeat-element": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz",
- "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==",
- "dev": true
- },
- "repeat-string": {
- "version": "1.6.1",
- "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",
- "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=",
- "dev": true
- },
- "request": {
- "version": "2.88.2",
- "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
- "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
- "dev": true,
- "requires": {
- "aws-sign2": "~0.7.0",
- "aws4": "^1.8.0",
- "caseless": "~0.12.0",
- "combined-stream": "~1.0.6",
- "extend": "~3.0.2",
- "forever-agent": "~0.6.1",
- "form-data": "~2.3.2",
- "har-validator": "~5.1.3",
- "http-signature": "~1.2.0",
- "is-typedarray": "~1.0.0",
- "isstream": "~0.1.2",
- "json-stringify-safe": "~5.0.1",
- "mime-types": "~2.1.19",
- "oauth-sign": "~0.9.0",
- "performance-now": "^2.1.0",
- "qs": "~6.5.2",
- "safe-buffer": "^5.1.2",
- "tough-cookie": "~2.5.0",
- "tunnel-agent": "^0.6.0",
- "uuid": "^3.3.2"
- },
- "dependencies": {
- "form-data": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
- "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
- "dev": true,
- "requires": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.6",
- "mime-types": "^2.1.12"
- }
- },
- "tough-cookie": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
- "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
- "dev": true,
- "requires": {
- "psl": "^1.1.28",
- "punycode": "^2.1.1"
- }
- },
- "uuid": {
- "version": "3.4.0",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
- "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
- "dev": true
- }
- }
- },
- "request-promise-core": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz",
- "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==",
- "dev": true,
- "requires": {
- "lodash": "^4.17.19"
- }
- },
- "request-promise-native": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz",
- "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==",
- "dev": true,
- "requires": {
- "request-promise-core": "1.1.4",
- "stealthy-require": "^1.1.1",
- "tough-cookie": "^2.3.3"
- },
- "dependencies": {
- "tough-cookie": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
- "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
- "dev": true,
- "requires": {
- "psl": "^1.1.28",
- "punycode": "^2.1.1"
- }
- }
- }
- },
- "require-directory": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
- "dev": true
- },
- "require-main-filename": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
- "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
- "dev": true
- },
- "resolve": {
- "version": "1.18.1",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz",
- "integrity": "sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==",
- "dev": true,
- "requires": {
- "is-core-module": "^2.0.0",
- "path-parse": "^1.0.6"
- }
- },
- "resolve-cwd": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz",
- "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==",
- "dev": true,
- "requires": {
- "resolve-from": "^5.0.0"
- },
- "dependencies": {
- "resolve-from": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
- "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
- "dev": true
- }
- }
- },
- "resolve-from": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
- "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
- "dev": true
- },
- "resolve-url": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz",
- "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=",
- "dev": true
- },
- "restore-cursor": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
- "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
- "dev": true,
- "requires": {
- "onetime": "^5.1.0",
- "signal-exit": "^3.0.2"
- }
- },
- "ret": {
- "version": "0.1.15",
- "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz",
- "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==",
- "dev": true
- },
- "rimraf": {
- "version": "2.6.3",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
- "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
- "dev": true,
- "requires": {
- "glob": "^7.1.3"
- }
- },
- "rollup": {
- "version": "1.32.1",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.32.1.tgz",
- "integrity": "sha512-/2HA0Ec70TvQnXdzynFffkjA6XN+1e2pEv/uKS5Ulca40g2L7KuOE3riasHoNVHOsFD5KKZgDsMk1CP3Tw9s+A==",
- "dev": true,
- "requires": {
- "@types/estree": "*",
- "@types/node": "*",
- "acorn": "^7.1.0"
- }
- },
- "rollup-plugin-sourcemaps": {
- "version": "0.6.3",
- "resolved": "https://registry.npmjs.org/rollup-plugin-sourcemaps/-/rollup-plugin-sourcemaps-0.6.3.tgz",
- "integrity": "sha512-paFu+nT1xvuO1tPFYXGe+XnQvg4Hjqv/eIhG8i5EspfYYPBKL57X7iVbfv55aNVASg3dzWvES9dmWsL2KhfByw==",
- "dev": true,
- "requires": {
- "@rollup/pluginutils": "^3.0.9",
- "source-map-resolve": "^0.6.0"
- },
- "dependencies": {
- "source-map-resolve": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz",
- "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==",
- "dev": true,
- "requires": {
- "atob": "^2.1.2",
- "decode-uri-component": "^0.2.0"
- }
- }
- }
- },
- "rollup-plugin-terser": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-5.3.1.tgz",
- "integrity": "sha512-1pkwkervMJQGFYvM9nscrUoncPwiKR/K+bHdjv6PFgRo3cgPHoRT83y2Aa3GvINj4539S15t/tpFPb775TDs6w==",
- "dev": true,
- "requires": {
- "@babel/code-frame": "^7.5.5",
- "jest-worker": "^24.9.0",
- "rollup-pluginutils": "^2.8.2",
- "serialize-javascript": "^4.0.0",
- "terser": "^4.6.2"
- },
- "dependencies": {
- "jest-worker": {
- "version": "24.9.0",
- "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz",
- "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==",
- "dev": true,
- "requires": {
- "merge-stream": "^2.0.0",
- "supports-color": "^6.1.0"
- }
- },
- "supports-color": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz",
- "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==",
- "dev": true,
- "requires": {
- "has-flag": "^3.0.0"
- }
- }
- }
- },
- "rollup-plugin-typescript2": {
- "version": "0.27.3",
- "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.27.3.tgz",
- "integrity": "sha512-gmYPIFmALj9D3Ga1ZbTZAKTXq1JKlTQBtj299DXhqYz9cL3g/AQfUvbb2UhH+Nf++cCq941W2Mv7UcrcgLzJJg==",
- "dev": true,
- "requires": {
- "@rollup/pluginutils": "^3.1.0",
- "find-cache-dir": "^3.3.1",
- "fs-extra": "8.1.0",
- "resolve": "1.17.0",
- "tslib": "2.0.1"
- },
- "dependencies": {
- "fs-extra": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
- "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.2.0",
- "jsonfile": "^4.0.0",
- "universalify": "^0.1.0"
- }
- },
- "jsonfile": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
- "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.6"
- }
- },
- "resolve": {
- "version": "1.17.0",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz",
- "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==",
- "dev": true,
- "requires": {
- "path-parse": "^1.0.6"
- }
- },
- "tslib": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.1.tgz",
- "integrity": "sha512-SgIkNheinmEBgx1IUNirK0TUD4X9yjjBRTqqjggWCU3pUEqIk3/Uwl3yRixYKT6WjQuGiwDv4NomL3wqRCj+CQ==",
- "dev": true
- },
- "universalify": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
- "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
- "dev": true
- }
- }
- },
- "rollup-pluginutils": {
- "version": "2.8.2",
- "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",
- "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==",
- "dev": true,
- "requires": {
- "estree-walker": "^0.6.1"
- },
- "dependencies": {
- "estree-walker": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz",
- "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==",
- "dev": true
- }
- }
- },
- "rsvp": {
- "version": "4.8.5",
- "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz",
- "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==",
- "dev": true
- },
- "run-async": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",
- "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==",
- "dev": true
- },
- "rxjs": {
- "version": "6.6.3",
- "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.3.tgz",
- "integrity": "sha512-trsQc+xYYXZ3urjOiJOuCOa5N3jAZ3eiSpQB5hIT8zGlL2QfnHLJ2r7GMkBGuIausdJN1OneaI6gQlsqNHHmZQ==",
- "dev": true,
- "requires": {
- "tslib": "^1.9.0"
- },
- "dependencies": {
- "tslib": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
- "dev": true
- }
- }
- },
- "sade": {
- "version": "1.7.4",
- "resolved": "https://registry.npmjs.org/sade/-/sade-1.7.4.tgz",
- "integrity": "sha512-y5yauMD93rX840MwUJr7C1ysLFBgMspsdTo4UVrDg3fXDvtwOyIqykhVAAm6fk/3au77773itJStObgK+LKaiA==",
- "dev": true,
- "requires": {
- "mri": "^1.1.0"
- }
- },
- "safe-buffer": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
- "dev": true
- },
- "safe-regex": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz",
- "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=",
- "dev": true,
- "requires": {
- "ret": "~0.1.10"
- }
- },
- "safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
- "dev": true
- },
- "sane": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz",
- "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==",
- "dev": true,
- "requires": {
- "@cnakazawa/watch": "^1.0.3",
- "anymatch": "^2.0.0",
- "capture-exit": "^2.0.0",
- "exec-sh": "^0.3.2",
- "execa": "^1.0.0",
- "fb-watchman": "^2.0.0",
- "micromatch": "^3.1.4",
- "minimist": "^1.1.1",
- "walker": "~1.0.5"
- },
- "dependencies": {
- "anymatch": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz",
- "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==",
- "dev": true,
- "requires": {
- "micromatch": "^3.1.4",
- "normalize-path": "^2.1.1"
- }
- },
- "braces": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz",
- "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==",
- "dev": true,
- "requires": {
- "arr-flatten": "^1.1.0",
- "array-unique": "^0.3.2",
- "extend-shallow": "^2.0.1",
- "fill-range": "^4.0.0",
- "isobject": "^3.0.1",
- "repeat-element": "^1.1.2",
- "snapdragon": "^0.8.1",
- "snapdragon-node": "^2.0.1",
- "split-string": "^3.0.2",
- "to-regex": "^3.0.1"
- },
- "dependencies": {
- "extend-shallow": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
- "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
- "dev": true,
- "requires": {
- "is-extendable": "^0.1.0"
- }
- }
- }
- },
- "execa": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
- "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==",
- "dev": true,
- "requires": {
- "cross-spawn": "^6.0.0",
- "get-stream": "^4.0.0",
- "is-stream": "^1.1.0",
- "npm-run-path": "^2.0.0",
- "p-finally": "^1.0.0",
- "signal-exit": "^3.0.0",
- "strip-eof": "^1.0.0"
- }
- },
- "fill-range": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz",
- "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=",
- "dev": true,
- "requires": {
- "extend-shallow": "^2.0.1",
- "is-number": "^3.0.0",
- "repeat-string": "^1.6.1",
- "to-regex-range": "^2.1.0"
- },
- "dependencies": {
- "extend-shallow": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
- "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
- "dev": true,
- "requires": {
- "is-extendable": "^0.1.0"
- }
- }
- }
- },
- "get-stream": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
- "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
- "dev": true,
- "requires": {
- "pump": "^3.0.0"
- }
- },
- "is-number": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
- "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=",
- "dev": true,
- "requires": {
- "kind-of": "^3.0.2"
- },
- "dependencies": {
- "kind-of": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.5"
- }
- }
- }
- },
- "is-stream": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
- "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=",
- "dev": true
- },
- "micromatch": {
- "version": "3.1.10",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz",
- "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==",
- "dev": true,
- "requires": {
- "arr-diff": "^4.0.0",
- "array-unique": "^0.3.2",
- "braces": "^2.3.1",
- "define-property": "^2.0.2",
- "extend-shallow": "^3.0.2",
- "extglob": "^2.0.4",
- "fragment-cache": "^0.2.1",
- "kind-of": "^6.0.2",
- "nanomatch": "^1.2.9",
- "object.pick": "^1.3.0",
- "regex-not": "^1.0.0",
- "snapdragon": "^0.8.1",
- "to-regex": "^3.0.2"
- }
- },
- "normalize-path": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz",
- "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=",
- "dev": true,
- "requires": {
- "remove-trailing-separator": "^1.0.1"
- }
- },
- "npm-run-path": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
- "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
- "dev": true,
- "requires": {
- "path-key": "^2.0.0"
- }
- },
- "to-regex-range": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz",
- "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=",
- "dev": true,
- "requires": {
- "is-number": "^3.0.0",
- "repeat-string": "^1.6.1"
- }
- }
- }
- },
- "saxes": {
- "version": "3.1.11",
- "resolved": "https://registry.npmjs.org/saxes/-/saxes-3.1.11.tgz",
- "integrity": "sha512-Ydydq3zC+WYDJK1+gRxRapLIED9PWeSuuS41wqyoRmzvhhh9nc+QQrVMKJYzJFULazeGhzSV0QleN2wD3boh2g==",
- "dev": true,
- "requires": {
- "xmlchars": "^2.1.1"
- }
- },
- "semver": {
- "version": "7.3.2",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
- "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==",
- "dev": true
- },
- "serialize-javascript": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz",
- "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==",
- "dev": true,
- "requires": {
- "randombytes": "^2.1.0"
- }
- },
- "set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
- "dev": true
- },
- "set-value": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz",
- "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==",
- "dev": true,
- "requires": {
- "extend-shallow": "^2.0.1",
- "is-extendable": "^0.1.1",
- "is-plain-object": "^2.0.3",
- "split-string": "^3.0.1"
- },
- "dependencies": {
- "extend-shallow": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
- "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
- "dev": true,
- "requires": {
- "is-extendable": "^0.1.0"
- }
- }
- }
- },
- "shebang-command": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
- "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
- "dev": true,
- "requires": {
- "shebang-regex": "^1.0.0"
- }
- },
- "shebang-regex": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
- "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
- "dev": true
- },
- "shelljs": {
- "version": "0.8.4",
- "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.4.tgz",
- "integrity": "sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ==",
- "dev": true,
- "requires": {
- "glob": "^7.0.0",
- "interpret": "^1.0.0",
- "rechoir": "^0.6.2"
- }
- },
- "shellwords": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz",
- "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==",
- "dev": true,
- "optional": true
- },
- "side-channel": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.3.tgz",
- "integrity": "sha512-A6+ByhlLkksFoUepsGxfj5x1gTSrs+OydsRptUxeNCabQpCFUvcwIczgOigI8vhY/OJCnPnyE9rGiwgvr9cS1g==",
- "dev": true,
- "requires": {
- "es-abstract": "^1.18.0-next.0",
- "object-inspect": "^1.8.0"
- }
- },
- "signal-exit": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
- "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==",
- "dev": true
- },
- "sisteransi": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
- "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
- "dev": true
- },
- "slash": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
- "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
- "dev": true
- },
- "slice-ansi": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz",
- "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==",
- "dev": true,
- "requires": {
- "ansi-styles": "^3.2.0",
- "astral-regex": "^1.0.0",
- "is-fullwidth-code-point": "^2.0.0"
- },
- "dependencies": {
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
- "dev": true
- }
- }
- },
- "snapdragon": {
- "version": "0.8.2",
- "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz",
- "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==",
- "dev": true,
- "requires": {
- "base": "^0.11.1",
- "debug": "^2.2.0",
- "define-property": "^0.2.5",
- "extend-shallow": "^2.0.1",
- "map-cache": "^0.2.2",
- "source-map": "^0.5.6",
- "source-map-resolve": "^0.5.0",
- "use": "^3.1.0"
- },
- "dependencies": {
- "debug": {
- "version": "2.6.9",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
- "dev": true,
- "requires": {
- "ms": "2.0.0"
- }
- },
- "define-property": {
- "version": "0.2.5",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
- "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
- "dev": true,
- "requires": {
- "is-descriptor": "^0.1.0"
- }
- },
- "extend-shallow": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
- "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=",
- "dev": true,
- "requires": {
- "is-extendable": "^0.1.0"
- }
- },
- "ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
- "dev": true
- }
- }
- },
- "snapdragon-node": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz",
- "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==",
- "dev": true,
- "requires": {
- "define-property": "^1.0.0",
- "isobject": "^3.0.0",
- "snapdragon-util": "^3.0.1"
- },
- "dependencies": {
- "define-property": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz",
- "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=",
- "dev": true,
- "requires": {
- "is-descriptor": "^1.0.0"
- }
- },
- "is-accessor-descriptor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
- "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
- "dev": true,
- "requires": {
- "kind-of": "^6.0.0"
- }
- },
- "is-data-descriptor": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
- "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
- "dev": true,
- "requires": {
- "kind-of": "^6.0.0"
- }
- },
- "is-descriptor": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",
- "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",
- "dev": true,
- "requires": {
- "is-accessor-descriptor": "^1.0.0",
- "is-data-descriptor": "^1.0.0",
- "kind-of": "^6.0.2"
- }
- }
- }
- },
- "snapdragon-util": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz",
- "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==",
- "dev": true,
- "requires": {
- "kind-of": "^3.2.0"
- },
- "dependencies": {
- "kind-of": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.5"
- }
- }
- }
- },
- "source-map": {
- "version": "0.5.7",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
- "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
- "dev": true
- },
- "source-map-resolve": {
- "version": "0.5.3",
- "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz",
- "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==",
- "dev": true,
- "requires": {
- "atob": "^2.1.2",
- "decode-uri-component": "^0.2.0",
- "resolve-url": "^0.2.1",
- "source-map-url": "^0.4.0",
- "urix": "^0.1.0"
- }
- },
- "source-map-support": {
- "version": "0.5.19",
- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz",
- "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==",
- "dev": true,
- "requires": {
- "buffer-from": "^1.0.0",
- "source-map": "^0.6.0"
- },
- "dependencies": {
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true
- }
- }
- },
- "source-map-url": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz",
- "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=",
- "dev": true
- },
- "sourcemap-codec": {
- "version": "1.4.8",
- "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz",
- "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
- "dev": true
- },
- "spdx-correct": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",
- "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",
- "dev": true,
- "requires": {
- "spdx-expression-parse": "^3.0.0",
- "spdx-license-ids": "^3.0.0"
- }
- },
- "spdx-exceptions": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz",
- "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==",
- "dev": true
- },
- "spdx-expression-parse": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
- "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
- "dev": true,
- "requires": {
- "spdx-exceptions": "^2.1.0",
- "spdx-license-ids": "^3.0.0"
- }
- },
- "spdx-license-ids": {
- "version": "3.0.6",
- "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.6.tgz",
- "integrity": "sha512-+orQK83kyMva3WyPf59k1+Y525csj5JejicWut55zeTWANuN17qSiSLUXWtzHeNWORSvT7GLDJ/E/XiIWoXBTw==",
- "dev": true
- },
- "split-string": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz",
- "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==",
- "dev": true,
- "requires": {
- "extend-shallow": "^3.0.0"
- }
- },
- "sprintf-js": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
- "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
- "dev": true
- },
- "sshpk": {
- "version": "1.16.1",
- "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
- "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
- "dev": true,
- "requires": {
- "asn1": "~0.2.3",
- "assert-plus": "^1.0.0",
- "bcrypt-pbkdf": "^1.0.0",
- "dashdash": "^1.12.0",
- "ecc-jsbn": "~0.1.1",
- "getpass": "^0.1.1",
- "jsbn": "~0.1.0",
- "safer-buffer": "^2.0.2",
- "tweetnacl": "~0.14.0"
- }
- },
- "stack-utils": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.2.tgz",
- "integrity": "sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==",
- "dev": true
- },
- "static-extend": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz",
- "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=",
- "dev": true,
- "requires": {
- "define-property": "^0.2.5",
- "object-copy": "^0.1.0"
- },
- "dependencies": {
- "define-property": {
- "version": "0.2.5",
- "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
- "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
- "dev": true,
- "requires": {
- "is-descriptor": "^0.1.0"
- }
- }
- }
- },
- "stealthy-require": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz",
- "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=",
- "dev": true
- },
- "stream-equal": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/stream-equal/-/stream-equal-2.0.1.tgz",
- "integrity": "sha512-AWR6CrePDXP/6fAf63rBT+wy8jxFIg7Q2l3YuckVQC06zkiYG2cdvYalZN9LBAch5MoXJUOmUckcoOtJw1PLfQ==",
- "dev": true
- },
- "string-length": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/string-length/-/string-length-3.1.0.tgz",
- "integrity": "sha512-Ttp5YvkGm5v9Ijagtaz1BnN+k9ObpvS0eIBblPMp2YWL8FBmi9qblQ9fexc2k/CXFgrTIteU3jAw3payCnwSTA==",
- "dev": true,
- "requires": {
- "astral-regex": "^1.0.0",
- "strip-ansi": "^5.2.0"
- }
- },
- "string-width": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz",
- "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==",
- "dev": true,
- "requires": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.0"
- },
- "dependencies": {
- "strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
- "dev": true,
- "requires": {
- "ansi-regex": "^5.0.0"
- }
- }
- }
- },
- "string.prototype.matchall": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.2.tgz",
- "integrity": "sha512-N/jp6O5fMf9os0JU3E72Qhf590RSRZU/ungsL/qJUYVTNv7hTG0P/dbPjxINVN9jpscu3nzYwKESU3P3RY5tOg==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.17.0",
- "has-symbols": "^1.0.1",
- "internal-slot": "^1.0.2",
- "regexp.prototype.flags": "^1.3.0",
- "side-channel": "^1.0.2"
- },
- "dependencies": {
- "es-abstract": {
- "version": "1.17.7",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.7.tgz",
- "integrity": "sha512-VBl/gnfcJ7OercKA9MVaegWsBHFjV492syMudcnQZvt/Dw8ezpcOHYZXa/J96O8vx+g4x65YKhxOwDUh63aS5g==",
- "dev": true,
- "requires": {
- "es-to-primitive": "^1.2.1",
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-symbols": "^1.0.1",
- "is-callable": "^1.2.2",
- "is-regex": "^1.1.1",
- "object-inspect": "^1.8.0",
- "object-keys": "^1.1.1",
- "object.assign": "^4.1.1",
- "string.prototype.trimend": "^1.0.1",
- "string.prototype.trimstart": "^1.0.1"
- }
- }
- }
- },
- "string.prototype.trimend": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.2.tgz",
- "integrity": "sha512-8oAG/hi14Z4nOVP0z6mdiVZ/wqjDtWSLygMigTzAb+7aPEDTleeFf+WrF+alzecxIRkckkJVn+dTlwzJXORATw==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.18.0-next.1"
- }
- },
- "string.prototype.trimstart": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.2.tgz",
- "integrity": "sha512-7F6CdBTl5zyu30BJFdzSTlSlLPwODC23Od+iLoVH8X6+3fvDPPuBVVj9iaB1GOsSTSIgVfsfm27R2FGrAPznWg==",
- "dev": true,
- "requires": {
- "define-properties": "^1.1.3",
- "es-abstract": "^1.18.0-next.1"
- }
- },
- "strip-ansi": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
- "dev": true,
- "requires": {
- "ansi-regex": "^4.1.0"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
- "dev": true
- }
- }
- },
- "strip-bom": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
- "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
- "dev": true
- },
- "strip-eof": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
- "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=",
- "dev": true
- },
- "strip-final-newline": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
- "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
- "dev": true
- },
- "strip-json-comments": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
- "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
- "dev": true
- },
- "supports-color": {
- "version": "5.5.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
- "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
- "dev": true,
- "requires": {
- "has-flag": "^3.0.0"
- }
- },
- "supports-hyperlinks": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz",
- "integrity": "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0",
- "supports-color": "^7.0.0"
- },
- "dependencies": {
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "symbol-tree": {
- "version": "3.2.4",
- "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
- "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
- "dev": true
- },
- "table": {
- "version": "5.4.6",
- "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz",
- "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==",
- "dev": true,
- "requires": {
- "ajv": "^6.10.2",
- "lodash": "^4.17.14",
- "slice-ansi": "^2.1.0",
- "string-width": "^3.0.0"
- },
- "dependencies": {
- "emoji-regex": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
- "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
- "dev": true
- },
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
- "dev": true
- },
- "string-width": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
- "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
- "dev": true,
- "requires": {
- "emoji-regex": "^7.0.1",
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^5.1.0"
- }
- }
- }
- },
- "terminal-link": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz",
- "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==",
- "dev": true,
- "requires": {
- "ansi-escapes": "^4.2.1",
- "supports-hyperlinks": "^2.0.0"
- }
- },
- "terser": {
- "version": "4.8.0",
- "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.0.tgz",
- "integrity": "sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==",
- "dev": true,
- "requires": {
- "commander": "^2.20.0",
- "source-map": "~0.6.1",
- "source-map-support": "~0.5.12"
- },
- "dependencies": {
- "source-map": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true
- }
- }
- },
- "test-exclude": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz",
- "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==",
- "dev": true,
- "requires": {
- "@istanbuljs/schema": "^0.1.2",
- "glob": "^7.1.4",
- "minimatch": "^3.0.4"
- }
- },
- "text-table": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
- "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=",
- "dev": true
- },
- "throat": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz",
- "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==",
- "dev": true
- },
- "through": {
- "version": "2.3.8",
- "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
- "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
- "dev": true
- },
- "tiny-glob": {
- "version": "0.2.6",
- "resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.6.tgz",
- "integrity": "sha512-A7ewMqPu1B5PWwC3m7KVgAu96Ch5LA0w4SnEN/LbDREj/gAD0nPWboRbn8YoP9ISZXqeNAlMvKSKoEuhcfK3Pw==",
- "dev": true,
- "requires": {
- "globalyzer": "^0.1.0",
- "globrex": "^0.1.1"
- }
- },
- "tiny-warning": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
- "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA=="
- },
- "tmp": {
- "version": "0.0.33",
- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
- "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
- "dev": true,
- "requires": {
- "os-tmpdir": "~1.0.2"
- }
- },
- "tmpl": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz",
- "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=",
- "dev": true
- },
- "to-fast-properties": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
- "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=",
- "dev": true
- },
- "to-object-path": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz",
- "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=",
- "dev": true,
- "requires": {
- "kind-of": "^3.0.2"
- },
- "dependencies": {
- "kind-of": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
- "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
- "dev": true,
- "requires": {
- "is-buffer": "^1.1.5"
- }
- }
- }
- },
- "to-regex": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz",
- "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==",
- "dev": true,
- "requires": {
- "define-property": "^2.0.2",
- "extend-shallow": "^3.0.2",
- "regex-not": "^1.0.2",
- "safe-regex": "^1.1.0"
- }
- },
- "to-regex-range": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
- "dev": true,
- "requires": {
- "is-number": "^7.0.0"
- }
- },
- "tough-cookie": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz",
- "integrity": "sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==",
- "dev": true,
- "requires": {
- "ip-regex": "^2.1.0",
- "psl": "^1.1.28",
- "punycode": "^2.1.1"
- }
- },
- "tr46": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",
- "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=",
- "dev": true,
- "requires": {
- "punycode": "^2.1.0"
- }
- },
- "ts-jest": {
- "version": "25.5.1",
- "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-25.5.1.tgz",
- "integrity": "sha512-kHEUlZMK8fn8vkxDjwbHlxXRB9dHYpyzqKIGDNxbzs+Rz+ssNDSDNusEK8Fk/sDd4xE6iKoQLfFkFVaskmTJyw==",
- "dev": true,
- "requires": {
- "bs-logger": "0.x",
- "buffer-from": "1.x",
- "fast-json-stable-stringify": "2.x",
- "json5": "2.x",
- "lodash.memoize": "4.x",
- "make-error": "1.x",
- "micromatch": "4.x",
- "mkdirp": "0.x",
- "semver": "6.x",
- "yargs-parser": "18.x"
- },
- "dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
- "dev": true
- }
- }
- },
- "tsconfig-paths": {
- "version": "3.9.0",
- "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz",
- "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==",
- "dev": true,
- "requires": {
- "@types/json5": "^0.0.29",
- "json5": "^1.0.1",
- "minimist": "^1.2.0",
- "strip-bom": "^3.0.0"
- },
- "dependencies": {
- "json5": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
- "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
- "dev": true,
- "requires": {
- "minimist": "^1.2.0"
- }
- }
- }
- },
- "tsdx": {
- "version": "0.14.1",
- "resolved": "https://registry.npmjs.org/tsdx/-/tsdx-0.14.1.tgz",
- "integrity": "sha512-keHmFdCL2kx5nYFlBdbE3639HQ2v9iGedAFAajobrUTH2wfX0nLPdDhbHv+GHLQZqf0c5ur1XteE8ek/+Eyj5w==",
- "dev": true,
- "requires": {
- "@babel/core": "^7.4.4",
- "@babel/helper-module-imports": "^7.0.0",
- "@babel/parser": "^7.11.5",
- "@babel/plugin-proposal-class-properties": "^7.4.4",
- "@babel/preset-env": "^7.11.0",
- "@babel/traverse": "^7.11.5",
- "@rollup/plugin-babel": "^5.1.0",
- "@rollup/plugin-commonjs": "^11.0.0",
- "@rollup/plugin-json": "^4.0.0",
- "@rollup/plugin-node-resolve": "^9.0.0",
- "@rollup/plugin-replace": "^2.2.1",
- "@types/jest": "^25.2.1",
- "@typescript-eslint/eslint-plugin": "^2.12.0",
- "@typescript-eslint/parser": "^2.12.0",
- "ansi-escapes": "^4.2.1",
- "asyncro": "^3.0.0",
- "babel-eslint": "^10.0.3",
- "babel-plugin-annotate-pure-calls": "^0.4.0",
- "babel-plugin-dev-expression": "^0.2.1",
- "babel-plugin-macros": "^2.6.1",
- "babel-plugin-polyfill-regenerator": "^0.0.4",
- "babel-plugin-transform-rename-import": "^2.3.0",
- "camelcase": "^6.0.0",
- "chalk": "^4.0.0",
- "enquirer": "^2.3.4",
- "eslint": "^6.1.0",
- "eslint-config-prettier": "^6.0.0",
- "eslint-config-react-app": "^5.2.1",
- "eslint-plugin-flowtype": "^3.13.0",
- "eslint-plugin-import": "^2.18.2",
- "eslint-plugin-jsx-a11y": "^6.2.3",
- "eslint-plugin-prettier": "^3.1.0",
- "eslint-plugin-react": "^7.14.3",
- "eslint-plugin-react-hooks": "^2.2.0",
- "execa": "^4.0.3",
- "fs-extra": "^9.0.0",
- "jest": "^25.3.0",
- "jest-watch-typeahead": "^0.5.0",
- "jpjs": "^1.2.1",
- "lodash.merge": "^4.6.2",
- "ora": "^4.0.3",
- "pascal-case": "^3.1.1",
- "prettier": "^1.19.1",
- "progress-estimator": "^0.2.2",
- "regenerator-runtime": "^0.13.7",
- "rollup": "^1.32.1",
- "rollup-plugin-sourcemaps": "^0.6.2",
- "rollup-plugin-terser": "^5.1.2",
- "rollup-plugin-typescript2": "^0.27.3",
- "sade": "^1.4.2",
- "semver": "^7.1.1",
- "shelljs": "^0.8.3",
- "tiny-glob": "^0.2.6",
- "ts-jest": "^25.3.1",
- "tslib": "^1.9.3",
- "typescript": "^3.7.3"
- },
- "dependencies": {
- "tslib": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
- "dev": true
- }
- }
- },
- "tslib": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz",
- "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==",
- "dev": true
- },
- "tsutils": {
- "version": "3.17.1",
- "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.17.1.tgz",
- "integrity": "sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g==",
- "dev": true,
- "requires": {
- "tslib": "^1.8.1"
- },
- "dependencies": {
- "tslib": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
- "dev": true
- }
- }
- },
- "tunnel-agent": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
- "dev": true,
- "requires": {
- "safe-buffer": "^5.0.1"
- }
- },
- "tweetnacl": {
- "version": "0.14.5",
- "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
- "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
- "dev": true
- },
- "type-check": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
- "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
- "dev": true,
- "requires": {
- "prelude-ls": "~1.1.2"
- }
- },
- "type-detect": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
- "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",
- "dev": true
- },
- "type-fest": {
- "version": "0.11.0",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz",
- "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==",
- "dev": true
- },
- "typedarray-to-buffer": {
- "version": "3.1.5",
- "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
- "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
- "dev": true,
- "requires": {
- "is-typedarray": "^1.0.0"
- }
- },
- "typescript": {
- "version": "3.9.7",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz",
- "integrity": "sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==",
- "dev": true
- },
- "unicode-canonical-property-names-ecmascript": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz",
- "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==",
- "dev": true
- },
- "unicode-match-property-ecmascript": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz",
- "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==",
- "dev": true,
- "requires": {
- "unicode-canonical-property-names-ecmascript": "^1.0.4",
- "unicode-property-aliases-ecmascript": "^1.0.4"
- }
- },
- "unicode-match-property-value-ecmascript": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz",
- "integrity": "sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ==",
- "dev": true
- },
- "unicode-property-aliases-ecmascript": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz",
- "integrity": "sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg==",
- "dev": true
- },
- "union-value": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz",
- "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==",
- "dev": true,
- "requires": {
- "arr-union": "^3.1.0",
- "get-value": "^2.0.6",
- "is-extendable": "^0.1.1",
- "set-value": "^2.0.1"
- }
- },
- "universalify": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz",
- "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==",
- "dev": true
- },
- "unset-value": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz",
- "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=",
- "dev": true,
- "requires": {
- "has-value": "^0.3.1",
- "isobject": "^3.0.0"
- },
- "dependencies": {
- "has-value": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz",
- "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=",
- "dev": true,
- "requires": {
- "get-value": "^2.0.3",
- "has-values": "^0.1.4",
- "isobject": "^2.0.0"
- },
- "dependencies": {
- "isobject": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz",
- "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=",
- "dev": true,
- "requires": {
- "isarray": "1.0.0"
- }
- }
- }
- },
- "has-values": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz",
- "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=",
- "dev": true
- }
- }
- },
- "uri-js": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz",
- "integrity": "sha512-B0yRTzYdUCCn9n+F4+Gh4yIDtMQcaJsmYBDsTSG8g/OejKBodLQ2IHfN3bM7jUsRXndopT7OIXWdYqc1fjmV6g==",
- "dev": true,
- "requires": {
- "punycode": "^2.1.0"
- }
- },
- "urix": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz",
- "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=",
- "dev": true
- },
- "use": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
- "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==",
- "dev": true
- },
- "uuid": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.0.tgz",
- "integrity": "sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ==",
- "dev": true
- },
- "v8-compile-cache": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz",
- "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==",
- "dev": true
- },
- "v8-to-istanbul": {
- "version": "4.1.4",
- "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-4.1.4.tgz",
- "integrity": "sha512-Rw6vJHj1mbdK8edjR7+zuJrpDtKIgNdAvTSAcpYfgMIw+u2dPDntD3dgN4XQFLU2/fvFQdzj+EeSGfd/jnY5fQ==",
- "dev": true,
- "requires": {
- "@types/istanbul-lib-coverage": "^2.0.1",
- "convert-source-map": "^1.6.0",
- "source-map": "^0.7.3"
- },
- "dependencies": {
- "source-map": {
- "version": "0.7.3",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz",
- "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==",
- "dev": true
- }
- }
- },
- "validate-npm-package-license": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
- "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
- "dev": true,
- "requires": {
- "spdx-correct": "^3.0.0",
- "spdx-expression-parse": "^3.0.0"
- }
- },
- "verror": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
- "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
- "dev": true,
- "requires": {
- "assert-plus": "^1.0.0",
- "core-util-is": "1.0.2",
- "extsprintf": "^1.2.0"
- }
- },
- "w3c-hr-time": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",
- "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==",
- "dev": true,
- "requires": {
- "browser-process-hrtime": "^1.0.0"
- }
- },
- "w3c-xmlserializer": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz",
- "integrity": "sha512-p10l/ayESzrBMYWRID6xbuCKh2Fp77+sA0doRuGn4tTIMrrZVeqfpKjXHY+oDh3K4nLdPgNwMTVP6Vp4pvqbNg==",
- "dev": true,
- "requires": {
- "domexception": "^1.0.1",
- "webidl-conversions": "^4.0.2",
- "xml-name-validator": "^3.0.0"
- }
- },
- "walker": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz",
- "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=",
- "dev": true,
- "requires": {
- "makeerror": "1.0.x"
- }
- },
- "wcwidth": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
- "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=",
- "dev": true,
- "requires": {
- "defaults": "^1.0.3"
- }
- },
- "webidl-conversions": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",
- "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==",
- "dev": true
- },
- "whatwg-encoding": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz",
- "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==",
- "dev": true,
- "requires": {
- "iconv-lite": "0.4.24"
- }
- },
- "whatwg-mimetype": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz",
- "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==",
- "dev": true
- },
- "whatwg-url": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",
- "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",
- "dev": true,
- "requires": {
- "lodash.sortby": "^4.7.0",
- "tr46": "^1.0.1",
- "webidl-conversions": "^4.0.2"
- }
- },
- "which": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
- "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
- "dev": true,
- "requires": {
- "isexe": "^2.0.0"
- }
- },
- "which-module": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
- "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
- "dev": true
- },
- "word-wrap": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
- "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
- "dev": true
- },
- "wrap-ansi": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
- "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "strip-ansi": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
- "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
- "dev": true,
- "requires": {
- "ansi-regex": "^5.0.0"
- }
- }
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
- "dev": true
- },
- "write": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz",
- "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==",
- "dev": true,
- "requires": {
- "mkdirp": "^0.5.1"
- }
- },
- "write-file-atomic": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz",
- "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==",
- "dev": true,
- "requires": {
- "imurmurhash": "^0.1.4",
- "is-typedarray": "^1.0.0",
- "signal-exit": "^3.0.2",
- "typedarray-to-buffer": "^3.1.5"
- }
- },
- "ws": {
- "version": "7.3.1",
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz",
- "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==",
- "dev": true
- },
- "xml-name-validator": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",
- "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==",
- "dev": true
- },
- "xmlchars": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
- "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
- "dev": true
- },
- "y18n": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
- "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
- "dev": true
- },
- "yaml": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.0.tgz",
- "integrity": "sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg==",
- "dev": true
- },
- "yargs": {
- "version": "15.4.1",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
- "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",
- "dev": true,
- "requires": {
- "cliui": "^6.0.0",
- "decamelize": "^1.2.0",
- "find-up": "^4.1.0",
- "get-caller-file": "^2.0.1",
- "require-directory": "^2.1.1",
- "require-main-filename": "^2.0.0",
- "set-blocking": "^2.0.0",
- "string-width": "^4.2.0",
- "which-module": "^2.0.0",
- "y18n": "^4.0.0",
- "yargs-parser": "^18.1.2"
- },
- "dependencies": {
- "find-up": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
- "dev": true,
- "requires": {
- "locate-path": "^5.0.0",
- "path-exists": "^4.0.0"
- }
- },
- "locate-path": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
- "dev": true,
- "requires": {
- "p-locate": "^4.1.0"
- }
- },
- "p-limit": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
- "dev": true,
- "requires": {
- "p-try": "^2.0.0"
- }
- },
- "p-locate": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
- "dev": true,
- "requires": {
- "p-limit": "^2.2.0"
- }
- },
- "p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
- "dev": true
- },
- "path-exists": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
- "dev": true
- }
- }
- },
- "yargs-parser": {
- "version": "18.1.3",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",
- "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",
- "dev": true,
- "requires": {
- "camelcase": "^5.0.0",
- "decamelize": "^1.2.0"
- },
- "dependencies": {
- "camelcase": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
- "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
- "dev": true
- }
- }
- }
- }
-}
diff --git a/package.json b/package.json
index bbea73e8b..0dc6e6508 100644
--- a/package.json
+++ b/package.json
@@ -1,64 +1,72 @@
{
- "version": "39.1.1",
- "license": "MIT",
- "sideEffects": false,
- "main": "dist/cjs/index.js",
- "typings": "dist/types/index.d.ts",
- "module": "dist/esm/index.js",
- "files": [
- "dist",
- "src",
- "test"
- ],
- "engines": {
- "node": ">=14.17.0"
- },
- "scripts": {
- "build": "rm -rf dist & tsc -p tsconfig.esm.json & tsc -p tsconfig.cjs.json",
- "prepare": "rm -rf dist & tsc -p tsconfig.esm.json & tsc -p tsconfig.cjs.json",
- "test": "jest --passWithNoTests",
- "test:coverage": "jest --coverage --passWithNoTests",
- "lint": "eslint **/*.ts --ignore-path .eslintignore",
- "lint:fix": "eslint **/*.ts --ignore-path .eslintignore --fix"
- },
- "peerDependencies": {},
- "prettier": {
- "printWidth": 80,
- "semi": true,
- "singleQuote": true,
- "trailingComma": "es5",
- "quoteProps": "preserve"
- },
- "name": "square",
- "description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.",
- "author": {
- "name": "Square Developer Platform",
- "email": "developers@squareup.com",
- "url": "https://squareup.com/developers"
- },
- "devDependencies": {
- "@apimatic/test-utilities": "^0.0.1",
- "@types/jest": "^29.4.0",
- "@types/uuid": "^8.3.0",
- "@typescript-eslint/eslint-plugin": "^5.52.0",
- "@typescript-eslint/parser": "^5.52.0",
- "eslint": "^8.34.0",
- "jest": "^29.4.3",
- "ts-jest": "^29.0.5",
- "tslib": "^2.5.0",
- "typescript": "^4.9.5",
- "uuid": "^8.3.0"
- },
- "dependencies": {
- "@apimatic/authentication-adapters": "^0.5.4",
- "@apimatic/axios-client-adapter": "^0.3.7",
- "@apimatic/core": "^0.10.16",
- "@apimatic/json-bigint": "^1.2.0",
- "@apimatic/schema": "^0.7.14",
- "@types/node": "^14.14.30"
- },
- "bugs": {
- "url": "https://squareup.com/developers",
- "email": "developers@squareup.com"
- }
-}
\ No newline at end of file
+ "name": "square",
+ "version": "40.0.0",
+ "private": false,
+ "repository": "https://github.com/square/square-nodejs-sdk",
+ "license": "MIT",
+ "main": "./index.js",
+ "types": "./index.d.ts",
+ "scripts": {
+ "format": "prettier . --write --ignore-unknown",
+ "build": "tsc",
+ "prepack": "cp -rv dist/. .",
+ "test": "yarn test:unit",
+ "test:unit": "jest --testPathPattern=tests/unit",
+ "test:integration": "jest --testPathPattern=tests/integration"
+ },
+ "dependencies": {
+ "url-join": "4.0.1",
+ "form-data": "^4.0.0",
+ "formdata-node": "^6.0.3",
+ "node-fetch": "^2.7.0",
+ "qs": "^6.13.1",
+ "readable-stream": "^4.5.2",
+ "js-base64": "3.7.7",
+ "form-data-encoder": "^4.0.2",
+ "square-legacy": "npm:square@^39.1.1"
+ },
+ "devDependencies": {
+ "@types/url-join": "4.0.1",
+ "@types/qs": "^6.9.17",
+ "@types/node-fetch": "^2.6.12",
+ "@types/readable-stream": "^4.0.18",
+ "webpack": "^5.97.1",
+ "ts-loader": "^9.5.1",
+ "jest": "^29.7.0",
+ "@types/jest": "^29.5.14",
+ "ts-jest": "^29.1.1",
+ "jest-environment-jsdom": "^29.7.0",
+ "@types/node": "^18.19.70",
+ "prettier": "^3.4.2",
+ "typescript": "~5.7.2"
+ },
+ "browser": {
+ "fs": false,
+ "os": false,
+ "path": false
+ },
+ "description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.",
+ "author": {
+ "name": "Square Developer Platform",
+ "url": "https://developer.squareup.com",
+ "email": "developers@squareup.com"
+ },
+ "bugs": {
+ "url": "https://developer.squareup.com",
+ "email": "developers@squareup.com"
+ },
+ "exports": {
+ ".": "./index.js",
+ "./legacy": {
+ "types": "./legacy/exports/index.d.ts",
+ "require": {
+ "types": "./legacy/exports/index.d.ts",
+ "default": "./legacy/exports/index.js"
+ },
+ "import": {
+ "types": "./legacy/exports/index.d.mts",
+ "default": "./legacy/exports/index.mjs"
+ }
+ }
+ }
+}
diff --git a/reference.md b/reference.md
new file mode 100644
index 000000000..89c7026ad
--- /dev/null
+++ b/reference.md
@@ -0,0 +1,22568 @@
+# Reference
+
+## Mobile
+
+client.mobile.authorizationCode({ ...params }) -> Square.CreateMobileAuthorizationCodeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Generates code to authorize a mobile application to connect to a Square card reader.
+
+Authorization codes are one-time-use codes and expire 60 minutes after being issued.
+
+**Important:** The `Authorization` header you provide to this endpoint must have the following format:
+
+```
+Authorization: Bearer ACCESS_TOKEN
+```
+
+Replace `ACCESS_TOKEN` with a
+[valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-tokens).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.mobile.authorizationCode({
+ locationId: "YOUR_LOCATION_ID",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateMobileAuthorizationCodeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Mobile.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## OAuth
+
+client.oAuth.revokeToken({ ...params }) -> Square.RevokeTokenResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Revokes an access token generated with the OAuth flow.
+
+If an account has more than one OAuth access token for your application, this
+endpoint revokes all of them, regardless of which token you specify.
+
+**Important:** The `Authorization` header for this endpoint must have the
+following format:
+
+```
+Authorization: Client APPLICATION_SECRET
+```
+
+Replace `APPLICATION_SECRET` with the application secret on the **OAuth**
+page for your application in the Developer Dashboard.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.oAuth.revokeToken({
+ clientId: "CLIENT_ID",
+ accessToken: "ACCESS_TOKEN",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.RevokeTokenRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `OAuth.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.oAuth.obtainToken({ ...params }) -> Square.ObtainTokenResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns an OAuth access token and a refresh token unless the
+`short_lived` parameter is set to `true`, in which case the endpoint
+returns only an access token.
+
+The `grant_type` parameter specifies the type of OAuth request. If
+`grant_type` is `authorization_code`, you must include the authorization
+code you received when a seller granted you authorization. If `grant_type`
+is `refresh_token`, you must provide a valid refresh token. If you're using
+an old version of the Square APIs (prior to March 13, 2019), `grant_type`
+can be `migration_token` and you must provide a valid migration token.
+
+You can use the `scopes` parameter to limit the set of permissions granted
+to the access token and refresh token. You can use the `short_lived` parameter
+to create an access token that expires in 24 hours.
+
+**Note:** OAuth tokens should be encrypted and stored on a secure server.
+Application clients should never interact directly with OAuth tokens.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.oAuth.obtainToken({
+ clientId: "APPLICATION_ID",
+ clientSecret: "APPLICATION_SECRET",
+ code: "CODE_FROM_AUTHORIZE",
+ grantType: "authorization_code",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.ObtainTokenRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `OAuth.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.oAuth.retrieveTokenStatus() -> Square.RetrieveTokenStatusResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns information about an [OAuth access token](https://developer.squareup.com/docs/build-basics/access-tokens#get-an-oauth-access-token) or an application’s [personal access token](https://developer.squareup.com/docs/build-basics/access-tokens#get-a-personal-access-token).
+
+Add the access token to the Authorization header of the request.
+
+**Important:** The `Authorization` header you provide to this endpoint must have the following format:
+
+```
+Authorization: Bearer ACCESS_TOKEN
+```
+
+where `ACCESS_TOKEN` is a
+[valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-tokens).
+
+If the access token is expired or not a valid access token, the endpoint returns an `UNAUTHORIZED` error.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.oAuth.retrieveTokenStatus();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `OAuth.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.oAuth.authorize() -> void
+
+-
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.oAuth.authorize();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `OAuth.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## V1Transactions
+
+client.v1Transactions.v1ListOrders({ ...params }) -> Square.V1Order[]
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Provides summary information for a merchant's online store orders.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.v1Transactions.v1ListOrders({
+ locationId: "location_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.V1ListOrdersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `V1Transactions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.v1Transactions.v1RetrieveOrder({ ...params }) -> Square.V1Order
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Provides comprehensive information for a single online store order, including the order's history.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.v1Transactions.v1RetrieveOrder({
+ locationId: "location_id",
+ orderId: "order_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.V1RetrieveOrderRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `V1Transactions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.v1Transactions.v1UpdateOrder({ ...params }) -> Square.V1Order
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.v1Transactions.v1UpdateOrder({
+ locationId: "location_id",
+ orderId: "order_id",
+ action: "COMPLETE",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.V1UpdateOrderRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `V1Transactions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## ApplePay
+
+client.applePay.registerDomain({ ...params }) -> Square.RegisterDomainResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Activates a domain for use with Apple Pay on the Web and Square. A validation
+is performed on this domain by Apple to ensure that it is properly set up as
+an Apple Pay enabled domain.
+
+This endpoint provides an easy way for platform developers to bulk activate
+Apple Pay on the Web with Square for merchants using their platform.
+
+Note: You will need to host a valid domain verification file on your domain to support Apple Pay. The
+current version of this file is always available at https://app.squareup.com/digital-wallets/apple-pay/apple-developer-merchantid-domain-association,
+and should be hosted at `.well_known/apple-developer-merchantid-domain-association` on your
+domain. This file is subject to change; we strongly recommend checking for updates regularly and avoiding
+long-lived caches that might not keep in sync with the correct file version.
+
+To learn more about the Web Payments SDK and how to add Apple Pay, see [Take an Apple Pay Payment](https://developer.squareup.com/docs/web-payments/apple-pay).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.applePay.registerDomain({
+ domainName: "example.com",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.RegisterDomainRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `ApplePay.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## BankAccounts
+
+client.bankAccounts.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a list of [BankAccount](entity:BankAccount) objects linked to a Square account.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.bankAccounts.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.bankAccounts.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BankAccountsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `BankAccounts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bankAccounts.getByV1Id({ ...params }) -> Square.GetBankAccountByV1IdResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns details of a [BankAccount](entity:BankAccount) identified by V1 bank account ID.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bankAccounts.getByV1Id({
+ v1BankAccountId: "v1_bank_account_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BankAccountsGetByV1IdRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `BankAccounts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bankAccounts.get({ ...params }) -> Square.GetBankAccountResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns details of a [BankAccount](entity:BankAccount)
+linked to a Square account.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bankAccounts.get({
+ bankAccountId: "bank_account_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BankAccountsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `BankAccounts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Bookings
+
+client.bookings.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieve a collection of bookings.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.bookings.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.bookings.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BookingsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.create({ ...params }) -> Square.CreateBookingResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a booking.
+
+The required input must include the following:
+
+- `Booking.location_id`
+- `Booking.start_at`
+- `Booking.AppointmentSegment.team_member_id`
+- `Booking.AppointmentSegment.service_variation_id`
+- `Booking.AppointmentSegment.service_variation_version`
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.create({
+ booking: {},
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateBookingRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.searchAvailability({ ...params }) -> Square.SearchAvailabilityResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for availabilities for booking.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.searchAvailability({
+ query: {
+ filter: {
+ startAtRange: {},
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchAvailabilityRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.bulkRetrieveBookings({ ...params }) -> Square.BulkRetrieveBookingsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Bulk-Retrieves a list of bookings by booking IDs.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.bulkRetrieveBookings({
+ bookingIds: ["booking_ids"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BulkRetrieveBookingsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.getBusinessProfile() -> Square.GetBusinessBookingProfileResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a seller's booking profile.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.getBusinessProfile();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.retrieveLocationBookingProfile({ ...params }) -> Square.RetrieveLocationBookingProfileResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a seller's location booking profile.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.retrieveLocationBookingProfile({
+ locationId: "location_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.RetrieveLocationBookingProfileRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.bulkRetrieveTeamMemberBookingProfiles({ ...params }) -> Square.BulkRetrieveTeamMemberBookingProfilesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves one or more team members' booking profiles.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.bulkRetrieveTeamMemberBookingProfiles({
+ teamMemberIds: ["team_member_ids"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BulkRetrieveTeamMemberBookingProfilesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.get({ ...params }) -> Square.GetBookingResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a booking.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.get({
+ bookingId: "booking_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BookingsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.update({ ...params }) -> Square.UpdateBookingResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a booking.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.update({
+ bookingId: "booking_id",
+ booking: {},
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateBookingRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.cancel({ ...params }) -> Square.CancelBookingResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels an existing booking.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.cancel({
+ bookingId: "booking_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CancelBookingRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Bookings.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Cards
+
+client.cards.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a list of cards owned by the account making the request.
+A max of 25 cards will be returned.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.cards.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.cards.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CardsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Cards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.cards.create({ ...params }) -> Square.CreateCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Adds a card on file to an existing merchant.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.cards.create({
+ idempotencyKey: "4935a656-a929-4792-b97c-8848be85c27c",
+ sourceId: "cnon:uIbfJXhXETSP197M3GB",
+ card: {
+ cardholderName: "Amelia Earhart",
+ billingAddress: {
+ addressLine1: "500 Electric Ave",
+ addressLine2: "Suite 600",
+ locality: "New York",
+ administrativeDistrictLevel1: "NY",
+ postalCode: "10003",
+ country: "US",
+ },
+ customerId: "VDKXEEKPJN48QDG3BGGFAK05P8",
+ referenceId: "user-id-1",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateCardRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Cards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.cards.get({ ...params }) -> Square.GetCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves details for a specific Card.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.cards.get({
+ cardId: "card_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CardsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Cards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.cards.disable({ ...params }) -> Square.DisableCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Disables the card, preventing any further updates or charges.
+Disabling an already disabled card is allowed but has no effect.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.cards.disable({
+ cardId: "card_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CardsDisableRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Cards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Catalog
+
+client.catalog.batchDelete({ ...params }) -> Square.BatchDeleteCatalogObjectsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a set of [CatalogItem](entity:CatalogItem)s based on the
+provided list of target IDs and returns a set of successfully deleted IDs in
+the response. Deletion is a cascading event such that all children of the
+targeted object are also deleted. For example, deleting a CatalogItem will
+also delete all of its [CatalogItemVariation](entity:CatalogItemVariation)
+children.
+
+`BatchDeleteCatalogObjects` succeeds even if only a portion of the targeted
+IDs can be deleted. The response will only include IDs that were
+actually deleted.
+
+To ensure consistency, only one delete request is processed at a time per seller account.
+While one (batch or non-batch) delete request is being processed, other (batched and non-batched)
+delete requests are rejected with the `429` error code.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.batchDelete({
+ objectIds: ["W62UWFY35CWMYGVWK6TWJDNI", "AA27W3M2GGTF3H6AVPNB77CK"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchDeleteCatalogObjectsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.batchGet({ ...params }) -> Square.BatchGetCatalogObjectsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a set of objects based on the provided ID.
+Each [CatalogItem](entity:CatalogItem) returned in the set includes all of its
+child information including: all of its
+[CatalogItemVariation](entity:CatalogItemVariation) objects, references to
+its [CatalogModifierList](entity:CatalogModifierList) objects, and the ids of
+any [CatalogTax](entity:CatalogTax) objects that apply to it.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.batchGet({
+ objectIds: ["W62UWFY35CWMYGVWK6TWJDNI", "AA27W3M2GGTF3H6AVPNB77CK"],
+ includeRelatedObjects: true,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchGetCatalogObjectsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.batchUpsert({ ...params }) -> Square.BatchUpsertCatalogObjectsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates up to 10,000 target objects based on the provided
+list of objects. The target objects are grouped into batches and each batch is
+inserted/updated in an all-or-nothing manner. If an object within a batch is
+malformed in some way, or violates a database constraint, the entire batch
+containing that item will be disregarded. However, other batches in the same
+request may still succeed. Each batch may contain up to 1,000 objects, and
+batches will be processed in order as long as the total object count for the
+request (items, variations, modifier lists, discounts, and taxes) is no more
+than 10,000.
+
+To ensure consistency, only one update request is processed at a time per seller account.
+While one (batch or non-batch) update request is being processed, other (batched and non-batched)
+update requests are rejected with the `429` error code.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.batchUpsert({
+ idempotencyKey: "789ff020-f723-43a9-b4b5-43b5dc1fa3dc",
+ batches: [
+ {
+ objects: [
+ {
+ type: "SUBSCRIPTION_PRODUCT",
+ id: "#Tea",
+ presentAtAllLocations: true,
+ },
+ {
+ type: "SUBSCRIPTION_PRODUCT",
+ id: "#Coffee",
+ presentAtAllLocations: true,
+ },
+ {
+ type: "SUBSCRIPTION_PRODUCT",
+ id: "#Beverages",
+ presentAtAllLocations: true,
+ },
+ {
+ type: "SUBSCRIPTION_PRODUCT",
+ id: "#SalesTax",
+ presentAtAllLocations: true,
+ },
+ ],
+ },
+ ],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchUpsertCatalogObjectsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.info() -> Square.CatalogInfoResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves information about the Square Catalog API, such as batch size
+limits that can be used by the `BatchUpsertCatalogObjects` endpoint.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.info();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a list of all [CatalogObject](entity:CatalogObject)s of the specified types in the catalog.
+
+The `types` parameter is specified as a comma-separated list of the [CatalogObjectType](entity:CatalogObjectType) values,
+for example, "`ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`, `IMAGE`".
+
+**Important:** ListCatalog does not return deleted catalog items. To retrieve
+deleted catalog items, use [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects)
+and set the `include_deleted_objects` attribute value to `true`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.catalog.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.catalog.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CatalogListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.search({ ...params }) -> Square.SearchCatalogObjectsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for [CatalogObject](entity:CatalogObject) of any type by matching supported search attribute values,
+excluding custom attribute values on items or item variations, against one or more of the specified query filters.
+
+This (`SearchCatalogObjects`) endpoint differs from the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems)
+endpoint in the following aspects:
+
+- `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects.
+- `SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not.
+- `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does.
+- The both endpoints have different call conventions, including the query filter formats.
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.search({
+ objectTypes: ["ITEM"],
+ query: {
+ prefixQuery: {
+ attributeName: "name",
+ attributePrefix: "tea",
+ },
+ },
+ limit: 100,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchCatalogObjectsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.searchItems({ ...params }) -> Square.SearchCatalogItemsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for catalog items or item variations by matching supported search attribute values, including
+custom attribute values, against one or more of the specified query filters.
+
+This (`SearchCatalogItems`) endpoint differs from the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects)
+endpoint in the following aspects:
+
+- `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects` can search for any type of catalog objects.
+- `SearchCatalogItems` supports the custom attribute query filters to return items or item variations that contain custom attribute values, where `SearchCatalogObjects` does not.
+- `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted items or item variations, whereas `SearchCatalogObjects` does.
+- The both endpoints use different call conventions, including the query filter formats.
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.searchItems({
+ textFilter: "red",
+ categoryIds: ["WINE_CATEGORY_ID"],
+ stockLevels: ["OUT", "LOW"],
+ enabledLocationIds: ["ATL_LOCATION_ID"],
+ limit: 100,
+ sortOrder: "ASC",
+ productTypes: ["REGULAR"],
+ customAttributeFilters: [
+ {
+ customAttributeDefinitionId: "VEGAN_DEFINITION_ID",
+ boolFilter: true,
+ },
+ {
+ customAttributeDefinitionId: "BRAND_DEFINITION_ID",
+ stringFilter: "Dark Horse",
+ },
+ {
+ key: "VINTAGE",
+ numberFilter: {
+ min: "min",
+ max: "max",
+ },
+ },
+ {
+ customAttributeDefinitionId: "VARIETAL_DEFINITION_ID",
+ },
+ ],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchCatalogItemsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.updateItemModifierLists({ ...params }) -> Square.UpdateItemModifierListsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates the [CatalogModifierList](entity:CatalogModifierList) objects
+that apply to the targeted [CatalogItem](entity:CatalogItem) without having
+to perform an upsert on the entire item.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.updateItemModifierLists({
+ itemIds: ["H42BRLUJ5KTZTTMPVSLFAACQ", "2JXOBJIHCWBQ4NZ3RIXQGJA6"],
+ modifierListsToEnable: ["H42BRLUJ5KTZTTMPVSLFAACQ", "2JXOBJIHCWBQ4NZ3RIXQGJA6"],
+ modifierListsToDisable: ["7WRC16CJZDVLSNDQ35PP6YAD"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateItemModifierListsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.updateItemTaxes({ ...params }) -> Square.UpdateItemTaxesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates the [CatalogTax](entity:CatalogTax) objects that apply to the
+targeted [CatalogItem](entity:CatalogItem) without having to perform an
+upsert on the entire item.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.updateItemTaxes({
+ itemIds: ["H42BRLUJ5KTZTTMPVSLFAACQ", "2JXOBJIHCWBQ4NZ3RIXQGJA6"],
+ taxesToEnable: ["4WRCNHCJZDVLSNDQ35PP6YAD"],
+ taxesToDisable: ["AQCEGCEBBQONINDOHRGZISEX"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateItemTaxesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Catalog.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Customers
+
+client.customers.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists customer profiles associated with a Square account.
+
+Under normal operating conditions, newly created or updated customer profiles become available
+for the listing operation in well under 30 seconds. Occasionally, propagation of the new or updated
+profiles can take closer to one minute or longer, especially during network incidents and outages.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.customers.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.customers.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CustomersListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.create({ ...params }) -> Square.CreateCustomerResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a new customer for a business.
+
+You must provide at least one of the following values in your request to this
+endpoint:
+
+- `given_name`
+- `family_name`
+- `company_name`
+- `email_address`
+- `phone_number`
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.create({
+ givenName: "Amelia",
+ familyName: "Earhart",
+ emailAddress: "Amelia.Earhart@example.com",
+ address: {
+ addressLine1: "500 Electric Ave",
+ addressLine2: "Suite 600",
+ locality: "New York",
+ administrativeDistrictLevel1: "NY",
+ postalCode: "10003",
+ country: "US",
+ },
+ phoneNumber: "+1-212-555-4240",
+ referenceId: "YOUR_REFERENCE_ID",
+ note: "a customer",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateCustomerRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.batchCreate({ ...params }) -> Square.BulkCreateCustomersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates multiple [customer profiles](entity:Customer) for a business.
+
+This endpoint takes a map of individual create requests and returns a map of responses.
+
+You must provide at least one of the following values in each create request:
+
+- `given_name`
+- `family_name`
+- `company_name`
+- `email_address`
+- `phone_number`
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.batchCreate({
+ customers: {
+ "8bb76c4f-e35d-4c5b-90de-1194cd9179f0": {
+ givenName: "Amelia",
+ familyName: "Earhart",
+ emailAddress: "Amelia.Earhart@example.com",
+ address: {
+ addressLine1: "500 Electric Ave",
+ addressLine2: "Suite 600",
+ locality: "New York",
+ administrativeDistrictLevel1: "NY",
+ postalCode: "10003",
+ country: "US",
+ },
+ phoneNumber: "+1-212-555-4240",
+ referenceId: "YOUR_REFERENCE_ID",
+ note: "a customer",
+ },
+ "d1689f23-b25d-4932-b2f0-aed00f5e2029": {
+ givenName: "Marie",
+ familyName: "Curie",
+ emailAddress: "Marie.Curie@example.com",
+ address: {
+ addressLine1: "500 Electric Ave",
+ addressLine2: "Suite 601",
+ locality: "New York",
+ administrativeDistrictLevel1: "NY",
+ postalCode: "10003",
+ country: "US",
+ },
+ phoneNumber: "+1-212-444-4240",
+ referenceId: "YOUR_REFERENCE_ID",
+ note: "another customer",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BulkCreateCustomersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.bulkDeleteCustomers({ ...params }) -> Square.BulkDeleteCustomersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes multiple customer profiles.
+
+The endpoint takes a list of customer IDs and returns a map of responses.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.bulkDeleteCustomers({
+ customerIds: ["8DDA5NZVBZFGAX0V3HPF81HHE0", "N18CPRVXR5214XPBBA6BZQWF3C", "2GYD7WNXF7BJZW1PMGNXZ3Y8M8"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BulkDeleteCustomersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.bulkRetrieveCustomers({ ...params }) -> Square.BulkRetrieveCustomersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves multiple customer profiles.
+
+This endpoint takes a list of customer IDs and returns a map of responses.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.bulkRetrieveCustomers({
+ customerIds: ["8DDA5NZVBZFGAX0V3HPF81HHE0", "N18CPRVXR5214XPBBA6BZQWF3C", "2GYD7WNXF7BJZW1PMGNXZ3Y8M8"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BulkRetrieveCustomersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.bulkUpdateCustomers({ ...params }) -> Square.BulkUpdateCustomersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates multiple customer profiles.
+
+This endpoint takes a map of individual update requests and returns a map of responses.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.bulkUpdateCustomers({
+ customers: {
+ "8DDA5NZVBZFGAX0V3HPF81HHE0": {
+ emailAddress: "New.Amelia.Earhart@example.com",
+ note: "updated customer note",
+ version: 2,
+ },
+ N18CPRVXR5214XPBBA6BZQWF3C: {
+ givenName: "Marie",
+ familyName: "Curie",
+ version: 0,
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BulkUpdateCustomersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.search({ ...params }) -> Square.SearchCustomersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches the customer profiles associated with a Square account using one or more supported query filters.
+
+Calling `SearchCustomers` without any explicit query filter returns all
+customer profiles ordered alphabetically based on `given_name` and
+`family_name`.
+
+Under normal operating conditions, newly created or updated customer profiles become available
+for the search operation in well under 30 seconds. Occasionally, propagation of the new or updated
+profiles can take closer to one minute or longer, especially during network incidents and outages.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.search({
+ limit: 2,
+ query: {
+ filter: {
+ creationSource: {
+ values: ["THIRD_PARTY"],
+ rule: "INCLUDE",
+ },
+ createdAt: {
+ startAt: "2018-01-01T00:00:00-00:00",
+ endAt: "2018-02-01T00:00:00-00:00",
+ },
+ emailAddress: {
+ fuzzy: "example.com",
+ },
+ groupIds: {
+ all: ["545AXB44B4XXWMVQ4W8SBT3HHF"],
+ },
+ },
+ sort: {
+ field: "CREATED_AT",
+ order: "ASC",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchCustomersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.get({ ...params }) -> Square.GetCustomerResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns details for a single customer.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.get({
+ customerId: "customer_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CustomersGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.update({ ...params }) -> Square.UpdateCustomerResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are required in the request.
+To add or update a field, specify the new value. To remove a field, specify `null`.
+
+To update a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.update({
+ customerId: "customer_id",
+ emailAddress: "New.Amelia.Earhart@example.com",
+ note: "updated customer note",
+ version: 2,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateCustomerRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.delete({ ...params }) -> Square.DeleteCustomerResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a customer profile from a business.
+
+To delete a customer profile that was created by merging existing profiles, you must use the ID of the newly created profile.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.delete({
+ customerId: "customer_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CustomersDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Customers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Devices
+
+client.devices.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+List devices associated with the merchant. Currently, only Terminal API
+devices are supported.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.devices.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.devices.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DevicesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Devices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.devices.get({ ...params }) -> Square.GetDeviceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves Device with the associated `device_id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.devices.get({
+ deviceId: "device_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DevicesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Devices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Disputes
+
+client.disputes.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a list of disputes associated with a particular account.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.disputes.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.disputes.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DisputesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Disputes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.disputes.get({ ...params }) -> Square.GetDisputeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns details about a specific dispute.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.disputes.get({
+ disputeId: "dispute_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DisputesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Disputes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.disputes.accept({ ...params }) -> Square.AcceptDisputeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Accepts the loss on a dispute. Square returns the disputed amount to the cardholder and
+updates the dispute state to ACCEPTED.
+
+Square debits the disputed amount from the seller’s Square account. If the Square account
+does not have sufficient funds, Square debits the associated bank account.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.disputes.accept({
+ disputeId: "dispute_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DisputesAcceptRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Disputes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.disputes.createEvidenceFile({ ...params }) -> Square.CreateDisputeEvidenceFileResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Uploads a file to use as evidence in a dispute challenge. The endpoint accepts HTTP
+multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.disputes.createEvidenceFile({
+ disputeId: "dispute_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DisputesCreateEvidenceFileRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Disputes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.disputes.createEvidenceText({ ...params }) -> Square.CreateDisputeEvidenceTextResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Uploads text to use as evidence for a dispute challenge.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.disputes.createEvidenceText({
+ disputeId: "dispute_id",
+ idempotencyKey: "ed3ee3933d946f1514d505d173c82648",
+ evidenceType: "TRACKING_NUMBER",
+ evidenceText: "1Z8888888888888888",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateDisputeEvidenceTextRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Disputes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.disputes.submitEvidence({ ...params }) -> Square.SubmitEvidenceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Submits evidence to the cardholder's bank.
+
+The evidence submitted by this endpoint includes evidence uploaded
+using the [CreateDisputeEvidenceFile](api-endpoint:Disputes-CreateDisputeEvidenceFile) and
+[CreateDisputeEvidenceText](api-endpoint:Disputes-CreateDisputeEvidenceText) endpoints and
+evidence automatically provided by Square, when available. Evidence cannot be removed from
+a dispute after submission.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.disputes.submitEvidence({
+ disputeId: "dispute_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DisputesSubmitEvidenceRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Disputes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Employees
+
+client.employees.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.employees.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.employees.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.EmployeesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Employees.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.employees.get({ ...params }) -> Square.GetEmployeeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.employees.get({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.EmployeesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Employees.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Events
+
+client.events.searchEvents({ ...params }) -> Square.SearchEventsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Search for Square API events that occur within a 28-day timeframe.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.events.searchEvents();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchEventsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Events.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.events.disableEvents() -> Square.DisableEventsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Disables events to prevent them from being searchable.
+All events are disabled by default. You must enable events to make them searchable.
+Disabling events for a specific time period prevents them from being searchable, even if you re-enable them later.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.events.disableEvents();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `Events.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.events.enableEvents() -> Square.EnableEventsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Enables events to make them searchable. Only events that occur while in the enabled state are searchable.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.events.enableEvents();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `Events.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.events.listEventTypes({ ...params }) -> Square.ListEventTypesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists all event types that you can subscribe to as webhooks or query using the Events API.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.events.listEventTypes();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.ListEventTypesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Events.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## GiftCards
+
+client.giftCards.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists all gift cards. You can specify optional filters to retrieve
+a subset of the gift cards. Results are sorted by `created_at` in ascending order.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.giftCards.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.giftCards.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.GiftCardsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `GiftCards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.giftCards.create({ ...params }) -> Square.CreateGiftCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a digital gift card or registers a physical (plastic) gift card. The resulting gift card
+has a `PENDING` state. To activate a gift card so that it can be redeemed for purchases, call
+[CreateGiftCardActivity](api-endpoint:GiftCardActivities-CreateGiftCardActivity) and create an `ACTIVATE`
+activity with the initial balance. Alternatively, you can use [RefundPayment](api-endpoint:Refunds-RefundPayment)
+to refund a payment to the new gift card.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.giftCards.create({
+ idempotencyKey: "NC9Tm69EjbjtConu",
+ locationId: "81FN9BNFZTKS4",
+ giftCard: {
+ type: "DIGITAL",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateGiftCardRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `GiftCards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.giftCards.getFromGan({ ...params }) -> Square.GetGiftCardFromGanResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a gift card using the gift card account number (GAN).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.giftCards.getFromGan({
+ gan: "7783320001001635",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.GetGiftCardFromGanRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `GiftCards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.giftCards.getFromNonce({ ...params }) -> Square.GetGiftCardFromNonceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a gift card using a secure payment token that represents the gift card.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.giftCards.getFromNonce({
+ nonce: "cnon:7783322135245171",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.GetGiftCardFromNonceRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `GiftCards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.giftCards.linkCustomer({ ...params }) -> Square.LinkCustomerToGiftCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Links a customer to a gift card, which is also referred to as adding a card on file.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.giftCards.linkCustomer({
+ giftCardId: "gift_card_id",
+ customerId: "GKY0FZ3V717AH8Q2D821PNT2ZW",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.LinkCustomerToGiftCardRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `GiftCards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.giftCards.unlinkCustomer({ ...params }) -> Square.UnlinkCustomerFromGiftCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Unlinks a customer from a gift card, which is also referred to as removing a card on file.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.giftCards.unlinkCustomer({
+ giftCardId: "gift_card_id",
+ customerId: "GKY0FZ3V717AH8Q2D821PNT2ZW",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UnlinkCustomerFromGiftCardRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `GiftCards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.giftCards.get({ ...params }) -> Square.GetGiftCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a gift card using the gift card ID.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.giftCards.get({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.GiftCardsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `GiftCards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Inventory
+
+client.inventory.deprecatedGetAdjustment({ ...params }) -> Square.GetInventoryAdjustmentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deprecated version of [RetrieveInventoryAdjustment](api-endpoint:Inventory-RetrieveInventoryAdjustment) after the endpoint URL
+is updated to conform to the standard convention.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.deprecatedGetAdjustment({
+ adjustmentId: "adjustment_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InventoryDeprecatedGetAdjustmentRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.getAdjustment({ ...params }) -> Square.GetInventoryAdjustmentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns the [InventoryAdjustment](entity:InventoryAdjustment) object
+with the provided `adjustment_id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.getAdjustment({
+ adjustmentId: "adjustment_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InventoryGetAdjustmentRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.deprecatedBatchChange({ ...params }) -> Square.BatchChangeInventoryResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deprecated version of [BatchChangeInventory](api-endpoint:Inventory-BatchChangeInventory) after the endpoint URL
+is updated to conform to the standard convention.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.deprecatedBatchChange({
+ idempotencyKey: "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe",
+ changes: [
+ {
+ type: "PHYSICAL_COUNT",
+ physicalCount: {
+ referenceId: "1536bfbf-efed-48bf-b17d-a197141b2a92",
+ catalogObjectId: "W62UWFY35CWMYGVWK6TWJDNI",
+ state: "IN_STOCK",
+ locationId: "C6W5YS5QM06F5",
+ quantity: "53",
+ teamMemberId: "LRK57NSQ5X7PUD05",
+ occurredAt: "2016-11-16T22:25:24.878Z",
+ },
+ },
+ ],
+ ignoreUnchangedCounts: true,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchChangeInventoryRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.deprecatedBatchGetChanges({ ...params }) -> Square.BatchGetInventoryChangesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deprecated version of [BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInventoryChanges) after the endpoint URL
+is updated to conform to the standard convention.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.deprecatedBatchGetChanges({
+ catalogObjectIds: ["W62UWFY35CWMYGVWK6TWJDNI"],
+ locationIds: ["C6W5YS5QM06F5"],
+ types: ["PHYSICAL_COUNT"],
+ states: ["IN_STOCK"],
+ updatedAfter: "2016-11-01T00:00:00.000Z",
+ updatedBefore: "2016-12-01T00:00:00.000Z",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchRetrieveInventoryChangesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.deprecatedBatchGetCounts({ ...params }) -> Square.BatchGetInventoryCountsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deprecated version of [BatchRetrieveInventoryCounts](api-endpoint:Inventory-BatchRetrieveInventoryCounts) after the endpoint URL
+is updated to conform to the standard convention.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.deprecatedBatchGetCounts({
+ catalogObjectIds: ["W62UWFY35CWMYGVWK6TWJDNI"],
+ locationIds: ["59TNP9SA8VGDA"],
+ updatedAfter: "2016-11-16T00:00:00.000Z",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchGetInventoryCountsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.batchCreateChanges({ ...params }) -> Square.BatchChangeInventoryResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Applies adjustments and counts to the provided item quantities.
+
+On success: returns the current calculated counts for all objects
+referenced in the request.
+On failure: returns a list of related errors.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.batchCreateChanges({
+ idempotencyKey: "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe",
+ changes: [
+ {
+ type: "PHYSICAL_COUNT",
+ physicalCount: {
+ referenceId: "1536bfbf-efed-48bf-b17d-a197141b2a92",
+ catalogObjectId: "W62UWFY35CWMYGVWK6TWJDNI",
+ state: "IN_STOCK",
+ locationId: "C6W5YS5QM06F5",
+ quantity: "53",
+ teamMemberId: "LRK57NSQ5X7PUD05",
+ occurredAt: "2016-11-16T22:25:24.878Z",
+ },
+ },
+ ],
+ ignoreUnchangedCounts: true,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchChangeInventoryRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.batchGetChanges({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns historical physical counts and adjustments based on the
+provided filter criteria.
+
+Results are paginated and sorted in ascending order according their
+`occurred_at` timestamp (oldest first).
+
+BatchRetrieveInventoryChanges is a catch-all query endpoint for queries
+that cannot be handled by other, simpler endpoints.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.inventory.batchGetChanges({
+ catalogObjectIds: ["W62UWFY35CWMYGVWK6TWJDNI"],
+ locationIds: ["C6W5YS5QM06F5"],
+ types: ["PHYSICAL_COUNT"],
+ states: ["IN_STOCK"],
+ updatedAfter: "2016-11-01T00:00:00.000Z",
+ updatedBefore: "2016-12-01T00:00:00.000Z",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.inventory.batchGetChanges({
+ catalogObjectIds: ["W62UWFY35CWMYGVWK6TWJDNI"],
+ locationIds: ["C6W5YS5QM06F5"],
+ types: ["PHYSICAL_COUNT"],
+ states: ["IN_STOCK"],
+ updatedAfter: "2016-11-01T00:00:00.000Z",
+ updatedBefore: "2016-12-01T00:00:00.000Z",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchRetrieveInventoryChangesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.batchGetCounts({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns current counts for the provided
+[CatalogObject](entity:CatalogObject)s at the requested
+[Location](entity:Location)s.
+
+Results are paginated and sorted in descending order according to their
+`calculated_at` timestamp (newest first).
+
+When `updated_after` is specified, only counts that have changed since that
+time (based on the server timestamp for the most recent change) are
+returned. This allows clients to perform a "sync" operation, for example
+in response to receiving a Webhook notification.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.inventory.batchGetCounts({
+ catalogObjectIds: ["W62UWFY35CWMYGVWK6TWJDNI"],
+ locationIds: ["59TNP9SA8VGDA"],
+ updatedAfter: "2016-11-16T00:00:00.000Z",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.inventory.batchGetCounts({
+ catalogObjectIds: ["W62UWFY35CWMYGVWK6TWJDNI"],
+ locationIds: ["59TNP9SA8VGDA"],
+ updatedAfter: "2016-11-16T00:00:00.000Z",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchGetInventoryCountsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.deprecatedGetPhysicalCount({ ...params }) -> Square.GetInventoryPhysicalCountResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deprecated version of [RetrieveInventoryPhysicalCount](api-endpoint:Inventory-RetrieveInventoryPhysicalCount) after the endpoint URL
+is updated to conform to the standard convention.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.deprecatedGetPhysicalCount({
+ physicalCountId: "physical_count_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InventoryDeprecatedGetPhysicalCountRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.getPhysicalCount({ ...params }) -> Square.GetInventoryPhysicalCountResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns the [InventoryPhysicalCount](entity:InventoryPhysicalCount)
+object with the provided `physical_count_id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.getPhysicalCount({
+ physicalCountId: "physical_count_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InventoryGetPhysicalCountRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.getTransfer({ ...params }) -> Square.GetInventoryTransferResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns the [InventoryTransfer](entity:InventoryTransfer) object
+with the provided `transfer_id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.inventory.getTransfer({
+ transferId: "transfer_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InventoryGetTransferRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.get({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves the current calculated stock count for a given
+[CatalogObject](entity:CatalogObject) at a given set of
+[Location](entity:Location)s. Responses are paginated and unsorted.
+For more sophisticated queries, use a batch endpoint.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.inventory.get({
+ catalogObjectId: "catalog_object_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.inventory.get({
+ catalogObjectId: "catalog_object_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InventoryGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.inventory.changes({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a set of physical counts and inventory adjustments for the
+provided [CatalogObject](entity:CatalogObject) at the requested
+[Location](entity:Location)s.
+
+You can achieve the same result by calling [BatchRetrieveInventoryChanges](api-endpoint:Inventory-BatchRetrieveInventoryChanges)
+and having the `catalog_object_ids` list contain a single element of the `CatalogObject` ID.
+
+Results are paginated and sorted in descending order according to their
+`occurred_at` timestamp (newest first).
+
+There are no limits on how far back the caller can page. This endpoint can be
+used to display recent changes for a specific item. For more
+sophisticated queries, use a batch endpoint.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.inventory.changes({
+ catalogObjectId: "catalog_object_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.inventory.changes({
+ catalogObjectId: "catalog_object_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InventoryChangesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Inventory.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Invoices
+
+client.invoices.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a list of invoices for a given location. The response
+is paginated. If truncated, the response includes a `cursor` that you
+use in a subsequent request to retrieve the next set of invoices.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.invoices.list({
+ locationId: "location_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.invoices.list({
+ locationId: "location_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InvoicesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.create({ ...params }) -> Square.CreateInvoiceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a draft [invoice](entity:Invoice)
+for an order created using the Orders API.
+
+A draft invoice remains in your account and no action is taken.
+You must publish the invoice before Square can process it (send it to the customer's email address or charge the customer’s card on file).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.create({
+ invoice: {
+ locationId: "ES0RJRZYEC39A",
+ orderId: "CAISENgvlJ6jLWAzERDzjyHVybY",
+ primaryRecipient: {
+ customerId: "JDKYHBWT1D4F8MFH63DBMEN8Y4",
+ },
+ paymentRequests: [
+ {
+ requestType: "BALANCE",
+ dueDate: "2030-01-24",
+ tippingEnabled: true,
+ automaticPaymentSource: "NONE",
+ reminders: [
+ {
+ relativeScheduledDays: -1,
+ message: "Your invoice is due tomorrow",
+ },
+ ],
+ },
+ ],
+ deliveryMethod: "EMAIL",
+ invoiceNumber: "inv-100",
+ title: "Event Planning Services",
+ description: "We appreciate your business!",
+ scheduledAt: "2030-01-13T10:00:00Z",
+ acceptedPaymentMethods: {
+ card: true,
+ squareGiftCard: false,
+ bankAccount: false,
+ buyNowPayLater: false,
+ cashAppPay: false,
+ },
+ customFields: [
+ {
+ label: "Event Reference Number",
+ value: "Ref. #1234",
+ placement: "ABOVE_LINE_ITEMS",
+ },
+ {
+ label: "Terms of Service",
+ value: "The terms of service are...",
+ placement: "BELOW_LINE_ITEMS",
+ },
+ ],
+ saleOrServiceDate: "2030-01-24",
+ storePaymentMethodEnabled: false,
+ },
+ idempotencyKey: "ce3748f9-5fc1-4762-aa12-aae5e843f1f4",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateInvoiceRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.search({ ...params }) -> Square.SearchInvoicesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for invoices from a location specified in
+the filter. You can optionally specify customers in the filter for whom to
+retrieve invoices. In the current implementation, you can only specify one location and
+optionally one customer.
+
+The response is paginated. If truncated, the response includes a `cursor`
+that you use in a subsequent request to retrieve the next set of invoices.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.search({
+ query: {
+ filter: {
+ locationIds: ["ES0RJRZYEC39A"],
+ customerIds: ["JDKYHBWT1D4F8MFH63DBMEN8Y4"],
+ },
+ sort: {
+ field: "INVOICE_SORT_DATE",
+ order: "DESC",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchInvoicesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.get({ ...params }) -> Square.GetInvoiceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves an invoice by invoice ID.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.get({
+ invoiceId: "invoice_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InvoicesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.update({ ...params }) -> Square.UpdateInvoiceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates an invoice. This endpoint supports sparse updates, so you only need
+to specify the fields you want to change along with the required `version` field.
+Some restrictions apply to updating invoices. For example, you cannot change the
+`order_id` or `location_id` field.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.update({
+ invoiceId: "invoice_id",
+ invoice: {
+ version: 1,
+ paymentRequests: [
+ {
+ uid: "2da7964f-f3d2-4f43-81e8-5aa220bf3355",
+ tippingEnabled: false,
+ },
+ ],
+ },
+ idempotencyKey: "4ee82288-0910-499e-ab4c-5d0071dad1be",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateInvoiceRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.delete({ ...params }) -> Square.DeleteInvoiceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes the specified invoice. When an invoice is deleted, the
+associated order status changes to CANCELED. You can only delete a draft
+invoice (you cannot delete a published invoice, including one that is scheduled for processing).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.delete({
+ invoiceId: "invoice_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.InvoicesDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.createInvoiceAttachment({ ...params }) -> Square.CreateInvoiceAttachmentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Uploads a file and attaches it to an invoice. This endpoint accepts HTTP multipart/form-data file uploads
+with a JSON `request` part and a `file` part. The `file` part must be a `readable stream` that contains a file
+in a supported format: GIF, JPEG, PNG, TIFF, BMP, or PDF.
+
+Invoices can have up to 10 attachments with a total file size of 25 MB. Attachments can be added only to invoices
+in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.createInvoiceAttachment({
+ invoiceId: "invoice_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateInvoiceAttachmentRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.deleteInvoiceAttachment({ ...params }) -> Square.DeleteInvoiceAttachmentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Removes an attachment from an invoice and permanently deletes the file. Attachments can be removed only
+from invoices in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.deleteInvoiceAttachment({
+ invoiceId: "invoice_id",
+ attachmentId: "attachment_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DeleteInvoiceAttachmentRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.cancel({ ...params }) -> Square.CancelInvoiceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels an invoice. The seller cannot collect payments for
+the canceled invoice.
+
+You cannot cancel an invoice in the `DRAFT` state or in a terminal state: `PAID`, `REFUNDED`, `CANCELED`, or `FAILED`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.cancel({
+ invoiceId: "invoice_id",
+ version: 0,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CancelInvoiceRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.invoices.publish({ ...params }) -> Square.PublishInvoiceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Publishes the specified draft invoice.
+
+After an invoice is published, Square
+follows up based on the invoice configuration. For example, Square
+sends the invoice to the customer's email address, charges the customer's card on file, or does
+nothing. Square also makes the invoice available on a Square-hosted invoice page.
+
+The invoice `status` also changes from `DRAFT` to a status
+based on the invoice configuration. For example, the status changes to `UNPAID` if
+Square emails the invoice or `PARTIALLY_PAID` if Square charges a card on file for a portion of the
+invoice amount.
+
+In addition to the required `ORDERS_WRITE` and `INVOICES_WRITE` permissions, `CUSTOMERS_READ`
+and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.invoices.publish({
+ invoiceId: "invoice_id",
+ version: 1,
+ idempotencyKey: "32da42d0-1997-41b0-826b-f09464fc2c2e",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PublishInvoiceRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Invoices.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Locations
+
+client.locations.list() -> Square.ListLocationsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Provides details about all of the seller's [locations](https://developer.squareup.com/docs/locations-api),
+including those with an inactive status. Locations are listed alphabetically by `name`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.list();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `Locations.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.create({ ...params }) -> Square.CreateLocationResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a [location](https://developer.squareup.com/docs/locations-api).
+Creating new locations allows for separate configuration of receipt layouts, item prices,
+and sales reports. Developers can use locations to separate sales activity through applications
+that integrate with Square from sales activity elsewhere in a seller's account.
+Locations created programmatically with the Locations API last forever and
+are visible to the seller for their own management. Therefore, ensure that
+each location has a sensible and unique name.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.create({
+ location: {
+ name: "Midtown",
+ address: {
+ addressLine1: "1234 Peachtree St. NE",
+ locality: "Atlanta",
+ administrativeDistrictLevel1: "GA",
+ postalCode: "30309",
+ },
+ description: "Midtown Atlanta store",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateLocationRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Locations.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.get({ ...params }) -> Square.GetLocationResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves details of a single location. Specify "main"
+as the location ID to retrieve details of the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.get({
+ locationId: "location_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.LocationsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Locations.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.update({ ...params }) -> Square.UpdateLocationResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a [location](https://developer.squareup.com/docs/locations-api).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.update({
+ locationId: "location_id",
+ location: {
+ businessHours: {
+ periods: [
+ {
+ dayOfWeek: "FRI",
+ startLocalTime: "07:00",
+ endLocalTime: "18:00",
+ },
+ {
+ dayOfWeek: "SAT",
+ startLocalTime: "07:00",
+ endLocalTime: "18:00",
+ },
+ {
+ dayOfWeek: "SUN",
+ startLocalTime: "09:00",
+ endLocalTime: "15:00",
+ },
+ ],
+ },
+ description: "Midtown Atlanta store - Open weekends",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateLocationRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Locations.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.checkouts({ ...params }) -> Square.CreateCheckoutResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Links a `checkoutId` to a `checkout_page_url` that customers are
+directed to in order to provide their payment information using a
+payment processing workflow hosted on connect.squareup.com.
+
+NOTE: The Checkout API has been updated with new features.
+For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-highlights).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.checkouts({
+ locationId: "location_id",
+ idempotencyKey: "86ae1696-b1e3-4328-af6d-f1e04d947ad6",
+ order: {
+ order: {
+ locationId: "location_id",
+ referenceId: "reference_id",
+ customerId: "customer_id",
+ lineItems: [
+ {
+ name: "Printed T Shirt",
+ quantity: "2",
+ appliedTaxes: [
+ {
+ taxUid: "38ze1696-z1e3-5628-af6d-f1e04d947fg3",
+ },
+ ],
+ appliedDiscounts: [
+ {
+ discountUid: "56ae1696-z1e3-9328-af6d-f1e04d947gd4",
+ },
+ ],
+ basePriceMoney: {
+ amount: 1500,
+ currency: "USD",
+ },
+ },
+ {
+ name: "Slim Jeans",
+ quantity: "1",
+ basePriceMoney: {
+ amount: 2500,
+ currency: "USD",
+ },
+ },
+ {
+ name: "Woven Sweater",
+ quantity: "3",
+ basePriceMoney: {
+ amount: 3500,
+ currency: "USD",
+ },
+ },
+ ],
+ taxes: [
+ {
+ uid: "38ze1696-z1e3-5628-af6d-f1e04d947fg3",
+ type: "INCLUSIVE",
+ percentage: "7.75",
+ scope: "LINE_ITEM",
+ },
+ ],
+ discounts: [
+ {
+ uid: "56ae1696-z1e3-9328-af6d-f1e04d947gd4",
+ type: "FIXED_AMOUNT",
+ amountMoney: {
+ amount: 100,
+ currency: "USD",
+ },
+ scope: "LINE_ITEM",
+ },
+ ],
+ },
+ idempotencyKey: "12ae1696-z1e3-4328-af6d-f1e04d947gd4",
+ },
+ askForShippingAddress: true,
+ merchantSupportEmail: "merchant+support@website.com",
+ prePopulateBuyerEmail: "example@email.com",
+ prePopulateShippingAddress: {
+ addressLine1: "1455 Market St.",
+ addressLine2: "Suite 600",
+ locality: "San Francisco",
+ administrativeDistrictLevel1: "CA",
+ postalCode: "94103",
+ country: "US",
+ firstName: "Jane",
+ lastName: "Doe",
+ },
+ redirectUrl: "https://merchant.website.com/order-confirm",
+ additionalRecipients: [
+ {
+ locationId: "057P5VYJ4A5X1",
+ description: "Application fees",
+ amountMoney: {
+ amount: 60,
+ currency: "USD",
+ },
+ },
+ ],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateCheckoutRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Locations.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Loyalty
+
+client.loyalty.searchEvents({ ...params }) -> Square.SearchLoyaltyEventsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for loyalty events.
+
+A Square loyalty program maintains a ledger of events that occur during the lifetime of a
+buyer's loyalty account. Each change in the point balance
+(for example, points earned, points redeemed, and points expired) is
+recorded in the ledger. Using this endpoint, you can search the ledger for events.
+
+Search results are sorted by `created_at` in descending order.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.searchEvents({
+ query: {
+ filter: {
+ orderFilter: {
+ orderId: "PyATxhYLfsMqpVkcKJITPydgEYfZY",
+ },
+ },
+ },
+ limit: 30,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchLoyaltyEventsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Loyalty.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Merchants
+
+client.merchants.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Provides details about the merchant associated with a given access token.
+
+The access token used to connect your application to a Square seller is associated
+with a single merchant. That means that `ListMerchants` returns a list
+with a single `Merchant` object. You can specify your personal access token
+to get your own merchant information or specify an OAuth token to get the
+information for the merchant that granted your application access.
+
+If you know the merchant ID, you can also use the [RetrieveMerchant](api-endpoint:Merchants-RetrieveMerchant)
+endpoint to retrieve the merchant information.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.merchants.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.merchants.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.MerchantsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Merchants.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.get({ ...params }) -> Square.GetMerchantResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves the `Merchant` object for the given `merchant_id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.get({
+ merchantId: "merchant_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.MerchantsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Merchants.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Checkout
+
+client.checkout.retrieveLocationSettings({ ...params }) -> Square.RetrieveLocationSettingsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves the location-level settings for a Square-hosted checkout page.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.checkout.retrieveLocationSettings({
+ locationId: "location_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.RetrieveLocationSettingsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Checkout.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.checkout.updateLocationSettings({ ...params }) -> Square.UpdateLocationSettingsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates the location-level settings for a Square-hosted checkout page.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.checkout.updateLocationSettings({
+ locationId: "location_id",
+ locationSettings: {},
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateLocationSettingsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Checkout.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.checkout.retrieveMerchantSettings() -> Square.RetrieveMerchantSettingsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves the merchant-level settings for a Square-hosted checkout page.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.checkout.retrieveMerchantSettings();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `Checkout.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.checkout.updateMerchantSettings({ ...params }) -> Square.UpdateMerchantSettingsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates the merchant-level settings for a Square-hosted checkout page.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.checkout.updateMerchantSettings({
+ merchantSettings: {},
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateMerchantSettingsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Checkout.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Orders
+
+client.orders.create({ ...params }) -> Square.CreateOrderResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a new [order](entity:Order) that can include information about products for
+purchase and settings to apply to the purchase.
+
+To pay for a created order, see
+[Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders).
+
+You can modify open orders using the [UpdateOrder](api-endpoint:Orders-UpdateOrder) endpoint.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.create({
+ order: {
+ locationId: "057P5VYJ4A5X1",
+ referenceId: "my-order-001",
+ lineItems: [
+ {
+ name: "New York Strip Steak",
+ quantity: "1",
+ basePriceMoney: {
+ amount: 1599,
+ currency: "USD",
+ },
+ },
+ {
+ quantity: "2",
+ catalogObjectId: "BEMYCSMIJL46OCDV4KYIKXIB",
+ modifiers: [
+ {
+ catalogObjectId: "CHQX7Y4KY6N5KINJKZCFURPZ",
+ },
+ ],
+ appliedDiscounts: [
+ {
+ discountUid: "one-dollar-off",
+ },
+ ],
+ },
+ ],
+ taxes: [
+ {
+ uid: "state-sales-tax",
+ name: "State Sales Tax",
+ percentage: "9",
+ scope: "ORDER",
+ },
+ ],
+ discounts: [
+ {
+ uid: "labor-day-sale",
+ name: "Labor Day Sale",
+ percentage: "5",
+ scope: "ORDER",
+ },
+ {
+ uid: "membership-discount",
+ catalogObjectId: "DB7L55ZH2BGWI4H23ULIWOQ7",
+ scope: "ORDER",
+ },
+ {
+ uid: "one-dollar-off",
+ name: "Sale - $1.00 off",
+ amountMoney: {
+ amount: 100,
+ currency: "USD",
+ },
+ scope: "LINE_ITEM",
+ },
+ ],
+ },
+ idempotencyKey: "8193148c-9586-11e6-99f9-28cfe92138cf",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateOrderRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Orders.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.batchGet({ ...params }) -> Square.BatchGetOrdersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a set of [orders](entity:Order) by their IDs.
+
+If a given order ID does not exist, the ID is ignored instead of generating an error.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.batchGet({
+ locationId: "057P5VYJ4A5X1",
+ orderIds: ["CAISEM82RcpmcFBM0TfOyiHV3es", "CAISENgvlJ6jLWAzERDzjyHVybY"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchGetOrdersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Orders.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.calculate({ ...params }) -> Square.CalculateOrderResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Enables applications to preview order pricing without creating an order.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.calculate({
+ order: {
+ locationId: "D7AVYMEAPJ3A3",
+ lineItems: [
+ {
+ name: "Item 1",
+ quantity: "1",
+ basePriceMoney: {
+ amount: 500,
+ currency: "USD",
+ },
+ },
+ {
+ name: "Item 2",
+ quantity: "2",
+ basePriceMoney: {
+ amount: 300,
+ currency: "USD",
+ },
+ },
+ ],
+ discounts: [
+ {
+ name: "50% Off",
+ percentage: "50",
+ scope: "ORDER",
+ },
+ ],
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CalculateOrderRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Orders.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.clone({ ...params }) -> Square.CloneOrderResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a new order, in the `DRAFT` state, by duplicating an existing order. The newly created order has
+only the core fields (such as line items, taxes, and discounts) copied from the original order.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.clone({
+ orderId: "ZAISEM52YcpmcWAzERDOyiWS123",
+ version: 3,
+ idempotencyKey: "UNIQUE_STRING",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CloneOrderRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Orders.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.search({ ...params }) -> Square.SearchOrdersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Search all orders for one or more locations. Orders include all sales,
+returns, and exchanges regardless of how or when they entered the Square
+ecosystem (such as Point of Sale, Invoices, and Connect APIs).
+
+`SearchOrders` requests need to specify which locations to search and define a
+[SearchOrdersQuery](entity:SearchOrdersQuery) object that controls
+how to sort or filter the results. Your `SearchOrdersQuery` can:
+
+Set filter criteria.
+Set the sort order.
+Determine whether to return results as complete `Order` objects or as
+[OrderEntry](entity:OrderEntry) objects.
+
+Note that details for orders processed with Square Point of Sale while in
+offline mode might not be transmitted to Square for up to 72 hours. Offline
+orders have a `created_at` value that reflects the time the order was created,
+not the time it was subsequently transmitted to Square.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.search({
+ locationIds: ["057P5VYJ4A5X1", "18YC4JDH91E1H"],
+ query: {
+ filter: {
+ stateFilter: {
+ states: ["COMPLETED"],
+ },
+ dateTimeFilter: {
+ closedAt: {
+ startAt: "2018-03-03T20:00:00+00:00",
+ endAt: "2019-03-04T21:54:45+00:00",
+ },
+ },
+ },
+ sort: {
+ sortField: "CLOSED_AT",
+ sortOrder: "DESC",
+ },
+ },
+ limit: 3,
+ returnEntries: true,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchOrdersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Orders.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.get({ ...params }) -> Square.GetOrderResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves an [Order](entity:Order) by ID.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.get({
+ orderId: "order_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.OrdersGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Orders.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.update({ ...params }) -> Square.UpdateOrderResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates an open [order](entity:Order) by adding, replacing, or deleting
+fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated.
+
+An `UpdateOrder` request requires the following:
+
+- The `order_id` in the endpoint path, identifying the order to update.
+- The latest `version` of the order to update.
+- The [sparse order](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders#sparse-order-objects)
+ containing only the fields to update and the version to which the update is
+ being applied.
+- If deleting fields, the [dot notation paths](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders#identifying-fields-to-delete)
+ identifying the fields to clear.
+
+To pay for an order, see
+[Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.update({
+ orderId: "order_id",
+ order: {
+ locationId: "location_id",
+ lineItems: [
+ {
+ uid: "cookie_uid",
+ name: "COOKIE",
+ quantity: "2",
+ basePriceMoney: {
+ amount: 200,
+ currency: "USD",
+ },
+ },
+ ],
+ version: 1,
+ },
+ fieldsToClear: ["discounts"],
+ idempotencyKey: "UNIQUE_STRING",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateOrderRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Orders.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.pay({ ...params }) -> Square.PayOrderResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Pay for an [order](entity:Order) using one or more approved [payments](entity:Payment)
+or settle an order with a total of `0`.
+
+The total of the `payment_ids` listed in the request must be equal to the order
+total. Orders with a total amount of `0` can be marked as paid by specifying an empty
+array of `payment_ids` in the request.
+
+To be used with `PayOrder`, a payment must:
+
+- Reference the order by specifying the `order_id` when [creating the payment](api-endpoint:Payments-CreatePayment).
+ Any approved payments that reference the same `order_id` not specified in the
+ `payment_ids` is canceled.
+- Be approved with [delayed capture](https://developer.squareup.com/docs/payments-api/take-payments/card-payments/delayed-capture).
+Using a delayed capture payment with `PayOrder` completes the approved payment.
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.pay({
+ orderId: "order_id",
+ idempotencyKey: "c043a359-7ad9-4136-82a9-c3f1d66dcbff",
+ paymentIds: ["EnZdNAlWCmfh6Mt5FMNST1o7taB", "0LRiVlbXVwe8ozu4KbZxd12mvaB"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PayOrderRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Orders.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Payments
+
+client.payments.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a list of payments taken by the account making the request.
+
+Results are eventually consistent, and new payments or changes to payments might take several
+seconds to appear.
+
+The maximum results per page is 100.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.payments.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.payments.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PaymentsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.payments.create({ ...params }) -> Square.CreatePaymentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a payment using the provided source. You can use this endpoint
+to charge a card (credit/debit card or
+Square gift card) or record a payment that the seller received outside of Square
+(cash payment from a buyer or a payment that an external entity
+processed on behalf of the seller).
+
+The endpoint creates a
+`Payment` object and returns it in the response.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.payments.create({
+ sourceId: "ccof:GaJGNaZa8x4OgDJn4GB",
+ idempotencyKey: "7b0f3ec5-086a-4871-8f13-3c81b3875218",
+ amountMoney: {
+ amount: 1000,
+ currency: "USD",
+ },
+ appFeeMoney: {
+ amount: 10,
+ currency: "USD",
+ },
+ autocomplete: true,
+ customerId: "W92WH6P11H4Z77CTET0RNTGFW8",
+ locationId: "L88917AVBK2S5",
+ referenceId: "123456",
+ note: "Brief description",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreatePaymentRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.payments.cancelByIdempotencyKey({ ...params }) -> Square.CancelPaymentByIdempotencyKeyResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels (voids) a payment identified by the idempotency key that is specified in the
+request.
+
+Use this method when the status of a `CreatePayment` request is unknown (for example, after you send a
+`CreatePayment` request, a network error occurs and you do not get a response). In this case, you can
+direct Square to cancel the payment using this endpoint. In the request, you provide the same
+idempotency key that you provided in your `CreatePayment` request that you want to cancel. After
+canceling the payment, you can submit your `CreatePayment` request again.
+
+Note that if no payment with the specified idempotency key is found, no action is taken and the endpoint
+returns successfully.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.payments.cancelByIdempotencyKey({
+ idempotencyKey: "a7e36d40-d24b-11e8-b568-0800200c9a66",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CancelPaymentByIdempotencyKeyRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.payments.get({ ...params }) -> Square.GetPaymentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves details for a specific payment.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.payments.get({
+ paymentId: "payment_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PaymentsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.payments.update({ ...params }) -> Square.UpdatePaymentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a payment with the APPROVED status.
+You can update the `amount_money` and `tip_money` using this endpoint.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.payments.update({
+ paymentId: "payment_id",
+ payment: {
+ amountMoney: {
+ amount: 1000,
+ currency: "USD",
+ },
+ tipMoney: {
+ amount: 100,
+ currency: "USD",
+ },
+ versionToken: "ODhwVQ35xwlzRuoZEwKXucfu7583sPTzK48c5zoGd0g6o",
+ },
+ idempotencyKey: "956f8b13-e4ec-45d6-85e8-d1d95ef0c5de",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdatePaymentRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.payments.cancel({ ...params }) -> Square.CancelPaymentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels (voids) a payment. You can use this endpoint to cancel a payment with
+the APPROVED `status`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.payments.cancel({
+ paymentId: "payment_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PaymentsCancelRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.payments.complete({ ...params }) -> Square.CompletePaymentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Completes (captures) a payment.
+By default, payments are set to complete immediately after they are created.
+
+You can use this endpoint to complete a payment with the APPROVED `status`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.payments.complete({
+ paymentId: "payment_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CompletePaymentRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Payouts
+
+client.payouts.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a list of all payouts for the default location.
+You can filter payouts by location ID, status, time range, and order them in ascending or descending order.
+To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.payouts.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.payouts.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PayoutsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payouts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.payouts.get({ ...params }) -> Square.GetPayoutResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves details of a specific payout identified by a payout ID.
+To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.payouts.get({
+ payoutId: "payout_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PayoutsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payouts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.payouts.listEntries({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a list of all payout entries for a specific payout.
+To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.payouts.listEntries({
+ payoutId: "payout_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.payouts.listEntries({
+ payoutId: "payout_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PayoutsListEntriesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Payouts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Refunds
+
+client.refunds.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a list of refunds for the account making the request.
+
+Results are eventually consistent, and new refunds or changes to refunds might take several
+seconds to appear.
+
+The maximum results per page is 100.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.refunds.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.refunds.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.RefundsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Refunds.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.refunds.refundPayment({ ...params }) -> Square.RefundPaymentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Refunds a payment. You can refund the entire payment amount or a
+portion of it. You can use this endpoint to refund a card payment or record a
+refund of a cash or external payment. For more information, see
+[Refund Payment](https://developer.squareup.com/docs/payments-api/refund-payments).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.refunds.refundPayment({
+ idempotencyKey: "9b7f2dcf-49da-4411-b23e-a2d6af21333a",
+ amountMoney: {
+ amount: 1000,
+ currency: "USD",
+ },
+ appFeeMoney: {
+ amount: 10,
+ currency: "USD",
+ },
+ paymentId: "R2B3Z8WMVt3EAmzYWLZvz7Y69EbZY",
+ reason: "Example",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.RefundPaymentRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Refunds.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.refunds.get({ ...params }) -> Square.GetPaymentRefundResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a specific refund using the `refund_id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.refunds.get({
+ refundId: "refund_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.RefundsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Refunds.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Sites
+
+client.sites.list() -> Square.ListSitesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the Square Online sites that belong to a seller. Sites are listed in descending order by the `created_at` date.
+
+**Note:** Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.sites.list();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `Sites.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Snippets
+
+client.snippets.get({ ...params }) -> Square.GetSnippetResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves your snippet from a Square Online site. A site can contain snippets from multiple snippet applications, but you can retrieve only the snippet that was added by your application.
+
+You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller.
+
+**Note:** Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.snippets.get({
+ siteId: "site_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SnippetsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Snippets.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.snippets.upsert({ ...params }) -> Square.UpsertSnippetResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Adds a snippet to a Square Online site or updates the existing snippet on the site.
+The snippet code is appended to the end of the `head` element on every page of the site, except checkout pages. A snippet application can add one snippet to a given site.
+
+You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller.
+
+**Note:** Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.snippets.upsert({
+ siteId: "site_id",
+ snippet: {
+ content: "",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpsertSnippetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Snippets.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.snippets.delete({ ...params }) -> Square.DeleteSnippetResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Removes your snippet from a Square Online site.
+
+You can call [ListSites](api-endpoint:Sites-ListSites) to get the IDs of the sites that belong to a seller.
+
+**Note:** Square Online APIs are publicly available as part of an early access program. For more information, see [Early access program for Square Online APIs](https://developer.squareup.com/docs/online-api#early-access-program-for-square-online-apis).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.snippets.delete({
+ siteId: "site_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SnippetsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Snippets.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Subscriptions
+
+client.subscriptions.create({ ...params }) -> Square.CreateSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Enrolls a customer in a subscription.
+
+If you provide a card on file in the request, Square charges the card for
+the subscription. Otherwise, Square sends an invoice to the customer's email
+address. The subscription starts immediately, unless the request includes
+the optional `start_date`. Each individual subscription is associated with a particular location.
+
+For more information, see [Create a subscription](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions#create-a-subscription).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.create({
+ idempotencyKey: "8193148c-9586-11e6-99f9-28cfe92138cf",
+ locationId: "S8GWD5R9QB376",
+ planVariationId: "6JHXF3B2CW3YKHDV4XEM674H",
+ customerId: "CHFGVKYY8RSV93M5KCYTG4PN0G",
+ startDate: "2023-06-20",
+ cardId: "ccof:qy5x8hHGYsgLrp4Q4GB",
+ timezone: "America/Los_Angeles",
+ source: {
+ name: "My Application",
+ },
+ phases: [
+ {
+ ordinal: 0,
+ orderTemplateId: "U2NaowWxzXwpsZU697x7ZHOAnCNZY",
+ },
+ ],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateSubscriptionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.bulkSwapPlan({ ...params }) -> Square.BulkSwapPlanResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Schedules a plan variation change for all active subscriptions under a given plan
+variation. For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.bulkSwapPlan({
+ newPlanVariationId: "FQ7CDXXWSLUJRPM3GFJSJGZ7",
+ oldPlanVariationId: "6JHXF3B2CW3YKHDV4XEM674H",
+ locationId: "S8GWD5R9QB376",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BulkSwapPlanRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.search({ ...params }) -> Square.SearchSubscriptionsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for subscriptions.
+
+Results are ordered chronologically by subscription creation date. If
+the request specifies more than one location ID,
+the endpoint orders the result
+by location ID, and then by creation date within each location. If no locations are given
+in the query, all locations are searched.
+
+You can also optionally specify `customer_ids` to search by customer.
+If left unset, all customers
+associated with the specified locations are returned.
+If the request specifies customer IDs, the endpoint orders results
+first by location, within location by customer ID, and within
+customer by subscription creation date.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.search({
+ query: {
+ filter: {
+ customerIds: ["CHFGVKYY8RSV93M5KCYTG4PN0G"],
+ locationIds: ["S8GWD5R9QB376"],
+ sourceNames: ["My App"],
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchSubscriptionsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.get({ ...params }) -> Square.GetSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a specific subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.get({
+ subscriptionId: "subscription_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SubscriptionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.update({ ...params }) -> Square.UpdateSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a subscription by modifying or clearing `subscription` field values.
+To clear a field, set its value to `null`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.update({
+ subscriptionId: "subscription_id",
+ subscription: {
+ cardId: "{NEW CARD ID}",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateSubscriptionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.deleteAction({ ...params }) -> Square.DeleteSubscriptionActionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a scheduled action for a subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.deleteAction({
+ subscriptionId: "subscription_id",
+ actionId: "action_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SubscriptionsDeleteActionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.changeBillingAnchorDate({ ...params }) -> Square.ChangeBillingAnchorDateResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Changes the [billing anchor date](https://developer.squareup.com/docs/subscriptions-api/subscription-billing#billing-dates)
+for a subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.changeBillingAnchorDate({
+ subscriptionId: "subscription_id",
+ monthlyBillingAnchorDate: 1,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.ChangeBillingAnchorDateRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.cancel({ ...params }) -> Square.CancelSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Schedules a `CANCEL` action to cancel an active subscription. This
+sets the `canceled_date` field to the end of the active billing period. After this date,
+the subscription status changes from ACTIVE to CANCELED.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.cancel({
+ subscriptionId: "subscription_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SubscriptionsCancelRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.listEvents({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists all [events](https://developer.squareup.com/docs/subscriptions-api/actions-events) for a specific subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.subscriptions.listEvents({
+ subscriptionId: "subscription_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.subscriptions.listEvents({
+ subscriptionId: "subscription_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SubscriptionsListEventsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.pause({ ...params }) -> Square.PauseSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Schedules a `PAUSE` action to pause an active subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.pause({
+ subscriptionId: "subscription_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.PauseSubscriptionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.resume({ ...params }) -> Square.ResumeSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Schedules a `RESUME` action to resume a paused or a deactivated subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.resume({
+ subscriptionId: "subscription_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.ResumeSubscriptionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.subscriptions.swapPlan({ ...params }) -> Square.SwapPlanResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Schedules a `SWAP_PLAN` action to swap a subscription plan variation in an existing subscription.
+For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.subscriptions.swapPlan({
+ subscriptionId: "subscription_id",
+ newPlanVariationId: "FQ7CDXXWSLUJRPM3GFJSJGZ7",
+ phases: [
+ {
+ ordinal: 0,
+ orderTemplateId: "uhhnjH9osVv3shUADwaC0b3hNxQZY",
+ },
+ ],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SwapPlanRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## TeamMembers
+
+client.teamMembers.create({ ...params }) -> Square.CreateTeamMemberResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a single `TeamMember` object. The `TeamMember` object is returned on successful creates.
+You must provide the following values in your request to this endpoint:
+
+- `given_name`
+- `family_name`
+
+Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#createteammember).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.teamMembers.create({
+ idempotencyKey: "idempotency-key-0",
+ teamMember: {
+ referenceId: "reference_id_1",
+ status: "ACTIVE",
+ givenName: "Joe",
+ familyName: "Doe",
+ emailAddress: "joe_doe@gmail.com",
+ phoneNumber: "+14159283333",
+ assignedLocations: {
+ assignmentType: "EXPLICIT_LOCATIONS",
+ locationIds: ["YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT"],
+ },
+ wageSetting: {
+ jobAssignments: [
+ {
+ payType: "SALARY",
+ annualRate: {
+ amount: 3000000,
+ currency: "USD",
+ },
+ weeklyHours: 40,
+ jobId: "FjS8x95cqHiMenw4f1NAUH4P",
+ },
+ {
+ payType: "HOURLY",
+ hourlyRate: {
+ amount: 2000,
+ currency: "USD",
+ },
+ jobId: "VDNpRv8da51NU8qZFC5zDWpF",
+ },
+ ],
+ isOvertimeExempt: true,
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateTeamMemberRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMembers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.teamMembers.batchCreate({ ...params }) -> Square.BatchCreateTeamMembersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates multiple `TeamMember` objects. The created `TeamMember` objects are returned on successful creates.
+This process is non-transactional and processes as much of the request as possible. If one of the creates in
+the request cannot be successfully processed, the request is not marked as failed, but the body of the response
+contains explicit error information for the failed create.
+
+Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#bulk-create-team-members).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.teamMembers.batchCreate({
+ teamMembers: {
+ "idempotency-key-1": {
+ teamMember: {
+ referenceId: "reference_id_1",
+ givenName: "Joe",
+ familyName: "Doe",
+ emailAddress: "joe_doe@gmail.com",
+ phoneNumber: "+14159283333",
+ assignedLocations: {
+ assignmentType: "EXPLICIT_LOCATIONS",
+ locationIds: ["YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT"],
+ },
+ },
+ },
+ "idempotency-key-2": {
+ teamMember: {
+ referenceId: "reference_id_2",
+ givenName: "Jane",
+ familyName: "Smith",
+ emailAddress: "jane_smith@gmail.com",
+ phoneNumber: "+14159223334",
+ assignedLocations: {
+ assignmentType: "ALL_CURRENT_AND_FUTURE_LOCATIONS",
+ },
+ },
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchCreateTeamMembersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMembers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.teamMembers.batchUpdate({ ...params }) -> Square.BatchUpdateTeamMembersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates multiple `TeamMember` objects. The updated `TeamMember` objects are returned on successful updates.
+This process is non-transactional and processes as much of the request as possible. If one of the updates in
+the request cannot be successfully processed, the request is not marked as failed, but the body of the response
+contains explicit error information for the failed update.
+Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#bulk-update-team-members).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.teamMembers.batchUpdate({
+ teamMembers: {
+ "AFMwA08kR-MIF-3Vs0OE": {
+ teamMember: {
+ referenceId: "reference_id_2",
+ isOwner: false,
+ status: "ACTIVE",
+ givenName: "Jane",
+ familyName: "Smith",
+ emailAddress: "jane_smith@gmail.com",
+ phoneNumber: "+14159223334",
+ assignedLocations: {
+ assignmentType: "ALL_CURRENT_AND_FUTURE_LOCATIONS",
+ },
+ },
+ },
+ "fpgteZNMaf0qOK-a4t6P": {
+ teamMember: {
+ referenceId: "reference_id_1",
+ isOwner: false,
+ status: "ACTIVE",
+ givenName: "Joe",
+ familyName: "Doe",
+ emailAddress: "joe_doe@gmail.com",
+ phoneNumber: "+14159283333",
+ assignedLocations: {
+ assignmentType: "EXPLICIT_LOCATIONS",
+ locationIds: ["YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT"],
+ },
+ },
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchUpdateTeamMembersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMembers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.teamMembers.search({ ...params }) -> Square.SearchTeamMembersResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a paginated list of `TeamMember` objects for a business.
+The list can be filtered by location IDs, `ACTIVE` or `INACTIVE` status, or whether
+the team member is the Square account owner.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.teamMembers.search({
+ query: {
+ filter: {
+ locationIds: ["0G5P3VGACMMQZ"],
+ status: "ACTIVE",
+ },
+ },
+ limit: 10,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchTeamMembersRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMembers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.teamMembers.get({ ...params }) -> Square.GetTeamMemberResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a `TeamMember` object for the given `TeamMember.id`.
+Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrieve-a-team-member).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.teamMembers.get({
+ teamMemberId: "team_member_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.TeamMembersGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMembers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.teamMembers.update({ ...params }) -> Square.UpdateTeamMemberResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a single `TeamMember` object. The `TeamMember` object is returned on successful updates.
+Learn about [Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#update-a-team-member).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.teamMembers.update({
+ teamMemberId: "team_member_id",
+ body: {
+ teamMember: {
+ referenceId: "reference_id_1",
+ status: "ACTIVE",
+ givenName: "Joe",
+ familyName: "Doe",
+ emailAddress: "joe_doe@gmail.com",
+ phoneNumber: "+14159283333",
+ assignedLocations: {
+ assignmentType: "EXPLICIT_LOCATIONS",
+ locationIds: ["YSGH2WBKG94QZ", "GA2Y9HSJ8KRYT"],
+ },
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.TeamMembersUpdateRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMembers.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Team
+
+client.team.listJobs({ ...params }) -> Square.ListJobsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists jobs in a seller account. Results are sorted by title in ascending order.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.team.listJobs();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.ListJobsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Team.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.team.createJob({ ...params }) -> Square.CreateJobResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a job in a seller account. A job defines a title and tip eligibility. Note that
+compensation is defined in a [job assignment](entity:JobAssignment) in a team member's wage setting.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.team.createJob({
+ job: {
+ title: "Cashier",
+ isTipEligible: true,
+ },
+ idempotencyKey: "idempotency-key-0",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateJobRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Team.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.team.retrieveJob({ ...params }) -> Square.RetrieveJobResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a specified job.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.team.retrieveJob({
+ jobId: "job_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.RetrieveJobRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Team.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.team.updateJob({ ...params }) -> Square.UpdateJobResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates the title or tip eligibility of a job. Changes to the title propagate to all
+`JobAssignment`, `Shift`, and `TeamMemberWage` objects that reference the job ID. Changes to
+tip eligibility propagate to all `TeamMemberWage` objects that reference the job ID.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.team.updateJob({
+ jobId: "job_id",
+ job: {
+ title: "Cashier 1",
+ isTipEligible: true,
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.UpdateJobRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Team.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Terminal
+
+client.terminal.dismissTerminalAction({ ...params }) -> Square.DismissTerminalActionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Dismisses a Terminal action request if the status and type of the request permits it.
+
+See [Link and Dismiss Actions](https://developer.squareup.com/docs/terminal-api/advanced-features/custom-workflows/link-and-dismiss-actions) for more details.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.dismissTerminalAction({
+ actionId: "action_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DismissTerminalActionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Terminal.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.dismissTerminalCheckout({ ...params }) -> Square.DismissTerminalCheckoutResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Dismisses a Terminal checkout request if the status and type of the request permits it.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.dismissTerminalCheckout({
+ checkoutId: "checkout_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DismissTerminalCheckoutRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Terminal.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.dismissTerminalRefund({ ...params }) -> Square.DismissTerminalRefundResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Dismisses a Terminal refund request if the status and type of the request permits it.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.dismissTerminalRefund({
+ terminalRefundId: "terminal_refund_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.DismissTerminalRefundRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Terminal.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Vendors
+
+client.vendors.batchCreate({ ...params }) -> Square.BatchCreateVendorsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates one or more [Vendor](entity:Vendor) objects to represent suppliers to a seller.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.vendors.batchCreate({
+ vendors: {
+ "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe": {
+ name: "Joe's Fresh Seafood",
+ address: {
+ addressLine1: "505 Electric Ave",
+ addressLine2: "Suite 600",
+ locality: "New York",
+ administrativeDistrictLevel1: "NY",
+ postalCode: "10003",
+ country: "US",
+ },
+ contacts: [
+ {
+ name: "Joe Burrow",
+ emailAddress: "joe@joesfreshseafood.com",
+ phoneNumber: "1-212-555-4250",
+ ordinal: 1,
+ },
+ ],
+ accountNumber: "4025391",
+ note: "a vendor",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchCreateVendorsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Vendors.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.vendors.batchGet({ ...params }) -> Square.BatchGetVendorsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves one or more vendors of specified [Vendor](entity:Vendor) IDs.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.vendors.batchGet({
+ vendorIds: ["INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4"],
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchGetVendorsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Vendors.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.vendors.batchUpdate({ ...params }) -> Square.BatchUpdateVendorsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates one or more of existing [Vendor](entity:Vendor) objects as suppliers to a seller.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.vendors.batchUpdate({
+ vendors: {
+ FMCYHBWT1TPL8MFH52PBMEN92A: {
+ vendor: {},
+ },
+ INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4: {
+ vendor: {},
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.BatchUpdateVendorsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Vendors.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.vendors.create({ ...params }) -> Square.CreateVendorResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a single [Vendor](entity:Vendor) object to represent a supplier to a seller.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.vendors.create({
+ idempotencyKey: "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe",
+ vendor: {
+ name: "Joe's Fresh Seafood",
+ address: {
+ addressLine1: "505 Electric Ave",
+ addressLine2: "Suite 600",
+ locality: "New York",
+ administrativeDistrictLevel1: "NY",
+ postalCode: "10003",
+ country: "US",
+ },
+ contacts: [
+ {
+ name: "Joe Burrow",
+ emailAddress: "joe@joesfreshseafood.com",
+ phoneNumber: "1-212-555-4250",
+ ordinal: 1,
+ },
+ ],
+ accountNumber: "4025391",
+ note: "a vendor",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.CreateVendorRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Vendors.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.vendors.search({ ...params }) -> Square.SearchVendorsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for vendors using a filter against supported [Vendor](entity:Vendor) properties and a supported sorter.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.vendors.search();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.SearchVendorsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Vendors.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.vendors.get({ ...params }) -> Square.GetVendorResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves the vendor of a specified [Vendor](entity:Vendor) ID.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.vendors.get({
+ vendorId: "vendor_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.VendorsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Vendors.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.vendors.update({ ...params }) -> Square.UpdateVendorResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates an existing [Vendor](entity:Vendor) object as a supplier to a seller.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.vendors.update({
+ vendorId: "vendor_id",
+ body: {
+ idempotencyKey: "8fc6a5b0-9fe8-4b46-b46b-2ef95793abbe",
+ vendor: {
+ id: "INV_V_JDKYHBWT1D4F8MFH63DBMEN8Y4",
+ name: "Jack's Chicken Shack",
+ version: 1,
+ status: "ACTIVE",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.VendorsUpdateRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Vendors.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Bookings CustomAttributeDefinitions
+
+client.bookings.customAttributeDefinitions.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Get all bookings custom attribute definitions.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.bookings.customAttributeDefinitions.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.bookings.customAttributeDefinitions.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.CustomAttributeDefinitionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributeDefinitions.create({ ...params }) -> Square.CreateBookingCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a bookings custom attribute definition.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributeDefinitions.create({
+ customAttributeDefinition: {},
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.CreateBookingCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributeDefinitions.get({ ...params }) -> Square.RetrieveBookingCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a bookings custom attribute definition.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributeDefinitions.get({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.CustomAttributeDefinitionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributeDefinitions.update({ ...params }) -> Square.UpdateBookingCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a bookings custom attribute definition.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributeDefinitions.update({
+ key: "key",
+ customAttributeDefinition: {},
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.UpdateBookingCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributeDefinitions.delete({ ...params }) -> Square.DeleteBookingCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a bookings custom attribute definition.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributeDefinitions.delete({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.CustomAttributeDefinitionsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Bookings CustomAttributes
+
+client.bookings.customAttributes.batchDelete({ ...params }) -> Square.BulkDeleteBookingCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Bulk deletes bookings custom attributes.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributes.batchDelete({
+ values: {
+ key: {
+ bookingId: "booking_id",
+ key: "key",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.BulkDeleteBookingCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributes.batchUpsert({ ...params }) -> Square.BulkUpsertBookingCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Bulk upserts bookings custom attributes.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributes.batchUpsert({
+ values: {
+ key: {
+ bookingId: "booking_id",
+ customAttribute: {},
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.BulkUpsertBookingCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributes.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists a booking's custom attributes.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.bookings.customAttributes.list({
+ bookingId: "booking_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.bookings.customAttributes.list({
+ bookingId: "booking_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.CustomAttributesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributes.get({ ...params }) -> Square.RetrieveBookingCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a bookings custom attribute.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and `APPOINTMENTS_READ` for the OAuth scope.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributes.get({
+ bookingId: "booking_id",
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.CustomAttributesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributes.upsert({ ...params }) -> Square.UpsertBookingCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Upserts a bookings custom attribute.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributes.upsert({
+ bookingId: "booking_id",
+ key: "key",
+ customAttribute: {},
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.UpsertBookingCustomAttributeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.customAttributes.delete({ ...params }) -> Square.DeleteBookingCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a bookings custom attribute.
+
+To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
+To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
+
+For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed to _Appointments Plus_
+or _Appointments Premium_.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.customAttributes.delete({
+ bookingId: "booking_id",
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.CustomAttributesDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Bookings LocationProfiles
+
+client.bookings.locationProfiles.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists location booking profiles of a seller.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.bookings.locationProfiles.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.bookings.locationProfiles.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.LocationProfilesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `LocationProfiles.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Bookings TeamMemberProfiles
+
+client.bookings.teamMemberProfiles.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists booking profiles for team members.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.bookings.teamMemberProfiles.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.bookings.teamMemberProfiles.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.TeamMemberProfilesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMemberProfiles.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.bookings.teamMemberProfiles.get({ ...params }) -> Square.GetTeamMemberBookingProfileResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a team member's booking profile.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.bookings.teamMemberProfiles.get({
+ teamMemberId: "team_member_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.bookings.TeamMemberProfilesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMemberProfiles.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## CashDrawers Shifts
+
+client.cashDrawers.shifts.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Provides the details for all of the cash drawer shifts for a location
+in a date range.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.cashDrawers.shifts.list({
+ locationId: "location_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.cashDrawers.shifts.list({
+ locationId: "location_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.cashDrawers.ShiftsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Shifts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.cashDrawers.shifts.get({ ...params }) -> Square.GetCashDrawerShiftResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Provides the summary details for a single cash drawer shift. See
+[ListCashDrawerShiftEvents](api-endpoint:CashDrawers-ListCashDrawerShiftEvents) for a list of cash drawer shift events.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.cashDrawers.shifts.get({
+ shiftId: "shift_id",
+ locationId: "location_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.cashDrawers.ShiftsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Shifts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.cashDrawers.shifts.listEvents({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Provides a paginated list of events for a single cash drawer shift.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.cashDrawers.shifts.listEvents({
+ shiftId: "shift_id",
+ locationId: "location_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.cashDrawers.shifts.listEvents({
+ shiftId: "shift_id",
+ locationId: "location_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.cashDrawers.ShiftsListEventsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Shifts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Catalog Images
+
+client.catalog.images.create({ ...params }) -> Square.CreateCatalogImageResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Uploads an image file to be represented by a [CatalogImage](entity:CatalogImage) object that can be linked to an existing
+[CatalogObject](entity:CatalogObject) instance. The resulting `CatalogImage` is unattached to any `CatalogObject` if the `object_id`
+is not specified.
+
+This `CreateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in
+JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.images.create({});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.catalog.ImagesCreateRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Images.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.images.update({ ...params }) -> Square.UpdateCatalogImageResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Uploads a new image file to replace the existing one in the specified [CatalogImage](entity:CatalogImage) object.
+
+This `UpdateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an image file part in
+JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.images.update({
+ imageId: "image_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.catalog.ImagesUpdateRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Images.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Catalog Object
+
+client.catalog.object.upsert({ ...params }) -> Square.UpsertCatalogObjectResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a new or updates the specified [CatalogObject](entity:CatalogObject).
+
+To ensure consistency, only one update request is processed at a time per seller account.
+While one (batch or non-batch) update request is being processed, other (batched and non-batched)
+update requests are rejected with the `429` error code.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.object.upsert({
+ idempotencyKey: "af3d1afc-7212-4300-b463-0bfc5314a5ae",
+ object: {
+ type: "SUBSCRIPTION_PRODUCT",
+ id: "#Cocoa",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.catalog.UpsertCatalogObjectRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Object_.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.object.get({ ...params }) -> Square.GetCatalogObjectResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a single [CatalogItem](entity:CatalogItem) as a
+[CatalogObject](entity:CatalogObject) based on the provided ID. The returned
+object includes all of the relevant [CatalogItem](entity:CatalogItem)
+information including: [CatalogItemVariation](entity:CatalogItemVariation)
+children, references to its
+[CatalogModifierList](entity:CatalogModifierList) objects, and the ids of
+any [CatalogTax](entity:CatalogTax) objects that apply to it.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.object.get({
+ objectId: "object_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.catalog.ObjectGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Object_.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.catalog.object.delete({ ...params }) -> Square.DeleteCatalogObjectResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a single [CatalogObject](entity:CatalogObject) based on the
+provided ID and returns the set of successfully deleted IDs in the response.
+Deletion is a cascading event such that all children of the targeted object
+are also deleted. For example, deleting a [CatalogItem](entity:CatalogItem)
+will also delete all of its
+[CatalogItemVariation](entity:CatalogItemVariation) children.
+
+To ensure consistency, only one delete request is processed at a time per seller account.
+While one (batch or non-batch) delete request is being processed, other (batched and non-batched)
+delete requests are rejected with the `429` error code.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.catalog.object.delete({
+ objectId: "object_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.catalog.ObjectDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Object_.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Checkout PaymentLinks
+
+client.checkout.paymentLinks.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists all payment links.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.checkout.paymentLinks.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.checkout.paymentLinks.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.checkout.PaymentLinksListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `PaymentLinks.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.checkout.paymentLinks.create({ ...params }) -> Square.CreatePaymentLinkResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a Square-hosted checkout page. Applications can share the resulting payment link with their buyer to pay for goods and services.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.checkout.paymentLinks.create({
+ idempotencyKey: "cd9e25dc-d9f2-4430-aedb-61605070e95f",
+ quickPay: {
+ name: "Auto Detailing",
+ priceMoney: {
+ amount: 10000,
+ currency: "USD",
+ },
+ locationId: "A9Y43N9ABXZBP",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.checkout.CreatePaymentLinkRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `PaymentLinks.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.checkout.paymentLinks.get({ ...params }) -> Square.GetPaymentLinkResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a payment link.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.checkout.paymentLinks.get({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.checkout.PaymentLinksGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `PaymentLinks.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.checkout.paymentLinks.update({ ...params }) -> Square.UpdatePaymentLinkResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a payment link. You can update the `payment_link` fields such as
+`description`, `checkout_options`, and `pre_populated_data`.
+You cannot update other fields such as the `order_id`, `version`, `URL`, or `timestamp` field.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.checkout.paymentLinks.update({
+ id: "id",
+ paymentLink: {
+ version: 1,
+ checkoutOptions: {
+ askForShippingAddress: true,
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.checkout.UpdatePaymentLinkRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `PaymentLinks.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.checkout.paymentLinks.delete({ ...params }) -> Square.DeletePaymentLinkResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a payment link.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.checkout.paymentLinks.delete({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.checkout.PaymentLinksDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `PaymentLinks.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Customers CustomAttributeDefinitions
+
+client.customers.customAttributeDefinitions.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the customer-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account.
+
+When all response pages are retrieved, the results include all custom attribute definitions
+that are visible to the requesting application, including those that are created by other
+applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that
+seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.customers.customAttributeDefinitions.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.customers.customAttributeDefinitions.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CustomAttributeDefinitionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.customAttributeDefinitions.create({ ...params }) -> Square.CreateCustomerCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a customer-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account.
+Use this endpoint to define a custom attribute that can be associated with customer profiles.
+
+A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties
+for a custom attribute. After the definition is created, you can call
+[UpsertCustomerCustomAttribute](api-endpoint:CustomerCustomAttributes-UpsertCustomerCustomAttribute) or
+[BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes)
+to set the custom attribute for customer profiles in the seller's Customer Directory.
+
+Sellers can view all custom attributes in exported customer data, including those set to
+`VISIBILITY_HIDDEN`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.customAttributeDefinitions.create({
+ customAttributeDefinition: {
+ key: "favoritemovie",
+ schema: {
+ ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
+ },
+ name: "Favorite Movie",
+ description: "The favorite movie of the customer.",
+ visibility: "VISIBILITY_HIDDEN",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CreateCustomerCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.customAttributeDefinitions.get({ ...params }) -> Square.GetCustomerCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a customer-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account.
+
+To retrieve a custom attribute definition created by another application, the `visibility`
+setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.customAttributeDefinitions.get({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CustomAttributeDefinitionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.customAttributeDefinitions.update({ ...params }) -> Square.UpdateCustomerCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a customer-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account.
+
+Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the
+`schema` for a `Selection` data type.
+
+Only the definition owner can update a custom attribute definition. Note that sellers can view
+all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.customAttributeDefinitions.update({
+ key: "key",
+ customAttributeDefinition: {
+ description: "Update the description as desired.",
+ visibility: "VISIBILITY_READ_ONLY",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.UpdateCustomerCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.customAttributeDefinitions.delete({ ...params }) -> Square.DeleteCustomerCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a customer-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account.
+
+Deleting a custom attribute definition also deletes the corresponding custom attribute from
+all customer profiles in the seller's Customer Directory.
+
+Only the definition owner can delete a custom attribute definition.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.customAttributeDefinitions.delete({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CustomAttributeDefinitionsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.customAttributeDefinitions.batchUpsert({ ...params }) -> Square.BatchUpsertCustomerCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates [custom attributes](entity:CustomAttribute) for customer profiles as a bulk operation.
+
+Use this endpoint to set the value of one or more custom attributes for one or more customer profiles.
+A custom attribute is based on a custom attribute definition in a Square seller account, which is
+created using the [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) endpoint.
+
+This `BulkUpsertCustomerCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert
+requests and returns a map of individual upsert responses. Each upsert request has a unique ID
+and provides a customer ID and custom attribute. Each upsert response is returned with the ID
+of the corresponding request.
+
+To create or update a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.customAttributeDefinitions.batchUpsert({
+ values: {
+ id1: {
+ customerId: "N3NCVYY3WS27HF0HKANA3R9FP8",
+ customAttribute: {
+ key: "favoritemovie",
+ value: "Dune",
+ },
+ },
+ id2: {
+ customerId: "SY8EMWRNDN3TQDP2H4KS1QWMMM",
+ customAttribute: {
+ key: "ownsmovie",
+ value: false,
+ },
+ },
+ id3: {
+ customerId: "SY8EMWRNDN3TQDP2H4KS1QWMMM",
+ customAttribute: {
+ key: "favoritemovie",
+ value: "Star Wars",
+ },
+ },
+ id4: {
+ customerId: "N3NCVYY3WS27HF0HKANA3R9FP8",
+ customAttribute: {
+ key: "square:a0f1505a-2aa1-490d-91a8-8d31ff181808",
+ value: "10.5",
+ },
+ },
+ id5: {
+ customerId: "70548QG1HN43B05G0KCZ4MMC1G",
+ customAttribute: {
+ key: "sq0ids-0evKIskIGaY45fCyNL66aw:backupemail",
+ value: "fake-email@squareup.com",
+ },
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.BatchUpsertCustomerCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Customers Groups
+
+client.customers.groups.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves the list of customer groups of a business.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.customers.groups.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.customers.groups.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.GroupsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Groups.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.groups.create({ ...params }) -> Square.CreateCustomerGroupResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a new customer group for a business.
+
+The request must include the `name` value of the group.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.groups.create({
+ group: {
+ name: "Loyal Customers",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CreateCustomerGroupRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Groups.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.groups.get({ ...params }) -> Square.GetCustomerGroupResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a specific customer group as identified by the `group_id` value.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.groups.get({
+ groupId: "group_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.GroupsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Groups.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.groups.update({ ...params }) -> Square.UpdateCustomerGroupResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a customer group as identified by the `group_id` value.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.groups.update({
+ groupId: "group_id",
+ group: {
+ name: "Loyal Customers",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.UpdateCustomerGroupRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Groups.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.groups.delete({ ...params }) -> Square.DeleteCustomerGroupResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a customer group as identified by the `group_id` value.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.groups.delete({
+ groupId: "group_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.GroupsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Groups.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.groups.add({ ...params }) -> Square.AddGroupToCustomerResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Adds a group membership to a customer.
+
+The customer is identified by the `customer_id` value
+and the customer group is identified by the `group_id` value.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.groups.add({
+ customerId: "customer_id",
+ groupId: "group_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.GroupsAddRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Groups.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.groups.remove({ ...params }) -> Square.RemoveGroupFromCustomerResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Removes a group membership from a customer.
+
+The customer is identified by the `customer_id` value
+and the customer group is identified by the `group_id` value.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.groups.remove({
+ customerId: "customer_id",
+ groupId: "group_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.GroupsRemoveRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Groups.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Customers Segments
+
+client.customers.segments.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves the list of customer segments of a business.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.customers.segments.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.customers.segments.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.SegmentsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Segments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.segments.get({ ...params }) -> Square.GetCustomerSegmentResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a specific customer segment as identified by the `segment_id` value.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.segments.get({
+ segmentId: "segment_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.SegmentsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Segments.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Customers Cards
+
+client.customers.cards.create({ ...params }) -> Square.CreateCustomerCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Adds a card on file to an existing customer.
+
+As with charges, calls to `CreateCustomerCard` are idempotent. Multiple
+calls with the same card nonce return the same card record that was created
+with the provided nonce during the _first_ call.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.cards.create({
+ customerId: "customer_id",
+ cardNonce: "YOUR_CARD_NONCE",
+ billingAddress: {
+ addressLine1: "500 Electric Ave",
+ addressLine2: "Suite 600",
+ locality: "New York",
+ administrativeDistrictLevel1: "NY",
+ postalCode: "10003",
+ country: "US",
+ },
+ cardholderName: "Amelia Earhart",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CreateCustomerCardRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Cards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.cards.delete({ ...params }) -> Square.DeleteCustomerCardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Removes a card on file from a customer.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.cards.delete({
+ customerId: "customer_id",
+ cardId: "card_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CardsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Cards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Customers CustomAttributes
+
+client.customers.customAttributes.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the [custom attributes](entity:CustomAttribute) associated with a customer profile.
+
+You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
+in the same call.
+
+When all response pages are retrieved, the results include all custom attributes that are
+visible to the requesting application, including those that are owned by other applications
+and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.customers.customAttributes.list({
+ customerId: "customer_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.customers.customAttributes.list({
+ customerId: "customer_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CustomAttributesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.customAttributes.get({ ...params }) -> Square.GetCustomerCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a [custom attribute](entity:CustomAttribute) associated with a customer profile.
+
+You can use the `with_definition` query parameter to also retrieve the custom attribute definition
+in the same call.
+
+To retrieve a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.customAttributes.get({
+ customerId: "customer_id",
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CustomAttributesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.customAttributes.upsert({ ...params }) -> Square.UpsertCustomerCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates a [custom attribute](entity:CustomAttribute) for a customer profile.
+
+Use this endpoint to set the value of a custom attribute for a specified customer profile.
+A custom attribute is based on a custom attribute definition in a Square seller account, which
+is created using the [CreateCustomerCustomAttributeDefinition](api-endpoint:CustomerCustomAttributes-CreateCustomerCustomAttributeDefinition) endpoint.
+
+To create or update a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.customAttributes.upsert({
+ customerId: "customer_id",
+ key: "key",
+ customAttribute: {
+ value: "Dune",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.UpsertCustomerCustomAttributeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.customers.customAttributes.delete({ ...params }) -> Square.DeleteCustomerCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a [custom attribute](entity:CustomAttribute) associated with a customer profile.
+
+To delete a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.customers.customAttributes.delete({
+ customerId: "customer_id",
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.customers.CustomAttributesDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Devices Codes
+
+client.devices.codes.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists all DeviceCodes associated with the merchant.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.devices.codes.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.devices.codes.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.devices.CodesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Codes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.devices.codes.create({ ...params }) -> Square.CreateDeviceCodeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a DeviceCode that can be used to login to a Square Terminal device to enter the connected
+terminal mode.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.devices.codes.create({
+ idempotencyKey: "01bb00a6-0c86-4770-94ed-f5fca973cd56",
+ deviceCode: {
+ name: "Counter 1",
+ productType: "TERMINAL_API",
+ locationId: "B5E4484SHHNYH",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.devices.CreateDeviceCodeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Codes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.devices.codes.get({ ...params }) -> Square.GetDeviceCodeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves DeviceCode with the associated ID.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.devices.codes.get({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.devices.CodesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Codes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Disputes Evidence
+
+client.disputes.evidence.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a list of evidence associated with a dispute.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.disputes.evidence.list({
+ disputeId: "dispute_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.disputes.evidence.list({
+ disputeId: "dispute_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.disputes.EvidenceListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Evidence.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.disputes.evidence.get({ ...params }) -> Square.GetDisputeEvidenceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns the metadata for the evidence specified in the request URL path.
+
+You must maintain a copy of any evidence uploaded if you want to reference it later. Evidence cannot be downloaded after you upload it.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.disputes.evidence.get({
+ disputeId: "dispute_id",
+ evidenceId: "evidence_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.disputes.EvidenceGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Evidence.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.disputes.evidence.delete({ ...params }) -> Square.DeleteDisputeEvidenceResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Removes specified evidence from a dispute.
+Square does not send the bank any evidence that is removed.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.disputes.evidence.delete({
+ disputeId: "dispute_id",
+ evidenceId: "evidence_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.disputes.EvidenceDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Evidence.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## GiftCards Activities
+
+client.giftCards.activities.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists gift card activities. By default, you get gift card activities for all
+gift cards in the seller's account. You can optionally specify query parameters to
+filter the list. For example, you can get a list of gift card activities for a gift card,
+for all gift cards in a specific region, or for activities within a time window.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.giftCards.activities.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.giftCards.activities.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.giftCards.ActivitiesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Activities.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.giftCards.activities.create({ ...params }) -> Square.CreateGiftCardActivityResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a gift card activity to manage the balance or state of a [gift card](entity:GiftCard).
+For example, create an `ACTIVATE` activity to activate a gift card with an initial balance before first use.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.giftCards.activities.create({
+ idempotencyKey: "U16kfr-kA70er-q4Rsym-7U7NnY",
+ giftCardActivity: {
+ type: "ACTIVATE",
+ locationId: "81FN9BNFZTKS4",
+ giftCardId: "gftc:6d55a72470d940c6ba09c0ab8ad08d20",
+ activateActivityDetails: {
+ orderId: "jJNGHm4gLI6XkFbwtiSLqK72KkAZY",
+ lineItemUid: "eIWl7X0nMuO9Ewbh0ChIx",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.giftCards.CreateGiftCardActivityRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Activities.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Labor BreakTypes
+
+client.labor.breakTypes.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a paginated list of `BreakType` instances for a business.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.labor.breakTypes.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.labor.breakTypes.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.BreakTypesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `BreakTypes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.breakTypes.create({ ...params }) -> Square.CreateBreakTypeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a new `BreakType`.
+
+A `BreakType` is a template for creating `Break` objects.
+You must provide the following values in your request to this
+endpoint:
+
+- `location_id`
+- `break_name`
+- `expected_duration`
+- `is_paid`
+
+You can only have three `BreakType` instances per location. If you attempt to add a fourth
+`BreakType` for a location, an `INVALID_REQUEST_ERROR` "Exceeded limit of 3 breaks per location."
+is returned.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.breakTypes.create({
+ idempotencyKey: "PAD3NG5KSN2GL",
+ breakType: {
+ locationId: "CGJN03P1D08GF",
+ breakName: "Lunch Break",
+ expectedDuration: "PT30M",
+ isPaid: true,
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.CreateBreakTypeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `BreakTypes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.breakTypes.get({ ...params }) -> Square.GetBreakTypeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a single `BreakType` specified by `id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.breakTypes.get({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.BreakTypesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `BreakTypes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.breakTypes.update({ ...params }) -> Square.UpdateBreakTypeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates an existing `BreakType`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.breakTypes.update({
+ id: "id",
+ breakType: {
+ locationId: "26M7H24AZ9N6R",
+ breakName: "Lunch",
+ expectedDuration: "PT50M",
+ isPaid: true,
+ version: 1,
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.UpdateBreakTypeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `BreakTypes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.breakTypes.delete({ ...params }) -> Square.DeleteBreakTypeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes an existing `BreakType`.
+
+A `BreakType` can be deleted even if it is referenced from a `Shift`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.breakTypes.delete({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.BreakTypesDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `BreakTypes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Labor EmployeeWages
+
+client.labor.employeeWages.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a paginated list of `EmployeeWage` instances for a business.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.labor.employeeWages.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.labor.employeeWages.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.EmployeeWagesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `EmployeeWages.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.employeeWages.get({ ...params }) -> Square.GetEmployeeWageResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a single `EmployeeWage` specified by `id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.employeeWages.get({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.EmployeeWagesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `EmployeeWages.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Labor Shifts
+
+client.labor.shifts.create({ ...params }) -> Square.CreateShiftResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a new `Shift`.
+
+A `Shift` represents a complete workday for a single team member.
+You must provide the following values in your request to this
+endpoint:
+
+- `location_id`
+- `team_member_id`
+- `start_at`
+
+An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when:
+
+- The `status` of the new `Shift` is `OPEN` and the team member has another
+ shift with an `OPEN` status.
+- The `start_at` date is in the future.
+- The `start_at` or `end_at` date overlaps another shift for the same team member.
+- The `Break` instances are set in the request and a break `start_at`
+is before the `Shift.start_at`, a break `end_at` is after
+the `Shift.end_at`, or both.
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.shifts.create({
+ idempotencyKey: "HIDSNG5KS478L",
+ shift: {
+ locationId: "PAA1RJZZKXBFG",
+ startAt: "2019-01-25T03:11:00-05:00",
+ endAt: "2019-01-25T13:11:00-05:00",
+ wage: {
+ title: "Barista",
+ hourlyRate: {
+ amount: 1100,
+ currency: "USD",
+ },
+ tipEligible: true,
+ },
+ breaks: [
+ {
+ startAt: "2019-01-25T06:11:00-05:00",
+ endAt: "2019-01-25T06:16:00-05:00",
+ breakTypeId: "REGS1EQR1TPZ5",
+ name: "Tea Break",
+ expectedDuration: "PT5M",
+ isPaid: true,
+ },
+ ],
+ teamMemberId: "ormj0jJJZ5OZIzxrZYJI",
+ declaredCashTipMoney: {
+ amount: 500,
+ currency: "USD",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.CreateShiftRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Shifts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.shifts.search({ ...params }) -> Square.SearchShiftsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a paginated list of `Shift` records for a business.
+The list to be returned can be filtered by:
+
+- Location IDs
+- Team member IDs
+- Shift status (`OPEN` or `CLOSED`)
+- Shift start
+- Shift end
+- Workday details
+
+The list can be sorted by:
+
+- `START_AT`
+- `END_AT`
+- `CREATED_AT`
+- `UPDATED_AT`
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.shifts.search({
+ query: {
+ filter: {
+ workday: {
+ dateRange: {
+ startDate: "2019-01-20",
+ endDate: "2019-02-03",
+ },
+ matchShiftsBy: "START_AT",
+ defaultTimezone: "America/Los_Angeles",
+ },
+ },
+ },
+ limit: 100,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.SearchShiftsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Shifts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.shifts.get({ ...params }) -> Square.GetShiftResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a single `Shift` specified by `id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.shifts.get({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.ShiftsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Shifts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.shifts.update({ ...params }) -> Square.UpdateShiftResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates an existing `Shift`.
+
+When adding a `Break` to a `Shift`, any earlier `Break` instances in the `Shift` have
+the `end_at` property set to a valid RFC-3339 datetime string.
+
+When closing a `Shift`, all `Break` instances in the `Shift` must be complete with `end_at`
+set on each `Break`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.shifts.update({
+ id: "id",
+ shift: {
+ locationId: "PAA1RJZZKXBFG",
+ startAt: "2019-01-25T03:11:00-05:00",
+ endAt: "2019-01-25T13:11:00-05:00",
+ wage: {
+ title: "Bartender",
+ hourlyRate: {
+ amount: 1500,
+ currency: "USD",
+ },
+ tipEligible: true,
+ },
+ breaks: [
+ {
+ id: "X7GAQYVVRRG6P",
+ startAt: "2019-01-25T06:11:00-05:00",
+ endAt: "2019-01-25T06:16:00-05:00",
+ breakTypeId: "REGS1EQR1TPZ5",
+ name: "Tea Break",
+ expectedDuration: "PT5M",
+ isPaid: true,
+ },
+ ],
+ version: 1,
+ teamMemberId: "ormj0jJJZ5OZIzxrZYJI",
+ declaredCashTipMoney: {
+ amount: 500,
+ currency: "USD",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.UpdateShiftRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Shifts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.shifts.delete({ ...params }) -> Square.DeleteShiftResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a `Shift`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.shifts.delete({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.ShiftsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Shifts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Labor TeamMemberWages
+
+client.labor.teamMemberWages.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a paginated list of `TeamMemberWage` instances for a business.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.labor.teamMemberWages.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.labor.teamMemberWages.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.TeamMemberWagesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMemberWages.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.teamMemberWages.get({ ...params }) -> Square.GetTeamMemberWageResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a single `TeamMemberWage` specified by `id`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.teamMemberWages.get({
+ id: "id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.TeamMemberWagesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `TeamMemberWages.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Labor WorkweekConfigs
+
+client.labor.workweekConfigs.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a list of `WorkweekConfig` instances for a business.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.labor.workweekConfigs.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.labor.workweekConfigs.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.WorkweekConfigsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `WorkweekConfigs.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.labor.workweekConfigs.get({ ...params }) -> Square.UpdateWorkweekConfigResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a `WorkweekConfig`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.labor.workweekConfigs.get({
+ id: "id",
+ workweekConfig: {
+ startOfWeek: "MON",
+ startOfDayLocalTime: "10:00",
+ version: 10,
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.labor.UpdateWorkweekConfigRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `WorkweekConfigs.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Locations CustomAttributeDefinitions
+
+client.locations.customAttributeDefinitions.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the location-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account.
+When all response pages are retrieved, the results include all custom attribute definitions
+that are visible to the requesting application, including those that are created by other
+applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.locations.customAttributeDefinitions.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.locations.customAttributeDefinitions.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.CustomAttributeDefinitionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributeDefinitions.create({ ...params }) -> Square.CreateLocationCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a location-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account.
+Use this endpoint to define a custom attribute that can be associated with locations.
+A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties
+for a custom attribute. After the definition is created, you can call
+[UpsertLocationCustomAttribute](api-endpoint:LocationCustomAttributes-UpsertLocationCustomAttribute) or
+[BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes)
+to set the custom attribute for locations.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributeDefinitions.create({
+ customAttributeDefinition: {
+ key: "bestseller",
+ schema: {
+ ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
+ },
+ name: "Bestseller",
+ description: "Bestselling item at location",
+ visibility: "VISIBILITY_READ_WRITE_VALUES",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.CreateLocationCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributeDefinitions.get({ ...params }) -> Square.RetrieveLocationCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a location-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account.
+To retrieve a custom attribute definition created by another application, the `visibility`
+setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributeDefinitions.get({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.CustomAttributeDefinitionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributeDefinitions.update({ ...params }) -> Square.UpdateLocationCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a location-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account.
+Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the
+`schema` for a `Selection` data type.
+Only the definition owner can update a custom attribute definition.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributeDefinitions.update({
+ key: "key",
+ customAttributeDefinition: {
+ description: "Update the description as desired.",
+ visibility: "VISIBILITY_READ_ONLY",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.UpdateLocationCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributeDefinitions.delete({ ...params }) -> Square.DeleteLocationCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a location-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account.
+Deleting a custom attribute definition also deletes the corresponding custom attribute from
+all locations.
+Only the definition owner can delete a custom attribute definition.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributeDefinitions.delete({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.CustomAttributeDefinitionsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Locations CustomAttributes
+
+client.locations.customAttributes.batchDelete({ ...params }) -> Square.BulkDeleteLocationCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes [custom attributes](entity:CustomAttribute) for locations as a bulk operation.
+To delete a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributes.batchDelete({
+ values: {
+ id1: {
+ key: "bestseller",
+ },
+ id2: {
+ key: "bestseller",
+ },
+ id3: {
+ key: "phone-number",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.BulkDeleteLocationCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributes.batchUpsert({ ...params }) -> Square.BulkUpsertLocationCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates [custom attributes](entity:CustomAttribute) for locations as a bulk operation.
+Use this endpoint to set the value of one or more custom attributes for one or more locations.
+A custom attribute is based on a custom attribute definition in a Square seller account, which is
+created using the [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) endpoint.
+This `BulkUpsertLocationCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert
+requests and returns a map of individual upsert responses. Each upsert request has a unique ID
+and provides a location ID and custom attribute. Each upsert response is returned with the ID
+of the corresponding request.
+To create or update a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributes.batchUpsert({
+ values: {
+ id1: {
+ locationId: "L0TBCBTB7P8RQ",
+ customAttribute: {
+ key: "bestseller",
+ value: "hot cocoa",
+ },
+ },
+ id2: {
+ locationId: "L9XMD04V3STJX",
+ customAttribute: {
+ key: "bestseller",
+ value: "berry smoothie",
+ },
+ },
+ id3: {
+ locationId: "L0TBCBTB7P8RQ",
+ customAttribute: {
+ key: "phone-number",
+ value: "+12223334444",
+ },
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.BulkUpsertLocationCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributes.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the [custom attributes](entity:CustomAttribute) associated with a location.
+You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
+in the same call.
+When all response pages are retrieved, the results include all custom attributes that are
+visible to the requesting application, including those that are owned by other applications
+and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.locations.customAttributes.list({
+ locationId: "location_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.locations.customAttributes.list({
+ locationId: "location_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.CustomAttributesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributes.get({ ...params }) -> Square.RetrieveLocationCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a [custom attribute](entity:CustomAttribute) associated with a location.
+You can use the `with_definition` query parameter to also retrieve the custom attribute definition
+in the same call.
+To retrieve a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributes.get({
+ locationId: "location_id",
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.CustomAttributesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributes.upsert({ ...params }) -> Square.UpsertLocationCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates a [custom attribute](entity:CustomAttribute) for a location.
+Use this endpoint to set the value of a custom attribute for a specified location.
+A custom attribute is based on a custom attribute definition in a Square seller account, which
+is created using the [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) endpoint.
+To create or update a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributes.upsert({
+ locationId: "location_id",
+ key: "key",
+ customAttribute: {
+ value: "hot cocoa",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.UpsertLocationCustomAttributeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.customAttributes.delete({ ...params }) -> Square.DeleteLocationCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a [custom attribute](entity:CustomAttribute) associated with a location.
+To delete a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.customAttributes.delete({
+ locationId: "location_id",
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.CustomAttributesDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Locations Transactions
+
+client.locations.transactions.list({ ...params }) -> Square.ListTransactionsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists transactions for a particular location.
+
+Transactions include payment information from sales and exchanges and refund
+information from returns and exchanges.
+
+Max results per [page](https://developer.squareup.com/docs/working-with-apis/pagination): 50
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.transactions.list({
+ locationId: "location_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.TransactionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Transactions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.transactions.get({ ...params }) -> Square.GetTransactionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves details for a single transaction.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.transactions.get({
+ locationId: "location_id",
+ transactionId: "transaction_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.TransactionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Transactions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.transactions.capture({ ...params }) -> Square.CaptureTransactionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Captures a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
+endpoint with a `delay_capture` value of `true`.
+
+See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
+for more information.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.transactions.capture({
+ locationId: "location_id",
+ transactionId: "transaction_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.TransactionsCaptureRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Transactions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.locations.transactions.void({ ...params }) -> Square.VoidTransactionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
+endpoint with a `delay_capture` value of `true`.
+
+See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
+for more information.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.locations.transactions.void({
+ locationId: "location_id",
+ transactionId: "transaction_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.locations.TransactionsVoidRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Transactions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Loyalty Accounts
+
+client.loyalty.accounts.create({ ...params }) -> Square.CreateLoyaltyAccountResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a loyalty account. To create a loyalty account, you must provide the `program_id` and a `mapping` with the `phone_number` of the buyer.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.accounts.create({
+ loyaltyAccount: {
+ programId: "d619f755-2d17-41f3-990d-c04ecedd64dd",
+ mapping: {
+ phoneNumber: "+14155551234",
+ },
+ },
+ idempotencyKey: "ec78c477-b1c3-4899-a209-a4e71337c996",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.CreateLoyaltyAccountRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Accounts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.accounts.search({ ...params }) -> Square.SearchLoyaltyAccountsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for loyalty accounts in a loyalty program.
+
+You can search for a loyalty account using the phone number or customer ID associated with the account. To return all loyalty accounts, specify an empty `query` object or omit it entirely.
+
+Search results are sorted by `created_at` in ascending order.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.accounts.search({
+ query: {
+ mappings: [
+ {
+ phoneNumber: "+14155551234",
+ },
+ ],
+ },
+ limit: 10,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.SearchLoyaltyAccountsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Accounts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.accounts.get({ ...params }) -> Square.GetLoyaltyAccountResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a loyalty account.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.accounts.get({
+ accountId: "account_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.AccountsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Accounts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.accounts.accumulatePoints({ ...params }) -> Square.AccumulateLoyaltyPointsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Adds points earned from a purchase to a [loyalty account](entity:LoyaltyAccount).
+
+- If you are using the Orders API to manage orders, provide the `order_id`. Square reads the order
+ to compute the points earned from both the base loyalty program and an associated
+ [loyalty promotion](entity:LoyaltyPromotion). For purchases that qualify for multiple accrual
+ rules, Square computes points based on the accrual rule that grants the most points.
+ For purchases that qualify for multiple promotions, Square computes points based on the most
+ recently created promotion. A purchase must first qualify for program points to be eligible for promotion points.
+
+- If you are not using the Orders API to manage orders, provide `points` with the number of points to add.
+You must first perform a client-side computation of the points earned from the loyalty program and
+loyalty promotion. For spend-based and visit-based programs, you can call [CalculateLoyaltyPoints](api-endpoint:Loyalty-CalculateLoyaltyPoints)
+to compute the points earned from the base loyalty program. For information about computing points earned from a loyalty promotion, see
+[Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions#calculate-promotion-points).
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.accounts.accumulatePoints({
+ accountId: "account_id",
+ accumulatePoints: {
+ orderId: "RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY",
+ },
+ idempotencyKey: "58b90739-c3e8-4b11-85f7-e636d48d72cb",
+ locationId: "P034NEENMD09F",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.AccumulateLoyaltyPointsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Accounts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.accounts.adjust({ ...params }) -> Square.AdjustLoyaltyPointsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Adds points to or subtracts points from a buyer's account.
+
+Use this endpoint only when you need to manually adjust points. Otherwise, in your application flow, you call
+[AccumulateLoyaltyPoints](api-endpoint:Loyalty-AccumulateLoyaltyPoints)
+to add points when a buyer pays for the purchase.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.accounts.adjust({
+ accountId: "account_id",
+ idempotencyKey: "bc29a517-3dc9-450e-aa76-fae39ee849d1",
+ adjustPoints: {
+ points: 10,
+ reason: "Complimentary points",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.AdjustLoyaltyPointsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Accounts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Loyalty Programs
+
+client.loyalty.programs.list() -> Square.ListLoyaltyProgramsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a list of loyalty programs in the seller's account.
+Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview).
+
+Replaced with [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) when used with the keyword `main`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.programs.list();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**requestOptions:** `Programs.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.programs.get({ ...params }) -> Square.GetLoyaltyProgramResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves the loyalty program in a seller's account, specified by the program ID or the keyword `main`.
+
+Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can have only one loyalty program, which is created and managed from the Seller Dashboard. For more information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.programs.get({
+ programId: "program_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.ProgramsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Programs.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.programs.calculate({ ...params }) -> Square.CalculateLoyaltyPointsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Calculates the number of points a buyer can earn from a purchase. Applications might call this endpoint
+to display the points to the buyer.
+
+- If you are using the Orders API to manage orders, provide the `order_id` and (optional) `loyalty_account_id`.
+ Square reads the order to compute the points earned from the base loyalty program and an associated
+ [loyalty promotion](entity:LoyaltyPromotion).
+
+- If you are not using the Orders API to manage orders, provide `transaction_amount_money` with the
+purchase amount. Square uses this amount to calculate the points earned from the base loyalty program,
+but not points earned from a loyalty promotion. For spend-based and visit-based programs, the `tax_mode`
+setting of the accrual rule indicates how taxes should be treated for loyalty points accrual.
+If the purchase qualifies for program points, call
+[ListLoyaltyPromotions](api-endpoint:Loyalty-ListLoyaltyPromotions) and perform a client-side computation
+to calculate whether the purchase also qualifies for promotion points. For more information, see
+[Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-promotions#calculate-promotion-points).
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.programs.calculate({
+ programId: "program_id",
+ orderId: "RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY",
+ loyaltyAccountId: "79b807d2-d786-46a9-933b-918028d7a8c5",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.CalculateLoyaltyPointsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Programs.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Loyalty Rewards
+
+client.loyalty.rewards.create({ ...params }) -> Square.CreateLoyaltyRewardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a loyalty reward. In the process, the endpoint does following:
+
+- Uses the `reward_tier_id` in the request to determine the number of points
+ to lock for this reward.
+- If the request includes `order_id`, it adds the reward and related discount to the order.
+
+After a reward is created, the points are locked and
+not available for the buyer to redeem another reward.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.rewards.create({
+ reward: {
+ loyaltyAccountId: "5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd",
+ rewardTierId: "e1b39225-9da5-43d1-a5db-782cdd8ad94f",
+ orderId: "RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY",
+ },
+ idempotencyKey: "18c2e5ea-a620-4b1f-ad60-7b167285e451",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.CreateLoyaltyRewardRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Rewards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.rewards.search({ ...params }) -> Square.SearchLoyaltyRewardsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Searches for loyalty rewards. This endpoint accepts a request with no query filters and returns results for all loyalty accounts.
+If you include a `query` object, `loyalty_account_id` is required and `status` is optional.
+
+If you know a reward ID, use the
+[RetrieveLoyaltyReward](api-endpoint:Loyalty-RetrieveLoyaltyReward) endpoint.
+
+Search results are sorted by `updated_at` in descending order.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.rewards.search({
+ query: {
+ loyaltyAccountId: "5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd",
+ },
+ limit: 10,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.SearchLoyaltyRewardsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Rewards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.rewards.get({ ...params }) -> Square.GetLoyaltyRewardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a loyalty reward.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.rewards.get({
+ rewardId: "reward_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.RewardsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Rewards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.rewards.delete({ ...params }) -> Square.DeleteLoyaltyRewardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a loyalty reward by doing the following:
+
+- Returns the loyalty points back to the loyalty account.
+- If an order ID was specified when the reward was created
+ (see [CreateLoyaltyReward](api-endpoint:Loyalty-CreateLoyaltyReward)),
+ it updates the order by removing the reward and related
+ discounts.
+
+You cannot delete a reward that has reached the terminal state (REDEEMED).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.rewards.delete({
+ rewardId: "reward_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.RewardsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Rewards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.rewards.redeem({ ...params }) -> Square.RedeemLoyaltyRewardResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Redeems a loyalty reward.
+
+The endpoint sets the reward to the `REDEEMED` terminal state.
+
+If you are using your own order processing system (not using the
+Orders API), you call this endpoint after the buyer paid for the
+purchase.
+
+After the reward reaches the terminal state, it cannot be deleted.
+In other words, points used for the reward cannot be returned
+to the account.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.rewards.redeem({
+ rewardId: "reward_id",
+ idempotencyKey: "98adc7f7-6963-473b-b29c-f3c9cdd7d994",
+ locationId: "P034NEENMD09F",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.RedeemLoyaltyRewardRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Rewards.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Loyalty Programs Promotions
+
+client.loyalty.programs.promotions.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the loyalty promotions associated with a [loyalty program](entity:LoyaltyProgram).
+Results are sorted by the `created_at` date in descending order (newest to oldest).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.loyalty.programs.promotions.list({
+ programId: "program_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.loyalty.programs.promotions.list({
+ programId: "program_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.programs.PromotionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Promotions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.programs.promotions.create({ ...params }) -> Square.CreateLoyaltyPromotionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a loyalty promotion for a [loyalty program](entity:LoyaltyProgram). A loyalty promotion
+enables buyers to earn points in addition to those earned from the base loyalty program.
+
+This endpoint sets the loyalty promotion to the `ACTIVE` or `SCHEDULED` status, depending on the
+`available_time` setting. A loyalty program can have a maximum of 10 loyalty promotions with an
+`ACTIVE` or `SCHEDULED` status.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.programs.promotions.create({
+ programId: "program_id",
+ loyaltyPromotion: {
+ name: "Tuesday Happy Hour Promo",
+ incentive: {
+ type: "POINTS_MULTIPLIER",
+ pointsMultiplierData: {
+ multiplier: "3.0",
+ },
+ },
+ availableTime: {
+ timePeriods: [
+ "BEGIN:VEVENT\nDTSTART:20220816T160000\nDURATION:PT2H\nRRULE:FREQ=WEEKLY;BYDAY=TU\nEND:VEVENT",
+ ],
+ },
+ triggerLimit: {
+ times: 1,
+ interval: "DAY",
+ },
+ minimumSpendAmountMoney: {
+ amount: 2000,
+ currency: "USD",
+ },
+ qualifyingCategoryIds: ["XTQPYLR3IIU9C44VRCB3XD12"],
+ },
+ idempotencyKey: "ec78c477-b1c3-4899-a209-a4e71337c996",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.programs.CreateLoyaltyPromotionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Promotions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.programs.promotions.get({ ...params }) -> Square.GetLoyaltyPromotionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a loyalty promotion.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.programs.promotions.get({
+ promotionId: "promotion_id",
+ programId: "program_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.programs.PromotionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Promotions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.loyalty.programs.promotions.cancel({ ...params }) -> Square.CancelLoyaltyPromotionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels a loyalty promotion. Use this endpoint to cancel an `ACTIVE` promotion earlier than the
+end date, cancel an `ACTIVE` promotion when an end date is not specified, or cancel a `SCHEDULED` promotion.
+Because updating a promotion is not supported, you can also use this endpoint to cancel a promotion before
+you create a new one.
+
+This endpoint sets the loyalty promotion to the `CANCELED` state
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.loyalty.programs.promotions.cancel({
+ promotionId: "promotion_id",
+ programId: "program_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.loyalty.programs.PromotionsCancelRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Promotions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Merchants CustomAttributeDefinitions
+
+client.merchants.customAttributeDefinitions.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the merchant-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account.
+When all response pages are retrieved, the results include all custom attribute definitions
+that are visible to the requesting application, including those that are created by other
+applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.merchants.customAttributeDefinitions.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.merchants.customAttributeDefinitions.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.CustomAttributeDefinitionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributeDefinitions.create({ ...params }) -> Square.CreateMerchantCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account.
+Use this endpoint to define a custom attribute that can be associated with a merchant connecting to your application.
+A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties
+for a custom attribute. After the definition is created, you can call
+[UpsertMerchantCustomAttribute](api-endpoint:MerchantCustomAttributes-UpsertMerchantCustomAttribute) or
+[BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes)
+to set the custom attribute for a merchant.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributeDefinitions.create({
+ customAttributeDefinition: {
+ key: "alternative_seller_name",
+ schema: {
+ ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String",
+ },
+ name: "Alternative Merchant Name",
+ description: "This is the other name this merchant goes by.",
+ visibility: "VISIBILITY_READ_ONLY",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.CreateMerchantCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributeDefinitions.get({ ...params }) -> Square.RetrieveMerchantCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account.
+To retrieve a custom attribute definition created by another application, the `visibility`
+setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributeDefinitions.get({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.CustomAttributeDefinitionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributeDefinitions.update({ ...params }) -> Square.UpdateMerchantCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) for a Square seller account.
+Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the
+`schema` for a `Selection` data type.
+Only the definition owner can update a custom attribute definition.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributeDefinitions.update({
+ key: "key",
+ customAttributeDefinition: {
+ description: "Update the description as desired.",
+ visibility: "VISIBILITY_READ_ONLY",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.UpdateMerchantCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributeDefinitions.delete({ ...params }) -> Square.DeleteMerchantCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a merchant-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account.
+Deleting a custom attribute definition also deletes the corresponding custom attribute from
+the merchant.
+Only the definition owner can delete a custom attribute definition.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributeDefinitions.delete({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.CustomAttributeDefinitionsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Merchants CustomAttributes
+
+client.merchants.customAttributes.batchDelete({ ...params }) -> Square.BulkDeleteMerchantCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes [custom attributes](entity:CustomAttribute) for a merchant as a bulk operation.
+To delete a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributes.batchDelete({
+ values: {
+ id1: {
+ key: "alternative_seller_name",
+ },
+ id2: {
+ key: "has_seen_tutorial",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.BulkDeleteMerchantCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributes.batchUpsert({ ...params }) -> Square.BulkUpsertMerchantCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates [custom attributes](entity:CustomAttribute) for a merchant as a bulk operation.
+Use this endpoint to set the value of one or more custom attributes for a merchant.
+A custom attribute is based on a custom attribute definition in a Square seller account, which is
+created using the [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) endpoint.
+This `BulkUpsertMerchantCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert
+requests and returns a map of individual upsert responses. Each upsert request has a unique ID
+and provides a merchant ID and custom attribute. Each upsert response is returned with the ID
+of the corresponding request.
+To create or update a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributes.batchUpsert({
+ values: {
+ id1: {
+ merchantId: "DM7VKY8Q63GNP",
+ customAttribute: {
+ key: "alternative_seller_name",
+ value: "Ultimate Sneaker Store",
+ },
+ },
+ id2: {
+ merchantId: "DM7VKY8Q63GNP",
+ customAttribute: {
+ key: "has_seen_tutorial",
+ value: true,
+ },
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.BulkUpsertMerchantCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributes.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the [custom attributes](entity:CustomAttribute) associated with a merchant.
+You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
+in the same call.
+When all response pages are retrieved, the results include all custom attributes that are
+visible to the requesting application, including those that are owned by other applications
+and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.merchants.customAttributes.list({
+ merchantId: "merchant_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.merchants.customAttributes.list({
+ merchantId: "merchant_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.CustomAttributesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributes.get({ ...params }) -> Square.RetrieveMerchantCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a [custom attribute](entity:CustomAttribute) associated with a merchant.
+You can use the `with_definition` query parameter to also retrieve the custom attribute definition
+in the same call.
+To retrieve a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributes.get({
+ merchantId: "merchant_id",
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.CustomAttributesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributes.upsert({ ...params }) -> Square.UpsertMerchantCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates a [custom attribute](entity:CustomAttribute) for a merchant.
+Use this endpoint to set the value of a custom attribute for a specified merchant.
+A custom attribute is based on a custom attribute definition in a Square seller account, which
+is created using the [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) endpoint.
+To create or update a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributes.upsert({
+ merchantId: "merchant_id",
+ key: "key",
+ customAttribute: {
+ value: "Ultimate Sneaker Store",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.UpsertMerchantCustomAttributeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.merchants.customAttributes.delete({ ...params }) -> Square.DeleteMerchantCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a [custom attribute](entity:CustomAttribute) associated with a merchant.
+To delete a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.merchants.customAttributes.delete({
+ merchantId: "merchant_id",
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.merchants.CustomAttributesDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Orders CustomAttributeDefinitions
+
+client.orders.customAttributeDefinitions.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the order-related [custom attribute definitions](entity:CustomAttributeDefinition) that belong to a Square seller account.
+
+When all response pages are retrieved, the results include all custom attribute definitions
+that are visible to the requesting application, including those that are created by other
+applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that
+seller-defined custom attributes (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.orders.customAttributeDefinitions.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.orders.customAttributeDefinitions.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.CustomAttributeDefinitionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributeDefinitions.create({ ...params }) -> Square.CreateOrderCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates an order-related custom attribute definition. Use this endpoint to
+define a custom attribute that can be associated with orders.
+
+After creating a custom attribute definition, you can set the custom attribute for orders
+in the Square seller account.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributeDefinitions.create({
+ customAttributeDefinition: {
+ key: "cover-count",
+ schema: {
+ ref: "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number",
+ },
+ name: "Cover count",
+ description: "The number of people seated at a table",
+ visibility: "VISIBILITY_READ_WRITE_VALUES",
+ },
+ idempotencyKey: "IDEMPOTENCY_KEY",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.CreateOrderCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributeDefinitions.get({ ...params }) -> Square.RetrieveOrderCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves an order-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account.
+
+To retrieve a custom attribute definition created by another application, the `visibility`
+setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributeDefinitions.get({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.CustomAttributeDefinitionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributeDefinitions.update({ ...params }) -> Square.UpdateOrderCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates an order-related custom attribute definition for a Square seller account.
+
+Only the definition owner can update a custom attribute definition. Note that sellers can view all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributeDefinitions.update({
+ key: "key",
+ customAttributeDefinition: {
+ key: "cover-count",
+ visibility: "VISIBILITY_READ_ONLY",
+ version: 1,
+ },
+ idempotencyKey: "IDEMPOTENCY_KEY",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.UpdateOrderCustomAttributeDefinitionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributeDefinitions.delete({ ...params }) -> Square.DeleteOrderCustomAttributeDefinitionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes an order-related [custom attribute definition](entity:CustomAttributeDefinition) from a Square seller account.
+
+Only the definition owner can delete a custom attribute definition.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributeDefinitions.delete({
+ key: "key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.CustomAttributeDefinitionsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributeDefinitions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Orders CustomAttributes
+
+client.orders.customAttributes.batchDelete({ ...params }) -> Square.BulkDeleteOrderCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes order [custom attributes](entity:CustomAttribute) as a bulk operation.
+
+Use this endpoint to delete one or more custom attributes from one or more orders.
+A custom attribute is based on a custom attribute definition in a Square seller account. (To create a
+custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.)
+
+This `BulkDeleteOrderCustomAttributes` endpoint accepts a map of 1 to 25 individual delete
+requests and returns a map of individual delete responses. Each delete request has a unique ID
+and provides an order ID and custom attribute. Each delete response is returned with the ID
+of the corresponding request.
+
+To delete a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributes.batchDelete({
+ values: {
+ "cover-count": {
+ key: "cover-count",
+ orderId: "7BbXGEIWNldxAzrtGf9GPVZTwZ4F",
+ },
+ "table-number": {
+ key: "table-number",
+ orderId: "7BbXGEIWNldxAzrtGf9GPVZTwZ4F",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.BulkDeleteOrderCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributes.batchUpsert({ ...params }) -> Square.BulkUpsertOrderCustomAttributesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates order [custom attributes](entity:CustomAttribute) as a bulk operation.
+
+Use this endpoint to delete one or more custom attributes from one or more orders.
+A custom attribute is based on a custom attribute definition in a Square seller account. (To create a
+custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.)
+
+This `BulkUpsertOrderCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert
+requests and returns a map of individual upsert responses. Each upsert request has a unique ID
+and provides an order ID and custom attribute. Each upsert response is returned with the ID
+of the corresponding request.
+
+To create or update a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributes.batchUpsert({
+ values: {
+ "cover-count": {
+ customAttribute: {
+ key: "cover-count",
+ value: "6",
+ version: 2,
+ },
+ orderId: "7BbXGEIWNldxAzrtGf9GPVZTwZ4F",
+ },
+ "table-number": {
+ customAttribute: {
+ key: "table-number",
+ value: "11",
+ version: 4,
+ },
+ orderId: "7BbXGEIWNldxAzrtGf9GPVZTwZ4F",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.BulkUpsertOrderCustomAttributesRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributes.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists the [custom attributes](entity:CustomAttribute) associated with an order.
+
+You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
+in the same call.
+
+When all response pages are retrieved, the results include all custom attributes that are
+visible to the requesting application, including those that are owned by other applications
+and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.orders.customAttributes.list({
+ orderId: "order_id",
+});
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.orders.customAttributes.list({
+ orderId: "order_id",
+});
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.CustomAttributesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributes.get({ ...params }) -> Square.RetrieveOrderCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a [custom attribute](entity:CustomAttribute) associated with an order.
+
+You can use the `with_definition` query parameter to also retrieve the custom attribute definition
+in the same call.
+
+To retrieve a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributes.get({
+ orderId: "order_id",
+ customAttributeKey: "custom_attribute_key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.CustomAttributesGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributes.upsert({ ...params }) -> Square.UpsertOrderCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates a [custom attribute](entity:CustomAttribute) for an order.
+
+Use this endpoint to set the value of a custom attribute for a specific order.
+A custom attribute is based on a custom attribute definition in a Square seller account. (To create a
+custom attribute definition, use the [CreateOrderCustomAttributeDefinition](api-endpoint:OrderCustomAttributes-CreateOrderCustomAttributeDefinition) endpoint.)
+
+To create or update a custom attribute owned by another application, the `visibility` setting
+must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributes.upsert({
+ orderId: "order_id",
+ customAttributeKey: "custom_attribute_key",
+ customAttribute: {
+ key: "table-number",
+ value: "42",
+ version: 1,
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.UpsertOrderCustomAttributeRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.orders.customAttributes.delete({ ...params }) -> Square.DeleteOrderCustomAttributeResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a [custom attribute](entity:CustomAttribute) associated with a customer profile.
+
+To delete a custom attribute owned by another application, the `visibility` setting must be
+`VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
+(also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.orders.customAttributes.delete({
+ orderId: "order_id",
+ customAttributeKey: "custom_attribute_key",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.orders.CustomAttributesDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `CustomAttributes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## TeamMembers WageSetting
+
+client.teamMembers.wageSetting.get({ ...params }) -> Square.GetWageSettingResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a `WageSetting` object for a team member specified
+by `TeamMember.id`. For more information, see
+[Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#retrievewagesetting).
+
+Square recommends using [RetrieveTeamMember](api-endpoint:Team-RetrieveTeamMember) or [SearchTeamMembers](api-endpoint:Team-SearchTeamMembers)
+to get this information directly from the `TeamMember.wage_setting` field.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.teamMembers.wageSetting.get({
+ teamMemberId: "team_member_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.teamMembers.WageSettingGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `WageSetting.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.teamMembers.wageSetting.update({ ...params }) -> Square.UpdateWageSettingResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates or updates a `WageSetting` object. The object is created if a
+`WageSetting` with the specified `team_member_id` doesn't exist. Otherwise,
+it fully replaces the `WageSetting` object for the team member.
+The `WageSetting` is returned on a successful update. For more information, see
+[Troubleshooting the Team API](https://developer.squareup.com/docs/team/troubleshooting#create-or-update-a-wage-setting).
+
+Square recommends using [CreateTeamMember](api-endpoint:Team-CreateTeamMember) or [UpdateTeamMember](api-endpoint:Team-UpdateTeamMember)
+to manage the `TeamMember.wage_setting` field directly.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.teamMembers.wageSetting.update({
+ teamMemberId: "team_member_id",
+ wageSetting: {
+ jobAssignments: [
+ {
+ jobTitle: "Manager",
+ payType: "SALARY",
+ annualRate: {
+ amount: 3000000,
+ currency: "USD",
+ },
+ weeklyHours: 40,
+ },
+ {
+ jobTitle: "Cashier",
+ payType: "HOURLY",
+ hourlyRate: {
+ amount: 2000,
+ currency: "USD",
+ },
+ },
+ ],
+ isOvertimeExempt: true,
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.teamMembers.UpdateWageSettingRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `WageSetting.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Terminal Actions
+
+client.terminal.actions.create({ ...params }) -> Square.CreateTerminalActionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a Terminal action request and sends it to the specified device.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.actions.create({
+ idempotencyKey: "thahn-70e75c10-47f7-4ab6-88cc-aaa4076d065e",
+ action: {
+ deviceId: "{{DEVICE_ID}}",
+ deadlineDuration: "PT5M",
+ type: "SAVE_CARD",
+ saveCardOptions: {
+ customerId: "{{CUSTOMER_ID}}",
+ referenceId: "user-id-1",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.CreateTerminalActionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Actions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.actions.search({ ...params }) -> Square.SearchTerminalActionsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a filtered list of Terminal action requests created by the account making the request. Terminal action requests are available for 30 days.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.actions.search({
+ query: {
+ filter: {
+ createdAt: {
+ startAt: "2022-04-01T00:00:00.000Z",
+ },
+ },
+ sort: {
+ sortOrder: "DESC",
+ },
+ },
+ limit: 2,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.SearchTerminalActionsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Actions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.actions.get({ ...params }) -> Square.GetTerminalActionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a Terminal action request by `action_id`. Terminal action requests are available for 30 days.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.actions.get({
+ actionId: "action_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.ActionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Actions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.actions.cancel({ ...params }) -> Square.CancelTerminalActionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels a Terminal action request if the status of the request permits it.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.actions.cancel({
+ actionId: "action_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.ActionsCancelRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Actions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Terminal Checkouts
+
+client.terminal.checkouts.create({ ...params }) -> Square.CreateTerminalCheckoutResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a Terminal checkout request and sends it to the specified device to take a payment
+for the requested amount.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.checkouts.create({
+ idempotencyKey: "28a0c3bc-7839-11ea-bc55-0242ac130003",
+ checkout: {
+ amountMoney: {
+ amount: 2610,
+ currency: "USD",
+ },
+ referenceId: "id11572",
+ note: "A brief note",
+ deviceOptions: {
+ deviceId: "dbb5d83a-7838-11ea-bc55-0242ac130003",
+ },
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.CreateTerminalCheckoutRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Checkouts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.checkouts.search({ ...params }) -> Square.SearchTerminalCheckoutsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Returns a filtered list of Terminal checkout requests created by the application making the request. Only Terminal checkout requests created for the merchant scoped to the OAuth token are returned. Terminal checkout requests are available for 30 days.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.checkouts.search({
+ query: {
+ filter: {
+ status: "COMPLETED",
+ },
+ },
+ limit: 2,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.SearchTerminalCheckoutsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Checkouts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.checkouts.get({ ...params }) -> Square.GetTerminalCheckoutResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a Terminal checkout request by `checkout_id`. Terminal checkout requests are available for 30 days.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.checkouts.get({
+ checkoutId: "checkout_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.CheckoutsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Checkouts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.checkouts.cancel({ ...params }) -> Square.CancelTerminalCheckoutResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels a Terminal checkout request if the status of the request permits it.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.checkouts.cancel({
+ checkoutId: "checkout_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.CheckoutsCancelRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Checkouts.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Terminal Refunds
+
+client.terminal.refunds.create({ ...params }) -> Square.CreateTerminalRefundResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a request to refund an Interac payment completed on a Square Terminal. Refunds for Interac payments on a Square Terminal are supported only for Interac debit cards in Canada. Other refunds for Terminal payments should use the Refunds API. For more information, see [Refunds API](api:Refunds).
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.refunds.create({
+ idempotencyKey: "402a640b-b26f-401f-b406-46f839590c04",
+ refund: {
+ paymentId: "5O5OvgkcNUhl7JBuINflcjKqUzXZY",
+ amountMoney: {
+ amount: 111,
+ currency: "CAD",
+ },
+ reason: "Returning items",
+ deviceId: "f72dfb8e-4d65-4e56-aade-ec3fb8d33291",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.CreateTerminalRefundRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Refunds.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.refunds.search({ ...params }) -> Square.SearchTerminalRefundsResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a filtered list of Interac Terminal refund requests created by the seller making the request. Terminal refund requests are available for 30 days.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.refunds.search({
+ query: {
+ filter: {
+ status: "COMPLETED",
+ },
+ },
+ limit: 1,
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.SearchTerminalRefundsRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Refunds.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.refunds.get({ ...params }) -> Square.GetTerminalRefundResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves an Interac Terminal refund object by ID. Terminal refund objects are available for 30 days.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.refunds.get({
+ terminalRefundId: "terminal_refund_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.RefundsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Refunds.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.terminal.refunds.cancel({ ...params }) -> Square.CancelTerminalRefundResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Cancels an Interac Terminal refund request by refund request ID if the status of the request permits it.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.terminal.refunds.cancel({
+ terminalRefundId: "terminal_refund_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.terminal.RefundsCancelRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Refunds.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Webhooks EventTypes
+
+client.webhooks.eventTypes.list({ ...params }) -> Square.ListWebhookEventTypesResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists all webhook event types that can be subscribed to.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.webhooks.eventTypes.list();
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.webhooks.EventTypesListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `EventTypes.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+## Webhooks Subscriptions
+
+client.webhooks.subscriptions.list({ ...params }) -> core.Page
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Lists all webhook subscriptions owned by your application.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+const response = await client.webhooks.subscriptions.list();
+for await (const item of response) {
+ console.log(item);
+}
+
+// Or you can manually iterate page-by-page
+const page = await client.webhooks.subscriptions.list();
+while (page.hasNextPage()) {
+ page = page.getNextPage();
+}
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.webhooks.SubscriptionsListRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.webhooks.subscriptions.create({ ...params }) -> Square.CreateWebhookSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Creates a webhook subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.webhooks.subscriptions.create({
+ idempotencyKey: "63f84c6c-2200-4c99-846c-2670a1311fbf",
+ subscription: {
+ name: "Example Webhook Subscription",
+ eventTypes: ["payment.created", "payment.updated"],
+ notificationUrl: "https://example-webhook-url.com",
+ apiVersion: "2021-12-15",
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.webhooks.CreateWebhookSubscriptionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.webhooks.subscriptions.get({ ...params }) -> Square.GetWebhookSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Retrieves a webhook subscription identified by its ID.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.webhooks.subscriptions.get({
+ subscriptionId: "subscription_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.webhooks.SubscriptionsGetRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.webhooks.subscriptions.update({ ...params }) -> Square.UpdateWebhookSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a webhook subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.webhooks.subscriptions.update({
+ subscriptionId: "subscription_id",
+ subscription: {
+ name: "Updated Example Webhook Subscription",
+ enabled: false,
+ },
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.webhooks.UpdateWebhookSubscriptionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.webhooks.subscriptions.delete({ ...params }) -> Square.DeleteWebhookSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Deletes a webhook subscription.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.webhooks.subscriptions.delete({
+ subscriptionId: "subscription_id",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.webhooks.SubscriptionsDeleteRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.webhooks.subscriptions.updateSignatureKey({ ...params }) -> Square.UpdateWebhookSubscriptionSignatureKeyResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Updates a webhook subscription by replacing the existing signature key with a new one.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.webhooks.subscriptions.updateSignatureKey({
+ subscriptionId: "subscription_id",
+ idempotencyKey: "ed80ae6b-0654-473b-bbab-a39aee89a60d",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.webhooks.UpdateWebhookSubscriptionSignatureKeyRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
+
+client.webhooks.subscriptions.test({ ...params }) -> Square.TestWebhookSubscriptionResponse
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Tests a webhook subscription by sending a test event to the notification URL.
+
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```typescript
+await client.webhooks.subscriptions.test({
+ subscriptionId: "subscription_id",
+ eventType: "payment.created",
+});
+```
+
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**request:** `Square.webhooks.TestWebhookSubscriptionRequest`
+
+
+
+
+
+-
+
+**requestOptions:** `Subscriptions.RequestOptions`
+
+
+
+
+
+
+
+
+
diff --git a/scripts/rename-to-esm-files.js b/scripts/rename-to-esm-files.js
new file mode 100644
index 000000000..81dac6a75
--- /dev/null
+++ b/scripts/rename-to-esm-files.js
@@ -0,0 +1,115 @@
+#!/usr/bin/env node
+
+const fs = require("fs").promises;
+const path = require("path");
+
+const extensionMap = {
+ ".js": ".mjs",
+ ".d.ts": ".d.mts",
+};
+const oldExtensions = Object.keys(extensionMap);
+
+async function findFiles(rootPath) {
+ const files = [];
+
+ async function scan(directory) {
+ const entries = await fs.readdir(directory, { withFileTypes: true });
+
+ for (const entry of entries) {
+ const fullPath = path.join(directory, entry.name);
+
+ if (entry.isDirectory()) {
+ if (entry.name !== "node_modules" && !entry.name.startsWith(".")) {
+ await scan(fullPath);
+ }
+ } else if (entry.isFile()) {
+ if (oldExtensions.some((ext) => entry.name.endsWith(ext))) {
+ files.push(fullPath);
+ }
+ }
+ }
+ }
+
+ await scan(rootPath);
+ return files;
+}
+
+async function updateFiles(files) {
+ const updatedFiles = [];
+ for (const file of files) {
+ const updated = await updateFileContents(file);
+ updatedFiles.push(updated);
+ }
+
+ console.log(`Updated imports in ${updatedFiles.length} files.`);
+}
+
+async function updateFileContents(file) {
+ const content = await fs.readFile(file, "utf8");
+
+ let newContent = content;
+ // Update each extension type defined in the map
+ for (const [oldExt, newExt] of Object.entries(extensionMap)) {
+ const regex = new RegExp(`(import|export)(.+from\\s+['"])(\\.\\.?\\/[^'"]+)(\\${oldExt})(['"])`, "g");
+ newContent = newContent.replace(regex, `$1$2$3${newExt}$5`);
+ }
+
+ if (content !== newContent) {
+ await fs.writeFile(file, newContent, "utf8");
+ return true;
+ }
+ return false;
+}
+
+async function renameFiles(files) {
+ let counter = 0;
+ for (const file of files) {
+ const ext = oldExtensions.find((ext) => file.endsWith(ext));
+ const newExt = extensionMap[ext];
+
+ if (newExt) {
+ const newPath = file.slice(0, -ext.length) + newExt;
+ await fs.rename(file, newPath);
+ counter++;
+ }
+ }
+
+ console.log(`Renamed ${counter} files.`);
+}
+
+async function main() {
+ try {
+ const targetDir = process.argv[2];
+ if (!targetDir) {
+ console.error("Please provide a target directory");
+ process.exit(1);
+ }
+
+ const targetPath = path.resolve(targetDir);
+ const targetStats = await fs.stat(targetPath);
+
+ if (!targetStats.isDirectory()) {
+ console.error("The provided path is not a directory");
+ process.exit(1);
+ }
+
+ console.log(`Scanning directory: ${targetDir}`);
+
+ const files = await findFiles(targetDir);
+
+ if (files.length === 0) {
+ console.log("No matching files found.");
+ process.exit(0);
+ }
+
+ console.log(`Found ${files.length} files.`);
+ await updateFiles(files);
+ await renameFiles(files);
+ console.log("\nDone!");
+ } catch (error) {
+ console.error("An error occurred:", error.message);
+ process.exit(1);
+ }
+}
+
+main();
diff --git a/src/Client.ts b/src/Client.ts
new file mode 100644
index 000000000..c3bdd20ca
--- /dev/null
+++ b/src/Client.ts
@@ -0,0 +1,240 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "./environments";
+import * as core from "./core";
+import { Mobile } from "./api/resources/mobile/client/Client";
+import { OAuth } from "./api/resources/oAuth/client/Client";
+import { V1Transactions } from "./api/resources/v1Transactions/client/Client";
+import { ApplePay } from "./api/resources/applePay/client/Client";
+import { BankAccounts } from "./api/resources/bankAccounts/client/Client";
+import { Bookings } from "./api/resources/bookings/client/Client";
+import { Cards } from "./api/resources/cards/client/Client";
+import { Catalog } from "./api/resources/catalog/client/Client";
+import { Customers } from "./api/resources/customers/client/Client";
+import { Devices } from "./api/resources/devices/client/Client";
+import { Disputes } from "./api/resources/disputes/client/Client";
+import { Employees } from "./api/resources/employees/client/Client";
+import { Events } from "./api/resources/events/client/Client";
+import { GiftCards } from "./api/resources/giftCards/client/Client";
+import { Inventory } from "./api/resources/inventory/client/Client";
+import { Invoices } from "./api/resources/invoices/client/Client";
+import { Locations } from "./api/resources/locations/client/Client";
+import { Loyalty } from "./api/resources/loyalty/client/Client";
+import { Merchants } from "./api/resources/merchants/client/Client";
+import { Checkout } from "./api/resources/checkout/client/Client";
+import { Orders } from "./api/resources/orders/client/Client";
+import { Payments } from "./api/resources/payments/client/Client";
+import { Payouts } from "./api/resources/payouts/client/Client";
+import { Refunds } from "./api/resources/refunds/client/Client";
+import { Sites } from "./api/resources/sites/client/Client";
+import { Snippets } from "./api/resources/snippets/client/Client";
+import { Subscriptions } from "./api/resources/subscriptions/client/Client";
+import { TeamMembers } from "./api/resources/teamMembers/client/Client";
+import { Team } from "./api/resources/team/client/Client";
+import { Terminal } from "./api/resources/terminal/client/Client";
+import { Vendors } from "./api/resources/vendors/client/Client";
+import { CashDrawers } from "./api/resources/cashDrawers/client/Client";
+import { Labor } from "./api/resources/labor/client/Client";
+import { Webhooks } from "./api/resources/webhooks/client/Client";
+
+export declare namespace SquareClient {
+ export interface Options {
+ environment?: core.Supplier;
+ /** Specify a custom URL to connect the client to. */
+ baseUrl?: core.Supplier;
+ token?: core.Supplier;
+ /** Override the Square-Version header */
+ version?: "2025-01-23";
+ fetcher?: core.FetchFunction;
+ }
+
+ export interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
+ timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
+ maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
+ /** Override the Square-Version header */
+ version?: "2025-01-23";
+ /** Additional headers to include in the request. */
+ headers?: Record;
+ }
+}
+
+export class SquareClient {
+ protected _mobile: Mobile | undefined;
+ protected _oAuth: OAuth | undefined;
+ protected _v1Transactions: V1Transactions | undefined;
+ protected _applePay: ApplePay | undefined;
+ protected _bankAccounts: BankAccounts | undefined;
+ protected _bookings: Bookings | undefined;
+ protected _cards: Cards | undefined;
+ protected _catalog: Catalog | undefined;
+ protected _customers: Customers | undefined;
+ protected _devices: Devices | undefined;
+ protected _disputes: Disputes | undefined;
+ protected _employees: Employees | undefined;
+ protected _events: Events | undefined;
+ protected _giftCards: GiftCards | undefined;
+ protected _inventory: Inventory | undefined;
+ protected _invoices: Invoices | undefined;
+ protected _locations: Locations | undefined;
+ protected _loyalty: Loyalty | undefined;
+ protected _merchants: Merchants | undefined;
+ protected _checkout: Checkout | undefined;
+ protected _orders: Orders | undefined;
+ protected _payments: Payments | undefined;
+ protected _payouts: Payouts | undefined;
+ protected _refunds: Refunds | undefined;
+ protected _sites: Sites | undefined;
+ protected _snippets: Snippets | undefined;
+ protected _subscriptions: Subscriptions | undefined;
+ protected _teamMembers: TeamMembers | undefined;
+ protected _team: Team | undefined;
+ protected _terminal: Terminal | undefined;
+ protected _vendors: Vendors | undefined;
+ protected _cashDrawers: CashDrawers | undefined;
+ protected _labor: Labor | undefined;
+ protected _webhooks: Webhooks | undefined;
+
+ constructor(protected readonly _options: SquareClient.Options = {}) {}
+
+ public get mobile(): Mobile {
+ return (this._mobile ??= new Mobile(this._options));
+ }
+
+ public get oAuth(): OAuth {
+ return (this._oAuth ??= new OAuth(this._options));
+ }
+
+ public get v1Transactions(): V1Transactions {
+ return (this._v1Transactions ??= new V1Transactions(this._options));
+ }
+
+ public get applePay(): ApplePay {
+ return (this._applePay ??= new ApplePay(this._options));
+ }
+
+ public get bankAccounts(): BankAccounts {
+ return (this._bankAccounts ??= new BankAccounts(this._options));
+ }
+
+ public get bookings(): Bookings {
+ return (this._bookings ??= new Bookings(this._options));
+ }
+
+ public get cards(): Cards {
+ return (this._cards ??= new Cards(this._options));
+ }
+
+ public get catalog(): Catalog {
+ return (this._catalog ??= new Catalog(this._options));
+ }
+
+ public get customers(): Customers {
+ return (this._customers ??= new Customers(this._options));
+ }
+
+ public get devices(): Devices {
+ return (this._devices ??= new Devices(this._options));
+ }
+
+ public get disputes(): Disputes {
+ return (this._disputes ??= new Disputes(this._options));
+ }
+
+ public get employees(): Employees {
+ return (this._employees ??= new Employees(this._options));
+ }
+
+ public get events(): Events {
+ return (this._events ??= new Events(this._options));
+ }
+
+ public get giftCards(): GiftCards {
+ return (this._giftCards ??= new GiftCards(this._options));
+ }
+
+ public get inventory(): Inventory {
+ return (this._inventory ??= new Inventory(this._options));
+ }
+
+ public get invoices(): Invoices {
+ return (this._invoices ??= new Invoices(this._options));
+ }
+
+ public get locations(): Locations {
+ return (this._locations ??= new Locations(this._options));
+ }
+
+ public get loyalty(): Loyalty {
+ return (this._loyalty ??= new Loyalty(this._options));
+ }
+
+ public get merchants(): Merchants {
+ return (this._merchants ??= new Merchants(this._options));
+ }
+
+ public get checkout(): Checkout {
+ return (this._checkout ??= new Checkout(this._options));
+ }
+
+ public get orders(): Orders {
+ return (this._orders ??= new Orders(this._options));
+ }
+
+ public get payments(): Payments {
+ return (this._payments ??= new Payments(this._options));
+ }
+
+ public get payouts(): Payouts {
+ return (this._payouts ??= new Payouts(this._options));
+ }
+
+ public get refunds(): Refunds {
+ return (this._refunds ??= new Refunds(this._options));
+ }
+
+ public get sites(): Sites {
+ return (this._sites ??= new Sites(this._options));
+ }
+
+ public get snippets(): Snippets {
+ return (this._snippets ??= new Snippets(this._options));
+ }
+
+ public get subscriptions(): Subscriptions {
+ return (this._subscriptions ??= new Subscriptions(this._options));
+ }
+
+ public get teamMembers(): TeamMembers {
+ return (this._teamMembers ??= new TeamMembers(this._options));
+ }
+
+ public get team(): Team {
+ return (this._team ??= new Team(this._options));
+ }
+
+ public get terminal(): Terminal {
+ return (this._terminal ??= new Terminal(this._options));
+ }
+
+ public get vendors(): Vendors {
+ return (this._vendors ??= new Vendors(this._options));
+ }
+
+ public get cashDrawers(): CashDrawers {
+ return (this._cashDrawers ??= new CashDrawers(this._options));
+ }
+
+ public get labor(): Labor {
+ return (this._labor ??= new Labor(this._options));
+ }
+
+ public get webhooks(): Webhooks {
+ return (this._webhooks ??= new Webhooks(this._options));
+ }
+}
diff --git a/src/api/applePayApi.ts b/src/api/applePayApi.ts
deleted file mode 100644
index 6a0fda23d..000000000
--- a/src/api/applePayApi.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- RegisterDomainRequest,
- registerDomainRequestSchema,
-} from '../models/registerDomainRequest';
-import {
- RegisterDomainResponse,
- registerDomainResponseSchema,
-} from '../models/registerDomainResponse';
-import { BaseApi } from './baseApi';
-
-export class ApplePayApi extends BaseApi {
- /**
- * Activates a domain for use with Apple Pay on the Web and Square. A validation
- * is performed on this domain by Apple to ensure that it is properly set up as
- * an Apple Pay enabled domain.
- *
- * This endpoint provides an easy way for platform developers to bulk activate
- * Apple Pay on the Web with Square for merchants using their platform.
- *
- * Note: You will need to host a valid domain verification file on your domain to support Apple Pay.
- * The
- * current version of this file is always available at https://app.squareup.com/digital-wallets/apple-
- * pay/apple-developer-merchantid-domain-association,
- * and should be hosted at `.well_known/apple-developer-merchantid-domain-association` on your
- * domain. This file is subject to change; we strongly recommend checking for updates regularly and
- * avoiding
- * long-lived caches that might not keep in sync with the correct file version.
- *
- * To learn more about the Web Payments SDK and how to add Apple Pay, see [Take an Apple Pay
- * Payment](https://developer.squareup.com/docs/web-payments/apple-pay).
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async registerDomain(
- body: RegisterDomainRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/apple-pay/domains');
- const mapped = req.prepareArgs({
- body: [body, registerDomainRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(registerDomainResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/bankAccountsApi.ts b/src/api/bankAccountsApi.ts
deleted file mode 100644
index c3e1859ea..000000000
--- a/src/api/bankAccountsApi.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- GetBankAccountByV1IdResponse,
- getBankAccountByV1IdResponseSchema,
-} from '../models/getBankAccountByV1IdResponse';
-import {
- GetBankAccountResponse,
- getBankAccountResponseSchema,
-} from '../models/getBankAccountResponse';
-import {
- ListBankAccountsResponse,
- listBankAccountsResponseSchema,
-} from '../models/listBankAccountsResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class BankAccountsApi extends BaseApi {
- /**
- * Returns a list of [BankAccount]($m/BankAccount) objects linked to a Square account.
- *
- * @param cursor The pagination cursor returned by a previous call to this endpoint. Use it in the
- * next `ListBankAccounts` request to retrieve the next set of results. See the
- * [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide
- * for more information.
- * @param limit Upper limit on the number of bank accounts to return in the response. Currently,
- * 1000 is the largest supported limit. You can specify a limit of up to 1000 bank
- * accounts. This is also the default limit.
- * @param locationId Location ID. You can specify this optional filter to retrieve only the linked bank
- * accounts belonging to a specific location.
- * @return Response from the API call
- */
- async listBankAccounts(
- cursor?: string,
- limit?: number,
- locationId?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/bank-accounts');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- locationId: [locationId, optional(string())],
- });
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.query('location_id', mapped.locationId);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listBankAccountsResponseSchema, requestOptions);
- }
-
- /**
- * Returns details of a [BankAccount]($m/BankAccount) identified by V1 bank account ID.
- *
- * @param v1BankAccountId Connect V1 ID of the desired `BankAccount`. For more information, see
- * [Retrieve a bank account by using an ID issued by V1 Bank Accounts API](https:
- * //developer.squareup.com/docs/bank-accounts-api#retrieve-a-bank-account-by-
- * using-an-id-issued-by-v1-bank-accounts-api).
- * @return Response from the API call
- */
- async getBankAccountByV1Id(
- v1BankAccountId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- v1BankAccountId: [v1BankAccountId, string()],
- });
- req.appendTemplatePath`/v2/bank-accounts/by-v1-id/${mapped.v1BankAccountId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getBankAccountByV1IdResponseSchema, requestOptions);
- }
-
- /**
- * Returns details of a [BankAccount]($m/BankAccount)
- * linked to a Square account.
- *
- * @param bankAccountId Square-issued ID of the desired `BankAccount`.
- * @return Response from the API call
- */
- async getBankAccount(
- bankAccountId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- bankAccountId: [bankAccountId, string()],
- });
- req.appendTemplatePath`/v2/bank-accounts/${mapped.bankAccountId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getBankAccountResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/baseApi.ts b/src/api/baseApi.ts
deleted file mode 100644
index 7f3b0a1f3..000000000
--- a/src/api/baseApi.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { ClientInterface, SdkRequestBuilderFactory } from '../clientInterface';
-
-/** Base class for all controllers */
-export class BaseApi {
- /** Create a request builder */
- protected createRequest: SdkRequestBuilderFactory;
-
- constructor(client: ClientInterface) {
- this.createRequest = client.getRequestBuilderFactory();
- }
-}
diff --git a/src/api/bookingCustomAttributesApi.ts b/src/api/bookingCustomAttributesApi.ts
deleted file mode 100644
index d66d8fdc6..000000000
--- a/src/api/bookingCustomAttributesApi.ts
+++ /dev/null
@@ -1,496 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- BulkDeleteBookingCustomAttributesRequest,
- bulkDeleteBookingCustomAttributesRequestSchema,
-} from '../models/bulkDeleteBookingCustomAttributesRequest';
-import {
- BulkDeleteBookingCustomAttributesResponse,
- bulkDeleteBookingCustomAttributesResponseSchema,
-} from '../models/bulkDeleteBookingCustomAttributesResponse';
-import {
- BulkUpsertBookingCustomAttributesRequest,
- bulkUpsertBookingCustomAttributesRequestSchema,
-} from '../models/bulkUpsertBookingCustomAttributesRequest';
-import {
- BulkUpsertBookingCustomAttributesResponse,
- bulkUpsertBookingCustomAttributesResponseSchema,
-} from '../models/bulkUpsertBookingCustomAttributesResponse';
-import {
- CreateBookingCustomAttributeDefinitionRequest,
- createBookingCustomAttributeDefinitionRequestSchema,
-} from '../models/createBookingCustomAttributeDefinitionRequest';
-import {
- CreateBookingCustomAttributeDefinitionResponse,
- createBookingCustomAttributeDefinitionResponseSchema,
-} from '../models/createBookingCustomAttributeDefinitionResponse';
-import {
- DeleteBookingCustomAttributeDefinitionResponse,
- deleteBookingCustomAttributeDefinitionResponseSchema,
-} from '../models/deleteBookingCustomAttributeDefinitionResponse';
-import {
- DeleteBookingCustomAttributeResponse,
- deleteBookingCustomAttributeResponseSchema,
-} from '../models/deleteBookingCustomAttributeResponse';
-import {
- ListBookingCustomAttributeDefinitionsResponse,
- listBookingCustomAttributeDefinitionsResponseSchema,
-} from '../models/listBookingCustomAttributeDefinitionsResponse';
-import {
- ListBookingCustomAttributesResponse,
- listBookingCustomAttributesResponseSchema,
-} from '../models/listBookingCustomAttributesResponse';
-import {
- RetrieveBookingCustomAttributeDefinitionResponse,
- retrieveBookingCustomAttributeDefinitionResponseSchema,
-} from '../models/retrieveBookingCustomAttributeDefinitionResponse';
-import {
- RetrieveBookingCustomAttributeResponse,
- retrieveBookingCustomAttributeResponseSchema,
-} from '../models/retrieveBookingCustomAttributeResponse';
-import {
- UpdateBookingCustomAttributeDefinitionRequest,
- updateBookingCustomAttributeDefinitionRequestSchema,
-} from '../models/updateBookingCustomAttributeDefinitionRequest';
-import {
- UpdateBookingCustomAttributeDefinitionResponse,
- updateBookingCustomAttributeDefinitionResponseSchema,
-} from '../models/updateBookingCustomAttributeDefinitionResponse';
-import {
- UpsertBookingCustomAttributeRequest,
- upsertBookingCustomAttributeRequestSchema,
-} from '../models/upsertBookingCustomAttributeRequest';
-import {
- UpsertBookingCustomAttributeResponse,
- upsertBookingCustomAttributeResponseSchema,
-} from '../models/upsertBookingCustomAttributeResponse';
-import { boolean, number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class BookingCustomAttributesApi extends BaseApi {
- /**
- * Get all bookings custom attribute definitions.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and
- * `APPOINTMENTS_READ` for the OAuth scope.
- *
- * @param limit The maximum number of results to return in a single paged response. This limit is
- * advisory. The response might contain more or fewer results. The minimum value is 1 and the
- * maximum value is 100. The default value is 20. For more information, see
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination).
- * @param cursor The cursor returned in the paged response from the previous call to this endpoint.
- * Provide this cursor to retrieve the next page of results for your original request. For
- * more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-
- * api-patterns/pagination).
- * @return Response from the API call
- */
- async listBookingCustomAttributeDefinitions(
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/bookings/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listBookingCustomAttributeDefinitionsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates a bookings custom attribute definition.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async createBookingCustomAttributeDefinition(
- body: CreateBookingCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/bookings/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- body: [body, createBookingCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createBookingCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a bookings custom attribute definition.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param key The key of the custom attribute definition to delete.
- * @return Response from the API call
- */
- async deleteBookingCustomAttributeDefinition(
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ key: [key, string()] });
- req.appendTemplatePath`/v2/bookings/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteBookingCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a bookings custom attribute definition.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and
- * `APPOINTMENTS_READ` for the OAuth scope.
- *
- * @param key The key of the custom attribute definition to retrieve. If the requesting application is
- * not the definition owner, you must use the qualified key.
- * @param version The current version of the custom attribute definition, which is used for strongly
- * consistent reads to guarantee that you receive the most up-to-date data. When included in
- * the request, Square returns the specified version or a higher version if one exists. If
- * the specified version is higher than the current version, Square returns a `BAD_REQUEST`
- * error.
- * @return Response from the API call
- */
- async retrieveBookingCustomAttributeDefinition(
- key: string,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- key: [key, string()],
- version: [version, optional(number())],
- });
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/bookings/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveBookingCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Updates a bookings custom attribute definition.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param key The key of the custom attribute
- * definition to update.
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async updateBookingCustomAttributeDefinition(
- key: string,
- body: UpdateBookingCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- key: [key, string()],
- body: [body, updateBookingCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/bookings/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- updateBookingCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Bulk deletes bookings custom attributes.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async bulkDeleteBookingCustomAttributes(
- body: BulkDeleteBookingCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/bookings/custom-attributes/bulk-delete'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkDeleteBookingCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkDeleteBookingCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Bulk upserts bookings custom attributes.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async bulkUpsertBookingCustomAttributes(
- body: BulkUpsertBookingCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/bookings/custom-attributes/bulk-upsert'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkUpsertBookingCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkUpsertBookingCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Lists a booking's custom attributes.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and
- * `APPOINTMENTS_READ` for the OAuth scope.
- *
- * @param bookingId The ID of the target [booking](entity:Booking).
- * @param limit The maximum number of results to return in a single paged response. This limit
- * is advisory. The response might contain more or fewer results. The minimum
- * value is 1 and the maximum value is 100. The default value is 20. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/pagination).
- * @param cursor The cursor returned in the paged response from the previous call to this
- * endpoint. Provide this cursor to retrieve the next page of results for your
- * original request. For more information, see [Pagination](https://developer.
- * squareup.com/docs/build-basics/common-api-patterns/pagination).
- * @param withDefinitions Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of each custom attribute.
- * Set this parameter to `true` to get the name and description of each custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @return Response from the API call
- */
- async listBookingCustomAttributes(
- bookingId: string,
- limit?: number,
- cursor?: string,
- withDefinitions?: boolean,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- bookingId: [bookingId, string()],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- withDefinitions: [withDefinitions, optional(boolean())],
- });
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.query('with_definitions', mapped.withDefinitions);
- req.appendTemplatePath`/v2/bookings/${mapped.bookingId}/custom-attributes`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listBookingCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a bookings custom attribute.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param bookingId The ID of the target [booking](entity:Booking).
- * @param key The key of the custom attribute to delete. This key must match the `key` of a custom
- * attribute definition in the Square seller account. If the requesting application is
- * not the definition owner, you must use the qualified key.
- * @return Response from the API call
- */
- async deleteBookingCustomAttribute(
- bookingId: string,
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- bookingId: [bookingId, string()],
- key: [key, string()],
- });
- req.appendTemplatePath`/v2/bookings/${mapped.bookingId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteBookingCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a bookings custom attribute.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and
- * `APPOINTMENTS_READ` for the OAuth scope.
- *
- * @param bookingId The ID of the target [booking](entity:Booking).
- * @param key The key of the custom attribute to retrieve. This key must match the `key` of a
- * custom attribute definition in the Square seller account. If the requesting
- * application is not the definition owner, you must use the qualified key.
- * @param withDefinition Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of the custom attribute.
- * Set this parameter to `true` to get the name and description of the custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @param version The current version of the custom attribute, which is used for strongly
- * consistent reads to guarantee that you receive the most up-to-date data. When
- * included in the request, Square returns the specified version or a higher
- * version if one exists. If the specified version is higher than the current
- * version, Square returns a `BAD_REQUEST` error.
- * @return Response from the API call
- */
- async retrieveBookingCustomAttribute(
- bookingId: string,
- key: string,
- withDefinition?: boolean,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- bookingId: [bookingId, string()],
- key: [key, string()],
- withDefinition: [withDefinition, optional(boolean())],
- version: [version, optional(number())],
- });
- req.query('with_definition', mapped.withDefinition);
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/bookings/${mapped.bookingId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveBookingCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Upserts a bookings custom attribute.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param bookingId The ID of the target [booking](entity:Booking).
- * @param key The key of the custom attribute to create or
- * update. This key must match the `key` of a
- * custom attribute definition in the Square seller
- * account. If the requesting application is not
- * the definition owner, you must use the qualified
- * key.
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async upsertBookingCustomAttribute(
- bookingId: string,
- key: string,
- body: UpsertBookingCustomAttributeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- bookingId: [bookingId, string()],
- key: [key, string()],
- body: [body, upsertBookingCustomAttributeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/bookings/${mapped.bookingId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- upsertBookingCustomAttributeResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/bookingsApi.ts b/src/api/bookingsApi.ts
deleted file mode 100644
index aca6277ae..000000000
--- a/src/api/bookingsApi.ts
+++ /dev/null
@@ -1,469 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- BulkRetrieveBookingsRequest,
- bulkRetrieveBookingsRequestSchema,
-} from '../models/bulkRetrieveBookingsRequest';
-import {
- BulkRetrieveBookingsResponse,
- bulkRetrieveBookingsResponseSchema,
-} from '../models/bulkRetrieveBookingsResponse';
-import {
- BulkRetrieveTeamMemberBookingProfilesRequest,
- bulkRetrieveTeamMemberBookingProfilesRequestSchema,
-} from '../models/bulkRetrieveTeamMemberBookingProfilesRequest';
-import {
- BulkRetrieveTeamMemberBookingProfilesResponse,
- bulkRetrieveTeamMemberBookingProfilesResponseSchema,
-} from '../models/bulkRetrieveTeamMemberBookingProfilesResponse';
-import {
- CancelBookingRequest,
- cancelBookingRequestSchema,
-} from '../models/cancelBookingRequest';
-import {
- CancelBookingResponse,
- cancelBookingResponseSchema,
-} from '../models/cancelBookingResponse';
-import {
- CreateBookingRequest,
- createBookingRequestSchema,
-} from '../models/createBookingRequest';
-import {
- CreateBookingResponse,
- createBookingResponseSchema,
-} from '../models/createBookingResponse';
-import {
- ListBookingsResponse,
- listBookingsResponseSchema,
-} from '../models/listBookingsResponse';
-import {
- ListLocationBookingProfilesResponse,
- listLocationBookingProfilesResponseSchema,
-} from '../models/listLocationBookingProfilesResponse';
-import {
- ListTeamMemberBookingProfilesResponse,
- listTeamMemberBookingProfilesResponseSchema,
-} from '../models/listTeamMemberBookingProfilesResponse';
-import {
- RetrieveBookingResponse,
- retrieveBookingResponseSchema,
-} from '../models/retrieveBookingResponse';
-import {
- RetrieveBusinessBookingProfileResponse,
- retrieveBusinessBookingProfileResponseSchema,
-} from '../models/retrieveBusinessBookingProfileResponse';
-import {
- RetrieveLocationBookingProfileResponse,
- retrieveLocationBookingProfileResponseSchema,
-} from '../models/retrieveLocationBookingProfileResponse';
-import {
- RetrieveTeamMemberBookingProfileResponse,
- retrieveTeamMemberBookingProfileResponseSchema,
-} from '../models/retrieveTeamMemberBookingProfileResponse';
-import {
- SearchAvailabilityRequest,
- searchAvailabilityRequestSchema,
-} from '../models/searchAvailabilityRequest';
-import {
- SearchAvailabilityResponse,
- searchAvailabilityResponseSchema,
-} from '../models/searchAvailabilityResponse';
-import {
- UpdateBookingRequest,
- updateBookingRequestSchema,
-} from '../models/updateBookingRequest';
-import {
- UpdateBookingResponse,
- updateBookingResponseSchema,
-} from '../models/updateBookingResponse';
-import { boolean, number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class BookingsApi extends BaseApi {
- /**
- * Retrieve a collection of bookings.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and
- * `APPOINTMENTS_READ` for the OAuth scope.
- *
- * @param limit The maximum number of results per page to return in a paged response.
- * @param cursor The pagination cursor from the preceding response to return the next page of the
- * results. Do not set this when retrieving the first page of the results.
- * @param customerId The [customer](entity:Customer) for whom to retrieve bookings. If this is not set,
- * bookings for all customers are retrieved.
- * @param teamMemberId The team member for whom to retrieve bookings. If this is not set, bookings of
- * all members are retrieved.
- * @param locationId The location for which to retrieve bookings. If this is not set, all locations'
- * bookings are retrieved.
- * @param startAtMin The RFC 3339 timestamp specifying the earliest of the start time. If this is not
- * set, the current time is used.
- * @param startAtMax The RFC 3339 timestamp specifying the latest of the start time. If this is not
- * set, the time of 31 days after `start_at_min` is used.
- * @return Response from the API call
- */
- async listBookings(
- limit?: number,
- cursor?: string,
- customerId?: string,
- teamMemberId?: string,
- locationId?: string,
- startAtMin?: string,
- startAtMax?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/bookings');
- const mapped = req.prepareArgs({
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- customerId: [customerId, optional(string())],
- teamMemberId: [teamMemberId, optional(string())],
- locationId: [locationId, optional(string())],
- startAtMin: [startAtMin, optional(string())],
- startAtMax: [startAtMax, optional(string())],
- });
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.query('customer_id', mapped.customerId);
- req.query('team_member_id', mapped.teamMemberId);
- req.query('location_id', mapped.locationId);
- req.query('start_at_min', mapped.startAtMin);
- req.query('start_at_max', mapped.startAtMax);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listBookingsResponseSchema, requestOptions);
- }
-
- /**
- * Creates a booking.
- *
- * The required input must include the following:
- * - `Booking.location_id`
- * - `Booking.start_at`
- * - `Booking.AppointmentSegment.team_member_id`
- * - `Booking.AppointmentSegment.service_variation_id`
- * - `Booking.AppointmentSegment.service_variation_version`
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createBooking(
- body: CreateBookingRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/bookings');
- const mapped = req.prepareArgs({
- body: [body, createBookingRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createBookingResponseSchema, requestOptions);
- }
-
- /**
- * Searches for availabilities for booking.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and
- * `APPOINTMENTS_READ` for the OAuth scope.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async searchAvailability(
- body: SearchAvailabilityRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/bookings/availability/search');
- const mapped = req.prepareArgs({
- body: [body, searchAvailabilityRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchAvailabilityResponseSchema, requestOptions);
- }
-
- /**
- * Bulk-Retrieves a list of bookings by booking IDs.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and
- * `APPOINTMENTS_READ` for the OAuth scope.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async bulkRetrieveBookings(
- body: BulkRetrieveBookingsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/bookings/bulk-retrieve');
- const mapped = req.prepareArgs({
- body: [body, bulkRetrieveBookingsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(bulkRetrieveBookingsResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a seller's booking profile.
- *
- * @return Response from the API call
- */
- async retrieveBusinessBookingProfile(
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/bookings/business-booking-profile'
- );
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveBusinessBookingProfileResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Lists location booking profiles of a seller.
- *
- * @param limit The maximum number of results to return in a paged response.
- * @param cursor The pagination cursor from the preceding response to return the next page of the results.
- * Do not set this when retrieving the first page of the results.
- * @return Response from the API call
- */
- async listLocationBookingProfiles(
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/bookings/location-booking-profiles'
- );
- const mapped = req.prepareArgs({
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listLocationBookingProfilesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a seller's location booking profile.
- *
- * @param locationId The ID of the location to retrieve the booking profile.
- * @return Response from the API call
- */
- async retrieveLocationBookingProfile(
- locationId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ locationId: [locationId, string()] });
- req.appendTemplatePath`/v2/bookings/location-booking-profiles/${mapped.locationId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveLocationBookingProfileResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Lists booking profiles for team members.
- *
- * @param bookableOnly Indicates whether to include only bookable team members in the returned result
- * (`true`) or not (`false`).
- * @param limit The maximum number of results to return in a paged response.
- * @param cursor The pagination cursor from the preceding response to return the next page of the
- * results. Do not set this when retrieving the first page of the results.
- * @param locationId Indicates whether to include only team members enabled at the given location in
- * the returned result.
- * @return Response from the API call
- */
- async listTeamMemberBookingProfiles(
- bookableOnly?: boolean,
- limit?: number,
- cursor?: string,
- locationId?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/bookings/team-member-booking-profiles'
- );
- const mapped = req.prepareArgs({
- bookableOnly: [bookableOnly, optional(boolean())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- locationId: [locationId, optional(string())],
- });
- req.query('bookable_only', mapped.bookableOnly);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.query('location_id', mapped.locationId);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listTeamMemberBookingProfilesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves one or more team members' booking profiles.
- *
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async bulkRetrieveTeamMemberBookingProfiles(
- body: BulkRetrieveTeamMemberBookingProfilesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/bookings/team-member-booking-profiles/bulk-retrieve'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkRetrieveTeamMemberBookingProfilesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkRetrieveTeamMemberBookingProfilesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a team member's booking profile.
- *
- * @param teamMemberId The ID of the team member to retrieve.
- * @return Response from the API call
- */
- async retrieveTeamMemberBookingProfile(
- teamMemberId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ teamMemberId: [teamMemberId, string()] });
- req.appendTemplatePath`/v2/bookings/team-member-booking-profiles/${mapped.teamMemberId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveTeamMemberBookingProfileResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a booking.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_READ` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_READ` and
- * `APPOINTMENTS_READ` for the OAuth scope.
- *
- * @param bookingId The ID of the [Booking](entity:Booking) object representing the to-be-retrieved
- * booking.
- * @return Response from the API call
- */
- async retrieveBooking(
- bookingId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ bookingId: [bookingId, string()] });
- req.appendTemplatePath`/v2/bookings/${mapped.bookingId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveBookingResponseSchema, requestOptions);
- }
-
- /**
- * Updates a booking.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param bookingId The ID of the [Booking](entity:Booking) object representing
- * the to-be-updated booking.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updateBooking(
- bookingId: string,
- body: UpdateBookingRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- bookingId: [bookingId, string()],
- body: [body, updateBookingRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/bookings/${mapped.bookingId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateBookingResponseSchema, requestOptions);
- }
-
- /**
- * Cancels an existing booking.
- *
- * To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
- * To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and
- * `APPOINTMENTS_WRITE` for the OAuth scope.
- *
- * For calls to this endpoint with seller-level permissions to succeed, the seller must have subscribed
- * to *Appointments Plus*
- * or *Appointments Premium*.
- *
- * @param bookingId The ID of the [Booking](entity:Booking) object representing
- * the to-be-cancelled booking.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async cancelBooking(
- bookingId: string,
- body: CancelBookingRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- bookingId: [bookingId, string()],
- body: [body, cancelBookingRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/bookings/${mapped.bookingId}/cancel`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(cancelBookingResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/cardsApi.ts b/src/api/cardsApi.ts
deleted file mode 100644
index 9701ce333..000000000
--- a/src/api/cardsApi.ts
+++ /dev/null
@@ -1,121 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateCardRequest,
- createCardRequestSchema,
-} from '../models/createCardRequest';
-import {
- CreateCardResponse,
- createCardResponseSchema,
-} from '../models/createCardResponse';
-import {
- DisableCardResponse,
- disableCardResponseSchema,
-} from '../models/disableCardResponse';
-import {
- ListCardsResponse,
- listCardsResponseSchema,
-} from '../models/listCardsResponse';
-import {
- RetrieveCardResponse,
- retrieveCardResponseSchema,
-} from '../models/retrieveCardResponse';
-import { boolean, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class CardsApi extends BaseApi {
- /**
- * Retrieves a list of cards owned by the account making the request.
- * A max of 25 cards will be returned.
- *
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * to retrieve the next set of results for your original query. See
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination) for more information.
- * @param customerId Limit results to cards associated with the customer supplied. By default, all
- * cards owned by the merchant are returned.
- * @param includeDisabled Includes disabled cards. By default, all enabled cards owned by the merchant
- * are returned.
- * @param referenceId Limit results to cards associated with the reference_id supplied.
- * @param sortOrder Sorts the returned list by when the card was created with the specified order.
- * This field defaults to ASC.
- * @return Response from the API call
- */
- async listCards(
- cursor?: string,
- customerId?: string,
- includeDisabled?: boolean,
- referenceId?: string,
- sortOrder?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/cards');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- customerId: [customerId, optional(string())],
- includeDisabled: [includeDisabled, optional(boolean())],
- referenceId: [referenceId, optional(string())],
- sortOrder: [sortOrder, optional(string())],
- });
- req.query('cursor', mapped.cursor);
- req.query('customer_id', mapped.customerId);
- req.query('include_disabled', mapped.includeDisabled);
- req.query('reference_id', mapped.referenceId);
- req.query('sort_order', mapped.sortOrder);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listCardsResponseSchema, requestOptions);
- }
-
- /**
- * Adds a card on file to an existing merchant.
- *
- * @param body An object containing the fields to POST for the request. See the
- * corresponding object definition for field details.
- * @return Response from the API call
- */
- async createCard(
- body: CreateCardRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/cards');
- const mapped = req.prepareArgs({ body: [body, createCardRequestSchema] });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createCardResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves details for a specific Card.
- *
- * @param cardId Unique ID for the desired Card.
- * @return Response from the API call
- */
- async retrieveCard(
- cardId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ cardId: [cardId, string()] });
- req.appendTemplatePath`/v2/cards/${mapped.cardId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveCardResponseSchema, requestOptions);
- }
-
- /**
- * Disables the card, preventing any further updates or charges.
- * Disabling an already disabled card is allowed but has no effect.
- *
- * @param cardId Unique ID for the desired Card.
- * @return Response from the API call
- */
- async disableCard(
- cardId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({ cardId: [cardId, string()] });
- req.appendTemplatePath`/v2/cards/${mapped.cardId}/disable`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(disableCardResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/cashDrawersApi.ts b/src/api/cashDrawersApi.ts
deleted file mode 100644
index f1df70fa3..000000000
--- a/src/api/cashDrawersApi.ts
+++ /dev/null
@@ -1,120 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- ListCashDrawerShiftEventsResponse,
- listCashDrawerShiftEventsResponseSchema,
-} from '../models/listCashDrawerShiftEventsResponse';
-import {
- ListCashDrawerShiftsResponse,
- listCashDrawerShiftsResponseSchema,
-} from '../models/listCashDrawerShiftsResponse';
-import {
- RetrieveCashDrawerShiftResponse,
- retrieveCashDrawerShiftResponseSchema,
-} from '../models/retrieveCashDrawerShiftResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class CashDrawersApi extends BaseApi {
- /**
- * Provides the details for all of the cash drawer shifts for a location
- * in a date range.
- *
- * @param locationId The ID of the location to query for a list of cash drawer shifts.
- * @param sortOrder The order in which cash drawer shifts are listed in the response, based on their
- * opened_at field. Default value: ASC
- * @param beginTime The inclusive start time of the query on opened_at, in ISO 8601 format.
- * @param endTime The exclusive end date of the query on opened_at, in ISO 8601 format.
- * @param limit Number of cash drawer shift events in a page of results (200 by default, 1000 max).
- * @param cursor Opaque cursor for fetching the next page of results.
- * @return Response from the API call
- */
- async listCashDrawerShifts(
- locationId: string,
- sortOrder?: string,
- beginTime?: string,
- endTime?: string,
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/cash-drawers/shifts');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- sortOrder: [sortOrder, optional(string())],
- beginTime: [beginTime, optional(string())],
- endTime: [endTime, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('location_id', mapped.locationId);
- req.query('sort_order', mapped.sortOrder);
- req.query('begin_time', mapped.beginTime);
- req.query('end_time', mapped.endTime);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listCashDrawerShiftsResponseSchema, requestOptions);
- }
-
- /**
- * Provides the summary details for a single cash drawer shift. See
- * [ListCashDrawerShiftEvents]($e/CashDrawers/ListCashDrawerShiftEvents) for a list of cash drawer
- * shift events.
- *
- * @param locationId The ID of the location to retrieve cash drawer shifts from.
- * @param shiftId The shift ID.
- * @return Response from the API call
- */
- async retrieveCashDrawerShift(
- locationId: string,
- shiftId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- shiftId: [shiftId, string()],
- });
- req.query('location_id', mapped.locationId);
- req.appendTemplatePath`/v2/cash-drawers/shifts/${mapped.shiftId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveCashDrawerShiftResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Provides a paginated list of events for a single cash drawer shift.
- *
- * @param locationId The ID of the location to list cash drawer shifts for.
- * @param shiftId The shift ID.
- * @param limit Number of resources to be returned in a page of results (200 by default, 1000 max).
- * @param cursor Opaque cursor for fetching the next page of results.
- * @return Response from the API call
- */
- async listCashDrawerShiftEvents(
- locationId: string,
- shiftId: string,
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- shiftId: [shiftId, string()],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('location_id', mapped.locationId);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.appendTemplatePath`/v2/cash-drawers/shifts/${mapped.shiftId}/events`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listCashDrawerShiftEventsResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/catalogApi.ts b/src/api/catalogApi.ts
deleted file mode 100644
index f6048dbab..000000000
--- a/src/api/catalogApi.ts
+++ /dev/null
@@ -1,584 +0,0 @@
-import { ApiResponse, FileWrapper, RequestOptions } from '../core';
-import {
- BatchDeleteCatalogObjectsRequest,
- batchDeleteCatalogObjectsRequestSchema,
-} from '../models/batchDeleteCatalogObjectsRequest';
-import {
- BatchDeleteCatalogObjectsResponse,
- batchDeleteCatalogObjectsResponseSchema,
-} from '../models/batchDeleteCatalogObjectsResponse';
-import {
- BatchRetrieveCatalogObjectsRequest,
- batchRetrieveCatalogObjectsRequestSchema,
-} from '../models/batchRetrieveCatalogObjectsRequest';
-import {
- BatchRetrieveCatalogObjectsResponse,
- batchRetrieveCatalogObjectsResponseSchema,
-} from '../models/batchRetrieveCatalogObjectsResponse';
-import {
- BatchUpsertCatalogObjectsRequest,
- batchUpsertCatalogObjectsRequestSchema,
-} from '../models/batchUpsertCatalogObjectsRequest';
-import {
- BatchUpsertCatalogObjectsResponse,
- batchUpsertCatalogObjectsResponseSchema,
-} from '../models/batchUpsertCatalogObjectsResponse';
-import {
- CatalogInfoResponse,
- catalogInfoResponseSchema,
-} from '../models/catalogInfoResponse';
-import {
- CreateCatalogImageRequest,
- createCatalogImageRequestSchema,
-} from '../models/createCatalogImageRequest';
-import {
- CreateCatalogImageResponse,
- createCatalogImageResponseSchema,
-} from '../models/createCatalogImageResponse';
-import {
- DeleteCatalogObjectResponse,
- deleteCatalogObjectResponseSchema,
-} from '../models/deleteCatalogObjectResponse';
-import {
- ListCatalogResponse,
- listCatalogResponseSchema,
-} from '../models/listCatalogResponse';
-import {
- RetrieveCatalogObjectResponse,
- retrieveCatalogObjectResponseSchema,
-} from '../models/retrieveCatalogObjectResponse';
-import {
- SearchCatalogItemsRequest,
- searchCatalogItemsRequestSchema,
-} from '../models/searchCatalogItemsRequest';
-import {
- SearchCatalogItemsResponse,
- searchCatalogItemsResponseSchema,
-} from '../models/searchCatalogItemsResponse';
-import {
- SearchCatalogObjectsRequest,
- searchCatalogObjectsRequestSchema,
-} from '../models/searchCatalogObjectsRequest';
-import {
- SearchCatalogObjectsResponse,
- searchCatalogObjectsResponseSchema,
-} from '../models/searchCatalogObjectsResponse';
-import {
- UpdateCatalogImageRequest,
- updateCatalogImageRequestSchema,
-} from '../models/updateCatalogImageRequest';
-import {
- UpdateCatalogImageResponse,
- updateCatalogImageResponseSchema,
-} from '../models/updateCatalogImageResponse';
-import {
- UpdateItemModifierListsRequest,
- updateItemModifierListsRequestSchema,
-} from '../models/updateItemModifierListsRequest';
-import {
- UpdateItemModifierListsResponse,
- updateItemModifierListsResponseSchema,
-} from '../models/updateItemModifierListsResponse';
-import {
- UpdateItemTaxesRequest,
- updateItemTaxesRequestSchema,
-} from '../models/updateItemTaxesRequest';
-import {
- UpdateItemTaxesResponse,
- updateItemTaxesResponseSchema,
-} from '../models/updateItemTaxesResponse';
-import {
- UpsertCatalogObjectRequest,
- upsertCatalogObjectRequestSchema,
-} from '../models/upsertCatalogObjectRequest';
-import {
- UpsertCatalogObjectResponse,
- upsertCatalogObjectResponseSchema,
-} from '../models/upsertCatalogObjectResponse';
-import { bigint, boolean, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class CatalogApi extends BaseApi {
- /**
- * Deletes a set of [CatalogItem]($m/CatalogItem)s based on the
- * provided list of target IDs and returns a set of successfully deleted IDs in
- * the response. Deletion is a cascading event such that all children of the
- * targeted object are also deleted. For example, deleting a CatalogItem will
- * also delete all of its [CatalogItemVariation]($m/CatalogItemVariation)
- * children.
- *
- * `BatchDeleteCatalogObjects` succeeds even if only a portion of the targeted
- * IDs can be deleted. The response will only include IDs that were
- * actually deleted.
- *
- * To ensure consistency, only one delete request is processed at a time per seller account.
- * While one (batch or non-batch) delete request is being processed, other (batched and non-batched)
- * delete requests are rejected with the `429` error code.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition
- * for field details.
- * @return Response from the API call
- */
- async batchDeleteCatalogObjects(
- body: BatchDeleteCatalogObjectsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/catalog/batch-delete');
- const mapped = req.prepareArgs({
- body: [body, batchDeleteCatalogObjectsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- batchDeleteCatalogObjectsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Returns a set of objects based on the provided ID.
- * Each [CatalogItem]($m/CatalogItem) returned in the set includes all of its
- * child information including: all of its
- * [CatalogItemVariation]($m/CatalogItemVariation) objects, references to
- * its [CatalogModifierList]($m/CatalogModifierList) objects, and the ids of
- * any [CatalogTax]($m/CatalogTax) objects that apply to it.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition
- * for field details.
- * @return Response from the API call
- */
- async batchRetrieveCatalogObjects(
- body: BatchRetrieveCatalogObjectsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/catalog/batch-retrieve');
- const mapped = req.prepareArgs({
- body: [body, batchRetrieveCatalogObjectsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- batchRetrieveCatalogObjectsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates up to 10,000 target objects based on the provided
- * list of objects. The target objects are grouped into batches and each batch is
- * inserted/updated in an all-or-nothing manner. If an object within a batch is
- * malformed in some way, or violates a database constraint, the entire batch
- * containing that item will be disregarded. However, other batches in the same
- * request may still succeed. Each batch may contain up to 1,000 objects, and
- * batches will be processed in order as long as the total object count for the
- * request (items, variations, modifier lists, discounts, and taxes) is no more
- * than 10,000.
- *
- * To ensure consistency, only one update request is processed at a time per seller account.
- * While one (batch or non-batch) update request is being processed, other (batched and non-batched)
- * update requests are rejected with the `429` error code.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition
- * for field details.
- * @return Response from the API call
- */
- async batchUpsertCatalogObjects(
- body: BatchUpsertCatalogObjectsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/catalog/batch-upsert');
- const mapped = req.prepareArgs({
- body: [body, batchUpsertCatalogObjectsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- batchUpsertCatalogObjectsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Uploads an image file to be represented by a [CatalogImage]($m/CatalogImage) object that can be
- * linked to an existing
- * [CatalogObject]($m/CatalogObject) instance. The resulting `CatalogImage` is unattached to any
- * `CatalogObject` if the `object_id`
- * is not specified.
- *
- * This `CreateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an
- * image file part in
- * JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
- *
- * @param request
- * @param imageFile
- * @return Response from the API call
- */
- async createCatalogImage(
- request?: CreateCatalogImageRequest,
- imageFile?: FileWrapper,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/catalog/images');
- const mapped = req.prepareArgs({
- request: [request, optional(createCatalogImageRequestSchema)],
- });
- req.formData({
- request: JSON.stringify(mapped.request),
- image_file: imageFile,
- });
- req.authenticate([{ global: true }]);
- return req.callAsJson(createCatalogImageResponseSchema, requestOptions);
- }
-
- /**
- * Uploads a new image file to replace the existing one in the specified
- * [CatalogImage]($m/CatalogImage) object.
- *
- * This `UpdateCatalogImage` endpoint accepts HTTP multipart/form-data requests with a JSON part and an
- * image file part in
- * JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB.
- *
- * @param imageId The ID of the `CatalogImage` object to update the
- * encapsulated image file.
- * @param request
- * @param imageFile
- * @return Response from the API call
- */
- async updateCatalogImage(
- imageId: string,
- request?: UpdateCatalogImageRequest,
- imageFile?: FileWrapper,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- imageId: [imageId, string()],
- request: [request, optional(updateCatalogImageRequestSchema)],
- });
- req.formData({
- request: JSON.stringify(mapped.request),
- image_file: imageFile,
- });
- req.appendTemplatePath`/v2/catalog/images/${mapped.imageId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateCatalogImageResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves information about the Square Catalog API, such as batch size
- * limits that can be used by the `BatchUpsertCatalogObjects` endpoint.
- *
- * @return Response from the API call
- */
- async catalogInfo(
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/catalog/info');
- req.authenticate([{ global: true }]);
- return req.callAsJson(catalogInfoResponseSchema, requestOptions);
- }
-
- /**
- * Returns a list of all [CatalogObject]($m/CatalogObject)s of the specified types in the catalog.
- *
- * The `types` parameter is specified as a comma-separated list of the
- * [CatalogObjectType]($m/CatalogObjectType) values,
- * for example, "`ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, `CATEGORY`, `DISCOUNT`, `TAX`,
- * `IMAGE`".
- *
- * __Important:__ ListCatalog does not return deleted catalog items. To retrieve
- * deleted catalog items, use [SearchCatalogObjects]($e/Catalog/SearchCatalogObjects)
- * and set the `include_deleted_objects` attribute value to `true`.
- *
- * @param cursor The pagination cursor returned in the previous response. Leave unset for an
- * initial request. The page size is currently set to be 100. See [Pagination](https:
- * //developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for
- * more information.
- * @param types An optional case-insensitive, comma-separated list of object types to retrieve.
- * The valid values are defined in the [CatalogObjectType](entity:CatalogObjectType)
- * enum, for example, `ITEM`, `ITEM_VARIATION`, `CATEGORY`, `DISCOUNT`, `TAX`,
- * `MODIFIER`, `MODIFIER_LIST`, `IMAGE`, etc. If this is unspecified, the operation
- * returns objects of all the top level types at the version of the Square API used
- * to make the request. Object types that are nested onto other object types are not
- * included in the defaults. At the current API version the default object types
- * are: ITEM, CATEGORY, TAX, DISCOUNT, MODIFIER_LIST, PRICING_RULE, PRODUCT_SET,
- * TIME_PERIOD, MEASUREMENT_UNIT, SUBSCRIPTION_PLAN, ITEM_OPTION,
- * CUSTOM_ATTRIBUTE_DEFINITION, QUICK_AMOUNT_SETTINGS.
- * @param catalogVersion The specific version of the catalog objects to be included in the response. This
- * allows you to retrieve historical versions of objects. The specified version
- * value is matched against the [CatalogObject]($m/CatalogObject)s' `version`
- * attribute. If not included, results will be from the current version of the
- * catalog.
- * @return Response from the API call
- */
- async listCatalog(
- cursor?: string,
- types?: string,
- catalogVersion?: bigint,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/catalog/list');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- types: [types, optional(string())],
- catalogVersion: [catalogVersion, optional(bigint())],
- });
- req.query('cursor', mapped.cursor);
- req.query('types', mapped.types);
- req.query('catalog_version', mapped.catalogVersion);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listCatalogResponseSchema, requestOptions);
- }
-
- /**
- * Creates a new or updates the specified [CatalogObject]($m/CatalogObject).
- *
- * To ensure consistency, only one update request is processed at a time per seller account.
- * While one (batch or non-batch) update request is being processed, other (batched and non-batched)
- * update requests are rejected with the `429` error code.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async upsertCatalogObject(
- body: UpsertCatalogObjectRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/catalog/object');
- const mapped = req.prepareArgs({
- body: [body, upsertCatalogObjectRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(upsertCatalogObjectResponseSchema, requestOptions);
- }
-
- /**
- * Deletes a single [CatalogObject]($m/CatalogObject) based on the
- * provided ID and returns the set of successfully deleted IDs in the response.
- * Deletion is a cascading event such that all children of the targeted object
- * are also deleted. For example, deleting a [CatalogItem]($m/CatalogItem)
- * will also delete all of its
- * [CatalogItemVariation]($m/CatalogItemVariation) children.
- *
- * To ensure consistency, only one delete request is processed at a time per seller account.
- * While one (batch or non-batch) delete request is being processed, other (batched and non-batched)
- * delete requests are rejected with the `429` error code.
- *
- * @param objectId The ID of the catalog object to be deleted. When an object is deleted, other objects
- * in the graph that depend on that object will be deleted as well (for example, deleting
- * a catalog item will delete its catalog item variations).
- * @return Response from the API call
- */
- async deleteCatalogObject(
- objectId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ objectId: [objectId, string()] });
- req.appendTemplatePath`/v2/catalog/object/${mapped.objectId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteCatalogObjectResponseSchema, requestOptions);
- }
-
- /**
- * Returns a single [CatalogItem]($m/CatalogItem) as a
- * [CatalogObject]($m/CatalogObject) based on the provided ID. The returned
- * object includes all of the relevant [CatalogItem]($m/CatalogItem)
- * information including: [CatalogItemVariation]($m/CatalogItemVariation)
- * children, references to its
- * [CatalogModifierList]($m/CatalogModifierList) objects, and the ids of
- * any [CatalogTax]($m/CatalogTax) objects that apply to it.
- *
- * @param objectId The object ID of any type of catalog objects to be retrieved.
- * @param includeRelatedObjects If `true`, the response will include additional objects that are
- * related to the requested objects. Related objects are defined as
- * any objects referenced by ID by the results in the `objects` field
- * of the response. These objects are put in the `related_objects`
- * field. Setting this to `true` is helpful when the objects are
- * needed for immediate display to a user. This process only goes one
- * level deep. Objects referenced by the related objects will not be
- * included. For example, if the `objects` field of the response
- * contains a CatalogItem, its associated CatalogCategory objects,
- * CatalogTax objects, CatalogImage objects and CatalogModifierLists
- * will be returned in the `related_objects` field of the response.
- * If the `objects` field of the response contains a
- * CatalogItemVariation, its parent CatalogItem will be returned in
- * the `related_objects` field of the response. Default value:
- * `false`
- * @param catalogVersion Requests objects as of a specific version of the catalog. This
- * allows you to retrieve historical versions of objects. The value
- * to retrieve a specific version of an object can be found in the
- * version field of [CatalogObject]($m/CatalogObject)s. If not
- * included, results will be from the current version of the catalog.
- * @param includeCategoryPathToRoot Specifies whether or not to include the `path_to_root` list for
- * each returned category instance. The `path_to_root` list consists
- * of `CategoryPathToRootNode` objects and specifies the path that
- * starts with the immediate parent category of the returned category
- * and ends with its root category. If the returned category is a top-
- * level category, the `path_to_root` list is empty and is not
- * returned in the response payload.
- * @return Response from the API call
- */
- async retrieveCatalogObject(
- objectId: string,
- includeRelatedObjects?: boolean,
- catalogVersion?: bigint,
- includeCategoryPathToRoot?: boolean,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- objectId: [objectId, string()],
- includeRelatedObjects: [includeRelatedObjects, optional(boolean())],
- catalogVersion: [catalogVersion, optional(bigint())],
- includeCategoryPathToRoot: [
- includeCategoryPathToRoot,
- optional(boolean()),
- ],
- });
- req.query('include_related_objects', mapped.includeRelatedObjects);
- req.query('catalog_version', mapped.catalogVersion);
- req.query(
- 'include_category_path_to_root',
- mapped.includeCategoryPathToRoot
- );
- req.appendTemplatePath`/v2/catalog/object/${mapped.objectId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveCatalogObjectResponseSchema, requestOptions);
- }
-
- /**
- * Searches for [CatalogObject]($m/CatalogObject) of any type by matching supported search attribute
- * values,
- * excluding custom attribute values on items or item variations, against one or more of the specified
- * query filters.
- *
- * This (`SearchCatalogObjects`) endpoint differs from the
- * [SearchCatalogItems]($e/Catalog/SearchCatalogItems)
- * endpoint in the following aspects:
- *
- * - `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects`
- * can search for any type of catalog objects.
- * - `SearchCatalogItems` supports the custom attribute query filters to return items or item
- * variations that contain custom attribute values, where `SearchCatalogObjects` does not.
- * - `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted
- * items or item variations, whereas `SearchCatalogObjects` does.
- * - The both endpoints have different call conventions, including the query filter formats.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async searchCatalogObjects(
- body: SearchCatalogObjectsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/catalog/search');
- const mapped = req.prepareArgs({
- body: [body, searchCatalogObjectsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchCatalogObjectsResponseSchema, requestOptions);
- }
-
- /**
- * Searches for catalog items or item variations by matching supported search attribute values,
- * including
- * custom attribute values, against one or more of the specified query filters.
- *
- * This (`SearchCatalogItems`) endpoint differs from the
- * [SearchCatalogObjects]($e/Catalog/SearchCatalogObjects)
- * endpoint in the following aspects:
- *
- * - `SearchCatalogItems` can only search for items or item variations, whereas `SearchCatalogObjects`
- * can search for any type of catalog objects.
- * - `SearchCatalogItems` supports the custom attribute query filters to return items or item
- * variations that contain custom attribute values, where `SearchCatalogObjects` does not.
- * - `SearchCatalogItems` does not support the `include_deleted_objects` filter to search for deleted
- * items or item variations, whereas `SearchCatalogObjects` does.
- * - The both endpoints use different call conventions, including the query filter formats.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async searchCatalogItems(
- body: SearchCatalogItemsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/catalog/search-catalog-items');
- const mapped = req.prepareArgs({
- body: [body, searchCatalogItemsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchCatalogItemsResponseSchema, requestOptions);
- }
-
- /**
- * Updates the [CatalogModifierList]($m/CatalogModifierList) objects
- * that apply to the targeted [CatalogItem]($m/CatalogItem) without having
- * to perform an upsert on the entire item.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async updateItemModifierLists(
- body: UpdateItemModifierListsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/catalog/update-item-modifier-lists'
- );
- const mapped = req.prepareArgs({
- body: [body, updateItemModifierListsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- updateItemModifierListsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Updates the [CatalogTax]($m/CatalogTax) objects that apply to the
- * targeted [CatalogItem]($m/CatalogItem) without having to perform an
- * upsert on the entire item.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updateItemTaxes(
- body: UpdateItemTaxesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/catalog/update-item-taxes');
- const mapped = req.prepareArgs({
- body: [body, updateItemTaxesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateItemTaxesResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/checkoutApi.ts b/src/api/checkoutApi.ts
deleted file mode 100644
index 0576cf9d9..000000000
--- a/src/api/checkoutApi.ts
+++ /dev/null
@@ -1,302 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateCheckoutRequest,
- createCheckoutRequestSchema,
-} from '../models/createCheckoutRequest';
-import {
- CreateCheckoutResponse,
- createCheckoutResponseSchema,
-} from '../models/createCheckoutResponse';
-import {
- CreatePaymentLinkRequest,
- createPaymentLinkRequestSchema,
-} from '../models/createPaymentLinkRequest';
-import {
- CreatePaymentLinkResponse,
- createPaymentLinkResponseSchema,
-} from '../models/createPaymentLinkResponse';
-import {
- DeletePaymentLinkResponse,
- deletePaymentLinkResponseSchema,
-} from '../models/deletePaymentLinkResponse';
-import {
- ListPaymentLinksResponse,
- listPaymentLinksResponseSchema,
-} from '../models/listPaymentLinksResponse';
-import {
- RetrieveLocationSettingsResponse,
- retrieveLocationSettingsResponseSchema,
-} from '../models/retrieveLocationSettingsResponse';
-import {
- RetrieveMerchantSettingsResponse,
- retrieveMerchantSettingsResponseSchema,
-} from '../models/retrieveMerchantSettingsResponse';
-import {
- RetrievePaymentLinkResponse,
- retrievePaymentLinkResponseSchema,
-} from '../models/retrievePaymentLinkResponse';
-import {
- UpdateLocationSettingsRequest,
- updateLocationSettingsRequestSchema,
-} from '../models/updateLocationSettingsRequest';
-import {
- UpdateLocationSettingsResponse,
- updateLocationSettingsResponseSchema,
-} from '../models/updateLocationSettingsResponse';
-import {
- UpdateMerchantSettingsRequest,
- updateMerchantSettingsRequestSchema,
-} from '../models/updateMerchantSettingsRequest';
-import {
- UpdateMerchantSettingsResponse,
- updateMerchantSettingsResponseSchema,
-} from '../models/updateMerchantSettingsResponse';
-import {
- UpdatePaymentLinkRequest,
- updatePaymentLinkRequestSchema,
-} from '../models/updatePaymentLinkRequest';
-import {
- UpdatePaymentLinkResponse,
- updatePaymentLinkResponseSchema,
-} from '../models/updatePaymentLinkResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class CheckoutApi extends BaseApi {
- /**
- * Links a `checkoutId` to a `checkout_page_url` that customers are
- * directed to in order to provide their payment information using a
- * payment processing workflow hosted on connect.squareup.com.
- *
- *
- * NOTE: The Checkout API has been updated with new features.
- * For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-
- * api#checkout-api-highlights).
- *
- * @param locationId The ID of the business location to associate the checkout
- * with.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- * @deprecated
- */
- async createCheckout(
- locationId: string,
- body: CreateCheckoutRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- body: [body, createCheckoutRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/locations/${mapped.locationId}/checkouts`;
- req.deprecated('CheckoutApi.createCheckout');
- req.authenticate([{ global: true }]);
- return req.callAsJson(createCheckoutResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves the location-level settings for a Square-hosted checkout page.
- *
- * @param locationId The ID of the location for which to retrieve settings.
- * @return Response from the API call
- */
- async retrieveLocationSettings(
- locationId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ locationId: [locationId, string()] });
- req.appendTemplatePath`/v2/online-checkout/location-settings/${mapped.locationId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveLocationSettingsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Updates the location-level settings for a Square-hosted checkout page.
- *
- * @param locationId The ID of the location for which to retrieve settings.
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async updateLocationSettings(
- locationId: string,
- body: UpdateLocationSettingsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- body: [body, updateLocationSettingsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/online-checkout/location-settings/${mapped.locationId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateLocationSettingsResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves the merchant-level settings for a Square-hosted checkout page.
- *
- * @return Response from the API call
- */
- async retrieveMerchantSettings(
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/online-checkout/merchant-settings'
- );
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveMerchantSettingsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Updates the merchant-level settings for a Square-hosted checkout page.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async updateMerchantSettings(
- body: UpdateMerchantSettingsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'PUT',
- '/v2/online-checkout/merchant-settings'
- );
- const mapped = req.prepareArgs({
- body: [body, updateMerchantSettingsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateMerchantSettingsResponseSchema, requestOptions);
- }
-
- /**
- * Lists all payment links.
- *
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this cursor to
- * retrieve the next set of results for the original query. If a cursor is not provided, the
- * endpoint returns the first page of the results. For more information, see
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination).
- * @param limit A limit on the number of results to return per page. The limit is advisory and the
- * implementation might return more or less results. If the supplied limit is negative, zero,
- * or greater than the maximum limit of 1000, it is ignored. Default value: `100`
- * @return Response from the API call
- */
- async listPaymentLinks(
- cursor?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/online-checkout/payment-links');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listPaymentLinksResponseSchema, requestOptions);
- }
-
- /**
- * Creates a Square-hosted checkout page. Applications can share the resulting payment link with their
- * buyer to pay for goods and services.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createPaymentLink(
- body: CreatePaymentLinkRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/online-checkout/payment-links');
- const mapped = req.prepareArgs({
- body: [body, createPaymentLinkRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createPaymentLinkResponseSchema, requestOptions);
- }
-
- /**
- * Deletes a payment link.
- *
- * @param id The ID of the payment link to delete.
- * @return Response from the API call
- */
- async deletePaymentLink(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/online-checkout/payment-links/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deletePaymentLinkResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a payment link.
- *
- * @param id The ID of link to retrieve.
- * @return Response from the API call
- */
- async retrievePaymentLink(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/online-checkout/payment-links/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrievePaymentLinkResponseSchema, requestOptions);
- }
-
- /**
- * Updates a payment link. You can update the `payment_link` fields such as
- * `description`, `checkout_options`, and `pre_populated_data`.
- * You cannot update other fields such as the `order_id`, `version`, `URL`, or `timestamp` field.
- *
- * @param id The ID of the payment link to update.
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updatePaymentLink(
- id: string,
- body: UpdatePaymentLinkRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- id: [id, string()],
- body: [body, updatePaymentLinkRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/online-checkout/payment-links/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updatePaymentLinkResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/customerCustomAttributesApi.ts b/src/api/customerCustomAttributesApi.ts
deleted file mode 100644
index 6d7784b45..000000000
--- a/src/api/customerCustomAttributesApi.ts
+++ /dev/null
@@ -1,471 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- BulkUpsertCustomerCustomAttributesRequest,
- bulkUpsertCustomerCustomAttributesRequestSchema,
-} from '../models/bulkUpsertCustomerCustomAttributesRequest';
-import {
- BulkUpsertCustomerCustomAttributesResponse,
- bulkUpsertCustomerCustomAttributesResponseSchema,
-} from '../models/bulkUpsertCustomerCustomAttributesResponse';
-import {
- CreateCustomerCustomAttributeDefinitionRequest,
- createCustomerCustomAttributeDefinitionRequestSchema,
-} from '../models/createCustomerCustomAttributeDefinitionRequest';
-import {
- CreateCustomerCustomAttributeDefinitionResponse,
- createCustomerCustomAttributeDefinitionResponseSchema,
-} from '../models/createCustomerCustomAttributeDefinitionResponse';
-import {
- DeleteCustomerCustomAttributeDefinitionResponse,
- deleteCustomerCustomAttributeDefinitionResponseSchema,
-} from '../models/deleteCustomerCustomAttributeDefinitionResponse';
-import {
- DeleteCustomerCustomAttributeResponse,
- deleteCustomerCustomAttributeResponseSchema,
-} from '../models/deleteCustomerCustomAttributeResponse';
-import {
- ListCustomerCustomAttributeDefinitionsResponse,
- listCustomerCustomAttributeDefinitionsResponseSchema,
-} from '../models/listCustomerCustomAttributeDefinitionsResponse';
-import {
- ListCustomerCustomAttributesResponse,
- listCustomerCustomAttributesResponseSchema,
-} from '../models/listCustomerCustomAttributesResponse';
-import {
- RetrieveCustomerCustomAttributeDefinitionResponse,
- retrieveCustomerCustomAttributeDefinitionResponseSchema,
-} from '../models/retrieveCustomerCustomAttributeDefinitionResponse';
-import {
- RetrieveCustomerCustomAttributeResponse,
- retrieveCustomerCustomAttributeResponseSchema,
-} from '../models/retrieveCustomerCustomAttributeResponse';
-import {
- UpdateCustomerCustomAttributeDefinitionRequest,
- updateCustomerCustomAttributeDefinitionRequestSchema,
-} from '../models/updateCustomerCustomAttributeDefinitionRequest';
-import {
- UpdateCustomerCustomAttributeDefinitionResponse,
- updateCustomerCustomAttributeDefinitionResponseSchema,
-} from '../models/updateCustomerCustomAttributeDefinitionResponse';
-import {
- UpsertCustomerCustomAttributeRequest,
- upsertCustomerCustomAttributeRequestSchema,
-} from '../models/upsertCustomerCustomAttributeRequest';
-import {
- UpsertCustomerCustomAttributeResponse,
- upsertCustomerCustomAttributeResponseSchema,
-} from '../models/upsertCustomerCustomAttributeResponse';
-import { boolean, number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class CustomerCustomAttributesApi extends BaseApi {
- /**
- * Lists the customer-related [custom attribute definitions]($m/CustomAttributeDefinition) that belong
- * to a Square seller account.
- *
- * When all response pages are retrieved, the results include all custom attribute definitions
- * that are visible to the requesting application, including those that are created by other
- * applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that
- * seller-defined custom attributes (also known as custom fields) are always set to
- * `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param limit The maximum number of results to return in a single paged response. This limit is
- * advisory. The response might contain more or fewer results. The minimum value is 1 and the
- * maximum value is 100. The default value is 20. For more information, see
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination).
- * @param cursor The cursor returned in the paged response from the previous call to this endpoint.
- * Provide this cursor to retrieve the next page of results for your original request. For
- * more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-
- * api-patterns/pagination).
- * @return Response from the API call
- */
- async listCustomerCustomAttributeDefinitions(
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/customers/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listCustomerCustomAttributeDefinitionsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates a customer-related [custom attribute definition]($m/CustomAttributeDefinition) for a Square
- * seller account.
- * Use this endpoint to define a custom attribute that can be associated with customer profiles.
- *
- * A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties
- * for a custom attribute. After the definition is created, you can call
- * [UpsertCustomerCustomAttribute]($e/CustomerCustomAttributes/UpsertCustomerCustomAttribute) or
- * [BulkUpsertCustomerCustomAttributes]($e/CustomerCustomAttributes/BulkUpsertCustomerCustomAttributes)
- * to set the custom attribute for customer profiles in the seller's Customer Directory.
- *
- * Sellers can view all custom attributes in exported customer data, including those set to
- * `VISIBILITY_HIDDEN`.
- *
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async createCustomerCustomAttributeDefinition(
- body: CreateCustomerCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/customers/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- body: [body, createCustomerCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createCustomerCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a customer-related [custom attribute definition]($m/CustomAttributeDefinition) from a Square
- * seller account.
- *
- * Deleting a custom attribute definition also deletes the corresponding custom attribute from
- * all customer profiles in the seller's Customer Directory.
- *
- * Only the definition owner can delete a custom attribute definition.
- *
- * @param key The key of the custom attribute definition to delete.
- * @return Response from the API call
- */
- async deleteCustomerCustomAttributeDefinition(
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ key: [key, string()] });
- req.appendTemplatePath`/v2/customers/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteCustomerCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a customer-related [custom attribute definition]($m/CustomAttributeDefinition) from a
- * Square seller account.
- *
- * To retrieve a custom attribute definition created by another application, the `visibility`
- * setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined
- * custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param key The key of the custom attribute definition to retrieve. If the requesting application is
- * not the definition owner, you must use the qualified key.
- * @param version The current version of the custom attribute definition, which is used for strongly
- * consistent reads to guarantee that you receive the most up-to-date data. When included in
- * the request, Square returns the specified version or a higher version if one exists. If
- * the specified version is higher than the current version, Square returns a `BAD_REQUEST`
- * error.
- * @return Response from the API call
- */
- async retrieveCustomerCustomAttributeDefinition(
- key: string,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- key: [key, string()],
- version: [version, optional(number())],
- });
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/customers/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveCustomerCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Updates a customer-related [custom attribute definition]($m/CustomAttributeDefinition) for a Square
- * seller account.
- *
- * Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the
- * `schema` for a `Selection` data type.
- *
- * Only the definition owner can update a custom attribute definition. Note that sellers can view
- * all custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.
- *
- * @param key The key of the custom attribute
- * definition to update.
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async updateCustomerCustomAttributeDefinition(
- key: string,
- body: UpdateCustomerCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- key: [key, string()],
- body: [body, updateCustomerCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/customers/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- updateCustomerCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates [custom attributes]($m/CustomAttribute) for customer profiles as a bulk operation.
- *
- * Use this endpoint to set the value of one or more custom attributes for one or more customer
- * profiles.
- * A custom attribute is based on a custom attribute definition in a Square seller account, which is
- * created using the
- * [CreateCustomerCustomAttributeDefinition]($e/CustomerCustomAttributes/CreateCustomerCustomAttributeD
- * efinition) endpoint.
- *
- * This `BulkUpsertCustomerCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert
- * requests and returns a map of individual upsert responses. Each upsert request has a unique ID
- * and provides a customer ID and custom attribute. Each upsert response is returned with the ID
- * of the corresponding request.
- *
- * To create or update a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async bulkUpsertCustomerCustomAttributes(
- body: BulkUpsertCustomerCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/customers/custom-attributes/bulk-upsert'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkUpsertCustomerCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkUpsertCustomerCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Lists the [custom attributes]($m/CustomAttribute) associated with a customer profile.
- *
- * You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
- * in the same call.
- *
- * When all response pages are retrieved, the results include all custom attributes that are
- * visible to the requesting application, including those that are owned by other applications
- * and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param customerId The ID of the target [customer profile](entity:Customer).
- * @param limit The maximum number of results to return in a single paged response. This limit
- * is advisory. The response might contain more or fewer results. The minimum
- * value is 1 and the maximum value is 100. The default value is 20. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/pagination).
- * @param cursor The cursor returned in the paged response from the previous call to this
- * endpoint. Provide this cursor to retrieve the next page of results for your
- * original request. For more information, see [Pagination](https://developer.
- * squareup.com/docs/build-basics/common-api-patterns/pagination).
- * @param withDefinitions Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of each custom attribute.
- * Set this parameter to `true` to get the name and description of each custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @return Response from the API call
- */
- async listCustomerCustomAttributes(
- customerId: string,
- limit?: number,
- cursor?: string,
- withDefinitions?: boolean,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- withDefinitions: [withDefinitions, optional(boolean())],
- });
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.query('with_definitions', mapped.withDefinitions);
- req.appendTemplatePath`/v2/customers/${mapped.customerId}/custom-attributes`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listCustomerCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a [custom attribute]($m/CustomAttribute) associated with a customer profile.
- *
- * To delete a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param customerId The ID of the target [customer profile](entity:Customer).
- * @param key The key of the custom attribute to delete. This key must match the `key` of a custom
- * attribute definition in the Square seller account. If the requesting application is
- * not the definition owner, you must use the qualified key.
- * @return Response from the API call
- */
- async deleteCustomerCustomAttribute(
- customerId: string,
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- key: [key, string()],
- });
- req.appendTemplatePath`/v2/customers/${mapped.customerId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteCustomerCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a [custom attribute]($m/CustomAttribute) associated with a customer profile.
- *
- * You can use the `with_definition` query parameter to also retrieve the custom attribute definition
- * in the same call.
- *
- * To retrieve a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom
- * attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param customerId The ID of the target [customer profile](entity:Customer).
- * @param key The key of the custom attribute to retrieve. This key must match the `key` of a
- * custom attribute definition in the Square seller account. If the requesting
- * application is not the definition owner, you must use the qualified key.
- * @param withDefinition Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of the custom attribute.
- * Set this parameter to `true` to get the name and description of the custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @param version The current version of the custom attribute, which is used for strongly
- * consistent reads to guarantee that you receive the most up-to-date data. When
- * included in the request, Square returns the specified version or a higher
- * version if one exists. If the specified version is higher than the current
- * version, Square returns a `BAD_REQUEST` error.
- * @return Response from the API call
- */
- async retrieveCustomerCustomAttribute(
- customerId: string,
- key: string,
- withDefinition?: boolean,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- key: [key, string()],
- withDefinition: [withDefinition, optional(boolean())],
- version: [version, optional(number())],
- });
- req.query('with_definition', mapped.withDefinition);
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/customers/${mapped.customerId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveCustomerCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates a [custom attribute]($m/CustomAttribute) for a customer profile.
- *
- * Use this endpoint to set the value of a custom attribute for a specified customer profile.
- * A custom attribute is based on a custom attribute definition in a Square seller account, which
- * is created using the
- * [CreateCustomerCustomAttributeDefinition]($e/CustomerCustomAttributes/CreateCustomerCustomAttributeD
- * efinition) endpoint.
- *
- * To create or update a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param customerId The ID of the target [customer profile](entity:
- * Customer).
- * @param key The key of the custom attribute to create or
- * update. This key must match the `key` of a
- * custom attribute definition in the Square
- * seller account. If the requesting application
- * is not the definition owner, you must use the
- * qualified key.
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async upsertCustomerCustomAttribute(
- customerId: string,
- key: string,
- body: UpsertCustomerCustomAttributeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- key: [key, string()],
- body: [body, upsertCustomerCustomAttributeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/customers/${mapped.customerId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- upsertCustomerCustomAttributeResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/customerGroupsApi.ts b/src/api/customerGroupsApi.ts
deleted file mode 100644
index eed4e14a1..000000000
--- a/src/api/customerGroupsApi.ts
+++ /dev/null
@@ -1,147 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateCustomerGroupRequest,
- createCustomerGroupRequestSchema,
-} from '../models/createCustomerGroupRequest';
-import {
- CreateCustomerGroupResponse,
- createCustomerGroupResponseSchema,
-} from '../models/createCustomerGroupResponse';
-import {
- DeleteCustomerGroupResponse,
- deleteCustomerGroupResponseSchema,
-} from '../models/deleteCustomerGroupResponse';
-import {
- ListCustomerGroupsResponse,
- listCustomerGroupsResponseSchema,
-} from '../models/listCustomerGroupsResponse';
-import {
- RetrieveCustomerGroupResponse,
- retrieveCustomerGroupResponseSchema,
-} from '../models/retrieveCustomerGroupResponse';
-import {
- UpdateCustomerGroupRequest,
- updateCustomerGroupRequestSchema,
-} from '../models/updateCustomerGroupRequest';
-import {
- UpdateCustomerGroupResponse,
- updateCustomerGroupResponseSchema,
-} from '../models/updateCustomerGroupResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class CustomerGroupsApi extends BaseApi {
- /**
- * Retrieves the list of customer groups of a business.
- *
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this cursor to
- * retrieve the next set of results for your original query. For more information, see
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination).
- * @param limit The maximum number of results to return in a single page. This limit is advisory. The
- * response might contain more or fewer results. If the limit is less than 1 or greater than
- * 50, Square returns a `400 VALUE_TOO_LOW` or `400 VALUE_TOO_HIGH` error. The default value
- * is 50. For more information, see [Pagination](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/pagination).
- * @return Response from the API call
- */
- async listCustomerGroups(
- cursor?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/customers/groups');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listCustomerGroupsResponseSchema, requestOptions);
- }
-
- /**
- * Creates a new customer group for a business.
- *
- * The request must include the `name` value of the group.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async createCustomerGroup(
- body: CreateCustomerGroupRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/customers/groups');
- const mapped = req.prepareArgs({
- body: [body, createCustomerGroupRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createCustomerGroupResponseSchema, requestOptions);
- }
-
- /**
- * Deletes a customer group as identified by the `group_id` value.
- *
- * @param groupId The ID of the customer group to delete.
- * @return Response from the API call
- */
- async deleteCustomerGroup(
- groupId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ groupId: [groupId, string()] });
- req.appendTemplatePath`/v2/customers/groups/${mapped.groupId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteCustomerGroupResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a specific customer group as identified by the `group_id` value.
- *
- * @param groupId The ID of the customer group to retrieve.
- * @return Response from the API call
- */
- async retrieveCustomerGroup(
- groupId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ groupId: [groupId, string()] });
- req.appendTemplatePath`/v2/customers/groups/${mapped.groupId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveCustomerGroupResponseSchema, requestOptions);
- }
-
- /**
- * Updates a customer group as identified by the `group_id` value.
- *
- * @param groupId The ID of the customer group to update.
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async updateCustomerGroup(
- groupId: string,
- body: UpdateCustomerGroupRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- groupId: [groupId, string()],
- body: [body, updateCustomerGroupRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/customers/groups/${mapped.groupId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateCustomerGroupResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/customerSegmentsApi.ts b/src/api/customerSegmentsApi.ts
deleted file mode 100644
index efe4afeca..000000000
--- a/src/api/customerSegmentsApi.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- ListCustomerSegmentsResponse,
- listCustomerSegmentsResponseSchema,
-} from '../models/listCustomerSegmentsResponse';
-import {
- RetrieveCustomerSegmentResponse,
- retrieveCustomerSegmentResponseSchema,
-} from '../models/retrieveCustomerSegmentResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class CustomerSegmentsApi extends BaseApi {
- /**
- * Retrieves the list of customer segments of a business.
- *
- * @param cursor A pagination cursor returned by previous calls to `ListCustomerSegments`. This cursor is
- * used to retrieve the next set of query results. For more information, see
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination).
- * @param limit The maximum number of results to return in a single page. This limit is advisory. The
- * response might contain more or fewer results. If the specified limit is less than 1 or
- * greater than 50, Square returns a `400 VALUE_TOO_LOW` or `400 VALUE_TOO_HIGH` error. The
- * default value is 50. For more information, see [Pagination](https://developer.squareup.
- * com/docs/build-basics/common-api-patterns/pagination).
- * @return Response from the API call
- */
- async listCustomerSegments(
- cursor?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/customers/segments');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listCustomerSegmentsResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a specific customer segment as identified by the `segment_id` value.
- *
- * @param segmentId The Square-issued ID of the customer segment.
- * @return Response from the API call
- */
- async retrieveCustomerSegment(
- segmentId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ segmentId: [segmentId, string()] });
- req.appendTemplatePath`/v2/customers/segments/${mapped.segmentId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveCustomerSegmentResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/customersApi.ts b/src/api/customersApi.ts
deleted file mode 100644
index e6e0443ce..000000000
--- a/src/api/customersApi.ts
+++ /dev/null
@@ -1,497 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- AddGroupToCustomerResponse,
- addGroupToCustomerResponseSchema,
-} from '../models/addGroupToCustomerResponse';
-import {
- BulkCreateCustomersRequest,
- bulkCreateCustomersRequestSchema,
-} from '../models/bulkCreateCustomersRequest';
-import {
- BulkCreateCustomersResponse,
- bulkCreateCustomersResponseSchema,
-} from '../models/bulkCreateCustomersResponse';
-import {
- BulkDeleteCustomersRequest,
- bulkDeleteCustomersRequestSchema,
-} from '../models/bulkDeleteCustomersRequest';
-import {
- BulkDeleteCustomersResponse,
- bulkDeleteCustomersResponseSchema,
-} from '../models/bulkDeleteCustomersResponse';
-import {
- BulkRetrieveCustomersRequest,
- bulkRetrieveCustomersRequestSchema,
-} from '../models/bulkRetrieveCustomersRequest';
-import {
- BulkRetrieveCustomersResponse,
- bulkRetrieveCustomersResponseSchema,
-} from '../models/bulkRetrieveCustomersResponse';
-import {
- BulkUpdateCustomersRequest,
- bulkUpdateCustomersRequestSchema,
-} from '../models/bulkUpdateCustomersRequest';
-import {
- BulkUpdateCustomersResponse,
- bulkUpdateCustomersResponseSchema,
-} from '../models/bulkUpdateCustomersResponse';
-import {
- CreateCustomerCardRequest,
- createCustomerCardRequestSchema,
-} from '../models/createCustomerCardRequest';
-import {
- CreateCustomerCardResponse,
- createCustomerCardResponseSchema,
-} from '../models/createCustomerCardResponse';
-import {
- CreateCustomerRequest,
- createCustomerRequestSchema,
-} from '../models/createCustomerRequest';
-import {
- CreateCustomerResponse,
- createCustomerResponseSchema,
-} from '../models/createCustomerResponse';
-import {
- DeleteCustomerCardResponse,
- deleteCustomerCardResponseSchema,
-} from '../models/deleteCustomerCardResponse';
-import {
- DeleteCustomerResponse,
- deleteCustomerResponseSchema,
-} from '../models/deleteCustomerResponse';
-import {
- ListCustomersResponse,
- listCustomersResponseSchema,
-} from '../models/listCustomersResponse';
-import {
- RemoveGroupFromCustomerResponse,
- removeGroupFromCustomerResponseSchema,
-} from '../models/removeGroupFromCustomerResponse';
-import {
- RetrieveCustomerResponse,
- retrieveCustomerResponseSchema,
-} from '../models/retrieveCustomerResponse';
-import {
- SearchCustomersRequest,
- searchCustomersRequestSchema,
-} from '../models/searchCustomersRequest';
-import {
- SearchCustomersResponse,
- searchCustomersResponseSchema,
-} from '../models/searchCustomersResponse';
-import {
- UpdateCustomerRequest,
- updateCustomerRequestSchema,
-} from '../models/updateCustomerRequest';
-import {
- UpdateCustomerResponse,
- updateCustomerResponseSchema,
-} from '../models/updateCustomerResponse';
-import { bigint, boolean, number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class CustomersApi extends BaseApi {
- /**
- * Lists customer profiles associated with a Square account.
- *
- * Under normal operating conditions, newly created or updated customer profiles become available
- * for the listing operation in well under 30 seconds. Occasionally, propagation of the new or updated
- * profiles can take closer to one minute or longer, especially during network incidents and outages.
- *
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * cursor to retrieve the next set of results for your original query. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-
- * api-patterns/pagination).
- * @param limit The maximum number of results to return in a single page. This limit is advisory.
- * The response might contain more or fewer results. If the specified limit is less than
- * 1 or greater than 100, Square returns a `400 VALUE_TOO_LOW` or `400 VALUE_TOO_HIGH`
- * error. The default value is 100. For more information, see [Pagination](https:
- * //developer.squareup.com/docs/build-basics/common-api-patterns/pagination).
- * @param sortField Indicates how customers should be sorted. The default value is `DEFAULT`.
- * @param sortOrder Indicates whether customers should be sorted in ascending (`ASC`) or descending
- * (`DESC`) order. The default value is `ASC`.
- * @param count Indicates whether to return the total count of customers in the `count` field of the
- * response. The default value is `false`.
- * @return Response from the API call
- */
- async listCustomers(
- cursor?: string,
- limit?: number,
- sortField?: string,
- sortOrder?: string,
- count?: boolean,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/customers');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- sortField: [sortField, optional(string())],
- sortOrder: [sortOrder, optional(string())],
- count: [count, optional(boolean())],
- });
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.query('sort_field', mapped.sortField);
- req.query('sort_order', mapped.sortOrder);
- req.query('count', mapped.count);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listCustomersResponseSchema, requestOptions);
- }
-
- /**
- * Creates a new customer for a business.
- *
- * You must provide at least one of the following values in your request to this
- * endpoint:
- *
- * - `given_name`
- * - `family_name`
- * - `company_name`
- * - `email_address`
- * - `phone_number`
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createCustomer(
- body: CreateCustomerRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/customers');
- const mapped = req.prepareArgs({
- body: [body, createCustomerRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createCustomerResponseSchema, requestOptions);
- }
-
- /**
- * Creates multiple [customer profiles]($m/Customer) for a business.
- *
- * This endpoint takes a map of individual create requests and returns a map of responses.
- *
- * You must provide at least one of the following values in each create request:
- *
- * - `given_name`
- * - `family_name`
- * - `company_name`
- * - `email_address`
- * - `phone_number`
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async bulkCreateCustomers(
- body: BulkCreateCustomersRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/customers/bulk-create');
- const mapped = req.prepareArgs({
- body: [body, bulkCreateCustomersRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(bulkCreateCustomersResponseSchema, requestOptions);
- }
-
- /**
- * Deletes multiple customer profiles.
- *
- * The endpoint takes a list of customer IDs and returns a map of responses.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async bulkDeleteCustomers(
- body: BulkDeleteCustomersRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/customers/bulk-delete');
- const mapped = req.prepareArgs({
- body: [body, bulkDeleteCustomersRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(bulkDeleteCustomersResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves multiple customer profiles.
- *
- * This endpoint takes a list of customer IDs and returns a map of responses.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async bulkRetrieveCustomers(
- body: BulkRetrieveCustomersRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/customers/bulk-retrieve');
- const mapped = req.prepareArgs({
- body: [body, bulkRetrieveCustomersRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(bulkRetrieveCustomersResponseSchema, requestOptions);
- }
-
- /**
- * Updates multiple customer profiles.
- *
- * This endpoint takes a map of individual update requests and returns a map of responses.
- *
- * You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards)
- * or [Gift Cards API]($e/GiftCards).
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async bulkUpdateCustomers(
- body: BulkUpdateCustomersRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/customers/bulk-update');
- const mapped = req.prepareArgs({
- body: [body, bulkUpdateCustomersRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(bulkUpdateCustomersResponseSchema, requestOptions);
- }
-
- /**
- * Searches the customer profiles associated with a Square account using one or more supported query
- * filters.
- *
- * Calling `SearchCustomers` without any explicit query filter returns all
- * customer profiles ordered alphabetically based on `given_name` and
- * `family_name`.
- *
- * Under normal operating conditions, newly created or updated customer profiles become available
- * for the search operation in well under 30 seconds. Occasionally, propagation of the new or updated
- * profiles can take closer to one minute or longer, especially during network incidents and outages.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async searchCustomers(
- body: SearchCustomersRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/customers/search');
- const mapped = req.prepareArgs({
- body: [body, searchCustomersRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchCustomersResponseSchema, requestOptions);
- }
-
- /**
- * Deletes a customer profile from a business. This operation also unlinks any associated cards on file.
- *
- * To delete a customer profile that was created by merging existing profiles, you must use the ID of
- * the newly created profile.
- *
- * @param customerId The ID of the customer to delete.
- * @param version The current version of the customer profile. As a best practice, you should include
- * this parameter to enable [optimistic concurrency](https://developer.squareup.
- * com/docs/build-basics/common-api-patterns/optimistic-concurrency) control. For more
- * information, see [Delete a customer profile](https://developer.squareup.
- * com/docs/customers-api/use-the-api/keep-records#delete-customer-profile).
- * @return Response from the API call
- */
- async deleteCustomer(
- customerId: string,
- version?: bigint,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- version: [version, optional(bigint())],
- });
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/customers/${mapped.customerId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteCustomerResponseSchema, requestOptions);
- }
-
- /**
- * Returns details for a single customer.
- *
- * @param customerId The ID of the customer to retrieve.
- * @return Response from the API call
- */
- async retrieveCustomer(
- customerId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ customerId: [customerId, string()] });
- req.appendTemplatePath`/v2/customers/${mapped.customerId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveCustomerResponseSchema, requestOptions);
- }
-
- /**
- * Updates a customer profile. This endpoint supports sparse updates, so only new or changed fields are
- * required in the request.
- * To add or update a field, specify the new value. To remove a field, specify `null`.
- *
- * To update a customer profile that was created by merging existing profiles, you must use the ID of
- * the newly created profile.
- *
- * You cannot use this endpoint to change cards on file. To make changes, use the [Cards API]($e/Cards)
- * or [Gift Cards API]($e/GiftCards).
- *
- * @param customerId The ID of the customer to update.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updateCustomer(
- customerId: string,
- body: UpdateCustomerRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- body: [body, updateCustomerRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/customers/${mapped.customerId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateCustomerResponseSchema, requestOptions);
- }
-
- /**
- * Adds a card on file to an existing customer.
- *
- * As with charges, calls to `CreateCustomerCard` are idempotent. Multiple
- * calls with the same card nonce return the same card record that was created
- * with the provided nonce during the _first_ call.
- *
- * @param customerId The Square ID of the customer profile the card is linked
- * to.
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- * @deprecated
- */
- async createCustomerCard(
- customerId: string,
- body: CreateCustomerCardRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- body: [body, createCustomerCardRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/customers/${mapped.customerId}/cards`;
- req.deprecated('CustomersApi.createCustomerCard');
- req.authenticate([{ global: true }]);
- return req.callAsJson(createCustomerCardResponseSchema, requestOptions);
- }
-
- /**
- * Removes a card on file from a customer.
- *
- * @param customerId The ID of the customer that the card on file belongs to.
- * @param cardId The ID of the card on file to delete.
- * @return Response from the API call
- * @deprecated
- */
- async deleteCustomerCard(
- customerId: string,
- cardId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- cardId: [cardId, string()],
- });
- req.appendTemplatePath`/v2/customers/${mapped.customerId}/cards/${mapped.cardId}`;
- req.deprecated('CustomersApi.deleteCustomerCard');
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteCustomerCardResponseSchema, requestOptions);
- }
-
- /**
- * Removes a group membership from a customer.
- *
- * The customer is identified by the `customer_id` value
- * and the customer group is identified by the `group_id` value.
- *
- * @param customerId The ID of the customer to remove from the group.
- * @param groupId The ID of the customer group to remove the customer from.
- * @return Response from the API call
- */
- async removeGroupFromCustomer(
- customerId: string,
- groupId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- groupId: [groupId, string()],
- });
- req.appendTemplatePath`/v2/customers/${mapped.customerId}/groups/${mapped.groupId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- removeGroupFromCustomerResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Adds a group membership to a customer.
- *
- * The customer is identified by the `customer_id` value
- * and the customer group is identified by the `group_id` value.
- *
- * @param customerId The ID of the customer to add to a group.
- * @param groupId The ID of the customer group to add the customer to.
- * @return Response from the API call
- */
- async addGroupToCustomer(
- customerId: string,
- groupId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- customerId: [customerId, string()],
- groupId: [groupId, string()],
- });
- req.appendTemplatePath`/v2/customers/${mapped.customerId}/groups/${mapped.groupId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(addGroupToCustomerResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/devicesApi.ts b/src/api/devicesApi.ts
deleted file mode 100644
index 3709edbc8..000000000
--- a/src/api/devicesApi.ts
+++ /dev/null
@@ -1,158 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateDeviceCodeRequest,
- createDeviceCodeRequestSchema,
-} from '../models/createDeviceCodeRequest';
-import {
- CreateDeviceCodeResponse,
- createDeviceCodeResponseSchema,
-} from '../models/createDeviceCodeResponse';
-import {
- GetDeviceCodeResponse,
- getDeviceCodeResponseSchema,
-} from '../models/getDeviceCodeResponse';
-import {
- GetDeviceResponse,
- getDeviceResponseSchema,
-} from '../models/getDeviceResponse';
-import {
- ListDeviceCodesResponse,
- listDeviceCodesResponseSchema,
-} from '../models/listDeviceCodesResponse';
-import {
- ListDevicesResponse,
- listDevicesResponseSchema,
-} from '../models/listDevicesResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class DevicesApi extends BaseApi {
- /**
- * List devices associated with the merchant. Currently, only Terminal API
- * devices are supported.
- *
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * cursor to retrieve the next set of results for the original query. See
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination) for more information.
- * @param sortOrder The order in which results are listed. - `ASC` - Oldest to newest. - `DESC` - Newest
- * to oldest (default).
- * @param limit The number of results to return in a single page.
- * @param locationId If present, only returns devices at the target location.
- * @return Response from the API call
- */
- async listDevices(
- cursor?: string,
- sortOrder?: string,
- limit?: number,
- locationId?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/devices');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- sortOrder: [sortOrder, optional(string())],
- limit: [limit, optional(number())],
- locationId: [locationId, optional(string())],
- });
- req.query('cursor', mapped.cursor);
- req.query('sort_order', mapped.sortOrder);
- req.query('limit', mapped.limit);
- req.query('location_id', mapped.locationId);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listDevicesResponseSchema, requestOptions);
- }
-
- /**
- * Lists all DeviceCodes associated with the merchant.
- *
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this to
- * retrieve the next set of results for your original query. See [Paginating
- * results](https://developer.squareup.com/docs/working-with-apis/pagination) for more
- * information.
- * @param locationId If specified, only returns DeviceCodes of the specified location. Returns
- * DeviceCodes of all locations if empty.
- * @param productType If specified, only returns DeviceCodes targeting the specified product type.
- * Returns DeviceCodes of all product types if empty.
- * @param status If specified, returns DeviceCodes with the specified statuses. Returns DeviceCodes
- * of status `PAIRED` and `UNPAIRED` if empty.
- * @return Response from the API call
- */
- async listDeviceCodes(
- cursor?: string,
- locationId?: string,
- productType?: string,
- status?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/devices/codes');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- locationId: [locationId, optional(string())],
- productType: [productType, optional(string())],
- status: [status, optional(string())],
- });
- req.query('cursor', mapped.cursor);
- req.query('location_id', mapped.locationId);
- req.query('product_type', mapped.productType);
- req.query('status', mapped.status);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listDeviceCodesResponseSchema, requestOptions);
- }
-
- /**
- * Creates a DeviceCode that can be used to login to a Square Terminal device to enter the connected
- * terminal mode.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createDeviceCode(
- body: CreateDeviceCodeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/devices/codes');
- const mapped = req.prepareArgs({
- body: [body, createDeviceCodeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createDeviceCodeResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves DeviceCode with the associated ID.
- *
- * @param id The unique identifier for the device code.
- * @return Response from the API call
- */
- async getDeviceCode(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/devices/codes/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getDeviceCodeResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves Device with the associated `device_id`.
- *
- * @param deviceId The unique ID for the desired `Device`.
- * @return Response from the API call
- */
- async getDevice(
- deviceId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ deviceId: [deviceId, string()] });
- req.appendTemplatePath`/v2/devices/${mapped.deviceId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getDeviceResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/disputesApi.ts b/src/api/disputesApi.ts
deleted file mode 100644
index 2d184415b..000000000
--- a/src/api/disputesApi.ts
+++ /dev/null
@@ -1,283 +0,0 @@
-import { ApiResponse, FileWrapper, RequestOptions } from '../core';
-import {
- AcceptDisputeResponse,
- acceptDisputeResponseSchema,
-} from '../models/acceptDisputeResponse';
-import {
- CreateDisputeEvidenceFileRequest,
- createDisputeEvidenceFileRequestSchema,
-} from '../models/createDisputeEvidenceFileRequest';
-import {
- CreateDisputeEvidenceFileResponse,
- createDisputeEvidenceFileResponseSchema,
-} from '../models/createDisputeEvidenceFileResponse';
-import {
- CreateDisputeEvidenceTextRequest,
- createDisputeEvidenceTextRequestSchema,
-} from '../models/createDisputeEvidenceTextRequest';
-import {
- CreateDisputeEvidenceTextResponse,
- createDisputeEvidenceTextResponseSchema,
-} from '../models/createDisputeEvidenceTextResponse';
-import {
- DeleteDisputeEvidenceResponse,
- deleteDisputeEvidenceResponseSchema,
-} from '../models/deleteDisputeEvidenceResponse';
-import {
- ListDisputeEvidenceResponse,
- listDisputeEvidenceResponseSchema,
-} from '../models/listDisputeEvidenceResponse';
-import {
- ListDisputesResponse,
- listDisputesResponseSchema,
-} from '../models/listDisputesResponse';
-import {
- RetrieveDisputeEvidenceResponse,
- retrieveDisputeEvidenceResponseSchema,
-} from '../models/retrieveDisputeEvidenceResponse';
-import {
- RetrieveDisputeResponse,
- retrieveDisputeResponseSchema,
-} from '../models/retrieveDisputeResponse';
-import {
- SubmitEvidenceResponse,
- submitEvidenceResponseSchema,
-} from '../models/submitEvidenceResponse';
-import { optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class DisputesApi extends BaseApi {
- /**
- * Returns a list of disputes associated with a particular account.
- *
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * cursor to retrieve the next set of results for the original query. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-
- * api-patterns/pagination).
- * @param states The dispute states used to filter the result. If not specified, the endpoint returns
- * all disputes.
- * @param locationId The ID of the location for which to return a list of disputes. If not specified, the
- * endpoint returns disputes associated with all locations.
- * @return Response from the API call
- */
- async listDisputes(
- cursor?: string,
- states?: string,
- locationId?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/disputes');
- const mapped = req.prepareArgs({
- cursor: [cursor, optional(string())],
- states: [states, optional(string())],
- locationId: [locationId, optional(string())],
- });
- req.query('cursor', mapped.cursor);
- req.query('states', mapped.states);
- req.query('location_id', mapped.locationId);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listDisputesResponseSchema, requestOptions);
- }
-
- /**
- * Returns details about a specific dispute.
- *
- * @param disputeId The ID of the dispute you want more details about.
- * @return Response from the API call
- */
- async retrieveDispute(
- disputeId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ disputeId: [disputeId, string()] });
- req.appendTemplatePath`/v2/disputes/${mapped.disputeId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveDisputeResponseSchema, requestOptions);
- }
-
- /**
- * Accepts the loss on a dispute. Square returns the disputed amount to the cardholder and
- * updates the dispute state to ACCEPTED.
- *
- * Square debits the disputed amount from the seller’s Square account. If the Square account
- * does not have sufficient funds, Square debits the associated bank account.
- *
- * @param disputeId The ID of the dispute you want to accept.
- * @return Response from the API call
- */
- async acceptDispute(
- disputeId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({ disputeId: [disputeId, string()] });
- req.appendTemplatePath`/v2/disputes/${mapped.disputeId}/accept`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(acceptDisputeResponseSchema, requestOptions);
- }
-
- /**
- * Returns a list of evidence associated with a dispute.
- *
- * @param disputeId The ID of the dispute.
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this cursor
- * to retrieve the next set of results for the original query. For more information, see
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination).
- * @return Response from the API call
- */
- async listDisputeEvidence(
- disputeId: string,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- disputeId: [disputeId, string()],
- cursor: [cursor, optional(string())],
- });
- req.query('cursor', mapped.cursor);
- req.appendTemplatePath`/v2/disputes/${mapped.disputeId}/evidence`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(listDisputeEvidenceResponseSchema, requestOptions);
- }
-
- /**
- * Uploads a file to use as evidence in a dispute challenge. The endpoint accepts HTTP
- * multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats.
- *
- * @param disputeId The ID of the dispute for which you want to upload
- * evidence.
- * @param request Defines the parameters for a
- * `CreateDisputeEvidenceFile` request.
- * @param imageFile
- * @return Response from the API call
- */
- async createDisputeEvidenceFile(
- disputeId: string,
- request?: CreateDisputeEvidenceFileRequest,
- imageFile?: FileWrapper,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- disputeId: [disputeId, string()],
- request: [request, optional(createDisputeEvidenceFileRequestSchema)],
- });
- req.formData({
- request: JSON.stringify(mapped.request),
- image_file: imageFile,
- });
- req.appendTemplatePath`/v2/disputes/${mapped.disputeId}/evidence-files`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createDisputeEvidenceFileResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Uploads text to use as evidence for a dispute challenge.
- *
- * @param disputeId The ID of the dispute for which you want to upload
- * evidence.
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition
- * for field details.
- * @return Response from the API call
- */
- async createDisputeEvidenceText(
- disputeId: string,
- body: CreateDisputeEvidenceTextRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- disputeId: [disputeId, string()],
- body: [body, createDisputeEvidenceTextRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/disputes/${mapped.disputeId}/evidence-text`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createDisputeEvidenceTextResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Removes specified evidence from a dispute.
- * Square does not send the bank any evidence that is removed.
- *
- * @param disputeId The ID of the dispute from which you want to remove evidence.
- * @param evidenceId The ID of the evidence you want to remove.
- * @return Response from the API call
- */
- async deleteDisputeEvidence(
- disputeId: string,
- evidenceId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- disputeId: [disputeId, string()],
- evidenceId: [evidenceId, string()],
- });
- req.appendTemplatePath`/v2/disputes/${mapped.disputeId}/evidence/${mapped.evidenceId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteDisputeEvidenceResponseSchema, requestOptions);
- }
-
- /**
- * Returns the metadata for the evidence specified in the request URL path.
- *
- * You must maintain a copy of any evidence uploaded if you want to reference it later. Evidence cannot
- * be downloaded after you upload it.
- *
- * @param disputeId The ID of the dispute from which you want to retrieve evidence metadata.
- * @param evidenceId The ID of the evidence to retrieve.
- * @return Response from the API call
- */
- async retrieveDisputeEvidence(
- disputeId: string,
- evidenceId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- disputeId: [disputeId, string()],
- evidenceId: [evidenceId, string()],
- });
- req.appendTemplatePath`/v2/disputes/${mapped.disputeId}/evidence/${mapped.evidenceId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveDisputeEvidenceResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Submits evidence to the cardholder's bank.
- *
- * The evidence submitted by this endpoint includes evidence uploaded
- * using the [CreateDisputeEvidenceFile]($e/Disputes/CreateDisputeEvidenceFile) and
- * [CreateDisputeEvidenceText]($e/Disputes/CreateDisputeEvidenceText) endpoints and
- * evidence automatically provided by Square, when available. Evidence cannot be removed from
- * a dispute after submission.
- *
- * @param disputeId The ID of the dispute for which you want to submit evidence.
- * @return Response from the API call
- */
- async submitEvidence(
- disputeId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({ disputeId: [disputeId, string()] });
- req.appendTemplatePath`/v2/disputes/${mapped.disputeId}/submit-evidence`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(submitEvidenceResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/employeesApi.ts b/src/api/employeesApi.ts
deleted file mode 100644
index 84777cab6..000000000
--- a/src/api/employeesApi.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- ListEmployeesResponse,
- listEmployeesResponseSchema,
-} from '../models/listEmployeesResponse';
-import {
- RetrieveEmployeeResponse,
- retrieveEmployeeResponseSchema,
-} from '../models/retrieveEmployeeResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class EmployeesApi extends BaseApi {
- /**
- * @param locationId
- * @param status Specifies the EmployeeStatus to filter the employee by.
- * @param limit The number of employees to be returned on each page.
- * @param cursor The token required to retrieve the specified page of results.
- * @return Response from the API call
- * @deprecated
- */
- async listEmployees(
- locationId?: string,
- status?: string,
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/employees');
- const mapped = req.prepareArgs({
- locationId: [locationId, optional(string())],
- status: [status, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('location_id', mapped.locationId);
- req.query('status', mapped.status);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.deprecated('EmployeesApi.listEmployees');
- req.authenticate([{ global: true }]);
- return req.callAsJson(listEmployeesResponseSchema, requestOptions);
- }
-
- /**
- * @param id UUID for the employee that was requested.
- * @return Response from the API call
- * @deprecated
- */
- async retrieveEmployee(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/employees/${mapped.id}`;
- req.deprecated('EmployeesApi.retrieveEmployee');
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveEmployeeResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/eventsApi.ts b/src/api/eventsApi.ts
deleted file mode 100644
index a16886225..000000000
--- a/src/api/eventsApi.ts
+++ /dev/null
@@ -1,94 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- DisableEventsResponse,
- disableEventsResponseSchema,
-} from '../models/disableEventsResponse';
-import {
- EnableEventsResponse,
- enableEventsResponseSchema,
-} from '../models/enableEventsResponse';
-import {
- ListEventTypesResponse,
- listEventTypesResponseSchema,
-} from '../models/listEventTypesResponse';
-import {
- SearchEventsRequest,
- searchEventsRequestSchema,
-} from '../models/searchEventsRequest';
-import {
- SearchEventsResponse,
- searchEventsResponseSchema,
-} from '../models/searchEventsResponse';
-import { optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class EventsApi extends BaseApi {
- /**
- * Search for Square API events that occur within a 28-day timeframe.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async searchEvents(
- body: SearchEventsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/events');
- const mapped = req.prepareArgs({ body: [body, searchEventsRequestSchema] });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchEventsResponseSchema, requestOptions);
- }
-
- /**
- * Disables events to prevent them from being searchable.
- * All events are disabled by default. You must enable events to make them searchable.
- * Disabling events for a specific time period prevents them from being searchable, even if you re-
- * enable them later.
- *
- * @return Response from the API call
- */
- async disableEvents(
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT', '/v2/events/disable');
- req.authenticate([{ global: true }]);
- return req.callAsJson(disableEventsResponseSchema, requestOptions);
- }
-
- /**
- * Enables events to make them searchable. Only events that occur while in the enabled state are
- * searchable.
- *
- * @return Response from the API call
- */
- async enableEvents(
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT', '/v2/events/enable');
- req.authenticate([{ global: true }]);
- return req.callAsJson(enableEventsResponseSchema, requestOptions);
- }
-
- /**
- * Lists all event types that you can subscribe to as webhooks or query using the Events API.
- *
- * @param apiVersion The API version for which to list event types. Setting this field overrides the
- * default version used by the application.
- * @return Response from the API call
- */
- async listEventTypes(
- apiVersion?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/events/types');
- const mapped = req.prepareArgs({
- apiVersion: [apiVersion, optional(string())],
- });
- req.query('api_version', mapped.apiVersion);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listEventTypesResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/giftCardActivitiesApi.ts b/src/api/giftCardActivitiesApi.ts
deleted file mode 100644
index 61c1aeb88..000000000
--- a/src/api/giftCardActivitiesApi.ts
+++ /dev/null
@@ -1,107 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateGiftCardActivityRequest,
- createGiftCardActivityRequestSchema,
-} from '../models/createGiftCardActivityRequest';
-import {
- CreateGiftCardActivityResponse,
- createGiftCardActivityResponseSchema,
-} from '../models/createGiftCardActivityResponse';
-import {
- ListGiftCardActivitiesResponse,
- listGiftCardActivitiesResponseSchema,
-} from '../models/listGiftCardActivitiesResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class GiftCardActivitiesApi extends BaseApi {
- /**
- * Lists gift card activities. By default, you get gift card activities for all
- * gift cards in the seller's account. You can optionally specify query parameters to
- * filter the list. For example, you can get a list of gift card activities for a gift card,
- * for all gift cards in a specific region, or for activities within a time window.
- *
- * @param giftCardId If a gift card ID is provided, the endpoint returns activities related to the
- * specified gift card. Otherwise, the endpoint returns all gift card activities for
- * the seller.
- * @param type If a [type](entity:GiftCardActivityType) is provided, the endpoint returns gift
- * card activities of the specified type. Otherwise, the endpoint returns all types of
- * gift card activities.
- * @param locationId If a location ID is provided, the endpoint returns gift card activities for the
- * specified location. Otherwise, the endpoint returns gift card activities for all
- * locations.
- * @param beginTime The timestamp for the beginning of the reporting period, in RFC 3339 format. This
- * start time is inclusive. The default value is the current time minus one year.
- * @param endTime The timestamp for the end of the reporting period, in RFC 3339 format. This end
- * time is inclusive. The default value is the current time.
- * @param limit If a limit is provided, the endpoint returns the specified number of results (or
- * fewer) per page. The maximum value is 100. The default value is 50. For more
- * information, see [Pagination](https://developer.squareup.com/docs/working-with-
- * apis/pagination).
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * cursor to retrieve the next set of results for the original query. If a cursor is
- * not provided, the endpoint returns the first page of the results. For more
- * information, see [Pagination](https://developer.squareup.com/docs/working-with-
- * apis/pagination).
- * @param sortOrder The order in which the endpoint returns the activities, based on `created_at`. -
- * `ASC` - Oldest to newest. - `DESC` - Newest to oldest (default).
- * @return Response from the API call
- */
- async listGiftCardActivities(
- giftCardId?: string,
- type?: string,
- locationId?: string,
- beginTime?: string,
- endTime?: string,
- limit?: number,
- cursor?: string,
- sortOrder?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/gift-cards/activities');
- const mapped = req.prepareArgs({
- giftCardId: [giftCardId, optional(string())],
- type: [type, optional(string())],
- locationId: [locationId, optional(string())],
- beginTime: [beginTime, optional(string())],
- endTime: [endTime, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- sortOrder: [sortOrder, optional(string())],
- });
- req.query('gift_card_id', mapped.giftCardId);
- req.query('type', mapped.type);
- req.query('location_id', mapped.locationId);
- req.query('begin_time', mapped.beginTime);
- req.query('end_time', mapped.endTime);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.query('sort_order', mapped.sortOrder);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listGiftCardActivitiesResponseSchema, requestOptions);
- }
-
- /**
- * Creates a gift card activity to manage the balance or state of a [gift card]($m/GiftCard).
- * For example, create an `ACTIVATE` activity to activate a gift card with an initial balance before
- * first use.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async createGiftCardActivity(
- body: CreateGiftCardActivityRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/gift-cards/activities');
- const mapped = req.prepareArgs({
- body: [body, createGiftCardActivityRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createGiftCardActivityResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/giftCardsApi.ts b/src/api/giftCardsApi.ts
deleted file mode 100644
index 86a67958b..000000000
--- a/src/api/giftCardsApi.ts
+++ /dev/null
@@ -1,245 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateGiftCardRequest,
- createGiftCardRequestSchema,
-} from '../models/createGiftCardRequest';
-import {
- CreateGiftCardResponse,
- createGiftCardResponseSchema,
-} from '../models/createGiftCardResponse';
-import {
- LinkCustomerToGiftCardRequest,
- linkCustomerToGiftCardRequestSchema,
-} from '../models/linkCustomerToGiftCardRequest';
-import {
- LinkCustomerToGiftCardResponse,
- linkCustomerToGiftCardResponseSchema,
-} from '../models/linkCustomerToGiftCardResponse';
-import {
- ListGiftCardsResponse,
- listGiftCardsResponseSchema,
-} from '../models/listGiftCardsResponse';
-import {
- RetrieveGiftCardFromGANRequest,
- retrieveGiftCardFromGANRequestSchema,
-} from '../models/retrieveGiftCardFromGANRequest';
-import {
- RetrieveGiftCardFromGANResponse,
- retrieveGiftCardFromGANResponseSchema,
-} from '../models/retrieveGiftCardFromGANResponse';
-import {
- RetrieveGiftCardFromNonceRequest,
- retrieveGiftCardFromNonceRequestSchema,
-} from '../models/retrieveGiftCardFromNonceRequest';
-import {
- RetrieveGiftCardFromNonceResponse,
- retrieveGiftCardFromNonceResponseSchema,
-} from '../models/retrieveGiftCardFromNonceResponse';
-import {
- RetrieveGiftCardResponse,
- retrieveGiftCardResponseSchema,
-} from '../models/retrieveGiftCardResponse';
-import {
- UnlinkCustomerFromGiftCardRequest,
- unlinkCustomerFromGiftCardRequestSchema,
-} from '../models/unlinkCustomerFromGiftCardRequest';
-import {
- UnlinkCustomerFromGiftCardResponse,
- unlinkCustomerFromGiftCardResponseSchema,
-} from '../models/unlinkCustomerFromGiftCardResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class GiftCardsApi extends BaseApi {
- /**
- * Lists all gift cards. You can specify optional filters to retrieve
- * a subset of the gift cards. Results are sorted by `created_at` in ascending order.
- *
- * @param type If a [type](entity:GiftCardType) is provided, the endpoint returns gift cards of the
- * specified type. Otherwise, the endpoint returns gift cards of all types.
- * @param state If a [state](entity:GiftCardStatus) is provided, the endpoint returns the gift cards
- * in the specified state. Otherwise, the endpoint returns the gift cards of all states.
- * @param limit If a limit is provided, the endpoint returns only the specified number of results
- * per page. The maximum value is 200. The default value is 30. For more information,
- * see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination).
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * cursor to retrieve the next set of results for the original query. If a cursor is not
- * provided, the endpoint returns the first page of the results. For more information,
- * see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination).
- * @param customerId If a customer ID is provided, the endpoint returns only the gift cards linked to the
- * specified customer.
- * @return Response from the API call
- */
- async listGiftCards(
- type?: string,
- state?: string,
- limit?: number,
- cursor?: string,
- customerId?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/gift-cards');
- const mapped = req.prepareArgs({
- type: [type, optional(string())],
- state: [state, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- customerId: [customerId, optional(string())],
- });
- req.query('type', mapped.type);
- req.query('state', mapped.state);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.query('customer_id', mapped.customerId);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listGiftCardsResponseSchema, requestOptions);
- }
-
- /**
- * Creates a digital gift card or registers a physical (plastic) gift card. The resulting gift card
- * has a `PENDING` state. To activate a gift card so that it can be redeemed for purchases, call
- * [CreateGiftCardActivity]($e/GiftCardActivities/CreateGiftCardActivity) and create an `ACTIVATE`
- * activity with the initial balance. Alternatively, you can use
- * [RefundPayment]($e/Refunds/RefundPayment)
- * to refund a payment to the new gift card.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createGiftCard(
- body: CreateGiftCardRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/gift-cards');
- const mapped = req.prepareArgs({
- body: [body, createGiftCardRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createGiftCardResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a gift card using the gift card account number (GAN).
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async retrieveGiftCardFromGAN(
- body: RetrieveGiftCardFromGANRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/gift-cards/from-gan');
- const mapped = req.prepareArgs({
- body: [body, retrieveGiftCardFromGANRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveGiftCardFromGANResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a gift card using a secure payment token that represents the gift card.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition
- * for field details.
- * @return Response from the API call
- */
- async retrieveGiftCardFromNonce(
- body: RetrieveGiftCardFromNonceRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/gift-cards/from-nonce');
- const mapped = req.prepareArgs({
- body: [body, retrieveGiftCardFromNonceRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveGiftCardFromNonceResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Links a customer to a gift card, which is also referred to as adding a card on file.
- *
- * @param giftCardId The ID of the gift card to be linked.
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async linkCustomerToGiftCard(
- giftCardId: string,
- body: LinkCustomerToGiftCardRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- giftCardId: [giftCardId, string()],
- body: [body, linkCustomerToGiftCardRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/gift-cards/${mapped.giftCardId}/link-customer`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(linkCustomerToGiftCardResponseSchema, requestOptions);
- }
-
- /**
- * Unlinks a customer from a gift card, which is also referred to as removing a card on file.
- *
- * @param giftCardId The ID of the gift card to be unlinked.
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition
- * for field details.
- * @return Response from the API call
- */
- async unlinkCustomerFromGiftCard(
- giftCardId: string,
- body: UnlinkCustomerFromGiftCardRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- giftCardId: [giftCardId, string()],
- body: [body, unlinkCustomerFromGiftCardRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/gift-cards/${mapped.giftCardId}/unlink-customer`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- unlinkCustomerFromGiftCardResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a gift card using the gift card ID.
- *
- * @param id The ID of the gift card to retrieve.
- * @return Response from the API call
- */
- async retrieveGiftCard(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/gift-cards/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveGiftCardResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/index.ts b/src/api/index.ts
new file mode 100644
index 000000000..3ce0a3e38
--- /dev/null
+++ b/src/api/index.ts
@@ -0,0 +1,2 @@
+export * from "./types";
+export * from "./resources";
diff --git a/src/api/inventoryApi.ts b/src/api/inventoryApi.ts
deleted file mode 100644
index 15f25a2f6..000000000
--- a/src/api/inventoryApi.ts
+++ /dev/null
@@ -1,439 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- BatchChangeInventoryRequest,
- batchChangeInventoryRequestSchema,
-} from '../models/batchChangeInventoryRequest';
-import {
- BatchChangeInventoryResponse,
- batchChangeInventoryResponseSchema,
-} from '../models/batchChangeInventoryResponse';
-import {
- BatchRetrieveInventoryChangesRequest,
- batchRetrieveInventoryChangesRequestSchema,
-} from '../models/batchRetrieveInventoryChangesRequest';
-import {
- BatchRetrieveInventoryChangesResponse,
- batchRetrieveInventoryChangesResponseSchema,
-} from '../models/batchRetrieveInventoryChangesResponse';
-import {
- BatchRetrieveInventoryCountsRequest,
- batchRetrieveInventoryCountsRequestSchema,
-} from '../models/batchRetrieveInventoryCountsRequest';
-import {
- BatchRetrieveInventoryCountsResponse,
- batchRetrieveInventoryCountsResponseSchema,
-} from '../models/batchRetrieveInventoryCountsResponse';
-import {
- RetrieveInventoryAdjustmentResponse,
- retrieveInventoryAdjustmentResponseSchema,
-} from '../models/retrieveInventoryAdjustmentResponse';
-import {
- RetrieveInventoryChangesResponse,
- retrieveInventoryChangesResponseSchema,
-} from '../models/retrieveInventoryChangesResponse';
-import {
- RetrieveInventoryCountResponse,
- retrieveInventoryCountResponseSchema,
-} from '../models/retrieveInventoryCountResponse';
-import {
- RetrieveInventoryPhysicalCountResponse,
- retrieveInventoryPhysicalCountResponseSchema,
-} from '../models/retrieveInventoryPhysicalCountResponse';
-import {
- RetrieveInventoryTransferResponse,
- retrieveInventoryTransferResponseSchema,
-} from '../models/retrieveInventoryTransferResponse';
-import { optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class InventoryApi extends BaseApi {
- /**
- * Deprecated version of [RetrieveInventoryAdjustment](api-endpoint:Inventory-
- * RetrieveInventoryAdjustment) after the endpoint URL
- * is updated to conform to the standard convention.
- *
- * @param adjustmentId ID of the [InventoryAdjustment](entity:InventoryAdjustment) to retrieve.
- * @return Response from the API call
- * @deprecated
- */
- async deprecatedRetrieveInventoryAdjustment(
- adjustmentId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ adjustmentId: [adjustmentId, string()] });
- req.appendTemplatePath`/v2/inventory/adjustment/${mapped.adjustmentId}`;
- req.deprecated('InventoryApi.deprecatedRetrieveInventoryAdjustment');
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveInventoryAdjustmentResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Returns the [InventoryAdjustment]($m/InventoryAdjustment) object
- * with the provided `adjustment_id`.
- *
- * @param adjustmentId ID of the [InventoryAdjustment](entity:InventoryAdjustment) to retrieve.
- * @return Response from the API call
- */
- async retrieveInventoryAdjustment(
- adjustmentId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ adjustmentId: [adjustmentId, string()] });
- req.appendTemplatePath`/v2/inventory/adjustments/${mapped.adjustmentId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveInventoryAdjustmentResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deprecated version of [BatchChangeInventory](api-endpoint:Inventory-BatchChangeInventory) after the
- * endpoint URL
- * is updated to conform to the standard convention.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- * @deprecated
- */
- async deprecatedBatchChangeInventory(
- body: BatchChangeInventoryRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/inventory/batch-change');
- const mapped = req.prepareArgs({
- body: [body, batchChangeInventoryRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.deprecated('InventoryApi.deprecatedBatchChangeInventory');
- req.authenticate([{ global: true }]);
- return req.callAsJson(batchChangeInventoryResponseSchema, requestOptions);
- }
-
- /**
- * Deprecated version of [BatchRetrieveInventoryChanges](api-endpoint:Inventory-
- * BatchRetrieveInventoryChanges) after the endpoint URL
- * is updated to conform to the standard convention.
- *
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- * @deprecated
- */
- async deprecatedBatchRetrieveInventoryChanges(
- body: BatchRetrieveInventoryChangesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/inventory/batch-retrieve-changes'
- );
- const mapped = req.prepareArgs({
- body: [body, batchRetrieveInventoryChangesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.deprecated('InventoryApi.deprecatedBatchRetrieveInventoryChanges');
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- batchRetrieveInventoryChangesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deprecated version of [BatchRetrieveInventoryCounts](api-endpoint:Inventory-
- * BatchRetrieveInventoryCounts) after the endpoint URL
- * is updated to conform to the standard convention.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- * @deprecated
- */
- async deprecatedBatchRetrieveInventoryCounts(
- body: BatchRetrieveInventoryCountsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/inventory/batch-retrieve-counts'
- );
- const mapped = req.prepareArgs({
- body: [body, batchRetrieveInventoryCountsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.deprecated('InventoryApi.deprecatedBatchRetrieveInventoryCounts');
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- batchRetrieveInventoryCountsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Applies adjustments and counts to the provided item quantities.
- *
- * On success: returns the current calculated counts for all objects
- * referenced in the request.
- * On failure: returns a list of related errors.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async batchChangeInventory(
- body: BatchChangeInventoryRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/inventory/changes/batch-create'
- );
- const mapped = req.prepareArgs({
- body: [body, batchChangeInventoryRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(batchChangeInventoryResponseSchema, requestOptions);
- }
-
- /**
- * Returns historical physical counts and adjustments based on the
- * provided filter criteria.
- *
- * Results are paginated and sorted in ascending order according their
- * `occurred_at` timestamp (oldest first).
- *
- * BatchRetrieveInventoryChanges is a catch-all query endpoint for queries
- * that cannot be handled by other, simpler endpoints.
- *
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async batchRetrieveInventoryChanges(
- body: BatchRetrieveInventoryChangesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/inventory/changes/batch-retrieve'
- );
- const mapped = req.prepareArgs({
- body: [body, batchRetrieveInventoryChangesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- batchRetrieveInventoryChangesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Returns current counts for the provided
- * [CatalogObject]($m/CatalogObject)s at the requested
- * [Location]($m/Location)s.
- *
- * Results are paginated and sorted in descending order according to their
- * `calculated_at` timestamp (newest first).
- *
- * When `updated_after` is specified, only counts that have changed since that
- * time (based on the server timestamp for the most recent change) are
- * returned. This allows clients to perform a "sync" operation, for example
- * in response to receiving a Webhook notification.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async batchRetrieveInventoryCounts(
- body: BatchRetrieveInventoryCountsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/inventory/counts/batch-retrieve'
- );
- const mapped = req.prepareArgs({
- body: [body, batchRetrieveInventoryCountsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- batchRetrieveInventoryCountsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deprecated version of [RetrieveInventoryPhysicalCount](api-endpoint:Inventory-
- * RetrieveInventoryPhysicalCount) after the endpoint URL
- * is updated to conform to the standard convention.
- *
- * @param physicalCountId ID of the [InventoryPhysicalCount](entity:InventoryPhysicalCount) to retrieve.
- * @return Response from the API call
- * @deprecated
- */
- async deprecatedRetrieveInventoryPhysicalCount(
- physicalCountId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- physicalCountId: [physicalCountId, string()],
- });
- req.appendTemplatePath`/v2/inventory/physical-count/${mapped.physicalCountId}`;
- req.deprecated('InventoryApi.deprecatedRetrieveInventoryPhysicalCount');
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveInventoryPhysicalCountResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Returns the [InventoryPhysicalCount]($m/InventoryPhysicalCount)
- * object with the provided `physical_count_id`.
- *
- * @param physicalCountId ID of the [InventoryPhysicalCount](entity:InventoryPhysicalCount) to retrieve.
- * @return Response from the API call
- */
- async retrieveInventoryPhysicalCount(
- physicalCountId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- physicalCountId: [physicalCountId, string()],
- });
- req.appendTemplatePath`/v2/inventory/physical-counts/${mapped.physicalCountId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveInventoryPhysicalCountResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Returns the [InventoryTransfer]($m/InventoryTransfer) object
- * with the provided `transfer_id`.
- *
- * @param transferId ID of the [InventoryTransfer](entity:InventoryTransfer) to retrieve.
- * @return Response from the API call
- */
- async retrieveInventoryTransfer(
- transferId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ transferId: [transferId, string()] });
- req.appendTemplatePath`/v2/inventory/transfers/${mapped.transferId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveInventoryTransferResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves the current calculated stock count for a given
- * [CatalogObject]($m/CatalogObject) at a given set of
- * [Location]($m/Location)s. Responses are paginated and unsorted.
- * For more sophisticated queries, use a batch endpoint.
- *
- * @param catalogObjectId ID of the [CatalogObject](entity:CatalogObject) to retrieve.
- * @param locationIds The [Location](entity:Location) IDs to look up as a comma-separated list. An
- * empty list queries all locations.
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * to retrieve the next set of results for the original query. See the
- * [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination)
- * guide for more information.
- * @return Response from the API call
- */
- async retrieveInventoryCount(
- catalogObjectId: string,
- locationIds?: string,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- catalogObjectId: [catalogObjectId, string()],
- locationIds: [locationIds, optional(string())],
- cursor: [cursor, optional(string())],
- });
- req.query('location_ids', mapped.locationIds);
- req.query('cursor', mapped.cursor);
- req.appendTemplatePath`/v2/inventory/${mapped.catalogObjectId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveInventoryCountResponseSchema, requestOptions);
- }
-
- /**
- * Returns a set of physical counts and inventory adjustments for the
- * provided [CatalogObject](entity:CatalogObject) at the requested
- * [Location](entity:Location)s.
- *
- * You can achieve the same result by calling [BatchRetrieveInventoryChanges](api-endpoint:Inventory-
- * BatchRetrieveInventoryChanges)
- * and having the `catalog_object_ids` list contain a single element of the `CatalogObject` ID.
- *
- * Results are paginated and sorted in descending order according to their
- * `occurred_at` timestamp (newest first).
- *
- * There are no limits on how far back the caller can page. This endpoint can be
- * used to display recent changes for a specific item. For more
- * sophisticated queries, use a batch endpoint.
- *
- * @param catalogObjectId ID of the [CatalogObject](entity:CatalogObject) to retrieve.
- * @param locationIds The [Location](entity:Location) IDs to look up as a comma-separated list. An
- * empty list queries all locations.
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * to retrieve the next set of results for the original query. See the
- * [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination)
- * guide for more information.
- * @return Response from the API call
- * @deprecated
- */
- async retrieveInventoryChanges(
- catalogObjectId: string,
- locationIds?: string,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- catalogObjectId: [catalogObjectId, string()],
- locationIds: [locationIds, optional(string())],
- cursor: [cursor, optional(string())],
- });
- req.query('location_ids', mapped.locationIds);
- req.query('cursor', mapped.cursor);
- req.appendTemplatePath`/v2/inventory/${mapped.catalogObjectId}/changes`;
- req.deprecated('InventoryApi.retrieveInventoryChanges');
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveInventoryChangesResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/invoicesApi.ts b/src/api/invoicesApi.ts
deleted file mode 100644
index cba832fb7..000000000
--- a/src/api/invoicesApi.ts
+++ /dev/null
@@ -1,363 +0,0 @@
-import { ApiResponse, FileWrapper, RequestOptions } from '../core';
-import {
- CancelInvoiceRequest,
- cancelInvoiceRequestSchema,
-} from '../models/cancelInvoiceRequest';
-import {
- CancelInvoiceResponse,
- cancelInvoiceResponseSchema,
-} from '../models/cancelInvoiceResponse';
-import {
- CreateInvoiceAttachmentRequest,
- createInvoiceAttachmentRequestSchema,
-} from '../models/createInvoiceAttachmentRequest';
-import {
- CreateInvoiceAttachmentResponse,
- createInvoiceAttachmentResponseSchema,
-} from '../models/createInvoiceAttachmentResponse';
-import {
- CreateInvoiceRequest,
- createInvoiceRequestSchema,
-} from '../models/createInvoiceRequest';
-import {
- CreateInvoiceResponse,
- createInvoiceResponseSchema,
-} from '../models/createInvoiceResponse';
-import {
- DeleteInvoiceAttachmentResponse,
- deleteInvoiceAttachmentResponseSchema,
-} from '../models/deleteInvoiceAttachmentResponse';
-import {
- DeleteInvoiceResponse,
- deleteInvoiceResponseSchema,
-} from '../models/deleteInvoiceResponse';
-import {
- GetInvoiceResponse,
- getInvoiceResponseSchema,
-} from '../models/getInvoiceResponse';
-import {
- ListInvoicesResponse,
- listInvoicesResponseSchema,
-} from '../models/listInvoicesResponse';
-import {
- PublishInvoiceRequest,
- publishInvoiceRequestSchema,
-} from '../models/publishInvoiceRequest';
-import {
- PublishInvoiceResponse,
- publishInvoiceResponseSchema,
-} from '../models/publishInvoiceResponse';
-import {
- SearchInvoicesRequest,
- searchInvoicesRequestSchema,
-} from '../models/searchInvoicesRequest';
-import {
- SearchInvoicesResponse,
- searchInvoicesResponseSchema,
-} from '../models/searchInvoicesResponse';
-import {
- UpdateInvoiceRequest,
- updateInvoiceRequestSchema,
-} from '../models/updateInvoiceRequest';
-import {
- UpdateInvoiceResponse,
- updateInvoiceResponseSchema,
-} from '../models/updateInvoiceResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class InvoicesApi extends BaseApi {
- /**
- * Returns a list of invoices for a given location. The response
- * is paginated. If truncated, the response includes a `cursor` that you
- * use in a subsequent request to retrieve the next set of invoices.
- *
- * @param locationId The ID of the location for which to list invoices.
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * cursor to retrieve the next set of results for your original query. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-
- * api-patterns/pagination).
- * @param limit The maximum number of invoices to return (200 is the maximum `limit`). If not
- * provided, the server uses a default limit of 100 invoices.
- * @return Response from the API call
- */
- async listInvoices(
- locationId: string,
- cursor?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/invoices');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('location_id', mapped.locationId);
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listInvoicesResponseSchema, requestOptions);
- }
-
- /**
- * Creates a draft [invoice]($m/Invoice)
- * for an order created using the Orders API.
- *
- * A draft invoice remains in your account and no action is taken.
- * You must publish the invoice before Square can process it (send it to the customer's email address
- * or charge the customer’s card on file).
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createInvoice(
- body: CreateInvoiceRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/invoices');
- const mapped = req.prepareArgs({
- body: [body, createInvoiceRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createInvoiceResponseSchema, requestOptions);
- }
-
- /**
- * Searches for invoices from a location specified in
- * the filter. You can optionally specify customers in the filter for whom to
- * retrieve invoices. In the current implementation, you can only specify one location and
- * optionally one customer.
- *
- * The response is paginated. If truncated, the response includes a `cursor`
- * that you use in a subsequent request to retrieve the next set of invoices.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async searchInvoices(
- body: SearchInvoicesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/invoices/search');
- const mapped = req.prepareArgs({
- body: [body, searchInvoicesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchInvoicesResponseSchema, requestOptions);
- }
-
- /**
- * Deletes the specified invoice. When an invoice is deleted, the
- * associated order status changes to CANCELED. You can only delete a draft
- * invoice (you cannot delete a published invoice, including one that is scheduled for processing).
- *
- * @param invoiceId The ID of the invoice to delete.
- * @param version The version of the [invoice](entity:Invoice) to delete. If you do not know the
- * version, you can call [GetInvoice](api-endpoint:Invoices-GetInvoice) or
- * [ListInvoices](api-endpoint:Invoices-ListInvoices).
- * @return Response from the API call
- */
- async deleteInvoice(
- invoiceId: string,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- invoiceId: [invoiceId, string()],
- version: [version, optional(number())],
- });
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/invoices/${mapped.invoiceId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteInvoiceResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves an invoice by invoice ID.
- *
- * @param invoiceId The ID of the invoice to retrieve.
- * @return Response from the API call
- */
- async getInvoice(
- invoiceId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ invoiceId: [invoiceId, string()] });
- req.appendTemplatePath`/v2/invoices/${mapped.invoiceId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getInvoiceResponseSchema, requestOptions);
- }
-
- /**
- * Updates an invoice. This endpoint supports sparse updates, so you only need
- * to specify the fields you want to change along with the required `version` field.
- * Some restrictions apply to updating invoices. For example, you cannot change the
- * `order_id` or `location_id` field.
- *
- * @param invoiceId The ID of the invoice to update.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updateInvoice(
- invoiceId: string,
- body: UpdateInvoiceRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- invoiceId: [invoiceId, string()],
- body: [body, updateInvoiceRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/invoices/${mapped.invoiceId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateInvoiceResponseSchema, requestOptions);
- }
-
- /**
- * Uploads a file and attaches it to an invoice. This endpoint accepts HTTP multipart/form-data file
- * uploads
- * with a JSON `request` part and a `file` part. The `file` part must be a `readable stream` that
- * contains a file
- * in a supported format: GIF, JPEG, PNG, TIFF, BMP, or PDF.
- *
- * Invoices can have up to 10 attachments with a total file size of 25 MB. Attachments can be added
- * only to invoices
- * in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state.
- *
- * @param invoiceId The ID of the [invoice](entity:Invoice) to attach the
- * file to.
- * @param request Represents a
- * [CreateInvoiceAttachment]($e/Invoices/CreateInvoiceAtta
- * chment) request.
- * @param imageFile
- * @return Response from the API call
- */
- async createInvoiceAttachment(
- invoiceId: string,
- request?: CreateInvoiceAttachmentRequest,
- imageFile?: FileWrapper,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- invoiceId: [invoiceId, string()],
- request: [request, optional(createInvoiceAttachmentRequestSchema)],
- });
- req.formData({
- request: JSON.stringify(mapped.request),
- image_file: imageFile,
- });
- req.appendTemplatePath`/v2/invoices/${mapped.invoiceId}/attachments`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createInvoiceAttachmentResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Removes an attachment from an invoice and permanently deletes the file. Attachments can be removed
- * only
- * from invoices in the `DRAFT`, `SCHEDULED`, `UNPAID`, or `PARTIALLY_PAID` state.
- *
- * @param invoiceId The ID of the [invoice](entity:Invoice) to delete the attachment from.
- * @param attachmentId The ID of the [attachment](entity:InvoiceAttachment) to delete.
- * @return Response from the API call
- */
- async deleteInvoiceAttachment(
- invoiceId: string,
- attachmentId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- invoiceId: [invoiceId, string()],
- attachmentId: [attachmentId, string()],
- });
- req.appendTemplatePath`/v2/invoices/${mapped.invoiceId}/attachments/${mapped.attachmentId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteInvoiceAttachmentResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Cancels an invoice. The seller cannot collect payments for
- * the canceled invoice.
- *
- * You cannot cancel an invoice in the `DRAFT` state or in a terminal state: `PAID`, `REFUNDED`,
- * `CANCELED`, or `FAILED`.
- *
- * @param invoiceId The ID of the [invoice](entity:Invoice) to cancel.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async cancelInvoice(
- invoiceId: string,
- body: CancelInvoiceRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- invoiceId: [invoiceId, string()],
- body: [body, cancelInvoiceRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/invoices/${mapped.invoiceId}/cancel`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(cancelInvoiceResponseSchema, requestOptions);
- }
-
- /**
- * Publishes the specified draft invoice.
- *
- * After an invoice is published, Square
- * follows up based on the invoice configuration. For example, Square
- * sends the invoice to the customer's email address, charges the customer's card on file, or does
- * nothing. Square also makes the invoice available on a Square-hosted invoice page.
- *
- * The invoice `status` also changes from `DRAFT` to a status
- * based on the invoice configuration. For example, the status changes to `UNPAID` if
- * Square emails the invoice or `PARTIALLY_PAID` if Square charges a card on file for a portion of the
- * invoice amount.
- *
- * In addition to the required `ORDERS_WRITE` and `INVOICES_WRITE` permissions, `CUSTOMERS_READ`
- * and `PAYMENTS_WRITE` are required when publishing invoices configured for card-on-file payments.
- *
- * @param invoiceId The ID of the invoice to publish.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async publishInvoice(
- invoiceId: string,
- body: PublishInvoiceRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- invoiceId: [invoiceId, string()],
- body: [body, publishInvoiceRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/invoices/${mapped.invoiceId}/publish`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(publishInvoiceResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/laborApi.ts b/src/api/laborApi.ts
deleted file mode 100644
index f97c7b715..000000000
--- a/src/api/laborApi.ts
+++ /dev/null
@@ -1,495 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateBreakTypeRequest,
- createBreakTypeRequestSchema,
-} from '../models/createBreakTypeRequest';
-import {
- CreateBreakTypeResponse,
- createBreakTypeResponseSchema,
-} from '../models/createBreakTypeResponse';
-import {
- CreateShiftRequest,
- createShiftRequestSchema,
-} from '../models/createShiftRequest';
-import {
- CreateShiftResponse,
- createShiftResponseSchema,
-} from '../models/createShiftResponse';
-import {
- DeleteBreakTypeResponse,
- deleteBreakTypeResponseSchema,
-} from '../models/deleteBreakTypeResponse';
-import {
- DeleteShiftResponse,
- deleteShiftResponseSchema,
-} from '../models/deleteShiftResponse';
-import {
- GetBreakTypeResponse,
- getBreakTypeResponseSchema,
-} from '../models/getBreakTypeResponse';
-import {
- GetEmployeeWageResponse,
- getEmployeeWageResponseSchema,
-} from '../models/getEmployeeWageResponse';
-import {
- GetShiftResponse,
- getShiftResponseSchema,
-} from '../models/getShiftResponse';
-import {
- GetTeamMemberWageResponse,
- getTeamMemberWageResponseSchema,
-} from '../models/getTeamMemberWageResponse';
-import {
- ListBreakTypesResponse,
- listBreakTypesResponseSchema,
-} from '../models/listBreakTypesResponse';
-import {
- ListEmployeeWagesResponse,
- listEmployeeWagesResponseSchema,
-} from '../models/listEmployeeWagesResponse';
-import {
- ListTeamMemberWagesResponse,
- listTeamMemberWagesResponseSchema,
-} from '../models/listTeamMemberWagesResponse';
-import {
- ListWorkweekConfigsResponse,
- listWorkweekConfigsResponseSchema,
-} from '../models/listWorkweekConfigsResponse';
-import {
- SearchShiftsRequest,
- searchShiftsRequestSchema,
-} from '../models/searchShiftsRequest';
-import {
- SearchShiftsResponse,
- searchShiftsResponseSchema,
-} from '../models/searchShiftsResponse';
-import {
- UpdateBreakTypeRequest,
- updateBreakTypeRequestSchema,
-} from '../models/updateBreakTypeRequest';
-import {
- UpdateBreakTypeResponse,
- updateBreakTypeResponseSchema,
-} from '../models/updateBreakTypeResponse';
-import {
- UpdateShiftRequest,
- updateShiftRequestSchema,
-} from '../models/updateShiftRequest';
-import {
- UpdateShiftResponse,
- updateShiftResponseSchema,
-} from '../models/updateShiftResponse';
-import {
- UpdateWorkweekConfigRequest,
- updateWorkweekConfigRequestSchema,
-} from '../models/updateWorkweekConfigRequest';
-import {
- UpdateWorkweekConfigResponse,
- updateWorkweekConfigResponseSchema,
-} from '../models/updateWorkweekConfigResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class LaborApi extends BaseApi {
- /**
- * Returns a paginated list of `BreakType` instances for a business.
- *
- * @param locationId Filter the returned `BreakType` results to only those that are associated with the
- * specified location.
- * @param limit The maximum number of `BreakType` results to return per page. The number can range
- * between 1 and 200. The default is 200.
- * @param cursor A pointer to the next page of `BreakType` results to fetch.
- * @return Response from the API call
- */
- async listBreakTypes(
- locationId?: string,
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/labor/break-types');
- const mapped = req.prepareArgs({
- locationId: [locationId, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('location_id', mapped.locationId);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listBreakTypesResponseSchema, requestOptions);
- }
-
- /**
- * Creates a new `BreakType`.
- *
- * A `BreakType` is a template for creating `Break` objects.
- * You must provide the following values in your request to this
- * endpoint:
- *
- * - `location_id`
- * - `break_name`
- * - `expected_duration`
- * - `is_paid`
- *
- * You can only have three `BreakType` instances per location. If you attempt to add a fourth
- * `BreakType` for a location, an `INVALID_REQUEST_ERROR` "Exceeded limit of 3 breaks per location."
- * is returned.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createBreakType(
- body: CreateBreakTypeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/labor/break-types');
- const mapped = req.prepareArgs({
- body: [body, createBreakTypeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createBreakTypeResponseSchema, requestOptions);
- }
-
- /**
- * Deletes an existing `BreakType`.
- *
- * A `BreakType` can be deleted even if it is referenced from a `Shift`.
- *
- * @param id The UUID for the `BreakType` being deleted.
- * @return Response from the API call
- */
- async deleteBreakType(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/labor/break-types/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteBreakTypeResponseSchema, requestOptions);
- }
-
- /**
- * Returns a single `BreakType` specified by `id`.
- *
- * @param id The UUID for the `BreakType` being retrieved.
- * @return Response from the API call
- */
- async getBreakType(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/labor/break-types/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getBreakTypeResponseSchema, requestOptions);
- }
-
- /**
- * Updates an existing `BreakType`.
- *
- * @param id The UUID for the `BreakType` being updated.
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updateBreakType(
- id: string,
- body: UpdateBreakTypeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- id: [id, string()],
- body: [body, updateBreakTypeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/labor/break-types/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateBreakTypeResponseSchema, requestOptions);
- }
-
- /**
- * Returns a paginated list of `EmployeeWage` instances for a business.
- *
- * @param employeeId Filter the returned wages to only those that are associated with the specified
- * employee.
- * @param limit The maximum number of `EmployeeWage` results to return per page. The number can
- * range between 1 and 200. The default is 200.
- * @param cursor A pointer to the next page of `EmployeeWage` results to fetch.
- * @return Response from the API call
- * @deprecated
- */
- async listEmployeeWages(
- employeeId?: string,
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/labor/employee-wages');
- const mapped = req.prepareArgs({
- employeeId: [employeeId, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('employee_id', mapped.employeeId);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.deprecated('LaborApi.listEmployeeWages');
- req.authenticate([{ global: true }]);
- return req.callAsJson(listEmployeeWagesResponseSchema, requestOptions);
- }
-
- /**
- * Returns a single `EmployeeWage` specified by `id`.
- *
- * @param id The UUID for the `EmployeeWage` being retrieved.
- * @return Response from the API call
- * @deprecated
- */
- async getEmployeeWage(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/labor/employee-wages/${mapped.id}`;
- req.deprecated('LaborApi.getEmployeeWage');
- req.authenticate([{ global: true }]);
- return req.callAsJson(getEmployeeWageResponseSchema, requestOptions);
- }
-
- /**
- * Creates a new `Shift`.
- *
- * A `Shift` represents a complete workday for a single team member.
- * You must provide the following values in your request to this
- * endpoint:
- *
- * - `location_id`
- * - `team_member_id`
- * - `start_at`
- *
- * An attempt to create a new `Shift` can result in a `BAD_REQUEST` error when:
- * - The `status` of the new `Shift` is `OPEN` and the team member has another
- * shift with an `OPEN` status.
- * - The `start_at` date is in the future.
- * - The `start_at` or `end_at` date overlaps another shift for the same team member.
- * - The `Break` instances are set in the request and a break `start_at`
- * is before the `Shift.start_at`, a break `end_at` is after
- * the `Shift.end_at`, or both.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createShift(
- body: CreateShiftRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/labor/shifts');
- const mapped = req.prepareArgs({ body: [body, createShiftRequestSchema] });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createShiftResponseSchema, requestOptions);
- }
-
- /**
- * Returns a paginated list of `Shift` records for a business.
- * The list to be returned can be filtered by:
- * - Location IDs
- * - Team member IDs
- * - Shift status (`OPEN` or `CLOSED`)
- * - Shift start
- * - Shift end
- * - Workday details
- *
- * The list can be sorted by:
- * - `START_AT`
- * - `END_AT`
- * - `CREATED_AT`
- * - `UPDATED_AT`
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async searchShifts(
- body: SearchShiftsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/labor/shifts/search');
- const mapped = req.prepareArgs({ body: [body, searchShiftsRequestSchema] });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchShiftsResponseSchema, requestOptions);
- }
-
- /**
- * Deletes a `Shift`.
- *
- * @param id The UUID for the `Shift` being deleted.
- * @return Response from the API call
- */
- async deleteShift(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/labor/shifts/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteShiftResponseSchema, requestOptions);
- }
-
- /**
- * Returns a single `Shift` specified by `id`.
- *
- * @param id The UUID for the `Shift` being retrieved.
- * @return Response from the API call
- */
- async getShift(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/labor/shifts/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getShiftResponseSchema, requestOptions);
- }
-
- /**
- * Updates an existing `Shift`.
- *
- * When adding a `Break` to a `Shift`, any earlier `Break` instances in the `Shift` have
- * the `end_at` property set to a valid RFC-3339 datetime string.
- *
- * When closing a `Shift`, all `Break` instances in the `Shift` must be complete with `end_at`
- * set on each `Break`.
- *
- * @param id The ID of the object being updated.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updateShift(
- id: string,
- body: UpdateShiftRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- id: [id, string()],
- body: [body, updateShiftRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/labor/shifts/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateShiftResponseSchema, requestOptions);
- }
-
- /**
- * Returns a paginated list of `TeamMemberWage` instances for a business.
- *
- * @param teamMemberId Filter the returned wages to only those that are associated with the specified
- * team member.
- * @param limit The maximum number of `TeamMemberWage` results to return per page. The number can
- * range between 1 and 200. The default is 200.
- * @param cursor A pointer to the next page of `EmployeeWage` results to fetch.
- * @return Response from the API call
- */
- async listTeamMemberWages(
- teamMemberId?: string,
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/labor/team-member-wages');
- const mapped = req.prepareArgs({
- teamMemberId: [teamMemberId, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('team_member_id', mapped.teamMemberId);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listTeamMemberWagesResponseSchema, requestOptions);
- }
-
- /**
- * Returns a single `TeamMemberWage` specified by `id`.
- *
- * @param id The UUID for the `TeamMemberWage` being retrieved.
- * @return Response from the API call
- */
- async getTeamMemberWage(
- id: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ id: [id, string()] });
- req.appendTemplatePath`/v2/labor/team-member-wages/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getTeamMemberWageResponseSchema, requestOptions);
- }
-
- /**
- * Returns a list of `WorkweekConfig` instances for a business.
- *
- * @param limit The maximum number of `WorkweekConfigs` results to return per page.
- * @param cursor A pointer to the next page of `WorkweekConfig` results to fetch.
- * @return Response from the API call
- */
- async listWorkweekConfigs(
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/labor/workweek-configs');
- const mapped = req.prepareArgs({
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listWorkweekConfigsResponseSchema, requestOptions);
- }
-
- /**
- * Updates a `WorkweekConfig`.
- *
- * @param id The UUID for the `WorkweekConfig` object being updated.
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async updateWorkweekConfig(
- id: string,
- body: UpdateWorkweekConfigRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- id: [id, string()],
- body: [body, updateWorkweekConfigRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/labor/workweek-configs/${mapped.id}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateWorkweekConfigResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/locationCustomAttributesApi.ts b/src/api/locationCustomAttributesApi.ts
deleted file mode 100644
index 4f2621c64..000000000
--- a/src/api/locationCustomAttributesApi.ts
+++ /dev/null
@@ -1,486 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- BulkDeleteLocationCustomAttributesRequest,
- bulkDeleteLocationCustomAttributesRequestSchema,
-} from '../models/bulkDeleteLocationCustomAttributesRequest';
-import {
- BulkDeleteLocationCustomAttributesResponse,
- bulkDeleteLocationCustomAttributesResponseSchema,
-} from '../models/bulkDeleteLocationCustomAttributesResponse';
-import {
- BulkUpsertLocationCustomAttributesRequest,
- bulkUpsertLocationCustomAttributesRequestSchema,
-} from '../models/bulkUpsertLocationCustomAttributesRequest';
-import {
- BulkUpsertLocationCustomAttributesResponse,
- bulkUpsertLocationCustomAttributesResponseSchema,
-} from '../models/bulkUpsertLocationCustomAttributesResponse';
-import {
- CreateLocationCustomAttributeDefinitionRequest,
- createLocationCustomAttributeDefinitionRequestSchema,
-} from '../models/createLocationCustomAttributeDefinitionRequest';
-import {
- CreateLocationCustomAttributeDefinitionResponse,
- createLocationCustomAttributeDefinitionResponseSchema,
-} from '../models/createLocationCustomAttributeDefinitionResponse';
-import {
- DeleteLocationCustomAttributeDefinitionResponse,
- deleteLocationCustomAttributeDefinitionResponseSchema,
-} from '../models/deleteLocationCustomAttributeDefinitionResponse';
-import {
- DeleteLocationCustomAttributeResponse,
- deleteLocationCustomAttributeResponseSchema,
-} from '../models/deleteLocationCustomAttributeResponse';
-import {
- ListLocationCustomAttributeDefinitionsResponse,
- listLocationCustomAttributeDefinitionsResponseSchema,
-} from '../models/listLocationCustomAttributeDefinitionsResponse';
-import {
- ListLocationCustomAttributesResponse,
- listLocationCustomAttributesResponseSchema,
-} from '../models/listLocationCustomAttributesResponse';
-import {
- RetrieveLocationCustomAttributeDefinitionResponse,
- retrieveLocationCustomAttributeDefinitionResponseSchema,
-} from '../models/retrieveLocationCustomAttributeDefinitionResponse';
-import {
- RetrieveLocationCustomAttributeResponse,
- retrieveLocationCustomAttributeResponseSchema,
-} from '../models/retrieveLocationCustomAttributeResponse';
-import {
- UpdateLocationCustomAttributeDefinitionRequest,
- updateLocationCustomAttributeDefinitionRequestSchema,
-} from '../models/updateLocationCustomAttributeDefinitionRequest';
-import {
- UpdateLocationCustomAttributeDefinitionResponse,
- updateLocationCustomAttributeDefinitionResponseSchema,
-} from '../models/updateLocationCustomAttributeDefinitionResponse';
-import {
- UpsertLocationCustomAttributeRequest,
- upsertLocationCustomAttributeRequestSchema,
-} from '../models/upsertLocationCustomAttributeRequest';
-import {
- UpsertLocationCustomAttributeResponse,
- upsertLocationCustomAttributeResponseSchema,
-} from '../models/upsertLocationCustomAttributeResponse';
-import { boolean, number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class LocationCustomAttributesApi extends BaseApi {
- /**
- * Lists the location-related [custom attribute definitions]($m/CustomAttributeDefinition) that belong
- * to a Square seller account.
- * When all response pages are retrieved, the results include all custom attribute definitions
- * that are visible to the requesting application, including those that are created by other
- * applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param visibilityFilter Filters the `CustomAttributeDefinition` results by their `visibility` values.
- * @param limit The maximum number of results to return in a single paged response. This limit
- * is advisory. The response might contain more or fewer results. The minimum
- * value is 1 and the maximum value is 100. The default value is 20. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/pagination).
- * @param cursor The cursor returned in the paged response from the previous call to this
- * endpoint. Provide this cursor to retrieve the next page of results for your
- * original request. For more information, see [Pagination](https://developer.
- * squareup.com/docs/build-basics/common-api-patterns/pagination).
- * @return Response from the API call
- */
- async listLocationCustomAttributeDefinitions(
- visibilityFilter?: string,
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/locations/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- visibilityFilter: [visibilityFilter, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('visibility_filter', mapped.visibilityFilter);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listLocationCustomAttributeDefinitionsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates a location-related [custom attribute definition]($m/CustomAttributeDefinition) for a Square
- * seller account.
- * Use this endpoint to define a custom attribute that can be associated with locations.
- * A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties
- * for a custom attribute. After the definition is created, you can call
- * [UpsertLocationCustomAttribute]($e/LocationCustomAttributes/UpsertLocationCustomAttribute) or
- * [BulkUpsertLocationCustomAttributes]($e/LocationCustomAttributes/BulkUpsertLocationCustomAttributes)
- * to set the custom attribute for locations.
- *
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async createLocationCustomAttributeDefinition(
- body: CreateLocationCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/locations/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- body: [body, createLocationCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createLocationCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a location-related [custom attribute definition]($m/CustomAttributeDefinition) from a Square
- * seller account.
- * Deleting a custom attribute definition also deletes the corresponding custom attribute from
- * all locations.
- * Only the definition owner can delete a custom attribute definition.
- *
- * @param key The key of the custom attribute definition to delete.
- * @return Response from the API call
- */
- async deleteLocationCustomAttributeDefinition(
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ key: [key, string()] });
- req.appendTemplatePath`/v2/locations/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteLocationCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a location-related [custom attribute definition]($m/CustomAttributeDefinition) from a
- * Square seller account.
- * To retrieve a custom attribute definition created by another application, the `visibility`
- * setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param key The key of the custom attribute definition to retrieve. If the requesting application is
- * not the definition owner, you must use the qualified key.
- * @param version The current version of the custom attribute definition, which is used for strongly
- * consistent reads to guarantee that you receive the most up-to-date data. When included in
- * the request, Square returns the specified version or a higher version if one exists. If
- * the specified version is higher than the current version, Square returns a `BAD_REQUEST`
- * error.
- * @return Response from the API call
- */
- async retrieveLocationCustomAttributeDefinition(
- key: string,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- key: [key, string()],
- version: [version, optional(number())],
- });
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/locations/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveLocationCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Updates a location-related [custom attribute definition]($m/CustomAttributeDefinition) for a Square
- * seller account.
- * Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the
- * `schema` for a `Selection` data type.
- * Only the definition owner can update a custom attribute definition.
- *
- * @param key The key of the custom attribute
- * definition to update.
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async updateLocationCustomAttributeDefinition(
- key: string,
- body: UpdateLocationCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- key: [key, string()],
- body: [body, updateLocationCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/locations/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- updateLocationCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes [custom attributes]($m/CustomAttribute) for locations as a bulk operation.
- * To delete a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async bulkDeleteLocationCustomAttributes(
- body: BulkDeleteLocationCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/locations/custom-attributes/bulk-delete'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkDeleteLocationCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkDeleteLocationCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates [custom attributes]($m/CustomAttribute) for locations as a bulk operation.
- * Use this endpoint to set the value of one or more custom attributes for one or more locations.
- * A custom attribute is based on a custom attribute definition in a Square seller account, which is
- * created using the
- * [CreateLocationCustomAttributeDefinition]($e/LocationCustomAttributes/CreateLocationCustomAttributeD
- * efinition) endpoint.
- * This `BulkUpsertLocationCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert
- * requests and returns a map of individual upsert responses. Each upsert request has a unique ID
- * and provides a location ID and custom attribute. Each upsert response is returned with the ID
- * of the corresponding request.
- * To create or update a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async bulkUpsertLocationCustomAttributes(
- body: BulkUpsertLocationCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/locations/custom-attributes/bulk-upsert'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkUpsertLocationCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkUpsertLocationCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Lists the [custom attributes]($m/CustomAttribute) associated with a location.
- * You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
- * in the same call.
- * When all response pages are retrieved, the results include all custom attributes that are
- * visible to the requesting application, including those that are owned by other applications
- * and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param locationId The ID of the target [location](entity:Location).
- * @param visibilityFilter Filters the `CustomAttributeDefinition` results by their `visibility` values.
- * @param limit The maximum number of results to return in a single paged response. This
- * limit is advisory. The response might contain more or fewer results. The
- * minimum value is 1 and the maximum value is 100. The default value is 20. For
- * more information, see [Pagination](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/pagination).
- * @param cursor The cursor returned in the paged response from the previous call to this
- * endpoint. Provide this cursor to retrieve the next page of results for your
- * original request. For more information, see [Pagination](https://developer.
- * squareup.com/docs/build-basics/common-api-patterns/pagination).
- * @param withDefinitions Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of each custom attribute.
- * Set this parameter to `true` to get the name and description of each custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @return Response from the API call
- */
- async listLocationCustomAttributes(
- locationId: string,
- visibilityFilter?: string,
- limit?: number,
- cursor?: string,
- withDefinitions?: boolean,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- visibilityFilter: [visibilityFilter, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- withDefinitions: [withDefinitions, optional(boolean())],
- });
- req.query('visibility_filter', mapped.visibilityFilter);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.query('with_definitions', mapped.withDefinitions);
- req.appendTemplatePath`/v2/locations/${mapped.locationId}/custom-attributes`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listLocationCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a [custom attribute]($m/CustomAttribute) associated with a location.
- * To delete a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param locationId The ID of the target [location](entity:Location).
- * @param key The key of the custom attribute to delete. This key must match the `key` of a custom
- * attribute definition in the Square seller account. If the requesting application is
- * not the definition owner, you must use the qualified key.
- * @return Response from the API call
- */
- async deleteLocationCustomAttribute(
- locationId: string,
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- key: [key, string()],
- });
- req.appendTemplatePath`/v2/locations/${mapped.locationId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteLocationCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a [custom attribute]($m/CustomAttribute) associated with a location.
- * You can use the `with_definition` query parameter to also retrieve the custom attribute definition
- * in the same call.
- * To retrieve a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param locationId The ID of the target [location](entity:Location).
- * @param key The key of the custom attribute to retrieve. This key must match the `key` of a
- * custom attribute definition in the Square seller account. If the requesting
- * application is not the definition owner, you must use the qualified key.
- * @param withDefinition Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of the custom attribute.
- * Set this parameter to `true` to get the name and description of the custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @param version The current version of the custom attribute, which is used for strongly
- * consistent reads to guarantee that you receive the most up-to-date data. When
- * included in the request, Square returns the specified version or a higher
- * version if one exists. If the specified version is higher than the current
- * version, Square returns a `BAD_REQUEST` error.
- * @return Response from the API call
- */
- async retrieveLocationCustomAttribute(
- locationId: string,
- key: string,
- withDefinition?: boolean,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- key: [key, string()],
- withDefinition: [withDefinition, optional(boolean())],
- version: [version, optional(number())],
- });
- req.query('with_definition', mapped.withDefinition);
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/locations/${mapped.locationId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveLocationCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates a [custom attribute]($m/CustomAttribute) for a location.
- * Use this endpoint to set the value of a custom attribute for a specified location.
- * A custom attribute is based on a custom attribute definition in a Square seller account, which
- * is created using the
- * [CreateLocationCustomAttributeDefinition]($e/LocationCustomAttributes/CreateLocationCustomAttributeD
- * efinition) endpoint.
- * To create or update a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param locationId The ID of the target [location](entity:
- * Location).
- * @param key The key of the custom attribute to create or
- * update. This key must match the `key` of a
- * custom attribute definition in the Square
- * seller account. If the requesting application
- * is not the definition owner, you must use the
- * qualified key.
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async upsertLocationCustomAttribute(
- locationId: string,
- key: string,
- body: UpsertLocationCustomAttributeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- key: [key, string()],
- body: [body, upsertLocationCustomAttributeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/locations/${mapped.locationId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- upsertLocationCustomAttributeResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/locationsApi.ts b/src/api/locationsApi.ts
deleted file mode 100644
index b704fe207..000000000
--- a/src/api/locationsApi.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateLocationRequest,
- createLocationRequestSchema,
-} from '../models/createLocationRequest';
-import {
- CreateLocationResponse,
- createLocationResponseSchema,
-} from '../models/createLocationResponse';
-import {
- ListLocationsResponse,
- listLocationsResponseSchema,
-} from '../models/listLocationsResponse';
-import {
- RetrieveLocationResponse,
- retrieveLocationResponseSchema,
-} from '../models/retrieveLocationResponse';
-import {
- UpdateLocationRequest,
- updateLocationRequestSchema,
-} from '../models/updateLocationRequest';
-import {
- UpdateLocationResponse,
- updateLocationResponseSchema,
-} from '../models/updateLocationResponse';
-import { string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class LocationsApi extends BaseApi {
- /**
- * Provides details about all of the seller's [locations](https://developer.squareup.com/docs/locations-
- * api),
- * including those with an inactive status. Locations are listed alphabetically by `name`.
- *
- * @return Response from the API call
- */
- async listLocations(
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/locations');
- req.authenticate([{ global: true }]);
- return req.callAsJson(listLocationsResponseSchema, requestOptions);
- }
-
- /**
- * Creates a [location](https://developer.squareup.com/docs/locations-api).
- * Creating new locations allows for separate configuration of receipt layouts, item prices,
- * and sales reports. Developers can use locations to separate sales activity through applications
- * that integrate with Square from sales activity elsewhere in a seller's account.
- * Locations created programmatically with the Locations API last forever and
- * are visible to the seller for their own management. Therefore, ensure that
- * each location has a sensible and unique name.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createLocation(
- body: CreateLocationRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/locations');
- const mapped = req.prepareArgs({
- body: [body, createLocationRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createLocationResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves details of a single location. Specify "main"
- * as the location ID to retrieve details of the [main location](https://developer.squareup.
- * com/docs/locations-api#about-the-main-location).
- *
- * @param locationId The ID of the location to retrieve. Specify the string "main" to return the main
- * location.
- * @return Response from the API call
- */
- async retrieveLocation(
- locationId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ locationId: [locationId, string()] });
- req.appendTemplatePath`/v2/locations/${mapped.locationId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveLocationResponseSchema, requestOptions);
- }
-
- /**
- * Updates a [location](https://developer.squareup.com/docs/locations-api).
- *
- * @param locationId The ID of the location to update.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updateLocation(
- locationId: string,
- body: UpdateLocationRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- locationId: [locationId, string()],
- body: [body, updateLocationRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/locations/${mapped.locationId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateLocationResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/loyaltyApi.ts b/src/api/loyaltyApi.ts
deleted file mode 100644
index a3018a861..000000000
--- a/src/api/loyaltyApi.ts
+++ /dev/null
@@ -1,656 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- AccumulateLoyaltyPointsRequest,
- accumulateLoyaltyPointsRequestSchema,
-} from '../models/accumulateLoyaltyPointsRequest';
-import {
- AccumulateLoyaltyPointsResponse,
- accumulateLoyaltyPointsResponseSchema,
-} from '../models/accumulateLoyaltyPointsResponse';
-import {
- AdjustLoyaltyPointsRequest,
- adjustLoyaltyPointsRequestSchema,
-} from '../models/adjustLoyaltyPointsRequest';
-import {
- AdjustLoyaltyPointsResponse,
- adjustLoyaltyPointsResponseSchema,
-} from '../models/adjustLoyaltyPointsResponse';
-import {
- CalculateLoyaltyPointsRequest,
- calculateLoyaltyPointsRequestSchema,
-} from '../models/calculateLoyaltyPointsRequest';
-import {
- CalculateLoyaltyPointsResponse,
- calculateLoyaltyPointsResponseSchema,
-} from '../models/calculateLoyaltyPointsResponse';
-import {
- CancelLoyaltyPromotionResponse,
- cancelLoyaltyPromotionResponseSchema,
-} from '../models/cancelLoyaltyPromotionResponse';
-import {
- CreateLoyaltyAccountRequest,
- createLoyaltyAccountRequestSchema,
-} from '../models/createLoyaltyAccountRequest';
-import {
- CreateLoyaltyAccountResponse,
- createLoyaltyAccountResponseSchema,
-} from '../models/createLoyaltyAccountResponse';
-import {
- CreateLoyaltyPromotionRequest,
- createLoyaltyPromotionRequestSchema,
-} from '../models/createLoyaltyPromotionRequest';
-import {
- CreateLoyaltyPromotionResponse,
- createLoyaltyPromotionResponseSchema,
-} from '../models/createLoyaltyPromotionResponse';
-import {
- CreateLoyaltyRewardRequest,
- createLoyaltyRewardRequestSchema,
-} from '../models/createLoyaltyRewardRequest';
-import {
- CreateLoyaltyRewardResponse,
- createLoyaltyRewardResponseSchema,
-} from '../models/createLoyaltyRewardResponse';
-import {
- DeleteLoyaltyRewardResponse,
- deleteLoyaltyRewardResponseSchema,
-} from '../models/deleteLoyaltyRewardResponse';
-import {
- ListLoyaltyProgramsResponse,
- listLoyaltyProgramsResponseSchema,
-} from '../models/listLoyaltyProgramsResponse';
-import {
- ListLoyaltyPromotionsResponse,
- listLoyaltyPromotionsResponseSchema,
-} from '../models/listLoyaltyPromotionsResponse';
-import {
- RedeemLoyaltyRewardRequest,
- redeemLoyaltyRewardRequestSchema,
-} from '../models/redeemLoyaltyRewardRequest';
-import {
- RedeemLoyaltyRewardResponse,
- redeemLoyaltyRewardResponseSchema,
-} from '../models/redeemLoyaltyRewardResponse';
-import {
- RetrieveLoyaltyAccountResponse,
- retrieveLoyaltyAccountResponseSchema,
-} from '../models/retrieveLoyaltyAccountResponse';
-import {
- RetrieveLoyaltyProgramResponse,
- retrieveLoyaltyProgramResponseSchema,
-} from '../models/retrieveLoyaltyProgramResponse';
-import {
- RetrieveLoyaltyPromotionResponse,
- retrieveLoyaltyPromotionResponseSchema,
-} from '../models/retrieveLoyaltyPromotionResponse';
-import {
- RetrieveLoyaltyRewardResponse,
- retrieveLoyaltyRewardResponseSchema,
-} from '../models/retrieveLoyaltyRewardResponse';
-import {
- SearchLoyaltyAccountsRequest,
- searchLoyaltyAccountsRequestSchema,
-} from '../models/searchLoyaltyAccountsRequest';
-import {
- SearchLoyaltyAccountsResponse,
- searchLoyaltyAccountsResponseSchema,
-} from '../models/searchLoyaltyAccountsResponse';
-import {
- SearchLoyaltyEventsRequest,
- searchLoyaltyEventsRequestSchema,
-} from '../models/searchLoyaltyEventsRequest';
-import {
- SearchLoyaltyEventsResponse,
- searchLoyaltyEventsResponseSchema,
-} from '../models/searchLoyaltyEventsResponse';
-import {
- SearchLoyaltyRewardsRequest,
- searchLoyaltyRewardsRequestSchema,
-} from '../models/searchLoyaltyRewardsRequest';
-import {
- SearchLoyaltyRewardsResponse,
- searchLoyaltyRewardsResponseSchema,
-} from '../models/searchLoyaltyRewardsResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class LoyaltyApi extends BaseApi {
- /**
- * Creates a loyalty account. To create a loyalty account, you must provide the `program_id` and a
- * `mapping` with the `phone_number` of the buyer.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async createLoyaltyAccount(
- body: CreateLoyaltyAccountRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/loyalty/accounts');
- const mapped = req.prepareArgs({
- body: [body, createLoyaltyAccountRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createLoyaltyAccountResponseSchema, requestOptions);
- }
-
- /**
- * Searches for loyalty accounts in a loyalty program.
- *
- * You can search for a loyalty account using the phone number or customer ID associated with the
- * account. To return all loyalty accounts, specify an empty `query` object or omit it entirely.
- *
- * Search results are sorted by `created_at` in ascending order.
- *
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async searchLoyaltyAccounts(
- body: SearchLoyaltyAccountsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/loyalty/accounts/search');
- const mapped = req.prepareArgs({
- body: [body, searchLoyaltyAccountsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchLoyaltyAccountsResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a loyalty account.
- *
- * @param accountId The ID of the [loyalty account](entity:LoyaltyAccount) to retrieve.
- * @return Response from the API call
- */
- async retrieveLoyaltyAccount(
- accountId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ accountId: [accountId, string()] });
- req.appendTemplatePath`/v2/loyalty/accounts/${mapped.accountId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveLoyaltyAccountResponseSchema, requestOptions);
- }
-
- /**
- * Adds points earned from a purchase to a [loyalty account]($m/LoyaltyAccount).
- *
- * - If you are using the Orders API to manage orders, provide the `order_id`. Square reads the order
- * to compute the points earned from both the base loyalty program and an associated
- * [loyalty promotion]($m/LoyaltyPromotion). For purchases that qualify for multiple accrual
- * rules, Square computes points based on the accrual rule that grants the most points.
- * For purchases that qualify for multiple promotions, Square computes points based on the most
- * recently created promotion. A purchase must first qualify for program points to be eligible for
- * promotion points.
- *
- * - If you are not using the Orders API to manage orders, provide `points` with the number of points
- * to add.
- * You must first perform a client-side computation of the points earned from the loyalty program and
- * loyalty promotion. For spend-based and visit-based programs, you can call
- * [CalculateLoyaltyPoints]($e/Loyalty/CalculateLoyaltyPoints)
- * to compute the points earned from the base loyalty program. For information about computing points
- * earned from a loyalty promotion, see
- * [Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-
- * promotions#calculate-promotion-points).
- *
- * @param accountId The ID of the target [loyalty account](entity:
- * LoyaltyAccount).
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async accumulateLoyaltyPoints(
- accountId: string,
- body: AccumulateLoyaltyPointsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- accountId: [accountId, string()],
- body: [body, accumulateLoyaltyPointsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/loyalty/accounts/${mapped.accountId}/accumulate`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- accumulateLoyaltyPointsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Adds points to or subtracts points from a buyer's account.
- *
- * Use this endpoint only when you need to manually adjust points. Otherwise, in your application flow,
- * you call
- * [AccumulateLoyaltyPoints]($e/Loyalty/AccumulateLoyaltyPoints)
- * to add points when a buyer pays for the purchase.
- *
- * @param accountId The ID of the target [loyalty account](entity:
- * LoyaltyAccount).
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async adjustLoyaltyPoints(
- accountId: string,
- body: AdjustLoyaltyPointsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- accountId: [accountId, string()],
- body: [body, adjustLoyaltyPointsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/loyalty/accounts/${mapped.accountId}/adjust`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(adjustLoyaltyPointsResponseSchema, requestOptions);
- }
-
- /**
- * Searches for loyalty events.
- *
- * A Square loyalty program maintains a ledger of events that occur during the lifetime of a
- * buyer's loyalty account. Each change in the point balance
- * (for example, points earned, points redeemed, and points expired) is
- * recorded in the ledger. Using this endpoint, you can search the ledger for events.
- *
- * Search results are sorted by `created_at` in descending order.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async searchLoyaltyEvents(
- body: SearchLoyaltyEventsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/loyalty/events/search');
- const mapped = req.prepareArgs({
- body: [body, searchLoyaltyEventsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchLoyaltyEventsResponseSchema, requestOptions);
- }
-
- /**
- * Returns a list of loyalty programs in the seller's account.
- * Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can
- * have only one loyalty program, which is created and managed from the Seller Dashboard. For more
- * information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview).
- *
- *
- * Replaced with [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) when used with
- * the keyword `main`.
- *
- * @return Response from the API call
- * @deprecated
- */
- async listLoyaltyPrograms(
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/loyalty/programs');
- req.deprecated('LoyaltyApi.listLoyaltyPrograms');
- req.authenticate([{ global: true }]);
- return req.callAsJson(listLoyaltyProgramsResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves the loyalty program in a seller's account, specified by the program ID or the keyword
- * `main`.
- *
- * Loyalty programs define how buyers can earn points and redeem points for rewards. Square sellers can
- * have only one loyalty program, which is created and managed from the Seller Dashboard. For more
- * information, see [Loyalty Program Overview](https://developer.squareup.com/docs/loyalty/overview).
- *
- * @param programId The ID of the loyalty program or the keyword `main`. Either value can be used to
- * retrieve the single loyalty program that belongs to the seller.
- * @return Response from the API call
- */
- async retrieveLoyaltyProgram(
- programId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ programId: [programId, string()] });
- req.appendTemplatePath`/v2/loyalty/programs/${mapped.programId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveLoyaltyProgramResponseSchema, requestOptions);
- }
-
- /**
- * Calculates the number of points a buyer can earn from a purchase. Applications might call this
- * endpoint
- * to display the points to the buyer.
- *
- * - If you are using the Orders API to manage orders, provide the `order_id` and (optional)
- * `loyalty_account_id`.
- * Square reads the order to compute the points earned from the base loyalty program and an associated
- * [loyalty promotion]($m/LoyaltyPromotion).
- *
- * - If you are not using the Orders API to manage orders, provide `transaction_amount_money` with the
- * purchase amount. Square uses this amount to calculate the points earned from the base loyalty
- * program,
- * but not points earned from a loyalty promotion. For spend-based and visit-based programs, the
- * `tax_mode`
- * setting of the accrual rule indicates how taxes should be treated for loyalty points accrual.
- * If the purchase qualifies for program points, call
- * [ListLoyaltyPromotions]($e/Loyalty/ListLoyaltyPromotions) and perform a client-side computation
- * to calculate whether the purchase also qualifies for promotion points. For more information, see
- * [Calculating promotion points](https://developer.squareup.com/docs/loyalty-api/loyalty-
- * promotions#calculate-promotion-points).
- *
- * @param programId The ID of the [loyalty program](entity:
- * LoyaltyProgram), which defines the rules for accruing
- * points.
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async calculateLoyaltyPoints(
- programId: string,
- body: CalculateLoyaltyPointsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- programId: [programId, string()],
- body: [body, calculateLoyaltyPointsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/loyalty/programs/${mapped.programId}/calculate`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(calculateLoyaltyPointsResponseSchema, requestOptions);
- }
-
- /**
- * Lists the loyalty promotions associated with a [loyalty program]($m/LoyaltyProgram).
- * Results are sorted by the `created_at` date in descending order (newest to oldest).
- *
- * @param programId The ID of the base [loyalty program](entity:LoyaltyProgram). To get the program ID,
- * call [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) using the
- * `main` keyword.
- * @param status The status to filter the results by. If a status is provided, only loyalty promotions
- * with the specified status are returned. Otherwise, all loyalty promotions associated
- * with the loyalty program are returned.
- * @param cursor The cursor returned in the paged response from the previous call to this endpoint.
- * Provide this cursor to retrieve the next page of results for your original request.
- * For more information, see [Pagination](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/pagination).
- * @param limit The maximum number of results to return in a single paged response. The minimum value
- * is 1 and the maximum value is 30. The default value is 30. For more information, see
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination).
- * @return Response from the API call
- */
- async listLoyaltyPromotions(
- programId: string,
- status?: string,
- cursor?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- programId: [programId, string()],
- status: [status, optional(string())],
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('status', mapped.status);
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.appendTemplatePath`/v2/loyalty/programs/${mapped.programId}/promotions`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(listLoyaltyPromotionsResponseSchema, requestOptions);
- }
-
- /**
- * Creates a loyalty promotion for a [loyalty program]($m/LoyaltyProgram). A loyalty promotion
- * enables buyers to earn points in addition to those earned from the base loyalty program.
- *
- * This endpoint sets the loyalty promotion to the `ACTIVE` or `SCHEDULED` status, depending on the
- * `available_time` setting. A loyalty program can have a maximum of 10 loyalty promotions with an
- * `ACTIVE` or `SCHEDULED` status.
- *
- * @param programId The ID of the [loyalty program](entity:
- * LoyaltyProgram) to associate with the promotion. To
- * get the program ID, call [RetrieveLoyaltyProgram](api-
- * endpoint:Loyalty-RetrieveLoyaltyProgram) using the
- * `main` keyword.
- * @param body An object containing the fields to POST for the
- * request. See the corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async createLoyaltyPromotion(
- programId: string,
- body: CreateLoyaltyPromotionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- programId: [programId, string()],
- body: [body, createLoyaltyPromotionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/loyalty/programs/${mapped.programId}/promotions`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(createLoyaltyPromotionResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a loyalty promotion.
- *
- * @param promotionId The ID of the [loyalty promotion](entity:LoyaltyPromotion) to retrieve.
- * @param programId The ID of the base [loyalty program](entity:LoyaltyProgram). To get the program ID,
- * call [RetrieveLoyaltyProgram](api-endpoint:Loyalty-RetrieveLoyaltyProgram) using the
- * `main` keyword.
- * @return Response from the API call
- */
- async retrieveLoyaltyPromotion(
- promotionId: string,
- programId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- promotionId: [promotionId, string()],
- programId: [programId, string()],
- });
- req.appendTemplatePath`/v2/loyalty/programs/${mapped.programId}/promotions/${mapped.promotionId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveLoyaltyPromotionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Cancels a loyalty promotion. Use this endpoint to cancel an `ACTIVE` promotion earlier than the
- * end date, cancel an `ACTIVE` promotion when an end date is not specified, or cancel a `SCHEDULED`
- * promotion.
- * Because updating a promotion is not supported, you can also use this endpoint to cancel a promotion
- * before
- * you create a new one.
- *
- * This endpoint sets the loyalty promotion to the `CANCELED` state
- *
- * @param promotionId The ID of the [loyalty promotion](entity:LoyaltyPromotion) to cancel. You can
- * cancel a promotion that has an `ACTIVE` or `SCHEDULED` status.
- * @param programId The ID of the base [loyalty program](entity:LoyaltyProgram).
- * @return Response from the API call
- */
- async cancelLoyaltyPromotion(
- promotionId: string,
- programId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- promotionId: [promotionId, string()],
- programId: [programId, string()],
- });
- req.appendTemplatePath`/v2/loyalty/programs/${mapped.programId}/promotions/${mapped.promotionId}/cancel`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(cancelLoyaltyPromotionResponseSchema, requestOptions);
- }
-
- /**
- * Creates a loyalty reward. In the process, the endpoint does following:
- *
- * - Uses the `reward_tier_id` in the request to determine the number of points
- * to lock for this reward.
- * - If the request includes `order_id`, it adds the reward and related discount to the order.
- *
- * After a reward is created, the points are locked and
- * not available for the buyer to redeem another reward.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async createLoyaltyReward(
- body: CreateLoyaltyRewardRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/loyalty/rewards');
- const mapped = req.prepareArgs({
- body: [body, createLoyaltyRewardRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createLoyaltyRewardResponseSchema, requestOptions);
- }
-
- /**
- * Searches for loyalty rewards. This endpoint accepts a request with no query filters and returns
- * results for all loyalty accounts.
- * If you include a `query` object, `loyalty_account_id` is required and `status` is optional.
- *
- * If you know a reward ID, use the
- * [RetrieveLoyaltyReward]($e/Loyalty/RetrieveLoyaltyReward) endpoint.
- *
- * Search results are sorted by `updated_at` in descending order.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async searchLoyaltyRewards(
- body: SearchLoyaltyRewardsRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/loyalty/rewards/search');
- const mapped = req.prepareArgs({
- body: [body, searchLoyaltyRewardsRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchLoyaltyRewardsResponseSchema, requestOptions);
- }
-
- /**
- * Deletes a loyalty reward by doing the following:
- *
- * - Returns the loyalty points back to the loyalty account.
- * - If an order ID was specified when the reward was created
- * (see [CreateLoyaltyReward]($e/Loyalty/CreateLoyaltyReward)),
- * it updates the order by removing the reward and related
- * discounts.
- *
- * You cannot delete a reward that has reached the terminal state (REDEEMED).
- *
- * @param rewardId The ID of the [loyalty reward](entity:LoyaltyReward) to delete.
- * @return Response from the API call
- */
- async deleteLoyaltyReward(
- rewardId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ rewardId: [rewardId, string()] });
- req.appendTemplatePath`/v2/loyalty/rewards/${mapped.rewardId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(deleteLoyaltyRewardResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a loyalty reward.
- *
- * @param rewardId The ID of the [loyalty reward](entity:LoyaltyReward) to retrieve.
- * @return Response from the API call
- */
- async retrieveLoyaltyReward(
- rewardId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ rewardId: [rewardId, string()] });
- req.appendTemplatePath`/v2/loyalty/rewards/${mapped.rewardId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveLoyaltyRewardResponseSchema, requestOptions);
- }
-
- /**
- * Redeems a loyalty reward.
- *
- * The endpoint sets the reward to the `REDEEMED` terminal state.
- *
- * If you are using your own order processing system (not using the
- * Orders API), you call this endpoint after the buyer paid for the
- * purchase.
- *
- * After the reward reaches the terminal state, it cannot be deleted.
- * In other words, points used for the reward cannot be returned
- * to the account.
- *
- * @param rewardId The ID of the [loyalty reward](entity:LoyaltyReward) to
- * redeem.
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async redeemLoyaltyReward(
- rewardId: string,
- body: RedeemLoyaltyRewardRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- rewardId: [rewardId, string()],
- body: [body, redeemLoyaltyRewardRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/loyalty/rewards/${mapped.rewardId}/redeem`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(redeemLoyaltyRewardResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/merchantCustomAttributesApi.ts b/src/api/merchantCustomAttributesApi.ts
deleted file mode 100644
index 208f6ba03..000000000
--- a/src/api/merchantCustomAttributesApi.ts
+++ /dev/null
@@ -1,487 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- BulkDeleteMerchantCustomAttributesRequest,
- bulkDeleteMerchantCustomAttributesRequestSchema,
-} from '../models/bulkDeleteMerchantCustomAttributesRequest';
-import {
- BulkDeleteMerchantCustomAttributesResponse,
- bulkDeleteMerchantCustomAttributesResponseSchema,
-} from '../models/bulkDeleteMerchantCustomAttributesResponse';
-import {
- BulkUpsertMerchantCustomAttributesRequest,
- bulkUpsertMerchantCustomAttributesRequestSchema,
-} from '../models/bulkUpsertMerchantCustomAttributesRequest';
-import {
- BulkUpsertMerchantCustomAttributesResponse,
- bulkUpsertMerchantCustomAttributesResponseSchema,
-} from '../models/bulkUpsertMerchantCustomAttributesResponse';
-import {
- CreateMerchantCustomAttributeDefinitionRequest,
- createMerchantCustomAttributeDefinitionRequestSchema,
-} from '../models/createMerchantCustomAttributeDefinitionRequest';
-import {
- CreateMerchantCustomAttributeDefinitionResponse,
- createMerchantCustomAttributeDefinitionResponseSchema,
-} from '../models/createMerchantCustomAttributeDefinitionResponse';
-import {
- DeleteMerchantCustomAttributeDefinitionResponse,
- deleteMerchantCustomAttributeDefinitionResponseSchema,
-} from '../models/deleteMerchantCustomAttributeDefinitionResponse';
-import {
- DeleteMerchantCustomAttributeResponse,
- deleteMerchantCustomAttributeResponseSchema,
-} from '../models/deleteMerchantCustomAttributeResponse';
-import {
- ListMerchantCustomAttributeDefinitionsResponse,
- listMerchantCustomAttributeDefinitionsResponseSchema,
-} from '../models/listMerchantCustomAttributeDefinitionsResponse';
-import {
- ListMerchantCustomAttributesResponse,
- listMerchantCustomAttributesResponseSchema,
-} from '../models/listMerchantCustomAttributesResponse';
-import {
- RetrieveMerchantCustomAttributeDefinitionResponse,
- retrieveMerchantCustomAttributeDefinitionResponseSchema,
-} from '../models/retrieveMerchantCustomAttributeDefinitionResponse';
-import {
- RetrieveMerchantCustomAttributeResponse,
- retrieveMerchantCustomAttributeResponseSchema,
-} from '../models/retrieveMerchantCustomAttributeResponse';
-import {
- UpdateMerchantCustomAttributeDefinitionRequest,
- updateMerchantCustomAttributeDefinitionRequestSchema,
-} from '../models/updateMerchantCustomAttributeDefinitionRequest';
-import {
- UpdateMerchantCustomAttributeDefinitionResponse,
- updateMerchantCustomAttributeDefinitionResponseSchema,
-} from '../models/updateMerchantCustomAttributeDefinitionResponse';
-import {
- UpsertMerchantCustomAttributeRequest,
- upsertMerchantCustomAttributeRequestSchema,
-} from '../models/upsertMerchantCustomAttributeRequest';
-import {
- UpsertMerchantCustomAttributeResponse,
- upsertMerchantCustomAttributeResponseSchema,
-} from '../models/upsertMerchantCustomAttributeResponse';
-import { boolean, number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class MerchantCustomAttributesApi extends BaseApi {
- /**
- * Lists the merchant-related [custom attribute definitions]($m/CustomAttributeDefinition) that belong
- * to a Square seller account.
- * When all response pages are retrieved, the results include all custom attribute definitions
- * that are visible to the requesting application, including those that are created by other
- * applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param visibilityFilter Filters the `CustomAttributeDefinition` results by their `visibility` values.
- * @param limit The maximum number of results to return in a single paged response. This limit
- * is advisory. The response might contain more or fewer results. The minimum
- * value is 1 and the maximum value is 100. The default value is 20. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/pagination).
- * @param cursor The cursor returned in the paged response from the previous call to this
- * endpoint. Provide this cursor to retrieve the next page of results for your
- * original request. For more information, see [Pagination](https://developer.
- * squareup.com/docs/build-basics/common-api-patterns/pagination).
- * @return Response from the API call
- */
- async listMerchantCustomAttributeDefinitions(
- visibilityFilter?: string,
- limit?: number,
- cursor?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/merchants/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- visibilityFilter: [visibilityFilter, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- });
- req.query('visibility_filter', mapped.visibilityFilter);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listMerchantCustomAttributeDefinitionsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) for a Square
- * seller account.
- * Use this endpoint to define a custom attribute that can be associated with a merchant connecting to
- * your application.
- * A custom attribute definition specifies the `key`, `visibility`, `schema`, and other properties
- * for a custom attribute. After the definition is created, you can call
- * [UpsertMerchantCustomAttribute]($e/MerchantCustomAttributes/UpsertMerchantCustomAttribute) or
- * [BulkUpsertMerchantCustomAttributes]($e/MerchantCustomAttributes/BulkUpsertMerchantCustomAttributes)
- * to set the custom attribute for a merchant.
- *
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async createMerchantCustomAttributeDefinition(
- body: CreateMerchantCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/merchants/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- body: [body, createMerchantCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createMerchantCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) from a Square
- * seller account.
- * Deleting a custom attribute definition also deletes the corresponding custom attribute from
- * the merchant.
- * Only the definition owner can delete a custom attribute definition.
- *
- * @param key The key of the custom attribute definition to delete.
- * @return Response from the API call
- */
- async deleteMerchantCustomAttributeDefinition(
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ key: [key, string()] });
- req.appendTemplatePath`/v2/merchants/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteMerchantCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) from a
- * Square seller account.
- * To retrieve a custom attribute definition created by another application, the `visibility`
- * setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param key The key of the custom attribute definition to retrieve. If the requesting application is
- * not the definition owner, you must use the qualified key.
- * @param version The current version of the custom attribute definition, which is used for strongly
- * consistent reads to guarantee that you receive the most up-to-date data. When included in
- * the request, Square returns the specified version or a higher version if one exists. If
- * the specified version is higher than the current version, Square returns a `BAD_REQUEST`
- * error.
- * @return Response from the API call
- */
- async retrieveMerchantCustomAttributeDefinition(
- key: string,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- key: [key, string()],
- version: [version, optional(number())],
- });
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/merchants/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveMerchantCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Updates a merchant-related [custom attribute definition]($m/CustomAttributeDefinition) for a Square
- * seller account.
- * Use this endpoint to update the following fields: `name`, `description`, `visibility`, or the
- * `schema` for a `Selection` data type.
- * Only the definition owner can update a custom attribute definition.
- *
- * @param key The key of the custom attribute
- * definition to update.
- * @param body An object containing the fields to
- * POST for the request. See the
- * corresponding object definition for
- * field details.
- * @return Response from the API call
- */
- async updateMerchantCustomAttributeDefinition(
- key: string,
- body: UpdateMerchantCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- key: [key, string()],
- body: [body, updateMerchantCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/merchants/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- updateMerchantCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes [custom attributes]($m/CustomAttribute) for a merchant as a bulk operation.
- * To delete a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async bulkDeleteMerchantCustomAttributes(
- body: BulkDeleteMerchantCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/merchants/custom-attributes/bulk-delete'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkDeleteMerchantCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkDeleteMerchantCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates [custom attributes]($m/CustomAttribute) for a merchant as a bulk operation.
- * Use this endpoint to set the value of one or more custom attributes for a merchant.
- * A custom attribute is based on a custom attribute definition in a Square seller account, which is
- * created using the
- * [CreateMerchantCustomAttributeDefinition]($e/MerchantCustomAttributes/CreateMerchantCustomAttributeD
- * efinition) endpoint.
- * This `BulkUpsertMerchantCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert
- * requests and returns a map of individual upsert responses. Each upsert request has a unique ID
- * and provides a merchant ID and custom attribute. Each upsert response is returned with the ID
- * of the corresponding request.
- * To create or update a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async bulkUpsertMerchantCustomAttributes(
- body: BulkUpsertMerchantCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/merchants/custom-attributes/bulk-upsert'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkUpsertMerchantCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkUpsertMerchantCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Lists the [custom attributes]($m/CustomAttribute) associated with a merchant.
- * You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
- * in the same call.
- * When all response pages are retrieved, the results include all custom attributes that are
- * visible to the requesting application, including those that are owned by other applications
- * and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param merchantId The ID of the target [merchant](entity:Merchant).
- * @param visibilityFilter Filters the `CustomAttributeDefinition` results by their `visibility` values.
- * @param limit The maximum number of results to return in a single paged response. This
- * limit is advisory. The response might contain more or fewer results. The
- * minimum value is 1 and the maximum value is 100. The default value is 20. For
- * more information, see [Pagination](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/pagination).
- * @param cursor The cursor returned in the paged response from the previous call to this
- * endpoint. Provide this cursor to retrieve the next page of results for your
- * original request. For more information, see [Pagination](https://developer.
- * squareup.com/docs/build-basics/common-api-patterns/pagination).
- * @param withDefinitions Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of each custom attribute.
- * Set this parameter to `true` to get the name and description of each custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @return Response from the API call
- */
- async listMerchantCustomAttributes(
- merchantId: string,
- visibilityFilter?: string,
- limit?: number,
- cursor?: string,
- withDefinitions?: boolean,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- merchantId: [merchantId, string()],
- visibilityFilter: [visibilityFilter, optional(string())],
- limit: [limit, optional(number())],
- cursor: [cursor, optional(string())],
- withDefinitions: [withDefinitions, optional(boolean())],
- });
- req.query('visibility_filter', mapped.visibilityFilter);
- req.query('limit', mapped.limit);
- req.query('cursor', mapped.cursor);
- req.query('with_definitions', mapped.withDefinitions);
- req.appendTemplatePath`/v2/merchants/${mapped.merchantId}/custom-attributes`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listMerchantCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a [custom attribute]($m/CustomAttribute) associated with a merchant.
- * To delete a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param merchantId The ID of the target [merchant](entity:Merchant).
- * @param key The key of the custom attribute to delete. This key must match the `key` of a custom
- * attribute definition in the Square seller account. If the requesting application is
- * not the definition owner, you must use the qualified key.
- * @return Response from the API call
- */
- async deleteMerchantCustomAttribute(
- merchantId: string,
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- merchantId: [merchantId, string()],
- key: [key, string()],
- });
- req.appendTemplatePath`/v2/merchants/${mapped.merchantId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteMerchantCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a [custom attribute]($m/CustomAttribute) associated with a merchant.
- * You can use the `with_definition` query parameter to also retrieve the custom attribute definition
- * in the same call.
- * To retrieve a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param merchantId The ID of the target [merchant](entity:Merchant).
- * @param key The key of the custom attribute to retrieve. This key must match the `key` of a
- * custom attribute definition in the Square seller account. If the requesting
- * application is not the definition owner, you must use the qualified key.
- * @param withDefinition Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of the custom attribute.
- * Set this parameter to `true` to get the name and description of the custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @param version The current version of the custom attribute, which is used for strongly
- * consistent reads to guarantee that you receive the most up-to-date data. When
- * included in the request, Square returns the specified version or a higher
- * version if one exists. If the specified version is higher than the current
- * version, Square returns a `BAD_REQUEST` error.
- * @return Response from the API call
- */
- async retrieveMerchantCustomAttribute(
- merchantId: string,
- key: string,
- withDefinition?: boolean,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- merchantId: [merchantId, string()],
- key: [key, string()],
- withDefinition: [withDefinition, optional(boolean())],
- version: [version, optional(number())],
- });
- req.query('with_definition', mapped.withDefinition);
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/merchants/${mapped.merchantId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveMerchantCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates a [custom attribute]($m/CustomAttribute) for a merchant.
- * Use this endpoint to set the value of a custom attribute for a specified merchant.
- * A custom attribute is based on a custom attribute definition in a Square seller account, which
- * is created using the
- * [CreateMerchantCustomAttributeDefinition]($e/MerchantCustomAttributes/CreateMerchantCustomAttributeD
- * efinition) endpoint.
- * To create or update a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param merchantId The ID of the target [merchant](entity:
- * Merchant).
- * @param key The key of the custom attribute to create or
- * update. This key must match the `key` of a
- * custom attribute definition in the Square
- * seller account. If the requesting application
- * is not the definition owner, you must use the
- * qualified key.
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async upsertMerchantCustomAttribute(
- merchantId: string,
- key: string,
- body: UpsertMerchantCustomAttributeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- merchantId: [merchantId, string()],
- key: [key, string()],
- body: [body, upsertMerchantCustomAttributeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/merchants/${mapped.merchantId}/custom-attributes/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- upsertMerchantCustomAttributeResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/merchantsApi.ts b/src/api/merchantsApi.ts
deleted file mode 100644
index dd8a90fa0..000000000
--- a/src/api/merchantsApi.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- ListMerchantsResponse,
- listMerchantsResponseSchema,
-} from '../models/listMerchantsResponse';
-import {
- RetrieveMerchantResponse,
- retrieveMerchantResponseSchema,
-} from '../models/retrieveMerchantResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class MerchantsApi extends BaseApi {
- /**
- * Provides details about the merchant associated with a given access token.
- *
- * The access token used to connect your application to a Square seller is associated
- * with a single merchant. That means that `ListMerchants` returns a list
- * with a single `Merchant` object. You can specify your personal access token
- * to get your own merchant information or specify an OAuth token to get the
- * information for the merchant that granted your application access.
- *
- * If you know the merchant ID, you can also use the [RetrieveMerchant]($e/Merchants/RetrieveMerchant)
- * endpoint to retrieve the merchant information.
- *
- * @param cursor The cursor generated by the previous response.
- * @return Response from the API call
- */
- async listMerchants(
- cursor?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/merchants');
- const mapped = req.prepareArgs({ cursor: [cursor, optional(number())] });
- req.query('cursor', mapped.cursor);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listMerchantsResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves the `Merchant` object for the given `merchant_id`.
- *
- * @param merchantId The ID of the merchant to retrieve. If the string "me" is supplied as the ID, then
- * retrieve the merchant that is currently accessible to this call.
- * @return Response from the API call
- */
- async retrieveMerchant(
- merchantId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ merchantId: [merchantId, string()] });
- req.appendTemplatePath`/v2/merchants/${mapped.merchantId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveMerchantResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/mobileAuthorizationApi.ts b/src/api/mobileAuthorizationApi.ts
deleted file mode 100644
index 5b321b0d3..000000000
--- a/src/api/mobileAuthorizationApi.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CreateMobileAuthorizationCodeRequest,
- createMobileAuthorizationCodeRequestSchema,
-} from '../models/createMobileAuthorizationCodeRequest';
-import {
- CreateMobileAuthorizationCodeResponse,
- createMobileAuthorizationCodeResponseSchema,
-} from '../models/createMobileAuthorizationCodeResponse';
-import { BaseApi } from './baseApi';
-
-export class MobileAuthorizationApi extends BaseApi {
- /**
- * Generates code to authorize a mobile application to connect to a Square card reader.
- *
- * Authorization codes are one-time-use codes and expire 60 minutes after being issued.
- *
- * __Important:__ The `Authorization` header you provide to this endpoint must have the following
- * format:
- *
- * ```
- * Authorization: Bearer ACCESS_TOKEN
- * ```
- *
- * Replace `ACCESS_TOKEN` with a
- * [valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-
- * tokens).
- *
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async createMobileAuthorizationCode(
- body: CreateMobileAuthorizationCodeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/mobile/authorization-code');
- const mapped = req.prepareArgs({
- body: [body, createMobileAuthorizationCodeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createMobileAuthorizationCodeResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/oAuthApi.ts b/src/api/oAuthApi.ts
deleted file mode 100644
index 309b6bcc0..000000000
--- a/src/api/oAuthApi.ts
+++ /dev/null
@@ -1,129 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- ObtainTokenRequest,
- obtainTokenRequestSchema,
-} from '../models/obtainTokenRequest';
-import {
- ObtainTokenResponse,
- obtainTokenResponseSchema,
-} from '../models/obtainTokenResponse';
-import {
- RetrieveTokenStatusResponse,
- retrieveTokenStatusResponseSchema,
-} from '../models/retrieveTokenStatusResponse';
-import {
- RevokeTokenRequest,
- revokeTokenRequestSchema,
-} from '../models/revokeTokenRequest';
-import {
- RevokeTokenResponse,
- revokeTokenResponseSchema,
-} from '../models/revokeTokenResponse';
-import { string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class OAuthApi extends BaseApi {
- /**
- * Revokes an access token generated with the OAuth flow.
- *
- * If an account has more than one OAuth access token for your application, this
- * endpoint revokes all of them, regardless of which token you specify.
- *
- * __Important:__ The `Authorization` header for this endpoint must have the
- * following format:
- *
- * ```
- * Authorization: Client APPLICATION_SECRET
- * ```
- *
- * Replace `APPLICATION_SECRET` with the application secret on the **OAuth**
- * page for your application in the Developer Dashboard.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @param authorization Client APPLICATION_SECRET
- * @return Response from the API call
- */
- async revokeToken(
- body: RevokeTokenRequest,
- authorization: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/oauth2/revoke');
- const mapped = req.prepareArgs({
- body: [body, revokeTokenRequestSchema],
- authorization: [authorization, string()],
- });
- req.header('Content-Type', 'application/json');
- req.header('Authorization', mapped.authorization);
- req.json(mapped.body);
- req.authenticate(false);
- return req.callAsJson(revokeTokenResponseSchema, requestOptions);
- }
-
- /**
- * Returns an OAuth access token and a refresh token unless the
- * `short_lived` parameter is set to `true`, in which case the endpoint
- * returns only an access token.
- *
- * The `grant_type` parameter specifies the type of OAuth request. If
- * `grant_type` is `authorization_code`, you must include the authorization
- * code you received when a seller granted you authorization. If `grant_type`
- * is `refresh_token`, you must provide a valid refresh token. If you're using
- * an old version of the Square APIs (prior to March 13, 2019), `grant_type`
- * can be `migration_token` and you must provide a valid migration token.
- *
- * You can use the `scopes` parameter to limit the set of permissions granted
- * to the access token and refresh token. You can use the `short_lived` parameter
- * to create an access token that expires in 24 hours.
- *
- * __Note:__ OAuth tokens should be encrypted and stored on a secure server.
- * Application clients should never interact directly with OAuth tokens.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async obtainToken(
- body: ObtainTokenRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/oauth2/token');
- const mapped = req.prepareArgs({ body: [body, obtainTokenRequestSchema] });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate(false);
- return req.callAsJson(obtainTokenResponseSchema, requestOptions);
- }
-
- /**
- * Returns information about an [OAuth access token](https://developer.squareup.com/docs/build-
- * basics/access-tokens#get-an-oauth-access-token) or an application’s [personal access token](https:
- * //developer.squareup.com/docs/build-basics/access-tokens#get-a-personal-access-token).
- *
- * Add the access token to the Authorization header of the request.
- *
- * __Important:__ The `Authorization` header you provide to this endpoint must have the following
- * format:
- *
- * ```
- * Authorization: Bearer ACCESS_TOKEN
- * ```
- *
- * where `ACCESS_TOKEN` is a
- * [valid production authorization credential](https://developer.squareup.com/docs/build-basics/access-
- * tokens).
- *
- * If the access token is expired or not a valid access token, the endpoint returns an `UNAUTHORIZED`
- * error.
- *
- * @return Response from the API call
- */
- async retrieveTokenStatus(
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/oauth2/token/status');
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveTokenStatusResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/orderCustomAttributesApi.ts b/src/api/orderCustomAttributesApi.ts
deleted file mode 100644
index 7901bd7b6..000000000
--- a/src/api/orderCustomAttributesApi.ts
+++ /dev/null
@@ -1,509 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- BulkDeleteOrderCustomAttributesRequest,
- bulkDeleteOrderCustomAttributesRequestSchema,
-} from '../models/bulkDeleteOrderCustomAttributesRequest';
-import {
- BulkDeleteOrderCustomAttributesResponse,
- bulkDeleteOrderCustomAttributesResponseSchema,
-} from '../models/bulkDeleteOrderCustomAttributesResponse';
-import {
- BulkUpsertOrderCustomAttributesRequest,
- bulkUpsertOrderCustomAttributesRequestSchema,
-} from '../models/bulkUpsertOrderCustomAttributesRequest';
-import {
- BulkUpsertOrderCustomAttributesResponse,
- bulkUpsertOrderCustomAttributesResponseSchema,
-} from '../models/bulkUpsertOrderCustomAttributesResponse';
-import {
- CreateOrderCustomAttributeDefinitionRequest,
- createOrderCustomAttributeDefinitionRequestSchema,
-} from '../models/createOrderCustomAttributeDefinitionRequest';
-import {
- CreateOrderCustomAttributeDefinitionResponse,
- createOrderCustomAttributeDefinitionResponseSchema,
-} from '../models/createOrderCustomAttributeDefinitionResponse';
-import {
- DeleteOrderCustomAttributeDefinitionResponse,
- deleteOrderCustomAttributeDefinitionResponseSchema,
-} from '../models/deleteOrderCustomAttributeDefinitionResponse';
-import {
- DeleteOrderCustomAttributeResponse,
- deleteOrderCustomAttributeResponseSchema,
-} from '../models/deleteOrderCustomAttributeResponse';
-import {
- ListOrderCustomAttributeDefinitionsResponse,
- listOrderCustomAttributeDefinitionsResponseSchema,
-} from '../models/listOrderCustomAttributeDefinitionsResponse';
-import {
- ListOrderCustomAttributesResponse,
- listOrderCustomAttributesResponseSchema,
-} from '../models/listOrderCustomAttributesResponse';
-import {
- RetrieveOrderCustomAttributeDefinitionResponse,
- retrieveOrderCustomAttributeDefinitionResponseSchema,
-} from '../models/retrieveOrderCustomAttributeDefinitionResponse';
-import {
- RetrieveOrderCustomAttributeResponse,
- retrieveOrderCustomAttributeResponseSchema,
-} from '../models/retrieveOrderCustomAttributeResponse';
-import {
- UpdateOrderCustomAttributeDefinitionRequest,
- updateOrderCustomAttributeDefinitionRequestSchema,
-} from '../models/updateOrderCustomAttributeDefinitionRequest';
-import {
- UpdateOrderCustomAttributeDefinitionResponse,
- updateOrderCustomAttributeDefinitionResponseSchema,
-} from '../models/updateOrderCustomAttributeDefinitionResponse';
-import {
- UpsertOrderCustomAttributeRequest,
- upsertOrderCustomAttributeRequestSchema,
-} from '../models/upsertOrderCustomAttributeRequest';
-import {
- UpsertOrderCustomAttributeResponse,
- upsertOrderCustomAttributeResponseSchema,
-} from '../models/upsertOrderCustomAttributeResponse';
-import { boolean, number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class OrderCustomAttributesApi extends BaseApi {
- /**
- * Lists the order-related [custom attribute definitions]($m/CustomAttributeDefinition) that belong to
- * a Square seller account.
- *
- * When all response pages are retrieved, the results include all custom attribute definitions
- * that are visible to the requesting application, including those that are created by other
- * applications and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that
- * seller-defined custom attributes (also known as custom fields) are always set to
- * `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param visibilityFilter Requests that all of the custom attributes be returned, or only those that are
- * read-only or read-write.
- * @param cursor The cursor returned in the paged response from the previous call to this
- * endpoint. Provide this cursor to retrieve the next page of results for your
- * original request. For more information, see [Pagination](https://developer.
- * squareup.com/docs/working-with-apis/pagination).
- * @param limit The maximum number of results to return in a single paged response. This limit
- * is advisory. The response might contain more or fewer results. The minimum
- * value is 1 and the maximum value is 100. The default value is 20. For more
- * information, see [Pagination](https://developer.squareup.com/docs/working-with-
- * apis/pagination).
- * @return Response from the API call
- */
- async listOrderCustomAttributeDefinitions(
- visibilityFilter?: string,
- cursor?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'GET',
- '/v2/orders/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- visibilityFilter: [visibilityFilter, optional(string())],
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('visibility_filter', mapped.visibilityFilter);
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listOrderCustomAttributeDefinitionsResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates an order-related custom attribute definition. Use this endpoint to
- * define a custom attribute that can be associated with orders.
- *
- * After creating a custom attribute definition, you can set the custom attribute for orders
- * in the Square seller account.
- *
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async createOrderCustomAttributeDefinition(
- body: CreateOrderCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/orders/custom-attribute-definitions'
- );
- const mapped = req.prepareArgs({
- body: [body, createOrderCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- createOrderCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes an order-related [custom attribute definition]($m/CustomAttributeDefinition) from a Square
- * seller account.
- *
- * Only the definition owner can delete a custom attribute definition.
- *
- * @param key The key of the custom attribute definition to delete.
- * @return Response from the API call
- */
- async deleteOrderCustomAttributeDefinition(
- key: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({ key: [key, string()] });
- req.appendTemplatePath`/v2/orders/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteOrderCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves an order-related [custom attribute definition]($m/CustomAttributeDefinition) from a Square
- * seller account.
- *
- * To retrieve a custom attribute definition created by another application, the `visibility`
- * setting must be `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined
- * custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param key The key of the custom attribute definition to retrieve.
- * @param version To enable [optimistic concurrency](https://developer.squareup.com/docs/build-
- * basics/common-api-patterns/optimistic-concurrency) control, include this optional field
- * and specify the current version of the custom attribute.
- * @return Response from the API call
- */
- async retrieveOrderCustomAttributeDefinition(
- key: string,
- version?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- key: [key, string()],
- version: [version, optional(number())],
- });
- req.query('version', mapped.version);
- req.appendTemplatePath`/v2/orders/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveOrderCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Updates an order-related custom attribute definition for a Square seller account.
- *
- * Only the definition owner can update a custom attribute definition. Note that sellers can view all
- * custom attributes in exported customer data, including those set to `VISIBILITY_HIDDEN`.
- *
- * @param key The key of the custom attribute
- * definition to update.
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async updateOrderCustomAttributeDefinition(
- key: string,
- body: UpdateOrderCustomAttributeDefinitionRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- key: [key, string()],
- body: [body, updateOrderCustomAttributeDefinitionRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/orders/custom-attribute-definitions/${mapped.key}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- updateOrderCustomAttributeDefinitionResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes order [custom attributes]($m/CustomAttribute) as a bulk operation.
- *
- * Use this endpoint to delete one or more custom attributes from one or more orders.
- * A custom attribute is based on a custom attribute definition in a Square seller account. (To create
- * a
- * custom attribute definition, use the
- * [CreateOrderCustomAttributeDefinition]($e/OrderCustomAttributes/CreateOrderCustomAttributeDefinition
- * ) endpoint.)
- *
- * This `BulkDeleteOrderCustomAttributes` endpoint accepts a map of 1 to 25 individual delete
- * requests and returns a map of individual delete responses. Each delete request has a unique ID
- * and provides an order ID and custom attribute. Each delete response is returned with the ID
- * of the corresponding request.
- *
- * To delete a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async bulkDeleteOrderCustomAttributes(
- body: BulkDeleteOrderCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/orders/custom-attributes/bulk-delete'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkDeleteOrderCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkDeleteOrderCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates order [custom attributes]($m/CustomAttribute) as a bulk operation.
- *
- * Use this endpoint to delete one or more custom attributes from one or more orders.
- * A custom attribute is based on a custom attribute definition in a Square seller account. (To create
- * a
- * custom attribute definition, use the
- * [CreateOrderCustomAttributeDefinition]($e/OrderCustomAttributes/CreateOrderCustomAttributeDefinition
- * ) endpoint.)
- *
- * This `BulkUpsertOrderCustomAttributes` endpoint accepts a map of 1 to 25 individual upsert
- * requests and returns a map of individual upsert responses. Each upsert request has a unique ID
- * and provides an order ID and custom attribute. Each upsert response is returned with the ID
- * of the corresponding request.
- *
- * To create or update a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async bulkUpsertOrderCustomAttributes(
- body: BulkUpsertOrderCustomAttributesRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest(
- 'POST',
- '/v2/orders/custom-attributes/bulk-upsert'
- );
- const mapped = req.prepareArgs({
- body: [body, bulkUpsertOrderCustomAttributesRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- bulkUpsertOrderCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Lists the [custom attributes]($m/CustomAttribute) associated with an order.
- *
- * You can use the `with_definitions` query parameter to also retrieve custom attribute definitions
- * in the same call.
- *
- * When all response pages are retrieved, the results include all custom attributes that are
- * visible to the requesting application, including those that are owned by other applications
- * and set to `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param orderId The ID of the target [order](entity:Order).
- * @param visibilityFilter Requests that all of the custom attributes be returned, or only those that
- * are read-only or read-write.
- * @param cursor The cursor returned in the paged response from the previous call to this
- * endpoint. Provide this cursor to retrieve the next page of results for your
- * original request. For more information, see [Pagination](https://developer.
- * squareup.com/docs/working-with-apis/pagination).
- * @param limit The maximum number of results to return in a single paged response. This
- * limit is advisory. The response might contain more or fewer results. The
- * minimum value is 1 and the maximum value is 100. The default value is 20. For
- * more information, see [Pagination](https://developer.squareup.com/docs/working-
- * with-apis/pagination).
- * @param withDefinitions Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of each custom attribute.
- * Set this parameter to `true` to get the name and description of each custom
- * attribute, information about the data type, or other definition details. The
- * default value is `false`.
- * @return Response from the API call
- */
- async listOrderCustomAttributes(
- orderId: string,
- visibilityFilter?: string,
- cursor?: string,
- limit?: number,
- withDefinitions?: boolean,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- orderId: [orderId, string()],
- visibilityFilter: [visibilityFilter, optional(string())],
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- withDefinitions: [withDefinitions, optional(boolean())],
- });
- req.query('visibility_filter', mapped.visibilityFilter);
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.query('with_definitions', mapped.withDefinitions);
- req.appendTemplatePath`/v2/orders/${mapped.orderId}/custom-attributes`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- listOrderCustomAttributesResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Deletes a [custom attribute]($m/CustomAttribute) associated with a customer profile.
- *
- * To delete a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param orderId The ID of the target [order](entity:Order).
- * @param customAttributeKey The key of the custom attribute to delete. This key must match the key of
- * an existing custom attribute definition.
- * @return Response from the API call
- */
- async deleteOrderCustomAttribute(
- orderId: string,
- customAttributeKey: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('DELETE');
- const mapped = req.prepareArgs({
- orderId: [orderId, string()],
- customAttributeKey: [customAttributeKey, string()],
- });
- req.appendTemplatePath`/v2/orders/${mapped.orderId}/custom-attributes/${mapped.customAttributeKey}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- deleteOrderCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves a [custom attribute]($m/CustomAttribute) associated with an order.
- *
- * You can use the `with_definition` query parameter to also retrieve the custom attribute definition
- * in the same call.
- *
- * To retrieve a custom attribute owned by another application, the `visibility` setting must be
- * `VISIBILITY_READ_ONLY` or `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom
- * attributes
- * also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param orderId The ID of the target [order](entity:Order).
- * @param customAttributeKey The key of the custom attribute to retrieve. This key must match the key
- * of an existing custom attribute definition.
- * @param version To enable [optimistic concurrency](https://developer.squareup.
- * com/docs/build-basics/common-api-patterns/optimistic-concurrency) control,
- * include this optional field and specify the current version of the custom
- * attribute.
- * @param withDefinition Indicates whether to return the [custom attribute definition](entity:
- * CustomAttributeDefinition) in the `definition` field of each custom
- * attribute. Set this parameter to `true` to get the name and description of
- * each custom attribute, information about the data type, or other
- * definition details. The default value is `false`.
- * @return Response from the API call
- */
- async retrieveOrderCustomAttribute(
- orderId: string,
- customAttributeKey: string,
- version?: number,
- withDefinition?: boolean,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- orderId: [orderId, string()],
- customAttributeKey: [customAttributeKey, string()],
- version: [version, optional(number())],
- withDefinition: [withDefinition, optional(boolean())],
- });
- req.query('version', mapped.version);
- req.query('with_definition', mapped.withDefinition);
- req.appendTemplatePath`/v2/orders/${mapped.orderId}/custom-attributes/${mapped.customAttributeKey}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- retrieveOrderCustomAttributeResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Creates or updates a [custom attribute]($m/CustomAttribute) for an order.
- *
- * Use this endpoint to set the value of a custom attribute for a specific order.
- * A custom attribute is based on a custom attribute definition in a Square seller account. (To create
- * a
- * custom attribute definition, use the
- * [CreateOrderCustomAttributeDefinition]($e/OrderCustomAttributes/CreateOrderCustomAttributeDefinition
- * ) endpoint.)
- *
- * To create or update a custom attribute owned by another application, the `visibility` setting
- * must be `VISIBILITY_READ_WRITE_VALUES`. Note that seller-defined custom attributes
- * (also known as custom fields) are always set to `VISIBILITY_READ_WRITE_VALUES`.
- *
- * @param orderId The ID of the target [order](entity:
- * Order).
- * @param customAttributeKey The key of the custom attribute to create
- * or update. This key must match the key
- * of an existing custom attribute definition.
- * @param body An object containing the fields to POST
- * for the request. See the corresponding
- * object definition for field details.
- * @return Response from the API call
- */
- async upsertOrderCustomAttribute(
- orderId: string,
- customAttributeKey: string,
- body: UpsertOrderCustomAttributeRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- orderId: [orderId, string()],
- customAttributeKey: [customAttributeKey, string()],
- body: [body, upsertOrderCustomAttributeRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/orders/${mapped.orderId}/custom-attributes/${mapped.customAttributeKey}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- upsertOrderCustomAttributeResponseSchema,
- requestOptions
- );
- }
-}
diff --git a/src/api/ordersApi.ts b/src/api/ordersApi.ts
deleted file mode 100644
index 015c2582a..000000000
--- a/src/api/ordersApi.ts
+++ /dev/null
@@ -1,289 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- BatchRetrieveOrdersRequest,
- batchRetrieveOrdersRequestSchema,
-} from '../models/batchRetrieveOrdersRequest';
-import {
- BatchRetrieveOrdersResponse,
- batchRetrieveOrdersResponseSchema,
-} from '../models/batchRetrieveOrdersResponse';
-import {
- CalculateOrderRequest,
- calculateOrderRequestSchema,
-} from '../models/calculateOrderRequest';
-import {
- CalculateOrderResponse,
- calculateOrderResponseSchema,
-} from '../models/calculateOrderResponse';
-import {
- CloneOrderRequest,
- cloneOrderRequestSchema,
-} from '../models/cloneOrderRequest';
-import {
- CloneOrderResponse,
- cloneOrderResponseSchema,
-} from '../models/cloneOrderResponse';
-import {
- CreateOrderRequest,
- createOrderRequestSchema,
-} from '../models/createOrderRequest';
-import {
- CreateOrderResponse,
- createOrderResponseSchema,
-} from '../models/createOrderResponse';
-import {
- PayOrderRequest,
- payOrderRequestSchema,
-} from '../models/payOrderRequest';
-import {
- PayOrderResponse,
- payOrderResponseSchema,
-} from '../models/payOrderResponse';
-import {
- RetrieveOrderResponse,
- retrieveOrderResponseSchema,
-} from '../models/retrieveOrderResponse';
-import {
- SearchOrdersRequest,
- searchOrdersRequestSchema,
-} from '../models/searchOrdersRequest';
-import {
- SearchOrdersResponse,
- searchOrdersResponseSchema,
-} from '../models/searchOrdersResponse';
-import {
- UpdateOrderRequest,
- updateOrderRequestSchema,
-} from '../models/updateOrderRequest';
-import {
- UpdateOrderResponse,
- updateOrderResponseSchema,
-} from '../models/updateOrderResponse';
-import { string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class OrdersApi extends BaseApi {
- /**
- * Creates a new [order]($m/Order) that can include information about products for
- * purchase and settings to apply to the purchase.
- *
- * To pay for a created order, see
- * [Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders).
- *
- * You can modify open orders using the [UpdateOrder]($e/Orders/UpdateOrder) endpoint.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createOrder(
- body: CreateOrderRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/orders');
- const mapped = req.prepareArgs({ body: [body, createOrderRequestSchema] });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createOrderResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a set of [orders]($m/Order) by their IDs.
- *
- * If a given order ID does not exist, the ID is ignored instead of generating an error.
- *
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field
- * details.
- * @return Response from the API call
- */
- async batchRetrieveOrders(
- body: BatchRetrieveOrdersRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/orders/batch-retrieve');
- const mapped = req.prepareArgs({
- body: [body, batchRetrieveOrdersRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(batchRetrieveOrdersResponseSchema, requestOptions);
- }
-
- /**
- * Enables applications to preview order pricing without creating an order.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async calculateOrder(
- body: CalculateOrderRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/orders/calculate');
- const mapped = req.prepareArgs({
- body: [body, calculateOrderRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(calculateOrderResponseSchema, requestOptions);
- }
-
- /**
- * Creates a new order, in the `DRAFT` state, by duplicating an existing order. The newly created order
- * has
- * only the core fields (such as line items, taxes, and discounts) copied from the original order.
- *
- * @param body An object containing the fields to POST for the request. See the
- * corresponding object definition for field details.
- * @return Response from the API call
- */
- async cloneOrder(
- body: CloneOrderRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/orders/clone');
- const mapped = req.prepareArgs({ body: [body, cloneOrderRequestSchema] });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(cloneOrderResponseSchema, requestOptions);
- }
-
- /**
- * Search all orders for one or more locations. Orders include all sales,
- * returns, and exchanges regardless of how or when they entered the Square
- * ecosystem (such as Point of Sale, Invoices, and Connect APIs).
- *
- * `SearchOrders` requests need to specify which locations to search and define a
- * [SearchOrdersQuery]($m/SearchOrdersQuery) object that controls
- * how to sort or filter the results. Your `SearchOrdersQuery` can:
- *
- * Set filter criteria.
- * Set the sort order.
- * Determine whether to return results as complete `Order` objects or as
- * [OrderEntry]($m/OrderEntry) objects.
- *
- * Note that details for orders processed with Square Point of Sale while in
- * offline mode might not be transmitted to Square for up to 72 hours. Offline
- * orders have a `created_at` value that reflects the time the order was created,
- * not the time it was subsequently transmitted to Square.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async searchOrders(
- body: SearchOrdersRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/orders/search');
- const mapped = req.prepareArgs({ body: [body, searchOrdersRequestSchema] });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(searchOrdersResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves an [Order]($m/Order) by ID.
- *
- * @param orderId The ID of the order to retrieve.
- * @return Response from the API call
- */
- async retrieveOrder(
- orderId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ orderId: [orderId, string()] });
- req.appendTemplatePath`/v2/orders/${mapped.orderId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(retrieveOrderResponseSchema, requestOptions);
- }
-
- /**
- * Updates an open [order]($m/Order) by adding, replacing, or deleting
- * fields. Orders with a `COMPLETED` or `CANCELED` state cannot be updated.
- *
- * An `UpdateOrder` request requires the following:
- *
- * - The `order_id` in the endpoint path, identifying the order to update.
- * - The latest `version` of the order to update.
- * - The [sparse order](https://developer.squareup.com/docs/orders-api/manage-orders/update-
- * orders#sparse-order-objects)
- * containing only the fields to update and the version to which the update is
- * being applied.
- * - If deleting fields, the [dot notation paths](https://developer.squareup.com/docs/orders-api/manage-
- * orders/update-orders#identifying-fields-to-delete)
- * identifying the fields to clear.
- *
- * To pay for an order, see
- * [Pay for Orders](https://developer.squareup.com/docs/orders-api/pay-for-orders).
- *
- * @param orderId The ID of the order to update.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updateOrder(
- orderId: string,
- body: UpdateOrderRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- orderId: [orderId, string()],
- body: [body, updateOrderRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/orders/${mapped.orderId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updateOrderResponseSchema, requestOptions);
- }
-
- /**
- * Pay for an [order]($m/Order) using one or more approved [payments]($m/Payment)
- * or settle an order with a total of `0`.
- *
- * The total of the `payment_ids` listed in the request must be equal to the order
- * total. Orders with a total amount of `0` can be marked as paid by specifying an empty
- * array of `payment_ids` in the request.
- *
- * To be used with `PayOrder`, a payment must:
- *
- * - Reference the order by specifying the `order_id` when [creating the
- * payment]($e/Payments/CreatePayment).
- * Any approved payments that reference the same `order_id` not specified in the
- * `payment_ids` is canceled.
- * - Be approved with [delayed capture](https://developer.squareup.com/docs/payments-api/take-
- * payments/card-payments/delayed-capture).
- * Using a delayed capture payment with `PayOrder` completes the approved payment.
- *
- * @param orderId The ID of the order being paid.
- * @param body An object containing the fields to POST for the request. See the
- * corresponding object definition for field details.
- * @return Response from the API call
- */
- async payOrder(
- orderId: string,
- body: PayOrderRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- orderId: [orderId, string()],
- body: [body, payOrderRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/orders/${mapped.orderId}/pay`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(payOrderResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/paymentsApi.ts b/src/api/paymentsApi.ts
deleted file mode 100644
index 852d12f7c..000000000
--- a/src/api/paymentsApi.ts
+++ /dev/null
@@ -1,309 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- CancelPaymentByIdempotencyKeyRequest,
- cancelPaymentByIdempotencyKeyRequestSchema,
-} from '../models/cancelPaymentByIdempotencyKeyRequest';
-import {
- CancelPaymentByIdempotencyKeyResponse,
- cancelPaymentByIdempotencyKeyResponseSchema,
-} from '../models/cancelPaymentByIdempotencyKeyResponse';
-import {
- CancelPaymentResponse,
- cancelPaymentResponseSchema,
-} from '../models/cancelPaymentResponse';
-import {
- CompletePaymentRequest,
- completePaymentRequestSchema,
-} from '../models/completePaymentRequest';
-import {
- CompletePaymentResponse,
- completePaymentResponseSchema,
-} from '../models/completePaymentResponse';
-import {
- CreatePaymentRequest,
- createPaymentRequestSchema,
-} from '../models/createPaymentRequest';
-import {
- CreatePaymentResponse,
- createPaymentResponseSchema,
-} from '../models/createPaymentResponse';
-import {
- GetPaymentResponse,
- getPaymentResponseSchema,
-} from '../models/getPaymentResponse';
-import {
- ListPaymentsResponse,
- listPaymentsResponseSchema,
-} from '../models/listPaymentsResponse';
-import {
- UpdatePaymentRequest,
- updatePaymentRequestSchema,
-} from '../models/updatePaymentRequest';
-import {
- UpdatePaymentResponse,
- updatePaymentResponseSchema,
-} from '../models/updatePaymentResponse';
-import { bigint, boolean, number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class PaymentsApi extends BaseApi {
- /**
- * Retrieves a list of payments taken by the account making the request.
- *
- * Results are eventually consistent, and new payments or changes to payments might take several
- * seconds to appear.
- *
- * The maximum results per page is 100.
- *
- * @param beginTime Indicates the start of the time range to retrieve payments for, in RFC
- * 3339 format. The range is determined using the `created_at` field for
- * each Payment. Inclusive. Default: The current time minus one year.
- * @param endTime Indicates the end of the time range to retrieve payments for, in RFC 3339
- * format. The range is determined using the `created_at` field for each
- * Payment. Default: The current time.
- * @param sortOrder The order in which results are listed by `ListPaymentsRequest.sort_field`:
- * - `ASC` - Oldest to newest. - `DESC` - Newest to oldest (default).
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide
- * this cursor to retrieve the next set of results for the original query.
- * For more information, see [Pagination](https://developer.squareup.
- * com/docs/build-basics/common-api-patterns/pagination).
- * @param locationId Limit results to the location supplied. By default, results are returned
- * for the default (main) location associated with the seller.
- * @param total The exact amount in the `total_money` for a payment.
- * @param last4 The last four digits of a payment card.
- * @param cardBrand The brand of the payment card (for example, VISA).
- * @param limit The maximum number of results to be returned in a single page. It is
- * possible to receive fewer results than the specified limit on a given page.
- * The default value of 100 is also the maximum allowed value. If the
- * provided value is greater than 100, it is ignored and the default value
- * is used instead. Default: `100`
- * @param isOfflinePayment Whether the payment was taken offline or not.
- * @param offlineBeginTime Indicates the start of the time range for which to retrieve offline
- * payments, in RFC 3339 format for timestamps. The range is determined using
- * the `offline_payment_details.client_created_at` field for each Payment. If
- * set, payments without a value set in `offline_payment_details.
- * client_created_at` will not be returned. Default: The current time.
- * @param offlineEndTime Indicates the end of the time range for which to retrieve offline
- * payments, in RFC 3339 format for timestamps. The range is determined using
- * the `offline_payment_details.client_created_at` field for each Payment. If
- * set, payments without a value set in `offline_payment_details.
- * client_created_at` will not be returned. Default: The current time.
- * @param updatedAtBeginTime Indicates the start of the time range to retrieve payments for, in RFC
- * 3339 format. The range is determined using the `updated_at` field for
- * each Payment.
- * @param updatedAtEndTime Indicates the end of the time range to retrieve payments for, in RFC 3339
- * format. The range is determined using the `updated_at` field for each
- * Payment.
- * @param sortField The field used to sort results by. The default is `CREATED_AT`.
- * @return Response from the API call
- */
- async listPayments(
- beginTime?: string,
- endTime?: string,
- sortOrder?: string,
- cursor?: string,
- locationId?: string,
- total?: bigint,
- last4?: string,
- cardBrand?: string,
- limit?: number,
- isOfflinePayment?: boolean,
- offlineBeginTime?: string,
- offlineEndTime?: string,
- updatedAtBeginTime?: string,
- updatedAtEndTime?: string,
- sortField?: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/payments');
- const mapped = req.prepareArgs({
- beginTime: [beginTime, optional(string())],
- endTime: [endTime, optional(string())],
- sortOrder: [sortOrder, optional(string())],
- cursor: [cursor, optional(string())],
- locationId: [locationId, optional(string())],
- total: [total, optional(bigint())],
- last4: [last4, optional(string())],
- cardBrand: [cardBrand, optional(string())],
- limit: [limit, optional(number())],
- isOfflinePayment: [isOfflinePayment, optional(boolean())],
- offlineBeginTime: [offlineBeginTime, optional(string())],
- offlineEndTime: [offlineEndTime, optional(string())],
- updatedAtBeginTime: [updatedAtBeginTime, optional(string())],
- updatedAtEndTime: [updatedAtEndTime, optional(string())],
- sortField: [sortField, optional(string())],
- });
- req.query('begin_time', mapped.beginTime);
- req.query('end_time', mapped.endTime);
- req.query('sort_order', mapped.sortOrder);
- req.query('cursor', mapped.cursor);
- req.query('location_id', mapped.locationId);
- req.query('total', mapped.total);
- req.query('last_4', mapped.last4);
- req.query('card_brand', mapped.cardBrand);
- req.query('limit', mapped.limit);
- req.query('is_offline_payment', mapped.isOfflinePayment);
- req.query('offline_begin_time', mapped.offlineBeginTime);
- req.query('offline_end_time', mapped.offlineEndTime);
- req.query('updated_at_begin_time', mapped.updatedAtBeginTime);
- req.query('updated_at_end_time', mapped.updatedAtEndTime);
- req.query('sort_field', mapped.sortField);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listPaymentsResponseSchema, requestOptions);
- }
-
- /**
- * Creates a payment using the provided source. You can use this endpoint
- * to charge a card (credit/debit card or
- * Square gift card) or record a payment that the seller received outside of Square
- * (cash payment from a buyer or a payment that an external entity
- * processed on behalf of the seller).
- *
- * The endpoint creates a
- * `Payment` object and returns it in the response.
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async createPayment(
- body: CreatePaymentRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/payments');
- const mapped = req.prepareArgs({
- body: [body, createPaymentRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(createPaymentResponseSchema, requestOptions);
- }
-
- /**
- * Cancels (voids) a payment identified by the idempotency key that is specified in the
- * request.
- *
- * Use this method when the status of a `CreatePayment` request is unknown (for example, after you send
- * a
- * `CreatePayment` request, a network error occurs and you do not get a response). In this case, you
- * can
- * direct Square to cancel the payment using this endpoint. In the request, you provide the same
- * idempotency key that you provided in your `CreatePayment` request that you want to cancel. After
- * canceling the payment, you can submit your `CreatePayment` request again.
- *
- * Note that if no payment with the specified idempotency key is found, no action is taken and the
- * endpoint
- * returns successfully.
- *
- * @param body An object containing the fields to POST for
- * the request. See the corresponding object
- * definition for field details.
- * @return Response from the API call
- */
- async cancelPaymentByIdempotencyKey(
- body: CancelPaymentByIdempotencyKeyRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/payments/cancel');
- const mapped = req.prepareArgs({
- body: [body, cancelPaymentByIdempotencyKeyRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(
- cancelPaymentByIdempotencyKeyResponseSchema,
- requestOptions
- );
- }
-
- /**
- * Retrieves details for a specific payment.
- *
- * @param paymentId A unique ID for the desired payment.
- * @return Response from the API call
- */
- async getPayment(
- paymentId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ paymentId: [paymentId, string()] });
- req.appendTemplatePath`/v2/payments/${mapped.paymentId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getPaymentResponseSchema, requestOptions);
- }
-
- /**
- * Updates a payment with the APPROVED status.
- * You can update the `amount_money` and `tip_money` using this endpoint.
- *
- * @param paymentId The ID of the payment to update.
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async updatePayment(
- paymentId: string,
- body: UpdatePaymentRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('PUT');
- const mapped = req.prepareArgs({
- paymentId: [paymentId, string()],
- body: [body, updatePaymentRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/payments/${mapped.paymentId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(updatePaymentResponseSchema, requestOptions);
- }
-
- /**
- * Cancels (voids) a payment. You can use this endpoint to cancel a payment with
- * the APPROVED `status`.
- *
- * @param paymentId The ID of the payment to cancel.
- * @return Response from the API call
- */
- async cancelPayment(
- paymentId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({ paymentId: [paymentId, string()] });
- req.appendTemplatePath`/v2/payments/${mapped.paymentId}/cancel`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(cancelPaymentResponseSchema, requestOptions);
- }
-
- /**
- * Completes (captures) a payment.
- * By default, payments are set to complete immediately after they are created.
- *
- * You can use this endpoint to complete a payment with the APPROVED `status`.
- *
- * @param paymentId The unique ID identifying the payment to be completed.
- * @param body An object containing the fields to POST for the request.
- * See the corresponding object definition for field details.
- * @return Response from the API call
- */
- async completePayment(
- paymentId: string,
- body: CompletePaymentRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST');
- const mapped = req.prepareArgs({
- paymentId: [paymentId, string()],
- body: [body, completePaymentRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.appendTemplatePath`/v2/payments/${mapped.paymentId}/complete`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(completePaymentResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/payoutsApi.ts b/src/api/payoutsApi.ts
deleted file mode 100644
index 885620efe..000000000
--- a/src/api/payoutsApi.ts
+++ /dev/null
@@ -1,130 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- GetPayoutResponse,
- getPayoutResponseSchema,
-} from '../models/getPayoutResponse';
-import {
- ListPayoutEntriesResponse,
- listPayoutEntriesResponseSchema,
-} from '../models/listPayoutEntriesResponse';
-import {
- ListPayoutsResponse,
- listPayoutsResponseSchema,
-} from '../models/listPayoutsResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class PayoutsApi extends BaseApi {
- /**
- * Retrieves a list of all payouts for the default location.
- * You can filter payouts by location ID, status, time range, and order them in ascending or descending
- * order.
- * To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
- *
- * @param locationId The ID of the location for which to list the payouts. By default, payouts are
- * returned for the default (main) location associated with the seller.
- * @param status If provided, only payouts with the given status are returned.
- * @param beginTime The timestamp for the beginning of the payout creation time, in RFC 3339 format.
- * Inclusive. Default: The current time minus one year.
- * @param endTime The timestamp for the end of the payout creation time, in RFC 3339 format. Default:
- * The current time.
- * @param sortOrder The order in which payouts are listed.
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * cursor to retrieve the next set of results for the original query. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-
- * api-patterns/pagination). If request parameters change between requests, subsequent
- * results may contain duplicates or missing records.
- * @param limit The maximum number of results to be returned in a single page. It is possible to
- * receive fewer results than the specified limit on a given page. The default value of
- * 100 is also the maximum allowed value. If the provided value is greater than 100, it
- * is ignored and the default value is used instead. Default: `100`
- * @return Response from the API call
- */
- async listPayouts(
- locationId?: string,
- status?: string,
- beginTime?: string,
- endTime?: string,
- sortOrder?: string,
- cursor?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/payouts');
- const mapped = req.prepareArgs({
- locationId: [locationId, optional(string())],
- status: [status, optional(string())],
- beginTime: [beginTime, optional(string())],
- endTime: [endTime, optional(string())],
- sortOrder: [sortOrder, optional(string())],
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('location_id', mapped.locationId);
- req.query('status', mapped.status);
- req.query('begin_time', mapped.beginTime);
- req.query('end_time', mapped.endTime);
- req.query('sort_order', mapped.sortOrder);
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listPayoutsResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves details of a specific payout identified by a payout ID.
- * To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
- *
- * @param payoutId The ID of the payout to retrieve the information for.
- * @return Response from the API call
- */
- async getPayout(
- payoutId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ payoutId: [payoutId, string()] });
- req.appendTemplatePath`/v2/payouts/${mapped.payoutId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getPayoutResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a list of all payout entries for a specific payout.
- * To call this endpoint, set `PAYOUTS_READ` for the OAuth scope.
- *
- * @param payoutId The ID of the payout to retrieve the information for.
- * @param sortOrder The order in which payout entries are listed.
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this cursor
- * to retrieve the next set of results for the original query. For more information, see
- * [Pagination](https://developer.squareup.com/docs/build-basics/common-api-
- * patterns/pagination). If request parameters change between requests, subsequent
- * results may contain duplicates or missing records.
- * @param limit The maximum number of results to be returned in a single page. It is possible to
- * receive fewer results than the specified limit on a given page. The default value of
- * 100 is also the maximum allowed value. If the provided value is greater than 100, it
- * is ignored and the default value is used instead. Default: `100`
- * @return Response from the API call
- */
- async listPayoutEntries(
- payoutId: string,
- sortOrder?: string,
- cursor?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({
- payoutId: [payoutId, string()],
- sortOrder: [sortOrder, optional(string())],
- cursor: [cursor, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('sort_order', mapped.sortOrder);
- req.query('cursor', mapped.cursor);
- req.query('limit', mapped.limit);
- req.appendTemplatePath`/v2/payouts/${mapped.payoutId}/payout-entries`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(listPayoutEntriesResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/refundsApi.ts b/src/api/refundsApi.ts
deleted file mode 100644
index 0f62b7ab2..000000000
--- a/src/api/refundsApi.ts
+++ /dev/null
@@ -1,131 +0,0 @@
-import { ApiResponse, RequestOptions } from '../core';
-import {
- GetPaymentRefundResponse,
- getPaymentRefundResponseSchema,
-} from '../models/getPaymentRefundResponse';
-import {
- ListPaymentRefundsResponse,
- listPaymentRefundsResponseSchema,
-} from '../models/listPaymentRefundsResponse';
-import {
- RefundPaymentRequest,
- refundPaymentRequestSchema,
-} from '../models/refundPaymentRequest';
-import {
- RefundPaymentResponse,
- refundPaymentResponseSchema,
-} from '../models/refundPaymentResponse';
-import { number, optional, string } from '../schema';
-import { BaseApi } from './baseApi';
-
-export class RefundsApi extends BaseApi {
- /**
- * Retrieves a list of refunds for the account making the request.
- *
- * Results are eventually consistent, and new refunds or changes to refunds might take several
- * seconds to appear.
- *
- * The maximum results per page is 100.
- *
- * @param beginTime Indicates the start of the time range to retrieve each `PaymentRefund` for, in RFC
- * 3339 format. The range is determined using the `created_at` field for each
- * `PaymentRefund`. Default: The current time minus one year.
- * @param endTime Indicates the end of the time range to retrieve each `PaymentRefund` for, in RFC
- * 3339 format. The range is determined using the `created_at` field for each
- * `PaymentRefund`. Default: The current time.
- * @param sortOrder The order in which results are listed by `PaymentRefund.created_at`: - `ASC` -
- * Oldest to newest. - `DESC` - Newest to oldest (default).
- * @param cursor A pagination cursor returned by a previous call to this endpoint. Provide this
- * cursor to retrieve the next set of results for the original query. For more
- * information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-
- * api-patterns/pagination).
- * @param locationId Limit results to the location supplied. By default, results are returned for all
- * locations associated with the seller.
- * @param status If provided, only refunds with the given status are returned. For a list of refund
- * status values, see [PaymentRefund](entity:PaymentRefund). Default: If omitted,
- * refunds are returned regardless of their status.
- * @param sourceType If provided, only returns refunds whose payments have the indicated source type.
- * Current values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `CASH`, and `EXTERNAL`. For
- * information about these payment source types, see [Take Payments](https://developer.
- * squareup.com/docs/payments-api/take-payments). Default: If omitted, refunds are
- * returned regardless of the source type.
- * @param limit The maximum number of results to be returned in a single page. It is possible to
- * receive fewer results than the specified limit on a given page. If the supplied
- * value is greater than 100, no more than 100 results are returned. Default: 100
- * @return Response from the API call
- */
- async listPaymentRefunds(
- beginTime?: string,
- endTime?: string,
- sortOrder?: string,
- cursor?: string,
- locationId?: string,
- status?: string,
- sourceType?: string,
- limit?: number,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET', '/v2/refunds');
- const mapped = req.prepareArgs({
- beginTime: [beginTime, optional(string())],
- endTime: [endTime, optional(string())],
- sortOrder: [sortOrder, optional(string())],
- cursor: [cursor, optional(string())],
- locationId: [locationId, optional(string())],
- status: [status, optional(string())],
- sourceType: [sourceType, optional(string())],
- limit: [limit, optional(number())],
- });
- req.query('begin_time', mapped.beginTime);
- req.query('end_time', mapped.endTime);
- req.query('sort_order', mapped.sortOrder);
- req.query('cursor', mapped.cursor);
- req.query('location_id', mapped.locationId);
- req.query('status', mapped.status);
- req.query('source_type', mapped.sourceType);
- req.query('limit', mapped.limit);
- req.authenticate([{ global: true }]);
- return req.callAsJson(listPaymentRefundsResponseSchema, requestOptions);
- }
-
- /**
- * Refunds a payment. You can refund the entire payment amount or a
- * portion of it. You can use this endpoint to refund a card payment or record a
- * refund of a cash or external payment. For more information, see
- * [Refund Payment](https://developer.squareup.com/docs/payments-api/refund-payments).
- *
- * @param body An object containing the fields to POST for the request. See
- * the corresponding object definition for field details.
- * @return Response from the API call
- */
- async refundPayment(
- body: RefundPaymentRequest,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('POST', '/v2/refunds');
- const mapped = req.prepareArgs({
- body: [body, refundPaymentRequestSchema],
- });
- req.header('Content-Type', 'application/json');
- req.json(mapped.body);
- req.authenticate([{ global: true }]);
- return req.callAsJson(refundPaymentResponseSchema, requestOptions);
- }
-
- /**
- * Retrieves a specific refund using the `refund_id`.
- *
- * @param refundId The unique ID for the desired `PaymentRefund`.
- * @return Response from the API call
- */
- async getPaymentRefund(
- refundId: string,
- requestOptions?: RequestOptions
- ): Promise> {
- const req = this.createRequest('GET');
- const mapped = req.prepareArgs({ refundId: [refundId, string()] });
- req.appendTemplatePath`/v2/refunds/${mapped.refundId}`;
- req.authenticate([{ global: true }]);
- return req.callAsJson(getPaymentRefundResponseSchema, requestOptions);
- }
-}
diff --git a/src/api/resources/applePay/client/Client.ts b/src/api/resources/applePay/client/Client.ts
new file mode 100644
index 000000000..4c642535f
--- /dev/null
+++ b/src/api/resources/applePay/client/Client.ts
@@ -0,0 +1,137 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../environments";
+import * as core from "../../../../core";
+import * as Square from "../../../index";
+import * as serializers from "../../../../serialization/index";
+import urlJoin from "url-join";
+import * as errors from "../../../../errors/index";
+
+export declare namespace ApplePay {
+ export interface Options {
+ environment?: core.Supplier;
+ /** Specify a custom URL to connect the client to. */
+ baseUrl?: core.Supplier;
+ token?: core.Supplier;
+ /** Override the Square-Version header */
+ version?: "2025-01-23";
+ fetcher?: core.FetchFunction;
+ }
+
+ export interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
+ timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
+ maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
+ /** Override the Square-Version header */
+ version?: "2025-01-23";
+ /** Additional headers to include in the request. */
+ headers?: Record;
+ }
+}
+
+export class ApplePay {
+ constructor(protected readonly _options: ApplePay.Options = {}) {}
+
+ /**
+ * Activates a domain for use with Apple Pay on the Web and Square. A validation
+ * is performed on this domain by Apple to ensure that it is properly set up as
+ * an Apple Pay enabled domain.
+ *
+ * This endpoint provides an easy way for platform developers to bulk activate
+ * Apple Pay on the Web with Square for merchants using their platform.
+ *
+ * Note: You will need to host a valid domain verification file on your domain to support Apple Pay. The
+ * current version of this file is always available at https://app.squareup.com/digital-wallets/apple-pay/apple-developer-merchantid-domain-association,
+ * and should be hosted at `.well_known/apple-developer-merchantid-domain-association` on your
+ * domain. This file is subject to change; we strongly recommend checking for updates regularly and avoiding
+ * long-lived caches that might not keep in sync with the correct file version.
+ *
+ * To learn more about the Web Payments SDK and how to add Apple Pay, see [Take an Apple Pay Payment](https://developer.squareup.com/docs/web-payments/apple-pay).
+ *
+ * @param {Square.RegisterDomainRequest} request
+ * @param {ApplePay.RequestOptions} requestOptions - Request-specific configuration.
+ *
+ * @example
+ * await client.applePay.registerDomain({
+ * domainName: "example.com"
+ * })
+ */
+ public async registerDomain(
+ request: Square.RegisterDomainRequest,
+ requestOptions?: ApplePay.RequestOptions,
+ ): Promise {
+ const _response = await (this._options.fetcher ?? core.fetcher)({
+ url: urlJoin(
+ (await core.Supplier.get(this._options.baseUrl)) ??
+ (await core.Supplier.get(this._options.environment)) ??
+ environments.SquareEnvironment.Production,
+ "v2/apple-pay/domains",
+ ),
+ method: "POST",
+ headers: {
+ Authorization: await this._getAuthorizationHeader(),
+ "Square-Version": requestOptions?.version ?? this._options?.version ?? "2025-01-23",
+ "X-Fern-Language": "JavaScript",
+ "X-Fern-SDK-Name": "square",
+ "X-Fern-SDK-Version": "40.0.0",
+ "User-Agent": "square/40.0.0",
+ "X-Fern-Runtime": core.RUNTIME.type,
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
+ ...requestOptions?.headers,
+ },
+ contentType: "application/json",
+ requestType: "json",
+ body: serializers.RegisterDomainRequest.jsonOrThrow(request, {
+ unrecognizedObjectKeys: "strip",
+ omitUndefined: true,
+ }),
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
+ maxRetries: requestOptions?.maxRetries,
+ abortSignal: requestOptions?.abortSignal,
+ });
+ if (_response.ok) {
+ return serializers.RegisterDomainResponse.parseOrThrow(_response.body, {
+ unrecognizedObjectKeys: "passthrough",
+ allowUnrecognizedUnionMembers: true,
+ allowUnrecognizedEnumValues: true,
+ skipValidation: true,
+ breadcrumbsPrefix: ["response"],
+ });
+ }
+
+ if (_response.error.reason === "status-code") {
+ throw new errors.SquareError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.body,
+ });
+ }
+
+ switch (_response.error.reason) {
+ case "non-json":
+ throw new errors.SquareError({
+ statusCode: _response.error.statusCode,
+ body: _response.error.rawBody,
+ });
+ case "timeout":
+ throw new errors.SquareTimeoutError("Timeout exceeded when calling POST /v2/apple-pay/domains.");
+ case "unknown":
+ throw new errors.SquareError({
+ message: _response.error.errorMessage,
+ });
+ }
+ }
+
+ protected async _getAuthorizationHeader(): Promise {
+ const bearer = (await core.Supplier.get(this._options.token)) ?? process?.env["SQUARE_TOKEN"];
+ if (bearer != null) {
+ return `Bearer ${bearer}`;
+ }
+
+ return undefined;
+ }
+}
diff --git a/src/api/resources/applePay/client/index.ts b/src/api/resources/applePay/client/index.ts
new file mode 100644
index 000000000..415726b7f
--- /dev/null
+++ b/src/api/resources/applePay/client/index.ts
@@ -0,0 +1 @@
+export * from "./requests";
diff --git a/src/api/resources/applePay/client/requests/RegisterDomainRequest.ts b/src/api/resources/applePay/client/requests/RegisterDomainRequest.ts
new file mode 100644
index 000000000..d2aa825f6
--- /dev/null
+++ b/src/api/resources/applePay/client/requests/RegisterDomainRequest.ts
@@ -0,0 +1,14 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+/**
+ * @example
+ * {
+ * domainName: "example.com"
+ * }
+ */
+export interface RegisterDomainRequest {
+ /** A domain name as described in RFC-1034 that will be registered with ApplePay. */
+ domainName: string;
+}
diff --git a/src/api/resources/applePay/client/requests/index.ts b/src/api/resources/applePay/client/requests/index.ts
new file mode 100644
index 000000000..11c98648b
--- /dev/null
+++ b/src/api/resources/applePay/client/requests/index.ts
@@ -0,0 +1 @@
+export { type RegisterDomainRequest } from "./RegisterDomainRequest";
diff --git a/src/api/resources/applePay/index.ts b/src/api/resources/applePay/index.ts
new file mode 100644
index 000000000..5ec76921e
--- /dev/null
+++ b/src/api/resources/applePay/index.ts
@@ -0,0 +1 @@
+export * from "./client";
diff --git a/src/api/resources/bankAccounts/client/Client.ts b/src/api/resources/bankAccounts/client/Client.ts
new file mode 100644
index 000000000..6f91ce9e7
--- /dev/null
+++ b/src/api/resources/bankAccounts/client/Client.ts
@@ -0,0 +1,289 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+
+import * as environments from "../../../../environments";
+import * as core from "../../../../core";
+import * as Square from "../../../index";
+import urlJoin from "url-join";
+import * as serializers from "../../../../serialization/index";
+import * as errors from "../../../../errors/index";
+
+export declare namespace BankAccounts {
+ export interface Options {
+ environment?: core.Supplier;
+ /** Specify a custom URL to connect the client to. */
+ baseUrl?: core.Supplier;
+ token?: core.Supplier;
+ /** Override the Square-Version header */
+ version?: "2025-01-23";
+ fetcher?: core.FetchFunction;
+ }
+
+ export interface RequestOptions {
+ /** The maximum time to wait for a response in seconds. */
+ timeoutInSeconds?: number;
+ /** The number of times to retry the request. Defaults to 2. */
+ maxRetries?: number;
+ /** A hook to abort the request. */
+ abortSignal?: AbortSignal;
+ /** Override the Square-Version header */
+ version?: "2025-01-23";
+ /** Additional headers to include in the request. */
+ headers?: Record