@saritasa/renewaire-frontend-sdk 0.2.0 → 0.4.0

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/index.d.ts CHANGED
@@ -241,6 +241,52 @@ declare enum AddressDtoCountryEnum {
241
241
  Mexico = "Mexico"
242
242
  }
243
243
 
244
+ /**
245
+ * RenewAire CORES API
246
+ *
247
+ * Contact: renewaire@saritasa.com
248
+ *
249
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
250
+ * https://openapi-generator.tech
251
+ * Do not edit the class manually.
252
+ */
253
+ /**
254
+ * Change current user password command.
255
+ */
256
+ interface ChangeCurrentUserPasswordCommand {
257
+ /**
258
+ * Current password.
259
+ */
260
+ currentPassword: string;
261
+ /**
262
+ * New password.
263
+ */
264
+ newPassword: string;
265
+ }
266
+
267
+ /**
268
+ * RenewAire CORES API
269
+ *
270
+ * Contact: renewaire@saritasa.com
271
+ *
272
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
273
+ * https://openapi-generator.tech
274
+ * Do not edit the class manually.
275
+ */
276
+ /**
277
+ * Change email command.
278
+ */
279
+ interface ChangeEmailCommand {
280
+ /**
281
+ * New email.
282
+ */
283
+ newEmail: string;
284
+ /**
285
+ * Change email token.
286
+ */
287
+ token: string;
288
+ }
289
+
244
290
  /**
245
291
  * RenewAire CORES API
246
292
  *
@@ -400,6 +446,34 @@ interface CreateUploadUrlCommand {
400
446
  fileName: string;
401
447
  }
402
448
 
449
+ /**
450
+ * RenewAire CORES API
451
+ *
452
+ * Contact: renewaire@saritasa.com
453
+ *
454
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
455
+ * https://openapi-generator.tech
456
+ * Do not edit the class manually.
457
+ */
458
+ /**
459
+ * DTO for RenewAire.Cores.Domain.Users.User.
460
+ */
461
+ interface CurrentUserDto {
462
+ id: number;
463
+ /**
464
+ * RegistrationStatus<br />0 = EmailVerification<br />1 = SetPassword<br />2 = SetProfile<br />3 = SetAddress<br />4 = SetOccupation<br />5 = Completed
465
+ */
466
+ registrationStatus: CurrentUserDtoRegistrationStatusEnum;
467
+ }
468
+ declare enum CurrentUserDtoRegistrationStatusEnum {
469
+ EmailVerification = "EmailVerification",
470
+ SetPassword = "SetPassword",
471
+ SetProfile = "SetProfile",
472
+ SetAddress = "SetAddress",
473
+ SetOccupation = "SetOccupation",
474
+ Completed = "Completed"
475
+ }
476
+
403
477
  /**
404
478
  * RenewAire CORES API
405
479
  *
@@ -497,22 +571,6 @@ interface ForgotPasswordCommand {
497
571
  email: string;
498
572
  }
499
573
 
500
- /**
501
- * RenewAire CORES API
502
- *
503
- * Contact: renewaire@saritasa.com
504
- *
505
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
506
- * https://openapi-generator.tech
507
- * Do not edit the class manually.
508
- */
509
- /**
510
- * DTO to return Id of entity.
511
- */
512
- interface Int32IdDto {
513
- id: number;
514
- }
515
-
516
574
  /**
517
575
  * RenewAire CORES API
518
576
  *
@@ -638,39 +696,6 @@ interface PermissionDto {
638
696
  description: string;
639
697
  }
640
698
 
641
- /**
642
- * RenewAire CORES API
643
- *
644
- * Contact: renewaire@saritasa.com
645
- *
646
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
647
- * https://openapi-generator.tech
648
- * Do not edit the class manually.
649
- */
650
- /**
651
- * Physical address.
652
- */
653
- interface PhysicalAddressDto {
654
- /**
655
- * Address display name.
656
- */
657
- displayAddress: string;
658
- street1: string;
659
- stateCode: string;
660
- /**
661
- * Country name.
662
- */
663
- country: string;
664
- /**
665
- * Postal code.
666
- */
667
- postalCode: string;
668
- apartmentNumber?: string | null;
669
- street2?: string | null;
670
- county?: string | null;
671
- city?: string | null;
672
- }
673
-
674
699
  /**
675
700
  * RenewAire CORES API
676
701
  *
@@ -751,6 +776,27 @@ declare enum RegionLevel {
751
776
  County = "County"
752
777
  }
753
778
 
779
+ /**
780
+ * RenewAire CORES API
781
+ *
782
+ * Contact: renewaire@saritasa.com
783
+ *
784
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
785
+ * https://openapi-generator.tech
786
+ * Do not edit the class manually.
787
+ */
788
+ /**
789
+ * RegistrationStatus<br />0 = EmailVerification<br />1 = SetPassword<br />2 = SetProfile<br />3 = SetAddress<br />4 = SetOccupation<br />5 = Completed
790
+ */
791
+ declare enum RegistrationStatus {
792
+ EmailVerification = "EmailVerification",
793
+ SetPassword = "SetPassword",
794
+ SetProfile = "SetProfile",
795
+ SetAddress = "SetAddress",
796
+ SetOccupation = "SetOccupation",
797
+ Completed = "Completed"
798
+ }
799
+
754
800
  /**
755
801
  * RenewAire CORES API
756
802
  *
@@ -878,6 +924,25 @@ interface RepTerritoryLocationDto {
878
924
  regions: Array<RegionDto>;
879
925
  }
880
926
 
927
+ /**
928
+ * RenewAire CORES API
929
+ *
930
+ * Contact: renewaire@saritasa.com
931
+ *
932
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
933
+ * https://openapi-generator.tech
934
+ * Do not edit the class manually.
935
+ */
936
+ /**
937
+ * Request change email token for current user command.
938
+ */
939
+ interface RequestChangeEmailCommand {
940
+ /**
941
+ * New email.
942
+ */
943
+ newEmail: string;
944
+ }
945
+
881
946
  /**
882
947
  * RenewAire CORES API
883
948
  *
@@ -1383,6 +1448,67 @@ interface SearchRsdRegionDtoPagedListMetadataDto {
1383
1448
  items: Array<SearchRsdRegionDto>;
1384
1449
  }
1385
1450
 
1451
+ /**
1452
+ * RenewAire CORES API
1453
+ *
1454
+ * Contact: renewaire@saritasa.com
1455
+ *
1456
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1457
+ * https://openapi-generator.tech
1458
+ * Do not edit the class manually.
1459
+ */
1460
+ /**
1461
+ * Set address DTO.
1462
+ */
1463
+ interface SetAddressDto {
1464
+ /**
1465
+ * Country name.
1466
+ */
1467
+ countryName: string;
1468
+ address1: string;
1469
+ address2: string;
1470
+ city: string;
1471
+ county: string;
1472
+ state: string;
1473
+ postalCode: string;
1474
+ apartmentNumber: string;
1475
+ }
1476
+
1477
+ /**
1478
+ * RenewAire CORES API
1479
+ *
1480
+ * Contact: renewaire@saritasa.com
1481
+ *
1482
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1483
+ * https://openapi-generator.tech
1484
+ * Do not edit the class manually.
1485
+ */
1486
+ /**
1487
+ * Set user occupation command.
1488
+ */
1489
+ interface SetUserOccupationCommand {
1490
+ occupation: string;
1491
+ }
1492
+
1493
+ /**
1494
+ * RenewAire CORES API
1495
+ *
1496
+ * Contact: renewaire@saritasa.com
1497
+ *
1498
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1499
+ * https://openapi-generator.tech
1500
+ * Do not edit the class manually.
1501
+ */
1502
+ /**
1503
+ * Create user password command.
1504
+ */
1505
+ interface SetUserPasswordCommand {
1506
+ /**
1507
+ * Password.
1508
+ */
1509
+ password: string;
1510
+ }
1511
+
1386
1512
  /**
1387
1513
  * RenewAire CORES API
1388
1514
  *
@@ -1522,10 +1648,25 @@ interface UserEmailDto {
1522
1648
  * Do not edit the class manually.
1523
1649
  */
