@omnia/fx-models 8.0.127-dev → 8.0.129-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.
Files changed (63) hide show
  1. package/AiSettings.d.ts +1 -1
  2. package/Exposes.d.ts +0 -1
  3. package/Exposes.js +0 -1
  4. package/LayoutDefinition.d.ts +1 -2
  5. package/LinkHandler/linktype/DefaultLinkType.js +1 -1
  6. package/LinkHandler/linktype/DocumentLinkType.js +1 -1
  7. package/Messaging.d.ts +0 -23
  8. package/NamedProperty.d.ts +1 -2
  9. package/TargetingProperty.js +8 -8
  10. package/TokenDefinition.d.ts +1 -1
  11. package/apps/AppInstanceRollup.js +7 -7
  12. package/azure-openai/dalle/ErrorResponse.js +2 -2
  13. package/azure-openai/dalle/StatusRequest.js +3 -3
  14. package/bulkimportusers/BulkImportUsersTasks.d.ts +3 -1
  15. package/identities/ArchiveIdentityManagementQuery.d.ts +2 -2
  16. package/identities/ArchiveIdentityManagementQuery.js +2 -2
  17. package/identities/GroupIdentity.d.ts +17 -3
  18. package/identities/GroupIdentity.js +3 -0
  19. package/identities/GroupManagementQuery.d.ts +4 -3
  20. package/identities/GroupManagementQuery.js +3 -2
  21. package/identities/IdentityCreationRequest.d.ts +6 -3
  22. package/identities/IdentityCreationRequest.js +4 -3
  23. package/identities/IdentityQuery.d.ts +5 -3
  24. package/identities/IdentityQuery.js +4 -2
  25. package/identities/ScopeTypes.d.ts +5 -0
  26. package/identities/ScopeTypes.js +9 -0
  27. package/identities/UserIdentity.d.ts +9 -4
  28. package/identities/UserIdentity.js +6 -1
  29. package/identities/UserIdentityQuery.d.ts +4 -3
  30. package/identities/UserIdentityQuery.js +3 -2
  31. package/identities/UserManagementQuery.d.ts +5 -3
  32. package/identities/UserManagementQuery.js +4 -2
  33. package/identities/index.d.ts +1 -0
  34. package/identities/index.js +1 -0
  35. package/internal-do-not-import-from-here/shared/models/Guid.js +1 -1
  36. package/internal-do-not-import-from-here/shared/models/Messaging.d.ts +23 -0
  37. package/internal-do-not-import-from-here/shared/models/Messaging.js +2 -0
  38. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +1 -1
  39. package/internal-do-not-import-from-here/shared/models/index.d.ts +2 -0
  40. package/internal-do-not-import-from-here/shared/models/index.js +2 -0
  41. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +0 -6
  42. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +6 -4
  43. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +0 -2
  44. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +0 -4
  45. package/mediaflow/Constants.js +12 -12
  46. package/package.json +1 -1
  47. package/properties/datasource/AppDataSourceProperty.d.ts +1 -1
  48. package/properties/datasource/DataSourceId.d.ts +1 -1
  49. package/properties/datasource/DataSourcePropertyDisplayInformation.d.ts +1 -1
  50. package/properties/datasource/UserDataSourceProperty.d.ts +1 -1
  51. package/properties/definitions/DatePropertyDefinition.d.ts +0 -1
  52. package/properties/definitions/DateTimePropertyDefinition.d.ts +0 -1
  53. package/properties/definitions/EmailPropertyDefinition.d.ts +0 -1
  54. package/properties/definitions/IdentityPropertyDefinition.d.ts +1 -1
  55. package/properties/definitions/IdentityPropertyDefinition.js +2 -2
  56. package/properties/definitions/ImagePropertyDefinition.d.ts +0 -1
  57. package/ux/AdminApi.d.ts +2 -2
  58. package/ux/EnterprisePropertyDataTypeProviderApi.d.ts +1 -2
  59. package/ux/InternalAdminApi.d.ts +2 -2
  60. package/ux/LayoutCanvasApi.d.ts +1 -1
  61. package/ux/ThemingApi.d.ts +31 -3
  62. /package/{DependencyInjection.d.ts → internal-do-not-import-from-here/shared/models/DependencyInjection.d.ts} +0 -0
  63. /package/{DependencyInjection.js → internal-do-not-import-from-here/shared/models/DependencyInjection.js} +0 -0
