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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04aeeacff2c4802f3be4f34616b67c94dda8985d3c3d8826b5f14e3dfd2331dd
4
- data.tar.gz: bc1e57a05b971a50815a216fc8766e7c5d8d2b7361991d0c0644375e1cb88814
3
+ metadata.gz: 7efa0c7cc16401848c061d498f8490b972e2bb87c751fae945acc26104b4363a
4
+ data.tar.gz: 4a98837bfd4bc4ba14098628e9f1642def743ec961abc118d82f88dcf48c87cf
5
5
  SHA512:
6
- metadata.gz: a87390e2e06bd7d0bf3fab4ba0d01d0c9192cd425b16f94fdcebca0af41022fcf85c16cc8a30a987065a262c5d52a2645ccaf943c973e39a1e77eb3612df5470
7
- data.tar.gz: 510cb212c879552f742247000e36b9fe91e5ff069fb9d69858b92608152f2fd47700dab3e0fee2e8bdcde0cb1824f6b2858c110c6d6333ecb90bf6a157cbdc30
6
+ metadata.gz: b573eba34f313adafb0b087cc666b75c62d91434b848e77bb9c971232e5d37e1615a84dbac5337a813b487b6fca57f6f566a2c914df39fdf8d89a955ee31d65c
7
+ data.tar.gz: d7eac776ce519b89e7b352a6ee6618e95f91efc25859e070fd4361e7fa61456849e1ac6e57eac2fa662318a3f58eda79990bf50c2aafaeed7d5eebbf670a0621
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
14
  - name: Create ticket
15
- uses: actions/github-script@v8
15
+ uses: actions/github-script@v9
16
16
  with:
17
17
  script: |
18
18
  const action = context.payload.action;
@@ -21,7 +21,7 @@ jobs:
21
21
  - name: Install Ruby
22
22
  uses: ruby/setup-ruby@v1
23
23
  with:
24
- ruby-version: 4.0.2
24
+ ruby-version: 4.0.3
25
25
  bundler-cache: true
26
26
 
