File tree Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Expand file tree Collapse file tree 4 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ fileignoreconfig:
77 - filename: src/commands/tsgen.ts
88 checksum: b797eacb07acbf02dc0092c2453a6e13360f3b4c5fb54dc7f9a762cdd092fd0a
99 - filename: package-lock.json
10- checksum: 306cc0f75f3685ad2651283d15db8052026e9c65314e009b6a3e5fc26a872bbc
10+ checksum: 47f65f035595b46e68adc7baba9fcad24e41453057a3cfd1eeace54a8e93d34c
1111version: "1.0"
Original file line number Diff line number Diff line change 11{
22 "name" : " contentstack-cli-tsgen" ,
33 "description" : " Generate TypeScript typings from a Stack." ,
4- "version" : " 4.1 .0" ,
4+ "version" : " 4.2 .0" ,
55 "author" : " Michael Davis" ,
66 "bugs" : " https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/issues" ,
77 "dependencies" : {
88 "@contentstack/cli-command" : " ^1.5.0" ,
99 "@contentstack/cli-utilities" : " ^1.11.0" ,
10- "@contentstack/types-generator" : " ^3.2 .0" ,
10+ "@contentstack/types-generator" : " ^3.3 .0" ,
1111 "dotenv" : " ^16.4.7"
1212 },
1313 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
3434 const defaultRegions = [
3535 "US" ,
3636 "EU" ,
37+ "AU" ,
3738 "AZURE_NA" ,
3839 "AZURE_EU" ,
3940 "GCP_NA" ,
@@ -86,6 +87,11 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
8687 default : false ,
8788 } ) ,
8889
90+ "include-editable-tags" : flags . boolean ( {
91+ description : "include editable tags in generated types" ,
92+ default : false ,
93+ } ) ,
94+
8995 "api-type" : flags . string ( {
9096 default : "rest" ,
9197 multiple : false ,
@@ -110,6 +116,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
110116 const filePath = flags . output ;
111117 const branch = flags . branch ;
112118 const includeSystemFields = flags [ "include-system-fields" ] ;
119+ const includeEditableTags = flags [ "include-editable-tags" ] ;
113120 const namespace = flags . namespace ;
114121
115122 const outputPath = createOutputPath ( filePath ) ;
@@ -192,6 +199,7 @@ export default class TypeScriptCodeGeneratorCommand extends Command {
192199 includeDocumentation : includeDocumentation ,
193200 prefix,
194201 systemFields : includeSystemFields ,
202+ isEditableTags : includeEditableTags ,
195203 } ) ;
196204
197205 fs . writeFileSync ( outputPath , result || "" ) ;
You can’t perform that action at this time.
0 commit comments