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

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,276 +1,10 @@
1
1
  # @graphcommerce/hygraph-cli
2
2
 
3
- ## 9.0.0-canary.101
3
+ ## 9.0.0-canary.103
4
4
 
5
- ## 9.0.0-canary.100
6
-
7
- ## 9.0.0-canary.99
8
-
9
- ## 9.0.0-canary.98
10
-
11
- ## 9.0.0-canary.97
12
-
13
- ## 9.0.0-canary.96
14
-
15
- ## 9.0.0-canary.95
16
-
17
- ## 9.0.0-canary.94
18
-
19
- ## 9.0.0-canary.93
20
-
21
- ## 9.0.0-canary.92
22
-
23
- ## 9.0.0-canary.91
24
-
25
- ## 9.0.0-canary.90
26
-
27
- ## 9.0.0-canary.89
28
-
29
- ## 9.0.0-canary.88
30
-
31
- ## 9.0.0-canary.87
32
-
33
- ## 9.0.0-canary.86
34
-
35
- ## 9.0.0-canary.85
36
-
37
- ## 9.0.0-canary.84
38
-
39
- ## 9.0.0-canary.83
40
-
41
- ## 9.0.0-canary.82
42
-
43
- ## 9.0.0-canary.81
44
-
45
- ## 9.0.0-canary.80
46
-
47
- ## 9.0.0-canary.79
48
-
49
- ## 9.0.0-canary.78
50
-
51
- ## 9.0.0-canary.77
52
-
53
- ## 9.0.0-canary.76
54
-
55
- ## 9.0.0-canary.75
56
-
57
- ## 9.0.0-canary.74
58
-
59
- ## 9.0.0-canary.73
60
-
61
- ## 9.0.0-canary.72
62
-
63
- ## 9.0.0-canary.71
64
-
65
- ## 9.0.0-canary.70
66
-
67
- ## 9.0.0-canary.69
68
-
69
- ## 9.0.0-canary.68
70
-
71
- ## 9.0.0-canary.67
72
-
73
- ## 9.0.0-canary.66
74
-
75
- ## 9.0.0-canary.65
76
-
77
- ## 9.0.0-canary.64
78
-
79
- ## 9.0.0-canary.63
80
-
81
- ## 9.0.0-canary.62
82
-
83
- ## 9.0.0-canary.61
84
-
85
- ## 9.0.0-canary.60
86
-
87
- ## 9.0.0-canary.59
88
-
89
- ## 9.0.0-canary.58
90
-
91
- ## 9.0.0-canary.57
92
-
93
- ## 9.0.0-canary.56
94
-
95
- ## 9.0.0-canary.55
96
-
97
- ## 9.0.0-canary.54
98
-
99
- ## 8.1.0-canary.53
100
-
101
- ## 8.1.0-canary.52
102
-
103
- ## 8.1.0-canary.51
104
-
105
- ## 8.1.0-canary.50
106
-
107
- ## 8.1.0-canary.49
108
-
109
- ## 8.1.0-canary.48
110
-
111
- ## 8.1.0-canary.47
112
-
113
- ## 8.1.0-canary.46
114
-
115
- ## 8.1.0-canary.45
116
-
117
- ## 8.1.0-canary.44
118
-
119
- ## 8.1.0-canary.43
120
-
121
- ## 8.1.0-canary.42
122
-
123
- ## 8.1.0-canary.41
124
-
125
- ## 8.1.0-canary.40
126
-
127
- ## 8.1.0-canary.39
128
-
129
- ## 8.1.0-canary.38
130
-
131
- ## 8.1.0-canary.37
132
-
133
- ## 8.1.0-canary.36
134
-
135
- ## 8.1.0-canary.35
136
-
137
- ## 8.1.0-canary.34
138
-
139
- ## 8.1.0-canary.33
140
-
141
- ## 8.1.0-canary.32
142
-
143
- ## 8.1.0-canary.31
144
-
145
- ## 8.1.0-canary.30
146
-
147
- ## 8.1.0-canary.29
148
-
149
- ## 8.1.0-canary.28
150
-
151
- ## 8.1.0-canary.27
152
-
153
- ## 8.1.0-canary.26
154
-
155
- ## 8.1.0-canary.25
156
-
157
- ## 8.1.0-canary.24
158
-
159
- ## 8.1.0-canary.23
160
-
161
- ## 8.1.0-canary.22
162
-
163
- ## 8.1.0-canary.21
164
-
165
- ## 8.1.0-canary.20
166
-
167
- ## 8.1.0-canary.19
168
-
169
- ## 8.1.0-canary.18
170
-
171
- ## 8.1.0-canary.17
172
-
173
- ## 8.1.0-canary.16
174
-
175
- ## 8.1.0-canary.15
176
-
177
- ## 8.1.0-canary.14
178
-
179
- ## 8.1.0-canary.13
180
-
181
- ## 8.1.0-canary.12
182
-
183
- ## 8.1.0-canary.11
184
-
185
- ## 8.1.0-canary.10
186
-
187
- ## 8.1.0-canary.9
188
-
189
- ## 8.1.0-canary.8
190
-
191
- ## 8.1.0-canary.7
192
-
193
- ## 8.1.0-canary.6
194
-
195
- ## 8.1.0-canary.5
196
-
197
- ## 8.0.6-canary.4
198
-
199
- ## 8.0.6-canary.3
200
-
201
- ## 8.0.6-canary.2
202
-
203
- ## 8.0.6-canary.1
204
-
205
- ## 8.0.6-canary.0
206
-
207
- ## 8.0.5
208
-
209
- ## 8.0.5-canary.10
210
-
211
- ## 8.0.5-canary.9
212
-
213
- ## 8.0.5-canary.8
214
-
215
- ## 8.0.5-canary.7
216
-
217
- ## 8.0.5-canary.6
218
-
219
- ## 8.0.5-canary.5
220
-
221
- ## 8.0.5-canary.4
222
-
223
- ## 8.0.5-canary.3
224
-
225
- ## 8.0.5-canary.2
226
-
227
- ## 8.0.5-canary.1
228
-
229
- ## 8.0.5-canary.0
230
-
231
- ## 8.0.4
232
-
233
- ## 8.0.4-canary.1
234
-
235
- ## 8.0.4-canary.0
236
-
237
- ## 8.0.3
238
-
239
- ## 8.0.3-canary.6
240
-
241
- ## 8.0.3-canary.5
242
-
243
- ## 8.0.3-canary.4
244
-
245
- ## 8.0.3-canary.3
246
-
247
- ## 8.0.3-canary.2
248
-
249
- ## 8.0.3-canary.1
250
-
251
- ## 8.0.3-canary.0
252
-
253
- ## 8.0.2
254
-
255
- ## 8.0.2-canary.3
256
-
257
- ## 8.0.2-canary.2
258
-
259
- ## 8.0.2-canary.1
260
-
261
- ## 8.0.2-canary.0
262
-
263
- ## 8.0.1
264
-
265
- ## 8.0.1-canary.4
266
-
267
- ## 8.0.1-canary.3
268
-
269
- ## 8.0.1-canary.2
270
-
271
- ## 8.0.1-canary.1
5
+ ### Patch Changes
272
6
 
