@juhuu/sdk-ts 1.2.11 → 1.2.13
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 +48 -4
- package/dist/index.d.ts +48 -4
- package/dist/index.js +52 -6
- package/dist/index.mjs +52 -6
- 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 {
|
@@ -639,9 +640,7 @@ declare class TariffsService extends Service {
|
|
639
640
|
create(): Promise<void>;
|
640
641
|
retrieve(TariffRetrieveParams: JUHUU.Tariff.Retrieve.Params, TariffRetrieveOptions?: JUHUU.Tariff.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Retrieve.Response>>;
|
641
642
|
list(TariffListParams: JUHUU.Tariff.List.Params, TariffListOptions?: JUHUU.Tariff.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.List.Response>>;
|
642
|
-
update(): Promise<
|
643
|
-
delete(): Promise<void>;
|
644
|
-
terminate(): Promise<void>;
|
643
|
+
update(TariffUpdateParams: JUHUU.Tariff.Update.Params, TariffUpdateOptions?: JUHUU.Tariff.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Update.Response>>;
|
645
644
|
/**
|
646
645
|
* Checks if the tariff is free
|
647
646
|
*/
|
@@ -1158,6 +1157,26 @@ declare namespace JUHUU {
|
|
1158
1157
|
type Options = JUHUU.RequestOptions;
|
1159
1158
|
type Response = JUHUU.Tariff.Object[];
|
1160
1159
|
}
|
1160
|
+
namespace Update {
|
1161
|
+
type Params = {
|
1162
|
+
tariffId: string;
|
1163
|
+
reminderEnabled?: boolean;
|
1164
|
+
reminderPercentage?: number;
|
1165
|
+
currencyCode?: CurrencyCode;
|
1166
|
+
amount?: number[];
|
1167
|
+
continue?: number;
|
1168
|
+
interval?: number;
|
1169
|
+
duration?: number;
|
1170
|
+
autoRenewMode?: AutoRenewMode;
|
1171
|
+
roundToMidnight?: boolean;
|
1172
|
+
autoRenewManualEnabled?: boolean;
|
1173
|
+
manualTerminationEnabled?: boolean;
|
1174
|
+
};
|
1175
|
+
type Options = JUHUU.RequestOptions;
|
1176
|
+
type Response = {
|
1177
|
+
property: JUHUU.Property.Object;
|
1178
|
+
};
|
1179
|
+
}
|
1161
1180
|
}
|
1162
1181
|
namespace Survey {
|
1163
1182
|
type Object = {
|
@@ -1507,12 +1526,37 @@ declare namespace JUHUU {
|
|
1507
1526
|
}
|
1508
1527
|
export namespace List {
|
1509
1528
|
type Params = {
|
1510
|
-
rentableDeviceGroupLocationId?: string;
|
1529
|
+
rentableDeviceGroupLocationId?: string | null;
|
1511
1530
|
propertyId?: string;
|
1512
1531
|
};
|
1513
1532
|
type Options = JUHUU.RequestOptions;
|
1514
1533
|
type Response = JUHUU.Location.Object[];
|
1515
1534
|
}
|
1535
|
+
export namespace Update {
|
1536
|
+
type Params = {
|
1537
|
+
locationId: string;
|
1538
|
+
name?: string;
|
1539
|
+
address?: Partial<Address>;
|
1540
|
+
deviceIdArray?: string[];
|
1541
|
+
deviceId?: string;
|
1542
|
+
maximumConcurrentSessions?: number;
|
1543
|
+
surveyEnabled?: boolean;
|
1544
|
+
accountingAreaId?: string;
|
1545
|
+
logoLight?: string | null;
|
1546
|
+
logoDark?: string | null;
|
1547
|
+
location?: GeoPoint;
|
1548
|
+
purposeArray?: Purpose[];
|
1549
|
+
circumstanceArray?: Circumstance[];
|
1550
|
+
rentOfferArray?: Offer[];
|
1551
|
+
reservationOfferArray?: Offer[];
|
1552
|
+
iconLight?: string | null;
|
1553
|
+
iconDark?: string | null;
|
1554
|
+
};
|
1555
|
+
type Options = JUHUU.RequestOptions;
|
1556
|
+
type Response = {
|
1557
|
+
property: JUHUU.Property.Object;
|
1558
|
+
};
|
1559
|
+
}
|
1516
1560
|
export { };
|
1517
1561
|
}
|
1518
1562
|
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 {
|
@@ -639,9 +640,7 @@ declare class TariffsService extends Service {
|
|
639
640
|
create(): Promise<void>;
|
640
641
|
retrieve(TariffRetrieveParams: JUHUU.Tariff.Retrieve.Params, TariffRetrieveOptions?: JUHUU.Tariff.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Retrieve.Response>>;
|
641
642
|
list(TariffListParams: JUHUU.Tariff.List.Params, TariffListOptions?: JUHUU.Tariff.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.List.Response>>;
|
642
|
-
update(): Promise<
|
643
|
-
delete(): Promise<void>;
|
644
|
-
terminate(): Promise<void>;
|
643
|
+
update(TariffUpdateParams: JUHUU.Tariff.Update.Params, TariffUpdateOptions?: JUHUU.Tariff.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Update.Response>>;
|
645
644
|
/**
|
646
645
|
* Checks if the tariff is free
|
647
646
|
*/
|
@@ -1158,6 +1157,26 @@ declare namespace JUHUU {
|
|
1158
1157
|
type Options = JUHUU.RequestOptions;
|
1159
1158
|
type Response = JUHUU.Tariff.Object[];
|
1160
1159
|
}
|
1160
|
+
namespace Update {
|
1161
|
+
type Params = {
|
1162
|
+
tariffId: string;
|
1163
|
+
reminderEnabled?: boolean;
|
1164
|
+
reminderPercentage?: number;
|
1165
|
+
currencyCode?: CurrencyCode;
|
1166
|
+
amount?: number[];
|
1167
|
+
continue?: number;
|
1168
|
+
interval?: number;
|
1169
|
+
duration?: number;
|
1170
|
+
autoRenewMode?: AutoRenewMode;
|
1171
|
+
roundToMidnight?: boolean;
|
1172
|
+
autoRenewManualEnabled?: boolean;
|
1173
|
+
manualTerminationEnabled?: boolean;
|
1174
|
+
};
|
1175
|
+
type Options = JUHUU.RequestOptions;
|
1176
|
+
type Response = {
|
1177
|
+
property: JUHUU.Property.Object;
|
1178
|
+
};
|
1179
|
+
}
|
1161
1180
|
}
|
1162
1181
|
namespace Survey {
|
1163
1182
|
type Object = {
|
@@ -1507,12 +1526,37 @@ declare namespace JUHUU {
|
|
1507
1526
|
}
|
1508
1527
|
export namespace List {
|
1509
1528
|
type Params = {
|
1510
|
-
rentableDeviceGroupLocationId?: string;
|
1529
|
+
rentableDeviceGroupLocationId?: string | null;
|
1511
1530
|
propertyId?: string;
|
1512
1531
|
};
|
1513
1532
|
type Options = JUHUU.RequestOptions;
|
1514
1533
|
type Response = JUHUU.Location.Object[];
|
1515
1534
|
}
|
1535
|
+
export namespace Update {
|
1536
|
+
type Params = {
|
1537
|
+
locationId: string;
|
1538
|
+
name?: string;
|
1539
|
+
address?: Partial<Address>;
|
1540
|
+
deviceIdArray?: string[];
|
1541
|
+
deviceId?: string;
|
1542
|
+
maximumConcurrentSessions?: number;
|
1543
|
+
surveyEnabled?: boolean;
|
1544
|
+
accountingAreaId?: string;
|
1545
|
+
logoLight?: string | null;
|
1546
|
+
logoDark?: string | null;
|
1547
|
+
location?: GeoPoint;
|
1548
|
+
purposeArray?: Purpose[];
|
1549
|
+
circumstanceArray?: Circumstance[];
|
1550
|
+
rentOfferArray?: Offer[];
|
1551
|
+
reservationOfferArray?: Offer[];
|
1552
|
+
iconLight?: string | null;
|
1553
|
+
iconDark?: string | null;
|
1554
|
+
};
|
1555
|
+
type Options = JUHUU.RequestOptions;
|
1556
|
+
type Response = {
|
1557
|
+
property: JUHUU.Property.Object;
|
1558
|
+
};
|
1559
|
+
}
|
1516
1560
|
export { };
|
1517
1561
|
}
|
1518
1562
|
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,34 @@ var LocationsService = class extends Service {
|
|
971
972
|
LocationListOptions
|
972
973
|
);
|
973
974
|
}
|
975
|
+
async update(LocationUpdateParams, LocationUpdateOptions) {
|
976
|
+
return await super.sendRequest(
|
977
|
+
{
|
978
|
+
method: "PATCH",
|
979
|
+
url: "locations/" + LocationUpdateParams.locationId,
|
980
|
+
body: {
|
981
|
+
name: LocationUpdateParams.name,
|
982
|
+
address: LocationUpdateParams.address,
|
983
|
+
deviceIdArray: LocationUpdateParams.deviceIdArray,
|
984
|
+
deviceId: LocationUpdateParams.deviceId,
|
985
|
+
maximumConcurrentSessions: LocationUpdateParams.maximumConcurrentSessions,
|
986
|
+
surveyEnabled: LocationUpdateParams.surveyEnabled,
|
987
|
+
accountingAreaId: LocationUpdateParams.accountingAreaId,
|
988
|
+
logoLight: LocationUpdateParams.logoLight,
|
989
|
+
logoDark: LocationUpdateParams.logoDark,
|
990
|
+
location: LocationUpdateParams.location,
|
991
|
+
purposeArray: LocationUpdateParams.purposeArray,
|
992
|
+
circumstanceArray: LocationUpdateParams.circumstanceArray,
|
993
|
+
rentOfferArray: LocationUpdateParams.rentOfferArray,
|
994
|
+
reservationOfferArray: LocationUpdateParams.reservationOfferArray,
|
995
|
+
iconLight: LocationUpdateParams.iconLight,
|
996
|
+
iconDark: LocationUpdateParams.iconDark
|
997
|
+
},
|
998
|
+
useAuthentication: true
|
999
|
+
},
|
1000
|
+
LocationUpdateOptions
|
1001
|
+
);
|
1002
|
+
}
|
974
1003
|
};
|
975
1004
|
|
976
1005
|
// src/terms/terms.service.ts
|
@@ -1060,11 +1089,28 @@ var TariffsService = class extends Service {
|
|
1060
1089
|
TariffListOptions
|
1061
1090
|
);
|
1062
1091
|
}
|
1063
|
-
async update() {
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1092
|
+
async update(TariffUpdateParams, TariffUpdateOptions) {
|
1093
|
+
return await super.sendRequest(
|
1094
|
+
{
|
1095
|
+
method: "PATCH",
|
1096
|
+
url: "tariffs/" + TariffUpdateParams.tariffId,
|
1097
|
+
body: {
|
1098
|
+
reminderEnabled: TariffUpdateParams.reminderEnabled,
|
1099
|
+
reminderPercentage: TariffUpdateParams.reminderPercentage,
|
1100
|
+
currencyCode: TariffUpdateParams.currencyCode,
|
1101
|
+
amount: TariffUpdateParams.amount,
|
1102
|
+
continue: TariffUpdateParams.continue,
|
1103
|
+
interval: TariffUpdateParams.interval,
|
1104
|
+
duration: TariffUpdateParams.duration,
|
1105
|
+
autoRenewMode: TariffUpdateParams.autoRenewMode,
|
1106
|
+
roundToMidnight: TariffUpdateParams.roundToMidnight,
|
1107
|
+
autoRenewManualEnabled: TariffUpdateParams.autoRenewManualEnabled,
|
1108
|
+
manualTerminationEnabled: TariffUpdateParams.manualTerminationEnabled
|
1109
|
+
},
|
1110
|
+
useAuthentication: true
|
1111
|
+
},
|
1112
|
+
TariffUpdateOptions
|
1113
|
+
);
|
1068
1114
|
}
|
1069
1115
|
/**
|
1070
1116
|
* Checks if the tariff is free
|
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,34 @@ var LocationsService = class extends Service {
|
|
926
927
|
LocationListOptions
|
927
928
|
);
|
928
929
|
}
|
930
|
+
async update(LocationUpdateParams, LocationUpdateOptions) {
|
931
|
+
return await super.sendRequest(
|
932
|
+
{
|
933
|
+
method: "PATCH",
|
934
|
+
url: "locations/" + LocationUpdateParams.locationId,
|
935
|
+
body: {
|
936
|
+
name: LocationUpdateParams.name,
|
937
|
+
address: LocationUpdateParams.address,
|
938
|
+
deviceIdArray: LocationUpdateParams.deviceIdArray,
|
939
|
+
deviceId: LocationUpdateParams.deviceId,
|
940
|
+
maximumConcurrentSessions: LocationUpdateParams.maximumConcurrentSessions,
|
941
|
+
surveyEnabled: LocationUpdateParams.surveyEnabled,
|
942
|
+
accountingAreaId: LocationUpdateParams.accountingAreaId,
|
943
|
+
logoLight: LocationUpdateParams.logoLight,
|
944
|
+
logoDark: LocationUpdateParams.logoDark,
|
945
|
+
location: LocationUpdateParams.location,
|
946
|
+
purposeArray: LocationUpdateParams.purposeArray,
|
947
|
+
circumstanceArray: LocationUpdateParams.circumstanceArray,
|
948
|
+
rentOfferArray: LocationUpdateParams.rentOfferArray,
|
949
|
+
reservationOfferArray: LocationUpdateParams.reservationOfferArray,
|
950
|
+
iconLight: LocationUpdateParams.iconLight,
|
951
|
+
iconDark: LocationUpdateParams.iconDark
|
952
|
+
},
|
953
|
+
useAuthentication: true
|
954
|
+
},
|
955
|
+
LocationUpdateOptions
|
956
|
+
);
|
957
|
+
}
|
929
958
|
};
|
930
959
|
|
931
960
|
// src/terms/terms.service.ts
|
@@ -1015,11 +1044,28 @@ var TariffsService = class extends Service {
|
|
1015
1044
|
TariffListOptions
|
1016
1045
|
);
|
1017
1046
|
}
|
1018
|
-
async update() {
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1047
|
+
async update(TariffUpdateParams, TariffUpdateOptions) {
|
1048
|
+
return await super.sendRequest(
|
1049
|
+
{
|
1050
|
+
method: "PATCH",
|
1051
|
+
url: "tariffs/" + TariffUpdateParams.tariffId,
|
1052
|
+
body: {
|
1053
|
+
reminderEnabled: TariffUpdateParams.reminderEnabled,
|
1054
|
+
reminderPercentage: TariffUpdateParams.reminderPercentage,
|
1055
|
+
currencyCode: TariffUpdateParams.currencyCode,
|
1056
|
+
amount: TariffUpdateParams.amount,
|
1057
|
+
continue: TariffUpdateParams.continue,
|
1058
|
+
interval: TariffUpdateParams.interval,
|
1059
|
+
duration: TariffUpdateParams.duration,
|
1060
|
+
autoRenewMode: TariffUpdateParams.autoRenewMode,
|
1061
|
+
roundToMidnight: TariffUpdateParams.roundToMidnight,
|
1062
|
+
autoRenewManualEnabled: TariffUpdateParams.autoRenewManualEnabled,
|
1063
|
+
manualTerminationEnabled: TariffUpdateParams.manualTerminationEnabled
|
1064
|
+
},
|
1065
|
+
useAuthentication: true
|
1066
|
+
},
|
1067
|
+
TariffUpdateOptions
|
1068
|
+
);
|
1023
1069
|
}
|
1024
1070
|
/**
|
1025
1071
|
* Checks if the tariff is free
|