@uniformdev/cli 19.157.1-alpha.6 → 19.158.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/dist/index.d.mts +47 -1
- package/dist/index.mjs +349 -106
- package/package.json +9 -19
- package/dist/chunk-2TESILZJ.mjs +0 -267
- package/dist/defaultConfig.d.mts +0 -46
- package/dist/defaultConfig.mjs +0 -51
- package/dist/index-CwNHvz9G.d.mts +0 -48
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,48 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
type CLICompositionState = 'preview' | 'published' | number;
|
|
3
|
+
type StateArgs = {
|
|
4
|
+
state: CLICompositionState;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
type SyncMode = 'mirror' | 'createOrUpdate' | 'create';
|
|
8
|
+
type EntityTypes = 'aggregate' | 'asset' | 'category' | 'workflow' | 'component' | 'composition' | 'contentType' | 'dataType' | 'enrichment' | 'entry' | 'entryPattern' | 'locale' | 'componentPattern' | 'projectMapDefinition' | 'projectMapNode' | 'prompt' | 'quirk' | 'redirect' | 'signal' | 'test';
|
|
9
|
+
type SyncFileFormat = 'yaml' | 'json';
|
|
10
|
+
type EntityConfiguration = {
|
|
11
|
+
mode?: SyncMode;
|
|
12
|
+
directory?: string;
|
|
13
|
+
format?: SyncFileFormat;
|
|
14
|
+
disabled?: true;
|
|
15
|
+
};
|
|
16
|
+
type EntityWithStateConfiguration = EntityConfiguration & Partial<StateArgs>;
|
|
17
|
+
type PublishableEntitiesConfiguration = EntityWithStateConfiguration & {
|
|
18
|
+
publish?: boolean;
|
|
19
|
+
};
|
|
20
|
+
type SerializationConfiguration = {
|
|
21
|
+
entitiesConfig: Partial<Record<EntityTypes | 'pattern', {
|
|
22
|
+
pull?: EntityConfiguration;
|
|
23
|
+
push?: EntityConfiguration;
|
|
24
|
+
} & EntityConfiguration> & {
|
|
25
|
+
composition?: PublishableEntitiesConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated will be removed in a future major release. Use the "componentPattern" property instead.
|
|
28
|
+
* It's an alias, so you can safely rename this property.
|
|
29
|
+
*/
|
|
30
|
+
pattern?: PublishableEntitiesConfiguration;
|
|
31
|
+
componentPattern?: PublishableEntitiesConfiguration;
|
|
32
|
+
entry?: PublishableEntitiesConfiguration;
|
|
33
|
+
entryPattern?: PublishableEntitiesConfiguration;
|
|
34
|
+
}>;
|
|
35
|
+
directory: string;
|
|
36
|
+
mode: SyncMode;
|
|
37
|
+
allowEmptySource: boolean;
|
|
38
|
+
format: SyncFileFormat;
|
|
39
|
+
};
|
|
40
|
+
type RecursivePartial<T> = {
|
|
41
|
+
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
42
|
+
};
|
|
43
|
+
type UserDefinedSerializationConfiguration = RecursivePartial<SerializationConfiguration>;
|
|
44
|
+
type CLIConfiguration = {
|
|
45
|
+
serialization: UserDefinedSerializationConfiguration;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type { CLIConfiguration };
|