@juhuu/sdk-ts 1.2.105 → 1.2.107

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
@@ -593,6 +593,7 @@ declare class SessionService extends Service {
593
593
 
594
594
  declare class LinkService extends Service {
595
595
  constructor(config: JUHUU.SetupConfig);
596
+ search(LinkSearchParams: JUHUU.Link.Search.Params, LinkSearchOptions?: JUHUU.Link.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Search.Response>>;
596
597
  create(LinkCreateParams: JUHUU.Link.Create.Params, LinkCreateOptions?: JUHUU.Link.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Create.Response>>;
597
598
  retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
598
599
  list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
@@ -2302,6 +2303,8 @@ declare namespace JUHUU {
2302
2303
  timeZone: TimeZone | null;
2303
2304
  version: number;
2304
2305
  devicePermissionArray: DevicePermission[];
2306
+ disabled: boolean;
2307
+ disabledBy: "propertyAdmin" | "deviceNodeArray" | null;
2305
2308
  };
2306
2309
  export interface RentableDeviceGroup extends Base {
2307
2310
  type: "rentableDeviceGroup";
@@ -2375,6 +2378,7 @@ declare namespace JUHUU {
2375
2378
  circumstanceArray?: Circumstance[];
2376
2379
  rentOfferArray?: Offer[];
2377
2380
  reservationOfferArray?: Offer[];
2381
+ disabled?: boolean;
2378
2382
  };
2379
2383
  type Options = JUHUU.RequestOptions;
2380
2384
  type Response = {
@@ -2502,6 +2506,17 @@ declare namespace JUHUU {
2502
2506
  property?: JUHUU.Property.Object;
2503
2507
  };
2504
2508
  }
2509
+ export namespace Search {
2510
+ type Params = {
2511
+ q: string;
2512
+ };
2513
+ type Options = {} & JUHUU.RequestOptions;
2514
+ type Response = {
2515
+ linkArray: JUHUU.Link.Object[];
2516
+ count: number;
2517
+ hasMore: boolean;
2518
+ };
2519
+ }
2505
2520
  export namespace List {
2506
2521
  type Params = {
2507
2522
  fiveLetterQr?: string;
@@ -2548,6 +2563,8 @@ declare namespace JUHUU {
2548
2563
  invalidAt: Date | null;
2549
2564
  connectorId: string | null;
2550
2565
  connectorParameter: string | null;
2566
+ disabled: boolean;
2567
+ disabledBy: "propertyAdmin" | "nodeArray" | null;
2551
2568
  };
2552
2569
  namespace Create {
2553
2570
  type Params = {
@@ -2606,6 +2623,7 @@ declare namespace JUHUU {
2606
2623
  rangeRemaining?: number | null;
2607
2624
  connectorId?: string | null;
2608
2625
  connectorParameter?: string | null;
2626
+ disabled?: boolean;
2609
2627
  };
2610
2628
  type Options = JUHUU.RequestOptions;
2611
2629
  type Response = {
package/dist/index.d.ts CHANGED
@@ -593,6 +593,7 @@ declare class SessionService extends Service {
593
593
 
594
594
  declare class LinkService extends Service {
595
595
  constructor(config: JUHUU.SetupConfig);
596
+ search(LinkSearchParams: JUHUU.Link.Search.Params, LinkSearchOptions?: JUHUU.Link.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Search.Response>>;
596
597
  create(LinkCreateParams: JUHUU.Link.Create.Params, LinkCreateOptions?: JUHUU.Link.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Create.Response>>;
597
598
  retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
598
599
  list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
@@ -2302,6 +2303,8 @@ declare namespace JUHUU {
2302
2303
  timeZone: TimeZone | null;
2303
2304
  version: number;
2304
2305
  devicePermissionArray: DevicePermission[];
2306
+ disabled: boolean;
2307
+ disabledBy: "propertyAdmin" | "deviceNodeArray" | null;
2305
2308
  };
2306
2309
  export interface RentableDeviceGroup extends Base {
2307
2310
  type: "rentableDeviceGroup";
@@ -2375,6 +2378,7 @@ declare namespace JUHUU {
2375
2378
  circumstanceArray?: Circumstance[];
2376
2379
  rentOfferArray?: Offer[];
2377
2380
  reservationOfferArray?: Offer[];
2381
+ disabled?: boolean;
2378
2382
  };
2379
2383
  type Options = JUHUU.RequestOptions;
2380
2384
  type Response = {
@@ -2502,6 +2506,17 @@ declare namespace JUHUU {
2502
2506
  property?: JUHUU.Property.Object;
2503
2507
  };
2504
2508
  }
2509
+ export namespace Search {
2510
+ type Params = {
2511
+ q: string;
2512
+ };
2513
+ type Options = {} & JUHUU.RequestOptions;
2514
+ type Response = {
2515
+ linkArray: JUHUU.Link.Object[];
2516
+ count: number;
2517
+ hasMore: boolean;
2518
+ };
2519
+ }
2505
2520
  export namespace List {
2506
2521
  type Params = {
2507
2522
  fiveLetterQr?: string;
@@ -2548,6 +2563,8 @@ declare namespace JUHUU {
2548
2563
  invalidAt: Date | null;
2549
2564
  connectorId: string | null;
2550
2565
  connectorParameter: string | null;
2566
+ disabled: boolean;
2567
+ disabledBy: "propertyAdmin" | "nodeArray" | null;
2551
2568
  };
2552
2569
  namespace Create {
2553
2570
  type Params = {
@@ -2606,6 +2623,7 @@ declare namespace JUHUU {
2606
2623
  rangeRemaining?: number | null;
2607
2624
  connectorId?: string | null;
2608
2625
  connectorParameter?: string | null;
2626
+ disabled?: boolean;
2609
2627
  };
2610
2628
  type Options = JUHUU.RequestOptions;
2611
2629
  type Response = {
package/dist/index.js CHANGED
@@ -458,6 +458,21 @@ var LinkService = class extends Service {
458
458
  constructor(config) {
459
459
  super(config);
460
460
  }
461
+ async search(LinkSearchParams, LinkSearchOptions) {
462
+ const queryArray = [];
463
+ if (LinkSearchParams.q !== void 0) {
464
+ queryArray.push("q=" + LinkSearchParams.q);
465
+ }
466
+ return await super.sendRequest(
467
+ {
468
+ method: "GET",
469
+ url: "links/search?" + queryArray.join("&"),
470
+ body: void 0,
471
+ authenticationNotOptional: false
472
+ },
473
+ LinkSearchOptions
474
+ );
475
+ }
461
476
  async create(LinkCreateParams, LinkCreateOptions) {
462
477
  return await super.sendRequest(
463
478
  {
@@ -1019,7 +1034,8 @@ var DevicesService = class extends Service {
1019
1034
  fuel: DeviceUpdateParams.fuel,
1020
1035
  rangeRemaining: DeviceUpdateParams.rangeRemaining,
1021
1036
  connectorId: DeviceUpdateParams.connectorId,
1022
- connectorParameter: DeviceUpdateParams.connectorParameter
1037
+ connectorParameter: DeviceUpdateParams.connectorParameter,
1038
+ disabled: DeviceUpdateParams.disabled
1023
1039
  },
1024
1040
  authenticationNotOptional: true
1025
1041
  },
@@ -1047,7 +1063,7 @@ var DevicesService = class extends Service {
1047
1063
  return await super.sendRequest(
1048
1064
  {
1049
1065
  method: "POST",
1050
- url: "devices?" + DeviceMessageParams.deviceId + "/message",
1066
+ url: "devices/" + DeviceMessageParams.deviceId + "/message",
1051
1067
  body: {
1052
1068
  message: DeviceMessageParams.message
1053
1069
  },
@@ -1230,7 +1246,8 @@ var LocationsService = class extends Service {
1230
1246
  rentOfferArray: LocationUpdateParams.rentOfferArray,
1231
1247
  reservationOfferArray: LocationUpdateParams.reservationOfferArray,
1232
1248
  latitude: LocationUpdateParams.latitude,
1233
- longitude: LocationUpdateParams.longitude
1249
+ longitude: LocationUpdateParams.longitude,
1250
+ disabled: LocationUpdateParams.disabled
1234
1251
  },
1235
1252
  authenticationNotOptional: true
1236
1253
  },
package/dist/index.mjs CHANGED
@@ -414,6 +414,21 @@ var LinkService = class extends Service {
414
414
  constructor(config) {
415
415
  super(config);
416
416
  }
417
+ async search(LinkSearchParams, LinkSearchOptions) {
418
+ const queryArray = [];
419
+ if (LinkSearchParams.q !== void 0) {
420
+ queryArray.push("q=" + LinkSearchParams.q);
421
+ }
422
+ return await super.sendRequest(
423
+ {
424
+ method: "GET",
425
+ url: "links/search?" + queryArray.join("&"),
426
+ body: void 0,
427
+ authenticationNotOptional: false
428
+ },
429
+ LinkSearchOptions
430
+ );
431
+ }
417
432
  async create(LinkCreateParams, LinkCreateOptions) {
418
433
  return await super.sendRequest(
419
434
  {
@@ -975,7 +990,8 @@ var DevicesService = class extends Service {
975
990
  fuel: DeviceUpdateParams.fuel,
976
991
  rangeRemaining: DeviceUpdateParams.rangeRemaining,
977
992
  connectorId: DeviceUpdateParams.connectorId,
978
- connectorParameter: DeviceUpdateParams.connectorParameter
993
+ connectorParameter: DeviceUpdateParams.connectorParameter,
994
+ disabled: DeviceUpdateParams.disabled
979
995
  },
980
996
  authenticationNotOptional: true
981
997
  },
@@ -1003,7 +1019,7 @@ var DevicesService = class extends Service {
1003
1019
  return await super.sendRequest(
1004
1020
  {
1005
1021
  method: "POST",
1006
- url: "devices?" + DeviceMessageParams.deviceId + "/message",
1022
+ url: "devices/" + DeviceMessageParams.deviceId + "/message",
1007
1023
  body: {
1008
1024
  message: DeviceMessageParams.message
1009
1025
  },
@@ -1186,7 +1202,8 @@ var LocationsService = class extends Service {
1186
1202
  rentOfferArray: LocationUpdateParams.rentOfferArray,
1187
1203
  reservationOfferArray: LocationUpdateParams.reservationOfferArray,
1188
1204
  latitude: LocationUpdateParams.latitude,
1189
- longitude: LocationUpdateParams.longitude
1205
+ longitude: LocationUpdateParams.longitude,
1206
+ disabled: LocationUpdateParams.disabled
1190
1207
  },
1191
1208
  authenticationNotOptional: true
1192
1209
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.105",
3
+ "version": "1.2.107",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",