@faststore/api 2.0.158-alpha.0 → 2.0.162-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__generated__/schema.d.ts +70 -4
- package/dist/api.cjs.development.js +103 -22
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +103 -22
- package/dist/api.esm.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/platforms/vtex/clients/commerce/index.d.ts +6 -0
- package/dist/platforms/vtex/clients/commerce/types/OrderForm.d.ts +8 -1
- package/dist/platforms/vtex/clients/commerce/types/Region.d.ts +2 -2
- package/dist/platforms/vtex/clients/commerce/types/ShippingData.d.ts +5 -0
- package/dist/platforms/vtex/clients/index.d.ts +6 -0
- package/dist/platforms/vtex/index.d.ts +4 -0
- package/dist/platforms/vtex/resolvers/query.d.ts +5 -1
- package/package.json +2 -2
- package/src/__generated__/schema.ts +94 -21
- package/src/platforms/vtex/clients/commerce/index.ts +105 -40
- package/src/platforms/vtex/clients/commerce/types/OrderForm.ts +9 -1
- package/src/platforms/vtex/clients/commerce/types/Region.ts +2 -2
- package/src/platforms/vtex/clients/commerce/types/ShippingData.ts +6 -0
- package/src/platforms/vtex/resolvers/query.ts +22 -3
- package/src/platforms/vtex/resolvers/validateCart.ts +54 -27
- package/src/typeDefs/query.graphql +66 -0
- package/src/typeDefs/session.graphql +40 -6
- package/src/typeDefs/shipping.graphql +27 -0
|
@@ -105,6 +105,19 @@ export declare type Address = {
|
|
|
105
105
|
/** Address street */
|
|
106
106
|
street?: Maybe<Scalars['String']>;
|
|
107
107
|
};
|
|
108
|
+
export declare type AvailableDeliveryWindows = {
|
|
109
|
+
__typename?: 'AvailableDeliveryWindows';
|
|
110
|
+
/** Available delivery window end date in UTC */
|
|
111
|
+
endDateUtc?: Maybe<Scalars['String']>;
|
|
112
|
+
/** Available delivery window list price */
|
|
113
|
+
listPrice?: Maybe<Scalars['Int']>;
|
|
114
|
+
/** Available delivery window price */
|
|
115
|
+
price?: Maybe<Scalars['Int']>;
|
|
116
|
+
/** Available delivery window start date in UTC */
|
|
117
|
+
startDateUtc?: Maybe<Scalars['String']>;
|
|
118
|
+
/** Available delivery window tax */
|
|
119
|
+
tax?: Maybe<Scalars['Int']>;
|
|
120
|
+
};
|
|
108
121
|
export declare type DeliveryIds = {
|
|
109
122
|
__typename?: 'DeliveryIds';
|
|
110
123
|
/** DeliveryIds courier id */
|
|
@@ -118,6 +131,12 @@ export declare type DeliveryIds = {
|
|
|
118
131
|
/** DeliveryIds warehouse id */
|
|
119
132
|
warehouseId?: Maybe<Scalars['String']>;
|
|
120
133
|
};
|
|
134
|
+
export declare type IGeoCoordinates = {
|
|
135
|
+
/** The latitude of the geographic coordinates. */
|
|
136
|
+
latitude: Scalars['Float'];
|
|
137
|
+
/** The longitude of the geographic coordinates. */
|
|
138
|
+
longitude: Scalars['Float'];
|
|
139
|
+
};
|
|
121
140
|
/** Person data input to the newsletter. */
|
|
122
141
|
export declare type IPersonNewsletter = {
|
|
123
142
|
/** Person's email. */
|
|
@@ -146,10 +165,19 @@ export declare type IStoreCurrency = {
|
|
|
146
165
|
symbol: Scalars['String'];
|
|
147
166
|
};
|
|
148
167
|
export declare type IStoreDeliveryMode = {
|
|
149
|
-
/** The
|
|
168
|
+
/** The delivery channel information of the session. */
|
|
150
169
|
deliveryChannel: Scalars['String'];
|
|
151
|
-
/** The
|
|
170
|
+
/** The delivery method information of the session. */
|
|
152
171
|
deliveryMethod: Scalars['String'];
|
|
172
|
+
/** The delivery window information of the session. */
|
|
173
|
+
deliveryWindow?: Maybe<IStoreDeliveryWindow>;
|
|
174
|
+
};
|
|
175
|
+
/** Delivery window information. */
|
|
176
|
+
export declare type IStoreDeliveryWindow = {
|
|
177
|
+
/** The delivery window end date information. */
|
|
178
|
+
endDate: Scalars['String'];
|
|
179
|
+
/** The delivery window start date information. */
|
|
180
|
+
startDate: Scalars['String'];
|
|
153
181
|
};
|
|
154
182
|
export declare type IStoreGeoCoordinates = {
|
|
155
183
|
/** The latitude of the geographic coordinates. */
|
|
@@ -391,6 +419,8 @@ export declare type Query = {
|
|
|
391
419
|
product: StoreProduct;
|
|
392
420
|
/** Returns the result of a product, facet, or suggestion search. */
|
|
393
421
|
search: StoreSearchResult;
|
|
422
|
+
/** Returns a list of sellers available for a specific localization. */
|
|
423
|
+
sellers?: Maybe<SellersData>;
|
|
394
424
|
/** Returns information about shipping simulation. */
|
|
395
425
|
shipping?: Maybe<ShippingData>;
|
|
396
426
|
};
|
|
@@ -415,6 +445,12 @@ export declare type QuerySearchArgs = {
|
|
|
415
445
|
sort?: Maybe<StoreSort>;
|
|
416
446
|
term?: Maybe<Scalars['String']>;
|
|
417
447
|
};
|
|
448
|
+
export declare type QuerySellersArgs = {
|
|
449
|
+
country: Scalars['String'];
|
|
450
|
+
geoCoordinates?: Maybe<IGeoCoordinates>;
|
|
451
|
+
postalCode?: Maybe<Scalars['String']>;
|
|
452
|
+
salesChannel?: Maybe<Scalars['String']>;
|
|
453
|
+
};
|
|
418
454
|
export declare type QueryShippingArgs = {
|
|
419
455
|
country: Scalars['String'];
|
|
420
456
|
items: Array<IShippingItem>;
|
|
@@ -428,6 +464,24 @@ export declare type SearchMetadata = {
|
|
|
428
464
|
/** Logical operator used to run the search. */
|
|
429
465
|
logicalOperator: Scalars['String'];
|
|
430
466
|
};
|
|
467
|
+
/** Information of sellers. */
|
|
468
|
+
export declare type SellerInfo = {
|
|
469
|
+
__typename?: 'SellerInfo';
|
|
470
|
+
/** Identification of the seller */
|
|
471
|
+
id?: Maybe<Scalars['String']>;
|
|
472
|
+
/** Logo of the seller */
|
|
473
|
+
logo?: Maybe<Scalars['String']>;
|
|
474
|
+
/** Name of the seller */
|
|
475
|
+
name?: Maybe<Scalars['String']>;
|
|
476
|
+
};
|
|
477
|
+
/** Regionalization with sellers information. */
|
|
478
|
+
export declare type SellersData = {
|
|
479
|
+
__typename?: 'SellersData';
|
|
480
|
+
/** Identification of region. */
|
|
481
|
+
id?: Maybe<Scalars['String']>;
|
|
482
|
+
/** List of sellers. */
|
|
483
|
+
sellers?: Maybe<Array<Maybe<SellerInfo>>>;
|
|
484
|
+
};
|
|
431
485
|
/** Shipping Simulation information. */
|
|
432
486
|
export declare type ShippingData = {
|
|
433
487
|
__typename?: 'ShippingData';
|
|
@@ -442,6 +496,8 @@ export declare type ShippingData = {
|
|
|
442
496
|
};
|
|
443
497
|
export declare type ShippingSla = {
|
|
444
498
|
__typename?: 'ShippingSLA';
|
|
499
|
+
/** ShippingSLA available delivery windows. */
|
|
500
|
+
availableDeliveryWindows?: Maybe<Array<Maybe<AvailableDeliveryWindows>>>;
|
|
445
501
|
/** ShippingSLA carrier. */
|
|
446
502
|
carrier?: Maybe<Scalars['String']>;
|
|
447
503
|
/** ShippingSLA delivery channel. */
|
|
@@ -632,10 +688,20 @@ export declare type StoreCurrency = {
|
|
|
632
688
|
/** Delivery mode information. */
|
|
633
689
|
export declare type StoreDeliveryMode = {
|
|
634
690
|
__typename?: 'StoreDeliveryMode';
|
|
635
|
-
/** The
|
|
691
|
+
/** The delivery channel information of the session. */
|
|
636
692
|
deliveryChannel: Scalars['String'];
|
|
637
|
-
/** The
|
|
693
|
+
/** The delivery method information of the session. */
|
|
638
694
|
deliveryMethod: Scalars['String'];
|
|
695
|
+
/** The delivery window information of the session. */
|
|
696
|
+
deliveryWindow?: Maybe<StoreDeliveryWindow>;
|
|
697
|
+
};
|
|
698
|
+
/** Delivery window information. */
|
|
699
|
+
export declare type StoreDeliveryWindow = {
|
|
700
|
+
__typename?: 'StoreDeliveryWindow';
|
|
701
|
+
/** The delivery window end date information. */
|
|
702
|
+
endDate: Scalars['String'];
|
|
703
|
+
/** The delivery window start date information. */
|
|
704
|
+
startDate: Scalars['String'];
|
|
639
705
|
};
|
|
640
706
|
export declare type StoreFacet = StoreFacetBoolean | StoreFacetRange;
|
|
641
707
|
/** Search facet boolean information. */
|