@juhuu/sdk-ts 1.2.217 → 1.2.218
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 +74 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.js +85 -0
- package/dist/index.mjs +85 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -1067,6 +1067,15 @@ declare class FlowsService extends Service {
|
|
1067
1067
|
execute(FlowExecuteParams: JUHUU.Flow.Execute.Params, FlowExecuteOptions?: JUHUU.Flow.Execute.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Execute.Response>>;
|
1068
1068
|
}
|
1069
1069
|
|
1070
|
+
declare class MqttTopicsService extends Service {
|
1071
|
+
constructor(config: JUHUU.SetupConfig);
|
1072
|
+
create(params: JUHUU.MqttTopic.Create.Params, options?: JUHUU.MqttTopic.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Create.Response>>;
|
1073
|
+
list(params: JUHUU.MqttTopic.List.Params, options?: JUHUU.MqttTopic.List.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.List.Response>>;
|
1074
|
+
retrieve(params: JUHUU.MqttTopic.Retrieve.Params, options?: JUHUU.MqttTopic.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Retrieve.Response>>;
|
1075
|
+
update(params: JUHUU.MqttTopic.Update.Params, options?: JUHUU.MqttTopic.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Update.Response>>;
|
1076
|
+
delete(params: JUHUU.MqttTopic.Delete.Params, options?: JUHUU.MqttTopic.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Delete.Response>>;
|
1077
|
+
}
|
1078
|
+
|
1070
1079
|
declare class Juhuu {
|
1071
1080
|
constructor(config: JUHUU.SetupConfig);
|
1072
1081
|
/**
|
@@ -1106,6 +1115,7 @@ declare class Juhuu {
|
|
1106
1115
|
readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
|
1107
1116
|
readonly emz: EmzService;
|
1108
1117
|
readonly flows: FlowsService;
|
1118
|
+
readonly mqttTopics: MqttTopicsService;
|
1109
1119
|
}
|
1110
1120
|
declare namespace JUHUU {
|
1111
1121
|
interface SetupConfig {
|
@@ -3550,6 +3560,8 @@ declare namespace JUHUU {
|
|
3550
3560
|
featureReferenceParameterIdArray: Array<{
|
3551
3561
|
parameterId: string;
|
3552
3562
|
featureReference: string;
|
3563
|
+
shapValues: [number, number, number] | null;
|
3564
|
+
isOutlier: boolean;
|
3553
3565
|
}>;
|
3554
3566
|
};
|
3555
3567
|
namespace Create {
|
@@ -3953,6 +3965,68 @@ declare namespace JUHUU {
|
|
3953
3965
|
type Response = JUHUU.Sim.Object;
|
3954
3966
|
}
|
3955
3967
|
}
|
3968
|
+
namespace MqttTopic {
|
3969
|
+
type Object = {
|
3970
|
+
id: string;
|
3971
|
+
readonly object: "mqttTopic";
|
3972
|
+
name: string;
|
3973
|
+
propertyId: string;
|
3974
|
+
chatId: string | null;
|
3975
|
+
};
|
3976
|
+
namespace Create {
|
3977
|
+
type Params = {
|
3978
|
+
propertyId: string;
|
3979
|
+
name?: string;
|
3980
|
+
chatId?: string | null;
|
3981
|
+
};
|
3982
|
+
type Options = JUHUU.RequestOptions;
|
3983
|
+
type Response = {
|
3984
|
+
mqttTopic: JUHUU.MqttTopic.Object;
|
3985
|
+
};
|
3986
|
+
}
|
3987
|
+
namespace Retrieve {
|
3988
|
+
type Params = {
|
3989
|
+
mqttTopicId: string;
|
3990
|
+
};
|
3991
|
+
type Options = JUHUU.RequestOptions;
|
3992
|
+
type Response = {
|
3993
|
+
mqttTopic: JUHUU.MqttTopic.Object;
|
3994
|
+
};
|
3995
|
+
}
|
3996
|
+
namespace List {
|
3997
|
+
type Params = {
|
3998
|
+
propertyId?: string;
|
3999
|
+
chatId?: string;
|
4000
|
+
};
|
4001
|
+
type Options = {
|
4002
|
+
limit?: number;
|
4003
|
+
skip?: number;
|
4004
|
+
} & JUHUU.RequestOptions;
|
4005
|
+
type Response = {
|
4006
|
+
mqttTopicArray: JUHUU.MqttTopic.Object[];
|
4007
|
+
count: number;
|
4008
|
+
hasMore: boolean;
|
4009
|
+
};
|
4010
|
+
}
|
4011
|
+
namespace Update {
|
4012
|
+
type Params = {
|
4013
|
+
mqttTopicId: string;
|
4014
|
+
name?: string;
|
4015
|
+
chatId?: string | null;
|
4016
|
+
};
|
4017
|
+
type Options = JUHUU.RequestOptions;
|
4018
|
+
type Response = {
|
4019
|
+
mqttTopic: JUHUU.MqttTopic.Object;
|
4020
|
+
};
|
4021
|
+
}
|
4022
|
+
namespace Delete {
|
4023
|
+
type Params = {
|
4024
|
+
mqttTopicId: string;
|
4025
|
+
};
|
4026
|
+
type Options = JUHUU.RequestOptions;
|
4027
|
+
type Response = JUHUU.MqttTopic.Object;
|
4028
|
+
}
|
4029
|
+
}
|
3956
4030
|
namespace ConnectorMessage {
|
3957
4031
|
type Object = {
|
3958
4032
|
id: string;
|
package/dist/index.d.ts
CHANGED
@@ -1067,6 +1067,15 @@ declare class FlowsService extends Service {
|
|
1067
1067
|
execute(FlowExecuteParams: JUHUU.Flow.Execute.Params, FlowExecuteOptions?: JUHUU.Flow.Execute.Options): Promise<JUHUU.HttpResponse<JUHUU.Flow.Execute.Response>>;
|
1068
1068
|
}
|
1069
1069
|
|
1070
|
+
declare class MqttTopicsService extends Service {
|
1071
|
+
constructor(config: JUHUU.SetupConfig);
|
1072
|
+
create(params: JUHUU.MqttTopic.Create.Params, options?: JUHUU.MqttTopic.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Create.Response>>;
|
1073
|
+
list(params: JUHUU.MqttTopic.List.Params, options?: JUHUU.MqttTopic.List.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.List.Response>>;
|
1074
|
+
retrieve(params: JUHUU.MqttTopic.Retrieve.Params, options?: JUHUU.MqttTopic.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Retrieve.Response>>;
|
1075
|
+
update(params: JUHUU.MqttTopic.Update.Params, options?: JUHUU.MqttTopic.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Update.Response>>;
|
1076
|
+
delete(params: JUHUU.MqttTopic.Delete.Params, options?: JUHUU.MqttTopic.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Delete.Response>>;
|
1077
|
+
}
|
1078
|
+
|
1070
1079
|
declare class Juhuu {
|
1071
1080
|
constructor(config: JUHUU.SetupConfig);
|
1072
1081
|
/**
|
@@ -1106,6 +1115,7 @@ declare class Juhuu {
|
|
1106
1115
|
readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
|
1107
1116
|
readonly emz: EmzService;
|
1108
1117
|
readonly flows: FlowsService;
|
1118
|
+
readonly mqttTopics: MqttTopicsService;
|
1109
1119
|
}
|
1110
1120
|
declare namespace JUHUU {
|
1111
1121
|
interface SetupConfig {
|
@@ -3550,6 +3560,8 @@ declare namespace JUHUU {
|
|
3550
3560
|
featureReferenceParameterIdArray: Array<{
|
3551
3561
|
parameterId: string;
|
3552
3562
|
featureReference: string;
|
3563
|
+
shapValues: [number, number, number] | null;
|
3564
|
+
isOutlier: boolean;
|
3553
3565
|
}>;
|
3554
3566
|
};
|
3555
3567
|
namespace Create {
|
@@ -3953,6 +3965,68 @@ declare namespace JUHUU {
|
|
3953
3965
|
type Response = JUHUU.Sim.Object;
|
3954
3966
|
}
|
3955
3967
|
}
|
3968
|
+
namespace MqttTopic {
|
3969
|
+
type Object = {
|
3970
|
+
id: string;
|
3971
|
+
readonly object: "mqttTopic";
|
3972
|
+
name: string;
|
3973
|
+
propertyId: string;
|
3974
|
+
chatId: string | null;
|
3975
|
+
};
|
3976
|
+
namespace Create {
|
3977
|
+
type Params = {
|
3978
|
+
propertyId: string;
|
3979
|
+
name?: string;
|
3980
|
+
chatId?: string | null;
|
3981
|
+
};
|
3982
|
+
type Options = JUHUU.RequestOptions;
|
3983
|
+
type Response = {
|
3984
|
+
mqttTopic: JUHUU.MqttTopic.Object;
|
3985
|
+
};
|
3986
|
+
}
|
3987
|
+
namespace Retrieve {
|
3988
|
+
type Params = {
|
3989
|
+
mqttTopicId: string;
|
3990
|
+
};
|
3991
|
+
type Options = JUHUU.RequestOptions;
|
3992
|
+
type Response = {
|
3993
|
+
mqttTopic: JUHUU.MqttTopic.Object;
|
3994
|
+
};
|
3995
|
+
}
|
3996
|
+
namespace List {
|
3997
|
+
type Params = {
|
3998
|
+
propertyId?: string;
|
3999
|
+
chatId?: string;
|
4000
|
+
};
|
4001
|
+
type Options = {
|
4002
|
+
limit?: number;
|
4003
|
+
skip?: number;
|
4004
|
+
} & JUHUU.RequestOptions;
|
4005
|
+
type Response = {
|
4006
|
+
mqttTopicArray: JUHUU.MqttTopic.Object[];
|
4007
|
+
count: number;
|
4008
|
+
hasMore: boolean;
|
4009
|
+
};
|
4010
|
+
}
|
4011
|
+
namespace Update {
|
4012
|
+
type Params = {
|
4013
|
+
mqttTopicId: string;
|
4014
|
+
name?: string;
|
4015
|
+
chatId?: string | null;
|
4016
|
+
};
|
4017
|
+
type Options = JUHUU.RequestOptions;
|
4018
|
+
type Response = {
|
4019
|
+
mqttTopic: JUHUU.MqttTopic.Object;
|
4020
|
+
};
|
4021
|
+
}
|
4022
|
+
namespace Delete {
|
4023
|
+
type Params = {
|
4024
|
+
mqttTopicId: string;
|
4025
|
+
};
|
4026
|
+
type Options = JUHUU.RequestOptions;
|
4027
|
+
type Response = JUHUU.MqttTopic.Object;
|
4028
|
+
}
|
4029
|
+
}
|
3956
4030
|
namespace ConnectorMessage {
|
3957
4031
|
type Object = {
|
3958
4032
|
id: string;
|
package/dist/index.js
CHANGED
@@ -3455,6 +3455,89 @@ var FlowsService = class extends Service {
|
|
3455
3455
|
}
|
3456
3456
|
};
|
3457
3457
|
|
3458
|
+
// src/mqttTopics/mqttTopics.service.ts
|
3459
|
+
var MqttTopicsService = class extends Service {
|
3460
|
+
constructor(config) {
|
3461
|
+
super(config);
|
3462
|
+
}
|
3463
|
+
async create(params, options) {
|
3464
|
+
return await super.sendRequest(
|
3465
|
+
{
|
3466
|
+
method: "POST",
|
3467
|
+
url: "mqttTopics",
|
3468
|
+
body: {
|
3469
|
+
propertyId: params.propertyId,
|
3470
|
+
name: params.name,
|
3471
|
+
chatId: params.chatId
|
3472
|
+
},
|
3473
|
+
authenticationNotOptional: true
|
3474
|
+
},
|
3475
|
+
options
|
3476
|
+
);
|
3477
|
+
}
|
3478
|
+
async list(params, options) {
|
3479
|
+
const queryArray = [];
|
3480
|
+
if (params?.propertyId !== void 0) {
|
3481
|
+
queryArray.push("propertyId=" + params.propertyId);
|
3482
|
+
}
|
3483
|
+
if (params?.chatId !== void 0) {
|
3484
|
+
queryArray.push("chatId=" + params.chatId);
|
3485
|
+
}
|
3486
|
+
if (options?.limit !== void 0) {
|
3487
|
+
queryArray.push("limit=" + options.limit);
|
3488
|
+
}
|
3489
|
+
if (options?.skip !== void 0) {
|
3490
|
+
queryArray.push("skip=" + options.skip);
|
3491
|
+
}
|
3492
|
+
return await super.sendRequest(
|
3493
|
+
{
|
3494
|
+
method: "GET",
|
3495
|
+
url: "mqttTopics?" + queryArray.join("&"),
|
3496
|
+
body: void 0,
|
3497
|
+
authenticationNotOptional: false
|
3498
|
+
},
|
3499
|
+
options
|
3500
|
+
);
|
3501
|
+
}
|
3502
|
+
async retrieve(params, options) {
|
3503
|
+
const queryArray = [];
|
3504
|
+
return await super.sendRequest(
|
3505
|
+
{
|
3506
|
+
method: "GET",
|
3507
|
+
url: "mqttTopics/" + params.mqttTopicId + "?" + queryArray.join("&"),
|
3508
|
+
body: void 0,
|
3509
|
+
authenticationNotOptional: false
|
3510
|
+
},
|
3511
|
+
options
|
3512
|
+
);
|
3513
|
+
}
|
3514
|
+
async update(params, options) {
|
3515
|
+
return await super.sendRequest(
|
3516
|
+
{
|
3517
|
+
method: "PATCH",
|
3518
|
+
url: "mqttTopics/" + params.mqttTopicId,
|
3519
|
+
body: {
|
3520
|
+
name: params.name,
|
3521
|
+
chatId: params.chatId
|
3522
|
+
},
|
3523
|
+
authenticationNotOptional: true
|
3524
|
+
},
|
3525
|
+
options
|
3526
|
+
);
|
3527
|
+
}
|
3528
|
+
async delete(params, options) {
|
3529
|
+
return await super.sendRequest(
|
3530
|
+
{
|
3531
|
+
method: "DELETE",
|
3532
|
+
url: "mqttTopics/" + params.mqttTopicId,
|
3533
|
+
authenticationNotOptional: true,
|
3534
|
+
body: void 0
|
3535
|
+
},
|
3536
|
+
options
|
3537
|
+
);
|
3538
|
+
}
|
3539
|
+
};
|
3540
|
+
|
3458
3541
|
// src/types/types.ts
|
3459
3542
|
var LanguageCodeArray = [
|
3460
3543
|
"en",
|
@@ -3639,6 +3722,7 @@ var Juhuu = class {
|
|
3639
3722
|
this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
|
3640
3723
|
this.emz = new EmzService(config);
|
3641
3724
|
this.flows = new FlowsService(config);
|
3725
|
+
this.mqttTopics = new MqttTopicsService(config);
|
3642
3726
|
}
|
3643
3727
|
/**
|
3644
3728
|
* Top Level Resources
|
@@ -3677,6 +3761,7 @@ var Juhuu = class {
|
|
3677
3761
|
parameterAnomalyGroupTrackers;
|
3678
3762
|
emz;
|
3679
3763
|
flows;
|
3764
|
+
mqttTopics;
|
3680
3765
|
};
|
3681
3766
|
var JUHUU;
|
3682
3767
|
((JUHUU2) => {
|
package/dist/index.mjs
CHANGED
@@ -3411,6 +3411,89 @@ var FlowsService = class extends Service {
|
|
3411
3411
|
}
|
3412
3412
|
};
|
3413
3413
|
|
3414
|
+
// src/mqttTopics/mqttTopics.service.ts
|
3415
|
+
var MqttTopicsService = class extends Service {
|
3416
|
+
constructor(config) {
|
3417
|
+
super(config);
|
3418
|
+
}
|
3419
|
+
async create(params, options) {
|
3420
|
+
return await super.sendRequest(
|
3421
|
+
{
|
3422
|
+
method: "POST",
|
3423
|
+
url: "mqttTopics",
|
3424
|
+
body: {
|
3425
|
+
propertyId: params.propertyId,
|
3426
|
+
name: params.name,
|
3427
|
+
chatId: params.chatId
|
3428
|
+
},
|
3429
|
+
authenticationNotOptional: true
|
3430
|
+
},
|
3431
|
+
options
|
3432
|
+
);
|
3433
|
+
}
|
3434
|
+
async list(params, options) {
|
3435
|
+
const queryArray = [];
|
3436
|
+
if (params?.propertyId !== void 0) {
|
3437
|
+
queryArray.push("propertyId=" + params.propertyId);
|
3438
|
+
}
|
3439
|
+
if (params?.chatId !== void 0) {
|
3440
|
+
queryArray.push("chatId=" + params.chatId);
|
3441
|
+
}
|
3442
|
+
if (options?.limit !== void 0) {
|
3443
|
+
queryArray.push("limit=" + options.limit);
|
3444
|
+
}
|
3445
|
+
if (options?.skip !== void 0) {
|
3446
|
+
queryArray.push("skip=" + options.skip);
|
3447
|
+
}
|
3448
|
+
return await super.sendRequest(
|
3449
|
+
{
|
3450
|
+
method: "GET",
|
3451
|
+
url: "mqttTopics?" + queryArray.join("&"),
|
3452
|
+
body: void 0,
|
3453
|
+
authenticationNotOptional: false
|
3454
|
+
},
|
3455
|
+
options
|
3456
|
+
);
|
3457
|
+
}
|
3458
|
+
async retrieve(params, options) {
|
3459
|
+
const queryArray = [];
|
3460
|
+
return await super.sendRequest(
|
3461
|
+
{
|
3462
|
+
method: "GET",
|
3463
|
+
url: "mqttTopics/" + params.mqttTopicId + "?" + queryArray.join("&"),
|
3464
|
+
body: void 0,
|
3465
|
+
authenticationNotOptional: false
|
3466
|
+
},
|
3467
|
+
options
|
3468
|
+
);
|
3469
|
+
}
|
3470
|
+
async update(params, options) {
|
3471
|
+
return await super.sendRequest(
|
3472
|
+
{
|
3473
|
+
method: "PATCH",
|
3474
|
+
url: "mqttTopics/" + params.mqttTopicId,
|
3475
|
+
body: {
|
3476
|
+
name: params.name,
|
3477
|
+
chatId: params.chatId
|
3478
|
+
},
|
3479
|
+
authenticationNotOptional: true
|
3480
|
+
},
|
3481
|
+
options
|
3482
|
+
);
|
3483
|
+
}
|
3484
|
+
async delete(params, options) {
|
3485
|
+
return await super.sendRequest(
|
3486
|
+
{
|
3487
|
+
method: "DELETE",
|
3488
|
+
url: "mqttTopics/" + params.mqttTopicId,
|
3489
|
+
authenticationNotOptional: true,
|
3490
|
+
body: void 0
|
3491
|
+
},
|
3492
|
+
options
|
3493
|
+
);
|
3494
|
+
}
|
3495
|
+
};
|
3496
|
+
|
3414
3497
|
// src/types/types.ts
|
3415
3498
|
var LanguageCodeArray = [
|
3416
3499
|
"en",
|
@@ -3595,6 +3678,7 @@ var Juhuu = class {
|
|
3595
3678
|
this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
|
3596
3679
|
this.emz = new EmzService(config);
|
3597
3680
|
this.flows = new FlowsService(config);
|
3681
|
+
this.mqttTopics = new MqttTopicsService(config);
|
3598
3682
|
}
|
3599
3683
|
/**
|
3600
3684
|
* Top Level Resources
|
@@ -3633,6 +3717,7 @@ var Juhuu = class {
|
|
3633
3717
|
parameterAnomalyGroupTrackers;
|
3634
3718
|
emz;
|
3635
3719
|
flows;
|
3720
|
+
mqttTopics;
|
3636
3721
|
};
|
3637
3722
|
var JUHUU;
|
3638
3723
|
((JUHUU2) => {
|