@juhuu/sdk-ts 1.2.71 → 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
@@ -576,6 +576,7 @@ declare class SessionService extends Service {
576
576
  attachLocation(SessionAttachLocationParams: JUHUU.Session.AttachLocation.Params, SessionLocationOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
577
577
  attachUser(SessionAttachUserParams: JUHUU.Session.AttachUser.Params, SessionAttachUserOptions?: JUHUU.Session.AttachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachUser.Response>>;
578
578
  detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
579
+ delete(SessionDeleteUserParams: JUHUU.Session.Delete.Params, SessionDeleteUserOptions?: JUHUU.Session.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Delete.Response>>;
579
580
  }
580
581
 
581
582
  declare class LinkService extends Service {
@@ -789,7 +790,8 @@ declare class ArticleEmbeddingsService extends Service {
789
790
 
790
791
  declare class BoldLockService extends Service {
791
792
  constructor(config: JUHUU.SetupConfig);
792
- 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>>;
793
795
  }
794
796
 
795
797
  declare class Juhuu {
@@ -1045,6 +1047,13 @@ declare namespace JUHUU {
1045
1047
  session: JUHUU.Session.Object;
1046
1048
  };
1047
1049
  }
1050
+ export namespace Delete {
1051
+ type Params = {
1052
+ sessionId?: string;
1053
+ };
1054
+ type Options = JUHUU.RequestOptions;
1055
+ type Response = JUHUU.Session.Object;
1056
+ }
1048
1057
  export { };
1049
1058
  }
1050
1059
  namespace User {
@@ -1210,22 +1219,32 @@ declare namespace JUHUU {
1210
1219
  userId?: string;
1211
1220
  };
1212
1221
  type Options = JUHUU.RequestOptions;
1213
- type Response = JUHUU.User.Object[];
1222
+ type Response = JUHUU.User.Object;
1214
1223
  }
1215
1224
  export { };
1216
1225
  }
1217
1226
  namespace BoldLock {
1218
- namespace Configuration {
1227
+ namespace Credentials {
1219
1228
  type Params = {
1220
- deviceId: string;
1229
+ userId: string;
1221
1230
  };
1222
1231
  type Options = JUHUU.RequestOptions;
1223
1232
  type Response = {
1224
1233
  boldClientId: string;
1225
1234
  boldClientSecret: string;
1226
- boldRedirectUri: string;
1227
- boldAuthorizationCode: string;
1228
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;
1229
1248
  };
1230
1249
  }
1231
1250
  }
@@ -1281,7 +1300,7 @@ declare namespace JUHUU {
1281
1300
  termId?: string;
1282
1301
  };
1283
1302
  type Options = JUHUU.RequestOptions;
1284
- type Response = JUHUU.Term.Object[];
1303
+ type Response = JUHUU.Term.Object;
1285
1304
  }
1286
1305
  }
1287
1306
  namespace AccountingArea {
@@ -1329,7 +1348,7 @@ declare namespace JUHUU {
1329
1348
  accountingAreaId?: string;
1330
1349
  };
1331
1350
  type Options = JUHUU.RequestOptions;
1332
- type Response = JUHUU.AccountingArea.Object[];
1351
+ type Response = JUHUU.AccountingArea.Object;
1333
1352
  }
1334
1353
  }
1335
1354
  namespace ArticleEmbedding {
@@ -1440,7 +1459,7 @@ declare namespace JUHUU {
1440
1459
  articleId?: string;
1441
1460
  };
1442
1461
  type Options = JUHUU.RequestOptions;
1443
- type Response = JUHUU.Article.Object[];
1462
+ type Response = JUHUU.Article.Object;
1444
1463
  }
1445
1464
  namespace Search {
1446
1465
  type Params = {
@@ -1521,7 +1540,7 @@ declare namespace JUHUU {
1521
1540
  chatId: string;
1522
1541
  };
1523
1542
  type Options = JUHUU.RequestOptions;
1524
- type Response = JUHUU.Chat.Object[];
1543
+ type Response = JUHUU.Chat.Object;
1525
1544
  }
1526
1545
  namespace Complete {
1527
1546
  type Params = {
@@ -1688,7 +1707,7 @@ declare namespace JUHUU {
1688
1707
  tariffId?: string;
1689
1708
  };
1690
1709
  type Options = JUHUU.RequestOptions;
1691
- type Response = JUHUU.Tariff.Object[];
1710
+ type Response = JUHUU.Tariff.Object;
1692
1711
  }
1693
1712
  }
1694
1713
  namespace Survey {
@@ -1770,7 +1789,7 @@ declare namespace JUHUU {
1770
1789
  licenseTemplateId?: string;
1771
1790
  };
1772
1791
  type Options = JUHUU.RequestOptions;
1773
- type Response = JUHUU.LicenseTemplate.Object[];
1792
+ type Response = JUHUU.LicenseTemplate.Object;
1774
1793
  }
1775
1794
  export { };
1776
1795
  }
@@ -2169,7 +2188,7 @@ declare namespace JUHUU {
2169
2188
  locationId?: string;
2170
2189
  };
2171
2190
  type Options = JUHUU.RequestOptions;
2172
- type Response = JUHUU.Location.Object[];
2191
+ type Response = JUHUU.Location.Object;
2173
2192
  }
