@mathrunet/masamune 1.10.3 → 2.0.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 +18 -0
- package/LICENSE +19 -22
- package/dist/functions/agora_cloud_recording.js +48 -38
- package/dist/functions/agora_cloud_recording.js.map +1 -1
- package/dist/functions/agora_token.js +40 -30
- package/dist/functions/agora_token.js.map +1 -1
- package/dist/functions/android_auth_code.js +25 -15
- package/dist/functions/android_auth_code.js.map +1 -1
- package/dist/functions/android_token.js +46 -34
- package/dist/functions/android_token.js.map +1 -1
- package/dist/functions/consumable_verify_android.js +45 -35
- package/dist/functions/consumable_verify_android.js.map +1 -1
- package/dist/functions/consumable_verify_ios.js +39 -29
- package/dist/functions/consumable_verify_ios.js.map +1 -1
- package/dist/functions/geocoding.js +29 -19
- package/dist/functions/geocoding.js.map +1 -1
- package/dist/functions/gmail.js +36 -26
- package/dist/functions/gmail.js.map +1 -1
- package/dist/functions/nonconsumable_verify_android.js +44 -34
- package/dist/functions/nonconsumable_verify_android.js.map +1 -1
- package/dist/functions/nonconsumable_verify_ios.js +38 -28
- package/dist/functions/nonconsumable_verify_ios.js.map +1 -1
- package/dist/functions/openai_chat_gpt.js +39 -29
- package/dist/functions/openai_chat_gpt.js.map +1 -1
- package/dist/functions/purchase_webhook_android.js +26 -18
- package/dist/functions/purchase_webhook_android.js.map +1 -1
- package/dist/functions/purchase_webhook_ios.js +92 -78
- package/dist/functions/purchase_webhook_ios.js.map +1 -1
- package/dist/functions/scheduler.js +15 -9
- package/dist/functions/scheduler.js.map +1 -1
- package/dist/functions/send_grid.js +35 -25
- package/dist/functions/send_grid.js.map +1 -1
- package/dist/functions/send_notification.js +37 -24
- package/dist/functions/send_notification.js.map +1 -1
- package/dist/functions/stripe.js +866 -858
- package/dist/functions/stripe.js.map +1 -1
- package/dist/functions/stripe_webhook.js +370 -363
- package/dist/functions/stripe_webhook.js.map +1 -1
- package/dist/functions/stripe_webhook_connect.js +72 -63
- package/dist/functions/stripe_webhook_connect.js.map +1 -1
- package/dist/functions/stripe_webhook_secure.js +72 -63
- package/dist/functions/stripe_webhook_secure.js.map +1 -1
- package/dist/functions/subscription_verify_android.js +61 -52
- package/dist/functions/subscription_verify_android.js.map +1 -1
- package/dist/functions/subscription_verify_ios.js +59 -50
- package/dist/functions/subscription_verify_ios.js.map +1 -1
- package/dist/functions.d.ts +22 -68
- package/dist/functions.js +22 -22
- package/dist/functions.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/call_process_function_base.d.ts +2 -15
- package/dist/lib/call_process_function_base.js +13 -13
- package/dist/lib/call_process_function_base.js.map +1 -1
- package/dist/lib/functions_base.d.ts +97 -9
- package/dist/lib/functions_base.js +10 -7
- package/dist/lib/functions_base.js.map +1 -1
- package/dist/lib/functions_data.d.ts +2 -36
- package/dist/lib/functions_data.js +2 -29
- package/dist/lib/functions_data.js.map +1 -1
- package/dist/lib/gmail.d.ts +2 -2
- package/dist/lib/gmail.js +4 -29
- package/dist/lib/gmail.js.map +1 -1
- package/dist/lib/request_process_function_base.d.ts +4 -16
- package/dist/lib/request_process_function_base.js +13 -13
- package/dist/lib/request_process_function_base.js.map +1 -1
- package/dist/lib/schedule_process_function_base.d.ts +13 -11
- package/dist/lib/schedule_process_function_base.js +15 -9
- package/dist/lib/schedule_process_function_base.js.map +1 -1
- package/dist/lib/send_grid.d.ts +1 -1
- package/dist/lib/send_grid.js +3 -27
- package/dist/lib/send_grid.js.map +1 -1
- package/dist/lib/send_notification.js +1 -1
- package/dist/lib/send_notification.js.map +1 -1
- package/dist/lib/verify_android.js +1 -1
- package/dist/lib/verify_android.js.map +1 -1
- package/dist/lib/verify_ios.js +1 -1
- package/dist/lib/verify_ios.js.map +1 -1
- package/package.json +2 -2
|
@@ -32,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
const functions = __importStar(require("firebase-functions"));
|
|
35
|
+
const functions = __importStar(require("firebase-functions/v2"));
|
|
36
36
|
const verifier = __importStar(require("../lib/verify_ios"));
|
|
37
37
|
const subscriber = __importStar(require("../lib/update_subscription"));
|
|
38
38
|
/**
|
|
@@ -40,12 +40,12 @@ const subscriber = __importStar(require("../lib/update_subscription"));
|
|
|
40
40
|
*
|
|
41
41
|
* サブスクリプションの検証とデータの追加を行います。
|
|
42
42
|
*
|
|
43
|
-
* @param
|
|
43
|
+
* @param process.env.PURCHASE_IOS_SHAREDSECRET
|
|
44
44
|
* SharedSecret for AppStore, obtained from [Apps]->[App Info]->[Shared Secret for App] in the AppStore.
|
|
45
45
|
*
|
|
46
46
|
* AppStoreのSharedSecret。AppStoreの[アプリ]->[App情報]->[App用共有シークレット]から取得します。
|
|
47
47
|
*
|
|
48
|
-
* @param
|
|
48
|
+
* @param process.env.PURCHASE_SUBSCRIPTIONPATH
|
|
49
49
|
* Describes the path to the collection of subscriptions.
|
|
50
50
|
*
|
|
51
51
|
* サブスクリプションのコレクションのパスを記述します。
|
|
@@ -75,54 +75,63 @@ const subscriber = __importStar(require("../lib/update_subscription"));
|
|
|
75
75
|
*
|
|
76
76
|
* サブスクリプションを購入したユーザーのID。
|
|
77
77
|
*/
|
|
78
|
-
module.exports = (regions,
|
|
78
|
+
module.exports = (regions, options, data) => {
|
|
79
79
|
var _a;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
return functions.https.onCall({
|
|
81
|
+
region: regions,
|
|
82
|
+
timeoutSeconds: options.timeoutSeconds,
|
|
83
|
+
memory: options.memory,
|
|
84
|
+
minInstances: options.minInstances,
|
|
85
|
+
concurrency: options.concurrency,
|
|
86
|
+
maxInstances: (_a = options.maxInstances) !== null && _a !== void 0 ? _a : undefined,
|
|
87
|
+
}, (query) => __awaiter(void 0, void 0, void 0, function* () {
|
|
88
|
+
var _b, _c;
|
|
89
|
+
try {
|
|
90
|
+
/* ==== IOS検証ここから ==== */
|
|
91
|
+
if (!query.data.userId) {
|
|
92
|
+
throw new functions.https.HttpsError("invalid-argument", "User is empty.");
|
|
93
|
+
}
|
|
94
|
+
const res = yield verifier.verifyIOS({
|
|
95
|
+
receiptData: query.data.receiptData,
|
|
96
|
+
password: (_b = process.env.PURCHASE_IOS_SHAREDSECRET) !== null && _b !== void 0 ? _b : "",
|
|
97
|
+
});
|
|
98
|
+
const status = res["status"];
|
|
99
|
+
if (status !== 0) {
|
|
100
|
+
throw new functions.https.HttpsError("not-found", "Illegal receipt.");
|
|
101
|
+
}
|
|
102
|
+
const time = new Date().getTime();
|
|
103
|
+
const info = res["latest_receipt_info"];
|
|
104
|
+
const startTimeMillis = parseInt(info[info.length - 1]["purchase_date_ms"]);
|
|
105
|
+
const expiryTimeMillis = parseInt(info[info.length - 1]["expires_date_ms"]);
|
|
106
|
+
if (res === null || isNaN(startTimeMillis) || isNaN(expiryTimeMillis) || startTimeMillis <= 0) {
|
|
107
|
+
throw new functions.https.HttpsError("not-found", "Illegal receipt.");
|
|
108
|
+
}
|
|
109
|
+
if (expiryTimeMillis <= time) {
|
|
110
|
+
info[info.length - 1]["expired"] = true;
|
|
111
|
+
}
|
|
112
|
+
/* ==== ここまでIOS検証 ==== */
|
|
113
|
+
/* ==== Firestoreの更新ここから ==== */
|
|
114
|
+
yield subscriber.updateSubscription({
|
|
115
|
+
targetCollectionPath: (_c = query.data.path) !== null && _c !== void 0 ? _c : process.env.PURCHASE_SUBSCRIPTIONPATH,
|
|
116
|
+
targetDocumentId: info[info.length - 1]["original_transaction_id"],
|
|
117
|
+
data: info[info.length - 1],
|
|
118
|
+
additionalData: query.data,
|
|
119
|
+
userId: query.data.userId,
|
|
120
|
+
platform: "IOS",
|
|
121
|
+
orderId: info[info.length - 1]["original_transaction_id"],
|
|
122
|
+
productId: query.data.productId,
|
|
123
|
+
purchaseId: query.data.purchaseId,
|
|
124
|
+
packageName: res["receipt"]["bundle_id"],
|
|
125
|
+
token: query.data.receiptData,
|
|
126
|
+
expiryDate: expiryTimeMillis,
|
|
127
|
+
});
|
|
128
|
+
/* ==== ここまでFirestoreの更新 ==== */
|
|
129
|
+
return res;
|
|
84
130
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
password: config.ios.shared_secret,
|
|
89
|
-
});
|
|
90
|
-
const status = res["status"];
|
|
91
|
-
if (status !== 0) {
|
|
92
|
-
throw new functions.https.HttpsError("not-found", "Illegal receipt.");
|
|
131
|
+
catch (err) {
|
|
132
|
+
console.error(err);
|
|
133
|
+
throw new functions.https.HttpsError("unknown", "Unknown error.");
|
|
93
134
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const startTimeMillis = parseInt(info[info.length - 1]["purchase_date_ms"]);
|
|
97
|
-
const expiryTimeMillis = parseInt(info[info.length - 1]["expires_date_ms"]);
|
|
98
|
-
if (res === null || isNaN(startTimeMillis) || isNaN(expiryTimeMillis) || startTimeMillis <= 0) {
|
|
99
|
-
throw new functions.https.HttpsError("not-found", "Illegal receipt.");
|
|
100
|
-
}
|
|
101
|
-
if (expiryTimeMillis <= time) {
|
|
102
|
-
info[info.length - 1]["expired"] = true;
|
|
103
|
-
}
|
|
104
|
-
/* ==== ここまでIOS検証 ==== */
|
|
105
|
-
/* ==== Firestoreの更新ここから ==== */
|
|
106
|
-
yield subscriber.updateSubscription({
|
|
107
|
-
targetCollectionPath: (_a = query.path) !== null && _a !== void 0 ? _a : config.subscription_path,
|
|
108
|
-
targetDocumentId: info[info.length - 1]["original_transaction_id"],
|
|
109
|
-
data: info[info.length - 1],
|
|
110
|
-
additionalData: query.data,
|
|
111
|
-
userId: query.userId,
|
|
112
|
-
platform: "IOS",
|
|
113
|
-
orderId: info[info.length - 1]["original_transaction_id"],
|
|
114
|
-
productId: query.productId,
|
|
115
|
-
purchaseId: query.purchaseId,
|
|
116
|
-
packageName: res["receipt"]["bundle_id"],
|
|
117
|
-
token: query.receiptData,
|
|
118
|
-
expiryDate: expiryTimeMillis,
|
|
119
|
-
});
|
|
120
|
-
/* ==== ここまでFirestoreの更新 ==== */
|
|
121
|
-
return res;
|
|
122
|
-
}
|
|
123
|
-
catch (err) {
|
|
124
|
-
console.error(err);
|
|
125
|
-
throw new functions.https.HttpsError("unknown", "Unknown error.");
|
|
126
|
-
}
|
|
127
|
-
}));
|
|
135
|
+
}));
|
|
136
|
+
};
|
|
128
137
|
//# sourceMappingURL=subscription_verify_ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription_verify_ios.js","sourceRoot":"","sources":["../../src/functions/subscription_verify_ios.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"subscription_verify_ios.js","sourceRoot":"","sources":["../../src/functions/subscription_verify_ios.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAmD;AACnD,4DAA8C;AAC9C,uEAAyD;AAGzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,OAAO,GAAG,CACb,OAAiB,EACjB,OAAyB,EACzB,IAA+B,EACjC,EAAE;;IAAC,OAAA,SAAS,CAAC,KAAK,CAAC,MAAM,CACvB;QACI,MAAM,EAAE,OAAO;QACf,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,MAAA,OAAO,CAAC,YAAY,mCAAI,SAAS;KAClD,EACD,CAAO,KAAK,EAAE,EAAE;;QACZ,IAAI;YACA,yBAAyB;YACzB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE;gBACpB,MAAM,IAAI,SAAS,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;gBAChC,oBAAoB,EAAE,MAAA,KAAK,CAAC,IAAI,CAAC,IAAI,mCAAI,OAAO,CAAC,GAAG,CAAC,yBAAyB;gBAC9E,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,yBAAyB,CAAC;gBAClE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;gBAC3B,cAAc,EAAE,KAAK,CAAC,IAAI;gBAC1B,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM;gBACzB,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,yBAAyB,CAAC;gBACzD,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS;gBAC/B,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU;gBACjC,WAAW,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC;gBACxC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW;gBAC7B,UAAU,EAAE,gBAAgB;aAC/B,CAAC,CAAC;YACH,gCAAgC;YAChC,OAAO,GAAG,CAAC;SACd;QAAC,OAAO,GAAG,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;SACrE;IACL,CAAC,CAAA,CACJ,CAAA;CAAA,CAAC"}
|
package/dist/functions.d.ts
CHANGED
|
@@ -10,42 +10,31 @@ export declare const Functions: {
|
|
|
10
10
|
*
|
|
11
11
|
* GeocodingAPIで緯度経度を取得します。
|
|
12
12
|
*/
|
|
13
|
-
readonly geocoding: (
|
|
14
|
-
timeoutSeconds?: number | undefined;
|
|
15
|
-
}) => data.FunctionsData;
|
|
13
|
+
readonly geocoding: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
16
14
|
/**
|
|
17
15
|
* Function for sending PUSH notifications.
|
|
18
16
|
*
|
|
19
17
|
* PUSH通知を送信するためのFunction。
|
|
20
18
|
*/
|
|
21
|
-
readonly sendNotification: (
|
|
22
|
-
timeoutSeconds?: number | undefined;
|
|
23
|
-
}) => data.FunctionsData;
|
|
19
|
+
readonly sendNotification: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
24
20
|
/**
|
|
25
21
|
* Function for periodic processing.
|
|
26
22
|
*
|
|
27
23
|
* 定期的に処理するためのFunction。
|
|
28
24
|
*/
|
|
29
|
-
readonly scheduler: (
|
|
30
|
-
schedule?: string | undefined;
|
|
31
|
-
timeoutSeconds?: number | undefined;
|
|
32
|
-
}) => data.FunctionsData;
|
|
25
|
+
readonly scheduler: (options?: data.SchedulerFunctionsOptions) => data.FunctionsData;
|
|
33
26
|
/**
|
|
34
27
|
* The text is generated using Open AI's GPT.
|
|
35
28
|
*
|
|
36
29
|
* Open AIのChat GPTを利用して文章を生成します。
|
|
37
30
|
*/
|
|
38
|
-
readonly openAIChatGPT: (
|
|
39
|
-
timeoutSeconds?: number | undefined;
|
|
40
|
-
}) => data.FunctionsData;
|
|
31
|
+
readonly openAIChatGPT: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
41
32
|
/**
|
|
42
33
|
* Obtain an Agora.io security token.
|
|
43
34
|
*
|
|
44
35
|
* Agora.ioのセキュリティトークンを取得します。
|
|
45
36
|
*/
|
|
46
|
-
readonly agoraToken: (
|
|
47
|
-
timeoutSeconds?: number | undefined;
|
|
48
|
-
}) => data.FunctionsData;
|
|
37
|
+
readonly agoraToken: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
49
38
|
/**
|
|
50
39
|
* Convert files generated by Agora.io's cloud recording into an easy-to-handle format from within the app.
|
|
51
40
|
*
|
|
@@ -55,9 +44,7 @@ export declare const Functions: {
|
|
|
55
44
|
*
|
|
56
45
|
* FirebaseStorageにファイルが保存されたタイミングで実行されます。
|
|
57
46
|
*/
|
|
58
|
-
readonly agoraCloudRecording: (
|
|
59
|
-
timeoutSeconds?: number | undefined;
|
|
60
|
-
}) => data.FunctionsData;
|
|
47
|
+
readonly agoraCloudRecording: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
61
48
|
/**
|
|
62
49
|
* Performs various Stripe processes.
|
|
63
50
|
*
|
|
@@ -67,9 +54,7 @@ export declare const Functions: {
|
|
|
67
54
|
*
|
|
68
55
|
* Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
|
|
69
56
|
*/
|
|
70
|
-
readonly stripe: (
|
|
71
|
-
timeoutSeconds?: number | undefined;
|
|
72
|
-
}) => data.FunctionsData;
|
|
57
|
+
readonly stripe: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
73
58
|
/**
|
|
74
59
|
* Receives and processes webhooks from Stripe.
|
|
75
60
|
*
|
|
@@ -83,9 +68,7 @@ export declare const Functions: {
|
|
|
83
68
|
*
|
|
84
69
|
* Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
|
|
85
70
|
*/
|
|
86
|
-
readonly stripeWebhook: (
|
|
87
|
-
timeoutSeconds?: number | undefined;
|
|
88
|
-
}) => data.FunctionsData;
|
|
71
|
+
readonly stripeWebhook: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
89
72
|
/**
|
|
90
73
|
* Receive and process webhooks for Stripe Connect.
|
|
91
74
|
*
|
|
@@ -103,9 +86,7 @@ export declare const Functions: {
|
|
|
103
86
|
*
|
|
104
87
|
* Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
|
|
105
88
|
*/
|
|
106
|
-
readonly stripeWebhookConnect: (
|
|
107
|
-
timeoutSeconds?: number | undefined;
|
|
108
|
-
}) => data.FunctionsData;
|
|
89
|
+
readonly stripeWebhookConnect: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
109
90
|
/**
|
|
110
91
|
* Webhook for proper redirection when 3D Secure authentication is required.
|
|
111
92
|
*
|
|
@@ -119,106 +100,79 @@ export declare const Functions: {
|
|
|
119
100
|
*
|
|
120
101
|
* [returnUrl]にこちらを設定してください。
|
|
121
102
|
*/
|
|
122
|
-
readonly stripeWebhookSecure: (
|
|
123
|
-
timeoutSeconds?: number | undefined;
|
|
124
|
-
}) => data.FunctionsData;
|
|
103
|
+
readonly stripeWebhookSecure: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
125
104
|
/**
|
|
126
105
|
* Send email via Gmail.
|
|
127
106
|
*
|
|
128
107
|
* Gmailでメールを送信します。
|
|
129
108
|
*/
|
|
130
|
-
readonly gmail: (
|
|
131
|
-
timeoutSeconds?: number | undefined;
|
|
132
|
-
}) => data.FunctionsData;
|
|
109
|
+
readonly gmail: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
133
110
|
/**
|
|
134
111
|
* Send mail through SendGrid.
|
|
135
112
|
*
|
|
136
113
|
* SendGridでメールを送信します。
|
|
137
114
|
*/
|
|
138
|
-
readonly sendGrid: (
|
|
139
|
-
timeoutSeconds?: number | undefined;
|
|
140
|
-
}) => data.FunctionsData;
|
|
115
|
+
readonly sendGrid: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
141
116
|
/**
|
|
142
117
|
* After being redirected from [android_auth_code], you will get a refresh token to connect to Google's API. Applications Library System Users Volumes bin cores dev etc home opt private sbin tmp usr var Execute [android_auth_code] after registering the required information.
|
|
143
118
|
*
|
|
144
119
|
* [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
|
|
145
120
|
* 必要情報を登録した後[android_auth_code]を実行してください。
|
|
146
121
|
*/
|
|
147
|
-
readonly androidAuthCode: (
|
|
148
|
-
timeoutSeconds?: number | undefined;
|
|
149
|
-
}) => data.FunctionsData;
|
|
122
|
+
readonly androidAuthCode: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
150
123
|
/**
|
|
151
124
|
* After being redirected from [android_auth_code], you will get a refresh token to connect to Google's API. Applications Library System Users Volumes bin cores dev etc home opt private sbin tmp usr var Execute [android_auth_code] after registering the required information.
|
|
152
125
|
*
|
|
153
126
|
* [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
|
|
154
127
|
* 必要情報を登録した後[android_auth_code]を実行してください。
|
|
155
128
|
*/
|
|
156
|
-
readonly androidToken: (
|
|
157
|
-
timeoutSeconds?: number | undefined;
|
|
158
|
-
}) => data.FunctionsData;
|
|
129
|
+
readonly androidToken: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
159
130
|
/**
|
|
160
131
|
* Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value].
|
|
161
132
|
*
|
|
162
133
|
* 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。
|
|
163
134
|
*/
|
|
164
|
-
readonly consumableVerifyAndroid: (
|
|
165
|
-
timeoutSeconds?: number | undefined;
|
|
166
|
-
}) => data.FunctionsData;
|
|
135
|
+
readonly consumableVerifyAndroid: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
167
136
|
/**
|
|
168
137
|
* Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value].
|
|
169
138
|
*
|
|
170
139
|
* 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。
|
|
171
140
|
*/
|
|
172
|
-
readonly consumableVerifyIOS: (
|
|
173
|
-
timeoutSeconds?: number | undefined;
|
|
174
|
-
}) => data.FunctionsData;
|
|
141
|
+
readonly consumableVerifyIOS: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
175
142
|
/**
|
|
176
143
|
* Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`.
|
|
177
144
|
*
|
|
178
145
|
* 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。
|
|
179
146
|
*/
|
|
180
|
-
readonly nonconsumableVerifyAndroid: (
|
|
181
|
-
timeoutSeconds?: number | undefined;
|
|
182
|
-
}) => data.FunctionsData;
|
|
147
|
+
readonly nonconsumableVerifyAndroid: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
183
148
|
/**
|
|
184
149
|
* Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`.
|
|
185
150
|
*
|
|
186
151
|
* 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。
|
|
187
152
|
*/
|
|
188
|
-
readonly nonconsumableVerifyIOS: (
|
|
189
|
-
timeoutSeconds?: number | undefined;
|
|
190
|
-
}) => data.FunctionsData;
|
|
153
|
+
readonly nonconsumableVerifyIOS: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
191
154
|
/**
|
|
192
155
|
* This is a webhook endpoint for Android. 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.
|
|
193
156
|
*
|
|
194
157
|
* Android用のWebhookのエンドポイントです。GCPのpub/subに`purchasing`のトピックを作成しプリンシパルに「google-play-developer-notifications@system.gserviceaccount.com」を設定することで通知を受け取ることができるようになります。
|
|
195
158
|
*/
|
|
196
|
-
readonly purchaseWebhookAndroid: (
|
|
197
|
-
topic?: string | undefined;
|
|
198
|
-
timeoutSeconds?: number | undefined;
|
|
199
|
-
}) => data.FunctionsData;
|
|
159
|
+
readonly purchaseWebhookAndroid: (options?: data.PubsubFunctionsOptions) => data.FunctionsData;
|
|
200
160
|
/**
|
|
201
161
|
* Webhook endpoint for IOS, which allows you to receive notifications by setting the endpoint in AppStoreConnect's [App]->[App Information]->[App Store Server Notification].
|
|
202
162
|
*
|
|
203
163
|
* IOS用のWebhookのエンドポイントです。AppStoreConnectの[App]->[App情報]->[App Storeサーバ通知]にエンドポイントを設定することで通知を受け取ることができるようになります。
|
|
204
164
|
*/
|
|
205
|
-
readonly purchaseWebhookIOS: (
|
|
206
|
-
timeoutSeconds?: number | undefined;
|
|
207
|
-
}) => data.FunctionsData;
|
|
165
|
+
readonly purchaseWebhookIOS: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
208
166
|
/**
|
|
209
167
|
* Verify subscriptions and add data.
|
|
210
168
|
*
|
|
211
169
|
* サブスクリプションの検証とデータの追加を行います。
|
|
212
170
|
*/
|
|
213
|
-
readonly subscriptionVerifyAndroid: (
|
|
214
|
-
timeoutSeconds?: number | undefined;
|
|
215
|
-
}) => data.FunctionsData;
|
|
171
|
+
readonly subscriptionVerifyAndroid: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
216
172
|
/**
|
|
217
173
|
* Verify subscriptions and add data.
|
|
218
174
|
*
|
|
219
175
|
* サブスクリプションの検証とデータの追加を行います。
|
|
220
176
|
*/
|
|
221
|
-
readonly subscriptionVerifyIOS: (
|
|
222
|
-
timeoutSeconds?: number | undefined;
|
|
223
|
-
}) => data.FunctionsData;
|
|
177
|
+
readonly subscriptionVerifyIOS: (options?: data.FunctionsOptions) => data.FunctionsData;
|
|
224
178
|
};
|
package/dist/functions.js
CHANGED
|
@@ -36,31 +36,31 @@ exports.Functions = {
|
|
|
36
36
|
*
|
|
37
37
|
* GeocodingAPIで緯度経度を取得します。
|
|
38
38
|
*/
|
|
39
|
-
geocoding: (
|
|
39
|
+
geocoding: (options = {}) => new data.FunctionsData({ id: "geocoding", func: require("./functions/geocoding"), options: options }),
|
|
40
40
|
/**
|
|
41
41
|
* Function for sending PUSH notifications.
|
|
42
42
|
*
|
|
43
43
|
* PUSH通知を送信するためのFunction。
|
|
44
44
|
*/
|
|
45
|
-
sendNotification: (
|
|
45
|
+
sendNotification: (options = {}) => new data.FunctionsData({ id: "send_notification", func: require("./functions/send_notification"), options: options }),
|
|
46
46
|
/**
|
|
47
47
|
* Function for periodic processing.
|
|
48
48
|
*
|
|
49
49
|
* 定期的に処理するためのFunction。
|
|
50
50
|
*/
|
|
51
|
-
scheduler: (
|
|
51
|
+
scheduler: (options = {}) => new data.FunctionsData({ id: "scheduler", func: require("./functions/scheduler"), options: options }),
|
|
52
52
|
/**
|
|
53
53
|
* The text is generated using Open AI's GPT.
|
|
54
54
|
*
|
|
55
55
|
* Open AIのChat GPTを利用して文章を生成します。
|
|
56
56
|
*/
|
|
57
|
-
openAIChatGPT: (
|
|
57
|
+
openAIChatGPT: (options = {}) => new data.FunctionsData({ id: "openai_chat_gpt", func: require("./functions/openai_chat_gpt"), options: options }),
|
|
58
58
|
/**
|
|
59
59
|
* Obtain an Agora.io security token.
|
|
60
60
|
*
|
|
61
61
|
* Agora.ioのセキュリティトークンを取得します。
|
|
62
62
|
*/
|
|
63
|
-
agoraToken: (
|
|
63
|
+
agoraToken: (options = {}) => new data.FunctionsData({ id: "agora_token", func: require("./functions/agora_token"), options: options }),
|
|
64
64
|
/**
|
|
65
65
|
* Convert files generated by Agora.io's cloud recording into an easy-to-handle format from within the app.
|
|
66
66
|
*
|
|
@@ -70,7 +70,7 @@ exports.Functions = {
|
|
|
70
70
|
*
|
|
71
71
|
* FirebaseStorageにファイルが保存されたタイミングで実行されます。
|
|
72
72
|
*/
|
|
73
|
-
agoraCloudRecording: (
|
|
73
|
+
agoraCloudRecording: (options = {}) => new data.FunctionsData({ id: "agora_cloud_recording", func: require("./functions/agora_cloud_recording"), options: options }),
|
|
74
74
|
/**
|
|
75
75
|
* Performs various Stripe processes.
|
|
76
76
|
*
|
|
@@ -80,7 +80,7 @@ exports.Functions = {
|
|
|
80
80
|
*
|
|
81
81
|
* Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
|
|
82
82
|
*/
|
|
83
|
-
stripe: (
|
|
83
|
+
stripe: (options = {}) => new data.FunctionsData({ id: "stripe", func: require("./functions/stripe"), options: options }),
|
|
84
84
|
/**
|
|
85
85
|
* Receives and processes webhooks from Stripe.
|
|
86
86
|
*
|
|
@@ -94,7 +94,7 @@ exports.Functions = {
|
|
|
94
94
|
*
|
|
95
95
|
* Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
|
|
96
96
|
*/
|
|
97
|
-
stripeWebhook: (
|
|
97
|
+
stripeWebhook: (options = {}) => new data.FunctionsData({ id: "stripe_webhook", func: require("./functions/stripe_webhook"), options: options }),
|
|
98
98
|
/**
|
|
99
99
|
* Receive and process webhooks for Stripe Connect.
|
|
100
100
|
*
|
|
@@ -112,7 +112,7 @@ exports.Functions = {
|
|
|
112
112
|
*
|
|
113
113
|
* Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
|
|
114
114
|
*/
|
|
115
|
-
stripeWebhookConnect: (
|
|
115
|
+
stripeWebhookConnect: (options = {}) => new data.FunctionsData({ id: "stripe_webhook_connect", func: require("./functions/stripe_webhook_connect"), options: options }),
|
|
116
116
|
/**
|
|
117
117
|
* Webhook for proper redirection when 3D Secure authentication is required.
|
|
118
118
|
*
|
|
@@ -126,80 +126,80 @@ exports.Functions = {
|
|
|
126
126
|
*
|
|
127
127
|
* [returnUrl]にこちらを設定してください。
|
|
128
128
|
*/
|
|
129
|
-
stripeWebhookSecure: (
|
|
129
|
+
stripeWebhookSecure: (options = {}) => new data.FunctionsData({ id: "stripe_webhook_secure", func: require("./functions/stripe_webhook_secure"), options: options }),
|
|
130
130
|
/**
|
|
131
131
|
* Send email via Gmail.
|
|
132
132
|
*
|
|
133
133
|
* Gmailでメールを送信します。
|
|
134
134
|
*/
|
|
135
|
-
gmail: (
|
|
135
|
+
gmail: (options = {}) => new data.FunctionsData({ id: "gmail", func: require("./functions/gmail"), options: options }),
|
|
136
136
|
/**
|
|
137
137
|
* Send mail through SendGrid.
|
|
138
138
|
*
|
|
139
139
|
* SendGridでメールを送信します。
|
|
140
140
|
*/
|
|
141
|
-
sendGrid: (
|
|
141
|
+
sendGrid: (options = {}) => new data.FunctionsData({ id: "send_grid", func: require("./functions/send_grid"), options: options }),
|
|
142
142
|
/**
|
|
143
143
|
* After being redirected from [android_auth_code], you will get a refresh token to connect to Google's API. Applications Library System Users Volumes bin cores dev etc home opt private sbin tmp usr var Execute [android_auth_code] after registering the required information.
|
|
144
144
|
*
|
|
145
145
|
* [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
|
|
146
146
|
* 必要情報を登録した後[android_auth_code]を実行してください。
|
|
147
147
|
*/
|
|
148
|
-
androidAuthCode: (
|
|
148
|
+
androidAuthCode: (options = {}) => new data.FunctionsData({ id: "android_auth_code", func: require("./functions/android_auth_code"), options: options }),
|
|
149
149
|
/**
|
|
150
150
|
* After being redirected from [android_auth_code], you will get a refresh token to connect to Google's API. Applications Library System Users Volumes bin cores dev etc home opt private sbin tmp usr var Execute [android_auth_code] after registering the required information.
|
|
151
151
|
*
|
|
152
152
|
* [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
|
|
153
153
|
* 必要情報を登録した後[android_auth_code]を実行してください。
|
|
154
154
|
*/
|
|
155
|
-
androidToken: (
|
|
155
|
+
androidToken: (options = {}) => new data.FunctionsData({ id: "android_token", func: require("./functions/android_token"), options: options }),
|
|
156
156
|
/**
|
|
157
157
|
* Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value].
|
|
158
158
|
*
|
|
159
159
|
* 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。
|
|
160
160
|
*/
|
|
161
|
-
consumableVerifyAndroid: (
|
|
161
|
+
consumableVerifyAndroid: (options = {}) => new data.FunctionsData({ id: "consumable_verify_android", func: require("./functions/consumable_verify_android"), options: options }),
|
|
162
162
|
/**
|
|
163
163
|
* Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value].
|
|
164
164
|
*
|
|
165
165
|
* 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。
|
|
166
166
|
*/
|
|
167
|
-
consumableVerifyIOS: (
|
|
167
|
+
consumableVerifyIOS: (options = {}) => new data.FunctionsData({ id: "consumable_verify_ios", func: require("./functions/consumable_verify_ios"), options: options }),
|
|
168
168
|
/**
|
|
169
169
|
* Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`.
|
|
170
170
|
*
|
|
171
171
|
* 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。
|
|
172
172
|
*/
|
|
173
|
-
nonconsumableVerifyAndroid: (
|
|
173
|
+
nonconsumableVerifyAndroid: (options = {}) => new data.FunctionsData({ id: "nonconsumable_verify_android", func: require("./functions/nonconsumable_verify_android"), options: options }),
|
|
174
174
|
/**
|
|
175
175
|
* Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`.
|
|
176
176
|
*
|
|
177
177
|
* 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。
|
|
178
178
|
*/
|
|
179
|
-
nonconsumableVerifyIOS: (
|
|
179
|
+
nonconsumableVerifyIOS: (options = {}) => new data.FunctionsData({ id: "nonconsumable_verify_ios", func: require("./functions/nonconsumable_verify_ios"), options: options }),
|
|
180
180
|
/**
|
|
181
181
|
* This is a webhook endpoint for Android. 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.
|
|
182
182
|
*
|
|
183
183
|
* Android用のWebhookのエンドポイントです。GCPのpub/subに`purchasing`のトピックを作成しプリンシパルに「google-play-developer-notifications@system.gserviceaccount.com」を設定することで通知を受け取ることができるようになります。
|
|
184
184
|
*/
|
|
185
|
-
purchaseWebhookAndroid: (
|
|
185
|
+
purchaseWebhookAndroid: (options = {}) => new data.FunctionsData({ id: "purchase_webhook_android", func: require("./functions/purchase_webhook_android"), options: options }),
|
|
186
186
|
/**
|
|
187
187
|
* Webhook endpoint for IOS, which allows you to receive notifications by setting the endpoint in AppStoreConnect's [App]->[App Information]->[App Store Server Notification].
|
|
188
188
|
*
|
|
189
189
|
* IOS用のWebhookのエンドポイントです。AppStoreConnectの[App]->[App情報]->[App Storeサーバ通知]にエンドポイントを設定することで通知を受け取ることができるようになります。
|
|
190
190
|
*/
|
|
191
|
-
purchaseWebhookIOS: (
|
|
191
|
+
purchaseWebhookIOS: (options = {}) => new data.FunctionsData({ id: "purchase_webhook_ios", func: require("./functions/purchase_webhook_ios"), options: options }),
|
|
192
192
|
/**
|
|
193
193
|
* Verify subscriptions and add data.
|
|
194
194
|
*
|
|
195
195
|
* サブスクリプションの検証とデータの追加を行います。
|
|
196
196
|
*/
|
|
197
|
-
subscriptionVerifyAndroid: (
|
|
197
|
+
subscriptionVerifyAndroid: (options = {}) => new data.FunctionsData({ id: "subscription_verify_android", func: require("./functions/subscription_verify_android"), options: options }),
|
|
198
198
|
/**
|
|
199
199
|
* Verify subscriptions and add data.
|
|
200
200
|
*
|
|
201
201
|
* サブスクリプションの検証とデータの追加を行います。
|
|
202
202
|
*/
|
|
203
|
-
subscriptionVerifyIOS: (
|
|
203
|
+
subscriptionVerifyIOS: (options = {}) => new data.FunctionsData({ id: "subscription_verify_ios", func: require("./functions/subscription_verify_ios"), options: options }),
|
|
204
204
|
};
|
|
205
205
|
//# sourceMappingURL=functions.js.map
|
package/dist/functions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA6C;AAE7C;;;;GAIG;AACU,QAAA,SAAS,GAAG;IACvB;;;;OAIG;IACH,SAAS,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../src/functions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA6C;AAE7C;;;;GAIG;AACU,QAAA,SAAS,GAAG;IACvB;;;;OAIG;IACH,SAAS,EAAE,CAAC,UAAiC,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACzJ;;;;OAIG;IACH,gBAAgB,E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AE,OAAO,CAAC,sCAAsC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC1M;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,UAAiC,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,OAAO,CAAC,kCAAkC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IACxL;;;;OAIG;IACH,yBAAyB,EAAE,CAAC,UAAiC,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,6BAA6B,EAAE,IAAI,EAAE,OAAO,CAAC,yCAAyC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC7M;;;;OAIG;IACH,qBAAqB,EAAE,CAAC,UAAiC,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,OAAO,CAAC,qCAAqC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;CACzL,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ function deploy(exports, region, deployFunctions) {
|
|
|
69
69
|
admin.initializeApp();
|
|
70
70
|
for (const func of deployFunctions) {
|
|
71
71
|
if (!process.env.FUNCTION_NAME || process.env.FUNCTION_NAME === func.id) {
|
|
72
|
-
exports[func.id] = func.build(region
|
|
72
|
+
exports[func.id] = func.build(region);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAGxC,8CAA4B;AAC5B,4CAA0B;AAC1B,qDAAmC;AACnC,uEAAqD;AACrD,sEAAoD;AACpD,mEAAiD;AACjD,0DAAwC;AACxC,8CAA4B;AAC5B,gEAA8C;AAC9C,qDAAqC;AACrC,4DAA4C;AAC5C,wEAAwD;AAExD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,MAAM,CAAC,OAAY,EAAE,MAAuB,EAAE,eAAqC;IAC/F,KAAK,CAAC,aAAa,EAAE,CAAC;IACtB,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,IAAI,CAAC,EAAE,EAAE;YACrE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAGxC,8CAA4B;AAC5B,4CAA0B;AAC1B,qDAAmC;AACnC,uEAAqD;AACrD,sEAAoD;AACpD,mEAAiD;AACjD,0DAAwC;AACxC,8CAA4B;AAC5B,gEAA8C;AAC9C,qDAAqC;AACrC,4DAA4C;AAC5C,wEAAwD;AAExD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,MAAM,CAAC,OAAY,EAAE,MAAuB,EAAE,eAAqC;IAC/F,KAAK,CAAC,aAAa,EAAE,CAAC;IACtB,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,aAAa,KAAK,IAAI,CAAC,EAAE,EAAE;YACrE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SACzC;KACJ;AACL,CAAC;AAPD,wBAOC"}
|
|
@@ -5,12 +5,6 @@ import { FunctionsBase } from "./functions_base";
|
|
|
5
5
|
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class CallProcessFunctionBase extends FunctionsBase {
|
|
8
|
-
/**
|
|
9
|
-
* Base class for defining the data of Functions for executing the Call method of Functions.
|
|
10
|
-
*
|
|
11
|
-
* FunctionsのCallメソッド実行用のFunctionのデータを定義するためのベースクラス。
|
|
12
|
-
*/
|
|
13
|
-
constructor();
|
|
14
8
|
/**
|
|
15
9
|
* Specify the actual contents of the process.
|
|
16
10
|
*
|
|
@@ -21,23 +15,16 @@ export declare abstract class CallProcessFunctionBase extends FunctionsBase {
|
|
|
21
15
|
*
|
|
22
16
|
* Functionsに渡されたクエリ。
|
|
23
17
|
*
|
|
24
|
-
* @param {Record<string, any>} options
|
|
25
|
-
* Options passed to Functions.
|
|
26
|
-
*
|
|
27
|
-
* Functionsに渡されたオプション。
|
|
28
|
-
*
|
|
29
18
|
* @returns {{ [key: string]: any }}
|
|
30
19
|
* Return value of the process.
|
|
31
20
|
*
|
|
32
21
|
* 処理の戻り値。
|
|
33
22
|
*/
|
|
34
|
-
abstract process(query: any
|
|
23
|
+
abstract process(query: any): Promise<{
|
|
35
24
|
[key: string]: any;
|
|
36
25
|
}>;
|
|
37
26
|
data: {
|
|
38
27
|
[key: string]: string;
|
|
39
28
|
};
|
|
40
|
-
build(regions: string[]
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
}): Function;
|
|
29
|
+
build(regions: string[]): Function;
|
|
43
30
|
}
|