@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.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(
|
|
@@ -1464,7 +1512,9 @@ var PropertiesService = class extends Service {
|
|
|
1464
1512
|
faqUrl: PropertyUpdateParams.faqUrl,
|
|
1465
1513
|
colorScheme: PropertyUpdateParams.colorScheme,
|
|
1466
1514
|
contactUrl: PropertyUpdateParams.contactUrl,
|
|
1467
|
-
stripeEmail: PropertyUpdateParams.stripeEmail
|
|
1515
|
+
stripeEmail: PropertyUpdateParams.stripeEmail,
|
|
1516
|
+
payoutCurrencyCode: PropertyUpdateParams.payoutCurrencyCode,
|
|
1517
|
+
invoiceNumberPrefix: PropertyUpdateParams.invoiceNumberPrefix
|
|
1468
1518
|
},
|
|
1469
1519
|
authenticationNotOptional: true
|
|
1470
1520
|
},
|
|
@@ -1603,7 +1653,13 @@ var PointsService = class extends Service {
|
|
|
1603
1653
|
queryArray.push("pointClusterId=" + PointListParams.pointClusterId);
|
|
1604
1654
|
}
|
|
1605
1655
|
}
|
|
1606
|
-
|
|
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(
|
|
1607
1663
|
{
|
|
1608
1664
|
method: "GET",
|
|
1609
1665
|
url: "points?" + queryArray.join("&"),
|
|
@@ -1612,6 +1668,15 @@ var PointsService = class extends Service {
|
|
|
1612
1668
|
},
|
|
1613
1669
|
PointListOptions
|
|
1614
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;
|
|
1615
1680
|
}
|
|
1616
1681
|
async create(PointCreateParams, PointCreateOptions) {
|
|
1617
1682
|
return await super.sendRequest(
|
|
@@ -1847,8 +1912,8 @@ var DevicesService = class extends Service {
|
|
|
1847
1912
|
if (DeviceListOptions?.limit !== void 0) {
|
|
1848
1913
|
queryArray.push("limit=" + DeviceListOptions.limit);
|
|
1849
1914
|
}
|
|
1850
|
-
if (DeviceListOptions?.
|
|
1851
|
-
queryArray.push("
|
|
1915
|
+
if (DeviceListOptions?.cursor !== void 0) {
|
|
1916
|
+
queryArray.push("cursor=" + DeviceListOptions.cursor);
|
|
1852
1917
|
}
|
|
1853
1918
|
return await super.sendRequest(
|
|
1854
1919
|
{
|
|
@@ -1965,7 +2030,13 @@ var DeviceTemplatesService = class extends Service {
|
|
|
1965
2030
|
if (DeviceTemplateListParams?.propertyId !== void 0) {
|
|
1966
2031
|
queryArray.push("propertyId=" + DeviceTemplateListParams.propertyId);
|
|
1967
2032
|
}
|
|
1968
|
-
|
|
2033
|
+
if (DeviceTemplateListOptions?.limit !== void 0) {
|
|
2034
|
+
queryArray.push("limit=" + DeviceTemplateListOptions.limit);
|
|
2035
|
+
}
|
|
2036
|
+
if (DeviceTemplateListOptions?.cursor !== void 0) {
|
|
2037
|
+
queryArray.push("cursor=" + DeviceTemplateListOptions.cursor);
|
|
2038
|
+
}
|
|
2039
|
+
const response = await super.sendRequest(
|
|
1969
2040
|
{
|
|
1970
2041
|
method: "GET",
|
|
1971
2042
|
url: "deviceTemplates?" + queryArray.join("&"),
|
|
@@ -1974,6 +2045,15 @@ var DeviceTemplatesService = class extends Service {
|
|
|
1974
2045
|
},
|
|
1975
2046
|
DeviceTemplateListOptions
|
|
1976
2047
|
);
|
|
2048
|
+
if (Array.isArray(response.data)) {
|
|
2049
|
+
response.data = {
|
|
2050
|
+
deviceTemplateArray: response.data,
|
|
2051
|
+
count: response.data.length,
|
|
2052
|
+
hasMore: false,
|
|
2053
|
+
cursor: null
|
|
2054
|
+
};
|
|
2055
|
+
}
|
|
2056
|
+
return response;
|
|
1977
2057
|
}
|
|
1978
2058
|
async delete(DeviceTemplateDeleteParams, DeviceTemplateDeleteOptions) {
|
|
1979
2059
|
return await super.sendRequest(
|
|
@@ -2037,7 +2117,13 @@ var LocationsService = class extends Service {
|
|
|
2037
2117
|
if (LocationListParams?.visible !== void 0) {
|
|
2038
2118
|
queryArray.push("visible=" + LocationListParams.visible);
|
|
2039
2119
|
}
|
|
2040
|
-
|
|
2120
|
+
if (LocationListOptions?.limit !== void 0) {
|
|
2121
|
+
queryArray.push("limit=" + LocationListOptions.limit);
|
|
2122
|
+
}
|
|
2123
|
+
if (LocationListOptions?.cursor !== void 0) {
|
|
2124
|
+
queryArray.push("cursor=" + LocationListOptions.cursor);
|
|
2125
|
+
}
|
|
2126
|
+
const response = await super.sendRequest(
|
|
2041
2127
|
{
|
|
2042
2128
|
method: "GET",
|
|
2043
2129
|
url: "locations?" + queryArray.join("&"),
|
|
@@ -2046,6 +2132,15 @@ var LocationsService = class extends Service {
|
|
|
2046
2132
|
},
|
|
2047
2133
|
LocationListOptions
|
|
2048
2134
|
);
|
|
2135
|
+
if (Array.isArray(response.data)) {
|
|
2136
|
+
response.data = {
|
|
2137
|
+
locationArray: response.data,
|
|
2138
|
+
count: response.data.length,
|
|
2139
|
+
hasMore: false,
|
|
2140
|
+
cursor: null
|
|
2141
|
+
};
|
|
2142
|
+
}
|
|
2143
|
+
return response;
|
|
2049
2144
|
}
|
|
2050
2145
|
async update(LocationUpdateParams, LocationUpdateOptions) {
|
|
2051
2146
|
return await super.sendRequest(
|
|
@@ -2134,7 +2229,13 @@ var TermsService = class extends Service {
|
|
|
2134
2229
|
if (TermListParams?.propertyId !== void 0) {
|
|
2135
2230
|
queryArray.push("propertyId=" + TermListParams.propertyId);
|
|
2136
2231
|
}
|
|
2137
|
-
|
|
2232
|
+
if (TermListOptions?.limit !== void 0) {
|
|
2233
|
+
queryArray.push("limit=" + TermListOptions.limit);
|
|
2234
|
+
}
|
|
2235
|
+
if (TermListOptions?.cursor !== void 0) {
|
|
2236
|
+
queryArray.push("cursor=" + TermListOptions.cursor);
|
|
2237
|
+
}
|
|
2238
|
+
const response = await super.sendRequest(
|
|
2138
2239
|
{
|
|
2139
2240
|
method: "GET",
|
|
2140
2241
|
url: "terms?" + queryArray.join("&"),
|
|
@@ -2143,6 +2244,15 @@ var TermsService = class extends Service {
|
|
|
2143
2244
|
},
|
|
2144
2245
|
TermListOptions
|
|
2145
2246
|
);
|
|
2247
|
+
if (Array.isArray(response.data)) {
|
|
2248
|
+
response.data = {
|
|
2249
|
+
termArray: response.data,
|
|
2250
|
+
count: response.data.length,
|
|
2251
|
+
hasMore: false,
|
|
2252
|
+
cursor: null
|
|
2253
|
+
};
|
|
2254
|
+
}
|
|
2255
|
+
return response;
|
|
2146
2256
|
}
|
|
2147
2257
|
async update(TermUpdateParams, TermUpdateOptions) {
|
|
2148
2258
|
return await super.sendRequest(
|
|
@@ -2230,7 +2340,13 @@ var TariffsService = class extends Service {
|
|
|
2230
2340
|
if (TariffListParams?.propertyId !== void 0) {
|
|
2231
2341
|
queryArray.push("propertyId=" + TariffListParams.propertyId);
|
|
2232
2342
|
}
|
|
2233
|
-
|
|
2343
|
+
if (TariffListOptions?.limit !== void 0) {
|
|
2344
|
+
queryArray.push("limit=" + TariffListOptions.limit);
|
|
2345
|
+
}
|
|
2346
|
+
if (TariffListOptions?.cursor !== void 0) {
|
|
2347
|
+
queryArray.push("cursor=" + TariffListOptions.cursor);
|
|
2348
|
+
}
|
|
2349
|
+
const response = await super.sendRequest(
|
|
2234
2350
|
{
|
|
2235
2351
|
method: "GET",
|
|
2236
2352
|
url: "tariffs?" + queryArray.join("&"),
|
|
@@ -2239,6 +2355,15 @@ var TariffsService = class extends Service {
|
|
|
2239
2355
|
},
|
|
2240
2356
|
TariffListOptions
|
|
2241
2357
|
);
|
|
2358
|
+
if (Array.isArray(response.data)) {
|
|
2359
|
+
response.data = {
|
|
2360
|
+
tariffArray: response.data,
|
|
2361
|
+
count: response.data.length,
|
|
2362
|
+
hasMore: false,
|
|
2363
|
+
cursor: null
|
|
2364
|
+
};
|
|
2365
|
+
}
|
|
2366
|
+
return response;
|
|
2242
2367
|
}
|
|
2243
2368
|
async update(TariffUpdateParams, TariffUpdateOptions) {
|
|
2244
2369
|
return await super.sendRequest(
|
|
@@ -2388,7 +2513,13 @@ var ProductService = class extends Service {
|
|
|
2388
2513
|
if (ProductListParams?.propertyId !== void 0) {
|
|
2389
2514
|
queryArray.push("propertyId=" + ProductListParams.propertyId);
|
|
2390
2515
|
}
|
|
2391
|
-
|
|
2516
|
+
if (ProductListOptions?.limit !== void 0) {
|
|
2517
|
+
queryArray.push("limit=" + ProductListOptions.limit);
|
|
2518
|
+
}
|
|
2519
|
+
if (ProductListOptions?.cursor !== void 0) {
|
|
2520
|
+
queryArray.push("cursor=" + ProductListOptions.cursor);
|
|
2521
|
+
}
|
|
2522
|
+
const response = await super.sendRequest(
|
|
2392
2523
|
{
|
|
2393
2524
|
method: "GET",
|
|
2394
2525
|
url: "products?" + queryArray.join("&"),
|
|
@@ -2397,6 +2528,15 @@ var ProductService = class extends Service {
|
|
|
2397
2528
|
},
|
|
2398
2529
|
ProductListOptions
|
|
2399
2530
|
);
|
|
2531
|
+
if (Array.isArray(response.data)) {
|
|
2532
|
+
response.data = {
|
|
2533
|
+
productArray: response.data,
|
|
2534
|
+
count: response.data.length,
|
|
2535
|
+
hasMore: false,
|
|
2536
|
+
cursor: null
|
|
2537
|
+
};
|
|
2538
|
+
}
|
|
2539
|
+
return response;
|
|
2400
2540
|
}
|
|
2401
2541
|
async retrieve(params, options) {
|
|
2402
2542
|
const queryArray = [];
|
|
@@ -2631,7 +2771,13 @@ var AccountingAreasService = class extends Service {
|
|
|
2631
2771
|
if (AccountingAreaListParams?.propertyId !== void 0) {
|
|
2632
2772
|
queryArray.push("propertyId=" + AccountingAreaListParams.propertyId);
|
|
2633
2773
|
}
|
|
2634
|
-
|
|
2774
|
+
if (AccountingAreaListOptions?.limit !== void 0) {
|
|
2775
|
+
queryArray.push("limit=" + AccountingAreaListOptions.limit);
|
|
2776
|
+
}
|
|
2777
|
+
if (AccountingAreaListOptions?.cursor !== void 0) {
|
|
2778
|
+
queryArray.push("cursor=" + AccountingAreaListOptions.cursor);
|
|
2779
|
+
}
|
|
2780
|
+
const response = await super.sendRequest(
|
|
2635
2781
|
{
|
|
2636
2782
|
method: "GET",
|
|
2637
2783
|
url: "accountingAreas?" + queryArray.join("&"),
|
|
@@ -2640,6 +2786,15 @@ var AccountingAreasService = class extends Service {
|
|
|
2640
2786
|
},
|
|
2641
2787
|
AccountingAreaListOptions
|
|
2642
2788
|
);
|
|
2789
|
+
if (Array.isArray(response.data)) {
|
|
2790
|
+
response.data = {
|
|
2791
|
+
accountingAreaArray: response.data,
|
|
2792
|
+
count: response.data.length,
|
|
2793
|
+
hasMore: false,
|
|
2794
|
+
cursor: null
|
|
2795
|
+
};
|
|
2796
|
+
}
|
|
2797
|
+
return response;
|
|
2643
2798
|
}
|
|
2644
2799
|
async update(AccountingAreaUpdateParams, AccountingAreaUpdateOptions) {
|
|
2645
2800
|
return await super.sendRequest(
|
|
@@ -2710,7 +2865,13 @@ var PayoutsService = class extends Service {
|
|
|
2710
2865
|
if (PayoutListParams?.propertyId !== void 0) {
|
|
2711
2866
|
queryArray.push("propertyId=" + PayoutListParams.propertyId);
|
|
2712
2867
|
}
|
|
2713
|
-
|
|
2868
|
+
if (PayoutListOptions?.limit !== void 0) {
|
|
2869
|
+
queryArray.push("limit=" + PayoutListOptions.limit);
|
|
2870
|
+
}
|
|
2871
|
+
if (PayoutListOptions?.cursor !== void 0) {
|
|
2872
|
+
queryArray.push("cursor=" + PayoutListOptions.cursor);
|
|
2873
|
+
}
|
|
2874
|
+
const response = await super.sendRequest(
|
|
2714
2875
|
{
|
|
2715
2876
|
method: "GET",
|
|
2716
2877
|
url: "payouts?" + queryArray.join("&"),
|
|
@@ -2719,6 +2880,15 @@ var PayoutsService = class extends Service {
|
|
|
2719
2880
|
},
|
|
2720
2881
|
PayoutListOptions
|
|
2721
2882
|
);
|
|
2883
|
+
if (Array.isArray(response.data)) {
|
|
2884
|
+
response.data = {
|
|
2885
|
+
payoutArray: response.data,
|
|
2886
|
+
count: response.data.length,
|
|
2887
|
+
hasMore: false,
|
|
2888
|
+
cursor: null
|
|
2889
|
+
};
|
|
2890
|
+
}
|
|
2891
|
+
return response;
|
|
2722
2892
|
}
|
|
2723
2893
|
};
|
|
2724
2894
|
|
|
@@ -2846,8 +3016,8 @@ var ArticlesService = class extends Service {
|
|
|
2846
3016
|
if (ArticleListParams?.statusArray !== void 0) {
|
|
2847
3017
|
queryArray.push("statusArray=" + ArticleListParams.statusArray.join(","));
|
|
2848
3018
|
}
|
|
2849
|
-
if (ArticleListOptions?.
|
|
2850
|
-
queryArray.push("
|
|
3019
|
+
if (ArticleListOptions?.cursor !== void 0) {
|
|
3020
|
+
queryArray.push("cursor=" + ArticleListOptions.cursor);
|
|
2851
3021
|
}
|
|
2852
3022
|
if (ArticleListOptions?.limit !== void 0) {
|
|
2853
3023
|
queryArray.push("limit=" + ArticleListOptions.limit);
|
|
@@ -2984,8 +3154,8 @@ var ChatsService = class extends Service {
|
|
|
2984
3154
|
if (ChatListParams?.userId !== void 0) {
|
|
2985
3155
|
queryArray.push("userId=" + ChatListParams.userId);
|
|
2986
3156
|
}
|
|
2987
|
-
if (ChatListOptions?.
|
|
2988
|
-
queryArray.push("
|
|
3157
|
+
if (ChatListOptions?.cursor !== void 0) {
|
|
3158
|
+
queryArray.push("cursor=" + ChatListOptions.cursor);
|
|
2989
3159
|
}
|
|
2990
3160
|
return await super.sendRequest(
|
|
2991
3161
|
{
|
|
@@ -3083,11 +3253,11 @@ var ChatMessagesService = class extends Service {
|
|
|
3083
3253
|
if (ChatMessageListParams.chatId !== void 0) {
|
|
3084
3254
|
queryArray.push("chatId=" + ChatMessageListParams.chatId);
|
|
3085
3255
|
}
|
|
3086
|
-
if (
|
|
3087
|
-
queryArray.push("limit=" +
|
|
3256
|
+
if (ChatMessageListOptions?.limit !== void 0) {
|
|
3257
|
+
queryArray.push("limit=" + ChatMessageListOptions.limit);
|
|
3088
3258
|
}
|
|
3089
|
-
if (
|
|
3090
|
-
queryArray.push("
|
|
3259
|
+
if (ChatMessageListOptions?.cursor !== void 0) {
|
|
3260
|
+
queryArray.push("cursor=" + ChatMessageListOptions.cursor);
|
|
3091
3261
|
}
|
|
3092
3262
|
return await super.sendRequest(
|
|
3093
3263
|
{
|
|
@@ -3152,8 +3322,8 @@ var ArticleEmbeddingsService = class extends Service {
|
|
|
3152
3322
|
if (ArticleEmbeddingListParams?.articleId !== void 0) {
|
|
3153
3323
|
queryArray.push("articleId=" + ArticleEmbeddingListParams.articleId);
|
|
3154
3324
|
}
|
|
3155
|
-
if (ArticleEmbeddingListOptions?.
|
|
3156
|
-
queryArray.push("
|
|
3325
|
+
if (ArticleEmbeddingListOptions?.cursor !== void 0) {
|
|
3326
|
+
queryArray.push("cursor=" + ArticleEmbeddingListOptions.cursor);
|
|
3157
3327
|
}
|
|
3158
3328
|
return await super.sendRequest(
|
|
3159
3329
|
{
|
|
@@ -3266,16 +3436,16 @@ var PaymentRefundsService = class extends Service {
|
|
|
3266
3436
|
"createdAt[lte]=" + PaymentRefundListParams.createdAt.lte
|
|
3267
3437
|
);
|
|
3268
3438
|
}
|
|
3269
|
-
if (
|
|
3270
|
-
queryArray.push("limit=" +
|
|
3439
|
+
if (PaymentRefundListOptions?.limit !== void 0) {
|
|
3440
|
+
queryArray.push("limit=" + PaymentRefundListOptions.limit);
|
|
3271
3441
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
queryArray.push("
|
|
3442
|
+
if (PaymentRefundListOptions?.cursor !== void 0) {
|
|
3443
|
+
queryArray.push("cursor=" + PaymentRefundListOptions.cursor);
|
|
3274
3444
|
}
|
|
3275
3445
|
if (PaymentRefundListParams.paymentId !== void 0) {
|
|
3276
3446
|
queryArray.push("paymentId=" + PaymentRefundListParams.paymentId);
|
|
3277
3447
|
}
|
|
3278
|
-
|
|
3448
|
+
const response = await super.sendRequest(
|
|
3279
3449
|
{
|
|
3280
3450
|
method: "GET",
|
|
3281
3451
|
url: "paymentRefunds?" + queryArray.join("&"),
|
|
@@ -3284,6 +3454,15 @@ var PaymentRefundsService = class extends Service {
|
|
|
3284
3454
|
},
|
|
3285
3455
|
PaymentRefundListOptions
|
|
3286
3456
|
);
|
|
3457
|
+
if (Array.isArray(response.data)) {
|
|
3458
|
+
response.data = {
|
|
3459
|
+
paymentRefundArray: response.data,
|
|
3460
|
+
count: response.data.length,
|
|
3461
|
+
hasMore: false,
|
|
3462
|
+
cursor: null
|
|
3463
|
+
};
|
|
3464
|
+
}
|
|
3465
|
+
return response;
|
|
3287
3466
|
}
|
|
3288
3467
|
async retrieve(PaymentRefundRetrieveParams, PaymentRefundRetrieveOptions) {
|
|
3289
3468
|
const queryArray = [];
|
|
@@ -3343,8 +3522,8 @@ var ArticleGroupGroupsService = class extends Service {
|
|
|
3343
3522
|
if (ArticleGroupListOptions?.limit !== void 0) {
|
|
3344
3523
|
queryArray.push("limit=" + ArticleGroupListOptions.limit);
|
|
3345
3524
|
}
|
|
3346
|
-
if (ArticleGroupListOptions?.
|
|
3347
|
-
queryArray.push("
|
|
3525
|
+
if (ArticleGroupListOptions?.cursor !== void 0) {
|
|
3526
|
+
queryArray.push("cursor=" + ArticleGroupListOptions.cursor);
|
|
3348
3527
|
}
|
|
3349
3528
|
return await super.sendRequest(
|
|
3350
3529
|
{
|
|
@@ -3410,8 +3589,8 @@ var ParameterHistoriesService = class extends Service {
|
|
|
3410
3589
|
if (ParameterHistoryListParams?.parameterId !== void 0) {
|
|
3411
3590
|
queryArray.push("parameterId=" + ParameterHistoryListParams.parameterId);
|
|
3412
3591
|
}
|
|
3413
|
-
if (
|
|
3414
|
-
queryArray.push("cursor=" +
|
|
3592
|
+
if (ParameterHistoryListOptions?.cursor !== void 0) {
|
|
3593
|
+
queryArray.push("cursor=" + ParameterHistoryListOptions.cursor);
|
|
3415
3594
|
}
|
|
3416
3595
|
if (ParameterHistoryListParams?.createdAt?.gte !== void 0) {
|
|
3417
3596
|
queryArray.push(
|
|
@@ -3494,8 +3673,8 @@ var ApiKeysService = class extends Service {
|
|
|
3494
3673
|
if (ApiKeyListParams?.statusArray !== void 0) {
|
|
3495
3674
|
queryArray.push("statusArray=" + ApiKeyListParams.statusArray.join(","));
|
|
3496
3675
|
}
|
|
3497
|
-
if (ApiKeyListOptions?.
|
|
3498
|
-
queryArray.push("
|
|
3676
|
+
if (ApiKeyListOptions?.cursor !== void 0) {
|
|
3677
|
+
queryArray.push("cursor=" + ApiKeyListOptions.cursor);
|
|
3499
3678
|
}
|
|
3500
3679
|
return await super.sendRequest(
|
|
3501
3680
|
{
|
|
@@ -3572,8 +3751,8 @@ var ParametersService = class extends Service {
|
|
|
3572
3751
|
if (ParameterListParams?.propertyId !== void 0) {
|
|
3573
3752
|
queryArray.push("propertyId=" + ParameterListParams.propertyId);
|
|
3574
3753
|
}
|
|
3575
|
-
if (ParameterListOptions?.
|
|
3576
|
-
queryArray.push("
|
|
3754
|
+
if (ParameterListOptions?.cursor !== void 0) {
|
|
3755
|
+
queryArray.push("cursor=" + ParameterListOptions.cursor);
|
|
3577
3756
|
}
|
|
3578
3757
|
if (ParameterListOptions?.limit !== void 0) {
|
|
3579
3758
|
queryArray.push("limit=" + ParameterListOptions.limit);
|
|
@@ -3679,8 +3858,8 @@ var IncidentTemplatesService = class extends Service {
|
|
|
3679
3858
|
if (IncidentTemplateListParams?.propertyId !== void 0) {
|
|
3680
3859
|
queryArray.push("propertyId=" + IncidentTemplateListParams.propertyId);
|
|
3681
3860
|
}
|
|
3682
|
-
if (IncidentTemplateListOptions?.
|
|
3683
|
-
queryArray.push("
|
|
3861
|
+
if (IncidentTemplateListOptions?.cursor !== void 0) {
|
|
3862
|
+
queryArray.push("cursor=" + IncidentTemplateListOptions.cursor);
|
|
3684
3863
|
}
|
|
3685
3864
|
if (IncidentTemplateListOptions?.limit !== void 0) {
|
|
3686
3865
|
queryArray.push("limit=" + IncidentTemplateListOptions.limit);
|
|
@@ -3777,8 +3956,8 @@ var IncidentsService = class extends Service {
|
|
|
3777
3956
|
"statusArray=" + IncidentListParams.statusArray.join(",")
|
|
3778
3957
|
);
|
|
3779
3958
|
}
|
|
3780
|
-
if (IncidentListOptions?.
|
|
3781
|
-
queryArray.push("
|
|
3959
|
+
if (IncidentListOptions?.cursor !== void 0) {
|
|
3960
|
+
queryArray.push("cursor=" + IncidentListOptions.cursor);
|
|
3782
3961
|
}
|
|
3783
3962
|
if (IncidentListOptions?.limit !== void 0) {
|
|
3784
3963
|
queryArray.push("limit=" + IncidentListOptions.limit);
|
|
@@ -3874,8 +4053,8 @@ var ParameterAnomalyGroupsService = class extends Service {
|
|
|
3874
4053
|
"propertyId=" + ParameterAnomalyGroupListParams.propertyId
|
|
3875
4054
|
);
|
|
3876
4055
|
}
|
|
3877
|
-
if (ParameterAnomalyGroupListOptions?.
|
|
3878
|
-
queryArray.push("
|
|
4056
|
+
if (ParameterAnomalyGroupListOptions?.cursor !== void 0) {
|
|
4057
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupListOptions.cursor);
|
|
3879
4058
|
}
|
|
3880
4059
|
return await super.sendRequest(
|
|
3881
4060
|
{
|
|
@@ -3961,8 +4140,8 @@ var ParameterAnomalyGroupTrackersService = class extends Service {
|
|
|
3961
4140
|
"propertyId=" + ParameterAnomalyGroupTrackerListParams.propertyId
|
|
3962
4141
|
);
|
|
3963
4142
|
}
|
|
3964
|
-
if (ParameterAnomalyGroupTrackerListOptions?.
|
|
3965
|
-
queryArray.push("
|
|
4143
|
+
if (ParameterAnomalyGroupTrackerListOptions?.cursor !== void 0) {
|
|
4144
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupTrackerListOptions.cursor);
|
|
3966
4145
|
}
|
|
3967
4146
|
return await super.sendRequest(
|
|
3968
4147
|
{
|
|
@@ -4046,8 +4225,8 @@ var ParameterAnomalyGroupTrackerTracesService = class extends Service {
|
|
|
4046
4225
|
if (ParameterAnomalyGroupTrackerTraceListOptions?.limit !== void 0) {
|
|
4047
4226
|
queryArray.push("limit=" + ParameterAnomalyGroupTrackerTraceListOptions.limit);
|
|
4048
4227
|
}
|
|
4049
|
-
if (ParameterAnomalyGroupTrackerTraceListOptions?.
|
|
4050
|
-
queryArray.push("
|
|
4228
|
+
if (ParameterAnomalyGroupTrackerTraceListOptions?.cursor !== void 0) {
|
|
4229
|
+
queryArray.push("cursor=" + ParameterAnomalyGroupTrackerTraceListOptions.cursor);
|
|
4051
4230
|
}
|
|
4052
4231
|
return await super.sendRequest(
|
|
4053
4232
|
{
|
|
@@ -4152,8 +4331,8 @@ var FlowsService = class extends Service {
|
|
|
4152
4331
|
if (FlowListOptions?.limit !== void 0) {
|
|
4153
4332
|
queryArray.push("limit=" + FlowListOptions.limit);
|
|
4154
4333
|
}
|
|
4155
|
-
if (FlowListOptions?.
|
|
4156
|
-
queryArray.push("
|
|
4334
|
+
if (FlowListOptions?.cursor !== void 0) {
|
|
4335
|
+
queryArray.push("cursor=" + FlowListOptions.cursor);
|
|
4157
4336
|
}
|
|
4158
4337
|
return await super.sendRequest(
|
|
4159
4338
|
{
|
|
@@ -4606,8 +4785,8 @@ var FlowTracesService = class extends Service {
|
|
|
4606
4785
|
if (FlowTraceListOptions?.limit !== void 0) {
|
|
4607
4786
|
queryArray.push("limit=" + FlowTraceListOptions.limit);
|
|
4608
4787
|
}
|
|
4609
|
-
if (FlowTraceListOptions?.
|
|
4610
|
-
queryArray.push("
|
|
4788
|
+
if (FlowTraceListOptions?.cursor !== void 0) {
|
|
4789
|
+
queryArray.push("cursor=" + FlowTraceListOptions.cursor);
|
|
4611
4790
|
}
|
|
4612
4791
|
return await super.sendRequest(
|
|
4613
4792
|
{
|
|
@@ -4663,8 +4842,8 @@ var MqttTopicsService = class extends Service {
|
|
|
4663
4842
|
if (options?.limit !== void 0) {
|
|
4664
4843
|
queryArray.push("limit=" + options.limit);
|
|
4665
4844
|
}
|
|
4666
|
-
if (options?.
|
|
4667
|
-
queryArray.push("
|
|
4845
|
+
if (options?.cursor !== void 0) {
|
|
4846
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4668
4847
|
}
|
|
4669
4848
|
return await super.sendRequest(
|
|
4670
4849
|
{
|
|
@@ -4753,8 +4932,8 @@ var LicensePlatesService = class extends Service {
|
|
|
4753
4932
|
if (options?.limit !== void 0) {
|
|
4754
4933
|
queryArray.push("limit=" + options.limit);
|
|
4755
4934
|
}
|
|
4756
|
-
if (options?.
|
|
4757
|
-
queryArray.push("
|
|
4935
|
+
if (options?.cursor !== void 0) {
|
|
4936
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4758
4937
|
}
|
|
4759
4938
|
return await super.sendRequest(
|
|
4760
4939
|
{
|
|
@@ -4847,8 +5026,8 @@ var VehiclesService = class extends Service {
|
|
|
4847
5026
|
if (options?.limit !== void 0) {
|
|
4848
5027
|
queryArray.push("limit=" + options.limit);
|
|
4849
5028
|
}
|
|
4850
|
-
if (options?.
|
|
4851
|
-
queryArray.push("
|
|
5029
|
+
if (options?.cursor !== void 0) {
|
|
5030
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4852
5031
|
}
|
|
4853
5032
|
return await super.sendRequest(
|
|
4854
5033
|
{
|
|
@@ -4957,8 +5136,8 @@ var OrdersService = class extends Service {
|
|
|
4957
5136
|
if (options?.limit !== void 0) {
|
|
4958
5137
|
queryArray.push("limit=" + options.limit);
|
|
4959
5138
|
}
|
|
4960
|
-
if (options?.
|
|
4961
|
-
queryArray.push("
|
|
5139
|
+
if (options?.cursor !== void 0) {
|
|
5140
|
+
queryArray.push("cursor=" + options.cursor);
|
|
4962
5141
|
}
|
|
4963
5142
|
return await super.sendRequest(
|
|
4964
5143
|
{
|
|
@@ -5070,8 +5249,8 @@ var BasketsService = class extends Service {
|
|
|
5070
5249
|
if (options?.limit !== void 0) {
|
|
5071
5250
|
queryArray.push("limit=" + options.limit);
|
|
5072
5251
|
}
|
|
5073
|
-
if (options?.
|
|
5074
|
-
queryArray.push("
|
|
5252
|
+
if (options?.cursor !== void 0) {
|
|
5253
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5075
5254
|
}
|
|
5076
5255
|
return await super.sendRequest(
|
|
5077
5256
|
{
|
|
@@ -5172,8 +5351,8 @@ var BenefitCardsService = class extends Service {
|
|
|
5172
5351
|
if (options?.limit !== void 0) {
|
|
5173
5352
|
queryArray.push("limit=" + options.limit);
|
|
5174
5353
|
}
|
|
5175
|
-
if (options?.
|
|
5176
|
-
queryArray.push("
|
|
5354
|
+
if (options?.cursor !== void 0) {
|
|
5355
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5177
5356
|
}
|
|
5178
5357
|
return await super.sendRequest(
|
|
5179
5358
|
{
|
|
@@ -5712,8 +5891,8 @@ var PanelsService = class extends Service {
|
|
|
5712
5891
|
if (options?.limit !== void 0) {
|
|
5713
5892
|
queryArray.push("limit=" + options.limit);
|
|
5714
5893
|
}
|
|
5715
|
-
if (options?.
|
|
5716
|
-
queryArray.push("
|
|
5894
|
+
if (options?.cursor !== void 0) {
|
|
5895
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5717
5896
|
}
|
|
5718
5897
|
return await super.sendRequest(
|
|
5719
5898
|
{
|
|
@@ -5850,8 +6029,8 @@ var PricesService = class extends Service {
|
|
|
5850
6029
|
if (options?.limit !== void 0) {
|
|
5851
6030
|
queryArray.push("limit=" + options.limit);
|
|
5852
6031
|
}
|
|
5853
|
-
if (options?.
|
|
5854
|
-
queryArray.push("
|
|
6032
|
+
if (options?.cursor !== void 0) {
|
|
6033
|
+
queryArray.push("cursor=" + options.cursor);
|
|
5855
6034
|
}
|
|
5856
6035
|
return await super.sendRequest(
|
|
5857
6036
|
{
|