@faststore/core 4.3.0-dev.0 → 4.3.0-dev.2

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.
Files changed (32) hide show
  1. package/.turbo/turbo-generate.log +4 -4
  2. package/.turbo/turbo-test.log +146 -30
  3. package/@generated/cached-operations.json +3 -1
  4. package/@generated/gql.ts +29 -5
  5. package/@generated/graphql.ts +129 -8
  6. package/@generated/persisted-documents.json +5 -1
  7. package/@generated/schema.graphql +69 -0
  8. package/CHANGELOG.md +12 -0
  9. package/cms/faststore/sections.json +5 -0
  10. package/package.json +6 -6
  11. package/src/components/auth/ProfileChallenge/ProfileChallenge.tsx +2 -2
  12. package/src/components/search/SearchInput/SearchInput.tsx +139 -332
  13. package/src/components/sections/Navbar/Navbar.tsx +1 -0
  14. package/src/components/sections/Navbar/section.module.scss +3 -0
  15. package/src/pages/api/graphql.ts +59 -4
  16. package/src/sdk/auth/index.ts +2 -2
  17. package/src/sdk/orderEntry/useOrderEntry.ts +58 -0
  18. package/src/sdk/orderEntry/useOrderEntryOperation.ts +132 -0
  19. package/src/sdk/orderEntry/useOrderEntryUpload.ts +96 -0
  20. package/src/sdk/orderEntry/useOrderFormItems.ts +57 -0
  21. package/src/styles/global/index.scss +16 -0
  22. package/test/components/auth/ProfileChallenge.test.tsx +51 -0
  23. package/test/components/search/SearchInput.test.ts +72 -0
  24. package/test/components/search/SearchInputComponent.test.tsx +276 -0
  25. package/test/pages/api/graphql.test.ts +167 -0
  26. package/test/sdk/auth/useAuth.test.ts +94 -0
  27. package/test/sdk/orderEntry/useOrderEntry.test.ts +139 -0
  28. package/test/sdk/orderEntry/useOrderEntryOperation.test.ts +205 -0
  29. package/test/sdk/orderEntry/useOrderEntryUpload.test.ts +142 -0
  30. package/test/sdk/orderEntry/useOrderFormItems.test.ts +132 -0
  31. package/test/server/index.test.ts +4 -0
  32. package/src/sdk/product/useBulkProductsQuery.ts +0 -128
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.2.0 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.3.0-dev.1 generate /home/runner/work/faststore/faststore/packages/core
3
3
  > pnpm run gen-types && pnpm run cache-graphql
4
4
 
5
5
 
6
- > @faststore/core@4.2.0 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.3.0-dev.1 gen-types /home/runner/work/faststore/faststore/packages/core
7
7
  > node ../cli/bin/run generate-types .
8
8
 
9
9
  [STARTED] Parse Configuration
@@ -19,11 +19,11 @@
19
19
  [COMPLETED] Generate to /home/runner/work/faststore/faststore/packages/core/@generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.2.0 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.3.0-dev.1 cache-graphql /home/runner/work/faststore/faststore/packages/core
23
23
  > node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json
24
24
 
25
25
  [Info] - Config file location: /home/runner/work/faststore/faststore/packages/core/discovery.config.default.js
26
26
  [Info] - Persisted documents at: /home/runner/work/faststore/faststore/packages/core/@generated/persisted-documents.json
27
27
  [Info] - Cached operations output: /home/runner/work/faststore/faststore/packages/core/@generated/cached-operations.json
28
28
  [Success] - GraphQL queries cached with success: 🎉
29
- Queries: ServerAccountPageQuery, ServerCollectionPageQuery, ServerProductQuery, ServerOrderDetailsQuery, ServerListOrdersQuery, ServerProfileQuery, ServerSecurity, ServerUserDetailsQuery, ValidateUser, ClientPickupPointsQuery, ClientProductCountQuery, ClientAllVariantProductsQuery, ClientProductQuery, ClientManyProductsQueryWithSearchId, ClientProductGalleryQuery, ClientManyProductsQuery, ClientManyProductsSelectedQuery, ClientProfileQuery, ClientSearchSuggestionsQuery, ClientTopSearchSuggestionsQuery, ClientShippingSimulationQuery, ServerManyProductsQuery
29
+ Queries: ServerAccountPageQuery, ServerCollectionPageQuery, ServerProductQuery, ServerOrderDetailsQuery, ServerListOrdersQuery, ServerProfileQuery, ServerSecurity, ServerUserDetailsQuery, ValidateUser, ClientPickupPointsQuery, OrderEntryOperationQuery, OrderFormItemsQuery, ClientProductCountQuery, ClientAllVariantProductsQuery, ClientManyProductsQueryWithSearchId, ClientProductGalleryQuery, ClientProductQuery, ClientManyProductsQuery, ClientManyProductsSelectedQuery, ClientProfileQuery, ClientSearchSuggestionsQuery, ClientTopSearchSuggestionsQuery, ClientShippingSimulationQuery, ServerManyProductsQuery
@@ -1,12 +1,11 @@
1
1
 
2
- > @faststore/core@4.2.0 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.3.0-dev.1 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
6
6
   RUN  v4.0.7 /home/runner/work/faststore/faststore/packages/core
7
7
 
8
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 10ms
9
- ✓  browser  test/sdk/session/installLocaleCorrector.browser.test.ts (7 tests) 43ms
8
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (6 tests) 39ms
10
9
  stderr | test/sdk/localization/store-url.browser.test.ts
11
10
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
12
11
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:119:27)
@@ -14,31 +13,148 @@
14
13
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:353:23)
15
14
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
16
15
 
17
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 76ms
18
- ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 7ms
19
- ✓  node  test/utils/match-url.test.ts (10 tests) 37ms
20
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 12ms
21
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 28ms
22
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 23ms
23
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 33ms
24
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 22ms
25
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 105ms
26
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 203ms
27
- ✓  node  test/server/cms/global.test.ts (3 tests) 29ms
28
- ✓  node  test/server/content/service.test.ts (5 tests) 15ms
29
- ✓  node  test/sdk/localization/store-url.test.ts (1 test) 12ms
30
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 14ms
31
- ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 14ms
32
- ✓  node  test/pages/api/preview.test.ts (2 tests) 25ms
33
- ✓  node  test/utils/isLocalHost.test.ts (7 tests) 18ms
34
- ✓  node  test/server/cms/index.test.ts (2 tests) 18ms
35
- ✓  node  test/server/index.test.ts (7 tests) 1197ms
36
- ✓ should return a valid merged GraphQL schema  392ms
37
- ✓ should exist with its plugins  309ms
38
- ✓ should handle options and execute  482ms
39
-
40
-  Test Files  21 passed (21)
41
-  Tests  226 passed (226)
42
-  Start at  22:01:31
43
-  Duration  17.15s (transform 6.17s, setup 0ms, collect 17.85s, tests 1.94s, environment 15.50s, prepare 929ms)
16
+ ✓  browser  test/sdk/session/installLocaleCorrector.browser.test.ts (7 tests) 41ms
17
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 93ms
18
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 14ms
19
+ ✓  node  test/utils/match-url.test.ts (10 tests) 41ms
20
+ ✓  browser  test/utils/isLocalHost.browser.test.ts (3 tests) 16ms
21
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 26ms
22
+ stderr | test/components/search/SearchInputComponent.test.tsx
23
+ Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
24
+
25
+ stderr | test/components/search/SearchInputComponent.test.tsx > SearchInput (OES integration) > renders without crashing
26
+ Warning: React does not recognize the `visibleDropdown` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `visibledropdown` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
27
+ at div
28
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
29
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
30
+ at Suspense
31
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
32
+ Warning: Unknown event handler property `onSearchSelection`. It will be ignored.
33
+ at div
34
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
35
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
36
+ at Suspense
37
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
38
+ Warning: React does not recognize the `isLoading` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isloading` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
39
+ at div
40
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
41
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
42
+ at Suspense
43
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
44
+ Warning: React does not recognize the `searchId` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `searchid` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
45
+ at div
46
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
47
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
48
+ at Suspense
49
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
50
+ Warning: Unknown event handler property `onCloseDrawer`. It will be ignored.
51
+ at div
52
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
53
+ at div
54
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
55
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
56
+ at Suspense
57
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
58
+ Warning: Invalid value for prop `formatter` on <div> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior
59
+ at div
60
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
61
+ at div
62
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
63
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
64
+ at Suspense
65
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
66
+ Warning: React does not recognize the `isOpen` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isopen` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
67
+ at div
68
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
69
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
70
+ at Suspense
71
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
72
+ Warning: React does not recognize the `overlayProps` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `overlayprops` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
73
+ at div
74
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
75
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
76
+ at Suspense
77
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
78
+ Warning: React does not recognize the `providerProps` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `providerprops` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
79
+ at div
80
+ at /home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:15:5
81
+ at SearchInput2 (/home/runner/work/faststore/faststore/packages/core/src/components/search/SearchInput/SearchInput.tsx:64:5)
82
+ at Suspense
83
+ at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
84
+
85
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 165ms
86
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (12 tests) 27ms
87
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 196ms
88
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 34ms
89
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 24ms
90
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 63ms
91
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 214ms
92
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
93
+ Graphql execution returned with error: [
94
+ {
95
+ message: 'O campo CEP (88) é inválido',
96
+ status: 400,
97
+ type: 'BadRequestError'
98
+ }
99
+ ]
100
+
101
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates UnauthorizedError status
102
+ Graphql execution returned with error: [ { message: 'nope', status: 401, type: 'UnauthorizedError' } ]
103
+
104
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates ForbiddenError status
105
+ Graphql execution returned with error: [ { message: 'nope', status: 403, type: 'ForbiddenError' } ]
106
+
107
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates NotFoundError status
108
+ Graphql execution returned with error: [ { message: 'nope', status: 404, type: 'NotFoundError' } ]
109
+
110
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates an unmapped upstream status (UnknownError 429)
111
+ Graphql execution returned with error: [ { message: 'slow down', status: 429, type: 'UnknownError' } ]
112
+
113
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > recovers status when the error itself is a FastStoreError (not wrapped)
114
+ Graphql execution returned with error: [ { message: 'bad input', status: 400, type: 'BadRequestError' } ]
115
+
116
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > falls back to a body-less 500 for non-FastStore errors
117
+ Graphql execution returned with error: [
118
+ {
119
+ message: 'Sorry, something went wrong.',
120
+ status: undefined,
121
+ type: undefined
122
+ }
123
+ ]
124
+
125
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > exposes type, status and message in the body outside production
126
+ Graphql execution returned with error: [ { message: 'invalid CEP', status: 400, type: 'BadRequestError' } ]
127
+
128
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > omits the free-text message from the body in production
129
+ Graphql execution returned with error: [ { message: 'invalid CEP', status: 400, type: 'BadRequestError' } ]
130
+
131
+ stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > uses the first recoverable FastStoreError when several errors exist
132
+ Graphql execution returned with error: [
133
+ { message: 'plain error', status: undefined, type: undefined },
134
+ { message: 'missing', status: 404, type: 'NotFoundError' },
135
+ { message: 'bad', status: 400, type: 'BadRequestError' }
136
+ ]
137
+
138
+ ✓  node  test/pages/api/graphql.test.ts (10 tests) 85ms
139
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 223ms
140
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 106ms
141
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 72ms
142
+ ✓  node  test/server/content/service.test.ts (5 tests) 4ms
143
+ ✓  node  test/server/cms/global.test.ts (3 tests) 6ms
144
+ ✓  node  test/server/index.test.ts (7 tests) 797ms
145
+ ✓ should return a valid merged GraphQL schema  336ms
146
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 8ms
147
+ ✓  node  test/sdk/localization/store-url.test.ts (1 test) 4ms
148
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 11ms
149
+ ✓  node  test/components/search/SearchInput.test.ts (6 tests) 8ms
150
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 34ms
151
+ ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 4ms
152
+ ✓  node  test/utils/isLocalHost.test.ts (7 tests) 6ms
153
+ ✓  node  test/server/cms/index.test.ts (2 tests) 5ms
154
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 27ms
155
+
156
+  Test Files  30 passed (30)
157
+  Tests  287 passed (287)
158
+  Start at  14:28:34
159
+  Duration  22.44s (transform 5.65s, setup 0ms, collect 21.17s, tests 2.39s, environment 27.63s, prepare 896ms)
44
160
 
@@ -9,11 +9,13 @@
9
9
  "ServerUserDetailsQuery",
10
10
  "ValidateUser",
11
11
  "ClientPickupPointsQuery",
12
+ "OrderEntryOperationQuery",
13
+ "OrderFormItemsQuery",
12
14
  "ClientProductCountQuery",
13
15
  "ClientAllVariantProductsQuery",
14
- "ClientProductQuery",
15
16
  "ClientManyProductsQueryWithSearchId",
16
17
  "ClientProductGalleryQuery",
18
+ "ClientProductQuery",
17
19
  "ClientManyProductsQuery",
18
20
  "ClientManyProductsSelectedQuery",
19
21
  "ClientProfileQuery",
package/@generated/gql.ts CHANGED
@@ -43,11 +43,15 @@ type Documents = {
43
43
  "\n mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) {\n validateCart(cart: $cart, session: $session) {\n order {\n orderNumber\n acceptedOffer {\n ...CartItem\n }\n shouldSplitItem\n }\n messages {\n ...CartMessage\n }\n }\n }\n\n fragment CartMessage on StoreCartMessage {\n text\n status\n }\n\n fragment CartItem on StoreOffer {\n seller {\n identifier\n }\n quantity\n price\n priceWithTaxes\n listPrice\n listPriceWithTaxes\n isGift\n itemOffered {\n ...CartProductItem\n }\n }\n\n fragment CartProductItem on StoreProduct {\n sku\n name\n unitMultiplier\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n": typeof types.ValidateCartMutationDocument,
44
44
  "\n query ClientPickupPointsQuery(\n $geoCoordinates: IStoreGeoCoordinates\n ) {\n pickupPoints(geoCoordinates: $geoCoordinates) {\n pickupPointDistances {\n pickupId\n distance\n pickupName\n isActive\n address {\n city\n state\n number\n postalCode\n street\n }\n }\n }\n }\n": typeof types.ClientPickupPointsQueryDocument,
45
45
  "\n mutation SubscribeToNewsletter($data: IPersonNewsletter!) {\n subscribeToNewsletter(data: $data) {\n id\n }\n }\n": typeof types.SubscribeToNewsletterDocument,
46
+ "\n mutation StartOrderEntryOperationMutation($data: IOrderEntryOperation!) {\n startOrderEntryOperation(data: $data) {\n operationId\n }\n }\n": typeof types.StartOrderEntryOperationMutationDocument,
47
+ "\n query OrderEntryOperationQuery($operationId: String!) {\n orderEntryOperation(operationId: $operationId) {\n status\n entityId\n message\n missingItems {\n itemId\n itemName\n reason\n }\n }\n }\n": typeof types.OrderEntryOperationQueryDocument,
48
+ "\n mutation UploadFileToOrderEntryMutation($data: IOrderEntryUpload!) {\n uploadFileToOrderEntry(data: $data) {\n objectKey\n }\n }\n": typeof types.UploadFileToOrderEntryMutationDocument,
49
+ "\n query OrderFormItemsQuery($orderFormId: String!) {\n orderFormItems(orderFormId: $orderFormId) {\n id\n name\n price\n listPrice\n quantity\n imageUrl\n availability\n seller\n unitMultiplier\n }\n }\n": typeof types.OrderFormItemsQueryDocument,
46
50
  "\n query ClientProductCountQuery($term: String) {\n productCount(term: $term) {\n total\n }\n }\n": typeof types.ClientProductCountQueryDocument,
47
51
  "\n query ClientAllVariantProductsQuery($locator: [IStoreSelectedFacet!]!) {\n product(locator: $locator) {\n ...ProductSKUMatrixSidebarFragment_product\n }\n }\n": typeof types.ClientAllVariantProductsQueryDocument,
48
- "\n query ClientProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ClientProduct\n product(locator: $locator) {\n ...ProductDetailsFragment_product\n }\n }\n": typeof types.ClientProductQueryDocument,
49
52
  "\n query ClientManyProductsQueryWithSearchId(\n $first: Int!\n $after: String\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n $sponsoredCount: Int\n ) {\n ...ClientManyProducts\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n sponsoredCount: $sponsoredCount\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n ...ProductSummary_product\n }\n }\n }\n searchId\n }\n }\n": typeof types.ClientManyProductsQueryWithSearchIdDocument,
50
53
  "\n query ClientProductGalleryQuery(\n $first: Int!\n $after: String!\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n ) {\n ...ClientProductGallery\n redirect(term: $term, selectedFacets: $selectedFacets) {\n url\n }\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n facets {\n ...Filter_facets\n }\n metadata {\n ...SearchEvent_metadata\n }\n }\n }\n\n fragment SearchEvent_metadata on SearchMetadata {\n isTermMisspelled\n logicalOperator\n fuzzy\n }\n": typeof types.ClientProductGalleryQueryDocument,
54
+ "\n query ClientProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ClientProduct\n product(locator: $locator) {\n ...ProductDetailsFragment_product\n }\n }\n": typeof types.ClientProductQueryDocument,
51
55
  "\n query ClientManyProductsQuery(\n $first: Int!\n $after: String\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n $sponsoredCount: Int\n ) {\n ...ClientManyProducts\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n sponsoredCount: $sponsoredCount\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n ...ProductSummary_product\n }\n }\n }\n }\n }\n": typeof types.ClientManyProductsQueryDocument,
52
56
  "\n query ClientManyProductsSelectedQuery(\n $productIds: [String!]!\n ) {\n products(productIds: $productIds) {\n ...ProductComparisonFragment_product\n }\n }\n": typeof types.ClientManyProductsSelectedQueryDocument,
53
57
  "\n query ClientProfileQuery($id: String!) {\n profile(id: $id) {\n addresses {\n country\n postalCode\n geoCoordinate\n city\n }\n }\n }\n": typeof types.ClientProfileQueryDocument,
@@ -86,11 +90,15 @@ const documents: Documents = {
86
90
  "\n mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) {\n validateCart(cart: $cart, session: $session) {\n order {\n orderNumber\n acceptedOffer {\n ...CartItem\n }\n shouldSplitItem\n }\n messages {\n ...CartMessage\n }\n }\n }\n\n fragment CartMessage on StoreCartMessage {\n text\n status\n }\n\n fragment CartItem on StoreOffer {\n seller {\n identifier\n }\n quantity\n price\n priceWithTaxes\n listPrice\n listPriceWithTaxes\n isGift\n itemOffered {\n ...CartProductItem\n }\n }\n\n fragment CartProductItem on StoreProduct {\n sku\n name\n unitMultiplier\n image {\n url\n alternateName\n }\n brand {\n name\n }\n isVariantOf {\n productGroupID\n name\n skuVariants {\n activeVariations\n slugsMap\n availableVariations\n }\n }\n gtin\n additionalProperty {\n propertyID\n name\n value\n valueReference\n }\n }\n": types.ValidateCartMutationDocument,
87
91
  "\n query ClientPickupPointsQuery(\n $geoCoordinates: IStoreGeoCoordinates\n ) {\n pickupPoints(geoCoordinates: $geoCoordinates) {\n pickupPointDistances {\n pickupId\n distance\n pickupName\n isActive\n address {\n city\n state\n number\n postalCode\n street\n }\n }\n }\n }\n": types.ClientPickupPointsQueryDocument,
88
92
  "\n mutation SubscribeToNewsletter($data: IPersonNewsletter!) {\n subscribeToNewsletter(data: $data) {\n id\n }\n }\n": types.SubscribeToNewsletterDocument,
93
+ "\n mutation StartOrderEntryOperationMutation($data: IOrderEntryOperation!) {\n startOrderEntryOperation(data: $data) {\n operationId\n }\n }\n": types.StartOrderEntryOperationMutationDocument,
94
+ "\n query OrderEntryOperationQuery($operationId: String!) {\n orderEntryOperation(operationId: $operationId) {\n status\n entityId\n message\n missingItems {\n itemId\n itemName\n reason\n }\n }\n }\n": types.OrderEntryOperationQueryDocument,
95
+ "\n mutation UploadFileToOrderEntryMutation($data: IOrderEntryUpload!) {\n uploadFileToOrderEntry(data: $data) {\n objectKey\n }\n }\n": types.UploadFileToOrderEntryMutationDocument,
96
+ "\n query OrderFormItemsQuery($orderFormId: String!) {\n orderFormItems(orderFormId: $orderFormId) {\n id\n name\n price\n listPrice\n quantity\n imageUrl\n availability\n seller\n unitMultiplier\n }\n }\n": types.OrderFormItemsQueryDocument,
89
97
  "\n query ClientProductCountQuery($term: String) {\n productCount(term: $term) {\n total\n }\n }\n": types.ClientProductCountQueryDocument,
90
98
  "\n query ClientAllVariantProductsQuery($locator: [IStoreSelectedFacet!]!) {\n product(locator: $locator) {\n ...ProductSKUMatrixSidebarFragment_product\n }\n }\n": types.ClientAllVariantProductsQueryDocument,
91
- "\n query ClientProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ClientProduct\n product(locator: $locator) {\n ...ProductDetailsFragment_product\n }\n }\n": types.ClientProductQueryDocument,
92
99
  "\n query ClientManyProductsQueryWithSearchId(\n $first: Int!\n $after: String\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n $sponsoredCount: Int\n ) {\n ...ClientManyProducts\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n sponsoredCount: $sponsoredCount\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n ...ProductSummary_product\n }\n }\n }\n searchId\n }\n }\n": types.ClientManyProductsQueryWithSearchIdDocument,
93
100
  "\n query ClientProductGalleryQuery(\n $first: Int!\n $after: String!\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n ) {\n ...ClientProductGallery\n redirect(term: $term, selectedFacets: $selectedFacets) {\n url\n }\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n facets {\n ...Filter_facets\n }\n metadata {\n ...SearchEvent_metadata\n }\n }\n }\n\n fragment SearchEvent_metadata on SearchMetadata {\n isTermMisspelled\n logicalOperator\n fuzzy\n }\n": types.ClientProductGalleryQueryDocument,
101
+ "\n query ClientProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ClientProduct\n product(locator: $locator) {\n ...ProductDetailsFragment_product\n }\n }\n": types.ClientProductQueryDocument,
94
102
  "\n query ClientManyProductsQuery(\n $first: Int!\n $after: String\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n $sponsoredCount: Int\n ) {\n ...ClientManyProducts\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n sponsoredCount: $sponsoredCount\n ) {\n products {\n pageInfo {\n totalCount\n }\n edges {\n node {\n ...ProductSummary_product\n }\n }\n }\n }\n }\n": types.ClientManyProductsQueryDocument,
95
103
  "\n query ClientManyProductsSelectedQuery(\n $productIds: [String!]!\n ) {\n products(productIds: $productIds) {\n ...ProductComparisonFragment_product\n }\n }\n": types.ClientManyProductsSelectedQueryDocument,
96
104
  "\n query ClientProfileQuery($id: String!) {\n profile(id: $id) {\n addresses {\n country\n postalCode\n geoCoordinate\n city\n }\n }\n }\n": types.ClientProfileQueryDocument,
@@ -216,15 +224,27 @@ export function gql(source: "\n mutation SubscribeToNewsletter($data: IPersonNe
216
224
  /**
217
225
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
218
226
  */
219
- export function gql(source: "\n query ClientProductCountQuery($term: String) {\n productCount(term: $term) {\n total\n }\n }\n"): typeof import('./graphql').ClientProductCountQueryDocument;
227
+ export function gql(source: "\n mutation StartOrderEntryOperationMutation($data: IOrderEntryOperation!) {\n startOrderEntryOperation(data: $data) {\n operationId\n }\n }\n"): typeof import('./graphql').StartOrderEntryOperationMutationDocument;
220
228
  /**
221
229
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
222
230
  */
223
- export function gql(source: "\n query ClientAllVariantProductsQuery($locator: [IStoreSelectedFacet!]!) {\n product(locator: $locator) {\n ...ProductSKUMatrixSidebarFragment_product\n }\n }\n"): typeof import('./graphql').ClientAllVariantProductsQueryDocument;
231
+ export function gql(source: "\n query OrderEntryOperationQuery($operationId: String!) {\n orderEntryOperation(operationId: $operationId) {\n status\n entityId\n message\n missingItems {\n itemId\n itemName\n reason\n }\n }\n }\n"): typeof import('./graphql').OrderEntryOperationQueryDocument;
224
232
  /**
225
233
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
226
234
  */
227
- export function gql(source: "\n query ClientProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ClientProduct\n product(locator: $locator) {\n ...ProductDetailsFragment_product\n }\n }\n"): typeof import('./graphql').ClientProductQueryDocument;
235
+ export function gql(source: "\n mutation UploadFileToOrderEntryMutation($data: IOrderEntryUpload!) {\n uploadFileToOrderEntry(data: $data) {\n objectKey\n }\n }\n"): typeof import('./graphql').UploadFileToOrderEntryMutationDocument;
236
+ /**
237
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
238
+ */
239
+ export function gql(source: "\n query OrderFormItemsQuery($orderFormId: String!) {\n orderFormItems(orderFormId: $orderFormId) {\n id\n name\n price\n listPrice\n quantity\n imageUrl\n availability\n seller\n unitMultiplier\n }\n }\n"): typeof import('./graphql').OrderFormItemsQueryDocument;
240
+ /**
241
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
242
+ */
243
+ export function gql(source: "\n query ClientProductCountQuery($term: String) {\n productCount(term: $term) {\n total\n }\n }\n"): typeof import('./graphql').ClientProductCountQueryDocument;
244
+ /**
245
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
246
+ */
247
+ export function gql(source: "\n query ClientAllVariantProductsQuery($locator: [IStoreSelectedFacet!]!) {\n product(locator: $locator) {\n ...ProductSKUMatrixSidebarFragment_product\n }\n }\n"): typeof import('./graphql').ClientAllVariantProductsQueryDocument;
228
248
  /**
229
249
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
230
250
  */
@@ -233,6 +253,10 @@ export function gql(source: "\n query ClientManyProductsQueryWithSearchId(\n
233
253
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
234
254
  */
235
255
  export function gql(source: "\n query ClientProductGalleryQuery(\n $first: Int!\n $after: String!\n $sort: StoreSort!\n $term: String!\n $selectedFacets: [IStoreSelectedFacet!]!\n ) {\n ...ClientProductGallery\n redirect(term: $term, selectedFacets: $selectedFacets) {\n url\n }\n search(\n first: $first\n after: $after\n sort: $sort\n term: $term\n selectedFacets: $selectedFacets\n ) {\n products {\n pageInfo {\n totalCount\n }\n }\n facets {\n ...Filter_facets\n }\n metadata {\n ...SearchEvent_metadata\n }\n }\n }\n\n fragment SearchEvent_metadata on SearchMetadata {\n isTermMisspelled\n logicalOperator\n fuzzy\n }\n"): typeof import('./graphql').ClientProductGalleryQueryDocument;
256
+ /**
257
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
258
+ */
259
+ export function gql(source: "\n query ClientProductQuery($locator: [IStoreSelectedFacet!]!) {\n ...ClientProduct\n product(locator: $locator) {\n ...ProductDetailsFragment_product\n }\n }\n"): typeof import('./graphql').ClientProductQueryDocument;
236
260
  /**
237
261
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
238
262
  */
@@ -356,6 +356,26 @@ export type IGeoCoordinates = {
356
356
  longitude: Scalars['Float']['input'];
357
357
  };
358
358
 
359
+ export type IOrderEntryOperation = {
360
+ objectKey: Scalars['String']['input'];
361
+ orderFormId: InputMaybe<Scalars['String']['input']>;
362
+ sessionToken: InputMaybe<Scalars['String']['input']>;
363
+ };
364
+
365
+ /**
366
+ * Input for uploading a file to the Order Entry Service.
367
+ * The file is transmitted as a Base64-encoded string so it can travel
368
+ * through the standard GraphQL JSON pipeline without multipart support.
369
+ */
370
+ export type IOrderEntryUpload = {
371
+ /** Base64-encoded file content. */
372
+ fileContent: Scalars['String']['input'];
373
+ /** Original file name (e.g. "order.csv"). */
374
+ fileName: Scalars['String']['input'];
375
+ /** MIME type of the file (e.g. "text/csv", "image/png"). */
376
+ mimeType: Scalars['String']['input'];
377
+ };
378
+
359
379
  /** Person data input to the newsletter. */
360
380
  export type IPersonNewsletter = {
361
381
  /** Person's email. */
@@ -646,8 +666,19 @@ export type Mutation = {
646
666
  cancelOrder: Maybe<UserOrderCancel>;
647
667
  /** Process Order Authorization */
648
668
  processOrderAuthorization: Maybe<ProcessOrderAuthorizationResponse>;
669
+ /**
670
+ * Submits an uploaded file for bulk import into a VTEX cart via the Order Entry Service.
671
+ * Returns an operationId to poll for the operation status.
672
+ */
673
+ startOrderEntryOperation: Maybe<StoreOrderEntryOperationResult>;
649
674
  /** Subscribes a new person to the newsletter list. */
650
675
  subscribeToNewsletter: Maybe<PersonNewsletter>;
676
+ /**
677
+ * Uploads a file to the Order Entry Service and returns the S3 object key.
678
+ * The file must be Base64-encoded and passed via the `data` input.
679
+ * The returned `objectKey` is required to start an order entry operation.
680
+ */
681
+ uploadFileToOrderEntry: Maybe<StoreOrderEntryUploadResult>;
651
682
  /** Checks for changes between the cart presented in the UI and the cart stored in the ecommerce platform. If changes are detected, it returns the cart stored on the platform. Otherwise, it returns `null`. */
652
683
  validateCart: Maybe<StoreCart>;
653
684
  /** Updates a web session with the specified values. */
@@ -665,11 +696,21 @@ export type MutationProcessOrderAuthorizationArgs = {
665
696
  };
666
697
 
667
698
 
699
+ export type MutationStartOrderEntryOperationArgs = {
700
+ data: IOrderEntryOperation;
701
+ };
702
+
703
+
668
704
  export type MutationSubscribeToNewsletterArgs = {
669
705
  data: IPersonNewsletter;
670
706
  };
671
707
 
672
708
 
709
+ export type MutationUploadFileToOrderEntryArgs = {
710
+ data: IOrderEntryUpload;
711
+ };
712
+
713
+
673
714
  export type MutationValidateCartArgs = {
674
715
  cart: IStoreCart;
675
716
  session: InputMaybe<IStoreSession>;
@@ -834,6 +875,10 @@ export type Query = {
834
875
  collection: StoreCollection;
835
876
  /** Returns the list of Orders that the User can view. */
836
877
  listUserOrders: Maybe<UserOrderListMinimalResult>;
878
+ /** Returns the status of an Order Entry Service operation by its ID. */
879
+ orderEntryOperation: Maybe<StoreOrderEntryOperationStatus>;
880
+ /** Returns the items in an orderForm by its ID. */
881
+ orderFormItems: Array<StoreOrderFormCartItem>;
837
882
  /** Returns a list of pickup points near to the given geo coordinates. */
838
883
  pickupPoints: Maybe<PickupPoints>;
839
884
  /** Returns the details of a product based on the specified locator. */
@@ -890,6 +935,16 @@ export type QueryListUserOrdersArgs = {
890
935
  };
891
936
 
892
937
 
938
+ export type QueryOrderEntryOperationArgs = {
939
+ operationId: Scalars['String']['input'];
940
+ };
941
+
942
+
943
+ export type QueryOrderFormItemsArgs = {
944
+ orderFormId: Scalars['String']['input'];
945
+ };
946
+
947
+
893
948
  export type QueryPickupPointsArgs = {
894
949
  geoCoordinates: InputMaybe<IStoreGeoCoordinates>;
895
950
  };
@@ -1393,6 +1448,40 @@ export type StoreOrder = {
1393
1448
  shouldSplitItem: Maybe<Scalars['Boolean']['output']>;
1394
1449
  };
1395
1450
 
1451
+ export type StoreOrderEntryMissingItem = {
1452
+ itemId: Scalars['String']['output'];
1453
+ itemName: Maybe<Scalars['String']['output']>;
1454
+ reason: Scalars['String']['output'];
1455
+ };
1456
+
1457
+ export type StoreOrderEntryOperationResult = {
1458
+ operationId: Scalars['String']['output'];
1459
+ };
1460
+
1461
+ export type StoreOrderEntryOperationStatus = {
1462
+ entityId: Maybe<Scalars['String']['output']>;
1463
+ message: Maybe<Scalars['String']['output']>;
1464
+ missingItems: Maybe<Array<StoreOrderEntryMissingItem>>;
1465
+ status: Scalars['String']['output'];
1466
+ };
1467
+
1468
+ /** Result returned after uploading a file to the Order Entry Service. */
1469
+ export type StoreOrderEntryUploadResult = {
1470
+ objectKey: Scalars['String']['output'];
1471
+ };
1472
+
1473
+ export type StoreOrderFormCartItem = {
1474
+ availability: Scalars['String']['output'];
1475
+ id: Scalars['String']['output'];
1476
+ imageUrl: Maybe<Scalars['String']['output']>;
1477
+ listPrice: Scalars['Int']['output'];
1478
+ name: Scalars['String']['output'];
1479
+ price: Scalars['Int']['output'];
1480
+ quantity: Scalars['Int']['output'];
1481
+ seller: Scalars['String']['output'];
1482
+ unitMultiplier: Maybe<Scalars['Float']['output']>;
1483
+ };
1484
+
1396
1485
  /** Organization. */
1397
1486
  export type StoreOrganization = {
1398
1487
  /** Organization ID. */
@@ -2613,6 +2702,34 @@ export type SubscribeToNewsletterMutationVariables = Exact<{
2613
2702
 
2614
2703
  export type SubscribeToNewsletterMutation = { subscribeToNewsletter: { id: string } | null };
2615
2704
 
2705
+ export type StartOrderEntryOperationMutationMutationVariables = Exact<{
2706
+ data: IOrderEntryOperation;
2707
+ }>;
2708
+
2709
+
2710
+ export type StartOrderEntryOperationMutationMutation = { startOrderEntryOperation: { operationId: string } | null };
2711
+
2712
+ export type OrderEntryOperationQueryQueryVariables = Exact<{
2713
+ operationId: Scalars['String']['input'];
2714
+ }>;
2715
+
2716
+
2717
+ export type OrderEntryOperationQueryQuery = { orderEntryOperation: { status: string, entityId: string | null, message: string | null, missingItems: Array<{ itemId: string, itemName: string | null, reason: string }> | null } | null };
2718
+
2719
+ export type UploadFileToOrderEntryMutationMutationVariables = Exact<{
2720
+ data: IOrderEntryUpload;
2721
+ }>;
2722
+
2723
+
2724
+ export type UploadFileToOrderEntryMutationMutation = { uploadFileToOrderEntry: { objectKey: string } | null };
2725
+
2726
+ export type OrderFormItemsQueryQueryVariables = Exact<{
2727
+ orderFormId: Scalars['String']['input'];
2728
+ }>;
2729
+
2730
+
2731
+ export type OrderFormItemsQueryQuery = { orderFormItems: Array<{ id: string, name: string, price: number, listPrice: number, quantity: number, imageUrl: string | null, availability: string, seller: string, unitMultiplier: number | null }> };
2732
+
2616
2733
  export type ClientProductCountQueryQueryVariables = Exact<{
2617
2734
  term: InputMaybe<Scalars['String']['input']>;
2618
2735
  }>;
@@ -2627,13 +2744,6 @@ export type ClientAllVariantProductsQueryQueryVariables = Exact<{
2627
2744
 
2628
2745
  export type ClientAllVariantProductsQueryQuery = { product: { id: string, isVariantOf: { name: string, productGroupID: string, skuVariants: { activeVariations: any | null, slugsMap: any | null, availableVariations: any | null, allVariantProducts: Array<{ sku: string, name: string, image: Array<{ url: string, alternateName: string }>, offers: { highPrice: number, lowPrice: number, lowPriceWithTaxes: number, offerCount: number, priceCurrency: string, offers: Array<{ listPrice: number, listPriceWithTaxes: number, sellingPrice: number, priceCurrency: string, price: number, priceWithTaxes: number, priceValidUntil: string, itemCondition: string, availability: string, quantity: number }> }, additionalProperty: Array<{ propertyID: string, value: any, name: string, valueReference: any }> }> | null } | null } } };
2629
2746
 
2630
- export type ClientProductQueryQueryVariables = Exact<{
2631
- locator: Array<IStoreSelectedFacet> | IStoreSelectedFacet;
2632
- }>;
2633
-
2634
-
2635
- export type ClientProductQueryQuery = { product: { sku: string, name: string, gtin: string, description: string, unitMultiplier: number | null, id: string, isVariantOf: { name: string, productGroupID: string, skuVariants: { activeVariations: any | null, slugsMap: any | null, availableVariations: any | null, allVariantProducts: Array<{ name: string, productID: string }> | null } | null }, image: Array<{ url: string, alternateName: string }>, brand: { name: string }, offers: { lowPrice: number, lowPriceWithTaxes: number, offers: Array<{ availability: string, price: number, priceWithTaxes: number, listPrice: number, listPriceWithTaxes: number, quantity: number, seller: { identifier: string } }> }, additionalProperty: Array<{ propertyID: string, name: string, value: any, valueReference: any }> } };
2636
-
2637
2747
  export type ClientManyProductsQueryWithSearchIdQueryVariables = Exact<{
2638
2748
  first: Scalars['Int']['input'];
2639
2749
  after: InputMaybe<Scalars['String']['input']>;
@@ -2662,6 +2772,13 @@ export type ClientProductGalleryQueryQuery = { redirect: { url: string | null }
2662
2772
 
2663
2773
  export type SearchEvent_MetadataFragment = { isTermMisspelled: boolean, logicalOperator: string, fuzzy: string | null };
2664
2774
 
2775
+ export type ClientProductQueryQueryVariables = Exact<{
2776
+ locator: Array<IStoreSelectedFacet> | IStoreSelectedFacet;
2777
+ }>;
2778
+
2779
+
2780
+ export type ClientProductQueryQuery = { product: { sku: string, name: string, gtin: string, description: string, unitMultiplier: number | null, id: string, isVariantOf: { name: string, productGroupID: string, skuVariants: { activeVariations: any | null, slugsMap: any | null, availableVariations: any | null, allVariantProducts: Array<{ name: string, productID: string }> | null } | null }, image: Array<{ url: string, alternateName: string }>, brand: { name: string }, offers: { lowPrice: number, lowPriceWithTaxes: number, offers: Array<{ availability: string, price: number, priceWithTaxes: number, listPrice: number, listPriceWithTaxes: number, quantity: number, seller: { identifier: string } }> }, additionalProperty: Array<{ propertyID: string, name: string, value: any, valueReference: any }> } };
2781
+
2665
2782
  export type ClientManyProductsQueryQueryVariables = Exact<{
2666
2783
  first: Scalars['Int']['input'];
2667
2784
  after: InputMaybe<Scalars['String']['input']>;
@@ -3258,11 +3375,15 @@ export const ValidateUserDocument = {"__meta__":{"operationName":"ValidateUser",
3258
3375
  export const ValidateCartMutationDocument = {"__meta__":{"operationName":"ValidateCartMutation","operationHash":"32c15f8888ca34f223def7972b7f19090808435a"}} as unknown as TypedDocumentString<ValidateCartMutationMutation, ValidateCartMutationMutationVariables>;
3259
3376
  export const ClientPickupPointsQueryDocument = {"__meta__":{"operationName":"ClientPickupPointsQuery","operationHash":"3fa04e88c811fcb5ece7206fd5aa745bdbc143a8"}} as unknown as TypedDocumentString<ClientPickupPointsQueryQuery, ClientPickupPointsQueryQueryVariables>;
3260
3377
  export const SubscribeToNewsletterDocument = {"__meta__":{"operationName":"SubscribeToNewsletter","operationHash":"feb7005103a859e2bc8cf2360d568806fd88deba"}} as unknown as TypedDocumentString<SubscribeToNewsletterMutation, SubscribeToNewsletterMutationVariables>;
3378
+ export const StartOrderEntryOperationMutationDocument = {"__meta__":{"operationName":"StartOrderEntryOperationMutation","operationHash":"78c50fbf9b85d03dbeac9b05b06405217f2ec440"}} as unknown as TypedDocumentString<StartOrderEntryOperationMutationMutation, StartOrderEntryOperationMutationMutationVariables>;
3379
+ export const OrderEntryOperationQueryDocument = {"__meta__":{"operationName":"OrderEntryOperationQuery","operationHash":"93fc6c5c593dd4c82686fdf063fe419760297e54"}} as unknown as TypedDocumentString<OrderEntryOperationQueryQuery, OrderEntryOperationQueryQueryVariables>;
3380
+ export const UploadFileToOrderEntryMutationDocument = {"__meta__":{"operationName":"UploadFileToOrderEntryMutation","operationHash":"fdf0f46d99da60e78dc0095928f2262440fd7c15"}} as unknown as TypedDocumentString<UploadFileToOrderEntryMutationMutation, UploadFileToOrderEntryMutationMutationVariables>;
3381
+ export const OrderFormItemsQueryDocument = {"__meta__":{"operationName":"OrderFormItemsQuery","operationHash":"f79941638f18e16cce62e936fcf055b1f995d7cf"}} as unknown as TypedDocumentString<OrderFormItemsQueryQuery, OrderFormItemsQueryQueryVariables>;
3261
3382
  export const ClientProductCountQueryDocument = {"__meta__":{"operationName":"ClientProductCountQuery","operationHash":"dc912e7272e3d9f5ced206837df87f544d39d0a5"}} as unknown as TypedDocumentString<ClientProductCountQueryQuery, ClientProductCountQueryQueryVariables>;
3262
3383
  export const ClientAllVariantProductsQueryDocument = {"__meta__":{"operationName":"ClientAllVariantProductsQuery","operationHash":"4039e05f01a2fe449e20e8b82170d0ba94b1fbe9"}} as unknown as TypedDocumentString<ClientAllVariantProductsQueryQuery, ClientAllVariantProductsQueryQueryVariables>;
3263
- export const ClientProductQueryDocument = {"__meta__":{"operationName":"ClientProductQuery","operationHash":"3d65d8f0d279557542be9a361cb3ceb2008bad45"}} as unknown as TypedDocumentString<ClientProductQueryQuery, ClientProductQueryQueryVariables>;
3264
3384
  export const ClientManyProductsQueryWithSearchIdDocument = {"__meta__":{"operationName":"ClientManyProductsQueryWithSearchId","operationHash":"23be1e1fcaf0bd2719a9324272c891c922045180"}} as unknown as TypedDocumentString<ClientManyProductsQueryWithSearchIdQuery, ClientManyProductsQueryWithSearchIdQueryVariables>;
3265
3385
  export const ClientProductGalleryQueryDocument = {"__meta__":{"operationName":"ClientProductGalleryQuery","operationHash":"bfc40da32b60f9404a4adb96b0856e3fbb04b076"}} as unknown as TypedDocumentString<ClientProductGalleryQueryQuery, ClientProductGalleryQueryQueryVariables>;
3386
+ export const ClientProductQueryDocument = {"__meta__":{"operationName":"ClientProductQuery","operationHash":"3d65d8f0d279557542be9a361cb3ceb2008bad45"}} as unknown as TypedDocumentString<ClientProductQueryQuery, ClientProductQueryQueryVariables>;
3266
3387
  export const ClientManyProductsQueryDocument = {"__meta__":{"operationName":"ClientManyProductsQuery","operationHash":"e49027bc29aa10cbf7bbb0ed62239af8de1653f0"}} as unknown as TypedDocumentString<ClientManyProductsQueryQuery, ClientManyProductsQueryQueryVariables>;
3267
3388
  export const ClientManyProductsSelectedQueryDocument = {"__meta__":{"operationName":"ClientManyProductsSelectedQuery","operationHash":"b668777678c137b8c7004297df4d8b8f2b29ee06"}} as unknown as TypedDocumentString<ClientManyProductsSelectedQueryQuery, ClientManyProductsSelectedQueryQueryVariables>;
3268
3389
  export const ClientProfileQueryDocument = {"__meta__":{"operationName":"ClientProfileQuery","operationHash":"34ea14c0d4a57ddf9bc11e4be0cd2b5a6506d3d4"}} as unknown as TypedDocumentString<ClientProfileQueryQuery, ClientProfileQueryQueryVariables>;
@@ -13,11 +13,15 @@
13
13
  "32c15f8888ca34f223def7972b7f19090808435a": "fragment CartItem on StoreOffer { isGift itemOffered { ...CartProductItem } listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } fragment CartMessage on StoreCartMessage { status text } fragment CartProductItem on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name sku unitMultiplier } mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) { validateCart(cart: $cart, session: $session) { messages { ...CartMessage } order { acceptedOffer { ...CartItem } orderNumber shouldSplitItem } } }",
14
14
  "3fa04e88c811fcb5ece7206fd5aa745bdbc143a8": "query ClientPickupPointsQuery($geoCoordinates: IStoreGeoCoordinates) { pickupPoints(geoCoordinates: $geoCoordinates) { pickupPointDistances { address { city number postalCode state street } distance isActive pickupId pickupName } } }",
15
15
  "feb7005103a859e2bc8cf2360d568806fd88deba": "mutation SubscribeToNewsletter($data: IPersonNewsletter!) { subscribeToNewsletter(data: $data) { id } }",
16
+ "78c50fbf9b85d03dbeac9b05b06405217f2ec440": "mutation StartOrderEntryOperationMutation($data: IOrderEntryOperation!) { startOrderEntryOperation(data: $data) { operationId } }",
17
+ "93fc6c5c593dd4c82686fdf063fe419760297e54": "query OrderEntryOperationQuery($operationId: String!) { orderEntryOperation(operationId: $operationId) { entityId message missingItems { itemId itemName reason } status } }",
18
+ "fdf0f46d99da60e78dc0095928f2262440fd7c15": "mutation UploadFileToOrderEntryMutation($data: IOrderEntryUpload!) { uploadFileToOrderEntry(data: $data) { objectKey } }",
19
+ "f79941638f18e16cce62e936fcf055b1f995d7cf": "query OrderFormItemsQuery($orderFormId: String!) { orderFormItems(orderFormId: $orderFormId) { availability id imageUrl listPrice name price quantity seller unitMultiplier } }",
16
20
  "dc912e7272e3d9f5ced206837df87f544d39d0a5": "query ClientProductCountQuery($term: String) { productCount(term: $term) { total } }",
17
21
  "4039e05f01a2fe449e20e8b82170d0ba94b1fbe9": "fragment ProductSKUMatrixSidebarFragment_product on StoreProduct { isVariantOf { name productGroupID skuVariants { activeVariations allVariantProducts { additionalProperty { name propertyID value valueReference } image { alternateName url } name offers { highPrice lowPrice lowPriceWithTaxes offerCount offers { availability itemCondition listPrice listPriceWithTaxes price priceCurrency priceValidUntil priceWithTaxes quantity sellingPrice } priceCurrency } sku } availableVariations slugsMap } } id: productID } query ClientAllVariantProductsQuery($locator: [IStoreSelectedFacet!]!) { product(locator: $locator) { ...ProductSKUMatrixSidebarFragment_product } }",
18
- "3d65d8f0d279557542be9a361cb3ceb2008bad45": "fragment CartProductItem on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name sku unitMultiplier } fragment ClientProduct on Query { product(locator: $locator) { id: productID } } fragment ProductDetailsFragment_product on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } description gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantProducts { name productID } availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } } id: productID sku unitMultiplier ...CartProductItem } query ClientProductQuery($locator: [IStoreSelectedFacet!]!) { product(locator: $locator) { ...ProductDetailsFragment_product } ...ClientProduct }",
19
22
  "23be1e1fcaf0bd2719a9324272c891c922045180": "fragment ClientManyProducts on Query { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets sponsoredCount: $sponsoredCount ) { products { pageInfo { totalCount } } } } fragment ProductSummary_product on StoreProduct { additionalProperty { name propertyID value valueReference } advertisement { adId adResponseId } brand { brandName: name } brand { name } deliveryPromiseBadges { typeName } gtin hasSpecifications image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantsByName availableVariations slugsMap } } isVariantOf { name productGroupID skuVariants { activeVariations allVariantProducts { name productID } availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } } id: productID sku slug unitMultiplier unitMultiplier } query ClientManyProductsQueryWithSearchId($after: String, $first: Int!, $selectedFacets: [IStoreSelectedFacet!]!, $sort: StoreSort!, $sponsoredCount: Int, $term: String!) { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets sponsoredCount: $sponsoredCount ) { products { edges { node { ...ProductSummary_product } } pageInfo { totalCount } } searchId } ...ClientManyProducts }",
20
23
  "bfc40da32b60f9404a4adb96b0856e3fbb04b076": "fragment ClientProductGallery on Query { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets ) { products { pageInfo { totalCount } } } } fragment Filter_facets on StoreFacet { ... on StoreFacetBoolean { __typename key label values { label quantity selected value } } ... on StoreFacetRange { __typename key label max { absolute selected } min { absolute selected } } } fragment SearchEvent_metadata on SearchMetadata { fuzzy isTermMisspelled logicalOperator } query ClientProductGalleryQuery($after: String!, $first: Int!, $selectedFacets: [IStoreSelectedFacet!]!, $sort: StoreSort!, $term: String!) { redirect(term: $term, selectedFacets: $selectedFacets) { url } search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets ) { facets { ...Filter_facets } metadata { ...SearchEvent_metadata } products { pageInfo { totalCount } } } ...ClientProductGallery }",
24
+ "3d65d8f0d279557542be9a361cb3ceb2008bad45": "fragment CartProductItem on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name sku unitMultiplier } fragment ClientProduct on Query { product(locator: $locator) { id: productID } } fragment ProductDetailsFragment_product on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } description gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantProducts { name productID } availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } } id: productID sku unitMultiplier ...CartProductItem } query ClientProductQuery($locator: [IStoreSelectedFacet!]!) { product(locator: $locator) { ...ProductDetailsFragment_product } ...ClientProduct }",
21
25
  "e49027bc29aa10cbf7bbb0ed62239af8de1653f0": "fragment ClientManyProducts on Query { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets sponsoredCount: $sponsoredCount ) { products { pageInfo { totalCount } } } } fragment ProductSummary_product on StoreProduct { additionalProperty { name propertyID value valueReference } advertisement { adId adResponseId } brand { brandName: name } brand { name } deliveryPromiseBadges { typeName } gtin hasSpecifications image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantsByName availableVariations slugsMap } } isVariantOf { name productGroupID skuVariants { activeVariations allVariantProducts { name productID } availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } } id: productID sku slug unitMultiplier unitMultiplier } query ClientManyProductsQuery($after: String, $first: Int!, $selectedFacets: [IStoreSelectedFacet!]!, $sort: StoreSort!, $sponsoredCount: Int, $term: String!) { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets sponsoredCount: $sponsoredCount ) { products { edges { node { ...ProductSummary_product } } pageInfo { totalCount } } } ...ClientManyProducts }",
22
26
  "b668777678c137b8c7004297df4d8b8f2b29ee06": "fragment ProductComparisonFragment_product on StoreProduct { additionalProperty { name propertyID value valueReference } advertisement { adId adResponseId } brand { name } description gtin hasSpecifications image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantProducts { name productID } availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } } id: productID sku skuSpecifications { field { id name originalName } values { fieldId id name originalName } } slug specificationGroups { name originalName specifications { name originalName values } } unitMultiplier } query ClientManyProductsSelectedQuery($productIds: [String!]!) { products(productIds: $productIds) { ...ProductComparisonFragment_product } }",
23
27
  "34ea14c0d4a57ddf9bc11e4be0cd2b5a6506d3d4": "query ClientProfileQuery($id: String!) { profile(id: $id) { addresses { city country geoCoordinate postalCode } } }",