@brimble/models 3.3.5 → 3.3.7
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/index.d.ts +4 -1
- package/dist/index.js +8 -2
- package/dist/settings.js +4 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/webhook-category.d.ts +4 -0
- package/dist/types/webhook-category.js +2 -0
- package/dist/types/webhook-event.d.ts +7 -0
- package/dist/types/webhook-event.js +2 -0
- package/dist/types/webhook-setting.d.ts +12 -0
- package/dist/types/webhook-setting.js +2 -0
- package/dist/webhook-category.d.ts +30 -0
- package/dist/webhook-category.js +10 -0
- package/dist/webhook-event.d.ts +30 -0
- package/dist/webhook-event.js +19 -0
- package/dist/webhook-setting.d.ts +30 -0
- package/dist/webhook-setting.js +37 -0
- package/index.ts +6 -2
- package/package.json +1 -1
- package/settings.ts +4 -0
- package/types/index.ts +3 -0
- package/types/webhook-category.ts +5 -0
- package/types/webhook-event.ts +8 -0
- package/types/webhook-setting.ts +13 -0
- package/webhook-category.ts +11 -0
- package/webhook-event.ts +20 -0
- package/webhook-setting.ts +35 -0
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,10 @@ export { default as Framework } from "./framework";
|
|
|
30
30
|
export { default as Settings } from "./settings";
|
|
31
31
|
export { default as LoadBalancerPort } from "./load-balancer-port";
|
|
32
32
|
export { default as DomainRenewal } from "./domain/renewal";
|
|
33
|
-
export {
|
|
33
|
+
export { default as WebhookCategory } from "./webhook-category";
|
|
34
|
+
export { default as WebhookEvent } from "./webhook-event";
|
|
35
|
+
export { default as WebhookSetting } from "./webhook-setting";
|
|
36
|
+
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 } from "./types";
|
|
34
37
|
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, } from "./enum";
|
|
35
38
|
import mongoose from "mongoose";
|
|
36
39
|
export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -12,8 +12,8 @@ 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.
|
|
16
|
-
exports.closeMongo = exports.db = exports.connectToMongo = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = void 0;
|
|
15
|
+
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.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.closeMongo = exports.db = exports.connectToMongo = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.BUILD_DISABLED_BY = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.DatabaseEngine = exports.ServiceType = 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");
|
|
@@ -79,6 +79,12 @@ var load_balancer_port_1 = require("./load-balancer-port");
|
|
|
79
79
|
Object.defineProperty(exports, "LoadBalancerPort", { enumerable: true, get: function () { return __importDefault(load_balancer_port_1).default; } });
|
|
80
80
|
var renewal_1 = require("./domain/renewal");
|
|
81
81
|
Object.defineProperty(exports, "DomainRenewal", { enumerable: true, get: function () { return __importDefault(renewal_1).default; } });
|
|
82
|
+
var webhook_category_1 = require("./webhook-category");
|
|
83
|
+
Object.defineProperty(exports, "WebhookCategory", { enumerable: true, get: function () { return __importDefault(webhook_category_1).default; } });
|
|
84
|
+
var webhook_event_1 = require("./webhook-event");
|
|
85
|
+
Object.defineProperty(exports, "WebhookEvent", { enumerable: true, get: function () { return __importDefault(webhook_event_1).default; } });
|
|
86
|
+
var webhook_setting_1 = require("./webhook-setting");
|
|
87
|
+
Object.defineProperty(exports, "WebhookSetting", { enumerable: true, get: function () { return __importDefault(webhook_setting_1).default; } });
|
|
82
88
|
var enum_1 = require("./enum");
|
|
83
89
|
Object.defineProperty(exports, "GIT_TYPE", { enumerable: true, get: function () { return enum_1.GIT_TYPE; } });
|
|
84
90
|
Object.defineProperty(exports, "INTEGRATION_TYPES", { enumerable: true, get: function () { return enum_1.INTEGRATION_TYPES; } });
|
package/dist/settings.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -32,3 +32,6 @@ export { IFramework, BrimbleFrameworkType } from "./framework";
|
|
|
32
32
|
export { ISettings } from "./settings";
|
|
33
33
|
export { ILoadBalancerPort } from "./load-balancer-port";
|
|
34
34
|
export { IDomainRenewal } from "./domain/renewal";
|
|
35
|
+
export { IWebhookSetting } from "./webhook-setting";
|
|
36
|
+
export { IWebhookEvent } from "./webhook-event";
|
|
37
|
+
export { IWebhookCategory } from "./webhook-category";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
import { IWebhookEvent } from "./webhook-event";
|
|
3
|
+
import { ISubscription } from "./subscription";
|
|
4
|
+
import { IUser } from "./user";
|
|
5
|
+
export interface IWebhookSetting extends Document {
|
|
6
|
+
user_id: IUser;
|
|
7
|
+
subscription_id: ISubscription;
|
|
8
|
+
webhookUrl: string;
|
|
9
|
+
discordUrl: string;
|
|
10
|
+
slackUrl: string;
|
|
11
|
+
events: IWebhookEvent[];
|
|
12
|
+
}
|
|
@@ -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 { IWebhookCategory } from "./types/webhook-category";
|
|
27
|
+
declare const _default: import("mongoose").Model<IWebhookCategory, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookCategory> & IWebhookCategory & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
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");
|
|
@@ -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 { IWebhookEvent } from "./types/webhook-event";
|
|
27
|
+
declare const _default: import("mongoose").Model<IWebhookEvent, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookEvent> & IWebhookEvent & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
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");
|
|
@@ -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 { IWebhookSetting } from "./types/webhook-setting";
|
|
27
|
+
declare const _default: import("mongoose").Model<IWebhookSetting, {}, {}, {}, import("mongoose").Document<unknown, {}, IWebhookSetting> & IWebhookSetting & {
|
|
28
|
+
_id: import("mongoose").Types.ObjectId;
|
|
29
|
+
}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
user_id: {
|
|
10
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
11
|
+
ref: "User",
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
subscription_id: {
|
|
15
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
16
|
+
ref: "Subscription",
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
webhookUrl: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: true,
|
|
22
|
+
},
|
|
23
|
+
discordUrl: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: false,
|
|
26
|
+
},
|
|
27
|
+
slackUrl: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: false,
|
|
30
|
+
},
|
|
31
|
+
events: {
|
|
32
|
+
type: [mongoose_1.Schema.Types.ObjectId],
|
|
33
|
+
ref: webhook_event_1.default,
|
|
34
|
+
default: [],
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
exports.default = (0, mongoose_1.model)("WebhookSetting", webhookSettingSchema, "webhook_settings");
|
package/index.ts
CHANGED
|
@@ -30,8 +30,9 @@ export { default as Framework } from "./framework";
|
|
|
30
30
|
export { default as Settings } from "./settings";
|
|
31
31
|
export { default as LoadBalancerPort } from "./load-balancer-port";
|
|
32
32
|
export { default as DomainRenewal } from "./domain/renewal";
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
export { default as WebhookCategory } from "./webhook-category";
|
|
34
|
+
export { default as WebhookEvent } from "./webhook-event";
|
|
35
|
+
export { default as WebhookSetting } from "./webhook-setting";
|
|
35
36
|
|
|
36
37
|
export {
|
|
37
38
|
IUser,
|
|
@@ -69,6 +70,9 @@ export {
|
|
|
69
70
|
ISettings,
|
|
70
71
|
ILoadBalancerPort,
|
|
71
72
|
IDomainRenewal,
|
|
73
|
+
IWebhookCategory,
|
|
74
|
+
IWebhookEvent,
|
|
75
|
+
IWebhookSetting
|
|
72
76
|
} from "./types";
|
|
73
77
|
export {
|
|
74
78
|
GIT_TYPE,
|
package/package.json
CHANGED
package/settings.ts
CHANGED
package/types/index.ts
CHANGED
|
@@ -32,3 +32,6 @@ export { IFramework, BrimbleFrameworkType } from "./framework";
|
|
|
32
32
|
export { ISettings } from "./settings";
|
|
33
33
|
export { ILoadBalancerPort } from "./load-balancer-port";
|
|
34
34
|
export { IDomainRenewal } from "./domain/renewal";
|
|
35
|
+
export { IWebhookSetting } from "./webhook-setting";
|
|
36
|
+
export { IWebhookEvent } from "./webhook-event";
|
|
37
|
+
export { IWebhookCategory } from "./webhook-category";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Document } from "mongoose";
|
|
2
|
+
import { IWebhookEvent } from "./webhook-event";
|
|
3
|
+
import { ISubscription } from "./subscription";
|
|
4
|
+
import { IUser } from "./user";
|
|
5
|
+
|
|
6
|
+
export interface IWebhookSetting extends Document {
|
|
7
|
+
user_id: IUser;
|
|
8
|
+
subscription_id: ISubscription;
|
|
9
|
+
webhookUrl: string;
|
|
10
|
+
discordUrl: string;
|
|
11
|
+
slackUrl: string;
|
|
12
|
+
events: IWebhookEvent[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { model, Schema } from "mongoose";
|
|
2
|
+
import { IWebhookCategory } from "./types/webhook-category";
|
|
3
|
+
|
|
4
|
+
const webhookCategorySchema: Schema = new Schema({
|
|
5
|
+
category: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export default model<IWebhookCategory>("WebhookCategory", webhookCategorySchema, "webhook_category");
|
package/webhook-event.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { model, Schema } from "mongoose";
|
|
2
|
+
import { IWebhookEvent } from "./types/webhook-event";
|
|
3
|
+
|
|
4
|
+
const webhookEventSchema: Schema = new Schema({
|
|
5
|
+
name: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: true,
|
|
8
|
+
},
|
|
9
|
+
category: {
|
|
10
|
+
ref: "WebhookCategory",
|
|
11
|
+
type: Schema.Types.ObjectId,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
description: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export default model<IWebhookEvent>("WebhookEvent", webhookEventSchema, "webhook_event");
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { model, Schema } from "mongoose";
|
|
2
|
+
import { IWebhookSetting } from "./types/webhook-setting";
|
|
3
|
+
import WebhookEvent from "./webhook-event";
|
|
4
|
+
|
|
5
|
+
const webhookSettingSchema: Schema = new Schema({
|
|
6
|
+
user_id: {
|
|
7
|
+
type: Schema.Types.ObjectId,
|
|
8
|
+
ref: "User",
|
|
9
|
+
required: true,
|
|
10
|
+
},
|
|
11
|
+
subscription_id: {
|
|
12
|
+
type: Schema.Types.ObjectId,
|
|
13
|
+
ref: "Subscription",
|
|
14
|
+
required: true,
|
|
15
|
+
},
|
|
16
|
+
webhookUrl: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
discordUrl: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: false,
|
|
23
|
+
},
|
|
24
|
+
slackUrl: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: false,
|
|
27
|
+
},
|
|
28
|
+
events: {
|
|
29
|
+
type: [Schema.Types.ObjectId],
|
|
30
|
+
ref: WebhookEvent,
|
|
31
|
+
default: [],
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export default model<IWebhookSetting>("WebhookSetting", webhookSettingSchema, "webhook_settings");
|