@contrail/cli 3.3.4 → 3.3.6-alpha.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/README.md CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
17
17
  $ contrail COMMAND
18
18
  running command...
19
19
  $ contrail (--version)
20
- @contrail/cli/3.3.4 darwin-arm64 node-v20.19.4
20
+ @contrail/cli/3.3.6-alpha.0 darwin-arm64 node-v20.9.0
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
@@ -1358,7 +1358,7 @@ Upload Types Org. OptionSets are loaded from .yml files in the types directory.
1358
1358
 
1359
1359
  ```
1360
1360
  USAGE
1361
- $ contrail types uploadTypes [-l error|warn|info|debug] [-e true|false] [-d <value>]
1361
+ $ contrail types uploadTypes [-l error|warn|info|debug] [-e true|false] [-d <value>] [-m]
1362
1362
 
1363
1363
  FLAGS
1364
1364
  -d, --dir=<value> [default: .] The directory from which to export the option set data. Defaults to the
@@ -1367,6 +1367,8 @@ FLAGS
1367
1367
  <options: true|false>
1368
1368
  -l, --logLevel=<option> The Log Level
1369
1369
  <options: error|warn|info|debug>
1370
+ -m, --merge Merge types and type properties without deleting missing ones. Only adds/updates
1371
+ those present in the source files.
1370
1372
 
1371
1373
  DESCRIPTION
1372
1374
  Upload Types Org. OptionSets are loaded from .yml files in the types directory.
@@ -0,0 +1,123 @@
1
+ export declare const BASE_MINIMAL_TYPE: {
2
+ pk: number;
3
+ id: string;
4
+ createdOn: string;
5
+ updatedOn: string;
6
+ createdById: string;
7
+ updatedById: string;
8
+ isArchived: boolean;
9
+ orgId: string;
10
+ slug: string;
11
+ label: string;
12
+ typePath: string;
13
+ typeRootId: string;
14
+ parentId: any;
15
+ typeProperties: any[];
16
+ };
17
+ export declare const BASE_TYPE_WITH_PROPERTIES: {
18
+ pk: number;
19
+ id: string;
20
+ createdOn: string;
21
+ updatedOn: string;
22
+ createdById: string;
23
+ updatedById: string;
24
+ isArchived: boolean;
25
+ orgId: string;
26
+ slug: string;
27
+ label: string;
28
+ typePath: string;
29
+ typeRootId: string;
30
+ parentId: any;
31
+ typePolicyIds: any[];
32
+ typePolicies: any[];
33
+ typeProperties: {
34
+ pk: number;
35
+ id: string;
36
+ createdOn: string;
37
+ updatedOn: string;
38
+ createdById: string;
39
+ updatedById: string;
40
+ isArchived: boolean;
41
+ orgId: string;
42
+ propertyType: string;
43
+ slug: string;
44
+ label: string;
45
+ editable: boolean;
46
+ core: boolean;
47
+ typePropertyOptionSetId: any;
48
+ typePropertyUserListId: any;
49
+ carryOverBehavior: any;
50
+ carryOverDefault: any;
51
+ copyBehavior: any;
52
+ copyDefault: any;
53
+ formula: any;
54
+ numberFormat: any;
55
+ referencedTypeRootSlug: any;
56
+ referencedTypeRole: any;
57
+ referencedTypeFilterProperties: any;
58
+ referencedTypeId: any;
59
+ referencedTypePath: any;
60
+ defaultValue: any;
61
+ propertyLevel: any;
62
+ formulaFunction: any;
63
+ validationFunction: any;
64
+ description: any;
65
+ apiDetails: any;
66
+ notes: any;
67
+ searchable: boolean;
68
+ isFederationProperty: boolean;
69
+ isUniqueProperty: boolean;
70
+ isUniquePropertyInFamily: boolean;
71
+ required: boolean;
72
+ sequenceSeedValue: number;
73
+ optionsSet: any;
74
+ inherited: boolean;
75
+ used: boolean;
76
+ overriddenPropertySlugs: any[];
77
+ typePropertyPolicyIds: any[];
78
+ }[];
79
+ typePropertyPolicies: any[];
80
+ typeRuleSets: any[];
81
+ typeOptionSetHierarchyLinks: any[];
82
+ relations: {
83
+ org: {
84
+ name: string;
85
+ entityType: string;
86
+ cardinality: string;
87
+ };
88
+ content: {
89
+ name: string;
90
+ entityType: string;
91
+ cardinality: string;
92
+ };
93
+ comments: {
94
+ name: string;
95
+ entityType: string;
96
+ cardinality: string;
97
+ };
98
+ createdBy: {
99
+ name: string;
100
+ entityType: string;
101
+ cardinality: string;
102
+ };
103
+ updatedBy: {
104
+ name: string;
105
+ entityType: string;
106
+ cardinality: string;
107
+ };
108
+ workspace: {
109
+ name: string;
110
+ entityType: string;
111
+ cardinality: string;
112
+ };
113
+ primaryViewable: {
114
+ name: string;
115
+ entityType: string;
116
+ cardinality: string;
117
+ };
118
+ };
119
+ typeInterfaces: {
120
+ slug: string;
121
+ label: string;
122
+ }[];
123
+ };