@omnia/fx-models 8.0.445-dev → 8.0.447-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.
package/Enums.d.ts CHANGED
@@ -500,10 +500,6 @@ export declare enum AppInstanceAction {
500
500
  permission = "permission",
501
501
  features = "features"
502
502
  }
503
- export declare enum ServiceLocatorUrlType {
504
- Api = 0,
505
- Resource = 1
506
- }
507
503
  export declare enum ImageResolution {
508
504
  Small = 640,
509
505
  Medium = 1280,
package/Enums.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DateOperator = exports.TimePeriodTypes = exports.TargetUser = exports.RedirectRuleType = exports.MultilingualScopes = exports.OmniaRoleTypes = exports.TargetResolverTypes = exports.PermissionRoles = exports.FirstDayOfWeeks = exports.TimeFormats = exports.CompareBusinessProfilePathType = exports.StatusMessageOverlayType = exports.HttpStatusCode = exports.QueueMessageStatus = exports.StaticEndpoint = exports.LegacyThemeType = exports.FeatureInstanceStatus = exports.RoleDefinitions = exports.Parameters = exports.ParamTypes = exports.PropertyIndexedType = exports.UserPickingType = exports.BoolFilter = exports.PrincipalTypes = exports.AppInstanceScopedQueryTypes = exports.AppInstanceStatus = exports.VideoRatio = exports.AdminNavigationBuiltInCategory = exports.AdminVisibility = exports.AuthenticationValidationStatuses = exports.IconSources = exports.LanguageTags = exports.LocalizationTargetTypes = exports.BundleTargetTypes = exports.ServerManifestTypes = exports.ClientManifestTypes = exports.RuleLogicalOperator = exports.ResourceEvaluators = exports.ConsoleStateStorageMessageTypes = exports.ConsoleMessageTypes = exports.LogLevels = exports.ManifestLoadStatus = exports.LogSources = exports.AppTemplatePermissionLevel = exports.SecurityAccessType = exports.SecurityIdentities = exports.SecurityRoleScopes = exports.SecurityProviderTypes = exports.BuiltInAppInstanceInternalNames = exports.BuiltInEnterprisePropertyInternalNames = void 0;
4
- exports.CompletionImpactType = exports.LayoutActionOpenType = exports.ReCaptChaSecretFormNames = exports.reCaptchaSecretKey = exports.WPServiceDefinition = exports.StatusFilter = exports.PersistentDiskTypes = exports.CookieKeys = exports.LocalServingMessageType = exports.DisplayBreakpoints = exports.DisplayBreakpointCodes = exports.IdentityUserIdTypeMatch = exports.OmniaClientRuntimes = exports.OmniaBackendRuntimes = exports.PropertyEditModeElementNameType = exports.DirectionRules = exports.MediaPickerEnums = exports.PropertyArchiveType = exports.ImageSources = exports.IconSizes = exports.BlockRenderingModes = exports.LayoutCanvasModes = exports.ChromeTypes = exports.LayoutItemActions = exports.LayoutEditorModes = exports.TabbedDisplayModes = exports.TabbedIconPositions = exports.Positions = exports.BorderPositions = exports.IconPositions = exports.TextAlignment = exports.LayoutItemTypes = exports.LayoutDrawerTabs = exports.VerticalAlignments = exports.HorizontalAlignments = exports.BladeSizes = exports.ImageResolution = exports.ServiceLocatorUrlType = exports.AppInstanceAction = exports.VDataGridHeaderType = exports.VDataGridHeaderAlign = exports.ButtonSizes = exports.ButtonModes = exports.ButtonIconPosition = exports.TooltipPosition = exports.RichTextModes = void 0;
4
+ exports.CompletionImpactType = exports.LayoutActionOpenType = exports.ReCaptChaSecretFormNames = exports.reCaptchaSecretKey = exports.WPServiceDefinition = exports.StatusFilter = exports.PersistentDiskTypes = exports.CookieKeys = exports.LocalServingMessageType = exports.DisplayBreakpoints = exports.DisplayBreakpointCodes = exports.IdentityUserIdTypeMatch = exports.OmniaClientRuntimes = exports.OmniaBackendRuntimes = exports.PropertyEditModeElementNameType = exports.DirectionRules = exports.MediaPickerEnums = exports.PropertyArchiveType = exports.ImageSources = exports.IconSizes = exports.BlockRenderingModes = exports.LayoutCanvasModes = exports.ChromeTypes = exports.LayoutItemActions = exports.LayoutEditorModes = exports.TabbedDisplayModes = exports.TabbedIconPositions = exports.Positions = exports.BorderPositions = exports.IconPositions = exports.TextAlignment = exports.LayoutItemTypes = exports.LayoutDrawerTabs = exports.VerticalAlignments = exports.HorizontalAlignments = exports.BladeSizes = exports.ImageResolution = exports.AppInstanceAction = exports.VDataGridHeaderType = exports.VDataGridHeaderAlign = exports.ButtonSizes = exports.ButtonModes = exports.ButtonIconPosition = exports.TooltipPosition = exports.RichTextModes = void 0;
5
5
  const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
6
6
  var BuiltInEnterprisePropertyInternalNames;
7
7
  (function (BuiltInEnterprisePropertyInternalNames) {
@@ -562,11 +562,6 @@ var AppInstanceAction;
562
562
  AppInstanceAction["permission"] = "permission";
563
563
  AppInstanceAction["features"] = "features";
564
564
  })(AppInstanceAction || (exports.AppInstanceAction = AppInstanceAction = {}));
565
- var ServiceLocatorUrlType;
566
- (function (ServiceLocatorUrlType) {
567
- ServiceLocatorUrlType[ServiceLocatorUrlType["Api"] = 0] = "Api";
568
- ServiceLocatorUrlType[ServiceLocatorUrlType["Resource"] = 1] = "Resource";
569
- })(ServiceLocatorUrlType || (exports.ServiceLocatorUrlType = ServiceLocatorUrlType = {}));
570
565
  var ImageResolution;
571
566
  (function (ImageResolution) {
572
567
  ImageResolution[ImageResolution["Small"] = 640] = "Small";
@@ -0,0 +1,4 @@
1
+ export declare enum ServiceLocatorUrlType {
2
+ Api = 0,
3
+ Resource = 1
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceLocatorUrlType = void 0;
4
+ var ServiceLocatorUrlType;
5
+ (function (ServiceLocatorUrlType) {
6
+ ServiceLocatorUrlType[ServiceLocatorUrlType["Api"] = 0] = "Api";
7
+ ServiceLocatorUrlType[ServiceLocatorUrlType["Resource"] = 1] = "Resource";
8
+ })(ServiceLocatorUrlType || (exports.ServiceLocatorUrlType = ServiceLocatorUrlType = {}));
@@ -25,3 +25,4 @@ export * from "./Icon";
25
25
  export * from "./MultilingualString";
26
26
  export * from "./properties";
27
27
  export * from "./ValueOf";
28
+ export * from "./Enums";
@@ -29,3 +29,4 @@ tslib_1.__exportStar(require("./Icon"), exports);
29
29
  tslib_1.__exportStar(require("./MultilingualString"), exports);
30
30
  tslib_1.__exportStar(require("./properties"), exports);
31
31
  tslib_1.__exportStar(require("./ValueOf"), exports);
32
+ tslib_1.__exportStar(require("./Enums"), exports);
@@ -0,0 +1,22 @@
1
+ import { guid, ServiceLocatorUrlType } from "../models";
2
+ export interface IServiceLocationProvider {
3
+ /**
4
+ * Give the possibility to override a url for a service
5
+ * Manipulate the service url or return default (resolvedLocation)
6
+ * */
7
+ getUrl: (serviceId: guid, resolvedLocation: string, useHttpsSchema: boolean, type: ServiceLocatorUrlType) => string;
8
+ }
9
+ export declare class ServiceLocator {
10
+ private static externalServiceProvider;
11
+ private static serviceDnsMapping;
12
+ /**
13
+ * Set a new service provider
14
+ * Null resets to default
15
+ */
16
+ static overrideServiceProvider: (provider: IServiceLocationProvider) => void;
17
+ static getUrl: (serviceId: guid, useHttpsSchema?: boolean, type?: ServiceLocatorUrlType, allowExternalServiceProvider?: boolean) => string;
18
+ static hasValidServiceUrl: (url: string) => boolean;
19
+ static replaceTokenWithDns: (content: string) => string;
20
+ static replaceDnsWithToken: (content: string) => string;
21
+ static generateToken: (serviceId: guid) => string;
22
+ }
@@ -1 +1,2 @@
1
1
  export * from "./DefineService";
2
+ export * from "./ServiceLocator";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.445-dev",
4
+ "version": "8.0.447-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"