@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.
- package/dist/models/Board.ts +4 -0
- package/dist/models/Campaign.ts +24 -0
- package/dist/models/Card.ts +4 -0
- package/dist/models/CardComment.ts +7 -1
- package/dist/models/Comment.ts +8 -0
- package/dist/models/Content/Author.ts +6 -0
- package/dist/models/Content/Page.ts +7 -0
- package/dist/models/Content/Post.ts +12 -0
- package/dist/models/EmailList.ts +4 -0
- package/dist/models/FailedJob.ts +11 -0
- package/dist/models/MailPreference.ts +4 -0
- package/dist/models/NotificationDelivery.ts +12 -0
- package/dist/models/SocialPost.ts +6 -0
- package/dist/models/Tag.ts +7 -0
- package/dist/models/Team.ts +1 -0
- package/dist/models/User.ts +2 -1
- package/dist/models/commerce/AuctionItem.ts +4 -0
- package/dist/models/commerce/Cart.ts +4 -0
- package/dist/models/commerce/Category.ts +4 -0
- package/dist/models/commerce/Customer.ts +4 -0
- package/dist/models/commerce/DeliveryStop.ts +4 -0
- package/dist/models/commerce/LoyaltyReward.ts +6 -0
- package/dist/models/commerce/Manufacturer.ts +4 -0
- package/dist/models/commerce/Product.ts +4 -0
- package/dist/models/commerce/ProductUnit.ts +4 -0
- package/dist/models/commerce/Review.ts +4 -0
- package/dist/models/commerce/ShippingMethod.ts +4 -0
- package/dist/models/commerce/WaitlistProduct.ts +4 -0
- package/package.json +23 -23
package/dist/models/Board.ts
CHANGED
|
@@ -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)
|
package/dist/models/Campaign.ts
CHANGED
|
@@ -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)
|
package/dist/models/Card.ts
CHANGED
|
@@ -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)
|
package/dist/models/Comment.ts
CHANGED
|
@@ -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)
|
package/dist/models/EmailList.ts
CHANGED
|
@@ -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)
|
package/dist/models/FailedJob.ts
CHANGED
|
@@ -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)
|
package/dist/models/Tag.ts
CHANGED
|
@@ -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)
|
package/dist/models/Team.ts
CHANGED
package/dist/models/User.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
@@ -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)
|
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.
|
|
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.
|
|
67
|
-
"@stacksjs/cli": "0.75.
|
|
68
|
-
"@stacksjs/config": "0.75.
|
|
69
|
-
"@stacksjs/database": "0.75.
|
|
70
|
-
"@stacksjs/env": "0.75.
|
|
71
|
-
"@stacksjs/error-handling": "0.75.
|
|
72
|
-
"@stacksjs/events": "0.75.
|
|
73
|
-
"@stacksjs/logging": "0.75.
|
|
74
|
-
"@stacksjs/model-meta": "0.75.
|
|
75
|
-
"@stacksjs/pagination": "0.75.
|
|
76
|
-
"@stacksjs/path": "0.75.
|
|
77
|
-
"@stacksjs/query-builder": "0.75.
|
|
78
|
-
"@stacksjs/realtime": "0.75.
|
|
79
|
-
"@stacksjs/router": "0.75.
|
|
80
|
-
"@stacksjs/storage": "0.75.
|
|
81
|
-
"@stacksjs/strings": "0.75.
|
|
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.
|
|
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.
|
|
89
|
-
"@stacksjs/payments": "0.75.
|
|
90
|
-
"@stacksjs/queue": "0.75.
|
|
91
|
-
"@stacksjs/search-engine": "0.75.
|
|
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.
|
|
105
|
+
"@stacksjs/types": "0.75.558",
|
|
106
106
|
"better-dx": "^0.2.24"
|
|
107
107
|
}
|
|
108
108
|
}
|