velocious 1.0.100 → 1.0.101

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "velocious": "bin/velocious.js"
4
4
  },
5
5
  "name": "velocious",
6
- "version": "1.0.100",
6
+ "version": "1.0.101",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "lint": "eslint",
@@ -82,26 +82,25 @@ export default class AuthenticationTokenBase extends Record {
82
82
  hasUpdatedAt() { return this._hasAttribute(this.updatedAt()) }
83
83
 
84
84
  /**
85
- * @interface
86
85
  * @returns {import("../models/user.js").default}
87
86
  */
88
87
  user() { return this.getRelationshipByName("user").loaded() }
89
88
 
90
89
  /**
91
- * @interface
90
+ * @abstract
92
91
  * @param {Record<string, any>} attributes
93
92
  * @returns {import("../models/user.js").default}
94
93
  */
95
94
  buildUser(attributes) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
96
95
 
97
96
  /**
98
- * @interface
97
+ * @abstract
99
98
  * @returns {Promise<void>}
100
99
  */
101
100
  loadUser() { throw new Error("Not implemented") }
102
101
 
103
102
  /**
104
- * @interface
103
+ * @abstract
105
104
  * @param {import("../models/user.js").default} newModel
106
105
  * @returns {void}
107
106
  */
@@ -75,26 +75,25 @@ export default class ProjectDetailBase extends Record {
75
75
  hasUpdatedAt() { return this._hasAttribute(this.updatedAt()) }
76
76
 
77
77
  /**
78
- * @interface
79
78
  * @returns {import("../models/project.js").default}
80
79
  */
81
80
  project() { return this.getRelationshipByName("project").loaded() }
82
81
 
83
82
  /**
84
- * @interface
83
+ * @abstract
85
84
  * @param {Record<string, any>} attributes
86
85
  * @returns {import("../models/project.js").default}
87
86
  */
88
87
  buildProject(attributes) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
89
88
 
90
89
  /**
91
- * @interface
90
+ * @abstract
92
91
  * @returns {Promise<void>}
93
92
  */
94
93
  loadProject() { throw new Error("Not implemented") }
95
94
 
96
95
  /**
97
- * @interface
96
+ * @abstract
98
97
  * @param {import("../models/project.js").default} newModel
99
98
  * @returns {void}
100
99
  */
@@ -98,26 +98,25 @@ export default class ProjectTranslationBase extends Record {
98
98
  hasUpdatedAt() { return this._hasAttribute(this.updatedAt()) }
99
99
 
100
100
  /**
101
- * @interface
102
101
  * @returns {import("../models/project.js").default}
103
102
  */
104
103
  project() { return this.getRelationshipByName("project").loaded() }
105
104
 
106
105
  /**
107
- * @interface
106
+ * @abstract
108
107
  * @param {Record<string, any>} attributes
109
108
  * @returns {import("../models/project.js").default}
110
109
  */
111
110
  buildProject(attributes) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
112
111
 
113
112
  /**
114
- * @interface
113
+ * @abstract
115
114
  * @returns {Promise<void>}
116
115
  */
117
116
  loadProject() { throw new Error("Not implemented") }
118
117
 
119
118
  /**
120
- * @interface
119
+ * @abstract
121
120
  * @param {import("../models/project.js").default} newModel
122
121
  * @returns {void}
123
122
  */
@@ -81,102 +81,96 @@ export default class ProjectBase extends Record {
81
81
  nameEn() { return this._getTranslatedAttributeWithFallback("name", "en") }
82
82
 
83
83
  /**
84
- * @interface
85
84
  * @returns {import("../models/user.js").default}
86
85
  */
87
86
  creatingUser() { return this.getRelationshipByName("creatingUser").loaded() }
88
87
 
89
88
  /**
90
- * @interface
89
+ * @abstract
91
90
  * @param {Record<string, any>} attributes
92
91
  * @returns {import("../models/user.js").default}
93
92
  */
94
93
  buildCreatingUser(attributes) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
95
94
 
96
95
  /**
97
- * @interface
96
+ * @abstract
98
97
  * @returns {Promise<void>}
99
98
  */
100
99
  loadCreatingUser() { throw new Error("Not implemented") }
101
100
 
102
101
  /**
103
- * @interface
102
+ * @abstract
104
103
  * @param {import("../models/user.js").default} newModel
105
104
  * @returns {void}
106
105
  */
107
106
  setCreatingUser(newModel) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
108
107
 
109
108
  /**
110
- * @interface
111
109
  * @returns {import("velocious/src/database/query/index.js").default<import("../models/task.js").default>}
112
110
  */
113
111
  tasks() { return this.getRelationshipByName("tasks") }
114
112
 
115
113
  /**
116
- * @interface
117
114
  * @returns {Array<import("../models/task.js").default>}
118
115
  */
119
116
  tasksLoaded() { return this.getRelationshipByName("tasks").loaded() }
120
117
 
121
118
  /**
122
- * @interface
119
+ * @abstract
123
120
  * @returns {Promise<void>}
124
121
  */
125
122
  loadTasks() { throw new Error("Not implemented") }
126
123
 
127
124
  /**
128
- * @interface
125
+ * @abstract
129
126
  * @param {Array<import("../models/task.js").default>} newModels
130
127
  * @returns {void}
131
128
  */
132
129
  setTasks(newModels) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
133
130
 
134
131
  /**
135
- * @interface
136
132
  * @returns {import("../models/project-detail.js").default}
137
133
  */
138
134
  projectDetail() { return this.getRelationshipByName("projectDetail").loaded() }
139
135
 
140
136
  /**
141
- * @interface
137
+ * @abstract
142
138
  * @param {Record<string, any>} attributes
143
139
  * @returns {import("../models/project-detail.js").default}
144
140
  */
145
141
  buildProjectDetail(attributes) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
146
142
 
147
143
  /**
148
- * @interface
144
+ * @abstract
149
145
  * @returns {Promise<void>}
150
146
  */
151
147
  loadProjectDetail() { throw new Error("Not implemented") }
152
148
 
153
149
  /**
154
- * @interface
150
+ * @abstract
155
151
  * @param {import("../models/project-detail.js").default} newModel
156
152
  * @returns {void}
157
153
  */
158
154
  setProjectDetail(newModel) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
159
155
 
160
156
  /**
161
- * @interface
162
157
  * @returns {import("velocious/src/database/query/index.js").default<import("velocious/src/database/record/index.js").default>}
163
158
  */
164
159
  translations() { return this.getRelationshipByName("translations") }
165
160
 
166
161
  /**
167
- * @interface
168
162
  * @returns {Array<import("velocious/src/database/record/index.js").default>}
169
163
  */
170
164
  translationsLoaded() { return this.getRelationshipByName("translations").loaded() }
171
165
 
172
166
  /**
173
- * @interface
167
+ * @abstract
174
168
  * @returns {Promise<void>}
175
169
  */
176
170
  loadTranslations() { throw new Error("Not implemented") }
177
171
 
178
172
  /**
179
- * @interface
173
+ * @abstract
180
174
  * @param {Array<import("velocious/src/database/record/index.js").default>} newModels
181
175
  * @returns {void}
182
176
  */
@@ -91,26 +91,25 @@ export default class TaskBase extends Record {
91
91
  hasUpdatedAt() { return this._hasAttribute(this.updatedAt()) }
92
92
 
93
93
  /**
94
- * @interface
95
94
  * @returns {import("../models/project.js").default}
96
95
  */
97
96
  project() { return this.getRelationshipByName("project").loaded() }
98
97
 
99
98
  /**
100
- * @interface
99
+ * @abstract
101
100
  * @param {Record<string, any>} attributes
102
101
  * @returns {import("../models/project.js").default}
103
102
  */
104
103
  buildProject(attributes) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
105
104
 
106
105
  /**
107
- * @interface
106
+ * @abstract
108
107
  * @returns {Promise<void>}
109
108
  */
110
109
  loadProject() { throw new Error("Not implemented") }
111
110
 
112
111
  /**
113
- * @interface
112
+ * @abstract
114
113
  * @param {import("../models/project.js").default} newModel
115
114
  * @returns {void}
116
115
  */
@@ -98,76 +98,71 @@ export default class UserBase extends Record {
98
98
  hasUpdatedAt() { return this._hasAttribute(this.updatedAt()) }
99
99
 
100
100
  /**
101
- * @interface
102
101
  * @returns {import("../models/project.js").default}
103
102
  */
104
103
  createdProject() { return this.getRelationshipByName("createdProject").loaded() }
105
104
 
106
105
  /**
107
- * @interface
106
+ * @abstract
108
107
  * @param {Record<string, any>} attributes
109
108
  * @returns {import("../models/project.js").default}
110
109
  */
111
110
  buildCreatedProject(attributes) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
112
111
 
113
112
  /**
114
- * @interface
113
+ * @abstract
115
114
  * @returns {Promise<void>}
116
115
  */
117
116
  loadCreatedProject() { throw new Error("Not implemented") }
118
117
 
119
118
  /**
120
- * @interface
119
+ * @abstract
121
120
  * @param {import("../models/project.js").default} newModel
122
121
  * @returns {void}
123
122
  */
124
123
  setCreatedProject(newModel) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
125
124
 
126
125
  /**
127
- * @interface
128
126
  * @returns {import("velocious/src/database/query/index.js").default<import("../models/authentication-token.js").default>}
129
127
  */
130
128
  authenticationTokens() { return this.getRelationshipByName("authenticationTokens") }
131
129
 
132
130
  /**
133
- * @interface
134
131
  * @returns {Array<import("../models/authentication-token.js").default>}
135
132
  */
136
133
  authenticationTokensLoaded() { return this.getRelationshipByName("authenticationTokens").loaded() }
137
134
 
138
135
  /**
139
- * @interface
136
+ * @abstract
140
137
  * @returns {Promise<void>}
141
138
  */
142
139
  loadAuthenticationTokens() { throw new Error("Not implemented") }
143
140
 
144
141
  /**
145
- * @interface
142
+ * @abstract
146
143
  * @param {Array<import("../models/authentication-token.js").default>} newModels
147
144
  * @returns {void}
148
145
  */
149
146
  setAuthenticationTokens(newModels) { throw new Error("Not implemented") } // eslint-disable-line no-unused-vars
150
147
 
151
148
  /**
152
- * @interface
153
149
  * @returns {import("velocious/src/database/query/index.js").default<import("../models/project.js").default>}
154
150
  */
155
151
  createdProjects() { return this.getRelationshipByName("createdProjects") }
156
152
 
157
153
  /**
158
- * @interface
159
154
  * @returns {Array<import("../models/project.js").default>}
160
155
  */
161
156
  createdProjectsLoaded() { return this.getRelationshipByName("createdProjects").loaded() }
162
157
 
163
158
  /**
164
- * @interface
159
+ * @abstract
165
160
  * @returns {Promise<void>}
166
161
  */
167
162
  loadCreatedProjects() { throw new Error("Not implemented") }
168
163
 
169
164
  /**
170
- * @interface
165
+ * @abstract
171
166
  * @param {Array<import("../models/project.js").default>} newModels
172
167
  * @returns {void}
173
168
  */
@@ -20,7 +20,7 @@ export default class VelociousCliBaseCommand {
20
20
  directory() { return this.getConfiguration().getDirectory() }
21
21
 
22
22
  /**
23
- * @interface
23
+ * @abstract
24
24
  * @returns {Promise<void>}
25
25
  */
26
26
  execute() {
@@ -8,7 +8,7 @@ export default class VelociousDatabaseDriversBaseColumn {
8
8
  table = undefined
9
9
 
10
10
  /**
11
- * @interface
11
+ * @abstract
12
12
  * @returns {boolean}
13
13
  */
14
14
  getAutoIncrement() {
@@ -16,6 +16,7 @@ export default class VelociousDatabaseDriversBaseColumn {
16
16
  }
17
17
 
18
18
  /**
19
+ * @abstract
19
20
  * @returns {any}
20
21
  */
21
22
  getDefault() {
@@ -60,7 +61,7 @@ export default class VelociousDatabaseDriversBaseColumn {
60
61
  }
61
62
 
62
63
  /**
63
- * @interface
64
+ * @abstract
64
65
  * @returns {Promise<Array<import("./base-columns-index.js").default>>}
65
66
  */
66
67
  getIndexes() {
@@ -68,7 +69,7 @@ export default class VelociousDatabaseDriversBaseColumn {
68
69
  }
69
70
 
70
71
  /**
71
- * @interface
72
+ * @abstract
72
73
  * @returns {number}
73
74
  */
74
75
  getMaxLength() {
@@ -76,7 +77,7 @@ export default class VelociousDatabaseDriversBaseColumn {
76
77
  }
77
78
 
78
79
  /**
79
- * @interface
80
+ * @abstract
80
81
  * @returns {string}
81
82
  */
82
83
  getName() {
@@ -84,7 +85,7 @@ export default class VelociousDatabaseDriversBaseColumn {
84
85
  }
85
86
 
86
87
  /**
87
- * @interface
88
+ * @abstract
88
89
  * @returns {boolean}
89
90
  */
90
91
  getNull() {
@@ -99,7 +100,7 @@ export default class VelociousDatabaseDriversBaseColumn {
99
100
  }
100
101
 
101
102
  /**
102
- * @interface
103
+ * @abstract
103
104
  * @returns {boolean}
104
105
  */
105
106
  getPrimaryKey() {
@@ -131,7 +132,7 @@ export default class VelociousDatabaseDriversBaseColumn {
131
132
  }
132
133
 
133
134
  /**
134
- * @interface
135
+ * @abstract
135
136
  * @returns {string}
136
137
  */
137
138
  getType() {
@@ -43,7 +43,7 @@ export default class VelociousDatabaseDriversBaseColumnsIndex {
43
43
  }
44
44
 
45
45
  /**
46
- * @interface
46
+ * @abstract
47
47
  * @returns {import("../table-data/table-index.js").default}
48
48
  */
49
49
  getTableDataIndex() {
@@ -14,7 +14,7 @@ export default class VelociousDatabaseDriversBaseForeignKey {
14
14
  }
15
15
 
16
16
  /**
17
- * @interface
17
+ * @abstract
18
18
  * @returns {string}
19
19
  */
20
20
  getColumnName() {
@@ -29,7 +29,7 @@ export default class VelociousDatabaseDriversBaseForeignKey {
29
29
  }
30
30
 
31
31
  /**
32
- * @interface
32
+ * @abstract
33
33
  * @returns {string}
34
34
  */
35
35
  getName() {
@@ -44,7 +44,7 @@ export default class VelociousDatabaseDriversBaseForeignKey {
44
44
  }
45
45
 
46
46
  /**
47
- * @interface
47
+ * @abstract
48
48
  * @returns {string}
49
49
  */
50
50
  getReferencedColumnName() {
@@ -52,7 +52,7 @@ export default class VelociousDatabaseDriversBaseForeignKey {
52
52
  }
53
53
 
54
54
  /**
55
- * @interface
55
+ * @abstract
56
56
  * @returns {string}
57
57
  */
58
58
  getReferencedTableName() {
@@ -69,7 +69,7 @@ export default class VelociousDatabaseDriversBaseForeignKey {
69
69
  }
70
70
 
71
71
  /**
72
- * @interface
72
+ * @abstract
73
73
  * @returns {string}
74
74
  */
75
75
  getTableName() {
@@ -19,7 +19,7 @@ export default class VelociousDatabaseDriversBaseTable {
19
19
  }
20
20
 
21
21
  /**
22
- * @interface
22
+ * @abstract
23
23
  * @returns {Promise<Array<import("./base-column.js").default>>}
24
24
  */
25
25
  getColumns() {
@@ -36,7 +36,7 @@ export default class VelociousDatabaseDriversBaseTable {
36
36
  }
37
37
 
38
38
  /**
39
- * @interface
39
+ * @abstract
40
40
  * @returns {Promise<import("./base-foreign-key.js").default[]>}
41
41
  */
42
42
  getForeignKeys() {
@@ -44,7 +44,7 @@ export default class VelociousDatabaseDriversBaseTable {
44
44
  }
45
45
 
46
46
  /**
47
- * @interface
47
+ * @abstract
48
48
  * @returns {Promise<import("./base-columns-index.js").default[]>}
49
49
  */
50
50
  getIndexes() {
@@ -52,7 +52,7 @@ export default class VelociousDatabaseDriversBaseTable {
52
52
  }
53
53
 
54
54
  /**
55
- * @interface
55
+ * @abstract
56
56
  * @returns {string}
57
57
  */
58
58
  getName() {
@@ -91,7 +91,7 @@ export default class VelociousDatabaseDriversBase {
91
91
  }
92
92
 
93
93
  /**
94
- * @interface
94
+ * @abstract
95
95
  * @param {import("../table-data/index.js").default} _tableData
96
96
  * @returns {Promise<string[]>}
97
97
  */
@@ -100,7 +100,7 @@ export default class VelociousDatabaseDriversBase {
100
100
  }
101
101
 
102
102
  /**
103
- * @interface
103
+ * @abstract
104
104
  * @returns {Promise<void>}
105
105
  */
106
106
  connect() {
@@ -108,7 +108,7 @@ export default class VelociousDatabaseDriversBase {
108
108
  }
109
109
 
110
110
  /**
111
- * @interface
111
+ * @abstract
112
112
  * @param {CreateIndexSqlArgs} indexData
113
113
  * @returns {string}
114
114
  */
@@ -129,7 +129,7 @@ export default class VelociousDatabaseDriversBase {
129
129
  }
130
130
 
131
131
  /**
132
- * @interface
132
+ * @abstract
133
133
  * @param {import("../table-data/index.js").default} tableData
134
134
  * @returns {string[]}
135
135
  */
@@ -148,7 +148,7 @@ export default class VelociousDatabaseDriversBase {
148
148
  }
149
149
 
150
150
  /**
151
- * @interface
151
+ * @abstract
152
152
  * @param {DeleteSqlArgsType} args
153
153
  * @returns {string}
154
154
  */
@@ -170,7 +170,7 @@ export default class VelociousDatabaseDriversBase {
170
170
  }
171
171
 
172
172
  /**
173
- * @interface
173
+ * @abstract
174
174
  * @param {string} tableName
175
175
  * @param {DropTableSqlArgsType} [args]
176
176
  * @returns {string}
@@ -180,7 +180,7 @@ export default class VelociousDatabaseDriversBase {
180
180
  }
181
181
 
182
182
  /**
183
- * @interface
183
+ * @abstract
184
184
  * @param {any} value
185
185
  * @returns {any}
186
186
  */
@@ -212,7 +212,7 @@ export default class VelociousDatabaseDriversBase {
212
212
  }
213
213
 
214
214
  /**
215
- * @interface
215
+ * @abstract
216
216
  * @returns {Array<import("./base-table.js").default>}
217
217
  */
218
218
  getTables() {
@@ -235,7 +235,7 @@ export default class VelociousDatabaseDriversBase {
235
235
  }
236
236
 
237
237
  /**
238
- * @interface
238
+ * @abstract
239
239
  * @returns {string}
240
240
  */
241
241
  getType() {
@@ -253,7 +253,7 @@ export default class VelociousDatabaseDriversBase {
253
253
  }
254
254
 
255
255
  /**
256
- * @interface
256
+ * @abstract
257
257
  * @param {InsertSqlArgsType} args
258
258
  * @returns {string}
259
259
  */
@@ -262,7 +262,7 @@ export default class VelociousDatabaseDriversBase {
262
262
  }
263
263
 
264
264
  /**
265
- * @interface
265
+ * @abstract
266
266
  * @returns {Promise<number>}
267
267
  */
268
268
  lastInsertID() {
@@ -282,7 +282,7 @@ export default class VelociousDatabaseDriversBase {
282
282
  }
283
283
 
284
284
  /**
285
- * @interface
285
+ * @abstract
286
286
  * @returns {import("../query-parser/options.js").default}
287
287
  */
288
288
  options() {
@@ -361,7 +361,7 @@ export default class VelociousDatabaseDriversBase {
361
361
  }
362
362
 
363
363
  /**
364
- * @interface
364
+ * @abstract
365
365
  * @returns {boolean}
366
366
  */
367
367
  shouldSetAutoIncrementWhenPrimaryKey() {
@@ -498,7 +498,7 @@ export default class VelociousDatabaseDriversBase {
498
498
  }
499
499
 
500
500
  /**
501
- * @interface
501
+ * @abstract
502
502
  * @param {string} sql
503
503
  * @returns {Promise<QueryResultType>}
504
504
  */
@@ -507,14 +507,13 @@ export default class VelociousDatabaseDriversBase {
507
507
  }
508
508
 
509
509
  /**
510
- * @interface
510
+ * @abstract
511
511
  * @param {Query} _query
512
512
  * @returns {string}
513
513
  */
514
514
  queryToSql(_query) { throw new Error("queryToSql not implemented") } // eslint-disable-line no-unused-vars
515
515
 
516
516
  /**
517
- * @interface
518
517
  * @param {Error} _error
519
518
  * @returns {boolean}
520
519
  */
@@ -674,7 +673,7 @@ export default class VelociousDatabaseDriversBase {
674
673
  }
675
674
 
676
675
  /**
677
- * @interface
676
+ * @abstract
678
677
  * @param {UpdateSqlArgsType} args
679
678
  * @returns {string}
680
679
  */
@@ -683,7 +682,7 @@ export default class VelociousDatabaseDriversBase {
683
682
  }
684
683
 
685
684
  /**
686
- * @interface
685
+ * @abstract
687
686
  * @returns {Promise<void>}
688
687
  */
689
688
  disableForeignKeys() {
@@ -691,7 +690,7 @@ export default class VelociousDatabaseDriversBase {
691
690
  }
692
691
 
693
692
  /**
694
- * @interface
693
+ * @abstract
695
694
  * @returns {Promise<void>}
696
695
  */
697
696
  enableForeignKeys() {
@@ -36,7 +36,7 @@ class VelociousDatabasePoolBase {
36
36
  }
37
37
 
38
38
  /**
39
- * @interface
39
+ * @abstract
40
40
  * @param {import("../drivers/base.js").default} _connection
41
41
  */
42
42
  checkin(_connection) { // eslint-disable-line no-unused-vars
@@ -44,7 +44,7 @@ class VelociousDatabasePoolBase {
44
44
  }
45
45
 
46
46
  /**
47
- * @interface
47
+ * @abstract
48
48
  * @returns {Promise<import("../drivers/base.js").default>}
49
49
  */
50
50
  checkout() {
@@ -52,7 +52,7 @@ class VelociousDatabasePoolBase {
52
52
  }
53
53
 
54
54
  /**
55
- * @interface
55
+ * @abstract
56
56
  * @returns {import("../drivers/base.js").default}
57
57
  */
58
58
  getCurrentConnection() {
@@ -67,7 +67,7 @@ class VelociousDatabasePoolBase {
67
67
  }
68
68
 
69
69
  /**
70
- * @interface
70
+ * @abstract
71
71
  * @returns {string}
72
72
  */
73
73
  primaryKeyType() {
@@ -119,7 +119,7 @@ class VelociousDatabasePoolBase {
119
119
  }
120
120
 
121
121
  /**
122
- * @interface
122
+ * @abstract
123
123
  * @param {function(import("../drivers/base.js").default) : void} _callback
124
124
  * @returns {Promise<void>}
125
125
  */
@@ -37,7 +37,7 @@ export default class VelociousDatabaseQueryBase {
37
37
  }
38
38
 
39
39
  /**
40
- * @interface
40
+ * @abstract
41
41
  * @returns {string[]}
42
42
  */
43
43
  toSqls() {
@@ -1,9 +1,7 @@
1
1
  // @ts-check
2
2
 
3
- import Query from "./index.js"
4
-
5
3
  export default class VelociousDatabaseQueryFromBase {
6
- /** @type {Query | null} */
4
+ /** @type {import("./index.js").default | null} */
7
5
  query = null
8
6
 
9
7
  /**
@@ -24,7 +22,7 @@ export default class VelociousDatabaseQueryFromBase {
24
22
  }
25
23
 
26
24
  /**
27
- * @interface
25
+ * @abstract
28
26
  * @returns {string[]}
29
27
  */
30
28
  toSql() {
@@ -16,7 +16,7 @@ export default class VelociousDatabaseQueryOrderBase {
16
16
  }
17
17
 
18
18
  /**
19
- * @interface
19
+ * @abstract
20
20
  * @param {boolean} _reverseOrder
21
21
  * @returns {void}
22
22
  */
@@ -18,7 +18,7 @@ export default class VelociousDatabaseQuerySelectBase {
18
18
  }
19
19
 
20
20
  /**
21
- * @interface
21
+ * @abstract
22
22
  * @returns {string}
23
23
  */
24
24
  toSql() {
@@ -25,7 +25,7 @@ export default class VelociousDatabaseQueryWhereBase {
25
25
  }
26
26
 
27
27
  /**
28
- * @interface
28
+ * @abstract
29
29
  * @returns {string}
30
30
  */
31
31
  toSql() {
@@ -42,7 +42,7 @@ export default class VelociousDatabaseRecordBaseRelationship {
42
42
  getDependent() { return this._dependent }
43
43
 
44
44
  /**
45
- * @interface
45
+ * @abstract
46
46
  * @returns {string} The name of the foreign key, e.g. "user_id", "post_id" etc.
47
47
  */
48
48
  getForeignKey() {
@@ -50,7 +50,7 @@ export default class VelociousDatabaseRecordBaseRelationship {
50
50
  }
51
51
 
52
52
  /**
53
- * @interface
53
+ * @abstract
54
54
  * @returns {string} The name of the inverse relationship, e.g. "posts", "comments" etc.
55
55
  */
56
56
  getInverseOf() {
@@ -1,6 +1,6 @@
1
1
  export default class VelociousDatabaseRecordValidatorsBase {
2
2
  /**
3
- * @interface
3
+ * @abstract
4
4
  * @template T extends import("../index.js").default
5
5
  * @param {object} args
6
6
  * @param {T} args.model
@@ -72,13 +72,13 @@ export default class VelociousEnvironmentHandlerBase {
72
72
  }
73
73
 
74
74
  /**
75
- * @interface
75
+ * @abstract
76
76
  * @returns {Promise<CommandFileObjectType[]>}
77
77
  */
78
78
  async findCommands() { throw new Error("findCommands not implemented") }
79
79
 
80
80
  /**
81
- * @interface
81
+ * @abstract
82
82
  * @returns {Promise<Array<MigrationObjectType>>}
83
83
  */
84
84
  async findMigrations() { throw new Error("findMigrations not implemneted") }
@@ -97,26 +97,26 @@ export default class VelociousEnvironmentHandlerBase {
97
97
  }
98
98
 
99
99
  /**
100
- * @interface
100
+ * @abstract
101
101
  * @returns {Promise<string>}
102
102
  */
103
103
  getVelociousPath() { throw new Error("getVelociousPath not implemented") }
104
104
 
105
105
  /**
106
- * @interface
106
+ * @abstract
107
107
  * @returns {Promise<import("../routes/index.js").default>}
108
108
  */
109
109
  async importApplicationRoutes() { throw new Error("importApplicationRoutes not implemented") }
110
110
 
111
111
  /**
112
- * @interface
112
+ * @abstract
113
113
  * @param {string[]} _testFiles
114
114
  * @returns {Promise<void>}
115
115
  */
116
116
  importTestFiles(_testFiles) { throw new Error("'importTestFiles' not implemented") } // eslint-disable-line no-unused-vars
117
117
 
118
118
  /**
119
- * @interface
119
+ * @abstract
120
120
  * @returns {Promise<void>}
121
121
  */
122
122
  importTestingConfigPath() { throw new Error(`'importTestingConfigPath' not implemented`) }
@@ -125,7 +125,7 @@ export default class VelociousEnvironmentHandlerBase {
125
125
  * @param {object} args
126
126
  * @param {string[]} args.commandParts
127
127
  * @returns {Promise<import ("../cli/base-command.js").default>}
128
- * @interface
128
+ * @abstract
129
129
  */
130
130
  async requireCommand({commandParts}) { throw new Error("'requireCommand' not implemented") } // eslint-disable-line no-unused-vars
131
131
 
@@ -139,14 +139,13 @@ export default class DbGenerateModel extends BaseCommand {
139
139
  }
140
140
 
141
141
  fileContent += " /**\n"
142
- fileContent += " * @interface\n"
143
142
  fileContent += ` * @returns {import("${modelFilePath}").default}\n`
144
143
  fileContent += " */\n"
145
144
  fileContent += ` ${relationship.getRelationshipName()}() { return this.getRelationshipByName("${relationship.getRelationshipName()}").loaded() }\n`
146
145
 
147
146
  fileContent += "\n"
148
147
  fileContent += " /**\n"
149
- fileContent += " * @interface\n"
148
+ fileContent += " * @abstract\n"
150
149
  fileContent += " * @param {Record<string, any>} attributes\n"
151
150
  fileContent += ` * @returns {import("${modelFilePath}").default}\n`
152
151
  fileContent += " */\n"
@@ -154,14 +153,14 @@ export default class DbGenerateModel extends BaseCommand {
154
153
 
155
154
  fileContent += "\n"
156
155
  fileContent += " /**\n"
157
- fileContent += " * @interface\n"
156
+ fileContent += " * @abstract\n"
158
157
  fileContent += " * @returns {Promise<void>}\n"
159
158
  fileContent += " */\n"
160
159
  fileContent += ` load${inflection.camelize(relationship.getRelationshipName())}() { throw new Error("Not implemented") }\n`
161
160
 
162
161
  fileContent += "\n"
163
162
  fileContent += " /**\n"
164
- fileContent += " * @interface\n"
163
+ fileContent += " * @abstract\n"
165
164
  fileContent += ` * @param {import("${modelFilePath}").default} newModel\n`
166
165
  fileContent += ` * @returns {void}\n`
167
166
  fileContent += " */\n"
@@ -176,28 +175,26 @@ export default class DbGenerateModel extends BaseCommand {
176
175
  }
177
176
 
178
177
  fileContent += " /**\n"
179
- fileContent += " * @interface\n"
180
178
  fileContent += ` * @returns {import("velocious/src/database/query/index.js").default<import("${recordImport}").default>}\n`
181
179
  fileContent += " */\n"
182
180
  fileContent += ` ${relationship.getRelationshipName()}() { return this.getRelationshipByName("${relationship.getRelationshipName()}") }\n`
183
181
 
184
182
  fileContent += "\n"
185
183
  fileContent += " /**\n"
186
- fileContent += " * @interface\n"
187
184
  fileContent += ` * @returns {Array<import("${recordImport}").default>}\n`
188
185
  fileContent += " */\n"
189
186
  fileContent += ` ${relationship.getRelationshipName()}Loaded() { return this.getRelationshipByName("${relationship.getRelationshipName()}").loaded() }\n`
190
187
 
191
188
  fileContent += "\n"
192
189
  fileContent += " /**\n"
193
- fileContent += " * @interface\n"
190
+ fileContent += " * @abstract\n"
194
191
  fileContent += " * @returns {Promise<void>}\n"
195
192
  fileContent += " */\n"
196
193
  fileContent += ` load${inflection.camelize(relationship.getRelationshipName())}() { throw new Error("Not implemented") }\n`
197
194
 
198
195
  fileContent += "\n"
199
196
  fileContent += " /**\n"
200
- fileContent += " * @interface\n"
197
+ fileContent += " * @abstract\n"
201
198
  fileContent += ` * @param {Array<import("${recordImport}").default>} newModels\n`
202
199
  fileContent += " * @returns {void}\n"
203
200
  fileContent += " */\n"
@@ -24,7 +24,7 @@ export default class VelociousInitializer {
24
24
  getType() { return this._type }
25
25
 
26
26
  /**
27
- * @interface
27
+ * @abstract
28
28
  * @returns {Promise<void>}
29
29
  */
30
30
  run() {
@@ -21,7 +21,7 @@ export function initBaseRoute() {
21
21
  }
22
22
 
23
23
  /**
24
- * @interface
24
+ * @abstract
25
25
  * @param {string} _path
26
26
  */
27
27
  matchWithPath(_path) { // eslint-disable-line no-unused-vars