27
27
  - uses: rubygems/release-gem@e9a6361a0b14562539327c2a02373edc56dd3169
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [3.39.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.39.0...3.39.1)
2
+
3
+ - [363cc2d91b](https://github.com/algolia/api-clients-automation/commit/363cc2d91b) fix(specs): Ingestion API - update destination payload ([#6320](https://github.com/algolia/api-clients-automation/pull/6320)) by [@sbellone](https://github.com/sbellone/)
4
+ - [4d2ae79e73](https://github.com/algolia/api-clients-automation/commit/4d2ae79e73) chore(deps): dependencies 2026-04-20 ([#6259](https://github.com/algolia/api-clients-automation/pull/6259)) by [@algolia-bot](https://github.com/algolia-bot/)
5
+ - [cd419fd6e8](https://github.com/algolia/api-clients-automation/commit/cd419fd6e8) fix(clients): validate empty string for required string parameters ([#6338](https://github.com/algolia/api-clients-automation/pull/6338)) by [@Fluf22](https://github.com/Fluf22/)
6
+ - [7178fa2e3b](https://github.com/algolia/api-clients-automation/commit/7178fa2e3b) chore(deps): dependencies 2026-05-04 ([#6322](https://github.com/algolia/api-clients-automation/pull/6322)) by [@algolia-bot](https://github.com/algolia-bot/)
7
+
8
+ ## [3.39.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.38.0...3.39.0)
9
+
10
+ - [d275af4e18](https://github.com/algolia/api-clients-automation/commit/d275af4e18) feat(specs): add Algolia Index as a native connector in ingestion client ([#6290](https://github.com/algolia/api-clients-automation/pull/6290)) by [@morganleroi](https://github.com/morganleroi/)
11
+ - [74e91c1cd3](https://github.com/algolia/api-clients-automation/commit/74e91c1cd3) fix(specs): compostion run payload example for external injected items ([#6291](https://github.com/algolia/api-clients-automation/pull/6291)) by [@gavinwade12](https://github.com/gavinwade12/)
12
+ - [a98b7f7cd8](https://github.com/algolia/api-clients-automation/commit/a98b7f7cd8) feat(specs): add feedsOrder to composition run params ([#6314](https://github.com/algolia/api-clients-automation/pull/6314)) by [@gavinwade12](https://github.com/gavinwade12/)
13
+
1
14
  ## [3.38.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.37.1...3.38.0)
2
15
 
3
16
  BREAKING CHANGES: this minor version includes breaking changes in the Composition API. See below for more details.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algolia (3.38.0)
4
+ algolia (3.39.1)
5
5
  base64 (>= 0.2.0, < 1)
6
6
  faraday (>= 1.0.1, < 3.0)
7
7
  faraday-net_http_persistent (>= 0.15, < 3)
@@ -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 = {}
@@ -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 = {}
@@ -80,6 +80,10 @@ module Algolia
80
80
  if @api_client.config.client_side_validation && path.nil?
81
81
  raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
82
82
  end
83
+ # verify the required parameter 'path' is not empty
84
+ if @api_client.config.client_side_validation && path.empty?
85
+ raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
86
+ end
83
87
 
84
88
  path = "/{path}".sub("{" + "path" + "}", path.to_s)
85
89
  query_params = {}
@@ -123,6 +127,10 @@ module Algolia
123
127
  if @api_client.config.client_side_validation && path.nil?
124
128
  raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
125
129
  end
130
+ # verify the required parameter 'path' is not empty
131
+ if @api_client.config.client_side_validation && path.empty?
132
+ raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
133
+ end
126
134
 
127
135
  path = "/{path}".sub("{" + "path" + "}", path.to_s)
128
136
  query_params = {}
@@ -167,6 +175,10 @@ module Algolia
167
175
  if @api_client.config.client_side_validation && path.nil?
168
176
  raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
169
177
  end
178
+ # verify the required parameter 'path' is not empty
179
+ if @api_client.config.client_side_validation && path.empty?
180
+ raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
181
+ end
170
182
 
171
183
  path = "/{path}".sub("{" + "path" + "}", path.to_s)
172
184
  query_params = {}
@@ -212,6 +224,10 @@ module Algolia
212
224
  if @api_client.config.client_side_validation && path.nil?
213
225
  raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
214
226
  end
227
+ # verify the required parameter 'path' is not empty
228
+ if @api_client.config.client_side_validation && path.empty?
229
+ raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
230
+ end
215
231
 
216
232
  path = "/{path}".sub("{" + "path" + "}", path.to_s)
217
233
  query_params = {}
@@ -260,6 +276,10 @@ module Algolia
260
276
  if @api_client.config.client_side_validation && index.nil?
261
277
  raise ArgumentError, "Parameter `index` is required when calling `get_add_to_cart_rate`."
262
278
  end
279
+ # verify the required parameter 'index' is not empty
280
+ if @api_client.config.client_side_validation && index.empty?
281
+ raise ArgumentError, "Parameter `index` is required when calling `get_add_to_cart_rate`."
282
+ end
263
283
 
264
284
  path = "/2/conversions/addToCartRate"
265
285
  query_params = {}
@@ -323,6 +343,10 @@ module Algolia
323
343
  if @api_client.config.client_side_validation && index.nil?
324
344
  raise ArgumentError, "Parameter `index` is required when calling `get_average_click_position`."
325
345
  end
346
+ # verify the required parameter 'index' is not empty
347
+ if @api_client.config.client_side_validation && index.empty?
348
+ raise ArgumentError, "Parameter `index` is required when calling `get_average_click_position`."
349
+ end
326
350
 
327
351
  path = "/2/clicks/averageClickPosition"
328
352
  query_params = {}
@@ -380,6 +404,10 @@ module Algolia
380
404
  if @api_client.config.client_side_validation && index.nil?
381
405
  raise ArgumentError, "Parameter `index` is required when calling `get_click_positions`."
382
406
  end
407
+ # verify the required parameter 'index' is not empty
408
+ if @api_client.config.client_side_validation && index.empty?
409
+ raise ArgumentError, "Parameter `index` is required when calling `get_click_positions`."
410
+ end
383
411
 
384
412
  path = "/2/clicks/positions"
385
413
  query_params = {}
@@ -437,6 +465,10 @@ module Algolia
437
465
  if @api_client.config.client_side_validation && index.nil?
438
466
  raise ArgumentError, "Parameter `index` is required when calling `get_click_through_rate`."
439
467
  end
468
+ # verify the required parameter 'index' is not empty
469
+ if @api_client.config.client_side_validation && index.empty?
470
+ raise ArgumentError, "Parameter `index` is required when calling `get_click_through_rate`."
471
+ end
440
472
 
441
473
  path = "/2/clicks/clickThroughRate"
442
474
  query_params = {}
@@ -494,6 +526,10 @@ module Algolia
494
526
  if @api_client.config.client_side_validation && index.nil?
495
527
  raise ArgumentError, "Parameter `index` is required when calling `get_conversion_rate`."
496
528
  end
529
+ # verify the required parameter 'index' is not empty
530
+ if @api_client.config.client_side_validation && index.empty?
531
+ raise ArgumentError, "Parameter `index` is required when calling `get_conversion_rate`."
532
+ end
497
533
 
498
534
  path = "/2/conversions/conversionRate"
499
535
  query_params = {}
@@ -551,6 +587,10 @@ module Algolia
551
587
  if @api_client.config.client_side_validation && index.nil?
552
588
  raise ArgumentError, "Parameter `index` is required when calling `get_no_click_rate`."
553
589
  end
590
+ # verify the required parameter 'index' is not empty
591
+ if @api_client.config.client_side_validation && index.empty?
592
+ raise ArgumentError, "Parameter `index` is required when calling `get_no_click_rate`."
593
+ end
554
594
 
555
595
  path = "/2/searches/noClickRate"
556
596
  query_params = {}
@@ -605,6 +645,10 @@ module Algolia
605
645
  if @api_client.config.client_side_validation && index.nil?
606
646
  raise ArgumentError, "Parameter `index` is required when calling `get_no_results_rate`."
607
647
  end
648
+ # verify the required parameter 'index' is not empty
649
+ if @api_client.config.client_side_validation && index.empty?
650
+ raise ArgumentError, "Parameter `index` is required when calling `get_no_results_rate`."
651
+ end
608
652
 
609
653
  path = "/2/searches/noResultRate"
610
654
  query_params = {}
@@ -662,6 +706,10 @@ module Algolia
662
706
  if @api_client.config.client_side_validation && index.nil?
663
707
  raise ArgumentError, "Parameter `index` is required when calling `get_purchase_rate`."
664
708
  end
709
+ # verify the required parameter 'index' is not empty
710
+ if @api_client.config.client_side_validation && index.empty?
711
+ raise ArgumentError, "Parameter `index` is required when calling `get_purchase_rate`."
712
+ end
665
713
 
666
714
  path = "/2/conversions/purchaseRate"
667
715
  query_params = {}
@@ -719,6 +767,10 @@ module Algolia
719
767
  if @api_client.config.client_side_validation && index.nil?
720
768
  raise ArgumentError, "Parameter `index` is required when calling `get_revenue`."
721
769
  end
770
+ # verify the required parameter 'index' is not empty
771
+ if @api_client.config.client_side_validation && index.empty?
772
+ raise ArgumentError, "Parameter `index` is required when calling `get_revenue`."
773
+ end
722
774
 
723
775
  path = "/2/conversions/revenue"
724
776
  query_params = {}
@@ -773,6 +825,10 @@ module Algolia
773
825
  if @api_client.config.client_side_validation && index.nil?
774
826
  raise ArgumentError, "Parameter `index` is required when calling `get_searches_count`."
775
827
  end
828
+ # verify the required parameter 'index' is not empty
829
+ if @api_client.config.client_side_validation && index.empty?
830
+ raise ArgumentError, "Parameter `index` is required when calling `get_searches_count`."
831
+ end
776
832
 
777
833
  path = "/2/searches/count"
778
834
  query_params = {}
@@ -840,6 +896,10 @@ module Algolia
840
896
  if @api_client.config.client_side_validation && index.nil?
841
897
  raise ArgumentError, "Parameter `index` is required when calling `get_searches_no_clicks`."
842
898
  end
899
+ # verify the required parameter 'index' is not empty
900
+ if @api_client.config.client_side_validation && index.empty?
901
+ raise ArgumentError, "Parameter `index` is required when calling `get_searches_no_clicks`."
902
+ end
843
903
 
844
904
  path = "/2/searches/noClicks"
845
905
  query_params = {}
@@ -927,6 +987,10 @@ module Algolia
927
987
  if @api_client.config.client_side_validation && index.nil?
928
988
  raise ArgumentError, "Parameter `index` is required when calling `get_searches_no_results`."
929
989
  end
990
+ # verify the required parameter 'index' is not empty
991
+ if @api_client.config.client_side_validation && index.empty?
992
+ raise ArgumentError, "Parameter `index` is required when calling `get_searches_no_results`."
993
+ end
930
994
 
931
995
  path = "/2/searches/noResults"
932
996
  query_params = {}
@@ -1001,6 +1065,10 @@ module Algolia
1001
1065
  if @api_client.config.client_side_validation && index.nil?
1002
1066
  raise ArgumentError, "Parameter `index` is required when calling `get_status`."
1003
1067
  end
1068
+ # verify the required parameter 'index' is not empty
1069
+ if @api_client.config.client_side_validation && index.empty?
1070
+ raise ArgumentError, "Parameter `index` is required when calling `get_status`."
1071
+ end
1004
1072
 
1005
1073
  path = "/2/status"
1006
1074
  query_params = {}
@@ -1059,6 +1127,10 @@ module Algolia
1059
1127
  if @api_client.config.client_side_validation && index.nil?
1060
1128
  raise ArgumentError, "Parameter `index` is required when calling `get_top_countries`."
1061
1129
  end
1130
+ # verify the required parameter 'index' is not empty
1131
+ if @api_client.config.client_side_validation && index.empty?
1132
+ raise ArgumentError, "Parameter `index` is required when calling `get_top_countries`."
1133
+ end
1062
1134
 
1063
1135
  path = "/2/countries"
1064
1136
  query_params = {}
@@ -1140,6 +1212,10 @@ module Algolia
1140
1212
  if @api_client.config.client_side_validation && index.nil?
1141
1213
  raise ArgumentError, "Parameter `index` is required when calling `get_top_filter_attributes`."
1142
1214
  end
1215
+ # verify the required parameter 'index' is not empty
1216
+ if @api_client.config.client_side_validation && index.empty?
1217
+ raise ArgumentError, "Parameter `index` is required when calling `get_top_filter_attributes`."
1218
+ end
1143
1219
 
1144
1220
  path = "/2/filters"
1145
1221
  query_params = {}
@@ -1235,10 +1311,18 @@ module Algolia
1235
1311
  if @api_client.config.client_side_validation && attribute.nil?
1236
1312
  raise ArgumentError, "Parameter `attribute` is required when calling `get_top_filter_for_attribute`."
1237
1313
  end
1314
+ # verify the required parameter 'attribute' is not empty
1315
+ if @api_client.config.client_side_validation && attribute.empty?
1316
+ raise ArgumentError, "Parameter `attribute` is required when calling `get_top_filter_for_attribute`."
1317
+ end
1238
1318
  # verify the required parameter 'index' is set
1239
1319
  if @api_client.config.client_side_validation && index.nil?
1240
1320
  raise ArgumentError, "Parameter `index` is required when calling `get_top_filter_for_attribute`."
1241
1321
  end
1322
+ # verify the required parameter 'index' is not empty
1323
+ if @api_client.config.client_side_validation && index.empty?
1324
+ raise ArgumentError, "Parameter `index` is required when calling `get_top_filter_for_attribute`."
1325
+ end
1242
1326
 
1243
1327
  path = "/2/filters/{attribute}".sub("{" + "attribute" + "}", Transport.encode_uri(attribute.to_s))
1244
1328
  query_params = {}
@@ -1335,6 +1419,10 @@ module Algolia
1335
1419
  if @api_client.config.client_side_validation && index.nil?
1336
1420
  raise ArgumentError, "Parameter `index` is required when calling `get_top_filters_no_results`."
1337
1421
  end
1422
+ # verify the required parameter 'index' is not empty
1423
+ if @api_client.config.client_side_validation && index.empty?
1424
+ raise ArgumentError, "Parameter `index` is required when calling `get_top_filters_no_results`."
1425
+ end
1338
1426
 
1339
1427
  path = "/2/filters/noResults"
1340
1428
  query_params = {}
@@ -1432,6 +1520,10 @@ module Algolia
1432
1520
  if @api_client.config.client_side_validation && index.nil?
1433
1521
  raise ArgumentError, "Parameter `index` is required when calling `get_top_hits`."
1434
1522
  end
1523
+ # verify the required parameter 'index' is not empty
1524
+ if @api_client.config.client_side_validation && index.empty?
1525
+ raise ArgumentError, "Parameter `index` is required when calling `get_top_hits`."
1526
+ end
1435
1527
 
1436
1528
  path = "/2/hits"
1437
1529
  query_params = {}
@@ -1536,6 +1628,10 @@ module Algolia
1536
1628
  if @api_client.config.client_side_validation && index.nil?
1537
1629
  raise ArgumentError, "Parameter `index` is required when calling `get_top_searches`."
1538
1630
  end
1631
+ # verify the required parameter 'index' is not empty
1632
+ if @api_client.config.client_side_validation && index.empty?
1633
+ raise ArgumentError, "Parameter `index` is required when calling `get_top_searches`."
1634
+ end
1539
1635
 
1540
1636
  path = "/2/searches"
1541
1637
  query_params = {}
@@ -1626,6 +1722,10 @@ module Algolia
1626
1722
  if @api_client.config.client_side_validation && index.nil?
1627
1723
  raise ArgumentError, "Parameter `index` is required when calling `get_users_count`."
1628
1724
  end
1725
+ # verify the required parameter 'index' is not empty
1726
+ if @api_client.config.client_side_validation && index.empty?
1727
+ raise ArgumentError, "Parameter `index` is required when calling `get_users_count`."
1728
+ end
1629
1729
 
1630
1730
  path = "/2/users/count"
1631
1731
  query_params = {}
@@ -73,6 +73,10 @@ module Algolia
73
73
  if @api_client.config.client_side_validation && path.nil?
74
74
  raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
75
75
  end
76
+ # verify the required parameter 'path' is not empty
77
+ if @api_client.config.client_side_validation && path.empty?
78
+ raise ArgumentError, "Parameter `path` is required when calling `custom_delete`."
79
+ end
76
80
 
77
81
  path = "/{path}".sub("{" + "path" + "}", path.to_s)
78
82
  query_params = {}
@@ -116,6 +120,10 @@ module Algolia
116
120
  if @api_client.config.client_side_validation && path.nil?
117
121
  raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
118
122
  end
123
+ # verify the required parameter 'path' is not empty
124
+ if @api_client.config.client_side_validation && path.empty?
125
+ raise ArgumentError, "Parameter `path` is required when calling `custom_get`."
126
+ end
119
127
 
120
128
  path = "/{path}".sub("{" + "path" + "}", path.to_s)
121
129
  query_params = {}
@@ -160,6 +168,10 @@ module Algolia
160
168
  if @api_client.config.client_side_validation && path.nil?
161
169
  raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
162
170
  end
171
+ # verify the required parameter 'path' is not empty
172
+ if @api_client.config.client_side_validation && path.empty?
173
+ raise ArgumentError, "Parameter `path` is required when calling `custom_post`."
174
+ end
163
175
 
164
176
  path = "/{path}".sub("{" + "path" + "}", path.to_s)
165
177
  query_params = {}
@@ -205,6 +217,10 @@ module Algolia
205
217
  if @api_client.config.client_side_validation && path.nil?
206
218
  raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
207
219
  end
220
+ # verify the required parameter 'path' is not empty
221
+ if @api_client.config.client_side_validation && path.empty?
222
+ raise ArgumentError, "Parameter `path` is required when calling `custom_put`."
223
+ end
208
224
 
209
225
  path = "/{path}".sub("{" + "path" + "}", path.to_s)
210
226
  query_params = {}
@@ -250,6 +266,10 @@ module Algolia
250
266
  if @api_client.config.client_side_validation && composition_id.nil?
251
267
  raise ArgumentError, "Parameter `composition_id` is required when calling `delete_composition`."
252
268
  end
269
+ # verify the required parameter 'composition_id' is not empty
270
+ if @api_client.config.client_side_validation && composition_id.empty?
271
+ raise ArgumentError, "Parameter `composition_id` is required when calling `delete_composition`."
272
+ end
253
273
 
254
274
  path = "/1/compositions/{compositionID}".sub(
255
275
  "{" + "compositionID" + "}",
@@ -298,10 +318,18 @@ module Algolia
298
318
  if @api_client.config.client_side_validation && composition_id.nil?
299
319
  raise ArgumentError, "Parameter `composition_id` is required when calling `delete_composition_rule`."
300
320
  end
321
+ # verify the required parameter 'composition_id' is not empty
322
+ if @api_client.config.client_side_validation && composition_id.empty?
323
+ raise ArgumentError, "Parameter `composition_id` is required when calling `delete_composition_rule`."
324
+ end
301
325
  # verify the required parameter 'algolia_object_id' is set
302
326
  if @api_client.config.client_side_validation && algolia_object_id.nil?
303
327
  raise ArgumentError, "Parameter `algolia_object_id` is required when calling `delete_composition_rule`."
304
328
  end
329
+ # verify the required parameter 'algolia_object_id' is not empty
330
+ if @api_client.config.client_side_validation && algolia_object_id.empty?
331
+ raise ArgumentError, "Parameter `algolia_object_id` is required when calling `delete_composition_rule`."
332
+ end
305
333
 
306
334
  path = "/1/compositions/{compositionID}/rules/{objectID}"
307
335
  .sub("{" + "compositionID" + "}", Transport.encode_uri(composition_id.to_s))
@@ -350,6 +378,10 @@ module Algolia
350
378
  if @api_client.config.client_side_validation && composition_id.nil?
351
379
  raise ArgumentError, "Parameter `composition_id` is required when calling `get_composition`."
352
380
  end
381
+ # verify the required parameter 'composition_id' is not empty
382
+ if @api_client.config.client_side_validation && composition_id.empty?
383
+ raise ArgumentError, "Parameter `composition_id` is required when calling `get_composition`."
384
+ end
353
385
 
354
386
  path = "/1/compositions/{compositionID}".sub(
355
387
  "{" + "compositionID" + "}",
@@ -400,10 +432,18 @@ module Algolia
400
432
  if @api_client.config.client_side_validation && composition_id.nil?
401
433
  raise ArgumentError, "Parameter `composition_id` is required when calling `get_rule`."
402
434
  end
435
+ # verify the required parameter 'composition_id' is not empty
436
+ if @api_client.config.client_side_validation && composition_id.empty?
437
+ raise ArgumentError, "Parameter `composition_id` is required when calling `get_rule`."
438
+ end
403
439
  # verify the required parameter 'algolia_object_id' is set
404
440
  if @api_client.config.client_side_validation && algolia_object_id.nil?
405
441
  raise ArgumentError, "Parameter `algolia_object_id` is required when calling `get_rule`."
406
442
  end
443
+ # verify the required parameter 'algolia_object_id' is not empty
444
+ if @api_client.config.client_side_validation && algolia_object_id.empty?
445
+ raise ArgumentError, "Parameter `algolia_object_id` is required when calling `get_rule`."
446
+ end
407
447
 
408
448
  path = "/1/compositions/{compositionID}/rules/{objectID}"
409
449
  .sub("{" + "compositionID" + "}", Transport.encode_uri(composition_id.to_s))
@@ -457,6 +497,10 @@ module Algolia
457
497
  if @api_client.config.client_side_validation && composition_id.nil?
458
498
  raise ArgumentError, "Parameter `composition_id` is required when calling `get_task`."
459
499
  end
500
+ # verify the required parameter 'composition_id' is not empty
501
+ if @api_client.config.client_side_validation && composition_id.empty?
502
+ raise ArgumentError, "Parameter `composition_id` is required when calling `get_task`."
503
+ end
460
504
  # verify the required parameter 'task_id' is set
461
505
  if @api_client.config.client_side_validation && task_id.nil?
462
506
  raise ArgumentError, "Parameter `task_id` is required when calling `get_task`."
@@ -608,6 +652,10 @@ module Algolia
608
652
  if @api_client.config.client_side_validation && composition_id.nil?
609
653
  raise ArgumentError, "Parameter `composition_id` is required when calling `put_composition`."
610
654
  end
655
+ # verify the required parameter 'composition_id' is not empty
656
+ if @api_client.config.client_side_validation && composition_id.empty?
657
+ raise ArgumentError, "Parameter `composition_id` is required when calling `put_composition`."
658
+ end
611
659
  # verify the required parameter 'composition' is set
612
660
  if @api_client.config.client_side_validation && composition.nil?
613
661
  raise ArgumentError, "Parameter `composition` is required when calling `put_composition`."
@@ -662,10 +710,18 @@ module Algolia
662
710
  if @api_client.config.client_side_validation && composition_id.nil?
663
711
  raise ArgumentError, "Parameter `composition_id` is required when calling `put_composition_rule`."
664
712
  end
713
+ # verify the required parameter 'composition_id' is not empty
714
+ if @api_client.config.client_side_validation && composition_id.empty?
715
+ raise ArgumentError, "Parameter `composition_id` is required when calling `put_composition_rule`."
716
+ end
665
717
  # verify the required parameter 'algolia_object_id' is set
666
718
  if @api_client.config.client_side_validation && algolia_object_id.nil?
667
719
  raise ArgumentError, "Parameter `algolia_object_id` is required when calling `put_composition_rule`."
668
720
  end
721
+ # verify the required parameter 'algolia_object_id' is not empty
722
+ if @api_client.config.client_side_validation && algolia_object_id.empty?
723
+ raise ArgumentError, "Parameter `algolia_object_id` is required when calling `put_composition_rule`."
724
+ end
669
725
  # verify the required parameter 'composition_rule' is set
670
726
  if @api_client.config.client_side_validation && composition_rule.nil?
671
727
  raise ArgumentError, "Parameter `composition_rule` is required when calling `put_composition_rule`."
@@ -724,6 +780,10 @@ module Algolia
724
780
  if @api_client.config.client_side_validation && composition_id.nil?
725
781
  raise ArgumentError, "Parameter `composition_id` is required when calling `save_rules`."
726
782
  end
783
+ # verify the required parameter 'composition_id' is not empty
784
+ if @api_client.config.client_side_validation && composition_id.empty?
785
+ raise ArgumentError, "Parameter `composition_id` is required when calling `save_rules`."
786
+ end
727
787
  # verify the required parameter 'rules' is set
728
788
  if @api_client.config.client_side_validation && rules.nil?
729
789
  raise ArgumentError, "Parameter `rules` is required when calling `save_rules`."
@@ -780,6 +840,10 @@ module Algolia
780
840
  if @api_client.config.client_side_validation && composition_id.nil?
781
841
  raise ArgumentError, "Parameter `composition_id` is required when calling `search`."
782
842
  end
843
+ # verify the required parameter 'composition_id' is not empty
844
+ if @api_client.config.client_side_validation && composition_id.empty?
845
+ raise ArgumentError, "Parameter `composition_id` is required when calling `search`."
846
+ end
783
847
  # verify the required parameter 'request_body' is set
784
848
  if @api_client.config.client_side_validation && request_body.nil?
785
849
  raise ArgumentError, "Parameter `request_body` is required when calling `search`."
@@ -837,6 +901,10 @@ module Algolia
837
901
  if @api_client.config.client_side_validation && composition_id.nil?
838
902
  raise ArgumentError, "Parameter `composition_id` is required when calling `search_composition_rules`."
839
903
  end
904
+ # verify the required parameter 'composition_id' is not empty
905
+ if @api_client.config.client_side_validation && composition_id.empty?
906
+ raise ArgumentError, "Parameter `composition_id` is required when calling `search_composition_rules`."
907
+ end
840
908
 
841
909
  path = "/1/compositions/{compositionID}/rules/search".sub(
842
910
  "{" + "compositionID" + "}",
@@ -899,10 +967,18 @@ module Algolia
899
967
  if @api_client.config.client_side_validation && composition_id.nil?
900
968
  raise ArgumentError, "Parameter `composition_id` is required when calling `search_for_facet_values`."
901
969
  end
970
+ # verify the required parameter 'composition_id' is not empty
971
+ if @api_client.config.client_side_validation && composition_id.empty?
972
+ raise ArgumentError, "Parameter `composition_id` is required when calling `search_for_facet_values`."
973
+ end
902
974
  # verify the required parameter 'facet_name' is set
903
975
  if @api_client.config.client_side_validation && facet_name.nil?
904
976
  raise ArgumentError, "Parameter `facet_name` is required when calling `search_for_facet_values`."
905
977
  end
978
+ # verify the required parameter 'facet_name' is not empty
979
+ if @api_client.config.client_side_validation && facet_name.empty?
980
+ raise ArgumentError, "Parameter `facet_name` is required when calling `search_for_facet_values`."
981
+ end
906
982
 
907
983
  path = "/1/compositions/{compositionID}/facets/{facetName}/query"
908
984
  .sub("{" + "compositionID" + "}", Transport.encode_uri(composition_id.to_s))
@@ -963,6 +1039,13 @@ module Algolia
963
1039
  "Parameter `composition_id` is required when calling `update_sorting_strategy_composition`."
964
1040
  )
965
1041
  end
1042
+ # verify the required parameter 'composition_id' is not empty
1043
+ if @api_client.config.client_side_validation && composition_id.empty?
1044
+ raise(
1045
+ ArgumentError,
1046
+ "Parameter `composition_id` is required when calling `update_sorting_strategy_composition`."
1047
+ )
1048
+ end
966
1049
  # verify the required parameter 'request_body' is set
967
1050
  if @api_client.config.client_side_validation && request_body.nil?
968
1051
  raise ArgumentError, "Parameter `request_body` is required when calling `update_sorting_strategy_composition`."