Skip to content

Commit 53efdc5

Browse files
authored
Merge pull request #823 from contentstack/staging
Merge Staging to Main
2 parents d17d2dc + 15e4795 commit 53efdc5

110 files changed

Lines changed: 7031 additions & 2711 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 4047 additions & 1049 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-auth/1.3.7 darwin-arm64 node-v18.15.0
21+
@contentstack/cli-auth/1.3.8 darwin-x64 node-v18.16.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-auth/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-auth",
33
"description": "Contentstack CLI plugin for authentication activities",
4-
"version": "1.3.7",
4+
"version": "1.3.8",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
@@ -21,8 +21,8 @@
2121
"test:unit": "mocha --forbid-only \"test/unit/*.test.ts\""
2222
},
2323
"dependencies": {
24-
"@contentstack/cli-command": "^1.2.7",
25-
"@contentstack/cli-utilities": "^1.4.3",
24+
"@contentstack/cli-command": "^1.2.8",
25+
"@contentstack/cli-utilities": "^1.4.4",
2626
"chalk": "^4.0.0",
2727
"debug": "^4.1.1",
2828
"inquirer": "8.2.4",
@@ -85,4 +85,4 @@
8585
}
8686
},
8787
"repository": "contentstack/cli"
88-
}
88+
}

packages/contentstack-auth/src/commands/auth/login.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
authHandler as oauthHandler,
77
flags,
88
managementSDKClient,
9+
FlagInput
910
} from '@contentstack/cli-utilities';
1011

1112
import { User } from '../../interfaces';
@@ -23,7 +24,7 @@ export default class LoginCommand extends Command {
2324
'$ csdx auth:login --username <username> --password <password>',
2425
];
2526

26-
static flags = {
27+
static flags: FlagInput = {
2728
username: flags.string({
2829
char: 'u',
2930
description: 'User name',

packages/contentstack-auth/src/commands/auth/logout.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
flags,
88
authHandler as oauthHandler,
99
managementSDKClient,
10+
FlagInput,
1011
} from '@contentstack/cli-utilities';
1112

1213
import { authHandler } from '../../utils';
@@ -16,7 +17,7 @@ export default class LogoutCommand extends Command {
1617
static description = 'User session logout';
1718
static examples = ['$ csdx auth:logout', '$ csdx auth:logout -y', '$ csdx auth:logout --yes'];
1819

19-
static flags = {
20+
static flags: FlagInput = {
2021
yes: flags.boolean({
2122
char: 'y',
2223
description: 'Force log out by skipping the confirmation',

packages/contentstack-auth/src/commands/auth/tokens/add.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
printFlagDeprecation,
88
flags,
99
managementSDKClient,
10+
FlagInput,
1011
} from '@contentstack/cli-utilities';
1112
import { askTokenType } from '../../../utils/interactive';
1213
import { tokenValidation } from '../../../utils';
@@ -28,7 +29,7 @@ export default class TokensAddCommand extends Command {
2829
'$ csdx auth:tokens:add --alias <alias> --stack-api-key <stack api key> --delivery -e <environment> --token <delivery token>',
2930
];
3031

31-
static flags = {
32+
static flags: FlagInput = {
3233
alias: flags.string({ char: 'a', description: 'Name of the token alias' }),
3334
delivery: flags.boolean({
3435
char: 'd',

packages/contentstack-auth/src/commands/auth/tokens/remove.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Command } from '@contentstack/cli-command';
2-
import { logger, cliux, configHandler, flags } from '@contentstack/cli-utilities';
2+
import { logger, cliux, configHandler, flags, FlagInput } from '@contentstack/cli-utilities';
33

44
export default class TokensRemoveCommand extends Command {
55
static description = 'Removes selected tokens';
66
static examples = ['$ csdx auth:tokens:remove', '$ csdx auth:tokens:remove -a <alias>'];
7-
static flags = {
7+
static flags: FlagInput = {
88
alias: flags.string({ char: 'a', description: 'Token alias' }),
99
ignore: flags.boolean({ char: 'i', description: 'Ignore' }),
1010
};
@@ -26,7 +26,8 @@ export default class TokensRemoveCommand extends Command {
2626
if (tokens && Object.keys(tokens).length > 0) {
2727
Object.keys(tokens).forEach(function (item) {
2828
tokenOptions.push(
29-
`${item}: ${tokens[item].token} : ${tokens[item].apiKey}${tokens[item].environment ? ' : ' + tokens[item].environment + ' ' : ''
29+
`${item}: ${tokens[item].token} : ${tokens[item].apiKey}${
30+
tokens[item].environment ? ' : ' + tokens[item].environment + ' ' : ''
3031
}: ${tokens[item].type}`,
3132
);
3233
});

packages/contentstack-auth/tsconfig.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"transpileOnly": true
44
},
55
"compilerOptions": {
6-
"declaration": false,
6+
"declaration": true,
77
"importHelpers": true,
88
"module": "commonjs",
99
"outDir": "lib",
@@ -16,8 +16,5 @@
1616
},
1717
"include": [
1818
"src/**/*"
19-
],
20-
"exclude": [
21-
"src/**/*.d.ts"
2219
]
2320
}

packages/contentstack-bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
1515
$ csdx COMMAND
1616
running command...
1717
$ csdx (--version)
18-
@contentstack/cli-cm-bootstrap/1.4.7 darwin-arm64 node-v18.15.0
18+
@contentstack/cli-cm-bootstrap/1.4.8 darwin-x64 node-v18.16.0
1919
$ csdx --help [COMMAND]
2020
USAGE
2121
$ csdx COMMAND

packages/contentstack-bootstrap/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-bootstrap",
33
"description": "Bootstrap contentstack apps",
4-
"version": "1.4.7",
4+
"version": "1.4.8",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
@@ -17,9 +17,9 @@
1717
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
1818
},
1919
"dependencies": {
20-
"@contentstack/cli-cm-seed": "^1.4.7",
21-
"@contentstack/cli-command": "^1.2.7",
22-
"@contentstack/cli-utilities": "^1.4.3",
20+
"@contentstack/cli-cm-seed": "^1.4.8",
21+
"@contentstack/cli-command": "^1.2.8",
22+
"@contentstack/cli-utilities": "^1.4.4",
2323
"inquirer": "8.2.4",
2424
"mkdirp": "^1.0.4",
2525
"tar": "^6.1.13"
@@ -73,4 +73,4 @@
7373
}
7474
},
7575
"repository": "contentstack/cli"
76-
}
76+
}

0 commit comments

Comments
 (0)