@juhuu/sdk-ts 1.3.40 → 1.3.42
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.
- package/dist/index.d.mts +208 -62
- package/dist/index.d.ts +208 -62
- package/dist/index.js +266 -77
- package/dist/index.mjs +266 -77
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -476,8 +476,8 @@ var AchievementsService = class extends Service {
|
|
|
476
476
|
if (options?.limit !== void 0) {
|
|
477
477
|
queryArray.push("limit=" + options.limit);
|
|
478
478
|
}
|
|
479
|
-
if (options?.
|
|
480
|
-
queryArray.push("
|
|
479
|
+
if (options?.cursor !== void 0) {
|
|
480
|
+
queryArray.push("cursor=" + options.cursor);
|
|
481
481
|
}
|
|
482
482
|
return await super.sendRequest(
|
|
483
483
|
{
|
|
@@ -877,10 +877,10 @@ var SessionService = class extends Service {
|
|
|
877
877
|
if (SessionListOptions?.limit !== void 0) {
|
|
878
878
|
queryArray.push("limit=" + SessionListOptions.limit);
|
|
879
879
|
}
|
|
880
|
-
if (SessionListOptions?.
|
|
881
|
-
queryArray.push("
|
|
880
|
+
if (SessionListOptions?.cursor !== void 0) {
|
|
881
|
+
queryArray.push("cursor=" + SessionListOptions.cursor);
|
|
882
882
|
}
|
|
883
|
-
|
|
883
|
+
const response = await super.sendRequest(
|
|
884
884
|
{
|
|
885
885
|
method: "GET",
|
|
886
886
|
url: "sessions?" + queryArray.join("&"),
|
|
@@ -889,6 +889,15 @@ var SessionService = class extends Service {
|
|
|
889
889
|
},
|
|
890
890
|
SessionListOptions
|
|
891
891
|
);
|
|
892
|
+
if (Array.isArray(response.data)) {
|
|
893
|
+
response.data = {
|
|
894
|
+
sessionArray: response.data,
|
|
895
|
+
count: response.data.length,
|
|
896
|
+
hasMore: false,
|
|
897
|
+
cursor: null
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
return response;
|
|
892
901
|
}
|
|
893
902
|
async search(SessionSearchParams, SessionSearchOptions) {
|
|
894
903
|
const queryArray = [];
|
|
@@ -1078,7 +1087,13 @@ var LinkService = class extends Service {
|
|
|
1078
1087
|
if (LinkListParams.referenceObjectId !== void 0) {
|
|
1079
1088
|
queryArray.push("referenceObjectId=" + LinkListParams.referenceObjectId);
|
|
1080
1089
|
}
|
|
1081
|
-
|
|
1090
|
+
if (LinkListOptions?.limit !== void 0) {
|
|
1091
|
+
queryArray.push("limit=" + LinkListOptions.limit);
|
|
1092
|
+
}
|
|
1093
|
+
if (LinkListOptions?.cursor !== void 0) {
|
|
1094
|
+
queryArray.push("cursor=" + LinkListOptions.cursor);
|
|
1095
|
+
}
|
|
1096
|
+
const response = await super.sendRequest(
|
|
1082
1097
|
{
|
|
1083
1098
|
method: "GET",
|
|
1084
1099
|
url: "links?" + queryArray.join("&"),
|
|
@@ -1087,6 +1102,15 @@ var LinkService = class extends Service {
|
|
|
1087
1102
|
},
|
|
1088
1103
|
LinkListOptions
|
|
1089
1104
|
);
|
|
1105
|
+
if (Array.isArray(response.data)) {
|
|
1106
|
+
response.data = {
|
|
1107
|
+
linkArray: response.data,
|
|
1108
|
+
count: response.data.length,
|
|
1109
|
+
hasMore: false,
|
|
1110
|
+
cursor: null
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
return response;
|
|
1090
1114
|
}
|
|
1091
1115
|
async update(LinkUpdateParams, LinkUpdateOptions) {
|
|
1092
1116
|
return await super.sendRequest(
|
|
@@ -1174,8 +1198,8 @@ var UsersService = class extends Service {
|
|
|
1174
1198
|
"customerOfPropertyId=" + UserListParams.customerOfPropertyId
|
|
1175
1199
|
);
|
|
1176
1200
|
}
|
|
1177
|
-
if (UserListOptions?.
|
|
1178
|
-
queryArray.push("
|
|
1201
|
+
if (UserListOptions?.cursor !== void 0) {
|
|
1202
|
+
queryArray.push("cursor=" + UserListOptions.cursor);
|
|
1179
1203
|
}
|
|
1180
1204
|
if (UserListOptions?.limit !== void 0) {
|
|
1181
1205
|
queryArray.push("limit=" + UserListOptions.limit);
|
|
@@ -1307,13 +1331,13 @@ var PaymentsService = class extends Service {
|
|
|
1307
1331
|
if (PaymentListParams?.createdAt?.lte !== void 0) {
|
|
1308
1332
|
queryArray.push("createdAt[lte]=" + PaymentListParams.createdAt.lte);
|
|
1309
1333
|
}
|
|
1310
|
-
if (
|
|
1311
|
-
queryArray.push("limit=" +
|
|
1334
|
+
if (PaymentListOptions?.limit !== void 0) {
|
|
1335
|
+
queryArray.push("limit=" + PaymentListOptions.limit);
|
|
1312
1336
|
}
|
|
1313
|
-
if (
|
|
1314
|
-
queryArray.push("
|
|
1337
|
+
if (PaymentListOptions?.cursor !== void 0) {
|
|
1338
|
+
queryArray.push("cursor=" + PaymentListOptions.cursor);
|
|
1315
1339
|
}
|
|
1316
|
-
|
|
1340
|
+
const response = await super.sendRequest(
|
|
1317
1341
|
{
|
|
1318
1342
|
method: "GET",
|
|
1319
1343
|
url: "payments?" + queryArray.join("&"),
|
|
@@ -1322,6 +1346,15 @@ var PaymentsService = class extends Service {
|
|
|
1322
1346
|
},
|
|
1323
1347
|
PaymentListOptions
|
|
1324
1348
|
);
|
|
1349
|
+
if (Array.isArray(response.data)) {
|
|
1350
|
+
response.data = {
|
|
1351
|
+
paymentArray: response.data,
|
|
1352
|
+
count: response.data.length,
|
|
1353
|
+
hasMore: false,
|
|
1354
|
+
cursor: null
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
return response;
|
|
1325
1358
|
}
|
|
1326
1359
|
async retrieve(PaymentRetrieveParams, PaymentRetrieveOptions) {
|
|
1327
1360
|
const queryArray = [];
|
|
@@ -1439,7 +1472,13 @@ var PropertiesService = class extends Service {
|
|
|
1439
1472
|
if (PropertyListParams.userId !== void 0) {
|
|
1440
1473
|
queryArray.push("userId=" + PropertyListParams.userId);
|
|
1441
1474
|
}
|
|
1442
|
-
|
|
1475
|
+
if (PropertyListOptions?.limit !== void 0) {
|
|
1476
|
+
queryArray.push("limit=" + PropertyListOptions.limit);
|
|
1477
|
+
}
|
|
1478
|
+
if (PropertyListOptions?.cursor !== void 0) {
|
|
1479
|
+
queryArray.push("cursor=" + PropertyListOptions.cursor);
|
|
1480
|
+
}
|
|
1481
|
+
const response = await super.sendRequest(
|
|
1443
1482
|
{
|
|
1444
1483
|
method: "GET",
|
|
1445
1484
|
url: "properties?" + queryArray.join("&"),
|
|
@@ -1448,6 +1487,15 @@ var PropertiesService = class extends Service {
|
|
|
1448
1487
|
},
|
|
1449
1488
|
PropertyListOptions
|
|
1450
1489
|
);
|
|
1490
|
+
if (Array.isArray(response.data)) {
|
|
1491
|
+
response.data = {
|
|
1492
|
+
propertyArray: response.data,
|
|
1493
|
+
count: response.data.length,
|
|
1494
|
+
hasMore: false,
|
|
1495
|
+
cursor: null
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
return response;
|
|
1451
1499
|
}
|
|
1452
1500
|
async update(PropertyUpdateParams, PropertyUpdateOptions) {
|
|
1453
1501
|
return await super.sendRequest(
|
|
@@ -1605,7 +1653,13 @@ var PointsService = class extends Service {
|
|
|
1605
1653
|
queryArray.push("pointClusterId=" + PointListParams.pointClusterId);
|
|
1606
1654
|
}
|
|
1607
1655
|
}
|
|
1608
|
-
|
|
1656
|
+
if (PointListOptions?.limit !== void 0) {
|
|
1657
|
+
queryArray.push("limit=" + PointListOptions.limit);
|
|
1658
|
+
}
|
|
1659
|
+
if (PointListOptions?.cursor !== void 0) {
|
|
1660
|
+
queryArray.push("cursor=" + PointListOptions.cursor);
|
|
1661
|
+
}
|
|
1662
|
+
const response = await super.sendRequest(
|
|
1609
1663
|
{
|
|
1610
1664
|
method: "GET",
|
|
1611
1665
|
url: "points?" + queryArray.join("&"),
|
|
@@ -1614,6 +1668,15 @@ var PointsService = class extends Service {
|
|
|
1614
1668
|
},
|
|
1615
1669
|
PointListOptions
|
|
1616
1670
|
);
|
|
1671
|
+
if (Array.isArray(response.data)) {
|
|
1672
|
+
response.data = {
|
|
1673
|
+
pointArray: response.data,
|
|
1674
|
+
count: response.data.length,
|
|
1675
|
+
hasMore: false,
|
|
1676
|
+
cursor: null
|
|
1677
|
+
};
|
|
1678
|
+
}
|
|
1679
|
+
return response;
|
|
1617
1680
|
}
|
|
1618
1681
|
async create(PointCreateParams, PointCreateOptions) {
|
|
1619
1682
|
return await super.sendRequest(
|
|
@@ -1741,6 +1804,12 @@ var PointClustersService = class extends Service {
|
|
|
1741
1804
|
if (PointClusterListParams?.propertyId !== void 0) {
|
|
1742
1805
|
queryArray.push("propertyId=" + PointClusterListParams.propertyId);
|
|
1743
1806
|
}
|
|
1807
|
+
if (PointClusterListOptions?.limit !== void 0) {
|
|
1808
|
+
queryArray.push("limit=" + PointClusterListOptions.limit);
|
|
1809
|
+
}
|
|
1810
|
+
if (PointClusterListOptions?.cursor !== void 0) {
|
|
1811
|
+
queryArray.push("cursor=" + PointClusterListOptions.cursor);
|
|
1812
|
+
}
|
|
1744
1813
|
return await super.sendRequest(
|
|
1745
1814
|
{
|
|
1746
1815
|
method: "GET",
|
|
@@ -1849,8 +1918,8 @@ var DevicesService = class extends Service {
|
|
|
1849
1918
|
if (DeviceListOptions?.limit !== void 0) {
|
|
1850
1919
|
queryArray.push("limit=" + DeviceListOptions.limit);
|
|
1851
1920
|
}
|
|
1852
|
-
if (DeviceListOptions?.
|
|
1853
|
-
queryArray.push("
|
|
1921
|
+
if (DeviceListOptions?.cursor !== void 0) {
|
|
1922
|
+
queryArray.push("cursor=" + DeviceListOptions.cursor);
|
|
1854
1923
|
}
|
|
1855
1924
|
return await super.sendRequest(
|
|
1856
1925
|
{
|
|
@@ -1967,7 +2036,13 @@ var DeviceTemplatesService = class extends Service {
|
|
|
1967
2036
|
if (DeviceTemplateListParams?.propertyId !== void 0) {
|
|
1968
2037
|
queryArray.push("propertyId=" + DeviceTemplateListParams.propertyId);
|
|
1969
2038
|
}
|
|
1970
|
-
|
|
2039
|
+
if (DeviceTemplateListOptions?.limit !== void 0) {
|
|
2040
|
+
queryArray.push("limit=" + DeviceTemplateListOptions.limit);
|
|
2041
|
+
}
|
|
2042
|
+
if (DeviceTemplateListOptions?.cursor !== void 0) {
|
|
2043
|
+
queryArray.push("cursor=" + DeviceTemplateListOptions.cursor);
|
|
2044
|
+
}
|
|
2045
|
+
const response = await super.sendRequest(
|
|
1971
2046
|
{
|
|
1972
2047
|
method: "GET",
|
|
1973
2048
|
url: "deviceTemplates?" + queryArray.join("&"),
|
|
@@ -1976,6 +2051,15 @@ var DeviceTemplatesService = class extends Service {
|
|
|
1976
2051
|
},
|
|
1977
2052
|
DeviceTemplateListOptions
|
|
1978
2053
|
);
|
|
2054
|
+
if (Array.isArray(response.data)) {
|
|
2055
|
+
response.data = {
|
|
2056
|
+
deviceTemplateArray: response.data,
|
|
2057
|
+
count: response.data.length,
|
|
2058
|
+
hasMore: false,
|
|
2059
|
+
cursor: null
|
|
2060
|
+
};
|
|
2061
|
+
}
|
|
2062
|
+
return response;
|
|
1979
2063
|
}
|
|
1980
2064
|
async delete(DeviceTemplateDeleteParams, DeviceTemplateDeleteOptions) {
|
|
1981
2065
|
return await super.sendRequest(
|
|
@@ -2039,7 +2123,13 @@ var LocationsService = class extends Service {
|
|
|
2039
2123
|
if (LocationListParams?.visible !== void 0) {
|
|
2040
2124
|
queryArray.push("visible=" + LocationListParams.visible);
|
|
2041
2125
|
}
|
|
2042
|
-
|
|
2126
|
+
if (LocationListOptions?.limit !== void 0) {
|
|
2127
|
+
queryArray.push("limit=" + LocationListOptions.limit);
|
|
2128
|
+
}
|
|
2129
|
+
if (LocationListOptions?.cursor !== void 0) {
|
|
2130
|
+
queryArray.push("cursor=" + LocationListOptions.cursor);
|
|
2131
|
+
}
|
|
2132
|
+
const response = await super.sendRequest(
|
|
2043
2133
|
{
|
|
2044
2134
|
method: "GET",
|
|
2045
2135
|
url: "locations?" + queryArray.join("&"),
|
|
@@ -2048,6 +2138,15 @@ var LocationsService = class extends Service {
|
|
|
2048
2138
|
},
|
|
2049
2139
|
LocationListOptions
|
|
2050
2140
|
);
|
|
2141
|
+
if (Array.isArray(response.data)) {
|
|
2142
|
+
response.data = {
|
|
2143
|
+
locationArray: response.data,
|
|
2144
|
+
count: response.data.length,
|
|
2145
|
+
hasMore: false,
|
|
2146
|
+
cursor: null
|
|
2147
|
+
};
|
|
2148
|
+
}
|
|
2149
|
+
return response;
|
|
2051
2150
|
}
|
|
2052
2151
|
async update(LocationUpdateParams, LocationUpdateOptions) {
|
|
2053
2152
|
return await super.sendRequest(
|
|
@@ -2136,7 +2235,13 @@ var TermsService = class extends Service {
|
|
|
2136
2235
|
if (TermListParams?.propertyId !== void 0) {
|
|
2137
2236
|
queryArray.push("propertyId=" + TermListParams.propertyId);
|
|
2138
2237
|
}
|
|
2139
|
-
|
|
2238
|
+
if (TermListOptions?.limit !== void 0) {
|
|
2239
|
+
queryArray.push("limit=" + TermListOptions.limit);
|
|
2240
|
+
}
|
|
2241
|
+
if (TermListOptions?.cursor !== void 0) {
|
|
2242
|
+
queryArray.push("cursor=" + TermListOptions.cursor);
|
|
2243
|
+
}
|
|
2244
|
+
const response = await super.sendRequest(
|
|
2140
2245
|
{
|
|
2141
2246
|
method: "GET",
|
|
2142
2247
|
url: "terms?" + queryArray.join("&"),
|
|
@@ -2145,6 +2250,15 @@ var TermsService = class extends Service {
|
|
|
2145
2250
|
},
|
|
2146
2251
|
TermListOptions
|
|
2147
2252
|
);
|
|
2253
|
+
if (Array.isArray(response.data)) {
|
|
2254
|
+
response.data = {
|
|
2255
|
+
termArray: response.data,
|
|
2256
|
+
count: response.data.length,
|
|
2257
|
+
hasMore: false,
|
|
2258
|
+
cursor: null
|
|
2259
|
+
};
|
|
2260
|
+
}
|
|
2261
|
+
return response;
|
|
2148
2262
|
}
|
|
2149
2263
|
async update(TermUpdateParams, TermUpdateOptions) {
|
|
2150
2264
|
return await super.sendRequest(
|
|
@@ -2232,7 +2346,13 @@ var TariffsService = class extends Service {
|
|
|
2232
2346
|
if (TariffListParams?.propertyId !== void 0) {
|
|
2233
2347
|
queryArray.push("propertyId=" + TariffListParams.propertyId);
|
|
2234
2348
|
}
|
|
2235
|
-
|
|
2349
|
+
if (TariffListOptions?.limit !== void 0) {
|
|
2350
|
+
queryArray.push("limit=" + TariffListOptions.limit);
|
|
2351
|
+
}
|
|
2352
|
+
if (TariffListOptions?.cursor !== void 0) {
|
|
2353
|
+
queryArray.push("cursor=" + TariffListOptions.cursor);
|
|
2354
|
+
}
|
|
2355
|
+
const response = await super.sendRequest(
|
|
2236
2356
|
{
|
|
2237
2357
|
method: "GET",
|
|
2238
2358
|
url: "tariffs?" + queryArray.join("&"),
|
|
@@ -2241,6 +2361,15 @@ var TariffsService = class extends Service {
|
|
|
2241
2361
|
},
|
|
2242
2362
|
TariffListOptions
|
|
2243
2363
|
);
|
|
2364
|
+
if (Array.isArray(response.data)) {
|
|
2365
|
+
response.data = {
|
|
2366
|
+
tariffArray: response.data,
|
|
2367
|
+
count: response.data.length,
|
|
2368
|
+
hasMore: false,
|
|
2369
|
+
cursor: null
|
|
2370
|
+
};
|
|
2371
|
+
}
|
|
2372
|
+
return response;
|
|
2244
2373
|
}
|
|
2245
2374
|
async update(TariffUpdateParams, TariffUpdateOptions) {
|
|
2246
2375
|
return await super.sendRequest(
|
|
@@ -2390,7 +2519,13 @@ var ProductService = class extends Service {
|
|
|
2390
2519
|
if (ProductListParams?.propertyId !== void 0) {
|
|
2391
2520
|
queryArray.push("propertyId=" + ProductListParams.propertyId);
|
|
2392
2521
|
}
|
|
2393
|
-
|
|
2522
|
+
if (ProductListOptions?.limit !== void 0) {
|
|
2523
|
+
queryArray.push("limit=" + ProductListOptions.limit);
|
|
2524
|
+
}
|
|
2525
|
+
if (ProductListOptions?.cursor !== void 0) {
|
|
2526
|
+
queryArray.push("cursor=" + ProductListOptions.cursor);
|
|
2527
|
+
}
|
|
2528
|
+
const response = await super.sendRequest(
|
|
2394
2529
|
{
|
|
2395
2530
|
method: "GET",
|
|
2396
2531
|
url: "products?" + queryArray.join("&"),
|
|
@@ -2399,6 +2534,15 @@ var ProductService = class extends Service {
|
|
|
2399
2534
|
},
|
|
2400
2535
|
ProductListOptions
|
|
2401
2536
|
);
|
|
2537
|
+
if (Array.isArray(response.data)) {
|
|
2538
|
+
response.data = {
|
|
2539
|
+
productArray: response.data,
|
|
2540
|
+
count: response.data.length,
|
|
2541
|
+
hasMore: false,
|
|
2542
|
+
cursor: null
|
|
2543
|
+
};
|
|
2544
|
+
}
|
|
2545
|
+
return response;
|
|
2402
2546
|
}
|
|
2403
2547
|
async retrieve(params, options) {
|
|
2404
2548
|
const queryArray = [];
|
|
@@ -2633,7 +2777,13 @@ var AccountingAreasService = class extends Service {
|
|
|
2633
2777
|
if (AccountingAreaListParams?.propertyId !== void 0) {
|
|
2634
2778
|
queryArray.push("propertyId=" + AccountingAreaListParams.propertyId);
|
|
2635
2779
|
}
|
|
2636
|
-
|
|
2780
|
+
if (AccountingAreaListOptions?.limit !== void 0) {
|
|
2781
|
+
queryArray.push("limit=" + AccountingAreaListOptions.limit);
|
|
2782
|
+
}
|
|
2783
|
+
if (AccountingAreaListOptions?.cursor !== void 0) {
|
|
2784
|
+
queryArray.push("cursor=" + AccountingAreaListOptions.cursor);
|
|
2785
|
+
}
|
|
2786
|
+
const response = await super.sendRequest(
|
|
2637
2787
|
{
|
|
2638
2788
|
method: "GET",
|
|
2639
2789
|
url: "accountingAreas?" + queryArray.join("&"),
|
|
@@ -2642,6 +2792,15 @@ var AccountingAreasService = class extends Service {
|
|
|
2642
2792
|
},
|
|
2643
2793
|
AccountingAreaListOptions
|
|
2644
2794
|
);
|
|
2795
|
+
if (Array.isArray(response.data)) {
|
|
2796
|
+
response.data = {
|
|
2797
|
+
accountingAreaArray: response.data,
|
|
2798
|
+
count: response.data.length,
|
|
2799
|
+
hasMore: false,
|
|
2800
|
+
cursor: null
|
|
2801
|
+
};
|
|
2802
|
+
}
|
|
2803
|
+
return response;
|
|
2645
2804
|
}
|
|
2646
2805
|
async update(AccountingAreaUpdateParams, AccountingAreaUpdateOptions) {
|
|
2647
2806
|
return await super.sendRequest(
|
|
@@ -2712,7 +2871,13 @@ var PayoutsService = class extends Service {
|
|
|
2712
2871
|
if (PayoutListParams?.propertyId !== void 0) {
|
|
2713
2872
|
queryArray.push("propertyId=" + PayoutListParams.propertyId);
|
|
2714
2873
|
}
|
|
2715
|
-
|
|
2874
|
+
if (PayoutListOptions?.limit !== void 0) {
|
|
2875
|
+
queryArray.push("limit=" + PayoutListOptions.limit);
|
|
2876
|
+
}
|
|
2877
|
+
if (PayoutListOptions?.cursor !== void 0) {
|
|
2878
|
+
queryArray.push("cursor=" + PayoutListOptions.cursor);
|
|
2879
|
+
}
|
|
2880
|
+
const response = await super.sendRequest(
|
|
2716
2881
|
{
|
|
2717
2882
|
method: "GET",
|
|
2718
2883
|
url: "payouts?" + queryArray.join("&"),
|
|
@@ -2721,6 +2886,15 @@ var PayoutsService = class extends Service {
|
|
|
2721
2886
|
},
|
|
2722
2887
|
PayoutListOptions
|
|
2723
2888
|
);
|
|
2889
|
+
if (Array.isArray(response.data)) {
|
|
2890
|
+
response.data = {
|
|
2891
|
+
payoutArray: response.data,
|
|
2892
|
+
count: response.data.length,
|
|
2893
|
+
hasMore: false,
|
|
2894
|
+
cursor: null
|
|
2895
|
+
};
|
|
2896
|
+
}
|
|
2897
|
+
return response;
|
|
2724
2898
|
}
|
|
2725
2899
|
};
|
|
2726
2900
|
|
|
@@ -2760,6 +2934,12 @@ var SimsService = class extends Service {
|
|
|
2760
2934
|
if (SimListParams?.propertyId !== void 0) {
|
|
2761
2935
|
queryArray.push("propertyId=" + SimListParams.propertyId);
|
|
2762
2936
|
}
|
|
2937
|
+
if (SimListOptions?.limit !== void 0) {
|
|
2938
|
+
queryArray.push("limit=" + SimListOptions.limit);
|
|
2939
|
+
}
|
|
2940
|
+
if (SimListOptions?.cursor !== void 0) {
|
|
2941
|
+
queryArray.push("cursor=" + SimListOptions.cursor);
|
|
2942
|
+
}
|
|
2763
2943
|
return await super.sendRequest(
|
|
2764
2944
|
{
|
|
2765
2945
|
method: "GET",
|
|
@@ -2848,8 +3028,8 @@ var ArticlesService = class extends Service {
|
|
|
2848
3028
|
if (ArticleListParams?.statusArray !== void 0) {
|
|
2849
3029
|
queryArray.push("statusArray=" + ArticleListParams.statusArray.join(","));
|
|
2850
3030
|
}
|
|
2851
|
-
if (ArticleListOptions?.
|
|
2852
|
-
queryArray.push("
|
|
3031
|
+
if (ArticleListOptions?.cursor !== void 0) {
|
|
3032
|
+
queryArray.push("cursor=" + ArticleListOptions.cursor);
|
|
2853
3033
|
}
|
|
2854
3034
|
if (ArticleListOptions?.limit !== void 0) {
|
|
2855
3035
|
queryArray.push("limit=" + ArticleListOptions.limit);
|
|
@@ -2986,8 +3166,8 @@ var ChatsService = class extends Service {
|
|
|
2986
3166
|
if (ChatListParams?.userId !== void 0) {
|
|
2987
3167
|
queryArray.push("userId=" + ChatListParams.userId);
|
|
2988
3168
|
}
|
|
2989
|
-
if (ChatListOptions?.
|
|
2990
|
-
queryArray.push("
|
|
3169
|
+
if (ChatListOptions?.cursor !== void 0) {
|
|
3170
|
+
queryArray.push("cursor=" + ChatListOptions.cursor);
|
|
2991
3171
|
}
|
|
2992
3172
|
return await super.sendRequest(
|
|
2993
3173
|
{
|
|
@@ -3085,11 +3265,11 @@ var ChatMessagesService = class extends Service {
|
|
|
3085
3265
|
if (ChatMessageListParams.chatId !== void 0) {
|
|
3086
3266
|
queryArray.push("chatId=" + ChatMessageListParams.chatId);
|
|
3087
3267
|
}
|
|
3088
|
-
if (
|
|
3089
|
-
queryArray.push("limit=" +
|
|
3268
|
+
if (ChatMessageListOptions?.limit !== void 0) {
|
|
3269
|
+
queryArray.push("limit=" + ChatMessageListOptions.limit);
|
|
3090
3270
|
}
|
|
3091
|
-
if (
|
|
3092
|
-
queryArray.push("
|
|
3271
|
+
if (ChatMessageListOptions?.cursor !== void 0) {
|
|
3272
|
+
queryArray.push("cursor=" + ChatMessageListOptions.cursor);
|
|
3093
3273
|
}
|
|
3094
3274
|
return await super.sendRequest(
|
|
3095
3275
|
{
|
|
@@ -3154,8 +3334,8 @@ var ArticleEmbeddingsService = class extends Service {
|
|
|
3154
3334
|
if (ArticleEmbeddingListParams?.articleId !== void 0) {
|
|
3155
3335
|
queryArray.push("articleId=" + ArticleEmbeddingListParams.articleId);
|
|
3156
3336
|
}
|
|
3157
|
-
if (ArticleEmbeddingListOptions?.
|
|
3158
|
-
queryArray.push("
|
|
3337
|
+
if (ArticleEmbeddingListOptions?.cursor !== void 0) {
|
|
3338
|
+
queryArray.push("cursor=" + ArticleEmbeddingListOptions.cursor);
|
|
3159
3339
|
}
|
|
3160
3340
|
return await super.sendRequest(
|
|
3161
3341
|
{
|
|
@@ -3268,16 +3448,16 @@ var PaymentRefundsService = class extends Service {
|
|
|
3268
3448
|
"createdAt[lte]=" + PaymentRefundListParams.createdAt.lte
|
|
3269
3449
|
);
|
|
3270
3450
|
}
|
|
3271
|
-
if (
|
|
3272
|
-
queryArray.push("limit=" +
|
|
3451
|
+
if (PaymentRefundListOptions?.limit !== void 0) {
|
|
3452
|
+
queryArray.push("limit=" + PaymentRefundListOptions.limit);
|
|
3273
3453
|
}
|
|
3274
|
-
if (
|
|
3275
|
-
queryArray.push("
|
|
3454
|
+
if (PaymentRefundListOptions?.cursor !== void 0) {
|
|
3455
|
+
queryArray.push("cursor=" + PaymentRefundListOptions.cursor);
|
|
3276
3456
|
}
|
|
3277
3457
|
if (PaymentRefundListParams.paymentId !== void 0) {
|
|
3278
3458
|
queryArray.push("paymentId=" + PaymentRefundListParams.paymentId);
|
|
3279
3459
|
}
|
|
3280
|
-
|
|
3460
|
+
const response = await super.sendRequest(
|
|
3281
3461
|
{
|
|
3282
3462
|
method: "GET",
|
|
3283
3463
|
url: "paymentRefunds?" + queryArray.join("&"),
|
|
@@ -3286,6 +3466,15 @@ var PaymentRefundsService = class extends Service {
|
|
|
3286
3466
|
},
|
|
3287
3467
|
PaymentRefundListOptions
|
|
3288
3468
|
);
|
|
3469
|
+
if (Array.isArray(response.data)) {
|
|
3470
|
+
response.data = {
|
|
3471
|
+
paymentRefundArray: response.data,
|
|
3472
|
+
count: response.data.length,
|
|
3473
|
+
hasMore: false,
|
|
3474
|
+
cursor: null
|
|
3475
|
+
};
|
|
3476
|
+
}
|
|
3477
|
+
return response;
|
|
3289
3478
|
}
|
|
3290
3479
|
async retrieve(PaymentRefundRetrieveParams, PaymentRefundRetrieveOptions) {
|
|
3291
3480
|
const queryArray = [];
|
|
@@ -3345,8 +3534,8 @@ var ArticleGroupGroupsService = class extends Service {
|
|
|
3345
3534
|
if (ArticleGroupListOptions?.limit !== void 0) {
|
|
3346
3535
|
queryArray.push("limit=" + ArticleGroupListOptions.limit);
|
|
3347
3536
|
}
|
|
3348
|
-
if (ArticleGroupListOptions?.
|
|
3349
|
-
queryArray.push("
|
|
3537
|
+
if (ArticleGroupListOptions?.cursor !== void 0) {
|
|
3538
|
+
queryArray.push("cursor=" + ArticleGroupListOptions.cursor);
|
|
3350
3539
|
}
|
|
3351
3540
|
return await super.sendRequest(
|
|
3352
3541
|
{
|
|
@@ -3412,8 +3601,8 @@ var ParameterHistoriesService = class extends Service {
|
|
|
3412
3601
|
if (ParameterHistoryListParams?.parameterId !== void 0) {
|
|
3413
3602
|
queryArray.push("parameterId=" + ParameterHistoryListParams.parameterId);
|
|
3414
3603
|
}
|
|
3415
|
-
if (
|
|
3416
|
-
queryArray.push("cursor=" +
|
|
3604
|
+
if (ParameterHistoryListOptions?.cursor !== void 0) {
|
|
3605
|
+
queryArray.push("cursor=" + ParameterHistoryListOptions.cursor);
|
|
3417
3606
|
}
|
|
3418
3607
|
if (ParameterHistoryListParams?.createdAt?.gte !== void 0) {
|
|
3419
3608
|
queryArray.push(
|
|
@@ -3496,8 +3685,8 @@ var ApiKeysService = class extends Service {
|
|
|
3496
3685
|
if (ApiKeyListParams?.statusArray !== void 0) {
|
|
3497
3686
|
queryArray.push("statusArray=" + ApiKeyListParams.statusArray.join(","));
|
|
3498
3687
|
}
|
|
3499
|
-
if (ApiKeyListOptions?.
|
|
3500
|
-
queryArray.push("
|
|
3688
|
+
if (ApiKeyListOptions?.cursor !== void 0) {
|
|
3689
|
+
queryArray.push("cursor=" + ApiKeyListOptions.cursor);
|
|
3501
3690
|
}
|
|
3502
3691
|
return await super.sendRequest(
|
|
3503
3692
|
{
|
|
@@ -3574,8 +3763,8 @@ var ParametersService = class extends Service {
|
|
|
3574
3763
|
if (ParameterListParams?.propertyId !== void 0) {
|
|
3575
3764
|
queryArray.push("propertyId=" + ParameterListParams.propertyId);
|
|
3576
3765
|
}
|
|
3577
|
-
if (ParameterListOptions?.
|
|
3578
|
-
queryArray.push("
|
|
3766
|
+
if (ParameterListOptions?.cursor !== void 0) {
|
|
3767
|
+
queryArray.push("cursor=" + ParameterListOptions.cursor);
|
|
3579
3768
|
}
|
|
3580
3769
|
if (ParameterListOptions?.limit !== void 0) {
|
|
3581
3770
|
queryArray.push("limit=" + ParameterListOptions.limit);
|
|
@@ -3681,8 +3870,8 @@ var IncidentTemplatesService = class extends Service {
|
|
|
3681
3870
|
if (IncidentTemplateListParams?.propertyId !== void 0) {
|
|
3682
3871
|
queryArray.push("propertyId=" + IncidentTemplateListParams.propertyId);
|
|
3683
3872
|
}
|
|
3684
|
-
if (IncidentTemplateListOptions?.
|
|
3685
|
-
queryArray.push("
|
|
3873
|
+
if (IncidentTemplateListOptions?.cursor !== void 0) {
|
|
3874
|
+
queryArray.push("cursor=" + IncidentTemplateListOptions.cursor);
|
|
3686
3875
|
}
|
|
3687
3876
|
if (IncidentTemplateListOptions?.limit !== void 0) {
|
|
3688
3877
|
queryArray.push("limit=" + IncidentTemplateListOptions.limit);
|
|
@@ -3779,8 +3968,8 @@ var IncidentsService = class extends Service {
|
|
|
3779
3968
|
"statusArray=" + IncidentListParams.statusArray.join(",")
|
|
3780
3969
|
);
|
|
3781
3970
|
}
|
|
3782
|
-
if (IncidentListOptions?.
|
|
3783
|
-
queryArray.push("
|
|
3971
|
+
if (IncidentListOptions?.cursor !== void 0) {
|
|
3972
|
+
queryArray.push("cursor=" + IncidentListOptions.cursor);
|
|
3784
3973
|
}
|
|
3785
3974
|
if (IncidentListOptions?.limit !== void 0) {
|
|
3786
3975
|
queryArray.push("limit=" + IncidentListOptions.limit);
|
|
@@ -3876,8 +4065,8 @@ var ParameterAnomalyGroupsService = class extends Service {
|
|
|
3876
4065
|
"propertyId=" + ParameterAnomalyGroupListParams.propertyId
|
|
3877
4066
|
);
|
|
3878
4067
|
}
|
|
3879
|
-
if (ParameterAnomalyGroupListOptions?.
|
|
3880
|
-
queryArray.push("
|
|
4068
|
+
if (ParameterAnomalyGroupListOptions?.cursor !== void 0) {
|
|
4069
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupListOptions.cursor);
|
|
3881
4070
|
}
|
|
3882
4071
|
return await super.sendRequest(
|
|
3883
4072
|
{
|
|
@@ -3963,8 +4152,8 @@ var ParameterAnomalyGroupTrackersService = class extends Service {
|
|
|
3963
4152
|
"propertyId=" + ParameterAnomalyGroupTrackerListParams.propertyId
|
|
3964
4153
|
);
|
|
3965
4154
|
}
|
|
3966
|
-
if (ParameterAnomalyGroupTrackerListOptions?.
|
|
3967
|
-
queryArray.push("
|
|
4155
|
+
if (ParameterAnomalyGroupTrackerListOptions?.cursor !== void 0) {
|
|
4156
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupTrackerListOptions.cursor);
|
|
3968
4157
|
}
|
|
3969
4158
|
return await super.sendRequest(
|
|
3970
4159
|
{
|
|
@@ -4048,8 +4237,8 @@ var ParameterAnomalyGroupTrackerTracesService = class extends Service {
|
|
|
4048
4237
|
if (ParameterAnomalyGroupTrackerTraceListOptions?.limit !== void 0) {
|
|
4049
4238
|
queryArray.push("limit=" + ParameterAnomalyGroupTrackerTraceListOptions.limit);
|
|
4050
4239
|
}
|
|
4051
|
-
if (ParameterAnomalyGroupTrackerTraceListOptions?.
|
|
4052
|
-
queryArray.push("
|
|
4240
|
+
if (ParameterAnomalyGroupTrackerTraceListOptions?.cursor !== void 0) {
|
|
4241
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupTrackerTraceListOptions.cursor);
|
|
4053
4242
|
}
|
|
4054
4243
|
return await super.sendRequest(
|
|
4055
4244
|
{
|
|
@@ -4154,8 +4343,8 @@ var FlowsService = class extends Service {
|
|
|
4154
4343
|
if (FlowListOptions?.limit !== void 0) {
|
|
4155
4344
|
queryArray.push("limit=" + FlowListOptions.limit);
|
|
4156
4345
|
}
|
|
4157
|
-
if (FlowListOptions?.
|
|
4158
|
-
queryArray.push("
|
|
4346
|
+
if (FlowListOptions?.cursor !== void 0) {
|
|
4347
|
+
queryArray.push("cursor=" + FlowListOptions.cursor);
|
|
4159
4348
|
}
|
|
4160
4349
|
return await super.sendRequest(
|
|
4161
4350
|
{
|
|
@@ -4608,8 +4797,8 @@ var FlowTracesService = class extends Service {
|
|
|
4608
4797
|
if (FlowTraceListOptions?.limit !== void 0) {
|
|
4609
4798
|
queryArray.push("limit=" + FlowTraceListOptions.limit);
|
|
4610
4799
|
}
|
|
4611
|
-
if (FlowTraceListOptions?.
|
|
4612
|
-
queryArray.push("
|
|
4800
|
+
if (FlowTraceListOptions?.cursor !== void 0) {
|
|
4801
|
+
queryArray.push("cursor=" + FlowTraceListOptions.cursor);
|
|
4613
4802
|
}
|
|
4614
4803
|
return await super.sendRequest(
|
|
4615
4804
|
{
|
|
@@ -4665,8 +4854,8 @@ var MqttTopicsService = class extends Service {
|
|
|
4665
4854
|
if (options?.limit !== void 0) {
|
|
4666
4855
|
queryArray.push("limit=" + options.limit);
|
|
4667
4856
|
}
|
|
4668
|
-
if (options?.
|
|
4669
|
-
queryArray.push("
|
|
4857
|
+
if (options?.cursor !== void 0) {
|
|
4858
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4670
4859
|
}
|
|
4671
4860
|
return await super.sendRequest(
|
|
4672
4861
|
{
|
|
@@ -4755,8 +4944,8 @@ var LicensePlatesService = class extends Service {
|
|
|
4755
4944
|
if (options?.limit !== void 0) {
|
|
4756
4945
|
queryArray.push("limit=" + options.limit);
|
|
4757
4946
|
}
|
|
4758
|
-
if (options?.
|
|
4759
|
-
queryArray.push("
|
|
4947
|
+
if (options?.cursor !== void 0) {
|
|
4948
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4760
4949
|
}
|
|
4761
4950
|
return await super.sendRequest(
|
|
4762
4951
|
{
|
|
@@ -4849,8 +5038,8 @@ var VehiclesService = class extends Service {
|
|
|
4849
5038
|
if (options?.limit !== void 0) {
|
|
4850
5039
|
queryArray.push("limit=" + options.limit);
|
|
4851
5040
|
}
|
|
4852
|
-
if (options?.
|
|
4853
|
-
queryArray.push("
|
|
5041
|
+
if (options?.cursor !== void 0) {
|
|
5042
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4854
5043
|
}
|
|
4855
5044
|
return await super.sendRequest(
|
|
4856
5045
|
{
|
|
@@ -4959,8 +5148,8 @@ var OrdersService = class extends Service {
|
|
|
4959
5148
|
if (options?.limit !== void 0) {
|
|
4960
5149
|
queryArray.push("limit=" + options.limit);
|
|
4961
5150
|
}
|
|
4962
|
-
if (options?.
|
|
4963
|
-
queryArray.push("
|
|
5151
|
+
if (options?.cursor !== void 0) {
|
|
5152
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4964
5153
|
}
|
|
4965
5154
|
return await super.sendRequest(
|
|
4966
5155
|
{
|
|
@@ -5072,8 +5261,8 @@ var BasketsService = class extends Service {
|
|
|
5072
5261
|
if (options?.limit !== void 0) {
|
|
5073
5262
|
queryArray.push("limit=" + options.limit);
|
|
5074
5263
|
}
|
|
5075
|
-
if (options?.
|
|
5076
|
-
queryArray.push("
|
|
5264
|
+
if (options?.cursor !== void 0) {
|
|
5265
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5077
5266
|
}
|
|
5078
5267
|
return await super.sendRequest(
|
|
5079
5268
|
{
|
|
@@ -5174,8 +5363,8 @@ var BenefitCardsService = class extends Service {
|
|
|
5174
5363
|
if (options?.limit !== void 0) {
|
|
5175
5364
|
queryArray.push("limit=" + options.limit);
|
|
5176
5365
|
}
|
|
5177
|
-
if (options?.
|
|
5178
|
-
queryArray.push("
|
|
5366
|
+
if (options?.cursor !== void 0) {
|
|
5367
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5179
5368
|
}
|
|
5180
5369
|
return await super.sendRequest(
|
|
5181
5370
|
{
|
|
@@ -5714,8 +5903,8 @@ var PanelsService = class extends Service {
|
|
|
5714
5903
|
if (options?.limit !== void 0) {
|
|
5715
5904
|
queryArray.push("limit=" + options.limit);
|
|
5716
5905
|
}
|
|
5717
|
-
if (options?.
|
|
5718
|
-
queryArray.push("
|
|
5906
|
+
if (options?.cursor !== void 0) {
|
|
5907
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5719
5908
|
}
|
|
5720
5909
|
return await super.sendRequest(
|
|
5721
5910
|
{
|
|
@@ -5852,8 +6041,8 @@ var PricesService = class extends Service {
|
|
|
5852
6041
|
if (options?.limit !== void 0) {
|
|
5853
6042
|
queryArray.push("limit=" + options.limit);
|
|
5854
6043
|
}
|
|
5855
|
-
if (options?.
|
|
5856
|
-
queryArray.push("
|
|
6044
|
+
if (options?.cursor !== void 0) {
|
|
6045
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5857
6046
|
}
|
|
5858
6047
|
return await super.sendRequest(
|
|
5859
6048
|
{
|