@juhuu/sdk-ts 1.0.2 → 1.0.3
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 +198 -1
- package/dist/index.d.ts +198 -1
- package/dist/index.js +169 -2
- package/dist/index.mjs +160 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -7,6 +7,9 @@ type PushToken = {
|
|
7
7
|
platform: Platform;
|
8
8
|
token: string;
|
9
9
|
};
|
10
|
+
type ExtractType<T> = T extends {
|
11
|
+
type: infer U;
|
12
|
+
} ? U : never;
|
10
13
|
interface Offer {
|
11
14
|
tariffId: string;
|
12
15
|
licenseTemplateIdArray: string[];
|
@@ -43,12 +46,46 @@ type OfferTime = {
|
|
43
46
|
}[];
|
44
47
|
};
|
45
48
|
type FuelType = "battery" | "diesel" | "gasoline" | "hydrogen" | "fossil";
|
49
|
+
type Viewport = {
|
50
|
+
longitudeTopLeft: number;
|
51
|
+
latitudeTopLeft: number;
|
52
|
+
longitudeBottomRight: number;
|
53
|
+
latitudeBottomRight: number;
|
54
|
+
};
|
55
|
+
type ViewportPolygon = [
|
56
|
+
[
|
57
|
+
number,
|
58
|
+
number
|
59
|
+
],
|
60
|
+
[
|
61
|
+
number,
|
62
|
+
number
|
63
|
+
],
|
64
|
+
[
|
65
|
+
number,
|
66
|
+
number
|
67
|
+
],
|
68
|
+
[
|
69
|
+
number,
|
70
|
+
number
|
71
|
+
],
|
72
|
+
[
|
73
|
+
number,
|
74
|
+
number
|
75
|
+
]
|
76
|
+
];
|
46
77
|
declare const LanguageCodeArray: readonly ["en", "de", "fr", "nl", "it", "cs", "da", "es", "et", "gsw", "hr", "hu", "no", "pl", "sv"];
|
47
78
|
type LanguageCode = (typeof LanguageCodeArray)[number];
|
48
79
|
declare const CountryCodeArray: readonly ["DE", "AT", "CH", "LI", "IT", "FR", "NL", "BE", "LU", "DK", "SE", "NO", "FI", "IS", "GB", "IE", "ES", "PT", "GR", "PL", "CZ", "SK", "HU", "SI", "HR", "BA", "RS", "US", "CA"];
|
49
80
|
type CountryCode = (typeof CountryCodeArray)[number];
|
50
81
|
declare const CurrencyCodeArray: readonly ["eur", "usd", "gbp", "nok", "sek", "chf", "dkk", "pln", "czk", "huf", "hrk", "bam", "rsd", "isk", "cad"];
|
51
82
|
type CurrencyCode = (typeof CurrencyCodeArray)[number];
|
83
|
+
interface Settings {
|
84
|
+
general: GeneralSettings;
|
85
|
+
payouts: PayoutSettings;
|
86
|
+
sessions: SessionSettings;
|
87
|
+
environment: EnvironmentSettings;
|
88
|
+
}
|
52
89
|
interface ColorScheme {
|
53
90
|
light: Color;
|
54
91
|
dark: Color;
|
@@ -68,10 +105,45 @@ interface Color {
|
|
68
105
|
error: hexColor;
|
69
106
|
warning: hexColor;
|
70
107
|
}
|
108
|
+
interface GeneralSettings {
|
109
|
+
frontendVersion: number;
|
110
|
+
termsVersion: number;
|
111
|
+
globalKill: boolean;
|
112
|
+
maintenance: boolean;
|
113
|
+
maintenanceMessage: string;
|
114
|
+
}
|
115
|
+
interface PayoutSettings {
|
116
|
+
enabled: boolean;
|
117
|
+
}
|
118
|
+
interface SessionSettings {
|
119
|
+
enabled: boolean;
|
120
|
+
autoRenewEnabled: boolean;
|
121
|
+
}
|
122
|
+
interface EnvironmentSettings {
|
123
|
+
isDev: boolean;
|
124
|
+
}
|
71
125
|
type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
|
72
126
|
type PaymentReason = "session";
|
127
|
+
type RefundReason = "requestdByUser";
|
128
|
+
type SessionStatus = "waitingForPayment" | "ready" | "completed";
|
73
129
|
type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
|
130
|
+
type RefundStatus = "inTransitToUser" | "succeeded";
|
131
|
+
type SessionTerminatedByType = "user" | "cloudTask" | "cloudFunction" | "mqttCommand";
|
74
132
|
type ServiceMonth = "jan" | "feb" | "mar" | "apr" | "may" | "jun" | "jul" | "aug" | "sep" | "oct" | "nov" | "dec";
|
133
|
+
type PermissionTypes = "UserManagement" | "PropertyManagement" | "PayoutManagement" | "InvoiceManagement" | "TarifManagement" | "SessionManagement" | "PaymentManagement" | "LocationManagement" | "LinkManagement" | "TermsManagement" | "LicenseManagement";
|
134
|
+
interface CustomClaims {
|
135
|
+
UserManagement: boolean;
|
136
|
+
PropertyManagement: boolean;
|
137
|
+
PayoutManagement: boolean;
|
138
|
+
InvoiceManagement: boolean;
|
139
|
+
TarifManagement: boolean;
|
140
|
+
SessionManagement: boolean;
|
141
|
+
PaymentManagement: boolean;
|
142
|
+
LocationManagement: boolean;
|
143
|
+
LinkManagement: boolean;
|
144
|
+
LicenseManagement: boolean;
|
145
|
+
TermsManagement: boolean;
|
146
|
+
}
|
75
147
|
interface Address {
|
76
148
|
line1: string;
|
77
149
|
line2: string | null;
|
@@ -79,6 +151,10 @@ interface Address {
|
|
79
151
|
country: CountryCode;
|
80
152
|
city: string;
|
81
153
|
}
|
154
|
+
interface LicenseTariffIdMap {
|
155
|
+
tarifId: string;
|
156
|
+
licenseId: string;
|
157
|
+
}
|
82
158
|
interface PostingRow {
|
83
159
|
description: string;
|
84
160
|
quantity: number;
|
@@ -97,19 +173,48 @@ interface Party extends Person {
|
|
97
173
|
iban?: string;
|
98
174
|
bic?: string;
|
99
175
|
}
|
176
|
+
type VeloBrushDeviceDocumentUserManualStep = "prepareBike1" | "prepareBike2" | "chooseCycleType" | "openDoors1" | "extendBikeDrawer1" | "unfoldRamp1" | "placeBike1" | "fixBike1" | "fixBike2" | "retractBikeDrawer1" | "closeDoors1" | "selectWashProgram" | "waitForWashProgram" | "openDoors2" | "extendBikeDrawer2" | "dryBike1" | "dryBike2" | "releaseBike" | "unloadBike" | "retractBikeDrawer2" | "closeDoors2" | "lockDoors" | "error" | "emergencyStop" | "waitingForSession";
|
100
177
|
type PaymentStatus = "waitingForConfirmation" | "waitingForAmountFinalization" | "waitingForCapture" | "waitingForTransitConfirmation" | "inTransitToProvider" | "captured" | "inTransitToProperty" | "payedOut";
|
101
178
|
type PaymentServiceProvider = "stripe";
|
102
179
|
type PayoutStatus = "awaitingApproval" | "inTransitToProperty" | "payedOut";
|
180
|
+
type BusinessType = "individual" | "company" | "non_profit" | "government_entity";
|
103
181
|
declare const ReadonlySectorArray: readonly ["tourism", "mobility", "sport"];
|
104
182
|
type Sector = (typeof ReadonlySectorArray)[number];
|
105
183
|
declare const ReadonlyCategoryArray: readonly ["bike", "car", "scooter", "boat", "moped"];
|
106
184
|
type Category = (typeof ReadonlyCategoryArray)[number];
|
107
185
|
declare const ReadonlyModalityArray: readonly ["charge", "store", "share", "wash", "repair"];
|
108
186
|
type Modality = (typeof ReadonlyModalityArray)[number];
|
187
|
+
type Purpose = {
|
188
|
+
sector: Sector;
|
189
|
+
category: Category;
|
190
|
+
modality: Modality;
|
191
|
+
};
|
192
|
+
declare const ReadonlyIntegrationStateArray: readonly ["full", "partial"];
|
193
|
+
type IntegrationState = (typeof ReadonlyIntegrationStateArray)[number];
|
109
194
|
type GeoPoint = {
|
110
195
|
type: "Point";
|
111
196
|
coordinates: [number, number];
|
112
197
|
};
|
198
|
+
type PlatformUrl = {
|
199
|
+
ios: string;
|
200
|
+
android: string;
|
201
|
+
web: string;
|
202
|
+
};
|
203
|
+
interface MapFilter {
|
204
|
+
integrationStateArray: IntegrationState[];
|
205
|
+
categoryArray: Category[];
|
206
|
+
modalityArray: Modality[];
|
207
|
+
sectorArray: Sector[];
|
208
|
+
}
|
209
|
+
type SessionType = "rent" | "reservation";
|
210
|
+
type DeviceType = "BikeBox" | "VeloCleanPro" | "SlidingDoor" | "BikeRack" | "BikeEnergy" | "BikeLoop" | "VeloBrush" | "SharingBike" | "Trb145BikeBox";
|
211
|
+
type LinkType = "standard" | "group" | "url";
|
212
|
+
type UserType = "management" | "standard";
|
213
|
+
type TarifType = "reservation" | "payNow" | "payLater";
|
214
|
+
type DeepNullable<T> = {
|
215
|
+
[K in keyof T]: DeepNullable<T[K]> | null;
|
216
|
+
};
|
217
|
+
type SessionCannotTerminateReason = "retractBikeDrawer" | "closeDoor";
|
113
218
|
type Circumstance = {
|
114
219
|
type: "wheelchairAccessible";
|
115
220
|
isWheelchairAccessible: boolean;
|
@@ -259,6 +364,98 @@ declare namespace Layout {
|
|
259
364
|
export { };
|
260
365
|
}
|
261
366
|
type LayoutBlock = Layout.Text.Plain | Layout.Text.Heading | Layout.Text.Subtitle | Layout.Image | Layout.Button.Small | Layout.Button.Large | Layout.Form.General;
|
367
|
+
type Node$1 = {
|
368
|
+
id: string;
|
369
|
+
type: "flow.start";
|
370
|
+
trigger: "session.terminate";
|
371
|
+
nodeIdArray: string[];
|
372
|
+
} | {
|
373
|
+
id: string;
|
374
|
+
type: "flow.start";
|
375
|
+
trigger: "command.executed";
|
376
|
+
commandName: string;
|
377
|
+
nodeIdArray: string[];
|
378
|
+
} | {
|
379
|
+
id: string;
|
380
|
+
type: "flow.start";
|
381
|
+
trigger: "button.pressed";
|
382
|
+
buttonName: string;
|
383
|
+
nodeIdArray: string[];
|
384
|
+
} | {
|
385
|
+
id: string;
|
386
|
+
type: "flow.start";
|
387
|
+
trigger: "session.create";
|
388
|
+
nodeIdArray: string[];
|
389
|
+
} | {
|
390
|
+
id: string;
|
391
|
+
type: "flow.start";
|
392
|
+
trigger: "device.startUse";
|
393
|
+
nodeIdArray: string[];
|
394
|
+
} | {
|
395
|
+
id: string;
|
396
|
+
type: "flow.start";
|
397
|
+
trigger: "device.endUse";
|
398
|
+
nodeIdArray: string[];
|
399
|
+
} | {
|
400
|
+
id: string;
|
401
|
+
type: "open.browser";
|
402
|
+
nodeIdArray: string[];
|
403
|
+
url: PlatformUrl;
|
404
|
+
} | {
|
405
|
+
id: string;
|
406
|
+
type: "open.phone";
|
407
|
+
nodeIdArray: string[];
|
408
|
+
phone: string;
|
409
|
+
} | {
|
410
|
+
id: string;
|
411
|
+
type: "device.message";
|
412
|
+
nodeIdArray: string[];
|
413
|
+
message: string;
|
414
|
+
} | {
|
415
|
+
id: string;
|
416
|
+
type: "property.notify";
|
417
|
+
nodeIdArray: string[];
|
418
|
+
subject: string;
|
419
|
+
message: string;
|
420
|
+
} | {
|
421
|
+
id: string;
|
422
|
+
type: "user.notify";
|
423
|
+
nodeIdArray: string[];
|
424
|
+
subject: string;
|
425
|
+
message: string;
|
426
|
+
} | {
|
427
|
+
id: string;
|
428
|
+
type: "parameter.set";
|
429
|
+
nodeIdArray: string[];
|
430
|
+
parameterName: string;
|
431
|
+
value: number | string | boolean;
|
432
|
+
} | {
|
433
|
+
id: string;
|
434
|
+
type: "command.execute";
|
435
|
+
nodeIdArray: string[];
|
436
|
+
commandName: string;
|
437
|
+
} | {
|
438
|
+
id: string;
|
439
|
+
type: "flow.exception";
|
440
|
+
error: LocaleString;
|
441
|
+
} | {
|
442
|
+
id: string;
|
443
|
+
type: "flow.if";
|
444
|
+
condition: Condition;
|
445
|
+
trueNodeIdArray: string[];
|
446
|
+
falseNodeIdArray: string[];
|
447
|
+
} | {
|
448
|
+
id: string;
|
449
|
+
type: "flow.end";
|
450
|
+
};
|
451
|
+
declare enum ConditionType {
|
452
|
+
Equal = "==",
|
453
|
+
NotEqual = "!=",
|
454
|
+
LessThan = "<",
|
455
|
+
GreaterThan = ">",
|
456
|
+
LessThanOrEqual = "<=",
|
457
|
+
GreaterThanOrEqual = ">="
|
458
|
+
}
|
262
459
|
type Utilization = {
|
263
460
|
type: "percentage";
|
264
461
|
percentage: number;
|
@@ -1373,4 +1570,4 @@ declare namespace JUHUU {
|
|
1373
1570
|
}
|
1374
1571
|
}
|
1375
1572
|
|
1376
|
-
export { JUHUU, Juhuu };
|
1573
|
+
export { type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type IntegrationState, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Node$1 as Node, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyIntegrationStateArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type ServiceMonth, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, type Settings, type StarRating, type TarifType, type TimeZone, type Unit, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type hexColor };
|
package/dist/index.d.ts
CHANGED
@@ -7,6 +7,9 @@ type PushToken = {
|
|
7
7
|
platform: Platform;
|
8
8
|
token: string;
|
9
9
|
};
|
10
|
+
type ExtractType<T> = T extends {
|
11
|
+
type: infer U;
|
12
|
+
} ? U : never;
|
10
13
|
interface Offer {
|
11
14
|
tariffId: string;
|
12
15
|
licenseTemplateIdArray: string[];
|
@@ -43,12 +46,46 @@ type OfferTime = {
|
|
43
46
|
}[];
|
44
47
|
};
|
45
48
|
type FuelType = "battery" | "diesel" | "gasoline" | "hydrogen" | "fossil";
|
49
|
+
type Viewport = {
|
50
|
+
longitudeTopLeft: number;
|
51
|
+
latitudeTopLeft: number;
|
52
|
+
longitudeBottomRight: number;
|
53
|
+
latitudeBottomRight: number;
|
54
|
+
};
|
55
|
+
type ViewportPolygon = [
|
56
|
+
[
|
57
|
+
number,
|
58
|
+
number
|
59
|
+
],
|
60
|
+
[
|
61
|
+
number,
|
62
|
+
number
|
63
|
+
],
|
64
|
+
[
|
65
|
+
number,
|
66
|
+
number
|
67
|
+
],
|
68
|
+
[
|
69
|
+
number,
|
70
|
+
number
|
71
|
+
],
|
72
|
+
[
|
73
|
+
number,
|
74
|
+
number
|
75
|
+
]
|
76
|
+
];
|
46
77
|
declare const LanguageCodeArray: readonly ["en", "de", "fr", "nl", "it", "cs", "da", "es", "et", "gsw", "hr", "hu", "no", "pl", "sv"];
|
47
78
|
type LanguageCode = (typeof LanguageCodeArray)[number];
|
48
79
|
declare const CountryCodeArray: readonly ["DE", "AT", "CH", "LI", "IT", "FR", "NL", "BE", "LU", "DK", "SE", "NO", "FI", "IS", "GB", "IE", "ES", "PT", "GR", "PL", "CZ", "SK", "HU", "SI", "HR", "BA", "RS", "US", "CA"];
|
49
80
|
type CountryCode = (typeof CountryCodeArray)[number];
|
50
81
|
declare const CurrencyCodeArray: readonly ["eur", "usd", "gbp", "nok", "sek", "chf", "dkk", "pln", "czk", "huf", "hrk", "bam", "rsd", "isk", "cad"];
|
51
82
|
type CurrencyCode = (typeof CurrencyCodeArray)[number];
|
83
|
+
interface Settings {
|
84
|
+
general: GeneralSettings;
|
85
|
+
payouts: PayoutSettings;
|
86
|
+
sessions: SessionSettings;
|
87
|
+
environment: EnvironmentSettings;
|
88
|
+
}
|
52
89
|
interface ColorScheme {
|
53
90
|
light: Color;
|
54
91
|
dark: Color;
|
@@ -68,10 +105,45 @@ interface Color {
|
|
68
105
|
error: hexColor;
|
69
106
|
warning: hexColor;
|
70
107
|
}
|
108
|
+
interface GeneralSettings {
|
109
|
+
frontendVersion: number;
|
110
|
+
termsVersion: number;
|
111
|
+
globalKill: boolean;
|
112
|
+
maintenance: boolean;
|
113
|
+
maintenanceMessage: string;
|
114
|
+
}
|
115
|
+
interface PayoutSettings {
|
116
|
+
enabled: boolean;
|
117
|
+
}
|
118
|
+
interface SessionSettings {
|
119
|
+
enabled: boolean;
|
120
|
+
autoRenewEnabled: boolean;
|
121
|
+
}
|
122
|
+
interface EnvironmentSettings {
|
123
|
+
isDev: boolean;
|
124
|
+
}
|
71
125
|
type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
|
72
126
|
type PaymentReason = "session";
|
127
|
+
type RefundReason = "requestdByUser";
|
128
|
+
type SessionStatus = "waitingForPayment" | "ready" | "completed";
|
73
129
|
type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
|
130
|
+
type RefundStatus = "inTransitToUser" | "succeeded";
|
131
|
+
type SessionTerminatedByType = "user" | "cloudTask" | "cloudFunction" | "mqttCommand";
|
74
132
|
type ServiceMonth = "jan" | "feb" | "mar" | "apr" | "may" | "jun" | "jul" | "aug" | "sep" | "oct" | "nov" | "dec";
|
133
|
+
type PermissionTypes = "UserManagement" | "PropertyManagement" | "PayoutManagement" | "InvoiceManagement" | "TarifManagement" | "SessionManagement" | "PaymentManagement" | "LocationManagement" | "LinkManagement" | "TermsManagement" | "LicenseManagement";
|
134
|
+
interface CustomClaims {
|
135
|
+
UserManagement: boolean;
|
136
|
+
PropertyManagement: boolean;
|
137
|
+
PayoutManagement: boolean;
|
138
|
+
InvoiceManagement: boolean;
|
139
|
+
TarifManagement: boolean;
|
140
|
+
SessionManagement: boolean;
|
141
|
+
PaymentManagement: boolean;
|
142
|
+
LocationManagement: boolean;
|
143
|
+
LinkManagement: boolean;
|
144
|
+
LicenseManagement: boolean;
|
145
|
+
TermsManagement: boolean;
|
146
|
+
}
|
75
147
|
interface Address {
|
76
148
|
line1: string;
|
77
149
|
line2: string | null;
|
@@ -79,6 +151,10 @@ interface Address {
|
|
79
151
|
country: CountryCode;
|
80
152
|
city: string;
|
81
153
|
}
|
154
|
+
interface LicenseTariffIdMap {
|
155
|
+
tarifId: string;
|
156
|
+
licenseId: string;
|
157
|
+
}
|
82
158
|
interface PostingRow {
|
83
159
|
description: string;
|
84
160
|
quantity: number;
|
@@ -97,19 +173,48 @@ interface Party extends Person {
|
|
97
173
|
iban?: string;
|
98
174
|
bic?: string;
|
99
175
|
}
|
176
|
+
type VeloBrushDeviceDocumentUserManualStep = "prepareBike1" | "prepareBike2" | "chooseCycleType" | "openDoors1" | "extendBikeDrawer1" | "unfoldRamp1" | "placeBike1" | "fixBike1" | "fixBike2" | "retractBikeDrawer1" | "closeDoors1" | "selectWashProgram" | "waitForWashProgram" | "openDoors2" | "extendBikeDrawer2" | "dryBike1" | "dryBike2" | "releaseBike" | "unloadBike" | "retractBikeDrawer2" | "closeDoors2" | "lockDoors" | "error" | "emergencyStop" | "waitingForSession";
|
100
177
|
type PaymentStatus = "waitingForConfirmation" | "waitingForAmountFinalization" | "waitingForCapture" | "waitingForTransitConfirmation" | "inTransitToProvider" | "captured" | "inTransitToProperty" | "payedOut";
|
101
178
|
type PaymentServiceProvider = "stripe";
|
102
179
|
type PayoutStatus = "awaitingApproval" | "inTransitToProperty" | "payedOut";
|
180
|
+
type BusinessType = "individual" | "company" | "non_profit" | "government_entity";
|
103
181
|
declare const ReadonlySectorArray: readonly ["tourism", "mobility", "sport"];
|
104
182
|
type Sector = (typeof ReadonlySectorArray)[number];
|
105
183
|
declare const ReadonlyCategoryArray: readonly ["bike", "car", "scooter", "boat", "moped"];
|
106
184
|
type Category = (typeof ReadonlyCategoryArray)[number];
|
107
185
|
declare const ReadonlyModalityArray: readonly ["charge", "store", "share", "wash", "repair"];
|
108
186
|
type Modality = (typeof ReadonlyModalityArray)[number];
|
187
|
+
type Purpose = {
|
188
|
+
sector: Sector;
|
189
|
+
category: Category;
|
190
|
+
modality: Modality;
|
191
|
+
};
|
192
|
+
declare const ReadonlyIntegrationStateArray: readonly ["full", "partial"];
|
193
|
+
type IntegrationState = (typeof ReadonlyIntegrationStateArray)[number];
|
109
194
|
type GeoPoint = {
|
110
195
|
type: "Point";
|
111
196
|
coordinates: [number, number];
|
112
197
|
};
|
198
|
+
type PlatformUrl = {
|
199
|
+
ios: string;
|
200
|
+
android: string;
|
201
|
+
web: string;
|
202
|
+
};
|
203
|
+
interface MapFilter {
|
204
|
+
integrationStateArray: IntegrationState[];
|
205
|
+
categoryArray: Category[];
|
206
|
+
modalityArray: Modality[];
|
207
|
+
sectorArray: Sector[];
|
208
|
+
}
|
209
|
+
type SessionType = "rent" | "reservation";
|
210
|
+
type DeviceType = "BikeBox" | "VeloCleanPro" | "SlidingDoor" | "BikeRack" | "BikeEnergy" | "BikeLoop" | "VeloBrush" | "SharingBike" | "Trb145BikeBox";
|
211
|
+
type LinkType = "standard" | "group" | "url";
|
212
|
+
type UserType = "management" | "standard";
|
213
|
+
type TarifType = "reservation" | "payNow" | "payLater";
|
214
|
+
type DeepNullable<T> = {
|
215
|
+
[K in keyof T]: DeepNullable<T[K]> | null;
|
216
|
+
};
|
217
|
+
type SessionCannotTerminateReason = "retractBikeDrawer" | "closeDoor";
|
113
218
|
type Circumstance = {
|
114
219
|
type: "wheelchairAccessible";
|
115
220
|
isWheelchairAccessible: boolean;
|
@@ -259,6 +364,98 @@ declare namespace Layout {
|
|
259
364
|
export { };
|
260
365
|
}
|
261
366
|
type LayoutBlock = Layout.Text.Plain | Layout.Text.Heading | Layout.Text.Subtitle | Layout.Image | Layout.Button.Small | Layout.Button.Large | Layout.Form.General;
|
367
|
+
type Node$1 = {
|
368
|
+
id: string;
|
369
|
+
type: "flow.start";
|
370
|
+
trigger: "session.terminate";
|
371
|
+
nodeIdArray: string[];
|
372
|
+
} | {
|
373
|
+
id: string;
|
374
|
+
type: "flow.start";
|
375
|
+
trigger: "command.executed";
|
376
|
+
commandName: string;
|
377
|
+
nodeIdArray: string[];
|
378
|
+
} | {
|
379
|
+
id: string;
|
380
|
+
type: "flow.start";
|
381
|
+
trigger: "button.pressed";
|
382
|
+
buttonName: string;
|
383
|
+
nodeIdArray: string[];
|
384
|
+
} | {
|
385
|
+
id: string;
|
386
|
+
type: "flow.start";
|
387
|
+
trigger: "session.create";
|
388
|
+
nodeIdArray: string[];
|
389
|
+
} | {
|
390
|
+
id: string;
|
391
|
+
type: "flow.start";
|
392
|
+
trigger: "device.startUse";
|
393
|
+
nodeIdArray: string[];
|
394
|
+
} | {
|
395
|
+
id: string;
|
396
|
+
type: "flow.start";
|
397
|
+
trigger: "device.endUse";
|
398
|
+
nodeIdArray: string[];
|
399
|
+
} | {
|
400
|
+
id: string;
|
401
|
+
type: "open.browser";
|
402
|
+
nodeIdArray: string[];
|
403
|
+
url: PlatformUrl;
|
404
|
+
} | {
|
405
|
+
id: string;
|
406
|
+
type: "open.phone";
|
407
|
+
nodeIdArray: string[];
|
408
|
+
phone: string;
|
409
|
+
} | {
|
410
|
+
id: string;
|
411
|
+
type: "device.message";
|
412
|
+
nodeIdArray: string[];
|
413
|
+
message: string;
|
414
|
+
} | {
|
415
|
+
id: string;
|
416
|
+
type: "property.notify";
|
417
|
+
nodeIdArray: string[];
|
418
|
+
subject: string;
|
419
|
+
message: string;
|
420
|
+
} | {
|
421
|
+
id: string;
|
422
|
+
type: "user.notify";
|
423
|
+
nodeIdArray: string[];
|
424
|
+
subject: string;
|
425
|
+
message: string;
|
426
|
+
} | {
|
427
|
+
id: string;
|
428
|
+
type: "parameter.set";
|
429
|
+
nodeIdArray: string[];
|
430
|
+
parameterName: string;
|
431
|
+
value: number | string | boolean;
|
432
|
+
} | {
|
433
|
+
id: string;
|
434
|
+
type: "command.execute";
|
435
|
+
nodeIdArray: string[];
|
436
|
+
commandName: string;
|
437
|
+
} | {
|
438
|
+
id: string;
|
439
|
+
type: "flow.exception";
|
440
|
+
error: LocaleString;
|
441
|
+
} | {
|
442
|
+
id: string;
|
443
|
+
type: "flow.if";
|
444
|
+
condition: Condition;
|
445
|
+
trueNodeIdArray: string[];
|
446
|
+
falseNodeIdArray: string[];
|
447
|
+
} | {
|
448
|
+
id: string;
|
449
|
+
type: "flow.end";
|
450
|
+
};
|
451
|
+
declare enum ConditionType {
|
452
|
+
Equal = "==",
|
453
|
+
NotEqual = "!=",
|
454
|
+
LessThan = "<",
|
455
|
+
GreaterThan = ">",
|
456
|
+
LessThanOrEqual = "<=",
|
457
|
+
GreaterThanOrEqual = ">="
|
458
|
+
}
|
262
459
|
type Utilization = {
|
263
460
|
type: "percentage";
|
264
461
|
percentage: number;
|
@@ -1373,4 +1570,4 @@ declare namespace JUHUU {
|
|
1373
1570
|
}
|
1374
1571
|
}
|
1375
1572
|
|
1376
|
-
export { JUHUU, Juhuu };
|
1573
|
+
export { type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type FuelType, type GeneralSettings, type GeoPoint, type IntegrationState, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Node$1 as Node, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyIntegrationStateArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type ServiceMonth, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, type Settings, type StarRating, type TarifType, type TimeZone, type Unit, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type hexColor };
|
package/dist/index.js
CHANGED
@@ -30,8 +30,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
30
30
|
// src/index.ts
|
31
31
|
var src_exports = {};
|
32
32
|
__export(src_exports, {
|
33
|
+
ConditionType: () => ConditionType,
|
34
|
+
CountryCodeArray: () => CountryCodeArray,
|
35
|
+
CurrencyCodeArray: () => CurrencyCodeArray,
|
33
36
|
JUHUU: () => JUHUU,
|
34
|
-
Juhuu: () => Juhuu
|
37
|
+
Juhuu: () => Juhuu,
|
38
|
+
LanguageCodeArray: () => LanguageCodeArray,
|
39
|
+
ReadonlyCategoryArray: () => ReadonlyCategoryArray,
|
40
|
+
ReadonlyIntegrationStateArray: () => ReadonlyIntegrationStateArray,
|
41
|
+
ReadonlyModalityArray: () => ReadonlyModalityArray,
|
42
|
+
ReadonlySectorArray: () => ReadonlySectorArray
|
35
43
|
});
|
36
44
|
module.exports = __toCommonJS(src_exports);
|
37
45
|
|
@@ -1042,6 +1050,157 @@ var ProductService = class extends Service {
|
|
1042
1050
|
}
|
1043
1051
|
};
|
1044
1052
|
|
1053
|
+
// src/types/types.ts
|
1054
|
+
var LanguageCodeArray = [
|
1055
|
+
"en",
|
1056
|
+
// english
|
1057
|
+
"de",
|
1058
|
+
// german
|
1059
|
+
"fr",
|
1060
|
+
// french
|
1061
|
+
"nl",
|
1062
|
+
// dutch
|
1063
|
+
"it",
|
1064
|
+
// italian
|
1065
|
+
"cs",
|
1066
|
+
// czech
|
1067
|
+
"da",
|
1068
|
+
// danish
|
1069
|
+
"es",
|
1070
|
+
// spanish
|
1071
|
+
"et",
|
1072
|
+
// estonian
|
1073
|
+
"gsw",
|
1074
|
+
// swiss german
|
1075
|
+
"hr",
|
1076
|
+
// croatian
|
1077
|
+
"hu",
|
1078
|
+
// hungarian
|
1079
|
+
"no",
|
1080
|
+
// norwegian
|
1081
|
+
"pl",
|
1082
|
+
// polish
|
1083
|
+
"sv"
|
1084
|
+
// swedish
|
1085
|
+
];
|
1086
|
+
var CountryCodeArray = [
|
1087
|
+
"DE",
|
1088
|
+
// germany
|
1089
|
+
"AT",
|
1090
|
+
// austria
|
1091
|
+
"CH",
|
1092
|
+
// switzerland
|
1093
|
+
"LI",
|
1094
|
+
// liechtenstein
|
1095
|
+
"IT",
|
1096
|
+
// italy
|
1097
|
+
"FR",
|
1098
|
+
// france
|
1099
|
+
"NL",
|
1100
|
+
// netherlands
|
1101
|
+
"BE",
|
1102
|
+
// belgium
|
1103
|
+
"LU",
|
1104
|
+
// luxembourg
|
1105
|
+
"DK",
|
1106
|
+
// denmark
|
1107
|
+
"SE",
|
1108
|
+
// sweden
|
1109
|
+
"NO",
|
1110
|
+
// norway
|
1111
|
+
"FI",
|
1112
|
+
// finland
|
1113
|
+
"IS",
|
1114
|
+
// iceland
|
1115
|
+
"GB",
|
1116
|
+
// great britain
|
1117
|
+
"IE",
|
1118
|
+
// ireland
|
1119
|
+
"ES",
|
1120
|
+
// spain
|
1121
|
+
"PT",
|
1122
|
+
// portugal
|
1123
|
+
"GR",
|
1124
|
+
// greece
|
1125
|
+
"PL",
|
1126
|
+
// poland
|
1127
|
+
"CZ",
|
1128
|
+
// czech republic
|
1129
|
+
"SK",
|
1130
|
+
// slovakia
|
1131
|
+
"HU",
|
1132
|
+
// hungary
|
1133
|
+
"SI",
|
1134
|
+
// slovenia
|
1135
|
+
"HR",
|
1136
|
+
// croatia
|
1137
|
+
"BA",
|
1138
|
+
// bosnia and herzegovina
|
1139
|
+
"RS",
|
1140
|
+
// serbia
|
1141
|
+
"US",
|
1142
|
+
// united states
|
1143
|
+
"CA"
|
1144
|
+
// canada
|
1145
|
+
];
|
1146
|
+
var CurrencyCodeArray = [
|
1147
|
+
"eur",
|
1148
|
+
// euro
|
1149
|
+
"usd",
|
1150
|
+
// united states
|
1151
|
+
"gbp",
|
1152
|
+
// great britain
|
1153
|
+
"nok",
|
1154
|
+
// norway
|
1155
|
+
"sek",
|
1156
|
+
// sweden
|
1157
|
+
"chf",
|
1158
|
+
// switzerland
|
1159
|
+
"dkk",
|
1160
|
+
// denmark
|
1161
|
+
"pln",
|
1162
|
+
// poland
|
1163
|
+
"czk",
|
1164
|
+
// czech republic
|
1165
|
+
"huf",
|
1166
|
+
// hungary
|
1167
|
+
"hrk",
|
1168
|
+
// croatia
|
1169
|
+
"bam",
|
1170
|
+
// bosnia and herzegovina
|
1171
|
+
"rsd",
|
1172
|
+
// serbia
|
1173
|
+
"isk",
|
1174
|
+
// iceland
|
1175
|
+
"cad"
|
1176
|
+
// canada
|
1177
|
+
];
|
1178
|
+
var ReadonlySectorArray = ["tourism", "mobility", "sport"];
|
1179
|
+
var ReadonlyCategoryArray = [
|
1180
|
+
"bike",
|
1181
|
+
"car",
|
1182
|
+
"scooter",
|
1183
|
+
"boat",
|
1184
|
+
"moped"
|
1185
|
+
];
|
1186
|
+
var ReadonlyModalityArray = [
|
1187
|
+
"charge",
|
1188
|
+
"store",
|
1189
|
+
"share",
|
1190
|
+
"wash",
|
1191
|
+
"repair"
|
1192
|
+
];
|
1193
|
+
var ReadonlyIntegrationStateArray = ["full", "partial"];
|
1194
|
+
var ConditionType = /* @__PURE__ */ ((ConditionType2) => {
|
1195
|
+
ConditionType2["Equal"] = "==";
|
1196
|
+
ConditionType2["NotEqual"] = "!=";
|
1197
|
+
ConditionType2["LessThan"] = "<";
|
1198
|
+
ConditionType2["GreaterThan"] = ">";
|
1199
|
+
ConditionType2["LessThanOrEqual"] = "<=";
|
1200
|
+
ConditionType2["GreaterThanOrEqual"] = ">=";
|
1201
|
+
return ConditionType2;
|
1202
|
+
})(ConditionType || {});
|
1203
|
+
|
1045
1204
|
// src/index.ts
|
1046
1205
|
var Juhuu = class {
|
1047
1206
|
constructor(config) {
|
@@ -1089,6 +1248,14 @@ var JUHUU;
|
|
1089
1248
|
})(JUHUU || (JUHUU = {}));
|
1090
1249
|
// Annotate the CommonJS export names for ESM import in node:
|
1091
1250
|
0 && (module.exports = {
|
1251
|
+
ConditionType,
|
1252
|
+
CountryCodeArray,
|
1253
|
+
CurrencyCodeArray,
|
1092
1254
|
JUHUU,
|
1093
|
-
Juhuu
|
1255
|
+
Juhuu,
|
1256
|
+
LanguageCodeArray,
|
1257
|
+
ReadonlyCategoryArray,
|
1258
|
+
ReadonlyIntegrationStateArray,
|
1259
|
+
ReadonlyModalityArray,
|
1260
|
+
ReadonlySectorArray
|
1094
1261
|
});
|
package/dist/index.mjs
CHANGED
@@ -1005,6 +1005,157 @@ var ProductService = class extends Service {
|
|
1005
1005
|
}
|
1006
1006
|
};
|
1007
1007
|
|
1008
|
+
// src/types/types.ts
|
1009
|
+
var LanguageCodeArray = [
|
1010
|
+
"en",
|
1011
|
+
// english
|
1012
|
+
"de",
|
1013
|
+
// german
|
1014
|
+
"fr",
|
1015
|
+
// french
|
1016
|
+
"nl",
|
1017
|
+
// dutch
|
1018
|
+
"it",
|
1019
|
+
// italian
|
1020
|
+
"cs",
|
1021
|
+
// czech
|
1022
|
+
"da",
|
1023
|
+
// danish
|
1024
|
+
"es",
|
1025
|
+
// spanish
|
1026
|
+
"et",
|
1027
|
+
// estonian
|
1028
|
+
"gsw",
|
1029
|
+
// swiss german
|
1030
|
+
"hr",
|
1031
|
+
// croatian
|
1032
|
+
"hu",
|
1033
|
+
// hungarian
|
1034
|
+
"no",
|
1035
|
+
// norwegian
|
1036
|
+
"pl",
|
1037
|
+
// polish
|
1038
|
+
"sv"
|
1039
|
+
// swedish
|
1040
|
+
];
|
1041
|
+
var CountryCodeArray = [
|
1042
|
+
"DE",
|
1043
|
+
// germany
|
1044
|
+
"AT",
|
1045
|
+
// austria
|
1046
|
+
"CH",
|
1047
|
+
// switzerland
|
1048
|
+
"LI",
|
1049
|
+
// liechtenstein
|
1050
|
+
"IT",
|
1051
|
+
// italy
|
1052
|
+
"FR",
|
1053
|
+
// france
|
1054
|
+
"NL",
|
1055
|
+
// netherlands
|
1056
|
+
"BE",
|
1057
|
+
// belgium
|
1058
|
+
"LU",
|
1059
|
+
// luxembourg
|
1060
|
+
"DK",
|
1061
|
+
// denmark
|
1062
|
+
"SE",
|
1063
|
+
// sweden
|
1064
|
+
"NO",
|
1065
|
+
// norway
|
1066
|
+
"FI",
|
1067
|
+
// finland
|
1068
|
+
"IS",
|
1069
|
+
// iceland
|
1070
|
+
"GB",
|
1071
|
+
// great britain
|
1072
|
+
"IE",
|
1073
|
+
// ireland
|
1074
|
+
"ES",
|
1075
|
+
// spain
|
1076
|
+
"PT",
|
1077
|
+
// portugal
|
1078
|
+
"GR",
|
1079
|
+
// greece
|
1080
|
+
"PL",
|
1081
|
+
// poland
|
1082
|
+
"CZ",
|
1083
|
+
// czech republic
|
1084
|
+
"SK",
|
1085
|
+
// slovakia
|
1086
|
+
"HU",
|
1087
|
+
// hungary
|
1088
|
+
"SI",
|
1089
|
+
// slovenia
|
1090
|
+
"HR",
|
1091
|
+
// croatia
|
1092
|
+
"BA",
|
1093
|
+
// bosnia and herzegovina
|
1094
|
+
"RS",
|
1095
|
+
// serbia
|
1096
|
+
"US",
|
1097
|
+
// united states
|
1098
|
+
"CA"
|
1099
|
+
// canada
|
1100
|
+
];
|
1101
|
+
var CurrencyCodeArray = [
|
1102
|
+
"eur",
|
1103
|
+
// euro
|
1104
|
+
"usd",
|
1105
|
+
// united states
|
1106
|
+
"gbp",
|
1107
|
+
// great britain
|
1108
|
+
"nok",
|
1109
|
+
// norway
|
1110
|
+
"sek",
|
1111
|
+
// sweden
|
1112
|
+
"chf",
|
1113
|
+
// switzerland
|
1114
|
+
"dkk",
|
1115
|
+
// denmark
|
1116
|
+
"pln",
|
1117
|
+
// poland
|
1118
|
+
"czk",
|
1119
|
+
// czech republic
|
1120
|
+
"huf",
|
1121
|
+
// hungary
|
1122
|
+
"hrk",
|
1123
|
+
// croatia
|
1124
|
+
"bam",
|
1125
|
+
// bosnia and herzegovina
|
1126
|
+
"rsd",
|
1127
|
+
// serbia
|
1128
|
+
"isk",
|
1129
|
+
// iceland
|
1130
|
+
"cad"
|
1131
|
+
// canada
|
1132
|
+
];
|
1133
|
+
var ReadonlySectorArray = ["tourism", "mobility", "sport"];
|
1134
|
+
var ReadonlyCategoryArray = [
|
1135
|
+
"bike",
|
1136
|
+
"car",
|
1137
|
+
"scooter",
|
1138
|
+
"boat",
|
1139
|
+
"moped"
|
1140
|
+
];
|
1141
|
+
var ReadonlyModalityArray = [
|
1142
|
+
"charge",
|
1143
|
+
"store",
|
1144
|
+
"share",
|
1145
|
+
"wash",
|
1146
|
+
"repair"
|
1147
|
+
];
|
1148
|
+
var ReadonlyIntegrationStateArray = ["full", "partial"];
|
1149
|
+
var ConditionType = /* @__PURE__ */ ((ConditionType2) => {
|
1150
|
+
ConditionType2["Equal"] = "==";
|
1151
|
+
ConditionType2["NotEqual"] = "!=";
|
1152
|
+
ConditionType2["LessThan"] = "<";
|
1153
|
+
ConditionType2["GreaterThan"] = ">";
|
1154
|
+
ConditionType2["LessThanOrEqual"] = "<=";
|
1155
|
+
ConditionType2["GreaterThanOrEqual"] = ">=";
|
1156
|
+
return ConditionType2;
|
1157
|
+
})(ConditionType || {});
|
1158
|
+
|
1008
1159
|
// src/index.ts
|
1009
1160
|
var Juhuu = class {
|
1010
1161
|
constructor(config) {
|
@@ -1051,6 +1202,14 @@ var JUHUU;
|
|
1051
1202
|
})(Technology = JUHUU2.Technology || (JUHUU2.Technology = {}));
|
1052
1203
|
})(JUHUU || (JUHUU = {}));
|
1053
1204
|
export {
|
1205
|
+
ConditionType,
|
1206
|
+
CountryCodeArray,
|
1207
|
+
CurrencyCodeArray,
|
1054
1208
|
JUHUU,
|
1055
|
-
Juhuu
|
1209
|
+
Juhuu,
|
1210
|
+
LanguageCodeArray,
|
1211
|
+
ReadonlyCategoryArray,
|
1212
|
+
ReadonlyIntegrationStateArray,
|
1213
|
+
ReadonlyModalityArray,
|
1214
|
+
ReadonlySectorArray
|
1056
1215
|
};
|