@omnia/fx-models 8.0.123-dev → 8.0.126-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 (67) hide show
  1. package/BlockTitleSettings.d.ts +2 -2
  2. package/Constants.d.ts +1 -0
  3. package/Constants.js +1 -0
  4. package/FilterEngineStyles.d.ts +2 -2
  5. package/Http.d.ts +1 -23
  6. package/Http.js +6 -7
  7. package/Layout.d.ts +13 -13
  8. package/ManifestIds.d.ts +1 -1
  9. package/ManifestIds.js +2 -2
  10. package/PropertiesBlockStyles.d.ts +2 -2
  11. package/ShapeDividerSettingsModel.d.ts +2 -2
  12. package/apps/AppInstanceRollup.d.ts +3 -3
  13. package/enterprise-properties/EnterprisePropertySettings.d.ts +3 -3
  14. package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +14 -0
  15. package/internal-do-not-import-from-here/shared/models/HttpCommon.js +7 -0
  16. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +8 -0
  17. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -1
  18. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +1 -0
  19. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +16 -0
  20. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +5 -0
  21. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +1 -0
  22. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +1 -0
  23. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +1 -0
  24. package/internal-do-not-import-from-here/shared/models/hub/index.js +1 -0
  25. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +10 -0
  26. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +19 -0
  27. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +3 -0
  28. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +7 -0
  29. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +1 -0
  30. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +4 -0
  31. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +127 -0
  32. package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts} +3 -3
  33. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +1 -1
  34. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +6 -6
  35. package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +22 -0
  36. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +2 -3
  37. package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.d.ts → Typography.d.ts} +16 -16
  38. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +2 -2
  39. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +4 -4
  40. package/internal-do-not-import-from-here/shared/models/theming/index.js +4 -4
  41. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +20 -0
  42. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +5 -0
  43. package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +1 -0
  44. package/internal-do-not-import-from-here/shared/models/velcron/index.js +1 -0
  45. package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +27 -7
  46. package/media-picker/index.d.ts +1 -0
  47. package/media-picker/index.js +1 -0
  48. package/media-picker/interfaces/IImageTransformHandler.d.ts +16 -0
  49. package/media-picker/interfaces/IImageTransformHandler.js +2 -0
  50. package/media-picker/interfaces/IMediaPickerGalleryHandler.d.ts +10 -0
  51. package/media-picker/interfaces/IMediaPickerGalleryHandler.js +2 -0
  52. package/media-picker/interfaces/IMediaPickerProviderMediaHandler.d.ts +58 -0
  53. package/media-picker/interfaces/IMediaPickerProviderMediaHandler.js +2 -0
  54. package/media-picker/interfaces/index.d.ts +4 -0
  55. package/media-picker/interfaces/index.js +7 -0
  56. package/media-picker/interfaces/types.d.ts +55 -0
  57. package/media-picker/interfaces/types.js +2 -0
  58. package/oxide/SharedSettings.d.ts +6 -0
  59. package/package.json +1 -1
  60. package/properties/definitions/IdentityPropertyDefinition.d.ts +3 -1
  61. package/properties/definitions/IdentityPropertyDefinition.js +2 -2
  62. package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +0 -93
  63. package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +0 -30
  64. /package/internal-do-not-import-from-here/shared/models/theming/{ComponentDefinitions.js → Blueprints.js} +0 -0
  65. /package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.js → Chrome.js} +0 -0
  66. /package/internal-do-not-import-from-here/shared/models/theming/{SpacingSetting.js → Spacing.js} +0 -0
  67. /package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.js → Typography.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { TextAlignment, BorderPositions, IconPositions, IconSizes } from "./Enums";
2
2
  import { IIcon } from "./Icon";
3
- import { SpacingSettings } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
+ import { Spacing } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
4
4
  import { BusinessProfileProperty } from "./BusinessProfile";
5
5
  import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
