@winible/winible-typed 2.15.4 → 2.15.6
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.
@@ -64,6 +64,12 @@ DiscordIntegration.init({
|
|
64
64
|
defaultValue: false,
|
65
65
|
field: "archived",
|
66
66
|
},
|
67
|
+
shouldRemoveRoles: {
|
68
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
69
|
+
allowNull: false,
|
70
|
+
defaultValue: true,
|
71
|
+
field: "should_remove_roles",
|
72
|
+
},
|
67
73
|
createdAt: sequelize_1.DataTypes.DATE,
|
68
74
|
updatedAt: sequelize_1.DataTypes.DATE,
|
69
75
|
}, {
|
@@ -80,5 +86,15 @@ DiscordIntegration.hasOne(subscription_plan_1.default, {
|
|
80
86
|
foreignKey: "id",
|
81
87
|
sourceKey: "planId",
|
82
88
|
});
|
89
|
+
free_subscription_plan_1.default.hasMany(DiscordIntegration, {
|
90
|
+
foreignKey: "freePlanId",
|
91
|
+
sourceKey: "id",
|
92
|
+
onDelete: "NO ACTION",
|
93
|
+
constraints: false,
|
94
|
+
});
|
95
|
+
DiscordIntegration.hasOne(free_subscription_plan_1.default, {
|
96
|
+
foreignKey: "id",
|
97
|
+
sourceKey: "freePlanId",
|
98
|
+
});
|
83
99
|
exports.default = DiscordIntegration;
|
84
100
|
//# sourceMappingURL=discord-integration.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"discord-integration.js","sourceRoot":"","sources":["../../typed-model/discord-integration.ts"],"names":[],"mappings":";;;;;AAAA,yCAMmB;AAEnB,kEAAuC;AACvC,4EAAmD;AACnD,sFAA4D;AAE5D,mEAAmE;AACnE,MAAM,kBAAmB,SAAQ,iBAGhC;
|
1
|
+
{"version":3,"file":"discord-integration.js","sourceRoot":"","sources":["../../typed-model/discord-integration.ts"],"names":[],"mappings":";;;;;AAAA,yCAMmB;AAEnB,kEAAuC;AACvC,4EAAmD;AACnD,sFAA4D;AAE5D,mEAAm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UAAU;KAClB;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,qBAAS,CAAC,OAAO;QACvB,SAAS,EAAE,KAAK;QAChB,YAAY,EAAE,IAAI;QAClB,KAAK,EAAE,qBAAqB;KAC7B;IACD,SAAS,EAAE,qBAAS,CAAC,IAAI;IACzB,SAAS,EAAE,qBAAS,CAAC,IAAI;CAC1B,EACD;IACE,SAAS,EAAE,sBAAsB;IACjC,SAAS,EAAT,sBAAS;CACV,CACF,CAAC;AAEF,2BAAgB,CAAC,OAAO,CAAC,kBAAkB,EAAE;IAC3C,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC;AAEH,kBAAkB,CAAC,MAAM,CAAC,2BAAgB,EAAE;IAC1C,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,QAAQ;CACpB,CAAC,CAAC;AAEH,gCAAoB,CAAC,OAAO,CAAC,kBAAkB,EAAE;IAC/C,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC;AAEH,kBAAkB,CAAC,MAAM,CAAC,gCAAoB,EAAE;IAC9C,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,YAAY;CACxB,CAAC,CAAC;AAEH,kBAAe,kBAAkB,CAAC"}
|
package/package.json
CHANGED
@@ -26,6 +26,7 @@ class DiscordIntegration extends Model<
|
|
26
26
|
declare refreshToken: string;
|
27
27
|
declare metadata: string;
|
28
28
|
declare archived: boolean;
|
29
|
+
declare shouldRemoveRoles: boolean;
|
29
30
|
|
30
31
|
declare createdAt: CreationOptional<Date>;
|
31
32
|
declare updatedAt: CreationOptional<Date>;
|
@@ -86,6 +87,12 @@ DiscordIntegration.init(
|
|
86
87
|
defaultValue: false,
|
87
88
|
field: "archived",
|
88
89
|
},
|
90
|
+
shouldRemoveRoles: {
|
91
|
+
type: DataTypes.BOOLEAN,
|
92
|
+
allowNull: false,
|
93
|
+
defaultValue: true,
|
94
|
+
field: "should_remove_roles",
|
95
|
+
},
|
89
96
|
createdAt: DataTypes.DATE,
|
90
97
|
updatedAt: DataTypes.DATE,
|
91
98
|
},
|
@@ -107,4 +114,16 @@ DiscordIntegration.hasOne(SubscriptionPlan, {
|
|
107
114
|
sourceKey: "planId",
|
108
115
|
});
|
109
116
|
|
117
|
+
FreeSubscriptionPlan.hasMany(DiscordIntegration, {
|
118
|
+
foreignKey: "freePlanId",
|
119
|
+
sourceKey: "id",
|
120
|
+
onDelete: "NO ACTION",
|
121
|
+
constraints: false,
|
122
|
+
});
|
123
|
+
|
124
|
+
DiscordIntegration.hasOne(FreeSubscriptionPlan, {
|
125
|
+
foreignKey: "id",
|
126
|
+
sourceKey: "freePlanId",
|
127
|
+
});
|
128
|
+
|
110
129
|
export default DiscordIntegration;
|