@juhuu/sdk-ts 1.2.64 → 1.2.66
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 +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +21 -0
- package/dist/index.mjs +21 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -414,6 +414,16 @@ type GraphNode = {
|
|
414
414
|
type: "device.message";
|
415
415
|
nodeIdArray: string[];
|
416
416
|
message: string;
|
417
|
+
} | {
|
418
|
+
id: string;
|
419
|
+
/**
|
420
|
+
* uses the deviceId of the current device and the userId of
|
421
|
+
* the currently logged in user to fetch the configuration of
|
422
|
+
* BoldLock and then uses the bold SDK to connect to the lock via
|
423
|
+
* bluetooth and activate it
|
424
|
+
*/
|
425
|
+
type: "device.boldLock.activate";
|
426
|
+
nodeIdArray: string[];
|
417
427
|
} | {
|
418
428
|
id: string;
|
419
429
|
type: "property.notify";
|
@@ -774,6 +784,11 @@ declare class ArticleEmbeddingsService extends Service {
|
|
774
784
|
retrieve(ArticleEmbeddingRetrieveParams: JUHUU.ArticleEmbedding.Retrieve.Params, ArticleEmbeddingRetrieveOptions?: JUHUU.ArticleEmbedding.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleEmbedding.Retrieve.Response>>;
|
775
785
|
}
|
776
786
|
|
787
|
+
declare class BoldLockService extends Service {
|
788
|
+
constructor(config: JUHUU.SetupConfig);
|
789
|
+
configuration(BoldLockRetrieveParams: JUHUU.BoldLock.Configuration.Params, BoldLockRetrieveOptions?: JUHUU.BoldLock.Configuration.Options): Promise<JUHUU.HttpResponse<JUHUU.BoldLock.Configuration.Response>>;
|
790
|
+
}
|
791
|
+
|
777
792
|
declare class Juhuu {
|
778
793
|
constructor(config: JUHUU.SetupConfig);
|
779
794
|
/**
|
@@ -802,6 +817,7 @@ declare class Juhuu {
|
|
802
817
|
readonly chats: ChatsService;
|
803
818
|
readonly chatMessages: ChatMessagesService;
|
804
819
|
readonly articleEmbeddings: ArticleEmbeddingsService;
|
820
|
+
readonly boldLock: BoldLockService;
|
805
821
|
}
|
806
822
|
declare namespace JUHUU {
|
807
823
|
interface SetupConfig {
|
@@ -1195,6 +1211,21 @@ declare namespace JUHUU {
|
|
1195
1211
|
}
|
1196
1212
|
export { };
|
1197
1213
|
}
|
1214
|
+
namespace BoldLock {
|
1215
|
+
namespace Configuration {
|
1216
|
+
type Params = {
|
1217
|
+
deviceId: string;
|
1218
|
+
};
|
1219
|
+
type Options = JUHUU.RequestOptions;
|
1220
|
+
type Response = {
|
1221
|
+
boldClientId: string;
|
1222
|
+
boldClientSecret: string;
|
1223
|
+
boldRedirectUri: string;
|
1224
|
+
boldAuthorizationCode: string;
|
1225
|
+
boldDeviceId: number;
|
1226
|
+
};
|
1227
|
+
}
|
1228
|
+
}
|
1198
1229
|
namespace Term {
|
1199
1230
|
type Object = {
|
1200
1231
|
id: string;
|
package/dist/index.d.ts
CHANGED
@@ -414,6 +414,16 @@ type GraphNode = {
|
|
414
414
|
type: "device.message";
|
415
415
|
nodeIdArray: string[];
|
416
416
|
message: string;
|
417
|
+
} | {
|
418
|
+
id: string;
|
419
|
+
/**
|
420
|
+
* uses the deviceId of the current device and the userId of
|
421
|
+
* the currently logged in user to fetch the configuration of
|
422
|
+
* BoldLock and then uses the bold SDK to connect to the lock via
|
423
|
+
* bluetooth and activate it
|
424
|
+
*/
|
425
|
+
type: "device.boldLock.activate";
|
426
|
+
nodeIdArray: string[];
|
417
427
|
} | {
|
418
428
|
id: string;
|
419
429
|
type: "property.notify";
|
@@ -774,6 +784,11 @@ declare class ArticleEmbeddingsService extends Service {
|
|
774
784
|
retrieve(ArticleEmbeddingRetrieveParams: JUHUU.ArticleEmbedding.Retrieve.Params, ArticleEmbeddingRetrieveOptions?: JUHUU.ArticleEmbedding.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.ArticleEmbedding.Retrieve.Response>>;
|
775
785
|
}
|
776
786
|
|
787
|
+
declare class BoldLockService extends Service {
|
788
|
+
constructor(config: JUHUU.SetupConfig);
|
789
|
+
configuration(BoldLockRetrieveParams: JUHUU.BoldLock.Configuration.Params, BoldLockRetrieveOptions?: JUHUU.BoldLock.Configuration.Options): Promise<JUHUU.HttpResponse<JUHUU.BoldLock.Configuration.Response>>;
|
790
|
+
}
|
791
|
+
|
777
792
|
declare class Juhuu {
|
778
793
|
constructor(config: JUHUU.SetupConfig);
|
779
794
|
/**
|
@@ -802,6 +817,7 @@ declare class Juhuu {
|
|
802
817
|
readonly chats: ChatsService;
|
803
818
|
readonly chatMessages: ChatMessagesService;
|
804
819
|
readonly articleEmbeddings: ArticleEmbeddingsService;
|
820
|
+
readonly boldLock: BoldLockService;
|
805
821
|
}
|
806
822
|
declare namespace JUHUU {
|
807
823
|
interface SetupConfig {
|
@@ -1195,6 +1211,21 @@ declare namespace JUHUU {
|
|
1195
1211
|
}
|
1196
1212
|
export { };
|
1197
1213
|
}
|
1214
|
+
namespace BoldLock {
|
1215
|
+
namespace Configuration {
|
1216
|
+
type Params = {
|
1217
|
+
deviceId: string;
|
1218
|
+
};
|
1219
|
+
type Options = JUHUU.RequestOptions;
|
1220
|
+
type Response = {
|
1221
|
+
boldClientId: string;
|
1222
|
+
boldClientSecret: string;
|
1223
|
+
boldRedirectUri: string;
|
1224
|
+
boldAuthorizationCode: string;
|
1225
|
+
boldDeviceId: number;
|
1226
|
+
};
|
1227
|
+
}
|
1228
|
+
}
|
1198
1229
|
namespace Term {
|
1199
1230
|
type Object = {
|
1200
1231
|
id: string;
|
package/dist/index.js
CHANGED
@@ -2223,6 +2223,25 @@ var ArticleEmbeddingsService = class extends Service {
|
|
2223
2223
|
}
|
2224
2224
|
};
|
2225
2225
|
|
2226
|
+
// src/boldLock/boldLock.service.ts
|
2227
|
+
var BoldLockService = class extends Service {
|
2228
|
+
constructor(config) {
|
2229
|
+
super(config);
|
2230
|
+
}
|
2231
|
+
async configuration(BoldLockRetrieveParams, BoldLockRetrieveOptions) {
|
2232
|
+
const queryArray = [];
|
2233
|
+
return await super.sendRequest(
|
2234
|
+
{
|
2235
|
+
method: "GET",
|
2236
|
+
url: "boldLock/configuration?deviceId=" + BoldLockRetrieveParams.deviceId,
|
2237
|
+
body: void 0,
|
2238
|
+
authenticationNotOptional: true
|
2239
|
+
},
|
2240
|
+
BoldLockRetrieveOptions
|
2241
|
+
);
|
2242
|
+
}
|
2243
|
+
};
|
2244
|
+
|
2226
2245
|
// src/types/types.ts
|
2227
2246
|
var LanguageCodeArray = [
|
2228
2247
|
"en",
|
@@ -2395,6 +2414,7 @@ var Juhuu = class {
|
|
2395
2414
|
this.chats = new ChatsService(config);
|
2396
2415
|
this.chatMessages = new ChatMessagesService(config);
|
2397
2416
|
this.articleEmbeddings = new ArticleEmbeddingsService(config);
|
2417
|
+
this.boldLock = new BoldLockService(config);
|
2398
2418
|
}
|
2399
2419
|
/**
|
2400
2420
|
* Top Level Resources
|
@@ -2422,6 +2442,7 @@ var Juhuu = class {
|
|
2422
2442
|
chats;
|
2423
2443
|
chatMessages;
|
2424
2444
|
articleEmbeddings;
|
2445
|
+
boldLock;
|
2425
2446
|
};
|
2426
2447
|
var JUHUU;
|
2427
2448
|
((JUHUU2) => {
|
package/dist/index.mjs
CHANGED
@@ -2179,6 +2179,25 @@ var ArticleEmbeddingsService = class extends Service {
|
|
2179
2179
|
}
|
2180
2180
|
};
|
2181
2181
|
|
2182
|
+
// src/boldLock/boldLock.service.ts
|
2183
|
+
var BoldLockService = class extends Service {
|
2184
|
+
constructor(config) {
|
2185
|
+
super(config);
|
2186
|
+
}
|
2187
|
+
async configuration(BoldLockRetrieveParams, BoldLockRetrieveOptions) {
|
2188
|
+
const queryArray = [];
|
2189
|
+
return await super.sendRequest(
|
2190
|
+
{
|
2191
|
+
method: "GET",
|
2192
|
+
url: "boldLock/configuration?deviceId=" + BoldLockRetrieveParams.deviceId,
|
2193
|
+
body: void 0,
|
2194
|
+
authenticationNotOptional: true
|
2195
|
+
},
|
2196
|
+
BoldLockRetrieveOptions
|
2197
|
+
);
|
2198
|
+
}
|
2199
|
+
};
|
2200
|
+
|
2182
2201
|
// src/types/types.ts
|
2183
2202
|
var LanguageCodeArray = [
|
2184
2203
|
"en",
|
@@ -2351,6 +2370,7 @@ var Juhuu = class {
|
|
2351
2370
|
this.chats = new ChatsService(config);
|
2352
2371
|
this.chatMessages = new ChatMessagesService(config);
|
2353
2372
|
this.articleEmbeddings = new ArticleEmbeddingsService(config);
|
2373
|
+
this.boldLock = new BoldLockService(config);
|
2354
2374
|
}
|
2355
2375
|
/**
|
2356
2376
|
* Top Level Resources
|
@@ -2378,6 +2398,7 @@ var Juhuu = class {
|
|
2378
2398
|
chats;
|
2379
2399
|
chatMessages;
|
2380
2400
|
articleEmbeddings;
|
2401
|
+
boldLock;
|
2381
2402
|
};
|
2382
2403
|
var JUHUU;
|
2383
2404
|
((JUHUU2) => {
|