@omnia/fx-models 8.0.128-dev → 8.0.130-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 (65) hide show
  1. package/AiSettings.d.ts +1 -1
  2. package/Exposes.d.ts +0 -1
  3. package/Exposes.js +0 -1
  4. package/LayoutDefinition.d.ts +1 -2
  5. package/LinkHandler/linktype/DefaultLinkType.js +1 -1
  6. package/LinkHandler/linktype/DocumentLinkType.js +1 -1
  7. package/Messaging.d.ts +0 -23
  8. package/NamedProperty.d.ts +1 -2
  9. package/TargetingProperty.js +8 -8
  10. package/TokenDefinition.d.ts +1 -1
  11. package/apps/AppInstanceRollup.js +7 -7
  12. package/azure-openai/dalle/ErrorResponse.js +2 -2
  13. package/azure-openai/dalle/StatusRequest.js +3 -3
  14. package/identities/IdentityCreationRequest.js +1 -1
  15. package/internal-do-not-import-from-here/shared/broadcasting/Broadcast.d.ts +37 -0
  16. package/internal-do-not-import-from-here/shared/broadcasting/InternalTopics.d.ts +23 -0
  17. package/internal-do-not-import-from-here/shared/broadcasting/index.d.ts +1 -0
  18. package/internal-do-not-import-from-here/shared/factory/DefineFactory.d.ts +12 -0
  19. package/internal-do-not-import-from-here/shared/factory/Inject.d.ts +30 -0
  20. package/internal-do-not-import-from-here/shared/factory/Injectable.d.ts +4 -0
  21. package/internal-do-not-import-from-here/shared/factory/ServiceContainer.d.ts +45 -0
  22. package/internal-do-not-import-from-here/shared/factory/index.d.ts +4 -0
  23. package/internal-do-not-import-from-here/shared/http/Http.d.ts +141 -0
  24. package/internal-do-not-import-from-here/shared/http/index.d.ts +1 -0
  25. package/internal-do-not-import-from-here/shared/index.d.ts +12 -0
  26. package/internal-do-not-import-from-here/shared/messaging/MessageBus.d.ts +48 -0
  27. package/internal-do-not-import-from-here/shared/messaging/MessageBusMediator.d.ts +30 -0
  28. package/internal-do-not-import-from-here/shared/messaging/index.d.ts +2 -0
  29. package/internal-do-not-import-from-here/shared/models/Guid.js +1 -1
  30. package/internal-do-not-import-from-here/shared/models/Messaging.d.ts +23 -0
  31. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +1 -1
  32. package/internal-do-not-import-from-here/shared/models/index.d.ts +2 -0
  33. package/internal-do-not-import-from-here/shared/models/index.js +2 -0
  34. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +15 -2
  35. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +2 -2
  36. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +0 -1
  37. package/internal-do-not-import-from-here/shared/models/theming/index.js +0 -1
  38. package/internal-do-not-import-from-here/shared/services/ActivityService.d.ts +27 -0
  39. package/internal-do-not-import-from-here/shared/services/ActivitySubscriptionService.d.ts +15 -0
  40. package/internal-do-not-import-from-here/shared/services/DefineService.d.ts +6 -0
  41. package/internal-do-not-import-from-here/shared/services/RealtimeService.d.ts +8 -0
  42. package/internal-do-not-import-from-here/shared/services/index.d.ts +4 -0
  43. package/internal-do-not-import-from-here/shared/shared.manifest.d.ts +1 -0
  44. package/internal-do-not-import-from-here/shared/utils/index.d.ts +4 -0
  45. package/internal-do-not-import-from-here/shared/workers/Leader.d.ts +6 -0
  46. package/internal-do-not-import-from-here/shared/workers/WorkerProxy.d.ts +11 -0
  47. package/internal-do-not-import-from-here/shared/workers/index.d.ts +2 -0
  48. package/mediaflow/Constants.js +12 -12
  49. package/package.json +1 -1
  50. package/properties/datasource/AppDataSourceProperty.d.ts +1 -1
  51. package/properties/datasource/DataSourceId.d.ts +1 -1
  52. package/properties/datasource/DataSourcePropertyDisplayInformation.d.ts +1 -1
  53. package/properties/datasource/UserDataSourceProperty.d.ts +1 -1
  54. package/properties/definitions/DatePropertyDefinition.d.ts +0 -1
  55. package/properties/definitions/DateTimePropertyDefinition.d.ts +0 -1
  56. package/properties/definitions/EmailPropertyDefinition.d.ts +0 -1
  57. package/properties/definitions/ImagePropertyDefinition.d.ts +0 -1
  58. package/ux/AdminApi.d.ts +2 -2
  59. package/ux/EnterprisePropertyDataTypeProviderApi.d.ts +1 -2
  60. package/ux/InternalAdminApi.d.ts +2 -2
  61. package/ux/LayoutCanvasApi.d.ts +1 -1
  62. package/internal-do-not-import-from-here/shared/models/theming/Chrome.d.ts +0 -16
  63. /package/{DependencyInjection.d.ts → internal-do-not-import-from-here/shared/models/DependencyInjection.d.ts} +0 -0
  64. /package/{DependencyInjection.js → internal-do-not-import-from-here/shared/models/DependencyInjection.js} +0 -0
  65. /package/internal-do-not-import-from-here/shared/models/{theming/Chrome.js → Messaging.js} +0 -0
