@algolia/client-personalization 5.0.0-alpha.9 → 5.0.0-alpha.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-personalization.cjs.js → client-personalization.cjs} +283 -285
  6. package/dist/client-personalization.esm.browser.js +465 -515
  7. package/dist/client-personalization.esm.node.js +283 -283
  8. package/dist/client-personalization.umd.js +2 -2
  9. package/dist/model/clientMethodProps.d.ts +78 -78
  10. package/dist/model/clientMethodProps.d.ts.map +1 -1
  11. package/dist/model/deleteUserProfileResponse.d.ts +10 -10
  12. package/dist/model/deleteUserProfileResponse.d.ts.map +1 -1
  13. package/dist/model/errorBase.d.ts +6 -6
  14. package/dist/model/errorBase.d.ts.map +1 -1
  15. package/dist/model/eventScoring.d.ts +14 -14
  16. package/dist/model/eventScoring.d.ts.map +1 -1
  17. package/dist/model/facetScoring.d.ts +10 -10
  18. package/dist/model/facetScoring.d.ts.map +1 -1
  19. package/dist/model/getUserTokenResponse.d.ts +14 -14
  20. package/dist/model/getUserTokenResponse.d.ts.map +1 -1
  21. package/dist/model/index.d.ts +8 -8
  22. package/dist/model/personalizationStrategyParams.d.ts +16 -16
  23. package/dist/model/personalizationStrategyParams.d.ts.map +1 -1
  24. package/dist/model/setPersonalizationStrategyResponse.d.ts +6 -6
  25. package/dist/model/setPersonalizationStrategyResponse.d.ts.map +1 -1
  26. package/dist/src/personalizationClient.d.ts +112 -112
  27. package/dist/src/personalizationClient.d.ts.map +1 -1
  28. package/index.js +1 -1
  29. package/model/clientMethodProps.ts +11 -11
  30. package/model/deleteUserProfileResponse.ts +1 -1
  31. package/model/errorBase.ts +1 -1
  32. package/model/eventScoring.ts +1 -1
  33. package/model/facetScoring.ts +1 -1
  34. package/model/getUserTokenResponse.ts +1 -1
  35. package/model/index.ts +1 -1
  36. package/model/personalizationStrategyParams.ts +1 -1
  37. package/model/setPersonalizationStrategyResponse.ts +1 -1
  38. package/package.json +30 -13
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // eslint-disable-next-line import/no-commonjs,import/extensions
2
- module.exports = require('./dist/client-personalization.cjs.js');
2
+ module.exports = require('./dist/client-personalization.cjs');
@@ -1,15 +1,15 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
4
  * Properties for the `del` method.
5
5
  */
6
6
  export type DelProps = {
7
7
  /**
8
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
8
+ * Path of the endpoint, anything after \"/1\" must be specified.
9
9
  */
10
10
  path: string;
11
11
  /**
12
- * Query parameters to be applied to the current query.
12
+ * Query parameters to apply to the current query.
13
13
  */
14
14
  parameters?: Record<string, any>;
15
15
  };
