@shopify/shop-minis-cli 0.0.112 → 0.0.114-alpha.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,1529 +0,0 @@
1
- """
2
- The part of the image that should remain after cropping.
3
- """
4
- enum CropRegion {
5
- """
6
- Keep the bottom of the image.
7
- """
8
- BOTTOM
9
-
10
- """
11
- Keep the center of the image.
12
- """
13
- CENTER
14
-
15
- """
16
- Keep the left of the image.
17
- """
18
- LEFT
19
-
20
- """
21
- Crop the exact region of the image specified by the crop_left, crop_top, crop_width and crop_height parameters.
22
- """
23
- REGION
24
-
25
- """
26
- Keep the right of the image.
27
- """
28
- RIGHT
29
-
30
- """
31
- Keep the top of the image.
32
- """
33
- TOP
34
- }
35
-
36
- """
37
- The input fields for defining an arbitrary cropping region.
38
- """
39
- input CropRegionInput {
40
- """
41
- Height of the region of the image to extract when using the region crop mode.
42
- """
43
- height: Int!
44
-
45
- """
46
- Left position of the region of the image to extract when using the region crop mode.
47
- """
48
- left: Int!
49
-
50
- """
51
- Top position of the region of the image to extract when using the region crop mode.
52
- """
53
- top: Int!
54
-
55
- """
56
- Width of the region of the image to extract when using the region crop mode.
57
- """
58
- width: Int!
59
- }
60
-
61
- """
62
- The three-letter currency codes that represent the world currencies used in
63
- stores. These include standard ISO 4217 codes, legacy codes,
64
- and non-standard codes.
65
- """
66
- enum CurrencyCode {
67
- """
68
- United Arab Emirates Dirham (AED).
69
- """
70
- AED
71
-
72
- """
73
- Afghan Afghani (AFN).
74
- """
75
- AFN
76
-
77
- """
78
- Albanian Lek (ALL).
79
- """
80
- ALL
81
-
82
- """
83
- Armenian Dram (AMD).
84
- """
85
- AMD
86
-
87
- """
88
- Netherlands Antillean Guilder.
89
- """
90
- ANG
91
-
92
- """
93
- Angolan Kwanza (AOA).
94
- """
95
- AOA
96
-
97
- """
98
- Argentine Pesos (ARS).
99
- """
100
- ARS
101
-
102
- """
103
- Australian Dollars (AUD).
104
- """
105
- AUD
106
-
107
- """
108
- Aruban Florin (AWG).
109
- """
110
- AWG
111
-
112
- """
113
- Azerbaijani Manat (AZN).
114
- """
115
- AZN
116
-
117
- """
118
- Bosnia and Herzegovina Convertible Mark (BAM).
119
- """
120
- BAM
121
-
122
- """
123
- Barbadian Dollar (BBD).
124
- """
125
- BBD
126
-
127
- """
128
- Bangladesh Taka (BDT).
129
- """
130
- BDT
131
-
132
- """
133
- Bulgarian Lev (BGN).
134
- """
135
- BGN
136
-
137
- """
138
- Bahraini Dinar (BHD).
139
- """
140
- BHD
141
-
142
- """
143
- Burundian Franc (BIF).
144
- """
145
- BIF
146
-
147
- """
148
- Bermudian Dollar (BMD).
149
- """
150
- BMD
151
-
152
- """
153
- Brunei Dollar (BND).
154
- """
155
- BND
156
-
157
- """
158
- Bolivian Boliviano (BOB).
159
- """
160
- BOB
161
-
162
- """
163
- Brazilian Real (BRL).
164
- """
165
- BRL
166
-
167
- """
168
- Bahamian Dollar (BSD).
169
- """
170
- BSD
171
-
172
- """
173
- Bhutanese Ngultrum (BTN).
174
- """
175
- BTN
176
-
177
- """
178
- Botswana Pula (BWP).
179
- """
180
- BWP
181
-
182
- """
183
- Belarusian Ruble (BYN).
184
- """
185
- BYN
186
-
187
- """
188
- Belarusian Ruble (BYR).
189
- """
190
- BYR
191
-
192
- """
193
- Belize Dollar (BZD).
194
- """
195
- BZD
196
-
197
- """
198
- Canadian Dollars (CAD).
199
- """
200
- CAD
201
-
202
- """
203
- Congolese franc (CDF).
204
- """
205
- CDF
206
-
207
- """
208
- Swiss Francs (CHF).
209
- """
210
- CHF
211
-
212
- """
213
- Chilean Peso (CLP).
214
- """
215
- CLP
216
-
217
- """
218
- Chinese Yuan Renminbi (CNY).
219
- """
220
- CNY
221
-
222
- """
223
- Colombian Peso (COP).
224
- """
225
- COP
226
-
227
- """
228
- Costa Rican Colones (CRC).
229
- """
230
- CRC
231
-
232
- """
233
- Cape Verdean escudo (CVE).
234
- """
235
- CVE
236
-
237
- """
238
- Czech Koruny (CZK).
239
- """
240
- CZK
241
-
242
- """
243
- Djiboutian Franc (DJF).
244
- """
245
- DJF
246
-
247
- """
248
- Danish Kroner (DKK).
249
- """
250
- DKK
251
-
252
- """
253
- Dominican Peso (DOP).
254
- """
255
- DOP
256
-
257
- """
258
- Algerian Dinar (DZD).
259
- """
260
- DZD
261
-
262
- """
263
- Egyptian Pound (EGP).
264
- """
265
- EGP
266
-
267
- """
268
- Eritrean Nakfa (ERN).
269
- """
270
- ERN
271
-
272
- """
273
- Ethiopian Birr (ETB).
274
- """
275
- ETB
276
-
277
- """
278
- Euro (EUR).
279
- """
280
- EUR
281
-
282
- """
283
- Fijian Dollars (FJD).
284
- """
285
- FJD
286
-
287
- """
288
- Falkland Islands Pounds (FKP).
289
- """
290
- FKP
291
-
292
- """
293
- United Kingdom Pounds (GBP).
294
- """
295
- GBP
296
-
297
- """
298
- Georgian Lari (GEL).
299
- """
300
- GEL
301
-
302
- """
303
- Ghanaian Cedi (GHS).
304
- """
305
- GHS
306
-
307
- """
308
- Gibraltar Pounds (GIP).
309
- """
310
- GIP
311
-
312
- """
313
- Gambian Dalasi (GMD).
314
- """
315
- GMD
316
-
317
- """
318
- Guinean Franc (GNF).
319
- """
320
- GNF
321
-
322
- """
323
- Guatemalan Quetzal (GTQ).
324
- """
325
- GTQ
326
-
327
- """
328
- Guyanese Dollar (GYD).
329
- """
330
- GYD
331
-
332
- """
333
- Hong Kong Dollars (HKD).
334
- """
335
- HKD
336
-
337
- """
338
- Honduran Lempira (HNL).
339
- """
340
- HNL
341
-
342
- """
343
- Croatian Kuna (HRK).
344
- """
345
- HRK
346
-
347
- """
348
- Haitian Gourde (HTG).
349
- """
350
- HTG
351
-
352
- """
353
- Hungarian Forint (HUF).
354
- """
355
- HUF
356
-
357
- """
358
- Indonesian Rupiah (IDR).
359
- """
360
- IDR
361
-
362
- """
363
- Israeli New Shekel (NIS).
364
- """
365
- ILS
366
-
367
- """
368
- Indian Rupees (INR).
369
- """
370
- INR
371
-
372
- """
373
- Iraqi Dinar (IQD).
374
- """
375
- IQD
376
-
377
- """
378
- Iranian Rial (IRR).
379
- """
380
- IRR
381
-
382
- """
383
- Icelandic Kronur (ISK).
384
- """
385
- ISK
386
-
387
- """
388
- Jersey Pound.
389
- """
390
- JEP
391
-
392
- """
393
- Jamaican Dollars (JMD).
394
- """
395
- JMD
396
-
397
- """
398
- Jordanian Dinar (JOD).
399
- """
400
- JOD
401
-
402
- """
403
- Japanese Yen (JPY).
404
- """
405
- JPY
406
-
407
- """
408
- Kenyan Shilling (KES).
409
- """
410
- KES
411
-
412
- """
413
- Kyrgyzstani Som (KGS).
414
- """
415
- KGS
416
-
417
- """
418
- Cambodian Riel.
419
- """
420
- KHR
421
-
422
- """
423
- Kiribati Dollar (KID).
424
- """
425
- KID
426
-
427
- """
428
- Comorian Franc (KMF).
429
- """
430
- KMF
431
-
432
- """
433
- South Korean Won (KRW).
434
- """
435
- KRW
436
-
437
- """
438
- Kuwaiti Dinar (KWD).
439
- """
440
- KWD
441
-
442
- """
443
- Cayman Dollars (KYD).
444
- """
445
- KYD
446
-
447
- """
448
- Kazakhstani Tenge (KZT).
449
- """
450
- KZT
451
-
452
- """
453
- Laotian Kip (LAK).
454
- """
455
- LAK
456
-
457
- """
458
- Lebanese Pounds (LBP).
459
- """
460
- LBP
461
-
462
- """
463
- Sri Lankan Rupees (LKR).
464
- """
465
- LKR
466
-
467
- """
468
- Liberian Dollar (LRD).
469
- """
470
- LRD
471
-
472
- """
473
- Lesotho Loti (LSL).
474
- """
475
- LSL
476
-
477
- """
478
- Lithuanian Litai (LTL).
479
- """
480
- LTL
481
-
482
- """
483
- Latvian Lati (LVL).
484
- """
485
- LVL
486
-
487
- """
488
- Libyan Dinar (LYD).
489
- """
490
- LYD
491
-
492
- """
493
- Moroccan Dirham.
494
- """
495
- MAD
496
-
497
- """
498
- Moldovan Leu (MDL).
499
- """
500
- MDL
501
-
502
- """
503
- Malagasy Ariary (MGA).
504
- """
505
- MGA
506
-
507
- """
508
- Macedonia Denar (MKD).
509
- """
510
- MKD
511
-
512
- """
513
- Burmese Kyat (MMK).
514
- """
515
- MMK
516
-
517
- """
518
- Mongolian Tugrik.
519
- """
520
- MNT
521
-
522
- """
523
- Macanese Pataca (MOP).
524
- """
525
- MOP
526
-
527
- """
528
- Mauritanian Ouguiya (MRU).
529
- """
530
- MRU
531
-
532
- """
533
- Mauritian Rupee (MUR).
534
- """
535
- MUR
536
-
537
- """
538
- Maldivian Rufiyaa (MVR).
539
- """
540
- MVR
541
-
542
- """
543
- Malawian Kwacha (MWK).
544
- """
545
- MWK
546
-
547
- """
548
- Mexican Pesos (MXN).
549
- """
550
- MXN
551
-
552
- """
553
- Malaysian Ringgits (MYR).
554
- """
555
- MYR
556
-
557
- """
558
- Mozambican Metical.
559
- """
560
- MZN
561
-
562
- """
563
- Namibian Dollar.
564
- """
565
- NAD
566
-
567
- """
568
- Nigerian Naira (NGN).
569
- """
570
- NGN
571
-
572
- """
573
- Nicaraguan Córdoba (NIO).
574
- """
575
- NIO
576
-
577
- """
578
- Norwegian Kroner (NOK).
579
- """
580
- NOK
581
-
582
- """
583
- Nepalese Rupee (NPR).
584
- """
585
- NPR
586
-
587
- """
588
- New Zealand Dollars (NZD).
589
- """
590
- NZD
591
-
592
- """
593
- Omani Rial (OMR).
594
- """
595
- OMR
596
-
597
- """
598
- Panamian Balboa (PAB).
599
- """
600
- PAB
601
-
602
- """
603
- Peruvian Nuevo Sol (PEN).
604
- """
605
- PEN
606
-
607
- """
608
- Papua New Guinean Kina (PGK).
609
- """
610
- PGK
611
-
612
- """
613
- Philippine Peso (PHP).
614
- """
615
- PHP
616
-
617
- """
618
- Pakistani Rupee (PKR).
619
- """
620
- PKR
621
-
622
- """
623
- Polish Zlotych (PLN).
624
- """
625
- PLN
626
-
627
- """
628
- Paraguayan Guarani (PYG).
629
- """
630
- PYG
631
-
632
- """
633
- Qatari Rial (QAR).
634
- """
635
- QAR
636
-
637
- """
638
- Romanian Lei (RON).
639
- """
640
- RON
641
-
642
- """
643
- Serbian dinar (RSD).
644
- """
645
- RSD
646
-
647
- """
648
- Russian Rubles (RUB).
649
- """
650
- RUB
651
-
652
- """
653
- Rwandan Franc (RWF).
654
- """
655
- RWF
656
-
657
- """
658
- Saudi Riyal (SAR).
659
- """
660
- SAR
661
-
662
- """
663
- Solomon Islands Dollar (SBD).
664
- """
665
- SBD
666
-
667
- """
668
- Seychellois Rupee (SCR).
669
- """
670
- SCR
671
-
672
- """
673
- Sudanese Pound (SDG).
674
- """
675
- SDG
676
-
677
- """
678
- Swedish Kronor (SEK).
679
- """
680
- SEK
681
-
682
- """
683
- Singapore Dollars (SGD).
684
- """
685
- SGD
686
-
687
- """
688
- Saint Helena Pounds (SHP).
689
- """
690
- SHP
691
-
692
- """
693
- Sierra Leonean Leone (SLL).
694
- """
695
- SLL
696
-
697
- """
698
- Somali Shilling (SOS).
699
- """
700
- SOS
701
-
702
- """
703
- Surinamese Dollar (SRD).
704
- """
705
- SRD
706
-
707
- """
708
- South Sudanese Pound (SSP).
709
- """
710
- SSP
711
-
712
- """
713
- Sao Tome And Principe Dobra (STD).
714
- """
715
- STD
716
-
717
- """
718
- Sao Tome And Principe Dobra (STN).
719
- """
720
- STN
721
-
722
- """
723
- Syrian Pound (SYP).
724
- """
725
- SYP
726
-
727
- """
728
- Swazi Lilangeni (SZL).
729
- """
730
- SZL
731
-
732
- """
733
- Thai baht (THB).
734
- """
735
- THB
736
-
737
- """
738
- Tajikistani Somoni (TJS).
739
- """
740
- TJS
741
-
742
- """
743
- Turkmenistani Manat (TMT).
744
- """
745
- TMT
746
-
747
- """
748
- Tunisian Dinar (TND).
749
- """
750
- TND
751
-
752
- """
753
- Tongan Pa'anga (TOP).
754
- """
755
- TOP
756
-
757
- """
758
- Turkish Lira (TRY).
759
- """
760
- TRY
761
-
762
- """
763
- Trinidad and Tobago Dollars (TTD).
764
- """
765
- TTD
766
-
767
- """
768
- Taiwan Dollars (TWD).
769
- """
770
- TWD
771
-
772
- """
773
- Tanzanian Shilling (TZS).
774
- """
775
- TZS
776
-
777
- """
778
- Ukrainian Hryvnia (UAH).
779
- """
780
- UAH
781
-
782
- """
783
- Ugandan Shilling (UGX).
784
- """
785
- UGX
786
-
787
- """
788
- United States Dollars (USD).
789
- """
790
- USD
791
-
792
- """
793
- Uruguayan Pesos (UYU).
794
- """
795
- UYU
796
-
797
- """
798
- Uzbekistan som (UZS).
799
- """
800
- UZS
801
-
802
- """
803
- Venezuelan Bolivares (VED).
804
- """
805
- VED
806
-
807
- """
808
- Venezuelan Bolivares (VEF).
809
- """
810
- VEF
811
-
812
- """
813
- Venezuelan Bolivares Soberanos (VES).
814
- """
815
- VES
816
-
817
- """
818
- Vietnamese đồng (VND).
819
- """
820
- VND
821
-
822
- """
823
- Vanuatu Vatu (VUV).
824
- """
825
- VUV
826
-
827
- """
828
- Samoan Tala (WST).
829
- """
830
- WST
831
-
832
- """
833
- Central African CFA Franc (XAF).
834
- """
835
- XAF
836
-
837
- """
838
- East Caribbean Dollar (XCD).
839
- """
840
- XCD
841
-
842
- """
843
- West African CFA franc (XOF).
844
- """
845
- XOF
846
-
847
- """
848
- CFP Franc (XPF).
849
- """
850
- XPF
851
-
852
- """
853
- Unrecognized currency.
854
- """
855
- XXX
856
-
857
- """
858
- Yemeni Rial (YER).
859
- """
860
- YER
861
-
862
- """
863
- South African Rand (ZAR).
864
- """
865
- ZAR
866
-
867
- """
868
- Zambian Kwacha (ZMW).
869
- """
870
- ZMW
871
- }
872
-
873
- """
874
- A signed decimal number, which supports arbitrary precision and is serialized as a string.
875
-
876
- Example values: `"29.99"`, `"29.999"`.
877
- """
878
- scalar Decimal
879
-
880
- """
881
- The input fields to identify a metafield on an owner resource by namespace and key.
882
- """
883
- input HasMetafieldsIdentifier {
884
- """
885
- The identifier for the metafield.
886
- """
887
- key: String!
888
-
889
- """
890
- The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
891
- """
892
- namespace: String
893
- }
894
-
895
- """
896
- Represents an image resource.
897
- """
898
- type Image {
899
- """
900
- A unique ID for the image.
901
- """
902
- id: ID
903
-
904
- """
905
- The location of the image as a URL.
906
-
907
- If no transform options are specified, then the original image will be preserved including any pre-applied transforms.
908
-
909
- All transformation options are considered "best-effort". Any transformation
910
- that the original image type doesn't support will be ignored.
911
-
912
- If you need multiple variations of the same image, then you can use [GraphQL
913
- aliases](https://graphql.org/learn/queries/#aliases).
914
- """
915
- url(
916
- """
917
- A set of options to transform the original image.
918
- """
919
- transform: ImageTransformInput
920
- ): URL!
921
- }
922
-
923
- """
924
- List of supported image content types.
925
- """
926
- enum ImageContentType {
927
- """
928
- A BMP image.
929
- """
930
- BMP
931
-
932
- """
933
- A JPG image.
934
- """
935
- JPG
936
-
937
- """
938
- A PNG image.
939
- """
940
- PNG
941
-
942
- """
943
- A WEBP image.
944
- """
945
- WEBP
946
- }
947
-
948
- """
949
- The available options for transforming an image.
950
-
951
- All transformation options are considered best effort. Any transformation that
952
- the original image type doesn't support will be ignored.
953
- """
954
- input ImageTransformInput {
955
- """
956
- The region of the image to remain after cropping.
957
- Must be used in conjunction with the `maxWidth` and/or `maxHeight` fields,
958
- where the `maxWidth` and `maxHeight` aren't equal.
959
- The `crop` argument should coincide with the smaller value. A smaller `maxWidth` indicates a `LEFT` or `RIGHT` crop, while
960
- a smaller `maxHeight` indicates a `TOP` or `BOTTOM` crop. For example, `{
961
- maxWidth: 5, maxHeight: 10, crop: LEFT }` will result
962
- in an image with a width of 5 and height of 10, where the right side of the image is removed.
963
- """
964
- crop: CropRegion
965
-
966
- """
967
- Defines an arbitrary cropping region.
968
- """
969
- cropRegion: CropRegionInput
970
-
971
- """
972
- Image height in pixels between 1 and 5760.
973
- """
974
- maxHeight: Int
975
-
976
- """
977
- Image width in pixels between 1 and 5760.
978
- """
979
- maxWidth: Int
980
-
981
- """
982
- Convert the source image into the preferred content type.
983
- Supported conversions: `.svg` to `.png`, any file type to `.jpg`, and any file type to `.webp`.
984
- """
985
- preferredContentType: ImageContentType
986
-
987
- """
988
- Image size multiplier for high-resolution retina displays. Must be within 1..3.
989
- """
990
- scale: Int = 1
991
- }
992
-
993
- """
994
- Represents a Shopify hosted image.
995
- """
996
- type MediaImage {
997
- """
998
- A globally-unique ID.
999
- """
1000
- id: ID!
1001
-
1002
- """
1003
- The image for the media.
1004
- """
1005
- image: Image
1006
- }
1007
-
1008
- """
1009
- Metafields represent custom metadata attached to a resource. Metafields can be sorted into namespaces and are
1010
- comprised of keys, values, and value types.
1011
- """
1012
- type Metafield {
1013
- """
1014
- A globally-unique ID.
1015
- """
1016
- id: ID!
1017
-
1018
- """
1019
- Returns a reference object if the metafield's type is a resource reference.
1020
- """
1021
- reference: MetafieldReference
1022
-
1023
- """
1024
- A list of reference objects if the metafield's type is a resource reference list.
1025
- """
1026
- references(
1027
- """
1028
- Returns the elements in the list that come after the specified cursor.
1029
- """
1030
- after: String
1031
-
1032
- """
1033
- Returns the elements in the list that come before the specified cursor.
1034
- """
1035
- before: String
1036
-
1037
- """
1038
- Returns the first _n_ elements from the list.
1039
- """
1040
- first: Int
1041
-
1042
- """
1043
- Returns the last _n_ elements from the list.
1044
- """
1045
- last: Int
1046
- ): MetafieldReferenceConnection
1047
-
1048
- """
1049
- The data stored in the metafield. Always stored as a string, regardless of the metafield's type.
1050
- """
1051
- value: String!
1052
- }
1053
-
1054
- """
1055
- Returns the resource which is being referred to by a metafield.
1056
- """
1057
- union MetafieldReference = MediaImage | Metaobject | Product | ProductVariant | Video
1058
-
1059
- """
1060
- An auto-generated type for paginating through multiple MetafieldReferences.
1061
- """
1062
- type MetafieldReferenceConnection {
1063
- """
1064
- A list of edges.
1065
- """
1066
- edges: [MetafieldReferenceEdge!]!
1067
-
1068
- """
1069
- A list of the nodes contained in MetafieldReferenceEdge.
1070
- """
1071
- nodes: [MetafieldReference!]!
1072
-
1073
- """
1074
- Information to aid in pagination.
1075
- """
1076
- pageInfo: PageInfo!
1077
- }
1078
-
1079
- """
1080
- An auto-generated type which holds one MetafieldReference and a cursor during pagination.
1081
- """
1082
- type MetafieldReferenceEdge {
1083
- """
1084
- A cursor for use in pagination.
1085
- """
1086
- cursor: String!
1087
-
1088
- """
1089
- The item at the end of MetafieldReferenceEdge.
1090
- """
1091
- node: MetafieldReference!
1092
- }
1093
-
1094
- """
1095
- An instance of a user-defined model based on a MetaobjectDefinition.
1096
- """
1097
- type Metaobject {
1098
- """
1099
- Accesses a field of the object by key.
1100
- """
1101
- field(
1102
- """
1103
- The key of the field.
1104
- """
1105
- key: String!
1106
- ): MetaobjectField
1107
-
1108
- """
1109
- A globally-unique ID.
1110
- """
1111
- id: ID!
1112
- }
1113
-
1114
- """
1115
- Provides the value of a Metaobject field.
1116
- """
1117
- type MetaobjectField {
1118
- """
1119
- A referenced object if the field type is a resource reference.
1120
- """
1121
- reference: MetafieldReference
1122
-
1123
- """
1124
- A list of referenced objects if the field type is a resource reference list.
1125
- """
1126
- references(
1127
- """
1128
- Returns the elements in the list that come after the specified cursor.
1129
- """
1130
- after: String
1131
-
1132
- """
1133
- Returns the elements in the list that come before the specified cursor.
1134
- """
1135
- before: String
1136
-
1137
- """
1138
- Returns the first _n_ elements from the list.
1139
- """
1140
- first: Int
1141
-
1142
- """
1143
- Returns the last _n_ elements from the list.
1144
- """
1145
- last: Int
1146
- ): MetafieldReferenceConnection
1147
-
1148
- """
1149
- The field value.
1150
- """
1151
- value: String
1152
- }
1153
-
1154
- """
1155
- A monetary value with currency.
1156
- """
1157
- type MoneyV2 {
1158
- """
1159
- Decimal money amount.
1160
- """
1161
- amount: Decimal!
1162
-
1163
- """
1164
- Currency of the money.
1165
- """
1166
- currencyCode: CurrencyCode!
1167
- }
1168
-
1169
- """
1170
- Returns information about pagination in a connection, in accordance with the
1171
- [Relay specification](https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo).
1172
- For more information, please read our [GraphQL Pagination Usage Guide](https://shopify.dev/api/usage/pagination-graphql).
1173
- """
1174
- type PageInfo {
1175
- """
1176
- The cursor corresponding to the last node in edges.
1177
- """
1178
- endCursor: String
1179
-
1180
- """
1181
- Whether there are more pages to fetch following the current page.
1182
- """
1183
- hasNextPage: Boolean!
1184
-
1185
- """
1186
- Whether there are any pages prior to the current page.
1187
- """
1188
- hasPreviousPage: Boolean!
1189
-
1190
- """
1191
- The cursor corresponding to the first node in edges.
1192
- """
1193
- startCursor: String
1194
- }
1195
-
1196
- """
1197
- A product represents an individual item for sale in a Shopify store. Products are often physical, but they don't have to be.
1198
- For example, a digital download (such as a movie, music or ebook file) also
1199
- qualifies as a product, as do services (such as equipment rental, work for hire,
1200
- customization of another product or an extended warranty).
1201
- """
1202
- type Product {
1203
- """
1204
- Indicates if at least one product variant is available for sale.
1205
- """
1206
- availableForSale: Boolean!
1207
-
1208
- """
1209
- The featured image for the product.
1210
-
1211
- This field is functionally equivalent to `images(first: 1)`.
1212
- """
1213
- featuredImage: Image
1214
-
1215
- """
1216
- A globally-unique ID.
1217
- """
1218
- id: ID!
1219
-
1220
- """
1221
- Returns a metafield found by namespace and key.
1222
- """
1223
- metafield(
1224
- """
1225
- The identifier for the metafield.
1226
- """
1227
- key: String!
1228
-
1229
- """
1230
- The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
1231
- """
1232
- namespace: String
1233
- ): Metafield
1234
-
1235
- """
1236
- The metafields associated with the resource matching the supplied list of namespaces and keys.
1237
- """
1238
- metafields(
1239
- """
1240
- The list of metafields to retrieve by namespace and key.
1241
-
1242
- The input must not contain more than `250` values.
1243
- """
1244
- identifiers: [HasMetafieldsIdentifier!]!
1245
- ): [Metafield]!
1246
-
1247
- """
1248
- The price range.
1249
- """
1250
- priceRange: ProductPriceRange!
1251
-
1252
- """
1253
- The average rating of the product.
1254
- """
1255
- reviewsAverageRating: Float
1256
-
1257
- """
1258
- The number of reviews for the product.
1259
- """
1260
- reviewsCount: Int
1261
-
1262
- """
1263
- The product’s title.
1264
- """
1265
- title: String!
1266
-
1267
- """
1268
- List of the product’s variants.
1269
- """
1270
- variants(
1271
- """
1272
- Returns the elements in the list that come after the specified cursor.
1273
- """
1274
- after: String
1275
-
1276
- """
1277
- Returns the elements in the list that come before the specified cursor.
1278
- """
1279
- before: String
1280
-
1281
- """
1282
- Returns the first _n_ elements from the list.
1283
- """
1284
- first: Int
1285
-
1286
- """
1287
- Returns the last _n_ elements from the list.
1288
- """
1289
- last: Int
1290
-
1291
- """
1292
- Reverse the order of the underlying list.
1293
- """
1294
- reverse: Boolean = false
1295
-
1296
- """
1297
- Sort the underlying list by the given key.
1298
- """
1299
- sortKey: ProductVariantSortKeys = POSITION
1300
- ): ProductVariantConnection!
1301
- }
1302
-
1303
- """
1304
- The price range of the product.
1305
- """
1306
- type ProductPriceRange {
1307
- """
1308
- The highest variant's price.
1309
- """
1310
- maxVariantPrice: MoneyV2!
1311
-
1312
- """
1313
- The lowest variant's price.
1314
- """
1315
- minVariantPrice: MoneyV2!
1316
- }
1317
-
1318
- """
1319
- A product variant represents a different version of a product, such as differing sizes or differing colors.
1320
- """
1321
- type ProductVariant {
1322
- """
1323
- Indicates if the product variant is available for sale.
1324
- """
1325
- availableForSale: Boolean!
1326
-
1327
- """
1328
- The compare at price of the variant. This can be used to mark a variant as on
1329
- sale, when `compareAtPrice` is higher than `price`.
1330
- """
1331
- compareAtPrice: MoneyV2
1332
-
1333
- """
1334
- A globally-unique ID.
1335
- """
1336
- id: ID!
1337
-
1338
- """
1339
- Image associated with the product variant. This field falls back to the product image if no image is available.
1340
- """
1341
- image: Image
1342
-
1343
- """
1344
- Whether the product variant is favorited by the current user.
1345
- """
1346
- isFavorited: Boolean!
1347
-
1348
- """
1349
- Returns a metafield found by namespace and key.
1350
- """
1351
- metafield(
1352
- """
1353
- The identifier for the metafield.
1354
- """
1355
- key: String!
1356
-
1357
- """
1358
- The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
1359
- """
1360
- namespace: String
1361
- ): Metafield
1362
-
1363
- """
1364
- The product variant’s price.
1365
- """
1366
- price: MoneyV2!
1367
-
1368
- """
1369
- The product object that the product variant belongs to.
1370
- """
1371
- product: Product!
1372
-
1373
- """
1374
- The product variant’s title.
1375
- """
1376
- title: String!
1377
- }
1378
-
1379
- """
1380
- An auto-generated type for paginating through multiple ProductVariants.
1381
- """
1382
- type ProductVariantConnection {
1383
- """
1384
- A list of edges.
1385
- """
1386
- edges: [ProductVariantEdge!]!
1387
-
1388
- """
1389
- A list of the nodes contained in ProductVariantEdge.
1390
- """
1391
- nodes: [ProductVariant!]!
1392
-
1393
- """
1394
- Information to aid in pagination.
1395
- """
1396
- pageInfo: PageInfo!
1397
- }
1398
-
1399
- """
1400
- An auto-generated type which holds one ProductVariant and a cursor during pagination.
1401
- """
1402
- type ProductVariantEdge {
1403
- """
1404
- A cursor for use in pagination.
1405
- """
1406
- cursor: String!
1407
-
1408
- """
1409
- The item at the end of ProductVariantEdge.
1410
- """
1411
- node: ProductVariant!
1412
- }
1413
-
1414
- """
1415
- The set of valid sort keys for the ProductVariant query.
1416
- """
1417
- enum ProductVariantSortKeys {
1418
- """
1419
- Sort by the `id` value.
1420
- """
1421
- ID
1422
-
1423
- """
1424
- Sort by the `position` value.
1425
- """
1426
- POSITION
1427
-
1428
- """
1429
- Sort by relevance to the search terms when the `query` parameter is specified on the connection.
1430
- Don't use this sort key when no search query is specified.
1431
- """
1432
- RELEVANCE
1433
-
1434
- """
1435
- Sort by the `sku` value.
1436
- """
1437
- SKU
1438
-
1439
- """
1440
- Sort by the `title` value.
1441
- """
1442
- TITLE
1443
- }
1444
-
1445
- """
1446
- The schema’s entry-point for queries. This acts as the public, top-level API from which all queries must start.
1447
- """
1448
- type Query {
1449
- """
1450
- The current product.
1451
- """
1452
- product: Product
1453
-
1454
- """
1455
- The current shop.
1456
- """
1457
- shop: Shop
1458
- }
1459
-
1460
- """
1461
- Shop represents a collection of the general settings and information about the shop.
1462
- """
1463
- type Shop {
1464
- """
1465
- A globally-unique ID.
1466
- """
1467
- id: ID!
1468
-
1469
- """
1470
- Returns a metafield found by namespace and key.
1471
- """
1472
- metafield(
1473
- """
1474
- The identifier for the metafield.
1475
- """
1476
- key: String!
1477
-
1478
- """
1479
- The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
1480
- """
1481
- namespace: String
1482
- ): Metafield
1483
-
1484
- """
1485
- The metafields associated with the resource matching the supplied list of namespaces and keys.
1486
- """
1487
- metafields(
1488
- """
1489
- The list of metafields to retrieve by namespace and key.
1490
-
1491
- The input must not contain more than `250` values.
1492
- """
1493
- identifiers: [HasMetafieldsIdentifier!]!
1494
- ): [Metafield]!
1495
- }
1496
-
1497
- """
1498
- Represents an [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986) and
1499
- [RFC 3987](https://datatracker.ietf.org/doc/html/rfc3987)-compliant URI string.
1500
-
1501
- For example, `"https://johns-apparel.myshopify.com"` is a valid URL. It includes a scheme (`https`) and a host
1502
- (`johns-apparel.myshopify.com`).
1503
- """
1504
- scalar URL
1505
-
1506
- """
1507
- Represents a Shopify hosted video.
1508
- """
1509
- type Video {
1510
- """
1511
- A globally-unique ID.
1512
- """
1513
- id: ID!
1514
-
1515
- """
1516
- The sources for a video.
1517
- """
1518
- sources: [VideoSource!]!
1519
- }
1520
-
1521
- """
1522
- Represents a source for a Shopify hosted video.
1523
- """
1524
- type VideoSource {
1525
- """
1526
- The URL of the video.
1527
- """
1528
- url: String!
1529
- }