@juhuu/sdk-ts 1.2.287 → 1.2.289

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
@@ -1844,6 +1844,8 @@ declare class KitsService extends Service {
1844
1844
  retrieve(params: JUHUU.Kit.Retrieve.Params, options?: JUHUU.Kit.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Retrieve.Response>>;
1845
1845
  update(params: JUHUU.Kit.Update.Params, options?: JUHUU.Kit.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Update.Response>>;
1846
1846
  delete(params: JUHUU.Kit.Delete.Params, options?: JUHUU.Kit.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Delete.Response>>;
1847
+ attachProperty(params: JUHUU.Kit.AttachProperty.Params, options?: JUHUU.Kit.AttachProperty.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.AttachProperty.Response>>;
1848
+ detachProperty(params: JUHUU.Kit.DetachProperty.Params, options?: JUHUU.Kit.DetachProperty.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.DetachProperty.Response>>;
1847
1849
  }
1848
1850
 
1849
1851
  declare class PanelsService extends Service {
@@ -6207,15 +6209,20 @@ declare namespace JUHUU {
6207
6209
  }
6208
6210
  namespace Kit {
6209
6211
  type KitType = "controlKitV1" | "tapkeyV1" | "emzV1";
6212
+ type KitStatus = "setupComplete" | "waitingForSetup";
6210
6213
  type BaseKit = {
6211
6214
  id: string;
6212
6215
  readonly object: "kit";
6213
6216
  name: string;
6214
6217
  propertyId: string | null;
6218
+ status: KitStatus;
6215
6219
  };
6216
6220
  type ControlKitV1 = BaseKit & {
6217
6221
  type: "controlKitV1";
6218
6222
  simIdArray: string[];
6223
+ mqttTopicId: string;
6224
+ signalStrengthPercentage: number;
6225
+ teltonikaSerialNumber: string;
6219
6226
  };
6220
6227
  type TapkeyV1 = BaseKit & {
6221
6228
  type: "tapkeyV1";
@@ -6236,24 +6243,28 @@ declare namespace JUHUU {
6236
6243
  namespace Create {
6237
6244
  type Params = {
6238
6245
  name?: string;
6239
- propertyId: string;
6240
- template: {
6241
- type: "controlKitV1";
6242
- simIdArray: string[];
6243
- } | {
6244
- type: "tapkeyV1";
6245
- physicalLockId: string;
6246
- boundLockId: string;
6247
- ownerAccountId: string;
6248
- ipId: string;
6249
- } | {
6250
- type: "emzV1";
6251
- contractId: string;
6252
- targetHardwareId: string;
6253
- userId: string;
6254
- username: string;
6255
- password: string;
6256
- };
6246
+ propertyId?: string;
6247
+ type: "controlKitV1";
6248
+ simIdArray: string[];
6249
+ signalStrengthPercentage: number;
6250
+ teltonikaSerialNumber: string;
6251
+ } | {
6252
+ name?: string;
6253
+ propertyId?: string;
6254
+ type: "tapkeyV1";
6255
+ physicalLockId: string;
6256
+ boundLockId: string;
6257
+ ownerAccountId: string;
6258
+ ipId: string;
6259
+ } | {
6260
+ name?: string;
6261
+ propertyId?: string;
6262
+ type: "emzV1";
6263
+ contractId: string;
6264
+ targetHardwareId: string;
6265
+ userId: string;
6266
+ username: string;
6267
+ password: string;
6257
6268
  };
6258
6269
  type Options = JUHUU.RequestOptions;
6259
6270
  type Response = {
@@ -6301,6 +6312,25 @@ declare namespace JUHUU {
6301
6312
  type Options = JUHUU.RequestOptions;
6302
6313
  type Response = JUHUU.Kit.Object;
6303
6314
  }
6315
+ namespace AttachProperty {
6316
+ type Params = {
6317
+ kitId: string;
6318
+ propertyId: string;
6319
+ };
6320
+ type Options = JUHUU.RequestOptions;
6321
+ type Response = {
6322
+ kit: JUHUU.Kit.Object;
6323
+ };
6324
+ }
6325
+ namespace DetachProperty {
6326
+ type Params = {
6327
+ kitId: string;
6328
+ };
6329
+ type Options = JUHUU.RequestOptions;
6330
+ type Response = {
6331
+ kit: JUHUU.Kit.Object;
6332
+ };
6333
+ }
6304
6334
  }
6305
6335
  namespace Panel {
6306
6336
  type Object = {
package/dist/index.d.ts CHANGED
@@ -1844,6 +1844,8 @@ declare class KitsService extends Service {
1844
1844
  retrieve(params: JUHUU.Kit.Retrieve.Params, options?: JUHUU.Kit.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Retrieve.Response>>;
1845
1845
  update(params: JUHUU.Kit.Update.Params, options?: JUHUU.Kit.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Update.Response>>;
1846
1846
  delete(params: JUHUU.Kit.Delete.Params, options?: JUHUU.Kit.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.Delete.Response>>;
1847
+ attachProperty(params: JUHUU.Kit.AttachProperty.Params, options?: JUHUU.Kit.AttachProperty.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.AttachProperty.Response>>;
1848
+ detachProperty(params: JUHUU.Kit.DetachProperty.Params, options?: JUHUU.Kit.DetachProperty.Options): Promise<JUHUU.HttpResponse<JUHUU.Kit.DetachProperty.Response>>;
1847
1849
  }
1848
1850
 
1849
1851
  declare class PanelsService extends Service {
@@ -6207,15 +6209,20 @@ declare namespace JUHUU {
6207
6209
  }
6208
6210
  namespace Kit {
6209
6211
  type KitType = "controlKitV1" | "tapkeyV1" | "emzV1";
6212
+ type KitStatus = "setupComplete" | "waitingForSetup";
6210
6213
  type BaseKit = {
6211
6214
  id: string;
6212
6215
  readonly object: "kit";
6213
6216
  name: string;
6214
6217
  propertyId: string | null;
6218
+ status: KitStatus;
6215
6219
  };
6216
6220
  type ControlKitV1 = BaseKit & {
6217
6221
  type: "controlKitV1";
6218
6222
  simIdArray: string[];
6223
+ mqttTopicId: string;
6224
+ signalStrengthPercentage: number;
6225
+ teltonikaSerialNumber: string;
6219
6226
  };
6220
6227
  type TapkeyV1 = BaseKit & {
6221
6228
  type: "tapkeyV1";
@@ -6236,24 +6243,28 @@ declare namespace JUHUU {
6236
6243
  namespace Create {
6237
6244
  type Params = {
6238
6245
  name?: string;
6239
- propertyId: string;
6240
- template: {
6241
- type: "controlKitV1";
6242
- simIdArray: string[];
6243
- } | {
6244
- type: "tapkeyV1";
6245
- physicalLockId: string;
6246
- boundLockId: string;
6247
- ownerAccountId: string;
6248
- ipId: string;
6249
- } | {
6250
- type: "emzV1";
6251
- contractId: string;
6252
- targetHardwareId: string;
6253
- userId: string;
6254
- username: string;
6255
- password: string;
6256
- };
6246
+ propertyId?: string;
6247
+ type: "controlKitV1";
6248
+ simIdArray: string[];
6249
+ signalStrengthPercentage: number;
6250
+ teltonikaSerialNumber: string;
6251
+ } | {
6252
+ name?: string;
6253
+ propertyId?: string;
6254
+ type: "tapkeyV1";
6255
+ physicalLockId: string;
6256
+ boundLockId: string;
6257
+ ownerAccountId: string;
6258
+ ipId: string;
6259
+ } | {
6260
+ name?: string;
6261
+ propertyId?: string;
6262
+ type: "emzV1";
6263
+ contractId: string;
6264
+ targetHardwareId: string;
6265
+ userId: string;
6266
+ username: string;
6267
+ password: string;
6257
6268
  };
6258
6269
  type Options = JUHUU.RequestOptions;
6259
6270
  type Response = {
@@ -6301,6 +6312,25 @@ declare namespace JUHUU {
6301
6312
  type Options = JUHUU.RequestOptions;
6302
6313
  type Response = JUHUU.Kit.Object;
6303
6314
  }
6315
+ namespace AttachProperty {
6316
+ type Params = {
6317
+ kitId: string;
6318
+ propertyId: string;
6319
+ };
6320
+ type Options = JUHUU.RequestOptions;
6321
+ type Response = {
6322
+ kit: JUHUU.Kit.Object;
6323
+ };
6324
+ }
6325
+ namespace DetachProperty {
6326
+ type Params = {
6327
+ kitId: string;
6328
+ };
6329
+ type Options = JUHUU.RequestOptions;
6330
+ type Response = {
6331
+ kit: JUHUU.Kit.Object;
6332
+ };
6333
+ }
6304
6334
  }
6305
6335
  namespace Panel {
6306
6336
  type Object = {
package/dist/index.js CHANGED
@@ -5050,15 +5050,32 @@ var KitsService = class extends Service {
5050
5050
  super(config);
5051
5051
  }
5052
5052
  async create(params, options) {
5053
+ const body = {
5054
+ name: params.name,
5055
+ propertyId: params.propertyId,
5056
+ type: params.type
5057
+ };
5058
+ if (params.type === "controlKitV1") {
5059
+ body.simIdArray = params.simIdArray;
5060
+ body.signalStrengthPercentage = params.signalStrengthPercentage;
5061
+ body.teltonikaSerialNumber = params.teltonikaSerialNumber;
5062
+ } else if (params.type === "tapkeyV1") {
5063
+ body.physicalLockId = params.physicalLockId;
5064
+ body.boundLockId = params.boundLockId;
5065
+ body.ownerAccountId = params.ownerAccountId;
5066
+ body.ipId = params.ipId;
5067
+ } else if (params.type === "emzV1") {
5068
+ body.contractId = params.contractId;
5069
+ body.targetHardwareId = params.targetHardwareId;
5070
+ body.userId = params.userId;
5071
+ body.username = params.username;
5072
+ body.password = params.password;
5073
+ }
5053
5074
  return await super.sendRequest(
5054
5075
  {
5055
5076
  method: "POST",
5056
5077
  url: "kits",
5057
- body: {
5058
- name: params.name,
5059
- propertyId: params.propertyId,
5060
- template: params.template
5061
- },
5078
+ body,
5062
5079
  authenticationNotOptional: true
5063
5080
  },
5064
5081
  options
@@ -5124,6 +5141,30 @@ var KitsService = class extends Service {
5124
5141
  options
5125
5142
  );
5126
5143
  }
5144
+ async attachProperty(params, options) {
5145
+ return await super.sendRequest(
5146
+ {
5147
+ method: "PATCH",
5148
+ url: "kits/" + params.kitId + "/attachProperty",
5149
+ body: {
5150
+ propertyId: params.propertyId
5151
+ },
5152
+ authenticationNotOptional: true
5153
+ },
5154
+ options
5155
+ );
5156
+ }
5157
+ async detachProperty(params, options) {
5158
+ return await super.sendRequest(
5159
+ {
5160
+ method: "PATCH",
5161
+ url: "kits/" + params.kitId + "/detachProperty",
5162
+ body: void 0,
5163
+ authenticationNotOptional: true
5164
+ },
5165
+ options
5166
+ );
5167
+ }
5127
5168
  };
5128
5169
 
5129
5170
  // src/panels/panels.service.ts
package/dist/index.mjs CHANGED
@@ -5006,15 +5006,32 @@ var KitsService = class extends Service {
5006
5006
  super(config);
5007
5007
  }
5008
5008
  async create(params, options) {
5009
+ const body = {
5010
+ name: params.name,
5011
+ propertyId: params.propertyId,
5012
+ type: params.type
5013
+ };
5014
+ if (params.type === "controlKitV1") {
5015
+ body.simIdArray = params.simIdArray;
5016
+ body.signalStrengthPercentage = params.signalStrengthPercentage;
5017
+ body.teltonikaSerialNumber = params.teltonikaSerialNumber;
5018
+ } else if (params.type === "tapkeyV1") {
5019
+ body.physicalLockId = params.physicalLockId;
5020
+ body.boundLockId = params.boundLockId;
5021
+ body.ownerAccountId = params.ownerAccountId;
5022
+ body.ipId = params.ipId;
5023
+ } else if (params.type === "emzV1") {
5024
+ body.contractId = params.contractId;
5025
+ body.targetHardwareId = params.targetHardwareId;
5026
+ body.userId = params.userId;
5027
+ body.username = params.username;
5028
+ body.password = params.password;
5029
+ }
5009
5030
  return await super.sendRequest(
5010
5031
  {
5011
5032
  method: "POST",
5012
5033
  url: "kits",
5013
- body: {
5014
- name: params.name,
5015
- propertyId: params.propertyId,
5016
- template: params.template
5017
- },
5034
+ body,
5018
5035
  authenticationNotOptional: true
5019
5036
  },
5020
5037
  options
@@ -5080,6 +5097,30 @@ var KitsService = class extends Service {
5080
5097
  options
5081
5098
  );
5082
5099
  }
5100
+ async attachProperty(params, options) {
5101
+ return await super.sendRequest(
5102
+ {
5103
+ method: "PATCH",
5104
+ url: "kits/" + params.kitId + "/attachProperty",
5105
+ body: {
5106
+ propertyId: params.propertyId
5107
+ },
5108
+ authenticationNotOptional: true
5109
+ },
5110
+ options
5111
+ );
5112
+ }
5113
+ async detachProperty(params, options) {
5114
+ return await super.sendRequest(
5115
+ {
5116
+ method: "PATCH",
5117
+ url: "kits/" + params.kitId + "/detachProperty",
5118
+ body: void 0,
5119
+ authenticationNotOptional: true
5120
+ },
5121
+ options
5122
+ );
5123
+ }
5083
5124
  };
5084
5125
 
5085
5126
  // src/panels/panels.service.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.287",
3
+ "version": "1.2.289",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",