@@ -29,11 +29,11 @@ export type DeleteUserProfileProps = {
29
29
  */
30
30
  export type GetProps = {
31
31
  /**
32
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
32
+ * Path of the endpoint, anything after \"/1\" must be specified.
33
33
  */
34
34
  path: string;
35
35
  /**
36
- * Query parameters to be applied to the current query.
36
+ * Query parameters to apply to the current query.
37
37
  */
38
38
  parameters?: Record<string, any>;
39
39
  };
@@ -53,15 +53,15 @@ export type GetUserTokenProfileProps = {
53
53
  */
54
54
  export type PostProps = {
55
55
  /**
56
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
56
+ * Path of the endpoint, anything after \"/1\" must be specified.
57
57
  */
58
58
  path: string;
59
59
  /**
60
- * Query parameters to be applied to the current query.
60
+ * Query parameters to apply to the current query.
61
61
  */
62
62
  parameters?: Record<string, any>;
63
63
  /**
64
- * The parameters to send with the custom request.
64
+ * Parameters to send with the custom request.
65
65
  */
66
66
  body?: Record<string, any>;
67
67
  };
@@ -71,15 +71,15 @@ export type PostProps = {
71
71
  */
72
72
  export type PutProps = {
73
73
  /**
74
- * The path of the API endpoint to target, anything after the /1 needs to be specified.
74
+ * Path of the endpoint, anything after \"/1\" must be specified.
75
75
  */
76
76
  path: string;
77
77
  /**
78
- * Query parameters to be applied to the current query.
78
+ * Query parameters to apply to the current query.
79
79
  */
80
80
  parameters?: Record<string, any>;
81
81
  /**
82
- * The parameters to send with the custom request.
82
+ * Parameters to send with the custom request.
83
83
  */
84
84
  body?: Record<string, any>;
85
85
  };
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type DeleteUserProfileResponse = {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  /**
4
4
  * Error.
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type EventScoring = {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type FacetScoring = {
4
4
  /**
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type GetUserTokenResponse = {
4
4
  /**
package/model/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export * from './deleteUserProfileResponse';
4
4
  export * from './errorBase';
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  import type { EventScoring } from './eventScoring';
4
4
  import type { FacetScoring } from './facetScoring';
@@ -1,4 +1,4 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
1
+ // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  export type SetPersonalizationStrategyResponse = {
4
4
  /**
package/package.json CHANGED
@@ -1,16 +1,33 @@
1
1
  {
2
2
  "name": "@algolia/client-personalization",
3
- "version": "5.0.0-alpha.9",
3
+ "version": "5.0.0-alpha.90",
4
4
  "description": "JavaScript client for client-personalization",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
7
7
  "author": "Algolia",
8
- "main": "index.js",
9
- "jsdelivr": "dist/client-personalization.umd.js",
10
- "unpkg": "dist/client-personalization.umd.js",
11
- "module": "dist/client-personalization.esm.node.js",
12
- "browser": "dist/client-personalization.umd.js",
13
- "types": "index.d.ts",
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "node": {
12
+ "import": "./dist/client-personalization.esm.node.js",
13
+ "module": "./dist/client-personalization.esm.node.js",
14
+ "require": "./dist/client-personalization.cjs",
15
+ "default": "./dist/client-personalization.cjs"
16
+ },
17
+ "default": {
18
+ "umd": "./dist/client-personalization.umd.js",
19
+ "module": "./dist/client-personalization.esm.browser.js",
20
+ "import": "./dist/client-personalization.esm.browser.js",
21
+ "default": "./dist/client-personalization.umd.js"
22
+ }
23
+ },
24
+ "./src/*": "./src/*.ts",
25
+ "./model": "./model/index.ts"
26
+ },
27
+ "jsdelivr": "./dist/client-personalization.umd.js",
28
+ "unpkg": "./dist/client-personalization.umd.js",
29
+ "browser": "./dist/client-personalization.umd.js",
30
+ "types": "./index.d.ts",
14
31
  "files": [
15
32
  "dist",
16
33
  "model",
@@ -22,14 +39,14 @@
22
39
  "clean": "rm -rf ./dist || true"
23
40
  },
24
41
  "dependencies": {
25
- "@algolia/client-common": "5.0.0-alpha.9",
26
- "@algolia/requester-browser-xhr": "5.0.0-alpha.9",
27
- "@algolia/requester-node-http": "5.0.0-alpha.9"
42
+ "@algolia/client-common": "5.0.0-alpha.91",
43
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.91",
44
+ "@algolia/requester-node-http": "5.0.0-alpha.91"
28
45
  },
29
46
  "devDependencies": {
30
- "@types/node": "16.11.47",
31
- "rollup": "2.77.2",
32
- "typescript": "4.7.4"
47
+ "@types/node": "20.8.10",
48
+ "rollup": "4.3.0",
49
+ "typescript": "5.2.2"
33
50
  },
34
51
  "engines": {
35
52
  "node": ">= 14.0.0"