@juhuu/sdk-ts 1.3.39 → 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 +257 -78
- package/dist/index.mjs +257 -78
- 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(
|
|
@@ -1420,7 +1468,9 @@ var PropertiesService = class extends Service {
|
|
|
1420
1468
|
faqUrl: PropertyUpdateParams.faqUrl,
|
|
1421
1469
|
colorScheme: PropertyUpdateParams.colorScheme,
|
|
1422
1470
|
contactUrl: PropertyUpdateParams.contactUrl,
|
|
1423
|
-
stripeEmail: PropertyUpdateParams.stripeEmail
|
|
1471
|
+
stripeEmail: PropertyUpdateParams.stripeEmail,
|
|
1472
|
+
payoutCurrencyCode: PropertyUpdateParams.payoutCurrencyCode,
|
|
1473
|
+
invoiceNumberPrefix: PropertyUpdateParams.invoiceNumberPrefix
|
|
1424
1474
|
},
|
|
1425
1475
|
authenticationNotOptional: true
|
|
1426
1476
|
},
|
|
@@ -1559,7 +1609,13 @@ var PointsService = class extends Service {
|
|
|
1559
1609
|
queryArray.push("pointClusterId=" + PointListParams.pointClusterId);
|
|
1560
1610
|
}
|
|
1561
1611
|
}
|
|
1562
|
-
|
|
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(
|
|
1563
1619
|
{
|
|
1564
1620
|
method: "GET",
|
|
1565
1621
|
url: "points?" + queryArray.join("&"),
|
|
@@ -1568,6 +1624,15 @@ var PointsService = class extends Service {
|
|
|
1568
1624
|
},
|
|
1569
1625
|
PointListOptions
|
|
1570
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;
|
|
1571
1636
|
}
|
|
1572
1637
|
async create(PointCreateParams, PointCreateOptions) {
|
|
1573
1638
|
return await super.sendRequest(
|
|
@@ -1803,8 +1868,8 @@ var DevicesService = class extends Service {
|
|
|
1803
1868
|
if (DeviceListOptions?.limit !== void 0) {
|
|
1804
1869
|
queryArray.push("limit=" + DeviceListOptions.limit);
|
|
1805
1870
|
}
|
|
1806
|
-
if (DeviceListOptions?.
|
|
1807
|
-
queryArray.push("
|
|
1871
|
+
if (DeviceListOptions?.cursor !== void 0) {
|
|
1872
|
+
queryArray.push("cursor=" + DeviceListOptions.cursor);
|
|
1808
1873
|
}
|
|
1809
1874
|
return await super.sendRequest(
|
|
1810
1875
|
{
|
|
@@ -1921,7 +1986,13 @@ var DeviceTemplatesService = class extends Service {
|
|
|
1921
1986
|
if (DeviceTemplateListParams?.propertyId !== void 0) {
|
|
1922
1987
|
queryArray.push("propertyId=" + DeviceTemplateListParams.propertyId);
|
|
1923
1988
|
}
|
|
1924
|
-
|
|
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(
|
|
1925
1996
|
{
|
|
1926
1997
|
method: "GET",
|
|
1927
1998
|
url: "deviceTemplates?" + queryArray.join("&"),
|
|
@@ -1930,6 +2001,15 @@ var DeviceTemplatesService = class extends Service {
|
|
|
1930
2001
|
},
|
|
1931
2002
|
DeviceTemplateListOptions
|
|
1932
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;
|
|
1933
2013
|
}
|
|
1934
2014
|
async delete(DeviceTemplateDeleteParams, DeviceTemplateDeleteOptions) {
|
|
1935
2015
|
return await super.sendRequest(
|
|
@@ -1993,7 +2073,13 @@ var LocationsService = class extends Service {
|
|
|
1993
2073
|
if (LocationListParams?.visible !== void 0) {
|
|
1994
2074
|
queryArray.push("visible=" + LocationListParams.visible);
|
|
1995
2075
|
}
|
|
1996
|
-
|
|
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(
|
|
1997
2083
|
{
|
|
1998
2084
|
method: "GET",
|
|
1999
2085
|
url: "locations?" + queryArray.join("&"),
|
|
@@ -2002,6 +2088,15 @@ var LocationsService = class extends Service {
|
|
|
2002
2088
|
},
|
|
2003
2089
|
LocationListOptions
|
|
2004
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;
|
|
2005
2100
|
}
|
|
2006
2101
|
async update(LocationUpdateParams, LocationUpdateOptions) {
|
|
2007
2102
|
return await super.sendRequest(
|
|
@@ -2090,7 +2185,13 @@ var TermsService = class extends Service {
|
|
|
2090
2185
|
if (TermListParams?.propertyId !== void 0) {
|
|
2091
2186
|
queryArray.push("propertyId=" + TermListParams.propertyId);
|
|
2092
2187
|
}
|
|
2093
|
-
|
|
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(
|
|
2094
2195
|
{
|
|
2095
2196
|
method: "GET",
|
|
2096
2197
|
url: "terms?" + queryArray.join("&"),
|
|
@@ -2099,6 +2200,15 @@ var TermsService = class extends Service {
|
|
|
2099
2200
|
},
|
|
2100
2201
|
TermListOptions
|
|
2101
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;
|
|
2102
2212
|
}
|
|
2103
2213
|
async update(TermUpdateParams, TermUpdateOptions) {
|
|
2104
2214
|
return await super.sendRequest(
|
|
@@ -2186,7 +2296,13 @@ var TariffsService = class extends Service {
|
|
|
2186
2296
|
if (TariffListParams?.propertyId !== void 0) {
|
|
2187
2297
|
queryArray.push("propertyId=" + TariffListParams.propertyId);
|
|
2188
2298
|
}
|
|
2189
|
-
|
|
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(
|
|
2190
2306
|
{
|
|
2191
2307
|
method: "GET",
|
|
2192
2308
|
url: "tariffs?" + queryArray.join("&"),
|
|
@@ -2195,6 +2311,15 @@ var TariffsService = class extends Service {
|
|
|
2195
2311
|
},
|
|
2196
2312
|
TariffListOptions
|
|
2197
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;
|
|
2198
2323
|
}
|
|
2199
2324
|
async update(TariffUpdateParams, TariffUpdateOptions) {
|
|
2200
2325
|
return await super.sendRequest(
|
|
@@ -2344,7 +2469,13 @@ var ProductService = class extends Service {
|
|
|
2344
2469
|
if (ProductListParams?.propertyId !== void 0) {
|
|
2345
2470
|
queryArray.push("propertyId=" + ProductListParams.propertyId);
|
|
2346
2471
|
}
|
|
2347
|
-
|
|
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(
|
|
2348
2479
|
{
|
|
2349
2480
|
method: "GET",
|
|
2350
2481
|
url: "products?" + queryArray.join("&"),
|
|
@@ -2353,6 +2484,15 @@ var ProductService = class extends Service {
|
|
|
2353
2484
|
},
|
|
2354
2485
|
ProductListOptions
|
|
2355
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;
|
|
2356
2496
|
}
|
|
2357
2497
|
async retrieve(params, options) {
|
|
2358
2498
|
const queryArray = [];
|
|
@@ -2587,7 +2727,13 @@ var AccountingAreasService = class extends Service {
|
|
|
2587
2727
|
if (AccountingAreaListParams?.propertyId !== void 0) {
|
|
2588
2728
|
queryArray.push("propertyId=" + AccountingAreaListParams.propertyId);
|
|
2589
2729
|
}
|
|
2590
|
-
|
|
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(
|
|
2591
2737
|
{
|
|
2592
2738
|
method: "GET",
|
|
2593
2739
|
url: "accountingAreas?" + queryArray.join("&"),
|
|
@@ -2596,6 +2742,15 @@ var AccountingAreasService = class extends Service {
|
|
|
2596
2742
|
},
|
|
2597
2743
|
AccountingAreaListOptions
|
|
2598
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;
|
|
2599
2754
|
}
|
|
2600
2755
|
async update(AccountingAreaUpdateParams, AccountingAreaUpdateOptions) {
|
|
2601
2756
|
return await super.sendRequest(
|
|
@@ -2666,7 +2821,13 @@ var PayoutsService = class extends Service {
|
|
|
2666
2821
|
if (PayoutListParams?.propertyId !== void 0) {
|
|
2667
2822
|
queryArray.push("propertyId=" + PayoutListParams.propertyId);
|
|
2668
2823
|
}
|
|
2669
|
-
|
|
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(
|
|
2670
2831
|
{
|
|
2671
2832
|
method: "GET",
|
|
2672
2833
|
url: "payouts?" + queryArray.join("&"),
|
|
@@ -2675,6 +2836,15 @@ var PayoutsService = class extends Service {
|
|
|
2675
2836
|
},
|
|
2676
2837
|
PayoutListOptions
|
|
2677
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;
|
|
2678
2848
|
}
|
|
2679
2849
|
};
|
|
2680
2850
|
|
|
@@ -2802,8 +2972,8 @@ var ArticlesService = class extends Service {
|
|
|
2802
2972
|
if (ArticleListParams?.statusArray !== void 0) {
|
|
2803
2973
|
queryArray.push("statusArray=" + ArticleListParams.statusArray.join(","));
|
|
2804
2974
|
}
|
|
2805
|
-
if (ArticleListOptions?.
|
|
2806
|
-
queryArray.push("
|
|
2975
|
+
if (ArticleListOptions?.cursor !== void 0) {
|
|
2976
|
+
queryArray.push("cursor=" + ArticleListOptions.cursor);
|
|
2807
2977
|
}
|
|
2808
2978
|
if (ArticleListOptions?.limit !== void 0) {
|
|
2809
2979
|
queryArray.push("limit=" + ArticleListOptions.limit);
|
|
@@ -2940,8 +3110,8 @@ var ChatsService = class extends Service {
|
|
|
2940
3110
|
if (ChatListParams?.userId !== void 0) {
|
|
2941
3111
|
queryArray.push("userId=" + ChatListParams.userId);
|
|
2942
3112
|
}
|
|
2943
|
-
if (ChatListOptions?.
|
|
2944
|
-
queryArray.push("
|
|
3113
|
+
if (ChatListOptions?.cursor !== void 0) {
|
|
3114
|
+
queryArray.push("cursor=" + ChatListOptions.cursor);
|
|
2945
3115
|
}
|
|
2946
3116
|
return await super.sendRequest(
|
|
2947
3117
|
{
|
|
@@ -3039,11 +3209,11 @@ var ChatMessagesService = class extends Service {
|
|
|
3039
3209
|
if (ChatMessageListParams.chatId !== void 0) {
|
|
3040
3210
|
queryArray.push("chatId=" + ChatMessageListParams.chatId);
|
|
3041
3211
|
}
|
|
3042
|
-
if (
|
|
3043
|
-
queryArray.push("limit=" +
|
|
3212
|
+
if (ChatMessageListOptions?.limit !== void 0) {
|
|
3213
|
+
queryArray.push("limit=" + ChatMessageListOptions.limit);
|
|
3044
3214
|
}
|
|
3045
|
-
if (
|
|
3046
|
-
queryArray.push("
|
|
3215
|
+
if (ChatMessageListOptions?.cursor !== void 0) {
|
|
3216
|
+
queryArray.push("cursor=" + ChatMessageListOptions.cursor);
|
|
3047
3217
|
}
|
|
3048
3218
|
return await super.sendRequest(
|
|
3049
3219
|
{
|
|
@@ -3108,8 +3278,8 @@ var ArticleEmbeddingsService = class extends Service {
|
|
|
3108
3278
|
if (ArticleEmbeddingListParams?.articleId !== void 0) {
|
|
3109
3279
|
queryArray.push("articleId=" + ArticleEmbeddingListParams.articleId);
|
|
3110
3280
|
}
|
|
3111
|
-
if (ArticleEmbeddingListOptions?.
|
|
3112
|
-
queryArray.push("
|
|
3281
|
+
if (ArticleEmbeddingListOptions?.cursor !== void 0) {
|
|
3282
|
+
queryArray.push("cursor=" + ArticleEmbeddingListOptions.cursor);
|
|
3113
3283
|
}
|
|
3114
3284
|
return await super.sendRequest(
|
|
3115
3285
|
{
|
|
@@ -3222,16 +3392,16 @@ var PaymentRefundsService = class extends Service {
|
|
|
3222
3392
|
"createdAt[lte]=" + PaymentRefundListParams.createdAt.lte
|
|
3223
3393
|
);
|
|
3224
3394
|
}
|
|
3225
|
-
if (
|
|
3226
|
-
queryArray.push("limit=" +
|
|
3395
|
+
if (PaymentRefundListOptions?.limit !== void 0) {
|
|
3396
|
+
queryArray.push("limit=" + PaymentRefundListOptions.limit);
|
|
3227
3397
|
}
|
|
3228
|
-
if (
|
|
3229
|
-
queryArray.push("
|
|
3398
|
+
if (PaymentRefundListOptions?.cursor !== void 0) {
|
|
3399
|
+
queryArray.push("cursor=" + PaymentRefundListOptions.cursor);
|
|
3230
3400
|
}
|
|
3231
3401
|
if (PaymentRefundListParams.paymentId !== void 0) {
|
|
3232
3402
|
queryArray.push("paymentId=" + PaymentRefundListParams.paymentId);
|
|
3233
3403
|
}
|
|
3234
|
-
|
|
3404
|
+
const response = await super.sendRequest(
|
|
3235
3405
|
{
|
|
3236
3406
|
method: "GET",
|
|
3237
3407
|
url: "paymentRefunds?" + queryArray.join("&"),
|
|
@@ -3240,6 +3410,15 @@ var PaymentRefundsService = class extends Service {
|
|
|
3240
3410
|
},
|
|
3241
3411
|
PaymentRefundListOptions
|
|
3242
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;
|
|
3243
3422
|
}
|
|
3244
3423
|
async retrieve(PaymentRefundRetrieveParams, PaymentRefundRetrieveOptions) {
|
|
3245
3424
|
const queryArray = [];
|
|
@@ -3299,8 +3478,8 @@ var ArticleGroupGroupsService = class extends Service {
|
|
|
3299
3478
|
if (ArticleGroupListOptions?.limit !== void 0) {
|
|
3300
3479
|
queryArray.push("limit=" + ArticleGroupListOptions.limit);
|
|
3301
3480
|
}
|
|
3302
|
-
if (ArticleGroupListOptions?.
|
|
3303
|
-
queryArray.push("
|
|
3481
|
+
if (ArticleGroupListOptions?.cursor !== void 0) {
|
|
3482
|
+
queryArray.push("cursor=" + ArticleGroupListOptions.cursor);
|
|
3304
3483
|
}
|
|
3305
3484
|
return await super.sendRequest(
|
|
3306
3485
|
{
|
|
@@ -3366,8 +3545,8 @@ var ParameterHistoriesService = class extends Service {
|
|
|
3366
3545
|
if (ParameterHistoryListParams?.parameterId !== void 0) {
|
|
3367
3546
|
queryArray.push("parameterId=" + ParameterHistoryListParams.parameterId);
|
|
3368
3547
|
}
|
|
3369
|
-
if (
|
|
3370
|
-
queryArray.push("cursor=" +
|
|
3548
|
+
if (ParameterHistoryListOptions?.cursor !== void 0) {
|
|
3549
|
+
queryArray.push("cursor=" + ParameterHistoryListOptions.cursor);
|
|
3371
3550
|
}
|
|
3372
3551
|
if (ParameterHistoryListParams?.createdAt?.gte !== void 0) {
|
|
3373
3552
|
queryArray.push(
|
|
@@ -3450,8 +3629,8 @@ var ApiKeysService = class extends Service {
|
|
|
3450
3629
|
if (ApiKeyListParams?.statusArray !== void 0) {
|
|
3451
3630
|
queryArray.push("statusArray=" + ApiKeyListParams.statusArray.join(","));
|
|
3452
3631
|
}
|
|
3453
|
-
if (ApiKeyListOptions?.
|
|
3454
|
-
queryArray.push("
|
|
3632
|
+
if (ApiKeyListOptions?.cursor !== void 0) {
|
|
3633
|
+
queryArray.push("cursor=" + ApiKeyListOptions.cursor);
|
|
3455
3634
|
}
|
|
3456
3635
|
return await super.sendRequest(
|
|
3457
3636
|
{
|
|
@@ -3528,8 +3707,8 @@ var ParametersService = class extends Service {
|
|
|
3528
3707
|
if (ParameterListParams?.propertyId !== void 0) {
|
|
3529
3708
|
queryArray.push("propertyId=" + ParameterListParams.propertyId);
|
|
3530
3709
|
}
|
|
3531
|
-
if (ParameterListOptions?.
|
|
3532
|
-
queryArray.push("
|
|
3710
|
+
if (ParameterListOptions?.cursor !== void 0) {
|
|
3711
|
+
queryArray.push("cursor=" + ParameterListOptions.cursor);
|
|
3533
3712
|
}
|
|
3534
3713
|
if (ParameterListOptions?.limit !== void 0) {
|
|
3535
3714
|
queryArray.push("limit=" + ParameterListOptions.limit);
|
|
@@ -3635,8 +3814,8 @@ var IncidentTemplatesService = class extends Service {
|
|
|
3635
3814
|
if (IncidentTemplateListParams?.propertyId !== void 0) {
|
|
3636
3815
|
queryArray.push("propertyId=" + IncidentTemplateListParams.propertyId);
|
|
3637
3816
|
}
|
|
3638
|
-
if (IncidentTemplateListOptions?.
|
|
3639
|
-
queryArray.push("
|
|
3817
|
+
if (IncidentTemplateListOptions?.cursor !== void 0) {
|
|
3818
|
+
queryArray.push("cursor=" + IncidentTemplateListOptions.cursor);
|
|
3640
3819
|
}
|
|
3641
3820
|
if (IncidentTemplateListOptions?.limit !== void 0) {
|
|
3642
3821
|
queryArray.push("limit=" + IncidentTemplateListOptions.limit);
|
|
@@ -3733,8 +3912,8 @@ var IncidentsService = class extends Service {
|
|
|
3733
3912
|
"statusArray=" + IncidentListParams.statusArray.join(",")
|
|
3734
3913
|
);
|
|
3735
3914
|
}
|
|
3736
|
-
if (IncidentListOptions?.
|
|
3737
|
-
queryArray.push("
|
|
3915
|
+
if (IncidentListOptions?.cursor !== void 0) {
|
|
3916
|
+
queryArray.push("cursor=" + IncidentListOptions.cursor);
|
|
3738
3917
|
}
|
|
3739
3918
|
if (IncidentListOptions?.limit !== void 0) {
|
|
3740
3919
|
queryArray.push("limit=" + IncidentListOptions.limit);
|
|
@@ -3830,8 +4009,8 @@ var ParameterAnomalyGroupsService = class extends Service {
|
|
|
3830
4009
|
"propertyId=" + ParameterAnomalyGroupListParams.propertyId
|
|
3831
4010
|
);
|
|
3832
4011
|
}
|
|
3833
|
-
if (ParameterAnomalyGroupListOptions?.
|
|
3834
|
-
queryArray.push("
|
|
4012
|
+
if (ParameterAnomalyGroupListOptions?.cursor !== void 0) {
|
|
4013
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupListOptions.cursor);
|
|
3835
4014
|
}
|
|
3836
4015
|
return await super.sendRequest(
|
|
3837
4016
|
{
|
|
@@ -3917,8 +4096,8 @@ var ParameterAnomalyGroupTrackersService = class extends Service {
|
|
|
3917
4096
|
"propertyId=" + ParameterAnomalyGroupTrackerListParams.propertyId
|
|
3918
4097
|
);
|
|
3919
4098
|
}
|
|
3920
|
-
if (ParameterAnomalyGroupTrackerListOptions?.
|
|
3921
|
-
queryArray.push("
|
|
4099
|
+
if (ParameterAnomalyGroupTrackerListOptions?.cursor !== void 0) {
|
|
4100
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupTrackerListOptions.cursor);
|
|
3922
4101
|
}
|
|
3923
4102
|
return await super.sendRequest(
|
|
3924
4103
|
{
|
|
@@ -4002,8 +4181,8 @@ var ParameterAnomalyGroupTrackerTracesService = class extends Service {
|
|
|
4002
4181
|
if (ParameterAnomalyGroupTrackerTraceListOptions?.limit !== void 0) {
|
|
4003
4182
|
queryArray.push("limit=" + ParameterAnomalyGroupTrackerTraceListOptions.limit);
|
|
4004
4183
|
}
|
|
4005
|
-
if (ParameterAnomalyGroupTrackerTraceListOptions?.
|
|
4006
|
-
queryArray.push("
|
|
4184
|
+
if (ParameterAnomalyGroupTrackerTraceListOptions?.cursor !== void 0) {
|
|
4185
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupTrackerTraceListOptions.cursor);
|
|
4007
4186
|
}
|
|
4008
4187
|
return await super.sendRequest(
|
|
4009
4188
|
{
|
|
@@ -4108,8 +4287,8 @@ var FlowsService = class extends Service {
|
|
|
4108
4287
|
if (FlowListOptions?.limit !== void 0) {
|
|
4109
4288
|
queryArray.push("limit=" + FlowListOptions.limit);
|
|
4110
4289
|
}
|
|
4111
|
-
if (FlowListOptions?.
|
|
4112
|
-
queryArray.push("
|
|
4290
|
+
if (FlowListOptions?.cursor !== void 0) {
|
|
4291
|
+
queryArray.push("cursor=" + FlowListOptions.cursor);
|
|
4113
4292
|
}
|
|
4114
4293
|
return await super.sendRequest(
|
|
4115
4294
|
{
|
|
@@ -4562,8 +4741,8 @@ var FlowTracesService = class extends Service {
|
|
|
4562
4741
|
if (FlowTraceListOptions?.limit !== void 0) {
|
|
4563
4742
|
queryArray.push("limit=" + FlowTraceListOptions.limit);
|
|
4564
4743
|
}
|
|
4565
|
-
if (FlowTraceListOptions?.
|
|
4566
|
-
queryArray.push("
|
|
4744
|
+
if (FlowTraceListOptions?.cursor !== void 0) {
|
|
4745
|
+
queryArray.push("cursor=" + FlowTraceListOptions.cursor);
|
|
4567
4746
|
}
|
|
4568
4747
|
return await super.sendRequest(
|
|
4569
4748
|
{
|
|
@@ -4619,8 +4798,8 @@ var MqttTopicsService = class extends Service {
|
|
|
4619
4798
|
if (options?.limit !== void 0) {
|
|
4620
4799
|
queryArray.push("limit=" + options.limit);
|
|
4621
4800
|
}
|
|
4622
|
-
if (options?.
|
|
4623
|
-
queryArray.push("
|
|
4801
|
+
if (options?.cursor !== void 0) {
|
|
4802
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4624
4803
|
}
|
|
4625
4804
|
return await super.sendRequest(
|
|
4626
4805
|
{
|
|
@@ -4709,8 +4888,8 @@ var LicensePlatesService = class extends Service {
|
|
|
4709
4888
|
if (options?.limit !== void 0) {
|
|
4710
4889
|
queryArray.push("limit=" + options.limit);
|
|
4711
4890
|
}
|
|
4712
|
-
if (options?.
|
|
4713
|
-
queryArray.push("
|
|
4891
|
+
if (options?.cursor !== void 0) {
|
|
4892
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4714
4893
|
}
|
|
4715
4894
|
return await super.sendRequest(
|
|
4716
4895
|
{
|
|
@@ -4803,8 +4982,8 @@ var VehiclesService = class extends Service {
|
|
|
4803
4982
|
if (options?.limit !== void 0) {
|
|
4804
4983
|
queryArray.push("limit=" + options.limit);
|
|
4805
4984
|
}
|
|
4806
|
-
if (options?.
|
|
4807
|
-
queryArray.push("
|
|
4985
|
+
if (options?.cursor !== void 0) {
|
|
4986
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4808
4987
|
}
|
|
4809
4988
|
return await super.sendRequest(
|
|
4810
4989
|
{
|
|
@@ -4913,8 +5092,8 @@ var OrdersService = class extends Service {
|
|
|
4913
5092
|
if (options?.limit !== void 0) {
|
|
4914
5093
|
queryArray.push("limit=" + options.limit);
|
|
4915
5094
|
}
|
|
4916
|
-
if (options?.
|
|
4917
|
-
queryArray.push("
|
|
5095
|
+
if (options?.cursor !== void 0) {
|
|
5096
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4918
5097
|
}
|
|
4919
5098
|
return await super.sendRequest(
|
|
4920
5099
|
{
|
|
@@ -5026,8 +5205,8 @@ var BasketsService = class extends Service {
|
|
|
5026
5205
|
if (options?.limit !== void 0) {
|
|
5027
5206
|
queryArray.push("limit=" + options.limit);
|
|
5028
5207
|
}
|
|
5029
|
-
if (options?.
|
|
5030
|
-
queryArray.push("
|
|
5208
|
+
if (options?.cursor !== void 0) {
|
|
5209
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5031
5210
|
}
|
|
5032
5211
|
return await super.sendRequest(
|
|
5033
5212
|
{
|
|
@@ -5128,8 +5307,8 @@ var BenefitCardsService = class extends Service {
|
|
|
5128
5307
|
if (options?.limit !== void 0) {
|
|
5129
5308
|
queryArray.push("limit=" + options.limit);
|
|
5130
5309
|
}
|
|
5131
|
-
if (options?.
|
|
5132
|
-
queryArray.push("
|
|
5310
|
+
if (options?.cursor !== void 0) {
|
|
5311
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5133
5312
|
}
|
|
5134
5313
|
return await super.sendRequest(
|
|
5135
5314
|
{
|
|
@@ -5668,8 +5847,8 @@ var PanelsService = class extends Service {
|
|
|
5668
5847
|
if (options?.limit !== void 0) {
|
|
5669
5848
|
queryArray.push("limit=" + options.limit);
|
|
5670
5849
|
}
|
|
5671
|
-
if (options?.
|
|
5672
|
-
queryArray.push("
|
|
5850
|
+
if (options?.cursor !== void 0) {
|
|
5851
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5673
5852
|
}
|
|
5674
5853
|
return await super.sendRequest(
|
|
5675
5854
|
{
|
|
@@ -5806,8 +5985,8 @@ var PricesService = class extends Service {
|
|
|
5806
5985
|
if (options?.limit !== void 0) {
|
|
5807
5986
|
queryArray.push("limit=" + options.limit);
|
|
5808
5987
|
}
|
|
5809
|
-
if (options?.
|
|
5810
|
-
queryArray.push("
|
|
5988
|
+
if (options?.cursor !== void 0) {
|
|
5989
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5811
5990
|
}
|
|
5812
5991
|
return await super.sendRequest(
|
|
5813
5992
|
{
|