@juhuu/sdk-ts 1.2.156 → 1.2.158
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 +136 -85
- package/dist/index.d.ts +136 -85
- package/dist/index.js +100 -43
- package/dist/index.mjs +100 -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 {
|
@@ -878,6 +849,15 @@ declare class ApiKeysService extends Service {
|
|
878
849
|
update(ApiKeyUpdateParams: JUHUU.ApiKey.Update.Params, ApiKeyUpdateOptions?: JUHUU.ApiKey.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.ApiKey.Update.Response>>;
|
879
850
|
}
|
880
851
|
|
852
|
+
declare class ParametersService extends Service {
|
853
|
+
constructor(config: JUHUU.SetupConfig);
|
854
|
+
create(ParameterCreateParams: JUHUU.Parameter.Create.Params, ParameterCreateOptions?: JUHUU.Parameter.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.Create.Response>>;
|
855
|
+
list(ParameterListParams: JUHUU.Parameter.List.Params, ParameterListOptions?: JUHUU.Parameter.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.List.Response>>;
|
856
|
+
retrieve(ParameterRetrieveParams: JUHUU.Parameter.Retrieve.Params, ParameterRetrieveOptions?: JUHUU.Parameter.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.Retrieve.Response>>;
|
857
|
+
update(ParameterUpdateParams: JUHUU.Parameter.Update.Params, ParameterUpdateOptions?: JUHUU.Parameter.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.Update.Response>>;
|
858
|
+
delete(ParameterDeleteParams: JUHUU.Parameter.Delete.Params, ParameterDeleteOptions?: JUHUU.Parameter.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.Delete.Response>>;
|
859
|
+
}
|
860
|
+
|
881
861
|
declare class Juhuu {
|
882
862
|
constructor(config: JUHUU.SetupConfig);
|
883
863
|
/**
|
@@ -910,8 +890,9 @@ declare class Juhuu {
|
|
910
890
|
readonly boldLock: BoldLockService;
|
911
891
|
readonly tapkey: TapkeyService;
|
912
892
|
readonly articleGroups: ArticleGroupGroupsService;
|
913
|
-
readonly
|
893
|
+
readonly parameterHistories: ParameterHistoriesService;
|
914
894
|
readonly apiKeys: ApiKeysService;
|
895
|
+
readonly parameters: ParametersService;
|
915
896
|
}
|
916
897
|
declare namespace JUHUU {
|
917
898
|
interface SetupConfig {
|
@@ -2866,7 +2847,7 @@ declare namespace JUHUU {
|
|
2866
2847
|
name: string;
|
2867
2848
|
description: string | null;
|
2868
2849
|
status: DeviceStatus;
|
2869
|
-
|
2850
|
+
parameterIdArray: string[];
|
2870
2851
|
version: number;
|
2871
2852
|
deviceTemplateId: string;
|
2872
2853
|
source: "fluctuo" | null;
|
@@ -2961,27 +2942,6 @@ declare namespace JUHUU {
|
|
2961
2942
|
type Options = JUHUU.RequestOptions;
|
2962
2943
|
type Response = void;
|
2963
2944
|
}
|
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
2945
|
namespace NodeExecute {
|
2986
2946
|
type Params = {
|
2987
2947
|
deviceId: string;
|
@@ -3137,32 +3097,124 @@ declare namespace JUHUU {
|
|
3137
3097
|
}
|
3138
3098
|
export { };
|
3139
3099
|
}
|
3140
|
-
namespace
|
3100
|
+
namespace Parameter {
|
3101
|
+
type Base = {
|
3102
|
+
id: string;
|
3103
|
+
readonly object: "parameter";
|
3104
|
+
description: string | null;
|
3105
|
+
name: string | null;
|
3106
|
+
propertyId: string;
|
3107
|
+
lastUpdatedAt: Date | null;
|
3108
|
+
parameterAnomalyGroupIdArray: string[];
|
3109
|
+
createdAt: Date | null;
|
3110
|
+
reference: string | null;
|
3111
|
+
};
|
3112
|
+
export interface Text extends Base {
|
3113
|
+
type: "text";
|
3114
|
+
currentValue: string;
|
3115
|
+
}
|
3116
|
+
export interface Number extends Base {
|
3117
|
+
type: "number";
|
3118
|
+
currentValue: number;
|
3119
|
+
}
|
3120
|
+
export interface Enum extends Base {
|
3121
|
+
type: "enum";
|
3122
|
+
currentValue: string;
|
3123
|
+
enumArray: string[];
|
3124
|
+
}
|
3125
|
+
export interface Boolean extends Base {
|
3126
|
+
type: "boolean";
|
3127
|
+
currentValue: boolean;
|
3128
|
+
}
|
3129
|
+
export type Object = Number | Boolean | Enum | Text;
|
3130
|
+
export namespace Create {
|
3131
|
+
type Params = {
|
3132
|
+
propertyId: string;
|
3133
|
+
type: JUHUU.Parameter.Object["type"];
|
3134
|
+
name?: string;
|
3135
|
+
description?: string;
|
3136
|
+
currentValue?: boolean | string | number;
|
3137
|
+
enumArray?: string[];
|
3138
|
+
reference?: string;
|
3139
|
+
};
|
3140
|
+
type Options = JUHUU.RequestOptions;
|
3141
|
+
type Response = {
|
3142
|
+
parameter: JUHUU.Parameter.Object;
|
3143
|
+
};
|
3144
|
+
}
|
3145
|
+
export namespace Retrieve {
|
3146
|
+
type Params = {
|
3147
|
+
parameterId: string;
|
3148
|
+
};
|
3149
|
+
type Options = {
|
3150
|
+
expand: Array<"property">;
|
3151
|
+
} & JUHUU.RequestOptions;
|
3152
|
+
type Response = {
|
3153
|
+
parameter: JUHUU.Parameter.Object;
|
3154
|
+
};
|
3155
|
+
}
|
3156
|
+
export namespace List {
|
3157
|
+
type Params = {
|
3158
|
+
propertyId?: string;
|
3159
|
+
};
|
3160
|
+
type Options = {
|
3161
|
+
skip?: number;
|
3162
|
+
limit?: number;
|
3163
|
+
} & JUHUU.RequestOptions;
|
3164
|
+
type Response = {
|
3165
|
+
parameterArray: JUHUU.Parameter.Object[];
|
3166
|
+
count: number;
|
3167
|
+
hasMore: boolean;
|
3168
|
+
};
|
3169
|
+
}
|
3170
|
+
export namespace Update {
|
3171
|
+
type Params = {
|
3172
|
+
parameterId: string;
|
3173
|
+
name?: string;
|
3174
|
+
currentValue?: string | boolean | number;
|
3175
|
+
};
|
3176
|
+
type Options = JUHUU.RequestOptions;
|
3177
|
+
type Response = {
|
3178
|
+
parameter: JUHUU.Parameter.Object;
|
3179
|
+
};
|
3180
|
+
}
|
3181
|
+
export namespace Delete {
|
3182
|
+
type Params = {
|
3183
|
+
parameterId?: string;
|
3184
|
+
};
|
3185
|
+
type Options = JUHUU.RequestOptions;
|
3186
|
+
type Response = {
|
3187
|
+
parameter: JUHUU.Parameter.Object;
|
3188
|
+
};
|
3189
|
+
}
|
3190
|
+
export { };
|
3191
|
+
}
|
3192
|
+
namespace ParameterAnomalyGroup {
|
3141
3193
|
type Object = {
|
3142
3194
|
id: string;
|
3143
|
-
readonly object: "
|
3144
|
-
|
3195
|
+
readonly object: "parameterAnomalyGroup";
|
3196
|
+
parameterAnomalyGroupTrackerId: string | null;
|
3145
3197
|
propertyId: string;
|
3146
3198
|
};
|
3147
3199
|
namespace Create {
|
3148
3200
|
type Params = {
|
3149
3201
|
propertyId: string;
|
3150
|
-
|
3202
|
+
parameterAnomalyGroupTrackerId?: string;
|
3151
3203
|
};
|
3152
3204
|
type Options = JUHUU.RequestOptions;
|
3153
3205
|
type Response = {
|
3154
|
-
|
3206
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3155
3207
|
};
|
3156
3208
|
}
|
3157
3209
|
namespace Retrieve {
|
3158
3210
|
type Params = {
|
3159
|
-
|
3211
|
+
parameterAnomalyGroupId: string;
|
3160
3212
|
};
|
3161
3213
|
type Options = {
|
3162
3214
|
expand?: Array<"property">;
|
3163
3215
|
} & JUHUU.RequestOptions;
|
3164
3216
|
type Response = {
|
3165
|
-
|
3217
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3166
3218
|
};
|
3167
3219
|
}
|
3168
3220
|
namespace List {
|
@@ -3174,34 +3226,34 @@ declare namespace JUHUU {
|
|
3174
3226
|
limit?: number;
|
3175
3227
|
} & JUHUU.RequestOptions;
|
3176
3228
|
type Response = {
|
3177
|
-
|
3229
|
+
parameterAnomalyGroupArray: JUHUU.ParameterAnomalyGroup.Object[];
|
3178
3230
|
count: number;
|
3179
3231
|
hasMore: boolean;
|
3180
3232
|
};
|
3181
3233
|
}
|
3182
3234
|
namespace Update {
|
3183
3235
|
type Params = {
|
3184
|
-
|
3236
|
+
parameterAnomalyGroupId: string;
|
3185
3237
|
};
|
3186
3238
|
type Options = JUHUU.RequestOptions;
|
3187
3239
|
type Response = {
|
3188
|
-
|
3240
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3189
3241
|
};
|
3190
3242
|
}
|
3191
3243
|
namespace Delete {
|
3192
3244
|
type Params = {
|
3193
|
-
|
3245
|
+
parameterAnomalyGroupId?: string;
|
3194
3246
|
};
|
3195
3247
|
type Options = JUHUU.RequestOptions;
|
3196
3248
|
type Response = {
|
3197
|
-
|
3249
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3198
3250
|
};
|
3199
3251
|
}
|
3200
3252
|
}
|
3201
|
-
namespace
|
3253
|
+
namespace ParameterAnomalyGroupTracker {
|
3202
3254
|
type Object = {
|
3203
3255
|
id: string;
|
3204
|
-
readonly object: "
|
3256
|
+
readonly object: "parameterAnomalyGroupTracker";
|
3205
3257
|
nextRunAt: Date | null;
|
3206
3258
|
title: string;
|
3207
3259
|
propertyId: string;
|
@@ -3212,18 +3264,18 @@ declare namespace JUHUU {
|
|
3212
3264
|
};
|
3213
3265
|
type Options = JUHUU.RequestOptions;
|
3214
3266
|
type Response = {
|
3215
|
-
|
3267
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3216
3268
|
};
|
3217
3269
|
}
|
3218
3270
|
namespace Retrieve {
|
3219
3271
|
type Params = {
|
3220
|
-
|
3272
|
+
parameterAnomalyGroupTrackerId: string;
|
3221
3273
|
};
|
3222
3274
|
type Options = {
|
3223
3275
|
expand?: Array<"property">;
|
3224
3276
|
} & JUHUU.RequestOptions;
|
3225
3277
|
type Response = {
|
3226
|
-
|
3278
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3227
3279
|
};
|
3228
3280
|
}
|
3229
3281
|
namespace List {
|
@@ -3235,48 +3287,48 @@ declare namespace JUHUU {
|
|
3235
3287
|
limit?: number;
|
3236
3288
|
} & JUHUU.RequestOptions;
|
3237
3289
|
type Response = {
|
3238
|
-
|
3290
|
+
parameterAnomalyGroupTrackerArray: JUHUU.ParameterAnomalyGroupTracker.Object[];
|
3239
3291
|
count: number;
|
3240
3292
|
hasMore: boolean;
|
3241
3293
|
};
|
3242
3294
|
}
|
3243
3295
|
namespace Update {
|
3244
3296
|
type Params = {
|
3245
|
-
|
3297
|
+
parameterAnomalyGroupTrackerId: string;
|
3246
3298
|
title: string;
|
3247
3299
|
};
|
3248
3300
|
type Options = JUHUU.RequestOptions;
|
3249
3301
|
type Response = {
|
3250
|
-
|
3302
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3251
3303
|
};
|
3252
3304
|
}
|
3253
3305
|
namespace Delete {
|
3254
3306
|
type Params = {
|
3255
|
-
|
3307
|
+
parameterAnomalyGroupTrackerId?: string;
|
3256
3308
|
};
|
3257
3309
|
type Options = JUHUU.RequestOptions;
|
3258
3310
|
type Response = {
|
3259
|
-
|
3311
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3260
3312
|
};
|
3261
3313
|
}
|
3262
3314
|
}
|
3263
|
-
namespace
|
3315
|
+
namespace ParameterHistory {
|
3264
3316
|
type Object = {
|
3265
3317
|
id: string;
|
3266
|
-
readonly object: "
|
3267
|
-
|
3318
|
+
readonly object: "parameterHistory";
|
3319
|
+
parameterId: string;
|
3268
3320
|
deviceId: string;
|
3269
3321
|
propertyId: string;
|
3270
3322
|
};
|
3271
3323
|
namespace Retrieve {
|
3272
3324
|
type Params = {
|
3273
|
-
|
3325
|
+
parameterHistoryId: string;
|
3274
3326
|
};
|
3275
3327
|
type Options = {
|
3276
3328
|
expand?: Array<"property">;
|
3277
3329
|
} & JUHUU.RequestOptions;
|
3278
3330
|
type Response = {
|
3279
|
-
|
3331
|
+
parameterHistory: JUHUU.ParameterHistory.Object;
|
3280
3332
|
};
|
3281
3333
|
}
|
3282
3334
|
namespace List {
|
@@ -3288,7 +3340,7 @@ declare namespace JUHUU {
|
|
3288
3340
|
limit?: number;
|
3289
3341
|
} & JUHUU.RequestOptions;
|
3290
3342
|
type Response = {
|
3291
|
-
|
3343
|
+
parameterHistoryArray: JUHUU.ParameterHistory.Object[];
|
3292
3344
|
count: number;
|
3293
3345
|
hasMore: boolean;
|
3294
3346
|
};
|
@@ -3301,7 +3353,6 @@ declare namespace JUHUU {
|
|
3301
3353
|
productId: string | null;
|
3302
3354
|
name: string;
|
3303
3355
|
propertyId: string;
|
3304
|
-
parameterArray: Parameter[];
|
3305
3356
|
nodeArray: GraphNode[];
|
3306
3357
|
userLayoutBlockArray: LayoutBlock[];
|
3307
3358
|
userLayoutBlockActionButton: Layout.Button.General | null;
|
@@ -3448,4 +3499,4 @@ declare namespace JUHUU {
|
|
3448
3499
|
}
|
3449
3500
|
}
|
3450
3501
|
|
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
|
3502
|
+
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 {
|
@@ -878,6 +849,15 @@ declare class ApiKeysService extends Service {
|
|
878
849
|
update(ApiKeyUpdateParams: JUHUU.ApiKey.Update.Params, ApiKeyUpdateOptions?: JUHUU.ApiKey.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.ApiKey.Update.Response>>;
|
879
850
|
}
|
880
851
|
|
852
|
+
declare class ParametersService extends Service {
|
853
|
+
constructor(config: JUHUU.SetupConfig);
|
854
|
+
create(ParameterCreateParams: JUHUU.Parameter.Create.Params, ParameterCreateOptions?: JUHUU.Parameter.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.Create.Response>>;
|
855
|
+
list(ParameterListParams: JUHUU.Parameter.List.Params, ParameterListOptions?: JUHUU.Parameter.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.List.Response>>;
|
856
|
+
retrieve(ParameterRetrieveParams: JUHUU.Parameter.Retrieve.Params, ParameterRetrieveOptions?: JUHUU.Parameter.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.Retrieve.Response>>;
|
857
|
+
update(ParameterUpdateParams: JUHUU.Parameter.Update.Params, ParameterUpdateOptions?: JUHUU.Parameter.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.Update.Response>>;
|
858
|
+
delete(ParameterDeleteParams: JUHUU.Parameter.Delete.Params, ParameterDeleteOptions?: JUHUU.Parameter.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Parameter.Delete.Response>>;
|
859
|
+
}
|
860
|
+
|
881
861
|
declare class Juhuu {
|
882
862
|
constructor(config: JUHUU.SetupConfig);
|
883
863
|
/**
|
@@ -910,8 +890,9 @@ declare class Juhuu {
|
|
910
890
|
readonly boldLock: BoldLockService;
|
911
891
|
readonly tapkey: TapkeyService;
|
912
892
|
readonly articleGroups: ArticleGroupGroupsService;
|
913
|
-
readonly
|
893
|
+
readonly parameterHistories: ParameterHistoriesService;
|
914
894
|
readonly apiKeys: ApiKeysService;
|
895
|
+
readonly parameters: ParametersService;
|
915
896
|
}
|
916
897
|
declare namespace JUHUU {
|
917
898
|
interface SetupConfig {
|
@@ -2866,7 +2847,7 @@ declare namespace JUHUU {
|
|
2866
2847
|
name: string;
|
2867
2848
|
description: string | null;
|
2868
2849
|
status: DeviceStatus;
|
2869
|
-
|
2850
|
+
parameterIdArray: string[];
|
2870
2851
|
version: number;
|
2871
2852
|
deviceTemplateId: string;
|
2872
2853
|
source: "fluctuo" | null;
|
@@ -2961,27 +2942,6 @@ declare namespace JUHUU {
|
|
2961
2942
|
type Options = JUHUU.RequestOptions;
|
2962
2943
|
type Response = void;
|
2963
2944
|
}
|
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
2945
|
namespace NodeExecute {
|
2986
2946
|
type Params = {
|
2987
2947
|
deviceId: string;
|
@@ -3137,32 +3097,124 @@ declare namespace JUHUU {
|
|
3137
3097
|
}
|
3138
3098
|
export { };
|
3139
3099
|
}
|
3140
|
-
namespace
|
3100
|
+
namespace Parameter {
|
3101
|
+
type Base = {
|
3102
|
+
id: string;
|
3103
|
+
readonly object: "parameter";
|
3104
|
+
description: string | null;
|
3105
|
+
name: string | null;
|
3106
|
+
propertyId: string;
|
3107
|
+
lastUpdatedAt: Date | null;
|
3108
|
+
parameterAnomalyGroupIdArray: string[];
|
3109
|
+
createdAt: Date | null;
|
3110
|
+
reference: string | null;
|
3111
|
+
};
|
3112
|
+
export interface Text extends Base {
|
3113
|
+
type: "text";
|
3114
|
+
currentValue: string;
|
3115
|
+
}
|
3116
|
+
export interface Number extends Base {
|
3117
|
+
type: "number";
|
3118
|
+
currentValue: number;
|
3119
|
+
}
|
3120
|
+
export interface Enum extends Base {
|
3121
|
+
type: "enum";
|
3122
|
+
currentValue: string;
|
3123
|
+
enumArray: string[];
|
3124
|
+
}
|
3125
|
+
export interface Boolean extends Base {
|
3126
|
+
type: "boolean";
|
3127
|
+
currentValue: boolean;
|
3128
|
+
}
|
3129
|
+
export type Object = Number | Boolean | Enum | Text;
|
3130
|
+
export namespace Create {
|
3131
|
+
type Params = {
|
3132
|
+
propertyId: string;
|
3133
|
+
type: JUHUU.Parameter.Object["type"];
|
3134
|
+
name?: string;
|
3135
|
+
description?: string;
|
3136
|
+
currentValue?: boolean | string | number;
|
3137
|
+
enumArray?: string[];
|
3138
|
+
reference?: string;
|
3139
|
+
};
|
3140
|
+
type Options = JUHUU.RequestOptions;
|
3141
|
+
type Response = {
|
3142
|
+
parameter: JUHUU.Parameter.Object;
|
3143
|
+
};
|
3144
|
+
}
|
3145
|
+
export namespace Retrieve {
|
3146
|
+
type Params = {
|
3147
|
+
parameterId: string;
|
3148
|
+
};
|
3149
|
+
type Options = {
|
3150
|
+
expand: Array<"property">;
|
3151
|
+
} & JUHUU.RequestOptions;
|
3152
|
+
type Response = {
|
3153
|
+
parameter: JUHUU.Parameter.Object;
|
3154
|
+
};
|
3155
|
+
}
|
3156
|
+
export namespace List {
|
3157
|
+
type Params = {
|
3158
|
+
propertyId?: string;
|
3159
|
+
};
|
3160
|
+
type Options = {
|
3161
|
+
skip?: number;
|
3162
|
+
limit?: number;
|
3163
|
+
} & JUHUU.RequestOptions;
|
3164
|
+
type Response = {
|
3165
|
+
parameterArray: JUHUU.Parameter.Object[];
|
3166
|
+
count: number;
|
3167
|
+
hasMore: boolean;
|
3168
|
+
};
|
3169
|
+
}
|
3170
|
+
export namespace Update {
|
3171
|
+
type Params = {
|
3172
|
+
parameterId: string;
|
3173
|
+
name?: string;
|
3174
|
+
currentValue?: string | boolean | number;
|
3175
|
+
};
|
3176
|
+
type Options = JUHUU.RequestOptions;
|
3177
|
+
type Response = {
|
3178
|
+
parameter: JUHUU.Parameter.Object;
|
3179
|
+
};
|
3180
|
+
}
|
3181
|
+
export namespace Delete {
|
3182
|
+
type Params = {
|
3183
|
+
parameterId?: string;
|
3184
|
+
};
|
3185
|
+
type Options = JUHUU.RequestOptions;
|
3186
|
+
type Response = {
|
3187
|
+
parameter: JUHUU.Parameter.Object;
|
3188
|
+
};
|
3189
|
+
}
|
3190
|
+
export { };
|
3191
|
+
}
|
3192
|
+
namespace ParameterAnomalyGroup {
|
3141
3193
|
type Object = {
|
3142
3194
|
id: string;
|
3143
|
-
readonly object: "
|
3144
|
-
|
3195
|
+
readonly object: "parameterAnomalyGroup";
|
3196
|
+
parameterAnomalyGroupTrackerId: string | null;
|
3145
3197
|
propertyId: string;
|
3146
3198
|
};
|
3147
3199
|
namespace Create {
|
3148
3200
|
type Params = {
|
3149
3201
|
propertyId: string;
|
3150
|
-
|
3202
|
+
parameterAnomalyGroupTrackerId?: string;
|
3151
3203
|
};
|
3152
3204
|
type Options = JUHUU.RequestOptions;
|
3153
3205
|
type Response = {
|
3154
|
-
|
3206
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3155
3207
|
};
|
3156
3208
|
}
|
3157
3209
|
namespace Retrieve {
|
3158
3210
|
type Params = {
|
3159
|
-
|
3211
|
+
parameterAnomalyGroupId: string;
|
3160
3212
|
};
|
3161
3213
|
type Options = {
|
3162
3214
|
expand?: Array<"property">;
|
3163
3215
|
} & JUHUU.RequestOptions;
|
3164
3216
|
type Response = {
|
3165
|
-
|
3217
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3166
3218
|
};
|
3167
3219
|
}
|
3168
3220
|
namespace List {
|
@@ -3174,34 +3226,34 @@ declare namespace JUHUU {
|
|
3174
3226
|
limit?: number;
|
3175
3227
|
} & JUHUU.RequestOptions;
|
3176
3228
|
type Response = {
|
3177
|
-
|
3229
|
+
parameterAnomalyGroupArray: JUHUU.ParameterAnomalyGroup.Object[];
|
3178
3230
|
count: number;
|
3179
3231
|
hasMore: boolean;
|
3180
3232
|
};
|
3181
3233
|
}
|
3182
3234
|
namespace Update {
|
3183
3235
|
type Params = {
|
3184
|
-
|
3236
|
+
parameterAnomalyGroupId: string;
|
3185
3237
|
};
|
3186
3238
|
type Options = JUHUU.RequestOptions;
|
3187
3239
|
type Response = {
|
3188
|
-
|
3240
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3189
3241
|
};
|
3190
3242
|
}
|
3191
3243
|
namespace Delete {
|
3192
3244
|
type Params = {
|
3193
|
-
|
3245
|
+
parameterAnomalyGroupId?: string;
|
3194
3246
|
};
|
3195
3247
|
type Options = JUHUU.RequestOptions;
|
3196
3248
|
type Response = {
|
3197
|
-
|
3249
|
+
parameterAnomalyGroup: JUHUU.ParameterAnomalyGroup.Object;
|
3198
3250
|
};
|
3199
3251
|
}
|
3200
3252
|
}
|
3201
|
-
namespace
|
3253
|
+
namespace ParameterAnomalyGroupTracker {
|
3202
3254
|
type Object = {
|
3203
3255
|
id: string;
|
3204
|
-
readonly object: "
|
3256
|
+
readonly object: "parameterAnomalyGroupTracker";
|
3205
3257
|
nextRunAt: Date | null;
|
3206
3258
|
title: string;
|
3207
3259
|
propertyId: string;
|
@@ -3212,18 +3264,18 @@ declare namespace JUHUU {
|
|
3212
3264
|
};
|
3213
3265
|
type Options = JUHUU.RequestOptions;
|
3214
3266
|
type Response = {
|
3215
|
-
|
3267
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3216
3268
|
};
|
3217
3269
|
}
|
3218
3270
|
namespace Retrieve {
|
3219
3271
|
type Params = {
|
3220
|
-
|
3272
|
+
parameterAnomalyGroupTrackerId: string;
|
3221
3273
|
};
|
3222
3274
|
type Options = {
|
3223
3275
|
expand?: Array<"property">;
|
3224
3276
|
} & JUHUU.RequestOptions;
|
3225
3277
|
type Response = {
|
3226
|
-
|
3278
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3227
3279
|
};
|
3228
3280
|
}
|
3229
3281
|
namespace List {
|
@@ -3235,48 +3287,48 @@ declare namespace JUHUU {
|
|
3235
3287
|
limit?: number;
|
3236
3288
|
} & JUHUU.RequestOptions;
|
3237
3289
|
type Response = {
|
3238
|
-
|
3290
|
+
parameterAnomalyGroupTrackerArray: JUHUU.ParameterAnomalyGroupTracker.Object[];
|
3239
3291
|
count: number;
|
3240
3292
|
hasMore: boolean;
|
3241
3293
|
};
|
3242
3294
|
}
|
3243
3295
|
namespace Update {
|
3244
3296
|
type Params = {
|
3245
|
-
|
3297
|
+
parameterAnomalyGroupTrackerId: string;
|
3246
3298
|
title: string;
|
3247
3299
|
};
|
3248
3300
|
type Options = JUHUU.RequestOptions;
|
3249
3301
|
type Response = {
|
3250
|
-
|
3302
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3251
3303
|
};
|
3252
3304
|
}
|
3253
3305
|
namespace Delete {
|
3254
3306
|
type Params = {
|
3255
|
-
|
3307
|
+
parameterAnomalyGroupTrackerId?: string;
|
3256
3308
|
};
|
3257
3309
|
type Options = JUHUU.RequestOptions;
|
3258
3310
|
type Response = {
|
3259
|
-
|
3311
|
+
parameterAnomalyGroupTracker: JUHUU.ParameterAnomalyGroupTracker.Object;
|
3260
3312
|
};
|
3261
3313
|
}
|
3262
3314
|
}
|
3263
|
-
namespace
|
3315
|
+
namespace ParameterHistory {
|
3264
3316
|
type Object = {
|
3265
3317
|
id: string;
|
3266
|
-
readonly object: "
|
3267
|
-
|
3318
|
+
readonly object: "parameterHistory";
|
3319
|
+
parameterId: string;
|
3268
3320
|
deviceId: string;
|
3269
3321
|
propertyId: string;
|
3270
3322
|
};
|
3271
3323
|
namespace Retrieve {
|
3272
3324
|
type Params = {
|
3273
|
-
|
3325
|
+
parameterHistoryId: string;
|
3274
3326
|
};
|
3275
3327
|
type Options = {
|
3276
3328
|
expand?: Array<"property">;
|
3277
3329
|
} & JUHUU.RequestOptions;
|
3278
3330
|
type Response = {
|
3279
|
-
|
3331
|
+
parameterHistory: JUHUU.ParameterHistory.Object;
|
3280
3332
|
};
|
3281
3333
|
}
|
3282
3334
|
namespace List {
|
@@ -3288,7 +3340,7 @@ declare namespace JUHUU {
|
|
3288
3340
|
limit?: number;
|
3289
3341
|
} & JUHUU.RequestOptions;
|
3290
3342
|
type Response = {
|
3291
|
-
|
3343
|
+
parameterHistoryArray: JUHUU.ParameterHistory.Object[];
|
3292
3344
|
count: number;
|
3293
3345
|
hasMore: boolean;
|
3294
3346
|
};
|
@@ -3301,7 +3353,6 @@ declare namespace JUHUU {
|
|
3301
3353
|
productId: string | null;
|
3302
3354
|
name: string;
|
3303
3355
|
propertyId: string;
|
3304
|
-
parameterArray: Parameter[];
|
3305
3356
|
nodeArray: GraphNode[];
|
3306
3357
|
userLayoutBlockArray: LayoutBlock[];
|
3307
3358
|
userLayoutBlockActionButton: Layout.Button.General | null;
|
@@ -3448,4 +3499,4 @@ declare namespace JUHUU {
|
|
3448
3499
|
}
|
3449
3500
|
}
|
3450
3501
|
|
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
|
3502
|
+
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
|
};
|
@@ -2952,6 +2926,87 @@ var ApiKeysService = class extends Service {
|
|
2952
2926
|
}
|
2953
2927
|
};
|
2954
2928
|
|
2929
|
+
// src/parameters/parameters.service.ts
|
2930
|
+
var ParametersService = class extends Service {
|
2931
|
+
constructor(config) {
|
2932
|
+
super(config);
|
2933
|
+
}
|
2934
|
+
async create(ParameterCreateParams, ParameterCreateOptions) {
|
2935
|
+
return await super.sendRequest(
|
2936
|
+
{
|
2937
|
+
method: "POST",
|
2938
|
+
url: "parameters",
|
2939
|
+
body: {
|
2940
|
+
propertyId: ParameterCreateParams.propertyId
|
2941
|
+
},
|
2942
|
+
authenticationNotOptional: true
|
2943
|
+
},
|
2944
|
+
ParameterCreateOptions
|
2945
|
+
);
|
2946
|
+
}
|
2947
|
+
async list(ParameterListParams, ParameterListOptions) {
|
2948
|
+
const queryArray = [];
|
2949
|
+
if (ParameterListParams?.propertyId !== void 0) {
|
2950
|
+
queryArray.push("propertyId=" + ParameterListParams.propertyId);
|
2951
|
+
}
|
2952
|
+
if (ParameterListOptions?.skip !== void 0) {
|
2953
|
+
queryArray.push("skip=" + ParameterListOptions.skip);
|
2954
|
+
}
|
2955
|
+
if (ParameterListOptions?.limit !== void 0) {
|
2956
|
+
queryArray.push("limit=" + ParameterListOptions.limit);
|
2957
|
+
}
|
2958
|
+
return await super.sendRequest(
|
2959
|
+
{
|
2960
|
+
method: "GET",
|
2961
|
+
url: "parameters?" + queryArray.join("&"),
|
2962
|
+
body: void 0,
|
2963
|
+
authenticationNotOptional: false
|
2964
|
+
},
|
2965
|
+
ParameterListOptions
|
2966
|
+
);
|
2967
|
+
}
|
2968
|
+
async retrieve(ParameterRetrieveParams, ParameterRetrieveOptions) {
|
2969
|
+
const queryArray = [];
|
2970
|
+
if (ParameterRetrieveOptions?.expand !== void 0) {
|
2971
|
+
queryArray.push("expand=" + ParameterRetrieveOptions.expand.join(","));
|
2972
|
+
}
|
2973
|
+
return await super.sendRequest(
|
2974
|
+
{
|
2975
|
+
method: "GET",
|
2976
|
+
url: "parameters/" + ParameterRetrieveParams.parameterId + "?" + queryArray.join("&"),
|
2977
|
+
body: void 0,
|
2978
|
+
authenticationNotOptional: false
|
2979
|
+
},
|
2980
|
+
ParameterRetrieveOptions
|
2981
|
+
);
|
2982
|
+
}
|
2983
|
+
async update(ParameterUpdateParams, ParameterUpdateOptions) {
|
2984
|
+
return await super.sendRequest(
|
2985
|
+
{
|
2986
|
+
method: "PATCH",
|
2987
|
+
url: "parameters/" + ParameterUpdateParams.parameterId,
|
2988
|
+
body: {
|
2989
|
+
name: ParameterUpdateParams.name,
|
2990
|
+
currentValue: ParameterUpdateParams.currentValue
|
2991
|
+
},
|
2992
|
+
authenticationNotOptional: true
|
2993
|
+
},
|
2994
|
+
ParameterUpdateOptions
|
2995
|
+
);
|
2996
|
+
}
|
2997
|
+
async delete(ParameterDeleteParams, ParameterDeleteOptions) {
|
2998
|
+
return await super.sendRequest(
|
2999
|
+
{
|
3000
|
+
method: "DELETE",
|
3001
|
+
url: "parameters/" + ParameterDeleteParams.parameterId,
|
3002
|
+
authenticationNotOptional: true,
|
3003
|
+
body: void 0
|
3004
|
+
},
|
3005
|
+
ParameterDeleteOptions
|
3006
|
+
);
|
3007
|
+
}
|
3008
|
+
};
|
3009
|
+
|
2955
3010
|
// src/types/types.ts
|
2956
3011
|
var LanguageCodeArray = [
|
2957
3012
|
"en",
|
@@ -3128,8 +3183,9 @@ var Juhuu = class {
|
|
3128
3183
|
this.boldLock = new BoldLockService(config);
|
3129
3184
|
this.tapkey = new TapkeyService(config);
|
3130
3185
|
this.articleGroups = new ArticleGroupGroupsService(config);
|
3131
|
-
this.
|
3186
|
+
this.parameterHistories = new ParameterHistoriesService(config);
|
3132
3187
|
this.apiKeys = new ApiKeysService(config);
|
3188
|
+
this.parameters = new ParametersService(config);
|
3133
3189
|
}
|
3134
3190
|
/**
|
3135
3191
|
* Top Level Resources
|
@@ -3161,8 +3217,9 @@ var Juhuu = class {
|
|
3161
3217
|
boldLock;
|
3162
3218
|
tapkey;
|
3163
3219
|
articleGroups;
|
3164
|
-
|
3220
|
+
parameterHistories;
|
3165
3221
|
apiKeys;
|
3222
|
+
parameters;
|
3166
3223
|
};
|
3167
3224
|
var JUHUU;
|
3168
3225
|
((JUHUU2) => {
|
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
|
};
|
@@ -2908,6 +2882,87 @@ var ApiKeysService = class extends Service {
|
|
2908
2882
|
}
|
2909
2883
|
};
|
2910
2884
|
|
2885
|
+
// src/parameters/parameters.service.ts
|
2886
|
+
var ParametersService = class extends Service {
|
2887
|
+
constructor(config) {
|
2888
|
+
super(config);
|
2889
|
+
}
|
2890
|
+
async create(ParameterCreateParams, ParameterCreateOptions) {
|
2891
|
+
return await super.sendRequest(
|
2892
|
+
{
|
2893
|
+
method: "POST",
|
2894
|
+
url: "parameters",
|
2895
|
+
body: {
|
2896
|
+
propertyId: ParameterCreateParams.propertyId
|
2897
|
+
},
|
2898
|
+
authenticationNotOptional: true
|
2899
|
+
},
|
2900
|
+
ParameterCreateOptions
|
2901
|
+
);
|
2902
|
+
}
|
2903
|
+
async list(ParameterListParams, ParameterListOptions) {
|
2904
|
+
const queryArray = [];
|
2905
|
+
if (ParameterListParams?.propertyId !== void 0) {
|
2906
|
+
queryArray.push("propertyId=" + ParameterListParams.propertyId);
|
2907
|
+
}
|
2908
|
+
if (ParameterListOptions?.skip !== void 0) {
|
2909
|
+
queryArray.push("skip=" + ParameterListOptions.skip);
|
2910
|
+
}
|
2911
|
+
if (ParameterListOptions?.limit !== void 0) {
|
2912
|
+
queryArray.push("limit=" + ParameterListOptions.limit);
|
2913
|
+
}
|
2914
|
+
return await super.sendRequest(
|
2915
|
+
{
|
2916
|
+
method: "GET",
|
2917
|
+
url: "parameters?" + queryArray.join("&"),
|
2918
|
+
body: void 0,
|
2919
|
+
authenticationNotOptional: false
|
2920
|
+
},
|
2921
|
+
ParameterListOptions
|
2922
|
+
);
|
2923
|
+
}
|
2924
|
+
async retrieve(ParameterRetrieveParams, ParameterRetrieveOptions) {
|
2925
|
+
const queryArray = [];
|
2926
|
+
if (ParameterRetrieveOptions?.expand !== void 0) {
|
2927
|
+
queryArray.push("expand=" + ParameterRetrieveOptions.expand.join(","));
|
2928
|
+
}
|
2929
|
+
return await super.sendRequest(
|
2930
|
+
{
|
2931
|
+
method: "GET",
|
2932
|
+
url: "parameters/" + ParameterRetrieveParams.parameterId + "?" + queryArray.join("&"),
|
2933
|
+
body: void 0,
|
2934
|
+
authenticationNotOptional: false
|
2935
|
+
},
|
2936
|
+
ParameterRetrieveOptions
|
2937
|
+
);
|
2938
|
+
}
|
2939
|
+
async update(ParameterUpdateParams, ParameterUpdateOptions) {
|
2940
|
+
return await super.sendRequest(
|
2941
|
+
{
|
2942
|
+
method: "PATCH",
|
2943
|
+
url: "parameters/" + ParameterUpdateParams.parameterId,
|
2944
|
+
body: {
|
2945
|
+
name: ParameterUpdateParams.name,
|
2946
|
+
currentValue: ParameterUpdateParams.currentValue
|
2947
|
+
},
|
2948
|
+
authenticationNotOptional: true
|
2949
|
+
},
|
2950
|
+
ParameterUpdateOptions
|
2951
|
+
);
|
2952
|
+
}
|
2953
|
+
async delete(ParameterDeleteParams, ParameterDeleteOptions) {
|
2954
|
+
return await super.sendRequest(
|
2955
|
+
{
|
2956
|
+
method: "DELETE",
|
2957
|
+
url: "parameters/" + ParameterDeleteParams.parameterId,
|
2958
|
+
authenticationNotOptional: true,
|
2959
|
+
body: void 0
|
2960
|
+
},
|
2961
|
+
ParameterDeleteOptions
|
2962
|
+
);
|
2963
|
+
}
|
2964
|
+
};
|
2965
|
+
|
2911
2966
|
// src/types/types.ts
|
2912
2967
|
var LanguageCodeArray = [
|
2913
2968
|
"en",
|
@@ -3084,8 +3139,9 @@ var Juhuu = class {
|
|
3084
3139
|
this.boldLock = new BoldLockService(config);
|
3085
3140
|
this.tapkey = new TapkeyService(config);
|
3086
3141
|
this.articleGroups = new ArticleGroupGroupsService(config);
|
3087
|
-
this.
|
3142
|
+
this.parameterHistories = new ParameterHistoriesService(config);
|
3088
3143
|
this.apiKeys = new ApiKeysService(config);
|
3144
|
+
this.parameters = new ParametersService(config);
|
3089
3145
|
}
|
3090
3146
|
/**
|
3091
3147
|
* Top Level Resources
|
@@ -3117,8 +3173,9 @@ var Juhuu = class {
|
|
3117
3173
|
boldLock;
|
3118
3174
|
tapkey;
|
3119
3175
|
articleGroups;
|
3120
|
-
|
3176
|
+
parameterHistories;
|
3121
3177
|
apiKeys;
|
3178
|
+
parameters;
|
3122
3179
|
};
|
3123
3180
|
var JUHUU;
|
3124
3181
|
((JUHUU2) => {
|