@nordcraft/core 2.0.8 → 2.0.9
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.
|
@@ -172,7 +172,7 @@ export interface Component {
|
|
|
172
172
|
customCode?: Nullable<boolean>;
|
|
173
173
|
}
|
|
174
174
|
export interface ComponentFormula extends NordcraftMetadata {
|
|
175
|
-
name
|
|
175
|
+
name?: string;
|
|
176
176
|
arguments?: Nullable<Array<{
|
|
177
177
|
name: string;
|
|
178
178
|
testValue: any;
|
|
@@ -182,7 +182,7 @@ export interface ComponentFormula extends NordcraftMetadata {
|
|
|
182
182
|
formula: Formula;
|
|
183
183
|
}
|
|
184
184
|
export interface ComponentWorkflow extends NordcraftMetadata {
|
|
185
|
-
name
|
|
185
|
+
name?: string;
|
|
186
186
|
parameters: Array<{
|
|
187
187
|
name: string;
|
|
188
188
|
testValue: any;
|
|
@@ -209,7 +209,14 @@ export interface RouteDeclaration {
|
|
|
209
209
|
testValue: any;
|
|
210
210
|
}>;
|
|
211
211
|
}
|
|
212
|
+
export interface ResponseHeaders {
|
|
213
|
+
[key: string]: Nullable<Formula | string>;
|
|
214
|
+
}
|
|
212
215
|
export interface PageRoute extends RouteDeclaration {
|
|
216
|
+
response?: Nullable<{
|
|
217
|
+
headers?: Nullable<ResponseHeaders>;
|
|
218
|
+
status?: Nullable<Formula>;
|
|
219
|
+
}>;
|
|
213
220
|
info?: Nullable<{
|
|
214
221
|
language?: Nullable<{
|
|
215
222
|
formula: Formula;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.types.js","sourceRoot":"","sources":["../../src/component/component.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.types.js","sourceRoot":"","sources":["../../src/component/component.types.ts"],"names":[],"mappings":"AA0SA,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,+BAAe,CAAA;AACjB,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB"}
|
package/package.json
CHANGED
|
@@ -211,7 +211,7 @@ export interface Component {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
export interface ComponentFormula extends NordcraftMetadata {
|
|
214
|
-
name
|
|
214
|
+
name?: string
|
|
215
215
|
arguments?: Nullable<Array<{ name: string; testValue: any }>>
|
|
216
216
|
memoize?: Nullable<boolean>
|
|
217
217
|
exposeInContext?: Nullable<boolean>
|
|
@@ -219,7 +219,7 @@ export interface ComponentFormula extends NordcraftMetadata {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
export interface ComponentWorkflow extends NordcraftMetadata {
|
|
222
|
-
name
|
|
222
|
+
name?: string
|
|
223
223
|
parameters: Array<{ name: string; testValue: any }>
|
|
224
224
|
callbacks?: Nullable<Array<{ name: string; testValue: any }>>
|
|
225
225
|
actions: ActionModel[]
|
|
@@ -241,7 +241,17 @@ export interface RouteDeclaration {
|
|
|
241
241
|
query: Record<string, { name: string; testValue: any }>
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
export interface ResponseHeaders {
|
|
245
|
+
[key: string]: Nullable<Formula | string>
|
|
246
|
+
}
|
|
247
|
+
|
|
244
248
|
export interface PageRoute extends RouteDeclaration {
|
|
249
|
+
response?: Nullable<{
|
|
250
|
+
// Allow overriding response headers for a page render. For example to set a custom cache-control header for a page
|
|
251
|
+
// or specify a Location along with a 3xx status code to redirect the user to another page
|
|
252
|
+
headers?: Nullable<ResponseHeaders>
|
|
253
|
+
status?: Nullable<Formula>
|
|
254
|
+
}>
|
|
245
255
|
// Information for the <head> element
|
|
246
256
|
// only relevant for pages - not for regular
|
|
247
257
|
// components
|