Skip to content

Commit 6b60907

Browse files
Merge pull request #103 from contentstack/development
DX | 07-07-2025 | Release
2 parents d0df436 + 7c47258 commit 6b60907

31 files changed

Lines changed: 402 additions & 1010 deletions

.talismanrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ fileignoreconfig:
66
checksum: 7c3993212b359b175c3665b4efb22dd35163518e4240031c4269427cbef36b93
77
- filename: .husky/pre-commit
88
checksum: 5baabd7d2c391648163f9371f0e5e9484f8fb90fa2284cfc378732ec3192c193
9+
- filename: src/generateTS/factory.ts
10+
checksum: d812bfa707bea8c9f2508e96219406b5b9c3b5bf061b812b7182c92e415e53b1
11+
- filename: tests/integration/generateTS/generateTS.test.ts
12+
checksum: 328090da57e8cb2dd616091f3336b6da77a253f97ddfd47e3e1dd683260e58eb
13+
- filename: src/generateTS/shared/cslp-helpers.ts
14+
checksum: 55aa5c0c9ec0cd6c6139d4e9e4f1666abc7bc083313ccc2bf410c56935f35ef2
915
version: "1.0"

README.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ This library helps to generate TypeScript type definition for the content types
66

77
`$ npm install @contentstack/types-generator`
88

9-
109
## Migration
11-
Refer to the [Migration Guide](https://github.com/contentstack/types-generator/blob/main/MIGRATION.md) version 3 if you are migrating from version 2 or older.
1210

11+
Refer to the [Migration Guide](https://github.com/contentstack/types-generator/blob/main/MIGRATION.md) version 3 if you are migrating from version 2 or older.
1312

1413
## Usage
1514

@@ -33,17 +32,17 @@ This is an asynchronous method which generates Typescript type definition of the
3332

3433
**Input:**
3534

36-
| Property Name | Description | Data type | Accepted values | Mandatory | Default value |
37-
| -------------------- | ---------------------------------------------------------------------------------- | --------- | ------------------------------------------------------------ | --------- | ------------- |
38-
| token | Unique identifier used for authorization | String | | Yes | |
39-
| tokenType | Type of token being provided (Currently we are supporting only delivery token) | String | delivery | Yes | |
40-
| apiKey | Stack API key | String | | Yes | |
41-
| environment | Name of the environment (example: development, staging, production) | String | | Yes | |
42-
| region | Contentstack API region | String | US (for AWS NA), EU (for AWS EU), AZURE_NA, AZURE_EU, GCP_NA | Yes | |
43-
| branch | Stack branch name | String | | No | |
44-
| prefix | Optional prefix to add for each interface | String | | No | |
45-
| includeDocumentation | To add content type documentation in the generated file | boolean | true, false | No | true |
46-
| systemFields | Boolean flag indicating whether to include system-generated fields in the response | boolean | true, false | No | false |
35+
| Property Name | Description | Data type | Accepted values | Mandatory | Default value |
36+
| -------------------- | ---------------------------------------------------------------------------------- | --------- | ----------------------------------------------------------------------------- | --------- | ------------- |
37+
| token | Unique identifier used for authorization | String | | Yes | |
38+
| tokenType | Type of token being provided (Currently we are supporting only delivery token) | String | delivery | Yes | |
39+
| apiKey | Stack API key | String | | Yes | |
40+
| environment | Name of the environment (example: development, staging, production) | String | | Yes | |
41+
| region | Contentstack API region | String | US (for AWS NA), EU (for AWS EU), AU (for AWS AU), AZURE_NA, AZURE_EU, GCP_NA | Yes | |
42+
| branch | Stack branch name | String | | No | |
43+
| prefix | Optional prefix to add for each interface | String | | No | |
44+
| includeDocumentation | To add content type documentation in the generated file | boolean | true, false | No | true |
45+
| systemFields | Boolean flag indicating whether to include system-generated fields in the response | boolean | true, false | No | false |
4746

4847
**Output:**
4948

@@ -169,14 +168,14 @@ This is an asynchronous method which generates Typescript type definition of the
169168

170169
**Input:**
171170

172-
| Property Name | Description | Data type | Accepted values | Mandatory |
173-
| ------------- | ----------------------------------------------------------------------------------------- | --------- | ------------------------------------------------------------ | --------- |
174-
| token | Unique identifier used for authorization. This should be the delivery token of the stack. | String | | Yes |
175-
| apiKey | Stack API key | String | | Yes |
176-
| environment | Name of the environment (example: development, staging, production) | String | | Yes |
177-
| region | Contentstack API region | String | US (for AWS NA), EU (for AWS EU), AZURE_NA, AZURE_EU, GCP_NA | Yes |
178-
| branch | Stack branch name | String | | No |
179-
| namespace | Identifies the specific namespace within schema | String | | No |
171+
| Property Name | Description | Data type | Accepted values | Mandatory |
172+
| ------------- | ----------------------------------------------------------------------------------------- | --------- | ----------------------------------------------------------------------------- | --------- |
173+
| token | Unique identifier used for authorization. This should be the delivery token of the stack. | String | | Yes |
174+
| apiKey | Stack API key | String | | Yes |
175+
| environment | Name of the environment (example: development, staging, production) | String | | Yes |
176+
| region | Contentstack API region | String | US (for AWS NA), EU (for AWS EU), AU (for AWS AU), AZURE_NA, AZURE_EU, GCP_NA | Yes |
177+
| branch | Stack branch name | String | | No |
178+
| namespace | Identifies the specific namespace within schema | String | | No |
180179

181180
**Output:**
182181

0 commit comments

Comments
 (0)