@mathrunet/masamune 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +1 -1
- package/dist/functions/test.js +2 -2
- package/dist/functions/test.js.map +1 -1
- package/dist/functions.d.ts +2 -231
- package/dist/functions.js +2 -231
- 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 -21
- 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/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 -100
- 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/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/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,132 +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
|
-
const functions = __importStar(require("firebase-functions/v2"));
|
|
46
|
-
const api_1 = require("../lib/api");
|
|
47
|
-
/**
|
|
48
|
-
* After being redirected from [android_auth_code], you will get a refresh token to connect to Google's API.
|
|
49
|
-
* Please execute [android_auth_code] after registering the required information.
|
|
50
|
-
*
|
|
51
|
-
* [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
|
|
52
|
-
* 必要情報を登録した後[android_auth_code]を実行してください。
|
|
53
|
-
*
|
|
54
|
-
* @param process.env.PURCHASE_ANDROID_REDIRECTURI
|
|
55
|
-
* Describe the absolute URL where [android_token] exists.
|
|
56
|
-
* You will be redirected to this URL to obtain a refresh token.
|
|
57
|
-
*
|
|
58
|
-
* [android_token]が存在する絶対URLを記述します。
|
|
59
|
-
* このURLにリダイレクトされリフレッシュトークンを取得できます。
|
|
60
|
-
*
|
|
61
|
-
* @param process.env.PURCHASE_ANDROID_CLIENTID
|
|
62
|
-
* Google's OAuth 2.0 client ID.
|
|
63
|
-
* Create an OAuth consent screen from the URL below.
|
|
64
|
-
* https://console.cloud.google.com/apis/credentials/consent
|
|
65
|
-
* Then create an OAuth 2.0 client ID from the credentials.
|
|
66
|
-
* https://console.cloud.google.com/apis/credentials
|
|
67
|
-
*
|
|
68
|
-
* GoogleのOAuth2.0のクライアントID。
|
|
69
|
-
* 下記のURLからOAuthの同意画面を作成します。
|
|
70
|
-
* https://console.cloud.google.com/apis/credentials/consent
|
|
71
|
-
* その後、認証情報からOAuth 2.0 クライアントIDを作成します。
|
|
72
|
-
* https://console.cloud.google.com/apis/credentials
|
|
73
|
-
*
|
|
74
|
-
* @param process.env.PURCHASE_ANDROID_CLIENTSECRET
|
|
75
|
-
* Google's OAuth 2.0 client secret.
|
|
76
|
-
* Create an OAuth consent screen from the URL below.
|
|
77
|
-
* https://console.cloud.google.com/apis/credentials/consent
|
|
78
|
-
* Then create an OAuth 2.0 client ID from the credentials.
|
|
79
|
-
* https://console.cloud.google.com/apis/credentials
|
|
80
|
-
*
|
|
81
|
-
* GoogleのOAuth2.0のクライアントシークレット。
|
|
82
|
-
* 下記のURLからOAuthの同意画面を作成します。
|
|
83
|
-
* https://console.cloud.google.com/apis/credentials/consent
|
|
84
|
-
* その後、認証情報からOAuth 2.0 クライアントIDを作成します。
|
|
85
|
-
* https://console.cloud.google.com/apis/credentials
|
|
86
|
-
*/
|
|
87
|
-
module.exports = (regions, options, data) => {
|
|
88
|
-
var _a, _b;
|
|
89
|
-
return functions.https.onRequest({
|
|
90
|
-
region: (_a = options.region) !== null && _a !== void 0 ? _a : regions,
|
|
91
|
-
timeoutSeconds: options.timeoutSeconds,
|
|
92
|
-
memory: options.memory,
|
|
93
|
-
minInstances: options.minInstances,
|
|
94
|
-
concurrency: options.concurrency,
|
|
95
|
-
maxInstances: options.maxInstances,
|
|
96
|
-
serviceAccount: (_b = options.serviceAccount) !== null && _b !== void 0 ? _b : undefined,
|
|
97
|
-
}, (req, res) => __awaiter(void 0, void 0, void 0, function* () {
|
|
98
|
-
try {
|
|
99
|
-
const redirectUri = process.env.PURCHASE_ANDROID_REDIRECTURI;
|
|
100
|
-
const clientId = process.env.PURCHASE_ANDROID_CLIENTID;
|
|
101
|
-
const clientSecret = process.env.PURCHASE_ANDROID_CLIENTSECRET;
|
|
102
|
-
if (!req.query.code || !clientId || !clientSecret || !redirectUri) {
|
|
103
|
-
throw new functions.https.HttpsError("invalid-argument", "Query parameter is invalid.");
|
|
104
|
-
}
|
|
105
|
-
const resp = yield api_1.Api.post("https://accounts.google.com/o/oauth2/token", {
|
|
106
|
-
timeout: 30 * 1000,
|
|
107
|
-
data: {
|
|
108
|
-
"grant_type": "authorization_code",
|
|
109
|
-
"client_id": clientId,
|
|
110
|
-
"client_secret": clientSecret,
|
|
111
|
-
"redirect_uri": redirectUri,
|
|
112
|
-
"access_type": "offline",
|
|
113
|
-
"code": req.query.code,
|
|
114
|
-
},
|
|
115
|
-
});
|
|
116
|
-
if (!resp) {
|
|
117
|
-
throw new functions.https.HttpsError("data-loss", "Cannot get access token.");
|
|
118
|
-
}
|
|
119
|
-
const json = (yield resp.json());
|
|
120
|
-
if (json === null) {
|
|
121
|
-
throw new functions.https.HttpsError("data-loss", "Cannot get access token.");
|
|
122
|
-
}
|
|
123
|
-
console.log(json);
|
|
124
|
-
res.send(`RefreshToken:${json["refresh_token"]}`);
|
|
125
|
-
}
|
|
126
|
-
catch (err) {
|
|
127
|
-
console.error(err);
|
|
128
|
-
res.end();
|
|
129
|
-
}
|
|
130
|
-
}));
|
|
131
|
-
};
|
|
132
|
-
//# sourceMappingURL=android_token.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"android_token.js","sourceRoot":"","sources":["../../src/functions/android_token.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;A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AAM,EAAE,GAAG,CAAC,KAAK,CAAC,IAAI;iBACzB;aACJ,CAAC,CAAC;YACH,IAAI,CAAC,IAAI,EAAE,CAAC;gBACR,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,0BAA0B,CAAC,CAAC;YAClF,CAAC;YACD,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAA2B,CAAC;YAC3D,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;gBAChB,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,0BAA0B,CAAC,CAAC;YAClF,CAAC;YACD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAClB,GAAG,CAAC,IAAI,CAAC,gBAAgB,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QACtD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,GAAG,CAAC,GAAG,EAAE,CAAC;QACd,CAAC;IACL,CAAC,CAAA,CACJ,CAAA;CAAA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,222 +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
|
-
const functions = __importStar(require("firebase-functions/v2"));
|
|
46
|
-
const firestore_1 = require("@google-cloud/firestore");
|
|
47
|
-
const default_firestore_model_field_value_converter_1 = require("../lib/model_field_value/default_firestore_model_field_value_converter");
|
|
48
|
-
/**
|
|
49
|
-
* A function to enable the use of external Firestore Collection Models.
|
|
50
|
-
*
|
|
51
|
-
* 外部のFirestoreのCollectionModelを利用できるようにするためのFunction。
|
|
52
|
-
*
|
|
53
|
-
* @param {string} process.env.FIRESTORE_SERVICE_ACCOUNT
|
|
54
|
-
* Service account JSON.
|
|
55
|
-
*
|
|
56
|
-
* サービスアカウントJSON。
|
|
57
|
-
*
|
|
58
|
-
* @param {string} path
|
|
59
|
-
* The path of the collection.
|
|
60
|
-
*
|
|
61
|
-
* コレクションのパス。
|
|
62
|
-
*
|
|
63
|
-
* @param {string} method
|
|
64
|
-
* The method name.
|
|
65
|
-
*
|
|
66
|
-
* メソッド名。
|
|
67
|
-
*
|
|
68
|
-
* @param {{ [key: string]: { [key: string]: any } }} data
|
|
69
|
-
* Data to be saved.
|
|
70
|
-
*
|
|
71
|
-
* 保存をするためのデータ。
|
|
72
|
-
*
|
|
73
|
-
* @param {string} databaseId
|
|
74
|
-
* The database ID.
|
|
75
|
-
*
|
|
76
|
-
* データベースID。
|
|
77
|
-
*/
|
|
78
|
-
module.exports = (regions, options, data) => {
|
|
79
|
-
var _a, _b, _c, _d;
|
|
80
|
-
return functions.https.onCall({
|
|
81
|
-
region: (_a = options.region) !== null && _a !== void 0 ? _a : regions,
|
|
82
|
-
timeoutSeconds: options.timeoutSeconds,
|
|
83
|
-
memory: options.memory,
|
|
84
|
-
minInstances: options.minInstances,
|
|
85
|
-
concurrency: options.concurrency,
|
|
86
|
-
maxInstances: options.maxInstances,
|
|
87
|
-
serviceAccount: (_b = options === null || options === void 0 ? void 0 : options.serviceAccount) !== null && _b !== void 0 ? _b : undefined,
|
|
88
|
-
enforceAppCheck: (_c = options.enforceAppCheck) !== null && _c !== void 0 ? _c : undefined,
|
|
89
|
-
consumeAppCheckToken: (_d = options.consumeAppCheckToken) !== null && _d !== void 0 ? _d : undefined,
|
|
90
|
-
}, (query) => __awaiter(void 0, void 0, void 0, function* () {
|
|
91
|
-
var _a;
|
|
92
|
-
try {
|
|
93
|
-
// クエリパラメータから必要な情報を取得
|
|
94
|
-
const databaseId = query.data.databaseId;
|
|
95
|
-
// 環境変数からサービスアカウントJSONを取得
|
|
96
|
-
let serviceAccount;
|
|
97
|
-
try {
|
|
98
|
-
const serviceAccountJson = (_a = process.env.FIRESTORE_SERVICE_ACCOUNT) !== null && _a !== void 0 ? _a : process.env.SERVICE_ACCOUNT;
|
|
99
|
-
if (!serviceAccountJson) {
|
|
100
|
-
throw new functions.https.HttpsError("failed-precondition", "Service account JSON not found in environment variable: FIRESTORE_SERVICE_ACCOUNT");
|
|
101
|
-
}
|
|
102
|
-
serviceAccount = JSON.parse(serviceAccountJson);
|
|
103
|
-
// サービスアカウントの必須フィールドを検証
|
|
104
|
-
if (!serviceAccount.project_id) {
|
|
105
|
-
throw new functions.https.HttpsError("invalid-argument", "Service account JSON is missing 'project_id' field");
|
|
106
|
-
}
|
|
107
|
-
if (!serviceAccount.client_email) {
|
|
108
|
-
throw new functions.https.HttpsError("invalid-argument", "Service account JSON is missing 'client_email' field");
|
|
109
|
-
}
|
|
110
|
-
if (!serviceAccount.private_key) {
|
|
111
|
-
throw new functions.https.HttpsError("invalid-argument", "Service account JSON is missing 'private_key' field");
|
|
112
|
-
}
|
|
113
|
-
console.log(`Using service account for project: ${serviceAccount.project_id}`);
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
if (error instanceof functions.https.HttpsError) {
|
|
117
|
-
throw error;
|
|
118
|
-
}
|
|
119
|
-
throw new functions.https.HttpsError("invalid-argument", `Invalid service account JSON in environment variable: FIRESTORE_SERVICE_ACCOUNT`);
|
|
120
|
-
}
|
|
121
|
-
// Firestoreインスタンスを作成
|
|
122
|
-
// データベースIDが指定されていない場合は "(default)" を使用
|
|
123
|
-
const finalDatabaseId = databaseId || "(default)";
|
|
124
|
-
console.log(`Creating Firestore instance with projectId: ${serviceAccount.project_id}, databaseId: ${finalDatabaseId}`);
|
|
125
|
-
const firestoreInstance = new firestore_1.Firestore({
|
|
126
|
-
projectId: serviceAccount.project_id,
|
|
127
|
-
databaseId: finalDatabaseId,
|
|
128
|
-
credentials: {
|
|
129
|
-
client_email: serviceAccount.client_email,
|
|
130
|
-
private_key: serviceAccount.private_key,
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
// クエリパラメータから必要な情報を取得
|
|
134
|
-
const path = query.data.path;
|
|
135
|
-
const method = query.data.method;
|
|
136
|
-
const collectionJson = query.data.data;
|
|
137
|
-
if (!method) {
|
|
138
|
-
throw new functions.https.HttpsError("invalid-argument", "No method specified.");
|
|
139
|
-
}
|
|
140
|
-
if (!path) {
|
|
141
|
-
throw new functions.https.HttpsError("invalid-argument", "No path specified.");
|
|
142
|
-
}
|
|
143
|
-
// メソッドに応じて処理を実行
|
|
144
|
-
switch (method) {
|
|
145
|
-
case "get": {
|
|
146
|
-
console.log(`Attempting to get collection at path: ${path}`);
|
|
147
|
-
try {
|
|
148
|
-
const col = yield firestoreInstance.collection(path).get();
|
|
149
|
-
const data = {};
|
|
150
|
-
for (const doc of col.docs) {
|
|
151
|
-
if (doc.exists) {
|
|
152
|
-
data[doc.id] = default_firestore_model_field_value_converter_1.FirestoreModelFieldValueConverterUtils.convertFrom({ data: doc.data(), firestoreInstance });
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
console.log(`Successfully retrieved ${col.size} documents from ${path}`);
|
|
156
|
-
return {
|
|
157
|
-
status: 200,
|
|
158
|
-
data: JSON.stringify(data),
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
catch (error) {
|
|
162
|
-
console.error(`Error getting collection at ${path}:`, error);
|
|
163
|
-
throw new functions.https.HttpsError("not-found", `Failed to get collection at ${path}: ${error.message}`);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
case "put":
|
|
167
|
-
case "post": {
|
|
168
|
-
if (!collectionJson) {
|
|
169
|
-
throw new functions.https.HttpsError("invalid-argument", "No data specified for set operation.");
|
|
170
|
-
}
|
|
171
|
-
const collectionData = JSON.parse(collectionJson);
|
|
172
|
-
if (!collectionData) {
|
|
173
|
-
throw new functions.https.HttpsError("invalid-argument", "No data specified for set operation.");
|
|
174
|
-
}
|
|
175
|
-
console.log(`Attempting to set documents in collection at path: ${path} with data: ${JSON.stringify(collectionData)}`);
|
|
176
|
-
try {
|
|
177
|
-
// NullはFieldValue.delete()に変換される
|
|
178
|
-
for (const docId in collectionData) {
|
|
179
|
-
collectionData[docId] = default_firestore_model_field_value_converter_1.FirestoreModelFieldValueConverterUtils.convertTo({ data: collectionData[docId], firestoreInstance });
|
|
180
|
-
yield firestoreInstance.doc(path + "/" + docId).set(Object.assign(Object.assign({}, collectionData[docId]), { "@uid": docId, "@time": new Date() }), { merge: true });
|
|
181
|
-
}
|
|
182
|
-
console.log(`Successfully set ${Object.keys(collectionData).length} documents in ${path}`);
|
|
183
|
-
return {
|
|
184
|
-
status: 200,
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
catch (error) {
|
|
188
|
-
console.error(`Error setting documents in ${path}:`, error);
|
|
189
|
-
throw new functions.https.HttpsError("internal", `Failed to set documents in ${path}: ${error.message}`);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
case "delete": {
|
|
193
|
-
console.log(`Attempting to delete collection at path: ${path}`);
|
|
194
|
-
try {
|
|
195
|
-
const col = yield firestoreInstance.collection(path).get();
|
|
196
|
-
for (const doc of col.docs) {
|
|
197
|
-
yield doc.ref.delete();
|
|
198
|
-
}
|
|
199
|
-
console.log(`Successfully deleted ${col.size} documents from ${path}`);
|
|
200
|
-
return {
|
|
201
|
-
status: 200,
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
catch (error) {
|
|
205
|
-
console.error(`Error deleting collection at ${path}:`, error);
|
|
206
|
-
throw new functions.https.HttpsError("internal", `Failed to delete collection at ${path}: ${error.message}`);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
default:
|
|
210
|
-
throw new functions.https.HttpsError("invalid-argument", `Unknown method: ${method}`);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
catch (err) {
|
|
214
|
-
console.error(err);
|
|
215
|
-
if (err instanceof functions.https.HttpsError) {
|
|
216
|
-
throw err;
|
|
217
|
-
}
|
|
218
|
-
throw new functions.https.HttpsError("internal", "An error occurred while processing the request.");
|
|
219
|
-
}
|
|
220
|
-
}));
|
|
221
|
-
};
|
|
222
|
-
//# sourceMappingURL=collection_model_firestore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collection_model_firestore.js","sourceRoot":"","sources":["../../src/functions/collection_model_firestore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AAEnD,uDAAoD;AACpD,0IAAgI;AAEhI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,OAAO,GAAG,CACb,OAAiB,EACjB,OAA6B,EAC7B,IAA4B,EAC9B,EAAE;;IAAC,OAAA,SAAS,CAAC,KAAK,CAAC,MAAM,CACvB;QACI,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,OAAO;QACjC,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,cAAc,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,SAAS;QACpD,eAAe,EAAE,MAAA,OAAO,CAAC,eAAe,mCAAI,SAAS;QACrD,oBAAoB,EAAE,MAAA,OAAO,CAAC,oBAAoB,mCAAI,SAAS;KAClE,EACD,CAAO,KAAK,EAAE,EAAE;;QACZ,IAAI,CAAC;YACD,qBAAqB;YACrB,MAAM,UAAU,GAAG,KAAK,C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IAAI,EAAE,CAAC,CAAC;wBACvE,OAAO;4BACH,MAAM,EAAE,GAAG;yBACd,CAAC;oBACN,CAAC;oBAAC,OAAO,KAAU,EAAE,CAAC;wBAClB,OAAO,CAAC,KAAK,CAAC,gCAAgC,IAAI,GAAG,EAAE,KAAK,CAAC,CAAC;wBAC9D,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAChC,UAAU,EACV,kCAAkC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAC7D,CAAC;oBACN,CAAC;gBACL,CAAC;gBACD;oBACI,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,kBAAkB,EAAE,mBAAmB,MAAM,EAAE,CAAC,CAAC;YAC9F,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,IAAI,GAAG,YAAY,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;gBAC5C,MAAM,GAAG,CAAC;YACd,CAAC;YACD,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,iDAAiD,CAAC,CAAC;QACxG,CAAC;IACL,CAAC,CAAA,CACJ,CAAA;CAAA,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,172 +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
|
-
const functions = __importStar(require("firebase-functions/v2"));
|
|
46
|
-
const verifier = __importStar(require("../lib/functions/verify_android"));
|
|
47
|
-
const updater = __importStar(require("../lib/functions/update_wallet"));
|
|
48
|
-
const firebase_loader_1 = require("../lib/src/firebase_loader");
|
|
49
|
-
/**
|
|
50
|
-
* Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value].
|
|
51
|
-
*
|
|
52
|
-
* 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。
|
|
53
|
-
*
|
|
54
|
-
* @param process.env.PURCHASE_ANDROID_SERVICEACCOUNT_EMAIL
|
|
55
|
-
* The email address of your Google service account.
|
|
56
|
-
* Create an OAuth consent screen from the URL below.
|
|
57
|
-
* https://console.cloud.google.com/apis/credentials/consent
|
|
58
|
-
* It is then created from the service account.
|
|
59
|
-
* https://console.cloud.google.com/iam-admin/serviceaccounts
|
|
60
|
-
*
|
|
61
|
-
* Googleのサービスアカウントのメールアドレス。
|
|
62
|
-
* 下記のURLからOAuthの同意画面を作成します。
|
|
63
|
-
* https://console.cloud.google.com/apis/credentials/consent
|
|
64
|
-
* その後、サービスアカウントから作成します。
|
|
65
|
-
* https://console.cloud.google.com/iam-admin/serviceaccounts
|
|
66
|
-
*
|
|
67
|
-
* @param process.env.PURCHASE_ANDROID_SERVICEACCOUNT_PRIVATE_KEY
|
|
68
|
-
* A private key for your Google service account.
|
|
69
|
-
* Create an OAuth consent screen from the URL below.
|
|
70
|
-
* https://console.cloud.google.com/apis/credentials/consent
|
|
71
|
-
* It is then created from the service account.
|
|
72
|
-
* https://console.cloud.google.com/iam-admin/serviceaccounts
|
|
73
|
-
* After creating a service account, create a key in Json format from the Key tab.
|
|
74
|
-
* The private key is described there.
|
|
75
|
-
*
|
|
76
|
-
* Googleのサービスアカウントのプライベートキー。
|
|
77
|
-
* 下記のURLからOAuthの同意画面を作成します。
|
|
78
|
-
* https://console.cloud.google.com/apis/credentials/consent
|
|
79
|
-
* その後、サービスアカウントから作成します。
|
|
80
|
-
* https://console.cloud.google.com/iam-admin/serviceaccounts
|
|
81
|
-
* サービスアカウント作成後、キーのタブからJson形式でキーを作成します。
|
|
82
|
-
* プライベートキーはそこに記述されています。
|
|
83
|
-
*
|
|
84
|
-
* @param path
|
|
85
|
-
* The path, including the key, of the field in the document that stores the in-app wallet information.
|
|
86
|
-
*
|
|
87
|
-
* アプリ内ウォレット情報を保存するドキュメント内のフィールドのキーを含めたパス。
|
|
88
|
-
*
|
|
89
|
-
* @param value
|
|
90
|
-
* Value of the amount to be added.
|
|
91
|
-
*
|
|
92
|
-
* 加算する金額の値。
|
|
93
|
-
*
|
|
94
|
-
* @param packageName
|
|
95
|
-
* Application package name.
|
|
96
|
-
*
|
|
97
|
-
* アプリケーションのパッケージ名。
|
|
98
|
-
*
|
|
99
|
-
* @param productId
|
|
100
|
-
* Item ID issued by Google Play.
|
|
101
|
-
*
|
|
102
|
-
* GooglePlayで発行されたアイテムID。
|
|
103
|
-
*
|
|
104
|
-
* @param purchaseToken
|
|
105
|
-
* The purchase token issued at the time of purchase.
|
|
106
|
-
*
|
|
107
|
-
* 購入したときに発行された購入トークン。
|
|
108
|
-
*/
|
|
109
|
-
module.exports = (regions, options, data) => {
|
|
110
|
-
var _a, _b, _c, _d;
|
|
111
|
-
return functions.https.onCall({
|
|
112
|
-
region: (_a = options.region) !== null && _a !== void 0 ? _a : regions,
|
|
113
|
-
timeoutSeconds: options.timeoutSeconds,
|
|
114
|
-
memory: options.memory,
|
|
115
|
-
minInstances: options.minInstances,
|
|
116
|
-
concurrency: options.concurrency,
|
|
117
|
-
maxInstances: options.maxInstances,
|
|
118
|
-
serviceAccount: (_b = options === null || options === void 0 ? void 0 : options.serviceAccount) !== null && _b !== void 0 ? _b : undefined,
|
|
119
|
-
enforceAppCheck: (_c = options.enforceAppCheck) !== null && _c !== void 0 ? _c : undefined,
|
|
120
|
-
consumeAppCheckToken: (_d = options.consumeAppCheckToken) !== null && _d !== void 0 ? _d : undefined,
|
|
121
|
-
}, (query) => __awaiter(void 0, void 0, void 0, function* () {
|
|
122
|
-
var _a, _b, _c;
|
|
123
|
-
try {
|
|
124
|
-
/* ==== Android検証ここから ==== */
|
|
125
|
-
const res = yield verifier.verifyAndroid({
|
|
126
|
-
type: "products",
|
|
127
|
-
serviceAccountEmail: (_a = process.env.PURCHASE_ANDROID_SERVICEACCOUNT_EMAIL) !== null && _a !== void 0 ? _a : "",
|
|
128
|
-
serviceAccountPrivateKey: (_b = process.env.PURCHASE_ANDROID_SERVICEACCOUNT_PRIVATE_KEY) !== null && _b !== void 0 ? _b : "",
|
|
129
|
-
packageName: query.data.packageName,
|
|
130
|
-
productId: query.data.productId,
|
|
131
|
-
purchaseToken: query.data.purchaseToken,
|
|
132
|
-
});
|
|
133
|
-
if (res["purchaseState"] !== 0) {
|
|
134
|
-
throw new functions.https.HttpsError("unauthenticated", "Illegal receipt.");
|
|
135
|
-
}
|
|
136
|
-
/* ==== ここまでAndroid検証 ==== */
|
|
137
|
-
if (!query.data.path || !query.data.value) {
|
|
138
|
-
throw new functions.https.HttpsError("invalid-argument", `The required parameters are not set. path: ${query.data.path} value: ${query.data.value}`);
|
|
139
|
-
return res;
|
|
140
|
-
}
|
|
141
|
-
/* ==== Firestoreの更新ここから ==== */
|
|
142
|
-
let error = null;
|
|
143
|
-
const firestoreDatabaseIds = (_c = options.firestoreDatabaseIds) !== null && _c !== void 0 ? _c : [""];
|
|
144
|
-
for (const databaseId of firestoreDatabaseIds) {
|
|
145
|
-
try {
|
|
146
|
-
const firestoreInstance = (0, firebase_loader_1.firestoreLoader)(databaseId);
|
|
147
|
-
yield updater.updateWallet({
|
|
148
|
-
targetDocumentFieldPath: query.data.path,
|
|
149
|
-
value: query.data.value,
|
|
150
|
-
transactionId: query.data.purchaseToken,
|
|
151
|
-
transactionData: res,
|
|
152
|
-
firestoreInstance: firestoreInstance,
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
catch (err) {
|
|
156
|
-
error = err;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
if (error) {
|
|
160
|
-
console.error(error);
|
|
161
|
-
throw new functions.https.HttpsError("unknown", "Unknown error.");
|
|
162
|
-
}
|
|
163
|
-
/* ==== ここまでFirestoreの更新 ==== */
|
|
164
|
-
return res;
|
|
165
|
-
}
|
|
166
|
-
catch (err) {
|
|
167
|
-
console.error(err);
|
|
168
|
-
throw err;
|
|
169
|
-
}
|
|
170
|
-
}));
|
|
171
|
-
};
|
|
172
|
-
//# sourceMappingURL=consumable_verify_android.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consumable_verify_android.js","sourceRoot":"","sources":["../../src/functions/consumable_verify_android.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,0EAA4D;AAC5D,wEAA0D;AAE1D,gEAA6D;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAM,CAAC,OAAO,GAAG,CACb,OAAiB,EACjB,OAA6B,EAC7B,IAA4B,EAC9B,EAAE;;IAAC,OAAA,SAAS,CAAC,KAAK,CAAC,MAAM,CACvB;QACI,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,OAAO;QACjC,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,cAAc,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,mCAAI,SAAS;QACpD,eAAe,EAAE,MAAA,OAAO,CAAC,eAAe,mCAAI,SAAS;QACrD,oBAAoB,EAAE,MAAA,OAAO,CAAC,oBAAoB,mCAAI,SAAS;KAClE,EACD,CAAO,KAAK,EAAE,EAAE;;QACZ,IAAI,CAAC;YACD,6BAA6B;YAC7B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