@brimble/models 3.8.10 → 3.8.11
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/enum/index.d.ts +2 -1
- package/dist/enum/index.js +1 -0
- package/dist/sandbox.js +16 -0
- package/dist/types/sandbox.d.ts +4 -0
- package/enum/index.ts +1 -0
- package/package.json +1 -1
- package/sandbox.ts +16 -0
- package/types/sandbox.ts +4 -0
package/dist/enum/index.d.ts
CHANGED
package/dist/enum/index.js
CHANGED
|
@@ -277,4 +277,5 @@ var SANDBOX_DESTROY_REASON;
|
|
|
277
277
|
SANDBOX_DESTROY_REASON["IDLE_TTL"] = "idle_ttl";
|
|
278
278
|
SANDBOX_DESTROY_REASON["MAX_LIFETIME"] = "max_lifetime";
|
|
279
279
|
SANDBOX_DESTROY_REASON["FAILED"] = "failed";
|
|
280
|
+
SANDBOX_DESTROY_REASON["ONE_SHOT_STOPPED"] = "one_shot_stopped";
|
|
280
281
|
})(SANDBOX_DESTROY_REASON = exports.SANDBOX_DESTROY_REASON || (exports.SANDBOX_DESTROY_REASON = {}));
|
package/dist/sandbox.js
CHANGED
|
@@ -78,6 +78,22 @@ const sandboxSchema = new mongoose_1.Schema({
|
|
|
78
78
|
enum: Object.values(enum_1.SANDBOX_DESTROY_REASON),
|
|
79
79
|
default: null,
|
|
80
80
|
},
|
|
81
|
+
auto_destroy: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: false,
|
|
84
|
+
},
|
|
85
|
+
destroy_timeout: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: null,
|
|
88
|
+
},
|
|
89
|
+
one_shot: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false,
|
|
92
|
+
},
|
|
93
|
+
block_outbound: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: false,
|
|
96
|
+
},
|
|
81
97
|
isDeleted: {
|
|
82
98
|
type: Boolean,
|
|
83
99
|
default: false,
|
package/dist/types/sandbox.d.ts
CHANGED
|
@@ -26,5 +26,9 @@ export interface ISandbox extends Document {
|
|
|
26
26
|
expires_at: Date;
|
|
27
27
|
destroyed_at: Date | null;
|
|
28
28
|
destroy_reason: SANDBOX_DESTROY_REASON | null;
|
|
29
|
+
auto_destroy: boolean;
|
|
30
|
+
destroy_timeout: string | null;
|
|
31
|
+
one_shot: boolean;
|
|
32
|
+
block_outbound: boolean;
|
|
29
33
|
isDeleted: boolean;
|
|
30
34
|
}
|
package/enum/index.ts
CHANGED
package/package.json
CHANGED
package/sandbox.ts
CHANGED
|
@@ -78,6 +78,22 @@ const sandboxSchema: Schema = new Schema({
|
|
|
78
78
|
enum: Object.values(SANDBOX_DESTROY_REASON),
|
|
79
79
|
default: null,
|
|
80
80
|
},
|
|
81
|
+
auto_destroy: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: false,
|
|
84
|
+
},
|
|
85
|
+
destroy_timeout: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: null,
|
|
88
|
+
},
|
|
89
|
+
one_shot: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false,
|
|
92
|
+
},
|
|
93
|
+
block_outbound: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: false,
|
|
96
|
+
},
|
|
81
97
|
isDeleted: {
|
|
82
98
|
type: Boolean,
|
|
83
99
|
default: false,
|
package/types/sandbox.ts
CHANGED
|
@@ -28,5 +28,9 @@ export interface ISandbox extends Document {
|
|
|
28
28
|
expires_at: Date;
|
|
29
29
|
destroyed_at: Date | null;
|
|
30
30
|
destroy_reason: SANDBOX_DESTROY_REASON | null;
|
|
31
|
+
auto_destroy: boolean;
|
|
32
|
+
destroy_timeout: string | null;
|
|
33
|
+
one_shot: boolean;
|
|
34
|
+
block_outbound: boolean;
|
|
31
35
|
isDeleted: boolean;
|
|
32
36
|
}
|