@brimble/models 3.8.112 → 3.8.114
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 +7 -0
- package/dist/enum/index.js +9 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +8 -3
- package/dist/region.js +10 -0
- package/dist/ticket.d.ts +9 -0
- package/dist/ticket.js +14 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/region.d.ts +11 -0
- package/dist/types/ticket.d.ts +14 -0
- package/dist/types/ticket.js +2 -0
- package/dist/types/worker-run.d.ts +17 -0
- package/dist/types/worker-run.js +2 -0
- package/dist/worker-run.d.ts +9 -0
- package/dist/worker-run.js +61 -0
- package/package.json +1 -1
package/dist/enum/index.d.ts
CHANGED
|
@@ -338,6 +338,13 @@ export declare enum BACKUP_STATUS {
|
|
|
338
338
|
FAILED = "failed",
|
|
339
339
|
DELETED = "deleted"
|
|
340
340
|
}
|
|
341
|
+
export declare enum WorkerRunStatus {
|
|
342
|
+
Pending = "pending",
|
|
343
|
+
Running = "running",
|
|
344
|
+
Complete = "complete",
|
|
345
|
+
Failed = "failed",
|
|
346
|
+
Lost = "lost"
|
|
347
|
+
}
|
|
341
348
|
export declare enum RESTORE_STATUS {
|
|
342
349
|
PENDING = "pending",
|
|
343
350
|
RUNNING = "running",
|
package/dist/enum/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
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.SCALING_SOURCE = exports.SCALING_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.PERMISSION_TYPE = exports.ROLES = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.SERVER_STATUS = exports.OAUTH_PERMISSIONS = exports.SUBSCRIPTION_PLAN_TYPE = 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.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.CONFIG_FILE_VISIBILITY = exports.ENVIRONMENT = exports.REQUEST_TYPE = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
|
|
4
|
-
exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.WorkbenchMode = 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.BACKUP_STATUS = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = void 0;
|
|
4
|
+
exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.WorkbenchMode = 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 = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = void 0;
|
|
5
5
|
var GIT_TYPE;
|
|
6
6
|
(function (GIT_TYPE) {
|
|
7
7
|
GIT_TYPE["GITHUB"] = "GITHUB";
|
|
@@ -399,6 +399,14 @@ var BACKUP_STATUS;
|
|
|
399
399
|
BACKUP_STATUS["FAILED"] = "failed";
|
|
400
400
|
BACKUP_STATUS["DELETED"] = "deleted";
|
|
401
401
|
})(BACKUP_STATUS || (exports.BACKUP_STATUS = BACKUP_STATUS = {}));
|
|
402
|
+
var WorkerRunStatus;
|
|
403
|
+
(function (WorkerRunStatus) {
|
|
404
|
+
WorkerRunStatus["Pending"] = "pending";
|
|
405
|
+
WorkerRunStatus["Running"] = "running";
|
|
406
|
+
WorkerRunStatus["Complete"] = "complete";
|
|
407
|
+
WorkerRunStatus["Failed"] = "failed";
|
|
408
|
+
WorkerRunStatus["Lost"] = "lost";
|
|
409
|
+
})(WorkerRunStatus || (exports.WorkerRunStatus = WorkerRunStatus = {}));
|
|
402
410
|
var RESTORE_STATUS;
|
|
403
411
|
(function (RESTORE_STATUS) {
|
|
404
412
|
RESTORE_STATUS["PENDING"] = "pending";
|
package/dist/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export { default as SandboxImage } from "./sandbox-image";
|
|
|
70
70
|
export { default as SandboxSnapshot } from "./sandbox-snapshot";
|
|
71
71
|
export { default as BackupHistory } from "./backup-history";
|
|
72
72
|
export { default as RestoreHistory } from "./restore-history";
|
|
73
|
+
export { default as WorkerRun } from "./worker-run";
|
|
73
74
|
export { default as SandboxSnapshotUsageSegment } from "./sandbox-snapshot-usage-segment";
|
|
74
75
|
export { default as SandboxUsageSegment } from "./sandbox-usage-segment";
|
|
75
76
|
export { default as VolumeUsageSegment } from "./volume-usage-segment";
|
|
@@ -86,8 +87,9 @@ export { default as QuestParticipation } from "./quest-participation";
|
|
|
86
87
|
export { default as QuestRewardIssuance } from "./quest-reward-issuance";
|
|
87
88
|
export { default as Coupon } from "./coupon";
|
|
88
89
|
export { default as CouponRedemption } from "./coupon-redemption";
|
|
89
|
-
export {
|
|
90
|
-
export {
|
|
90
|
+
export { default as Ticket } from "./ticket";
|
|
91
|
+
export { IUser, IGit, IProject, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IPlatformApiKey, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IPaymentMethod, IDns, IDnsChangeLog, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IProjectConfigFile, IActivityLog, IAlertRule, IAlertRuleState, IAlertEvent, IAlertNotificationResult, IDrain, IProjectDrainSubscription, IOwnershipTransfer, ISandbox, ISandboxSpecs, ISandboxActivity, ISandboxImage, ISandboxSnapshot, IBackupHistory, IRestoreHistory, IWorkerRun, ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, IVolumeUsageSegment, IVolumeUsageSegmentCosts, IPgBouncerUsageSegment, IPgBouncerUsageSegmentCosts, IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, IIdempotencyRecord, IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, IStreak, IStreakMilestoneRef, IStreakEvent, IStreakDay, IStreakMilestone, IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, IQuestParticipation, IQuestCriterionProgress, IQuestRewardIssuance, IQuestIssuedReward, ICoupon, ICouponRedemption, ITicket, } from "./types";
|
|
92
|
+
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, AlertMetric, AlertCondition, AlertRuleState, AlertChannelMode, AlertEventStatus, DrainType, DrainStatus, LogSource, DrainEventType, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, DNS_CHANGE_TYPE, DNS_CHANGE_SOURCE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, SCALING_SOURCE, DatabaseEngine, JobStatus, LicenseStatus, REGION_CONTINENT, VOLUME_BACKEND, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, DomainTransferProvider, DomainTransferDirection, DomainTransferStatus, NomadDeploymentStatus, COLLAB_ANNOTATION_STATUS, COLLAB_INTEGRATION_TYPE, COLLAB_THEME, COLLAB_TOOLBAR_POSITION, INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE, SANDBOX_TEMPLATE, SANDBOX_STATUS, SANDBOX_DESTROY_REASON, SANDBOX_EGRESS_MODE, SANDBOX_SNAPSHOT_STATUS, BACKUP_STATUS, WorkerRunStatus, RESTORE_STATUS, StorageBucketStatus, StorageUploadStatus, StorageTokenStatus, PlatformApiKeyStatus, StorageCredentialRole, StorageCredentialStatus, StorageMigrationStatus, XFrameOptions, XContentTypeOptions, XRobotsTag, QualifyingActionType, MilestoneType, QUEST_COUNTABLE_MILESTONES, ACTION_TO_MILESTONE, EligibilityType, RewardType, QuestRewardStatus, QuestCriterionType, QuestEntity, QuestRequirementType, QUEST_CLAIM_REQUIREMENTS, QUEST_TARGETLESS_REQUIREMENTS, WorkbenchMode, CouponDiscountType, CouponScope, CouponRedemptionStatus, CONFIG_FILE_VISIBILITY, } from "./enum";
|
|
91
93
|
import mongoose from "mongoose";
|
|
92
94
|
export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
|
|
93
95
|
export declare const db: mongoose.Connection;
|
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.
|
|
17
|
-
exports.
|
|
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 = void 0;
|
|
16
|
+
exports.OAUTH_PERMISSIONS = 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.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.BACKUP_STATUS = 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 = 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 = 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");
|
|
@@ -161,6 +161,8 @@ var backup_history_1 = require("./backup-history");
|
|
|
161
161
|
Object.defineProperty(exports, "BackupHistory", { enumerable: true, get: function () { return __importDefault(backup_history_1).default; } });
|
|
162
162
|
var restore_history_1 = require("./restore-history");
|
|
163
163
|
Object.defineProperty(exports, "RestoreHistory", { enumerable: true, get: function () { return __importDefault(restore_history_1).default; } });
|
|
164
|
+
var worker_run_1 = require("./worker-run");
|
|
165
|
+
Object.defineProperty(exports, "WorkerRun", { enumerable: true, get: function () { return __importDefault(worker_run_1).default; } });
|
|
164
166
|
var sandbox_snapshot_usage_segment_1 = require("./sandbox-snapshot-usage-segment");
|
|
165
167
|
Object.defineProperty(exports, "SandboxSnapshotUsageSegment", { enumerable: true, get: function () { return __importDefault(sandbox_snapshot_usage_segment_1).default; } });
|
|
166
168
|
var sandbox_usage_segment_1 = require("./sandbox-usage-segment");
|
|
@@ -198,6 +200,8 @@ var coupon_1 = require("./coupon");
|
|
|
198
200
|
Object.defineProperty(exports, "Coupon", { enumerable: true, get: function () { return __importDefault(coupon_1).default; } });
|
|
199
201
|
var coupon_redemption_1 = require("./coupon-redemption");
|
|
200
202
|
Object.defineProperty(exports, "CouponRedemption", { enumerable: true, get: function () { return __importDefault(coupon_redemption_1).default; } });
|
|
203
|
+
var ticket_1 = require("./ticket");
|
|
204
|
+
Object.defineProperty(exports, "Ticket", { enumerable: true, get: function () { return __importDefault(ticket_1).default; } });
|
|
201
205
|
var enum_1 = require("./enum");
|
|
202
206
|
Object.defineProperty(exports, "GIT_TYPE", { enumerable: true, get: function () { return enum_1.GIT_TYPE; } });
|
|
203
207
|
Object.defineProperty(exports, "INTEGRATION_TYPES", { enumerable: true, get: function () { return enum_1.INTEGRATION_TYPES; } });
|
|
@@ -253,6 +257,7 @@ Object.defineProperty(exports, "SANDBOX_DESTROY_REASON", { enumerable: true, get
|
|
|
253
257
|
Object.defineProperty(exports, "SANDBOX_EGRESS_MODE", { enumerable: true, get: function () { return enum_1.SANDBOX_EGRESS_MODE; } });
|
|
254
258
|
Object.defineProperty(exports, "SANDBOX_SNAPSHOT_STATUS", { enumerable: true, get: function () { return enum_1.SANDBOX_SNAPSHOT_STATUS; } });
|
|
255
259
|
Object.defineProperty(exports, "BACKUP_STATUS", { enumerable: true, get: function () { return enum_1.BACKUP_STATUS; } });
|
|
260
|
+
Object.defineProperty(exports, "WorkerRunStatus", { enumerable: true, get: function () { return enum_1.WorkerRunStatus; } });
|
|
256
261
|
Object.defineProperty(exports, "RESTORE_STATUS", { enumerable: true, get: function () { return enum_1.RESTORE_STATUS; } });
|
|
257
262
|
Object.defineProperty(exports, "StorageBucketStatus", { enumerable: true, get: function () { return enum_1.StorageBucketStatus; } });
|
|
258
263
|
Object.defineProperty(exports, "StorageUploadStatus", { enumerable: true, get: function () { return enum_1.StorageUploadStatus; } });
|
package/dist/region.js
CHANGED
|
@@ -22,5 +22,15 @@ const regionSchema = new mongoose_1.Schema({
|
|
|
22
22
|
enum: Object.values(enum_1.VOLUME_BACKEND),
|
|
23
23
|
required: false,
|
|
24
24
|
},
|
|
25
|
+
csi: {
|
|
26
|
+
plugin_id: { type: String },
|
|
27
|
+
topology_path: { type: String },
|
|
28
|
+
require_topology: { type: Boolean },
|
|
29
|
+
availability_zone: { type: String },
|
|
30
|
+
parameters: { type: mongoose_1.Schema.Types.Mixed },
|
|
31
|
+
parameters_env: { type: mongoose_1.Schema.Types.Mixed },
|
|
32
|
+
fs_type: { type: String },
|
|
33
|
+
attachment_modes: [{ type: String }],
|
|
34
|
+
},
|
|
25
35
|
});
|
|
26
36
|
exports.default = (0, mongoose_1.model)("Region", regionSchema, "regions");
|
package/dist/ticket.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ITicket } from "./types";
|
|
2
|
+
declare const _default: import("mongoose").Model<ITicket, {}, {}, {}, import("mongoose").Document<unknown, {}, ITicket, {}, import("mongoose").DefaultSchemaOptions> & ITicket & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, ITicket>;
|
|
9
|
+
export default _default;
|
package/dist/ticket.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const ticketSchema = new mongoose_1.Schema({
|
|
5
|
+
airtable_id: { type: String, required: true, unique: true, index: true },
|
|
6
|
+
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "User", required: true, index: true },
|
|
7
|
+
email: { type: String, required: true },
|
|
8
|
+
subject: { type: String, required: true },
|
|
9
|
+
message: { type: String, required: true },
|
|
10
|
+
status: { type: String, required: true, default: "Open", index: true },
|
|
11
|
+
attachment_count: { type: Number, default: 0 },
|
|
12
|
+
resolved_at: { type: Date, default: null },
|
|
13
|
+
}, { timestamps: true, collection: "tickets" });
|
|
14
|
+
exports.default = (0, mongoose_1.model)("Ticket", ticketSchema);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export type { ISandboxImage } from "./sandbox-image";
|
|
|
71
71
|
export type { ISandboxSnapshot } from "./sandbox-snapshot";
|
|
72
72
|
export type { IBackupHistory } from "./backup-history";
|
|
73
73
|
export type { IRestoreHistory } from "./restore-history";
|
|
74
|
+
export type { IWorkerRun } from "./worker-run";
|
|
74
75
|
export type { ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, } from "./sandbox-snapshot-usage-segment";
|
|
75
76
|
export type { ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, } from "./sandbox-usage-segment";
|
|
76
77
|
export type { IVolumeUsageSegment, IVolumeUsageSegmentCosts, } from "./volume-usage-segment";
|
|
@@ -87,3 +88,4 @@ export type { IQuestRewardIssuance, IQuestIssuedReward, } from "./quest-reward-i
|
|
|
87
88
|
export type { IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition } from "./storage";
|
|
88
89
|
export type { ICoupon } from "./coupon";
|
|
89
90
|
export type { ICouponRedemption } from "./coupon-redemption";
|
|
91
|
+
export type { ITicket } from "./ticket";
|
package/dist/types/region.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { Types, Document } from "mongoose";
|
|
2
2
|
import { REGION_CONTINENT, VOLUME_BACKEND } from "../enum";
|
|
3
3
|
export type RegionType = "web" | "database" | "sandbox";
|
|
4
|
+
export interface IRegionCsiConfig {
|
|
5
|
+
plugin_id?: string;
|
|
6
|
+
topology_path?: string;
|
|
7
|
+
require_topology?: boolean;
|
|
8
|
+
availability_zone?: string;
|
|
9
|
+
parameters?: Record<string, string>;
|
|
10
|
+
parameters_env?: Record<string, string>;
|
|
11
|
+
fs_type?: string;
|
|
12
|
+
attachment_modes?: string[];
|
|
13
|
+
}
|
|
4
14
|
export interface IRegion extends Document {
|
|
5
15
|
_id: Types.ObjectId;
|
|
6
16
|
name: string;
|
|
@@ -18,4 +28,5 @@ export interface IRegion extends Document {
|
|
|
18
28
|
type?: RegionType;
|
|
19
29
|
ceph_cluster_id?: string;
|
|
20
30
|
volume_backend?: VOLUME_BACKEND;
|
|
31
|
+
csi?: IRegionCsiConfig;
|
|
21
32
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Document, Types } from "mongoose";
|
|
2
|
+
import { IUser } from "./user";
|
|
3
|
+
export interface ITicket extends Document {
|
|
4
|
+
airtable_id: string;
|
|
5
|
+
user_id: IUser | Types.ObjectId;
|
|
6
|
+
email: string;
|
|
7
|
+
subject: string;
|
|
8
|
+
message: string;
|
|
9
|
+
status: string;
|
|
10
|
+
attachment_count: number;
|
|
11
|
+
resolved_at?: Date | null;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Document, Types } from "mongoose";
|
|
2
|
+
import { WorkerRunStatus } from "../enum";
|
|
3
|
+
export interface IWorkerRun extends Document {
|
|
4
|
+
project: Types.ObjectId;
|
|
5
|
+
user_id: Types.ObjectId;
|
|
6
|
+
team: Types.ObjectId | null;
|
|
7
|
+
parentJobId: string;
|
|
8
|
+
childJobId: string;
|
|
9
|
+
namespace: string;
|
|
10
|
+
status: WorkerRunStatus;
|
|
11
|
+
allocationId: string | null;
|
|
12
|
+
startedAt: Date | null;
|
|
13
|
+
finishedAt: Date | null;
|
|
14
|
+
syncedAt: Date;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IWorkerRun } from "./types/worker-run";
|
|
2
|
+
declare const _default: import("mongoose").Model<IWorkerRun, {}, {}, {}, import("mongoose").Document<unknown, {}, IWorkerRun, {}, import("mongoose").DefaultSchemaOptions> & IWorkerRun & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IWorkerRun>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("./enum");
|
|
5
|
+
const workerRunSchema = new mongoose_1.Schema({
|
|
6
|
+
project: {
|
|
7
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
+
ref: "Project",
|
|
9
|
+
required: true,
|
|
10
|
+
index: true,
|
|
11
|
+
},
|
|
12
|
+
user_id: {
|
|
13
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
14
|
+
ref: "User",
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
team: {
|
|
18
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
19
|
+
ref: "Team",
|
|
20
|
+
default: null,
|
|
21
|
+
},
|
|
22
|
+
parentJobId: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
childJobId: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
namespace: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: true,
|
|
33
|
+
},
|
|
34
|
+
status: {
|
|
35
|
+
type: String,
|
|
36
|
+
enum: Object.values(enum_1.WorkerRunStatus),
|
|
37
|
+
required: true,
|
|
38
|
+
},
|
|
39
|
+
allocationId: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: null,
|
|
42
|
+
},
|
|
43
|
+
startedAt: {
|
|
44
|
+
type: Date,
|
|
45
|
+
default: null,
|
|
46
|
+
},
|
|
47
|
+
finishedAt: {
|
|
48
|
+
type: Date,
|
|
49
|
+
default: null,
|
|
50
|
+
},
|
|
51
|
+
syncedAt: {
|
|
52
|
+
type: Date,
|
|
53
|
+
required: true,
|
|
54
|
+
},
|
|
55
|
+
}, {
|
|
56
|
+
timestamps: true,
|
|
57
|
+
collection: "worker_runs",
|
|
58
|
+
});
|
|
59
|
+
workerRunSchema.index({ project: 1, childJobId: 1 }, { unique: true });
|
|
60
|
+
workerRunSchema.index({ project: 1, startedAt: -1 });
|
|
61
|
+
exports.default = (0, mongoose_1.model)("WorkerRun", workerRunSchema);
|