@mathrunet/masamune 2.6.2 → 2.6.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/CHANGELOG.md +9 -0
- package/dist/lib/functions/firestore.js +14 -5
- package/dist/lib/functions/firestore.js.map +1 -1
- package/dist/lib/functions/send_notification.js +1 -1
- package/package.json +1 -1
- package/dist/converter/firestore_basic_converter.d.ts +0 -20
- package/dist/converter/firestore_basic_converter.js +0 -25
- package/dist/converter/firestore_basic_converter.js.map +0 -1
- package/dist/converter/firestore_enum_converter.d.ts +0 -20
- package/dist/converter/firestore_enum_converter.js +0 -25
- package/dist/converter/firestore_enum_converter.js.map +0 -1
- package/dist/converter/firestore_model_command_base_converter.d.ts +0 -20
- package/dist/converter/firestore_model_command_base_converter.js +0 -38
- package/dist/converter/firestore_model_command_base_converter.js.map +0 -1
- package/dist/converter/firestore_model_counter_converter.d.ts +0 -20
- package/dist/converter/firestore_model_counter_converter.js +0 -78
- package/dist/converter/firestore_model_counter_converter.js.map +0 -1
- package/dist/converter/firestore_model_date_converter.d.ts +0 -20
- package/dist/converter/firestore_model_date_converter.js +0 -95
- package/dist/converter/firestore_model_date_converter.js.map +0 -1
- package/dist/converter/firestore_model_geo_value_converter.d.ts +0 -20
- package/dist/converter/firestore_model_geo_value_converter.js +0 -77
- package/dist/converter/firestore_model_geo_value_converter.js.map +0 -1
- package/dist/converter/firestore_model_image_uri_converter.d.ts +0 -20
- package/dist/converter/firestore_model_image_uri_converter.js +0 -74
- package/dist/converter/firestore_model_image_uri_converter.js.map +0 -1
- package/dist/converter/firestore_model_locale_converter.d.ts +0 -20
- package/dist/converter/firestore_model_locale_converter.js +0 -74
- package/dist/converter/firestore_model_locale_converter.js.map +0 -1
- package/dist/converter/firestore_model_localized_value_converter.d.ts +0 -20
- package/dist/converter/firestore_model_localized_value_converter.js +0 -36
- package/dist/converter/firestore_model_localized_value_converter.js.map +0 -1
- package/dist/converter/firestore_model_ref_converter.d.ts +0 -20
- package/dist/converter/firestore_model_ref_converter.js +0 -60
- package/dist/converter/firestore_model_ref_converter.js.map +0 -1
- package/dist/converter/firestore_model_search_converter.d.ts +0 -20
- package/dist/converter/firestore_model_search_converter.js +0 -36
- package/dist/converter/firestore_model_search_converter.js.map +0 -1
- package/dist/converter/firestore_model_timestamp_converter.d.ts +0 -20
- package/dist/converter/firestore_model_timestamp_converter.js +0 -95
- package/dist/converter/firestore_model_timestamp_converter.js.map +0 -1
- package/dist/converter/firestore_model_token_converter.d.ts +0 -20
- package/dist/converter/firestore_model_token_converter.js +0 -36
- package/dist/converter/firestore_model_token_converter.js.map +0 -1
- package/dist/converter/firestore_model_uri_converter.d.ts +0 -20
- package/dist/converter/firestore_model_uri_converter.js +0 -74
- package/dist/converter/firestore_model_uri_converter.js.map +0 -1
- package/dist/converter/firestore_model_video_uri_converter.d.ts +0 -20
- package/dist/converter/firestore_model_video_uri_converter.js +0 -74
- package/dist/converter/firestore_model_video_uri_converter.js.map +0 -1
- package/dist/converter/firestore_null_converter.d.ts +0 -20
- package/dist/converter/firestore_null_converter.js +0 -25
- package/dist/converter/firestore_null_converter.js.map +0 -1
- package/dist/exntension/string.extension.d.ts +0 -179
- package/dist/exntension/string.extension.js +0 -190
- package/dist/exntension/string.extension.js.map +0 -1
- package/dist/functions/notification.d.ts +0 -1
- package/dist/functions/notification.js +0 -111
- package/dist/functions/notification.js.map +0 -1
- package/dist/functions/send_notification_schedule.d.ts +0 -1
- package/dist/functions/send_notification_schedule.js +0 -86
- package/dist/functions/send_notification_schedule.js.map +0 -1
- package/dist/functions/stripe_hook.d.ts +0 -1
- package/dist/functions/stripe_hook.js +0 -573
- package/dist/functions/stripe_hook.js.map +0 -1
- package/dist/functions/stripe_hook_connect.d.ts +0 -1
- package/dist/functions/stripe_hook_connect.js +0 -140
- package/dist/functions/stripe_hook_connect.js.map +0 -1
- package/dist/functions/stripe_hook_secure.d.ts +0 -1
- package/dist/functions/stripe_hook_secure.js +0 -150
- package/dist/functions/stripe_hook_secure.js.map +0 -1
- package/dist/lib/call_process_function_base.d.ts +0 -39
- package/dist/lib/call_process_function_base.js +0 -69
- package/dist/lib/call_process_function_base.js.map +0 -1
- package/dist/lib/default_firestore_model_field_value_converter.d.ts +0 -8
- package/dist/lib/default_firestore_model_field_value_converter.js +0 -44
- package/dist/lib/default_firestore_model_field_value_converter.js.map +0 -1
- package/dist/lib/firestore_model_field_value_converter.d.ts +0 -140
- package/dist/lib/firestore_model_field_value_converter.js +0 -127
- package/dist/lib/firestore_model_field_value_converter.js.map +0 -1
- package/dist/lib/functions_base.d.ts +0 -195
- package/dist/lib/functions_base.js +0 -37
- package/dist/lib/functions_base.js.map +0 -1
- package/dist/lib/functions_data.d.ts +0 -10
- package/dist/lib/functions_data.js +0 -19
- package/dist/lib/functions_data.js.map +0 -1
- package/dist/lib/gmail.d.ts +0 -39
- package/dist/lib/gmail.js +0 -65
- package/dist/lib/gmail.js.map +0 -1
- package/dist/lib/model_field_value.d.ts +0 -82
- package/dist/lib/model_field_value.js +0 -104
- package/dist/lib/model_field_value.js.map +0 -1
- package/dist/lib/request_process_function_base.d.ts +0 -39
- package/dist/lib/request_process_function_base.js +0 -69
- package/dist/lib/request_process_function_base.js.map +0 -1
- package/dist/lib/schedule_process_function_base.d.ts +0 -33
- package/dist/lib/schedule_process_function_base.js +0 -70
- package/dist/lib/schedule_process_function_base.js.map +0 -1
- package/dist/lib/send_gmail.d.ts +0 -34
- package/dist/lib/send_gmail.js +0 -90
- package/dist/lib/send_gmail.js.map +0 -1
- package/dist/lib/send_grid.d.ts +0 -33
- package/dist/lib/send_grid.js +0 -58
- package/dist/lib/send_grid.js.map +0 -1
- package/dist/lib/send_notification.d.ts +0 -59
- package/dist/lib/send_notification.js +0 -216
- package/dist/lib/send_notification.js.map +0 -1
- package/dist/lib/sql_api_base.d.ts +0 -185
- package/dist/lib/sql_api_base.js +0 -94
- package/dist/lib/sql_api_base.js.map +0 -1
- package/dist/lib/update_subscription.d.ts +0 -83
- package/dist/lib/update_subscription.js +0 -143
- package/dist/lib/update_subscription.js.map +0 -1
- package/dist/lib/update_unlock.d.ts +0 -13
- package/dist/lib/update_unlock.js +0 -64
- package/dist/lib/update_unlock.js.map +0 -1
- package/dist/lib/update_wallet.d.ts +0 -19
- package/dist/lib/update_wallet.js +0 -70
- package/dist/lib/update_wallet.js.map +0 -1
- package/dist/lib/verify_android.d.ts +0 -50
- package/dist/lib/verify_android.js +0 -121
- package/dist/lib/verify_android.js.map +0 -1
- package/dist/lib/verify_ios.d.ts +0 -26
- package/dist/lib/verify_ios.js +0 -110
- package/dist/lib/verify_ios.js.map +0 -1
- package/dist/src/functions/notification.d.ts +0 -1
- package/dist/src/functions/notification.js +0 -111
- package/dist/src/functions/notification.js.map +0 -1
- package/dist/src/functions.d.ts +0 -14
- package/dist/src/functions.js +0 -41
- package/dist/src/functions.js.map +0 -1
- package/dist/src/index.d.ts +0 -13
- package/dist/src/index.js +0 -51
- package/dist/src/index.js.map +0 -1
- package/dist/src/lib/functions_data.d.ts +0 -25
- package/dist/src/lib/functions_data.js +0 -31
- package/dist/src/lib/functions_data.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model_field_value.js","sourceRoot":"","sources":["../../src/lib/model_field_value.ts"],"names":[],"mappings":";;;AACA;;;;GAIG;AACH,MAAa,eAAe;IACxB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,UAAU,CAAC,EACd,IAAI,GAGP;QACG,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,MAAM,MAAM,GAA+B,EAAE,CAAC;QAC9C,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,2BAA2B,EAAE,CAAC,iBAAiB,EAAE,CAAC,UAAU,EAAE,CAAC,yBAAyB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC3I,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YACxB,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;gBACrB,OAAO;YACX,CAAC;YACD,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAC1B,CAAC,CAAC,CAAC;QACH,GAAG,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;QACxB,OAAO,GAAG,CAAC;IACf,CAAC;IACD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,YAAY,CAAC,EAChB,GAAG,EAAE,KAAK,EAAE,SAAS,GAGxB;QACG,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACjB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG;YACb,YAAY,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,CAAC;YAC5B,SAAS,EAAE,GAAG;YACd,OAAO,EAAE,cAAc;YACvB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,OAAO,GAAG,CAAC;IACf,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,cAAc,CAAC,EAClB,GAAG,EAAE,IAAI,GAGZ;QACG,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,IAAI,aAAJ,IAAI,cAAJ,IAAI,IAAJ,IAAI,GAAK,IAAI,IAAI,EAAE,EAAC;QACpB,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;QAChB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG;YACb,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;YACvB,SAAS,EAAE,GAAG;YACd,OAAO,EAAE,gBAAgB;SAC5B,CAAC;QACF,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AA1GD,0CA0GC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as functions from "firebase-functions/v2";
|
|
2
|
-
import { FunctionsBase, HttpFunctionsOptions } from "./functions_base";
|
|
3
|
-
import * as express from "express";
|
|
4
|
-
export { Request } from "firebase-functions/v2/https";
|
|
5
|
-
export { Response } from "express";
|
|
6
|
-
/**
|
|
7
|
-
* Base class for defining Function data for HTTP request execution.
|
|
8
|
-
*
|
|
9
|
-
* HTTPリクエスト実行用のFunctionのデータを定義するためのベースクラス。
|
|
10
|
-
*/
|
|
11
|
-
export declare abstract class RequestProcessFunctionBase extends FunctionsBase {
|
|
12
|
-
/**
|
|
13
|
-
* Base class for defining Function data for HTTP request execution.
|
|
14
|
-
*
|
|
15
|
-
* HTTPリクエスト実行用のFunctionのデータを定義するためのベースクラス。
|
|
16
|
-
*/
|
|
17
|
-
constructor(options?: HttpFunctionsOptions);
|
|
18
|
-
/**
|
|
19
|
-
* Specify the actual contents of the process.
|
|
20
|
-
*
|
|
21
|
-
* 実際の処理の中身を指定します。
|
|
22
|
-
*
|
|
23
|
-
* @param reqest
|
|
24
|
-
* Request passed to Functions.
|
|
25
|
-
*
|
|
26
|
-
* Functionsに渡されたRequest。
|
|
27
|
-
*
|
|
28
|
-
* @param response
|
|
29
|
-
* Response passed to Functions.
|
|
30
|
-
*
|
|
31
|
-
* Functionsに渡されたResponse。
|
|
32
|
-
*/
|
|
33
|
-
abstract process(reqest: functions.https.Request, response: express.Response<any>): Promise<void>;
|
|
34
|
-
abstract id: string;
|
|
35
|
-
data: {
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
};
|
|
38
|
-
build(regions: string[]): Function;
|
|
39
|
-
}
|
|
@@ -1,69 +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 __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.RequestProcessFunctionBase = void 0;
|
|
36
|
-
const functions = __importStar(require("firebase-functions/v2"));
|
|
37
|
-
const functions_base_1 = require("./functions_base");
|
|
38
|
-
/**
|
|
39
|
-
* Base class for defining Function data for HTTP request execution.
|
|
40
|
-
*
|
|
41
|
-
* HTTPリクエスト実行用のFunctionのデータを定義するためのベースクラス。
|
|
42
|
-
*/
|
|
43
|
-
class RequestProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
44
|
-
/**
|
|
45
|
-
* Base class for defining Function data for HTTP request execution.
|
|
46
|
-
*
|
|
47
|
-
* HTTPリクエスト実行用のFunctionのデータを定義するためのベースクラス。
|
|
48
|
-
*/
|
|
49
|
-
constructor(options = {}) {
|
|
50
|
-
super({ options: options });
|
|
51
|
-
this.data = {};
|
|
52
|
-
}
|
|
53
|
-
build(regions) {
|
|
54
|
-
var _a;
|
|
55
|
-
const options = this.options;
|
|
56
|
-
return functions.https.onRequest({
|
|
57
|
-
region: (_a = options === null || options === void 0 ? void 0 : options.region) !== null && _a !== void 0 ? _a : regions,
|
|
58
|
-
timeoutSeconds: options === null || options === void 0 ? void 0 : options.timeoutSeconds,
|
|
59
|
-
memory: options === null || options === void 0 ? void 0 : options.memory,
|
|
60
|
-
minInstances: options === null || options === void 0 ? void 0 : options.minInstances,
|
|
61
|
-
concurrency: options === null || options === void 0 ? void 0 : options.concurrency,
|
|
62
|
-
maxInstances: options === null || options === void 0 ? void 0 : options.maxInstances,
|
|
63
|
-
}, (req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
return this.process(req, res);
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.RequestProcessFunctionBase = RequestProcessFunctionBase;
|
|
69
|
-
//# sourceMappingURL=request_process_function_base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request_process_function_base.js","sourceRoot":"","sources":["../../src/lib/request_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAAuE;AAKvE;;;;GAIG;AACH,MAAsB,0BAA2B,SAAQ,8BAAa;IAClE;;;;OAIG;IACH,YAAY,UAAgC,EAAE;QAC1C,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAqBhC,SAAI,GAA8B,EAAE,CAAC;IApBrC,CAAC;IAqBD,KAAK,CAAC,OAAiB;;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAkD,CAAC;QACxE,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAC5B;YACI,MAAM,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,OAAO;YAClC,cAAc,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;YACvC,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;YACvB,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;YACnC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;YACjC,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;SACtC,EACD,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;YACf,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAClC,CAAC,CAAA,CACJ,CAAC;IACN,CAAC;CACJ;AA7CD,gEA6CC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FunctionsBase, SchedulerFunctionsOptions } from "./functions_base";
|
|
2
|
-
/**
|
|
3
|
-
* Base class for defining the data of Functions for periodic scheduled execution.
|
|
4
|
-
*
|
|
5
|
-
* 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class ScheduleProcessFunctionBase extends FunctionsBase {
|
|
8
|
-
/**
|
|
9
|
-
* Base class for defining the data of Functions for periodic scheduled execution.
|
|
10
|
-
*
|
|
11
|
-
* 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。
|
|
12
|
-
*/
|
|
13
|
-
constructor(options?: SchedulerFunctionsOptions);
|
|
14
|
-
/**
|
|
15
|
-
* Specify the schedule to execute the process in cron format.
|
|
16
|
-
*
|
|
17
|
-
* 処理を実行するスケジュールをcron形式で指定します。
|
|
18
|
-
*
|
|
19
|
-
* https://firebase.google.com/docs/functions/schedule-functions
|
|
20
|
-
*/
|
|
21
|
-
abstract schedule: string;
|
|
22
|
-
/**
|
|
23
|
-
* Specify the actual contents of the process.
|
|
24
|
-
*
|
|
25
|
-
* 実際の処理の中身を指定します。
|
|
26
|
-
*/
|
|
27
|
-
abstract process(): Promise<void>;
|
|
28
|
-
abstract id: string;
|
|
29
|
-
data: {
|
|
30
|
-
[key: string]: string;
|
|
31
|
-
};
|
|
32
|
-
build(regions: string[]): Function;
|
|
33
|
-
}
|
|
@@ -1,70 +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 __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.ScheduleProcessFunctionBase = void 0;
|
|
36
|
-
const functions = __importStar(require("firebase-functions/v2"));
|
|
37
|
-
const functions_base_1 = require("./functions_base");
|
|
38
|
-
/**
|
|
39
|
-
* Base class for defining the data of Functions for periodic scheduled execution.
|
|
40
|
-
*
|
|
41
|
-
* 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。
|
|
42
|
-
*/
|
|
43
|
-
class ScheduleProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
44
|
-
/**
|
|
45
|
-
* Base class for defining the data of Functions for periodic scheduled execution.
|
|
46
|
-
*
|
|
47
|
-
* 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。
|
|
48
|
-
*/
|
|
49
|
-
constructor(options = {}) {
|
|
50
|
-
super({ options: options });
|
|
51
|
-
this.data = {};
|
|
52
|
-
}
|
|
53
|
-
build(regions) {
|
|
54
|
-
var _a, _b;
|
|
55
|
-
const options = this.options;
|
|
56
|
-
return functions.scheduler.onSchedule({
|
|
57
|
-
schedule: (_a = options === null || options === void 0 ? void 0 : options.schedule) !== null && _a !== void 0 ? _a : this.schedule,
|
|
58
|
-
region: (_b = options === null || options === void 0 ? void 0 : options.region) !== null && _b !== void 0 ? _b : regions[0],
|
|
59
|
-
timeoutSeconds: options === null || options === void 0 ? void 0 : options.timeoutSeconds,
|
|
60
|
-
memory: options === null || options === void 0 ? void 0 : options.memory,
|
|
61
|
-
minInstances: options === null || options === void 0 ? void 0 : options.minInstances,
|
|
62
|
-
concurrency: options === null || options === void 0 ? void 0 : options.concurrency,
|
|
63
|
-
maxInstances: options === null || options === void 0 ? void 0 : options.maxInstances,
|
|
64
|
-
}, (event) => __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
return this.process();
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.ScheduleProcessFunctionBase = ScheduleProcessFunctionBase;
|
|
70
|
-
//# sourceMappingURL=schedule_process_function_base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schedule_process_function_base.js","sourceRoot":"","sources":["../../src/lib/schedule_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAA4E;AAE5E;;;;GAIG;AACH,MAAsB,2BAA4B,SAAQ,8BAAa;IACnE;;;;OAIG;IACH,YAAY,UAAqC,EAAE;QAC/C,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAoBhC,SAAI,GAA8B,EAAE,CAAC;IAnBrC,CAAC;IAoBD,KAAK,CAAC,OAAiB;;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAuD,CAAC;QAC7E,OAAO,SAAS,CAAC,SAAS,CAAC,UAAU,CACjC;YACI,QAAQ,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC,QAAQ;YAC5C,MAAM,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,OAAO,CAAC,CAAC,CAAC;YACrC,cAAc,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;YACvC,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;YACvB,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;YACnC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;YACjC,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;SACtC,EACD,CAAO,KAAK,EAAE,EAAE;YACZ,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC,CAAA,CACJ,CAAC;IACN,CAAC;CACJ;AA7CD,kEA6CC"}
|
package/dist/lib/send_gmail.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Send email via Gmail.
|
|
3
|
-
*
|
|
4
|
-
* Gmailでメールを送信します。
|
|
5
|
-
*
|
|
6
|
-
* @param {string} purchase.mail.gmail.id
|
|
7
|
-
* Gmail user ID. Follow the steps below to obtain a Gmail user ID.
|
|
8
|
-
* 1. Press your icon in the upper right corner of the Google top screen and open "Manage Google Account".
|
|
9
|
-
* 2. open "Security" on the left side of the screen and open "App Password
|
|
10
|
-
* GmailのユーザーID。下記の手順で取得します。
|
|
11
|
-
* 1. Googleのトップ画面の画面右上の自分のアイコンを押下し、「Google アカウントを管理」を開く
|
|
12
|
-
* 2. 画面左の「セキュリティ」を開き、「アプリ パスワード」を開く
|
|
13
|
-
*
|
|
14
|
-
* @param {string} purchase.mail.gmail.password
|
|
15
|
-
* Gmail user password. Enter the password obtained in the above procedure.
|
|
16
|
-
* Gmailのユーザーパスワード。上記の手順で取得したパスワードを入力します。
|
|
17
|
-
*
|
|
18
|
-
* @param {string} from
|
|
19
|
-
* Sender's email address.
|
|
20
|
-
* 送信元メールアドレス。
|
|
21
|
-
*
|
|
22
|
-
* @param {string} to
|
|
23
|
-
* Email address to be sent to.
|
|
24
|
-
* 送信先メールアドレス。
|
|
25
|
-
*
|
|
26
|
-
* @param {string} title
|
|
27
|
-
* Email Title.
|
|
28
|
-
* メールタイトル。
|
|
29
|
-
*
|
|
30
|
-
* @param {string} content
|
|
31
|
-
* Email content.
|
|
32
|
-
* メール本文。
|
|
33
|
-
*/
|
|
34
|
-
export declare function send(from: string, to: string, title: string, content: string): Promise<void>;
|
package/dist/lib/send_gmail.js
DELETED
|
@@ -1,90 +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 __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.send = void 0;
|
|
36
|
-
const nodemailer_1 = require("nodemailer");
|
|
37
|
-
const functions = __importStar(require("firebase-functions"));
|
|
38
|
-
/**
|
|
39
|
-
* Send email via Gmail.
|
|
40
|
-
*
|
|
41
|
-
* Gmailでメールを送信します。
|
|
42
|
-
*
|
|
43
|
-
* @param {string} purchase.mail.gmail.id
|
|
44
|
-
* Gmail user ID. Follow the steps below to obtain a Gmail user ID.
|
|
45
|
-
* 1. Press your icon in the upper right corner of the Google top screen and open "Manage Google Account".
|
|
46
|
-
* 2. open "Security" on the left side of the screen and open "App Password
|
|
47
|
-
* GmailのユーザーID。下記の手順で取得します。
|
|
48
|
-
* 1. Googleのトップ画面の画面右上の自分のアイコンを押下し、「Google アカウントを管理」を開く
|
|
49
|
-
* 2. 画面左の「セキュリティ」を開き、「アプリ パスワード」を開く
|
|
50
|
-
*
|
|
51
|
-
* @param {string} purchase.mail.gmail.password
|
|
52
|
-
* Gmail user password. Enter the password obtained in the above procedure.
|
|
53
|
-
* Gmailのユーザーパスワード。上記の手順で取得したパスワードを入力します。
|
|
54
|
-
*
|
|
55
|
-
* @param {string} from
|
|
56
|
-
* Sender's email address.
|
|
57
|
-
* 送信元メールアドレス。
|
|
58
|
-
*
|
|
59
|
-
* @param {string} to
|
|
60
|
-
* Email address to be sent to.
|
|
61
|
-
* 送信先メールアドレス。
|
|
62
|
-
*
|
|
63
|
-
* @param {string} title
|
|
64
|
-
* Email Title.
|
|
65
|
-
* メールタイトル。
|
|
66
|
-
*
|
|
67
|
-
* @param {string} content
|
|
68
|
-
* Email content.
|
|
69
|
-
* メール本文。
|
|
70
|
-
*/
|
|
71
|
-
function send(from, to, title, content) {
|
|
72
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
const config = functions.config().mail;
|
|
74
|
-
const mailTransport = (0, nodemailer_1.createTransport)({
|
|
75
|
-
service: "gmail",
|
|
76
|
-
auth: {
|
|
77
|
-
user: config.gmail.id,
|
|
78
|
-
pass: config.gmail.password,
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
yield mailTransport.sendMail({
|
|
82
|
-
from: from,
|
|
83
|
-
to: to,
|
|
84
|
-
subject: title,
|
|
85
|
-
text: content,
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
exports.send = send;
|
|
90
|
-
//# sourceMappingURL=send_gmail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send_gmail.js","sourceRoot":"","sources":["../../src/lib/send_gmail.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,8DAAgD;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAsB,IAAI,CACxB,IAAY,EACZ,EAAU,EACV,KAAa,EACb,OAAe;;QAEf,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC;QACvC,MAAM,aAAa,GAAG,IAAA,4BAAe,EAAC;YACpC,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE;gBACrB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ;aAC5B;SACF,CAAC,CAAC;QACH,MAAM,aAAa,CAAC,QAAQ,CAAC;YAC3B,IAAI,EAAE,IAAI;YACV,EAAE,EAAE,EAAE;YACN,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;CAAA;AApBD,oBAoBC"}
|
package/dist/lib/send_grid.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Send mail through SendGrid.
|
|
3
|
-
*
|
|
4
|
-
* SendGridでメールを送信します。
|
|
5
|
-
*
|
|
6
|
-
* @param {string} process.env.MAIL_SENDGRID_APIKEY
|
|
7
|
-
* API key for SendGrid. Issue it according to the following procedure.
|
|
8
|
-
* https://mathru.notion.site/SendGrid-bb87b2ffa8174dbda944812f43856d6c
|
|
9
|
-
* SendGridのAPIキー。下記の手順で発行します。
|
|
10
|
-
* https://mathru.notion.site/SendGrid-bb87b2ffa8174dbda944812f43856d6c
|
|
11
|
-
*
|
|
12
|
-
* @param {string} from
|
|
13
|
-
* Sender's email address.
|
|
14
|
-
* 送信元メールアドレス。
|
|
15
|
-
*
|
|
16
|
-
* @param {string} to
|
|
17
|
-
* Email address to be sent to.
|
|
18
|
-
* 送信先メールアドレス。
|
|
19
|
-
*
|
|
20
|
-
* @param {string} title
|
|
21
|
-
* Email Title.
|
|
22
|
-
* メールタイトル。
|
|
23
|
-
*
|
|
24
|
-
* @param {string} content
|
|
25
|
-
* Email content.
|
|
26
|
-
* メール本文。
|
|
27
|
-
*/
|
|
28
|
-
export declare function send({ from, to, title, content, }: {
|
|
29
|
-
from: string;
|
|
30
|
-
to: string;
|
|
31
|
-
title: string;
|
|
32
|
-
content: string;
|
|
33
|
-
}): Promise<void>;
|
package/dist/lib/send_grid.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.send = void 0;
|
|
16
|
-
const mail_1 = __importDefault(require("@sendgrid/mail"));
|
|
17
|
-
/**
|
|
18
|
-
* Send mail through SendGrid.
|
|
19
|
-
*
|
|
20
|
-
* SendGridでメールを送信します。
|
|
21
|
-
*
|
|
22
|
-
* @param {string} process.env.MAIL_SENDGRID_APIKEY
|
|
23
|
-
* API key for SendGrid. Issue it according to the following procedure.
|
|
24
|
-
* https://mathru.notion.site/SendGrid-bb87b2ffa8174dbda944812f43856d6c
|
|
25
|
-
* SendGridのAPIキー。下記の手順で発行します。
|
|
26
|
-
* https://mathru.notion.site/SendGrid-bb87b2ffa8174dbda944812f43856d6c
|
|
27
|
-
*
|
|
28
|
-
* @param {string} from
|
|
29
|
-
* Sender's email address.
|
|
30
|
-
* 送信元メールアドレス。
|
|
31
|
-
*
|
|
32
|
-
* @param {string} to
|
|
33
|
-
* Email address to be sent to.
|
|
34
|
-
* 送信先メールアドレス。
|
|
35
|
-
*
|
|
36
|
-
* @param {string} title
|
|
37
|
-
* Email Title.
|
|
38
|
-
* メールタイトル。
|
|
39
|
-
*
|
|
40
|
-
* @param {string} content
|
|
41
|
-
* Email content.
|
|
42
|
-
* メール本文。
|
|
43
|
-
*/
|
|
44
|
-
function send(_a) {
|
|
45
|
-
return __awaiter(this, arguments, void 0, function* ({ from, to, title, content, }) {
|
|
46
|
-
var _b;
|
|
47
|
-
mail_1.default.setApiKey((_b = process.env.MAIL_SENDGRID_APIKEY) !== null && _b !== void 0 ? _b : "");
|
|
48
|
-
const msg = {
|
|
49
|
-
to: to,
|
|
50
|
-
from: from,
|
|
51
|
-
subject: title,
|
|
52
|
-
text: content,
|
|
53
|
-
};
|
|
54
|
-
yield mail_1.default.send(msg);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
exports.send = send;
|
|
58
|
-
//# sourceMappingURL=send_grid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send_grid.js","sourceRoot":"","sources":["../../src/lib/send_grid.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,0DAAsC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAsB,IAAI;yDAAC,EACzB,IAAI,EACJ,EAAE,EACF,KAAK,EACL,OAAO,GAMR;;QACC,cAAQ,CAAC,SAAS,CAAC,MAAA,OAAO,CAAC,GAAG,CAAC,oBAAoB,mCAAI,EAAE,CAAC,CAAC;QAC3D,MAAM,GAAG,GAAG;YACV,EAAE,EAAE,EAAE;YACN,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,OAAO;SACd,CAAC;QACF,MAAM,cAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;CAAA;AAnBD,oBAmBC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Define the process for PUSH notification.
|
|
3
|
-
*
|
|
4
|
-
* PUSH通知を行うための処理を定義します。
|
|
5
|
-
*
|
|
6
|
-
* @param title
|
|
7
|
-
* The title of the notice should be listed.
|
|
8
|
-
*
|
|
9
|
-
* 通知タイトルを記載します。
|
|
10
|
-
*
|
|
11
|
-
* @param body
|
|
12
|
-
* The contents of the notice will be described.
|
|
13
|
-
*
|
|
14
|
-
* 通知内容を記載します。
|
|
15
|
-
*
|
|
16
|
-
* @param channel_id
|
|
17
|
-
* Describe ChannelId for Android.
|
|
18
|
-
*
|
|
19
|
-
* Android向けのChannelIdを記載します。
|
|
20
|
-
*
|
|
21
|
-
* @param data
|
|
22
|
-
* Specify the data to be placed on the notification.
|
|
23
|
-
*
|
|
24
|
-
* 通知に乗せるデータを指定します。
|
|
25
|
-
*
|
|
26
|
-
* @param token
|
|
27
|
-
* Specifies the FCM token.
|
|
28
|
-
*
|
|
29
|
-
* FCMトークンを指定します。
|
|
30
|
-
*
|
|
31
|
-
* @param topic
|
|
32
|
-
* Specifies the topic of the FCM.
|
|
33
|
-
*
|
|
34
|
-
* FCMのトピックを指定します。
|
|
35
|
-
*
|
|
36
|
-
* @param badgeCount
|
|
37
|
-
* Specifies the badge count of the notification.
|
|
38
|
-
*
|
|
39
|
-
* 通知のバッジカウントを指定します。
|
|
40
|
-
*
|
|
41
|
-
* @param sound
|
|
42
|
-
* Specifies the sound of the notification.
|
|
43
|
-
*
|
|
44
|
-
* 通知のサウンドを指定します。
|
|
45
|
-
*/
|
|
46
|
-
export declare function sendNotification({ title, body, data, channelId, token, topic, badgeCount, sound, }: {
|
|
47
|
-
title: string;
|
|
48
|
-
body: string;
|
|
49
|
-
channelId: string | undefined | null;
|
|
50
|
-
data: {
|
|
51
|
-
[key: string]: string;
|
|
52
|
-
} | undefined;
|
|
53
|
-
token: string | string[] | undefined | null;
|
|
54
|
-
topic: string | undefined | null;
|
|
55
|
-
badgeCount: number | undefined | null;
|
|
56
|
-
sound: string | undefined | null;
|
|
57
|
-
}): Promise<{
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
}>;
|