@xclade/graphql-client 1.0.1 → 1.0.4

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/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { GraphQLClient, RequestOptions } from 'graphql-request';
1
2
  export type Maybe<T> = T | null;
2
3
  export type InputMaybe<T> = Maybe<T>;
3
4
  export type Exact<T extends {
@@ -19,6 +20,7 @@ export type MakeEmpty<T extends {
19
20
  export type Incremental<T> = T | {
20
21
  [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
21
22
  };
23
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
22
24
  /** All built-in and custom scalars, mapped to their actual values */
23
25
  export type Scalars = {
24
26
  ID: {
@@ -2744,3 +2746,2379 @@ export type VendorAdmin = {
2744
2746
  id: Scalars['ID']['output'];
2745
2747
  last_name?: Maybe<Scalars['String']['output']>;
2746
2748
  };
2749
+ export type UserFieldsFragment = {
2750
+ id: string;
2751
+ email: string;
2752
+ first_name?: string | null;
2753
+ last_name?: string | null;
2754
+ };
2755
+ export type CustomerFieldsFragment = {
2756
+ id: string;
2757
+ email?: string | null;
2758
+ first_name?: string | null;
2759
+ last_name?: string | null;
2760
+ has_account: boolean;
2761
+ phone?: string | null;
2762
+ metadata?: Record<string, any> | null;
2763
+ company_name?: string | null;
2764
+ };
2765
+ export type B2BCompanyFieldsFragment = {
2766
+ id: string;
2767
+ name: string;
2768
+ email: string;
2769
+ phone?: string | null;
2770
+ address?: string | null;
2771
+ city?: string | null;
2772
+ state?: string | null;
2773
+ zip?: string | null;
2774
+ country?: string | null;
2775
+ currency_code?: string | null;
2776
+ status?: B2BCompanyStatus | null;
2777
+ };
2778
+ export type GetMeQueryVariables = Exact<{
2779
+ [key: string]: never;
2780
+ }>;
2781
+ export type GetMeQuery = {
2782
+ me?: {
2783
+ id: string;
2784
+ email: string;
2785
+ first_name?: string | null;
2786
+ last_name?: string | null;
2787
+ } | null;
2788
+ };
2789
+ export type GetCustomerQueryVariables = Exact<{
2790
+ [key: string]: never;
2791
+ }>;
2792
+ export type GetCustomerQuery = {
2793
+ currentCustomer?: {
2794
+ id: string;
2795
+ email?: string | null;
2796
+ first_name?: string | null;
2797
+ last_name?: string | null;
2798
+ has_account: boolean;
2799
+ phone?: string | null;
2800
+ metadata?: Record<string, any> | null;
2801
+ company_name?: string | null;
2802
+ } | null;
2803
+ };
2804
+ export type ListCustomerOrdersQueryVariables = Exact<{
2805
+ limit?: InputMaybe<Scalars['Int']['input']>;
2806
+ offset?: InputMaybe<Scalars['Int']['input']>;
2807
+ }>;
2808
+ export type ListCustomerOrdersQuery = {
2809
+ orders: {
2810
+ orders: Array<{
2811
+ id: string;
2812
+ display_id: number;
2813
+ created_at: string | Date;
2814
+ status?: OrderStatus | null;
2815
+ total: number;
2816
+ items?: Array<{
2817
+ title: string;
2818
+ quantity: number;
2819
+ } | null> | null;
2820
+ }>;
2821
+ };
2822
+ };
2823
+ export type AuthStatusQueryVariables = Exact<{
2824
+ [key: string]: never;
2825
+ }>;
2826
+ export type AuthStatusQuery = {
2827
+ authStatus: {
2828
+ isAuthenticated: boolean;
2829
+ actor_id?: string | null;
2830
+ actor_type?: string | null;
2831
+ };
2832
+ };
2833
+ export type LoginMutationVariables = Exact<{
2834
+ email: Scalars['String']['input'];
2835
+ password: Scalars['String']['input'];
2836
+ }>;
2837
+ export type LoginMutation = {
2838
+ login?: {
2839
+ token: string;
2840
+ status?: B2BCompanyStatus | null;
2841
+ } | null;
2842
+ };
2843
+ export type CartFieldsFragment = {
2844
+ id: string;
2845
+ email?: string | null;
2846
+ customer_id?: string | null;
2847
+ region_id?: string | null;
2848
+ sales_channel_id?: string | null;
2849
+ currency_code: string;
2850
+ shipping_address_id?: string | null;
2851
+ billing_address_id?: string | null;
2852
+ metadata?: Record<string, any> | null;
2853
+ completed_at?: string | Date | null;
2854
+ created_at: string | Date;
2855
+ updated_at: string | Date;
2856
+ total?: number | null;
2857
+ subtotal?: number | null;
2858
+ tax_total?: number | null;
2859
+ discount_total?: number | null;
2860
+ item_total?: number | null;
2861
+ item_subtotal?: number | null;
2862
+ item_tax_total?: number | null;
2863
+ original_item_total?: number | null;
2864
+ shipping_total?: number | null;
2865
+ shipping_tax_total?: number | null;
2866
+ shipping_address?: {
2867
+ id: string;
2868
+ first_name?: string | null;
2869
+ last_name?: string | null;
2870
+ company?: string | null;
2871
+ address_1?: string | null;
2872
+ address_2?: string | null;
2873
+ city?: string | null;
2874
+ country_code?: string | null;
2875
+ province?: string | null;
2876
+ postal_code?: string | null;
2877
+ phone?: string | null;
2878
+ } | null;
2879
+ billing_address?: {
2880
+ id: string;
2881
+ first_name?: string | null;
2882
+ last_name?: string | null;
2883
+ company?: string | null;
2884
+ address_1?: string | null;
2885
+ address_2?: string | null;
2886
+ city?: string | null;
2887
+ country_code?: string | null;
2888
+ province?: string | null;
2889
+ postal_code?: string | null;
2890
+ phone?: string | null;
2891
+ } | null;
2892
+ items: Array<{
2893
+ id: string;
2894
+ title: string;
2895
+ subtitle?: string | null;
2896
+ thumbnail?: string | null;
2897
+ quantity: number;
2898
+ variant_id?: string | null;
2899
+ product_id?: string | null;
2900
+ product_title?: string | null;
2901
+ product_handle?: string | null;
2902
+ variant_sku?: string | null;
2903
+ variant_title?: string | null;
2904
+ unit_price: number;
2905
+ compare_at_unit_price?: number | null;
2906
+ subtotal?: number | null;
2907
+ total?: number | null;
2908
+ original_total?: number | null;
2909
+ discount_total?: number | null;
2910
+ tax_total?: number | null;
2911
+ is_discountable: boolean;
2912
+ is_giftcard: boolean;
2913
+ requires_shipping: boolean;
2914
+ metadata?: Record<string, any> | null;
2915
+ variant?: {
2916
+ id: string;
2917
+ title: string;
2918
+ sku?: string | null;
2919
+ barcode?: string | null;
2920
+ manage_inventory: boolean;
2921
+ allow_backorder: boolean;
2922
+ options: Array<{
2923
+ id: string;
2924
+ value: string;
2925
+ option?: {
2926
+ id: string;
2927
+ title: string;
2928
+ } | null;
2929
+ }>;
2930
+ product?: {
2931
+ id: string;
2932
+ title: string;
2933
+ handle: string;
2934
+ thumbnail?: string | null;
2935
+ images: Array<{
2936
+ url: string;
2937
+ }>;
2938
+ } | null;
2939
+ } | null;
2940
+ } | null>;
2941
+ shipping_methods: Array<{
2942
+ id: string;
2943
+ name: string;
2944
+ amount: number;
2945
+ is_tax_inclusive: boolean;
2946
+ } | null>;
2947
+ promotions?: Array<{
2948
+ id: string;
2949
+ code?: string | null;
2950
+ } | null> | null;
2951
+ payment_collection?: {
2952
+ id: string;
2953
+ amount: number;
2954
+ status: PaymentCollectionStatus;
2955
+ payment_sessions: Array<{
2956
+ id: string;
2957
+ amount: number;
2958
+ provider_id: string;
2959
+ status: PaymentSessionStatus;
2960
+ data: Record<string, any>;
2961
+ } | null>;
2962
+ } | null;
2963
+ };
2964
+ export type GetCartQueryVariables = Exact<{
2965
+ id: Scalars['ID']['input'];
2966
+ }>;
2967
+ export type GetCartQuery = {
2968
+ cart?: {
2969
+ id: string;
2970
+ email?: string | null;
2971
+ customer_id?: string | null;
2972
+ region_id?: string | null;
2973
+ sales_channel_id?: string | null;
2974
+ currency_code: string;
2975
+ shipping_address_id?: string | null;
2976
+ billing_address_id?: string | null;
2977
+ metadata?: Record<string, any> | null;
2978
+ completed_at?: string | Date | null;
2979
+ created_at: string | Date;
2980
+ updated_at: string | Date;
2981
+ total?: number | null;
2982
+ subtotal?: number | null;
2983
+ tax_total?: number | null;
2984
+ discount_total?: number | null;
2985
+ item_total?: number | null;
2986
+ item_subtotal?: number | null;
2987
+ item_tax_total?: number | null;
2988
+ original_item_total?: number | null;
2989
+ shipping_total?: number | null;
2990
+ shipping_tax_total?: number | null;
2991
+ shipping_address?: {
2992
+ id: string;
2993
+ first_name?: string | null;
2994
+ last_name?: string | null;
2995
+ company?: string | null;
2996
+ address_1?: string | null;
2997
+ address_2?: string | null;
2998
+ city?: string | null;
2999
+ country_code?: string | null;
3000
+ province?: string | null;
3001
+ postal_code?: string | null;
3002
+ phone?: string | null;
3003
+ } | null;
3004
+ billing_address?: {
3005
+ id: string;
3006
+ first_name?: string | null;
3007
+ last_name?: string | null;
3008
+ company?: string | null;
3009
+ address_1?: string | null;
3010
+ address_2?: string | null;
3011
+ city?: string | null;
3012
+ country_code?: string | null;
3013
+ province?: string | null;
3014
+ postal_code?: string | null;
3015
+ phone?: string | null;
3016
+ } | null;
3017
+ items: Array<{
3018
+ id: string;
3019
+ title: string;
3020
+ subtitle?: string | null;
3021
+ thumbnail?: string | null;
3022
+ quantity: number;
3023
+ variant_id?: string | null;
3024
+ product_id?: string | null;
3025
+ product_title?: string | null;
3026
+ product_handle?: string | null;
3027
+ variant_sku?: string | null;
3028
+ variant_title?: string | null;
3029
+ unit_price: number;
3030
+ compare_at_unit_price?: number | null;
3031
+ subtotal?: number | null;
3032
+ total?: number | null;
3033
+ original_total?: number | null;
3034
+ discount_total?: number | null;
3035
+ tax_total?: number | null;
3036
+ is_discountable: boolean;
3037
+ is_giftcard: boolean;
3038
+ requires_shipping: boolean;
3039
+ metadata?: Record<string, any> | null;
3040
+ variant?: {
3041
+ id: string;
3042
+ title: string;
3043
+ sku?: string | null;
3044
+ barcode?: string | null;
3045
+ manage_inventory: boolean;
3046
+ allow_backorder: boolean;
3047
+ options: Array<{
3048
+ id: string;
3049
+ value: string;
3050
+ option?: {
3051
+ id: string;
3052
+ title: string;
3053
+ } | null;
3054
+ }>;
3055
+ product?: {
3056
+ id: string;
3057
+ title: string;
3058
+ handle: string;
3059
+ thumbnail?: string | null;
3060
+ images: Array<{
3061
+ url: string;
3062
+ }>;
3063
+ } | null;
3064
+ } | null;
3065
+ } | null>;
3066
+ shipping_methods: Array<{
3067
+ id: string;
3068
+ name: string;
3069
+ amount: number;
3070
+ is_tax_inclusive: boolean;
3071
+ } | null>;
3072
+ promotions?: Array<{
3073
+ id: string;
3074
+ code?: string | null;
3075
+ } | null> | null;
3076
+ payment_collection?: {
3077
+ id: string;
3078
+ amount: number;
3079
+ status: PaymentCollectionStatus;
3080
+ payment_sessions: Array<{
3081
+ id: string;
3082
+ amount: number;
3083
+ provider_id: string;
3084
+ status: PaymentSessionStatus;
3085
+ data: Record<string, any>;
3086
+ } | null>;
3087
+ } | null;
3088
+ } | null;
3089
+ };
3090
+ export type GetActiveCustomerCartQueryVariables = Exact<{
3091
+ [key: string]: never;
3092
+ }>;
3093
+ export type GetActiveCustomerCartQuery = {
3094
+ activeCustomerCart?: {
3095
+ id: string;
3096
+ email?: string | null;
3097
+ customer_id?: string | null;
3098
+ region_id?: string | null;
3099
+ sales_channel_id?: string | null;
3100
+ currency_code: string;
3101
+ shipping_address_id?: string | null;
3102
+ billing_address_id?: string | null;
3103
+ metadata?: Record<string, any> | null;
3104
+ completed_at?: string | Date | null;
3105
+ created_at: string | Date;
3106
+ updated_at: string | Date;
3107
+ total?: number | null;
3108
+ subtotal?: number | null;
3109
+ tax_total?: number | null;
3110
+ discount_total?: number | null;
3111
+ item_total?: number | null;
3112
+ item_subtotal?: number | null;
3113
+ item_tax_total?: number | null;
3114
+ original_item_total?: number | null;
3115
+ shipping_total?: number | null;
3116
+ shipping_tax_total?: number | null;
3117
+ shipping_address?: {
3118
+ id: string;
3119
+ first_name?: string | null;
3120
+ last_name?: string | null;
3121
+ company?: string | null;
3122
+ address_1?: string | null;
3123
+ address_2?: string | null;
3124
+ city?: string | null;
3125
+ country_code?: string | null;
3126
+ province?: string | null;
3127
+ postal_code?: string | null;
3128
+ phone?: string | null;
3129
+ } | null;
3130
+ billing_address?: {
3131
+ id: string;
3132
+ first_name?: string | null;
3133
+ last_name?: string | null;
3134
+ company?: string | null;
3135
+ address_1?: string | null;
3136
+ address_2?: string | null;
3137
+ city?: string | null;
3138
+ country_code?: string | null;
3139
+ province?: string | null;
3140
+ postal_code?: string | null;
3141
+ phone?: string | null;
3142
+ } | null;
3143
+ items: Array<{
3144
+ id: string;
3145
+ title: string;
3146
+ subtitle?: string | null;
3147
+ thumbnail?: string | null;
3148
+ quantity: number;
3149
+ variant_id?: string | null;
3150
+ product_id?: string | null;
3151
+ product_title?: string | null;
3152
+ product_handle?: string | null;
3153
+ variant_sku?: string | null;
3154
+ variant_title?: string | null;
3155
+ unit_price: number;
3156
+ compare_at_unit_price?: number | null;
3157
+ subtotal?: number | null;
3158
+ total?: number | null;
3159
+ original_total?: number | null;
3160
+ discount_total?: number | null;
3161
+ tax_total?: number | null;
3162
+ is_discountable: boolean;
3163
+ is_giftcard: boolean;
3164
+ requires_shipping: boolean;
3165
+ metadata?: Record<string, any> | null;
3166
+ variant?: {
3167
+ id: string;
3168
+ title: string;
3169
+ sku?: string | null;
3170
+ barcode?: string | null;
3171
+ manage_inventory: boolean;
3172
+ allow_backorder: boolean;
3173
+ options: Array<{
3174
+ id: string;
3175
+ value: string;
3176
+ option?: {
3177
+ id: string;
3178
+ title: string;
3179
+ } | null;
3180
+ }>;
3181
+ product?: {
3182
+ id: string;
3183
+ title: string;
3184
+ handle: string;
3185
+ thumbnail?: string | null;
3186
+ images: Array<{
3187
+ url: string;
3188
+ }>;
3189
+ } | null;
3190
+ } | null;
3191
+ } | null>;
3192
+ shipping_methods: Array<{
3193
+ id: string;
3194
+ name: string;
3195
+ amount: number;
3196
+ is_tax_inclusive: boolean;
3197
+ } | null>;
3198
+ promotions?: Array<{
3199
+ id: string;
3200
+ code?: string | null;
3201
+ } | null> | null;
3202
+ payment_collection?: {
3203
+ id: string;
3204
+ amount: number;
3205
+ status: PaymentCollectionStatus;
3206
+ payment_sessions: Array<{
3207
+ id: string;
3208
+ amount: number;
3209
+ provider_id: string;
3210
+ status: PaymentSessionStatus;
3211
+ data: Record<string, any>;
3212
+ } | null>;
3213
+ } | null;
3214
+ } | null;
3215
+ };
3216
+ export type CreateCartMutationVariables = Exact<{
3217
+ input: CreateCartInput;
3218
+ }>;
3219
+ export type CreateCartMutation = {
3220
+ createCart: {
3221
+ id: string;
3222
+ email?: string | null;
3223
+ customer_id?: string | null;
3224
+ region_id?: string | null;
3225
+ sales_channel_id?: string | null;
3226
+ currency_code: string;
3227
+ shipping_address_id?: string | null;
3228
+ billing_address_id?: string | null;
3229
+ metadata?: Record<string, any> | null;
3230
+ completed_at?: string | Date | null;
3231
+ created_at: string | Date;
3232
+ updated_at: string | Date;
3233
+ total?: number | null;
3234
+ subtotal?: number | null;
3235
+ tax_total?: number | null;
3236
+ discount_total?: number | null;
3237
+ item_total?: number | null;
3238
+ item_subtotal?: number | null;
3239
+ item_tax_total?: number | null;
3240
+ original_item_total?: number | null;
3241
+ shipping_total?: number | null;
3242
+ shipping_tax_total?: number | null;
3243
+ shipping_address?: {
3244
+ id: string;
3245
+ first_name?: string | null;
3246
+ last_name?: string | null;
3247
+ company?: string | null;
3248
+ address_1?: string | null;
3249
+ address_2?: string | null;
3250
+ city?: string | null;
3251
+ country_code?: string | null;
3252
+ province?: string | null;
3253
+ postal_code?: string | null;
3254
+ phone?: string | null;
3255
+ } | null;
3256
+ billing_address?: {
3257
+ id: string;
3258
+ first_name?: string | null;
3259
+ last_name?: string | null;
3260
+ company?: string | null;
3261
+ address_1?: string | null;
3262
+ address_2?: string | null;
3263
+ city?: string | null;
3264
+ country_code?: string | null;
3265
+ province?: string | null;
3266
+ postal_code?: string | null;
3267
+ phone?: string | null;
3268
+ } | null;
3269
+ items: Array<{
3270
+ id: string;
3271
+ title: string;
3272
+ subtitle?: string | null;
3273
+ thumbnail?: string | null;
3274
+ quantity: number;
3275
+ variant_id?: string | null;
3276
+ product_id?: string | null;
3277
+ product_title?: string | null;
3278
+ product_handle?: string | null;
3279
+ variant_sku?: string | null;
3280
+ variant_title?: string | null;
3281
+ unit_price: number;
3282
+ compare_at_unit_price?: number | null;
3283
+ subtotal?: number | null;
3284
+ total?: number | null;
3285
+ original_total?: number | null;
3286
+ discount_total?: number | null;
3287
+ tax_total?: number | null;
3288
+ is_discountable: boolean;
3289
+ is_giftcard: boolean;
3290
+ requires_shipping: boolean;
3291
+ metadata?: Record<string, any> | null;
3292
+ variant?: {
3293
+ id: string;
3294
+ title: string;
3295
+ sku?: string | null;
3296
+ barcode?: string | null;
3297
+ manage_inventory: boolean;
3298
+ allow_backorder: boolean;
3299
+ options: Array<{
3300
+ id: string;
3301
+ value: string;
3302
+ option?: {
3303
+ id: string;
3304
+ title: string;
3305
+ } | null;
3306
+ }>;
3307
+ product?: {
3308
+ id: string;
3309
+ title: string;
3310
+ handle: string;
3311
+ thumbnail?: string | null;
3312
+ images: Array<{
3313
+ url: string;
3314
+ }>;
3315
+ } | null;
3316
+ } | null;
3317
+ } | null>;
3318
+ shipping_methods: Array<{
3319
+ id: string;
3320
+ name: string;
3321
+ amount: number;
3322
+ is_tax_inclusive: boolean;
3323
+ } | null>;
3324
+ promotions?: Array<{
3325
+ id: string;
3326
+ code?: string | null;
3327
+ } | null> | null;
3328
+ payment_collection?: {
3329
+ id: string;
3330
+ amount: number;
3331
+ status: PaymentCollectionStatus;
3332
+ payment_sessions: Array<{
3333
+ id: string;
3334
+ amount: number;
3335
+ provider_id: string;
3336
+ status: PaymentSessionStatus;
3337
+ data: Record<string, any>;
3338
+ } | null>;
3339
+ } | null;
3340
+ };
3341
+ };
3342
+ export type UpdateCartMutationVariables = Exact<{
3343
+ id: Scalars['ID']['input'];
3344
+ input: UpdateCartInput;
3345
+ }>;
3346
+ export type UpdateCartMutation = {
3347
+ updateCart: {
3348
+ id: string;
3349
+ email?: string | null;
3350
+ customer_id?: string | null;
3351
+ region_id?: string | null;
3352
+ sales_channel_id?: string | null;
3353
+ currency_code: string;
3354
+ shipping_address_id?: string | null;
3355
+ billing_address_id?: string | null;
3356
+ metadata?: Record<string, any> | null;
3357
+ completed_at?: string | Date | null;
3358
+ created_at: string | Date;
3359
+ updated_at: string | Date;
3360
+ total?: number | null;
3361
+ subtotal?: number | null;
3362
+ tax_total?: number | null;
3363
+ discount_total?: number | null;
3364
+ item_total?: number | null;
3365
+ item_subtotal?: number | null;
3366
+ item_tax_total?: number | null;
3367
+ original_item_total?: number | null;
3368
+ shipping_total?: number | null;
3369
+ shipping_tax_total?: number | null;
3370
+ shipping_address?: {
3371
+ id: string;
3372
+ first_name?: string | null;
3373
+ last_name?: string | null;
3374
+ company?: string | null;
3375
+ address_1?: string | null;
3376
+ address_2?: string | null;
3377
+ city?: string | null;
3378
+ country_code?: string | null;
3379
+ province?: string | null;
3380
+ postal_code?: string | null;
3381
+ phone?: string | null;
3382
+ } | null;
3383
+ billing_address?: {
3384
+ id: string;
3385
+ first_name?: string | null;
3386
+ last_name?: string | null;
3387
+ company?: string | null;
3388
+ address_1?: string | null;
3389
+ address_2?: string | null;
3390
+ city?: string | null;
3391
+ country_code?: string | null;
3392
+ province?: string | null;
3393
+ postal_code?: string | null;
3394
+ phone?: string | null;
3395
+ } | null;
3396
+ items: Array<{
3397
+ id: string;
3398
+ title: string;
3399
+ subtitle?: string | null;
3400
+ thumbnail?: string | null;
3401
+ quantity: number;
3402
+ variant_id?: string | null;
3403
+ product_id?: string | null;
3404
+ product_title?: string | null;
3405
+ product_handle?: string | null;
3406
+ variant_sku?: string | null;
3407
+ variant_title?: string | null;
3408
+ unit_price: number;
3409
+ compare_at_unit_price?: number | null;
3410
+ subtotal?: number | null;
3411
+ total?: number | null;
3412
+ original_total?: number | null;
3413
+ discount_total?: number | null;
3414
+ tax_total?: number | null;
3415
+ is_discountable: boolean;
3416
+ is_giftcard: boolean;
3417
+ requires_shipping: boolean;
3418
+ metadata?: Record<string, any> | null;
3419
+ variant?: {
3420
+ id: string;
3421
+ title: string;
3422
+ sku?: string | null;
3423
+ barcode?: string | null;
3424
+ manage_inventory: boolean;
3425
+ allow_backorder: boolean;
3426
+ options: Array<{
3427
+ id: string;
3428
+ value: string;
3429
+ option?: {
3430
+ id: string;
3431
+ title: string;
3432
+ } | null;
3433
+ }>;
3434
+ product?: {
3435
+ id: string;
3436
+ title: string;
3437
+ handle: string;
3438
+ thumbnail?: string | null;
3439
+ images: Array<{
3440
+ url: string;
3441
+ }>;
3442
+ } | null;
3443
+ } | null;
3444
+ } | null>;
3445
+ shipping_methods: Array<{
3446
+ id: string;
3447
+ name: string;
3448
+ amount: number;
3449
+ is_tax_inclusive: boolean;
3450
+ } | null>;
3451
+ promotions?: Array<{
3452
+ id: string;
3453
+ code?: string | null;
3454
+ } | null> | null;
3455
+ payment_collection?: {
3456
+ id: string;
3457
+ amount: number;
3458
+ status: PaymentCollectionStatus;
3459
+ payment_sessions: Array<{
3460
+ id: string;
3461
+ amount: number;
3462
+ provider_id: string;
3463
+ status: PaymentSessionStatus;
3464
+ data: Record<string, any>;
3465
+ } | null>;
3466
+ } | null;
3467
+ };
3468
+ };
3469
+ export type AddCartLineItemMutationVariables = Exact<{
3470
+ cartId: Scalars['ID']['input'];
3471
+ input: AddCartLineItemInput;
3472
+ }>;
3473
+ export type AddCartLineItemMutation = {
3474
+ addCartLineItem: {
3475
+ id: string;
3476
+ email?: string | null;
3477
+ customer_id?: string | null;
3478
+ region_id?: string | null;
3479
+ sales_channel_id?: string | null;
3480
+ currency_code: string;
3481
+ shipping_address_id?: string | null;
3482
+ billing_address_id?: string | null;
3483
+ metadata?: Record<string, any> | null;
3484
+ completed_at?: string | Date | null;
3485
+ created_at: string | Date;
3486
+ updated_at: string | Date;
3487
+ total?: number | null;
3488
+ subtotal?: number | null;
3489
+ tax_total?: number | null;
3490
+ discount_total?: number | null;
3491
+ item_total?: number | null;
3492
+ item_subtotal?: number | null;
3493
+ item_tax_total?: number | null;
3494
+ original_item_total?: number | null;
3495
+ shipping_total?: number | null;
3496
+ shipping_tax_total?: number | null;
3497
+ shipping_address?: {
3498
+ id: string;
3499
+ first_name?: string | null;
3500
+ last_name?: string | null;
3501
+ company?: string | null;
3502
+ address_1?: string | null;
3503
+ address_2?: string | null;
3504
+ city?: string | null;
3505
+ country_code?: string | null;
3506
+ province?: string | null;
3507
+ postal_code?: string | null;
3508
+ phone?: string | null;
3509
+ } | null;
3510
+ billing_address?: {
3511
+ id: string;
3512
+ first_name?: string | null;
3513
+ last_name?: string | null;
3514
+ company?: string | null;
3515
+ address_1?: string | null;
3516
+ address_2?: string | null;
3517
+ city?: string | null;
3518
+ country_code?: string | null;
3519
+ province?: string | null;
3520
+ postal_code?: string | null;
3521
+ phone?: string | null;
3522
+ } | null;
3523
+ items: Array<{
3524
+ id: string;
3525
+ title: string;
3526
+ subtitle?: string | null;
3527
+ thumbnail?: string | null;
3528
+ quantity: number;
3529
+ variant_id?: string | null;
3530
+ product_id?: string | null;
3531
+ product_title?: string | null;
3532
+ product_handle?: string | null;
3533
+ variant_sku?: string | null;
3534
+ variant_title?: string | null;
3535
+ unit_price: number;
3536
+ compare_at_unit_price?: number | null;
3537
+ subtotal?: number | null;
3538
+ total?: number | null;
3539
+ original_total?: number | null;
3540
+ discount_total?: number | null;
3541
+ tax_total?: number | null;
3542
+ is_discountable: boolean;
3543
+ is_giftcard: boolean;
3544
+ requires_shipping: boolean;
3545
+ metadata?: Record<string, any> | null;
3546
+ variant?: {
3547
+ id: string;
3548
+ title: string;
3549
+ sku?: string | null;
3550
+ barcode?: string | null;
3551
+ manage_inventory: boolean;
3552
+ allow_backorder: boolean;
3553
+ options: Array<{
3554
+ id: string;
3555
+ value: string;
3556
+ option?: {
3557
+ id: string;
3558
+ title: string;
3559
+ } | null;
3560
+ }>;
3561
+ product?: {
3562
+ id: string;
3563
+ title: string;
3564
+ handle: string;
3565
+ thumbnail?: string | null;
3566
+ images: Array<{
3567
+ url: string;
3568
+ }>;
3569
+ } | null;
3570
+ } | null;
3571
+ } | null>;
3572
+ shipping_methods: Array<{
3573
+ id: string;
3574
+ name: string;
3575
+ amount: number;
3576
+ is_tax_inclusive: boolean;
3577
+ } | null>;
3578
+ promotions?: Array<{
3579
+ id: string;
3580
+ code?: string | null;
3581
+ } | null> | null;
3582
+ payment_collection?: {
3583
+ id: string;
3584
+ amount: number;
3585
+ status: PaymentCollectionStatus;
3586
+ payment_sessions: Array<{
3587
+ id: string;
3588
+ amount: number;
3589
+ provider_id: string;
3590
+ status: PaymentSessionStatus;
3591
+ data: Record<string, any>;
3592
+ } | null>;
3593
+ } | null;
3594
+ };
3595
+ };
3596
+ export type UpdateCartLineItemMutationVariables = Exact<{
3597
+ cartId: Scalars['ID']['input'];
3598
+ lineId: Scalars['ID']['input'];
3599
+ input: UpdateCartLineItemInput;
3600
+ }>;
3601
+ export type UpdateCartLineItemMutation = {
3602
+ updateCartLineItem: {
3603
+ id: string;
3604
+ email?: string | null;
3605
+ customer_id?: string | null;
3606
+ region_id?: string | null;
3607
+ sales_channel_id?: string | null;
3608
+ currency_code: string;
3609
+ shipping_address_id?: string | null;
3610
+ billing_address_id?: string | null;
3611
+ metadata?: Record<string, any> | null;
3612
+ completed_at?: string | Date | null;
3613
+ created_at: string | Date;
3614
+ updated_at: string | Date;
3615
+ total?: number | null;
3616
+ subtotal?: number | null;
3617
+ tax_total?: number | null;
3618
+ discount_total?: number | null;
3619
+ item_total?: number | null;
3620
+ item_subtotal?: number | null;
3621
+ item_tax_total?: number | null;
3622
+ original_item_total?: number | null;
3623
+ shipping_total?: number | null;
3624
+ shipping_tax_total?: number | null;
3625
+ shipping_address?: {
3626
+ id: string;
3627
+ first_name?: string | null;
3628
+ last_name?: string | null;
3629
+ company?: string | null;
3630
+ address_1?: string | null;
3631
+ address_2?: string | null;
3632
+ city?: string | null;
3633
+ country_code?: string | null;
3634
+ province?: string | null;
3635
+ postal_code?: string | null;
3636
+ phone?: string | null;
3637
+ } | null;
3638
+ billing_address?: {
3639
+ id: string;
3640
+ first_name?: string | null;
3641
+ last_name?: string | null;
3642
+ company?: string | null;
3643
+ address_1?: string | null;
3644
+ address_2?: string | null;
3645
+ city?: string | null;
3646
+ country_code?: string | null;
3647
+ province?: string | null;
3648
+ postal_code?: string | null;
3649
+ phone?: string | null;
3650
+ } | null;
3651
+ items: Array<{
3652
+ id: string;
3653
+ title: string;
3654
+ subtitle?: string | null;
3655
+ thumbnail?: string | null;
3656
+ quantity: number;
3657
+ variant_id?: string | null;
3658
+ product_id?: string | null;
3659
+ product_title?: string | null;
3660
+ product_handle?: string | null;
3661
+ variant_sku?: string | null;
3662
+ variant_title?: string | null;
3663
+ unit_price: number;
3664
+ compare_at_unit_price?: number | null;
3665
+ subtotal?: number | null;
3666
+ total?: number | null;
3667
+ original_total?: number | null;
3668
+ discount_total?: number | null;
3669
+ tax_total?: number | null;
3670
+ is_discountable: boolean;
3671
+ is_giftcard: boolean;
3672
+ requires_shipping: boolean;
3673
+ metadata?: Record<string, any> | null;
3674
+ variant?: {
3675
+ id: string;
3676
+ title: string;
3677
+ sku?: string | null;
3678
+ barcode?: string | null;
3679
+ manage_inventory: boolean;
3680
+ allow_backorder: boolean;
3681
+ options: Array<{
3682
+ id: string;
3683
+ value: string;
3684
+ option?: {
3685
+ id: string;
3686
+ title: string;
3687
+ } | null;
3688
+ }>;
3689
+ product?: {
3690
+ id: string;
3691
+ title: string;
3692
+ handle: string;
3693
+ thumbnail?: string | null;
3694
+ images: Array<{
3695
+ url: string;
3696
+ }>;
3697
+ } | null;
3698
+ } | null;
3699
+ } | null>;
3700
+ shipping_methods: Array<{
3701
+ id: string;
3702
+ name: string;
3703
+ amount: number;
3704
+ is_tax_inclusive: boolean;
3705
+ } | null>;
3706
+ promotions?: Array<{
3707
+ id: string;
3708
+ code?: string | null;
3709
+ } | null> | null;
3710
+ payment_collection?: {
3711
+ id: string;
3712
+ amount: number;
3713
+ status: PaymentCollectionStatus;
3714
+ payment_sessions: Array<{
3715
+ id: string;
3716
+ amount: number;
3717
+ provider_id: string;
3718
+ status: PaymentSessionStatus;
3719
+ data: Record<string, any>;
3720
+ } | null>;
3721
+ } | null;
3722
+ };
3723
+ };
3724
+ export type RemoveCartLineItemMutationVariables = Exact<{
3725
+ cartId: Scalars['ID']['input'];
3726
+ lineId: Scalars['ID']['input'];
3727
+ }>;
3728
+ export type RemoveCartLineItemMutation = {
3729
+ removeCartLineItem: {
3730
+ id: string;
3731
+ email?: string | null;
3732
+ customer_id?: string | null;
3733
+ region_id?: string | null;
3734
+ sales_channel_id?: string | null;
3735
+ currency_code: string;
3736
+ shipping_address_id?: string | null;
3737
+ billing_address_id?: string | null;
3738
+ metadata?: Record<string, any> | null;
3739
+ completed_at?: string | Date | null;
3740
+ created_at: string | Date;
3741
+ updated_at: string | Date;
3742
+ total?: number | null;
3743
+ subtotal?: number | null;
3744
+ tax_total?: number | null;
3745
+ discount_total?: number | null;
3746
+ item_total?: number | null;
3747
+ item_subtotal?: number | null;
3748
+ item_tax_total?: number | null;
3749
+ original_item_total?: number | null;
3750
+ shipping_total?: number | null;
3751
+ shipping_tax_total?: number | null;
3752
+ shipping_address?: {
3753
+ id: string;
3754
+ first_name?: string | null;
3755
+ last_name?: string | null;
3756
+ company?: string | null;
3757
+ address_1?: string | null;
3758
+ address_2?: string | null;
3759
+ city?: string | null;
3760
+ country_code?: string | null;
3761
+ province?: string | null;
3762
+ postal_code?: string | null;
3763
+ phone?: string | null;
3764
+ } | null;
3765
+ billing_address?: {
3766
+ id: string;
3767
+ first_name?: string | null;
3768
+ last_name?: string | null;
3769
+ company?: string | null;
3770
+ address_1?: string | null;
3771
+ address_2?: string | null;
3772
+ city?: string | null;
3773
+ country_code?: string | null;
3774
+ province?: string | null;
3775
+ postal_code?: string | null;
3776
+ phone?: string | null;
3777
+ } | null;
3778
+ items: Array<{
3779
+ id: string;
3780
+ title: string;
3781
+ subtitle?: string | null;
3782
+ thumbnail?: string | null;
3783
+ quantity: number;
3784
+ variant_id?: string | null;
3785
+ product_id?: string | null;
3786
+ product_title?: string | null;
3787
+ product_handle?: string | null;
3788
+ variant_sku?: string | null;
3789
+ variant_title?: string | null;
3790
+ unit_price: number;
3791
+ compare_at_unit_price?: number | null;
3792
+ subtotal?: number | null;
3793
+ total?: number | null;
3794
+ original_total?: number | null;
3795
+ discount_total?: number | null;
3796
+ tax_total?: number | null;
3797
+ is_discountable: boolean;
3798
+ is_giftcard: boolean;
3799
+ requires_shipping: boolean;
3800
+ metadata?: Record<string, any> | null;
3801
+ variant?: {
3802
+ id: string;
3803
+ title: string;
3804
+ sku?: string | null;
3805
+ barcode?: string | null;
3806
+ manage_inventory: boolean;
3807
+ allow_backorder: boolean;
3808
+ options: Array<{
3809
+ id: string;
3810
+ value: string;
3811
+ option?: {
3812
+ id: string;
3813
+ title: string;
3814
+ } | null;
3815
+ }>;
3816
+ product?: {
3817
+ id: string;
3818
+ title: string;
3819
+ handle: string;
3820
+ thumbnail?: string | null;
3821
+ images: Array<{
3822
+ url: string;
3823
+ }>;
3824
+ } | null;
3825
+ } | null;
3826
+ } | null>;
3827
+ shipping_methods: Array<{
3828
+ id: string;
3829
+ name: string;
3830
+ amount: number;
3831
+ is_tax_inclusive: boolean;
3832
+ } | null>;
3833
+ promotions?: Array<{
3834
+ id: string;
3835
+ code?: string | null;
3836
+ } | null> | null;
3837
+ payment_collection?: {
3838
+ id: string;
3839
+ amount: number;
3840
+ status: PaymentCollectionStatus;
3841
+ payment_sessions: Array<{
3842
+ id: string;
3843
+ amount: number;
3844
+ provider_id: string;
3845
+ status: PaymentSessionStatus;
3846
+ data: Record<string, any>;
3847
+ } | null>;
3848
+ } | null;
3849
+ };
3850
+ };
3851
+ export type AddCartShippingMethodMutationVariables = Exact<{
3852
+ cartId: Scalars['ID']['input'];
3853
+ input: AddCartShippingMethodInput;
3854
+ }>;
3855
+ export type AddCartShippingMethodMutation = {
3856
+ addCartShippingMethod: {
3857
+ id: string;
3858
+ email?: string | null;
3859
+ customer_id?: string | null;
3860
+ region_id?: string | null;
3861
+ sales_channel_id?: string | null;
3862
+ currency_code: string;
3863
+ shipping_address_id?: string | null;
3864
+ billing_address_id?: string | null;
3865
+ metadata?: Record<string, any> | null;
3866
+ completed_at?: string | Date | null;
3867
+ created_at: string | Date;
3868
+ updated_at: string | Date;
3869
+ total?: number | null;
3870
+ subtotal?: number | null;
3871
+ tax_total?: number | null;
3872
+ discount_total?: number | null;
3873
+ item_total?: number | null;
3874
+ item_subtotal?: number | null;
3875
+ item_tax_total?: number | null;
3876
+ original_item_total?: number | null;
3877
+ shipping_total?: number | null;
3878
+ shipping_tax_total?: number | null;
3879
+ shipping_address?: {
3880
+ id: string;
3881
+ first_name?: string | null;
3882
+ last_name?: string | null;
3883
+ company?: string | null;
3884
+ address_1?: string | null;
3885
+ address_2?: string | null;
3886
+ city?: string | null;
3887
+ country_code?: string | null;
3888
+ province?: string | null;
3889
+ postal_code?: string | null;
3890
+ phone?: string | null;
3891
+ } | null;
3892
+ billing_address?: {
3893
+ id: string;
3894
+ first_name?: string | null;
3895
+ last_name?: string | null;
3896
+ company?: string | null;
3897
+ address_1?: string | null;
3898
+ address_2?: string | null;
3899
+ city?: string | null;
3900
+ country_code?: string | null;
3901
+ province?: string | null;
3902
+ postal_code?: string | null;
3903
+ phone?: string | null;
3904
+ } | null;
3905
+ items: Array<{
3906
+ id: string;
3907
+ title: string;
3908
+ subtitle?: string | null;
3909
+ thumbnail?: string | null;
3910
+ quantity: number;
3911
+ variant_id?: string | null;
3912
+ product_id?: string | null;
3913
+ product_title?: string | null;
3914
+ product_handle?: string | null;
3915
+ variant_sku?: string | null;
3916
+ variant_title?: string | null;
3917
+ unit_price: number;
3918
+ compare_at_unit_price?: number | null;
3919
+ subtotal?: number | null;
3920
+ total?: number | null;
3921
+ original_total?: number | null;
3922
+ discount_total?: number | null;
3923
+ tax_total?: number | null;
3924
+ is_discountable: boolean;
3925
+ is_giftcard: boolean;
3926
+ requires_shipping: boolean;
3927
+ metadata?: Record<string, any> | null;
3928
+ variant?: {
3929
+ id: string;
3930
+ title: string;
3931
+ sku?: string | null;
3932
+ barcode?: string | null;
3933
+ manage_inventory: boolean;
3934
+ allow_backorder: boolean;
3935
+ options: Array<{
3936
+ id: string;
3937
+ value: string;
3938
+ option?: {
3939
+ id: string;
3940
+ title: string;
3941
+ } | null;
3942
+ }>;
3943
+ product?: {
3944
+ id: string;
3945
+ title: string;
3946
+ handle: string;
3947
+ thumbnail?: string | null;
3948
+ images: Array<{
3949
+ url: string;
3950
+ }>;
3951
+ } | null;
3952
+ } | null;
3953
+ } | null>;
3954
+ shipping_methods: Array<{
3955
+ id: string;
3956
+ name: string;
3957
+ amount: number;
3958
+ is_tax_inclusive: boolean;
3959
+ } | null>;
3960
+ promotions?: Array<{
3961
+ id: string;
3962
+ code?: string | null;
3963
+ } | null> | null;
3964
+ payment_collection?: {
3965
+ id: string;
3966
+ amount: number;
3967
+ status: PaymentCollectionStatus;
3968
+ payment_sessions: Array<{
3969
+ id: string;
3970
+ amount: number;
3971
+ provider_id: string;
3972
+ status: PaymentSessionStatus;
3973
+ data: Record<string, any>;
3974
+ } | null>;
3975
+ } | null;
3976
+ };
3977
+ };
3978
+ export type AddCartPromotionsMutationVariables = Exact<{
3979
+ cartId: Scalars['ID']['input'];
3980
+ promoCodes: Array<Scalars['String']['input']> | Scalars['String']['input'];
3981
+ }>;
3982
+ export type AddCartPromotionsMutation = {
3983
+ addCartPromotions: {
3984
+ id: string;
3985
+ email?: string | null;
3986
+ customer_id?: string | null;
3987
+ region_id?: string | null;
3988
+ sales_channel_id?: string | null;
3989
+ currency_code: string;
3990
+ shipping_address_id?: string | null;
3991
+ billing_address_id?: string | null;
3992
+ metadata?: Record<string, any> | null;
3993
+ completed_at?: string | Date | null;
3994
+ created_at: string | Date;
3995
+ updated_at: string | Date;
3996
+ total?: number | null;
3997
+ subtotal?: number | null;
3998
+ tax_total?: number | null;
3999
+ discount_total?: number | null;
4000
+ item_total?: number | null;
4001
+ item_subtotal?: number | null;
4002
+ item_tax_total?: number | null;
4003
+ original_item_total?: number | null;
4004
+ shipping_total?: number | null;
4005
+ shipping_tax_total?: number | null;
4006
+ shipping_address?: {
4007
+ id: string;
4008
+ first_name?: string | null;
4009
+ last_name?: string | null;
4010
+ company?: string | null;
4011
+ address_1?: string | null;
4012
+ address_2?: string | null;
4013
+ city?: string | null;
4014
+ country_code?: string | null;
4015
+ province?: string | null;
4016
+ postal_code?: string | null;
4017
+ phone?: string | null;
4018
+ } | null;
4019
+ billing_address?: {
4020
+ id: string;
4021
+ first_name?: string | null;
4022
+ last_name?: string | null;
4023
+ company?: string | null;
4024
+ address_1?: string | null;
4025
+ address_2?: string | null;
4026
+ city?: string | null;
4027
+ country_code?: string | null;
4028
+ province?: string | null;
4029
+ postal_code?: string | null;
4030
+ phone?: string | null;
4031
+ } | null;
4032
+ items: Array<{
4033
+ id: string;
4034
+ title: string;
4035
+ subtitle?: string | null;
4036
+ thumbnail?: string | null;
4037
+ quantity: number;
4038
+ variant_id?: string | null;
4039
+ product_id?: string | null;
4040
+ product_title?: string | null;
4041
+ product_handle?: string | null;
4042
+ variant_sku?: string | null;
4043
+ variant_title?: string | null;
4044
+ unit_price: number;
4045
+ compare_at_unit_price?: number | null;
4046
+ subtotal?: number | null;
4047
+ total?: number | null;
4048
+ original_total?: number | null;
4049
+ discount_total?: number | null;
4050
+ tax_total?: number | null;
4051
+ is_discountable: boolean;
4052
+ is_giftcard: boolean;
4053
+ requires_shipping: boolean;
4054
+ metadata?: Record<string, any> | null;
4055
+ variant?: {
4056
+ id: string;
4057
+ title: string;
4058
+ sku?: string | null;
4059
+ barcode?: string | null;
4060
+ manage_inventory: boolean;
4061
+ allow_backorder: boolean;
4062
+ options: Array<{
4063
+ id: string;
4064
+ value: string;
4065
+ option?: {
4066
+ id: string;
4067
+ title: string;
4068
+ } | null;
4069
+ }>;
4070
+ product?: {
4071
+ id: string;
4072
+ title: string;
4073
+ handle: string;
4074
+ thumbnail?: string | null;
4075
+ images: Array<{
4076
+ url: string;
4077
+ }>;
4078
+ } | null;
4079
+ } | null;
4080
+ } | null>;
4081
+ shipping_methods: Array<{
4082
+ id: string;
4083
+ name: string;
4084
+ amount: number;
4085
+ is_tax_inclusive: boolean;
4086
+ } | null>;
4087
+ promotions?: Array<{
4088
+ id: string;
4089
+ code?: string | null;
4090
+ } | null> | null;
4091
+ payment_collection?: {
4092
+ id: string;
4093
+ amount: number;
4094
+ status: PaymentCollectionStatus;
4095
+ payment_sessions: Array<{
4096
+ id: string;
4097
+ amount: number;
4098
+ provider_id: string;
4099
+ status: PaymentSessionStatus;
4100
+ data: Record<string, any>;
4101
+ } | null>;
4102
+ } | null;
4103
+ };
4104
+ };
4105
+ export type RemoveCartPromotionsMutationVariables = Exact<{
4106
+ cartId: Scalars['ID']['input'];
4107
+ promoCodes?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
4108
+ }>;
4109
+ export type RemoveCartPromotionsMutation = {
4110
+ removeCartPromotions: {
4111
+ id: string;
4112
+ email?: string | null;
4113
+ customer_id?: string | null;
4114
+ region_id?: string | null;
4115
+ sales_channel_id?: string | null;
4116
+ currency_code: string;
4117
+ shipping_address_id?: string | null;
4118
+ billing_address_id?: string | null;
4119
+ metadata?: Record<string, any> | null;
4120
+ completed_at?: string | Date | null;
4121
+ created_at: string | Date;
4122
+ updated_at: string | Date;
4123
+ total?: number | null;
4124
+ subtotal?: number | null;
4125
+ tax_total?: number | null;
4126
+ discount_total?: number | null;
4127
+ item_total?: number | null;
4128
+ item_subtotal?: number | null;
4129
+ item_tax_total?: number | null;
4130
+ original_item_total?: number | null;
4131
+ shipping_total?: number | null;
4132
+ shipping_tax_total?: number | null;
4133
+ shipping_address?: {
4134
+ id: string;
4135
+ first_name?: string | null;
4136
+ last_name?: string | null;
4137
+ company?: string | null;
4138
+ address_1?: string | null;
4139
+ address_2?: string | null;
4140
+ city?: string | null;
4141
+ country_code?: string | null;
4142
+ province?: string | null;
4143
+ postal_code?: string | null;
4144
+ phone?: string | null;
4145
+ } | null;
4146
+ billing_address?: {
4147
+ id: string;
4148
+ first_name?: string | null;
4149
+ last_name?: string | null;
4150
+ company?: string | null;
4151
+ address_1?: string | null;
4152
+ address_2?: string | null;
4153
+ city?: string | null;
4154
+ country_code?: string | null;
4155
+ province?: string | null;
4156
+ postal_code?: string | null;
4157
+ phone?: string | null;
4158
+ } | null;
4159
+ items: Array<{
4160
+ id: string;
4161
+ title: string;
4162
+ subtitle?: string | null;
4163
+ thumbnail?: string | null;
4164
+ quantity: number;
4165
+ variant_id?: string | null;
4166
+ product_id?: string | null;
4167
+ product_title?: string | null;
4168
+ product_handle?: string | null;
4169
+ variant_sku?: string | null;
4170
+ variant_title?: string | null;
4171
+ unit_price: number;
4172
+ compare_at_unit_price?: number | null;
4173
+ subtotal?: number | null;
4174
+ total?: number | null;
4175
+ original_total?: number | null;
4176
+ discount_total?: number | null;
4177
+ tax_total?: number | null;
4178
+ is_discountable: boolean;
4179
+ is_giftcard: boolean;
4180
+ requires_shipping: boolean;
4181
+ metadata?: Record<string, any> | null;
4182
+ variant?: {
4183
+ id: string;
4184
+ title: string;
4185
+ sku?: string | null;
4186
+ barcode?: string | null;
4187
+ manage_inventory: boolean;
4188
+ allow_backorder: boolean;
4189
+ options: Array<{
4190
+ id: string;
4191
+ value: string;
4192
+ option?: {
4193
+ id: string;
4194
+ title: string;
4195
+ } | null;
4196
+ }>;
4197
+ product?: {
4198
+ id: string;
4199
+ title: string;
4200
+ handle: string;
4201
+ thumbnail?: string | null;
4202
+ images: Array<{
4203
+ url: string;
4204
+ }>;
4205
+ } | null;
4206
+ } | null;
4207
+ } | null>;
4208
+ shipping_methods: Array<{
4209
+ id: string;
4210
+ name: string;
4211
+ amount: number;
4212
+ is_tax_inclusive: boolean;
4213
+ } | null>;
4214
+ promotions?: Array<{
4215
+ id: string;
4216
+ code?: string | null;
4217
+ } | null> | null;
4218
+ payment_collection?: {
4219
+ id: string;
4220
+ amount: number;
4221
+ status: PaymentCollectionStatus;
4222
+ payment_sessions: Array<{
4223
+ id: string;
4224
+ amount: number;
4225
+ provider_id: string;
4226
+ status: PaymentSessionStatus;
4227
+ data: Record<string, any>;
4228
+ } | null>;
4229
+ } | null;
4230
+ };
4231
+ };
4232
+ export type UpdateCartCustomerMutationVariables = Exact<{
4233
+ cartId: Scalars['ID']['input'];
4234
+ }>;
4235
+ export type UpdateCartCustomerMutation = {
4236
+ updateCartCustomer: {
4237
+ id: string;
4238
+ email?: string | null;
4239
+ customer_id?: string | null;
4240
+ region_id?: string | null;
4241
+ sales_channel_id?: string | null;
4242
+ currency_code: string;
4243
+ shipping_address_id?: string | null;
4244
+ billing_address_id?: string | null;
4245
+ metadata?: Record<string, any> | null;
4246
+ completed_at?: string | Date | null;
4247
+ created_at: string | Date;
4248
+ updated_at: string | Date;
4249
+ total?: number | null;
4250
+ subtotal?: number | null;
4251
+ tax_total?: number | null;
4252
+ discount_total?: number | null;
4253
+ item_total?: number | null;
4254
+ item_subtotal?: number | null;
4255
+ item_tax_total?: number | null;
4256
+ original_item_total?: number | null;
4257
+ shipping_total?: number | null;
4258
+ shipping_tax_total?: number | null;
4259
+ shipping_address?: {
4260
+ id: string;
4261
+ first_name?: string | null;
4262
+ last_name?: string | null;
4263
+ company?: string | null;
4264
+ address_1?: string | null;
4265
+ address_2?: string | null;
4266
+ city?: string | null;
4267
+ country_code?: string | null;
4268
+ province?: string | null;
4269
+ postal_code?: string | null;
4270
+ phone?: string | null;
4271
+ } | null;
4272
+ billing_address?: {
4273
+ id: string;
4274
+ first_name?: string | null;
4275
+ last_name?: string | null;
4276
+ company?: string | null;
4277
+ address_1?: string | null;
4278
+ address_2?: string | null;
4279
+ city?: string | null;
4280
+ country_code?: string | null;
4281
+ province?: string | null;
4282
+ postal_code?: string | null;
4283
+ phone?: string | null;
4284
+ } | null;
4285
+ items: Array<{
4286
+ id: string;
4287
+ title: string;
4288
+ subtitle?: string | null;
4289
+ thumbnail?: string | null;
4290
+ quantity: number;
4291
+ variant_id?: string | null;
4292
+ product_id?: string | null;
4293
+ product_title?: string | null;
4294
+ product_handle?: string | null;
4295
+ variant_sku?: string | null;
4296
+ variant_title?: string | null;
4297
+ unit_price: number;
4298
+ compare_at_unit_price?: number | null;
4299
+ subtotal?: number | null;
4300
+ total?: number | null;
4301
+ original_total?: number | null;
4302
+ discount_total?: number | null;
4303
+ tax_total?: number | null;
4304
+ is_discountable: boolean;
4305
+ is_giftcard: boolean;
4306
+ requires_shipping: boolean;
4307
+ metadata?: Record<string, any> | null;
4308
+ variant?: {
4309
+ id: string;
4310
+ title: string;
4311
+ sku?: string | null;
4312
+ barcode?: string | null;
4313
+ manage_inventory: boolean;
4314
+ allow_backorder: boolean;
4315
+ options: Array<{
4316
+ id: string;
4317
+ value: string;
4318
+ option?: {
4319
+ id: string;
4320
+ title: string;
4321
+ } | null;
4322
+ }>;
4323
+ product?: {
4324
+ id: string;
4325
+ title: string;
4326
+ handle: string;
4327
+ thumbnail?: string | null;
4328
+ images: Array<{
4329
+ url: string;
4330
+ }>;
4331
+ } | null;
4332
+ } | null;
4333
+ } | null>;
4334
+ shipping_methods: Array<{
4335
+ id: string;
4336
+ name: string;
4337
+ amount: number;
4338
+ is_tax_inclusive: boolean;
4339
+ } | null>;
4340
+ promotions?: Array<{
4341
+ id: string;
4342
+ code?: string | null;
4343
+ } | null> | null;
4344
+ payment_collection?: {
4345
+ id: string;
4346
+ amount: number;
4347
+ status: PaymentCollectionStatus;
4348
+ payment_sessions: Array<{
4349
+ id: string;
4350
+ amount: number;
4351
+ provider_id: string;
4352
+ status: PaymentSessionStatus;
4353
+ data: Record<string, any>;
4354
+ } | null>;
4355
+ } | null;
4356
+ };
4357
+ };
4358
+ export type CompleteCartMutationVariables = Exact<{
4359
+ cartId: Scalars['ID']['input'];
4360
+ }>;
4361
+ export type CompleteCartMutation = {
4362
+ completeCart: {
4363
+ id: string;
4364
+ display_id: number;
4365
+ status?: OrderStatus | null;
4366
+ email?: string | null;
4367
+ };
4368
+ };
4369
+ export type CreatePaymentCollectionMutationVariables = Exact<{
4370
+ cartId: Scalars['ID']['input'];
4371
+ }>;
4372
+ export type CreatePaymentCollectionMutation = {
4373
+ createPaymentCollection: {
4374
+ id: string;
4375
+ status: PaymentCollectionStatus;
4376
+ amount: number;
4377
+ };
4378
+ };
4379
+ export type InitializePaymentSessionMutationVariables = Exact<{
4380
+ paymentCollectionId: Scalars['ID']['input'];
4381
+ input: InitializePaymentSessionInput;
4382
+ }>;
4383
+ export type InitializePaymentSessionMutation = {
4384
+ initializePaymentSession: {
4385
+ id: string;
4386
+ status: PaymentCollectionStatus;
4387
+ payment_sessions: Array<{
4388
+ id: string;
4389
+ provider_id: string;
4390
+ amount: number;
4391
+ status: PaymentSessionStatus;
4392
+ data: Record<string, any>;
4393
+ } | null>;
4394
+ };
4395
+ };
4396
+ export type CollectionFieldsFragment = {
4397
+ id: string;
4398
+ title: string;
4399
+ handle: string;
4400
+ metadata?: Record<string, any> | null;
4401
+ };
4402
+ export type CategoryFieldsFragment = {
4403
+ id: string;
4404
+ name: string;
4405
+ handle: string;
4406
+ description: string;
4407
+ parent_category_id?: string | null;
4408
+ category_children: Array<{
4409
+ id: string;
4410
+ name: string;
4411
+ handle: string;
4412
+ }>;
4413
+ };
4414
+ export type ListCollectionsQueryVariables = Exact<{
4415
+ offset?: InputMaybe<Scalars['Int']['input']>;
4416
+ limit?: InputMaybe<Scalars['Int']['input']>;
4417
+ }>;
4418
+ export type ListCollectionsQuery = {
4419
+ collections: {
4420
+ count: number;
4421
+ offset: number;
4422
+ limit: number;
4423
+ collections: Array<{
4424
+ id: string;
4425
+ title: string;
4426
+ handle: string;
4427
+ metadata?: Record<string, any> | null;
4428
+ }>;
4429
+ };
4430
+ };
4431
+ export type GetCollectionByHandleQueryVariables = Exact<{
4432
+ handle: Scalars['String']['input'];
4433
+ }>;
4434
+ export type GetCollectionByHandleQuery = {
4435
+ collections: {
4436
+ collections: Array<{
4437
+ id: string;
4438
+ title: string;
4439
+ handle: string;
4440
+ metadata?: Record<string, any> | null;
4441
+ }>;
4442
+ };
4443
+ };
4444
+ export type ListCategoriesQueryVariables = Exact<{
4445
+ parent_category_id?: InputMaybe<Scalars['String']['input']>;
4446
+ }>;
4447
+ export type ListCategoriesQuery = {
4448
+ productCategories: {
4449
+ product_categories: Array<{
4450
+ id: string;
4451
+ name: string;
4452
+ handle: string;
4453
+ description: string;
4454
+ parent_category_id?: string | null;
4455
+ category_children: Array<{
4456
+ id: string;
4457
+ name: string;
4458
+ handle: string;
4459
+ }>;
4460
+ }>;
4461
+ };
4462
+ };
4463
+ export type RegionFieldsFragment = {
4464
+ id: string;
4465
+ name: string;
4466
+ currency_code: string;
4467
+ automatic_taxes: boolean;
4468
+ countries: Array<{
4469
+ iso_2: string;
4470
+ display_name: string;
4471
+ } | null>;
4472
+ };
4473
+ export type ShippingOptionFieldsFragment = {
4474
+ id: string;
4475
+ name: string;
4476
+ price_type: ShippingOptionPriceType;
4477
+ };
4478
+ export type ListRegionsQueryVariables = Exact<{
4479
+ [key: string]: never;
4480
+ }>;
4481
+ export type ListRegionsQuery = {
4482
+ regions: {
4483
+ regions: Array<{
4484
+ id: string;
4485
+ name: string;
4486
+ currency_code: string;
4487
+ automatic_taxes: boolean;
4488
+ countries: Array<{
4489
+ iso_2: string;
4490
+ display_name: string;
4491
+ } | null>;
4492
+ }>;
4493
+ };
4494
+ };
4495
+ export type GetRegionQueryVariables = Exact<{
4496
+ id: Scalars['ID']['input'];
4497
+ }>;
4498
+ export type GetRegionQuery = {
4499
+ region?: {
4500
+ id: string;
4501
+ name: string;
4502
+ currency_code: string;
4503
+ automatic_taxes: boolean;
4504
+ countries: Array<{
4505
+ iso_2: string;
4506
+ display_name: string;
4507
+ } | null>;
4508
+ } | null;
4509
+ };
4510
+ export type ListShippingOptionsQueryVariables = Exact<{
4511
+ cartId: Scalars['ID']['input'];
4512
+ }>;
4513
+ export type ListShippingOptionsQuery = {
4514
+ shippingOptions: {
4515
+ shipping_options: Array<{
4516
+ id: string;
4517
+ name: string;
4518
+ price_type: ShippingOptionPriceType;
4519
+ }>;
4520
+ };
4521
+ };
4522
+ export type OrderFieldsFragment = {
4523
+ id: string;
4524
+ display_id: number;
4525
+ created_at: string | Date;
4526
+ status?: OrderStatus | null;
4527
+ fulfillment_status?: string | null;
4528
+ payment_status?: string | null;
4529
+ currency_code: string;
4530
+ email?: string | null;
4531
+ total: number;
4532
+ subtotal: number;
4533
+ tax_total: number;
4534
+ shipping_total: number;
4535
+ discount_total: number;
4536
+ items?: Array<{
4537
+ id: string;
4538
+ title: string;
4539
+ subtitle?: string | null;
4540
+ thumbnail?: string | null;
4541
+ quantity: number;
4542
+ unit_price: number;
4543
+ total?: number | null;
4544
+ variant_id?: string | null;
4545
+ variant_sku?: string | null;
4546
+ variant_title?: string | null;
4547
+ product_id?: string | null;
4548
+ product_title?: string | null;
4549
+ product_handle?: string | null;
4550
+ original_total?: number | null;
4551
+ discount_total?: number | null;
4552
+ tax_total?: number | null;
4553
+ } | null> | null;
4554
+ shipping_address?: {
4555
+ first_name?: string | null;
4556
+ last_name?: string | null;
4557
+ address_1?: string | null;
4558
+ address_2?: string | null;
4559
+ city?: string | null;
4560
+ postal_code?: string | null;
4561
+ province?: string | null;
4562
+ country_code?: string | null;
4563
+ phone?: string | null;
4564
+ } | null;
4565
+ billing_address?: {
4566
+ first_name?: string | null;
4567
+ last_name?: string | null;
4568
+ address_1?: string | null;
4569
+ address_2?: string | null;
4570
+ city?: string | null;
4571
+ postal_code?: string | null;
4572
+ province?: string | null;
4573
+ country_code?: string | null;
4574
+ phone?: string | null;
4575
+ } | null;
4576
+ payment_collections?: Array<{
4577
+ id: string;
4578
+ amount: number;
4579
+ status: PaymentCollectionStatus;
4580
+ payments: Array<{
4581
+ id: string;
4582
+ amount: number;
4583
+ currency_code: string;
4584
+ provider_id: string;
4585
+ } | null>;
4586
+ } | null> | null;
4587
+ shipping_methods?: Array<{
4588
+ id: string;
4589
+ name: string;
4590
+ amount?: number | null;
4591
+ total?: number | null;
4592
+ tax_total?: number | null;
4593
+ } | null> | null;
4594
+ };
4595
+ export type OrderPreviewFieldsFragment = {
4596
+ id: string;
4597
+ display_id: number;
4598
+ created_at: string | Date;
4599
+ status?: OrderStatus | null;
4600
+ fulfillment_status?: string | null;
4601
+ payment_status?: string | null;
4602
+ currency_code: string;
4603
+ email?: string | null;
4604
+ total: number;
4605
+ items?: Array<{
4606
+ id: string;
4607
+ quantity: number;
4608
+ } | null> | null;
4609
+ };
4610
+ export type GetOrderQueryVariables = Exact<{
4611
+ id: Scalars['ID']['input'];
4612
+ }>;
4613
+ export type GetOrderQuery = {
4614
+ order?: {
4615
+ id: string;
4616
+ display_id: number;
4617
+ created_at: string | Date;
4618
+ status?: OrderStatus | null;
4619
+ fulfillment_status?: string | null;
4620
+ payment_status?: string | null;
4621
+ currency_code: string;
4622
+ email?: string | null;
4623
+ total: number;
4624
+ subtotal: number;
4625
+ tax_total: number;
4626
+ shipping_total: number;
4627
+ discount_total: number;
4628
+ items?: Array<{
4629
+ id: string;
4630
+ title: string;
4631
+ subtitle?: string | null;
4632
+ thumbnail?: string | null;
4633
+ quantity: number;
4634
+ unit_price: number;
4635
+ total?: number | null;
4636
+ variant_id?: string | null;
4637
+ variant_sku?: string | null;
4638
+ variant_title?: string | null;
4639
+ product_id?: string | null;
4640
+ product_title?: string | null;
4641
+ product_handle?: string | null;
4642
+ original_total?: number | null;
4643
+ discount_total?: number | null;
4644
+ tax_total?: number | null;
4645
+ } | null> | null;
4646
+ shipping_address?: {
4647
+ first_name?: string | null;
4648
+ last_name?: string | null;
4649
+ address_1?: string | null;
4650
+ address_2?: string | null;
4651
+ city?: string | null;
4652
+ postal_code?: string | null;
4653
+ province?: string | null;
4654
+ country_code?: string | null;
4655
+ phone?: string | null;
4656
+ } | null;
4657
+ billing_address?: {
4658
+ first_name?: string | null;
4659
+ last_name?: string | null;
4660
+ address_1?: string | null;
4661
+ address_2?: string | null;
4662
+ city?: string | null;
4663
+ postal_code?: string | null;
4664
+ province?: string | null;
4665
+ country_code?: string | null;
4666
+ phone?: string | null;
4667
+ } | null;
4668
+ payment_collections?: Array<{
4669
+ id: string;
4670
+ amount: number;
4671
+ status: PaymentCollectionStatus;
4672
+ payments: Array<{
4673
+ id: string;
4674
+ amount: number;
4675
+ currency_code: string;
4676
+ provider_id: string;
4677
+ } | null>;
4678
+ } | null> | null;
4679
+ shipping_methods?: Array<{
4680
+ id: string;
4681
+ name: string;
4682
+ amount?: number | null;
4683
+ total?: number | null;
4684
+ tax_total?: number | null;
4685
+ } | null> | null;
4686
+ } | null;
4687
+ };
4688
+ export type ListOrdersQueryVariables = Exact<{
4689
+ limit?: InputMaybe<Scalars['Int']['input']>;
4690
+ offset?: InputMaybe<Scalars['Int']['input']>;
4691
+ }>;
4692
+ export type ListOrdersQuery = {
4693
+ orders: {
4694
+ count: number;
4695
+ offset: number;
4696
+ limit: number;
4697
+ orders: Array<{
4698
+ id: string;
4699
+ display_id: number;
4700
+ created_at: string | Date;
4701
+ status?: OrderStatus | null;
4702
+ fulfillment_status?: string | null;
4703
+ payment_status?: string | null;
4704
+ currency_code: string;
4705
+ email?: string | null;
4706
+ total: number;
4707
+ items?: Array<{
4708
+ id: string;
4709
+ quantity: number;
4710
+ } | null> | null;
4711
+ }>;
4712
+ };
4713
+ };
4714
+ export type ProductDetailFieldsFragment = {
4715
+ id: string;
4716
+ title: string;
4717
+ handle: string;
4718
+ subtitle?: string | null;
4719
+ description?: string | null;
4720
+ thumbnail?: string | null;
4721
+ is_giftcard: boolean;
4722
+ discountable?: boolean | null;
4723
+ collection_id?: string | null;
4724
+ type_id?: string | null;
4725
+ weight?: number | null;
4726
+ length?: number | null;
4727
+ height?: number | null;
4728
+ width?: number | null;
4729
+ hs_code?: string | null;
4730
+ origin_country?: string | null;
4731
+ mid_code?: string | null;
4732
+ material?: string | null;
4733
+ created_at: string | Date;
4734
+ updated_at: string | Date;
4735
+ metadata?: Record<string, any> | null;
4736
+ status?: ProductStatus | null;
4737
+ type?: {
4738
+ id: string;
4739
+ value: string;
4740
+ } | null;
4741
+ collection?: {
4742
+ id: string;
4743
+ title: string;
4744
+ handle: string;
4745
+ } | null;
4746
+ categories?: Array<{
4747
+ id: string;
4748
+ name: string;
4749
+ handle: string;
4750
+ } | null> | null;
4751
+ tags: Array<{
4752
+ id: string;
4753
+ value: string;
4754
+ }>;
4755
+ images: Array<{
4756
+ id: string;
4757
+ url: string;
4758
+ }>;
4759
+ options: Array<{
4760
+ id: string;
4761
+ title: string;
4762
+ values: Array<{
4763
+ id: string;
4764
+ value: string;
4765
+ option_id: string;
4766
+ }>;
4767
+ }>;
4768
+ variants: Array<{
4769
+ id: string;
4770
+ title: string;
4771
+ sku?: string | null;
4772
+ barcode?: string | null;
4773
+ ean?: string | null;
4774
+ upc?: string | null;
4775
+ allow_backorder: boolean;
4776
+ manage_inventory: boolean;
4777
+ inventory_quantity?: number | null;
4778
+ product_id?: string | null;
4779
+ variant_rank?: number | null;
4780
+ options: Array<{
4781
+ id: string;
4782
+ value: string;
4783
+ option_id: string;
4784
+ }>;
4785
+ calculated_price?: {
4786
+ calculated_amount: number;
4787
+ original_amount?: number | null;
4788
+ currency_code: string;
4789
+ } | null;
4790
+ }>;
4791
+ reviews?: Array<{
4792
+ id: string;
4793
+ title?: string | null;
4794
+ content?: string | null;
4795
+ rating: number;
4796
+ first_name: string;
4797
+ last_name: string;
4798
+ status: ReviewStatus;
4799
+ created_at: string | Date;
4800
+ }> | null;
4801
+ };
4802
+ export type ProductListFieldsFragment = {
4803
+ id: string;
4804
+ title: string;
4805
+ handle: string;
4806
+ subtitle?: string | null;
4807
+ thumbnail?: string | null;
4808
+ created_at: string | Date;
4809
+ images: Array<{
4810
+ id: string;
4811
+ url: string;
4812
+ }>;
4813
+ variants: Array<{
4814
+ id: string;
4815
+ calculated_price?: {
4816
+ calculated_amount: number;
4817
+ original_amount?: number | null;
4818
+ currency_code: string;
4819
+ price_list_type?: string | null;
4820
+ } | null;
4821
+ }>;
4822
+ };
4823
+ export type GetProductByHandleQueryVariables = Exact<{
4824
+ handle: Array<Scalars['String']['input']> | Scalars['String']['input'];
4825
+ pricingContext?: InputMaybe<PricingContextInput>;
4826
+ }>;
4827
+ export type GetProductByHandleQuery = {
4828
+ products: {
4829
+ products: Array<{
4830
+ id: string;
4831
+ title: string;
4832
+ handle: string;
4833
+ subtitle?: string | null;
4834
+ description?: string | null;
4835
+ thumbnail?: string | null;
4836
+ is_giftcard: boolean;
4837
+ discountable?: boolean | null;
4838
+ collection_id?: string | null;
4839
+ type_id?: string | null;
4840
+ weight?: number | null;
4841
+ length?: number | null;
4842
+ height?: number | null;
4843
+ width?: number | null;
4844
+ hs_code?: string | null;
4845
+ origin_country?: string | null;
4846
+ mid_code?: string | null;
4847
+ material?: string | null;
4848
+ created_at: string | Date;
4849
+ updated_at: string | Date;
4850
+ metadata?: Record<string, any> | null;
4851
+ status?: ProductStatus | null;
4852
+ type?: {
4853
+ id: string;
4854
+ value: string;
4855
+ } | null;
4856
+ collection?: {
4857
+ id: string;
4858
+ title: string;
4859
+ handle: string;
4860
+ } | null;
4861
+ categories?: Array<{
4862
+ id: string;
4863
+ name: string;
4864
+ handle: string;
4865
+ } | null> | null;
4866
+ tags: Array<{
4867
+ id: string;
4868
+ value: string;
4869
+ }>;
4870
+ images: Array<{
4871
+ id: string;
4872
+ url: string;
4873
+ }>;
4874
+ options: Array<{
4875
+ id: string;
4876
+ title: string;
4877
+ values: Array<{
4878
+ id: string;
4879
+ value: string;
4880
+ option_id: string;
4881
+ }>;
4882
+ }>;
4883
+ variants: Array<{
4884
+ id: string;
4885
+ title: string;
4886
+ sku?: string | null;
4887
+ barcode?: string | null;
4888
+ ean?: string | null;
4889
+ upc?: string | null;
4890
+ allow_backorder: boolean;
4891
+ manage_inventory: boolean;
4892
+ inventory_quantity?: number | null;
4893
+ product_id?: string | null;
4894
+ variant_rank?: number | null;
4895
+ options: Array<{
4896
+ id: string;
4897
+ value: string;
4898
+ option_id: string;
4899
+ }>;
4900
+ calculated_price?: {
4901
+ calculated_amount: number;
4902
+ original_amount?: number | null;
4903
+ currency_code: string;
4904
+ } | null;
4905
+ }>;
4906
+ reviews?: Array<{
4907
+ id: string;
4908
+ title?: string | null;
4909
+ content?: string | null;
4910
+ rating: number;
4911
+ first_name: string;
4912
+ last_name: string;
4913
+ status: ReviewStatus;
4914
+ created_at: string | Date;
4915
+ }> | null;
4916
+ }>;
4917
+ };
4918
+ };
4919
+ export type GetProductByIdQueryVariables = Exact<{
4920
+ id: Scalars['ID']['input'];
4921
+ pricingContext?: InputMaybe<PricingContextInput>;
4922
+ }>;
4923
+ export type GetProductByIdQuery = {
4924
+ product?: {
4925
+ id: string;
4926
+ title: string;
4927
+ handle: string;
4928
+ subtitle?: string | null;
4929
+ description?: string | null;
4930
+ thumbnail?: string | null;
4931
+ is_giftcard: boolean;
4932
+ discountable?: boolean | null;
4933
+ collection_id?: string | null;
4934
+ type_id?: string | null;
4935
+ weight?: number | null;
4936
+ length?: number | null;
4937
+ height?: number | null;
4938
+ width?: number | null;
4939
+ hs_code?: string | null;
4940
+ origin_country?: string | null;
4941
+ mid_code?: string | null;
4942
+ material?: string | null;
4943
+ created_at: string | Date;
4944
+ updated_at: string | Date;
4945
+ metadata?: Record<string, any> | null;
4946
+ status?: ProductStatus | null;
4947
+ type?: {
4948
+ id: string;
4949
+ value: string;
4950
+ } | null;
4951
+ collection?: {
4952
+ id: string;
4953
+ title: string;
4954
+ handle: string;
4955
+ } | null;
4956
+ categories?: Array<{
4957
+ id: string;
4958
+ name: string;
4959
+ handle: string;
4960
+ } | null> | null;
4961
+ tags: Array<{
4962
+ id: string;
4963
+ value: string;
4964
+ }>;
4965
+ images: Array<{
4966
+ id: string;
4967
+ url: string;
4968
+ }>;
4969
+ options: Array<{
4970
+ id: string;
4971
+ title: string;
4972
+ values: Array<{
4973
+ id: string;
4974
+ value: string;
4975
+ option_id: string;
4976
+ }>;
4977
+ }>;
4978
+ variants: Array<{
4979
+ id: string;
4980
+ title: string;
4981
+ sku?: string | null;
4982
+ barcode?: string | null;
4983
+ ean?: string | null;
4984
+ upc?: string | null;
4985
+ allow_backorder: boolean;
4986
+ manage_inventory: boolean;
4987
+ inventory_quantity?: number | null;
4988
+ product_id?: string | null;
4989
+ variant_rank?: number | null;
4990
+ options: Array<{
4991
+ id: string;
4992
+ value: string;
4993
+ option_id: string;
4994
+ }>;
4995
+ calculated_price?: {
4996
+ calculated_amount: number;
4997
+ original_amount?: number | null;
4998
+ currency_code: string;
4999
+ } | null;
5000
+ }>;
5001
+ reviews?: Array<{
5002
+ id: string;
5003
+ title?: string | null;
5004
+ content?: string | null;
5005
+ rating: number;
5006
+ first_name: string;
5007
+ last_name: string;
5008
+ status: ReviewStatus;
5009
+ created_at: string | Date;
5010
+ }> | null;
5011
+ } | null;
5012
+ };
5013
+ export type ListProductsQueryVariables = Exact<{
5014
+ filter?: InputMaybe<ProductFilterInput>;
5015
+ pricingContext?: InputMaybe<PricingContextInput>;
5016
+ order?: InputMaybe<ProductOrderInput>;
5017
+ offset?: InputMaybe<Scalars['Int']['input']>;
5018
+ limit?: InputMaybe<Scalars['Int']['input']>;
5019
+ }>;
5020
+ export type ListProductsQuery = {
5021
+ products: {
5022
+ count: number;
5023
+ offset: number;
5024
+ limit: number;
5025
+ products: Array<{
5026
+ id: string;
5027
+ title: string;
5028
+ handle: string;
5029
+ subtitle?: string | null;
5030
+ thumbnail?: string | null;
5031
+ created_at: string | Date;
5032
+ images: Array<{
5033
+ id: string;
5034
+ url: string;
5035
+ }>;
5036
+ variants: Array<{
5037
+ id: string;
5038
+ calculated_price?: {
5039
+ calculated_amount: number;
5040
+ original_amount?: number | null;
5041
+ currency_code: string;
5042
+ price_list_type?: string | null;
5043
+ } | null;
5044
+ }>;
5045
+ }>;
5046
+ };
5047
+ };
5048
+ export declare const UserFieldsFragmentDoc: import("graphql").DocumentNode;
5049
+ export declare const CustomerFieldsFragmentDoc: import("graphql").DocumentNode;
5050
+ export declare const B2BCompanyFieldsFragmentDoc: import("graphql").DocumentNode;
5051
+ export declare const CartFieldsFragmentDoc: import("graphql").DocumentNode;
5052
+ export declare const CollectionFieldsFragmentDoc: import("graphql").DocumentNode;
5053
+ export declare const CategoryFieldsFragmentDoc: import("graphql").DocumentNode;
5054
+ export declare const RegionFieldsFragmentDoc: import("graphql").DocumentNode;
5055
+ export declare const ShippingOptionFieldsFragmentDoc: import("graphql").DocumentNode;
5056
+ export declare const OrderFieldsFragmentDoc: import("graphql").DocumentNode;
5057
+ export declare const OrderPreviewFieldsFragmentDoc: import("graphql").DocumentNode;
5058
+ export declare const ProductDetailFieldsFragmentDoc: import("graphql").DocumentNode;
5059
+ export declare const ProductListFieldsFragmentDoc: import("graphql").DocumentNode;
5060
+ export declare const GetMeDocument: import("graphql").DocumentNode;
5061
+ export declare const GetCustomerDocument: import("graphql").DocumentNode;
5062
+ export declare const ListCustomerOrdersDocument: import("graphql").DocumentNode;
5063
+ export declare const AuthStatusDocument: import("graphql").DocumentNode;
5064
+ export declare const LoginDocument: import("graphql").DocumentNode;
5065
+ export declare const GetCartDocument: import("graphql").DocumentNode;
5066
+ export declare const GetActiveCustomerCartDocument: import("graphql").DocumentNode;
5067
+ export declare const CreateCartDocument: import("graphql").DocumentNode;
5068
+ export declare const UpdateCartDocument: import("graphql").DocumentNode;
5069
+ export declare const AddCartLineItemDocument: import("graphql").DocumentNode;
5070
+ export declare const UpdateCartLineItemDocument: import("graphql").DocumentNode;
5071
+ export declare const RemoveCartLineItemDocument: import("graphql").DocumentNode;
5072
+ export declare const AddCartShippingMethodDocument: import("graphql").DocumentNode;
5073
+ export declare const AddCartPromotionsDocument: import("graphql").DocumentNode;
5074
+ export declare const RemoveCartPromotionsDocument: import("graphql").DocumentNode;
5075
+ export declare const UpdateCartCustomerDocument: import("graphql").DocumentNode;
5076
+ export declare const CompleteCartDocument: import("graphql").DocumentNode;
5077
+ export declare const CreatePaymentCollectionDocument: import("graphql").DocumentNode;
5078
+ export declare const InitializePaymentSessionDocument: import("graphql").DocumentNode;
5079
+ export declare const ListCollectionsDocument: import("graphql").DocumentNode;
5080
+ export declare const GetCollectionByHandleDocument: import("graphql").DocumentNode;
5081
+ export declare const ListCategoriesDocument: import("graphql").DocumentNode;
5082
+ export declare const ListRegionsDocument: import("graphql").DocumentNode;
5083
+ export declare const GetRegionDocument: import("graphql").DocumentNode;
5084
+ export declare const ListShippingOptionsDocument: import("graphql").DocumentNode;
5085
+ export declare const GetOrderDocument: import("graphql").DocumentNode;
5086
+ export declare const ListOrdersDocument: import("graphql").DocumentNode;
5087
+ export declare const GetProductByHandleDocument: import("graphql").DocumentNode;
5088
+ export declare const GetProductByIdDocument: import("graphql").DocumentNode;
5089
+ export declare const ListProductsDocument: import("graphql").DocumentNode;
5090
+ export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
5091
+ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
5092
+ GetMe(variables?: GetMeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetMeQuery>;
5093
+ GetCustomer(variables?: GetCustomerQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetCustomerQuery>;
5094
+ ListCustomerOrders(variables?: ListCustomerOrdersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListCustomerOrdersQuery>;
5095
+ AuthStatus(variables?: AuthStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<AuthStatusQuery>;
5096
+ Login(variables: LoginMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<LoginMutation>;
5097
+ GetCart(variables: GetCartQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetCartQuery>;
5098
+ GetActiveCustomerCart(variables?: GetActiveCustomerCartQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetActiveCustomerCartQuery>;
5099
+ CreateCart(variables: CreateCartMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateCartMutation>;
5100
+ UpdateCart(variables: UpdateCartMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateCartMutation>;
5101
+ AddCartLineItem(variables: AddCartLineItemMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<AddCartLineItemMutation>;
5102
+ UpdateCartLineItem(variables: UpdateCartLineItemMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateCartLineItemMutation>;
5103
+ RemoveCartLineItem(variables: RemoveCartLineItemMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<RemoveCartLineItemMutation>;
5104
+ AddCartShippingMethod(variables: AddCartShippingMethodMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<AddCartShippingMethodMutation>;
5105
+ AddCartPromotions(variables: AddCartPromotionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<AddCartPromotionsMutation>;
5106
+ RemoveCartPromotions(variables: RemoveCartPromotionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<RemoveCartPromotionsMutation>;
5107
+ UpdateCartCustomer(variables: UpdateCartCustomerMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateCartCustomerMutation>;
5108
+ CompleteCart(variables: CompleteCartMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CompleteCartMutation>;
5109
+ CreatePaymentCollection(variables: CreatePaymentCollectionMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreatePaymentCollectionMutation>;
5110
+ InitializePaymentSession(variables: InitializePaymentSessionMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<InitializePaymentSessionMutation>;
5111
+ ListCollections(variables?: ListCollectionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListCollectionsQuery>;
5112
+ GetCollectionByHandle(variables: GetCollectionByHandleQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetCollectionByHandleQuery>;
5113
+ ListCategories(variables?: ListCategoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListCategoriesQuery>;
5114
+ ListRegions(variables?: ListRegionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListRegionsQuery>;
5115
+ GetRegion(variables: GetRegionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetRegionQuery>;
5116
+ ListShippingOptions(variables: ListShippingOptionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListShippingOptionsQuery>;
5117
+ GetOrder(variables: GetOrderQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetOrderQuery>;
5118
+ ListOrders(variables?: ListOrdersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListOrdersQuery>;
5119
+ GetProductByHandle(variables: GetProductByHandleQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetProductByHandleQuery>;
5120
+ GetProductById(variables: GetProductByIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetProductByIdQuery>;
5121
+ ListProducts(variables?: ListProductsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ListProductsQuery>;
5122
+ };
5123
+ export type Sdk = ReturnType<typeof getSdk>;
5124
+ export {};