@haus-storefront-react/shared-types 0.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/index.d.ts ADDED
@@ -0,0 +1,1325 @@
1
+ import { AxiosError, AxiosResponse } from 'axios';
2
+ import { default as React, HTMLAttributes, ReactNode, JSX, CSSProperties } from 'react';
3
+ export type ErrorResult = {
4
+ errorCode: ErrorCode;
5
+ message: string;
6
+ };
7
+ export type GenericEcomError = Maybe<AxiosError | ErrorResult | Error | undefined>;
8
+ export type Maybe<T> = T | null;
9
+ export type Exact<T extends {
10
+ [key: string]: unknown;
11
+ }> = {
12
+ [K in keyof T]: T[K];
13
+ };
14
+ type CustomRequired<T, K extends keyof T> = T & {
15
+ [P in K]-?: T[P];
16
+ };
17
+ export type WithRequired<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> & CustomRequired<T, K>;
18
+ type ValueOf<Obj> = Obj[keyof Obj];
19
+ type OneOnly<Obj, Key extends keyof Obj> = {
20
+ [key in Exclude<keyof Obj, Key>]: null;
21
+ } & Pick<Obj, Key>;
22
+ type OneOfByKey<Obj> = {
23
+ [key in keyof Obj]: OneOnly<Obj, key>;
24
+ };
25
+ export type OneOfType<Obj> = ValueOf<OneOfByKey<Obj>>;
26
+ export type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
27
+ [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
28
+ }[Keys];
29
+ export type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
30
+ [K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
31
+ }[Keys];
32
+ export type ArrayElement<A> = A extends readonly (infer T)[] ? T : never;
33
+ export type FacetValueFilterType = {
34
+ type?: 'facet';
35
+ facetCode: string;
36
+ logicalOperator?: keyof FacetValueFilterInput;
37
+ };
38
+ export type PriceFilterType = {
39
+ type: 'price';
40
+ };
41
+ export type EnabledFilter<T = FacetValueFilterType | PriceFilterType> = T & {
42
+ label?: string;
43
+ showSkeletonLoader?: boolean;
44
+ };
45
+ export type FacetValueFilterInput = {
46
+ and?: Maybe<string>;
47
+ or?: Maybe<Array<string>>;
48
+ not?: Maybe<Array<string>>;
49
+ };
50
+ export interface VariableDefinition {
51
+ type: 'String' | 'ID' | 'String!' | 'ID!';
52
+ }
53
+ export type FragmentField = {
54
+ operation: string;
55
+ fields: Field[];
56
+ fragment: boolean;
57
+ };
58
+ export type Field = string | NestedField | FragmentField;
59
+ export type NestedField = Record<string, Field[]>;
60
+ export interface BuilderQuery<Vars extends Record<string, unknown> = Record<string, unknown>> {
61
+ operation: string;
62
+ fields: Field[];
63
+ variables?: Vars;
64
+ }
65
+ export type ExpectedVariables<Vars> = {
66
+ [K in keyof Vars]: Vars[K] extends {
67
+ type: string;
68
+ } ? unknown : unknown;
69
+ };
70
+ export type BuilderQueries<T = Record<string, BuilderQuery>> = T;
71
+ export interface BuilderQueryUpdates {
72
+ [key: string]: Pick<BuilderQuery, 'fields'>;
73
+ }
74
+ export type QueryResponse<T> = AxiosResponse<T>;
75
+ export type PriceRangeInput = {
76
+ max: number;
77
+ min: number;
78
+ };
79
+ export interface SearchInput {
80
+ term?: Maybe<string>;
81
+ collectionId?: Maybe<string>;
82
+ collectionSlug?: Maybe<string>;
83
+ facetValueIds?: Maybe<Array<string>>;
84
+ facetValueOperator?: Maybe<LogicalOperator>;
85
+ facetValueFilters?: Maybe<Array<FacetValueFilterInput>>;
86
+ groupByProduct?: Maybe<boolean>;
87
+ inStock?: Maybe<boolean>;
88
+ sort?: Maybe<SearchResultSortParameter>;
89
+ take?: Maybe<number>;
90
+ skip?: Maybe<number>;
91
+ priceRange?: Maybe<PriceRangeInput>;
92
+ priceRangeWithTax?: Maybe<PriceRangeInput>;
93
+ }
94
+ export interface Pagination {
95
+ isInitialized: boolean;
96
+ totalItems: number;
97
+ totalPages: number;
98
+ currentPage: number;
99
+ itemsPerPage: number;
100
+ canGoBack: boolean;
101
+ canGoForward: boolean;
102
+ infinitePagination: boolean;
103
+ nextState: SearchInput;
104
+ nextPage: () => void;
105
+ prevPage: () => void;
106
+ }
107
+ export declare enum SortOrder {
108
+ Asc = "ASC",
109
+ Desc = "DESC"
110
+ }
111
+ export interface SearchResultSortParameter {
112
+ name?: Maybe<SortOrder>;
113
+ price?: Maybe<SortOrder>;
114
+ popularity?: Maybe<SortOrder>;
115
+ }
116
+ export interface Filters {
117
+ sort: Maybe<SearchResultSortParameter> | undefined;
118
+ setSort: (sort: SearchResultSortParameter) => void;
119
+ }
120
+ export type StringOperators = {
121
+ contains?: Maybe<string>;
122
+ eq?: Maybe<string>;
123
+ in?: Maybe<Array<string>>;
124
+ isNull?: Maybe<boolean>;
125
+ notContains?: Maybe<string>;
126
+ notEq?: Maybe<string>;
127
+ notIn?: Maybe<Array<string>>;
128
+ regex?: Maybe<string>;
129
+ };
130
+ export type BooleanOperators = {
131
+ eq?: Maybe<boolean>;
132
+ isNull?: Maybe<boolean>;
133
+ };
134
+ export type DateRange = {
135
+ end: string;
136
+ start: string;
137
+ };
138
+ export type DateOperators = {
139
+ after?: Maybe<string>;
140
+ before?: Maybe<string>;
141
+ between?: Maybe<DateRange>;
142
+ eq?: Maybe<string>;
143
+ isNull?: Maybe<boolean>;
144
+ };
145
+ export type IdOperators = {
146
+ eq?: Maybe<string>;
147
+ in?: Maybe<Array<string>>;
148
+ isNull?: Maybe<boolean>;
149
+ notEq?: Maybe<string>;
150
+ notIn?: Maybe<Array<string>>;
151
+ };
152
+ export type NumberRange = {
153
+ end: number;
154
+ start: number;
155
+ };
156
+ export type NumberOperators = {
157
+ between?: Maybe<NumberRange>;
158
+ eq?: Maybe<number>;
159
+ gt?: Maybe<number>;
160
+ gte?: Maybe<number>;
161
+ isNull?: Maybe<boolean>;
162
+ lt?: Maybe<number>;
163
+ lte?: Maybe<number>;
164
+ };
165
+ type LoadingKey = string | number | symbol;
166
+ type LoadingMap = Record<LoadingKey, boolean>;
167
+ export type Loading<T extends keyof LoadingMap> = Record<T, boolean>;
168
+ export type ChildrenProps<ChildProps = object> = ((props: ChildProps) => ReactNode) | ReactNode;
169
+ export type CustomHTMLElement<T = HTMLOrSVGElement, U = object> = Omit<HTMLAttributes<T>, 'children'> & {
170
+ wrapperTag?: keyof JSX.IntrinsicElements | typeof React.Fragment;
171
+ } & U;
172
+ export type ClassNamesProps<T = object> = {
173
+ classNames?: Record<string, string>;
174
+ } & T;
175
+ export type EcomWidget = HTMLAttributes<HTMLElement> & {
176
+ slotClassNames?: ClassNamesProps | Record<string, ClassNamesProps>;
177
+ };
178
+ export type PriceRange = {
179
+ max: number;
180
+ min: number;
181
+ };
182
+ export type SinglePrice = {
183
+ value: number;
184
+ };
185
+ export type Price = PriceRange | SinglePrice | number;
186
+ export type SearchResultAsset = {
187
+ id: string;
188
+ preview: string;
189
+ };
190
+ export type FilterInputs = {
191
+ filters: FacetValueFilterInput[];
192
+ priceRange?: PriceRangeInput;
193
+ priceRangeWithTax?: PriceRangeInput;
194
+ };
195
+ export type SearchResult = Node & {
196
+ collectionIds: Array<string>;
197
+ currencyCode: CurrencyCode;
198
+ description: string;
199
+ facetIds: Array<string>;
200
+ facetValueIds: Array<string>;
201
+ inStock: boolean;
202
+ price: Price;
203
+ priceWithTax: Price;
204
+ productAsset?: Maybe<SearchResultAsset>;
205
+ productId: string;
206
+ productName: string;
207
+ productVariantAsset?: Maybe<SearchResultAsset>;
208
+ productVariantId: string;
209
+ productVariantName: string;
210
+ score: number;
211
+ sku: string;
212
+ slug: string;
213
+ badges?: Maybe<Array<Badge>>;
214
+ };
215
+ type ResponseResult = {
216
+ count: number;
217
+ };
218
+ export type CollectionList = {
219
+ items: Array<Collection>;
220
+ totalItems: number;
221
+ };
222
+ export type CollectionResult = ResponseResult & {
223
+ collection: Collection;
224
+ };
225
+ export type FacetValueResult = ResponseResult & {
226
+ facetValue: FacetValue;
227
+ };
228
+ export type SearchResponsePriceData = {
229
+ range: PriceRange;
230
+ rangeWithTax: PriceRange;
231
+ };
232
+ export type SearchResponse = {
233
+ collections: Array<CollectionResult>;
234
+ facetValues: Array<FacetValueResult>;
235
+ items: Array<SearchResult>;
236
+ prices: SearchResponsePriceData;
237
+ totalItems: number;
238
+ };
239
+ export type ProductResponse = {
240
+ items: Array<Product>;
241
+ };
242
+ export interface GroupedFacetValues {
243
+ [key: string]: FacetValue[];
244
+ }
245
+ export type SearchInputProps = Pick<SearchInput, 'term' | 'collectionId' | 'facetValueIds' | 'facetValueOperator' | 'facetValueFilters' | 'groupByProduct' | 'sort' | 'take' | 'priceRange' | 'priceRangeWithTax'>;
246
+ export type Node = {
247
+ id: string;
248
+ createdAt: string;
249
+ updatedAt: string;
250
+ customFields?: Record<string, unknown>;
251
+ };
252
+ export type Channel = Node & {
253
+ availableCurrencyCodes: Array<CurrencyCode>;
254
+ availableLanguageCodes?: Maybe<Array<LanguageCode>>;
255
+ code: string;
256
+ currencyCode: CurrencyCode;
257
+ defaultCurrencyCode: CurrencyCode;
258
+ defaultLanguageCode: LanguageCode;
259
+ /** Not yet used - will be implemented in a future release. */
260
+ pricesIncludeTax: boolean;
261
+ token: string;
262
+ /** Not yet used - will be implemented in a future release. */
263
+ trackInventory?: string;
264
+ updatedAt: string;
265
+ };
266
+ export type Asset = Node & {
267
+ name: string;
268
+ type: AssetType;
269
+ fileSize: number;
270
+ mimeType: string;
271
+ width: number;
272
+ height: number;
273
+ source: string;
274
+ preview: string;
275
+ };
276
+ export type CollectionBreadcrumb = {
277
+ id: string;
278
+ name: string;
279
+ slug: string;
280
+ breadcrumbs: Array<CollectionBreadcrumb>;
281
+ };
282
+ export type PaginatedList<T = Node> = {
283
+ items: Array<T>;
284
+ totalItems: number;
285
+ };
286
+ export type ProductVariantList = PaginatedList & {
287
+ items: Array<ProductVariant>;
288
+ };
289
+ export type FacetList = PaginatedList & {
290
+ items: Array<Facet>;
291
+ };
292
+ export type FacetValueList = PaginatedList & {
293
+ items: Array<FacetValue>;
294
+ };
295
+ export type Collection = Node & {
296
+ assets: Array<Asset>;
297
+ breadcrumbs: Array<CollectionBreadcrumb>;
298
+ children?: Maybe<Array<Collection>>;
299
+ description: string;
300
+ featuredAsset?: Maybe<Asset>;
301
+ languageCode?: Maybe<LanguageCode>;
302
+ name: string;
303
+ parent?: Maybe<Collection>;
304
+ parentId: string;
305
+ productVariants: ProductVariantList;
306
+ slug: string;
307
+ };
308
+ export type Facet = Node & {
309
+ code: string;
310
+ languageCode: LanguageCode;
311
+ name: string;
312
+ valueList: FacetValueList;
313
+ values: Array<FacetValue>;
314
+ };
315
+ export type FacetValue = Node & {
316
+ code: string;
317
+ facet: Facet;
318
+ facetId: string;
319
+ languageCode: LanguageCode;
320
+ name: string;
321
+ };
322
+ export type ProductOption = Node & {
323
+ code: string;
324
+ group: ProductOptionGroup;
325
+ groupId: string;
326
+ languageCode: LanguageCode;
327
+ name: string;
328
+ };
329
+ export type ProductOptionGroup = Node & {
330
+ code: string;
331
+ languageCode: LanguageCode;
332
+ name: string;
333
+ options: Array<ProductOption>;
334
+ };
335
+ export type BriefProduct = Node & {
336
+ name: string;
337
+ slug: string;
338
+ variants: Array<ProductVariant>;
339
+ };
340
+ export type Product = BriefProduct & {
341
+ assets: Array<Asset>;
342
+ collections: Array<Collection>;
343
+ description: string;
344
+ facetValues: Array<FacetValue>;
345
+ featuredAsset?: Maybe<Asset>;
346
+ languageCode: LanguageCode;
347
+ optionGroups: Array<ProductOptionGroup>;
348
+ variantList: ProductVariantList;
349
+ badges?: Maybe<Array<Badge>>;
350
+ price: Price;
351
+ priceWithTax: Price;
352
+ currencyCode: CurrencyCode;
353
+ breadCrumbs: string;
354
+ ordinaryPrice?: PriceRange;
355
+ };
356
+ export type BriefProductVariant = Node & {
357
+ name: string;
358
+ sku: string;
359
+ price: Price;
360
+ priceWithTax: Price;
361
+ currencyCode: CurrencyCode;
362
+ stockLevel: string;
363
+ packageSize?: number;
364
+ ordinaryPrice?: Price;
365
+ };
366
+ export type ProductVariant = BriefProductVariant & {
367
+ product: Product;
368
+ productId: string;
369
+ languageCode: LanguageCode;
370
+ featuredAsset: Asset;
371
+ assets: Array<Asset>;
372
+ stockLevel: string;
373
+ taxRateApplied: number;
374
+ taxCategory: string;
375
+ options: Array<ProductOption>;
376
+ facetValues: Array<FacetValue>;
377
+ customFields: Record<string, unknown>;
378
+ badges?: Maybe<Array<Badge>>;
379
+ };
380
+ export type Country = Node & {
381
+ code: LanguageCode;
382
+ name: string;
383
+ type: string;
384
+ enabled: boolean;
385
+ };
386
+ export type Address = Node & {
387
+ fullName?: Maybe<string>;
388
+ company?: Maybe<string>;
389
+ streetLine1?: Maybe<string>;
390
+ streetLine2?: Maybe<string>;
391
+ city?: Maybe<string>;
392
+ province?: Maybe<string>;
393
+ postalCode?: Maybe<string>;
394
+ phoneNumber?: Maybe<string>;
395
+ defaultShippingAddress?: Maybe<boolean>;
396
+ defaultBillingAddress?: Maybe<boolean>;
397
+ country?: Maybe<Country>;
398
+ };
399
+ export type CreateAddressInput = Omit<Address, 'id' | 'createdAt' | 'updatedAt' | 'country'> & {
400
+ streetLine1: string;
401
+ countryCode: string;
402
+ };
403
+ export type OrderAddress = Omit<Address, 'id' | 'createdAt' | 'updatedAt'> & {
404
+ countryCode?: Maybe<string>;
405
+ };
406
+ export type Customer = Node & {
407
+ title?: Maybe<string>;
408
+ firstName: string;
409
+ lastName: string;
410
+ phoneNumber?: Maybe<string>;
411
+ emailAddress: string;
412
+ addresses?: Maybe<Array<Address>>;
413
+ };
414
+ export type CreateCustomerInput = Omit<Customer, 'id' | 'createdAt' | 'updatedAt' | 'addresses'>;
415
+ export type OrderLine = Node & {
416
+ unitPrice: Price;
417
+ unitPriceWithTax: Price;
418
+ linePrice: Price;
419
+ linePriceWithTax: Price;
420
+ discountedUnitPrice: Price;
421
+ discountedUnitPriceWithTax: Price;
422
+ discountedLinePrice: Price;
423
+ discountedLinePriceWithTax: Price;
424
+ proratedUnitPrice: Price;
425
+ proratedUnitPriceWithTax: Price;
426
+ proratedLinePrice: Price;
427
+ proratedLinePriceWithTax: Price;
428
+ quantity: number;
429
+ featuredAsset?: Maybe<Asset>;
430
+ productVariant: ProductVariant;
431
+ ordinaryPrice?: Price;
432
+ };
433
+ export type Payment = Node & {
434
+ method: string;
435
+ state: string;
436
+ transactionId?: Maybe<string>;
437
+ amount: Price;
438
+ metadata?: Maybe<JSON>;
439
+ };
440
+ export type PaymentMethodQuote = Omit<Node, 'createdAt' | 'updatedAt'> & {
441
+ code: string;
442
+ name: string;
443
+ description: string;
444
+ isEligible: boolean;
445
+ eligibilityMessage: string;
446
+ };
447
+ export type ShippingMethodQuote = Omit<Node, 'createdAt' | 'updatedAt'> & {
448
+ price: Price;
449
+ priceWithTax: Price;
450
+ code: string;
451
+ name: string;
452
+ description: string;
453
+ metadata: JSON;
454
+ };
455
+ export type OrderTaxSummary = {
456
+ description: string;
457
+ taxBase: number;
458
+ taxRate: number;
459
+ taxTotal: number;
460
+ };
461
+ export type OrderPriceData = {
462
+ subTotal: number;
463
+ subTotalWithTax: number;
464
+ total: number;
465
+ totalWithTax: number;
466
+ shipping: number;
467
+ shippingWithTax: number;
468
+ currencyCode: CurrencyCode;
469
+ taxSummary: Array<OrderTaxSummary>;
470
+ };
471
+ export type Order = Node & OrderPriceData & {
472
+ code: string;
473
+ active: boolean;
474
+ state: string;
475
+ totalQuantity: number;
476
+ customer?: Maybe<Customer>;
477
+ billingAddress?: Maybe<OrderAddress>;
478
+ shippingAddress?: Maybe<OrderAddress>;
479
+ lines: Array<OrderLine>;
480
+ payments?: Maybe<Array<Payment>>;
481
+ history: HistoryEntryList;
482
+ discounts: Discount[];
483
+ shippingLines: ShippingLine[];
484
+ orderPlacedAt: string;
485
+ };
486
+ export type UpdateOrderInput = {
487
+ billingAddress?: Maybe<CreateAddressInput>;
488
+ shippingAddress?: Maybe<CreateAddressInput>;
489
+ shippingMethodId?: Maybe<string>;
490
+ paymentMethodCode?: Maybe<string>;
491
+ customer?: Maybe<CreateCustomerInput>;
492
+ customFields?: Record<string, unknown>;
493
+ };
494
+ export type ShippingMethod = {
495
+ id: string;
496
+ name: string;
497
+ };
498
+ export type ShippingLine = {
499
+ priceWithTax: Price;
500
+ price: Price;
501
+ shippingMethod: ShippingMethod;
502
+ };
503
+ export type HistoryEntryList = {
504
+ items: Array<HistoryEntry>;
505
+ totalItems: number;
506
+ };
507
+ export type Discount = {
508
+ type: string;
509
+ description: string;
510
+ amount: Price;
511
+ amountWithTax: Price;
512
+ };
513
+ export type HistoryEntry = Node & {
514
+ id: string;
515
+ type: string;
516
+ data: {
517
+ from: string;
518
+ to: string;
519
+ [key: string]: string;
520
+ };
521
+ };
522
+ export type OrderFilterParameter = {
523
+ CustomerMessage?: Maybe<StringOperators>;
524
+ active?: Maybe<BooleanOperators>;
525
+ code?: Maybe<StringOperators>;
526
+ createdAt?: Maybe<DateOperators>;
527
+ currencyCode?: Maybe<StringOperators>;
528
+ id?: Maybe<IdOperators>;
529
+ newCustomer?: Maybe<BooleanOperators>;
530
+ orderPlacedAt?: Maybe<DateOperators>;
531
+ shipping?: Maybe<NumberOperators>;
532
+ shippingWithTax?: Maybe<NumberOperators>;
533
+ state?: Maybe<StringOperators>;
534
+ subTotal?: Maybe<NumberOperators>;
535
+ subTotalWithTax?: Maybe<NumberOperators>;
536
+ total?: Maybe<NumberOperators>;
537
+ totalQuantity?: Maybe<NumberOperators>;
538
+ totalWithTax?: Maybe<NumberOperators>;
539
+ type?: Maybe<StringOperators>;
540
+ updatedAt?: Maybe<DateOperators>;
541
+ };
542
+ export type OrderSortParameter = {
543
+ CustomerMessage?: Maybe<SortOrder>;
544
+ code?: Maybe<SortOrder>;
545
+ createdAt?: Maybe<SortOrder>;
546
+ id?: Maybe<SortOrder>;
547
+ newCustomer?: Maybe<SortOrder>;
548
+ orderPlacedAt?: Maybe<SortOrder>;
549
+ shipping?: Maybe<SortOrder>;
550
+ shippingWithTax?: Maybe<SortOrder>;
551
+ state?: Maybe<SortOrder>;
552
+ subTotal?: Maybe<SortOrder>;
553
+ subTotalWithTax?: Maybe<SortOrder>;
554
+ total?: Maybe<SortOrder>;
555
+ totalQuantity?: Maybe<SortOrder>;
556
+ totalWithTax?: Maybe<SortOrder>;
557
+ updatedAt?: Maybe<SortOrder>;
558
+ };
559
+ export type FacetFilterParameter = {
560
+ code?: Maybe<StringOperators>;
561
+ createdAt?: Maybe<DateOperators>;
562
+ id?: Maybe<IdOperators>;
563
+ languageCode?: Maybe<StringOperators>;
564
+ name?: Maybe<StringOperators>;
565
+ updatedAt?: Maybe<DateOperators>;
566
+ };
567
+ export type FacetSortParameter = {
568
+ code?: Maybe<SortOrder>;
569
+ createdAt?: Maybe<SortOrder>;
570
+ id?: Maybe<SortOrder>;
571
+ name?: Maybe<SortOrder>;
572
+ updatedAt?: Maybe<SortOrder>;
573
+ };
574
+ export type FacetListOptions = {
575
+ filter?: Maybe<FacetFilterParameter>;
576
+ filterOperator?: Maybe<LogicalOperator>;
577
+ skip?: Maybe<number>;
578
+ sort?: Maybe<FacetSortParameter>;
579
+ take?: Maybe<number>;
580
+ };
581
+ export type OrderListOptions = {
582
+ filter?: Maybe<OrderFilterParameter>;
583
+ filterOperator?: Maybe<LogicalOperator>;
584
+ skip?: Maybe<number>;
585
+ sort?: Maybe<OrderSortParameter>;
586
+ take?: Maybe<number>;
587
+ };
588
+ export type OrderList = PaginatedList & {
589
+ items: Array<Order>;
590
+ totalItems: number;
591
+ };
592
+ export type Badge = {
593
+ id: string;
594
+ createdAt: string;
595
+ updatedAt: string;
596
+ collection: Collection;
597
+ collectionId: string;
598
+ position: string;
599
+ asset: Asset;
600
+ assetId: string;
601
+ };
602
+ export interface CollectionSearchResponse extends Collection {
603
+ hierarchySlug: string;
604
+ }
605
+ export interface UseSearchFieldResponse {
606
+ collections?: CollectionSearchResponse[];
607
+ items: SearchResponse['items'];
608
+ totalItems: number;
609
+ facets: GroupedFacetValues;
610
+ }
611
+ export type AddItemToOrderInput = {
612
+ productVariantId: string;
613
+ quantity: number;
614
+ };
615
+ export type AdjustOrderLineInput = {
616
+ orderLineId: string;
617
+ quantity: number;
618
+ };
619
+ export type LoginInput = {
620
+ username: string;
621
+ password: string;
622
+ rememberMe?: boolean;
623
+ };
624
+ export type RequestPasswordResetInput = {
625
+ email: string;
626
+ };
627
+ export type ResetPasswordInput = {
628
+ token: string;
629
+ password: string;
630
+ };
631
+ export declare enum QueryKeys {
632
+ ACTIVE_ORDER = "activeOrder",
633
+ ACTIVE_CHANNEL = "activeChannel",
634
+ ACTIVE_CUSTOMER = "activeCustomer",
635
+ ACTIVE_CUSTOMER_ORDERS = "activeCustomerOrders",
636
+ AVAILABLE_COUNTRIES = "availableCountries",
637
+ FACETS = "facets",
638
+ ORDER_BY_CODE = "orderByCode",
639
+ ORDER_STATES = "orderStates",
640
+ PRODUCT = "product",
641
+ PAYMENT_METHODS = "paymentMethods",
642
+ SEARCH = "search",
643
+ SEARCH_FIELD = "searchField",
644
+ SHIPPING_METHODS = "shippingMethods"
645
+ }
646
+ export declare enum CurrencyCode {
647
+ /** United Arab Emirates dirham */
648
+ Aed = "AED",
649
+ /** Afghan afghani */
650
+ Afn = "AFN",
651
+ /** Albanian lek */
652
+ All = "ALL",
653
+ /** Armenian dram */
654
+ Amd = "AMD",
655
+ /** Netherlands Antillean guilder */
656
+ Ang = "ANG",
657
+ /** Angolan kwanza */
658
+ Aoa = "AOA",
659
+ /** Argentine peso */
660
+ Ars = "ARS",
661
+ /** Australian dollar */
662
+ Aud = "AUD",
663
+ /** Aruban florin */
664
+ Awg = "AWG",
665
+ /** Azerbaijani manat */
666
+ Azn = "AZN",
667
+ /** Bosnia and Herzegovina convertible mark */
668
+ Bam = "BAM",
669
+ /** Barbados dollar */
670
+ Bbd = "BBD",
671
+ /** Bangladeshi taka */
672
+ Bdt = "BDT",
673
+ /** Bulgarian lev */
674
+ Bgn = "BGN",
675
+ /** Bahraini dinar */
676
+ Bhd = "BHD",
677
+ /** Burundian franc */
678
+ Bif = "BIF",
679
+ /** Bermudian dollar */
680
+ Bmd = "BMD",
681
+ /** Brunei dollar */
682
+ Bnd = "BND",
683
+ /** Boliviano */
684
+ Bob = "BOB",
685
+ /** Brazilian real */
686
+ Brl = "BRL",
687
+ /** Bahamian dollar */
688
+ Bsd = "BSD",
689
+ /** Bhutanese ngultrum */
690
+ Btn = "BTN",
691
+ /** Botswana pula */
692
+ Bwp = "BWP",
693
+ /** Belarusian ruble */
694
+ Byn = "BYN",
695
+ /** Belize dollar */
696
+ Bzd = "BZD",
697
+ /** Canadian dollar */
698
+ Cad = "CAD",
699
+ /** Congolese franc */
700
+ Cdf = "CDF",
701
+ /** Swiss franc */
702
+ Chf = "CHF",
703
+ /** Chilean peso */
704
+ Clp = "CLP",
705
+ /** Renminbi (Chinese) yuan */
706
+ Cny = "CNY",
707
+ /** Colombian peso */
708
+ Cop = "COP",
709
+ /** Costa Rican colon */
710
+ Crc = "CRC",
711
+ /** Cuban convertible peso */
712
+ Cuc = "CUC",
713
+ /** Cuban peso */
714
+ Cup = "CUP",
715
+ /** Cape Verde escudo */
716
+ Cve = "CVE",
717
+ /** Czech koruna */
718
+ Czk = "CZK",
719
+ /** Djiboutian franc */
720
+ Djf = "DJF",
721
+ /** Danish krone */
722
+ Dkk = "DKK",
723
+ /** Dominican peso */
724
+ Dop = "DOP",
725
+ /** Algerian dinar */
726
+ Dzd = "DZD",
727
+ /** Egyptian pound */
728
+ Egp = "EGP",
729
+ /** Eritrean nakfa */
730
+ Ern = "ERN",
731
+ /** Ethiopian birr */
732
+ Etb = "ETB",
733
+ /** Euro */
734
+ Eur = "EUR",
735
+ /** Fiji dollar */
736
+ Fjd = "FJD",
737
+ /** Falkland Islands pound */
738
+ Fkp = "FKP",
739
+ /** Pound sterling */
740
+ Gbp = "GBP",
741
+ /** Georgian lari */
742
+ Gel = "GEL",
743
+ /** Ghanaian cedi */
744
+ Ghs = "GHS",
745
+ /** Gibraltar pound */
746
+ Gip = "GIP",
747
+ /** Gambian dalasi */
748
+ Gmd = "GMD",
749
+ /** Guinean franc */
750
+ Gnf = "GNF",
751
+ /** Guatemalan quetzal */
752
+ Gtq = "GTQ",
753
+ /** Guyanese dollar */
754
+ Gyd = "GYD",
755
+ /** Hong Kong dollar */
756
+ Hkd = "HKD",
757
+ /** Honduran lempira */
758
+ Hnl = "HNL",
759
+ /** Croatian kuna */
760
+ Hrk = "HRK",
761
+ /** Haitian gourde */
762
+ Htg = "HTG",
763
+ /** Hungarian forint */
764
+ Huf = "HUF",
765
+ /** Indonesian rupiah */
766
+ Idr = "IDR",
767
+ /** Israeli new shekel */
768
+ Ils = "ILS",
769
+ /** Indian rupee */
770
+ Inr = "INR",
771
+ /** Iraqi dinar */
772
+ Iqd = "IQD",
773
+ /** Iranian rial */
774
+ Irr = "IRR",
775
+ /** Icelandic króna */
776
+ Isk = "ISK",
777
+ /** Jamaican dollar */
778
+ Jmd = "JMD",
779
+ /** Jordanian dinar */
780
+ Jod = "JOD",
781
+ /** Japanese yen */
782
+ Jpy = "JPY",
783
+ /** Kenyan shilling */
784
+ Kes = "KES",
785
+ /** Kyrgyzstani som */
786
+ Kgs = "KGS",
787
+ /** Cambodian riel */
788
+ Khr = "KHR",
789
+ /** Comoro franc */
790
+ Kmf = "KMF",
791
+ /** North Korean won */
792
+ Kpw = "KPW",
793
+ /** South Korean won */
794
+ Krw = "KRW",
795
+ /** Kuwaiti dinar */
796
+ Kwd = "KWD",
797
+ /** Cayman Islands dollar */
798
+ Kyd = "KYD",
799
+ /** Kazakhstani tenge */
800
+ Kzt = "KZT",
801
+ /** Lao kip */
802
+ Lak = "LAK",
803
+ /** Lebanese pound */
804
+ Lbp = "LBP",
805
+ /** Sri Lankan rupee */
806
+ Lkr = "LKR",
807
+ /** Liberian dollar */
808
+ Lrd = "LRD",
809
+ /** Lesotho loti */
810
+ Lsl = "LSL",
811
+ /** Libyan dinar */
812
+ Lyd = "LYD",
813
+ /** Moroccan dirham */
814
+ Mad = "MAD",
815
+ /** Moldovan leu */
816
+ Mdl = "MDL",
817
+ /** Malagasy ariary */
818
+ Mga = "MGA",
819
+ /** Macedonian denar */
820
+ Mkd = "MKD",
821
+ /** Myanmar kyat */
822
+ Mmk = "MMK",
823
+ /** Mongolian tögrög */
824
+ Mnt = "MNT",
825
+ /** Macanese pataca */
826
+ Mop = "MOP",
827
+ /** Mauritanian ouguiya */
828
+ Mru = "MRU",
829
+ /** Mauritian rupee */
830
+ Mur = "MUR",
831
+ /** Maldivian rufiyaa */
832
+ Mvr = "MVR",
833
+ /** Malawian kwacha */
834
+ Mwk = "MWK",
835
+ /** Mexican peso */
836
+ Mxn = "MXN",
837
+ /** Malaysian ringgit */
838
+ Myr = "MYR",
839
+ /** Mozambican metical */
840
+ Mzn = "MZN",
841
+ /** Namibian dollar */
842
+ Nad = "NAD",
843
+ /** Nigerian naira */
844
+ Ngn = "NGN",
845
+ /** Nicaraguan córdoba */
846
+ Nio = "NIO",
847
+ /** Norwegian krone */
848
+ Nok = "NOK",
849
+ /** Nepalese rupee */
850
+ Npr = "NPR",
851
+ /** New Zealand dollar */
852
+ Nzd = "NZD",
853
+ /** Omani rial */
854
+ Omr = "OMR",
855
+ /** Panamanian balboa */
856
+ Pab = "PAB",
857
+ /** Peruvian sol */
858
+ Pen = "PEN",
859
+ /** Papua New Guinean kina */
860
+ Pgk = "PGK",
861
+ /** Philippine peso */
862
+ Php = "PHP",
863
+ /** Pakistani rupee */
864
+ Pkr = "PKR",
865
+ /** Polish złoty */
866
+ Pln = "PLN",
867
+ /** Paraguayan guaraní */
868
+ Pyg = "PYG",
869
+ /** Qatari riyal */
870
+ Qar = "QAR",
871
+ /** Romanian leu */
872
+ Ron = "RON",
873
+ /** Serbian dinar */
874
+ Rsd = "RSD",
875
+ /** Russian ruble */
876
+ Rub = "RUB",
877
+ /** Rwandan franc */
878
+ Rwf = "RWF",
879
+ /** Saudi riyal */
880
+ Sar = "SAR",
881
+ /** Solomon Islands dollar */
882
+ Sbd = "SBD",
883
+ /** Seychelles rupee */
884
+ Scr = "SCR",
885
+ /** Sudanese pound */
886
+ Sdg = "SDG",
887
+ /** Swedish krona/kronor */
888
+ Sek = "SEK",
889
+ /** Singapore dollar */
890
+ Sgd = "SGD",
891
+ /** Saint Helena pound */
892
+ Shp = "SHP",
893
+ /** Sierra Leonean leone */
894
+ Sll = "SLL",
895
+ /** Somali shilling */
896
+ Sos = "SOS",
897
+ /** Surinamese dollar */
898
+ Srd = "SRD",
899
+ /** South Sudanese pound */
900
+ Ssp = "SSP",
901
+ /** São Tomé and Príncipe dobra */
902
+ Stn = "STN",
903
+ /** Salvadoran colón */
904
+ Svc = "SVC",
905
+ /** Syrian pound */
906
+ Syp = "SYP",
907
+ /** Swazi lilangeni */
908
+ Szl = "SZL",
909
+ /** Thai baht */
910
+ Thb = "THB",
911
+ /** Tajikistani somoni */
912
+ Tjs = "TJS",
913
+ /** Turkmenistan manat */
914
+ Tmt = "TMT",
915
+ /** Tunisian dinar */
916
+ Tnd = "TND",
917
+ /** Tongan paʻanga */
918
+ Top = "TOP",
919
+ /** Turkish lira */
920
+ Try = "TRY",
921
+ /** Trinidad and Tobago dollar */
922
+ Ttd = "TTD",
923
+ /** New Taiwan dollar */
924
+ Twd = "TWD",
925
+ /** Tanzanian shilling */
926
+ Tzs = "TZS",
927
+ /** Ukrainian hryvnia */
928
+ Uah = "UAH",
929
+ /** Ugandan shilling */
930
+ Ugx = "UGX",
931
+ /** United States dollar */
932
+ Usd = "USD",
933
+ /** Uruguayan peso */
934
+ Uyu = "UYU",
935
+ /** Uzbekistan som */
936
+ Uzs = "UZS",
937
+ /** Venezuelan bolívar soberano */
938
+ Ves = "VES",
939
+ /** Vietnamese đồng */
940
+ Vnd = "VND",
941
+ /** Vanuatu vatu */
942
+ Vuv = "VUV",
943
+ /** Samoan tala */
944
+ Wst = "WST",
945
+ /** CFA franc BEAC */
946
+ Xaf = "XAF",
947
+ /** East Caribbean dollar */
948
+ Xcd = "XCD",
949
+ /** CFA franc BCEAO */
950
+ Xof = "XOF",
951
+ /** CFP franc (franc Pacifique) */
952
+ Xpf = "XPF",
953
+ /** Yemeni rial */
954
+ Yer = "YER",
955
+ /** South African rand */
956
+ Zar = "ZAR",
957
+ /** Zambian kwacha */
958
+ Zmw = "ZMW",
959
+ /** Zimbabwean dollar */
960
+ Zwl = "ZWL"
961
+ }
962
+ export declare enum LanguageCode {
963
+ /** Afrikaans */
964
+ Af = "af",
965
+ /** Akan */
966
+ Ak = "ak",
967
+ /** Amharic */
968
+ Am = "am",
969
+ /** Arabic */
970
+ Ar = "ar",
971
+ /** Assamese */
972
+ As = "as",
973
+ /** Azerbaijani */
974
+ Az = "az",
975
+ /** Belarusian */
976
+ Be = "be",
977
+ /** Bulgarian */
978
+ Bg = "bg",
979
+ /** Bambara */
980
+ Bm = "bm",
981
+ /** Bangla */
982
+ Bn = "bn",
983
+ /** Tibetan */
984
+ Bo = "bo",
985
+ /** Breton */
986
+ Br = "br",
987
+ /** Bosnian */
988
+ Bs = "bs",
989
+ /** Catalan */
990
+ Ca = "ca",
991
+ /** Chechen */
992
+ Ce = "ce",
993
+ /** Corsican */
994
+ Co = "co",
995
+ /** Czech */
996
+ Cs = "cs",
997
+ /** Church Slavic */
998
+ Cu = "cu",
999
+ /** Welsh */
1000
+ Cy = "cy",
1001
+ /** Danish */
1002
+ Da = "da",
1003
+ /** German */
1004
+ De = "de",
1005
+ /** Austrian German */
1006
+ DeAt = "de_AT",
1007
+ /** Swiss High German */
1008
+ DeCh = "de_CH",
1009
+ /** Dzongkha */
1010
+ Dz = "dz",
1011
+ /** Ewe */
1012
+ Ee = "ee",
1013
+ /** Greek */
1014
+ El = "el",
1015
+ /** English */
1016
+ En = "en",
1017
+ /** Australian English */
1018
+ EnAu = "en_AU",
1019
+ /** Canadian English */
1020
+ EnCa = "en_CA",
1021
+ /** British English */
1022
+ EnGb = "en_GB",
1023
+ /** American English */
1024
+ EnUs = "en_US",
1025
+ /** Esperanto */
1026
+ Eo = "eo",
1027
+ /** Spanish */
1028
+ Es = "es",
1029
+ /** European Spanish */
1030
+ EsEs = "es_ES",
1031
+ /** Mexican Spanish */
1032
+ EsMx = "es_MX",
1033
+ /** Estonian */
1034
+ Et = "et",
1035
+ /** Basque */
1036
+ Eu = "eu",
1037
+ /** Persian */
1038
+ Fa = "fa",
1039
+ /** Dari */
1040
+ FaAf = "fa_AF",
1041
+ /** Fulah */
1042
+ Ff = "ff",
1043
+ /** Finnish */
1044
+ Fi = "fi",
1045
+ /** Faroese */
1046
+ Fo = "fo",
1047
+ /** French */
1048
+ Fr = "fr",
1049
+ /** Canadian French */
1050
+ FrCa = "fr_CA",
1051
+ /** Swiss French */
1052
+ FrCh = "fr_CH",
1053
+ /** Western Frisian */
1054
+ Fy = "fy",
1055
+ /** Irish */
1056
+ Ga = "ga",
1057
+ /** Scottish Gaelic */
1058
+ Gd = "gd",
1059
+ /** Galician */
1060
+ Gl = "gl",
1061
+ /** Gujarati */
1062
+ Gu = "gu",
1063
+ /** Manx */
1064
+ Gv = "gv",
1065
+ /** Hausa */
1066
+ Ha = "ha",
1067
+ /** Hebrew */
1068
+ He = "he",
1069
+ /** Hindi */
1070
+ Hi = "hi",
1071
+ /** Croatian */
1072
+ Hr = "hr",
1073
+ /** Haitian Creole */
1074
+ Ht = "ht",
1075
+ /** Hungarian */
1076
+ Hu = "hu",
1077
+ /** Armenian */
1078
+ Hy = "hy",
1079
+ /** Interlingua */
1080
+ Ia = "ia",
1081
+ /** Indonesian */
1082
+ Id = "id",
1083
+ /** Igbo */
1084
+ Ig = "ig",
1085
+ /** Sichuan Yi */
1086
+ Ii = "ii",
1087
+ /** Icelandic */
1088
+ Is = "is",
1089
+ /** Italian */
1090
+ It = "it",
1091
+ /** Japanese */
1092
+ Ja = "ja",
1093
+ /** Javanese */
1094
+ Jv = "jv",
1095
+ /** Georgian */
1096
+ Ka = "ka",
1097
+ /** Kikuyu */
1098
+ Ki = "ki",
1099
+ /** Kazakh */
1100
+ Kk = "kk",
1101
+ /** Kalaallisut */
1102
+ Kl = "kl",
1103
+ /** Khmer */
1104
+ Km = "km",
1105
+ /** Kannada */
1106
+ Kn = "kn",
1107
+ /** Korean */
1108
+ Ko = "ko",
1109
+ /** Kashmiri */
1110
+ Ks = "ks",
1111
+ /** Kurdish */
1112
+ Ku = "ku",
1113
+ /** Cornish */
1114
+ Kw = "kw",
1115
+ /** Kyrgyz */
1116
+ Ky = "ky",
1117
+ /** Latin */
1118
+ La = "la",
1119
+ /** Luxembourgish */
1120
+ Lb = "lb",
1121
+ /** Ganda */
1122
+ Lg = "lg",
1123
+ /** Lingala */
1124
+ Ln = "ln",
1125
+ /** Lao */
1126
+ Lo = "lo",
1127
+ /** Lithuanian */
1128
+ Lt = "lt",
1129
+ /** Luba-Katanga */
1130
+ Lu = "lu",
1131
+ /** Latvian */
1132
+ Lv = "lv",
1133
+ /** Malagasy */
1134
+ Mg = "mg",
1135
+ /** Maori */
1136
+ Mi = "mi",
1137
+ /** Macedonian */
1138
+ Mk = "mk",
1139
+ /** Malayalam */
1140
+ Ml = "ml",
1141
+ /** Mongolian */
1142
+ Mn = "mn",
1143
+ /** Marathi */
1144
+ Mr = "mr",
1145
+ /** Malay */
1146
+ Ms = "ms",
1147
+ /** Maltese */
1148
+ Mt = "mt",
1149
+ /** Burmese */
1150
+ My = "my",
1151
+ /** Norwegian Bokmål */
1152
+ Nb = "nb",
1153
+ /** North Ndebele */
1154
+ Nd = "nd",
1155
+ /** Nepali */
1156
+ Ne = "ne",
1157
+ /** Dutch */
1158
+ Nl = "nl",
1159
+ /** Flemish */
1160
+ NlBe = "nl_BE",
1161
+ /** Norwegian Nynorsk */
1162
+ Nn = "nn",
1163
+ /** Nyanja */
1164
+ Ny = "ny",
1165
+ /** Oromo */
1166
+ Om = "om",
1167
+ /** Odia */
1168
+ Or = "or",
1169
+ /** Ossetic */
1170
+ Os = "os",
1171
+ /** Punjabi */
1172
+ Pa = "pa",
1173
+ /** Polish */
1174
+ Pl = "pl",
1175
+ /** Pashto */
1176
+ Ps = "ps",
1177
+ /** Portuguese */
1178
+ Pt = "pt",
1179
+ /** Brazilian Portuguese */
1180
+ PtBr = "pt_BR",
1181
+ /** European Portuguese */
1182
+ PtPt = "pt_PT",
1183
+ /** Quechua */
1184
+ Qu = "qu",
1185
+ /** Romansh */
1186
+ Rm = "rm",
1187
+ /** Rundi */
1188
+ Rn = "rn",
1189
+ /** Romanian */
1190
+ Ro = "ro",
1191
+ /** Moldavian */
1192
+ RoMd = "ro_MD",
1193
+ /** Russian */
1194
+ Ru = "ru",
1195
+ /** Kinyarwanda */
1196
+ Rw = "rw",
1197
+ /** Sanskrit */
1198
+ Sa = "sa",
1199
+ /** Sindhi */
1200
+ Sd = "sd",
1201
+ /** Northern Sami */
1202
+ Se = "se",
1203
+ /** Sango */
1204
+ Sg = "sg",
1205
+ /** Sinhala */
1206
+ Si = "si",
1207
+ /** Slovak */
1208
+ Sk = "sk",
1209
+ /** Slovenian */
1210
+ Sl = "sl",
1211
+ /** Samoan */
1212
+ Sm = "sm",
1213
+ /** Shona */
1214
+ Sn = "sn",
1215
+ /** Somali */
1216
+ So = "so",
1217
+ /** Albanian */
1218
+ Sq = "sq",
1219
+ /** Serbian */
1220
+ Sr = "sr",
1221
+ /** Southern Sotho */
1222
+ St = "st",
1223
+ /** Sundanese */
1224
+ Su = "su",
1225
+ /** Swedish */
1226
+ Sv = "sv",
1227
+ /** Swahili */
1228
+ Sw = "sw",
1229
+ /** Congo Swahili */
1230
+ SwCd = "sw_CD",
1231
+ /** Tamil */
1232
+ Ta = "ta",
1233
+ /** Telugu */
1234
+ Te = "te",
1235
+ /** Tajik */
1236
+ Tg = "tg",
1237
+ /** Thai */
1238
+ Th = "th",
1239
+ /** Tigrinya */
1240
+ Ti = "ti",
1241
+ /** Turkmen */
1242
+ Tk = "tk",
1243
+ /** Tongan */
1244
+ To = "to",
1245
+ /** Turkish */
1246
+ Tr = "tr",
1247
+ /** Tatar */
1248
+ Tt = "tt",
1249
+ /** Uyghur */
1250
+ Ug = "ug",
1251
+ /** Ukrainian */
1252
+ Uk = "uk",
1253
+ /** Urdu */
1254
+ Ur = "ur",
1255
+ /** Uzbek */
1256
+ Uz = "uz",
1257
+ /** Vietnamese */
1258
+ Vi = "vi",
1259
+ /** Volapük */
1260
+ Vo = "vo",
1261
+ /** Wolof */
1262
+ Wo = "wo",
1263
+ /** Xhosa */
1264
+ Xh = "xh",
1265
+ /** Yiddish */
1266
+ Yi = "yi",
1267
+ /** Yoruba */
1268
+ Yo = "yo",
1269
+ /** Chinese */
1270
+ Zh = "zh",
1271
+ /** Simplified Chinese */
1272
+ ZhHans = "zh_Hans",
1273
+ /** Traditional Chinese */
1274
+ ZhHant = "zh_Hant",
1275
+ /** Zulu */
1276
+ Zu = "zu"
1277
+ }
1278
+ export declare enum AssetType {
1279
+ Binary = "BINARY",
1280
+ Image = "IMAGE",
1281
+ Video = "VIDEO"
1282
+ }
1283
+ export declare enum LogicalOperator {
1284
+ And = "AND",
1285
+ Or = "OR"
1286
+ }
1287
+ export declare enum ErrorCode {
1288
+ AlreadyLoggedInError = "ALREADY_LOGGED_IN_ERROR",
1289
+ CouponCodeExpiredError = "COUPON_CODE_EXPIRED_ERROR",
1290
+ CouponCodeInvalidError = "COUPON_CODE_INVALID_ERROR",
1291
+ CouponCodeLimitError = "COUPON_CODE_LIMIT_ERROR",
1292
+ EmailAddressConflictError = "EMAIL_ADDRESS_CONFLICT_ERROR",
1293
+ GuestCheckoutError = "GUEST_CHECKOUT_ERROR",
1294
+ IdentifierChangeTokenExpiredError = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR",
1295
+ IdentifierChangeTokenInvalidError = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR",
1296
+ IneligiblePaymentMethodError = "INELIGIBLE_PAYMENT_METHOD_ERROR",
1297
+ IneligibleShippingMethodError = "INELIGIBLE_SHIPPING_METHOD_ERROR",
1298
+ InsufficientStockError = "INSUFFICIENT_STOCK_ERROR",
1299
+ InvalidCredentialsError = "INVALID_CREDENTIALS_ERROR",
1300
+ MissingPasswordError = "MISSING_PASSWORD_ERROR",
1301
+ NativeAuthStrategyError = "NATIVE_AUTH_STRATEGY_ERROR",
1302
+ NegativeQuantityError = "NEGATIVE_QUANTITY_ERROR",
1303
+ NotVerifiedError = "NOT_VERIFIED_ERROR",
1304
+ NoActiveOrderError = "NO_ACTIVE_ORDER_ERROR",
1305
+ OrderLimitError = "ORDER_LIMIT_ERROR",
1306
+ OrderModificationError = "ORDER_MODIFICATION_ERROR",
1307
+ OrderPaymentStateError = "ORDER_PAYMENT_STATE_ERROR",
1308
+ OrderStateTransitionError = "ORDER_STATE_TRANSITION_ERROR",
1309
+ PasswordAlreadySetError = "PASSWORD_ALREADY_SET_ERROR",
1310
+ PasswordResetTokenExpiredError = "PASSWORD_RESET_TOKEN_EXPIRED_ERROR",
1311
+ PasswordResetTokenInvalidError = "PASSWORD_RESET_TOKEN_INVALID_ERROR",
1312
+ PasswordValidationError = "PASSWORD_VALIDATION_ERROR",
1313
+ PaymentDeclinedError = "PAYMENT_DECLINED_ERROR",
1314
+ PaymentFailedError = "PAYMENT_FAILED_ERROR",
1315
+ UnknownError = "UNKNOWN_ERROR",
1316
+ VerificationTokenExpiredError = "VERIFICATION_TOKEN_EXPIRED_ERROR",
1317
+ VerificationTokenInvalidError = "VERIFICATION_TOKEN_INVALID_ERROR"
1318
+ }
1319
+ export interface AsChildProps {
1320
+ asChild?: boolean;
1321
+ className?: string;
1322
+ style?: CSSProperties;
1323
+ children?: ReactNode;
1324
+ }
1325
+ export {};