@stacksjs/orm 0.75.556 → 0.75.558

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.
@@ -116,5 +116,9 @@ export default defineModel({
116
116
  dashboard: {
117
117
  columns: ['name', 'team', 'archived', 'createdAt'],
118
118
  enabled: false,
119
+ // Prose, asked for in a box with room for it.
120
+ fields: {
121
+ description: { input: 'longtext' },
122
+ },
119
123
  },
120
124
  } as const)
@@ -326,5 +326,29 @@ export default defineModel({
326
326
 
327
327
  dashboard: {
328
328
  columns: ['name', 'type', 'status', 'emailList', 'scheduledAt', 'sentCount'],
329
+ // Delivery is for email campaigns, in the states the newsletter engine
330
+ // takes each from. Sending is on the campaign's own page only: it reaches
331
+ // every subscriber on the list, so it is not an icon in a table row.
332
+ actions: [
333
+ {
334
+ name: 'send',
335
+ label: 'Send now',
336
+ action: 'Actions/Dashboard/Marketing/CampaignSendAction',
337
+ icon: 'i-hugeicons-sent',
338
+ confirm: 'It is queued for delivery to every active subscriber on its list.',
339
+ on: ['record'],
340
+ when: { type: 'email', status: ['draft', 'scheduled', 'paused', 'failed'] },
341
+ },
342
+ {
343
+ name: 'cancel',
344
+ label: 'Cancel delivery',
345
+ action: 'Actions/Dashboard/Marketing/CampaignCancelAction',
346
+ icon: 'i-hugeicons-cancel-circle',
347
+ confirm: 'Messages that have not gone out yet are not sent. Ones already sent cannot be recalled.',
348
+ destructive: true,
349
+ on: ['record'],
350
+ when: { type: 'email', status: ['scheduled', 'sending'] },
351
+ },
352
+ ],
329
353
  },
330
354
  } as const)
@@ -117,5 +117,9 @@ export default defineModel({
117
117
  dashboard: {
118
118
  columns: ['title', 'board', 'boardColumn', 'user', 'dueDate', 'archived'],
119
119
  enabled: false,
120
+ // Prose, asked for in a box with room for it.
121
+ fields: {
122
+ description: { input: 'longtext' },
123
+ },
120
124
  },
121
125
  } as const)
@@ -63,5 +63,11 @@ export default defineModel({
63
63
  },
64
64
  },
65
65
 
66
- dashboard: { enabled: false },
66
+ dashboard: {
67
+ enabled: false,
68
+ // Prose, asked for in a box with room for it.
69
+ fields: {
70
+ body: { input: 'longtext' },
71
+ },
72
+ },
67
73
  } as const)
@@ -111,4 +111,12 @@ export default defineModel({
111
111
  factory: faker => faker.number.int({ min: 0, max: 1 }),
112
112
  },
113
113
  },
114
+
115
+ dashboard: {
116
+ // Prose, asked for in a box with room for it.
117
+ fields: {
118
+ content: { input: 'longtext' },
119
+ body: { input: 'longtext' },
120
+ },
121
+ },
114
122
  } as const)
@@ -113,5 +113,11 @@ export default defineModel({
113
113
  },
114
114
  dashboard: {
115
115
  highlight: true,
116
+ // Chosen as a file. Its address is what is stored, as before.
117
+ // Prose, asked for in a box with room for it.
118
+ fields: {
119
+ avatar: { input: 'upload', accept: 'image/*' },
120
+ bio: { input: 'longtext' },
121
+ },
116
122
  },
117
123
  } as const)
@@ -206,4 +206,11 @@ export default defineModel({
206
206
  factory: faker => faker.number.int({ min: 0, max: 100 }),
207
207
  },
208
208
  },
209
+
210
+ dashboard: {
211
+ // Prose, asked for in a box with room for it.
212
+ fields: {
213
+ metaDescription: { input: 'longtext' },
214
+ },
215
+ },
209
216
  } as const)
