@winible/winible-typed 2.56.0 → 2.57.0
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/package.json
CHANGED
@@ -8,7 +8,6 @@ import {
|
|
8
8
|
} from "sequelize";
|
9
9
|
|
10
10
|
import sequelize from "./pb-sequelize";
|
11
|
-
import PhoneNumberAssignment from "./phone-number-assignment";
|
12
11
|
|
13
12
|
class MarketingPhoneNumber extends Model<
|
14
13
|
InferAttributes<MarketingPhoneNumber>,
|
@@ -48,11 +47,5 @@ import {
|
|
48
47
|
}
|
49
48
|
);
|
50
49
|
|
51
|
-
/* associations */
|
52
|
-
MarketingPhoneNumber.hasMany(PhoneNumberAssignment, {
|
53
|
-
foreignKey: "phoneNumberId",
|
54
|
-
sourceKey: "id",
|
55
|
-
});
|
56
|
-
|
57
50
|
export default MarketingPhoneNumber;
|
58
51
|
|
@@ -54,10 +54,15 @@ import {
|
|
54
54
|
foreignKey: "creatorId",
|
55
55
|
targetKey: "id",
|
56
56
|
});
|
57
|
+
|
57
58
|
PhoneNumberAssignment.belongsTo(MarketingPhoneNumber, {
|
58
59
|
foreignKey: "phoneNumberId",
|
59
60
|
targetKey: "id",
|
60
61
|
});
|
62
|
+
MarketingPhoneNumber.hasMany(PhoneNumberAssignment, {
|
63
|
+
foreignKey: "phoneNumberId",
|
64
|
+
sourceKey: "id",
|
65
|
+
});
|
61
66
|
|
62
67
|
export default PhoneNumberAssignment;
|
63
68
|
|
@@ -8,7 +8,6 @@ import {
|
|
8
8
|
} from "sequelize";
|
9
9
|
|
10
10
|
import sequelize from "./pb-sequelize";
|
11
|
-
import SendgridEmailSubAccount from "./sendgrid-email-sub-account";
|
12
11
|
|
13
12
|
class SendgridDomain extends Model<
|
14
13
|
InferAttributes<SendgridDomain>,
|
@@ -55,11 +54,5 @@ import {
|
|
55
54
|
}
|
56
55
|
);
|
57
56
|
|
58
|
-
/* associations */
|
59
|
-
SendgridDomain.hasMany(SendgridEmailSubAccount, {
|
60
|
-
foreignKey: "assignedDomainId",
|
61
|
-
sourceKey: "id",
|
62
|
-
});
|
63
|
-
|
64
57
|
export default SendgridDomain;
|
65
58
|
|
@@ -96,14 +96,24 @@ import {
|
|
96
96
|
foreignKey: "creatorId",
|
97
97
|
targetKey: "id",
|
98
98
|
});
|
99
|
+
|
99
100
|
SendgridEmailSubAccount.belongsTo(SendgridIpPool, {
|
100
101
|
foreignKey: "assignedIpPoolId",
|
101
102
|
targetKey: "id",
|
102
103
|
});
|
104
|
+
SendgridIpPool.hasMany(SendgridEmailSubAccount, {
|
105
|
+
foreignKey: "assignedIpPoolId",
|
106
|
+
sourceKey: "id",
|
107
|
+
});
|
108
|
+
|
103
109
|
SendgridEmailSubAccount.belongsTo(SendgridDomain, {
|
104
110
|
foreignKey: "assignedDomainId",
|
105
111
|
targetKey: "id",
|
106
112
|
});
|
113
|
+
SendgridDomain.hasMany(SendgridEmailSubAccount, {
|
114
|
+
foreignKey: "assignedDomainId",
|
115
|
+
sourceKey: "id",
|
116
|
+
});
|
107
117
|
|
108
118
|
export default SendgridEmailSubAccount;
|
109
119
|
|
@@ -8,7 +8,6 @@ import {
|
|
8
8
|
} from "sequelize";
|
9
9
|
|
10
10
|
import sequelize from "./pb-sequelize";
|
11
|
-
import SendgridEmailSubAccount from "./sendgrid-email-sub-account";
|
12
11
|
|
13
12
|
class SendgridIpPool extends Model<
|
14
13
|
InferAttributes<SendgridIpPool>,
|
@@ -47,11 +46,5 @@ import {
|
|
47
46
|
}
|
48
47
|
);
|
49
48
|
|
50
|
-
/* associations */
|
51
|
-
SendgridIpPool.hasMany(SendgridEmailSubAccount, {
|
52
|
-
foreignKey: "assignedIpPoolId",
|
53
|
-
sourceKey: "id",
|
54
|
-
});
|
55
|
-
|
56
49
|
export default SendgridIpPool;
|
57
50
|
|