@omnia/tooling-composers 8.0.350-dev → 8.0.352-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/internal-do-not-import-from-here/ServiceComposer.d.ts +1 -1
- package/internal-do-not-import-from-here/ServiceComposer.js +2 -2
- package/internal-do-not-import-from-here/ServiceFeatureComposer.d.ts +2 -2
- package/internal-do-not-import-from-here/ServiceFeatureComposer.js +2 -2
- package/internal-do-not-import-from-here/ServiceFeatureRegistry.d.ts +3 -1
- package/internal-do-not-import-from-here/models/ServerManifests.d.ts +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import { ServiceOptions } from './models';
|
|
|
2
2
|
import { IWebAppServiceComposer } from './WebAppServiceComposer';
|
|
3
3
|
import { IWorkerServiceComposer } from './WorkerServiceComposer';
|
|
4
4
|
import { ICustomServiceComposer } from './CustomServiceComposer';
|
|
5
|
-
import { guid } from '
|
|
5
|
+
import { guid } from '../../fx-models';
|
|
6
6
|
export interface IRegisterService {
|
|
7
7
|
/** Specify service type for this omnia service project.
|
|
8
8
|
E.g. A service could be a worker, doing simple async jobs, worker queues etc
|
|
@@ -4,7 +4,7 @@ exports.ServiceComposer = void 0;
|
|
|
4
4
|
const WebAppServiceComposer_1 = require("./WebAppServiceComposer");
|
|
5
5
|
const WorkerServiceComposer_1 = require("./WorkerServiceComposer");
|
|
6
6
|
const CustomServiceComposer_1 = require("./CustomServiceComposer");
|
|
7
|
-
const
|
|
7
|
+
const models_1 = require("../../fx-models");
|
|
8
8
|
class ServiceComposer {
|
|
9
9
|
constructor(manifestId, manifestName, serviceInfo) {
|
|
10
10
|
// TODO wait hot reload update not execute composer two times
|
|
@@ -20,7 +20,7 @@ class ServiceComposer {
|
|
|
20
20
|
this.AsCustom = () => {
|
|
21
21
|
return new CustomServiceComposer_1.CustomServiceComposer(this.manifestId, this.manifestName, this.serviceInfo);
|
|
22
22
|
};
|
|
23
|
-
if (!(0,
|
|
23
|
+
if (!(0, models_1.isValidGuid)(this.manifestId)) {
|
|
24
24
|
throw new Error("Can't register service with id: " + this.manifestId + " must be a valid guid");
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { guid } from '
|
|
1
|
+
import { guid } from '../../fx-models';
|
|
2
2
|
import { IServiceManifestComposer } from './ServiceManifestComposer';
|
|
3
3
|
import { OnTheFlyServiceRequest, PersistentDiskResourceOption, ServiceFeatureOption, SqlElasticPoolResourceOption, SqlResourceOption } from './models/index';
|
|
4
4
|
export interface IServiceFeatureComposer extends Omit<IServiceManifestComposer<IServiceFeatureComposer>, "requireAzureAdAppPermissions" | "isOnTheFlyService"> {
|
|
@@ -8,7 +8,7 @@ export declare class ServiceFeatureComposer implements IServiceFeatureComposer {
|
|
|
8
8
|
private featureId;
|
|
9
9
|
private option;
|
|
10
10
|
constructor(featureId: guid, option: ServiceFeatureOption);
|
|
11
|
-
private AddFeature;
|
|
11
|
+
private readonly AddFeature;
|
|
12
12
|
/**
|
|
13
13
|
* Request an SQL database when feature activated
|
|
14
14
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ServiceFeatureComposer = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const models_1 = require("../../fx-models");
|
|
6
6
|
const AzureAdAppPermissionHelper_1 = require("./AzureAdAppPermissionHelper");
|
|
7
7
|
const ManifestRegistry_1 = require("./ManifestRegistry");
|
|
8
8
|
const ServiceFeatureRegistry_1 = require("./ServiceFeatureRegistry");
|
|
@@ -70,7 +70,7 @@ class ServiceFeatureComposer {
|
|
|
70
70
|
featureManifest.requestedOnTheFlyServices.push(onTheFlyService);
|
|
71
71
|
return this;
|
|
72
72
|
};
|
|
73
|
-
if (featureId ==
|
|
73
|
+
if (featureId == models_1.emptyGuid) {
|
|
74
74
|
throw new Error("Can't add feature with id: Guid.empty. See manifest file: " + ManifestRegistry_1.ManifestRegistry.getCurrentManifestPath());
|
|
75
75
|
}
|
|
76
76
|
if (ServiceFeatureRegistry_1.ServiceFeatureRegistry.FeatureExisted[featureId.toString()]) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ServiceFeatureManifest } from './models/index';
|
|
2
2
|
import { guid } from '../../fx-models';
|
|
3
3
|
export declare class ServiceFeatureRegistry {
|
|
4
|
-
|
|
4
|
+
static AddedFeatures: {
|
|
5
|
+
[uniqueId: string]: ServiceFeatureManifest;
|
|
6
|
+
};
|
|
5
7
|
static FeatureExisted(featureId: guid): boolean;
|
|
6
8
|
static AddFeatureManifest(featureManifest: ServiceFeatureManifest): void;
|
|
7
9
|
static GetFeatureManifest(featureId: guid): ServiceFeatureManifest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { guid } from
|
|
1
|
+
import { guid } from '../../../fx-models';
|
|
2
2
|
import { AzureAdAppPermissionInfo, AzureAdAppResourceAccessWithAlternate } from "../../../fx-models/AzureAdAppPermissions";
|
|
3
3
|
import { AppCategories, OmniaBackendRuntimes, OmniaRoleTypes, PersistentDiskTypes } from "../../../fx-models/Enums";
|
|
4
4
|
import { FeatureUIOption, IFeatureConfiguration } from '../../../fx-models/Feature';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/tooling-composers",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.352-dev",
|
|
5
5
|
"description": "Provide tooling to work with manifest things.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Omnia Digital Workplace AB",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx-models": "8.0.
|
|
23
|
-
"@omnia/tooling": "8.0.
|
|
22
|
+
"@omnia/fx-models": "8.0.352-dev",
|
|
23
|
+
"@omnia/tooling": "8.0.352-dev",
|
|
24
24
|
"deep-extend": "0.6.0",
|
|
25
25
|
"fs-extra": "11.1.0",
|
|
26
26
|
"del": "6.0.0",
|