@omnia/fx-models 8.0.446-dev → 8.0.448-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 +0 -4
- package/Enums.js +1 -6
- package/ManifestIds.d.ts +0 -3
- package/ManifestIds.js +1 -7
- package/internal-do-not-import-from-here/shared/models/Enums.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/Enums.js +8 -0
- package/internal-do-not-import-from-here/shared/models/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/index.js +1 -0
- package/internal-do-not-import-from-here/shared/services/ServiceLocator.d.ts +22 -0
- package/internal-do-not-import-from-here/shared/services/index.d.ts +1 -0
- package/package.json +1 -1
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.
|
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";
|
package/ManifestIds.d.ts
CHANGED
@@ -2,9 +2,6 @@ import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/m
|
|
2
2
|
export declare class OmniaService {
|
3
3
|
static get Id(): guid;
|
4
4
|
}
|
5
|
-
export declare class CloudApiService {
|
6
|
-
static get Id(): guid;
|
7
|
-
}
|
8
5
|
export declare class AnalyticService {
|
9
6
|
static get Id(): guid;
|
10
7
|
}
|
package/ManifestIds.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AnalyticService = exports.
|
3
|
+
exports.AnalyticService = exports.OmniaService = void 0;
|
4
4
|
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
5
5
|
class OmniaService {
|
6
6
|
static get Id() {
|
@@ -8,12 +8,6 @@ class OmniaService {
|
|
8
8
|
}
|
9
9
|
}
|
10
10
|
exports.OmniaService = OmniaService;
|
11
|
-
class CloudApiService {
|
12
|
-
static get Id() {
|
13
|
-
return (0, models_1.guid)("55ad91b0-3d10-4d8d-b32c-3e1492776c73");
|
14
|
-
}
|
15
|
-
}
|
16
|
-
exports.CloudApiService = CloudApiService;
|
17
11
|
class AnalyticService {
|
18
12
|
static get Id() {
|
19
13
|
return (0, models_1.guid)("a6a9556c-26c7-45e3-b21b-3f163c6bd9a4");
|
@@ -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 = {}));
|
@@ -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
|
+
}
|