Skip to content

Commit 96eee16

Browse files
committed
merge with main
2 parents 1bbab4d + b32d15f commit 96eee16

File tree

124 files changed

+4253
-2198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+4253
-2198
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ node_modules
22
dist
33
playground
44
build
5+
composer.json
6+
tsconfig.json

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ module.exports = {
117117
},
118118
],
119119
},
120+
},
121+
{
122+
files: ['*.json'],
123+
124+
plugins: ['json-format']
120125
}
121126
],
122127
};

.github/.cache_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.2.0
1+
7.2.1.0.1

.github/workflows/check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
fi
3737
exit $diff
3838
39+
- name: Lint json files
40+
run: yarn eslint --ext=json .
41+
3942
outputs:
4043
RUN_SCRIPTS: ${{ steps.setup.outputs.RUN_SCRIPTS }}
4144

@@ -274,6 +277,7 @@ jobs:
274277
hashFiles(
275278
format('{0}/lib/Api/{1}.php', matrix.client.folder, matrix.client.api),
276279
format('{0}/lib/Configuration/{1}.php', matrix.client.folder, matrix.client.config),
280+
format('{0}/lib/Model/{1}/**', matrix.client.folder, matrix.client.capitalizedName),
277281
format('specs/bundled/{0}.yml', matrix.client.name),
278282
'templates/php/**',
279283
'generators/src/**'

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ nodeLinker: node-modules
22

33
plugins:
44
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
5-
spec: "@yarnpkg/plugin-interactive-tools"
5+
spec: '@yarnpkg/plugin-interactive-tools'
66

77
yarnPath: .yarn/releases/yarn-3.1.1.cjs
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2-
"packages": ["packages/*"],
2+
"packages": [
3+
"packages/*"
4+
],
35
"version": "independent"
46
}