2174
2193
  export { };
2175
2194
  }
@@ -2247,7 +2266,7 @@ declare namespace JUHUU {
2247
2266
  productId?: string;
2248
2267
  };
2249
2268
  type Options = JUHUU.RequestOptions;
2250
- type Response = JUHUU.Product.Object[];
2269
+ type Response = JUHUU.Product.Object;
2251
2270
  }
2252
2271
  }
2253
2272
  namespace Link {
@@ -2300,7 +2319,7 @@ declare namespace JUHUU {
2300
2319
  linkId?: string;
2301
2320
  };
2302
2321
  type Options = JUHUU.RequestOptions;
2303
- type Response = JUHUU.Link.Object[];
2322
+ type Response = JUHUU.Link.Object;
2304
2323
  }
2305
2324
  export { };
2306
2325
  }
@@ -2351,12 +2370,13 @@ declare namespace JUHUU {
2351
2370
  source?: "fluctuo" | null;
2352
2371
  };
2353
2372
  type Options = {
2354
- expand?: Array<"property" | "deviceTemplate">;
2373
+ expand?: Array<"property" | "deviceTemplate" | "connector">;
2355
2374
  } & JUHUU.RequestOptions;
2356
2375
  type Response = {
2357
2376
  device: JUHUU.Device.Object;
2358
2377
  deviceTemplate?: JUHUU.DeviceTemplate.Object;
2359
2378
  property?: JUHUU.Property.Object;
2379
+ connector?: JUHUU.Connector.Object;
2360
2380
  };
2361
2381
  }
2362
2382
  namespace List {
@@ -2425,7 +2445,7 @@ declare namespace JUHUU {
2425
2445
  deviceId?: string;
2426
2446
  };
2427
2447
  type Options = JUHUU.RequestOptions;
2428
- type Response = JUHUU.Device.Object[];
2448
+ type Response = JUHUU.Device.Object;
2429
2449
  }
2430
2450
  }
2431
2451
  namespace Connector {
@@ -2474,7 +2494,13 @@ declare namespace JUHUU {
2474
2494
  mqttQos: "0" | "1" | "2";
2475
2495
  acls: AccessControlListElement[];
2476
2496
  }
2477
- 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;
2478
2504
  export namespace Retrieve {
2479
2505
  type Params = {
2480
2506
  connectorId: string;
@@ -2498,7 +2524,7 @@ declare namespace JUHUU {
2498
2524
  connectorId?: string;
2499
2525
  };
2500
2526
  type Options = JUHUU.RequestOptions;
2501
- type Response = JUHUU.Connector.Object[];
2527
+ type Response = JUHUU.Connector.Object;
2502
2528
  }
2503
2529
  export { };
2504
2530
  }
@@ -2557,7 +2583,7 @@ declare namespace JUHUU {
2557
2583
  deviceTemplateId?: string;
2558
2584
  };
2559
2585
  type Options = JUHUU.RequestOptions;
2560
- type Response = JUHUU.DeviceTemplate.Object[];
2586
+ type Response = JUHUU.DeviceTemplate.Object;
2561
2587
  }
2562
2588
  }
