@contentstack/cli-cm-seed 1.3.0 → 1.4.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.
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ // @ts-nocheck
3
4
  const error_1 = require("./error");
4
5
  const cli_utilities_1 = require("@contentstack/cli-utilities");
5
6
  class ContentstackClient {
@@ -60,7 +61,15 @@ class ContentstackClient {
60
61
  async getStacks(org_uid, skip = 0, stacks = []) {
61
62
  try {
62
63
  const client = await this.instance;
63
- const response = await client.organization(org_uid).stacks({ limit: this.limit, include_count: true, skip: skip });
64
+ const response = await client
65
+ .stack({ organization_uid: org_uid })
66
+ .query({
67
+ limit: this.limit,
68
+ include_count: true,
69
+ skip: skip,
70
+ query: {}
71
+ })
72
+ .find();
64
73
  stacks = stacks.concat(response.items.map((s) => {
65
74
  return {
66
75
  uid: s.uid,
@@ -9,6 +9,6 @@ async function run(options) {
9
9
  process.chdir(options.tmpPath);
10
10
  // moving here to fix jest testing bug
11
11
  const { parametersWithAuthToken } = require('@contentstack/cli-cm-import/src/lib/util/import-flags');
12
- await parametersWithAuthToken(options.authToken, options.api_key, importPath, '', options.cmaHost, '', {});
12
+ await parametersWithAuthToken(options.api_key, importPath, '', options.cmaHost, '', {});
13
13
  }
14
14
  exports.run = run;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0",
2
+ "version": "1.4.0",
3
3
  "commands": {
4
4
  "cm:stacks:seed": {
5
5
  "id": "cm:stacks:seed",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-seed",
3
3
  "description": "create a Stack from existing content types, entries, assets, etc.",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-cm-import": "^1.4.0",
9
- "@contentstack/cli-command": "^1.2.0",
10
- "@contentstack/cli-utilities": "^1.2.0",
8
+ "@contentstack/cli-cm-import": "^1.4.1",
9
+ "@contentstack/cli-command": "^1.2.1",
10
+ "@contentstack/cli-utilities": "^1.2.1",
11
11
  "@contentstack/management": "^1.6.1",
12
12
  "@oclif/core": "^2.3.0",
13
13
  "axios": "1.3.4",
@@ -58,6 +58,10 @@
58
58
  "csdxConfig": {
59
59
  "expiredCommands": {
60
60
  "cm:seed": "csdx cm:stacks:seed"
61
+ },
62
+ "shortCommandName": {
63
+ "cm:stacks:seed": "SEED",
64
+ "cm:seed": "O-SEED"
61
65
  }
62
66
  },
63
67
  "repository": "contentstack/cli",