Browse code

removed CHANGELOG.txt appinfo/info.xml appinfo/signature.json lib/Migration/Version104Date20220507234521.php lib/Service/SmsrelentlessService.php lib/Controller/AuthorApiController.php lib/Controller/SmsrelentlessController.php js/settings.js

DoubleBastionAdmin authored on 09/05/2022 15:03:46
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,250 +0,0 @@
1
-<?php
2
-/**
3
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
- *
5
- * @author Double Bastion LLC
6
- *
7
- * @license GNU AGPL version 3 or any later version
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
- * License as published by the Free Software Foundation; either
12
- * version 3 of the License, or any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
- *
19
- * You should have received a copy of the GNU Affero General Public
20
- * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
- *
22
- */
23
-
24
-declare(strict_types=1);
25
-
26
-namespace OCA\SMSRelentless\Migration;
27
-
28
-use OCP\DB\ISchemaWrapper;
29
-use OCP\Migration\IOutput;
30
-use OCP\Migration\SimpleMigrationStep;
31
-
32
-
33
-class Version104Date20220507234521 extends SimpleMigrationStep {
34
-	/**
35
-	 * @param IOutput $output
36
-	 * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
37
-	 * @param array $options
38
-	 * @return null|ISchemaWrapper
39
-	 */
40
-	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
41
-		/** @var ISchemaWrapper $schema */
42
-		$schema = $schemaClosure();
43
-
44
-		if (!$schema->hasTable('sms_relent_settings')) {
45
-			$table = $schema->createTable('sms_relent_settings');
46
-			$table->addColumn('id', 'bigint', [
47
-				'autoincrement' => true,
48
-				'notnull' => true,
49
-                                'length' => 11,
50
-                                'unsigned' => true,
51
-			]);
52
-			$table->addColumn('user_id', 'string', [
53
-				'notnull' => true,
54
-				'length' => 128,
55
-				'default' => '',
56
-			]);
57
-			$table->addColumn('telapi_key', 'string', [
58
-				'notnull' => true,
59
-				'length' => 1024,
60
-				'default' => '',
61
-			]);
62
-			$table->addColumn('tel_pub_key', 'string', [
63
-				'notnull' => true,
64
-				'length' => 1024,
65
-				'default' => '',
66
-			]);
67
-			$table->addColumn('telapi_url_rec', 'string', [
68
-				'notnull' => true,
69
-				'length' => 1024,
70
-				'default' => '',
71
-			]);
72
-			$table->addColumn('telapi_url', 'string', [
73
-				'notnull' => true,
74
-				'length' => 1024,
75
-				'default' => '',
76
-			]);
77
-			$table->addColumn('messaging_profile_id', 'string', [
78
-				'notnull' => true,
79
-				'length' => 1024,
80
-				'default' => '',
81
-			]);
82
-			$table->addColumn('nexapi_key', 'string', [
83
-				'notnull' => true,
84
-				'length' => 1024,
85
-				'default' => '',
86
-			]);
87
-			$table->addColumn('nexapi_secret', 'string', [
88
-				'notnull' => true,
89
-				'length' => 1024,
90
-				'default' => '',
91
-			]);
92
-			$table->addColumn('nexapi_url_rec', 'string', [
93
-				'notnull' => true,
94
-				'length' => 1024,
95
-				'default' => '',
96
-			]);
97
-			$table->addColumn('nexapi_url', 'string', [
98
-				'notnull' => true,
99
-				'length' => 1024,
100
-				'default' => '',
101
-			]);
102
-			$table->addColumn('tel_sender_name', 'string', [
103
-				'notnull' => false,
104
-				'length' => 1024,
105
-				'default' => '',
106
-			]);
107
-			$table->addColumn('nex_sender_name', 'string', [
108
-				'notnull' => false,
109
-				'length' => 1024,
110
-				'default' => '',
111
-			]);
112
-			$table->addColumn('messagesperpage', 'integer', [
113
-				'notnull' => false,
114
-				'length' => 11,
115
-                                'unsigned' => true,
116
-			]);
117
-			$table->addColumn('get_notify', 'smallint', [
118
-				'notnull' => false,
119
-				'length' => 1,
120
-			]);
121
-			$table->addColumn('notification_email', 'string', [
122
-				'notnull' => false,
123
-				'length' => 1024,
124
-				'default' => '',
125
-			]);
126
-			$table->addColumn('getsmsinemail', 'smallint', [
127
-				'notnull' => false,
128
-				'length' => 1,
129
-			]);
130
-                        $table->setPrimaryKey(['id']);
131
-                        $table->addUniqueIndex(['id']);
132
-		}
133
-
134
-		if (!$schema->hasTable('sms_relent_received')) {
135
-			$table = $schema->createTable('sms_relent_received');
136
-			$table->addColumn('id', 'bigint', [
137
-				'autoincrement' => true,
138
-				'notnull' => true,
139
-                                'length' => 11,
140
-                                'unsigned' => true,
141
-			]);
142
-			$table->addColumn('user_id', 'string', [
143
-				'notnull' => true,
144
-				'length' => 64,
145
-				'default' => '',
146
-			]);
147
-			$table->addColumn('message_id', 'string', [
148
-				'notnull' => true,
149
-				'length' => 1024,
150
-				'default' => '',
151
-			]);
152
-			$table->addColumn('date', 'datetime', [
153
-				'notnull' => true,
154
-			]);
155
-			$table->addColumn('from', 'string', [
156
-				'notnull' => true,
157
-				'length' => 128,
158
-				'default' => '',
159
-			]);
160
-			$table->addColumn('to', 'string', [
161
-				'notnull' => true,
162
-				'length' => 128,
163
-				'default' => '',
164
-			]);
165
-			$table->addColumn('message', 'text', [
166
-				'notnull' => false,
167
-				'length' => 8000,
168
-				'default' => '',
169
-			]);
170
-                        $table->setPrimaryKey(['id']);
171
-                        $table->addUniqueIndex(['id']);
172
-		} else {
173
-			$table = $schema->getTable('sms_relent_received');
174
-			$table->changeColumn('message', [
175
-                                'columnDefinition' => 'TEXT',
176
-                                'notnull' => false,
177
-                                'length' => 8000,
178
-			]);
179
-		}
180
-
181
-		if (!$schema->hasTable('sms_relent_sent')) {
182
-			$table = $schema->createTable('sms_relent_sent');
183
-			$table->addColumn('id', 'bigint', [
184
-				'autoincrement' => true,
185
-				'notnull' => true,
186
-                                'length' => 11,
187
-                                'unsigned' => true,
188
-			]);
189
-			$table->addColumn('user_id', 'string', [
190
-				'notnull' => true,
191
-				'length' => 64,
192
-				'default' => '',
193
-			]);
194
-			$table->addColumn('message_id', 'string', [
195
-				'notnull' => true,
196
-				'length' => 1024,
197
-				'default' => '',
198
-			]);
199
-			$table->addColumn('date', 'datetime', [
200
-				'notnull' => true,
201
-			]);
202
-			$table->addColumn('from', 'string', [
203
-				'notnull' => true,
204
-				'length' => 128,
205
-				'default' => '',
206
-			]);
207
-			$table->addColumn('to', 'string', [
208
-				'notnull' => true,
209
-				'length' => 128,
210
-				'default' => '',
211
-			]);
212
-			$table->addColumn('network ', 'string', [
213
-				'notnull' => false,
214
-				'length' => 64,
215
-				'default' => '',
216
-			]);
217
-			$table->addColumn('price', 'string', [
218
-				'notnull' => false,
219
-				'length' => 64,
220
-				'default' => '',
221
-			]);
222
-			$table->addColumn('status', 'string', [
223
-				'notnull' => false,
224
-				'length' => 1024,
225
-				'default' => '',
226
-			]);
227
-			$table->addColumn('deliveryreceipt', 'string', [
228
-				'notnull' => false,
229
-				'length' => 64,
230
-				'default' => '',
231
-			]);
232
-			$table->addColumn('message', 'text', [
233
-				'notnull' => false,
234
-				'length' => 8000,
235
-				'default' => '',
236
-			]);
237
-                        $table->setPrimaryKey(['id']);
238
-                        $table->addUniqueIndex(['id']);
239
-		} else {
240
-			$table = $schema->getTable('sms_relent_sent');
241
-			$table->changeColumn('message', [
242
-                                'columnDefinition' => 'TEXT',
243
-                                'notnull' => false,
244
-                                'length' => 8000,
245
-                        ]);
246
-		}
247
-
248
-		return $schema;
249
-	}
250
-}
Browse code