2563
2589
  namespace Sim {
@@ -2619,7 +2645,7 @@ declare namespace JUHUU {
2619
2645
  simId?: string;
2620
2646
  };
2621
2647
  type Options = JUHUU.RequestOptions;
2622
- type Response = JUHUU.Sim.Object[];
2648
+ type Response = JUHUU.Sim.Object;
2623
2649
  }
2624
2650
  }
2625
2651
  namespace ConnectorMessage {
package/dist/index.d.ts CHANGED
@@ -576,6 +576,7 @@ declare class SessionService extends Service {
576
576
  attachLocation(SessionAttachLocationParams: JUHUU.Session.AttachLocation.Params, SessionLocationOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
577
577
  attachUser(SessionAttachUserParams: JUHUU.Session.AttachUser.Params, SessionAttachUserOptions?: JUHUU.Session.AttachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachUser.Response>>;
578
578
  detachUser(SessionDetachUserParams: JUHUU.Session.DetachUser.Params, SessionDetachUserOptions?: JUHUU.Session.DetachUser.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.DetachUser.Response>>;
579
+ delete(SessionDeleteUserParams: JUHUU.Session.Delete.Params, SessionDeleteUserOptions?: JUHUU.Session.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Delete.Response>>;
579
580
  }
580
581
 
581
582
  declare class LinkService extends Service {
@@ -789,7 +790,8 @@ declare class ArticleEmbeddingsService extends Service {
789
790
 
790
791
  declare class BoldLockService extends Service {
791
792
  constructor(config: JUHUU.SetupConfig);
792
- 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>>;
793
795
  }
794
796
 
795
797
  declare class Juhuu {
@@ -1045,6 +1047,13 @@ declare namespace JUHUU {
1045
1047
  session: JUHUU.Session.Object;
1046
1048
  };
1047
1049
  }
1050
+ export namespace Delete {
1051
+ type Params = {
1052
+ sessionId?: string;
1053
+ };
1054
+ type Options = JUHUU.RequestOptions;
1055
+ type Response = JUHUU.Session.Object;
1056
+ }
1048
1057
  export { };
1049
1058
  }
1050
1059
  namespace User {
@@ -1210,22 +1219,32 @@ declare namespace JUHUU {
1210
1219
  userId?: string;
1211
1220
  };
1212
1221
  type Options = JUHUU.RequestOptions;
1213
- type Response = JUHUU.User.Object[];
1222
+ type Response = JUHUU.User.Object;
1214
1223
  }
1215
1224
  export { };
1216
1225
  }
1217
1226
  namespace BoldLock {
1218
- namespace Configuration {
1227
+ namespace Credentials {
1219
1228
  type Params = {
1220
- deviceId: string;
1229
+ userId: string;
1221
1230
  };
1222
1231
  type Options = JUHUU.RequestOptions;
1223
1232
  type Response = {
1224
1233
  boldClientId: string;
1225
1234
  boldClientSecret: string;
1226
- boldRedirectUri: string;
1227
- boldAuthorizationCode: string;
1228
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;
1229
1248
  };
1230
1249
  }
1231
1250
  }
@@ -1281,7 +1300,7 @@ declare namespace JUHUU {
1281
1300
  termId?: string;
1282
1301
  };
1283
1302
  type Options = JUHUU.RequestOptions;
1284
- type Response = JUHUU.Term.Object[];
1303
+ type Response = JUHUU.Term.Object;
1285
1304
  }
1286
1305
  }
1287
1306
  namespace AccountingArea {
@@ -1329,7 +1348,7 @@ declare namespace JUHUU {
1329
1348
  accountingAreaId?: string;
1330
1349
  };
1331
1350
  type Options = JUHUU.RequestOptions;
1332
- type Response = JUHUU.AccountingArea.Object[];
1351
+ type Response = JUHUU.AccountingArea.Object;
1333
1352
  }
1334
1353
  }
1335
1354
  namespace ArticleEmbedding {
@@ -1440,7 +1459,7 @@ declare namespace JUHUU {
1440
1459
  articleId?: string;
1441
1460
  };
1442
1461
  type Options = JUHUU.RequestOptions;
1443
- type Response = JUHUU.Article.Object[];
1462
+ type Response = JUHUU.Article.Object;
1444
1463
  }
1445
1464
  namespace Search {
1446
1465
  type Params = {
@@ -1521,7 +1540,7 @@ declare namespace JUHUU {
1521
1540
  chatId: string;
1522
1541
  };
1523
1542
  type Options = JUHUU.RequestOptions;
1524
- type Response = JUHUU.Chat.Object[];
1543
+ type Response = JUHUU.Chat.Object;
1525
1544
  }
1526
1545
  namespace Complete {
1527
1546
  type Params = {
@@ -1688,7 +1707,7 @@ declare namespace JUHUU {
1688
1707
  tariffId?: string;
1689
1708
  };
1690
1709
  type Options = JUHUU.RequestOptions;
1691
- type Response = JUHUU.Tariff.Object[];
1710
+ type Response = JUHUU.Tariff.Object;
1692
1711
  }
1693
1712
  }
1694
1713
  namespace Survey {
@@ -1770,7 +1789,7 @@ declare namespace JUHUU {
1770
1789
  licenseTemplateId?: string;
1771
1790
  };
1772
1791
  type Options = JUHUU.RequestOptions;
1773
- type Response = JUHUU.LicenseTemplate.Object[];
1792
+ type Response = JUHUU.LicenseTemplate.Object;
1774
1793
  }
1775
1794
  export { };
1776
1795
  }
@@ -2169,7 +2188,7 @@ declare namespace JUHUU {
2169
2188
  locationId?: string;
2170
2189
  };
2171
2190
  type Options = JUHUU.RequestOptions;
2172
- type Response = JUHUU.Location.Object[];
2191
+ type Response = JUHUU.Location.Object;
2173
2192
  }
2174
2193
  export { };
2175
2194
  }
@@ -2247,7 +2266,7 @@ declare namespace JUHUU {
2247
2266
  productId?: string;
2248
2267
  };
2249
2268
  type Options = JUHUU.RequestOptions;
2250
- type Response = JUHUU.Product.Object[];
2269
+ type Response = JUHUU.Product.Object;
2251
2270
  }
