@brimble/models 3.8.77 → 3.8.79
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/activity-log.d.ts +6 -27
- package/dist/alert-event.d.ts +9 -0
- package/dist/alert-event.js +78 -0
- package/dist/alert-rule-state.d.ts +9 -0
- package/dist/alert-rule-state.js +49 -0
- package/dist/alert-rule.d.ts +9 -0
- package/dist/alert-rule.js +77 -0
- package/dist/app-message.d.ts +6 -27
- package/dist/app-message.js +2 -2
- package/dist/auto-scaling.d.ts +6 -27
- package/dist/card.d.ts +6 -27
- package/dist/cashier_subscription.d.ts +6 -27
- package/dist/cashier_subscription_item.d.ts +6 -27
- package/dist/collab-annotation.d.ts +6 -27
- package/dist/collab-comment.d.ts +6 -27
- package/dist/collab-integration.d.ts +6 -27
- package/dist/collab-push-subscription.d.ts +6 -27
- package/dist/collab-settings.d.ts +6 -27
- package/dist/collab-share-token.d.ts +6 -27
- package/dist/compute.d.ts +6 -27
- package/dist/compute.js +6 -0
- package/dist/db-image.d.ts +6 -27
- package/dist/db-image.js +19 -0
- package/dist/domain/dns-changelog.d.ts +9 -0
- package/dist/domain/dns-changelog.js +82 -0
- package/dist/domain/dns.d.ts +6 -27
- package/dist/domain/index.d.ts +6 -27
- package/dist/domain/index.js +4 -0
- package/dist/domain/renewal.d.ts +6 -27
- package/dist/domain/transfer.d.ts +6 -27
- package/dist/enum/index.d.ts +184 -0
- package/dist/enum/index.js +273 -37
- package/dist/env.d.ts +6 -27
- package/dist/environment-variable.d.ts +6 -27
- package/dist/environment-variable.js +8 -0
- package/dist/follower.d.ts +6 -27
- package/dist/following.d.ts +6 -27
- package/dist/framework.d.ts +6 -27
- package/dist/idempotency.d.ts +9 -0
- package/dist/idempotency.js +17 -0
- package/dist/index.d.ts +25 -2
- package/dist/index.js +92 -3
- package/dist/integration.d.ts +6 -27
- package/dist/intention.d.ts +6 -27
- package/dist/invoice.d.ts +6 -27
- package/dist/job.d.ts +6 -2
- package/dist/job.js +17 -7
- package/dist/license.d.ts +6 -27
- package/dist/load-balancer-port.d.ts +6 -27
- package/dist/logs.d.ts +6 -27
- package/dist/logs.js +0 -2
- package/dist/member-permission.d.ts +6 -27
- package/dist/member.d.ts +6 -27
- package/dist/object-storage-usage-segment.d.ts +9 -0
- package/dist/object-storage-usage-segment.js +46 -0
- package/dist/ownership-transfer.d.ts +6 -27
- package/dist/permission.d.ts +6 -27
- package/dist/plan_configuration.d.ts +6 -2
- package/dist/plan_configuration.js +22 -0
- package/dist/project/connection.d.ts +6 -27
- package/dist/project/index.d.ts +12 -29
- package/dist/project/index.js +29 -0
- package/dist/project/preview.d.ts +6 -27
- package/dist/project-environment.d.ts +6 -27
- package/dist/project-network-settings.d.ts +9 -0
- package/dist/project-network-settings.js +34 -0
- package/dist/project-tag-assignment.d.ts +6 -27
- package/dist/project_analytics.d.ts +6 -27
- package/dist/provider.d.ts +6 -27
- package/dist/provider.js +1 -0
- package/dist/quest-campaign.d.ts +9 -0
- package/dist/quest-campaign.js +39 -0
- package/dist/quest-participation.d.ts +9 -0
- package/dist/quest-participation.js +21 -0
- package/dist/quest-reward-issuance.d.ts +9 -0
- package/dist/quest-reward-issuance.js +19 -0
- package/dist/ratelimit.d.ts +9 -0
- package/dist/ratelimit.js +36 -0
- package/dist/region.d.ts +7 -28
- package/dist/role.d.ts +6 -27
- package/dist/sandbox-activity.d.ts +9 -0
- package/dist/sandbox-activity.js +49 -0
- package/dist/sandbox-image.d.ts +9 -0
- package/dist/sandbox-image.js +31 -0
- package/dist/sandbox-snapshot-usage-segment.d.ts +9 -0
- package/dist/sandbox-snapshot-usage-segment.js +49 -0
- package/dist/sandbox-snapshot.d.ts +9 -0
- package/dist/sandbox-snapshot.js +51 -0
- package/dist/sandbox-usage-segment.d.ts +9 -0
- package/dist/sandbox-usage-segment.js +57 -0
- package/dist/sandbox.d.ts +9 -0
- package/dist/sandbox.js +142 -0
- package/dist/server.d.ts +6 -27
- package/dist/settings.d.ts +6 -27
- package/dist/storage.d.ts +43 -0
- package/dist/storage.js +118 -0
- package/dist/streak-day.d.ts +9 -0
- package/dist/streak-day.js +11 -0
- package/dist/streak-event.d.ts +9 -0
- package/dist/streak-event.js +18 -0
- package/dist/streak-milestone.d.ts +9 -0
- package/dist/streak-milestone.js +11 -0
- package/dist/streak.d.ts +9 -0
- package/dist/streak.js +17 -0
- package/dist/subscription.d.ts +6 -27
- package/dist/tag.d.ts +6 -27
- package/dist/team.d.ts +6 -27
- package/dist/team.js +26 -0
- package/dist/token.d.ts +6 -27
- package/dist/types/alert-event.d.ts +23 -0
- package/dist/types/alert-event.js +2 -0
- package/dist/types/alert-rule-state.d.ts +13 -0
- package/dist/types/alert-rule-state.js +2 -0
- package/dist/types/alert-rule.d.ts +21 -0
- package/dist/types/alert-rule.js +2 -0
- package/dist/types/app-message.d.ts +2 -2
- package/dist/types/auto-scaling-group.d.ts +1 -1
- package/dist/types/compute.d.ts +3 -1
- package/dist/types/db-image.d.ts +5 -1
- package/dist/types/domain/dns-changelog.d.ts +20 -0
- package/dist/types/domain/dns-changelog.js +2 -0
- package/dist/types/domain/index.d.ts +1 -0
- package/dist/types/environment-variable.d.ts +2 -0
- package/dist/types/idempotency.d.ts +10 -0
- package/dist/types/idempotency.js +2 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/object-storage-usage-segment.d.ts +23 -0
- package/dist/types/object-storage-usage-segment.js +2 -0
- package/dist/types/plan_configuration.d.ts +22 -0
- package/dist/types/project/index.d.ts +7 -0
- package/dist/types/project-network-settings.d.ts +28 -0
- package/dist/types/project-network-settings.js +2 -0
- package/dist/types/provider.d.ts +1 -0
- package/dist/types/quest-campaign.d.ts +38 -0
- package/dist/types/quest-campaign.js +2 -0
- package/dist/types/quest-participation.d.ts +19 -0
- package/dist/types/quest-participation.js +2 -0
- package/dist/types/quest-reward-issuance.d.ts +17 -0
- package/dist/types/quest-reward-issuance.js +2 -0
- package/dist/types/ratelimit.d.ts +41 -0
- package/dist/types/ratelimit.js +2 -0
- package/dist/types/region.d.ts +2 -2
- package/dist/types/sandbox-activity.d.ts +14 -0
- package/dist/types/sandbox-activity.js +2 -0
- package/dist/types/sandbox-image.d.ts +9 -0
- package/dist/types/sandbox-image.js +2 -0
- package/dist/types/sandbox-snapshot-usage-segment.d.ts +16 -0
- package/dist/types/sandbox-snapshot-usage-segment.js +2 -0
- package/dist/types/sandbox-snapshot.d.ts +16 -0
- package/dist/types/sandbox-snapshot.js +2 -0
- package/dist/types/sandbox-usage-segment.d.ts +25 -0
- package/dist/types/sandbox-usage-segment.js +2 -0
- package/dist/types/sandbox.d.ts +46 -0
- package/dist/types/sandbox.js +2 -0
- package/dist/types/storage.d.ts +131 -0
- package/dist/types/storage.js +2 -0
- package/dist/types/streak-day.d.ts +9 -0
- package/dist/types/streak-day.js +2 -0
- package/dist/types/streak-event.d.ts +13 -0
- package/dist/types/streak-event.js +2 -0
- package/dist/types/streak-milestone.d.ts +10 -0
- package/dist/types/streak-milestone.js +2 -0
- package/dist/types/streak.d.ts +17 -0
- package/dist/types/streak.js +2 -0
- package/dist/types/team.d.ts +8 -2
- package/dist/types/user.d.ts +4 -0
- package/dist/types/volume-usage-segment.d.ts +16 -0
- package/dist/types/volume-usage-segment.js +2 -0
- package/dist/types/volume.d.ts +9 -3
- package/dist/types/wallet.d.ts +1 -0
- package/dist/user.d.ts +6 -27
- package/dist/user.js +14 -0
- package/dist/volume-usage-segment.d.ts +9 -0
- package/dist/volume-usage-segment.js +46 -0
- package/dist/volume.d.ts +6 -27
- package/dist/volume.js +21 -4
- package/dist/wallet.d.ts +6 -27
- package/dist/wallet.js +4 -0
- package/dist/webhook-category.d.ts +6 -27
- package/dist/webhook-event.d.ts +6 -27
- package/dist/webhook-setting.d.ts +6 -27
- package/package.json +9 -5
- package/.claude/settings.local.json +0 -7
- package/.eslintrc.js +0 -26
- package/.prettierrc +0 -4
- package/activity-log.ts +0 -66
- package/app-message.ts +0 -18
- package/auto-scaling.ts +0 -72
- package/card.ts +0 -45
- package/cashier_subscription.ts +0 -35
- package/cashier_subscription_item.ts +0 -25
- package/collab-annotation.ts +0 -36
- package/collab-comment.ts +0 -27
- package/collab-integration.ts +0 -21
- package/collab-push-subscription.ts +0 -19
- package/collab-settings.ts +0 -29
- package/collab-share-token.ts +0 -15
- package/compute.ts +0 -88
- package/db-image.ts +0 -66
- package/domain/dns.ts +0 -34
- package/domain/index.ts +0 -109
- package/domain/renewal.ts +0 -25
- package/domain/transfer.ts +0 -112
- package/enum/index.ts +0 -257
- package/env.ts +0 -38
- package/environment-variable.ts +0 -21
- package/follower.ts +0 -19
- package/following.ts +0 -19
- package/framework.ts +0 -88
- package/index.ts +0 -199
- package/integration.ts +0 -39
- package/intention.ts +0 -40
- package/invoice.ts +0 -36
- package/job.ts +0 -30
- package/load-balancer-port.ts +0 -31
- package/logs.ts +0 -47
- package/member-permission.ts +0 -13
- package/member.ts +0 -44
- package/ownership-transfer.ts +0 -42
- package/permission.ts +0 -13
- package/plan_configuration.ts +0 -48
- package/project/connection.ts +0 -21
- package/project/index.ts +0 -238
- package/project/preview.ts +0 -41
- package/project-environment.ts +0 -18
- package/project-tag-assignment.ts +0 -40
- package/project_analytics.ts +0 -26
- package/provider.ts +0 -11
- package/region.ts +0 -18
- package/role.ts +0 -12
- package/server.ts +0 -105
- package/settings.ts +0 -53
- package/subscription.ts +0 -86
- package/tag.ts +0 -34
- package/team.ts +0 -60
- package/token.ts +0 -40
- package/tsconfig.json +0 -14
- package/types/activity-log.ts +0 -19
- package/types/app-message.ts +0 -16
- package/types/auto-scaling-group.ts +0 -21
- package/types/card.ts +0 -20
- package/types/cashier_subscription.ts +0 -29
- package/types/collab-annotation.ts +0 -28
- package/types/collab-comment.ts +0 -22
- package/types/collab-integration.ts +0 -14
- package/types/collab-push-subscription.ts +0 -10
- package/types/collab-settings.ts +0 -17
- package/types/collab-share-token.ts +0 -13
- package/types/compute.ts +0 -51
- package/types/db-image.ts +0 -18
- package/types/domain/dns.ts +0 -13
- package/types/domain/index.ts +0 -35
- package/types/domain/renewal.ts +0 -11
- package/types/domain/transfer.ts +0 -32
- package/types/env.ts +0 -14
- package/types/environment-variable.ts +0 -13
- package/types/following.ts +0 -6
- package/types/framework.ts +0 -41
- package/types/git.ts +0 -15
- package/types/index.ts +0 -56
- package/types/installed_integration.ts +0 -9
- package/types/integration.ts +0 -24
- package/types/intention.ts +0 -14
- package/types/invoice.ts +0 -16
- package/types/job.ts +0 -20
- package/types/license.ts +0 -19
- package/types/load-balancer-port.ts +0 -13
- package/types/logs.ts +0 -36
- package/types/member-permission.ts +0 -11
- package/types/member.ts +0 -19
- package/types/ownership-transfer.ts +0 -13
- package/types/permission.ts +0 -19
- package/types/plan_configuration.ts +0 -35
- package/types/project/connection.ts +0 -7
- package/types/project/index.ts +0 -96
- package/types/project/preview.ts +0 -22
- package/types/project-environment.ts +0 -14
- package/types/project-tag-assignment.ts +0 -14
- package/types/project_analytics.ts +0 -12
- package/types/provider.ts +0 -8
- package/types/region.ts +0 -16
- package/types/role.ts +0 -13
- package/types/server.ts +0 -59
- package/types/settings.ts +0 -19
- package/types/subscription.ts +0 -34
- package/types/tag.ts +0 -12
- package/types/team.ts +0 -19
- package/types/token.ts +0 -12
- package/types/user.ts +0 -41
- package/types/volume.ts +0 -15
- package/types/wallet.ts +0 -8
- package/types/webhook-category.ts +0 -5
- package/types/webhook-event.ts +0 -8
- package/types/webhook-setting.ts +0 -17
- package/user.ts +0 -61
- package/volume.ts +0 -36
- package/wallet.ts +0 -23
- package/webhook-category.ts +0 -11
- package/webhook-event.ts +0 -20
- package/webhook-setting.ts +0 -48
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
1
|
import { IWebhookCategory } from "./types/webhook-category";
|
|
27
|
-
declare const _default: import("mongoose").Model<IWebhookCategory, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookCategory> & IWebhookCategory & {
|
|
2
|
+
declare const _default: import("mongoose").Model<IWebhookCategory, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookCategory, {}, import("mongoose").DefaultSchemaOptions> & IWebhookCategory & Required<{
|
|
28
3
|
_id: import("mongoose").Types.ObjectId;
|
|
29
|
-
}
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IWebhookCategory>;
|
|
30
9
|
export default _default;
|
package/dist/webhook-event.d.ts
CHANGED
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
1
|
import { IWebhookEvent } from "./types/webhook-event";
|
|
27
|
-
declare const _default: import("mongoose").Model<IWebhookEvent, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookEvent> & IWebhookEvent & {
|
|
2
|
+
declare const _default: import("mongoose").Model<IWebhookEvent, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookEvent, {}, import("mongoose").DefaultSchemaOptions> & IWebhookEvent & Required<{
|
|
28
3
|
_id: import("mongoose").Types.ObjectId;
|
|
29
|
-
}
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IWebhookEvent>;
|
|
30
9
|
export default _default;
|
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
1
|
import { IWebhookSetting } from "./types/webhook-setting";
|
|
27
|
-
declare const _default: import("mongoose").Model<IWebhookSetting, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookSetting> & IWebhookSetting & {
|
|
2
|
+
declare const _default: import("mongoose").Model<IWebhookSetting, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookSetting, {}, import("mongoose").DefaultSchemaOptions> & IWebhookSetting & Required<{
|
|
28
3
|
_id: import("mongoose").Types.ObjectId;
|
|
29
|
-
}
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IWebhookSetting>;
|
|
30
9
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brimble/models",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.79",
|
|
4
4
|
"description": "Brimble models",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
|
-
"build": "rm -rf dist && tsc -p ."
|
|
11
|
+
"build": "rm -rf dist && tsc -p .",
|
|
12
|
+
"prepack": "npm run build"
|
|
9
13
|
},
|
|
10
14
|
"license": "MIT",
|
|
11
15
|
"dependencies": {
|
|
16
|
+
"@brimble/models": "^3.8.21",
|
|
12
17
|
"@brimble/utils": "^1.5.23",
|
|
13
18
|
"dotenv": "^8.2.0",
|
|
14
|
-
"mongoose": "^
|
|
15
|
-
"soft-delete-plugin-mongoose": "^1.0.17",
|
|
19
|
+
"mongoose": "^9.6.2",
|
|
16
20
|
"uuid": "^8.3.2"
|
|
17
21
|
},
|
|
18
22
|
"devDependencies": {
|
|
@@ -20,7 +24,7 @@
|
|
|
20
24
|
"@types/uuid": "^8.3.0",
|
|
21
25
|
"nodemon": "^2.0.2",
|
|
22
26
|
"ts-node": "^8.10.2",
|
|
23
|
-
"typescript": "^
|
|
27
|
+
"typescript": "^5.9.3"
|
|
24
28
|
},
|
|
25
29
|
"gitHead": "54989906c229a84ccecc57c28ebd8e8dccffd363"
|
|
26
30
|
}
|
package/.eslintrc.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: "@typescript-eslint/parser",
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: "tsconfig.json",
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: "module",
|
|
7
|
-
},
|
|
8
|
-
plugins: ["@typescript-eslint/eslint-plugin"],
|
|
9
|
-
extends: [
|
|
10
|
-
"plugin:@typescript-eslint/recommended",
|
|
11
|
-
"plugin:prettier/recommended",
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
jest: true,
|
|
17
|
-
},
|
|
18
|
-
ignorePatterns: [".eslintrc.js"],
|
|
19
|
-
rules: {
|
|
20
|
-
"@typescript-eslint/interface-name-prefix": "off",
|
|
21
|
-
"@typescript-eslint/explicit-function-return-type": "off",
|
|
22
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
23
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
24
|
-
"@typescript-eslint/no-var-requires": 0,
|
|
25
|
-
},
|
|
26
|
-
};
|
package/.prettierrc
DELETED
package/activity-log.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { IActivityLog } from "./types";
|
|
3
|
-
|
|
4
|
-
const activityLogSchema: Schema = new Schema(
|
|
5
|
-
{
|
|
6
|
-
user_id: {
|
|
7
|
-
type: Schema.Types.ObjectId,
|
|
8
|
-
ref: "User",
|
|
9
|
-
required: true,
|
|
10
|
-
index: true,
|
|
11
|
-
},
|
|
12
|
-
team_id: {
|
|
13
|
-
type: Schema.Types.ObjectId,
|
|
14
|
-
ref: "Team",
|
|
15
|
-
default: null,
|
|
16
|
-
index: true,
|
|
17
|
-
},
|
|
18
|
-
action: {
|
|
19
|
-
type: String,
|
|
20
|
-
required: true,
|
|
21
|
-
index: true,
|
|
22
|
-
},
|
|
23
|
-
description: {
|
|
24
|
-
type: String,
|
|
25
|
-
},
|
|
26
|
-
context: {
|
|
27
|
-
type: String,
|
|
28
|
-
},
|
|
29
|
-
metadata: {
|
|
30
|
-
type: Schema.Types.Mixed,
|
|
31
|
-
default: {},
|
|
32
|
-
},
|
|
33
|
-
ip_address: {
|
|
34
|
-
type: String,
|
|
35
|
-
},
|
|
36
|
-
user_agent: {
|
|
37
|
-
type: String,
|
|
38
|
-
},
|
|
39
|
-
status: {
|
|
40
|
-
type: String,
|
|
41
|
-
enum: ["success", "failure"],
|
|
42
|
-
default: "success",
|
|
43
|
-
},
|
|
44
|
-
resource_type: {
|
|
45
|
-
type: String,
|
|
46
|
-
},
|
|
47
|
-
resource_id: {
|
|
48
|
-
type: Schema.Types.ObjectId,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
timestamps: {
|
|
53
|
-
createdAt: "created_at",
|
|
54
|
-
updatedAt: "updated_at",
|
|
55
|
-
},
|
|
56
|
-
collection: "activity_logs",
|
|
57
|
-
},
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
activityLogSchema.index({ user_id: 1, created_at: -1 });
|
|
61
|
-
activityLogSchema.index({ user_id: 1, action: 1, created_at: -1 });
|
|
62
|
-
activityLogSchema.index({ team_id: 1, created_at: -1 });
|
|
63
|
-
activityLogSchema.index({ team_id: 1, action: 1, created_at: -1 });
|
|
64
|
-
activityLogSchema.index({ resource_type: 1, resource_id: 1 });
|
|
65
|
-
|
|
66
|
-
export default model<IActivityLog>("ActivityLog", activityLogSchema);
|
package/app-message.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { IAppMessage } from "./types";
|
|
3
|
-
|
|
4
|
-
const appMessageSchema = new Schema(
|
|
5
|
-
{
|
|
6
|
-
userId: { type: Schema.Types.ObjectId, ref: "User", required: true, index: true },
|
|
7
|
-
teamId: { type: Schema.Types.ObjectId, ref: "Team", required: true, index: true },
|
|
8
|
-
level: { type: String, required: true },
|
|
9
|
-
message: { type: String, required: true },
|
|
10
|
-
seen: { type: Boolean, default: false, index: true },
|
|
11
|
-
meta: { type: Schema.Types.Mixed },
|
|
12
|
-
route: { type: String },
|
|
13
|
-
type: { type: String, required: true },
|
|
14
|
-
},
|
|
15
|
-
{ timestamps: true, collection: "app_messages" },
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
export default model<IAppMessage>("AppMessage", appMessageSchema);
|
package/auto-scaling.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { IAutoScalingGroup } from "./types";
|
|
3
|
-
|
|
4
|
-
const autoScalingGroupSchema = new Schema(
|
|
5
|
-
{
|
|
6
|
-
name: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
replicas: {
|
|
11
|
-
type: Number,
|
|
12
|
-
required: false,
|
|
13
|
-
default: 1,
|
|
14
|
-
},
|
|
15
|
-
user_id: {
|
|
16
|
-
type: Schema.Types.ObjectId,
|
|
17
|
-
ref: "User",
|
|
18
|
-
required: false,
|
|
19
|
-
},
|
|
20
|
-
team_id: {
|
|
21
|
-
type: Schema.Types.ObjectId,
|
|
22
|
-
ref: "Team",
|
|
23
|
-
required: false,
|
|
24
|
-
},
|
|
25
|
-
subscription_id: {
|
|
26
|
-
type: Schema.Types.ObjectId,
|
|
27
|
-
ref: "Subscription",
|
|
28
|
-
required: true,
|
|
29
|
-
},
|
|
30
|
-
min_containers: {
|
|
31
|
-
type: Number,
|
|
32
|
-
required: true,
|
|
33
|
-
min: 1,
|
|
34
|
-
default: 1,
|
|
35
|
-
},
|
|
36
|
-
max_containers: {
|
|
37
|
-
type: Number,
|
|
38
|
-
required: true,
|
|
39
|
-
default: 10,
|
|
40
|
-
},
|
|
41
|
-
max_memory: {
|
|
42
|
-
type: Number,
|
|
43
|
-
required: false,
|
|
44
|
-
},
|
|
45
|
-
max_cpu: {
|
|
46
|
-
type: Number,
|
|
47
|
-
required: false,
|
|
48
|
-
},
|
|
49
|
-
active: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: true,
|
|
52
|
-
},
|
|
53
|
-
meta: {
|
|
54
|
-
type: Object,
|
|
55
|
-
default: {},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
timestamps: true,
|
|
60
|
-
collection: "autoscaling_groups",
|
|
61
|
-
},
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
autoScalingGroupSchema.index({ user_id: 1 });
|
|
65
|
-
autoScalingGroupSchema.index({ team_id: 1 });
|
|
66
|
-
autoScalingGroupSchema.index({ subscription_id: 1 });
|
|
67
|
-
|
|
68
|
-
export default model<IAutoScalingGroup>(
|
|
69
|
-
"AutoScalingGroup",
|
|
70
|
-
autoScalingGroupSchema,
|
|
71
|
-
"auto_scaling_groups",
|
|
72
|
-
);
|
package/card.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { CARD_TYPES } from "./enum";
|
|
3
|
-
import { ICard } from "./types";
|
|
4
|
-
|
|
5
|
-
const cardSchema = new Schema(
|
|
6
|
-
{
|
|
7
|
-
user_id: {
|
|
8
|
-
ref: "User",
|
|
9
|
-
type: Schema.Types.ObjectId,
|
|
10
|
-
},
|
|
11
|
-
last4: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
card_type: {
|
|
16
|
-
type: String,
|
|
17
|
-
enum: Object.keys(CARD_TYPES),
|
|
18
|
-
required: true,
|
|
19
|
-
},
|
|
20
|
-
exp_month: {
|
|
21
|
-
type: String,
|
|
22
|
-
required: true,
|
|
23
|
-
},
|
|
24
|
-
exp_year: {
|
|
25
|
-
type: String,
|
|
26
|
-
required: true,
|
|
27
|
-
},
|
|
28
|
-
signature: {
|
|
29
|
-
type: String,
|
|
30
|
-
required: false,
|
|
31
|
-
},
|
|
32
|
-
authorization_code: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: true,
|
|
35
|
-
},
|
|
36
|
-
preferred: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: true,
|
|
39
|
-
required: false,
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
{ timestamps: true, collection: "cards" },
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
export default model<ICard>("Card", cardSchema);
|
package/cashier_subscription.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
|
|
3
|
-
import { ICashierSubscription } from "./types";
|
|
4
|
-
|
|
5
|
-
const cashierSubscriptionSchema: Schema = new Schema(
|
|
6
|
-
{
|
|
7
|
-
user_id: {
|
|
8
|
-
ref: "User",
|
|
9
|
-
type: Schema.Types.ObjectId,
|
|
10
|
-
required: true
|
|
11
|
-
},
|
|
12
|
-
type: { type: String, default: "default" },
|
|
13
|
-
stripe_id: { type: String, required: true },
|
|
14
|
-
stripe_status: { type: String, required: true },
|
|
15
|
-
stripe_price: { type: String, default: null },
|
|
16
|
-
quantity: { type: Number, default: null },
|
|
17
|
-
trial_ends_at: { type: Date, default: null },
|
|
18
|
-
ends_at: { type: Date, default: null },
|
|
19
|
-
team_id: { type: Schema.Types.ObjectId, ref: "Team", default: null },
|
|
20
|
-
plan_type: { type: String, default: null },
|
|
21
|
-
domain_id: { type: Schema.Types.ObjectId, ref: "Domain", default: null },
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
timestamps: {
|
|
25
|
-
createdAt: "created_at",
|
|
26
|
-
updatedAt: "updated_at",
|
|
27
|
-
},
|
|
28
|
-
collection: "cashier_subscriptions",
|
|
29
|
-
},
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
export default model<ICashierSubscription>(
|
|
33
|
-
"CashierSubscription",
|
|
34
|
-
cashierSubscriptionSchema,
|
|
35
|
-
);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
|
|
3
|
-
import { ICashierSubscriptionItem } from "./types";
|
|
4
|
-
|
|
5
|
-
const cashierSubscriptionItemSchema: Schema = new Schema(
|
|
6
|
-
{
|
|
7
|
-
subscription_id: { type: String, required: true },
|
|
8
|
-
stripe_id: { type: String, required: true },
|
|
9
|
-
stripe_product: { type: String, default: null },
|
|
10
|
-
stripe_price: { type: String, required: true },
|
|
11
|
-
quantity: { type: Number, default: null },
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
timestamps: {
|
|
15
|
-
createdAt: "created_at",
|
|
16
|
-
updatedAt: "updated_at",
|
|
17
|
-
},
|
|
18
|
-
collection: "cashier_subscription_items",
|
|
19
|
-
},
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
export default model<ICashierSubscriptionItem>(
|
|
23
|
-
"CashierSubscriptionItem",
|
|
24
|
-
cashierSubscriptionItemSchema,
|
|
25
|
-
);
|
package/collab-annotation.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { COLLAB_ANNOTATION_STATUS } from "./enum";
|
|
3
|
-
import { ICollabAnnotation } from "./types";
|
|
4
|
-
|
|
5
|
-
const collabAnnotationSchema = new Schema(
|
|
6
|
-
{
|
|
7
|
-
projectId: { type: Schema.Types.ObjectId, ref: "Project", required: true, index: true },
|
|
8
|
-
userId: { type: Schema.Types.ObjectId, ref: "User" },
|
|
9
|
-
pageUrl: { type: String, required: true },
|
|
10
|
-
pagePath: { type: String, required: true, index: true },
|
|
11
|
-
xPercent: { type: Number, required: true },
|
|
12
|
-
yPercent: { type: Number, required: true },
|
|
13
|
-
elementSelector: { type: String },
|
|
14
|
-
elementOffsetX: { type: Number },
|
|
15
|
-
elementOffsetY: { type: Number },
|
|
16
|
-
status: {
|
|
17
|
-
type: String,
|
|
18
|
-
enum: Object.values(COLLAB_ANNOTATION_STATUS),
|
|
19
|
-
default: COLLAB_ANNOTATION_STATUS.OPEN,
|
|
20
|
-
},
|
|
21
|
-
resolvedAt: { type: Date },
|
|
22
|
-
resolvedBy: { type: Schema.Types.ObjectId, ref: "User" },
|
|
23
|
-
guestName: { type: String },
|
|
24
|
-
guestEmail: { type: String },
|
|
25
|
-
githubPrCommentId: { type: Number },
|
|
26
|
-
githubPrCommentUrl: { type: String },
|
|
27
|
-
githubIssueUrl: { type: String },
|
|
28
|
-
githubIssueNumber: { type: Number },
|
|
29
|
-
subscribedUserIds: [{ type: Schema.Types.ObjectId, ref: "User" }],
|
|
30
|
-
},
|
|
31
|
-
{ timestamps: true, collection: "annotations" },
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
collabAnnotationSchema.index({ projectId: 1, pagePath: 1, status: 1 });
|
|
35
|
-
|
|
36
|
-
export default model<ICollabAnnotation>("CollabAnnotation", collabAnnotationSchema);
|
package/collab-comment.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { ICollabComment, ICollabAttachment } from "./types";
|
|
3
|
-
|
|
4
|
-
const collabAttachmentSchema = new Schema<ICollabAttachment>(
|
|
5
|
-
{
|
|
6
|
-
url: { type: String, required: true },
|
|
7
|
-
fileName: { type: String, required: true },
|
|
8
|
-
fileType: { type: String, required: true },
|
|
9
|
-
fileSize: { type: Number, required: true },
|
|
10
|
-
},
|
|
11
|
-
{ _id: false },
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
const collabCommentSchema = new Schema(
|
|
15
|
-
{
|
|
16
|
-
annotationId: { type: Schema.Types.ObjectId, ref: "CollabAnnotation", required: true, index: true },
|
|
17
|
-
userId: { type: Schema.Types.ObjectId, ref: "User" },
|
|
18
|
-
body: { type: String },
|
|
19
|
-
screenshot: { type: String },
|
|
20
|
-
attachments: { type: [collabAttachmentSchema], default: undefined },
|
|
21
|
-
guestName: { type: String },
|
|
22
|
-
guestEmail: { type: String },
|
|
23
|
-
},
|
|
24
|
-
{ timestamps: true, collection: "comments" },
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
export default model<ICollabComment>("CollabComment", collabCommentSchema);
|
package/collab-integration.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { COLLAB_INTEGRATION_TYPE } from "./enum";
|
|
3
|
-
import { ICollabIntegration } from "./types";
|
|
4
|
-
|
|
5
|
-
const collabIntegrationSchema = new Schema(
|
|
6
|
-
{
|
|
7
|
-
projectId: { type: Schema.Types.ObjectId, ref: "Project", required: true, index: true },
|
|
8
|
-
userId: { type: Schema.Types.ObjectId, ref: "User", index: true },
|
|
9
|
-
type: {
|
|
10
|
-
type: String,
|
|
11
|
-
enum: Object.values(COLLAB_INTEGRATION_TYPE),
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
webhookUrl: { type: String, required: true },
|
|
15
|
-
channelName: { type: String },
|
|
16
|
-
enabled: { type: Boolean, default: true },
|
|
17
|
-
},
|
|
18
|
-
{ timestamps: true, collection: "collab_integrations" },
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
export default model<ICollabIntegration>("CollabIntegration", collabIntegrationSchema);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { ICollabPushSubscription } from "./types";
|
|
3
|
-
|
|
4
|
-
const collabPushSubscriptionSchema = new Schema(
|
|
5
|
-
{
|
|
6
|
-
userId: { type: Schema.Types.ObjectId, ref: "User", required: true, index: true },
|
|
7
|
-
endpoint: { type: String, required: true, unique: true },
|
|
8
|
-
keys: {
|
|
9
|
-
p256dh: { type: String, required: true },
|
|
10
|
-
auth: { type: String, required: true },
|
|
11
|
-
},
|
|
12
|
-
domain: { type: String, required: true, index: true },
|
|
13
|
-
},
|
|
14
|
-
{ timestamps: { createdAt: true, updatedAt: false }, collection: "push_subscriptions" }
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
collabPushSubscriptionSchema.index({ userId: 1, domain: 1 });
|
|
18
|
-
|
|
19
|
-
export default model<ICollabPushSubscription>("CollabPushSubscription", collabPushSubscriptionSchema);
|
package/collab-settings.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { COLLAB_THEME, COLLAB_TOOLBAR_POSITION } from "./enum";
|
|
3
|
-
import { ICollabSettings } from "./types";
|
|
4
|
-
|
|
5
|
-
const collabSettingsSchema = new Schema(
|
|
6
|
-
{
|
|
7
|
-
userId: { type: Schema.Types.ObjectId, ref: "User", required: true },
|
|
8
|
-
projectId: { type: Schema.Types.ObjectId, ref: "Project", required: true },
|
|
9
|
-
pushNotifications: { type: Boolean, default: false },
|
|
10
|
-
slackUrl: { type: String },
|
|
11
|
-
discordUrl: { type: String },
|
|
12
|
-
theme: {
|
|
13
|
-
type: String,
|
|
14
|
-
enum: Object.values(COLLAB_THEME),
|
|
15
|
-
default: COLLAB_THEME.SYSTEM,
|
|
16
|
-
},
|
|
17
|
-
toolbarPosition: {
|
|
18
|
-
type: String,
|
|
19
|
-
enum: Object.values(COLLAB_TOOLBAR_POSITION),
|
|
20
|
-
default: COLLAB_TOOLBAR_POSITION.BOTTOM,
|
|
21
|
-
},
|
|
22
|
-
hasOnboarded: { type: Boolean, default: false },
|
|
23
|
-
},
|
|
24
|
-
{ timestamps: true, collection: "collab_settings" },
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
collabSettingsSchema.index({ userId: 1, projectId: 1 }, { unique: true });
|
|
28
|
-
|
|
29
|
-
export default model<ICollabSettings>("CollabSettings", collabSettingsSchema);
|
package/collab-share-token.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { model, Schema } from "mongoose";
|
|
2
|
-
import { ICollabShareToken } from "./types";
|
|
3
|
-
|
|
4
|
-
const collabShareTokenSchema = new Schema(
|
|
5
|
-
{
|
|
6
|
-
projectId: { type: Schema.Types.ObjectId, ref: "Project", required: true, index: true },
|
|
7
|
-
createdBy: { type: Schema.Types.ObjectId, ref: "User", required: true },
|
|
8
|
-
token: { type: String, required: true, unique: true },
|
|
9
|
-
expiresAt: { type: Date },
|
|
10
|
-
isActive: { type: Boolean, default: true },
|
|
11
|
-
},
|
|
12
|
-
{ timestamps: true, collection: "collab_share_tokens" },
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
export default model<ICollabShareToken>("CollabShareToken", collabShareTokenSchema);
|