added CHANGELOG.txt Contributors.txt README.md Telnyx/lib/ApiRequestor.php appinfo/info.xml appinfo/signature.json lib/Migration/Version104Date20220507234521.php

DoubleBastionAdmin authored on 07/05/2022 23:50:17
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,250 @@
1
+<?php
2
+/**
3
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
+ *
5
+ * @author Double Bastion LLC
6
+ *
7
+ * @license GNU AGPL version 3 or any later version
8
+ *
9
+ * This program is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
+ * License as published by the Free Software Foundation; either
12
+ * version 3 of the License, or any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public
20
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+declare(strict_types=1);
25
+
26
+namespace OCA\SMSRelentless\Migration;
27
+
28
+use OCP\DB\ISchemaWrapper;
29
+use OCP\Migration\IOutput;
30
+use OCP\Migration\SimpleMigrationStep;
31
+
32
+
33
+class Version104Date20220507234521 extends SimpleMigrationStep {
34
+	/**
35
+	 * @param IOutput $output
36
+	 * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
37
+	 * @param array $options
38
+	 * @return null|ISchemaWrapper
39
+	 */
40
+	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
41
+		/** @var ISchemaWrapper $schema */
42
+		$schema = $schemaClosure();
43
+
44
+		if (!$schema->hasTable('sms_relent_settings')) {
45
+			$table = $schema->createTable('sms_relent_settings');
46
+			$table->addColumn('id', 'bigint', [
47
+				'autoincrement' => true,
48
+				'notnull' => true,
49
+                                'length' => 11,
50
+                                'unsigned' => true,
51
+			]);
52
+			$table->addColumn('user_id', 'string', [
53
+				'notnull' => true,
54
+				'length' => 128,
55
+				'default' => '',
56
+			]);
57
+			$table->addColumn('telapi_key', 'string', [
58
+				'notnull' => true,
59
+				'length' => 1024,
60
+				'default' => '',
61
+			]);
62
+			$table->addColumn('tel_pub_key', 'string', [
63
+				'notnull' => true,
64
+				'length' => 1024,
65
+				'default' => '',
66
+			]);
67
+			$table->addColumn('telapi_url_rec', 'string', [
68
+				'notnull' => true,
69
+				'length' => 1024,
70
+				'default' => '',
71
+			]);
72
+			$table->addColumn('telapi_url', 'string', [
73
+				'notnull' => true,
74
+				'length' => 1024,
75
+				'default' => '',
76
+			]);
77
+			$table->addColumn('messaging_profile_id', 'string', [
78
+				'notnull' => true,
79
+				'length' => 1024,
80
+				'default' => '',
81
+			]);
82
+			$table->addColumn('nexapi_key', 'string', [
83
+				'notnull' => true,
84
+				'length' => 1024,
85
+				'default' => '',
86
+			]);
87
+			$table->addColumn('nexapi_secret', 'string', [
88
+				'notnull' => true,
89
+				'length' => 1024,
90
+				'default' => '',
91
+			]);
92
+			$table->addColumn('nexapi_url_rec', 'string', [
93
+				'notnull' => true,
94
+				'length' => 1024,
95
+				'default' => '',
96
+			]);
97
+			$table->addColumn('nexapi_url', 'string', [
98
+				'notnull' => true,
99
+				'length' => 1024,
100
+				'default' => '',
101
+			]);
102
+			$table->addColumn('tel_sender_name', 'string', [
103
+				'notnull' => false,
104
+				'length' => 1024,
105
+				'default' => '',
106
+			]);
107
+			$table->addColumn('nex_sender_name', 'string', [
108
+				'notnull' => false,
109
+				'length' => 1024,
110
+				'default' => '',
111
+			]);
112
+			$table->addColumn('messagesperpage', 'integer', [
113
+				'notnull' => false,
114
+				'length' => 11,
115
+                                'unsigned' => true,
116
+			]);
117
+			$table->addColumn('get_notify', 'smallint', [
118
+				'notnull' => false,
119
+				'length' => 1,
120
+			]);
121
+			$table->addColumn('notification_email', 'string', [
122
+				'notnull' => false,
123
+				'length' => 1024,
124
+				'default' => '',
125
+			]);
126
+			$table->addColumn('getsmsinemail', 'smallint', [
127
+				'notnull' => false,
128
+				'length' => 1,
129
+			]);
130
+                        $table->setPrimaryKey(['id']);
131
+                        $table->addUniqueIndex(['id']);
132
+		}
133
+
134
+		if (!$schema->hasTable('sms_relent_received')) {
135
+			$table = $schema->createTable('sms_relent_received');
136
+			$table->addColumn('id', 'bigint', [
137
+				'autoincrement' => true,
138
+				'notnull' => true,
139
+                                'length' => 11,
140
+                                'unsigned' => true,
141
+			]);
142
+			$table->addColumn('user_id', 'string', [
143
+				'notnull' => true,
144
+				'length' => 64,
145
+				'default' => '',
146
+			]);
147
+			$table->addColumn('message_id', 'string', [
148
+				'notnull' => true,
149
+				'length' => 1024,
150
+				'default' => '',
151
+			]);
152
+			$table->addColumn('date', 'datetime', [
153
+				'notnull' => true,
154
+			]);
155
+			$table->addColumn('from', 'string', [
156
+				'notnull' => true,
157
+				'length' => 128,
158
+				'default' => '',
159
+			]);
160
+			$table->addColumn('to', 'string', [
161
+				'notnull' => true,
162
+				'length' => 128,
163
+				'default' => '',
164
+			]);
165
+			$table->addColumn('message', 'text', [
166
+				'notnull' => false,
167
+				'length' => 8000,
168
+				'default' => '',
169
+			]);
170
+                        $table->setPrimaryKey(['id']);
171
+                        $table->addUniqueIndex(['id']);
172
+		} else {
173
+			$table = $schema->getTable('sms_relent_received');
174
+			$table->changeColumn('message', [
175
+                                'columnDefinition' => 'TEXT',
176
+                                'notnull' => false,
177
+                                'length' => 8000,
178
+			]);
179
+		}
180
+
181
+		if (!$schema->hasTable('sms_relent_sent')) {
182
+			$table = $schema->createTable('sms_relent_sent');
183
+			$table->addColumn('id', 'bigint', [
184
+				'autoincrement' => true,
185
+				'notnull' => true,
186
+                                'length' => 11,
187
+                                'unsigned' => true,
188
+			]);
189
+			$table->addColumn('user_id', 'string', [
190
+				'notnull' => true,
191
+				'length' => 64,
192
+				'default' => '',
193
+			]);
194
+			$table->addColumn('message_id', 'string', [
195
+				'notnull' => true,
196
+				'length' => 1024,
197
+				'default' => '',
198
+			]);
199
+			$table->addColumn('date', 'datetime', [
200
+				'notnull' => true,
201
+			]);
202
+			$table->addColumn('from', 'string', [
203
+				'notnull' => true,
204
+				'length' => 128,
205
+				'default' => '',
206
+			]);
207
+			$table->addColumn('to', 'string', [
208
+				'notnull' => true,
209
+				'length' => 128,
210
+				'default' => '',
211
+			]);
212
+			$table->addColumn('network ', 'string', [
213
+				'notnull' => false,
214
+				'length' => 64,
215
+				'default' => '',
216
+			]);
217
+			$table->addColumn('price', 'string', [
218
+				'notnull' => false,
219
+				'length' => 64,
220
+				'default' => '',
221
+			]);
222
+			$table->addColumn('status', 'string', [
223
+				'notnull' => false,
224
+				'length' => 1024,
225
+				'default' => '',
226
+			]);
227
+			$table->addColumn('deliveryreceipt', 'string', [
228
+				'notnull' => false,
229
+				'length' => 64,
230
+				'default' => '',
231
+			]);
232
+			$table->addColumn('message', 'text', [
233
+				'notnull' => false,
234
+				'length' => 8000,
235
+				'default' => '',
236
+			]);
237
+                        $table->setPrimaryKey(['id']);
238
+                        $table->addUniqueIndex(['id']);
239
+		} else {
240
+			$table = $schema->getTable('sms_relent_sent');
241
+			$table->changeColumn('message', [
242
+                                'columnDefinition' => 'TEXT',
243
+                                'notnull' => false,
244
+                                'length' => 8000,
245
+                        ]);
246
+		}
247
+
248
+		return $schema;
249
+	}
250
+}