algolia 3.38.0 → 3.39.1
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.
- checksums.yaml +4 -4
- data/.github/workflows/issue.yml +1 -1
- data/.github/workflows/release.yml +1 -1
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/abtesting_client.rb +16 -0
- data/lib/algolia/api/abtesting_v3_client.rb +16 -0
- data/lib/algolia/api/analytics_client.rb +100 -0
- data/lib/algolia/api/composition_client.rb +83 -0
- data/lib/algolia/api/ingestion_client.rb +159 -0
- data/lib/algolia/api/insights_client.rb +20 -0
- data/lib/algolia/api/monitoring_client.rb +36 -0
- data/lib/algolia/api/personalization_client.rb +24 -0
- data/lib/algolia/api/query_suggestions_client.rb +36 -0
- data/lib/algolia/api/recommend_client.rb +44 -0
- data/lib/algolia/api/search_client.rb +212 -4
- data/lib/algolia/models/composition/external_injected_item.rb +1 -0
- data/lib/algolia/models/composition/external_injection.rb +1 -1
- data/lib/algolia/models/composition/params.rb +1 -1
- data/lib/algolia/models/composition/request_body.rb +16 -4
- data/lib/algolia/models/ingestion/destination_update.rb +2 -11
- data/lib/algolia/models/ingestion/destination_update_input.rb +228 -0
- data/lib/algolia/models/ingestion/source_algolia_index.rb +227 -0
- data/lib/algolia/models/ingestion/source_input.rb +1 -0
- data/lib/algolia/models/ingestion/source_type.rb +13 -1
- data/lib/algolia/models/ingestion/source_update_algolia_index.rb +218 -0
- data/lib/algolia/models/ingestion/source_update_input.rb +1 -0
- data/lib/algolia/version.rb +1 -1
- metadata +4 -1
|
@@ -124,6 +124,10 @@ module Algolia
|
|
|
124
124
|
if @api_client.config.client_side_validation && path.nil?
|
|
125
125
|
raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
|
|
126
126
|
end
|
|
127
|
+
# verify the required parameter 'path' is not empty
|
|
128
|
+
if @api_client.config.client_side_validation && path.empty?
|
|
129
|
+
raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
|
|
130
|
+
end
|
|
127
131
|
|
|
128
132
|
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
|
129
133
|
query_params = {}
|
|
@@ -167,6 +171,10 @@ module Algolia
|
|
|
167
171
|
if @api_client.config.client_side_validation && path.nil?
|
|
168
172
|
raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
|
|
169
173
|
end
|
|
174
|
+
# verify the required parameter 'path' is not empty
|
|
175
|
+
if @api_client.config.client_side_validation && path.empty?
|
|
176
|
+
raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
|
|
177
|
+
end
|
|
170
178
|
|
|
171
179
|
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
|
172
180
|
query_params = {}
|
|
@@ -211,6 +219,10 @@ module Algolia
|
|
|
211
219
|
if @api_client.config.client_side_validation && path.nil?
|
|
212
220
|
raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
|
|
213
221
|
end
|
|
222
|
+
# verify the required parameter 'path' is not empty
|
|
223
|
+
if @api_client.config.client_side_validation && path.empty?
|
|
224
|
+
raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
|
|
225
|
+
end
|
|
214
226
|
|
|
215
227
|
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
|
216
228
|
query_params = {}
|
|
@@ -256,6 +268,10 @@ module Algolia
|
|
|
256
268
|
if @api_client.config.client_side_validation && path.nil?
|
|
257
269
|
raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
|
|
258
270
|
end
|
|
271
|
+
# verify the required parameter 'path' is not empty
|
|
272
|
+
if @api_client.config.client_side_validation && path.empty?
|
|
273
|
+
raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
|
|
274
|
+
end
|
|
259
275
|
|
|
260
276
|
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
|
261
277
|
query_params = {}
|
|
@@ -301,6 +317,10 @@ module Algolia
|
|
|
301
317
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
302
318
|
raise ArgumentError, "Parameter `index_name` is required when calling `delete_config`."
|
|
303
319
|
end
|
|
320
|
+
# verify the required parameter 'index_name' is not empty
|
|
321
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
322
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `delete_config`."
|
|
323
|
+
end
|
|
304
324
|
|
|
305
325
|
path = "/1/configs/{indexName}".sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
|
|
306
326
|
query_params = {}
|
|
@@ -385,6 +405,10 @@ module Algolia
|
|
|
385
405
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
386
406
|
raise ArgumentError, "Parameter `index_name` is required when calling `get_config`."
|
|
387
407
|
end
|
|
408
|
+
# verify the required parameter 'index_name' is not empty
|
|
409
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
410
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `get_config`."
|
|
411
|
+
end
|
|
388
412
|
|
|
389
413
|
path = "/1/configs/{indexName}".sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
|
|
390
414
|
query_params = {}
|
|
@@ -432,6 +456,10 @@ module Algolia
|
|
|
432
456
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
433
457
|
raise ArgumentError, "Parameter `index_name` is required when calling `get_config_status`."
|
|
434
458
|
end
|
|
459
|
+
# verify the required parameter 'index_name' is not empty
|
|
460
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
461
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `get_config_status`."
|
|
462
|
+
end
|
|
435
463
|
|
|
436
464
|
path = "/1/configs/{indexName}/status".sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
|
|
437
465
|
query_params = {}
|
|
@@ -476,6 +504,10 @@ module Algolia
|
|
|
476
504
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
477
505
|
raise ArgumentError, "Parameter `index_name` is required when calling `get_log_file`."
|
|
478
506
|
end
|
|
507
|
+
# verify the required parameter 'index_name' is not empty
|
|
508
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
509
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `get_log_file`."
|
|
510
|
+
end
|
|
479
511
|
|
|
480
512
|
path = "/1/logs/{indexName}".sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
|
|
481
513
|
query_params = {}
|
|
@@ -521,6 +553,10 @@ module Algolia
|
|
|
521
553
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
522
554
|
raise ArgumentError, "Parameter `index_name` is required when calling `update_config`."
|
|
523
555
|
end
|
|
556
|
+
# verify the required parameter 'index_name' is not empty
|
|
557
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
558
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `update_config`."
|
|
559
|
+
end
|
|
524
560
|
# verify the required parameter 'configuration' is set
|
|
525
561
|
if @api_client.config.client_side_validation && configuration.nil?
|
|
526
562
|
raise ArgumentError, "Parameter `configuration` is required when calling `update_config`."
|
|
@@ -76,6 +76,10 @@ module Algolia
|
|
|
76
76
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
77
77
|
raise ArgumentError, "Parameter `index_name` is required when calling `batch_recommend_rules`."
|
|
78
78
|
end
|
|
79
|
+
# verify the required parameter 'index_name' is not empty
|
|
80
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
81
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `batch_recommend_rules`."
|
|
82
|
+
end
|
|
79
83
|
# verify the required parameter 'model' is set
|
|
80
84
|
if @api_client.config.client_side_validation && model.nil?
|
|
81
85
|
raise ArgumentError, "Parameter `model` is required when calling `batch_recommend_rules`."
|
|
@@ -130,6 +134,10 @@ module Algolia
|
|
|
130
134
|
if @api_client.config.client_side_validation && path.nil?
|
|
131
135
|
raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
|
|
132
136
|
end
|
|
137
|
+
# verify the required parameter 'path' is not empty
|
|
138
|
+
if @api_client.config.client_side_validation && path.empty?
|
|
139
|
+
raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
|
|
140
|
+
end
|
|
133
141
|
|
|
134
142
|
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
|
135
143
|
query_params = {}
|
|
@@ -173,6 +181,10 @@ module Algolia
|
|
|
173
181
|
if @api_client.config.client_side_validation && path.nil?
|
|
174
182
|
raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
|
|
175
183
|
end
|
|
184
|
+
# verify the required parameter 'path' is not empty
|
|
185
|
+
if @api_client.config.client_side_validation && path.empty?
|
|
186
|
+
raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
|
|
187
|
+
end
|
|
176
188
|
|
|
177
189
|
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
|
178
190
|
query_params = {}
|
|
@@ -217,6 +229,10 @@ module Algolia
|
|
|
217
229
|
if @api_client.config.client_side_validation && path.nil?
|
|
218
230
|
raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
|
|
219
231
|
end
|
|
232
|
+
# verify the required parameter 'path' is not empty
|
|
233
|
+
if @api_client.config.client_side_validation && path.empty?
|
|
234
|
+
raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
|
|
235
|
+
end
|
|
220
236
|
|
|
221
237
|
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
|
222
238
|
query_params = {}
|
|
@@ -262,6 +278,10 @@ module Algolia
|
|
|
262
278
|
if @api_client.config.client_side_validation && path.nil?
|
|
263
279
|
raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
|
|
264
280
|
end
|
|
281
|
+
# verify the required parameter 'path' is not empty
|
|
282
|
+
if @api_client.config.client_side_validation && path.empty?
|
|
283
|
+
raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
|
|
284
|
+
end
|
|
265
285
|
|
|
266
286
|
path = "/{path}".sub("{" + "path" + "}", path.to_s)
|
|
267
287
|
query_params = {}
|
|
@@ -309,6 +329,10 @@ module Algolia
|
|
|
309
329
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
310
330
|
raise ArgumentError, "Parameter `index_name` is required when calling `delete_recommend_rule`."
|
|
311
331
|
end
|
|
332
|
+
# verify the required parameter 'index_name' is not empty
|
|
333
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
334
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `delete_recommend_rule`."
|
|
335
|
+
end
|
|
312
336
|
# verify the required parameter 'model' is set
|
|
313
337
|
if @api_client.config.client_side_validation && model.nil?
|
|
314
338
|
raise ArgumentError, "Parameter `model` is required when calling `delete_recommend_rule`."
|
|
@@ -317,6 +341,10 @@ module Algolia
|
|
|
317
341
|
if @api_client.config.client_side_validation && algolia_object_id.nil?
|
|
318
342
|
raise ArgumentError, "Parameter `algolia_object_id` is required when calling `delete_recommend_rule`."
|
|
319
343
|
end
|
|
344
|
+
# verify the required parameter 'algolia_object_id' is not empty
|
|
345
|
+
if @api_client.config.client_side_validation && algolia_object_id.empty?
|
|
346
|
+
raise ArgumentError, "Parameter `algolia_object_id` is required when calling `delete_recommend_rule`."
|
|
347
|
+
end
|
|
320
348
|
|
|
321
349
|
path = "/1/indexes/{indexName}/{model}/recommend/rules/{objectID}"
|
|
322
350
|
.sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
|
|
@@ -368,6 +396,10 @@ module Algolia
|
|
|
368
396
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
369
397
|
raise ArgumentError, "Parameter `index_name` is required when calling `get_recommend_rule`."
|
|
370
398
|
end
|
|
399
|
+
# verify the required parameter 'index_name' is not empty
|
|
400
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
401
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `get_recommend_rule`."
|
|
402
|
+
end
|
|
371
403
|
# verify the required parameter 'model' is set
|
|
372
404
|
if @api_client.config.client_side_validation && model.nil?
|
|
373
405
|
raise ArgumentError, "Parameter `model` is required when calling `get_recommend_rule`."
|
|
@@ -376,6 +408,10 @@ module Algolia
|
|
|
376
408
|
if @api_client.config.client_side_validation && algolia_object_id.nil?
|
|
377
409
|
raise ArgumentError, "Parameter `algolia_object_id` is required when calling `get_recommend_rule`."
|
|
378
410
|
end
|
|
411
|
+
# verify the required parameter 'algolia_object_id' is not empty
|
|
412
|
+
if @api_client.config.client_side_validation && algolia_object_id.empty?
|
|
413
|
+
raise ArgumentError, "Parameter `algolia_object_id` is required when calling `get_recommend_rule`."
|
|
414
|
+
end
|
|
379
415
|
|
|
380
416
|
path = "/1/indexes/{indexName}/{model}/recommend/rules/{objectID}"
|
|
381
417
|
.sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
|
|
@@ -427,6 +463,10 @@ module Algolia
|
|
|
427
463
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
428
464
|
raise ArgumentError, "Parameter `index_name` is required when calling `get_recommend_status`."
|
|
429
465
|
end
|
|
466
|
+
# verify the required parameter 'index_name' is not empty
|
|
467
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
468
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `get_recommend_status`."
|
|
469
|
+
end
|
|
430
470
|
# verify the required parameter 'model' is set
|
|
431
471
|
if @api_client.config.client_side_validation && model.nil?
|
|
432
472
|
raise ArgumentError, "Parameter `model` is required when calling `get_recommend_status`."
|
|
@@ -541,6 +581,10 @@ module Algolia
|
|
|
541
581
|
if @api_client.config.client_side_validation && index_name.nil?
|
|
542
582
|
raise ArgumentError, "Parameter `index_name` is required when calling `search_recommend_rules`."
|
|
543
583
|
end
|
|
584
|
+
# verify the required parameter 'index_name' is not empty
|
|
585
|
+
if @api_client.config.client_side_validation && index_name.empty?
|
|
586
|
+
raise ArgumentError, "Parameter `index_name` is required when calling `search_recommend_rules`."
|
|
587
|
+
end
|
|
544
588
|
# verify the required parameter 'model' is set
|
|
545
589
|
if @api_client.config.client_side_validation && model.nil?
|
|
546
590
|
raise ArgumentError, "Parameter `model` is required when calling `search_recommend_rules`."
|