@juhuu/sdk-ts 1.2.173 → 1.2.175

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
@@ -3528,14 +3528,34 @@ declare namespace JUHUU {
3528
3528
  }
3529
3529
  }
3530
3530
  namespace ParameterHistory {
3531
- type Object = {
3531
+ type Base = {
3532
3532
  id: string;
3533
- readonly object: "parameterHistory";
3534
- parameterId: string;
3535
- deviceId: string;
3533
+ readonly object: "parameter";
3534
+ description: string | null;
3535
+ name: string | null;
3536
3536
  propertyId: string;
3537
+ createdAt: Date | null;
3538
+ reference: string | null;
3537
3539
  };
3538
- namespace Retrieve {
3540
+ export interface Text extends Base {
3541
+ type: "text";
3542
+ currentValue: string;
3543
+ }
3544
+ export interface Number extends Base {
3545
+ type: "number";
3546
+ currentValue: number;
3547
+ }
3548
+ export interface Enum extends Base {
3549
+ type: "enum";
3550
+ currentValue: string;
3551
+ enumArray: string[];
3552
+ }
3553
+ export interface Boolean extends Base {
3554
+ type: "boolean";
3555
+ currentValue: boolean;
3556
+ }
3557
+ export type Object = Number | Boolean | Enum | Text;
3558
+ export namespace Retrieve {
3539
3559
  type Params = {
3540
3560
  parameterHistoryId: string;
3541
3561
  };
@@ -3546,9 +3566,10 @@ declare namespace JUHUU {
3546
3566
  parameterHistory: JUHUU.ParameterHistory.Object;
3547
3567
  };
3548
3568
  }
3549
- namespace List {
3569
+ export namespace List {
3550
3570
  type Params = {
3551
3571
  propertyId?: string;
3572
+ parameterId?: string;
3552
3573
  };
3553
3574
  type Options = {
3554
3575
  skip?: number;
@@ -3560,6 +3581,7 @@ declare namespace JUHUU {
3560
3581
  hasMore: boolean;
3561
3582
  };
3562
3583
  }
3584
+ export { };
3563
3585
  }
3564
3586
  namespace DeviceTemplate {
3565
3587
  type Object = {
package/dist/index.d.ts CHANGED
@@ -3528,14 +3528,34 @@ declare namespace JUHUU {
3528
3528
  }
3529
3529
  }
3530
3530
  namespace ParameterHistory {
3531
- type Object = {
3531
+ type Base = {
3532
3532
  id: string;
3533
- readonly object: "parameterHistory";
3534
- parameterId: string;
3535
- deviceId: string;
3533
+ readonly object: "parameter";
3534
+ description: string | null;
3535
+ name: string | null;
3536
3536
  propertyId: string;
3537
+ createdAt: Date | null;
3538
+ reference: string | null;
3537
3539
  };
3538
- namespace Retrieve {
3540
+ export interface Text extends Base {
3541
+ type: "text";
3542
+ currentValue: string;
3543
+ }
3544
+ export interface Number extends Base {
3545
+ type: "number";
3546
+ currentValue: number;
3547
+ }
3548
+ export interface Enum extends Base {
3549
+ type: "enum";
3550
+ currentValue: string;
3551
+ enumArray: string[];
3552
+ }
3553
+ export interface Boolean extends Base {
3554
+ type: "boolean";
3555
+ currentValue: boolean;
3556
+ }
3557
+ export type Object = Number | Boolean | Enum | Text;
3558
+ export namespace Retrieve {
3539
3559
  type Params = {
3540
3560
  parameterHistoryId: string;
3541
3561
  };
@@ -3546,9 +3566,10 @@ declare namespace JUHUU {
3546
3566
  parameterHistory: JUHUU.ParameterHistory.Object;
3547
3567
  };
3548
3568
  }
3549
- namespace List {
3569
+ export namespace List {
3550
3570
  type Params = {
3551
3571
  propertyId?: string;
3572
+ parameterId?: string;
3552
3573
  };
3553
3574
  type Options = {
3554
3575
  skip?: number;
@@ -3560,6 +3581,7 @@ declare namespace JUHUU {
3560
3581
  hasMore: boolean;
3561
3582
  };
3562
3583
  }
3584
+ export { };
3563
3585
  }
3564
3586
  namespace DeviceTemplate {
3565
3587
  type Object = {
package/dist/index.js CHANGED
@@ -2818,12 +2818,15 @@ var ParameterHistoriesService = class extends Service {
2818
2818
  }
2819
2819
  async list(ParameterHistoryListParams, ParameterHistoryListOptions) {
2820
2820
  const queryArray = [];
2821
- if (ParameterHistoryListOptions?.limit !== void 0) {
2822
- queryArray.push("limit=" + ParameterHistoryListOptions.limit);
2823
- }
2824
2821
  if (ParameterHistoryListParams?.propertyId !== void 0) {
2825
2822
  queryArray.push("propertyId=" + ParameterHistoryListParams.propertyId);
2826
2823
  }
2824
+ if (ParameterHistoryListParams?.parameterId !== void 0) {
2825
+ queryArray.push("parameterId=" + ParameterHistoryListParams.parameterId);
2826
+ }
2827
+ if (ParameterHistoryListOptions?.limit !== void 0) {
2828
+ queryArray.push("limit=" + ParameterHistoryListOptions.limit);
2829
+ }
2827
2830
  if (ParameterHistoryListOptions?.skip !== void 0) {
2828
2831
  queryArray.push("skip=" + ParameterHistoryListOptions.skip);
2829
2832
  }
package/dist/index.mjs CHANGED
@@ -2774,12 +2774,15 @@ var ParameterHistoriesService = class extends Service {
2774
2774
  }
2775
2775
  async list(ParameterHistoryListParams, ParameterHistoryListOptions) {
2776
2776
  const queryArray = [];
2777
- if (ParameterHistoryListOptions?.limit !== void 0) {
2778
- queryArray.push("limit=" + ParameterHistoryListOptions.limit);
2779
- }
2780
2777
  if (ParameterHistoryListParams?.propertyId !== void 0) {
2781
2778
  queryArray.push("propertyId=" + ParameterHistoryListParams.propertyId);
2782
2779
  }
2780
+ if (ParameterHistoryListParams?.parameterId !== void 0) {
2781
+ queryArray.push("parameterId=" + ParameterHistoryListParams.parameterId);
2782
+ }
2783
+ if (ParameterHistoryListOptions?.limit !== void 0) {
2784
+ queryArray.push("limit=" + ParameterHistoryListOptions.limit);
2785
+ }
2783
2786
  if (ParameterHistoryListOptions?.skip !== void 0) {
2784
2787
  queryArray.push("skip=" + ParameterHistoryListOptions.skip);
2785
2788
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.173",
3
+ "version": "1.2.175",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",