@juhuu/sdk-ts 1.3.40 → 1.3.41
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 +196 -59
- package/dist/index.d.ts +196 -59
- package/dist/index.js +254 -77
- package/dist/index.mjs +254 -77
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -432,8 +432,8 @@ var AchievementsService = class extends Service {
|
|
|
432
432
|
if (options?.limit !== void 0) {
|
|
433
433
|
queryArray.push("limit=" + options.limit);
|
|
434
434
|
}
|
|
435
|
-
if (options?.
|
|
436
|
-
queryArray.push("
|
|
435
|
+
if (options?.cursor !== void 0) {
|
|
436
|
+
queryArray.push("cursor=" + options.cursor);
|
|
437
437
|
}
|
|
438
438
|
return await super.sendRequest(
|
|
439
439
|
{
|
|
@@ -833,10 +833,10 @@ var SessionService = class extends Service {
|
|
|
833
833
|
if (SessionListOptions?.limit !== void 0) {
|
|
834
834
|
queryArray.push("limit=" + SessionListOptions.limit);
|
|
835
835
|
}
|
|
836
|
-
if (SessionListOptions?.
|
|
837
|
-
queryArray.push("
|
|
836
|
+
if (SessionListOptions?.cursor !== void 0) {
|
|
837
|
+
queryArray.push("cursor=" + SessionListOptions.cursor);
|
|
838
838
|
}
|
|
839
|
-
|
|
839
|
+
const response = await super.sendRequest(
|
|
840
840
|
{
|
|
841
841
|
method: "GET",
|
|
842
842
|
url: "sessions?" + queryArray.join("&"),
|
|
@@ -845,6 +845,15 @@ var SessionService = class extends Service {
|
|
|
845
845
|
},
|
|
846
846
|
SessionListOptions
|
|
847
847
|
);
|
|
848
|
+
if (Array.isArray(response.data)) {
|
|
849
|
+
response.data = {
|
|
850
|
+
sessionArray: response.data,
|
|
851
|
+
count: response.data.length,
|
|
852
|
+
hasMore: false,
|
|
853
|
+
cursor: null
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
return response;
|
|
848
857
|
}
|
|
849
858
|
async search(SessionSearchParams, SessionSearchOptions) {
|
|
850
859
|
const queryArray = [];
|
|
@@ -1034,7 +1043,13 @@ var LinkService = class extends Service {
|
|
|
1034
1043
|
if (LinkListParams.referenceObjectId !== void 0) {
|
|
1035
1044
|
queryArray.push("referenceObjectId=" + LinkListParams.referenceObjectId);
|
|
1036
1045
|
}
|
|
1037
|
-
|
|
1046
|
+
if (LinkListOptions?.limit !== void 0) {
|
|
1047
|
+
queryArray.push("limit=" + LinkListOptions.limit);
|
|
1048
|
+
}
|
|
1049
|
+
if (LinkListOptions?.cursor !== void 0) {
|
|
1050
|
+
queryArray.push("cursor=" + LinkListOptions.cursor);
|
|
1051
|
+
}
|
|
1052
|
+
const response = await super.sendRequest(
|
|
1038
1053
|
{
|
|
1039
1054
|
method: "GET",
|
|
1040
1055
|
url: "links?" + queryArray.join("&"),
|
|
@@ -1043,6 +1058,15 @@ var LinkService = class extends Service {
|
|
|
1043
1058
|
},
|
|
1044
1059
|
LinkListOptions
|
|
1045
1060
|
);
|
|
1061
|
+
if (Array.isArray(response.data)) {
|
|
1062
|
+
response.data = {
|
|
1063
|
+
linkArray: response.data,
|
|
1064
|
+
count: response.data.length,
|
|
1065
|
+
hasMore: false,
|
|
1066
|
+
cursor: null
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
return response;
|
|
1046
1070
|
}
|
|
1047
1071
|
async update(LinkUpdateParams, LinkUpdateOptions) {
|
|
1048
1072
|
return await super.sendRequest(
|
|
@@ -1130,8 +1154,8 @@ var UsersService = class extends Service {
|
|
|
1130
1154
|
"customerOfPropertyId=" + UserListParams.customerOfPropertyId
|
|
1131
1155
|
);
|
|
1132
1156
|
}
|
|
1133
|
-
if (UserListOptions?.
|
|
1134
|
-
queryArray.push("
|
|
1157
|
+
if (UserListOptions?.cursor !== void 0) {
|
|
1158
|
+
queryArray.push("cursor=" + UserListOptions.cursor);
|
|
1135
1159
|
}
|
|
1136
1160
|
if (UserListOptions?.limit !== void 0) {
|
|
1137
1161
|
queryArray.push("limit=" + UserListOptions.limit);
|
|
@@ -1263,13 +1287,13 @@ var PaymentsService = class extends Service {
|
|
|
1263
1287
|
if (PaymentListParams?.createdAt?.lte !== void 0) {
|
|
1264
1288
|
queryArray.push("createdAt[lte]=" + PaymentListParams.createdAt.lte);
|
|
1265
1289
|
}
|
|
1266
|
-
if (
|
|
1267
|
-
queryArray.push("limit=" +
|
|
1290
|
+
if (PaymentListOptions?.limit !== void 0) {
|
|
1291
|
+
queryArray.push("limit=" + PaymentListOptions.limit);
|
|
1268
1292
|
}
|
|
1269
|
-
if (
|
|
1270
|
-
queryArray.push("
|
|
1293
|
+
if (PaymentListOptions?.cursor !== void 0) {
|
|
1294
|
+
queryArray.push("cursor=" + PaymentListOptions.cursor);
|
|
1271
1295
|
}
|
|
1272
|
-
|
|
1296
|
+
const response = await super.sendRequest(
|
|
1273
1297
|
{
|
|
1274
1298
|
method: "GET",
|
|
1275
1299
|
url: "payments?" + queryArray.join("&"),
|
|
@@ -1278,6 +1302,15 @@ var PaymentsService = class extends Service {
|
|
|
1278
1302
|
},
|
|
1279
1303
|
PaymentListOptions
|
|
1280
1304
|
);
|
|
1305
|
+
if (Array.isArray(response.data)) {
|
|
1306
|
+
response.data = {
|
|
1307
|
+
paymentArray: response.data,
|
|
1308
|
+
count: response.data.length,
|
|
1309
|
+
hasMore: false,
|
|
1310
|
+
cursor: null
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1313
|
+
return response;
|
|
1281
1314
|
}
|
|
1282
1315
|
async retrieve(PaymentRetrieveParams, PaymentRetrieveOptions) {
|
|
1283
1316
|
const queryArray = [];
|
|
@@ -1395,7 +1428,13 @@ var PropertiesService = class extends Service {
|
|
|
1395
1428
|
if (PropertyListParams.userId !== void 0) {
|
|
1396
1429
|
queryArray.push("userId=" + PropertyListParams.userId);
|
|
1397
1430
|
}
|
|
1398
|
-
|
|
1431
|
+
if (PropertyListOptions?.limit !== void 0) {
|
|
1432
|
+
queryArray.push("limit=" + PropertyListOptions.limit);
|
|
1433
|
+
}
|
|
1434
|
+
if (PropertyListOptions?.cursor !== void 0) {
|
|
1435
|
+
queryArray.push("cursor=" + PropertyListOptions.cursor);
|
|
1436
|
+
}
|
|
1437
|
+
const response = await super.sendRequest(
|
|
1399
1438
|
{
|
|
1400
1439
|
method: "GET",
|
|
1401
1440
|
url: "properties?" + queryArray.join("&"),
|
|
@@ -1404,6 +1443,15 @@ var PropertiesService = class extends Service {
|
|
|
1404
1443
|
},
|
|
1405
1444
|
PropertyListOptions
|
|
1406
1445
|
);
|
|
1446
|
+
if (Array.isArray(response.data)) {
|
|
1447
|
+
response.data = {
|
|
1448
|
+
propertyArray: response.data,
|
|
1449
|
+
count: response.data.length,
|
|
1450
|
+
hasMore: false,
|
|
1451
|
+
cursor: null
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
return response;
|
|
1407
1455
|
}
|
|
1408
1456
|
async update(PropertyUpdateParams, PropertyUpdateOptions) {
|
|
1409
1457
|
return await super.sendRequest(
|
|
@@ -1561,7 +1609,13 @@ var PointsService = class extends Service {
|
|
|
1561
1609
|
queryArray.push("pointClusterId=" + PointListParams.pointClusterId);
|
|
1562
1610
|
}
|
|
1563
1611
|
}
|
|
1564
|
-
|
|
1612
|
+
if (PointListOptions?.limit !== void 0) {
|
|
1613
|
+
queryArray.push("limit=" + PointListOptions.limit);
|
|
1614
|
+
}
|
|
1615
|
+
if (PointListOptions?.cursor !== void 0) {
|
|
1616
|
+
queryArray.push("cursor=" + PointListOptions.cursor);
|
|
1617
|
+
}
|
|
1618
|
+
const response = await super.sendRequest(
|
|
1565
1619
|
{
|
|
1566
1620
|
method: "GET",
|
|
1567
1621
|
url: "points?" + queryArray.join("&"),
|
|
@@ -1570,6 +1624,15 @@ var PointsService = class extends Service {
|
|
|
1570
1624
|
},
|
|
1571
1625
|
PointListOptions
|
|
1572
1626
|
);
|
|
1627
|
+
if (Array.isArray(response.data)) {
|
|
1628
|
+
response.data = {
|
|
1629
|
+
pointArray: response.data,
|
|
1630
|
+
count: response.data.length,
|
|
1631
|
+
hasMore: false,
|
|
1632
|
+
cursor: null
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
return response;
|
|
1573
1636
|
}
|
|
1574
1637
|
async create(PointCreateParams, PointCreateOptions) {
|
|
1575
1638
|
return await super.sendRequest(
|
|
@@ -1805,8 +1868,8 @@ var DevicesService = class extends Service {
|
|
|
1805
1868
|
if (DeviceListOptions?.limit !== void 0) {
|
|
1806
1869
|
queryArray.push("limit=" + DeviceListOptions.limit);
|
|
1807
1870
|
}
|
|
1808
|
-
if (DeviceListOptions?.
|
|
1809
|
-
queryArray.push("
|
|
1871
|
+
if (DeviceListOptions?.cursor !== void 0) {
|
|
1872
|
+
queryArray.push("cursor=" + DeviceListOptions.cursor);
|
|
1810
1873
|
}
|
|
1811
1874
|
return await super.sendRequest(
|
|
1812
1875
|
{
|
|
@@ -1923,7 +1986,13 @@ var DeviceTemplatesService = class extends Service {
|
|
|
1923
1986
|
if (DeviceTemplateListParams?.propertyId !== void 0) {
|
|
1924
1987
|
queryArray.push("propertyId=" + DeviceTemplateListParams.propertyId);
|
|
1925
1988
|
}
|
|
1926
|
-
|
|
1989
|
+
if (DeviceTemplateListOptions?.limit !== void 0) {
|
|
1990
|
+
queryArray.push("limit=" + DeviceTemplateListOptions.limit);
|
|
1991
|
+
}
|
|
1992
|
+
if (DeviceTemplateListOptions?.cursor !== void 0) {
|
|
1993
|
+
queryArray.push("cursor=" + DeviceTemplateListOptions.cursor);
|
|
1994
|
+
}
|
|
1995
|
+
const response = await super.sendRequest(
|
|
1927
1996
|
{
|
|
1928
1997
|
method: "GET",
|
|
1929
1998
|
url: "deviceTemplates?" + queryArray.join("&"),
|
|
@@ -1932,6 +2001,15 @@ var DeviceTemplatesService = class extends Service {
|
|
|
1932
2001
|
},
|
|
1933
2002
|
DeviceTemplateListOptions
|
|
1934
2003
|
);
|
|
2004
|
+
if (Array.isArray(response.data)) {
|
|
2005
|
+
response.data = {
|
|
2006
|
+
deviceTemplateArray: response.data,
|
|
2007
|
+
count: response.data.length,
|
|
2008
|
+
hasMore: false,
|
|
2009
|
+
cursor: null
|
|
2010
|
+
};
|
|
2011
|
+
}
|
|
2012
|
+
return response;
|
|
1935
2013
|
}
|
|
1936
2014
|
async delete(DeviceTemplateDeleteParams, DeviceTemplateDeleteOptions) {
|
|
1937
2015
|
return await super.sendRequest(
|
|
@@ -1995,7 +2073,13 @@ var LocationsService = class extends Service {
|
|
|
1995
2073
|
if (LocationListParams?.visible !== void 0) {
|
|
1996
2074
|
queryArray.push("visible=" + LocationListParams.visible);
|
|
1997
2075
|
}
|
|
1998
|
-
|
|
2076
|
+
if (LocationListOptions?.limit !== void 0) {
|
|
2077
|
+
queryArray.push("limit=" + LocationListOptions.limit);
|
|
2078
|
+
}
|
|
2079
|
+
if (LocationListOptions?.cursor !== void 0) {
|
|
2080
|
+
queryArray.push("cursor=" + LocationListOptions.cursor);
|
|
2081
|
+
}
|
|
2082
|
+
const response = await super.sendRequest(
|
|
1999
2083
|
{
|
|
2000
2084
|
method: "GET",
|
|
2001
2085
|
url: "locations?" + queryArray.join("&"),
|
|
@@ -2004,6 +2088,15 @@ var LocationsService = class extends Service {
|
|
|
2004
2088
|
},
|
|
2005
2089
|
LocationListOptions
|
|
2006
2090
|
);
|
|
2091
|
+
if (Array.isArray(response.data)) {
|
|
2092
|
+
response.data = {
|
|
2093
|
+
locationArray: response.data,
|
|
2094
|
+
count: response.data.length,
|
|
2095
|
+
hasMore: false,
|
|
2096
|
+
cursor: null
|
|
2097
|
+
};
|
|
2098
|
+
}
|
|
2099
|
+
return response;
|
|
2007
2100
|
}
|
|
2008
2101
|
async update(LocationUpdateParams, LocationUpdateOptions) {
|
|
2009
2102
|
return await super.sendRequest(
|
|
@@ -2092,7 +2185,13 @@ var TermsService = class extends Service {
|
|
|
2092
2185
|
if (TermListParams?.propertyId !== void 0) {
|
|
2093
2186
|
queryArray.push("propertyId=" + TermListParams.propertyId);
|
|
2094
2187
|
}
|
|
2095
|
-
|
|
2188
|
+
if (TermListOptions?.limit !== void 0) {
|
|
2189
|
+
queryArray.push("limit=" + TermListOptions.limit);
|
|
2190
|
+
}
|
|
2191
|
+
if (TermListOptions?.cursor !== void 0) {
|
|
2192
|
+
queryArray.push("cursor=" + TermListOptions.cursor);
|
|
2193
|
+
}
|
|
2194
|
+
const response = await super.sendRequest(
|
|
2096
2195
|
{
|
|
2097
2196
|
method: "GET",
|
|
2098
2197
|
url: "terms?" + queryArray.join("&"),
|
|
@@ -2101,6 +2200,15 @@ var TermsService = class extends Service {
|
|
|
2101
2200
|
},
|
|
2102
2201
|
TermListOptions
|
|
2103
2202
|
);
|
|
2203
|
+
if (Array.isArray(response.data)) {
|
|
2204
|
+
response.data = {
|
|
2205
|
+
termArray: response.data,
|
|
2206
|
+
count: response.data.length,
|
|
2207
|
+
hasMore: false,
|
|
2208
|
+
cursor: null
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
return response;
|
|
2104
2212
|
}
|
|
2105
2213
|
async update(TermUpdateParams, TermUpdateOptions) {
|
|
2106
2214
|
return await super.sendRequest(
|
|
@@ -2188,7 +2296,13 @@ var TariffsService = class extends Service {
|
|
|
2188
2296
|
if (TariffListParams?.propertyId !== void 0) {
|
|
2189
2297
|
queryArray.push("propertyId=" + TariffListParams.propertyId);
|
|
2190
2298
|
}
|
|
2191
|
-
|
|
2299
|
+
if (TariffListOptions?.limit !== void 0) {
|
|
2300
|
+
queryArray.push("limit=" + TariffListOptions.limit);
|
|
2301
|
+
}
|
|
2302
|
+
if (TariffListOptions?.cursor !== void 0) {
|
|
2303
|
+
queryArray.push("cursor=" + TariffListOptions.cursor);
|
|
2304
|
+
}
|
|
2305
|
+
const response = await super.sendRequest(
|
|
2192
2306
|
{
|
|
2193
2307
|
method: "GET",
|
|
2194
2308
|
url: "tariffs?" + queryArray.join("&"),
|
|
@@ -2197,6 +2311,15 @@ var TariffsService = class extends Service {
|
|
|
2197
2311
|
},
|
|
2198
2312
|
TariffListOptions
|
|
2199
2313
|
);
|
|
2314
|
+
if (Array.isArray(response.data)) {
|
|
2315
|
+
response.data = {
|
|
2316
|
+
tariffArray: response.data,
|
|
2317
|
+
count: response.data.length,
|
|
2318
|
+
hasMore: false,
|
|
2319
|
+
cursor: null
|
|
2320
|
+
};
|
|
2321
|
+
}
|
|
2322
|
+
return response;
|
|
2200
2323
|
}
|
|
2201
2324
|
async update(TariffUpdateParams, TariffUpdateOptions) {
|
|
2202
2325
|
return await super.sendRequest(
|
|
@@ -2346,7 +2469,13 @@ var ProductService = class extends Service {
|
|
|
2346
2469
|
if (ProductListParams?.propertyId !== void 0) {
|
|
2347
2470
|
queryArray.push("propertyId=" + ProductListParams.propertyId);
|
|
2348
2471
|
}
|
|
2349
|
-
|
|
2472
|
+
if (ProductListOptions?.limit !== void 0) {
|
|
2473
|
+
queryArray.push("limit=" + ProductListOptions.limit);
|
|
2474
|
+
}
|
|
2475
|
+
if (ProductListOptions?.cursor !== void 0) {
|
|
2476
|
+
queryArray.push("cursor=" + ProductListOptions.cursor);
|
|
2477
|
+
}
|
|
2478
|
+
const response = await super.sendRequest(
|
|
2350
2479
|
{
|
|
2351
2480
|
method: "GET",
|
|
2352
2481
|
url: "products?" + queryArray.join("&"),
|
|
@@ -2355,6 +2484,15 @@ var ProductService = class extends Service {
|
|
|
2355
2484
|
},
|
|
2356
2485
|
ProductListOptions
|
|
2357
2486
|
);
|
|
2487
|
+
if (Array.isArray(response.data)) {
|
|
2488
|
+
response.data = {
|
|
2489
|
+
productArray: response.data,
|
|
2490
|
+
count: response.data.length,
|
|
2491
|
+
hasMore: false,
|
|
2492
|
+
cursor: null
|
|
2493
|
+
};
|
|
2494
|
+
}
|
|
2495
|
+
return response;
|
|
2358
2496
|
}
|
|
2359
2497
|
async retrieve(params, options) {
|
|
2360
2498
|
const queryArray = [];
|
|
@@ -2589,7 +2727,13 @@ var AccountingAreasService = class extends Service {
|
|
|
2589
2727
|
if (AccountingAreaListParams?.propertyId !== void 0) {
|
|
2590
2728
|
queryArray.push("propertyId=" + AccountingAreaListParams.propertyId);
|
|
2591
2729
|
}
|
|
2592
|
-
|
|
2730
|
+
if (AccountingAreaListOptions?.limit !== void 0) {
|
|
2731
|
+
queryArray.push("limit=" + AccountingAreaListOptions.limit);
|
|
2732
|
+
}
|
|
2733
|
+
if (AccountingAreaListOptions?.cursor !== void 0) {
|
|
2734
|
+
queryArray.push("cursor=" + AccountingAreaListOptions.cursor);
|
|
2735
|
+
}
|
|
2736
|
+
const response = await super.sendRequest(
|
|
2593
2737
|
{
|
|
2594
2738
|
method: "GET",
|
|
2595
2739
|
url: "accountingAreas?" + queryArray.join("&"),
|
|
@@ -2598,6 +2742,15 @@ var AccountingAreasService = class extends Service {
|
|
|
2598
2742
|
},
|
|
2599
2743
|
AccountingAreaListOptions
|
|
2600
2744
|
);
|
|
2745
|
+
if (Array.isArray(response.data)) {
|
|
2746
|
+
response.data = {
|
|
2747
|
+
accountingAreaArray: response.data,
|
|
2748
|
+
count: response.data.length,
|
|
2749
|
+
hasMore: false,
|
|
2750
|
+
cursor: null
|
|
2751
|
+
};
|
|
2752
|
+
}
|
|
2753
|
+
return response;
|
|
2601
2754
|
}
|
|
2602
2755
|
async update(AccountingAreaUpdateParams, AccountingAreaUpdateOptions) {
|
|
2603
2756
|
return await super.sendRequest(
|
|
@@ -2668,7 +2821,13 @@ var PayoutsService = class extends Service {
|
|
|
2668
2821
|
if (PayoutListParams?.propertyId !== void 0) {
|
|
2669
2822
|
queryArray.push("propertyId=" + PayoutListParams.propertyId);
|
|
2670
2823
|
}
|
|
2671
|
-
|
|
2824
|
+
if (PayoutListOptions?.limit !== void 0) {
|
|
2825
|
+
queryArray.push("limit=" + PayoutListOptions.limit);
|
|
2826
|
+
}
|
|
2827
|
+
if (PayoutListOptions?.cursor !== void 0) {
|
|
2828
|
+
queryArray.push("cursor=" + PayoutListOptions.cursor);
|
|
2829
|
+
}
|
|
2830
|
+
const response = await super.sendRequest(
|
|
2672
2831
|
{
|
|
2673
2832
|
method: "GET",
|
|
2674
2833
|
url: "payouts?" + queryArray.join("&"),
|
|
@@ -2677,6 +2836,15 @@ var PayoutsService = class extends Service {
|
|
|
2677
2836
|
},
|
|
2678
2837
|
PayoutListOptions
|
|
2679
2838
|
);
|
|
2839
|
+
if (Array.isArray(response.data)) {
|
|
2840
|
+
response.data = {
|
|
2841
|
+
payoutArray: response.data,
|
|
2842
|
+
count: response.data.length,
|
|
2843
|
+
hasMore: false,
|
|
2844
|
+
cursor: null
|
|
2845
|
+
};
|
|
2846
|
+
}
|
|
2847
|
+
return response;
|
|
2680
2848
|
}
|
|
2681
2849
|
};
|
|
2682
2850
|
|
|
@@ -2804,8 +2972,8 @@ var ArticlesService = class extends Service {
|
|
|
2804
2972
|
if (ArticleListParams?.statusArray !== void 0) {
|
|
2805
2973
|
queryArray.push("statusArray=" + ArticleListParams.statusArray.join(","));
|
|
2806
2974
|
}
|
|
2807
|
-
if (ArticleListOptions?.
|
|
2808
|
-
queryArray.push("
|
|
2975
|
+
if (ArticleListOptions?.cursor !== void 0) {
|
|
2976
|
+
queryArray.push("cursor=" + ArticleListOptions.cursor);
|
|
2809
2977
|
}
|
|
2810
2978
|
if (ArticleListOptions?.limit !== void 0) {
|
|
2811
2979
|
queryArray.push("limit=" + ArticleListOptions.limit);
|
|
@@ -2942,8 +3110,8 @@ var ChatsService = class extends Service {
|
|
|
2942
3110
|
if (ChatListParams?.userId !== void 0) {
|
|
2943
3111
|
queryArray.push("userId=" + ChatListParams.userId);
|
|
2944
3112
|
}
|
|
2945
|
-
if (ChatListOptions?.
|
|
2946
|
-
queryArray.push("
|
|
3113
|
+
if (ChatListOptions?.cursor !== void 0) {
|
|
3114
|
+
queryArray.push("cursor=" + ChatListOptions.cursor);
|
|
2947
3115
|
}
|
|
2948
3116
|
return await super.sendRequest(
|
|
2949
3117
|
{
|
|
@@ -3041,11 +3209,11 @@ var ChatMessagesService = class extends Service {
|
|
|
3041
3209
|
if (ChatMessageListParams.chatId !== void 0) {
|
|
3042
3210
|
queryArray.push("chatId=" + ChatMessageListParams.chatId);
|
|
3043
3211
|
}
|
|
3044
|
-
if (
|
|
3045
|
-
queryArray.push("limit=" +
|
|
3212
|
+
if (ChatMessageListOptions?.limit !== void 0) {
|
|
3213
|
+
queryArray.push("limit=" + ChatMessageListOptions.limit);
|
|
3046
3214
|
}
|
|
3047
|
-
if (
|
|
3048
|
-
queryArray.push("
|
|
3215
|
+
if (ChatMessageListOptions?.cursor !== void 0) {
|
|
3216
|
+
queryArray.push("cursor=" + ChatMessageListOptions.cursor);
|
|
3049
3217
|
}
|
|
3050
3218
|
return await super.sendRequest(
|
|
3051
3219
|
{
|
|
@@ -3110,8 +3278,8 @@ var ArticleEmbeddingsService = class extends Service {
|
|
|
3110
3278
|
if (ArticleEmbeddingListParams?.articleId !== void 0) {
|
|
3111
3279
|
queryArray.push("articleId=" + ArticleEmbeddingListParams.articleId);
|
|
3112
3280
|
}
|
|
3113
|
-
if (ArticleEmbeddingListOptions?.
|
|
3114
|
-
queryArray.push("
|
|
3281
|
+
if (ArticleEmbeddingListOptions?.cursor !== void 0) {
|
|
3282
|
+
queryArray.push("cursor=" + ArticleEmbeddingListOptions.cursor);
|
|
3115
3283
|
}
|
|
3116
3284
|
return await super.sendRequest(
|
|
3117
3285
|
{
|
|
@@ -3224,16 +3392,16 @@ var PaymentRefundsService = class extends Service {
|
|
|
3224
3392
|
"createdAt[lte]=" + PaymentRefundListParams.createdAt.lte
|
|
3225
3393
|
);
|
|
3226
3394
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
queryArray.push("limit=" +
|
|
3395
|
+
if (PaymentRefundListOptions?.limit !== void 0) {
|
|
3396
|
+
queryArray.push("limit=" + PaymentRefundListOptions.limit);
|
|
3229
3397
|
}
|
|
3230
|
-
if (
|
|
3231
|
-
queryArray.push("
|
|
3398
|
+
if (PaymentRefundListOptions?.cursor !== void 0) {
|
|
3399
|
+
queryArray.push("cursor=" + PaymentRefundListOptions.cursor);
|
|
3232
3400
|
}
|
|
3233
3401
|
if (PaymentRefundListParams.paymentId !== void 0) {
|
|
3234
3402
|
queryArray.push("paymentId=" + PaymentRefundListParams.paymentId);
|
|
3235
3403
|
}
|
|
3236
|
-
|
|
3404
|
+
const response = await super.sendRequest(
|
|
3237
3405
|
{
|
|
3238
3406
|
method: "GET",
|
|
3239
3407
|
url: "paymentRefunds?" + queryArray.join("&"),
|
|
@@ -3242,6 +3410,15 @@ var PaymentRefundsService = class extends Service {
|
|
|
3242
3410
|
},
|
|
3243
3411
|
PaymentRefundListOptions
|
|
3244
3412
|
);
|
|
3413
|
+
if (Array.isArray(response.data)) {
|
|
3414
|
+
response.data = {
|
|
3415
|
+
paymentRefundArray: response.data,
|
|
3416
|
+
count: response.data.length,
|
|
3417
|
+
hasMore: false,
|
|
3418
|
+
cursor: null
|
|
3419
|
+
};
|
|
3420
|
+
}
|
|
3421
|
+
return response;
|
|
3245
3422
|
}
|
|
3246
3423
|
async retrieve(PaymentRefundRetrieveParams, PaymentRefundRetrieveOptions) {
|
|
3247
3424
|
const queryArray = [];
|
|
@@ -3301,8 +3478,8 @@ var ArticleGroupGroupsService = class extends Service {
|
|
|
3301
3478
|
if (ArticleGroupListOptions?.limit !== void 0) {
|
|
3302
3479
|
queryArray.push("limit=" + ArticleGroupListOptions.limit);
|
|
3303
3480
|
}
|
|
3304
|
-
if (ArticleGroupListOptions?.
|
|
3305
|
-
queryArray.push("
|
|
3481
|
+
if (ArticleGroupListOptions?.cursor !== void 0) {
|
|
3482
|
+
queryArray.push("cursor=" + ArticleGroupListOptions.cursor);
|
|
3306
3483
|
}
|
|
3307
3484
|
return await super.sendRequest(
|
|
3308
3485
|
{
|
|
@@ -3368,8 +3545,8 @@ var ParameterHistoriesService = class extends Service {
|
|
|
3368
3545
|
if (ParameterHistoryListParams?.parameterId !== void 0) {
|
|
3369
3546
|
queryArray.push("parameterId=" + ParameterHistoryListParams.parameterId);
|
|
3370
3547
|
}
|
|
3371
|
-
if (
|
|
3372
|
-
queryArray.push("cursor=" +
|
|
3548
|
+
if (ParameterHistoryListOptions?.cursor !== void 0) {
|
|
3549
|
+
queryArray.push("cursor=" + ParameterHistoryListOptions.cursor);
|
|
3373
3550
|
}
|
|
3374
3551
|
if (ParameterHistoryListParams?.createdAt?.gte !== void 0) {
|
|
3375
3552
|
queryArray.push(
|
|
@@ -3452,8 +3629,8 @@ var ApiKeysService = class extends Service {
|
|
|
3452
3629
|
if (ApiKeyListParams?.statusArray !== void 0) {
|
|
3453
3630
|
queryArray.push("statusArray=" + ApiKeyListParams.statusArray.join(","));
|
|
3454
3631
|
}
|
|
3455
|
-
if (ApiKeyListOptions?.
|
|
3456
|
-
queryArray.push("
|
|
3632
|
+
if (ApiKeyListOptions?.cursor !== void 0) {
|
|
3633
|
+
queryArray.push("cursor=" + ApiKeyListOptions.cursor);
|
|
3457
3634
|
}
|
|
3458
3635
|
return await super.sendRequest(
|
|
3459
3636
|
{
|
|
@@ -3530,8 +3707,8 @@ var ParametersService = class extends Service {
|
|
|
3530
3707
|
if (ParameterListParams?.propertyId !== void 0) {
|
|
3531
3708
|
queryArray.push("propertyId=" + ParameterListParams.propertyId);
|
|
3532
3709
|
}
|
|
3533
|
-
if (ParameterListOptions?.
|
|
3534
|
-
queryArray.push("
|
|
3710
|
+
if (ParameterListOptions?.cursor !== void 0) {
|
|
3711
|
+
queryArray.push("cursor=" + ParameterListOptions.cursor);
|
|
3535
3712
|
}
|
|
3536
3713
|
if (ParameterListOptions?.limit !== void 0) {
|
|
3537
3714
|
queryArray.push("limit=" + ParameterListOptions.limit);
|
|
@@ -3637,8 +3814,8 @@ var IncidentTemplatesService = class extends Service {
|
|
|
3637
3814
|
if (IncidentTemplateListParams?.propertyId !== void 0) {
|
|
3638
3815
|
queryArray.push("propertyId=" + IncidentTemplateListParams.propertyId);
|
|
3639
3816
|
}
|
|
3640
|
-
if (IncidentTemplateListOptions?.
|
|
3641
|
-
queryArray.push("
|
|
3817
|
+
if (IncidentTemplateListOptions?.cursor !== void 0) {
|
|
3818
|
+
queryArray.push("cursor=" + IncidentTemplateListOptions.cursor);
|
|
3642
3819
|
}
|
|
3643
3820
|
if (IncidentTemplateListOptions?.limit !== void 0) {
|
|
3644
3821
|
queryArray.push("limit=" + IncidentTemplateListOptions.limit);
|
|
@@ -3735,8 +3912,8 @@ var IncidentsService = class extends Service {
|
|
|
3735
3912
|
"statusArray=" + IncidentListParams.statusArray.join(",")
|
|
3736
3913
|
);
|
|
3737
3914
|
}
|
|
3738
|
-
if (IncidentListOptions?.
|
|
3739
|
-
queryArray.push("
|
|
3915
|
+
if (IncidentListOptions?.cursor !== void 0) {
|
|
3916
|
+
queryArray.push("cursor=" + IncidentListOptions.cursor);
|
|
3740
3917
|
}
|
|
3741
3918
|
if (IncidentListOptions?.limit !== void 0) {
|
|
3742
3919
|
queryArray.push("limit=" + IncidentListOptions.limit);
|
|
@@ -3832,8 +4009,8 @@ var ParameterAnomalyGroupsService = class extends Service {
|
|
|
3832
4009
|
"propertyId=" + ParameterAnomalyGroupListParams.propertyId
|
|
3833
4010
|
);
|
|
3834
4011
|
}
|
|
3835
|
-
if (ParameterAnomalyGroupListOptions?.
|
|
3836
|
-
queryArray.push("
|
|
4012
|
+
if (ParameterAnomalyGroupListOptions?.cursor !== void 0) {
|
|
4013
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupListOptions.cursor);
|
|
3837
4014
|
}
|
|
3838
4015
|
return await super.sendRequest(
|
|
3839
4016
|
{
|
|
@@ -3919,8 +4096,8 @@ var ParameterAnomalyGroupTrackersService = class extends Service {
|
|
|
3919
4096
|
"propertyId=" + ParameterAnomalyGroupTrackerListParams.propertyId
|
|
3920
4097
|
);
|
|
3921
4098
|
}
|
|
3922
|
-
if (ParameterAnomalyGroupTrackerListOptions?.
|
|
3923
|
-
queryArray.push("
|
|
4099
|
+
if (ParameterAnomalyGroupTrackerListOptions?.cursor !== void 0) {
|
|
4100
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupTrackerListOptions.cursor);
|
|
3924
4101
|
}
|
|
3925
4102
|
return await super.sendRequest(
|
|
3926
4103
|
{
|
|
@@ -4004,8 +4181,8 @@ var ParameterAnomalyGroupTrackerTracesService = class extends Service {
|
|
|
4004
4181
|
if (ParameterAnomalyGroupTrackerTraceListOptions?.limit !== void 0) {
|
|
4005
4182
|
queryArray.push("limit=" + ParameterAnomalyGroupTrackerTraceListOptions.limit);
|
|
4006
4183
|
}
|
|
4007
|
-
if (ParameterAnomalyGroupTrackerTraceListOptions?.
|
|
4008
|
-
queryArray.push("
|
|
4184
|
+
if (ParameterAnomalyGroupTrackerTraceListOptions?.cursor !== void 0) {
|
|
4185
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupTrackerTraceListOptions.cursor);
|
|
4009
4186
|
}
|
|
4010
4187
|
return await super.sendRequest(
|
|
4011
4188
|
{
|
|
@@ -4110,8 +4287,8 @@ var FlowsService = class extends Service {
|
|
|
4110
4287
|
if (FlowListOptions?.limit !== void 0) {
|
|
4111
4288
|
queryArray.push("limit=" + FlowListOptions.limit);
|
|
4112
4289
|
}
|
|
4113
|
-
if (FlowListOptions?.
|
|
4114
|
-
queryArray.push("
|
|
4290
|
+
if (FlowListOptions?.cursor !== void 0) {
|
|
4291
|
+
queryArray.push("cursor=" + FlowListOptions.cursor);
|
|
4115
4292
|
}
|
|
4116
4293
|
return await super.sendRequest(
|
|
4117
4294
|
{
|
|
@@ -4564,8 +4741,8 @@ var FlowTracesService = class extends Service {
|
|
|
4564
4741
|
if (FlowTraceListOptions?.limit !== void 0) {
|
|
4565
4742
|
queryArray.push("limit=" + FlowTraceListOptions.limit);
|
|
4566
4743
|
}
|
|
4567
|
-
if (FlowTraceListOptions?.
|
|
4568
|
-
queryArray.push("
|
|
4744
|
+
if (FlowTraceListOptions?.cursor !== void 0) {
|
|
4745
|
+
queryArray.push("cursor=" + FlowTraceListOptions.cursor);
|
|
4569
4746
|
}
|
|
4570
4747
|
return await super.sendRequest(
|
|
4571
4748
|
{
|
|
@@ -4621,8 +4798,8 @@ var MqttTopicsService = class extends Service {
|
|
|
4621
4798
|
if (options?.limit !== void 0) {
|
|
4622
4799
|
queryArray.push("limit=" + options.limit);
|
|
4623
4800
|
}
|
|
4624
|
-
if (options?.
|
|
4625
|
-
queryArray.push("
|
|
4801
|
+
if (options?.cursor !== void 0) {
|
|
4802
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4626
4803
|
}
|
|
4627
4804
|
return await super.sendRequest(
|
|
4628
4805
|
{
|
|
@@ -4711,8 +4888,8 @@ var LicensePlatesService = class extends Service {
|
|
|
4711
4888
|
if (options?.limit !== void 0) {
|
|
4712
4889
|
queryArray.push("limit=" + options.limit);
|
|
4713
4890
|
}
|
|
4714
|
-
if (options?.
|
|
4715
|
-
queryArray.push("
|
|
4891
|
+
if (options?.cursor !== void 0) {
|
|
4892
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4716
4893
|
}
|
|
4717
4894
|
return await super.sendRequest(
|
|
4718
4895
|
{
|
|
@@ -4805,8 +4982,8 @@ var VehiclesService = class extends Service {
|
|
|
4805
4982
|
if (options?.limit !== void 0) {
|
|
4806
4983
|
queryArray.push("limit=" + options.limit);
|
|
4807
4984
|
}
|
|
4808
|
-
if (options?.
|
|
4809
|
-
queryArray.push("
|
|
4985
|
+
if (options?.cursor !== void 0) {
|
|
4986
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4810
4987
|
}
|
|
4811
4988
|
return await super.sendRequest(
|
|
4812
4989
|
{
|
|
@@ -4915,8 +5092,8 @@ var OrdersService = class extends Service {
|
|
|
4915
5092
|
if (options?.limit !== void 0) {
|
|
4916
5093
|
queryArray.push("limit=" + options.limit);
|
|
4917
5094
|
}
|
|
4918
|
-
if (options?.
|
|
4919
|
-
queryArray.push("
|
|
5095
|
+
if (options?.cursor !== void 0) {
|
|
5096
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4920
5097
|
}
|
|
4921
5098
|
return await super.sendRequest(
|
|
4922
5099
|
{
|
|
@@ -5028,8 +5205,8 @@ var BasketsService = class extends Service {
|
|
|
5028
5205
|
if (options?.limit !== void 0) {
|
|
5029
5206
|
queryArray.push("limit=" + options.limit);
|
|
5030
5207
|
}
|
|
5031
|
-
if (options?.
|
|
5032
|
-
queryArray.push("
|
|
5208
|
+
if (options?.cursor !== void 0) {
|
|
5209
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5033
5210
|
}
|
|
5034
5211
|
return await super.sendRequest(
|
|
5035
5212
|
{
|
|
@@ -5130,8 +5307,8 @@ var BenefitCardsService = class extends Service {
|
|
|
5130
5307
|
if (options?.limit !== void 0) {
|
|
5131
5308
|
queryArray.push("limit=" + options.limit);
|
|
5132
5309
|
}
|
|
5133
|
-
if (options?.
|
|
5134
|
-
queryArray.push("
|
|
5310
|
+
if (options?.cursor !== void 0) {
|
|
5311
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5135
5312
|
}
|
|
5136
5313
|
return await super.sendRequest(
|
|
5137
5314
|
{
|
|
@@ -5670,8 +5847,8 @@ var PanelsService = class extends Service {
|
|
|
5670
5847
|
if (options?.limit !== void 0) {
|
|
5671
5848
|
queryArray.push("limit=" + options.limit);
|
|
5672
5849
|
}
|
|
5673
|
-
if (options?.
|
|
5674
|
-
queryArray.push("
|
|
5850
|
+
if (options?.cursor !== void 0) {
|
|
5851
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5675
5852
|
}
|
|
5676
5853
|
return await super.sendRequest(
|
|
5677
5854
|
{
|
|
@@ -5808,8 +5985,8 @@ var PricesService = class extends Service {
|
|
|
5808
5985
|
if (options?.limit !== void 0) {
|
|
5809
5986
|
queryArray.push("limit=" + options.limit);
|
|
5810
5987
|
}
|
|
5811
|
-
if (options?.
|
|
5812
|
-
queryArray.push("
|
|
5988
|
+
if (options?.cursor !== void 0) {
|
|
5989
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5813
5990
|
}
|
|
5814
5991
|
return await super.sendRequest(
|
|
5815
5992
|
{
|