@brimble/models 3.7.8 → 3.7.78

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.
Files changed (151) hide show
  1. package/.claude/settings.local.json +7 -0
  2. package/activity-log.ts +66 -0
  3. package/app-message.ts +18 -0
  4. package/cashier_subscription.ts +35 -0
  5. package/cashier_subscription_item.ts +25 -0
  6. package/collab-annotation.ts +9 -2
  7. package/collab-comment.ts +5 -3
  8. package/collab-integration.ts +1 -0
  9. package/collab-push-subscription.ts +19 -0
  10. package/collab-share-token.ts +15 -0
  11. package/compute.ts +16 -6
  12. package/dist/activity-log.d.ts +30 -0
  13. package/dist/activity-log.js +61 -0
  14. package/dist/app-message.d.ts +30 -0
  15. package/dist/app-message.js +14 -0
  16. package/dist/cashier_subscription.d.ts +30 -0
  17. package/dist/cashier_subscription.js +27 -0
  18. package/dist/cashier_subscription_item.d.ts +30 -0
  19. package/dist/cashier_subscription_item.js +17 -0
  20. package/dist/collab-annotation.js +9 -2
  21. package/dist/collab-comment.js +5 -3
  22. package/dist/collab-integration.js +1 -0
  23. package/dist/collab-push-subscription.d.ts +30 -0
  24. package/dist/collab-push-subscription.js +14 -0
  25. package/dist/collab-share-token.d.ts +30 -0
  26. package/dist/collab-share-token.js +11 -0
  27. package/dist/compute.js +15 -6
  28. package/dist/domain/index.js +10 -0
  29. package/dist/domain/transfer.d.ts +30 -0
  30. package/dist/domain/transfer.js +99 -0
  31. package/dist/enum/index.d.ts +36 -6
  32. package/dist/enum/index.js +41 -6
  33. package/dist/env.js +0 -8
  34. package/dist/environment-variable.d.ts +30 -0
  35. package/dist/environment-variable.js +16 -0
  36. package/dist/framework.js +5 -0
  37. package/dist/index.d.ts +16 -3
  38. package/dist/index.js +36 -5
  39. package/dist/invoice.d.ts +30 -0
  40. package/dist/invoice.js +28 -0
  41. package/dist/member.js +1 -0
  42. package/dist/ownership-transfer.d.ts +30 -0
  43. package/dist/ownership-transfer.js +35 -0
  44. package/dist/plan_configuration.js +3 -0
  45. package/dist/project/index.js +14 -6
  46. package/dist/project-environment.d.ts +30 -0
  47. package/dist/project-environment.js +13 -0
  48. package/dist/project-tag-assignment.d.ts +30 -0
  49. package/dist/project-tag-assignment.js +32 -0
  50. package/dist/project_analytics.d.ts +30 -0
  51. package/dist/project_analytics.js +18 -0
  52. package/dist/subscription.js +8 -0
  53. package/dist/{branch.d.ts → tag.d.ts} +2 -2
  54. package/dist/tag.js +29 -0
  55. package/dist/team.js +16 -0
  56. package/dist/types/activity-log.d.ts +18 -0
  57. package/dist/types/app-message.d.ts +15 -0
  58. package/dist/types/app-message.js +2 -0
  59. package/dist/types/cashier_subscription.d.ts +27 -0
  60. package/dist/types/cashier_subscription.js +2 -0
  61. package/dist/types/collab-annotation.d.ts +8 -1
  62. package/dist/types/collab-comment.d.ts +4 -2
  63. package/dist/types/collab-integration.d.ts +2 -0
  64. package/dist/types/collab-push-subscription.d.ts +12 -0
  65. package/dist/types/collab-push-subscription.js +2 -0
  66. package/dist/types/collab-share-token.d.ts +12 -0
  67. package/dist/types/collab-share-token.js +2 -0
  68. package/dist/types/compute.d.ts +12 -2
  69. package/dist/types/domain/index.d.ts +3 -1
  70. package/dist/types/domain/transfer.d.ts +27 -0
  71. package/dist/types/domain/transfer.js +2 -0
  72. package/dist/types/env.d.ts +0 -3
  73. package/dist/types/environment-variable.d.ts +12 -0
  74. package/dist/types/environment-variable.js +2 -0
  75. package/dist/types/framework.d.ts +1 -0
  76. package/dist/types/index.d.ts +13 -1
  77. package/dist/types/invoice.d.ts +15 -0
  78. package/dist/types/invoice.js +2 -0
  79. package/dist/types/member.d.ts +2 -0
  80. package/dist/types/ownership-transfer.d.ts +12 -0
  81. package/dist/types/ownership-transfer.js +2 -0
  82. package/dist/types/plan_configuration.d.ts +3 -0
  83. package/dist/types/project/index.d.ts +4 -2
  84. package/dist/types/project-environment.d.ts +13 -0
  85. package/dist/types/project-environment.js +2 -0
  86. package/dist/types/project-tag-assignment.d.ts +13 -0
  87. package/dist/types/project-tag-assignment.js +2 -0
  88. package/dist/types/project_analytics.d.ts +11 -0
  89. package/dist/types/project_analytics.js +2 -0
  90. package/dist/types/subscription.d.ts +2 -0
  91. package/dist/types/tag.d.ts +11 -0
  92. package/dist/types/tag.js +2 -0
  93. package/dist/types/team.d.ts +4 -0
  94. package/dist/types/user.d.ts +2 -0
  95. package/dist/types/wallet.d.ts +3 -0
  96. package/dist/user.js +2 -0
  97. package/dist/wallet.js +12 -0
  98. package/domain/index.ts +10 -0
  99. package/domain/transfer.ts +112 -0
  100. package/enum/index.ts +40 -5
  101. package/env.ts +0 -8
  102. package/environment-variable.ts +21 -0
  103. package/framework.ts +5 -0
  104. package/index.ts +36 -5
  105. package/invoice.ts +36 -0
  106. package/member.ts +1 -0
  107. package/ownership-transfer.ts +42 -0
  108. package/package.json +1 -1
  109. package/plan_configuration.ts +3 -0
  110. package/project/index.ts +14 -6
  111. package/project-environment.ts +18 -0
  112. package/project-tag-assignment.ts +40 -0
  113. package/project_analytics.ts +26 -0
  114. package/subscription.ts +8 -0
  115. package/tag.ts +34 -0
  116. package/team.ts +16 -0
  117. package/types/activity-log.ts +19 -0
  118. package/types/app-message.ts +16 -0
  119. package/types/cashier_subscription.ts +29 -0
  120. package/types/collab-annotation.ts +8 -1
  121. package/types/collab-comment.ts +4 -2
  122. package/types/collab-integration.ts +2 -0
  123. package/types/collab-push-subscription.ts +10 -0
  124. package/types/collab-share-token.ts +13 -0
  125. package/types/compute.ts +14 -2
  126. package/types/domain/index.ts +3 -1
  127. package/types/domain/transfer.ts +32 -0
  128. package/types/env.ts +0 -3
  129. package/types/environment-variable.ts +13 -0
  130. package/types/framework.ts +3 -2
  131. package/types/index.ts +13 -1
  132. package/types/invoice.ts +16 -0
  133. package/types/member.ts +2 -0
  134. package/types/ownership-transfer.ts +13 -0
  135. package/types/plan_configuration.ts +3 -0
  136. package/types/project/index.ts +4 -2
  137. package/types/project-environment.ts +14 -0
  138. package/types/project-tag-assignment.ts +14 -0
  139. package/types/project_analytics.ts +12 -0
  140. package/types/subscription.ts +2 -0
  141. package/types/tag.ts +12 -0
  142. package/types/team.ts +4 -0
  143. package/types/user.ts +2 -0
  144. package/types/wallet.ts +3 -0
  145. package/user.ts +2 -0
  146. package/wallet.ts +12 -0
  147. package/branch.ts +0 -22
  148. package/dist/branch.js +0 -17
  149. package/dist/types/branch.d.ts +0 -17
  150. package/types/branch.ts +0 -18
  151. /package/dist/types/{branch.js → activity-log.js} +0 -0
