@juhuu/sdk-ts 1.2.219 → 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
@@ -2893,7 +2893,13 @@ var ParametersService = class extends Service {
2893
2893
  method: "POST",
2894
2894
  url: "parameters",
2895
2895
  body: {
2896
- propertyId: ParameterCreateParams.propertyId
2896
+ propertyId: ParameterCreateParams.propertyId,
2897
+ type: ParameterCreateParams.type,
2898
+ name: ParameterCreateParams.name,
2899
+ description: ParameterCreateParams.description,
2900
+ currentValue: ParameterCreateParams.currentValue,
2901
+ enumArray: ParameterCreateParams.enumArray,
2902
+ reference: ParameterCreateParams.reference
2897
2903
  },
2898
2904
  authenticationNotOptional: true
2899
2905
  },
@@ -3455,6 +3461,48 @@ var FlowsService = class extends Service {
3455
3461
  }
3456
3462
  };
3457
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
+
3458
3506
  // src/mqttTopics/mqttTopics.service.ts
3459
3507
  var MqttTopicsService = class extends Service {
3460
3508
  constructor(config) {
@@ -3733,6 +3781,7 @@ var Juhuu = class {
3733
3781
  this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
3734
3782
  this.emz = new EmzService(config);
3735
3783
  this.flows = new FlowsService(config);
3784
+ this.flowTraces = new FlowTracesService(config);
3736
3785
  this.mqttTopics = new MqttTopicsService(config);
3737
3786
  }
3738
3787
  /**
@@ -3772,6 +3821,7 @@ var Juhuu = class {
3772
3821
  parameterAnomalyGroupTrackers;
3773
3822
  emz;
3774
3823
  flows;
3824
+ flowTraces;
3775
3825
  mqttTopics;
3776
3826
  };
3777
3827
  var JUHUU;
package/dist/index.mjs CHANGED
@@ -2849,7 +2849,13 @@ var ParametersService = class extends Service {
2849
2849
  method: "POST",
2850
2850
  url: "parameters",
2851
2851
  body: {
2852
- propertyId: ParameterCreateParams.propertyId
2852
+ propertyId: ParameterCreateParams.propertyId,
2853
+ type: ParameterCreateParams.type,
2854
+ name: ParameterCreateParams.name,
2855
+ description: ParameterCreateParams.description,
2856
+ currentValue: ParameterCreateParams.currentValue,
2857
+ enumArray: ParameterCreateParams.enumArray,
2858
+ reference: ParameterCreateParams.reference
2853
2859
  },
2854
2860
  authenticationNotOptional: true
2855
2861
  },
@@ -3411,6 +3417,48 @@ var FlowsService = class extends Service {
3411
3417
  }
3412
3418
  };
3413
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
+
3414
3462
  // src/mqttTopics/mqttTopics.service.ts
3415
3463
  var MqttTopicsService = class extends Service {
3416
3464
  constructor(config) {
@@ -3689,6 +3737,7 @@ var Juhuu = class {
3689
3737
  this.parameterAnomalyGroupTrackers = new ParameterAnomalyGroupTrackersService(config);
3690
3738
  this.emz = new EmzService(config);
3691
3739
  this.flows = new FlowsService(config);
3740
+ this.flowTraces = new FlowTracesService(config);
3692
3741
  this.mqttTopics = new MqttTopicsService(config);
3693
3742
  }
3694
3743
  /**
@@ -3728,6 +3777,7 @@ var Juhuu = class {
3728
3777
  parameterAnomalyGroupTrackers;
3729
3778
  emz;
3730
3779
  flows;
3780
+ flowTraces;
3731
3781
  mqttTopics;
3732
3782
  };
3733
3783
  var JUHUU;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.219",
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",