@juhuu/sdk-ts 1.2.288 → 1.2.290

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 {
@@ -6221,6 +6223,7 @@ declare namespace JUHUU {
6221
6223
  mqttTopicId: string;
6222
6224
  signalStrengthPercentage: number;
6223
6225
  teltonikaSerialNumber: string;
6226
+ flowIdArray: string[];
6224
6227
  };
6225
6228
  type TapkeyV1 = BaseKit & {
6226
6229
  type: "tapkeyV1";
@@ -6241,27 +6244,23 @@ declare namespace JUHUU {
6241
6244
  namespace Create {
6242
6245
  type Params = {
6243
6246
  name?: string;
6244
- propertyId: string;
6247
+ propertyId?: string;
6245
6248
  type: "controlKitV1";
6246
- status: KitStatus;
6247
6249
  simIdArray: string[];
6248
- mqttTopicId: string;
6249
6250
  signalStrengthPercentage: number;
6250
6251
  teltonikaSerialNumber: string;
6251
6252
  } | {
6252
6253
  name?: string;
6253
- propertyId: string;
6254
+ propertyId?: string;
6254
6255
  type: "tapkeyV1";
6255
- status: KitStatus;
6256
6256
  physicalLockId: string;
6257
6257
  boundLockId: string;
6258
6258
  ownerAccountId: string;
6259
6259
  ipId: string;
6260
6260
  } | {
6261
6261
  name?: string;
6262
- propertyId: string;
6262
+ propertyId?: string;
6263
6263
  type: "emzV1";
6264
- status: KitStatus;
6265
6264
  contractId: string;
6266
6265
  targetHardwareId: string;
6267
6266
  userId: string;
@@ -6301,6 +6300,7 @@ declare namespace JUHUU {
6301
6300
  type Params = {
6302
6301
  kitId: string;
6303
6302
  name?: string;
6303
+ flowIdArray?: string[];
6304
6304
  };
6305
6305
  type Options = JUHUU.RequestOptions;
6306
6306
  type Response = {
@@ -6314,6 +6314,25 @@ declare namespace JUHUU {
6314
6314
  type Options = JUHUU.RequestOptions;
6315
6315
  type Response = JUHUU.Kit.Object;
6316
6316
  }
6317
+ namespace AttachProperty {
6318
+ type Params = {
6319
+ kitId: string;
6320
+ propertyId: string;
6321
+ };
6322
+ type Options = JUHUU.RequestOptions;
6323
+ type Response = {
6324
+ kit: JUHUU.Kit.Object;
6325
+ };
6326
+ }
6327
+ namespace DetachProperty {
6328
+ type Params = {
6329
+ kitId: string;
6330
+ };
6331
+ type Options = JUHUU.RequestOptions;
6332
+ type Response = {
6333
+ kit: JUHUU.Kit.Object;
6334
+ };
6335
+ }
6317
6336
  }
6318
6337
  namespace Panel {
6319
6338
  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 {
@@ -6221,6 +6223,7 @@ declare namespace JUHUU {
6221
6223
  mqttTopicId: string;
6222
6224
  signalStrengthPercentage: number;
6223
6225
  teltonikaSerialNumber: string;
6226
+ flowIdArray: string[];
6224
6227
  };
6225
6228
  type TapkeyV1 = BaseKit & {
6226
6229
  type: "tapkeyV1";
@@ -6241,27 +6244,23 @@ declare namespace JUHUU {
6241
6244
  namespace Create {
6242
6245
  type Params = {
6243
6246
  name?: string;
6244
- propertyId: string;
6247
+ propertyId?: string;
6245
6248
  type: "controlKitV1";
6246
- status: KitStatus;
6247
6249
  simIdArray: string[];
6248
- mqttTopicId: string;
6249
6250
  signalStrengthPercentage: number;
6250
6251
  teltonikaSerialNumber: string;
6251
6252
  } | {
6252
6253
  name?: string;
6253
- propertyId: string;
6254
+ propertyId?: string;
6254
6255
  type: "tapkeyV1";
6255
- status: KitStatus;
6256
6256
  physicalLockId: string;
6257
6257
  boundLockId: string;
6258
6258
  ownerAccountId: string;
6259
6259
  ipId: string;
6260
6260
  } | {
6261
6261
  name?: string;
6262
- propertyId: string;
6262
+ propertyId?: string;
6263
6263
  type: "emzV1";
6264
- status: KitStatus;
6265
6264
  contractId: string;
6266
6265
  targetHardwareId: string;
6267
6266
  userId: string;
@@ -6301,6 +6300,7 @@ declare namespace JUHUU {
6301
6300
  type Params = {
6302
6301
  kitId: string;
6303
6302
  name?: string;
6303
+ flowIdArray?: string[];
6304
6304
  };
6305
6305
  type Options = JUHUU.RequestOptions;
6306
6306
  type Response = {
@@ -6314,6 +6314,25 @@ declare namespace JUHUU {
6314
6314
  type Options = JUHUU.RequestOptions;
6315
6315
  type Response = JUHUU.Kit.Object;
6316
6316
  }
6317
+ namespace AttachProperty {
6318
+ type Params = {
6319
+ kitId: string;
6320
+ propertyId: string;
6321
+ };
6322
+ type Options = JUHUU.RequestOptions;
6323
+ type Response = {
6324
+ kit: JUHUU.Kit.Object;
6325
+ };
6326
+ }
6327
+ namespace DetachProperty {
6328
+ type Params = {
6329
+ kitId: string;
6330
+ };
6331
+ type Options = JUHUU.RequestOptions;
6332
+ type Response = {
6333
+ kit: JUHUU.Kit.Object;
6334
+ };
6335
+ }
6317
6336
  }
6318
6337
  namespace Panel {
6319
6338
  type Object = {
package/dist/index.js CHANGED
@@ -5053,12 +5053,10 @@ var KitsService = class extends Service {
5053
5053
  const body = {
5054
5054
  name: params.name,
5055
5055
  propertyId: params.propertyId,
5056
- type: params.type,
5057
- status: params.status
5056
+ type: params.type
5058
5057
  };
5059
5058
  if (params.type === "controlKitV1") {
5060
5059
  body.simIdArray = params.simIdArray;
5061
- body.mqttTopicId = params.mqttTopicId;
5062
5060
  body.signalStrengthPercentage = params.signalStrengthPercentage;
5063
5061
  body.teltonikaSerialNumber = params.teltonikaSerialNumber;
5064
5062
  } else if (params.type === "tapkeyV1") {
@@ -5125,7 +5123,8 @@ var KitsService = class extends Service {
5125
5123
  method: "PATCH",
5126
5124
  url: "kits/" + params.kitId,
5127
5125
  body: {
5128
- name: params.name
5126
+ name: params.name,
5127
+ flowIdArray: params.flowIdArray
5129
5128
  },
5130
5129
  authenticationNotOptional: true
5131
5130
  },
@@ -5143,6 +5142,30 @@ var KitsService = class extends Service {
5143
5142
  options
5144
5143
  );
5145
5144
  }
5145
+ async attachProperty(params, options) {
5146
+ return await super.sendRequest(
5147
+ {
5148
+ method: "PATCH",
5149
+ url: "kits/" + params.kitId + "/attachProperty",
5150
+ body: {
5151
+ propertyId: params.propertyId
5152
+ },
5153
+ authenticationNotOptional: true
5154
+ },
5155
+ options
5156
+ );
5157
+ }
5158
+ async detachProperty(params, options) {
5159
+ return await super.sendRequest(
5160
+ {
5161
+ method: "PATCH",
5162
+ url: "kits/" + params.kitId + "/detachProperty",
5163
+ body: void 0,
5164
+ authenticationNotOptional: true
5165
+ },
5166
+ options
5167
+ );
5168
+ }
5146
5169
  };
5147
5170
 
5148
5171
  // src/panels/panels.service.ts
package/dist/index.mjs CHANGED
@@ -5009,12 +5009,10 @@ var KitsService = class extends Service {
5009
5009
  const body = {
5010
5010
  name: params.name,
5011
5011
  propertyId: params.propertyId,
5012
- type: params.type,
5013
- status: params.status
5012
+ type: params.type
5014
5013
  };
5015
5014
  if (params.type === "controlKitV1") {
5016
5015
  body.simIdArray = params.simIdArray;
5017
- body.mqttTopicId = params.mqttTopicId;
5018
5016
  body.signalStrengthPercentage = params.signalStrengthPercentage;
5019
5017
  body.teltonikaSerialNumber = params.teltonikaSerialNumber;
5020
5018
  } else if (params.type === "tapkeyV1") {
@@ -5081,7 +5079,8 @@ var KitsService = class extends Service {
5081
5079
  method: "PATCH",
5082
5080
  url: "kits/" + params.kitId,
5083
5081
  body: {
5084
- name: params.name
5082
+ name: params.name,
5083
+ flowIdArray: params.flowIdArray
5085
5084
  },
5086
5085
  authenticationNotOptional: true
5087
5086
  },
@@ -5099,6 +5098,30 @@ var KitsService = class extends Service {
5099
5098
  options
5100
5099
  );
5101
5100
  }
5101
+ async attachProperty(params, options) {
5102
+ return await super.sendRequest(
5103
+ {
5104
+ method: "PATCH",
5105
+ url: "kits/" + params.kitId + "/attachProperty",
5106
+ body: {
5107
+ propertyId: params.propertyId
5108
+ },
5109
+ authenticationNotOptional: true
5110
+ },
5111
+ options
5112
+ );
5113
+ }
5114
+ async detachProperty(params, options) {
5115
+ return await super.sendRequest(
5116
+ {
5117
+ method: "PATCH",
5118
+ url: "kits/" + params.kitId + "/detachProperty",
5119
+ body: void 0,
5120
+ authenticationNotOptional: true
5121
+ },
5122
+ options
5123
+ );
5124
+ }
5102
5125
  };
5103
5126
 
5104
5127
  // 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.288",
3
+ "version": "1.2.290",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",