@dflat-core/web 1.7.2088 → 1.7.2089
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/fesm2022/dflat-core-web-core-services.mjs +9 -5
- package/fesm2022/dflat-core-web-core-services.mjs.map +1 -1
- package/fesm2022/dflat-core-web-identity-model.mjs.map +1 -1
- package/fesm2022/dflat-core-web-system-ux.mjs +4 -1
- package/fesm2022/dflat-core-web-system-ux.mjs.map +1 -1
- package/package.json +1 -1
- package/types/dflat-core-web-core-services.d.ts +5 -1
- package/types/dflat-core-web-identity-model.d.ts +2 -0
- package/types/dflat-core-web-identity-ux.d.ts +1 -1
- package/types/dflat-core-web-meta-ux.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dflat-core-web-identity-model.mjs","names":[],"sources":["../../identity-model/src/lib/identity-model.module.ts","../../identity-model/src/lib/model/interface.generated.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n/**\r\n * Modèle de l'application : interfaces et énumérations générées par\r\n * \"dflat -g ts\" depuis les entités de Identity.Model.\r\n *\r\n * Le code généré est écrit dans src/lib et exporté par src/index.ts.\r\n */\r\n@NgModule({\r\n imports: [CommonModule]\r\n})\r\nexport class IdentityModelModule {}\r\n","import { Dictionary } from '@dflat-core/web/core-model';\r\nimport { EntityFilterViewModel, EntityViewModel, ExtendedProperty, TreeItem } from '@dflat-core/web/core-model';\r\nimport { Permission } from '@dflat-core/web/meta-model';\r\n\r\nexport interface UserAccount extends EntityViewModel {\r\n ActivationKey? : string;\r\n AvatarUrl? : string;\r\n ChangePasswordKey? : string;\r\n CompanyId? : number;\r\n ConfirmPassword? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CurrentPassword? : string;\r\n Email? : string;\r\n FirstName? : string;\r\n Gender? : boolean;\r\n Id? : number;\r\n IsActive? : boolean;\r\n IsAdmin? : boolean;\r\n IsDelivery? : boolean;\r\n IsDeliveryActive? : boolean;\r\n IsDisabled? : boolean;\r\n IsPartner? : boolean;\r\n IsPartnerActive? : boolean;\r\n IsPhoneNumberActive? : boolean;\r\n LastName? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n NewPassword? : string;\r\n Passwd? : string;\r\n PhoneNumber? : string;\r\n Pseudo? : string;\r\n RowVersion? : string;\r\n UserAccountCompanys? : number[];\r\n UserAccountRoles? : number[];\r\n}\r\n\r\nexport interface PresentationProfileAssignmentView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n PresentationProfileId? : number;\r\n PresentationProfileLabel? : string;\r\n PresentationProfileMetaEntityKey? : string;\r\n PresentationProfilePurpose? : number;\r\n RoleId? : number;\r\n RoleUniqueName? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n UserAccountPseudo? : string;\r\n}\r\n\r\nexport interface UserSession extends EntityViewModel {\r\n CloseDate? : Date;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n LastActivity? : Date;\r\n Machine? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OpenDate? : Date;\r\n RowVersion? : string;\r\n UserAccount? : UserAccount;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserPermissionView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ParentDescription1? : string;\r\n ParentDescription2? : string;\r\n Roles? : string;\r\n RowVersion? : string;\r\n UniqueName? : string;\r\n}\r\n\r\nexport interface UserHistory extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Date? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserGroupDefinitionView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n GroupDescription? : string;\r\n GroupId? : number;\r\n GroupName? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n UserEmail? : string;\r\n UserFirstName? : string;\r\n UserLastName? : string;\r\n UserPseudo? : string;\r\n}\r\n\r\nexport interface UserGroup extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface UserFavorite extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Date? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountToken extends EntityViewModel {\r\n AccessTokenExpires? : Date;\r\n AccessTokenHash? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RefreshTokenExpires? : Date;\r\n RefreshTokenIdHash? : string;\r\n RefreshTokenIdHashSrc? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountRoleView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RoleCode? : string;\r\n RoleId? : number;\r\n RoleParentName? : string;\r\n RoleUniqueName? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountLoginView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n DisplayName? : string;\r\n Id? : number;\r\n IsEmailVerified? : boolean;\r\n LastLoginDate? : Date;\r\n LoginProvider? : number;\r\n LoginProviderLabel? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n ProviderEmail? : string;\r\n ProviderKey? : string;\r\n RowVersion? : string;\r\n UserAccountEmail? : string;\r\n UserAccountId? : number;\r\n UserAccountPseudo? : string;\r\n}\r\n\r\nexport interface RoleView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n ParentId? : number;\r\n ParentName? : string;\r\n Permissions? : number[];\r\n RowVersion? : string;\r\n TreeItems? : TreeItem<Permission>[];\r\n UniqueName? : string;\r\n}\r\n\r\nexport interface RolePermission extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n PermissionId? : number;\r\n RoleId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface PresentationProfileAssignmentFilterViewModel extends EntityFilterViewModel<PresentationProfileAssignmentView> {\r\n PresentationProfileId? : number;\r\n RoleId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface ActivationViewModel {\r\n ActivationCode? : string;\r\n CaptchaToken? : string;\r\n SendAgain? : boolean;\r\n UserEmail? : string;\r\n}\r\n\r\nexport interface UserSessionFilterViewModel extends EntityFilterViewModel<UserSession> {\r\n UserPseudo? : string;\r\n}\r\n\r\nexport interface UserProfileViewModel {\r\n Email? : string;\r\n FirstName? : string;\r\n Id? : number;\r\n LastName? : string;\r\n PhoneNumber? : string;\r\n}\r\n\r\nexport interface UserPermissionViewFilterViewModel extends EntityFilterViewModel<UserPermissionView> {\r\n Code? : string;\r\n Name? : string;\r\n ParentName? : string;\r\n permissionId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserHistoryFilterViewModel extends EntityFilterViewModel<UserHistory> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserGroupFilterViewModel extends EntityFilterViewModel<UserGroup> {\r\n}\r\n\r\nexport interface UserGroupDefinitionFilterViewModel extends EntityFilterViewModel<UserGroupDefinitionView> {\r\n GroupId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserFavoriteFilterViewModel extends EntityFilterViewModel<UserFavorite> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserCredential {\r\n AccessToken? : string;\r\n ActivationToken? : string;\r\n AvatarUrl? : string;\r\n CompanyId? : number;\r\n Email? : string;\r\n FirstName? : string;\r\n Id? : number;\r\n IsActive? : boolean;\r\n IsAdmin? : boolean;\r\n IsDelivery? : boolean;\r\n IsDeliveryActive? : boolean;\r\n IsPartner? : boolean;\r\n IsPartnerActive? : boolean;\r\n LastName? : string;\r\n Permissions? : string[];\r\n PhoneNumber? : string;\r\n RefreshToken? : string;\r\n Username? : string;\r\n}\r\n\r\nexport interface UserAccountTokenFilterViewModel extends EntityFilterViewModel<UserAccountToken> {\r\n AccessTokenHash? : string;\r\n RefreshTokenExpires? : Date;\r\n RefreshTokenIdHash? : string;\r\n RefreshTokenIdHashSrc? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountRoleFilterViewModel extends EntityFilterViewModel<UserAccountRoleView> {\r\n RoleId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountLoginFilterViewModel extends EntityFilterViewModel<UserAccountLoginView> {\r\n LoginProvider? : number;\r\n ProviderKey? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountFilterViewModel extends EntityFilterViewModel<UserAccount> {\r\n Email? : string;\r\n ExcludedGroupId? : number;\r\n Pseudo? : string;\r\n}\r\n\r\nexport interface RolePermissionFilterViewModel extends EntityFilterViewModel<RolePermission> {\r\n PermissionId? : number;\r\n RoleId? : number;\r\n}\r\n\r\nexport interface RoleFilterViewModel extends EntityFilterViewModel<RoleView> {\r\n ExceptUserRoles? : boolean;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface ResetPasswordViewModel extends ActivationViewModel {\r\n Password? : string;\r\n}\r\n\r\nexport interface RegisterViewModel {\r\n CaptchaToken? : string;\r\n Email? : string;\r\n FirstName? : string;\r\n LastName? : string;\r\n Password? : string;\r\n}\r\n\r\nexport interface LoginViewModel {\r\n Password? : string;\r\n Username? : string;\r\n}\r\n\r\nexport interface ExternalLoginViewModel {\r\n FirstName? : string;\r\n IdToken? : string;\r\n LastName? : string;\r\n Provider? : string;\r\n}\r\n\r\nexport interface ExternalLoginProviderViewModel {\r\n ClientId? : string;\r\n Provider? : string;\r\n TenantId? : string;\r\n}\r\n\r\nexport interface ChangePasswordViewModel {\r\n CurrentPassword? : string;\r\n Id? : number;\r\n NewPassword? : string;\r\n NewPasswordConfirm? : string;\r\n}\r\n\r\nexport enum ActivationResults {\r\n Sucess = 0,\r\n Error = 1,\r\n Expired = 2,\r\n AlreadyActivated = 3,\r\n SentAgain = 4,\r\n UnknownUser = 5,\r\n}\r\n\r\nexport enum LoginProviders {\r\n Google = 0,\r\n Microsoft = 1,\r\n Apple = 2,\r\n}\r\n\r\n"],"mappings":";;;AAYA,IAAa,sBAAb,MAAa,oBAAmB;CAAnB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAnB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,SAAA,CAFlB,YAAY;EAAA,CAAA;CAAA;CAEb;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,SAAA,CAFlB,YAAY;EAAA,CAAA;CAAA;;AAEb,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAH/B,MAAA;EAAS,MAAA,CAAA,EACN,SAAS,CAAC,YAAY,EACzB,CAAA;;;AC6VD,IAAY;CAAZ,SAAY,mBAAiB;CACzB,kBAAA,kBAAA,YAAA,KAAA;CACA,kBAAA,kBAAA,WAAA,KAAA;CACA,kBAAA,kBAAA,aAAA,KAAA;CACA,kBAAA,kBAAA,sBAAA,KAAA;CACA,kBAAA,kBAAA,eAAA,KAAA;CACA,kBAAA,kBAAA,iBAAA,KAAA;AACJ,EAAA,CAPY,sBAAA,oBAAiB,CAAA,EAAA;AAS7B,IAAY;CAAZ,SAAY,gBAAc;CACtB,eAAA,eAAA,YAAA,KAAA;CACA,eAAA,eAAA,eAAA,KAAA;CACA,eAAA,eAAA,WAAA,KAAA;AACJ,EAAA,CAJY,mBAAA,iBAAc,CAAA,EAAA"}
|
|
1
|
+
{"version":3,"file":"dflat-core-web-identity-model.mjs","names":[],"sources":["../../identity-model/src/lib/identity-model.module.ts","../../identity-model/src/lib/model/interface.generated.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\n/**\r\n * Modèle de l'application : interfaces et énumérations générées par\r\n * \"dflat -g ts\" depuis les entités de Identity.Model.\r\n *\r\n * Le code généré est écrit dans src/lib et exporté par src/index.ts.\r\n */\r\n@NgModule({\r\n imports: [CommonModule]\r\n})\r\nexport class IdentityModelModule {}\r\n","import { Dictionary } from '@dflat-core/web/core-model';\r\nimport { EntityFilterViewModel, EntityViewModel, ExtendedProperty, TreeItem } from '@dflat-core/web/core-model';\r\nimport { Permission } from '@dflat-core/web/meta-model';\r\n\r\nexport interface UserAccount extends EntityViewModel {\r\n ActivationKey? : string;\r\n AvatarUrl? : string;\r\n ChangePasswordKey? : string;\r\n CompanyId? : number;\r\n ConfirmPassword? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n CurrentPassword? : string;\r\n Email? : string;\r\n FirstName? : string;\r\n Gender? : boolean;\r\n Id? : number;\r\n IsActive? : boolean;\r\n IsAdmin? : boolean;\r\n IsDelivery? : boolean;\r\n IsDeliveryActive? : boolean;\r\n IsDisabled? : boolean;\r\n IsPartner? : boolean;\r\n IsPartnerActive? : boolean;\r\n IsPhoneNumberActive? : boolean;\r\n LastName? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n NewPassword? : string;\r\n Passwd? : string;\r\n PhoneNumber? : string;\r\n Pseudo? : string;\r\n RowVersion? : string;\r\n UserAccountCompanys? : number[];\r\n UserAccountRoles? : number[];\r\n}\r\n\r\nexport interface PresentationProfileAssignmentView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n PresentationProfileId? : number;\r\n PresentationProfileLabel? : string;\r\n PresentationProfileMetaEntityKey? : string;\r\n PresentationProfilePurpose? : number;\r\n RoleId? : number;\r\n RoleUniqueName? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n UserAccountPseudo? : string;\r\n}\r\n\r\nexport interface UserSession extends EntityViewModel {\r\n CloseDate? : Date;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n LastActivity? : Date;\r\n Machine? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n OpenDate? : Date;\r\n RowVersion? : string;\r\n UserAccount? : UserAccount;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserPermissionView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Module? : string;\r\n ParentDescription1? : string;\r\n ParentDescription2? : string;\r\n Roles? : string;\r\n RowVersion? : string;\r\n UniqueName? : string;\r\n}\r\n\r\nexport interface UserHistory extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Date? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserGroupDefinitionView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n GroupDescription? : string;\r\n GroupId? : number;\r\n GroupName? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n UserEmail? : string;\r\n UserFirstName? : string;\r\n UserLastName? : string;\r\n UserPseudo? : string;\r\n}\r\n\r\nexport interface UserGroup extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Description? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n Name? : string;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface UserFavorite extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Date? : Date;\r\n EntityId? : number;\r\n EntityKey? : string;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountToken extends EntityViewModel {\r\n AccessTokenExpires? : Date;\r\n AccessTokenHash? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RefreshTokenExpires? : Date;\r\n RefreshTokenIdHash? : string;\r\n RefreshTokenIdHashSrc? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountRoleView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n RoleCode? : string;\r\n RoleId? : number;\r\n RoleParentName? : string;\r\n RoleUniqueName? : string;\r\n RowVersion? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountLoginView extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n DisplayName? : string;\r\n Id? : number;\r\n IsEmailVerified? : boolean;\r\n LastLoginDate? : Date;\r\n LoginProvider? : number;\r\n LoginProviderLabel? : string;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n ProviderEmail? : string;\r\n ProviderKey? : string;\r\n RowVersion? : string;\r\n UserAccountEmail? : string;\r\n UserAccountId? : number;\r\n UserAccountPseudo? : string;\r\n}\r\n\r\nexport interface RoleView extends EntityViewModel {\r\n Code? : string;\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n ParentId? : number;\r\n ParentName? : string;\r\n Permissions? : number[];\r\n RowVersion? : string;\r\n TreeItems? : TreeItem<Permission>[];\r\n UniqueName? : string;\r\n}\r\n\r\nexport interface RolePermission extends EntityViewModel {\r\n CreatedBy? : string;\r\n CreationDate? : Date;\r\n Id? : number;\r\n ModificationDate? : Date;\r\n ModifiedBy? : string;\r\n PermissionId? : number;\r\n RoleId? : number;\r\n RowVersion? : string;\r\n}\r\n\r\nexport interface PresentationProfileAssignmentFilterViewModel extends EntityFilterViewModel<PresentationProfileAssignmentView> {\r\n PresentationProfileId? : number;\r\n RoleId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface ActivationViewModel {\r\n ActivationCode? : string;\r\n CaptchaToken? : string;\r\n SendAgain? : boolean;\r\n UserEmail? : string;\r\n}\r\n\r\nexport interface UserSessionFilterViewModel extends EntityFilterViewModel<UserSession> {\r\n UserPseudo? : string;\r\n}\r\n\r\nexport interface UserProfileViewModel {\r\n Email? : string;\r\n FirstName? : string;\r\n Id? : number;\r\n LastName? : string;\r\n PhoneNumber? : string;\r\n}\r\n\r\nexport interface UserPermissionViewFilterViewModel extends EntityFilterViewModel<UserPermissionView> {\r\n Code? : string;\r\n Name? : string;\r\n ParentName? : string;\r\n permissionId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserHistoryFilterViewModel extends EntityFilterViewModel<UserHistory> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserGroupFilterViewModel extends EntityFilterViewModel<UserGroup> {\r\n}\r\n\r\nexport interface UserGroupDefinitionFilterViewModel extends EntityFilterViewModel<UserGroupDefinitionView> {\r\n GroupId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserFavoriteFilterViewModel extends EntityFilterViewModel<UserFavorite> {\r\n EntityId? : number;\r\n EntityKey? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserCredential {\r\n AccessToken? : string;\r\n ActivationToken? : string;\r\n AvatarUrl? : string;\r\n CompanyId? : number;\r\n Email? : string;\r\n FirstName? : string;\r\n Id? : number;\r\n IsActive? : boolean;\r\n IsAdmin? : boolean;\r\n IsDelivery? : boolean;\r\n IsDeliveryActive? : boolean;\r\n IsPartner? : boolean;\r\n IsPartnerActive? : boolean;\r\n LastName? : string;\r\n Permissions? : string[];\r\n PhoneNumber? : string;\r\n RefreshToken? : string;\r\n Username? : string;\r\n}\r\n\r\nexport interface UserAccountTokenFilterViewModel extends EntityFilterViewModel<UserAccountToken> {\r\n AccessTokenHash? : string;\r\n RefreshTokenExpires? : Date;\r\n RefreshTokenIdHash? : string;\r\n RefreshTokenIdHashSrc? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountRoleFilterViewModel extends EntityFilterViewModel<UserAccountRoleView> {\r\n RoleId? : number;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountLoginFilterViewModel extends EntityFilterViewModel<UserAccountLoginView> {\r\n LoginProvider? : number;\r\n ProviderKey? : string;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface UserAccountFilterViewModel extends EntityFilterViewModel<UserAccount> {\r\n Email? : string;\r\n ExcludedGroupId? : number;\r\n Pseudo? : string;\r\n}\r\n\r\nexport interface RolePermissionFilterViewModel extends EntityFilterViewModel<RolePermission> {\r\n PermissionId? : number;\r\n RoleId? : number;\r\n}\r\n\r\nexport interface RoleFilterViewModel extends EntityFilterViewModel<RoleView> {\r\n ExceptUserRoles? : boolean;\r\n UserAccountId? : number;\r\n}\r\n\r\nexport interface ResetPasswordViewModel extends ActivationViewModel {\r\n Password? : string;\r\n}\r\n\r\nexport interface RegisterViewModel {\r\n CaptchaToken? : string;\r\n Email? : string;\r\n FirstName? : string;\r\n LastName? : string;\r\n Password? : string;\r\n}\r\n\r\nexport interface LoginViewModel {\r\n Password? : string;\r\n Username? : string;\r\n}\r\n\r\nexport interface ExternalLoginViewModel {\r\n AuthorizationCode? : string;\r\n FirstName? : string;\r\n IdToken? : string;\r\n LastName? : string;\r\n Provider? : string;\r\n RedirectUri? : string;\r\n}\r\n\r\nexport interface ExternalLoginProviderViewModel {\r\n ClientId? : string;\r\n Provider? : string;\r\n TenantId? : string;\r\n}\r\n\r\nexport interface ChangePasswordViewModel {\r\n CurrentPassword? : string;\r\n Id? : number;\r\n NewPassword? : string;\r\n NewPasswordConfirm? : string;\r\n}\r\n\r\nexport enum ActivationResults {\r\n Sucess = 0,\r\n Error = 1,\r\n Expired = 2,\r\n AlreadyActivated = 3,\r\n SentAgain = 4,\r\n UnknownUser = 5,\r\n}\r\n\r\nexport enum LoginProviders {\r\n Google = 0,\r\n Microsoft = 1,\r\n Apple = 2,\r\n}\r\n\r\n"],"mappings":";;;AAYA,IAAa,sBAAb,MAAa,oBAAmB;CAAnB;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAnB;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,SAAA,CAFlB,YAAY;EAAA,CAAA;CAAA;CAEb;EAAA,KAAA,OAAA,GAAA,oBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,SAAA,CAFlB,YAAY;EAAA,CAAA;CAAA;;AAEb,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAH/B,MAAA;EAAS,MAAA,CAAA,EACN,SAAS,CAAC,YAAY,EACzB,CAAA;;;AC+VD,IAAY;CAAZ,SAAY,mBAAiB;CACzB,kBAAA,kBAAA,YAAA,KAAA;CACA,kBAAA,kBAAA,WAAA,KAAA;CACA,kBAAA,kBAAA,aAAA,KAAA;CACA,kBAAA,kBAAA,sBAAA,KAAA;CACA,kBAAA,kBAAA,eAAA,KAAA;CACA,kBAAA,kBAAA,iBAAA,KAAA;AACJ,EAAA,CAPY,sBAAA,oBAAiB,CAAA,EAAA;AAS7B,IAAY;CAAZ,SAAY,gBAAc;CACtB,eAAA,eAAA,YAAA,KAAA;CACA,eAAA,eAAA,eAAA,KAAA;CACA,eAAA,eAAA,WAAA,KAAA;AACJ,EAAA,CAJY,mBAAA,iBAAc,CAAA,EAAA"}
|
|
@@ -7498,6 +7498,7 @@ var SelectUserCompanyActionService = class SelectUserCompanyActionService {
|
|
|
7498
7498
|
this.positionChanged = new EventEmitter();
|
|
7499
7499
|
this.newCompanySelected = new EventEmitter();
|
|
7500
7500
|
try {
|
|
7501
|
+
if (!authService.isLoggedIn) return;
|
|
7501
7502
|
let savedSelectedUserCompany = localStore.getDataObject(AppKeys.SELECTED_COMPANY, false);
|
|
7502
7503
|
if (!Utilities.IsNil(savedSelectedUserCompany)) this.selectedUserCompany = savedSelectedUserCompany;
|
|
7503
7504
|
else this.setDefaultCompanyOfUser();
|
|
@@ -7505,6 +7506,7 @@ var SelectUserCompanyActionService = class SelectUserCompanyActionService {
|
|
|
7505
7506
|
} catch {}
|
|
7506
7507
|
}
|
|
7507
7508
|
async setDefaultCompanyOfUser() {
|
|
7509
|
+
if (!this.authService.isLoggedIn) return;
|
|
7508
7510
|
var filter = {
|
|
7509
7511
|
UserAccountId: this.authService.userId,
|
|
7510
7512
|
Offset: 0,
|
|
@@ -7535,6 +7537,7 @@ var SelectUserCompanyActionService = class SelectUserCompanyActionService {
|
|
|
7535
7537
|
});
|
|
7536
7538
|
}
|
|
7537
7539
|
checkSelectedUserCompany() {
|
|
7540
|
+
if (!this.authService.isLoggedIn) return;
|
|
7538
7541
|
if (!Utilities.IsNil(this.selectedUserCompany)) {
|
|
7539
7542
|
var filter = {
|
|
7540
7543
|
UserAccountId: this.authService.userId,
|
|
@@ -7646,7 +7649,7 @@ var LoginComponent = class LoginComponent {
|
|
|
7646
7649
|
}
|
|
7647
7650
|
loginExternal(result) {
|
|
7648
7651
|
this.hasErrors = false;
|
|
7649
|
-
this.authService.loginExternal(result.provider, result.idToken, this.rememberMe, result.firstName, result.lastName).subscribe((data) => {
|
|
7652
|
+
this.authService.loginExternal(result.provider, result.idToken, this.rememberMe, result.firstName, result.lastName, result.authorizationCode, result.redirectUri).subscribe((data) => {
|
|
7650
7653
|
this.OnLogin(data);
|
|
7651
7654
|
}, (error) => {
|
|
7652
7655
|
this.hasErrors = true;
|