6
6
  export declare class BusinessProfileBlockTitleSettings extends BusinessProfileProperty implements BlockTitleSettings {
@@ -30,7 +30,7 @@ export interface BlockTitleIconSettings {
30
30
  borderWidth: string;
31
31
  borderColor: string;
32
32
  icon: IIcon;
33
- spacing: SpacingSettings;
33
+ spacing: Spacing;
34
34
  }
35
35
  export interface BlockTitleSettings {
36
36
  bgColor: string;
package/Constants.d.ts CHANGED
@@ -52,6 +52,7 @@ export declare const Constants: {
52
52
  mediaflow: Guid;
53
53
  unsplash: Guid;
54
54
  };
55
+ providerContextInject: Guid;
55
56
  };
56
57
  mediaGallery: {
57
58
  className: string;
package/Constants.js CHANGED
@@ -83,6 +83,7 @@ exports.Constants = {
83
83
  mediaflow: new models_1.Guid("F3078399-C3B6-457D-8C2F-A4C8C39B5F27"),
84
84
  unsplash: new models_1.Guid("db11bef7-768d-4281-ad13-c938a4cdb6de"),
85
85
  },
86
+ providerContextInject: new models_1.Guid("950198af-fc0e-4a2e-9f73-394edccf1d8e"),
86
87
  },
87
88
  mediaGallery: {
88
89
  className: "gallery-image-photothumb"
@@ -1,6 +1,6 @@
1
1
  import { types } from "typestyle";
2
2
  import { NestedCSSPropertiesExtends } from "./ux";
3
- import { SpacingSettings } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
+ import { Spacing } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
4
4
  export declare const FilterEngineStyles: {
5
5
  filterPropertyValueWrapper: types.NestedCSSProperties;
6
6
  filterPropertyActionWrapper: types.NestedCSSProperties;
@@ -43,7 +43,7 @@ export declare const FilterEngineStyles: {
43
43
  smallerExpansionPanelHeader: types.NestedCSSProperties;
44
44
  highlightedBorder: types.NestedCSSProperties;
45
45
  scrollableListContent: types.NestedCSSProperties;
46
- getPaddingStyle?: (spacing: SpacingSettings, skip?: {
46
+ getPaddingStyle?: (spacing: Spacing, skip?: {
47
47
  top?: boolean;
48
48
  right?: boolean;
49
49
  left?: boolean;
package/Http.d.ts CHANGED
@@ -1,23 +1 @@
1
- /**
2
- * @deprecated Use ApiResponse instead
3
- */
4
- export interface IHttpApiOperationResult<T> {
5
- data: T;
6
- errorMessage: string;
7
- success: boolean;
8
- responseCode: ApiResponseCodes | number;
9
- }
10
- export interface ApiResponse<T> {
11
- data: T;
12
- errorMessage: string;
13
- success: boolean;
14
- responseCode: ApiResponseCodes | number;
15
- }
16
- export interface HttpHeaders {
17
- [key: string]: string;
18
- }
19
- export declare enum ApiResponseCodes {
20
- Success = 0,
21
- UnAuthorized = 1,
22
- Exception = 2
23
- }
1
+ export {};
package/Http.js CHANGED
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
+ // export interface ApiResponse<T> {
3
+ // data: T;
4
+ // errorMessage: string;
5
+ // success: boolean;
6
+ // responseCode: ApiResponseCodes | number;
7
+ // }
2
8
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiResponseCodes = void 0;
4
- var ApiResponseCodes;
5
- (function (ApiResponseCodes) {
6
- ApiResponseCodes[ApiResponseCodes["Success"] = 0] = "Success";
7
- ApiResponseCodes[ApiResponseCodes["UnAuthorized"] = 1] = "UnAuthorized";
8
- ApiResponseCodes[ApiResponseCodes["Exception"] = 2] = "Exception";
9
- })(ApiResponseCodes || (exports.ApiResponseCodes = ApiResponseCodes = {}));
package/Layout.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { MultilingualString, ThemeDefinition, IIcon, SpacingSettings, IconPickerModel, WebComponentDefinition, OmniaBlock, GuidValue, RadialGradientShapes, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, ColorSchemaTypes, HorizontalAlignments, SpacingType, ChromeBlueprintVariants, ColorValue, VerticalAlignments } from ".";
1
+ import { MultilingualString, ThemeDefinition, IIcon, Spacing, IconPickerModel, WebComponentDefinition, OmniaBlock, GuidValue, RadialGradientShapes, BlockTitleSettings, LayoutItemActions, LayoutEditorModes, BlockRenderingModes, TabbedDisplayModes, TabbedIconPositions, LayoutDrawerTabs, ILayoutCanvasDefinitionBuilder, MediaPickerImage, IMessageBusTopicSubscription, MediaPickerStorageProviderContext, OmniaBackendRuntimes, OmniaClientRuntimes, LayoutCanvasModes, ColorSchemaTypes, HorizontalAlignments, SpacingValue, ColorValue, VerticalAlignments, BlueprintVariant } from ".";
2
2
  import { MessageBusTopicMediator } from "../";
3
3
  import { TargetingFilterProperty } from "../sp";
4
4
  import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
@@ -68,7 +68,7 @@ export interface LayoutItemSettings {
68
68
  css: string;
69
69
  customCssClasses: string;
70
70
  colorSchemaType?: ColorSchemaTypes;
71
- chromeType?: ChromeBlueprintVariants;
71
+ chromeType?: BlueprintVariant;
72
72
  }
73
73
  export interface LinearGradientBackground extends BackgroundSettings {
74
74
  degrees: number;
@@ -141,13 +141,13 @@ export interface SectionSettings extends LayoutItemSettings {
141
141
  alignmentY: VerticalAlignments;
142
142
  width: string;
143
143
  minHeight: string;
144
- spacingBlock: number | SpacingType;
145
- spacingColumn: number | SpacingType;
144
+ spacingBlock: SpacingValue;
145
+ spacingColumn: SpacingValue;
146
146
  minWidthBlock: string;
147
- marginSectionLeft: number | SpacingType;
148
- marginSectionRight: number | SpacingType;
149
- marginSectionTop: number | SpacingType;
150
- marginSectionBottom: number | SpacingType;
147
+ marginSectionLeft: SpacingValue;
148
+ marginSectionRight: SpacingValue;
149
+ marginSectionTop: SpacingValue;
150
+ marginSectionBottom: SpacingValue;
151
151
  targetingFilterProperties: TargetingFilterProperty;
152
152
  titleSettings: BlockTitleSettings;
153
153
  sectionTitle: string | MultilingualString;
@@ -186,7 +186,7 @@ export interface TabbedSectionSettings extends SectionSettings {
186
186
  }
187
187
  export interface AccordionedSectionSettings extends SectionSettings {
188
188
  type: SectionTypes.Accordion;
189
- labelPadding: SpacingSettings;
189
+ labelPadding: Spacing;
190
190
  tabColor: ColorValue;
191
191
  activeTabColor: ColorValue;
192
192
  labelColor: ColorValue;
@@ -273,10 +273,10 @@ export interface HeaderItemSettings {
273
273
  scrollIntoViewDisabled: boolean;
274
274
  }
275
275
  export interface SpacingItemSettings {
276
- paddingRight: number | SpacingType;
277
- paddingLeft: number | SpacingType;
278
- paddingTop: number | SpacingType;
279
- paddingBottom: number | SpacingType;
276
+ paddingRight: number | SpacingValue;
277
+ paddingLeft: number | SpacingValue;
278
+ paddingTop: number | SpacingValue;
279
+ paddingBottom: number | SpacingValue;
280
280
  minHeight: string;
281
281
  }
282
282
  export interface StyleItemSettings {
package/ManifestIds.d.ts CHANGED
@@ -157,7 +157,7 @@ export declare class OmniaWebComponentManifests {
157
157
  static get OAppBar(): Guid;
158
158
  static get OAlert(): Guid;
159
159
  static get OSwiper(): Guid;
160
- static get OSwiperSlide(): Guid;
160
+ static get OSlide(): Guid;
161
161
  static get OInfiniteScroll(): Guid;
162
162
  static get OAvatar(): Guid;
163
163
  static get OLazy(): Guid;
package/ManifestIds.js CHANGED
@@ -484,8 +484,8 @@ class OmniaWebComponentManifests {
484
484
  static get OSwiper() {
485
485
  return new models_1.Guid("8b0bddec-d5d7-4fcb-a7aa-c87913137ca3");
486
486
  }
487
- static get OSwiperSlide() {
488
- return new models_1.Guid("3fa83450-9fe3-419f-b005-e2dd17325449");
487
+ static get OSlide() {
488
+ return new models_1.Guid("d5ff3101-8df4-4196-a5c6-ab219bab4c25");
489
489
  }
490
490
  static get OInfiniteScroll() {
491
491
  return new models_1.Guid("fb478d20-1092-422a-a210-6afa9758300f");
@@ -1,4 +1,4 @@
1
- import { PropertiesBlockSettings, SpacingSettings } from "@omnia/fx-models";
1
+ import { PropertiesBlockSettings, Spacing } from "@omnia/fx-models";
2
2
  import { types } from "typestyle";
3
3
  import { ITheming } from "../ux/theming";
4
4
  export declare const PropertiesBlockAdvancedStyles: {
@@ -12,7 +12,7 @@ export declare const PropertiesBlockAdvancedStyles: {
12
12
  separator: (theming: ITheming) => types.NestedCSSProperties;
13
13
  };
14
14
  export declare const PropertiesBlockStyles: {
15
- padding?: (spacing: SpacingSettings) => types.NestedCSSProperties;
15
+ padding?: (spacing: Spacing) => types.NestedCSSProperties;
16
16
  layout?: types.NestedCSSProperties;
17
17
  wrapper?: types.NestedCSSProperties;
18
18
  contentHidden?: types.NestedCSSProperties;
@@ -1,4 +1,4 @@
1
- import { SpacingSettings } from ".";
1
+ import { Spacing } from ".";
2
2
  export declare enum ShapeDividerPositions {
3
3
  top = 0,
4
4
  bottom = 1
@@ -23,6 +23,6 @@ export interface ShapeDividerSettings {
23
23
  color: string;
24
24
  width?: number;
25
25
  height?: number;
26
- spacing?: SpacingSettings;
26
+ spacing?: Spacing;
27
27
  borderradius?: number;
28
28
  }
@@ -3,7 +3,7 @@ import { EnterprisePropertyDefinition } from "../enterprise-properties/Enterpris
3
3
  import { AppInstanceScopedQueryTypes, PropertyIndexedType } from "../Enums";
4
4
  import { MultilingualString } from "../MultilingualString";
5
5
  import { OrderBy, RollupEnums, RollupFilter } from "../RollupQuery";
6
- import { SpacingSettings } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
6
+ import { Spacing } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
7
7
  import { AppInstance, AppInstanceInfo, AppInstanceInfoUser, AppInstanceTemplateFilter } from "./App";
8
8
  export declare class AppInstanceRollupConstants {
9
9
  static AppInstanceProperties: {
@@ -34,7 +34,7 @@ export interface AppInstanceRollupBlockDisplaySettings {
34
34
  showFollowStatus: boolean;
35
35
  openInNewTab: boolean;
36
36
  orderBy: OrderBy;
37
- spacing?: SpacingSettings;
37
+ spacing?: Spacing;
38
38
  noResultText?: MultilingualString;
39
39
  fixedHeader: boolean;
40
40
  }
@@ -86,7 +86,7 @@ export interface AppInstanceRollupCardViewSettings extends AppInstanceRollupView
86
86
  personProperty: string;
87
87
  termProperties: Array<AppInstanceRollupCardViewTermProperty>;
88
88
  cardsPerRow: number;
89
- cardSpacing?: SpacingSettings;
89
+ cardSpacing?: Spacing;
90
90
  elevation: number;
91
91
  borderSettings?: AppInstanceRollupCardViewBorderSettings;
92
92
  staticTitleSize: boolean;
@@ -1,4 +1,4 @@
1
- import { ColorValue, IIcon, MultilingualString, SpacingSettings } from "../";
1
+ import { ColorValue, IIcon, MultilingualString, Spacing } from "../";
2
2
  export interface EnterprisePropertySettings {
3
3
  }
4
4
  export interface TaxonomyPropertySettings extends EnterprisePropertySettings {
@@ -42,11 +42,11 @@ export declare enum LabelPositions {
42
42
  }
43
43
  export interface PropertiesBlockSettings {
44
44
  properties: Array<EnterprisePropertiesDisplaySettings>;
45
- spacing?: SpacingSettings;
45
+ spacing?: Spacing;
46
46
  blockTitle: MultilingualString;
47
47
  labelPosition: LabelPositions;
48
48
  horizontal: boolean;
49
- rowspacing: SpacingSettings;
49
+ rowspacing: Spacing;
50
50
  hideSeparator: boolean;
51
51
  dataSource: {
52
52
  [propertiesInternalName: string]: string;
@@ -25,3 +25,17 @@ export interface HttpResponse<TData> {
25
25
  statusText: String;
26
26
  ok: Boolean;
27
27
  }
28
+ export interface ApiResponse<T> {
29
+ data: T;
30
+ errorMessage: string;
31
+ success: boolean;
32
+ responseCode: ApiResponseCodes | number;
33
+ }
34
+ export interface HttpHeaders {
35
+ [key: string]: string;
36
+ }
37
+ export declare enum ApiResponseCodes {
38
+ Success = 0,
39
+ UnAuthorized = 1,
40
+ Exception = 2
41
+ }
@@ -1,2 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiResponseCodes = void 0;
4
+ var ApiResponseCodes;
5
+ (function (ApiResponseCodes) {
6
+ ApiResponseCodes[ApiResponseCodes["Success"] = 0] = "Success";
7
+ ApiResponseCodes[ApiResponseCodes["UnAuthorized"] = 1] = "UnAuthorized";
8
+ ApiResponseCodes[ApiResponseCodes["Exception"] = 2] = "Exception";
9
+ })(ApiResponseCodes || (exports.ApiResponseCodes = ApiResponseCodes = {}));
@@ -48,6 +48,11 @@ export interface NotificationTeaser {
48
48
  description: string;
49
49
  url: string;
50
50
  }
51
+ export declare enum PrivacyLevel {
52
+ Private = 0,
53
+ Public = 1,
54
+ Followers = 2
55
+ }
51
56
  export interface CreateActivityRequest {
52
57
  channelId: ChannelId;
53
58
  activityTypeId: ActivityTypeId;
@@ -56,6 +61,9 @@ export interface CreateActivityRequest {
56
61
  rendererJson: string;
57
62
  notificationTeaser: NotificationTeaser;
58
63
  targeting: Array<Array<SourceRelatedHubProperty>>;
64
+ addToSenders?: {
65
+ [activitySenderId: string]: PrivacyLevel;
66
+ };
59
67
  category: IdentityActivityCategory;
60
68
  activityIdPlaceHolder?: TemporaryFileId;
61
69
  expires?: Date;
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActivityTypeId = exports.ActivityId = void 0;
3
+ exports.PrivacyLevel = exports.ActivityTypeId = exports.ActivityId = void 0;
4
4
  function ActivityId(id) { return id; }
5
5
  exports.ActivityId = ActivityId;
6
6
  function ActivityTypeId(id) { return id; }
7
7
  exports.ActivityTypeId = ActivityTypeId;
8
+ var PrivacyLevel;
9
+ (function (PrivacyLevel) {
10
+ PrivacyLevel[PrivacyLevel["Private"] = 0] = "Private";
11
+ PrivacyLevel[PrivacyLevel["Public"] = 1] = "Public";
12
+ PrivacyLevel[PrivacyLevel["Followers"] = 2] = "Followers";
13
+ })(PrivacyLevel || (exports.PrivacyLevel = PrivacyLevel = {}));
@@ -7,6 +7,7 @@ export interface ActivitySenderWithBag<TBag> extends ActivitySender {
7
7
  export interface ActivitySender extends ActivitySenderBase {
8
8
  id: ActivitySenderId;
9
9
  imageUrl: string;
10
+ identityId: number;
10
11
  }
11
12
  export interface ActivitySenderBase {
12
13
  name: Record<string, string>;
@@ -0,0 +1,16 @@
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 {
6
+ title: Record<string, string>;
7
+ description: Record<string, string>;
8
+ clientId: string;
9
+ }
10
+ export interface ActivitySenderSubscription {
11
+ id: ActivitySubscriptionId;
12
+ activitySenderId: ActivitySenderId;
13
+ }
14
+ export interface ActivityUserSubscription extends ActivitySenderSubscription {
15
+ hubUserId: number;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActivitySubscriptionId = void 0;
4
+ function ActivitySubscriptionId(id) { return id; }
5
+ exports.ActivitySubscriptionId = ActivitySubscriptionId;
@@ -6,3 +6,4 @@ export * from "./ActivityChannel";
6
6
  export * from "./ActivityFeed";
7
7
  export * from "./ActivityDefinition";
8
8
  export * from "./ActivityRendererLoadingReferences";
9
+ export * from "./ActivitySubscription";
@@ -9,3 +9,4 @@ tslib_1.__exportStar(require("./ActivityChannel"), exports);
9
9
  tslib_1.__exportStar(require("./ActivityFeed"), exports);
10
10
  tslib_1.__exportStar(require("./ActivityDefinition"), exports);
11
11
  tslib_1.__exportStar(require("./ActivityRendererLoadingReferences"), exports);
12
+ tslib_1.__exportStar(require("./ActivitySubscription"), exports);
@@ -3,3 +3,4 @@ export * from "./social";
3
3
  export * from "./ExternalIdentityId";
4
4
  export * from "./fileupload";
5
5
  export * from "./TempSocialReactions";
6
+ export * from "./targeting";
@@ -6,3 +6,4 @@ tslib_1.__exportStar(require("./social"), exports);
6
6
  tslib_1.__exportStar(require("./ExternalIdentityId"), exports);
7
7
  tslib_1.__exportStar(require("./fileupload"), exports);
8
8
  tslib_1.__exportStar(require("./TempSocialReactions"), exports);
9
+ tslib_1.__exportStar(require("./targeting"), exports);
@@ -0,0 +1,10 @@
1
+ import { GuidValue } from "../../Guid";
2
+ import { ExternalIdentityId } from "../ExternalIdentityId";
3
+ import { SourceRelatedHubProperty } from "../activities";
4
+ export declare class HubExternalIdentityProperty implements SourceRelatedHubProperty {
5
+ private externalIdentityId;
6
+ constructor(externalIdentityId: ExternalIdentityId);
7
+ get propertySourceId(): GuidValue;
8
+ get name(): string;
9
+ get values(): string[];
10
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HubExternalIdentityProperty = void 0;
4
+ const HubSource_1 = require("./HubSource");
5
+ class HubExternalIdentityProperty {
6
+ constructor(externalIdentityId) {
7
+ this.externalIdentityId = externalIdentityId;
8
+ }
9
+ get propertySourceId() {
10
+ return HubSource_1.HubSource.Id;
11
+ }
12
+ get name() {
13
+ return "identity";
14
+ }
15
+ get values() {
16
+ return [this.externalIdentityId.toString()];
17
+ }
18
+ }
19
+ exports.HubExternalIdentityProperty = HubExternalIdentityProperty;
@@ -0,0 +1,3 @@
1
+ export declare class HubSource {
2
+ static Id: string;
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HubSource = void 0;
4
+ class HubSource {
5
+ }
6
+ exports.HubSource = HubSource;
7
+ HubSource.Id = "eb4fde5f-4f3e-4c70-9893-3d9e048fda0c";
@@ -0,0 +1 @@
1
+ export * from "./ExternalIdentityProperty";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./ExternalIdentityProperty"), exports);
@@ -0,0 +1,127 @@
1
+ import { BackgroundDefinition, ColorValue, FillDefinition } from "./ThemeDefinitionV2";
2
+ import { ChromeBlueprint } from "./Chrome";
3
+ import { SpacingDefinition, Spacing } from "./Spacing";
4
+ import { TypographyValue } from "./Typography";
5
+ export interface BoxDimensions extends Spacing {
6
+ }
7
+ import { TypographyBlueprint } from "./Typography";
8
+ export type BlueprintType = "chrome" | "typography" | "spacing" | "component";
9
+ export interface Blueprints {
10
+ type: BlueprintType;
11
+ name?: string;
12
+ }
13
+ export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3";
14
+ export type ButtonBlueprintType = "text" | "icon";
15
+ export interface ChromeBlueprints extends Blueprints {
16
+ type: "chrome";
17
+ default: ChromeBlueprint;
18
+ variant1?: ChromeBlueprint;
19
+ variant2?: ChromeBlueprint;
20
+ variant3?: ChromeBlueprint;
21
+ }
22
+ export interface TypographyBlueprints extends Blueprints {
23
+ type: "typography";
24
+ default: TypographyBlueprint;
25
+ variant1?: TypographyBlueprint;
26
+ }
27
+ export interface SpacingBlueprints extends Blueprints {
28
+ type: "spacing";
29
+ default: SpacingBlueprint;
30
+ }
31
+ export interface ComponentBlueprints extends Blueprints {
32
+ type: "component";
33
+ buttons?: {
34
+ text?: {
35
+ primary?: ButtonBlueprint;
36
+ secondary?: ButtonBlueprint;
37
+ variant1?: ButtonBlueprint;
38
+ variant2?: ButtonBlueprint;
39
+ variant3?: ButtonBlueprint;
40
+ };
41
+ icon?: {
42
+ primary?: ButtonBlueprint;
43
+ secondary?: ButtonBlueprint;
44
+ variant1?: ButtonBlueprint;
45
+ variant2?: ButtonBlueprint;
46
+ variant3?: ButtonBlueprint;
47
+ };
48
+ };
49
+ tabs?: {
50
+ primary?: TabsBlueprint;
51
+ secondary?: TabsBlueprint;
52
+ variant1?: TabsBlueprint;
53
+ variant2?: TabsBlueprint;
54
+ variant3?: TabsBlueprint;
55
+ };
56
+ }
57
+ export interface ChromeBluePrintDefinitions {
58
+ default: ChromeBlueprint;
59
+ variant1: ChromeBlueprint;
60
+ variant2: ChromeBlueprint;
61
+ variant3: ChromeBlueprint;
62
+ }
63
+ export interface SpacingBlueprint {
64
+ layout: SpacingDefinition;
65
+ inner: SpacingDefinition;
66
+ }
67
+ export type SpacingBlueprintTypes = "inner" | "layout";
68
+ export type WebBlueprintItemDefintionType = "button" | "searchbox" | "text" | "icon" | "tab";
69
+ export declare enum WebBlueprintItemDefintionTypes {
70
+ button = "button",
71
+ searchbox = "searchbox"
72
+ }
73
+ export type VelcronBlueprintDefintionType = "button";
74
+ export declare enum VelcronBlueprintDefintionTypes {
75
+ button = "button"
76
+ }
77
+ export interface Blueprint {
78
+ type: VelcronBlueprintDefintionType | WebBlueprintItemDefintionType;
79
+ }
80
+ export interface SearchBoxBlueprint extends Blueprint {
81
+ type: "searchbox";
82
+ borderRadius?: BoxDimensions;
83
+ variant?: "outlined" | "solo" | "regular" | "plain" | "underlined";
84
+ }
85
+ export interface ButtonBlueprint extends Blueprint {
86
+ type: "button";
87
+ padding?: Spacing;
88
+ background?: BackgroundDefinition;
89
+ alterCase?: boolean;
90
+ text?: TextBlueprint;
91
+ icon?: IconBlueprint;
92
+ }
93
+ export interface TabsBlueprint extends Blueprint {
94
+ type: "tab";
95
+ background?: BackgroundDefinition;
96
+ padding?: Spacing;
97
+ margin?: Spacing;
98
+ vertical?: boolean;
99
+ hideSlider?: boolean;
100
+ iconPosition?: "left" | "right" | "top";
101
+ grow?: boolean;
102
+ minHeight?: number;
103
+ minWidth?: number;
104
+ alignment?: "start" | "center" | "end";
105
+ sliderColor?: ColorValue;
106
+ text?: TextBlueprint;
107
+ icon?: IconBlueprint;
108
+ active?: {
109
+ padding?: Spacing;
110
+ background?: BackgroundDefinition;
111
+ text?: TextBlueprint;
112
+ icon?: IconBlueprint;
113
+ };
114
+ inactive?: {
115
+ background?: BackgroundDefinition;
116
+ };
117
+ }
118
+ export interface TextBlueprint extends Blueprint {
119
+ type: "text";
120
+ color?: FillDefinition;
121
+ typography?: TypographyValue;
122
+ }
123
+ export interface IconBlueprint extends Blueprint {
124
+ type: "icon";
125
+ color?: FillDefinition;
126
+ size?: number;
127
+ }
@@ -1,8 +1,8 @@
1
1
  import { GuidValue } from "../Guid";
2
2
  import { VelcronAppDefinition } from "../velcron";
3
- import { SpacingSettings } from "./SpacingSetting";
3
+ import { Spacing } from "./Spacing";
4
4
  import { BackgroundDefinition } from "./ThemeDefinitionV2";
5
- export interface ChromeDefinition {
5
+ export interface ChromeBlueprint {
6
6
  id: GuidValue;
7
7
  name: string;
8
8
  header: {
@@ -11,6 +11,6 @@ export interface ChromeDefinition {
11
11
  };
12
12
  styles: {
13
13
  background?: BackgroundDefinition;
14
- spacing?: SpacingSettings;
14
+ spacing?: Spacing;
15
15
  };
16
16
  }
@@ -1,2 +1,2 @@
1
- import { SpacingDefinition } from "./SpacingSetting";
1
+ import { SpacingDefinition } from "./Spacing";
2
2
  export declare function getSpacingValueFromBlueprint(spacingValue: any, definition: SpacingDefinition): number;
@@ -2,7 +2,7 @@
2
2
  // import { SpacingDefinition, SpacingTypes } from "@omnia/fx-models";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.getSpacingValueFromBlueprint = void 0;
5
- const SpacingSetting_1 = require("./SpacingSetting");
5
+ const Spacing_1 = require("./Spacing");
6
6
  function getSpacingValueFromBlueprint(spacingValue, definition) {
7
7
  if (!spacingValue) {
8
8
  return 0;
@@ -14,19 +14,19 @@ function getSpacingValueFromBlueprint(spacingValue, definition) {
14
14
  negative = true;
15
15
  }
16
16
  spacingValue = spacingValue.replace("-", "");
17
- if (spacingValue === SpacingSetting_1.SpacingTypes.xs) {
17
+ if (spacingValue === Spacing_1.SpacingTypes.xs) {
18
18
  result = definition.xs;
19
19
  }
20
- else if (spacingValue === SpacingSetting_1.SpacingTypes.s) {
20
+ else if (spacingValue === Spacing_1.SpacingTypes.s) {
21
21
  result = definition.s;
22
22
  }
23
- else if (spacingValue === SpacingSetting_1.SpacingTypes.m) {
23
+ else if (spacingValue === Spacing_1.SpacingTypes.m) {
24
24
  result = definition.m;
25
25
  }
26
- else if (spacingValue === SpacingSetting_1.SpacingTypes.l) {
26
+ else if (spacingValue === Spacing_1.SpacingTypes.l) {
27
27
  result = definition.l;
28
28
  }
29
- else if (spacingValue === SpacingSetting_1.SpacingTypes.xl) {
29
+ else if (spacingValue === Spacing_1.SpacingTypes.xl) {
30
30
  result = definition.xl;
31
31
  }
32
32
  else {
@@ -0,0 +1,22 @@
1
+ export interface Spacing {
2
+ top?: SpacingValue;
3
+ right?: SpacingValue;
4
+ bottom?: SpacingValue;
5
+ left?: SpacingValue;
6
+ }
7
+ export interface SpacingDefinition {
8
+ name: string;
9
+ xs: number;
10
+ s: number;
11
+ m: number;
12
+ l: number;
13
+ xl: number;
14
+ }
15
+ export type SpacingValue = "xs" | "s" | "m" | "l" | "xl" | number;
16
+ export declare enum SpacingTypes {
17
+ xs = "xs",
18
+ s = "s",
19
+ m = "m",
20
+ l = "l",
21
+ xl = "xl"
22
+ }