@winible/winible-typed 2.23.8 → 2.23.9
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.
@@ -33,6 +33,11 @@ NotificationPreference.init({
|
|
33
33
|
field: "type",
|
34
34
|
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.STRING),
|
35
35
|
},
|
36
|
+
inboxEmail: {
|
37
|
+
field: "inbox_email",
|
38
|
+
type: sequelize_1.DataTypes.STRING,
|
39
|
+
allowNull: true,
|
40
|
+
},
|
36
41
|
createdAt: sequelize_1.DataTypes.DATE,
|
37
42
|
updatedAt: sequelize_1.DataTypes.DATE,
|
38
43
|
}, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notification-preference.js","sourceRoot":"","sources":["../../typed-model/notification-preference.ts"],"names":[],"mappings":";;;;;AAAA,yCAOmB;AAEnB,kEAAuC;AACvC,kDAA0B;AAM1B,mEAAmE;AACnE,MAAM,sBAAuB,SAAQ,iBAGpC;
|
1
|
+
{"version":3,"file":"notification-preference.js","sourceRoot":"","sources":["../../typed-model/notification-preference.ts"],"names":[],"mappings":";;;;;AAAA,yCAOmB;AAEnB,kEAAuC;AACvC,kDAA0B;AAM1B,mEAAmE;AACnE,MAAM,sBAAuB,SAAQ,iBAGpC;CAUA;AAED,sBAAsB,CAAC,IAAI,CACzB;IACE,EAAE,EAAE;QACF,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,YAAY,EAAE,IAAA,cAAE,EAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,KAAK;QAChB,UAAU,EAAE,IAAI;KACjB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE;YACV,KAAK,EAAE,cAAI;SACZ;KACF;IACD,MAAM,EAAE;QACN,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,QAAQ;KAChB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,qBAAS,CAAC,KAAK,CAAC,qBAAS,CAAC,MAAM,CAAC;KACxC;IACD,UAAU,EAAE;QACV,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,IAAI;KAChB;IACD,SAAS,EAAE,qBAAS,CAAC,IAAI;IACzB,SAAS,EAAE,qBAAS,CAAC,IAAI;CAC1B,EACD;IACE,SAAS,EAAE,0BAA0B;IACrC,SAAS,EAAT,sBAAS;CACV,CACF,CAAC;AAEF,cAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE;IACnC,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC;AAEH,sBAAsB,CAAC,MAAM,CAAC,cAAI,EAAE;IAClC,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,QAAQ;IACnB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC;AAEH,kBAAe,sBAAsB,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@winible/winible-typed",
|
3
|
-
"version": "2.23.
|
3
|
+
"version": "2.23.9",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -21,7 +21,6 @@
|
|
21
21
|
"@slack/bolt": "^3.12.1",
|
22
22
|
"@types/express": "^4.17.13",
|
23
23
|
"@types/uploadcare": "^0.4.1",
|
24
|
-
"@winible/oddsjam-js-wrapper": "^1.0.4",
|
25
24
|
"authorizenet": "^1.0.8",
|
26
25
|
"aws-sdk": "^2.824.0",
|
27
26
|
"axios": "^0.21.4",
|
@@ -25,6 +25,7 @@ class NotificationPreference extends Model<
|
|
25
25
|
declare userId: string;
|
26
26
|
declare device: NotificationPreferenceDevice;
|
27
27
|
declare types: NotificationType[];
|
28
|
+
declare inboxEmail: CreationOptional<string | null>;
|
28
29
|
declare createdAt: CreationOptional<Date>;
|
29
30
|
declare updatedAt: CreationOptional<Date>;
|
30
31
|
}
|
@@ -54,6 +55,11 @@ NotificationPreference.init(
|
|
54
55
|
field: "type",
|
55
56
|
type: DataTypes.ARRAY(DataTypes.STRING),
|
56
57
|
},
|
58
|
+
inboxEmail: {
|
59
|
+
field: "inbox_email",
|
60
|
+
type: DataTypes.STRING,
|
61
|
+
allowNull: true,
|
62
|
+
},
|
57
63
|
createdAt: DataTypes.DATE,
|
58
64
|
updatedAt: DataTypes.DATE,
|
59
65
|
},
|
@@ -23,8 +23,8 @@ export type NotificationType =
|
|
23
23
|
| "PAID_SUBSCRIPTION_RENEWAL"
|
24
24
|
| "DISCOVERY_RECOMENDATIONS"
|
25
25
|
| "SUBSCRIBER_WELCOME"
|
26
|
-
| "MARKETING"
|
27
|
-
|
26
|
+
| "MARKETING"
|
27
|
+
| "INBOX";
|
28
28
|
// order of InferAttributes & InferCreationAttributes is important.
|
29
29
|
class Notification extends Model<
|
30
30
|
InferAttributes<Notification>,
|