clients/algoliasearch-client-javascript/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"name": "algoliasearch-client-javascript",
3+
"private": true,
34
"workspaces": [
45
"packages/*"
56
],
6-
"private": true,
77
"scripts": {
8-
"build:utils": "yarn build client-common && yarn build requester-browser-xhr && yarn build requester-node-http",
98
"build": "CLIENT=${0:-all} yarn rollup -c rollup.config.js",
10-
"clean:utils": "yarn workspace @experimental-api-clients-automation/client-common clean && yarn workspace @experimental-api-clients-automation/requester-node-http clean && yarn workspace @experimental-api-clients-automation/requester-browser-xhr clean",
9+
"build:utils": "yarn build client-common && yarn build requester-browser-xhr && yarn build requester-node-http",
1110
"clean": "rm -rf packages/*/dist",
11+
"clean:utils": "yarn workspace @experimental-api-clients-automation/client-common clean && yarn workspace @experimental-api-clients-automation/requester-node-http clean && yarn workspace @experimental-api-clients-automation/requester-browser-xhr clean",
1212
"release": "shipjs prepare",
13-
"test:size": "bundlesize",
14-
"test:lint": "eslint . --ext .js,.ts",
15-
"test:types": "yarn tsc --noEmit",
1613
"release:bump": "lerna version ${0:-patch} --no-changelog --no-git-tag-version --no-push --exact --yes",
17-
"release:publish": "ts-node --project tsconfig.script.json scripts/publish.ts"
14+
"release:publish": "ts-node --project tsconfig.script.json scripts/publish.ts",
15+
"test:lint": "eslint . --ext .js,.ts",
16+
"test:size": "bundlesize",
17+
"test:types": "yarn tsc --noEmit"
1818
},
1919
"devDependencies": {
2020
"@babel/core": "7.17.9",

clients/algoliasearch-client-javascript/packages/algoliasearch/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@
33
"version": "0.0.5",
44
"description": "A fully-featured and blazing-fast JavaScript API client to interact with Algolia API.",
55
"repository": "algolia/algoliasearch-client-javascript",
6-
"author": "Algolia",
76
"license": "MIT",
7+
"author": "Algolia",
88
"main": "index.js",
9-
"module": "dist/algoliasearch.esm.node.js",
10-
"types": "index.d.ts",
119
"jsdelivr": "dist/algoliasearch.umd.browser.js",
1210
"unpkg": "dist/algoliasearch.umd.browser.js",
11+
"module": "dist/algoliasearch.esm.node.js",
1312
"browser": "dist/algoliasearch.cjs.browser.js",
13+
"types": "index.d.ts",
1414
"scripts": {
1515
"clean": "rm -rf ./dist"
1616
},
17-
"engines": {
18-
"node": ">= 14.0.0"
19-
},
2017
"dependencies": {
2118
"@experimental-api-clients-automation/client-analytics": "0.0.5",
2219
"@experimental-api-clients-automation/client-common": "0.0.5",
@@ -28,5 +25,8 @@
2825
"devDependencies": {
2926
"@types/node": "16.11.26",
3027
"typescript": "4.6.3"
28+
},
29+
"engines": {
30+
"node": ">= 14.0.0"
3131
}
3232
}

clients/algoliasearch-client-javascript/packages/client-abtesting/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@
33
"version": "0.0.5",
44
"description": "JavaScript client for @experimental-api-clients-automation/client-abtesting",
55
"repository": "algolia/algoliasearch-client-javascript",
6-
"author": "Algolia",
76
"license": "MIT",
7+
"author": "Algolia",
88
"main": "index.js",
9-
"module": "dist/client-abtesting.esm.node.js",
10-
"types": "index.d.ts",
119
"jsdelivr": "dist/client-abtesting.umd.browser.js",
1210
"unpkg": "dist/client-abtesting.umd.browser.js",
11+
"module": "dist/client-abtesting.esm.node.js",
1312
"browser": "dist/client-abtesting.cjs.browser.js",
14-
"scripts": {
15-
"clean": "rm -rf ./dist"
16-
},
13+
"types": "index.d.ts",
1714
"files": [
1815
"dist",
1916
"model",
2017
"index.js",
2118
"index.d.ts"
2219
],
23-
"engines": {
24-
"node": ">= 14.0.0"
20+
"scripts": {
21+
"clean": "rm -rf ./dist"
2522
},
2623
"dependencies": {
2724
"@experimental-api-clients-automation/client-common": "0.0.5",
@@ -31,5 +28,8 @@
3128
"devDependencies": {
3229
"@types/node": "16.11.26",
3330
"typescript": "4.6.3"
31+
},
32+
"engines": {
33+
"node": ">= 14.0.0"
3434
}
3535
}

clients/algoliasearch-client-javascript/packages/client-abtesting/src/abtestingApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@ export function createAbtestingApi(
123123
* @param del - The del object.
124124
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
125125
* @param del.parameters - Query parameters to be applied to the current query.
126-
* @param del.body - The parameters to send with the custom request.
127126
*/
128127
del(
129-
{ path, parameters, body }: DelProps,
128+
{ path, parameters }: DelProps,
130129
requestOptions?: RequestOptions
131130
): Promise<Record<string, any>> {
132131
if (!path) {
@@ -140,7 +139,6 @@ export function createAbtestingApi(
140139
const request: Request = {
141140
method: 'DELETE',
142141
path: requestPath,
143-
data: body,
144142
};
145143

146144
return transporter.request(
@@ -429,10 +427,6 @@ export type DelProps = {
429427
* Query parameters to be applied to the current query.
430428
*/
431429
parameters?: Record<string, any>;
432-
/**
433-
* The parameters to send with the custom request.
434-
*/
435-
body?: Record<string, any>;
436430
};
437431

438432
export type DeleteABTestProps = {

clients/algoliasearch-client-javascript/packages/client-analytics/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@
33
"version": "0.0.5",
44
"description": "JavaScript client for @experimental-api-clients-automation/client-analytics",
55
"repository": "algolia/algoliasearch-client-javascript",
6-
"author": "Algolia",
76
"license": "MIT",
7+
"author": "Algolia",
88
"main": "index.js",
9-
"module": "dist/client-analytics.esm.node.js",
10-
"types": "index.d.ts",
119
"jsdelivr": "dist/client-analytics.umd.browser.js",
1210
"unpkg": "dist/client-analytics.umd.browser.js",
11+
"module": "dist/client-analytics.esm.node.js",
1312
"browser": "dist/client-analytics.cjs.browser.js",
14-
"scripts": {
15-
"clean": "rm -rf ./dist"
16-
},
13+
"types": "index.d.ts",
1714
"files": [
1815
"dist",
1916
"model",
2017
"index.js",
2118
"index.d.ts"
2219
],
23-
"engines": {
24-
"node": ">= 14.0.0"
20+
"scripts": {
21+
"clean": "rm -rf ./dist"
2522
},
2623
"dependencies": {
2724
"@experimental-api-clients-automation/client-common": "0.0.5",
@@ -31,5 +28,8 @@
3128
"devDependencies": {
3229
"@types/node": "16.11.26",
3330
"typescript": "4.6.3"
31+
},
32+
"engines": {
33+
"node": ">= 14.0.0"
3434
}
3535
}

clients/algoliasearch-client-javascript/packages/client-analytics/src/analyticsApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ export function createAnalyticsApi(
8686
* @param del - The del object.
8787
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
8888
* @param del.parameters - Query parameters to be applied to the current query.
89-
* @param del.body - The parameters to send with the custom request.
9089
*/
9190
del(
92-
{ path, parameters, body }: DelProps,
91+
{ path, parameters }: DelProps,
9392
requestOptions?: RequestOptions
9493
): Promise<Record<string, any>> {
9594
if (!path) {
@@ -103,7 +102,6 @@ export function createAnalyticsApi(
103102
const request: Request = {
104103
method: 'DELETE',
105104
path: requestPath,
106-
data: body,
107105
};
108106

109107
return transporter.request(
@@ -1346,10 +1344,6 @@ export type DelProps = {
13461344
* Query parameters to be applied to the current query.
13471345
*/
13481346
parameters?: Record<string, any>;
1349-
/**
1350-
* The parameters to send with the custom request.
1351-
*/
1352-
body?: Record<string, any>;
13531347
};
13541348

13551349
export type GetProps = {

clients/algoliasearch-client-javascript/packages/client-common/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
"version": "0.0.5",
44
"description": "Common package for the Algolia JavaScript API client.",
55
"repository": "algolia/algoliasearch-client-javascript",
6-
"author": "Algolia",
76
"license": "MIT",
7+
"author": "Algolia",
88
"main": "dist/client-common.cjs.node.js",
99
"module": "dist/client-common.esm.node.js",
1010
"types": "dist/index.d.ts",
1111
"scripts": {
1212
"clean": "rm -rf dist/",
1313
"test": "jest"
1414
},
15-
"engines": {
16-
"node": ">= 14.0.0"
17-
},
1815
"devDependencies": {
1916
"@types/jest": "27.4.1",
2017
"@types/node": "16.11.26",
2118
"jest": "27.5.1",
2219
"typescript": "4.6.3"
20+
},
21+
"engines": {
22+
"node": ">= 14.0.0"
2323
}
2424
}

clients/algoliasearch-client-javascript/packages/client-insights/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@
33
"version": "0.0.5",
44
"description": "JavaScript client for @experimental-api-clients-automation/client-insights",
55
"repository": "algolia/algoliasearch-client-javascript",
6-
"author": "Algolia",
76
"license": "MIT",
7+
"author": "Algolia",
88
"main": "index.js",
9-
"module": "dist/client-insights.esm.node.js",
10-
"types": "index.d.ts",
119
"jsdelivr": "dist/client-insights.umd.browser.js",
1210
"unpkg": "dist/client-insights.umd.browser.js",
11+
"module": "dist/client-insights.esm.node.js",
1312
"browser": "dist/client-insights.cjs.browser.js",
14-
"scripts": {
15-
"clean": "rm -rf ./dist"
16-
},
13+
"types": "index.d.ts",
1714
"files": [
1815
"dist",
1916
"model",
2017
"index.js",
2118
"index.d.ts"
2219
],
23-
"engines": {
24-
"node": ">= 14.0.0"
20+
"scripts": {
21+
"clean": "rm -rf ./dist"
2522
},
2623
"dependencies": {
2724
"@experimental-api-clients-automation/client-common": "0.0.5",
@@ -31,5 +28,8 @@
3128
"devDependencies": {
3229
"@types/node": "16.11.26",
3330
"typescript": "4.6.3"
31+
},
32+
"engines": {
33+
"node": ">= 14.0.0"
3434
}
3535
}

clients/algoliasearch-client-javascript/packages/client-insights/src/insightsApi.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ export function createInsightsApi(
6969
* @param del - The del object.
7070
* @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified.
7171
* @param del.parameters - Query parameters to be applied to the current query.
72-
* @param del.body - The parameters to send with the custom request.
7372
*/
7473
del(
75-
{ path, parameters, body }: DelProps,
74+
{ path, parameters }: DelProps,
7675
requestOptions?: RequestOptions
7776
): Promise<Record<string, any>> {
7877
if (!path) {
@@ -86,7 +85,6 @@ export function createInsightsApi(
8685
const request: Request = {
8786
method: 'DELETE',
8887
path: requestPath,
89-
data: body,
9088
};
9189

9290
return transporter.request(
@@ -263,10 +261,6 @@ export type DelProps = {
263261
* Query parameters to be applied to the current query.
264262
*/
265263
parameters?: Record<string, any>;
266-
/**
267-
* The parameters to send with the custom request.
268-
*/
269-
body?: Record<string, any>;
270264
};
271265

272266
export type GetProps = {

clients/algoliasearch-client-javascript/packages/client-personalization/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@
33
"version": "0.0.5",
44
"description": "JavaScript client for @experimental-api-clients-automation/client-personalization",
55
"repository": "algolia/algoliasearch-client-javascript",
6-
"author": "Algolia",
76
"license": "MIT",
7+
"author": "Algolia",
88
"main": "index.js",
9-
"module": "dist/client-personalization.esm.node.js",
10-
"types": "index.d.ts",
119
"jsdelivr": "dist/client-personalization.umd.browser.js",
1210
"unpkg": "dist/client-personalization.umd.browser.js",
11+
"module": "dist/client-personalization.esm.node.js",
1312
"browser": "dist/client-personalization.cjs.browser.js",
14-
"scripts": {
15-
"clean": "rm -rf ./dist"
16-
},
13+
"types": "index.d.ts",
1714
"files": [
1815
"dist",
1916
"model",
2017
"index.js",
2118
"index.d.ts"
2219
],
23-
"engines": {
24-
"node": ">= 14.0.0"
20+
"scripts": {
21+
"clean": "rm -rf ./dist"
2522
},
2623
"dependencies": {
2724
"@experimental-api-clients-automation/client-common": "0.0.5",
@@ -31,5 +28,8 @@
3128
"devDependencies": {
3229
"@types/node": "16.11.26",
3330
"typescript": "4.6.3"
31+
},
32+
"engines": {
33+
"node": ">= 14.0.0"
3434
}
3535
}

0 commit comments

Comments
 (0)