-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.ts
More file actions
29 lines (25 loc) · 825 Bytes
/
index.ts
File metadata and controls
29 lines (25 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { AnyProperty, SystemFields } from "../../utility/fields";
import { Queryable, SystemFunction } from "../../utility/operations";
import { VariantGroupVariants, VariantGroupVariant } from "./variants";
export interface VariantGroup extends SystemFields, SystemFunction<VariantGroup> {
variants(): VariantGroupVariants
variants(variant: string): VariantGroupVariant
}
export interface VariantGroups extends Queryable<VariantGroup, {uid: VariantGroupData}> {
}
export interface VariantGroupData extends AnyProperty {
name: string
scope: Array<Scope>
}
export interface Scope {
module: string
environments?: Array<string>
locales?: Array<string>
acl: ACL
}
export interface ACL extends AnyProperty {
read?: boolean
write?: boolean
create?: boolean
update?: boolean
}