@juhuu/sdk-ts 1.2.72 → 1.2.73

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
@@ -790,7 +790,8 @@ declare class ArticleEmbeddingsService extends Service {
790
790
 
791
791
  declare class BoldLockService extends Service {
792
792
  constructor(config: JUHUU.SetupConfig);
793
- configuration(BoldLockRetrieveParams: JUHUU.BoldLock.Configuration.Params, BoldLockRetrieveOptions?: JUHUU.BoldLock.Configuration.Options): Promise<JUHUU.HttpResponse<JUHUU.BoldLock.Configuration.Response>>;
793
+ credentials(BoldLockCredentialsParams: JUHUU.BoldLock.Credentials.Params, BoldLockCredentialsOptions?: JUHUU.BoldLock.Credentials.Options): Promise<JUHUU.HttpResponse<JUHUU.BoldLock.Credentials.Response>>;
794
+ grantAccess(BoldLockGrantAccessParams: JUHUU.BoldLock.GrantAccess.Params, BoldLockGrantAccessOptions?: JUHUU.BoldLock.GrantAccess.Options): Promise<JUHUU.HttpResponse<JUHUU.BoldLock.GrantAccess.Response>>;
794
795
  }
795
796
 
796
797
  declare class Juhuu {
@@ -1223,17 +1224,27 @@ declare namespace JUHUU {
1223
1224
  export { };
1224
1225
  }
1225
1226
  namespace BoldLock {
1226
- namespace Configuration {
1227
+ namespace Credentials {
1227
1228
  type Params = {
1228
- deviceId: string;
1229
+ userId: string;
1229
1230
  };
1230
1231
  type Options = JUHUU.RequestOptions;
1231
1232
  type Response = {
1232
1233
  boldClientId: string;
1233
1234
  boldClientSecret: string;
1234
- boldRedirectUri: string;
1235
- boldAuthorizationCode: string;
1236
1235
  boldDeviceId: number;
1236
+ boldAuthorizationCode: string;
1237
+ boldRedirectUri: string;
1238
+ };
1239
+ }
1240
+ namespace GrantAccess {
1241
+ type Params = {
1242
+ userId: string;
1243
+ deviceId: string;
1244
+ };
1245
+ type Options = JUHUU.RequestOptions;
1246
+ type Response = {
1247
+ device: JUHUU.Device.Object;
1237
1248
  };
1238
1249
  }
1239
1250
  }
@@ -2359,12 +2370,13 @@ declare namespace JUHUU {
2359
2370
  source?: "fluctuo" | null;
2360
2371
  };
2361
2372
  type Options = {
2362
- expand?: Array<"property" | "deviceTemplate">;
2373
+ expand?: Array<"property" | "deviceTemplate" | "connector">;
2363
2374
  } & JUHUU.RequestOptions;
2364
2375
  type Response = {
2365
2376
  device: JUHUU.Device.Object;
2366
2377
  deviceTemplate?: JUHUU.DeviceTemplate.Object;
2367
2378
  property?: JUHUU.Property.Object;
2379
+ connector?: JUHUU.Connector.Object;
2368
2380
  };
2369
2381
  }
2370
2382
  namespace List {
@@ -2482,7 +2494,13 @@ declare namespace JUHUU {
2482
2494
  mqttQos: "0" | "1" | "2";
2483
2495
  acls: AccessControlListElement[];
2484
2496
  }
2485
- export type Object = Mqtt;
2497
+ export interface BoldLock extends Base {
2498
+ boldClientId: string;
2499
+ boldClientSecret: string;
2500
+ boldOrganizationId: number;
2501
+ boldDeviceId: number;
2502
+ }
2503
+ export type Object = Mqtt | BoldLock;
2486
2504
  export namespace Retrieve {
2487
2505
  type Params = {
2488
2506
  connectorId: string;
package/dist/index.d.ts CHANGED
@@ -790,7 +790,8 @@ declare class ArticleEmbeddingsService extends Service {
790
790
 
791
791
  declare class BoldLockService extends Service {
792
792
  constructor(config: JUHUU.SetupConfig);
793
- configuration(BoldLockRetrieveParams: JUHUU.BoldLock.Configuration.Params, BoldLockRetrieveOptions?: JUHUU.BoldLock.Configuration.Options): Promise<JUHUU.HttpResponse<JUHUU.BoldLock.Configuration.Response>>;
793
+ credentials(BoldLockCredentialsParams: JUHUU.BoldLock.Credentials.Params, BoldLockCredentialsOptions?: JUHUU.BoldLock.Credentials.Options): Promise<JUHUU.HttpResponse<JUHUU.BoldLock.Credentials.Response>>;
794
+ grantAccess(BoldLockGrantAccessParams: JUHUU.BoldLock.GrantAccess.Params, BoldLockGrantAccessOptions?: JUHUU.BoldLock.GrantAccess.Options): Promise<JUHUU.HttpResponse<JUHUU.BoldLock.GrantAccess.Response>>;
794
795
  }
795
796
 
796
797
  declare class Juhuu {
@@ -1223,17 +1224,27 @@ declare namespace JUHUU {
1223
1224
  export { };
1224
1225
  }
1225
1226
  namespace BoldLock {
1226
- namespace Configuration {
1227
+ namespace Credentials {
1227
1228
  type Params = {
1228
- deviceId: string;
1229
+ userId: string;
1229
1230
  };
1230
1231
  type Options = JUHUU.RequestOptions;
1231
1232
  type Response = {
1232
1233
  boldClientId: string;
1233
1234
  boldClientSecret: string;
1234
- boldRedirectUri: string;
1235
- boldAuthorizationCode: string;
1236
1235
  boldDeviceId: number;
1236
+ boldAuthorizationCode: string;
1237
+ boldRedirectUri: string;
1238
+ };
1239
+ }
1240
+ namespace GrantAccess {
1241
+ type Params = {
1242
+ userId: string;
1243
+ deviceId: string;
1244
+ };
1245
+ type Options = JUHUU.RequestOptions;
1246
+ type Response = {
1247
+ device: JUHUU.Device.Object;
1237
1248
  };
1238
1249
  }
1239
1250
  }
@@ -2359,12 +2370,13 @@ declare namespace JUHUU {
2359
2370
  source?: "fluctuo" | null;
2360
2371
  };
2361
2372
  type Options = {
2362
- expand?: Array<"property" | "deviceTemplate">;
2373
+ expand?: Array<"property" | "deviceTemplate" | "connector">;
2363
2374
  } & JUHUU.RequestOptions;
2364
2375
  type Response = {
2365
2376
  device: JUHUU.Device.Object;
2366
2377
  deviceTemplate?: JUHUU.DeviceTemplate.Object;
2367
2378
  property?: JUHUU.Property.Object;
2379
+ connector?: JUHUU.Connector.Object;
2368
2380
  };
2369
2381
  }
2370
2382
  namespace List {
@@ -2482,7 +2494,13 @@ declare namespace JUHUU {
2482
2494
  mqttQos: "0" | "1" | "2";
2483
2495
  acls: AccessControlListElement[];
2484
2496
  }
2485
- export type Object = Mqtt;
2497
+ export interface BoldLock extends Base {
2498
+ boldClientId: string;
2499
+ boldClientSecret: string;
2500
+ boldOrganizationId: number;
2501
+ boldDeviceId: number;
2502
+ }
2503
+ export type Object = Mqtt | BoldLock;
2486
2504
  export namespace Retrieve {
2487
2505
  type Params = {
2488
2506
  connectorId: string;
package/dist/index.js CHANGED
@@ -2239,16 +2239,31 @@ var BoldLockService = class extends Service {
2239
2239
  constructor(config) {
2240
2240
  super(config);
2241
2241
  }
2242
- async configuration(BoldLockRetrieveParams, BoldLockRetrieveOptions) {
2242
+ async credentials(BoldLockCredentialsParams, BoldLockCredentialsOptions) {
2243
2243
  const queryArray = [];
2244
2244
  return await super.sendRequest(
2245
2245
  {
2246
2246
  method: "GET",
2247
- url: "boldLock/configuration?deviceId=" + BoldLockRetrieveParams.deviceId,
2247
+ url: "boldLock/credentials?userId=" + BoldLockCredentialsParams.userId,
2248
2248
  body: void 0,
2249
2249
  authenticationNotOptional: true
2250
2250
  },
2251
- BoldLockRetrieveOptions
2251
+ BoldLockCredentialsOptions
2252
+ );
2253
+ }
2254
+ async grantAccess(BoldLockGrantAccessParams, BoldLockGrantAccessOptions) {
2255
+ const queryArray = [];
2256
+ return await super.sendRequest(
2257
+ {
2258
+ method: "POST",
2259
+ url: "boldLock/grantAccess",
2260
+ body: {
2261
+ userId: BoldLockGrantAccessParams.userId,
2262
+ deviceId: BoldLockGrantAccessParams.deviceId
2263
+ },
2264
+ authenticationNotOptional: true
2265
+ },
2266
+ BoldLockGrantAccessOptions
2252
2267
  );
2253
2268
  }
2254
2269
  };
package/dist/index.mjs CHANGED
@@ -2195,16 +2195,31 @@ var BoldLockService = class extends Service {
2195
2195
  constructor(config) {
2196
2196
  super(config);
2197
2197
  }
2198
- async configuration(BoldLockRetrieveParams, BoldLockRetrieveOptions) {
2198
+ async credentials(BoldLockCredentialsParams, BoldLockCredentialsOptions) {
2199
2199
  const queryArray = [];
2200
2200
  return await super.sendRequest(
2201
2201
  {
2202
2202
  method: "GET",
2203
- url: "boldLock/configuration?deviceId=" + BoldLockRetrieveParams.deviceId,
2203
+ url: "boldLock/credentials?userId=" + BoldLockCredentialsParams.userId,
2204
2204
  body: void 0,
2205
2205
  authenticationNotOptional: true
2206
2206
  },
2207
- BoldLockRetrieveOptions
2207
+ BoldLockCredentialsOptions
2208
+ );
2209
+ }
2210
+ async grantAccess(BoldLockGrantAccessParams, BoldLockGrantAccessOptions) {
2211
+ const queryArray = [];
2212
+ return await super.sendRequest(
2213
+ {
2214
+ method: "POST",
2215
+ url: "boldLock/grantAccess",
2216
+ body: {
2217
+ userId: BoldLockGrantAccessParams.userId,
2218
+ deviceId: BoldLockGrantAccessParams.deviceId
2219
+ },
2220
+ authenticationNotOptional: true
2221
+ },
2222
+ BoldLockGrantAccessOptions
2208
2223
  );
2209
2224
  }
2210
2225
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.72",
3
+ "version": "1.2.73",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",