2252
2271
  }
2253
2272
  namespace Link {
@@ -2300,7 +2319,7 @@ declare namespace JUHUU {
2300
2319
  linkId?: string;
2301
2320
  };
2302
2321
  type Options = JUHUU.RequestOptions;
2303
- type Response = JUHUU.Link.Object[];
2322
+ type Response = JUHUU.Link.Object;
2304
2323
  }
2305
2324
  export { };
2306
2325
  }
@@ -2351,12 +2370,13 @@ declare namespace JUHUU {
2351
2370
  source?: "fluctuo" | null;
2352
2371
  };
2353
2372
  type Options = {
2354
- expand?: Array<"property" | "deviceTemplate">;
2373
+ expand?: Array<"property" | "deviceTemplate" | "connector">;
2355
2374
  } & JUHUU.RequestOptions;
2356
2375
  type Response = {
2357
2376
  device: JUHUU.Device.Object;
2358
2377
  deviceTemplate?: JUHUU.DeviceTemplate.Object;
2359
2378
  property?: JUHUU.Property.Object;
2379
+ connector?: JUHUU.Connector.Object;
2360
2380
  };
2361
2381
  }
2362
2382
  namespace List {
@@ -2425,7 +2445,7 @@ declare namespace JUHUU {
2425
2445
  deviceId?: string;
2426
2446
  };
2427
2447
  type Options = JUHUU.RequestOptions;
2428
- type Response = JUHUU.Device.Object[];
2448
+ type Response = JUHUU.Device.Object;
2429
2449
  }
2430
2450
  }
2431
2451
  namespace Connector {
@@ -2474,7 +2494,13 @@ declare namespace JUHUU {
2474
2494
  mqttQos: "0" | "1" | "2";
2475
2495
  acls: AccessControlListElement[];
2476
2496
  }
2477
- 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;
2478
2504
  export namespace Retrieve {
2479
2505
  type Params = {
2480
2506
  connectorId: string;
@@ -2498,7 +2524,7 @@ declare namespace JUHUU {
2498
2524
  connectorId?: string;
2499
2525
  };
2500
2526
  type Options = JUHUU.RequestOptions;
2501
- type Response = JUHUU.Connector.Object[];
2527
+ type Response = JUHUU.Connector.Object;
2502
2528
  }
2503
2529
  export { };
2504
2530
  }
@@ -2557,7 +2583,7 @@ declare namespace JUHUU {
2557
2583
  deviceTemplateId?: string;
2558
2584
  };
2559
2585
  type Options = JUHUU.RequestOptions;
2560
- type Response = JUHUU.DeviceTemplate.Object[];
2586
+ type Response = JUHUU.DeviceTemplate.Object;
2561
2587
  }
