@juhuu/sdk-ts 1.2.220 → 1.2.221

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,12 @@ 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 FlowTracesService extends Service {
1071
+ constructor(config: JUHUU.SetupConfig);
1072
+ list(FlowTraceListParams: JUHUU.FlowTrace.List.Params, FlowTraceListOptions?: JUHUU.FlowTrace.List.Options): Promise<JUHUU.HttpResponse<JUHUU.FlowTrace.List.Response>>;
1073
+ retrieve(FlowTraceRetrieveParams: JUHUU.FlowTrace.Retrieve.Params, FlowTraceRetrieveOptions?: JUHUU.FlowTrace.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.FlowTrace.Retrieve.Response>>;
1074
+ }
1075
+
1070
1076
  declare class MqttTopicsService extends Service {
1071
1077
  constructor(config: JUHUU.SetupConfig);
1072
1078
  create(params: JUHUU.MqttTopic.Create.Params, options?: JUHUU.MqttTopic.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Create.Response>>;
@@ -1116,6 +1122,7 @@ declare class Juhuu {
1116
1122
  readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
1117
1123
  readonly emz: EmzService;
1118
1124
  readonly flows: FlowsService;
1125
+ readonly flowTraces: FlowTracesService;
1119
1126
  readonly mqttTopics: MqttTopicsService;
1120
1127
  }
1121
1128
  declare namespace JUHUU {
@@ -3834,6 +3841,45 @@ declare namespace JUHUU {
3834
3841
  };
3835
3842
  }
3836
3843
  }
3844
+ namespace FlowTrace {
3845
+ type Object = {
3846
+ id: string;
3847
+ readonly object: "flowTrace";
3848
+ startAt: Date;
3849
+ endAt: Date;
3850
+ input: Record<string, any>;
3851
+ output: Record<string, any>;
3852
+ flowId: string;
3853
+ propertyId: string;
3854
+ logArray: string[];
3855
+ error: string | null;
3856
+ successful: boolean;
3857
+ };
3858
+ namespace Retrieve {
3859
+ type Params = {
3860
+ flowTraceId: string;
3861
+ };
3862
+ type Options = JUHUU.RequestOptions;
3863
+ type Response = {
3864
+ flowTrace: JUHUU.FlowTrace.Object;
3865
+ };
3866
+ }
3867
+ namespace List {
3868
+ type Params = {
3869
+ propertyId?: string;
3870
+ flowId?: string;
3871
+ };
3872
+ type Options = {
3873
+ skip?: number;
3874
+ limit?: number;
3875
+ } & JUHUU.RequestOptions;
3876
+ type Response = {
3877
+ flowTraceArray: JUHUU.FlowTrace.Object[];
3878
+ count: number;
3879
+ hasMore: boolean;
3880
+ };
3881
+ }
3882
+ }
3837
3883
  namespace DeviceTemplate {
3838
3884
  type Object = {
3839
3885
  id: string;
package/dist/index.d.ts CHANGED
@@ -1067,6 +1067,12 @@ 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 FlowTracesService extends Service {
1071
+ constructor(config: JUHUU.SetupConfig);
1072
+ list(FlowTraceListParams: JUHUU.FlowTrace.List.Params, FlowTraceListOptions?: JUHUU.FlowTrace.List.Options): Promise<JUHUU.HttpResponse<JUHUU.FlowTrace.List.Response>>;
1073
+ retrieve(FlowTraceRetrieveParams: JUHUU.FlowTrace.Retrieve.Params, FlowTraceRetrieveOptions?: JUHUU.FlowTrace.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.FlowTrace.Retrieve.Response>>;
1074
+ }
1075
+
1070
1076
  declare class MqttTopicsService extends Service {
1071
1077
  constructor(config: JUHUU.SetupConfig);
1072
1078
  create(params: JUHUU.MqttTopic.Create.Params, options?: JUHUU.MqttTopic.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.MqttTopic.Create.Response>>;
@@ -1116,6 +1122,7 @@ declare class Juhuu {
1116
1122
  readonly parameterAnomalyGroupTrackers: ParameterAnomalyGroupTrackersService;
1117
1123
  readonly emz: EmzService;
1118
1124
  readonly flows: FlowsService;
1125
+ readonly flowTraces: FlowTracesService;
1119
1126
  readonly mqttTopics: MqttTopicsService;
1120
1127
  }
1121
1128
  declare namespace JUHUU {
@@ -3834,6 +3841,45 @@ declare namespace JUHUU {
3834
3841
  };
3835
3842
  }
3836
3843
  }
3844
+ namespace FlowTrace {
3845
+ type Object = {
3846
+ id: string;
3847
+ readonly object: "flowTrace";
3848
+ startAt: Date;
3849
+ endAt: Date;
3850
+ input: Record<string, any>;
3851
+ output: Record<string, any>;
3852
+ flowId: string;
3853
+ propertyId: string;
3854
+ logArray: string[];
3855
+ error: string | null;
3856
+ successful: boolean;
3857
+ };
3858
+ namespace Retrieve {
3859
+ type Params = {
3860
+ flowTraceId: string;
3861
+ };
3862
+ type Options = JUHUU.RequestOptions;
3863
+ type Response = {
3864
+ flowTrace: JUHUU.FlowTrace.Object;
3865
+ };
3866
+ }
3867
+ namespace List {
3868
+ type Params = {
3869
+ propertyId?: string;
3870
+ flowId?: string;
3871
+ };
3872
+ type Options = {
3873
+ skip?: number;
3874
+ limit?: number;
3875
+ } & JUHUU.RequestOptions;
3876
+ type Response = {
3877
+ flowTraceArray: JUHUU.FlowTrace.Object[];
3878
+ count: number;
3879
+ hasMore: boolean;
3880
+ };
3881
+ }
3882
+ }
3837
3883
  namespace DeviceTemplate {
3838
3884
  type Object = {
3839
3885
  id: string;
package/dist/index.js CHANGED
@@ -3461,6 +3461,48 @@ var FlowsService = class extends Service {
3461
3461
  }
3462
3462
  };
3463
3463
 
3464
+ // src/flowTraces/flowTraces.service.ts
3465
+ var FlowTracesService = class extends Service {
3466
+ constructor(config) {
3467
+ super(config);
3468
+ }
3469
+ async list(FlowTraceListParams, FlowTraceListOptions) {
3470
+ const queryArray = [];
3471
+ if (FlowTraceListParams?.propertyId !== void 0) {
3472
+ queryArray.push("propertyId=" + FlowTraceListParams.propertyId);
3473
+ }
3474
+ if (FlowTraceListParams?.flowId !== void 0) {
3475
+ queryArray.push("flowId=" + FlowTraceListParams.flowId);
3476
+ }
3477
+ if (FlowTraceListOptions?.limit !== void 0) {
3478
+ queryArray.push("limit=" + FlowTraceListOptions.limit);
3479
+ }
3480
+ if (FlowTraceListOptions?.skip !== void 0) {
3481
+ queryArray.push("skip=" + FlowTraceListOptions.skip);
3482
+ }
3483
+ return await super.sendRequest(
3484
+ {
3485
+ method: "GET",
3486
+ url: "flowTraces?" + queryArray.join("&"),
3487
+ body: void 0,
3488
+ authenticationNotOptional: false
3489
+ },
3490
+ FlowTraceListOptions
3491
+ );
3492
+ }
3493
+ async retrieve(FlowTraceRetrieveParams, FlowTraceRetrieveOptions) {
3494
+ return await super.sendRequest(
3495
+ {
3496
+ method: "GET",
3497
+ url: "flowTraces/" + FlowTraceRetrieveParams.flowTraceId,
3498
+ body: void 0,
3499
+ authenticationNotOptional: false
3500
+ },
3501
+ FlowTraceRetrieveOptions
3502
+ );
3503
+ }
3504
+ };
3505
+
3464
3506
  // src/mqttTopics/mqttTopics.service.ts
3465
3507
  var MqttTopicsService = class extends Service {
3466
3508
  constructor(config) {
@@ -3739,6 +3781,7 @@ var Juhuu = class {
3739
3781
  this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
3740
3782
  this.emz = new EmzService(config);
3741
3783
  this.flows = new FlowsService(config);
3784
+ this.flowTraces = new FlowTracesService(config);
3742
3785
  this.mqttTopics = new MqttTopicsService(config);
3743
3786
  }
3744
3787
  /**
@@ -3778,6 +3821,7 @@ var Juhuu = class {
3778
3821
  parameterAnomalyGroupTrackers;
3779
3822
  emz;
3780
3823
  flows;
3824
+ flowTraces;
3781
3825
  mqttTopics;
3782
3826
  };
3783
3827
  var JUHUU;
package/dist/index.mjs CHANGED
@@ -3417,6 +3417,48 @@ var FlowsService = class extends Service {
3417
3417
  }
3418
3418
  };
3419
3419
 
3420
+ // src/flowTraces/flowTraces.service.ts
3421
+ var FlowTracesService = class extends Service {
3422
+ constructor(config) {
3423
+ super(config);
3424
+ }
3425
+ async list(FlowTraceListParams, FlowTraceListOptions) {
3426
+ const queryArray = [];
3427
+ if (FlowTraceListParams?.propertyId !== void 0) {
3428
+ queryArray.push("propertyId=" + FlowTraceListParams.propertyId);
3429
+ }
3430
+ if (FlowTraceListParams?.flowId !== void 0) {
3431
+ queryArray.push("flowId=" + FlowTraceListParams.flowId);
3432
+ }
3433
+ if (FlowTraceListOptions?.limit !== void 0) {
3434
+ queryArray.push("limit=" + FlowTraceListOptions.limit);
3435
+ }
3436
+ if (FlowTraceListOptions?.skip !== void 0) {
3437
+ queryArray.push("skip=" + FlowTraceListOptions.skip);
3438
+ }
3439
+ return await super.sendRequest(
3440
+ {
3441
+ method: "GET",
3442
+ url: "flowTraces?" + queryArray.join("&"),
3443
+ body: void 0,
3444
+ authenticationNotOptional: false
3445
+ },
3446
+ FlowTraceListOptions
3447
+ );
3448
+ }
3449
+ async retrieve(FlowTraceRetrieveParams, FlowTraceRetrieveOptions) {
3450
+ return await super.sendRequest(
3451
+ {
3452
+ method: "GET",
3453
+ url: "flowTraces/" + FlowTraceRetrieveParams.flowTraceId,
3454
+ body: void 0,
3455
+ authenticationNotOptional: false
3456
+ },
3457
+ FlowTraceRetrieveOptions
3458
+ );
3459
+ }
3460
+ };
3461
+
3420
3462
  // src/mqttTopics/mqttTopics.service.ts
3421
3463
  var MqttTopicsService = class extends Service {
3422
3464
  constructor(config) {
@@ -3695,6 +3737,7 @@ var Juhuu = class {
3695
3737
  this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
3696
3738
  this.emz = new EmzService(config);
3697
3739
  this.flows = new FlowsService(config);
3740
+ this.flowTraces = new FlowTracesService(config);
3698
3741
  this.mqttTopics = new MqttTopicsService(config);
3699
3742
  }
3700
3743
  /**
@@ -3734,6 +3777,7 @@ var Juhuu = class {
3734
3777
  parameterAnomalyGroupTrackers;
3735
3778
  emz;
3736
3779
  flows;
3780
+ flowTraces;
3737
3781
  mqttTopics;
3738
3782
  };
3739
3783
  var JUHUU;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.220",
3
+ "version": "1.2.221",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",