@brimble/models 3.8.118 → 3.8.120

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/index.d.ts CHANGED
@@ -68,6 +68,8 @@ export { default as Sandbox } from "./sandbox";
68
68
  export { default as SandboxActivity } from "./sandbox-activity";
69
69
  export { default as SandboxImage } from "./sandbox-image";
70
70
  export { default as SandboxSize } from "./sandbox-size";
71
+ export { default as SandboxWarmPool } from "./sandbox-warm-pool";
72
+ export { default as SandboxWarmPoolMember } from "./sandbox-warm-pool-member";
71
73
  export { default as SandboxSnapshot } from "./sandbox-snapshot";
72
74
  export { default as BackupHistory } from "./backup-history";
73
75
  export { default as RestoreHistory } from "./restore-history";
package/dist/index.js CHANGED
@@ -13,9 +13,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.CollabShareToken = exports.CollabSettings = exports.CollabIntegration = exports.CollabComment = exports.CollabAnnotation = exports.Provider = exports.Intention = exports.WebhookSetting = exports.WebhookEvent = exports.WebhookCategory = exports.DomainTransfer = exports.DomainRenewal = exports.LoadBalancerPort = exports.Settings = exports.Framework = exports.Volume = exports.Region = exports.ComputeChange = exports.AutoScalingGroup = exports.PlanConfiguration = exports.Liscense = exports.Job = exports.DbImage = exports.Wallet = exports.Server = exports.Card = exports.Subscription = exports.Log = exports.Role = exports.MemberPermission = exports.PaymentMethod = exports.Permission = exports.Member = exports.Team = exports.PlatformApiKey = exports.Token = exports.Env = exports.DnsChangeLog = exports.Dns = exports.Domain = exports.Integration = exports.Following = exports.Ratelimit = exports.ProjectNetworkSettings = exports.ProjectConnection = exports.Preview = exports.ProjectAnalytics = exports.DeletedProject = exports.Project = exports.User = void 0;
16
- exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.GIT_TYPE = exports.Ticket = exports.CouponRedemption = exports.Coupon = exports.QuestRewardIssuance = exports.QuestParticipation = exports.QuestCampaign = exports.StreakMilestone = exports.StreakDay = exports.StreakEvent = exports.Streak = exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucket = exports.IdempotencyRecord = exports.ObjectStorageUsageSegment = exports.PgBouncerUsageSegment = exports.VolumeUsageSegment = exports.SandboxUsageSegment = exports.SandboxSnapshotUsageSegment = exports.WorkerRun = exports.RestoreHistory = exports.BackupHistory = exports.SandboxSnapshot = exports.SandboxSize = exports.SandboxImage = exports.SandboxActivity = exports.Sandbox = exports.OwnershipTransfer = exports.ProjectDrainSubscription = exports.Drain = exports.AlertEvent = exports.AlertRuleStateModel = exports.AlertRule = exports.ActivityLog = exports.ProjectConfigFile = exports.EnvironmentVariable = exports.ProjectEnvironment = exports.CashierSubscriptionItem = exports.CashierSubscription = exports.ProjectTagAssignment = exports.Tag = exports.Invoice = exports.AppMessage = exports.CollabPushSubscription = void 0;
17
- exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.SCALING_SOURCE = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = void 0;
18
- exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunStatus = exports.BACKUP_STATUS = void 0;
16
+ exports.GIT_TYPE = exports.Ticket = exports.CouponRedemption = exports.Coupon = exports.QuestRewardIssuance = exports.QuestParticipation = exports.QuestCampaign = exports.StreakMilestone = exports.StreakDay = exports.StreakEvent = exports.Streak = exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucket = exports.IdempotencyRecord = exports.ObjectStorageUsageSegment = exports.PgBouncerUsageSegment = exports.VolumeUsageSegment = exports.SandboxUsageSegment = exports.SandboxSnapshotUsageSegment = exports.WorkerRun = exports.RestoreHistory = exports.BackupHistory = exports.SandboxSnapshot = exports.SandboxWarmPoolMember = exports.SandboxWarmPool = exports.SandboxSize = exports.SandboxImage = exports.SandboxActivity = exports.Sandbox = exports.OwnershipTransfer = exports.ProjectDrainSubscription = exports.Drain = exports.AlertEvent = exports.AlertRuleStateModel = exports.AlertRule = exports.ActivityLog = exports.ProjectConfigFile = exports.EnvironmentVariable = exports.ProjectEnvironment = exports.CashierSubscriptionItem = exports.CashierSubscription = exports.ProjectTagAssignment = exports.Tag = exports.Invoice = exports.AppMessage = exports.CollabPushSubscription = void 0;
17
+ exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.SCALING_SOURCE = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = void 0;
18
+ exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunStatus = exports.BACKUP_STATUS = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = void 0;
19
19
  var user_1 = require("./user");
20
20
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
21
21
  var project_1 = require("./project");
