@juhuu/sdk-ts 1.2.10 → 1.2.12

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
@@ -559,7 +559,6 @@ declare class LinkService extends Service {
559
559
 
560
560
  declare class UsersService extends Service {
561
561
  constructor(config: JUHUU.SetupConfig);
562
- create(): Promise<void>;
563
562
  retrieve(UserRetrieveParams: JUHUU.User.Retrieve.Params, UserRetrieveOptions?: JUHUU.User.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Retrieve.Response>>;
564
563
  exists(UserExistsParams: JUHUU.User.Exists.Params, UserExistsOptions?: JUHUU.User.Exists.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Exists.Response>>;
565
564
  registerEmailPassword(UserRegisterEmailPasswordParams: JUHUU.User.RegisterEmailPassword.Params, UserRegisterEmailPasswordOptions?: JUHUU.User.RegisterEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RegisterEmailPassword.Response>>;
@@ -626,6 +625,7 @@ declare class LocationsService extends Service {
626
625
  constructor(config: JUHUU.SetupConfig);
627
626
  retrieve(LocationRetrieveParams: JUHUU.Location.Retrieve.Params, LocationRetrieveOptions?: JUHUU.Location.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.Retrieve.Response>>;
628
627
  list(LocationListParams: JUHUU.Location.List.Params, LocationListOptions?: JUHUU.Location.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.List.Response>>;
628
+ update(LocationUpdateParams: JUHUU.Location.Update.Params, LocationUpdateOptions?: JUHUU.Location.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.Update.Response>>;
629
629
  }
630
630
 
631
631
  declare class TermsService extends Service {
@@ -946,6 +946,7 @@ declare namespace JUHUU {
946
946
  export namespace List {
947
947
  type Params = {
948
948
  managementUserId?: string;
949
+ propertyId?: string;
949
950
  };
950
951
  type Options = JUHUU.RequestOptions;
951
952
  type Response = JUHUU.User.Object[];
@@ -1507,12 +1508,37 @@ declare namespace JUHUU {
1507
1508
  }
1508
1509
  export namespace List {
1509
1510
  type Params = {
1510
- rentableDeviceGroupLocationId?: string;
1511
+ rentableDeviceGroupLocationId?: string | null;
1511
1512
  propertyId?: string;
1512
1513
  };
1513
1514
  type Options = JUHUU.RequestOptions;
1514
1515
  type Response = JUHUU.Location.Object[];
1515
1516
  }
1517
+ export namespace Update {
1518
+ type Params = {
1519
+ locationId: string;
1520
+ name?: string;
1521
+ address?: Partial<Address>;
1522
+ deviceIdArray?: string[];
1523
+ deviceId?: string;
1524
+ maximumConcurrentSessions?: number;
1525
+ surveyEnabled?: boolean;
1526
+ accountingAreaId?: string;
1527
+ logoLight?: string | null;
1528
+ logoDark?: string | null;
1529
+ location?: GeoPoint;
1530
+ purposeArray?: Purpose[];
1531
+ circumstanceArray?: Circumstance[];
1532
+ rentOfferArray?: Offer[];
1533
+ reservationOfferArray?: Offer[];
1534
+ iconLight?: string | null;
1535
+ iconDark?: string | null;
1536
+ };
1537
+ type Options = JUHUU.RequestOptions;
1538
+ type Response = {
1539
+ property: JUHUU.Property.Object;
1540
+ };
1541
+ }
1516
1542
  export { };
1517
1543
  }
1518
1544
  namespace Product {
package/dist/index.d.ts CHANGED
@@ -559,7 +559,6 @@ declare class LinkService extends Service {
559
559
 
560
560
  declare class UsersService extends Service {
561
561
  constructor(config: JUHUU.SetupConfig);
562
- create(): Promise<void>;
563
562
  retrieve(UserRetrieveParams: JUHUU.User.Retrieve.Params, UserRetrieveOptions?: JUHUU.User.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Retrieve.Response>>;
564
563
  exists(UserExistsParams: JUHUU.User.Exists.Params, UserExistsOptions?: JUHUU.User.Exists.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Exists.Response>>;
565
564
  registerEmailPassword(UserRegisterEmailPasswordParams: JUHUU.User.RegisterEmailPassword.Params, UserRegisterEmailPasswordOptions?: JUHUU.User.RegisterEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RegisterEmailPassword.Response>>;
@@ -626,6 +625,7 @@ declare class LocationsService extends Service {
626
625
  constructor(config: JUHUU.SetupConfig);
627
626
  retrieve(LocationRetrieveParams: JUHUU.Location.Retrieve.Params, LocationRetrieveOptions?: JUHUU.Location.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.Retrieve.Response>>;
628
627
  list(LocationListParams: JUHUU.Location.List.Params, LocationListOptions?: JUHUU.Location.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.List.Response>>;
628
+ update(LocationUpdateParams: JUHUU.Location.Update.Params, LocationUpdateOptions?: JUHUU.Location.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.Update.Response>>;
629
629
  }
630
630
 
631
631
  declare class TermsService extends Service {
@@ -946,6 +946,7 @@ declare namespace JUHUU {
946
946
  export namespace List {
947
947
  type Params = {
948
948
  managementUserId?: string;
949
+ propertyId?: string;
949
950
  };
950
951
  type Options = JUHUU.RequestOptions;
951
952
  type Response = JUHUU.User.Object[];
@@ -1507,12 +1508,37 @@ declare namespace JUHUU {
1507
1508
  }
1508
1509
  export namespace List {
1509
1510
  type Params = {
1510
- rentableDeviceGroupLocationId?: string;
1511
+ rentableDeviceGroupLocationId?: string | null;
1511
1512
  propertyId?: string;
1512
1513
  };
1513
1514
  type Options = JUHUU.RequestOptions;
1514
1515
  type Response = JUHUU.Location.Object[];
1515
1516
  }
1517
+ export namespace Update {
1518
+ type Params = {
1519
+ locationId: string;
1520
+ name?: string;
1521
+ address?: Partial<Address>;
1522
+ deviceIdArray?: string[];
1523
+ deviceId?: string;
1524
+ maximumConcurrentSessions?: number;
1525
+ surveyEnabled?: boolean;
1526
+ accountingAreaId?: string;
1527
+ logoLight?: string | null;
1528
+ logoDark?: string | null;
1529
+ location?: GeoPoint;
1530
+ purposeArray?: Purpose[];
1531
+ circumstanceArray?: Circumstance[];
1532
+ rentOfferArray?: Offer[];
1533
+ reservationOfferArray?: Offer[];
1534
+ iconLight?: string | null;
1535
+ iconDark?: string | null;
1536
+ };
1537
+ type Options = JUHUU.RequestOptions;
1538
+ type Response = {
1539
+ property: JUHUU.Property.Object;
1540
+ };
1541
+ }
1516
1542
  export { };
1517
1543
  }
1518
1544
  namespace Product {
package/dist/index.js CHANGED
@@ -422,8 +422,6 @@ var UsersService = class extends Service {
422
422
  constructor(config) {
423
423
  super(config);
424
424
  }
425
- async create() {
426
- }
427
425
  async retrieve(UserRetrieveParams, UserRetrieveOptions) {
428
426
  const queryArray = [];
429
427
  return await super.sendRequest(
@@ -505,6 +503,9 @@ var UsersService = class extends Service {
505
503
  if (UserListParams.managementUserId !== void 0) {
506
504
  queryArray.push("managementUserId=" + UserListParams.managementUserId);
507
505
  }
506
+ if (UserListParams.propertyId !== void 0) {
507
+ queryArray.push("propertyId=" + UserListParams.propertyId);
508
+ }
508
509
  return await super.sendRequest(
509
510
  {
510
511
  method: "GET",
@@ -953,8 +954,9 @@ var LocationsService = class extends Service {
953
954
  async list(LocationListParams, LocationListOptions) {
954
955
  const queryArray = [];
955
956
  if (LocationListParams?.rentableDeviceGroupLocationId !== void 0) {
957
+ const rentableDeviceGroupLocationId = LocationListParams.rentableDeviceGroupLocationId === null ? "null" : LocationListParams.rentableDeviceGroupLocationId;
956
958
  queryArray.push(
957
- "rentableDeviceGroupLocationId=" + LocationListParams.rentableDeviceGroupLocationId
959
+ "rentableDeviceGroupLocationId=" + rentableDeviceGroupLocationId
958
960
  );
959
961
  }
960
962
  if (LocationListParams?.propertyId !== void 0) {
@@ -970,6 +972,54 @@ var LocationsService = class extends Service {
970
972
  LocationListOptions
971
973
  );
972
974
  }
975
+ /*
976
+ export type Params = {
977
+ locationId: string;
978
+ name?: string;
979
+ address?: Partial<Address>;
980
+ deviceIdArray?: string[];
981
+ deviceId?: string;
982
+ maximumConcurrentSessions?: number;
983
+ surveyEnabled?: boolean;
984
+ accountingAreaId?: string;
985
+ logoLight?: string | null;
986
+ logoDark?: string | null;
987
+ location?: GeoPoint;
988
+ purposeArray?: Purpose[];
989
+ circumstanceArray?: Circumstance[];
990
+ rentOfferArray?: Offer[];
991
+ reservationOfferArray?: Offer[];
992
+ iconLight?: string | null;
993
+ iconDark?: string | null;
994
+ };*/
995
+ async update(LocationUpdateParams, LocationUpdateOptions) {
996
+ return await super.sendRequest(
997
+ {
998
+ method: "PATCH",
999
+ url: "locations/" + LocationUpdateParams.locationId,
1000
+ body: {
1001
+ name: LocationUpdateParams.name,
1002
+ address: LocationUpdateParams.address,
1003
+ deviceIdArray: LocationUpdateParams.deviceIdArray,
1004
+ deviceId: LocationUpdateParams.deviceId,
1005
+ maximumConcurrentSessions: LocationUpdateParams.maximumConcurrentSessions,
1006
+ surveyEnabled: LocationUpdateParams.surveyEnabled,
1007
+ accountingAreaId: LocationUpdateParams.accountingAreaId,
1008
+ logoLight: LocationUpdateParams.logoLight,
1009
+ logoDark: LocationUpdateParams.logoDark,
1010
+ location: LocationUpdateParams.location,
1011
+ purposeArray: LocationUpdateParams.purposeArray,
1012
+ circumstanceArray: LocationUpdateParams.circumstanceArray,
1013
+ rentOfferArray: LocationUpdateParams.rentOfferArray,
1014
+ reservationOfferArray: LocationUpdateParams.reservationOfferArray,
1015
+ iconLight: LocationUpdateParams.iconLight,
1016
+ iconDark: LocationUpdateParams.iconDark
1017
+ },
1018
+ useAuthentication: true
1019
+ },
1020
+ LocationUpdateOptions
1021
+ );
1022
+ }
973
1023
  };
974
1024
 
975
1025
  // src/terms/terms.service.ts
package/dist/index.mjs CHANGED
@@ -377,8 +377,6 @@ var UsersService = class extends Service {
377
377
  constructor(config) {
378
378
  super(config);
379
379
  }
380
- async create() {
381
- }
382
380
  async retrieve(UserRetrieveParams, UserRetrieveOptions) {
383
381
  const queryArray = [];
384
382
  return await super.sendRequest(
@@ -460,6 +458,9 @@ var UsersService = class extends Service {
460
458
  if (UserListParams.managementUserId !== void 0) {
461
459
  queryArray.push("managementUserId=" + UserListParams.managementUserId);
462
460
  }
461
+ if (UserListParams.propertyId !== void 0) {
462
+ queryArray.push("propertyId=" + UserListParams.propertyId);
463
+ }
463
464
  return await super.sendRequest(
464
465
  {
465
466
  method: "GET",
@@ -908,8 +909,9 @@ var LocationsService = class extends Service {
908
909
  async list(LocationListParams, LocationListOptions) {
909
910
  const queryArray = [];
910
911
  if (LocationListParams?.rentableDeviceGroupLocationId !== void 0) {
912
+ const rentableDeviceGroupLocationId = LocationListParams.rentableDeviceGroupLocationId === null ? "null" : LocationListParams.rentableDeviceGroupLocationId;
911
913
  queryArray.push(
912
- "rentableDeviceGroupLocationId=" + LocationListParams.rentableDeviceGroupLocationId
914
+ "rentableDeviceGroupLocationId=" + rentableDeviceGroupLocationId
913
915
  );
914
916
  }
915
917
  if (LocationListParams?.propertyId !== void 0) {
@@ -925,6 +927,54 @@ var LocationsService = class extends Service {
925
927
  LocationListOptions
926
928
  );
927
929
  }
930
+ /*
931
+ export type Params = {
932
+ locationId: string;
933
+ name?: string;
934
+ address?: Partial<Address>;
935
+ deviceIdArray?: string[];
936
+ deviceId?: string;
937
+ maximumConcurrentSessions?: number;
938
+ surveyEnabled?: boolean;
939
+ accountingAreaId?: string;
940
+ logoLight?: string | null;
941
+ logoDark?: string | null;
942
+ location?: GeoPoint;
943
+ purposeArray?: Purpose[];
944
+ circumstanceArray?: Circumstance[];
945
+ rentOfferArray?: Offer[];
946
+ reservationOfferArray?: Offer[];
947
+ iconLight?: string | null;
948
+ iconDark?: string | null;
949
+ };*/
950
+ async update(LocationUpdateParams, LocationUpdateOptions) {
951
+ return await super.sendRequest(
952
+ {
953
+ method: "PATCH",
954
+ url: "locations/" + LocationUpdateParams.locationId,
955
+ body: {
956
+ name: LocationUpdateParams.name,
957
+ address: LocationUpdateParams.address,
958
+ deviceIdArray: LocationUpdateParams.deviceIdArray,
959
+ deviceId: LocationUpdateParams.deviceId,
960
+ maximumConcurrentSessions: LocationUpdateParams.maximumConcurrentSessions,
961
+ surveyEnabled: LocationUpdateParams.surveyEnabled,
962
+ accountingAreaId: LocationUpdateParams.accountingAreaId,
963
+ logoLight: LocationUpdateParams.logoLight,
964
+ logoDark: LocationUpdateParams.logoDark,
965
+ location: LocationUpdateParams.location,
966
+ purposeArray: LocationUpdateParams.purposeArray,
967
+ circumstanceArray: LocationUpdateParams.circumstanceArray,
968
+ rentOfferArray: LocationUpdateParams.rentOfferArray,
969
+ reservationOfferArray: LocationUpdateParams.reservationOfferArray,
970
+ iconLight: LocationUpdateParams.iconLight,
971
+ iconDark: LocationUpdateParams.iconDark
972
+ },
973
+ useAuthentication: true
974
+ },
975
+ LocationUpdateOptions
976
+ );
977
+ }
928
978
  };
929
979
 
930
980
  // src/terms/terms.service.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",