@juhuu/sdk-ts 1.2.217 → 1.2.219

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 CHANGED
@@ -1067,6 +1067,16 @@ 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
+ attachChat(params: JUHUU.MqttTopic.AttachChat.Params, options?: JUHUU.MqttTopic.AttachChat.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.AttachChat.Response>>;
1077
+ delete(params: JUHUU.MqttTopic.Delete.Params, options?: JUHUU.MqttTopic.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Delete.Response>>;
1078
+ }
1079
+
1070
1080
  declare class Juhuu {
1071
1081
  constructor(config: JUHUU.SetupConfig);
1072
1082
  /**
@@ -1106,6 +1116,7 @@ declare class Juhuu {
1106
1116
  readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
1107
1117
  readonly emz: EmzService;
1108
1118
  readonly flows: FlowsService;
1119
+ readonly mqttTopics: MqttTopicsService;
1109
1120
  }
1110
1121
  declare namespace JUHUU {
1111
1122
  interface SetupConfig {
@@ -3550,6 +3561,8 @@ declare namespace JUHUU {
3550
3561
  featureReferenceParameterIdArray: Array<{
3551
3562
  parameterId: string;
3552
3563
  featureReference: string;
3564
+ shapValues: [number, number, number] | null;
3565
+ isOutlier: boolean;
3553
3566
  }>;
3554
3567
  };
3555
3568
  namespace Create {
@@ -3953,6 +3966,77 @@ declare namespace JUHUU {
3953
3966
  type Response = JUHUU.Sim.Object;
3954
3967
  }
3955
3968
  }
3969
+ namespace MqttTopic {
3970
+ type Object = {
3971
+ id: string;
3972
+ readonly object: "mqttTopic";
3973
+ name: string;
3974
+ propertyId: string;
3975
+ chatId: string | null;
3976
+ };
3977
+ namespace Create {
3978
+ type Params = {
3979
+ propertyId: string;
3980
+ name?: string;
3981
+ chatId?: string | null;
3982
+ };
3983
+ type Options = JUHUU.RequestOptions;
3984
+ type Response = {
3985
+ mqttTopic: JUHUU.MqttTopic.Object;
3986
+ };
3987
+ }
3988
+ namespace Retrieve {
3989
+ type Params = {
3990
+ mqttTopicId: string;
3991
+ };
3992
+ type Options = JUHUU.RequestOptions;
3993
+ type Response = {
3994
+ mqttTopic: JUHUU.MqttTopic.Object;
3995
+ };
3996
+ }
3997
+ namespace List {
3998
+ type Params = {
3999
+ propertyId?: string;
4000
+ chatId?: string;
4001
+ };
4002
+ type Options = {
4003
+ limit?: number;
4004
+ skip?: number;
4005
+ } & JUHUU.RequestOptions;
4006
+ type Response = {
4007
+ mqttTopicArray: JUHUU.MqttTopic.Object[];
4008
+ count: number;
4009
+ hasMore: boolean;
4010
+ };
4011
+ }
4012
+ namespace Update {
4013
+ type Params = {
4014
+ mqttTopicId: string;
4015
+ name?: string;
4016
+ chatId?: string | null;
4017
+ };
4018
+ type Options = JUHUU.RequestOptions;
4019
+ type Response = {
4020
+ mqttTopic: JUHUU.MqttTopic.Object;
4021
+ };
4022
+ }
4023
+ namespace AttachChat {
4024
+ type Params = {
4025
+ mqttTopicId: string;
4026
+ };
4027
+ type Options = JUHUU.RequestOptions;
4028
+ type Response = {
4029
+ mqttTopic: JUHUU.MqttTopic.Object;
4030
+ };
4031
+ }
4032
+ namespace Delete {
4033
+ type Params = {
4034
+ mqttTopicId: string;
4035
+ };
4036
+ type Options = JUHUU.RequestOptions;
4037
+ type Response = JUHUU.MqttTopic.Object;
4038
+ }
4039
+ }
3956
4040
  namespace ConnectorMessage {
3957
4041
  type Object = {
3958
4042
  id: string;
package/dist/index.d.ts CHANGED
@@ -1067,6 +1067,16 @@ 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
+ attachChat(params: JUHUU.MqttTopic.AttachChat.Params, options?: JUHUU.MqttTopic.AttachChat.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.AttachChat.Response>>;
1077
+ delete(params: JUHUU.MqttTopic.Delete.Params, options?: JUHUU.MqttTopic.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Delete.Response>>;
1078
+ }
1079
+
1070
1080
  declare class Juhuu {
1071
1081
  constructor(config: JUHUU.SetupConfig);
1072
1082
  /**
@@ -1106,6 +1116,7 @@ declare class Juhuu {
1106
1116
  readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
1107
1117
  readonly emz: EmzService;
1108
1118
  readonly flows: FlowsService;
1119
+ readonly mqttTopics: MqttTopicsService;
1109
1120
  }
1110
1121
  declare namespace JUHUU {
1111
1122
  interface SetupConfig {
@@ -3550,6 +3561,8 @@ declare namespace JUHUU {
3550
3561
  featureReferenceParameterIdArray: Array<{
3551
3562
  parameterId: string;
3552
3563
  featureReference: string;
3564
+ shapValues: [number, number, number] | null;
3565
+ isOutlier: boolean;
3553
3566
  }>;
3554
3567
  };
3555
3568
  namespace Create {
@@ -3953,6 +3966,77 @@ declare namespace JUHUU {
3953
3966
  type Response = JUHUU.Sim.Object;
3954
3967
  }
3955
3968
  }
3969
+ namespace MqttTopic {
3970
+ type Object = {
3971
+ id: string;
3972
+ readonly object: "mqttTopic";
3973
+ name: string;
3974
+ propertyId: string;
3975
+ chatId: string | null;
3976
+ };
3977
+ namespace Create {
3978
+ type Params = {
3979
+ propertyId: string;
3980
+ name?: string;
3981
+ chatId?: string | null;
3982
+ };
3983
+ type Options = JUHUU.RequestOptions;
3984
+ type Response = {
3985
+ mqttTopic: JUHUU.MqttTopic.Object;
3986
+ };
3987
+ }
3988
+ namespace Retrieve {
3989
+ type Params = {
3990
+ mqttTopicId: string;
3991
+ };
3992
+ type Options = JUHUU.RequestOptions;
3993
+ type Response = {
3994
+ mqttTopic: JUHUU.MqttTopic.Object;
3995
+ };
3996
+ }
3997
+ namespace List {
3998
+ type Params = {
3999
+ propertyId?: string;
4000
+ chatId?: string;
4001
+ };
4002
+ type Options = {
4003
+ limit?: number;
4004
+ skip?: number;
4005
+ } & JUHUU.RequestOptions;
4006
+ type Response = {
4007
+ mqttTopicArray: JUHUU.MqttTopic.Object[];
4008
+ count: number;
4009
+ hasMore: boolean;
4010
+ };
4011
+ }
4012
+ namespace Update {
4013
+ type Params = {
4014
+ mqttTopicId: string;
4015
+ name?: string;
4016
+ chatId?: string | null;
4017
+ };
4018
+ type Options = JUHUU.RequestOptions;
4019
+ type Response = {
4020
+ mqttTopic: JUHUU.MqttTopic.Object;
4021
+ };
4022
+ }
4023
+ namespace AttachChat {
4024
+ type Params = {
4025
+ mqttTopicId: string;
4026
+ };
4027
+ type Options = JUHUU.RequestOptions;
4028
+ type Response = {
4029
+ mqttTopic: JUHUU.MqttTopic.Object;
4030
+ };
4031
+ }
4032
+ namespace Delete {
4033
+ type Params = {
4034
+ mqttTopicId: string;
4035
+ };
4036
+ type Options = JUHUU.RequestOptions;
4037
+ type Response = JUHUU.MqttTopic.Object;
4038
+ }
4039
+ }
3956
4040
  namespace ConnectorMessage {
3957
4041
  type Object = {
3958
4042
  id: string;
package/dist/index.js CHANGED
@@ -3455,6 +3455,100 @@ 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 attachChat(params, options) {
3529
+ return await super.sendRequest(
3530
+ {
3531
+ method: "PATCH",
3532
+ url: "mqttTopics/" + params.mqttTopicId + "/attachChat",
3533
+ body: void 0,
3534
+ authenticationNotOptional: true
3535
+ },
3536
+ options
3537
+ );
3538
+ }
3539
+ async delete(params, options) {
3540
+ return await super.sendRequest(
3541
+ {
3542
+ method: "DELETE",
3543
+ url: "mqttTopics/" + params.mqttTopicId,
3544
+ authenticationNotOptional: true,
3545
+ body: void 0
3546
+ },
3547
+ options
3548
+ );
3549
+ }
3550
+ };
3551
+
3458
3552
  // src/types/types.ts
3459
3553
  var LanguageCodeArray = [
3460
3554
  "en",
@@ -3639,6 +3733,7 @@ var Juhuu = class {
3639
3733
  this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
3640
3734
  this.emz = new EmzService(config);
3641
3735
  this.flows = new FlowsService(config);
3736
+ this.mqttTopics = new MqttTopicsService(config);
3642
3737
  }
3643
3738
  /**
3644
3739
  * Top Level Resources
@@ -3677,6 +3772,7 @@ var Juhuu = class {
3677
3772
  parameterAnomalyGroupTrackers;
3678
3773
  emz;
3679
3774
  flows;
3775
+ mqttTopics;
3680
3776
  };
3681
3777
  var JUHUU;
3682
3778
  ((JUHUU2) => {
package/dist/index.mjs CHANGED
@@ -3411,6 +3411,100 @@ 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 attachChat(params, options) {
3485
+ return await super.sendRequest(
3486
+ {
3487
+ method: "PATCH",
3488
+ url: "mqttTopics/" + params.mqttTopicId + "/attachChat",
3489
+ body: void 0,
3490
+ authenticationNotOptional: true
3491
+ },
3492
+ options
3493
+ );
3494
+ }
3495
+ async delete(params, options) {
3496
+ return await super.sendRequest(
3497
+ {
3498
+ method: "DELETE",
3499
+ url: "mqttTopics/" + params.mqttTopicId,
3500
+ authenticationNotOptional: true,
3501
+ body: void 0
3502
+ },
3503
+ options
3504
+ );
3505
+ }
3506
+ };
3507
+
3414
3508
  // src/types/types.ts
3415
3509
  var LanguageCodeArray = [
3416
3510
  "en",
@@ -3595,6 +3689,7 @@ var Juhuu = class {
3595
3689
  this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
3596
3690
  this.emz = new EmzService(config);
3597
3691
  this.flows = new FlowsService(config);
3692
+ this.mqttTopics = new MqttTopicsService(config);
3598
3693
  }
3599
3694
  /**
3600
3695
  * Top Level Resources
@@ -3633,6 +3728,7 @@ var Juhuu = class {
3633
3728
  parameterAnomalyGroupTrackers;
3634
3729
  emz;
3635
3730
  flows;
3731
+ mqttTopics;
3636
3732
  };
3637
3733
  var JUHUU;
3638
3734
  ((JUHUU2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.217",
3
+ "version": "1.2.219",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",