@chevre/domain 24.1.0-alpha.38 → 24.1.0-alpha.39
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/chevre/credentials.d.ts +4 -16
- package/lib/chevre/credentials.js +11 -39
- package/lib/chevre/index.d.ts +1 -1
- package/lib/chevre/index.js +2 -2
- package/lib/chevre/service/notification/notifyByEmail.js +0 -6
- package/package.json +1 -1
- package/lib/chevre/credentials/customSearch.d.ts +0 -13
- package/lib/chevre/credentials/customSearch.js +0 -16
- package/lib/chevre/credentials/lineNotify.d.ts +0 -17
- package/lib/chevre/credentials/lineNotify.js +0 -20
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import type { CustomSearchCredentials } from './credentials/customSearch';
|
|
2
|
-
import type { LINENotifyCredentials } from './credentials/lineNotify';
|
|
3
|
-
import type { SendGridCredentials } from './credentials/sendGrid';
|
|
4
1
|
/**
|
|
5
2
|
* 外部サービス認証情報
|
|
6
3
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
type LINENotify = LINENotifyCredentials;
|
|
13
|
-
namespace LINENotify {
|
|
14
|
-
function createInstance(...params: ConstructorParameters<typeof LINENotifyCredentials>): Promise<LINENotifyCredentials>;
|
|
15
|
-
}
|
|
16
|
-
type SendGrid = SendGridCredentials;
|
|
17
|
-
namespace SendGrid {
|
|
18
|
-
function createInstance(...params: ConstructorParameters<typeof SendGridCredentials>): Promise<SendGridCredentials>;
|
|
19
|
-
}
|
|
4
|
+
import type { SendGridCredentials } from './credentials/sendGrid';
|
|
5
|
+
export type SendGrid = SendGridCredentials;
|
|
6
|
+
export declare namespace SendGrid {
|
|
7
|
+
function createInstance(...params: ConstructorParameters<typeof SendGridCredentials>): Promise<SendGridCredentials>;
|
|
20
8
|
}
|
|
@@ -1,42 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
(
|
|
9
|
-
|
|
10
|
-
(function (CustomSearch) {
|
|
11
|
-
let cred;
|
|
12
|
-
async function createInstance(...params) {
|
|
13
|
-
if (cred === undefined) {
|
|
14
|
-
cred = (await import('./credentials/customSearch.js')).CustomSearchCredentials;
|
|
15
|
-
}
|
|
16
|
-
return new cred(...params);
|
|
3
|
+
exports.SendGrid = void 0;
|
|
4
|
+
var SendGrid;
|
|
5
|
+
(function (SendGrid) {
|
|
6
|
+
let cred;
|
|
7
|
+
async function createInstance(...params) {
|
|
8
|
+
if (cred === undefined) {
|
|
9
|
+
cred = (await import('./credentials/sendGrid.js')).SendGridCredentials;
|
|
17
10
|
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
let cred;
|
|
23
|
-
async function createInstance(...params) {
|
|
24
|
-
if (cred === undefined) {
|
|
25
|
-
cred = (await import('./credentials/lineNotify.js')).LINENotifyCredentials;
|
|
26
|
-
}
|
|
27
|
-
return new cred(...params);
|
|
28
|
-
}
|
|
29
|
-
LINENotify.createInstance = createInstance;
|
|
30
|
-
})(LINENotify = credentials.LINENotify || (credentials.LINENotify = {}));
|
|
31
|
-
let SendGrid;
|
|
32
|
-
(function (SendGrid) {
|
|
33
|
-
let cred;
|
|
34
|
-
async function createInstance(...params) {
|
|
35
|
-
if (cred === undefined) {
|
|
36
|
-
cred = (await import('./credentials/sendGrid.js')).SendGridCredentials;
|
|
37
|
-
}
|
|
38
|
-
return new cred(...params);
|
|
39
|
-
}
|
|
40
|
-
SendGrid.createInstance = createInstance;
|
|
41
|
-
})(SendGrid = credentials.SendGrid || (credentials.SendGrid = {}));
|
|
42
|
-
})(credentials || (exports.credentials = credentials = {}));
|
|
11
|
+
return new cred(...params);
|
|
12
|
+
}
|
|
13
|
+
SendGrid.createInstance = createInstance;
|
|
14
|
+
})(SendGrid || (exports.SendGrid = SendGrid = {}));
|
package/lib/chevre/index.d.ts
CHANGED
package/lib/chevre/index.js
CHANGED
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.taskSettings = exports.settings = exports.service = exports.repository = exports.factory = exports.eventEmitter = exports.errorHandler = exports.credentials = void 0;
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
const credentials = __importStar(require("./credentials"));
|
|
38
|
+
exports.credentials = credentials;
|
|
39
39
|
const errorHandler = __importStar(require("./errorHandler"));
|
|
40
40
|
exports.errorHandler = errorHandler;
|
|
41
41
|
const eventEmitter = __importStar(require("./eventEmitter"));
|
|
@@ -5,12 +5,6 @@ const client_1 = require("@sendgrid/client");
|
|
|
5
5
|
const http_status_1 = require("http-status");
|
|
6
6
|
const util_1 = require("util");
|
|
7
7
|
const factory_1 = require("../../factory");
|
|
8
|
-
// type ILineNotifyOperation<T> = (
|
|
9
|
-
// repos: undefined,
|
|
10
|
-
// credentials: {
|
|
11
|
-
// lineNotify: LINENotifyCredentials;
|
|
12
|
-
// }
|
|
13
|
-
// ) => Promise<T>;
|
|
14
8
|
function notifyByEmail(params) {
|
|
15
9
|
return async (__, credentials) => {
|
|
16
10
|
const { logLevel } = params;
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface IOptions {
|
|
2
|
-
engineId: string;
|
|
3
|
-
apiKey: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* GoogleCustomSearch認証情報
|
|
7
|
-
*/
|
|
8
|
-
declare class CustomSearchCredentials {
|
|
9
|
-
readonly engineId: string;
|
|
10
|
-
readonly apiKey: string;
|
|
11
|
-
constructor(options: IOptions);
|
|
12
|
-
}
|
|
13
|
-
export { CustomSearchCredentials };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomSearchCredentials = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* GoogleCustomSearch認証情報
|
|
6
|
-
*/
|
|
7
|
-
class CustomSearchCredentials {
|
|
8
|
-
engineId;
|
|
9
|
-
apiKey;
|
|
10
|
-
constructor(options) {
|
|
11
|
-
const { engineId, apiKey } = options;
|
|
12
|
-
this.engineId = engineId;
|
|
13
|
-
this.apiKey = apiKey;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.CustomSearchCredentials = CustomSearchCredentials;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
interface IOptions {
|
|
2
|
-
url: string;
|
|
3
|
-
accessToken: string;
|
|
4
|
-
accessTokenAlert: string;
|
|
5
|
-
accessTokenInfo: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* 通知認証情報
|
|
9
|
-
*/
|
|
10
|
-
declare class LINENotifyCredentials {
|
|
11
|
-
readonly url: string;
|
|
12
|
-
readonly accessToken: string;
|
|
13
|
-
readonly accessTokenAlert: string;
|
|
14
|
-
readonly accessTokenInfo: string;
|
|
15
|
-
constructor(options: IOptions);
|
|
16
|
-
}
|
|
17
|
-
export { LINENotifyCredentials };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LINENotifyCredentials = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* 通知認証情報
|
|
6
|
-
*/
|
|
7
|
-
class LINENotifyCredentials {
|
|
8
|
-
url;
|
|
9
|
-
accessToken;
|
|
10
|
-
accessTokenAlert;
|
|
11
|
-
accessTokenInfo;
|
|
12
|
-
constructor(options) {
|
|
13
|
-
const { url, accessToken, accessTokenAlert, accessTokenInfo } = options;
|
|
14
|
-
this.url = url;
|
|
15
|
-
this.accessToken = accessToken;
|
|
16
|
-
this.accessTokenAlert = accessTokenAlert;
|
|
17
|
-
this.accessTokenInfo = accessTokenInfo;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.LINENotifyCredentials = LINENotifyCredentials;
|