1524
1650
  /**
1525
- * User preferences DTO.
1651
+ * User permission source DTO.
1526
1652
  */
1527
- interface UserPreferencesDto {
1528
- occupation: string;
1653
+ interface UserPermissionSourceDto {
1654
+ /**
1655
+ * Permission bundle ID.
1656
+ */
1657
+ permissionBundleId: object;
1658
+ /**
1659
+ * Permission bundle name.
1660
+ */
1661
+ permissionBundleName: string;
1662
+ /**
1663
+ * Group ID. Null If these are personal permission bundle.
1664
+ */
1665
+ groupId?: object | null;
1666
+ /**
1667
+ * Group name. Null If these are personal permission bundle.
1668
+ */
1669
+ groupName?: string | null;
1529
1670
  }
1530
1671
 
1531
1672
  /**
@@ -1537,26 +1678,27 @@ interface UserPreferencesDto {
1537
1678
  * https://openapi-generator.tech
1538
1679
  * Do not edit the class manually.
1539
1680
  */
1681
+
1540
1682
  /**
1541
- * User profile DTO.
1683
+ * User permissions DTO.
1542
1684
  */
1543
- interface UserProfileDto {
1544
- firstName: string;
1545
- lastName: string;
1546
- company: string;
1547
- title: string;
1685
+ interface UserPermissionDto {
1548
1686
  /**
1549
- * Phone number.
1687
+ * Permissions.<br />Permission<br />0 = SystemAdmin<br />1 = UserAdministration
1550
1688
  */
1551
- workPhoneNumber: string;
1689
+ permission: UserPermissionDtoPermissionEnum;
1552
1690
  /**
1553
- * Work phone number extension. Optional.
1691
+ * Permission description.
1554
1692
  */
1555
- workPhoneNumberExt?: string | null;
1693
+ description: string;
1556
1694
  /**
1557
- * Work phone.
1695
+ * Sources.
1558
1696
  */
1559
- mobilePhoneNumber?: string | null;
1697
+ sources: Array<UserPermissionSourceDto>;
1698
+ }
1699
+ declare enum UserPermissionDtoPermissionEnum {
1700
+ SystemAdmin = "SystemAdmin",
1701
+ UserAdministration = "UserAdministration"
1560
1702
  }
1561
1703
 
1562
1704
  /**
@@ -1568,31 +1710,17 @@ interface UserProfileDto {
1568
1710
  * https://openapi-generator.tech
1569
1711
  * Do not edit the class manually.
1570
1712
  */
1571
-
1572
1713
  /**
1573
- * User registration DTO.
1714
+ * User profile DTO.
1574
1715
  */
1575
- interface UserRegistrationDto {
1576
- /**
1577
- * Email address and confirmation token.
1578
- */
1579
- emailToken: EmailConfirmationTokenDto;
1580
- /**
1581
- * Password.
1582
- */
1583
- password: string;
1584
- /**
1585
- * User profile information.
1586
- */
1587
- profile: UserProfileDto;
1588
- /**
1589
- * Physical address.
1590
- */
1591
- address: PhysicalAddressDto;
1592
- /**
1593
- * Preferences.
1594
- */
1595
- preferences: UserPreferencesDto;
1716
+ interface UserProfileDto {
1717
+ firstName: string;
1718
+ lastName: string;
1719
+ company: string;
1720
+ title: string;
1721
+ workPhoneNumber: string;
1722
+ workPhoneNumberExt?: string | null;
1723
+ mobilePhoneNumber?: string | null;
1596
1724
  }
1597
1725
 
1598
1726
  /**
@@ -1608,6 +1736,9 @@ interface UserRegistrationDto {
1608
1736
  interface AuthAuthenticateRequestParams {
1609
1737
  loginUserCommand: LoginUserCommand;
1610
1738
  }
1739
+ interface AuthAuthenticateByEmailTokenRequestParams {
1740
+ emailConfirmationTokenDto?: EmailConfirmationTokenDto;
1741
+ }
1611
1742
  interface AuthRefreshTokenRequestParams {
1612
1743
  refreshTokenCommand: RefreshTokenCommand;
1613
1744
  }
@@ -1620,6 +1751,12 @@ interface AuthApiServiceInterface {
1620
1751
  * @param requestParameters
1621
1752
  */
1622
1753
  authAuthenticate(requestParameters: AuthAuthenticateRequestParams, extraHttpRequestParams?: any): Observable<TokenModel>;
1754
+ /**
1755
+ * Authenticate user by email token.
1756
+ *
1757
+ * @param requestParameters
1758
+ */
1759
+ authAuthenticateByEmailToken(requestParameters: AuthAuthenticateByEmailTokenRequestParams, extraHttpRequestParams?: any): Observable<TokenModel>;
1623
1760
  /**
1624
1761
  * Get new token by refresh token.
1625
1762
  *
@@ -1652,6 +1789,27 @@ declare class AuthApiService extends BaseService implements AuthApiServiceInterf
1652
1789
  context?: HttpContext;
1653
1790
  transferCache?: boolean;
1654
1791
  }): Observable<HttpEvent<TokenModel>>;
1792
+ /**
1793
+ * Authenticate user by email token.
1794
+ * @param requestParameters
1795
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1796
+ * @param reportProgress flag to report request and response progress.
1797
+ */
1798
+ authAuthenticateByEmailToken(requestParameters?: AuthAuthenticateByEmailTokenRequestParams, observe?: "body", reportProgress?: boolean, options?: {
1799
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
1800
+ context?: HttpContext;
1801
+ transferCache?: boolean;
1802
+ }): Observable<TokenModel>;
1803
+ authAuthenticateByEmailToken(requestParameters?: AuthAuthenticateByEmailTokenRequestParams, observe?: "response", reportProgress?: boolean, options?: {
1804
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
1805
+ context?: HttpContext;
1806
+ transferCache?: boolean;
1807
+ }): Observable<HttpResponse<TokenModel>>;
1808
+ authAuthenticateByEmailToken(requestParameters?: AuthAuthenticateByEmailTokenRequestParams, observe?: "events", reportProgress?: boolean, options?: {
1809
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
1810
+ context?: HttpContext;
1811
+ transferCache?: boolean;
1812
+ }): Observable<HttpEvent<TokenModel>>;
1655
1813
  /**
1656
1814
  * Get new token by refresh token.
1657
1815
  * @param requestParameters
@@ -2881,6 +3039,16 @@ declare class UserDesignConditionsApiService extends BaseService implements User
2881
3039
  * Do not edit the class manually.
2882
3040
  */
2883
3041
 
3042
+ interface UsersAdminSetUserPasswordRequestParams {
3043
+ userId: number;
3044
+ newPassword?: string;
3045
+ }
3046
+ interface UsersChangeCurrentUserPasswordRequestParams {
3047
+ changeCurrentUserPasswordCommand?: ChangeCurrentUserPasswordCommand;
3048
+ }
3049
+ interface UsersChangeEmailRequestParams {
3050
+ changeEmailCommand?: ChangeEmailCommand;
3051
+ }
2884
3052
  interface UsersConfirmEmailRequestParams {
2885
3053
  emailConfirmationTokenDto?: EmailConfirmationTokenDto;
2886
3054
  }
@@ -2890,8 +3058,11 @@ interface UsersForgotPasswordRequestParams {
2890
3058
  interface UsersGetRepContactsRequestParams {
2891
3059
  userId: number;
2892
3060
  }
2893
- interface UsersRegisterUserRequestParams {
2894
- userRegistrationDto?: UserRegistrationDto;
3061
+ interface UsersGetUserPermissionsRequestParams {
3062
+ userId: number;
3063
+ }
3064
+ interface UsersRequestChangeEmailRequestParams {
3065
+ requestChangeEmailCommand?: RequestChangeEmailCommand;
2895
3066
  }
2896
3067
  interface UsersRequestConfirmEmailRequestParams {
2897
3068
  userEmailDto?: UserEmailDto;
@@ -2899,9 +3070,39 @@ interface UsersRequestConfirmEmailRequestParams {
2899
3070
  interface UsersResetPasswordRequestParams {
2900
3071
  resetPasswordCommand?: ResetPasswordCommand;
2901
3072
  }
3073
+ interface UsersSetUserAddressRequestParams {
3074
+ setAddressDto?: SetAddressDto;
3075
+ }
3076
+ interface UsersSetUserOccupationRequestParams {
3077
+ setUserOccupationCommand?: SetUserOccupationCommand;
3078
+ }
3079
+ interface UsersSetUserPasswordRequestParams {
3080
+ setUserPasswordCommand?: SetUserPasswordCommand;
3081
+ }
3082
+ interface UsersSetUserProfileRequestParams {
3083
+ userProfileDto?: UserProfileDto;
3084
+ }
2902
3085
  interface UsersApiServiceInterface {
2903
3086
  defaultHeaders: HttpHeaders;
2904
3087
  configuration: Configuration;
3088
+ /**
3089
+ * Set user password.
3090
+ *
3091
+ * @param requestParameters
3092
+ */
3093
+ usersAdminSetUserPassword(requestParameters: UsersAdminSetUserPasswordRequestParams, extraHttpRequestParams?: any): Observable<{}>;
3094
+ /**
3095
+ * Change current user password.
3096
+ *
3097
+ * @param requestParameters
3098
+ */
3099
+ usersChangeCurrentUserPassword(requestParameters: UsersChangeCurrentUserPasswordRequestParams, extraHttpRequestParams?: any): Observable<{}>;
3100
+ /**
3101
+ * Change email for current user.
3102
+ *
3103
+ * @param requestParameters
3104
+ */
3105
+ usersChangeEmail(requestParameters: UsersChangeEmailRequestParams, extraHttpRequestParams?: any): Observable<{}>;
2905
3106
  /**
2906
3107
  * Confirm email address using the verification code from email and continue registration.
2907
3108
  *
@@ -2919,6 +3120,11 @@ interface UsersApiServiceInterface {
2919
3120
  *
2920
3121
  */
2921
3122
  usersGetCurrentRepContacts(extraHttpRequestParams?: any): Observable<RepTerritoryContactsDto>;
3123
+ /**
3124
+ * Get current user info.
3125
+ *
3126
+ */
3127
+ usersGetCurrentUser(extraHttpRequestParams?: any): Observable<CurrentUserDto>;
2922
3128
  /**
2923
3129
  * Get user REP contacts.
2924
3130
  *
@@ -2926,11 +3132,17 @@ interface UsersApiServiceInterface {
2926
3132
  */
2927
3133
  usersGetRepContacts(requestParameters: UsersGetRepContactsRequestParams, extraHttpRequestParams?: any): Observable<RepTerritoryContactsDto>;
2928
3134
  /**
2929
- * Register user.
3135
+ * Get user permissions sources.
2930
3136
  *
2931
3137
  * @param requestParameters
2932
3138
  */
2933
- usersRegisterUser(requestParameters: UsersRegisterUserRequestParams, extraHttpRequestParams?: any): Observable<Int32IdDto>;
3139
+ usersGetUserPermissions(requestParameters: UsersGetUserPermissionsRequestParams, extraHttpRequestParams?: any): Observable<Array<UserPermissionDto>>;
3140
+ /**
3141
+ * Request change email for current user.
3142
+ *
3143
+ * @param requestParameters
3144
+ */
3145
+ usersRequestChangeEmail(requestParameters: UsersRequestChangeEmailRequestParams, extraHttpRequestParams?: any): Observable<{}>;
2934
3146
  /**
2935
3147
  * Request email confirmation and begin registration. This endpoint sends verification email to a given address.
2936
3148
  *
@@ -2943,11 +3155,98 @@ interface UsersApiServiceInterface {
2943
3155
  * @param requestParameters
2944
3156
  */
2945
3157
  usersResetPassword(requestParameters: UsersResetPasswordRequestParams, extraHttpRequestParams?: any): Observable<{}>;
3158
+ /**
3159
+ * Set user address.
3160
+ *
3161
+ * @param requestParameters
3162
+ */
3163
+ usersSetUserAddress(requestParameters: UsersSetUserAddressRequestParams, extraHttpRequestParams?: any): Observable<{}>;
3164
+ /**
3165
+ * Set user occupation.
3166
+ *
3167
+ * @param requestParameters
3168
+ */
3169
+ usersSetUserOccupation(requestParameters: UsersSetUserOccupationRequestParams, extraHttpRequestParams?: any): Observable<{}>;
3170
+ /**
3171
+ * Set user password.
3172
+ *
3173
+ * @param requestParameters
3174
+ */
3175
+ usersSetUserPassword(requestParameters: UsersSetUserPasswordRequestParams, extraHttpRequestParams?: any): Observable<{}>;
3176
+ /**
3177
+ * Set user profile.
3178
+ *
3179
+ * @param requestParameters
3180
+ */
3181
+ usersSetUserProfile(requestParameters: UsersSetUserProfileRequestParams, extraHttpRequestParams?: any): Observable<{}>;
2946
3182
  }
2947
3183
 
2948
3184
  declare class UsersApiService extends BaseService implements UsersApiServiceInterface {
2949
3185
  protected httpClient: HttpClient;
2950
3186
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
3187
+ /**
3188
+ * Set user password.
3189
+ * @param requestParameters
3190
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3191
+ * @param reportProgress flag to report request and response progress.
3192
+ */
3193
+ usersAdminSetUserPassword(requestParameters: UsersAdminSetUserPasswordRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3194
+ httpHeaderAccept?: undefined;
3195
+ context?: HttpContext;
3196
+ transferCache?: boolean;
3197
+ }): Observable<any>;
3198
+ usersAdminSetUserPassword(requestParameters: UsersAdminSetUserPasswordRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3199
+ httpHeaderAccept?: undefined;
3200
+ context?: HttpContext;
3201
+ transferCache?: boolean;
3202
+ }): Observable<HttpResponse<any>>;
3203
+ usersAdminSetUserPassword(requestParameters: UsersAdminSetUserPasswordRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3204
+ httpHeaderAccept?: undefined;
3205
+ context?: HttpContext;
3206
+ transferCache?: boolean;
3207
+ }): Observable<HttpEvent<any>>;
3208
+ /**
3209
+ * Change current user password.
3210
+ * @param requestParameters
3211
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3212
+ * @param reportProgress flag to report request and response progress.
3213
+ */
3214
+ usersChangeCurrentUserPassword(requestParameters?: UsersChangeCurrentUserPasswordRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3215
+ httpHeaderAccept?: undefined;
3216
+ context?: HttpContext;
3217
+ transferCache?: boolean;
3218
+ }): Observable<any>;
3219
+ usersChangeCurrentUserPassword(requestParameters?: UsersChangeCurrentUserPasswordRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3220
+ httpHeaderAccept?: undefined;
3221
+ context?: HttpContext;
3222
+ transferCache?: boolean;
3223
+ }): Observable<HttpResponse<any>>;
3224
+ usersChangeCurrentUserPassword(requestParameters?: UsersChangeCurrentUserPasswordRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3225
+ httpHeaderAccept?: undefined;
3226
+ context?: HttpContext;
3227
+ transferCache?: boolean;
3228
+ }): Observable<HttpEvent<any>>;
3229
+ /**
3230
+ * Change email for current user.
3231
+ * @param requestParameters
3232
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3233
+ * @param reportProgress flag to report request and response progress.
3234
+ */
3235
+ usersChangeEmail(requestParameters?: UsersChangeEmailRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3236
+ httpHeaderAccept?: undefined;
3237
+ context?: HttpContext;
3238
+ transferCache?: boolean;
3239
+ }): Observable<any>;
3240
+ usersChangeEmail(requestParameters?: UsersChangeEmailRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3241
+ httpHeaderAccept?: undefined;
3242
+ context?: HttpContext;
3243
+ transferCache?: boolean;
3244
+ }): Observable<HttpResponse<any>>;
3245
+ usersChangeEmail(requestParameters?: UsersChangeEmailRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3246
+ httpHeaderAccept?: undefined;
3247
+ context?: HttpContext;
3248
+ transferCache?: boolean;
3249
+ }): Observable<HttpEvent<any>>;
2951
3250
  /**
2952
3251
  * Confirm email address using the verification code from email and continue registration.
2953
3252
  * @param requestParameters
@@ -3010,6 +3309,26 @@ declare class UsersApiService extends BaseService implements UsersApiServiceInte
3010
3309
  context?: HttpContext;
3011
3310
  transferCache?: boolean;
3012
3311
  }): Observable<HttpEvent<RepTerritoryContactsDto>>;
3312
+ /**
3313
+ * Get current user info.
3314
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3315
+ * @param reportProgress flag to report request and response progress.
3316
+ */
3317
+ usersGetCurrentUser(observe?: "body", reportProgress?: boolean, options?: {
3318
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
3319
+ context?: HttpContext;
3320
+ transferCache?: boolean;
3321
+ }): Observable<CurrentUserDto>;
3322
+ usersGetCurrentUser(observe?: "response", reportProgress?: boolean, options?: {
3323
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
3324
+ context?: HttpContext;
3325
+ transferCache?: boolean;
3326
+ }): Observable<HttpResponse<CurrentUserDto>>;
3327
+ usersGetCurrentUser(observe?: "events", reportProgress?: boolean, options?: {
3328
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
3329
+ context?: HttpContext;
3330
+ transferCache?: boolean;
3331
+ }): Observable<HttpEvent<CurrentUserDto>>;
3013
3332
  /**
3014
3333
  * Get user REP contacts.
3015
3334
  * @param requestParameters
@@ -3032,26 +3351,47 @@ declare class UsersApiService extends BaseService implements UsersApiServiceInte
3032
3351
  transferCache?: boolean;
3033
3352
  }): Observable<HttpEvent<RepTerritoryContactsDto>>;
3034
3353
  /**
3035
- * Register user.
3354
+ * Get user permissions sources.
3036
3355
  * @param requestParameters
3037
3356
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3038
3357
  * @param reportProgress flag to report request and response progress.
3039
3358
  */
