@juhuu/sdk-ts 1.3.55 → 1.3.57
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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +170 -149
- package/dist/index.mjs +170 -149
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2205,6 +2205,7 @@ declare class AchievementsService extends Service {
|
|
|
2205
2205
|
|
|
2206
2206
|
declare class AuthService extends Service {
|
|
2207
2207
|
constructor(config: JUHUU.SetupConfig);
|
|
2208
|
+
private resolveLanguageCode;
|
|
2208
2209
|
registerEmailPassword(AuthRegisterEmailPasswordParams: JUHUU.User.RegisterEmailPassword.Params, AuthRegisterEmailPasswordOptions?: JUHUU.User.RegisterEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RegisterEmailPassword.Response>>;
|
|
2209
2210
|
loginEmailPassword(AuthLoginEmailPasswordParams: JUHUU.User.LoginEmailPassword.Params, AuthLoginEmailPasswordOptions?: JUHUU.User.LoginEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.LoginEmailPassword.Response>>;
|
|
2210
2211
|
refreshAccessToken(AuthRefreshAccessTokenParams: JUHUU.User.RefreshAccessToken.Params, AuthRefreshAccessTokenOptions?: JUHUU.User.RefreshAccessToken.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RefreshAccessToken.Response>>;
|
|
@@ -3315,6 +3316,8 @@ declare namespace JUHUU {
|
|
|
3315
3316
|
type Params = {
|
|
3316
3317
|
password: string;
|
|
3317
3318
|
email: string;
|
|
3319
|
+
propertyId?: string;
|
|
3320
|
+
languageCode?: LanguageCode;
|
|
3318
3321
|
};
|
|
3319
3322
|
type Options = JUHUU.RequestOptions;
|
|
3320
3323
|
type Response = {
|
|
@@ -3393,6 +3396,8 @@ declare namespace JUHUU {
|
|
|
3393
3396
|
countryCode: PhoneCountryCode;
|
|
3394
3397
|
nationalNumber: string;
|
|
3395
3398
|
purpose: "login" | "register" | "verify";
|
|
3399
|
+
propertyId?: string;
|
|
3400
|
+
languageCode?: LanguageCode;
|
|
3396
3401
|
};
|
|
3397
3402
|
type Options = JUHUU.RequestOptions;
|
|
3398
3403
|
type Response = {
|
|
@@ -3488,6 +3493,7 @@ declare namespace JUHUU {
|
|
|
3488
3493
|
export namespace ChangeEmailRequest {
|
|
3489
3494
|
type Params = {
|
|
3490
3495
|
email: string;
|
|
3496
|
+
propertyId?: string;
|
|
3491
3497
|
};
|
|
3492
3498
|
type Options = JUHUU.RequestOptions;
|
|
3493
3499
|
type Response = {
|
package/dist/index.d.ts
CHANGED
|
@@ -2205,6 +2205,7 @@ declare class AchievementsService extends Service {
|
|
|
2205
2205
|
|
|
2206
2206
|
declare class AuthService extends Service {
|
|
2207
2207
|
constructor(config: JUHUU.SetupConfig);
|
|
2208
|
+
private resolveLanguageCode;
|
|
2208
2209
|
registerEmailPassword(AuthRegisterEmailPasswordParams: JUHUU.User.RegisterEmailPassword.Params, AuthRegisterEmailPasswordOptions?: JUHUU.User.RegisterEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RegisterEmailPassword.Response>>;
|
|
2209
2210
|
loginEmailPassword(AuthLoginEmailPasswordParams: JUHUU.User.LoginEmailPassword.Params, AuthLoginEmailPasswordOptions?: JUHUU.User.LoginEmailPassword.Options): Promise<JUHUU.HttpResponse<JUHUU.User.LoginEmailPassword.Response>>;
|
|
2210
2211
|
refreshAccessToken(AuthRefreshAccessTokenParams: JUHUU.User.RefreshAccessToken.Params, AuthRefreshAccessTokenOptions?: JUHUU.User.RefreshAccessToken.Options): Promise<JUHUU.HttpResponse<JUHUU.User.RefreshAccessToken.Response>>;
|
|
@@ -3315,6 +3316,8 @@ declare namespace JUHUU {
|
|
|
3315
3316
|
type Params = {
|
|
3316
3317
|
password: string;
|
|
3317
3318
|
email: string;
|
|
3319
|
+
propertyId?: string;
|
|
3320
|
+
languageCode?: LanguageCode;
|
|
3318
3321
|
};
|
|
3319
3322
|
type Options = JUHUU.RequestOptions;
|
|
3320
3323
|
type Response = {
|
|
@@ -3393,6 +3396,8 @@ declare namespace JUHUU {
|
|
|
3393
3396
|
countryCode: PhoneCountryCode;
|
|
3394
3397
|
nationalNumber: string;
|
|
3395
3398
|
purpose: "login" | "register" | "verify";
|
|
3399
|
+
propertyId?: string;
|
|
3400
|
+
languageCode?: LanguageCode;
|
|
3396
3401
|
};
|
|
3397
3402
|
type Options = JUHUU.RequestOptions;
|
|
3398
3403
|
type Response = {
|
|
@@ -3488,6 +3493,7 @@ declare namespace JUHUU {
|
|
|
3488
3493
|
export namespace ChangeEmailRequest {
|
|
3489
3494
|
type Params = {
|
|
3490
3495
|
email: string;
|
|
3496
|
+
propertyId?: string;
|
|
3491
3497
|
};
|
|
3492
3498
|
type Options = JUHUU.RequestOptions;
|
|
3493
3499
|
type Response = {
|
package/dist/index.js
CHANGED
|
@@ -542,11 +542,169 @@ var AchievementsService = class extends Service {
|
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
544
|
|
|
545
|
+
// src/types/types.ts
|
|
546
|
+
var LanguageCodeArray = [
|
|
547
|
+
"en",
|
|
548
|
+
// english
|
|
549
|
+
"de",
|
|
550
|
+
// german
|
|
551
|
+
"fr",
|
|
552
|
+
// french
|
|
553
|
+
"nl",
|
|
554
|
+
// dutch
|
|
555
|
+
"it",
|
|
556
|
+
// italian
|
|
557
|
+
"cs",
|
|
558
|
+
// czech
|
|
559
|
+
"da",
|
|
560
|
+
// danish
|
|
561
|
+
"es",
|
|
562
|
+
// spanish
|
|
563
|
+
"et",
|
|
564
|
+
// estonian
|
|
565
|
+
"hr",
|
|
566
|
+
// croatian
|
|
567
|
+
"hu",
|
|
568
|
+
// hungarian
|
|
569
|
+
"no",
|
|
570
|
+
// norwegian
|
|
571
|
+
"pl",
|
|
572
|
+
// polish
|
|
573
|
+
"sv"
|
|
574
|
+
// swedish
|
|
575
|
+
];
|
|
576
|
+
var CountryCodeArray = [
|
|
577
|
+
"DE",
|
|
578
|
+
// germany
|
|
579
|
+
"AT",
|
|
580
|
+
// austria
|
|
581
|
+
"CH",
|
|
582
|
+
// switzerland
|
|
583
|
+
"LI",
|
|
584
|
+
// liechtenstein
|
|
585
|
+
"IT",
|
|
586
|
+
// italy
|
|
587
|
+
"FR",
|
|
588
|
+
// france
|
|
589
|
+
"NL",
|
|
590
|
+
// netherlands
|
|
591
|
+
"BE",
|
|
592
|
+
// belgium
|
|
593
|
+
"LU",
|
|
594
|
+
// luxembourg
|
|
595
|
+
"DK",
|
|
596
|
+
// denmark
|
|
597
|
+
"SE",
|
|
598
|
+
// sweden
|
|
599
|
+
"NO",
|
|
600
|
+
// norway
|
|
601
|
+
"FI",
|
|
602
|
+
// finland
|
|
603
|
+
"IS",
|
|
604
|
+
// iceland
|
|
605
|
+
"GB",
|
|
606
|
+
// great britain
|
|
607
|
+
"IE",
|
|
608
|
+
// ireland
|
|
609
|
+
"ES",
|
|
610
|
+
// spain
|
|
611
|
+
"PT",
|
|
612
|
+
// portugal
|
|
613
|
+
"GR",
|
|
614
|
+
// greece
|
|
615
|
+
"PL",
|
|
616
|
+
// poland
|
|
617
|
+
"CZ",
|
|
618
|
+
// czech republic
|
|
619
|
+
"SK",
|
|
620
|
+
// slovakia
|
|
621
|
+
"HU",
|
|
622
|
+
// hungary
|
|
623
|
+
"SI",
|
|
624
|
+
// slovenia
|
|
625
|
+
"HR",
|
|
626
|
+
// croatia
|
|
627
|
+
"BA",
|
|
628
|
+
// bosnia and herzegovina
|
|
629
|
+
"RS",
|
|
630
|
+
// serbia
|
|
631
|
+
"US",
|
|
632
|
+
// united states
|
|
633
|
+
"CA"
|
|
634
|
+
// canada
|
|
635
|
+
];
|
|
636
|
+
var CurrencyCodeArray = [
|
|
637
|
+
"eur",
|
|
638
|
+
// euro
|
|
639
|
+
"usd",
|
|
640
|
+
// united states
|
|
641
|
+
"gbp",
|
|
642
|
+
// great britain
|
|
643
|
+
"nok",
|
|
644
|
+
// norway
|
|
645
|
+
"sek",
|
|
646
|
+
// sweden
|
|
647
|
+
"chf",
|
|
648
|
+
// switzerland
|
|
649
|
+
"dkk",
|
|
650
|
+
// denmark
|
|
651
|
+
"pln",
|
|
652
|
+
// poland
|
|
653
|
+
"czk",
|
|
654
|
+
// czech republic
|
|
655
|
+
"huf",
|
|
656
|
+
// hungary
|
|
657
|
+
"bam",
|
|
658
|
+
// bosnia and herzegovina
|
|
659
|
+
"rsd",
|
|
660
|
+
// serbia
|
|
661
|
+
"isk",
|
|
662
|
+
// iceland
|
|
663
|
+
"cad"
|
|
664
|
+
// canada
|
|
665
|
+
];
|
|
666
|
+
var ReadonlySectorArray = ["tourism", "mobility", "sport"];
|
|
667
|
+
var ReadonlyCategoryArray = [
|
|
668
|
+
"bike",
|
|
669
|
+
"car",
|
|
670
|
+
"scooter",
|
|
671
|
+
"boat",
|
|
672
|
+
"moped"
|
|
673
|
+
];
|
|
674
|
+
var ReadonlyModalityArray = [
|
|
675
|
+
"charge",
|
|
676
|
+
"store",
|
|
677
|
+
"share",
|
|
678
|
+
"wash",
|
|
679
|
+
"repair"
|
|
680
|
+
];
|
|
681
|
+
var ConditionType = /* @__PURE__ */ ((ConditionType2) => {
|
|
682
|
+
ConditionType2["Equal"] = "==";
|
|
683
|
+
ConditionType2["NotEqual"] = "!=";
|
|
684
|
+
ConditionType2["LessThan"] = "<";
|
|
685
|
+
ConditionType2["GreaterThan"] = ">";
|
|
686
|
+
ConditionType2["LessThanOrEqual"] = "<=";
|
|
687
|
+
ConditionType2["GreaterThanOrEqual"] = ">=";
|
|
688
|
+
return ConditionType2;
|
|
689
|
+
})(ConditionType || {});
|
|
690
|
+
|
|
545
691
|
// src/auth/auth.service.ts
|
|
546
692
|
var AuthService = class extends Service {
|
|
547
693
|
constructor(config) {
|
|
548
694
|
super(config);
|
|
549
695
|
}
|
|
696
|
+
//Resolves the language code for an auth flow
|
|
697
|
+
resolveLanguageCode(explicit) {
|
|
698
|
+
if (explicit !== void 0) {
|
|
699
|
+
return explicit;
|
|
700
|
+
}
|
|
701
|
+
const nav = typeof navigator !== "undefined" ? navigator.language : void 0;
|
|
702
|
+
if (nav === void 0) {
|
|
703
|
+
return void 0;
|
|
704
|
+
}
|
|
705
|
+
const primary = nav.split("-")[0]?.toLowerCase();
|
|
706
|
+
return LanguageCodeArray.includes(primary ?? "") ? primary : void 0;
|
|
707
|
+
}
|
|
550
708
|
async registerEmailPassword(AuthRegisterEmailPasswordParams, AuthRegisterEmailPasswordOptions) {
|
|
551
709
|
return await super.sendRequest(
|
|
552
710
|
{
|
|
@@ -554,7 +712,11 @@ var AuthService = class extends Service {
|
|
|
554
712
|
url: "auth/emailPassword/register",
|
|
555
713
|
body: {
|
|
556
714
|
email: AuthRegisterEmailPasswordParams.email,
|
|
557
|
-
password: AuthRegisterEmailPasswordParams.password
|
|
715
|
+
password: AuthRegisterEmailPasswordParams.password,
|
|
716
|
+
propertyId: AuthRegisterEmailPasswordParams.propertyId,
|
|
717
|
+
languageCode: this.resolveLanguageCode(
|
|
718
|
+
AuthRegisterEmailPasswordParams.languageCode
|
|
719
|
+
)
|
|
558
720
|
},
|
|
559
721
|
authenticationNotOptional: false
|
|
560
722
|
},
|
|
@@ -611,7 +773,11 @@ var AuthService = class extends Service {
|
|
|
611
773
|
destination: AuthOtpRequestParams.destination,
|
|
612
774
|
countryCode: AuthOtpRequestParams.countryCode,
|
|
613
775
|
nationalNumber: AuthOtpRequestParams.nationalNumber,
|
|
614
|
-
purpose: AuthOtpRequestParams.purpose
|
|
776
|
+
purpose: AuthOtpRequestParams.purpose,
|
|
777
|
+
propertyId: AuthOtpRequestParams.propertyId,
|
|
778
|
+
languageCode: this.resolveLanguageCode(
|
|
779
|
+
AuthOtpRequestParams.languageCode
|
|
780
|
+
)
|
|
615
781
|
},
|
|
616
782
|
authenticationNotOptional: false
|
|
617
783
|
},
|
|
@@ -731,7 +897,8 @@ var AuthService = class extends Service {
|
|
|
731
897
|
method: "POST",
|
|
732
898
|
url: "auth/email/change",
|
|
733
899
|
body: {
|
|
734
|
-
email: AuthChangeEmailRequestParams.email
|
|
900
|
+
email: AuthChangeEmailRequestParams.email,
|
|
901
|
+
propertyId: AuthChangeEmailRequestParams.propertyId
|
|
735
902
|
},
|
|
736
903
|
authenticationNotOptional: true
|
|
737
904
|
},
|
|
@@ -6297,152 +6464,6 @@ var ApplicationVersionsService = class extends Service {
|
|
|
6297
6464
|
}
|
|
6298
6465
|
};
|
|
6299
6466
|
|
|
6300
|
-
// src/types/types.ts
|
|
6301
|
-
var LanguageCodeArray = [
|
|
6302
|
-
"en",
|
|
6303
|
-
// english
|
|
6304
|
-
"de",
|
|
6305
|
-
// german
|
|
6306
|
-
"fr",
|
|
6307
|
-
// french
|
|
6308
|
-
"nl",
|
|
6309
|
-
// dutch
|
|
6310
|
-
"it",
|
|
6311
|
-
// italian
|
|
6312
|
-
"cs",
|
|
6313
|
-
// czech
|
|
6314
|
-
"da",
|
|
6315
|
-
// danish
|
|
6316
|
-
"es",
|
|
6317
|
-
// spanish
|
|
6318
|
-
"et",
|
|
6319
|
-
// estonian
|
|
6320
|
-
"hr",
|
|
6321
|
-
// croatian
|
|
6322
|
-
"hu",
|
|
6323
|
-
// hungarian
|
|
6324
|
-
"no",
|
|
6325
|
-
// norwegian
|
|
6326
|
-
"pl",
|
|
6327
|
-
// polish
|
|
6328
|
-
"sv"
|
|
6329
|
-
// swedish
|
|
6330
|
-
];
|
|
6331
|
-
var CountryCodeArray = [
|
|
6332
|
-
"DE",
|
|
6333
|
-
// germany
|
|
6334
|
-
"AT",
|
|
6335
|
-
// austria
|
|
6336
|
-
"CH",
|
|
6337
|
-
// switzerland
|
|
6338
|
-
"LI",
|
|
6339
|
-
// liechtenstein
|
|
6340
|
-
"IT",
|
|
6341
|
-
// italy
|
|
6342
|
-
"FR",
|
|
6343
|
-
// france
|
|
6344
|
-
"NL",
|
|
6345
|
-
// netherlands
|
|
6346
|
-
"BE",
|
|
6347
|
-
// belgium
|
|
6348
|
-
"LU",
|
|
6349
|
-
// luxembourg
|
|
6350
|
-
"DK",
|
|
6351
|
-
// denmark
|
|
6352
|
-
"SE",
|
|
6353
|
-
// sweden
|
|
6354
|
-
"NO",
|
|
6355
|
-
// norway
|
|
6356
|
-
"FI",
|
|
6357
|
-
// finland
|
|
6358
|
-
"IS",
|
|
6359
|
-
// iceland
|
|
6360
|
-
"GB",
|
|
6361
|
-
// great britain
|
|
6362
|
-
"IE",
|
|
6363
|
-
// ireland
|
|
6364
|
-
"ES",
|
|
6365
|
-
// spain
|
|
6366
|
-
"PT",
|
|
6367
|
-
// portugal
|
|
6368
|
-
"GR",
|
|
6369
|
-
// greece
|
|
6370
|
-
"PL",
|
|
6371
|
-
// poland
|
|
6372
|
-
"CZ",
|
|
6373
|
-
// czech republic
|
|
6374
|
-
"SK",
|
|
6375
|
-
// slovakia
|
|
6376
|
-
"HU",
|
|
6377
|
-
// hungary
|
|
6378
|
-
"SI",
|
|
6379
|
-
// slovenia
|
|
6380
|
-
"HR",
|
|
6381
|
-
// croatia
|
|
6382
|
-
"BA",
|
|
6383
|
-
// bosnia and herzegovina
|
|
6384
|
-
"RS",
|
|
6385
|
-
// serbia
|
|
6386
|
-
"US",
|
|
6387
|
-
// united states
|
|
6388
|
-
"CA"
|
|
6389
|
-
// canada
|
|
6390
|
-
];
|
|
6391
|
-
var CurrencyCodeArray = [
|
|
6392
|
-
"eur",
|
|
6393
|
-
// euro
|
|
6394
|
-
"usd",
|
|
6395
|
-
// united states
|
|
6396
|
-
"gbp",
|
|
6397
|
-
// great britain
|
|
6398
|
-
"nok",
|
|
6399
|
-
// norway
|
|
6400
|
-
"sek",
|
|
6401
|
-
// sweden
|
|
6402
|
-
"chf",
|
|
6403
|
-
// switzerland
|
|
6404
|
-
"dkk",
|
|
6405
|
-
// denmark
|
|
6406
|
-
"pln",
|
|
6407
|
-
// poland
|
|
6408
|
-
"czk",
|
|
6409
|
-
// czech republic
|
|
6410
|
-
"huf",
|
|
6411
|
-
// hungary
|
|
6412
|
-
"bam",
|
|
6413
|
-
// bosnia and herzegovina
|
|
6414
|
-
"rsd",
|
|
6415
|
-
// serbia
|
|
6416
|
-
"isk",
|
|
6417
|
-
// iceland
|
|
6418
|
-
"cad"
|
|
6419
|
-
// canada
|
|
6420
|
-
];
|
|
6421
|
-
var ReadonlySectorArray = ["tourism", "mobility", "sport"];
|
|
6422
|
-
var ReadonlyCategoryArray = [
|
|
6423
|
-
"bike",
|
|
6424
|
-
"car",
|
|
6425
|
-
"scooter",
|
|
6426
|
-
"boat",
|
|
6427
|
-
"moped"
|
|
6428
|
-
];
|
|
6429
|
-
var ReadonlyModalityArray = [
|
|
6430
|
-
"charge",
|
|
6431
|
-
"store",
|
|
6432
|
-
"share",
|
|
6433
|
-
"wash",
|
|
6434
|
-
"repair"
|
|
6435
|
-
];
|
|
6436
|
-
var ConditionType = /* @__PURE__ */ ((ConditionType2) => {
|
|
6437
|
-
ConditionType2["Equal"] = "==";
|
|
6438
|
-
ConditionType2["NotEqual"] = "!=";
|
|
6439
|
-
ConditionType2["LessThan"] = "<";
|
|
6440
|
-
ConditionType2["GreaterThan"] = ">";
|
|
6441
|
-
ConditionType2["LessThanOrEqual"] = "<=";
|
|
6442
|
-
ConditionType2["GreaterThanOrEqual"] = ">=";
|
|
6443
|
-
return ConditionType2;
|
|
6444
|
-
})(ConditionType || {});
|
|
6445
|
-
|
|
6446
6467
|
// src/index.ts
|
|
6447
6468
|
var Juhuu = class {
|
|
6448
6469
|
constructor(config) {
|
package/dist/index.mjs
CHANGED
|
@@ -498,11 +498,169 @@ var AchievementsService = class extends Service {
|
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
|
|
501
|
+
// src/types/types.ts
|
|
502
|
+
var LanguageCodeArray = [
|
|
503
|
+
"en",
|
|
504
|
+
// english
|
|
505
|
+
"de",
|
|
506
|
+
// german
|
|
507
|
+
"fr",
|
|
508
|
+
// french
|
|
509
|
+
"nl",
|
|
510
|
+
// dutch
|
|
511
|
+
"it",
|
|
512
|
+
// italian
|
|
513
|
+
"cs",
|
|
514
|
+
// czech
|
|
515
|
+
"da",
|
|
516
|
+
// danish
|
|
517
|
+
"es",
|
|
518
|
+
// spanish
|
|
519
|
+
"et",
|
|
520
|
+
// estonian
|
|
521
|
+
"hr",
|
|
522
|
+
// croatian
|
|
523
|
+
"hu",
|
|
524
|
+
// hungarian
|
|
525
|
+
"no",
|
|
526
|
+
// norwegian
|
|
527
|
+
"pl",
|
|
528
|
+
// polish
|
|
529
|
+
"sv"
|
|
530
|
+
// swedish
|
|
531
|
+
];
|
|
532
|
+
var CountryCodeArray = [
|
|
533
|
+
"DE",
|
|
534
|
+
// germany
|
|
535
|
+
"AT",
|
|
536
|
+
// austria
|
|
537
|
+
"CH",
|
|
538
|
+
// switzerland
|
|
539
|
+
"LI",
|
|
540
|
+
// liechtenstein
|
|
541
|
+
"IT",
|
|
542
|
+
// italy
|
|
543
|
+
"FR",
|
|
544
|
+
// france
|
|
545
|
+
"NL",
|
|
546
|
+
// netherlands
|
|
547
|
+
"BE",
|
|
548
|
+
// belgium
|
|
549
|
+
"LU",
|
|
550
|
+
// luxembourg
|
|
551
|
+
"DK",
|
|
552
|
+
// denmark
|
|
553
|
+
"SE",
|
|
554
|
+
// sweden
|
|
555
|
+
"NO",
|
|
556
|
+
// norway
|
|
557
|
+
"FI",
|
|
558
|
+
// finland
|
|
559
|
+
"IS",
|
|
560
|
+
// iceland
|
|
561
|
+
"GB",
|
|
562
|
+
// great britain
|
|
563
|
+
"IE",
|
|
564
|
+
// ireland
|
|
565
|
+
"ES",
|
|
566
|
+
// spain
|
|
567
|
+
"PT",
|
|
568
|
+
// portugal
|
|
569
|
+
"GR",
|
|
570
|
+
// greece
|
|
571
|
+
"PL",
|
|
572
|
+
// poland
|
|
573
|
+
"CZ",
|
|
574
|
+
// czech republic
|
|
575
|
+
"SK",
|
|
576
|
+
// slovakia
|
|
577
|
+
"HU",
|
|
578
|
+
// hungary
|
|
579
|
+
"SI",
|
|
580
|
+
// slovenia
|
|
581
|
+
"HR",
|
|
582
|
+
// croatia
|
|
583
|
+
"BA",
|
|
584
|
+
// bosnia and herzegovina
|
|
585
|
+
"RS",
|
|
586
|
+
// serbia
|
|
587
|
+
"US",
|
|
588
|
+
// united states
|
|
589
|
+
"CA"
|
|
590
|
+
// canada
|
|
591
|
+
];
|
|
592
|
+
var CurrencyCodeArray = [
|
|
593
|
+
"eur",
|
|
594
|
+
// euro
|
|
595
|
+
"usd",
|
|
596
|
+
// united states
|
|
597
|
+
"gbp",
|
|
598
|
+
// great britain
|
|
599
|
+
"nok",
|
|
600
|
+
// norway
|
|
601
|
+
"sek",
|
|
602
|
+
// sweden
|
|
603
|
+
"chf",
|
|
604
|
+
// switzerland
|
|
605
|
+
"dkk",
|
|
606
|
+
// denmark
|
|
607
|
+
"pln",
|
|
608
|
+
// poland
|
|
609
|
+
"czk",
|
|
610
|
+
// czech republic
|
|
611
|
+
"huf",
|
|
612
|
+
// hungary
|
|
613
|
+
"bam",
|
|
614
|
+
// bosnia and herzegovina
|
|
615
|
+
"rsd",
|
|
616
|
+
// serbia
|
|
617
|
+
"isk",
|
|
618
|
+
// iceland
|
|
619
|
+
"cad"
|
|
620
|
+
// canada
|
|
621
|
+
];
|
|
622
|
+
var ReadonlySectorArray = ["tourism", "mobility", "sport"];
|
|
623
|
+
var ReadonlyCategoryArray = [
|
|
624
|
+
"bike",
|
|
625
|
+
"car",
|
|
626
|
+
"scooter",
|
|
627
|
+
"boat",
|
|
628
|
+
"moped"
|
|
629
|
+
];
|
|
630
|
+
var ReadonlyModalityArray = [
|
|
631
|
+
"charge",
|
|
632
|
+
"store",
|
|
633
|
+
"share",
|
|
634
|
+
"wash",
|
|
635
|
+
"repair"
|
|
636
|
+
];
|
|
637
|
+
var ConditionType = /* @__PURE__ */ ((ConditionType2) => {
|
|
638
|
+
ConditionType2["Equal"] = "==";
|
|
639
|
+
ConditionType2["NotEqual"] = "!=";
|
|
640
|
+
ConditionType2["LessThan"] = "<";
|
|
641
|
+
ConditionType2["GreaterThan"] = ">";
|
|
642
|
+
ConditionType2["LessThanOrEqual"] = "<=";
|
|
643
|
+
ConditionType2["GreaterThanOrEqual"] = ">=";
|
|
644
|
+
return ConditionType2;
|
|
645
|
+
})(ConditionType || {});
|
|
646
|
+
|
|
501
647
|
// src/auth/auth.service.ts
|
|
502
648
|
var AuthService = class extends Service {
|
|
503
649
|
constructor(config) {
|
|
504
650
|
super(config);
|
|
505
651
|
}
|
|
652
|
+
//Resolves the language code for an auth flow
|
|
653
|
+
resolveLanguageCode(explicit) {
|
|
654
|
+
if (explicit !== void 0) {
|
|
655
|
+
return explicit;
|
|
656
|
+
}
|
|
657
|
+
const nav = typeof navigator !== "undefined" ? navigator.language : void 0;
|
|
658
|
+
if (nav === void 0) {
|
|
659
|
+
return void 0;
|
|
660
|
+
}
|
|
661
|
+
const primary = nav.split("-")[0]?.toLowerCase();
|
|
662
|
+
return LanguageCodeArray.includes(primary ?? "") ? primary : void 0;
|
|
663
|
+
}
|
|
506
664
|
async registerEmailPassword(AuthRegisterEmailPasswordParams, AuthRegisterEmailPasswordOptions) {
|
|
507
665
|
return await super.sendRequest(
|
|
508
666
|
{
|
|
@@ -510,7 +668,11 @@ var AuthService = class extends Service {
|
|
|
510
668
|
url: "auth/emailPassword/register",
|
|
511
669
|
body: {
|
|
512
670
|
email: AuthRegisterEmailPasswordParams.email,
|
|
513
|
-
password: AuthRegisterEmailPasswordParams.password
|
|
671
|
+
password: AuthRegisterEmailPasswordParams.password,
|
|
672
|
+
propertyId: AuthRegisterEmailPasswordParams.propertyId,
|
|
673
|
+
languageCode: this.resolveLanguageCode(
|
|
674
|
+
AuthRegisterEmailPasswordParams.languageCode
|
|
675
|
+
)
|
|
514
676
|
},
|
|
515
677
|
authenticationNotOptional: false
|
|
516
678
|
},
|
|
@@ -567,7 +729,11 @@ var AuthService = class extends Service {
|
|
|
567
729
|
destination: AuthOtpRequestParams.destination,
|
|
568
730
|
countryCode: AuthOtpRequestParams.countryCode,
|
|
569
731
|
nationalNumber: AuthOtpRequestParams.nationalNumber,
|
|
570
|
-
purpose: AuthOtpRequestParams.purpose
|
|
732
|
+
purpose: AuthOtpRequestParams.purpose,
|
|
733
|
+
propertyId: AuthOtpRequestParams.propertyId,
|
|
734
|
+
languageCode: this.resolveLanguageCode(
|
|
735
|
+
AuthOtpRequestParams.languageCode
|
|
736
|
+
)
|
|
571
737
|
},
|
|
572
738
|
authenticationNotOptional: false
|
|
573
739
|
},
|
|
@@ -687,7 +853,8 @@ var AuthService = class extends Service {
|
|
|
687
853
|
method: "POST",
|
|
688
854
|
url: "auth/email/change",
|
|
689
855
|
body: {
|
|
690
|
-
email: AuthChangeEmailRequestParams.email
|
|
856
|
+
email: AuthChangeEmailRequestParams.email,
|
|
857
|
+
propertyId: AuthChangeEmailRequestParams.propertyId
|
|
691
858
|
},
|
|
692
859
|
authenticationNotOptional: true
|
|
693
860
|
},
|
|
@@ -6253,152 +6420,6 @@ var ApplicationVersionsService = class extends Service {
|
|
|
6253
6420
|
}
|
|
6254
6421
|
};
|
|
6255
6422
|
|
|
6256
|
-
// src/types/types.ts
|
|
6257
|
-
var LanguageCodeArray = [
|
|
6258
|
-
"en",
|
|
6259
|
-
// english
|
|
6260
|
-
"de",
|
|
6261
|
-
// german
|
|
6262
|
-
"fr",
|
|
6263
|
-
// french
|
|
6264
|
-
"nl",
|
|
6265
|
-
// dutch
|
|
6266
|
-
"it",
|
|
6267
|
-
// italian
|
|
6268
|
-
"cs",
|
|
6269
|
-
// czech
|
|
6270
|
-
"da",
|
|
6271
|
-
// danish
|
|
6272
|
-
"es",
|
|
6273
|
-
// spanish
|
|
6274
|
-
"et",
|
|
6275
|
-
// estonian
|
|
6276
|
-
"hr",
|
|
6277
|
-
// croatian
|
|
6278
|
-
"hu",
|
|
6279
|
-
// hungarian
|
|
6280
|
-
"no",
|
|
6281
|
-
// norwegian
|
|
6282
|
-
"pl",
|
|
6283
|
-
// polish
|
|
6284
|
-
"sv"
|
|
6285
|
-
// swedish
|
|
6286
|
-
];
|
|
6287
|
-
var CountryCodeArray = [
|
|
6288
|
-
"DE",
|
|
6289
|
-
// germany
|
|
6290
|
-
"AT",
|
|
6291
|
-
// austria
|
|
6292
|
-
"CH",
|
|
6293
|
-
// switzerland
|
|
6294
|
-
"LI",
|
|
6295
|
-
// liechtenstein
|
|
6296
|
-
"IT",
|
|
6297
|
-
// italy
|
|
6298
|
-
"FR",
|
|
6299
|
-
// france
|
|
6300
|
-
"NL",
|
|
6301
|
-
// netherlands
|
|
6302
|
-
"BE",
|
|
6303
|
-
// belgium
|
|
6304
|
-
"LU",
|
|
6305
|
-
// luxembourg
|
|
6306
|
-
"DK",
|
|
6307
|
-
// denmark
|
|
6308
|
-
"SE",
|
|
6309
|
-
// sweden
|
|
6310
|
-
"NO",
|
|
6311
|
-
// norway
|
|
6312
|
-
"FI",
|
|
6313
|
-
// finland
|
|
6314
|
-
"IS",
|
|
6315
|
-
// iceland
|
|
6316
|
-
"GB",
|
|
6317
|
-
// great britain
|
|
6318
|
-
"IE",
|
|
6319
|
-
// ireland
|
|
6320
|
-
"ES",
|
|
6321
|
-
// spain
|
|
6322
|
-
"PT",
|
|
6323
|
-
// portugal
|
|
6324
|
-
"GR",
|
|
6325
|
-
// greece
|
|
6326
|
-
"PL",
|
|
6327
|
-
// poland
|
|
6328
|
-
"CZ",
|
|
6329
|
-
// czech republic
|
|
6330
|
-
"SK",
|
|
6331
|
-
// slovakia
|
|
6332
|
-
"HU",
|
|
6333
|
-
// hungary
|
|
6334
|
-
"SI",
|
|
6335
|
-
// slovenia
|
|
6336
|
-
"HR",
|
|
6337
|
-
// croatia
|
|
6338
|
-
"BA",
|
|
6339
|
-
// bosnia and herzegovina
|
|
6340
|
-
"RS",
|
|
6341
|
-
// serbia
|
|
6342
|
-
"US",
|
|
6343
|
-
// united states
|
|
6344
|
-
"CA"
|
|
6345
|
-
// canada
|
|
6346
|
-
];
|
|
6347
|
-
var CurrencyCodeArray = [
|
|
6348
|
-
"eur",
|
|
6349
|
-
// euro
|
|
6350
|
-
"usd",
|
|
6351
|
-
// united states
|
|
6352
|
-
"gbp",
|
|
6353
|
-
// great britain
|
|
6354
|
-
"nok",
|
|
6355
|
-
// norway
|
|
6356
|
-
"sek",
|
|
6357
|
-
// sweden
|
|
6358
|
-
"chf",
|
|
6359
|
-
// switzerland
|
|
6360
|
-
"dkk",
|
|
6361
|
-
// denmark
|
|
6362
|
-
"pln",
|
|
6363
|
-
// poland
|
|
6364
|
-
"czk",
|
|
6365
|
-
// czech republic
|
|
6366
|
-
"huf",
|
|
6367
|
-
// hungary
|
|
6368
|
-
"bam",
|
|
6369
|
-
// bosnia and herzegovina
|
|
6370
|
-
"rsd",
|
|
6371
|
-
// serbia
|
|
6372
|
-
"isk",
|
|
6373
|
-
// iceland
|
|
6374
|
-
"cad"
|
|
6375
|
-
// canada
|
|
6376
|
-
];
|
|
6377
|
-
var ReadonlySectorArray = ["tourism", "mobility", "sport"];
|
|
6378
|
-
var ReadonlyCategoryArray = [
|
|
6379
|
-
"bike",
|
|
6380
|
-
"car",
|
|
6381
|
-
"scooter",
|
|
6382
|
-
"boat",
|
|
6383
|
-
"moped"
|
|
6384
|
-
];
|
|
6385
|
-
var ReadonlyModalityArray = [
|
|
6386
|
-
"charge",
|
|
6387
|
-
"store",
|
|
6388
|
-
"share",
|
|
6389
|
-
"wash",
|
|
6390
|
-
"repair"
|
|
6391
|
-
];
|
|
6392
|
-
var ConditionType = /* @__PURE__ */ ((ConditionType2) => {
|
|
6393
|
-
ConditionType2["Equal"] = "==";
|
|
6394
|
-
ConditionType2["NotEqual"] = "!=";
|
|
6395
|
-
ConditionType2["LessThan"] = "<";
|
|
6396
|
-
ConditionType2["GreaterThan"] = ">";
|
|
6397
|
-
ConditionType2["LessThanOrEqual"] = "<=";
|
|
6398
|
-
ConditionType2["GreaterThanOrEqual"] = ">=";
|
|
6399
|
-
return ConditionType2;
|
|
6400
|
-
})(ConditionType || {});
|
|
6401
|
-
|
|
6402
6423
|
// src/index.ts
|
|
6403
6424
|
var Juhuu = class {
|
|
6404
6425
|
constructor(config) {
|