Skip to content

Commit 0968e74

Browse files
author
naman-contentstack
committed
fixed failed test case and updated workflow file
1 parent c2bb612 commit 0968e74

5 files changed

Lines changed: 2937 additions & 1117 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
- run: npm ci
2727
- run: npm run build --if-present
28+
- run: npm i -g @contentstack/cli
29+
- run: csdx plugins:install contentstack-cli-tsgen
30+
- run: csdx config:set:region ${{secrets.REGION}}
31+
- run: csdx auth:tokens:add -a ${{ secrets.TOKEN_ALIAS }} --delivery -k ${{ secrets.APIKEY }} --token ${{ secrets.DELIVERYKEY }} -e ${{ secrets.ENVIRONMENT }}
2832
- run: npm test
2933
env:
30-
TOKEN_ALIAS: ${{secrets.TOKEN_ALIAS}}
34+
TOKEN_ALIAS: ${{ secrets.TOKEN_ALIAS }}

contentstack/generated.d.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
export interface PublishDetails {
2+
environment: string;
3+
locale: string;
4+
time: string;
5+
user: string;
6+
}
7+
8+
export interface File {
9+
uid: string;
10+
created_at: string;
11+
updated_at: string;
12+
created_by: string;
13+
updated_by: string;
14+
content_type: string;
15+
file_size: string;
16+
tags: string[];
17+
filename: string;
18+
url: string;
19+
ACL: any[] | object;
20+
is_dir: boolean;
21+
parent_uid: string;
22+
_version: number;
23+
title: string;
24+
_metadata?: object;
25+
publish_details: PublishDetails;
26+
}
27+
28+
export interface Link {
29+
title: string;
30+
href: string;
31+
}
32+
33+
export interface Taxonomy {
34+
taxonomy_uid: string;
35+
max_terms?: number;
36+
mandatory: boolean;
37+
non_localizable: boolean;
38+
}
39+
40+
export interface Home {
41+
/** Version */
42+
_version: number;
43+
/** Title */
44+
title: string;
45+
}

0 commit comments

Comments
 (0)