@juhuu/sdk-ts 1.2.243 → 1.2.244
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 +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +15 -3
- package/dist/index.mjs +15 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
|
2
2
|
|
|
3
|
-
type Environment = "development" | "production";
|
|
3
|
+
type Environment = "development" | "production" | "staging";
|
|
4
4
|
type ProximityStrategy = {
|
|
5
5
|
type: "qr";
|
|
6
|
-
|
|
6
|
+
flowId: string | null;
|
|
7
7
|
} | {
|
|
8
8
|
type: "link";
|
|
9
9
|
linkId: string | null;
|
|
@@ -174,7 +174,6 @@ interface SessionSettings {
|
|
|
174
174
|
autoRenewEnabled: boolean;
|
|
175
175
|
}
|
|
176
176
|
interface EnvironmentSettings {
|
|
177
|
-
isDev: boolean;
|
|
178
177
|
}
|
|
179
178
|
type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
|
|
180
179
|
type PaymentReason = "session";
|
|
@@ -3403,9 +3402,9 @@ declare namespace JUHUU {
|
|
|
3403
3402
|
disabledBy: "propertyAdmin" | "deviceNodeArray" | null;
|
|
3404
3403
|
visible: boolean;
|
|
3405
3404
|
incidentTemplateIdArray: string[];
|
|
3405
|
+
deviceProximityStrategyArray: ProximityStrategy[];
|
|
3406
3406
|
adminQuickActionArray: QuickAction[];
|
|
3407
3407
|
userQuickActionArray: QuickAction[];
|
|
3408
|
-
deviceProximityStrategyArray: ProximityStrategy[];
|
|
3409
3408
|
adminQuickViewArray: QuickView[];
|
|
3410
3409
|
};
|
|
3411
3410
|
export interface RentableDeviceGroup extends Base {
|
|
@@ -3482,9 +3481,13 @@ declare namespace JUHUU {
|
|
|
3482
3481
|
circumstanceArray?: Circumstance[];
|
|
3483
3482
|
rentOfferArray?: Offer[];
|
|
3484
3483
|
reservationOfferArray?: Offer[];
|
|
3484
|
+
adminQuickActionArray?: QuickAction[];
|
|
3485
|
+
userQuickActionArray?: QuickAction[];
|
|
3486
|
+
adminQuickViewArray?: QuickView[];
|
|
3485
3487
|
disabled?: boolean;
|
|
3486
3488
|
rentableDeviceGroupLocationId?: string | null;
|
|
3487
3489
|
termId?: string | null;
|
|
3490
|
+
visible?: boolean;
|
|
3488
3491
|
};
|
|
3489
3492
|
type Options = JUHUU.RequestOptions;
|
|
3490
3493
|
type Response = {
|
|
@@ -3733,7 +3736,12 @@ declare namespace JUHUU {
|
|
|
3733
3736
|
longitude?: number | null;
|
|
3734
3737
|
connectorId?: string | null;
|
|
3735
3738
|
connectorParameter?: string | null;
|
|
3739
|
+
adminQuickViewArray?: QuickView[];
|
|
3736
3740
|
disabled?: boolean;
|
|
3741
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
3742
|
+
simIdArray?: string[];
|
|
3743
|
+
permissionArray?: DevicePermission[];
|
|
3744
|
+
parameterIdArray?: string[];
|
|
3737
3745
|
};
|
|
3738
3746
|
type Options = JUHUU.RequestOptions;
|
|
3739
3747
|
type Response = {
|
|
@@ -4246,6 +4254,7 @@ declare namespace JUHUU {
|
|
|
4246
4254
|
createdAt: Date;
|
|
4247
4255
|
reference: string | null;
|
|
4248
4256
|
parameterId: string;
|
|
4257
|
+
isOutlier: boolean;
|
|
4249
4258
|
shapAnomalyArray: Array<{
|
|
4250
4259
|
parameterAnomalyGroupId: string;
|
|
4251
4260
|
shapScore: number | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
|
2
2
|
|
|
3
|
-
type Environment = "development" | "production";
|
|
3
|
+
type Environment = "development" | "production" | "staging";
|
|
4
4
|
type ProximityStrategy = {
|
|
5
5
|
type: "qr";
|
|
6
|
-
|
|
6
|
+
flowId: string | null;
|
|
7
7
|
} | {
|
|
8
8
|
type: "link";
|
|
9
9
|
linkId: string | null;
|
|
@@ -174,7 +174,6 @@ interface SessionSettings {
|
|
|
174
174
|
autoRenewEnabled: boolean;
|
|
175
175
|
}
|
|
176
176
|
interface EnvironmentSettings {
|
|
177
|
-
isDev: boolean;
|
|
178
177
|
}
|
|
179
178
|
type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
|
|
180
179
|
type PaymentReason = "session";
|
|
@@ -3403,9 +3402,9 @@ declare namespace JUHUU {
|
|
|
3403
3402
|
disabledBy: "propertyAdmin" | "deviceNodeArray" | null;
|
|
3404
3403
|
visible: boolean;
|
|
3405
3404
|
incidentTemplateIdArray: string[];
|
|
3405
|
+
deviceProximityStrategyArray: ProximityStrategy[];
|
|
3406
3406
|
adminQuickActionArray: QuickAction[];
|
|
3407
3407
|
userQuickActionArray: QuickAction[];
|
|
3408
|
-
deviceProximityStrategyArray: ProximityStrategy[];
|
|
3409
3408
|
adminQuickViewArray: QuickView[];
|
|
3410
3409
|
};
|
|
3411
3410
|
export interface RentableDeviceGroup extends Base {
|
|
@@ -3482,9 +3481,13 @@ declare namespace JUHUU {
|
|
|
3482
3481
|
circumstanceArray?: Circumstance[];
|
|
3483
3482
|
rentOfferArray?: Offer[];
|
|
3484
3483
|
reservationOfferArray?: Offer[];
|
|
3484
|
+
adminQuickActionArray?: QuickAction[];
|
|
3485
|
+
userQuickActionArray?: QuickAction[];
|
|
3486
|
+
adminQuickViewArray?: QuickView[];
|
|
3485
3487
|
disabled?: boolean;
|
|
3486
3488
|
rentableDeviceGroupLocationId?: string | null;
|
|
3487
3489
|
termId?: string | null;
|
|
3490
|
+
visible?: boolean;
|
|
3488
3491
|
};
|
|
3489
3492
|
type Options = JUHUU.RequestOptions;
|
|
3490
3493
|
type Response = {
|
|
@@ -3733,7 +3736,12 @@ declare namespace JUHUU {
|
|
|
3733
3736
|
longitude?: number | null;
|
|
3734
3737
|
connectorId?: string | null;
|
|
3735
3738
|
connectorParameter?: string | null;
|
|
3739
|
+
adminQuickViewArray?: QuickView[];
|
|
3736
3740
|
disabled?: boolean;
|
|
3741
|
+
proximityStrategyArray?: ProximityStrategy[];
|
|
3742
|
+
simIdArray?: string[];
|
|
3743
|
+
permissionArray?: DevicePermission[];
|
|
3744
|
+
parameterIdArray?: string[];
|
|
3737
3745
|
};
|
|
3738
3746
|
type Options = JUHUU.RequestOptions;
|
|
3739
3747
|
type Response = {
|
|
@@ -4246,6 +4254,7 @@ declare namespace JUHUU {
|
|
|
4246
4254
|
createdAt: Date;
|
|
4247
4255
|
reference: string | null;
|
|
4248
4256
|
parameterId: string;
|
|
4257
|
+
isOutlier: boolean;
|
|
4249
4258
|
shapAnomalyArray: Array<{
|
|
4250
4259
|
parameterAnomalyGroupId: string;
|
|
4251
4260
|
shapScore: number | null;
|
package/dist/index.js
CHANGED
|
@@ -58,14 +58,21 @@ var Service = class {
|
|
|
58
58
|
this.defaultRequestOptions = config.defaultRequestOptions ?? {};
|
|
59
59
|
this.authenticationMode = config.authenticationMode ?? "jwt";
|
|
60
60
|
switch (config.environment) {
|
|
61
|
-
case "development":
|
|
61
|
+
case "development": {
|
|
62
62
|
this.httpBaseUrl = "https://api.juhuu.dev/v1/";
|
|
63
63
|
this.wssBaseUrl = "wss://api.juhuu.dev/v1/";
|
|
64
64
|
break;
|
|
65
|
-
|
|
65
|
+
}
|
|
66
|
+
case "staging": {
|
|
67
|
+
this.httpBaseUrl = "https://api.juhuu.review/v1/";
|
|
68
|
+
this.wssBaseUrl = "wss://api.juhuu.review/v1/";
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
default: {
|
|
66
72
|
this.httpBaseUrl = "https://api.juhuu.app/v1/";
|
|
67
73
|
this.wssBaseUrl = "wss://api.juhuu.app/v1/";
|
|
68
74
|
break;
|
|
75
|
+
}
|
|
69
76
|
}
|
|
70
77
|
}
|
|
71
78
|
environment;
|
|
@@ -1270,6 +1277,7 @@ var DevicesService = class extends Service {
|
|
|
1270
1277
|
longitude: DeviceUpdateParams.longitude,
|
|
1271
1278
|
connectorId: DeviceUpdateParams.connectorId,
|
|
1272
1279
|
connectorParameter: DeviceUpdateParams.connectorParameter,
|
|
1280
|
+
adminQuickViewArray: DeviceUpdateParams.adminQuickViewArray,
|
|
1273
1281
|
disabled: DeviceUpdateParams.disabled
|
|
1274
1282
|
},
|
|
1275
1283
|
authenticationNotOptional: true
|
|
@@ -1456,9 +1464,13 @@ var LocationsService = class extends Service {
|
|
|
1456
1464
|
circumstanceArray: LocationUpdateParams.circumstanceArray,
|
|
1457
1465
|
rentOfferArray: LocationUpdateParams.rentOfferArray,
|
|
1458
1466
|
reservationOfferArray: LocationUpdateParams.reservationOfferArray,
|
|
1467
|
+
adminQuickActionArray: LocationUpdateParams.adminQuickActionArray,
|
|
1468
|
+
userQuickActionArray: LocationUpdateParams.userQuickActionArray,
|
|
1469
|
+
adminQuickViewArray: LocationUpdateParams.adminQuickViewArray,
|
|
1459
1470
|
latitude: LocationUpdateParams.latitude,
|
|
1460
1471
|
longitude: LocationUpdateParams.longitude,
|
|
1461
|
-
disabled: LocationUpdateParams.disabled
|
|
1472
|
+
disabled: LocationUpdateParams.disabled,
|
|
1473
|
+
visible: LocationUpdateParams.visible
|
|
1462
1474
|
},
|
|
1463
1475
|
authenticationNotOptional: true
|
|
1464
1476
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -14,14 +14,21 @@ var Service = class {
|
|
|
14
14
|
this.defaultRequestOptions = config.defaultRequestOptions ?? {};
|
|
15
15
|
this.authenticationMode = config.authenticationMode ?? "jwt";
|
|
16
16
|
switch (config.environment) {
|
|
17
|
-
case "development":
|
|
17
|
+
case "development": {
|
|
18
18
|
this.httpBaseUrl = "https://api.juhuu.dev/v1/";
|
|
19
19
|
this.wssBaseUrl = "wss://api.juhuu.dev/v1/";
|
|
20
20
|
break;
|
|
21
|
-
|
|
21
|
+
}
|
|
22
|
+
case "staging": {
|
|
23
|
+
this.httpBaseUrl = "https://api.juhuu.review/v1/";
|
|
24
|
+
this.wssBaseUrl = "wss://api.juhuu.review/v1/";
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
default: {
|
|
22
28
|
this.httpBaseUrl = "https://api.juhuu.app/v1/";
|
|
23
29
|
this.wssBaseUrl = "wss://api.juhuu.app/v1/";
|
|
24
30
|
break;
|
|
31
|
+
}
|
|
25
32
|
}
|
|
26
33
|
}
|
|
27
34
|
environment;
|
|
@@ -1226,6 +1233,7 @@ var DevicesService = class extends Service {
|
|
|
1226
1233
|
longitude: DeviceUpdateParams.longitude,
|
|
1227
1234
|
connectorId: DeviceUpdateParams.connectorId,
|
|
1228
1235
|
connectorParameter: DeviceUpdateParams.connectorParameter,
|
|
1236
|
+
adminQuickViewArray: DeviceUpdateParams.adminQuickViewArray,
|
|
1229
1237
|
disabled: DeviceUpdateParams.disabled
|
|
1230
1238
|
},
|
|
1231
1239
|
authenticationNotOptional: true
|
|
@@ -1412,9 +1420,13 @@ var LocationsService = class extends Service {
|
|
|
1412
1420
|
circumstanceArray: LocationUpdateParams.circumstanceArray,
|
|
1413
1421
|
rentOfferArray: LocationUpdateParams.rentOfferArray,
|
|
1414
1422
|
reservationOfferArray: LocationUpdateParams.reservationOfferArray,
|
|
1423
|
+
adminQuickActionArray: LocationUpdateParams.adminQuickActionArray,
|
|
1424
|
+
userQuickActionArray: LocationUpdateParams.userQuickActionArray,
|
|
1425
|
+
adminQuickViewArray: LocationUpdateParams.adminQuickViewArray,
|
|
1415
1426
|
latitude: LocationUpdateParams.latitude,
|
|
1416
1427
|
longitude: LocationUpdateParams.longitude,
|
|
1417
|
-
disabled: LocationUpdateParams.disabled
|
|
1428
|
+
disabled: LocationUpdateParams.disabled,
|
|
1429
|
+
visible: LocationUpdateParams.visible
|
|
1418
1430
|
},
|
|
1419
1431
|
authenticationNotOptional: true
|
|
1420
1432
|
},
|