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/).
113
+
transformationOptions?: {
114
+
region: IngestionRegion;
115
+
}&ClientOptions;
116
+
117
+
/** @deprecated Use `transformationOptions` instead. */
113
118
transformation?:
114
119
|{
115
120
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
@@ -133,14 +138,24 @@ export function algoliasearch(
@@ -151,11 +166,9 @@ export function algoliasearch(
151
166
requestOptions,
152
167
): Promise<Array<WatchResponse>>{
153
168
if(!ingestionTransporter){
154
-
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
155
-
}
156
-
157
-
if(!options?.transformation?.region){
158
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
169
+
thrownewError(
170
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
171
+
);
159
172
}
160
173
161
174
returningestionTransporter.chunkedPush(
@@ -169,11 +182,9 @@ export function algoliasearch(
169
182
requestOptions,
170
183
): Promise<Array<WatchResponse>>{
171
184
if(!ingestionTransporter){
172
-
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
173
-
}
174
-
175
-
if(!options?.transformation?.region){
176
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
185
+
thrownewError(
186
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
187
+
);
177
188
}
178
189
179
190
returningestionTransporter.chunkedPush(
@@ -192,11 +203,9 @@ export function algoliasearch(
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
196
-
}
197
-
198
-
if(!options?.transformation?.region){
199
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
206
+
thrownewError(
207
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
// 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/).
113
+
transformationOptions?: {
114
+
region: IngestionRegion;
115
+
}&ClientOptions;
116
+
117
+
/** @deprecated Use `transformationOptions` instead. */
113
118
transformation?:
114
119
|{
115
120
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
@@ -133,14 +138,24 @@ export function algoliasearch(
@@ -151,11 +166,9 @@ export function algoliasearch(
151
166
requestOptions,
152
167
): Promise<Array<WatchResponse>>{
153
168
if(!ingestionTransporter){
154
-
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
155
-
}
156
-
157
-
if(!options?.transformation?.region){
158
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
169
+
thrownewError(
170
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
171
+
);
159
172
}
160
173
161
174
returningestionTransporter.chunkedPush(
@@ -169,11 +182,9 @@ export function algoliasearch(
169
182
requestOptions,
170
183
): Promise<Array<WatchResponse>>{
171
184
if(!ingestionTransporter){
172
-
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
173
-
}
174
-
175
-
if(!options?.transformation?.region){
176
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
185
+
thrownewError(
186
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
187
+
);
177
188
}
178
189
179
190
returningestionTransporter.chunkedPush(
@@ -192,11 +203,9 @@ export function algoliasearch(
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
196
-
}
197
-
198
-
if(!options?.transformation?.region){
199
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
206
+
thrownewError(
207
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
// 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/).
113
+
transformationOptions?: {
114
+
region: IngestionRegion;
115
+
}&ClientOptions;
116
+
117
+
/** @deprecated Use `transformationOptions` instead. */
113
118
transformation?:
114
119
|{
115
120
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
@@ -133,14 +138,24 @@ export function algoliasearch(
@@ -151,11 +166,9 @@ export function algoliasearch(
151
166
requestOptions,
152
167
): Promise<Array<WatchResponse>>{
153
168
if(!ingestionTransporter){
154
-
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
155
-
}
156
-
157
-
if(!options?.transformation?.region){
158
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
169
+
thrownewError(
170
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
171
+
);
159
172
}
160
173
161
174
returningestionTransporter.chunkedPush(
@@ -169,11 +182,9 @@ export function algoliasearch(
169
182
requestOptions,
170
183
): Promise<Array<WatchResponse>>{
171
184
if(!ingestionTransporter){
172
-
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
173
-
}
174
-
175
-
if(!options?.transformation?.region){
176
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
185
+
thrownewError(
186
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
187
+
);
177
188
}
178
189
179
190
returningestionTransporter.chunkedPush(
@@ -192,11 +203,9 @@ export function algoliasearch(
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
196
-
}
197
-
198
-
if(!options?.transformation?.region){
199
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
206
+
thrownewError(
207
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
// 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/).
113
+
transformationOptions?: {
114
+
region: IngestionRegion;
115
+
}&ClientOptions;
116
+
117
+
/** @deprecated Use `transformationOptions` instead. */
113
118
transformation?:
114
119
|{
115
120
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
@@ -133,14 +138,24 @@ export function algoliasearch(
@@ -151,11 +166,9 @@ export function algoliasearch(
151
166
requestOptions,
152
167
): Promise<Array<WatchResponse>>{
153
168
if(!ingestionTransporter){
154
-
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
155
-
}
156
-
157
-
if(!options?.transformation?.region){
158
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
169
+
thrownewError(
170
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
171
+
);
159
172
}
160
173
161
174
returningestionTransporter.chunkedPush(
@@ -169,11 +182,9 @@ export function algoliasearch(
169
182
requestOptions,
170
183
): Promise<Array<WatchResponse>>{
171
184
if(!ingestionTransporter){
172
-
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
173
-
}
174
-
175
-
if(!options?.transformation?.region){
176
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
185
+
thrownewError(
186
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
187
+
);
177
188
}
178
189
179
190
returningestionTransporter.chunkedPush(
@@ -192,11 +203,9 @@ export function algoliasearch(
thrownewError('`transformation.region` must be provided at client instantiation before calling this method.');
196
-
}
197
-
198
-
if(!options?.transformation?.region){
199
-
thrownewError('`region` must be provided when leveraging the transformation pipeline');
206
+
thrownewError(
207
+
'`transformationOptions` must be set in the client config before calling this method. It defaults to the Ingestion API defaults. See https://www.algolia.com/doc/libraries/sdk/methods/ingestion/',
0 commit comments