@comet/brevo-api 9.0.0-beta.1 → 9.0.0-beta.3
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/lib/blacklisted-contacts/blacklisted-contacts.service.js +18 -30
- package/lib/blacklisted-contacts/blacklisted-contacts.service.js.map +1 -1
- package/lib/brevo-api/brevo-api-campaigns.service.js +121 -187
- package/lib/brevo-api/brevo-api-campaigns.service.js.map +1 -1
- package/lib/brevo-api/brevo-api-contact.service.d.ts.map +1 -1
- package/lib/brevo-api/brevo-api-contact.service.js +195 -283
- package/lib/brevo-api/brevo-api-contact.service.js.map +1 -1
- package/lib/brevo-api/brevo-api-folders.service.js +19 -47
- package/lib/brevo-api/brevo-api-folders.service.js.map +1 -1
- package/lib/brevo-api/brevo-api-sender.service.js +8 -19
- package/lib/brevo-api/brevo-api-sender.service.js.map +1 -1
- package/lib/brevo-api/brevo-api-transactional-mails.service.js +22 -32
- package/lib/brevo-api/brevo-api-transactional-mails.service.js.map +1 -1
- package/lib/brevo-api/brevo-api.utils.d.ts +1 -1
- package/lib/brevo-api/brevo-api.utils.d.ts.map +1 -1
- package/lib/brevo-api/dto/brevo-api-campaign.d.ts +1 -1
- package/lib/brevo-api/dto/brevo-api-campaign.d.ts.map +1 -1
- package/lib/brevo-config/brevo-config.resolver.js +67 -106
- package/lib/brevo-config/brevo-config.resolver.js.map +1 -1
- package/lib/brevo-contact/brevo-contact-import.console.js +24 -39
- package/lib/brevo-contact/brevo-contact-import.console.js.map +1 -1
- package/lib/brevo-contact/brevo-contact-import.resolver.js +27 -38
- package/lib/brevo-contact/brevo-contact-import.resolver.js.map +1 -1
- package/lib/brevo-contact/brevo-contact-import.service.d.ts.map +1 -1
- package/lib/brevo-contact/brevo-contact-import.service.js +108 -146
- package/lib/brevo-contact/brevo-contact-import.service.js.map +1 -1
- package/lib/brevo-contact/brevo-contact.console.js +20 -31
- package/lib/brevo-contact/brevo-contact.console.js.map +1 -1
- package/lib/brevo-contact/brevo-contact.resolver.d.ts.map +1 -1
- package/lib/brevo-contact/brevo-contact.resolver.js +154 -181
- package/lib/brevo-contact/brevo-contact.resolver.js.map +1 -1
- package/lib/brevo-contact/brevo-contacts.service.js +88 -103
- package/lib/brevo-contact/brevo-contacts.service.js.map +1 -1
- package/lib/brevo-contact/ecg-rtr-list/ecg-rtr-list.service.d.ts.map +1 -1
- package/lib/brevo-contact/ecg-rtr-list/ecg-rtr-list.service.js +36 -49
- package/lib/brevo-contact/ecg-rtr-list/ecg-rtr-list.service.js.map +1 -1
- package/lib/brevo-contact/validator/redirect-url.validator.js +10 -21
- package/lib/brevo-contact/validator/redirect-url.validator.js.map +1 -1
- package/lib/brevo-email-import-log/brevo-email-import-log.service.js +14 -26
- package/lib/brevo-email-import-log/brevo-email-import-log.service.js.map +1 -1
- package/lib/config/brevo-module.config.d.ts +8 -8
- package/lib/config/brevo-module.config.d.ts.map +1 -1
- package/lib/email-campaign/email-campaign.resolver.js +112 -143
- package/lib/email-campaign/email-campaign.resolver.js.map +1 -1
- package/lib/email-campaign/email-campaigns.service.js +77 -94
- package/lib/email-campaign/email-campaigns.service.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240115095733.js +2 -13
- package/lib/mikro-orm/migrations/Migration20240115095733.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240118144808.js +3 -14
- package/lib/mikro-orm/migrations/Migration20240118144808.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240123145606.js +4 -15
- package/lib/mikro-orm/migrations/Migration20240123145606.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240527112204.js +2 -13
- package/lib/mikro-orm/migrations/Migration20240527112204.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240619092554.js +2 -13
- package/lib/mikro-orm/migrations/Migration20240619092554.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240619145217.js +2 -13
- package/lib/mikro-orm/migrations/Migration20240619145217.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240621102349.js +4 -15
- package/lib/mikro-orm/migrations/Migration20240621102349.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240819214939.js +7 -18
- package/lib/mikro-orm/migrations/Migration20240819214939.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20240830112400.js +3 -14
- package/lib/mikro-orm/migrations/Migration20240830112400.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20241016123307.js +2 -13
- package/lib/mikro-orm/migrations/Migration20241016123307.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20241018110515.js +2 -13
- package/lib/mikro-orm/migrations/Migration20241018110515.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20241022144400.js +2 -13
- package/lib/mikro-orm/migrations/Migration20241022144400.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20241024071748.js +2 -13
- package/lib/mikro-orm/migrations/Migration20241024071748.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20241119101706.js +3 -14
- package/lib/mikro-orm/migrations/Migration20241119101706.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20250221073825.js +2 -13
- package/lib/mikro-orm/migrations/Migration20250221073825.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20250317131301.js +2 -13
- package/lib/mikro-orm/migrations/Migration20250317131301.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20250321132034.js +2 -13
- package/lib/mikro-orm/migrations/Migration20250321132034.js.map +1 -1
- package/lib/mikro-orm/migrations/Migration20250703155205.js +7 -18
- package/lib/mikro-orm/migrations/Migration20250703155205.js.map +1 -1
- package/lib/mikro-orm/migrations/migrations.d.ts +1 -1
- package/lib/mikro-orm/migrations/migrations.d.ts.map +1 -1
- package/lib/target-group/target-group.resolver.d.ts.map +1 -1
- package/lib/target-group/target-group.resolver.js +93 -115
- package/lib/target-group/target-group.resolver.js.map +1 -1
- package/lib/target-group/target-groups.service.d.ts.map +1 -1
- package/lib/target-group/target-groups.service.js +87 -105
- package/lib/target-group/target-groups.service.js.map +1 -1
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +21 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240115095733.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240115095733.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240115095733.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240115095733.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,oWAAoW,CACvW,CAAC;IACN,CAAC;CACJ;AAND,0DAMC"}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20240118144808 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20240118144808 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.addSql('alter table "TargetGroup" add constraint "TargetGroup_pkey" primary key ("id");');
|
|
19
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('create table "TargetGroup" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "title" text not null, "brevoId" int not null, "isMainList" boolean);');
|
|
8
|
+
this.addSql('alter table "TargetGroup" add constraint "TargetGroup_pkey" primary key ("id");');
|
|
20
9
|
}
|
|
21
10
|
}
|
|
22
11
|
exports.Migration20240118144808 = Migration20240118144808;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240118144808.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240118144808.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240118144808.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240118144808.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,qNAAqN,CACxN,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,iFAAiF,CAAC,CAAC;IACnG,CAAC;CACJ;AAPD,0DAOC"}
|
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20240123145606 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20240123145606 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.addSql('alter table "EmailCampaign" add constraint "EmailCampaign_targetGroup_foreign" foreign key ("targetGroup") references "TargetGroup" ("id") on update cascade on delete set null;');
|
|
20
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "EmailCampaign" add column "targetGroup" uuid null');
|
|
8
|
+
this.addSql('alter table "EmailCampaign" drop column "contactList";');
|
|
9
|
+
this.addSql('alter table "EmailCampaign" add constraint "EmailCampaign_targetGroup_foreign" foreign key ("targetGroup") references "TargetGroup" ("id") on update cascade on delete set null;');
|
|
21
10
|
}
|
|
22
11
|
}
|
|
23
12
|
exports.Migration20240123145606 = Migration20240123145606;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240123145606.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240123145606.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240123145606.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240123145606.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAAC;QAC9E,IAAI,CAAC,MAAM,CAAC,wDAAwD,CAAC,CAAC;QAEtE,IAAI,CAAC,MAAM,CACP,kLAAkL,CACrL,CAAC;IACN,CAAC;CACJ;AATD,0DASC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20240527112204 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20240527112204 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('create table "BrevoConfig" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "senderMail" text not null, "senderName" text not null, constraint "BrevoConfig_pkey" primary key ("id"));');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('create table "BrevoConfig" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "senderMail" text not null, "senderName" text not null, constraint "BrevoConfig_pkey" primary key ("id"));');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20240527112204 = Migration20240527112204;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240527112204.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240527112204.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240527112204.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240527112204.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,0PAA0P,CAC7P,CAAC;IACN,CAAC;CACJ;AAND,0DAMC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20240619092554 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20240619092554 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('alter table "TargetGroup" add column "assignedContactsTargetGroupBrevoId" int null;');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "TargetGroup" add column "assignedContactsTargetGroupBrevoId" int null;');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20240619092554 = Migration20240619092554;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240619092554.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240619092554.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240619092554.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240619092554.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,qFAAqF,CAAC,CAAC;IACvG,CAAC;CACJ;AAJD,0DAIC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20240619145217 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20240619145217 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('drop table "BrevoConfig";');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('drop table "BrevoConfig";');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20240619145217 = Migration20240619145217;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240619145217.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240619145217.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240619145217.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240619145217.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC;IAC7C,CAAC;CACJ;AAJD,0DAIC"}
|
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20240621102349 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20240621102349 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.addSql(`
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql("alter table \"EmailCampaign\" add column \"sendingState\" text check (\"sendingState\" in ('DRAFT', 'SENT', 'SCHEDULED')) null;");
|
|
8
|
+
this.addSql(`
|
|
19
9
|
UPDATE "EmailCampaign"
|
|
20
10
|
SET "sendingState" = CASE
|
|
21
11
|
WHEN "scheduledAt" IS NOT NULL THEN 'SCHEDULED'
|
|
22
12
|
ELSE 'DRAFT'
|
|
23
13
|
END;
|
|
24
14
|
`);
|
|
25
|
-
|
|
26
|
-
});
|
|
15
|
+
this.addSql('alter table "EmailCampaign" alter column "sendingState" set not null;');
|
|
27
16
|
}
|
|
28
17
|
}
|
|
29
18
|
exports.Migration20240621102349 = Migration20240621102349;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240621102349.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240621102349.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240621102349.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240621102349.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,iIAAiI,CACpI,CAAC;QAGF,IAAI,CAAC,MAAM,CAAC;;;;;;SAMX,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,uEAAuE,CAAC,CAAC;IACzF,CAAC;CACJ;AAjBD,0DAiBC"}
|
|
@@ -1,29 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20240819214939 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20240819214939 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.addSql(`
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "EmailCampaign" drop constraint "EmailCampaign_targetGroup_foreign";');
|
|
8
|
+
this.addSql('create table "EmailCampaign_targetGroups" ("emailCampaign" uuid not null, "targetGroup" uuid not null, constraint "EmailCampaign_targetGroups_pkey" primary key ("emailCampaign", "targetGroup"));');
|
|
9
|
+
this.addSql('alter table "EmailCampaign_targetGroups" add constraint "EmailCampaign_targetGroups_emailCampaign_foreign" foreign key ("emailCampaign") references "EmailCampaign" ("id") on update cascade on delete cascade;');
|
|
10
|
+
this.addSql('alter table "EmailCampaign_targetGroups" add constraint "EmailCampaign_targetGroups_targetGroup_foreign" foreign key ("targetGroup") references "TargetGroup" ("id") on update cascade on delete cascade;');
|
|
11
|
+
this.addSql(`
|
|
22
12
|
INSERT INTO "EmailCampaign_targetGroups" ("emailCampaign", "targetGroup")
|
|
23
13
|
SELECT "id", "targetGroup" FROM "EmailCampaign" WHERE "targetGroup" IS NOT NULL;
|
|
24
14
|
`);
|
|
25
|
-
|
|
26
|
-
});
|
|
15
|
+
this.addSql('alter table "EmailCampaign" drop column "targetGroup";');
|
|
27
16
|
}
|
|
28
17
|
}
|
|
29
18
|
exports.Migration20240819214939 = Migration20240819214939;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240819214939.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240819214939.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240819214939.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240819214939.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,kFAAkF,CAAC,CAAC;QAEhG,IAAI,CAAC,MAAM,CACP,oMAAoM,CACvM,CAAC;QAEF,IAAI,CAAC,MAAM,CACP,iNAAiN,CACpN,CAAC;QACF,IAAI,CAAC,MAAM,CACP,2MAA2M,CAC9M,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC;;;SAGX,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,wDAAwD,CAAC,CAAC;IAC1E,CAAC;CACJ;AAtBD,0DAsBC"}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20240830112400 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20240830112400 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.addSql('alter table "TargetGroup" alter column "isTestList" drop default;');
|
|
19
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "TargetGroup" add column "isTestList" boolean not null default false;');
|
|
8
|
+
this.addSql('alter table "TargetGroup" alter column "isTestList" drop default;');
|
|
20
9
|
}
|
|
21
10
|
}
|
|
22
11
|
exports.Migration20240830112400 = Migration20240830112400;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20240830112400.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240830112400.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20240830112400.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20240830112400.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,mFAAmF,CAAC,CAAC;QAEjG,IAAI,CAAC,MAAM,CAAC,mEAAmE,CAAC,CAAC;IACrF,CAAC;CACJ;AAND,0DAMC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20241016123307 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20241016123307 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('create table "BrevoConfig" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "scope_domain" text not null, "scope_language" text not null, "senderMail" text not null, "senderName" text not null, constraint "BrevoConfig_pkey" primary key ("id"));');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('create table "BrevoConfig" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "scope_domain" text not null, "scope_language" text not null, "senderMail" text not null, "senderName" text not null, constraint "BrevoConfig_pkey" primary key ("id"));');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20241016123307 = Migration20241016123307;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20241016123307.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241016123307.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20241016123307.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241016123307.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,wTAAwT,CAC3T,CAAC;IACN,CAAC;CACJ;AAND,0DAMC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20241018110515 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20241018110515 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('alter table "BrevoConfig" add column "doubleOptInTemplateId" int;');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "BrevoConfig" add column "doubleOptInTemplateId" int;');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20241018110515 = Migration20241018110515;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20241018110515.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241018110515.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20241018110515.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241018110515.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,mEAAmE,CAAC,CAAC;IACrF,CAAC;CACJ;AAJD,0DAIC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20241022144400 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20241022144400 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('alter table "BrevoConfig" add column "allowedRedirectionUrl" text;');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "BrevoConfig" add column "allowedRedirectionUrl" text;');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20241022144400 = Migration20241022144400;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20241022144400.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241022144400.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20241022144400.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241022144400.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,oEAAoE,CAAC,CAAC;IACtF,CAAC;CACJ;AAJD,0DAIC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20241024071748 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20241024071748 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('alter table "BrevoConfig" add column "unsubscriptionPageId" text not null;');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "BrevoConfig" add column "unsubscriptionPageId" text not null;');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20241024071748 = Migration20241024071748;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20241024071748.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241024071748.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20241024071748.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241024071748.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,4EAA4E,CAAC,CAAC;IAC9F,CAAC;CACJ;AAJD,0DAIC"}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20241119101706 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20241119101706 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.addSql('alter table "BrevoConfig" alter column "folderId" drop default;');
|
|
19
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "BrevoConfig" add column "folderId" int not null default 1;');
|
|
8
|
+
this.addSql('alter table "BrevoConfig" alter column "folderId" drop default;');
|
|
20
9
|
}
|
|
21
10
|
}
|
|
22
11
|
exports.Migration20241119101706 = Migration20241119101706;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20241119101706.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241119101706.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20241119101706.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20241119101706.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,yEAAyE,CAAC,CAAC;QACvF,IAAI,CAAC,MAAM,CAAC,iEAAiE,CAAC,CAAC;IACnF,CAAC;CACJ;AALD,0DAKC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20250221073825 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20250221073825 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('alter table "BrevoConfig" drop column "scope_domain", drop column "scope_language";');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "BrevoConfig" drop column "scope_domain", drop column "scope_language";');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20250221073825 = Migration20250221073825;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20250221073825.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20250221073825.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20250221073825.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20250221073825.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,qFAAqF,CAAC,CAAC;IACvG,CAAC;CACJ;AAJD,0DAIC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20250317131301 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20250317131301 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('create table "BrevoEmailImportLog" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "importedEmail" text not null, "responsibleUserId" text not null, "importId" uuid null, "contactSource" text check ("contactSource" in (\'manualCreation\', \'csvImport\')) not null)');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('create table "BrevoEmailImportLog" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "importedEmail" text not null, "responsibleUserId" text not null, "importId" uuid null, "contactSource" text check ("contactSource" in (\'manualCreation\', \'csvImport\')) not null)');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20250317131301 = Migration20250317131301;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20250317131301.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20250317131301.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20250317131301.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20250317131301.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,6UAA6U,CAChV,CAAC;IACN,CAAC;CACJ;AAND,0DAMC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20250321132034 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20250321132034 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
this.addSql('create table "BlacklistedContacts" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "hashedEmail" text not null)');
|
|
18
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('create table "BlacklistedContacts" ("id" uuid not null, "createdAt" timestamp with time zone not null, "updatedAt" timestamp with time zone not null, "hashedEmail" text not null)');
|
|
19
8
|
}
|
|
20
9
|
}
|
|
21
10
|
exports.Migration20250321132034 = Migration20250321132034;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20250321132034.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20250321132034.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20250321132034.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20250321132034.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CACP,oLAAoL,CACvL,CAAC;IACN,CAAC;CACJ;AAND,0DAMC"}
|
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Migration20250703155205 = void 0;
|
|
13
4
|
const migrations_1 = require("@mikro-orm/migrations");
|
|
14
5
|
class Migration20250703155205 extends migrations_1.Migration {
|
|
15
|
-
up() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.addSql('alter table "BrevoEmailCampaign_targetGroups" rename column "targetGroup" to "brevoTargetGroup";');
|
|
23
|
-
});
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql('alter table "EmailCampaign" rename to "BrevoEmailCampaign";');
|
|
8
|
+
this.addSql('alter table "BlacklistedContacts" rename to "BrevoBlacklistedContacts";');
|
|
9
|
+
this.addSql('alter table "TargetGroup" rename to "BrevoTargetGroup";');
|
|
10
|
+
this.addSql('alter table "EmailCampaign_targetGroups" rename to "BrevoEmailCampaign_targetGroups";');
|
|
11
|
+
this.addSql('alter table "BrevoEmailCampaign_targetGroups" rename column "emailCampaign" to "brevoEmailCampaign";');
|
|
12
|
+
this.addSql('alter table "BrevoEmailCampaign_targetGroups" rename column "targetGroup" to "brevoTargetGroup";');
|
|
24
13
|
}
|
|
25
14
|
}
|
|
26
15
|
exports.Migration20250703155205 = Migration20250703155205;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20250703155205.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20250703155205.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Migration20250703155205.js","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/Migration20250703155205.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACJ,IAAI,CAAC,MAAM,CAAC,6DAA6D,CAAC,CAAC;QAC3E,IAAI,CAAC,MAAM,CAAC,yEAAyE,CAAC,CAAC;QACvF,IAAI,CAAC,MAAM,CAAC,yDAAyD,CAAC,CAAC;QACvE,IAAI,CAAC,MAAM,CAAC,uFAAuF,CAAC,CAAC;QACrG,IAAI,CAAC,MAAM,CAAC,sGAAsG,CAAC,CAAC;QACpH,IAAI,CAAC,MAAM,CAAC,kGAAkG,CAAC,CAAC;IACpH,CAAC;CACJ;AATD,0DASC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../src/mikro-orm/migrations/migrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAqB7D,eAAO,MAAM,cAAc,EAAE,eAAe,EAmB3C,CAAC"}
|