@juhuu/sdk-ts 1.2.160 → 1.2.162

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -89,7 +89,6 @@ type OfferTime = {
89
89
  endMinutes: number;
90
90
  }[];
91
91
  };
92
- type FuelType = "battery" | "diesel" | "gasoline" | "hydrogen" | "fossil";
93
92
  type Viewport = {
94
93
  longitudeTopLeft: number;
95
94
  latitudeTopLeft: number;
@@ -150,7 +149,6 @@ interface Color {
150
149
  warning: hexColor;
151
150
  }
152
151
  interface GeneralSettings {
153
- frontendVersion: number;
154
152
  termsVersion: number;
155
153
  globalKill: boolean;
156
154
  maintenance: boolean;
@@ -859,6 +857,24 @@ declare class ParametersService extends Service {
859
857
  listen(ParameterRealtimeParams: JUHUU.Parameter.Realtime.Params, ParameterRealtimeOptions?: JUHUU.Parameter.Realtime.Options): JUHUU.Parameter.Realtime.Response;
860
858
  }
861
859
 
860
+ declare class IncidentTemplatesService extends Service {
861
+ constructor(config: JUHUU.SetupConfig);
862
+ create(IncidentTemplateCreateParams: JUHUU.IncidentTemplate.Create.Params, IncidentTemplateCreateOptions?: JUHUU.IncidentTemplate.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.Create.Response>>;
863
+ list(IncidentTemplateListParams: JUHUU.IncidentTemplate.List.Params, IncidentTemplateListOptions?: JUHUU.IncidentTemplate.List.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.List.Response>>;
864
+ retrieve(IncidentTemplateRetrieveParams: JUHUU.IncidentTemplate.Retrieve.Params, IncidentTemplateRetrieveOptions?: JUHUU.IncidentTemplate.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.Retrieve.Response>>;
865
+ update(IncidentTemplateUpdateParams: JUHUU.IncidentTemplate.Update.Params, IncidentTemplateUpdateOptions?: JUHUU.IncidentTemplate.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.Update.Response>>;
866
+ delete(IncidentTemplateDeleteParams: JUHUU.IncidentTemplate.Delete.Params, IncidentTemplateDeleteOptions?: JUHUU.IncidentTemplate.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.Delete.Response>>;
867
+ }
868
+
869
+ declare class IncidentsService extends Service {
870
+ constructor(config: JUHUU.SetupConfig);
871
+ create(IncidentCreateParams: JUHUU.Incident.Create.Params, IncidentCreateOptions?: JUHUU.Incident.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Create.Response>>;
872
+ list(IncidentListParams: JUHUU.Incident.List.Params, IncidentListOptions?: JUHUU.Incident.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.List.Response>>;
873
+ retrieve(IncidentRetrieveParams: JUHUU.Incident.Retrieve.Params, IncidentRetrieveOptions?: JUHUU.Incident.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Retrieve.Response>>;
874
+ update(IncidentUpdateParams: JUHUU.Incident.Update.Params, IncidentUpdateOptions?: JUHUU.Incident.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Update.Response>>;
875
+ delete(IncidentDeleteParams: JUHUU.Incident.Delete.Params, IncidentDeleteOptions?: JUHUU.Incident.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Delete.Response>>;
876
+ }
877
+
862
878
  declare class Juhuu {
863
879
  constructor(config: JUHUU.SetupConfig);
864
880
  /**
@@ -894,6 +910,8 @@ declare class Juhuu {
894
910
  readonly parameterHistories: ParameterHistoriesService;
895
911
  readonly apiKeys: ApiKeysService;
896
912
  readonly parameters: ParametersService;
913
+ readonly incidentTemplates: IncidentTemplatesService;
914
+ readonly incidents: IncidentsService;
897
915
  }
898
916
  declare namespace JUHUU {
899
917
  interface SetupConfig {
@@ -3098,6 +3116,163 @@ declare namespace JUHUU {
3098
3116
  }
3099
3117
  export { };
3100
3118
  }
3119
+ namespace Incident {
3120
+ type Base = {
3121
+ id: string;
3122
+ readonly object: "incident";
3123
+ severity: "low" | "medium" | "high";
3124
+ issuedBy: "propertyAdmin" | "system" | "user" | "nodeArray";
3125
+ propertyId: string;
3126
+ issuedByUserId: string | null;
3127
+ status: "waitingForPropertyConfirmation" | "waitingForResolvement" | "rejected" | "resolved";
3128
+ title: Date;
3129
+ createdAt: Date;
3130
+ description: string;
3131
+ imageUrlArray: string[];
3132
+ incidentTemplateId: string | null;
3133
+ };
3134
+ export interface Location extends Base {
3135
+ type: "location";
3136
+ locationId: string;
3137
+ }
3138
+ export interface Device extends Base {
3139
+ type: "device";
3140
+ deviceId: string;
3141
+ }
3142
+ export type Object = Location | Device;
3143
+ export namespace Create {
3144
+ type Params = {
3145
+ propertyId: string;
3146
+ description: JUHUU.Incident.Object["description"];
3147
+ severity?: JUHUU.Incident.Object["severity"];
3148
+ deviceId?: string;
3149
+ locationId?: string;
3150
+ incidentTepmlateId?: string;
3151
+ title: JUHUU.Incident.Object["title"];
3152
+ type: JUHUU.Incident.Object["type"];
3153
+ };
3154
+ type Options = JUHUU.RequestOptions;
3155
+ type Response = {
3156
+ connector: JUHUU.Connector.Object;
3157
+ };
3158
+ }
3159
+ export namespace Retrieve {
3160
+ type Params = {
3161
+ incidentId: string;
3162
+ };
3163
+ type Options = {
3164
+ expand: Array<"property">;
3165
+ } & JUHUU.RequestOptions;
3166
+ type Response = {
3167
+ Incident: JUHUU.Incident.Object;
3168
+ };
3169
+ }
3170
+ export namespace List {
3171
+ type Params = {
3172
+ propertyId?: string;
3173
+ };
3174
+ type Options = {
3175
+ limit?: number;
3176
+ skip?: number;
3177
+ } & JUHUU.RequestOptions;
3178
+ type Response = {
3179
+ incidentArray: JUHUU.Incident.Object[];
3180
+ hasMore: boolean;
3181
+ count: number;
3182
+ };
3183
+ }
3184
+ export namespace Update {
3185
+ type Params = {
3186
+ incidentId: string;
3187
+ title?: JUHUU.Incident.Object["title"];
3188
+ status?: JUHUU.Incident.Object["status"];
3189
+ severity?: JUHUU.Incident.Object["severity"];
3190
+ };
3191
+ type Options = JUHUU.RequestOptions;
3192
+ type Response = {
3193
+ incident: JUHUU.Incident.Object;
3194
+ };
3195
+ }
3196
+ export namespace Delete {
3197
+ type Params = {
3198
+ incidentId?: string;
3199
+ };
3200
+ type Options = JUHUU.RequestOptions;
3201
+ type Response = {
3202
+ incident: JUHUU.Connector.Object;
3203
+ };
3204
+ }
3205
+ export { };
3206
+ }
3207
+ namespace IncidentTemplate {
3208
+ type Object = {
3209
+ id: string;
3210
+ readonly object: "incidentTemplate";
3211
+ name: string;
3212
+ title: LocaleString;
3213
+ subtitle: LocaleString;
3214
+ description: LocaleString;
3215
+ propertyId: string;
3216
+ lastUpdatedAt: Date;
3217
+ createdAt: Date;
3218
+ };
3219
+ namespace Create {
3220
+ type Params = {
3221
+ propertyId: string;
3222
+ };
3223
+ type Options = JUHUU.RequestOptions;
3224
+ type Response = {
3225
+ incidentTemplate: JUHUU.IncidentTemplate.Object;
3226
+ };
3227
+ }
3228
+ namespace Retrieve {
3229
+ type Params = {
3230
+ incidentTemplateId: string;
3231
+ };
3232
+ type Options = {
3233
+ expand?: Array<"property">;
3234
+ } & JUHUU.RequestOptions;
3235
+ type Response = {
3236
+ incidentTemplate: JUHUU.IncidentTemplate.Object;
3237
+ property?: JUHUU.Property.Object;
3238
+ };
3239
+ }
3240
+ namespace List {
3241
+ type Params = {
3242
+ propertyId?: string;
3243
+ };
3244
+ type Options = {
3245
+ limit?: number;
3246
+ skip?: number;
3247
+ } & JUHUU.RequestOptions;
3248
+ type Response = {
3249
+ incidentTemplateArray: JUHUU.IncidentTemplate.Object[];
3250
+ count: number;
3251
+ hasMore: boolean;
3252
+ };
3253
+ }
3254
+ namespace Update {
3255
+ type Params = {
3256
+ incidentTemplateId: string;
3257
+ title?: LocaleString;
3258
+ description?: LocaleString;
3259
+ name?: string;
3260
+ };
3261
+ type Options = JUHUU.RequestOptions;
3262
+ type Response = {
3263
+ incidentTemplate: JUHUU.IncidentTemplate.Object;
3264
+ };
3265
+ }
3266
+ namespace Delete {
3267
+ type Params = {
3268
+ incidentTemplateId: string;
3269
+ };
3270
+ type Options = JUHUU.RequestOptions;
3271
+ type Response = {
3272
+ incidentTemplate: JUHUU.IncidentTemplate.Object;
3273
+ };
3274
+ }
3275
+ }
3101
3276
  namespace Parameter {
3102
3277
  type Base = {
3103
3278
  id: string;
@@ -3162,6 +3337,9 @@ declare namespace JUHUU {
3162
3337
  export namespace Retrieve {
3163
3338
  type Params = {
3164
3339
  parameterId: string;
3340
+ /**
3341
+ * Supply a device ID if your parameterId starts with 'device.'
3342
+ */
3165
3343
  deviceId?: string;
3166
3344
  };
3167
3345
  type Options = {
@@ -3188,6 +3366,10 @@ declare namespace JUHUU {
3188
3366
  export namespace Update {
3189
3367
  type Params = {
3190
3368
  parameterId: string;
3369
+ /**
3370
+ * Supply a device ID if your parameterId starts with 'device.'
3371
+ */
3372
+ deviceId?: string;
3191
3373
  name?: string;
3192
3374
  currentValue?: string | boolean | number;
3193
3375
  };
@@ -3517,4 +3699,4 @@ declare namespace JUHUU {
3517
3699
  }
3518
3700
  }
3519
3701
 
3520
- 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 };
3702
+ 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 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
@@ -89,7 +89,6 @@ type OfferTime = {
89
89
  endMinutes: number;
90
90
  }[];
91
91
  };
92
- type FuelType = "battery" | "diesel" | "gasoline" | "hydrogen" | "fossil";
93
92
  type Viewport = {
94
93
  longitudeTopLeft: number;
95
94
  latitudeTopLeft: number;
@@ -150,7 +149,6 @@ interface Color {
150
149
  warning: hexColor;
151
150
  }
152
151
  interface GeneralSettings {
153
- frontendVersion: number;
154
152
  termsVersion: number;
155
153
  globalKill: boolean;
156
154
  maintenance: boolean;
@@ -859,6 +857,24 @@ declare class ParametersService extends Service {
859
857
  listen(ParameterRealtimeParams: JUHUU.Parameter.Realtime.Params, ParameterRealtimeOptions?: JUHUU.Parameter.Realtime.Options): JUHUU.Parameter.Realtime.Response;
860
858
  }
861
859
 
860
+ declare class IncidentTemplatesService extends Service {
861
+ constructor(config: JUHUU.SetupConfig);
862
+ create(IncidentTemplateCreateParams: JUHUU.IncidentTemplate.Create.Params, IncidentTemplateCreateOptions?: JUHUU.IncidentTemplate.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.Create.Response>>;
863
+ list(IncidentTemplateListParams: JUHUU.IncidentTemplate.List.Params, IncidentTemplateListOptions?: JUHUU.IncidentTemplate.List.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.List.Response>>;
864
+ retrieve(IncidentTemplateRetrieveParams: JUHUU.IncidentTemplate.Retrieve.Params, IncidentTemplateRetrieveOptions?: JUHUU.IncidentTemplate.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.Retrieve.Response>>;
865
+ update(IncidentTemplateUpdateParams: JUHUU.IncidentTemplate.Update.Params, IncidentTemplateUpdateOptions?: JUHUU.IncidentTemplate.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.Update.Response>>;
866
+ delete(IncidentTemplateDeleteParams: JUHUU.IncidentTemplate.Delete.Params, IncidentTemplateDeleteOptions?: JUHUU.IncidentTemplate.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.IncidentTemplate.Delete.Response>>;
867
+ }
868
+
869
+ declare class IncidentsService extends Service {
870
+ constructor(config: JUHUU.SetupConfig);
871
+ create(IncidentCreateParams: JUHUU.Incident.Create.Params, IncidentCreateOptions?: JUHUU.Incident.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Create.Response>>;
872
+ list(IncidentListParams: JUHUU.Incident.List.Params, IncidentListOptions?: JUHUU.Incident.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.List.Response>>;
873
+ retrieve(IncidentRetrieveParams: JUHUU.Incident.Retrieve.Params, IncidentRetrieveOptions?: JUHUU.Incident.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Retrieve.Response>>;
874
+ update(IncidentUpdateParams: JUHUU.Incident.Update.Params, IncidentUpdateOptions?: JUHUU.Incident.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Update.Response>>;
875
+ delete(IncidentDeleteParams: JUHUU.Incident.Delete.Params, IncidentDeleteOptions?: JUHUU.Incident.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Incident.Delete.Response>>;
876
+ }
877
+
862
878
  declare class Juhuu {
863
879
  constructor(config: JUHUU.SetupConfig);
864
880
  /**
@@ -894,6 +910,8 @@ declare class Juhuu {
894
910
  readonly parameterHistories: ParameterHistoriesService;
895
911
  readonly apiKeys: ApiKeysService;
896
912
  readonly parameters: ParametersService;
913
+ readonly incidentTemplates: IncidentTemplatesService;
914
+ readonly incidents: IncidentsService;
897
915
  }
898
916
  declare namespace JUHUU {
899
917
  interface SetupConfig {
@@ -3098,6 +3116,163 @@ declare namespace JUHUU {
3098
3116
  }
3099
3117
  export { };
3100
3118
  }
3119
+ namespace Incident {
3120
+ type Base = {
3121
+ id: string;
3122
+ readonly object: "incident";
3123
+ severity: "low" | "medium" | "high";
3124
+ issuedBy: "propertyAdmin" | "system" | "user" | "nodeArray";
3125
+ propertyId: string;
3126
+ issuedByUserId: string | null;
3127
+ status: "waitingForPropertyConfirmation" | "waitingForResolvement" | "rejected" | "resolved";
3128
+ title: Date;
3129
+ createdAt: Date;
3130
+ description: string;
3131
+ imageUrlArray: string[];
3132
+ incidentTemplateId: string | null;
3133
+ };
3134
+ export interface Location extends Base {
3135
+ type: "location";
3136
+ locationId: string;
3137
+ }
3138
+ export interface Device extends Base {
3139
+ type: "device";
3140
+ deviceId: string;
3141
+ }
3142
+ export type Object = Location | Device;
3143
+ export namespace Create {
3144
+ type Params = {
3145
+ propertyId: string;
3146
+ description: JUHUU.Incident.Object["description"];
3147
+ severity?: JUHUU.Incident.Object["severity"];
3148
+ deviceId?: string;
3149
+ locationId?: string;
3150
+ incidentTepmlateId?: string;
3151
+ title: JUHUU.Incident.Object["title"];
3152
+ type: JUHUU.Incident.Object["type"];
3153
+ };
3154
+ type Options = JUHUU.RequestOptions;
3155
+ type Response = {
3156
+ connector: JUHUU.Connector.Object;
3157
+ };
3158
+ }
3159
+ export namespace Retrieve {
3160
+ type Params = {
3161
+ incidentId: string;
3162
+ };
3163
+ type Options = {
3164
+ expand: Array<"property">;
3165
+ } & JUHUU.RequestOptions;
3166
+ type Response = {
3167
+ Incident: JUHUU.Incident.Object;
3168
+ };
3169
+ }
3170
+ export namespace List {
3171
+ type Params = {
3172
+ propertyId?: string;
3173
+ };
3174
+ type Options = {
3175
+ limit?: number;
3176
+ skip?: number;
3177
+ } & JUHUU.RequestOptions;
3178
+ type Response = {
3179
+ incidentArray: JUHUU.Incident.Object[];
3180
+ hasMore: boolean;
3181
+ count: number;
3182
+ };
3183
+ }
3184
+ export namespace Update {
3185
+ type Params = {
3186
+ incidentId: string;
3187
+ title?: JUHUU.Incident.Object["title"];
3188
+ status?: JUHUU.Incident.Object["status"];
3189
+ severity?: JUHUU.Incident.Object["severity"];
3190
+ };
3191
+ type Options = JUHUU.RequestOptions;
3192
+ type Response = {
3193
+ incident: JUHUU.Incident.Object;
3194
+ };
3195
+ }
3196
+ export namespace Delete {
3197
+ type Params = {
3198
+ incidentId?: string;
3199
+ };
3200
+ type Options = JUHUU.RequestOptions;
3201
+ type Response = {
3202
+ incident: JUHUU.Connector.Object;
3203
+ };
3204
+ }
3205
+ export { };
3206
+ }
3207
+ namespace IncidentTemplate {
3208
+ type Object = {
3209
+ id: string;
3210
+ readonly object: "incidentTemplate";
3211
+ name: string;
3212
+ title: LocaleString;
3213
+ subtitle: LocaleString;
3214
+ description: LocaleString;
3215
+ propertyId: string;
3216
+ lastUpdatedAt: Date;
3217
+ createdAt: Date;
3218
+ };
3219
+ namespace Create {
3220
+ type Params = {
3221
+ propertyId: string;
3222
+ };
3223
+ type Options = JUHUU.RequestOptions;
3224
+ type Response = {
3225
+ incidentTemplate: JUHUU.IncidentTemplate.Object;
3226
+ };
3227
+ }
3228
+ namespace Retrieve {
3229
+ type Params = {
3230
+ incidentTemplateId: string;
3231
+ };
3232
+ type Options = {
3233
+ expand?: Array<"property">;
3234
+ } & JUHUU.RequestOptions;
3235
+ type Response = {
3236
+ incidentTemplate: JUHUU.IncidentTemplate.Object;
3237
+ property?: JUHUU.Property.Object;
3238
+ };
3239
+ }
3240
+ namespace List {
3241
+ type Params = {
3242
+ propertyId?: string;
3243
+ };
3244
+ type Options = {
3245
+ limit?: number;
3246
+ skip?: number;
3247
+ } & JUHUU.RequestOptions;
3248
+ type Response = {
3249
+ incidentTemplateArray: JUHUU.IncidentTemplate.Object[];
3250
+ count: number;
3251
+ hasMore: boolean;
3252
+ };
3253
+ }
3254
+ namespace Update {
3255
+ type Params = {
3256
+ incidentTemplateId: string;
3257
+ title?: LocaleString;
3258
+ description?: LocaleString;
3259
+ name?: string;
3260
+ };
3261
+ type Options = JUHUU.RequestOptions;
3262
+ type Response = {
3263
+ incidentTemplate: JUHUU.IncidentTemplate.Object;
3264
+ };
3265
+ }
3266
+ namespace Delete {
3267
+ type Params = {
3268
+ incidentTemplateId: string;
3269
+ };
3270
+ type Options = JUHUU.RequestOptions;
3271
+ type Response = {
3272
+ incidentTemplate: JUHUU.IncidentTemplate.Object;
3273
+ };
3274
+ }
3275
+ }
3101
3276
  namespace Parameter {
3102
3277
  type Base = {
3103
3278
  id: string;
@@ -3162,6 +3337,9 @@ declare namespace JUHUU {
3162
3337
  export namespace Retrieve {
3163
3338
  type Params = {
3164
3339
  parameterId: string;
3340
+ /**
3341
+ * Supply a device ID if your parameterId starts with 'device.'
3342
+ */
3165
3343
  deviceId?: string;
3166
3344
  };
3167
3345
  type Options = {
@@ -3188,6 +3366,10 @@ declare namespace JUHUU {
3188
3366
  export namespace Update {
3189
3367
  type Params = {
3190
3368
  parameterId: string;
3369
+ /**
3370
+ * Supply a device ID if your parameterId starts with 'device.'
3371
+ */
3372
+ deviceId?: string;
3191
3373
  name?: string;
3192
3374
  currentValue?: string | boolean | number;
3193
3375
  };
@@ -3517,4 +3699,4 @@ declare namespace JUHUU {
3517
3699
  }
3518
3700
  }
3519
3701
 
3520
- 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 };
3702
+ 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 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
@@ -3027,6 +3027,179 @@ var ParametersService = class extends Service {
3027
3027
  }
3028
3028
  };
3029
3029
 
3030
+ // src/incidentTemplates/incidentTemplates.service.ts
3031
+ var IncidentTemplatesService = class extends Service {
3032
+ constructor(config) {
3033
+ super(config);
3034
+ }
3035
+ async create(IncidentTemplateCreateParams, IncidentTemplateCreateOptions) {
3036
+ return await super.sendRequest(
3037
+ {
3038
+ method: "POST",
3039
+ url: "incidentTemplates",
3040
+ body: {
3041
+ propertyId: IncidentTemplateCreateParams.propertyId
3042
+ },
3043
+ authenticationNotOptional: true
3044
+ },
3045
+ IncidentTemplateCreateOptions
3046
+ );
3047
+ }
3048
+ async list(IncidentTemplateListParams, IncidentTemplateListOptions) {
3049
+ const queryArray = [];
3050
+ if (IncidentTemplateListParams?.propertyId !== void 0) {
3051
+ queryArray.push("propertyId=" + IncidentTemplateListParams.propertyId);
3052
+ }
3053
+ if (IncidentTemplateListOptions?.skip !== void 0) {
3054
+ queryArray.push("skip=" + IncidentTemplateListOptions.skip);
3055
+ }
3056
+ if (IncidentTemplateListOptions?.limit !== void 0) {
3057
+ queryArray.push("limit=" + IncidentTemplateListOptions.limit);
3058
+ }
3059
+ return await super.sendRequest(
3060
+ {
3061
+ method: "GET",
3062
+ url: "incidentTemplates?" + queryArray.join("&"),
3063
+ body: void 0,
3064
+ authenticationNotOptional: false
3065
+ },
3066
+ IncidentTemplateListOptions
3067
+ );
3068
+ }
3069
+ async retrieve(IncidentTemplateRetrieveParams, IncidentTemplateRetrieveOptions) {
3070
+ const queryArray = [];
3071
+ if (IncidentTemplateRetrieveOptions?.expand !== void 0) {
3072
+ queryArray.push(
3073
+ "expand=" + IncidentTemplateRetrieveOptions.expand.join(",")
3074
+ );
3075
+ }
3076
+ return await super.sendRequest(
3077
+ {
3078
+ method: "GET",
3079
+ url: "incidentTemplates/" + IncidentTemplateRetrieveParams.incidentTemplateId + "?" + queryArray.join("&"),
3080
+ body: void 0,
3081
+ authenticationNotOptional: false
3082
+ },
3083
+ IncidentTemplateRetrieveOptions
3084
+ );
3085
+ }
3086
+ async update(IncidentTemplateUpdateParams, IncidentTemplateUpdateOptions) {
3087
+ return await super.sendRequest(
3088
+ {
3089
+ method: "PATCH",
3090
+ url: "incidentTemplates/" + IncidentTemplateUpdateParams.incidentTemplateId,
3091
+ body: {
3092
+ title: IncidentTemplateUpdateParams.title,
3093
+ description: IncidentTemplateUpdateParams.description,
3094
+ name: IncidentTemplateUpdateParams.name
3095
+ },
3096
+ authenticationNotOptional: true
3097
+ },
3098
+ IncidentTemplateUpdateOptions
3099
+ );
3100
+ }
3101
+ async delete(IncidentTemplateDeleteParams, IncidentTemplateDeleteOptions) {
3102
+ return await super.sendRequest(
3103
+ {
3104
+ method: "DELETE",
3105
+ url: "incidentTemplates/" + IncidentTemplateDeleteParams.incidentTemplateId,
3106
+ authenticationNotOptional: true,
3107
+ body: void 0
3108
+ },
3109
+ IncidentTemplateDeleteOptions
3110
+ );
3111
+ }
3112
+ };
3113
+
3114
+ // src/incidents/incidents.service.ts
3115
+ var IncidentsService = class extends Service {
3116
+ constructor(config) {
3117
+ super(config);
3118
+ }
3119
+ async create(IncidentCreateParams, IncidentCreateOptions) {
3120
+ return await super.sendRequest(
3121
+ {
3122
+ method: "POST",
3123
+ url: "incidents",
3124
+ body: {
3125
+ propertyId: IncidentCreateParams.propertyId,
3126
+ title: IncidentCreateParams.title,
3127
+ subtitle: IncidentCreateParams.description,
3128
+ type: IncidentCreateParams.type,
3129
+ deviceId: IncidentCreateParams.deviceId,
3130
+ locationId: IncidentCreateParams.locationId,
3131
+ incidentTepmlateId: IncidentCreateParams.incidentTepmlateId,
3132
+ severity: IncidentCreateParams.severity
3133
+ },
3134
+ authenticationNotOptional: true
3135
+ },
3136
+ IncidentCreateOptions
3137
+ );
3138
+ }
3139
+ async list(IncidentListParams, IncidentListOptions) {
3140
+ const queryArray = [];
3141
+ if (IncidentListParams?.propertyId !== void 0) {
3142
+ queryArray.push("propertyId=" + IncidentListParams.propertyId);
3143
+ }
3144
+ if (IncidentListOptions?.skip !== void 0) {
3145
+ queryArray.push("skip=" + IncidentListOptions.skip);
3146
+ }
3147
+ if (IncidentListOptions?.limit !== void 0) {
3148
+ queryArray.push("limit=" + IncidentListOptions.limit);
3149
+ }
3150
+ return await super.sendRequest(
3151
+ {
3152
+ method: "GET",
3153
+ url: "incidents?" + queryArray.join("&"),
3154
+ body: void 0,
3155
+ authenticationNotOptional: false
3156
+ },
3157
+ IncidentListOptions
3158
+ );
3159
+ }
3160
+ async retrieve(IncidentRetrieveParams, IncidentRetrieveOptions) {
3161
+ const queryArray = [];
3162
+ if (IncidentRetrieveOptions?.expand !== void 0) {
3163
+ queryArray.push("expand=" + IncidentRetrieveOptions.expand.join(","));
3164
+ }
3165
+ return await super.sendRequest(
3166
+ {
3167
+ method: "GET",
3168
+ url: "incidents/" + IncidentRetrieveParams.incidentId + "?" + queryArray.join("&"),
3169
+ body: void 0,
3170
+ authenticationNotOptional: false
3171
+ },
3172
+ IncidentRetrieveOptions
3173
+ );
3174
+ }
3175
+ async update(IncidentUpdateParams, IncidentUpdateOptions) {
3176
+ return await super.sendRequest(
3177
+ {
3178
+ method: "PATCH",
3179
+ url: "incidents/" + IncidentUpdateParams.incidentId,
3180
+ body: {
3181
+ title: IncidentUpdateParams.title,
3182
+ severity: IncidentUpdateParams.severity,
3183
+ status: IncidentUpdateParams.status
3184
+ },
3185
+ authenticationNotOptional: true
3186
+ },
3187
+ IncidentUpdateOptions
3188
+ );
3189
+ }
3190
+ async delete(IncidentDeleteParams, IncidentDeleteOptions) {
3191
+ return await super.sendRequest(
3192
+ {
3193
+ method: "DELETE",
3194
+ url: "incidents/" + IncidentDeleteParams.incidentId,
3195
+ authenticationNotOptional: true,
3196
+ body: void 0
3197
+ },
3198
+ IncidentDeleteOptions
3199
+ );
3200
+ }
3201
+ };
3202
+
3030
3203
  // src/types/types.ts
3031
3204
  var LanguageCodeArray = [
3032
3205
  "en",
@@ -3206,6 +3379,8 @@ var Juhuu = class {
3206
3379
  this.parameterHistories = new ParameterHistoriesService(config);
3207
3380
  this.apiKeys = new ApiKeysService(config);
3208
3381
  this.parameters = new ParametersService(config);
3382
+ this.incidentTemplates = new IncidentTemplatesService(config);
3383
+ this.incidents = new IncidentsService(config);
3209
3384
  }
3210
3385
  /**
3211
3386
  * Top Level Resources
@@ -3240,6 +3415,8 @@ var Juhuu = class {
3240
3415
  parameterHistories;
3241
3416
  apiKeys;
3242
3417
  parameters;
3418
+ incidentTemplates;
3419
+ incidents;
3243
3420
  };
3244
3421
  var JUHUU;
3245
3422
  ((JUHUU2) => {
package/dist/index.mjs CHANGED
@@ -2983,6 +2983,179 @@ var ParametersService = class extends Service {
2983
2983
  }
2984
2984
  };
2985
2985
 
2986
+ // src/incidentTemplates/incidentTemplates.service.ts
2987
+ var IncidentTemplatesService = class extends Service {
2988
+ constructor(config) {
2989
+ super(config);
2990
+ }
2991
+ async create(IncidentTemplateCreateParams, IncidentTemplateCreateOptions) {
2992
+ return await super.sendRequest(
2993
+ {
2994
+ method: "POST",
2995
+ url: "incidentTemplates",
2996
+ body: {
2997
+ propertyId: IncidentTemplateCreateParams.propertyId
2998
+ },
2999
+ authenticationNotOptional: true
3000
+ },
3001
+ IncidentTemplateCreateOptions
3002
+ );
3003
+ }
3004
+ async list(IncidentTemplateListParams, IncidentTemplateListOptions) {
3005
+ const queryArray = [];
3006
+ if (IncidentTemplateListParams?.propertyId !== void 0) {
3007
+ queryArray.push("propertyId=" + IncidentTemplateListParams.propertyId);
3008
+ }
3009
+ if (IncidentTemplateListOptions?.skip !== void 0) {
3010
+ queryArray.push("skip=" + IncidentTemplateListOptions.skip);
3011
+ }
3012
+ if (IncidentTemplateListOptions?.limit !== void 0) {
3013
+ queryArray.push("limit=" + IncidentTemplateListOptions.limit);
3014
+ }
3015
+ return await super.sendRequest(
3016
+ {
3017
+ method: "GET",
3018
+ url: "incidentTemplates?" + queryArray.join("&"),
3019
+ body: void 0,
3020
+ authenticationNotOptional: false
3021
+ },
3022
+ IncidentTemplateListOptions
3023
+ );
3024
+ }
3025
+ async retrieve(IncidentTemplateRetrieveParams, IncidentTemplateRetrieveOptions) {
3026
+ const queryArray = [];
3027
+ if (IncidentTemplateRetrieveOptions?.expand !== void 0) {
3028
+ queryArray.push(
3029
+ "expand=" + IncidentTemplateRetrieveOptions.expand.join(",")
3030
+ );
3031
+ }
3032
+ return await super.sendRequest(
3033
+ {
3034
+ method: "GET",
3035
+ url: "incidentTemplates/" + IncidentTemplateRetrieveParams.incidentTemplateId + "?" + queryArray.join("&"),
3036
+ body: void 0,
3037
+ authenticationNotOptional: false
3038
+ },
3039
+ IncidentTemplateRetrieveOptions
3040
+ );
3041
+ }
3042
+ async update(IncidentTemplateUpdateParams, IncidentTemplateUpdateOptions) {
3043
+ return await super.sendRequest(
3044
+ {
3045
+ method: "PATCH",
3046
+ url: "incidentTemplates/" + IncidentTemplateUpdateParams.incidentTemplateId,
3047
+ body: {
3048
+ title: IncidentTemplateUpdateParams.title,
3049
+ description: IncidentTemplateUpdateParams.description,
3050
+ name: IncidentTemplateUpdateParams.name
3051
+ },
3052
+ authenticationNotOptional: true
3053
+ },
3054
+ IncidentTemplateUpdateOptions
3055
+ );
3056
+ }
3057
+ async delete(IncidentTemplateDeleteParams, IncidentTemplateDeleteOptions) {
3058
+ return await super.sendRequest(
3059
+ {
3060
+ method: "DELETE",
3061
+ url: "incidentTemplates/" + IncidentTemplateDeleteParams.incidentTemplateId,
3062
+ authenticationNotOptional: true,
3063
+ body: void 0
3064
+ },
3065
+ IncidentTemplateDeleteOptions
3066
+ );
3067
+ }
3068
+ };
3069
+
3070
+ // src/incidents/incidents.service.ts
3071
+ var IncidentsService = class extends Service {
3072
+ constructor(config) {
3073
+ super(config);
3074
+ }
3075
+ async create(IncidentCreateParams, IncidentCreateOptions) {
3076
+ return await super.sendRequest(
3077
+ {
3078
+ method: "POST",
3079
+ url: "incidents",
3080
+ body: {
3081
+ propertyId: IncidentCreateParams.propertyId,
3082
+ title: IncidentCreateParams.title,
3083
+ subtitle: IncidentCreateParams.description,
3084
+ type: IncidentCreateParams.type,
3085
+ deviceId: IncidentCreateParams.deviceId,
3086
+ locationId: IncidentCreateParams.locationId,
3087
+ incidentTepmlateId: IncidentCreateParams.incidentTepmlateId,
3088
+ severity: IncidentCreateParams.severity
3089
+ },
3090
+ authenticationNotOptional: true
3091
+ },
3092
+ IncidentCreateOptions
3093
+ );
3094
+ }
3095
+ async list(IncidentListParams, IncidentListOptions) {
3096
+ const queryArray = [];
3097
+ if (IncidentListParams?.propertyId !== void 0) {
3098
+ queryArray.push("propertyId=" + IncidentListParams.propertyId);
3099
+ }
3100
+ if (IncidentListOptions?.skip !== void 0) {
3101
+ queryArray.push("skip=" + IncidentListOptions.skip);
3102
+ }
3103
+ if (IncidentListOptions?.limit !== void 0) {
3104
+ queryArray.push("limit=" + IncidentListOptions.limit);
3105
+ }
3106
+ return await super.sendRequest(
3107
+ {
3108
+ method: "GET",
3109
+ url: "incidents?" + queryArray.join("&"),
3110
+ body: void 0,
3111
+ authenticationNotOptional: false
3112
+ },
3113
+ IncidentListOptions
3114
+ );
3115
+ }
3116
+ async retrieve(IncidentRetrieveParams, IncidentRetrieveOptions) {
3117
+ const queryArray = [];
3118
+ if (IncidentRetrieveOptions?.expand !== void 0) {
3119
+ queryArray.push("expand=" + IncidentRetrieveOptions.expand.join(","));
3120
+ }
3121
+ return await super.sendRequest(
3122
+ {
3123
+ method: "GET",
3124
+ url: "incidents/" + IncidentRetrieveParams.incidentId + "?" + queryArray.join("&"),
3125
+ body: void 0,
3126
+ authenticationNotOptional: false
3127
+ },
3128
+ IncidentRetrieveOptions
3129
+ );
3130
+ }
3131
+ async update(IncidentUpdateParams, IncidentUpdateOptions) {
3132
+ return await super.sendRequest(
3133
+ {
3134
+ method: "PATCH",
3135
+ url: "incidents/" + IncidentUpdateParams.incidentId,
3136
+ body: {
3137
+ title: IncidentUpdateParams.title,
3138
+ severity: IncidentUpdateParams.severity,
3139
+ status: IncidentUpdateParams.status
3140
+ },
3141
+ authenticationNotOptional: true
3142
+ },
3143
+ IncidentUpdateOptions
3144
+ );
3145
+ }
3146
+ async delete(IncidentDeleteParams, IncidentDeleteOptions) {
3147
+ return await super.sendRequest(
3148
+ {
3149
+ method: "DELETE",
3150
+ url: "incidents/" + IncidentDeleteParams.incidentId,
3151
+ authenticationNotOptional: true,
3152
+ body: void 0
3153
+ },
3154
+ IncidentDeleteOptions
3155
+ );
3156
+ }
3157
+ };
3158
+
2986
3159
  // src/types/types.ts
2987
3160
  var LanguageCodeArray = [
2988
3161
  "en",
@@ -3162,6 +3335,8 @@ var Juhuu = class {
3162
3335
  this.parameterHistories = new ParameterHistoriesService(config);
3163
3336
  this.apiKeys = new ApiKeysService(config);
3164
3337
  this.parameters = new ParametersService(config);
3338
+ this.incidentTemplates = new IncidentTemplatesService(config);
3339
+ this.incidents = new IncidentsService(config);
3165
3340
  }
3166
3341
  /**
3167
3342
  * Top Level Resources
@@ -3196,6 +3371,8 @@ var Juhuu = class {
3196
3371
  parameterHistories;
3197
3372
  apiKeys;
3198
3373
  parameters;
3374
+ incidentTemplates;
3375
+ incidents;
3199
3376
  };
3200
3377
  var JUHUU;
3201
3378
  ((JUHUU2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.160",
3
+ "version": "1.2.162",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",