@mathrunet/masamune 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/lib/functions/firestore.js +14 -5
  3. package/dist/lib/functions/firestore.js.map +1 -1
  4. package/dist/lib/functions/send_notification.js +1 -1
  5. package/package.json +1 -1
  6. package/dist/converter/firestore_basic_converter.d.ts +0 -20
  7. package/dist/converter/firestore_basic_converter.js +0 -25
  8. package/dist/converter/firestore_basic_converter.js.map +0 -1
  9. package/dist/converter/firestore_enum_converter.d.ts +0 -20
  10. package/dist/converter/firestore_enum_converter.js +0 -25
  11. package/dist/converter/firestore_enum_converter.js.map +0 -1
  12. package/dist/converter/firestore_model_command_base_converter.d.ts +0 -20
  13. package/dist/converter/firestore_model_command_base_converter.js +0 -38
  14. package/dist/converter/firestore_model_command_base_converter.js.map +0 -1
  15. package/dist/converter/firestore_model_counter_converter.d.ts +0 -20
  16. package/dist/converter/firestore_model_counter_converter.js +0 -78
  17. package/dist/converter/firestore_model_counter_converter.js.map +0 -1
  18. package/dist/converter/firestore_model_date_converter.d.ts +0 -20
  19. package/dist/converter/firestore_model_date_converter.js +0 -95
  20. package/dist/converter/firestore_model_date_converter.js.map +0 -1
  21. package/dist/converter/firestore_model_geo_value_converter.d.ts +0 -20
  22. package/dist/converter/firestore_model_geo_value_converter.js +0 -77
  23. package/dist/converter/firestore_model_geo_value_converter.js.map +0 -1
  24. package/dist/converter/firestore_model_image_uri_converter.d.ts +0 -20
  25. package/dist/converter/firestore_model_image_uri_converter.js +0 -74
  26. package/dist/converter/firestore_model_image_uri_converter.js.map +0 -1
  27. package/dist/converter/firestore_model_locale_converter.d.ts +0 -20
  28. package/dist/converter/firestore_model_locale_converter.js +0 -74
  29. package/dist/converter/firestore_model_locale_converter.js.map +0 -1
  30. package/dist/converter/firestore_model_localized_value_converter.d.ts +0 -20
  31. package/dist/converter/firestore_model_localized_value_converter.js +0 -36
  32. package/dist/converter/firestore_model_localized_value_converter.js.map +0 -1
  33. package/dist/converter/firestore_model_ref_converter.d.ts +0 -20
  34. package/dist/converter/firestore_model_ref_converter.js +0 -60
  35. package/dist/converter/firestore_model_ref_converter.js.map +0 -1
  36. package/dist/converter/firestore_model_search_converter.d.ts +0 -20
  37. package/dist/converter/firestore_model_search_converter.js +0 -36
  38. package/dist/converter/firestore_model_search_converter.js.map +0 -1
  39. package/dist/converter/firestore_model_timestamp_converter.d.ts +0 -20
  40. package/dist/converter/firestore_model_timestamp_converter.js +0 -95
  41. package/dist/converter/firestore_model_timestamp_converter.js.map +0 -1
  42. package/dist/converter/firestore_model_token_converter.d.ts +0 -20
  43. package/dist/converter/firestore_model_token_converter.js +0 -36
  44. package/dist/converter/firestore_model_token_converter.js.map +0 -1
  45. package/dist/converter/firestore_model_uri_converter.d.ts +0 -20
  46. package/dist/converter/firestore_model_uri_converter.js +0 -74
  47. package/dist/converter/firestore_model_uri_converter.js.map +0 -1
  48. package/dist/converter/firestore_model_video_uri_converter.d.ts +0 -20
  49. package/dist/converter/firestore_model_video_uri_converter.js +0 -74
  50. package/dist/converter/firestore_model_video_uri_converter.js.map +0 -1
  51. package/dist/converter/firestore_null_converter.d.ts +0 -20
  52. package/dist/converter/firestore_null_converter.js +0 -25
  53. package/dist/converter/firestore_null_converter.js.map +0 -1
  54. package/dist/exntension/string.extension.d.ts +0 -179
  55. package/dist/exntension/string.extension.js +0 -190
  56. package/dist/exntension/string.extension.js.map +0 -1
  57. package/dist/functions/notification.d.ts +0 -1
  58. package/dist/functions/notification.js +0 -111
  59. package/dist/functions/notification.js.map +0 -1
  60. package/dist/functions/send_notification_schedule.d.ts +0 -1
  61. package/dist/functions/send_notification_schedule.js +0 -86
  62. package/dist/functions/send_notification_schedule.js.map +0 -1
  63. package/dist/functions/stripe_hook.d.ts +0 -1
  64. package/dist/functions/stripe_hook.js +0 -573
  65. package/dist/functions/stripe_hook.js.map +0 -1
  66. package/dist/functions/stripe_hook_connect.d.ts +0 -1
  67. package/dist/functions/stripe_hook_connect.js +0 -140
  68. package/dist/functions/stripe_hook_connect.js.map +0 -1
  69. package/dist/functions/stripe_hook_secure.d.ts +0 -1
  70. package/dist/functions/stripe_hook_secure.js +0 -150
  71. package/dist/functions/stripe_hook_secure.js.map +0 -1
  72. package/dist/lib/call_process_function_base.d.ts +0 -39
  73. package/dist/lib/call_process_function_base.js +0 -69
  74. package/dist/lib/call_process_function_base.js.map +0 -1
  75. package/dist/lib/default_firestore_model_field_value_converter.d.ts +0 -8
  76. package/dist/lib/default_firestore_model_field_value_converter.js +0 -44
  77. package/dist/lib/default_firestore_model_field_value_converter.js.map +0 -1
  78. package/dist/lib/firestore_model_field_value_converter.d.ts +0 -140
  79. package/dist/lib/firestore_model_field_value_converter.js +0 -127
  80. package/dist/lib/firestore_model_field_value_converter.js.map +0 -1
  81. package/dist/lib/functions_base.d.ts +0 -195
  82. package/dist/lib/functions_base.js +0 -37
  83. package/dist/lib/functions_base.js.map +0 -1
  84. package/dist/lib/functions_data.d.ts +0 -10
  85. package/dist/lib/functions_data.js +0 -19
  86. package/dist/lib/functions_data.js.map +0 -1
  87. package/dist/lib/gmail.d.ts +0 -39
  88. package/dist/lib/gmail.js +0 -65
  89. package/dist/lib/gmail.js.map +0 -1
  90. package/dist/lib/model_field_value.d.ts +0 -82
  91. package/dist/lib/model_field_value.js +0 -104
  92. package/dist/lib/model_field_value.js.map +0 -1
  93. package/dist/lib/request_process_function_base.d.ts +0 -39
  94. package/dist/lib/request_process_function_base.js +0 -69
  95. package/dist/lib/request_process_function_base.js.map +0 -1
  96. package/dist/lib/schedule_process_function_base.d.ts +0 -33
  97. package/dist/lib/schedule_process_function_base.js +0 -70
  98. package/dist/lib/schedule_process_function_base.js.map +0 -1
  99. package/dist/lib/send_gmail.d.ts +0 -34
  100. package/dist/lib/send_gmail.js +0 -90
  101. package/dist/lib/send_gmail.js.map +0 -1
  102. package/dist/lib/send_grid.d.ts +0 -33
  103. package/dist/lib/send_grid.js +0 -58
  104. package/dist/lib/send_grid.js.map +0 -1
  105. package/dist/lib/send_notification.d.ts +0 -59
  106. package/dist/lib/send_notification.js +0 -216
  107. package/dist/lib/send_notification.js.map +0 -1
  108. package/dist/lib/sql_api_base.d.ts +0 -185
  109. package/dist/lib/sql_api_base.js +0 -94
  110. package/dist/lib/sql_api_base.js.map +0 -1
  111. package/dist/lib/update_subscription.d.ts +0 -83
  112. package/dist/lib/update_subscription.js +0 -143
  113. package/dist/lib/update_subscription.js.map +0 -1
  114. package/dist/lib/update_unlock.d.ts +0 -13
  115. package/dist/lib/update_unlock.js +0 -64
  116. package/dist/lib/update_unlock.js.map +0 -1
  117. package/dist/lib/update_wallet.d.ts +0 -19
  118. package/dist/lib/update_wallet.js +0 -70
  119. package/dist/lib/update_wallet.js.map +0 -1
  120. package/dist/lib/verify_android.d.ts +0 -50
  121. package/dist/lib/verify_android.js +0 -121
  122. package/dist/lib/verify_android.js.map +0 -1
  123. package/dist/lib/verify_ios.d.ts +0 -26
  124. package/dist/lib/verify_ios.js +0 -110
  125. package/dist/lib/verify_ios.js.map +0 -1
  126. package/dist/src/functions/notification.d.ts +0 -1
  127. package/dist/src/functions/notification.js +0 -111
  128. package/dist/src/functions/notification.js.map +0 -1
  129. package/dist/src/functions.d.ts +0 -14
  130. package/dist/src/functions.js +0 -41
  131. package/dist/src/functions.js.map +0 -1
  132. package/dist/src/index.d.ts +0 -13
  133. package/dist/src/index.js +0 -51
  134. package/dist/src/index.js.map +0 -1
  135. package/dist/src/lib/functions_data.d.ts +0 -25
  136. package/dist/src/lib/functions_data.js +0 -31
  137. package/dist/src/lib/functions_data.js.map +0 -1