@@ -235,4 +235,16 @@ export default defineModel({
235
235
  factory: faker => faker.number.int({ min: 0, max: 1 }),
236
236
  },
237
237
  },
238
+
239
+ dashboard: {
240
+ // Chosen as a file. Its address is what is stored, as before.
241
+ // Prose, asked for in a box with room for it.
242
+ fields: {
243
+ poster: { input: 'upload', accept: 'image/*' },
244
+ content: { input: 'longtext' },
245
+ excerpt: { input: 'longtext' },
246
+ metaDescription: { input: 'longtext' },
247
+ canonicalUrl: { input: 'url', format: 'link' },
248
+ },
249
+ },
238
250
  } as const)
@@ -140,5 +140,9 @@ export default defineModel({
140
140
 
141
141
  dashboard: {
142
142
  columns: ['name', 'status', 'subscriberCount', 'activeCount', 'isPublic', 'createdAt'],
143
+ // Prose, asked for in a box with room for it.
144
+ fields: {
145
+ description: { input: 'longtext' },
146
+ },
143
147
  },
144
148
  } as const)
@@ -89,5 +89,16 @@ export default defineModel({
89
89
 
90
90
  dashboard: {
91
91
  columns: ['queue', 'connection', 'exception', 'attempts', 'failedAt'],
92
+ // A failed job can be run again from its row or its page, one or many.
93
+ actions: [
94
+ {
95
+ name: 'retry',
96
+ label: 'Retry',
97
+ action: 'Actions/Dashboard/Jobs/JobRetryAction',
98
+ icon: 'i-hugeicons-refresh',
99
+ confirm: 'It is put back on its queue to run again.',
100
+ on: ['record', 'row', 'bulk'],
101
+ },
102
+ ],
92
103
  },
93
104
  } as const)
@@ -218,5 +218,9 @@ export default defineModel({
218
218
 
219
219
  dashboard: {
220
220
  columns: ['mailbox', 'accountName', 'theme', 'language', 'displayDensity'],
221
+ // Prose, asked for in a box with room for it.
222
+ fields: {
223
+ vacationMessage: { input: 'longtext' },
224
+ },
221
225
  },
222
226
  } as const)
@@ -110,5 +110,17 @@ export default defineModel({
110
110
 
111
111
  dashboard: {
112
112
  columns: ['recipient', 'channel', 'subject', 'status', 'sentAt'],
113
+ // Only a failed email or text message can be sent again: the action
114
+ // refuses the rest, so they are not offered it.
115
+ actions: [
116
+ {
117
+ name: 'retry',
118
+ label: 'Send again',
119
+ action: 'Actions/Dashboard/Notifications/NotificationDeliveryRetryAction',
120
+ icon: 'i-hugeicons-mail-send-01',
121
+ confirm: 'The same message is sent to the same recipient again.',
122
+ when: { status: 'failed', channel: ['email', 'sms'] },
123
+ },
124
+ ],
113
125
  },
114
126
  } as const)
@@ -146,5 +146,11 @@ export default defineModel({
146
146
 
147
147
  dashboard: {
148
148
  columns: ['content', 'platform', 'status', 'scheduledAt', 'publishedAt', 'likes'],
149
+ // Prose, asked for in a box with room for it.
150
+ // An address that leads to a picture: shown as one.
151
+ fields: {
152
+ content: { input: 'longtext' },
153
+ imageUrl: { input: 'url', format: 'image' },
154
+ },
149
155
  },
150
156
  } as const)
@@ -108,4 +108,11 @@ export default defineModel({
108
108
  factory: faker => faker.helpers.arrayElement(['blue', 'green', 'red', 'purple', 'yellow', 'orange', 'pink', 'gray']),
109
109
  },
110
110
  },
111
+
112
+ dashboard: {
113
+ // Prose, asked for in a box with room for it.
114
+ fields: {
115
+ description: { input: 'longtext' },
116
+ },
117
+ },
111
118
  } as const)
