@brimble/models 3.8.43 → 3.8.45
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/enum/index.ts +10 -0
- package/index.ts +4 -1
- package/package.json +1 -1
- package/storage.ts +36 -2
- package/types/index.ts +1 -0
- package/types/storage.ts +25 -1
- package/types/volume.ts +1 -0
- package/volume.ts +4 -0
- package/dist/activity-log.d.ts +0 -9
- package/dist/activity-log.js +0 -61
- package/dist/app-message.d.ts +0 -9
- package/dist/app-message.js +0 -14
- package/dist/auto-scaling.d.ts +0 -9
- package/dist/auto-scaling.js +0 -63
- package/dist/card.d.ts +0 -9
- package/dist/card.js +0 -41
- package/dist/cashier_subscription.d.ts +0 -9
- package/dist/cashier_subscription.js +0 -27
- package/dist/cashier_subscription_item.d.ts +0 -9
- package/dist/cashier_subscription_item.js +0 -17
- package/dist/collab-annotation.d.ts +0 -9
- package/dist/collab-annotation.js +0 -31
- package/dist/collab-comment.d.ts +0 -9
- package/dist/collab-comment.js +0 -19
- package/dist/collab-integration.d.ts +0 -9
- package/dist/collab-integration.js +0 -17
- package/dist/collab-push-subscription.d.ts +0 -9
- package/dist/collab-push-subscription.js +0 -14
- package/dist/collab-settings.d.ts +0 -9
- package/dist/collab-settings.js +0 -24
- package/dist/collab-share-token.d.ts +0 -9
- package/dist/collab-share-token.js +0 -11
- package/dist/compute.d.ts +0 -9
- package/dist/compute.js +0 -82
- package/dist/db-image.d.ts +0 -9
- package/dist/db-image.js +0 -67
- package/dist/domain/dns.d.ts +0 -9
- package/dist/domain/dns.js +0 -33
- package/dist/domain/index.d.ts +0 -9
- package/dist/domain/index.js +0 -109
- package/dist/domain/renewal.d.ts +0 -9
- package/dist/domain/renewal.js +0 -21
- package/dist/domain/transfer.d.ts +0 -9
- package/dist/domain/transfer.js +0 -99
- package/dist/enum/index.d.ts +0 -263
- package/dist/enum/index.js +0 -309
- package/dist/env.d.ts +0 -9
- package/dist/env.js +0 -34
- package/dist/environment-variable.d.ts +0 -9
- package/dist/environment-variable.js +0 -16
- package/dist/follower.d.ts +0 -9
- package/dist/follower.js +0 -15
- package/dist/following.d.ts +0 -9
- package/dist/following.js +0 -15
- package/dist/framework.d.ts +0 -9
- package/dist/framework.js +0 -84
- package/dist/idempotency.d.ts +0 -9
- package/dist/idempotency.js +0 -17
- package/dist/index.d.ts +0 -72
- package/dist/index.js +0 -229
- package/dist/integration.d.ts +0 -9
- package/dist/integration.js +0 -35
- package/dist/intention.d.ts +0 -9
- package/dist/intention.js +0 -36
- package/dist/invoice.d.ts +0 -9
- package/dist/invoice.js +0 -28
- package/dist/job.d.ts +0 -10
- package/dist/job.js +0 -62
- package/dist/license.d.ts +0 -9
- package/dist/license.js +0 -75
- package/dist/load-balancer-port.d.ts +0 -9
- package/dist/load-balancer-port.js +0 -27
- package/dist/logs.d.ts +0 -9
- package/dist/logs.js +0 -40
- package/dist/member-permission.d.ts +0 -9
- package/dist/member-permission.js +0 -9
- package/dist/member.d.ts +0 -9
- package/dist/member.js +0 -40
- package/dist/object-storage-usage-segment.d.ts +0 -9
- package/dist/object-storage-usage-segment.js +0 -46
- package/dist/ownership-transfer.d.ts +0 -9
- package/dist/ownership-transfer.js +0 -35
- package/dist/permission.d.ts +0 -9
- package/dist/permission.js +0 -12
- package/dist/plan_configuration.d.ts +0 -10
- package/dist/plan_configuration.js +0 -61
- package/dist/project/connection.d.ts +0 -9
- package/dist/project/connection.js +0 -14
- package/dist/project/index.d.ts +0 -16
- package/dist/project/index.js +0 -256
- package/dist/project/preview.d.ts +0 -9
- package/dist/project/preview.js +0 -37
- package/dist/project-environment.d.ts +0 -9
- package/dist/project-environment.js +0 -13
- package/dist/project-tag-assignment.d.ts +0 -9
- package/dist/project-tag-assignment.js +0 -32
- package/dist/project_analytics.d.ts +0 -9
- package/dist/project_analytics.js +0 -18
- package/dist/provider.d.ts +0 -9
- package/dist/provider.js +0 -10
- package/dist/region.d.ts +0 -10
- package/dist/region.js +0 -17
- package/dist/role.d.ts +0 -9
- package/dist/role.js +0 -11
- package/dist/sandbox-activity.d.ts +0 -9
- package/dist/sandbox-activity.js +0 -49
- package/dist/sandbox-image.d.ts +0 -9
- package/dist/sandbox-image.js +0 -31
- package/dist/sandbox-snapshot-usage-segment.d.ts +0 -9
- package/dist/sandbox-snapshot-usage-segment.js +0 -49
- package/dist/sandbox-snapshot.d.ts +0 -9
- package/dist/sandbox-snapshot.js +0 -51
- package/dist/sandbox-usage-segment.d.ts +0 -9
- package/dist/sandbox-usage-segment.js +0 -57
- package/dist/sandbox.d.ts +0 -9
- package/dist/sandbox.js +0 -132
- package/dist/server.d.ts +0 -9
- package/dist/server.js +0 -101
- package/dist/settings.d.ts +0 -9
- package/dist/settings.js +0 -49
- package/dist/storage.d.ts +0 -29
- package/dist/storage.js +0 -65
- package/dist/subscription.d.ts +0 -9
- package/dist/subscription.js +0 -82
- package/dist/tag.d.ts +0 -9
- package/dist/tag.js +0 -29
- package/dist/team.d.ts +0 -9
- package/dist/team.js +0 -82
- package/dist/token.d.ts +0 -9
- package/dist/token.js +0 -36
- package/dist/types/activity-log.d.ts +0 -18
- package/dist/types/activity-log.js +0 -2
- package/dist/types/app-message.d.ts +0 -15
- package/dist/types/app-message.js +0 -2
- package/dist/types/auto-scaling-group.d.ts +0 -20
- package/dist/types/auto-scaling-group.js +0 -2
- package/dist/types/card.d.ts +0 -12
- package/dist/types/card.js +0 -2
- package/dist/types/cashier_subscription.d.ts +0 -27
- package/dist/types/cashier_subscription.js +0 -2
- package/dist/types/collab-annotation.d.ts +0 -27
- package/dist/types/collab-annotation.js +0 -2
- package/dist/types/collab-comment.d.ts +0 -20
- package/dist/types/collab-comment.js +0 -2
- package/dist/types/collab-integration.d.ts +0 -13
- package/dist/types/collab-integration.js +0 -2
- package/dist/types/collab-push-subscription.d.ts +0 -12
- package/dist/types/collab-push-subscription.js +0 -2
- package/dist/types/collab-settings.d.ts +0 -16
- package/dist/types/collab-settings.js +0 -2
- package/dist/types/collab-share-token.d.ts +0 -12
- package/dist/types/collab-share-token.js +0 -2
- package/dist/types/compute.d.ts +0 -48
- package/dist/types/compute.js +0 -2
- package/dist/types/db-image.d.ts +0 -25
- package/dist/types/db-image.js +0 -2
- package/dist/types/domain/dns.d.ts +0 -12
- package/dist/types/domain/dns.js +0 -2
- package/dist/types/domain/index.d.ts +0 -35
- package/dist/types/domain/index.js +0 -2
- package/dist/types/domain/renewal.d.ts +0 -10
- package/dist/types/domain/renewal.js +0 -2
- package/dist/types/domain/transfer.d.ts +0 -27
- package/dist/types/domain/transfer.js +0 -2
- package/dist/types/env.d.ts +0 -13
- package/dist/types/env.js +0 -2
- package/dist/types/environment-variable.d.ts +0 -12
- package/dist/types/environment-variable.js +0 -2
- package/dist/types/following.d.ts +0 -5
- package/dist/types/following.js +0 -2
- package/dist/types/framework.d.ts +0 -39
- package/dist/types/framework.js +0 -2
- package/dist/types/git.d.ts +0 -14
- package/dist/types/git.js +0 -2
- package/dist/types/idempotency.d.ts +0 -10
- package/dist/types/idempotency.js +0 -2
- package/dist/types/index.d.ts +0 -66
- package/dist/types/index.js +0 -2
- package/dist/types/installed_integration.d.ts +0 -6
- package/dist/types/installed_integration.js +0 -2
- package/dist/types/integration.d.ts +0 -14
- package/dist/types/integration.js +0 -2
- package/dist/types/intention.d.ts +0 -13
- package/dist/types/intention.js +0 -2
- package/dist/types/invoice.d.ts +0 -15
- package/dist/types/invoice.js +0 -2
- package/dist/types/job.d.ts +0 -19
- package/dist/types/job.js +0 -2
- package/dist/types/license.d.ts +0 -18
- package/dist/types/license.js +0 -2
- package/dist/types/load-balancer-port.d.ts +0 -12
- package/dist/types/load-balancer-port.js +0 -2
- package/dist/types/logs.d.ts +0 -35
- package/dist/types/logs.js +0 -2
- package/dist/types/member-permission.d.ts +0 -8
- package/dist/types/member-permission.js +0 -2
- package/dist/types/member.d.ts +0 -18
- package/dist/types/member.js +0 -2
- package/dist/types/object-storage-usage-segment.d.ts +0 -23
- package/dist/types/object-storage-usage-segment.js +0 -2
- package/dist/types/ownership-transfer.d.ts +0 -12
- package/dist/types/ownership-transfer.js +0 -2
- package/dist/types/permission.d.ts +0 -13
- package/dist/types/permission.js +0 -2
- package/dist/types/plan_configuration.d.ts +0 -55
- package/dist/types/plan_configuration.js +0 -2
- package/dist/types/project/connection.d.ts +0 -6
- package/dist/types/project/connection.js +0 -2
- package/dist/types/project/index.d.ts +0 -100
- package/dist/types/project/index.js +0 -2
- package/dist/types/project/preview.d.ts +0 -21
- package/dist/types/project/preview.js +0 -2
- package/dist/types/project-environment.d.ts +0 -13
- package/dist/types/project-environment.js +0 -2
- package/dist/types/project-tag-assignment.d.ts +0 -13
- package/dist/types/project-tag-assignment.js +0 -2
- package/dist/types/project_analytics.d.ts +0 -11
- package/dist/types/project_analytics.js +0 -2
- package/dist/types/provider.d.ts +0 -7
- package/dist/types/provider.js +0 -2
- package/dist/types/region.d.ts +0 -15
- package/dist/types/region.js +0 -2
- package/dist/types/role.d.ts +0 -9
- package/dist/types/role.js +0 -2
- package/dist/types/sandbox-activity.d.ts +0 -14
- package/dist/types/sandbox-activity.js +0 -2
- package/dist/types/sandbox-image.d.ts +0 -9
- package/dist/types/sandbox-image.js +0 -2
- package/dist/types/sandbox-snapshot-usage-segment.d.ts +0 -16
- package/dist/types/sandbox-snapshot-usage-segment.js +0 -2
- package/dist/types/sandbox-snapshot.d.ts +0 -16
- package/dist/types/sandbox-snapshot.js +0 -2
- package/dist/types/sandbox-usage-segment.d.ts +0 -25
- package/dist/types/sandbox-usage-segment.js +0 -2
- package/dist/types/sandbox.d.ts +0 -41
- package/dist/types/sandbox.js +0 -2
- package/dist/types/server.d.ts +0 -32
- package/dist/types/server.js +0 -2
- package/dist/types/settings.d.ts +0 -11
- package/dist/types/settings.js +0 -2
- package/dist/types/storage.d.ts +0 -62
- package/dist/types/storage.js +0 -2
- package/dist/types/subscription.d.ts +0 -33
- package/dist/types/subscription.js +0 -2
- package/dist/types/tag.d.ts +0 -11
- package/dist/types/tag.js +0 -2
- package/dist/types/team.d.ts +0 -24
- package/dist/types/team.js +0 -2
- package/dist/types/token.d.ts +0 -11
- package/dist/types/token.js +0 -2
- package/dist/types/user.d.ts +0 -44
- package/dist/types/user.js +0 -2
- package/dist/types/volume-usage-segment.d.ts +0 -16
- package/dist/types/volume-usage-segment.js +0 -2
- package/dist/types/volume.d.ts +0 -19
- package/dist/types/volume.js +0 -2
- package/dist/types/wallet.d.ts +0 -8
- package/dist/types/wallet.js +0 -2
- package/dist/types/webhook-category.d.ts +0 -4
- package/dist/types/webhook-category.js +0 -2
- package/dist/types/webhook-event.d.ts +0 -7
- package/dist/types/webhook-event.js +0 -2
- package/dist/types/webhook-setting.d.ts +0 -16
- package/dist/types/webhook-setting.js +0 -2
- package/dist/user.d.ts +0 -9
- package/dist/user.js +0 -70
- package/dist/volume-usage-segment.d.ts +0 -9
- package/dist/volume-usage-segment.js +0 -46
- package/dist/volume.d.ts +0 -9
- package/dist/volume.js +0 -44
- package/dist/wallet.d.ts +0 -9
- package/dist/wallet.js +0 -26
- package/dist/webhook-category.d.ts +0 -9
- package/dist/webhook-category.js +0 -10
- package/dist/webhook-event.d.ts +0 -9
- package/dist/webhook-event.js +0 -19
- package/dist/webhook-setting.d.ts +0 -9
- package/dist/webhook-setting.js +0 -50
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const volumeUsageSegmentSchema = new mongoose_1.Schema({
|
|
5
|
-
volume_id: {
|
|
6
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
-
ref: "Volume",
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
user_id: {
|
|
11
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
12
|
-
ref: "User",
|
|
13
|
-
required: true,
|
|
14
|
-
index: true,
|
|
15
|
-
},
|
|
16
|
-
team_id: {
|
|
17
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
18
|
-
ref: "Team",
|
|
19
|
-
default: null,
|
|
20
|
-
index: true,
|
|
21
|
-
},
|
|
22
|
-
size_gb: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: 0,
|
|
25
|
-
},
|
|
26
|
-
costs: {
|
|
27
|
-
startDate: { type: Date, required: true },
|
|
28
|
-
endDate: { type: Date, default: null },
|
|
29
|
-
},
|
|
30
|
-
billed: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: false,
|
|
33
|
-
index: true,
|
|
34
|
-
},
|
|
35
|
-
}, {
|
|
36
|
-
timestamps: true,
|
|
37
|
-
});
|
|
38
|
-
volumeUsageSegmentSchema.index({ user_id: 1, billed: 1, "costs.endDate": 1 });
|
|
39
|
-
volumeUsageSegmentSchema.index({ team_id: 1, billed: 1, "costs.endDate": 1 });
|
|
40
|
-
volumeUsageSegmentSchema.index({ volume_id: 1, "costs.endDate": 1 });
|
|
41
|
-
volumeUsageSegmentSchema.index({ volume_id: 1 }, {
|
|
42
|
-
unique: true,
|
|
43
|
-
partialFilterExpression: { "costs.endDate": null },
|
|
44
|
-
name: "unique_open_segment_per_volume",
|
|
45
|
-
});
|
|
46
|
-
exports.default = (0, mongoose_1.model)("VolumeUsageSegment", volumeUsageSegmentSchema, "volume_usage_segments");
|
package/dist/volume.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IVolume } from "./types";
|
|
2
|
-
declare const _default: import("mongoose").Model<IVolume, {}, {}, {}, import("mongoose").Document<unknown, {}, IVolume, {}, import("mongoose").DefaultSchemaOptions> & IVolume & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, IVolume>;
|
|
9
|
-
export default _default;
|
package/dist/volume.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const volumeSchema = new mongoose_1.Schema({
|
|
5
|
-
name: String,
|
|
6
|
-
user: {
|
|
7
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
-
required: false,
|
|
9
|
-
ref: "User",
|
|
10
|
-
default: null,
|
|
11
|
-
},
|
|
12
|
-
team: {
|
|
13
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
14
|
-
required: false,
|
|
15
|
-
ref: "Team",
|
|
16
|
-
default: null,
|
|
17
|
-
},
|
|
18
|
-
type: {
|
|
19
|
-
type: String,
|
|
20
|
-
required: false,
|
|
21
|
-
default: "project"
|
|
22
|
-
},
|
|
23
|
-
size: { type: Number, required: true },
|
|
24
|
-
mount_path: { type: String },
|
|
25
|
-
csi_volume_id: { type: String, default: null },
|
|
26
|
-
region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", default: null },
|
|
27
|
-
attached_sandbox_id: {
|
|
28
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
29
|
-
ref: "Sandbox",
|
|
30
|
-
default: null,
|
|
31
|
-
},
|
|
32
|
-
attached_project_id: {
|
|
33
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
34
|
-
ref: "Project",
|
|
35
|
-
default: null,
|
|
36
|
-
},
|
|
37
|
-
last_attached_at: { type: Date, default: null },
|
|
38
|
-
}, {
|
|
39
|
-
timestamps: {
|
|
40
|
-
createdAt: "created_at",
|
|
41
|
-
updatedAt: "updated_at",
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
exports.default = (0, mongoose_1.model)("Volume", volumeSchema);
|
package/dist/wallet.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IWallet } from "./types/wallet";
|
|
2
|
-
declare const _default: import("mongoose").Model<IWallet, {}, {}, {}, import("mongoose").Document<unknown, {}, IWallet, {}, import("mongoose").DefaultSchemaOptions> & IWallet & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, IWallet>;
|
|
9
|
-
export default _default;
|
package/dist/wallet.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const walletSchema = new mongoose_1.Schema({
|
|
5
|
-
balance: {
|
|
6
|
-
type: Number,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
enabled: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: true,
|
|
12
|
-
},
|
|
13
|
-
slug: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
provider: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
discounted: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
exports.default = (0, mongoose_1.model)("Wallet", walletSchema);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IWebhookCategory } from "./types/webhook-category";
|
|
2
|
-
declare const _default: import("mongoose").Model<IWebhookCategory, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookCategory, {}, import("mongoose").DefaultSchemaOptions> & IWebhookCategory & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, IWebhookCategory>;
|
|
9
|
-
export default _default;
|
package/dist/webhook-category.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const webhookCategorySchema = new mongoose_1.Schema({
|
|
5
|
-
category: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
exports.default = (0, mongoose_1.model)("WebhookCategory", webhookCategorySchema, "webhook_category");
|
package/dist/webhook-event.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IWebhookEvent } from "./types/webhook-event";
|
|
2
|
-
declare const _default: import("mongoose").Model<IWebhookEvent, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookEvent, {}, import("mongoose").DefaultSchemaOptions> & IWebhookEvent & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, IWebhookEvent>;
|
|
9
|
-
export default _default;
|
package/dist/webhook-event.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const mongoose_1 = require("mongoose");
|
|
4
|
-
const webhookEventSchema = new mongoose_1.Schema({
|
|
5
|
-
name: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
},
|
|
9
|
-
category: {
|
|
10
|
-
ref: "WebhookCategory",
|
|
11
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
description: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
exports.default = (0, mongoose_1.model)("WebhookEvent", webhookEventSchema, "webhook_event");
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IWebhookSetting } from "./types/webhook-setting";
|
|
2
|
-
declare const _default: import("mongoose").Model<IWebhookSetting, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookSetting, {}, import("mongoose").DefaultSchemaOptions> & IWebhookSetting & Required<{
|
|
3
|
-
_id: import("mongoose").Types.ObjectId;
|
|
4
|
-
}> & {
|
|
5
|
-
__v: number;
|
|
6
|
-
} & {
|
|
7
|
-
id: string;
|
|
8
|
-
}, any, IWebhookSetting>;
|
|
9
|
-
export default _default;
|
package/dist/webhook-setting.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const mongoose_1 = require("mongoose");
|
|
7
|
-
const webhook_event_1 = __importDefault(require("./webhook-event"));
|
|
8
|
-
const webhookSettingSchema = new mongoose_1.Schema({
|
|
9
|
-
webhook_id: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: false,
|
|
12
|
-
},
|
|
13
|
-
user_id: {
|
|
14
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
15
|
-
ref: "User",
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
team_id: {
|
|
19
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
20
|
-
ref: "Team",
|
|
21
|
-
required: false,
|
|
22
|
-
},
|
|
23
|
-
subscription_id: {
|
|
24
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
25
|
-
ref: "Subscription",
|
|
26
|
-
required: true,
|
|
27
|
-
},
|
|
28
|
-
external_webhook_url: {
|
|
29
|
-
type: String,
|
|
30
|
-
required: false,
|
|
31
|
-
},
|
|
32
|
-
webhookUrl: {
|
|
33
|
-
type: String,
|
|
34
|
-
required: false,
|
|
35
|
-
},
|
|
36
|
-
discordUrl: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: false,
|
|
39
|
-
},
|
|
40
|
-
slackUrl: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: false,
|
|
43
|
-
},
|
|
44
|
-
events: {
|
|
45
|
-
type: [mongoose_1.Schema.Types.ObjectId],
|
|
46
|
-
ref: webhook_event_1.default,
|
|
47
|
-
default: [],
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
exports.default = (0, mongoose_1.model)("WebhookSetting", webhookSettingSchema, "webhook_settings");
|