@omnia/fx-models 8.0.124-dev → 8.0.127-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 (87) 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 +2 -1
  9. package/ManifestIds.js +5 -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/OmniaSharedBootstrapData.d.ts +2 -1
  17. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +14 -6
  18. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -1
  19. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +10 -9
  20. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +16 -0
  21. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +5 -0
  22. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +40 -0
  23. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +17 -0
  24. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +2 -2
  25. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +2 -2
  26. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +21 -0
  27. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +10 -0
  28. package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +2 -0
  29. package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +2 -0
  30. package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +5 -0
  31. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +3 -1
  32. package/internal-do-not-import-from-here/shared/models/hub/index.js +3 -1
  33. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +3 -3
  34. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +2 -2
  35. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +10 -0
  36. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +19 -0
  37. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +3 -0
  38. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +7 -0
  39. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +1 -0
  40. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +4 -0
  41. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +122 -0
  42. package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts} +6 -6
  43. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +1 -1
  44. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +6 -6
  45. package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +22 -0
  46. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -4
  47. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +1 -0
  48. package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.d.ts → Typography.d.ts} +19 -19
  49. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +2 -2
  50. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +4 -4
  51. package/internal-do-not-import-from-here/shared/models/theming/index.js +4 -4
  52. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +2 -2
  53. package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +3 -0
  54. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +20 -0
  55. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +5 -0
  56. package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +1 -0
  57. package/internal-do-not-import-from-here/shared/models/velcron/index.js +1 -0
  58. package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +27 -7
  59. package/media-picker/MediaPickerTransformations.d.ts +1 -0
  60. package/media-picker/index.d.ts +1 -0
  61. package/media-picker/index.js +1 -0
  62. package/media-picker/interfaces/IImageTransformHandler.d.ts +16 -0
  63. package/media-picker/interfaces/IImageTransformHandler.js +2 -0
  64. package/media-picker/interfaces/IMediaPickerGalleryHandler.d.ts +10 -0
  65. package/media-picker/interfaces/IMediaPickerGalleryHandler.js +2 -0
  66. package/media-picker/interfaces/IMediaPickerProviderMediaHandler.d.ts +58 -0
  67. package/media-picker/interfaces/IMediaPickerProviderMediaHandler.js +2 -0
  68. package/media-picker/interfaces/index.d.ts +4 -0
  69. package/media-picker/interfaces/index.js +7 -0
  70. package/media-picker/interfaces/types.d.ts +55 -0
  71. package/media-picker/interfaces/types.js +2 -0
  72. package/oxide/SharedSettings.d.ts +6 -0
  73. package/package.json +1 -1
  74. package/properties/definitions/IdentityPropertyDefinition.d.ts +3 -1
  75. package/properties/definitions/IdentityPropertyDefinition.js +2 -2
  76. package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +0 -2
  77. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +0 -15
  78. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +0 -5
  79. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +0 -40
  80. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +0 -39
  81. package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +0 -93
  82. package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +0 -30
  83. /package/internal-do-not-import-from-here/shared/models/hub/{ExternalIdentityId.js → actors/ExternalActorId.js} +0 -0
  84. /package/internal-do-not-import-from-here/shared/models/theming/{ComponentDefinitions.js → Blueprints.js} +0 -0
  85. /package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.js → Chrome.js} +0 -0
  86. /package/internal-do-not-import-from-here/shared/models/theming/{SpacingSetting.js → Spacing.js} +0 -0
  87. /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
@@ -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;
@@ -157,7 +158,7 @@ export declare class OmniaWebComponentManifests {
157
158
  static get OAppBar(): Guid;
158
159
  static get OAlert(): Guid;
159
160
  static get OSwiper(): Guid;
160
- static get OSwiperSlide(): Guid;
161
+ static get OSlide(): Guid;
161
162
  static get OInfiniteScroll(): Guid;
162
163
  static get OAvatar(): Guid;
163
164
  static get OLazy(): 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
  }
@@ -484,8 +487,8 @@ class OmniaWebComponentManifests {
484
487
  static get OSwiper() {
485
488
  return new models_1.Guid("8b0bddec-d5d7-4fcb-a7aa-c87913137ca3");
486
489
  }
487
- static get OSwiperSlide() {
488
- return new models_1.Guid("3fa83450-9fe3-419f-b005-e2dd17325449");
490
+ static get OSlide() {
491
+ return new models_1.Guid("d5ff3101-8df4-4196-a5c6-ab219bab4c25");
489
492
  }
490
493
  static get OInfiniteScroll() {
491
494
  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 = {}));
@@ -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
  }
@@ -48,15 +48,23 @@ 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;
54
- senderId: ActivitySenderId;
59
+ createdBy: ActorId;
55
60
  stateJson: string;
56
61
  rendererJson: string;
57
62
  notificationTeaser: NotificationTeaser;
58
63
  targeting: Array<Array<SourceRelatedHubProperty>>;
59
- category: IdentityActivityCategory;
64
+ addToActors?: {
65
+ [actorId: ActorId]: PrivacyLevel;
66
+ };
67
+ category: ActorActivityCategory;
60
68
  activityIdPlaceHolder?: TemporaryFileId;
61
69
  expires?: Date;
62
70
  createdAt?: 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 = {}));
@@ -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
  }
@@ -0,0 +1,16 @@
1
+ import { StronglyTypedId } from "../../StronglyTypedId";
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
+ title: Record<string, string>;
7
+ description: Record<string, string>;
8
+ clientId: string;
9
+ }
10
+ export interface ActorSubscription {
11
+ id: SubscriptionId;
12
+ subscriptionOwner: ActorId;
13
+ }
14
+ export interface Subscription extends ActorSubscription {
15
+ subscriber: ActorId;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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,8 +1,8 @@
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";
8
7
  export * from "./ActivityRendererLoadingReferences";
8
+ export * from "./ActivitySubscription";
@@ -2,10 +2,10 @@
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);
11
10
  tslib_1.__exportStar(require("./ActivityRendererLoadingReferences"), exports);
11
+ tslib_1.__exportStar(require("./ActivitySubscription"), 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,5 +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
+ export * from "./targeting";
7
+ export * from "./actors";
@@ -3,6 +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
+ 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
  }