@juhuu/sdk-ts 1.2.91 → 1.2.93
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 +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +17 -2
- package/dist/index.mjs +17 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -815,6 +815,7 @@ declare class BoldLockService extends Service {
|
|
815
815
|
declare class TapkeyService extends Service {
|
816
816
|
constructor(config: JUHUU.SetupConfig);
|
817
817
|
credentials(TapkeyCredentialsParams: JUHUU.Tapkey.Credentials.Params, TapkeyCredentialsOptions?: JUHUU.Tapkey.Credentials.Options): Promise<JUHUU.HttpResponse<JUHUU.Tapkey.Credentials.Response>>;
|
818
|
+
grantAccess(TapkeyGrantAccessParams: JUHUU.Tapkey.GrantAccess.Params, TapkeyGrantAccessOptions?: JUHUU.Tapkey.GrantAccess.Options): Promise<JUHUU.HttpResponse<JUHUU.Tapkey.GrantAccess.Response>>;
|
818
819
|
}
|
819
820
|
|
820
821
|
declare class Juhuu {
|
@@ -1285,6 +1286,16 @@ declare namespace JUHUU {
|
|
1285
1286
|
tapkeyJwt: string;
|
1286
1287
|
};
|
1287
1288
|
}
|
1289
|
+
namespace GrantAccess {
|
1290
|
+
type Params = {
|
1291
|
+
userId: string;
|
1292
|
+
deviceId: string;
|
1293
|
+
};
|
1294
|
+
type Options = JUHUU.RequestOptions;
|
1295
|
+
type Response = {
|
1296
|
+
device: JUHUU.Device.Object;
|
1297
|
+
};
|
1298
|
+
}
|
1288
1299
|
}
|
1289
1300
|
namespace Term {
|
1290
1301
|
type Object = {
|
@@ -2590,7 +2601,10 @@ declare namespace JUHUU {
|
|
2590
2601
|
}
|
2591
2602
|
export interface Tapkey extends Base {
|
2592
2603
|
type: "tapkey";
|
2593
|
-
|
2604
|
+
tapkeyBase64PysicalLockId: string;
|
2605
|
+
tapkeyOwnerAccountId: string;
|
2606
|
+
tapkeyIpId: string;
|
2607
|
+
tapkeyBoundLockId: string;
|
2594
2608
|
}
|
2595
2609
|
export type Object = Mqtt | BoldLock | Tapkey;
|
2596
2610
|
export namespace Create {
|
package/dist/index.d.ts
CHANGED
@@ -815,6 +815,7 @@ declare class BoldLockService extends Service {
|
|
815
815
|
declare class TapkeyService extends Service {
|
816
816
|
constructor(config: JUHUU.SetupConfig);
|
817
817
|
credentials(TapkeyCredentialsParams: JUHUU.Tapkey.Credentials.Params, TapkeyCredentialsOptions?: JUHUU.Tapkey.Credentials.Options): Promise<JUHUU.HttpResponse<JUHUU.Tapkey.Credentials.Response>>;
|
818
|
+
grantAccess(TapkeyGrantAccessParams: JUHUU.Tapkey.GrantAccess.Params, TapkeyGrantAccessOptions?: JUHUU.Tapkey.GrantAccess.Options): Promise<JUHUU.HttpResponse<JUHUU.Tapkey.GrantAccess.Response>>;
|
818
819
|
}
|
819
820
|
|
820
821
|
declare class Juhuu {
|
@@ -1285,6 +1286,16 @@ declare namespace JUHUU {
|
|
1285
1286
|
tapkeyJwt: string;
|
1286
1287
|
};
|
1287
1288
|
}
|
1289
|
+
namespace GrantAccess {
|
1290
|
+
type Params = {
|
1291
|
+
userId: string;
|
1292
|
+
deviceId: string;
|
1293
|
+
};
|
1294
|
+
type Options = JUHUU.RequestOptions;
|
1295
|
+
type Response = {
|
1296
|
+
device: JUHUU.Device.Object;
|
1297
|
+
};
|
1298
|
+
}
|
1288
1299
|
}
|
1289
1300
|
namespace Term {
|
1290
1301
|
type Object = {
|
@@ -2590,7 +2601,10 @@ declare namespace JUHUU {
|
|
2590
2601
|
}
|
2591
2602
|
export interface Tapkey extends Base {
|
2592
2603
|
type: "tapkey";
|
2593
|
-
|
2604
|
+
tapkeyBase64PysicalLockId: string;
|
2605
|
+
tapkeyOwnerAccountId: string;
|
2606
|
+
tapkeyIpId: string;
|
2607
|
+
tapkeyBoundLockId: string;
|
2594
2608
|
}
|
2595
2609
|
export type Object = Mqtt | BoldLock | Tapkey;
|
2596
2610
|
export namespace Create {
|
package/dist/index.js
CHANGED
@@ -1291,8 +1291,8 @@ var TermsService = class extends Service {
|
|
1291
1291
|
url: "terms/" + TermUpdateParams.termId,
|
1292
1292
|
body: {
|
1293
1293
|
name: TermUpdateParams.name,
|
1294
|
-
|
1295
|
-
|
1294
|
+
dsgvoUrl: TermUpdateParams.dsgvoUrl,
|
1295
|
+
url: TermUpdateParams.url
|
1296
1296
|
},
|
1297
1297
|
authenticationNotOptional: true
|
1298
1298
|
},
|
@@ -2410,6 +2410,21 @@ var TapkeyService = class extends Service {
|
|
2410
2410
|
TapkeyCredentialsOptions
|
2411
2411
|
);
|
2412
2412
|
}
|
2413
|
+
async grantAccess(TapkeyGrantAccessParams, TapkeyGrantAccessOptions) {
|
2414
|
+
const queryArray = [];
|
2415
|
+
return await super.sendRequest(
|
2416
|
+
{
|
2417
|
+
method: "POST",
|
2418
|
+
url: "tapkey/grantAccess",
|
2419
|
+
body: {
|
2420
|
+
userId: TapkeyGrantAccessParams.userId,
|
2421
|
+
deviceId: TapkeyGrantAccessParams.deviceId
|
2422
|
+
},
|
2423
|
+
authenticationNotOptional: true
|
2424
|
+
},
|
2425
|
+
TapkeyGrantAccessOptions
|
2426
|
+
);
|
2427
|
+
}
|
2413
2428
|
};
|
2414
2429
|
|
2415
2430
|
// src/types/types.ts
|
package/dist/index.mjs
CHANGED
@@ -1247,8 +1247,8 @@ var TermsService = class extends Service {
|
|
1247
1247
|
url: "terms/" + TermUpdateParams.termId,
|
1248
1248
|
body: {
|
1249
1249
|
name: TermUpdateParams.name,
|
1250
|
-
|
1251
|
-
|
1250
|
+
dsgvoUrl: TermUpdateParams.dsgvoUrl,
|
1251
|
+
url: TermUpdateParams.url
|
1252
1252
|
},
|
1253
1253
|
authenticationNotOptional: true
|
1254
1254
|
},
|
@@ -2366,6 +2366,21 @@ var TapkeyService = class extends Service {
|
|
2366
2366
|
TapkeyCredentialsOptions
|
2367
2367
|
);
|
2368
2368
|
}
|
2369
|
+
async grantAccess(TapkeyGrantAccessParams, TapkeyGrantAccessOptions) {
|
2370
|
+
const queryArray = [];
|
2371
|
+
return await super.sendRequest(
|
2372
|
+
{
|
2373
|
+
method: "POST",
|
2374
|
+
url: "tapkey/grantAccess",
|
2375
|
+
body: {
|
2376
|
+
userId: TapkeyGrantAccessParams.userId,
|
2377
|
+
deviceId: TapkeyGrantAccessParams.deviceId
|
2378
|
+
},
|
2379
|
+
authenticationNotOptional: true
|
2380
|
+
},
|
2381
|
+
TapkeyGrantAccessOptions
|
2382
|
+
);
|
2383
|
+
}
|
2369
2384
|
};
|
2370
2385
|
|
2371
2386
|
// src/types/types.ts
|