package/AiSettings.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { MultilingualString } from "./MultilingualString";
3
3
  export declare enum PassAnalysisCriteria {
4
4
  Yes = 0,
package/Exposes.d.ts CHANGED
@@ -31,7 +31,6 @@ export * from "./CommentLike";
31
31
  export * from "./SocialReaction";
32
32
  export * from "./Post";
33
33
  export type { WebComponentDefinition } from "./ComponentComposer";
34
- export * from "./DependencyInjection";
35
34
  export * from "./Store";
36
35
  export * from "./SiteLogo";
37
36
  export * from "./PermissionInputSettings";
package/Exposes.js CHANGED
@@ -37,7 +37,6 @@ tslib_1.__exportStar(require("./Language"), exports);
37
37
  tslib_1.__exportStar(require("./CommentLike"), exports);
38
38
  tslib_1.__exportStar(require("./SocialReaction"), exports);
39
39
  tslib_1.__exportStar(require("./Post"), exports);
40
- tslib_1.__exportStar(require("./DependencyInjection"), exports);
41
40
  tslib_1.__exportStar(require("./Store"), exports);
42
41
  tslib_1.__exportStar(require("./SiteLogo"), exports);
43
42
  tslib_1.__exportStar(require("./PermissionInputSettings"), exports);
@@ -1,5 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { IMessageBusTopicSubscription } from "./Messaging";
1
+ import { GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
2
  import { Block, LoadedLayout } from "./Layout";
4
3
  import { IIcon } from "./Icon";
5
4
  interface ILayoutCanvasItemDefinition<T> {
@@ -8,9 +8,9 @@ exports.DefaultLinkType = void 0;
8
8
  * @see {LinkHandlerRegistrationManager} class for handler implementation details
9
9
  */
10
10
  class DefaultLinkType {
11
+ static { this.id = "72da0174-ad58-47da-90e7-ca03e3ecb651"; }
11
12
  constructor() {
12
13
  this.id = DefaultLinkType.id;
13
14
  }
14
15
  }
15
16
  exports.DefaultLinkType = DefaultLinkType;
16
- DefaultLinkType.id = "72da0174-ad58-47da-90e7-ca03e3ecb651";
@@ -7,6 +7,7 @@ exports.DocumentLinkType = void 0;
7
7
  * @implements {LinkType}
8
8
  */
9
9
  class DocumentLinkType {
10
+ static { this.id = "0d8fceb2-fdc9-4133-88be-0868a1f89601"; }
10
11
  /**
11
12
  * Base constructor
12
13
  */
@@ -15,4 +16,3 @@ class DocumentLinkType {
15
16
  }
16
17
  }
17
18
  exports.DocumentLinkType = DocumentLinkType;
18
- DocumentLinkType.id = "0d8fceb2-fdc9-4133-88be-0868a1f89601";
package/Messaging.d.ts CHANGED
@@ -48,29 +48,6 @@ export interface AppProvisioningHandlerMessage {
48
48
  */
49
49
  weight: number;
50
50
  }
51
- export interface TopicCreatedFunc<T> {
52
- (created: IMessageBusTopicPublishSubscriber<T>): void;
53
- }
54
- export interface IMessageBusSubscriptionHandler {
55
- /**
56
- * Unsubscribe to the related subscription(s)
57
- * and/or any subscriptions added using add method)
58
- * */
59
- unsubscribe(): any;
60
- /**
61
- * Adds another unsubscribe handler, all will be unsubscribed to if calling unsubscribe
62
- * @param unSubscriptionHandler
63
- */
64
- add(unSubscriptionHandler: IMessageBusSubscriptionHandler): any;
65
- }
66
- export interface IMessageBusTopicSubscription<T> {
67
- subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
68
- }
69
- export interface IMessageBusTopicPublication<T> {
70
- publish: (msg: T) => void;
71
- }
72
- export interface IMessageBusTopicPublishSubscriber<T> extends IMessageBusTopicSubscription<T>, IMessageBusTopicPublication<T> {
73
- }
74
51
  export interface RichTextEditorExtensionMessage {
75
52
  id: GuidValue;
76
53
  title: string;
@@ -1,5 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { IMessageBusTopicSubscription } from "./Messaging";
1
+ import { GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
3
2
  export interface NamedPropertyIdentifier {
4
3
  serviceId: string;
5
4
  name: string;
@@ -5,13 +5,13 @@ exports.TargetingPropertyType = void 0;
5
5
  * Used for filtering etc
6
6
  * */
7
7
  class TargetingPropertyType {
8
+ /// <summary>
9
+ /// Use maskable values
10
+ /// </summary>
11
+ static { this.groupMembership = 1; }
12
+ static { this.userProfileProperty = 2; }
13
+ static { this.azureAdProperty = 3; }
14
+ static { this.groupIdentity = 4; }
15
+ static { this.userProperty = 5; }
8
16
  }
9
17
  exports.TargetingPropertyType = TargetingPropertyType;
10
- /// <summary>
11
- /// Use maskable values
12
- /// </summary>
13
- TargetingPropertyType.groupMembership = 1;
14
- TargetingPropertyType.userProfileProperty = 2;
15
- TargetingPropertyType.azureAdProperty = 3;
16
- TargetingPropertyType.groupIdentity = 4;
17
- TargetingPropertyType.userProperty = 5;
@@ -1,4 +1,4 @@
1
- import { IMessageBusTopicSubscription } from "./Messaging";
1
+ import { IMessageBusTopicSubscription } from "@omnia/fx/internal-do-not-import-from-here/shared";
2
2
  export declare abstract class ReplaceToken {
3
3
  abstract readonly prefixToken: string;
4
4
  }
@@ -2,15 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppInstanceRollupCardViewTypes = exports.AppInstanceRollupConstants = void 0;
4
4
  class AppInstanceRollupConstants {
5
+ static { this.AppInstanceProperties = {
6
+ Title: "title_df6808d8-7bda-4c53-8906-2d7dec058289",
7
+ TitleAndLink: "titleAndLink_93c3fdc6-1ca4-4242-b873-7de964aad588",
8
+ LastVisited: "lastVisited_572f0c7a-5b0a-4add-9269-ba05c54f9432",
9
+ Description: "description_d4d77ca6-1ca4-479e-94f0-532b9ca52ed4",
10
+ Image: "image_44a905b6-48e3-47e4-9690-376a4e855cf0"
11
+ }; }
5
12
  }
6
13
  exports.AppInstanceRollupConstants = AppInstanceRollupConstants;
7
- AppInstanceRollupConstants.AppInstanceProperties = {
8
- Title: "title_df6808d8-7bda-4c53-8906-2d7dec058289",
9
- TitleAndLink: "titleAndLink_93c3fdc6-1ca4-4242-b873-7de964aad588",
10
- LastVisited: "lastVisited_572f0c7a-5b0a-4add-9269-ba05c54f9432",
11
- Description: "description_d4d77ca6-1ca4-479e-94f0-532b9ca52ed4",
12
- Image: "image_44a905b6-48e3-47e4-9690-376a4e855cf0"
13
- };
14
14
  var AppInstanceRollupCardViewTypes;
15
15
  (function (AppInstanceRollupCardViewTypes) {
16
16
  AppInstanceRollupCardViewTypes[AppInstanceRollupCardViewTypes["BackgroundImage"] = 1] = "BackgroundImage";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorCode = void 0;
4
4
  class ErrorCode {
5
+ static { this.TooManyRequests = "tooManyRequests"; }
6
+ static { this.ContentFilter = "ContentFilter"; }
5
7
  }
6
8
  exports.ErrorCode = ErrorCode;
7
- ErrorCode.TooManyRequests = "tooManyRequests";
8
- ErrorCode.ContentFilter = "ContentFilter";
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Status = void 0;
4
4
  class Status {
5
+ static { this.Succeeded = "Succeeded"; }
6
+ static { this.Failed = "Failed"; }
7
+ static { this.NotStarted = "NotStarted"; }
5
8
  }
6
9
  exports.Status = Status;
7
- Status.Succeeded = "Succeeded";
8
- Status.Failed = "Failed";
9
- Status.NotStarted = "NotStarted";
@@ -54,6 +54,7 @@ class IdentityCreationRequestQuery {
54
54
  }
55
55
  exports.IdentityCreationRequestQuery = IdentityCreationRequestQuery;
56
56
  class BusinessProfileIdentityCreationRequestSettings extends BusinessProfile_1.BusinessProfileProperty {
57
+ static { this.UniqueName = "self-service"; }
57
58
  constructor() {
58
59
  super(ManifestIds_1.OmniaService.Id, BusinessProfileIdentityCreationRequestSettings.UniqueName);
59
60
  this.omniaServiceId = ManifestIds_1.OmniaService.Id;
@@ -62,4 +63,3 @@ class BusinessProfileIdentityCreationRequestSettings extends BusinessProfile_1.B
62
63
  }
63
64
  }
64
65
  exports.BusinessProfileIdentityCreationRequestSettings = BusinessProfileIdentityCreationRequestSettings;
65
- BusinessProfileIdentityCreationRequestSettings.UniqueName = "self-service";
@@ -0,0 +1,37 @@
1
+ import { BroadcastTopic, BroadcastInvokeTopic, Future } from "../models";
2
+ /**
3
+ *Broadcast between render, worker thread and windows, tabs
4
+ * @class MessageBus
5
+ */
6
+ export declare class Broadcast {
7
+ private static _subscribers;
8
+ private static _channel;
9
+ private static _initialized;
10
+ private static _disableSync;
11
+ private static _invokeRequests;
12
+ private static _invokeHandlers;
13
+ /**
14
+ * Broadcasts a message on the topic
15
+ */
16
+ static publish<TMessage>(topic: BroadcastTopic<TMessage>, message: TMessage): void;
17
+ static invoke<TMessage, TReturnValue>(topic: BroadcastInvokeTopic<TMessage, TReturnValue>, data: TMessage): Future<TReturnValue>;
18
+ static invokeHandler<TMessage, TReturnValue>(topic: BroadcastInvokeTopic<TMessage, TReturnValue>, fn: (message: TMessage, messageId?: string) => Future<TReturnValue>): void;
19
+ /**
20
+ * Subscribes to the specified Topic and triggers function when a message is published
21
+ */
22
+ static subscribe<TMessage>(topic: BroadcastTopic<TMessage>, fn: (message: TMessage) => void): void;
23
+ /**
24
+ * Unsubscribes from the specified Topic
25
+ */
26
+ static unsubscribe<TMessage>(topic: BroadcastTopic<TMessage>, fn: (message: TMessage) => void): void;
27
+ /**
28
+ * Creates a topic if it dosent exists
29
+ * @param topic
30
+ * @param settings
31
+ * @returns true/false created
32
+ */
33
+ private static ensureTopic;
34
+ private static ensureInitialized;
35
+ private static onMessage;
36
+ private static get channel();
37
+ }
@@ -0,0 +1,23 @@
1
+ import { BroadcastTopic, RealtimeChannelUpdateMessage, RealtimeSendMessage, RealtimChannelMessage, BroadcastInvokeTopic, GuidValue } from "../models";
2
+ export declare const realtimeTopics: {
3
+ getActiveChannels: BroadcastTopic<void>;
4
+ updateChannels: BroadcastTopic<RealtimeChannelUpdateMessage[]>;
5
+ sendMessage: BroadcastTopic<RealtimeSendMessage>;
6
+ getUsersInChannel: BroadcastInvokeTopic<RealtimChannelMessage, number[]>;
7
+ messageReceived: BroadcastTopic<RealtimeSendMessage>;
8
+ };
9
+ export declare const endpointTopics: {
10
+ getActivityHubUrl: BroadcastTopic<{
11
+ threadId: GuidValue;
12
+ }>;
13
+ activityHubUrlUpdated: BroadcastTopic<{
14
+ threadId: GuidValue;
15
+ activityHubUrl: string;
16
+ tokenRefBase64: string;
17
+ }>;
18
+ };
19
+ export declare const workerTopics: {
20
+ leaderElected: BroadcastTopic<{
21
+ workerThreadId: GuidValue;
22
+ }>;
23
+ };
@@ -0,0 +1 @@
1
+ export * from "./Broadcast";
@@ -0,0 +1,12 @@
1
+ import { GuidValue, InstanceLifetimes } from "@omnia/fx-models";
2
+ import { SubscriptionHandler } from "../messaging";
3
+ export interface SetupFactoryContext {
4
+ onDeactivated(fn: () => void): any;
5
+ subscriptions: SubscriptionHandler;
6
+ }
7
+ export declare function defineFactory<InferReturnSetup>(setup: (ctx: SetupFactoryContext, ...args: any) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: GuidValue): () => InferReturnSetup;
8
+ export declare function defineFactory<InferReturnSetup, T1>(setup: (ctx: SetupFactoryContext, param1: T1) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: GuidValue): (param1: T1) => InferReturnSetup;
9
+ export declare function defineFactory<InferReturnSetup, T1, T2>(setup: (ctx: SetupFactoryContext, param1: T1, param2: T2) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: string): (param1: T1, param2: T2) => InferReturnSetup;
10
+ export declare function defineFactory<InferReturnSetup, T1, T2, T3>(setup: (ctx: SetupFactoryContext, param1: T1, param2: T2, param3: T3) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: GuidValue): (param1: T1, param2: T2, param3: T3) => InferReturnSetup;
11
+ export declare function defineFactory<InferReturnSetup, T1, T2, T3, T4>(setup: (ctx: SetupFactoryContext, param1: T1, param2: T2, param3: T3, param4: T4) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: GuidValue): (param1: T1, param2: T2, param3: T3, param4: T4) => InferReturnSetup;
12
+ export declare function defineFactory<InferReturnSetup, T1, T2, T3, T4, T5>(setup: (ctx: SetupFactoryContext, param1: T1, param2: T2, param3: T3, param4: T4, param5: T5) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: GuidValue): (param1: T1, param2: T2, param3: T3, param4: T4, param5: T5) => InferReturnSetup;
@@ -0,0 +1,30 @@
1
+ type Resolver = <TClass, TConstructor>(type: Class<TClass> | (() => TClass), constructorArgs?: TConstructor) => TClass;
2
+ export declare function registerInjectResolver(resolver: Resolver): void;
3
+ /**
4
+ * Injects an instance of the specifed type. That instance maybe come from higer level relation provide it.
5
+ *
6
+ * @param classType - Type to inject
7
+ * @param constructorArgs - Optional arguments for the constructor, by naming convention an interface should be supplied specifying the expected parameters
8
+ * the name of the interface should follow <classType>Constructor i.e.
9
+ * Type: HttpClient, if supporting constructor arguments an interface named: "HttpClientConstructor" should be supplied.
10
+ *
11
+ * E.g.:
12
+ * Inject<HttpClientConstructor>(HttpClient,{someConstructorArg1:"",someConstructorArg2})
13
+ */
14
+ export declare function Inject<T>(classType: any, constructorArgs?: T): any;
15
+ type Class<T> = {
16
+ new (...args: any[]): T;
17
+ };
18
+ /**
19
+ * Injects an instance of the specifed type. That instance maybe come from higer level relation provide it.
20
+ *
21
+ * @param type - Type to inject
22
+ * @param constructorArgs - Optional arguments for the constructor, by naming convention an interface should be supplied specifying the expected parameters
23
+ * the name of the interface should follow <classType>Constructor i.e.
24
+ * Type: HttpClient, if supporting constructor arguments an interface named: "HttpClientConstructor" should be supplied.
25
+ *
26
+ * E.g.:
27
+ * useInject<HttpClientConstructor>(HttpClient,{someConstructorArg1:"",someConstructorArg2})
28
+ */
29
+ export declare function useInject<TClass, TConstructor>(type: Class<TClass> | (() => TClass), constructorArgs?: TConstructor): TClass;
30
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ActivationOptions } from "../models";
2
+ export declare function isInjectable(type: any): boolean;
3
+ export declare function Injectable<T>(options: ActivationOptions): any;
4
+ export declare function defineInjectable<TFunc extends Function>(targetFunc: TFunc, options: ActivationOptions): TFunc;
@@ -0,0 +1,45 @@
1
+ import { GuidValue } from "../models";
2
+ type Class<T> = {
3
+ new (...args: any[]): T;
4
+ };
5
+ interface MockInstance {
6
+ type: any;
7
+ instance: any;
8
+ }
9
+ export declare function registerTypeResolver(resolver: (type: any) => any): void;
10
+ export declare class InternalServiceContainer {
11
+ private id;
12
+ private static creatingFromType;
13
+ private static singletonInstances;
14
+ private transientInstances;
15
+ private destroyedContainer;
16
+ private scopedInstances;
17
+ constructor(id: GuidValue);
18
+ createInstance<TConstructor, TClass>(type: Class<TClass> | (() => TClass), constructorArgs?: TConstructor, forceNewInstanceLifetimeScope?: boolean): TClass;
19
+ static isCreatingInstanceFromType(type: any): boolean;
20
+ private getActiveInstance;
21
+ /** Only used it for Scope lifetime - Use to create a proxy to monitor instance, will auto recreate a instance if disposed */
22
+ private createInstanceProxy;
23
+ dispose(destroyContainer?: boolean): void;
24
+ private disposeInstance;
25
+ }
26
+ export declare class ServiceContainer {
27
+ private static mockInstances;
28
+ private static registeredOnDisposing;
29
+ static addMock<T>(type: T, instance: any): void;
30
+ static getMock<TClass>(type: Class<TClass> | (() => TClass)): MockInstance;
31
+ /**
32
+ * @param forceNewInstanceLifetimeScope that used in Provide/Inject pattern in ui layer.
33
+ */
34
+ static createInstance<TConstructor, TClass = any>(type: Class<TClass> | (() => TClass), constructorArgs?: TConstructor, forceNewInstanceLifetimeScope?: boolean): TClass;
35
+ static disposeScopedAndTransient(): void;
36
+ static onDisposing(func: (instance: any) => void): void;
37
+ static getRegisteredOnDisposing(): ((activatedInstance: any) => void)[];
38
+ }
39
+ export declare class ServiceContainerContext {
40
+ private container;
41
+ constructor();
42
+ createInstance<TConstructor, TClass = any>(type: Class<TClass> | (() => TClass), constructorArgs?: TConstructor, forceNewInstanceLifetimeScope?: boolean): TClass;
43
+ dispose(): void;
44
+ }
45
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from "./ServiceContainer";
2
+ export * from "./Injectable";
3
+ export * from "./Inject";
4
+ export * from "./DefineFactory";
@@ -0,0 +1,141 @@
1
+ import { HttpConfig, HttpCredentials, HttpResponse, Future, Guid } from "../models";
2
+ export declare class HttpBuilder {
3
+ _config?: HttpConfig;
4
+ constructor(_config?: HttpConfig);
5
+ /**
6
+ * The base url for the client e.g. https://api.com
7
+ *
8
+ * @param {string} baseUrl
9
+ * @return {*} {HttpBuilder}
10
+ * @memberof HttpBuilder
11
+ */
12
+ withBaseUrl(baseUrl: string): HttpBuilder;
13
+ /**
14
+ * If headers should be included in the request
15
+ *
16
+ * @param {{ [name: string]: string }} headers
17
+ * @return {*} {HttpBuilder}
18
+ * @memberof HttpBuilder
19
+ */
20
+ withHeaders(headers: {
21
+ [name: string]: string;
22
+ }): HttpBuilder;
23
+ /**
24
+ * If credential options should be included in the request, Default is "include" for this method
25
+ *
26
+ * @param {HttpCredentials} [credentials]
27
+ * @return {*} {HttpBuilder}
28
+ * @memberof HttpBuilder
29
+ */
30
+ withCredentials(credentials?: HttpCredentials): HttpBuilder;
31
+ /**
32
+ * Sets up the client defaults to call a json api
33
+ *
34
+ * @return {*}
35
+ * @memberof HttpBuilder
36
+ */
37
+ withJsonApiSupport(): HttpBuilder;
38
+ withExecuteOnWorker(): this;
39
+ /**
40
+ * Sets up the client defaults to call a json api
41
+ *
42
+ * @return {*}
43
+ * @memberof HttpBuilder
44
+ */
45
+ getConfig(): HttpConfig;
46
+ /**
47
+ * Creates the Http instance with the configuration options
48
+ *
49
+ * @return {*} {Http}
50
+ * @memberof HttpBuilder
51
+ */
52
+ build(): Http;
53
+ }
54
+ export declare class Http {
55
+ _baseConfig: HttpConfig | Future<HttpConfig> | Promise<HttpConfig>;
56
+ /**
57
+ * Create a new instance of Http using the HttpBuilder
58
+ * @static
59
+ * @param {(HttpConfig | Future<HttpConfig> | Promise<HttpConfig>)} [config]
60
+ * @return {*} {Http}
61
+ * @memberof Http
62
+ */
63
+ static new(config?: HttpConfig): HttpBuilder;
64
+ /**
65
+ * Creates a new instance of Http with default configurations for calling Omnia Service Apis
66
+ *
67
+ * @static
68
+ * @return {*}
69
+ * @memberof Http
70
+ */
71
+ static default(config?: HttpConfig): Http;
72
+ constructor(config?: HttpConfig | Future<HttpConfig> | Promise<HttpConfig>);
73
+ /**
74
+ *Performs a GET request for provided url
75
+ *
76
+ * @template TReturnType
77
+ * @param {string} url
78
+ * @param {HttpConfig} [config]
79
+ * @return {*} {Future<HttpResponse<TReturnType>>}
80
+ * @memberof Http
81
+ */
82
+ get<TReturnType>(url: string, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
83
+ /**
84
+ * Performs a DELETE request for provided url
85
+ *
86
+ * @template TReturnType
87
+ * @param {string} url
88
+ * @param {HttpConfig} [config]
89
+ * @return {*} {Future<HttpResponse<TReturnType>>}
90
+ * @memberof Http
91
+ */
92
+ delete<TReturnType>(url: string, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
93
+ /**
94
+ * Performs a HEAD request for provided url
95
+ *
96
+ * @template TReturnType
97
+ * @param {string} url
98
+ * @param {HttpConfig} [config]
99
+ * @return {*} {Future<HttpResponse<TReturnType>>}
100
+ * @memberof Http
101
+ */
102
+ head<TReturnType>(url: string, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
103
+ /**
104
+ * Performs a HEAD request for provided url
105
+ *
106
+ * @template TReturnType
107
+ * @param {string} url
108
+ * @param {Object} body
109
+ * @param {HttpConfig} [config]
110
+ * @return {*} {Future<HttpResponse<TReturnType>>}
111
+ * @memberof Http
112
+ */
113
+ post<TReturnType>(url: string, body: Object, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
114
+ /**
115
+ * Performs a POST request for provided url
116
+ *
117
+ * @template TReturnType
118
+ * @param {string} url
119
+ * @param {Object} body
120
+ * @param {HttpConfig} [config]
121
+ * @return {*} {Future<HttpResponse<TReturnType>>}
122
+ * @memberof Http
123
+ */
124
+ put<TReturnType>(url: string, body: Object, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
125
+ /**
126
+ * Performs a POST request for provided url
127
+ *
128
+ * @template TReturnType
129
+ * @param {string} url
130
+ * @param {Object} body
131
+ * @param {HttpConfig} [config]
132
+ * @return {*} {Future<HttpResponse<TReturnType>>}
133
+ * @memberof Http
134
+ */
135
+ patch<TReturnType>(url: string, body: Object, config?: HttpConfig): Future<HttpResponse<TReturnType>>;
136
+ private createRequest;
137
+ private buildRequestInit;
138
+ private appendQueryParamsToUrl;
139
+ }
140
+ export declare function http(omniaServiceId: Guid, executeOnWorker?: boolean): Http;
141
+ export declare function http(options: HttpConfig): Http;
@@ -0,0 +1 @@
1
+ export * from "./Http";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * fx/shared that contain all code to share between worker and browser.
3
+ * NOTE: it cant have any dependencies to fx core, worker and vendors stuffs
4
+ * ***/
5
+ export * from "./models";
6
+ export * from "./broadcasting";
7
+ export * from "./workers";
8
+ export * from "./http";
9
+ export * from "./services";
10
+ export * from "./utils";
11
+ export * from "./factory";
12
+ export * from "./messaging";
@@ -0,0 +1,48 @@
1
+ import { Topic, TopicSettings } from "../models";
2
+ /**
3
+ * A message bus where messages can be published and subscribed to based on a path
4
+ * @class MessageBus
5
+ */
6
+ export declare class MessageBus {
7
+ private static _subscribers;
8
+ private static _subscriptionConfigs;
9
+ /**
10
+ * Publishes a message on the topic
11
+ */
12
+ static publish<T>(topic: Topic<T>, obj: T): void;
13
+ /**
14
+ * Clears the message cache for the topic
15
+ */
16
+ static clearCache<T>(topic: Topic<T>): number;
17
+ /**
18
+ * Subscribes to the specified Topic and triggers function when a message is published
19
+ */
20
+ static subscribe<T>(topic: Topic<T>, fn: (obj: T) => void): void;
21
+ /**
22
+ * Unsubscribes from the specified Topic
23
+ */
24
+ static unsubscribe<T>(topic: Topic<T>, fn: (obj: T) => void): void;
25
+ /**
26
+ * Creates a topic that messages can be published to, if topic already exists it will throw exception
27
+ */
28
+ static createTopic<T>(topic: Topic<T>, settings?: TopicSettings): void;
29
+ /**
30
+ * Creates a topic if it dosent exists, if it already exists it will ignore and continue without exception
31
+ * @param topic
32
+ * @param settings
33
+ * @returns true/false created
34
+ */
35
+ static ensureTopic<T>(topic: Topic<T>, settings?: TopicSettings): boolean;
36
+ /**
37
+ * Returns true if the topic exists already
38
+ */
39
+ static topicExists<T>(topic: Topic<T>): boolean;
40
+ /**
41
+ * Builds the full path
42
+ */
43
+ private static buildTopicPath;
44
+ /**
45
+ * Ensures the subscribers array on the path
46
+ */
47
+ private static ensureSubscribers;
48
+ }
@@ -0,0 +1,30 @@
1
+ import { Topic, TopicSettings, IMessageBusSubscriptionHandler, IMessageBusTopicSubscription, IMessageBusTopicPublishSubscriber, IMessageBusTopicPublication, TopicCreatedFunc } from "../models";
2
+ export declare class SubscriptionHandler implements IMessageBusSubscriptionHandler {
3
+ private unSubcribeHandlers;
4
+ constructor();
5
+ /**
6
+ * Unsubscribe to the related subscription(s)
7
+ * and/or any subscriptions added using add method)
8
+ * */
9
+ unsubscribe: () => void;
10
+ /**
11
+ * Adds another unsubscribe handler, all will be unsubscribed to if calling unsubscribe
12
+ * @param unSubscriptionHandler
13
+ */
14
+ add: (unSubscriptionHandler: IMessageBusSubscriptionHandler) => void;
15
+ }
16
+ export declare class MessageBusExposeOnlySubscription<T> implements IMessageBusTopicSubscription<T> {
17
+ subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
18
+ constructor(publishSubscriber: IMessageBusTopicPublishSubscriber<T>);
19
+ }
20
+ export declare class MessageBusExposeOnlyPublication<T> implements IMessageBusTopicPublication<T> {
21
+ publish: (msg: T) => void;
22
+ constructor(publishSubscriber: IMessageBusTopicPublishSubscriber<T>);
23
+ }
24
+ export declare class MessageBusTopicMediator<T> implements IMessageBusTopicPublishSubscriber<T> {
25
+ private _topic;
26
+ constructor(topic: Topic<T>, settings?: TopicSettings, onTopicCreated?: TopicCreatedFunc<T>);
27
+ publish: (msg: T) => void;
28
+ subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
29
+ clearMessageCache: () => number;
30
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./MessageBus";
2
+ export * from "./MessageBusMediator";
@@ -12,6 +12,7 @@ require("./Equals"); // ensure execute code in equals first
12
12
  * Class to create a guid
13
13
  */
14
14
  class Guid {
15
+ static { this._empty = new Guid("00000000-0000-0000-0000-000000000000"); }
15
16
  static newGuid() {
16
17
  return new Guid("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, c => {
17
18
  const r = Math.random() * 16 | 0;
@@ -57,7 +58,6 @@ class Guid {
57
58
  }
58
59
  }
59
60
  exports.Guid = Guid;
60
- Guid._empty = new Guid("00000000-0000-0000-0000-000000000000");
61
61
  // only add extension methods when running in browser, not in node.js
62
62
  if (globalThis.omnia) {
63
63
  Object.defineProperty(String.prototype["equals"], "guid", {
@@ -0,0 +1,23 @@
1
+ export interface TopicCreatedFunc<T> {
2
+ (created: IMessageBusTopicPublishSubscriber<T>): void;
3
+ }
4
+ export interface IMessageBusSubscriptionHandler {
5
+ /**
6
+ * Unsubscribe to the related subscription(s)
7
+ * and/or any subscriptions added using add method)
8
+ * */
9
+ unsubscribe(): any;
10
+ /**
11
+ * Adds another unsubscribe handler, all will be unsubscribed to if calling unsubscribe
12
+ * @param unSubscriptionHandler
13
+ */
14
+ add(unSubscriptionHandler: IMessageBusSubscriptionHandler): any;
15
+ }
16
+ export interface IMessageBusTopicSubscription<T> {
17
+ subscribe: (fn: (obj: T) => void) => IMessageBusSubscriptionHandler;
18
+ }
19
+ export interface IMessageBusTopicPublication<T> {
20
+ publish: (msg: T) => void;
21
+ }
22
+ export interface IMessageBusTopicPublishSubscriber<T> extends IMessageBusTopicSubscription<T>, IMessageBusTopicPublication<T> {
23
+ }
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HubSource = void 0;
4
4
  class HubSource {
5
+ static { this.Id = "eb4fde5f-4f3e-4c70-9893-3d9e048fda0c"; }
5
6
  }
6
7
  exports.HubSource = HubSource;
7
- HubSource.Id = "eb4fde5f-4f3e-4c70-9893-3d9e048fda0c";
@@ -17,3 +17,5 @@ export * from "./StronglyTypedId";
17
17
  export * from "./theming";
18
18
  export * from "./hub";
19
19
  export * from "./velcron";
20
+ export * from "./DependencyInjection";
21
+ export * from "./Messaging";
@@ -21,3 +21,5 @@ tslib_1.__exportStar(require("./StronglyTypedId"), exports);
21
21
  tslib_1.__exportStar(require("./theming"), exports);
22
22
  tslib_1.__exportStar(require("./hub"), exports);
23
23
  tslib_1.__exportStar(require("./velcron"), exports);
24
+ tslib_1.__exportStar(require("./DependencyInjection"), exports);
25
+ tslib_1.__exportStar(require("./Messaging"), exports);
@@ -1,10 +1,10 @@
1
- import { BackgroundDefinition, ColorValue, FillDefinition } from "./ThemeDefinitionV2";
2
- import { ChromeBlueprint } from "./Chrome";
1
+ import { BackgroundDefinition, ColorSchemaType, ColorValue, FillDefinition } from "./ThemeDefinitionV2";
3
2
  import { SpacingDefinition, Spacing } from "./Spacing";
4
3
  import { TypographyValue } from "./Typography";
5
4
  export interface BoxDimensions extends Spacing {
6
5
  }
7
6
  import { TypographyBlueprint } from "./Typography";
7
+ import { GuidValue, VelcronAppDefinition } from "@omnia/fx-models";
8
8
  export interface Blueprints {
9
9
  name?: string;
10
10
  }
@@ -22,6 +22,18 @@ export interface TypographyBlueprints extends Blueprints {
22
22
  export interface SpacingBlueprints extends Blueprints {
23
23
  primary: SpacingBlueprint;
24
24
  }
25
+ export interface ChromeBlueprint {
26
+ name?: string;
27
+ colorSchemaType?: ColorSchemaType;
28
+ header: {
29
+ definitionId: GuidValue;
30
+ definition?: VelcronAppDefinition;
31
+ };
32
+ styles: {
33
+ background?: BackgroundDefinition;
34
+ spacing?: Spacing;
35
+ };
36
+ }
25
37
  export type ButtonTypes = "primary" | "basic" | "accent1" | "warn" | "disabled" | "link";
26
38
  export interface ComponentBlueprints extends Blueprints {
27
39
  buttons?: {
@@ -48,6 +60,7 @@ export interface ComponentBlueprints extends Blueprints {
48
60
  variant2?: TabsBlueprint;
49
61
  variant3?: TabsBlueprint;
50
62
  };
63
+ blocks?: ChromeBlueprints;
51
64
  }
52
65
  export interface SpacingBlueprint {
53
66
  layout: SpacingDefinition;
@@ -1,5 +1,5 @@
1
1
  import { Guid } from "../Guid";
2
- import { BoxDimensions, ChromeBlueprints, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
2
+ import { BoxDimensions, ComponentBlueprints, SpacingBlueprints, TypographyBlueprints } from "./Blueprints";
3
3
  export interface ColorTypeResult<resultType> {
4
4
  base: resultType;
5
5
  baseTone: resultType;
@@ -38,6 +38,7 @@ export interface ColorSchemas {
38
38
  background: ColorSchema;
39
39
  error: ColorSchema;
40
40
  info: ColorSchema;
41
+ warning: ColorSchema;
41
42
  }
42
43
  export interface ThemeDefinitionV2 {
43
44
  id: Guid;
@@ -45,7 +46,6 @@ export interface ThemeDefinitionV2 {
45
46
  colors: ColorSchemas;
46
47
  typography: TypographyBlueprints;
47
48
  spacing: SpacingBlueprints;
48
- chrome: ChromeBlueprints;
49
49
  components: ComponentBlueprints;
50
50
  }
51
51
  export type ColorSchemaType = keyof typeof ColorSchemaTypes;
@@ -4,5 +4,4 @@ export * from "./UseThemeMethods";
4
4
  export * from "./Spacing";
5
5
  export * from "./SharedBlueprintMethods";
6
6
  export * from "./SharedColorMethods";
7
- export * from "./Chrome";
8
7
  export * from "./Blueprints";
@@ -8,5 +8,4 @@ tslib_1.__exportStar(require("./UseThemeMethods"), exports);
8
8
  tslib_1.__exportStar(require("./Spacing"), exports);
9
9
  tslib_1.__exportStar(require("./SharedBlueprintMethods"), exports);
10
10
  tslib_1.__exportStar(require("./SharedColorMethods"), exports);
11
- tslib_1.__exportStar(require("./Chrome"), exports);
12
11
  tslib_1.__exportStar(require("./Blueprints"), exports);
@@ -0,0 +1,27 @@
1
+ import { FileOwnerId, ChannelId, ActivityFeed, FeedActivityDefinition, SourceRelatedHubProperty, NotificationTeaser, FeedQuery, TemporaryFileId, ActorActivityBase, ActivityCategoryCount, ActorActivityCategory, ActivityRendererLoadingReferences, ActivityRendererLoadReference, ActivityRenderer, HubReaction, HubComment, ExternalActorId, ActivityId, ActorId, Actor } from "../models";
2
+ export declare const activityService: () => {
3
+ getFeed: (channelId: ChannelId, options?: FeedQuery) => Promise<ActivityFeed>;
4
+ createActivity: <TRenderState>(channelId: ChannelId, createdBy: ActorId, activityDefinition: FeedActivityDefinition<TRenderState>, targeting: Array<Array<SourceRelatedHubProperty>>, notification: NotificationTeaser, category?: ActorActivityCategory, expires?: Date, createdAt?: Date, activityIdPlaceHolder?: TemporaryFileId) => Promise<void>;
5
+ getActors: (actorIds: Array<ActorId>) => Promise<Actor[]>;
6
+ getActorsByExternalIds: (externalIds: Array<ExternalActorId>) => Promise<{
7
+ actorId: ActorId;
8
+ externalId: string;
9
+ }[]>;
10
+ dismissNotificationsByActorIds: (channelId: ChannelId, actorIds: Array<ActorId>) => Promise<boolean>;
11
+ updateActorActivity: (channelId: ChannelId, actorActivity: ActorActivityBase) => Promise<ActivityCategoryCount[]>;
12
+ tempDelete: (channelId: ChannelId) => Promise<boolean>;
13
+ tempActorActivitiesDelete: (channelId: ChannelId) => Promise<boolean>;
14
+ getActivityRenderersLoadReferences: (currentLoadStateHash?: string) => Promise<ActivityRendererLoadingReferences>;
15
+ getActivityRenderer: (toLoad: ActivityRendererLoadReference) => Promise<ActivityRenderer>;
16
+ addCommentAsync: (activityId: ActivityId, rendererJson: string, mentions: ExternalActorId[], inReplyToCommentId?: number) => Promise<HubComment>;
17
+ getCommentsAsync: (activityId: ActivityId, offSet?: HubComment | null, limt?: number) => Promise<HubComment[]>;
18
+ updateCommentAsync: (activityId: ActivityId, comment: HubComment) => Promise<HubComment>;
19
+ deleteCommentAsync: (activityId: ActivityId, toDelete: HubComment) => Promise<number[]>;
20
+ addReactionAsync: (activityId: ActivityId, reactionType: string) => Promise<HubReaction[]>;
21
+ deleteReactionAsync: (activityId: ActivityId, toDelete: HubReaction) => Promise<HubReaction[]>;
22
+ getReactionsAsync: (activityId: ActivityId) => Promise<HubReaction[]>;
23
+ getFiles: (fileOwnerId: FileOwnerId, startPath: string[]) => Promise<string[]>;
24
+ getTempFiles: (tempFilesId: TemporaryFileId, startPath: string[]) => Promise<string[]>;
25
+ takeOwnership: (tempFilesId: TemporaryFileId, subPath: string[]) => Promise<void>;
26
+ upload: (uniqueGuid: TemporaryFileId, files: File[]) => Promise<TemporaryFileId>;
27
+ };
@@ -0,0 +1,15 @@
1
+ import { SubscriptionInformation, Subscription, ActorSubscription, ActorId, SubscriptionId } from "../models";
2
+ export declare const activitySubscriptionService: () => {
3
+ upsertSubscription: (subscriptionOwner: ActorId, id: SubscriptionId, title: Record<string, string>, description: Record<string, string>) => Promise<SubscriptionInformation>;
4
+ removeSubscription: (actorSubscription: ActorSubscription) => Promise<SubscriptionInformation>;
5
+ get: (actorSubscription: ActorSubscription) => Promise<SubscriptionInformation>;
6
+ getByActorId: (subscriptionOwner: ActorId) => Promise<SubscriptionInformation[]>;
7
+ getAll: () => Promise<SubscriptionInformation[]>;
8
+ addActorAsSubscriber: (actorSubscription: ActorSubscription, newSubscriber: ActorId) => Promise<SubscriptionId>;
9
+ removeActorAsSubscriber: (actorSubscription: ActorSubscription, actorToRemove: ActorId) => Promise<SubscriptionId>;
10
+ getActorSubscriptions: (actorToGetFor: ActorId) => Promise<SubscriptionInformation[]>;
11
+ getSubscribers: (subscriptionOwner: ActorId, ownerSubscriptions: SubscriptionId[]) => Promise<Subscription[]>;
12
+ addFollowingSubscription: (actorToFollow: ActorId) => Promise<void>;
13
+ isFollowingSubscription: (actorToFollow: ActorId) => Promise<boolean>;
14
+ removeFollowingSubscription: (actorToFollow: ActorId) => Promise<SubscriptionId>;
15
+ };
@@ -0,0 +1,6 @@
1
+ import { http } from "../http";
2
+ export declare function defineService<TActions extends {
3
+ [key: string]: Function;
4
+ }>(name: string, setup: (ctx: {
5
+ http: typeof http;
6
+ }) => TActions): () => TActions;
@@ -0,0 +1,8 @@
1
+ import { Future, RealtimeChannel, RealtimeData } from "../models";
2
+ export declare const useRealtimeService: () => {
3
+ activateChannel: (channel: RealtimeChannel) => void;
4
+ deactivateChannel: (channel: RealtimeChannel) => void;
5
+ send: <TRealtimeChannel extends RealtimeChannel, TRealtimeData extends RealtimeData<TRealtimeChannel, any>>(data: TRealtimeData, value: TRealtimeData["value"]) => void;
6
+ getUsersInChannel: (channel: RealtimeChannel) => Future<Array<number>>;
7
+ onMessage: <TRealtimeChannel_1 extends RealtimeChannel, TRealtimeData_1 extends RealtimeData<TRealtimeChannel_1, any>>(data: TRealtimeData_1, callback: (value: TRealtimeData_1["value"]) => void) => void;
8
+ };
@@ -0,0 +1,4 @@
1
+ export * from "./DefineService";
2
+ export * from "./ActivityService";
3
+ export * from "./RealtimeService";
4
+ export * from "./ActivitySubscriptionService";
@@ -0,0 +1,4 @@
1
+ export declare class Utils {
2
+ static generateGuid(): string;
3
+ static isNativeClass(value: any): boolean;
4
+ }
@@ -0,0 +1,6 @@
1
+ export declare class Leader {
2
+ private static _elector;
3
+ static awaitLeadership(): Promise<void>;
4
+ static get isLeader(): boolean;
5
+ private static get elector();
6
+ }
@@ -0,0 +1,11 @@
1
+ import { WorkerProxyFunction } from "../models";
2
+ export declare class WorkerProxy {
3
+ static _worker: Worker;
4
+ private static _initialized;
5
+ private static _handlers;
6
+ private static _promiseResolvers;
7
+ static call<TParamType, TReturnType>(topic: WorkerProxyFunction<TParamType, TReturnType>, parameter: TParamType): Promise<TReturnType>;
8
+ static addFunction<TSendType, TReturnType>(topic: WorkerProxyFunction<TSendType, TReturnType>, handler: (data: TSendType) => TReturnType): void;
9
+ private static ensureInitialized;
10
+ private static callHandlerMessage;
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./WorkerProxy";
2
+ export * from "./Leader";
@@ -2,20 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MediaflowSecretsForms = exports.MediaflowConstants = void 0;
4
4
  class MediaflowConstants {
5
+ static { this.mediaflowJsUrl = "https://mfstatic.com/js/fileselector.min.js"; }
6
+ static { this.mediaflowJsFallback = "https://mfstatic.com/js/fileselector.js"; }
7
+ static { this.mediaflowCssUrl = "https://mfstatic.com/css/fileselector.min.css"; }
8
+ static { this.mediaflowCssFallback = "https://mfstatic.com/css/fileselector.css"; }
9
+ static { this.featureId = "32B53D6B-6177-40FD-A8D2-386128089CA5"; }
10
+ static { this.mediaFlowSettingsKey = "omnia.mediaflow.settings"; }
11
+ static { this.mediaFlowSecretKey = "omnia-mediaflow-integration-key"; }
12
+ static { this.defaultSupportedMediaFormats = "flv,mxf,gxf,wmv,asf,mp4,m4v,ismv,mkv,mov,jpeg,jpg,png,bmp,gif,svg,ico"; }
5
13
  }
6
14
  exports.MediaflowConstants = MediaflowConstants;
7
- MediaflowConstants.mediaflowJsUrl = "https://mfstatic.com/js/fileselector.min.js";
8
- MediaflowConstants.mediaflowJsFallback = "https://mfstatic.com/js/fileselector.js";
9
- MediaflowConstants.mediaflowCssUrl = "https://mfstatic.com/css/fileselector.min.css";
10
- MediaflowConstants.mediaflowCssFallback = "https://mfstatic.com/css/fileselector.css";
11
- MediaflowConstants.featureId = "32B53D6B-6177-40FD-A8D2-386128089CA5";
12
- MediaflowConstants.mediaFlowSettingsKey = "omnia.mediaflow.settings";
13
- MediaflowConstants.mediaFlowSecretKey = "omnia-mediaflow-integration-key";
14
- MediaflowConstants.defaultSupportedMediaFormats = "flv,mxf,gxf,wmv,asf,mp4,m4v,ismv,mkv,mov,jpeg,jpg,png,bmp,gif,svg,ico";
15
15
  class MediaflowSecretsForms {
16
+ static { this.clientid = "clientid"; }
17
+ static { this.clientsecret = "clientsecret"; }
18
+ static { this.refreshtoken = "refreshtoken"; }
19
+ static { this.integrationKey = "integrationKey"; }
16
20
  }
17
21
  exports.MediaflowSecretsForms = MediaflowSecretsForms;
18
- MediaflowSecretsForms.clientid = "clientid";
19
- MediaflowSecretsForms.clientsecret = "clientsecret";
20
- MediaflowSecretsForms.refreshtoken = "refreshtoken";
21
- MediaflowSecretsForms.integrationKey = "integrationKey";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.128-dev",
4
+ "version": "8.0.130-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { PropertyDataSourceId } from "./DataSourceId";
3
3
  import { DataSourceProperty } from "./DataSourceProperty";
4
4
  export declare class AppDataSourceProperty extends DataSourceProperty {
@@ -1,2 +1,2 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  export type PropertyDataSourceId = GuidValue;
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { MultilingualString } from "../../MultilingualString";
3
3
  export declare class DataSourcePropertyCategory {
4
4
  id: GuidValue;
@@ -1,4 +1,4 @@
1
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { PropertyBindingId } from "../PropertyBinding";
3
3
  import { PropertyDataSourceId } from "./DataSourceId";
4
4
  import { DataSourceProperty } from "./DataSourceProperty";
@@ -20,7 +20,6 @@ export declare class DateDisplaySettings extends PropertyDisplaySettingsBase {
20
20
  renderMode?: DateRenderOption;
21
21
  }
22
22
  export declare class DateEditorSettings extends PropertyEditorSettingsBase {
23
- required: boolean;
24
23
  }
25
24
  export declare class DatePropertyDefinition extends PropertyDefinition<DatePropertyValue, DateDisplaySettings, DateEditorSettings> {
26
25
  id: Guid;
@@ -9,7 +9,6 @@ export declare class DateTimeDisplaySettings extends PropertyDisplaySettingsBase
9
9
  showTimeZone?: boolean;
10
10
  }
11
11
  export declare class DateTimeEditorSettings extends PropertyEditorSettingsBase {
12
- required: boolean;
13
12
  }
14
13
  export declare class DateTimePropertyDefinition extends PropertyDefinition<DateTimePropertyValue, DateTimeDisplaySettings, DateTimeEditorSettings> {
15
14
  id: Guid;
@@ -5,7 +5,6 @@ export declare class EmailDisplaySettings extends PropertyDisplaySettingsBase {
5
5
  showIcon?: boolean;
6
6
  }
7
7
  export declare class EmailEditorSettings extends PropertyEditorSettingsBase {
8
- required: boolean;
9
8
  }
10
9
  export declare class EmailPropertyDefinition extends PropertyDefinition<EmailPropertyValue, EmailDisplaySettings, EmailEditorSettings> {
11
10
  id: Guid;
@@ -16,7 +16,6 @@ export declare class ImageEditorSettings extends PropertyEditorSettingsBase {
16
16
  preConfiguredImageScalingUniqueId?: GuidValue;
17
17
  forceScaling?: boolean;
18
18
  cropRatioUniqueIds?: Array<GuidValue>;
19
- required?: boolean;
20
19
  rollupRatiosDisabled?: boolean;
21
20
  }
22
21
  export declare const imagePropertyDefinitionId: Guid;
package/ux/AdminApi.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Guid, GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
+ import { Guid, GuidValue, IMessageBusTopicPublishSubscriber } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { AdminNavigationNode, NavigationNode, NavigationNodeInitializeMessage } from "../admin";
3
3
  import { ApiPath, IExtendApiManifestWithConfiguration } from "../Extends";
4
- import { IMessageBusTopicPublishSubscriber, NavigationMenuNode } from "../Messaging";
4
+ import { NavigationMenuNode } from "../Messaging";
5
5
  export interface IRegisterAdminNavigationNode {
6
6
  registerNavigationNode: (nodes: NavigationNode | NavigationNode[]) => void;
7
7
  }
@@ -1,7 +1,6 @@
1
1
  import { EnterprisePropertyDataTypeProviderRegistration } from "..";
2
2
  import { ApiPath } from "../Extends";
3
- import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
4
- import { IMessageBusTopicSubscription } from "../Messaging";
3
+ import { GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models";
5
4
  export interface IInternalRegistrationEnterprisePropertyDataTypeProvider extends IRegistrationEnterprisePropertyDataTypeProvider {
6
5
  getAllEnterprisePropertyDataTypeProvider: () => EnterprisePropertyDataTypeProviderRegistration[];
7
6
  onEnterprisePropertyDataTypeProviderRegistrationChange: () => IMessageBusTopicSubscription<EnterprisePropertyDataTypeProviderRegistration[]>;
@@ -1,6 +1,6 @@
1
- import { GuidValue } from "@omnia/fx-models";
1
+ import { GuidValue, IMessageBusTopicSubscription } from "@omnia/fx-models";
2
2
  import { AdminNavigationNode, NavigationNode } from "../admin";
3
- import { NavigationMenuNode, IMessageBusTopicSubscription } from "../Messaging";
3
+ import { NavigationMenuNode } from "../Messaging";
4
4
  import { IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode, INavigationRootNodeRegistration, INavigationSubNodeRegistration } from "./AdminApi";
5
5
  export interface AdminNavigationNodeRegistration {
6
6
  node: AdminNavigationNode;
@@ -2,7 +2,7 @@ import { VNode, h } from "vue";
2
2
  import { GuidValue } from "../Exposes";
3
3
  import { ApiPath, IExtendApiManifestWithConfiguration } from "../Extends";
4
4
  import { LayoutPlaceHolderRegistration, LayoutTemplateRegistration } from "../Layout";
5
- import { IMessageBusTopicSubscription } from "../Messaging";
5
+ import { IMessageBusTopicSubscription } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
6
6
  export interface IInternalLayoutTemplateRegistration extends ILayoutTemplateRegistration {
7
7
  getAllLayoutTemplates: () => LayoutTemplateRegistration[];
8
8
  onLayoutTemplateRegistrationChange: () => IMessageBusTopicSubscription<LayoutTemplateRegistration[]>;
@@ -1,16 +0,0 @@
1
- import { GuidValue } from "../Guid";
2
- import { VelcronAppDefinition } from "../velcron";
3
- import { Spacing } from "./Spacing";
4
- import { BackgroundDefinition, ColorSchemaType } from "./ThemeDefinitionV2";
5
- export interface ChromeBlueprint {
6
- name?: string;
7
- colorSchemaType?: ColorSchemaType;
8
- header: {
9
- definitionId: GuidValue;
10
- definition?: VelcronAppDefinition;
11
- };
12
- styles: {
13
- background?: BackgroundDefinition;
14
- spacing?: Spacing;
15
- };
16
- }