@juhuu/sdk-ts 1.2.88 → 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 CHANGED
@@ -646,6 +646,7 @@ declare class DevicesService extends Service {
646
646
  create(DeviceCreateParams: JUHUU.Device.Create.Params, DeviceCreateOptions?: JUHUU.Device.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Create.Response>>;
647
647
  retrieve(DeviceRetrieveParams: JUHUU.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU.Device.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Retrieve.Response>>;
648
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>>;
649
650
  listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
650
651
  message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
651
652
  parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
@@ -726,6 +727,7 @@ declare class AccountingAreasService extends Service {
726
727
  create(AccountingAreaCreateParams: JUHUU.AccountingArea.Create.Params, AccountingAreaCreateOptions?: JUHUU.AccountingArea.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Create.Response>>;
727
728
  retrieve(AccountingAreaRetrieveParams: JUHUU.AccountingArea.Retrieve.Params, AccountingAreaRetrieveOptions?: JUHUU.AccountingArea.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Retrieve.Response>>;
728
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>>;
729
731
  delete(AccountingAreaDeleteParams: JUHUU.AccountingArea.Delete.Params, AccountingAreaDeleteOptions?: JUHUU.AccountingArea.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Delete.Response>>;
730
732
  }
731
733
 
@@ -734,6 +736,7 @@ declare class ConnectorsService extends Service {
734
736
  create(ConnectorCreateParams: JUHUU.Connector.Create.Params, ConnectorCreateOptions?: JUHUU.Connector.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Create.Response>>;
735
737
  retrieve(ConnectorRetrieveParams: JUHUU.Connector.Retrieve.Params, ConnectorRetrieveOptions?: JUHUU.Connector.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Retrieve.Response>>;
736
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>>;
737
740
  delete(ConnectorDeleteParams: JUHUU.Connector.Delete.Params, ConnectorDeleteOptions?: JUHUU.Connector.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Delete.Response>>;
738
741
  }
739
742
 
@@ -1311,7 +1314,7 @@ declare namespace JUHUU {
1311
1314
  };
1312
1315
  type Options = JUHUU.RequestOptions;
1313
1316
  type Response = {
1314
- location: JUHUU.Location.Object;
1317
+ term: JUHUU.Term.Object;
1315
1318
  };
1316
1319
  }
1317
1320
  namespace Accept {
@@ -1372,6 +1375,18 @@ declare namespace JUHUU {
1372
1375
  type Options = JUHUU.RequestOptions;
1373
1376
  type Response = JUHUU.AccountingArea.Object[];
1374
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
+ }
1375
1390
  namespace Delete {
1376
1391
  type Params = {
1377
1392
  accountingAreaId?: string;
@@ -2304,14 +2319,14 @@ declare namespace JUHUU {
2304
2319
  name?: string;
2305
2320
  previewText?: LocaleString;
2306
2321
  description?: LocaleString;
2307
- highlightArray: LocaleString[];
2322
+ highlightArray?: LocaleString[];
2308
2323
  purposeArray?: Purpose[];
2309
2324
  technologyArray?: Technology[];
2310
2325
  articleId?: string | null;
2311
2326
  };
2312
2327
  type Options = JUHUU.RequestOptions;
2313
2328
  type Response = {
2314
- location: JUHUU.Location.Object;
2329
+ product: JUHUU.Product.Object;
2315
2330
  };
2316
2331
  }
2317
2332
  namespace Delete {
@@ -2449,6 +2464,27 @@ declare namespace JUHUU {
2449
2464
  hasMore: boolean;
2450
2465
  };
2451
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
+ }
2452
2488
  namespace Realtime {
2453
2489
  type Params = {
2454
2490
  deviceId: string;
@@ -2574,6 +2610,19 @@ declare namespace JUHUU {
2574
2610
  type Options = JUHUU.RequestOptions;
2575
2611
  type Response = JUHUU.Connector.Object[];
2576
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
+ }
2577
2626
  export namespace Delete {
2578
2627
  type Params = {
2579
2628
  connectorId?: string;
package/dist/index.d.ts CHANGED
@@ -646,6 +646,7 @@ declare class DevicesService extends Service {
646
646
  create(DeviceCreateParams: JUHUU.Device.Create.Params, DeviceCreateOptions?: JUHUU.Device.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Create.Response>>;
647
647
  retrieve(DeviceRetrieveParams: JUHUU.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU.Device.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Retrieve.Response>>;
648
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>>;
649
650
  listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
650
651
  message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
651
652
  parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
@@ -726,6 +727,7 @@ declare class AccountingAreasService extends Service {
726
727
  create(AccountingAreaCreateParams: JUHUU.AccountingArea.Create.Params, AccountingAreaCreateOptions?: JUHUU.AccountingArea.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Create.Response>>;
727
728
  retrieve(AccountingAreaRetrieveParams: JUHUU.AccountingArea.Retrieve.Params, AccountingAreaRetrieveOptions?: JUHUU.AccountingArea.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Retrieve.Response>>;
728
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>>;
729
731
  delete(AccountingAreaDeleteParams: JUHUU.AccountingArea.Delete.Params, AccountingAreaDeleteOptions?: JUHUU.AccountingArea.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.AccountingArea.Delete.Response>>;
730
732
  }
731
733
 
@@ -734,6 +736,7 @@ declare class ConnectorsService extends Service {
734
736
  create(ConnectorCreateParams: JUHUU.Connector.Create.Params, ConnectorCreateOptions?: JUHUU.Connector.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Create.Response>>;
735
737
  retrieve(ConnectorRetrieveParams: JUHUU.Connector.Retrieve.Params, ConnectorRetrieveOptions?: JUHUU.Connector.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Retrieve.Response>>;
736
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>>;
737
740
  delete(ConnectorDeleteParams: JUHUU.Connector.Delete.Params, ConnectorDeleteOptions?: JUHUU.Connector.Delete.Options): Promise<JUHUU.HttpResponse<JUHUU.Connector.Delete.Response>>;
738
741
  }
739
742
 
@@ -1311,7 +1314,7 @@ declare namespace JUHUU {
1311
1314
  };
1312
1315
  type Options = JUHUU.RequestOptions;
1313
1316
  type Response = {
1314
- location: JUHUU.Location.Object;
1317
+ term: JUHUU.Term.Object;
1315
1318
  };
1316
1319
  }
1317
1320
  namespace Accept {
@@ -1372,6 +1375,18 @@ declare namespace JUHUU {
1372
1375
  type Options = JUHUU.RequestOptions;
1373
1376
  type Response = JUHUU.AccountingArea.Object[];
1374
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
+ }
1375
1390
  namespace Delete {
1376
1391
  type Params = {
1377
1392
  accountingAreaId?: string;
@@ -2304,14 +2319,14 @@ declare namespace JUHUU {
2304
2319
  name?: string;
2305
2320
  previewText?: LocaleString;
2306
2321
  description?: LocaleString;
2307
- highlightArray: LocaleString[];
2322
+ highlightArray?: LocaleString[];
2308
2323
  purposeArray?: Purpose[];
2309
2324
  technologyArray?: Technology[];
2310
2325
  articleId?: string | null;
2311
2326
  };
2312
2327
  type Options = JUHUU.RequestOptions;
2313
2328
  type Response = {
2314
- location: JUHUU.Location.Object;
2329
+ product: JUHUU.Product.Object;
2315
2330
  };
2316
2331
  }
2317
2332
  namespace Delete {
@@ -2449,6 +2464,27 @@ declare namespace JUHUU {
2449
2464
  hasMore: boolean;
2450
2465
  };
2451
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
+ }
2452
2488
  namespace Realtime {
2453
2489
  type Params = {
2454
2490
  deviceId: string;
@@ -2574,6 +2610,19 @@ declare namespace JUHUU {
2574
2610
  type Options = JUHUU.RequestOptions;
2575
2611
  type Response = JUHUU.Connector.Object[];
2576
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
+ }
2577
2626
  export namespace Delete {
2578
2627
  type Params = {
2579
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"
@@ -1640,6 +1660,21 @@ var AccountingAreasService = class extends Service {
1640
1660
  AccountingAreaListOptions
1641
1661
  );
1642
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
+ }
1643
1678
  async delete(AccountingAreaDeleteParams, AccountingAreaDeleteOptions) {
1644
1679
  return await super.sendRequest(
1645
1680
  {
@@ -1713,6 +1748,22 @@ var ConnectorsService = class extends Service {
1713
1748
  ConnectorListOptions
1714
1749
  );
1715
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
+ }
1716
1767
  async delete(ConnectorDeleteParams, ConnectorDeleteOptions) {
1717
1768
  return await super.sendRequest(
1718
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"
@@ -1596,6 +1616,21 @@ var AccountingAreasService = class extends Service {
1596
1616
  AccountingAreaListOptions
1597
1617
  );
1598
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
+ }
1599
1634
  async delete(AccountingAreaDeleteParams, AccountingAreaDeleteOptions) {
1600
1635
  return await super.sendRequest(
1601
1636
  {
@@ -1669,6 +1704,22 @@ var ConnectorsService = class extends Service {
1669
1704
  ConnectorListOptions
1670
1705
  );
1671
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
+ }
1672
1723
  async delete(ConnectorDeleteParams, ConnectorDeleteOptions) {
1673
1724
  return await super.sendRequest(
1674
1725
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.88",
3
+ "version": "1.2.89",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",