@salesforce/commerce-sdk-react 1.0.0-preview.0 → 1.0.0-preview.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.
- package/CHANGELOG.md +2 -0
- package/README.md +4 -0
- package/auth/index.d.ts +19 -4
- package/auth/index.js +49 -1
- package/auth/storage.d.ts +1 -1
- package/components/ShopperExperience/Component/index.d.ts +1 -1
- package/components/ShopperExperience/Page/index.d.ts +2 -2
- package/components/ShopperExperience/types.d.ts +5 -5
- package/hooks/ShopperBaskets/cache.d.ts +1 -1
- package/hooks/ShopperBaskets/mutation.d.ts +63 -282
- package/hooks/ShopperBaskets/mutation.js +60 -254
- package/hooks/ShopperBaskets/query.d.ts +11 -1
- package/hooks/ShopperBaskets/query.js +10 -0
- package/hooks/ShopperBaskets/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperContexts/cache.d.ts +1 -1
- package/hooks/ShopperContexts/mutation.d.ts +18 -13
- package/hooks/ShopperContexts/mutation.js +16 -11
- package/hooks/ShopperContexts/query.d.ts +4 -2
- package/hooks/ShopperContexts/query.js +3 -1
- package/hooks/ShopperContexts/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperCustomers/cache.d.ts +1 -1
- package/hooks/ShopperCustomers/mutation.d.ts +22 -82
- package/hooks/ShopperCustomers/mutation.js +20 -81
- package/hooks/ShopperCustomers/query.d.ts +28 -3
- package/hooks/ShopperCustomers/query.js +28 -2
- package/hooks/ShopperCustomers/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperExperience/query.d.ts +13 -9
- package/hooks/ShopperExperience/query.js +12 -8
- package/hooks/ShopperExperience/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperGiftCertificates/query.d.ts +3 -1
- package/hooks/ShopperGiftCertificates/query.js +2 -0
- package/hooks/ShopperGiftCertificates/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperLogin/mutation.d.ts +21 -49
- package/hooks/ShopperLogin/mutation.js +19 -41
- package/hooks/ShopperLogin/query.d.ts +9 -1
- package/hooks/ShopperLogin/query.js +8 -0
- package/hooks/ShopperLogin/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperOrders/cache.d.ts +1 -1
- package/hooks/ShopperOrders/mutation.d.ts +21 -25
- package/hooks/ShopperOrders/mutation.js +19 -21
- package/hooks/ShopperOrders/query.d.ts +7 -1
- package/hooks/ShopperOrders/query.js +7 -1
- package/hooks/ShopperOrders/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperProducts/query.d.ts +9 -1
- package/hooks/ShopperProducts/query.js +8 -0
- package/hooks/ShopperProducts/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperPromotions/query.d.ts +5 -1
- package/hooks/ShopperPromotions/query.js +4 -0
- package/hooks/ShopperPromotions/queryKeyHelpers.d.ts +4 -4
- package/hooks/ShopperSearch/query.d.ts +12 -4
- package/hooks/ShopperSearch/query.js +11 -3
- package/hooks/ShopperSearch/queryKeyHelpers.d.ts +4 -4
- package/hooks/types.d.ts +30 -27
- package/hooks/useAccessToken.d.ts +6 -0
- package/hooks/useAccessToken.js +8 -0
- package/hooks/useAuthHelper.d.ts +15 -1
- package/hooks/useAuthHelper.js +19 -0
- package/hooks/useCommerceApi.d.ts +2 -0
- package/hooks/useCommerceApi.js +2 -0
- package/hooks/useCustomerId.d.ts +2 -0
- package/hooks/useCustomerId.js +2 -0
- package/hooks/useCustomerType.d.ts +5 -2
- package/hooks/useCustomerType.js +12 -1
- package/hooks/useEncUserId.d.ts +3 -0
- package/hooks/useEncUserId.js +3 -0
- package/hooks/useLocalStorage.d.ts +1 -1
- package/hooks/useUsid.d.ts +2 -0
- package/hooks/useUsid.js +2 -0
- package/package.json +15 -13
- package/provider.d.ts +27 -1
- package/provider.js +27 -1
- package/scripts/build-and-release-docs.js +1 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { ApiClients, ApiQueryOptions, Argument, DataType, NullableParameters } from '../types';
|
|
3
|
-
|
|
3
|
+
type Client = ApiClients['shopperCustomers'];
|
|
4
4
|
/**
|
|
5
|
-
* Gets a customer
|
|
5
|
+
* Gets a customer's information.
|
|
6
|
+
*
|
|
7
|
+
* @group ShopperCustomers
|
|
8
|
+
* @category Query
|
|
6
9
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
7
10
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
8
11
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomer` endpoint.
|
|
@@ -13,6 +16,8 @@ declare type Client = ApiClients['shopperCustomers'];
|
|
|
13
16
|
export declare const useCustomer: (apiOptions: NullableParameters<Argument<Client['getCustomer']>>, queryOptions?: ApiQueryOptions<Client['getCustomer']>) => UseQueryResult<DataType<Client['getCustomer']>>;
|
|
14
17
|
/**
|
|
15
18
|
* Retrieves a customer's address by address name.
|
|
19
|
+
* @group ShopperCustomers
|
|
20
|
+
* @category Query
|
|
16
21
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
17
22
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
18
23
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerAddress` endpoint.
|
|
@@ -23,6 +28,8 @@ export declare const useCustomer: (apiOptions: NullableParameters<Argument<Clien
|
|
|
23
28
|
export declare const useCustomerAddress: (apiOptions: NullableParameters<Argument<Client['getCustomerAddress']>>, queryOptions?: ApiQueryOptions<Client['getCustomerAddress']>) => UseQueryResult<DataType<Client['getCustomerAddress']>>;
|
|
24
29
|
/**
|
|
25
30
|
* Gets the baskets of a customer.
|
|
31
|
+
* @group ShopperCustomers
|
|
32
|
+
* @category Query
|
|
26
33
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
27
34
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
28
35
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerBaskets` endpoint.
|
|
@@ -32,7 +39,11 @@ export declare const useCustomerAddress: (apiOptions: NullableParameters<Argumen
|
|
|
32
39
|
*/
|
|
33
40
|
export declare const useCustomerBaskets: (apiOptions: NullableParameters<Argument<Client['getCustomerBaskets']>>, queryOptions?: ApiQueryOptions<Client['getCustomerBaskets']>) => UseQueryResult<DataType<Client['getCustomerBaskets']>>;
|
|
34
41
|
/**
|
|
35
|
-
* Returns a pageable list of all customer's orders.
|
|
42
|
+
* Returns a pageable list of all customer's orders.
|
|
43
|
+
*
|
|
44
|
+
* The default page size is 10.
|
|
45
|
+
* @group ShopperCustomers
|
|
46
|
+
* @category Query
|
|
36
47
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
37
48
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
38
49
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerOrders` endpoint.
|
|
@@ -43,6 +54,8 @@ export declare const useCustomerBaskets: (apiOptions: NullableParameters<Argumen
|
|
|
43
54
|
export declare const useCustomerOrders: (apiOptions: NullableParameters<Argument<Client['getCustomerOrders']>>, queryOptions?: ApiQueryOptions<Client['getCustomerOrders']>) => UseQueryResult<DataType<Client['getCustomerOrders']>>;
|
|
44
55
|
/**
|
|
45
56
|
* Retrieves a customer's payment instrument by its ID.
|
|
57
|
+
* @group ShopperCustomers
|
|
58
|
+
* @category Query
|
|
46
59
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
47
60
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
48
61
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerPaymentInstrument` endpoint.
|
|
@@ -53,6 +66,8 @@ export declare const useCustomerOrders: (apiOptions: NullableParameters<Argument
|
|
|
53
66
|
export declare const useCustomerPaymentInstrument: (apiOptions: NullableParameters<Argument<Client['getCustomerPaymentInstrument']>>, queryOptions?: ApiQueryOptions<Client['getCustomerPaymentInstrument']>) => UseQueryResult<DataType<Client['getCustomerPaymentInstrument']>>;
|
|
54
67
|
/**
|
|
55
68
|
* Returns all customer product lists.
|
|
69
|
+
* @group ShopperCustomers
|
|
70
|
+
* @category Query
|
|
56
71
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
57
72
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
58
73
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerProductLists` endpoint.
|
|
@@ -63,6 +78,8 @@ export declare const useCustomerPaymentInstrument: (apiOptions: NullableParamete
|
|
|
63
78
|
export declare const useCustomerProductLists: (apiOptions: NullableParameters<Argument<Client['getCustomerProductLists']>>, queryOptions?: ApiQueryOptions<Client['getCustomerProductLists']>) => UseQueryResult<DataType<Client['getCustomerProductLists']>>;
|
|
64
79
|
/**
|
|
65
80
|
* Returns a customer product list of the given customer and the items in the list.
|
|
81
|
+
* @group ShopperCustomers
|
|
82
|
+
* @category Query
|
|
66
83
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
67
84
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
68
85
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerProductList` endpoint.
|
|
@@ -73,6 +90,8 @@ export declare const useCustomerProductLists: (apiOptions: NullableParameters<Ar
|
|
|
73
90
|
export declare const useCustomerProductList: (apiOptions: NullableParameters<Argument<Client['getCustomerProductList']>>, queryOptions?: ApiQueryOptions<Client['getCustomerProductList']>) => UseQueryResult<DataType<Client['getCustomerProductList']>>;
|
|
74
91
|
/**
|
|
75
92
|
* Returns an item of a customer product list and the actual product details like image, availability and price.
|
|
93
|
+
* @group ShopperCustomers
|
|
94
|
+
* @category Query
|
|
76
95
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
77
96
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
78
97
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerProductListItem` endpoint.
|
|
@@ -83,6 +102,8 @@ export declare const useCustomerProductList: (apiOptions: NullableParameters<Arg
|
|
|
83
102
|
export declare const useCustomerProductListItem: (apiOptions: NullableParameters<Argument<Client['getCustomerProductListItem']>>, queryOptions?: ApiQueryOptions<Client['getCustomerProductListItem']>) => UseQueryResult<DataType<Client['getCustomerProductListItem']>>;
|
|
84
103
|
/**
|
|
85
104
|
* Retrieves all public product lists as defined by the given search term (for example, email OR first name and last name).
|
|
105
|
+
* @group ShopperCustomers
|
|
106
|
+
* @category Query
|
|
86
107
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
87
108
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
88
109
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getPublicProductListsBySearchTerm` endpoint.
|
|
@@ -93,6 +114,8 @@ export declare const useCustomerProductListItem: (apiOptions: NullableParameters
|
|
|
93
114
|
export declare const usePublicProductListsBySearchTerm: (apiOptions: NullableParameters<Argument<Client['getPublicProductListsBySearchTerm']>>, queryOptions?: ApiQueryOptions<Client['getPublicProductListsBySearchTerm']>) => UseQueryResult<DataType<Client['getPublicProductListsBySearchTerm']>>;
|
|
94
115
|
/**
|
|
95
116
|
* Retrieves a public product list by ID and the items under that product list.
|
|
117
|
+
* @group ShopperCustomers
|
|
118
|
+
* @category Query
|
|
96
119
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
97
120
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
98
121
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getPublicProductList` endpoint.
|
|
@@ -103,6 +126,8 @@ export declare const usePublicProductListsBySearchTerm: (apiOptions: NullablePar
|
|
|
103
126
|
export declare const usePublicProductList: (apiOptions: NullableParameters<Argument<Client['getPublicProductList']>>, queryOptions?: ApiQueryOptions<Client['getPublicProductList']>) => UseQueryResult<DataType<Client['getPublicProductList']>>;
|
|
104
127
|
/**
|
|
105
128
|
* Retrieves an item from a public product list and the actual product details like product, image, availability and price.
|
|
129
|
+
* @group ShopperCustomers
|
|
130
|
+
* @category Query
|
|
106
131
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
107
132
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
108
133
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getProductListItem` endpoint.
|
|
@@ -58,8 +58,12 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
58
58
|
// requiredParameters
|
|
59
59
|
// })
|
|
60
60
|
// }
|
|
61
|
+
|
|
61
62
|
/**
|
|
62
|
-
* Gets a customer
|
|
63
|
+
* Gets a customer's information.
|
|
64
|
+
*
|
|
65
|
+
* @group ShopperCustomers
|
|
66
|
+
* @category Query
|
|
63
67
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
64
68
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
65
69
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomer` endpoint.
|
|
@@ -98,6 +102,8 @@ const useCustomer = (apiOptions, queryOptions = {}) => {
|
|
|
98
102
|
};
|
|
99
103
|
/**
|
|
100
104
|
* Retrieves a customer's address by address name.
|
|
105
|
+
* @group ShopperCustomers
|
|
106
|
+
* @category Query
|
|
101
107
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
102
108
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
103
109
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerAddress` endpoint.
|
|
@@ -137,6 +143,8 @@ const useCustomerAddress = (apiOptions, queryOptions = {}) => {
|
|
|
137
143
|
};
|
|
138
144
|
/**
|
|
139
145
|
* Gets the baskets of a customer.
|
|
146
|
+
* @group ShopperCustomers
|
|
147
|
+
* @category Query
|
|
140
148
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
141
149
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
142
150
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerBaskets` endpoint.
|
|
@@ -175,7 +183,11 @@ const useCustomerBaskets = (apiOptions, queryOptions = {}) => {
|
|
|
175
183
|
});
|
|
176
184
|
};
|
|
177
185
|
/**
|
|
178
|
-
* Returns a pageable list of all customer's orders.
|
|
186
|
+
* Returns a pageable list of all customer's orders.
|
|
187
|
+
*
|
|
188
|
+
* The default page size is 10.
|
|
189
|
+
* @group ShopperCustomers
|
|
190
|
+
* @category Query
|
|
179
191
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
180
192
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
181
193
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerOrders` endpoint.
|
|
@@ -215,6 +227,8 @@ const useCustomerOrders = (apiOptions, queryOptions = {}) => {
|
|
|
215
227
|
};
|
|
216
228
|
/**
|
|
217
229
|
* Retrieves a customer's payment instrument by its ID.
|
|
230
|
+
* @group ShopperCustomers
|
|
231
|
+
* @category Query
|
|
218
232
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
219
233
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
220
234
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerPaymentInstrument` endpoint.
|
|
@@ -254,6 +268,8 @@ const useCustomerPaymentInstrument = (apiOptions, queryOptions = {}) => {
|
|
|
254
268
|
};
|
|
255
269
|
/**
|
|
256
270
|
* Returns all customer product lists.
|
|
271
|
+
* @group ShopperCustomers
|
|
272
|
+
* @category Query
|
|
257
273
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
258
274
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
259
275
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerProductLists` endpoint.
|
|
@@ -293,6 +309,8 @@ const useCustomerProductLists = (apiOptions, queryOptions = {}) => {
|
|
|
293
309
|
};
|
|
294
310
|
/**
|
|
295
311
|
* Returns a customer product list of the given customer and the items in the list.
|
|
312
|
+
* @group ShopperCustomers
|
|
313
|
+
* @category Query
|
|
296
314
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
297
315
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
298
316
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerProductList` endpoint.
|
|
@@ -332,6 +350,8 @@ const useCustomerProductList = (apiOptions, queryOptions = {}) => {
|
|
|
332
350
|
};
|
|
333
351
|
/**
|
|
334
352
|
* Returns an item of a customer product list and the actual product details like image, availability and price.
|
|
353
|
+
* @group ShopperCustomers
|
|
354
|
+
* @category Query
|
|
335
355
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
336
356
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
337
357
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getCustomerProductListItem` endpoint.
|
|
@@ -371,6 +391,8 @@ const useCustomerProductListItem = (apiOptions, queryOptions = {}) => {
|
|
|
371
391
|
};
|
|
372
392
|
/**
|
|
373
393
|
* Retrieves all public product lists as defined by the given search term (for example, email OR first name and last name).
|
|
394
|
+
* @group ShopperCustomers
|
|
395
|
+
* @category Query
|
|
374
396
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
375
397
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
376
398
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getPublicProductListsBySearchTerm` endpoint.
|
|
@@ -410,6 +432,8 @@ const usePublicProductListsBySearchTerm = (apiOptions, queryOptions = {}) => {
|
|
|
410
432
|
};
|
|
411
433
|
/**
|
|
412
434
|
* Retrieves a public product list by ID and the items under that product list.
|
|
435
|
+
* @group ShopperCustomers
|
|
436
|
+
* @category Query
|
|
413
437
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
414
438
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
415
439
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getPublicProductList` endpoint.
|
|
@@ -449,6 +473,8 @@ const usePublicProductList = (apiOptions, queryOptions = {}) => {
|
|
|
449
473
|
};
|
|
450
474
|
/**
|
|
451
475
|
* Retrieves an item from a public product list and the actual product details like product, image, availability and price.
|
|
476
|
+
* @group ShopperCustomers
|
|
477
|
+
* @category Query
|
|
452
478
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
453
479
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
454
480
|
* @returns A TanStack Query query hook with data from the Shopper Customers `getProductListItem` endpoint.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ShopperCustomers } from 'commerce-sdk-isomorphic';
|
|
2
2
|
import { Argument, ExcludeTail } from '../types';
|
|
3
|
-
|
|
3
|
+
type Client = ShopperCustomers<{
|
|
4
4
|
shortCode: string;
|
|
5
5
|
}>;
|
|
6
|
-
|
|
7
|
-
export
|
|
6
|
+
type Params<T extends keyof QueryKeys> = Partial<Argument<Client[T]>['parameters']>;
|
|
7
|
+
export type QueryKeys = {
|
|
8
8
|
getExternalProfile: [
|
|
9
9
|
'/commerce-sdk-react',
|
|
10
10
|
'/organizations/',
|
|
@@ -115,7 +115,7 @@ export declare type QueryKeys = {
|
|
|
115
115
|
Params<'getProductListItem'>
|
|
116
116
|
];
|
|
117
117
|
};
|
|
118
|
-
|
|
118
|
+
type QueryKeyHelper<T extends keyof QueryKeys> = {
|
|
119
119
|
/**
|
|
120
120
|
* Reduces the given parameters (which may have additional, unknown properties) to an object
|
|
121
121
|
* containing *only* the properties required for an endpoint.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { ApiClients, ApiQueryOptions, Argument, DataType, NullableParameters } from '../types';
|
|
3
|
-
|
|
3
|
+
type Client = ApiClients['shopperExperience'];
|
|
4
4
|
/**
|
|
5
|
-
* Get Page Designer pages.
|
|
6
|
-
|
|
7
|
-
Either `categoryId` or `productId` must be given in addition to `aspectTypeId`. Because only a single page-to-product and page-to-category assignment per aspect type can be authored today, the returned results contains one element at most.
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
* Get Page Designer pages.
|
|
6
|
+
*
|
|
7
|
+
* The results will apply the visibility rules for each page's components, such as personalization or scheduled visibility. Either `categoryId` or `productId` must be given in addition to `aspectTypeId`. Because only a single page-to-product and page-to-category assignment per aspect type can be authored today, the returned results contains one element at most.
|
|
8
|
+
* **Important**: Because this resource uses the GET method, you must not pass sensitive data (payment card information, for example) and must not perform any transactional processes within the server-side scripts that are run for the page and components.
|
|
9
|
+
* @group ShopperExperience
|
|
10
|
+
* @category Query
|
|
10
11
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
11
12
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
12
13
|
* @returns A TanStack Query query hook with data from the Shopper Experience `getPages` endpoint.
|
|
@@ -16,9 +17,12 @@ Either `categoryId` or `productId` must be given in addition to `aspectTypeId`.
|
|
|
16
17
|
*/
|
|
17
18
|
export declare const usePages: (apiOptions: NullableParameters<Argument<Client['getPages']>>, queryOptions?: ApiQueryOptions<Client['getPages']>) => UseQueryResult<DataType<Client['getPages']>>;
|
|
18
19
|
/**
|
|
19
|
-
* Get a Page Designer page based on a single page ID.
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
* Get a Page Designer page based on a single page ID.
|
|
21
|
+
*
|
|
22
|
+
* The results will apply the visibility rules for the page's components, such as personalization or scheduled visibility.
|
|
23
|
+
* **Important**: Because this resource uses the GET method, you must not pass sensitive data (payment card information, for example) and must not perform any transactional processes within the server-side scripts that are run for the page and components.
|
|
24
|
+
* @group ShopperExperience
|
|
25
|
+
* @category Query
|
|
22
26
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
23
27
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
24
28
|
* @returns A TanStack Query query hook with data from the Shopper Experience `getPage` endpoint.
|
|
@@ -19,11 +19,12 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
19
19
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
20
20
|
*/
|
|
21
21
|
/**
|
|
22
|
-
* Get Page Designer pages.
|
|
23
|
-
|
|
24
|
-
Either `categoryId` or `productId` must be given in addition to `aspectTypeId`. Because only a single page-to-product and page-to-category assignment per aspect type can be authored today, the returned results contains one element at most.
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
* Get Page Designer pages.
|
|
23
|
+
*
|
|
24
|
+
* The results will apply the visibility rules for each page's components, such as personalization or scheduled visibility. Either `categoryId` or `productId` must be given in addition to `aspectTypeId`. Because only a single page-to-product and page-to-category assignment per aspect type can be authored today, the returned results contains one element at most.
|
|
25
|
+
* **Important**: Because this resource uses the GET method, you must not pass sensitive data (payment card information, for example) and must not perform any transactional processes within the server-side scripts that are run for the page and components.
|
|
26
|
+
* @group ShopperExperience
|
|
27
|
+
* @category Query
|
|
27
28
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
28
29
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
29
30
|
* @returns A TanStack Query query hook with data from the Shopper Experience `getPages` endpoint.
|
|
@@ -61,9 +62,12 @@ const usePages = (apiOptions, queryOptions = {}) => {
|
|
|
61
62
|
});
|
|
62
63
|
};
|
|
63
64
|
/**
|
|
64
|
-
* Get a Page Designer page based on a single page ID.
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
* Get a Page Designer page based on a single page ID.
|
|
66
|
+
*
|
|
67
|
+
* The results will apply the visibility rules for the page's components, such as personalization or scheduled visibility.
|
|
68
|
+
* **Important**: Because this resource uses the GET method, you must not pass sensitive data (payment card information, for example) and must not perform any transactional processes within the server-side scripts that are run for the page and components.
|
|
69
|
+
* @group ShopperExperience
|
|
70
|
+
* @category Query
|
|
67
71
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
68
72
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
69
73
|
* @returns A TanStack Query query hook with data from the Shopper Experience `getPage` endpoint.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ShopperExperience } from 'commerce-sdk-isomorphic';
|
|
2
2
|
import { Argument, ExcludeTail } from '../types';
|
|
3
|
-
|
|
3
|
+
type Client = ShopperExperience<{
|
|
4
4
|
shortCode: string;
|
|
5
5
|
}>;
|
|
6
|
-
|
|
7
|
-
export
|
|
6
|
+
type Params<T extends keyof QueryKeys> = Partial<Argument<Client[T]>['parameters']>;
|
|
7
|
+
export type QueryKeys = {
|
|
8
8
|
getPages: [
|
|
9
9
|
'/commerce-sdk-react',
|
|
10
10
|
'/organizations/',
|
|
@@ -21,7 +21,7 @@ export declare type QueryKeys = {
|
|
|
21
21
|
Params<'getPage'>
|
|
22
22
|
];
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type QueryKeyHelper<T extends keyof QueryKeys> = {
|
|
25
25
|
/**
|
|
26
26
|
* Reduces the given parameters (which may have additional, unknown properties) to an object
|
|
27
27
|
* containing *only* the properties required for an endpoint.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { ApiClients, ApiQueryOptions, Argument, DataType, NullableParameters } from '../types';
|
|
3
|
-
|
|
3
|
+
type Client = ApiClients['shopperGiftCertificates'];
|
|
4
4
|
/**
|
|
5
5
|
* Action to retrieve an existing gift certificate.
|
|
6
|
+
* @group ShopperGiftCertificates
|
|
7
|
+
* @category Query
|
|
6
8
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
7
9
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
8
10
|
* @returns A TanStack Query query hook with data from the Shopper Gift Certificates `getGiftCertificate` endpoint.
|
|
@@ -25,6 +25,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
27
|
* Action to retrieve an existing gift certificate.
|
|
28
|
+
* @group ShopperGiftCertificates
|
|
29
|
+
* @category Query
|
|
28
30
|
* @parameter apiOptions - Options to pass through to `commerce-sdk-isomorphic`, with `null` accepted for unset API parameters.
|
|
29
31
|
* @parameter queryOptions - TanStack Query query options, with `enabled` by default set to check that all required API parameters have been set.
|
|
30
32
|
* @returns A TanStack Query query hook with data from the Shopper Gift Certificates `getGiftCertificate` endpoint.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ShopperGiftCertificates } from 'commerce-sdk-isomorphic';
|
|
2
2
|
import { Argument, ExcludeTail } from '../types';
|
|
3
|
-
|
|
3
|
+
type Client = ShopperGiftCertificates<{
|
|
4
4
|
shortCode: string;
|
|
5
5
|
}>;
|
|
6
|
-
|
|
7
|
-
export
|
|
6
|
+
type Params<T extends keyof QueryKeys> = Partial<Argument<Client[T]>['parameters']>;
|
|
7
|
+
export type QueryKeys = {
|
|
8
8
|
getGiftCertificate: [
|
|
9
9
|
'/commerce-sdk-react',
|
|
10
10
|
'/organizations/',
|
|
@@ -13,7 +13,7 @@ export declare type QueryKeys = {
|
|
|
13
13
|
Params<'getGiftCertificate'>
|
|
14
14
|
];
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type QueryKeyHelper<T extends keyof QueryKeys> = {
|
|
17
17
|
/**
|
|
18
18
|
* Reduces the given parameters (which may have additional, unknown properties) to an object
|
|
19
19
|
* containing *only* the properties required for an endpoint.
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ApiClients, Argument, DataType } from '../types';
|
|
2
2
|
import { UseMutationResult } from '@tanstack/react-query';
|
|
3
|
-
|
|
4
|
-
/**
|
|
3
|
+
type Client = ApiClients['shopperLogin'];
|
|
4
|
+
/**
|
|
5
|
+
* Mutations available for Shopper Login
|
|
6
|
+
* @group ShopperLogin
|
|
7
|
+
* @category Mutation
|
|
8
|
+
* @enum
|
|
9
|
+
*/
|
|
5
10
|
export declare const ShopperLoginMutations: {
|
|
6
11
|
/**
|
|
7
12
|
* Allows the customer to authenticate when their identity provider is down.
|
|
8
13
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `authorizePasswordlessCustomer` endpoint.
|
|
9
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=authorizePasswordlessCustomer| Salesforce Developer Center} for more information about the API endpoint.
|
|
10
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#authorizepasswordlesscustomer | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
11
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
12
14
|
*/
|
|
13
15
|
readonly AuthorizePasswordlessCustomer: "authorizePasswordlessCustomer";
|
|
14
16
|
/**
|
|
@@ -18,30 +20,12 @@ Required header: Authorization header bearer token of the Shopper access token t
|
|
|
18
20
|
|
|
19
21
|
Required parameters: `refresh token`, `channel_id`, and `client`.
|
|
20
22
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `logoutCustomer` endpoint.
|
|
21
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=logoutCustomer| Salesforce Developer Center} for more information about the API endpoint.
|
|
22
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#logoutcustomer | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
23
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
24
23
|
*/
|
|
25
24
|
readonly LogoutCustomer: "logoutCustomer";
|
|
26
25
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
For a guest user, get the shopper JWT access token and a refresh token. This is where a client appplication is able to get an access token for the guest user through the back channel (a trusted server) by passing in the client credentials.
|
|
32
|
-
|
|
33
|
-
For a public client using PKCE, an application will pass a PKCE `code_verifier`` that matches the `code_challenge`` that was used to `authorize` the customer along with the authorization code.
|
|
34
|
-
|
|
35
|
-
When refreshing the access token with a private client ID and client secret, the refresh token is _not_ regenerated. However, when refreshing the access token with a public client ID, the refresh token is _always_ regenerated. The old refresh token is voided with every refresh call, so the refresh token on the client needs to be replaced to always store the new refresh token.
|
|
36
|
-
|
|
37
|
-
See the Body section for required parameters, including `grant_type` and others, depending on the value of `grant_type`.
|
|
38
|
-
|
|
39
|
-
**Important**: We strongly recommended using the `channel_id` query parameter because **it will be required in the future**.
|
|
40
|
-
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `getAccessToken` endpoint.
|
|
41
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=getAccessToken| Salesforce Developer Center} for more information about the API endpoint.
|
|
42
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#getaccesstoken | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
43
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
44
|
-
*/
|
|
26
|
+
* Get the shopper or guest JWT access token and a refresh token. This is the second step of the OAuth 2.1 authorization code flow.
|
|
27
|
+
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `getAccessToken` endpoint.
|
|
28
|
+
*/
|
|
45
29
|
readonly GetAccessToken: "getAccessToken";
|
|
46
30
|
/**
|
|
47
31
|
* Get a shopper JWT access token for a registered customer using session bridge.
|
|
@@ -50,9 +34,6 @@ For public client id requests the grant_type must be set to `session_bridge`.
|
|
|
50
34
|
|
|
51
35
|
For private client_id and secret the grant_type must be set to `client_credentials` along with a basic authorization header.
|
|
52
36
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `getSessionBridgeAccessToken` endpoint.
|
|
53
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=getSessionBridgeAccessToken| Salesforce Developer Center} for more information about the API endpoint.
|
|
54
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#getsessionbridgeaccesstoken | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
55
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
56
37
|
*/
|
|
57
38
|
readonly GetSessionBridgeAccessToken: "getSessionBridgeAccessToken";
|
|
58
39
|
/**
|
|
@@ -62,9 +43,6 @@ For external trusted-system requests, a basic authorization header that includes
|
|
|
62
43
|
|
|
63
44
|
For internal trusted-system requests, the bearer token must be a C2C JWT.
|
|
64
45
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `getTrustedSystemAccessToken` endpoint.
|
|
65
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=getTrustedSystemAccessToken| Salesforce Developer Center} for more information about the API endpoint.
|
|
66
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#gettrustedsystemaccesstoken | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
67
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
68
46
|
*/
|
|
69
47
|
readonly GetTrustedSystemAccessToken: "getTrustedSystemAccessToken";
|
|
70
48
|
/**
|
|
@@ -74,46 +52,40 @@ If using a SLAS private client ID, you must also use an `_sfdc_client_auth` head
|
|
|
74
52
|
|
|
75
53
|
The value of the `_sfdc_client_auth` header must be a Base64-encoded string. The string is composed of a SLAS private client ID and client secret, separated by a colon (`:`). For example, `privateClientId:privateClientsecret` becomes `cHJpdmF0ZUNsaWVudElkOnByaXZhdGVDbGllbnRzZWNyZXQ=` after Base64 encoding.
|
|
76
54
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `getTrustedAgentAccessToken` endpoint.
|
|
77
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=getTrustedAgentAccessToken| Salesforce Developer Center} for more information about the API endpoint.
|
|
78
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#gettrustedagentaccesstoken | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
79
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
80
55
|
*/
|
|
81
56
|
readonly GetTrustedAgentAccessToken: "getTrustedAgentAccessToken";
|
|
82
57
|
/**
|
|
83
58
|
* Creates a new password
|
|
84
59
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `resetPassword` endpoint.
|
|
85
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=resetPassword| Salesforce Developer Center} for more information about the API endpoint.
|
|
86
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#resetpassword | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
87
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
88
60
|
*/
|
|
89
61
|
readonly ResetPassword: "resetPassword";
|
|
90
62
|
/**
|
|
91
63
|
* Issue a shopper token (JWT).
|
|
92
64
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `getPasswordLessAccessToken` endpoint.
|
|
93
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=getPasswordLessAccessToken| Salesforce Developer Center} for more information about the API endpoint.
|
|
94
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#getpasswordlessaccesstoken | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
95
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
96
65
|
*/
|
|
97
66
|
readonly GetPasswordLessAccessToken: "getPasswordLessAccessToken";
|
|
98
67
|
/**
|
|
99
68
|
* Invalidate the refresh token. A basic auth header with Base64-encoded `clientId:secret` is required in the Authorization header, and the refresh token to be revoked is required in the body.
|
|
100
69
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `revokeToken` endpoint.
|
|
101
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=revokeToken| Salesforce Developer Center} for more information about the API endpoint.
|
|
102
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#revoketoken | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
103
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
104
70
|
*/
|
|
105
71
|
readonly RevokeToken: "revokeToken";
|
|
106
72
|
/**
|
|
107
73
|
* Returns the token properties. A basic auth header with Base64-encoded `clientId:secret` is required in the Authorization header, as well as an access token or refresh token. Use `token_type_hint` to help identify the token.
|
|
108
74
|
* @returns A TanStack Query mutation hook for interacting with the Shopper Login `introspectToken` endpoint.
|
|
109
|
-
* @see {@link https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-login?meta=introspectToken| Salesforce Developer Center} for more information about the API endpoint.
|
|
110
|
-
* @see {@link https://salesforcecommercecloud.github.io/commerce-sdk-isomorphic/classes/shopperlogin.shopperlogin-1.html#introspecttoken | `commerce-sdk-isomorphic` documentation} for more information on the parameters and returned data type.
|
|
111
|
-
* @see {@link https://tanstack.com/query/latest/docs/react/reference/useMutation | TanStack Query `useMutation` reference} for more information about the return value.
|
|
112
75
|
*/
|
|
113
76
|
readonly IntrospectToken: "introspectToken";
|
|
114
77
|
};
|
|
115
|
-
/**
|
|
116
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Mutation for Shopper Login.
|
|
80
|
+
* @group ShopperLogin
|
|
81
|
+
* @category Mutation
|
|
82
|
+
*/
|
|
83
|
+
export type ShopperLoginMutation = (typeof ShopperLoginMutations)[keyof typeof ShopperLoginMutations];
|
|
84
|
+
/**
|
|
85
|
+
* Mutation hook for Shopper Login.
|
|
86
|
+
* @group ShopperLogin
|
|
87
|
+
* @category Mutation
|
|
88
|
+
*/
|
|
117
89
|
export declare function useShopperLoginMutation<Mutation extends ShopperLoginMutation>(mutation: Mutation): UseMutationResult<DataType<Client[Mutation]>, unknown, Argument<Client[Mutation]>>;
|
|
118
90
|
export {};
|
|
119
91
|
//# sourceMappingURL=mutation.d.ts.map
|