2562
2588
  }
2563
2589
  namespace Sim {
@@ -2619,7 +2645,7 @@ declare namespace JUHUU {
2619
2645
  simId?: string;
2620
2646
  };
2621
2647
  type Options = JUHUU.RequestOptions;
2622
- type Response = JUHUU.Sim.Object[];
2648
+ type Response = JUHUU.Sim.Object;
2623
2649
  }
2624
2650
  }
2625
2651
  namespace ConnectorMessage {
package/dist/index.js CHANGED
@@ -440,6 +440,17 @@ var SessionService = class extends Service {
440
440
  SessionDetachUserOptions
441
441
  );
442
442
  }
443
+ async delete(SessionDeleteUserParams, SessionDeleteUserOptions) {
444
+ return await super.sendRequest(
445
+ {
446
+ method: "DELETE",
447
+ url: "sessions/" + SessionDeleteUserParams.sessionId,
448
+ body: void 0,
449
+ authenticationNotOptional: true
450
+ },
451
+ SessionDeleteUserOptions
452
+ );
453
+ }
443
454
  };
444
455
 
445
456
  // src/links/links.service.ts
@@ -2228,16 +2239,31 @@ var BoldLockService = class extends Service {
2228
2239
  constructor(config) {
2229
2240
  super(config);
2230
2241
  }
2231
- async configuration(BoldLockRetrieveParams, BoldLockRetrieveOptions) {
2242
+ async credentials(BoldLockCredentialsParams, BoldLockCredentialsOptions) {
2232
2243
  const queryArray = [];
2233
2244
  return await super.sendRequest(
2234
2245
  {
2235
2246
  method: "GET",
2236
- url: "boldLock/configuration?deviceId=" + BoldLockRetrieveParams.deviceId,
2247
+ url: "boldLock/credentials?userId=" + BoldLockCredentialsParams.userId,
2237
2248
  body: void 0,
2238
2249
  authenticationNotOptional: true
2239
2250
  },
2240
- 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
2241
2267
  );
2242
2268
  }
2243
2269
  };
package/dist/index.mjs CHANGED
@@ -396,6 +396,17 @@ var SessionService = class extends Service {
396
396
  SessionDetachUserOptions
397
397
  );
398
398
  }
399
+ async delete(SessionDeleteUserParams, SessionDeleteUserOptions) {
400
+ return await super.sendRequest(
401
+ {
402
+ method: "DELETE",
403
+ url: "sessions/" + SessionDeleteUserParams.sessionId,
404
+ body: void 0,
405
+ authenticationNotOptional: true
406
+ },
407
+ SessionDeleteUserOptions
408
+ );
409
+ }
399
410
  };
400
411
 
401
412
  // src/links/links.service.ts
@@ -2184,16 +2195,31 @@ var BoldLockService = class extends Service {
2184
2195
  constructor(config) {
2185
2196
  super(config);
2186
2197
  }
2187
- async configuration(BoldLockRetrieveParams, BoldLockRetrieveOptions) {
2198
+ async credentials(BoldLockCredentialsParams, BoldLockCredentialsOptions) {
2188
2199
  const queryArray = [];
2189
2200
  return await super.sendRequest(
2190
2201
  {
2191
2202
  method: "GET",
2192
- url: "boldLock/configuration?deviceId=" + BoldLockRetrieveParams.deviceId,
2203
+ url: "boldLock/credentials?userId=" + BoldLockCredentialsParams.userId,
2193
2204
  body: void 0,
2194
2205
  authenticationNotOptional: true
2195
2206
  },
2196
- 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
2197
2223
  );
2198
2224
  }
2199
2225
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.71",
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",