@brimble/models 3.8.233 → 3.8.235
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 +5 -5
- package/dist/enum/index.js +8 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/project/index.js +4 -0
- package/dist/runtime-event.d.ts +9 -0
- package/dist/runtime-event.js +47 -0
- package/dist/sandbox-warm-pool-member.d.ts +8 -8
- package/dist/types/index.d.ts +1 -1
- package/dist/types/project/index.d.ts +1 -0
- package/dist/types/runtime-event.d.ts +13 -0
- package/package.json +1 -1
- package/dist/quality-connection.d.ts +0 -9
- package/dist/quality-connection.js +0 -33
- package/dist/types/quality-connection.d.ts +0 -19
- /package/dist/types/{quality-connection.js → runtime-event.js} +0 -0
package/dist/enum/index.d.ts
CHANGED
|
@@ -135,13 +135,17 @@ export declare enum AlertEventStatus {
|
|
|
135
135
|
Firing = "firing",
|
|
136
136
|
Resolved = "resolved"
|
|
137
137
|
}
|
|
138
|
+
export declare enum RuntimeEventType {
|
|
139
|
+
OomKilled = "oom_killed"
|
|
140
|
+
}
|
|
138
141
|
export declare enum IssueType {
|
|
139
142
|
BrokenEnvReference = "broken_env_reference",
|
|
140
143
|
RepeatedDeploymentFailures = "repeated_deployment_failures",
|
|
141
144
|
UnreachablePrivateDependency = "unreachable_private_dependency",
|
|
142
145
|
AppCrashing = "app_crashing",
|
|
143
146
|
DatabaseBackupFailing = "database_backup_failing",
|
|
144
|
-
DatabaseStorageAlmostFull = "database_storage_almost_full"
|
|
147
|
+
DatabaseStorageAlmostFull = "database_storage_almost_full",
|
|
148
|
+
OutOfMemory = "out_of_memory"
|
|
145
149
|
}
|
|
146
150
|
export declare enum IssueSeverity {
|
|
147
151
|
Warning = "warning",
|
|
@@ -720,10 +724,6 @@ export declare enum CloudServerProvisionStep {
|
|
|
720
724
|
Ready = "ready",
|
|
721
725
|
Failed = "failed"
|
|
722
726
|
}
|
|
723
|
-
export declare enum QUALITY_CONNECTION_STATUS {
|
|
724
|
-
Connected = "connected",
|
|
725
|
-
Disconnected = "disconnected"
|
|
726
|
-
}
|
|
727
727
|
export declare enum EMAIL_CATEGORY {
|
|
728
728
|
Account = "account",
|
|
729
729
|
Billing = "billing",
|
package/dist/enum/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.EMAIL_CATEGORY = exports.
|
|
3
|
+
exports.SCALING_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseInsightsScope = exports.HaMemberRole = exports.DatabasePasswordMode = exports.DatabasePasswordChangeMode = exports.DatabaseEngine = exports.ServiceType = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.ROLES = exports.DNS_MANAGED_BY = exports.EMAIL_FORWARD_STATUS = 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.IssueSeverity = exports.IssueType = exports.RuntimeEventType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.DatabaseProvisionStep = exports.DatabaseProvisionOperation = exports.DatabaseProvisionPhase = exports.PROJECT_STATUS = exports.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.CONFIG_FILE_VISIBILITY = exports.ENVIRONMENT = exports.TEAM_ACTIVATION_STATUS = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
|
|
4
|
+
exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.DatabaseUserStatus = exports.DatabaseUserPermission = 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.WorkerRunTrigger = exports.WorkerRunStatus = exports.BACKUP_DESTINATION_TYPE = 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.SCALING_SOURCE = void 0;
|
|
5
|
+
exports.EMAIL_CATEGORY = exports.CloudServerProvisionStep = exports.CloudServerProvisionOperation = exports.CloudServerProvisionPhase = exports.CLOUD_SERVER_BILLING_STATUS = exports.CLOUD_VOLUME_FILESYSTEM = exports.CLOUD_VOLUME_FORMAT_MOUNT = exports.CLOUD_SERVER_STATUS = exports.CLOUD_SERVER_KIND = exports.CLOUD_PROVIDER = exports.PaymentStatus = exports.PaymentProviderName = exports.WalletTransactionType = exports.WalletTransactionDirection = exports.WalletCurrency = exports.WalletOwnerType = exports.BuildDispatch = exports.BuildProviderType = exports.BuildMethod = exports.BuildUseCase = exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CouponRedemptionStatus = exports.CouponScope = void 0;
|
|
6
6
|
var GIT_TYPE;
|
|
7
7
|
(function (GIT_TYPE) {
|
|
8
8
|
GIT_TYPE["GITHUB"] = "GITHUB";
|
|
@@ -160,6 +160,10 @@ var AlertEventStatus;
|
|
|
160
160
|
AlertEventStatus["Firing"] = "firing";
|
|
161
161
|
AlertEventStatus["Resolved"] = "resolved";
|
|
162
162
|
})(AlertEventStatus || (exports.AlertEventStatus = AlertEventStatus = {}));
|
|
163
|
+
var RuntimeEventType;
|
|
164
|
+
(function (RuntimeEventType) {
|
|
165
|
+
RuntimeEventType["OomKilled"] = "oom_killed";
|
|
166
|
+
})(RuntimeEventType || (exports.RuntimeEventType = RuntimeEventType = {}));
|
|
163
167
|
var IssueType;
|
|
164
168
|
(function (IssueType) {
|
|
165
169
|
IssueType["BrokenEnvReference"] = "broken_env_reference";
|
|
@@ -168,6 +172,7 @@ var IssueType;
|
|
|
168
172
|
IssueType["AppCrashing"] = "app_crashing";
|
|
169
173
|
IssueType["DatabaseBackupFailing"] = "database_backup_failing";
|
|
170
174
|
IssueType["DatabaseStorageAlmostFull"] = "database_storage_almost_full";
|
|
175
|
+
IssueType["OutOfMemory"] = "out_of_memory";
|
|
171
176
|
})(IssueType || (exports.IssueType = IssueType = {}));
|
|
172
177
|
var IssueSeverity;
|
|
173
178
|
(function (IssueSeverity) {
|
|
@@ -868,11 +873,6 @@ var CloudServerProvisionStep;
|
|
|
868
873
|
CloudServerProvisionStep["Ready"] = "ready";
|
|
869
874
|
CloudServerProvisionStep["Failed"] = "failed";
|
|
870
875
|
})(CloudServerProvisionStep || (exports.CloudServerProvisionStep = CloudServerProvisionStep = {}));
|
|
871
|
-
var QUALITY_CONNECTION_STATUS;
|
|
872
|
-
(function (QUALITY_CONNECTION_STATUS) {
|
|
873
|
-
QUALITY_CONNECTION_STATUS["Connected"] = "connected";
|
|
874
|
-
QUALITY_CONNECTION_STATUS["Disconnected"] = "disconnected";
|
|
875
|
-
})(QUALITY_CONNECTION_STATUS || (exports.QUALITY_CONNECTION_STATUS = QUALITY_CONNECTION_STATUS = {}));
|
|
876
876
|
var EMAIL_CATEGORY;
|
|
877
877
|
(function (EMAIL_CATEGORY) {
|
|
878
878
|
EMAIL_CATEGORY["Account"] = "account";
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export { default as ProjectAnalytics } from "./project_analytics";
|
|
|
5
5
|
export { default as Preview } from "./project/preview";
|
|
6
6
|
export { default as ProjectConnection } from "./project/connection";
|
|
7
7
|
export { default as ProjectNetworkSettings } from "./project-network-settings";
|
|
8
|
-
export { default as QualityConnection } from "./quality-connection";
|
|
9
8
|
export { default as Ratelimit } from "./ratelimit";
|
|
10
9
|
export { default as Following } from "./following";
|
|
11
10
|
export { default as Integration } from "./integration";
|
|
@@ -64,6 +63,7 @@ export { default as AlertRule } from "./alert-rule";
|
|
|
64
63
|
export { default as AlertRuleStateModel } from "./alert-rule-state";
|
|
65
64
|
export { default as AlertEvent } from "./alert-event";
|
|
66
65
|
export { default as Issue } from "./issue";
|
|
66
|
+
export { default as RuntimeEvent } from "./runtime-event";
|
|
67
67
|
export { default as Drain } from "./drain";
|
|
68
68
|
export { default as ProjectDrainSubscription } from "./project-drain-subscription";
|
|
69
69
|
export { default as OwnershipTransfer } from "./ownership-transfer";
|
|
@@ -117,8 +117,8 @@ export { default as CloudServerResourceModel } from "./cloud-server-resource";
|
|
|
117
117
|
export { default as CloudUsageReviewModel } from "./cloud-usage-review";
|
|
118
118
|
export { default as CloudUsageSourcePeriodModel } from "./cloud-usage-source-period";
|
|
119
119
|
export { default as CloudUsageSettlementModel } from "./cloud-usage-settlement";
|
|
120
|
-
export { IUser, IGit, IOrigin, IProject, IDedicatedEgress, IPreviewCollaboration, IDatabaseProvisionProgress, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings,
|
|
121
|
-
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, AlertMetric, AlertCondition, AlertRuleState, AlertChannelMode, AlertEventStatus, IssueType, IssueSeverity, DrainType, DrainStatus, LogSource, DrainEventType, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, DNS_CHANGE_TYPE, DNS_CHANGE_SOURCE, EMAIL_FORWARD_STATUS, DNS_MANAGED_BY, ServiceType, BuildUseCase, BuildMethod, BuildProviderType, BuildDispatch, SCALING_SOURCE, DatabaseEngine, DatabasePasswordChangeMode, DatabasePasswordMode, HaMemberRole, DatabaseInsightsScope, DatabaseProvisionPhase, DatabaseProvisionOperation, DatabaseProvisionStep, EmailDeadLetterStatus, JobStatus, LicenseStatus, REGION_CONTINENT, VOLUME_BACKEND, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SPENDING_LIMIT_ACTION, TEAM_ACTIVATION_STATUS, 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, BACKUP_DESTINATION_TYPE, DatabaseUserPermission, DatabaseUserStatus, WorkerRunStatus, WorkerRunTrigger, 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, AGENT_CHAT_STATUS, AGENT_CHAT_MESSAGE_ROLE, AGENT_WEBSITE_STATUS, AGENT_WEBSITE_SNAPSHOT_STATUS, AGENT_DESIGN_SKILL_STATUS, AGENT_DESIGN_SKILL_TRUST_LEVEL, AGENT_DESIGN_SKILL_VERDICT, WalletOwnerType, WalletCurrency, WalletTransactionDirection, WalletTransactionType, PaymentProviderName, PaymentStatus, CLOUD_PROVIDER, CLOUD_SERVER_KIND, CLOUD_SERVER_STATUS, CLOUD_SERVER_BILLING_STATUS, CLOUD_VOLUME_FORMAT_MOUNT, CLOUD_VOLUME_FILESYSTEM, CloudServerProvisionPhase, CloudServerProvisionOperation, CloudServerProvisionStep,
|
|
120
|
+
export { IUser, IGit, IOrigin, IProject, IDedicatedEgress, IPreviewCollaboration, IDatabaseProvisionProgress, 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, IEmailForward, IRole, IWallet, ICreditWallet, ICreditWalletTransaction, IWalletFundingPayment, ICloudServer, CloudUsageCharge, CloudServerResource, CloudUsageReview, CloudUsageSourcePeriod, CloudUsagePendingCharge, CloudUsageSettlement, CloudUsageKind, CloudUsageLine, CloudUsageStatus, ICloudServerSshKey, ICloudServerFirewallRule, ICloudServerVolume, ICloudServerNetwork, ICloudServerPoint, ICloudServerLogLine, ICloudServerProvisionProgress, IDbImage, IDbImageConnection, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, BuildProviderRoute, BuildSandboxPoolConfig, BuildSandboxConfig, BuildProviderMeta, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IProjectConfigFile, IActivityLog, IAlertRule, IAlertRuleState, IAlertEvent, IAlertNotificationResult, IIssue, IRuntimeEvent, IDrain, IProjectDrainSubscription, IOwnershipTransfer, ISandbox, ISandboxSpecs, ISandboxActivity, ISandboxImage, ISandboxSize, ISandboxSnapshot, IBackupHistory, IDatabaseUser, IRestoreHistory, IWorkerRun, ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, IVolumeUsageSegment, IVolumeUsageSegmentCosts, IPgBouncerUsageSegment, IPgBouncerUsageSegmentCosts, IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, IIdempotencyRecord, IStorageBucket, IStorageBucketConnection, 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, ICareerRole, IBlogPost, IChangelogEntry, IChangelogCampaign, ChangelogEmailPayloadEntry, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, IAgentWebsite, IAgentWebsiteSnapshot, IAgentWebsiteFileOverlay, IAgentDesignSkill, IAgentDesignSkillRevision, IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, IConfigApply, ConfigApplyStatus, ConfigFieldDiff, ConfigFieldValue, ConfigManagedFields, ConfigPlan, ConfigResource, ConfigStep, ConfigStepKind, ConfigStepResult, } from "./types";
|
|
121
|
+
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, AlertMetric, AlertCondition, AlertRuleState, AlertChannelMode, AlertEventStatus, IssueType, IssueSeverity, RuntimeEventType, DrainType, DrainStatus, LogSource, DrainEventType, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, DNS_CHANGE_TYPE, DNS_CHANGE_SOURCE, EMAIL_FORWARD_STATUS, DNS_MANAGED_BY, ServiceType, BuildUseCase, BuildMethod, BuildProviderType, BuildDispatch, SCALING_SOURCE, DatabaseEngine, DatabasePasswordChangeMode, DatabasePasswordMode, HaMemberRole, DatabaseInsightsScope, DatabaseProvisionPhase, DatabaseProvisionOperation, DatabaseProvisionStep, EmailDeadLetterStatus, JobStatus, LicenseStatus, REGION_CONTINENT, VOLUME_BACKEND, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SPENDING_LIMIT_ACTION, TEAM_ACTIVATION_STATUS, 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, BACKUP_DESTINATION_TYPE, DatabaseUserPermission, DatabaseUserStatus, WorkerRunStatus, WorkerRunTrigger, 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, AGENT_CHAT_STATUS, AGENT_CHAT_MESSAGE_ROLE, AGENT_WEBSITE_STATUS, AGENT_WEBSITE_SNAPSHOT_STATUS, AGENT_DESIGN_SKILL_STATUS, AGENT_DESIGN_SKILL_TRUST_LEVEL, AGENT_DESIGN_SKILL_VERDICT, WalletOwnerType, WalletCurrency, WalletTransactionDirection, WalletTransactionType, PaymentProviderName, PaymentStatus, CLOUD_PROVIDER, CLOUD_SERVER_KIND, CLOUD_SERVER_STATUS, CLOUD_SERVER_BILLING_STATUS, CLOUD_VOLUME_FORMAT_MOUNT, CLOUD_VOLUME_FILESYSTEM, CloudServerProvisionPhase, CloudServerProvisionOperation, CloudServerProvisionStep, EMAIL_CATEGORY, } from "./enum";
|
|
122
122
|
import mongoose from "mongoose";
|
|
123
123
|
export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
|
|
124
124
|
export declare const db: mongoose.Connection;
|
package/dist/index.js
CHANGED
|
@@ -12,12 +12,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
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.EmailDeadLetter = exports.DbImage = exports.Wallet = exports.Server = exports.Card = exports.Subscription = exports.Log = exports.Role = exports.PaymentMethod = exports.Member = exports.Team = exports.PlatformApiKey = exports.Token = exports.Env = exports.EmailForward = exports.DnsChangeLog = exports.Dns = exports.Domain = exports.Integration = exports.Following = exports.Ratelimit = exports.
|
|
16
|
-
exports.QuestParticipation = exports.QuestCampaign = exports.StreakMilestone = exports.StreakDay = exports.StreakEvent = exports.Streak = exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucketConnection = exports.StorageBucket = exports.IdempotencyRecord = exports.ObjectStorageUsageSegment = exports.PgBouncerUsageSegment = exports.VolumeUsageSegment = exports.SandboxUsageSegment = exports.SandboxSnapshotUsageSegment = exports.WorkerRun = exports.RestoreHistory = exports.DatabaseUser = exports.BackupHistory = exports.SandboxSnapshot = exports.SandboxWarmPoolMember = exports.SandboxWarmPool = exports.SandboxSize = exports.SandboxImage = exports.SandboxActivity = exports.Sandbox = exports.OwnershipTransfer = exports.ProjectDrainSubscription = exports.Drain = exports.Issue = 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 = exports.CollabShareToken =
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.EMAIL_CATEGORY = exports.
|
|
15
|
+
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.EmailDeadLetter = exports.DbImage = exports.Wallet = exports.Server = exports.Card = exports.Subscription = exports.Log = exports.Role = exports.PaymentMethod = exports.Member = exports.Team = exports.PlatformApiKey = exports.Token = exports.Env = exports.EmailForward = 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 = exports.ConfigApply = void 0;
|
|
16
|
+
exports.QuestParticipation = exports.QuestCampaign = exports.StreakMilestone = exports.StreakDay = exports.StreakEvent = exports.Streak = exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucketConnection = exports.StorageBucket = exports.IdempotencyRecord = exports.ObjectStorageUsageSegment = exports.PgBouncerUsageSegment = exports.VolumeUsageSegment = exports.SandboxUsageSegment = exports.SandboxSnapshotUsageSegment = exports.WorkerRun = exports.RestoreHistory = exports.DatabaseUser = exports.BackupHistory = exports.SandboxSnapshot = exports.SandboxWarmPoolMember = exports.SandboxWarmPool = exports.SandboxSize = exports.SandboxImage = exports.SandboxActivity = exports.Sandbox = exports.OwnershipTransfer = exports.ProjectDrainSubscription = exports.Drain = exports.RuntimeEvent = exports.Issue = 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 = exports.CollabShareToken = void 0;
|
|
17
|
+
exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.RuntimeEventType = exports.IssueSeverity = exports.IssueType = 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 = exports.GIT_TYPE = exports.CloudUsageSettlementModel = exports.CloudUsageSourcePeriodModel = exports.CloudUsageReviewModel = exports.CloudServerResourceModel = exports.CloudUsageChargeModel = exports.CloudServer = exports.WalletFundingPayment = exports.CreditWalletTransaction = exports.CreditWallet = exports.AgentDesignSkillRevision = exports.AgentDesignSkill = exports.AgentWebsiteFileOverlay = exports.AgentWebsiteSnapshot = exports.AgentWebsite = exports.AgentChatModel = exports.AgentChatFile = exports.AgentChatMessage = exports.AgentChat = exports.ChangelogCampaign = exports.ChangelogEntry = exports.BlogPost = exports.CareerRole = exports.Ticket = exports.CouponRedemption = exports.Coupon = exports.QuestRewardIssuance = void 0;
|
|
18
|
+
exports.DatabaseUserStatus = exports.DatabaseUserPermission = exports.BACKUP_DESTINATION_TYPE = 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.TEAM_ACTIVATION_STATUS = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseProvisionStep = exports.DatabaseProvisionOperation = exports.DatabaseProvisionPhase = exports.DatabaseInsightsScope = exports.HaMemberRole = exports.DatabasePasswordMode = exports.DatabasePasswordChangeMode = exports.DatabaseEngine = exports.SCALING_SOURCE = exports.BuildDispatch = exports.BuildProviderType = exports.BuildMethod = exports.BuildUseCase = exports.ServiceType = exports.DNS_MANAGED_BY = exports.EMAIL_FORWARD_STATUS = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = void 0;
|
|
19
|
+
exports.CloudServerProvisionPhase = exports.CLOUD_VOLUME_FILESYSTEM = exports.CLOUD_VOLUME_FORMAT_MOUNT = exports.CLOUD_SERVER_BILLING_STATUS = exports.CLOUD_SERVER_STATUS = exports.CLOUD_SERVER_KIND = exports.CLOUD_PROVIDER = exports.PaymentStatus = exports.PaymentProviderName = exports.WalletTransactionType = exports.WalletTransactionDirection = exports.WalletCurrency = exports.WalletOwnerType = exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = 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.WorkerRunTrigger = exports.WorkerRunStatus = void 0;
|
|
20
|
+
exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.EMAIL_CATEGORY = exports.CloudServerProvisionStep = exports.CloudServerProvisionOperation = void 0;
|
|
21
21
|
var config_apply_1 = require("./config-apply");
|
|
22
22
|
Object.defineProperty(exports, "ConfigApply", { enumerable: true, get: function () { return __importDefault(config_apply_1).default; } });
|
|
23
23
|
var user_1 = require("./user");
|
|
@@ -33,8 +33,6 @@ var connection_1 = require("./project/connection");
|
|
|
33
33
|
Object.defineProperty(exports, "ProjectConnection", { enumerable: true, get: function () { return __importDefault(connection_1).default; } });
|
|
34
34
|
var project_network_settings_1 = require("./project-network-settings");
|
|
35
35
|
Object.defineProperty(exports, "ProjectNetworkSettings", { enumerable: true, get: function () { return __importDefault(project_network_settings_1).default; } });
|
|
36
|
-
var quality_connection_1 = require("./quality-connection");
|
|
37
|
-
Object.defineProperty(exports, "QualityConnection", { enumerable: true, get: function () { return __importDefault(quality_connection_1).default; } });
|
|
38
36
|
var ratelimit_1 = require("./ratelimit");
|
|
39
37
|
Object.defineProperty(exports, "Ratelimit", { enumerable: true, get: function () { return __importDefault(ratelimit_1).default; } });
|
|
40
38
|
var following_1 = require("./following");
|
|
@@ -151,6 +149,8 @@ var alert_event_1 = require("./alert-event");
|
|
|
151
149
|
Object.defineProperty(exports, "AlertEvent", { enumerable: true, get: function () { return __importDefault(alert_event_1).default; } });
|
|
152
150
|
var issue_1 = require("./issue");
|
|
153
151
|
Object.defineProperty(exports, "Issue", { enumerable: true, get: function () { return __importDefault(issue_1).default; } });
|
|
152
|
+
var runtime_event_1 = require("./runtime-event");
|
|
153
|
+
Object.defineProperty(exports, "RuntimeEvent", { enumerable: true, get: function () { return __importDefault(runtime_event_1).default; } });
|
|
154
154
|
var drain_1 = require("./drain");
|
|
155
155
|
Object.defineProperty(exports, "Drain", { enumerable: true, get: function () { return __importDefault(drain_1).default; } });
|
|
156
156
|
var project_drain_subscription_1 = require("./project-drain-subscription");
|
|
@@ -280,6 +280,7 @@ Object.defineProperty(exports, "AlertChannelMode", { enumerable: true, get: func
|
|
|
280
280
|
Object.defineProperty(exports, "AlertEventStatus", { enumerable: true, get: function () { return enum_1.AlertEventStatus; } });
|
|
281
281
|
Object.defineProperty(exports, "IssueType", { enumerable: true, get: function () { return enum_1.IssueType; } });
|
|
282
282
|
Object.defineProperty(exports, "IssueSeverity", { enumerable: true, get: function () { return enum_1.IssueSeverity; } });
|
|
283
|
+
Object.defineProperty(exports, "RuntimeEventType", { enumerable: true, get: function () { return enum_1.RuntimeEventType; } });
|
|
283
284
|
Object.defineProperty(exports, "DrainType", { enumerable: true, get: function () { return enum_1.DrainType; } });
|
|
284
285
|
Object.defineProperty(exports, "DrainStatus", { enumerable: true, get: function () { return enum_1.DrainStatus; } });
|
|
285
286
|
Object.defineProperty(exports, "LogSource", { enumerable: true, get: function () { return enum_1.LogSource; } });
|
|
@@ -389,7 +390,6 @@ Object.defineProperty(exports, "CLOUD_VOLUME_FILESYSTEM", { enumerable: true, ge
|
|
|
389
390
|
Object.defineProperty(exports, "CloudServerProvisionPhase", { enumerable: true, get: function () { return enum_1.CloudServerProvisionPhase; } });
|
|
390
391
|
Object.defineProperty(exports, "CloudServerProvisionOperation", { enumerable: true, get: function () { return enum_1.CloudServerProvisionOperation; } });
|
|
391
392
|
Object.defineProperty(exports, "CloudServerProvisionStep", { enumerable: true, get: function () { return enum_1.CloudServerProvisionStep; } });
|
|
392
|
-
Object.defineProperty(exports, "QUALITY_CONNECTION_STATUS", { enumerable: true, get: function () { return enum_1.QUALITY_CONNECTION_STATUS; } });
|
|
393
393
|
Object.defineProperty(exports, "EMAIL_CATEGORY", { enumerable: true, get: function () { return enum_1.EMAIL_CATEGORY; } });
|
|
394
394
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
395
395
|
const utils_1 = require("@brimble/utils");
|
package/dist/project/index.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IRuntimeEvent } from "./types";
|
|
2
|
+
declare const _default: import("mongoose").Model<IRuntimeEvent, {}, {}, {}, import("mongoose").Document<unknown, {}, IRuntimeEvent, {}, import("mongoose").DefaultSchemaOptions> & IRuntimeEvent & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IRuntimeEvent>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("./enum");
|
|
5
|
+
const retentionSeconds = 90 * 24 * 60 * 60;
|
|
6
|
+
const runtimeEventSchema = new mongoose_1.Schema({
|
|
7
|
+
type: {
|
|
8
|
+
type: String,
|
|
9
|
+
enum: Object.values(enum_1.RuntimeEventType),
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
project_id: {
|
|
13
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
14
|
+
ref: "Project",
|
|
15
|
+
required: true,
|
|
16
|
+
},
|
|
17
|
+
job_id: {
|
|
18
|
+
type: String,
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
namespace: {
|
|
22
|
+
type: String,
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
alloc_id: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
task: {
|
|
30
|
+
type: String,
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
exit_code: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: null,
|
|
36
|
+
},
|
|
37
|
+
occurred_at: {
|
|
38
|
+
type: Date,
|
|
39
|
+
required: true,
|
|
40
|
+
},
|
|
41
|
+
}, {
|
|
42
|
+
collection: "runtime_events",
|
|
43
|
+
});
|
|
44
|
+
runtimeEventSchema.index({ alloc_id: 1, task: 1, type: 1, occurred_at: 1 }, { unique: true });
|
|
45
|
+
runtimeEventSchema.index({ project_id: 1, type: 1, occurred_at: -1 });
|
|
46
|
+
runtimeEventSchema.index({ occurred_at: 1 }, { expireAfterSeconds: retentionSeconds });
|
|
47
|
+
exports.default = (0, mongoose_1.model)("RuntimeEvent", runtimeEventSchema);
|
|
@@ -3,18 +3,18 @@ declare const _default: import("mongoose").Model<{
|
|
|
3
3
|
[x: string]: NativeDate;
|
|
4
4
|
status: string;
|
|
5
5
|
node_id: string;
|
|
6
|
-
pool_id: string;
|
|
7
6
|
job_id: string;
|
|
8
7
|
alloc_id: string;
|
|
8
|
+
pool_id: string;
|
|
9
9
|
}, {}, {}, {
|
|
10
10
|
id: string;
|
|
11
11
|
}, import("mongoose").Document<unknown, {}, {
|
|
12
12
|
[x: string]: NativeDate;
|
|
13
13
|
status: string;
|
|
14
14
|
node_id: string;
|
|
15
|
-
pool_id: string;
|
|
16
15
|
job_id: string;
|
|
17
16
|
alloc_id: string;
|
|
17
|
+
pool_id: string;
|
|
18
18
|
}, {
|
|
19
19
|
id: string;
|
|
20
20
|
}, {
|
|
@@ -26,9 +26,9 @@ declare const _default: import("mongoose").Model<{
|
|
|
26
26
|
[x: string]: NativeDate;
|
|
27
27
|
status: string;
|
|
28
28
|
node_id: string;
|
|
29
|
-
pool_id: string;
|
|
30
29
|
job_id: string;
|
|
31
30
|
alloc_id: string;
|
|
31
|
+
pool_id: string;
|
|
32
32
|
} & {
|
|
33
33
|
_id: import("mongoose").Types.ObjectId;
|
|
34
34
|
} & {
|
|
@@ -44,16 +44,16 @@ declare const _default: import("mongoose").Model<{
|
|
|
44
44
|
[x: string]: NativeDate;
|
|
45
45
|
status: string;
|
|
46
46
|
node_id: string;
|
|
47
|
-
pool_id: string;
|
|
48
47
|
job_id: string;
|
|
49
48
|
alloc_id: string;
|
|
49
|
+
pool_id: string;
|
|
50
50
|
}, import("mongoose").Document<unknown, {}, {
|
|
51
51
|
[x: string]: NativeDate;
|
|
52
52
|
status: string;
|
|
53
53
|
node_id: string;
|
|
54
|
-
pool_id: string;
|
|
55
54
|
job_id: string;
|
|
56
55
|
alloc_id: string;
|
|
56
|
+
pool_id: string;
|
|
57
57
|
}, {
|
|
58
58
|
id: string;
|
|
59
59
|
}, Omit<import("mongoose").DefaultSchemaOptions, "timestamps"> & {
|
|
@@ -65,9 +65,9 @@ declare const _default: import("mongoose").Model<{
|
|
|
65
65
|
[x: string]: NativeDate;
|
|
66
66
|
status: string;
|
|
67
67
|
node_id: string;
|
|
68
|
-
pool_id: string;
|
|
69
68
|
job_id: string;
|
|
70
69
|
alloc_id: string;
|
|
70
|
+
pool_id: string;
|
|
71
71
|
} & {
|
|
72
72
|
_id: import("mongoose").Types.ObjectId;
|
|
73
73
|
} & {
|
|
@@ -78,9 +78,9 @@ declare const _default: import("mongoose").Model<{
|
|
|
78
78
|
[x: string]: NativeDate;
|
|
79
79
|
status: string;
|
|
80
80
|
node_id: string;
|
|
81
|
-
pool_id: string;
|
|
82
81
|
job_id: string;
|
|
83
82
|
alloc_id: string;
|
|
83
|
+
pool_id: string;
|
|
84
84
|
} & {
|
|
85
85
|
_id: import("mongoose").Types.ObjectId;
|
|
86
86
|
} & {
|
|
@@ -89,9 +89,9 @@ declare const _default: import("mongoose").Model<{
|
|
|
89
89
|
[x: string]: NativeDate;
|
|
90
90
|
status: string;
|
|
91
91
|
node_id: string;
|
|
92
|
-
pool_id: string;
|
|
93
92
|
job_id: string;
|
|
94
93
|
alloc_id: string;
|
|
94
|
+
pool_id: string;
|
|
95
95
|
} & {
|
|
96
96
|
_id: import("mongoose").Types.ObjectId;
|
|
97
97
|
} & {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export type { IBackupDestinationExternal, IDatabaseProvisionProgress, IDedicated
|
|
|
29
29
|
export type { IProjectAnalytics } from "./project_analytics";
|
|
30
30
|
export type { IProjectConnection } from "./project/connection";
|
|
31
31
|
export type { IProjectNetworkSettings } from "./project-network-settings";
|
|
32
|
-
export type { IQualityConnection } from "./quality-connection";
|
|
33
32
|
export type { IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, } from "./ratelimit";
|
|
34
33
|
export type { IPreview } from "./project/preview";
|
|
35
34
|
export type { IRegion, RegionType } from "./region";
|
|
@@ -68,6 +67,7 @@ export type { IAlertRule } from "./alert-rule";
|
|
|
68
67
|
export type { IAlertRuleState } from "./alert-rule-state";
|
|
69
68
|
export type { IAlertEvent, IAlertNotificationResult } from "./alert-event";
|
|
70
69
|
export type { IIssue } from "./issue";
|
|
70
|
+
export type { IRuntimeEvent } from "./runtime-event";
|
|
71
71
|
export type { IDrain } from "./drain";
|
|
72
72
|
export type { IProjectDrainSubscription } from "./project-drain-subscription";
|
|
73
73
|
export type { IOwnershipTransfer } from "./ownership-transfer";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Document, Types } from "mongoose";
|
|
2
|
+
import { RuntimeEventType } from "../enum";
|
|
3
|
+
import { IProject } from "./project";
|
|
4
|
+
export interface IRuntimeEvent extends Document {
|
|
5
|
+
type: RuntimeEventType;
|
|
6
|
+
project_id: IProject | Types.ObjectId;
|
|
7
|
+
job_id: string;
|
|
8
|
+
namespace: string;
|
|
9
|
+
alloc_id: string;
|
|
10
|
+
task: string;
|
|
11
|
+
exit_code: number | null;
|
|
12
|
+
occurred_at: Date;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IQualityConnection } from "./types";
|
|
2
|
-
declare const _default: import("mongoose").Model<IQualityConnection, {}, {}, {}, import("mongoose").Document<unknown, {}, IQualityConnection, {}, import("mongoose").DefaultSchemaOptions> & IQualityConnection & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, IQualityConnection>;
|
|
9
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const enum_1 = require("./enum");
|
|
5
|
-
const qualityConnectionSchema = new mongoose_1.Schema({
|
|
6
|
-
team: {
|
|
7
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
-
ref: "Team",
|
|
9
|
-
required: false,
|
|
10
|
-
default: null,
|
|
11
|
-
},
|
|
12
|
-
user: {
|
|
13
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
14
|
-
ref: "User",
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
workspace_id: { type: String, required: true, unique: true },
|
|
18
|
-
workspace_name: { type: String, required: true },
|
|
19
|
-
access_token: { type: String, select: false },
|
|
20
|
-
refresh_token: { type: String, select: false },
|
|
21
|
-
access_token_expires_at: { type: Date, select: false },
|
|
22
|
-
scope: { type: String },
|
|
23
|
-
status: {
|
|
24
|
-
type: String,
|
|
25
|
-
enum: Object.values(enum_1.QUALITY_CONNECTION_STATUS),
|
|
26
|
-
default: enum_1.QUALITY_CONNECTION_STATUS.Connected,
|
|
27
|
-
},
|
|
28
|
-
connected_at: { type: Date },
|
|
29
|
-
disconnected_at: { type: Date },
|
|
30
|
-
}, { timestamps: true, collection: "quality_connections" });
|
|
31
|
-
qualityConnectionSchema.index({ team: 1 }, { unique: true, partialFilterExpression: { team: { $type: "objectId" } } });
|
|
32
|
-
qualityConnectionSchema.index({ user: 1, team: 1 });
|
|
33
|
-
exports.default = (0, mongoose_1.model)("QualityConnection", qualityConnectionSchema);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { QUALITY_CONNECTION_STATUS } from "../enum";
|
|
3
|
-
import { ITeam } from "./team";
|
|
4
|
-
import { IUser } from "./user";
|
|
5
|
-
export interface IQualityConnection extends Document {
|
|
6
|
-
team?: ITeam | null;
|
|
7
|
-
user: IUser;
|
|
8
|
-
workspace_id: string;
|
|
9
|
-
workspace_name: string;
|
|
10
|
-
access_token?: string;
|
|
11
|
-
refresh_token?: string;
|
|
12
|
-
access_token_expires_at?: Date;
|
|
13
|
-
scope?: string;
|
|
14
|
-
status: QUALITY_CONNECTION_STATUS;
|
|
15
|
-
connected_at?: Date;
|
|
16
|
-
disconnected_at?: Date;
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
updatedAt: Date;
|
|
19
|
-
}
|
|
File without changes
|