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
Copy file name to clipboardExpand all lines: clients/algoliasearch-client-php/lib/Api/AnalyticsClient.php
-80Lines changed: 0 additions & 80 deletions
Original file line number
Diff line number
Diff line change
@@ -759,16 +759,6 @@ public function getSearchesNoClicks($index, $startDate = null, $endDate = null,
759
759
'Parameter `index` is required when calling `getSearchesNoClicks`.'
760
760
);
761
761
}
762
-
if (null !== $limit && $limit > 1000) {
763
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getSearchesNoClicks, must be smaller than or equal to 1000.');
764
-
}
765
-
766
-
if (null !== $offset && $offset > 1000) {
767
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoClicks, must be smaller than or equal to 1000.');
768
-
}
769
-
if (null !== $offset && $offset < 0) {
770
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoClicks, must be bigger than or equal to 0.');
771
-
}
772
762
773
763
$resourcePath = '/2/searches/noClicks';
774
764
$queryParameters = [];
@@ -826,16 +816,6 @@ public function getSearchesNoResults($index, $startDate = null, $endDate = null,
826
816
'Parameter `index` is required when calling `getSearchesNoResults`.'
827
817
);
828
818
}
829
-
if (null !== $limit && $limit > 1000) {
830
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getSearchesNoResults, must be smaller than or equal to 1000.');
831
-
}
832
-
833
-
if (null !== $offset && $offset > 1000) {
834
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoResults, must be smaller than or equal to 1000.');
835
-
}
836
-
if (null !== $offset && $offset < 0) {
837
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoResults, must be bigger than or equal to 0.');
838
-
}
839
819
840
820
$resourcePath = '/2/searches/noResults';
841
821
$queryParameters = [];
@@ -925,16 +905,6 @@ public function getTopCountries($index, $startDate = null, $endDate = null, $lim
925
905
'Parameter `index` is required when calling `getTopCountries`.'
926
906
);
927
907
}
928
-
if (null !== $limit && $limit > 1000) {
929
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopCountries, must be smaller than or equal to 1000.');
930
-
}
931
-
932
-
if (null !== $offset && $offset > 1000) {
933
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopCountries, must be smaller than or equal to 1000.');
934
-
}
935
-
if (null !== $offset && $offset < 0) {
936
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopCountries, must be bigger than or equal to 0.');
937
-
}
938
908
939
909
$resourcePath = '/2/countries';
940
910
$queryParameters = [];
@@ -993,16 +963,6 @@ public function getTopFilterAttributes($index, $search = null, $startDate = null
993
963
'Parameter `index` is required when calling `getTopFilterAttributes`.'
994
964
);
995
965
}
996
-
if (null !== $limit && $limit > 1000) {
997
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFilterAttributes, must be smaller than or equal to 1000.');
998
-
}
999
-
1000
-
if (null !== $offset && $offset > 1000) {
1001
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterAttributes, must be smaller than or equal to 1000.');
1002
-
}
1003
-
if (null !== $offset && $offset < 0) {
1004
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterAttributes, must be bigger than or equal to 0.');
1005
-
}
1006
966
1007
967
$resourcePath = '/2/filters';
1008
968
$queryParameters = [];
@@ -1072,16 +1032,6 @@ public function getTopFilterForAttribute($attribute, $index, $search = null, $st
1072
1032
'Parameter `index` is required when calling `getTopFilterForAttribute`.'
1073
1033
);
1074
1034
}
1075
-
if (null !== $limit && $limit > 1000) {
1076
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFilterForAttribute, must be smaller than or equal to 1000.');
1077
-
}
1078
-
1079
-
if (null !== $offset && $offset > 1000) {
1080
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterForAttribute, must be smaller than or equal to 1000.');
1081
-
}
1082
-
if (null !== $offset && $offset < 0) {
1083
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterForAttribute, must be bigger than or equal to 0.');
1084
-
}
1085
1035
1086
1036
$resourcePath = '/2/filters/{attribute}';
1087
1037
$queryParameters = [];
@@ -1153,16 +1103,6 @@ public function getTopFiltersNoResults($index, $search = null, $startDate = null
1153
1103
'Parameter `index` is required when calling `getTopFiltersNoResults`.'
1154
1104
);
1155
1105
}
1156
-
if (null !== $limit && $limit > 1000) {
1157
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFiltersNoResults, must be smaller than or equal to 1000.');
1158
-
}
1159
-
1160
-
if (null !== $offset && $offset > 1000) {
1161
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFiltersNoResults, must be smaller than or equal to 1000.');
1162
-
}
1163
-
if (null !== $offset && $offset < 0) {
1164
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFiltersNoResults, must be bigger than or equal to 0.');
1165
-
}
1166
1106
1167
1107
$resourcePath = '/2/filters/noResults';
1168
1108
$queryParameters = [];
@@ -1227,16 +1167,6 @@ public function getTopHits($index, $search = null, $clickAnalytics = null, $reve
1227
1167
'Parameter `index` is required when calling `getTopHits`.'
1228
1168
);
1229
1169
}
1230
-
if (null !== $limit && $limit > 1000) {
1231
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopHits, must be smaller than or equal to 1000.');
1232
-
}
1233
-
1234
-
if (null !== $offset && $offset > 1000) {
1235
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopHits, must be smaller than or equal to 1000.');
1236
-
}
1237
-
if (null !== $offset && $offset < 0) {
1238
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopHits, must be bigger than or equal to 0.');
1239
-
}
1240
1170
1241
1171
$resourcePath = '/2/hits';
1242
1172
$queryParameters = [];
@@ -1310,16 +1240,6 @@ public function getTopSearches($index, $clickAnalytics = null, $revenueAnalytics
1310
1240
'Parameter `index` is required when calling `getTopSearches`.'
1311
1241
);
1312
1242
}
1313
-
if (null !== $limit && $limit > 1000) {
1314
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopSearches, must be smaller than or equal to 1000.');
1315
-
}
1316
-
1317
-
if (null !== $offset && $offset > 1000) {
1318
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopSearches, must be smaller than or equal to 1000.');
1319
-
}
1320
-
if (null !== $offset && $offset < 0) {
1321
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopSearches, must be bigger than or equal to 0.');
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1229
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listAuthentications, must be smaller than or equal to 100.');
1230
-
}
1231
-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1232
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listAuthentications, must be bigger than or equal to 1.');
1233
-
}
1234
-
1235
-
if (null !== $page && $page < 1) {
1236
-
thrownew \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listAuthentications, must be bigger than or equal to 1.');
1237
-
}
1238
-
1239
1228
$resourcePath = '/1/authentications';
1240
1229
$queryParameters = [];
1241
1230
$headers = [];
@@ -1295,17 +1284,6 @@ public function listAuthentications($itemsPerPage = null, $page = null, $type =
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1299
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listDestinations, must be smaller than or equal to 100.');
1300
-
}
1301
-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1302
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listDestinations, must be bigger than or equal to 1.');
1303
-
}
1304
-
1305
-
if (null !== $page && $page < 1) {
1306
-
thrownew \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listDestinations, must be bigger than or equal to 1.');
1307
-
}
1308
-
1309
1287
$resourcePath = '/1/destinations';
1310
1288
$queryParameters = [];
1311
1289
$headers = [];
@@ -1380,16 +1358,6 @@ public function listEvents($runID, $itemsPerPage = null, $page = null, $status =
1380
1358
'Parameter `runID` is required when calling `listEvents`.'
1381
1359
);
1382
1360
}
1383
-
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1384
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listEvents, must be smaller than or equal to 100.');
1385
-
}
1386
-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1387
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listEvents, must be bigger than or equal to 1.');
1388
-
}
1389
-
1390
-
if (null !== $page && $page < 1) {
1391
-
thrownew \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listEvents, must be bigger than or equal to 1.');
1392
-
}
1393
1361
1394
1362
$resourcePath = '/1/runs/{runID}/events';
1395
1363
$queryParameters = [];
@@ -1463,17 +1431,6 @@ public function listEvents($runID, $itemsPerPage = null, $page = null, $status =
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1542
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listSources, must be smaller than or equal to 100.');
1543
-
}
1544
-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1545
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listSources, must be bigger than or equal to 1.');
1546
-
}
1547
-
1548
-
if (null !== $page && $page < 1) {
1549
-
thrownew \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listSources, must be bigger than or equal to 1.');
1550
-
}
1551
-
1552
1498
$resourcePath = '/1/sources';
1553
1499
$queryParameters = [];
1554
1500
$headers = [];
@@ -1610,17 +1556,6 @@ public function listSources($itemsPerPage = null, $page = null, $type = null, $a
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1704
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTasksV1, must be smaller than or equal to 100.');
1705
-
}
1706
-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1707
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTasksV1, must be bigger than or equal to 1.');
1708
-
}
1709
-
1710
-
if (null !== $page && $page < 1) {
1711
-
thrownew \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listTasksV1, must be bigger than or equal to 1.');
1712
-
}
1713
-
1714
1638
$resourcePath = '/1/tasks';
1715
1639
$queryParameters = [];
1716
1640
$headers = [];
@@ -1785,17 +1709,6 @@ public function listTasksV1($itemsPerPage = null, $page = null, $action = null,
if (null !== $itemsPerPage && $itemsPerPage > 100) {
1789
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTransformations, must be smaller than or equal to 100.');
1790
-
}
1791
-
if (null !== $itemsPerPage && $itemsPerPage < 1) {
1792
-
thrownew \InvalidArgumentException('invalid value for "$itemsPerPage" when calling IngestionClient.listTransformations, must be bigger than or equal to 1.');
1793
-
}
1794
-
1795
-
if (null !== $page && $page < 1) {
1796
-
thrownew \InvalidArgumentException('invalid value for "$page" when calling IngestionClient.listTransformations, must be bigger than or equal to 1.');
Copy file name to clipboardExpand all lines: clients/algoliasearch-client-php/lib/Api/InsightsClient.php
-9Lines changed: 0 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -280,15 +280,6 @@ public function deleteUserToken($userToken, $requestOptions = [])
280
280
'Parameter `userToken` is required when calling `deleteUserToken`.'
281
281
);
282
282
}
283
-
if (strlen($userToken) > 129) {
284
-
thrownew \InvalidArgumentException('invalid length for "$userToken" when calling InsightsClient.deleteUserToken, must be smaller than or equal to 129.');
285
-
}
286
-
if (strlen($userToken) < 1) {
287
-
thrownew \InvalidArgumentException('invalid length for "$userToken" when calling InsightsClient.deleteUserToken, must be bigger than or equal to 1.');
288
-
}
289
-
if (!preg_match('/[a-zA-Z0-9_=\\/+-]{1,129}/', $userToken)) {
290
-
thrownew \InvalidArgumentException('invalid value for "userToken" when calling InsightsClient.deleteUserToken, must conform to the pattern /[a-zA-Z0-9_=\\/+-]{1,129}/.');
0 commit comments