@graphcommerce/hygraph-cli 9.0.0-canary.103 → 9.0.0-canary.104

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @graphcommerce/hygraph-cli
2
2
 
3
+ ## 9.0.0-canary.104
4
+
3
5
  ## 9.0.0-canary.103
4
6
 
5
7
  ### Patch Changes
@@ -27,9 +27,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.migrateHygraphCli = migrateHygraphCli;
30
- const fs_1 = __importDefault(require("fs"));
31
30
  const next_config_1 = require("@graphcommerce/next-config");
32
31
  const dotenv_1 = __importDefault(require("dotenv"));
32
+ const fs_1 = __importDefault(require("fs"));
33
33
  const prompts_1 = __importDefault(require("prompts"));
34
34
  const UpsertClient_1 = require("./UpsertClient");
35
35
  const availableMigrations = __importStar(require("./migrations"));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/hygraph-cli",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.103",
5
+ "version": "9.0.0-canary.104",
6
6
  "scripts": {
7
7
  "dev": "tsc --preserveWatchOutput --watch",
8
8
  "build": "tsc",
@@ -20,10 +20,10 @@
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@apollo/client": "^3",
23
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.103",
24
- "@graphcommerce/next-config": "^9.0.0-canary.103",
25
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
26
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103",
23
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.104",
24
+ "@graphcommerce/next-config": "^9.0.0-canary.104",
25
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.104",
26
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.104",
27
27
  "dotenv": "^16.1.4"
28
28
  },
29
29
  "devDependencies": {
@@ -1,6 +1,6 @@
1
- import fs from 'fs'
2
1
  import { loadConfig } from '@graphcommerce/next-config'
3
2
  import dotenv from 'dotenv'
3
+ import fs from 'fs'
4
4
  import type { PromptObject } from 'prompts'
5
5
  import prompts from 'prompts'
6
6
  import { UpsertClient } from './UpsertClient'
@@ -1,31 +1,31 @@
1
1
  import type {
2
- BatchMigrationCreateModelInput,
2
+ BatchMigrationCreateComponentFieldInput,
3
3
  BatchMigrationCreateComponentInput,
4
- BatchMigrationCreateEnumerationInput,
5
- BatchMigrationCreateSimpleFieldInput,
4
+ BatchMigrationCreateComponentUnionFieldInput,
6
5
  BatchMigrationCreateEnumerableFieldInput,
6
+ BatchMigrationCreateEnumerationInput,
7
+ BatchMigrationCreateModelInput,
7
8
  BatchMigrationCreateRelationalFieldInput,
9
+ BatchMigrationCreateSimpleFieldInput,
8
10
  BatchMigrationCreateUnionFieldInput,
9
- BatchMigrationCreateComponentFieldInput,
10
11
  BatchMigrationDeleteComponentInput,
11
12
  BatchMigrationDeleteEnumerationInput,
13
+ BatchMigrationDeleteFieldInput,
12
14
  BatchMigrationDeleteModelInput,
13
15
  BatchMigrationUpdateComponentFieldInput,
14
16
  BatchMigrationUpdateComponentInput,
17
+ BatchMigrationUpdateComponentUnionFieldInput,
15
18
  BatchMigrationUpdateEnumerableFieldInput,
16
19
  BatchMigrationUpdateEnumerationInput,
17
20
  BatchMigrationUpdateModelInput,
18
21
  BatchMigrationUpdateRelationalFieldInput,
19
22
  BatchMigrationUpdateSimpleFieldInput,
20
23
  BatchMigrationUpdateUnionFieldInput,
21
- BatchMigrationDeleteFieldInput,
22
- BatchMigrationCreateComponentUnionFieldInput,
23
- BatchMigrationUpdateComponentUnionFieldInput,
24
24
  Client,
25
25
  } from '@hygraph/management-sdk'
26
26
  import dotenv from 'dotenv'
27
27
  import type { Schema } from './types'
28
- import { graphcommerceLog, capitalize } from './utils/graphCommerceLog'
28
+ import { capitalize, graphcommerceLog } from './utils/graphCommerceLog'
29
29
 
30
30
  dotenv.config()
31
31
 
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // eslint-disable-next-line import/no-extraneous-dependencies
2
- import type { Model, Component, Enumeration, Locale, Stage } from '@hygraph/management-sdk'
2
+ import type { Component, Enumeration, Locale, Model, Stage } from '@hygraph/management-sdk'
3
3
  import type { MigrationInfo } from '@hygraph/management-sdk/dist/src/ManagementAPIClient'
4
4
  import type { UpsertClient } from './UpsertClient'
5
5