@algolia/client-search 5.0.0-alpha.3 → 5.0.0-alpha.4

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 (51) hide show
  1. package/dist/client-search.cjs.js +143 -21
  2. package/dist/client-search.esm.browser.js +171 -49
  3. package/dist/client-search.esm.node.js +144 -22
  4. package/dist/client-search.umd.js +2 -2
  5. package/dist/model/acl.d.ts +3 -0
  6. package/dist/model/acl.d.ts.map +1 -1
  7. package/dist/model/addApiKeyResponse.d.ts +1 -1
  8. package/dist/model/attributeToUpdate.d.ts +3 -0
  9. package/dist/model/attributeToUpdate.d.ts.map +1 -0
  10. package/dist/model/baseGetApiKeyResponse.d.ts +11 -0
  11. package/dist/model/baseGetApiKeyResponse.d.ts.map +1 -0
  12. package/dist/model/batchParams.d.ts +1 -1
  13. package/dist/model/batchParams.d.ts.map +1 -1
  14. package/dist/model/clientMethodProps.d.ts +20 -7
  15. package/dist/model/clientMethodProps.d.ts.map +1 -1
  16. package/dist/model/getApiKeyResponse.d.ts +4 -0
  17. package/dist/model/getApiKeyResponse.d.ts.map +1 -0
  18. package/dist/model/getObjectsParams.d.ts +1 -1
  19. package/dist/model/getObjectsParams.d.ts.map +1 -1
  20. package/dist/model/index.d.ts +3 -3
  21. package/dist/model/index.d.ts.map +1 -1
  22. package/dist/model/listApiKeysResponse.d.ts +2 -2
  23. package/dist/model/listApiKeysResponse.d.ts.map +1 -1
  24. package/dist/model/multipleBatchRequest.d.ts +3 -3
  25. package/dist/model/multipleBatchRequest.d.ts.map +1 -1
  26. package/dist/model/multipleBatchResponse.d.ts +2 -2
  27. package/dist/model/multipleBatchResponse.d.ts.map +1 -1
  28. package/dist/model/updateApiKeyResponse.d.ts +1 -1
  29. package/dist/src/searchClient.d.ts +62 -15
  30. package/dist/src/searchClient.d.ts.map +1 -1
  31. package/model/acl.ts +3 -0
  32. package/model/addApiKeyResponse.ts +1 -1
  33. package/model/{attributeOrBuiltInOperation.ts → attributeToUpdate.ts} +1 -1
  34. package/model/baseGetApiKeyResponse.ts +13 -0
  35. package/model/batchParams.ts +1 -1
  36. package/model/clientMethodProps.ts +27 -11
  37. package/model/{key.ts → getApiKeyResponse.ts} +2 -2
  38. package/model/getObjectsParams.ts +1 -1
  39. package/model/index.ts +3 -3
  40. package/model/listApiKeysResponse.ts +2 -2
  41. package/model/multipleBatchRequest.ts +3 -3
  42. package/model/multipleBatchResponse.ts +2 -2
  43. package/model/updateApiKeyResponse.ts +1 -1
  44. package/package.json +5 -5
  45. package/dist/model/attributeOrBuiltInOperation.d.ts +0 -3
  46. package/dist/model/attributeOrBuiltInOperation.d.ts.map +0 -1
  47. package/dist/model/createdAtObject.d.ts +0 -7
  48. package/dist/model/createdAtObject.d.ts.map +0 -1
  49. package/dist/model/key.d.ts +0 -4
  50. package/dist/model/key.d.ts.map +0 -1
  51. package/model/createdAtObject.ts +0 -8
@@ -3,15 +3,15 @@
3
3
  import type { Action } from './action';
4
4
 
5
5
  export type MultipleBatchRequest = {
6
- action?: Action;
6
+ action: Action;
7
7
 
8
8
  /**
9
9
  * Arguments to the operation (depends on the type of the operation).
10
10
  */
11
- body?: Record<string, any>;
11
+ body: Record<string, any>;
12
12
 
13
13
  /**
14
14
  * Index to target for this operation.
15
15
  */
16
- indexName?: string;
16
+ indexName: string;
17
17
  };
@@ -4,10 +4,10 @@ export type MultipleBatchResponse = {
4
4
  /**
5
5
  * List of tasksIDs per index.
6
6
  */
7
- taskID?: Record<string, any>;
7
+ taskID: Record<string, number>;
8
8
 
9
9
  /**
10
10
  * List of objectID.
11
11
  */
12
- objectIDs?: string[];
12
+ objectIDs: string[];
13
13
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  export type UpdateApiKeyResponse = {
4
4
  /**
5
- * Key string.
5
+ * The API key.
6
6
  */
7
7
  key: string;
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/client-search",
3
- "version": "5.0.0-alpha.3",
3
+ "version": "5.0.0-alpha.4",
4
4
  "description": "JavaScript client for client-search",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
@@ -21,12 +21,12 @@
21
21
  "clean": "rm -rf ./dist"
22
22
  },
23
23
  "dependencies": {
24
- "@algolia/client-common": "5.0.0-alpha.3",
25
- "@algolia/requester-browser-xhr": "5.0.0-alpha.3",
26
- "@algolia/requester-node-http": "5.0.0-alpha.3"
24
+ "@algolia/client-common": "5.0.0-alpha.4",
25
+ "@algolia/requester-browser-xhr": "5.0.0-alpha.4",
26
+ "@algolia/requester-node-http": "5.0.0-alpha.4"
27
27
  },
28
28
  "devDependencies": {
29
- "@types/node": "16.11.45",
29
+ "@types/node": "16.11.47",
30
30
  "typescript": "4.7.4"
31
31
  },
32
32
  "engines": {
@@ -1,3 +0,0 @@
1
- import type { BuiltInOperation } from './builtInOperation';
2
- export declare type AttributeOrBuiltInOperation = BuiltInOperation | string;
3
- //# sourceMappingURL=attributeOrBuiltInOperation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attributeOrBuiltInOperation.d.ts","sourceRoot":"","sources":["../../../../packages/client-search/model/attributeOrBuiltInOperation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,oBAAY,2BAA2B,GAAG,gBAAgB,GAAG,MAAM,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare type CreatedAtObject = {
2
- /**
3
- * Date of creation (ISO-8601 format).
4
- */
5
- createdAt: string;
6
- };
7
- //# sourceMappingURL=createdAtObject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createdAtObject.d.ts","sourceRoot":"","sources":["../../../../packages/client-search/model/createdAtObject.ts"],"names":[],"mappings":"AAEA,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { ApiKey } from './apiKey';
2
- import type { CreatedAtObject } from './createdAtObject';
3
- export declare type Key = ApiKey & CreatedAtObject;
4
- //# sourceMappingURL=key.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../../../packages/client-search/model/key.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,oBAAY,GAAG,GAAG,MAAM,GAAG,eAAe,CAAC"}
@@ -1,8 +0,0 @@
1
- // This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2
-
3
- export type CreatedAtObject = {
4
- /**
5
- * Date of creation (ISO-8601 format).
6
- */
7
- createdAt: string;
8
- };