@comet/brevo-api 2.0.0-canary-20240613061021 → 2.0.0-canary-20240708071523
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/brevo-api/brevo-api-campaigns.service.d.ts +11 -17
- package/lib/brevo-api/brevo-api-campaigns.service.d.ts.map +1 -1
- package/lib/brevo-api/brevo-api-campaigns.service.js +51 -24
- package/lib/brevo-api/brevo-api-campaigns.service.js.map +1 -1
- package/lib/brevo-api/brevo-api-contact.service.d.ts +17 -17
- package/lib/brevo-api/brevo-api-contact.service.d.ts.map +1 -1
- package/lib/brevo-api/brevo-api-contact.service.js +43 -33
- package/lib/brevo-api/brevo-api-contact.service.js.map +1 -1
- package/lib/brevo-api/brevo-api.module.d.ts.map +1 -1
- package/lib/brevo-api/brevo-api.module.js +2 -3
- package/lib/brevo-api/brevo-api.module.js.map +1 -1
- package/lib/brevo-contact/brevo-contact.resolver.d.ts.map +1 -1
- package/lib/brevo-contact/brevo-contact.resolver.js +18 -15
- package/lib/brevo-contact/brevo-contact.resolver.js.map +1 -1
- package/lib/brevo-contact/brevo-contacts.service.d.ts.map +1 -1
- package/lib/brevo-contact/brevo-contacts.service.js +1 -1
- package/lib/brevo-contact/brevo-contacts.service.js.map +1 -1
- package/lib/brevo-module.d.ts.map +1 -1
- package/lib/brevo-module.js +0 -7
- package/lib/brevo-module.js.map +1 -1
- package/lib/config/brevo-module.config.d.ts +8 -2
- package/lib/config/brevo-module.config.d.ts.map +1 -1
- package/lib/email-campaign/email-campaign.module.d.ts +1 -3
- package/lib/email-campaign/email-campaign.module.d.ts.map +1 -1
- package/lib/email-campaign/email-campaign.module.js +2 -2
- package/lib/email-campaign/email-campaign.module.js.map +1 -1
- package/lib/email-campaign/email-campaign.resolver.d.ts.map +1 -1
- package/lib/email-campaign/email-campaign.resolver.js +13 -11
- package/lib/email-campaign/email-campaign.resolver.js.map +1 -1
- package/lib/email-campaign/email-campaigns.service.d.ts +6 -7
- package/lib/email-campaign/email-campaigns.service.d.ts.map +1 -1
- package/lib/email-campaign/email-campaigns.service.js +13 -20
- package/lib/email-campaign/email-campaigns.service.js.map +1 -1
- package/lib/target-group/target-group.resolver.d.ts.map +1 -1
- package/lib/target-group/target-group.resolver.js +6 -6
- 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 +4 -4
- package/lib/target-group/target-groups.service.js.map +1 -1
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/lib/brevo-api/brevo-api-sender.service.d.ts +0 -9
- package/lib/brevo-api/brevo-api-sender.service.d.ts.map +0 -1
- package/lib/brevo-api/brevo-api-sender.service.js +0 -73
- package/lib/brevo-api/brevo-api-sender.service.js.map +0 -1
- package/lib/brevo-config/brevo-config.module.d.ts +0 -12
- package/lib/brevo-config/brevo-config.module.d.ts.map +0 -1
- package/lib/brevo-config/brevo-config.module.js +0 -29
- package/lib/brevo-config/brevo-config.module.js.map +0 -1
- package/lib/brevo-config/brevo-config.resolver.d.ts +0 -8
- package/lib/brevo-config/brevo-config.resolver.d.ts.map +0 -1
- package/lib/brevo-config/brevo-config.resolver.js +0 -130
- package/lib/brevo-config/brevo-config.resolver.js.map +0 -1
- package/lib/brevo-config/dto/brevo-config.input.d.ts +0 -7
- package/lib/brevo-config/dto/brevo-config.input.d.ts.map +0 -1
- package/lib/brevo-config/dto/brevo-config.input.js +0 -40
- package/lib/brevo-config/dto/brevo-config.input.js.map +0 -1
- package/lib/brevo-config/entities/brevo-config-entity.factory.d.ts +0 -18
- package/lib/brevo-config/entities/brevo-config-entity.factory.d.ts.map +0 -1
- package/lib/brevo-config/entities/brevo-config-entity.factory.js +0 -71
- package/lib/brevo-config/entities/brevo-config-entity.factory.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as SibApiV3Sdk from "@sendinblue/client";
|
|
2
|
-
import { BrevoModuleConfig } from "../config/brevo-module.config";
|
|
3
|
-
export declare class BrevoApiSenderService {
|
|
4
|
-
private readonly config;
|
|
5
|
-
private readonly senderApi;
|
|
6
|
-
constructor(config: BrevoModuleConfig);
|
|
7
|
-
getSenders(): Promise<Array<SibApiV3Sdk.GetSendersListSenders> | undefined>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=brevo-api-sender.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-api-sender.service.d.ts","sourceRoot":"","sources":["../../src/brevo-api/brevo-api-sender.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIlE,qBACa,qBAAqB;IAGW,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFhE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;gBAEO,MAAM,EAAE,iBAAiB;IAKtE,UAAU,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;CAS3F"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
-
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
-
};
|
|
34
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
35
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
36
|
-
};
|
|
37
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
40
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
41
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
42
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
-
exports.BrevoApiSenderService = void 0;
|
|
48
|
-
const common_1 = require("@nestjs/common");
|
|
49
|
-
const SibApiV3Sdk = __importStar(require("@sendinblue/client"));
|
|
50
|
-
const brevo_module_constants_1 = require("../config/brevo-module.constants");
|
|
51
|
-
let BrevoApiSenderService = class BrevoApiSenderService {
|
|
52
|
-
constructor(config) {
|
|
53
|
-
this.config = config;
|
|
54
|
-
this.senderApi = new SibApiV3Sdk.SendersApi();
|
|
55
|
-
this.senderApi.setApiKey(SibApiV3Sdk.SendersApiApiKeys.apiKey, config.brevo.apiKey);
|
|
56
|
-
}
|
|
57
|
-
getSenders() {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
const { response, body } = yield this.senderApi.getSenders();
|
|
60
|
-
if (response.statusCode !== 200) {
|
|
61
|
-
throw new Error("Failed to get senders");
|
|
62
|
-
}
|
|
63
|
-
return body.senders;
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
BrevoApiSenderService = __decorate([
|
|
68
|
-
(0, common_1.Injectable)(),
|
|
69
|
-
__param(0, (0, common_1.Inject)(brevo_module_constants_1.BREVO_MODULE_CONFIG)),
|
|
70
|
-
__metadata("design:paramtypes", [Object])
|
|
71
|
-
], BrevoApiSenderService);
|
|
72
|
-
exports.BrevoApiSenderService = BrevoApiSenderService;
|
|
73
|
-
//# sourceMappingURL=brevo-api-sender.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-api-sender.service.js","sourceRoot":"","sources":["../../src/brevo-api/brevo-api-sender.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,gEAAkD;AAGlD,6EAAuE;AAIhE,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAG9B,YAA0D,MAAyB;QAAzB,WAAM,GAAN,MAAM,CAAmB;QAC/E,IAAI,CAAC,SAAS,GAAG,IAAI,WAAW,CAAC,UAAU,EAAE,CAAC;QAC9C,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxF,CAAC;IAEY,UAAU;;YACnB,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;YAE7D,IAAI,QAAQ,CAAC,UAAU,KAAK,GAAG,EAAE;gBAC7B,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;aAC5C;YAED,OAAO,IAAI,CAAC,OAA2B,CAAC;QAC5C,CAAC;KAAA;CACJ,CAAA;AAjBY,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAII,WAAA,IAAA,eAAM,EAAC,4CAAmB,CAAC,CAAA;;GAH/B,qBAAqB,CAiBjC;AAjBY,sDAAqB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DynamicModule, Type } from "@nestjs/common";
|
|
2
|
-
import { EmailCampaignScopeInterface } from "../types";
|
|
3
|
-
import { BrevoConfigInterface } from "./entities/brevo-config-entity.factory";
|
|
4
|
-
interface BrevoConfigModuleConfig {
|
|
5
|
-
Scope: Type<EmailCampaignScopeInterface>;
|
|
6
|
-
BrevoConfig: Type<BrevoConfigInterface>;
|
|
7
|
-
}
|
|
8
|
-
export declare class BrevoConfigModule {
|
|
9
|
-
static register({ Scope, BrevoConfig }: BrevoConfigModuleConfig): DynamicModule;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=brevo-config.module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-config.module.d.ts","sourceRoot":"","sources":["../../src/brevo-config/brevo-config.module.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,UAAU,uBAAuB;IAC7B,KAAK,EAAE,IAAI,CAAC,2BAA2B,CAAC,CAAC;IACzC,WAAW,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;CAC3C;AAED,qBACa,iBAAiB;IAC1B,MAAM,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,uBAAuB,GAAG,aAAa;CASlF"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var BrevoConfigModule_1;
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.BrevoConfigModule = void 0;
|
|
11
|
-
const nestjs_1 = require("@mikro-orm/nestjs");
|
|
12
|
-
const common_1 = require("@nestjs/common");
|
|
13
|
-
const brevo_api_module_1 = require("../brevo-api/brevo-api.module");
|
|
14
|
-
const brevo_config_resolver_1 = require("./brevo-config.resolver");
|
|
15
|
-
let BrevoConfigModule = BrevoConfigModule_1 = class BrevoConfigModule {
|
|
16
|
-
static register({ Scope, BrevoConfig }) {
|
|
17
|
-
const BrevoConfigResolver = (0, brevo_config_resolver_1.createBrevoConfigResolver)({ BrevoConfig, Scope });
|
|
18
|
-
return {
|
|
19
|
-
module: BrevoConfigModule_1,
|
|
20
|
-
imports: [nestjs_1.MikroOrmModule.forFeature([BrevoConfig]), brevo_api_module_1.BrevoApiModule],
|
|
21
|
-
providers: [BrevoConfigResolver],
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
BrevoConfigModule = BrevoConfigModule_1 = __decorate([
|
|
26
|
-
(0, common_1.Module)({})
|
|
27
|
-
], BrevoConfigModule);
|
|
28
|
-
exports.BrevoConfigModule = BrevoConfigModule;
|
|
29
|
-
//# sourceMappingURL=brevo-config.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-config.module.js","sourceRoot":"","sources":["../../src/brevo-config/brevo-config.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,8CAAmD;AACnD,2CAA6D;AAE7D,oEAA+D;AAE/D,mEAAoE;AAS7D,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAC1B,MAAM,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,WAAW,EAA2B;QAC3D,MAAM,mBAAmB,GAAG,IAAA,iDAAyB,EAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;QAE9E,OAAO;YACH,MAAM,EAAE,mBAAiB;YACzB,OAAO,EAAE,CAAC,uBAAc,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,iCAAc,CAAC;YACnE,SAAS,EAAE,CAAC,mBAAmB,CAAC;SACnC,CAAC;IACN,CAAC;CACJ,CAAA;AAVY,iBAAiB;IAD7B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,iBAAiB,CAU7B;AAVY,8CAAiB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Type } from "@nestjs/common";
|
|
2
|
-
import { EmailCampaignScopeInterface } from "../types";
|
|
3
|
-
import { BrevoConfigInterface } from "./entities/brevo-config-entity.factory";
|
|
4
|
-
export declare function createBrevoConfigResolver({ Scope, BrevoConfig, }: {
|
|
5
|
-
Scope: Type<EmailCampaignScopeInterface>;
|
|
6
|
-
BrevoConfig: Type<BrevoConfigInterface>;
|
|
7
|
-
}): Type<unknown>;
|
|
8
|
-
//# sourceMappingURL=brevo-config.resolver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-config.resolver.d.ts","sourceRoot":"","sources":["../../src/brevo-config/brevo-config.resolver.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAGvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,wBAAgB,yBAAyB,CAAC,EACtC,KAAK,EACL,WAAW,GACd,EAAE;IACC,KAAK,EAAE,IAAI,CAAC,2BAA2B,CAAC,CAAC;IACzC,WAAW,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC;CAC3C,GAAG,IAAI,CAAC,OAAO,CAAC,CAmFhB"}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.createBrevoConfigResolver = void 0;
|
|
25
|
-
const cms_api_1 = require("@comet/cms-api");
|
|
26
|
-
const core_1 = require("@mikro-orm/core");
|
|
27
|
-
const nestjs_1 = require("@mikro-orm/nestjs");
|
|
28
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
29
|
-
const brevo_api_sender_service_1 = require("../brevo-api/brevo-api-sender.service");
|
|
30
|
-
const brevo_api_sender_1 = require("../brevo-api/dto/brevo-api-sender");
|
|
31
|
-
const dynamic_dto_validation_pipe_1 = require("../validation/dynamic-dto-validation.pipe");
|
|
32
|
-
const brevo_config_input_1 = require("./dto/brevo-config.input");
|
|
33
|
-
function createBrevoConfigResolver({ Scope, BrevoConfig, }) {
|
|
34
|
-
let BrevoConfigResolver = class BrevoConfigResolver {
|
|
35
|
-
constructor(entityManager, brevoSenderApiService, repository) {
|
|
36
|
-
this.entityManager = entityManager;
|
|
37
|
-
this.brevoSenderApiService = brevoSenderApiService;
|
|
38
|
-
this.repository = repository;
|
|
39
|
-
}
|
|
40
|
-
isValidSender({ email, name }) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
const senders = yield this.brevoSenderApiService.getSenders();
|
|
43
|
-
if (senders && senders.some((sender) => sender.email === email && sender.name === name)) {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
return false;
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
senders() {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
const senders = yield this.brevoSenderApiService.getSenders();
|
|
52
|
-
return senders;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
brevoConfig(scope) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
const brevoConfig = yield this.repository.findOne({ scope });
|
|
58
|
-
return brevoConfig;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
createBrevoConfig(scope, input) {
|
|
62
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
if (!(yield this.isValidSender({ email: input.senderMail, name: input.senderName }))) {
|
|
64
|
-
throw new Error("Sender not found");
|
|
65
|
-
}
|
|
66
|
-
const brevoConfig = this.repository.create(Object.assign(Object.assign({}, input), { scope }));
|
|
67
|
-
yield this.entityManager.flush();
|
|
68
|
-
return brevoConfig;
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
updateBrevoConfig(id, input, lastUpdatedAt) {
|
|
72
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
const brevoConfig = yield this.repository.findOneOrFail(id);
|
|
74
|
-
if (lastUpdatedAt) {
|
|
75
|
-
(0, cms_api_1.validateNotModified)(brevoConfig, lastUpdatedAt);
|
|
76
|
-
}
|
|
77
|
-
if (!(yield this.isValidSender({ email: input.senderMail, name: input.senderName }))) {
|
|
78
|
-
throw new Error("Sender not found");
|
|
79
|
-
}
|
|
80
|
-
(0, core_1.wrap)(brevoConfig).assign(Object.assign({}, input));
|
|
81
|
-
yield this.entityManager.flush();
|
|
82
|
-
return brevoConfig;
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, cms_api_1.RequiredPermission)(["brevo-newsletter-config"], { skipScopeCheck: true }),
|
|
88
|
-
(0, graphql_1.Query)(() => [brevo_api_sender_1.BrevoApiSender], { nullable: true }),
|
|
89
|
-
__metadata("design:type", Function),
|
|
90
|
-
__metadata("design:paramtypes", []),
|
|
91
|
-
__metadata("design:returntype", Promise)
|
|
92
|
-
], BrevoConfigResolver.prototype, "senders", null);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, graphql_1.Query)(() => BrevoConfig, { nullable: true }),
|
|
95
|
-
__param(0, (0, graphql_1.Args)("scope", { type: () => Scope }, new dynamic_dto_validation_pipe_1.DynamicDtoValidationPipe(Scope))),
|
|
96
|
-
__metadata("design:type", Function),
|
|
97
|
-
__metadata("design:paramtypes", [Object]),
|
|
98
|
-
__metadata("design:returntype", Promise)
|
|
99
|
-
], BrevoConfigResolver.prototype, "brevoConfig", null);
|
|
100
|
-
__decorate([
|
|
101
|
-
(0, graphql_1.Mutation)(() => BrevoConfig),
|
|
102
|
-
__param(0, (0, graphql_1.Args)("scope", { type: () => Scope }, new dynamic_dto_validation_pipe_1.DynamicDtoValidationPipe(Scope))),
|
|
103
|
-
__param(1, (0, graphql_1.Args)("input", { type: () => brevo_config_input_1.BrevoConfigInput })),
|
|
104
|
-
__metadata("design:type", Function),
|
|
105
|
-
__metadata("design:paramtypes", [Object, brevo_config_input_1.BrevoConfigInput]),
|
|
106
|
-
__metadata("design:returntype", Promise)
|
|
107
|
-
], BrevoConfigResolver.prototype, "createBrevoConfig", null);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, graphql_1.Mutation)(() => BrevoConfig),
|
|
110
|
-
(0, cms_api_1.AffectedEntity)(BrevoConfig),
|
|
111
|
-
__param(0, (0, graphql_1.Args)("id", { type: () => graphql_1.ID })),
|
|
112
|
-
__param(1, (0, graphql_1.Args)("input", { type: () => brevo_config_input_1.BrevoConfigUpdateInput })),
|
|
113
|
-
__param(2, (0, graphql_1.Args)("lastUpdatedAt", { type: () => Date, nullable: true })),
|
|
114
|
-
__metadata("design:type", Function),
|
|
115
|
-
__metadata("design:paramtypes", [String, brevo_config_input_1.BrevoConfigUpdateInput,
|
|
116
|
-
Date]),
|
|
117
|
-
__metadata("design:returntype", Promise)
|
|
118
|
-
], BrevoConfigResolver.prototype, "updateBrevoConfig", null);
|
|
119
|
-
BrevoConfigResolver = __decorate([
|
|
120
|
-
(0, graphql_1.Resolver)(() => BrevoConfig),
|
|
121
|
-
(0, cms_api_1.RequiredPermission)(["brevo-newsletter-config"]),
|
|
122
|
-
__param(2, (0, nestjs_1.InjectRepository)(BrevoConfig)),
|
|
123
|
-
__metadata("design:paramtypes", [core_1.EntityManager,
|
|
124
|
-
brevo_api_sender_service_1.BrevoApiSenderService,
|
|
125
|
-
core_1.EntityRepository])
|
|
126
|
-
], BrevoConfigResolver);
|
|
127
|
-
return BrevoConfigResolver;
|
|
128
|
-
}
|
|
129
|
-
exports.createBrevoConfigResolver = createBrevoConfigResolver;
|
|
130
|
-
//# sourceMappingURL=brevo-config.resolver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-config.resolver.js","sourceRoot":"","sources":["../../src/brevo-config/brevo-config.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAyF;AACzF,0CAAwE;AACxE,8CAAqD;AAErD,6CAAsE;AAEtE,oFAA8E;AAC9E,wEAAmE;AAEnE,2FAAqF;AACrF,iEAAoF;AAGpF,SAAgB,yBAAyB,CAAC,EACtC,KAAK,EACL,WAAW,GAId;IACG,IAEM,mBAAmB,GAFzB,MAEM,mBAAmB;QACrB,YACqB,aAA4B,EAC5B,qBAA4C,EACb,UAAkD;YAFjF,kBAAa,GAAb,aAAa,C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|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BrevoConfigUpdateInput = exports.BrevoConfigInput = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
let BrevoConfigInput = class BrevoConfigInput {
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, graphql_1.Field)(),
|
|
21
|
-
(0, class_validator_1.IsEmail)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], BrevoConfigInput.prototype, "senderMail", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, graphql_1.Field)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], BrevoConfigInput.prototype, "senderName", void 0);
|
|
30
|
-
BrevoConfigInput = __decorate([
|
|
31
|
-
(0, graphql_1.InputType)()
|
|
32
|
-
], BrevoConfigInput);
|
|
33
|
-
exports.BrevoConfigInput = BrevoConfigInput;
|
|
34
|
-
let BrevoConfigUpdateInput = class BrevoConfigUpdateInput extends BrevoConfigInput {
|
|
35
|
-
};
|
|
36
|
-
BrevoConfigUpdateInput = __decorate([
|
|
37
|
-
(0, graphql_1.InputType)()
|
|
38
|
-
], BrevoConfigUpdateInput);
|
|
39
|
-
exports.BrevoConfigUpdateInput = BrevoConfigUpdateInput;
|
|
40
|
-
//# sourceMappingURL=brevo-config.input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-config.input.js","sourceRoot":"","sources":["../../../src/brevo-config/dto/brevo-config.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAAgE;AAGzD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAW5B,CAAA;AAVG;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,eAAK,GAAE;IACP,IAAA,yBAAO,GAAE;;oDACS;AAEnB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,eAAK,GAAE;;oDACW;AAVV,gBAAgB;IAD5B,IAAA,mBAAS,GAAE;GACC,gBAAgB,CAW5B;AAXY,4CAAgB;AActB,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,gBAAgB;CAAG,CAAA;AAAlD,sBAAsB;IADlC,IAAA,mBAAS,GAAE;GACC,sBAAsB,CAA4B;AAAlD,wDAAsB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { OptionalProps } from "@mikro-orm/core";
|
|
2
|
-
import { Type } from "@nestjs/common";
|
|
3
|
-
import { EmailCampaignScopeInterface } from "../../types";
|
|
4
|
-
export interface BrevoConfigInterface {
|
|
5
|
-
[OptionalProps]?: "createdAt" | "updatedAt";
|
|
6
|
-
id: string;
|
|
7
|
-
senderName: string;
|
|
8
|
-
senderMail: string;
|
|
9
|
-
createdAt: Date;
|
|
10
|
-
updatedAt: Date;
|
|
11
|
-
scope: EmailCampaignScopeInterface;
|
|
12
|
-
}
|
|
13
|
-
export declare class BrevoConfigEntityFactory {
|
|
14
|
-
static create({ Scope }: {
|
|
15
|
-
Scope: EmailCampaignScopeInterface;
|
|
16
|
-
}): Type<BrevoConfigInterface>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=brevo-config-entity.factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-config-entity.factory.d.ts","sourceRoot":"","sources":["../../../src/brevo-config/entities/brevo-config-entity.factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,aAAa,EAAwB,MAAM,iBAAiB,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAItC,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACjC,CAAC,aAAa,CAAC,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,2BAA2B,CAAC;CACtC;AAED,qBAAa,wBAAwB;IACjC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,2BAA2B,CAAA;KAAE,GAAG,IAAI,CAAC,oBAAoB,CAAC;CAwC/F"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BrevoConfigEntityFactory = void 0;
|
|
13
|
-
const cms_api_1 = require("@comet/cms-api");
|
|
14
|
-
const core_1 = require("@mikro-orm/core");
|
|
15
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
16
|
-
const uuid_1 = require("uuid");
|
|
17
|
-
class BrevoConfigEntityFactory {
|
|
18
|
-
static create({ Scope }) {
|
|
19
|
-
let BrevoConfig = class BrevoConfig {
|
|
20
|
-
constructor() {
|
|
21
|
-
this.id = (0, uuid_1.v4)();
|
|
22
|
-
this.createdAt = new Date();
|
|
23
|
-
this.updatedAt = new Date();
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, core_1.PrimaryKey)({ columnType: "uuid" }),
|
|
28
|
-
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], BrevoConfig.prototype, "id", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, core_1.Property)({ columnType: "text" }),
|
|
33
|
-
(0, graphql_1.Field)(),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], BrevoConfig.prototype, "senderMail", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, core_1.Property)({ columnType: "text" }),
|
|
38
|
-
(0, graphql_1.Field)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], BrevoConfig.prototype, "senderName", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, core_1.Property)({
|
|
43
|
-
columnType: "timestamp with time zone",
|
|
44
|
-
}),
|
|
45
|
-
(0, graphql_1.Field)(),
|
|
46
|
-
__metadata("design:type", Date)
|
|
47
|
-
], BrevoConfig.prototype, "createdAt", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, core_1.Property)({
|
|
50
|
-
columnType: "timestamp with time zone",
|
|
51
|
-
onUpdate: () => new Date(),
|
|
52
|
-
}),
|
|
53
|
-
(0, graphql_1.Field)(),
|
|
54
|
-
__metadata("design:type", Date)
|
|
55
|
-
], BrevoConfig.prototype, "updatedAt", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, core_1.Embedded)(() => Scope),
|
|
58
|
-
(0, graphql_1.Field)(() => Scope),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], BrevoConfig.prototype, "scope", void 0);
|
|
61
|
-
BrevoConfig = __decorate([
|
|
62
|
-
(0, core_1.Entity)(),
|
|
63
|
-
(0, graphql_1.ObjectType)({
|
|
64
|
-
implements: () => [cms_api_1.DocumentInterface],
|
|
65
|
-
})
|
|
66
|
-
], BrevoConfig);
|
|
67
|
-
return BrevoConfig;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.BrevoConfigEntityFactory = BrevoConfigEntityFactory;
|
|
71
|
-
//# sourceMappingURL=brevo-config-entity.factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"brevo-config-entity.factory.js","sourceRoot":"","sources":["../../../src/brevo-config/entities/brevo-config-entity.factory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAmD;AACnD,0CAAwF;AAExF,6CAAwD;AACxD,+BAA0B;AAc1B,MAAa,wBAAwB;IAC1B,AAAP,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAA0C;QAK3D,IAAM,WAAW,GAAjB,MAAM,WAAW;YAAjB;gBAKI,OAAE,GAAW,IAAA,SAAE,GAAE,CAAC;gBAclB,cAAS,GAA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