@brimble/models 3.8.46 → 3.8.48
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 +9 -0
- package/dist/activity-log.js +61 -0
- package/dist/app-message.d.ts +9 -0
- package/dist/app-message.js +14 -0
- package/dist/auto-scaling.d.ts +9 -0
- package/dist/auto-scaling.js +63 -0
- package/dist/card.d.ts +9 -0
- package/dist/card.js +41 -0
- package/dist/cashier_subscription.d.ts +9 -0
- package/dist/cashier_subscription.js +27 -0
- package/dist/cashier_subscription_item.d.ts +9 -0
- package/dist/cashier_subscription_item.js +17 -0
- package/dist/collab-annotation.d.ts +9 -0
- package/dist/collab-annotation.js +31 -0
- package/dist/collab-comment.d.ts +9 -0
- package/dist/collab-comment.js +19 -0
- package/dist/collab-integration.d.ts +9 -0
- package/dist/collab-integration.js +17 -0
- package/dist/collab-push-subscription.d.ts +9 -0
- package/dist/collab-push-subscription.js +14 -0
- package/dist/collab-settings.d.ts +9 -0
- package/dist/collab-settings.js +24 -0
- package/dist/collab-share-token.d.ts +9 -0
- package/dist/collab-share-token.js +11 -0
- package/dist/compute.d.ts +9 -0
- package/dist/compute.js +82 -0
- package/dist/db-image.d.ts +9 -0
- package/dist/db-image.js +67 -0
- package/dist/domain/dns.d.ts +9 -0
- package/dist/domain/dns.js +33 -0
- package/dist/domain/index.d.ts +9 -0
- package/dist/domain/index.js +109 -0
- package/dist/domain/renewal.d.ts +9 -0
- package/dist/domain/renewal.js +21 -0
- package/dist/domain/transfer.d.ts +9 -0
- package/dist/domain/transfer.js +99 -0
- package/dist/enum/index.d.ts +271 -0
- package/dist/enum/index.js +319 -0
- package/dist/env.d.ts +9 -0
- package/dist/env.js +34 -0
- package/dist/environment-variable.d.ts +9 -0
- package/dist/environment-variable.js +16 -0
- package/dist/follower.d.ts +9 -0
- package/dist/follower.js +15 -0
- package/dist/following.d.ts +9 -0
- package/dist/following.js +15 -0
- package/dist/framework.d.ts +9 -0
- package/dist/framework.js +84 -0
- package/dist/idempotency.d.ts +9 -0
- package/{idempotency.ts → dist/idempotency.js} +8 -13
- package/{index.ts → dist/index.d.ts} +6 -174
- package/dist/index.js +232 -0
- package/dist/integration.d.ts +9 -0
- package/dist/integration.js +35 -0
- package/dist/intention.d.ts +9 -0
- package/dist/intention.js +36 -0
- package/dist/invoice.d.ts +9 -0
- package/dist/invoice.js +28 -0
- package/dist/job.d.ts +10 -0
- package/dist/job.js +62 -0
- package/dist/license.d.ts +9 -0
- package/dist/license.js +75 -0
- package/dist/load-balancer-port.d.ts +9 -0
- package/dist/load-balancer-port.js +27 -0
- package/dist/logs.d.ts +9 -0
- package/dist/logs.js +40 -0
- package/dist/member-permission.d.ts +9 -0
- package/dist/member-permission.js +9 -0
- package/dist/member.d.ts +9 -0
- package/dist/member.js +40 -0
- 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 +9 -0
- package/dist/ownership-transfer.js +35 -0
- package/dist/permission.d.ts +9 -0
- package/dist/permission.js +12 -0
- package/dist/plan_configuration.d.ts +10 -0
- package/{plan_configuration.ts → dist/plan_configuration.js} +13 -21
- package/dist/project/connection.d.ts +9 -0
- package/dist/project/connection.js +14 -0
- package/dist/project/index.d.ts +16 -0
- package/dist/project/index.js +256 -0
- package/dist/project/preview.d.ts +9 -0
- package/dist/project/preview.js +37 -0
- package/dist/project-environment.d.ts +9 -0
- package/dist/project-environment.js +13 -0
- package/dist/project-tag-assignment.d.ts +9 -0
- package/dist/project-tag-assignment.js +32 -0
- package/dist/project_analytics.d.ts +9 -0
- package/dist/project_analytics.js +18 -0
- package/dist/provider.d.ts +9 -0
- package/dist/provider.js +10 -0
- package/dist/region.d.ts +9 -0
- package/dist/region.js +17 -0
- package/dist/role.d.ts +9 -0
- package/dist/role.js +11 -0
- 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 +132 -0
- package/dist/server.d.ts +9 -0
- package/dist/server.js +101 -0
- package/dist/settings.d.ts +9 -0
- package/dist/settings.js +49 -0
- package/dist/storage.d.ts +36 -0
- package/dist/storage.js +84 -0
- package/dist/subscription.d.ts +9 -0
- package/dist/subscription.js +82 -0
- package/dist/tag.d.ts +9 -0
- package/dist/tag.js +29 -0
- package/dist/team.d.ts +9 -0
- package/dist/team.js +82 -0
- package/dist/token.d.ts +9 -0
- package/dist/token.js +36 -0
- package/dist/types/activity-log.d.ts +18 -0
- package/dist/types/activity-log.js +2 -0
- package/dist/types/app-message.d.ts +15 -0
- package/dist/types/app-message.js +2 -0
- package/dist/types/auto-scaling-group.d.ts +20 -0
- package/dist/types/auto-scaling-group.js +2 -0
- package/dist/types/card.d.ts +12 -0
- package/dist/types/card.js +2 -0
- package/dist/types/cashier_subscription.d.ts +27 -0
- package/dist/types/cashier_subscription.js +2 -0
- package/dist/types/collab-annotation.d.ts +27 -0
- package/dist/types/collab-annotation.js +2 -0
- package/dist/types/collab-comment.d.ts +20 -0
- package/dist/types/collab-comment.js +2 -0
- package/{types/collab-integration.ts → dist/types/collab-integration.d.ts} +7 -8
- package/dist/types/collab-integration.js +2 -0
- package/dist/types/collab-push-subscription.d.ts +12 -0
- package/dist/types/collab-push-subscription.js +2 -0
- package/dist/types/collab-settings.d.ts +16 -0
- package/dist/types/collab-settings.js +2 -0
- package/{types/collab-share-token.ts → dist/types/collab-share-token.d.ts} +7 -8
- package/dist/types/collab-share-token.js +2 -0
- package/dist/types/compute.d.ts +48 -0
- package/dist/types/compute.js +2 -0
- package/dist/types/db-image.d.ts +25 -0
- package/dist/types/db-image.js +2 -0
- package/dist/types/domain/dns.d.ts +12 -0
- package/dist/types/domain/dns.js +2 -0
- package/dist/types/domain/index.d.ts +35 -0
- package/dist/types/domain/index.js +2 -0
- package/{types/domain/renewal.ts → dist/types/domain/renewal.d.ts} +0 -1
- package/dist/types/domain/renewal.js +2 -0
- package/dist/types/domain/transfer.d.ts +27 -0
- package/dist/types/domain/transfer.js +2 -0
- package/dist/types/env.d.ts +13 -0
- package/dist/types/env.js +2 -0
- package/{types/environment-variable.ts → dist/types/environment-variable.d.ts} +7 -8
- package/dist/types/environment-variable.js +2 -0
- package/{types/following.ts → dist/types/following.d.ts} +2 -3
- package/dist/types/following.js +2 -0
- package/dist/types/framework.d.ts +39 -0
- package/dist/types/framework.js +2 -0
- package/dist/types/git.d.ts +14 -0
- package/dist/types/git.js +2 -0
- package/dist/types/idempotency.d.ts +10 -0
- package/dist/types/idempotency.js +2 -0
- package/{types/index.ts → dist/types/index.d.ts} +5 -26
- package/dist/types/index.js +2 -0
- package/{types/installed_integration.ts → dist/types/installed_integration.d.ts} +3 -6
- package/dist/types/installed_integration.js +2 -0
- package/dist/types/integration.d.ts +14 -0
- package/dist/types/integration.js +2 -0
- package/dist/types/intention.d.ts +13 -0
- package/dist/types/intention.js +2 -0
- package/dist/types/invoice.d.ts +15 -0
- package/dist/types/invoice.js +2 -0
- package/dist/types/job.d.ts +19 -0
- package/dist/types/job.js +2 -0
- package/dist/types/license.d.ts +18 -0
- package/dist/types/license.js +2 -0
- package/{types/load-balancer-port.ts → dist/types/load-balancer-port.d.ts} +7 -8
- package/dist/types/load-balancer-port.js +2 -0
- package/dist/types/logs.d.ts +35 -0
- package/dist/types/logs.js +2 -0
- package/{types/member-permission.ts → dist/types/member-permission.d.ts} +3 -6
- package/dist/types/member-permission.js +2 -0
- package/dist/types/member.d.ts +18 -0
- package/dist/types/member.js +2 -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/ownership-transfer.d.ts +12 -0
- package/dist/types/ownership-transfer.js +2 -0
- package/{types/permission.ts → dist/types/permission.d.ts} +8 -14
- package/dist/types/permission.js +2 -0
- package/dist/types/plan_configuration.d.ts +55 -0
- package/dist/types/plan_configuration.js +2 -0
- package/{types/project/connection.ts → dist/types/project/connection.d.ts} +2 -3
- package/dist/types/project/connection.js +2 -0
- package/dist/types/project/index.d.ts +100 -0
- package/dist/types/project/index.js +2 -0
- package/dist/types/project/preview.d.ts +21 -0
- package/dist/types/project/preview.js +2 -0
- package/dist/types/project-environment.d.ts +13 -0
- package/dist/types/project-environment.js +2 -0
- package/{types/project-tag-assignment.ts → dist/types/project-tag-assignment.d.ts} +6 -7
- package/dist/types/project-tag-assignment.js +2 -0
- package/dist/types/project_analytics.d.ts +11 -0
- package/dist/types/project_analytics.js +2 -0
- package/{types/provider.ts → dist/types/provider.d.ts} +4 -5
- package/dist/types/provider.js +2 -0
- package/dist/types/region.d.ts +15 -0
- package/dist/types/region.js +2 -0
- package/{types/role.ts → dist/types/role.d.ts} +4 -8
- package/dist/types/role.js +2 -0
- 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 +41 -0
- package/dist/types/sandbox.js +2 -0
- package/dist/types/server.d.ts +32 -0
- package/dist/types/server.js +2 -0
- package/dist/types/settings.d.ts +11 -0
- package/dist/types/settings.js +2 -0
- package/dist/types/storage.d.ts +99 -0
- package/dist/types/storage.js +2 -0
- package/dist/types/subscription.d.ts +33 -0
- package/dist/types/subscription.js +2 -0
- package/{types/tag.ts → dist/types/tag.d.ts} +6 -7
- package/dist/types/tag.js +2 -0
- package/dist/types/team.d.ts +24 -0
- package/dist/types/team.js +2 -0
- package/{types/token.ts → dist/types/token.d.ts} +6 -7
- package/dist/types/token.js +2 -0
- package/dist/types/user.d.ts +44 -0
- package/dist/types/user.js +2 -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 +20 -0
- package/dist/types/volume.js +2 -0
- package/dist/types/wallet.d.ts +8 -0
- package/dist/types/wallet.js +2 -0
- package/{types/webhook-category.ts → dist/types/webhook-category.d.ts} +1 -2
- package/dist/types/webhook-category.js +2 -0
- package/{types/webhook-event.ts → dist/types/webhook-event.d.ts} +1 -2
- package/dist/types/webhook-event.js +2 -0
- package/{types/webhook-setting.ts → dist/types/webhook-setting.d.ts} +1 -2
- package/dist/types/webhook-setting.js +2 -0
- package/dist/user.d.ts +9 -0
- package/dist/user.js +70 -0
- package/dist/volume-usage-segment.d.ts +9 -0
- package/dist/volume-usage-segment.js +46 -0
- package/dist/volume.d.ts +9 -0
- package/dist/volume.js +48 -0
- package/dist/wallet.d.ts +9 -0
- package/dist/wallet.js +26 -0
- package/dist/webhook-category.d.ts +9 -0
- package/dist/webhook-category.js +10 -0
- package/dist/webhook-event.d.ts +9 -0
- package/dist/webhook-event.js +19 -0
- package/dist/webhook-setting.d.ts +9 -0
- package/dist/webhook-setting.js +50 -0
- package/package.json +6 -2
- 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 -71
- package/domain/dns.ts +0 -34
- package/domain/index.ts +0 -113
- package/domain/renewal.ts +0 -25
- package/domain/transfer.ts +0 -112
- package/enum/index.ts +0 -315
- 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/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 -44
- package/member-permission.ts +0 -13
- package/member.ts +0 -44
- package/object-storage-usage-segment.ts +0 -59
- package/ownership-transfer.ts +0 -42
- package/permission.ts +0 -13
- package/project/connection.ts +0 -21
- package/project/index.ts +0 -264
- 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/sandbox-activity.ts +0 -53
- package/sandbox-image.ts +0 -35
- package/sandbox-snapshot-usage-segment.ts +0 -61
- package/sandbox-snapshot.ts +0 -55
- package/sandbox-usage-segment.ts +0 -69
- package/sandbox.ts +0 -134
- package/server.ts +0 -105
- package/settings.ts +0 -53
- package/storage.ts +0 -117
- package/subscription.ts +0 -86
- package/tag.ts +0 -34
- package/team.ts +0 -86
- 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-push-subscription.ts +0 -10
- package/types/collab-settings.ts +0 -17
- package/types/compute.ts +0 -51
- package/types/db-image.ts +0 -19
- package/types/domain/dns.ts +0 -13
- package/types/domain/index.ts +0 -36
- package/types/domain/transfer.ts +0 -32
- package/types/env.ts +0 -14
- package/types/framework.ts +0 -41
- package/types/git.ts +0 -15
- package/types/idempotency.ts +0 -12
- 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/logs.ts +0 -36
- package/types/member.ts +0 -19
- package/types/object-storage-usage-segment.ts +0 -26
- package/types/ownership-transfer.ts +0 -13
- package/types/plan_configuration.ts +0 -56
- package/types/project/index.ts +0 -101
- package/types/project/preview.ts +0 -22
- package/types/project-environment.ts +0 -14
- package/types/project_analytics.ts +0 -12
- package/types/region.ts +0 -16
- package/types/sandbox-activity.ts +0 -15
- package/types/sandbox-image.ts +0 -10
- package/types/sandbox-snapshot-usage-segment.ts +0 -18
- package/types/sandbox-snapshot.ts +0 -17
- package/types/sandbox-usage-segment.ts +0 -28
- package/types/sandbox.ts +0 -43
- package/types/server.ts +0 -59
- package/types/settings.ts +0 -19
- package/types/storage.ts +0 -91
- package/types/subscription.ts +0 -34
- package/types/team.ts +0 -25
- package/types/user.ts +0 -45
- package/types/volume-usage-segment.ts +0 -18
- package/types/volume.ts +0 -21
- package/types/wallet.ts +0 -9
- package/user.ts +0 -75
- package/volume-usage-segment.ts +0 -59
- package/volume.ts +0 -53
- package/wallet.ts +0 -27
- package/webhook-category.ts +0 -11
- package/webhook-event.ts +0 -20
- package/webhook-setting.ts +0 -48
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.SANDBOX_SNAPSHOT_STATUS = 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_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.REGION_CONTINENT = exports.PERMISSION_TYPE = exports.ROLES = exports.DNS_TYPE = exports.SERVER_STATUS = exports.OAUTH_PERMISSIONS = exports.SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_STATUS = exports.PROJECT_STATUS = exports.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.ENVIRONMENT = exports.REQUEST_TYPE = exports.BUILD_DISABLED_BY = exports.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
|
|
4
|
+
var GIT_TYPE;
|
|
5
|
+
(function (GIT_TYPE) {
|
|
6
|
+
GIT_TYPE["GITHUB"] = "GITHUB";
|
|
7
|
+
GIT_TYPE["GITLAB"] = "GITLAB";
|
|
8
|
+
GIT_TYPE["BITBUCKET"] = "BITBUCKET";
|
|
9
|
+
GIT_TYPE["DOCKER"] = "DOCKER";
|
|
10
|
+
GIT_TYPE["HUGGING_FACE"] = "HUGGINGFACE";
|
|
11
|
+
})(GIT_TYPE || (exports.GIT_TYPE = GIT_TYPE = {}));
|
|
12
|
+
var SERVER_PROTOCOL;
|
|
13
|
+
(function (SERVER_PROTOCOL) {
|
|
14
|
+
SERVER_PROTOCOL["TCP"] = "TCP";
|
|
15
|
+
SERVER_PROTOCOL["UDP"] = "UDP";
|
|
16
|
+
SERVER_PROTOCOL["HTTP"] = "HTTP";
|
|
17
|
+
SERVER_PROTOCOL["HTTPS"] = "HTTPS";
|
|
18
|
+
})(SERVER_PROTOCOL || (exports.SERVER_PROTOCOL = SERVER_PROTOCOL = {}));
|
|
19
|
+
var BUILD_DISABLED_BY;
|
|
20
|
+
(function (BUILD_DISABLED_BY) {
|
|
21
|
+
BUILD_DISABLED_BY["System"] = "system";
|
|
22
|
+
BUILD_DISABLED_BY["User"] = "user";
|
|
23
|
+
BUILD_DISABLED_BY["Payment"] = "payment_failure";
|
|
24
|
+
})(BUILD_DISABLED_BY || (exports.BUILD_DISABLED_BY = BUILD_DISABLED_BY = {}));
|
|
25
|
+
var REQUEST_TYPE;
|
|
26
|
+
(function (REQUEST_TYPE) {
|
|
27
|
+
REQUEST_TYPE["GET"] = "GET";
|
|
28
|
+
REQUEST_TYPE["PUT"] = "PUT";
|
|
29
|
+
REQUEST_TYPE["POST"] = "POST";
|
|
30
|
+
REQUEST_TYPE["DELETE"] = "DELETE";
|
|
31
|
+
})(REQUEST_TYPE || (exports.REQUEST_TYPE = REQUEST_TYPE = {}));
|
|
32
|
+
var ENVIRONMENT;
|
|
33
|
+
(function (ENVIRONMENT) {
|
|
34
|
+
ENVIRONMENT["PREVIEW"] = "PREVIEW";
|
|
35
|
+
ENVIRONMENT["PRODUCTION"] = "PRODUCTION";
|
|
36
|
+
})(ENVIRONMENT || (exports.ENVIRONMENT = ENVIRONMENT = {}));
|
|
37
|
+
var INTEGRATION_TYPES;
|
|
38
|
+
(function (INTEGRATION_TYPES) {
|
|
39
|
+
INTEGRATION_TYPES["Messaging"] = "MESSAGING";
|
|
40
|
+
INTEGRATION_TYPES["ErrorTracking"] = "ERROR_TRACKING";
|
|
41
|
+
INTEGRATION_TYPES["DevTools"] = "DEVTOOLS";
|
|
42
|
+
INTEGRATION_TYPES["Security"] = "SECURITY";
|
|
43
|
+
INTEGRATION_TYPES["Analytics"] = "ANALYTICS";
|
|
44
|
+
INTEGRATION_TYPES["Storage"] = "STORAGE";
|
|
45
|
+
INTEGRATION_TYPES["Logging"] = "LOGGING";
|
|
46
|
+
INTEGRATION_TYPES["Monitoring"] = "MONITORING";
|
|
47
|
+
INTEGRATION_TYPES["Cms"] = "CMS";
|
|
48
|
+
})(INTEGRATION_TYPES || (exports.INTEGRATION_TYPES = INTEGRATION_TYPES = {}));
|
|
49
|
+
var INTEGRATION_PROVIDERS;
|
|
50
|
+
(function (INTEGRATION_PROVIDERS) {
|
|
51
|
+
INTEGRATION_PROVIDERS["Slack"] = "SLACK";
|
|
52
|
+
INTEGRATION_PROVIDERS["Sentry"] = "SENTRY";
|
|
53
|
+
INTEGRATION_PROVIDERS["Discord"] = "DISCORD";
|
|
54
|
+
INTEGRATION_PROVIDERS["Onboardbase"] = "ONBOARDBASE";
|
|
55
|
+
INTEGRATION_PROVIDERS["Contentful"] = "CONTENTFUL";
|
|
56
|
+
INTEGRATION_PROVIDERS["Novu"] = "NOVU";
|
|
57
|
+
INTEGRATION_PROVIDERS["Netlify"] = "NETLIFY";
|
|
58
|
+
INTEGRATION_PROVIDERS["GoogleAnalytics"] = "GOOGLE_ANALYTICS";
|
|
59
|
+
})(INTEGRATION_PROVIDERS || (exports.INTEGRATION_PROVIDERS = INTEGRATION_PROVIDERS = {}));
|
|
60
|
+
var CARD_TYPES;
|
|
61
|
+
(function (CARD_TYPES) {
|
|
62
|
+
CARD_TYPES["MASTERCARD"] = "MASTERCARD";
|
|
63
|
+
CARD_TYPES["VISA"] = "VISA";
|
|
64
|
+
CARD_TYPES["VERVE"] = "VERVE";
|
|
65
|
+
})(CARD_TYPES || (exports.CARD_TYPES = CARD_TYPES = {}));
|
|
66
|
+
var PROJECT_STATUS;
|
|
67
|
+
(function (PROJECT_STATUS) {
|
|
68
|
+
PROJECT_STATUS["INACTIVE"] = "INACTIVE";
|
|
69
|
+
PROJECT_STATUS["ACTIVE"] = "ACTIVE";
|
|
70
|
+
PROJECT_STATUS["INPROGRESS"] = "INPROGRESS";
|
|
71
|
+
PROJECT_STATUS["FAILED"] = "FAILED";
|
|
72
|
+
PROJECT_STATUS["PENDING"] = "PENDING";
|
|
73
|
+
PROJECT_STATUS["CANCELLED"] = "CANCELLED";
|
|
74
|
+
PROJECT_STATUS["DEGRADED"] = "DEGRADED";
|
|
75
|
+
PROJECT_STATUS["PAYMENT"] = "PAYMENT DUE";
|
|
76
|
+
PROJECT_STATUS["NOMAD_READY"] = "NOMAD_READY";
|
|
77
|
+
PROJECT_STATUS["NOMAD_FAILED"] = "NOMAD_FAILED";
|
|
78
|
+
})(PROJECT_STATUS || (exports.PROJECT_STATUS = PROJECT_STATUS = {}));
|
|
79
|
+
var SUBSCRIPTION_STATUS;
|
|
80
|
+
(function (SUBSCRIPTION_STATUS) {
|
|
81
|
+
SUBSCRIPTION_STATUS["ACTIVE"] = "active";
|
|
82
|
+
SUBSCRIPTION_STATUS["INACTIVE"] = "in-active";
|
|
83
|
+
})(SUBSCRIPTION_STATUS || (exports.SUBSCRIPTION_STATUS = SUBSCRIPTION_STATUS = {}));
|
|
84
|
+
var SUBSCRIPTION_PLAN_TYPE;
|
|
85
|
+
(function (SUBSCRIPTION_PLAN_TYPE) {
|
|
86
|
+
SUBSCRIPTION_PLAN_TYPE["FreePlan"] = "FREE_PLAN";
|
|
87
|
+
SUBSCRIPTION_PLAN_TYPE["DeveloperPlan"] = "DEVELOPER_PLAN";
|
|
88
|
+
SUBSCRIPTION_PLAN_TYPE["TeamPlan"] = "TEAM_PLAN";
|
|
89
|
+
SUBSCRIPTION_PLAN_TYPE["DomainPlan"] = "DOMAIN_PLAN";
|
|
90
|
+
SUBSCRIPTION_PLAN_TYPE["HackerPlan"] = "HACKER_PLAN";
|
|
91
|
+
SUBSCRIPTION_PLAN_TYPE["LiscensePlan"] = "LISCENSE_PLAN";
|
|
92
|
+
})(SUBSCRIPTION_PLAN_TYPE || (exports.SUBSCRIPTION_PLAN_TYPE = SUBSCRIPTION_PLAN_TYPE = {}));
|
|
93
|
+
var OAUTH_PERMISSIONS;
|
|
94
|
+
(function (OAUTH_PERMISSIONS) {
|
|
95
|
+
OAUTH_PERMISSIONS["READ_USER"] = "read_user";
|
|
96
|
+
OAUTH_PERMISSIONS["READ_PROJECT"] = "read_project";
|
|
97
|
+
OAUTH_PERMISSIONS["UPDATE_CREDENTIALS"] = "update_credentials";
|
|
98
|
+
})(OAUTH_PERMISSIONS || (exports.OAUTH_PERMISSIONS = OAUTH_PERMISSIONS = {}));
|
|
99
|
+
var SERVER_STATUS;
|
|
100
|
+
(function (SERVER_STATUS) {
|
|
101
|
+
SERVER_STATUS["Active"] = "active";
|
|
102
|
+
SERVER_STATUS["InProgress"] = "in-progress";
|
|
103
|
+
SERVER_STATUS["InActive"] = "in-active";
|
|
104
|
+
})(SERVER_STATUS || (exports.SERVER_STATUS = SERVER_STATUS = {}));
|
|
105
|
+
var DNS_TYPE;
|
|
106
|
+
(function (DNS_TYPE) {
|
|
107
|
+
DNS_TYPE["A"] = "A";
|
|
108
|
+
DNS_TYPE["CNAME"] = "CNAME";
|
|
109
|
+
DNS_TYPE["NS"] = "NS";
|
|
110
|
+
DNS_TYPE["TXT"] = "TXT";
|
|
111
|
+
DNS_TYPE["MX"] = "MX";
|
|
112
|
+
DNS_TYPE["SPF"] = "SPF";
|
|
113
|
+
})(DNS_TYPE || (exports.DNS_TYPE = DNS_TYPE = {}));
|
|
114
|
+
var ROLES;
|
|
115
|
+
(function (ROLES) {
|
|
116
|
+
ROLES["CREATOR"] = "CREATOR";
|
|
117
|
+
ROLES["ADMINISTRATOR"] = "ADMINISTRATOR";
|
|
118
|
+
ROLES["MEMBER"] = "MEMBER";
|
|
119
|
+
ROLES["VIEWER"] = "VIEWER";
|
|
120
|
+
})(ROLES || (exports.ROLES = ROLES = {}));
|
|
121
|
+
var PERMISSION_TYPE;
|
|
122
|
+
(function (PERMISSION_TYPE) {
|
|
123
|
+
PERMISSION_TYPE["DOMAIN"] = "DOMAIN";
|
|
124
|
+
PERMISSION_TYPE["BILLING"] = "BILLING";
|
|
125
|
+
PERMISSION_TYPE["PROJECT"] = "PROJECT";
|
|
126
|
+
PERMISSION_TYPE["INTEGRATION"] = "INTEGRATION";
|
|
127
|
+
PERMISSION_TYPE["USERS"] = "USERS";
|
|
128
|
+
})(PERMISSION_TYPE || (exports.PERMISSION_TYPE = PERMISSION_TYPE = {}));
|
|
129
|
+
var REGION_CONTINENT;
|
|
130
|
+
(function (REGION_CONTINENT) {
|
|
131
|
+
REGION_CONTINENT["AFRICA"] = "Africa";
|
|
132
|
+
REGION_CONTINENT["EUROPE"] = "Europe";
|
|
133
|
+
REGION_CONTINENT["AMERICA"] = "America";
|
|
134
|
+
REGION_CONTINENT["ASIA"] = "Asia";
|
|
135
|
+
})(REGION_CONTINENT || (exports.REGION_CONTINENT = REGION_CONTINENT = {}));
|
|
136
|
+
var ServiceType;
|
|
137
|
+
(function (ServiceType) {
|
|
138
|
+
ServiceType["Database"] = "database";
|
|
139
|
+
ServiceType["WebService"] = "web-service";
|
|
140
|
+
ServiceType["Static"] = "static";
|
|
141
|
+
ServiceType["Mcp"] = "mcp";
|
|
142
|
+
ServiceType["Liscense"] = "liscense";
|
|
143
|
+
ServiceType["Worker"] = "worker";
|
|
144
|
+
})(ServiceType || (exports.ServiceType = ServiceType = {}));
|
|
145
|
+
var DatabaseEngine;
|
|
146
|
+
(function (DatabaseEngine) {
|
|
147
|
+
DatabaseEngine["MySQL"] = "mysql";
|
|
148
|
+
DatabaseEngine["PostgreSQL"] = "postgresql";
|
|
149
|
+
DatabaseEngine["MongoDB"] = "mongodb";
|
|
150
|
+
DatabaseEngine["Redis"] = "redis";
|
|
151
|
+
DatabaseEngine["WordPress"] = "wordpress";
|
|
152
|
+
DatabaseEngine["SQLite"] = "sqlite";
|
|
153
|
+
})(DatabaseEngine || (exports.DatabaseEngine = DatabaseEngine = {}));
|
|
154
|
+
var JobStatus;
|
|
155
|
+
(function (JobStatus) {
|
|
156
|
+
JobStatus["SCHEDULED"] = "scheduled";
|
|
157
|
+
JobStatus["RUNNING"] = "running";
|
|
158
|
+
JobStatus["COMPLETED"] = "completed";
|
|
159
|
+
JobStatus["FAILED"] = "failed";
|
|
160
|
+
JobStatus["CANCELLED"] = "cancelled";
|
|
161
|
+
})(JobStatus || (exports.JobStatus = JobStatus = {}));
|
|
162
|
+
var LicenseStatus;
|
|
163
|
+
(function (LicenseStatus) {
|
|
164
|
+
LicenseStatus["ACTIVE"] = "ACTIVE";
|
|
165
|
+
LicenseStatus["EXPIRED"] = "EXPIRED";
|
|
166
|
+
LicenseStatus["SUSPENDED"] = "SUSPENDED";
|
|
167
|
+
LicenseStatus["REVOKED"] = "REVOKED";
|
|
168
|
+
})(LicenseStatus || (exports.LicenseStatus = LicenseStatus = {}));
|
|
169
|
+
var SCALING_STRATEGY;
|
|
170
|
+
(function (SCALING_STRATEGY) {
|
|
171
|
+
SCALING_STRATEGY["Linear"] = "LINEAR";
|
|
172
|
+
SCALING_STRATEGY["Exponential"] = "EXPONENTIAL";
|
|
173
|
+
SCALING_STRATEGY["Target"] = "TARGET";
|
|
174
|
+
})(SCALING_STRATEGY || (exports.SCALING_STRATEGY = SCALING_STRATEGY = {}));
|
|
175
|
+
var SCALING_METRIC;
|
|
176
|
+
(function (SCALING_METRIC) {
|
|
177
|
+
SCALING_METRIC["Cpu"] = "CPU";
|
|
178
|
+
SCALING_METRIC["Memory"] = "MEMORY";
|
|
179
|
+
SCALING_METRIC["RequestCount"] = "REQUEST_COUNT";
|
|
180
|
+
SCALING_METRIC["ResponseTime"] = "RESPONSE_TIME";
|
|
181
|
+
SCALING_METRIC["CustomMetric"] = "CUSTOM_METRIC";
|
|
182
|
+
})(SCALING_METRIC || (exports.SCALING_METRIC = SCALING_METRIC = {}));
|
|
183
|
+
var FrameworkApplicationType;
|
|
184
|
+
(function (FrameworkApplicationType) {
|
|
185
|
+
FrameworkApplicationType["Spa"] = "spa";
|
|
186
|
+
FrameworkApplicationType["Ssr"] = "ssr";
|
|
187
|
+
FrameworkApplicationType["Static"] = "static";
|
|
188
|
+
FrameworkApplicationType["Backend"] = "backend";
|
|
189
|
+
})(FrameworkApplicationType || (exports.FrameworkApplicationType = FrameworkApplicationType = {}));
|
|
190
|
+
var DomainRenewalStatus;
|
|
191
|
+
(function (DomainRenewalStatus) {
|
|
192
|
+
DomainRenewalStatus["Pending"] = "pending";
|
|
193
|
+
DomainRenewalStatus["Completed"] = "completed";
|
|
194
|
+
DomainRenewalStatus["Failed"] = "failed";
|
|
195
|
+
})(DomainRenewalStatus || (exports.DomainRenewalStatus = DomainRenewalStatus = {}));
|
|
196
|
+
var DomainTransferProvider;
|
|
197
|
+
(function (DomainTransferProvider) {
|
|
198
|
+
DomainTransferProvider["Dynadot"] = "dynadot";
|
|
199
|
+
DomainTransferProvider["NameDotCom"] = "name-dot-com";
|
|
200
|
+
DomainTransferProvider["NameCheap"] = "name-cheap";
|
|
201
|
+
})(DomainTransferProvider || (exports.DomainTransferProvider = DomainTransferProvider = {}));
|
|
202
|
+
var DomainTransferDirection;
|
|
203
|
+
(function (DomainTransferDirection) {
|
|
204
|
+
DomainTransferDirection["TransferIn"] = "transfer_in";
|
|
205
|
+
DomainTransferDirection["TransferOut"] = "transfer_out";
|
|
206
|
+
})(DomainTransferDirection || (exports.DomainTransferDirection = DomainTransferDirection = {}));
|
|
207
|
+
var DomainTransferStatus;
|
|
208
|
+
(function (DomainTransferStatus) {
|
|
209
|
+
DomainTransferStatus["Pending"] = "pending";
|
|
210
|
+
DomainTransferStatus["Completed"] = "completed";
|
|
211
|
+
DomainTransferStatus["Failed"] = "failed";
|
|
212
|
+
DomainTransferStatus["Cancelled"] = "cancelled";
|
|
213
|
+
})(DomainTransferStatus || (exports.DomainTransferStatus = DomainTransferStatus = {}));
|
|
214
|
+
var NomadDeploymentStatus;
|
|
215
|
+
(function (NomadDeploymentStatus) {
|
|
216
|
+
NomadDeploymentStatus["NOMAD_SETUP"] = "nomad_setup";
|
|
217
|
+
NomadDeploymentStatus["NOMAD_READY"] = "nomad_ready";
|
|
218
|
+
NomadDeploymentStatus["NOMAD_FAILED"] = "nomad_failed";
|
|
219
|
+
})(NomadDeploymentStatus || (exports.NomadDeploymentStatus = NomadDeploymentStatus = {}));
|
|
220
|
+
var COLLAB_ANNOTATION_STATUS;
|
|
221
|
+
(function (COLLAB_ANNOTATION_STATUS) {
|
|
222
|
+
COLLAB_ANNOTATION_STATUS["OPEN"] = "open";
|
|
223
|
+
COLLAB_ANNOTATION_STATUS["RESOLVED"] = "resolved";
|
|
224
|
+
})(COLLAB_ANNOTATION_STATUS || (exports.COLLAB_ANNOTATION_STATUS = COLLAB_ANNOTATION_STATUS = {}));
|
|
225
|
+
var COLLAB_INTEGRATION_TYPE;
|
|
226
|
+
(function (COLLAB_INTEGRATION_TYPE) {
|
|
227
|
+
COLLAB_INTEGRATION_TYPE["SLACK"] = "slack";
|
|
228
|
+
COLLAB_INTEGRATION_TYPE["DISCORD"] = "discord";
|
|
229
|
+
})(COLLAB_INTEGRATION_TYPE || (exports.COLLAB_INTEGRATION_TYPE = COLLAB_INTEGRATION_TYPE = {}));
|
|
230
|
+
var COLLAB_THEME;
|
|
231
|
+
(function (COLLAB_THEME) {
|
|
232
|
+
COLLAB_THEME["LIGHT"] = "light";
|
|
233
|
+
COLLAB_THEME["DARK"] = "dark";
|
|
234
|
+
COLLAB_THEME["SYSTEM"] = "system";
|
|
235
|
+
})(COLLAB_THEME || (exports.COLLAB_THEME = COLLAB_THEME = {}));
|
|
236
|
+
var COLLAB_TOOLBAR_POSITION;
|
|
237
|
+
(function (COLLAB_TOOLBAR_POSITION) {
|
|
238
|
+
COLLAB_TOOLBAR_POSITION["LEFT"] = "left";
|
|
239
|
+
COLLAB_TOOLBAR_POSITION["BOTTOM"] = "bottom";
|
|
240
|
+
COLLAB_TOOLBAR_POSITION["RIGHT"] = "right";
|
|
241
|
+
})(COLLAB_TOOLBAR_POSITION || (exports.COLLAB_TOOLBAR_POSITION = COLLAB_TOOLBAR_POSITION = {}));
|
|
242
|
+
var INVOICE_STATUS;
|
|
243
|
+
(function (INVOICE_STATUS) {
|
|
244
|
+
INVOICE_STATUS["ACTIVE"] = "ACTIVE";
|
|
245
|
+
INVOICE_STATUS["PAID"] = "PAID";
|
|
246
|
+
INVOICE_STATUS["EXPIRED"] = "EXPIRED";
|
|
247
|
+
})(INVOICE_STATUS || (exports.INVOICE_STATUS = INVOICE_STATUS = {}));
|
|
248
|
+
var INVOICE_PAYMENT_STATUS;
|
|
249
|
+
(function (INVOICE_PAYMENT_STATUS) {
|
|
250
|
+
INVOICE_PAYMENT_STATUS["PENDING"] = "PENDING";
|
|
251
|
+
INVOICE_PAYMENT_STATUS["PROCESSING"] = "PROCESSING";
|
|
252
|
+
INVOICE_PAYMENT_STATUS["SUCCESSFUL"] = "SUCCESSFUL";
|
|
253
|
+
INVOICE_PAYMENT_STATUS["FAILED"] = "FAILED";
|
|
254
|
+
INVOICE_PAYMENT_STATUS["REFUNDED"] = "REFUNDED";
|
|
255
|
+
INVOICE_PAYMENT_STATUS["REFUND_PROCESSING"] = "REFUND_PROCESSING";
|
|
256
|
+
})(INVOICE_PAYMENT_STATUS || (exports.INVOICE_PAYMENT_STATUS = INVOICE_PAYMENT_STATUS = {}));
|
|
257
|
+
var INVOICE_TYPE;
|
|
258
|
+
(function (INVOICE_TYPE) {
|
|
259
|
+
INVOICE_TYPE["INVOICE"] = "invoice";
|
|
260
|
+
INVOICE_TYPE["RECEIPT"] = "receipt";
|
|
261
|
+
})(INVOICE_TYPE || (exports.INVOICE_TYPE = INVOICE_TYPE = {}));
|
|
262
|
+
var SANDBOX_TEMPLATE;
|
|
263
|
+
(function (SANDBOX_TEMPLATE) {
|
|
264
|
+
SANDBOX_TEMPLATE["PYTHON"] = "python";
|
|
265
|
+
SANDBOX_TEMPLATE["NODE"] = "node";
|
|
266
|
+
})(SANDBOX_TEMPLATE || (exports.SANDBOX_TEMPLATE = SANDBOX_TEMPLATE = {}));
|
|
267
|
+
var SANDBOX_STATUS;
|
|
268
|
+
(function (SANDBOX_STATUS) {
|
|
269
|
+
SANDBOX_STATUS["STARTING"] = "starting";
|
|
270
|
+
SANDBOX_STATUS["READY"] = "ready";
|
|
271
|
+
SANDBOX_STATUS["FAILED"] = "failed";
|
|
272
|
+
SANDBOX_STATUS["DESTROYED"] = "destroyed";
|
|
273
|
+
SANDBOX_STATUS["PAUSING"] = "pausing";
|
|
274
|
+
SANDBOX_STATUS["PAUSED"] = "paused";
|
|
275
|
+
SANDBOX_STATUS["RESUMING"] = "resuming";
|
|
276
|
+
})(SANDBOX_STATUS || (exports.SANDBOX_STATUS = SANDBOX_STATUS = {}));
|
|
277
|
+
var SANDBOX_DESTROY_REASON;
|
|
278
|
+
(function (SANDBOX_DESTROY_REASON) {
|
|
279
|
+
SANDBOX_DESTROY_REASON["USER"] = "user";
|
|
280
|
+
SANDBOX_DESTROY_REASON["IDLE_TTL"] = "idle_ttl";
|
|
281
|
+
SANDBOX_DESTROY_REASON["MAX_LIFETIME"] = "max_lifetime";
|
|
282
|
+
SANDBOX_DESTROY_REASON["FAILED"] = "failed";
|
|
283
|
+
SANDBOX_DESTROY_REASON["ONE_SHOT_STOPPED"] = "one_shot_stopped";
|
|
284
|
+
SANDBOX_DESTROY_REASON["PAUSED_TOO_LONG"] = "paused_too_long";
|
|
285
|
+
})(SANDBOX_DESTROY_REASON || (exports.SANDBOX_DESTROY_REASON = SANDBOX_DESTROY_REASON = {}));
|
|
286
|
+
var SANDBOX_SNAPSHOT_STATUS;
|
|
287
|
+
(function (SANDBOX_SNAPSHOT_STATUS) {
|
|
288
|
+
SANDBOX_SNAPSHOT_STATUS["CREATING"] = "creating";
|
|
289
|
+
SANDBOX_SNAPSHOT_STATUS["READY"] = "ready";
|
|
290
|
+
SANDBOX_SNAPSHOT_STATUS["FAILED"] = "failed";
|
|
291
|
+
})(SANDBOX_SNAPSHOT_STATUS || (exports.SANDBOX_SNAPSHOT_STATUS = SANDBOX_SNAPSHOT_STATUS = {}));
|
|
292
|
+
var StorageBucketStatus;
|
|
293
|
+
(function (StorageBucketStatus) {
|
|
294
|
+
StorageBucketStatus["Active"] = "active";
|
|
295
|
+
StorageBucketStatus["Deleting"] = "deleting";
|
|
296
|
+
StorageBucketStatus["Deleted"] = "deleted";
|
|
297
|
+
})(StorageBucketStatus || (exports.StorageBucketStatus = StorageBucketStatus = {}));
|
|
298
|
+
var StorageUploadStatus;
|
|
299
|
+
(function (StorageUploadStatus) {
|
|
300
|
+
StorageUploadStatus["Pending"] = "pending";
|
|
301
|
+
StorageUploadStatus["Completed"] = "completed";
|
|
302
|
+
StorageUploadStatus["Aborted"] = "aborted";
|
|
303
|
+
StorageUploadStatus["Expired"] = "expired";
|
|
304
|
+
})(StorageUploadStatus || (exports.StorageUploadStatus = StorageUploadStatus = {}));
|
|
305
|
+
var StorageTokenStatus;
|
|
306
|
+
(function (StorageTokenStatus) {
|
|
307
|
+
StorageTokenStatus["Active"] = "active";
|
|
308
|
+
StorageTokenStatus["Revoked"] = "revoked";
|
|
309
|
+
})(StorageTokenStatus || (exports.StorageTokenStatus = StorageTokenStatus = {}));
|
|
310
|
+
var StorageCredentialRole;
|
|
311
|
+
(function (StorageCredentialRole) {
|
|
312
|
+
StorageCredentialRole["ReadOnly"] = "ReadOnly";
|
|
313
|
+
StorageCredentialRole["Editor"] = "Editor";
|
|
314
|
+
})(StorageCredentialRole || (exports.StorageCredentialRole = StorageCredentialRole = {}));
|
|
315
|
+
var StorageCredentialStatus;
|
|
316
|
+
(function (StorageCredentialStatus) {
|
|
317
|
+
StorageCredentialStatus["Active"] = "active";
|
|
318
|
+
StorageCredentialStatus["Revoked"] = "revoked";
|
|
319
|
+
})(StorageCredentialStatus || (exports.StorageCredentialStatus = StorageCredentialStatus = {}));
|
package/dist/env.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEnv } from "./types";
|
|
2
|
+
declare const _default: import("mongoose").Model<IEnv, {}, {}, {}, import("mongoose").Document<unknown, {}, IEnv, {}, import("mongoose").DefaultSchemaOptions> & IEnv & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IEnv>;
|
|
9
|
+
export default _default;
|
package/dist/env.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("./enum");
|
|
5
|
+
const envSchema = new mongoose_1.Schema({
|
|
6
|
+
project: {
|
|
7
|
+
ref: "Project",
|
|
8
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
|
+
},
|
|
10
|
+
name: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
value: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false,
|
|
17
|
+
},
|
|
18
|
+
user: {
|
|
19
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
20
|
+
ref: "User",
|
|
21
|
+
required: true,
|
|
22
|
+
},
|
|
23
|
+
environment: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: enum_1.ENVIRONMENT.PRODUCTION,
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
is_system: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false,
|
|
31
|
+
required: false,
|
|
32
|
+
},
|
|
33
|
+
}, { timestamps: true });
|
|
34
|
+
exports.default = (0, mongoose_1.model)("Env", envSchema);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEnvironmentVariable } from "./types";
|
|
2
|
+
declare const _default: import("mongoose").Model<IEnvironmentVariable, {}, {}, {}, import("mongoose").Document<unknown, {}, IEnvironmentVariable, {}, import("mongoose").DefaultSchemaOptions> & IEnvironmentVariable & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IEnvironmentVariable>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const environmentVariableSchema = new mongoose_1.Schema({
|
|
5
|
+
name: { type: String, required: true },
|
|
6
|
+
value: { type: String, required: true },
|
|
7
|
+
project_environment: {
|
|
8
|
+
ref: "ProjectEnvironment",
|
|
9
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
12
|
+
user: { ref: "User", type: mongoose_1.Schema.Types.ObjectId, required: true },
|
|
13
|
+
inheritable: { type: Boolean, default: true },
|
|
14
|
+
}, { timestamps: true });
|
|
15
|
+
environmentVariableSchema.index({ name: 1, project_environment: 1 }, { unique: true });
|
|
16
|
+
exports.default = (0, mongoose_1.model)("EnvironmentVariable", environmentVariableSchema);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFollowing } from "./types";
|
|
2
|
+
declare const _default: import("mongoose").Model<IFollowing, {}, {}, {}, import("mongoose").Document<unknown, {}, IFollowing, {}, import("mongoose").DefaultSchemaOptions> & IFollowing & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IFollowing>;
|
|
9
|
+
export default _default;
|
package/dist/follower.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const followingSchema = new mongoose_1.Schema({
|
|
5
|
+
user_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "User",
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
followed_id: {
|
|
11
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
}, { timestamps: true });
|
|
15
|
+
exports.default = (0, mongoose_1.model)("Following", followingSchema);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFollowing } from "./types";
|
|
2
|
+
declare const _default: import("mongoose").Model<IFollowing, {}, {}, {}, import("mongoose").Document<unknown, {}, IFollowing, {}, import("mongoose").DefaultSchemaOptions> & IFollowing & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IFollowing>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const followingSchema = new mongoose_1.Schema({
|
|
5
|
+
user_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "User",
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
followed_id: {
|
|
11
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
}, { timestamps: true });
|
|
15
|
+
exports.default = (0, mongoose_1.model)("Following", followingSchema);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFramework } from "./types";
|
|
2
|
+
declare const _default: import("mongoose").Model<IFramework, {}, {}, {}, import("mongoose").Document<unknown, {}, IFramework, {}, import("mongoose").DefaultSchemaOptions> & IFramework & Required<{
|
|
3
|
+
_id: import("mongoose").Types.ObjectId;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IFramework>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("./enum");
|
|
5
|
+
const frameworkSchema = new mongoose_1.Schema({
|
|
6
|
+
name: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
slug: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
demo: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false,
|
|
17
|
+
},
|
|
18
|
+
logo: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
supported: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
required: false,
|
|
25
|
+
default: true
|
|
26
|
+
},
|
|
27
|
+
port: {
|
|
28
|
+
type: Number,
|
|
29
|
+
required: false,
|
|
30
|
+
default: 8000
|
|
31
|
+
},
|
|
32
|
+
tagline: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: false,
|
|
35
|
+
},
|
|
36
|
+
description: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: false,
|
|
39
|
+
},
|
|
40
|
+
website: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: true,
|
|
43
|
+
},
|
|
44
|
+
envPrefix: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: false,
|
|
47
|
+
},
|
|
48
|
+
detector: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: true,
|
|
51
|
+
},
|
|
52
|
+
file_detectors: {
|
|
53
|
+
type: Array,
|
|
54
|
+
required: false
|
|
55
|
+
},
|
|
56
|
+
type: {
|
|
57
|
+
type: String,
|
|
58
|
+
enum: Object.values(enum_1.FrameworkApplicationType),
|
|
59
|
+
required: true,
|
|
60
|
+
},
|
|
61
|
+
settings: {
|
|
62
|
+
installCommand: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: false,
|
|
65
|
+
},
|
|
66
|
+
buildCommand: {
|
|
67
|
+
type: String,
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
outputDirectory: {
|
|
71
|
+
type: String,
|
|
72
|
+
required: true,
|
|
73
|
+
},
|
|
74
|
+
manager: {
|
|
75
|
+
type: String,
|
|
76
|
+
required: false,
|
|
77
|
+
},
|
|
78
|
+
startCommand: {
|
|
79
|
+
type: String,
|
|
80
|
+
required: false,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
}, { timestamps: true });
|
|
84
|
+
exports.default = (0, mongoose_1.model)("Framework", frameworkSchema, "frameworks");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IIdempotencyRecord } from "./types/idempotency";
|
|
2
|
+
declare const _default: import("mongoose").Model<IIdempotencyRecord, {}, {}, {}, import("mongoose").Document<unknown, {}, IIdempotencyRecord, {}, import("mongoose").DefaultSchemaOptions> & IIdempotencyRecord & Required<{
|
|
3
|
+
_id: string;
|
|
4
|
+
}> & {
|
|
5
|
+
__v: number;
|
|
6
|
+
} & {
|
|
7
|
+
id: string;
|
|
8
|
+
}, any, IIdempotencyRecord>;
|
|
9
|
+
export default _default;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const IdempotencyRecordSchema = new Schema
|
|
5
|
-
{
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mongoose_1 = require("mongoose");
|
|
4
|
+
const IdempotencyRecordSchema = new mongoose_1.Schema({
|
|
6
5
|
_id: { type: String, required: true },
|
|
7
6
|
endpoint: { type: String, required: true },
|
|
8
7
|
requestHash: { type: String, required: true },
|
|
9
8
|
responseStatus: { type: Number, required: true },
|
|
10
|
-
responseBody: { type: Schema.Types.Mixed, required: true },
|
|
9
|
+
responseBody: { type: mongoose_1.Schema.Types.Mixed, required: true },
|
|
11
10
|
createdAt: { type: Date, default: Date.now },
|
|
12
11
|
expiresAt: { type: Date, required: true },
|
|
13
|
-
|
|
14
|
-
{
|
|
12
|
+
}, {
|
|
15
13
|
timestamps: false, // We manage createdAt manually for simplicity
|
|
16
|
-
|
|
17
|
-
);
|
|
18
|
-
|
|
14
|
+
});
|
|
19
15
|
// TTL index on expiresAt (0 seconds means it expires exactly at expiresAt)
|
|
20
16
|
IdempotencyRecordSchema.index({ expiresAt: 1 }, { expireAfterSeconds: 0 });
|
|
21
|
-
|
|
22
|
-
export default model<IIdempotencyRecord>("IdempotencyRecord", IdempotencyRecordSchema);
|
|
17
|
+
exports.default = (0, mongoose_1.model)("IdempotencyRecord", IdempotencyRecordSchema);
|