3040
- usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3359
+ usersGetUserPermissions(requestParameters: UsersGetUserPermissionsRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3041
3360
  httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
3042
3361
  context?: HttpContext;
3043
3362
  transferCache?: boolean;
3044
- }): Observable<Int32IdDto>;
3045
- usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3363
+ }): Observable<Array<UserPermissionDto>>;
3364
+ usersGetUserPermissions(requestParameters: UsersGetUserPermissionsRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3046
3365
  httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
3047
3366
  context?: HttpContext;
3048
3367
  transferCache?: boolean;
3049
- }): Observable<HttpResponse<Int32IdDto>>;
3050
- usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3368
+ }): Observable<HttpResponse<Array<UserPermissionDto>>>;
3369
+ usersGetUserPermissions(requestParameters: UsersGetUserPermissionsRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3051
3370
  httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
3052
3371
  context?: HttpContext;
3053
3372
  transferCache?: boolean;
3054
- }): Observable<HttpEvent<Int32IdDto>>;
3373
+ }): Observable<HttpEvent<Array<UserPermissionDto>>>;
3374
+ /**
3375
+ * Request change email for current user.
3376
+ * @param requestParameters
3377
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3378
+ * @param reportProgress flag to report request and response progress.
3379
+ */
3380
+ usersRequestChangeEmail(requestParameters?: UsersRequestChangeEmailRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3381
+ httpHeaderAccept?: undefined;
3382
+ context?: HttpContext;
3383
+ transferCache?: boolean;
3384
+ }): Observable<any>;
3385
+ usersRequestChangeEmail(requestParameters?: UsersRequestChangeEmailRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3386
+ httpHeaderAccept?: undefined;
3387
+ context?: HttpContext;
3388
+ transferCache?: boolean;
3389
+ }): Observable<HttpResponse<any>>;
3390
+ usersRequestChangeEmail(requestParameters?: UsersRequestChangeEmailRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3391
+ httpHeaderAccept?: undefined;
3392
+ context?: HttpContext;
3393
+ transferCache?: boolean;
3394
+ }): Observable<HttpEvent<any>>;
3055
3395
  /**
3056
3396
  * Request email confirmation and begin registration. This endpoint sends verification email to a given address.
3057
3397
  * @param requestParameters
@@ -3094,6 +3434,90 @@ declare class UsersApiService extends BaseService implements UsersApiServiceInte
3094
3434
  context?: HttpContext;
3095
3435
  transferCache?: boolean;
3096
3436
  }): Observable<HttpEvent<any>>;
3437
+ /**
3438
+ * Set user address.
3439
+ * @param requestParameters
3440
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3441
+ * @param reportProgress flag to report request and response progress.
3442
+ */
3443
+ usersSetUserAddress(requestParameters?: UsersSetUserAddressRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3444
+ httpHeaderAccept?: undefined;
3445
+ context?: HttpContext;
3446
+ transferCache?: boolean;
3447
+ }): Observable<any>;
3448
+ usersSetUserAddress(requestParameters?: UsersSetUserAddressRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3449
+ httpHeaderAccept?: undefined;
3450
+ context?: HttpContext;
3451
+ transferCache?: boolean;
3452
+ }): Observable<HttpResponse<any>>;
3453
+ usersSetUserAddress(requestParameters?: UsersSetUserAddressRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3454
+ httpHeaderAccept?: undefined;
3455
+ context?: HttpContext;
3456
+ transferCache?: boolean;
3457
+ }): Observable<HttpEvent<any>>;
3458
+ /**
3459
+ * Set user occupation.
3460
+ * @param requestParameters
3461
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3462
+ * @param reportProgress flag to report request and response progress.
3463
+ */
3464
+ usersSetUserOccupation(requestParameters?: UsersSetUserOccupationRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3465
+ httpHeaderAccept?: undefined;
3466
+ context?: HttpContext;
3467
+ transferCache?: boolean;
3468
+ }): Observable<any>;
3469
+ usersSetUserOccupation(requestParameters?: UsersSetUserOccupationRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3470
+ httpHeaderAccept?: undefined;
3471
+ context?: HttpContext;
3472
+ transferCache?: boolean;
3473
+ }): Observable<HttpResponse<any>>;
3474
+ usersSetUserOccupation(requestParameters?: UsersSetUserOccupationRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3475
+ httpHeaderAccept?: undefined;
3476
+ context?: HttpContext;
3477
+ transferCache?: boolean;
3478
+ }): Observable<HttpEvent<any>>;
3479
+ /**
3480
+ * Set user password.
3481
+ * @param requestParameters
3482
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3483
+ * @param reportProgress flag to report request and response progress.
3484
+ */
3485
+ usersSetUserPassword(requestParameters?: UsersSetUserPasswordRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3486
+ httpHeaderAccept?: undefined;
3487
+ context?: HttpContext;
3488
+ transferCache?: boolean;
3489
+ }): Observable<any>;
3490
+ usersSetUserPassword(requestParameters?: UsersSetUserPasswordRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3491
+ httpHeaderAccept?: undefined;
3492
+ context?: HttpContext;
3493
+ transferCache?: boolean;
3494
+ }): Observable<HttpResponse<any>>;
3495
+ usersSetUserPassword(requestParameters?: UsersSetUserPasswordRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3496
+ httpHeaderAccept?: undefined;
3497
+ context?: HttpContext;
3498
+ transferCache?: boolean;
3499
+ }): Observable<HttpEvent<any>>;
3500
+ /**
3501
+ * Set user profile.
3502
+ * @param requestParameters
3503
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
3504
+ * @param reportProgress flag to report request and response progress.
3505
+ */
3506
+ usersSetUserProfile(requestParameters?: UsersSetUserProfileRequestParams, observe?: "body", reportProgress?: boolean, options?: {
3507
+ httpHeaderAccept?: undefined;
3508
+ context?: HttpContext;
3509
+ transferCache?: boolean;
3510
+ }): Observable<any>;
3511
+ usersSetUserProfile(requestParameters?: UsersSetUserProfileRequestParams, observe?: "response", reportProgress?: boolean, options?: {
3512
+ httpHeaderAccept?: undefined;
3513
+ context?: HttpContext;
3514
+ transferCache?: boolean;
3515
+ }): Observable<HttpResponse<any>>;
3516
+ usersSetUserProfile(requestParameters?: UsersSetUserProfileRequestParams, observe?: "events", reportProgress?: boolean, options?: {
3517
+ httpHeaderAccept?: undefined;
3518
+ context?: HttpContext;
3519
+ transferCache?: boolean;
3520
+ }): Observable<HttpEvent<any>>;
3097
3521
  static ɵfac: i0.ɵɵFactoryDeclaration<UsersApiService, [null, { optional: true; }, { optional: true; }]>;
