@juhuu/sdk-ts 1.0.0 → 1.0.2
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 +338 -272
- package/dist/index.d.ts +338 -272
- package/dist/index.js +75 -3
- package/dist/index.mjs +70 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
2
2
|
|
3
|
+
type Environment = "development" | "production";
|
4
|
+
type Platform = "ios" | "android" | "windows" | "macos" | "web";
|
5
|
+
type DeviceStatus = "running" | "sleeping" | "shutdown";
|
6
|
+
type PushToken = {
|
7
|
+
platform: Platform;
|
8
|
+
token: string;
|
9
|
+
};
|
10
|
+
interface Offer {
|
11
|
+
tariffId: string;
|
12
|
+
licenseTemplateIdArray: string[];
|
13
|
+
offerTime: OfferTime;
|
14
|
+
}
|
3
15
|
type OfferTime = {
|
4
16
|
mon: {
|
5
17
|
startMinutes: number;
|
@@ -30,19 +42,6 @@ type OfferTime = {
|
|
30
42
|
endMinutes: number;
|
31
43
|
}[];
|
32
44
|
};
|
33
|
-
type OfferDto = {
|
34
|
-
tariffId: string;
|
35
|
-
licenseId: string;
|
36
|
-
offerTime: OfferTime;
|
37
|
-
};
|
38
|
-
|
39
|
-
type Environment$1 = "development" | "production";
|
40
|
-
type Platform = "ios" | "android" | "windows" | "macos" | "web";
|
41
|
-
type DeviceStatus = "running" | "sleeping" | "shutdown";
|
42
|
-
type PushToken = {
|
43
|
-
platform: Platform;
|
44
|
-
token: string;
|
45
|
-
};
|
46
45
|
type FuelType = "battery" | "diesel" | "gasoline" | "hydrogen" | "fossil";
|
47
46
|
declare const LanguageCodeArray: readonly ["en", "de", "fr", "nl", "it", "cs", "da", "es", "et", "gsw", "hr", "hu", "no", "pl", "sv"];
|
48
47
|
type LanguageCode = (typeof LanguageCodeArray)[number];
|
@@ -107,18 +106,10 @@ declare const ReadonlyCategoryArray: readonly ["bike", "car", "scooter", "boat",
|
|
107
106
|
type Category = (typeof ReadonlyCategoryArray)[number];
|
108
107
|
declare const ReadonlyModalityArray: readonly ["charge", "store", "share", "wash", "repair"];
|
109
108
|
type Modality = (typeof ReadonlyModalityArray)[number];
|
110
|
-
type Purpose = {
|
111
|
-
sector: Sector;
|
112
|
-
category: Category;
|
113
|
-
modality: Modality;
|
114
|
-
};
|
115
109
|
type GeoPoint = {
|
116
110
|
type: "Point";
|
117
111
|
coordinates: [number, number];
|
118
112
|
};
|
119
|
-
type DeepNullable<T> = {
|
120
|
-
[K in keyof T]: DeepNullable<T[K]> | null;
|
121
|
-
};
|
122
113
|
type Circumstance = {
|
123
114
|
type: "wheelchairAccessible";
|
124
115
|
isWheelchairAccessible: boolean;
|
@@ -307,11 +298,189 @@ interface LocaleString {
|
|
307
298
|
fr: string;
|
308
299
|
}
|
309
300
|
|
310
|
-
declare
|
301
|
+
declare class Service {
|
302
|
+
constructor(config: JUHUU.SetupConfig);
|
303
|
+
readonly environment: Environment;
|
304
|
+
readonly httpBaseUrl: string;
|
305
|
+
readonly wssBaseUrl: string;
|
306
|
+
readonly clientVersion: string;
|
307
|
+
onException: <T>(response: JUHUU.HttpResponse<T>) => Promise<"abort" | "retry">;
|
308
|
+
getAccessToken: () => Promise<string | null> | null;
|
309
|
+
setAccessToken: (accessToken: string) => Promise<void>;
|
310
|
+
getRefreshToken: () => Promise<string | null>;
|
311
|
+
setRefreshToken: (refreshToken: string) => Promise<void>;
|
312
|
+
sendRequest<T>({ url, method, body, useAuthentication, }: {
|
313
|
+
method: "GET";
|
314
|
+
url: string;
|
315
|
+
body: undefined;
|
316
|
+
useAuthentication: boolean;
|
317
|
+
} | {
|
318
|
+
method: "POST";
|
319
|
+
url: string;
|
320
|
+
body: any;
|
321
|
+
useAuthentication: boolean;
|
322
|
+
} | {
|
323
|
+
method: "PATCH";
|
324
|
+
url: string;
|
325
|
+
body: any;
|
326
|
+
useAuthentication: boolean;
|
327
|
+
}, options?: JUHUU.RequestOptions): Promise<JUHUU.HttpResponse<T>>;
|
328
|
+
private sendGetRequest;
|
329
|
+
private sendPostRequest;
|
330
|
+
private sendPatchRequest;
|
331
|
+
connectToWebsocket<T>({ url }: {
|
332
|
+
url: string;
|
333
|
+
}): Socket;
|
334
|
+
disconnectFromWebsocket(socket: Socket): void;
|
335
|
+
}
|
336
|
+
|
337
|
+
declare class SessionService extends Service {
|
338
|
+
constructor(config: JUHUU.SetupConfig);
|
339
|
+
create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
|
340
|
+
retrieve(SessionRetrieveParams: JUHUU.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU.Session.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Retrieve.Response>>;
|
341
|
+
list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
|
342
|
+
update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
|
343
|
+
terminate(SessionTerminateParams: JUHUU.Session.Terminate.Params, SessionTerminateOptions?: JUHUU.Session.Terminate.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Terminate.Response>>;
|
344
|
+
attachLocation(SessionTerminateParams: JUHUU.Session.AttachLocation.Params, SessionTerminateOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
|
345
|
+
}
|
346
|
+
|
347
|
+
declare class LinkService extends Service {
|
348
|
+
constructor(config: JUHUU.SetupConfig);
|
349
|
+
create(): Promise<void>;
|
350
|
+
retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
|
351
|
+
list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
|
352
|
+
update(): Promise<void>;
|
353
|
+
delete(): Promise<void>;
|
354
|
+
terminate(): Promise<void>;
|
355
|
+
}
|
356
|
+
|
357
|
+
declare class UsersService extends Service {
|
358
|
+
constructor(config: JUHUU.SetupConfig);
|
359
|
+
create(): Promise<void>;
|
360
|
+
retrieve(UserRetrieveParams: JUHUU.User.Retrieve.Params, UserRetrieveOptions?: JUHUU.User.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Retrieve.Response>>;
|
361
|
+
exists(UserExistsParams: JUHUU.User.Exists.Params, UserExistsOptions?: JUHUU.User.Exists.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Exists.Response>>;
|
362
|
+
registerEmailPassword(UserRegisterEmailPasswordParams: JUHUU.User.RegisterEmailPassword.Params, UserRegisterEmailPasswordOptions?: JUHUU.User.RegisterEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RegisterEmailPassword.Response>>;
|
363
|
+
loginEmailPassword(UserLoginEmailPasswordParams: JUHUU.User.LoginEmailPassword.Params, UserLoginEmailPasswordOptions?: JUHUU.User.LoginEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.LoginEmailPassword.Response>>;
|
364
|
+
paymentMethodTokens(UserPaymentMethodTokensParams: JUHUU.User.PaymentMethodTokens.Params, UserPaymentMethodTokensOptions?: JUHUU.User.PaymentMethodTokens.Options): Promise<JUHUU.HttpResponse<JUHUU.User.PaymentMethodTokens.Response>>;
|
365
|
+
refreshAccessToken(UserRefreshAccessTokenParams: JUHUU.User.RefreshAccessToken.Params, UserRefreshAccessTokenOptions?: JUHUU.User.RefreshAccessToken.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RefreshAccessToken.Response>>;
|
366
|
+
list(UserListParams: JUHUU.User.List.Params, UserListOptions?: JUHUU.User.List.Options): Promise<JUHUU.HttpResponse<JUHUU.User.List.Response>>;
|
367
|
+
update(UserUpdateParams: JUHUU.User.Update.Params, UserUpdateOptions?: JUHUU.User.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Update.Response>>;
|
368
|
+
inviteEmployee(UserInviteEmployeeParams: JUHUU.User.InviteEmployee.Params, UserInviteEmployeeOptions?: JUHUU.User.InviteEmployee.Options): Promise<JUHUU.HttpResponse<JUHUU.User.InviteEmployee.Response>>;
|
369
|
+
removeEmployee(UserRemoveEmployeeParams: JUHUU.User.RemoveEmployee.Params, UserRemoveEmployeeOptions?: JUHUU.User.RemoveEmployee.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveEmployee.Response>>;
|
370
|
+
}
|
371
|
+
|
372
|
+
declare class PaymentsService extends Service {
|
373
|
+
constructor(config: JUHUU.SetupConfig);
|
374
|
+
create(): Promise<void>;
|
375
|
+
retrieve(PaymentRetrieveParams: JUHUU.Payment.Retrieve.Params, PaymentRetrieveOptions?: JUHUU.Payment.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Retrieve.Response>>;
|
376
|
+
tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
|
377
|
+
update(): Promise<void>;
|
378
|
+
delete(): Promise<void>;
|
379
|
+
retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.RetrieveInvoiceUrl.Response>>;
|
380
|
+
}
|
381
|
+
|
382
|
+
declare class PropertiesService extends Service {
|
383
|
+
constructor(config: JUHUU.SetupConfig);
|
384
|
+
create(): Promise<void>;
|
385
|
+
retrieve(PropertyRetrieveParams: JUHUU.Property.Retrieve.Params, PropertyRetrieveOptions?: JUHUU.Property.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Retrieve.Response>>;
|
386
|
+
list(PropertyListParams: JUHUU.Property.List.Params, PropertyListOptions?: JUHUU.Property.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.List.Response>>;
|
387
|
+
update(): Promise<void>;
|
388
|
+
delete(): Promise<void>;
|
389
|
+
terminate(): Promise<void>;
|
390
|
+
}
|
391
|
+
|
392
|
+
declare class PointsService extends Service {
|
393
|
+
constructor(config: JUHUU.SetupConfig);
|
394
|
+
map(PointListParams: JUHUU.Point.Map.Params, PointListOptions?: JUHUU.Point.Map.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.Map.Response>>;
|
395
|
+
private toRadians;
|
396
|
+
calculateDistance(lat1: number, lon1: number, lat2: number, lon2: number): number;
|
397
|
+
calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
|
398
|
+
}
|
399
|
+
|
400
|
+
declare class DevicesService extends Service {
|
401
|
+
constructor(config: JUHUU.SetupConfig);
|
402
|
+
create(): Promise<void>;
|
403
|
+
retrieve(DeviceRetrieveParams: JUHUU.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU.Device.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Retrieve.Response>>;
|
404
|
+
list(DeviceListParams: JUHUU.Device.List.Params, DeviceListOptions?: JUHUU.Device.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.List.Response>>;
|
405
|
+
update(): Promise<void>;
|
406
|
+
delete(): Promise<void>;
|
407
|
+
listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
|
408
|
+
message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
|
409
|
+
parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
|
410
|
+
commandExecute(DeviceCommandExecuteParams: JUHUU.Device.CommandExecute.Params, DeviceCommandExecuteOptions?: JUHUU.Device.CommandExecute.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.CommandExecute.Response>>;
|
411
|
+
}
|
412
|
+
|
413
|
+
declare class DeviceTemplatesService extends Service {
|
414
|
+
constructor(config: JUHUU.SetupConfig);
|
415
|
+
create(): Promise<void>;
|
416
|
+
retrieve(DeviceTemplateRetrieveParams: JUHUU.DeviceTemplate.Retrieve.Params, DeviceTemplateRetrieveOptions?: JUHUU.DeviceTemplate.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.DeviceTemplate.Retrieve.Response>>;
|
417
|
+
update(): Promise<void>;
|
418
|
+
delete(): Promise<void>;
|
419
|
+
terminate(): Promise<void>;
|
420
|
+
}
|
421
|
+
|
422
|
+
declare class LocationsService extends Service {
|
423
|
+
constructor(config: JUHUU.SetupConfig);
|
424
|
+
retrieve(LocationRetrieveParams: JUHUU.Location.Retrieve.Params, LocationRetrieveOptions?: JUHUU.Location.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.Retrieve.Response>>;
|
425
|
+
list(LocationListParams: JUHUU.Location.List.Params, LocationListOptions?: JUHUU.Location.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.List.Response>>;
|
426
|
+
}
|
427
|
+
|
428
|
+
declare class TermsService extends Service {
|
429
|
+
constructor(config: JUHUU.SetupConfig);
|
430
|
+
retrieve(TermRetrieveParams: JUHUU.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU.Term.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Retrieve.Response>>;
|
431
|
+
accept(TermAcceptParams: JUHUU.Term.Accept.Params, TermAcceptOptions?: JUHUU.Term.Accept.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Accept.Response>>;
|
432
|
+
}
|
433
|
+
|
434
|
+
declare class TariffsService extends Service {
|
435
|
+
constructor(config: JUHUU.SetupConfig);
|
436
|
+
create(): Promise<void>;
|
437
|
+
update(): Promise<void>;
|
438
|
+
delete(): Promise<void>;
|
439
|
+
terminate(): Promise<void>;
|
440
|
+
/**
|
441
|
+
* Checks if the tariff is free
|
442
|
+
*/
|
443
|
+
isFree(tariff: JUHUU.Tariff.Object): boolean;
|
444
|
+
/**
|
445
|
+
* Returns the amount of seconds the tariff needs to be active before the amount will not change anymore
|
446
|
+
*/
|
447
|
+
getAmountFinalizationDuration(tariff: JUHUU.Tariff.Object): number;
|
448
|
+
/**
|
449
|
+
* Calculates the amount for a give rent time in seconds
|
450
|
+
*/
|
451
|
+
calculateAmount(tariff: JUHUU.Tariff.Object, rentTimeSeconds: number): number;
|
452
|
+
calculateMaximumAmount(tariff: JUHUU.Tariff.Object): number;
|
453
|
+
}
|
454
|
+
|
455
|
+
declare class ProductService extends Service {
|
456
|
+
constructor(config: JUHUU.SetupConfig);
|
457
|
+
list(ProductListParams: JUHUU.Product.List.Params, ProductListOptions?: JUHUU.Product.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.List.Response>>;
|
458
|
+
retrieve(params: JUHUU.Product.Retrieve.Params, options?: JUHUU.Product.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Product.Retrieve.Response>>;
|
459
|
+
}
|
460
|
+
|
461
|
+
declare class Juhuu {
|
462
|
+
constructor(config: JUHUU.SetupConfig);
|
463
|
+
/**
|
464
|
+
* Top Level Resources
|
465
|
+
*/
|
466
|
+
readonly sessions: SessionService;
|
467
|
+
readonly links: LinkService;
|
468
|
+
readonly users: UsersService;
|
469
|
+
readonly payments: PaymentsService;
|
470
|
+
readonly properties: PropertiesService;
|
471
|
+
readonly points: PointsService;
|
472
|
+
readonly devices: DevicesService;
|
473
|
+
readonly deviceTemplates: DeviceTemplatesService;
|
474
|
+
readonly locations: LocationsService;
|
475
|
+
readonly terms: TermsService;
|
476
|
+
readonly tariffs: TariffsService;
|
477
|
+
readonly products: ProductService;
|
478
|
+
}
|
479
|
+
declare namespace JUHUU {
|
311
480
|
interface SetupConfig {
|
312
481
|
environment: Environment;
|
313
482
|
getAccessToken: () => Promise<string | null>;
|
314
|
-
onException: <T>(response: JUHUU
|
483
|
+
onException: <T>(response: JUHUU.HttpResponse<T>) => Promise<"abort">;
|
315
484
|
setAccessToken: (accessToken: string) => Promise<void>;
|
316
485
|
getRefreshToken: () => Promise<string | null>;
|
317
486
|
setRefreshToken: (refreshToken: string) => Promise<void>;
|
@@ -336,7 +505,22 @@ declare namespace JUHUU$1 {
|
|
336
505
|
* If this is true, a new accessToken will be requested if the current one is expired.
|
337
506
|
*/
|
338
507
|
refreshTokensIfNecessary?: boolean;
|
508
|
+
expand?: Array<"property" | "tariffArray">;
|
509
|
+
};
|
510
|
+
type LocaleString = {
|
511
|
+
[locale: string]: string;
|
339
512
|
};
|
513
|
+
type DeepNullable<T> = {
|
514
|
+
[P in keyof T]?: DeepNullable<T[P]> | null;
|
515
|
+
};
|
516
|
+
enum Purpose {
|
517
|
+
Purpose1 = "Purpose 1",
|
518
|
+
Purpose2 = "Purpose 2"
|
519
|
+
}
|
520
|
+
enum Technology {
|
521
|
+
Tech1 = "Technology 1",
|
522
|
+
Tech2 = "Technology 2"
|
523
|
+
}
|
340
524
|
namespace Session {
|
341
525
|
type Base = {
|
342
526
|
id: string;
|
@@ -358,7 +542,7 @@ declare namespace JUHUU$1 {
|
|
358
542
|
manualTerminationEnabled: boolean;
|
359
543
|
version: number;
|
360
544
|
isOffSession: boolean;
|
361
|
-
tariff: JUHUU
|
545
|
+
tariff: JUHUU.Tariff.Object;
|
362
546
|
previousAutoRenewSessionId: string | null;
|
363
547
|
autoRenew: boolean;
|
364
548
|
locationId: string | null;
|
@@ -386,12 +570,11 @@ declare namespace JUHUU$1 {
|
|
386
570
|
autoRenew: boolean;
|
387
571
|
sessionType: Object["type"];
|
388
572
|
isOffSession: boolean;
|
389
|
-
idempotencyKey: string;
|
390
573
|
userId: string;
|
391
574
|
};
|
392
|
-
type Options = JUHUU
|
575
|
+
type Options = JUHUU.RequestOptions;
|
393
576
|
type Response = {
|
394
|
-
session: JUHUU
|
577
|
+
session: JUHUU.Session.Object;
|
395
578
|
};
|
396
579
|
}
|
397
580
|
export namespace Retrieve {
|
@@ -400,10 +583,10 @@ declare namespace JUHUU$1 {
|
|
400
583
|
};
|
401
584
|
type Options = {
|
402
585
|
expand?: Array<"property">;
|
403
|
-
} & JUHUU
|
586
|
+
} & JUHUU.RequestOptions;
|
404
587
|
type Response = {
|
405
|
-
session: JUHUU
|
406
|
-
property?: JUHUU
|
588
|
+
session: JUHUU.Session.Object;
|
589
|
+
property?: JUHUU.Property.Object;
|
407
590
|
};
|
408
591
|
}
|
409
592
|
export namespace List {
|
@@ -411,19 +594,19 @@ declare namespace JUHUU$1 {
|
|
411
594
|
propertyId?: string;
|
412
595
|
userId?: string;
|
413
596
|
managementUserId?: string;
|
414
|
-
statusArray?: JUHUU
|
597
|
+
statusArray?: JUHUU.Session.Object["status"][];
|
415
598
|
};
|
416
|
-
type Options = JUHUU
|
417
|
-
type Response = JUHUU
|
599
|
+
type Options = JUHUU.RequestOptions;
|
600
|
+
type Response = JUHUU.Session.Object[];
|
418
601
|
}
|
419
602
|
export namespace Update {
|
420
603
|
type Params = {
|
421
604
|
sessionId: string;
|
422
605
|
autoRenew: boolean;
|
423
606
|
};
|
424
|
-
type Options = JUHUU
|
607
|
+
type Options = JUHUU.RequestOptions;
|
425
608
|
type Response = {
|
426
|
-
session: JUHUU
|
609
|
+
session: JUHUU.Session.Object;
|
427
610
|
};
|
428
611
|
}
|
429
612
|
export namespace Terminate {
|
@@ -431,9 +614,9 @@ declare namespace JUHUU$1 {
|
|
431
614
|
sessionId: string;
|
432
615
|
isOffSession: boolean;
|
433
616
|
};
|
434
|
-
type Options = JUHUU
|
617
|
+
type Options = JUHUU.RequestOptions;
|
435
618
|
type Response = {
|
436
|
-
session: JUHUU
|
619
|
+
session: JUHUU.Session.Object | null;
|
437
620
|
};
|
438
621
|
}
|
439
622
|
export namespace AttachLocation {
|
@@ -441,9 +624,9 @@ declare namespace JUHUU$1 {
|
|
441
624
|
sessionId: string;
|
442
625
|
locationId: string;
|
443
626
|
};
|
444
|
-
type Options = JUHUU
|
627
|
+
type Options = JUHUU.RequestOptions;
|
445
628
|
type Response = {
|
446
|
-
session: JUHUU
|
629
|
+
session: JUHUU.Session.Object;
|
447
630
|
};
|
448
631
|
}
|
449
632
|
export { };
|
@@ -462,7 +645,7 @@ declare namespace JUHUU$1 {
|
|
462
645
|
defaultPaymentMethodId: string | null;
|
463
646
|
defaultPaymentMethodProvider: "stripe" | "not_set";
|
464
647
|
acceptedTermIdArray: string[];
|
465
|
-
licenseArray: JUHUU
|
648
|
+
licenseArray: JUHUU.License.Object[];
|
466
649
|
languageCode: LanguageCode | null;
|
467
650
|
billingAddress: DeepNullable<Address>;
|
468
651
|
billingEmail: string | null;
|
@@ -496,23 +679,23 @@ declare namespace JUHUU$1 {
|
|
496
679
|
type Params = {
|
497
680
|
userId: string;
|
498
681
|
};
|
499
|
-
type Options = JUHUU
|
682
|
+
type Options = JUHUU.RequestOptions;
|
500
683
|
type Response = {
|
501
|
-
user: JUHUU
|
684
|
+
user: JUHUU.User.Object;
|
502
685
|
};
|
503
686
|
}
|
504
687
|
export namespace List {
|
505
688
|
type Params = {
|
506
689
|
managementUserId?: string;
|
507
690
|
};
|
508
|
-
type Options = JUHUU
|
509
|
-
type Response = JUHUU
|
691
|
+
type Options = JUHUU.RequestOptions;
|
692
|
+
type Response = JUHUU.User.Object[];
|
510
693
|
}
|
511
694
|
export namespace Exists {
|
512
695
|
type Params = {
|
513
696
|
email: string;
|
514
697
|
};
|
515
|
-
type Options = JUHUU
|
698
|
+
type Options = JUHUU.RequestOptions;
|
516
699
|
type Response = {
|
517
700
|
exists: boolean;
|
518
701
|
};
|
@@ -524,14 +707,14 @@ declare namespace JUHUU$1 {
|
|
524
707
|
licenseArray?: string[];
|
525
708
|
platform?: Platform;
|
526
709
|
languageCode?: LanguageCode;
|
527
|
-
appVersion?:
|
710
|
+
appVersion?: string;
|
528
711
|
billingAddress?: DeepNullable<Address>;
|
529
712
|
vat?: string | null;
|
530
713
|
acceptedTermIdArray?: string[];
|
531
714
|
};
|
532
|
-
type Options = JUHUU
|
715
|
+
type Options = JUHUU.RequestOptions;
|
533
716
|
type Response = {
|
534
|
-
user: JUHUU
|
717
|
+
user: JUHUU.User.Object;
|
535
718
|
};
|
536
719
|
}
|
537
720
|
export namespace LoginEmailPassword {
|
@@ -539,7 +722,7 @@ declare namespace JUHUU$1 {
|
|
539
722
|
password: string;
|
540
723
|
email: string;
|
541
724
|
};
|
542
|
-
type Options = JUHUU
|
725
|
+
type Options = JUHUU.RequestOptions;
|
543
726
|
type Response = {
|
544
727
|
accessToken: string;
|
545
728
|
refreshToken: string;
|
@@ -549,7 +732,7 @@ declare namespace JUHUU$1 {
|
|
549
732
|
type Params = {
|
550
733
|
userId: string;
|
551
734
|
};
|
552
|
-
type Options = JUHUU
|
735
|
+
type Options = JUHUU.RequestOptions;
|
553
736
|
type Response = {
|
554
737
|
stripe: {
|
555
738
|
ephemeralKeySecret: string;
|
@@ -564,7 +747,7 @@ declare namespace JUHUU$1 {
|
|
564
747
|
password: string;
|
565
748
|
email: string;
|
566
749
|
};
|
567
|
-
type Options = JUHUU
|
750
|
+
type Options = JUHUU.RequestOptions;
|
568
751
|
type Response = {
|
569
752
|
accessToken: string;
|
570
753
|
refreshToken: string;
|
@@ -574,7 +757,7 @@ declare namespace JUHUU$1 {
|
|
574
757
|
type Params = {
|
575
758
|
refreshToken: string;
|
576
759
|
};
|
577
|
-
type Options = JUHUU
|
760
|
+
type Options = JUHUU.RequestOptions;
|
578
761
|
type Response = {
|
579
762
|
accessToken: string;
|
580
763
|
refreshToken: string;
|
@@ -592,7 +775,7 @@ declare namespace JUHUU$1 {
|
|
592
775
|
*/
|
593
776
|
userIdToInvite?: string;
|
594
777
|
};
|
595
|
-
type Options = JUHUU
|
778
|
+
type Options = JUHUU.RequestOptions;
|
596
779
|
type Response = void;
|
597
780
|
}
|
598
781
|
export namespace RemoveEmployee {
|
@@ -600,9 +783,9 @@ declare namespace JUHUU$1 {
|
|
600
783
|
userId: string;
|
601
784
|
userIdToRemove?: string;
|
602
785
|
};
|
603
|
-
type Options = JUHUU
|
786
|
+
type Options = JUHUU.RequestOptions;
|
604
787
|
type Response = {
|
605
|
-
user: JUHUU
|
788
|
+
user: JUHUU.User.Object;
|
606
789
|
};
|
607
790
|
}
|
608
791
|
export { };
|
@@ -621,10 +804,10 @@ declare namespace JUHUU$1 {
|
|
621
804
|
};
|
622
805
|
type Options = {
|
623
806
|
expand?: Array<"property">;
|
624
|
-
} & JUHUU
|
807
|
+
} & JUHUU.RequestOptions;
|
625
808
|
type Response = {
|
626
|
-
term: JUHUU
|
627
|
-
property?: JUHUU
|
809
|
+
term: JUHUU.Term.Object;
|
810
|
+
property?: JUHUU.Property.Object;
|
628
811
|
};
|
629
812
|
}
|
630
813
|
namespace Accept {
|
@@ -632,9 +815,9 @@ declare namespace JUHUU$1 {
|
|
632
815
|
termId: string;
|
633
816
|
userId: string;
|
634
817
|
};
|
635
|
-
type Options = JUHUU
|
818
|
+
type Options = JUHUU.RequestOptions;
|
636
819
|
type Response = {
|
637
|
-
term: JUHUU
|
820
|
+
term: JUHUU.Term.Object;
|
638
821
|
};
|
639
822
|
}
|
640
823
|
}
|
@@ -716,13 +899,13 @@ declare namespace JUHUU$1 {
|
|
716
899
|
};
|
717
900
|
type Options = {};
|
718
901
|
type Response = {
|
719
|
-
property: JUHUU
|
902
|
+
property: JUHUU.Property.Object;
|
720
903
|
};
|
721
904
|
}
|
722
905
|
export namespace List {
|
723
906
|
type Params = {};
|
724
|
-
type Options = JUHUU
|
725
|
-
type Response = JUHUU
|
907
|
+
type Options = JUHUU.RequestOptions;
|
908
|
+
type Response = JUHUU.Property.Object[];
|
726
909
|
}
|
727
910
|
export { };
|
728
911
|
}
|
@@ -759,8 +942,8 @@ declare namespace JUHUU$1 {
|
|
759
942
|
longitudeBottomRight: number;
|
760
943
|
latitudeBottomRight: number;
|
761
944
|
};
|
762
|
-
type Options = JUHUU
|
763
|
-
type Response = JUHUU
|
945
|
+
type Options = JUHUU.RequestOptions;
|
946
|
+
type Response = JUHUU.Point.Object[];
|
764
947
|
}
|
765
948
|
export { };
|
766
949
|
}
|
@@ -836,17 +1019,17 @@ declare namespace JUHUU$1 {
|
|
836
1019
|
};
|
837
1020
|
type Options = {
|
838
1021
|
expand?: Array<"property">;
|
839
|
-
} & JUHUU
|
1022
|
+
} & JUHUU.RequestOptions;
|
840
1023
|
type Response = {
|
841
|
-
payment: JUHUU
|
842
|
-
property?: JUHUU
|
1024
|
+
payment: JUHUU.Payment.Object;
|
1025
|
+
property?: JUHUU.Property.Object;
|
843
1026
|
};
|
844
1027
|
}
|
845
1028
|
namespace RetrieveInvoiceUrl {
|
846
1029
|
type Params = {
|
847
1030
|
paymentId: string;
|
848
1031
|
};
|
849
|
-
type Options = {} & JUHUU
|
1032
|
+
type Options = {} & JUHUU.RequestOptions;
|
850
1033
|
type Response = {
|
851
1034
|
invoiceUrl: string;
|
852
1035
|
};
|
@@ -857,7 +1040,7 @@ declare namespace JUHUU$1 {
|
|
857
1040
|
};
|
858
1041
|
type Options = {};
|
859
1042
|
type Response = {
|
860
|
-
payment: JUHUU
|
1043
|
+
payment: JUHUU.Payment.Object;
|
861
1044
|
tokens: {
|
862
1045
|
ephemeralKey: string;
|
863
1046
|
customer: string;
|
@@ -882,8 +1065,8 @@ declare namespace JUHUU$1 {
|
|
882
1065
|
propertyId: string;
|
883
1066
|
name: string;
|
884
1067
|
source: "fluctuo" | null;
|
885
|
-
rentOfferArray:
|
886
|
-
reservationOfferArray:
|
1068
|
+
rentOfferArray: Offer[];
|
1069
|
+
reservationOfferArray: Offer[];
|
887
1070
|
iconLight: string | null;
|
888
1071
|
iconDark: string | null;
|
889
1072
|
address: Address;
|
@@ -920,22 +1103,79 @@ declare namespace JUHUU$1 {
|
|
920
1103
|
};
|
921
1104
|
type Options = {
|
922
1105
|
expand?: Array<"property" | "tariffArray">;
|
923
|
-
} & JUHUU
|
1106
|
+
} & JUHUU.RequestOptions;
|
924
1107
|
type Response = {
|
925
|
-
location: JUHUU
|
926
|
-
property: JUHUU
|
927
|
-
tariffArray: JUHUU
|
1108
|
+
location: JUHUU.Location.Object;
|
1109
|
+
property: JUHUU.Property.Object;
|
1110
|
+
tariffArray: JUHUU.Tariff.Object[];
|
928
1111
|
};
|
929
1112
|
}
|
930
1113
|
export namespace List {
|
931
1114
|
type Params = {
|
932
1115
|
rentableDeviceGroupLocationId?: string;
|
933
1116
|
};
|
934
|
-
type Options = JUHUU
|
935
|
-
type Response = JUHUU
|
1117
|
+
type Options = JUHUU.RequestOptions;
|
1118
|
+
type Response = JUHUU.Location.Object[];
|
936
1119
|
}
|
937
1120
|
export { };
|
938
1121
|
}
|
1122
|
+
namespace Product {
|
1123
|
+
type Base = {
|
1124
|
+
id: string;
|
1125
|
+
readonly object: "product";
|
1126
|
+
name: string;
|
1127
|
+
propertyId: string;
|
1128
|
+
version: number;
|
1129
|
+
previewText: JUHUU.LocaleString;
|
1130
|
+
description: JUHUU.LocaleString;
|
1131
|
+
bannerImageDark: string[];
|
1132
|
+
bannerImageLight: string[];
|
1133
|
+
model3d: string | null;
|
1134
|
+
datasheet: JUHUU.DeepNullable<JUHUU.LocaleString>;
|
1135
|
+
highlightArray: JUHUU.LocaleString[];
|
1136
|
+
purposeArray: JUHUU.Purpose[];
|
1137
|
+
technologyArray: JUHUU.Technology[];
|
1138
|
+
invalidAt: Date;
|
1139
|
+
source: "fluctuo" | null;
|
1140
|
+
};
|
1141
|
+
interface PhysicalProduct extends Base {
|
1142
|
+
type: "physicalProduct";
|
1143
|
+
weight: number;
|
1144
|
+
dimensions: {
|
1145
|
+
length: number;
|
1146
|
+
width: number;
|
1147
|
+
height: number;
|
1148
|
+
};
|
1149
|
+
material: string;
|
1150
|
+
color: string;
|
1151
|
+
}
|
1152
|
+
interface DigitalProduct extends Base {
|
1153
|
+
type: "digitalProduct";
|
1154
|
+
fileSize: number;
|
1155
|
+
downloadUrl: string;
|
1156
|
+
}
|
1157
|
+
type Object = PhysicalProduct | DigitalProduct;
|
1158
|
+
namespace Retrieve {
|
1159
|
+
type Params = {
|
1160
|
+
productId: string;
|
1161
|
+
};
|
1162
|
+
type Options = JUHUU.RequestOptions;
|
1163
|
+
type Response = {
|
1164
|
+
product: Product.Object;
|
1165
|
+
};
|
1166
|
+
}
|
1167
|
+
namespace List {
|
1168
|
+
type Params = {
|
1169
|
+
propertyId?: string;
|
1170
|
+
categoryArray?: Category[];
|
1171
|
+
modalityArray?: Modality[];
|
1172
|
+
sectorArray?: Sector[];
|
1173
|
+
technologyArray?: Technology[];
|
1174
|
+
};
|
1175
|
+
type Options = JUHUU.RequestOptions;
|
1176
|
+
type Response = Product.Object[];
|
1177
|
+
}
|
1178
|
+
}
|
939
1179
|
namespace Link {
|
940
1180
|
type Base = {
|
941
1181
|
id: string;
|
@@ -958,8 +1198,8 @@ declare namespace JUHUU$1 {
|
|
958
1198
|
expand: Array<"property">;
|
959
1199
|
};
|
960
1200
|
type Response = {
|
961
|
-
link: JUHUU
|
962
|
-
property?: JUHUU
|
1201
|
+
link: JUHUU.Link.Object;
|
1202
|
+
property?: JUHUU.Property.Object;
|
963
1203
|
};
|
964
1204
|
}
|
965
1205
|
export namespace List {
|
@@ -968,7 +1208,7 @@ declare namespace JUHUU$1 {
|
|
968
1208
|
propertyId?: string;
|
969
1209
|
};
|
970
1210
|
type Options = {};
|
971
|
-
type Response = JUHUU
|
1211
|
+
type Response = JUHUU.Link.Object[];
|
972
1212
|
}
|
973
1213
|
export { };
|
974
1214
|
}
|
@@ -1009,11 +1249,11 @@ declare namespace JUHUU$1 {
|
|
1009
1249
|
};
|
1010
1250
|
type Options = {
|
1011
1251
|
expand?: Array<"property" | "deviceTemplate">;
|
1012
|
-
} & JUHUU
|
1252
|
+
} & JUHUU.RequestOptions;
|
1013
1253
|
type Response = {
|
1014
|
-
device: JUHUU
|
1015
|
-
deviceTemplate?: JUHUU
|
1016
|
-
property?: JUHUU
|
1254
|
+
device: JUHUU.Device.Object;
|
1255
|
+
deviceTemplate?: JUHUU.DeviceTemplate.Object;
|
1256
|
+
property?: JUHUU.Property.Object;
|
1017
1257
|
};
|
1018
1258
|
}
|
1019
1259
|
namespace List {
|
@@ -1025,19 +1265,19 @@ declare namespace JUHUU$1 {
|
|
1025
1265
|
deviceTemplateId?: string;
|
1026
1266
|
termId?: string;
|
1027
1267
|
};
|
1028
|
-
type Options = JUHUU
|
1029
|
-
type Response = JUHUU
|
1268
|
+
type Options = JUHUU.RequestOptions;
|
1269
|
+
type Response = JUHUU.Device.Object[];
|
1030
1270
|
}
|
1031
1271
|
namespace Realtime {
|
1032
1272
|
type Params = {
|
1033
1273
|
deviceId: string;
|
1034
1274
|
};
|
1035
|
-
type Options = JUHUU
|
1275
|
+
type Options = JUHUU.RequestOptions;
|
1036
1276
|
type Response = {
|
1037
1277
|
onUpdated: (callback: (message: {
|
1038
1278
|
payload: {
|
1039
|
-
after: JUHUU
|
1040
|
-
before: JUHUU
|
1279
|
+
after: JUHUU.Device.Object;
|
1280
|
+
before: JUHUU.Device.Object;
|
1041
1281
|
changedFields: string[];
|
1042
1282
|
};
|
1043
1283
|
}) => void) => void;
|
@@ -1049,7 +1289,7 @@ declare namespace JUHUU$1 {
|
|
1049
1289
|
deviceId: string;
|
1050
1290
|
message: string;
|
1051
1291
|
};
|
1052
|
-
type Options = JUHUU
|
1292
|
+
type Options = JUHUU.RequestOptions;
|
1053
1293
|
type Response = void;
|
1054
1294
|
}
|
1055
1295
|
namespace ParameterUpdate {
|
@@ -1058,9 +1298,9 @@ declare namespace JUHUU$1 {
|
|
1058
1298
|
parameterName: string;
|
1059
1299
|
value: string | number | boolean;
|
1060
1300
|
};
|
1061
|
-
type Options = JUHUU
|
1301
|
+
type Options = JUHUU.RequestOptions;
|
1062
1302
|
type Response = {
|
1063
|
-
device: JUHUU
|
1303
|
+
device: JUHUU.Device.Object;
|
1064
1304
|
};
|
1065
1305
|
}
|
1066
1306
|
namespace CommandExecute {
|
@@ -1068,9 +1308,9 @@ declare namespace JUHUU$1 {
|
|
1068
1308
|
deviceId: string;
|
1069
1309
|
commandName: string;
|
1070
1310
|
};
|
1071
|
-
type Options = JUHUU
|
1311
|
+
type Options = JUHUU.RequestOptions;
|
1072
1312
|
type Response = {
|
1073
|
-
device: JUHUU
|
1313
|
+
device: JUHUU.Device.Object;
|
1074
1314
|
};
|
1075
1315
|
}
|
1076
1316
|
}
|
@@ -1125,186 +1365,12 @@ declare namespace JUHUU$1 {
|
|
1125
1365
|
deviceTemplateId: string;
|
1126
1366
|
source?: "fluctuo" | null;
|
1127
1367
|
};
|
1128
|
-
type Options = JUHUU
|
1368
|
+
type Options = JUHUU.RequestOptions;
|
1129
1369
|
type Response = {
|
1130
|
-
deviceTemplate: JUHUU
|
1370
|
+
deviceTemplate: JUHUU.DeviceTemplate.Object;
|
1131
1371
|
};
|
1132
1372
|
}
|
1133
1373
|
}
|
1134
1374
|
}
|
1135
|
-
type VersionNumber = `${number}.${number}.${number}`;
|
1136
|
-
type Environment = "development" | "production";
|
1137
|
-
|
1138
|
-
declare class Service {
|
1139
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1140
|
-
readonly environment: Environment$1;
|
1141
|
-
readonly httpBaseUrl: string;
|
1142
|
-
readonly wssBaseUrl: string;
|
1143
|
-
readonly clientVersion: string;
|
1144
|
-
onException: <T>(response: JUHUU$1.HttpResponse<T>) => Promise<"abort" | "retry">;
|
1145
|
-
getAccessToken: () => Promise<string | null> | null;
|
1146
|
-
setAccessToken: (accessToken: string) => Promise<void>;
|
1147
|
-
getRefreshToken: () => Promise<string | null>;
|
1148
|
-
setRefreshToken: (refreshToken: string) => Promise<void>;
|
1149
|
-
sendRequest<T>({ url, method, body, useAuthentication, }: {
|
1150
|
-
method: "GET";
|
1151
|
-
url: string;
|
1152
|
-
body: undefined;
|
1153
|
-
useAuthentication: boolean;
|
1154
|
-
} | {
|
1155
|
-
method: "POST";
|
1156
|
-
url: string;
|
1157
|
-
body: any;
|
1158
|
-
useAuthentication: boolean;
|
1159
|
-
} | {
|
1160
|
-
method: "PATCH";
|
1161
|
-
url: string;
|
1162
|
-
body: any;
|
1163
|
-
useAuthentication: boolean;
|
1164
|
-
}, options?: JUHUU$1.RequestOptions): Promise<JUHUU$1.HttpResponse<T>>;
|
1165
|
-
private sendGetRequest;
|
1166
|
-
private sendPostRequest;
|
1167
|
-
private sendPatchRequest;
|
1168
|
-
connectToWebsocket<T>({ url }: {
|
1169
|
-
url: string;
|
1170
|
-
}): Socket;
|
1171
|
-
disconnectFromWebsocket(socket: Socket): void;
|
1172
|
-
}
|
1173
|
-
|
1174
|
-
declare class SessionService extends Service {
|
1175
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1176
|
-
create(SessionCreateParams: JUHUU$1.Session.Create.Params, SessionCreateOptions?: JUHUU$1.Session.Create.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Session.Create.Response>>;
|
1177
|
-
retrieve(SessionRetrieveParams: JUHUU$1.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU$1.Session.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Session.Retrieve.Response>>;
|
1178
|
-
list(SessionListParams: JUHUU$1.Session.List.Params, SessionListOptions?: JUHUU$1.Session.List.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Session.List.Response>>;
|
1179
|
-
update(SessionUpdateParams: JUHUU$1.Session.Update.Params, SessionUpdateOptions?: JUHUU$1.Session.Update.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Session.Update.Response>>;
|
1180
|
-
terminate(SessionTerminateParams: JUHUU$1.Session.Terminate.Params, SessionTerminateOptions?: JUHUU$1.Session.Terminate.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Session.Terminate.Response>>;
|
1181
|
-
attachLocation(SessionTerminateParams: JUHUU$1.Session.AttachLocation.Params, SessionTerminateOptions?: JUHUU$1.Session.AttachLocation.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Session.AttachLocation.Response>>;
|
1182
|
-
}
|
1183
|
-
|
1184
|
-
declare class LinkService extends Service {
|
1185
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1186
|
-
create(): Promise<void>;
|
1187
|
-
retrieve(LinkRetrieveParams: JUHUU$1.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU$1.Link.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Link.Retrieve.Response>>;
|
1188
|
-
list(LinkListParams: JUHUU$1.Link.List.Params, LinkListOptions?: JUHUU$1.Link.List.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Link.List.Response>>;
|
1189
|
-
update(): Promise<void>;
|
1190
|
-
delete(): Promise<void>;
|
1191
|
-
terminate(): Promise<void>;
|
1192
|
-
}
|
1193
|
-
|
1194
|
-
declare class UsersService extends Service {
|
1195
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1196
|
-
create(): Promise<void>;
|
1197
|
-
retrieve(UserRetrieveParams: JUHUU$1.User.Retrieve.Params, UserRetrieveOptions?: JUHUU$1.User.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.Retrieve.Response>>;
|
1198
|
-
exists(UserExistsParams: JUHUU$1.User.Exists.Params, UserExistsOptions?: JUHUU$1.User.Exists.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.Exists.Response>>;
|
1199
|
-
registerEmailPassword(UserRegisterEmailPasswordParams: JUHUU$1.User.RegisterEmailPassword.Params, UserRegisterEmailPasswordOptions?: JUHUU$1.User.RegisterEmailPassword.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.RegisterEmailPassword.Response>>;
|
1200
|
-
loginEmailPassword(UserLoginEmailPasswordParams: JUHUU$1.User.LoginEmailPassword.Params, UserLoginEmailPasswordOptions?: JUHUU$1.User.LoginEmailPassword.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.LoginEmailPassword.Response>>;
|
1201
|
-
paymentMethodTokens(UserPaymentMethodTokensParams: JUHUU$1.User.PaymentMethodTokens.Params, UserPaymentMethodTokensOptions?: JUHUU$1.User.PaymentMethodTokens.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.PaymentMethodTokens.Response>>;
|
1202
|
-
refreshAccessToken(UserRefreshAccessTokenParams: JUHUU$1.User.RefreshAccessToken.Params, UserRefreshAccessTokenOptions?: JUHUU$1.User.RefreshAccessToken.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.RefreshAccessToken.Response>>;
|
1203
|
-
list(UserListParams: JUHUU$1.User.List.Params, UserListOptions?: JUHUU$1.User.List.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.List.Response>>;
|
1204
|
-
update(UserUpdateParams: JUHUU$1.User.Update.Params, UserUpdateOptions?: JUHUU$1.User.Update.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.Update.Response>>;
|
1205
|
-
inviteEmployee(UserInviteEmployeeParams: JUHUU$1.User.InviteEmployee.Params, UserInviteEmployeeOptions?: JUHUU$1.User.InviteEmployee.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.InviteEmployee.Response>>;
|
1206
|
-
removeEmployee(UserRemoveEmployeeParams: JUHUU$1.User.RemoveEmployee.Params, UserRemoveEmployeeOptions?: JUHUU$1.User.RemoveEmployee.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.User.RemoveEmployee.Response>>;
|
1207
|
-
}
|
1208
|
-
|
1209
|
-
declare class PaymentsService extends Service {
|
1210
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1211
|
-
create(): Promise<void>;
|
1212
|
-
retrieve(PaymentRetrieveParams: JUHUU$1.Payment.Retrieve.Params, PaymentRetrieveOptions?: JUHUU$1.Payment.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Payment.Retrieve.Response>>;
|
1213
|
-
tokens(PaymentTokensParams: JUHUU$1.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU$1.Payment.Tokens.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Payment.Tokens.Response>>;
|
1214
|
-
update(): Promise<void>;
|
1215
|
-
delete(): Promise<void>;
|
1216
|
-
retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU$1.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU$1.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Payment.RetrieveInvoiceUrl.Response>>;
|
1217
|
-
}
|
1218
|
-
|
1219
|
-
declare class PropertiesService extends Service {
|
1220
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1221
|
-
create(): Promise<void>;
|
1222
|
-
retrieve(PropertyRetrieveParams: JUHUU$1.Property.Retrieve.Params, PropertyRetrieveOptions?: JUHUU$1.Property.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Property.Retrieve.Response>>;
|
1223
|
-
list(PropertyListParams: JUHUU$1.Property.List.Params, PropertyListOptions?: JUHUU$1.Property.List.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Property.List.Response>>;
|
1224
|
-
update(): Promise<void>;
|
1225
|
-
delete(): Promise<void>;
|
1226
|
-
terminate(): Promise<void>;
|
1227
|
-
}
|
1228
|
-
|
1229
|
-
declare class PointsService extends Service {
|
1230
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1231
|
-
map(PointListParams: JUHUU$1.Point.Map.Params, PointListOptions?: JUHUU$1.Point.Map.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Point.Map.Response>>;
|
1232
|
-
private toRadians;
|
1233
|
-
calculateDistance(lat1: number, lon1: number, lat2: number, lon2: number): number;
|
1234
|
-
calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
|
1235
|
-
}
|
1236
|
-
|
1237
|
-
declare class DevicesService extends Service {
|
1238
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1239
|
-
create(): Promise<void>;
|
1240
|
-
retrieve(DeviceRetrieveParams: JUHUU$1.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU$1.Device.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Device.Retrieve.Response>>;
|
1241
|
-
list(DeviceListParams: JUHUU$1.Device.List.Params, DeviceListOptions?: JUHUU$1.Device.List.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Device.List.Response>>;
|
1242
|
-
update(): Promise<void>;
|
1243
|
-
delete(): Promise<void>;
|
1244
|
-
listen(DeviceRealtimeParams: JUHUU$1.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU$1.Device.Realtime.Options): JUHUU$1.Device.Realtime.Response;
|
1245
|
-
message(DeviceMessageParams: JUHUU$1.Device.Message.Params, DeviceMessageOptions?: JUHUU$1.Device.Message.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Device.Message.Response>>;
|
1246
|
-
parameterUpdate(DeviceParameterParams: JUHUU$1.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU$1.Device.ParameterUpdate.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Device.ParameterUpdate.Response>>;
|
1247
|
-
commandExecute(DeviceCommandExecuteParams: JUHUU$1.Device.CommandExecute.Params, DeviceCommandExecuteOptions?: JUHUU$1.Device.CommandExecute.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Device.CommandExecute.Response>>;
|
1248
|
-
}
|
1249
|
-
|
1250
|
-
declare class DeviceTemplatesService extends Service {
|
1251
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1252
|
-
create(): Promise<void>;
|
1253
|
-
retrieve(DeviceTemplateRetrieveParams: JUHUU$1.DeviceTemplate.Retrieve.Params, DeviceTemplateRetrieveOptions?: JUHUU$1.DeviceTemplate.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.DeviceTemplate.Retrieve.Response>>;
|
1254
|
-
update(): Promise<void>;
|
1255
|
-
delete(): Promise<void>;
|
1256
|
-
terminate(): Promise<void>;
|
1257
|
-
}
|
1258
|
-
|
1259
|
-
declare class LocationsService extends Service {
|
1260
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1261
|
-
retrieve(LocationRetrieveParams: JUHUU$1.Location.Retrieve.Params, LocationRetrieveOptions?: JUHUU$1.Location.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Location.Retrieve.Response>>;
|
1262
|
-
list(LocationListParams: JUHUU$1.Location.List.Params, LocationListOptions?: JUHUU$1.Location.List.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Location.List.Response>>;
|
1263
|
-
}
|
1264
|
-
|
1265
|
-
declare class TermsService extends Service {
|
1266
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1267
|
-
retrieve(TermRetrieveParams: JUHUU$1.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU$1.Term.Retrieve.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Term.Retrieve.Response>>;
|
1268
|
-
accept(TermAcceptParams: JUHUU$1.Term.Accept.Params, TermAcceptOptions?: JUHUU$1.Term.Accept.Options): Promise<JUHUU$1.HttpResponse<JUHUU$1.Term.Accept.Response>>;
|
1269
|
-
}
|
1270
|
-
|
1271
|
-
declare class TariffsService extends Service {
|
1272
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1273
|
-
create(): Promise<void>;
|
1274
|
-
update(): Promise<void>;
|
1275
|
-
delete(): Promise<void>;
|
1276
|
-
terminate(): Promise<void>;
|
1277
|
-
/**
|
1278
|
-
* Checks if the tariff is free
|
1279
|
-
*/
|
1280
|
-
isFree(tariff: JUHUU$1.Tariff.Object): boolean;
|
1281
|
-
/**
|
1282
|
-
* Returns the amount of seconds the tariff needs to be active before the amount will not change anymore
|
1283
|
-
*/
|
1284
|
-
getAmountFinalizationDuration(tariff: JUHUU$1.Tariff.Object): number;
|
1285
|
-
/**
|
1286
|
-
* Calculates the amount for a give rent time in seconds
|
1287
|
-
*/
|
1288
|
-
calculateAmount(tariff: JUHUU$1.Tariff.Object, rentTimeSeconds: number): number;
|
1289
|
-
calculateMaximumAmount(tariff: JUHUU$1.Tariff.Object): number;
|
1290
|
-
}
|
1291
|
-
|
1292
|
-
declare class JUHUU {
|
1293
|
-
constructor(config: JUHUU$1.SetupConfig);
|
1294
|
-
/**
|
1295
|
-
* Top Level Resources
|
1296
|
-
*/
|
1297
|
-
readonly sessions: SessionService;
|
1298
|
-
readonly links: LinkService;
|
1299
|
-
readonly users: UsersService;
|
1300
|
-
readonly payments: PaymentsService;
|
1301
|
-
readonly properties: PropertiesService;
|
1302
|
-
readonly points: PointsService;
|
1303
|
-
readonly devices: DevicesService;
|
1304
|
-
readonly deviceTemplates: DeviceTemplatesService;
|
1305
|
-
readonly locations: LocationsService;
|
1306
|
-
readonly terms: TermsService;
|
1307
|
-
readonly tariffs: TariffsService;
|
1308
|
-
}
|
1309
1375
|
|
1310
|
-
export { JUHUU
|
1376
|
+
export { JUHUU, Juhuu };
|