@uniformdev/cli 19.61.1 → 19.62.1-alpha.127

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/LICENSE.txt CHANGED
@@ -1,2 +1,2 @@
1
- © 2023 Uniform Systems, Inc. All Rights Reserved.
1
+ © 2024 Uniform Systems, Inc. All Rights Reserved.
2
2
  See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
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';
8
+ type EntityTypes = 'aggregate' | 'asset' | 'category' | 'component' | 'composition' | 'contentType' | 'dataType' | 'enrichment' | 'entry' | 'entryPattern' | 'locale' | 'componentPattern' | 'projectMapDefinition' | 'projectMapNode' | 'prompt' | 'quirk' | 'redirect' | 'signal' | 'test';
4
9
  type SyncFileFormat = 'yaml' | 'json';
5
10
  type EntityConfiguration = {
6
11
  mode?: SyncMode;
@@ -8,19 +13,28 @@ 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 = {
15
- entitiesConfig: Partial<Record<EntityTypes, {
21
+ entitiesConfig: Partial<Record<EntityTypes | 'pattern', {
16
22
  pull?: EntityConfiguration;
17
23
  push?: EntityConfiguration;
18
24
  } & EntityConfiguration> & {
19
- composition?: CompositionAndPatternConfiguration;
20
- pattern?: CompositionAndPatternConfiguration;
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;
21
34
  }>;
22
35
  directory: string;
23
36
  mode: SyncMode;
37
+ allowEmptySource: boolean;
24
38
  format: SyncFileFormat;
25
39
  };
26
40
  type RecursivePartial<T> = {
@@ -31,4 +45,4 @@ type CLIConfiguration = {
31
45
  serialization: UserDefinedSerializationConfiguration;
32
46
  };
33
47
 
34
- export { CLIConfiguration };
48
+ export type { CLIConfiguration };