@@ -157,6 +157,10 @@ var sandbox_image_1 = require("./sandbox-image");
157
157
  Object.defineProperty(exports, "SandboxImage", { enumerable: true, get: function () { return __importDefault(sandbox_image_1).default; } });
158
158
  var sandbox_size_1 = require("./sandbox-size");
159
159
  Object.defineProperty(exports, "SandboxSize", { enumerable: true, get: function () { return __importDefault(sandbox_size_1).default; } });
160
+ var sandbox_warm_pool_1 = require("./sandbox-warm-pool");
161
+ Object.defineProperty(exports, "SandboxWarmPool", { enumerable: true, get: function () { return __importDefault(sandbox_warm_pool_1).default; } });
162
+ var sandbox_warm_pool_member_1 = require("./sandbox-warm-pool-member");
163
+ Object.defineProperty(exports, "SandboxWarmPoolMember", { enumerable: true, get: function () { return __importDefault(sandbox_warm_pool_member_1).default; } });
160
164
  var sandbox_snapshot_1 = require("./sandbox-snapshot");
161
165
  Object.defineProperty(exports, "SandboxSnapshot", { enumerable: true, get: function () { return __importDefault(sandbox_snapshot_1).default; } });
162
166
  var backup_history_1 = require("./backup-history");
@@ -0,0 +1,100 @@
1
+ import { Schema } from "mongoose";
2
+ declare const _default: import("mongoose").Model<{
3
+ [x: string]: NativeDate;
4
+ status: string;
5
+ pool_id: string;
6
+ job_id: string;
7
+ alloc_id: string;
8
+ node_id: string;
9
+ }, {}, {}, {
10
+ id: string;
11
+ }, import("mongoose").Document<unknown, {}, {
12
+ [x: string]: NativeDate;
13
+ status: string;
14
+ pool_id: string;
15
+ job_id: string;
16
+ alloc_id: string;
17
+ node_id: string;
18
+ }, {
19
+ id: string;
20
+ }, {
21
+ timestamps: {
22
+ createdAt: string;
23
+ updatedAt: false;
24
+ };
25
+ }> & Omit<{
26
+ [x: string]: NativeDate;
27
+ status: string;
28
+ pool_id: string;
29
+ job_id: string;
30
+ alloc_id: string;
31
+ node_id: string;
32
+ } & {
33
+ _id: import("mongoose").Types.ObjectId;
34
+ } & {
35
+ __v: number;
36
+ }, "id"> & {
37
+ id: string;
38
+ }, Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
39
+ timestamps: {
40
+ createdAt: string;
41
+ updatedAt: false;
42
+ };
43
+ }, {
44
+ [x: string]: NativeDate;
45
+ status: string;
46
+ pool_id: string;
47
+ job_id: string;
48
+ alloc_id: string;
49
+ node_id: string;
50
+ }, import("mongoose").Document<unknown, {}, {
51
+ [x: string]: NativeDate;
52
+ status: string;
53
+ pool_id: string;
54
+ job_id: string;
55
+ alloc_id: string;
56
+ node_id: string;
57
+ }, {
58
+ id: string;
59
+ }, Omit<import("mongoose").DefaultSchemaOptions, "timestamps"> & {
60
+ timestamps: {
61
+ createdAt: string;
62
+ updatedAt: false;
63
+ };
64
+ }> & Omit<{
65
+ [x: string]: NativeDate;
66
+ status: string;
67
+ pool_id: string;
68
+ job_id: string;
69
+ alloc_id: string;
70
+ node_id: string;
71
+ } & {
72
+ _id: import("mongoose").Types.ObjectId;
73
+ } & {
74
+ __v: number;
75
+ }, "id"> & {
76
+ id: string;
77
+ }, unknown, {
78
+ [x: string]: NativeDate;
79
+ status: string;
80
+ pool_id: string;
81
+ job_id: string;
82
+ alloc_id: string;
83
+ node_id: string;
84
+ } & {
85
+ _id: import("mongoose").Types.ObjectId;
86
+ } & {
87
+ __v: number;
88
+ }>, {
89
+ [x: string]: NativeDate;
90
+ status: string;
91
+ pool_id: string;
92
+ job_id: string;
93
+ alloc_id: string;
94
+ node_id: string;
95
+ } & {
96
+ _id: import("mongoose").Types.ObjectId;
97
+ } & {
98
+ __v: number;
99
+ }>;
100
+ export default _default;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const sandboxWarmPoolMemberSchema = new mongoose_1.Schema({
5
+ pool_id: { type: String, required: true, index: true },
6
+ job_id: { type: String, required: true, unique: true },
7
+ alloc_id: { type: String, required: true },
8
+ node_id: { type: String, default: "" },
9
+ status: { type: String, required: true, default: "ready" },
10
+ }, { timestamps: { createdAt: "created_at", updatedAt: false } });
11
+ sandboxWarmPoolMemberSchema.index({ pool_id: 1, status: 1 });
12
+ exports.default = (0, mongoose_1.model)("SandboxWarmPoolMember", sandboxWarmPoolMemberSchema, "sandbox_warm_pool_members");
@@ -0,0 +1,135 @@
1
+ import { Schema } from "mongoose";
2
+ declare const _default: import("mongoose").Model<{
3
+ [x: string]: NativeDate;
4
+ _id: string;
5
+ size: string;
6
+ region: string;
7
+ template: string;
8
+ cpu_mhz: number;
9
+ mem_mb: number;
10
+ digest: string;
11
+ image_tag: string;
12
+ target_count: number;
13
+ }, {}, {}, {
14
+ id: string;
15
+ }, import("mongoose").Document<unknown, {}, {
16
+ [x: string]: NativeDate;
17
+ _id: string;
18
+ size: string;
19
+ region: string;
20
+ template: string;
21
+ cpu_mhz: number;
22
+ mem_mb: number;
23
+ digest: string;
24
+ image_tag: string;
25
+ target_count: number;
26
+ }, {
27
+ id: string;
28
+ }, {
29
+ timestamps: {
30
+ createdAt: string;
31
+ updatedAt: string;
32
+ };
33
+ _id: false;
34
+ }> & Omit<{
35
+ [x: string]: NativeDate;
36
+ _id: string;
37
+ size: string;
38
+ region: string;
39
+ template: string;
40
+ cpu_mhz: number;
41
+ mem_mb: number;
42
+ digest: string;
43
+ image_tag: string;
44
+ target_count: number;
45
+ } & Required<{
46
+ _id: string;
47
+ }> & {
48
+ __v: number;
49
+ }, "id"> & {
50
+ id: string;
51
+ }, Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
52
+ timestamps: {
53
+ createdAt: string;
54
+ updatedAt: string;
55
+ };
56
+ _id: false;
57
+ }, {
58
+ [x: string]: NativeDate;
59
+ _id: string;
60
+ size: string;
61
+ region: string;
62
+ template: string;
63
+ cpu_mhz: number;
64
+ mem_mb: number;
65
+ digest: string;
66
+ image_tag: string;
67
+ target_count: number;
68
+ }, import("mongoose").Document<unknown, {}, {
69
+ [x: string]: NativeDate;
70
+ _id: string;
71
+ size: string;
72
+ region: string;
73
+ template: string;
74
+ cpu_mhz: number;
75
+ mem_mb: number;
76
+ digest: string;
77
+ image_tag: string;
78
+ target_count: number;
79
+ }, {
80
+ id: string;
81
+ }, Omit<import("mongoose").DefaultSchemaOptions, "_id" | "timestamps"> & {
82
+ timestamps: {
83
+ createdAt: string;
84
+ updatedAt: string;
85
+ };
86
+ _id: false;
87
+ }> & Omit<{
88
+ [x: string]: NativeDate;
89
+ _id: string;
90
+ size: string;
91
+ region: string;
92
+ template: string;
93
+ cpu_mhz: number;
94
+ mem_mb: number;
95
+ digest: string;
96
+ image_tag: string;
97
+ target_count: number;
98
+ } & Required<{
99
+ _id: string;
100
+ }> & {
101
+ __v: number;
102
+ }, "id"> & {
103
+ id: string;
104
+ }, unknown, {
105
+ [x: string]: NativeDate;
106
+ _id: string;
107
+ size: string;
108
+ region: string;
109
+ template: string;
110
+ cpu_mhz: number;
111
+ mem_mb: number;
112
+ digest: string;
113
+ image_tag: string;
114
+ target_count: number;
115
+ } & Required<{
116
+ _id: string;
117
+ }> & {
118
+ __v: number;
119
+ }>, {
120
+ [x: string]: NativeDate;
121
+ _id: string;
122
+ size: string;
123
+ region: string;
124
+ template: string;
125
+ cpu_mhz: number;
126
+ mem_mb: number;
127
+ digest: string;
128
+ image_tag: string;
129
+ target_count: number;
130
+ } & Required<{
131
+ _id: string;
132
+ }> & {
133
+ __v: number;
134
+ }>;
135
+ export default _default;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const sandboxWarmPoolSchema = new mongoose_1.Schema({
5
+ _id: { type: String, required: true },
6
+ digest: { type: String, required: true, unique: true },
7
+ size: { type: String, required: true },
8
+ template: { type: String, required: true },
9
+ region: { type: String, required: true },
10
+ cpu_mhz: { type: Number, required: true },
11
+ mem_mb: { type: Number, required: true },
12
+ image_tag: { type: String, default: "" },
13
+ target_count: { type: Number, required: true },
14
+ }, { timestamps: { createdAt: "created_at", updatedAt: "updated_at" }, _id: false });
15
+ sandboxWarmPoolSchema.index({ region: 1, size: 1 });
16
+ exports.default = (0, mongoose_1.model)("SandboxWarmPool", sandboxWarmPoolSchema, "sandbox_warm_pools");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.118",
3
+ "version": "3.8.120",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",