@@ -0,0 +1,30 @@
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
+ import { ICollabShareToken } from "./types";
27
+ declare const _default: import("mongoose").Model<ICollabShareToken, {}, {}, {}, import("mongoose").Document<unknown, {}, ICollabShareToken> & ICollabShareToken & {
28
+ _id: import("mongoose").Types.ObjectId;
29
+ }, any>;
30
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const collabShareTokenSchema = new mongoose_1.Schema({
5
+ projectId: { type: mongoose_1.Schema.Types.ObjectId, ref: "Project", required: true, index: true },
6
+ createdBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "User", required: true },
7
+ token: { type: String, required: true, unique: true },
8
+ expiresAt: { type: Date },
9
+ isActive: { type: Boolean, default: true },
10
+ }, { timestamps: true, collection: "collab_share_tokens" });
11
+ exports.default = (0, mongoose_1.model)("CollabShareToken", collabShareTokenSchema);
package/dist/compute.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const mongoose_1 = require("mongoose");
4
+ const enum_1 = require("./enum");
4
5
  const ComputeChangeSchema = new mongoose_1.Schema({
5
6
  project_name: {
6
7
  type: String,
@@ -12,6 +13,11 @@ const ComputeChangeSchema = new mongoose_1.Schema({
12
13
  required: true,
13
14
  index: true,
14
15
  },
16
+ project_type: {
17
+ type: String,
18
+ enum: Object.values(enum_1.ServiceType),
19
+ required: false,
20
+ },
15
21
  deleted: {
16
22
  type: Boolean,
17
23
  default: false,
@@ -28,12 +34,6 @@ const ComputeChangeSchema = new mongoose_1.Schema({
28
34
  required: false,
29
35
  index: true,
30
36
  },
31
- subscription_id: {
32
- type: mongoose_1.Schema.Types.ObjectId,
33
- ref: "Subscription",
34
- required: true,
35
- index: true,
36
- },
37
37
  timestamp: {
38
38
  type: Date,
39
39
  default: Date.now,
@@ -44,12 +44,21 @@ const ComputeChangeSchema = new mongoose_1.Schema({
44
44
  memory: { type: Number, required: true },
45
45
  storage: { type: Number, required: true },
46
46
  persistentStorage: { type: Number, required: false },
47
+ region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", required: false },
47
48
  },
48
49
  current: {
49
50
  cpu: { type: Number, required: true },
50
51
  memory: { type: Number, required: true },
51
52
  storage: { type: Number, required: true },
52
53
  persistentStorage: { type: Number, required: false },
54
+ region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", required: false },
55
+ },
56
+ default_resources: {
57
+ cpu: { type: Number, required: false },
58
+ memory: { type: Number, required: false },
59
+ storage: { type: Number, required: false },
60
+ persistentStorage: { type: Number, required: false },
61
+ region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", required: false },
53
62
  },
54
63
  costs: {
55
64
  startDate: { type: Date, required: true },
@@ -62,6 +62,10 @@ const domainSchema = new mongoose_1.Schema({
62
62
  ref: "Subscription",
63
63
  type: mongoose_1.Schema.Types.ObjectId,
64
64
  },
65
+ cashier_subscription_id: {
66
+ type: String,
67
+ default: null,
68
+ },
65
69
  nameservers: {
66
70
  type: Array,
67
71
  required: false,
@@ -86,6 +90,12 @@ const domainSchema = new mongoose_1.Schema({
86
90
  type: mongoose_1.Schema.Types.ObjectId,
87
91
  },
88
92
  ],
93
+ project_environment: {
94
+ ref: "ProjectEnvironment",
95
+ type: mongoose_1.Schema.Types.ObjectId,
96
+ required: false,
97
+ default: null,
98
+ },
89
99
  is_pending_verification: Boolean,
90
100
  redirect: {
91
101
  url: String,
@@ -0,0 +1,30 @@
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
+ import { IDomainTransfer } from "../types";
27
+ declare const _default: import("mongoose").Model<IDomainTransfer, {}, {}, {}, import("mongoose").Document<unknown, {}, IDomainTransfer> & IDomainTransfer & {
28
+ _id: import("mongoose").Types.ObjectId;
29
+ }, any>;
30
+ export default _default;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const enum_1 = require("../enum");
5
+ const domainTransferSchema = new mongoose_1.Schema({
6
+ domain_id: {
7
+ ref: "Domain",
8
+ type: mongoose_1.Schema.Types.ObjectId,
9
+ required: true,
10
+ },
11
+ domain_name: {
12
+ type: String,
13
+ required: true,
14
+ trim: true,
15
+ },
16
+ user_id: {
17
+ ref: "User",
18
+ type: mongoose_1.Schema.Types.ObjectId,
19
+ required: true,
20
+ },
21
+ team_id: {
22
+ ref: "Team",
23
+ type: mongoose_1.Schema.Types.ObjectId,
24
+ required: false,
25
+ },
26
+ provider: {
27
+ type: String,
28
+ required: true,
29
+ enum: Object.values(enum_1.DomainTransferProvider),
30
+ },
31
+ direction: {
32
+ type: String,
33
+ required: true,
34
+ enum: Object.values(enum_1.DomainTransferDirection),
35
+ },
36
+ status: {
37
+ type: String,
38
+ required: true,
39
+ enum: Object.values(enum_1.DomainTransferStatus),
40
+ },
41
+ provider_transfer_id: {
42
+ type: String,
43
+ required: false,
44
+ },
45
+ payment_reference: {
46
+ type: String,
47
+ required: false,
48
+ },
49
+ payment_token: {
50
+ type: String,
51
+ required: false,
52
+ },
53
+ payment_amount: {
54
+ type: Number,
55
+ required: false,
56
+ },
57
+ renewal_price: {
58
+ type: Number,
59
+ required: false,
60
+ },
61
+ auto_renewal: {
62
+ type: Boolean,
63
+ required: false,
64
+ },
65
+ privacy_enabled: {
66
+ type: Boolean,
67
+ required: false,
68
+ },
69
+ renewal_duration: {
70
+ type: Number,
71
+ required: false,
72
+ },
73
+ project_id: {
74
+ ref: "Project",
75
+ type: mongoose_1.Schema.Types.ObjectId,
76
+ required: false,
77
+ },
78
+ last_polled_at: {
79
+ type: Date,
80
+ required: false,
81
+ },
82
+ poll_count: {
83
+ type: Number,
84
+ required: true,
85
+ default: 0,
86
+ min: 0,
87
+ },
88
+ last_provider_status: {
89
+ type: String,
90
+ required: false,
91
+ },
92
+ failure_reason: {
93
+ type: String,
94
+ required: false,
95
+ },
96
+ }, { timestamps: true });
97
+ domainTransferSchema.index({ status: 1, direction: 1 });
98
+ domainTransferSchema.index({ domain_id: 1 });
99
+ exports.default = (0, mongoose_1.model)("DomainTransfer", domainTransferSchema, "domain_transfers");
@@ -13,7 +13,8 @@ export declare enum SERVER_PROTOCOL {
13
13
  }
14
14
  export declare enum BUILD_DISABLED_BY {
15
15
  System = "system",
16
- User = "user"
16
+ User = "user",
17
+ Payment = "payment_failure"
17
18
  }
18
19
  export declare enum REQUEST_TYPE {
19
20
  GET = "GET",
@@ -96,7 +97,8 @@ export declare enum DNS_TYPE {
96
97
  export declare enum ROLES {
97
98
  CREATOR = "CREATOR",
98
99
  ADMINISTRATOR = "ADMINISTRATOR",
99
- MEMBER = "MEMBER"
100
+ MEMBER = "MEMBER",
101
+ VIEWER = "VIEWER"
100
102
  }
101
103
  export declare enum PERMISSION_TYPE {
102
104
  DOMAIN = "DOMAIN",
@@ -163,15 +165,26 @@ export declare enum DomainRenewalStatus {
163
165
  Completed = "completed",
164
166
  Failed = "failed"
165
167
  }
168
+ export declare enum DomainTransferProvider {
169
+ Dynadot = "dynadot",
170
+ NameDotCom = "name-dot-com",
171
+ NameCheap = "name-cheap"
172
+ }
173
+ export declare enum DomainTransferDirection {
174
+ TransferIn = "transfer_in",
175
+ TransferOut = "transfer_out"
176
+ }
177
+ export declare enum DomainTransferStatus {
178
+ Pending = "pending",
179
+ Completed = "completed",
180
+ Failed = "failed",
181
+ Cancelled = "cancelled"
182
+ }
166
183
  export declare enum NomadDeploymentStatus {
167
184
  NOMAD_SETUP = "nomad_setup",
168
185
  NOMAD_READY = "nomad_ready",
169
186
  NOMAD_FAILED = "nomad_failed"
170
187
  }
171
- export declare enum BRANCH_TYPE {
172
- USER_CREATED = "USER_CREATED",
173
- PREVIEW = "PREVIEW"
174
- }
175
188
  export declare enum COLLAB_ANNOTATION_STATUS {
176
189
  OPEN = "open",
177
190
  RESOLVED = "resolved"
@@ -190,3 +203,20 @@ export declare enum COLLAB_TOOLBAR_POSITION {
190
203
  BOTTOM = "bottom",
191
204
  RIGHT = "right"
192
205
  }
206
+ export declare enum INVOICE_STATUS {
207
+ ACTIVE = "ACTIVE",
208
+ PAID = "PAID",
209
+ EXPIRED = "EXPIRED"
210
+ }
211
+ export declare enum INVOICE_PAYMENT_STATUS {
212
+ PENDING = "PENDING",
213
+ PROCESSING = "PROCESSING",
214
+ SUCCESSFUL = "SUCCESSFUL",
215
+ FAILED = "FAILED",
216
+ REFUNDED = "REFUNDED",
217
+ REFUND_PROCESSING = "REFUND_PROCESSING"
218
+ }
219
+ export declare enum INVOICE_TYPE {
220
+ INVOICE = "invoice",
221
+ RECEIPT = "receipt"
222
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.BRANCH_TYPE = exports.NomadDeploymentStatus = 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;
3
+ 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
4
  var GIT_TYPE;
5
5
  (function (GIT_TYPE) {
6
6
  GIT_TYPE["GITHUB"] = "GITHUB";
@@ -20,6 +20,7 @@ var BUILD_DISABLED_BY;
20
20
  (function (BUILD_DISABLED_BY) {
21
21
  BUILD_DISABLED_BY["System"] = "system";
22
22
  BUILD_DISABLED_BY["User"] = "user";
23
+ BUILD_DISABLED_BY["Payment"] = "payment_failure";
23
24
  })(BUILD_DISABLED_BY = exports.BUILD_DISABLED_BY || (exports.BUILD_DISABLED_BY = {}));
24
25
  var REQUEST_TYPE;
25
26
  (function (REQUEST_TYPE) {
@@ -115,6 +116,7 @@ var ROLES;
115
116
  ROLES["CREATOR"] = "CREATOR";
116
117
  ROLES["ADMINISTRATOR"] = "ADMINISTRATOR";
117
118
  ROLES["MEMBER"] = "MEMBER";
119
+ ROLES["VIEWER"] = "VIEWER";
118
120
  })(ROLES = exports.ROLES || (exports.ROLES = {}));
119
121
  var PERMISSION_TYPE;
120
122
  (function (PERMISSION_TYPE) {
@@ -191,17 +193,30 @@ var DomainRenewalStatus;
191
193
  DomainRenewalStatus["Completed"] = "completed";
192
194
  DomainRenewalStatus["Failed"] = "failed";
193
195
  })(DomainRenewalStatus = exports.DomainRenewalStatus || (exports.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 || (exports.DomainTransferProvider = {}));
202
+ var DomainTransferDirection;
203
+ (function (DomainTransferDirection) {
204
+ DomainTransferDirection["TransferIn"] = "transfer_in";
205
+ DomainTransferDirection["TransferOut"] = "transfer_out";
206
+ })(DomainTransferDirection = exports.DomainTransferDirection || (exports.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 || (exports.DomainTransferStatus = {}));
194
214
  var NomadDeploymentStatus;
195
215
  (function (NomadDeploymentStatus) {
196
216
  NomadDeploymentStatus["NOMAD_SETUP"] = "nomad_setup";
197
217
  NomadDeploymentStatus["NOMAD_READY"] = "nomad_ready";
198
218
  NomadDeploymentStatus["NOMAD_FAILED"] = "nomad_failed";
199
219
  })(NomadDeploymentStatus = exports.NomadDeploymentStatus || (exports.NomadDeploymentStatus = {}));
200
- var BRANCH_TYPE;
201
- (function (BRANCH_TYPE) {
202
- BRANCH_TYPE["USER_CREATED"] = "USER_CREATED";
203
- BRANCH_TYPE["PREVIEW"] = "PREVIEW";
204
- })(BRANCH_TYPE = exports.BRANCH_TYPE || (exports.BRANCH_TYPE = {}));
205
220
  var COLLAB_ANNOTATION_STATUS;
206
221
  (function (COLLAB_ANNOTATION_STATUS) {
207
222
  COLLAB_ANNOTATION_STATUS["OPEN"] = "open";
@@ -224,3 +239,23 @@ var COLLAB_TOOLBAR_POSITION;
224
239
  COLLAB_TOOLBAR_POSITION["BOTTOM"] = "bottom";
225
240
  COLLAB_TOOLBAR_POSITION["RIGHT"] = "right";
226
241
  })(COLLAB_TOOLBAR_POSITION = exports.COLLAB_TOOLBAR_POSITION || (exports.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 || (exports.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 || (exports.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 || (exports.INVOICE_TYPE = {}));
package/dist/env.js CHANGED
@@ -25,14 +25,6 @@ const envSchema = new mongoose_1.Schema({
25
25
  default: enum_1.ENVIRONMENT.PRODUCTION,
26
26
  required: true,
27
27
  },
28
- branch: {
29
- ref: "Branch",
30
- type: mongoose_1.Schema.Types.ObjectId,
31
- },
32
- inheritable: {
33
- type: Boolean,
34
- default: true,
35
- },
36
28
  is_system: {
37
29
  type: Boolean,
38
30
  default: false,
@@ -0,0 +1,30 @@
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
+ import { IEnvironmentVariable } from "./types";
27
+ declare const _default: import("mongoose").Model<IEnvironmentVariable, {}, {}, {}, import("mongoose").Document<unknown, {}, IEnvironmentVariable> & IEnvironmentVariable & {
28
+ _id: import("mongoose").Types.ObjectId;
29
+ }, any>;
30
+ 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);
package/dist/framework.js CHANGED
@@ -24,6 +24,11 @@ const frameworkSchema = new mongoose_1.Schema({
24
24
  required: false,
25
25
  default: true
26
26
  },
27
+ port: {
28
+ type: Number,
29
+ required: false,
30
+ default: 8000
31
+ },
27
32
  tagline: {
28
33
  type: String,
29
34
  required: false,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { default as User } from "./user";
2
2
  export { default as Project, DeletedProject } from "./project";
3
+ export { default as ProjectAnalytics } from "./project_analytics";
3
4
  export { default as Preview } from "./project/preview";
4
5
  export { default as ProjectConnection } from "./project/connection";
5
6
  export { default as Following } from "./following";
@@ -30,18 +31,30 @@ export { default as Framework } from "./framework";
30
31
  export { default as Settings } from "./settings";
31
32
  export { default as LoadBalancerPort } from "./load-balancer-port";
32
33
  export { default as DomainRenewal } from "./domain/renewal";
34
+ export { default as DomainTransfer } from "./domain/transfer";
33
35
  export { default as WebhookCategory } from "./webhook-category";
34
36
  export { default as WebhookEvent } from "./webhook-event";
35
37
  export { default as WebhookSetting } from "./webhook-setting";
36
38
  export { default as Intention } from "./intention";
37
39
  export { default as Provider } from "./provider";
38
- export { default as Branch } from "./branch";
39
40
  export { default as CollabAnnotation } from "./collab-annotation";
40
41
  export { default as CollabComment } from "./collab-comment";
41
42
  export { default as CollabIntegration } from "./collab-integration";
42
43
  export { default as CollabSettings } from "./collab-settings";
43
- export { IUser, IGit, IProject, IPreview, IProjectConnection, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IDns, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, IBranch, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings } from "./types";
44
- export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, DatabaseEngine, JobStatus, LicenseStatus, REGION_CONTINENT, BUILD_DISABLED_BY, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, NomadDeploymentStatus, BRANCH_TYPE, COLLAB_ANNOTATION_STATUS, COLLAB_INTEGRATION_TYPE, COLLAB_THEME, COLLAB_TOOLBAR_POSITION } from "./enum";
44
+ export { default as CollabShareToken } from "./collab-share-token";
45
+ export { default as CollabPushSubscription } from "./collab-push-subscription";
46
+ export { default as AppMessage } from "./app-message";
47
+ export { default as Invoice } from "./invoice";
48
+ export { default as Tag } from "./tag";
49
+ export { default as ProjectTagAssignment } from "./project-tag-assignment";
50
+ export { default as CashierSubscription } from "./cashier_subscription";
51
+ export { default as CashierSubscriptionItem } from "./cashier_subscription_item";
52
+ export { default as ProjectEnvironment } from "./project-environment";
53
+ export { default as EnvironmentVariable } from "./environment-variable";
54
+ export { default as ActivityLog } from "./activity-log";
55
+ export { default as OwnershipTransfer } from "./ownership-transfer";
56
+ export { IUser, IGit, IProject, IProjectAnalytics, IPreview, IProjectConnection, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IDns, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IActivityLog, IOwnershipTransfer, } from "./types";
57
+ export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, DatabaseEngine, JobStatus, LicenseStatus, REGION_CONTINENT, BUILD_DISABLED_BY, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, DomainTransferProvider, DomainTransferDirection, DomainTransferStatus, NomadDeploymentStatus, COLLAB_ANNOTATION_STATUS, COLLAB_INTEGRATION_TYPE, COLLAB_THEME, COLLAB_TOOLBAR_POSITION, INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE } from "./enum";
45
58
  import mongoose from "mongoose";
46
59
  export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
47
60
  export declare const db: mongoose.Connection;
package/dist/index.js CHANGED
@@ -12,13 +12,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.GIT_TYPE = exports.CollabSettings = exports.CollabIntegration = exports.CollabComment = exports.CollabAnnotation = exports.Branch = exports.Provider = exports.Intention = exports.WebhookSetting = exports.WebhookEvent = exports.WebhookCategory = exports.DomainRenewal = exports.LoadBalancerPort = exports.Settings = exports.Framework = exports.Volume = exports.Region = exports.ComputeChange = exports.AutoScalingGroup = exports.PlanConfiguration = exports.Liscense = exports.Job = exports.DbImage = exports.Wallet = exports.Server = exports.Card = exports.Subscription = exports.Log = exports.Role = exports.MemberPermission = exports.Permission = exports.Member = exports.Team = exports.Token = exports.Env = exports.Dns = exports.Domain = exports.Integration = exports.Following = exports.ProjectConnection = exports.Preview = exports.DeletedProject = exports.Project = exports.User = void 0;
16
- exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.BRANCH_TYPE = exports.NomadDeploymentStatus = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = void 0;
15
+ exports.ProjectTagAssignment = exports.Tag = exports.Invoice = exports.AppMessage = exports.CollabPushSubscription = exports.CollabShareToken = exports.CollabSettings = exports.CollabIntegration = exports.CollabComment = exports.CollabAnnotation = exports.Provider = exports.Intention = exports.WebhookSetting = exports.WebhookEvent = exports.WebhookCategory = exports.DomainTransfer = exports.DomainRenewal = exports.LoadBalancerPort = exports.Settings = exports.Framework = exports.Volume = exports.Region = exports.ComputeChange = exports.AutoScalingGroup = exports.PlanConfiguration = exports.Liscense = exports.Job = exports.DbImage = exports.Wallet = exports.Server = exports.Card = exports.Subscription = exports.Log = exports.Role = exports.MemberPermission = exports.Permission = exports.Member = exports.Team = exports.Token = exports.Env = exports.Dns = exports.Domain = exports.Integration = exports.Following = exports.ProjectConnection = exports.Preview = exports.ProjectAnalytics = exports.DeletedProject = exports.Project = exports.User = void 0;
16
+ exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.GIT_TYPE = exports.OwnershipTransfer = exports.ActivityLog = exports.EnvironmentVariable = exports.ProjectEnvironment = exports.CashierSubscriptionItem = exports.CashierSubscription = void 0;
17
17
  var user_1 = require("./user");
18
18
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
19
19
  var project_1 = require("./project");
20
20
  Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return __importDefault(project_1).default; } });
21
21
  Object.defineProperty(exports, "DeletedProject", { enumerable: true, get: function () { return project_1.DeletedProject; } });
22
+ var project_analytics_1 = require("./project_analytics");
23
+ Object.defineProperty(exports, "ProjectAnalytics", { enumerable: true, get: function () { return __importDefault(project_analytics_1).default; } });
22
24
  var preview_1 = require("./project/preview");
23
25
  Object.defineProperty(exports, "Preview", { enumerable: true, get: function () { return __importDefault(preview_1).default; } });
24
26
  var connection_1 = require("./project/connection");
@@ -79,6 +81,8 @@ var load_balancer_port_1 = require("./load-balancer-port");
79
81
  Object.defineProperty(exports, "LoadBalancerPort", { enumerable: true, get: function () { return __importDefault(load_balancer_port_1).default; } });
80
82
  var renewal_1 = require("./domain/renewal");
81
83
  Object.defineProperty(exports, "DomainRenewal", { enumerable: true, get: function () { return __importDefault(renewal_1).default; } });
84
+ var transfer_1 = require("./domain/transfer");
85
+ Object.defineProperty(exports, "DomainTransfer", { enumerable: true, get: function () { return __importDefault(transfer_1).default; } });
82
86
  var webhook_category_1 = require("./webhook-category");
83
87
  Object.defineProperty(exports, "WebhookCategory", { enumerable: true, get: function () { return __importDefault(webhook_category_1).default; } });
84
88
  var webhook_event_1 = require("./webhook-event");
@@ -89,8 +93,6 @@ var intention_1 = require("./intention");
89
93
  Object.defineProperty(exports, "Intention", { enumerable: true, get: function () { return __importDefault(intention_1).default; } });
90
94
  var provider_1 = require("./provider");
91
95
  Object.defineProperty(exports, "Provider", { enumerable: true, get: function () { return __importDefault(provider_1).default; } });
92
- var branch_1 = require("./branch");
93
- Object.defineProperty(exports, "Branch", { enumerable: true, get: function () { return __importDefault(branch_1).default; } });
94
96
  var collab_annotation_1 = require("./collab-annotation");
95
97
  Object.defineProperty(exports, "CollabAnnotation", { enumerable: true, get: function () { return __importDefault(collab_annotation_1).default; } });
96
98
  var collab_comment_1 = require("./collab-comment");
@@ -99,6 +101,30 @@ var collab_integration_1 = require("./collab-integration");
99
101
  Object.defineProperty(exports, "CollabIntegration", { enumerable: true, get: function () { return __importDefault(collab_integration_1).default; } });
100
102
  var collab_settings_1 = require("./collab-settings");
101
103
  Object.defineProperty(exports, "CollabSettings", { enumerable: true, get: function () { return __importDefault(collab_settings_1).default; } });
104
+ var collab_share_token_1 = require("./collab-share-token");
105
+ Object.defineProperty(exports, "CollabShareToken", { enumerable: true, get: function () { return __importDefault(collab_share_token_1).default; } });
106
+ var collab_push_subscription_1 = require("./collab-push-subscription");
107
+ Object.defineProperty(exports, "CollabPushSubscription", { enumerable: true, get: function () { return __importDefault(collab_push_subscription_1).default; } });
108
+ var app_message_1 = require("./app-message");
109
+ Object.defineProperty(exports, "AppMessage", { enumerable: true, get: function () { return __importDefault(app_message_1).default; } });
110
+ var invoice_1 = require("./invoice");
111
+ Object.defineProperty(exports, "Invoice", { enumerable: true, get: function () { return __importDefault(invoice_1).default; } });
112
+ var tag_1 = require("./tag");
113
+ Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return __importDefault(tag_1).default; } });
114
+ var project_tag_assignment_1 = require("./project-tag-assignment");
115
+ Object.defineProperty(exports, "ProjectTagAssignment", { enumerable: true, get: function () { return __importDefault(project_tag_assignment_1).default; } });
116
+ var cashier_subscription_1 = require("./cashier_subscription");
117
+ Object.defineProperty(exports, "CashierSubscription", { enumerable: true, get: function () { return __importDefault(cashier_subscription_1).default; } });
118
+ var cashier_subscription_item_1 = require("./cashier_subscription_item");
119
+ Object.defineProperty(exports, "CashierSubscriptionItem", { enumerable: true, get: function () { return __importDefault(cashier_subscription_item_1).default; } });
120
+ var project_environment_1 = require("./project-environment");
121
+ Object.defineProperty(exports, "ProjectEnvironment", { enumerable: true, get: function () { return __importDefault(project_environment_1).default; } });
122
+ var environment_variable_1 = require("./environment-variable");
123
+ Object.defineProperty(exports, "EnvironmentVariable", { enumerable: true, get: function () { return __importDefault(environment_variable_1).default; } });
124
+ var activity_log_1 = require("./activity-log");
125
+ Object.defineProperty(exports, "ActivityLog", { enumerable: true, get: function () { return __importDefault(activity_log_1).default; } });
126
+ var ownership_transfer_1 = require("./ownership-transfer");
127
+ Object.defineProperty(exports, "OwnershipTransfer", { enumerable: true, get: function () { return __importDefault(ownership_transfer_1).default; } });
102
128
  var enum_1 = require("./enum");
103
129
  Object.defineProperty(exports, "GIT_TYPE", { enumerable: true, get: function () { return enum_1.GIT_TYPE; } });
104
130
  Object.defineProperty(exports, "INTEGRATION_TYPES", { enumerable: true, get: function () { return enum_1.INTEGRATION_TYPES; } });
@@ -123,12 +149,17 @@ Object.defineProperty(exports, "BUILD_DISABLED_BY", { enumerable: true, get: fun
123
149
  Object.defineProperty(exports, "SERVER_PROTOCOL", { enumerable: true, get: function () { return enum_1.SERVER_PROTOCOL; } });
124
150
  Object.defineProperty(exports, "FrameworkApplicationType", { enumerable: true, get: function () { return enum_1.FrameworkApplicationType; } });
125
151
  Object.defineProperty(exports, "DomainRenewalStatus", { enumerable: true, get: function () { return enum_1.DomainRenewalStatus; } });
152
+ Object.defineProperty(exports, "DomainTransferProvider", { enumerable: true, get: function () { return enum_1.DomainTransferProvider; } });
153
+ Object.defineProperty(exports, "DomainTransferDirection", { enumerable: true, get: function () { return enum_1.DomainTransferDirection; } });
154
+ Object.defineProperty(exports, "DomainTransferStatus", { enumerable: true, get: function () { return enum_1.DomainTransferStatus; } });
126
155
  Object.defineProperty(exports, "NomadDeploymentStatus", { enumerable: true, get: function () { return enum_1.NomadDeploymentStatus; } });
127
- Object.defineProperty(exports, "BRANCH_TYPE", { enumerable: true, get: function () { return enum_1.BRANCH_TYPE; } });
128
156
  Object.defineProperty(exports, "COLLAB_ANNOTATION_STATUS", { enumerable: true, get: function () { return enum_1.COLLAB_ANNOTATION_STATUS; } });
129
157
  Object.defineProperty(exports, "COLLAB_INTEGRATION_TYPE", { enumerable: true, get: function () { return enum_1.COLLAB_INTEGRATION_TYPE; } });
130
158
  Object.defineProperty(exports, "COLLAB_THEME", { enumerable: true, get: function () { return enum_1.COLLAB_THEME; } });
131
159
  Object.defineProperty(exports, "COLLAB_TOOLBAR_POSITION", { enumerable: true, get: function () { return enum_1.COLLAB_TOOLBAR_POSITION; } });
160
+ Object.defineProperty(exports, "INVOICE_STATUS", { enumerable: true, get: function () { return enum_1.INVOICE_STATUS; } });
161
+ Object.defineProperty(exports, "INVOICE_PAYMENT_STATUS", { enumerable: true, get: function () { return enum_1.INVOICE_PAYMENT_STATUS; } });
162
+ Object.defineProperty(exports, "INVOICE_TYPE", { enumerable: true, get: function () { return enum_1.INVOICE_TYPE; } });
132
163
  const mongoose_1 = __importDefault(require("mongoose"));
133
164
  const utils_1 = require("@brimble/utils");
134
165
  const connectToMongo = (mongoUrl, config) => __awaiter(void 0, void 0, void 0, function* () {