3098
3522
  static ɵprov: i0.ɵɵInjectableDeclaration<UsersApiService>;
3099
3523
  }
@@ -3118,5 +3542,5 @@ declare class ApiModule {
3118
3542
 
3119
3543
  declare function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders;
3120
3544
 
3121
- export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, DesignWeatherMode, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UsersApiService, provideApi };
3122
- export type { AddressDto, AuthApiServiceInterface, AuthAuthenticateRequestParams, AuthRefreshTokenRequestParams, CompanyInformationDto, ConfigurationParameters, ContactDto, CreateDocumentsDto, CreateRsdRegionDto, CreateUploadUrlCommand, DataFormat, DataType, DistanceDto, EmailConfirmationTokenDto, FileDto, ForgotPasswordCommand, Int32IdDto, LoginUserCommand, OffsetLimitListMetadata, PagedListMetadata, Param, ParamLocation, ParamStyle, PermissionBundleDto, PermissionBundlesApiServiceInterface, PermissionBundlesCreatePermissionBundleRequestParams, PermissionBundlesGetPermissionBundleRequestParams, PermissionBundlesRemovePermissionBundleRequestParams, PermissionBundlesRestorePermissionBundleRequestParams, PermissionBundlesSearchPermissionBundlesRequestParams, PermissionBundlesUpdatePermissionBundleRequestParams, PermissionDto, PermissionsApiServiceInterface, PhysicalAddressDto, PostPreSignedUrlDto, RefreshTokenCommand, RegionDto, RegionsApiServiceInterface, RegionsSearchRegionsRequestParams, RemoveDocumentsCommand, RepContactsApiServiceInterface, RepContactsGetRepTerritoryRepContactRequestParams, RepContactsRemoveRepTerritoryRepContactRequestParams, RepContactsUpdateRepTerritoryRepContactRequestParams, RepTerritoriesApiServiceInterface, RepTerritoriesCreateRepTerritoryLocationRequestParams, RepTerritoriesCreateRepTerritoryRepContactRequestParams, RepTerritoriesCreateRepTerritoryRequestParams, RepTerritoriesGetRepTerritoryRequestParams, RepTerritoriesRemoveRepTerritoryRequestParams, RepTerritoriesSearchRepTerritoriesRequestParams, RepTerritoriesUpdateRepTerritoryRequestParams, RepTerritoryContactsDto, RepTerritoryDto, RepTerritoryLocationDto, RepTerritoryLocationsApiServiceInterface, RepTerritoryLocationsGetRepTerritoryLocationRequestParams, RepTerritoryLocationsRemoveRepTerritoryLocationRequestParams, RepTerritoryLocationsSearchRepTerritoryLocationsRequestParams, RepTerritoryLocationsUpdateRepTerritoryLocationRequestParams, RepTerritoryRepContactDto, ResetPasswordCommand, RsdRegionDocumentDto, RsdRegionDto, RsdRegionRepTerritoryDto, RsdRegionUserDto, RsdRegionsApiServiceInterface, RsdRegionsCreateDocumentDownloadUrlRequestParams, RsdRegionsCreateDocumentUploadUrlRequestParams, RsdRegionsCreateRsdRegionDocumentsRequestParams, RsdRegionsCreateRsdRegionRequestParams, RsdRegionsGetRsdRegionRequestParams, RsdRegionsRemoveRsdRegionDocumentsRequestParams, RsdRegionsRemoveRsdRegionRequestParams, RsdRegionsSearchRsdRegionsRequestParams, RsdRegionsUpdateRsdRegionRequestParams, SavePermissionBundleDto, SaveRepTerritoryDto, SaveRepTerritoryLocationDto, SaveRepTerritoryRepContactDto, SaveUserDesignConditionsDto, SearchPermissionBundleDto, SearchPermissionBundleDtoPagedListMetadataDto, SearchRegionDto, SearchRegionDtoPagedListMetadataDto, SearchRepTerritoryDto, SearchRepTerritoryDtoPagedListMetadataDto, SearchRepTerritoryLocationDto, SearchRepTerritoryLocationDtoPagedListMetadataDto, SearchRsdRegionDto, SearchRsdRegionDtoPagedListMetadataDto, StandardDataFormat, StandardDataType, StandardParamStyle, TemperatureDto, TokenModel, TotalCountListMetadata, UpdateRsdRegionDto, UploadFileDto, UploadUrlResult, UserDesignConditionsApiServiceInterface, UserDesignConditionsDto, UserDesignConditionsGetProjectDesignConditionsRequestParams, UserDesignConditionsSaveProjectDesignConditionsRequestParams, UserDesignWeatherConditionDto, UserEmailDto, UserPreferencesDto, UserProfileDto, UserRegistrationDto, UsersApiServiceInterface, UsersConfirmEmailRequestParams, UsersForgotPasswordRequestParams, UsersGetRepContactsRequestParams, UsersRegisterUserRequestParams, UsersRequestConfirmEmailRequestParams, UsersResetPasswordRequestParams };
3545
+ export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, Permission, PermissionBundlesApiService, PermissionsApiService, RegionDtoLevelEnum, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UsersApiService, provideApi };
3546
+ export type { AddressDto, AuthApiServiceInterface, AuthAuthenticateByEmailTokenRequestParams, AuthAuthenticateRequestParams, AuthRefreshTokenRequestParams, ChangeCurrentUserPasswordCommand, ChangeEmailCommand, CompanyInformationDto, ConfigurationParameters, ContactDto, CreateDocumentsDto, CreateRsdRegionDto, CreateUploadUrlCommand, CurrentUserDto, DataFormat, DataType, DistanceDto, EmailConfirmationTokenDto, FileDto, ForgotPasswordCommand, LoginUserCommand, OffsetLimitListMetadata, PagedListMetadata, Param, ParamLocation, ParamStyle, PermissionBundleDto, PermissionBundlesApiServiceInterface, PermissionBundlesCreatePermissionBundleRequestParams, PermissionBundlesGetPermissionBundleRequestParams, PermissionBundlesRemovePermissionBundleRequestParams, PermissionBundlesRestorePermissionBundleRequestParams, PermissionBundlesSearchPermissionBundlesRequestParams, PermissionBundlesUpdatePermissionBundleRequestParams, PermissionDto, PermissionsApiServiceInterface, PostPreSignedUrlDto, RefreshTokenCommand, RegionDto, RegionsApiServiceInterface, RegionsSearchRegionsRequestParams, RemoveDocumentsCommand, RepContactsApiServiceInterface, RepContactsGetRepTerritoryRepContactRequestParams, RepContactsRemoveRepTerritoryRepContactRequestParams, RepContactsUpdateRepTerritoryRepContactRequestParams, RepTerritoriesApiServiceInterface, RepTerritoriesCreateRepTerritoryLocationRequestParams, RepTerritoriesCreateRepTerritoryRepContactRequestParams, RepTerritoriesCreateRepTerritoryRequestParams, RepTerritoriesGetRepTerritoryRequestParams, RepTerritoriesRemoveRepTerritoryRequestParams, RepTerritoriesSearchRepTerritoriesRequestParams, RepTerritoriesUpdateRepTerritoryRequestParams, RepTerritoryContactsDto, RepTerritoryDto, RepTerritoryLocationDto, RepTerritoryLocationsApiServiceInterface, RepTerritoryLocationsGetRepTerritoryLocationRequestParams, RepTerritoryLocationsRemoveRepTerritoryLocationRequestParams, RepTerritoryLocationsSearchRepTerritoryLocationsRequestParams, RepTerritoryLocationsUpdateRepTerritoryLocationRequestParams, RepTerritoryRepContactDto, RequestChangeEmailCommand, ResetPasswordCommand, RsdRegionDocumentDto, RsdRegionDto, RsdRegionRepTerritoryDto, RsdRegionUserDto, RsdRegionsApiServiceInterface, RsdRegionsCreateDocumentDownloadUrlRequestParams, RsdRegionsCreateDocumentUploadUrlRequestParams, RsdRegionsCreateRsdRegionDocumentsRequestParams, RsdRegionsCreateRsdRegionRequestParams, RsdRegionsGetRsdRegionRequestParams, RsdRegionsRemoveRsdRegionDocumentsRequestParams, RsdRegionsRemoveRsdRegionRequestParams, RsdRegionsSearchRsdRegionsRequestParams, RsdRegionsUpdateRsdRegionRequestParams, SavePermissionBundleDto, SaveRepTerritoryDto, SaveRepTerritoryLocationDto, SaveRepTerritoryRepContactDto, SaveUserDesignConditionsDto, SearchPermissionBundleDto, SearchPermissionBundleDtoPagedListMetadataDto, SearchRegionDto, SearchRegionDtoPagedListMetadataDto, SearchRepTerritoryDto, SearchRepTerritoryDtoPagedListMetadataDto, SearchRepTerritoryLocationDto, SearchRepTerritoryLocationDtoPagedListMetadataDto, SearchRsdRegionDto, SearchRsdRegionDtoPagedListMetadataDto, SetAddressDto, SetUserOccupationCommand, SetUserPasswordCommand, StandardDataFormat, StandardDataType, StandardParamStyle, TemperatureDto, TokenModel, TotalCountListMetadata, UpdateRsdRegionDto, UploadFileDto, UploadUrlResult, UserDesignConditionsApiServiceInterface, UserDesignConditionsDto, UserDesignConditionsGetProjectDesignConditionsRequestParams, UserDesignConditionsSaveProjectDesignConditionsRequestParams, UserDesignWeatherConditionDto, UserEmailDto, UserPermissionDto, UserPermissionSourceDto, UserProfileDto, UsersAdminSetUserPasswordRequestParams, UsersApiServiceInterface, UsersChangeCurrentUserPasswordRequestParams, UsersChangeEmailRequestParams, UsersConfirmEmailRequestParams, UsersForgotPasswordRequestParams, UsersGetRepContactsRequestParams, UsersGetUserPermissionsRequestParams, UsersRequestChangeEmailRequestParams, UsersRequestConfirmEmailRequestParams, UsersResetPasswordRequestParams, UsersSetUserAddressRequestParams, UsersSetUserOccupationRequestParams, UsersSetUserPasswordRequestParams, UsersSetUserProfileRequestParams };