@brimble/models 3.1.2 → 3.1.3
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/dist/framework.js +6 -0
- package/dist/types/framework.d.ts +2 -0
- package/framework.ts +6 -0
- package/package.json +1 -1
- package/types/framework.ts +2 -0
package/dist/framework.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("./enum");
|
|
4
5
|
const frameworkSchema = new mongoose_1.Schema({
|
|
5
6
|
name: {
|
|
6
7
|
type: String,
|
|
@@ -47,6 +48,11 @@ const frameworkSchema = new mongoose_1.Schema({
|
|
|
47
48
|
type: Array,
|
|
48
49
|
required: false
|
|
49
50
|
},
|
|
51
|
+
type: {
|
|
52
|
+
type: String,
|
|
53
|
+
enum: Object.values(enum_1.FrameworkApplicationType),
|
|
54
|
+
required: true,
|
|
55
|
+
},
|
|
50
56
|
settings: {
|
|
51
57
|
installCommand: {
|
|
52
58
|
type: String,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
|
+
import { FrameworkApplicationType } from "../enum";
|
|
2
3
|
export interface IFramework extends Document {
|
|
3
4
|
name: string;
|
|
4
5
|
slug: string;
|
|
@@ -11,6 +12,7 @@ export interface IFramework extends Document {
|
|
|
11
12
|
envPrefix?: string;
|
|
12
13
|
detector: string;
|
|
13
14
|
file_detectors: string[];
|
|
15
|
+
type: FrameworkApplicationType;
|
|
14
16
|
settings: {
|
|
15
17
|
installCommand?: string;
|
|
16
18
|
startCommand?: string;
|
package/framework.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { model, Schema } from "mongoose";
|
|
2
2
|
import { IFramework } from "./types";
|
|
3
|
+
import { FrameworkApplicationType } from "./enum";
|
|
3
4
|
|
|
4
5
|
const frameworkSchema: Schema = new Schema(
|
|
5
6
|
{
|
|
@@ -48,6 +49,11 @@ const frameworkSchema: Schema = new Schema(
|
|
|
48
49
|
type: Array,
|
|
49
50
|
required: false
|
|
50
51
|
},
|
|
52
|
+
type: {
|
|
53
|
+
type: String,
|
|
54
|
+
enum: Object.values(FrameworkApplicationType),
|
|
55
|
+
required: true,
|
|
56
|
+
},
|
|
51
57
|
settings: {
|
|
52
58
|
installCommand: {
|
|
53
59
|
type: String,
|
package/package.json
CHANGED
package/types/framework.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
|
+
import { FrameworkApplicationType } from "../enum";
|
|
2
3
|
|
|
3
4
|
export interface IFramework extends Document {
|
|
4
5
|
name: string;
|
|
@@ -12,6 +13,7 @@ export interface IFramework extends Document {
|
|
|
12
13
|
envPrefix?: string;
|
|
13
14
|
detector: string;
|
|
14
15
|
file_detectors: string[];
|
|
16
|
+
type: FrameworkApplicationType;
|
|
15
17
|
settings: {
|
|
16
18
|
installCommand?: string;
|
|
17
19
|
startCommand?: string;
|