@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,327 +0,0 @@
|
|
|
1
|
-
import { MemoryOption } from "firebase-functions/v2";
|
|
2
|
-
/**
|
|
3
|
-
* Define Function data for FirebaseFunctions.
|
|
4
|
-
*
|
|
5
|
-
* Write code to generate FirebaseFunctions at `build`.
|
|
6
|
-
*
|
|
7
|
-
* FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
|
|
8
|
-
*
|
|
9
|
-
* `build`にてFirebaseFunctionsを生成するためのコードを記述します。
|
|
10
|
-
*/
|
|
11
|
-
export declare abstract class FunctionsBase {
|
|
12
|
-
/**
|
|
13
|
-
* Define Function data for FirebaseFunctions.
|
|
14
|
-
*
|
|
15
|
-
* Write code to generate FirebaseFunctions at `build`.
|
|
16
|
-
*
|
|
17
|
-
* FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
|
|
18
|
-
*
|
|
19
|
-
* `build`にてFirebaseFunctionsを生成するためのコードを記述します。
|
|
20
|
-
*/
|
|
21
|
-
constructor({ id, func, data, options, }: {
|
|
22
|
-
id?: string | undefined | null;
|
|
23
|
-
func?: ((region: string[], options: FunctionsOptions, data: {
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}) => Function) | undefined | null;
|
|
26
|
-
data?: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
} | undefined | null;
|
|
29
|
-
options?: FunctionsOptions | undefined | null;
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* @param id
|
|
33
|
-
* Describe the method names used in Functions.
|
|
34
|
-
*
|
|
35
|
-
* Functionsで利用されるメソッド名を記述します。
|
|
36
|
-
*/
|
|
37
|
-
readonly id: string;
|
|
38
|
-
/**
|
|
39
|
-
* @param func
|
|
40
|
-
* Specify the actual contents of the process.
|
|
41
|
-
*
|
|
42
|
-
* 実際の処理の中身を指定します。
|
|
43
|
-
*/
|
|
44
|
-
readonly func: ((region: string[], options: FunctionsOptions, data: {
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
}) => Function) | undefined | null;
|
|
47
|
-
/**
|
|
48
|
-
* Specify the data to be passed to the process.
|
|
49
|
-
*
|
|
50
|
-
* 処理に渡すデータを指定します。
|
|
51
|
-
*/
|
|
52
|
-
readonly data: {
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Specify processing options.
|
|
57
|
-
*
|
|
58
|
-
* 処理のオプションを指定します。
|
|
59
|
-
*/
|
|
60
|
-
readonly options: FunctionsOptions;
|
|
61
|
-
/**
|
|
62
|
-
* Write code to generate FirebaseFunctions.
|
|
63
|
-
*
|
|
64
|
-
* FirebaseFunctionsを生成するためのコードを記述します。
|
|
65
|
-
*/
|
|
66
|
-
abstract build(region: string[]): Function;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Specifies the options for the process.
|
|
70
|
-
*
|
|
71
|
-
* 処理のオプションを指定します。
|
|
72
|
-
*/
|
|
73
|
-
export interface SchedulerFunctionsOptions extends FunctionsOptions {
|
|
74
|
-
/**
|
|
75
|
-
* Specifies the schedule.
|
|
76
|
-
* * Cron format and AppEngine format are available.
|
|
77
|
-
* * For Cron format, specify as `5 11 * * *`.
|
|
78
|
-
* * For AppEngine format, specify as `every 1 minutes`.
|
|
79
|
-
*
|
|
80
|
-
* スケジュールを指定します。
|
|
81
|
-
* * Cron形式とAppEngine形式で指定可能です。
|
|
82
|
-
* * Cron形式の場合は、`5 11 * * *`のように指定します。
|
|
83
|
-
* * AppEngine形式の場合は、`every 1 minutes`のように指定します。
|
|
84
|
-
*/
|
|
85
|
-
schedule?: string | undefined | null;
|
|
86
|
-
/**
|
|
87
|
-
* Specifies an alternate region.
|
|
88
|
-
*
|
|
89
|
-
* 代替のリージョンを指定します。
|
|
90
|
-
*/
|
|
91
|
-
region?: string | null;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Specifies the options for the process.
|
|
95
|
-
*
|
|
96
|
-
* 処理のオプションを指定します。
|
|
97
|
-
*/
|
|
98
|
-
export interface PathFunctionsOptions extends FunctionsOptions {
|
|
99
|
-
/**
|
|
100
|
-
* Specify the path to the target database.
|
|
101
|
-
*
|
|
102
|
-
* 対象のデータベースのパスを指定します。
|
|
103
|
-
*/
|
|
104
|
-
path?: string | undefined | null;
|
|
105
|
-
/**
|
|
106
|
-
* Specifies an alternate region.
|
|
107
|
-
*
|
|
108
|
-
* 代替のリージョンを指定します。
|
|
109
|
-
*/
|
|
110
|
-
region?: string | null;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Specifies the options for the process.
|
|
114
|
-
*
|
|
115
|
-
* 処理のオプションを指定します。
|
|
116
|
-
*/
|
|
117
|
-
export interface DatabasePathFunctionsOptions extends FunctionsOptions {
|
|
118
|
-
/**
|
|
119
|
-
* Specify the path to the target database.
|
|
120
|
-
*
|
|
121
|
-
* 対象のデータベースのパスを指定します。
|
|
122
|
-
*/
|
|
123
|
-
path?: string | undefined | null;
|
|
124
|
-
/**
|
|
125
|
-
* Specifies the database.
|
|
126
|
-
*
|
|
127
|
-
* データベースを指定します。
|
|
128
|
-
*/
|
|
129
|
-
database?: string | undefined | null;
|
|
130
|
-
/**
|
|
131
|
-
* Specifies an alternate region.
|
|
132
|
-
*
|
|
133
|
-
* 代替のリージョンを指定します。
|
|
134
|
-
*/
|
|
135
|
-
region?: string | null;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Specifies the options for the process.
|
|
139
|
-
*
|
|
140
|
-
* 処理のオプションを指定します。
|
|
141
|
-
*/
|
|
142
|
-
export interface RelationPathFunctionsOptions extends FunctionsOptions {
|
|
143
|
-
/**
|
|
144
|
-
* Specify the path to the target database.
|
|
145
|
-
*
|
|
146
|
-
* 対象のデータベースのパスを指定します。
|
|
147
|
-
*/
|
|
148
|
-
path?: string | undefined | null;
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
* @param path
|
|
152
|
-
* @returns
|
|
153
|
-
*/
|
|
154
|
-
relation?: (path: string) => string | undefined | null;
|
|
155
|
-
/**
|
|
156
|
-
* Specifies an alternate region.
|
|
157
|
-
*
|
|
158
|
-
* 代替のリージョンを指定します。
|
|
159
|
-
*/
|
|
160
|
-
region?: string | null;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Specifies the options for the process.
|
|
164
|
-
*
|
|
165
|
-
* 処理のオプションを指定します。
|
|
166
|
-
*/
|
|
167
|
-
export interface PubsubFunctionsOptions extends FunctionsOptions {
|
|
168
|
-
/**
|
|
169
|
-
* Specifies the topic.
|
|
170
|
-
* You can create a `purchasing` topic in GCP's pub/sub and set the principal to "google-play-developer-notifications@system.gserviceaccount.com" to receive notifications.
|
|
171
|
-
*
|
|
172
|
-
* トピックを指定します。
|
|
173
|
-
* GCPのpub/subに`purchasing`のトピックを作成しプリンシパルに「google-play-developer-notifications@system.gserviceaccount.com」を設定することで通知を受け取ることができるようになります。
|
|
174
|
-
*/
|
|
175
|
-
topic?: string | undefined | null;
|
|
176
|
-
/**
|
|
177
|
-
* Specifies an alternate region.
|
|
178
|
-
*
|
|
179
|
-
* 代替のリージョンを指定します。
|
|
180
|
-
*/
|
|
181
|
-
region?: string | null;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Specifies the options for the process.
|
|
185
|
-
*
|
|
186
|
-
* 処理のオプションを指定します。
|
|
187
|
-
*/
|
|
188
|
-
export interface HttpFunctionsOptions extends FunctionsOptions {
|
|
189
|
-
/**
|
|
190
|
-
* Specifies an alternate region.
|
|
191
|
-
*
|
|
192
|
-
* 代替のリージョンを指定します。
|
|
193
|
-
*/
|
|
194
|
-
region?: string | string[] | null;
|
|
195
|
-
/**
|
|
196
|
-
* Determines whether Firebase AppCheck is enforced.
|
|
197
|
-
* When true, requests with invalid tokens autorespond with a 401
|
|
198
|
-
* (Unauthorized) error.
|
|
199
|
-
* When false, requests with invalid tokens set event.app to undefiend.
|
|
200
|
-
*
|
|
201
|
-
* Firebase AppCheckを強制するかどうかを指定します。
|
|
202
|
-
*
|
|
203
|
-
* trueの場合、無効なトークンを持つリクエストは401(Unauthorized)エラーで応答します。
|
|
204
|
-
* falseの場合、無効なトークンを持つリクエストはevent.appをundefinedに設定します。
|
|
205
|
-
*/
|
|
206
|
-
enforceAppCheck?: boolean | null;
|
|
207
|
-
/**
|
|
208
|
-
* Determines whether Firebase App Check token is consumed on request. Defaults to false.
|
|
209
|
-
*
|
|
210
|
-
* @remarks
|
|
211
|
-
* Set this to true to enable the App Check replay protection feature by consuming the App Check token on callable
|
|
212
|
-
* request. Tokens that are found to be already consumed will have request.app.alreadyConsumed property set true.
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
* Tokens are only considered to be consumed if it is sent to the App Check service by setting this option to true.
|
|
216
|
-
* Other uses of the token do not consume it.
|
|
217
|
-
*
|
|
218
|
-
* This replay protection feature requires an additional network call to the App Check backend and forces the clients
|
|
219
|
-
* to obtain a fresh attestation from the chosen attestation providers. This can therefore negatively impact
|
|
220
|
-
* performance and can potentially deplete your attestation providers' quotas faster. Use this feature only for
|
|
221
|
-
* protecting low volume, security critical, or expensive operations.
|
|
222
|
-
*
|
|
223
|
-
* This option does not affect the enforceAppCheck option. Setting the latter to true will cause the callable function
|
|
224
|
-
* to automatically respond with a 401 Unauthorized status code when request includes an invalid App Check token.
|
|
225
|
-
* When request includes valid but consumed App Check tokens, requests will not be automatically rejected. Instead,
|
|
226
|
-
* the request.app.alreadyConsumed property will be set to true and pass the execution to the handler code for making
|
|
227
|
-
* further decisions, such as requiring additional security checks or rejecting the request.
|
|
228
|
-
*
|
|
229
|
-
* Firebase AppCheckトークンをリクエスト時に消費するかどうかを指定します。デフォルトはfalseです。
|
|
230
|
-
*
|
|
231
|
-
* @remarks
|
|
232
|
-
* これをtrueに設定すると、Callable関数のリクエストでAppCheckトークンを消費することで、
|
|
233
|
-
* AppCheckのリプレイ保護機能が有効になります。既に消費されたトークンが検出された場合、
|
|
234
|
-
* request.app.alreadyConsumedプロパティがtrueに設定されます。
|
|
235
|
-
*
|
|
236
|
-
* トークンは、このオプションをtrueに設定してAppCheckサービスに送信された場合にのみ
|
|
237
|
-
* 消費されたとみなされます。トークンの他の使用方法では消費されません。
|
|
238
|
-
*
|
|
239
|
-
* このリプレイ保護機能は、AppCheckバックエンドへの追加のネットワークコールを必要とし、
|
|
240
|
-
* クライアントに選択された認証プロバイダーから新しい認証を取得することを強制します。
|
|
241
|
-
* そのため、パフォーマンスに悪影響を与える可能性があり、認証プロバイダーのクォータを
|
|
242
|
-
* より早く消費する可能性があります。この機能は、低ボリュームのセキュリティ重要な
|
|
243
|
-
* 操作や高コストな操作の保護にのみ使用してください。
|
|
244
|
-
*
|
|
245
|
-
* このオプションは、enforceAppCheckオプションには影響しません。後者をtrueに設定すると、
|
|
246
|
-
* リクエストに無効なAppCheckトークンが含まれている場合、Callable関数は自動的に
|
|
247
|
-
* 401 Unauthorizedステータスコードで応答します。有効だが消費済みのAppCheckトークンが
|
|
248
|
-
* 含まれているリクエストは自動的には拒否されません。代わりに、request.app.alreadyConsumed
|
|
249
|
-
* プロパティがtrueに設定され、追加のセキュリティチェックやリクエストの拒否など、
|
|
250
|
-
* さらなる判断を行うためにハンドラーコードに実行が渡されます。
|
|
251
|
-
*/
|
|
252
|
-
consumeAppCheckToken?: boolean | null;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Specifies the options for the process.
|
|
256
|
-
*
|
|
257
|
-
* 処理のオプションを指定します。
|
|
258
|
-
*/
|
|
259
|
-
export interface StorageFunctionsOptions extends FunctionsOptions {
|
|
260
|
-
/**
|
|
261
|
-
* Specifies an alternate region.
|
|
262
|
-
*
|
|
263
|
-
* 代替のリージョンを指定します。
|
|
264
|
-
*/
|
|
265
|
-
region?: string | null;
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Specifies the options for the process.
|
|
269
|
-
*
|
|
270
|
-
* 処理のオプションを指定します。
|
|
271
|
-
*/
|
|
272
|
-
export interface FunctionsOptions {
|
|
273
|
-
/**
|
|
274
|
-
* Specifies the timeout period.
|
|
275
|
-
*
|
|
276
|
-
* タイムアウト時間を指定します。
|
|
277
|
-
*/
|
|
278
|
-
timeoutSeconds?: number | undefined;
|
|
279
|
-
/**
|
|
280
|
-
* Specifies the memory.
|
|
281
|
-
*
|
|
282
|
-
* メモリを指定します。
|
|
283
|
-
*/
|
|
284
|
-
memory?: MemoryOption | undefined;
|
|
285
|
-
/**
|
|
286
|
-
* Specifies the minInstances.
|
|
287
|
-
*
|
|
288
|
-
* minInstancesを指定します。
|
|
289
|
-
*/
|
|
290
|
-
minInstances?: number | undefined;
|
|
291
|
-
/**
|
|
292
|
-
* Specifies the maxInstances.
|
|
293
|
-
*
|
|
294
|
-
* maxInstancesを指定します。
|
|
295
|
-
*/
|
|
296
|
-
maxInstances?: number | undefined;
|
|
297
|
-
/**
|
|
298
|
-
* Specifies the concurrency.
|
|
299
|
-
*
|
|
300
|
-
* concurrencyを指定します。
|
|
301
|
-
*/
|
|
302
|
-
concurrency?: number | undefined;
|
|
303
|
-
/**
|
|
304
|
-
* Change the method name to something you prefer.
|
|
305
|
-
*
|
|
306
|
-
* メソッド名をお好みのものに変更します。
|
|
307
|
-
*/
|
|
308
|
-
name?: string | undefined;
|
|
309
|
-
/**
|
|
310
|
-
* Specifies the service account.
|
|
311
|
-
*
|
|
312
|
-
* サービスアカウントを指定します。
|
|
313
|
-
*/
|
|
314
|
-
serviceAccount?: string | undefined;
|
|
315
|
-
/**
|
|
316
|
-
* Specifies the Firestore database IDs.
|
|
317
|
-
*
|
|
318
|
-
* FirestoreのデータベースIDを指定します。
|
|
319
|
-
*/
|
|
320
|
-
firestoreDatabaseIds?: string[] | undefined;
|
|
321
|
-
/**
|
|
322
|
-
* Specifies the Storage bucket IDs.
|
|
323
|
-
*
|
|
324
|
-
* StorageのバケットIDを指定します。
|
|
325
|
-
*/
|
|
326
|
-
storageBucketIds?: string[] | undefined;
|
|
327
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FunctionsBase = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Define Function data for FirebaseFunctions.
|
|
6
|
-
*
|
|
7
|
-
* Write code to generate FirebaseFunctions at `build`.
|
|
8
|
-
*
|
|
9
|
-
* FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
|
|
10
|
-
*
|
|
11
|
-
* `build`にてFirebaseFunctionsを生成するためのコードを記述します。
|
|
12
|
-
*/
|
|
13
|
-
class FunctionsBase {
|
|
14
|
-
/**
|
|
15
|
-
* Define Function data for FirebaseFunctions.
|
|
16
|
-
*
|
|
17
|
-
* Write code to generate FirebaseFunctions at `build`.
|
|
18
|
-
*
|
|
19
|
-
* FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
|
|
20
|
-
*
|
|
21
|
-
* `build`にてFirebaseFunctionsを生成するためのコードを記述します。
|
|
22
|
-
*/
|
|
23
|
-
constructor({ id, func, data = {}, options, }) {
|
|
24
|
-
var _a, _b;
|
|
25
|
-
this.id = (_b = (_a = options === null || options === void 0 ? void 0 : options.name) !== null && _a !== void 0 ? _a : id) !== null && _b !== void 0 ? _b : "";
|
|
26
|
-
this.func = func;
|
|
27
|
-
this.data = data !== null && data !== void 0 ? data : {};
|
|
28
|
-
this.options = options !== null && options !== void 0 ? options : {
|
|
29
|
-
timeoutSeconds: 60,
|
|
30
|
-
memory: "256MiB",
|
|
31
|
-
minInstances: 0,
|
|
32
|
-
concurrency: 80,
|
|
33
|
-
maxInstances: 100,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.FunctionsBase = FunctionsBase;
|
|
38
|
-
//# sourceMappingURL=functions_base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"functions_base.js","sourceRoot":"","sources":["../../../src/lib/src/functions_base.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;GAQG;AACH,MAAsB,aAAa;IAC/B;;;;;;;;OAQG;IACH,YAAY,EACR,EAAE,EACF,IAAI,EACJ,IAAI,GAAG,EAAE,EACT,OAAO,GAUV;;QACG,IAAI,CAAC,EAAE,GAAG,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,EAAE,mCAAI,EAAE,CAAC;QACpC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI;YACtB,cAAc,EAAE,EAAE;YAClB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,CAAC;YACf,WAAW,EAAE,EAAE;YACf,YAAY,EAAE,GAAG;SACpB,CAAC;IACN,CAAC;CA0CJ;AA7ED,sCA6EC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FunctionsBase } from "./functions_base";
|
|
2
|
-
export { FunctionsOptions, SchedulerFunctionsOptions, PubsubFunctionsOptions, PathFunctionsOptions, RelationPathFunctionsOptions, HttpFunctionsOptions, StorageFunctionsOptions } from "./functions_base";
|
|
3
|
-
/**
|
|
4
|
-
* Define Function data for FirebaseFunctions.
|
|
5
|
-
*
|
|
6
|
-
* FirebaseFunctions用のFunctionのデータを定義します。
|
|
7
|
-
*/
|
|
8
|
-
export declare class FunctionsData extends FunctionsBase {
|
|
9
|
-
build(region: string[]): Function;
|
|
10
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FunctionsData = void 0;
|
|
4
|
-
const functions_base_1 = require("./functions_base");
|
|
5
|
-
/**
|
|
6
|
-
* Define Function data for FirebaseFunctions.
|
|
7
|
-
*
|
|
8
|
-
* FirebaseFunctions用のFunctionのデータを定義します。
|
|
9
|
-
*/
|
|
10
|
-
class FunctionsData extends functions_base_1.FunctionsBase {
|
|
11
|
-
build(region) {
|
|
12
|
-
if (!this.func) {
|
|
13
|
-
return () => { };
|
|
14
|
-
}
|
|
15
|
-
return this.func(region, this.options, this.data);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.FunctionsData = FunctionsData;
|
|
19
|
-
//# sourceMappingURL=functions_data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"functions_data.js","sourceRoot":"","sources":["../../../src/lib/src/functions_data.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAGjD;;;;GAIG;AACH,MAAa,aAAc,SAAQ,8BAAa;IAC9C,KAAK,CAAC,MAAgB;QACpB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACf,OAAO,GAAG,EAAE,GAAG,CAAC,CAAC;QACnB,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CACd,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,IAAI,CACV,CAAC;IACJ,CAAC;CACF;AAXD,sCAWC"}
|
|
@@ -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 request
|
|
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(request: functions.https.Request, response: express.Response<any>): Promise<void>;
|
|
34
|
-
abstract id: string;
|
|
35
|
-
data: {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
};
|
|
38
|
-
build(regions: string[]): Function;
|
|
39
|
-
}
|
|
@@ -1,80 +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.RequestProcessFunctionBase = 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 HTTP request execution.
|
|
50
|
-
*
|
|
51
|
-
* HTTPリクエスト実行用のFunctionのデータを定義するためのベースクラス。
|
|
52
|
-
*/
|
|
53
|
-
class RequestProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
54
|
-
/**
|
|
55
|
-
* Base class for defining Function data for HTTP request execution.
|
|
56
|
-
*
|
|
57
|
-
* HTTPリクエスト実行用のFunctionのデータを定義するためのベースクラス。
|
|
58
|
-
*/
|
|
59
|
-
constructor(options = {}) {
|
|
60
|
-
super({ options: options });
|
|
61
|
-
this.data = {};
|
|
62
|
-
}
|
|
63
|
-
build(regions) {
|
|
64
|
-
var _a, _b;
|
|
65
|
-
const options = this.options;
|
|
66
|
-
return functions.https.onRequest({
|
|
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
|
-
}, (req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
return this.process(req, res);
|
|
76
|
-
}));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
exports.RequestProcessFunctionBase = RequestProcessFunctionBase;
|
|
80
|
-
//# sourceMappingURL=request_process_function_base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request_process_function_base.js","sourceRoot":"","sources":["../../../src/lib/src/request_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAAuE;AAMvE;;;;GAIG;AACH,MAAsB,0BAA2B,SAAQ,8BAAa;IAClE;;;;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,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;YACnC,cAAc,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,SAAS;SACvD,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;AA9CD,gEA8CC"}
|
|
@@ -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]: any;
|
|
31
|
-
};
|
|
32
|
-
build(regions: string[]): Function;
|
|
33
|
-
}
|
|
@@ -1,81 +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.ScheduleProcessFunctionBase = 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 periodic scheduled execution.
|
|
50
|
-
*
|
|
51
|
-
* 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。
|
|
52
|
-
*/
|
|
53
|
-
class ScheduleProcessFunctionBase extends functions_base_1.FunctionsBase {
|
|
54
|
-
/**
|
|
55
|
-
* Base class for defining the data of Functions for periodic scheduled execution.
|
|
56
|
-
*
|
|
57
|
-
* 定期スケジュール実行用のFunctionのデータを定義するためのベースクラス。
|
|
58
|
-
*/
|
|
59
|
-
constructor(options = {}) {
|
|
60
|
-
super({ options: options });
|
|
61
|
-
this.data = {};
|
|
62
|
-
}
|
|
63
|
-
build(regions) {
|
|
64
|
-
var _a, _b, _c;
|
|
65
|
-
const options = this.options;
|
|
66
|
-
return functions.scheduler.onSchedule({
|
|
67
|
-
schedule: (_a = options === null || options === void 0 ? void 0 : options.schedule) !== null && _a !== void 0 ? _a : this.schedule,
|
|
68
|
-
region: (_b = options === null || options === void 0 ? void 0 : options.region) !== null && _b !== void 0 ? _b : regions[0],
|
|
69
|
-
timeoutSeconds: options === null || options === void 0 ? void 0 : options.timeoutSeconds,
|
|
70
|
-
memory: options === null || options === void 0 ? void 0 : options.memory,
|
|
71
|
-
minInstances: options === null || options === void 0 ? void 0 : options.minInstances,
|
|
72
|
-
concurrency: options === null || options === void 0 ? void 0 : options.concurrency,
|
|
73
|
-
maxInstances: options === null || options === void 0 ? void 0 : options.maxInstances,
|
|
74
|
-
serviceAccount: (_c = options === null || options === void 0 ? void 0 : options.serviceAccount) !== null && _c !== void 0 ? _c : undefined,
|
|
75
|
-
}, (event) => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
return this.process();
|
|
77
|
-
}));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
exports.ScheduleProcessFunctionBase = ScheduleProcessFunctionBase;
|
|
81
|
-
//# sourceMappingURL=schedule_process_function_base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schedule_process_function_base.js","sourceRoot":"","sources":["../../../src/lib/src/schedule_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,qDAA4E;AAG5E;;;;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,GAA2B,EAAE,CAAC;IAnBlC,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;YACnC,cAAc,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,SAAS;SACvD,EACD,CAAO,KAAK,EAAE,EAAE;YACZ,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC,CAAA,CACJ,CAAC;IACN,CAAC;CACJ;AA9CD,kEA8CC"}
|