@omnia/fx-models 8.0.127-dev → 8.0.128-dev
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/bulkimportusers/BulkImportUsersTasks.d.ts +3 -1
- package/identities/ArchiveIdentityManagementQuery.d.ts +2 -2
- package/identities/ArchiveIdentityManagementQuery.js +2 -2
- package/identities/GroupIdentity.d.ts +17 -3
- package/identities/GroupIdentity.js +3 -0
- package/identities/GroupManagementQuery.d.ts +4 -3
- package/identities/GroupManagementQuery.js +3 -2
- package/identities/IdentityCreationRequest.d.ts +6 -3
- package/identities/IdentityCreationRequest.js +3 -2
- package/identities/IdentityQuery.d.ts +5 -3
- package/identities/IdentityQuery.js +4 -2
- package/identities/ScopeTypes.d.ts +5 -0
- package/identities/ScopeTypes.js +9 -0
- package/identities/UserIdentity.d.ts +9 -4
- package/identities/UserIdentity.js +6 -1
- package/identities/UserIdentityQuery.d.ts +4 -3
- package/identities/UserIdentityQuery.js +3 -2
- package/identities/UserManagementQuery.d.ts +5 -3
- package/identities/UserManagementQuery.js +4 -2
- package/identities/index.d.ts +1 -0
- package/identities/index.js +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +0 -6
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +6 -4
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +0 -4
- package/package.json +1 -1
- package/properties/definitions/IdentityPropertyDefinition.d.ts +1 -1
- package/properties/definitions/IdentityPropertyDefinition.js +2 -2
- package/ux/ThemingApi.d.ts +31 -3
@@ -8,7 +8,7 @@ export declare class ArchiveIdentityManagementQuery {
|
|
8
8
|
pageSize?: number;
|
9
9
|
sortColumn?: ArchiveSortColumn;
|
10
10
|
sortDesc?: boolean;
|
11
|
-
|
11
|
+
businessProfileId?: GuidValue;
|
12
12
|
language?: LanguageTags;
|
13
|
-
constructor(searchText?: string, identityType?: IdentityTypes, providerId?: GuidValue, pageNumber?: number, pageSize?: number, sortColumn?: ArchiveSortColumn, sortDesc?: boolean,
|
13
|
+
constructor(searchText?: string, identityType?: IdentityTypes, providerId?: GuidValue, pageNumber?: number, pageSize?: number, sortColumn?: ArchiveSortColumn, sortDesc?: boolean, businessProfileId?: GuidValue, language?: LanguageTags);
|
14
14
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ArchiveIdentityManagementQuery = void 0;
|
4
4
|
class ArchiveIdentityManagementQuery {
|
5
|
-
constructor(searchText, identityType, providerId, pageNumber, pageSize, sortColumn, sortDesc,
|
5
|
+
constructor(searchText, identityType, providerId, pageNumber, pageSize, sortColumn, sortDesc, businessProfileId, language) {
|
6
6
|
this.searchText = searchText;
|
7
7
|
this.identityType = identityType;
|
8
8
|
this.providerId = providerId;
|
@@ -10,7 +10,7 @@ class ArchiveIdentityManagementQuery {
|
|
10
10
|
this.pageSize = pageSize;
|
11
11
|
this.sortColumn = sortColumn;
|
12
12
|
this.sortDesc = sortDesc;
|
13
|
-
this.
|
13
|
+
this.businessProfileId = businessProfileId;
|
14
14
|
this.language = language;
|
15
15
|
}
|
16
16
|
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { EmailPropertyDefinition, ImagePropertyDefinition, PropertyValueBinding, TextPropertyDefinition } from "../properties";
|
3
|
-
import {
|
3
|
+
import { IResolvedIdentity, Identity } from "./Identity";
|
4
4
|
import { IdentityTypes } from "./IdentityTypes";
|
5
|
+
import { ScopeTypes } from "./ScopeTypes";
|
5
6
|
import { UserIdentity } from "./UserIdentity";
|
6
7
|
export declare class GroupIdentity extends Identity {
|
7
8
|
type: IdentityTypes;
|
@@ -14,8 +15,11 @@ export declare class ResolvedGroupIdentity extends GroupIdentity implements IRes
|
|
14
15
|
email: PropertyValueBinding<EmailPropertyDefinition>;
|
15
16
|
image: PropertyValueBinding<TextPropertyDefinition>;
|
16
17
|
description: PropertyValueBinding<TextPropertyDefinition>;
|
17
|
-
|
18
|
+
scope: string;
|
19
|
+
scopeType: ScopeTypes;
|
18
20
|
isRemoved: boolean;
|
21
|
+
groupOwnerIds: Identity[];
|
22
|
+
static getDisplayName(group: ResolvedGroupIdentity, deletedGroupText: string): string;
|
19
23
|
}
|
20
24
|
export declare enum GroupSortColumn {
|
21
25
|
DisplayName = 1,
|
@@ -31,10 +35,20 @@ export interface GroupIdentityAddOrUpdateRequest {
|
|
31
35
|
email: PropertyValueBinding<EmailPropertyDefinition>;
|
32
36
|
icon: PropertyValueBinding<ImagePropertyDefinition>;
|
33
37
|
propertyValues: Array<PropertyValueBinding<any>>;
|
34
|
-
|
38
|
+
scope: string;
|
39
|
+
scopeType: ScopeTypes;
|
40
|
+
groupOwnerIds: Identity[];
|
35
41
|
}
|
36
42
|
export interface GroupMembershipUpdateRequest {
|
37
43
|
group: GroupIdentity;
|
38
44
|
users: UserIdentity[];
|
39
45
|
groups: GroupIdentity[];
|
40
46
|
}
|
47
|
+
export interface GroupIdentityAddOrUpdateWithMembershipRequest {
|
48
|
+
groupInformation: GroupIdentityAddOrUpdateRequest;
|
49
|
+
membership: GroupMembershipUpdateRequest;
|
50
|
+
}
|
51
|
+
export interface GroupIdentityAddOrUpdateWithMembershipResponse {
|
52
|
+
group: ResolvedGroupIdentity;
|
53
|
+
membership: Identity[];
|
54
|
+
}
|
@@ -11,6 +11,9 @@ class GroupIdentity extends Identity_1.Identity {
|
|
11
11
|
}
|
12
12
|
exports.GroupIdentity = GroupIdentity;
|
13
13
|
class ResolvedGroupIdentity extends GroupIdentity {
|
14
|
+
static getDisplayName(group, deletedGroupText) {
|
15
|
+
return group.isRemoved ? deletedGroupText : group.displayName?.value.text;
|
16
|
+
}
|
14
17
|
}
|
15
18
|
exports.ResolvedGroupIdentity = ResolvedGroupIdentity;
|
16
19
|
var GroupSortColumn;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { GroupSortColumn } from "@omnia/fx-models";
|
1
|
+
import { GroupSortColumn, ScopeTypes } from "@omnia/fx-models";
|
2
2
|
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
export declare class GroupManagementQuery {
|
4
4
|
searchText?: string;
|
@@ -8,6 +8,7 @@ export declare class GroupManagementQuery {
|
|
8
8
|
pageSize?: number;
|
9
9
|
sortColumn?: GroupSortColumn;
|
10
10
|
sortDesc?: boolean;
|
11
|
-
|
12
|
-
|
11
|
+
scope?: string[];
|
12
|
+
scopeType?: ScopeTypes;
|
13
|
+
constructor(searchText?: string, groupTypeId?: GuidValue, providerId?: GuidValue, pageNumber?: number, pageSize?: number, sortColumn?: GroupSortColumn, sortDesc?: boolean, scope?: string[], scopeType?: ScopeTypes);
|
13
14
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GroupManagementQuery = void 0;
|
4
4
|
class GroupManagementQuery {
|
5
|
-
constructor(searchText, groupTypeId, providerId, pageNumber, pageSize, sortColumn, sortDesc,
|
5
|
+
constructor(searchText, groupTypeId, providerId, pageNumber, pageSize, sortColumn, sortDesc, scope, scopeType) {
|
6
6
|
this.searchText = searchText;
|
7
7
|
this.groupTypeId = groupTypeId;
|
8
8
|
this.providerId = providerId;
|
@@ -10,7 +10,8 @@ class GroupManagementQuery {
|
|
10
10
|
this.pageSize = pageSize;
|
11
11
|
this.sortColumn = sortColumn;
|
12
12
|
this.sortDesc = sortDesc;
|
13
|
-
this.
|
13
|
+
this.scope = scope;
|
14
|
+
this.scopeType = scopeType;
|
14
15
|
}
|
15
16
|
}
|
16
17
|
exports.GroupManagementQuery = GroupManagementQuery;
|
@@ -6,6 +6,7 @@ import { Identity } from "./Identity";
|
|
6
6
|
import { UserAuthenticationInformation } from "./UserIdentity";
|
7
7
|
import { MultilingualString } from "../MultilingualString";
|
8
8
|
import { IExtendedEnterprisepropertiesPropertyDefinitionSettings } from "../enterprise-properties";
|
9
|
+
import { ScopeTypes } from "./ScopeTypes";
|
9
10
|
export interface ResolvedIdentityCreationRequestSettings {
|
10
11
|
userRequestFormDisplaySettings: Array<UserRequestFormDisplaySetting>;
|
11
12
|
captchaEnabled: boolean;
|
@@ -31,7 +32,8 @@ export declare class IdentityCreationRequestBase {
|
|
31
32
|
authenticationInformation: UserAuthenticationInformation;
|
32
33
|
}
|
33
34
|
export declare class IdentityCreationRequest extends IdentityCreationRequestBase {
|
34
|
-
|
35
|
+
scope: string;
|
36
|
+
scopeType: ScopeTypes;
|
35
37
|
authenticationInformation: UserAuthenticationInformation;
|
36
38
|
captchaResponse: string;
|
37
39
|
redirectUrl: string;
|
@@ -85,10 +87,11 @@ export interface IdentityLookupValue {
|
|
85
87
|
title: string;
|
86
88
|
}
|
87
89
|
export declare class IdentityCreationRequestQuery {
|
88
|
-
|
90
|
+
scope: string;
|
91
|
+
scopeType: ScopeTypes;
|
89
92
|
isEmailConfirmed: BoolFilter;
|
90
93
|
approvalState: ApprovalState;
|
91
|
-
constructor(
|
94
|
+
constructor(scope: string, scopeType: ScopeTypes, isEmailConfirmed: BoolFilter, approvalState: ApprovalState);
|
92
95
|
}
|
93
96
|
export interface IdentityCreationRequestQueryResult {
|
94
97
|
results: Array<IdentityCreationRequest>;
|
@@ -45,8 +45,9 @@ class IdentityPropertyBindingSetting extends PropertyBindingSetting {
|
|
45
45
|
}
|
46
46
|
exports.IdentityPropertyBindingSetting = IdentityPropertyBindingSetting;
|
47
47
|
class IdentityCreationRequestQuery {
|
48
|
-
constructor(
|
49
|
-
this.
|
48
|
+
constructor(scope, scopeType, isEmailConfirmed, approvalState) {
|
49
|
+
this.scope = scope;
|
50
|
+
this.scopeType = scopeType;
|
50
51
|
this.isEmailConfirmed = isEmailConfirmed;
|
51
52
|
this.approvalState = approvalState;
|
52
53
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BoolFilter } from "@omnia/fx-models";
|
1
|
+
import { BoolFilter, ScopeTypes } from "@omnia/fx-models";
|
2
2
|
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
import { ItemQuery } from "../ItemQuery";
|
4
4
|
import { IdentityTypes } from "./IdentityTypes";
|
@@ -13,11 +13,13 @@ export declare class IdentityQuery extends ItemQuery {
|
|
13
13
|
excludeTypeIds?: GuidValue[];
|
14
14
|
emailEnabled?: BoolFilter;
|
15
15
|
permissionEnabled?: BoolFilter;
|
16
|
-
|
16
|
+
scope?: string;
|
17
17
|
tenantIdentityOnly?: boolean;
|
18
|
+
businessProfileId?: GuidValue;
|
19
|
+
scopeType?: ScopeTypes;
|
18
20
|
constructor(types: IdentityTypes[], searchText?: string,
|
19
21
|
/**
|
20
22
|
* This is user type id or group type id value.
|
21
23
|
*/
|
22
|
-
typeIds?: GuidValue[], providerIds?: GuidValue[], excludeTypeIds?: GuidValue[], emailEnabled?: BoolFilter, permissionEnabled?: BoolFilter,
|
24
|
+
typeIds?: GuidValue[], providerIds?: GuidValue[], excludeTypeIds?: GuidValue[], emailEnabled?: BoolFilter, permissionEnabled?: BoolFilter, scope?: string, tenantIdentityOnly?: boolean, businessProfileId?: GuidValue, scopeType?: ScopeTypes);
|
23
25
|
}
|
@@ -8,7 +8,7 @@ class IdentityQuery extends ItemQuery_1.ItemQuery {
|
|
8
8
|
/**
|
9
9
|
* This is user type id or group type id value.
|
10
10
|
*/
|
11
|
-
typeIds, providerIds, excludeTypeIds, emailEnabled, permissionEnabled,
|
11
|
+
typeIds, providerIds, excludeTypeIds, emailEnabled, permissionEnabled, scope, tenantIdentityOnly, businessProfileId, scopeType) {
|
12
12
|
super();
|
13
13
|
this.types = types;
|
14
14
|
this.searchText = searchText;
|
@@ -17,8 +17,10 @@ class IdentityQuery extends ItemQuery_1.ItemQuery {
|
|
17
17
|
this.excludeTypeIds = excludeTypeIds;
|
18
18
|
this.emailEnabled = emailEnabled;
|
19
19
|
this.permissionEnabled = permissionEnabled;
|
20
|
-
this.
|
20
|
+
this.scope = scope;
|
21
21
|
this.tenantIdentityOnly = tenantIdentityOnly;
|
22
|
+
this.businessProfileId = businessProfileId;
|
23
|
+
this.scopeType = scopeType;
|
22
24
|
this.itemLimit = Constants_1.Constants.identityQueryItemLimit;
|
23
25
|
}
|
24
26
|
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ScopeTypes = void 0;
|
4
|
+
var ScopeTypes;
|
5
|
+
(function (ScopeTypes) {
|
6
|
+
ScopeTypes[ScopeTypes["Tenant"] = 1] = "Tenant";
|
7
|
+
ScopeTypes[ScopeTypes["BusinessProfile"] = 2] = "BusinessProfile";
|
8
|
+
ScopeTypes[ScopeTypes["Group"] = 3] = "Group";
|
9
|
+
})(ScopeTypes || (exports.ScopeTypes = ScopeTypes = {}));
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { IOmniaPropertyBag, OmniaNamedModel } from "../NamedProperty";
|
3
|
-
import { EmailPropertyDefinition,
|
4
|
-
import {
|
3
|
+
import { EmailPropertyDefinition, EmailPropertyValue, ImagePropertyDefinition, LanguagePropertyDefinition, PhoneNumberPropertyValue, PropertyValueBinding, TextPropertyDefinition } from "../properties";
|
4
|
+
import { IResolvedIdentity, Identity } from "./Identity";
|
5
5
|
import { IdentityTypes } from "./IdentityTypes";
|
6
|
+
import { ScopeTypes } from "./ScopeTypes";
|
6
7
|
declare class AzureAdUserPropertyValues {
|
7
8
|
private resolvedUser;
|
8
9
|
objectId: GuidValue;
|
@@ -23,10 +24,13 @@ export declare class ResolvedUserIdentity extends UserIdentity implements IResol
|
|
23
24
|
preferredLanguage: PropertyValueBinding<LanguagePropertyDefinition>;
|
24
25
|
uiLanguage: PropertyValueBinding<LanguagePropertyDefinition>;
|
25
26
|
providerIdentity: string;
|
26
|
-
|
27
|
+
scope: string;
|
27
28
|
isRemoved: boolean;
|
28
29
|
firstLogin: Date;
|
29
30
|
lastLogin: Date;
|
31
|
+
replacedByIdentity: Identity;
|
32
|
+
replacesIdentity: Identity;
|
33
|
+
scopeType: ScopeTypes;
|
30
34
|
static create(options: Partial<ResolvedUserIdentity>): ResolvedUserIdentity;
|
31
35
|
static isAzureAdUser(resolvedUser: ResolvedUserIdentity): boolean;
|
32
36
|
static isOmniaUser(resolvedUser: ResolvedUserIdentity): boolean;
|
@@ -70,7 +74,8 @@ export interface UserIdentityAddRequest {
|
|
70
74
|
preferredLanguage: PropertyValueBinding<LanguagePropertyDefinition>;
|
71
75
|
uiLanguage: PropertyValueBinding<LanguagePropertyDefinition>;
|
72
76
|
propertyValues: Array<PropertyValueBinding<any>>;
|
73
|
-
|
77
|
+
scope: string;
|
78
|
+
scopeType: ScopeTypes;
|
74
79
|
}
|
75
80
|
export interface UserIdentityAddOrUpdateRequestWithPassword extends UserIdentityAddRequest {
|
76
81
|
password: string;
|
@@ -8,6 +8,7 @@ const NamedProperty_1 = require("../NamedProperty");
|
|
8
8
|
const BuiltInIdentityProvider_1 = require("./BuiltInIdentityProvider");
|
9
9
|
const Identity_1 = require("./Identity");
|
10
10
|
const IdentityTypes_1 = require("./IdentityTypes");
|
11
|
+
const ScopeTypes_1 = require("./ScopeTypes");
|
11
12
|
class AzureAdUserPropertyValues {
|
12
13
|
constructor(resolvedUser) {
|
13
14
|
this.resolvedUser = resolvedUser;
|
@@ -36,7 +37,11 @@ class ResolvedUserIdentity extends UserIdentity {
|
|
36
37
|
image: null,
|
37
38
|
type: IdentityTypes_1.IdentityTypes.User,
|
38
39
|
propertyValues: [],
|
39
|
-
|
40
|
+
scope: "",
|
41
|
+
isRemoved: null,
|
42
|
+
replacedByIdentity: null,
|
43
|
+
replacesIdentity: null,
|
44
|
+
scopeType: ScopeTypes_1.ScopeTypes.Tenant
|
40
45
|
}, options);
|
41
46
|
}
|
42
47
|
static isAzureAdUser(resolvedUser) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BoolFilter, Identity } from "@omnia/fx-models";
|
1
|
+
import { BoolFilter, Identity, ScopeTypes } from "@omnia/fx-models";
|
2
2
|
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
import { ItemQuery } from "../ItemQuery";
|
4
4
|
export declare class UserIdentityQuery extends ItemQuery {
|
@@ -13,11 +13,12 @@ export declare class UserIdentityQuery extends ItemQuery {
|
|
13
13
|
excludeTypeIds?: GuidValue[];
|
14
14
|
emailEnabled?: BoolFilter;
|
15
15
|
permissionEnabled?: BoolFilter;
|
16
|
-
|
16
|
+
scope?: string;
|
17
17
|
tenantIdentityOnly?: boolean;
|
18
|
+
scopeType?: ScopeTypes;
|
18
19
|
constructor(limitedToIdentities: Identity[], includeTransitiveUsers: boolean, searchText?: string,
|
19
20
|
/**
|
20
21
|
* This is user type id or group type id value.
|
21
22
|
*/
|
22
|
-
typeIds?: GuidValue[], providerIds?: GuidValue[], excludeTypeIds?: GuidValue[], emailEnabled?: BoolFilter, permissionEnabled?: BoolFilter,
|
23
|
+
typeIds?: GuidValue[], providerIds?: GuidValue[], excludeTypeIds?: GuidValue[], emailEnabled?: BoolFilter, permissionEnabled?: BoolFilter, scope?: string, tenantIdentityOnly?: boolean, scopeType?: ScopeTypes);
|
23
24
|
}
|
@@ -8,7 +8,7 @@ class UserIdentityQuery extends ItemQuery_1.ItemQuery {
|
|
8
8
|
/**
|
9
9
|
* This is user type id or group type id value.
|
10
10
|
*/
|
11
|
-
typeIds, providerIds, excludeTypeIds, emailEnabled, permissionEnabled,
|
11
|
+
typeIds, providerIds, excludeTypeIds, emailEnabled, permissionEnabled, scope, tenantIdentityOnly, scopeType) {
|
12
12
|
super();
|
13
13
|
this.limitedToIdentities = limitedToIdentities;
|
14
14
|
this.includeTransitiveUsers = includeTransitiveUsers;
|
@@ -18,8 +18,9 @@ class UserIdentityQuery extends ItemQuery_1.ItemQuery {
|
|
18
18
|
this.excludeTypeIds = excludeTypeIds;
|
19
19
|
this.emailEnabled = emailEnabled;
|
20
20
|
this.permissionEnabled = permissionEnabled;
|
21
|
-
this.
|
21
|
+
this.scope = scope;
|
22
22
|
this.tenantIdentityOnly = tenantIdentityOnly;
|
23
|
+
this.scopeType = scopeType;
|
23
24
|
this.itemLimit = Constants_1.Constants.identityQueryItemLimit;
|
24
25
|
}
|
25
26
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BoolFilter, LanguageTags, UserSortColumn } from "@omnia/fx-models";
|
1
|
+
import { BoolFilter, LanguageTags, ScopeTypes, UserSortColumn } from "@omnia/fx-models";
|
2
2
|
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
3
|
export declare class UserManagementQuery {
|
4
4
|
searchText?: string;
|
@@ -8,9 +8,11 @@ export declare class UserManagementQuery {
|
|
8
8
|
pageSize?: number;
|
9
9
|
sortColumn?: UserSortColumn;
|
10
10
|
sortDesc?: boolean;
|
11
|
-
|
11
|
+
scope?: string[];
|
12
12
|
disabled?: BoolFilter;
|
13
13
|
timeValid?: BoolFilter;
|
14
14
|
language?: LanguageTags;
|
15
|
-
|
15
|
+
scopeType?: ScopeTypes;
|
16
|
+
businessProfileId?: GuidValue;
|
17
|
+
constructor(searchText?: string, userTypeId?: GuidValue, providerId?: GuidValue, pageNumber?: number, pageSize?: number, sortColumn?: UserSortColumn, sortDesc?: boolean, scope?: string[], disabled?: BoolFilter, timeValid?: BoolFilter, language?: LanguageTags, scopeType?: ScopeTypes, businessProfileId?: GuidValue);
|
16
18
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.UserManagementQuery = void 0;
|
4
4
|
class UserManagementQuery {
|
5
|
-
constructor(searchText, userTypeId, providerId, pageNumber, pageSize, sortColumn, sortDesc,
|
5
|
+
constructor(searchText, userTypeId, providerId, pageNumber, pageSize, sortColumn, sortDesc, scope, disabled, timeValid, language, scopeType, businessProfileId) {
|
6
6
|
this.searchText = searchText;
|
7
7
|
this.userTypeId = userTypeId;
|
8
8
|
this.providerId = providerId;
|
@@ -10,10 +10,12 @@ class UserManagementQuery {
|
|
10
10
|
this.pageSize = pageSize;
|
11
11
|
this.sortColumn = sortColumn;
|
12
12
|
this.sortDesc = sortDesc;
|
13
|
-
this.
|
13
|
+
this.scope = scope;
|
14
14
|
this.disabled = disabled;
|
15
15
|
this.timeValid = timeValid;
|
16
16
|
this.language = language;
|
17
|
+
this.scopeType = scopeType;
|
18
|
+
this.businessProfileId = businessProfileId;
|
17
19
|
}
|
18
20
|
}
|
19
21
|
exports.UserManagementQuery = UserManagementQuery;
|
package/identities/index.d.ts
CHANGED
package/identities/index.js
CHANGED
@@ -31,3 +31,4 @@ tslib_1.__exportStar(require("./UserManagementQuery"), exports);
|
|
31
31
|
tslib_1.__exportStar(require("./GroupManagementQuery"), exports);
|
32
32
|
tslib_1.__exportStar(require("./ArchiveIdentityManagementQuery"), exports);
|
33
33
|
tslib_1.__exportStar(require("./IdentityCreationRequest"), exports);
|
34
|
+
tslib_1.__exportStar(require("./ScopeTypes"), exports);
|
@@ -5,31 +5,25 @@ import { TypographyValue } from "./Typography";
|
|
5
5
|
export interface BoxDimensions extends Spacing {
|
6
6
|
}
|
7
7
|
import { TypographyBlueprint } from "./Typography";
|
8
|
-
export type BlueprintType = "chrome" | "typography" | "spacing" | "component";
|
9
8
|
export interface Blueprints {
|
10
|
-
type: BlueprintType;
|
11
9
|
name?: string;
|
12
10
|
}
|
13
11
|
export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3";
|
14
12
|
export type ButtonBlueprintType = "text" | "icon";
|
15
13
|
export interface ChromeBlueprints extends Blueprints {
|
16
|
-
type: "chrome";
|
17
14
|
primary: ChromeBlueprint;
|
18
15
|
variant1?: ChromeBlueprint;
|
19
16
|
variant2?: ChromeBlueprint;
|
20
17
|
variant3?: ChromeBlueprint;
|
21
18
|
}
|
22
19
|
export interface TypographyBlueprints extends Blueprints {
|
23
|
-
type: "typography";
|
24
20
|
primary: TypographyBlueprint;
|
25
21
|
}
|
26
22
|
export interface SpacingBlueprints extends Blueprints {
|
27
|
-
type: "spacing";
|
28
23
|
primary: SpacingBlueprint;
|
29
24
|
}
|
30
25
|
export type ButtonTypes = "primary" | "basic" | "accent1" | "warn" | "disabled" | "link";
|
31
26
|
export interface ComponentBlueprints extends Blueprints {
|
32
|
-
type: "component";
|
33
27
|
buttons?: {
|
34
28
|
text?: {
|
35
29
|
primary?: ButtonBlueprint;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Guid } from "../Guid";
|
2
|
-
import {
|
2
|
+
import { BoxDimensions, ChromeBlueprints, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
|
3
3
|
export interface ColorTypeResult<resultType> {
|
4
4
|
base: resultType;
|
5
5
|
baseTone: resultType;
|
@@ -41,10 +41,12 @@ export interface ColorSchemas {
|
|
41
41
|
}
|
42
42
|
export interface ThemeDefinitionV2 {
|
43
43
|
id: Guid;
|
44
|
-
name
|
45
|
-
dark: boolean;
|
44
|
+
name?: string;
|
46
45
|
colors: ColorSchemas;
|
47
|
-
|
46
|
+
typography: TypographyBlueprints;
|
47
|
+
spacing: SpacingBlueprints;
|
48
|
+
chrome: ChromeBlueprints;
|
49
|
+
components: ComponentBlueprints;
|
48
50
|
}
|
49
51
|
export type ColorSchemaType = keyof typeof ColorSchemaTypes;
|
50
52
|
export declare enum ColorSchemaTypes {
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./ThemeDefinitionV2";
|
2
|
-
import { Blueprints, BlueprintType } from "./Blueprints";
|
3
2
|
export declare function useThemeMethods(getThemeDefinition: () => any): {
|
4
3
|
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => ColorSchema;
|
5
|
-
bluePrintbyType: <TType extends Blueprints>(type: BlueprintType) => TType;
|
6
4
|
color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
|
7
5
|
colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
|
8
6
|
complementaryColorType: (colorType: ColorTypes | ColorType) => ColorTypes;
|
@@ -5,9 +5,6 @@ exports.useThemeMethods = void 0;
|
|
5
5
|
const ThemeDefinitionV2_1 = require("./ThemeDefinitionV2");
|
6
6
|
// temp change ThemeDefinitionInstance to any because fx/shared can't reference higher level fx/ux
|
7
7
|
function useThemeMethods(getThemeDefinition) {
|
8
|
-
function bluePrintbyType(type) {
|
9
|
-
return getThemeDefinition().blueprints.find(x => x.type === type);
|
10
|
-
}
|
11
8
|
function colorSchema(colorSchemaType) {
|
12
9
|
if (colorSchemaType === ThemeDefinitionV2_1.ColorSchemaTypes.primary) {
|
13
10
|
return getThemeDefinition().colors.primary;
|
@@ -92,7 +89,6 @@ function useThemeMethods(getThemeDefinition) {
|
|
92
89
|
}
|
93
90
|
return {
|
94
91
|
colorSchema,
|
95
|
-
bluePrintbyType,
|
96
92
|
color,
|
97
93
|
colorDefinition,
|
98
94
|
complementaryColorType,
|
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Guid } from "@omnia/fx/internal-do-not-import-from-here/shared";
|
1
|
+
import { Guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
2
|
import { LockStatusExcludeChildren, PropertyLockStatusType } from "../../../ux";
|
3
3
|
import { PrincipalTypes } from "../../Enums";
|
4
4
|
import { PropertyDefinition, PropertyDisplaySettingsBase, PropertyEditorSettingsBase } from "../PropertyDefinition";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.IdentityPropertyDefinition = exports.identityPropertyDefinitionId = exports.IdentityPropertyEditorSettings = exports.IdentityPropertyDisplaySettings = void 0;
|
4
|
-
const
|
4
|
+
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
5
5
|
const PropertyDefinition_1 = require("../PropertyDefinition");
|
6
6
|
class IdentityPropertyDisplaySettings extends PropertyDefinition_1.PropertyDisplaySettingsBase {
|
7
7
|
}
|
@@ -9,7 +9,7 @@ exports.IdentityPropertyDisplaySettings = IdentityPropertyDisplaySettings;
|
|
9
9
|
class IdentityPropertyEditorSettings extends PropertyDefinition_1.PropertyEditorSettingsBase {
|
10
10
|
}
|
11
11
|
exports.IdentityPropertyEditorSettings = IdentityPropertyEditorSettings;
|
12
|
-
exports.identityPropertyDefinitionId = new
|
12
|
+
exports.identityPropertyDefinitionId = new models_1.Guid("4dfc3b66-a203-447d-8f64-171f47e5b63a");
|
13
13
|
class IdentityPropertyDefinition extends PropertyDefinition_1.PropertyDefinition {
|
14
14
|
constructor() {
|
15
15
|
super(...arguments);
|
package/ux/ThemingApi.d.ts
CHANGED
@@ -1,8 +1,36 @@
|
|
1
|
-
import { ThemeDefinitionV2 } from "@omnia/fx-models";
|
1
|
+
import { BorderStylingDefinition, ButtonBlueprint, ChromeBlueprint, ChromeBlueprints, ColorSchema, ComponentBlueprints, FillDefinition, SpacingBlueprints, SpacingDefinition, TabsBlueprint, ThemeDefinitionV2, TypographyBlueprints } from "@omnia/fx-models";
|
2
2
|
import { ApiPath } from "../Extends";
|
3
3
|
export interface IThemeRegistrationApiHandler {
|
4
|
-
|
5
|
-
|
4
|
+
getAllThemes(): any;
|
5
|
+
registerTheme(definitions: ThemeDefinitionV2 | ThemeDefinitionV2[]): any;
|
6
|
+
registerColorSchema(colorSchema: ColorSchema | ColorSchema[]): any;
|
7
|
+
getAllColorSchemas(): any;
|
8
|
+
templates: {
|
9
|
+
get: {
|
10
|
+
spacingDefinition: () => SpacingDefinition[];
|
11
|
+
spacingBlueprints: () => SpacingBlueprints[];
|
12
|
+
fillDefinition: () => FillDefinition[];
|
13
|
+
borderDefinition: () => BorderStylingDefinition[];
|
14
|
+
buttonBlueprint: () => ButtonBlueprint[];
|
15
|
+
tabsBlueprint: () => TabsBlueprint[];
|
16
|
+
chromeBlueprint: () => ChromeBlueprint[];
|
17
|
+
chromeBlueprints: () => ChromeBlueprints[];
|
18
|
+
componentBlueprints: () => ComponentBlueprints[];
|
19
|
+
typographyBlueprints: () => TypographyBlueprints[];
|
20
|
+
};
|
21
|
+
add: {
|
22
|
+
spacingDefinition: (spacing: SpacingDefinition | SpacingDefinition[]) => void;
|
23
|
+
spacingBlueprints: (spacing: SpacingBlueprints | SpacingBlueprints[]) => void;
|
24
|
+
fillDefinition: (fill: FillDefinition | FillDefinition[]) => void;
|
25
|
+
borderDefinition: (border: BorderStylingDefinition | BorderStylingDefinition[]) => void;
|
26
|
+
buttonBlueprint: (blueprint: ButtonBlueprint | ButtonBlueprint[]) => void;
|
27
|
+
tabsBlueprint: (blueprint: TabsBlueprint | TabsBlueprint[]) => void;
|
28
|
+
chromeBlueprint: (blueprint: ChromeBlueprint | ChromeBlueprint[]) => void;
|
29
|
+
chromeBlueprints: (blueprint: ChromeBlueprints | ChromeBlueprints[]) => void;
|
30
|
+
componentBlueprints: (blueprint: ComponentBlueprints | ComponentBlueprints[]) => void;
|
31
|
+
typographyBlueprints: (blueprints: TypographyBlueprints | TypographyBlueprints[]) => void;
|
32
|
+
};
|
33
|
+
};
|
6
34
|
}
|
7
35
|
export interface IThemeRegistrationApi {
|
8
36
|
registration: Promise<IThemeRegistrationApiHandler>;
|