@earbug/db-models 0.0.45 → 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 CHANGED
@@ -37,10 +37,19 @@ 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;
45
+ hardBounce?: Date;
46
+ softBounce1?: Date;
47
+ softBounce2?: Date;
48
+ softBounce3?: Date;
40
49
  }
41
50
  export type AppUserPk = "id";
42
51
  export type AppUserId = AppUser[AppUserPk];
43
- export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference";
52
+ export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications" | "hardBounce" | "softBounce1" | "softBounce2" | "softBounce3";
44
53
  export type AppUserCreationAttributes = Optional<AppUserAttributes, AppUserOptionalAttributes>;
45
54
  export declare class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes> implements AppUserAttributes {
46
55
  email: string;
@@ -55,6 +64,15 @@ export declare class AppUser extends Model<AppUserAttributes, AppUserCreationAtt
55
64
  lastHarvested?: Date;
56
65
  lastHarvestedError?: string;
57
66
  earbugAccessControlPreference: string;
67
+ unsubscribeAll?: Date;
68
+ unsubscribeBiweeklyEmail?: Date;
69
+ unsubscribeFollowingNotifications?: Date;
70
+ unsubscribeInterestNotifications?: Date;
71
+ unsubscribeFunNotifications?: Date;
72
+ hardBounce?: Date;
73
+ softBounce1?: Date;
74
+ softBounce2?: Date;
75
+ softBounce3?: Date;
58
76
  appUserDevices: AppUserDevice[];
59
77
  getAppUserDevices: Sequelize.HasManyGetAssociationsMixin<AppUserDevice>;
60
78
  setAppUserDevices: Sequelize.HasManySetAssociationsMixin<AppUserDevice, AppUserDeviceId>;
package/dist/AppUser.js CHANGED
@@ -99,6 +99,51 @@ 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'
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'
102
147
  }
103
148
  }, {
104
149
  sequelize,
@@ -113,6 +158,12 @@ class AppUser extends sequelize_1.Model {
113
158
  { name: "id" },
114
159
  ]
115
160
  },
161
+ {
162
+ name: "idx_app_user_hard_bounce",
163
+ fields: [
164
+ { name: "hard_bounce" },
165
+ ]
166
+ },
116
167
  {
117
168
  name: "uk_app_user_email",
118
169
  unique: true,
package/models/AppUser.ts CHANGED
@@ -38,11 +38,20 @@ 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;
46
+ hardBounce?: Date;
47
+ softBounce1?: Date;
48
+ softBounce2?: Date;
49
+ softBounce3?: Date;
41
50
  }
42
51
 
43
52
  export type AppUserPk = "id";
44
53
  export type AppUserId = AppUser[AppUserPk];
45
- export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference";
54
+ export type AppUserOptionalAttributes = "id" | "createDate" | "updateDate" | "syncContacts" | "stateId" | "lastName" | "autoApproveFollowers" | "lastHarvested" | "lastHarvestedError" | "earbugAccessControlPreference" | "unsubscribeAll" | "unsubscribeBiweeklyEmail" | "unsubscribeFollowingNotifications" | "unsubscribeInterestNotifications" | "unsubscribeFunNotifications" | "hardBounce" | "softBounce1" | "softBounce2" | "softBounce3";
46
55
  export type AppUserCreationAttributes = Optional<AppUserAttributes, AppUserOptionalAttributes>;
47
56
 
48
57
  export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes> implements AppUserAttributes {
@@ -58,6 +67,15 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
58
67
  lastHarvested?: Date;
59
68
  lastHarvestedError?: string;
60
69
  earbugAccessControlPreference!: string;
70
+ unsubscribeAll?: Date;
71
+ unsubscribeBiweeklyEmail?: Date;
72
+ unsubscribeFollowingNotifications?: Date;
73
+ unsubscribeInterestNotifications?: Date;
74
+ unsubscribeFunNotifications?: Date;
75
+ hardBounce?: Date;
76
+ softBounce1?: Date;
77
+ softBounce2?: Date;
78
+ softBounce3?: Date;
61
79
 
62
80
  // AppUser hasMany AppUserDevice via appUserId
63
81
  appUserDevices!: AppUserDevice[];
@@ -454,6 +472,51 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
454
472
  allowNull: false,
455
473
  defaultValue: "PUBLIC",
456
474
  field: 'earbug_access_control_preference'
475
+ },
476
+ unsubscribeAll: {
477
+ type: DataTypes.DATE,
478
+ allowNull: true,
479
+ field: 'unsubscribe_all'
480
+ },
481
+ unsubscribeBiweeklyEmail: {
482
+ type: DataTypes.DATE,
483
+ allowNull: true,
484
+ field: 'unsubscribe_biweekly_email'
485
+ },
486
+ unsubscribeFollowingNotifications: {
487
+ type: DataTypes.DATE,
488
+ allowNull: true,
489
+ field: 'unsubscribe_following_notifications'
490
+ },
491
+ unsubscribeInterestNotifications: {
492
+ type: DataTypes.DATE,
493
+ allowNull: true,
494
+ field: 'unsubscribe_interest_notifications'
495
+ },
496
+ unsubscribeFunNotifications: {
497
+ type: DataTypes.DATE,
498
+ allowNull: true,
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'
457
520
  }
458
521
  }, {
459
522
  sequelize,
@@ -468,6 +531,12 @@ export class AppUser extends Model<AppUserAttributes, AppUserCreationAttributes>
468
531
  { name: "id" },
469
532
  ]
470
533
  },
534
+ {
535
+ name: "idx_app_user_hard_bounce",
536
+ fields: [
537
+ { name: "hard_bounce" },
538
+ ]
539
+ },
471
540
  {
472
541
  name: "uk_app_user_email",
473
542
  unique: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earbug/db-models",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {