@faststore/api 2.0.156-alpha.0 → 2.0.158-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.
@@ -145,6 +145,12 @@ export declare type IStoreCurrency = {
145
145
  /** Currency symbol (e.g: $). */
146
146
  symbol: Scalars['String'];
147
147
  };
148
+ export declare type IStoreDeliveryMode = {
149
+ /** The latitude of the geographic coordinates. */
150
+ deliveryChannel: Scalars['String'];
151
+ /** The longitude of the geographic coordinates. */
152
+ deliveryMethod: Scalars['String'];
153
+ };
148
154
  export declare type IStoreGeoCoordinates = {
149
155
  /** The latitude of the geographic coordinates. */
150
156
  latitude: Scalars['Float'];
@@ -226,7 +232,7 @@ export declare type IStoreSelectedFacet = {
226
232
  };
227
233
  /** Session input. */
228
234
  export declare type IStoreSession = {
229
- /** Session input address Type. */
235
+ /** Session input address type. */
230
236
  addressType?: Maybe<Scalars['String']>;
231
237
  /** Session input channel. */
232
238
  channel?: Maybe<Scalars['String']>;
@@ -234,6 +240,8 @@ export declare type IStoreSession = {
234
240
  country: Scalars['String'];
235
241
  /** Session input currency. */
236
242
  currency: IStoreCurrency;
243
+ /** Session input delivery mode. */
244
+ deliveryMode?: Maybe<IStoreDeliveryMode>;
237
245
  /** Session input geoCoordinates. */
238
246
  geoCoordinates?: Maybe<IStoreGeoCoordinates>;
239
247
  /** Session input locale. */
@@ -621,6 +629,14 @@ export declare type StoreCurrency = {
621
629
  /** Currency symbol (e.g: $). */
622
630
  symbol: Scalars['String'];
623
631
  };
632
+ /** Delivery mode information. */
633
+ export declare type StoreDeliveryMode = {
634
+ __typename?: 'StoreDeliveryMode';
635
+ /** The latitude of the geographic coordinates. */
636
+ deliveryChannel: Scalars['String'];
637
+ /** The longitude of the geographic coordinates. */
638
+ deliveryMethod: Scalars['String'];
639
+ };
624
640
  export declare type StoreFacet = StoreFacetBoolean | StoreFacetRange;
625
641
  /** Search facet boolean information. */
626
642
  export declare type StoreFacetBoolean = {
@@ -886,7 +902,7 @@ export declare type StoreSeo = {
886
902
  /** Session information. */
887
903
  export declare type StoreSession = {
888
904
  __typename?: 'StoreSession';
889
- /** Session address Type. */
905
+ /** Session address type. */
890
906
  addressType?: Maybe<Scalars['String']>;
891
907
  /** Session channel. */
892
908
  channel?: Maybe<Scalars['String']>;
@@ -894,6 +910,8 @@ export declare type StoreSession = {
894
910
  country: Scalars['String'];
895
911
  /** Session currency. */
896
912
  currency: StoreCurrency;
913
+ /** Session delivery mode. */
914
+ deliveryMode?: Maybe<StoreDeliveryMode>;
897
915
  /** Session input geoCoordinates. */
898
916
  geoCoordinates?: Maybe<StoreGeoCoordinates>;
899
917
  /** Session locale. */
@@ -13,7 +13,7 @@ var language = require('graphql/language');
13
13
  var utils = require('@graphql-tools/utils');
14
14
 
15
15
  var name = "@faststore/api";
16
- var version = "2.0.154-alpha.0";
16
+ var version = "2.0.157-alpha.0";
17
17
  var license = "MIT";
18
18
  var main = "dist/index.js";
19
19
  var typings = "dist/index.d.ts";
@@ -113,7 +113,8 @@ const BASE_INIT = {
113
113
  };
114
114
  const VtexCommerce = ({
115
115
  account,
116
- environment
116
+ environment,
117
+ incrementAddress
117
118
  }, ctx) => {
118
119
  const base = `https://${account}.${environment}.com.br`;
119
120
  return {
@@ -154,25 +155,42 @@ const VtexCommerce = ({
154
155
  body: JSON.stringify(args)
155
156
  });
156
157
  },
158
+ incrementAddress: (country, postalCode) => {
159
+ return incrementAddress ? fetchAPI(`${base}/api/checkout/pub/postal-code/${country}/${postalCode}`, {
160
+ method: 'GET',
161
+ headers: {
162
+ 'content-type': 'application/json'
163
+ }
164
+ }) : Promise.resolve(undefined);
165
+ },
157
166
  shippingData: ({
158
167
  id,
168
+ index,
169
+ deliveryMode,
159
170
  body
160
- }) => {
171
+ }, incrementedAddress) => {
161
172
  var _body$selectedAddress;
162
173
  const mappedBody = {
174
+ "logisticsInfo": Array.from({
175
+ length: index
176
+ }, (_, itemIndex) => ({
177
+ itemIndex,
178
+ selectedDeliveryChannel: deliveryMode == null ? void 0 : deliveryMode.deliveryChannel,
179
+ selectedSla: deliveryMode == null ? void 0 : deliveryMode.deliveryMethod
180
+ })),
163
181
  "selectedAddresses": body == null ? void 0 : (_body$selectedAddress = body.selectedAddresses) == null ? void 0 : _body$selectedAddress.map(address => ({
164
182
  "addressType": address.addressType || null,
165
183
  "receiverName": address.receiverName || null,
166
- "postalCode": address.postalCode || null,
167
- "city": address.city || null,
168
- "state": address.state || null,
169
- "country": address.country || null,
170
- "street": address.street || null,
171
- "number": address.number || null,
172
- "neighborhood": address.neighborhood || null,
173
- "complement": address.complement || null,
174
- "reference": address.reference || null,
175
- "geoCoordinates": address.geoCoordinates || []
184
+ "postalCode": address.postalCode || (incrementedAddress == null ? void 0 : incrementedAddress.postalCode) || null,
185
+ "city": (incrementedAddress == null ? void 0 : incrementedAddress.city) || null,
186
+ "state": (incrementedAddress == null ? void 0 : incrementedAddress.state) || null,
187
+ "country": address.country || (incrementedAddress == null ? void 0 : incrementedAddress.country) || null,
188
+ "street": (incrementedAddress == null ? void 0 : incrementedAddress.street) || null,
189
+ "number": (incrementedAddress == null ? void 0 : incrementedAddress.number) || null,
190
+ "neighborhood": (incrementedAddress == null ? void 0 : incrementedAddress.neighborhood) || null,
191
+ "complement": (incrementedAddress == null ? void 0 : incrementedAddress.complement) || null,
192
+ "reference": (incrementedAddress == null ? void 0 : incrementedAddress.reference) || null,
193
+ "geoCoordinates": address.geoCoordinates || (incrementedAddress == null ? void 0 : incrementedAddress.geoCoordinates) || []
176
194
  }))
177
195
  };
178
196
  return fetchAPI(`${base}/api/checkout/pub/orderForm/${id}/attachments/shippingData`, {
@@ -1155,7 +1173,7 @@ const getOrderForm = async (id, session, {
1155
1173
  commerce
1156
1174
  }
1157
1175
  }) => {
1158
- var _orderForm$shippingDa, _orderForm$shippingDa2;
1176
+ var _orderForm$shippingDa, _orderForm$shippingDa2, _session$geoCoordinat, _orderForm$shippingDa3, _orderForm$shippingDa4, _orderForm$shippingDa5, _orderForm$shippingDa6;
1159
1177
  const orderForm = await commerce.checkout.orderForm({
1160
1178
  id
1161
1179
  });
@@ -1167,14 +1185,20 @@ const getOrderForm = async (id, session, {
1167
1185
  if (!session) {
1168
1186
  return orderForm;
1169
1187
  }
1170
- const shouldUpdateShippingData = typeof session.postalCode === 'string' && ((_orderForm$shippingDa = orderForm.shippingData) == null ? void 0 : (_orderForm$shippingDa2 = _orderForm$shippingDa.address) == null ? void 0 : _orderForm$shippingDa2.postalCode) != session.postalCode;
1188
+ const shouldUpdateShippingData = typeof session.postalCode === 'string' && ((_orderForm$shippingDa = orderForm.shippingData) == null ? void 0 : (_orderForm$shippingDa2 = _orderForm$shippingDa.address) == null ? void 0 : _orderForm$shippingDa2.postalCode) !== session.postalCode || typeof session.geoCoordinates === 'object' && typeof ((_session$geoCoordinat = session.geoCoordinates) == null ? void 0 : _session$geoCoordinat.latitude) === 'number' && typeof session.geoCoordinates.longitude === 'number' && (((_orderForm$shippingDa3 = orderForm.shippingData) == null ? void 0 : (_orderForm$shippingDa4 = _orderForm$shippingDa3.address) == null ? void 0 : _orderForm$shippingDa4.geoCoordinates[0]) !== session.geoCoordinates.longitude || ((_orderForm$shippingDa5 = orderForm.shippingData) == null ? void 0 : (_orderForm$shippingDa6 = _orderForm$shippingDa5.address) == null ? void 0 : _orderForm$shippingDa6.geoCoordinates[1]) !== session.geoCoordinates.latitude);
1171
1189
  if (shouldUpdateShippingData) {
1190
+ let incrementedAddress;
1191
+ if (session.postalCode) {
1192
+ incrementedAddress = await commerce.checkout.incrementAddress(session.country, session.postalCode);
1193
+ }
1172
1194
  return commerce.checkout.shippingData({
1173
1195
  id: orderForm.orderFormId,
1196
+ index: orderForm.items.length,
1197
+ deliveryMode: session.deliveryMode,
1174
1198
  body: {
1175
1199
  selectedAddresses: [session]
1176
1200
  }
1177
- });
1201
+ }, incrementedAddress);
1178
1202
  }
1179
1203
  return orderForm;
1180
1204
  };
@@ -2342,8 +2366,8 @@ var doc$m = {"kind":"Document","definitions":[{"kind":"ObjectTypeDefinition","de
2342
2366
  var doc$n = {"kind":"Document","definitions":[{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Search Engine Optimization (SEO) tags data.","block":true},"name":{"kind":"Name","value":"StoreSeo"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Title tag.","block":true},"name":{"kind":"Name","value":"title"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Title template tag.","block":true},"name":{"kind":"Name","value":"titleTemplate"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Description tag.","block":true},"name":{"kind":"Name","value":"description"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Canonical tag.","block":true},"name":{"kind":"Name","value":"canonical"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]}]}],"loc":{"start":0,"end":275}};
2343
2367
  doc$n.loc.source = {"body":"\"\"\"\nSearch Engine Optimization (SEO) tags data.\n\"\"\"\ntype StoreSeo {\n \"\"\"\n Title tag.\n \"\"\"\n title: String!\n \"\"\"\n Title template tag.\n \"\"\"\n titleTemplate: String!\n \"\"\"\n Description tag.\n \"\"\"\n description: String!\n \"\"\"\n Canonical tag.\n \"\"\"\n canonical: String!\n}\n","name":"GraphQL request","locationOffset":{"line":1,"column":1}};
2344
2368
 
2345
- var doc$o = {"kind":"Document","definitions":[{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Currency information.","block":true},"name":{"kind":"Name","value":"StoreCurrency"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Currency code (e.g: USD).","block":true},"name":{"kind":"Name","value":"code"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Currency symbol (e.g: $).","block":true},"name":{"kind":"Name","value":"symbol"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]}]},{"kind":"InputObjectTypeDefinition","name":{"kind":"Name","value":"IStoreCurrency"},"directives":[],"fields":[{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Currency code (e.g: USD).","block":true},"name":{"kind":"Name","value":"code"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Currency symbol (e.g: $).","block":true},"name":{"kind":"Name","value":"symbol"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]}]},{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Geographic coordinates information.","block":true},"name":{"kind":"Name","value":"StoreGeoCoordinates"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"The latitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"latitude"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"The longitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"longitude"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]}]},{"kind":"InputObjectTypeDefinition","name":{"kind":"Name","value":"IStoreGeoCoordinates"},"directives":[],"fields":[{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"The latitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"latitude"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"The longitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"longitude"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]}]},{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Session information.","block":true},"name":{"kind":"Name","value":"StoreSession"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session locale.","block":true},"name":{"kind":"Name","value":"locale"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session currency.","block":true},"name":{"kind":"Name","value":"currency"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"StoreCurrency"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session country.","block":true},"name":{"kind":"Name","value":"country"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session channel.","block":true},"name":{"kind":"Name","value":"channel"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session address Type.","block":true},"name":{"kind":"Name","value":"addressType"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session postal code.","block":true},"name":{"kind":"Name","value":"postalCode"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session input geoCoordinates.","block":true},"name":{"kind":"Name","value":"geoCoordinates"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"StoreGeoCoordinates"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session input person.","block":true},"name":{"kind":"Name","value":"person"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"StorePerson"}},"directives":[]}]},{"kind":"InputObjectTypeDefinition","description":{"kind":"StringValue","value":"Session input.","block":true},"name":{"kind":"Name","value":"IStoreSession"},"directives":[],"fields":[{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input locale.","block":true},"name":{"kind":"Name","value":"locale"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input currency.","block":true},"name":{"kind":"Name","value":"currency"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"IStoreCurrency"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input country.","block":true},"name":{"kind":"Name","value":"country"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input channel.","block":true},"name":{"kind":"Name","value":"channel"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input address Type.","block":true},"name":{"kind":"Name","value":"addressType"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input postal code.","block":true},"name":{"kind":"Name","value":"postalCode"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input geoCoordinates.","block":true},"name":{"kind":"Name","value":"geoCoordinates"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"IStoreGeoCoordinates"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input person.","block":true},"name":{"kind":"Name","value":"person"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"IStorePerson"}},"directives":[]}]}],"loc":{"start":0,"end":1784}};
2346
- doc$o.loc.source = {"body":"\"\"\"\nCurrency information.\n\"\"\"\ntype StoreCurrency {\n \"\"\"\n Currency code (e.g: USD).\n \"\"\"\n code: String!\n \"\"\"\n Currency symbol (e.g: $).\n \"\"\"\n symbol: String!\n}\n\ninput IStoreCurrency {\n \"\"\"\n Currency code (e.g: USD).\n \"\"\"\n code: String!\n \"\"\"\n Currency symbol (e.g: $).\n \"\"\"\n symbol: String!\n}\n\n\"\"\"\nGeographic coordinates information.\n\"\"\"\ntype StoreGeoCoordinates {\n \"\"\"\n The latitude of the geographic coordinates.\n \"\"\"\n latitude: Float!\n \"\"\"\n The longitude of the geographic coordinates.\n \"\"\"\n longitude: Float!\n}\n\ninput IStoreGeoCoordinates {\n \"\"\"\n The latitude of the geographic coordinates.\n \"\"\"\n latitude: Float!\n \"\"\"\n The longitude of the geographic coordinates.\n \"\"\"\n longitude: Float!\n}\n\n\"\"\"\nSession information.\n\"\"\"\ntype StoreSession {\n \"\"\"\n Session locale.\n \"\"\"\n locale: String!\n \"\"\"\n Session currency.\n \"\"\"\n currency: StoreCurrency!\n \"\"\"\n Session country.\n \"\"\"\n country: String!\n \"\"\"\n Session channel.\n \"\"\"\n channel: String\n \"\"\"\n Session address Type.\n \"\"\"\n addressType: String\n \"\"\"\n Session postal code.\n \"\"\"\n postalCode: String\n \"\"\"\n Session input geoCoordinates.\n \"\"\"\n geoCoordinates: StoreGeoCoordinates\n \"\"\"\n Session input person.\n \"\"\"\n person: StorePerson\n}\n\n\"\"\"\nSession input.\n\"\"\"\ninput IStoreSession {\n \"\"\"\n Session input locale.\n \"\"\"\n locale: String!\n \"\"\"\n Session input currency.\n \"\"\"\n currency: IStoreCurrency!\n \"\"\"\n Session input country.\n \"\"\"\n country: String!\n \"\"\"\n Session input channel.\n \"\"\"\n channel: String\n \"\"\"\n Session input address Type.\n \"\"\"\n addressType: String\n \"\"\"\n Session input postal code.\n \"\"\"\n postalCode: String\n \"\"\"\n Session input geoCoordinates.\n \"\"\"\n geoCoordinates: IStoreGeoCoordinates\n \"\"\"\n Session input person.\n \"\"\"\n person: IStorePerson\n}\n","name":"GraphQL request","locationOffset":{"line":1,"column":1}};
2369
+ var doc$o = {"kind":"Document","definitions":[{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Currency information.","block":true},"name":{"kind":"Name","value":"StoreCurrency"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Currency code (e.g: USD).","block":true},"name":{"kind":"Name","value":"code"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Currency symbol (e.g: $).","block":true},"name":{"kind":"Name","value":"symbol"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]}]},{"kind":"InputObjectTypeDefinition","name":{"kind":"Name","value":"IStoreCurrency"},"directives":[],"fields":[{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Currency code (e.g: USD).","block":true},"name":{"kind":"Name","value":"code"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Currency symbol (e.g: $).","block":true},"name":{"kind":"Name","value":"symbol"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]}]},{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Geographic coordinates information.","block":true},"name":{"kind":"Name","value":"StoreGeoCoordinates"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"The latitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"latitude"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"The longitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"longitude"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]}]},{"kind":"InputObjectTypeDefinition","name":{"kind":"Name","value":"IStoreGeoCoordinates"},"directives":[],"fields":[{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"The latitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"latitude"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"The longitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"longitude"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]}]},{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Delivery mode information.","block":true},"name":{"kind":"Name","value":"StoreDeliveryMode"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"The latitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"deliveryChannel"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"The longitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"deliveryMethod"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]}]},{"kind":"InputObjectTypeDefinition","name":{"kind":"Name","value":"IStoreDeliveryMode"},"directives":[],"fields":[{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"The latitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"deliveryChannel"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"The longitude of the geographic coordinates.","block":true},"name":{"kind":"Name","value":"deliveryMethod"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]}]},{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Session information.","block":true},"name":{"kind":"Name","value":"StoreSession"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session locale.","block":true},"name":{"kind":"Name","value":"locale"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session currency.","block":true},"name":{"kind":"Name","value":"currency"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"StoreCurrency"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session country.","block":true},"name":{"kind":"Name","value":"country"},"arguments":[],"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session channel.","block":true},"name":{"kind":"Name","value":"channel"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session delivery mode.","block":true},"name":{"kind":"Name","value":"deliveryMode"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"StoreDeliveryMode"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session address type.","block":true},"name":{"kind":"Name","value":"addressType"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session postal code.","block":true},"name":{"kind":"Name","value":"postalCode"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session input geoCoordinates.","block":true},"name":{"kind":"Name","value":"geoCoordinates"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"StoreGeoCoordinates"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Session input person.","block":true},"name":{"kind":"Name","value":"person"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"StorePerson"}},"directives":[]}]},{"kind":"InputObjectTypeDefinition","description":{"kind":"StringValue","value":"Session input.","block":true},"name":{"kind":"Name","value":"IStoreSession"},"directives":[],"fields":[{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input locale.","block":true},"name":{"kind":"Name","value":"locale"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input currency.","block":true},"name":{"kind":"Name","value":"currency"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"IStoreCurrency"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input country.","block":true},"name":{"kind":"Name","value":"country"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input channel.","block":true},"name":{"kind":"Name","value":"channel"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input delivery mode.","block":true},"name":{"kind":"Name","value":"deliveryMode"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"IStoreDeliveryMode"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input address type.","block":true},"name":{"kind":"Name","value":"addressType"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input postal code.","block":true},"name":{"kind":"Name","value":"postalCode"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input geoCoordinates.","block":true},"name":{"kind":"Name","value":"geoCoordinates"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"IStoreGeoCoordinates"}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Session input person.","block":true},"name":{"kind":"Name","value":"person"},"type":{"kind":"NamedType","name":{"kind":"Name","value":"IStorePerson"}},"directives":[]}]}],"loc":{"start":0,"end":2368}};
2370
+ doc$o.loc.source = {"body":"\"\"\"\nCurrency information.\n\"\"\"\ntype StoreCurrency {\n \"\"\"\n Currency code (e.g: USD).\n \"\"\"\n code: String!\n \"\"\"\n Currency symbol (e.g: $).\n \"\"\"\n symbol: String!\n}\n\ninput IStoreCurrency {\n \"\"\"\n Currency code (e.g: USD).\n \"\"\"\n code: String!\n \"\"\"\n Currency symbol (e.g: $).\n \"\"\"\n symbol: String!\n}\n\n\"\"\"\nGeographic coordinates information.\n\"\"\"\ntype StoreGeoCoordinates {\n \"\"\"\n The latitude of the geographic coordinates.\n \"\"\"\n latitude: Float!\n \"\"\"\n The longitude of the geographic coordinates.\n \"\"\"\n longitude: Float!\n}\n\ninput IStoreGeoCoordinates {\n \"\"\"\n The latitude of the geographic coordinates.\n \"\"\"\n latitude: Float!\n \"\"\"\n The longitude of the geographic coordinates.\n \"\"\"\n longitude: Float!\n}\n\n\"\"\"\nDelivery mode information.\n\"\"\"\ntype StoreDeliveryMode {\n \"\"\"\n The latitude of the geographic coordinates.\n \"\"\"\n deliveryChannel: String!\n \"\"\"\n The longitude of the geographic coordinates.\n \"\"\"\n deliveryMethod: String!\n}\n\ninput IStoreDeliveryMode {\n \"\"\"\n The latitude of the geographic coordinates.\n \"\"\"\n deliveryChannel: String!\n \"\"\"\n The longitude of the geographic coordinates.\n \"\"\"\n deliveryMethod: String!\n}\n\n\"\"\"\nSession information.\n\"\"\"\ntype StoreSession {\n \"\"\"\n Session locale.\n \"\"\"\n locale: String!\n \"\"\"\n Session currency.\n \"\"\"\n currency: StoreCurrency!\n \"\"\"\n Session country.\n \"\"\"\n country: String!\n \"\"\"\n Session channel.\n \"\"\"\n channel: String\n \"\"\"\n\n Session delivery mode.\n \"\"\"\n deliveryMode: StoreDeliveryMode\n \"\"\"\n Session address type.\n \"\"\"\n addressType: String\n \"\"\"\n Session postal code.\n \"\"\"\n postalCode: String\n \"\"\"\n Session input geoCoordinates.\n \"\"\"\n geoCoordinates: StoreGeoCoordinates\n \"\"\"\n Session input person.\n \"\"\"\n person: StorePerson\n}\n\n\"\"\"\nSession input.\n\"\"\"\ninput IStoreSession {\n \"\"\"\n Session input locale.\n \"\"\"\n locale: String!\n \"\"\"\n Session input currency.\n \"\"\"\n currency: IStoreCurrency!\n \"\"\"\n Session input country.\n \"\"\"\n country: String!\n \"\"\"\n Session input channel.\n \"\"\"\n channel: String\n \"\"\"\n\n Session input delivery mode.\n \"\"\"\n deliveryMode: IStoreDeliveryMode\n \"\"\"\n Session input address type.\n \"\"\"\n addressType: String\n \"\"\"\n Session input postal code.\n \"\"\"\n postalCode: String\n \"\"\"\n Session input geoCoordinates.\n \"\"\"\n geoCoordinates: IStoreGeoCoordinates\n \"\"\"\n Session input person.\n \"\"\"\n person: IStorePerson\n}\n","name":"GraphQL request","locationOffset":{"line":1,"column":1}};
2347
2371
 
2348
2372
  var doc$p = {"kind":"Document","definitions":[{"kind":"InputObjectTypeDefinition","description":{"kind":"StringValue","value":"Shipping Simulation item input.","block":true},"name":{"kind":"Name","value":"IShippingItem"},"directives":[],"fields":[{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"ShippingItem ID / Sku.","block":true},"name":{"kind":"Name","value":"id"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Number of items.","block":true},"name":{"kind":"Name","value":"quantity"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},"directives":[]},{"kind":"InputValueDefinition","description":{"kind":"StringValue","value":"Seller responsible for the ShippingItem.","block":true},"name":{"kind":"Name","value":"seller"},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]}]},{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Shipping Simulation information.","block":true},"name":{"kind":"Name","value":"ShippingData"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"List of LogisticsItem.","block":true},"name":{"kind":"Name","value":"items"},"arguments":[],"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"LogisticsItem"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"List of LogisticsInfo.","block":true},"name":{"kind":"Name","value":"logisticsInfo"},"arguments":[],"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"LogisticsInfo"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"List of MessageInfo.","block":true},"name":{"kind":"Name","value":"messages"},"arguments":[],"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MessageInfo"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Address information.","block":true},"name":{"kind":"Name","value":"address"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Address"}},"directives":[]}]},{"kind":"ObjectTypeDefinition","description":{"kind":"StringValue","value":"Shipping Simulation Logistic Item.","block":true},"name":{"kind":"Name","value":"LogisticsItem"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem ID / Sku.","block":true},"name":{"kind":"Name","value":"id"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","name":{"kind":"Name","value":"requestIndex"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Number of items.","block":true},"name":{"kind":"Name","value":"quantity"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Seller responsible for the ShippingItem.","block":true},"name":{"kind":"Name","value":"seller"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"List of Sellers.","block":true},"name":{"kind":"Name","value":"sellerChain"},"arguments":[],"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem tax.","block":true},"name":{"kind":"Name","value":"tax"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Next date in which price is scheduled to change. If there is no scheduled change, this will be set a year in the future from current time.","block":true},"name":{"kind":"Name","value":"priceValidUntil"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem price.","block":true},"name":{"kind":"Name","value":"price"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem listPrice.","block":true},"name":{"kind":"Name","value":"listPrice"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem rewardValue.","block":true},"name":{"kind":"Name","value":"rewardValue"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem sellingPrice.","block":true},"name":{"kind":"Name","value":"sellingPrice"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem measurementUnit.","block":true},"name":{"kind":"Name","value":"measurementUnit"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem unitMultiplier.","block":true},"name":{"kind":"Name","value":"unitMultiplier"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsItem availability.","block":true},"name":{"kind":"Name","value":"availability"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]}]},{"kind":"ObjectTypeDefinition","name":{"kind":"Name","value":"LogisticsInfo"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsInfo itemIndex.","block":true},"name":{"kind":"Name","value":"itemIndex"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"LogisticsInfo selectedSla.","block":true},"name":{"kind":"Name","value":"selectedSla"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"List of LogisticsInfo ShippingSLA.","block":true},"name":{"kind":"Name","value":"slas"},"arguments":[],"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ShippingSLA"}}},"directives":[]}]},{"kind":"ObjectTypeDefinition","name":{"kind":"Name","value":"ShippingSLA"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA id.","block":true},"name":{"kind":"Name","value":"id"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA name.","block":true},"name":{"kind":"Name","value":"name"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA price.","block":true},"name":{"kind":"Name","value":"price"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA shipping estimate.","block":true},"name":{"kind":"Name","value":"shippingEstimate"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA localized shipping estimate.\nNote: this will always return a localized string for locale `en-US`.","block":true},"name":{"kind":"Name","value":"localizedEstimates"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA shipping estimate date.","block":true},"name":{"kind":"Name","value":"shippingEstimateDate"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"List of ShippingSLA delivery ids.","block":true},"name":{"kind":"Name","value":"deliveryIds"},"arguments":[],"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeliveryIds"}}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA delivery channel.","block":true},"name":{"kind":"Name","value":"deliveryChannel"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA friendly name.","block":true},"name":{"kind":"Name","value":"friendlyName"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA carrier.","block":true},"name":{"kind":"Name","value":"carrier"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA pickup point id.","block":true},"name":{"kind":"Name","value":"pickupPointId"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA pickup store info.","block":true},"name":{"kind":"Name","value":"pickupStoreInfo"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"PickupStoreInfo"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"ShippingSLA pickup distance.","block":true},"name":{"kind":"Name","value":"pickupDistance"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}},"directives":[]}]},{"kind":"ObjectTypeDefinition","name":{"kind":"Name","value":"DeliveryIds"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"DeliveryIds courier id","block":true},"name":{"kind":"Name","value":"courierId"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"DeliveryIds warehouse id","block":true},"name":{"kind":"Name","value":"warehouseId"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"DeliveryIds dock id","block":true},"name":{"kind":"Name","value":"dockId"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"DeliveryIds courier name","block":true},"name":{"kind":"Name","value":"courierName"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"DeliveryIds quantity","block":true},"name":{"kind":"Name","value":"quantity"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}},"directives":[]}]},{"kind":"ObjectTypeDefinition","name":{"kind":"Name","value":"PickupStoreInfo"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupStoreInfo friendly name.","block":true},"name":{"kind":"Name","value":"friendlyName"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupStoreInfo address.","block":true},"name":{"kind":"Name","value":"address"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"PickupAddress"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupStoreInfo additional information.","block":true},"name":{"kind":"Name","value":"additionalInfo"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupStoreInfo dock id.","block":true},"name":{"kind":"Name","value":"dockId"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"Information if the store has pickup enable.","block":true},"name":{"kind":"Name","value":"isPickupStore"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}},"directives":[]}]},{"kind":"ObjectTypeDefinition","name":{"kind":"Name","value":"PickupAddress"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress address type.","block":true},"name":{"kind":"Name","value":"addressType"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress receiver name.","block":true},"name":{"kind":"Name","value":"receiverName"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress address id.","block":true},"name":{"kind":"Name","value":"addressId"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress postal code.","block":true},"name":{"kind":"Name","value":"postalCode"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress city.","block":true},"name":{"kind":"Name","value":"city"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress state.","block":true},"name":{"kind":"Name","value":"state"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress country.","block":true},"name":{"kind":"Name","value":"country"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress street.","block":true},"name":{"kind":"Name","value":"street"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress number.","block":true},"name":{"kind":"Name","value":"number"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress neighborhood.","block":true},"name":{"kind":"Name","value":"neighborhood"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress complement.","block":true},"name":{"kind":"Name","value":"complement"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress reference.","block":true},"name":{"kind":"Name","value":"reference"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"PickupAddress geo coordinates.","block":true},"name":{"kind":"Name","value":"geoCoordinates"},"arguments":[],"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},"directives":[]}]},{"kind":"ObjectTypeDefinition","name":{"kind":"Name","value":"MessageInfo"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"MessageInfo code.","block":true},"name":{"kind":"Name","value":"code"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"MessageInfo text.","block":true},"name":{"kind":"Name","value":"text"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"MessageInfo status.","block":true},"name":{"kind":"Name","value":"status"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"MessageInfo fields.","block":true},"name":{"kind":"Name","value":"fields"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"MessageFields"}},"directives":[]}]},{"kind":"ObjectTypeDefinition","name":{"kind":"Name","value":"MessageFields"},"interfaces":[],"directives":[],"fields":[{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"MessageFields item index.","block":true},"name":{"kind":"Name","value":"itemIndex"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"MessageFields ean.","block":true},"name":{"kind":"Name","value":"ean"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]},{"kind":"FieldDefinition","description":{"kind":"StringValue","value":"MessageFields sku name.","block":true},"name":{"kind":"Name","value":"skuName"},"arguments":[],"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"directives":[]}]}],"loc":{"start":0,"end":4557}};
2349
2373
  doc$p.loc.source = {"body":"\"\"\"\nShipping Simulation item input.\n\"\"\"\ninput IShippingItem {\n \"\"\"\n ShippingItem ID / Sku.\n \"\"\"\n id: String!\n \"\"\"\n Number of items.\n \"\"\"\n quantity: Int!\n \"\"\"\n Seller responsible for the ShippingItem.\n \"\"\"\n seller: String!\n}\n\n\"\"\"\nShipping Simulation information.\n\"\"\"\ntype ShippingData {\n \"\"\"\n List of LogisticsItem.\n \"\"\"\n items: [LogisticsItem]\n \"\"\"\n List of LogisticsInfo.\n \"\"\"\n logisticsInfo: [LogisticsInfo]\n \"\"\"\n List of MessageInfo.\n \"\"\"\n messages: [MessageInfo]\n \"\"\"\n Address information.\n \"\"\"\n address: Address\n}\n\n\"\"\"\nShipping Simulation Logistic Item.\n\"\"\"\ntype LogisticsItem {\n \"\"\"\n LogisticsItem ID / Sku.\n \"\"\"\n id: String\n requestIndex: Int\n \"\"\"\n Number of items.\n \"\"\"\n quantity: Int\n \"\"\"\n Seller responsible for the ShippingItem.\n \"\"\"\n seller: String\n \"\"\"\n List of Sellers.\n \"\"\"\n sellerChain: [String]\n \"\"\"\n LogisticsItem tax.\n \"\"\"\n tax: Int\n \"\"\"\n Next date in which price is scheduled to change. If there is no scheduled change, this will be set a year in the future from current time.\n \"\"\"\n priceValidUntil: String\n \"\"\"\n LogisticsItem price.\n \"\"\"\n price: Int\n \"\"\"\n LogisticsItem listPrice.\n \"\"\"\n listPrice: Int\n \"\"\"\n LogisticsItem rewardValue.\n \"\"\"\n rewardValue: Int\n \"\"\"\n LogisticsItem sellingPrice.\n \"\"\"\n sellingPrice: Int\n \"\"\"\n LogisticsItem measurementUnit.\n \"\"\"\n measurementUnit: String\n \"\"\"\n LogisticsItem unitMultiplier.\n \"\"\"\n unitMultiplier: Int\n \"\"\"\n LogisticsItem availability.\n \"\"\"\n availability: String\n}\n\ntype LogisticsInfo {\n \"\"\"\n LogisticsInfo itemIndex.\n \"\"\"\n itemIndex: String\n \"\"\"\n LogisticsInfo selectedSla.\n \"\"\"\n selectedSla: String\n \"\"\"\n List of LogisticsInfo ShippingSLA.\n \"\"\"\n slas: [ShippingSLA]\n}\n\ntype ShippingSLA {\n \"\"\"\n ShippingSLA id.\n \"\"\"\n id: String\n \"\"\"\n ShippingSLA name.\n \"\"\"\n name: String\n \"\"\"\n ShippingSLA price.\n \"\"\"\n price: Float\n \"\"\"\n ShippingSLA shipping estimate.\n \"\"\"\n shippingEstimate: String\n \"\"\"\n ShippingSLA localized shipping estimate.\n Note: this will always return a localized string for locale `en-US`.\n \"\"\"\n localizedEstimates: String\n \"\"\"\n ShippingSLA shipping estimate date.\n \"\"\"\n shippingEstimateDate: String\n \"\"\"\n List of ShippingSLA delivery ids.\n \"\"\"\n deliveryIds: [DeliveryIds]\n \"\"\"\n ShippingSLA delivery channel.\n \"\"\"\n deliveryChannel: String\n \"\"\"\n ShippingSLA friendly name.\n \"\"\"\n friendlyName: String\n \"\"\"\n ShippingSLA carrier.\n \"\"\"\n carrier: String\n \"\"\"\n ShippingSLA pickup point id.\n \"\"\"\n pickupPointId: String\n \"\"\"\n ShippingSLA pickup store info.\n \"\"\"\n pickupStoreInfo: PickupStoreInfo\n \"\"\"\n ShippingSLA pickup distance.\n \"\"\"\n pickupDistance: Float\n}\n\ntype DeliveryIds {\n \"\"\"\n DeliveryIds courier id\n \"\"\"\n courierId: String\n \"\"\"\n DeliveryIds warehouse id\n \"\"\"\n warehouseId: String\n \"\"\"\n DeliveryIds dock id\n \"\"\"\n dockId: String\n \"\"\"\n DeliveryIds courier name\n \"\"\"\n courierName: String\n \"\"\"\n DeliveryIds quantity\n \"\"\"\n quantity: Int\n}\n\ntype PickupStoreInfo {\n \"\"\"\n PickupStoreInfo friendly name.\n \"\"\"\n friendlyName: String\n \"\"\"\n PickupStoreInfo address.\n \"\"\"\n address: PickupAddress\n \"\"\"\n PickupStoreInfo additional information.\n \"\"\"\n additionalInfo: String\n \"\"\"\n PickupStoreInfo dock id.\n \"\"\"\n dockId: String\n \"\"\"\n Information if the store has pickup enable.\n \"\"\"\n isPickupStore: Boolean\n}\n\ntype PickupAddress {\n \"\"\"\n PickupAddress address type.\n \"\"\"\n addressType: String\n \"\"\"\n PickupAddress receiver name.\n \"\"\"\n receiverName: String\n \"\"\"\n PickupAddress address id.\n \"\"\"\n addressId: String\n \"\"\"\n PickupAddress postal code.\n \"\"\"\n postalCode: String\n \"\"\"\n PickupAddress city.\n \"\"\"\n city: String\n \"\"\"\n PickupAddress state.\n \"\"\"\n state: String\n \"\"\"\n PickupAddress country.\n \"\"\"\n country: String\n \"\"\"\n PickupAddress street.\n \"\"\"\n street: String\n \"\"\"\n PickupAddress number.\n \"\"\"\n number: String\n \"\"\"\n PickupAddress neighborhood.\n \"\"\"\n neighborhood: String\n \"\"\"\n PickupAddress complement.\n \"\"\"\n complement: String\n \"\"\"\n PickupAddress reference.\n \"\"\"\n reference: String\n \"\"\"\n PickupAddress geo coordinates.\n \"\"\"\n geoCoordinates: [Float]\n}\n\ntype MessageInfo {\n \"\"\"\n MessageInfo code.\n \"\"\"\n code: String\n \"\"\"\n MessageInfo text.\n \"\"\"\n text: String\n \"\"\"\n MessageInfo status.\n \"\"\"\n status: String\n \"\"\"\n MessageInfo fields.\n \"\"\"\n fields: MessageFields\n}\n\ntype MessageFields {\n \"\"\"\n MessageFields item index.\n \"\"\"\n itemIndex: String\n \"\"\"\n MessageFields ean.\n \"\"\"\n ean: String\n \"\"\"\n MessageFields sku name.\n \"\"\"\n skuName: String\n}\n","name":"GraphQL request","locationOffset":{"line":1,"column":1}};