@juhuu/sdk-ts 1.2.87 → 1.2.89
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 +88 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.js +85 -0
- package/dist/index.mjs +85 -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";
|
@@ -637,6 +646,7 @@ declare class DevicesService extends Service {
|
|
637
646
|
create(DeviceCreateParams: JUHUU.Device.Create.Params, DeviceCreateOptions?: JUHUU.Device.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Create.Response>>;
|
638
647
|
retrieve(DeviceRetrieveParams: JUHUU.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU.Device.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Retrieve.Response>>;
|
639
648
|
list(DeviceListParams: JUHUU.Device.List.Params, DeviceListOptions?: JUHUU.Device.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.List.Response>>;
|
649
|
+
update(DeviceUpdateParams: JUHUU.Device.Update.Params, DeviceUpdateOptions?: JUHUU.Device.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Update.Response>>;
|
640
650
|
listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
|
641
651
|
message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
|
642
652
|
parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
|
@@ -666,6 +676,7 @@ declare class TermsService extends Service {
|
|
666
676
|
create(TermCreateParams: JUHUU.Term.Create.Params, TermCreateOptions?: JUHUU.Term.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Create.Response>>;
|
667
677
|
retrieve(TermRetrieveParams: JUHUU.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU.Term.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Retrieve.Response>>;
|
668
678
|
list(TermListParams: JUHUU.Term.List.Params, TermListOptions?: JUHUU.Term.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.List.Response>>;
|
679
|
+
update(TermUpdateParams: JUHUU.Term.Update.Params, TermUpdateOptions?: JUHUU.Term.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Update.Response>>;
|
669
680
|
accept(TermAcceptParams: JUHUU.Term.Accept.Params, TermAcceptOptions?: JUHUU.Term.Accept.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Accept.Response>>;
|
670
681
|
delete(TermDeleteParams: JUHUU.Term.Delete.Params, TermDeleteOptions?: JUHUU.Term.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Delete.Response>>;
|
671
682
|
}
|
@@ -701,6 +712,7 @@ declare class ProductService extends Service {
|
|
701
712
|
create(ProductCreateParams: JUHUU.Product.Create.Params, ProductCreateOptions?: JUHUU.Product.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Create.Response>>;
|
702
713
|
list(ProductListParams: JUHUU.Product.List.Params, ProductListOptions?: JUHUU.Product.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.List.Response>>;
|
703
714
|
retrieve(params: JUHUU.Product.Retrieve.Params, options?: JUHUU.Product.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Retrieve.Response>>;
|
715
|
+
update(ProductUpdateParams: JUHUU.Product.Update.Params, ProductUpdateOptions?: JUHUU.Product.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Update.Response>>;
|
704
716
|
delete(ProductDeleteParams: JUHUU.Product.Delete.Params, ProductDeleteOptions?: JUHUU.Product.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Delete.Response>>;
|
705
717
|
}
|
706
718
|
|
@@ -715,6 +727,7 @@ declare class AccountingAreasService extends Service {
|
|
715
727
|
create(AccountingAreaCreateParams: JUHUU.AccountingArea.Create.Params, AccountingAreaCreateOptions?: JUHUU.AccountingArea.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Create.Response>>;
|
716
728
|
retrieve(AccountingAreaRetrieveParams: JUHUU.AccountingArea.Retrieve.Params, AccountingAreaRetrieveOptions?: JUHUU.AccountingArea.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Retrieve.Response>>;
|
717
729
|
list(AccountingAreaListParams: JUHUU.AccountingArea.List.Params, AccountingAreaListOptions?: JUHUU.AccountingArea.List.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.List.Response>>;
|
730
|
+
update(AccountingAreaUpdateParams: JUHUU.AccountingArea.Update.Params, AccountingAreaUpdateOptions?: JUHUU.AccountingArea.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Update.Response>>;
|
718
731
|
delete(AccountingAreaDeleteParams: JUHUU.AccountingArea.Delete.Params, AccountingAreaDeleteOptions?: JUHUU.AccountingArea.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Delete.Response>>;
|
719
732
|
}
|
720
733
|
|
@@ -723,6 +736,7 @@ declare class ConnectorsService extends Service {
|
|
723
736
|
create(ConnectorCreateParams: JUHUU.Connector.Create.Params, ConnectorCreateOptions?: JUHUU.Connector.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Create.Response>>;
|
724
737
|
retrieve(ConnectorRetrieveParams: JUHUU.Connector.Retrieve.Params, ConnectorRetrieveOptions?: JUHUU.Connector.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Retrieve.Response>>;
|
725
738
|
list(ConnectorListParams: JUHUU.Connector.List.Params, ConnectorListOptions?: JUHUU.Connector.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.List.Response>>;
|
739
|
+
update(ConnectorUpdateParams: JUHUU.Connector.Update.Params, ConnectorUpdateOptions?: JUHUU.Connector.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Update.Response>>;
|
726
740
|
delete(ConnectorDeleteParams: JUHUU.Connector.Delete.Params, ConnectorDeleteOptions?: JUHUU.Connector.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Delete.Response>>;
|
727
741
|
}
|
728
742
|
|
@@ -1291,6 +1305,18 @@ declare namespace JUHUU {
|
|
1291
1305
|
type Options = JUHUU.RequestOptions;
|
1292
1306
|
type Response = JUHUU.Term.Object[];
|
1293
1307
|
}
|
1308
|
+
namespace Update {
|
1309
|
+
type Params = {
|
1310
|
+
termId: string;
|
1311
|
+
name?: string;
|
1312
|
+
url?: string;
|
1313
|
+
dsgvoUrl?: string;
|
1314
|
+
};
|
1315
|
+
type Options = JUHUU.RequestOptions;
|
1316
|
+
type Response = {
|
1317
|
+
term: JUHUU.Term.Object;
|
1318
|
+
};
|
1319
|
+
}
|
1294
1320
|
namespace Accept {
|
1295
1321
|
type Params = {
|
1296
1322
|
termId: string;
|
@@ -1349,6 +1375,18 @@ declare namespace JUHUU {
|
|
1349
1375
|
type Options = JUHUU.RequestOptions;
|
1350
1376
|
type Response = JUHUU.AccountingArea.Object[];
|
1351
1377
|
}
|
1378
|
+
namespace Update {
|
1379
|
+
type Params = {
|
1380
|
+
accountingAreaId: string;
|
1381
|
+
name?: string;
|
1382
|
+
creditPostingRowDescription?: string;
|
1383
|
+
orderNumber?: string;
|
1384
|
+
};
|
1385
|
+
type Options = JUHUU.RequestOptions;
|
1386
|
+
type Response = {
|
1387
|
+
accountingArea: JUHUU.AccountingArea.Object;
|
1388
|
+
};
|
1389
|
+
}
|
1352
1390
|
namespace Delete {
|
1353
1391
|
type Params = {
|
1354
1392
|
accountingAreaId?: string;
|
@@ -2275,6 +2313,22 @@ declare namespace JUHUU {
|
|
2275
2313
|
type Options = JUHUU.RequestOptions;
|
2276
2314
|
type Response = Product.Object[];
|
2277
2315
|
}
|
2316
|
+
namespace Update {
|
2317
|
+
type Params = {
|
2318
|
+
productId: string;
|
2319
|
+
name?: string;
|
2320
|
+
previewText?: LocaleString;
|
2321
|
+
description?: LocaleString;
|
2322
|
+
highlightArray?: LocaleString[];
|
2323
|
+
purposeArray?: Purpose[];
|
2324
|
+
technologyArray?: Technology[];
|
2325
|
+
articleId?: string | null;
|
2326
|
+
};
|
2327
|
+
type Options = JUHUU.RequestOptions;
|
2328
|
+
type Response = {
|
2329
|
+
product: JUHUU.Product.Object;
|
2330
|
+
};
|
2331
|
+
}
|
2278
2332
|
namespace Delete {
|
2279
2333
|
type Params = {
|
2280
2334
|
productId?: string;
|
@@ -2410,6 +2464,27 @@ declare namespace JUHUU {
|
|
2410
2464
|
hasMore: boolean;
|
2411
2465
|
};
|
2412
2466
|
}
|
2467
|
+
namespace Update {
|
2468
|
+
type Params = {
|
2469
|
+
deviceId: string;
|
2470
|
+
name?: string;
|
2471
|
+
status?: JUHUU.Device.Object["status"];
|
2472
|
+
description?: string | null;
|
2473
|
+
latitude?: number | null;
|
2474
|
+
longitude?: number | null;
|
2475
|
+
fuel?: {
|
2476
|
+
type?: FuelType;
|
2477
|
+
level?: number;
|
2478
|
+
} | null;
|
2479
|
+
rangeRemaining?: number | null;
|
2480
|
+
connectorId?: string | null;
|
2481
|
+
connectorParameter?: string | null;
|
2482
|
+
};
|
2483
|
+
type Options = JUHUU.RequestOptions;
|
2484
|
+
type Response = {
|
2485
|
+
device: JUHUU.Device.Object;
|
2486
|
+
};
|
2487
|
+
}
|
2413
2488
|
namespace Realtime {
|
2414
2489
|
type Params = {
|
2415
2490
|
deviceId: string;
|
@@ -2535,6 +2610,19 @@ declare namespace JUHUU {
|
|
2535
2610
|
type Options = JUHUU.RequestOptions;
|
2536
2611
|
type Response = JUHUU.Connector.Object[];
|
2537
2612
|
}
|
2613
|
+
export namespace Update {
|
2614
|
+
type Params = {
|
2615
|
+
connectorId: string;
|
2616
|
+
name?: string;
|
2617
|
+
description?: string | null;
|
2618
|
+
connectionMode?: "alwaysOnline" | "temporaryOnline";
|
2619
|
+
simId?: string | null;
|
2620
|
+
};
|
2621
|
+
type Options = JUHUU.RequestOptions;
|
2622
|
+
type Response = {
|
2623
|
+
connector: JUHUU.Connector.Object;
|
2624
|
+
};
|
2625
|
+
}
|
2538
2626
|
export namespace Delete {
|
2539
2627
|
type Params = {
|
2540
2628
|
connectorId?: 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";
|
@@ -637,6 +646,7 @@ declare class DevicesService extends Service {
|
|
637
646
|
create(DeviceCreateParams: JUHUU.Device.Create.Params, DeviceCreateOptions?: JUHUU.Device.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Create.Response>>;
|
638
647
|
retrieve(DeviceRetrieveParams: JUHUU.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU.Device.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Retrieve.Response>>;
|
639
648
|
list(DeviceListParams: JUHUU.Device.List.Params, DeviceListOptions?: JUHUU.Device.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.List.Response>>;
|
649
|
+
update(DeviceUpdateParams: JUHUU.Device.Update.Params, DeviceUpdateOptions?: JUHUU.Device.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Update.Response>>;
|
640
650
|
listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
|
641
651
|
message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
|
642
652
|
parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
|
@@ -666,6 +676,7 @@ declare class TermsService extends Service {
|
|
666
676
|
create(TermCreateParams: JUHUU.Term.Create.Params, TermCreateOptions?: JUHUU.Term.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Create.Response>>;
|
667
677
|
retrieve(TermRetrieveParams: JUHUU.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU.Term.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Retrieve.Response>>;
|
668
678
|
list(TermListParams: JUHUU.Term.List.Params, TermListOptions?: JUHUU.Term.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.List.Response>>;
|
679
|
+
update(TermUpdateParams: JUHUU.Term.Update.Params, TermUpdateOptions?: JUHUU.Term.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Update.Response>>;
|
669
680
|
accept(TermAcceptParams: JUHUU.Term.Accept.Params, TermAcceptOptions?: JUHUU.Term.Accept.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Accept.Response>>;
|
670
681
|
delete(TermDeleteParams: JUHUU.Term.Delete.Params, TermDeleteOptions?: JUHUU.Term.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Delete.Response>>;
|
671
682
|
}
|
@@ -701,6 +712,7 @@ declare class ProductService extends Service {
|
|
701
712
|
create(ProductCreateParams: JUHUU.Product.Create.Params, ProductCreateOptions?: JUHUU.Product.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Create.Response>>;
|
702
713
|
list(ProductListParams: JUHUU.Product.List.Params, ProductListOptions?: JUHUU.Product.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.List.Response>>;
|
703
714
|
retrieve(params: JUHUU.Product.Retrieve.Params, options?: JUHUU.Product.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Retrieve.Response>>;
|
715
|
+
update(ProductUpdateParams: JUHUU.Product.Update.Params, ProductUpdateOptions?: JUHUU.Product.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Update.Response>>;
|
704
716
|
delete(ProductDeleteParams: JUHUU.Product.Delete.Params, ProductDeleteOptions?: JUHUU.Product.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Delete.Response>>;
|
705
717
|
}
|
706
718
|
|
@@ -715,6 +727,7 @@ declare class AccountingAreasService extends Service {
|
|
715
727
|
create(AccountingAreaCreateParams: JUHUU.AccountingArea.Create.Params, AccountingAreaCreateOptions?: JUHUU.AccountingArea.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Create.Response>>;
|
716
728
|
retrieve(AccountingAreaRetrieveParams: JUHUU.AccountingArea.Retrieve.Params, AccountingAreaRetrieveOptions?: JUHUU.AccountingArea.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Retrieve.Response>>;
|
717
729
|
list(AccountingAreaListParams: JUHUU.AccountingArea.List.Params, AccountingAreaListOptions?: JUHUU.AccountingArea.List.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.List.Response>>;
|
730
|
+
update(AccountingAreaUpdateParams: JUHUU.AccountingArea.Update.Params, AccountingAreaUpdateOptions?: JUHUU.AccountingArea.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Update.Response>>;
|
718
731
|
delete(AccountingAreaDeleteParams: JUHUU.AccountingArea.Delete.Params, AccountingAreaDeleteOptions?: JUHUU.AccountingArea.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Delete.Response>>;
|
719
732
|
}
|
720
733
|
|
@@ -723,6 +736,7 @@ declare class ConnectorsService extends Service {
|
|
723
736
|
create(ConnectorCreateParams: JUHUU.Connector.Create.Params, ConnectorCreateOptions?: JUHUU.Connector.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Create.Response>>;
|
724
737
|
retrieve(ConnectorRetrieveParams: JUHUU.Connector.Retrieve.Params, ConnectorRetrieveOptions?: JUHUU.Connector.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Retrieve.Response>>;
|
725
738
|
list(ConnectorListParams: JUHUU.Connector.List.Params, ConnectorListOptions?: JUHUU.Connector.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.List.Response>>;
|
739
|
+
update(ConnectorUpdateParams: JUHUU.Connector.Update.Params, ConnectorUpdateOptions?: JUHUU.Connector.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Update.Response>>;
|
726
740
|
delete(ConnectorDeleteParams: JUHUU.Connector.Delete.Params, ConnectorDeleteOptions?: JUHUU.Connector.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Delete.Response>>;
|
727
741
|
}
|
728
742
|
|
@@ -1291,6 +1305,18 @@ declare namespace JUHUU {
|
|
1291
1305
|
type Options = JUHUU.RequestOptions;
|
1292
1306
|
type Response = JUHUU.Term.Object[];
|
1293
1307
|
}
|
1308
|
+
namespace Update {
|
1309
|
+
type Params = {
|
1310
|
+
termId: string;
|
1311
|
+
name?: string;
|
1312
|
+
url?: string;
|
1313
|
+
dsgvoUrl?: string;
|
1314
|
+
};
|
1315
|
+
type Options = JUHUU.RequestOptions;
|
1316
|
+
type Response = {
|
1317
|
+
term: JUHUU.Term.Object;
|
1318
|
+
};
|
1319
|
+
}
|
1294
1320
|
namespace Accept {
|
1295
1321
|
type Params = {
|
1296
1322
|
termId: string;
|
@@ -1349,6 +1375,18 @@ declare namespace JUHUU {
|
|
1349
1375
|
type Options = JUHUU.RequestOptions;
|
1350
1376
|
type Response = JUHUU.AccountingArea.Object[];
|
1351
1377
|
}
|
1378
|
+
namespace Update {
|
1379
|
+
type Params = {
|
1380
|
+
accountingAreaId: string;
|
1381
|
+
name?: string;
|
1382
|
+
creditPostingRowDescription?: string;
|
1383
|
+
orderNumber?: string;
|
1384
|
+
};
|
1385
|
+
type Options = JUHUU.RequestOptions;
|
1386
|
+
type Response = {
|
1387
|
+
accountingArea: JUHUU.AccountingArea.Object;
|
1388
|
+
};
|
1389
|
+
}
|
1352
1390
|
namespace Delete {
|
1353
1391
|
type Params = {
|
1354
1392
|
accountingAreaId?: string;
|
@@ -2275,6 +2313,22 @@ declare namespace JUHUU {
|
|
2275
2313
|
type Options = JUHUU.RequestOptions;
|
2276
2314
|
type Response = Product.Object[];
|
2277
2315
|
}
|
2316
|
+
namespace Update {
|
2317
|
+
type Params = {
|
2318
|
+
productId: string;
|
2319
|
+
name?: string;
|
2320
|
+
previewText?: LocaleString;
|
2321
|
+
description?: LocaleString;
|
2322
|
+
highlightArray?: LocaleString[];
|
2323
|
+
purposeArray?: Purpose[];
|
2324
|
+
technologyArray?: Technology[];
|
2325
|
+
articleId?: string | null;
|
2326
|
+
};
|
2327
|
+
type Options = JUHUU.RequestOptions;
|
2328
|
+
type Response = {
|
2329
|
+
product: JUHUU.Product.Object;
|
2330
|
+
};
|
2331
|
+
}
|
2278
2332
|
namespace Delete {
|
2279
2333
|
type Params = {
|
2280
2334
|
productId?: string;
|
@@ -2410,6 +2464,27 @@ declare namespace JUHUU {
|
|
2410
2464
|
hasMore: boolean;
|
2411
2465
|
};
|
2412
2466
|
}
|
2467
|
+
namespace Update {
|
2468
|
+
type Params = {
|
2469
|
+
deviceId: string;
|
2470
|
+
name?: string;
|
2471
|
+
status?: JUHUU.Device.Object["status"];
|
2472
|
+
description?: string | null;
|
2473
|
+
latitude?: number | null;
|
2474
|
+
longitude?: number | null;
|
2475
|
+
fuel?: {
|
2476
|
+
type?: FuelType;
|
2477
|
+
level?: number;
|
2478
|
+
} | null;
|
2479
|
+
rangeRemaining?: number | null;
|
2480
|
+
connectorId?: string | null;
|
2481
|
+
connectorParameter?: string | null;
|
2482
|
+
};
|
2483
|
+
type Options = JUHUU.RequestOptions;
|
2484
|
+
type Response = {
|
2485
|
+
device: JUHUU.Device.Object;
|
2486
|
+
};
|
2487
|
+
}
|
2413
2488
|
namespace Realtime {
|
2414
2489
|
type Params = {
|
2415
2490
|
deviceId: string;
|
@@ -2535,6 +2610,19 @@ declare namespace JUHUU {
|
|
2535
2610
|
type Options = JUHUU.RequestOptions;
|
2536
2611
|
type Response = JUHUU.Connector.Object[];
|
2537
2612
|
}
|
2613
|
+
export namespace Update {
|
2614
|
+
type Params = {
|
2615
|
+
connectorId: string;
|
2616
|
+
name?: string;
|
2617
|
+
description?: string | null;
|
2618
|
+
connectionMode?: "alwaysOnline" | "temporaryOnline";
|
2619
|
+
simId?: string | null;
|
2620
|
+
};
|
2621
|
+
type Options = JUHUU.RequestOptions;
|
2622
|
+
type Response = {
|
2623
|
+
connector: JUHUU.Connector.Object;
|
2624
|
+
};
|
2625
|
+
}
|
2538
2626
|
export namespace Delete {
|
2539
2627
|
type Params = {
|
2540
2628
|
connectorId?: string;
|
package/dist/index.js
CHANGED
@@ -991,6 +991,26 @@ var DevicesService = class extends Service {
|
|
991
991
|
DeviceListOptions
|
992
992
|
);
|
993
993
|
}
|
994
|
+
async update(DeviceUpdateParams, DeviceUpdateOptions) {
|
995
|
+
return await super.sendRequest(
|
996
|
+
{
|
997
|
+
method: "PATCH",
|
998
|
+
url: "devices/" + DeviceUpdateParams.deviceId,
|
999
|
+
body: {
|
1000
|
+
name: DeviceUpdateParams.name,
|
1001
|
+
description: DeviceUpdateParams.description,
|
1002
|
+
latitude: DeviceUpdateParams.latitude,
|
1003
|
+
longitude: DeviceUpdateParams.longitude,
|
1004
|
+
fuel: DeviceUpdateParams.fuel,
|
1005
|
+
rangeRemaining: DeviceUpdateParams.rangeRemaining,
|
1006
|
+
connectorId: DeviceUpdateParams.connectorId,
|
1007
|
+
connectorParameter: DeviceUpdateParams.connectorParameter
|
1008
|
+
},
|
1009
|
+
authenticationNotOptional: true
|
1010
|
+
},
|
1011
|
+
DeviceUpdateOptions
|
1012
|
+
);
|
1013
|
+
}
|
994
1014
|
listen(DeviceRealtimeParams, DeviceRealtimeOptions) {
|
995
1015
|
const socket = super.connectToWebsocket({
|
996
1016
|
url: "devices/" + DeviceRealtimeParams.deviceId + "/websocket"
|
@@ -1262,6 +1282,21 @@ var TermsService = class extends Service {
|
|
1262
1282
|
TermListOptions
|
1263
1283
|
);
|
1264
1284
|
}
|
1285
|
+
async update(TermUpdateParams, TermUpdateOptions) {
|
1286
|
+
return await super.sendRequest(
|
1287
|
+
{
|
1288
|
+
method: "PATCH",
|
1289
|
+
url: "terms/" + TermUpdateParams.termId,
|
1290
|
+
body: {
|
1291
|
+
name: TermUpdateParams.name,
|
1292
|
+
address: TermUpdateParams.dsgvoUrl,
|
1293
|
+
deviceIdArray: TermUpdateParams.url
|
1294
|
+
},
|
1295
|
+
authenticationNotOptional: true
|
1296
|
+
},
|
1297
|
+
TermUpdateOptions
|
1298
|
+
);
|
1299
|
+
}
|
1265
1300
|
async accept(TermAcceptParams, TermAcceptOptions) {
|
1266
1301
|
return await super.sendRequest(
|
1267
1302
|
{
|
@@ -1514,6 +1549,25 @@ var ProductService = class extends Service {
|
|
1514
1549
|
options
|
1515
1550
|
);
|
1516
1551
|
}
|
1552
|
+
async update(ProductUpdateParams, ProductUpdateOptions) {
|
1553
|
+
return await super.sendRequest(
|
1554
|
+
{
|
1555
|
+
method: "PATCH",
|
1556
|
+
url: "products/" + ProductUpdateParams.productId,
|
1557
|
+
body: {
|
1558
|
+
name: ProductUpdateParams.name,
|
1559
|
+
previewText: ProductUpdateParams.previewText,
|
1560
|
+
description: ProductUpdateParams.description,
|
1561
|
+
highlightArray: ProductUpdateParams.highlightArray,
|
1562
|
+
purposeArray: ProductUpdateParams.purposeArray,
|
1563
|
+
technologyArray: ProductUpdateParams.technologyArray,
|
1564
|
+
articleId: ProductUpdateParams.articleId
|
1565
|
+
},
|
1566
|
+
authenticationNotOptional: true
|
1567
|
+
},
|
1568
|
+
ProductUpdateOptions
|
1569
|
+
);
|
1570
|
+
}
|
1517
1571
|
async delete(ProductDeleteParams, ProductDeleteOptions) {
|
1518
1572
|
return await super.sendRequest(
|
1519
1573
|
{
|
@@ -1606,6 +1660,21 @@ var AccountingAreasService = class extends Service {
|
|
1606
1660
|
AccountingAreaListOptions
|
1607
1661
|
);
|
1608
1662
|
}
|
1663
|
+
async update(AccountingAreaUpdateParams, AccountingAreaUpdateOptions) {
|
1664
|
+
return await super.sendRequest(
|
1665
|
+
{
|
1666
|
+
method: "PATCH",
|
1667
|
+
url: "accountingAreas/" + AccountingAreaUpdateParams.accountingAreaId,
|
1668
|
+
body: {
|
1669
|
+
name: AccountingAreaUpdateParams.name,
|
1670
|
+
creditPostingRowDescription: AccountingAreaUpdateParams.creditPostingRowDescription,
|
1671
|
+
orderNumber: AccountingAreaUpdateParams.orderNumber
|
1672
|
+
},
|
1673
|
+
authenticationNotOptional: true
|
1674
|
+
},
|
1675
|
+
AccountingAreaUpdateOptions
|
1676
|
+
);
|
1677
|
+
}
|
1609
1678
|
async delete(AccountingAreaDeleteParams, AccountingAreaDeleteOptions) {
|
1610
1679
|
return await super.sendRequest(
|
1611
1680
|
{
|
@@ -1679,6 +1748,22 @@ var ConnectorsService = class extends Service {
|
|
1679
1748
|
ConnectorListOptions
|
1680
1749
|
);
|
1681
1750
|
}
|
1751
|
+
async update(ConnectorUpdateParams, ConnectorUpdateOptions) {
|
1752
|
+
return await super.sendRequest(
|
1753
|
+
{
|
1754
|
+
method: "PATCH",
|
1755
|
+
url: "connectors/" + ConnectorUpdateParams.connectorId,
|
1756
|
+
body: {
|
1757
|
+
name: ConnectorUpdateParams.name,
|
1758
|
+
description: ConnectorUpdateParams.description,
|
1759
|
+
connectionMode: ConnectorUpdateParams.connectionMode,
|
1760
|
+
simId: ConnectorUpdateParams.simId
|
1761
|
+
},
|
1762
|
+
authenticationNotOptional: true
|
1763
|
+
},
|
1764
|
+
ConnectorUpdateOptions
|
1765
|
+
);
|
1766
|
+
}
|
1682
1767
|
async delete(ConnectorDeleteParams, ConnectorDeleteOptions) {
|
1683
1768
|
return await super.sendRequest(
|
1684
1769
|
{
|
package/dist/index.mjs
CHANGED
@@ -947,6 +947,26 @@ var DevicesService = class extends Service {
|
|
947
947
|
DeviceListOptions
|
948
948
|
);
|
949
949
|
}
|
950
|
+
async update(DeviceUpdateParams, DeviceUpdateOptions) {
|
951
|
+
return await super.sendRequest(
|
952
|
+
{
|
953
|
+
method: "PATCH",
|
954
|
+
url: "devices/" + DeviceUpdateParams.deviceId,
|
955
|
+
body: {
|
956
|
+
name: DeviceUpdateParams.name,
|
957
|
+
description: DeviceUpdateParams.description,
|
958
|
+
latitude: DeviceUpdateParams.latitude,
|
959
|
+
longitude: DeviceUpdateParams.longitude,
|
960
|
+
fuel: DeviceUpdateParams.fuel,
|
961
|
+
rangeRemaining: DeviceUpdateParams.rangeRemaining,
|
962
|
+
connectorId: DeviceUpdateParams.connectorId,
|
963
|
+
connectorParameter: DeviceUpdateParams.connectorParameter
|
964
|
+
},
|
965
|
+
authenticationNotOptional: true
|
966
|
+
},
|
967
|
+
DeviceUpdateOptions
|
968
|
+
);
|
969
|
+
}
|
950
970
|
listen(DeviceRealtimeParams, DeviceRealtimeOptions) {
|
951
971
|
const socket = super.connectToWebsocket({
|
952
972
|
url: "devices/" + DeviceRealtimeParams.deviceId + "/websocket"
|
@@ -1218,6 +1238,21 @@ var TermsService = class extends Service {
|
|
1218
1238
|
TermListOptions
|
1219
1239
|
);
|
1220
1240
|
}
|
1241
|
+
async update(TermUpdateParams, TermUpdateOptions) {
|
1242
|
+
return await super.sendRequest(
|
1243
|
+
{
|
1244
|
+
method: "PATCH",
|
1245
|
+
url: "terms/" + TermUpdateParams.termId,
|
1246
|
+
body: {
|
1247
|
+
name: TermUpdateParams.name,
|
1248
|
+
address: TermUpdateParams.dsgvoUrl,
|
1249
|
+
deviceIdArray: TermUpdateParams.url
|
1250
|
+
},
|
1251
|
+
authenticationNotOptional: true
|
1252
|
+
},
|
1253
|
+
TermUpdateOptions
|
1254
|
+
);
|
1255
|
+
}
|
1221
1256
|
async accept(TermAcceptParams, TermAcceptOptions) {
|
1222
1257
|
return await super.sendRequest(
|
1223
1258
|
{
|
@@ -1470,6 +1505,25 @@ var ProductService = class extends Service {
|
|
1470
1505
|
options
|
1471
1506
|
);
|
1472
1507
|
}
|
1508
|
+
async update(ProductUpdateParams, ProductUpdateOptions) {
|
1509
|
+
return await super.sendRequest(
|
1510
|
+
{
|
1511
|
+
method: "PATCH",
|
1512
|
+
url: "products/" + ProductUpdateParams.productId,
|
1513
|
+
body: {
|
1514
|
+
name: ProductUpdateParams.name,
|
1515
|
+
previewText: ProductUpdateParams.previewText,
|
1516
|
+
description: ProductUpdateParams.description,
|
1517
|
+
highlightArray: ProductUpdateParams.highlightArray,
|
1518
|
+
purposeArray: ProductUpdateParams.purposeArray,
|
1519
|
+
technologyArray: ProductUpdateParams.technologyArray,
|
1520
|
+
articleId: ProductUpdateParams.articleId
|
1521
|
+
},
|
1522
|
+
authenticationNotOptional: true
|
1523
|
+
},
|
1524
|
+
ProductUpdateOptions
|
1525
|
+
);
|
1526
|
+
}
|
1473
1527
|
async delete(ProductDeleteParams, ProductDeleteOptions) {
|
1474
1528
|
return await super.sendRequest(
|
1475
1529
|
{
|
@@ -1562,6 +1616,21 @@ var AccountingAreasService = class extends Service {
|
|
1562
1616
|
AccountingAreaListOptions
|
1563
1617
|
);
|
1564
1618
|
}
|
1619
|
+
async update(AccountingAreaUpdateParams, AccountingAreaUpdateOptions) {
|
1620
|
+
return await super.sendRequest(
|
1621
|
+
{
|
1622
|
+
method: "PATCH",
|
1623
|
+
url: "accountingAreas/" + AccountingAreaUpdateParams.accountingAreaId,
|
1624
|
+
body: {
|
1625
|
+
name: AccountingAreaUpdateParams.name,
|
1626
|
+
creditPostingRowDescription: AccountingAreaUpdateParams.creditPostingRowDescription,
|
1627
|
+
orderNumber: AccountingAreaUpdateParams.orderNumber
|
1628
|
+
},
|
1629
|
+
authenticationNotOptional: true
|
1630
|
+
},
|
1631
|
+
AccountingAreaUpdateOptions
|
1632
|
+
);
|
1633
|
+
}
|
1565
1634
|
async delete(AccountingAreaDeleteParams, AccountingAreaDeleteOptions) {
|
1566
1635
|
return await super.sendRequest(
|
1567
1636
|
{
|
@@ -1635,6 +1704,22 @@ var ConnectorsService = class extends Service {
|
|
1635
1704
|
ConnectorListOptions
|
1636
1705
|
);
|
1637
1706
|
}
|
1707
|
+
async update(ConnectorUpdateParams, ConnectorUpdateOptions) {
|
1708
|
+
return await super.sendRequest(
|
1709
|
+
{
|
1710
|
+
method: "PATCH",
|
1711
|
+
url: "connectors/" + ConnectorUpdateParams.connectorId,
|
1712
|
+
body: {
|
1713
|
+
name: ConnectorUpdateParams.name,
|
1714
|
+
description: ConnectorUpdateParams.description,
|
1715
|
+
connectionMode: ConnectorUpdateParams.connectionMode,
|
1716
|
+
simId: ConnectorUpdateParams.simId
|
1717
|
+
},
|
1718
|
+
authenticationNotOptional: true
|
1719
|
+
},
|
1720
|
+
ConnectorUpdateOptions
|
1721
|
+
);
|
1722
|
+
}
|
1638
1723
|
async delete(ConnectorDeleteParams, ConnectorDeleteOptions) {
|
1639
1724
|
return await super.sendRequest(
|
1640
1725
|
{
|