@adminiumjs/manifest 0.3.82 → 0.3.83
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/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/instance.d.ts +2 -1
- package/dist/instance.d.ts.map +1 -1
- package/dist/instance.js +1 -0
- package/dist/instance.js.map +1 -1
- package/dist/marketplace-wire.d.ts +10 -0
- package/dist/marketplace-wire.d.ts.map +1 -1
- package/dist/marketplace-wire.js +11 -0
- package/dist/marketplace-wire.js.map +1 -1
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +11 -0
- package/dist/modules.js.map +1 -1
- package/dist/people.d.ts +24 -4
- package/dist/people.d.ts.map +1 -1
- package/dist/people.js +72 -8
- package/dist/people.js.map +1 -1
- package/dist/plan-context.d.ts.map +1 -1
- package/dist/plan-context.js +80 -0
- package/dist/plan-context.js.map +1 -1
- package/dist/plan-model.d.ts +27 -0
- package/dist/plan-model.d.ts.map +1 -1
- package/dist/public-access.d.ts +2 -0
- package/dist/public-access.d.ts.map +1 -1
- package/dist/public-access.js +6 -0
- package/dist/public-access.js.map +1 -1
- package/dist/retired.d.ts +94 -0
- package/dist/retired.d.ts.map +1 -0
- package/dist/retired.js +139 -0
- package/dist/retired.js.map +1 -0
- package/dist/schema.d.ts +72 -2
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +7 -0
- package/dist/schema.js.map +1 -1
- package/dist/words.d.ts +6 -1
- package/dist/words.d.ts.map +1 -1
- package/dist/words.js +16 -0
- package/dist/words.js.map +1 -1
- package/package.json +2 -2
package/dist/schema.js
CHANGED
|
@@ -53,6 +53,7 @@ import { fromTemplateIssues, fromTemplateSchema } from './from-template.js';
|
|
|
53
53
|
import { expiryNoticeIssues, expiryNoticeSchema } from './expiry-notice.js';
|
|
54
54
|
import { recordClassIssues, recordClassesSchema } from './record-classes.js';
|
|
55
55
|
import { expireIssues, expireSchema } from './expire.js';
|
|
56
|
+
import { retiredIssues, retiredSchema } from './retired.js';
|
|
56
57
|
import { holdersIssues, holdersSchema } from './holders.js';
|
|
57
58
|
import { automationIssues, manifestAutomationsSchema } from './automations.js';
|
|
58
59
|
import { changeGuardIssues, changeGuardsSchema } from './change-guards.js';
|
|
@@ -1297,6 +1298,8 @@ export const requiredTableSchema = z
|
|
|
1297
1298
|
expire: expireSchema.optional(),
|
|
1298
1299
|
/** Who holds a row of value, and when it stops being worth anything: what "delete my details" keeps and for how long (see `holders.ts`). */
|
|
1299
1300
|
holders: holdersSchema.optional(),
|
|
1301
|
+
/** Columns the app no longer declares, kept in the table: made optional, and turned into links, by the update that brings them (see `retired.ts`). */
|
|
1302
|
+
retired: retiredSchema.optional(),
|
|
1300
1303
|
})
|
|
1301
1304
|
.strict()
|
|
1302
1305
|
.refine((t) => new Set(t.columns.map((c) => c.ref)).size === t.columns.length, { message: 'duplicate column ref in table', path: ['columns'] })
|
|
@@ -4268,6 +4271,8 @@ export const appManifestSchema = z
|
|
|
4268
4271
|
}
|
|
4269
4272
|
for (const issue of appSeedIssues(m))
|
|
4270
4273
|
ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
|
|
4274
|
+
for (const issue of retiredIssues(m))
|
|
4275
|
+
ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
|
|
4271
4276
|
for (const issue of savedAppIssues(m))
|
|
4272
4277
|
ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
|
|
4273
4278
|
for (const issue of requiredAppIssues(m))
|
|
@@ -4353,6 +4358,8 @@ export const addOnManifestSchema = z
|
|
|
4353
4358
|
// From its floor on, an add-on's foreign keys name its own tables only; older manifests keep pointing at the database's.
|
|
4354
4359
|
for (const issue of hostReferenceIssues(m))
|
|
4355
4360
|
ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
|
|
4361
|
+
for (const issue of retiredIssues(m))
|
|
4362
|
+
ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
|
|
4356
4363
|
// Add-ons released before the floor keep the page refs they shipped with.
|
|
4357
4364
|
if (m.pages !== undefined || compareSemver(m.compatibility.minAdminiumVersion, ADD_ON_INSTALL_FLOOR) >= 0) {
|
|
4358
4365
|
for (const issue of addOnPageRefIssues(m))
|