@mathrunet/masamune 1.8.0 → 1.8.2

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 CHANGED
@@ -1,3 +1,21 @@
1
+ ## [1.8.2](https://github.com/mathrunet/node_masamune/compare/v1.8.1...v1.8.2) (2023-11-09)
2
+
3
+
4
+ ### fix
5
+
6
+ * Set the return value to CallProcessFunctionBase ([900c892](https://github.com/mathrunet/node_masamune/commit/900c89290bf9418d17a86a6f2e1a00b754b61964))
7
+
8
+
9
+
10
+ ## [1.8.1](https://github.com/mathrunet/node_masamune/compare/v1.8.0...v1.8.1) (2023-11-06)
11
+
12
+
13
+ ### fix
14
+
15
+ * Maintenance of default parameters for Functions. ([f22fa85](https://github.com/mathrunet/node_masamune/commit/f22fa858b3032614d69033a89168387eaed315e9))
16
+
17
+
18
+
1
19
  # [1.8.0](https://github.com/mathrunet/node_masamune/compare/v1.7.0...v1.8.0) (2023-11-06)
2
20
 
3
21
 
@@ -10,25 +10,34 @@ export declare const Functions: {
10
10
  *
11
11
  * PUSH通知を送信するためのFunction。
12
12
  */
13
- readonly sendNotification: (timeoutSeconds?: number) => data.FunctionsData;
13
+ readonly sendNotification: ({ timeoutSeconds }: {
14
+ timeoutSeconds: number;
15
+ }) => data.FunctionsData;
14
16
  /**
15
17
  * Function for periodic processing.
16
18
  *
17
19
  * 定期的に処理するためのFunction。
18
20
  */
19
- readonly scheduler: (schedule?: string, timeoutSeconds?: number) => data.FunctionsData;
21
+ readonly scheduler: ({ schedule, timeoutSeconds }: {
22
+ schedule: string;
23
+ timeoutSeconds: number;
24
+ }) => data.FunctionsData;
20
25
  /**
21
26
  * The text is generated using Open AI's GPT.
22
27
  *
23
28
  * Open AIのChat GPTを利用して文章を生成します。
24
29
  */
25
- readonly openAIChatGPT: (timeoutSeconds?: number) => data.FunctionsData;
30
+ readonly openAIChatGPT: ({ timeoutSeconds }: {
31
+ timeoutSeconds: number;
32
+ }) => data.FunctionsData;
26
33
  /**
27
34
  * Obtain an Agora.io security token.
28
35
  *
29
36
  * Agora.ioのセキュリティトークンを取得します。
30
37
  */
31
- readonly agoraToken: (timeoutSeconds?: number) => data.FunctionsData;
38
+ readonly agoraToken: ({ timeoutSeconds }: {
39
+ timeoutSeconds: number;
40
+ }) => data.FunctionsData;
32
41
  /**
33
42
  * Convert files generated by Agora.io's cloud recording into an easy-to-handle format from within the app.
34
43
  *
@@ -38,7 +47,9 @@ export declare const Functions: {
38
47
  *
39
48
  * FirebaseStorageにファイルが保存されたタイミングで実行されます。
40
49
  */
41
- readonly agoraCloudRecording: (timeoutSeconds?: number) => data.FunctionsData;
50
+ readonly agoraCloudRecording: ({ timeoutSeconds }: {
51
+ timeoutSeconds: number;
52
+ }) => data.FunctionsData;
42
53
  /**
43
54
  * Performs various Stripe processes.
44
55
  *
@@ -48,7 +59,9 @@ export declare const Functions: {
48
59
  *
49
60
  * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
50
61
  */
51
- readonly stripe: (timeoutSeconds?: number) => data.FunctionsData;
62
+ readonly stripe: ({ timeoutSeconds }: {
63
+ timeoutSeconds: number;
64
+ }) => data.FunctionsData;
52
65
  /**
53
66
  * Receives and processes webhooks from Stripe.
54
67
  *
@@ -62,7 +75,9 @@ export declare const Functions: {
62
75
  *
63
76
  * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
64
77
  */
65
- readonly stripeWebhook: (timeoutSeconds?: number) => data.FunctionsData;
78
+ readonly stripeWebhook: ({ timeoutSeconds }: {
79
+ timeoutSeconds: number;
80
+ }) => data.FunctionsData;
66
81
  /**
67
82
  * Receive and process webhooks for Stripe Connect.
68
83
  *
@@ -80,7 +95,9 @@ export declare const Functions: {
80
95
  *
81
96
  * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
82
97
  */
83
- readonly stripeWebhookConnect: (timeoutSeconds?: number) => data.FunctionsData;
98
+ readonly stripeWebhookConnect: ({ timeoutSeconds }: {
99
+ timeoutSeconds: number;
100
+ }) => data.FunctionsData;
84
101
  /**
85
102
  * Webhook for proper redirection when 3D Secure authentication is required.
86
103
  *
@@ -94,79 +111,106 @@ export declare const Functions: {
94
111
  *
95
112
  * [returnUrl]にこちらを設定してください。
96
113
  */
97
- readonly stripeWebhookSecure: (timeoutSeconds?: number) => data.FunctionsData;
114
+ readonly stripeWebhookSecure: ({ timeoutSeconds }: {
115
+ timeoutSeconds: number;
116
+ }) => data.FunctionsData;
98
117
  /**
99
118
  * Send email via Gmail.
100
119
  *
101
120
  * Gmailでメールを送信します。
102
121
  */
103
- readonly gmail: (timeoutSeconds?: number) => data.FunctionsData;
122
+ readonly gmail: ({ timeoutSeconds }: {
123
+ timeoutSeconds: number;
124
+ }) => data.FunctionsData;
104
125
  /**
105
126
  * Send mail through SendGrid.
106
127
  *
107
128
  * SendGridでメールを送信します。
108
129
  */
109
- readonly sendGrid: (timeoutSeconds?: number) => data.FunctionsData;
130
+ readonly sendGrid: ({ timeoutSeconds }: {
131
+ timeoutSeconds: number;
132
+ }) => data.FunctionsData;
110
133
  /**
111
134
  * 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.
112
135
  *
113
136
  * [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
114
137
  * 必要情報を登録した後[android_auth_code]を実行してください。
115
138
  */
116
- readonly androidAuthCode: (timeoutSeconds?: number) => data.FunctionsData;
139
+ readonly androidAuthCode: ({ timeoutSeconds }: {
140
+ timeoutSeconds: number;
141
+ }) => data.FunctionsData;
117
142
  /**
118
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.
119
144
  *
120
145
  * [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
121
146
  * 必要情報を登録した後[android_auth_code]を実行してください。
122
147
  */
123
- readonly androidToken: (timeoutSeconds?: number) => data.FunctionsData;
148
+ readonly androidToken: ({ timeoutSeconds }: {
149
+ timeoutSeconds: number;
150
+ }) => data.FunctionsData;
124
151
  /**
125
152
  * Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value].
126
153
  *
127
154
  * 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。
128
155
  */
129
- readonly consumableVerifyAndroid: (timeoutSeconds?: number) => data.FunctionsData;
156
+ readonly consumableVerifyAndroid: ({ timeoutSeconds }: {
157
+ timeoutSeconds: number;
158
+ }) => data.FunctionsData;
130
159
  /**
131
160
  * Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value].
132
161
  *
133
162
  * 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。
134
163
  */
135
- readonly consumableVerifyIOS: (timeoutSeconds?: number) => data.FunctionsData;
164
+ readonly consumableVerifyIOS: ({ timeoutSeconds }: {
165
+ timeoutSeconds: number;
166
+ }) => data.FunctionsData;
136
167
  /**
137
168
  * Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`.
138
169
  *
139
170
  * 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。
140
171
  */
141
- readonly nonconsumableVerifyAndroid: (timeoutSeconds?: number) => data.FunctionsData;
172
+ readonly nonconsumableVerifyAndroid: ({ timeoutSeconds }: {
173
+ timeoutSeconds: number;
174
+ }) => data.FunctionsData;
142
175
  /**
143
176
  * Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`.
144
177
  *
145
178
  * 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。
146
179
  */
147
- readonly nonconsumableVerifyIOS: (timeoutSeconds?: number) => data.FunctionsData;
180
+ readonly nonconsumableVerifyIOS: ({ timeoutSeconds }: {
181
+ timeoutSeconds: number;
182
+ }) => data.FunctionsData;
148
183
  /**
149
184
  * 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.
150
185
  *
151
186
  * Android用のWebhookのエンドポイントです。GCPのpub/subに`purchasing`のトピックを作成しプリンシパルに「google-play-developer-notifications@system.gserviceaccount.com」を設定することで通知を受け取ることができるようになります。
152
187
  */
153
- readonly purchaseWebhookAndroid: (topic?: string, timeoutSeconds?: number) => data.FunctionsData;
188
+ readonly purchaseWebhookAndroid: ({ topic, timeoutSeconds }: {
189
+ topic: string;
190
+ timeoutSeconds: number;
191
+ }) => data.FunctionsData;
154
192
  /**
155
193
  * Webhook endpoint for IOS, which allows you to receive notifications by setting the endpoint in AppStoreConnect's [App]->[App Information]->[App Store Server Notification].
156
194
  *
157
195
  * IOS用のWebhookのエンドポイントです。AppStoreConnectの[App]->[App情報]->[App Storeサーバ通知]にエンドポイントを設定することで通知を受け取ることができるようになります。
158
196
  */
159
- readonly purchaseWebhookIOS: (timeoutSeconds?: number) => data.FunctionsData;
197
+ readonly purchaseWebhookIOS: ({ timeoutSeconds }: {
198
+ timeoutSeconds: number;
199
+ }) => data.FunctionsData;
160
200
  /**
161
201
  * Verify subscriptions and add data.
162
202
  *
163
203
  * サブスクリプションの検証とデータの追加を行います。
164
204
  */
165
- readonly subscriptionVerifyAndroid: (timeoutSeconds?: number) => data.FunctionsData;
205
+ readonly subscriptionVerifyAndroid: ({ timeoutSeconds }: {
206
+ timeoutSeconds: number;
207
+ }) => data.FunctionsData;
166
208
  /**
167
209
  * Verify subscriptions and add data.
168
210
  *
169
211
  * サブスクリプションの検証とデータの追加を行います。
170
212
  */
171
- readonly subscriptionVerifyIOS: (timeoutSeconds?: number) => data.FunctionsData;
213
+ readonly subscriptionVerifyIOS: ({ timeoutSeconds }: {
214
+ timeoutSeconds: number;
215
+ }) => data.FunctionsData;
172
216
  };
package/dist/functions.js CHANGED
@@ -36,25 +36,25 @@ exports.Functions = {
36
36
  *
37
37
  * PUSH通知を送信するためのFunction。
38
38
  */
39
- sendNotification: (timeoutSeconds = 60) => new data.FunctionsData("send_notification", require("./functions/send_notification"), timeoutSeconds),
39
+ sendNotification: ({ timeoutSeconds = 60 }) => new data.FunctionsData("send_notification", require("./functions/send_notification"), timeoutSeconds),
40
40
  /**
41
41
  * Function for periodic processing.
42
42
  *
43
43
  * 定期的に処理するためのFunction。
44
44
  */
45
- scheduler: (schedule = "every 1 minutes", timeoutSeconds = 60) => new data.FunctionsData("scheduler", require("./functions/scheduler"), timeoutSeconds, { "schedule": schedule }),
45
+ scheduler: ({ schedule = "every 1 minutes", timeoutSeconds = 60 }) => new data.FunctionsData("scheduler", require("./functions/scheduler"), timeoutSeconds, { "schedule": schedule }),
46
46
  /**
47
47
  * The text is generated using Open AI's GPT.
48
48
  *
49
49
  * Open AIのChat GPTを利用して文章を生成します。
50
50
  */
51
- openAIChatGPT: (timeoutSeconds = 60) => new data.FunctionsData("openai_chat_gpt", require("./functions/openai_chat_gpt"), timeoutSeconds),
51
+ openAIChatGPT: ({ timeoutSeconds = 60 }) => new data.FunctionsData("openai_chat_gpt", require("./functions/openai_chat_gpt"), timeoutSeconds),
52
52
  /**
53
53
  * Obtain an Agora.io security token.
54
54
  *
55
55
  * Agora.ioのセキュリティトークンを取得します。
56
56
  */
57
- agoraToken: (timeoutSeconds = 60) => new data.FunctionsData("agora_token", require("./functions/agora_token"), timeoutSeconds),
57
+ agoraToken: ({ timeoutSeconds = 60 }) => new data.FunctionsData("agora_token", require("./functions/agora_token"), timeoutSeconds),
58
58
  /**
59
59
  * Convert files generated by Agora.io's cloud recording into an easy-to-handle format from within the app.
60
60
  *
@@ -64,7 +64,7 @@ exports.Functions = {
64
64
  *
65
65
  * FirebaseStorageにファイルが保存されたタイミングで実行されます。
66
66
  */
67
- agoraCloudRecording: (timeoutSeconds = 60) => new data.FunctionsData("agora_cloud_recording", require("./functions/agora_cloud_recording"), timeoutSeconds),
67
+ agoraCloudRecording: ({ timeoutSeconds = 60 }) => new data.FunctionsData("agora_cloud_recording", require("./functions/agora_cloud_recording"), timeoutSeconds),
68
68
  /**
69
69
  * Performs various Stripe processes.
70
70
  *
@@ -74,7 +74,7 @@ exports.Functions = {
74
74
  *
75
75
  * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
76
76
  */
77
- stripe: (timeoutSeconds = 60) => new data.FunctionsData("stripe", require("./functions/stripe"), timeoutSeconds),
77
+ stripe: ({ timeoutSeconds = 60 }) => new data.FunctionsData("stripe", require("./functions/stripe"), timeoutSeconds),
78
78
  /**
79
79
  * Receives and processes webhooks from Stripe.
80
80
  *
@@ -88,7 +88,7 @@ exports.Functions = {
88
88
  *
89
89
  * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
90
90
  */
91
- stripeWebhook: (timeoutSeconds = 60) => new data.FunctionsData("stripe_webhook", require("./functions/stripe_webhook"), timeoutSeconds),
91
+ stripeWebhook: ({ timeoutSeconds = 60 }) => new data.FunctionsData("stripe_webhook", require("./functions/stripe_webhook"), timeoutSeconds),
92
92
  /**
93
93
  * Receive and process webhooks for Stripe Connect.
94
94
  *
@@ -106,7 +106,7 @@ exports.Functions = {
106
106
  *
107
107
  * Firestoreとの連携が必須です。Firestoreも利用可能にしてください。
108
108
  */
109
- stripeWebhookConnect: (timeoutSeconds = 60) => new data.FunctionsData("stripe_webhook_connect", require("./functions/stripe_webhook_connect"), timeoutSeconds),
109
+ stripeWebhookConnect: ({ timeoutSeconds = 60 }) => new data.FunctionsData("stripe_webhook_connect", require("./functions/stripe_webhook_connect"), timeoutSeconds),
110
110
  /**
111
111
  * Webhook for proper redirection when 3D Secure authentication is required.
112
112
  *
@@ -120,80 +120,80 @@ exports.Functions = {
120
120
  *
121
121
  * [returnUrl]にこちらを設定してください。
122
122
  */
123
- stripeWebhookSecure: (timeoutSeconds = 60) => new data.FunctionsData("stripe_webhook_secure", require("./functions/stripe_webhook_secure"), timeoutSeconds),
123
+ stripeWebhookSecure: ({ timeoutSeconds = 60 }) => new data.FunctionsData("stripe_webhook_secure", require("./functions/stripe_webhook_secure"), timeoutSeconds),
124
124
  /**
125
125
  * Send email via Gmail.
126
126
  *
127
127
  * Gmailでメールを送信します。
128
128
  */
129
- gmail: (timeoutSeconds = 60) => new data.FunctionsData("gmail", require("./functions/gmail"), timeoutSeconds),
129
+ gmail: ({ timeoutSeconds = 60 }) => new data.FunctionsData("gmail", require("./functions/gmail"), timeoutSeconds),
130
130
  /**
131
131
  * Send mail through SendGrid.
132
132
  *
133
133
  * SendGridでメールを送信します。
134
134
  */
135
- sendGrid: (timeoutSeconds = 60) => new data.FunctionsData("send_grid", require("./functions/send_grid"), timeoutSeconds),
135
+ sendGrid: ({ timeoutSeconds = 60 }) => new data.FunctionsData("send_grid", require("./functions/send_grid"), timeoutSeconds),
136
136
  /**
137
137
  * 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.
138
138
  *
139
139
  * [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
140
140
  * 必要情報を登録した後[android_auth_code]を実行してください。
141
141
  */
142
- androidAuthCode: (timeoutSeconds = 60) => new data.FunctionsData("android_auth_code", require("./functions/android_auth_code"), timeoutSeconds),
142
+ androidAuthCode: ({ timeoutSeconds = 60 }) => new data.FunctionsData("android_auth_code", require("./functions/android_auth_code"), timeoutSeconds),
143
143
  /**
144
144
  * 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.
145
145
  *
146
146
  * [android_auth_code]からリダイレクトされた後、GoogleのAPIに接続するためのリフレッシュトークンを取得します。
147
147
  * 必要情報を登録した後[android_auth_code]を実行してください。
148
148
  */
149
- androidToken: (timeoutSeconds = 60) => new data.FunctionsData("android_token", require("./functions/android_token"), timeoutSeconds),
149
+ androidToken: ({ timeoutSeconds = 60 }) => new data.FunctionsData("android_token", require("./functions/android_token"), timeoutSeconds),
150
150
  /**
151
151
  * Performs a consumption-type in-app purchase. The value of the field in the document specified in [path] is added to [value].
152
152
  *
153
153
  * 消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を[value]に加算します。
154
154
  */
155
- consumableVerifyAndroid: (timeoutSeconds = 60) => new data.FunctionsData("consumable_verify_android", require("./functions/consumable_verify_android"), timeoutSeconds),
155
+ consumableVerifyAndroid: ({ timeoutSeconds = 60 }) => new data.FunctionsData("consumable_verify_android", require("./functions/consumable_verify_android"), timeoutSeconds),
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
- consumableVerifyIOS: (timeoutSeconds = 60) => new data.FunctionsData("consumable_verify_ios", require("./functions/consumable_verify_ios"), timeoutSeconds),
161
+ consumableVerifyIOS: ({ timeoutSeconds = 60 }) => new data.FunctionsData("consumable_verify_ios", require("./functions/consumable_verify_ios"), timeoutSeconds),
162
162
  /**
163
163
  * Performs non-consumable in-app purchases. Unlock by setting the value of the field in the document specified in [path] to `true`.
164
164
  *
165
165
  * 非消費型のアプリ内課金を行います。[path]に指定したドキュメント内のフィールドの値を`true`にすることでアンロックを行います。
166
166
  */
167
- nonconsumableVerifyAndroid: (timeoutSeconds = 60) => new data.FunctionsData("nonconsumable_verify_android", require("./functions/nonconsumable_verify_android"), timeoutSeconds),
167
+ nonconsumableVerifyAndroid: ({ timeoutSeconds = 60 }) => new data.FunctionsData("nonconsumable_verify_android", require("./functions/nonconsumable_verify_android"), timeoutSeconds),
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
- nonconsumableVerifyIOS: (timeoutSeconds = 60) => new data.FunctionsData("nonconsumable_verify_ios", require("./functions/nonconsumable_verify_ios"), timeoutSeconds),
173
+ nonconsumableVerifyIOS: ({ timeoutSeconds = 60 }) => new data.FunctionsData("nonconsumable_verify_ios", require("./functions/nonconsumable_verify_ios"), timeoutSeconds),
174
174
  /**
175
175
  * 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.
176
176
  *
177
177
  * Android用のWebhookのエンドポイントです。GCPのpub/subに`purchasing`のトピックを作成しプリンシパルに「google-play-developer-notifications@system.gserviceaccount.com」を設定することで通知を受け取ることができるようになります。
178
178
  */
179
- purchaseWebhookAndroid: (topic = "purchasing", timeoutSeconds = 60) => new data.FunctionsData("purchase_webhook_android", require("./functions/purchase_webhook_android"), timeoutSeconds, { "topic": topic }),
179
+ purchaseWebhookAndroid: ({ topic = "purchasing", timeoutSeconds = 60 }) => new data.FunctionsData("purchase_webhook_android", require("./functions/purchase_webhook_android"), timeoutSeconds, { "topic": topic }),
180
180
  /**
181
181
  * Webhook endpoint for IOS, which allows you to receive notifications by setting the endpoint in AppStoreConnect's [App]->[App Information]->[App Store Server Notification].
182
182
  *
183
183
  * IOS用のWebhookのエンドポイントです。AppStoreConnectの[App]->[App情報]->[App Storeサーバ通知]にエンドポイントを設定することで通知を受け取ることができるようになります。
184
184
  */
185
- purchaseWebhookIOS: (timeoutSeconds = 60) => new data.FunctionsData("purchase_webhook_ios", require("./functions/purchase_webhook_ios"), timeoutSeconds),
185
+ purchaseWebhookIOS: ({ timeoutSeconds = 60 }) => new data.FunctionsData("purchase_webhook_ios", require("./functions/purchase_webhook_ios"), timeoutSeconds),
186
186
  /**
187
187
  * Verify subscriptions and add data.
188
188
  *
189
189
  * サブスクリプションの検証とデータの追加を行います。
190
190
  */
191
- subscriptionVerifyAndroid: (timeoutSeconds = 60) => new data.FunctionsData("subscription_verify_android", require("./functions/subscription_verify_android"), timeoutSeconds),
191
+ subscriptionVerifyAndroid: ({ timeoutSeconds = 60 }) => new data.FunctionsData("subscription_verify_android", require("./functions/subscription_verify_android"), timeoutSeconds),
192
192
  /**
193
193
  * Verify subscriptions and add data.
194
194
  *
195
195
  * サブスクリプションの検証とデータの追加を行います。
196
196
  */
197
- subscriptionVerifyIOS: (timeoutSeconds = 60) => new data.FunctionsData("subscription_verify_ios", require("./functions/subscription_verify_ios"), timeoutSeconds),
197
+ subscriptionVerifyIOS: ({ timeoutSeconds = 60 }) => new data.FunctionsData("subscription_verify_ios", require("./functions/subscription_verify_ios"), timeoutSeconds),
198
198
  };
199
199
  //# sourceMappingURL=functions.js.map
@@ -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,gBAAgB,EAAE,CAAC,iBAAyB,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC,+BAA+B,CAAC,EAAE,cAAc,CAAC;IACxJ;;;;OAIG;IACH,SAAS,EAAE,CAAC,WAAmB,iBAAiB,EAAE,iBAAyB,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,OAAO,CAAC,uBAAuB,CAAC,EAAE,cAAc,EAAE,EAAC,UAAU,EAAE,QAAQ,EAAC,CAAC;IAC/L;;;;OAIG;IACH,aAAa,EAAE,CAAC,iBAAyB,EAAE,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC,6BAA6B,CAAC,EAAE,cAAc,CAAC;IACjJ;;;;OAIG;IACH,UAAU,EAAE,CAAC,iBAAyB,EAAE,EAAE,EAAE,CAAC,IAAI,IAA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CAAC,0BAA0B,EAAE,OAAO,CAAC,sCAAsC,CAAC,EAAE,cAAc,CAAC;IACpM;;;;OAIG;IACH,sBAAsB,EAAE,CAAC,EAAE,KAAK,GAAG,YAAY,EAAE,cAAc,GAAG,EAAE,EAA6C,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,0BAA0B,EAAE,OAAO,CAAC,sCAAsC,CAAC,EAAE,cAAc,EAAE,EAAC,OAAO,EAAE,KAAK,EAAC,CAAC;IAC3P;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,EAAE,cAAc,GAAG,EAAE,EAA8B,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,sBAAsB,EAAE,OAAO,CAAC,kCAAkC,CAAC,EAAE,cAAc,CAAC;IACxL;;;;OAIG;IACH,yBAAyB,EAAE,CAAC,EAAE,cAAc,GAAG,EAAE,EAA8B,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,6BAA6B,EAAE,OAAO,CAAC,yCAAyC,CAAC,EAAE,cAAc,CAAC;IAC7M;;;;OAIG;IACH,qBAAqB,EAAE,CAAC,EAAE,cAAc,GAAG,EAAE,EAA8B,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,yBAAyB,EAAE,OAAO,CAAC,qCAAqC,CAAC,EAAE,cAAc,CAAC;CACzL,CAAC"}
@@ -16,17 +16,24 @@ export declare abstract class CallProcessFunctionBase extends FunctionsBase {
16
16
  *
17
17
  * 実際の処理の中身を指定します。
18
18
  *
19
- * @param query
19
+ * @param {any} query
20
20
  * Query passed to Functions.
21
21
  *
22
22
  * Functionsに渡されたクエリ。
23
23
  *
24
- * @param options
24
+ * @param {Record<string, any>} options
25
25
  * Options passed to Functions.
26
26
  *
27
27
  * Functionsに渡されたオプション。
28
+ *
29
+ * @returns {{ [key: string]: any }}
30
+ * Return value of the process.
31
+ *
32
+ * 処理の戻り値。
28
33
  */
29
- abstract process(query: any, options: Record<string, any>): Promise<void>;
34
+ abstract process(query: any, options: Record<string, any>): Promise<{
35
+ [key: string]: any;
36
+ }>;
30
37
  data: {
31
38
  [key: string]: string;
32
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"call_process_function_base.js","sourceRoot":"","sources":["../../src/lib/call_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgD;AAChD,qDAAiD;AAEjD;;;;GAIG;AACH,MAAsB,uBAAwB,SAAQ,8BAAa;IAC/D;;;;OAIG;IACH;QACI,KAAK,EAAE,CAAC;QAoBZ,SAAI,GAA8B,EAAE,CAAC;IAnBrC,CAAC;IAoBD,KAAK,CAAC,OAAiB,EAAE,IAA+B;QACpD,OAAO,SAAS,CAAC,OAAO,CAAC;YACrB,cAAc,EAAE,IAAI,CAAC,cAAc;SACtC,CAAC,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAO,KAAK,EAAE,EAAE;YAC/C,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACvC,CAAC,CAAA,CAAC,CAAC;IACP,CAAC;CACJ;AApCD,0DAoCC"}
1
+ {"version":3,"file":"call_process_function_base.js","sourceRoot":"","sources":["../../src/lib/call_process_function_base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgD;AAChD,qDAAiD;AAEjD;;;;GAIG;AACH,MAAsB,uBAAwB,SAAQ,8BAAa;IAC/D;;;;OAIG;IACH;QACI,KAAK,EAAE,CAAC;QAyBZ,SAAI,GAA8B,EAAE,CAAC;IAxBrC,CAAC;IAyBD,KAAK,CAAC,OAAiB,EAAE,IAA+B;QACpD,OAAO,SAAS,CAAC,OAAO,CAAC;YACrB,cAAc,EAAE,IAAI,CAAC,cAAc;SACtC,CAAC,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAO,KAAK,EAAE,EAAE;YAC/C,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACvC,CAAC,CAAA,CAAC,CAAC;IACP,CAAC;CACJ;AAzCD,0DAyCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mathrunet/masamune",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Manages packages for the server portion (NodeJS) of the Masamune framework.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",