@omnia/fx-models 8.0.126-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.
Files changed (62) hide show
  1. package/ManifestIds.d.ts +1 -0
  2. package/ManifestIds.js +3 -0
  3. package/bulkimportusers/BulkImportUsersTasks.d.ts +3 -1
  4. package/identities/ArchiveIdentityManagementQuery.d.ts +2 -2
  5. package/identities/ArchiveIdentityManagementQuery.js +2 -2
  6. package/identities/GroupIdentity.d.ts +17 -3
  7. package/identities/GroupIdentity.js +3 -0
  8. package/identities/GroupManagementQuery.d.ts +4 -3
  9. package/identities/GroupManagementQuery.js +3 -2
  10. package/identities/IdentityCreationRequest.d.ts +6 -3
  11. package/identities/IdentityCreationRequest.js +3 -2
  12. package/identities/IdentityQuery.d.ts +5 -3
  13. package/identities/IdentityQuery.js +4 -2
  14. package/identities/ScopeTypes.d.ts +5 -0
  15. package/identities/ScopeTypes.js +9 -0
  16. package/identities/UserIdentity.d.ts +9 -4
  17. package/identities/UserIdentity.js +6 -1
  18. package/identities/UserIdentityQuery.d.ts +4 -3
  19. package/identities/UserIdentityQuery.js +3 -2
  20. package/identities/UserManagementQuery.d.ts +5 -3
  21. package/identities/UserManagementQuery.js +4 -2
  22. package/identities/index.d.ts +1 -0
  23. package/identities/index.js +1 -0
  24. package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +2 -1
  25. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +8 -8
  26. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +10 -9
  27. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +9 -9
  28. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +3 -3
  29. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +40 -0
  30. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +17 -0
  31. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +1 -2
  32. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +1 -2
  33. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +21 -0
  34. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +10 -0
  35. package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +2 -0
  36. package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +2 -0
  37. package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +5 -0
  38. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +2 -1
  39. package/internal-do-not-import-from-here/shared/models/hub/index.js +2 -1
  40. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +3 -3
  41. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +2 -2
  42. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +2 -2
  43. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +14 -25
  44. package/internal-do-not-import-from-here/shared/models/theming/Chrome.d.ts +3 -3
  45. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +8 -5
  46. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +1 -0
  47. package/internal-do-not-import-from-here/shared/models/theming/Typography.d.ts +3 -3
  48. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +0 -2
  49. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +0 -4
  50. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +2 -2
  51. package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +3 -0
  52. package/media-picker/MediaPickerTransformations.d.ts +1 -0
  53. package/package.json +1 -1
  54. package/properties/definitions/IdentityPropertyDefinition.d.ts +1 -1
  55. package/properties/definitions/IdentityPropertyDefinition.js +2 -2
  56. package/ux/ThemingApi.d.ts +31 -3
  57. package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +0 -2
  58. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +0 -16
  59. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +0 -5
  60. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +0 -40
  61. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +0 -39
  62. /package/internal-do-not-import-from-here/shared/models/hub/{ExternalIdentityId.js → actors/ExternalActorId.js} +0 -0
package/ManifestIds.d.ts CHANGED
@@ -146,6 +146,7 @@ export declare class OmniaWebComponentManifests {
146
146
  static get MagicLinkFailure(): Guid;
147
147
  static get LayoutRendererCanvas(): Guid;
148
148
  static get VersionedLayoutBladeBuilder(): Guid;
149
+ static get VersionedLayoutCreationBlade(): Guid;
149
150
  static get VersionedLayoutListBladeBuilder(): Guid;
150
151
  static get VersionedLayoutCheckedOutByOtherMessage(): Guid;
151
152
  static get VersionedLayoutRenderer(): Guid;
package/ManifestIds.js CHANGED
@@ -459,6 +459,9 @@ class OmniaWebComponentManifests {
459
459
  static get VersionedLayoutBladeBuilder() {
460
460
  return new models_1.Guid("35ec8e8c-3b6e-4585-8afd-0b1832eef250");
461
461
  }
462
+ static get VersionedLayoutCreationBlade() {
463
+ return new models_1.Guid("e40dc8c1-d503-4296-96ce-fd8cccadc744");
464
+ }
462
465
  static get VersionedLayoutListBladeBuilder() {
463
466
  return new models_1.Guid("cd42d83e-ed23-4ada-aea7-498795c701ee");
464
467
  }
@@ -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,8 +45,9 @@ 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
  }
@@ -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);
@@ -1,6 +1,7 @@
1
1
  import { OmniaToken } from "./Tokens";
