@earbug/db-models 0.0.46 → 0.0.47
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/AppUser.d.ts +9 -1
- package/dist/AppUser.js +26 -0
- package/models/AppUser.ts +35 -1
- package/package.json +1 -1
package/dist/AppUser.d.ts
CHANGED
|
@@ -42,10 +42,14 @@ export interface AppUserAttributes {
|
|
|
42
42
|
unsubscribeFollowingNotifications?: Date;
|
|
43
43
|
unsubscribeInterestNotifications?: Date;
|
|
44
44
|
unsubscribeFunNotifications?: Date;
|
|
45
|
+
hardBounce?: Date;
|
|
46
|
+
softBounce1?: Date;
|
|
47
|
+
softBounce2?: Date;
|
|
48
|
+
softBounce3?: Date;
|
|
45
49
|
}
|
|
46
50
|
export type AppUserPk = "id";
|
|
47
51
|
export type AppUserId = AppUser[AppUserPk];
|
|
48
|
-
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications";
|
|
52
|
+
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications" | "hardBounce" | "softBounce1" | "softBounce2" | "softBounce3";
|
|
49
53
|
export type AppUserCreationAttributes = Optional<AppUserAttributes, AppUserOptionalAttributes>;
|
|
50
54
|
export declare class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes> implements AppUserAttributes {
|
|
51
55
|
email: string;
|
|
@@ -65,6 +69,10 @@ export declare class AppUser extends Model<AppUserAttributes, AppUserCreationAtt
|
|
|
65
69
|
unsubscribeFollowingNotifications?: Date;
|
|
66
70
|
unsubscribeInterestNotifications?: Date;
|
|
67
71
|
unsubscribeFunNotifications?: Date;
|
|
72
|
+
hardBounce?: Date;
|
|
73
|
+
softBounce1?: Date;
|
|
74
|
+
softBounce2?: Date;
|
|
75
|
+
softBounce3?: Date;
|
|
68
76
|
appUserDevices: AppUserDevice[];
|
|
69
77
|
getAppUserDevices: Sequelize.HasManyGetAssociationsMixin<AppUserDevice>;
|
|
70
78
|
setAppUserDevices: Sequelize.HasManySetAssociationsMixin<AppUserDevice, AppUserDeviceId>;
|
package/dist/AppUser.js
CHANGED
|
@@ -124,6 +124,26 @@ class AppUser extends sequelize_1.Model {
|
|
|
124
124
|
type: sequelize_1.DataTypes.DATE,
|
|
125
125
|
allowNull: true,
|
|
126
126
|
field: 'unsubscribe_fun_notifications'
|
|
127
|
+
},
|
|
128
|
+
hardBounce: {
|
|
129
|
+
type: sequelize_1.DataTypes.DATE,
|
|
130
|
+
allowNull: true,
|
|
131
|
+
field: 'hard_bounce'
|
|
132
|
+
},
|
|
133
|
+
softBounce1: {
|
|
134
|
+
type: sequelize_1.DataTypes.DATE,
|
|
135
|
+
allowNull: true,
|
|
136
|
+
field: 'soft_bounce_1'
|
|
137
|
+
},
|
|
138
|
+
softBounce2: {
|
|
139
|
+
type: sequelize_1.DataTypes.DATE,
|
|
140
|
+
allowNull: true,
|
|
141
|
+
field: 'soft_bounce_2'
|
|
142
|
+
},
|
|
143
|
+
softBounce3: {
|
|
144
|
+
type: sequelize_1.DataTypes.DATE,
|
|
145
|
+
allowNull: true,
|
|
146
|
+
field: 'soft_bounce_3'
|
|
127
147
|
}
|
|
128
148
|
}, {
|
|
129
149
|
sequelize,
|
|
@@ -138,6 +158,12 @@ class AppUser extends sequelize_1.Model {
|
|
|
138
158
|
{ name: "id" },
|
|
139
159
|
]
|
|
140
160
|
},
|
|
161
|
+
{
|
|
162
|
+
name: "idx_app_user_hard_bounce",
|
|
163
|
+
fields: [
|
|
164
|
+
{ name: "hard_bounce" },
|
|
165
|
+
]
|
|
166
|
+
},
|
|
141
167
|
{
|
|
142
168
|
name: "uk_app_user_email",
|
|
143
169
|
unique: true,
|
package/models/AppUser.ts
CHANGED
|
@@ -43,11 +43,15 @@ export interface AppUserAttributes {
|
|
|
43
43
|
unsubscribeFollowingNotifications?: Date;
|
|
44
44
|
unsubscribeInterestNotifications?: Date;
|
|
45
45
|
unsubscribeFunNotifications?: Date;
|
|
46
|
+
hardBounce?: Date;
|
|
47
|
+
softBounce1?: Date;
|
|
48
|
+
softBounce2?: Date;
|
|
49
|
+
softBounce3?: Date;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
export type AppUserPk = "id";
|
|
49
53
|
export type AppUserId = AppUser[AppUserPk];
|
|
50
|
-
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications";
|
|
54
|
+
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications" | "hardBounce" | "softBounce1" | "softBounce2" | "softBounce3";
|
|
51
55
|
export type AppUserCreationAttributes = Optional<AppUserAttributes, AppUserOptionalAttributes>;
|
|
52
56
|
|
|
53
57
|
export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes> implements AppUserAttributes {
|
|
@@ -68,6 +72,10 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
|
|
|
68
72
|
unsubscribeFollowingNotifications?: Date;
|
|
69
73
|
unsubscribeInterestNotifications?: Date;
|
|
70
74
|
unsubscribeFunNotifications?: Date;
|
|
75
|
+
hardBounce?: Date;
|
|
76
|
+
softBounce1?: Date;
|
|
77
|
+
softBounce2?: Date;
|
|
78
|
+
softBounce3?: Date;
|
|
71
79
|
|
|
72
80
|
// AppUser hasMany AppUserDevice via appUserId
|
|
73
81
|
appUserDevices!: AppUserDevice[];
|
|
@@ -489,6 +497,26 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
|
|
|
489
497
|
type: DataTypes.DATE,
|
|
490
498
|
allowNull: true,
|
|
491
499
|
field: 'unsubscribe_fun_notifications'
|
|
500
|
+
},
|
|
501
|
+
hardBounce: {
|
|
502
|
+
type: DataTypes.DATE,
|
|
503
|
+
allowNull: true,
|
|
504
|
+
field: 'hard_bounce'
|
|
505
|
+
},
|
|
506
|
+
softBounce1: {
|
|
507
|
+
type: DataTypes.DATE,
|
|
508
|
+
allowNull: true,
|
|
509
|
+
field: 'soft_bounce_1'
|
|
510
|
+
},
|
|
511
|
+
softBounce2: {
|
|
512
|
+
type: DataTypes.DATE,
|
|
513
|
+
allowNull: true,
|
|
514
|
+
field: 'soft_bounce_2'
|
|
515
|
+
},
|
|
516
|
+
softBounce3: {
|
|
517
|
+
type: DataTypes.DATE,
|
|
518
|
+
allowNull: true,
|
|
519
|
+
field: 'soft_bounce_3'
|
|
492
520
|
}
|
|
493
521
|
}, {
|
|
494
522
|
sequelize,
|
|
@@ -503,6 +531,12 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
|
|
|
503
531
|
{ name: "id" },
|
|
504
532
|
]
|
|
505
533
|
},
|
|
534
|
+
{
|
|
535
|
+
name: "idx_app_user_hard_bounce",
|
|
536
|
+
fields: [
|
|
537
|
+
{ name: "hard_bounce" },
|
|
538
|
+
]
|
|
539
|
+
},
|
|
506
540
|
{
|
|
507
541
|
name: "uk_app_user_email",
|
|
508
542
|
unique: true,
|