@xclade/graphql-client 0.0.1 → 1.0.1
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 +355 -60
- package/dist/index.js +58 -22
- package/package.json +11 -6
- package/src/index.ts +0 -2691
- package/tsconfig.json +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export type AddCartShippingMethodInput = {
|
|
|
74
74
|
data?: InputMaybe<Scalars['JSON']['input']>;
|
|
75
75
|
option_id: Scalars['String']['input'];
|
|
76
76
|
};
|
|
77
|
-
/** Address type
|
|
77
|
+
/** Address type */
|
|
78
78
|
export type Address = {
|
|
79
79
|
address_1?: Maybe<Scalars['String']['output']>;
|
|
80
80
|
address_2?: Maybe<Scalars['String']['output']>;
|
|
@@ -107,17 +107,37 @@ export type AddressInput = {
|
|
|
107
107
|
postal_code?: InputMaybe<Scalars['String']['input']>;
|
|
108
108
|
province?: InputMaybe<Scalars['String']['input']>;
|
|
109
109
|
};
|
|
110
|
-
/** Application Method - Matches Medusa ApplicationMethod type */
|
|
111
110
|
export type ApplicationMethod = {
|
|
112
|
-
allocation?: Maybe<
|
|
111
|
+
allocation?: Maybe<ApplicationMethodAllocation>;
|
|
112
|
+
apply_to_quantity?: Maybe<Scalars['Int']['output']>;
|
|
113
|
+
buy_rules?: Maybe<Array<Maybe<PromotionRule>>>;
|
|
114
|
+
buy_rules_min_quantity?: Maybe<Scalars['Int']['output']>;
|
|
115
|
+
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
113
116
|
currency_code?: Maybe<Scalars['String']['output']>;
|
|
114
117
|
id: Scalars['ID']['output'];
|
|
115
118
|
max_quantity?: Maybe<Scalars['Int']['output']>;
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
120
|
+
target_rules?: Maybe<Array<Maybe<PromotionRule>>>;
|
|
121
|
+
target_type?: Maybe<ApplicationMethodTargetType>;
|
|
122
|
+
type?: Maybe<ApplicationMethodType>;
|
|
123
|
+
updated_at?: Maybe<Scalars['DateTime']['output']>;
|
|
118
124
|
value?: Maybe<Scalars['Float']['output']>;
|
|
119
125
|
};
|
|
120
|
-
|
|
126
|
+
export declare enum ApplicationMethodAllocation {
|
|
127
|
+
Across = "across",
|
|
128
|
+
Each = "each",
|
|
129
|
+
Once = "once"
|
|
130
|
+
}
|
|
131
|
+
export declare enum ApplicationMethodTargetType {
|
|
132
|
+
Items = "items",
|
|
133
|
+
Order = "order",
|
|
134
|
+
ShippingMethods = "shipping_methods"
|
|
135
|
+
}
|
|
136
|
+
export declare enum ApplicationMethodType {
|
|
137
|
+
Fixed = "fixed",
|
|
138
|
+
Percentage = "percentage"
|
|
139
|
+
}
|
|
140
|
+
/** Approval */
|
|
121
141
|
export type Approval = {
|
|
122
142
|
cart?: Maybe<Cart>;
|
|
123
143
|
cart_id: Scalars['String']['output'];
|
|
@@ -142,7 +162,7 @@ export type ApprovalSettings = {
|
|
|
142
162
|
requires_sales_manager_approval: Scalars['Boolean']['output'];
|
|
143
163
|
updated_at: Scalars['DateTime']['output'];
|
|
144
164
|
};
|
|
145
|
-
/** Approval Status
|
|
165
|
+
/** Approval Status */
|
|
146
166
|
export type ApprovalStatus = {
|
|
147
167
|
cart?: Maybe<Cart>;
|
|
148
168
|
cart_id: Scalars['String']['output'];
|
|
@@ -183,8 +203,80 @@ export type AuthStatus = {
|
|
|
183
203
|
isAuthenticated: Scalars['Boolean']['output'];
|
|
184
204
|
};
|
|
185
205
|
export type AuthToken = {
|
|
206
|
+
status?: Maybe<B2BCompanyStatus>;
|
|
186
207
|
token: Scalars['String']['output'];
|
|
187
208
|
};
|
|
209
|
+
export type B2BApproval = {
|
|
210
|
+
cart_id?: Maybe<Scalars['String']['output']>;
|
|
211
|
+
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
212
|
+
created_by?: Maybe<Scalars['String']['output']>;
|
|
213
|
+
handled_by?: Maybe<Scalars['String']['output']>;
|
|
214
|
+
id: Scalars['ID']['output'];
|
|
215
|
+
status?: Maybe<B2BApprovalStatus>;
|
|
216
|
+
type?: Maybe<B2BApprovalType>;
|
|
217
|
+
updated_at?: Maybe<Scalars['DateTime']['output']>;
|
|
218
|
+
};
|
|
219
|
+
export declare enum B2BApprovalStatus {
|
|
220
|
+
Approved = "APPROVED",
|
|
221
|
+
Pending = "PENDING",
|
|
222
|
+
Rejected = "REJECTED"
|
|
223
|
+
}
|
|
224
|
+
export declare enum B2BApprovalType {
|
|
225
|
+
Cart = "CART",
|
|
226
|
+
Order = "ORDER"
|
|
227
|
+
}
|
|
228
|
+
export type B2BCompany = {
|
|
229
|
+
address?: Maybe<Scalars['String']['output']>;
|
|
230
|
+
carts?: Maybe<Array<Maybe<Cart>>>;
|
|
231
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
232
|
+
country?: Maybe<Scalars['String']['output']>;
|
|
233
|
+
currency_code?: Maybe<Scalars['String']['output']>;
|
|
234
|
+
email: Scalars['String']['output'];
|
|
235
|
+
employees?: Maybe<Array<Maybe<B2BEmployee>>>;
|
|
236
|
+
id: Scalars['ID']['output'];
|
|
237
|
+
logo_url?: Maybe<Scalars['String']['output']>;
|
|
238
|
+
name: Scalars['String']['output'];
|
|
239
|
+
orders?: Maybe<Array<Maybe<Order>>>;
|
|
240
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
241
|
+
quotes?: Maybe<Array<Maybe<B2BQuote>>>;
|
|
242
|
+
spending_limit_reset_frequency?: Maybe<Scalars['String']['output']>;
|
|
243
|
+
state?: Maybe<Scalars['String']['output']>;
|
|
244
|
+
status?: Maybe<B2BCompanyStatus>;
|
|
245
|
+
zip?: Maybe<Scalars['String']['output']>;
|
|
246
|
+
};
|
|
247
|
+
export declare enum B2BCompanyStatus {
|
|
248
|
+
Approved = "approved",
|
|
249
|
+
Pending = "pending",
|
|
250
|
+
Rejected = "rejected"
|
|
251
|
+
}
|
|
252
|
+
export type B2BEmployee = {
|
|
253
|
+
company?: Maybe<B2BCompany>;
|
|
254
|
+
company_id?: Maybe<Scalars['String']['output']>;
|
|
255
|
+
customer?: Maybe<Customer>;
|
|
256
|
+
id: Scalars['ID']['output'];
|
|
257
|
+
is_admin?: Maybe<Scalars['Boolean']['output']>;
|
|
258
|
+
spending_limit?: Maybe<Scalars['Float']['output']>;
|
|
259
|
+
};
|
|
260
|
+
export type B2BQuote = {
|
|
261
|
+
cart?: Maybe<Cart>;
|
|
262
|
+
cart_id?: Maybe<Scalars['String']['output']>;
|
|
263
|
+
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
264
|
+
customer?: Maybe<Customer>;
|
|
265
|
+
customer_id?: Maybe<Scalars['String']['output']>;
|
|
266
|
+
draft_order?: Maybe<Order>;
|
|
267
|
+
draft_order_id?: Maybe<Scalars['String']['output']>;
|
|
268
|
+
id: Scalars['ID']['output'];
|
|
269
|
+
messages?: Maybe<Array<Maybe<B2BQuoteMessage>>>;
|
|
270
|
+
order_change_id?: Maybe<Scalars['String']['output']>;
|
|
271
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
272
|
+
updated_at?: Maybe<Scalars['DateTime']['output']>;
|
|
273
|
+
};
|
|
274
|
+
export type B2BQuoteMessage = {
|
|
275
|
+
author_id?: Maybe<Scalars['String']['output']>;
|
|
276
|
+
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
277
|
+
id: Scalars['ID']['output'];
|
|
278
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
279
|
+
};
|
|
188
280
|
/** Calculated price information for a shipping option */
|
|
189
281
|
export type CalculatedPrice = {
|
|
190
282
|
calculated_amount: Scalars['Float']['output'];
|
|
@@ -202,16 +294,42 @@ export type CalculatedShippingOption = {
|
|
|
202
294
|
is_tax_inclusive: Scalars['Boolean']['output'];
|
|
203
295
|
name: Scalars['String']['output'];
|
|
204
296
|
};
|
|
205
|
-
/** Campaign - Matches Medusa Campaign type */
|
|
206
297
|
export type Campaign = {
|
|
207
|
-
budget?: Maybe<
|
|
298
|
+
budget?: Maybe<CampaignBudget>;
|
|
208
299
|
campaign_identifier?: Maybe<Scalars['String']['output']>;
|
|
209
|
-
|
|
300
|
+
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
210
301
|
description?: Maybe<Scalars['String']['output']>;
|
|
211
302
|
ends_at?: Maybe<Scalars['DateTime']['output']>;
|
|
212
303
|
id: Scalars['ID']['output'];
|
|
304
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
213
305
|
name?: Maybe<Scalars['String']['output']>;
|
|
306
|
+
promotions?: Maybe<Array<Maybe<Promotion>>>;
|
|
214
307
|
starts_at?: Maybe<Scalars['DateTime']['output']>;
|
|
308
|
+
updated_at?: Maybe<Scalars['DateTime']['output']>;
|
|
309
|
+
};
|
|
310
|
+
export type CampaignBudget = {
|
|
311
|
+
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
312
|
+
currency_code?: Maybe<Scalars['String']['output']>;
|
|
313
|
+
id: Scalars['ID']['output'];
|
|
314
|
+
limit?: Maybe<Scalars['Float']['output']>;
|
|
315
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
316
|
+
type?: Maybe<CampaignBudgetType>;
|
|
317
|
+
updated_at?: Maybe<Scalars['DateTime']['output']>;
|
|
318
|
+
used?: Maybe<Scalars['Float']['output']>;
|
|
319
|
+
};
|
|
320
|
+
export declare enum CampaignBudgetType {
|
|
321
|
+
Spend = "spend",
|
|
322
|
+
Usage = "usage"
|
|
323
|
+
}
|
|
324
|
+
export type CampaignConnection = {
|
|
325
|
+
campaigns: Array<Campaign>;
|
|
326
|
+
count: Scalars['Int']['output'];
|
|
327
|
+
limit: Scalars['Int']['output'];
|
|
328
|
+
offset: Scalars['Int']['output'];
|
|
329
|
+
};
|
|
330
|
+
export type CampaignFilters = {
|
|
331
|
+
campaign_identifier?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
332
|
+
id?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
215
333
|
};
|
|
216
334
|
export type Capture = {
|
|
217
335
|
amount: Scalars['Float']['output'];
|
|
@@ -225,7 +343,7 @@ export type Capture = {
|
|
|
225
343
|
raw_amount: Scalars['JSON']['output'];
|
|
226
344
|
updated_at: Scalars['DateTime']['output'];
|
|
227
345
|
};
|
|
228
|
-
/** Cart entity
|
|
346
|
+
/** Cart entity */
|
|
229
347
|
export type Cart = {
|
|
230
348
|
approval_link?: Maybe<Array<Maybe<LinkCartCartApprovalApproval>>>;
|
|
231
349
|
approval_status?: Maybe<ApprovalStatus>;
|
|
@@ -337,6 +455,7 @@ export type Company = {
|
|
|
337
455
|
phone?: Maybe<Scalars['String']['output']>;
|
|
338
456
|
spending_limit_reset_frequency: CompanySpendingLimitResetFrequency;
|
|
339
457
|
state?: Maybe<Scalars['String']['output']>;
|
|
458
|
+
status?: Maybe<B2BCompanyStatus>;
|
|
340
459
|
updated_at: Scalars['DateTime']['output'];
|
|
341
460
|
zip?: Maybe<Scalars['String']['output']>;
|
|
342
461
|
};
|
|
@@ -375,15 +494,34 @@ export type CreateCartInput = {
|
|
|
375
494
|
};
|
|
376
495
|
/** Create customer account input */
|
|
377
496
|
export type CreateCustomerInput = {
|
|
497
|
+
address_1?: InputMaybe<Scalars['String']['input']>;
|
|
498
|
+
address_2?: InputMaybe<Scalars['String']['input']>;
|
|
499
|
+
city?: InputMaybe<Scalars['String']['input']>;
|
|
378
500
|
company_name?: InputMaybe<Scalars['String']['input']>;
|
|
501
|
+
country_code?: InputMaybe<Scalars['String']['input']>;
|
|
502
|
+
currency_code?: InputMaybe<Scalars['String']['input']>;
|
|
379
503
|
email: Scalars['String']['input'];
|
|
380
504
|
first_name?: InputMaybe<Scalars['String']['input']>;
|
|
381
505
|
last_name?: InputMaybe<Scalars['String']['input']>;
|
|
506
|
+
logo_url?: InputMaybe<Scalars['String']['input']>;
|
|
382
507
|
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
383
508
|
password?: InputMaybe<Scalars['String']['input']>;
|
|
384
509
|
phone?: InputMaybe<Scalars['String']['input']>;
|
|
510
|
+
state?: InputMaybe<Scalars['String']['input']>;
|
|
511
|
+
zip?: InputMaybe<Scalars['String']['input']>;
|
|
512
|
+
};
|
|
513
|
+
export type CreateReviewInput = {
|
|
514
|
+
content?: InputMaybe<Scalars['String']['input']>;
|
|
515
|
+
email?: InputMaybe<Scalars['String']['input']>;
|
|
516
|
+
first_name: Scalars['String']['input'];
|
|
517
|
+
images?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
518
|
+
last_name: Scalars['String']['input'];
|
|
519
|
+
location?: InputMaybe<Scalars['String']['input']>;
|
|
520
|
+
product_id: Scalars['String']['input'];
|
|
521
|
+
rating: Scalars['Float']['input'];
|
|
522
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
385
523
|
};
|
|
386
|
-
/** Credit Line
|
|
524
|
+
/** Credit Line */
|
|
387
525
|
export type CreditLine = {
|
|
388
526
|
amount: Scalars['Float']['output'];
|
|
389
527
|
cart: Cart;
|
|
@@ -441,6 +579,7 @@ export type Customer = {
|
|
|
441
579
|
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
442
580
|
orders?: Maybe<Array<Maybe<Order>>>;
|
|
443
581
|
phone?: Maybe<Scalars['String']['output']>;
|
|
582
|
+
reviews?: Maybe<Array<Review>>;
|
|
444
583
|
updated_at: Scalars['DateTime']['output'];
|
|
445
584
|
};
|
|
446
585
|
export type CustomerAddress = {
|
|
@@ -580,7 +719,7 @@ export type GeoZone = {
|
|
|
580
719
|
type: GeoZoneType;
|
|
581
720
|
updated_at: Scalars['DateTime']['output'];
|
|
582
721
|
};
|
|
583
|
-
/** Geo zone type enum
|
|
722
|
+
/** Geo zone type enum */
|
|
584
723
|
export declare enum GeoZoneType {
|
|
585
724
|
City = "city",
|
|
586
725
|
Country = "country",
|
|
@@ -625,7 +764,7 @@ export type InventoryLevel = {
|
|
|
625
764
|
stocked_quantity: Scalars['Int']['output'];
|
|
626
765
|
updated_at: Scalars['DateTime']['output'];
|
|
627
766
|
};
|
|
628
|
-
/** Line Item
|
|
767
|
+
/** Line Item */
|
|
629
768
|
export type LineItem = {
|
|
630
769
|
adjustments: Array<Maybe<LineItemAdjustment>>;
|
|
631
770
|
cart: Cart;
|
|
@@ -674,7 +813,7 @@ export type LineItem = {
|
|
|
674
813
|
variant_sku?: Maybe<Scalars['String']['output']>;
|
|
675
814
|
variant_title?: Maybe<Scalars['String']['output']>;
|
|
676
815
|
};
|
|
677
|
-
/** Line Item Adjustment
|
|
816
|
+
/** Line Item Adjustment */
|
|
678
817
|
export type LineItemAdjustment = {
|
|
679
818
|
amount: Scalars['Float']['output'];
|
|
680
819
|
code?: Maybe<Scalars['String']['output']>;
|
|
@@ -691,7 +830,7 @@ export type LineItemAdjustment = {
|
|
|
691
830
|
raw_amount: Scalars['JSON']['output'];
|
|
692
831
|
updated_at: Scalars['DateTime']['output'];
|
|
693
832
|
};
|
|
694
|
-
/** Line Item Tax Line
|
|
833
|
+
/** Line Item Tax Line */
|
|
695
834
|
export type LineItemTaxLine = {
|
|
696
835
|
code: Scalars['String']['output'];
|
|
697
836
|
created_at: Scalars['DateTime']['output'];
|
|
@@ -706,7 +845,7 @@ export type LineItemTaxLine = {
|
|
|
706
845
|
tax_rate_id?: Maybe<Scalars['String']['output']>;
|
|
707
846
|
updated_at: Scalars['DateTime']['output'];
|
|
708
847
|
};
|
|
709
|
-
/** Link Cart Cart Approval Approval
|
|
848
|
+
/** Link Cart Cart Approval Approval */
|
|
710
849
|
export type LinkCartCartApprovalApproval = {
|
|
711
850
|
approval?: Maybe<Approval>;
|
|
712
851
|
approval_id: Scalars['String']['output'];
|
|
@@ -714,9 +853,10 @@ export type LinkCartCartApprovalApproval = {
|
|
|
714
853
|
cart_id: Scalars['String']['output'];
|
|
715
854
|
createdAt: Scalars['String']['output'];
|
|
716
855
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
856
|
+
id: Scalars['ID']['output'];
|
|
717
857
|
updatedAt: Scalars['String']['output'];
|
|
718
858
|
};
|
|
719
|
-
/** Link Cart Cart Approval Approval Status
|
|
859
|
+
/** Link Cart Cart Approval Approval Status */
|
|
720
860
|
export type LinkCartCartApprovalApprovalStatus = {
|
|
721
861
|
approval_status?: Maybe<ApprovalStatus>;
|
|
722
862
|
approval_status_id: Scalars['String']['output'];
|
|
@@ -724,26 +864,28 @@ export type LinkCartCartApprovalApprovalStatus = {
|
|
|
724
864
|
cart_id: Scalars['String']['output'];
|
|
725
865
|
createdAt: Scalars['String']['output'];
|
|
726
866
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
867
|
+
id: Scalars['ID']['output'];
|
|
727
868
|
updatedAt: Scalars['String']['output'];
|
|
728
869
|
};
|
|
729
|
-
/** Link Cart Payment Collection
|
|
870
|
+
/** Link Cart Payment Collection */
|
|
730
871
|
export type LinkCartPaymentCollection = {
|
|
731
872
|
cart?: Maybe<Cart>;
|
|
732
873
|
cart_id: Scalars['String']['output'];
|
|
733
874
|
createdAt: Scalars['String']['output'];
|
|
734
875
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
876
|
+
id: Scalars['ID']['output'];
|
|
735
877
|
payment_collection?: Maybe<PaymentCollection>;
|
|
736
878
|
payment_collection_id: Scalars['String']['output'];
|
|
737
879
|
updatedAt: Scalars['String']['output'];
|
|
738
880
|
};
|
|
739
|
-
/** Link Cart Promotion - Matches Medusa type exactly */
|
|
740
881
|
export type LinkCartPromotion = {
|
|
741
882
|
cart?: Maybe<Cart>;
|
|
742
883
|
cart_id: Scalars['String']['output'];
|
|
743
884
|
createdAt: Scalars['String']['output'];
|
|
744
885
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
886
|
+
id: Scalars['ID']['output'];
|
|
887
|
+
promotion?: Maybe<Promotion>;
|
|
745
888
|
promotion_id: Scalars['String']['output'];
|
|
746
|
-
promotions?: Maybe<Promotion>;
|
|
747
889
|
updatedAt: Scalars['String']['output'];
|
|
748
890
|
};
|
|
749
891
|
export type LinkCompanyCompanyApprovalApprovalSettings = {
|
|
@@ -753,6 +895,7 @@ export type LinkCompanyCompanyApprovalApprovalSettings = {
|
|
|
753
895
|
company_id: Scalars['String']['output'];
|
|
754
896
|
createdAt: Scalars['String']['output'];
|
|
755
897
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
898
|
+
id: Scalars['ID']['output'];
|
|
756
899
|
updatedAt: Scalars['String']['output'];
|
|
757
900
|
};
|
|
758
901
|
export type LinkCompanyCompanyCartCart = {
|
|
@@ -762,6 +905,7 @@ export type LinkCompanyCompanyCartCart = {
|
|
|
762
905
|
company_id: Scalars['String']['output'];
|
|
763
906
|
createdAt: Scalars['String']['output'];
|
|
764
907
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
908
|
+
id: Scalars['ID']['output'];
|
|
765
909
|
updatedAt: Scalars['String']['output'];
|
|
766
910
|
};
|
|
767
911
|
export type LinkCompanyCompanyCustomerCustomerGroup = {
|
|
@@ -771,6 +915,7 @@ export type LinkCompanyCompanyCustomerCustomerGroup = {
|
|
|
771
915
|
customer_group?: Maybe<CustomerGroup>;
|
|
772
916
|
customer_group_id: Scalars['String']['output'];
|
|
773
917
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
918
|
+
id: Scalars['ID']['output'];
|
|
774
919
|
updatedAt: Scalars['String']['output'];
|
|
775
920
|
};
|
|
776
921
|
export type LinkCompanyEmployeeCustomerCustomer = {
|
|
@@ -780,6 +925,7 @@ export type LinkCompanyEmployeeCustomerCustomer = {
|
|
|
780
925
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
781
926
|
employee?: Maybe<Employee>;
|
|
782
927
|
employee_id: Scalars['String']['output'];
|
|
928
|
+
id: Scalars['ID']['output'];
|
|
783
929
|
updatedAt: Scalars['String']['output'];
|
|
784
930
|
};
|
|
785
931
|
export type LinkCustomerAccountHolder = {
|
|
@@ -789,6 +935,7 @@ export type LinkCustomerAccountHolder = {
|
|
|
789
935
|
customer?: Maybe<Customer>;
|
|
790
936
|
customer_id: Scalars['String']['output'];
|
|
791
937
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
938
|
+
id: Scalars['ID']['output'];
|
|
792
939
|
updatedAt: Scalars['String']['output'];
|
|
793
940
|
};
|
|
794
941
|
export type LinkLocationFulfillmentProvider = {
|
|
@@ -796,6 +943,7 @@ export type LinkLocationFulfillmentProvider = {
|
|
|
796
943
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
797
944
|
fulfillment_provider?: Maybe<FulfillmentProvider>;
|
|
798
945
|
fulfillment_provider_id: Scalars['String']['output'];
|
|
946
|
+
id: Scalars['ID']['output'];
|
|
799
947
|
location?: Maybe<StockLocation>;
|
|
800
948
|
stock_location_id: Scalars['String']['output'];
|
|
801
949
|
updatedAt: Scalars['String']['output'];
|
|
@@ -805,6 +953,7 @@ export type LinkLocationFulfillmentSet = {
|
|
|
805
953
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
806
954
|
fulfillment_set?: Maybe<FulfillmentSet>;
|
|
807
955
|
fulfillment_set_id: Scalars['String']['output'];
|
|
956
|
+
id: Scalars['ID']['output'];
|
|
808
957
|
location?: Maybe<StockLocation>;
|
|
809
958
|
stock_location_id: Scalars['String']['output'];
|
|
810
959
|
updatedAt: Scalars['String']['output'];
|
|
@@ -812,6 +961,7 @@ export type LinkLocationFulfillmentSet = {
|
|
|
812
961
|
export type LinkMarketplaceVendorOrderOrder = {
|
|
813
962
|
createdAt: Scalars['String']['output'];
|
|
814
963
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
964
|
+
id: Scalars['ID']['output'];
|
|
815
965
|
order?: Maybe<Order>;
|
|
816
966
|
order_id: Scalars['String']['output'];
|
|
817
967
|
updatedAt: Scalars['String']['output'];
|
|
@@ -821,18 +971,20 @@ export type LinkMarketplaceVendorOrderOrder = {
|
|
|
821
971
|
export type LinkMarketplaceVendorProductProduct = {
|
|
822
972
|
createdAt: Scalars['String']['output'];
|
|
823
973
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
974
|
+
id: Scalars['ID']['output'];
|
|
824
975
|
product?: Maybe<Product>;
|
|
825
976
|
product_id: Scalars['String']['output'];
|
|
826
977
|
updatedAt: Scalars['String']['output'];
|
|
827
978
|
vendor?: Maybe<Vendor>;
|
|
828
979
|
vendor_id: Scalars['String']['output'];
|
|
829
980
|
};
|
|
830
|
-
/** Link Order Cart
|
|
981
|
+
/** Link Order Cart */
|
|
831
982
|
export type LinkOrderCart = {
|
|
832
983
|
cart?: Maybe<Cart>;
|
|
833
984
|
cart_id: Scalars['String']['output'];
|
|
834
985
|
createdAt: Scalars['String']['output'];
|
|
835
986
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
987
|
+
id: Scalars['ID']['output'];
|
|
836
988
|
order?: Maybe<Order>;
|
|
837
989
|
order_id: Scalars['String']['output'];
|
|
838
990
|
updatedAt: Scalars['String']['output'];
|
|
@@ -842,6 +994,7 @@ export type LinkOrderFulfillment = {
|
|
|
842
994
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
843
995
|
fulfillment_id: Scalars['String']['output'];
|
|
844
996
|
fulfillments?: Maybe<Fulfillment>;
|
|
997
|
+
id: Scalars['ID']['output'];
|
|
845
998
|
order?: Maybe<Order>;
|
|
846
999
|
order_id: Scalars['String']['output'];
|
|
847
1000
|
updatedAt: Scalars['String']['output'];
|
|
@@ -851,6 +1004,7 @@ export type LinkOrderOrderCompanyCompany = {
|
|
|
851
1004
|
company_id: Scalars['String']['output'];
|
|
852
1005
|
createdAt: Scalars['String']['output'];
|
|
853
1006
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1007
|
+
id: Scalars['ID']['output'];
|
|
854
1008
|
order?: Maybe<Order>;
|
|
855
1009
|
order_id: Scalars['String']['output'];
|
|
856
1010
|
updatedAt: Scalars['String']['output'];
|
|
@@ -858,16 +1012,17 @@ export type LinkOrderOrderCompanyCompany = {
|
|
|
858
1012
|
export type LinkOrderPaymentCollection = {
|
|
859
1013
|
createdAt: Scalars['String']['output'];
|
|
860
1014
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1015
|
+
id: Scalars['ID']['output'];
|
|
861
1016
|
order?: Maybe<Order>;
|
|
862
1017
|
order_id: Scalars['String']['output'];
|
|
863
1018
|
payment_collection?: Maybe<PaymentCollection>;
|
|
864
1019
|
payment_collection_id: Scalars['String']['output'];
|
|
865
1020
|
updatedAt: Scalars['String']['output'];
|
|
866
1021
|
};
|
|
867
|
-
/** Link Order Promotion - Matches Medusa LinkOrderPromotion type */
|
|
868
1022
|
export type LinkOrderPromotion = {
|
|
869
1023
|
createdAt: Scalars['String']['output'];
|
|
870
1024
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1025
|
+
id: Scalars['ID']['output'];
|
|
871
1026
|
order?: Maybe<Order>;
|
|
872
1027
|
order_id: Scalars['String']['output'];
|
|
873
1028
|
promotion?: Maybe<Promotion>;
|
|
@@ -877,24 +1032,17 @@ export type LinkOrderPromotion = {
|
|
|
877
1032
|
export type LinkProductProductVariantVariantImagesVariantImage = {
|
|
878
1033
|
createdAt: Scalars['String']['output'];
|
|
879
1034
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1035
|
+
id: Scalars['ID']['output'];
|
|
880
1036
|
product_variant?: Maybe<ProductVariant>;
|
|
881
1037
|
product_variant_id: Scalars['String']['output'];
|
|
882
1038
|
updatedAt: Scalars['String']['output'];
|
|
883
1039
|
variant_image?: Maybe<VariantImage>;
|
|
884
1040
|
variant_image_id: Scalars['String']['output'];
|
|
885
1041
|
};
|
|
886
|
-
export type LinkProductReviewReviewProductProduct = {
|
|
887
|
-
createdAt: Scalars['String']['output'];
|
|
888
|
-
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
889
|
-
product?: Maybe<Product>;
|
|
890
|
-
product_id: Scalars['String']['output'];
|
|
891
|
-
review?: Maybe<Review>;
|
|
892
|
-
review_id: Scalars['String']['output'];
|
|
893
|
-
updatedAt: Scalars['String']['output'];
|
|
894
|
-
};
|
|
895
1042
|
export type LinkProductSalesChannel = {
|
|
896
1043
|
createdAt: Scalars['String']['output'];
|
|
897
1044
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1045
|
+
id: Scalars['ID']['output'];
|
|
898
1046
|
product?: Maybe<Product>;
|
|
899
1047
|
product_id: Scalars['String']['output'];
|
|
900
1048
|
sales_channel?: Maybe<SalesChannel>;
|
|
@@ -904,6 +1052,7 @@ export type LinkProductSalesChannel = {
|
|
|
904
1052
|
export type LinkProductShippingProfile = {
|
|
905
1053
|
createdAt: Scalars['String']['output'];
|
|
906
1054
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1055
|
+
id: Scalars['ID']['output'];
|
|
907
1056
|
product?: Maybe<Product>;
|
|
908
1057
|
product_id: Scalars['String']['output'];
|
|
909
1058
|
shipping_profile?: Maybe<ShippingProfile>;
|
|
@@ -913,6 +1062,7 @@ export type LinkProductShippingProfile = {
|
|
|
913
1062
|
export type LinkProductVariantInventoryItem = {
|
|
914
1063
|
createdAt: Scalars['String']['output'];
|
|
915
1064
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1065
|
+
id: Scalars['ID']['output'];
|
|
916
1066
|
inventory?: Maybe<InventoryItem>;
|
|
917
1067
|
inventory_item_id: Scalars['String']['output'];
|
|
918
1068
|
required_quantity: Scalars['Int']['output'];
|
|
@@ -923,6 +1073,7 @@ export type LinkProductVariantInventoryItem = {
|
|
|
923
1073
|
export type LinkProductVariantPriceSet = {
|
|
924
1074
|
createdAt: Scalars['String']['output'];
|
|
925
1075
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1076
|
+
id: Scalars['ID']['output'];
|
|
926
1077
|
price_set?: Maybe<PriceSet>;
|
|
927
1078
|
price_set_id: Scalars['String']['output'];
|
|
928
1079
|
updatedAt: Scalars['String']['output'];
|
|
@@ -932,6 +1083,7 @@ export type LinkProductVariantPriceSet = {
|
|
|
932
1083
|
export type LinkRegionPaymentProvider = {
|
|
933
1084
|
createdAt: Scalars['String']['output'];
|
|
934
1085
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1086
|
+
id: Scalars['ID']['output'];
|
|
935
1087
|
payment_provider?: Maybe<PaymentProvider>;
|
|
936
1088
|
payment_provider_id: Scalars['String']['output'];
|
|
937
1089
|
region?: Maybe<Region>;
|
|
@@ -944,6 +1096,7 @@ export type LinkReturnFulfillment = {
|
|
|
944
1096
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
945
1097
|
fulfillment_id: Scalars['String']['output'];
|
|
946
1098
|
fulfillments?: Maybe<Fulfillment>;
|
|
1099
|
+
id: Scalars['ID']['output'];
|
|
947
1100
|
return?: Maybe<Return>;
|
|
948
1101
|
return_id: Scalars['String']['output'];
|
|
949
1102
|
updatedAt: Scalars['String']['output'];
|
|
@@ -951,6 +1104,7 @@ export type LinkReturnFulfillment = {
|
|
|
951
1104
|
export type LinkSalesChannelStockLocation = {
|
|
952
1105
|
createdAt: Scalars['String']['output'];
|
|
953
1106
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1107
|
+
id: Scalars['ID']['output'];
|
|
954
1108
|
location?: Maybe<StockLocation>;
|
|
955
1109
|
sales_channel?: Maybe<SalesChannel>;
|
|
956
1110
|
sales_channel_id: Scalars['String']['output'];
|
|
@@ -960,6 +1114,7 @@ export type LinkSalesChannelStockLocation = {
|
|
|
960
1114
|
export type LinkShippingOptionPriceSet = {
|
|
961
1115
|
createdAt: Scalars['String']['output'];
|
|
962
1116
|
deletedAt?: Maybe<Scalars['String']['output']>;
|
|
1117
|
+
id: Scalars['ID']['output'];
|
|
963
1118
|
price_set?: Maybe<PriceSet>;
|
|
964
1119
|
price_set_id: Scalars['String']['output'];
|
|
965
1120
|
shipping_option?: Maybe<ShippingOption>;
|
|
@@ -990,19 +1145,24 @@ export type Mutation = {
|
|
|
990
1145
|
createCustomer: Customer;
|
|
991
1146
|
/** Create payment collection for a cart */
|
|
992
1147
|
createPaymentCollection: PaymentCollection;
|
|
1148
|
+
createQuoteMessage?: Maybe<B2BQuoteMessage>;
|
|
1149
|
+
createReview: Review;
|
|
993
1150
|
/** Decline order transfer */
|
|
994
1151
|
declineOrderTransfer: Order;
|
|
995
1152
|
/** Delete customer address */
|
|
996
1153
|
deleteCustomerAddress: DeleteResult;
|
|
997
1154
|
/** Initialize payment session */
|
|
998
1155
|
initializePaymentSession: PaymentCollection;
|
|
1156
|
+
inviteEmployee?: Maybe<Scalars['Boolean']['output']>;
|
|
999
1157
|
login?: Maybe<AuthToken>;
|
|
1000
1158
|
/** Remove line item from cart */
|
|
1001
1159
|
removeCartLineItem: Cart;
|
|
1002
1160
|
/** Remove promotion codes from cart */
|
|
1003
1161
|
removeCartPromotions: Cart;
|
|
1162
|
+
removeEmployee?: Maybe<Scalars['Boolean']['output']>;
|
|
1004
1163
|
/** Request order transfer to another customer */
|
|
1005
1164
|
requestOrderTransfer: Order;
|
|
1165
|
+
requestQuote?: Maybe<B2BQuote>;
|
|
1006
1166
|
/** Request a return for an order */
|
|
1007
1167
|
requestReturn: Return;
|
|
1008
1168
|
/** Update an existing cart */
|
|
@@ -1011,10 +1171,13 @@ export type Mutation = {
|
|
|
1011
1171
|
updateCartCustomer: Cart;
|
|
1012
1172
|
/** Update line item in cart */
|
|
1013
1173
|
updateCartLineItem: Cart;
|
|
1174
|
+
updateCompany?: Maybe<B2BCompany>;
|
|
1175
|
+
updateCompanyStatus?: Maybe<B2BCompany>;
|
|
1014
1176
|
/** Update current customer profile */
|
|
1015
1177
|
updateCustomer: Customer;
|
|
1016
1178
|
/** Update customer address */
|
|
1017
1179
|
updateCustomerAddress: CustomerAddress;
|
|
1180
|
+
updateEmployee?: Maybe<B2BEmployee>;
|
|
1018
1181
|
};
|
|
1019
1182
|
export type MutationAcceptOrderTransferArgs = {
|
|
1020
1183
|
orderId: Scalars['ID']['input'];
|
|
@@ -1053,6 +1216,13 @@ export type MutationCreateCustomerArgs = {
|
|
|
1053
1216
|
export type MutationCreatePaymentCollectionArgs = {
|
|
1054
1217
|
cartId: Scalars['ID']['input'];
|
|
1055
1218
|
};
|
|
1219
|
+
export type MutationCreateQuoteMessageArgs = {
|
|
1220
|
+
message: Scalars['String']['input'];
|
|
1221
|
+
quote_id: Scalars['String']['input'];
|
|
1222
|
+
};
|
|
1223
|
+
export type MutationCreateReviewArgs = {
|
|
1224
|
+
input: CreateReviewInput;
|
|
1225
|
+
};
|
|
1056
1226
|
export type MutationDeclineOrderTransferArgs = {
|
|
1057
1227
|
orderId: Scalars['ID']['input'];
|
|
1058
1228
|
token: Scalars['String']['input'];
|
|
@@ -1064,6 +1234,10 @@ export type MutationInitializePaymentSessionArgs = {
|
|
|
1064
1234
|
input: InitializePaymentSessionInput;
|
|
1065
1235
|
paymentCollectionId: Scalars['ID']['input'];
|
|
1066
1236
|
};
|
|
1237
|
+
export type MutationInviteEmployeeArgs = {
|
|
1238
|
+
email: Scalars['String']['input'];
|
|
1239
|
+
role: Scalars['String']['input'];
|
|
1240
|
+
};
|
|
1067
1241
|
export type MutationLoginArgs = {
|
|
1068
1242
|
email: Scalars['String']['input'];
|
|
1069
1243
|
password: Scalars['String']['input'];
|
|
@@ -1076,9 +1250,15 @@ export type MutationRemoveCartPromotionsArgs = {
|
|
|
1076
1250
|
cartId: Scalars['ID']['input'];
|
|
1077
1251
|
promoCodes: Array<Scalars['String']['input']>;
|
|
1078
1252
|
};
|
|
1253
|
+
export type MutationRemoveEmployeeArgs = {
|
|
1254
|
+
id: Scalars['ID']['input'];
|
|
1255
|
+
};
|
|
1079
1256
|
export type MutationRequestOrderTransferArgs = {
|
|
1080
1257
|
orderId: Scalars['ID']['input'];
|
|
1081
1258
|
};
|
|
1259
|
+
export type MutationRequestQuoteArgs = {
|
|
1260
|
+
cart_id: Scalars['String']['input'];
|
|
1261
|
+
};
|
|
1082
1262
|
export type MutationRequestReturnArgs = {
|
|
1083
1263
|
items: Array<ReturnItemInput>;
|
|
1084
1264
|
locationId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1096,6 +1276,13 @@ export type MutationUpdateCartLineItemArgs = {
|
|
|
1096
1276
|
input: UpdateCartLineItemInput;
|
|
1097
1277
|
lineId: Scalars['ID']['input'];
|
|
1098
1278
|
};
|
|
1279
|
+
export type MutationUpdateCompanyArgs = {
|
|
1280
|
+
input: UpdateCompanyInput;
|
|
1281
|
+
};
|
|
1282
|
+
export type MutationUpdateCompanyStatusArgs = {
|
|
1283
|
+
id: Scalars['ID']['input'];
|
|
1284
|
+
status: B2BCompanyStatus;
|
|
1285
|
+
};
|
|
1099
1286
|
export type MutationUpdateCustomerArgs = {
|
|
1100
1287
|
input: UpdateCustomerInput;
|
|
1101
1288
|
};
|
|
@@ -1103,6 +1290,10 @@ export type MutationUpdateCustomerAddressArgs = {
|
|
|
1103
1290
|
addressId: Scalars['ID']['input'];
|
|
1104
1291
|
input: CustomerAddressInput;
|
|
1105
1292
|
};
|
|
1293
|
+
export type MutationUpdateEmployeeArgs = {
|
|
1294
|
+
id: Scalars['ID']['input'];
|
|
1295
|
+
input: UpdateEmployeeInput;
|
|
1296
|
+
};
|
|
1106
1297
|
export type Order = {
|
|
1107
1298
|
billing_address?: Maybe<OrderAddress>;
|
|
1108
1299
|
canceled_at?: Maybe<Scalars['DateTime']['output']>;
|
|
@@ -1626,8 +1817,8 @@ export type Product = {
|
|
|
1626
1817
|
mid_code?: Maybe<Scalars['String']['output']>;
|
|
1627
1818
|
options: Array<ProductOption>;
|
|
1628
1819
|
origin_country?: Maybe<Scalars['String']['output']>;
|
|
1629
|
-
|
|
1630
|
-
|
|
1820
|
+
rating_summary?: Maybe<ProductRatingSummary>;
|
|
1821
|
+
reviews?: Maybe<Array<Review>>;
|
|
1631
1822
|
sales_channels?: Maybe<Array<Maybe<SalesChannel>>>;
|
|
1632
1823
|
sales_channels_link?: Maybe<Array<Maybe<LinkProductSalesChannel>>>;
|
|
1633
1824
|
shipping_profile?: Maybe<ShippingProfile>;
|
|
@@ -1767,6 +1958,17 @@ export type ProductOrderInput = {
|
|
|
1767
1958
|
title?: InputMaybe<SortOrder>;
|
|
1768
1959
|
updated_at?: InputMaybe<SortOrder>;
|
|
1769
1960
|
};
|
|
1961
|
+
export type ProductRatingSummary = {
|
|
1962
|
+
average_rating: Scalars['Float']['output'];
|
|
1963
|
+
review_count: Scalars['Int']['output'];
|
|
1964
|
+
};
|
|
1965
|
+
export type ProductReviewFilterInput = {
|
|
1966
|
+
customer_id?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1967
|
+
product_id?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1968
|
+
rating?: InputMaybe<Array<Scalars['Float']['input']>>;
|
|
1969
|
+
status?: InputMaybe<Array<ReviewStatus>>;
|
|
1970
|
+
verified_purchase?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1971
|
+
};
|
|
1770
1972
|
export declare enum ProductStatus {
|
|
1771
1973
|
Draft = "draft",
|
|
1772
1974
|
Proposed = "proposed",
|
|
@@ -1854,36 +2056,47 @@ export type ProductVariant = {
|
|
|
1854
2056
|
weight?: Maybe<Scalars['Float']['output']>;
|
|
1855
2057
|
width?: Maybe<Scalars['Float']['output']>;
|
|
1856
2058
|
};
|
|
1857
|
-
/** Promotion - Matches Medusa Promotion type exactly */
|
|
1858
2059
|
export type Promotion = {
|
|
1859
2060
|
application_method?: Maybe<ApplicationMethod>;
|
|
1860
2061
|
campaign?: Maybe<Campaign>;
|
|
1861
2062
|
campaign_id?: Maybe<Scalars['String']['output']>;
|
|
1862
2063
|
code?: Maybe<Scalars['String']['output']>;
|
|
1863
2064
|
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
1864
|
-
deleted_at?: Maybe<Scalars['DateTime']['output']>;
|
|
1865
2065
|
id: Scalars['ID']['output'];
|
|
1866
2066
|
is_automatic?: Maybe<Scalars['Boolean']['output']>;
|
|
1867
2067
|
is_tax_inclusive?: Maybe<Scalars['Boolean']['output']>;
|
|
1868
|
-
limit?: Maybe<Scalars['Int']['output']>;
|
|
1869
2068
|
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
1870
|
-
order_link?: Maybe<LinkOrderPromotion>;
|
|
1871
2069
|
rules?: Maybe<Array<Maybe<PromotionRule>>>;
|
|
1872
2070
|
status?: Maybe<PromotionStatus>;
|
|
1873
|
-
type?: Maybe<
|
|
2071
|
+
type?: Maybe<PromotionType>;
|
|
1874
2072
|
updated_at?: Maybe<Scalars['DateTime']['output']>;
|
|
1875
|
-
used?: Maybe<Scalars['Int']['output']>;
|
|
1876
2073
|
};
|
|
1877
|
-
|
|
2074
|
+
export type PromotionConnection = {
|
|
2075
|
+
count: Scalars['Int']['output'];
|
|
2076
|
+
limit: Scalars['Int']['output'];
|
|
2077
|
+
offset: Scalars['Int']['output'];
|
|
2078
|
+
promotions: Array<Promotion>;
|
|
2079
|
+
};
|
|
2080
|
+
export type PromotionFilters = {
|
|
2081
|
+
campaign_id?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2082
|
+
code?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2083
|
+
id?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2084
|
+
is_automatic?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2085
|
+
is_tax_inclusive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2086
|
+
status?: InputMaybe<Array<PromotionStatus>>;
|
|
2087
|
+
type?: InputMaybe<Array<PromotionType>>;
|
|
2088
|
+
};
|
|
1878
2089
|
export type PromotionRule = {
|
|
1879
2090
|
attribute?: Maybe<Scalars['String']['output']>;
|
|
2091
|
+
created_at?: Maybe<Scalars['DateTime']['output']>;
|
|
1880
2092
|
description?: Maybe<Scalars['String']['output']>;
|
|
1881
2093
|
id: Scalars['ID']['output'];
|
|
1882
|
-
|
|
1883
|
-
|
|
2094
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
2095
|
+
operator?: Maybe<PromotionRuleOperator>;
|
|
2096
|
+
updated_at?: Maybe<Scalars['DateTime']['output']>;
|
|
2097
|
+
values?: Maybe<Array<Maybe<PromotionRuleValue>>>;
|
|
1884
2098
|
};
|
|
1885
|
-
|
|
1886
|
-
export declare enum PromotionRuleOperatorValues {
|
|
2099
|
+
export declare enum PromotionRuleOperator {
|
|
1887
2100
|
Eq = "eq",
|
|
1888
2101
|
Gt = "gt",
|
|
1889
2102
|
Gte = "gte",
|
|
@@ -1892,32 +2105,36 @@ export declare enum PromotionRuleOperatorValues {
|
|
|
1892
2105
|
Lte = "lte",
|
|
1893
2106
|
Ne = "ne"
|
|
1894
2107
|
}
|
|
1895
|
-
/** Promotion Rule Value - Matches Medusa PromotionRuleValue type exactly */
|
|
1896
2108
|
export type PromotionRuleValue = {
|
|
1897
|
-
|
|
2109
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
1898
2110
|
value?: Maybe<Scalars['String']['output']>;
|
|
1899
2111
|
};
|
|
1900
|
-
/** Promotion Status Enum */
|
|
1901
2112
|
export declare enum PromotionStatus {
|
|
1902
2113
|
Active = "active",
|
|
1903
2114
|
Draft = "draft",
|
|
1904
2115
|
Inactive = "inactive"
|
|
1905
2116
|
}
|
|
1906
|
-
|
|
1907
|
-
export declare enum PromotionTypeValues {
|
|
2117
|
+
export declare enum PromotionType {
|
|
1908
2118
|
Buyget = "buyget",
|
|
1909
2119
|
Standard = "standard"
|
|
1910
2120
|
}
|
|
1911
2121
|
export type Query = {
|
|
1912
2122
|
_empty?: Maybe<Scalars['String']['output']>;
|
|
2123
|
+
/** Get the active cart for the currently authenticated customer */
|
|
2124
|
+
activeCustomerCart?: Maybe<Cart>;
|
|
2125
|
+
approvals?: Maybe<Array<Maybe<B2BApproval>>>;
|
|
1913
2126
|
authStatus: AuthStatus;
|
|
1914
2127
|
/** Calculate shipping option price */
|
|
1915
2128
|
calculateShippingOption: CalculatedShippingOption;
|
|
2129
|
+
campaign?: Maybe<Campaign>;
|
|
2130
|
+
campaigns: CampaignConnection;
|
|
1916
2131
|
/** Get a single cart by ID */
|
|
1917
2132
|
cart?: Maybe<Cart>;
|
|
1918
2133
|
collection?: Maybe<ProductCollection>;
|
|
1919
2134
|
collectionByHandle?: Maybe<ProductCollection>;
|
|
1920
2135
|
collections: ProductCollectionConnection;
|
|
2136
|
+
companies?: Maybe<Array<Maybe<B2BCompany>>>;
|
|
2137
|
+
company?: Maybe<B2BCompany>;
|
|
1921
2138
|
/** List currencies */
|
|
1922
2139
|
currencies: CurrencyConnection;
|
|
1923
2140
|
/** Get a single currency by code */
|
|
@@ -1935,6 +2152,7 @@ export type Query = {
|
|
|
1935
2152
|
customers: CustomerConnection;
|
|
1936
2153
|
getCustomer?: Maybe<Customer>;
|
|
1937
2154
|
me?: Maybe<User>;
|
|
2155
|
+
myCompany?: Maybe<B2BCompany>;
|
|
1938
2156
|
/** Get a single order by ID */
|
|
1939
2157
|
order?: Maybe<Order>;
|
|
1940
2158
|
/** List customer's orders with pagination */
|
|
@@ -1958,6 +2176,10 @@ export type Query = {
|
|
|
1958
2176
|
productTypes: ProductTypeConnection;
|
|
1959
2177
|
productVariant?: Maybe<ProductVariant>;
|
|
1960
2178
|
products: ProductConnection;
|
|
2179
|
+
promotion?: Maybe<Promotion>;
|
|
2180
|
+
promotions: PromotionConnection;
|
|
2181
|
+
quote?: Maybe<B2BQuote>;
|
|
2182
|
+
quotes?: Maybe<Array<Maybe<B2BQuote>>>;
|
|
1961
2183
|
/** Get a single region by ID */
|
|
1962
2184
|
region?: Maybe<Region>;
|
|
1963
2185
|
/** List regions */
|
|
@@ -1966,13 +2188,28 @@ export type Query = {
|
|
|
1966
2188
|
returnReason?: Maybe<ReturnReason>;
|
|
1967
2189
|
/** List return reasons */
|
|
1968
2190
|
returnReasons: ReturnReasonConnection;
|
|
2191
|
+
review?: Maybe<Review>;
|
|
2192
|
+
reviews: ReviewConnection;
|
|
1969
2193
|
/** List shipping options for a cart */
|
|
1970
2194
|
shippingOptions: ShippingOptionConnection;
|
|
1971
2195
|
};
|
|
2196
|
+
export type QueryApprovalsArgs = {
|
|
2197
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2198
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
2199
|
+
status?: InputMaybe<Array<InputMaybe<B2BApprovalStatus>>>;
|
|
2200
|
+
};
|
|
1972
2201
|
export type QueryCalculateShippingOptionArgs = {
|
|
1973
2202
|
cartId: Scalars['ID']['input'];
|
|
1974
2203
|
shippingOptionId: Scalars['ID']['input'];
|
|
1975
2204
|
};
|
|
2205
|
+
export type QueryCampaignArgs = {
|
|
2206
|
+
id: Scalars['ID']['input'];
|
|
2207
|
+
};
|
|
2208
|
+
export type QueryCampaignsArgs = {
|
|
2209
|
+
filters?: InputMaybe<CampaignFilters>;
|
|
2210
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2211
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
2212
|
+
};
|
|
1976
2213
|
export type QueryCartArgs = {
|
|
1977
2214
|
id: Scalars['ID']['input'];
|
|
1978
2215
|
};
|
|
@@ -1987,6 +2224,14 @@ export type QueryCollectionsArgs = {
|
|
|
1987
2224
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
1988
2225
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
1989
2226
|
};
|
|
2227
|
+
export type QueryCompaniesArgs = {
|
|
2228
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2229
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
2230
|
+
status?: InputMaybe<B2BCompanyStatus>;
|
|
2231
|
+
};
|
|
2232
|
+
export type QueryCompanyArgs = {
|
|
2233
|
+
id: Scalars['ID']['input'];
|
|
2234
|
+
};
|
|
1990
2235
|
export type QueryCurrenciesArgs = {
|
|
1991
2236
|
filters?: InputMaybe<CurrencyFilters>;
|
|
1992
2237
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2062,6 +2307,22 @@ export type QueryProductsArgs = {
|
|
|
2062
2307
|
order?: InputMaybe<ProductOrderInput>;
|
|
2063
2308
|
pricingContext?: InputMaybe<PricingContextInput>;
|
|
2064
2309
|
};
|
|
2310
|
+
export type QueryPromotionArgs = {
|
|
2311
|
+
id: Scalars['ID']['input'];
|
|
2312
|
+
};
|
|
2313
|
+
export type QueryPromotionsArgs = {
|
|
2314
|
+
filters?: InputMaybe<PromotionFilters>;
|
|
2315
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2316
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
2317
|
+
};
|
|
2318
|
+
export type QueryQuoteArgs = {
|
|
2319
|
+
id: Scalars['ID']['input'];
|
|
2320
|
+
};
|
|
2321
|
+
export type QueryQuotesArgs = {
|
|
2322
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2323
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
2324
|
+
status?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
2325
|
+
};
|
|
2065
2326
|
export type QueryRegionArgs = {
|
|
2066
2327
|
id: Scalars['ID']['input'];
|
|
2067
2328
|
};
|
|
@@ -2077,6 +2338,15 @@ export type QueryReturnReasonsArgs = {
|
|
|
2077
2338
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2078
2339
|
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
2079
2340
|
};
|
|
2341
|
+
export type QueryReviewArgs = {
|
|
2342
|
+
id: Scalars['ID']['input'];
|
|
2343
|
+
};
|
|
2344
|
+
export type QueryReviewsArgs = {
|
|
2345
|
+
filter?: InputMaybe<ProductReviewFilterInput>;
|
|
2346
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2347
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
2348
|
+
order?: InputMaybe<Scalars['String']['input']>;
|
|
2349
|
+
};
|
|
2080
2350
|
export type QueryShippingOptionsArgs = {
|
|
2081
2351
|
cartId: Scalars['ID']['input'];
|
|
2082
2352
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2172,7 +2442,7 @@ export type ReturnReasonConnection = {
|
|
|
2172
2442
|
offset: Scalars['Int']['output'];
|
|
2173
2443
|
return_reasons: Array<ReturnReason>;
|
|
2174
2444
|
};
|
|
2175
|
-
/** Return status enum
|
|
2445
|
+
/** Return status enum */
|
|
2176
2446
|
export declare enum ReturnStatus {
|
|
2177
2447
|
Canceled = "canceled",
|
|
2178
2448
|
PartiallyReceived = "partially_received",
|
|
@@ -2180,27 +2450,42 @@ export declare enum ReturnStatus {
|
|
|
2180
2450
|
Requested = "requested"
|
|
2181
2451
|
}
|
|
2182
2452
|
export type Review = {
|
|
2183
|
-
content
|
|
2453
|
+
content?: Maybe<Scalars['String']['output']>;
|
|
2184
2454
|
created_at: Scalars['DateTime']['output'];
|
|
2185
2455
|
customer_id?: Maybe<Scalars['String']['output']>;
|
|
2186
|
-
|
|
2456
|
+
email?: Maybe<Scalars['String']['output']>;
|
|
2187
2457
|
first_name: Scalars['String']['output'];
|
|
2458
|
+
helpful_count?: Maybe<Scalars['Int']['output']>;
|
|
2188
2459
|
id: Scalars['ID']['output'];
|
|
2460
|
+
images?: Maybe<Array<ReviewImage>>;
|
|
2189
2461
|
last_name: Scalars['String']['output'];
|
|
2462
|
+
location?: Maybe<Scalars['String']['output']>;
|
|
2190
2463
|
product?: Maybe<Product>;
|
|
2191
|
-
product_id
|
|
2192
|
-
product_link?: Maybe<LinkProductReviewReviewProductProduct>;
|
|
2464
|
+
product_id?: Maybe<Scalars['String']['output']>;
|
|
2193
2465
|
rating: Scalars['Float']['output'];
|
|
2194
2466
|
status: ReviewStatus;
|
|
2195
2467
|
title?: Maybe<Scalars['String']['output']>;
|
|
2196
2468
|
updated_at: Scalars['DateTime']['output'];
|
|
2469
|
+
verified_purchase?: Maybe<Scalars['Boolean']['output']>;
|
|
2470
|
+
};
|
|
2471
|
+
export type ReviewConnection = {
|
|
2472
|
+
count: Scalars['Int']['output'];
|
|
2473
|
+
limit: Scalars['Int']['output'];
|
|
2474
|
+
offset: Scalars['Int']['output'];
|
|
2475
|
+
reviews: Array<Review>;
|
|
2476
|
+
};
|
|
2477
|
+
export type ReviewImage = {
|
|
2478
|
+
created_at: Scalars['DateTime']['output'];
|
|
2479
|
+
id: Scalars['ID']['output'];
|
|
2480
|
+
review_id: Scalars['String']['output'];
|
|
2481
|
+
url: Scalars['String']['output'];
|
|
2197
2482
|
};
|
|
2198
2483
|
export declare enum ReviewStatus {
|
|
2199
2484
|
Approved = "approved",
|
|
2200
2485
|
Pending = "pending",
|
|
2201
2486
|
Rejected = "rejected"
|
|
2202
2487
|
}
|
|
2203
|
-
/** Sales Channel
|
|
2488
|
+
/** Sales Channel */
|
|
2204
2489
|
export type SalesChannel = {
|
|
2205
2490
|
carts?: Maybe<Array<Maybe<Cart>>>;
|
|
2206
2491
|
created_at: Scalars['DateTime']['output'];
|
|
@@ -2226,7 +2511,7 @@ export type ServiceZone = {
|
|
|
2226
2511
|
shipping_options: Array<ShippingOption>;
|
|
2227
2512
|
updated_at: Scalars['DateTime']['output'];
|
|
2228
2513
|
};
|
|
2229
|
-
/** Shipping Method
|
|
2514
|
+
/** Shipping Method */
|
|
2230
2515
|
export type ShippingMethod = {
|
|
2231
2516
|
adjustments: Array<Maybe<ShippingMethodAdjustment>>;
|
|
2232
2517
|
amount: Scalars['Float']['output'];
|
|
@@ -2245,7 +2530,7 @@ export type ShippingMethod = {
|
|
|
2245
2530
|
tax_lines: Array<Maybe<ShippingMethodTaxLine>>;
|
|
2246
2531
|
updated_at: Scalars['DateTime']['output'];
|
|
2247
2532
|
};
|
|
2248
|
-
/** Shipping Method Adjustment
|
|
2533
|
+
/** Shipping Method Adjustment */
|
|
2249
2534
|
export type ShippingMethodAdjustment = {
|
|
2250
2535
|
amount: Scalars['Float']['output'];
|
|
2251
2536
|
code?: Maybe<Scalars['String']['output']>;
|
|
@@ -2261,7 +2546,7 @@ export type ShippingMethodAdjustment = {
|
|
|
2261
2546
|
shipping_method_id: Scalars['String']['output'];
|
|
2262
2547
|
updated_at: Scalars['DateTime']['output'];
|
|
2263
2548
|
};
|
|
2264
|
-
/** Shipping Method Tax Line
|
|
2549
|
+
/** Shipping Method Tax Line */
|
|
2265
2550
|
export type ShippingMethodTaxLine = {
|
|
2266
2551
|
code: Scalars['String']['output'];
|
|
2267
2552
|
created_at: Scalars['DateTime']['output'];
|
|
@@ -2306,7 +2591,7 @@ export type ShippingOptionConnection = {
|
|
|
2306
2591
|
offset: Scalars['Int']['output'];
|
|
2307
2592
|
shipping_options: Array<ShippingOption>;
|
|
2308
2593
|
};
|
|
2309
|
-
/** Shipping option price type enum
|
|
2594
|
+
/** Shipping option price type enum */
|
|
2310
2595
|
export declare enum ShippingOptionPriceType {
|
|
2311
2596
|
Calculated = "calculated",
|
|
2312
2597
|
Flat = "flat"
|
|
@@ -2396,6 +2681,12 @@ export type UpdateCartLineItemInput = {
|
|
|
2396
2681
|
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
2397
2682
|
quantity: Scalars['Int']['input'];
|
|
2398
2683
|
};
|
|
2684
|
+
export type UpdateCompanyInput = {
|
|
2685
|
+
currency_code?: InputMaybe<Scalars['String']['input']>;
|
|
2686
|
+
email?: InputMaybe<Scalars['String']['input']>;
|
|
2687
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
2688
|
+
phone?: InputMaybe<Scalars['String']['input']>;
|
|
2689
|
+
};
|
|
2399
2690
|
/** Update customer input */
|
|
2400
2691
|
export type UpdateCustomerInput = {
|
|
2401
2692
|
company_name?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2407,6 +2698,10 @@ export type UpdateCustomerInput = {
|
|
|
2407
2698
|
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
2408
2699
|
phone?: InputMaybe<Scalars['String']['input']>;
|
|
2409
2700
|
};
|
|
2701
|
+
export type UpdateEmployeeInput = {
|
|
2702
|
+
is_admin?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2703
|
+
spending_limit?: InputMaybe<Scalars['Int']['input']>;
|
|
2704
|
+
};
|
|
2410
2705
|
export type User = {
|
|
2411
2706
|
avatar_url?: Maybe<Scalars['String']['output']>;
|
|
2412
2707
|
created_at: Scalars['DateTime']['output'];
|