2
2
  import { Guid, GuidValue } from "./Guid";
3
3
  import { TenantIdentifier } from "./Tenant";
4
+ import { ActorId } from "./hub";
4
5
  export interface OmniaSharedBootstrapData {
5
6
  uiThreadId: GuidValue;
6
7
  workerThreadId: GuidValue;
@@ -14,7 +15,7 @@ export interface OmniaSharedBootstrapData {
14
15
  tokenKey?: OmniaToken;
15
16
  tokenRef: GuidValue;
16
17
  identity: string;
17
- hubIdentity?: number;
18
+ hubActorId?: ActorId;
18
19
  licenses: Array<Guid>;
19
20
  hubDev?: boolean;
20
21
  realtimeDevPort?: string;
@@ -1,11 +1,11 @@
1
1
  import { ChannelId } from "./ActivityChannel";
2
- import { ActivitySenderId } from "./ActivitySender";
3
2
  import { ActivityRenderer, ActivityRendererReference } from "./ActivityRenderer";
4
3
  import { StronglyTypedId } from "../../StronglyTypedId";
5
4
  import { GuidValue } from "../../Guid";
6
5
  import { DynamicState } from "../../DynamicState";
7
- import { IdentityActivityCategory } from "./IdentityActivity";
6
+ import { ActorActivityCategory } from "./ActorActivity";
8
7
  import { TemporaryFileId } from "../fileupload";
8
+ import { ActorId } from "../actors";
9
9
  export type ActivityId = StronglyTypedId<number, "ActivityId">;
10
10
  export declare function ActivityId(id: number): ActivityId;
11
11
  export type ActivityTypeId = StronglyTypedId<GuidValue, "ActivityTypeId">;
@@ -14,11 +14,11 @@ export interface Activity<TRenderState = DynamicState> extends ActivityBase {
14
14
  id: ActivityId;
15
15
  state: TRenderState;
16
16
  renderer: ActivityRenderer | ActivityRendererReference;
17
- senderId: ActivitySenderId;
17
+ createdBy: ActorId;
18
18
  }
19
19
  export interface ActivityWithJson extends ActivityBase {
20
20
  id: ActivityId;
21
- senderId: ActivitySenderId;
21
+ createdBy: ActorId;
22
22
  stateJson: string;
23
23
  rendererJson: string;
24
24
  }
@@ -56,15 +56,15 @@ export declare enum PrivacyLevel {
56
56
  export interface CreateActivityRequest {
57
57
  channelId: ChannelId;
58
58
  activityTypeId: ActivityTypeId;
59
- senderId: ActivitySenderId;
59
+ createdBy: ActorId;
60
60
  stateJson: string;
61
61
  rendererJson: string;
62
62
  notificationTeaser: NotificationTeaser;
63
63
  targeting: Array<Array<SourceRelatedHubProperty>>;
64
- addToSenders?: {
65
- [activitySenderId: string]: PrivacyLevel;
64
+ addToActors?: {
65
+ [actorId: ActorId]: PrivacyLevel;
66
66
  };
67
- category: IdentityActivityCategory;
67
+ category: ActorActivityCategory;
68
68
  activityIdPlaceHolder?: TemporaryFileId;
69
69
  expires?: Date;
70
70
  createdAt?: Date;
@@ -1,30 +1,31 @@
1
+ import { ActorId } from "../actors";
1
2
  import { Activity, ActivityId, ActivityWithJson } from "./Activity";
2
3
  import { ActivityRenderer, ActivityRendererId } from "./ActivityRenderer";
3
- import { ActivitySenderId } from "./ActivitySender";
4
- import { ActivityCategoryCount, IdentityActivity, IdentityActivityCategory, IdentityActivityWithJson, NewActivitiesBySenderBase } from "./IdentityActivity";
4
+ import { ActivityCategoryCount, ActorActivity, ActorActivityCategory, ActorActivityWithJson, NewActivitiesByCreatorBase } from "./ActorActivity";
5
5
  export interface ActivityFeed extends ActivityFeedBase {
6
6
  renderers: {
7
7
  [key: ActivityRendererId]: Array<ActivityRenderer>;
8
8
  };
9
- identityActivities: Array<IdentityActivity<object, object>>;
9
+ actorActivities: Array<ActorActivity<object, object>>;
10
10
  activities: Array<Activity>;
11
11
  }
12
12
  export interface ActivityFeedResult extends ActivityFeedBase {
13
- identityActivities: Array<IdentityActivityWithJson>;
13
+ actorActivities: Array<ActorActivityWithJson>;
14
14
  activities: Array<ActivityWithJson>;
15
15
  loadStateHash: string;
16
16
  }
17
17
  export interface ActivityFeedBase {
18
- newActivities: Array<NewActivitiesBySenderBase>;
18
+ newActivities: Array<NewActivitiesByCreatorBase>;
19
19
  nextStartingFromId: ActivityId;
20
- recentSenders: Array<ActivitySenderId>;
20
+ recentCreators: Array<ActorId>;
21
21
  categories: Array<ActivityCategoryCount>;
22
22
  }
23
23
  export interface FeedQuery {
24
+ forActorId?: ActorId;
24
25
  newerThenId?: ActivityId;
25
26
  olderThenId?: ActivityId;
26
- filterBySenderId?: ActivitySenderId;
27
- filterByCategory?: IdentityActivityCategory;
28
- includeRecentSenders?: number;
27
+ filterByCreator?: ActorId;
28
+ filterByCategory?: ActorActivityCategory;
29
+ includeRecentCreators?: number;
29
30
  includeCategories?: boolean;
30
31
  }
@@ -1,16 +1,16 @@
1
1
  import { StronglyTypedId } from "../../StronglyTypedId";
2
- import { ActivitySenderId } from "./ActivitySender";
3
- export type ActivitySubscriptionId = StronglyTypedId<string, "ActivitySubscriptionId">;
4
- export declare function ActivitySubscriptionId(id: string): ActivitySubscriptionId;
5
- export interface ActivitySubscription extends ActivitySenderSubscription {
2
+ import { ActorId } from "../actors";
3
+ export type SubscriptionId = StronglyTypedId<string, "SubscriptionId">;
4
+ export declare function SubscriptionId(id: string): SubscriptionId;
5
+ export interface SubscriptionInformation extends ActorSubscription {
6
6
  title: Record<string, string>;
7
7
  description: Record<string, string>;
8
8
  clientId: string;
9
9
  }
10
- export interface ActivitySenderSubscription {
11
- id: ActivitySubscriptionId;
12
- activitySenderId: ActivitySenderId;
10
+ export interface ActorSubscription {
11
+ id: SubscriptionId;
12
+ subscriptionOwner: ActorId;
13
13
  }
14
- export interface ActivityUserSubscription extends ActivitySenderSubscription {
15
- hubUserId: number;
14
+ export interface Subscription extends ActorSubscription {
15
+ subscriber: ActorId;
16
16
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivitySubscriptionId = void 0;
4
- function ActivitySubscriptionId(id) { return id; }
5
- exports.ActivitySubscriptionId = ActivitySubscriptionId;
3
+ exports.SubscriptionId = void 0;
4
+ function SubscriptionId(id) { return id; }
5
+ exports.SubscriptionId = SubscriptionId;
@@ -0,0 +1,40 @@
1
+ import { DynamicState } from "../../DynamicState";
2
+ import { Actor, ActorId } from "../actors";
3
+ import { Activity, ActivityId } from "./Activity";
4
+ import { ChannelId } from "./ActivityChannel";
5
+ export declare enum ActorActivityStatus {
6
+ new = 0,
7
+ read = 1,
8
+ completed = 2
9
+ }
10
+ export declare enum ActorActivityCategory {
11
+ none = 0,
12
+ important = 1,
13
+ todo = 2,
14
+ snoozed = 3,
15
+ bookmarked = 4
16
+ }
17
+ export interface ActorActivityBase {
18
+ activityId: ActivityId;
19
+ status: ActorActivityStatus;
20
+ category: ActorActivityCategory;
21
+ }
22
+ export interface ActorActivity<TRenderState extends DynamicState, TState extends DynamicState> extends ActorActivityBase {
23
+ activity: Activity<TRenderState>;
24
+ state?: TState;
25
+ }
26
+ export interface ActorActivityWithJson extends ActorActivityBase {
27
+ stateJson: string;
28
+ }
29
+ export interface NewActivitiesByCreatorBase {
30
+ count: number;
31
+ creator: ActorId;
32
+ }
33
+ export interface NewActivitiesByActor extends NewActivitiesByCreatorBase {
34
+ actor: Actor;
35
+ channelId: ChannelId;
36
+ }
37
+ export interface ActivityCategoryCount {
38
+ category: ActorActivityCategory;
39
+ count: number;
40
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActorActivityCategory = exports.ActorActivityStatus = void 0;
4
+ var ActorActivityStatus;
5
+ (function (ActorActivityStatus) {
6
+ ActorActivityStatus[ActorActivityStatus["new"] = 0] = "new";
7
+ ActorActivityStatus[ActorActivityStatus["read"] = 1] = "read";
8
+ ActorActivityStatus[ActorActivityStatus["completed"] = 2] = "completed";
9
+ })(ActorActivityStatus || (exports.ActorActivityStatus = ActorActivityStatus = {}));
10
+ var ActorActivityCategory;
11
+ (function (ActorActivityCategory) {
12
+ ActorActivityCategory[ActorActivityCategory["none"] = 0] = "none";
13
+ ActorActivityCategory[ActorActivityCategory["important"] = 1] = "important";
14
+ ActorActivityCategory[ActorActivityCategory["todo"] = 2] = "todo";
15
+ ActorActivityCategory[ActorActivityCategory["snoozed"] = 3] = "snoozed";
16
+ ActorActivityCategory[ActorActivityCategory["bookmarked"] = 4] = "bookmarked";
17
+ })(ActorActivityCategory || (exports.ActorActivityCategory = ActorActivityCategory = {}));
@@ -1,7 +1,6 @@
1
1
  export * from "./Activity";
2
- export * from "./IdentityActivity";
2
+ export * from "./ActorActivity";
3
3
  export * from "./ActivityRenderer";
4
- export * from "./ActivitySender";
5
4
  export * from "./ActivityChannel";
6
5
  export * from "./ActivityFeed";
7
6
  export * from "./ActivityDefinition";
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./Activity"), exports);
5
- tslib_1.__exportStar(require("./IdentityActivity"), exports);
5
+ tslib_1.__exportStar(require("./ActorActivity"), exports);
6
6
  tslib_1.__exportStar(require("./ActivityRenderer"), exports);
7
- tslib_1.__exportStar(require("./ActivitySender"), exports);
8
7
  tslib_1.__exportStar(require("./ActivityChannel"), exports);
9
8
  tslib_1.__exportStar(require("./ActivityFeed"), exports);
10
9
  tslib_1.__exportStar(require("./ActivityDefinition"), exports);
@@ -0,0 +1,21 @@
1
+ import { StronglyTypedId } from "../../StronglyTypedId";
2
+ import { ExternalActorId } from "./ExternalActorId";
3
+ export type ActorId = StronglyTypedId<number, "ActorId">;
4
+ export declare function ActorId(id: number): ActorId;
5
+ export interface ActorWithBag<TBag> extends Actor {
6
+ bag: TBag;
7
+ }
8
+ export interface Actor extends ActorBase {
9
+ imageUrl: string;
10
+ name: Record<string, string>;
11
+ description: Record<string, string>;
12
+ type: ActorTypes;
13
+ }
14
+ export interface ActorBase {
15
+ id: ActorId;
16
+ externalId: ExternalActorId;
17
+ }
18
+ export declare enum ActorTypes {
19
+ user = 0,
20
+ app = 1
21
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActorTypes = exports.ActorId = void 0;
4
+ function ActorId(id) { return id; }
5
+ exports.ActorId = ActorId;
6
+ var ActorTypes;
7
+ (function (ActorTypes) {
8
+ ActorTypes[ActorTypes["user"] = 0] = "user";
9
+ ActorTypes[ActorTypes["app"] = 1] = "app";
10
+ })(ActorTypes || (exports.ActorTypes = ActorTypes = {}));
@@ -0,0 +1,2 @@
1
+ import { StronglyTypedId } from "../../StronglyTypedId";
2
+ export type ExternalActorId = StronglyTypedId<string, "ExternalActorId">;
@@ -0,0 +1,2 @@
1
+ export * from "./ExternalActorId";
2
+ export * from "./Actor";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./ExternalActorId"), exports);
5
+ tslib_1.__exportStar(require("./Actor"), exports);
@@ -1,6 +1,7 @@
1
1
  export * from "./activities";
2
2
  export * from "./social";
3
- export * from "./ExternalIdentityId";
3
+ export * from "./actors/ExternalActorId";
4
4
  export * from "./fileupload";
5
5
  export * from "./TempSocialReactions";
6
6
  export * from "./targeting";
7
+ export * from "./actors";
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./activities"), exports);
5
5
  tslib_1.__exportStar(require("./social"), exports);
6
- tslib_1.__exportStar(require("./ExternalIdentityId"), exports);
6
+ tslib_1.__exportStar(require("./actors/ExternalActorId"), exports);
7
7
  tslib_1.__exportStar(require("./fileupload"), exports);
8
8
  tslib_1.__exportStar(require("./TempSocialReactions"), exports);
9
9
  tslib_1.__exportStar(require("./targeting"), exports);
10
+ tslib_1.__exportStar(require("./actors"), exports);
@@ -1,10 +1,10 @@
1
- import { ExternalIdentityId } from "../ExternalIdentityId";
1
+ import { ExternalActorId } from "../actors/ExternalActorId";
2
2
  import { HubReaction } from "./HubReaction";
3
3
  export interface HubComment {
4
- createdBy: ExternalIdentityId;
4
+ createdBy: ExternalActorId;
5
5
  id: number;
6
6
  inReplyToId: number | null;
7
7
  rendererJson: string;
8
- mentions: ExternalIdentityId[];
8
+ mentions: ExternalActorId[];
9
9
  reactions: HubReaction[];
10
10
  }
@@ -1,5 +1,5 @@
1
- import { ExternalIdentityId } from "../ExternalIdentityId";
1
+ import { ExternalActorId } from "../actors/ExternalActorId";
2
2
  export interface HubReaction {
3
- createdBy: ExternalIdentityId;
3
+ createdBy: ExternalActorId;
4
4
  uniqueTypeName: string;
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { GuidValue } from "../../Guid";
2
- import { ExternalIdentityId } from "../ExternalIdentityId";
2
+ import { ExternalActorId } from "../actors/ExternalActorId";
3
3
  import { SourceRelatedHubProperty } from "../activities";
4
4
  export declare class HubExternalIdentityProperty implements SourceRelatedHubProperty {
5
5
  private externalIdentityId;
6
- constructor(externalIdentityId: ExternalIdentityId);
6
+ constructor(externalIdentityId: ExternalActorId);
7
7
  get propertySourceId(): GuidValue;
8
8
  get name(): string;
9
9
  get values(): string[];
@@ -5,61 +5,50 @@ 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
- default: ChromeBlueprint;
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
- default: TypographyBlueprint;
25
- variant1?: TypographyBlueprint;
20
+ primary: TypographyBlueprint;
26
21
  }
27
22
  export interface SpacingBlueprints extends Blueprints {
28
- type: "spacing";
29
- default: SpacingBlueprint;
23
+ primary: SpacingBlueprint;
30
24
  }
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;
36
- secondary?: ButtonBlueprint;
37
- variant1?: ButtonBlueprint;
38
- variant2?: ButtonBlueprint;
39
- variant3?: ButtonBlueprint;
30
+ basic?: ButtonBlueprint;
31
+ accent1?: ButtonBlueprint;
32
+ warn?: ButtonBlueprint;
33
+ disabled?: ButtonBlueprint;
34
+ link?: ButtonBlueprint;
40
35
  };
41
36
  icon?: {
42
37
  primary?: ButtonBlueprint;
43
- secondary?: ButtonBlueprint;
44
- variant1?: ButtonBlueprint;
45
- variant2?: ButtonBlueprint;
46
- variant3?: ButtonBlueprint;
38
+ basic?: ButtonBlueprint;
39
+ accent1?: ButtonBlueprint;
40
+ warn?: ButtonBlueprint;
41
+ disabled?: ButtonBlueprint;
42
+ link?: ButtonBlueprint;
47
43
  };
48
44
  };
49
45
  tabs?: {
50
46
  primary?: TabsBlueprint;
51
- secondary?: TabsBlueprint;
52
47
  variant1?: TabsBlueprint;
53
48
  variant2?: TabsBlueprint;
54
49
  variant3?: TabsBlueprint;
55
50
  };
56
51
  }
57
- export interface ChromeBluePrintDefinitions {
58
- default: ChromeBlueprint;
59
- variant1: ChromeBlueprint;
60
- variant2: ChromeBlueprint;
61
- variant3: ChromeBlueprint;
62
- }
63
52
  export interface SpacingBlueprint {
64
53
  layout: SpacingDefinition;
65
54
  inner: SpacingDefinition;
@@ -1,10 +1,10 @@
1
1
  import { GuidValue } from "../Guid";
2
2
  import { VelcronAppDefinition } from "../velcron";
3
3
  import { Spacing } from "./Spacing";
4
- import { BackgroundDefinition } from "./ThemeDefinitionV2";
4
+ import { BackgroundDefinition, ColorSchemaType } from "./ThemeDefinitionV2";
5
5
  export interface ChromeBlueprint {
6
- id: GuidValue;
7
- name: string;
6
+ name?: string;
7
+ colorSchemaType?: ColorSchemaType;
8
8
  header: {
9
9
  definitionId: GuidValue;
10
10
  definition?: VelcronAppDefinition;
@@ -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 {
@@ -56,7 +58,8 @@ export declare enum ColorSchemaTypes {
56
58
  neutral = "neutral",
57
59
  background = "background",
58
60
  error = "error",
59
- info = "info"
61
+ info = "info",
62
+ dynamic = "dynamic"
60
63
  }
61
64
  export type ColorType = keyof typeof ColorTypes;
62
65
  export declare enum ColorTypes {
@@ -12,6 +12,7 @@ var ColorSchemaTypes;
12
12
  ColorSchemaTypes["background"] = "background";
13
13
  ColorSchemaTypes["error"] = "error";
14
14
  ColorSchemaTypes["info"] = "info";
15
+ ColorSchemaTypes["dynamic"] = "dynamic";
15
16
  })(ColorSchemaTypes || (exports.ColorSchemaTypes = ColorSchemaTypes = {}));
16
17
  var ColorTypes;
17
18
  (function (ColorTypes) {
@@ -29,9 +29,9 @@ export interface TypographyBlueprint {
29
29
  }
30
30
  export interface TypographyDefinition {
31
31
  decoration?: string;
32
- large: TypographyTypeBreakPoint;
33
- medium?: TypographyTypeBreakPoint;
34
- small?: TypographyTypeBreakPoint;
32
+ lg: TypographyTypeBreakPoint;
33
+ md?: TypographyTypeBreakPoint;
34
+ sm?: TypographyTypeBreakPoint;
35
35
  }
36
36
  export interface TypographyTypeBreakPoint {
37
37
  weight: number;
@@ -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,
@@ -1,5 +1,5 @@
1
1
  import { DynamicState } from "../DynamicState";
2
- import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent } from "./VelcronEvents";
2
+ import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnSaveEvent } from "./VelcronEvents";
3
3
  /**
4
4
  * Velcron definition base
5
5
  */
@@ -73,7 +73,7 @@ export interface VelcronAppDefinition<TState extends DynamicState = DynamicState
73
73
  version?: string;
74
74
  name?: string;
75
75
  body?: Array<VelcronDefinition>;
76
- events?: VelcronOnLoadEvent & VelcronOnEditModeEvent;
76
+ events?: VelcronOnLoadEvent & VelcronOnEditModeEvent & VelcronOnSaveEvent;
77
77
  actions?: {
78
78
  [name: string]: Array<string>;
79
79
  };
@@ -4,6 +4,9 @@ export type VelcronOnPressEvent = {
4
4
  export type VelcronOnLoadEvent = {
5
5
  onLoaded?: Array<string>;
6
6
  };
7
+ export type VelcronOnSaveEvent = {
8
+ onSaved?: Array<string>;
9
+ };
7
10
  export type VelcronOnEditModeEvent = {
8
11
  onEditMode?: Array<string>;
9
12
  };
@@ -27,3 +27,4 @@ export interface MediaPickerFlipTransformation extends MediaPickerTransformation
27
27
  flipY: boolean;
28
28
  rotation: number;
29
29
  }
30
+ export type MediaPickerRotateTransformation = Pick<MediaPickerFlipTransformation, "rotation"> & MediaPickerTransformation;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.126-dev",
4
+ "version": "8.0.128-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 { 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);
@@ -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>;
@@ -1,2 +0,0 @@
1
- import { StronglyTypedId } from "../StronglyTypedId";
2
- export type ExternalIdentityId = StronglyTypedId<string, "ExternalIdentityId">;
@@ -1,16 +0,0 @@
1
- import { StronglyTypedId } from "../../StronglyTypedId";
2
- export type ActivitySenderId = StronglyTypedId<number, "ActivitySenderId">;
3
- export declare function ActivitySenderId(id: number): ActivitySenderId;
4
- export interface ActivitySenderWithBag<TBag> extends ActivitySender {
5
- bag: TBag;
6
- }
7
- export interface ActivitySender extends ActivitySenderBase {
8
- id: ActivitySenderId;
9
- imageUrl: string;
10
- identityId: number;
11
- }
12
- export interface ActivitySenderBase {
13
- name: Record<string, string>;
14
- description: Record<string, string>;
15
- externalId: string;
16
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivitySenderId = void 0;
4
- function ActivitySenderId(id) { return id; }
5
- exports.ActivitySenderId = ActivitySenderId;
@@ -1,40 +0,0 @@
1
- import { DynamicState } from "../../DynamicState";
2
- import { Activity, ActivityId } from "./Activity";
3
- import { ChannelId } from "./ActivityChannel";
4
- import { ActivitySender, ActivitySenderId } from "./ActivitySender";
5
- export declare enum IdentityActivityStatus {
6
- new = 0,
7
- read = 1,
8
- completed = 2
9
- }
10
- export declare enum IdentityActivityCategory {
11
- none = 0,
12
- important = 1,
13
- todo = 2,
14
- snoozed = 3,
15
- bookmarked = 4
16
- }
17
- export interface IdentityActivityBase {
18
- activityId: ActivityId;
19
- status: IdentityActivityStatus;
20
- category: IdentityActivityCategory;
21
- }
22
- export interface IdentityActivity<TRenderState extends DynamicState, TState extends DynamicState> extends IdentityActivityBase {
23
- activity: Activity<TRenderState>;
24
- state?: TState;
25
- }
26
- export interface IdentityActivityWithJson extends IdentityActivityBase {
27
- stateJson: string;
28
- }
29
- export interface NewActivitiesBySenderBase {
30
- count: number;
31
- senderId: ActivitySenderId;
32
- }
33
- export interface NewActivitiesBySender extends NewActivitiesBySenderBase {
34
- sender: ActivitySender;
35
- channelId: ChannelId;
36
- }
37
- export interface ActivityCategoryCount {
38
- category: IdentityActivityCategory;
39
- count: number;
40
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdentityActivityCategory = exports.IdentityActivityStatus = void 0;
4
- var IdentityActivityStatus;
5
- (function (IdentityActivityStatus) {
6
- IdentityActivityStatus[IdentityActivityStatus["new"] = 0] = "new";
7
- IdentityActivityStatus[IdentityActivityStatus["read"] = 1] = "read";
8
- IdentityActivityStatus[IdentityActivityStatus["completed"] = 2] = "completed";
9
- })(IdentityActivityStatus || (exports.IdentityActivityStatus = IdentityActivityStatus = {}));
10
- var IdentityActivityCategory;
11
- (function (IdentityActivityCategory) {
12
- IdentityActivityCategory[IdentityActivityCategory["none"] = 0] = "none";
13
- IdentityActivityCategory[IdentityActivityCategory["important"] = 1] = "important";
14
- IdentityActivityCategory[IdentityActivityCategory["todo"] = 2] = "todo";
15
- IdentityActivityCategory[IdentityActivityCategory["snoozed"] = 3] = "snoozed";
16
- IdentityActivityCategory[IdentityActivityCategory["bookmarked"] = 4] = "bookmarked";
17
- })(IdentityActivityCategory || (exports.IdentityActivityCategory = IdentityActivityCategory = {}));
18
- // Usage
19
- // const activity1: IdentityActivity<SomeRenderState> = {
20
- // activity: {
21
- // // Initialize your Activity here
22
- // },
23
- // state: {
24
- // // Initialize your State here
25
- // },
26
- // };
27
- // const activity2: IdentityActivity<SomeRenderState, SomeState> = {
28
- // activity: {
29
- // // Initialize your Activity here
30
- // },
31
- // state: {
32
- // // Initialize your State here
33
- // },
34
- // };
35
- // const activity3: IdentityActivityWithJson = {
36
- // activityId: 22,
37
- // status: IdentityActivityStatus.unRead,
38
- // stateJson: "someJson",
39
- // };