@juhuu/sdk-ts 1.2.87 → 1.2.88
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 +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +34 -0
- package/dist/index.mjs +34 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -429,6 +429,15 @@ type GraphNode = {
|
|
429
429
|
*/
|
430
430
|
type: "device.boldLock.activate";
|
431
431
|
nodeIdArray: string[];
|
432
|
+
} | {
|
433
|
+
id: string;
|
434
|
+
/**
|
435
|
+
* uses the deviceId of the current device, the userId of
|
436
|
+
* the currently logged in user and the tapkey SDK to connect to the lock via
|
437
|
+
* bluetooth and activate it
|
438
|
+
*/
|
439
|
+
type: "device.tapkey.activate";
|
440
|
+
nodeIdArray: string[];
|
432
441
|
} | {
|
433
442
|
id: string;
|
434
443
|
type: "property.notify";
|
@@ -666,6 +675,7 @@ declare class TermsService extends Service {
|
|
666
675
|
create(TermCreateParams: JUHUU.Term.Create.Params, TermCreateOptions?: JUHUU.Term.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Create.Response>>;
|
667
676
|
retrieve(TermRetrieveParams: JUHUU.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU.Term.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Retrieve.Response>>;
|
668
677
|
list(TermListParams: JUHUU.Term.List.Params, TermListOptions?: JUHUU.Term.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.List.Response>>;
|
678
|
+
update(TermUpdateParams: JUHUU.Term.Update.Params, TermUpdateOptions?: JUHUU.Term.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Update.Response>>;
|
669
679
|
accept(TermAcceptParams: JUHUU.Term.Accept.Params, TermAcceptOptions?: JUHUU.Term.Accept.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Accept.Response>>;
|
670
680
|
delete(TermDeleteParams: JUHUU.Term.Delete.Params, TermDeleteOptions?: JUHUU.Term.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Delete.Response>>;
|
671
681
|
}
|
@@ -701,6 +711,7 @@ declare class ProductService extends Service {
|
|
701
711
|
create(ProductCreateParams: JUHUU.Product.Create.Params, ProductCreateOptions?: JUHUU.Product.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Create.Response>>;
|
702
712
|
list(ProductListParams: JUHUU.Product.List.Params, ProductListOptions?: JUHUU.Product.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.List.Response>>;
|
703
713
|
retrieve(params: JUHUU.Product.Retrieve.Params, options?: JUHUU.Product.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Retrieve.Response>>;
|
714
|
+
update(ProductUpdateParams: JUHUU.Product.Update.Params, ProductUpdateOptions?: JUHUU.Product.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Update.Response>>;
|
704
715
|
delete(ProductDeleteParams: JUHUU.Product.Delete.Params, ProductDeleteOptions?: JUHUU.Product.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Delete.Response>>;
|
705
716
|
}
|
706
717
|
|
@@ -1291,6 +1302,18 @@ declare namespace JUHUU {
|
|
1291
1302
|
type Options = JUHUU.RequestOptions;
|
1292
1303
|
type Response = JUHUU.Term.Object[];
|
1293
1304
|
}
|
1305
|
+
namespace Update {
|
1306
|
+
type Params = {
|
1307
|
+
termId: string;
|
1308
|
+
name?: string;
|
1309
|
+
url?: string;
|
1310
|
+
dsgvoUrl?: string;
|
1311
|
+
};
|
1312
|
+
type Options = JUHUU.RequestOptions;
|
1313
|
+
type Response = {
|
1314
|
+
location: JUHUU.Location.Object;
|
1315
|
+
};
|
1316
|
+
}
|
1294
1317
|
namespace Accept {
|
1295
1318
|
type Params = {
|
1296
1319
|
termId: string;
|
@@ -2275,6 +2298,22 @@ declare namespace JUHUU {
|
|
2275
2298
|
type Options = JUHUU.RequestOptions;
|
2276
2299
|
type Response = Product.Object[];
|
2277
2300
|
}
|
2301
|
+
namespace Update {
|
2302
|
+
type Params = {
|
2303
|
+
productId: string;
|
2304
|
+
name?: string;
|
2305
|
+
previewText?: LocaleString;
|
2306
|
+
description?: LocaleString;
|
2307
|
+
highlightArray: LocaleString[];
|
2308
|
+
purposeArray?: Purpose[];
|
2309
|
+
technologyArray?: Technology[];
|
2310
|
+
articleId?: string | null;
|
2311
|
+
};
|
2312
|
+
type Options = JUHUU.RequestOptions;
|
2313
|
+
type Response = {
|
2314
|
+
location: JUHUU.Location.Object;
|
2315
|
+
};
|
2316
|
+
}
|
2278
2317
|
namespace Delete {
|
2279
2318
|
type Params = {
|
2280
2319
|
productId?: string;
|
package/dist/index.d.ts
CHANGED
@@ -429,6 +429,15 @@ type GraphNode = {
|
|
429
429
|
*/
|
430
430
|
type: "device.boldLock.activate";
|
431
431
|
nodeIdArray: string[];
|
432
|
+
} | {
|
433
|
+
id: string;
|
434
|
+
/**
|
435
|
+
* uses the deviceId of the current device, the userId of
|
436
|
+
* the currently logged in user and the tapkey SDK to connect to the lock via
|
437
|
+
* bluetooth and activate it
|
438
|
+
*/
|
439
|
+
type: "device.tapkey.activate";
|
440
|
+
nodeIdArray: string[];
|
432
441
|
} | {
|
433
442
|
id: string;
|
434
443
|
type: "property.notify";
|
@@ -666,6 +675,7 @@ declare class TermsService extends Service {
|
|
666
675
|
create(TermCreateParams: JUHUU.Term.Create.Params, TermCreateOptions?: JUHUU.Term.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Create.Response>>;
|
667
676
|
retrieve(TermRetrieveParams: JUHUU.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU.Term.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Retrieve.Response>>;
|
668
677
|
list(TermListParams: JUHUU.Term.List.Params, TermListOptions?: JUHUU.Term.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.List.Response>>;
|
678
|
+
update(TermUpdateParams: JUHUU.Term.Update.Params, TermUpdateOptions?: JUHUU.Term.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Update.Response>>;
|
669
679
|
accept(TermAcceptParams: JUHUU.Term.Accept.Params, TermAcceptOptions?: JUHUU.Term.Accept.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Accept.Response>>;
|
670
680
|
delete(TermDeleteParams: JUHUU.Term.Delete.Params, TermDeleteOptions?: JUHUU.Term.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Delete.Response>>;
|
671
681
|
}
|
@@ -701,6 +711,7 @@ declare class ProductService extends Service {
|
|
701
711
|
create(ProductCreateParams: JUHUU.Product.Create.Params, ProductCreateOptions?: JUHUU.Product.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Create.Response>>;
|
702
712
|
list(ProductListParams: JUHUU.Product.List.Params, ProductListOptions?: JUHUU.Product.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.List.Response>>;
|
703
713
|
retrieve(params: JUHUU.Product.Retrieve.Params, options?: JUHUU.Product.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Retrieve.Response>>;
|
714
|
+
update(ProductUpdateParams: JUHUU.Product.Update.Params, ProductUpdateOptions?: JUHUU.Product.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Update.Response>>;
|
704
715
|
delete(ProductDeleteParams: JUHUU.Product.Delete.Params, ProductDeleteOptions?: JUHUU.Product.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Delete.Response>>;
|
705
716
|
}
|
706
717
|
|
@@ -1291,6 +1302,18 @@ declare namespace JUHUU {
|
|
1291
1302
|
type Options = JUHUU.RequestOptions;
|
1292
1303
|
type Response = JUHUU.Term.Object[];
|
1293
1304
|
}
|
1305
|
+
namespace Update {
|
1306
|
+
type Params = {
|
1307
|
+
termId: string;
|
1308
|
+
name?: string;
|
1309
|
+
url?: string;
|
1310
|
+
dsgvoUrl?: string;
|
1311
|
+
};
|
1312
|
+
type Options = JUHUU.RequestOptions;
|
1313
|
+
type Response = {
|
1314
|
+
location: JUHUU.Location.Object;
|
1315
|
+
};
|
1316
|
+
}
|
1294
1317
|
namespace Accept {
|
1295
1318
|
type Params = {
|
1296
1319
|
termId: string;
|
@@ -2275,6 +2298,22 @@ declare namespace JUHUU {
|
|
2275
2298
|
type Options = JUHUU.RequestOptions;
|
2276
2299
|
type Response = Product.Object[];
|
2277
2300
|
}
|
2301
|
+
namespace Update {
|
2302
|
+
type Params = {
|
2303
|
+
productId: string;
|
2304
|
+
name?: string;
|
2305
|
+
previewText?: LocaleString;
|
2306
|
+
description?: LocaleString;
|
2307
|
+
highlightArray: LocaleString[];
|
2308
|
+
purposeArray?: Purpose[];
|
2309
|
+
technologyArray?: Technology[];
|
2310
|
+
articleId?: string | null;
|
2311
|
+
};
|
2312
|
+
type Options = JUHUU.RequestOptions;
|
2313
|
+
type Response = {
|
2314
|
+
location: JUHUU.Location.Object;
|
2315
|
+
};
|
2316
|
+
}
|
2278
2317
|
namespace Delete {
|
2279
2318
|
type Params = {
|
2280
2319
|
productId?: string;
|
package/dist/index.js
CHANGED
@@ -1262,6 +1262,21 @@ var TermsService = class extends Service {
|
|
1262
1262
|
TermListOptions
|
1263
1263
|
);
|
1264
1264
|
}
|
1265
|
+
async update(TermUpdateParams, TermUpdateOptions) {
|
1266
|
+
return await super.sendRequest(
|
1267
|
+
{
|
1268
|
+
method: "PATCH",
|
1269
|
+
url: "terms/" + TermUpdateParams.termId,
|
1270
|
+
body: {
|
1271
|
+
name: TermUpdateParams.name,
|
1272
|
+
address: TermUpdateParams.dsgvoUrl,
|
1273
|
+
deviceIdArray: TermUpdateParams.url
|
1274
|
+
},
|
1275
|
+
authenticationNotOptional: true
|
1276
|
+
},
|
1277
|
+
TermUpdateOptions
|
1278
|
+
);
|
1279
|
+
}
|
1265
1280
|
async accept(TermAcceptParams, TermAcceptOptions) {
|
1266
1281
|
return await super.sendRequest(
|
1267
1282
|
{
|
@@ -1514,6 +1529,25 @@ var ProductService = class extends Service {
|
|
1514
1529
|
options
|
1515
1530
|
);
|
1516
1531
|
}
|
1532
|
+
async update(ProductUpdateParams, ProductUpdateOptions) {
|
1533
|
+
return await super.sendRequest(
|
1534
|
+
{
|
1535
|
+
method: "PATCH",
|
1536
|
+
url: "products/" + ProductUpdateParams.productId,
|
1537
|
+
body: {
|
1538
|
+
name: ProductUpdateParams.name,
|
1539
|
+
previewText: ProductUpdateParams.previewText,
|
1540
|
+
description: ProductUpdateParams.description,
|
1541
|
+
highlightArray: ProductUpdateParams.highlightArray,
|
1542
|
+
purposeArray: ProductUpdateParams.purposeArray,
|
1543
|
+
technologyArray: ProductUpdateParams.technologyArray,
|
1544
|
+
articleId: ProductUpdateParams.articleId
|
1545
|
+
},
|
1546
|
+
authenticationNotOptional: true
|
1547
|
+
},
|
1548
|
+
ProductUpdateOptions
|
1549
|
+
);
|
1550
|
+
}
|
1517
1551
|
async delete(ProductDeleteParams, ProductDeleteOptions) {
|
1518
1552
|
return await super.sendRequest(
|
1519
1553
|
{
|
package/dist/index.mjs
CHANGED
@@ -1218,6 +1218,21 @@ var TermsService = class extends Service {
|
|
1218
1218
|
TermListOptions
|
1219
1219
|
);
|
1220
1220
|
}
|
1221
|
+
async update(TermUpdateParams, TermUpdateOptions) {
|
1222
|
+
return await super.sendRequest(
|
1223
|
+
{
|
1224
|
+
method: "PATCH",
|
1225
|
+
url: "terms/" + TermUpdateParams.termId,
|
1226
|
+
body: {
|
1227
|
+
name: TermUpdateParams.name,
|
1228
|
+
address: TermUpdateParams.dsgvoUrl,
|
1229
|
+
deviceIdArray: TermUpdateParams.url
|
1230
|
+
},
|
1231
|
+
authenticationNotOptional: true
|
1232
|
+
},
|
1233
|
+
TermUpdateOptions
|
1234
|
+
);
|
1235
|
+
}
|
1221
1236
|
async accept(TermAcceptParams, TermAcceptOptions) {
|
1222
1237
|
return await super.sendRequest(
|
1223
1238
|
{
|
@@ -1470,6 +1485,25 @@ var ProductService = class extends Service {
|
|
1470
1485
|
options
|
1471
1486
|
);
|
1472
1487
|
}
|
1488
|
+
async update(ProductUpdateParams, ProductUpdateOptions) {
|
1489
|
+
return await super.sendRequest(
|
1490
|
+
{
|
1491
|
+
method: "PATCH",
|
1492
|
+
url: "products/" + ProductUpdateParams.productId,
|
1493
|
+
body: {
|
1494
|
+
name: ProductUpdateParams.name,
|
1495
|
+
previewText: ProductUpdateParams.previewText,
|
1496
|
+
description: ProductUpdateParams.description,
|
1497
|
+
highlightArray: ProductUpdateParams.highlightArray,
|
1498
|
+
purposeArray: ProductUpdateParams.purposeArray,
|
1499
|
+
technologyArray: ProductUpdateParams.technologyArray,
|
1500
|
+
articleId: ProductUpdateParams.articleId
|
1501
|
+
},
|
1502
|
+
authenticationNotOptional: true
|
1503
|
+
},
|
1504
|
+
ProductUpdateOptions
|
1505
|
+
);
|
1506
|
+
}
|
1473
1507
|
async delete(ProductDeleteParams, ProductDeleteOptions) {
|
1474
1508
|
return await super.sendRequest(
|
1475
1509
|
{
|