@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.
Files changed (268) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -1
  3. package/dist/functions/test.d.ts +1 -1
  4. package/dist/functions/test.js +2 -3
  5. package/dist/functions/test.js.map +1 -1
  6. package/dist/functions.d.ts +2 -245
  7. package/dist/functions.js +2 -245
  8. package/dist/functions.js.map +1 -1
  9. package/dist/index.d.ts +4 -17
  10. package/dist/index.js +13 -15
  11. package/dist/index.js.map +1 -1
  12. package/package.json +10 -23
  13. package/.claude/settings.local.json +0 -12
  14. package/dist/functions/aggregate_model_firestore.d.ts +0 -1
  15. package/dist/functions/aggregate_model_firestore.js +0 -225
  16. package/dist/functions/aggregate_model_firestore.js.map +0 -1
  17. package/dist/functions/aggregation_model_firestore.d.ts +0 -1
  18. package/dist/functions/aggregation_model_firestore.js +0 -220
  19. package/dist/functions/aggregation_model_firestore.js.map +0 -1
  20. package/dist/functions/agora_cloud_recording.d.ts +0 -1
  21. package/dist/functions/agora_cloud_recording.js +0 -125
  22. package/dist/functions/agora_cloud_recording.js.map +0 -1
  23. package/dist/functions/agora_token.d.ts +0 -1
  24. package/dist/functions/agora_token.js +0 -144
  25. package/dist/functions/agora_token.js.map +0 -1
  26. package/dist/functions/algolia.d.ts +0 -1
  27. package/dist/functions/algolia.js +0 -145
  28. package/dist/functions/algolia.js.map +0 -1
  29. package/dist/functions/android_auth_code.d.ts +0 -1
  30. package/dist/functions/android_auth_code.js +0 -97
  31. package/dist/functions/android_auth_code.js.map +0 -1
  32. package/dist/functions/android_token.d.ts +0 -1
  33. package/dist/functions/android_token.js +0 -132
  34. package/dist/functions/android_token.js.map +0 -1
  35. package/dist/functions/collection_model_firestore.d.ts +0 -1
  36. package/dist/functions/collection_model_firestore.js +0 -222
  37. package/dist/functions/collection_model_firestore.js.map +0 -1
  38. package/dist/functions/conduct_broad_research.d.ts +0 -1
  39. package/dist/functions/conduct_broad_research.js +0 -162
  40. package/dist/functions/conduct_broad_research.js.map +0 -1
  41. package/dist/functions/conduct_detailed_research.d.ts +0 -1
  42. package/dist/functions/conduct_detailed_research.js +0 -162
  43. package/dist/functions/conduct_detailed_research.js.map +0 -1
  44. package/dist/functions/consumable_verify_android.d.ts +0 -1
  45. package/dist/functions/consumable_verify_android.js +0 -172
  46. package/dist/functions/consumable_verify_android.js.map +0 -1
  47. package/dist/functions/consumable_verify_ios.d.ts +0 -1
  48. package/dist/functions/consumable_verify_ios.js +0 -136
  49. package/dist/functions/consumable_verify_ios.js.map +0 -1
  50. package/dist/functions/delete_documents.d.ts +0 -1
  51. package/dist/functions/delete_documents.js +0 -91
  52. package/dist/functions/delete_documents.js.map +0 -1
  53. package/dist/functions/delete_user.d.ts +0 -1
  54. package/dist/functions/delete_user.js +0 -87
  55. package/dist/functions/delete_user.js.map +0 -1
  56. package/dist/functions/document_model_firestore.d.ts +0 -1
  57. package/dist/functions/document_model_firestore.js +0 -218
  58. package/dist/functions/document_model_firestore.js.map +0 -1
  59. package/dist/functions/geocoding.d.ts +0 -1
  60. package/dist/functions/geocoding.js +0 -93
  61. package/dist/functions/geocoding.js.map +0 -1
  62. package/dist/functions/gmail.d.ts +0 -1
  63. package/dist/functions/gmail.js +0 -117
  64. package/dist/functions/gmail.js.map +0 -1
  65. package/dist/functions/google_token.d.ts +0 -1
  66. package/dist/functions/google_token.js +0 -105
  67. package/dist/functions/google_token.js.map +0 -1
  68. package/dist/functions/hls.d.ts +0 -1
  69. package/dist/functions/hls.js +0 -169
  70. package/dist/functions/hls.js.map +0 -1
  71. package/dist/functions/nonconsumable_verify_android.d.ts +0 -1
  72. package/dist/functions/nonconsumable_verify_android.js +0 -166
  73. package/dist/functions/nonconsumable_verify_android.js.map +0 -1
  74. package/dist/functions/nonconsumable_verify_ios.d.ts +0 -1
  75. package/dist/functions/nonconsumable_verify_ios.js +0 -130
  76. package/dist/functions/nonconsumable_verify_ios.js.map +0 -1
  77. package/dist/functions/openai_chat_gpt.d.ts +0 -1
  78. package/dist/functions/openai_chat_gpt.js +0 -117
  79. package/dist/functions/openai_chat_gpt.js.map +0 -1
  80. package/dist/functions/purchase_webhook_android.d.ts +0 -1
  81. package/dist/functions/purchase_webhook_android.js +0 -306
  82. package/dist/functions/purchase_webhook_android.js.map +0 -1
  83. package/dist/functions/purchase_webhook_ios.d.ts +0 -1
  84. package/dist/functions/purchase_webhook_ios.js +0 -182
  85. package/dist/functions/purchase_webhook_ios.js.map +0 -1
  86. package/dist/functions/schedule_asset_creation.d.ts +0 -1
  87. package/dist/functions/schedule_asset_creation.js +0 -103
  88. package/dist/functions/schedule_asset_creation.js.map +0 -1
  89. package/dist/functions/scheduler.d.ts +0 -1
  90. package/dist/functions/scheduler.js +0 -144
  91. package/dist/functions/scheduler.js.map +0 -1
  92. package/dist/functions/send_grid.d.ts +0 -1
  93. package/dist/functions/send_grid.js +0 -111
  94. package/dist/functions/send_grid.js.map +0 -1
  95. package/dist/functions/send_notification.d.ts +0 -1
  96. package/dist/functions/send_notification.js +0 -207
  97. package/dist/functions/send_notification.js.map +0 -1
  98. package/dist/functions/start_asset_creation.d.ts +0 -1
  99. package/dist/functions/start_asset_creation.js +0 -106
  100. package/dist/functions/start_asset_creation.js.map +0 -1
  101. package/dist/functions/storage_firebase.d.ts +0 -1
  102. package/dist/functions/storage_firebase.js +0 -286
  103. package/dist/functions/storage_firebase.js.map +0 -1
  104. package/dist/functions/stripe.d.ts +0 -1
  105. package/dist/functions/stripe.js +0 -1243
  106. package/dist/functions/stripe.js.map +0 -1
  107. package/dist/functions/stripe_webhook.d.ts +0 -1
  108. package/dist/functions/stripe_webhook.js +0 -605
  109. package/dist/functions/stripe_webhook.js.map +0 -1
  110. package/dist/functions/stripe_webhook_connect.d.ts +0 -1
  111. package/dist/functions/stripe_webhook_connect.js +0 -173
  112. package/dist/functions/stripe_webhook_connect.js.map +0 -1
  113. package/dist/functions/stripe_webhook_secure.d.ts +0 -1
  114. package/dist/functions/stripe_webhook_secure.js +0 -182
  115. package/dist/functions/stripe_webhook_secure.js.map +0 -1
  116. package/dist/functions/subscription_verify_android.d.ts +0 -1
  117. package/dist/functions/subscription_verify_android.js +0 -195
  118. package/dist/functions/subscription_verify_android.js.map +0 -1
  119. package/dist/functions/subscription_verify_ios.d.ts +0 -1
  120. package/dist/functions/subscription_verify_ios.js +0 -170
  121. package/dist/functions/subscription_verify_ios.js.map +0 -1
  122. package/dist/lib/api.d.ts +0 -185
  123. package/dist/lib/api.js +0 -172
  124. package/dist/lib/api.js.map +0 -1
  125. package/dist/lib/exntensions/string.extension.d.ts +0 -214
  126. package/dist/lib/exntensions/string.extension.js +0 -226
  127. package/dist/lib/exntensions/string.extension.js.map +0 -1
  128. package/dist/lib/functions/delete_documents.d.ts +0 -32
  129. package/dist/lib/functions/delete_documents.js +0 -111
  130. package/dist/lib/functions/delete_documents.js.map +0 -1
  131. package/dist/lib/functions/firestore.d.ts +0 -114
  132. package/dist/lib/functions/firestore.js +0 -347
  133. package/dist/lib/functions/firestore.js.map +0 -1
  134. package/dist/lib/functions/gmail.d.ts +0 -39
  135. package/dist/lib/functions/gmail.js +0 -64
  136. package/dist/lib/functions/gmail.js.map +0 -1
  137. package/dist/lib/functions/send_grid.d.ts +0 -33
  138. package/dist/lib/functions/send_grid.js +0 -57
  139. package/dist/lib/functions/send_grid.js.map +0 -1
  140. package/dist/lib/functions/send_notification.d.ts +0 -109
  141. package/dist/lib/functions/send_notification.js +0 -386
  142. package/dist/lib/functions/send_notification.js.map +0 -1
  143. package/dist/lib/functions/update_subscription.d.ts +0 -84
  144. package/dist/lib/functions/update_subscription.js +0 -150
  145. package/dist/lib/functions/update_subscription.js.map +0 -1
  146. package/dist/lib/functions/update_unlock.d.ts +0 -28
  147. package/dist/lib/functions/update_unlock.js +0 -84
  148. package/dist/lib/functions/update_unlock.js.map +0 -1
  149. package/dist/lib/functions/update_wallet.d.ts +0 -34
  150. package/dist/lib/functions/update_wallet.js +0 -91
  151. package/dist/lib/functions/update_wallet.js.map +0 -1
  152. package/dist/lib/functions/verify_android.d.ts +0 -50
  153. package/dist/lib/functions/verify_android.js +0 -130
  154. package/dist/lib/functions/verify_android.js.map +0 -1
  155. package/dist/lib/functions/verify_ios.d.ts +0 -73
  156. package/dist/lib/functions/verify_ios.js +0 -227
  157. package/dist/lib/functions/verify_ios.js.map +0 -1
  158. package/dist/lib/model_field_value/converters/firestore_basic_converter.d.ts +0 -25
  159. package/dist/lib/model_field_value/converters/firestore_basic_converter.js +0 -28
  160. package/dist/lib/model_field_value/converters/firestore_basic_converter.js.map +0 -1
  161. package/dist/lib/model_field_value/converters/firestore_enum_converter.d.ts +0 -25
  162. package/dist/lib/model_field_value/converters/firestore_enum_converter.js +0 -28
  163. package/dist/lib/model_field_value/converters/firestore_enum_converter.js.map +0 -1
  164. package/dist/lib/model_field_value/converters/firestore_model_command_base_converter.d.ts +0 -25
  165. package/dist/lib/model_field_value/converters/firestore_model_command_base_converter.js +0 -58
  166. package/dist/lib/model_field_value/converters/firestore_model_command_base_converter.js.map +0 -1
  167. package/dist/lib/model_field_value/converters/firestore_model_counter_converter.d.ts +0 -25
  168. package/dist/lib/model_field_value/converters/firestore_model_counter_converter.js +0 -177
  169. package/dist/lib/model_field_value/converters/firestore_model_counter_converter.js.map +0 -1
  170. package/dist/lib/model_field_value/converters/firestore_model_date_converter.d.ts +0 -26
  171. package/dist/lib/model_field_value/converters/firestore_model_date_converter.js +0 -174
  172. package/dist/lib/model_field_value/converters/firestore_model_date_converter.js.map +0 -1
  173. package/dist/lib/model_field_value/converters/firestore_model_date_range_converter.d.ts +0 -25
  174. package/dist/lib/model_field_value/converters/firestore_model_date_range_converter.js +0 -183
  175. package/dist/lib/model_field_value/converters/firestore_model_date_range_converter.js.map +0 -1
  176. package/dist/lib/model_field_value/converters/firestore_model_geo_value_converter.d.ts +0 -25
  177. package/dist/lib/model_field_value/converters/firestore_model_geo_value_converter.js +0 -163
  178. package/dist/lib/model_field_value/converters/firestore_model_geo_value_converter.js.map +0 -1
  179. package/dist/lib/model_field_value/converters/firestore_model_image_uri_converter.d.ts +0 -25
  180. package/dist/lib/model_field_value/converters/firestore_model_image_uri_converter.js +0 -134
  181. package/dist/lib/model_field_value/converters/firestore_model_image_uri_converter.js.map +0 -1
  182. package/dist/lib/model_field_value/converters/firestore_model_locale_converter.d.ts +0 -25
  183. package/dist/lib/model_field_value/converters/firestore_model_locale_converter.js +0 -163
  184. package/dist/lib/model_field_value/converters/firestore_model_locale_converter.js.map +0 -1
  185. package/dist/lib/model_field_value/converters/firestore_model_localized_value_converter.d.ts +0 -25
  186. package/dist/lib/model_field_value/converters/firestore_model_localized_value_converter.js +0 -89
  187. package/dist/lib/model_field_value/converters/firestore_model_localized_value_converter.js.map +0 -1
  188. package/dist/lib/model_field_value/converters/firestore_model_ref_converter.d.ts +0 -25
  189. package/dist/lib/model_field_value/converters/firestore_model_ref_converter.js +0 -113
  190. package/dist/lib/model_field_value/converters/firestore_model_ref_converter.js.map +0 -1
  191. package/dist/lib/model_field_value/converters/firestore_model_search_converter.d.ts +0 -25
  192. package/dist/lib/model_field_value/converters/firestore_model_search_converter.js +0 -91
  193. package/dist/lib/model_field_value/converters/firestore_model_search_converter.js.map +0 -1
  194. package/dist/lib/model_field_value/converters/firestore_model_time_converter.d.ts +0 -26
  195. package/dist/lib/model_field_value/converters/firestore_model_time_converter.js +0 -191
  196. package/dist/lib/model_field_value/converters/firestore_model_time_converter.js.map +0 -1
  197. package/dist/lib/model_field_value/converters/firestore_model_time_range_converter.d.ts +0 -25
  198. package/dist/lib/model_field_value/converters/firestore_model_time_range_converter.js +0 -183
  199. package/dist/lib/model_field_value/converters/firestore_model_time_range_converter.js.map +0 -1
  200. package/dist/lib/model_field_value/converters/firestore_model_timestamp_converter.d.ts +0 -26
  201. package/dist/lib/model_field_value/converters/firestore_model_timestamp_converter.js +0 -246
  202. package/dist/lib/model_field_value/converters/firestore_model_timestamp_converter.js.map +0 -1
  203. package/dist/lib/model_field_value/converters/firestore_model_timestamp_range_converter.d.ts +0 -25
  204. package/dist/lib/model_field_value/converters/firestore_model_timestamp_range_converter.js +0 -183
  205. package/dist/lib/model_field_value/converters/firestore_model_timestamp_range_converter.js.map +0 -1
  206. package/dist/lib/model_field_value/converters/firestore_model_token_converter.d.ts +0 -25
  207. package/dist/lib/model_field_value/converters/firestore_model_token_converter.js +0 -91
  208. package/dist/lib/model_field_value/converters/firestore_model_token_converter.js.map +0 -1
  209. package/dist/lib/model_field_value/converters/firestore_model_uri_converter.d.ts +0 -25
  210. package/dist/lib/model_field_value/converters/firestore_model_uri_converter.js +0 -134
  211. package/dist/lib/model_field_value/converters/firestore_model_uri_converter.js.map +0 -1
  212. package/dist/lib/model_field_value/converters/firestore_model_vector_value_converter.d.ts +0 -25
  213. package/dist/lib/model_field_value/converters/firestore_model_vector_value_converter.js +0 -80
  214. package/dist/lib/model_field_value/converters/firestore_model_vector_value_converter.js.map +0 -1
  215. package/dist/lib/model_field_value/converters/firestore_model_video_uri_converter.d.ts +0 -25
  216. package/dist/lib/model_field_value/converters/firestore_model_video_uri_converter.js +0 -134
  217. package/dist/lib/model_field_value/converters/firestore_model_video_uri_converter.js.map +0 -1
  218. package/dist/lib/model_field_value/converters/firestore_null_converter.d.ts +0 -25
  219. package/dist/lib/model_field_value/converters/firestore_null_converter.js +0 -45
  220. package/dist/lib/model_field_value/converters/firestore_null_converter.js.map +0 -1
  221. package/dist/lib/model_field_value/default_firestore_model_field_value_converter.d.ts +0 -61
  222. package/dist/lib/model_field_value/default_firestore_model_field_value_converter.js +0 -140
  223. package/dist/lib/model_field_value/default_firestore_model_field_value_converter.js.map +0 -1
  224. package/dist/lib/model_field_value/firestore_model_field_value_converter.d.ts +0 -154
  225. package/dist/lib/model_field_value/firestore_model_field_value_converter.js +0 -127
  226. package/dist/lib/model_field_value/firestore_model_field_value_converter.js.map +0 -1
  227. package/dist/lib/model_field_value/model_field_value.d.ts +0 -264
  228. package/dist/lib/model_field_value/model_field_value.js +0 -314
  229. package/dist/lib/model_field_value/model_field_value.js.map +0 -1
  230. package/dist/lib/regions.d.ts +0 -6
  231. package/dist/lib/regions.js +0 -3
  232. package/dist/lib/regions.js.map +0 -1
  233. package/dist/lib/schedulers/copy_document.d.ts +0 -35
  234. package/dist/lib/schedulers/copy_document.js +0 -59
  235. package/dist/lib/schedulers/copy_document.js.map +0 -1
  236. package/dist/lib/schedulers/delete_documents.d.ts +0 -35
  237. package/dist/lib/schedulers/delete_documents.js +0 -86
  238. package/dist/lib/schedulers/delete_documents.js.map +0 -1
  239. package/dist/lib/schedulers/notification.d.ts +0 -35
  240. package/dist/lib/schedulers/notification.js +0 -78
  241. package/dist/lib/schedulers/notification.js.map +0 -1
  242. package/dist/lib/src/call_process_function_base.d.ts +0 -39
  243. package/dist/lib/src/call_process_function_base.js +0 -82
  244. package/dist/lib/src/call_process_function_base.js.map +0 -1
  245. package/dist/lib/src/firebase_loader.d.ts +0 -30
  246. package/dist/lib/src/firebase_loader.js +0 -77
  247. package/dist/lib/src/firebase_loader.js.map +0 -1
  248. package/dist/lib/src/firestore_triggered_process_function_base.d.ts +0 -40
  249. package/dist/lib/src/firestore_triggered_process_function_base.js +0 -82
  250. package/dist/lib/src/firestore_triggered_process_function_base.js.map +0 -1
  251. package/dist/lib/src/functions_base.d.ts +0 -327
  252. package/dist/lib/src/functions_base.js +0 -38
  253. package/dist/lib/src/functions_base.js.map +0 -1
  254. package/dist/lib/src/functions_data.d.ts +0 -10
  255. package/dist/lib/src/functions_data.js +0 -19
  256. package/dist/lib/src/functions_data.js.map +0 -1
  257. package/dist/lib/src/request_process_function_base.d.ts +0 -39
  258. package/dist/lib/src/request_process_function_base.js +0 -80
  259. package/dist/lib/src/request_process_function_base.js.map +0 -1
  260. package/dist/lib/src/schedule_process_function_base.d.ts +0 -33
  261. package/dist/lib/src/schedule_process_function_base.js +0 -81
  262. package/dist/lib/src/schedule_process_function_base.js.map +0 -1
  263. package/dist/lib/src/sql_api_base.d.ts +0 -185
  264. package/dist/lib/src/sql_api_base.js +0 -94
  265. package/dist/lib/src/sql_api_base.js.map +0 -1
  266. package/dist/lib/utils.d.ts +0 -82
  267. package/dist/lib/utils.js +0 -142
  268. 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"}