@brimble/models 3.8.44 → 3.8.46
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/package.json +1 -1
- package/types/auto-scaling-group.ts +1 -1
- package/types/region.ts +2 -2
- package/types/volume.ts +1 -0
- package/volume.ts +4 -0
- package/dist/activity-log.d.ts +0 -9
- package/dist/activity-log.js +0 -61
- package/dist/app-message.d.ts +0 -9
- package/dist/app-message.js +0 -14
- package/dist/auto-scaling.d.ts +0 -9
- package/dist/auto-scaling.js +0 -63
- package/dist/card.d.ts +0 -9
- package/dist/card.js +0 -41
- package/dist/cashier_subscription.d.ts +0 -9
- package/dist/cashier_subscription.js +0 -27
- package/dist/cashier_subscription_item.d.ts +0 -9
- package/dist/cashier_subscription_item.js +0 -17
- package/dist/collab-annotation.d.ts +0 -9
- package/dist/collab-annotation.js +0 -31
- package/dist/collab-comment.d.ts +0 -9
- package/dist/collab-comment.js +0 -19
- package/dist/collab-integration.d.ts +0 -9
- package/dist/collab-integration.js +0 -17
- package/dist/collab-push-subscription.d.ts +0 -9
- package/dist/collab-push-subscription.js +0 -14
- package/dist/collab-settings.d.ts +0 -9
- package/dist/collab-settings.js +0 -24
- package/dist/collab-share-token.d.ts +0 -9
- package/dist/collab-share-token.js +0 -11
- package/dist/compute.d.ts +0 -9
- package/dist/compute.js +0 -82
- package/dist/db-image.d.ts +0 -9
- package/dist/db-image.js +0 -67
- package/dist/domain/dns.d.ts +0 -9
- package/dist/domain/dns.js +0 -33
- package/dist/domain/index.d.ts +0 -9
- package/dist/domain/index.js +0 -109
- package/dist/domain/renewal.d.ts +0 -9
- package/dist/domain/renewal.js +0 -21
- package/dist/domain/transfer.d.ts +0 -9
- package/dist/domain/transfer.js +0 -99
- package/dist/enum/index.d.ts +0 -271
- package/dist/enum/index.js +0 -319
- package/dist/env.d.ts +0 -9
- package/dist/env.js +0 -34
- package/dist/environment-variable.d.ts +0 -9
- package/dist/environment-variable.js +0 -16
- package/dist/follower.d.ts +0 -9
- package/dist/follower.js +0 -15
- package/dist/following.d.ts +0 -9
- package/dist/following.js +0 -15
- package/dist/framework.d.ts +0 -9
- package/dist/framework.js +0 -84
- package/dist/idempotency.d.ts +0 -9
- package/dist/idempotency.js +0 -17
- package/dist/index.d.ts +0 -72
- package/dist/index.js +0 -232
- package/dist/integration.d.ts +0 -9
- package/dist/integration.js +0 -35
- package/dist/intention.d.ts +0 -9
- package/dist/intention.js +0 -36
- package/dist/invoice.d.ts +0 -9
- package/dist/invoice.js +0 -28
- package/dist/job.d.ts +0 -10
- package/dist/job.js +0 -62
- package/dist/license.d.ts +0 -9
- package/dist/license.js +0 -75
- package/dist/load-balancer-port.d.ts +0 -9
- package/dist/load-balancer-port.js +0 -27
- package/dist/logs.d.ts +0 -9
- package/dist/logs.js +0 -40
- package/dist/member-permission.d.ts +0 -9
- package/dist/member-permission.js +0 -9
- package/dist/member.d.ts +0 -9
- package/dist/member.js +0 -40
- package/dist/object-storage-usage-segment.d.ts +0 -9
- package/dist/object-storage-usage-segment.js +0 -46
- package/dist/ownership-transfer.d.ts +0 -9
- package/dist/ownership-transfer.js +0 -35
- package/dist/permission.d.ts +0 -9
- package/dist/permission.js +0 -12
- package/dist/plan_configuration.d.ts +0 -10
- package/dist/plan_configuration.js +0 -61
- package/dist/project/connection.d.ts +0 -9
- package/dist/project/connection.js +0 -14
- package/dist/project/index.d.ts +0 -16
- package/dist/project/index.js +0 -256
- package/dist/project/preview.d.ts +0 -9
- package/dist/project/preview.js +0 -37
- package/dist/project-environment.d.ts +0 -9
- package/dist/project-environment.js +0 -13
- package/dist/project-tag-assignment.d.ts +0 -9
- package/dist/project-tag-assignment.js +0 -32
- package/dist/project_analytics.d.ts +0 -9
- package/dist/project_analytics.js +0 -18
- package/dist/provider.d.ts +0 -9
- package/dist/provider.js +0 -10
- package/dist/region.d.ts +0 -10
- package/dist/region.js +0 -17
- package/dist/role.d.ts +0 -9
- package/dist/role.js +0 -11
- package/dist/sandbox-activity.d.ts +0 -9
- package/dist/sandbox-activity.js +0 -49
- package/dist/sandbox-image.d.ts +0 -9
- package/dist/sandbox-image.js +0 -31
- package/dist/sandbox-snapshot-usage-segment.d.ts +0 -9
- package/dist/sandbox-snapshot-usage-segment.js +0 -49
- package/dist/sandbox-snapshot.d.ts +0 -9
- package/dist/sandbox-snapshot.js +0 -51
- package/dist/sandbox-usage-segment.d.ts +0 -9
- package/dist/sandbox-usage-segment.js +0 -57
- package/dist/sandbox.d.ts +0 -9
- package/dist/sandbox.js +0 -132
- package/dist/server.d.ts +0 -9
- package/dist/server.js +0 -101
- package/dist/settings.d.ts +0 -9
- package/dist/settings.js +0 -49
- package/dist/storage.d.ts +0 -36
- package/dist/storage.js +0 -82
- package/dist/subscription.d.ts +0 -9
- package/dist/subscription.js +0 -82
- package/dist/tag.d.ts +0 -9
- package/dist/tag.js +0 -29
- package/dist/team.d.ts +0 -9
- package/dist/team.js +0 -82
- package/dist/token.d.ts +0 -9
- package/dist/token.js +0 -36
- package/dist/types/activity-log.d.ts +0 -18
- package/dist/types/activity-log.js +0 -2
- package/dist/types/app-message.d.ts +0 -15
- package/dist/types/app-message.js +0 -2
- package/dist/types/auto-scaling-group.d.ts +0 -20
- package/dist/types/auto-scaling-group.js +0 -2
- package/dist/types/card.d.ts +0 -12
- package/dist/types/card.js +0 -2
- package/dist/types/cashier_subscription.d.ts +0 -27
- package/dist/types/cashier_subscription.js +0 -2
- package/dist/types/collab-annotation.d.ts +0 -27
- package/dist/types/collab-annotation.js +0 -2
- package/dist/types/collab-comment.d.ts +0 -20
- package/dist/types/collab-comment.js +0 -2
- package/dist/types/collab-integration.d.ts +0 -13
- package/dist/types/collab-integration.js +0 -2
- package/dist/types/collab-push-subscription.d.ts +0 -12
- package/dist/types/collab-push-subscription.js +0 -2
- package/dist/types/collab-settings.d.ts +0 -16
- package/dist/types/collab-settings.js +0 -2
- package/dist/types/collab-share-token.d.ts +0 -12
- package/dist/types/collab-share-token.js +0 -2
- package/dist/types/compute.d.ts +0 -48
- package/dist/types/compute.js +0 -2
- package/dist/types/db-image.d.ts +0 -25
- package/dist/types/db-image.js +0 -2
- package/dist/types/domain/dns.d.ts +0 -12
- package/dist/types/domain/dns.js +0 -2
- package/dist/types/domain/index.d.ts +0 -35
- package/dist/types/domain/index.js +0 -2
- package/dist/types/domain/renewal.d.ts +0 -10
- package/dist/types/domain/renewal.js +0 -2
- package/dist/types/domain/transfer.d.ts +0 -27
- package/dist/types/domain/transfer.js +0 -2
- package/dist/types/env.d.ts +0 -13
- package/dist/types/env.js +0 -2
- package/dist/types/environment-variable.d.ts +0 -12
- package/dist/types/environment-variable.js +0 -2
- package/dist/types/following.d.ts +0 -5
- package/dist/types/following.js +0 -2
- package/dist/types/framework.d.ts +0 -39
- package/dist/types/framework.js +0 -2
- package/dist/types/git.d.ts +0 -14
- package/dist/types/git.js +0 -2
- package/dist/types/idempotency.d.ts +0 -10
- package/dist/types/idempotency.js +0 -2
- package/dist/types/index.d.ts +0 -66
- package/dist/types/index.js +0 -2
- package/dist/types/installed_integration.d.ts +0 -6
- package/dist/types/installed_integration.js +0 -2
- package/dist/types/integration.d.ts +0 -14
- package/dist/types/integration.js +0 -2
- package/dist/types/intention.d.ts +0 -13
- package/dist/types/intention.js +0 -2
- package/dist/types/invoice.d.ts +0 -15
- package/dist/types/invoice.js +0 -2
- package/dist/types/job.d.ts +0 -19
- package/dist/types/job.js +0 -2
- package/dist/types/license.d.ts +0 -18
- package/dist/types/license.js +0 -2
- package/dist/types/load-balancer-port.d.ts +0 -12
- package/dist/types/load-balancer-port.js +0 -2
- package/dist/types/logs.d.ts +0 -35
- package/dist/types/logs.js +0 -2
- package/dist/types/member-permission.d.ts +0 -8
- package/dist/types/member-permission.js +0 -2
- package/dist/types/member.d.ts +0 -18
- package/dist/types/member.js +0 -2
- package/dist/types/object-storage-usage-segment.d.ts +0 -23
- package/dist/types/object-storage-usage-segment.js +0 -2
- package/dist/types/ownership-transfer.d.ts +0 -12
- package/dist/types/ownership-transfer.js +0 -2
- package/dist/types/permission.d.ts +0 -13
- package/dist/types/permission.js +0 -2
- package/dist/types/plan_configuration.d.ts +0 -55
- package/dist/types/plan_configuration.js +0 -2
- package/dist/types/project/connection.d.ts +0 -6
- package/dist/types/project/connection.js +0 -2
- package/dist/types/project/index.d.ts +0 -100
- package/dist/types/project/index.js +0 -2
- package/dist/types/project/preview.d.ts +0 -21
- package/dist/types/project/preview.js +0 -2
- package/dist/types/project-environment.d.ts +0 -13
- package/dist/types/project-environment.js +0 -2
- package/dist/types/project-tag-assignment.d.ts +0 -13
- package/dist/types/project-tag-assignment.js +0 -2
- package/dist/types/project_analytics.d.ts +0 -11
- package/dist/types/project_analytics.js +0 -2
- package/dist/types/provider.d.ts +0 -7
- package/dist/types/provider.js +0 -2
- package/dist/types/region.d.ts +0 -15
- package/dist/types/region.js +0 -2
- package/dist/types/role.d.ts +0 -9
- package/dist/types/role.js +0 -2
- package/dist/types/sandbox-activity.d.ts +0 -14
- package/dist/types/sandbox-activity.js +0 -2
- package/dist/types/sandbox-image.d.ts +0 -9
- package/dist/types/sandbox-image.js +0 -2
- package/dist/types/sandbox-snapshot-usage-segment.d.ts +0 -16
- package/dist/types/sandbox-snapshot-usage-segment.js +0 -2
- package/dist/types/sandbox-snapshot.d.ts +0 -16
- package/dist/types/sandbox-snapshot.js +0 -2
- package/dist/types/sandbox-usage-segment.d.ts +0 -25
- package/dist/types/sandbox-usage-segment.js +0 -2
- package/dist/types/sandbox.d.ts +0 -41
- package/dist/types/sandbox.js +0 -2
- package/dist/types/server.d.ts +0 -32
- package/dist/types/server.js +0 -2
- package/dist/types/settings.d.ts +0 -11
- package/dist/types/settings.js +0 -2
- package/dist/types/storage.d.ts +0 -79
- package/dist/types/storage.js +0 -2
- package/dist/types/subscription.d.ts +0 -33
- package/dist/types/subscription.js +0 -2
- package/dist/types/tag.d.ts +0 -11
- package/dist/types/tag.js +0 -2
- package/dist/types/team.d.ts +0 -24
- package/dist/types/team.js +0 -2
- package/dist/types/token.d.ts +0 -11
- package/dist/types/token.js +0 -2
- package/dist/types/user.d.ts +0 -44
- package/dist/types/user.js +0 -2
- package/dist/types/volume-usage-segment.d.ts +0 -16
- package/dist/types/volume-usage-segment.js +0 -2
- package/dist/types/volume.d.ts +0 -19
- package/dist/types/volume.js +0 -2
- package/dist/types/wallet.d.ts +0 -8
- package/dist/types/wallet.js +0 -2
- package/dist/types/webhook-category.d.ts +0 -4
- package/dist/types/webhook-category.js +0 -2
- package/dist/types/webhook-event.d.ts +0 -7
- package/dist/types/webhook-event.js +0 -2
- package/dist/types/webhook-setting.d.ts +0 -16
- package/dist/types/webhook-setting.js +0 -2
- package/dist/user.d.ts +0 -9
- package/dist/user.js +0 -70
- package/dist/volume-usage-segment.d.ts +0 -9
- package/dist/volume-usage-segment.js +0 -46
- package/dist/volume.d.ts +0 -9
- package/dist/volume.js +0 -44
- package/dist/wallet.d.ts +0 -9
- package/dist/wallet.js +0 -26
- package/dist/webhook-category.d.ts +0 -9
- package/dist/webhook-category.js +0 -10
- package/dist/webhook-event.d.ts +0 -9
- package/dist/webhook-event.js +0 -19
- package/dist/webhook-setting.d.ts +0 -9
- package/dist/webhook-setting.js +0 -50
package/dist/settings.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const settingsSchema = new mongoose_1.Schema({
|
|
5
|
-
vaultEnabled: {
|
|
6
|
-
type: Boolean,
|
|
7
|
-
default: false,
|
|
8
|
-
},
|
|
9
|
-
maintenanceMode: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: false,
|
|
12
|
-
},
|
|
13
|
-
enableSecretRotation: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: false,
|
|
16
|
-
},
|
|
17
|
-
domainPromoEnabled: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: false,
|
|
20
|
-
},
|
|
21
|
-
buildsEnabled: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false,
|
|
24
|
-
},
|
|
25
|
-
minimumBuildMinutes: {
|
|
26
|
-
type: Number,
|
|
27
|
-
required: false,
|
|
28
|
-
},
|
|
29
|
-
enableLogging: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: false,
|
|
32
|
-
},
|
|
33
|
-
postHogEnabled: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: false
|
|
36
|
-
},
|
|
37
|
-
webhookEnabled: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: false,
|
|
40
|
-
},
|
|
41
|
-
metaSettings: {
|
|
42
|
-
type: Object,
|
|
43
|
-
required: false,
|
|
44
|
-
},
|
|
45
|
-
}, {
|
|
46
|
-
timestamps: true,
|
|
47
|
-
collection: "app_settings",
|
|
48
|
-
});
|
|
49
|
-
exports.default = (0, mongoose_1.model)("Settings", settingsSchema, "app_settings");
|
package/dist/storage.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IStorageBucket, IStorageCredential, IStorageObject, IStorageToken, IStorageUpload } from "./types/storage";
|
|
2
|
-
export declare const StorageBucket: import("mongoose").Model<IStorageBucket, {}, {}, {}, import("mongoose").Document<unknown, {}, IStorageBucket, {}, import("mongoose").DefaultSchemaOptions> & IStorageBucket & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, IStorageBucket>;
|
|
9
|
-
export declare const StorageObject: import("mongoose").Model<IStorageObject, {}, {}, {}, import("mongoose").Document<unknown, {}, IStorageObject, {}, import("mongoose").DefaultSchemaOptions> & IStorageObject & Required<{
|
|
10
|
-
_id: import("mongoose").Types.ObjectId;
|
|
11
|
-
}> & {
|
|
12
|
-
__v: number;
|
|
13
|
-
} & {
|
|
14
|
-
id: string;
|
|
15
|
-
}, any, IStorageObject>;
|
|
16
|
-
export declare const StorageUpload: import("mongoose").Model<IStorageUpload, {}, {}, {}, import("mongoose").Document<unknown, {}, IStorageUpload, {}, import("mongoose").DefaultSchemaOptions> & IStorageUpload & Required<{
|
|
17
|
-
_id: import("mongoose").Types.ObjectId;
|
|
18
|
-
}> & {
|
|
19
|
-
__v: number;
|
|
20
|
-
} & {
|
|
21
|
-
id: string;
|
|
22
|
-
}, any, IStorageUpload>;
|
|
23
|
-
export declare const StorageToken: import("mongoose").Model<IStorageToken, {}, {}, {}, import("mongoose").Document<unknown, {}, IStorageToken, {}, import("mongoose").DefaultSchemaOptions> & IStorageToken & Required<{
|
|
24
|
-
_id: import("mongoose").Types.ObjectId;
|
|
25
|
-
}> & {
|
|
26
|
-
__v: number;
|
|
27
|
-
} & {
|
|
28
|
-
id: string;
|
|
29
|
-
}, any, IStorageToken>;
|
|
30
|
-
export declare const StorageCredential: import("mongoose").Model<IStorageCredential, {}, {}, {}, import("mongoose").Document<unknown, {}, IStorageCredential, {}, import("mongoose").DefaultSchemaOptions> & IStorageCredential & Required<{
|
|
31
|
-
_id: import("mongoose").Types.ObjectId;
|
|
32
|
-
}> & {
|
|
33
|
-
__v: number;
|
|
34
|
-
} & {
|
|
35
|
-
id: string;
|
|
36
|
-
}, any, IStorageCredential>;
|
package/dist/storage.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucket = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const enum_1 = require("./enum");
|
|
6
|
-
const storageBucketSchema = new mongoose_1.Schema({
|
|
7
|
-
name: { type: String, required: true, trim: true },
|
|
8
|
-
project: { type: mongoose_1.Schema.Types.ObjectId, ref: "Project", required: false, index: true },
|
|
9
|
-
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "User", required: false, index: true },
|
|
10
|
-
team: { type: mongoose_1.Schema.Types.ObjectId, ref: "Team", required: false, index: true },
|
|
11
|
-
bucket_name: { type: String, required: true, unique: true },
|
|
12
|
-
is_public: { type: Boolean, default: false },
|
|
13
|
-
versioning: { type: Boolean, default: false },
|
|
14
|
-
provider: { type: String, default: "tigris" },
|
|
15
|
-
region: { type: String, default: "auto" },
|
|
16
|
-
storage_used: { type: Number, default: 0 },
|
|
17
|
-
reserved_bytes: { type: Number, default: 0 },
|
|
18
|
-
quota: { type: Number, required: true },
|
|
19
|
-
status: { type: String, enum: Object.values(enum_1.StorageBucketStatus), default: enum_1.StorageBucketStatus.Active },
|
|
20
|
-
}, { timestamps: true });
|
|
21
|
-
storageBucketSchema.index({ user_id: 1, team: 1, name: 1 }, { unique: true, name: "uniq_storage_bucket_owner_name" });
|
|
22
|
-
storageBucketSchema.index({ user_id: 1, updatedAt: -1 }, { name: "idx_storage_bucket_user_updated_at" });
|
|
23
|
-
storageBucketSchema.index({ team: 1, updatedAt: -1 }, { name: "idx_storage_bucket_team_updated_at" });
|
|
24
|
-
const storageObjectSchema = new mongoose_1.Schema({
|
|
25
|
-
bucket: { type: mongoose_1.Schema.Types.ObjectId, ref: "StorageBucket", required: true, index: true },
|
|
26
|
-
project: { type: mongoose_1.Schema.Types.ObjectId, ref: "Project", required: false, index: true },
|
|
27
|
-
key: { type: String, required: true },
|
|
28
|
-
path: { type: String, required: true },
|
|
29
|
-
content_type: { type: String },
|
|
30
|
-
size: { type: Number, default: 0 },
|
|
31
|
-
etag: { type: String },
|
|
32
|
-
public_url: { type: String },
|
|
33
|
-
last_modified: { type: Date },
|
|
34
|
-
}, { timestamps: true });
|
|
35
|
-
storageObjectSchema.index({ bucket: 1, key: 1 }, { unique: true, name: "uniq_storage_object_bucket_key" });
|
|
36
|
-
const storageUploadSchema = new mongoose_1.Schema({
|
|
37
|
-
bucket: { type: mongoose_1.Schema.Types.ObjectId, ref: "StorageBucket", required: true, index: true },
|
|
38
|
-
project: { type: mongoose_1.Schema.Types.ObjectId, ref: "Project", required: false, index: true },
|
|
39
|
-
key: { type: String, required: true },
|
|
40
|
-
path: { type: String, required: true },
|
|
41
|
-
upload_id: { type: String, index: true },
|
|
42
|
-
content_type: { type: String },
|
|
43
|
-
size: { type: Number, required: true },
|
|
44
|
-
status: { type: String, enum: Object.values(enum_1.StorageUploadStatus), default: enum_1.StorageUploadStatus.Pending, index: true },
|
|
45
|
-
expires_at: { type: Date, required: true, index: true },
|
|
46
|
-
completed_at: { type: Date },
|
|
47
|
-
}, { timestamps: true });
|
|
48
|
-
const storageTokenSchema = new mongoose_1.Schema({
|
|
49
|
-
name: { type: String, required: true, trim: true },
|
|
50
|
-
token_hash: { type: String, required: true, unique: true },
|
|
51
|
-
prefix: { type: String, required: true },
|
|
52
|
-
project: { type: mongoose_1.Schema.Types.ObjectId, ref: "Project", required: false, index: true },
|
|
53
|
-
buckets: [{ type: mongoose_1.Schema.Types.ObjectId, ref: "StorageBucket" }],
|
|
54
|
-
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "User", required: false, index: true },
|
|
55
|
-
team: { type: mongoose_1.Schema.Types.ObjectId, ref: "Team", required: false, index: true },
|
|
56
|
-
permissions: [{ type: String, enum: ["read", "write", "delete", "list", "admin"], required: true }],
|
|
57
|
-
status: { type: String, enum: Object.values(enum_1.StorageTokenStatus), default: enum_1.StorageTokenStatus.Active },
|
|
58
|
-
last_used_at: { type: Date },
|
|
59
|
-
expires_at: { type: Date },
|
|
60
|
-
}, { timestamps: true });
|
|
61
|
-
storageTokenSchema.index({ project: 1, status: 1 }, { name: "idx_storage_token_project_status" });
|
|
62
|
-
const storageCredentialSchema = new mongoose_1.Schema({
|
|
63
|
-
name: { type: String, required: true, trim: true },
|
|
64
|
-
bucket: { type: mongoose_1.Schema.Types.ObjectId, ref: "StorageBucket", required: true, index: true },
|
|
65
|
-
project: { type: mongoose_1.Schema.Types.ObjectId, ref: "Project", required: false, index: true },
|
|
66
|
-
user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "User", required: false, index: true },
|
|
67
|
-
team: { type: mongoose_1.Schema.Types.ObjectId, ref: "Team", required: false, index: true },
|
|
68
|
-
provider: { type: String, default: "tigris" },
|
|
69
|
-
provider_org_id: { type: String, required: true },
|
|
70
|
-
access_key_id: { type: String, required: true, unique: true },
|
|
71
|
-
policy_names: [{ type: String }],
|
|
72
|
-
role: { type: String, enum: Object.values(enum_1.StorageCredentialRole), required: true },
|
|
73
|
-
status: { type: String, enum: Object.values(enum_1.StorageCredentialStatus), default: enum_1.StorageCredentialStatus.Active, index: true },
|
|
74
|
-
last_rotated_at: { type: Date },
|
|
75
|
-
revoked_at: { type: Date },
|
|
76
|
-
}, { timestamps: true });
|
|
77
|
-
storageCredentialSchema.index({ bucket: 1, status: 1, updatedAt: -1 }, { name: "idx_storage_credential_bucket_status_updated_at" });
|
|
78
|
-
exports.StorageBucket = (0, mongoose_1.model)("StorageBucket", storageBucketSchema);
|
|
79
|
-
exports.StorageObject = (0, mongoose_1.model)("StorageObject", storageObjectSchema);
|
|
80
|
-
exports.StorageUpload = (0, mongoose_1.model)("StorageUpload", storageUploadSchema);
|
|
81
|
-
exports.StorageToken = (0, mongoose_1.model)("StorageToken", storageTokenSchema);
|
|
82
|
-
exports.StorageCredential = (0, mongoose_1.model)("StorageCredential", storageCredentialSchema);
|
package/dist/subscription.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ISubscription } from "./types";
|
|
2
|
-
declare const _default: import("mongoose").Model<ISubscription, {}, {}, {}, import("mongoose").Document<unknown, {}, ISubscription, {}, import("mongoose").DefaultSchemaOptions> & ISubscription & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, ISubscription>;
|
|
9
|
-
export default _default;
|
package/dist/subscription.js
DELETED
|
@@ -1,82 +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 subscriptionSchema = new mongoose_1.Schema({
|
|
6
|
-
initial_start_date: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
due_amount: {
|
|
11
|
-
type: Number,
|
|
12
|
-
default: 0
|
|
13
|
-
},
|
|
14
|
-
team_id: {
|
|
15
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
16
|
-
ref: "Team",
|
|
17
|
-
},
|
|
18
|
-
admin_id: {
|
|
19
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
20
|
-
required: true,
|
|
21
|
-
ref: "User",
|
|
22
|
-
},
|
|
23
|
-
billable_id: {
|
|
24
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
25
|
-
required: true,
|
|
26
|
-
ref: "User",
|
|
27
|
-
},
|
|
28
|
-
project_id: {
|
|
29
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
30
|
-
required: false,
|
|
31
|
-
ref: "Project",
|
|
32
|
-
default: null,
|
|
33
|
-
},
|
|
34
|
-
plan_type: {
|
|
35
|
-
type: String,
|
|
36
|
-
enum: Object.values(enum_1.SUBSCRIPTION_PLAN_TYPE),
|
|
37
|
-
default: enum_1.SUBSCRIPTION_PLAN_TYPE.FreePlan,
|
|
38
|
-
},
|
|
39
|
-
status: {
|
|
40
|
-
type: String,
|
|
41
|
-
enum: Object.values(enum_1.SUBSCRIPTION_STATUS),
|
|
42
|
-
default: enum_1.SUBSCRIPTION_STATUS.ACTIVE,
|
|
43
|
-
},
|
|
44
|
-
grafana_org_id: String,
|
|
45
|
-
specifications: {
|
|
46
|
-
type: Object,
|
|
47
|
-
default: {},
|
|
48
|
-
select: true,
|
|
49
|
-
},
|
|
50
|
-
amount: Number,
|
|
51
|
-
debit_date: String,
|
|
52
|
-
start_date: String,
|
|
53
|
-
expiry_date: String,
|
|
54
|
-
reminder_date: String,
|
|
55
|
-
transaction_retries: Number,
|
|
56
|
-
downgraded: {
|
|
57
|
-
default: false,
|
|
58
|
-
type: Boolean
|
|
59
|
-
},
|
|
60
|
-
is_pending_downgrade: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: false,
|
|
63
|
-
},
|
|
64
|
-
disabled_at: {
|
|
65
|
-
required: false,
|
|
66
|
-
type: Date,
|
|
67
|
-
},
|
|
68
|
-
trigger_created: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: false,
|
|
71
|
-
},
|
|
72
|
-
trigger_created_at: {
|
|
73
|
-
type: String,
|
|
74
|
-
},
|
|
75
|
-
job_identifier: {
|
|
76
|
-
type: String,
|
|
77
|
-
},
|
|
78
|
-
}, {
|
|
79
|
-
timestamps: true,
|
|
80
|
-
collection: "subscriptions",
|
|
81
|
-
});
|
|
82
|
-
exports.default = (0, mongoose_1.model)("Subscription", subscriptionSchema);
|
package/dist/tag.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ITag } from "./types";
|
|
2
|
-
declare const _default: import("mongoose").Model<ITag, {}, {}, {}, import("mongoose").Document<unknown, {}, ITag, {}, import("mongoose").DefaultSchemaOptions> & ITag & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, ITag>;
|
|
9
|
-
export default _default;
|
package/dist/tag.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const tagSchema = new mongoose_1.Schema({
|
|
5
|
-
name: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
trim: true,
|
|
9
|
-
},
|
|
10
|
-
color: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
teamId: {
|
|
15
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
16
|
-
ref: "Team",
|
|
17
|
-
default: null,
|
|
18
|
-
},
|
|
19
|
-
createdBy: {
|
|
20
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
21
|
-
ref: "User",
|
|
22
|
-
required: true,
|
|
23
|
-
},
|
|
24
|
-
}, {
|
|
25
|
-
timestamps: true,
|
|
26
|
-
collection: "tags",
|
|
27
|
-
});
|
|
28
|
-
tagSchema.index({ teamId: 1, name: 1 }, { unique: true });
|
|
29
|
-
exports.default = (0, mongoose_1.model)("Tag", tagSchema);
|
package/dist/team.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ITeam } from "./types";
|
|
2
|
-
declare const _default: import("mongoose").Model<ITeam, {}, {}, {}, import("mongoose").Document<unknown, {}, ITeam, {}, import("mongoose").DefaultSchemaOptions> & ITeam & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, ITeam>;
|
|
9
|
-
export default _default;
|
package/dist/team.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const teamSchema = new mongoose_1.Schema({
|
|
5
|
-
name: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
unique: true,
|
|
9
|
-
},
|
|
10
|
-
description: {
|
|
11
|
-
type: String,
|
|
12
|
-
},
|
|
13
|
-
members: [
|
|
14
|
-
{
|
|
15
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
16
|
-
ref: "Member",
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
projects: [
|
|
20
|
-
{
|
|
21
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
22
|
-
ref: "Project",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
image: {
|
|
26
|
-
type: String,
|
|
27
|
-
},
|
|
28
|
-
ai_usage_count: {
|
|
29
|
-
type: Number,
|
|
30
|
-
default: 0,
|
|
31
|
-
required: false
|
|
32
|
-
},
|
|
33
|
-
build_minutes: {
|
|
34
|
-
type: Number,
|
|
35
|
-
default: 0,
|
|
36
|
-
},
|
|
37
|
-
build_minutes_last_reset_at: {
|
|
38
|
-
type: Date,
|
|
39
|
-
default: null,
|
|
40
|
-
},
|
|
41
|
-
build_minutes_cycle_anchor: {
|
|
42
|
-
type: Date,
|
|
43
|
-
default: null,
|
|
44
|
-
},
|
|
45
|
-
build_disabled: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false,
|
|
48
|
-
},
|
|
49
|
-
sandbox_disabled: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false,
|
|
52
|
-
},
|
|
53
|
-
sandbox_disabled_by: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: null,
|
|
56
|
-
},
|
|
57
|
-
subscription: {
|
|
58
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
59
|
-
required: false,
|
|
60
|
-
ref: "Subscription",
|
|
61
|
-
},
|
|
62
|
-
size: {
|
|
63
|
-
type: Number,
|
|
64
|
-
required: false,
|
|
65
|
-
},
|
|
66
|
-
enforce_2fa: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false,
|
|
69
|
-
},
|
|
70
|
-
enforce_2fa_at: {
|
|
71
|
-
type: Date,
|
|
72
|
-
default: null,
|
|
73
|
-
},
|
|
74
|
-
enforce_2fa_by: {
|
|
75
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
76
|
-
ref: "User",
|
|
77
|
-
default: null,
|
|
78
|
-
},
|
|
79
|
-
}, {
|
|
80
|
-
timestamps: true,
|
|
81
|
-
});
|
|
82
|
-
exports.default = (0, mongoose_1.model)("Team", teamSchema);
|
package/dist/token.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IToken } from "./types";
|
|
2
|
-
declare const _default: import("mongoose").Model<IToken, {}, {}, {}, import("mongoose").Document<unknown, {}, IToken, {}, import("mongoose").DefaultSchemaOptions> & IToken & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, IToken>;
|
|
9
|
-
export default _default;
|
package/dist/token.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const tokenSchema = new mongoose_1.Schema({
|
|
5
|
-
subscription_id: {
|
|
6
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
-
ref: "Subscription",
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
owner_id: {
|
|
11
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
12
|
-
ref: "User",
|
|
13
|
-
required: true,
|
|
14
|
-
unique: true,
|
|
15
|
-
},
|
|
16
|
-
key_id: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true,
|
|
19
|
-
unique: true,
|
|
20
|
-
},
|
|
21
|
-
key: {
|
|
22
|
-
type: String,
|
|
23
|
-
required: false,
|
|
24
|
-
unique: true,
|
|
25
|
-
},
|
|
26
|
-
tokens_remaining: {
|
|
27
|
-
type: Number,
|
|
28
|
-
required: true,
|
|
29
|
-
},
|
|
30
|
-
tokens_used: {
|
|
31
|
-
type: Number,
|
|
32
|
-
required: true,
|
|
33
|
-
default: 0,
|
|
34
|
-
},
|
|
35
|
-
}, { timestamps: true });
|
|
36
|
-
exports.default = (0, mongoose_1.model)("Token", tokenSchema, "api_tokens");
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Document, Types } from "mongoose";
|
|
2
|
-
import { ITeam } from "./team";
|
|
3
|
-
import { IUser } from "./user";
|
|
4
|
-
export interface IActivityLog extends Document {
|
|
5
|
-
user_id: IUser | Types.ObjectId;
|
|
6
|
-
team_id?: ITeam | Types.ObjectId;
|
|
7
|
-
action: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
context?: string;
|
|
10
|
-
metadata?: Record<string, any>;
|
|
11
|
-
ip_address?: string;
|
|
12
|
-
user_agent?: string;
|
|
13
|
-
status: "success" | "failure";
|
|
14
|
-
resource_type?: string;
|
|
15
|
-
resource_id?: Types.ObjectId;
|
|
16
|
-
created_at: Date;
|
|
17
|
-
updated_at: Date;
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IUser } from "./user";
|
|
3
|
-
import { ITeam } from "./team";
|
|
4
|
-
export interface IAppMessage extends Document {
|
|
5
|
-
userId?: IUser;
|
|
6
|
-
teamId?: ITeam;
|
|
7
|
-
level: string;
|
|
8
|
-
message: string;
|
|
9
|
-
seen: boolean;
|
|
10
|
-
meta?: Record<string, any>;
|
|
11
|
-
route?: string;
|
|
12
|
-
type: string;
|
|
13
|
-
createdAt: Date;
|
|
14
|
-
updatedAt: Date;
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Types } from "mongoose";
|
|
2
|
-
import { IUser } from "./user";
|
|
3
|
-
import { ISubscription } from "./subscription";
|
|
4
|
-
import { ITeam } from "./team";
|
|
5
|
-
export interface IAutoScalingGroup extends Document {
|
|
6
|
-
_id: Types.ObjectId;
|
|
7
|
-
name: string;
|
|
8
|
-
replicas: number;
|
|
9
|
-
user_id?: IUser;
|
|
10
|
-
team_id?: ITeam;
|
|
11
|
-
subscription_id: ISubscription;
|
|
12
|
-
min_containers: number;
|
|
13
|
-
max_containers: number;
|
|
14
|
-
active: boolean;
|
|
15
|
-
max_cpu: number;
|
|
16
|
-
max_memory: number;
|
|
17
|
-
meta: Record<string, any>;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
updatedAt: Date;
|
|
20
|
-
}
|
package/dist/types/card.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { CARD_TYPES } from "../enum";
|
|
3
|
-
export interface ICard extends Document {
|
|
4
|
-
user_id: string;
|
|
5
|
-
last4: string;
|
|
6
|
-
card_type: CARD_TYPES;
|
|
7
|
-
preferred: boolean;
|
|
8
|
-
exp_month: string;
|
|
9
|
-
exp_year: string;
|
|
10
|
-
signature: string;
|
|
11
|
-
authorization_code: string;
|
|
12
|
-
}
|
package/dist/types/card.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IUser } from "./user";
|
|
3
|
-
import { ITeam } from "./team";
|
|
4
|
-
export interface ICashierSubscription extends Document {
|
|
5
|
-
user_id: IUser;
|
|
6
|
-
team_id?: ITeam | null;
|
|
7
|
-
type: string;
|
|
8
|
-
stripe_id: string;
|
|
9
|
-
stripe_status: string;
|
|
10
|
-
stripe_price: string | null;
|
|
11
|
-
quantity: number | null;
|
|
12
|
-
trial_ends_at: Date | null;
|
|
13
|
-
ends_at: Date | null;
|
|
14
|
-
plan_type: string | null;
|
|
15
|
-
domain_id: string | null;
|
|
16
|
-
created_at: Date;
|
|
17
|
-
updated_at: Date;
|
|
18
|
-
}
|
|
19
|
-
export interface ICashierSubscriptionItem extends Document {
|
|
20
|
-
subscription_id: string;
|
|
21
|
-
stripe_id: string;
|
|
22
|
-
stripe_product: string | null;
|
|
23
|
-
stripe_price: string;
|
|
24
|
-
quantity: number | null;
|
|
25
|
-
created_at: Date;
|
|
26
|
-
updated_at: Date;
|
|
27
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { COLLAB_ANNOTATION_STATUS } from "../enum";
|
|
3
|
-
import { IUser } from "./user";
|
|
4
|
-
import { IProject } from "./project";
|
|
5
|
-
export interface ICollabAnnotation extends Document {
|
|
6
|
-
projectId: IProject;
|
|
7
|
-
userId?: IUser;
|
|
8
|
-
pageUrl: string;
|
|
9
|
-
pagePath: string;
|
|
10
|
-
xPercent: number;
|
|
11
|
-
yPercent: number;
|
|
12
|
-
elementSelector?: string;
|
|
13
|
-
elementOffsetX?: number;
|
|
14
|
-
elementOffsetY?: number;
|
|
15
|
-
status: COLLAB_ANNOTATION_STATUS;
|
|
16
|
-
resolvedAt?: Date;
|
|
17
|
-
resolvedBy?: IUser;
|
|
18
|
-
guestName?: string;
|
|
19
|
-
guestEmail?: string;
|
|
20
|
-
githubPrCommentId?: number;
|
|
21
|
-
githubPrCommentUrl?: string;
|
|
22
|
-
githubIssueUrl?: string;
|
|
23
|
-
githubIssueNumber?: number;
|
|
24
|
-
subscribedUserIds?: IUser[];
|
|
25
|
-
createdAt: Date;
|
|
26
|
-
updatedAt: Date;
|
|
27
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IUser } from "./user";
|
|
3
|
-
import { ICollabAnnotation } from "./collab-annotation";
|
|
4
|
-
export interface ICollabAttachment {
|
|
5
|
-
url: string;
|
|
6
|
-
fileName: string;
|
|
7
|
-
fileType: string;
|
|
8
|
-
fileSize: number;
|
|
9
|
-
}
|
|
10
|
-
export interface ICollabComment extends Document {
|
|
11
|
-
annotationId: ICollabAnnotation;
|
|
12
|
-
userId?: IUser;
|
|
13
|
-
body?: string;
|
|
14
|
-
screenshot?: string;
|
|
15
|
-
attachments?: ICollabAttachment[];
|
|
16
|
-
guestName?: string;
|
|
17
|
-
guestEmail?: string;
|
|
18
|
-
createdAt: Date;
|
|
19
|
-
updatedAt: Date;
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { COLLAB_INTEGRATION_TYPE } from "../enum";
|
|
3
|
-
import { IProject } from "./project";
|
|
4
|
-
import { IUser } from "./user";
|
|
5
|
-
export interface ICollabIntegration extends Document {
|
|
6
|
-
projectId: IProject;
|
|
7
|
-
userId: IUser;
|
|
8
|
-
type: COLLAB_INTEGRATION_TYPE;
|
|
9
|
-
webhookUrl: string;
|
|
10
|
-
channelName?: string;
|
|
11
|
-
enabled: boolean;
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
2
|
-
import { IUser } from "./user";
|
|
3
|
-
export interface ICollabPushSubscription extends Document {
|
|
4
|
-
userId: IUser;
|
|
5
|
-
endpoint: string;
|
|
6
|
-
keys: {
|
|
7
|
-
p256dh: string;
|
|
8
|
-
auth: string;
|
|
9
|
-
};
|
|
10
|
-
domain: string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
}
|