@juhuu/sdk-ts 0.0.4 → 1.0.1
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 +259 -263
- package/dist/index.d.ts +259 -263
- package/dist/index.js +6 -2
- package/dist/index.mjs +2 -2
- 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];
|
@@ -307,11 +306,182 @@ interface LocaleString {
|
|
307
306
|
fr: string;
|
308
307
|
}
|
309
308
|
|
310
|
-
declare
|
309
|
+
declare class Service {
|
310
|
+
constructor(config: JUHUU.SetupConfig);
|
311
|
+
readonly environment: Environment;
|
312
|
+
readonly httpBaseUrl: string;
|
313
|
+
readonly wssBaseUrl: string;
|
314
|
+
readonly clientVersion: string;
|
315
|
+
onException: <T>(response: JUHUU.HttpResponse<T>) => Promise<"abort" | "retry">;
|
316
|
+
getAccessToken: () => Promise<string | null> | null;
|
317
|
+
setAccessToken: (accessToken: string) => Promise<void>;
|
318
|
+
getRefreshToken: () => Promise<string | null>;
|
319
|
+
setRefreshToken: (refreshToken: string) => Promise<void>;
|
320
|
+
sendRequest<T>({ url, method, body, useAuthentication, }: {
|
321
|
+
method: "GET";
|
322
|
+
url: string;
|
323
|
+
body: undefined;
|
324
|
+
useAuthentication: boolean;
|
325
|
+
} | {
|
326
|
+
method: "POST";
|
327
|
+
url: string;
|
328
|
+
body: any;
|
329
|
+
useAuthentication: boolean;
|
330
|
+
} | {
|
331
|
+
method: "PATCH";
|
332
|
+
url: string;
|
333
|
+
body: any;
|
334
|
+
useAuthentication: boolean;
|
335
|
+
}, options?: JUHUU.RequestOptions): Promise<JUHUU.HttpResponse<T>>;
|
336
|
+
private sendGetRequest;
|
337
|
+
private sendPostRequest;
|
338
|
+
private sendPatchRequest;
|
339
|
+
connectToWebsocket<T>({ url }: {
|
340
|
+
url: string;
|
341
|
+
}): Socket;
|
342
|
+
disconnectFromWebsocket(socket: Socket): void;
|
343
|
+
}
|
344
|
+
|
345
|
+
declare class SessionService extends Service {
|
346
|
+
constructor(config: JUHUU.SetupConfig);
|
347
|
+
create(SessionCreateParams: JUHUU.Session.Create.Params, SessionCreateOptions?: JUHUU.Session.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Create.Response>>;
|
348
|
+
retrieve(SessionRetrieveParams: JUHUU.Session.Retrieve.Params, SessionRetrieveOptions?: JUHUU.Session.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Retrieve.Response>>;
|
349
|
+
list(SessionListParams: JUHUU.Session.List.Params, SessionListOptions?: JUHUU.Session.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.List.Response>>;
|
350
|
+
update(SessionUpdateParams: JUHUU.Session.Update.Params, SessionUpdateOptions?: JUHUU.Session.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Update.Response>>;
|
351
|
+
terminate(SessionTerminateParams: JUHUU.Session.Terminate.Params, SessionTerminateOptions?: JUHUU.Session.Terminate.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.Terminate.Response>>;
|
352
|
+
attachLocation(SessionTerminateParams: JUHUU.Session.AttachLocation.Params, SessionTerminateOptions?: JUHUU.Session.AttachLocation.Options): Promise<JUHUU.HttpResponse<JUHUU.Session.AttachLocation.Response>>;
|
353
|
+
}
|
354
|
+
|
355
|
+
declare class LinkService extends Service {
|
356
|
+
constructor(config: JUHUU.SetupConfig);
|
357
|
+
create(): Promise<void>;
|
358
|
+
retrieve(LinkRetrieveParams: JUHUU.Link.Retrieve.Params, LinkRetrieveOptions?: JUHUU.Link.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.Retrieve.Response>>;
|
359
|
+
list(LinkListParams: JUHUU.Link.List.Params, LinkListOptions?: JUHUU.Link.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Link.List.Response>>;
|
360
|
+
update(): Promise<void>;
|
361
|
+
delete(): Promise<void>;
|
362
|
+
terminate(): Promise<void>;
|
363
|
+
}
|
364
|
+
|
365
|
+
declare class UsersService extends Service {
|
366
|
+
constructor(config: JUHUU.SetupConfig);
|
367
|
+
create(): Promise<void>;
|
368
|
+
retrieve(UserRetrieveParams: JUHUU.User.Retrieve.Params, UserRetrieveOptions?: JUHUU.User.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Retrieve.Response>>;
|
369
|
+
exists(UserExistsParams: JUHUU.User.Exists.Params, UserExistsOptions?: JUHUU.User.Exists.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Exists.Response>>;
|
370
|
+
registerEmailPassword(UserRegisterEmailPasswordParams: JUHUU.User.RegisterEmailPassword.Params, UserRegisterEmailPasswordOptions?: JUHUU.User.RegisterEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RegisterEmailPassword.Response>>;
|
371
|
+
loginEmailPassword(UserLoginEmailPasswordParams: JUHUU.User.LoginEmailPassword.Params, UserLoginEmailPasswordOptions?: JUHUU.User.LoginEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.LoginEmailPassword.Response>>;
|
372
|
+
paymentMethodTokens(UserPaymentMethodTokensParams: JUHUU.User.PaymentMethodTokens.Params, UserPaymentMethodTokensOptions?: JUHUU.User.PaymentMethodTokens.Options): Promise<JUHUU.HttpResponse<JUHUU.User.PaymentMethodTokens.Response>>;
|
373
|
+
refreshAccessToken(UserRefreshAccessTokenParams: JUHUU.User.RefreshAccessToken.Params, UserRefreshAccessTokenOptions?: JUHUU.User.RefreshAccessToken.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RefreshAccessToken.Response>>;
|
374
|
+
list(UserListParams: JUHUU.User.List.Params, UserListOptions?: JUHUU.User.List.Options): Promise<JUHUU.HttpResponse<JUHUU.User.List.Response>>;
|
375
|
+
update(UserUpdateParams: JUHUU.User.Update.Params, UserUpdateOptions?: JUHUU.User.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.User.Update.Response>>;
|
376
|
+
inviteEmployee(UserInviteEmployeeParams: JUHUU.User.InviteEmployee.Params, UserInviteEmployeeOptions?: JUHUU.User.InviteEmployee.Options): Promise<JUHUU.HttpResponse<JUHUU.User.InviteEmployee.Response>>;
|
377
|
+
removeEmployee(UserRemoveEmployeeParams: JUHUU.User.RemoveEmployee.Params, UserRemoveEmployeeOptions?: JUHUU.User.RemoveEmployee.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RemoveEmployee.Response>>;
|
378
|
+
}
|
379
|
+
|
380
|
+
declare class PaymentsService extends Service {
|
381
|
+
constructor(config: JUHUU.SetupConfig);
|
382
|
+
create(): Promise<void>;
|
383
|
+
retrieve(PaymentRetrieveParams: JUHUU.Payment.Retrieve.Params, PaymentRetrieveOptions?: JUHUU.Payment.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Retrieve.Response>>;
|
384
|
+
tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
|
385
|
+
update(): Promise<void>;
|
386
|
+
delete(): Promise<void>;
|
387
|
+
retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.RetrieveInvoiceUrl.Response>>;
|
388
|
+
}
|
389
|
+
|
390
|
+
declare class PropertiesService extends Service {
|
391
|
+
constructor(config: JUHUU.SetupConfig);
|
392
|
+
create(): Promise<void>;
|
393
|
+
retrieve(PropertyRetrieveParams: JUHUU.Property.Retrieve.Params, PropertyRetrieveOptions?: JUHUU.Property.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Retrieve.Response>>;
|
394
|
+
list(PropertyListParams: JUHUU.Property.List.Params, PropertyListOptions?: JUHUU.Property.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.List.Response>>;
|
395
|
+
update(): Promise<void>;
|
396
|
+
delete(): Promise<void>;
|
397
|
+
terminate(): Promise<void>;
|
398
|
+
}
|
399
|
+
|
400
|
+
declare class PointsService extends Service {
|
401
|
+
constructor(config: JUHUU.SetupConfig);
|
402
|
+
map(PointListParams: JUHUU.Point.Map.Params, PointListOptions?: JUHUU.Point.Map.Options): Promise<JUHUU.HttpResponse<JUHUU.Point.Map.Response>>;
|
403
|
+
private toRadians;
|
404
|
+
calculateDistance(lat1: number, lon1: number, lat2: number, lon2: number): number;
|
405
|
+
calculateAltitudeForTopDownView(topLeftLat: number, topLeftLon: number, bottomRightLat: number, bottomRightLon: number): number;
|
406
|
+
}
|
407
|
+
|
408
|
+
declare class DevicesService extends Service {
|
409
|
+
constructor(config: JUHUU.SetupConfig);
|
410
|
+
create(): Promise<void>;
|
411
|
+
retrieve(DeviceRetrieveParams: JUHUU.Device.Retrieve.Params, DeviceRetrieveOptions?: JUHUU.Device.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Retrieve.Response>>;
|
412
|
+
list(DeviceListParams: JUHUU.Device.List.Params, DeviceListOptions?: JUHUU.Device.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.List.Response>>;
|
413
|
+
update(): Promise<void>;
|
414
|
+
delete(): Promise<void>;
|
415
|
+
listen(DeviceRealtimeParams: JUHUU.Device.Realtime.Params, DeviceRealtimeOptions?: JUHUU.Device.Realtime.Options): JUHUU.Device.Realtime.Response;
|
416
|
+
message(DeviceMessageParams: JUHUU.Device.Message.Params, DeviceMessageOptions?: JUHUU.Device.Message.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.Message.Response>>;
|
417
|
+
parameterUpdate(DeviceParameterParams: JUHUU.Device.ParameterUpdate.Params, DeviceParameterOptions?: JUHUU.Device.ParameterUpdate.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.ParameterUpdate.Response>>;
|
418
|
+
commandExecute(DeviceCommandExecuteParams: JUHUU.Device.CommandExecute.Params, DeviceCommandExecuteOptions?: JUHUU.Device.CommandExecute.Options): Promise<JUHUU.HttpResponse<JUHUU.Device.CommandExecute.Response>>;
|
419
|
+
}
|
420
|
+
|
421
|
+
declare class DeviceTemplatesService extends Service {
|
422
|
+
constructor(config: JUHUU.SetupConfig);
|
423
|
+
create(): Promise<void>;
|
424
|
+
retrieve(DeviceTemplateRetrieveParams: JUHUU.DeviceTemplate.Retrieve.Params, DeviceTemplateRetrieveOptions?: JUHUU.DeviceTemplate.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.DeviceTemplate.Retrieve.Response>>;
|
425
|
+
update(): Promise<void>;
|
426
|
+
delete(): Promise<void>;
|
427
|
+
terminate(): Promise<void>;
|
428
|
+
}
|
429
|
+
|
430
|
+
declare class LocationsService extends Service {
|
431
|
+
constructor(config: JUHUU.SetupConfig);
|
432
|
+
retrieve(LocationRetrieveParams: JUHUU.Location.Retrieve.Params, LocationRetrieveOptions?: JUHUU.Location.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.Retrieve.Response>>;
|
433
|
+
list(LocationListParams: JUHUU.Location.List.Params, LocationListOptions?: JUHUU.Location.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Location.List.Response>>;
|
434
|
+
}
|
435
|
+
|
436
|
+
declare class TermsService extends Service {
|
437
|
+
constructor(config: JUHUU.SetupConfig);
|
438
|
+
retrieve(TermRetrieveParams: JUHUU.Term.Retrieve.Params, TermRetrieveOptions?: JUHUU.Term.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Retrieve.Response>>;
|
439
|
+
accept(TermAcceptParams: JUHUU.Term.Accept.Params, TermAcceptOptions?: JUHUU.Term.Accept.Options): Promise<JUHUU.HttpResponse<JUHUU.Term.Accept.Response>>;
|
440
|
+
}
|
441
|
+
|
442
|
+
declare class TariffsService extends Service {
|
443
|
+
constructor(config: JUHUU.SetupConfig);
|
444
|
+
create(): Promise<void>;
|
445
|
+
update(): Promise<void>;
|
446
|
+
delete(): Promise<void>;
|
447
|
+
terminate(): Promise<void>;
|
448
|
+
/**
|
449
|
+
* Checks if the tariff is free
|
450
|
+
*/
|
451
|
+
isFree(tariff: JUHUU.Tariff.Object): boolean;
|
452
|
+
/**
|
453
|
+
* Returns the amount of seconds the tariff needs to be active before the amount will not change anymore
|
454
|
+
*/
|
455
|
+
getAmountFinalizationDuration(tariff: JUHUU.Tariff.Object): number;
|
456
|
+
/**
|
457
|
+
* Calculates the amount for a give rent time in seconds
|
458
|
+
*/
|
459
|
+
calculateAmount(tariff: JUHUU.Tariff.Object, rentTimeSeconds: number): number;
|
460
|
+
calculateMaximumAmount(tariff: JUHUU.Tariff.Object): number;
|
461
|
+
}
|
462
|
+
|
463
|
+
declare class Juhuu {
|
464
|
+
constructor(config: JUHUU.SetupConfig);
|
465
|
+
/**
|
466
|
+
* Top Level Resources
|
467
|
+
*/
|
468
|
+
readonly sessions: SessionService;
|
469
|
+
readonly links: LinkService;
|
470
|
+
readonly users: UsersService;
|
471
|
+
readonly payments: PaymentsService;
|
472
|
+
readonly properties: PropertiesService;
|
473
|
+
readonly points: PointsService;
|
474
|
+
readonly devices: DevicesService;
|
475
|
+
readonly deviceTemplates: DeviceTemplatesService;
|
476
|
+
readonly locations: LocationsService;
|
477
|
+
readonly terms: TermsService;
|
478
|
+
readonly tariffs: TariffsService;
|
479
|
+
}
|
480
|
+
declare namespace JUHUU {
|
311
481
|
interface SetupConfig {
|
312
482
|
environment: Environment;
|
313
483
|
getAccessToken: () => Promise<string | null>;
|
314
|
-
onException: <T>(response: JUHUU
|
484
|
+
onException: <T>(response: JUHUU.HttpResponse<T>) => Promise<"abort">;
|
315
485
|
setAccessToken: (accessToken: string) => Promise<void>;
|
316
486
|
getRefreshToken: () => Promise<string | null>;
|
317
487
|
setRefreshToken: (refreshToken: string) => Promise<void>;
|
@@ -358,7 +528,7 @@ declare namespace JUHUU$1 {
|
|
358
528
|
manualTerminationEnabled: boolean;
|
359
529
|
version: number;
|
360
530
|
isOffSession: boolean;
|
361
|
-
tariff: JUHUU
|
531
|
+
tariff: JUHUU.Tariff.Object;
|
362
532
|
previousAutoRenewSessionId: string | null;
|
363
533
|
autoRenew: boolean;
|
364
534
|
locationId: string | null;
|
@@ -389,9 +559,9 @@ declare namespace JUHUU$1 {
|
|
389
559
|
idempotencyKey: string;
|
390
560
|
userId: string;
|
391
561
|
};
|
392
|
-
type Options = JUHUU
|
562
|
+
type Options = JUHUU.RequestOptions;
|
393
563
|
type Response = {
|
394
|
-
session: JUHUU
|
564
|
+
session: JUHUU.Session.Object;
|
395
565
|
};
|
396
566
|
}
|
397
567
|
export namespace Retrieve {
|
@@ -400,10 +570,10 @@ declare namespace JUHUU$1 {
|
|
400
570
|
};
|
401
571
|
type Options = {
|
402
572
|
expand?: Array<"property">;
|
403
|
-
} & JUHUU
|
573
|
+
} & JUHUU.RequestOptions;
|
404
574
|
type Response = {
|
405
|
-
session: JUHUU
|
406
|
-
property?: JUHUU
|
575
|
+
session: JUHUU.Session.Object;
|
576
|
+
property?: JUHUU.Property.Object;
|
407
577
|
};
|
408
578
|
}
|
409
579
|
export namespace List {
|
@@ -411,19 +581,19 @@ declare namespace JUHUU$1 {
|
|
411
581
|
propertyId?: string;
|
412
582
|
userId?: string;
|
413
583
|
managementUserId?: string;
|
414
|
-
statusArray?: JUHUU
|
584
|
+
statusArray?: JUHUU.Session.Object["status"][];
|
415
585
|
};
|
416
|
-
type Options = JUHUU
|
417
|
-
type Response = JUHUU
|
586
|
+
type Options = JUHUU.RequestOptions;
|
587
|
+
type Response = JUHUU.Session.Object[];
|
418
588
|
}
|
419
589
|
export namespace Update {
|
420
590
|
type Params = {
|
421
591
|
sessionId: string;
|
422
592
|
autoRenew: boolean;
|
423
593
|
};
|
424
|
-
type Options = JUHUU
|
594
|
+
type Options = JUHUU.RequestOptions;
|
425
595
|
type Response = {
|
426
|
-
session: JUHUU
|
596
|
+
session: JUHUU.Session.Object;
|
427
597
|
};
|
428
598
|
}
|
429
599
|
export namespace Terminate {
|
@@ -431,9 +601,9 @@ declare namespace JUHUU$1 {
|
|
431
601
|
sessionId: string;
|
432
602
|
isOffSession: boolean;
|
433
603
|
};
|
434
|
-
type Options = JUHUU
|
604
|
+
type Options = JUHUU.RequestOptions;
|
435
605
|
type Response = {
|
436
|
-
session: JUHUU
|
606
|
+
session: JUHUU.Session.Object | null;
|
437
607
|
};
|
438
608
|
}
|
439
609
|
export namespace AttachLocation {
|
@@ -441,9 +611,9 @@ declare namespace JUHUU$1 {
|
|
441
611
|
sessionId: string;
|
442
612
|
locationId: string;
|
443
613
|
};
|
444
|
-
type Options = JUHUU
|
614
|
+
type Options = JUHUU.RequestOptions;
|
445
615
|
type Response = {
|
446
|
-
session: JUHUU
|
616
|
+
session: JUHUU.Session.Object;
|
447
617
|
};
|
448
618
|
}
|
449
619
|
export { };
|
@@ -462,7 +632,7 @@ declare namespace JUHUU$1 {
|
|
462
632
|
defaultPaymentMethodId: string | null;
|
463
633
|
defaultPaymentMethodProvider: "stripe" | "not_set";
|
464
634
|
acceptedTermIdArray: string[];
|
465
|
-
licenseArray: JUHUU
|
635
|
+
licenseArray: JUHUU.License.Object[];
|
466
636
|
languageCode: LanguageCode | null;
|
467
637
|
billingAddress: DeepNullable<Address>;
|
468
638
|
billingEmail: string | null;
|
@@ -496,23 +666,23 @@ declare namespace JUHUU$1 {
|
|
496
666
|
type Params = {
|
497
667
|
userId: string;
|
498
668
|
};
|
499
|
-
type Options = JUHUU
|
669
|
+
type Options = JUHUU.RequestOptions;
|
500
670
|
type Response = {
|
501
|
-
user: JUHUU
|
671
|
+
user: JUHUU.User.Object;
|
502
672
|
};
|
503
673
|
}
|
504
674
|
export namespace List {
|
505
675
|
type Params = {
|
506
676
|
managementUserId?: string;
|
507
677
|
};
|
508
|
-
type Options = JUHUU
|
509
|
-
type Response = JUHUU
|
678
|
+
type Options = JUHUU.RequestOptions;
|
679
|
+
type Response = JUHUU.User.Object[];
|
510
680
|
}
|
511
681
|
export namespace Exists {
|
512
682
|
type Params = {
|
513
683
|
email: string;
|
514
684
|
};
|
515
|
-
type Options = JUHUU
|
685
|
+
type Options = JUHUU.RequestOptions;
|
516
686
|
type Response = {
|
517
687
|
exists: boolean;
|
518
688
|
};
|
@@ -524,14 +694,14 @@ declare namespace JUHUU$1 {
|
|
524
694
|
licenseArray?: string[];
|
525
695
|
platform?: Platform;
|
526
696
|
languageCode?: LanguageCode;
|
527
|
-
appVersion?:
|
697
|
+
appVersion?: string;
|
528
698
|
billingAddress?: DeepNullable<Address>;
|
529
699
|
vat?: string | null;
|
530
700
|
acceptedTermIdArray?: string[];
|
531
701
|
};
|
532
|
-
type Options = JUHUU
|
702
|
+
type Options = JUHUU.RequestOptions;
|
533
703
|
type Response = {
|
534
|
-
user: JUHUU
|
704
|
+
user: JUHUU.User.Object;
|
535
705
|
};
|
536
706
|
}
|
537
707
|
export namespace LoginEmailPassword {
|
@@ -539,7 +709,7 @@ declare namespace JUHUU$1 {
|
|
539
709
|
password: string;
|
540
710
|
email: string;
|
541
711
|
};
|
542
|
-
type Options = JUHUU
|
712
|
+
type Options = JUHUU.RequestOptions;
|
543
713
|
type Response = {
|
544
714
|
accessToken: string;
|
545
715
|
refreshToken: string;
|
@@ -549,7 +719,7 @@ declare namespace JUHUU$1 {
|
|
549
719
|
type Params = {
|
550
720
|
userId: string;
|
551
721
|
};
|
552
|
-
type Options = JUHUU
|
722
|
+
type Options = JUHUU.RequestOptions;
|
553
723
|
type Response = {
|
554
724
|
stripe: {
|
555
725
|
ephemeralKeySecret: string;
|
@@ -564,7 +734,7 @@ declare namespace JUHUU$1 {
|
|
564
734
|
password: string;
|
565
735
|
email: string;
|
566
736
|
};
|
567
|
-
type Options = JUHUU
|
737
|
+
type Options = JUHUU.RequestOptions;
|
568
738
|
type Response = {
|
569
739
|
accessToken: string;
|
570
740
|
refreshToken: string;
|
@@ -574,7 +744,7 @@ declare namespace JUHUU$1 {
|
|
574
744
|
type Params = {
|
575
745
|
refreshToken: string;
|
576
746
|
};
|
577
|
-
type Options = JUHUU
|
747
|
+
type Options = JUHUU.RequestOptions;
|
578
748
|
type Response = {
|
579
749
|
accessToken: string;
|
580
750
|
refreshToken: string;
|
@@ -592,7 +762,7 @@ declare namespace JUHUU$1 {
|
|
592
762
|
*/
|
593
763
|
userIdToInvite?: string;
|
594
764
|
};
|
595
|
-
type Options = JUHUU
|
765
|
+
type Options = JUHUU.RequestOptions;
|
596
766
|
type Response = void;
|
597
767
|
}
|
598
768
|
export namespace RemoveEmployee {
|
@@ -600,9 +770,9 @@ declare namespace JUHUU$1 {
|
|
600
770
|
userId: string;
|
601
771
|
userIdToRemove?: string;
|
602
772
|
};
|
603
|
-
type Options = JUHUU
|
773
|
+
type Options = JUHUU.RequestOptions;
|
604
774
|
type Response = {
|
605
|
-
user: JUHUU
|
775
|
+
user: JUHUU.User.Object;
|
606
776
|
};
|
607
777
|
}
|
608
778
|
export { };
|
@@ -621,10 +791,10 @@ declare namespace JUHUU$1 {
|
|
621
791
|
};
|
622
792
|
type Options = {
|
623
793
|
expand?: Array<"property">;
|
624
|
-
} & JUHUU
|
794
|
+
} & JUHUU.RequestOptions;
|
625
795
|
type Response = {
|
626
|
-
term: JUHUU
|
627
|
-
property?: JUHUU
|
796
|
+
term: JUHUU.Term.Object;
|
797
|
+
property?: JUHUU.Property.Object;
|
628
798
|
};
|
629
799
|
}
|
630
800
|
namespace Accept {
|
@@ -632,9 +802,9 @@ declare namespace JUHUU$1 {
|
|
632
802
|
termId: string;
|
633
803
|
userId: string;
|
634
804
|
};
|
635
|
-
type Options = JUHUU
|
805
|
+
type Options = JUHUU.RequestOptions;
|
636
806
|
type Response = {
|
637
|
-
term: JUHUU
|
807
|
+
term: JUHUU.Term.Object;
|
638
808
|
};
|
639
809
|
}
|
640
810
|
}
|
@@ -716,13 +886,13 @@ declare namespace JUHUU$1 {
|
|
716
886
|
};
|
717
887
|
type Options = {};
|
718
888
|
type Response = {
|
719
|
-
property: JUHUU
|
889
|
+
property: JUHUU.Property.Object;
|
720
890
|
};
|
721
891
|
}
|
722
892
|
export namespace List {
|
723
893
|
type Params = {};
|
724
|
-
type Options = JUHUU
|
725
|
-
type Response = JUHUU
|
894
|
+
type Options = JUHUU.RequestOptions;
|
895
|
+
type Response = JUHUU.Property.Object[];
|
726
896
|
}
|
727
897
|
export { };
|
728
898
|
}
|
@@ -759,8 +929,8 @@ declare namespace JUHUU$1 {
|
|
759
929
|
longitudeBottomRight: number;
|
760
930
|
latitudeBottomRight: number;
|
761
931
|
};
|
762
|
-
type Options = JUHUU
|
763
|
-
type Response = JUHUU
|
932
|
+
type Options = JUHUU.RequestOptions;
|
933
|
+
type Response = JUHUU.Point.Object[];
|
764
934
|
}
|
765
935
|
export { };
|
766
936
|
}
|
@@ -836,17 +1006,17 @@ declare namespace JUHUU$1 {
|
|
836
1006
|
};
|
837
1007
|
type Options = {
|
838
1008
|
expand?: Array<"property">;
|
839
|
-
} & JUHUU
|
1009
|
+
} & JUHUU.RequestOptions;
|
840
1010
|
type Response = {
|
841
|
-
payment: JUHUU
|
842
|
-
property?: JUHUU
|
1011
|
+
payment: JUHUU.Payment.Object;
|
1012
|
+
property?: JUHUU.Property.Object;
|
843
1013
|
};
|
844
1014
|
}
|
845
1015
|
namespace RetrieveInvoiceUrl {
|
846
1016
|
type Params = {
|
847
1017
|
paymentId: string;
|
848
1018
|
};
|
849
|
-
type Options = {} & JUHUU
|
1019
|
+
type Options = {} & JUHUU.RequestOptions;
|
850
1020
|
type Response = {
|
851
1021
|
invoiceUrl: string;
|
852
1022
|
};
|
@@ -857,7 +1027,7 @@ declare namespace JUHUU$1 {
|
|
857
1027
|
};
|
858
1028
|
type Options = {};
|
859
1029
|
type Response = {
|
860
|
-
payment: JUHUU
|
1030
|
+
payment: JUHUU.Payment.Object;
|
861
1031
|
tokens: {
|
862
1032
|
ephemeralKey: string;
|
863
1033
|
customer: string;
|
@@ -882,8 +1052,8 @@ declare namespace JUHUU$1 {
|
|
882
1052
|
propertyId: string;
|
883
1053
|
name: string;
|
884
1054
|
source: "fluctuo" | null;
|
885
|
-
rentOfferArray:
|
886
|
-
reservationOfferArray:
|
1055
|
+
rentOfferArray: Offer[];
|
1056
|
+
reservationOfferArray: Offer[];
|
887
1057
|
iconLight: string | null;
|
888
1058
|
iconDark: string | null;
|
889
1059
|
address: Address;
|
@@ -920,19 +1090,19 @@ declare namespace JUHUU$1 {
|
|
920
1090
|
};
|
921
1091
|
type Options = {
|
922
1092
|
expand?: Array<"property" | "tariffArray">;
|
923
|
-
} & JUHUU
|
1093
|
+
} & JUHUU.RequestOptions;
|
924
1094
|
type Response = {
|
925
|
-
location: JUHUU
|
926
|
-
property: JUHUU
|
927
|
-
tariffArray: JUHUU
|
1095
|
+
location: JUHUU.Location.Object;
|
1096
|
+
property: JUHUU.Property.Object;
|
1097
|
+
tariffArray: JUHUU.Tariff.Object[];
|
928
1098
|
};
|
929
1099
|
}
|
930
1100
|
export namespace List {
|
931
1101
|
type Params = {
|
932
1102
|
rentableDeviceGroupLocationId?: string;
|
933
1103
|
};
|
934
|
-
type Options = JUHUU
|
935
|
-
type Response = JUHUU
|
1104
|
+
type Options = JUHUU.RequestOptions;
|
1105
|
+
type Response = JUHUU.Location.Object[];
|
936
1106
|
}
|
937
1107
|
export { };
|
938
1108
|
}
|
@@ -958,8 +1128,8 @@ declare namespace JUHUU$1 {
|
|
958
1128
|
expand: Array<"property">;
|
959
1129
|
};
|
960
1130
|
type Response = {
|
961
|
-
link: JUHUU
|
962
|
-
property?: JUHUU
|
1131
|
+
link: JUHUU.Link.Object;
|
1132
|
+
property?: JUHUU.Property.Object;
|
963
1133
|
};
|
964
1134
|
}
|
965
1135
|
export namespace List {
|
@@ -968,7 +1138,7 @@ declare namespace JUHUU$1 {
|
|
968
1138
|
propertyId?: string;
|
969
1139
|
};
|
970
1140
|
type Options = {};
|
971
|
-
type Response = JUHUU
|
1141
|
+
type Response = JUHUU.Link.Object[];
|
972
1142
|
}
|
973
1143
|
export { };
|
974
1144
|
}
|
@@ -1009,11 +1179,11 @@ declare namespace JUHUU$1 {
|
|
1009
1179
|
};
|
1010
1180
|
type Options = {
|
1011
1181
|
expand?: Array<"property" | "deviceTemplate">;
|
1012
|
-
} & JUHUU
|
1182
|
+
} & JUHUU.RequestOptions;
|
1013
1183
|
type Response = {
|
1014
|
-
device: JUHUU
|
1015
|
-
deviceTemplate?: JUHUU
|
1016
|
-
property?: JUHUU
|
1184
|
+
device: JUHUU.Device.Object;
|
1185
|
+
deviceTemplate?: JUHUU.DeviceTemplate.Object;
|
1186
|
+
property?: JUHUU.Property.Object;
|
1017
1187
|
};
|
1018
1188
|
}
|
1019
1189
|
namespace List {
|
@@ -1025,19 +1195,19 @@ declare namespace JUHUU$1 {
|
|
1025
1195
|
deviceTemplateId?: string;
|
1026
1196
|
termId?: string;
|
1027
1197
|
};
|
1028
|
-
type Options = JUHUU
|
1029
|
-
type Response = JUHUU
|
1198
|
+
type Options = JUHUU.RequestOptions;
|
1199
|
+
type Response = JUHUU.Device.Object[];
|
1030
1200
|
}
|
1031
1201
|
namespace Realtime {
|
1032
1202
|
type Params = {
|
1033
1203
|
deviceId: string;
|
1034
1204
|
};
|
1035
|
-
type Options = JUHUU
|
1205
|
+
type Options = JUHUU.RequestOptions;
|
1036
1206
|
type Response = {
|
1037
1207
|
onUpdated: (callback: (message: {
|
1038
1208
|
payload: {
|
1039
|
-
after: JUHUU
|
1040
|
-
before: JUHUU
|
1209
|
+
after: JUHUU.Device.Object;
|
1210
|
+
before: JUHUU.Device.Object;
|
1041
1211
|
changedFields: string[];
|
1042
1212
|
};
|
1043
1213
|
}) => void) => void;
|
@@ -1049,7 +1219,7 @@ declare namespace JUHUU$1 {
|
|
1049
1219
|
deviceId: string;
|
1050
1220
|
message: string;
|
1051
1221
|
};
|
1052
|
-
type Options = JUHUU
|
1222
|
+
type Options = JUHUU.RequestOptions;
|
1053
1223
|
type Response = void;
|
1054
1224
|
}
|
1055
1225
|
namespace ParameterUpdate {
|
@@ -1058,9 +1228,9 @@ declare namespace JUHUU$1 {
|
|
1058
1228
|
parameterName: string;
|
1059
1229
|
value: string | number | boolean;
|
1060
1230
|
};
|
1061
|
-
type Options = JUHUU
|
1231
|
+
type Options = JUHUU.RequestOptions;
|
1062
1232
|
type Response = {
|
1063
|
-
device: JUHUU
|
1233
|
+
device: JUHUU.Device.Object;
|
1064
1234
|
};
|
1065
1235
|
}
|
1066
1236
|
namespace CommandExecute {
|
@@ -1068,9 +1238,9 @@ declare namespace JUHUU$1 {
|
|
1068
1238
|
deviceId: string;
|
1069
1239
|
commandName: string;
|
1070
1240
|
};
|
1071
|
-
type Options = JUHUU
|
1241
|
+
type Options = JUHUU.RequestOptions;
|
1072
1242
|
type Response = {
|
1073
|
-
device: JUHUU
|
1243
|
+
device: JUHUU.Device.Object;
|
1074
1244
|
};
|
1075
1245
|
}
|
1076
1246
|
}
|
@@ -1125,186 +1295,12 @@ declare namespace JUHUU$1 {
|
|
1125
1295
|
deviceTemplateId: string;
|
1126
1296
|
source?: "fluctuo" | null;
|
1127
1297
|
};
|
1128
|
-
type Options = JUHUU
|
1298
|
+
type Options = JUHUU.RequestOptions;
|
1129
1299
|
type Response = {
|
1130
|
-
deviceTemplate: JUHUU
|
1300
|
+
deviceTemplate: JUHUU.DeviceTemplate.Object;
|
1131
1301
|
};
|
1132
1302
|
}
|
1133
1303
|
}
|
1134
1304
|
}
|
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
1305
|
|
1310
|
-
export { JUHUU
|
1306
|
+
export { JUHUU, Juhuu };
|