@diagonal-hq/cli 0.8.1 → 0.9.0
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/README.md +36 -11
- package/dist/cli.mjs +938 -583
- package/dist/index.d.ts +6 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ export declare function defineResource<const TFields extends Record<string, Fiel
|
|
|
157
157
|
export type PageMetaResolver = { readonly type: string; readonly [key: string]: unknown };
|
|
158
158
|
|
|
159
159
|
export type PageRouteParam = {
|
|
160
|
-
/** The resource whose record the parameter names, as `Resources.<Name
|
|
160
|
+
/** The resource whose record the parameter names, as `Resources.<Name>.slug`. */
|
|
161
161
|
resource: ResourceReference;
|
|
162
162
|
/** The field the parameter matches. Defaults to the record id. */
|
|
163
163
|
lookupField?: string | null;
|
|
@@ -170,7 +170,7 @@ export type PageAuthorizer =
|
|
|
170
170
|
| null
|
|
171
171
|
| 'authenticated'
|
|
172
172
|
| {
|
|
173
|
-
/** The resource whose signed-in records may view the page, as `Resources.<Name
|
|
173
|
+
/** The resource whose signed-in records may view the page, as `Resources.<Name>.slug`. */
|
|
174
174
|
resource?: ResourceReference | null;
|
|
175
175
|
/** Permission ids. A viewer needs any one of them. */
|
|
176
176
|
permissions?: readonly string[];
|
|
@@ -227,9 +227,10 @@ export type NavigationDefinition = { id: string; items: readonly NavigationItem[
|
|
|
227
227
|
export declare function defineNavigation<const T extends NavigationDefinition>(navigation: T): T;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* The slug of a resource: its file name in `resources/`. Use
|
|
231
|
-
* from `@app/generated/resources`, which `diagonal check`
|
|
232
|
-
* and the build catch a wrong name. A slug string builds
|
|
230
|
+
* The slug of a resource: its file name in `resources/`. Use
|
|
231
|
+
* `Resources.<Name>.slug` from `@app/generated/resources`, which `diagonal check`
|
|
232
|
+
* writes, so the editor and the build catch a wrong name. A slug string builds
|
|
233
|
+
* with a warning.
|
|
233
234
|
*/
|
|
234
235
|
export type ResourceReference = string;
|
|
235
236
|
|