@earbug/db-models 0.0.45 → 0.0.46
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 +11 -1
- package/dist/AppUser.js +25 -0
- package/models/AppUser.ts +36 -1
- package/package.json +1 -1
package/dist/AppUser.d.ts
CHANGED
|
@@ -37,10 +37,15 @@ export interface AppUserAttributes {
|
|
|
37
37
|
lastHarvested?: Date;
|
|
38
38
|
lastHarvestedError?: string;
|
|
39
39
|
earbugAccessControlPreference: string;
|
|
40
|
+
unsubscribeAll?: Date;
|
|
41
|
+
unsubscribeBiweeklyEmail?: Date;
|
|
42
|
+
unsubscribeFollowingNotifications?: Date;
|
|
43
|
+
unsubscribeInterestNotifications?: Date;
|
|
44
|
+
unsubscribeFunNotifications?: Date;
|
|
40
45
|
}
|
|
41
46
|
export type AppUserPk = "id";
|
|
42
47
|
export type AppUserId = AppUser[AppUserPk];
|
|
43
|
-
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference";
|
|
48
|
+
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications";
|
|
44
49
|
export type AppUserCreationAttributes = Optional<AppUserAttributes, AppUserOptionalAttributes>;
|
|
45
50
|
export declare class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes> implements AppUserAttributes {
|
|
46
51
|
email: string;
|
|
@@ -55,6 +60,11 @@ export declare class AppUser extends Model<AppUserAttributes, AppUserCreationAtt
|
|
|
55
60
|
lastHarvested?: Date;
|
|
56
61
|
lastHarvestedError?: string;
|
|
57
62
|
earbugAccessControlPreference: string;
|
|
63
|
+
unsubscribeAll?: Date;
|
|
64
|
+
unsubscribeBiweeklyEmail?: Date;
|
|
65
|
+
unsubscribeFollowingNotifications?: Date;
|
|
66
|
+
unsubscribeInterestNotifications?: Date;
|
|
67
|
+
unsubscribeFunNotifications?: Date;
|
|
58
68
|
appUserDevices: AppUserDevice[];
|
|
59
69
|
getAppUserDevices: Sequelize.HasManyGetAssociationsMixin<AppUserDevice>;
|
|
60
70
|
setAppUserDevices: Sequelize.HasManySetAssociationsMixin<AppUserDevice, AppUserDeviceId>;
|
package/dist/AppUser.js
CHANGED
|
@@ -99,6 +99,31 @@ class AppUser extends sequelize_1.Model {
|
|
|
99
99
|
allowNull: false,
|
|
100
100
|
defaultValue: "PUBLIC",
|
|
101
101
|
field: 'earbug_access_control_preference'
|
|
102
|
+
},
|
|
103
|
+
unsubscribeAll: {
|
|
104
|
+
type: sequelize_1.DataTypes.DATE,
|
|
105
|
+
allowNull: true,
|
|
106
|
+
field: 'unsubscribe_all'
|
|
107
|
+
},
|
|
108
|
+
unsubscribeBiweeklyEmail: {
|
|
109
|
+
type: sequelize_1.DataTypes.DATE,
|
|
110
|
+
allowNull: true,
|
|
111
|
+
field: 'unsubscribe_biweekly_email'
|
|
112
|
+
},
|
|
113
|
+
unsubscribeFollowingNotifications: {
|
|
114
|
+
type: sequelize_1.DataTypes.DATE,
|
|
115
|
+
allowNull: true,
|
|
116
|
+
field: 'unsubscribe_following_notifications'
|
|
117
|
+
},
|
|
118
|
+
unsubscribeInterestNotifications: {
|
|
119
|
+
type: sequelize_1.DataTypes.DATE,
|
|
120
|
+
allowNull: true,
|
|
121
|
+
field: 'unsubscribe_interest_notifications'
|
|
122
|
+
},
|
|
123
|
+
unsubscribeFunNotifications: {
|
|
124
|
+
type: sequelize_1.DataTypes.DATE,
|
|
125
|
+
allowNull: true,
|
|
126
|
+
field: 'unsubscribe_fun_notifications'
|
|
102
127
|
}
|
|
103
128
|
}, {
|
|
104
129
|
sequelize,
|
package/models/AppUser.ts
CHANGED
|
@@ -38,11 +38,16 @@ export interface AppUserAttributes {
|
|
|
38
38
|
lastHarvested?: Date;
|
|
39
39
|
lastHarvestedError?: string;
|
|
40
40
|
earbugAccessControlPreference: string;
|
|
41
|
+
unsubscribeAll?: Date;
|
|
42
|
+
unsubscribeBiweeklyEmail?: Date;
|
|
43
|
+
unsubscribeFollowingNotifications?: Date;
|
|
44
|
+
unsubscribeInterestNotifications?: Date;
|
|
45
|
+
unsubscribeFunNotifications?: Date;
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
export type AppUserPk = "id";
|
|
44
49
|
export type AppUserId = AppUser[AppUserPk];
|
|
45
|
-
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference";
|
|
50
|
+
export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications";
|
|
46
51
|
export type AppUserCreationAttributes = Optional<AppUserAttributes, AppUserOptionalAttributes>;
|
|
47
52
|
|
|
48
53
|
export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes> implements AppUserAttributes {
|
|
@@ -58,6 +63,11 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
|
|
|
58
63
|
lastHarvested?: Date;
|
|
59
64
|
lastHarvestedError?: string;
|
|
60
65
|
earbugAccessControlPreference!: string;
|
|
66
|
+
unsubscribeAll?: Date;
|
|
67
|
+
unsubscribeBiweeklyEmail?: Date;
|
|
68
|
+
unsubscribeFollowingNotifications?: Date;
|
|
69
|
+
unsubscribeInterestNotifications?: Date;
|
|
70
|
+
unsubscribeFunNotifications?: Date;
|
|
61
71
|
|
|
62
72
|
// AppUser hasMany AppUserDevice via appUserId
|
|
63
73
|
appUserDevices!: AppUserDevice[];
|
|
@@ -454,6 +464,31 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
|
|
|
454
464
|
allowNull: false,
|
|
455
465
|
defaultValue: "PUBLIC",
|
|
456
466
|
field: 'earbug_access_control_preference'
|
|
467
|
+
},
|
|
468
|
+
unsubscribeAll: {
|
|
469
|
+
type: DataTypes.DATE,
|
|
470
|
+
allowNull: true,
|
|
471
|
+
field: 'unsubscribe_all'
|
|
472
|
+
},
|
|
473
|
+
unsubscribeBiweeklyEmail: {
|
|
474
|
+
type: DataTypes.DATE,
|
|
475
|
+
allowNull: true,
|
|
476
|
+
field: 'unsubscribe_biweekly_email'
|
|
477
|
+
},
|
|
478
|
+
unsubscribeFollowingNotifications: {
|
|
479
|
+
type: DataTypes.DATE,
|
|
480
|
+
allowNull: true,
|
|
481
|
+
field: 'unsubscribe_following_notifications'
|
|
482
|
+
},
|
|
483
|
+
unsubscribeInterestNotifications: {
|
|
484
|
+
type: DataTypes.DATE,
|
|
485
|
+
allowNull: true,
|
|
486
|
+
field: 'unsubscribe_interest_notifications'
|
|
487
|
+
},
|
|
488
|
+
unsubscribeFunNotifications: {
|
|
489
|
+
type: DataTypes.DATE,
|
|
490
|
+
allowNull: true,
|
|
491
|
+
field: 'unsubscribe_fun_notifications'
|
|
457
492
|
}
|
|
458
493
|
}, {
|
|
459
494
|
sequelize,
|