@juhuu/sdk-ts 1.2.288 → 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 +24 -7
- package/dist/index.d.ts +24 -7
- package/dist/index.js +25 -3
- package/dist/index.mjs +25 -3
- package/package.json +1 -1
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 {
|
|
@@ -6241,27 +6243,23 @@ declare namespace JUHUU {
|
|
|
6241
6243
|
namespace Create {
|
|
6242
6244
|
type Params = {
|
|
6243
6245
|
name?: string;
|
|
6244
|
-
propertyId
|
|
6246
|
+
propertyId?: string;
|
|
6245
6247
|
type: "controlKitV1";
|
|
6246
|
-
status: KitStatus;
|
|
6247
6248
|
simIdArray: string[];
|
|
6248
|
-
mqttTopicId: string;
|
|
6249
6249
|
signalStrengthPercentage: number;
|
|
6250
6250
|
teltonikaSerialNumber: string;
|
|
6251
6251
|
} | {
|
|
6252
6252
|
name?: string;
|
|
6253
|
-
propertyId
|
|
6253
|
+
propertyId?: string;
|
|
6254
6254
|
type: "tapkeyV1";
|
|
6255
|
-
status: KitStatus;
|
|
6256
6255
|
physicalLockId: string;
|
|
6257
6256
|
boundLockId: string;
|
|
6258
6257
|
ownerAccountId: string;
|
|
6259
6258
|
ipId: string;
|
|
6260
6259
|
} | {
|
|
6261
6260
|
name?: string;
|
|
6262
|
-
propertyId
|
|
6261
|
+
propertyId?: string;
|
|
6263
6262
|
type: "emzV1";
|
|
6264
|
-
status: KitStatus;
|
|
6265
6263
|
contractId: string;
|
|
6266
6264
|
targetHardwareId: string;
|
|
6267
6265
|
userId: string;
|
|
@@ -6314,6 +6312,25 @@ declare namespace JUHUU {
|
|
|
6314
6312
|
type Options = JUHUU.RequestOptions;
|
|
6315
6313
|
type Response = JUHUU.Kit.Object;
|
|
6316
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
|
+
}
|
|
6317
6334
|
}
|
|
6318
6335
|
namespace Panel {
|
|
6319
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 {
|
|
@@ -6241,27 +6243,23 @@ declare namespace JUHUU {
|
|
|
6241
6243
|
namespace Create {
|
|
6242
6244
|
type Params = {
|
|
6243
6245
|
name?: string;
|
|
6244
|
-
propertyId
|
|
6246
|
+
propertyId?: string;
|
|
6245
6247
|
type: "controlKitV1";
|
|
6246
|
-
status: KitStatus;
|
|
6247
6248
|
simIdArray: string[];
|
|
6248
|
-
mqttTopicId: string;
|
|
6249
6249
|
signalStrengthPercentage: number;
|
|
6250
6250
|
teltonikaSerialNumber: string;
|
|
6251
6251
|
} | {
|
|
6252
6252
|
name?: string;
|
|
6253
|
-
propertyId
|
|
6253
|
+
propertyId?: string;
|
|
6254
6254
|
type: "tapkeyV1";
|
|
6255
|
-
status: KitStatus;
|
|
6256
6255
|
physicalLockId: string;
|
|
6257
6256
|
boundLockId: string;
|
|
6258
6257
|
ownerAccountId: string;
|
|
6259
6258
|
ipId: string;
|
|
6260
6259
|
} | {
|
|
6261
6260
|
name?: string;
|
|
6262
|
-
propertyId
|
|
6261
|
+
propertyId?: string;
|
|
6263
6262
|
type: "emzV1";
|
|
6264
|
-
status: KitStatus;
|
|
6265
6263
|
contractId: string;
|
|
6266
6264
|
targetHardwareId: string;
|
|
6267
6265
|
userId: string;
|
|
@@ -6314,6 +6312,25 @@ declare namespace JUHUU {
|
|
|
6314
6312
|
type Options = JUHUU.RequestOptions;
|
|
6315
6313
|
type Response = JUHUU.Kit.Object;
|
|
6316
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
|
+
}
|
|
6317
6334
|
}
|
|
6318
6335
|
namespace Panel {
|
|
6319
6336
|
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") {
|
|
@@ -5143,6 +5141,30 @@ var KitsService = class extends Service {
|
|
|
5143
5141
|
options
|
|
5144
5142
|
);
|
|
5145
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
|
+
}
|
|
5146
5168
|
};
|
|
5147
5169
|
|
|
5148
5170
|
// 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") {
|
|
@@ -5099,6 +5097,30 @@ var KitsService = class extends Service {
|
|
|
5099
5097
|
options
|
|
5100
5098
|
);
|
|
5101
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
|
+
}
|
|
5102
5124
|
};
|
|
5103
5125
|
|
|
5104
5126
|
// src/panels/panels.service.ts
|