@juhuu/sdk-ts 1.3.9 → 1.3.10
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 +72 -1
- package/dist/index.d.ts +72 -1
- package/dist/index.js +88 -7
- package/dist/index.mjs +88 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1859,6 +1859,15 @@ declare class PointsService extends Service {
|
|
|
1859
1859
|
calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
|
|
1860
1860
|
}
|
|
1861
1861
|
|
|
1862
|
+
declare class PointClustersService extends Service {
|
|
1863
|
+
constructor(config: JUHUU.SetupConfig);
|
|
1864
|
+
create(PointClusterCreateParams: JUHUU.PointCluster.Create.Params, PointClusterCreateOptions?: JUHUU.PointCluster.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.Create.Response>>;
|
|
1865
|
+
list(PointClusterListParams: JUHUU.PointCluster.List.Params, PointClusterListOptions?: JUHUU.PointCluster.List.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.List.Response>>;
|
|
1866
|
+
retrieve(PointClusterRetrieveParams: JUHUU.PointCluster.Retrieve.Params, PointClusterRetrieveOptions?: JUHUU.PointCluster.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.Retrieve.Response>>;
|
|
1867
|
+
update(PointClusterUpdateParams: JUHUU.PointCluster.Update.Params, PointClusterUpdateOptions?: JUHUU.PointCluster.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.Update.Response>>;
|
|
1868
|
+
delete(PointClusterDeleteParams: JUHUU.PointCluster.Delete.Params, PointClusterDeleteOptions?: JUHUU.PointCluster.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.Delete.Response>>;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1862
1871
|
declare class DevicesService extends Service {
|
|
1863
1872
|
constructor(config: JUHUU.SetupConfig);
|
|
1864
1873
|
create(DeviceCreateParams: JUHUU.Device.Create.Params, DeviceCreateOptions?: JUHUU.Device.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Create.Response>>;
|
|
@@ -2259,6 +2268,7 @@ declare class Juhuu {
|
|
|
2259
2268
|
readonly paymentRefunds: PaymentRefundsService;
|
|
2260
2269
|
readonly properties: PropertiesService;
|
|
2261
2270
|
readonly points: PointsService;
|
|
2271
|
+
readonly pointClusters: PointClustersService;
|
|
2262
2272
|
readonly devices: DevicesService;
|
|
2263
2273
|
readonly deviceTemplates: DeviceTemplatesService;
|
|
2264
2274
|
readonly locations: LocationsService;
|
|
@@ -3277,6 +3287,67 @@ declare namespace JUHUU {
|
|
|
3277
3287
|
type Response = JUHUU.AccountingArea.Object;
|
|
3278
3288
|
}
|
|
3279
3289
|
}
|
|
3290
|
+
namespace PointCluster {
|
|
3291
|
+
type Object = {
|
|
3292
|
+
id: string;
|
|
3293
|
+
readonly object: "pointCluster";
|
|
3294
|
+
version: number;
|
|
3295
|
+
propertyId: string;
|
|
3296
|
+
name: string;
|
|
3297
|
+
description: string | null;
|
|
3298
|
+
purposeArray: Purpose[];
|
|
3299
|
+
};
|
|
3300
|
+
namespace Create {
|
|
3301
|
+
type Params = {
|
|
3302
|
+
propertyId: string;
|
|
3303
|
+
name: string;
|
|
3304
|
+
description: string | null;
|
|
3305
|
+
};
|
|
3306
|
+
type Options = JUHUU.RequestOptions;
|
|
3307
|
+
type Response = {
|
|
3308
|
+
pointCluster: JUHUU.PointCluster.Object;
|
|
3309
|
+
};
|
|
3310
|
+
}
|
|
3311
|
+
namespace List {
|
|
3312
|
+
type Params = {
|
|
3313
|
+
propertyId?: string;
|
|
3314
|
+
};
|
|
3315
|
+
type Options = JUHUU.RequestOptions;
|
|
3316
|
+
type Response = JUHUU.PointCluster.Object[];
|
|
3317
|
+
}
|
|
3318
|
+
namespace Retrieve {
|
|
3319
|
+
type Params = {
|
|
3320
|
+
pointClusterId: string;
|
|
3321
|
+
};
|
|
3322
|
+
type Options = {
|
|
3323
|
+
expand?: Array<"property">;
|
|
3324
|
+
} & JUHUU.RequestOptions;
|
|
3325
|
+
type Response = {
|
|
3326
|
+
pointCluster: JUHUU.PointCluster.Object;
|
|
3327
|
+
property?: JUHUU.Property.Object;
|
|
3328
|
+
};
|
|
3329
|
+
}
|
|
3330
|
+
namespace Update {
|
|
3331
|
+
type Params = {
|
|
3332
|
+
pointClusterId: string;
|
|
3333
|
+
name?: string;
|
|
3334
|
+
description?: string | null;
|
|
3335
|
+
};
|
|
3336
|
+
type Options = JUHUU.RequestOptions;
|
|
3337
|
+
type Response = {
|
|
3338
|
+
pointCluster: JUHUU.PointCluster.Object;
|
|
3339
|
+
};
|
|
3340
|
+
}
|
|
3341
|
+
namespace Delete {
|
|
3342
|
+
type Params = {
|
|
3343
|
+
pointClusterId: string;
|
|
3344
|
+
};
|
|
3345
|
+
type Options = JUHUU.RequestOptions;
|
|
3346
|
+
type Response = {
|
|
3347
|
+
pointCluster: JUHUU.PointCluster.Object;
|
|
3348
|
+
};
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3280
3351
|
namespace ApiKey {
|
|
3281
3352
|
type Object = {
|
|
3282
3353
|
id: string;
|
|
@@ -4132,9 +4203,9 @@ declare namespace JUHUU {
|
|
|
4132
4203
|
export namespace List {
|
|
4133
4204
|
type Params = {
|
|
4134
4205
|
propertyId?: string;
|
|
4135
|
-
invalidAt?: Date | null;
|
|
4136
4206
|
referenceObject?: "location" | "panel";
|
|
4137
4207
|
referenceObjectId?: string;
|
|
4208
|
+
pointClusterId?: string | null;
|
|
4138
4209
|
};
|
|
4139
4210
|
type Options = JUHUU.RequestOptions;
|
|
4140
4211
|
type Response = JUHUU.Point.Object[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1859,6 +1859,15 @@ declare class PointsService extends Service {
|
|
|
1859
1859
|
calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
|
|
1860
1860
|
}
|
|
1861
1861
|
|
|
1862
|
+
declare class PointClustersService extends Service {
|
|
1863
|
+
constructor(config: JUHUU.SetupConfig);
|
|
1864
|
+
create(PointClusterCreateParams: JUHUU.PointCluster.Create.Params, PointClusterCreateOptions?: JUHUU.PointCluster.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.Create.Response>>;
|
|
1865
|
+
list(PointClusterListParams: JUHUU.PointCluster.List.Params, PointClusterListOptions?: JUHUU.PointCluster.List.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.List.Response>>;
|
|
1866
|
+
retrieve(PointClusterRetrieveParams: JUHUU.PointCluster.Retrieve.Params, PointClusterRetrieveOptions?: JUHUU.PointCluster.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.Retrieve.Response>>;
|
|
1867
|
+
update(PointClusterUpdateParams: JUHUU.PointCluster.Update.Params, PointClusterUpdateOptions?: JUHUU.PointCluster.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.Update.Response>>;
|
|
1868
|
+
delete(PointClusterDeleteParams: JUHUU.PointCluster.Delete.Params, PointClusterDeleteOptions?: JUHUU.PointCluster.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.PointCluster.Delete.Response>>;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1862
1871
|
declare class DevicesService extends Service {
|
|
1863
1872
|
constructor(config: JUHUU.SetupConfig);
|
|
1864
1873
|
create(DeviceCreateParams: JUHUU.Device.Create.Params, DeviceCreateOptions?: JUHUU.Device.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Create.Response>>;
|
|
@@ -2259,6 +2268,7 @@ declare class Juhuu {
|
|
|
2259
2268
|
readonly paymentRefunds: PaymentRefundsService;
|
|
2260
2269
|
readonly properties: PropertiesService;
|
|
2261
2270
|
readonly points: PointsService;
|
|
2271
|
+
readonly pointClusters: PointClustersService;
|
|
2262
2272
|
readonly devices: DevicesService;
|
|
2263
2273
|
readonly deviceTemplates: DeviceTemplatesService;
|
|
2264
2274
|
readonly locations: LocationsService;
|
|
@@ -3277,6 +3287,67 @@ declare namespace JUHUU {
|
|
|
3277
3287
|
type Response = JUHUU.AccountingArea.Object;
|
|
3278
3288
|
}
|
|
3279
3289
|
}
|
|
3290
|
+
namespace PointCluster {
|
|
3291
|
+
type Object = {
|
|
3292
|
+
id: string;
|
|
3293
|
+
readonly object: "pointCluster";
|
|
3294
|
+
version: number;
|
|
3295
|
+
propertyId: string;
|
|
3296
|
+
name: string;
|
|
3297
|
+
description: string | null;
|
|
3298
|
+
purposeArray: Purpose[];
|
|
3299
|
+
};
|
|
3300
|
+
namespace Create {
|
|
3301
|
+
type Params = {
|
|
3302
|
+
propertyId: string;
|
|
3303
|
+
name: string;
|
|
3304
|
+
description: string | null;
|
|
3305
|
+
};
|
|
3306
|
+
type Options = JUHUU.RequestOptions;
|
|
3307
|
+
type Response = {
|
|
3308
|
+
pointCluster: JUHUU.PointCluster.Object;
|
|
3309
|
+
};
|
|
3310
|
+
}
|
|
3311
|
+
namespace List {
|
|
3312
|
+
type Params = {
|
|
3313
|
+
propertyId?: string;
|
|
3314
|
+
};
|
|
3315
|
+
type Options = JUHUU.RequestOptions;
|
|
3316
|
+
type Response = JUHUU.PointCluster.Object[];
|
|
3317
|
+
}
|
|
3318
|
+
namespace Retrieve {
|
|
3319
|
+
type Params = {
|
|
3320
|
+
pointClusterId: string;
|
|
3321
|
+
};
|
|
3322
|
+
type Options = {
|
|
3323
|
+
expand?: Array<"property">;
|
|
3324
|
+
} & JUHUU.RequestOptions;
|
|
3325
|
+
type Response = {
|
|
3326
|
+
pointCluster: JUHUU.PointCluster.Object;
|
|
3327
|
+
property?: JUHUU.Property.Object;
|
|
3328
|
+
};
|
|
3329
|
+
}
|
|
3330
|
+
namespace Update {
|
|
3331
|
+
type Params = {
|
|
3332
|
+
pointClusterId: string;
|
|
3333
|
+
name?: string;
|
|
3334
|
+
description?: string | null;
|
|
3335
|
+
};
|
|
3336
|
+
type Options = JUHUU.RequestOptions;
|
|
3337
|
+
type Response = {
|
|
3338
|
+
pointCluster: JUHUU.PointCluster.Object;
|
|
3339
|
+
};
|
|
3340
|
+
}
|
|
3341
|
+
namespace Delete {
|
|
3342
|
+
type Params = {
|
|
3343
|
+
pointClusterId: string;
|
|
3344
|
+
};
|
|
3345
|
+
type Options = JUHUU.RequestOptions;
|
|
3346
|
+
type Response = {
|
|
3347
|
+
pointCluster: JUHUU.PointCluster.Object;
|
|
3348
|
+
};
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3280
3351
|
namespace ApiKey {
|
|
3281
3352
|
type Object = {
|
|
3282
3353
|
id: string;
|
|
@@ -4132,9 +4203,9 @@ declare namespace JUHUU {
|
|
|
4132
4203
|
export namespace List {
|
|
4133
4204
|
type Params = {
|
|
4134
4205
|
propertyId?: string;
|
|
4135
|
-
invalidAt?: Date | null;
|
|
4136
4206
|
referenceObject?: "location" | "panel";
|
|
4137
4207
|
referenceObjectId?: string;
|
|
4208
|
+
pointClusterId?: string | null;
|
|
4138
4209
|
};
|
|
4139
4210
|
type Options = JUHUU.RequestOptions;
|
|
4140
4211
|
type Response = JUHUU.Point.Object[];
|
package/dist/index.js
CHANGED
|
@@ -1564,19 +1564,19 @@ var PointsService = class extends Service {
|
|
|
1564
1564
|
if (PointListParams?.propertyId !== void 0) {
|
|
1565
1565
|
queryArray.push("propertyId=" + PointListParams.propertyId);
|
|
1566
1566
|
}
|
|
1567
|
-
if (PointListParams?.invalidAt !== void 0) {
|
|
1568
|
-
if (PointListParams.invalidAt === null) {
|
|
1569
|
-
queryArray.push("invalidAt=");
|
|
1570
|
-
} else {
|
|
1571
|
-
queryArray.push("invalidAt=" + PointListParams.invalidAt.toISOString());
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
1567
|
if (PointListParams?.referenceObject !== void 0) {
|
|
1575
1568
|
queryArray.push("referenceObject=" + PointListParams.referenceObject);
|
|
1576
1569
|
}
|
|
1577
1570
|
if (PointListParams?.referenceObjectId !== void 0) {
|
|
1578
1571
|
queryArray.push("referenceObjectId=" + PointListParams.referenceObjectId);
|
|
1579
1572
|
}
|
|
1573
|
+
if (PointListParams?.pointClusterId !== void 0) {
|
|
1574
|
+
if (PointListParams.pointClusterId === null) {
|
|
1575
|
+
queryArray.push("pointClusterId=null");
|
|
1576
|
+
} else {
|
|
1577
|
+
queryArray.push("pointClusterId=" + PointListParams.pointClusterId);
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
1580
|
return await super.sendRequest(
|
|
1581
1581
|
{
|
|
1582
1582
|
method: "GET",
|
|
@@ -1680,6 +1680,85 @@ var PointsService = class extends Service {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
};
|
|
1682
1682
|
|
|
1683
|
+
// src/pointClusters/pointClusters.service.ts
|
|
1684
|
+
var PointClustersService = class extends Service {
|
|
1685
|
+
constructor(config) {
|
|
1686
|
+
super(config);
|
|
1687
|
+
}
|
|
1688
|
+
async create(PointClusterCreateParams, PointClusterCreateOptions) {
|
|
1689
|
+
return await super.sendRequest(
|
|
1690
|
+
{
|
|
1691
|
+
method: "POST",
|
|
1692
|
+
url: "pointClusters",
|
|
1693
|
+
body: {
|
|
1694
|
+
propertyId: PointClusterCreateParams.propertyId,
|
|
1695
|
+
name: PointClusterCreateParams.name,
|
|
1696
|
+
description: PointClusterCreateParams.description
|
|
1697
|
+
},
|
|
1698
|
+
authenticationNotOptional: true
|
|
1699
|
+
},
|
|
1700
|
+
PointClusterCreateOptions
|
|
1701
|
+
);
|
|
1702
|
+
}
|
|
1703
|
+
async list(PointClusterListParams, PointClusterListOptions) {
|
|
1704
|
+
const queryArray = [];
|
|
1705
|
+
if (PointClusterListParams?.propertyId !== void 0) {
|
|
1706
|
+
queryArray.push("propertyId=" + PointClusterListParams.propertyId);
|
|
1707
|
+
}
|
|
1708
|
+
return await super.sendRequest(
|
|
1709
|
+
{
|
|
1710
|
+
method: "GET",
|
|
1711
|
+
url: "pointClusters?" + queryArray.join("&"),
|
|
1712
|
+
body: void 0,
|
|
1713
|
+
authenticationNotOptional: false
|
|
1714
|
+
},
|
|
1715
|
+
PointClusterListOptions
|
|
1716
|
+
);
|
|
1717
|
+
}
|
|
1718
|
+
async retrieve(PointClusterRetrieveParams, PointClusterRetrieveOptions) {
|
|
1719
|
+
const queryArray = [];
|
|
1720
|
+
if (PointClusterRetrieveOptions?.expand !== void 0) {
|
|
1721
|
+
queryArray.push(
|
|
1722
|
+
"expand=" + PointClusterRetrieveOptions.expand.join(",")
|
|
1723
|
+
);
|
|
1724
|
+
}
|
|
1725
|
+
return await super.sendRequest(
|
|
1726
|
+
{
|
|
1727
|
+
method: "GET",
|
|
1728
|
+
url: "pointClusters/" + PointClusterRetrieveParams.pointClusterId + "?" + queryArray.join("&"),
|
|
1729
|
+
body: void 0,
|
|
1730
|
+
authenticationNotOptional: false
|
|
1731
|
+
},
|
|
1732
|
+
PointClusterRetrieveOptions
|
|
1733
|
+
);
|
|
1734
|
+
}
|
|
1735
|
+
async update(PointClusterUpdateParams, PointClusterUpdateOptions) {
|
|
1736
|
+
return await super.sendRequest(
|
|
1737
|
+
{
|
|
1738
|
+
method: "PATCH",
|
|
1739
|
+
url: "pointClusters/" + PointClusterUpdateParams.pointClusterId,
|
|
1740
|
+
body: {
|
|
1741
|
+
name: PointClusterUpdateParams.name,
|
|
1742
|
+
description: PointClusterUpdateParams.description
|
|
1743
|
+
},
|
|
1744
|
+
authenticationNotOptional: true
|
|
1745
|
+
},
|
|
1746
|
+
PointClusterUpdateOptions
|
|
1747
|
+
);
|
|
1748
|
+
}
|
|
1749
|
+
async delete(PointClusterDeleteParams, PointClusterDeleteOptions) {
|
|
1750
|
+
return await super.sendRequest(
|
|
1751
|
+
{
|
|
1752
|
+
method: "DELETE",
|
|
1753
|
+
url: "pointClusters/" + PointClusterDeleteParams.pointClusterId,
|
|
1754
|
+
authenticationNotOptional: true,
|
|
1755
|
+
body: void 0
|
|
1756
|
+
},
|
|
1757
|
+
PointClusterDeleteOptions
|
|
1758
|
+
);
|
|
1759
|
+
}
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1683
1762
|
// src/devices/devices.service.ts
|
|
1684
1763
|
var DevicesService = class extends Service {
|
|
1685
1764
|
constructor(config) {
|
|
@@ -6084,6 +6163,7 @@ var Juhuu = class {
|
|
|
6084
6163
|
this.paymentRefunds = new PaymentRefundsService(config);
|
|
6085
6164
|
this.properties = new PropertiesService(config);
|
|
6086
6165
|
this.points = new PointsService(config);
|
|
6166
|
+
this.pointClusters = new PointClustersService(config);
|
|
6087
6167
|
this.devices = new DevicesService(config);
|
|
6088
6168
|
this.deviceTemplates = new DeviceTemplatesService(config);
|
|
6089
6169
|
this.locations = new LocationsService(config);
|
|
@@ -6139,6 +6219,7 @@ var Juhuu = class {
|
|
|
6139
6219
|
paymentRefunds;
|
|
6140
6220
|
properties;
|
|
6141
6221
|
points;
|
|
6222
|
+
pointClusters;
|
|
6142
6223
|
devices;
|
|
6143
6224
|
deviceTemplates;
|
|
6144
6225
|
locations;
|
package/dist/index.mjs
CHANGED
|
@@ -1520,19 +1520,19 @@ var PointsService = class extends Service {
|
|
|
1520
1520
|
if (PointListParams?.propertyId !== void 0) {
|
|
1521
1521
|
queryArray.push("propertyId=" + PointListParams.propertyId);
|
|
1522
1522
|
}
|
|
1523
|
-
if (PointListParams?.invalidAt !== void 0) {
|
|
1524
|
-
if (PointListParams.invalidAt === null) {
|
|
1525
|
-
queryArray.push("invalidAt=");
|
|
1526
|
-
} else {
|
|
1527
|
-
queryArray.push("invalidAt=" + PointListParams.invalidAt.toISOString());
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
1523
|
if (PointListParams?.referenceObject !== void 0) {
|
|
1531
1524
|
queryArray.push("referenceObject=" + PointListParams.referenceObject);
|
|
1532
1525
|
}
|
|
1533
1526
|
if (PointListParams?.referenceObjectId !== void 0) {
|
|
1534
1527
|
queryArray.push("referenceObjectId=" + PointListParams.referenceObjectId);
|
|
1535
1528
|
}
|
|
1529
|
+
if (PointListParams?.pointClusterId !== void 0) {
|
|
1530
|
+
if (PointListParams.pointClusterId === null) {
|
|
1531
|
+
queryArray.push("pointClusterId=null");
|
|
1532
|
+
} else {
|
|
1533
|
+
queryArray.push("pointClusterId=" + PointListParams.pointClusterId);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
1536
|
return await super.sendRequest(
|
|
1537
1537
|
{
|
|
1538
1538
|
method: "GET",
|
|
@@ -1636,6 +1636,85 @@ var PointsService = class extends Service {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
1638
|
|
|
1639
|
+
// src/pointClusters/pointClusters.service.ts
|
|
1640
|
+
var PointClustersService = class extends Service {
|
|
1641
|
+
constructor(config) {
|
|
1642
|
+
super(config);
|
|
1643
|
+
}
|
|
1644
|
+
async create(PointClusterCreateParams, PointClusterCreateOptions) {
|
|
1645
|
+
return await super.sendRequest(
|
|
1646
|
+
{
|
|
1647
|
+
method: "POST",
|
|
1648
|
+
url: "pointClusters",
|
|
1649
|
+
body: {
|
|
1650
|
+
propertyId: PointClusterCreateParams.propertyId,
|
|
1651
|
+
name: PointClusterCreateParams.name,
|
|
1652
|
+
description: PointClusterCreateParams.description
|
|
1653
|
+
},
|
|
1654
|
+
authenticationNotOptional: true
|
|
1655
|
+
},
|
|
1656
|
+
PointClusterCreateOptions
|
|
1657
|
+
);
|
|
1658
|
+
}
|
|
1659
|
+
async list(PointClusterListParams, PointClusterListOptions) {
|
|
1660
|
+
const queryArray = [];
|
|
1661
|
+
if (PointClusterListParams?.propertyId !== void 0) {
|
|
1662
|
+
queryArray.push("propertyId=" + PointClusterListParams.propertyId);
|
|
1663
|
+
}
|
|
1664
|
+
return await super.sendRequest(
|
|
1665
|
+
{
|
|
1666
|
+
method: "GET",
|
|
1667
|
+
url: "pointClusters?" + queryArray.join("&"),
|
|
1668
|
+
body: void 0,
|
|
1669
|
+
authenticationNotOptional: false
|
|
1670
|
+
},
|
|
1671
|
+
PointClusterListOptions
|
|
1672
|
+
);
|
|
1673
|
+
}
|
|
1674
|
+
async retrieve(PointClusterRetrieveParams, PointClusterRetrieveOptions) {
|
|
1675
|
+
const queryArray = [];
|
|
1676
|
+
if (PointClusterRetrieveOptions?.expand !== void 0) {
|
|
1677
|
+
queryArray.push(
|
|
1678
|
+
"expand=" + PointClusterRetrieveOptions.expand.join(",")
|
|
1679
|
+
);
|
|
1680
|
+
}
|
|
1681
|
+
return await super.sendRequest(
|
|
1682
|
+
{
|
|
1683
|
+
method: "GET",
|
|
1684
|
+
url: "pointClusters/" + PointClusterRetrieveParams.pointClusterId + "?" + queryArray.join("&"),
|
|
1685
|
+
body: void 0,
|
|
1686
|
+
authenticationNotOptional: false
|
|
1687
|
+
},
|
|
1688
|
+
PointClusterRetrieveOptions
|
|
1689
|
+
);
|
|
1690
|
+
}
|
|
1691
|
+
async update(PointClusterUpdateParams, PointClusterUpdateOptions) {
|
|
1692
|
+
return await super.sendRequest(
|
|
1693
|
+
{
|
|
1694
|
+
method: "PATCH",
|
|
1695
|
+
url: "pointClusters/" + PointClusterUpdateParams.pointClusterId,
|
|
1696
|
+
body: {
|
|
1697
|
+
name: PointClusterUpdateParams.name,
|
|
1698
|
+
description: PointClusterUpdateParams.description
|
|
1699
|
+
},
|
|
1700
|
+
authenticationNotOptional: true
|
|
1701
|
+
},
|
|
1702
|
+
PointClusterUpdateOptions
|
|
1703
|
+
);
|
|
1704
|
+
}
|
|
1705
|
+
async delete(PointClusterDeleteParams, PointClusterDeleteOptions) {
|
|
1706
|
+
return await super.sendRequest(
|
|
1707
|
+
{
|
|
1708
|
+
method: "DELETE",
|
|
1709
|
+
url: "pointClusters/" + PointClusterDeleteParams.pointClusterId,
|
|
1710
|
+
authenticationNotOptional: true,
|
|
1711
|
+
body: void 0
|
|
1712
|
+
},
|
|
1713
|
+
PointClusterDeleteOptions
|
|
1714
|
+
);
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1717
|
+
|
|
1639
1718
|
// src/devices/devices.service.ts
|
|
1640
1719
|
var DevicesService = class extends Service {
|
|
1641
1720
|
constructor(config) {
|
|
@@ -6040,6 +6119,7 @@ var Juhuu = class {
|
|
|
6040
6119
|
this.paymentRefunds = new PaymentRefundsService(config);
|
|
6041
6120
|
this.properties = new PropertiesService(config);
|
|
6042
6121
|
this.points = new PointsService(config);
|
|
6122
|
+
this.pointClusters = new PointClustersService(config);
|
|
6043
6123
|
this.devices = new DevicesService(config);
|
|
6044
6124
|
this.deviceTemplates = new DeviceTemplatesService(config);
|
|
6045
6125
|
this.locations = new LocationsService(config);
|
|
@@ -6095,6 +6175,7 @@ var Juhuu = class {
|
|
|
6095
6175
|
paymentRefunds;
|
|
6096
6176
|
properties;
|
|
6097
6177
|
points;
|
|
6178
|
+
pointClusters;
|
|
6098
6179
|
devices;
|
|
6099
6180
|
deviceTemplates;
|
|
6100
6181
|
locations;
|