@mathrunet/masamune 1.3.0 → 1.4.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/CHANGELOG.md +18 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/call_process_function_base.d.ts +36 -0
- package/dist/lib/call_process_function_base.js +61 -0
- package/dist/lib/call_process_function_base.js.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# [1.4.0](https://github.com/mathrunet/node_masamune/compare/v1.3.1...v1.4.0) (2023-10-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### feat
|
|
5
|
+
|
|
6
|
+
* Add CallProcessFunctionBase. ([f5c72ab](https://github.com/mathrunet/node_masamune/commit/f5c72ab340239039e3ae4e63f1babe8cf4953f58))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.3.1](https://github.com/mathrunet/node_masamune/compare/v1.3.0...v1.3.1) (2023-10-12)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### fix
|
|
14
|
+
|
|
15
|
+
* Some functions are exported. ([6864a06](https://github.com/mathrunet/node_masamune/commit/6864a06f7c43a2fa99774ebd2a5cb595728c9751))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
# [1.3.0](https://github.com/mathrunet/node_masamune/compare/v1.2.9...v1.3.0) (2023-10-12)
|
|
2
20
|
|
|
3
21
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,11 @@ import * as regions from "./lib/regions";
|
|
|
3
3
|
export * from "./functions";
|
|
4
4
|
export * from "./lib/schedule_process_function_base";
|
|
5
5
|
export * from "./lib/request_process_function_base";
|
|
6
|
+
export * from "./lib/call_process_function_base";
|
|
6
7
|
export * from "./exntension/string.extension";
|
|
8
|
+
export * as gmail from "./lib/gmail";
|
|
9
|
+
export * as sendGrid from "./lib/send_grid";
|
|
10
|
+
export * as notification from "./lib/send_notification";
|
|
7
11
|
/**
|
|
8
12
|
* Methods for deploying to Firebase Functions.
|
|
9
13
|
*
|
package/dist/index.js
CHANGED
|
@@ -26,12 +26,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.deploy = void 0;
|
|
29
|
+
exports.deploy = exports.notification = exports.sendGrid = exports.gmail = void 0;
|
|
30
30
|
const admin = __importStar(require("firebase-admin"));
|
|
31
31
|
__exportStar(require("./functions"), exports);
|
|
32
32
|
__exportStar(require("./lib/schedule_process_function_base"), exports);
|
|
33
33
|
__exportStar(require("./lib/request_process_function_base"), exports);
|
|
34
|
+
__exportStar(require("./lib/call_process_function_base"), exports);
|
|
34
35
|
__exportStar(require("./exntension/string.extension"), exports);
|
|
36
|
+
exports.gmail = __importStar(require("./lib/gmail"));
|
|
37
|
+
exports.sendGrid = __importStar(require("./lib/send_grid"));
|
|
38
|
+
exports.notification = __importStar(require("./lib/send_notification"));
|
|
35
39
|
/**
|
|
36
40
|
* Methods for deploying to Firebase Functions.
|
|
37
41
|
*
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAExC,8CAA4B;AAC5B,uEAAqD;AACrD,sEAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAExC,8CAA4B;AAC5B,uEAAqD;AACrD,sEAAoD;AACpD,mEAAiD;AACjD,gEAA8C;AAC9C,qDAAqC;AACrC,4DAA4C;AAC5C,wEAAwD;AAExD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,MAAM,CAAC,OAAY,EAAE,MAAuB,EAAE,eAAqC;IAC/F,KAAK,CAAC,aAAa,EAAE,CAAC;IACtB,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,IAAI,CAAC,EAAE,EAAE;YACrE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;SACpD;KACJ;AACL,CAAC;AAPD,wBAOC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FunctionsBase } from "./functions_base";
|
|
2
|
+
/**
|
|
3
|
+
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
4
|
+
*
|
|
5
|
+
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class CallProcessFunctionBase extends FunctionsBase {
|
|
8
|
+
/**
|
|
9
|
+
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
10
|
+
*
|
|
11
|
+
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
12
|
+
*/
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Specify the actual contents of the process.
|
|
16
|
+
*
|
|
17
|
+
* 実際の処理の中身を指定します。
|
|
18
|
+
*
|
|
19
|
+
* @param query
|
|
20
|
+
* Query passed to Functions.
|
|
21
|
+
*
|
|
22
|
+
* Functionsに渡されたクエリ。
|
|
23
|
+
*
|
|
24
|
+
* @param options
|
|
25
|
+
* Options passed to Functions.
|
|
26
|
+
*
|
|
27
|
+
* Functionsに渡されたオプション。
|
|
28
|
+
*/
|
|
29
|
+
abstract process(query: any, options: Record<string, any>): Promise<void>;
|
|
30
|
+
data: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
build(regions: string[], data: {
|
|
34
|
+
[key: string]: string;
|
|
35
|
+
}): Function;
|
|
36
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.CallProcessFunctionBase = void 0;
|
|
36
|
+
const functions = __importStar(require("firebase-functions"));
|
|
37
|
+
const functions_base_1 = require("./functions_base");
|
|
38
|
+
/**
|
|
39
|
+
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
40
|
+
*
|
|
41
|
+
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
42
|
+
*/
|
|
43
|
+
class CallProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
44
|
+
/**
|
|
45
|
+
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
46
|
+
*
|
|
47
|
+
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
48
|
+
*/
|
|
49
|
+
constructor() {
|
|
50
|
+
super();
|
|
51
|
+
this.data = {};
|
|
52
|
+
}
|
|
53
|
+
build(regions, data) {
|
|
54
|
+
return functions.region(...regions).https.onCall((query) => __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const config = functions.config();
|
|
56
|
+
return this.process(query, config);
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.CallProcessFunctionBase = CallProcessFunctionBase;
|
|
61
|
+
//# sourceMappingURL=call_process_function_base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call_process_function_base.js","sourceRoot":"","sources":["../../src/lib/call_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgD;AAChD,qDAAiD;AAEjD;;;;GAIG;AACH,MAAsB,uBAAwB,SAAQ,8BAAa;IAC/D;;;;OAIG;IACH;QACI,KAAK,EAAE,CAAC;QAoBZ,SAAI,GAA8B,EAAE,CAAC;IAnBrC,CAAC;IAoBD,KAAK,CAAC,OAAiB,EAAE,IAA+B;QACpD,OAAO,SAAS,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAO,KAAK,EAAE,EAAE;YAC7D,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACvC,CAAC,CAAA,CAAC,CAAC;IACP,CAAC;CACJ;AAlCD,0DAkCC"}
|