@uniformdev/cli 19.80.1-alpha.149 → 19.80.1-alpha.192

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 CHANGED
@@ -1,6 +1,11 @@
1
1
  #!/usr/bin/env node
2
+ type CLICompositionState = 'preview' | 'published' | number;
3
+ type StateArgs = {
4
+ state: CLICompositionState;
5
+ };
6
+
2
7
  type SyncMode = 'mirror' | 'createOrUpdate' | 'create';
3
- type EntityTypes = 'category' | 'dataType' | 'quirk' | 'test' | 'signal' | 'enrichment' | 'aggregate' | 'component' | 'composition' | 'pattern' | 'projectMapDefinition' | 'projectMapNode' | 'redirect' | 'entry' | 'contentType' | 'asset';
8
+ type EntityTypes = 'category' | 'dataType' | 'quirk' | 'test' | 'signal' | 'enrichment' | 'aggregate' | 'component' | 'composition' | 'pattern' | 'projectMapDefinition' | 'projectMapNode' | 'redirect' | 'entry' | 'contentType' | 'asset' | 'locale';
4
9
  type SyncFileFormat = 'yaml' | 'json';
5
10
  type EntityConfiguration = {
6
11
  mode?: SyncMode;
@@ -8,7 +13,8 @@ type EntityConfiguration = {
8
13
  format?: SyncFileFormat;
9
14
  disabled?: true;
10
15
  };
11
- type CompositionAndPatternConfiguration = EntityConfiguration & {
16
+ type EntityWithStateConfiguration = EntityConfiguration & Partial<StateArgs>;
17
+ type PublishableEntitiesConfiguration = EntityWithStateConfiguration & {
12
18
  publish?: boolean;
13
19
  };
14
20
  type SerializationConfiguration = {
@@ -16,8 +22,9 @@ type SerializationConfiguration = {
16
22
  pull?: EntityConfiguration;
17
23
  push?: EntityConfiguration;
18
24
  } & EntityConfiguration> & {
19
- composition?: CompositionAndPatternConfiguration;
20
- pattern?: CompositionAndPatternConfiguration;
25
+ composition?: PublishableEntitiesConfiguration;
26
+ pattern?: PublishableEntitiesConfiguration;
27
+ entry?: EntityWithStateConfiguration;
21
28
  }>;
22
29
  directory: string;
23
30
  mode: SyncMode;