@uniformdev/cli 20.48.1-alpha.22 → 20.49.1
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/defaultConfig.d.mts +1 -1
- package/dist/defaultConfig.mjs +2 -1
- package/dist/index-ZI3elAaF.d.mts +44 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +769 -424
- package/package.json +9 -9
package/dist/defaultConfig.d.mts
CHANGED
package/dist/defaultConfig.mjs
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
type CLICompositionState = 'preview' | 'published' | number;
|
|
2
|
+
type StateArgs = {
|
|
3
|
+
state: CLICompositionState;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
type SyncMode = 'mirror' | 'createOrUpdate' | 'create';
|
|
7
|
+
type EntityTypes = 'aggregate' | 'asset' | 'category' | 'workflow' | 'webhook' | 'component' | 'composition' | 'contentType' | 'dataType' | 'enrichment' | 'entry' | 'entryPattern' | 'locale' | 'componentPattern' | 'compositionPattern' | 'policyDocument' | 'projectMapDefinition' | 'projectMapNode' | 'previewUrl' | 'previewViewport' | 'prompt' | 'quirk' | 'redirect' | 'signal' | 'test';
|
|
8
|
+
type SyncFileFormat = 'yaml' | 'json';
|
|
9
|
+
type EntityConfiguration = {
|
|
10
|
+
mode?: SyncMode;
|
|
11
|
+
directory?: string;
|
|
12
|
+
format?: SyncFileFormat;
|
|
13
|
+
disabled?: true;
|
|
14
|
+
};
|
|
15
|
+
type EntityWithStateConfiguration = EntityConfiguration & Partial<StateArgs>;
|
|
16
|
+
type PublishableEntitiesConfiguration = EntityWithStateConfiguration & {
|
|
17
|
+
publish?: boolean;
|
|
18
|
+
};
|
|
19
|
+
type SerializationEntitiesConfiguration = Record<EntityTypes, {
|
|
20
|
+
pull?: EntityConfiguration;
|
|
21
|
+
push?: EntityConfiguration;
|
|
22
|
+
} & EntityConfiguration> & {
|
|
23
|
+
composition?: PublishableEntitiesConfiguration;
|
|
24
|
+
componentPattern?: PublishableEntitiesConfiguration;
|
|
25
|
+
compositionPattern?: PublishableEntitiesConfiguration;
|
|
26
|
+
entry?: PublishableEntitiesConfiguration;
|
|
27
|
+
entryPattern?: PublishableEntitiesConfiguration;
|
|
28
|
+
};
|
|
29
|
+
type SerializationConfiguration = {
|
|
30
|
+
entitiesConfig: Partial<SerializationEntitiesConfiguration>;
|
|
31
|
+
directory: string;
|
|
32
|
+
mode: SyncMode;
|
|
33
|
+
allowEmptySource: boolean;
|
|
34
|
+
format: SyncFileFormat;
|
|
35
|
+
};
|
|
36
|
+
type RecursivePartial<T> = {
|
|
37
|
+
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
38
|
+
};
|
|
39
|
+
type UserDefinedSerializationConfiguration = RecursivePartial<SerializationConfiguration>;
|
|
40
|
+
type CLIConfiguration = {
|
|
41
|
+
serialization: UserDefinedSerializationConfiguration;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type { CLIConfiguration as C, EntityTypes as E };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { C as CLIConfiguration } from './index-
|
|
2
|
+
export { C as CLIConfiguration } from './index-ZI3elAaF.mjs';
|