@juhuu/sdk-ts 1.2.11 → 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 +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +50 -1
- package/dist/index.mjs +50 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -625,6 +625,7 @@ declare class LocationsService extends Service {
|
|
625
625
|
constructor(config: JUHUU.SetupConfig);
|
626
626
|
retrieve(LocationRetrieveParams: JUHUU.Location.Retrieve.Params, LocationRetrieveOptions?: JUHUU.Location.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.Retrieve.Response>>;
|
627
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>>;
|
628
629
|
}
|
629
630
|
|
630
631
|
declare class TermsService extends Service {
|
@@ -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
@@ -625,6 +625,7 @@ declare class LocationsService extends Service {
|
|
625
625
|
constructor(config: JUHUU.SetupConfig);
|
626
626
|
retrieve(LocationRetrieveParams: JUHUU.Location.Retrieve.Params, LocationRetrieveOptions?: JUHUU.Location.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.Retrieve.Response>>;
|
627
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>>;
|
628
629
|
}
|
629
630
|
|
630
631
|
declare class TermsService extends Service {
|
@@ -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
@@ -954,8 +954,9 @@ var LocationsService = class extends Service {
|
|
954
954
|
async list(LocationListParams, LocationListOptions) {
|
955
955
|
const queryArray = [];
|
956
956
|
if (LocationListParams?.rentableDeviceGroupLocationId !== void 0) {
|
957
|
+
const rentableDeviceGroupLocationId = LocationListParams.rentableDeviceGroupLocationId === null ? "null" : LocationListParams.rentableDeviceGroupLocationId;
|
957
958
|
queryArray.push(
|
958
|
-
"rentableDeviceGroupLocationId=" +
|
959
|
+
"rentableDeviceGroupLocationId=" + rentableDeviceGroupLocationId
|
959
960
|
);
|
960
961
|
}
|
961
962
|
if (LocationListParams?.propertyId !== void 0) {
|
@@ -971,6 +972,54 @@ var LocationsService = class extends Service {
|
|
971
972
|
LocationListOptions
|
972
973
|
);
|
973
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
|
+
}
|
974
1023
|
};
|
975
1024
|
|
976
1025
|
// src/terms/terms.service.ts
|
package/dist/index.mjs
CHANGED
@@ -909,8 +909,9 @@ var LocationsService = class extends Service {
|
|
909
909
|
async list(LocationListParams, LocationListOptions) {
|
910
910
|
const queryArray = [];
|
911
911
|
if (LocationListParams?.rentableDeviceGroupLocationId !== void 0) {
|
912
|
+
const rentableDeviceGroupLocationId = LocationListParams.rentableDeviceGroupLocationId === null ? "null" : LocationListParams.rentableDeviceGroupLocationId;
|
912
913
|
queryArray.push(
|
913
|
-
"rentableDeviceGroupLocationId=" +
|
914
|
+
"rentableDeviceGroupLocationId=" + rentableDeviceGroupLocationId
|
914
915
|
);
|
915
916
|
}
|
916
917
|
if (LocationListParams?.propertyId !== void 0) {
|
@@ -926,6 +927,54 @@ var LocationsService = class extends Service {
|
|
926
927
|
LocationListOptions
|
927
928
|
);
|
928
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
|
+
}
|
929
978
|
};
|
930
979
|
|
931
980
|
// src/terms/terms.service.ts
|