diff --git a/.github/actions/cache/action.yml b/.github/actions/cache/action.yml
index 545c71c5cb..ff7cc1fecc 100644
--- a/.github/actions/cache/action.yml
+++ b/.github/actions/cache/action.yml
@@ -29,76 +29,76 @@ runs:
- name: Restore built JavaScript common client
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-common/dist
- key: ${{ runner.os }}-1-js-client-common-${{ hashFiles('clients/algoliasearch-client-javascript/client-common/**') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/client-common/dist
+ key: ${{ runner.os }}-1-js-client-common-${{ hashFiles('clients/algoliasearch-client-javascript/packages/client-common/**') }}
- name: Restore built JavaScript node requester
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/requester-node-http/dist
- key: ${{ runner.os }}-1-js-node-requester-${{ hashFiles('clients/algoliasearch-client-javascript/requester-node-http/**') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/requester-node-http/dist
+ key: ${{ runner.os }}-1-js-node-requester-${{ hashFiles('clients/algoliasearch-client-javascript/packages/requester-node-http/**') }}
- name: Restore built JavaScript browser requester
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/requester-browser-xhr/dist
- key: ${{ runner.os }}-1-js-browser-requester-${{ hashFiles('clients/algoliasearch-client-javascript/requester-browser-xhr/**') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/requester-browser-xhr/dist
+ key: ${{ runner.os }}-1-js-browser-requester-${{ hashFiles('clients/algoliasearch-client-javascript/packages/requester-browser-xhr/**') }}
- name: Restore built JavaScript search client
if: ${{ inputs.job == 'cts' }}
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-search/dist
- key: ${{ runner.os }}-1-js-client-search-${{ hashFiles('clients/algoliasearch-client-javascript/client-search/**') }}-${{ hashFiles('specs/dist/search.yml') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/client-search/dist
+ key: ${{ runner.os }}-1-js-client-search-${{ hashFiles('clients/algoliasearch-client-javascript/packages/client-search/**') }}-${{ hashFiles('specs/dist/search.yml') }}
- name: Restore built JavaScript recommend client
if: ${{ inputs.job == 'cts' }}
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/recommend/dist
- key: ${{ runner.os }}-1-js-client-recommend-${{ hashFiles('clients/algoliasearch-client-javascript/recommend/**') }}-${{ hashFiles('specs/dist/recommend.yml') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/recommend/dist
+ key: ${{ runner.os }}-1-js-client-recommend-${{ hashFiles('clients/algoliasearch-client-javascript/packages/recommend/**') }}-${{ hashFiles('specs/dist/recommend.yml') }}
- name: Restore built JavaScript query-suggestions client
if: ${{ inputs.job == 'cts' }}
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-query-suggestions/dist
- key: ${{ runner.os }}-1-js-client-query-suggestions-${{ hashFiles('clients/algoliasearch-client-javascript/client-query-suggestions/**') }}-${{ hashFiles('specs/dist/query-suggestions.yml') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/client-query-suggestions/dist
+ key: ${{ runner.os }}-1-js-client-query-suggestions-${{ hashFiles('clients/algoliasearch-client-javascript/packages/client-query-suggestions/**') }}-${{ hashFiles('specs/dist/query-suggestions.yml') }}
- name: Restore built JavaScript personalization client
if: ${{ inputs.job == 'cts' }}
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-personalization/dist
- key: ${{ runner.os }}-1-js-client-personalization-${{ hashFiles('clients/algoliasearch-client-javascript/client-personalization/**') }}-${{ hashFiles('specs/dist/personalization.yml') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/client-personalization/dist
+ key: ${{ runner.os }}-1-js-client-personalization-${{ hashFiles('clients/algoliasearch-client-javascript/packages/client-personalization/**') }}-${{ hashFiles('specs/dist/personalization.yml') }}
- name: Restore built JavaScript analytics client
if: ${{ inputs.job == 'cts' }}
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-analytics/dist
- key: ${{ runner.os }}-1-js-client-analytics-${{ hashFiles('clients/algoliasearch-client-javascript/client-analytics/**') }}-${{ hashFiles('specs/dist/analytics.yml') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/client-analytics/dist
+ key: ${{ runner.os }}-1-js-client-analytics-${{ hashFiles('clients/algoliasearch-client-javascript/packages/client-analytics/**') }}-${{ hashFiles('specs/dist/analytics.yml') }}
- name: Restore built JavaScript abtesting client
if: ${{ inputs.job == 'cts' }}
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-abtesting/dist
- key: ${{ runner.os }}-1-js-client-abtesting-${{ hashFiles('clients/algoliasearch-client-javascript/client-abtesting/**') }}-${{ hashFiles('specs/dist/abtesting.yml') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/client-abtesting/dist
+ key: ${{ runner.os }}-1-js-client-abtesting-${{ hashFiles('clients/algoliasearch-client-javascript/packages/client-abtesting/**') }}-${{ hashFiles('specs/dist/abtesting.yml') }}
- name: Restore built JavaScript insights client
if: ${{ inputs.job == 'cts' }}
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-insights/dist
- key: ${{ runner.os }}-1-js-client-insights-${{ hashFiles('clients/algoliasearch-client-javascript/client-insights/**') }}-${{ hashFiles('specs/dist/insights.yml') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/client-insights/dist
+ key: ${{ runner.os }}-1-js-client-insights-${{ hashFiles('clients/algoliasearch-client-javascript/packages/client-insights/**') }}-${{ hashFiles('specs/dist/insights.yml') }}
- name: Restore built JavaScript sources client
if: ${{ inputs.job == 'cts' }}
uses: actions/cache@v2
with:
- path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/client-sources/dist
- key: ${{ runner.os }}-1-js-client-sources-${{ hashFiles('clients/algoliasearch-client-javascript/client-sources/**') }}-${{ hashFiles('specs/dist/sources.yml') }}
+ path: /home/runner/work/api-clients-automation/api-clients-automation/clients/algoliasearch-client-javascript/packages/client-sources/dist
+ key: ${{ runner.os }}-1-js-client-sources-${{ hashFiles('clients/algoliasearch-client-javascript/packages/client-sources/**') }}-${{ hashFiles('specs/dist/sources.yml') }}
- name: Restore built Java client
if: ${{ inputs.job == 'cts' }}
diff --git a/clients/README.md b/clients/README.md
index cb4a2a30dd..a142b5450f 100644
--- a/clients/README.md
+++ b/clients/README.md
@@ -10,14 +10,14 @@ This folder hosts the generated clients.
### JavaScript
-- [@algolia/client-abtesting](./algoliasearch-client-javascript/client-abtesting/): The Algolia AB testing client.
-- [@algolia/client-analytics](./algoliasearch-client-javascript/client-analytics/): The Algolia analytics client.
-- [@algolia/client-insights](./algoliasearch-client-javascript/client-insights/): The Algolia insights client.
-- [@algolia/client-personalization](./algoliasearch-client-javascript/client-personalization/): The Algolia personalization client.
-- [@algolia/client-query-suggestions](./algoliasearch-client-javascript/client-query-suggestions/): The Algolia query suggestions client.
-- [@algolia/client-search](./algoliasearch-client-javascript/client-search/): The Algolia search client.
-- [@algolia/recommend](./algoliasearch-client-javascript/recommend/): The Algolia recommend client.
-- [@algolia/sources](./algoliasearch-client-javascript/client-sources/): The Algolia sources client.
-- [@algolia/client-common](./algoliasearch-client-javascript/client-common/): The JavaScript clients common files.
-- [@algolia/requester-browser-xhr](./algoliasearch-client-javascript/requester-browser-xhr/): Browser XHR requester for the Algolia JavaScript clients.
-- [@algolia/requester-node-http](./algoliasearch-client-javascript/requester-node-http/): Node.js HTTP requester for the Algolia JavaScript clients.
+- [@algolia/client-abtesting](./algoliasearch-client-javascript/packages/client-abtesting/): The Algolia AB testing client.
+- [@algolia/client-analytics](./algoliasearch-client-javascript/packages/client-analytics/): The Algolia analytics client.
+- [@algolia/client-insights](./algoliasearch-client-javascript/packages/client-insights/): The Algolia insights client.
+- [@algolia/client-personalization](./algoliasearch-client-javascript/packages/client-personalization/): The Algolia personalization client.
+- [@algolia/client-query-suggestions](./algoliasearch-client-javascript/packages/client-query-suggestions/): The Algolia query suggestions client.
+- [@algolia/client-search](./algoliasearch-client-javascript/packages/client-search/): The Algolia search client.
+- [@algolia/recommend](./algoliasearch-client-javascript/packages/recommend/): The Algolia recommend client.
+- [@algolia/sources](./algoliasearch-client-javascript/packages/client-sources/): The Algolia sources client.
+- [@algolia/client-common](./algoliasearch-client-javascript/packages/client-common/): The JavaScript clients common files.
+- [@algolia/requester-browser-xhr](./algoliasearch-client-javascript/packages/requester-browser-xhr/): Browser XHR requester for the Algolia JavaScript clients.
+- [@algolia/requester-node-http](./algoliasearch-client-javascript/packages/requester-node-http/): Node.js HTTP requester for the Algolia JavaScript clients.
diff --git a/clients/algoliasearch-client-javascript/.gitignore b/clients/algoliasearch-client-javascript/.gitignore
new file mode 100644
index 0000000000..e502a1555d
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/.gitignore
@@ -0,0 +1,10 @@
+**dist
+**.openapi-generator
+
+yarn-error.log
+
+.yarn/*
+!.yarn/releases
+!.yarn/plugins
+
+node_modules
diff --git a/clients/algoliasearch-client-javascript/.nvmrc b/clients/algoliasearch-client-javascript/.nvmrc
new file mode 100644
index 0000000000..07c142ffe2
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/.nvmrc
@@ -0,0 +1 @@
+16.13.1
diff --git a/clients/algoliasearch-client-javascript/README.md b/clients/algoliasearch-client-javascript/README.md
new file mode 100644
index 0000000000..2b1a128fdc
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/README.md
@@ -0,0 +1,30 @@
+....
+
+
+
+
+
+
+
The perfect starting point to integrate Algolia within your JavaScript project
+
+
+
+
+
+
+
+
+
+
+ Documentation •
+ InstantSearch •
+ Community Forum •
+ Stack Overflow •
+ Report a bug •
+ FAQ •
+ Support
+
+
+# Contributing to this repository
+
+The Algolia API clients are automatically generated, you can find everything here https://github.com/algolia/api-clients-automation
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/.gitignore b/clients/algoliasearch-client-javascript/client-abtesting/.gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/clients/algoliasearch-client-javascript/client-abtesting/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/tsconfig.json b/clients/algoliasearch-client-javascript/client-abtesting/tsconfig.json
deleted file mode 100644
index 2613b3ebad..0000000000
--- a/clients/algoliasearch-client-javascript/client-abtesting/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "model", "node.ts", "browser.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/client-analytics/.gitignore b/clients/algoliasearch-client-javascript/client-analytics/.gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/clients/algoliasearch-client-javascript/client-analytics/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/clients/algoliasearch-client-javascript/client-analytics/tsconfig.json b/clients/algoliasearch-client-javascript/client-analytics/tsconfig.json
deleted file mode 100644
index 2613b3ebad..0000000000
--- a/clients/algoliasearch-client-javascript/client-analytics/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "model", "node.ts", "browser.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/client-common/src/cache/Cache.ts b/clients/algoliasearch-client-javascript/client-common/src/cache/Cache.ts
deleted file mode 100644
index 625862660c..0000000000
--- a/clients/algoliasearch-client-javascript/client-common/src/cache/Cache.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-export interface Cache {
- /**
- * Gets the value of the given `key`.
- */
- get: (
- key: Record | string,
- defaultValue: () => Promise
- ) => Promise;
-
- /**
- * Sets the given value with the given `key`.
- */
- set: (
- key: Record | string,
- value: TValue
- ) => Promise;
-
- /**
- * Deletes the given `key`.
- */
- delete: (key: Record | string) => Promise;
-
- /**
- * Clears the cache.
- */
- clear: () => Promise;
-}
diff --git a/clients/algoliasearch-client-javascript/client-common/src/cache/MemoryCache.ts b/clients/algoliasearch-client-javascript/client-common/src/cache/MemoryCache.ts
deleted file mode 100644
index f7853f39bc..0000000000
--- a/clients/algoliasearch-client-javascript/client-common/src/cache/MemoryCache.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import type { Cache } from './Cache';
-
-export class MemoryCache implements Cache {
- private cache: Record = {};
-
- async get(
- key: Record | string,
- defaultValue: () => Promise
- ): Promise {
- const keyAsString = JSON.stringify(key);
-
- if (keyAsString in this.cache) {
- return Promise.resolve(this.cache[keyAsString]);
- }
-
- return await defaultValue();
- }
-
- set(
- key: Record | string,
- value: TValue
- ): Promise {
- this.cache[JSON.stringify(key)] = value;
-
- return Promise.resolve(value);
- }
-
- delete(key: Record | string): Promise {
- delete this.cache[JSON.stringify(key)];
-
- return Promise.resolve();
- }
-
- clear(): Promise {
- this.cache = {};
-
- return Promise.resolve();
- }
-}
diff --git a/clients/algoliasearch-client-javascript/client-common/src/cache/index.ts b/clients/algoliasearch-client-javascript/client-common/src/cache/index.ts
deleted file mode 100644
index a0d120f82b..0000000000
--- a/clients/algoliasearch-client-javascript/client-common/src/cache/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export * from './Cache';
-export * from './MemoryCache';
diff --git a/clients/algoliasearch-client-javascript/client-insights/.gitignore b/clients/algoliasearch-client-javascript/client-insights/.gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/clients/algoliasearch-client-javascript/client-insights/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/clients/algoliasearch-client-javascript/client-insights/tsconfig.json b/clients/algoliasearch-client-javascript/client-insights/tsconfig.json
deleted file mode 100644
index 2613b3ebad..0000000000
--- a/clients/algoliasearch-client-javascript/client-insights/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "model", "node.ts", "browser.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/client-personalization/.gitignore b/clients/algoliasearch-client-javascript/client-personalization/.gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/clients/algoliasearch-client-javascript/client-personalization/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/clients/algoliasearch-client-javascript/client-personalization/tsconfig.json b/clients/algoliasearch-client-javascript/client-personalization/tsconfig.json
deleted file mode 100644
index 2613b3ebad..0000000000
--- a/clients/algoliasearch-client-javascript/client-personalization/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "model", "node.ts", "browser.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/.gitignore b/clients/algoliasearch-client-javascript/client-query-suggestions/.gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/clients/algoliasearch-client-javascript/client-query-suggestions/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/client-query-suggestions/.openapi-generator-ignore
deleted file mode 100644
index 000abf8f71..0000000000
--- a/clients/algoliasearch-client-javascript/client-query-suggestions/.openapi-generator-ignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-git_push.sh
-model/models.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/tsconfig.json b/clients/algoliasearch-client-javascript/client-query-suggestions/tsconfig.json
deleted file mode 100644
index 2613b3ebad..0000000000
--- a/clients/algoliasearch-client-javascript/client-query-suggestions/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "model", "node.ts", "browser.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/client-search/.gitignore b/clients/algoliasearch-client-javascript/client-search/.gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/clients/algoliasearch-client-javascript/client-search/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/clients/algoliasearch-client-javascript/client-search/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/client-search/.openapi-generator-ignore
deleted file mode 100644
index 000abf8f71..0000000000
--- a/clients/algoliasearch-client-javascript/client-search/.openapi-generator-ignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-git_push.sh
-model/models.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/tsconfig.json b/clients/algoliasearch-client-javascript/client-search/tsconfig.json
deleted file mode 100644
index 2613b3ebad..0000000000
--- a/clients/algoliasearch-client-javascript/client-search/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "model", "node.ts", "browser.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/client-sources/.gitignore b/clients/algoliasearch-client-javascript/client-sources/.gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/clients/algoliasearch-client-javascript/client-sources/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/clients/algoliasearch-client-javascript/client-sources/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/client-sources/.openapi-generator-ignore
deleted file mode 100644
index 000abf8f71..0000000000
--- a/clients/algoliasearch-client-javascript/client-sources/.openapi-generator-ignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-git_push.sh
-model/models.ts
diff --git a/clients/algoliasearch-client-javascript/client-sources/tsconfig.json b/clients/algoliasearch-client-javascript/client-sources/tsconfig.json
deleted file mode 100644
index 2613b3ebad..0000000000
--- a/clients/algoliasearch-client-javascript/client-sources/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "model", "node.ts", "browser.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/package.json b/clients/algoliasearch-client-javascript/package.json
new file mode 100644
index 0000000000..725aebd543
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/package.json
@@ -0,0 +1,21 @@
+{
+ "name": "algoliasearch-client-javascript",
+ "version": "5.0.0",
+ "workspaces": [
+ "packages/*"
+ ],
+ "private": true,
+ "scripts": {
+ "build:utils": "yarn workspace @algolia/client-common build && yarn workspace @algolia/requester-node-http build && yarn workspace @algolia/requester-browser-xhr build",
+ "clean:utils": "yarn workspace @algolia/client-common clean && yarn workspace @algolia/requester-node-http clean && yarn workspace @algolia/requester-browser-xhr clean",
+ "clean": "rm -rf packages/*/dist",
+ "test:types": "yarn tsc --noEmit"
+ },
+ "devDependencies": {
+ "typescript": "4.5.4"
+ },
+ "engines": {
+ "node": "^14.0.0",
+ "yarn": "^3.0.0"
+ }
+}
diff --git a/clients/algoliasearch-client-javascript/client-analytics/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/packages/client-abtesting/.openapi-generator-ignore
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-analytics/.openapi-generator-ignore
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/.openapi-generator-ignore
index 000abf8f71..29b08dc3a5 100644
--- a/clients/algoliasearch-client-javascript/client-analytics/.openapi-generator-ignore
+++ b/clients/algoliasearch-client-javascript/packages/client-abtesting/.openapi-generator-ignore
@@ -6,3 +6,4 @@
git_push.sh
model/models.ts
+.gitignore
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/browser.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/browser.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-abtesting/browser.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/browser.ts
index 9e88d794a9..cf297e23e6 100644
--- a/clients/algoliasearch-client-javascript/client-abtesting/browser.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-abtesting/browser.ts
@@ -5,7 +5,6 @@ import { createAbtestingApi } from './src/abtestingApi';
import type { AbtestingApi, Region } from './src/abtestingApi';
export * from './src/abtestingApi';
-export * from '@algolia/client-common';
export function abtestingApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/aBTest.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/aBTest.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/aBTest.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/aBTest.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/aBTestResponse.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/aBTestResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/aBTestResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/aBTestResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/abTestsVariant.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/abTestsVariant.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/abTestsVariant.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/abTestsVariant.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/abTestsVariantSearchParams.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/abTestsVariantSearchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/abTestsVariantSearchParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/abTestsVariantSearchParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/addABTestsRequest.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/addABTestsRequest.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/addABTestsRequest.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/addABTestsRequest.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/addABTestsVariant.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/addABTestsVariant.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/addABTestsVariant.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/addABTestsVariant.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/customSearchParams.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/customSearchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/customSearchParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/customSearchParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/errorBase.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/errorBase.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/errorBase.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/errorBase.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/listABTestsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/listABTestsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/listABTestsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/listABTestsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/model/variant.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/model/variant.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/model/variant.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/model/variant.ts
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/node.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/node.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-abtesting/node.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/node.ts
index ec1312f6f0..1a0d587d0b 100644
--- a/clients/algoliasearch-client-javascript/client-abtesting/node.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-abtesting/node.ts
@@ -5,7 +5,6 @@ import { createAbtestingApi } from './src/abtestingApi';
import type { AbtestingApi, Region } from './src/abtestingApi';
export * from './src/abtestingApi';
-export * from '@algolia/client-common';
export function abtestingApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/package.json b/clients/algoliasearch-client-javascript/packages/client-abtesting/package.json
similarity index 94%
rename from clients/algoliasearch-client-javascript/client-abtesting/package.json
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/package.json
index d3f2fba1a6..594d47a2a7 100644
--- a/clients/algoliasearch-client-javascript/client-abtesting/package.json
+++ b/clients/algoliasearch-client-javascript/packages/client-abtesting/package.json
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/src/abtestingApi.ts b/clients/algoliasearch-client-javascript/packages/client-abtesting/src/abtestingApi.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-abtesting/src/abtestingApi.ts
rename to clients/algoliasearch-client-javascript/packages/client-abtesting/src/abtestingApi.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-abtesting/tsconfig.json b/clients/algoliasearch-client-javascript/packages/client-abtesting/tsconfig.json
new file mode 100644
index 0000000000..8c122c680a
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-abtesting/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ },
+ "include": ["src", "model", "node.ts", "browser.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/client-abtesting/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/packages/client-analytics/.openapi-generator-ignore
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-abtesting/.openapi-generator-ignore
rename to clients/algoliasearch-client-javascript/packages/client-analytics/.openapi-generator-ignore
index 000abf8f71..29b08dc3a5 100644
--- a/clients/algoliasearch-client-javascript/client-abtesting/.openapi-generator-ignore
+++ b/clients/algoliasearch-client-javascript/packages/client-analytics/.openapi-generator-ignore
@@ -6,3 +6,4 @@
git_push.sh
model/models.ts
+.gitignore
diff --git a/clients/algoliasearch-client-javascript/client-analytics/browser.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/browser.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-analytics/browser.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/browser.ts
index 57aa6ee421..f1b0c3ea51 100644
--- a/clients/algoliasearch-client-javascript/client-analytics/browser.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-analytics/browser.ts
@@ -5,7 +5,6 @@ import { createAnalyticsApi } from './src/analyticsApi';
import type { AnalyticsApi, Region } from './src/analyticsApi';
export * from './src/analyticsApi';
-export * from '@algolia/client-common';
export function analyticsApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/errorBase.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/errorBase.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/errorBase.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/errorBase.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getAverageClickPositionResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getAverageClickPositionResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getAverageClickPositionResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getAverageClickPositionResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getAverageClickPositionResponseDates.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getAverageClickPositionResponseDates.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getAverageClickPositionResponseDates.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getAverageClickPositionResponseDates.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getClickPositionsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickPositionsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getClickPositionsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickPositionsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getClickPositionsResponsePositions.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickPositionsResponsePositions.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getClickPositionsResponsePositions.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickPositionsResponsePositions.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getClickThroughRateResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickThroughRateResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getClickThroughRateResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickThroughRateResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getClickThroughRateResponseDates.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickThroughRateResponseDates.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getClickThroughRateResponseDates.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getClickThroughRateResponseDates.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getConversationRateResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getConversationRateResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getConversationRateResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getConversationRateResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getConversationRateResponseDates.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getConversationRateResponseDates.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getConversationRateResponseDates.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getConversationRateResponseDates.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getNoClickRateResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getNoClickRateResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getNoClickRateResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getNoClickRateResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getNoClickRateResponseDates.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getNoClickRateResponseDates.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getNoClickRateResponseDates.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getNoClickRateResponseDates.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getNoResultsRateResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getNoResultsRateResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getNoResultsRateResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getNoResultsRateResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getNoResultsRateResponseDates.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getNoResultsRateResponseDates.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getNoResultsRateResponseDates.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getNoResultsRateResponseDates.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getSearchesCountResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesCountResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getSearchesCountResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesCountResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getSearchesCountResponseDates.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesCountResponseDates.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getSearchesCountResponseDates.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesCountResponseDates.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getSearchesNoClicksResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesNoClicksResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getSearchesNoClicksResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesNoClicksResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getSearchesNoClicksResponseSearches.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesNoClicksResponseSearches.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getSearchesNoClicksResponseSearches.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesNoClicksResponseSearches.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getSearchesNoResultsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesNoResultsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getSearchesNoResultsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesNoResultsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getSearchesNoResultsResponseSearches.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesNoResultsResponseSearches.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getSearchesNoResultsResponseSearches.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getSearchesNoResultsResponseSearches.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getStatusResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getStatusResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getStatusResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getStatusResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopCountriesResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopCountriesResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopCountriesResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopCountriesResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopCountriesResponseCountries.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopCountriesResponseCountries.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopCountriesResponseCountries.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopCountriesResponseCountries.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterAttribute.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFilterAttribute.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterAttribute.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFilterAttribute.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterAttributesResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFilterAttributesResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterAttributesResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFilterAttributesResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterForAttribute.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFilterForAttribute.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterForAttribute.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFilterForAttribute.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterForAttributeResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFilterForAttributeResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterForAttributeResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFilterForAttributeResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopFiltersNoResultsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFiltersNoResultsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopFiltersNoResultsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFiltersNoResultsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopFiltersNoResultsValue.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFiltersNoResultsValue.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopFiltersNoResultsValue.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFiltersNoResultsValue.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopFiltersNoResultsValues.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFiltersNoResultsValues.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopFiltersNoResultsValues.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopFiltersNoResultsValues.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopHitsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopHitsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopHitsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopHitsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopHitsResponseHits.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopHitsResponseHits.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopHitsResponseHits.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopHitsResponseHits.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopHitsResponseWithAnalytics.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopHitsResponseWithAnalytics.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopHitsResponseWithAnalytics.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopHitsResponseWithAnalytics.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopHitsResponseWithAnalyticsHits.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopHitsResponseWithAnalyticsHits.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopHitsResponseWithAnalyticsHits.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopHitsResponseWithAnalyticsHits.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopSearchesResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopSearchesResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopSearchesResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopSearchesResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopSearchesResponseWithAnalytics.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopSearchesResponseWithAnalytics.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopSearchesResponseWithAnalytics.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopSearchesResponseWithAnalytics.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getTopSearchesResponseWithAnalyticsSearches.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopSearchesResponseWithAnalyticsSearches.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getTopSearchesResponseWithAnalyticsSearches.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getTopSearchesResponseWithAnalyticsSearches.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/model/getUsersCountResponse.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/model/getUsersCountResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/model/getUsersCountResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/model/getUsersCountResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-analytics/node.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/node.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-analytics/node.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/node.ts
index 38d1bc79d6..1570bf9fd0 100644
--- a/clients/algoliasearch-client-javascript/client-analytics/node.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-analytics/node.ts
@@ -5,7 +5,6 @@ import { createAnalyticsApi } from './src/analyticsApi';
import type { AnalyticsApi, Region } from './src/analyticsApi';
export * from './src/analyticsApi';
-export * from '@algolia/client-common';
export function analyticsApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-analytics/package.json b/clients/algoliasearch-client-javascript/packages/client-analytics/package.json
similarity index 94%
rename from clients/algoliasearch-client-javascript/client-analytics/package.json
rename to clients/algoliasearch-client-javascript/packages/client-analytics/package.json
index 917749d0f9..e1557be979 100644
--- a/clients/algoliasearch-client-javascript/client-analytics/package.json
+++ b/clients/algoliasearch-client-javascript/packages/client-analytics/package.json
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/clients/algoliasearch-client-javascript/client-analytics/src/analyticsApi.ts b/clients/algoliasearch-client-javascript/packages/client-analytics/src/analyticsApi.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-analytics/src/analyticsApi.ts
rename to clients/algoliasearch-client-javascript/packages/client-analytics/src/analyticsApi.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-analytics/tsconfig.json b/clients/algoliasearch-client-javascript/packages/client-analytics/tsconfig.json
new file mode 100644
index 0000000000..8c122c680a
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-analytics/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ },
+ "include": ["src", "model", "node.ts", "browser.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/client-common/index.ts b/clients/algoliasearch-client-javascript/packages/client-common/index.ts
similarity index 90%
rename from clients/algoliasearch-client-javascript/client-common/index.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/index.ts
index c345b4ad6f..3e44b67f2f 100644
--- a/clients/algoliasearch-client-javascript/client-common/index.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-common/index.ts
@@ -1,4 +1,4 @@
-export * from './src/cache';
+export * from './src/createMemoryCache';
export * from './src/createAuth';
export * from './src/createUserAgent';
export * from './src/errors';
diff --git a/clients/algoliasearch-client-javascript/client-common/package.json b/clients/algoliasearch-client-javascript/packages/client-common/package.json
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/package.json
rename to clients/algoliasearch-client-javascript/packages/client-common/package.json
diff --git a/clients/algoliasearch-client-javascript/client-common/src/Response.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/Response.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/Response.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/Response.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/StatefulHost.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/StatefulHost.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/StatefulHost.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/StatefulHost.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/Transporter.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/Transporter.ts
similarity index 97%
rename from clients/algoliasearch-client-javascript/client-common/src/Transporter.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/Transporter.ts
index 4e9e8d9630..afcb7d3dc7 100644
--- a/clients/algoliasearch-client-javascript/client-common/src/Transporter.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-common/src/Transporter.ts
@@ -1,7 +1,7 @@
import { isRetryable, isSuccess } from './Response';
import { StatefulHost } from './StatefulHost';
-import type { Cache } from './cache/Cache';
-import { MemoryCache } from './cache/MemoryCache';
+import { createMemoryCache } from './createMemoryCache';
+import type { Cache } from './createMemoryCache';
import { RetryError } from './errors';
import {
deserializeFailure,
@@ -53,7 +53,7 @@ export class Transporter {
requester: Requester;
}) {
this.hosts = hosts;
- this.hostsCache = new MemoryCache();
+ this.hostsCache = createMemoryCache();
this.baseHeaders = baseHeaders;
this.baseQueryParameters = baseQueryParameters;
this.userAgent = userAgent;
diff --git a/clients/algoliasearch-client-javascript/client-common/src/createAuth.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/createAuth.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/createAuth.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/createAuth.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-common/src/createMemoryCache.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/createMemoryCache.ts
new file mode 100644
index 0000000000..febde2f1d1
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-common/src/createMemoryCache.ts
@@ -0,0 +1,67 @@
+export type Cache = {
+ /**
+ * Gets the value of the given `key`.
+ */
+ get: (
+ key: Record | string,
+ defaultValue: () => Promise
+ ) => Promise;
+
+ /**
+ * Sets the given value with the given `key`.
+ */
+ set: (
+ key: Record | string,
+ value: TValue
+ ) => Promise;
+
+ /**
+ * Deletes the given `key`.
+ */
+ delete: (key: Record | string) => Promise;
+
+ /**
+ * Clears the cache.
+ */
+ clear: () => Promise;
+};
+
+export function createMemoryCache(): Cache {
+ let cache: Record = {};
+
+ return {
+ async get(
+ key: Record | string,
+ defaultValue: () => Promise
+ ): Promise {
+ const keyAsString = JSON.stringify(key);
+
+ if (keyAsString in cache) {
+ return Promise.resolve(cache[keyAsString]);
+ }
+
+ return await defaultValue();
+ },
+
+ set(
+ key: Record | string,
+ value: TValue
+ ): Promise {
+ cache[JSON.stringify(key)] = value;
+
+ return Promise.resolve(value);
+ },
+
+ delete(key: Record | string): Promise {
+ delete cache[JSON.stringify(key)];
+
+ return Promise.resolve();
+ },
+
+ clear(): Promise {
+ cache = {};
+
+ return Promise.resolve();
+ },
+ };
+}
diff --git a/clients/algoliasearch-client-javascript/client-common/src/createUserAgent.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/createUserAgent.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/createUserAgent.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/createUserAgent.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/errors.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/errors.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/errors.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/errors.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/getUserAgent.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/getUserAgent.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/getUserAgent.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/getUserAgent.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/helpers.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/helpers.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/helpers.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/helpers.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/requester/EchoRequester.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/requester/EchoRequester.ts
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-common/src/requester/EchoRequester.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/requester/EchoRequester.ts
index 5d1766df97..fec13337da 100644
--- a/clients/algoliasearch-client-javascript/client-common/src/requester/EchoRequester.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-common/src/requester/EchoRequester.ts
@@ -1,3 +1,4 @@
+import type { URLSearchParams } from 'url';
import { URL } from 'url';
import type { EndRequest, Request, Response, EchoResponse } from '../types';
diff --git a/clients/algoliasearch-client-javascript/client-common/src/requester/Requester.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/requester/Requester.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/requester/Requester.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/requester/Requester.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/requester/index.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/requester/index.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/requester/index.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/requester/index.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/stackTrace.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/stackTrace.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/stackTrace.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/stackTrace.ts
diff --git a/clients/algoliasearch-client-javascript/client-common/src/types.ts b/clients/algoliasearch-client-javascript/packages/client-common/src/types.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-common/src/types.ts
rename to clients/algoliasearch-client-javascript/packages/client-common/src/types.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-common/tsconfig.json b/clients/algoliasearch-client-javascript/packages/client-common/tsconfig.json
new file mode 100644
index 0000000000..e14af78d72
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-common/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ },
+ "include": ["src", "index.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/client-personalization/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/packages/client-insights/.openapi-generator-ignore
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-personalization/.openapi-generator-ignore
rename to clients/algoliasearch-client-javascript/packages/client-insights/.openapi-generator-ignore
index 000abf8f71..29b08dc3a5 100644
--- a/clients/algoliasearch-client-javascript/client-personalization/.openapi-generator-ignore
+++ b/clients/algoliasearch-client-javascript/packages/client-insights/.openapi-generator-ignore
@@ -6,3 +6,4 @@
git_push.sh
model/models.ts
+.gitignore
diff --git a/clients/algoliasearch-client-javascript/client-insights/browser.ts b/clients/algoliasearch-client-javascript/packages/client-insights/browser.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-insights/browser.ts
rename to clients/algoliasearch-client-javascript/packages/client-insights/browser.ts
index 4023d1dc1c..c69471e113 100644
--- a/clients/algoliasearch-client-javascript/client-insights/browser.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-insights/browser.ts
@@ -5,7 +5,6 @@ import { createInsightsApi } from './src/insightsApi';
import type { InsightsApi, Region } from './src/insightsApi';
export * from './src/insightsApi';
-export * from '@algolia/client-common';
export function insightsApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-insights/model/errorBase.ts b/clients/algoliasearch-client-javascript/packages/client-insights/model/errorBase.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-insights/model/errorBase.ts
rename to clients/algoliasearch-client-javascript/packages/client-insights/model/errorBase.ts
diff --git a/clients/algoliasearch-client-javascript/client-insights/model/insightEvent.ts b/clients/algoliasearch-client-javascript/packages/client-insights/model/insightEvent.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-insights/model/insightEvent.ts
rename to clients/algoliasearch-client-javascript/packages/client-insights/model/insightEvent.ts
diff --git a/clients/algoliasearch-client-javascript/client-insights/model/insightEvents.ts b/clients/algoliasearch-client-javascript/packages/client-insights/model/insightEvents.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-insights/model/insightEvents.ts
rename to clients/algoliasearch-client-javascript/packages/client-insights/model/insightEvents.ts
diff --git a/clients/algoliasearch-client-javascript/client-insights/model/pushEventsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-insights/model/pushEventsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-insights/model/pushEventsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-insights/model/pushEventsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-insights/node.ts b/clients/algoliasearch-client-javascript/packages/client-insights/node.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-insights/node.ts
rename to clients/algoliasearch-client-javascript/packages/client-insights/node.ts
index 3c6d851d04..d6e34a763f 100644
--- a/clients/algoliasearch-client-javascript/client-insights/node.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-insights/node.ts
@@ -5,7 +5,6 @@ import { createInsightsApi } from './src/insightsApi';
import type { InsightsApi, Region } from './src/insightsApi';
export * from './src/insightsApi';
-export * from '@algolia/client-common';
export function insightsApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-insights/package.json b/clients/algoliasearch-client-javascript/packages/client-insights/package.json
similarity index 94%
rename from clients/algoliasearch-client-javascript/client-insights/package.json
rename to clients/algoliasearch-client-javascript/packages/client-insights/package.json
index 66dd23408b..1c71a3091c 100644
--- a/clients/algoliasearch-client-javascript/client-insights/package.json
+++ b/clients/algoliasearch-client-javascript/packages/client-insights/package.json
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/clients/algoliasearch-client-javascript/client-insights/src/insightsApi.ts b/clients/algoliasearch-client-javascript/packages/client-insights/src/insightsApi.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-insights/src/insightsApi.ts
rename to clients/algoliasearch-client-javascript/packages/client-insights/src/insightsApi.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-insights/tsconfig.json b/clients/algoliasearch-client-javascript/packages/client-insights/tsconfig.json
new file mode 100644
index 0000000000..8c122c680a
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-insights/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ },
+ "include": ["src", "model", "node.ts", "browser.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/client-insights/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/packages/client-personalization/.openapi-generator-ignore
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-insights/.openapi-generator-ignore
rename to clients/algoliasearch-client-javascript/packages/client-personalization/.openapi-generator-ignore
index 000abf8f71..29b08dc3a5 100644
--- a/clients/algoliasearch-client-javascript/client-insights/.openapi-generator-ignore
+++ b/clients/algoliasearch-client-javascript/packages/client-personalization/.openapi-generator-ignore
@@ -6,3 +6,4 @@
git_push.sh
model/models.ts
+.gitignore
diff --git a/clients/algoliasearch-client-javascript/client-personalization/browser.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/browser.ts
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-personalization/browser.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/browser.ts
index b3ffccff69..f63a1ab08a 100644
--- a/clients/algoliasearch-client-javascript/client-personalization/browser.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-personalization/browser.ts
@@ -5,7 +5,6 @@ import { createPersonalizationApi } from './src/personalizationApi';
import type { PersonalizationApi, Region } from './src/personalizationApi';
export * from './src/personalizationApi';
-export * from '@algolia/client-common';
export function personalizationApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-personalization/model/deleteUserProfileResponse.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/model/deleteUserProfileResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-personalization/model/deleteUserProfileResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/model/deleteUserProfileResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-personalization/model/errorBase.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/model/errorBase.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-personalization/model/errorBase.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/model/errorBase.ts
diff --git a/clients/algoliasearch-client-javascript/client-personalization/model/eventScoring.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/model/eventScoring.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-personalization/model/eventScoring.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/model/eventScoring.ts
diff --git a/clients/algoliasearch-client-javascript/client-personalization/model/facetScoring.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/model/facetScoring.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-personalization/model/facetScoring.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/model/facetScoring.ts
diff --git a/clients/algoliasearch-client-javascript/client-personalization/model/getUserTokenResponse.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/model/getUserTokenResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-personalization/model/getUserTokenResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/model/getUserTokenResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-personalization/model/personalizationStrategyParams.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/model/personalizationStrategyParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-personalization/model/personalizationStrategyParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/model/personalizationStrategyParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-personalization/model/setPersonalizationStrategyResponse.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/model/setPersonalizationStrategyResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-personalization/model/setPersonalizationStrategyResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/model/setPersonalizationStrategyResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-personalization/node.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/node.ts
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-personalization/node.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/node.ts
index 3935349c08..0a4d9ca12f 100644
--- a/clients/algoliasearch-client-javascript/client-personalization/node.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-personalization/node.ts
@@ -5,7 +5,6 @@ import { createPersonalizationApi } from './src/personalizationApi';
import type { PersonalizationApi, Region } from './src/personalizationApi';
export * from './src/personalizationApi';
-export * from '@algolia/client-common';
export function personalizationApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-personalization/package.json b/clients/algoliasearch-client-javascript/packages/client-personalization/package.json
similarity index 94%
rename from clients/algoliasearch-client-javascript/client-personalization/package.json
rename to clients/algoliasearch-client-javascript/packages/client-personalization/package.json
index 462e58175b..bfb43084b7 100644
--- a/clients/algoliasearch-client-javascript/client-personalization/package.json
+++ b/clients/algoliasearch-client-javascript/packages/client-personalization/package.json
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/clients/algoliasearch-client-javascript/client-personalization/src/personalizationApi.ts b/clients/algoliasearch-client-javascript/packages/client-personalization/src/personalizationApi.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-personalization/src/personalizationApi.ts
rename to clients/algoliasearch-client-javascript/packages/client-personalization/src/personalizationApi.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-personalization/tsconfig.json b/clients/algoliasearch-client-javascript/packages/client-personalization/tsconfig.json
new file mode 100644
index 0000000000..8c122c680a
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-personalization/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ },
+ "include": ["src", "model", "node.ts", "browser.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/packages/client-query-suggestions/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/.openapi-generator-ignore
new file mode 100644
index 0000000000..29b08dc3a5
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/.openapi-generator-ignore
@@ -0,0 +1,9 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+git_push.sh
+model/models.ts
+.gitignore
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/browser.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/browser.ts
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/browser.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/browser.ts
index da7cd014a0..904242ca69 100644
--- a/clients/algoliasearch-client-javascript/client-query-suggestions/browser.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/browser.ts
@@ -5,7 +5,6 @@ import { createQuerySuggestionsApi } from './src/querySuggestionsApi';
import type { QuerySuggestionsApi, Region } from './src/querySuggestionsApi';
export * from './src/querySuggestionsApi';
-export * from '@algolia/client-common';
export function querySuggestionsApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/errorBase.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/errorBase.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/errorBase.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/errorBase.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/indexName.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/indexName.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/indexName.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/indexName.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/logFile.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/logFile.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/logFile.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/logFile.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/querySuggestionsIndex.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/querySuggestionsIndex.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/querySuggestionsIndex.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/querySuggestionsIndex.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/querySuggestionsIndexParam.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/querySuggestionsIndexParam.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/querySuggestionsIndexParam.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/querySuggestionsIndexParam.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/querySuggestionsIndexWithIndexParam.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/querySuggestionsIndexWithIndexParam.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/querySuggestionsIndexWithIndexParam.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/querySuggestionsIndexWithIndexParam.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/sourceIndex.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/sourceIndex.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/sourceIndex.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/sourceIndex.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/sourceIndexExternal.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/sourceIndexExternal.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/sourceIndexExternal.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/sourceIndexExternal.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/sourceIndiceWithReplicas.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/sourceIndiceWithReplicas.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/sourceIndiceWithReplicas.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/sourceIndiceWithReplicas.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/status.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/status.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/status.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/status.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/model/sucessResponse.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/sucessResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/model/sucessResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/model/sucessResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/node.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/node.ts
similarity index 96%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/node.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/node.ts
index d3d9ac8460..2183073e33 100644
--- a/clients/algoliasearch-client-javascript/client-query-suggestions/node.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/node.ts
@@ -5,7 +5,6 @@ import { createQuerySuggestionsApi } from './src/querySuggestionsApi';
import type { QuerySuggestionsApi, Region } from './src/querySuggestionsApi';
export * from './src/querySuggestionsApi';
-export * from '@algolia/client-common';
export function querySuggestionsApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/package.json b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/package.json
similarity index 94%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/package.json
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/package.json
index e7e9255ab8..907bbf4898 100644
--- a/clients/algoliasearch-client-javascript/client-query-suggestions/package.json
+++ b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/package.json
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/clients/algoliasearch-client-javascript/client-query-suggestions/src/querySuggestionsApi.ts b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/src/querySuggestionsApi.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-query-suggestions/src/querySuggestionsApi.ts
rename to clients/algoliasearch-client-javascript/packages/client-query-suggestions/src/querySuggestionsApi.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-query-suggestions/tsconfig.json b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/tsconfig.json
new file mode 100644
index 0000000000..8c122c680a
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-query-suggestions/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ },
+ "include": ["src", "model", "node.ts", "browser.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/packages/client-search/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/packages/client-search/.openapi-generator-ignore
new file mode 100644
index 0000000000..29b08dc3a5
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-search/.openapi-generator-ignore
@@ -0,0 +1,9 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+git_push.sh
+model/models.ts
+.gitignore
diff --git a/clients/algoliasearch-client-javascript/client-search/browser.ts b/clients/algoliasearch-client-javascript/packages/client-search/browser.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-search/browser.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/browser.ts
index 72669d1ab7..9836ae8067 100644
--- a/clients/algoliasearch-client-javascript/client-search/browser.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-search/browser.ts
@@ -5,7 +5,6 @@ import { createSearchApi } from './src/searchApi';
import type { SearchApi } from './src/searchApi';
export * from './src/searchApi';
-export * from '@algolia/client-common';
export function searchApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-search/model/action.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/action.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/action.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/action.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/addApiKeyResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/addApiKeyResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/addApiKeyResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/addApiKeyResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/anchoring.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/anchoring.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/anchoring.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/anchoring.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/apiKey.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/apiKey.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/apiKey.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/apiKey.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/assignUserIdParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/assignUserIdParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/assignUserIdParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/assignUserIdParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/automaticFacetFilter.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/automaticFacetFilter.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/automaticFacetFilter.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/automaticFacetFilter.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/baseBrowseResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/baseBrowseResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/baseBrowseResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/baseBrowseResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/baseIndexSettings.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/baseIndexSettings.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/baseIndexSettings.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/baseIndexSettings.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/baseSearchParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/baseSearchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/baseSearchParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/baseSearchParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/baseSearchResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/baseSearchResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/baseSearchResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/baseSearchResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/baseSearchResponseFacetsStats.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/baseSearchResponseFacetsStats.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/baseSearchResponseFacetsStats.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/baseSearchResponseFacetsStats.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/batchAssignUserIdsParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/batchAssignUserIdsParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/batchAssignUserIdsParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/batchAssignUserIdsParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/batchDictionaryEntriesParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/batchDictionaryEntriesParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/batchDictionaryEntriesParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/batchDictionaryEntriesParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/batchDictionaryEntriesRequest.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/batchDictionaryEntriesRequest.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/batchDictionaryEntriesRequest.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/batchDictionaryEntriesRequest.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/batchParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/batchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/batchParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/batchParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/batchResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/batchResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/batchResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/batchResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/batchWriteParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/batchWriteParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/batchWriteParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/batchWriteParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/browseRequest.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/browseRequest.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/browseRequest.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/browseRequest.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/browseResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/browseResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/browseResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/browseResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/builtInOperation.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/builtInOperation.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/builtInOperation.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/builtInOperation.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/condition.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/condition.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/condition.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/condition.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/consequence.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/consequence.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/consequence.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/consequence.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/consequenceHide.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/consequenceHide.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/consequenceHide.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/consequenceHide.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/consequenceParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/consequenceParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/consequenceParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/consequenceParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/createdAtObject.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/createdAtObject.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/createdAtObject.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/createdAtObject.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/createdAtResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/createdAtResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/createdAtResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/createdAtResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/deleteApiKeyResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/deleteApiKeyResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/deleteApiKeyResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/deleteApiKeyResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/deleteSourceResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/deleteSourceResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/deleteSourceResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/deleteSourceResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/deletedAtResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/deletedAtResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/deletedAtResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/deletedAtResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/dictionaryAction.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/dictionaryAction.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/dictionaryAction.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/dictionaryAction.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/dictionaryEntry.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/dictionaryEntry.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/dictionaryEntry.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/dictionaryEntry.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/dictionaryEntryState.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/dictionaryEntryState.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/dictionaryEntryState.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/dictionaryEntryState.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/dictionaryLanguage.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/dictionaryLanguage.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/dictionaryLanguage.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/dictionaryLanguage.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/dictionarySettingsParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/dictionarySettingsParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/dictionarySettingsParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/dictionarySettingsParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/errorBase.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/errorBase.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/errorBase.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/errorBase.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/getDictionarySettingsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/getDictionarySettingsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/getDictionarySettingsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/getDictionarySettingsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/getLogsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/getLogsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/getLogsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/getLogsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/getLogsResponseInnerQueries.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/getLogsResponseInnerQueries.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/getLogsResponseInnerQueries.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/getLogsResponseInnerQueries.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/getLogsResponseLogs.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/getLogsResponseLogs.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/getLogsResponseLogs.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/getLogsResponseLogs.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/getObjectsParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/getObjectsParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/getObjectsParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/getObjectsParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/getObjectsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/getObjectsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/getObjectsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/getObjectsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/getTaskResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/getTaskResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/getTaskResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/getTaskResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/getTopUserIdsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/getTopUserIdsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/getTopUserIdsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/getTopUserIdsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/highlightResult.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/highlightResult.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/highlightResult.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/highlightResult.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/hit.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/hit.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/hit.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/hit.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/indexSettings.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/indexSettings.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/indexSettings.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/indexSettings.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/indexSettingsAsSearchParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/indexSettingsAsSearchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/indexSettingsAsSearchParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/indexSettingsAsSearchParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/indice.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/indice.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/indice.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/indice.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/key.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/key.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/key.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/key.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/languages.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/languages.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/languages.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/languages.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/listApiKeysResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/listApiKeysResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/listApiKeysResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/listApiKeysResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/listClustersResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/listClustersResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/listClustersResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/listClustersResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/listIndicesResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/listIndicesResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/listIndicesResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/listIndicesResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/listUserIdsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/listUserIdsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/listUserIdsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/listUserIdsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/multipleBatchResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/multipleBatchResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/multipleBatchResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/multipleBatchResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/multipleGetObjectsParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/multipleGetObjectsParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/multipleGetObjectsParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/multipleGetObjectsParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/multipleQueries.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueries.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/multipleQueries.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueries.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/multipleQueriesParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueriesParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/multipleQueriesParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueriesParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/multipleQueriesResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueriesResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/multipleQueriesResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueriesResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/multipleQueriesStrategy.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueriesStrategy.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/multipleQueriesStrategy.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueriesStrategy.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/multipleQueriesType.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueriesType.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/multipleQueriesType.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/multipleQueriesType.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/operation.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/operation.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/operation.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/operation.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/operationIndexParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/operationIndexParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/operationIndexParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/operationIndexParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/operationType.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/operationType.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/operationType.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/operationType.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/params.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/params.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/params.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/params.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/promote.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/promote.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/promote.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/promote.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/rankingInfo.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/rankingInfo.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/rankingInfo.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/rankingInfo.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/rankingInfoMatchedGeoLocation.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/rankingInfoMatchedGeoLocation.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/rankingInfoMatchedGeoLocation.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/rankingInfoMatchedGeoLocation.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/removeUserIdResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/removeUserIdResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/removeUserIdResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/removeUserIdResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/replaceSourceResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/replaceSourceResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/replaceSourceResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/replaceSourceResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/requiredSearchParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/requiredSearchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/requiredSearchParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/requiredSearchParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/rule.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/rule.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/rule.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/rule.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/saveObjectResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/saveObjectResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/saveObjectResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/saveObjectResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/saveSynonymResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/saveSynonymResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/saveSynonymResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/saveSynonymResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/scopeType.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/scopeType.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/scopeType.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/scopeType.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchDictionaryEntriesParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchDictionaryEntriesParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchDictionaryEntriesParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchDictionaryEntriesParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchForFacetValuesRequest.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchForFacetValuesRequest.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchForFacetValuesRequest.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchForFacetValuesRequest.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchForFacetValuesResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchForFacetValuesResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchForFacetValuesResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchForFacetValuesResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchForFacetValuesResponseFacetHits.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchForFacetValuesResponseFacetHits.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchForFacetValuesResponseFacetHits.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchForFacetValuesResponseFacetHits.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchHits.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchHits.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchHits.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchHits.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchParamsObject.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchParamsObject.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchParamsObject.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchParamsObject.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchParamsString.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchParamsString.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchParamsString.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchParamsString.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchRulesParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchRulesParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchRulesParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchRulesParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchRulesResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchRulesResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchRulesResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchRulesResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchSynonymsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchSynonymsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchSynonymsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchSynonymsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchUserIdsParams.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchUserIdsParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchUserIdsParams.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchUserIdsParams.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchUserIdsResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchUserIdsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchUserIdsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchUserIdsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchUserIdsResponseHighlightResult.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchUserIdsResponseHighlightResult.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchUserIdsResponseHighlightResult.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchUserIdsResponseHighlightResult.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/searchUserIdsResponseHits.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/searchUserIdsResponseHits.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/searchUserIdsResponseHits.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/searchUserIdsResponseHits.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/snippetResult.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/snippetResult.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/snippetResult.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/snippetResult.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/source.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/source.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/source.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/source.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/standardEntries.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/standardEntries.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/standardEntries.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/standardEntries.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/synonymHit.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/synonymHit.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/synonymHit.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/synonymHit.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/synonymHitHighlightResult.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/synonymHitHighlightResult.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/synonymHitHighlightResult.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/synonymHitHighlightResult.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/synonymType.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/synonymType.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/synonymType.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/synonymType.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/timeRange.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/timeRange.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/timeRange.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/timeRange.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/updateApiKeyResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/updateApiKeyResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/updateApiKeyResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/updateApiKeyResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/updatedAtResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/updatedAtResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/updatedAtResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/updatedAtResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/updatedAtWithObjectIdResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/updatedAtWithObjectIdResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/updatedAtWithObjectIdResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/updatedAtWithObjectIdResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/updatedRuleResponse.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/updatedRuleResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/updatedRuleResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/updatedRuleResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/model/userId.ts b/clients/algoliasearch-client-javascript/packages/client-search/model/userId.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/model/userId.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/model/userId.ts
diff --git a/clients/algoliasearch-client-javascript/client-search/node.ts b/clients/algoliasearch-client-javascript/packages/client-search/node.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-search/node.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/node.ts
index e300e55559..a6307dcbcf 100644
--- a/clients/algoliasearch-client-javascript/client-search/node.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-search/node.ts
@@ -5,7 +5,6 @@ import { createSearchApi } from './src/searchApi';
import type { SearchApi } from './src/searchApi';
export * from './src/searchApi';
-export * from '@algolia/client-common';
export function searchApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-search/package.json b/clients/algoliasearch-client-javascript/packages/client-search/package.json
similarity index 94%
rename from clients/algoliasearch-client-javascript/client-search/package.json
rename to clients/algoliasearch-client-javascript/packages/client-search/package.json
index 3ae2ecd6da..953689ac1d 100644
--- a/clients/algoliasearch-client-javascript/client-search/package.json
+++ b/clients/algoliasearch-client-javascript/packages/client-search/package.json
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/clients/algoliasearch-client-javascript/client-search/src/searchApi.ts b/clients/algoliasearch-client-javascript/packages/client-search/src/searchApi.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-search/src/searchApi.ts
rename to clients/algoliasearch-client-javascript/packages/client-search/src/searchApi.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-search/tsconfig.json b/clients/algoliasearch-client-javascript/packages/client-search/tsconfig.json
new file mode 100644
index 0000000000..8c122c680a
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-search/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ },
+ "include": ["src", "model", "node.ts", "browser.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/packages/client-sources/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/packages/client-sources/.openapi-generator-ignore
new file mode 100644
index 0000000000..29b08dc3a5
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-sources/.openapi-generator-ignore
@@ -0,0 +1,9 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+git_push.sh
+model/models.ts
+.gitignore
diff --git a/clients/algoliasearch-client-javascript/client-sources/browser.ts b/clients/algoliasearch-client-javascript/packages/client-sources/browser.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-sources/browser.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/browser.ts
index 73066ccbc3..c0b8416e45 100644
--- a/clients/algoliasearch-client-javascript/client-sources/browser.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-sources/browser.ts
@@ -5,7 +5,6 @@ import { createSourcesApi } from './src/sourcesApi';
import type { SourcesApi, Region } from './src/sourcesApi';
export * from './src/sourcesApi';
-export * from '@algolia/client-common';
export function sourcesApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-sources/model/errorBase.ts b/clients/algoliasearch-client-javascript/packages/client-sources/model/errorBase.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-sources/model/errorBase.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/model/errorBase.ts
diff --git a/clients/algoliasearch-client-javascript/client-sources/model/postIngestUrlResponse.ts b/clients/algoliasearch-client-javascript/packages/client-sources/model/postIngestUrlResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-sources/model/postIngestUrlResponse.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/model/postIngestUrlResponse.ts
diff --git a/clients/algoliasearch-client-javascript/client-sources/model/postURLJob.ts b/clients/algoliasearch-client-javascript/packages/client-sources/model/postURLJob.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-sources/model/postURLJob.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/model/postURLJob.ts
diff --git a/clients/algoliasearch-client-javascript/client-sources/model/postURLJobAuth.ts b/clients/algoliasearch-client-javascript/packages/client-sources/model/postURLJobAuth.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-sources/model/postURLJobAuth.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/model/postURLJobAuth.ts
diff --git a/clients/algoliasearch-client-javascript/client-sources/model/postURLJobInput.ts b/clients/algoliasearch-client-javascript/packages/client-sources/model/postURLJobInput.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-sources/model/postURLJobInput.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/model/postURLJobInput.ts
diff --git a/clients/algoliasearch-client-javascript/client-sources/model/postURLJobTarget.ts b/clients/algoliasearch-client-javascript/packages/client-sources/model/postURLJobTarget.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-sources/model/postURLJobTarget.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/model/postURLJobTarget.ts
diff --git a/clients/algoliasearch-client-javascript/client-sources/model/task.ts b/clients/algoliasearch-client-javascript/packages/client-sources/model/task.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-sources/model/task.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/model/task.ts
diff --git a/clients/algoliasearch-client-javascript/client-sources/node.ts b/clients/algoliasearch-client-javascript/packages/client-sources/node.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/client-sources/node.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/node.ts
index fb35a43364..0b06b570ab 100644
--- a/clients/algoliasearch-client-javascript/client-sources/node.ts
+++ b/clients/algoliasearch-client-javascript/packages/client-sources/node.ts
@@ -5,7 +5,6 @@ import { createSourcesApi } from './src/sourcesApi';
import type { SourcesApi, Region } from './src/sourcesApi';
export * from './src/sourcesApi';
-export * from '@algolia/client-common';
export function sourcesApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/client-sources/package.json b/clients/algoliasearch-client-javascript/packages/client-sources/package.json
similarity index 94%
rename from clients/algoliasearch-client-javascript/client-sources/package.json
rename to clients/algoliasearch-client-javascript/packages/client-sources/package.json
index da4c21fa45..a31aac7389 100644
--- a/clients/algoliasearch-client-javascript/client-sources/package.json
+++ b/clients/algoliasearch-client-javascript/packages/client-sources/package.json
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/clients/algoliasearch-client-javascript/client-sources/src/sourcesApi.ts b/clients/algoliasearch-client-javascript/packages/client-sources/src/sourcesApi.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/client-sources/src/sourcesApi.ts
rename to clients/algoliasearch-client-javascript/packages/client-sources/src/sourcesApi.ts
diff --git a/clients/algoliasearch-client-javascript/packages/client-sources/tsconfig.json b/clients/algoliasearch-client-javascript/packages/client-sources/tsconfig.json
new file mode 100644
index 0000000000..8c122c680a
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/client-sources/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ },
+ "include": ["src", "model", "node.ts", "browser.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/packages/recommend/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/packages/recommend/.openapi-generator-ignore
new file mode 100644
index 0000000000..29b08dc3a5
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/recommend/.openapi-generator-ignore
@@ -0,0 +1,9 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+git_push.sh
+model/models.ts
+.gitignore
diff --git a/clients/algoliasearch-client-javascript/recommend/browser.ts b/clients/algoliasearch-client-javascript/packages/recommend/browser.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/recommend/browser.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/browser.ts
index dce3291aa6..997026ff51 100644
--- a/clients/algoliasearch-client-javascript/recommend/browser.ts
+++ b/clients/algoliasearch-client-javascript/packages/recommend/browser.ts
@@ -5,7 +5,6 @@ import { createRecommendApi } from './src/recommendApi';
import type { RecommendApi } from './src/recommendApi';
export * from './src/recommendApi';
-export * from '@algolia/client-common';
export function recommendApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/recommend/model/baseSearchParams.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/baseSearchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/baseSearchParams.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/baseSearchParams.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/baseSearchResponse.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/baseSearchResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/baseSearchResponse.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/baseSearchResponse.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/baseSearchResponseFacetsStats.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/baseSearchResponseFacetsStats.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/baseSearchResponseFacetsStats.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/baseSearchResponseFacetsStats.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/errorBase.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/errorBase.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/errorBase.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/errorBase.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/getRecommendationsParams.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/getRecommendationsParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/getRecommendationsParams.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/getRecommendationsParams.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/getRecommendationsResponse.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/getRecommendationsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/getRecommendationsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/getRecommendationsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/highlightResult.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/highlightResult.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/highlightResult.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/highlightResult.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/indexSettingsAsSearchParams.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/indexSettingsAsSearchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/indexSettingsAsSearchParams.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/indexSettingsAsSearchParams.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/rankingInfo.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/rankingInfo.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/rankingInfo.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/rankingInfo.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/rankingInfoMatchedGeoLocation.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/rankingInfoMatchedGeoLocation.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/rankingInfoMatchedGeoLocation.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/rankingInfoMatchedGeoLocation.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/recommendHit.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/recommendHit.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/recommendHit.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/recommendHit.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/recommendHits.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/recommendHits.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/recommendHits.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/recommendHits.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/recommendationRequest.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/recommendationRequest.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/recommendationRequest.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/recommendationRequest.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/recommendationsResponse.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/recommendationsResponse.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/recommendationsResponse.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/recommendationsResponse.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/requiredSearchParams.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/requiredSearchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/requiredSearchParams.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/requiredSearchParams.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/searchParams.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/searchParams.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/searchParams.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/searchParams.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/model/snippetResult.ts b/clients/algoliasearch-client-javascript/packages/recommend/model/snippetResult.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/model/snippetResult.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/model/snippetResult.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/node.ts b/clients/algoliasearch-client-javascript/packages/recommend/node.ts
similarity index 95%
rename from clients/algoliasearch-client-javascript/recommend/node.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/node.ts
index 1bf340c434..000a71a8fe 100644
--- a/clients/algoliasearch-client-javascript/recommend/node.ts
+++ b/clients/algoliasearch-client-javascript/packages/recommend/node.ts
@@ -5,7 +5,6 @@ import { createRecommendApi } from './src/recommendApi';
import type { RecommendApi } from './src/recommendApi';
export * from './src/recommendApi';
-export * from '@algolia/client-common';
export function recommendApi(
appId: string,
diff --git a/clients/algoliasearch-client-javascript/recommend/package.json b/clients/algoliasearch-client-javascript/packages/recommend/package.json
similarity index 94%
rename from clients/algoliasearch-client-javascript/recommend/package.json
rename to clients/algoliasearch-client-javascript/packages/recommend/package.json
index bd21bcbff4..6c5f79b9e0 100644
--- a/clients/algoliasearch-client-javascript/recommend/package.json
+++ b/clients/algoliasearch-client-javascript/packages/recommend/package.json
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/clients/algoliasearch-client-javascript/recommend/src/recommendApi.ts b/clients/algoliasearch-client-javascript/packages/recommend/src/recommendApi.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/recommend/src/recommendApi.ts
rename to clients/algoliasearch-client-javascript/packages/recommend/src/recommendApi.ts
diff --git a/clients/algoliasearch-client-javascript/packages/recommend/tsconfig.json b/clients/algoliasearch-client-javascript/packages/recommend/tsconfig.json
new file mode 100644
index 0000000000..8c122c680a
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/recommend/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist",
+ },
+ "include": ["src", "model", "node.ts", "browser.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/requester-browser-xhr/index.ts b/clients/algoliasearch-client-javascript/packages/requester-browser-xhr/index.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/requester-browser-xhr/index.ts
rename to clients/algoliasearch-client-javascript/packages/requester-browser-xhr/index.ts
diff --git a/clients/algoliasearch-client-javascript/requester-browser-xhr/package.json b/clients/algoliasearch-client-javascript/packages/requester-browser-xhr/package.json
similarity index 100%
rename from clients/algoliasearch-client-javascript/requester-browser-xhr/package.json
rename to clients/algoliasearch-client-javascript/packages/requester-browser-xhr/package.json
diff --git a/clients/algoliasearch-client-javascript/requester-browser-xhr/src/XhrRequester.ts b/clients/algoliasearch-client-javascript/packages/requester-browser-xhr/src/XhrRequester.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/requester-browser-xhr/src/XhrRequester.ts
rename to clients/algoliasearch-client-javascript/packages/requester-browser-xhr/src/XhrRequester.ts
diff --git a/clients/algoliasearch-client-javascript/packages/requester-browser-xhr/tsconfig.json b/clients/algoliasearch-client-javascript/packages/requester-browser-xhr/tsconfig.json
new file mode 100644
index 0000000000..e14af78d72
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/requester-browser-xhr/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ },
+ "include": ["src", "index.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/requester-node-http/index.ts b/clients/algoliasearch-client-javascript/packages/requester-node-http/index.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/requester-node-http/index.ts
rename to clients/algoliasearch-client-javascript/packages/requester-node-http/index.ts
diff --git a/clients/algoliasearch-client-javascript/requester-node-http/package.json b/clients/algoliasearch-client-javascript/packages/requester-node-http/package.json
similarity index 100%
rename from clients/algoliasearch-client-javascript/requester-node-http/package.json
rename to clients/algoliasearch-client-javascript/packages/requester-node-http/package.json
diff --git a/clients/algoliasearch-client-javascript/requester-node-http/src/HttpRequester.ts b/clients/algoliasearch-client-javascript/packages/requester-node-http/src/HttpRequester.ts
similarity index 100%
rename from clients/algoliasearch-client-javascript/requester-node-http/src/HttpRequester.ts
rename to clients/algoliasearch-client-javascript/packages/requester-node-http/src/HttpRequester.ts
diff --git a/clients/algoliasearch-client-javascript/packages/requester-node-http/tsconfig.json b/clients/algoliasearch-client-javascript/packages/requester-node-http/tsconfig.json
new file mode 100644
index 0000000000..e14af78d72
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/packages/requester-node-http/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "dist"
+ },
+ "include": ["src", "index.ts"],
+ "exclude": ["dist", "node_modules"]
+}
diff --git a/clients/algoliasearch-client-javascript/recommend/.gitignore b/clients/algoliasearch-client-javascript/recommend/.gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/clients/algoliasearch-client-javascript/recommend/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/clients/algoliasearch-client-javascript/recommend/.openapi-generator-ignore b/clients/algoliasearch-client-javascript/recommend/.openapi-generator-ignore
deleted file mode 100644
index 000abf8f71..0000000000
--- a/clients/algoliasearch-client-javascript/recommend/.openapi-generator-ignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-git_push.sh
-model/models.ts
diff --git a/clients/algoliasearch-client-javascript/recommend/tsconfig.json b/clients/algoliasearch-client-javascript/recommend/tsconfig.json
deleted file mode 100644
index 2613b3ebad..0000000000
--- a/clients/algoliasearch-client-javascript/recommend/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "model", "node.ts", "browser.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/requester-browser-xhr/tsconfig.json b/clients/algoliasearch-client-javascript/requester-browser-xhr/tsconfig.json
deleted file mode 100644
index b32907408a..0000000000
--- a/clients/algoliasearch-client-javascript/requester-browser-xhr/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "index.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/requester-node-http/tsconfig.json b/clients/algoliasearch-client-javascript/requester-node-http/tsconfig.json
deleted file mode 100644
index b32907408a..0000000000
--- a/clients/algoliasearch-client-javascript/requester-node-http/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
- "outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
- },
- "include": ["src", "index.ts"],
- "exclude": ["dist", "node_modules"]
-}
diff --git a/clients/algoliasearch-client-javascript/client-common/tsconfig.json b/clients/algoliasearch-client-javascript/tsconfig.json
similarity index 75%
rename from clients/algoliasearch-client-javascript/client-common/tsconfig.json
rename to clients/algoliasearch-client-javascript/tsconfig.json
index b32907408a..e6154b9d37 100644
--- a/clients/algoliasearch-client-javascript/client-common/tsconfig.json
+++ b/clients/algoliasearch-client-javascript/tsconfig.json
@@ -1,22 +1,25 @@
{
"compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
+ "allowJs": false,
"allowSyntheticDefaultImports": true,
+ "declaration": true,
"esModuleInterop": true,
- "strict": true,
+ "lib": ["dom", "ES2015", "dom.iterable", "scripthost"],
+ "module": "commonjs",
"moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
+ "noImplicitAny": false,
+ "noImplicitThis": true,
"noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
+ "noUnusedLocals": true,
"outDir": "dist",
+ "removeComments": true,
+ "sourceMap": true,
+ "strict": true,
+ "suppressImplicitAnyIndexErrors": true,
+ "target": "ES6",
"typeRoots": ["node_modules/@types"],
"types": ["node"]
},
- "include": ["src", "index.ts"],
+ "include": ["*.ts"],
"exclude": ["dist", "node_modules"]
}
diff --git a/clients/algoliasearch-client-javascript/version.js b/clients/algoliasearch-client-javascript/version.js
new file mode 100644
index 0000000000..56b7f45436
--- /dev/null
+++ b/clients/algoliasearch-client-javascript/version.js
@@ -0,0 +1 @@
+export const version = '5.0.0';
diff --git a/doc/contribution_addNewClient.md b/doc/contribution_addNewClient.md
index 5d70cc7921..cf0c372822 100644
--- a/doc/contribution_addNewClient.md
+++ b/doc/contribution_addNewClient.md
@@ -17,7 +17,7 @@ openapi-generator author template -g -o templates/ Building $GENERATOR..."
-
if [[ $LANGUAGE == 'javascript' ]]; then
+ echo "> Cleaning previous build $GENERATOR..."
+
+ yarn workspace $PACKAGE clean
+
+ echo "> Bundling $GENERATOR..."
+
CMD="yarn workspace $PACKAGE build"
elif [[ $LANGUAGE == 'php' ]]; then
# no build needed (for now)
diff --git a/scripts/post-gen/global.sh b/scripts/post-gen/global.sh
index 8d9ebb0a86..69c795f829 100755
--- a/scripts/post-gen/global.sh
+++ b/scripts/post-gen/global.sh
@@ -16,16 +16,22 @@ if [[ ! $DOCKER ]]; then
fi
build_js_common_requesters() {
- echo "> Building @algolia/client-common..."
+ echo "> Cleaning previous build @algolia/client-common..."
+ yarn workspace @algolia/client-common clean
+ echo "> Building @algolia/client-common..."
yarn workspace @algolia/client-common build
- echo "> Building @algolia/requester-node-http..."
+ echo "> Cleaning previous build @algolia/requester-node-http..."
+ yarn workspace @algolia/requester-node-http clean
+ echo "> Building @algolia/requester-node-http..."
yarn workspace @algolia/requester-node-http build
- echo "> Building @algolia/requester-browser-xhr..."
+ echo "> Cleaning previous build @algolia/requester-browser-xhr..."
+ yarn workspace @algolia/requester-browser-xhr clean
+ echo "> Building @algolia/requester-browser-xhr..."
yarn workspace @algolia/requester-browser-xhr build
echo ""
diff --git a/templates/javascript/api-all.mustache b/templates/javascript/api-all.mustache
index 4a76ba035f..6a07a4f8f0 100644
--- a/templates/javascript/api-all.mustache
+++ b/templates/javascript/api-all.mustache
@@ -3,16 +3,14 @@
import type { Host, Requester } from '@algolia/client-common';
import { XhrRequester } from '@algolia/requester-browser-xhr';
-import { create{{capitalizedApiName}}Api, version } from './src/{{apiName}}Api';
+import { create{{capitalizedApiName}}Api } from './src/{{apiName}}Api';
import type { {{capitalizedApiName}}Api } from './src/{{apiName}}Api';
{{#hasRegionalHost}}
import type { Region } from './src/{{apiName}}Api';
{{/hasRegionalHost}}
-
export * from './src/{{apiName}}Api';
-export * from '@algolia/client-common';
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function {{apiName}}Api(
diff --git a/templates/javascript/api.mustache b/templates/javascript/api.mustache
index 5ef0733311..efde104b44 100644
--- a/templates/javascript/api.mustache
+++ b/templates/javascript/api.mustache
@@ -3,16 +3,14 @@
import type { Host, Requester } from '@algolia/client-common';
import { HttpRequester } from '@algolia/requester-node-http';
-import { create{{capitalizedApiName}}Api, version } from './src/{{apiName}}Api';
+import { create{{capitalizedApiName}}Api } from './src/{{apiName}}Api';
import type { {{capitalizedApiName}}Api } from './src/{{apiName}}Api';
{{#hasRegionalHost}}
import type { Region } from './src/{{apiName}}Api';
{{/hasRegionalHost}}
-
export * from './src/{{apiName}}Api';
-export * from '@algolia/client-common';
export function {{apiName}}Api(
appId: string,
diff --git a/templates/javascript/gitignore b/templates/javascript/gitignore
deleted file mode 100644
index 8aafcdc3fd..0000000000
--- a/templates/javascript/gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-dist
-.openapi-generator
-.env
diff --git a/templates/javascript/package.mustache b/templates/javascript/package.mustache
index f5058586fc..05ede65c2c 100644
--- a/templates/javascript/package.mustache
+++ b/templates/javascript/package.mustache
@@ -18,8 +18,7 @@
"clean": "rm -rf dist/"
},
"engines": {
- "node": "^14.0.0",
- "yarn": "^3.0.0"
+ "node": "^14.0.0"
},
"dependencies": {
"@algolia/client-common": "5.0.0",
diff --git a/templates/javascript/tsconfig.mustache b/templates/javascript/tsconfig.mustache
index a8f0297e53..8ef728ad3f 100644
--- a/templates/javascript/tsconfig.mustache
+++ b/templates/javascript/tsconfig.mustache
@@ -1,21 +1,7 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
- "module": "commonjs",
- "noImplicitAny": false,
- "suppressImplicitAnyIndexErrors": true,
- "target": "ES6",
- "allowSyntheticDefaultImports": true,
- "esModuleInterop": true,
- "strict": true,
- "moduleResolution": "node",
- "removeComments": true,
- "sourceMap": true,
- "noLib": false,
- "declaration": true,
- "lib": ["dom", "es6", "es5", "dom.iterable", "scripthost"],
"outDir": "dist",
- "typeRoots": ["node_modules/@types"],
- "types": ["node"]
},
"include": ["{{apiPackage}}", "model", "node.ts", "browser.ts"],
"exclude": ["dist", "node_modules"]
diff --git a/tests/output/javascript/jest.config.js b/tests/output/javascript/jest.config.js
deleted file mode 100644
index 132eef2090..0000000000
--- a/tests/output/javascript/jest.config.js
+++ /dev/null
@@ -1,7 +0,0 @@
-require('dotenv').config();
-
-/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
-module.exports = {
- preset: 'ts-jest',
- testEnvironment: 'node',
-};
diff --git a/tests/output/javascript/jest.config.ts b/tests/output/javascript/jest.config.ts
new file mode 100644
index 0000000000..d2cc09a672
--- /dev/null
+++ b/tests/output/javascript/jest.config.ts
@@ -0,0 +1,8 @@
+import type { Config } from '@jest/types';
+
+const config: Config.InitialOptions = {
+ preset: 'ts-jest',
+ testEnvironment: 'node',
+};
+
+export default config;
diff --git a/tests/output/javascript/package.json b/tests/output/javascript/package.json
index 49c41351b3..4f6256b108 100644
--- a/tests/output/javascript/package.json
+++ b/tests/output/javascript/package.json
@@ -2,7 +2,6 @@
"name": "javascript-tests",
"version": "1.0.0",
"scripts": {
- "lint:fix": "yarn eslint --ext=ts tests --fix",
"test": "jest"
},
"dependencies": {
@@ -17,17 +16,11 @@
"@algolia/recommend": "5.0.0"
},
"devDependencies": {
- "@apidevtools/swagger-parser": "10.0.3",
"@types/jest": "27.0.3",
- "@types/mustache": "4.1.2",
"@types/node": "16.11.11",
- "dotenv": "11.0.0",
- "eslint": "8.6.0",
"jest": "27.4.7",
- "mustache": "4.2.0",
- "openapi-types": "10.0.0",
- "prettier": "2.5.1",
"ts-jest": "27.1.2",
+ "ts-node": "10.5.0",
"typescript": "4.5.4"
}
}
diff --git a/yarn.lock b/yarn.lock
index be1d639bb0..a386bea719 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -32,9 +32,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/client-abtesting@5.0.0, @algolia/client-abtesting@workspace:clients/algoliasearch-client-javascript/client-abtesting":
+"@algolia/client-abtesting@5.0.0, @algolia/client-abtesting@workspace:clients/algoliasearch-client-javascript/packages/client-abtesting":
version: 0.0.0-use.local
- resolution: "@algolia/client-abtesting@workspace:clients/algoliasearch-client-javascript/client-abtesting"
+ resolution: "@algolia/client-abtesting@workspace:clients/algoliasearch-client-javascript/packages/client-abtesting"
dependencies:
"@algolia/client-common": 5.0.0
"@algolia/requester-browser-xhr": 5.0.0
@@ -44,9 +44,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/client-analytics@5.0.0, @algolia/client-analytics@workspace:clients/algoliasearch-client-javascript/client-analytics":
+"@algolia/client-analytics@5.0.0, @algolia/client-analytics@workspace:clients/algoliasearch-client-javascript/packages/client-analytics":
version: 0.0.0-use.local
- resolution: "@algolia/client-analytics@workspace:clients/algoliasearch-client-javascript/client-analytics"
+ resolution: "@algolia/client-analytics@workspace:clients/algoliasearch-client-javascript/packages/client-analytics"
dependencies:
"@algolia/client-common": 5.0.0
"@algolia/requester-browser-xhr": 5.0.0
@@ -56,18 +56,18 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/client-common@5.0.0, @algolia/client-common@workspace:clients/algoliasearch-client-javascript/client-common":
+"@algolia/client-common@5.0.0, @algolia/client-common@workspace:clients/algoliasearch-client-javascript/packages/client-common":
version: 0.0.0-use.local
- resolution: "@algolia/client-common@workspace:clients/algoliasearch-client-javascript/client-common"
+ resolution: "@algolia/client-common@workspace:clients/algoliasearch-client-javascript/packages/client-common"
dependencies:
"@types/node": 16.11.11
typescript: 4.5.4
languageName: unknown
linkType: soft
-"@algolia/client-insights@5.0.0, @algolia/client-insights@workspace:clients/algoliasearch-client-javascript/client-insights":
+"@algolia/client-insights@5.0.0, @algolia/client-insights@workspace:clients/algoliasearch-client-javascript/packages/client-insights":
version: 0.0.0-use.local
- resolution: "@algolia/client-insights@workspace:clients/algoliasearch-client-javascript/client-insights"
+ resolution: "@algolia/client-insights@workspace:clients/algoliasearch-client-javascript/packages/client-insights"
dependencies:
"@algolia/client-common": 5.0.0
"@algolia/requester-browser-xhr": 5.0.0
@@ -77,9 +77,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/client-personalization@5.0.0, @algolia/client-personalization@workspace:clients/algoliasearch-client-javascript/client-personalization":
+"@algolia/client-personalization@5.0.0, @algolia/client-personalization@workspace:clients/algoliasearch-client-javascript/packages/client-personalization":
version: 0.0.0-use.local
- resolution: "@algolia/client-personalization@workspace:clients/algoliasearch-client-javascript/client-personalization"
+ resolution: "@algolia/client-personalization@workspace:clients/algoliasearch-client-javascript/packages/client-personalization"
dependencies:
"@algolia/client-common": 5.0.0
"@algolia/requester-browser-xhr": 5.0.0
@@ -89,9 +89,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/client-query-suggestions@5.0.0, @algolia/client-query-suggestions@workspace:clients/algoliasearch-client-javascript/client-query-suggestions":
+"@algolia/client-query-suggestions@5.0.0, @algolia/client-query-suggestions@workspace:clients/algoliasearch-client-javascript/packages/client-query-suggestions":
version: 0.0.0-use.local
- resolution: "@algolia/client-query-suggestions@workspace:clients/algoliasearch-client-javascript/client-query-suggestions"
+ resolution: "@algolia/client-query-suggestions@workspace:clients/algoliasearch-client-javascript/packages/client-query-suggestions"
dependencies:
"@algolia/client-common": 5.0.0
"@algolia/requester-browser-xhr": 5.0.0
@@ -101,9 +101,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/client-search@5.0.0, @algolia/client-search@workspace:clients/algoliasearch-client-javascript/client-search":
+"@algolia/client-search@5.0.0, @algolia/client-search@workspace:clients/algoliasearch-client-javascript/packages/client-search":
version: 0.0.0-use.local
- resolution: "@algolia/client-search@workspace:clients/algoliasearch-client-javascript/client-search"
+ resolution: "@algolia/client-search@workspace:clients/algoliasearch-client-javascript/packages/client-search"
dependencies:
"@algolia/client-common": 5.0.0
"@algolia/requester-browser-xhr": 5.0.0
@@ -113,9 +113,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/client-sources@0.0.1, @algolia/client-sources@workspace:clients/algoliasearch-client-javascript/client-sources":
+"@algolia/client-sources@0.0.1, @algolia/client-sources@workspace:clients/algoliasearch-client-javascript/packages/client-sources":
version: 0.0.0-use.local
- resolution: "@algolia/client-sources@workspace:clients/algoliasearch-client-javascript/client-sources"
+ resolution: "@algolia/client-sources@workspace:clients/algoliasearch-client-javascript/packages/client-sources"
dependencies:
"@algolia/client-common": 5.0.0
"@algolia/requester-browser-xhr": 5.0.0
@@ -125,9 +125,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/recommend@5.0.0, @algolia/recommend@workspace:clients/algoliasearch-client-javascript/recommend":
+"@algolia/recommend@5.0.0, @algolia/recommend@workspace:clients/algoliasearch-client-javascript/packages/recommend":
version: 0.0.0-use.local
- resolution: "@algolia/recommend@workspace:clients/algoliasearch-client-javascript/recommend"
+ resolution: "@algolia/recommend@workspace:clients/algoliasearch-client-javascript/packages/recommend"
dependencies:
"@algolia/client-common": 5.0.0
"@algolia/requester-browser-xhr": 5.0.0
@@ -137,9 +137,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/requester-browser-xhr@5.0.0, @algolia/requester-browser-xhr@workspace:clients/algoliasearch-client-javascript/requester-browser-xhr":
+"@algolia/requester-browser-xhr@5.0.0, @algolia/requester-browser-xhr@workspace:clients/algoliasearch-client-javascript/packages/requester-browser-xhr":
version: 0.0.0-use.local
- resolution: "@algolia/requester-browser-xhr@workspace:clients/algoliasearch-client-javascript/requester-browser-xhr"
+ resolution: "@algolia/requester-browser-xhr@workspace:clients/algoliasearch-client-javascript/packages/requester-browser-xhr"
dependencies:
"@algolia/client-common": 5.0.0
"@types/node": 16.11.11
@@ -147,9 +147,9 @@ __metadata:
languageName: unknown
linkType: soft
-"@algolia/requester-node-http@5.0.0, @algolia/requester-node-http@workspace:clients/algoliasearch-client-javascript/requester-node-http":
+"@algolia/requester-node-http@5.0.0, @algolia/requester-node-http@workspace:clients/algoliasearch-client-javascript/packages/requester-node-http":
version: 0.0.0-use.local
- resolution: "@algolia/requester-node-http@workspace:clients/algoliasearch-client-javascript/requester-node-http"
+ resolution: "@algolia/requester-node-http@workspace:clients/algoliasearch-client-javascript/packages/requester-node-http"
dependencies:
"@algolia/client-common": 5.0.0
"@types/node": 16.11.11
@@ -585,6 +585,22 @@ __metadata:
languageName: node
linkType: hard
+"@cspotcode/source-map-consumer@npm:0.8.0":
+ version: 0.8.0
+ resolution: "@cspotcode/source-map-consumer@npm:0.8.0"
+ checksum: c0c16ca3d2f58898f1bd74c4f41a189dbcc202e642e60e489cbcc2e52419c4e89bdead02c886a12fb13ea37798ede9e562b2321df997ebc210ae9bd881561b4e
+ languageName: node
+ linkType: hard
+
+"@cspotcode/source-map-support@npm:0.7.0":
+ version: 0.7.0
+ resolution: "@cspotcode/source-map-support@npm:0.7.0"
+ dependencies:
+ "@cspotcode/source-map-consumer": 0.8.0
+ checksum: 9faddda7757cd778b5fd6812137b2cc265810043680d6399acc20441668fafcdc874053be9dccd0d9110087287bfad27eb3bf342f72bceca9aa9059f5d0c4be8
+ languageName: node
+ linkType: hard
+
"@es-joy/jsdoccomment@npm:0.14.2":
version: 0.14.2
resolution: "@es-joy/jsdoccomment@npm:0.14.2"
@@ -1081,6 +1097,34 @@ __metadata:
languageName: node
linkType: hard
+"@tsconfig/node10@npm:^1.0.7":
+ version: 1.0.8
+ resolution: "@tsconfig/node10@npm:1.0.8"
+ checksum: b8d5fffbc6b17ef64ef74f7fdbccee02a809a063ade785c3648dae59406bc207f70ea2c4296f92749b33019fa36a5ae716e42e49cc7f1bbf0fd147be0d6b970a
+ languageName: node
+ linkType: hard
+
+"@tsconfig/node12@npm:^1.0.7":
+ version: 1.0.9
+ resolution: "@tsconfig/node12@npm:1.0.9"
+ checksum: a01b2400ab3582b86b589c6d31dcd0c0656f333adecde85d6d7d4086adb059808b82692380bb169546d189bf771ae21d02544a75b57bd6da4a5dd95f8567bec9
+ languageName: node
+ linkType: hard
+
+"@tsconfig/node14@npm:^1.0.0":
+ version: 1.0.1
+ resolution: "@tsconfig/node14@npm:1.0.1"
+ checksum: 976345e896c0f059867f94f8d0f6ddb8b1844fb62bf36b727de8a9a68f024857e5db97ed51d3325e23e0616a5e48c034ff51a8d595b3fe7e955f3587540489be
+ languageName: node
+ linkType: hard
+
+"@tsconfig/node16@npm:^1.0.2":
+ version: 1.0.2
+ resolution: "@tsconfig/node16@npm:1.0.2"
+ checksum: ca94d3639714672bbfd55f03521d3f56bb6a25479bd425da81faf21f13e1e9d15f40f97377dedbbf477a5841c5b0c8f4cd1b391f33553d750b9202c54c2c07aa
+ languageName: node
+ linkType: hard
+
"@types/babel__core@npm:^7.0.0, @types/babel__core@npm:^7.1.14":
version: 7.1.18
resolution: "@types/babel__core@npm:7.1.18"
@@ -1412,6 +1456,13 @@ __metadata:
languageName: node
linkType: hard
+"acorn-walk@npm:^8.1.1":
+ version: 8.2.0
+ resolution: "acorn-walk@npm:8.2.0"
+ checksum: 1715e76c01dd7b2d4ca472f9c58968516a4899378a63ad5b6c2d668bba8da21a71976c14ec5f5b75f887b6317c4ae0b897ab141c831d741dc76024d8745f1ad1
+ languageName: node
+ linkType: hard
+
"acorn@npm:^7.1.1":
version: 7.4.1
resolution: "acorn@npm:7.4.1"
@@ -1421,7 +1472,7 @@ __metadata:
languageName: node
linkType: hard
-"acorn@npm:^8.2.4, acorn@npm:^8.7.0":
+"acorn@npm:^8.2.4, acorn@npm:^8.4.1, acorn@npm:^8.7.0":
version: 8.7.0
resolution: "acorn@npm:8.7.0"
bin:
@@ -1472,6 +1523,14 @@ __metadata:
languageName: node
linkType: hard
+"algoliasearch-client-javascript@workspace:clients/algoliasearch-client-javascript":
+ version: 0.0.0-use.local
+ resolution: "algoliasearch-client-javascript@workspace:clients/algoliasearch-client-javascript"
+ dependencies:
+ typescript: 4.5.4
+ languageName: unknown
+ linkType: soft
+
"ansi-colors@npm:^4.1.1":
version: 4.1.1
resolution: "ansi-colors@npm:4.1.1"
@@ -1547,6 +1606,13 @@ __metadata:
languageName: node
linkType: hard
+"arg@npm:^4.1.0":
+ version: 4.1.3
+ resolution: "arg@npm:4.1.3"
+ checksum: 544af8dd3f60546d3e4aff084d451b96961d2267d668670199692f8d054f0415d86fc5497d0e641e91546f0aa920e7c29e5250e99fc89f5552a34b5d93b77f43
+ languageName: node
+ linkType: hard
+
"argparse@npm:^1.0.7":
version: 1.0.10
resolution: "argparse@npm:1.0.10"
@@ -2189,6 +2255,13 @@ __metadata:
languageName: node
linkType: hard
+"create-require@npm:^1.1.0":
+ version: 1.1.1
+ resolution: "create-require@npm:1.1.1"
+ checksum: a9a1503d4390d8b59ad86f4607de7870b39cad43d929813599a23714831e81c520bddf61bcdd1f8e30f05fd3a2b71ae8538e946eb2786dc65c2bbc520f692eff
+ languageName: node
+ linkType: hard
+
"cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3":
version: 7.0.3
resolution: "cross-spawn@npm:7.0.3"
@@ -2352,6 +2425,13 @@ __metadata:
languageName: node
linkType: hard
+"diff@npm:^4.0.1":
+ version: 4.0.2
+ resolution: "diff@npm:4.0.2"
+ checksum: f2c09b0ce4e6b301c221addd83bf3f454c0bc00caa3dd837cf6c127d6edf7223aa2bbe3b688feea110b7f262adbfc845b757c44c8a9f8c0c5b15d8fa9ce9d20d
+ languageName: node
+ linkType: hard
+
"dir-glob@npm:^3.0.1":
version: 3.0.1
resolution: "dir-glob@npm:3.0.1"
@@ -2395,13 +2475,6 @@ __metadata:
languageName: node
linkType: hard
-"dotenv@npm:11.0.0":
- version: 11.0.0
- resolution: "dotenv@npm:11.0.0"
- checksum: 48df9e85ea1d41b3096afc1990b9b1bd966deb6c9e056cd43f14e755f3ef1e5d477c3b05afc7ca651e31320c26a9b7dc375bc3313777352c51e6a2f539ea1ffc
- languageName: node
- linkType: hard
-
"easy-table@npm:1.1.0":
version: 1.1.0
resolution: "easy-table@npm:1.1.0"
@@ -3857,17 +3930,11 @@ __metadata:
"@algolia/client-search": 5.0.0
"@algolia/client-sources": 0.0.1
"@algolia/recommend": 5.0.0
- "@apidevtools/swagger-parser": 10.0.3
"@types/jest": 27.0.3
- "@types/mustache": 4.1.2
"@types/node": 16.11.11
- dotenv: 11.0.0
- eslint: 8.6.0
jest: 27.4.7
- mustache: 4.2.0
- openapi-types: 10.0.0
- prettier: 2.5.1
ts-jest: 27.1.2
+ ts-node: 10.5.0
typescript: 4.5.4
languageName: unknown
linkType: soft
@@ -4641,7 +4708,7 @@ __metadata:
languageName: node
linkType: hard
-"make-error@npm:1.x":
+"make-error@npm:1.x, make-error@npm:^1.1.1":
version: 1.3.6
resolution: "make-error@npm:1.3.6"
checksum: b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402
@@ -6195,6 +6262,43 @@ __metadata:
languageName: node
linkType: hard
+"ts-node@npm:10.5.0":
+ version: 10.5.0
+ resolution: "ts-node@npm:10.5.0"
+ dependencies:
+ "@cspotcode/source-map-support": 0.7.0
+ "@tsconfig/node10": ^1.0.7
+ "@tsconfig/node12": ^1.0.7
+ "@tsconfig/node14": ^1.0.0
+ "@tsconfig/node16": ^1.0.2
+ acorn: ^8.4.1
+ acorn-walk: ^8.1.1
+ arg: ^4.1.0
+ create-require: ^1.1.0
+ diff: ^4.0.1
+ make-error: ^1.1.1
+ v8-compile-cache-lib: ^3.0.0
+ yn: 3.1.1
+ peerDependencies:
+ "@swc/core": ">=1.2.50"
+ "@swc/wasm": ">=1.2.50"
+ "@types/node": "*"
+ typescript: ">=2.7"
+ peerDependenciesMeta:
+ "@swc/core":
+ optional: true
+ "@swc/wasm":
+ optional: true
+ bin:
+ ts-node: dist/bin.js
+ ts-node-cwd: dist/bin-cwd.js
+ ts-node-script: dist/bin-script.js
+ ts-node-transpile-only: dist/bin-transpile.js
+ ts-script: dist/bin-script-deprecated.js
+ checksum: d51ac8a9b3582ce3705cef8d35f3372e40caa277dbd7c7baeb651961538f13d2f11f22402614348f78d9b10501bd1cb5f05ec4f2ec9a74bd0e288de769c32335
+ languageName: node
+ linkType: hard
+
"tsconfig-paths@npm:^3.12.0":
version: 3.12.0
resolution: "tsconfig-paths@npm:3.12.0"
@@ -6385,6 +6489,13 @@ __metadata:
languageName: node
linkType: hard
+"v8-compile-cache-lib@npm:^3.0.0":
+ version: 3.0.0
+ resolution: "v8-compile-cache-lib@npm:3.0.0"
+ checksum: 674e312bbca796584b61dc915f33c7e7dc4e06d196e0048cb772c8964493a1ec723f1dd014d9419fd55c24a6eae148f60769da23f622e05cd13268063fa1ed6b
+ languageName: node
+ linkType: hard
+
"v8-compile-cache@npm:^2.0.3":
version: 2.3.0
resolution: "v8-compile-cache@npm:2.3.0"
@@ -6686,6 +6797,13 @@ __metadata:
languageName: node
linkType: hard
+"yn@npm:3.1.1":
+ version: 3.1.1
+ resolution: "yn@npm:3.1.1"
+ checksum: 2c487b0e149e746ef48cda9f8bad10fc83693cd69d7f9dcd8be4214e985de33a29c9e24f3c0d6bcf2288427040a8947406ab27f7af67ee9456e6b84854f02dd6
+ languageName: node
+ linkType: hard
+
"z-schema@npm:^5.0.1":
version: 5.0.2
resolution: "z-schema@npm:5.0.2"