You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When provided, a second transporter will be created in order to leverage the `*WithTransformation` methods exposed by the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
88
-
transformation?: {
89
-
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
90
-
region: IngestionRegion;
91
-
};
88
+
transformation?:
89
+
|{
90
+
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
// When provided, a second transporter will be created in order to leverage the `*WithTransformation` methods exposed by the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
88
-
transformation?: {
89
-
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
90
-
region: IngestionRegion;
91
-
};
88
+
transformation?:
89
+
|{
90
+
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
// When provided, a second transporter will be created in order to leverage the `*WithTransformation` methods exposed by the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
88
-
transformation?: {
89
-
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
90
-
region: IngestionRegion;
91
-
};
88
+
transformation?:
89
+
|{
90
+
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
// When provided, a second transporter will be created in order to leverage the `*WithTransformation` methods exposed by the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
88
-
transformation?: {
89
-
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
90
-
region: IngestionRegion;
91
-
};
88
+
transformation?:
89
+
|{
90
+
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
Copy file name to clipboardExpand all lines: packages/algoliasearch/lite/model/apiKey.ts
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -14,35 +14,35 @@ export type ApiKey = {
14
14
/**
15
15
* Description of an API key to help you identify this API key.
16
16
*/
17
-
description?: string;
17
+
description?: string|undefined;
18
18
19
19
/**
20
20
* Index names or patterns that this API key can access. By default, an API key can access all indices in the same application. You can use leading and trailing wildcard characters (`*`): - `dev_*` matches all indices starting with \"dev_\". - `*_dev` matches all indices ending with \"_dev\". - `*_products_*` matches all indices containing \"_products_\".
21
21
*/
22
-
indexes?: Array<string>;
22
+
indexes?: Array<string>|undefined;
23
23
24
24
/**
25
25
* Maximum number of results this API key can retrieve in one query. By default, there\'s no limit.
26
26
*/
27
-
maxHitsPerQuery?: number;
27
+
maxHitsPerQuery?: number|undefined;
28
28
29
29
/**
30
30
* Maximum number of API requests allowed per IP address or [user token](https://www.algolia.com/doc/guides/sending-events/concepts/usertoken/) per hour. If this limit is reached, the API returns an error with status code `429`. By default, there\'s no limit.
31
31
*/
32
-
maxQueriesPerIPPerHour?: number;
32
+
maxQueriesPerIPPerHour?: number|undefined;
33
33
34
34
/**
35
35
* Query parameters to add when making API requests with this API key. To restrict this API key to specific IP addresses, add the `restrictSources` parameter. You can only add a single source, but you can provide a range of IP addresses. Creating an API key fails if the request is made from an IP address outside the restricted range.
36
36
*/
37
-
queryParameters?: string;
37
+
queryParameters?: string|undefined;
38
38
39
39
/**
40
40
* Allowed HTTP referrers for this API key. By default, all referrers are allowed. You can use leading and trailing wildcard characters (`*`): - `https://algolia.com/_*` allows all referrers starting with \"https://algolia.com/\" - `*.algolia.com` allows all referrers ending with \".algolia.com\" - `*algolia.com*` allows all referrers in the domain \"algolia.com\". Like all HTTP headers, referrers can be spoofed. Don\'t rely on them to secure your data. For more information, see [HTTP referrer restrictions](https://www.algolia.com/doc/guides/security/security-best-practices/#http-referrers-restrictions).
41
41
*/
42
-
referers?: Array<string>;
42
+
referers?: Array<string>|undefined;
43
43
44
44
/**
45
45
* Duration (in seconds) after which the API key expires. By default, API keys don\'t expire.
Copy file name to clipboardExpand all lines: packages/algoliasearch/lite/model/automaticFacetFilter.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@ export type AutomaticFacetFilter = {
12
12
/**
13
13
* Filter scores to give different weights to individual filters.
14
14
*/
15
-
score?: number;
15
+
score?: number|undefined;
16
16
17
17
/**
18
18
* Whether the filter is disjunctive or conjunctive. If true the filter has multiple matches, multiple occurences are combined with the logical `OR` operation. If false, multiple occurences are combined with the logical `AND` operation.
0 commit comments