@@ -1,127 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FirestoreModelFieldValue = exports.FirestoreModelFieldValueConverter = void 0;
4
- /**
5
- * Base class for converting [ModelFieldValue] for use in Firestore.
6
- *
7
- * Firestoreで利用するための[ModelFieldValue]の変換を行うベースクラス。
8
- */
9
- class FirestoreModelFieldValueConverter {
10
- /**
11
- * Base class for converting [ModelFieldValue] for use in Firestore.
12
- *
13
- * Firestoreで利用するための[ModelFieldValue]の変換を行うベースクラス。
14
- */
15
- constructor() { }
16
- /**
17
- * Generate a header for ModelFieldValue.
18
- *
19
- * ModelFieldValue用のヘッダーを生成します。
20
- *
21
- * @returns { { [field: string]: any } }
22
- * Header for ModelFieldValue.
23
- *
24
- * ModelFieldValue用のヘッダー。
25
- */
26
- header() {
27
- return {
28
- "@source": "server",
29
- "@type": this.type,
30
- };
31
- }
32
- ;
33
- }
34
- exports.FirestoreModelFieldValueConverter = FirestoreModelFieldValueConverter;
35
- /**
36
- * Class for generating values for `ModelFieldValue` for Firestore.
37
- *
38
- * Firestore用の`ModelFieldValue`用の値を生成するためのクラス。
39
- */
40
- class FirestoreModelFieldValue {
41
- /**
42
- * Generate data for `ModelRef`.
43
- *
44
- * `ModelRef`用のデータを生成します。
45
- *
46
- * @param {string} key
47
- * Data key.
48
- *
49
- * データのキー。
50
- *
51
- * @param {DocumentReference} ref
52
- * Document reference data.
53
- *
54
- * ドキュメントのリファレンスデータ。
55
- *
56
- * @returns { [key: string]: any }
57
- * Data for `ModelRef`.
58
- *
59
- * `ModelRef`用のデータ。
60
- */
61
- static documentReferenceToModelRef({ key, ref, }) {
62
- const res = {};
63
- res[key] = {
64
- "@ref": ref.path,
65
- "@type": "ModelRefBase",
66
- };
67
- return res;
68
- }
69
- /**
70
- * Generate data for `ModelTimestamp`.
71
- *
72
- * `ModelTimestamp`用のデータを生成します。
73
- *
74
- * @param {string} key
75
- * Data key.
76
- *
77
- * データのキー。
78
- *
79
- * @param {Timestamp} timestamp
80
- * Time stamp data.
81
- *
82
- * タイムスタンプデータ。
83
- *
84
- * @returns { [key: string]: any }
85
- * Data for `ModelTimestamp`.
86
- *
87
- * `ModelTimestamp`用のデータ。
88
- */
89
- static timestampToModelTimestamp({ key, timestamp, }) {
90
- const res = {};
91
- res[key] = {
92
- "@timestamp": timestamp.toMillis(),
93
- "@type": "ModelTimestamp",
94
- };
95
- return res;
96
- }
97
- /**
98
- * Generate data for `ModelGeoValue`.
99
- *
100
- * `ModelGeoValue`用のデータを生成します。
101
- *
102
- * @param {string} key
103
- * Data key.
104
- *
105
- * データのキー。
106
- *
107
- * @param {Timestamp} timestamp
108
- * Time stamp data.
109
- *
110
- * タイムスタンプデータ。
111
- *
112
- * @returns { [key: string]: any }
113
- * Data for `ModelGeoValue`.
114
- *
115
- * `ModelGeoValue`用のデータ。
116
- */
117
- static geoPointToModelGeoValue({ key, timestamp, }) {
118
- const res = {};
119
- res[key] = {
120
- "@timestamp": timestamp.toMillis(),
121
- "@type": "ModelTimestamp",
122
- };
123
- return res;
124
- }
125
- }
126
- exports.FirestoreModelFieldValue = FirestoreModelFieldValue;
127
- //# sourceMappingURL=firestore_model_field_value_converter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"firestore_model_field_value_converter.js","sourceRoot":"","sources":["../../src/lib/firestore_model_field_value_converter.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACH,MAAsB,iCAAiC;IACnD;;;;OAIG;IACH,gBAAgB,CAAC;IA8BjB;;;;;;;;;OASG;IACH,MAAM;QACF,OAAO;YACH,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,IAAI,CAAC,IAAI;SACrB,CAAC;IACN,CAAC;IAAA,CAAC;CACL;AApDD,8EAoDC;AAED;;;;GAIG;AACH,MAAa,wBAAwB;IACjC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,2BAA2B,CAAC,EAC/B,GAAG,EAAE,GAAG,GAGX;QACG,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,GAAG,CAAC,GAAG,CAAC,GAAG;YACP,MAAM,EAAE,GAAG,CAAC,IAAI;YAChB,OAAO,EAAE,cAAc;SAC1B,CAAC;QACF,OAAO,GAAG,CAAC;IACf,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,yBAAyB,CAAC,EAC7B,GAAG,EAAE,SAAS,GAGjB;QACG,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,GAAG,CAAC,GAAG,CAAC,GAAG;YACP,YAAY,EAAE,SAAS,CAAC,QAAQ,EAAE;YAClC,OAAO,EAAE,gBAAgB;SAC5B,CAAC;QACF,OAAO,GAAG,CAAC;IACf,CAAC;IAGD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,uBAAuB,CAAC,EAC3B,GAAG,EAAE,SAAS,GAGjB;QACG,MAAM,GAAG,GAA2B,EAAE,CAAC;QACvC,GAAG,CAAC,GAAG,CAAC,GAAG;YACP,YAAY,EAAE,SAAS,CAAC,QAAQ,EAAE;YAClC,OAAO,EAAE,gBAAgB;SAC5B,CAAC;QACF,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AApGD,4DAoGC"}
@@ -1,195 +0,0 @@
1
- import { MemoryOption } from "firebase-functions/v2";
2
- /**
3
- * Define Function data for FirebaseFunctions.
4
- *
5
- * Write code to generate FirebaseFunctions at `build`.
6
- *
7
- * FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
8
- *
9
- * `build`にてFirebaseFunctionsを生成するためのコードを記述します。
10
- */
11
- export declare abstract class FunctionsBase {
12
- /**
13
- * Define Function data for FirebaseFunctions.
14
- *
15
- * Write code to generate FirebaseFunctions at `build`.
16
- *
17
- * FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
18
- *
19
- * `build`にてFirebaseFunctionsを生成するためのコードを記述します。
20
- */
21
- constructor({ id, func, data, options, }: {
22
- id?: string | undefined | null;
23
- func?: ((region: string[], options: FunctionsOptions, data: {
24
- [key: string]: string;
25
- }) => Function) | undefined | null;
26
- data?: {
27
- [key: string]: string;
28
- } | undefined | null;
29
- options?: FunctionsOptions | undefined | null;
30
- });
31
- /**
32
- * @param id
33
- * Describe the method names used in Functions.
34
- *
35
- * Functionsで利用されるメソッド名を記述します。
36
- */
37
- readonly id: string;
38
- /**
39
- * @param func
40
- * Specify the actual contents of the process.
41
- *
42
- * 実際の処理の中身を指定します。
43
- */
44
- readonly func: ((region: string[], options: FunctionsOptions, data: {
45
- [key: string]: string;
46
- }) => Function) | undefined | null;
47
- /**
48
- * Specify the data to be passed to the process.
49
- *
50
- * 処理に渡すデータを指定します。
51
- */
52
- readonly data: {
53
- [key: string]: string;
54
- };
55
- /**
56
- * Specify processing options.
57
- *
58
- * 処理のオプションを指定します。
59
- */
60
- readonly options: FunctionsOptions;
61
- /**
62
- * Write code to generate FirebaseFunctions.
63
- *
64
- * FirebaseFunctionsを生成するためのコードを記述します。
65
- */
66
- abstract build(region: string[]): Function;
67
- }
68
- /**
69
- * Specifies the options for the process.
70
- *
71
- * 処理のオプションを指定します。
72
- */
73
- export interface SchedulerFunctionsOptions extends FunctionsOptions {
74
- /**
75
- * Specifies the schedule.
76
- * * Cron format and AppEngine format are available.
77
- * * For Cron format, specify as `5 11 * * *`.
78
- * * For AppEngine format, specify as `every 1 minutes`.
79
- *
80
- * スケジュールを指定します。
81
- * * Cron形式とAppEngine形式で指定可能です。
82
- * * Cron形式の場合は、`5 11 * * *`のように指定します。
83
- * * AppEngine形式の場合は、`every 1 minutes`のように指定します。
84
- */
85
- schedule?: string | undefined | null;
86
- /**
87
- * Specifies an alternate region.
88
- *
89
- * 代替のリージョンを指定します。
90
- */
91
- region?: string | null;
92
- }
93
- /**
94
- * Specifies the options for the process.
95
- *
96
- * 処理のオプションを指定します。
97
- */
98
- export interface PathFunctionsOptions extends FunctionsOptions {
99
- /**
100
- * Specify the path to the target database.
101
- *
102
- * 対象のデータベースのパスを指定します。
103
- */
104
- path?: string | undefined | null;
105
- /**
106
- * Specifies an alternate region.
107
- *
108
- * 代替のリージョンを指定します。
109
- */
110
- region?: string | null;
111
- }
112
- /**
113
- * Specifies the options for the process.
114
- *
115
- * 処理のオプションを指定します。
116
- */
117
- export interface PubsubFunctionsOptions extends FunctionsOptions {
118
- /**
119
- * Specifies the topic.
120
- * 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.
121
- *
122
- * トピックを指定します。
123
- * GCPのpub/subに`purchasing`のトピックを作成しプリンシパルに「google-play-developer-notifications@system.gserviceaccount.com」を設定することで通知を受け取ることができるようになります。
124
- */
125
- topic?: string | undefined | null;
126
- /**
127
- * Specifies an alternate region.
128
- *
129
- * 代替のリージョンを指定します。
130
- */
131
- region?: string | null;
132
- }
133
- /**
134
- * Specifies the options for the process.
135
- *
136
- * 処理のオプションを指定します。
137
- */
138
- export interface HttpFunctionsOptions extends FunctionsOptions {
139
- /**
140
- * Specifies an alternate region.
141
- *
142
- * 代替のリージョンを指定します。
143
- */
144
- region?: string | string[] | null;
145
- }
146
- /**
147
- * Specifies the options for the process.
148
- *
149
- * 処理のオプションを指定します。
150
- */
151
- export interface StorageFunctionsOptions extends FunctionsOptions {
152
- /**
153
- * Specifies an alternate region.
154
- *
155
- * 代替のリージョンを指定します。
156
- */
157
- region?: string | null;
158
- }
159
- /**
160
- * Specifies the options for the process.
161
- *
162
- * 処理のオプションを指定します。
163
- */
164
- export interface FunctionsOptions {
165
- /**
166
- * Specifies the timeout period.
167
- *
168
- * タイムアウト時間を指定します。
169
- */
170
- timeoutSeconds?: number | undefined;
171
- /**
172
- * Specifies the memory.
173
- *
174
- * メモリを指定します。
175
- */
176
- memory?: MemoryOption | undefined;
177
- /**
178
- * Specifies the minInstances.
179
- *
180
- * minInstancesを指定します。
181
- */
182
- minInstances?: number | undefined;
183
- /**
184
- * Specifies the maxInstances.
185
- *
186
- * maxInstancesを指定します。
187
- */
188
- maxInstances?: number | undefined;
189
- /**
190
- * Specifies the concurrency.
191
- *
192
- * concurrencyを指定します。
193
- */
194
- concurrency?: number | undefined;
195
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FunctionsBase = void 0;
4
- /**
5
- * Define Function data for FirebaseFunctions.
6
- *
7
- * Write code to generate FirebaseFunctions at `build`.
8
- *
9
- * FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
10
- *
11
- * `build`にてFirebaseFunctionsを生成するためのコードを記述します。
12
- */
13
- class FunctionsBase {
14
- /**
15
- * Define Function data for FirebaseFunctions.
16
- *
17
- * Write code to generate FirebaseFunctions at `build`.
18
- *
19
- * FirebaseFunctions用のFunctionのデータを定義を行うためのベースクラス。
20
- *
21
- * `build`にてFirebaseFunctionsを生成するためのコードを記述します。
22
- */
23
- constructor({ id, func, data = {}, options, }) {
24
- this.id = id !== null && id !== void 0 ? id : "";
25
- this.func = func;
26
- this.data = data !== null && data !== void 0 ? data : {};
27
- this.options = options !== null && options !== void 0 ? options : {
28
- timeoutSeconds: 60,
29
- memory: "256MiB",
30
- minInstances: 0,
31
- concurrency: 80,
32
- maxInstances: 100,
33
- };
34
- }
35
- }
36
- exports.FunctionsBase = FunctionsBase;
37
- //# sourceMappingURL=functions_base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functions_base.js","sourceRoot":"","sources":["../../src/lib/functions_base.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;GAQG;AACH,MAAsB,aAAa;IAC/B;;;;;;;;OAQG;IACH,YAAY,EACR,EAAE,EACF,IAAI,EACJ,IAAI,GAAG,EAAE,EACT,OAAO,GAUV;QACG,IAAI,CAAC,EAAE,GAAG,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,EAAE,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI;YACtB,cAAc,EAAE,EAAE;YAClB,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,CAAC;YACf,WAAW,EAAE,EAAE;YACf,YAAY,EAAE,GAAG;SACpB,CAAC;IACN,CAAC;CA0CJ;AA7ED,sCA6EC"}
@@ -1,10 +0,0 @@
1
- import { FunctionsBase } from "./functions_base";
2
- export { FunctionsOptions, SchedulerFunctionsOptions, PubsubFunctionsOptions, PathFunctionsOptions } from "./functions_base";
3
- /**
4
- * Define Function data for FirebaseFunctions.
5
- *
6
- * FirebaseFunctions用のFunctionのデータを定義します。
7
- */
8
- export declare class FunctionsData extends FunctionsBase {
9
- build(region: string[]): Function;
10
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FunctionsData = void 0;
4
- const functions_base_1 = require("./functions_base");
5
- /**
6
- * Define Function data for FirebaseFunctions.
7
- *
8
- * FirebaseFunctions用のFunctionのデータを定義します。
9
- */
10
- class FunctionsData extends functions_base_1.FunctionsBase {
11
- build(region) {
12
- if (!this.func) {
13
- return () => { };
14
- }
15
- return this.func(region, this.options, this.data);
16
- }
17
- }
18
- exports.FunctionsData = FunctionsData;
19
- //# sourceMappingURL=functions_data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"functions_data.js","sourceRoot":"","sources":["../../src/lib/functions_data.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAGjD;;;;GAIG;AACH,MAAa,aAAc,SAAQ,8BAAa;IAC9C,KAAK,CAAC,MAAgB;QACpB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACf,OAAO,GAAG,EAAE,GAAG,CAAC,CAAC;QACnB,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CACd,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,IAAI,CACV,CAAC;IACJ,CAAC;CACF;AAXD,sCAWC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * Send email via Gmail.
3
- *
4
- * Gmailでメールを送信します。
5
- *
6
- * @param {string} process.env.MAIL_GMAIL_ID
7
- * Gmail user ID. Follow the steps below to obtain a Gmail user ID.
8
- * 1. Press your icon in the upper right corner of the Google top screen and open "Manage Google Account".
9
- * 2. open "Security" on the left side of the screen and open "App Password
10
- * GmailのユーザーID。下記の手順で取得します。
11
- * 1. Googleのトップ画面の画面右上の自分のアイコンを押下し、「Google アカウントを管理」を開く
12
- * 2. 画面左の「セキュリティ」を開き、「アプリ パスワード」を開く
13
- *
14
- * @param {string} process.env.MAIL_GMAIL_PASSWORD
15
- * Gmail user password. Enter the password obtained in the above procedure.
16
- * Gmailのユーザーパスワード。上記の手順で取得したパスワードを入力します。
17
- *
18
- * @param {string} from
19
- * Sender's email address.
20
- * 送信元メールアドレス。
21
- *
22
- * @param {string} to
23
- * Email address to be sent to.
24
- * 送信先メールアドレス。
25
- *
26
- * @param {string} title
27
- * Email Title.
28
- * メールタイトル。
29
- *
30
- * @param {string} content
31
- * Email content.
32
- * メール本文。
33
- */
34
- export declare function send({ from, to, title, content, }: {
35
- from: string;
36
- to: string;
37
- title: string;
38
- content: string;
39
- }): Promise<void>;
package/dist/lib/gmail.js DELETED
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.send = void 0;
13
- const nodemailer_1 = require("nodemailer");
14
- /**
15
- * Send email via Gmail.
16
- *
17
- * Gmailでメールを送信します。
18
- *
19
- * @param {string} process.env.MAIL_GMAIL_ID
20
- * Gmail user ID. Follow the steps below to obtain a Gmail user ID.
21
- * 1. Press your icon in the upper right corner of the Google top screen and open "Manage Google Account".
22
- * 2. open "Security" on the left side of the screen and open "App Password
23
- * GmailのユーザーID。下記の手順で取得します。
24
- * 1. Googleのトップ画面の画面右上の自分のアイコンを押下し、「Google アカウントを管理」を開く
25
- * 2. 画面左の「セキュリティ」を開き、「アプリ パスワード」を開く
26
- *
27
- * @param {string} process.env.MAIL_GMAIL_PASSWORD
28
- * Gmail user password. Enter the password obtained in the above procedure.
29
- * Gmailのユーザーパスワード。上記の手順で取得したパスワードを入力します。
30
- *
31
- * @param {string} from
32
- * Sender's email address.
33
- * 送信元メールアドレス。
34
- *
35
- * @param {string} to
36
- * Email address to be sent to.
37
- * 送信先メールアドレス。
38
- *
39
- * @param {string} title
40
- * Email Title.
41
- * メールタイトル。
42
- *
43
- * @param {string} content
44
- * Email content.
45
- * メール本文。
46
- */
47
- function send(_a) {
48
- return __awaiter(this, arguments, void 0, function* ({ from, to, title, content, }) {
49
- const mailTransport = (0, nodemailer_1.createTransport)({
50
- service: "gmail",
51
- auth: {
52
- user: process.env.MAIL_GMAIL_ID,
53
- pass: process.env.MAIL_GMAIL_PASSWORD,
54
- },
55
- });
56
- yield mailTransport.sendMail({
57
- from: from,
58
- to: to,
59
- subject: title,
60
- text: content,
61
- });
62
- });
63
- }
64
- exports.send = send;
65
- //# sourceMappingURL=gmail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gmail.js","sourceRoot":"","sources":["../../src/lib/gmail.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA2C;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAsB,IAAI;yDAAC,EACzB,IAAI,EACJ,EAAE,EACF,KAAK,EACL,OAAO,GAMR;QACC,MAAM,aAAa,GAAG,IAAA,4BAAe,EAAC;YACpC,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;gBAC/B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;aACtC;SACF,CAAC,CAAC;QACH,MAAM,aAAa,CAAC,QAAQ,CAAC;YAC3B,IAAI,EAAE,IAAI;YACV,EAAE,EAAE,EAAE;YACN,OAAO,EAAE,KAAK;YACd,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;CAAA;AAxBD,oBAwBC"}
@@ -1,82 +0,0 @@
1
- /**
2
- * Class for generating values for `ModelFieldValue` in katana_model.
3
- *
4
- * katana_modelの`ModelFieldValue`用の値を生成するためのクラス。
5
- */
6
- export declare class ModelFieldValue {
7
- /**
8
- * Generates text data for Like search.
9
- *
10
- * Like検索用のテキストデータを生成します。
11
- *
12
- * @param {string} text
13
- * Text to be searched.
14
- *
15
- * 検索対象のテキスト。
16
- *
17
- * @returns
18
- */
19
- static searchable({ text, }: {
20
- text: string;
21
- }): {
22
- [key: string]: any;
23
- };
24
- /**
25
- * Class for generating data for `ModelCounter`.
26
- *
27
- * `ModelCounter`用のデータを生成するためのクラス。
28
- *
29
- * @param {string} key
30
- * Data key.
31
- *
32
- * データのキー。
33
- *
34
- * @param {number} value
35
- * Data value.
36
- *
37
- * データの値。
38
- *
39
- * @param {number} increment
40
- * Increment value.
41
- *
42
- * インクリメントする値。
43
- *
44
- * @returns { [key: string]: any }
45
- * Data for `ModelCounter`.
46
- *
47
- * `ModelCounter`用のデータ。
48
- */
49
- static modelCounter({ key, value, increment, }: {
50
- key: string;
51
- value: number;
52
- increment?: number | undefined;
53
- }): {
54
- [key: string]: any;
55
- };
56
- /**
57
- * Class for generating data for `ModelTimestamp`.
58
- *
59
- * `ModelTimestamp`用のデータを生成するためのクラス。
60
- *
61
- * @param {string} key
62
- * Data key.
63
- *
64
- * データのキー。
65
- *
66
- * @param {Date} date
67
- * Date and time.
68
- *
69
- * 日時。
70
- *
71
- * @returns { [key: string]: any }
72
- * Data for `ModelCounter`.
73
- *
74
- * `ModelCounter`用のデータ。
75
- */
76
- static modelTimestamp({ key, date, }: {
77
- key: string;
78
- date?: Date | undefined;
79
- }): {
80
- [key: string]: any;
81
- };
82
- }
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModelFieldValue = void 0;
4
- /**
5
- * Class for generating values for `ModelFieldValue` in katana_model.
6
- *
7
- * katana_modelの`ModelFieldValue`用の値を生成するためのクラス。
8
- */
9
- class ModelFieldValue {
10
- /**
11
- * Generates text data for Like search.
12
- *
13
- * Like検索用のテキストデータを生成します。
14
- *
15
- * @param {string} text
16
- * Text to be searched.
17
- *
18
- * 検索対象のテキスト。
19
- *
20
- * @returns
21
- */
22
- static searchable({ text, }) {
23
- const res = {};
24
- const search = {};
25
- text.toLowerCase().replace(/\./g, "").toHankakuNumericAndAlphabet().toZenkakuKatakana().toKatakana().splitByCharacterAndBigram().forEach((e) => {
26
- const trimed = e.trim();
27
- if (trimed.length <= 0) {
28
- return;
29
- }
30
- search[trimed] = true;
31
- });
32
- res["@search"] = search;
33
- return res;
34
- }
35
- /**
36
- * Class for generating data for `ModelCounter`.
37
- *
38
- * `ModelCounter`用のデータを生成するためのクラス。
39
- *
40
- * @param {string} key
41
- * Data key.
42
- *
43
- * データのキー。
44
- *
45
- * @param {number} value
46
- * Data value.
47
- *
48
- * データの値。
49
- *
50
- * @param {number} increment
51
- * Increment value.
52
- *
53
- * インクリメントする値。
54
- *
55
- * @returns { [key: string]: any }
56
- * Data for `ModelCounter`.
57
- *
58
- * `ModelCounter`用のデータ。
59
- */
60
- static modelCounter({ key, value, increment, }) {
61
- const res = {};
62
- res[key] = value;
63
- res[`#${key}`] = {
64
- "@increment": increment !== null && increment !== void 0 ? increment : 0,
65
- "@target": key,
66
- "@type": "ModelCounter",
67
- "@value": value,
68
- };
69
- return res;
70
- }
71
- /**
72
- * Class for generating data for `ModelTimestamp`.
73
- *
74
- * `ModelTimestamp`用のデータを生成するためのクラス。
75
- *
76
- * @param {string} key
77
- * Data key.
78
- *
79
- * データのキー。
80
- *
81
- * @param {Date} date
82
- * Date and time.
83
- *
84
- * 日時。
85
- *
86
- * @returns { [key: string]: any }
87
- * Data for `ModelCounter`.
88
- *
89
- * `ModelCounter`用のデータ。
90
- */
91
- static modelTimestamp({ key, date, }) {
92
- const res = {};
93
- date !== null && date !== void 0 ? date : (date = new Date());
94
- res[key] = date;
95
- res[`#${key}`] = {
96
- "@time": date.getTime(),
97
- "@target": key,
98
- "@type": "ModelTimestamp",
99
- };
100
- return res;
101
- }
102
- }
103
- exports.ModelFieldValue = ModelFieldValue;
104
- //# sourceMappingURL=model_field_value.js.map