@enonic-types/core 7.15.0 → 7.15.2
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/index.d.ts +13 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -154,13 +154,13 @@ export type Merge<
|
|
|
154
154
|
export interface ComplexCookie {
|
|
155
155
|
/**
|
|
156
156
|
* The value of the cookie (optional).
|
|
157
|
-
*
|
|
157
|
+
*
|
|
158
158
|
* @type string
|
|
159
159
|
*/
|
|
160
160
|
value: string;
|
|
161
161
|
/**
|
|
162
162
|
* A comment (rfc2109) to document the cookie (optional).
|
|
163
|
-
*
|
|
163
|
+
*
|
|
164
164
|
* @type string
|
|
165
165
|
*/
|
|
166
166
|
comment?: string;
|
|
@@ -538,7 +538,7 @@ export interface LayoutComponent<
|
|
|
538
538
|
? XpLayoutMap[Descriptor]
|
|
539
539
|
: NestedRecord,
|
|
540
540
|
Regions extends
|
|
541
|
-
Record<string, Region<(FragmentComponent | PartComponent | TextComponent)[]>> =
|
|
541
|
+
Record<string, Region<(FragmentComponent | PartComponent | TextComponent)[]>> =
|
|
542
542
|
Record<string, Region<(FragmentComponent | Part | TextComponent)[]>>
|
|
543
543
|
> {
|
|
544
544
|
type: 'layout'
|
|
@@ -578,7 +578,7 @@ export interface PageComponent<
|
|
|
578
578
|
? XpPageMap[Descriptor]
|
|
579
579
|
: NestedRecord,
|
|
580
580
|
Regions extends
|
|
581
|
-
Record<string, Region<(FragmentComponent | LayoutComponent | PartComponent | TextComponent)[]>> =
|
|
581
|
+
Record<string, Region<(FragmentComponent | LayoutComponent | PartComponent | TextComponent)[]>> =
|
|
582
582
|
Record<string, Region<(FragmentComponent | Layout | Part | TextComponent)[]>>
|
|
583
583
|
> {
|
|
584
584
|
config: Config
|
|
@@ -677,15 +677,19 @@ export interface Content<
|
|
|
677
677
|
x: XpXData;
|
|
678
678
|
attachments: Record<string, Attachment>;
|
|
679
679
|
publish?: PublishInfo;
|
|
680
|
-
workflow?:
|
|
681
|
-
|
|
682
|
-
checks?: Record<string, 'PENDING' | 'REJECTED' | 'APPROVED'>;
|
|
683
|
-
};
|
|
684
|
-
inherit?: ('CONTENT' | 'PARENT' | 'NAME' | 'SORT')[];
|
|
680
|
+
workflow?: Workflow;
|
|
681
|
+
inherit?: ContentInheritValue[];
|
|
685
682
|
variantOf?: string;
|
|
686
683
|
fragment?: Type extends 'portal:fragment' ? _Component : never;
|
|
687
684
|
}
|
|
688
685
|
|
|
686
|
+
export type Workflow = {
|
|
687
|
+
state: 'IN_PROGRESS' | 'PENDING_APPROVAL' | 'REJECTED' | 'READY';
|
|
688
|
+
checks?: Record<string, 'PENDING' | 'REJECTED' | 'APPROVED'>;
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
export type ContentInheritValue = 'CONTENT' | 'PARENT' | 'NAME' | 'SORT';
|
|
692
|
+
|
|
689
693
|
// Compliant with npm module ts-brand
|
|
690
694
|
type Brand<
|
|
691
695
|
Base,
|