@juhuu/sdk-ts 1.2.156 → 1.2.157
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 +126 -85
- package/dist/index.d.ts +126 -85
- package/dist/index.js +17 -43
- package/dist/index.mjs +17 -43
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -272,33 +272,6 @@ type AccessControlListElement = {
|
|
272
272
|
acc: number;
|
273
273
|
};
|
274
274
|
type SimStatus = "online" | "offline" | "attached";
|
275
|
-
type Parameter = {
|
276
|
-
name: string;
|
277
|
-
type: "number";
|
278
|
-
lastChangeAt: Date | null;
|
279
|
-
current: number;
|
280
|
-
unit: Unit | null;
|
281
|
-
deviceParameterAnomalyGroupIdArray: string[];
|
282
|
-
} | {
|
283
|
-
name: string;
|
284
|
-
type: "enum";
|
285
|
-
lastChangeAt: Date;
|
286
|
-
enumArray: string[];
|
287
|
-
current: string;
|
288
|
-
deviceParameterAnomalyGroupIdArray: string[];
|
289
|
-
} | {
|
290
|
-
name: string;
|
291
|
-
type: "string";
|
292
|
-
lastChangeAt: Date;
|
293
|
-
current: string;
|
294
|
-
deviceParameterAnomalyGroupIdArray: string[];
|
295
|
-
} | {
|
296
|
-
name: string;
|
297
|
-
type: "boolean";
|
298
|
-
lastChangeAt: Date;
|
299
|
-
current: boolean;
|
300
|
-
deviceParameterAnomalyGroupIdArray: string[];
|
301
|
-
};
|
302
275
|
declare namespace Layout {
|
303
276
|
type Block = {
|
304
277
|
visibleCondition: Condition | null;
|
@@ -677,8 +650,6 @@ declare class DevicesService extends Service {
|
|
677
650
|
update(DeviceUpdateParams: JUHUU.Device.Update.Params, DeviceUpdateOptions?: JUHUU.Device.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Update.Response>>;
|
678
651
|
listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
|
679
652
|
message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
|
680
|
-
parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
|
681
|
-
commandExecute(DeviceCommandExecuteParams: JUHUU.Device.CommandExecute.Params, DeviceCommandExecuteOptions?: JUHUU.Device.CommandExecute.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.CommandExecute.Response>>;
|
682
653
|
nodeExecute(DeviceNodeExecuteParams: JUHUU.Device.NodeExecute.Params, DeviceNodeExecuteOptions?: JUHUU.Device.NodeExecute.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.NodeExecute.Response>>;
|
683
654
|
delete(DeviceDeleteParams: JUHUU.Device.Delete.Params, DeviceDeleteOptions?: JUHUU.Device.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Delete.Response>>;
|
684
655
|
}
|
@@ -864,10 +835,10 @@ declare class ArticleGroupGroupsService extends Service {
|
|
864
835
|
delete(ArticleGroupDeleteParams: JUHUU.ArticleGroup.Delete.Params, ArticleGroupDeleteOptions?: JUHUU.ArticleGroup.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Delete.Response>>;
|
865
836
|
}
|
866
837
|
|
867
|
-
declare class
|
838
|
+
declare class ParameterHistoriesService extends Service {
|
868
839
|
constructor(config: JUHUU.SetupConfig);
|
869
|
-
list(
|
870
|
-
retrieve(
|
840
|
+
list(ParameterHistoryListParams: JUHUU.ParameterHistory.List.Params, ParameterHistoryListOptions?: JUHUU.ParameterHistory.List.Options): Promise<JUHUU.HttpResponse<JUHUU.ParameterHistory.List.Response>>;
|
841
|
+
retrieve(ParameterHistoryRetrieveParams: JUHUU.ParameterHistory.Retrieve.Params, ParameterHistoryRetrieveOptions?: JUHUU.ParameterHistory.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ParameterHistory.Retrieve.Response>>;
|
871
842
|
}
|
872
843
|
|
873
844
|
declare class ApiKeysService extends Service {
|
@@ -910,7 +881,7 @@ declare class Juhuu {
|
|
910
881
|
readonly boldLock: BoldLockService;
|
911
882
|
readonly tapkey: TapkeyService;
|
912
883
|
readonly articleGroups: ArticleGroupGroupsService;
|
913
|
-
readonly
|
884
|
+
readonly parameterHistories: ParameterHistoriesService;
|
914
885
|
readonly apiKeys: ApiKeysService;
|
915
886
|
}
|
916
887
|
declare namespace JUHUU {
|
@@ -2866,7 +2837,7 @@ declare namespace JUHUU {
|
|
2866
2837
|
name: string;
|
2867
2838
|
description: string | null;
|
2868
2839
|
status: DeviceStatus;
|
2869
|
-
|
2840
|
+
parameterIdArray: string[];
|
2870
2841
|
version: number;
|
2871
2842
|
deviceTemplateId: string;
|
2872
2843
|
source: "fluctuo" | null;
|
@@ -2961,27 +2932,6 @@ declare namespace JUHUU {
|
|
2961
2932
|
type Options = JUHUU.RequestOptions;
|
2962
2933
|
type Response = void;
|
2963
2934
|
}
|
2964
|
-
namespace ParameterUpdate {
|
2965
|
-
type Params = {
|
2966
|
-
deviceId: string;
|
2967
|
-
parameterName: string;
|
2968
|
-
value: string | number | boolean;
|
2969
|
-
};
|
2970
|
-
type Options = JUHUU.RequestOptions;
|
2971
|
-
type Response = {
|
2972
|
-
device: JUHUU.Device.Object;
|
2973
|
-
};
|
2974
|
-
}
|
2975
|
-
namespace CommandExecute {
|
2976
|
-
type Params = {
|
2977
|
-
deviceId: string;
|
2978
|
-
commandName: string;
|
2979
|
-
};
|
2980
|
-
type Options = JUHUU.RequestOptions;
|
2981
|
-
type Response = {
|
2982
|
-
device: JUHUU.Device.Object;
|
2983
|
-
};
|
2984
|
-
}
|
2985
2935
|
namespace NodeExecute {
|
2986
2936
|
type Params = {
|
2987
2937
|
deviceId: string;
|
@@ -3137,32 +3087,124 @@ declare namespace JUHUU {
|
|
3137
3087
|
}
|
3138
3088
|
export { };
|
3139
3089
|
}
|
3140
|
-
namespace
|
3090
|
+
namespace Parameter {
|
3091
|
+
type Base = {
|
3092
|
+
id: string;
|
3093
|
+
readonly object: "parameter";
|
3094
|
+
description: string | null;
|
3095
|
+
name: string | null;
|
3096
|
+
propertyId: string;
|
3097
|
+
lastUpdatedAt: Date | null;
|
3098
|
+
parameterAnomalyGroupIdArray: string[];
|
3099
|
+
createdAt: Date | null;
|
3100
|
+
reference: string | null;
|
3101
|
+
};
|
3102
|
+
export interface Text extends Base {
|
3103
|
+
type: "text";
|
3104
|
+
currentValue: string;
|
3105
|
+
}
|
3106
|
+
export interface Number extends Base {
|
3107
|
+
type: "number";
|
3108
|
+
currentValue: number;
|
3109
|
+
}
|
3110
|
+
export interface Enum extends Base {
|
3111
|
+
type: "enum";
|
3112
|
+
currentValue: string;
|
3113
|
+
enumArray: string[];
|
3114
|
+
}
|
3115
|
+
export interface Boolean extends Base {
|
3116
|
+
type: "boolean";
|
3117
|
+
currentValue: boolean;
|
3118
|
+
}
|
3119
|
+
export type Object = Number | Boolean | Enum | Text;
|
3120
|
+
export namespace Create {
|
3121
|
+
type Params = {
|
3122
|
+
propertyId: string;
|
3123
|
+
type: JUHUU.Parameter.Object["type"];
|
3124
|
+
name?: string;
|
3125
|
+
description?: string;
|
3126
|
+
currentValue?: boolean | string | number;
|
3127
|
+
enumArray?: string[];
|
3128
|
+
reference?: string;
|
3129
|
+
};
|
3130
|
+
type Options = JUHUU.RequestOptions;
|
3131
|
+
type Response = {
|
3132
|
+
parameter: JUHUU.Parameter.Object;
|
3133
|
+
};
|
3134
|
+
}
|
3135
|
+
export namespace Retrieve {
|
3136
|
+
type Params = {
|
3137
|
+
parameterId: string;
|
3138
|
+
};
|
3139
|
+
type Options = {
|
3140
|
+
expand: Array<"property">;
|
3141
|
+
} & JUHUU.RequestOptions;
|
3142
|
+
type Response = {
|
3143
|
+
parameter: JUHUU.Parameter.Object;
|
3144
|
+
};
|
3145
|
+
}
|
3146
|
+
export namespace List {
|
3147
|
+
type Params = {
|
3148
|
+
propertyId?: string;
|
3149
|
+
};
|
3150
|
+
type Options = {
|
3151
|
+
skip?: number;
|
3152
|
+
limit?: number;
|
3153
|
+
} & JUHUU.RequestOptions;
|
3154
|
+
type Response = {
|
3155
|
+
parameterArray: JUHUU.Parameter.Object[];
|
3156
|
+
count: number;
|
3157
|
+
hasMore: boolean;
|
3158
|
+
};
|
3159
|
+
}
|
3160
|
+
export namespace Update {
|
3161
|
+
type Params = {
|
3162
|
+
parameterId: string;
|
3163
|
+
name?: string;
|
3164
|
+
currentValue?: string | boolean | number;
|
3165
|
+
};
|
3166
|
+
type Options = JUHUU.RequestOptions;
|
3167
|
+
type Response = {
|
3168
|
+
parameter: JUHUU.Parameter.Object;
|
3169
|
+
};
|
3170
|
+
}
|
3171
|
+
export namespace Delete {
|
3172
|
+
type Params = {
|
3173
|
+
parameterId?: string;
|
3174
|
+
};
|
3175
|
+
type Options = JUHUU.RequestOptions;
|
3176
|
+
type Response = {
|
3177
|
+
parameter: JUHUU.Parameter.Object;
|
3178
|
+
};
|
3179
|
+
}
|
3180
|
+
export { };
|
3181
|
+
}
|
3182
|
+
namespace ParameterAnomalyGroup {
|
3141
3183
|
type Object = {
|
3142
3184
|
id: string;
|
3143
|
-
readonly object: "
|
3144
|
-
|
3185
|
+
readonly object: "parameterAnomalyGroup";
|
3186
|
+
parameterAnomalyGroupTrackerId: string | null;
|
3145
3187
|
propertyId: string;
|
3146
3188
|
};
|
3147
3189
|
namespace Create {
|
3148
3190
|
type Params = {
|
3149
3191
|
propertyId: string;
|
3150
|
-
|
3192
|
+
parameterAnomalyGroupTrackerId?: string;
|
3151
3193
|
};
|
3152
3194
|
type Options = JUHUU.RequestOptions;
|
3153
3195
|
type Response = {
|
3154
|
-
|
3196
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3155
3197
|
};
|
3156
3198
|
}
|
3157
3199
|
namespace Retrieve {
|
3158
3200
|
type Params = {
|
3159
|
-
|
3201
|
+
parameterAnomalyGroupId: string;
|
3160
3202
|
};
|
3161
3203
|
type Options = {
|
3162
3204
|
expand?: Array<"property">;
|
3163
3205
|
} & JUHUU.RequestOptions;
|
3164
3206
|
type Response = {
|
3165
|
-
|
3207
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3166
3208
|
};
|
3167
3209
|
}
|
3168
3210
|
namespace List {
|
@@ -3174,34 +3216,34 @@ declare namespace JUHUU {
|
|
3174
3216
|
limit?: number;
|
3175
3217
|
} & JUHUU.RequestOptions;
|
3176
3218
|
type Response = {
|
3177
|
-
|
3219
|
+
parameterAnomalyGroupArray: JUHUU.ParameterAnomalyGroup.Object[];
|
3178
3220
|
count: number;
|
3179
3221
|
hasMore: boolean;
|
3180
3222
|
};
|
3181
3223
|
}
|
3182
3224
|
namespace Update {
|
3183
3225
|
type Params = {
|
3184
|
-
|
3226
|
+
parameterAnomalyGroupId: string;
|
3185
3227
|
};
|
3186
3228
|
type Options = JUHUU.RequestOptions;
|
3187
3229
|
type Response = {
|
3188
|
-
|
3230
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3189
3231
|
};
|
3190
3232
|
}
|
3191
3233
|
namespace Delete {
|
3192
3234
|
type Params = {
|
3193
|
-
|
3235
|
+
parameterAnomalyGroupId?: string;
|
3194
3236
|
};
|
3195
3237
|
type Options = JUHUU.RequestOptions;
|
3196
3238
|
type Response = {
|
3197
|
-
|
3239
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3198
3240
|
};
|
3199
3241
|
}
|
3200
3242
|
}
|
3201
|
-
namespace
|
3243
|
+
namespace ParameterAnomalyGroupTracker {
|
3202
3244
|
type Object = {
|
3203
3245
|
id: string;
|
3204
|
-
readonly object: "
|
3246
|
+
readonly object: "parameterAnomalyGroupTracker";
|
3205
3247
|
nextRunAt: Date | null;
|
3206
3248
|
title: string;
|
3207
3249
|
propertyId: string;
|
@@ -3212,18 +3254,18 @@ declare namespace JUHUU {
|
|
3212
3254
|
};
|
3213
3255
|
type Options = JUHUU.RequestOptions;
|
3214
3256
|
type Response = {
|
3215
|
-
|
3257
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3216
3258
|
};
|
3217
3259
|
}
|
3218
3260
|
namespace Retrieve {
|
3219
3261
|
type Params = {
|
3220
|
-
|
3262
|
+
parameterAnomalyGroupTrackerId: string;
|
3221
3263
|
};
|
3222
3264
|
type Options = {
|
3223
3265
|
expand?: Array<"property">;
|
3224
3266
|
} & JUHUU.RequestOptions;
|
3225
3267
|
type Response = {
|
3226
|
-
|
3268
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3227
3269
|
};
|
3228
3270
|
}
|
3229
3271
|
namespace List {
|
@@ -3235,48 +3277,48 @@ declare namespace JUHUU {
|
|
3235
3277
|
limit?: number;
|
3236
3278
|
} & JUHUU.RequestOptions;
|
3237
3279
|
type Response = {
|
3238
|
-
|
3280
|
+
parameterAnomalyGroupTrackerArray: JUHUU.ParameterAnomalyGroupTracker.Object[];
|
3239
3281
|
count: number;
|
3240
3282
|
hasMore: boolean;
|
3241
3283
|
};
|
3242
3284
|
}
|
3243
3285
|
namespace Update {
|
3244
3286
|
type Params = {
|
3245
|
-
|
3287
|
+
parameterAnomalyGroupTrackerId: string;
|
3246
3288
|
title: string;
|
3247
3289
|
};
|
3248
3290
|
type Options = JUHUU.RequestOptions;
|
3249
3291
|
type Response = {
|
3250
|
-
|
3292
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3251
3293
|
};
|
3252
3294
|
}
|
3253
3295
|
namespace Delete {
|
3254
3296
|
type Params = {
|
3255
|
-
|
3297
|
+
parameterAnomalyGroupTrackerId?: string;
|
3256
3298
|
};
|
3257
3299
|
type Options = JUHUU.RequestOptions;
|
3258
3300
|
type Response = {
|
3259
|
-
|
3301
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3260
3302
|
};
|
3261
3303
|
}
|
3262
3304
|
}
|
3263
|
-
namespace
|
3305
|
+
namespace ParameterHistory {
|
3264
3306
|
type Object = {
|
3265
3307
|
id: string;
|
3266
|
-
readonly object: "
|
3267
|
-
|
3308
|
+
readonly object: "parameterHistory";
|
3309
|
+
parameterId: string;
|
3268
3310
|
deviceId: string;
|
3269
3311
|
propertyId: string;
|
3270
3312
|
};
|
3271
3313
|
namespace Retrieve {
|
3272
3314
|
type Params = {
|
3273
|
-
|
3315
|
+
parameterHistoryId: string;
|
3274
3316
|
};
|
3275
3317
|
type Options = {
|
3276
3318
|
expand?: Array<"property">;
|
3277
3319
|
} & JUHUU.RequestOptions;
|
3278
3320
|
type Response = {
|
3279
|
-
|
3321
|
+
parameterHistory: JUHUU.ParameterHistory.Object;
|
3280
3322
|
};
|
3281
3323
|
}
|
3282
3324
|
namespace List {
|
@@ -3288,7 +3330,7 @@ declare namespace JUHUU {
|
|
3288
3330
|
limit?: number;
|
3289
3331
|
} & JUHUU.RequestOptions;
|
3290
3332
|
type Response = {
|
3291
|
-
|
3333
|
+
parameterHistoryArray: JUHUU.ParameterHistory.Object[];
|
3292
3334
|
count: number;
|
3293
3335
|
hasMore: boolean;
|
3294
3336
|
};
|
@@ -3301,7 +3343,6 @@ declare namespace JUHUU {
|
|
3301
3343
|
productId: string | null;
|
3302
3344
|
name: string;
|
3303
3345
|
propertyId: string;
|
3304
|
-
parameterArray: Parameter[];
|
3305
3346
|
nodeArray: GraphNode[];
|
3306
3347
|
userLayoutBlockArray: LayoutBlock[];
|
3307
3348
|
userLayoutBlockActionButton: Layout.Button.General | null;
|
@@ -3448,4 +3489,4 @@ declare namespace JUHUU {
|
|
3448
3489
|
}
|
3449
3490
|
}
|
3450
3491
|
|
3451
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type
|
3492
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.d.ts
CHANGED
@@ -272,33 +272,6 @@ type AccessControlListElement = {
|
|
272
272
|
acc: number;
|
273
273
|
};
|
274
274
|
type SimStatus = "online" | "offline" | "attached";
|
275
|
-
type Parameter = {
|
276
|
-
name: string;
|
277
|
-
type: "number";
|
278
|
-
lastChangeAt: Date | null;
|
279
|
-
current: number;
|
280
|
-
unit: Unit | null;
|
281
|
-
deviceParameterAnomalyGroupIdArray: string[];
|
282
|
-
} | {
|
283
|
-
name: string;
|
284
|
-
type: "enum";
|
285
|
-
lastChangeAt: Date;
|
286
|
-
enumArray: string[];
|
287
|
-
current: string;
|
288
|
-
deviceParameterAnomalyGroupIdArray: string[];
|
289
|
-
} | {
|
290
|
-
name: string;
|
291
|
-
type: "string";
|
292
|
-
lastChangeAt: Date;
|
293
|
-
current: string;
|
294
|
-
deviceParameterAnomalyGroupIdArray: string[];
|
295
|
-
} | {
|
296
|
-
name: string;
|
297
|
-
type: "boolean";
|
298
|
-
lastChangeAt: Date;
|
299
|
-
current: boolean;
|
300
|
-
deviceParameterAnomalyGroupIdArray: string[];
|
301
|
-
};
|
302
275
|
declare namespace Layout {
|
303
276
|
type Block = {
|
304
277
|
visibleCondition: Condition | null;
|
@@ -677,8 +650,6 @@ declare class DevicesService extends Service {
|
|
677
650
|
update(DeviceUpdateParams: JUHUU.Device.Update.Params, DeviceUpdateOptions?: JUHUU.Device.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Update.Response>>;
|
678
651
|
listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
|
679
652
|
message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
|
680
|
-
parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
|
681
|
-
commandExecute(DeviceCommandExecuteParams: JUHUU.Device.CommandExecute.Params, DeviceCommandExecuteOptions?: JUHUU.Device.CommandExecute.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.CommandExecute.Response>>;
|
682
653
|
nodeExecute(DeviceNodeExecuteParams: JUHUU.Device.NodeExecute.Params, DeviceNodeExecuteOptions?: JUHUU.Device.NodeExecute.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.NodeExecute.Response>>;
|
683
654
|
delete(DeviceDeleteParams: JUHUU.Device.Delete.Params, DeviceDeleteOptions?: JUHUU.Device.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Delete.Response>>;
|
684
655
|
}
|
@@ -864,10 +835,10 @@ declare class ArticleGroupGroupsService extends Service {
|
|
864
835
|
delete(ArticleGroupDeleteParams: JUHUU.ArticleGroup.Delete.Params, ArticleGroupDeleteOptions?: JUHUU.ArticleGroup.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleGroup.Delete.Response>>;
|
865
836
|
}
|
866
837
|
|
867
|
-
declare class
|
838
|
+
declare class ParameterHistoriesService extends Service {
|
868
839
|
constructor(config: JUHUU.SetupConfig);
|
869
|
-
list(
|
870
|
-
retrieve(
|
840
|
+
list(ParameterHistoryListParams: JUHUU.ParameterHistory.List.Params, ParameterHistoryListOptions?: JUHUU.ParameterHistory.List.Options): Promise<JUHUU.HttpResponse<JUHUU.ParameterHistory.List.Response>>;
|
841
|
+
retrieve(ParameterHistoryRetrieveParams: JUHUU.ParameterHistory.Retrieve.Params, ParameterHistoryRetrieveOptions?: JUHUU.ParameterHistory.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ParameterHistory.Retrieve.Response>>;
|
871
842
|
}
|
872
843
|
|
873
844
|
declare class ApiKeysService extends Service {
|
@@ -910,7 +881,7 @@ declare class Juhuu {
|
|
910
881
|
readonly boldLock: BoldLockService;
|
911
882
|
readonly tapkey: TapkeyService;
|
912
883
|
readonly articleGroups: ArticleGroupGroupsService;
|
913
|
-
readonly
|
884
|
+
readonly parameterHistories: ParameterHistoriesService;
|
914
885
|
readonly apiKeys: ApiKeysService;
|
915
886
|
}
|
916
887
|
declare namespace JUHUU {
|
@@ -2866,7 +2837,7 @@ declare namespace JUHUU {
|
|
2866
2837
|
name: string;
|
2867
2838
|
description: string | null;
|
2868
2839
|
status: DeviceStatus;
|
2869
|
-
|
2840
|
+
parameterIdArray: string[];
|
2870
2841
|
version: number;
|
2871
2842
|
deviceTemplateId: string;
|
2872
2843
|
source: "fluctuo" | null;
|
@@ -2961,27 +2932,6 @@ declare namespace JUHUU {
|
|
2961
2932
|
type Options = JUHUU.RequestOptions;
|
2962
2933
|
type Response = void;
|
2963
2934
|
}
|
2964
|
-
namespace ParameterUpdate {
|
2965
|
-
type Params = {
|
2966
|
-
deviceId: string;
|
2967
|
-
parameterName: string;
|
2968
|
-
value: string | number | boolean;
|
2969
|
-
};
|
2970
|
-
type Options = JUHUU.RequestOptions;
|
2971
|
-
type Response = {
|
2972
|
-
device: JUHUU.Device.Object;
|
2973
|
-
};
|
2974
|
-
}
|
2975
|
-
namespace CommandExecute {
|
2976
|
-
type Params = {
|
2977
|
-
deviceId: string;
|
2978
|
-
commandName: string;
|
2979
|
-
};
|
2980
|
-
type Options = JUHUU.RequestOptions;
|
2981
|
-
type Response = {
|
2982
|
-
device: JUHUU.Device.Object;
|
2983
|
-
};
|
2984
|
-
}
|
2985
2935
|
namespace NodeExecute {
|
2986
2936
|
type Params = {
|
2987
2937
|
deviceId: string;
|
@@ -3137,32 +3087,124 @@ declare namespace JUHUU {
|
|
3137
3087
|
}
|
3138
3088
|
export { };
|
3139
3089
|
}
|
3140
|
-
namespace
|
3090
|
+
namespace Parameter {
|
3091
|
+
type Base = {
|
3092
|
+
id: string;
|
3093
|
+
readonly object: "parameter";
|
3094
|
+
description: string | null;
|
3095
|
+
name: string | null;
|
3096
|
+
propertyId: string;
|
3097
|
+
lastUpdatedAt: Date | null;
|
3098
|
+
parameterAnomalyGroupIdArray: string[];
|
3099
|
+
createdAt: Date | null;
|
3100
|
+
reference: string | null;
|
3101
|
+
};
|
3102
|
+
export interface Text extends Base {
|
3103
|
+
type: "text";
|
3104
|
+
currentValue: string;
|
3105
|
+
}
|
3106
|
+
export interface Number extends Base {
|
3107
|
+
type: "number";
|
3108
|
+
currentValue: number;
|
3109
|
+
}
|
3110
|
+
export interface Enum extends Base {
|
3111
|
+
type: "enum";
|
3112
|
+
currentValue: string;
|
3113
|
+
enumArray: string[];
|
3114
|
+
}
|
3115
|
+
export interface Boolean extends Base {
|
3116
|
+
type: "boolean";
|
3117
|
+
currentValue: boolean;
|
3118
|
+
}
|
3119
|
+
export type Object = Number | Boolean | Enum | Text;
|
3120
|
+
export namespace Create {
|
3121
|
+
type Params = {
|
3122
|
+
propertyId: string;
|
3123
|
+
type: JUHUU.Parameter.Object["type"];
|
3124
|
+
name?: string;
|
3125
|
+
description?: string;
|
3126
|
+
currentValue?: boolean | string | number;
|
3127
|
+
enumArray?: string[];
|
3128
|
+
reference?: string;
|
3129
|
+
};
|
3130
|
+
type Options = JUHUU.RequestOptions;
|
3131
|
+
type Response = {
|
3132
|
+
parameter: JUHUU.Parameter.Object;
|
3133
|
+
};
|
3134
|
+
}
|
3135
|
+
export namespace Retrieve {
|
3136
|
+
type Params = {
|
3137
|
+
parameterId: string;
|
3138
|
+
};
|
3139
|
+
type Options = {
|
3140
|
+
expand: Array<"property">;
|
3141
|
+
} & JUHUU.RequestOptions;
|
3142
|
+
type Response = {
|
3143
|
+
parameter: JUHUU.Parameter.Object;
|
3144
|
+
};
|
3145
|
+
}
|
3146
|
+
export namespace List {
|
3147
|
+
type Params = {
|
3148
|
+
propertyId?: string;
|
3149
|
+
};
|
3150
|
+
type Options = {
|
3151
|
+
skip?: number;
|
3152
|
+
limit?: number;
|
3153
|
+
} & JUHUU.RequestOptions;
|
3154
|
+
type Response = {
|
3155
|
+
parameterArray: JUHUU.Parameter.Object[];
|
3156
|
+
count: number;
|
3157
|
+
hasMore: boolean;
|
3158
|
+
};
|
3159
|
+
}
|
3160
|
+
export namespace Update {
|
3161
|
+
type Params = {
|
3162
|
+
parameterId: string;
|
3163
|
+
name?: string;
|
3164
|
+
currentValue?: string | boolean | number;
|
3165
|
+
};
|
3166
|
+
type Options = JUHUU.RequestOptions;
|
3167
|
+
type Response = {
|
3168
|
+
parameter: JUHUU.Parameter.Object;
|
3169
|
+
};
|
3170
|
+
}
|
3171
|
+
export namespace Delete {
|
3172
|
+
type Params = {
|
3173
|
+
parameterId?: string;
|
3174
|
+
};
|
3175
|
+
type Options = JUHUU.RequestOptions;
|
3176
|
+
type Response = {
|
3177
|
+
parameter: JUHUU.Parameter.Object;
|
3178
|
+
};
|
3179
|
+
}
|
3180
|
+
export { };
|
3181
|
+
}
|
3182
|
+
namespace ParameterAnomalyGroup {
|
3141
3183
|
type Object = {
|
3142
3184
|
id: string;
|
3143
|
-
readonly object: "
|
3144
|
-
|
3185
|
+
readonly object: "parameterAnomalyGroup";
|
3186
|
+
parameterAnomalyGroupTrackerId: string | null;
|
3145
3187
|
propertyId: string;
|
3146
3188
|
};
|
3147
3189
|
namespace Create {
|
3148
3190
|
type Params = {
|
3149
3191
|
propertyId: string;
|
3150
|
-
|
3192
|
+
parameterAnomalyGroupTrackerId?: string;
|
3151
3193
|
};
|
3152
3194
|
type Options = JUHUU.RequestOptions;
|
3153
3195
|
type Response = {
|
3154
|
-
|
3196
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3155
3197
|
};
|
3156
3198
|
}
|
3157
3199
|
namespace Retrieve {
|
3158
3200
|
type Params = {
|
3159
|
-
|
3201
|
+
parameterAnomalyGroupId: string;
|
3160
3202
|
};
|
3161
3203
|
type Options = {
|
3162
3204
|
expand?: Array<"property">;
|
3163
3205
|
} & JUHUU.RequestOptions;
|
3164
3206
|
type Response = {
|
3165
|
-
|
3207
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3166
3208
|
};
|
3167
3209
|
}
|
3168
3210
|
namespace List {
|
@@ -3174,34 +3216,34 @@ declare namespace JUHUU {
|
|
3174
3216
|
limit?: number;
|
3175
3217
|
} & JUHUU.RequestOptions;
|
3176
3218
|
type Response = {
|
3177
|
-
|
3219
|
+
parameterAnomalyGroupArray: JUHUU.ParameterAnomalyGroup.Object[];
|
3178
3220
|
count: number;
|
3179
3221
|
hasMore: boolean;
|
3180
3222
|
};
|
3181
3223
|
}
|
3182
3224
|
namespace Update {
|
3183
3225
|
type Params = {
|
3184
|
-
|
3226
|
+
parameterAnomalyGroupId: string;
|
3185
3227
|
};
|
3186
3228
|
type Options = JUHUU.RequestOptions;
|
3187
3229
|
type Response = {
|
3188
|
-
|
3230
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3189
3231
|
};
|
3190
3232
|
}
|
3191
3233
|
namespace Delete {
|
3192
3234
|
type Params = {
|
3193
|
-
|
3235
|
+
parameterAnomalyGroupId?: string;
|
3194
3236
|
};
|
3195
3237
|
type Options = JUHUU.RequestOptions;
|
3196
3238
|
type Response = {
|
3197
|
-
|
3239
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3198
3240
|
};
|
3199
3241
|
}
|
3200
3242
|
}
|
3201
|
-
namespace
|
3243
|
+
namespace ParameterAnomalyGroupTracker {
|
3202
3244
|
type Object = {
|
3203
3245
|
id: string;
|
3204
|
-
readonly object: "
|
3246
|
+
readonly object: "parameterAnomalyGroupTracker";
|
3205
3247
|
nextRunAt: Date | null;
|
3206
3248
|
title: string;
|
3207
3249
|
propertyId: string;
|
@@ -3212,18 +3254,18 @@ declare namespace JUHUU {
|
|
3212
3254
|
};
|
3213
3255
|
type Options = JUHUU.RequestOptions;
|
3214
3256
|
type Response = {
|
3215
|
-
|
3257
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3216
3258
|
};
|
3217
3259
|
}
|
3218
3260
|
namespace Retrieve {
|
3219
3261
|
type Params = {
|
3220
|
-
|
3262
|
+
parameterAnomalyGroupTrackerId: string;
|
3221
3263
|
};
|
3222
3264
|
type Options = {
|
3223
3265
|
expand?: Array<"property">;
|
3224
3266
|
} & JUHUU.RequestOptions;
|
3225
3267
|
type Response = {
|
3226
|
-
|
3268
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3227
3269
|
};
|
3228
3270
|
}
|
3229
3271
|
namespace List {
|
@@ -3235,48 +3277,48 @@ declare namespace JUHUU {
|
|
3235
3277
|
limit?: number;
|
3236
3278
|
} & JUHUU.RequestOptions;
|
3237
3279
|
type Response = {
|
3238
|
-
|
3280
|
+
parameterAnomalyGroupTrackerArray: JUHUU.ParameterAnomalyGroupTracker.Object[];
|
3239
3281
|
count: number;
|
3240
3282
|
hasMore: boolean;
|
3241
3283
|
};
|
3242
3284
|
}
|
3243
3285
|
namespace Update {
|
3244
3286
|
type Params = {
|
3245
|
-
|
3287
|
+
parameterAnomalyGroupTrackerId: string;
|
3246
3288
|
title: string;
|
3247
3289
|
};
|
3248
3290
|
type Options = JUHUU.RequestOptions;
|
3249
3291
|
type Response = {
|
3250
|
-
|
3292
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3251
3293
|
};
|
3252
3294
|
}
|
3253
3295
|
namespace Delete {
|
3254
3296
|
type Params = {
|
3255
|
-
|
3297
|
+
parameterAnomalyGroupTrackerId?: string;
|
3256
3298
|
};
|
3257
3299
|
type Options = JUHUU.RequestOptions;
|
3258
3300
|
type Response = {
|
3259
|
-
|
3301
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3260
3302
|
};
|
3261
3303
|
}
|
3262
3304
|
}
|
3263
|
-
namespace
|
3305
|
+
namespace ParameterHistory {
|
3264
3306
|
type Object = {
|
3265
3307
|
id: string;
|
3266
|
-
readonly object: "
|
3267
|
-
|
3308
|
+
readonly object: "parameterHistory";
|
3309
|
+
parameterId: string;
|
3268
3310
|
deviceId: string;
|
3269
3311
|
propertyId: string;
|
3270
3312
|
};
|
3271
3313
|
namespace Retrieve {
|
3272
3314
|
type Params = {
|
3273
|
-
|
3315
|
+
parameterHistoryId: string;
|
3274
3316
|
};
|
3275
3317
|
type Options = {
|
3276
3318
|
expand?: Array<"property">;
|
3277
3319
|
} & JUHUU.RequestOptions;
|
3278
3320
|
type Response = {
|
3279
|
-
|
3321
|
+
parameterHistory: JUHUU.ParameterHistory.Object;
|
3280
3322
|
};
|
3281
3323
|
}
|
3282
3324
|
namespace List {
|
@@ -3288,7 +3330,7 @@ declare namespace JUHUU {
|
|
3288
3330
|
limit?: number;
|
3289
3331
|
} & JUHUU.RequestOptions;
|
3290
3332
|
type Response = {
|
3291
|
-
|
3333
|
+
parameterHistoryArray: JUHUU.ParameterHistory.Object[];
|
3292
3334
|
count: number;
|
3293
3335
|
hasMore: boolean;
|
3294
3336
|
};
|
@@ -3301,7 +3343,6 @@ declare namespace JUHUU {
|
|
3301
3343
|
productId: string | null;
|
3302
3344
|
name: string;
|
3303
3345
|
propertyId: string;
|
3304
|
-
parameterArray: Parameter[];
|
3305
3346
|
nodeArray: GraphNode[];
|
3306
3347
|
userLayoutBlockArray: LayoutBlock[];
|
3307
3348
|
userLayoutBlockActionButton: Layout.Button.General | null;
|
@@ -3448,4 +3489,4 @@ declare namespace JUHUU {
|
|
3448
3489
|
}
|
3449
3490
|
}
|
3450
3491
|
|
3451
|
-
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type
|
3492
|
+
export { type AccessControlListElement, type Address, type ApiKeyScope, type ApiKeyStatus, type AutoRenewMode, type BusinessType, type Capability, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type License, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformString, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
|
package/dist/index.js
CHANGED
@@ -1259,30 +1259,6 @@ var DevicesService = class extends Service {
|
|
1259
1259
|
DeviceMessageOptions
|
1260
1260
|
);
|
1261
1261
|
}
|
1262
|
-
async parameterUpdate(DeviceParameterParams, DeviceParameterOptions) {
|
1263
|
-
return await super.sendRequest(
|
1264
|
-
{
|
1265
|
-
method: "PATCH",
|
1266
|
-
url: "devices/" + DeviceParameterParams.deviceId + "/parameter/" + DeviceParameterParams.parameterName,
|
1267
|
-
body: {
|
1268
|
-
value: DeviceParameterParams.value
|
1269
|
-
},
|
1270
|
-
authenticationNotOptional: true
|
1271
|
-
},
|
1272
|
-
DeviceParameterOptions
|
1273
|
-
);
|
1274
|
-
}
|
1275
|
-
async commandExecute(DeviceCommandExecuteParams, DeviceCommandExecuteOptions) {
|
1276
|
-
return await super.sendRequest(
|
1277
|
-
{
|
1278
|
-
method: "POST",
|
1279
|
-
url: "devices/" + DeviceCommandExecuteParams.deviceId + "/command/" + DeviceCommandExecuteParams.commandName,
|
1280
|
-
body: {},
|
1281
|
-
authenticationNotOptional: true
|
1282
|
-
},
|
1283
|
-
DeviceCommandExecuteOptions
|
1284
|
-
);
|
1285
|
-
}
|
1286
1262
|
async nodeExecute(DeviceNodeExecuteParams, DeviceNodeExecuteOptions) {
|
1287
1263
|
return await super.sendRequest(
|
1288
1264
|
{
|
@@ -2833,23 +2809,21 @@ var ArticleGroupGroupsService = class extends Service {
|
|
2833
2809
|
}
|
2834
2810
|
};
|
2835
2811
|
|
2836
|
-
// src/
|
2837
|
-
var
|
2812
|
+
// src/parameterHistories/parameterHistories.service.ts
|
2813
|
+
var ParameterHistoriesService = class extends Service {
|
2838
2814
|
constructor(config) {
|
2839
2815
|
super(config);
|
2840
2816
|
}
|
2841
|
-
async list(
|
2817
|
+
async list(ParameterHistoryListParams, ParameterHistoryListOptions) {
|
2842
2818
|
const queryArray = [];
|
2843
|
-
if (
|
2844
|
-
queryArray.push("limit=" +
|
2819
|
+
if (ParameterHistoryListOptions?.limit !== void 0) {
|
2820
|
+
queryArray.push("limit=" + ParameterHistoryListOptions.limit);
|
2845
2821
|
}
|
2846
|
-
if (
|
2847
|
-
queryArray.push(
|
2848
|
-
"propertyId=" + DeviceParameterHistoryListParams.propertyId
|
2849
|
-
);
|
2822
|
+
if (ParameterHistoryListParams?.propertyId !== void 0) {
|
2823
|
+
queryArray.push("propertyId=" + ParameterHistoryListParams.propertyId);
|
2850
2824
|
}
|
2851
|
-
if (
|
2852
|
-
queryArray.push("skip=" +
|
2825
|
+
if (ParameterHistoryListOptions?.skip !== void 0) {
|
2826
|
+
queryArray.push("skip=" + ParameterHistoryListOptions.skip);
|
2853
2827
|
}
|
2854
2828
|
return await super.sendRequest(
|
2855
2829
|
{
|
@@ -2858,24 +2832,24 @@ var DeviceParameterHistoriesService = class extends Service {
|
|
2858
2832
|
body: void 0,
|
2859
2833
|
authenticationNotOptional: false
|
2860
2834
|
},
|
2861
|
-
|
2835
|
+
ParameterHistoryListOptions
|
2862
2836
|
);
|
2863
2837
|
}
|
2864
|
-
async retrieve(
|
2838
|
+
async retrieve(ParameterHistoryRetrieveParams, ParameterHistoryRetrieveOptions) {
|
2865
2839
|
const queryArray = [];
|
2866
|
-
if (
|
2840
|
+
if (ParameterHistoryRetrieveOptions?.expand !== void 0) {
|
2867
2841
|
queryArray.push(
|
2868
|
-
"expand=" +
|
2842
|
+
"expand=" + ParameterHistoryRetrieveOptions.expand.join(",")
|
2869
2843
|
);
|
2870
2844
|
}
|
2871
2845
|
return await super.sendRequest(
|
2872
2846
|
{
|
2873
2847
|
method: "GET",
|
2874
|
-
url: "articles/" +
|
2848
|
+
url: "articles/" + ParameterHistoryRetrieveParams.parameterHistoryId + "?" + queryArray.join("&"),
|
2875
2849
|
body: void 0,
|
2876
2850
|
authenticationNotOptional: false
|
2877
2851
|
},
|
2878
|
-
|
2852
|
+
ParameterHistoryRetrieveOptions
|
2879
2853
|
);
|
2880
2854
|
}
|
2881
2855
|
};
|
@@ -3128,7 +3102,7 @@ var Juhuu = class {
|
|
3128
3102
|
this.boldLock = new BoldLockService(config);
|
3129
3103
|
this.tapkey = new TapkeyService(config);
|
3130
3104
|
this.articleGroups = new ArticleGroupGroupsService(config);
|
3131
|
-
this.
|
3105
|
+
this.parameterHistories = new ParameterHistoriesService(config);
|
3132
3106
|
this.apiKeys = new ApiKeysService(config);
|
3133
3107
|
}
|
3134
3108
|
/**
|
@@ -3161,7 +3135,7 @@ var Juhuu = class {
|
|
3161
3135
|
boldLock;
|
3162
3136
|
tapkey;
|
3163
3137
|
articleGroups;
|
3164
|
-
|
3138
|
+
parameterHistories;
|
3165
3139
|
apiKeys;
|
3166
3140
|
};
|
3167
3141
|
var JUHUU;
|
package/dist/index.mjs
CHANGED
@@ -1215,30 +1215,6 @@ var DevicesService = class extends Service {
|
|
1215
1215
|
DeviceMessageOptions
|
1216
1216
|
);
|
1217
1217
|
}
|
1218
|
-
async parameterUpdate(DeviceParameterParams, DeviceParameterOptions) {
|
1219
|
-
return await super.sendRequest(
|
1220
|
-
{
|
1221
|
-
method: "PATCH",
|
1222
|
-
url: "devices/" + DeviceParameterParams.deviceId + "/parameter/" + DeviceParameterParams.parameterName,
|
1223
|
-
body: {
|
1224
|
-
value: DeviceParameterParams.value
|
1225
|
-
},
|
1226
|
-
authenticationNotOptional: true
|
1227
|
-
},
|
1228
|
-
DeviceParameterOptions
|
1229
|
-
);
|
1230
|
-
}
|
1231
|
-
async commandExecute(DeviceCommandExecuteParams, DeviceCommandExecuteOptions) {
|
1232
|
-
return await super.sendRequest(
|
1233
|
-
{
|
1234
|
-
method: "POST",
|
1235
|
-
url: "devices/" + DeviceCommandExecuteParams.deviceId + "/command/" + DeviceCommandExecuteParams.commandName,
|
1236
|
-
body: {},
|
1237
|
-
authenticationNotOptional: true
|
1238
|
-
},
|
1239
|
-
DeviceCommandExecuteOptions
|
1240
|
-
);
|
1241
|
-
}
|
1242
1218
|
async nodeExecute(DeviceNodeExecuteParams, DeviceNodeExecuteOptions) {
|
1243
1219
|
return await super.sendRequest(
|
1244
1220
|
{
|
@@ -2789,23 +2765,21 @@ var ArticleGroupGroupsService = class extends Service {
|
|
2789
2765
|
}
|
2790
2766
|
};
|
2791
2767
|
|
2792
|
-
// src/
|
2793
|
-
var
|
2768
|
+
// src/parameterHistories/parameterHistories.service.ts
|
2769
|
+
var ParameterHistoriesService = class extends Service {
|
2794
2770
|
constructor(config) {
|
2795
2771
|
super(config);
|
2796
2772
|
}
|
2797
|
-
async list(
|
2773
|
+
async list(ParameterHistoryListParams, ParameterHistoryListOptions) {
|
2798
2774
|
const queryArray = [];
|
2799
|
-
if (
|
2800
|
-
queryArray.push("limit=" +
|
2775
|
+
if (ParameterHistoryListOptions?.limit !== void 0) {
|
2776
|
+
queryArray.push("limit=" + ParameterHistoryListOptions.limit);
|
2801
2777
|
}
|
2802
|
-
if (
|
2803
|
-
queryArray.push(
|
2804
|
-
"propertyId=" + DeviceParameterHistoryListParams.propertyId
|
2805
|
-
);
|
2778
|
+
if (ParameterHistoryListParams?.propertyId !== void 0) {
|
2779
|
+
queryArray.push("propertyId=" + ParameterHistoryListParams.propertyId);
|
2806
2780
|
}
|
2807
|
-
if (
|
2808
|
-
queryArray.push("skip=" +
|
2781
|
+
if (ParameterHistoryListOptions?.skip !== void 0) {
|
2782
|
+
queryArray.push("skip=" + ParameterHistoryListOptions.skip);
|
2809
2783
|
}
|
2810
2784
|
return await super.sendRequest(
|
2811
2785
|
{
|
@@ -2814,24 +2788,24 @@ var DeviceParameterHistoriesService = class extends Service {
|
|
2814
2788
|
body: void 0,
|
2815
2789
|
authenticationNotOptional: false
|
2816
2790
|
},
|
2817
|
-
|
2791
|
+
ParameterHistoryListOptions
|
2818
2792
|
);
|
2819
2793
|
}
|
2820
|
-
async retrieve(
|
2794
|
+
async retrieve(ParameterHistoryRetrieveParams, ParameterHistoryRetrieveOptions) {
|
2821
2795
|
const queryArray = [];
|
2822
|
-
if (
|
2796
|
+
if (ParameterHistoryRetrieveOptions?.expand !== void 0) {
|
2823
2797
|
queryArray.push(
|
2824
|
-
"expand=" +
|
2798
|
+
"expand=" + ParameterHistoryRetrieveOptions.expand.join(",")
|
2825
2799
|
);
|
2826
2800
|
}
|
2827
2801
|
return await super.sendRequest(
|
2828
2802
|
{
|
2829
2803
|
method: "GET",
|
2830
|
-
url: "articles/" +
|
2804
|
+
url: "articles/" + ParameterHistoryRetrieveParams.parameterHistoryId + "?" + queryArray.join("&"),
|
2831
2805
|
body: void 0,
|
2832
2806
|
authenticationNotOptional: false
|
2833
2807
|
},
|
2834
|
-
|
2808
|
+
ParameterHistoryRetrieveOptions
|
2835
2809
|
);
|
2836
2810
|
}
|
2837
2811
|
};
|
@@ -3084,7 +3058,7 @@ var Juhuu = class {
|
|
3084
3058
|
this.boldLock = new BoldLockService(config);
|
3085
3059
|
this.tapkey = new TapkeyService(config);
|
3086
3060
|
this.articleGroups = new ArticleGroupGroupsService(config);
|
3087
|
-
this.
|
3061
|
+
this.parameterHistories = new ParameterHistoriesService(config);
|
3088
3062
|
this.apiKeys = new ApiKeysService(config);
|
3089
3063
|
}
|
3090
3064
|
/**
|
@@ -3117,7 +3091,7 @@ var Juhuu = class {
|
|
3117
3091
|
boldLock;
|
3118
3092
|
tapkey;
|
3119
3093
|
articleGroups;
|
3120
|
-
|
3094
|
+
parameterHistories;
|
3121
3095
|
apiKeys;
|
3122
3096
|
};
|
3123
3097
|
var JUHUU;
|