273
- ## 8.0.1-canary.0
7
+ - [#2421](https://github.com/graphcommerce-org/graphcommerce/pull/2421) [`d500643`](https://github.com/graphcommerce-org/graphcommerce/commit/d500643138799b6db1610cb10a1d065d6219d8ea) - Resolve peer dependency issues so we get a clean install ([@paales](https://github.com/paales))
274
8
 
275
9
  ## 8.0.0
276
10
 
@@ -280,236 +14,12 @@
280
14
 
281
15
  - [#2169](https://github.com/graphcommerce-org/graphcommerce/pull/2169) [`eab3f0b`](https://github.com/graphcommerce-org/graphcommerce/commit/eab3f0b0b459f5b6cc4e50d787ac1e8ae545b708) - Solve issue where a Hygraph DynamicRow conditions were missing fields in the OrCondition ([@Jessevdpoel](https://github.com/Jessevdpoel))
282
16
 
283
- ## 8.0.0-canary.100
284
-
285
- ## 8.0.0-canary.99
286
-
287
- ## 8.0.0-canary.98
288
-
289
- ## 8.0.0-canary.97
290
-
291
- ## 8.0.0-canary.96
292
-
293
- ## 8.0.0-canary.95
294
-
295
- ## 8.0.0-canary.94
296
-
297
- ### Patch Changes
298
-
299
- - [#2169](https://github.com/graphcommerce-org/graphcommerce/pull/2169) [`eab3f0b`](https://github.com/graphcommerce-org/graphcommerce/commit/eab3f0b0b459f5b6cc4e50d787ac1e8ae545b708) - Solve issue where a Hygraph DynamicRow conditions were missing fields in the OrCondition ([@Jessevdpoel](https://github.com/Jessevdpoel))
300
-
301
- ## 8.0.0-canary.93
302
-
303
- ## 8.0.0-canary.92
304
-
305
- ## 8.0.0-canary.91
306
-
307
- ## 8.0.0-canary.90
308
-
309
- ## 8.0.0-canary.89
310
-
311
- ## 8.0.0-canary.88
312
-
313
- ## 8.0.0-canary.87
314
-
315
- ## 8.0.0-canary.86
316
-
317
- ## 8.0.0-canary.85
318
-
319
- ## 8.0.0-canary.84
320
-
321
- ## 8.0.0-canary.83
322
-
323
- ## 8.0.0-canary.82
324
-
325
- ## 8.0.0-canary.81
326
-
327
- ## 8.0.0-canary.80
328
-
329
- ## 8.0.0-canary.79
330
-
331
- ## 8.0.0-canary.78
332
-
333
- ## 8.0.0-canary.77
334
-
335
- ## 8.0.0-canary.76
336
-
337
- ## 8.0.0-canary.75
338
-
339
- ## 8.0.0-canary.74
340
-
341
- ## 8.0.0-canary.73
342
-
343
- ## 8.0.0-canary.72
344
-
345
- ## 8.0.0-canary.71
346
-
347
- ## 8.0.0-canary.70
348
-
349
- ## 8.0.0-canary.69
350
-
351
- ## 7.1.0-canary.68
352
-
353
- ## 7.1.0-canary.67
354
-
355
- ## 7.1.0-canary.66
356
-
357
- ## 7.1.0-canary.65
358
-
359
- ## 7.1.0-canary.64
360
-
361
- ## 7.1.0-canary.63
362
-
363
- ## 7.1.0-canary.62
364
-
365
- ## 7.1.0-canary.61
366
-
367
- ## 7.1.0-canary.60
368
-
369
- ## 7.1.0-canary.59
370
-
371
- ## 7.1.0-canary.58
372
-
373
- ## 7.1.0-canary.57
374
-
375
- ## 7.1.0-canary.56
376
-
377
- ## 7.1.0-canary.55
378
-
379
- ## 7.1.0-canary.54
380
-
381
- ## 7.1.0-canary.53
382
-
383
- ## 7.1.0-canary.52
384
-
385
- ## 7.1.0-canary.51
386
-
387
- ## 7.1.0-canary.50
388
-
389
- ## 7.1.0-canary.49
390
-
391
- ## 7.1.0-canary.48
392
-
393
- ## 7.1.0-canary.47
394
-
395
- ## 7.1.0-canary.46
396
-
397
- ## 7.1.0-canary.45
398
-
399
- ## 7.1.0-canary.38
400
-
401
- ## 7.1.0-canary.37
402
-
403
- ## 7.1.0-canary.36
404
-
405
- ## 7.1.0-canary.35
406
-
407
- ## 7.1.0-canary.34
408
-
409
- ## 7.1.0-canary.33
410
-
411
- ## 7.1.0-canary.32
412
-
413
- ## 7.1.0-canary.31
414
-
415
- ## 7.1.0-canary.30
416
-
417
- ## 7.1.0-canary.29
418
-
419
- ## 7.1.0-canary.28
420
-
421
- ## 7.1.0-canary.27
422
-
423
- ## 7.1.0-canary.26
424
-
425
- ## 7.1.0-canary.25
426
-
427
- ## 7.1.0-canary.24
428
-
429
- ## 7.1.0-canary.23
430
-
431
- ## 7.1.0-canary.22
432
-
433
- ## 7.1.0-canary.21
434
-
435
- ## 7.1.0-canary.20
436
-
437
- ### Patch Changes
438
-
439
- - [#2095](https://github.com/graphcommerce-org/graphcommerce/pull/2095) [`519531eb4`](https://github.com/graphcommerce-org/graphcommerce/commit/519531eb48bf6c5b68703509d2bd64c8dfe5b92c) - Fix Hygraph CLI (Management SDK) | Add support for updating and deleting enumerations ([@JoshuaS98](https://github.com/JoshuaS98))
440
-
441
- ## 7.1.0-canary.19
442
-
443
- ## 7.1.0-canary.18
444
-
445
- ## 7.1.0-canary.17
446
-
447
- ## 7.1.0-canary.16
448
-
449
- ## 7.1.0-canary.15
450
-
451
- ## 7.1.0-canary.14
452
-
453
- ## 7.1.0-canary.13
454
-
455
- ## 7.1.0-canary.12
456
-
457
- ## 7.1.0-canary.11
458
-
459
- ## 7.1.0-canary.10
460
-
461
- ## 7.1.0-canary.9
462
-
463
- ## 7.1.0-canary.8
464
-
465
- ## 7.0.2-canary.7
466
-
467
- ## 7.0.2-canary.6
468
-
469
- ## 7.0.2-canary.5
470
-
471
17
  ## 7.0.1
472
18
 
473
19
  ### Patch Changes
474
20
 
475
21
  - [#2047](https://github.com/graphcommerce-org/graphcommerce/pull/2047) [`136580b39`](https://github.com/graphcommerce-org/graphcommerce/commit/136580b39e3cffdd07e3fa087e049bd532c3e8f1) - Updated all dependencies to the latest version where possible. ([@paales](https://github.com/paales))
476
22
 
477
- ## 7.0.1-canary.15
478
-
479
- ## 7.0.1-canary.14
480
-
481
- ## 7.0.1-canary.13
482
-
483
- ## 7.0.1-canary.12
484
-
485
- ## 7.0.1-canary.11
486
-
487
- ## 7.0.1-canary.10
488
-
489
- ## 7.0.1-canary.9
490
-
491
- ## 7.0.1-canary.8
492
-
493
- ## 7.0.1-canary.7
494
-
495
- ## 7.0.1-canary.6
496
-
497
- ## 7.0.1-canary.5
498
-
499
- ## 7.0.1-canary.4
500
-
501
- ## 7.0.1-canary.3
502
-
503
- ## 7.0.1-canary.2
504
-
505
- ## 7.0.1-canary.1
506
-
507
- ## 7.0.1-canary.0
508
-
509
- ### Patch Changes
510
-
511
- - [#2047](https://github.com/graphcommerce-org/graphcommerce/pull/2047) [`136580b39`](https://github.com/graphcommerce-org/graphcommerce/commit/136580b39e3cffdd07e3fa087e049bd532c3e8f1) - Updated all dependencies to the latest version where possible. ([@paales](https://github.com/paales))
512
-
513
23
  ## 7.0.0
514
24
 
515
25
  ### Major Changes
@@ -527,205 +37,3 @@
527
37
  - [#1924](https://github.com/graphcommerce-org/graphcommerce/pull/1924) [`04581f619`](https://github.com/graphcommerce-org/graphcommerce/commit/04581f619c609f2f6ca5268ee5effb6a1db3f0eb) - Use the latest branch from graphql-mesh so that all versions are in sync ([@paales](https://github.com/paales))
528
38
 
529
39
  - [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`86e14569b`](https://github.com/graphcommerce-org/graphcommerce/commit/86e14569b1f68f73be7f93b614e36b382c5debff) - Updated to the latest release of GraphQL codegen and solve compatibility issues with our own generator ([@paales](https://github.com/paales))
530
-
531
- ## 6.2.0-canary.98
532
-
533
- ## 6.2.0-canary.97
534
-
535
- ## 6.2.0-canary.96
536
-
537
- ## 6.2.0-canary.95
538
-
539
- ## 6.2.0-canary.94
540
-
541
- ## 6.2.0-canary.93
542
-
543
- ## 6.2.0-canary.92
544
-
545
- ## 6.2.0-canary.91
546
-
547
- ## 6.2.0-canary.90
548
-
549
- ## 6.2.0-canary.89
550
-
551
- ## 6.2.0-canary.88
552
-
553
- ## 6.2.0-canary.87
554
-
555
- ## 6.2.0-canary.86
556
-
557
- ## 6.2.0-canary.85
558
-
559
- ## 6.2.0-canary.84
560
-
561
- ## 6.2.0-canary.83
562
-
563
- ### Minor Changes
564
-
565
- - [#1938](https://github.com/graphcommerce-org/graphcommerce/pull/1938) [`5aa6558a4`](https://github.com/graphcommerce-org/graphcommerce/commit/5aa6558a4e48d8d670284802fed65a934429b0ea) - Introduce hygraph-cli for schema migrations ([@JoshuaS98](https://github.com/JoshuaS98))
566
-
567
- ## 6.2.0-canary.82
568
-
569
- ## 6.2.0-canary.81
570
-
571
- ## 6.2.0-canary.80
572
-
573
- ## 6.2.0-canary.79
574
-
575
- ## 6.2.0-canary.78
576
-
577
- ## 6.2.0-canary.77
578
-
579
- ## 6.2.0-canary.76
580
-
581
- ## 6.2.0-canary.75
582
-
583
- ## 6.2.0-canary.74
584
-
585
- ## 6.2.0-canary.73
586
-
587
- ## 6.2.0-canary.72
588
-
589
- ## 6.2.0-canary.71
590
-
591
- ## 6.2.0-canary.70
592
-
593
- ## 6.2.0-canary.69
594
-
595
- ### Patch Changes
596
-
597
- - [#2012](https://github.com/graphcommerce-org/graphcommerce/pull/2012) [`1dbb3ae13`](https://github.com/graphcommerce-org/graphcommerce/commit/1dbb3ae13553992ee1ed77f375375560f28c418c) - Upgrade graphql to 16.7.1, add graphql as peer dependency ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
598
-
599
- ## 6.2.0-canary.68
600
-
601
- ## 6.2.0-canary.67
602
-
603
- ## 6.2.0-canary.66
604
-
605
- ## 6.2.0-canary.65
606
-
607
- ## 6.2.0-canary.64
608
-
609
- ## 6.2.0-canary.63
610
-
611
- ## 6.2.0-canary.62
612
-
613
- ## 6.2.0-canary.61
614
-
615
- ## 6.2.0-canary.60
616
-
617
- ## 6.2.0-canary.59
618
-
619
- ## 6.2.0-canary.58
620
-
621
- ## 6.2.0-canary.57
622
-
623
- ## 6.2.0-canary.56
624
-
625
- ## 6.2.0-canary.55
626
-
627
- ## 6.2.0-canary.54
628
-
629
- ## 6.2.0-canary.53
630
-
631
- ## 6.2.0-canary.52
632
-
633
- ## 6.2.0-canary.51
634
-
635
- ## 6.2.0-canary.50
636
-
637
- ## 6.2.0-canary.49
638
-
639
- ## 6.2.0-canary.48
640
-
641
- ## 6.2.0-canary.47
642
-
643
- ## 6.2.0-canary.46
644
-
645
- ## 6.2.0-canary.45
646
-
647
- ## 6.2.0-canary.44
648
-
649
- ## 6.2.0-canary.43
650
-
651
- ## 6.2.0-canary.42
652
-
653
- ## 6.2.0-canary.41
654
-
655
- ### Patch Changes
656
-
657
- - [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`86e14569b`](https://github.com/graphcommerce-org/graphcommerce/commit/86e14569b1f68f73be7f93b614e36b382c5debff) - Updated to the latest release of GraphQL codegen and solve compatibility issues with our own generator ([@paales](https://github.com/paales))
658
-
659
- ## 6.2.0-canary.40
660
-
661
- ## 6.2.0-canary.39
662
-
663
- ## 6.2.0-canary.38
664
-
665
- ## 6.2.0-canary.37
666
-
667
- ## 6.2.0-canary.36
668
-
669
- ## 6.2.0-canary.35
670
-
671
- ## 6.2.0-canary.34
672
-
673
- ## 6.2.0-canary.33
674
-
675
- ## 6.2.0-canary.32
676
-
677
- ## 6.2.0-canary.31
678
-
679
- ## 6.2.0-canary.30
680
-
681
- ## 6.2.0-canary.29
682
-
683
- ## 6.2.0-canary.28
684
-
685
- ## 6.2.0-canary.27
686
-
687
- ## 6.2.0-canary.26
688
-
689
- ## 6.2.0-canary.25
690
-
691
- ## 6.2.0-canary.24
692
-
693
- ## 6.2.0-canary.23
694
-
695
- ## 6.2.0-canary.22
696
-
697
- ## 6.2.0-canary.21
698
-
699
- ## 6.2.0-canary.20
700
-
701
- ## 6.2.0-canary.19
702
-
703
- ## 6.2.0-canary.18
704
-
705
- ## 6.2.0-canary.17
706
-
707
- ## 6.2.0-canary.16
708
-
709
- ## 6.2.0-canary.15
710
-
711
- ## 6.2.0-canary.14
712
-
713
- ## 6.2.0-canary.13
714
-
715
- ### Patch Changes
716
-
717
- - [#1924](https://github.com/graphcommerce-org/graphcommerce/pull/1924) [`04581f619`](https://github.com/graphcommerce-org/graphcommerce/commit/04581f619c609f2f6ca5268ee5effb6a1db3f0eb) - Use the latest branch from graphql-mesh so that all versions are in sync ([@paales](https://github.com/paales))
718
-
719
- ## 6.2.0-canary.12
720
-
721
- ## 6.2.0-canary.11
722
-
723
- ## 6.2.0-canary.10
724
-
725
- ## 6.2.0-canary.9
726
-
727
- ## 6.2.0-canary.8
728
-
729
- ### Minor Changes
730
-
731
- - [#1912](https://github.com/graphcommerce-org/graphcommerce/pull/1912) [`a43d389e9`](https://github.com/graphcommerce-org/graphcommerce/commit/a43d389e956fe69b73238b12c98c781b7044e4bb) - Added dynamic rows feature and better performance for Hygraph ([@JoshuaS98](https://github.com/JoshuaS98))
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.101",
5
+ "version": "9.0.0-canary.103",
6
6
  "scripts": {
7
7
  "dev": "tsc --preserveWatchOutput --watch",
8
8
  "build": "tsc",
@@ -14,17 +14,17 @@
14
14
  "dependencies": {
15
15
  "@hygraph/management-sdk": "1.2.5",
16
16
  "@whatwg-node/fetch": "^0.9.21",
17
+ "graphql": "^16.7.1",
17
18
  "graphql-tag": "^2.12.6",
18
19
  "prompts": "^2.4.2"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "@apollo/client": "^3",
22
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.101",
23
- "@graphcommerce/next-config": "^9.0.0-canary.101",
24
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.101",
25
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.101",
26
- "dotenv": "^16.1.4",
27
- "graphql": "^16.7.1"
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",
27
+ "dotenv": "^16.1.4"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/prompts": "^2.4.9",
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  BatchMigrationCreateComponentFieldInput,
3
3
  BatchMigrationCreateComponentInput,
4
4
  BatchMigrationCreateComponentUnionFieldInput,
@@ -10,9 +10,9 @@ import {
10
10
  BatchMigrationCreateSimpleFieldInput,
11
11
  BatchMigrationCreateStageInput,
12
12
  BatchMigrationCreateUnionFieldInput,
13
- Client,
14
13
  } from '@hygraph/management-sdk'
15
- import { Schema } from './types'
14
+ import { Client } from '@hygraph/management-sdk'
15
+ import type { Schema } from './types'
16
16
 
17
17
  interface MigrationParams {
18
18
  name?: string
@@ -1,11 +1,12 @@
1
1
  import fs from 'fs'
2
2
  import { loadConfig } from '@graphcommerce/next-config'
3
3
  import dotenv from 'dotenv'
4
- import prompts, { PromptObject } from 'prompts'
4
+ import type { PromptObject } from 'prompts'
5
+ import prompts from 'prompts'
5
6
  import { UpsertClient } from './UpsertClient'
6
7
  import * as availableMigrations from './migrations'
7
8
  import { readSchema } from './readSchema'
8
- import { MigrationFunction, Schema } from './types'
9
+ import type { MigrationFunction, Schema } from './types'
9
10
  import { getConfig } from './utils/getConfig'
10
11
  import { getEnvironment } from './utils/getEndpointUrl'
11
12
  import { getManagementClient } from './utils/getManagementClient'
@@ -1,5 +1,4 @@
1
- import { loadConfig } from '@graphcommerce/next-config'
2
- import {
1
+ import type {
3
2
  BatchMigrationCreateModelInput,
4
3
  BatchMigrationCreateComponentInput,
5
4
  BatchMigrationCreateEnumerationInput,
@@ -25,7 +24,7 @@ import {
25
24
  Client,
26
25
  } from '@hygraph/management-sdk'
27
26
  import dotenv from 'dotenv'
28
- import { Schema } from './types'
27
+ import type { Schema } from './types'
29
28
  import { graphcommerceLog, capitalize } from './utils/graphCommerceLog'
30
29
 
31
30
  dotenv.config()
@@ -1,6 +1,6 @@
1
1
  import { RelationalFieldType, SimpleFieldType, VisibilityTypes } from '@hygraph/management-sdk'
2
2
  import { migrationActionFactory } from '../migrationActionFactory'
3
- import { MigrationFunction } from '../types'
3
+ import type { MigrationFunction } from '../types'
4
4
 
5
5
  export const graphcommerce5to6: MigrationFunction = async (schema, client) => {
6
6
  const { migrationAction } = migrationActionFactory(schema, client)
@@ -1,6 +1,6 @@
1
1
  import { SimpleFieldType, VisibilityTypes } from '@hygraph/management-sdk'
2
2
  import { migrationActionFactory } from '../migrationActionFactory'
3
- import { MigrationFunction } from '../types'
3
+ import type { MigrationFunction } from '../types'
4
4
 
5
5
  export const graphcommerce6to7: MigrationFunction = async (schema, client) => {
6
6
  const { migrationAction } = migrationActionFactory(schema, client)
@@ -1,6 +1,6 @@
1
1
  import { VisibilityTypes } from '@hygraph/management-sdk'
2
2
  import { migrationActionFactory } from '../migrationActionFactory'
3
- import { MigrationFunction } from '../types'
3
+ import type { MigrationFunction } from '../types'
4
4
 
5
5
  export const graphcommerce7to8: MigrationFunction = async (schema, client) => {
6
6
  const { migrationAction } = migrationActionFactory(schema, client)
@@ -1,13 +1,12 @@
1
- import {
1
+ import type {
2
2
  BatchMigrationCreateEnumerableFieldInput,
3
3
  BatchMigrationCreateEnumerationInput,
4
4
  BatchMigrationCreateModelInput,
5
5
  BatchMigrationCreateSimpleFieldInput,
6
- SimpleFieldType,
7
- VisibilityTypes,
8
6
  } from '@hygraph/management-sdk'
7
+ import { SimpleFieldType, VisibilityTypes } from '@hygraph/management-sdk'
9
8
  import { migrationActionFactory } from '../migrationActionFactory'
10
- import { MigrationFunction } from '../types'
9
+ import type { MigrationFunction } from '../types'
11
10
 
12
11
  export const graphcommerce8to9: MigrationFunction = async (schema, client) => {
13
12
  const { migrationAction } = migrationActionFactory(schema, client)
package/src/readSchema.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { ApolloClient, gql, NormalizedCacheObject } from '@apollo/client'
2
- import { Schema } from './types'
1
+ import type { ApolloClient, NormalizedCacheObject } from '@apollo/client'
2
+ import { gql } from '@apollo/client'
3
+ import type { Schema } from './types'
3
4
 
4
5
  export const readSchema = async (
5
6
  managementClient: ApolloClient<NormalizedCacheObject>,
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, Client, Locale, Stage } from '@hygraph/management-sdk'
2
+ import type { Model, Component, Enumeration, Locale, 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
 
@@ -1,4 +1,4 @@
1
- import { GraphCommerceConfig } from '@graphcommerce/next-config'
1
+ import type { GraphCommerceConfig } from '@graphcommerce/next-config'
2
2
 
3
3
  export type HygraphConfig = {
4
4
  projectId: string
@@ -1,6 +1,6 @@
1
- import { ApolloClient, NormalizedCacheObject } from '@apollo/client'
1
+ import type { ApolloClient, NormalizedCacheObject } from '@apollo/client'
2
2
  import gql from 'graphql-tag'
3
- import { HygraphConfig } from './getConfig'
3
+ import type { HygraphConfig } from './getConfig'
4
4
 
5
5
  export async function getEnvironment(
6
6
  client: ApolloClient<NormalizedCacheObject>,
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client'
2
- import { HygraphConfig } from './getConfig'
2
+ import type { HygraphConfig } from './getConfig'
3
3
 
4
4
  export function getManagementClient(config: HygraphConfig) {
5
5
  const { authToken: accessToken, uri } = config