@mathrunet/masamune 3.7.0 → 3.8.1
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 +15 -0
- package/README.md +1 -1
- package/dist/functions/test.d.ts +1 -1
- package/dist/functions/test.js +2 -3
- package/dist/functions/test.js.map +1 -1
- package/dist/functions.d.ts +2 -245
- package/dist/functions.js +2 -245
- package/dist/functions.js.map +1 -1
- package/dist/index.d.ts +4 -17
- package/dist/index.js +13 -15
- package/dist/index.js.map +1 -1
- package/package.json +10 -23
- package/.claude/settings.local.json +0 -12
- package/dist/functions/aggregate_model_firestore.d.ts +0 -1
- package/dist/functions/aggregate_model_firestore.js +0 -225
- package/dist/functions/aggregate_model_firestore.js.map +0 -1
- package/dist/functions/aggregation_model_firestore.d.ts +0 -1
- package/dist/functions/aggregation_model_firestore.js +0 -220
- package/dist/functions/aggregation_model_firestore.js.map +0 -1
- package/dist/functions/agora_cloud_recording.d.ts +0 -1
- package/dist/functions/agora_cloud_recording.js +0 -125
- package/dist/functions/agora_cloud_recording.js.map +0 -1
- package/dist/functions/agora_token.d.ts +0 -1
- package/dist/functions/agora_token.js +0 -144
- package/dist/functions/agora_token.js.map +0 -1
- package/dist/functions/algolia.d.ts +0 -1
- package/dist/functions/algolia.js +0 -145
- package/dist/functions/algolia.js.map +0 -1
- package/dist/functions/android_auth_code.d.ts +0 -1
- package/dist/functions/android_auth_code.js +0 -97
- package/dist/functions/android_auth_code.js.map +0 -1
- package/dist/functions/android_token.d.ts +0 -1
- package/dist/functions/android_token.js +0 -132
- package/dist/functions/android_token.js.map +0 -1
- package/dist/functions/collection_model_firestore.d.ts +0 -1
- package/dist/functions/collection_model_firestore.js +0 -222
- package/dist/functions/collection_model_firestore.js.map +0 -1
- package/dist/functions/conduct_broad_research.d.ts +0 -1
- package/dist/functions/conduct_broad_research.js +0 -162
- package/dist/functions/conduct_broad_research.js.map +0 -1
- package/dist/functions/conduct_detailed_research.d.ts +0 -1
- package/dist/functions/conduct_detailed_research.js +0 -162
- package/dist/functions/conduct_detailed_research.js.map +0 -1
- package/dist/functions/consumable_verify_android.d.ts +0 -1
- package/dist/functions/consumable_verify_android.js +0 -172
- package/dist/functions/consumable_verify_android.js.map +0 -1
- package/dist/functions/consumable_verify_ios.d.ts +0 -1
- package/dist/functions/consumable_verify_ios.js +0 -136
- package/dist/functions/consumable_verify_ios.js.map +0 -1
- package/dist/functions/delete_documents.d.ts +0 -1
- package/dist/functions/delete_documents.js +0 -91
- package/dist/functions/delete_documents.js.map +0 -1
- package/dist/functions/delete_user.d.ts +0 -1
- package/dist/functions/delete_user.js +0 -87
- package/dist/functions/delete_user.js.map +0 -1
- package/dist/functions/document_model_firestore.d.ts +0 -1
- package/dist/functions/document_model_firestore.js +0 -218
- package/dist/functions/document_model_firestore.js.map +0 -1
- package/dist/functions/geocoding.d.ts +0 -1
- package/dist/functions/geocoding.js +0 -93
- package/dist/functions/geocoding.js.map +0 -1
- package/dist/functions/gmail.d.ts +0 -1
- package/dist/functions/gmail.js +0 -117
- package/dist/functions/gmail.js.map +0 -1
- package/dist/functions/google_token.d.ts +0 -1
- package/dist/functions/google_token.js +0 -105
- package/dist/functions/google_token.js.map +0 -1
- package/dist/functions/hls.d.ts +0 -1
- package/dist/functions/hls.js +0 -169
- package/dist/functions/hls.js.map +0 -1
- package/dist/functions/nonconsumable_verify_android.d.ts +0 -1
- package/dist/functions/nonconsumable_verify_android.js +0 -166
- package/dist/functions/nonconsumable_verify_android.js.map +0 -1
- package/dist/functions/nonconsumable_verify_ios.d.ts +0 -1
- package/dist/functions/nonconsumable_verify_ios.js +0 -130
- package/dist/functions/nonconsumable_verify_ios.js.map +0 -1
- package/dist/functions/openai_chat_gpt.d.ts +0 -1
- package/dist/functions/openai_chat_gpt.js +0 -117
- package/dist/functions/openai_chat_gpt.js.map +0 -1
- package/dist/functions/purchase_webhook_android.d.ts +0 -1
- package/dist/functions/purchase_webhook_android.js +0 -306
- package/dist/functions/purchase_webhook_android.js.map +0 -1
- package/dist/functions/purchase_webhook_ios.d.ts +0 -1
- package/dist/functions/purchase_webhook_ios.js +0 -182
- package/dist/functions/purchase_webhook_ios.js.map +0 -1
- package/dist/functions/schedule_asset_creation.d.ts +0 -1
- package/dist/functions/schedule_asset_creation.js +0 -103
- package/dist/functions/schedule_asset_creation.js.map +0 -1
- package/dist/functions/scheduler.d.ts +0 -1
- package/dist/functions/scheduler.js +0 -144
- package/dist/functions/scheduler.js.map +0 -1
- package/dist/functions/send_grid.d.ts +0 -1
- package/dist/functions/send_grid.js +0 -111
- package/dist/functions/send_grid.js.map +0 -1
- package/dist/functions/send_notification.d.ts +0 -1
- package/dist/functions/send_notification.js +0 -207
- package/dist/functions/send_notification.js.map +0 -1
- package/dist/functions/start_asset_creation.d.ts +0 -1
- package/dist/functions/start_asset_creation.js +0 -106
- package/dist/functions/start_asset_creation.js.map +0 -1
- package/dist/functions/storage_firebase.d.ts +0 -1
- package/dist/functions/storage_firebase.js +0 -286
- package/dist/functions/storage_firebase.js.map +0 -1
- package/dist/functions/stripe.d.ts +0 -1
- package/dist/functions/stripe.js +0 -1243
- package/dist/functions/stripe.js.map +0 -1
- package/dist/functions/stripe_webhook.d.ts +0 -1
- package/dist/functions/stripe_webhook.js +0 -605
- package/dist/functions/stripe_webhook.js.map +0 -1
- package/dist/functions/stripe_webhook_connect.d.ts +0 -1
- package/dist/functions/stripe_webhook_connect.js +0 -173
- package/dist/functions/stripe_webhook_connect.js.map +0 -1
- package/dist/functions/stripe_webhook_secure.d.ts +0 -1
- package/dist/functions/stripe_webhook_secure.js +0 -182
- package/dist/functions/stripe_webhook_secure.js.map +0 -1
- package/dist/functions/subscription_verify_android.d.ts +0 -1
- package/dist/functions/subscription_verify_android.js +0 -195
- package/dist/functions/subscription_verify_android.js.map +0 -1
- package/dist/functions/subscription_verify_ios.d.ts +0 -1
- package/dist/functions/subscription_verify_ios.js +0 -170
- package/dist/functions/subscription_verify_ios.js.map +0 -1
- package/dist/lib/api.d.ts +0 -185
- package/dist/lib/api.js +0 -172
- package/dist/lib/api.js.map +0 -1
- package/dist/lib/exntensions/string.extension.d.ts +0 -214
- package/dist/lib/exntensions/string.extension.js +0 -226
- package/dist/lib/exntensions/string.extension.js.map +0 -1
- package/dist/lib/functions/delete_documents.d.ts +0 -32
- package/dist/lib/functions/delete_documents.js +0 -111
- package/dist/lib/functions/delete_documents.js.map +0 -1
- package/dist/lib/functions/firestore.d.ts +0 -114
- package/dist/lib/functions/firestore.js +0 -347
- package/dist/lib/functions/firestore.js.map +0 -1
- package/dist/lib/functions/gmail.d.ts +0 -39
- package/dist/lib/functions/gmail.js +0 -64
- package/dist/lib/functions/gmail.js.map +0 -1
- package/dist/lib/functions/send_grid.d.ts +0 -33
- package/dist/lib/functions/send_grid.js +0 -57
- package/dist/lib/functions/send_grid.js.map +0 -1
- package/dist/lib/functions/send_notification.d.ts +0 -109
- package/dist/lib/functions/send_notification.js +0 -386
- package/dist/lib/functions/send_notification.js.map +0 -1
- package/dist/lib/functions/update_subscription.d.ts +0 -84
- package/dist/lib/functions/update_subscription.js +0 -150
- package/dist/lib/functions/update_subscription.js.map +0 -1
- package/dist/lib/functions/update_unlock.d.ts +0 -28
- package/dist/lib/functions/update_unlock.js +0 -84
- package/dist/lib/functions/update_unlock.js.map +0 -1
- package/dist/lib/functions/update_wallet.d.ts +0 -34
- package/dist/lib/functions/update_wallet.js +0 -91
- package/dist/lib/functions/update_wallet.js.map +0 -1
- package/dist/lib/functions/verify_android.d.ts +0 -50
- package/dist/lib/functions/verify_android.js +0 -130
- package/dist/lib/functions/verify_android.js.map +0 -1
- package/dist/lib/functions/verify_ios.d.ts +0 -73
- package/dist/lib/functions/verify_ios.js +0 -227
- package/dist/lib/functions/verify_ios.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_basic_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_basic_converter.js +0 -28
- package/dist/lib/model_field_value/converters/firestore_basic_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_enum_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_enum_converter.js +0 -28
- package/dist/lib/model_field_value/converters/firestore_enum_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_command_base_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_command_base_converter.js +0 -58
- package/dist/lib/model_field_value/converters/firestore_model_command_base_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_counter_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_counter_converter.js +0 -177
- package/dist/lib/model_field_value/converters/firestore_model_counter_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_date_converter.d.ts +0 -26
- package/dist/lib/model_field_value/converters/firestore_model_date_converter.js +0 -174
- package/dist/lib/model_field_value/converters/firestore_model_date_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_date_range_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_date_range_converter.js +0 -183
- package/dist/lib/model_field_value/converters/firestore_model_date_range_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_geo_value_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_geo_value_converter.js +0 -163
- package/dist/lib/model_field_value/converters/firestore_model_geo_value_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_image_uri_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_image_uri_converter.js +0 -134
- package/dist/lib/model_field_value/converters/firestore_model_image_uri_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_locale_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_locale_converter.js +0 -163
- package/dist/lib/model_field_value/converters/firestore_model_locale_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_localized_value_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_localized_value_converter.js +0 -89
- package/dist/lib/model_field_value/converters/firestore_model_localized_value_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_ref_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_ref_converter.js +0 -113
- package/dist/lib/model_field_value/converters/firestore_model_ref_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_search_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_search_converter.js +0 -91
- package/dist/lib/model_field_value/converters/firestore_model_search_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_time_converter.d.ts +0 -26
- package/dist/lib/model_field_value/converters/firestore_model_time_converter.js +0 -191
- package/dist/lib/model_field_value/converters/firestore_model_time_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_time_range_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_time_range_converter.js +0 -183
- package/dist/lib/model_field_value/converters/firestore_model_time_range_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_timestamp_converter.d.ts +0 -26
- package/dist/lib/model_field_value/converters/firestore_model_timestamp_converter.js +0 -246
- package/dist/lib/model_field_value/converters/firestore_model_timestamp_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_timestamp_range_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_timestamp_range_converter.js +0 -183
- package/dist/lib/model_field_value/converters/firestore_model_timestamp_range_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_token_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_token_converter.js +0 -91
- package/dist/lib/model_field_value/converters/firestore_model_token_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_uri_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_uri_converter.js +0 -134
- package/dist/lib/model_field_value/converters/firestore_model_uri_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_vector_value_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_vector_value_converter.js +0 -80
- package/dist/lib/model_field_value/converters/firestore_model_vector_value_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_model_video_uri_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_model_video_uri_converter.js +0 -134
- package/dist/lib/model_field_value/converters/firestore_model_video_uri_converter.js.map +0 -1
- package/dist/lib/model_field_value/converters/firestore_null_converter.d.ts +0 -25
- package/dist/lib/model_field_value/converters/firestore_null_converter.js +0 -45
- package/dist/lib/model_field_value/converters/firestore_null_converter.js.map +0 -1
- package/dist/lib/model_field_value/default_firestore_model_field_value_converter.d.ts +0 -61
- package/dist/lib/model_field_value/default_firestore_model_field_value_converter.js +0 -140
- package/dist/lib/model_field_value/default_firestore_model_field_value_converter.js.map +0 -1
- package/dist/lib/model_field_value/firestore_model_field_value_converter.d.ts +0 -154
- package/dist/lib/model_field_value/firestore_model_field_value_converter.js +0 -127
- package/dist/lib/model_field_value/firestore_model_field_value_converter.js.map +0 -1
- package/dist/lib/model_field_value/model_field_value.d.ts +0 -264
- package/dist/lib/model_field_value/model_field_value.js +0 -314
- package/dist/lib/model_field_value/model_field_value.js.map +0 -1
- package/dist/lib/regions.d.ts +0 -6
- package/dist/lib/regions.js +0 -3
- package/dist/lib/regions.js.map +0 -1
- package/dist/lib/schedulers/copy_document.d.ts +0 -35
- package/dist/lib/schedulers/copy_document.js +0 -59
- package/dist/lib/schedulers/copy_document.js.map +0 -1
- package/dist/lib/schedulers/delete_documents.d.ts +0 -35
- package/dist/lib/schedulers/delete_documents.js +0 -86
- package/dist/lib/schedulers/delete_documents.js.map +0 -1
- package/dist/lib/schedulers/notification.d.ts +0 -35
- package/dist/lib/schedulers/notification.js +0 -78
- package/dist/lib/schedulers/notification.js.map +0 -1
- package/dist/lib/src/call_process_function_base.d.ts +0 -39
- package/dist/lib/src/call_process_function_base.js +0 -82
- package/dist/lib/src/call_process_function_base.js.map +0 -1
- package/dist/lib/src/firebase_loader.d.ts +0 -30
- package/dist/lib/src/firebase_loader.js +0 -77
- package/dist/lib/src/firebase_loader.js.map +0 -1
- package/dist/lib/src/firestore_triggered_process_function_base.d.ts +0 -40
- package/dist/lib/src/firestore_triggered_process_function_base.js +0 -82
- package/dist/lib/src/firestore_triggered_process_function_base.js.map +0 -1
- package/dist/lib/src/functions_base.d.ts +0 -327
- package/dist/lib/src/functions_base.js +0 -38
- package/dist/lib/src/functions_base.js.map +0 -1
- package/dist/lib/src/functions_data.d.ts +0 -10
- package/dist/lib/src/functions_data.js +0 -19
- package/dist/lib/src/functions_data.js.map +0 -1
- package/dist/lib/src/request_process_function_base.d.ts +0 -39
- package/dist/lib/src/request_process_function_base.js +0 -80
- package/dist/lib/src/request_process_function_base.js.map +0 -1
- package/dist/lib/src/schedule_process_function_base.d.ts +0 -33
- package/dist/lib/src/schedule_process_function_base.js +0 -81
- package/dist/lib/src/schedule_process_function_base.js.map +0 -1
- package/dist/lib/src/sql_api_base.d.ts +0 -185
- package/dist/lib/src/sql_api_base.js +0 -94
- package/dist/lib/src/sql_api_base.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -82
- package/dist/lib/utils.js +0 -142
- package/dist/lib/utils.js.map +0 -1
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as functions from "firebase-functions/v2";
|
|
2
|
-
import { FunctionsBase, HttpFunctionsOptions } from "./functions_base";
|
|
3
|
-
export { CallableRequest } from "firebase-functions/v2/https";
|
|
4
|
-
/**
|
|
5
|
-
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
6
|
-
*
|
|
7
|
-
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
8
|
-
*/
|
|
9
|
-
export declare abstract class CallProcessFunctionBase extends FunctionsBase {
|
|
10
|
-
/**
|
|
11
|
-
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
12
|
-
*
|
|
13
|
-
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
14
|
-
*/
|
|
15
|
-
constructor(options?: HttpFunctionsOptions);
|
|
16
|
-
/**
|
|
17
|
-
* Specify the actual contents of the process.
|
|
18
|
-
*
|
|
19
|
-
* 実際の処理の中身を指定します。
|
|
20
|
-
*
|
|
21
|
-
* @param {any} query
|
|
22
|
-
* Query passed to Functions.
|
|
23
|
-
*
|
|
24
|
-
* Functionsに渡されたクエリ。
|
|
25
|
-
*
|
|
26
|
-
* @returns {{ [key: string]: any }}
|
|
27
|
-
* Return value of the process.
|
|
28
|
-
*
|
|
29
|
-
* 処理の戻り値。
|
|
30
|
-
*/
|
|
31
|
-
abstract process(query: functions.https.CallableRequest<any>): Promise<{
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}>;
|
|
34
|
-
abstract id: string;
|
|
35
|
-
data: {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
};
|
|
38
|
-
build(regions: string[]): Function;
|
|
39
|
-
}
|
|
@@ -1,82 +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 () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.CallProcessFunctionBase = void 0;
|
|
46
|
-
const functions = __importStar(require("firebase-functions/v2"));
|
|
47
|
-
const functions_base_1 = require("./functions_base");
|
|
48
|
-
/**
|
|
49
|
-
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
50
|
-
*
|
|
51
|
-
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
52
|
-
*/
|
|
53
|
-
class CallProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
54
|
-
/**
|
|
55
|
-
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
56
|
-
*
|
|
57
|
-
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
58
|
-
*/
|
|
59
|
-
constructor(options = {}) {
|
|
60
|
-
super({ options: options });
|
|
61
|
-
this.data = {};
|
|
62
|
-
}
|
|
63
|
-
build(regions) {
|
|
64
|
-
var _a, _b, _c, _d;
|
|
65
|
-
const options = this.options;
|
|
66
|
-
return functions.https.onCall({
|
|
67
|
-
region: (_a = options === null || options === void 0 ? void 0 : options.region) !== null && _a !== void 0 ? _a : regions,
|
|
68
|
-
timeoutSeconds: options === null || options === void 0 ? void 0 : options.timeoutSeconds,
|
|
69
|
-
memory: options === null || options === void 0 ? void 0 : options.memory,
|
|
70
|
-
minInstances: options === null || options === void 0 ? void 0 : options.minInstances,
|
|
71
|
-
concurrency: options === null || options === void 0 ? void 0 : options.concurrency,
|
|
72
|
-
maxInstances: options === null || options === void 0 ? void 0 : options.maxInstances,
|
|
73
|
-
serviceAccount: (_b = options === null || options === void 0 ? void 0 : options.serviceAccount) !== null && _b !== void 0 ? _b : undefined,
|
|
74
|
-
enforceAppCheck: (_c = options === null || options === void 0 ? void 0 : options.enforceAppCheck) !== null && _c !== void 0 ? _c : undefined,
|
|
75
|
-
consumeAppCheckToken: (_d = options === null || options === void 0 ? void 0 : options.consumeAppCheckToken) !== null && _d !== void 0 ? _d : undefined,
|
|
76
|
-
}, (query) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
return this.process(query);
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.CallProcessFunctionBase = CallProcessFunctionBase;
|
|
82
|
-
//# sourceMappingURL=call_process_function_base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call_process_function_base.js","sourceRoot":"","sources":["../../../src/lib/src/call_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAAyF;AAIzF;;;;GAIG;AACH,MAAsB,uBAAwB,SAAQ,8BAAa;IAC/D;;;;OAIG;IACH,YAAY,UAAgC,EAAE;QAC1C,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAqBhC,SAAI,GAA2B,EAAE,CAAC;IApBlC,CAAC;IAqBD,KAAK,CAAC,OAAiB;;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,OAAkD,CAAC;QACxE,OAAO,SAAS,CAAC,KAAK,CAAC,MAAM,CACzB;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;YACnC,cAAc,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,SAAS;YACpD,eAAe,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,mCAAI,SAAS;YACtD,oBAAoB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,mCAAI,SAAS;SACnE,EACD,CAAO,KAAK,EAAE,EAAE;YACZ,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAA,CACJ,CAAC;IACN,CAAC;CACJ;AAhDD,0DAgDC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as firestore from "firebase-admin/firestore";
|
|
2
|
-
import { Bucket } from '@google-cloud/storage';
|
|
3
|
-
/**
|
|
4
|
-
* Loads the Firestore instance.
|
|
5
|
-
*
|
|
6
|
-
* Firestoreインスタンスを読み込みます。
|
|
7
|
-
*
|
|
8
|
-
* @param databaseId
|
|
9
|
-
* Firestore Database ID.
|
|
10
|
-
*
|
|
11
|
-
* FirestoreのデータベースID。
|
|
12
|
-
*
|
|
13
|
-
* @returns
|
|
14
|
-
* Firestore instance.
|
|
15
|
-
*
|
|
16
|
-
* Firestoreインスタンス。
|
|
17
|
-
*/
|
|
18
|
-
export declare function firestoreLoader(databaseId: string | null | undefined): firestore.Firestore;
|
|
19
|
-
/**
|
|
20
|
-
* Loads the Storage instance.
|
|
21
|
-
*
|
|
22
|
-
* Storageインスタンスを読み込みます。
|
|
23
|
-
*
|
|
24
|
-
* @param bucketId
|
|
25
|
-
* StorageのバケットID。
|
|
26
|
-
*
|
|
27
|
-
* @returns
|
|
28
|
-
* Storageインスタンス。
|
|
29
|
-
*/
|
|
30
|
-
export declare function storageLoader(bucketId: string): Bucket;
|
|
@@ -1,77 +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 () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.firestoreLoader = firestoreLoader;
|
|
37
|
-
exports.storageLoader = storageLoader;
|
|
38
|
-
const firestore = __importStar(require("firebase-admin/firestore"));
|
|
39
|
-
const storage = __importStar(require("firebase-admin/storage"));
|
|
40
|
-
/**
|
|
41
|
-
* Loads the Firestore instance.
|
|
42
|
-
*
|
|
43
|
-
* Firestoreインスタンスを読み込みます。
|
|
44
|
-
*
|
|
45
|
-
* @param databaseId
|
|
46
|
-
* Firestore Database ID.
|
|
47
|
-
*
|
|
48
|
-
* FirestoreのデータベースID。
|
|
49
|
-
*
|
|
50
|
-
* @returns
|
|
51
|
-
* Firestore instance.
|
|
52
|
-
*
|
|
53
|
-
* Firestoreインスタンス。
|
|
54
|
-
*/
|
|
55
|
-
function firestoreLoader(databaseId) {
|
|
56
|
-
if (!databaseId || databaseId == "" || databaseId == "(default)") {
|
|
57
|
-
return firestore.getFirestore();
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return firestore.getFirestore(databaseId);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Loads the Storage instance.
|
|
65
|
-
*
|
|
66
|
-
* Storageインスタンスを読み込みます。
|
|
67
|
-
*
|
|
68
|
-
* @param bucketId
|
|
69
|
-
* StorageのバケットID。
|
|
70
|
-
*
|
|
71
|
-
* @returns
|
|
72
|
-
* Storageインスタンス。
|
|
73
|
-
*/
|
|
74
|
-
function storageLoader(bucketId) {
|
|
75
|
-
return storage.getStorage().bucket(bucketId);
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=firebase_loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"firebase_loader.js","sourceRoot":"","sources":["../../../src/lib/src/firebase_loader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,0CAMC;AAaD,sCAEC;AAxCD,oEAAsD;AACtD,gEAAkD;AAGlD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,UAAqC;IACjE,IAAI,CAAC,UAAU,IAAI,UAAU,IAAI,EAAE,IAAI,UAAU,IAAI,WAAW,EAAE,CAAC;QAC/D,OAAO,SAAS,CAAC,YAAY,EAAE,CAAC;IACpC,CAAC;SAAM,CAAC;QACJ,OAAO,SAAS,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,aAAa,CAAC,QAAgB;IAC1C,OAAO,OAAO,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as functions from "firebase-functions/v2";
|
|
2
|
-
import { DatabasePathFunctionsOptions, FunctionsBase } from "./functions_base";
|
|
3
|
-
/**
|
|
4
|
-
* Base class for defining Function data for Firestore triggers.
|
|
5
|
-
*
|
|
6
|
-
* Firestoreのトリガー用のFunctionのデータを定義するためのベースクラス。
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class FirestoreTriggeredProcessFunctionBase extends FunctionsBase {
|
|
9
|
-
/**
|
|
10
|
-
* Base class for defining Function data for Firestore triggers.
|
|
11
|
-
*
|
|
12
|
-
* Firestoreのトリガー用のFunctionのデータを定義するためのベースクラス。
|
|
13
|
-
*/
|
|
14
|
-
constructor(options?: DatabasePathFunctionsOptions);
|
|
15
|
-
/**
|
|
16
|
-
* Specifies the path to be processed.
|
|
17
|
-
*
|
|
18
|
-
* 処理を実行する対象のパスを指定します。
|
|
19
|
-
*
|
|
20
|
-
* https://firebase.google.com/docs/functions/firestore-events
|
|
21
|
-
*/
|
|
22
|
-
abstract path: string;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the database.
|
|
25
|
-
*
|
|
26
|
-
* データベースを指定します。
|
|
27
|
-
*/
|
|
28
|
-
database: string | undefined | null;
|
|
29
|
-
/**
|
|
30
|
-
* Specify the actual contents of the process.
|
|
31
|
-
*
|
|
32
|
-
* 実際の処理の中身を指定します。
|
|
33
|
-
*/
|
|
34
|
-
abstract process(event: functions.firestore.FirestoreEvent<functions.firestore.Change<functions.firestore.DocumentSnapshot> | undefined, Record<string, string>>): Promise<void>;
|
|
35
|
-
abstract id: string;
|
|
36
|
-
data: {
|
|
37
|
-
[key: string]: any;
|
|
38
|
-
};
|
|
39
|
-
build(regions: string[]): Function;
|
|
40
|
-
}
|
|
@@ -1,82 +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 () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.FirestoreTriggeredProcessFunctionBase = void 0;
|
|
46
|
-
const functions = __importStar(require("firebase-functions/v2"));
|
|
47
|
-
const functions_base_1 = require("./functions_base");
|
|
48
|
-
/**
|
|
49
|
-
* Base class for defining Function data for Firestore triggers.
|
|
50
|
-
*
|
|
51
|
-
* Firestoreのトリガー用のFunctionのデータを定義するためのベースクラス。
|
|
52
|
-
*/
|
|
53
|
-
class FirestoreTriggeredProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
54
|
-
/**
|
|
55
|
-
* Base class for defining Function data for Firestore triggers.
|
|
56
|
-
*
|
|
57
|
-
* Firestoreのトリガー用のFunctionのデータを定義するためのベースクラス。
|
|
58
|
-
*/
|
|
59
|
-
constructor(options = {}) {
|
|
60
|
-
super({ options: options });
|
|
61
|
-
/**
|
|
62
|
-
* Specifies the database.
|
|
63
|
-
*
|
|
64
|
-
* データベースを指定します。
|
|
65
|
-
*/
|
|
66
|
-
this.database = undefined;
|
|
67
|
-
this.data = {};
|
|
68
|
-
}
|
|
69
|
-
build(regions) {
|
|
70
|
-
var _a, _b, _c, _d;
|
|
71
|
-
const options = this.options;
|
|
72
|
-
return functions.firestore.onDocumentWritten({
|
|
73
|
-
document: (_a = options === null || options === void 0 ? void 0 : options.path) !== null && _a !== void 0 ? _a : this.path,
|
|
74
|
-
database: (_c = (_b = options === null || options === void 0 ? void 0 : options.database) !== null && _b !== void 0 ? _b : this.database) !== null && _c !== void 0 ? _c : undefined,
|
|
75
|
-
serviceAccount: (_d = options === null || options === void 0 ? void 0 : options.serviceAccount) !== null && _d !== void 0 ? _d : undefined,
|
|
76
|
-
}, (event) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
return this.process(event);
|
|
78
|
-
}));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.FirestoreTriggeredProcessFunctionBase = FirestoreTriggeredProcessFunctionBase;
|
|
82
|
-
//# sourceMappingURL=firestore_triggered_process_function_base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"firestore_triggered_process_function_base.js","sourceRoot":"","sources":["../../../src/lib/src/firestore_triggered_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAA+E;AAG/E;;;;GAIG;AACH,MAAsB,qCAAsC,SAAQ,8BAAa;IAC7E;;;;OAIG;IACH,YAAY,UAAwC,EAAE;QAClD,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAYhC;;;;WAIG;QACH,aAAQ,GAA8B,SAAS,CAAC;QAUhD,SAAI,GAA2B,EAAE,CAAC;IA1BlC,CAAC;IA2BD,KAAK,CAAC,OAAiB;;QACnB,MAAM,OAAO,GAAG,IAAI,CAAC,OAA0D,CAAC;QAChF,OAAO,SAAS,CAAC,SAAS,CAAC,iBAAiB,CACxC;YACI,QAAQ,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,IAAI,CAAC,IAAI;YACpC,QAAQ,EAAE,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,IAAI,CAAC,QAAQ,mCAAI,SAAS;YACzD,cAAc,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,SAAS;SACvD,EACD,CAAO,KAAK,EAAE,EAAE;YACZ,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,CAAA,CACJ,CAAC;IACN,CAAC;CACJ;AAhDD,sFAgDC"}
|