package/AiSettings.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { MultilingualString } from "./MultilingualString";
3
3
  export declare enum PassAnalysisCriteria {
4
4
  Yes = 0,
package/Exposes.d.ts CHANGED
@@ -31,7 +31,6 @@ export * from "./CommentLike";
31
31
  export * from "./SocialReaction";
32
32
  export * from "./Post";
33
33
  export type { WebComponentDefinition } from "./ComponentComposer";
34
- export * from "./DependencyInjection";
35
34
  export * from "./Store";
36
35
  export * from "./SiteLogo";
37
36
  export * from "./PermissionInputSettings";
package/Exposes.js CHANGED
@@ -37,7 +37,6 @@ tslib_1.__exportStar(require("./Language"), exports);
37
37
  tslib_1.__exportStar(require("./CommentLike"), exports);
38
38
  tslib_1.__exportStar(require("./SocialReaction"), exports);
39
39
  tslib_1.__exportStar(require("./Post"), exports);
40
- tslib_1.__exportStar(require("./DependencyInjection"), exports);
41
40
  tslib_1.__exportStar(require("./Store"), exports);
42
41
  tslib_1.__exportStar(require("./SiteLogo"), exports);
43
42
  tslib_1.__exportStar(require("./PermissionInputSettings"), exports);
@@ -1,5 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { IMessageBusTopicSubscription } from "./Messaging";
1
+ import { GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
2
  import { Block, LoadedLayout } from "./Layout";
4
3
  import { IIcon } from "./Icon";
5
4
  interface ILayoutCanvasItemDefinition<T> {
@@ -8,9 +8,9 @@ exports.DefaultLinkType = void 0;
8
8
  * @see {LinkHandlerRegistrationManager} class for handler implementation details
9
9
  */
10
10
  class DefaultLinkType {
11
+ static { this.id = "72da0174-ad58-47da-90e7-ca03e3ecb651"; }
11
12
  constructor() {
12
13
  this.id = DefaultLinkType.id;
13
14
  }
14
15
  }
15
16
  exports.DefaultLinkType = DefaultLinkType;
16
- DefaultLinkType.id = "72da0174-ad58-47da-90e7-ca03e3ecb651";
@@ -7,6 +7,7 @@ exports.DocumentLinkType = void 0;
7
7
  * @implements {LinkType}
8
8
  */
9
9
  class DocumentLinkType {
10
+ static { this.id = "0d8fceb2-fdc9-4133-88be-0868a1f89601"; }
10
11
  /**
11
12
  * Base constructor
12
13
  */
@@ -15,4 +16,3 @@ class DocumentLinkType {
15
16
  }
16
17
  }
17
18
  exports.DocumentLinkType = DocumentLinkType;
18
- DocumentLinkType.id = "0d8fceb2-fdc9-4133-88be-0868a1f89601";
package/Messaging.d.ts CHANGED
@@ -48,29 +48,6 @@ export interface AppProvisioningHandlerMessage {
48
48
  */
49
49
  weight: number;
50
50
  }
51
- export interface TopicCreatedFunc<T> {
52
- (created: IMessageBusTopicPublishSubscriber<T>): void;
53
- }
54
- export interface IMessageBusSubscriptionHandler {
55
- /**
56
- * Unsubscribe to the related subscription(s)
57
- * and/or any subscriptions added using add method)
58
- * */
59
- unsubscribe(): any;
60
- /**
61
- * Adds another unsubscribe handler, all will be unsubscribed to if calling unsubscribe
62
- * @param unSubscriptionHandler
63
- */
64
- add(unSubscriptionHandler: IMessageBusSubscriptionHandler): any;
65
- }
66
- export interface IMessageBusTopicSubscription<T> {
67
- subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
68
- }
69
- export interface IMessageBusTopicPublication<T> {
70
- publish: (msg: T) => void;
71
- }
72
- export interface IMessageBusTopicPublishSubscriber<T> extends IMessageBusTopicSubscription<T>, IMessageBusTopicPublication<T> {
73
- }
74
51
  export interface RichTextEditorExtensionMessage {
75
52
  id: GuidValue;
76
53
  title: string;
@@ -1,5 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { IMessageBusTopicSubscription } from "./Messaging";
1
+ import { GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
2
  export interface NamedPropertyIdentifier {
4
3
  serviceId: string;
5
4
  name: string;
@@ -5,13 +5,13 @@ exports.TargetingPropertyType = void 0;
5
5
  * Used for filtering etc
6
6
  * */
7
7
  class TargetingPropertyType {
8
+ /// <summary>
9
+ /// Use maskable values
10
+ /// </summary>
11
+ static { this.groupMembership = 1; }
12
+ static { this.userProfileProperty = 2; }
13
+ static { this.azureAdProperty = 3; }
14
+ static { this.groupIdentity = 4; }
15
+ static { this.userProperty = 5; }
8
16
  }
9
17
  exports.TargetingPropertyType = TargetingPropertyType;
10
- /// <summary>
11
- /// Use maskable values
12
- /// </summary>
13
- TargetingPropertyType.groupMembership = 1;
14
- TargetingPropertyType.userProfileProperty = 2;
15
- TargetingPropertyType.azureAdProperty = 3;
16
- TargetingPropertyType.groupIdentity = 4;
17
- TargetingPropertyType.userProperty = 5;
@@ -1,4 +1,4 @@
1
- import { IMessageBusTopicSubscription } from "./Messaging";
1
+ import { IMessageBusTopicSubscription } from "@omnia/fx/internal-do-not-import-from-here/shared";
2
2
  export declare abstract class ReplaceToken {
3
3
  abstract readonly prefixToken: string;
4
4
  }
@@ -2,15 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppInstanceRollupCardViewTypes = exports.AppInstanceRollupConstants = void 0;
4
4
  class AppInstanceRollupConstants {
5
+ static { this.AppInstanceProperties = {
6
+ Title: "title_df6808d8-7bda-4c53-8906-2d7dec058289",
7
+ TitleAndLink: "titleAndLink_93c3fdc6-1ca4-4242-b873-7de964aad588",
8
+ LastVisited: "lastVisited_572f0c7a-5b0a-4add-9269-ba05c54f9432",
9
+ Description: "description_d4d77ca6-1ca4-479e-94f0-532b9ca52ed4",
10
+ Image: "image_44a905b6-48e3-47e4-9690-376a4e855cf0"
11
+ }; }
5
12
  }
6
13
  exports.AppInstanceRollupConstants = AppInstanceRollupConstants;
7
- AppInstanceRollupConstants.AppInstanceProperties = {
8
- Title: "title_df6808d8-7bda-4c53-8906-2d7dec058289",
9
- TitleAndLink: "titleAndLink_93c3fdc6-1ca4-4242-b873-7de964aad588",
10
- LastVisited: "lastVisited_572f0c7a-5b0a-4add-9269-ba05c54f9432",
11
- Description: "description_d4d77ca6-1ca4-479e-94f0-532b9ca52ed4",
12
- Image: "image_44a905b6-48e3-47e4-9690-376a4e855cf0"
13
- };
14
14
  var AppInstanceRollupCardViewTypes;
15
15
  (function (AppInstanceRollupCardViewTypes) {
16
16
  AppInstanceRollupCardViewTypes[AppInstanceRollupCardViewTypes["BackgroundImage"] = 1] = "BackgroundImage";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorCode = void 0;
4
4
  class ErrorCode {
5
+ static { this.TooManyRequests = "tooManyRequests"; }
6
+ static { this.ContentFilter = "ContentFilter"; }
5
7
  }
6
8
  exports.ErrorCode = ErrorCode;
7
- ErrorCode.TooManyRequests = "tooManyRequests";
8
- ErrorCode.ContentFilter = "ContentFilter";
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Status = void 0;
4
4
  class Status {
5
+ static { this.Succeeded = "Succeeded"; }
6
+ static { this.Failed = "Failed"; }
7
+ static { this.NotStarted = "NotStarted"; }
5
8
  }
6
9
  exports.Status = Status;
7
- Status.Succeeded = "Succeeded";
8
- Status.Failed = "Failed";
9
- Status.NotStarted = "NotStarted";
@@ -1,6 +1,8 @@
1
+ import { ScopeTypes } from "../identities";
1
2
  export interface BulkImportUsersTasks {
2
3
  tasks: Array<UserImportTask>;
3
- ownerId: string;
4
+ scope: string;
5
+ scopeType: ScopeTypes;
4
6
  headers: Array<string>;
5
7
  }
6
8
  export interface UserImportTask {
@@ -8,7 +8,7 @@ export declare class ArchiveIdentityManagementQuery {
8
8
  pageSize?: number;
9
9
  sortColumn?: ArchiveSortColumn;
10
10
  sortDesc?: boolean;
11
- ownerId?: string;
11
+ businessProfileId?: GuidValue;
12
12
  language?: LanguageTags;
13
- constructor(searchText?: string, identityType?: IdentityTypes, providerId?: GuidValue, pageNumber?: number, pageSize?: number, sortColumn?: ArchiveSortColumn, sortDesc?: boolean, ownerId?: string, language?: LanguageTags);
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, ownerId, language) {
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.ownerId = ownerId;
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 { Identity, IResolvedIdentity } from "./Identity";
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
- ownerId: string;
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
- ownerId: string;
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
- ownerId?: string;
12
- constructor(searchText?: string, groupTypeId?: GuidValue, providerId?: GuidValue, pageNumber?: number, pageSize?: number, sortColumn?: GroupSortColumn, sortDesc?: boolean, ownerId?: string);
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, ownerId) {
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.ownerId = ownerId;
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
- ownerId: GuidValue;
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
- ownerId: string;
90
+ scope: string;
91
+ scopeType: ScopeTypes;
89
92
  isEmailConfirmed: BoolFilter;
90
93
  approvalState: ApprovalState;
91
- constructor(ownerId: string, isEmailConfirmed: BoolFilter, approvalState: ApprovalState);
94
+ constructor(scope: string, scopeType: ScopeTypes, isEmailConfirmed: BoolFilter, approvalState: ApprovalState);
92
95
  }
93
96
  export interface IdentityCreationRequestQueryResult {
94
97
  results: Array<IdentityCreationRequest>;
@@ -45,14 +45,16 @@ class IdentityPropertyBindingSetting extends PropertyBindingSetting {
45
45
  }
46
46
  exports.IdentityPropertyBindingSetting = IdentityPropertyBindingSetting;
47
47
  class IdentityCreationRequestQuery {
48
- constructor(ownerId, isEmailConfirmed, approvalState) {
49
- this.ownerId = ownerId;
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
  }
53
54
  }
54
55
  exports.IdentityCreationRequestQuery = IdentityCreationRequestQuery;
55
56
  class BusinessProfileIdentityCreationRequestSettings extends BusinessProfile_1.BusinessProfileProperty {
57
+ static { this.UniqueName = "self-service"; }
56
58
  constructor() {
57
59
  super(ManifestIds_1.OmniaService.Id, BusinessProfileIdentityCreationRequestSettings.UniqueName);
58
60
  this.omniaServiceId = ManifestIds_1.OmniaService.Id;
@@ -61,4 +63,3 @@ class BusinessProfileIdentityCreationRequestSettings extends BusinessProfile_1.B
61
63
  }
62
64
  }
63
65
  exports.BusinessProfileIdentityCreationRequestSettings = BusinessProfileIdentityCreationRequestSettings;
64
- BusinessProfileIdentityCreationRequestSettings.UniqueName = "self-service";
@@ -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
- ownerId?: string;
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, ownerId?: string, tenantIdentityOnly?: boolean);
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, ownerId, tenantIdentityOnly) {
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.ownerId = ownerId;
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,5 @@
1
+ export declare enum ScopeTypes {
2
+ Tenant = 1,
3
+ BusinessProfile = 2,
4
+ Group = 3
5
+ }
@@ -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, ImagePropertyDefinition, EmailPropertyValue, LanguagePropertyDefinition, PhoneNumberPropertyValue, PropertyValueBinding, TextPropertyDefinition } from "../properties";
4
- import { Identity, IResolvedIdentity } from "./Identity";
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
- ownerId: string;
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
- ownerId: string;
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
- ownerId: ""
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
- ownerId?: string;
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, ownerId?: string, tenantIdentityOnly?: boolean);
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, ownerId, tenantIdentityOnly) {
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.ownerId = ownerId;
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
- ownerId?: string;
11
+ scope?: string[];
12
12
  disabled?: BoolFilter;
13
13
  timeValid?: BoolFilter;
14
14
  language?: LanguageTags;
15
- constructor(searchText?: string, userTypeId?: GuidValue, providerId?: GuidValue, pageNumber?: number, pageSize?: number, sortColumn?: UserSortColumn, sortDesc?: boolean, ownerId?: string, disabled?: BoolFilter, timeValid?: BoolFilter, language?: LanguageTags);
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, ownerId, disabled, timeValid, language) {
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.ownerId = ownerId;
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;
@@ -28,3 +28,4 @@ export * from "./UserManagementQuery";
28
28
  export * from "./GroupManagementQuery";
29
29
  export * from "./ArchiveIdentityManagementQuery";
30
30
  export * from "./IdentityCreationRequest";
31
+ export * from "./ScopeTypes";
@@ -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);
@@ -12,6 +12,7 @@ require("./Equals"); // ensure execute code in equals first
12
12
  * Class to create a guid
13
13
  */
14
14
  class Guid {
15
+ static { this._empty = new Guid("00000000-0000-0000-0000-000000000000"); }
15
16
  static newGuid() {
16
17
  return new Guid("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
17
18
  const r = Math.random() * 16 | 0;
@@ -57,7 +58,6 @@ class Guid {
57
58
  }
58
59
  }
59
60
  exports.Guid = Guid;
60
- Guid._empty = new Guid("00000000-0000-0000-0000-000000000000");
61
61
  // only add extension methods when running in browser, not in node.js
62
62
  if (globalThis.omnia) {
63
63
  Object.defineProperty(String.prototype["equals"], "guid", {
@@ -0,0 +1,23 @@
1
+ export interface TopicCreatedFunc<T> {
2
+ (created: IMessageBusTopicPublishSubscriber<T>): void;
3
+ }
4
+ export interface IMessageBusSubscriptionHandler {
5
+ /**
6
+ * Unsubscribe to the related subscription(s)
7
+ * and/or any subscriptions added using add method)
8
+ * */
9
+ unsubscribe(): any;
10
+ /**
11
+ * Adds another unsubscribe handler, all will be unsubscribed to if calling unsubscribe
12
+ * @param unSubscriptionHandler
13
+ */
14
+ add(unSubscriptionHandler: IMessageBusSubscriptionHandler): any;
15
+ }
16
+ export interface IMessageBusTopicSubscription<T> {
17
+ subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
18
+ }
19
+ export interface IMessageBusTopicPublication<T> {
20
+ publish: (msg: T) => void;
21
+ }
22
+ export interface IMessageBusTopicPublishSubscriber<T> extends IMessageBusTopicSubscription<T>, IMessageBusTopicPublication<T> {
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HubSource = void 0;
4
4
  class HubSource {
5
+ static { this.Id = "eb4fde5f-4f3e-4c70-9893-3d9e048fda0c"; }
5
6
  }
6
7
  exports.HubSource = HubSource;
7
- HubSource.Id = "eb4fde5f-4f3e-4c70-9893-3d9e048fda0c";
@@ -17,3 +17,5 @@ export * from "./StronglyTypedId";
17
17
  export * from "./theming";
18
18
  export * from "./hub";
19
19
  export * from "./velcron";
20
+ export * from "./DependencyInjection";
21
+ export * from "./Messaging";
@@ -21,3 +21,5 @@ tslib_1.__exportStar(require("./StronglyTypedId"), exports);
21
21
  tslib_1.__exportStar(require("./theming"), exports);
22
22
  tslib_1.__exportStar(require("./hub"), exports);
23
23
  tslib_1.__exportStar(require("./velcron"), exports);
24
+ tslib_1.__exportStar(require("./DependencyInjection"), exports);
25
+ tslib_1.__exportStar(require("./Messaging"), 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 { Blueprints, BoxDimensions } from "./Blueprints";
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: string;
45
- dark: boolean;
44
+ name?: string;
46
45
  colors: ColorSchemas;
47
- blueprints: Blueprints[];
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,
@@ -2,20 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MediaflowSecretsForms = exports.MediaflowConstants = void 0;
4
4
  class MediaflowConstants {
5
+ static { this.mediaflowJsUrl = "https://mfstatic.com/js/fileselector.min.js"; }
6
+ static { this.mediaflowJsFallback = "https://mfstatic.com/js/fileselector.js"; }
7
+ static { this.mediaflowCssUrl = "https://mfstatic.com/css/fileselector.min.css"; }
8
+ static { this.mediaflowCssFallback = "https://mfstatic.com/css/fileselector.css"; }
9
+ static { this.featureId = "32B53D6B-6177-40FD-A8D2-386128089CA5"; }
10
+ static { this.mediaFlowSettingsKey = "omnia.mediaflow.settings"; }
11
+ static { this.mediaFlowSecretKey = "omnia-mediaflow-integration-key"; }
12
+ static { this.defaultSupportedMediaFormats = "flv,mxf,gxf,wmv,asf,mp4,m4v,ismv,mkv,mov,jpeg,jpg,png,bmp,gif,svg,ico"; }
5
13
  }
6
14
  exports.MediaflowConstants = MediaflowConstants;
7
- MediaflowConstants.mediaflowJsUrl = "https://mfstatic.com/js/fileselector.min.js";
8
- MediaflowConstants.mediaflowJsFallback = "https://mfstatic.com/js/fileselector.js";
9
- MediaflowConstants.mediaflowCssUrl = "https://mfstatic.com/css/fileselector.min.css";
10
- MediaflowConstants.mediaflowCssFallback = "https://mfstatic.com/css/fileselector.css";
11
- MediaflowConstants.featureId = "32B53D6B-6177-40FD-A8D2-386128089CA5";
12
- MediaflowConstants.mediaFlowSettingsKey = "omnia.mediaflow.settings";
13
- MediaflowConstants.mediaFlowSecretKey = "omnia-mediaflow-integration-key";
14
- MediaflowConstants.defaultSupportedMediaFormats = "flv,mxf,gxf,wmv,asf,mp4,m4v,ismv,mkv,mov,jpeg,jpg,png,bmp,gif,svg,ico";
15
15
  class MediaflowSecretsForms {
16
+ static { this.clientid = "clientid"; }
17
+ static { this.clientsecret = "clientsecret"; }
18
+ static { this.refreshtoken = "refreshtoken"; }
19
+ static { this.integrationKey = "integrationKey"; }
16
20
  }
17
21
  exports.MediaflowSecretsForms = MediaflowSecretsForms;
18
- MediaflowSecretsForms.clientid = "clientid";
19
- MediaflowSecretsForms.clientsecret = "clientsecret";
20
- MediaflowSecretsForms.refreshtoken = "refreshtoken";
21
- MediaflowSecretsForms.integrationKey = "integrationKey";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.127-dev",
4
+ "version": "8.0.129-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { PropertyDataSourceId } from "./DataSourceId";
3
3
  import { DataSourceProperty } from "./DataSourceProperty";
4
4
  export declare class AppDataSourceProperty extends DataSourceProperty {
@@ -1,2 +1,2 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  export type PropertyDataSourceId = GuidValue;
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { MultilingualString } from "../../MultilingualString";
3
3
  export declare class DataSourcePropertyCategory {
4
4
  id: GuidValue;
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { PropertyBindingId } from "../PropertyBinding";
3
3
  import { PropertyDataSourceId } from "./DataSourceId";
4
4
  import { DataSourceProperty } from "./DataSourceProperty";
@@ -20,7 +20,6 @@ export declare class DateDisplaySettings extends PropertyDisplaySettingsBase {
20
20
  renderMode?: DateRenderOption;
21
21
  }
22
22
  export declare class DateEditorSettings extends PropertyEditorSettingsBase {
23
- required: boolean;
24
23
  }
25
24
  export declare class DatePropertyDefinition extends PropertyDefinition<DatePropertyValue, DateDisplaySettings, DateEditorSettings> {
26
25
  id: Guid;
@@ -9,7 +9,6 @@ export declare class DateTimeDisplaySettings extends PropertyDisplaySettingsBase
9
9
  showTimeZone?: boolean;
10
10
  }
11
11
  export declare class DateTimeEditorSettings extends PropertyEditorSettingsBase {
12
- required: boolean;
13
12
  }
14
13
  export declare class DateTimePropertyDefinition extends PropertyDefinition<DateTimePropertyValue, DateTimeDisplaySettings, DateTimeEditorSettings> {
15
14
  id: Guid;
@@ -5,7 +5,6 @@ export declare class EmailDisplaySettings extends PropertyDisplaySettingsBase {
5
5
  showIcon?: boolean;
6
6
  }
7
7
  export declare class EmailEditorSettings extends PropertyEditorSettingsBase {
8
- required: boolean;
9
8
  }
10
9
  export declare class EmailPropertyDefinition extends PropertyDefinition<EmailPropertyValue, EmailDisplaySettings, EmailEditorSettings> {
11
10
  id: Guid;
@@ -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 shared_1 = require("@omnia/fx/internal-do-not-import-from-here/shared");
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 shared_1.Guid("4dfc3b66-a203-447d-8f64-171f47e5b63a");
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);
@@ -16,7 +16,6 @@ export declare class ImageEditorSettings extends PropertyEditorSettingsBase {
16
16
  preConfiguredImageScalingUniqueId?: GuidValue;
17
17
  forceScaling?: boolean;
18
18
  cropRatioUniqueIds?: Array<GuidValue>;
19
- required?: boolean;
20
19
  rollupRatiosDisabled?: boolean;
21
20
  }
22
21
  export declare const imagePropertyDefinitionId: Guid;
package/ux/AdminApi.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Guid, GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
+ import { Guid, GuidValue, IMessageBusTopicPublishSubscriber } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { AdminNavigationNode, NavigationNode, NavigationNodeInitializeMessage } from "../admin";
3
3
  import { ApiPath, IExtendApiManifestWithConfiguration } from "../Extends";
4
- import { IMessageBusTopicPublishSubscriber, NavigationMenuNode } from "../Messaging";
4
+ import { NavigationMenuNode } from "../Messaging";
5
5
  export interface IRegisterAdminNavigationNode {
6
6
  registerNavigationNode: (nodes: NavigationNode | NavigationNode[]) => void;
7
7
  }
@@ -1,7 +1,6 @@
1
1
  import { EnterprisePropertyDataTypeProviderRegistration } from "..";
2
2
  import { ApiPath } from "../Extends";
3
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
4
- import { IMessageBusTopicSubscription } from "../Messaging";
3
+ import { GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models";
5
4
  export interface IInternalRegistrationEnterprisePropertyDataTypeProvider extends IRegistrationEnterprisePropertyDataTypeProvider {
6
5
  getAllEnterprisePropertyDataTypeProvider: () => EnterprisePropertyDataTypeProviderRegistration[];
7
6
  onEnterprisePropertyDataTypeProviderRegistrationChange: () => IMessageBusTopicSubscription<EnterprisePropertyDataTypeProviderRegistration[]>;
@@ -1,6 +1,6 @@
1
- import { GuidValue } from "@omnia/fx-models";
1
+ import { GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models";
2
2
  import { AdminNavigationNode, NavigationNode } from "../admin";
3
- import { NavigationMenuNode, IMessageBusTopicSubscription } from "../Messaging";
3
+ import { NavigationMenuNode } from "../Messaging";
4
4
  import { IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode, INavigationRootNodeRegistration, INavigationSubNodeRegistration } from "./AdminApi";
5
5
  export interface AdminNavigationNodeRegistration {
6
6
  node: AdminNavigationNode;
@@ -2,7 +2,7 @@ import { VNode, h } from "vue";
2
2
  import { GuidValue } from "../Exposes";
3
3
  import { ApiPath, IExtendApiManifestWithConfiguration } from "../Extends";
4
4
  import { LayoutPlaceHolderRegistration, LayoutTemplateRegistration } from "../Layout";
5
- import { IMessageBusTopicSubscription } from "../Messaging";
5
+ import { IMessageBusTopicSubscription } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
6
6
  export interface IInternalLayoutTemplateRegistration extends ILayoutTemplateRegistration {
7
7
  getAllLayoutTemplates: () => LayoutTemplateRegistration[];
8
8
  onLayoutTemplateRegistrationChange: () => IMessageBusTopicSubscription<LayoutTemplateRegistration[]>;
@@ -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
- getAll(): any;
5
- register(definitions: ThemeDefinitionV2 | ThemeDefinitionV2[]): any;
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>;