@@ -79,6 +79,7 @@ export default defineModel({
79
79
  // A count of members is called what it counts.
80
80
  fields: {
81
81
  memberCount: { label: 'Members' },
82
+ description: { input: 'longtext' },
82
83
  },
83
84
  highlight: true,
84
85
  },
@@ -165,7 +165,8 @@ export default defineModel({
165
165
  columns: ['name', 'email', 'emailVerifiedAt', 'createdAt'],
166
166
  // An avatar is a picture, not the address of one.
167
167
  fields: {
168
- avatar: { format: 'image' },
168
+ // Chosen as a file, and shown as the picture it is.
169
+ avatar: { format: 'image', input: 'upload', accept: 'image/*' },
169
170
  },
170
171
  // Operators add, edit and remove accounts from the dashboard. Not through
171
172
  // `useApi` above: a generated PATCH would let any signed-in caller change
@@ -207,5 +207,9 @@ export default defineModel({
207
207
  dashboard: {
208
208
  icon: 'i-hugeicons-package',
209
209
  label: 'Lots',
210
+ // An address that leads to a picture: shown as one.
211
+ fields: {
212
+ imageUrl: { format: 'image' },
213
+ },
210
214
  },
211
215
  } as const)
@@ -225,5 +225,9 @@ export default defineModel({
225
225
 
226
226
  dashboard: {
227
227
  highlight: true,
228
+ // Prose, asked for in a box with room for it.
229
+ fields: {
230
+ notes: { input: 'longtext' },
231
+ },
228
232
  },
229
233
  } as const)
@@ -122,5 +122,9 @@ export default defineModel({
122
122
 
123
123
  dashboard: {
124
124
  highlight: true,
125
+ // An address that leads to a picture: shown as one.
126
+ fields: {
127
+ imageUrl: { format: 'image' },
128
+ },
125
129
  },
126
130
  } as const)
@@ -134,5 +134,9 @@ export default defineModel({
134
134
 
135
135
  dashboard: {
136
136
  highlight: true,
137
+ // Chosen as a file. Its address is what is stored, as before.
138
+ fields: {
139
+ avatar: { input: 'upload', accept: 'image/*' },
140
+ },
137
141
  },
138
142
  } as const)
@@ -197,5 +197,9 @@ export default defineModel({
197
197
 
198
198
  dashboard: {
199
199
  highlight: true,
200
+ // Prose, asked for in a box with room for it.
201
+ fields: {
202
+ notes: { input: 'longtext' },
203
+ },
200
204
  },
201
205
  } as const)
@@ -133,5 +133,11 @@ export default defineModel({
133
133
 
134
134
  dashboard: {
135
135
  highlight: true,
136
+ // Prose, asked for in a box with room for it.
137
+ // An address that leads to a picture: shown as one.
138
+ fields: {
139
+ imageUrl: { format: 'image' },
140
+ description: { input: 'longtext' },
141
+ },
136
142
  },
137
143
  } as const)
@@ -92,5 +92,9 @@ export default defineModel({
92
92
 
93
93
  dashboard: {
94
94
  highlight: true,
95
+ // Prose, asked for in a box with room for it.
96
+ fields: {
97
+ description: { input: 'longtext' },
98
+ },
95
99
  },
96
100
  } as const)
@@ -170,5 +170,9 @@ export default defineModel({
170
170
 
171
171
  dashboard: {
172
172
  highlight: true,
173
+ // An address that leads to a picture: shown as one.
174
+ fields: {
175
+ imageUrl: { format: 'image' },
176
+ },
173
177
  },
174
178
  } as const)
@@ -115,5 +115,9 @@ export default defineModel({
115
115
 
116
116
  dashboard: {
117
117
  highlight: true,
118
+ // Prose, asked for in a box with room for it.
119
+ fields: {
120
+ description: { input: 'longtext' },
121
+ },
118
122
  },
119
123
  } as const)
@@ -174,5 +174,9 @@ export default defineModel({
174
174
 
175
175
  dashboard: {
176
176
  highlight: true,
177
+ // Prose, asked for in a box with room for it.
178
+ fields: {
179
+ content: { input: 'longtext' },
180
+ },
177
181
  },
178
182
  } as const)
@@ -104,5 +104,9 @@ export default defineModel({
104
104
 
105
105
  dashboard: {
106
106
  highlight: true,
107
+ // Prose, asked for in a box with room for it.
108
+ fields: {
109
+ description: { input: 'longtext' },
110
+ },
107
111
  },
108
112
  } as const)
@@ -157,5 +157,9 @@ export default defineModel({
157
157
 
158
158
  dashboard: {
159
159
  highlight: true,
160
+ // Prose, asked for in a box with room for it.
161
+ fields: {
162
+ notes: { input: 'longtext' },
163
+ },
160
164
  },
161
165
  } as const)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.556",
5
+ "version": "0.75.558",
6
6
  "description": "The Stacks ORM integration",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -63,32 +63,32 @@
63
63
  "prepublishOnly": "bun run build"
64
64
  },
65
65
  "dependencies": {
66
- "@stacksjs/cache": "0.75.556",
67
- "@stacksjs/cli": "0.75.556",
68
- "@stacksjs/config": "0.75.556",
69
- "@stacksjs/database": "0.75.556",
70
- "@stacksjs/env": "0.75.556",
71
- "@stacksjs/error-handling": "0.75.556",
72
- "@stacksjs/events": "0.75.556",
73
- "@stacksjs/logging": "0.75.556",
74
- "@stacksjs/model-meta": "0.75.556",
75
- "@stacksjs/pagination": "0.75.556",
76
- "@stacksjs/path": "0.75.556",
77
- "@stacksjs/query-builder": "0.75.556",
78
- "@stacksjs/realtime": "0.75.556",
79
- "@stacksjs/router": "0.75.556",
80
- "@stacksjs/storage": "0.75.556",
81
- "@stacksjs/strings": "0.75.556",
66
+ "@stacksjs/cache": "0.75.558",
67
+ "@stacksjs/cli": "0.75.558",
68
+ "@stacksjs/config": "0.75.558",
69
+ "@stacksjs/database": "0.75.558",
70
+ "@stacksjs/env": "0.75.558",
71
+ "@stacksjs/error-handling": "0.75.558",
72
+ "@stacksjs/events": "0.75.558",
73
+ "@stacksjs/logging": "0.75.558",
74
+ "@stacksjs/model-meta": "0.75.558",
75
+ "@stacksjs/pagination": "0.75.558",
76
+ "@stacksjs/path": "0.75.558",
77
+ "@stacksjs/query-builder": "0.75.558",
78
+ "@stacksjs/realtime": "0.75.558",
79
+ "@stacksjs/router": "0.75.558",
80
+ "@stacksjs/storage": "0.75.558",
81
+ "@stacksjs/strings": "0.75.558",
82
82
  "@stacksjs/ts-validation": "^0.5.7",
83
- "@stacksjs/validation": "0.75.556",
83
+ "@stacksjs/validation": "0.75.558",
84
84
  "bun-query-builder": "^0.3.44",
85
85
  "stripe": "23.0.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@stacksjs/auth": "0.75.556",
89
- "@stacksjs/payments": "0.75.556",
90
- "@stacksjs/queue": "0.75.556",
91
- "@stacksjs/search-engine": "0.75.556"
88
+ "@stacksjs/auth": "0.75.558",
89
+ "@stacksjs/payments": "0.75.558",
90
+ "@stacksjs/queue": "0.75.558",
91
+ "@stacksjs/search-engine": "0.75.558"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@stacksjs/auth": {
@@ -102,7 +102,7 @@
102
102
  }
103
103
  },
104
104
  "devDependencies": {
105
- "@stacksjs/types": "0.75.556",
105
+ "@stacksjs/types": "0.75.558",
106
106
  "better-dx": "^0.2.24"
107
107
  }
108
108
  }