@juhuu/sdk-ts 1.2.155 → 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 +129 -86
- package/dist/index.d.ts +129 -86
- 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 {
|
@@ -1218,7 +1189,9 @@ declare namespace JUHUU {
|
|
1218
1189
|
licenseArray?: License[];
|
1219
1190
|
};
|
1220
1191
|
type Options = JUHUU.RequestOptions;
|
1221
|
-
type Response =
|
1192
|
+
type Response = {
|
1193
|
+
user: JUHUU.User.Object;
|
1194
|
+
};
|
1222
1195
|
}
|
1223
1196
|
export namespace List {
|
1224
1197
|
type Params = {
|
@@ -2864,7 +2837,7 @@ declare namespace JUHUU {
|
|
2864
2837
|
name: string;
|
2865
2838
|
description: string | null;
|
2866
2839
|
status: DeviceStatus;
|
2867
|
-
|
2840
|
+
parameterIdArray: string[];
|
2868
2841
|
version: number;
|
2869
2842
|
deviceTemplateId: string;
|
2870
2843
|
source: "fluctuo" | null;
|
@@ -2959,27 +2932,6 @@ declare namespace JUHUU {
|
|
2959
2932
|
type Options = JUHUU.RequestOptions;
|
2960
2933
|
type Response = void;
|
2961
2934
|
}
|
2962
|
-
namespace ParameterUpdate {
|
2963
|
-
type Params = {
|
2964
|
-
deviceId: string;
|
2965
|
-
parameterName: string;
|
2966
|
-
value: string | number | boolean;
|
2967
|
-
};
|
2968
|
-
type Options = JUHUU.RequestOptions;
|
2969
|
-
type Response = {
|
2970
|
-
device: JUHUU.Device.Object;
|
2971
|
-
};
|
2972
|
-
}
|
2973
|
-
namespace CommandExecute {
|
2974
|
-
type Params = {
|
2975
|
-
deviceId: string;
|
2976
|
-
commandName: string;
|
2977
|
-
};
|
2978
|
-
type Options = JUHUU.RequestOptions;
|
2979
|
-
type Response = {
|
2980
|
-
device: JUHUU.Device.Object;
|
2981
|
-
};
|
2982
|
-
}
|
2983
2935
|
namespace NodeExecute {
|
2984
2936
|
type Params = {
|
2985
2937
|
deviceId: string;
|
@@ -3135,32 +3087,124 @@ declare namespace JUHUU {
|
|
3135
3087
|
}
|
3136
3088
|
export { };
|
3137
3089
|
}
|
3138
|
-
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 {
|
3139
3183
|
type Object = {
|
3140
3184
|
id: string;
|
3141
|
-
readonly object: "
|
3142
|
-
|
3185
|
+
readonly object: "parameterAnomalyGroup";
|
3186
|
+
parameterAnomalyGroupTrackerId: string | null;
|
3143
3187
|
propertyId: string;
|
3144
3188
|
};
|
3145
3189
|
namespace Create {
|
3146
3190
|
type Params = {
|
3147
3191
|
propertyId: string;
|
3148
|
-
|
3192
|
+
parameterAnomalyGroupTrackerId?: string;
|
3149
3193
|
};
|
3150
3194
|
type Options = JUHUU.RequestOptions;
|
3151
3195
|
type Response = {
|
3152
|
-
|
3196
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3153
3197
|
};
|
3154
3198
|
}
|
3155
3199
|
namespace Retrieve {
|
3156
3200
|
type Params = {
|
3157
|
-
|
3201
|
+
parameterAnomalyGroupId: string;
|
3158
3202
|
};
|
3159
3203
|
type Options = {
|
3160
3204
|
expand?: Array<"property">;
|
3161
3205
|
} & JUHUU.RequestOptions;
|
3162
3206
|
type Response = {
|
3163
|
-
|
3207
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3164
3208
|
};
|
3165
3209
|
}
|
3166
3210
|
namespace List {
|
@@ -3172,34 +3216,34 @@ declare namespace JUHUU {
|
|
3172
3216
|
limit?: number;
|
3173
3217
|
} & JUHUU.RequestOptions;
|
3174
3218
|
type Response = {
|
3175
|
-
|
3219
|
+
parameterAnomalyGroupArray: JUHUU.ParameterAnomalyGroup.Object[];
|
3176
3220
|
count: number;
|
3177
3221
|
hasMore: boolean;
|
3178
3222
|
};
|
3179
3223
|
}
|
3180
3224
|
namespace Update {
|
3181
3225
|
type Params = {
|
3182
|
-
|
3226
|
+
parameterAnomalyGroupId: string;
|
3183
3227
|
};
|
3184
3228
|
type Options = JUHUU.RequestOptions;
|
3185
3229
|
type Response = {
|
3186
|
-
|
3230
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3187
3231
|
};
|
3188
3232
|
}
|
3189
3233
|
namespace Delete {
|
3190
3234
|
type Params = {
|
3191
|
-
|
3235
|
+
parameterAnomalyGroupId?: string;
|
3192
3236
|
};
|
3193
3237
|
type Options = JUHUU.RequestOptions;
|
3194
3238
|
type Response = {
|
3195
|
-
|
3239
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3196
3240
|
};
|
3197
3241
|
}
|
3198
3242
|
}
|
3199
|
-
namespace
|
3243
|
+
namespace ParameterAnomalyGroupTracker {
|
3200
3244
|
type Object = {
|
3201
3245
|
id: string;
|
3202
|
-
readonly object: "
|
3246
|
+
readonly object: "parameterAnomalyGroupTracker";
|
3203
3247
|
nextRunAt: Date | null;
|
3204
3248
|
title: string;
|
3205
3249
|
propertyId: string;
|
@@ -3210,18 +3254,18 @@ declare namespace JUHUU {
|
|
3210
3254
|
};
|
3211
3255
|
type Options = JUHUU.RequestOptions;
|
3212
3256
|
type Response = {
|
3213
|
-
|
3257
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3214
3258
|
};
|
3215
3259
|
}
|
3216
3260
|
namespace Retrieve {
|
3217
3261
|
type Params = {
|
3218
|
-
|
3262
|
+
parameterAnomalyGroupTrackerId: string;
|
3219
3263
|
};
|
3220
3264
|
type Options = {
|
3221
3265
|
expand?: Array<"property">;
|
3222
3266
|
} & JUHUU.RequestOptions;
|
3223
3267
|
type Response = {
|
3224
|
-
|
3268
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3225
3269
|
};
|
3226
3270
|
}
|
3227
3271
|
namespace List {
|
@@ -3233,48 +3277,48 @@ declare namespace JUHUU {
|
|
3233
3277
|
limit?: number;
|
3234
3278
|
} & JUHUU.RequestOptions;
|
3235
3279
|
type Response = {
|
3236
|
-
|
3280
|
+
parameterAnomalyGroupTrackerArray: JUHUU.ParameterAnomalyGroupTracker.Object[];
|
3237
3281
|
count: number;
|
3238
3282
|
hasMore: boolean;
|
3239
3283
|
};
|
3240
3284
|
}
|
3241
3285
|
namespace Update {
|
3242
3286
|
type Params = {
|
3243
|
-
|
3287
|
+
parameterAnomalyGroupTrackerId: string;
|
3244
3288
|
title: string;
|
3245
3289
|
};
|
3246
3290
|
type Options = JUHUU.RequestOptions;
|
3247
3291
|
type Response = {
|
3248
|
-
|
3292
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3249
3293
|
};
|
3250
3294
|
}
|
3251
3295
|
namespace Delete {
|
3252
3296
|
type Params = {
|
3253
|
-
|
3297
|
+
parameterAnomalyGroupTrackerId?: string;
|
3254
3298
|
};
|
3255
3299
|
type Options = JUHUU.RequestOptions;
|
3256
3300
|
type Response = {
|
3257
|
-
|
3301
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3258
3302
|
};
|
3259
3303
|
}
|
3260
3304
|
}
|
3261
|
-
namespace
|
3305
|
+
namespace ParameterHistory {
|
3262
3306
|
type Object = {
|
3263
3307
|
id: string;
|
3264
|
-
readonly object: "
|
3265
|
-
|
3308
|
+
readonly object: "parameterHistory";
|
3309
|
+
parameterId: string;
|
3266
3310
|
deviceId: string;
|
3267
3311
|
propertyId: string;
|
3268
3312
|
};
|
3269
3313
|
namespace Retrieve {
|
3270
3314
|
type Params = {
|
3271
|
-
|
3315
|
+
parameterHistoryId: string;
|
3272
3316
|
};
|
3273
3317
|
type Options = {
|
3274
3318
|
expand?: Array<"property">;
|
3275
3319
|
} & JUHUU.RequestOptions;
|
3276
3320
|
type Response = {
|
3277
|
-
|
3321
|
+
parameterHistory: JUHUU.ParameterHistory.Object;
|
3278
3322
|
};
|
3279
3323
|
}
|
3280
3324
|
namespace List {
|
@@ -3286,7 +3330,7 @@ declare namespace JUHUU {
|
|
3286
3330
|
limit?: number;
|
3287
3331
|
} & JUHUU.RequestOptions;
|
3288
3332
|
type Response = {
|
3289
|
-
|
3333
|
+
parameterHistoryArray: JUHUU.ParameterHistory.Object[];
|
3290
3334
|
count: number;
|
3291
3335
|
hasMore: boolean;
|
3292
3336
|
};
|
@@ -3299,7 +3343,6 @@ declare namespace JUHUU {
|
|
3299
3343
|
productId: string | null;
|
3300
3344
|
name: string;
|
3301
3345
|
propertyId: string;
|
3302
|
-
parameterArray: Parameter[];
|
3303
3346
|
nodeArray: GraphNode[];
|
3304
3347
|
userLayoutBlockArray: LayoutBlock[];
|
3305
3348
|
userLayoutBlockActionButton: Layout.Button.General | null;
|
@@ -3446,4 +3489,4 @@ declare namespace JUHUU {
|
|
3446
3489
|
}
|
3447
3490
|
}
|
3448
3491
|
|
3449
|
-
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 {
|
@@ -1218,7 +1189,9 @@ declare namespace JUHUU {
|
|
1218
1189
|
licenseArray?: License[];
|
1219
1190
|
};
|
1220
1191
|
type Options = JUHUU.RequestOptions;
|
1221
|
-
type Response =
|
1192
|
+
type Response = {
|
1193
|
+
user: JUHUU.User.Object;
|
1194
|
+
};
|
1222
1195
|
}
|
1223
1196
|
export namespace List {
|
1224
1197
|
type Params = {
|
@@ -2864,7 +2837,7 @@ declare namespace JUHUU {
|
|
2864
2837
|
name: string;
|
2865
2838
|
description: string | null;
|
2866
2839
|
status: DeviceStatus;
|
2867
|
-
|
2840
|
+
parameterIdArray: string[];
|
2868
2841
|
version: number;
|
2869
2842
|
deviceTemplateId: string;
|
2870
2843
|
source: "fluctuo" | null;
|
@@ -2959,27 +2932,6 @@ declare namespace JUHUU {
|
|
2959
2932
|
type Options = JUHUU.RequestOptions;
|
2960
2933
|
type Response = void;
|
2961
2934
|
}
|
2962
|
-
namespace ParameterUpdate {
|
2963
|
-
type Params = {
|
2964
|
-
deviceId: string;
|
2965
|
-
parameterName: string;
|
2966
|
-
value: string | number | boolean;
|
2967
|
-
};
|
2968
|
-
type Options = JUHUU.RequestOptions;
|
2969
|
-
type Response = {
|
2970
|
-
device: JUHUU.Device.Object;
|
2971
|
-
};
|
2972
|
-
}
|
2973
|
-
namespace CommandExecute {
|
2974
|
-
type Params = {
|
2975
|
-
deviceId: string;
|
2976
|
-
commandName: string;
|
2977
|
-
};
|
2978
|
-
type Options = JUHUU.RequestOptions;
|
2979
|
-
type Response = {
|
2980
|
-
device: JUHUU.Device.Object;
|
2981
|
-
};
|
2982
|
-
}
|
2983
2935
|
namespace NodeExecute {
|
2984
2936
|
type Params = {
|
2985
2937
|
deviceId: string;
|
@@ -3135,32 +3087,124 @@ declare namespace JUHUU {
|
|
3135
3087
|
}
|
3136
3088
|
export { };
|
3137
3089
|
}
|
3138
|
-
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 {
|
3139
3183
|
type Object = {
|
3140
3184
|
id: string;
|
3141
|
-
readonly object: "
|
3142
|
-
|
3185
|
+
readonly object: "parameterAnomalyGroup";
|
3186
|
+
parameterAnomalyGroupTrackerId: string | null;
|
3143
3187
|
propertyId: string;
|
3144
3188
|
};
|
3145
3189
|
namespace Create {
|
3146
3190
|
type Params = {
|
3147
3191
|
propertyId: string;
|
3148
|
-
|
3192
|
+
parameterAnomalyGroupTrackerId?: string;
|
3149
3193
|
};
|
3150
3194
|
type Options = JUHUU.RequestOptions;
|
3151
3195
|
type Response = {
|
3152
|
-
|
3196
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3153
3197
|
};
|
3154
3198
|
}
|
3155
3199
|
namespace Retrieve {
|
3156
3200
|
type Params = {
|
3157
|
-
|
3201
|
+
parameterAnomalyGroupId: string;
|
3158
3202
|
};
|
3159
3203
|
type Options = {
|
3160
3204
|
expand?: Array<"property">;
|
3161
3205
|
} & JUHUU.RequestOptions;
|
3162
3206
|
type Response = {
|
3163
|
-
|
3207
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3164
3208
|
};
|
3165
3209
|
}
|
3166
3210
|
namespace List {
|
@@ -3172,34 +3216,34 @@ declare namespace JUHUU {
|
|
3172
3216
|
limit?: number;
|
3173
3217
|
} & JUHUU.RequestOptions;
|
3174
3218
|
type Response = {
|
3175
|
-
|
3219
|
+
parameterAnomalyGroupArray: JUHUU.ParameterAnomalyGroup.Object[];
|
3176
3220
|
count: number;
|
3177
3221
|
hasMore: boolean;
|
3178
3222
|
};
|
3179
3223
|
}
|
3180
3224
|
namespace Update {
|
3181
3225
|
type Params = {
|
3182
|
-
|
3226
|
+
parameterAnomalyGroupId: string;
|
3183
3227
|
};
|
3184
3228
|
type Options = JUHUU.RequestOptions;
|
3185
3229
|
type Response = {
|
3186
|
-
|
3230
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3187
3231
|
};
|
3188
3232
|
}
|
3189
3233
|
namespace Delete {
|
3190
3234
|
type Params = {
|
3191
|
-
|
3235
|
+
parameterAnomalyGroupId?: string;
|
3192
3236
|
};
|
3193
3237
|
type Options = JUHUU.RequestOptions;
|
3194
3238
|
type Response = {
|
3195
|
-
|
3239
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3196
3240
|
};
|
3197
3241
|
}
|
3198
3242
|
}
|
3199
|
-
namespace
|
3243
|
+
namespace ParameterAnomalyGroupTracker {
|
3200
3244
|
type Object = {
|
3201
3245
|
id: string;
|
3202
|
-
readonly object: "
|
3246
|
+
readonly object: "parameterAnomalyGroupTracker";
|
3203
3247
|
nextRunAt: Date | null;
|
3204
3248
|
title: string;
|
3205
3249
|
propertyId: string;
|
@@ -3210,18 +3254,18 @@ declare namespace JUHUU {
|
|
3210
3254
|
};
|
3211
3255
|
type Options = JUHUU.RequestOptions;
|
3212
3256
|
type Response = {
|
3213
|
-
|
3257
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3214
3258
|
};
|
3215
3259
|
}
|
3216
3260
|
namespace Retrieve {
|
3217
3261
|
type Params = {
|
3218
|
-
|
3262
|
+
parameterAnomalyGroupTrackerId: string;
|
3219
3263
|
};
|
3220
3264
|
type Options = {
|
3221
3265
|
expand?: Array<"property">;
|
3222
3266
|
} & JUHUU.RequestOptions;
|
3223
3267
|
type Response = {
|
3224
|
-
|
3268
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3225
3269
|
};
|
3226
3270
|
}
|
3227
3271
|
namespace List {
|
@@ -3233,48 +3277,48 @@ declare namespace JUHUU {
|
|
3233
3277
|
limit?: number;
|
3234
3278
|
} & JUHUU.RequestOptions;
|
3235
3279
|
type Response = {
|
3236
|
-
|
3280
|
+
parameterAnomalyGroupTrackerArray: JUHUU.ParameterAnomalyGroupTracker.Object[];
|
3237
3281
|
count: number;
|
3238
3282
|
hasMore: boolean;
|
3239
3283
|
};
|
3240
3284
|
}
|
3241
3285
|
namespace Update {
|
3242
3286
|
type Params = {
|
3243
|
-
|
3287
|
+
parameterAnomalyGroupTrackerId: string;
|
3244
3288
|
title: string;
|
3245
3289
|
};
|
3246
3290
|
type Options = JUHUU.RequestOptions;
|
3247
3291
|
type Response = {
|
3248
|
-
|
3292
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3249
3293
|
};
|
3250
3294
|
}
|
3251
3295
|
namespace Delete {
|
3252
3296
|
type Params = {
|
3253
|
-
|
3297
|
+
parameterAnomalyGroupTrackerId?: string;
|
3254
3298
|
};
|
3255
3299
|
type Options = JUHUU.RequestOptions;
|
3256
3300
|
type Response = {
|
3257
|
-
|
3301
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3258
3302
|
};
|
3259
3303
|
}
|
3260
3304
|
}
|
3261
|
-
namespace
|
3305
|
+
namespace ParameterHistory {
|
3262
3306
|
type Object = {
|
3263
3307
|
id: string;
|
3264
|
-
readonly object: "
|
3265
|
-
|
3308
|
+
readonly object: "parameterHistory";
|
3309
|
+
parameterId: string;
|
3266
3310
|
deviceId: string;
|
3267
3311
|
propertyId: string;
|
3268
3312
|
};
|
3269
3313
|
namespace Retrieve {
|
3270
3314
|
type Params = {
|
3271
|
-
|
3315
|
+
parameterHistoryId: string;
|
3272
3316
|
};
|
3273
3317
|
type Options = {
|
3274
3318
|
expand?: Array<"property">;
|
3275
3319
|
} & JUHUU.RequestOptions;
|
3276
3320
|
type Response = {
|
3277
|
-
|
3321
|
+
parameterHistory: JUHUU.ParameterHistory.Object;
|
3278
3322
|
};
|
3279
3323
|
}
|
3280
3324
|
namespace List {
|
@@ -3286,7 +3330,7 @@ declare namespace JUHUU {
|
|
3286
3330
|
limit?: number;
|
3287
3331
|
} & JUHUU.RequestOptions;
|
3288
3332
|
type Response = {
|
3289
|
-
|
3333
|
+
parameterHistoryArray: JUHUU.ParameterHistory.Object[];
|
3290
3334
|
count: number;
|
3291
3335
|
hasMore: boolean;
|
3292
3336
|
};
|
@@ -3299,7 +3343,6 @@ declare namespace JUHUU {
|
|
3299
3343
|
productId: string | null;
|
3300
3344
|
name: string;
|
3301
3345
|
propertyId: string;
|
3302
|
-
parameterArray: Parameter[];
|
3303
3346
|
nodeArray: GraphNode[];
|
3304
3347
|
userLayoutBlockArray: LayoutBlock[];
|
3305
3348
|
userLayoutBlockActionButton: Layout.Button.General | null;
|
@@ -3446,4 +3489,4 @@ declare namespace JUHUU {
|
|
3446
3489
|
}
|
3447
3490
|
}
|
3448
3491
|
|
3449
|
-
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;
|