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modules/@ori-events/favorites-updated/esm/index.js","webpack://orifavoritesprovider/../../node_modules/@ori-events/request-favorites/esm/index.js","webpack://orifavoritesprovider/../../node_modules/@ori-events/toggle-favorite/esm/index.js","webpack://orifavoritesprovider/../../node_modules/@ori/auth/dist/esm/TokenEventNames.js","webpack://orifavoritesprovider/../../node_modules/@ori/auth/dist/esm/TokenRoutes.js","webpack://orifavoritesprovider/../../node_modules/@ori/auth/dist/esm/TokenSessionStorageKeys.js","webpack://orifavoritesprovider/../../node_modules/@ori/auth/dist/esm/constants.js","webpack://orifavoritesprovider/../../node_modules/jwt-decode/build/jwt-decode.esm.js","webpack://orifavoritesprovider/../../node_modules/@ori/auth/dist/esm/tokens/OidcToken.js","webpack://orifavoritesprovider/../../node_modules/@ori/auth/dist/esm/tokens/OidcAccessToken.js","webpack://orifavoritesprovider/../../node_modules/@ori/auth/dist/esm/utils/isAuthenticatedCustomer.js","webpack://orifavoritesprovider/../../node_modules/@ori/global-api-client-react/esm/apiClientContext.js","webpack://orifavoritesprovider/../../node_modules/@ori/global-api-client-react/esm/useApiClient.js","webpack://orifavoritesprovider/../../node_modules/@ori/global-api-client-react/esm/api.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/bind.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/utils.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/AxiosError.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/toFormData.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/buildURL.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/InterceptorManager.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/defaults/transitional.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/platform/browser/index.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/formDataToJSON.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/defaults/index.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/parseHeaders.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/AxiosHeaders.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/transformData.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/cancel/isCancel.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/cancel/CanceledError.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/cookies.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/buildFullPath.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/combineURLs.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/speedometer.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/adapters/xhr.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/adapters/adapters.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/null.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/settle.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/parseProtocol.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/dispatchRequest.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/mergeConfig.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/env/data.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/validator.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/core/Axios.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/cancel/CancelToken.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/axios.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/spread.js","webpack://orifavoritesprovider/../../node_modules/axios/lib/helpers/isAxiosError.js","webpack://orifavoritesprovider/../../node_modules/axios-retry/lib/esm/index.js","webpack://orifavoritesprovider/../../node_modules/@ori/global-api-client-react/esm/applyDateMiddleware.js","webpack://orifavoritesprovider/../../node_modules/@ori/global-api-client-react/esm/customQuerySerializer.js","webpack://orifavoritesprovider/../../node_modules/@ori/global-api-client-react/esm/prepareToken.js","webpack://orifavoritesprovider/../../node_modules/@ori/global-api-client-react/esm/ApiClient.js","webpack://orifavoritesprovider/../../node_modules/@ori/global-api-client-react/esm/ApiClientProvider.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://orifavoritesprovider/../../node_modules/@ori/presentation-components/esm/components/ErrorBoundary/ErrorBoundary.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://orifavoritesprovider/../../node_modules/@ori/ts-utils/dist/esm/utils/isNonNullable.js","webpack://orifavoritesprovider/../../node_modules/camelcase-keys/index.js","webpack://orifavoritesprovider/../../node_modules/camelcase-keys/node_modules/camelcase/index.js","webpack://orifavoritesprovider/../../node_modules/is-retry-allowed/index.js","webpack://orifavoritesprovider/../../node_modules/map-obj/index.js","webpack://orifavoritesprovider/../../node_modules/quick-lru/index.js","webpack://orifavoritesprovider/../../node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://orifavoritesprovider/../../node_modules/react/cjs/react.production.min.js","webpack://orifavoritesprovider/../../node_modules/react/index.js","webpack://orifavoritesprovider/../../node_modules/react/jsx-runtime.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://orifavoritesprovider/../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://orifavoritesprovider/../../node_modules/swr/dist/index.mjs"],"sourcesContent":["export var Name = 'favorites-updated';\nexport var FavoritesUpdated = Name;","export var Name = 'request-favorites';\nexport var RequestFavorites = Name; // eslint-disable-next-line @typescript-eslint/no-empty-interface -- Used only to request state update across SPAs.","export var Name = 'toggle-favorite';\nexport var ToggleFavorite = Name;","/**\n * Token events dictionary\n */\nexport let TokenEventNames = /*#__PURE__*/function (TokenEventNames) {\n TokenEventNames[\"PUBLIC_ACCESS\"] = \"publicTokenUpdated\";\n TokenEventNames[\"USER_ACCESS\"] = \"tokenUpdated\";\n return TokenEventNames;\n}({});\n//# sourceMappingURL=TokenEventNames.js.map","/**\n * An Online token routes dictionary\n */\nexport let TokenRoutes = /*#__PURE__*/function (TokenRoutes) {\n TokenRoutes[\"PUBLIC_ACCESS\"] = \"/system/ajax/ApiGateway/GetSpaTokenAsync\";\n TokenRoutes[\"USER_ACCESS\"] = \"/system/ajax/ApiGateway/GetUserAccessTokenAsync\";\n return TokenRoutes;\n}({});\n//# sourceMappingURL=TokenRoutes.js.map","/**\n * Token session storage dictionary\n */\nexport let TokenSessionStorageKeys = /*#__PURE__*/function (TokenSessionStorageKeys) {\n TokenSessionStorageKeys[\"PUBLIC_ACCESS\"] = \"PublicToken\";\n TokenSessionStorageKeys[\"USER_ACCESS\"] = \"AuthToken\";\n return TokenSessionStorageKeys;\n}({});\n//# sourceMappingURL=TokenSessionStorageKeys.js.map","import { TokenEventNames } from './TokenEventNames';\nimport { TokenRoutes } from './TokenRoutes';\nimport { TokenSessionStorageKeys } from './TokenSessionStorageKeys';\nexport const AUTHORIZATION_CODE_STORAGE_KEY = 'AuthCode';\n// TODO: remove during refactor\n/**\n * @deprecated use TokenSessionStorageKeys instead\n */\nexport const ANONYMOUS_TOKEN_STORAGE_KEY = 'PublicToken';\n// TODO: remove during refactor\n/**\n * @deprecated use TokenSessionStorageKeys instead\n */\nexport const USER_TOKEN_STORAGE_KEY = 'AuthToken';\nexport const ID_TOKEN_STORAGE_KEY = 'AuthIdToken';\nexport const AUTH_REDIRECT_URL_STORAGE_KEY = 'AuthRedirectUrl';\nexport const AUTH_REDIRECT_URI_STORAGE_KEY = 'AuthRedirectUri';\nexport const CODE_VERIFIER_STORAGE_KEY = 'AuthCodeVerifier';\nexport const AUTH_STATE_STORAGE_KEY = 'AuthState';\nexport const NONCE_STORAGE_KEY = 'AuthNonce';\n\n/** User ID for user that is not logged in */\nexport const NOT_LOGGED_IN_USER_ID = -1;\n\n/**\n * Identity server client ID for authentication.\n */\nexport const IDENTITY_CLIENT_ID = 'SPADev';\n\n/**\n * Token configuration under token routes. This is mainly used in TokenClient to differentiate configuration between instances by route\n */\nexport const tokenConfigurationForTokenRoutes = {\n [TokenRoutes.PUBLIC_ACCESS]: {\n eventName: TokenEventNames.PUBLIC_ACCESS,\n sessionStorageKey: TokenSessionStorageKeys.PUBLIC_ACCESS\n },\n [TokenRoutes.USER_ACCESS]: {\n eventName: TokenEventNames.USER_ACCESS,\n sessionStorageKey: TokenSessionStorageKeys.USER_ACCESS\n }\n};\n//# sourceMappingURL=constants.js.map","function e(e){this.message=e}e.prototype=new Error,e.prototype.name=\"InvalidCharacterError\";var r=\"undefined\"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,\"\");if(t.length%4==1)throw new e(\"'atob' failed: The string to be decoded is not correctly encoded.\");for(var n,o,a=0,i=0,c=\"\";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\".indexOf(o);return c};function t(e){var t=e.replace(/-/g,\"+\").replace(/_/g,\"/\");switch(t.length%4){case 0:break;case 2:t+=\"==\";break;case 3:t+=\"=\";break;default:throw\"Illegal base64url string!\"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t=\"0\"+t),\"%\"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e}function o(e,r){if(\"string\"!=typeof e)throw new n(\"Invalid token specified\");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(\".\")[o]))}catch(e){throw new n(\"Invalid token specified: \"+e.message)}}n.prototype=new Error,n.prototype.name=\"InvalidTokenError\";export default o;export{n as InvalidTokenError};\n//# sourceMappingURL=jwt-decode.esm.js.map\n","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\n/* eslint-disable @typescript-eslint/naming-convention -- Token properties don't follow our rules */\n\nimport jwtDecode from 'jwt-decode';\nexport class OidcToken {\n constructor(token) {\n _defineProperty(this, \"token\", void 0);\n _defineProperty(this, \"payload\", void 0);\n _defineProperty(this, \"toString\", () => this.token);\n _defineProperty(this, \"getClaim\", claim => this.payload[claim]);\n if (typeof token === 'string') {\n this.token = token;\n } else {\n this.token = token.Token;\n }\n this.payload = jwtDecode(this.token);\n }\n}\n//# sourceMappingURL=OidcToken.js.map","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport { OidcToken } from './OidcToken';\nexport class OidcAccessToken extends OidcToken {\n constructor(token) {\n super(typeof token === 'string' ? token.replace(/^Bearer /, '') : token);\n _defineProperty(this, \"toString\", () => `Bearer ${this.token}`);\n }\n}\n//# sourceMappingURL=OidcAccessToken.js.map","import { NOT_LOGGED_IN_USER_ID } from '../constants';\nexport const isAuthenticatedCustomer = customerId => customerId != null && customerId !== NOT_LOGGED_IN_USER_ID;\n//# sourceMappingURL=isAuthenticatedCustomer.js.map","import { createContext } from 'react';\nexport var apiClientContext = createContext(undefined);\n\n//# sourceMappingURL=apiClientContext.js.map\n","import { useContext } from 'react';\nimport { apiClientContext } from './apiClientContext';\nexport var useApiClient = function () {\n var context = useContext(apiClientContext);\n if (context) {\n return context;\n }\n throw new Error('ApiClientContext value must be set.');\n};\n\n//# sourceMappingURL=useApiClient.js.map\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { useApiClient } from './useApiClient';\nimport useSwr from 'swr';\n/**\n * Accepts a term for customer\n * @summary customers/{customerId}/acceptedTerms\n */\nexport var createCustomerAcceptedTerm = function (client, customerId, globalCustomersAcceptedTermDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/acceptedTerms\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersAcceptedTermDto,\n }, options);\n};\n/**\n * Change password based on the old one.\n * @summary accounts/my/changePassword\n */\nexport var updateAccountsMyChangePassword = function (client, globalAccountsChangePasswordDto, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/accounts/my/changePassword\",\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalAccountsChangePasswordDto,\n params: params,\n }, options);\n};\n/**\n * Retrieves the account info for account with given login string.\n * @summary accounts/my\n */\nexport var getAccountsMy = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/accounts/my\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetAccountsMyKey = function (params) {\n return __spreadArray([\"/accounts/my\"], (params ? [params] : []), true);\n};\n/**\n * @summary accounts/my\n */\nexport var useGetAccountsMy = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAccountsMyKey(params) : null); });\n var swrFn = function () {\n return getAccountsMy(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * First step of password reset. Send temporary password to the user over notification channel(s)\n * @summary accounts/my/sendTemporaryPassword\n */\nexport var createAccountsMySendTemporaryPassword = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/accounts/my/sendTemporaryPassword\", method: 'post', headers: headers, params: params }, options);\n};\n/**\n * Second step of password reset. Reset password based on temporary and new password.\n * @summary accounts/my/resetPassword\n */\nexport var updateAccountsMyResetPassword = function (client, globalAccountsResetPasswordDto, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/accounts/my/resetPassword\",\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalAccountsResetPasswordDto,\n params: params,\n }, options);\n};\n/**\n * Returns metadata for change password endpoint\nTenant name\n * @summary accounts/changePasswordMetadata\n */\nexport var getAccountsChangePasswordMetadata = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/accounts/changePasswordMetadata\", method: 'get', headers: headers }, options);\n};\nexport var getGetAccountsChangePasswordMetadataKey = function () {\n return [\"/accounts/changePasswordMetadata\"];\n};\n/**\n * @summary accounts/changePasswordMetadata\n */\nexport var useGetAccountsChangePasswordMetadata = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAccountsChangePasswordMetadataKey() : null); });\n var swrFn = function () {\n return getAccountsChangePasswordMetadata(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides set of permissions based on identity in access token\n * @summary accounts/my/permissions\n */\nexport var getAccountsMyPermissions = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/accounts/my/permissions\", method: 'get', headers: headers }, options);\n};\nexport var getGetAccountsMyPermissionsKey = function () { return [\"/accounts/my/permissions\"]; };\n/**\n * @summary accounts/my/permissions\n */\nexport var useGetAccountsMyPermissions = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAccountsMyPermissionsKey() : null); });\n var swrFn = function () {\n return getAccountsMyPermissions(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about customer activation\n * @summary customers/{customerId}/activationRequest\n */\nexport var getCustomerActivationRequest = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/activationRequest\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerActivationRequestKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/activationRequest\")];\n};\n/**\n * @summary customers/{customerId}/activationRequest\n */\nexport var useGetCustomerActivationRequest = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerActivationRequestKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerActivationRequest(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Requests resending of activation code for given customer\n * @summary customers/{customerId}/activationRequest\n */\nexport var updateCustomerActivationRequest = function (client, customerId, globalCustomersActivationRequestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/activationRequest\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersActivationRequestDto,\n }, options);\n};\n/**\n * GET: Gets customer addresses\n * @summary customers/{customerId}/addresses\n */\nexport var getCustomerAddresses = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/addresses\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerAddressesKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/addresses\")];\n};\n/**\n * @summary customers/{customerId}/addresses\n */\nexport var useGetCustomerAddresses = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerAddressesKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerAddresses(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates customer address\n * @summary customers/{customerId}/addresses\n */\nexport var createCustomerAddress = function (client, customerId, globalCustomersAddressDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/addresses\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersAddressDtoBody,\n }, options);\n};\n/**\n * PUT: Updates customer address\n * @summary customers/{customerId}/addresses/{addressId}\n */\nexport var updateCustomerAddress = function (client, customerId, addressId, globalCustomersAddressDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/addresses/\").concat(addressId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersAddressDtoBody,\n }, options);\n};\n/**\n * DELETE: Remove customer address identified by id\n * @summary customers/{customerId}/addresses/{addressId}\n */\nexport var deleteCustomerAddress = function (client, customerId, addressId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/addresses/\").concat(addressId), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Gets metadata information for address endpoints of the customer with given customer id\n * @summary customers/{customerId}/addressesMetadata\n */\nexport var getCustomerAddressesMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/addressesMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerAddressesMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/addressesMetadata\")];\n};\n/**\n * @summary customers/{customerId}/addressesMetadata\n */\nexport var useGetCustomerAddressesMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerAddressesMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerAddressesMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns options for address formatting\n * @summary addressFormats\n */\nexport var getAddressFormats = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/addressFormats\", method: 'get', headers: headers }, options);\n};\nexport var getGetAddressFormatsKey = function () { return [\"/addressFormats\"]; };\n/**\n * @summary addressFormats\n */\nexport var useGetAddressFormats = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAddressFormatsKey() : null); });\n var swrFn = function () {\n return getAddressFormats(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns specific option for address formatting\n * @summary addressFormats/{type}\n */\nexport var getAddressFormat = function (client, type, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/addressFormats/\".concat(type), method: 'get', headers: headers }, options);\n};\nexport var getGetAddressFormatKey = function (type) { return [\"/addressFormats/\".concat(type)]; };\n/**\n * @summary addressFormats/{type}\n */\nexport var useGetAddressFormat = function (type, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!type;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAddressFormatKey(type) : null); });\n var swrFn = function () {\n return getAddressFormat(customInstance, type, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns the available payment methods\n * @summary paymentProviders/adyen/payments/{onlinePaymentId}/paymentMethods\n */\nexport var getPaymentProvidersAdyenPaymentPaymentMethods = function (client, onlinePaymentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/paymentProviders/adyen/payments/\".concat(onlinePaymentId, \"/paymentMethods\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetPaymentProvidersAdyenPaymentPaymentMethodsKey = function (onlinePaymentId) {\n return [\"/paymentProviders/adyen/payments/\".concat(onlinePaymentId, \"/paymentMethods\")];\n};\n/**\n * @summary paymentProviders/adyen/payments/{onlinePaymentId}/paymentMethods\n */\nexport var useGetPaymentProvidersAdyenPaymentPaymentMethods = function (onlinePaymentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!onlinePaymentId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetPaymentProvidersAdyenPaymentPaymentMethodsKey(onlinePaymentId) : null;\n });\n var swrFn = function () {\n return getPaymentProvidersAdyenPaymentPaymentMethods(customInstance, onlinePaymentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns the available payment methods\n * @deprecated\n * @summary payments/{onlinePaymentId}/paymentProviders/adyen/paymentMethods\n */\nexport var getPaymentPaymentProvidersAdyenPaymentMethodsDeprecated = function (client, onlinePaymentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/payments/\".concat(onlinePaymentId, \"/paymentProviders/adyen/paymentMethods\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetPaymentPaymentProvidersAdyenPaymentMethodsDeprecatedKey = function (onlinePaymentId) { return [\"/payments/\".concat(onlinePaymentId, \"/paymentProviders/adyen/paymentMethods\")]; };\n/**\n * @deprecated\n * @summary payments/{onlinePaymentId}/paymentProviders/adyen/paymentMethods\n */\nexport var useGetPaymentPaymentProvidersAdyenPaymentMethodsDeprecated = function (onlinePaymentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!onlinePaymentId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetPaymentPaymentProvidersAdyenPaymentMethodsDeprecatedKey(onlinePaymentId)\n : null;\n });\n var swrFn = function () {\n return getPaymentPaymentProvidersAdyenPaymentMethodsDeprecated(customInstance, onlinePaymentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Initiates payment\n * @summary paymentProviders/adyen/payments/{onlinePaymentId}\n */\nexport var createPaymentProvidersAdyenPayment = function (client, onlinePaymentId, globalPaymentsAdyenPaymentRequestDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/paymentProviders/adyen/payments/\".concat(onlinePaymentId),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalPaymentsAdyenPaymentRequestDtoBody,\n }, options);\n};\n/**\n * POST: Initiates payment\n * @deprecated\n * @summary payments/{onlinePaymentId}/paymentProviders/adyen/payments\n */\nexport var createPaymentPaymentProvidersAdyenPaymentDeprecated = function (client, onlinePaymentId, globalPaymentsAdyenPaymentRequestDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/payments/\".concat(onlinePaymentId, \"/paymentProviders/adyen/payments\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalPaymentsAdyenPaymentRequestDtoBody,\n }, options);\n};\n/**\n * POST: Sends payment details when a customer is required to perform additional actions\n * @summary paymentProviders/adyen/payments/{onlinePaymentId}/paymentDetail\n */\nexport var createPaymentProvidersAdyenPaymentPaymentDetail = function (client, onlinePaymentId, createPaymentProvidersAdyenPaymentPaymentDetailBodyBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/paymentProviders/adyen/payments/\".concat(onlinePaymentId, \"/paymentDetail\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: createPaymentProvidersAdyenPaymentPaymentDetailBodyBody,\n }, options);\n};\n/**\n * POST: Sends payment details when a customer is required to perform additional actions\n * @deprecated\n * @summary payments/{onlinePaymentId}/paymentProviders/adyen/paymentDetails\n */\nexport var createPaymentPaymentProvidersAdyenPaymentDetailDeprecated = function (client, onlinePaymentId, createPaymentProvidersAdyenPaymentPaymentDetailBodyBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/payments/\".concat(onlinePaymentId, \"/paymentProviders/adyen/paymentDetails\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: createPaymentProvidersAdyenPaymentPaymentDetailBodyBody,\n }, options);\n};\n/**\n * GET: Returns client credentials for FE component\n * @summary paymentProviders/adyen/payments/{onlinePaymentId}/clientCredential\n */\nexport var getPaymentProvidersAdyenPaymentClientCredential = function (client, onlinePaymentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/paymentProviders/adyen/payments/\".concat(onlinePaymentId, \"/clientCredential\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetPaymentProvidersAdyenPaymentClientCredentialKey = function (onlinePaymentId) {\n return [\"/paymentProviders/adyen/payments/\".concat(onlinePaymentId, \"/clientCredential\")];\n};\n/**\n * @summary paymentProviders/adyen/payments/{onlinePaymentId}/clientCredential\n */\nexport var useGetPaymentProvidersAdyenPaymentClientCredential = function (onlinePaymentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!onlinePaymentId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetPaymentProvidersAdyenPaymentClientCredentialKey(onlinePaymentId) : null;\n });\n var swrFn = function () {\n return getPaymentProvidersAdyenPaymentClientCredential(customInstance, onlinePaymentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns client credentials for FE component\n * @deprecated\n * @summary payments/{onlinePaymentId}/paymentProviders/adyen/clientCredentials\n */\nexport var getPaymentPaymentProvidersAdyenClientCredentialsDeprecated = function (client, onlinePaymentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/payments/\".concat(onlinePaymentId, \"/paymentProviders/adyen/clientCredentials\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetPaymentPaymentProvidersAdyenClientCredentialsDeprecatedKey = function (onlinePaymentId) { return [\"/payments/\".concat(onlinePaymentId, \"/paymentProviders/adyen/clientCredentials\")]; };\n/**\n * @deprecated\n * @summary payments/{onlinePaymentId}/paymentProviders/adyen/clientCredentials\n */\nexport var useGetPaymentPaymentProvidersAdyenClientCredentialsDeprecated = function (onlinePaymentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!onlinePaymentId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetPaymentPaymentProvidersAdyenClientCredentialsDeprecatedKey(onlinePaymentId)\n : null;\n });\n var swrFn = function () {\n return getPaymentPaymentProvidersAdyenClientCredentialsDeprecated(customInstance, onlinePaymentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Adyen Checkout/Recurring API - Disables stored payment details to stop charging a shopper with this particular recurring detail ID\n * @summary customers/{customerId}/paymentProviders/adyen/contractDisableRequest\n */\nexport var createCustomerPaymentProvidersAdyenContractDisableRequest = function (client, customerId, globalCustomersAdyenContractDisableRequestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/paymentProviders/adyen/contractDisableRequest\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersAdyenContractDisableRequestDto,\n }, options);\n};\n/**\n * GET: Returns analytics data of registration with given ID\n * @summary customerRegistrations/{registrationId}/analytics\n */\nexport var getCustomerRegistrationAnalytics = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customerRegistrations/\".concat(registrationId, \"/analytics\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationAnalyticsKey = function (registrationId) {\n return [\"/customerRegistrations/\".concat(registrationId, \"/analytics\")];\n};\n/**\n * @summary customerRegistrations/{registrationId}/analytics\n */\nexport var useGetCustomerRegistrationAnalytics = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationAnalyticsKey(registrationId) : null); });\n var swrFn = function () {\n return getCustomerRegistrationAnalytics(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the customer approvals of the customer for given customer id\n * @summary customers/{customerId}/approval\n */\nexport var getCustomerApproval = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/approval\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerApprovalKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/approval\")];\n};\n/**\n * @summary customers/{customerId}/approval\n */\nexport var useGetCustomerApproval = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerApprovalKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerApproval(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Update the customer approvals of the customer for given customer id\n * @summary customers/{customerId}/approval\n */\nexport var updateCustomerApproval = function (client, customerId, globalSharedApprovalDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/approval\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalSharedApprovalDto,\n }, options);\n};\n/**\n * GET: Gets metadata information for approval endpoints of the customer with given customer id\n * @summary customers/{customerId}/approvalMetadata\n */\nexport var getCustomerApprovalMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/approvalMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerApprovalMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/approvalMetadata\")];\n};\n/**\n * @summary customers/{customerId}/approvalMetadata\n */\nexport var useGetCustomerApprovalMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerApprovalMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerApprovalMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets product(s) ATP\n * @summary atpClusters/{atpClusterId}/atps/{itemCode}\n */\nexport var getAtpClusterAtp = function (client, atpClusterId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/atpClusters/\".concat(atpClusterId, \"/atps/\").concat(itemCode), method: 'get', headers: headers }, options);\n};\nexport var getGetAtpClusterAtpKey = function (atpClusterId, itemCode) {\n return [\"/atpClusters/\".concat(atpClusterId, \"/atps/\").concat(itemCode)];\n};\n/**\n * @summary atpClusters/{atpClusterId}/atps/{itemCode}\n */\nexport var useGetAtpClusterAtp = function (atpClusterId, itemCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(atpClusterId && itemCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAtpClusterAtpKey(atpClusterId, itemCode) : null); });\n var swrFn = function () {\n return getAtpClusterAtp(customInstance, atpClusterId, itemCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets product(s) ATP\n * @summary atpClusters/{atpClusterId}/atps\n */\nexport var getAtpClusterAtps = function (client, atpClusterId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/atpClusters/\".concat(atpClusterId, \"/atps\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetAtpClusterAtpsKey = function (atpClusterId, params) {\n return __spreadArray([\"/atpClusters/\".concat(atpClusterId, \"/atps\")], (params ? [params] : []), true);\n};\n/**\n * @summary atpClusters/{atpClusterId}/atps\n */\nexport var useGetAtpClusterAtps = function (atpClusterId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!atpClusterId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAtpClusterAtpsKey(atpClusterId, params) : null); });\n var swrFn = function () {\n return getAtpClusterAtps(customInstance, atpClusterId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets ATP cluster\n * @summary atpClusters/{atpClusterId}\n */\nexport var getAtpCluster = function (client, atpClusterId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/atpClusters/\".concat(atpClusterId), method: 'get', headers: headers }, options);\n};\nexport var getGetAtpClusterKey = function (atpClusterId) {\n return [\"/atpClusters/\".concat(atpClusterId)];\n};\n/**\n * @summary atpClusters/{atpClusterId}\n */\nexport var useGetAtpCluster = function (atpClusterId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!atpClusterId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAtpClusterKey(atpClusterId) : null); });\n var swrFn = function () {\n return getAtpCluster(customInstance, atpClusterId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Find ATP cluster based on delivery channel and/or delivery address\n * @summary atpClusters\n */\nexport var getAtpClusters = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/atpClusters\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetAtpClustersKey = function (params) {\n return __spreadArray([\"/atpClusters\"], (params ? [params] : []), true);\n};\n/**\n * @summary atpClusters\n */\nexport var useGetAtpClusters = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAtpClustersKey(params) : null); });\n var swrFn = function () {\n return getAtpClusters(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get autoship configuration\n * @summary customers/{customerId}/autoshipConfiguration\n */\nexport var getCustomerAutoshipConfiguration = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/autoshipConfiguration\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerAutoshipConfigurationKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/autoshipConfiguration\")];\n};\n/**\n * @summary customers/{customerId}/autoshipConfiguration\n */\nexport var useGetCustomerAutoshipConfiguration = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerAutoshipConfigurationKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerAutoshipConfiguration(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get autoship availability per specified product/item\n * @summary customers/{customerId}/autoshipAvailabilities\n */\nexport var getCustomerAutoshipAvailabilities = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/autoshipAvailabilities\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerAutoshipAvailabilitiesKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/autoshipAvailabilities\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/autoshipAvailabilities\n */\nexport var useGetCustomerAutoshipAvailabilities = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerAutoshipAvailabilitiesKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerAutoshipAvailabilities(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get autoship types.\nOptionally filtered by product contained in subscription.\n * @summary customers/{customerId}/autoshipTypes\n */\nexport var getCustomerAutoshipTypes = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/autoshipTypes\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerAutoshipTypesKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/autoshipTypes\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/autoshipTypes\n */\nexport var useGetCustomerAutoshipTypes = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerAutoshipTypesKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerAutoshipTypes(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns URLs and titles of legal info articles.\n * @summary customers/{customerId}/autoshipLegalArticles\n */\nexport var getCustomerAutoshipLegalArticles = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/autoshipLegalArticles\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerAutoshipLegalArticlesKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/autoshipLegalArticles\")];\n};\n/**\n * @summary customers/{customerId}/autoshipLegalArticles\n */\nexport var useGetCustomerAutoshipLegalArticles = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerAutoshipLegalArticlesKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerAutoshipLegalArticles(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Post autoship instruction.\nDepends on instruction status (Pending/Finished) provides only validation or also creates new autoship subscription if Finished\n * @summary customers/{customerId}/autoshipInstructions\n */\nexport var createCustomerAutoshipInstruction = function (client, customerId, globalCustomersAutoshipInstructionDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/autoshipInstructions\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersAutoshipInstructionDto,\n }, options);\n};\n/**\n * GET: Provides information about concept availability\n * @summary concepts/{conceptCode}/availability\n */\nexport var getConceptAvailability = function (client, conceptCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/concepts/\".concat(conceptCode, \"/availability\"), method: 'get', headers: headers }, options);\n};\nexport var getGetConceptAvailabilityKey = function (conceptCode) {\n return [\"/concepts/\".concat(conceptCode, \"/availability\")];\n};\n/**\n * @summary concepts/{conceptCode}/availability\n */\nexport var useGetConceptAvailability = function (conceptCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!conceptCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConceptAvailabilityKey(conceptCode) : null); });\n var swrFn = function () {\n return getConceptAvailability(customInstance, conceptCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get availability of concepts for specific customer\n * @summary customers/{customerId}/concepts/availabilities\n */\nexport var getCustomerConceptsAvailabilities = function (client, customerId, globalConceptsAvailabilitiesQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/concepts/availabilities\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConceptsAvailabilitiesQueryDtoBody,\n }, options);\n};\n/**\n * Get availability of concepts\n * @summary concepts/availabilities\n */\nexport var getConceptsAvailabilities = function (client, globalConceptsAvailabilitiesQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/concepts/availabilities\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConceptsAvailabilitiesQueryDtoBody,\n }, options);\n};\n/**\n * GET: Provides information about concept availability\n * @summary customers/{customerId}/concepts/{conceptCode}/availability\n */\nexport var getCustomerConceptAvailability = function (client, customerId, conceptCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/concepts/\").concat(conceptCode, \"/availability\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerConceptAvailabilityKey = function (customerId, conceptCode) {\n return [\"/customers/\".concat(customerId, \"/concepts/\").concat(conceptCode, \"/availability\")];\n};\n/**\n * @summary customers/{customerId}/concepts/{conceptCode}/availability\n */\nexport var useGetCustomerConceptAvailability = function (customerId, conceptCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && conceptCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerConceptAvailabilityKey(customerId, conceptCode) : null); });\n var swrFn = function () {\n return getCustomerConceptAvailability(customInstance, customerId, conceptCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get availability of product for specific customer\n * @summary customers/{customerId}/products/{productCode}/availability\n */\nexport var getCustomerProductAvailability = function (client, customerId, productCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/products/\").concat(productCode, \"/availability\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerProductAvailabilityKey = function (customerId, productCode) {\n return [\"/customers/\".concat(customerId, \"/products/\").concat(productCode, \"/availability\")];\n};\n/**\n * @summary customers/{customerId}/products/{productCode}/availability\n */\nexport var useGetCustomerProductAvailability = function (customerId, productCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && productCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProductAvailabilityKey(customerId, productCode) : null); });\n var swrFn = function () {\n return getCustomerProductAvailability(customInstance, customerId, productCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get availability of product\n * @summary products/{productCode}/availability\n */\nexport var getProductAvailability = function (client, productCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/products/\".concat(productCode, \"/availability\"), method: 'get', headers: headers }, options);\n};\nexport var getGetProductAvailabilityKey = function (productCode) {\n return [\"/products/\".concat(productCode, \"/availability\")];\n};\n/**\n * @summary products/{productCode}/availability\n */\nexport var useGetProductAvailability = function (productCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!productCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductAvailabilityKey(productCode) : null); });\n var swrFn = function () {\n return getProductAvailability(customInstance, productCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get products availability for specified collection of products\n * @summary products/availability\n */\nexport var getProductsAvailability = function (client, globalProductsProductAvailabilityQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/products/availability\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductsProductAvailabilityQueryDtoBody,\n }, options);\n};\n/**\n * Get products Availability for specified customer and specified collection of products\n * @summary customer/{customerId}/products/availability\n */\nexport var getCustomerProductsAvailability = function (client, customerId, globalProductsProductAvailabilityQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customer/\".concat(customerId, \"/products/availability\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductsProductAvailabilityQueryDtoBody,\n }, options);\n};\n/**\n * Get information about possibility to subscribe for BIS notifications for each product requested by productCodes.\n * @deprecated\n * @summary backInStockNotifications\n */\nexport var getBackInStockNotificationsDeprecated = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/backInStockNotifications\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetBackInStockNotificationsDeprecatedKey = function (params) { return __spreadArray([\"/backInStockNotifications\"], (params ? [params] : []), true); };\n/**\n * @deprecated\n * @summary backInStockNotifications\n */\nexport var useGetBackInStockNotificationsDeprecated = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBackInStockNotificationsDeprecatedKey(params) : null); });\n var swrFn = function () {\n return getBackInStockNotificationsDeprecated(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Stores passed by parameter notificationData information so user receives BIS notifications.\n * @summary backInStockNotificationSubscriptions\n */\nexport var createBackInStockNotificationSubscription = function (client, globalBackInStockNotificationsBackInStockNotificationSubscriptionDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/backInStockNotificationSubscriptions\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalBackInStockNotificationsBackInStockNotificationSubscriptionDtoBody,\n }, options);\n};\n/**\n * Get configuration for back in stock notifications.\n * @summary backInStockNotificationsConfiguration\n */\nexport var getBackInStockNotificationsConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/backInStockNotificationsConfiguration\", method: 'get', headers: headers }, options);\n};\nexport var getGetBackInStockNotificationsConfigurationKey = function () {\n return [\"/backInStockNotificationsConfiguration\"];\n};\n/**\n * @summary backInStockNotificationsConfiguration\n */\nexport var useGetBackInStockNotificationsConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBackInStockNotificationsConfigurationKey() : null); });\n var swrFn = function () {\n return getBackInStockNotificationsConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get information about possibility to subscribe for BIS notifications for each product requested by productCodes.\n * @deprecated\n * @summary customers/{customerId}/backInStockNotifications\n */\nexport var getCustomerBackInStockNotificationsDeprecated = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/backInStockNotifications\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerBackInStockNotificationsDeprecatedKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/backInStockNotifications\")], (params ? [params] : []), true); };\n/**\n * @deprecated\n * @summary customers/{customerId}/backInStockNotifications\n */\nexport var useGetCustomerBackInStockNotificationsDeprecated = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCustomerBackInStockNotificationsDeprecatedKey(customerId, params) : null;\n });\n var swrFn = function () {\n return getCustomerBackInStockNotificationsDeprecated(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Stores passed by parameter notificationData information so user receives BIS notifications.\n * @summary customers/{customerId}/backInStockNotificationSubscriptions\n */\nexport var createCustomerBackInStockNotificationSubscription = function (client, customerId, globalBackInStockNotificationsBackInStockNotificationSubscriptionDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/backInStockNotificationSubscriptions\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalBackInStockNotificationsBackInStockNotificationSubscriptionDtoBody,\n }, options);\n};\n/**\n * GET: Gets bank account approvals\n * @summary customers/{customerId}/bankAccountApprovals\n */\nexport var getCustomerBankAccountApprovals = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/bankAccountApprovals\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerBankAccountApprovalsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/bankAccountApprovals\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/bankAccountApprovals\n */\nexport var useGetCustomerBankAccountApprovals = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerBankAccountApprovalsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerBankAccountApprovals(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets customer bank accounts\n * @summary customers/{customerId}/bankAccounts\n */\nexport var getCustomerBankAccounts = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/bankAccounts\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerBankAccountsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/bankAccounts\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/bankAccounts\n */\nexport var useGetCustomerBankAccounts = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerBankAccountsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerBankAccounts(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates customer bank account\n * @summary customers/{customerId}/bankAccounts\n */\nexport var createCustomerBankAccount = function (client, customerId, globalCustomersBankAccountDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/bankAccounts\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersBankAccountDtoBody,\n }, options);\n};\n/**\n * PUT: Updates customer bank account\n * @summary customers/{customerId}/bankAccounts/{bankAccountId}\n */\nexport var updateCustomerBankAccount = function (client, customerId, bankAccountId, globalCustomersBankAccountDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/bankAccounts/\").concat(bankAccountId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersBankAccountDtoBody,\n }, options);\n};\n/**\n * DELETE: Removes customer bank account by Id\n * @summary customers/{customerId}/bankAccounts/{bankAccountId}\n */\nexport var deleteCustomerBankAccount = function (client, customerId, bankAccountId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/bankAccounts/\").concat(bankAccountId), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Gets metadata information for bank account endpoints of the customer with given customer id\n * @summary customers/{customerId}/bankAccountsMetadata\n */\nexport var getCustomerBankAccountsMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/bankAccountsMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerBankAccountsMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/bankAccountsMetadata\")];\n};\n/**\n * @summary customers/{customerId}/bankAccountsMetadata\n */\nexport var useGetCustomerBankAccountsMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerBankAccountsMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerBankAccountsMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Authorize customer's bank account\n * @summary customers/{customerId}/bankAccounts/{bankAccountId}/authorizationRequest\n */\nexport var createCustomerBankAccountAuthorizationRequest = function (client, customerId, bankAccountId, globalCustomersBankAccountAuthorizationRequestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/bankAccounts/\").concat(bankAccountId, \"/authorizationRequest\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersBankAccountAuthorizationRequestDto,\n }, options);\n};\n/**\n * GET: Provides all bank branches matching the optional filters\n * @summary bankBranches\n */\nexport var getBankBranches = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/bankBranches\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetBankBranchesKey = function (params) {\n return __spreadArray([\"/bankBranches\"], (params ? [params] : []), true);\n};\n/**\n * @summary bankBranches\n */\nexport var useGetBankBranches = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBankBranchesKey(params) : null); });\n var swrFn = function () {\n return getBankBranches(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides bank branch by id\n * @summary bankBranches/{bankBranchId}\n */\nexport var getBankBranch = function (client, bankBranchId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/bankBranches/\".concat(bankBranchId), method: 'get', headers: headers }, options);\n};\nexport var getGetBankBranchKey = function (bankBranchId) {\n return [\"/bankBranches/\".concat(bankBranchId)];\n};\n/**\n * @summary bankBranches/{bankBranchId}\n */\nexport var useGetBankBranch = function (bankBranchId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!bankBranchId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBankBranchKey(bankBranchId) : null); });\n var swrFn = function () {\n return getBankBranch(customInstance, bankBranchId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides all banks\n * @summary banks\n */\nexport var getBanks = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/banks\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetBanksKey = function (params) {\n return __spreadArray([\"/banks\"], (params ? [params] : []), true);\n};\n/**\n * @summary banks\n */\nexport var useGetBanks = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBanksKey(params) : null); });\n var swrFn = function () { return getBanks(customInstance, params, headers, requestOptions).then(function (d) { return d.data; }); };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns bank by id\n * @summary banks/{bankId}\n */\nexport var getBank = function (client, bankId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/banks/\".concat(bankId), method: 'get', headers: headers }, options);\n};\nexport var getGetBankKey = function (bankId) { return [\"/banks/\".concat(bankId)]; };\n/**\n * @summary banks/{bankId}\n */\nexport var useGetBank = function (bankId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!bankId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBankKey(bankId) : null); });\n var swrFn = function () { return getBank(customInstance, bankId, headers, requestOptions).then(function (d) { return d.data; }); };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Apply shopping bag related offer\n * @summary shoppingSessions/{sessionId}/basketOffers/{offerId}\n */\nexport var createShoppingSessionBasketOffer = function (client, sessionId, offerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/basketOffers/\").concat(offerId), method: 'post', headers: headers }, options);\n};\n/**\n * PUT: Purchase shopping bag related offer\n * @summary shoppingSessions/{sessionId}/basketOffers/{offerId}\n */\nexport var updateShoppingSessionBasketOffer = function (client, sessionId, offerId, globalShoppingOfferChoicesDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/basketOffers/\").concat(offerId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingOfferChoicesDto,\n }, options);\n};\n/**\n * GET: Get list of shopping bag related offers\n * @summary shoppingSessions/{sessionId}/basketOffers\n */\nexport var getShoppingSessionBasketOffers = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/basketOffers\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionBasketOffersKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/basketOffers\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/basketOffers\n */\nexport var useGetShoppingSessionBasketOffers = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionBasketOffersKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionBasketOffers(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets available blocking codes\n * @summary blockingCodes\n */\nexport var getBlockingCodes = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/blockingCodes\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetBlockingCodesKey = function (params) {\n return __spreadArray([\"/blockingCodes\"], (params ? [params] : []), true);\n};\n/**\n * @summary blockingCodes\n */\nexport var useGetBlockingCodes = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBlockingCodesKey(params) : null); });\n var swrFn = function () {\n return getBlockingCodes(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets blockings for given customer\n * @summary customers/{customerId}/blockings\n */\nexport var getCustomerBlockings = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/blockings\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerBlockingsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/blockings\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/blockings\n */\nexport var useGetCustomerBlockings = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerBlockingsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerBlockings(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Deletes single blocking for customer\n * @summary customers/{customerId}/blockings/{blockingId}\n */\nexport var deleteCustomerBlocking = function (client, customerId, blockingId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/blockings/\").concat(blockingId), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Returns branch for given customer\n * @summary customers/{customerId}/branch\n */\nexport var getCustomerBranch = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/branch\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerBranchKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/branch\")];\n};\n/**\n * @summary customers/{customerId}/branch\n */\nexport var useGetCustomerBranch = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerBranchKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerBranch(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Updates branch for given customer\n * @summary customers/{customerId}/branch\n */\nexport var updateCustomerBranch = function (client, customerId, globalCustomersCustomerBranchDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/branch\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerBranchDto,\n }, options);\n};\n/**\n * GET: Returns metadata for customer branch\n * @summary customers/{customerId}/branchMetadata\n */\nexport var getCustomerBranchMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/branchMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerBranchMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/branchMetadata\")];\n};\n/**\n * @summary customers/{customerId}/branchMetadata\n */\nexport var useGetCustomerBranchMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerBranchMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerBranchMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns all available Oriflame branches\n * @summary branches\n */\nexport var getBranches = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/branches\", method: 'get', headers: headers }, options);\n};\nexport var getGetBranchesKey = function () { return [\"/branches\"]; };\n/**\n * @summary branches\n */\nexport var useGetBranches = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBranchesKey() : null); });\n var swrFn = function () { return getBranches(customInstance, headers, requestOptions).then(function (d) { return d.data; }); };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns specific branch by ID\n * @summary branches/{branchId}\n */\nexport var getBranch = function (client, branchId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/branches/\".concat(branchId), method: 'get', headers: headers }, options);\n};\nexport var getGetBranchKey = function (branchId) { return [\"/branches/\".concat(branchId)]; };\n/**\n * @summary branches/{branchId}\n */\nexport var useGetBranch = function (branchId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!branchId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBranchKey(branchId) : null); });\n var swrFn = function () {\n return getBranch(customInstance, branchId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get all brands, optionally filtered by given category\n * @summary brands\n */\nexport var getBrands = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/brands\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetBrandsKey = function (params) {\n return __spreadArray([\"/brands\"], (params ? [params] : []), true);\n};\n/**\n * @summary brands\n */\nexport var useGetBrands = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBrandsKey(params) : null); });\n var swrFn = function () {\n return getBrands(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates a record of a call interaction between customer service and the customer.\n * @summary callInteractions\n */\nexport var createCallInteraction = function (client, globalCallInteractionsCallInteractionDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/callInteractions\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCallInteractionsCallInteractionDto,\n }, options);\n};\n/**\n * GET: Gets campaigns points of the customer\n * @summary campaigns/{campaignId}/points\n */\nexport var getCampaignPoints = function (client, campaignId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/campaigns/\".concat(campaignId, \"/points\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCampaignPointsKey = function (campaignId, params) {\n return __spreadArray([\"/campaigns/\".concat(campaignId, \"/points\")], (params ? [params] : []), true);\n};\n/**\n * @summary campaigns/{campaignId}/points\n */\nexport var useGetCampaignPoints = function (campaignId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!campaignId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCampaignPointsKey(campaignId, params) : null); });\n var swrFn = function () {\n return getCampaignPoints(customInstance, campaignId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets campaigns points of the sponsor earned by recruits\n * @summary campaigns/{campaignId}/recruitPoints\n */\nexport var getCampaignRecruitPoints = function (client, campaignId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/campaigns/\".concat(campaignId, \"/recruitPoints\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCampaignRecruitPointsKey = function (campaignId, params) { return __spreadArray([\"/campaigns/\".concat(campaignId, \"/recruitPoints\")], (params ? [params] : []), true); };\n/**\n * @summary campaigns/{campaignId}/recruitPoints\n */\nexport var useGetCampaignRecruitPoints = function (campaignId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!campaignId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCampaignRecruitPointsKey(campaignId, params) : null); });\n var swrFn = function () {\n return getCampaignRecruitPoints(customInstance, campaignId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets campaigns filterable by optional parameters\n * @summary campaigns\n */\nexport var getCampaigns = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/campaigns\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCampaignsKey = function (params) {\n return __spreadArray([\"/campaigns\"], (params ? [params] : []), true);\n};\n/**\n * @summary campaigns\n */\nexport var useGetCampaigns = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCampaignsKey(params) : null); });\n var swrFn = function () {\n return getCampaigns(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get specific campaign\n * @summary campaigns/{campaignId}\n */\nexport var getCampaign = function (client, campaignId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/campaigns/\".concat(campaignId), method: 'get', headers: headers }, options);\n};\nexport var getGetCampaignKey = function (campaignId) { return [\"/campaigns/\".concat(campaignId)]; };\n/**\n * @summary campaigns/{campaignId}\n */\nexport var useGetCampaign = function (campaignId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!campaignId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCampaignKey(campaignId) : null); });\n var swrFn = function () {\n return getCampaign(customInstance, campaignId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets configuration of welcome program step targets\n * @summary campaigns/welcomeProgram/targets\n */\nexport var getCampaignsWelcomeProgramTargets = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/campaigns/welcomeProgram/targets\", method: 'get', headers: headers }, options);\n};\nexport var getGetCampaignsWelcomeProgramTargetsKey = function () {\n return [\"/campaigns/welcomeProgram/targets\"];\n};\n/**\n * @summary campaigns/welcomeProgram/targets\n */\nexport var useGetCampaignsWelcomeProgramTargets = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCampaignsWelcomeProgramTargetsKey() : null); });\n var swrFn = function () {\n return getCampaignsWelcomeProgramTargets(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets welcome program benefits\n * @summary campaigns/welcomeProgram/{step}/benefits\n */\nexport var getCampaignsWelcomeProgramBenefits = function (client, step, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/campaigns/welcomeProgram/\".concat(step, \"/benefits\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCampaignsWelcomeProgramBenefitsKey = function (step) {\n return [\"/campaigns/welcomeProgram/\".concat(step, \"/benefits\")];\n};\n/**\n * @summary campaigns/welcomeProgram/{step}/benefits\n */\nexport var useGetCampaignsWelcomeProgramBenefits = function (step, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!step;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCampaignsWelcomeProgramBenefitsKey(step) : null); });\n var swrFn = function () {\n return getCampaignsWelcomeProgramBenefits(customInstance, step, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets configuration of activity program step targets\n * @summary campaigns/activityProgram/targets\n */\nexport var getCampaignsActivityProgramTargets = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/campaigns/activityProgram/targets\", method: 'get', headers: headers }, options);\n};\nexport var getGetCampaignsActivityProgramTargetsKey = function () {\n return [\"/campaigns/activityProgram/targets\"];\n};\n/**\n * @summary campaigns/activityProgram/targets\n */\nexport var useGetCampaignsActivityProgramTargets = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCampaignsActivityProgramTargetsKey() : null); });\n var swrFn = function () {\n return getCampaignsActivityProgramTargets(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets collection of points assigned to products in campaign\n * @summary customers/{customerId}/campaigns/{campaignType}/benefits\n */\nexport var getCustomerCampaignBenefits = function (client, customerId, campaignType, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/campaigns/\").concat(campaignType, \"/benefits\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCustomerCampaignBenefitsKey = function (customerId, campaignType, params) {\n return __spreadArray([\n \"/customers/\".concat(customerId, \"/campaigns/\").concat(campaignType, \"/benefits\")\n ], (params ? [params] : []), true);\n};\n/**\n * @summary customers/{customerId}/campaigns/{campaignType}/benefits\n */\nexport var useGetCustomerCampaignBenefits = function (customerId, campaignType, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && campaignType);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCustomerCampaignBenefitsKey(customerId, campaignType, params) : null;\n });\n var swrFn = function () {\n return getCustomerCampaignBenefits(customInstance, customerId, campaignType, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets orders of the customer together with points earned and redeemed by that orders\nTenant nameCustomer IdPeriod IdAdditional filter URL encoded expression. Eg. Bp GT 100 | (ConsultantName CONTAINS John & ConsultantName NEQ Rambo)Sort expression (field sortType)Include total count in resultSkipTake\n * @summary customer/{customerId}/reports/campaignPointsByOrders\n */\nexport var getCustomerReportsCampaignPointsByOrders = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customer/\".concat(customerId, \"/reports/campaignPointsByOrders\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCustomerReportsCampaignPointsByOrdersKey = function (customerId, params) {\n return __spreadArray([\"/customer/\".concat(customerId, \"/reports/campaignPointsByOrders\")], (params ? [params] : []), true);\n};\n/**\n * @summary customer/{customerId}/reports/campaignPointsByOrders\n */\nexport var useGetCustomerReportsCampaignPointsByOrders = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerReportsCampaignPointsByOrdersKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerReportsCampaignPointsByOrders(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide content of the catalogue\n * @summary catalogues/catalogue/{catalogueCode}/content\n */\nexport var getCataloguesCatalogueContent = function (client, catalogueCode, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/catalogues/catalogue/\".concat(catalogueCode, \"/content\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCataloguesCatalogueContentKey = function (catalogueCode, params) { return __spreadArray([\"/catalogues/catalogue/\".concat(catalogueCode, \"/content\")], (params ? [params] : []), true); };\n/**\n * @summary catalogues/catalogue/{catalogueCode}/content\n */\nexport var useGetCataloguesCatalogueContent = function (catalogueCode, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!catalogueCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCataloguesCatalogueContentKey(catalogueCode, params) : null); });\n var swrFn = function () {\n return getCataloguesCatalogueContent(customInstance, catalogueCode, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets configuration for CatalogueIPaper for authorized customer.\n * @summary applications/catalogueIPaper/customers/{customerId}/configuration\n */\nexport var getApplicationsCatalogueIPaperCustomerConfiguration = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/catalogueIPaper/customers/\".concat(customerId, \"/configuration\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetApplicationsCatalogueIPaperCustomerConfigurationKey = function (customerId) {\n return [\"/applications/catalogueIPaper/customers/\".concat(customerId, \"/configuration\")];\n};\n/**\n * @summary applications/catalogueIPaper/customers/{customerId}/configuration\n */\nexport var useGetApplicationsCatalogueIPaperCustomerConfiguration = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetApplicationsCatalogueIPaperCustomerConfigurationKey(customerId) : null;\n });\n var swrFn = function () {\n return getApplicationsCatalogueIPaperCustomerConfiguration(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide catalogue item\n * @summary catalogues/{catalogueId}/catalogueItems/{catalogueItemId}\n */\nexport var getCatalogueCatalogueItem = function (client, catalogueId, catalogueItemId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/catalogues/\".concat(catalogueId, \"/catalogueItems/\").concat(catalogueItemId), method: 'get', headers: headers }, options);\n};\nexport var getGetCatalogueCatalogueItemKey = function (catalogueId, catalogueItemId) {\n return [\"/catalogues/\".concat(catalogueId, \"/catalogueItems/\").concat(catalogueItemId)];\n};\n/**\n * @summary catalogues/{catalogueId}/catalogueItems/{catalogueItemId}\n */\nexport var useGetCatalogueCatalogueItem = function (catalogueId, catalogueItemId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(catalogueId && catalogueItemId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCatalogueCatalogueItemKey(catalogueId, catalogueItemId) : null); });\n var swrFn = function () {\n return getCatalogueCatalogueItem(customInstance, catalogueId, catalogueItemId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide items of the catalogue\n * @summary catalogues/{catalogueId}/catalogueItems\n */\nexport var getCatalogueCatalogueItems = function (client, catalogueId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/catalogues/\".concat(catalogueId, \"/catalogueItems\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCatalogueCatalogueItemsKey = function (catalogueId, params) { return __spreadArray([\"/catalogues/\".concat(catalogueId, \"/catalogueItems\")], (params ? [params] : []), true); };\n/**\n * @summary catalogues/{catalogueId}/catalogueItems\n */\nexport var useGetCatalogueCatalogueItems = function (catalogueId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!catalogueId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCatalogueCatalogueItemsKey(catalogueId, params) : null); });\n var swrFn = function () {\n return getCatalogueCatalogueItems(customInstance, catalogueId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide merchandising offers related to printed catalogue\n * @summary catalogueOffers\n */\nexport var getCatalogueOffers = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/catalogueOffers\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCatalogueOffersKey = function (params) {\n return __spreadArray([\"/catalogueOffers\"], (params ? [params] : []), true);\n};\n/**\n * @summary catalogueOffers\n */\nexport var useGetCatalogueOffers = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCatalogueOffersKey(params) : null); });\n var swrFn = function () {\n return getCatalogueOffers(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide catalogues related to the period\n * @deprecated\n * @summary catalogues\n */\nexport var getCataloguesDeprecated = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/catalogues\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCataloguesDeprecatedKey = function (params) {\n return __spreadArray([\"/catalogues\"], (params ? [params] : []), true);\n};\n/**\n * @deprecated\n * @summary catalogues\n */\nexport var useGetCataloguesDeprecated = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCataloguesDeprecatedKey(params) : null); });\n var swrFn = function () {\n return getCataloguesDeprecated(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get social media library category by categoryId.\n * @summary socialMediaLibrary/categories/{categoryId}\n */\nexport var getSocialMediaLibraryCategory = function (client, categoryId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/socialMediaLibrary/categories/\".concat(categoryId), method: 'get', headers: headers }, options);\n};\nexport var getGetSocialMediaLibraryCategoryKey = function (categoryId) {\n return [\"/socialMediaLibrary/categories/\".concat(categoryId)];\n};\n/**\n * @summary socialMediaLibrary/categories/{categoryId}\n */\nexport var useGetSocialMediaLibraryCategory = function (categoryId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!categoryId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetSocialMediaLibraryCategoryKey(categoryId) : null); });\n var swrFn = function () {\n return getSocialMediaLibraryCategory(customInstance, categoryId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get social media library category by part of the name\n * @summary socialMediaLibrary/categories\n */\nexport var getSocialMediaLibraryCategories = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/socialMediaLibrary/categories\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetSocialMediaLibraryCategoriesKey = function (params) { return __spreadArray([\"/socialMediaLibrary/categories\"], (params ? [params] : []), true); };\n/**\n * @summary socialMediaLibrary/categories\n */\nexport var useGetSocialMediaLibraryCategories = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetSocialMediaLibraryCategoriesKey(params) : null); });\n var swrFn = function () {\n return getSocialMediaLibraryCategories(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get all categories\n * @summary categories\n */\nexport var getCategories = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/categories\", method: 'get', headers: headers }, options);\n};\nexport var getGetCategoriesKey = function () { return [\"/categories\"]; };\n/**\n * @summary categories\n */\nexport var useGetCategories = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCategoriesKey() : null); });\n var swrFn = function () { return getCategories(customInstance, headers, requestOptions).then(function (d) { return d.data; }); };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns Chat bot configuration\n * @summary applications/chatBot/configuration\n */\nexport var getApplicationsChatBotConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/chatBot/configuration\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsChatBotConfigurationKey = function () {\n return [\"/applications/chatBot/configuration\"];\n};\n/**\n * @summary applications/chatBot/configuration\n */\nexport var useGetApplicationsChatBotConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsChatBotConfigurationKey() : null); });\n var swrFn = function () {\n return getApplicationsChatBotConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Query claims history\n * @summary claims\n */\nexport var getClaims = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claims\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetClaimsKey = function (params) {\n return __spreadArray([\"/claims\"], (params ? [params] : []), true);\n};\n/**\n * @summary claims\n */\nexport var useGetClaims = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimsKey(params) : null); });\n var swrFn = function () {\n return getClaims(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get specific claim of a customer\n * @summary claims/{claimId}\n */\nexport var getClaim = function (client, claimId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claims/\".concat(claimId), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimKey = function (claimId) { return [\"/claims/\".concat(claimId)]; };\n/**\n * @summary claims/{claimId}\n */\nexport var useGetClaim = function (claimId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!claimId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimKey(claimId) : null); });\n var swrFn = function () {\n return getClaim(customInstance, claimId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get specific claim of a customer\n * @summary claims/{claimId}/tracking\n */\nexport var getClaimTracking = function (client, claimId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claims/\".concat(claimId, \"/tracking\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimTrackingKey = function (claimId) { return [\"/claims/\".concat(claimId, \"/tracking\")]; };\n/**\n * @summary claims/{claimId}/tracking\n */\nexport var useGetClaimTracking = function (claimId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!claimId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimTrackingKey(claimId) : null); });\n var swrFn = function () {\n return getClaimTracking(customInstance, claimId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get claim categories based on claim type\n * @summary claimCategories\n */\nexport var getClaimCategories = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimCategories\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetClaimCategoriesKey = function (params) {\n return __spreadArray([\"/claimCategories\"], (params ? [params] : []), true);\n};\n/**\n * @summary claimCategories\n */\nexport var useGetClaimCategories = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimCategoriesKey(params) : null); });\n var swrFn = function () {\n return getClaimCategories(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get sub-categories of claim category\n * @summary claimCategories/{claimCategory}/subCategories\n */\nexport var getClaimCategorySubCategories = function (client, claimCategory, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimCategories/\".concat(claimCategory, \"/subCategories\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimCategorySubCategoriesKey = function (claimCategory) { return [\"/claimCategories/\".concat(claimCategory, \"/subCategories\")]; };\n/**\n * @summary claimCategories/{claimCategory}/subCategories\n */\nexport var useGetClaimCategorySubCategories = function (claimCategory, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!claimCategory;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimCategorySubCategoriesKey(claimCategory) : null); });\n var swrFn = function () {\n return getClaimCategorySubCategories(customInstance, claimCategory, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get causes of claim category\n * @summary claimCategories/{claimCategory}/causes\n */\nexport var getClaimCategoryCauses = function (client, claimCategory, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimCategories/\".concat(claimCategory, \"/causes\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimCategoryCausesKey = function (claimCategory) { return [\"/claimCategories/\".concat(claimCategory, \"/causes\")]; };\n/**\n * @summary claimCategories/{claimCategory}/causes\n */\nexport var useGetClaimCategoryCauses = function (claimCategory, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!claimCategory;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimCategoryCausesKey(claimCategory) : null); });\n var swrFn = function () {\n return getClaimCategoryCauses(customInstance, claimCategory, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get reasons of claim cause\n * @summary claimCategories/{claimCategory}/causes/{claimCause}/reasons\n */\nexport var getClaimCategoryCauseReasons = function (client, claimCategory, claimCause, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimCategories/\".concat(claimCategory, \"/causes/\").concat(claimCause, \"/reasons\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetClaimCategoryCauseReasonsKey = function (claimCategory, claimCause) { return [\"/claimCategories/\".concat(claimCategory, \"/causes/\").concat(claimCause, \"/reasons\")]; };\n/**\n * @summary claimCategories/{claimCategory}/causes/{claimCause}/reasons\n */\nexport var useGetClaimCategoryCauseReasons = function (claimCategory, claimCause, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(claimCategory && claimCause);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimCategoryCauseReasonsKey(claimCategory, claimCause) : null); });\n var swrFn = function () {\n return getClaimCategoryCauseReasons(customInstance, claimCategory, claimCause, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get actions of claim category\n * @summary claimCategories/{claimCategory}/actions\n */\nexport var getClaimCategoryActions = function (client, claimCategory, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimCategories/\".concat(claimCategory, \"/actions\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimCategoryActionsKey = function (claimCategory) { return [\"/claimCategories/\".concat(claimCategory, \"/actions\")]; };\n/**\n * @summary claimCategories/{claimCategory}/actions\n */\nexport var useGetClaimCategoryActions = function (claimCategory, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!claimCategory;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimCategoryActionsKey(claimCategory) : null); });\n var swrFn = function () {\n return getClaimCategoryActions(customInstance, claimCategory, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get scenarios for claim category, cause and action\n * @summary claimCategories/{claimCategory}/scenarios\n */\nexport var getClaimCategoryScenarios = function (client, claimCategory, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimCategories/\".concat(claimCategory, \"/scenarios\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetClaimCategoryScenariosKey = function (claimCategory, params) { return __spreadArray([\"/claimCategories/\".concat(claimCategory, \"/scenarios\")], (params ? [params] : []), true); };\n/**\n * @summary claimCategories/{claimCategory}/scenarios\n */\nexport var useGetClaimCategoryScenarios = function (claimCategory, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!claimCategory;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimCategoryScenariosKey(claimCategory, params) : null); });\n var swrFn = function () {\n return getClaimCategoryScenarios(customInstance, claimCategory, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Set delivery of supplementary order.\n * @summary claimSessions/{sessionId}/delivery\n */\nexport var updateClaimSessionDelivery = function (client, sessionId, globalClaimSessionsClaimDeliveryDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/delivery\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsClaimDeliveryDto,\n }, options);\n};\n/**\n * GET: Gets customer's delivery selection of supplementary order.\n * @summary claimSessions/{sessionId}/delivery\n */\nexport var getClaimSessionDelivery = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId, \"/delivery\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimSessionDeliveryKey = function (sessionId) {\n return [\"/claimSessions/\".concat(sessionId, \"/delivery\")];\n};\n/**\n * @summary claimSessions/{sessionId}/delivery\n */\nexport var useGetClaimSessionDelivery = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimSessionDeliveryKey(sessionId) : null); });\n var swrFn = function () {\n return getClaimSessionDelivery(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides available delivery channels\n * @summary claimSessions/{sessionId}/deliveryChannels\n */\nexport var getClaimSessionDeliveryChannels = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId, \"/deliveryChannels\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetClaimSessionDeliveryChannelsKey = function (sessionId, params) { return __spreadArray([\"/claimSessions/\".concat(sessionId, \"/deliveryChannels\")], (params ? [params] : []), true); };\n/**\n * @summary claimSessions/{sessionId}/deliveryChannels\n */\nexport var useGetClaimSessionDeliveryChannels = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimSessionDeliveryChannelsKey(sessionId, params) : null); });\n var swrFn = function () {\n return getClaimSessionDeliveryChannels(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides available delivery methods\n * @summary claimSessions/{sessionId}/deliveryMethods\n */\nexport var getClaimSessionDeliveryMethods = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId, \"/deliveryMethods\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimSessionDeliveryMethodsKey = function (sessionId) {\n return [\"/claimSessions/\".concat(sessionId, \"/deliveryMethods\")];\n};\n/**\n * @summary claimSessions/{sessionId}/deliveryMethods\n */\nexport var useGetClaimSessionDeliveryMethods = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimSessionDeliveryMethodsKey(sessionId) : null); });\n var swrFn = function () {\n return getClaimSessionDeliveryMethods(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Set customer's note.\n * @summary claimSessions/{sessionId}/description\n */\nexport var updateClaimSessionDescription = function (client, sessionId, globalClaimSessionsClaimDescriptionDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/description\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsClaimDescriptionDto,\n }, options);\n};\n/**\n * GET: Gets customer's note.\n * @summary claimSessions/{sessionId}/description\n */\nexport var getClaimSessionDescription = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId, \"/description\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimSessionDescriptionKey = function (sessionId) {\n return [\"/claimSessions/\".concat(sessionId, \"/description\")];\n};\n/**\n * @summary claimSessions/{sessionId}/description\n */\nexport var useGetClaimSessionDescription = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimSessionDescriptionKey(sessionId) : null); });\n var swrFn = function () {\n return getClaimSessionDescription(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Submit new claim\n * @summary claimSessions/{sessionId}/claim\n */\nexport var createClaimSessionClaim = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId, \"/claim\"), method: 'post', headers: headers }, options);\n};\n/**\n * POST: Return order item\n * @summary claimSessions/{sessionId}/returnedItems\n */\nexport var createClaimSessionReturnedItem = function (client, sessionId, globalClaimSessionsReturnClaimItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/returnedItems\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsReturnClaimItemDto,\n }, options);\n};\n/**\n * PUT: Cancel order\n * @summary claimSessions/{sessionId}/returnedItems\n */\nexport var updateClaimSessionReturnedItems = function (client, sessionId, globalClaimSessionsDistributionIssueDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/returnedItems\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsDistributionIssueDtoBody,\n }, options);\n};\n/**\n * POST: Submit missing order item\n * @summary claimSessions/{sessionId}/missingItems\n */\nexport var createClaimSessionMissingItem = function (client, sessionId, globalClaimSessionsMissingClaimItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/missingItems\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsMissingClaimItemDto,\n }, options);\n};\n/**\n * PUT: Submit missing order items\n * @summary claimSessions/{sessionId}/missingItems\n */\nexport var updateClaimSessionMissingItems = function (client, sessionId, globalClaimSessionsMissingClaimItemsDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/missingItems\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsMissingClaimItemsDto,\n }, options);\n};\n/**\n * POST: Exchange order item\n * @summary claimSessions/{sessionId}/exchangedItems\n */\nexport var createClaimSessionExchangedItem = function (client, sessionId, globalClaimSessionsExchangeClaimItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/exchangedItems\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsExchangeClaimItemDto,\n }, options);\n};\n/**\n * PUT: Resend order\n * @summary claimSessions/{sessionId}/exchangedItems\n */\nexport var updateClaimSessionExchangedItems = function (client, sessionId, globalClaimSessionsDistributionIssueDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/exchangedItems\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsDistributionIssueDtoBody,\n }, options);\n};\n/**\n * POST: Submit wrong price of order item\n * @summary claimSessions/{sessionId}/wrongItems\n */\nexport var createClaimSessionWrongItem = function (client, sessionId, globalClaimSessionsClaimItemBaseDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions/\".concat(sessionId, \"/wrongItems\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsClaimItemBaseDto,\n }, options);\n};\n/**\n * GET: Gets submitted claim items\n * @summary claimSessions/{sessionId}/claimItems\n */\nexport var getClaimSessionClaimItems = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId, \"/claimItems\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimSessionClaimItemsKey = function (sessionId) {\n return [\"/claimSessions/\".concat(sessionId, \"/claimItems\")];\n};\n/**\n * @summary claimSessions/{sessionId}/claimItems\n */\nexport var useGetClaimSessionClaimItems = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimSessionClaimItemsKey(sessionId) : null); });\n var swrFn = function () {\n return getClaimSessionClaimItems(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Clear submitted claim items\n * @summary claimSessions/{sessionId}/claimItems\n */\nexport var deleteClaimSessionClaimItems = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId, \"/claimItems\"), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Gets order items to complaint.\n * @summary claimSessions/{sessionId}/orderItems\n */\nexport var getClaimSessionOrderItems = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId, \"/orderItems\"), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimSessionOrderItemsKey = function (sessionId) {\n return [\"/claimSessions/\".concat(sessionId, \"/orderItems\")];\n};\n/**\n * @summary claimSessions/{sessionId}/orderItems\n */\nexport var useGetClaimSessionOrderItems = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimSessionOrderItemsKey(sessionId) : null); });\n var swrFn = function () {\n return getClaimSessionOrderItems(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns catalogue items from all catalogues for specified period and product code\n * @summary applications/claimsSpa/catalogueItemsSearch\n */\nexport var getApplicationsClaimsSpaCatalogueItemsSearch = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/claimsSpa/catalogueItemsSearch\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetApplicationsClaimsSpaCatalogueItemsSearchKey = function (params) { return __spreadArray([\"/applications/claimsSpa/catalogueItemsSearch\"], (params ? [params] : []), true); };\n/**\n * @summary applications/claimsSpa/catalogueItemsSearch\n */\nexport var useGetApplicationsClaimsSpaCatalogueItemsSearch = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsClaimsSpaCatalogueItemsSearchKey(params) : null); });\n var swrFn = function () {\n return getApplicationsClaimsSpaCatalogueItemsSearch(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Starts new claim session.\n * @summary claimSessions\n */\nexport var createClaimSession = function (client, globalClaimSessionsClaimingDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/claimSessions\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalClaimSessionsClaimingDto,\n }, options);\n};\n/**\n * GET: Gets claim session data.\nSession expires after 60 minutes if not refreshed by any non read-only action.\n * @summary claimSessions/{sessionId}\n */\nexport var getClaimSession = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/claimSessions/\".concat(sessionId), method: 'get', headers: headers }, options);\n};\nexport var getGetClaimSessionKey = function (sessionId) {\n return [\"/claimSessions/\".concat(sessionId)];\n};\n/**\n * @summary claimSessions/{sessionId}\n */\nexport var useGetClaimSession = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetClaimSessionKey(sessionId) : null); });\n var swrFn = function () {\n return getClaimSession(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets collection of concept labels for anonymous customer.\n * @summary conceptLabels\n */\nexport var getConceptLabels = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/conceptLabels\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetConceptLabelsKey = function (params) {\n return __spreadArray([\"/conceptLabels\"], (params ? [params] : []), true);\n};\n/**\n * @summary conceptLabels\n */\nexport var useGetConceptLabels = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConceptLabelsKey(params) : null); });\n var swrFn = function () {\n return getConceptLabels(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Returns concepts\n * @summary concepts\n */\nexport var getConcepts = function (client, globalConceptsQueryDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/concepts\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConceptsQueryDto,\n }, options);\n};\n/**\n * GET: Provides concept\n * @summary concepts/{conceptCode}\n */\nexport var getConcept = function (client, conceptCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/concepts/\".concat(conceptCode), method: 'get', headers: headers }, options);\n};\nexport var getGetConceptKey = function (conceptCode) { return [\"/concepts/\".concat(conceptCode)]; };\n/**\n * @summary concepts/{conceptCode}\n */\nexport var useGetConcept = function (conceptCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!conceptCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConceptKey(conceptCode) : null); });\n var swrFn = function () {\n return getConcept(customInstance, conceptCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Submits email with backoffice configuration\n * @summary applications/concernReportForm\n */\nexport var createApplicationsConcernReportForm = function (client, globalConcernReportFormConcernReportFormDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/concernReportForm\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConcernReportFormConcernReportFormDto,\n }, options);\n};\n/**\n * Get social media library configurations\n * @summary applications/socialMediaLibrary/configuration\n */\nexport var getApplicationsSocialMediaLibraryConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/socialMediaLibrary/configuration\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsSocialMediaLibraryConfigurationKey = function () {\n return [\"/applications/socialMediaLibrary/configuration\"];\n};\n/**\n * @summary applications/socialMediaLibrary/configuration\n */\nexport var useGetApplicationsSocialMediaLibraryConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSocialMediaLibraryConfigurationKey() : null); });\n var swrFn = function () {\n return getApplicationsSocialMediaLibraryConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Confirms entity (email, phone etc.) by confirmation code\n * @summary customers/{customerId}/confirmation\n */\nexport var createCustomerConfirmation = function (client, customerId, globalCustomersConfirmationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/confirmation\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersConfirmationDto,\n }, options);\n};\n/**\n * Provides information about connected user to WeChat account\n * @summary login/providers/weChat/externalAccount/{unionId}/connectedUser\n */\nexport var getLoginProvidersWeChatExternalAccountConnectedUser = function (client, unionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/login/providers/weChat/externalAccount/\".concat(unionId, \"/connectedUser\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetLoginProvidersWeChatExternalAccountConnectedUserKey = function (unionId) {\n return [\"/login/providers/weChat/externalAccount/\".concat(unionId, \"/connectedUser\")];\n};\n/**\n * @summary login/providers/weChat/externalAccount/{unionId}/connectedUser\n */\nexport var useGetLoginProvidersWeChatExternalAccountConnectedUser = function (unionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!unionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetLoginProvidersWeChatExternalAccountConnectedUserKey(unionId) : null); });\n var swrFn = function () {\n return getLoginProvidersWeChatExternalAccountConnectedUser(customInstance, unionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the titles.\n * @summary consultantTitles\n */\nexport var getConsultantTitles = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/consultantTitles\", method: 'get', headers: headers }, options);\n};\nexport var getGetConsultantTitlesKey = function () { return [\"/consultantTitles\"]; };\n/**\n * @summary consultantTitles\n */\nexport var useGetConsultantTitles = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConsultantTitlesKey() : null); });\n var swrFn = function () {\n return getConsultantTitles(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about contact details of registration with given ID\n * @summary customerRegistrations/{registrationId}/contactDetails\n */\nexport var getCustomerRegistrationContactDetails = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customerRegistrations/\".concat(registrationId, \"/contactDetails\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationContactDetailsKey = function (registrationId) {\n return [\"/customerRegistrations/\".concat(registrationId, \"/contactDetails\")];\n};\n/**\n * @summary customerRegistrations/{registrationId}/contactDetails\n */\nexport var useGetCustomerRegistrationContactDetails = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationContactDetailsKey(registrationId) : null); });\n var swrFn = function () {\n return getCustomerRegistrationContactDetails(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Modifies information about contact details of registration with given ID\n * @summary customerRegistrations/{registrationId}/contactDetails\n */\nexport var updateCustomerRegistrationContactDetails = function (client, registrationId, globalCustomerRegistrationsRegistrationContactDetailsDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations/\".concat(registrationId, \"/contactDetails\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomerRegistrationsRegistrationContactDetailsDto,\n }, options);\n};\n/**\n * POST: Confirms contact details by confirmation code\n * @summary customerRegistrations/{registrationId}/contactDetails/confirmation\n */\nexport var createCustomerRegistrationContactDetailsConfirmation = function (client, registrationId, globalCustomerRegistrationsRegistrationContactDetailsConfirmationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations/\".concat(registrationId, \"/contactDetails/confirmation\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomerRegistrationsRegistrationContactDetailsConfirmationDto,\n }, options);\n};\n/**\n * GET: Returns documents for specific custom document\n * @summary customers/{customerId}/customDocuments/{customDocumentId}\n */\nexport var getCustomerCustomDocument = function (client, customerId, customDocumentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/customDocuments/\").concat(customDocumentId), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerCustomDocumentKey = function (customerId, customDocumentId) {\n return [\"/customers/\".concat(customerId, \"/customDocuments/\").concat(customDocumentId)];\n};\n/**\n * @summary customers/{customerId}/customDocuments/{customDocumentId}\n */\nexport var useGetCustomerCustomDocument = function (customerId, customDocumentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && customDocumentId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerCustomDocumentKey(customerId, customDocumentId) : null); });\n var swrFn = function () {\n return getCustomerCustomDocument(customInstance, customerId, customDocumentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change data for specific custom document (temporary document are submitted and will no longer be deleted)\n * @summary customers/{customerId}/customDocuments/{customDocumentId}\n */\nexport var updateCustomerCustomDocument = function (client, customerId, customDocumentId, globalCustomersCustomDocumentsDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/customDocuments/\").concat(customDocumentId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomDocumentsDto,\n }, options);\n};\n/**\n * Get customer Id by consultant number\n * @summary consultants/{consultantNumber}/customerId\n */\nexport var getConsultantCustomerId = function (client, consultantNumber, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/consultants/\".concat(consultantNumber, \"/customerId\"), method: 'get', headers: headers }, options);\n};\nexport var getGetConsultantCustomerIdKey = function (consultantNumber) {\n return [\"/consultants/\".concat(consultantNumber, \"/customerId\")];\n};\n/**\n * @summary consultants/{consultantNumber}/customerId\n */\nexport var useGetConsultantCustomerId = function (consultantNumber, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!consultantNumber;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConsultantCustomerIdKey(consultantNumber) : null); });\n var swrFn = function () {\n return getConsultantCustomerId(customInstance, consultantNumber, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get consultant number for customer\n * @summary customers/{customerId}/consultantNumber\n */\nexport var getCustomerConsultantNumber = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/consultantNumber\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerConsultantNumberKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/consultantNumber\")];\n};\n/**\n * @summary customers/{customerId}/consultantNumber\n */\nexport var useGetCustomerConsultantNumber = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerConsultantNumberKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerConsultantNumber(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Obsolete\n * @deprecated\n * @summary consultant/{consultantNumber}/customerId\n */\nexport var getConsultantCustomerIdDeprecated = function (client, consultantNumber, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/consultant/\".concat(consultantNumber, \"/customerId\"), method: 'get', headers: headers }, options);\n};\nexport var getGetConsultantCustomerIdDeprecatedKey = function (consultantNumber) {\n return [\"/consultant/\".concat(consultantNumber, \"/customerId\")];\n};\n/**\n * @deprecated\n * @summary consultant/{consultantNumber}/customerId\n */\nexport var useGetConsultantCustomerIdDeprecated = function (consultantNumber, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!consultantNumber;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConsultantCustomerIdDeprecatedKey(consultantNumber) : null); });\n var swrFn = function () {\n return getConsultantCustomerIdDeprecated(customInstance, consultantNumber, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Track the activity\n * @summary customers/{customerId}/activities\n */\nexport var createCustomerActivity = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/activities\"), method: 'post', headers: headers, params: params }, options);\n};\n/**\n * GET: Get potential and completed activities\n * @summary customers/{customerId}/activities\n */\nexport var getCustomerActivities = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/activities\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerActivitiesKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/activities\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/activities\n */\nexport var useGetCustomerActivities = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerActivitiesKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerActivities(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets collection of concept labels for anonymous customer.\n * @summary customers/{customerId}/conceptLabels\n */\nexport var getCustomerConceptLabels = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/conceptLabels\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerConceptLabelsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/conceptLabels\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/conceptLabels\n */\nexport var useGetCustomerConceptLabels = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerConceptLabelsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerConceptLabels(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the information about the customer for given customer id\n * @summary customers/{customerId}/info\n */\nexport var getCustomerInfo = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/info\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerInfoKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/info\")];\n};\n/**\n * @summary customers/{customerId}/info\n */\nexport var useGetCustomerInfo = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerInfoKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerInfo(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the metadata about customer info API\n * @summary customers/{customerId}/infoMetadata\n */\nexport var getCustomerInfoMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/infoMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerInfoMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/infoMetadata\")];\n};\n/**\n * @summary customers/{customerId}/infoMetadata\n */\nexport var useGetCustomerInfoMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerInfoMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerInfoMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Welcome program progress of the consultant\n * @summary customers/{customerId}/welcomeProgram\n */\nexport var getCustomerWelcomeProgram = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/welcomeProgram\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerWelcomeProgramKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/welcomeProgram\")];\n};\n/**\n * @summary customers/{customerId}/welcomeProgram\n */\nexport var useGetCustomerWelcomeProgram = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerWelcomeProgramKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerWelcomeProgram(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Activity program progress of the consultant\n * @summary customers/{customerId}/activityProgram\n */\nexport var getCustomerActivityProgram = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/activityProgram\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerActivityProgramKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/activityProgram\")];\n};\n/**\n * @summary customers/{customerId}/activityProgram\n */\nexport var useGetCustomerActivityProgram = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerActivityProgramKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerActivityProgram(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Recruitment campaign data\n * @summary customers/{customerId}/recruitmentCampaign\n */\nexport var getCustomerRecruitmentCampaign = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/recruitmentCampaign\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRecruitmentCampaignKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/recruitmentCampaign\")];\n};\n/**\n * @summary customers/{customerId}/recruitmentCampaign\n */\nexport var useGetCustomerRecruitmentCampaign = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRecruitmentCampaignKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerRecruitmentCampaign(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Consultant personal sales for the current period\n * @summary customers/{customerId}/personalSales\n */\nexport var getCustomerPersonalSales = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/personalSales\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPersonalSalesKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/personalSales\")];\n};\n/**\n * @summary customers/{customerId}/personalSales\n */\nexport var useGetCustomerPersonalSales = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPersonalSalesKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPersonalSales(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Consultant personal sales for 3 past periods\n * @summary customers/{customerId}/personalSalesHistory\n */\nexport var getCustomerPersonalSalesHistory = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/personalSalesHistory\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPersonalSalesHistoryKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/personalSalesHistory\")];\n};\n/**\n * @summary customers/{customerId}/personalSalesHistory\n */\nexport var useGetCustomerPersonalSalesHistory = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPersonalSalesHistoryKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPersonalSalesHistory(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get current loyalty program overview\n * @summary customers/{customerId}/loyaltyProgram\n */\nexport var getCustomerLoyaltyProgram = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/loyaltyProgram\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerLoyaltyProgramKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/loyaltyProgram\")];\n};\n/**\n * @summary customers/{customerId}/loyaltyProgram\n */\nexport var useGetCustomerLoyaltyProgram = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerLoyaltyProgramKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerLoyaltyProgram(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns metadata for customer attributes\n * @summary customers/{customerId}/metadata\n */\nexport var getCustomerMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/metadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/metadata\")];\n};\n/**\n * @summary customers/{customerId}/metadata\n */\nexport var useGetCustomerMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Subscribes or returns status of newsletter subscription for given email, origin and source values.\n * @summary customers/{customerId}/newsletterSubscriptions\n */\nexport var createCustomerNewsletterSubscription = function (client, customerId, globalNewsletterSubscriptionsNewsletterSubscriptionsDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/newsletterSubscriptions\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNewsletterSubscriptionsNewsletterSubscriptionsDtoBody,\n }, options);\n};\n/**\n * Gets collection of product labels for a specific customer.\n * @summary customers/{customerId}/productsLabels\n */\nexport var getCustomerProductsLabels = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/productsLabels\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerProductsLabelsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/productsLabels\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/productsLabels\n */\nexport var useGetCustomerProductsLabels = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProductsLabelsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerProductsLabels(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns set of customer terms which are required to be accepted\n * @summary customers/{customerId}/requiredTerms\n */\nexport var getCustomerRequiredTerms = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/requiredTerms\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerRequiredTermsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/requiredTerms\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/requiredTerms\n */\nexport var useGetCustomerRequiredTerms = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRequiredTermsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerRequiredTerms(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns customer status by given request query\n * @summary reports/customerStatuses\n */\nexport var createReportsCustomerStatus = function (client, globalReportsCustomerStatusesRequestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/reports/customerStatuses\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalReportsCustomerStatusesRequestDto,\n }, options);\n};\n/**\n * GET: customer status\n * @summary customers/{customerId}/customerStatus\n */\nexport var getCustomerCustomerStatus = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/customerStatus\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerCustomerStatusKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/customerStatus\")];\n};\n/**\n * @summary customers/{customerId}/customerStatus\n */\nexport var useGetCustomerCustomerStatus = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerCustomerStatusKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerCustomerStatus(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: modify customer's status\n * @summary customers/{customerId}/customerStatus\n */\nexport var updateCustomerCustomerStatus = function (client, customerId, globalCustomersCustomerStatusDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/customerStatus\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerStatusDto,\n }, options);\n};\n/**\n * GET: Gets customer status metadata\n * @summary customers/{customerId}/customerStatusMetadata\n */\nexport var getCustomerCustomerStatusMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/customerStatusMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerCustomerStatusMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/customerStatusMetadata\")];\n};\n/**\n * @summary customers/{customerId}/customerStatusMetadata\n */\nexport var useGetCustomerCustomerStatusMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerCustomerStatusMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerCustomerStatusMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the title.\n * @summary customers/{customerId}/localConsultantTitle\n */\nexport var getCustomerLocalConsultantTitle = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/localConsultantTitle\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerLocalConsultantTitleKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/localConsultantTitle\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/localConsultantTitle\n */\nexport var useGetCustomerLocalConsultantTitle = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerLocalConsultantTitleKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerLocalConsultantTitle(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets documents in folder\n * @summary digitalDocuments\n */\nexport var getDigitalDocuments = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/digitalDocuments\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetDigitalDocumentsKey = function (params) {\n return __spreadArray([\"/digitalDocuments\"], (params ? [params] : []), true);\n};\n/**\n * @summary digitalDocuments\n */\nexport var useGetDigitalDocuments = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDigitalDocumentsKey(params) : null); });\n var swrFn = function () {\n return getDigitalDocuments(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets document by ID\n * @summary digitalDocuments/{id}\n */\nexport var getDigitalDocument = function (client, id, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/digitalDocuments/\".concat(id), method: 'get', headers: headers }, options);\n};\nexport var getGetDigitalDocumentKey = function (id) { return [\"/digitalDocuments/\".concat(id)]; };\n/**\n * @summary digitalDocuments/{id}\n */\nexport var useGetDigitalDocument = function (id, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!id;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDigitalDocumentKey(id) : null); });\n var swrFn = function () {\n return getDigitalDocument(customInstance, id, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets document content (direct download) by document ID and content ID\n * @summary digitalDocuments/{id}/contents/{contentId}\n */\nexport var getDigitalDocumentContent = function (client, id, contentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/digitalDocuments/\".concat(id, \"/contents/\").concat(contentId),\n method: 'get',\n headers: headers,\n responseType: 'blob',\n }, options);\n};\nexport var getGetDigitalDocumentContentKey = function (id, contentId) {\n return [\"/digitalDocuments/\".concat(id, \"/contents/\").concat(contentId)];\n};\n/**\n * @summary digitalDocuments/{id}/contents/{contentId}\n */\nexport var useGetDigitalDocumentContent = function (id, contentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(id && contentId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDigitalDocumentContentKey(id, contentId) : null); });\n var swrFn = function () {\n return getDigitalDocumentContent(customInstance, id, contentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets document content (direct download) - latest revision\n * @summary digitalDocuments/{id}/latestContent\n */\nexport var getDigitalDocumentLatestContent = function (client, id, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/digitalDocuments/\".concat(id, \"/latestContent\"), method: 'get', headers: headers, responseType: 'blob' }, options);\n};\nexport var getGetDigitalDocumentLatestContentKey = function (id) {\n return [\"/digitalDocuments/\".concat(id, \"/latestContent\")];\n};\n/**\n * @summary digitalDocuments/{id}/latestContent\n */\nexport var useGetDigitalDocumentLatestContent = function (id, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!id;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDigitalDocumentLatestContentKey(id) : null); });\n var swrFn = function () {\n return getDigitalDocumentLatestContent(customInstance, id, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get customer's delivery address\n * @summary customers/{customerId}/deliveryAddresses/{deliveryAddressId}\n */\nexport var getCustomerDeliveryAddress = function (client, customerId, deliveryAddressId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/deliveryAddresses/\").concat(deliveryAddressId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerDeliveryAddressKey = function (customerId, deliveryAddressId) {\n return [\"/customers/\".concat(customerId, \"/deliveryAddresses/\").concat(deliveryAddressId)];\n};\n/**\n * @summary customers/{customerId}/deliveryAddresses/{deliveryAddressId}\n */\nexport var useGetCustomerDeliveryAddress = function (customerId, deliveryAddressId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && deliveryAddressId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerDeliveryAddressKey(customerId, deliveryAddressId) : null); });\n var swrFn = function () {\n return getCustomerDeliveryAddress(customInstance, customerId, deliveryAddressId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide delivery channel\n * @summary deliveryChannels/{deliveryChannelId}\n */\nexport var getDeliveryChannel = function (client, deliveryChannelId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/deliveryChannels/\".concat(deliveryChannelId), method: 'get', headers: headers }, options);\n};\nexport var getGetDeliveryChannelKey = function (deliveryChannelId) {\n return [\"/deliveryChannels/\".concat(deliveryChannelId)];\n};\n/**\n * @summary deliveryChannels/{deliveryChannelId}\n */\nexport var useGetDeliveryChannel = function (deliveryChannelId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!deliveryChannelId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDeliveryChannelKey(deliveryChannelId) : null); });\n var swrFn = function () {\n return getDeliveryChannel(customInstance, deliveryChannelId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide delivery channel address\n * @summary deliveryChannels/{deliveryChannelId}/address\n */\nexport var getDeliveryChannelAddress = function (client, deliveryChannelId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/deliveryChannels/\".concat(deliveryChannelId, \"/address\"), method: 'get', headers: headers }, options);\n};\nexport var getGetDeliveryChannelAddressKey = function (deliveryChannelId) {\n return [\"/deliveryChannels/\".concat(deliveryChannelId, \"/address\")];\n};\n/**\n * @summary deliveryChannels/{deliveryChannelId}/address\n */\nexport var useGetDeliveryChannelAddress = function (deliveryChannelId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!deliveryChannelId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDeliveryChannelAddressKey(deliveryChannelId) : null); });\n var swrFn = function () {\n return getDeliveryChannelAddress(customInstance, deliveryChannelId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide delivery channel coordinates\n * @summary deliveryChannels/{deliveryChannelId}/coordinates\n */\nexport var getDeliveryChannelCoordinates = function (client, deliveryChannelId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/deliveryChannels/\".concat(deliveryChannelId, \"/coordinates\"), method: 'get', headers: headers }, options);\n};\nexport var getGetDeliveryChannelCoordinatesKey = function (deliveryChannelId) {\n return [\"/deliveryChannels/\".concat(deliveryChannelId, \"/coordinates\")];\n};\n/**\n * @summary deliveryChannels/{deliveryChannelId}/coordinates\n */\nexport var useGetDeliveryChannelCoordinates = function (deliveryChannelId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!deliveryChannelId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDeliveryChannelCoordinatesKey(deliveryChannelId) : null); });\n var swrFn = function () {\n return getDeliveryChannelCoordinates(customInstance, deliveryChannelId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Find available delivery channel based on search criteria\n * @summary shoppingSessions/{sessionId}/deliveryChannels\n */\nexport var getShoppingSessionDeliveryChannels = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/deliveryChannels\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionDeliveryChannelsKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/deliveryChannels\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/deliveryChannels\n */\nexport var useGetShoppingSessionDeliveryChannels = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionDeliveryChannelsKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionDeliveryChannels(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Find available pick-up points based on search criteria on the map\n * @summary shoppingSessions/{sessionId}/clusteredPickupPoints\n */\nexport var getShoppingSessionClusteredPickupPoints = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/clusteredPickupPoints\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionClusteredPickupPointsKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/clusteredPickupPoints\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/clusteredPickupPoints\n */\nexport var useGetShoppingSessionClusteredPickupPoints = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionClusteredPickupPointsKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionClusteredPickupPoints(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets delivery channel by id\n * @summary shoppingSessions/{sessionId}/deliveryChannels/{deliveryChannelId}\n */\nexport var getShoppingSessionDeliveryChannel = function (client, sessionId, deliveryChannelId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/deliveryChannels/\").concat(deliveryChannelId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionDeliveryChannelKey = function (sessionId, deliveryChannelId) { return [\"/shoppingSessions/\".concat(sessionId, \"/deliveryChannels/\").concat(deliveryChannelId)]; };\n/**\n * @summary shoppingSessions/{sessionId}/deliveryChannels/{deliveryChannelId}\n */\nexport var useGetShoppingSessionDeliveryChannel = function (sessionId, deliveryChannelId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && deliveryChannelId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetShoppingSessionDeliveryChannelKey(sessionId, deliveryChannelId) : null;\n });\n var swrFn = function () {\n return getShoppingSessionDeliveryChannel(customInstance, sessionId, deliveryChannelId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides available delivery methods\n * @summary shoppingSessions/{sessionId}/deliveryMethods\n */\nexport var getShoppingSessionDeliveryMethods = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/deliveryMethods\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionDeliveryMethodsKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/deliveryMethods\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/deliveryMethods\n */\nexport var useGetShoppingSessionDeliveryMethods = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionDeliveryMethodsKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionDeliveryMethods(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide relevant delivery filters\n * @summary shoppingSessions/{sessionId}/deliveryFilters\n */\nexport var getShoppingSessionDeliveryFilters = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/deliveryFilters\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionDeliveryFiltersKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/deliveryFilters\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/deliveryFilters\n */\nexport var useGetShoppingSessionDeliveryFilters = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionDeliveryFiltersKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionDeliveryFilters(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Find available delivery options\n * @summary shoppingSessions/{sessionId}/deliveryOptions\n */\nexport var getShoppingSessionDeliveryOptions = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/deliveryOptions\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionDeliveryOptionsKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/deliveryOptions\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/deliveryOptions\n */\nexport var useGetShoppingSessionDeliveryOptions = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionDeliveryOptionsKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionDeliveryOptions(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide selected delivery channel and address\n * @summary shoppingSessions/{sessionId}/delivery\n */\nexport var getShoppingSessionDelivery = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/delivery\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionDeliveryKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/delivery\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/delivery\n */\nexport var useGetShoppingSessionDelivery = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionDeliveryKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionDelivery(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Update selected delivery channel and address\n * @summary shoppingSessions/{sessionId}/delivery\n */\nexport var updateShoppingSessionDelivery = function (client, sessionId, globalShoppingDeliverySelectionDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/delivery\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingDeliverySelectionDto,\n }, options);\n};\n/**\n * Courier can post information about new status of a delivery\n * @summary couriers/{courierId}/wayBillNumbers/{wayBillNumber}/deliveryStatuses\n */\nexport var createCourierWayBillNumberDeliveryStatus = function (client, courierId, wayBillNumber, globalDeliveryDeliveryStatusDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/couriers/\".concat(courierId, \"/wayBillNumbers/\").concat(wayBillNumber, \"/deliveryStatuses\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalDeliveryDeliveryStatusDto,\n }, options);\n};\n/**\n * Saves customer document.\n * @summary customers/{customerId}/documents\n */\nexport var createCustomerDocument = function (client, customerId, createCustomerDocumentBody, params, headers, options) {\n var customInstance = client.createFetcher();\n var formData = new FormData();\n if (createCustomerDocumentBody.file !== undefined) {\n formData.append('file', createCustomerDocumentBody.file);\n }\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/documents\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'multipart/form-data' }, headers),\n data: formData,\n params: params,\n }, options);\n};\n/**\n * Gets customer image by id and optionally resizes it,\nif width and height parameters are provided.\nCaches result for 7 days.\n * @summary customers/{customerId}/documents/{documentId}/image\n */\nexport var getCustomerDocumentImage = function (client, customerId, documentId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/documents/\").concat(documentId, \"/image\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCustomerDocumentImageKey = function (customerId, documentId, params) {\n return __spreadArray([\"/customers/\".concat(customerId, \"/documents/\").concat(documentId, \"/image\")], (params ? [params] : []), true);\n};\n/**\n * @summary customers/{customerId}/documents/{documentId}/image\n */\nexport var useGetCustomerDocumentImage = function (customerId, documentId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && documentId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerDocumentImageKey(customerId, documentId, params) : null); });\n var swrFn = function () {\n return getCustomerDocumentImage(customInstance, customerId, documentId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets customer binary document by id.\nCaches result for 7 days.\n * @summary customers/{customerId}/documents/{documentId}\n */\nexport var getCustomerDocument = function (client, customerId, documentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/documents/\").concat(documentId), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerDocumentKey = function (customerId, documentId) {\n return [\"/customers/\".concat(customerId, \"/documents/\").concat(documentId)];\n};\n/**\n * @summary customers/{customerId}/documents/{documentId}\n */\nexport var useGetCustomerDocument = function (customerId, documentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && documentId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerDocumentKey(customerId, documentId) : null); });\n var swrFn = function () {\n return getCustomerDocument(customInstance, customerId, documentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Delete customers document\n * @summary customers/{customerId}/documents/{documentId}\n */\nexport var deleteCustomerDocument = function (client, customerId, documentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/documents/\").concat(documentId), method: 'delete', headers: headers }, options);\n};\n/**\n * Gets the customer documents ids.\n * @summary customers/{customerId}/documents/infos\n */\nexport var getCustomerDocumentsInfos = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/documents/infos\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerDocumentsInfosKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/documents/infos\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/documents/infos\n */\nexport var useGetCustomerDocumentsInfos = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerDocumentsInfosKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerDocumentsInfos(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets all available document types\n * @summary documentTypes\n */\nexport var getDocumentTypes = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/documentTypes\", method: 'get', headers: headers }, options);\n};\nexport var getGetDocumentTypesKey = function () { return [\"/documentTypes\"]; };\n/**\n * @summary documentTypes\n */\nexport var useGetDocumentTypes = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDocumentTypesKey() : null); });\n var swrFn = function () { return getDocumentTypes(customInstance, headers, requestOptions).then(function (d) { return d.data; }); };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Saves an anonymous (without assigning customer)\n * @summary documents\n */\nexport var createDocument = function (client, createCustomerDocumentBody, params, headers, options) {\n var customInstance = client.createFetcher();\n var formData = new FormData();\n if (createCustomerDocumentBody.file !== undefined) {\n formData.append('file', createCustomerDocumentBody.file);\n }\n return customInstance({\n url: \"/documents\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'multipart/form-data' }, headers),\n data: formData,\n params: params,\n }, options);\n};\n/**\n * Gets anonymous (without assigned customer) image by id and optionally resizes it,\nif width and height parameters are provided.\nCaches result for 7 days.\n * @summary documents/{documentId}/image\n */\nexport var getDocumentImage = function (client, documentId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/documents/\".concat(documentId, \"/image\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetDocumentImageKey = function (documentId, params) {\n return __spreadArray([\"/documents/\".concat(documentId, \"/image\")], (params ? [params] : []), true);\n};\n/**\n * @summary documents/{documentId}/image\n */\nexport var useGetDocumentImage = function (documentId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!documentId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDocumentImageKey(documentId, params) : null); });\n var swrFn = function () {\n return getDocumentImage(customInstance, documentId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets anonymous (without assigned customer) binary document by id.\nCaches result for 7 days.\n * @summary documents/{documentId}\n */\nexport var getDocument = function (client, documentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/documents/\".concat(documentId), method: 'get', headers: headers }, options);\n};\nexport var getGetDocumentKey = function (documentId) { return [\"/documents/\".concat(documentId)]; };\n/**\n * @summary documents/{documentId}\n */\nexport var useGetDocument = function (documentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!documentId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDocumentKey(documentId) : null); });\n var swrFn = function () {\n return getDocument(customInstance, documentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the anonymous (without assigned customer) documents info.\n * @summary documents/infos\n */\nexport var getDocumentsInfos = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/documents/infos\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetDocumentsInfosKey = function (params) {\n return __spreadArray([\"/documents/infos\"], (params ? [params] : []), true);\n};\n/**\n * @summary documents/infos\n */\nexport var useGetDocumentsInfos = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDocumentsInfosKey(params) : null); });\n var swrFn = function () {\n return getDocumentsInfos(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get document approvals by filter parameters\n * @summary customers/{customerId}/documentApprovals\n */\nexport var getCustomerDocumentApprovals = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/documentApprovals\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerDocumentApprovalsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/documentApprovals\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/documentApprovals\n */\nexport var useGetCustomerDocumentApprovals = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerDocumentApprovalsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerDocumentApprovals(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Create document approval\n * @summary customers/{customerId}/documentApprovals\n */\nexport var createCustomerDocumentApproval = function (client, customerId, globalCustomersDocumentApprovalDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/documentApprovals\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersDocumentApprovalDto,\n }, options);\n};\n/**\n * Get document approval by ID\n * @summary customers/{customerId}/documentApprovals/{documentApprovalId}\n */\nexport var getCustomerDocumentApproval = function (client, customerId, documentApprovalId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/documentApprovals/\").concat(documentApprovalId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerDocumentApprovalKey = function (customerId, documentApprovalId) {\n return [\"/customers/\".concat(customerId, \"/documentApprovals/\").concat(documentApprovalId)];\n};\n/**\n * @summary customers/{customerId}/documentApprovals/{documentApprovalId}\n */\nexport var useGetCustomerDocumentApproval = function (customerId, documentApprovalId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && documentApprovalId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerDocumentApprovalKey(customerId, documentApprovalId) : null); });\n var swrFn = function () {\n return getCustomerDocumentApproval(customInstance, customerId, documentApprovalId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Downgrades customer.\n * @summary customers/{customerId}/downgradeRequest\n */\nexport var updateCustomerDowngradeRequest = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/downgradeRequest\"), method: 'put', headers: headers }, options);\n};\n/**\n * GET: Returns downline customers for given customer\n * @summary customers/{customerId}/downlineCustomers\n */\nexport var getCustomerDownlineCustomers = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/downlineCustomers\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerDownlineCustomersKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/downlineCustomers\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/downlineCustomers\n */\nexport var useGetCustomerDownlineCustomers = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerDownlineCustomersKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerDownlineCustomers(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get downline performance kpis\n * @summary customers/{customerId}/downlinePerformance\n */\nexport var getCustomerDownlinePerformance = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/downlinePerformance\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerDownlinePerformanceKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/downlinePerformance\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/downlinePerformance\n */\nexport var useGetCustomerDownlinePerformance = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerDownlinePerformanceKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerDownlinePerformance(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET - provides collection of editorial articles\n * @summary editorialArticles\n */\nexport var getEditorialArticles = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/editorialArticles\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetEditorialArticlesKey = function (params) {\n return __spreadArray([\"/editorialArticles\"], (params ? [params] : []), true);\n};\n/**\n * @summary editorialArticles\n */\nexport var useGetEditorialArticles = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetEditorialArticlesKey(params) : null); });\n var swrFn = function () {\n return getEditorialArticles(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Localization for EInvoice application\n * @summary applications/eInvoice/localization\n */\nexport var getApplicationsEInvoiceLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/eInvoice/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsEInvoiceLocalizationKey = function () {\n return [\"/applications/eInvoice/localization\"];\n};\n/**\n * @summary applications/eInvoice/localization\n */\nexport var useGetApplicationsEInvoiceLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsEInvoiceLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsEInvoiceLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns documents for identity card\n * @summary customers/{customerId}/eInvoiceApproval\n */\nexport var getCustomerEInvoiceApproval = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/eInvoiceApproval\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerEInvoiceApprovalKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/eInvoiceApproval\")];\n};\n/**\n * @summary customers/{customerId}/eInvoiceApproval\n */\nexport var useGetCustomerEInvoiceApproval = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerEInvoiceApprovalKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerEInvoiceApproval(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change e-invoice approval flag\n * @summary customers/{customerId}/eInvoiceApproval\n */\nexport var updateCustomerEInvoiceApproval = function (client, customerId, globalCustomersCustomerBooleanDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/eInvoiceApproval\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerBooleanDtoBody,\n }, options);\n};\n/**\n * Gets customer emails.\nCustomer can own only single active and single pending email at the moment.\n * @summary customers/{customerId}/emails\n */\nexport var getCustomerEmails = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/emails\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerEmailsKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/emails\")];\n};\n/**\n * @summary customers/{customerId}/emails\n */\nexport var useGetCustomerEmails = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerEmailsKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerEmails(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Sets new/overrides email for customer.\nCustomer can own only single active and single pending email at the moment.\nEmail is stored as pending and waiting for confirmation\n * @summary customers/{customerId}/emails\n */\nexport var createCustomerEmail = function (client, customerId, globalCustomersEmailDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/emails\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersEmailDto,\n }, options);\n};\n/**\n * Delete customers active or pending email.\n * @summary customers/{customerId}/emails/{emailAddress}\n */\nexport var deleteCustomerEmail = function (client, customerId, emailAddress, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/emails/\").concat(emailAddress), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Gets metadata information for email endpoints of the customer with given customer id\n * @summary customers/{customerId}/emailsMetadata\n */\nexport var getCustomerEmailsMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/emailsMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerEmailsMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/emailsMetadata\")];\n};\n/**\n * @summary customers/{customerId}/emailsMetadata\n */\nexport var useGetCustomerEmailsMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerEmailsMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerEmailsMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the status of verification process for given email and customer id\n * @summary customers/{customerId}/emails/{emailAddress}/verificationRequest\n */\nexport var getCustomerEmailVerificationRequest = function (client, customerId, emailAddress, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/emails/\").concat(emailAddress, \"/verificationRequest\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerEmailVerificationRequestKey = function (customerId, emailAddress) { return [\"/customers/\".concat(customerId, \"/emails/\").concat(emailAddress, \"/verificationRequest\")]; };\n/**\n * @summary customers/{customerId}/emails/{emailAddress}/verificationRequest\n */\nexport var useGetCustomerEmailVerificationRequest = function (customerId, emailAddress, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && emailAddress);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCustomerEmailVerificationRequestKey(customerId, emailAddress) : null;\n });\n var swrFn = function () {\n return getCustomerEmailVerificationRequest(customInstance, customerId, emailAddress, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Requests resending verification email for customer with given customer id and email address\n * @summary customers/{customerId}/emails/{emailAddress}/verificationRequest\n */\nexport var updateCustomerEmailVerificationRequest = function (client, customerId, emailAddress, globalCustomersEmailVerificationRequestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/emails/\").concat(emailAddress, \"/verificationRequest\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersEmailVerificationRequestDto,\n }, options);\n};\n/**\n * Get end consumer order by ItemCode\n * @summary endConsumerOrders/{endConsumerOrderId}/items/{itemCode}\n */\nexport var getEndConsumerOrderItem = function (client, endConsumerOrderId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/endConsumerOrders/\".concat(endConsumerOrderId, \"/items/\").concat(itemCode), method: 'get', headers: headers }, options);\n};\nexport var getGetEndConsumerOrderItemKey = function (endConsumerOrderId, itemCode) {\n return [\"/endConsumerOrders/\".concat(endConsumerOrderId, \"/items/\").concat(itemCode)];\n};\n/**\n * @summary endConsumerOrders/{endConsumerOrderId}/items/{itemCode}\n */\nexport var useGetEndConsumerOrderItem = function (endConsumerOrderId, itemCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(endConsumerOrderId && itemCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetEndConsumerOrderItemKey(endConsumerOrderId, itemCode) : null); });\n var swrFn = function () {\n return getEndConsumerOrderItem(customInstance, endConsumerOrderId, itemCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Update existing item on end consumer order\n * @summary endConsumerOrders/{endConsumerOrderId}/items/{itemCode}\n */\nexport var updateEndConsumerOrderItem = function (client, endConsumerOrderId, itemCode, globalEndConsumerOrdersEndConsumerOrderItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/endConsumerOrders/\".concat(endConsumerOrderId, \"/items/\").concat(itemCode),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalEndConsumerOrdersEndConsumerOrderItemDto,\n }, options);\n};\n/**\n * Delete/remove item from end consumer order\n * @summary endConsumerOrders/{endConsumerOrderId}/items/{itemCode}\n */\nexport var deleteEndConsumerOrderItem = function (client, endConsumerOrderId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/endConsumerOrders/\".concat(endConsumerOrderId, \"/items/\").concat(itemCode),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Add new item to end consumer order\n * @summary endConsumerOrders/{endConsumerOrderId}/items\n */\nexport var createEndConsumerOrderItem = function (client, endConsumerOrderId, globalEndConsumerOrdersEndConsumerOrderItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/endConsumerOrders/\".concat(endConsumerOrderId, \"/items\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalEndConsumerOrdersEndConsumerOrderItemDto,\n }, options);\n};\n/**\n * Creates new end consumer order\n * @summary endConsumerOrders\n */\nexport var createEndConsumerOrder = function (client, globalEndConsumerOrdersEndConsumerOrderDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/endConsumerOrders\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalEndConsumerOrdersEndConsumerOrderDto,\n }, options);\n};\n/**\n * Get all end consumer orders for given customer ID\n * @summary endConsumerOrders\n */\nexport var getEndConsumerOrders = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/endConsumerOrders\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetEndConsumerOrdersKey = function (params) {\n return __spreadArray([\"/endConsumerOrders\"], (params ? [params] : []), true);\n};\n/**\n * @summary endConsumerOrders\n */\nexport var useGetEndConsumerOrders = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetEndConsumerOrdersKey(params) : null); });\n var swrFn = function () {\n return getEndConsumerOrders(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get end consumer order by id\n * @summary endConsumerOrders/{endConsumerOrderId}\n */\nexport var getEndConsumerOrder = function (client, endConsumerOrderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/endConsumerOrders/\".concat(endConsumerOrderId), method: 'get', headers: headers }, options);\n};\nexport var getGetEndConsumerOrderKey = function (endConsumerOrderId) {\n return [\"/endConsumerOrders/\".concat(endConsumerOrderId)];\n};\n/**\n * @summary endConsumerOrders/{endConsumerOrderId}\n */\nexport var useGetEndConsumerOrder = function (endConsumerOrderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!endConsumerOrderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetEndConsumerOrderKey(endConsumerOrderId) : null); });\n var swrFn = function () {\n return getEndConsumerOrder(customInstance, endConsumerOrderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Create approval for end consumer order\n * @summary endConsumerOrders/{endConsumerOrderId}/approval\n */\nexport var createEndConsumerOrderApproval = function (client, endConsumerOrderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/endConsumerOrders/\".concat(endConsumerOrderId, \"/approval\"), method: 'post', headers: headers }, options);\n};\n/**\n * Delete approval for end consumer order\n * @summary endConsumerOrders/{endConsumerOrderId}/approval\n */\nexport var deleteEndConsumerOrderApproval = function (client, endConsumerOrderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/endConsumerOrders/\".concat(endConsumerOrderId, \"/approval\"), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Gets the collection of all end consumers of the customer with given customer id\n * @summary customers/{customerId}/endConsumers\n */\nexport var getCustomerEndConsumers = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/endConsumers\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerEndConsumersKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/endConsumers\")];\n};\n/**\n * @summary customers/{customerId}/endConsumers\n */\nexport var useGetCustomerEndConsumers = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerEndConsumersKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerEndConsumers(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates new end consumer for the customer with given customer id\n * @summary customers/{customerId}/endConsumers\n */\nexport var createCustomerEndConsumer = function (client, customerId, globalCustomersEndConsumerDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/endConsumers\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersEndConsumerDtoBody,\n }, options);\n};\n/**\n * GET: Get specific end consumer of the customer with given customer id\n * @summary customers/{customerId}/endConsumers/{endConsumerId}\n */\nexport var getCustomerEndConsumer = function (client, customerId, endConsumerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/endConsumers/\").concat(endConsumerId), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerEndConsumerKey = function (customerId, endConsumerId) {\n return [\"/customers/\".concat(customerId, \"/endConsumers/\").concat(endConsumerId)];\n};\n/**\n * @summary customers/{customerId}/endConsumers/{endConsumerId}\n */\nexport var useGetCustomerEndConsumer = function (customerId, endConsumerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && endConsumerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerEndConsumerKey(customerId, endConsumerId) : null); });\n var swrFn = function () {\n return getCustomerEndConsumer(customInstance, customerId, endConsumerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Updates end consumer for the customer with given customer id\n * @summary customers/{customerId}/endConsumers/{endConsumerId}\n */\nexport var updateCustomerEndConsumer = function (client, customerId, endConsumerId, globalCustomersEndConsumerDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/endConsumers/\").concat(endConsumerId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersEndConsumerDtoBody,\n }, options);\n};\n/**\n * DELETE: Removes end consumer for the customer with given customer id\n * @summary customers/{customerId}/endConsumers/{endConsumerId}\n */\nexport var deleteCustomerEndConsumer = function (client, customerId, endConsumerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/endConsumers/\").concat(endConsumerId), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Returns metadata information for endConsumer endpoints\n * @summary endConsumersMetadata\n */\nexport var getEndConsumersMetadata = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/endConsumersMetadata\", method: 'get', headers: headers }, options);\n};\nexport var getGetEndConsumersMetadataKey = function () { return [\"/endConsumersMetadata\"]; };\n/**\n * @summary endConsumersMetadata\n */\nexport var useGetEndConsumersMetadata = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetEndConsumersMetadataKey() : null); });\n var swrFn = function () {\n return getEndConsumersMetadata(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Localization for EndCustomer Referral Discount application\n * @summary applications/endCustomerReferralDiscount/localization\n */\nexport var getApplicationsEndCustomerReferralDiscountLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/endCustomerReferralDiscount/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsEndCustomerReferralDiscountLocalizationKey = function () {\n return [\"/applications/endCustomerReferralDiscount/localization\"];\n};\n/**\n * @summary applications/endCustomerReferralDiscount/localization\n */\nexport var useGetApplicationsEndCustomerReferralDiscountLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsEndCustomerReferralDiscountLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsEndCustomerReferralDiscountLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates new end customer\n * @summary endCustomers\n */\nexport var createEndCustomer = function (client, globalCustomersEndCustomerDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/endCustomers\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersEndCustomerDto,\n }, options);\n};\n/**\n * GET: Gets metadata information for endCustomers endpoints\n * @summary endCustomersMetadata\n */\nexport var getEndCustomersMetadata = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/endCustomersMetadata\", method: 'get', headers: headers }, options);\n};\nexport var getGetEndCustomersMetadataKey = function () { return [\"/endCustomersMetadata\"]; };\n/**\n * @summary endCustomersMetadata\n */\nexport var useGetEndCustomersMetadata = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetEndCustomersMetadataKey() : null); });\n var swrFn = function () {\n return getEndCustomersMetadata(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets identity server endpoints for communication with identity server (API, OAuth, OpenId)\n * @deprecated\n * @summary system/endpoints/identityServer\n */\nexport var getSystemEndpointsIdentityServerDeprecated = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/system/endpoints/identityServer\", method: 'get', headers: headers }, options);\n};\nexport var getGetSystemEndpointsIdentityServerDeprecatedKey = function () {\n return [\"/system/endpoints/identityServer\"];\n};\n/**\n * @deprecated\n * @summary system/endpoints/identityServer\n */\nexport var useGetSystemEndpointsIdentityServerDeprecated = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetSystemEndpointsIdentityServerDeprecatedKey() : null); });\n var swrFn = function () {\n return getSystemEndpointsIdentityServerDeprecated(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets Online url for specific tenant. It could be used for redirects to oriflame pages\n * @deprecated\n * @summary system/endpoints/online\n */\nexport var getSystemEndpointsOnlineDeprecated = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/system/endpoints/online\", method: 'get', headers: headers }, options);\n};\nexport var getGetSystemEndpointsOnlineDeprecatedKey = function () { return [\"/system/endpoints/online\"]; };\n/**\n * @deprecated\n * @summary system/endpoints/online\n */\nexport var useGetSystemEndpointsOnlineDeprecated = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetSystemEndpointsOnlineDeprecatedKey() : null); });\n var swrFn = function () {\n return getSystemEndpointsOnlineDeprecated(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets customer eWallet accounts\n * @summary customers/{customerId}/eWalletAccounts\n */\nexport var getCustomerEWalletAccounts = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/eWalletAccounts\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerEWalletAccountsKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/eWalletAccounts\")];\n};\n/**\n * @summary customers/{customerId}/eWalletAccounts\n */\nexport var useGetCustomerEWalletAccounts = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerEWalletAccountsKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerEWalletAccounts(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates customer eWallet account\n * @summary customers/{customerId}/eWalletAccounts\n */\nexport var createCustomerEWalletAccount = function (client, customerId, globalCustomersEWalletAccountDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/eWalletAccounts\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersEWalletAccountDtoBody,\n }, options);\n};\n/**\n * PUT: Updates customer eWallet account\n * @summary customers/{customerId}/eWalletAccounts/{eWalletAccountId}\n */\nexport var updateCustomerEWalletAccount = function (client, customerId, eWalletAccountId, globalCustomersEWalletAccountDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/eWalletAccounts/\").concat(eWalletAccountId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersEWalletAccountDtoBody,\n }, options);\n};\n/**\n * DELETE: Removes customer eWallet account by ID\n * @summary customers/{customerId}/eWalletAccounts/{eWalletAccountId}\n */\nexport var deleteCustomerEWalletAccount = function (client, customerId, eWalletAccountId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/eWalletAccounts/\").concat(eWalletAccountId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Gets metadata information for eWallet endpoints of the customer with given customer id\n * @summary customers/{customerId}/eWalletAccountsMetadata\n */\nexport var getCustomerEWalletAccountsMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/eWalletAccountsMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerEWalletAccountsMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/eWalletAccountsMetadata\")];\n};\n/**\n * @summary customers/{customerId}/eWalletAccountsMetadata\n */\nexport var useGetCustomerEWalletAccountsMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerEWalletAccountsMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerEWalletAccountsMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get WeChat unionId for customer id\n * @summary customers/{customerId}/externalAccounts/weChat/unionId\n */\nexport var getCustomerExternalAccountsWeChatUnionId = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/externalAccounts/weChat/unionId\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerExternalAccountsWeChatUnionIdKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/externalAccounts/weChat/unionId\")];\n};\n/**\n * @summary customers/{customerId}/externalAccounts/weChat/unionId\n */\nexport var useGetCustomerExternalAccountsWeChatUnionId = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerExternalAccountsWeChatUnionIdKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerExternalAccountsWeChatUnionId(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Retrieves the profiles for external providers (FB, WeChat, VKontakte...)\n * @summary customers/{customerId}/externalProfiles\n */\nexport var getCustomerExternalProfiles = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/externalProfiles\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerExternalProfilesKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/externalProfiles\")];\n};\n/**\n * @summary customers/{customerId}/externalProfiles\n */\nexport var useGetCustomerExternalProfiles = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerExternalProfilesKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerExternalProfiles(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Disconnects external account (FB, WeChat, VKontakte...)\n * @summary customers/{customerId}/externalAccounts/{externalProvider}\n */\nexport var deleteCustomerExternalAccount = function (client, customerId, externalProvider, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/externalAccounts/\").concat(externalProvider),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Gets feature toggle value for current tenant by the feature GUID.\n * @summary featureToggles/{featureId}\n */\nexport var getFeatureToggle = function (client, featureId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/featureToggles/\".concat(featureId), method: 'get', headers: headers }, options);\n};\nexport var getGetFeatureToggleKey = function (featureId) {\n return [\"/featureToggles/\".concat(featureId)];\n};\n/**\n * @summary featureToggles/{featureId}\n */\nexport var useGetFeatureToggle = function (featureId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!featureId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetFeatureToggleKey(featureId) : null); });\n var swrFn = function () {\n return getFeatureToggle(customInstance, featureId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets all feature toggle values for current tenant.\n * @summary featureToggles\n */\nexport var getFeatureToggles = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/featureToggles\", method: 'get', headers: headers }, options);\n};\nexport var getGetFeatureTogglesKey = function () { return [\"/featureToggles\"]; };\n/**\n * @summary featureToggles\n */\nexport var useGetFeatureToggles = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetFeatureTogglesKey() : null); });\n var swrFn = function () {\n return getFeatureToggles(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get customer's FinancialSet\n * @summary customers/{customerId}/financialSet\n */\nexport var getCustomerFinancialSet = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/financialSet\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerFinancialSetKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/financialSet\")];\n};\n/**\n * @summary customers/{customerId}/financialSet\n */\nexport var useGetCustomerFinancialSet = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerFinancialSetKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerFinancialSet(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets collection of formatted price data for products\n * @summary productsFormattedPrices\n */\nexport var getProductsFormattedPrices = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/productsFormattedPrices\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetProductsFormattedPricesKey = function (params) {\n return __spreadArray([\"/productsFormattedPrices\"], (params ? [params] : []), true);\n};\n/**\n * @summary productsFormattedPrices\n */\nexport var useGetProductsFormattedPrices = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductsFormattedPricesKey(params) : null); });\n var swrFn = function () {\n return getProductsFormattedPrices(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets collection of formatted price data for concepts\n * @summary conceptsFormattedPrices\n */\nexport var getConceptsFormattedPrices = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/conceptsFormattedPrices\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetConceptsFormattedPricesKey = function (params) {\n return __spreadArray([\"/conceptsFormattedPrices\"], (params ? [params] : []), true);\n};\n/**\n * @summary conceptsFormattedPrices\n */\nexport var useGetConceptsFormattedPrices = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConceptsFormattedPricesKey(params) : null); });\n var swrFn = function () {\n return getConceptsFormattedPrices(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get Front Page Banners\n * @summary applications/oriflameApp/frontPageBanners\n */\nexport var getApplicationsOriflameAppFrontPageBanners = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/oriflameApp/frontPageBanners\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetApplicationsOriflameAppFrontPageBannersKey = function (params) { return __spreadArray([\"/applications/oriflameApp/frontPageBanners\"], (params ? [params] : []), true); };\n/**\n * @summary applications/oriflameApp/frontPageBanners\n */\nexport var useGetApplicationsOriflameAppFrontPageBanners = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsOriflameAppFrontPageBannersKey(params) : null); });\n var swrFn = function () {\n return getApplicationsOriflameAppFrontPageBanners(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get Front Page Banner by ID\n * @summary applications/oriflameApp/frontPageBanners/{frontPageBannerId}\n */\nexport var getApplicationsOriflameAppFrontPageBanner = function (client, frontPageBannerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/oriflameApp/frontPageBanners/\".concat(frontPageBannerId),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetApplicationsOriflameAppFrontPageBannerKey = function (frontPageBannerId, params) {\n return __spreadArray([\n \"/applications/oriflameApp/frontPageBanners/\".concat(frontPageBannerId)\n ], (params ? [params] : []), true);\n};\n/**\n * @summary applications/oriflameApp/frontPageBanners/{frontPageBannerId}\n */\nexport var useGetApplicationsOriflameAppFrontPageBanner = function (frontPageBannerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!frontPageBannerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetApplicationsOriflameAppFrontPageBannerKey(frontPageBannerId, params)\n : null;\n });\n var swrFn = function () {\n return getApplicationsOriflameAppFrontPageBanner(customInstance, frontPageBannerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET - provides content for the Benefit Banner for segmented customer.\n * @summary applications/frontpage/customers/{customerId}/benefitBanner\n */\nexport var getApplicationsFrontpageCustomerBenefitBanner = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/frontpage/customers/\".concat(customerId, \"/benefitBanner\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetApplicationsFrontpageCustomerBenefitBannerKey = function (customerId) {\n return [\"/applications/frontpage/customers/\".concat(customerId, \"/benefitBanner\")];\n};\n/**\n * @summary applications/frontpage/customers/{customerId}/benefitBanner\n */\nexport var useGetApplicationsFrontpageCustomerBenefitBanner = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsFrontpageCustomerBenefitBannerKey(customerId) : null); });\n var swrFn = function () {\n return getApplicationsFrontpageCustomerBenefitBanner(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns Genesys widget configuration\n * @summary applications/genesysWidget\n */\nexport var getApplicationsGenesysWidget = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/genesysWidget\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsGenesysWidgetKey = function () { return [\"/applications/genesysWidget\"]; };\n/**\n * @summary applications/genesysWidget\n */\nexport var useGetApplicationsGenesysWidget = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsGenesysWidgetKey() : null); });\n var swrFn = function () {\n return getApplicationsGenesysWidget(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: granted credit\n * @summary customers/{customerId}/grantedCredit\n */\nexport var getCustomerGrantedCredit = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/grantedCredit\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerGrantedCreditKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/grantedCredit\")];\n};\n/**\n * @summary customers/{customerId}/grantedCredit\n */\nexport var useGetCustomerGrantedCredit = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerGrantedCreditKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerGrantedCredit(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: granted credit limit\n * @summary customers/{customerId}/grantedCredit\n */\nexport var updateCustomerGrantedCredit = function (client, customerId, globalCustomersGrantedCreditDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/grantedCredit\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersGrantedCreditDto,\n }, options);\n};\n/**\n * GET: guarantee Credit\n * @summary customers/{customerId}/guaranteeCredit\n */\nexport var getCustomerGuaranteeCredit = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/guaranteeCredit\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerGuaranteeCreditKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/guaranteeCredit\")];\n};\n/**\n * @summary customers/{customerId}/guaranteeCredit\n */\nexport var useGetCustomerGuaranteeCredit = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerGuaranteeCreditKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerGuaranteeCredit(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Localization for guarantee credit application\n * @summary applications/guaranteeCredit/localization\n */\nexport var getApplicationsGuaranteeCreditLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/guaranteeCredit/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsGuaranteeCreditLocalizationKey = function () {\n return [\"/applications/guaranteeCredit/localization\"];\n};\n/**\n * @summary applications/guaranteeCredit/localization\n */\nexport var useGetApplicationsGuaranteeCreditLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsGuaranteeCreditLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsGuaranteeCreditLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Configuration for guarantee credit application\n * @summary applications/guaranteeCredit/grantedCreditConfiguration\n */\nexport var getApplicationsGuaranteeCreditGrantedCreditConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/guaranteeCredit/grantedCreditConfiguration\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsGuaranteeCreditGrantedCreditConfigurationKey = function () {\n return [\"/applications/guaranteeCredit/grantedCreditConfiguration\"];\n};\n/**\n * @summary applications/guaranteeCredit/grantedCreditConfiguration\n */\nexport var useGetApplicationsGuaranteeCreditGrantedCreditConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsGuaranteeCreditGrantedCreditConfigurationKey() : null); });\n var swrFn = function () {\n return getApplicationsGuaranteeCreditGrantedCreditConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: guarantee credit customers\n * @summary applications/guaranteeCredit/customers\n */\nexport var getApplicationsGuaranteeCreditCustomers = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/guaranteeCredit/customers\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetApplicationsGuaranteeCreditCustomersKey = function (params) { return __spreadArray([\"/applications/guaranteeCredit/customers\"], (params ? [params] : []), true); };\n/**\n * @summary applications/guaranteeCredit/customers\n */\nexport var useGetApplicationsGuaranteeCreditCustomers = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsGuaranteeCreditCustomersKey(params) : null); });\n var swrFn = function () {\n return getApplicationsGuaranteeCreditCustomers(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides home delivery addresses of the customer and related delivery channels (couriers)\n * @summary shoppingSessions/{sessionId}/homeDeliveryOptions\n */\nexport var getShoppingSessionHomeDeliveryOptions = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/homeDeliveryOptions\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionHomeDeliveryOptionsKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/homeDeliveryOptions\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/homeDeliveryOptions\n */\nexport var useGetShoppingSessionHomeDeliveryOptions = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionHomeDeliveryOptionsKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionHomeDeliveryOptions(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns documents for identity card\n * @summary customers/{customerId}/identityCard\n */\nexport var getCustomerIdentityCard = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/identityCard\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerIdentityCardKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/identityCard\")];\n};\n/**\n * @summary customers/{customerId}/identityCard\n */\nexport var useGetCustomerIdentityCard = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerIdentityCardKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerIdentityCard(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change documents for identity card (temporary document are submitted and will no longer be deleted)\n * @summary customers/{customerId}/identityCard\n */\nexport var updateCustomerIdentityCard = function (client, customerId, globalCustomersIdentityCardDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/identityCard\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersIdentityCardDto,\n }, options);\n};\n/**\n * Get social media library image info by imageInfoId\n * @summary socialMediaLibrary/imageInfos/{imageInfoId}\n */\nexport var getSocialMediaLibraryImageInfo = function (client, imageInfoId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/socialMediaLibrary/imageInfos/\".concat(imageInfoId), method: 'get', headers: headers }, options);\n};\nexport var getGetSocialMediaLibraryImageInfoKey = function (imageInfoId) {\n return [\"/socialMediaLibrary/imageInfos/\".concat(imageInfoId)];\n};\n/**\n * @summary socialMediaLibrary/imageInfos/{imageInfoId}\n */\nexport var useGetSocialMediaLibraryImageInfo = function (imageInfoId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!imageInfoId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetSocialMediaLibraryImageInfoKey(imageInfoId) : null); });\n var swrFn = function () {\n return getSocialMediaLibraryImageInfo(customInstance, imageInfoId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get social media library images\n * @summary socialMediaLibrary/imageInfos\n */\nexport var getSocialMediaLibraryImageInfos = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/socialMediaLibrary/imageInfos\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetSocialMediaLibraryImageInfosKey = function (params) { return __spreadArray([\"/socialMediaLibrary/imageInfos\"], (params ? [params] : []), true); };\n/**\n * @summary socialMediaLibrary/imageInfos\n */\nexport var useGetSocialMediaLibraryImageInfos = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetSocialMediaLibraryImageInfosKey(params) : null); });\n var swrFn = function () {\n return getSocialMediaLibraryImageInfos(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns anonymous (unregistered) customer notifications.\n * @summary inAppNotifications\n */\nexport var getInAppNotifications = function (client, headers, params, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/inAppNotifications\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetInAppNotificationsKey = function (params) {\n return __spreadArray([\"/inAppNotifications\"], (params ? [params] : []), true);\n};\n/**\n * @summary inAppNotifications\n */\nexport var useGetInAppNotifications = function (headers, params, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetInAppNotificationsKey(params) : null); });\n var swrFn = function () {\n return getInAppNotifications(customInstance, headers, params, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns anonymous (unregistered) customer notifications. This method should be used to get most recent updates including new notifications.\n * @summary inAppNotificationUpdates\n */\nexport var getInAppNotificationUpdates = function (client, headers, params, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/inAppNotificationUpdates\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetInAppNotificationUpdatesKey = function (params) {\n return __spreadArray([\"/inAppNotificationUpdates\"], (params ? [params] : []), true);\n};\n/**\n * @summary inAppNotificationUpdates\n */\nexport var useGetInAppNotificationUpdates = function (headers, params, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetInAppNotificationUpdatesKey(params) : null); });\n var swrFn = function () {\n return getInAppNotificationUpdates(customInstance, headers, params, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns client notifications.\n * @summary customers/{customerId}/inAppNotifications\n */\nexport var getCustomerInAppNotifications = function (client, customerId, headers, params, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/inAppNotifications\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerInAppNotificationsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/inAppNotifications\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/inAppNotifications\n */\nexport var useGetCustomerInAppNotifications = function (customerId, headers, params, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerInAppNotificationsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerInAppNotifications(customInstance, customerId, headers, params, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Deletes all notifications of customer prior to due/current date.\n * @summary customers/{customerId}/inAppNotifications\n */\nexport var deleteCustomerInAppNotifications = function (client, customerId, headers, params, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/inAppNotifications\"), method: 'delete', headers: headers, params: params }, options);\n};\n/**\n * Returns client notifications. This method should be used to get most recent updates including new notifications.\n * @summary customers/{customerId}/inAppNotificationUpdates\n */\nexport var getCustomerInAppNotificationUpdates = function (client, customerId, headers, params, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/inAppNotificationUpdates\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerInAppNotificationUpdatesKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/inAppNotificationUpdates\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/inAppNotificationUpdates\n */\nexport var useGetCustomerInAppNotificationUpdates = function (customerId, headers, params, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerInAppNotificationUpdatesKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerInAppNotificationUpdates(customInstance, customerId, headers, params, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Marks given notification as viewed.\n * @summary customers/{customerId}/inAppNotifications/{notificationId}/viewed\n */\nexport var createCustomerInAppNotificationViewed = function (client, customerId, notificationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/inAppNotifications/\").concat(notificationId, \"/viewed\"),\n method: 'post',\n headers: headers,\n }, options);\n};\n/**\n * Marks all notifications of customer prior to due/current date as viewed.\n * @summary customers/{customerId}/inAppNotifications/viewed\n */\nexport var createCustomerInAppNotificationsViewed = function (client, customerId, headers, params, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/inAppNotifications/viewed\"), method: 'post', headers: headers, params: params }, options);\n};\n/**\n * Deletes given notification.\n * @summary customers/{customerId}/inAppNotifications/{notificationId}\n */\nexport var deleteCustomerInAppNotification = function (client, customerId, notificationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/inAppNotifications/\").concat(notificationId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Undo delete given notification.\n * @summary customers/{customerId}/inAppNotifications/{notificationId}/undelete\n */\nexport var createCustomerInAppNotificationUndelete = function (client, customerId, notificationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/inAppNotifications/\").concat(notificationId, \"/undelete\"),\n method: 'post',\n headers: headers,\n }, options);\n};\n/**\n * Marks all notifications of customer prior to due/current date as seen.\n * @summary customers/{customerId}/inAppNotifications/seen\n */\nexport var createCustomerInAppNotificationsSeen = function (client, customerId, headers, params, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/inAppNotifications/seen\"), method: 'post', headers: headers, params: params }, options);\n};\n/**\n * Marks given notification as seen.\n * @summary customers/{customerId}/inAppNotifications/{notificationId}/seen\n */\nexport var createCustomerInAppNotificationSeen = function (client, customerId, notificationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/inAppNotifications/\").concat(notificationId, \"/seen\"),\n method: 'post',\n headers: headers,\n }, options);\n};\n/**\n * Returns count of unseen notifications\n * @summary customers/{customerId}/unseenNotificationsCount\n */\nexport var getCustomerUnseenNotificationsCount = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/unseenNotificationsCount\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerUnseenNotificationsCountKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/unseenNotificationsCount\")];\n};\n/**\n * @summary customers/{customerId}/unseenNotificationsCount\n */\nexport var useGetCustomerUnseenNotificationsCount = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerUnseenNotificationsCountKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerUnseenNotificationsCount(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets collection of Ingredients for given ingredient Names. If collection of ingredients is empty\nall ingredients are returned\n * @summary ingredients\n */\nexport var getIngredients = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/ingredients\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetIngredientsKey = function (params) {\n return __spreadArray([\"/ingredients\"], (params ? [params] : []), true);\n};\n/**\n * @summary ingredients\n */\nexport var useGetIngredients = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetIngredientsKey(params) : null); });\n var swrFn = function () {\n return getIngredients(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets Ingredient for given name\n * @summary ingredients/{ingredientName}\n */\nexport var getIngredient = function (client, ingredientName, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/ingredients/\".concat(ingredientName), method: 'get', headers: headers }, options);\n};\nexport var getGetIngredientKey = function (ingredientName) {\n return [\"/ingredients/\".concat(ingredientName)];\n};\n/**\n * @summary ingredients/{ingredientName}\n */\nexport var useGetIngredient = function (ingredientName, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!ingredientName;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetIngredientKey(ingredientName) : null); });\n var swrFn = function () {\n return getIngredient(customInstance, ingredientName, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: international info\n * @summary customers/{customerId}/internationalInfo\n */\nexport var getCustomerInternationalInfo = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/internationalInfo\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerInternationalInfoKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/internationalInfo\")];\n};\n/**\n * @summary customers/{customerId}/internationalInfo\n */\nexport var useGetCustomerInternationalInfo = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerInternationalInfoKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerInternationalInfo(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets Invite Friend profile for the customer with given customer id\n * @summary customers/{customerId}/inviteFriendProfile\n */\nexport var getCustomerInviteFriendProfile = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/inviteFriendProfile\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerInviteFriendProfileKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/inviteFriendProfile\")];\n};\n/**\n * @summary customers/{customerId}/inviteFriendProfile\n */\nexport var useGetCustomerInviteFriendProfile = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerInviteFriendProfileKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerInviteFriendProfile(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns selected value for Job title\n * @summary customers/{customerId}/jobTitle\n */\nexport var getCustomerJobTitle = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/jobTitle\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerJobTitleKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/jobTitle\")];\n};\n/**\n * @summary customers/{customerId}/jobTitle\n */\nexport var useGetCustomerJobTitle = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerJobTitleKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerJobTitle(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change selected value for Job title\n * @summary customers/{customerId}/jobTitle\n */\nexport var updateCustomerJobTitle = function (client, customerId, globalCustomersCustomerSelectionDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/jobTitle\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerSelectionDtoBody,\n }, options);\n};\n/**\n * GET: Returns joining fee info and html content\n * @deprecated\n * @summary joiningFeeDialog/html\n */\nexport var getJoiningFeeDialogHtmlDeprecated = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/joiningFeeDialog/html\", method: 'get', headers: headers }, options);\n};\nexport var getGetJoiningFeeDialogHtmlDeprecatedKey = function () { return [\"/joiningFeeDialog/html\"]; };\n/**\n * @deprecated\n * @summary joiningFeeDialog/html\n */\nexport var useGetJoiningFeeDialogHtmlDeprecated = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetJoiningFeeDialogHtmlDeprecatedKey() : null); });\n var swrFn = function () {\n return getJoiningFeeDialogHtmlDeprecated(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns legal information of registration with given ID\n * @summary customerRegistrations/{registrationId}/legalDetails\n */\nexport var getCustomerRegistrationLegalDetails = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customerRegistrations/\".concat(registrationId, \"/legalDetails\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationLegalDetailsKey = function (registrationId) {\n return [\"/customerRegistrations/\".concat(registrationId, \"/legalDetails\")];\n};\n/**\n * @summary customerRegistrations/{registrationId}/legalDetails\n */\nexport var useGetCustomerRegistrationLegalDetails = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationLegalDetailsKey(registrationId) : null); });\n var swrFn = function () {\n return getCustomerRegistrationLegalDetails(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Modifies legal information of registration with given ID\n * @summary customerRegistrations/{registrationId}/legalDetails\n */\nexport var updateCustomerRegistrationLegalDetails = function (client, registrationId, globalCustomerRegistrationsRegistrationLegalDetailsDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations/\".concat(registrationId, \"/legalDetails\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomerRegistrationsRegistrationLegalDetailsDto,\n }, options);\n};\n/**\n * GET: Returns legal document with given area manager filled in\n * @summary customers/{customerId}/legalDocument\n */\nexport var getCustomerLegalDocument = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/legalDocument\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerLegalDocumentKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/legalDocument\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/legalDocument\n */\nexport var useGetCustomerLegalDocument = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerLegalDocumentKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerLegalDocument(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get social media library localization\n * @summary applications/socialMediaLibrary/localization\n */\nexport var getApplicationsSocialMediaLibraryLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/socialMediaLibrary/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsSocialMediaLibraryLocalizationKey = function () {\n return [\"/applications/socialMediaLibrary/localization\"];\n};\n/**\n * @summary applications/socialMediaLibrary/localization\n */\nexport var useGetApplicationsSocialMediaLibraryLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSocialMediaLibraryLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsSocialMediaLibraryLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about Online login status - disabled?\n * @summary login/status\n */\nexport var getLoginStatus = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/login/status\", method: 'get', headers: headers }, options);\n};\nexport var getGetLoginStatusKey = function () { return [\"/login/status\"]; };\n/**\n * @summary login/status\n */\nexport var useGetLoginStatus = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetLoginStatusKey() : null); });\n var swrFn = function () { return getLoginStatus(customInstance, headers, requestOptions).then(function (d) { return d.data; }); };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Lookup for addresses by ID\n * @deprecated\n * @summary addressNodes/{nodeId}\n */\nexport var getAddressNodeDeprecated = function (client, nodeId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/addressNodes/\".concat(nodeId), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetAddressNodeDeprecatedKey = function (nodeId, params) { return __spreadArray([\"/addressNodes/\".concat(nodeId)], (params ? [params] : []), true); };\n/**\n * @deprecated\n * @summary addressNodes/{nodeId}\n */\nexport var useGetAddressNodeDeprecated = function (nodeId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!nodeId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAddressNodeDeprecatedKey(nodeId, params) : null); });\n var swrFn = function () {\n return getAddressNodeDeprecated(customInstance, nodeId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns single search result item by ID. Use 'GET addressSuggestions' to find results.\n * @summary addressSearchResults/{addressSearchResultId}\n */\nexport var getAddressSearchResult = function (client, addressSearchResultId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/addressSearchResults/\".concat(addressSearchResultId), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetAddressSearchResultKey = function (addressSearchResultId, params) { return __spreadArray([\"/addressSearchResults/\".concat(addressSearchResultId)], (params ? [params] : []), true); };\n/**\n * @summary addressSearchResults/{addressSearchResultId}\n */\nexport var useGetAddressSearchResult = function (addressSearchResultId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!addressSearchResultId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAddressSearchResultKey(addressSearchResultId, params) : null); });\n var swrFn = function () {\n return getAddressSearchResult(customInstance, addressSearchResultId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Lookup for address suggestions by filter\n * @summary addressSuggestions\n */\nexport var getAddressSuggestions = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/addressSuggestions\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetAddressSuggestionsKey = function (params) {\n return __spreadArray([\"/addressSuggestions\"], (params ? [params] : []), true);\n};\n/**\n * @summary addressSuggestions\n */\nexport var useGetAddressSuggestions = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetAddressSuggestionsKey(params) : null); });\n var swrFn = function () {\n return getAddressSuggestions(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the looks.\n * @summary applications/makeupwizard/looks\n */\nexport var getApplicationsMakeupwizardLooks = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/makeupwizard/looks\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsMakeupwizardLooksKey = function () {\n return [\"/applications/makeupwizard/looks\"];\n};\n/**\n * @summary applications/makeupwizard/looks\n */\nexport var useGetApplicationsMakeupwizardLooks = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsMakeupwizardLooksKey() : null); });\n var swrFn = function () {\n return getApplicationsMakeupwizardLooks(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the look tags.\n * @summary applications/makeupwizard/looktags\n */\nexport var getApplicationsMakeupwizardLooktags = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/makeupwizard/looktags\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsMakeupwizardLooktagsKey = function () {\n return [\"/applications/makeupwizard/looktags\"];\n};\n/**\n * @summary applications/makeupwizard/looktags\n */\nexport var useGetApplicationsMakeupwizardLooktags = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsMakeupwizardLooktagsKey() : null); });\n var swrFn = function () {\n return getApplicationsMakeupwizardLooktags(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the localization.\n * @summary applications/makeupwizard/localization\n */\nexport var getApplicationsMakeupwizardLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/makeupwizard/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsMakeupwizardLocalizationKey = function () {\n return [\"/applications/makeupwizard/localization\"];\n};\n/**\n * @summary applications/makeupwizard/localization\n */\nexport var useGetApplicationsMakeupwizardLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsMakeupwizardLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsMakeupwizardLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the Makeup Wizard Categories\n * @summary applications/makeupwizard/categories\n */\nexport var getApplicationsMakeupwizardCategories = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/makeupwizard/categories\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsMakeupwizardCategoriesKey = function () {\n return [\"/applications/makeupwizard/categories\"];\n};\n/**\n * @summary applications/makeupwizard/categories\n */\nexport var useGetApplicationsMakeupwizardCategories = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsMakeupwizardCategoriesKey() : null); });\n var swrFn = function () {\n return getApplicationsMakeupwizardCategories(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the welcome screen steps.\n * @summary applications/makeupwizard/welcomeScreenSteps\n */\nexport var getApplicationsMakeupwizardWelcomeScreenSteps = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/makeupwizard/welcomeScreenSteps\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsMakeupwizardWelcomeScreenStepsKey = function () {\n return [\"/applications/makeupwizard/welcomeScreenSteps\"];\n};\n/**\n * @summary applications/makeupwizard/welcomeScreenSteps\n */\nexport var useGetApplicationsMakeupwizardWelcomeScreenSteps = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsMakeupwizardWelcomeScreenStepsKey() : null); });\n var swrFn = function () {\n return getApplicationsMakeupwizardWelcomeScreenSteps(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides manager seminars for the selected customer.\n * @summary commissionPlanTypes/successPlan/customers/{customerId}/managerSeminars\n */\nexport var getCommissionPlanTypesSuccessPlanCustomerManagerSeminars = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/commissionPlanTypes/successPlan/customers/\".concat(customerId, \"/managerSeminars\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCommissionPlanTypesSuccessPlanCustomerManagerSeminarsKey = function (customerId, params) {\n return __spreadArray([\n \"/commissionPlanTypes/successPlan/customers/\".concat(customerId, \"/managerSeminars\")\n ], (params ? [params] : []), true);\n};\n/**\n * @summary commissionPlanTypes/successPlan/customers/{customerId}/managerSeminars\n */\nexport var useGetCommissionPlanTypesSuccessPlanCustomerManagerSeminars = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetCommissionPlanTypesSuccessPlanCustomerManagerSeminarsKey(customerId, params)\n : null;\n });\n var swrFn = function () {\n return getCommissionPlanTypesSuccessPlanCustomerManagerSeminars(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns selected value for marital status\n * @summary customers/{customerId}/maritalStatus\n */\nexport var getCustomerMaritalStatus = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/maritalStatus\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerMaritalStatusKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/maritalStatus\")];\n};\n/**\n * @summary customers/{customerId}/maritalStatus\n */\nexport var useGetCustomerMaritalStatus = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerMaritalStatusKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerMaritalStatus(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change selected value for marital status\n * @summary customers/{customerId}/maritalStatus\n */\nexport var updateCustomerMaritalStatus = function (client, customerId, globalCustomersCustomerSelectionDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/maritalStatus\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerSelectionDtoBody,\n }, options);\n};\n/**\n * Get title qualification parameters\n * @summary commissionPlans/matureMarket/titleQualifications\n */\nexport var getCommissionPlansMatureMarketTitleQualifications = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/commissionPlans/matureMarket/titleQualifications\", method: 'get', headers: headers }, options);\n};\nexport var getGetCommissionPlansMatureMarketTitleQualificationsKey = function () {\n return [\"/commissionPlans/matureMarket/titleQualifications\"];\n};\n/**\n * @summary commissionPlans/matureMarket/titleQualifications\n */\nexport var useGetCommissionPlansMatureMarketTitleQualifications = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCommissionPlansMatureMarketTitleQualificationsKey() : null); });\n var swrFn = function () {\n return getCommissionPlansMatureMarketTitleQualifications(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get personal menu data\n * @summary customers/{customerId}/menu\n */\nexport var getCustomerMenu = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/menu\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerMenuKey = function (customerId, params) {\n return __spreadArray([\"/customers/\".concat(customerId, \"/menu\")], (params ? [params] : []), true);\n};\n/**\n * @summary customers/{customerId}/menu\n */\nexport var useGetCustomerMenu = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerMenuKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerMenu(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets links for all existing mobile applications.\n * @deprecated\n * @summary mobileAppsLinks\n */\nexport var getMobileAppsLinksDeprecated = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/mobileAppsLinks\", method: 'get', headers: headers }, options);\n};\nexport var getGetMobileAppsLinksDeprecatedKey = function () { return [\"/mobileAppsLinks\"]; };\n/**\n * @deprecated\n * @summary mobileAppsLinks\n */\nexport var useGetMobileAppsLinksDeprecated = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetMobileAppsLinksDeprecatedKey() : null); });\n var swrFn = function () {\n return getMobileAppsLinksDeprecated(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns configuration of MV7.\n * @summary applications/mv7/configuration\n */\nexport var getApplicationsMv7Configuration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/mv7/configuration\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsMv7ConfigurationKey = function () {\n return [\"/applications/mv7/configuration\"];\n};\n/**\n * @summary applications/mv7/configuration\n */\nexport var useGetApplicationsMv7Configuration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsMv7ConfigurationKey() : null); });\n var swrFn = function () {\n return getApplicationsMv7Configuration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET - Returns collection of Custom Links from My Page\n * @summary applications/oriflameapp/myPage\n */\nexport var getApplicationsOriflameappMyPage = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/oriflameapp/myPage\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsOriflameappMyPageKey = function () {\n return [\"/applications/oriflameapp/myPage\"];\n};\n/**\n * @summary applications/oriflameapp/myPage\n */\nexport var useGetApplicationsOriflameappMyPage = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsOriflameappMyPageKey() : null); });\n var swrFn = function () {\n return getApplicationsOriflameappMyPage(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides name bank contacts of specific customer\n * @summary customers/{customerId}/nameBankContacts\n */\nexport var getCustomerNameBankContacts = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/nameBankContacts\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerNameBankContactsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/nameBankContacts\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/nameBankContacts\n */\nexport var useGetCustomerNameBankContacts = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerNameBankContactsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerNameBankContacts(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Adds contact for specific customer\n * @summary customers/{customerId}/nameBankContacts\n */\nexport var createCustomerNameBankContact = function (client, customerId, globalMobileOfficeNameBankNameBankContactDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/nameBankContacts\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalMobileOfficeNameBankNameBankContactDto,\n }, options);\n};\n/**\n * Gets specific name bank contact of specific customer by id\n * @summary customers/{customerId}/nameBankContacts/{contactId}\n */\nexport var getCustomerNameBankContact = function (client, customerId, contactId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/nameBankContacts/\").concat(contactId), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerNameBankContactKey = function (customerId, contactId) {\n return [\"/customers/\".concat(customerId, \"/nameBankContacts/\").concat(contactId)];\n};\n/**\n * @summary customers/{customerId}/nameBankContacts/{contactId}\n */\nexport var useGetCustomerNameBankContact = function (customerId, contactId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && contactId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerNameBankContactKey(customerId, contactId) : null); });\n var swrFn = function () {\n return getCustomerNameBankContact(customInstance, customerId, contactId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Updates contact of specific customer\n * @summary customers/{customerId}/nameBankContacts/{contactId}\n */\nexport var updateCustomerNameBankContact = function (client, customerId, contactId, globalMobileOfficeNameBankNameBankContactDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/nameBankContacts/\").concat(contactId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalMobileOfficeNameBankNameBankContactDto,\n }, options);\n};\n/**\n * Deletes contact of specific customer\n * @summary customers/{customerId}/nameBankContacts/{contactId}\n */\nexport var deleteCustomerNameBankContact = function (client, customerId, contactId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/nameBankContacts/\").concat(contactId), method: 'delete', headers: headers }, options);\n};\n/**\n * Get navigation items for specific type\n * @summary applications/navigation/navigations/{navigationType}\n */\nexport var getApplicationsNavigationNavigation = function (client, navigationType, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/navigation/navigations/\".concat(navigationType),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetApplicationsNavigationNavigationKey = function (navigationType, params) {\n return __spreadArray([\"/applications/navigation/navigations/\".concat(navigationType)], (params ? [params] : []), true);\n};\n/**\n * @summary applications/navigation/navigations/{navigationType}\n */\nexport var useGetApplicationsNavigationNavigation = function (navigationType, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!navigationType;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsNavigationNavigationKey(navigationType, params) : null); });\n var swrFn = function () {\n return getApplicationsNavigationNavigation(customInstance, navigationType, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Sends search signal - it is created on specific action.\n * @summary applications/navigation/signal\n */\nexport var createApplicationsNavigationSignal = function (client, globalProductQuerySignalsDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/navigation/signal\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductQuerySignalsDto,\n }, options);\n};\n/**\n * Sends search signals bulk - it is created on specific action.\n * @summary applications/navigation/signalsBulk\n */\nexport var createApplicationsNavigationSignalsBulk = function (client, globalProductQuerySignalsBulkDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/navigation/signalsBulk\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductQuerySignalsBulkDto,\n }, options);\n};\n/**\n * Get navigation items of specific type for customer\n * @summary applications/navigation/customers/{customerId}/navigations/{navigationType}\n */\nexport var getApplicationsNavigationCustomerNavigation = function (client, customerId, navigationType, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/navigation/customers/\".concat(customerId, \"/navigations/\").concat(navigationType),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetApplicationsNavigationCustomerNavigationKey = function (customerId, navigationType, params) {\n return __spreadArray([\n \"/applications/navigation/customers/\".concat(customerId, \"/navigations/\").concat(navigationType)\n ], (params ? [params] : []), true);\n};\n/**\n * @summary applications/navigation/customers/{customerId}/navigations/{navigationType}\n */\nexport var useGetApplicationsNavigationCustomerNavigation = function (customerId, navigationType, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && navigationType);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetApplicationsNavigationCustomerNavigationKey(customerId, navigationType, params)\n : null;\n });\n var swrFn = function () {\n return getApplicationsNavigationCustomerNavigation(customInstance, customerId, navigationType, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the information about the customer for given customer id\n * @summary applications/navigation/customers/{customerId}/info\n */\nexport var getApplicationsNavigationCustomerInfo = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/navigation/customers/\".concat(customerId, \"/info\"), method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsNavigationCustomerInfoKey = function (customerId) {\n return [\"/applications/navigation/customers/\".concat(customerId, \"/info\")];\n};\n/**\n * @summary applications/navigation/customers/{customerId}/info\n */\nexport var useGetApplicationsNavigationCustomerInfo = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsNavigationCustomerInfoKey(customerId) : null); });\n var swrFn = function () {\n return getApplicationsNavigationCustomerInfo(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about customer registration with given ID\n * @summary newRegistrations/{registrationId}\n */\nexport var getNewRegistration = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/newRegistrations/\".concat(registrationId), method: 'get', headers: headers }, options);\n};\nexport var getGetNewRegistrationKey = function (registrationId) {\n return [\"/newRegistrations/\".concat(registrationId)];\n};\n/**\n * @summary newRegistrations/{registrationId}\n */\nexport var useGetNewRegistration = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetNewRegistrationKey(registrationId) : null); });\n var swrFn = function () {\n return getNewRegistration(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Updates a customer registration with given ID\n * @summary newRegistrations/{registrationId}\n */\nexport var updateNewRegistration = function (client, registrationId, globalNewRegistrationsNewRegistrationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/newRegistrations/\".concat(registrationId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNewRegistrationsNewRegistrationDto,\n }, options);\n};\n/**\n * GET: Returns metadata for customer registration with given ID\n * @summary newRegistrations/{registrationId}/metadata\n */\nexport var getNewRegistrationMetadata = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/newRegistrations/\".concat(registrationId, \"/metadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetNewRegistrationMetadataKey = function (registrationId) {\n return [\"/newRegistrations/\".concat(registrationId, \"/metadata\")];\n};\n/**\n * @summary newRegistrations/{registrationId}/metadata\n */\nexport var useGetNewRegistrationMetadata = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetNewRegistrationMetadataKey(registrationId) : null); });\n var swrFn = function () {\n return getNewRegistrationMetadata(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about the status of the customer registration with given ID\n * @summary newRegistrations/{registrationId}/status\n */\nexport var getNewRegistrationStatus = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/newRegistrations/\".concat(registrationId, \"/status\"), method: 'get', headers: headers }, options);\n};\nexport var getGetNewRegistrationStatusKey = function (registrationId) {\n return [\"/newRegistrations/\".concat(registrationId, \"/status\")];\n};\n/**\n * @summary newRegistrations/{registrationId}/status\n */\nexport var useGetNewRegistrationStatus = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetNewRegistrationStatusKey(registrationId) : null); });\n var swrFn = function () {\n return getNewRegistrationStatus(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about the sponsor selected in the registration process\n * @summary newRegistrations/{registrationId}/sponsorInfo\n */\nexport var getNewRegistrationSponsorInfo = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/newRegistrations/\".concat(registrationId, \"/sponsorInfo\"), method: 'get', headers: headers }, options);\n};\nexport var getGetNewRegistrationSponsorInfoKey = function (registrationId) {\n return [\"/newRegistrations/\".concat(registrationId, \"/sponsorInfo\")];\n};\n/**\n * @summary newRegistrations/{registrationId}/sponsorInfo\n */\nexport var useGetNewRegistrationSponsorInfo = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetNewRegistrationSponsorInfoKey(registrationId) : null); });\n var swrFn = function () {\n return getNewRegistrationSponsorInfo(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates a customer registration and returns its ID\n * @summary newRegistrations\n */\nexport var createNewRegistration = function (client, globalNewRegistrationsNewRegistrationCreateDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/newRegistrations\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNewRegistrationsNewRegistrationCreateDto,\n }, options);\n};\n/**\n * Provides top news for specific customer\n * @summary customers/{customerId}/news/top\n */\nexport var createCustomerNewsTop = function (client, customerId, globalSharedPagingDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/news/top\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalSharedPagingDto,\n }, options);\n};\n/**\n * Subscribes or returns status of newsletter subscription for given email, origin and source values.\n * @summary newsletterSubscriptions\n */\nexport var createNewsletterSubscription = function (client, globalNewsletterSubscriptionsNewsletterSubscriptionsDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/newsletterSubscriptions\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNewsletterSubscriptionsNewsletterSubscriptionsDtoBody,\n }, options);\n};\n/**\n * GET: Returns nominee (e.g. spouse name)\n * @summary customers/{customerId}/nominee\n */\nexport var getCustomerNominee = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/nominee\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerNomineeKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/nominee\")];\n};\n/**\n * @summary customers/{customerId}/nominee\n */\nexport var useGetCustomerNominee = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerNomineeKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerNominee(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change nominee (e.g. spouse name)\n * @summary customers/{customerId}/nominee\n */\nexport var updateCustomerNominee = function (client, customerId, globalCustomersNomineeDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/nominee\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersNomineeDto,\n }, options);\n};\n/**\n * Relays mobile (inapp+push) notification delivery.\n * @summary relayNotifications/mobile\n */\nexport var createRelayNotificationsMobile = function (client, globalNotificationsMobileNotificationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/relayNotifications/mobile\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNotificationsMobileNotificationDto,\n }, options);\n};\n/**\n * Relays mobile (inapp+push) notification delivery. This is new version of api which allows send one notification with many recipients in one call.\n * @summary relayNotifications/mobileBulk\n */\nexport var createRelayNotificationsMobileBulk = function (client, globalNotificationsBulkMobileNotificationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/relayNotifications/mobileBulk\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNotificationsBulkMobileNotificationDto,\n }, options);\n};\n/**\n * Update or create new customer notification.\n * @summary customers/{customerId}/notifications\n */\nexport var createCustomerNotification = function (client, customerId, globalNotificationsCustomerNotificationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/notifications\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNotificationsCustomerNotificationDto,\n }, options);\n};\n/**\n * Delete customer notification.\n * @summary customers/{customerId}/notifications/{notificationId}\n */\nexport var deleteCustomerNotification = function (client, customerId, notificationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/notifications/\").concat(notificationId), method: 'delete', headers: headers }, options);\n};\n/**\n * Returns single customer notification.\n * @summary customers/{customerId}/notifications/{notificationId}\n */\nexport var getCustomerNotification = function (client, customerId, notificationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/notifications/\").concat(notificationId), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerNotificationKey = function (customerId, notificationId) {\n return [\"/customers/\".concat(customerId, \"/notifications/\").concat(notificationId)];\n};\n/**\n * @summary customers/{customerId}/notifications/{notificationId}\n */\nexport var useGetCustomerNotification = function (customerId, notificationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && notificationId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerNotificationKey(customerId, notificationId) : null); });\n var swrFn = function () {\n return getCustomerNotification(customInstance, customerId, notificationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Send customer notification.\n * @summary customers/{customerId}/notifications/{notificationId}/send\n */\nexport var createCustomerNotificationSend = function (client, customerId, notificationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/notifications/\").concat(notificationId, \"/send\"),\n method: 'post',\n headers: headers,\n }, options);\n};\n/**\n * Recall customer notification.\n * @summary customers/{customerId}/notifications/{notificationId}/recall\n */\nexport var createCustomerNotificationRecall = function (client, customerId, notificationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/notifications/\").concat(notificationId, \"/recall\"),\n method: 'post',\n headers: headers,\n }, options);\n};\n/**\n * Search for customer's notifications by criteria.\n * @summary customers/{customerId}/notifications/search\n */\nexport var createCustomerNotificationsSearch = function (client, customerId, globalNotificationsCustomerNotificationSearchRequestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/notifications/search\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNotificationsCustomerNotificationSearchRequestDto,\n }, options);\n};\n/**\n * Returns target collection\n * @summary customers/notifications/targets\n */\nexport var getCustomersNotificationsTargets = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/notifications/targets\", method: 'get', headers: headers }, options);\n};\nexport var getGetCustomersNotificationsTargetsKey = function () {\n return [\"/customers/notifications/targets\"];\n};\n/**\n * @summary customers/notifications/targets\n */\nexport var useGetCustomersNotificationsTargets = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomersNotificationsTargetsKey() : null); });\n var swrFn = function () {\n return getCustomersNotificationsTargets(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns categories collection\n * @summary notificationCategories\n */\nexport var getNotificationCategories = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/notificationCategories\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetNotificationCategoriesKey = function (params) {\n return __spreadArray([\"/notificationCategories\"], (params ? [params] : []), true);\n};\n/**\n * @summary notificationCategories\n */\nexport var useGetNotificationCategories = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetNotificationCategoriesKey(params) : null); });\n var swrFn = function () {\n return getNotificationCategories(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Return single customer attribute by attribute type\n * @deprecated\n * @summary customers/{customerId}/customerAttributes/{customerAttributeTypeId}\n */\nexport var getCustomerCustomerAttributeDeprecated = function (client, customerId, customerAttributeTypeId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/customerAttributes/\").concat(customerAttributeTypeId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerCustomerAttributeDeprecatedKey = function (customerId, customerAttributeTypeId) { return [\"/customers/\".concat(customerId, \"/customerAttributes/\").concat(customerAttributeTypeId)]; };\n/**\n * @deprecated\n * @summary customers/{customerId}/customerAttributes/{customerAttributeTypeId}\n */\nexport var useGetCustomerCustomerAttributeDeprecated = function (customerId, customerAttributeTypeId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && customerAttributeTypeId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetCustomerCustomerAttributeDeprecatedKey(customerId, customerAttributeTypeId)\n : null;\n });\n var swrFn = function () {\n return getCustomerCustomerAttributeDeprecated(customInstance, customerId, customerAttributeTypeId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Updates single customer attribute by attribute type\n * @deprecated\n * @summary customers/{customerId}/customerAttributes/{customerAttributeTypeId}\n */\nexport var updateCustomerCustomerAttributeDeprecated = function (client, customerId, customerAttributeTypeId, globalCustomersAttributeDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/customerAttributes/\").concat(customerAttributeTypeId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersAttributeDto,\n }, options);\n};\n/**\n * Gets all customer attributes\n * @deprecated\n * @summary customers/{customerId}/customerAttributes\n */\nexport var getCustomerCustomerAttributesDeprecated = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/customerAttributes\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerCustomerAttributesDeprecatedKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/customerAttributes\")];\n};\n/**\n * @deprecated\n * @summary customers/{customerId}/customerAttributes\n */\nexport var useGetCustomerCustomerAttributesDeprecated = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerCustomerAttributesDeprecatedKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerCustomerAttributesDeprecated(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get list of chosen products of the offer\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices\n */\nexport var getShoppingSessionOfferChoices = function (client, sessionId, offerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionOfferChoicesKey = function (sessionId, offerId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices\n */\nexport var useGetShoppingSessionOfferChoices = function (sessionId, offerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && offerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionOfferChoicesKey(sessionId, offerId) : null); });\n var swrFn = function () {\n return getShoppingSessionOfferChoices(customInstance, sessionId, offerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Update chosen products of the offer\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices\n */\nexport var updateShoppingSessionOfferChoices = function (client, sessionId, offerId, globalShoppingOfferChoicesDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingOfferChoicesDto,\n }, options);\n};\n/**\n * DELETE: Remove all chosen products of the offer\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices\n */\nexport var deleteShoppingSessionOfferChoices = function (client, sessionId, offerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices\"), method: 'delete', headers: headers }, options);\n};\n/**\n * POST: Add new chosen offer item\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices\n */\nexport var createShoppingSessionOfferChoice = function (client, sessionId, offerId, globalShoppingOfferChoiceDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingOfferChoiceDtoBody,\n }, options);\n};\n/**\n * GET: Get chosen offer item by product code\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices/{itemCode}\n */\nexport var getShoppingSessionOfferChoice = function (client, sessionId, offerId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices/\").concat(itemCode),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionOfferChoiceKey = function (sessionId, offerId, itemCode) { return [\"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices/\").concat(itemCode)]; };\n/**\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices/{itemCode}\n */\nexport var useGetShoppingSessionOfferChoice = function (sessionId, offerId, itemCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && offerId && itemCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionOfferChoiceKey(sessionId, offerId, itemCode) : null); });\n var swrFn = function () {\n return getShoppingSessionOfferChoice(customInstance, sessionId, offerId, itemCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Modify requested quantity of chosen offer item\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices/{itemCode}\n */\nexport var updateShoppingSessionOfferChoice = function (client, sessionId, offerId, itemCode, globalShoppingOfferChoiceDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices/\").concat(itemCode),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingOfferChoiceDtoBody,\n }, options);\n};\n/**\n * DELETE: Remove previously chosen offer item\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/choices/{itemCode}\n */\nexport var deleteShoppingSessionOfferChoice = function (client, sessionId, offerId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/choices/\").concat(itemCode),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Get list of offered products\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/offerItems\n */\nexport var getShoppingSessionOfferOfferItems = function (client, sessionId, offerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/offerItems\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetShoppingSessionOfferOfferItemsKey = function (sessionId, offerId, params) {\n return __spreadArray([\n \"/shoppingSessions/\".concat(sessionId, \"/offers/\").concat(offerId, \"/offerItems\")\n ], (params ? [params] : []), true);\n};\n/**\n * @summary shoppingSessions/{sessionId}/offers/{offerId}/offerItems\n */\nexport var useGetShoppingSessionOfferOfferItems = function (sessionId, offerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && offerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetShoppingSessionOfferOfferItemsKey(sessionId, offerId, params) : null;\n });\n var swrFn = function () {\n return getShoppingSessionOfferOfferItems(customInstance, sessionId, offerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get list of shopping offers evaluated for current shopping bag\n * @summary shoppingSessions/{sessionId}/offers\n */\nexport var getShoppingSessionOffers = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/offers\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionOffersKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/offers\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/offers\n */\nexport var useGetShoppingSessionOffers = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionOffersKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionOffers(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns data for onboarding\n * @summary customers/{customerId}/onboarding\n */\nexport var getCustomerOnboarding = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/onboarding\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerOnboardingKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/onboarding\")];\n};\n/**\n * @summary customers/{customerId}/onboarding\n */\nexport var useGetCustomerOnboarding = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerOnboardingKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerOnboarding(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Submits data for onboarding process\n * @summary customers/{customerId}/onboarding\n */\nexport var updateCustomerOnboarding = function (client, customerId, globalOnboardingOnboardingDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/onboarding\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalOnboardingOnboardingDto,\n }, options);\n};\n/**\n * GET: Returns document delivery address for onboarding\n * @summary customers/{customerId}/onboardingDocumentDeliveryAddress\n */\nexport var getCustomerOnboardingDocumentDeliveryAddress = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/onboardingDocumentDeliveryAddress\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerOnboardingDocumentDeliveryAddressKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/onboardingDocumentDeliveryAddress\")];\n};\n/**\n * @summary customers/{customerId}/onboardingDocumentDeliveryAddress\n */\nexport var useGetCustomerOnboardingDocumentDeliveryAddress = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerOnboardingDocumentDeliveryAddressKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerOnboardingDocumentDeliveryAddress(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Updates document delivery address for onboarding process\n * @summary customers/{customerId}/onboardingDocumentDeliveryAddress\n */\nexport var updateCustomerOnboardingDocumentDeliveryAddress = function (client, customerId, globalOnboardingOnboardingDocumentDeliveryAddressDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/onboardingDocumentDeliveryAddress\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalOnboardingOnboardingDocumentDeliveryAddressDto,\n }, options);\n};\n/**\n * GET: Returns metadata information about onboarding\n * @summary customers/{customerId}/onboardingMetadata\n */\nexport var getCustomerOnboardingMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/onboardingMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerOnboardingMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/onboardingMetadata\")];\n};\n/**\n * @summary customers/{customerId}/onboardingMetadata\n */\nexport var useGetCustomerOnboardingMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerOnboardingMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerOnboardingMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides information whether the customer has passed the onboarding test.\n * @summary customers/{customerId}/onboardingTest\n */\nexport var getCustomerOnboardingTest = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/onboardingTest\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerOnboardingTestKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/onboardingTest\")];\n};\n/**\n * @summary customers/{customerId}/onboardingTest\n */\nexport var useGetCustomerOnboardingTest = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerOnboardingTestKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerOnboardingTest(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Provides the possibility to pass the onboarding test.\n * @summary customers/{customerId}/onboardingTest\n */\nexport var updateCustomerOnboardingTest = function (client, customerId, globalCustomersOnboardingTestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/onboardingTest\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersOnboardingTestDto,\n }, options);\n};\n/**\n * Simulates behavior of a standard GET endpoint from Online API with authorization and without any further logic\n * @summary tests/smallSizeResponse/online\n */\nexport var getTestsSmallSizeResponseOnline = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/tests/smallSizeResponse/online\", method: 'get', headers: headers }, options);\n};\nexport var getGetTestsSmallSizeResponseOnlineKey = function () {\n return [\"/tests/smallSizeResponse/online\"];\n};\n/**\n * @summary tests/smallSizeResponse/online\n */\nexport var useGetTestsSmallSizeResponseOnline = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetTestsSmallSizeResponseOnlineKey() : null); });\n var swrFn = function () {\n return getTestsSmallSizeResponseOnline(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Simulates behavior of a standard GET endpoint from Online API with authorization and without any further logic\n * @summary tests/mediumSizeResponse/online\n */\nexport var getTestsMediumSizeResponseOnline = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/tests/mediumSizeResponse/online\", method: 'get', headers: headers }, options);\n};\nexport var getGetTestsMediumSizeResponseOnlineKey = function () {\n return [\"/tests/mediumSizeResponse/online\"];\n};\n/**\n * @summary tests/mediumSizeResponse/online\n */\nexport var useGetTestsMediumSizeResponseOnline = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetTestsMediumSizeResponseOnlineKey() : null); });\n var swrFn = function () {\n return getTestsMediumSizeResponseOnline(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Simulates behavior of a standard GET endpoint from Online API with authorization and without any further logic\n * @summary tests/bigSizeResponse/online\n */\nexport var getTestsBigSizeResponseOnline = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/tests/bigSizeResponse/online\", method: 'get', headers: headers }, options);\n};\nexport var getGetTestsBigSizeResponseOnlineKey = function () { return [\"/tests/bigSizeResponse/online\"]; };\n/**\n * @summary tests/bigSizeResponse/online\n */\nexport var useGetTestsBigSizeResponseOnline = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetTestsBigSizeResponseOnlineKey() : null); });\n var swrFn = function () {\n return getTestsBigSizeResponseOnline(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Place new order\n * @summary shoppingSessions/{sessionId}/order\n */\nexport var createShoppingSessionOrder = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/order\"), method: 'post', headers: headers }, options);\n};\n/**\n * GET: Returns key performance indicators based on order history of the customer\nSome information may be omitted based on market settings and customer type.\n * @summary applications/orderHistory/customers/{customerId}/kpi\n */\nexport var getApplicationsOrderHistoryCustomerKpi = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/orderHistory/customers/\".concat(customerId, \"/kpi\"), method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsOrderHistoryCustomerKpiKey = function (customerId) {\n return [\"/applications/orderHistory/customers/\".concat(customerId, \"/kpi\")];\n};\n/**\n * @summary applications/orderHistory/customers/{customerId}/kpi\n */\nexport var useGetApplicationsOrderHistoryCustomerKpi = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsOrderHistoryCustomerKpiKey(customerId) : null); });\n var swrFn = function () {\n return getApplicationsOrderHistoryCustomerKpi(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Configuration for Order history\n * @summary applications/orderHistory/customers/{customerId}/configuration\n */\nexport var getApplicationsOrderHistoryCustomerConfiguration = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/orderHistory/customers/\".concat(customerId, \"/configuration\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetApplicationsOrderHistoryCustomerConfigurationKey = function (customerId) {\n return [\"/applications/orderHistory/customers/\".concat(customerId, \"/configuration\")];\n};\n/**\n * @summary applications/orderHistory/customers/{customerId}/configuration\n */\nexport var useGetApplicationsOrderHistoryCustomerConfiguration = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsOrderHistoryCustomerConfigurationKey(customerId) : null); });\n var swrFn = function () {\n return getApplicationsOrderHistoryCustomerConfiguration(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns order items for given orders from one customer.\n * @summary orderItems\n */\nexport var getOrderItems = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orderItems\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetOrderItemsKey = function (params) {\n return __spreadArray([\"/orderItems\"], (params ? [params] : []), true);\n};\n/**\n * @summary orderItems\n */\nexport var useGetOrderItems = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderItemsKey(params) : null); });\n var swrFn = function () {\n return getOrderItems(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets a list of orders for a specified customerId, with the possibility of filtering only desired status, and paging.\nYou can additionally filter by a search phrase, and choose to include WeChat orders.\nHistory type switches between returning orders in the Current + past 3 periods; or the entire history (2 years).\n\r\nIf paging parameters are not provided, no paging is applied and full history for given time period is returned.\n * @summary orders\n */\nexport var getOrders = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetOrdersKey = function (params) {\n return __spreadArray([\"/orders\"], (params ? [params] : []), true);\n};\n/**\n * @summary orders\n */\nexport var useGetOrders = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrdersKey(params) : null); });\n var swrFn = function () {\n return getOrders(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Place new order\n * @summary orders\n */\nexport var createOrder = function (client, globalShoppingOrderDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/orders\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingOrderDto,\n }, options);\n};\n/**\n * GET: Get specific order of a customer\n * @summary orders/{orderId}\n */\nexport var getOrder = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId), method: 'get', headers: headers }, options);\n};\nexport var getGetOrderKey = function (orderId) { return [\"/orders/\".concat(orderId)]; };\n/**\n * @summary orders/{orderId}\n */\nexport var useGetOrder = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderKey(orderId) : null); });\n var swrFn = function () {\n return getOrder(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE : cancel order if cancellation is allowed\n * @summary orders/{orderId}\n */\nexport var deleteOrder = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Get operation principals\n * @summary orders/{orderId}/operationPrincipals\n */\nexport var getOrderOperationPrincipals = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/operationPrincipals\"), method: 'get', headers: headers }, options);\n};\nexport var getGetOrderOperationPrincipalsKey = function (orderId) {\n return [\"/orders/\".concat(orderId, \"/operationPrincipals\")];\n};\n/**\n * @summary orders/{orderId}/operationPrincipals\n */\nexport var useGetOrderOperationPrincipals = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderOperationPrincipalsKey(orderId) : null); });\n var swrFn = function () {\n return getOrderOperationPrincipals(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get last unpaid order for specific customer\n * @summary customers/{customerId}/orders/lastUnpaid\n */\nexport var getCustomerOrdersLastUnpaid = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/orders/lastUnpaid\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerOrdersLastUnpaidKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/orders/lastUnpaid\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/orders/lastUnpaid\n */\nexport var useGetCustomerOrdersLastUnpaid = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerOrdersLastUnpaidKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerOrdersLastUnpaid(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide availability of order cancel operation\n * @summary orders/{orderId}/cancellation\n */\nexport var getOrderCancellation = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/cancellation\"), method: 'get', headers: headers }, options);\n};\nexport var getGetOrderCancellationKey = function (orderId) {\n return [\"/orders/\".concat(orderId, \"/cancellation\")];\n};\n/**\n * @summary orders/{orderId}/cancellation\n */\nexport var useGetOrderCancellation = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderCancellationKey(orderId) : null); });\n var swrFn = function () {\n return getOrderCancellation(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get realtime order trackings\n * @summary orders/{orderId}/realtimeOrderTracking\n */\nexport var getOrderRealtimeOrderTracking = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/realtimeOrderTracking\"), method: 'get', headers: headers }, options);\n};\nexport var getGetOrderRealtimeOrderTrackingKey = function (orderId) {\n return [\"/orders/\".concat(orderId, \"/realtimeOrderTracking\")];\n};\n/**\n * @summary orders/{orderId}/realtimeOrderTracking\n */\nexport var useGetOrderRealtimeOrderTracking = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderRealtimeOrderTrackingKey(orderId) : null); });\n var swrFn = function () {\n return getOrderRealtimeOrderTracking(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide selected payment provider\n * @summary orders/{orderId}/paymentProvider\n */\nexport var getOrderPaymentProvider = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/paymentProvider\"), method: 'get', headers: headers }, options);\n};\nexport var getGetOrderPaymentProviderKey = function (orderId) {\n return [\"/orders/\".concat(orderId, \"/paymentProvider\")];\n};\n/**\n * @summary orders/{orderId}/paymentProvider\n */\nexport var useGetOrderPaymentProvider = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderPaymentProviderKey(orderId) : null); });\n var swrFn = function () {\n return getOrderPaymentProvider(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Update selected payment provider\n * @summary orders/{orderId}/paymentProvider\n */\nexport var updateOrderPaymentProvider = function (client, orderId, globalShoppingOrderPaymentProviderDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/orders/\".concat(orderId, \"/paymentProvider\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingOrderPaymentProviderDto,\n }, options);\n};\n/**\n * Returns a list of all discounts applied to the order.\n * @summary orders/{orderId}/discounts\n */\nexport var getOrderDiscounts = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/discounts\"), method: 'get', headers: headers }, options);\n};\nexport var getGetOrderDiscountsKey = function (orderId) {\n return [\"/orders/\".concat(orderId, \"/discounts\")];\n};\n/**\n * @summary orders/{orderId}/discounts\n */\nexport var useGetOrderDiscounts = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderDiscountsKey(orderId) : null); });\n var swrFn = function () {\n return getOrderDiscounts(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the collection of all end consumers from a given order.\n * @summary orders/{orderId}/endConsumers\n */\nexport var getOrderEndConsumers = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/endConsumers\"), method: 'get', headers: headers }, options);\n};\nexport var getGetOrderEndConsumersKey = function (orderId) {\n return [\"/orders/\".concat(orderId, \"/endConsumers\")];\n};\n/**\n * @summary orders/{orderId}/endConsumers\n */\nexport var useGetOrderEndConsumers = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderEndConsumersKey(orderId) : null); });\n var swrFn = function () {\n return getOrderEndConsumers(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns a list of order statuses and the total sum of orders per each status.\n * @summary orderStatuses\n */\nexport var getOrderStatuses = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orderStatuses\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetOrderStatusesKey = function (params) {\n return __spreadArray([\"/orderStatuses\"], (params ? [params] : []), true);\n};\n/**\n * @summary orderStatuses\n */\nexport var useGetOrderStatuses = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderStatusesKey(params) : null); });\n var swrFn = function () {\n return getOrderStatuses(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns order navigation information (e.g. order detail page URL)\n * @summary orders/{orderId}/navigation\n */\nexport var getOrderNavigation = function (client, orderId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/navigation\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetOrderNavigationKey = function (orderId, params) {\n return __spreadArray([\"/orders/\".concat(orderId, \"/navigation\")], (params ? [params] : []), true);\n};\n/**\n * @summary orders/{orderId}/navigation\n */\nexport var useGetOrderNavigation = function (orderId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderNavigationKey(orderId, params) : null); });\n var swrFn = function () {\n return getOrderNavigation(customInstance, orderId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns financial aggregates for a given order such as debt, fees, discounts and BPs.\nSome information may be omitted based on market settings and customer type.\n * @summary applications/orderSummary/orders/{orderId}/summary\n */\nexport var getApplicationsOrderSummaryOrderSummary = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/orderSummary/orders/\".concat(orderId, \"/summary\"), method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsOrderSummaryOrderSummaryKey = function (orderId) {\n return [\"/applications/orderSummary/orders/\".concat(orderId, \"/summary\")];\n};\n/**\n * @summary applications/orderSummary/orders/{orderId}/summary\n */\nexport var useGetApplicationsOrderSummaryOrderSummary = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsOrderSummaryOrderSummaryKey(orderId) : null); });\n var swrFn = function () {\n return getApplicationsOrderSummaryOrderSummary(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns customer oriflame card in PDF format\n * @summary customers/{customerId}/oriflameCard\n */\nexport var getCustomerOriflameCard = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/oriflameCard\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerOriflameCardKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/oriflameCard\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/oriflameCard\n */\nexport var useGetCustomerOriflameCard = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerOriflameCardKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerOriflameCard(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get OutdatedBrowserInfo localization.\n * @summary applications/outdatedBrowserInfo/localization\n */\nexport var getApplicationsOutdatedBrowserInfoLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/outdatedBrowserInfo/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsOutdatedBrowserInfoLocalizationKey = function () {\n return [\"/applications/outdatedBrowserInfo/localization\"];\n};\n/**\n * @summary applications/outdatedBrowserInfo/localization\n */\nexport var useGetApplicationsOutdatedBrowserInfoLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsOutdatedBrowserInfoLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsOutdatedBrowserInfoLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides payment methods\n * @summary orders/{orderId}/paymentMethods\n */\nexport var getOrderPaymentMethods = function (client, orderId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/paymentMethods\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetOrderPaymentMethodsKey = function (orderId, params) { return __spreadArray([\"/orders/\".concat(orderId, \"/paymentMethods\")], (params ? [params] : []), true); };\n/**\n * @summary orders/{orderId}/paymentMethods\n */\nexport var useGetOrderPaymentMethods = function (orderId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderPaymentMethodsKey(orderId, params) : null); });\n var swrFn = function () {\n return getOrderPaymentMethods(customInstance, orderId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides payment methods\n * @summary shoppingSessions/{sessionId}/paymentMethods\n */\nexport var getShoppingSessionPaymentMethods = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/paymentMethods\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionPaymentMethodsKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/paymentMethods\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/paymentMethods\n */\nexport var useGetShoppingSessionPaymentMethods = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionPaymentMethodsKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionPaymentMethods(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides payment providers\n * @summary shoppingSessions/{sessionId}/paymentProviders\n */\nexport var getShoppingSessionPaymentProviders = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/paymentProviders\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionPaymentProvidersKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/paymentProviders\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/paymentProviders\n */\nexport var useGetShoppingSessionPaymentProviders = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionPaymentProvidersKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionPaymentProviders(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides payment provider\n * @summary shoppingSessions/{sessionId}/paymentProviders/{paymentProviderId}\n */\nexport var getShoppingSessionPaymentProvider = function (client, sessionId, paymentProviderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/paymentProviders/\").concat(paymentProviderId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionPaymentProviderKey = function (sessionId, paymentProviderId) { return [\"/shoppingSessions/\".concat(sessionId, \"/paymentProviders/\").concat(paymentProviderId)]; };\n/**\n * @summary shoppingSessions/{sessionId}/paymentProviders/{paymentProviderId}\n */\nexport var useGetShoppingSessionPaymentProvider = function (sessionId, paymentProviderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && paymentProviderId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetShoppingSessionPaymentProviderKey(sessionId, paymentProviderId) : null;\n });\n var swrFn = function () {\n return getShoppingSessionPaymentProvider(customInstance, sessionId, paymentProviderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get payment provider\n * @summary paymentProviders/{paymentProviderId}\n */\nexport var getPaymentProvider = function (client, paymentProviderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/paymentProviders/\".concat(paymentProviderId), method: 'get', headers: headers }, options);\n};\nexport var getGetPaymentProviderKey = function (paymentProviderId) {\n return [\"/paymentProviders/\".concat(paymentProviderId)];\n};\n/**\n * @summary paymentProviders/{paymentProviderId}\n */\nexport var useGetPaymentProvider = function (paymentProviderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!paymentProviderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPaymentProviderKey(paymentProviderId) : null); });\n var swrFn = function () {\n return getPaymentProvider(customInstance, paymentProviderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides payment providers\n * @summary orders/{orderId}/paymentProviders\n */\nexport var getOrderPaymentProviders = function (client, orderId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/paymentProviders\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetOrderPaymentProvidersKey = function (orderId, params) { return __spreadArray([\"/orders/\".concat(orderId, \"/paymentProviders\")], (params ? [params] : []), true); };\n/**\n * @summary orders/{orderId}/paymentProviders\n */\nexport var useGetOrderPaymentProviders = function (orderId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderPaymentProvidersKey(orderId, params) : null); });\n var swrFn = function () {\n return getOrderPaymentProviders(customInstance, orderId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Initialization of the online payment process, returns the parameters that are needed for further processing by the payment provider\n * @summary customer/{customerId}/order/{orderId}/paymentData\n */\nexport var createCustomerOrderPaymentDatum = function (client, customerId, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customer/\".concat(customerId, \"/order/\").concat(orderId, \"/paymentData\"), method: 'post', headers: headers }, options);\n};\n/**\n * POST: Initialization of the shared online payment process, returns the parameters that are needed for further processing by the payment provider\n * @summary customer/{customerId}/order/{orderId}/sharedPaymentData\n */\nexport var createCustomerOrderSharedPaymentDatum = function (client, customerId, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customer/\".concat(customerId, \"/order/\").concat(orderId, \"/sharedPaymentData\"), method: 'post', headers: headers }, options);\n};\n/**\n * GET: Returns information about online payment\n * @summary onlinePayments/{onlinePaymentId}\n */\nexport var getOnlinePayment = function (client, onlinePaymentId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/onlinePayments/\".concat(onlinePaymentId), method: 'get', headers: headers }, options);\n};\nexport var getGetOnlinePaymentKey = function (onlinePaymentId) {\n return [\"/onlinePayments/\".concat(onlinePaymentId)];\n};\n/**\n * @summary onlinePayments/{onlinePaymentId}\n */\nexport var useGetOnlinePayment = function (onlinePaymentId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!onlinePaymentId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOnlinePaymentKey(onlinePaymentId) : null); });\n var swrFn = function () {\n return getOnlinePayment(customInstance, onlinePaymentId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide selected payment\n * @summary shoppingSessions/{sessionId}/payment\n */\nexport var getShoppingSessionPayment = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/payment\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionPaymentKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/payment\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/payment\n */\nexport var useGetShoppingSessionPayment = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionPaymentKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionPayment(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Update selected payment\n * @summary shoppingSessions/{sessionId}/payment\n */\nexport var updateShoppingSessionPayment = function (client, sessionId, globalShoppingPaymentDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/payment\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingPaymentDto,\n }, options);\n};\n/**\n * GET: Returns result of evaluation if the order can be paid and number of pending payments\n * @summary orders/{orderId}/pendingPaymentsResult\n */\nexport var getOrderPendingPaymentsResult = function (client, orderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/orders/\".concat(orderId, \"/pendingPaymentsResult\"), method: 'get', headers: headers }, options);\n};\nexport var getGetOrderPendingPaymentsResultKey = function (orderId) {\n return [\"/orders/\".concat(orderId, \"/pendingPaymentsResult\")];\n};\n/**\n * @summary orders/{orderId}/pendingPaymentsResult\n */\nexport var useGetOrderPendingPaymentsResult = function (orderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!orderId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetOrderPendingPaymentsResultKey(orderId) : null); });\n var swrFn = function () {\n return getOrderPendingPaymentsResult(customInstance, orderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns pending registration\n * @summary pendingRegistrations/{pendingRegistrationId}\n */\nexport var getPendingRegistration = function (client, pendingRegistrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/pendingRegistrations/\".concat(pendingRegistrationId), method: 'get', headers: headers }, options);\n};\nexport var getGetPendingRegistrationKey = function (pendingRegistrationId) {\n return [\"/pendingRegistrations/\".concat(pendingRegistrationId)];\n};\n/**\n * @summary pendingRegistrations/{pendingRegistrationId}\n */\nexport var useGetPendingRegistration = function (pendingRegistrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!pendingRegistrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPendingRegistrationKey(pendingRegistrationId) : null); });\n var swrFn = function () {\n return getPendingRegistration(customInstance, pendingRegistrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Updates pending registration\n * @summary pendingRegistrations/{pendingRegistrationId}\n */\nexport var updatePendingRegistration = function (client, pendingRegistrationId, globalPendingRegistrationsPendingRegistrationDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/pendingRegistrations/\".concat(pendingRegistrationId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalPendingRegistrationsPendingRegistrationDtoBody,\n }, options);\n};\n/**\n * POST: Creates new pending registration\n * @summary pendingRegistrations\n */\nexport var createPendingRegistration = function (client, globalPendingRegistrationsPendingRegistrationDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/pendingRegistrations\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalPendingRegistrationsPendingRegistrationDtoBody,\n }, options);\n};\n/**\n * GET: Returns settings and metadata for pending registration\n * @summary pendingRegistrationsMetadata\n */\nexport var getPendingRegistrationsMetadata = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/pendingRegistrationsMetadata\", method: 'get', headers: headers }, options);\n};\nexport var getGetPendingRegistrationsMetadataKey = function () {\n return [\"/pendingRegistrationsMetadata\"];\n};\n/**\n * @summary pendingRegistrationsMetadata\n */\nexport var useGetPendingRegistrationsMetadata = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPendingRegistrationsMetadataKey() : null); });\n var swrFn = function () {\n return getPendingRegistrationsMetadata(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET period information based on given period code\n * @summary periods/{periodCode}\n */\nexport var getPeriod = function (client, periodCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/periods/\".concat(periodCode), method: 'get', headers: headers }, options);\n};\nexport var getGetPeriodKey = function (periodCode) { return [\"/periods/\".concat(periodCode)]; };\n/**\n * @summary periods/{periodCode}\n */\nexport var useGetPeriod = function (periodCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!periodCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPeriodKey(periodCode) : null); });\n var swrFn = function () {\n return getPeriod(customInstance, periodCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET periods information based on given offsets\n * @summary periods\n */\nexport var getPeriods = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/periods\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetPeriodsKey = function (params) {\n return __spreadArray([\"/periods\"], (params ? [params] : []), true);\n};\n/**\n * @summary periods\n */\nexport var useGetPeriods = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPeriodsKey(params) : null); });\n var swrFn = function () {\n return getPeriods(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET current period information\n * @summary periods/currentPeriod\n */\nexport var getPeriodsCurrentPeriod = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/periods/currentPeriod\", method: 'get', headers: headers }, options);\n};\nexport var getGetPeriodsCurrentPeriodKey = function () { return [\"/periods/currentPeriod\"]; };\n/**\n * @summary periods/currentPeriod\n */\nexport var useGetPeriodsCurrentPeriod = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPeriodsCurrentPeriodKey() : null); });\n var swrFn = function () {\n return getPeriodsCurrentPeriod(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide status of period tasks\n * @summary periods/{periodCode}/tasks\n */\nexport var getPeriodTasks = function (client, periodCode, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/periods/\".concat(periodCode, \"/tasks\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetPeriodTasksKey = function (periodCode, params) {\n return __spreadArray([\"/periods/\".concat(periodCode, \"/tasks\")], (params ? [params] : []), true);\n};\n/**\n * @summary periods/{periodCode}/tasks\n */\nexport var useGetPeriodTasks = function (periodCode, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!periodCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPeriodTasksKey(periodCode, params) : null); });\n var swrFn = function () {\n return getPeriodTasks(customInstance, periodCode, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: provide status of period task\n * @summary periods/{periodCode}/tasks/{taskId}\n */\nexport var getPeriodTask = function (client, periodCode, taskId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/periods/\".concat(periodCode, \"/tasks/\").concat(taskId), method: 'get', headers: headers }, options);\n};\nexport var getGetPeriodTaskKey = function (periodCode, taskId) {\n return [\"/periods/\".concat(periodCode, \"/tasks/\").concat(taskId)];\n};\n/**\n * @summary periods/{periodCode}/tasks/{taskId}\n */\nexport var useGetPeriodTask = function (periodCode, taskId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(periodCode && taskId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPeriodTaskKey(periodCode, taskId) : null); });\n var swrFn = function () {\n return getPeriodTask(customInstance, periodCode, taskId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Returns concepts permissions\n * @summary concepts/permissions\n */\nexport var getConceptsPermissions = function (client, globalConceptsPermissionsQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/concepts/permissions\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConceptsPermissionsQueryDtoBody,\n }, options);\n};\n/**\n * GET: Provides concept permissions\n * @summary concepts/{conceptCode}/permission\n */\nexport var getConceptPermission = function (client, conceptCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/concepts/\".concat(conceptCode, \"/permission\"), method: 'get', headers: headers }, options);\n};\nexport var getGetConceptPermissionKey = function (conceptCode) {\n return [\"/concepts/\".concat(conceptCode, \"/permission\")];\n};\n/**\n * @summary concepts/{conceptCode}/permission\n */\nexport var useGetConceptPermission = function (conceptCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!conceptCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConceptPermissionKey(conceptCode) : null); });\n var swrFn = function () {\n return getConceptPermission(customInstance, conceptCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Returns concepts permissions\n * @summary customers/{customerId}/concepts/permissions\n */\nexport var getCustomerConceptsPermissions = function (client, customerId, globalConceptsPermissionsQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/concepts/permissions\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConceptsPermissionsQueryDtoBody,\n }, options);\n};\n/**\n * GET: Provides concept permissions\n * @summary customers/{customerId}/concepts/{conceptCode}/permission\n */\nexport var getCustomerConceptPermission = function (client, customerId, conceptCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/concepts/\").concat(conceptCode, \"/permission\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerConceptPermissionKey = function (customerId, conceptCode) {\n return [\"/customers/\".concat(customerId, \"/concepts/\").concat(conceptCode, \"/permission\")];\n};\n/**\n * @summary customers/{customerId}/concepts/{conceptCode}/permission\n */\nexport var useGetCustomerConceptPermission = function (customerId, conceptCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && conceptCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerConceptPermissionKey(customerId, conceptCode) : null); });\n var swrFn = function () {\n return getCustomerConceptPermission(customInstance, customerId, conceptCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Returns products permissions\n * @summary products/permissions\n */\nexport var getProductsPermissions = function (client, globalProductsPermissionsQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/products/permissions\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductsPermissionsQueryDtoBody,\n }, options);\n};\n/**\n * GET: Provides product permissions\n * @summary products/{productCode}/permission\n */\nexport var getProductPermission = function (client, productCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/products/\".concat(productCode, \"/permission\"), method: 'get', headers: headers }, options);\n};\nexport var getGetProductPermissionKey = function (productCode) {\n return [\"/products/\".concat(productCode, \"/permission\")];\n};\n/**\n * @summary products/{productCode}/permission\n */\nexport var useGetProductPermission = function (productCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!productCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductPermissionKey(productCode) : null); });\n var swrFn = function () {\n return getProductPermission(customInstance, productCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides product permissions\n * @summary customers/{customerId}/products/{productCode}/permission\n */\nexport var getCustomerProductPermission = function (client, customerId, productCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/products/\").concat(productCode, \"/permission\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProductPermissionKey = function (customerId, productCode) {\n return [\"/customers/\".concat(customerId, \"/products/\").concat(productCode, \"/permission\")];\n};\n/**\n * @summary customers/{customerId}/products/{productCode}/permission\n */\nexport var useGetCustomerProductPermission = function (customerId, productCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && productCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProductPermissionKey(customerId, productCode) : null); });\n var swrFn = function () {\n return getCustomerProductPermission(customInstance, customerId, productCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Returns products permissions\n * @summary customers/{customerId}/products/permissions\n */\nexport var getCustomerProductsPermissions = function (client, customerId, globalProductsPermissionsQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/products/permissions\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductsPermissionsQueryDtoBody,\n }, options);\n};\n/**\n * Provides permissions for customer\n * @summary customer/{customerId}/roles/permissions\n */\nexport var getCustomerRolesPermissions = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customer/\".concat(customerId, \"/roles/permissions\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRolesPermissionsKey = function (customerId) {\n return [\"/customer/\".concat(customerId, \"/roles/permissions\")];\n};\n/**\n * @summary customer/{customerId}/roles/permissions\n */\nexport var useGetCustomerRolesPermissions = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRolesPermissionsKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerRolesPermissions(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Personal Beauty Store information\n * @summary customers/{customerId}/personalBeautyStore\n */\nexport var getCustomerPersonalBeautyStore = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/personalBeautyStore\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPersonalBeautyStoreKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/personalBeautyStore\")];\n};\n/**\n * @summary customers/{customerId}/personalBeautyStore\n */\nexport var useGetCustomerPersonalBeautyStore = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPersonalBeautyStoreKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPersonalBeautyStore(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Create Personal Beauty Store\n * @summary customers/{customerId}/personalBeautyStore\n */\nexport var createCustomerPersonalBeautyStore = function (client, customerId, globalCustomersPersonalBeautyStoreDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/personalBeautyStore\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersPersonalBeautyStoreDtoBody,\n }, options);\n};\n/**\n * PUT: Modify Personal Beauty Store\n * @summary customers/{customerId}/personalBeautyStore\n */\nexport var updateCustomerPersonalBeautyStore = function (client, customerId, globalCustomersPersonalBeautyStoreDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/personalBeautyStore\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersPersonalBeautyStoreDtoBody,\n }, options);\n};\n/**\n * GET: Checks if is allowed to create Personal Beauty Store\n * @summary customers/{customerId}/personalBeautyStore/metadata\n */\nexport var getCustomerPersonalBeautyStoreMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/personalBeautyStore/metadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPersonalBeautyStoreMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/personalBeautyStore/metadata\")];\n};\n/**\n * @summary customers/{customerId}/personalBeautyStore/metadata\n */\nexport var useGetCustomerPersonalBeautyStoreMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPersonalBeautyStoreMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPersonalBeautyStoreMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets PBS profile for the customer with given customer id\n * @summary customers/{customerId}/personalBeautyStore/profile\n */\nexport var getCustomerPersonalBeautyStoreProfile = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/personalBeautyStore/profile\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPersonalBeautyStoreProfileKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/personalBeautyStore/profile\")];\n};\n/**\n * @summary customers/{customerId}/personalBeautyStore/profile\n */\nexport var useGetCustomerPersonalBeautyStoreProfile = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPersonalBeautyStoreProfileKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPersonalBeautyStoreProfile(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets PBS store of customer's sponsor.\n * @summary customers/{customerId}/SponsorPersonalBeautyStore\n */\nexport var getCustomerSponsorPersonalBeautyStore = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/SponsorPersonalBeautyStore\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerSponsorPersonalBeautyStoreKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/SponsorPersonalBeautyStore\")];\n};\n/**\n * @summary customers/{customerId}/SponsorPersonalBeautyStore\n */\nexport var useGetCustomerSponsorPersonalBeautyStore = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerSponsorPersonalBeautyStoreKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerSponsorPersonalBeautyStore(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides personal beauty store link\n * @summary customers/{customerId}/personalBeautyStore/dynamiclink\n */\nexport var getCustomerPersonalBeautyStoreDynamiclink = function (client, customerId, headers, params, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/personalBeautyStore/dynamiclink\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCustomerPersonalBeautyStoreDynamiclinkKey = function (customerId, params) {\n return __spreadArray([\n \"/customers/\".concat(customerId, \"/personalBeautyStore/dynamiclink\")\n ], (params ? [params] : []), true);\n};\n/**\n * @summary customers/{customerId}/personalBeautyStore/dynamiclink\n */\nexport var useGetCustomerPersonalBeautyStoreDynamiclink = function (customerId, headers, params, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCustomerPersonalBeautyStoreDynamiclinkKey(customerId, params) : null;\n });\n var swrFn = function () {\n return getCustomerPersonalBeautyStoreDynamiclink(customInstance, customerId, headers, params, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get Personal Beauty Store configuration\n * @summary personalBeautyStoreConfiguration\n */\nexport var getPersonalBeautyStoreConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/personalBeautyStoreConfiguration\", method: 'get', headers: headers }, options);\n};\nexport var getGetPersonalBeautyStoreConfigurationKey = function () {\n return [\"/personalBeautyStoreConfiguration\"];\n};\n/**\n * @summary personalBeautyStoreConfiguration\n */\nexport var useGetPersonalBeautyStoreConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPersonalBeautyStoreConfigurationKey() : null); });\n var swrFn = function () {\n return getPersonalBeautyStoreConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get Personal Beauty Store details\n * @summary personalBeautyStores/{name}\n */\nexport var getPersonalBeautyStore = function (client, name, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/personalBeautyStores/\".concat(name), method: 'get', headers: headers }, options);\n};\nexport var getGetPersonalBeautyStoreKey = function (name) {\n return [\"/personalBeautyStores/\".concat(name)];\n};\n/**\n * @summary personalBeautyStores/{name}\n */\nexport var useGetPersonalBeautyStore = function (name, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!name;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPersonalBeautyStoreKey(name) : null); });\n var swrFn = function () {\n return getPersonalBeautyStore(customInstance, name, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about personal details of registration with given ID\n * @summary customerRegistrations/{registrationId}/personalDetails\n */\nexport var getCustomerRegistrationPersonalDetails = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customerRegistrations/\".concat(registrationId, \"/personalDetails\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationPersonalDetailsKey = function (registrationId) {\n return [\"/customerRegistrations/\".concat(registrationId, \"/personalDetails\")];\n};\n/**\n * @summary customerRegistrations/{registrationId}/personalDetails\n */\nexport var useGetCustomerRegistrationPersonalDetails = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationPersonalDetailsKey(registrationId) : null); });\n var swrFn = function () {\n return getCustomerRegistrationPersonalDetails(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Modifies information about personal details of registration with given ID\n * @summary customerRegistrations/{registrationId}/personalDetails\n */\nexport var updateCustomerRegistrationPersonalDetails = function (client, registrationId, globalCustomerRegistrationsRegistrationPersonalDetailsDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations/\".concat(registrationId, \"/personalDetails\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomerRegistrationsRegistrationPersonalDetailsDto,\n }, options);\n};\n/**\n * GET: Returns documents for personal document\n * @summary customers/{customerId}/personalDocument\n */\nexport var getCustomerPersonalDocument = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/personalDocument\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPersonalDocumentKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/personalDocument\")];\n};\n/**\n * @summary customers/{customerId}/personalDocument\n */\nexport var useGetCustomerPersonalDocument = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPersonalDocumentKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPersonalDocument(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change documents for personal document (temporary document are submitted and will no longer be deleted)\n * @summary customers/{customerId}/personalDocument\n */\nexport var updateCustomerPersonalDocument = function (client, customerId, globalCustomersCustomerDocumentsDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/personalDocument\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerDocumentsDto,\n }, options);\n};\n/**\n * Gets OriSales menu items which will be merged with Online ones in personal menu application.\n * @summary applications/personalMenu/orisalesMenu\n */\nexport var getApplicationsPersonalMenuOrisalesMenu = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/personalMenu/orisalesMenu\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsPersonalMenuOrisalesMenuKey = function () {\n return [\"/applications/personalMenu/orisalesMenu\"];\n};\n/**\n * @summary applications/personalMenu/orisalesMenu\n */\nexport var useGetApplicationsPersonalMenuOrisalesMenu = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsPersonalMenuOrisalesMenuKey() : null); });\n var swrFn = function () {\n return getApplicationsPersonalMenuOrisalesMenu(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get personal performance kpis\n * @summary customers/{customerId}/personalPerformance\n */\nexport var getCustomerPersonalPerformance = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/personalPerformance\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerPersonalPerformanceKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/personalPerformance\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/personalPerformance\n */\nexport var useGetCustomerPersonalPerformance = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPersonalPerformanceKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerPersonalPerformance(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the localization.\n * @summary applications/personalProductsList/localization\n */\nexport var getApplicationsPersonalProductsListLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/personalProductsList/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsPersonalProductsListLocalizationKey = function () {\n return [\"/applications/personalProductsList/localization\"];\n};\n/**\n * @summary applications/personalProductsList/localization\n */\nexport var useGetApplicationsPersonalProductsListLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsPersonalProductsListLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsPersonalProductsListLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the configuration.\n * @summary applications/personalProductsList/configuration\n */\nexport var getApplicationsPersonalProductsListConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/personalProductsList/configuration\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsPersonalProductsListConfigurationKey = function () {\n return [\"/applications/personalProductsList/configuration\"];\n};\n/**\n * @summary applications/personalProductsList/configuration\n */\nexport var useGetApplicationsPersonalProductsListConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsPersonalProductsListConfigurationKey() : null); });\n var swrFn = function () {\n return getApplicationsPersonalProductsListConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the telephones of customer with given customer id\n * @summary customers/{customerId}/phones\n */\nexport var getCustomerPhones = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/phones\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPhonesKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/phones\")];\n};\n/**\n * @summary customers/{customerId}/phones\n */\nexport var useGetCustomerPhones = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPhonesKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPhones(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates a telephone for given customer id\n * @summary customers/{customerId}/phones\n */\nexport var createCustomerPhone = function (client, customerId, globalCustomersPhoneDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/phones\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersPhoneDtoBody,\n }, options);\n};\n/**\n * PUT: Updates the telephone with given telephone id\n * @summary customers/{customerId}/phones/{telephoneId}\n */\nexport var updateCustomerPhone = function (client, customerId, telephoneId, globalCustomersPhoneDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/phones/\").concat(telephoneId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersPhoneDtoBody,\n }, options);\n};\n/**\n * DELETE: Deletes a telephone with given telephone id\n * @summary customers/{customerId}/phones/{telephoneId}\n */\nexport var deleteCustomerPhone = function (client, customerId, telephoneId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/phones/\").concat(telephoneId), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Gets metadata information for phone endpoints of the customer with given customer id\n * @summary customers/{customerId}/phonesMetadata\n */\nexport var getCustomerPhonesMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/phonesMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPhonesMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/phonesMetadata\")];\n};\n/**\n * @summary customers/{customerId}/phonesMetadata\n */\nexport var useGetCustomerPhonesMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPhonesMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPhonesMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the status of verification process for given telephone id and customer id\n * @summary customers/{customerId}/phones/{telephoneId}/verificationRequest\n */\nexport var getCustomerPhoneVerificationRequest = function (client, customerId, telephoneId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/phones/\").concat(telephoneId, \"/verificationRequest\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerPhoneVerificationRequestKey = function (customerId, telephoneId) { return [\"/customers/\".concat(customerId, \"/phones/\").concat(telephoneId, \"/verificationRequest\")]; };\n/**\n * @summary customers/{customerId}/phones/{telephoneId}/verificationRequest\n */\nexport var useGetCustomerPhoneVerificationRequest = function (customerId, telephoneId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && telephoneId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPhoneVerificationRequestKey(customerId, telephoneId) : null); });\n var swrFn = function () {\n return getCustomerPhoneVerificationRequest(customInstance, customerId, telephoneId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Requests resending verification code for customer with a given telephone id and customer id\n * @summary customers/{customerId}/phones/{telephoneId}/verificationRequest\n */\nexport var updateCustomerPhoneVerificationRequest = function (client, customerId, telephoneId, globalCustomersTelephoneVerificationRequestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/phones/\").concat(telephoneId, \"/verificationRequest\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersTelephoneVerificationRequestDto,\n }, options);\n};\n/**\n * GET: Returns preferences\n * @summary customers/{customerId}/preferences\n */\nexport var getCustomerPreferences = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/preferences\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPreferencesKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/preferences\")];\n};\n/**\n * @summary customers/{customerId}/preferences\n */\nexport var useGetCustomerPreferences = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPreferencesKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPreferences(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change preferences values\n * @summary customers/{customerId}/preferences\n */\nexport var updateCustomerPreferences = function (client, customerId, globalCustomersCustomerPreferencesDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/preferences\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerPreferencesDto,\n }, options);\n};\n/**\n * GET: Returns metadata for preferences\n * @summary customers/{customerId}/preferencesMetadata\n */\nexport var getCustomerPreferencesMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/preferencesMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerPreferencesMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/preferencesMetadata\")];\n};\n/**\n * @summary customers/{customerId}/preferencesMetadata\n */\nexport var useGetCustomerPreferencesMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerPreferencesMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerPreferencesMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns prerequisites for checkout process\n * @summary customers/{customerId}/checkoutPrerequisites\n */\nexport var getCustomerCheckoutPrerequisites = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/checkoutPrerequisites\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerCheckoutPrerequisitesKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/checkoutPrerequisites\")];\n};\n/**\n * @summary customers/{customerId}/checkoutPrerequisites\n */\nexport var useGetCustomerCheckoutPrerequisites = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerCheckoutPrerequisitesKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerCheckoutPrerequisites(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Provides information about concept price\n * @summary concepts/prices\n */\nexport var getConceptsPrices = function (client, globalConceptsConceptPricesQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/concepts/prices\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConceptsConceptPricesQueryDtoBody,\n }, options);\n};\n/**\n * GET: Provides information about concept price\n * @summary concepts/{conceptCode}/price\n */\nexport var getConceptPrice = function (client, conceptCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/concepts/\".concat(conceptCode, \"/price\"), method: 'get', headers: headers }, options);\n};\nexport var getGetConceptPriceKey = function (conceptCode) {\n return [\"/concepts/\".concat(conceptCode, \"/price\")];\n};\n/**\n * @summary concepts/{conceptCode}/price\n */\nexport var useGetConceptPrice = function (conceptCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!conceptCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConceptPriceKey(conceptCode) : null); });\n var swrFn = function () {\n return getConceptPrice(customInstance, conceptCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Provides information about concept price\n * @summary customers/{customerId}/concepts/prices\n */\nexport var getCustomerConceptsPrices = function (client, customerId, globalConceptsConceptPricesQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/concepts/prices\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConceptsConceptPricesQueryDtoBody,\n }, options);\n};\n/**\n * GET: Provides information about concept price\n * @summary customers/{customerId}/concepts/{conceptCode}/price\n */\nexport var getCustomerConceptPrice = function (client, customerId, conceptCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/concepts/\").concat(conceptCode, \"/price\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerConceptPriceKey = function (customerId, conceptCode) {\n return [\"/customers/\".concat(customerId, \"/concepts/\").concat(conceptCode, \"/price\")];\n};\n/**\n * @summary customers/{customerId}/concepts/{conceptCode}/price\n */\nexport var useGetCustomerConceptPrice = function (customerId, conceptCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && conceptCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerConceptPriceKey(customerId, conceptCode) : null); });\n var swrFn = function () {\n return getCustomerConceptPrice(customInstance, customerId, conceptCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Provides information about product price\n * @summary products/prices\n */\nexport var getProductsPrices = function (client, globalProductsProductPricesQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/products/prices\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductsProductPricesQueryDtoBody,\n }, options);\n};\n/**\n * GET: Provides information about product price\n * @summary customers/{customerId}/products/{productCode}/price\n */\nexport var getCustomerProductPrice = function (client, customerId, productCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/products/\").concat(productCode, \"/price\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProductPriceKey = function (customerId, productCode) {\n return [\"/customers/\".concat(customerId, \"/products/\").concat(productCode, \"/price\")];\n};\n/**\n * @summary customers/{customerId}/products/{productCode}/price\n */\nexport var useGetCustomerProductPrice = function (customerId, productCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && productCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProductPriceKey(customerId, productCode) : null); });\n var swrFn = function () {\n return getCustomerProductPrice(customInstance, customerId, productCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Provides information about product price\n * @summary customers/{customerId}/products/prices\n */\nexport var getCustomerProductsPrices = function (client, customerId, globalProductsProductPricesQueryDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/products/prices\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductsProductPricesQueryDtoBody,\n }, options);\n};\n/**\n * Gets single product bundle by product code\n * @summary productBundles/{productCode}\n */\nexport var getProductBundle = function (client, productCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/productBundles/\".concat(productCode), method: 'get', headers: headers }, options);\n};\nexport var getGetProductBundleKey = function (productCode) {\n return [\"/productBundles/\".concat(productCode)];\n};\n/**\n * @summary productBundles/{productCode}\n */\nexport var useGetProductBundle = function (productCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!productCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductBundleKey(productCode) : null); });\n var swrFn = function () {\n return getProductBundle(customInstance, productCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets collection of product bundles\n * @summary productBundles\n */\nexport var getProductBundles = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/productBundles\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetProductBundlesKey = function (params) {\n return __spreadArray([\"/productBundles\"], (params ? [params] : []), true);\n};\n/**\n * @summary productBundles\n */\nexport var useGetProductBundles = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductBundlesKey(params) : null); });\n var swrFn = function () {\n return getProductBundles(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides collection of Product Labels' contents.\n * @summary productLabelsContent\n */\nexport var getProductLabelsContent = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/productLabelsContent\", method: 'get', headers: headers }, options);\n};\nexport var getGetProductLabelsContentKey = function () { return [\"/productLabelsContent\"]; };\n/**\n * @summary productLabelsContent\n */\nexport var useGetProductLabelsContent = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductLabelsContentKey() : null); });\n var swrFn = function () {\n return getProductLabelsContent(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get product list specified by productListId.\n * @summary productListTypes/{productListType}/productLists/{productListId}\n */\nexport var getProductListTypeProductList = function (client, productListType, productListId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/productListTypes/\".concat(productListType, \"/productLists/\").concat(productListId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetProductListTypeProductListKey = function (productListType, productListId) { return [\"/productListTypes/\".concat(productListType, \"/productLists/\").concat(productListId)]; };\n/**\n * @summary productListTypes/{productListType}/productLists/{productListId}\n */\nexport var useGetProductListTypeProductList = function (productListType, productListId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(productListType && productListId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetProductListTypeProductListKey(productListType, productListId) : null;\n });\n var swrFn = function () {\n return getProductListTypeProductList(customInstance, productListType, productListId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets all product lists for specified customer of specified productListType.\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists\n */\nexport var getCustomerProductListTypeProductLists = function (client, customerId, productListType, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerProductListTypeProductListsKey = function (customerId, productListType) { return [\"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists\")]; };\n/**\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists\n */\nexport var useGetCustomerProductListTypeProductLists = function (customerId, productListType, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && productListType);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCustomerProductListTypeProductListsKey(customerId, productListType) : null;\n });\n var swrFn = function () {\n return getCustomerProductListTypeProductLists(customInstance, customerId, productListType, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates new product list for specified customer of provided productListType.\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists\n */\nexport var createCustomerProductListTypeProductList = function (client, customerId, productListType, globalSharedProductListDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalSharedProductListDtoBody,\n }, options);\n};\n/**\n * Gets one product list of type productListType specified by productListId.\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists/{productListId}\n */\nexport var getCustomerProductListTypeProductList = function (client, customerId, productListType, productListId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists/\").concat(productListId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerProductListTypeProductListKey = function (customerId, productListType, productListId) {\n return [\n \"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists/\").concat(productListId),\n ];\n};\n/**\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists/{productListId}\n */\nexport var useGetCustomerProductListTypeProductList = function (customerId, productListType, productListId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && productListType && productListId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetCustomerProductListTypeProductListKey(customerId, productListType, productListId)\n : null;\n });\n var swrFn = function () {\n return getCustomerProductListTypeProductList(customInstance, customerId, productListType, productListId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Updates product list of type productListType specified by productListId.\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists/{productListId}\n */\nexport var updateCustomerProductListTypeProductList = function (client, customerId, productListType, productListId, globalSharedProductListDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists/\").concat(productListId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalSharedProductListDtoBody,\n }, options);\n};\n/**\n * Delete product list of type productListType specified by productListId.\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists/{productListId}\n */\nexport var deleteCustomerProductListTypeProductList = function (client, customerId, productListType, productListId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists/\").concat(productListId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Deletes product item of specified code from product list.\n * @summary customers/{customerId}/ProductListTypes/{productListType}/ProductLists/{productListId}/Items/{itemCode}\n */\nexport var deleteCustomerProductListTypeProductListItem = function (client, customerId, productListType, productListId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/ProductListTypes/\").concat(productListType, \"/ProductLists/\").concat(productListId, \"/Items/\").concat(itemCode),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Add one item of specified item code to product list.\n * @summary customers/{customerId}/ProductListTypes/{productListType}/ProductLists/{productListId}/Items\n */\nexport var createCustomerProductListTypeProductListItem = function (client, customerId, productListType, productListId, globalSharedProductListItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/ProductListTypes/\").concat(productListType, \"/ProductLists/\").concat(productListId, \"/Items\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalSharedProductListItemDto,\n }, options);\n};\n/**\n * Provides personal product list link.\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists/{productListId}/dynamiclink\n */\nexport var getCustomerProductListTypeProductListDynamiclink = function (client, customerId, productListId, headers, params, productListType, options) {\n if (productListType === void 0) { productListType = 'Personal'; }\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists/\").concat(productListId, \"/dynamiclink\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCustomerProductListTypeProductListDynamiclinkKey = function (customerId, productListId, params, productListType) {\n if (productListType === void 0) { productListType = 'Personal'; }\n return __spreadArray([\n \"/customers/\".concat(customerId, \"/productListTypes/\").concat(productListType, \"/productLists/\").concat(productListId, \"/dynamiclink\")\n ], (params ? [params] : []), true);\n};\n/**\n * @summary customers/{customerId}/productListTypes/{productListType}/productLists/{productListId}/dynamiclink\n */\nexport var useGetCustomerProductListTypeProductListDynamiclink = function (customerId, productListId, headers, params, productListType, options) {\n var _a;\n if (productListType === void 0) { productListType = 'Personal'; }\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && productListType && productListId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetCustomerProductListTypeProductListDynamiclinkKey(customerId, productListId, params, productListType)\n : null;\n });\n var swrFn = function () {\n return getCustomerProductListTypeProductListDynamiclink(customInstance, customerId, productListId, headers, params, productListType, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get product listing specified by productListingPageId\n * @summary applications/productListing/listings\n */\nexport var getApplicationsProductListingListings = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/productListing/listings\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetApplicationsProductListingListingsKey = function (params) { return __spreadArray([\"/applications/productListing/listings\"], (params ? [params] : []), true); };\n/**\n * @summary applications/productListing/listings\n */\nexport var useGetApplicationsProductListingListings = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsProductListingListingsKey(params) : null); });\n var swrFn = function () {\n return getApplicationsProductListingListings(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides collection of Product Listing Promo Banners\n * @summary applications/productListing/promoBanners\n */\nexport var getApplicationsProductListingPromoBanners = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/productListing/promoBanners\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetApplicationsProductListingPromoBannersKey = function (params) { return __spreadArray([\"/applications/productListing/promoBanners\"], (params ? [params] : []), true); };\n/**\n * @summary applications/productListing/promoBanners\n */\nexport var useGetApplicationsProductListingPromoBanners = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsProductListingPromoBannersKey(params) : null); });\n var swrFn = function () {\n return getApplicationsProductListingPromoBanners(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Provides products\n * @summary products\n */\nexport var getProducts = function (client, globalProductsQueryDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/products\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalProductsQueryDto,\n }, options);\n};\n/**\n * GET: Provides product\n * @summary products/{productCode}\n */\nexport var getProduct = function (client, productCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/products/\".concat(productCode), method: 'get', headers: headers }, options);\n};\nexport var getGetProductKey = function (productCode) { return [\"/products/\".concat(productCode)]; };\n/**\n * @summary products/{productCode}\n */\nexport var useGetProduct = function (productCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!productCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductKey(productCode) : null); });\n var swrFn = function () {\n return getProduct(customInstance, productCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the products expected inbounds\n * @summary productsExpectedInbounds\n */\nexport var getProductsExpectedInbounds = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/productsExpectedInbounds\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetProductsExpectedInboundsKey = function (params) {\n return __spreadArray([\"/productsExpectedInbounds\"], (params ? [params] : []), true);\n};\n/**\n * @summary productsExpectedInbounds\n */\nexport var useGetProductsExpectedInbounds = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductsExpectedInboundsKey(params) : null); });\n var swrFn = function () {\n return getProductsExpectedInbounds(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the products ingredients\n * @summary productsIngredients\n */\nexport var getProductsIngredients = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/productsIngredients\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetProductsIngredientsKey = function (params) {\n return __spreadArray([\"/productsIngredients\"], (params ? [params] : []), true);\n};\n/**\n * @summary productsIngredients\n */\nexport var useGetProductsIngredients = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductsIngredientsKey(params) : null); });\n var swrFn = function () {\n return getProductsIngredients(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets collection of product labels for anonymous customer.\n * @summary productsLabels\n */\nexport var getProductsLabels = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/productsLabels\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetProductsLabelsKey = function (params) {\n return __spreadArray([\"/productsLabels\"], (params ? [params] : []), true);\n};\n/**\n * @summary productsLabels\n */\nexport var useGetProductsLabels = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductsLabelsKey(params) : null); });\n var swrFn = function () {\n return getProductsLabels(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets products replacements for specific customer.\n * @summary customers/{customerId}/productsReplacements\n */\nexport var getCustomerProductsReplacements = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/productsReplacements\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerProductsReplacementsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/productsReplacements\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/productsReplacements\n */\nexport var useGetCustomerProductsReplacements = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProductsReplacementsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerProductsReplacements(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Collection of products by search criteria\n * @summary applications/shoppingBag/products\n */\nexport var getApplicationsShoppingBagProducts = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/shoppingBag/products\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetApplicationsShoppingBagProductsKey = function (params) { return __spreadArray([\"/applications/shoppingBag/products\"], (params ? [params] : []), true); };\n/**\n * @summary applications/shoppingBag/products\n */\nexport var useGetApplicationsShoppingBagProducts = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsShoppingBagProductsKey(params) : null); });\n var swrFn = function () {\n return getApplicationsShoppingBagProducts(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets the customer profile of the customer with given customer id\n * @summary customers/{customerId}/profile\n */\nexport var getCustomerProfile = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/profile\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProfileKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/profile\")];\n};\n/**\n * @summary customers/{customerId}/profile\n */\nexport var useGetCustomerProfile = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProfileKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerProfile(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Updates the customer profile of the customer with given customer id\n * @summary customers/{customerId}/profile\n */\nexport var updateCustomerProfile = function (client, customerId, globalCustomersProfileDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/profile\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersProfileDto,\n }, options);\n};\n/**\n * GET: Gets metadata information for profile endpoints of the customer with given customer id\n * @summary customers/{customerId}/profileMetadata\n */\nexport var getCustomerProfileMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/profileMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProfileMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/profileMetadata\")];\n};\n/**\n * @summary customers/{customerId}/profileMetadata\n */\nexport var useGetCustomerProfileMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProfileMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerProfileMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets information about completeness of user's profile\n * @summary customers/{customerId}/profileCompleteness\n */\nexport var getCustomerProfileCompleteness = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/profileCompleteness\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProfileCompletenessKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/profileCompleteness\")];\n};\n/**\n * @summary customers/{customerId}/profileCompleteness\n */\nexport var useGetCustomerProfileCompleteness = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProfileCompletenessKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerProfileCompleteness(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets configuration for user's profile completeness\n * @summary customers/{customerId}/profileCompletenessMetadata\n */\nexport var getCustomerProfileCompletenessMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/profileCompletenessMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProfileCompletenessMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/profileCompletenessMetadata\")];\n};\n/**\n * @summary customers/{customerId}/profileCompletenessMetadata\n */\nexport var useGetCustomerProfileCompletenessMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProfileCompletenessMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerProfileCompletenessMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Configuration for profile sections for customer\n * @summary customers/{customerId}/applications/profile/configurations/sections\n */\nexport var getCustomerApplicationsProfileConfigurationsSections = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/applications/profile/configurations/sections\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerApplicationsProfileConfigurationsSectionsKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/applications/profile/configurations/sections\")];\n};\n/**\n * @summary customers/{customerId}/applications/profile/configurations/sections\n */\nexport var useGetCustomerApplicationsProfileConfigurationsSections = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCustomerApplicationsProfileConfigurationsSectionsKey(customerId) : null;\n });\n var swrFn = function () {\n return getCustomerApplicationsProfileConfigurationsSections(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns information about all profile approvals for customer\n * @summary customers/{customerId}/profileApproval\n */\nexport var getCustomerProfileApproval = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/profileApproval\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProfileApprovalKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/profileApproval\")];\n};\n/**\n * @summary customers/{customerId}/profileApproval\n */\nexport var useGetCustomerProfileApproval = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProfileApprovalKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerProfileApproval(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns document for profile image\n * @summary customers/{customerId}/profileImage\n */\nexport var getCustomerProfileImage = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/profileImage\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProfileImageKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/profileImage\")];\n};\n/**\n * @summary customers/{customerId}/profileImage\n */\nexport var useGetCustomerProfileImage = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProfileImageKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerProfileImage(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change documents for profile image (temporary document are submitted and will no longer be deleted)\n * @summary customers/{customerId}/profileImage\n */\nexport var updateCustomerProfileImage = function (client, customerId, globalCustomersProfileImageDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/profileImage\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersProfileImageDto,\n }, options);\n};\n/**\n * GET: Returns metadata for profile image\n * @summary customers/{customerId}/profileImageMetadata\n */\nexport var getCustomerProfileImageMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/profileImageMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerProfileImageMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/profileImageMetadata\")];\n};\n/**\n * @summary customers/{customerId}/profileImageMetadata\n */\nexport var useGetCustomerProfileImageMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerProfileImageMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerProfileImageMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provide a specific promotion\n * @summary promotions/{promotionId}\n */\nexport var getPromotion = function (client, promotionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/promotions/\".concat(promotionId), method: 'get', headers: headers }, options);\n};\nexport var getGetPromotionKey = function (promotionId) { return [\"/promotions/\".concat(promotionId)]; };\n/**\n * @summary promotions/{promotionId}\n */\nexport var useGetPromotion = function (promotionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!promotionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPromotionKey(promotionId) : null); });\n var swrFn = function () {\n return getPromotion(customInstance, promotionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets best offers banners\n * @summary promotionBestOffersBanners\n */\nexport var getPromotionBestOffersBanners = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/promotionBestOffersBanners\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetPromotionBestOffersBannersKey = function (params) {\n return __spreadArray([\"/promotionBestOffersBanners\"], (params ? [params] : []), true);\n};\n/**\n * @summary promotionBestOffersBanners\n */\nexport var useGetPromotionBestOffersBanners = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPromotionBestOffersBannersKey(params) : null); });\n var swrFn = function () {\n return getPromotionBestOffersBanners(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets whats new type banners\n * @summary promotionWhatsNewBanners\n */\nexport var getPromotionWhatsNewBanners = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/promotionWhatsNewBanners\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetPromotionWhatsNewBannersKey = function (params) {\n return __spreadArray([\"/promotionWhatsNewBanners\"], (params ? [params] : []), true);\n};\n/**\n * @summary promotionWhatsNewBanners\n */\nexport var useGetPromotionWhatsNewBanners = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPromotionWhatsNewBannersKey(params) : null); });\n var swrFn = function () {\n return getPromotionWhatsNewBanners(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets hero banners\n * @summary promotionHeroBanners\n */\nexport var getPromotionHeroBanners = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/promotionHeroBanners\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetPromotionHeroBannersKey = function (params) {\n return __spreadArray([\"/promotionHeroBanners\"], (params ? [params] : []), true);\n};\n/**\n * @summary promotionHeroBanners\n */\nexport var useGetPromotionHeroBanners = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPromotionHeroBannersKey(params) : null); });\n var swrFn = function () {\n return getPromotionHeroBanners(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets campaign banners\n * @summary promotionCampaignBanners\n */\nexport var getPromotionCampaignBanners = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/promotionCampaignBanners\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetPromotionCampaignBannersKey = function (params) {\n return __spreadArray([\"/promotionCampaignBanners\"], (params ? [params] : []), true);\n};\n/**\n * @summary promotionCampaignBanners\n */\nexport var useGetPromotionCampaignBanners = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPromotionCampaignBannersKey(params) : null); });\n var swrFn = function () {\n return getPromotionCampaignBanners(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets category banners\n * @summary promotionCategoryBanners\n */\nexport var getPromotionCategoryBanners = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/promotionCategoryBanners\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetPromotionCategoryBannersKey = function (params) {\n return __spreadArray([\"/promotionCategoryBanners\"], (params ? [params] : []), true);\n};\n/**\n * @summary promotionCategoryBanners\n */\nexport var useGetPromotionCategoryBanners = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPromotionCategoryBannersKey(params) : null); });\n var swrFn = function () {\n return getPromotionCategoryBanners(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets current promotions\n * @summary digitalPromotions\n */\nexport var getDigitalPromotions = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/digitalPromotions\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetDigitalPromotionsKey = function (params) {\n return __spreadArray([\"/digitalPromotions\"], (params ? [params] : []), true);\n};\n/**\n * @summary digitalPromotions\n */\nexport var useGetDigitalPromotions = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetDigitalPromotionsKey(params) : null); });\n var swrFn = function () {\n return getDigitalPromotions(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provide all valid promotions\n * @summary promotions\n */\nexport var getPromotions = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/promotions\", method: 'get', headers: headers }, options);\n};\nexport var getGetPromotionsKey = function () { return [\"/promotions\"]; };\n/**\n * @summary promotions\n */\nexport var useGetPromotions = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetPromotionsKey() : null); });\n var swrFn = function () { return getPromotions(customInstance, headers, requestOptions).then(function (d) { return d.data; }); };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Creates or updates push notification installation for anonymous customer\n * @summary pushNotifications/installations\n */\nexport var createPushNotificationsInstallation = function (client, globalNotificationsInstallationRequestDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/pushNotifications/installations\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNotificationsInstallationRequestDtoBody,\n }, options);\n};\n/**\n * Creates or updates push notification installation for logged in customer\n * @summary customers/{customerId}/pushNotifications/installations\n */\nexport var createCustomerPushNotificationsInstallation = function (client, customerId, globalNotificationsInstallationRequestDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/pushNotifications/installations\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNotificationsInstallationRequestDtoBody,\n }, options);\n};\n/**\n * Deletes installation\n * @summary customers/{customerId}/pushNotifications/installations/{installationId}\n */\nexport var deleteCustomerPushNotificationsInstallation = function (client, customerId, installationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/pushNotifications/installations/\").concat(installationId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Create or update device registration in Push notification center to possible to deliver the push notification to this device.\n \r\nDeprecated for Cumulus Markets: Please use route /pushNotifications/installations or /customers/{customerId}/pushNotifications/installations instead\n * @summary pushNotifications/registrations\n */\nexport var createPushNotificationsRegistration = function (client, globalNotificationsPushRegistrationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/pushNotifications/registrations\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalNotificationsPushRegistrationDto,\n }, options);\n};\n/**\n * Unregister device from application by registration ID\n \r\nDeprecated for Cumulus Markets\n * @summary pushNotifications/applications/{applicationKey}/registrationId/{registrationId}\n */\nexport var deletePushNotificationsApplicationRegistrationId = function (client, applicationKey, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/pushNotifications/applications/\".concat(applicationKey, \"/registrationId/\").concat(registrationId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Unregister device from application by device token\n \r\nDeprecated for Cumulus Markets\n * @summary pushNotifications/applications/{applicationKey}/deviceToken/{deviceToken}\n */\nexport var deletePushNotificationsApplicationDeviceToken = function (client, applicationKey, deviceToken, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/pushNotifications/applications/\".concat(applicationKey, \"/deviceToken/\").concat(deviceToken),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Localization for RealTime Order Tracking application\n * @summary applications/realTimeOrderTracking/localization\n */\nexport var getApplicationsRealTimeOrderTrackingLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/realTimeOrderTracking/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsRealTimeOrderTrackingLocalizationKey = function () {\n return [\"/applications/realTimeOrderTracking/localization\"];\n};\n/**\n * @summary applications/realTimeOrderTracking/localization\n */\nexport var useGetApplicationsRealTimeOrderTrackingLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsRealTimeOrderTrackingLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsRealTimeOrderTrackingLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get stored payment cards\n * @summary customers/{customerId}/recurringPaymentCards\n */\nexport var getCustomerRecurringPaymentCards = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/recurringPaymentCards\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerRecurringPaymentCardsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/recurringPaymentCards\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/recurringPaymentCards\n */\nexport var useGetCustomerRecurringPaymentCards = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRecurringPaymentCardsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerRecurringPaymentCards(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Delete stored payment card\n * @summary customers/{customerId}/recurringPaymentCards/{recurringPaymentCardId}\n */\nexport var deleteCustomerRecurringPaymentCard = function (client, customerId, recurringPaymentCardId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/recurringPaymentCards/\").concat(recurringPaymentCardId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Gets metadata information for recurring payment card endpoints of the customer with given customer id\n * @summary customers/{customerId}/recurringPaymentCardsMetadata\n */\nexport var getCustomerRecurringPaymentCardsMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/recurringPaymentCardsMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRecurringPaymentCardsMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/recurringPaymentCardsMetadata\")];\n};\n/**\n * @summary customers/{customerId}/recurringPaymentCardsMetadata\n */\nexport var useGetCustomerRecurringPaymentCardsMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRecurringPaymentCardsMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerRecurringPaymentCardsMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide assigned referral\n * @summary shoppingSessions/{sessionId}/referral\n */\nexport var getShoppingSessionReferral = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/referral\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionReferralKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/referral\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/referral\n */\nexport var useGetShoppingSessionReferral = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionReferralKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionReferral(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Assign referral invitation\n * @summary shoppingSessions/{sessionId}/referral\n */\nexport var createShoppingSessionReferral = function (client, sessionId, globalShoppingReferralDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/referral\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingReferralDto,\n }, options);\n};\n/**\n * POST: Performs consultant registration done by sponsor, SPO or customer service\n * @summary customers/{customerId}/consultants\n */\nexport var createCustomerConsultant = function (client, customerId, globalCustomersConsultantRegistrationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/consultants\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersConsultantRegistrationDto,\n }, options);\n};\n/**\n * POST: Performs self registration for consultant\n * @summary consultants\n */\nexport var createConsultant = function (client, globalCustomersSelfRegistrationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/consultants\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersSelfRegistrationDto,\n }, options);\n};\n/**\n * Return metadata for registration done by sponsor\n * @summary customers/{customerId}/consultantsMetadata\n */\nexport var getCustomerConsultantsMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/consultantsMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerConsultantsMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/consultantsMetadata\")];\n};\n/**\n * @summary customers/{customerId}/consultantsMetadata\n */\nexport var useGetCustomerConsultantsMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerConsultantsMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerConsultantsMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Return metadata for registration done by sponsor\n * @summary consultantsMetadata\n */\nexport var getConsultantsMetadata = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/consultantsMetadata\", method: 'get', headers: headers }, options);\n};\nexport var getGetConsultantsMetadataKey = function () { return [\"/consultantsMetadata\"]; };\n/**\n * @summary consultantsMetadata\n */\nexport var useGetConsultantsMetadata = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetConsultantsMetadataKey() : null); });\n var swrFn = function () {\n return getConsultantsMetadata(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns customer's registration info\n * @summary customers/{customerId}/registrationInfo\n */\nexport var getCustomerRegistrationInfo = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/registrationInfo\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationInfoKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/registrationInfo\")];\n};\n/**\n * @summary customers/{customerId}/registrationInfo\n */\nexport var useGetCustomerRegistrationInfo = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationInfoKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerRegistrationInfo(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about registration order for given customer\n * @summary customers/{customerId}/registrationOrder\n */\nexport var getCustomerRegistrationOrder = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/registrationOrder\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationOrderKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/registrationOrder\")];\n};\n/**\n * @summary customers/{customerId}/registrationOrder\n */\nexport var useGetCustomerRegistrationOrder = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationOrderKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerRegistrationOrder(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates order returns its ID\n * @summary customers/{customerId}/registrationOrder\n */\nexport var createCustomerRegistrationOrder = function (client, customerId, globalCustomersRegistrationOrderDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/registrationOrder\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersRegistrationOrderDto,\n }, options);\n};\n/**\n * GET: Returns information about registration with given ID\n * @summary customerRegistrations/{registrationId}\n */\nexport var getCustomerRegistration = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customerRegistrations/\".concat(registrationId), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationKey = function (registrationId) {\n return [\"/customerRegistrations/\".concat(registrationId)];\n};\n/**\n * @summary customerRegistrations/{registrationId}\n */\nexport var useGetCustomerRegistration = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationKey(registrationId) : null); });\n var swrFn = function () {\n return getCustomerRegistration(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Updates a registration\n * @summary customerRegistrations/{registrationId}\n */\nexport var updateCustomerRegistration = function (client, registrationId, globalCustomerRegistrationsRegistrationDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations/\".concat(registrationId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomerRegistrationsRegistrationDtoBody,\n }, options);\n};\n/**\n * GET: Returns information about registration with given customer ID\n * @summary customerRegistrations/customers/{customerId}\n */\nexport var getCustomerRegistrationsCustomer = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customerRegistrations/customers/\".concat(customerId), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationsCustomerKey = function (customerId) {\n return [\"/customerRegistrations/customers/\".concat(customerId)];\n};\n/**\n * @summary customerRegistrations/customers/{customerId}\n */\nexport var useGetCustomerRegistrationsCustomer = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationsCustomerKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerRegistrationsCustomer(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates a registration and returns its ID\n * @summary customerRegistrations\n */\nexport var createCustomerRegistration = function (client, globalCustomerRegistrationsRegistrationDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomerRegistrationsRegistrationDtoBody,\n }, options);\n};\n/**\n * GET - Provides related product codes and relation types.\n * @summary products/{productCode}/relations\n */\nexport var getProductRelations = function (client, productCode, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/products/\".concat(productCode, \"/relations\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetProductRelationsKey = function (productCode, params) { return __spreadArray([\"/products/\".concat(productCode, \"/relations\")], (params ? [params] : []), true); };\n/**\n * @summary products/{productCode}/relations\n */\nexport var useGetProductRelations = function (productCode, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!productCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductRelationsKey(productCode, params) : null); });\n var swrFn = function () {\n return getProductRelations(customInstance, productCode, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns terms info and html content\n * @summary requiredTerms\n */\nexport var getRequiredTerms = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/requiredTerms\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetRequiredTermsKey = function (params) {\n return __spreadArray([\"/requiredTerms\"], (params ? [params] : []), true);\n};\n/**\n * @summary requiredTerms\n */\nexport var useGetRequiredTerms = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetRequiredTermsKey(params) : null); });\n var swrFn = function () {\n return getRequiredTerms(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Creates new revolut account bound to provided IBAN\n * @summary revolutProfiles\n */\nexport var createRevolutProfile = function (client, globalFinanceRevolutProfileDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/revolutProfiles\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalFinanceRevolutProfileDto,\n }, options);\n};\n/**\n * GET: Get shopping bag sales\n * @summary shoppingSessions/{sessionId}/sales\n */\nexport var getShoppingSessionSales = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/sales\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionSalesKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/sales\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/sales\n */\nexport var useGetShoppingSessionSales = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSalesKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSales(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * @summary salesmanagoClientData\n */\nexport var getSalesmanagoClientData = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/salesmanagoClientData\", method: 'get', headers: headers }, options);\n};\nexport var getGetSalesmanagoClientDataKey = function () { return [\"/salesmanagoClientData\"]; };\n/**\n * @summary salesmanagoClientData\n */\nexport var useGetSalesmanagoClientData = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetSalesmanagoClientDataKey() : null); });\n var swrFn = function () {\n return getSalesmanagoClientData(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get evaluated section items\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/sectionItems\n */\nexport var getShoppingSessionSectionSectionItems = function (client, sessionId, sectionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/sectionItems\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSectionSectionItemsKey = function (sessionId, sectionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/sectionItems\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/sectionItems\n */\nexport var useGetShoppingSessionSectionSectionItems = function (sessionId, sectionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && sectionId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSectionSectionItemsKey(sessionId, sectionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSectionSectionItems(customInstance, sessionId, sectionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get list of shopping sections evaluated for current shopping bag\n * @summary shoppingSessions/{sessionId}/sections\n */\nexport var getShoppingSessionSections = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/sections\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionSectionsKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/sections\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/sections\n */\nexport var useGetShoppingSessionSections = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSectionsKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSections(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provide suggested product codes (max. 10 results is provided)\n * @summary shoppingSessions/{sessionId}/sectionSuggestions\n */\nexport var getShoppingSessionSectionSuggestions = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/sectionSuggestions\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionSectionSuggestionsKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/sectionSuggestions\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/sectionSuggestions\n */\nexport var useGetShoppingSessionSectionSuggestions = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSectionSuggestionsKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionSectionSuggestions(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get product wish-list of the section\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/wishlist\n */\nexport var getShoppingSessionSectionWishlistItems = function (client, sessionId, sectionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/wishlist\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSectionWishlistItemsKey = function (sessionId, sectionId) { return [\"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/wishlist\")]; };\n/**\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/wishlist\n */\nexport var useGetShoppingSessionSectionWishlistItems = function (sessionId, sectionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && sectionId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSectionWishlistItemsKey(sessionId, sectionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSectionWishlistItems(customInstance, sessionId, sectionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Remove all products from section wish-list\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/wishlist\n */\nexport var deleteShoppingSessionSectionWishlistItems = function (client, sessionId, sectionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/wishlist\"),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * POST: Add product to section wish-list\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/wishlist\n */\nexport var createShoppingSessionSectionWishlist = function (client, sessionId, sectionId, globalShoppingSectionWishlistItemDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/wishlist\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingSectionWishlistItemDtoBody,\n }, options);\n};\n/**\n * GET: Get wish-list item by product code\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/wishlist/{itemCode}\n */\nexport var getShoppingSessionSectionWishlist = function (client, sessionId, sectionId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/wishlist/\").concat(itemCode),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSectionWishlistKey = function (sessionId, sectionId, itemCode) { return [\"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/wishlist/\").concat(itemCode)]; };\n/**\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/wishlist/{itemCode}\n */\nexport var useGetShoppingSessionSectionWishlist = function (sessionId, sectionId, itemCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && sectionId && itemCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetShoppingSessionSectionWishlistKey(sessionId, sectionId, itemCode) : null;\n });\n var swrFn = function () {\n return getShoppingSessionSectionWishlist(customInstance, sessionId, sectionId, itemCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Update product quantity in section wish-list\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/wishlist/{itemCode}\n */\nexport var updateShoppingSessionSectionWishlist = function (client, sessionId, sectionId, itemCode, globalShoppingSectionWishlistItemDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/wishlist/\").concat(itemCode),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingSectionWishlistItemDtoBody,\n }, options);\n};\n/**\n * DELETE: Remove product from section wish-list\n * @summary shoppingSessions/{sessionId}/sections/{sectionId}/wishlist/{itemCode}\n */\nexport var deleteShoppingSessionSectionWishlist = function (client, sessionId, sectionId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/sections/\").concat(sectionId, \"/wishlist/\").concat(itemCode),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Get Network Communications configurations\n * @summary applications/networkCommunication/configuration\n */\nexport var getApplicationsNetworkCommunicationConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/networkCommunication/configuration\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsNetworkCommunicationConfigurationKey = function () {\n return [\"/applications/networkCommunication/configuration\"];\n};\n/**\n * @summary applications/networkCommunication/configuration\n */\nexport var useGetApplicationsNetworkCommunicationConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsNetworkCommunicationConfigurationKey() : null); });\n var swrFn = function () {\n return getApplicationsNetworkCommunicationConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get Network Communications localization\n * @summary applications/networkCommunication/localization\n */\nexport var getApplicationsNetworkCommunicationLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/networkCommunication/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsNetworkCommunicationLocalizationKey = function () {\n return [\"/applications/networkCommunication/localization\"];\n};\n/**\n * @summary applications/networkCommunication/localization\n */\nexport var useGetApplicationsNetworkCommunicationLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsNetworkCommunicationLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsNetworkCommunicationLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get selected free shipping product\n * @summary shoppingSessions/{sessionId}/shippingJokerChoice\n */\nexport var getShoppingSessionShippingJokerChoice = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/shippingJokerChoice\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionShippingJokerChoiceKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/shippingJokerChoice\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/shippingJokerChoice\n */\nexport var useGetShoppingSessionShippingJokerChoice = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionShippingJokerChoiceKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionShippingJokerChoice(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Reset free shipping selection\n * @summary shoppingSessions/{sessionId}/shippingJokerChoice\n */\nexport var deleteShoppingSessionShippingJokerChoice = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/shippingJokerChoice\"), method: 'delete', headers: headers }, options);\n};\n/**\n * POST: Apply free shipping product\n * @summary shoppingSessions/{sessionId}/shippingJokerChoice\n */\nexport var createShoppingSessionShippingJokerChoice = function (client, sessionId, globalShoppingShippingChoiceDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shippingJokerChoice\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingShippingChoiceDto,\n }, options);\n};\n/**\n * GET: Get selected free shipping products\n * @summary shoppingSessions/{sessionId}/shippingJokerChoices\n */\nexport var getShoppingSessionShippingJokerChoices = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/shippingJokerChoices\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionShippingJokerChoicesKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/shippingJokerChoices\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/shippingJokerChoices\n */\nexport var useGetShoppingSessionShippingJokerChoices = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionShippingJokerChoicesKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionShippingJokerChoices(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Reset free shipping selection\n * @summary shoppingSessions/{sessionId}/shippingJokerChoices\n */\nexport var deleteShoppingSessionShippingJokerChoices = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/shippingJokerChoices\"), method: 'delete', headers: headers }, options);\n};\n/**\n * PUT: Apply free shipping products\n * @summary shoppingSessions/{sessionId}/shippingJokerChoices\n */\nexport var updateShoppingSessionShippingJokerChoices = function (client, sessionId, globalShoppingShippingChoicesDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shippingJokerChoices\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingShippingChoicesDto,\n }, options);\n};\n/**\n * GET: Provides free shipping offers for selected or alternative delivery channel\n * @summary shoppingSessions/{sessionId}/shippingJokers\n */\nexport var getShoppingSessionShippingJokers = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/shippingJokers\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionShippingJokersKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/shippingJokers\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/shippingJokers\n */\nexport var useGetShoppingSessionShippingJokers = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionShippingJokersKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionShippingJokers(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Saves the shopping bag.\n * @summary shoppingSessions/{sessionId}/shoppingBag\n */\nexport var createShoppingSessionShoppingBag = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag\"), method: 'post', headers: headers }, options);\n};\n/**\n * DELETE: Clears a shopping bag (added products, selected offers and all other user inputs).\n * @summary shoppingSessions/{sessionId}/shoppingBag\n */\nexport var deleteShoppingSessionShoppingBag = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag\"), method: 'delete', headers: headers }, options);\n};\n/**\n * GET: Get list of aggregated shopping bag items.\n * @summary shoppingSessions/{sessionId}/shoppingBag/aggregatedItems\n */\nexport var getShoppingSessionShoppingBagAggregatedItems = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/aggregatedItems\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionShoppingBagAggregatedItemsKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/aggregatedItems\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/shoppingBag/aggregatedItems\n */\nexport var useGetShoppingSessionShoppingBagAggregatedItems = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionShoppingBagAggregatedItemsKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionShoppingBagAggregatedItems(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Update quantity of a shopping bag item.\n * @summary shoppingSessions/{sessionId}/shoppingBag/bagItems/{bagItemId}\n */\nexport var updateShoppingSessionShoppingBagBagItem = function (client, sessionId, bagItemId, globalShoppingShoppingBagItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems/\").concat(bagItemId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingShoppingBagItemDto,\n }, options);\n};\n/**\n * DELETE: Remove a shopping bag item.\n * @summary shoppingSessions/{sessionId}/shoppingBag/bagItems/{bagItemId}\n */\nexport var deleteShoppingSessionShoppingBagBagItem = function (client, sessionId, bagItemId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems/\").concat(bagItemId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Provide status of back-order demand.\n * @summary shoppingSessions/{sessionId}/shoppingBag/bagItems/{bagItemId}/backorder\n */\nexport var getShoppingSessionShoppingBagBagItemBackorder = function (client, sessionId, bagItemId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems/\").concat(bagItemId, \"/backorder\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionShoppingBagBagItemBackorderKey = function (sessionId, bagItemId) { return [\"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems/\").concat(bagItemId, \"/backorder\")]; };\n/**\n * @summary shoppingSessions/{sessionId}/shoppingBag/bagItems/{bagItemId}/backorder\n */\nexport var useGetShoppingSessionShoppingBagBagItemBackorder = function (sessionId, bagItemId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && bagItemId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetShoppingSessionShoppingBagBagItemBackorderKey(sessionId, bagItemId) : null;\n });\n var swrFn = function () {\n return getShoppingSessionShoppingBagBagItemBackorder(customInstance, sessionId, bagItemId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Request to be out-of-stock product back-ordered.\n * @summary shoppingSessions/{sessionId}/shoppingBag/bagItems/{bagItemId}/backorder\n */\nexport var createShoppingSessionShoppingBagBagItemBackorder = function (client, sessionId, bagItemId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems/\").concat(bagItemId, \"/backorder\"),\n method: 'post',\n headers: headers,\n }, options);\n};\n/**\n * DELETE: Recall back-order demand.\n * @summary shoppingSessions/{sessionId}/shoppingBag/bagItems/{bagItemId}/backorder\n */\nexport var deleteShoppingSessionShoppingBagBagItemBackorder = function (client, sessionId, bagItemId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems/\").concat(bagItemId, \"/backorder\"),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Provide pending (not available) back-orders.\n * @summary shoppingSessions/{sessionId}/pendingBackorders\n */\nexport var getShoppingSessionPendingBackorders = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/pendingBackorders\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionPendingBackordersKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/pendingBackorders\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/pendingBackorders\n */\nexport var useGetShoppingSessionPendingBackorders = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionPendingBackordersKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionPendingBackorders(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Adds a new item to the shopping bag.\n * @summary shoppingSessions/{sessionId}/shoppingBag/bagItems\n */\nexport var createShoppingSessionShoppingBagBagItem = function (client, sessionId, globalShoppingShoppingBagItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingShoppingBagItemDto,\n }, options);\n};\n/**\n * PUT: Update shopping bag items (remove all current items and add specified items)\n * @summary shoppingSessions/{sessionId}/shoppingBag/bagItems\n */\nexport var updateShoppingSessionShoppingBagBagItems = function (client, sessionId, globalShoppingShoppingBagItemDtoArrayBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingShoppingBagItemDtoArrayBody,\n }, options);\n};\n/**\n * PUT: Update shopping bag items (remove all current items and add specified items)\nReturns object with current shopping bag items and summary\n * @summary applications/wechatpbs/shoppingSessions/{sessionId}/shoppingBag/bagItems\n */\nexport var updateApplicationsWechatpbsShoppingSessionShoppingBagBagItems = function (client, sessionId, globalShoppingShoppingBagItemDtoArrayBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/wechatpbs/shoppingSessions/\".concat(sessionId, \"/shoppingBag/bagItems\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingShoppingBagItemDtoArrayBody,\n }, options);\n};\n/**\n * GET: Provides campaign points balance\n * @summary shoppingSessions/{sessionId}/campaigns/{campaignId}/points\n */\nexport var getShoppingSessionCampaignPoints = function (client, sessionId, campaignId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/campaigns/\").concat(campaignId, \"/points\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionCampaignPointsKey = function (sessionId, campaignId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/campaigns/\").concat(campaignId, \"/points\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/campaigns/{campaignId}/points\n */\nexport var useGetShoppingSessionCampaignPoints = function (sessionId, campaignId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && campaignId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionCampaignPointsKey(sessionId, campaignId) : null); });\n var swrFn = function () {\n return getShoppingSessionCampaignPoints(customInstance, sessionId, campaignId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get approved end-consumer orders\n * @summary shoppingSessions/{sessionId}/endConsumerOrders\n */\nexport var getShoppingSessionEndConsumerOrders = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/endConsumerOrders\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionEndConsumerOrdersKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/endConsumerOrders\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/endConsumerOrders\n */\nexport var useGetShoppingSessionEndConsumerOrders = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionEndConsumerOrdersKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionEndConsumerOrders(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Unapproved end-consumer order to prevent dropping to consultant's basket\n * @summary shoppingSessions/{sessionId}/endConsumerOrders/{endConsumerOrderId}\n */\nexport var deleteShoppingSessionEndConsumerOrder = function (client, sessionId, endConsumerOrderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/endConsumerOrders/\").concat(endConsumerOrderId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Get items of end-consumer order\n * @summary shoppingSessions/{sessionId}/endConsumerOrders/{endConsumerOrderId}/items\n */\nexport var getShoppingSessionEndConsumerOrderItems = function (client, sessionId, endConsumerOrderId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/endConsumerOrders/\").concat(endConsumerOrderId, \"/items\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionEndConsumerOrderItemsKey = function (sessionId, endConsumerOrderId) { return [\"/shoppingSessions/\".concat(sessionId, \"/endConsumerOrders/\").concat(endConsumerOrderId, \"/items\")]; };\n/**\n * @summary shoppingSessions/{sessionId}/endConsumerOrders/{endConsumerOrderId}/items\n */\nexport var useGetShoppingSessionEndConsumerOrderItems = function (sessionId, endConsumerOrderId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && endConsumerOrderId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetShoppingSessionEndConsumerOrderItemsKey(sessionId, endConsumerOrderId)\n : null;\n });\n var swrFn = function () {\n return getShoppingSessionEndConsumerOrderItems(customInstance, sessionId, endConsumerOrderId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Modify number of purchased products in the end-consumer's order\n * @summary shoppingSessions/{sessionId}/endConsumerOrders/{endConsumerOrderId}/items/{itemCode}\n */\nexport var updateShoppingSessionEndConsumerOrderItem = function (client, sessionId, endConsumerOrderId, itemCode, globalShoppingEndConsumerOrderItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/endConsumerOrders/\").concat(endConsumerOrderId, \"/items/\").concat(itemCode),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingEndConsumerOrderItemDto,\n }, options);\n};\n/**\n * DELETE: Delete product from end-consumer's order\n * @summary shoppingSessions/{sessionId}/endConsumerOrders/{endConsumerOrderId}/items/{itemCode}\n */\nexport var deleteShoppingSessionEndConsumerOrderItem = function (client, sessionId, endConsumerOrderId, itemCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/endConsumerOrders/\").concat(endConsumerOrderId, \"/items/\").concat(itemCode),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Get list of shopping messages evaluated for current shopping bag\n * @summary shoppingSessions/{sessionId}/messages\n */\nexport var getShoppingSessionMessages = function (client, sessionId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/messages\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetShoppingSessionMessagesKey = function (sessionId, params) { return __spreadArray([\"/shoppingSessions/\".concat(sessionId, \"/messages\")], (params ? [params] : []), true); };\n/**\n * @summary shoppingSessions/{sessionId}/messages\n */\nexport var useGetShoppingSessionMessages = function (sessionId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionMessagesKey(sessionId, params) : null); });\n var swrFn = function () {\n return getShoppingSessionMessages(customInstance, sessionId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Starts new shopping session. Session expires after defined time of inactivity.\n * @summary shoppingSessions\n */\nexport var createShoppingSession = function (client, globalShoppingShoppingDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingShoppingDto,\n }, options);\n};\n/**\n * GET: Gets shopping session data. Also refreshes the session, so it will not expire.\n * @summary shoppingSessions/{sessionId}\n */\nexport var getShoppingSession = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId)];\n};\n/**\n * @summary shoppingSessions/{sessionId}\n */\nexport var useGetShoppingSession = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSession(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Delete shopping session from Redis.\n * @summary shoppingSessions/{sessionId}\n */\nexport var deleteShoppingSession = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId), method: 'delete', headers: headers }, options);\n};\n/**\n * Creates the visit to social media entity.\n * @summary applications/socialMediaLibrary/customers/{customerId}/socialEntities/{entityId}/visit\n */\nexport var createApplicationsSocialMediaLibraryCustomerSocialEntityVisit = function (client, customerId, entityId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/socialMediaLibrary/customers/\".concat(customerId, \"/socialEntities/\").concat(entityId, \"/visit\"),\n method: 'post',\n headers: headers,\n }, options);\n};\n/**\n * Creates like of social media entity.\n * @summary applications/socialMediaLibrary/customers/{customerId}/socialEntities/{entityId}/like\n */\nexport var createApplicationsSocialMediaLibraryCustomerSocialEntityLike = function (client, customerId, entityId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/socialMediaLibrary/customers/\".concat(customerId, \"/socialEntities/\").concat(entityId, \"/like\"),\n method: 'post',\n headers: headers,\n }, options);\n};\n/**\n * Delete like of social media entity.\n * @summary applications/socialMediaLibrary/customers/{customerId}/socialEntities/{entityId}/like\n */\nexport var deleteApplicationsSocialMediaLibraryCustomerSocialEntityLike = function (client, customerId, entityId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/socialMediaLibrary/customers/\".concat(customerId, \"/socialEntities/\").concat(entityId, \"/like\"),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Gets all liked social entities of specified customer.\n * @summary applications/socialMediaLibrary/customers/{customerId}/SocialEntityLikes\n */\nexport var getApplicationsSocialMediaLibraryCustomerSocialEntityLikes = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/socialMediaLibrary/customers/\".concat(customerId, \"/SocialEntityLikes\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetApplicationsSocialMediaLibraryCustomerSocialEntityLikesKey = function (customerId) { return [\"/applications/socialMediaLibrary/customers/\".concat(customerId, \"/SocialEntityLikes\")]; };\n/**\n * @summary applications/socialMediaLibrary/customers/{customerId}/SocialEntityLikes\n */\nexport var useGetApplicationsSocialMediaLibraryCustomerSocialEntityLikes = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetApplicationsSocialMediaLibraryCustomerSocialEntityLikesKey(customerId)\n : null;\n });\n var swrFn = function () {\n return getApplicationsSocialMediaLibraryCustomerSocialEntityLikes(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the social entities statistics.\n * @summary applications/socialMediaLibrary/stats\n */\nexport var getApplicationsSocialMediaLibraryStats = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/socialMediaLibrary/stats\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetApplicationsSocialMediaLibraryStatsKey = function (params) { return __spreadArray([\"/applications/socialMediaLibrary/stats\"], (params ? [params] : []), true); };\n/**\n * @summary applications/socialMediaLibrary/stats\n */\nexport var useGetApplicationsSocialMediaLibraryStats = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSocialMediaLibraryStatsKey(params) : null); });\n var swrFn = function () {\n return getApplicationsSocialMediaLibraryStats(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get special offer evaluated by for current shopping bag\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}\n */\nexport var getShoppingSessionSpecialOffer = function (client, sessionId, offerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionSpecialOfferKey = function (sessionId, offerId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId)];\n};\n/**\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}\n */\nexport var useGetShoppingSessionSpecialOffer = function (sessionId, offerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && offerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSpecialOfferKey(sessionId, offerId) : null); });\n var swrFn = function () {\n return getShoppingSessionSpecialOffer(customInstance, sessionId, offerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get offer choice preferences selected by customer\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/choice\n */\nexport var getShoppingSessionSpecialOfferChoice = function (client, sessionId, offerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/choice\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSpecialOfferChoiceKey = function (sessionId, offerId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/choice\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/choice\n */\nexport var useGetShoppingSessionSpecialOfferChoice = function (sessionId, offerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && offerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSpecialOfferChoiceKey(sessionId, offerId) : null); });\n var swrFn = function () {\n return getShoppingSessionSpecialOfferChoice(customInstance, sessionId, offerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Select offer, backorder or replacement\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/choice\n */\nexport var updateShoppingSessionSpecialOfferChoice = function (client, sessionId, offerId, globalShoppingSpecialOfferChoiceDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/choice\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingSpecialOfferChoiceDto,\n }, options);\n};\n/**\n * DELETE: Reset offer choice selection\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/choice\n */\nexport var deleteShoppingSessionSpecialOfferChoice = function (client, sessionId, offerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/choice\"),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Get alternative products for a special offer\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/replacements\n */\nexport var getShoppingSessionSpecialOfferReplacements = function (client, sessionId, offerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/replacements\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSpecialOfferReplacementsKey = function (sessionId, offerId) { return [\"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/replacements\")]; };\n/**\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/replacements\n */\nexport var useGetShoppingSessionSpecialOfferReplacements = function (sessionId, offerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && offerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetShoppingSessionSpecialOfferReplacementsKey(sessionId, offerId) : null;\n });\n var swrFn = function () {\n return getShoppingSessionSpecialOfferReplacements(customInstance, sessionId, offerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get list of special offers evaluated for current shopping bag\n * @summary shoppingSessions/{sessionId}/specialOffers\n */\nexport var getShoppingSessionSpecialOffers = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionSpecialOffersKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/specialOffers\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/specialOffers\n */\nexport var useGetShoppingSessionSpecialOffers = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSpecialOffersKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSpecialOffers(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get offer voucher data and voucher items selected by customer\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/voucher\n */\nexport var getShoppingSessionSpecialOfferVoucher = function (client, sessionId, offerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/voucher\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSpecialOfferVoucherKey = function (sessionId, offerId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/voucher\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/voucher\n */\nexport var useGetShoppingSessionSpecialOfferVoucher = function (sessionId, offerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && offerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSpecialOfferVoucherKey(sessionId, offerId) : null); });\n var swrFn = function () {\n return getShoppingSessionSpecialOfferVoucher(customInstance, sessionId, offerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * POST: Add offer voucher choice selected by customer\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/voucher/choices\n */\nexport var createShoppingSessionSpecialOfferVoucherChoice = function (client, sessionId, offerId, globalShoppingSpecialOfferVoucherChoiceDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/voucher/choices\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingSpecialOfferVoucherChoiceDto,\n }, options);\n};\n/**\n * DELETE: Remove offer voucher choice selected by customer\n * @summary shoppingSessions/{sessionId}/specialOffers/{offerId}/voucher/choices/{choiceId}\n */\nexport var deleteShoppingSessionSpecialOfferVoucherChoice = function (client, sessionId, offerId, choiceId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/specialOffers/\").concat(offerId, \"/voucher/choices/\").concat(choiceId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Returns sponsor information of registration with given ID\n * @summary customerRegistrations/{registrationId}/sponsorDetails\n */\nexport var getCustomerRegistrationSponsorDetails = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customerRegistrations/\".concat(registrationId, \"/sponsorDetails\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerRegistrationSponsorDetailsKey = function (registrationId) {\n return [\"/customerRegistrations/\".concat(registrationId, \"/sponsorDetails\")];\n};\n/**\n * @summary customerRegistrations/{registrationId}/sponsorDetails\n */\nexport var useGetCustomerRegistrationSponsorDetails = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerRegistrationSponsorDetailsKey(registrationId) : null); });\n var swrFn = function () {\n return getCustomerRegistrationSponsorDetails(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Modifies sponsor information of registration with given ID\n * @summary customerRegistrations/{registrationId}/sponsorDetails\n */\nexport var updateCustomerRegistrationSponsorDetails = function (client, registrationId, globalCustomerRegistrationsRegistrationSponsorDetailsDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations/\".concat(registrationId, \"/sponsorDetails\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomerRegistrationsRegistrationSponsorDetailsDto,\n }, options);\n};\n/**\n * GET: Returns information about the sponsor selected in the simplified registration process\n * @summary customerRegistrations/{registrationId}/sponsorDetails/sponsorInfo\n */\nexport var getCustomerRegistrationSponsorDetailsSponsorInfo = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations/\".concat(registrationId, \"/sponsorDetails/sponsorInfo\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerRegistrationSponsorDetailsSponsorInfoKey = function (registrationId) {\n return [\"/customerRegistrations/\".concat(registrationId, \"/sponsorDetails/sponsorInfo\")];\n};\n/**\n * @summary customerRegistrations/{registrationId}/sponsorDetails/sponsorInfo\n */\nexport var useGetCustomerRegistrationSponsorDetailsSponsorInfo = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCustomerRegistrationSponsorDetailsSponsorInfoKey(registrationId) : null;\n });\n var swrFn = function () {\n return getCustomerRegistrationSponsorDetailsSponsorInfo(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns profile image of selected sponsor\n * @summary customerRegistrations/{registrationId}/sponsorDetails/profileImage\n */\nexport var getCustomerRegistrationSponsorDetailsProfileImage = function (client, registrationId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customerRegistrations/\".concat(registrationId, \"/sponsorDetails/profileImage\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetCustomerRegistrationSponsorDetailsProfileImageKey = function (registrationId) {\n return [\"/customerRegistrations/\".concat(registrationId, \"/sponsorDetails/profileImage\")];\n};\n/**\n * @summary customerRegistrations/{registrationId}/sponsorDetails/profileImage\n */\nexport var useGetCustomerRegistrationSponsorDetailsProfileImage = function (registrationId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!registrationId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCustomerRegistrationSponsorDetailsProfileImageKey(registrationId) : null;\n });\n var swrFn = function () {\n return getCustomerRegistrationSponsorDetailsProfileImage(customInstance, registrationId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about all sponsors for customer\n * @summary customers/{customerId}/sponsors\n */\nexport var getCustomerSponsors = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/sponsors\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerSponsorsKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/sponsors\")];\n};\n/**\n * @summary customers/{customerId}/sponsors\n */\nexport var useGetCustomerSponsors = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerSponsorsKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerSponsors(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides steps to success tasks of specific customer\n * @summary customers/{customerId}/stepsToSuccess\n */\nexport var getCustomerStepsToSuccessTasks = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/stepsToSuccess\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerStepsToSuccessTasksKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/stepsToSuccess\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/stepsToSuccess\n */\nexport var useGetCustomerStepsToSuccessTasks = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerStepsToSuccessTasksKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerStepsToSuccessTasks(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides steps to success tasks phases of specific customer\n * @summary customers/{customerId}/stepsToSuccessPhases\n */\nexport var getCustomerStepsToSuccessTasksPhases = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/stepsToSuccessPhases\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerStepsToSuccessTasksPhasesKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/stepsToSuccessPhases\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/stepsToSuccessPhases\n */\nexport var useGetCustomerStepsToSuccessTasksPhases = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerStepsToSuccessTasksPhasesKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerStepsToSuccessTasksPhases(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets specific steps to success task of specific customer by id\n * @summary customers/{customerId}/stepsToSuccess/{taskId}\n */\nexport var getCustomerStepsToSuccessTask = function (client, customerId, taskId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/stepsToSuccess/\").concat(taskId), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerStepsToSuccessTaskKey = function (customerId, taskId) {\n return [\"/customers/\".concat(customerId, \"/stepsToSuccess/\").concat(taskId)];\n};\n/**\n * @summary customers/{customerId}/stepsToSuccess/{taskId}\n */\nexport var useGetCustomerStepsToSuccessTask = function (customerId, taskId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && taskId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerStepsToSuccessTaskKey(customerId, taskId) : null); });\n var swrFn = function () {\n return getCustomerStepsToSuccessTask(customInstance, customerId, taskId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Completes task for specific customer\n * @summary customers/{customerId}/stepsToSuccess/{taskId}/complete\n */\nexport var createCustomerStepsToSuccessComplete = function (client, customerId, taskId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/stepsToSuccess/\").concat(taskId, \"/complete\"), method: 'post', headers: headers }, options);\n};\n/**\n * Get subscription configuration\n * @summary customers/{customerId}/subscriptionConfiguration\n */\nexport var getCustomerSubscriptionConfiguration = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/subscriptionConfiguration\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerSubscriptionConfigurationKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/subscriptionConfiguration\")];\n};\n/**\n * @summary customers/{customerId}/subscriptionConfiguration\n */\nexport var useGetCustomerSubscriptionConfiguration = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerSubscriptionConfigurationKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerSubscriptionConfiguration(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get subscription availability per specified product/item\n * @summary customers/{customerId}/subscriptionAvailabilities\n */\nexport var getCustomerSubscriptionAvailabilities = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/subscriptionAvailabilities\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerSubscriptionAvailabilitiesKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/subscriptionAvailabilities\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/subscriptionAvailabilities\n */\nexport var useGetCustomerSubscriptionAvailabilities = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerSubscriptionAvailabilitiesKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerSubscriptionAvailabilities(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get subscription types.\nOptionally filtered by product contained in subscription.\n * @summary customers/{customerId}/subscriptionTypes\n */\nexport var getCustomerSubscriptionTypes = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/subscriptionTypes\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerSubscriptionTypesKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/subscriptionTypes\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/subscriptionTypes\n */\nexport var useGetCustomerSubscriptionTypes = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerSubscriptionTypesKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerSubscriptionTypes(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Post subscription instruction.\nDepends on instruction status (Pending/Finished) provides only validation or also creates new subscription if Finished\n * @summary customers/{customerId}/subscriptionInstructions\n */\nexport var createCustomerSubscriptionInstruction = function (client, customerId, globalCustomersSubscriptionInstructionDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/subscriptionInstructions\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersSubscriptionInstructionDto,\n }, options);\n};\n/**\n * Get subscriptions for specified period.\n * @summary customers/{customerId}/subscriptions\n */\nexport var getCustomerSubscriptions = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/subscriptions\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerSubscriptionsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/subscriptions\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/subscriptions\n */\nexport var useGetCustomerSubscriptions = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerSubscriptionsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerSubscriptions(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Cancels an active subscription.\n * @summary customers/{customerId}/subscriptions/{subscriptionId}\n */\nexport var deleteCustomerSubscription = function (client, customerId, subscriptionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/subscriptions/\").concat(subscriptionId), method: 'delete', headers: headers }, options);\n};\n/**\n * Updates a subscription.\nCurrently the only legal modification is changing the status from 'Canceled' to 'Reactivated'.\nNo other modifications are supported at this time.\n * @summary customers/{customerId}/subscriptions/{subscriptionId}\n */\nexport var updateCustomerSubscription = function (client, customerId, subscriptionId, globalCustomersSubscriptionDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/subscriptions/\").concat(subscriptionId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersSubscriptionDto,\n }, options);\n};\n/**\n * Put subscription item. Currently the only supported change is replacing a subscribed product\nby a similar one using the ItemCode property, all other changes will be ignored.\n * @summary customers/{customerId}/subscriptions/{subscriptionId}/subscriptionItems/{subscriptionItemId}\n */\nexport var updateCustomerSubscriptionSubscriptionItem = function (client, customerId, subscriptionId, subscriptionItemId, globalCustomersSubscriptionItemDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/subscriptions/\").concat(subscriptionId, \"/subscriptionItems/\").concat(subscriptionItemId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersSubscriptionItemDto,\n }, options);\n};\n/**\n * Get all dropped subscriptions\n * @summary shoppingSessions/{sessionId}/subscriptions\n */\nexport var getShoppingSessionSubscriptions = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/subscriptions\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionSubscriptionsKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/subscriptions\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/subscriptions\n */\nexport var useGetShoppingSessionSubscriptions = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSubscriptionsKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSubscriptions(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get subscription by id\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}\n */\nexport var getShoppingSessionSubscription = function (client, sessionId, subscriptionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSubscriptionKey = function (sessionId, subscriptionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId)];\n};\n/**\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}\n */\nexport var useGetShoppingSessionSubscription = function (sessionId, subscriptionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && subscriptionId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSubscriptionKey(sessionId, subscriptionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSubscription(customInstance, sessionId, subscriptionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Cancel (delete) subscription\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}\n */\nexport var deleteShoppingSessionSubscription = function (client, sessionId, subscriptionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Get steps of the subscription dropped to the orders\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}/steps\n */\nexport var getShoppingSessionSubscriptionSteps = function (client, sessionId, subscriptionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId, \"/steps\"),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSubscriptionStepsKey = function (sessionId, subscriptionId) { return [\"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId, \"/steps\")]; };\n/**\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}/steps\n */\nexport var useGetShoppingSessionSubscriptionSteps = function (sessionId, subscriptionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && subscriptionId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetShoppingSessionSubscriptionStepsKey(sessionId, subscriptionId) : null;\n });\n var swrFn = function () {\n return getShoppingSessionSubscriptionSteps(customInstance, sessionId, subscriptionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get subscription step by the step number\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}/steps/{stepNumber}\n */\nexport var getShoppingSessionSubscriptionStep = function (client, sessionId, subscriptionId, stepNumber, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId, \"/steps/\").concat(stepNumber),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetShoppingSessionSubscriptionStepKey = function (sessionId, subscriptionId, stepNumber) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId, \"/steps/\").concat(stepNumber)];\n};\n/**\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}/steps/{stepNumber}\n */\nexport var useGetShoppingSessionSubscriptionStep = function (sessionId, subscriptionId, stepNumber, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && subscriptionId && stepNumber);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetShoppingSessionSubscriptionStepKey(sessionId, subscriptionId, stepNumber)\n : null;\n });\n var swrFn = function () {\n return getShoppingSessionSubscriptionStep(customInstance, sessionId, subscriptionId, stepNumber, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Postpone subscription to the next order\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}/steps/{stepNumber}\n */\nexport var deleteShoppingSessionSubscriptionStep = function (client, sessionId, subscriptionId, stepNumber, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId, \"/steps/\").concat(stepNumber),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Postpone subscription to the next order based on cycle and step\n * @summary shoppingSessions/{sessionId}/subscriptions/{subscriptionId}/cycles/{cycleNumber}/steps/{stepNumber}\n */\nexport var deleteShoppingSessionSubscriptionCycleStep = function (client, sessionId, subscriptionId, cycleNumber, stepNumber, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/subscriptions/\").concat(subscriptionId, \"/cycles/\").concat(cycleNumber, \"/steps/\").concat(stepNumber),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Localization for SubscriptionWizard application\n * @summary applications/subscriptionWizard/localization\n */\nexport var getApplicationsSubscriptionWizardLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/subscriptionWizard/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsSubscriptionWizardLocalizationKey = function () {\n return [\"/applications/subscriptionWizard/localization\"];\n};\n/**\n * @summary applications/subscriptionWizard/localization\n */\nexport var useGetApplicationsSubscriptionWizardLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSubscriptionWizardLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsSubscriptionWizardLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides customer downline (only IDs) in a given period. If the period is not specified, the current period is used.\n * @summary commissionPlans/successPlan/customers/{customerId}/downline/onlyId\n */\nexport var getCommissionPlansSuccessPlanCustomerDownlineOnlyId = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/commissionPlans/successPlan/customers/\".concat(customerId, \"/downline/onlyId\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCommissionPlansSuccessPlanCustomerDownlineOnlyIdKey = function (customerId, params) {\n return __spreadArray([\n \"/commissionPlans/successPlan/customers/\".concat(customerId, \"/downline/onlyId\")\n ], (params ? [params] : []), true);\n};\n/**\n * @summary commissionPlans/successPlan/customers/{customerId}/downline/onlyId\n */\nexport var useGetCommissionPlansSuccessPlanCustomerDownlineOnlyId = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetCommissionPlansSuccessPlanCustomerDownlineOnlyIdKey(customerId, params)\n : null;\n });\n var swrFn = function () {\n return getCommissionPlansSuccessPlanCustomerDownlineOnlyId(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides customer downline with basic overview of customers in a given period. If the period is not specified, the current period is used.\n * @summary commissionPlans/successPlan/customers/{customerId}/downlineBasicOverview\n */\nexport var getCommissionPlansSuccessPlanCustomerDownlineBasicOverview = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/commissionPlans/successPlan/customers/\".concat(customerId, \"/downlineBasicOverview\"),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCommissionPlansSuccessPlanCustomerDownlineBasicOverviewKey = function (customerId, params) {\n return __spreadArray([\n \"/commissionPlans/successPlan/customers/\".concat(customerId, \"/downlineBasicOverview\")\n ], (params ? [params] : []), true);\n};\n/**\n * @summary commissionPlans/successPlan/customers/{customerId}/downlineBasicOverview\n */\nexport var useGetCommissionPlansSuccessPlanCustomerDownlineBasicOverview = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetCommissionPlansSuccessPlanCustomerDownlineBasicOverviewKey(customerId, params)\n : null;\n });\n var swrFn = function () {\n return getCommissionPlansSuccessPlanCustomerDownlineBasicOverview(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides parameters about targets(conditions) to receive advanced (upper) bonuses\n * @summary commissionPlans/successPlan/advancedBonusesQualification\n */\nexport var getCommissionPlansSuccessPlanAdvancedBonusesQualification = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/commissionPlans/successPlan/advancedBonusesQualification\",\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCommissionPlansSuccessPlanAdvancedBonusesQualificationKey = function (params) {\n return __spreadArray([\n \"/commissionPlans/successPlan/advancedBonusesQualification\"\n ], (params ? [params] : []), true);\n};\n/**\n * @summary commissionPlans/successPlan/advancedBonusesQualification\n */\nexport var useGetCommissionPlansSuccessPlanAdvancedBonusesQualification = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled ? getGetCommissionPlansSuccessPlanAdvancedBonusesQualificationKey(params) : null;\n });\n var swrFn = function () {\n return getCommissionPlansSuccessPlanAdvancedBonusesQualification(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Provides parameters about targets(conditions) to receive performance discount bonus\n * @summary commissionPlans/successPlan/performanceDiscountQualification\n */\nexport var getCommissionPlansSuccessPlanPerformanceDiscountQualification = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/commissionPlans/successPlan/performanceDiscountQualification\",\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCommissionPlansSuccessPlanPerformanceDiscountQualificationKey = function (params) {\n return __spreadArray([\n \"/commissionPlans/successPlan/performanceDiscountQualification\"\n ], (params ? [params] : []), true);\n};\n/**\n * @summary commissionPlans/successPlan/performanceDiscountQualification\n */\nexport var useGetCommissionPlansSuccessPlanPerformanceDiscountQualification = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetCommissionPlansSuccessPlanPerformanceDiscountQualificationKey(params)\n : null;\n });\n var swrFn = function () {\n return getCommissionPlansSuccessPlanPerformanceDiscountQualification(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get shopping bag amounts summary\n * @summary shoppingSessions/{sessionId}/summary\n */\nexport var getShoppingSessionSummary = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/summary\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionSummaryKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/summary\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/summary\n */\nexport var useGetShoppingSessionSummary = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSummaryKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSummary(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get accounts balance before and after shopping\n * @summary shoppingSessions/{sessionId}/summary/accounts\n */\nexport var getShoppingSessionSummaryAccounts = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/summary/accounts\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionSummaryAccountsKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/summary/accounts\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/summary/accounts\n */\nexport var useGetShoppingSessionSummaryAccounts = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSummaryAccountsKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSummaryAccounts(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get discounts applied to reduce price of the order\n * @summary shoppingSessions/{sessionId}/summary/discounts\n */\nexport var getShoppingSessionSummaryDiscounts = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/summary/discounts\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionSummaryDiscountsKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/summary/discounts\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/summary/discounts\n */\nexport var useGetShoppingSessionSummaryDiscounts = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionSummaryDiscountsKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionSummaryDiscounts(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the categories.\n * @summary applications/supportCenter/categories\n */\nexport var getApplicationsSupportCenterCategories = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/supportCenter/categories\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsSupportCenterCategoriesKey = function () {\n return [\"/applications/supportCenter/categories\"];\n};\n/**\n * @summary applications/supportCenter/categories\n */\nexport var useGetApplicationsSupportCenterCategories = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSupportCenterCategoriesKey() : null); });\n var swrFn = function () {\n return getApplicationsSupportCenterCategories(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the category by its key.\n * @summary applications/supportCenter/categories/{categoryId}\n */\nexport var getApplicationsSupportCenterCategory = function (client, categoryId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/supportCenter/categories/\".concat(categoryId), method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsSupportCenterCategoryKey = function (categoryId) {\n return [\"/applications/supportCenter/categories/\".concat(categoryId)];\n};\n/**\n * @summary applications/supportCenter/categories/{categoryId}\n */\nexport var useGetApplicationsSupportCenterCategory = function (categoryId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!categoryId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSupportCenterCategoryKey(categoryId) : null); });\n var swrFn = function () {\n return getApplicationsSupportCenterCategory(customInstance, categoryId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets the localization.\n * @deprecated\n * @summary applications/supportCenter/localization\n */\nexport var getApplicationsSupportCenterLocalizationDeprecated = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/supportCenter/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsSupportCenterLocalizationDeprecatedKey = function () {\n return [\"/applications/supportCenter/localization\"];\n};\n/**\n * @deprecated\n * @summary applications/supportCenter/localization\n */\nexport var useGetApplicationsSupportCenterLocalizationDeprecated = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSupportCenterLocalizationDeprecatedKey() : null); });\n var swrFn = function () {\n return getApplicationsSupportCenterLocalizationDeprecated(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets all featured Faqs\n * @summary applications/supportCenter/featuredFaqs\n */\nexport var getApplicationsSupportCenterFeaturedFaqs = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/supportCenter/featuredFaqs\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsSupportCenterFeaturedFaqsKey = function () {\n return [\"/applications/supportCenter/featuredFaqs\"];\n};\n/**\n * @summary applications/supportCenter/featuredFaqs\n */\nexport var useGetApplicationsSupportCenterFeaturedFaqs = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSupportCenterFeaturedFaqsKey() : null); });\n var swrFn = function () {\n return getApplicationsSupportCenterFeaturedFaqs(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Gets search results\n * @summary applications/supportCenter/search\n */\nexport var getApplicationsSupportCenterSearch = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/supportCenter/search\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetApplicationsSupportCenterSearchKey = function (params) { return __spreadArray([\"/applications/supportCenter/search\"], (params ? [params] : []), true); };\n/**\n * @summary applications/supportCenter/search\n */\nexport var useGetApplicationsSupportCenterSearch = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsSupportCenterSearchKey(params) : null); });\n var swrFn = function () {\n return getApplicationsSupportCenterSearch(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Provides group tags along with belonging tags.\n * @summary products/tagGroups\n */\nexport var getProductsTagGroups = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/products/tagGroups\", method: 'get', headers: headers }, options);\n};\nexport var getGetProductsTagGroupsKey = function () { return [\"/products/tagGroups\"]; };\n/**\n * @summary products/tagGroups\n */\nexport var useGetProductsTagGroups = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetProductsTagGroupsKey() : null); });\n var swrFn = function () {\n return getProductsTagGroups(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Gets tax classification for given customer\n * @summary customers/{customerId}/taxClassifications\n */\nexport var getCustomerTaxClassifications = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/taxClassifications\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerTaxClassificationsKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/taxClassifications\")];\n};\n/**\n * @summary customers/{customerId}/taxClassifications\n */\nexport var useGetCustomerTaxClassifications = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerTaxClassificationsKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerTaxClassifications(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns documents for tax document\n * @summary customers/{customerId}/taxDocument\n */\nexport var getCustomerTaxDocument = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/taxDocument\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerTaxDocumentKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/taxDocument\")];\n};\n/**\n * @summary customers/{customerId}/taxDocument\n */\nexport var useGetCustomerTaxDocument = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerTaxDocumentKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerTaxDocument(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change documents for tax document (temporary document are submitted and will no longer be deleted)\n * @summary customers/{customerId}/taxDocument\n */\nexport var updateCustomerTaxDocument = function (client, customerId, globalCustomersTaxDocumentDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/taxDocument\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersTaxDocumentDto,\n }, options);\n};\n/**\n * GET: Returns information about customer termination\n * @summary customers/{customerId}/terminationStatus\n */\nexport var getCustomerTerminationStatus = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/terminationStatus\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerTerminationStatusKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/terminationStatus\")];\n};\n/**\n * @summary customers/{customerId}/terminationStatus\n */\nexport var useGetCustomerTerminationStatus = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerTerminationStatusKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerTerminationStatus(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Updates information about customer termination\n * @summary customers/{customerId}/terminationStatus\n */\nexport var updateCustomerTerminationStatus = function (client, customerId, globalCustomersTerminationStatusDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/terminationStatus\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersTerminationStatusDto,\n }, options);\n};\n/**\n * Returns terms info and html content\n * @deprecated\n * @summary terms/{termId}/html\n */\nexport var getTermHtmlDeprecated = function (client, termId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/terms/\".concat(termId, \"/html\"), method: 'get', headers: headers }, options);\n};\nexport var getGetTermHtmlDeprecatedKey = function (termId) { return [\"/terms/\".concat(termId, \"/html\")]; };\n/**\n * @deprecated\n * @summary terms/{termId}/html\n */\nexport var useGetTermHtmlDeprecated = function (termId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!termId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetTermHtmlDeprecatedKey(termId) : null); });\n var swrFn = function () {\n return getTermHtmlDeprecated(customInstance, termId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * @summary test/ping\n */\nexport var getTestPing = function (client, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/test/ping\", method: 'get' }, options);\n};\nexport var getGetTestPingKey = function () { return [\"/test/ping\"]; };\n/**\n * @summary test/ping\n */\nexport var useGetTestPing = function (options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetTestPingKey() : null); });\n var swrFn = function () { return getTestPing(customInstance, requestOptions).then(function (d) { return d.data; }); };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns data for customer upgrade\n * @summary customers/{customerId}/upgradeRequest\n */\nexport var getCustomerUpgradeRequest = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/upgradeRequest\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerUpgradeRequestKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/upgradeRequest\")];\n};\n/**\n * @summary customers/{customerId}/upgradeRequest\n */\nexport var useGetCustomerUpgradeRequest = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerUpgradeRequestKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerUpgradeRequest(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Upgrades VIP customer to consultant.\n * @summary customers/{customerId}/upgradeRequest\n */\nexport var updateCustomerUpgradeRequest = function (client, customerId, globalUpgradeRequestUpgradeRequestDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/upgradeRequest\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalUpgradeRequestUpgradeRequestDto,\n }, options);\n};\n/**\n * GET: Returns metadata for customer upgrade process\n * @summary customers/{customerId}/upgradeRequestMetadata\n */\nexport var getCustomerUpgradeRequestMetadata = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/upgradeRequestMetadata\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerUpgradeRequestMetadataKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/upgradeRequestMetadata\")];\n};\n/**\n * @summary customers/{customerId}/upgradeRequestMetadata\n */\nexport var useGetCustomerUpgradeRequestMetadata = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerUpgradeRequestMetadataKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerUpgradeRequestMetadata(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET setting for specified customerId and specified business tool Id.\n * @summary businessTools/{businessToolId}/customerSettings/{customerId}\n */\nexport var getBusinessToolCustomerSetting = function (client, businessToolId, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/businessTools/\".concat(businessToolId, \"/customerSettings/\").concat(customerId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetBusinessToolCustomerSettingKey = function (businessToolId, customerId) { return [\"/businessTools/\".concat(businessToolId, \"/customerSettings/\").concat(customerId)]; };\n/**\n * @summary businessTools/{businessToolId}/customerSettings/{customerId}\n */\nexport var useGetBusinessToolCustomerSetting = function (businessToolId, customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(businessToolId && customerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetBusinessToolCustomerSettingKey(businessToolId, customerId) : null); });\n var swrFn = function () {\n return getBusinessToolCustomerSetting(customInstance, businessToolId, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE setting for specified business tool / external tool.\n * @summary businessTools/{businessToolId}/customerSettings/{customerId}\n */\nexport var deleteBusinessToolCustomerSetting = function (client, businessToolId, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/businessTools/\".concat(businessToolId, \"/customerSettings/\").concat(customerId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * PUT setting for specified customerId and specified business tool Id, allow to store information if tool is activated for customer.\n * @summary businessTools/{businessToolId}/customerSettings/{customerId}\n */\nexport var updateBusinessToolCustomerSetting = function (client, businessToolId, customerId, globalConsultantsBusinessToolActivationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/businessTools/\".concat(businessToolId, \"/customerSettings/\").concat(customerId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConsultantsBusinessToolActivationDto,\n }, options);\n};\n/**\n * GET settings\n * @summary settingsClients/{settingsClient}/settings/{settingId}/customers/{customerId}\n */\nexport var getSettingsClientSettingCustomer = function (client, settingsClient, settingId, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/settingsClients/\".concat(settingsClient, \"/settings/\").concat(settingId, \"/customers/\").concat(customerId),\n method: 'get',\n headers: headers,\n }, options);\n};\nexport var getGetSettingsClientSettingCustomerKey = function (settingsClient, settingId, customerId) { return [\"/settingsClients/\".concat(settingsClient, \"/settings/\").concat(settingId, \"/customers/\").concat(customerId)]; };\n/**\n * @summary settingsClients/{settingsClient}/settings/{settingId}/customers/{customerId}\n */\nexport var useGetSettingsClientSettingCustomer = function (settingsClient, settingId, customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(settingsClient && settingId && customerId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetSettingsClientSettingCustomerKey(settingsClient, settingId, customerId)\n : null;\n });\n var swrFn = function () {\n return getSettingsClientSettingCustomer(customInstance, settingsClient, settingId, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT settings\n * @summary settingsClients/{settingsClient}/settings/{settingId}/customers/{customerId}\n */\nexport var updateSettingsClientSettingCustomer = function (client, settingsClient, settingId, customerId, globalConsultantsSettingDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/settingsClients/\".concat(settingsClient, \"/settings/\").concat(settingId, \"/customers/\").concat(customerId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalConsultantsSettingDto,\n }, options);\n};\n/**\n * DELETE settings\n * @summary settingsClients/{settingsClient}/settings/{settingId}/customers/{customerId}\n */\nexport var deleteSettingsClientSettingCustomer = function (client, settingsClient, settingId, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/settingsClients/\".concat(settingsClient, \"/settings/\").concat(settingId, \"/customers/\").concat(customerId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Returns preferred type of document for VAT\n * @summary customers/{customerId}/vatDocumentType\n */\nexport var getCustomerVatDocumentType = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/vatDocumentType\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerVatDocumentTypeKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/vatDocumentType\")];\n};\n/**\n * @summary customers/{customerId}/vatDocumentType\n */\nexport var useGetCustomerVatDocumentType = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerVatDocumentTypeKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerVatDocumentType(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change preferred type of document for VAT\n * @summary customers/{customerId}/vatDocumentType\n */\nexport var updateCustomerVatDocumentType = function (client, customerId, globalCustomersCustomerSelectionDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/vatDocumentType\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerSelectionDtoBody,\n }, options);\n};\n/**\n * Get video shopping configuration\n * @summary applications/videoShopping/localization\n */\nexport var getApplicationsVideoShoppingLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/videoShopping/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsVideoShoppingLocalizationKey = function () {\n return [\"/applications/videoShopping/localization\"];\n};\n/**\n * @summary applications/videoShopping/localization\n */\nexport var useGetApplicationsVideoShoppingLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsVideoShoppingLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsVideoShoppingLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get video shopping configuration\n * @summary applications/videoShopping/configuration\n */\nexport var getApplicationsVideoShoppingConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/videoShopping/configuration\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsVideoShoppingConfigurationKey = function () {\n return [\"/applications/videoShopping/configuration\"];\n};\n/**\n * @summary applications/videoShopping/configuration\n */\nexport var useGetApplicationsVideoShoppingConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsVideoShoppingConfigurationKey() : null); });\n var swrFn = function () {\n return getApplicationsVideoShoppingConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get video shopping shows for specified user.\n * @summary customers/{customerId}/videoShoppingShows\n */\nexport var getCustomerVideoShoppingShows = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/videoShoppingShows\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerVideoShoppingShowsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/videoShoppingShows\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/videoShoppingShows\n */\nexport var useGetCustomerVideoShoppingShows = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerVideoShoppingShowsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerVideoShoppingShows(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Invites the user to Live video shopping program.\n * @summary customers/{customerId}/videoShoppingInvitation\n */\nexport var createCustomerVideoShoppingInvitation = function (client, customerId, globalCustomersVideoShoppingUserInvitationDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/videoShoppingInvitation\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersVideoShoppingUserInvitationDto,\n }, options);\n};\n/**\n * GET - provides content of Vip Customer Banner dependent on whether the customer is Vip End Customer.\n * @summary customers/{customerId}/vipCustomerBanner\n */\nexport var getCustomerVipCustomerBanner = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/vipCustomerBanner\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerVipCustomerBannerKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/vipCustomerBanner\")];\n};\n/**\n * @summary customers/{customerId}/vipCustomerBanner\n */\nexport var useGetCustomerVipCustomerBanner = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerVipCustomerBannerKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerVipCustomerBanner(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get list of vouchers entered by customer\n * @summary shoppingSessions/{sessionId}/voucherCodes\n */\nexport var getShoppingSessionVoucherCodes = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/voucherCodes\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionVoucherCodesKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/voucherCodes\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/voucherCodes\n */\nexport var useGetShoppingSessionVoucherCodes = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionVoucherCodesKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionVoucherCodes(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Remove all vouchers entered by customer\n * @summary shoppingSessions/{sessionId}/voucherCodes\n */\nexport var deleteShoppingSessionVoucherCodes = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/voucherCodes\"), method: 'delete', headers: headers }, options);\n};\n/**\n * POST: Remove all vouchers entered by customer\n * @summary shoppingSessions/{sessionId}/voucherCodes\n */\nexport var createShoppingSessionVoucherCode = function (client, sessionId, globalShoppingVoucherCodeDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/voucherCodes\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalShoppingVoucherCodeDto,\n }, options);\n};\n/**\n * GET: Get voucher entered by customer\n * @summary shoppingSessions/{sessionId}/voucherCodes/{voucherCode}\n */\nexport var getShoppingSessionVoucherCode = function (client, sessionId, voucherCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/voucherCodes/\").concat(voucherCode), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionVoucherCodeKey = function (sessionId, voucherCode) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/voucherCodes/\").concat(voucherCode)];\n};\n/**\n * @summary shoppingSessions/{sessionId}/voucherCodes/{voucherCode}\n */\nexport var useGetShoppingSessionVoucherCode = function (sessionId, voucherCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(sessionId && voucherCode);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionVoucherCodeKey(sessionId, voucherCode) : null); });\n var swrFn = function () {\n return getShoppingSessionVoucherCode(customInstance, sessionId, voucherCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * DELETE: Remove voucher entered by customer\n * @summary shoppingSessions/{sessionId}/voucherCodes/{voucherCode}\n */\nexport var deleteShoppingSessionVoucherCode = function (client, sessionId, voucherCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/shoppingSessions/\".concat(sessionId, \"/voucherCodes/\").concat(voucherCode),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * GET: Get list of active personal vouchers\n * @summary vouchers\n */\nexport var getVouchers = function (client, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/vouchers\", method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetVouchersKey = function (params) {\n return __spreadArray([\"/vouchers\"], (params ? [params] : []), true);\n};\n/**\n * @summary vouchers\n */\nexport var useGetVouchers = function (params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetVouchersKey(params) : null); });\n var swrFn = function () {\n return getVouchers(customInstance, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Get list of vouchers evaluated for current shopping bag\n * @summary shoppingSessions/{sessionId}/vouchers\n */\nexport var getShoppingSessionVouchers = function (client, sessionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/shoppingSessions/\".concat(sessionId, \"/vouchers\"), method: 'get', headers: headers }, options);\n};\nexport var getGetShoppingSessionVouchersKey = function (sessionId) {\n return [\"/shoppingSessions/\".concat(sessionId, \"/vouchers\")];\n};\n/**\n * @summary shoppingSessions/{sessionId}/vouchers\n */\nexport var useGetShoppingSessionVouchers = function (sessionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!sessionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetShoppingSessionVouchersKey(sessionId) : null); });\n var swrFn = function () {\n return getShoppingSessionVouchers(customInstance, sessionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Localization for Vouchers application\n * @summary applications/vouchers/localization\n */\nexport var getApplicationsVouchersLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/vouchers/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsVouchersLocalizationKey = function () {\n return [\"/applications/vouchers/localization\"];\n};\n/**\n * @summary applications/vouchers/localization\n */\nexport var useGetApplicationsVouchersLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsVouchersLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsVouchersLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns wallet report\n * @summary customers/{customerId}/walletReport\n */\nexport var getCustomerWalletReport = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/walletReport\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerWalletReportKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/walletReport\")];\n};\n/**\n * @summary customers/{customerId}/walletReport\n */\nexport var useGetCustomerWalletReport = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerWalletReportKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerWalletReport(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Returns wallet transactions list\n * @summary customers/{customerId}/walletTransactions\n */\nexport var getCustomerWalletTransactions = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/walletTransactions\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerWalletTransactionsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/walletTransactions\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/walletTransactions\n */\nexport var useGetCustomerWalletTransactions = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerWalletTransactionsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerWalletTransactions(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * User update webook event from bambuser system.\n * @summary applications/videoShopping/accounts/{accountId}/userEvents\n */\nexport var createApplicationsVideoShoppingAccountUserEvent = function (client, accountId, globalApplicationsVideoShoppingUserEventDto, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/applications/videoShopping/accounts/\".concat(accountId, \"/userEvents\"),\n method: 'post',\n headers: { 'Content-Type': 'application/json' },\n data: globalApplicationsVideoShoppingUserEventDto,\n }, options);\n};\n/**\n * Creates new WeChat external account\n * @summary login/providers/weChat/externalAccount\n */\nexport var createLoginProvidersWeChatExternalAccount = function (client, globalLoginWeChatAccountDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/login/providers/weChat/externalAccount\",\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalLoginWeChatAccountDto,\n }, options);\n};\n/**\n * Provides collection of connected WeChat platform by unionId\n * @summary login/providers/weChat/externalAccount/{unionId}/platforms\n */\nexport var getLoginProvidersWeChatExternalAccountPlatforms = function (client, unionId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/login/providers/weChat/externalAccount/\".concat(unionId, \"/platforms\"), method: 'get', headers: headers }, options);\n};\nexport var getGetLoginProvidersWeChatExternalAccountPlatformsKey = function (unionId) {\n return [\"/login/providers/weChat/externalAccount/\".concat(unionId, \"/platforms\")];\n};\n/**\n * @summary login/providers/weChat/externalAccount/{unionId}/platforms\n */\nexport var useGetLoginProvidersWeChatExternalAccountPlatforms = function (unionId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!unionId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetLoginProvidersWeChatExternalAccountPlatformsKey(unionId) : null); });\n var swrFn = function () {\n return getLoginProvidersWeChatExternalAccountPlatforms(customInstance, unionId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Add new platform to specific WeChat\n * @summary login/providers/weChat/externalAccount/{unionId}/platforms\n */\nexport var createLoginProvidersWeChatExternalAccountPlatform = function (client, unionId, globalLoginProvidersWeChatPlatformDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/login/providers/weChat/externalAccount/\".concat(unionId, \"/platforms\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalLoginProvidersWeChatPlatformDto,\n }, options);\n};\n/**\n * Get all wellness club managed by specified customer base on query parameter.\nIn case that isMember is False then wellness club where customerId is owner will be returned.\nOtherwise wellness club where customerId is member will be returned.\n * @summary customers/{customerId}/wellnessClubs\n */\nexport var getCustomerWellnessClubs = function (client, customerId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/wellnessClubs\"), method: 'get', headers: headers, params: params }, options);\n};\nexport var getGetCustomerWellnessClubsKey = function (customerId, params) { return __spreadArray([\"/customers/\".concat(customerId, \"/wellnessClubs\")], (params ? [params] : []), true); };\n/**\n * @summary customers/{customerId}/wellnessClubs\n */\nexport var useGetCustomerWellnessClubs = function (customerId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerWellnessClubsKey(customerId, params) : null); });\n var swrFn = function () {\n return getCustomerWellnessClubs(customInstance, customerId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Create wellness club.\n * @summary customers/{customerId}/wellnessClubTypes/{clubType}/wellnessClubs\n */\nexport var createCustomerWellnessClubTypeWellnessClub = function (client, customerId, clubType, globalCustomersWellnessClubDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/wellnessClubTypes/\").concat(clubType, \"/wellnessClubs\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersWellnessClubDto,\n }, options);\n};\n/**\n * Get Wellness club base on type and club id.\n * @summary customers/{customerId}/wellnessClubTypes/{clubType}/wellnessClubs/{clubId}\n */\nexport var getCustomerWellnessClubTypeWellnessClub = function (client, customerId, clubType, clubId, params, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/wellnessClubTypes/\").concat(clubType, \"/wellnessClubs/\").concat(clubId),\n method: 'get',\n headers: headers,\n params: params,\n }, options);\n};\nexport var getGetCustomerWellnessClubTypeWellnessClubKey = function (customerId, clubType, clubId, params) {\n return __spreadArray([\n \"/customers/\".concat(customerId, \"/wellnessClubTypes/\").concat(clubType, \"/wellnessClubs/\").concat(clubId)\n ], (params ? [params] : []), true);\n};\n/**\n * @summary customers/{customerId}/wellnessClubTypes/{clubType}/wellnessClubs/{clubId}\n */\nexport var useGetCustomerWellnessClubTypeWellnessClub = function (customerId, clubType, clubId, params, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!(customerId && clubType && clubId);\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () {\n return isEnabled\n ? getGetCustomerWellnessClubTypeWellnessClubKey(customerId, clubType, clubId, params)\n : null;\n });\n var swrFn = function () {\n return getCustomerWellnessClubTypeWellnessClub(customInstance, customerId, clubType, clubId, params, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Update specified Wellness club.\n * @summary customers/{customerId}/wellnessClubTypes/{clubType}/wellnessClubs/{clubId}\n */\nexport var updateCustomerWellnessClubTypeWellnessClub = function (client, customerId, clubType, clubId, globalCustomersWellnessClubDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/wellnessClubTypes/\").concat(clubType, \"/wellnessClubs/\").concat(clubId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersWellnessClubDto,\n }, options);\n};\n/**\n * Delete specified Wellness club.\n * @summary customers/{customerId}/wellnessClubTypes/{clubType}/wellnessClubs/{clubId}\n */\nexport var deleteCustomerWellnessClubTypeWellnessClub = function (client, customerId, clubType, clubId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/wellnessClubTypes/\").concat(clubType, \"/wellnessClubs/\").concat(clubId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Add one customer as a club member to club specified by club id.\n * @summary customers/{customerId}/wellnessClubTypes/{clubType}/wellnessClubs/{clubId}/members\n */\nexport var createCustomerWellnessClubTypeWellnessClubMember = function (client, customerId, clubType, clubId, globalCustomersWellnessClubMemberDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/wellnessClubTypes/\").concat(clubType, \"/wellnessClubs/\").concat(clubId, \"/members\"),\n method: 'post',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersWellnessClubMemberDtoBody,\n }, options);\n};\n/**\n * Delete one member specified by it's customer id from a club specified by it's club id.\n * @summary customers/{customerId}/wellnessClubTypes/{clubType}/wellnessClubs/{clubId}/members/{memberCustomerId}\n */\nexport var deleteCustomerWellnessClubTypeWellnessClubMember = function (client, customerId, clubType, clubId, memberCustomerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/wellnessClubTypes/\").concat(clubType, \"/wellnessClubs/\").concat(clubId, \"/members/\").concat(memberCustomerId),\n method: 'delete',\n headers: headers,\n }, options);\n};\n/**\n * Update club membership of specified member customer id nad specified by club id.\n * @summary customers/{customerId}/wellnessClubTypes/{clubType}/wellnessClubs/{clubId}/members/{memberCustomerId}\n */\nexport var updateCustomerWellnessClubTypeWellnessClubMember = function (client, customerId, clubType, clubId, memberCustomerId, globalCustomersWellnessClubMemberDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/wellnessClubTypes/\").concat(clubType, \"/wellnessClubs/\").concat(clubId, \"/members/\").concat(memberCustomerId),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersWellnessClubMemberDtoBody,\n }, options);\n};\n/**\n * Approve or reject of wellness club invitation.\n * @summary wellnessClubInvitations/{invitationCode}/approval\n */\nexport var updateWellnessClubInvitationApproval = function (client, invitationCode, globalCustomersWellnessClubInvitationApprovalDto, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/wellnessClubInvitations/\".concat(invitationCode, \"/approval\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersWellnessClubInvitationApprovalDto,\n }, options);\n};\n/**\n * Get wellness club information base on invitation code.\n * @summary wellnessClubInvitations/{invitationCode}/details\n */\nexport var getWellnessClubInvitationDetails = function (client, invitationCode, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/wellnessClubInvitations/\".concat(invitationCode, \"/details\"), method: 'get', headers: headers }, options);\n};\nexport var getGetWellnessClubInvitationDetailsKey = function (invitationCode) {\n return [\"/wellnessClubInvitations/\".concat(invitationCode, \"/details\")];\n};\n/**\n * @summary wellnessClubInvitations/{invitationCode}/details\n */\nexport var useGetWellnessClubInvitationDetails = function (invitationCode, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!invitationCode;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetWellnessClubInvitationDetailsKey(invitationCode) : null); });\n var swrFn = function () {\n return getWellnessClubInvitationDetails(customInstance, invitationCode, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get wellness club configuration\n * @summary applications/wellnessClub/localization\n */\nexport var getApplicationsWellnessClubLocalization = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/wellnessClub/localization\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsWellnessClubLocalizationKey = function () {\n return [\"/applications/wellnessClub/localization\"];\n};\n/**\n * @summary applications/wellnessClub/localization\n */\nexport var useGetApplicationsWellnessClubLocalization = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsWellnessClubLocalizationKey() : null); });\n var swrFn = function () {\n return getApplicationsWellnessClubLocalization(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * Get wellnes club configuration\n * @summary applications/wellnessClub/configuration\n */\nexport var getApplicationsWellnessClubConfiguration = function (client, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/applications/wellnessClub/configuration\", method: 'get', headers: headers }, options);\n};\nexport var getGetApplicationsWellnessClubConfigurationKey = function () {\n return [\"/applications/wellnessClub/configuration\"];\n};\n/**\n * @summary applications/wellnessClub/configuration\n */\nexport var useGetApplicationsWellnessClubConfiguration = function (headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetApplicationsWellnessClubConfigurationKey() : null); });\n var swrFn = function () {\n return getApplicationsWellnessClubConfiguration(customInstance, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * GET: Returns information about wellness life for given customer\n * @summary customers/{customerId}/wellnessLife\n */\nexport var getCustomerWellnessLife = function (client, customerId, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({ url: \"/customers/\".concat(customerId, \"/wellnessLife\"), method: 'get', headers: headers }, options);\n};\nexport var getGetCustomerWellnessLifeKey = function (customerId) {\n return [\"/customers/\".concat(customerId, \"/wellnessLife\")];\n};\n/**\n * @summary customers/{customerId}/wellnessLife\n */\nexport var useGetCustomerWellnessLife = function (customerId, headers, options) {\n var _a;\n var customInstance = useApiClient();\n var _b = options !== null && options !== void 0 ? options : {}, swrOptions = _b.swr, requestOptions = _b.request;\n var isEnabled = (swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.enabled) !== false && !!customerId;\n var swrKey = (_a = swrOptions === null || swrOptions === void 0 ? void 0 : swrOptions.swrKey) !== null && _a !== void 0 ? _a : (function () { return (isEnabled ? getGetCustomerWellnessLifeKey(customerId) : null); });\n var swrFn = function () {\n return getCustomerWellnessLife(customInstance, customerId, headers, requestOptions).then(function (d) { return d.data; });\n };\n var query = useSwr(swrKey, swrFn, swrOptions);\n return __assign({ swrKey: swrKey }, query);\n};\n/**\n * PUT: Change wellness life approval flag\n * @summary customers/{customerId}/wellnessLife\n */\nexport var updateCustomerWellnessLife = function (client, customerId, globalCustomersCustomerBooleanDtoBody, headers, options) {\n var customInstance = client.createFetcher();\n return customInstance({\n url: \"/customers/\".concat(customerId, \"/wellnessLife\"),\n method: 'put',\n headers: __assign({ 'Content-Type': 'application/json' }, headers),\n data: globalCustomersCustomerBooleanDtoBody,\n }, options);\n};\n\n//# sourceMappingURL=api.js.map\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst isStandardBrowserEnv = (() => {\n let product;\n if (typeof navigator !== 'undefined' && (\n (product = navigator.product) === 'ReactNative' ||\n product === 'NativeScript' ||\n product === 'NS')\n ) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n})();\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\n const isStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n isStandardBrowserEnv,\n isStandardBrowserWebWorkerEnv,\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n if (!hasJSONContentType) {\n return data;\n }\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n const cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n// Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })();\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })();\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n const responseType = config.responseType;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if(!requestHeaders.getContentType(/^\\s*multipart\\/form-data/)){\n requestHeaders.setContentType('multipart/form-data'); // mobile/desktop app frameworks\n } else if(utils.isString(contentType = requestHeaders.getContentType())){\n // fix semicolon duplication issue for ReactNative FormData implementation\n requestHeaders.setContentType(contentType.replace(/^\\s*(multipart\\/form-data);+/, '$1'))\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (platform.isStandardBrowserEnv) {\n // Add xsrf header\n // regarding CVE-2023-45857 config.withCredentials condition was removed temporarily\n const xsrfValue = isURLSameOrigin(fullPath) && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? thing.toJSON() : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.6.0\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport isRetryAllowed from 'is-retry-allowed';\nexport var namespace = 'axios-retry';\n/**\n * @param {Error} error\n * @return {boolean}\n */\n\nexport function isNetworkError(error) {\n var CODE_EXCLUDE_LIST = ['ERR_CANCELED', 'ECONNABORTED'];\n return !error.response && Boolean(error.code) && // Prevents retrying cancelled requests\n !CODE_EXCLUDE_LIST.includes(error.code) && // Prevents retrying timed out & cancelled requests\n isRetryAllowed(error) // Prevents retrying unsafe errors\n ;\n}\nvar SAFE_HTTP_METHODS = ['get', 'head', 'options'];\nvar IDEMPOTENT_HTTP_METHODS = SAFE_HTTP_METHODS.concat(['put', 'delete']);\n/**\n * @param {Error} error\n * @return {boolean}\n */\n\nexport function isRetryableError(error) {\n return error.code !== 'ECONNABORTED' && (!error.response || error.response.status >= 500 && error.response.status <= 599);\n}\n/**\n * @param {Error} error\n * @return {boolean}\n */\n\nexport function isSafeRequestError(error) {\n if (!error.config) {\n // Cannot determine if the request can be retried\n return false;\n }\n\n return isRetryableError(error) && SAFE_HTTP_METHODS.indexOf(error.config.method) !== -1;\n}\n/**\n * @param {Error} error\n * @return {boolean}\n */\n\nexport function isIdempotentRequestError(error) {\n if (!error.config) {\n // Cannot determine if the request can be retried\n return false;\n }\n\n return isRetryableError(error) && IDEMPOTENT_HTTP_METHODS.indexOf(error.config.method) !== -1;\n}\n/**\n * @param {Error} error\n * @return {boolean}\n */\n\nexport function isNetworkOrIdempotentRequestError(error) {\n return isNetworkError(error) || isIdempotentRequestError(error);\n}\n/**\n * @return {number} - delay in milliseconds, always 0\n */\n\nfunction noDelay() {\n return 0;\n}\n/**\n * Set delayFactor 1000 for an exponential delay to occur on the order\n * of seconds\n * @param {number} [retryNumber=0]\n * @param {Error} error - unused; for existing API of retryDelay callback\n * @param {number} [delayFactor=100] milliseconds\n * @return {number} - delay in milliseconds\n */\n\n\nexport function exponentialDelay() {\n var retryNumber = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var error = arguments.length > 1 ? arguments[1] : undefined;\n var delayFactor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 100;\n var delay = Math.pow(2, retryNumber) * delayFactor;\n var randomSum = delay * 0.2 * Math.random(); // 0-20% of the delay\n\n return delay + randomSum;\n}\n/**\n * Initializes and returns the retry state for the given request/config\n * @param {AxiosRequestConfig} config\n * @return {Object}\n */\n\nfunction getCurrentState(config) {\n var currentState = config[namespace] || {};\n currentState.retryCount = currentState.retryCount || 0;\n config[namespace] = currentState;\n return currentState;\n}\n/**\n * Returns the axios-retry options for the current request\n * @param {AxiosRequestConfig} config\n * @param {AxiosRetryConfig} defaultOptions\n * @return {AxiosRetryConfig}\n */\n\n\nfunction getRequestOptions(config, defaultOptions) {\n return _objectSpread(_objectSpread({}, defaultOptions), config[namespace]);\n}\n/**\n * @param {Axios} axios\n * @param {AxiosRequestConfig} config\n */\n\n\nfunction fixConfig(axios, config) {\n if (axios.defaults.agent === config.agent) {\n delete config.agent;\n }\n\n if (axios.defaults.httpAgent === config.httpAgent) {\n delete config.httpAgent;\n }\n\n if (axios.defaults.httpsAgent === config.httpsAgent) {\n delete config.httpsAgent;\n }\n}\n/**\n * Checks retryCondition if request can be retried. Handles it's retruning value or Promise.\n * @param {number} retries\n * @param {Function} retryCondition\n * @param {Object} currentState\n * @param {Error} error\n * @return {boolean}\n */\n\n\nfunction shouldRetry(_x, _x2, _x3, _x4) {\n return _shouldRetry.apply(this, arguments);\n}\n/**\n * Adds response interceptors to an axios instance to retry requests failed due to network issues\n *\n * @example\n *\n * import axios from 'axios';\n *\n * axiosRetry(axios, { retries: 3 });\n *\n * axios.get('http://example.com/test') // The first request fails and the second returns 'ok'\n * .then(result => {\n * result.data; // 'ok'\n * });\n *\n * // Exponential back-off retry delay between requests\n * axiosRetry(axios, { retryDelay : axiosRetry.exponentialDelay});\n *\n * // Custom retry delay\n * axiosRetry(axios, { retryDelay : (retryCount) => {\n * return retryCount * 1000;\n * }});\n *\n * // Also works with custom axios instances\n * const client = axios.create({ baseURL: 'http://example.com' });\n * axiosRetry(client, { retries: 3 });\n *\n * client.get('/test') // The first request fails and the second returns 'ok'\n * .then(result => {\n * result.data; // 'ok'\n * });\n *\n * // Allows request-specific configuration\n * client\n * .get('/test', {\n * 'axios-retry': {\n * retries: 0\n * }\n * })\n * .catch(error => { // The first request fails\n * error !== undefined\n * });\n *\n * @param {Axios} axios An axios instance (the axios object or one created from axios.create)\n * @param {Object} [defaultOptions]\n * @param {number} [defaultOptions.retries=3] Number of retries\n * @param {boolean} [defaultOptions.shouldResetTimeout=false]\n * Defines if the timeout should be reset between retries\n * @param {Function} [defaultOptions.retryCondition=isNetworkOrIdempotentRequestError]\n * A function to determine if the error can be retried\n * @param {Function} [defaultOptions.retryDelay=noDelay]\n * A function to determine the delay between retry requests\n * @param {Function} [defaultOptions.onRetry=()=>{}]\n * A function to get notified when a retry occurs\n * @return {{ requestInterceptorId: number, responseInterceptorId: number }}\n * The ids of the interceptors added to the request and to the response (so they can be ejected at a later time)\n */\n\n\nfunction _shouldRetry() {\n _shouldRetry = _asyncToGenerator(function* (retries, retryCondition, currentState, error) {\n var shouldRetryOrPromise = currentState.retryCount < retries && retryCondition(error); // This could be a promise\n\n if (typeof shouldRetryOrPromise === 'object') {\n try {\n var shouldRetryPromiseResult = yield shouldRetryOrPromise; // keep return true unless shouldRetryPromiseResult return false for compatibility\n\n return shouldRetryPromiseResult !== false;\n } catch (_err) {\n return false;\n }\n }\n\n return shouldRetryOrPromise;\n });\n return _shouldRetry.apply(this, arguments);\n}\n\nexport default function axiosRetry(axios, defaultOptions) {\n var requestInterceptorId = axios.interceptors.request.use(config => {\n var currentState = getCurrentState(config);\n currentState.lastRequestTime = Date.now();\n return config;\n });\n var responseInterceptorId = axios.interceptors.response.use(null, /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (error) {\n var {\n config\n } = error; // If we have no information to retry the request\n\n if (!config) {\n return Promise.reject(error);\n }\n\n var {\n retries = 3,\n retryCondition = isNetworkOrIdempotentRequestError,\n retryDelay = noDelay,\n shouldResetTimeout = false,\n onRetry = () => {}\n } = getRequestOptions(config, defaultOptions);\n var currentState = getCurrentState(config);\n\n if (yield shouldRetry(retries, retryCondition, currentState, error)) {\n currentState.retryCount += 1;\n var delay = retryDelay(currentState.retryCount, error); // Axios fails merging this configuration to the default configuration because it has an issue\n // with circular structures: https://github.com/mzabriskie/axios/issues/370\n\n fixConfig(axios, config);\n\n if (!shouldResetTimeout && config.timeout && currentState.lastRequestTime) {\n var lastRequestDuration = Date.now() - currentState.lastRequestTime;\n var timeout = config.timeout - lastRequestDuration - delay;\n\n if (timeout <= 0) {\n return Promise.reject(error);\n }\n\n config.timeout = timeout;\n }\n\n config.transformRequest = [data => data];\n yield onRetry(currentState.retryCount, error, config);\n return new Promise(resolve => setTimeout(() => resolve(axios(config)), delay));\n }\n\n return Promise.reject(error);\n });\n\n return function (_x5) {\n return _ref.apply(this, arguments);\n };\n }());\n return {\n requestInterceptorId,\n responseInterceptorId\n };\n} // Compatibility with CommonJS\n\naxiosRetry.isNetworkError = isNetworkError;\naxiosRetry.isSafeRequestError = isSafeRequestError;\naxiosRetry.isIdempotentRequestError = isIdempotentRequestError;\naxiosRetry.isNetworkOrIdempotentRequestError = isNetworkOrIdempotentRequestError;\naxiosRetry.exponentialDelay = exponentialDelay;\naxiosRetry.isRetryableError = isRetryableError;\n//# sourceMappingURL=index.js.map","var isoDateFormat = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[+-]\\d{2}:?\\d{2}|Z)?$/;\nfunction isIsoDateString(value) {\n return typeof value === 'string' && isoDateFormat.test(value);\n}\nexport function handleDates(body) {\n if (body === null || typeof body !== 'object') {\n return;\n }\n for (var _i = 0, _a = Object.keys(body); _i < _a.length; _i++) {\n var key = _a[_i];\n // Object.keys handles both arrays and objects. This solution is a trade off between super\n // complicated but type safe and simple however less secure solution. See tests\n // @ts-expect-error\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- see the comment above\n var value = body[key];\n if (isIsoDateString(value)) {\n // @ts-expect-error\n // eslint-disable-next-line no-param-reassign -- see the comment above\n body[key] = new Date(value);\n }\n else if (typeof value === 'object') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- see the comment above\n handleDates(value);\n }\n }\n}\nexport var applyDateMiddleware = function (axiosInstance) {\n axiosInstance.interceptors.response.use(function (originalResponse) {\n handleDates(originalResponse.data);\n return originalResponse;\n });\n};\n\n//# sourceMappingURL=applyDateMiddleware.js.map\n","/**\n * The BE expects search query parameters in specific format. See the example below:\n *\n * const params = {\n * arr: [123, 'string'],\n * bool: true,\n * }\n *\n * should output -> \"arr=123&arr=string&bool=true\"\n *\n * @param params query paramaters for a request\n * @returns Formatted search query parameters\n */\nexport var customQuerySerializer = function (params) {\n var searchParams = new URLSearchParams();\n Object.entries(params).forEach(function (_a) {\n var key = _a[0], value = _a[1];\n if (Array.isArray(value)) {\n value.forEach(function (v) {\n if (v != null) {\n searchParams.append(key, v.toString());\n }\n });\n }\n else if (value != null) {\n searchParams.append(key, value.toString());\n }\n });\n return searchParams.toString();\n};\n\n//# sourceMappingURL=customQuerySerializer.js.map\n","/**\n * This file is copy-pasted from @ori/fetching. This package can't be used here as it pulls react and swr to non-react\n * packages.\n */\nvar BEARER = 'Bearer ';\n/**\n * Composes a token string with a \"Bearer\" prefix if it doesn't already have one.\n * @param {string} token - The `token` parameter is a string representing an authentication token.\n */\nexport var composeToken = function (token) { return (token.includes(BEARER) ? token : \"\".concat(BEARER).concat(token)); };\n/**\n * Formats a token string if it exists, otherwise it returns undefined.\n * @param {string | null | undefined} token - The `token` parameter is a string that can also be `null`\n * or `undefined`.\n */\nexport var formatToken = function (token) {\n return token ? composeToken(token) : undefined;\n};\n\n//# sourceMappingURL=prepareToken.js.map\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { axios } from '@ori/axios';\nimport axiosRetry from 'axios-retry';\nimport camelcaseKeys from 'camelcase-keys';\nimport { applyDateMiddleware } from './applyDateMiddleware';\nimport { customQuerySerializer } from './customQuerySerializer';\nimport { formatToken } from './prepareToken';\nvar AUTHORIZATION_HEADER = 'Authorization';\nvar LANGUAGE_HEADER = 'Accept-Language';\nvar TENANT_HEADER = 'x-tenant-context';\nvar DEFAULT_REQUEST_TIMEOUT_MS = 5000;\nvar applyCaseMiddleware = function (axiosInstance, options) {\n axiosInstance.interceptors.response.use(function (response) { return (__assign(__assign({}, response), { data: camelcaseKeys(response.data, __assign({ deep: true }, options)) })); });\n};\nvar ApiClient = /** @class */ (function () {\n function ApiClient(options) {\n var baseUrl = options.baseUrl, language = options.language, tenant = options.tenant, token = options.token, camelcaseKeysOptions = options.camelcaseKeysOptions, axiosRetryOptions = options.axiosRetryOptions, httpAgent = options.httpAgent, httpsAgent = options.httpsAgent, _a = options.timeout, timeout = _a === void 0 ? DEFAULT_REQUEST_TIMEOUT_MS : _a;\n this.axiosInstance = axios.create({\n baseURL: baseUrl,\n httpAgent: httpAgent,\n httpsAgent: httpsAgent,\n // This is due to the mismatch ClientGenerator(v1) and api client(v0) axios versions.\n // It will be removed by upcoming PR.\n paramsSerializer: {\n serialize: customQuerySerializer,\n },\n timeout: timeout,\n });\n var formattedToken = formatToken(token);\n if (formattedToken) {\n this.axiosInstance.defaults.headers.common[AUTHORIZATION_HEADER] = formattedToken;\n }\n if (tenant) {\n this.axiosInstance.defaults.headers.common[TENANT_HEADER] = tenant;\n }\n if (language) {\n this.axiosInstance.defaults.headers.common[LANGUAGE_HEADER] = language;\n }\n if (typeof axiosRetryOptions !== 'undefined') {\n axiosRetry(this.axiosInstance, axiosRetryOptions);\n }\n applyDateMiddleware(this.axiosInstance);\n applyCaseMiddleware(this.axiosInstance, camelcaseKeysOptions);\n }\n ApiClient.prototype.createFetcher = function () {\n var _this = this;\n return function (config, options) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {\n return [2 /*return*/, this.axiosInstance(__assign(__assign({}, config), options))];\n }); }); };\n };\n return ApiClient;\n}());\nexport { ApiClient };\n\n//# sourceMappingURL=ApiClient.js.map\n","import React, { useMemo } from 'react';\nimport { ApiClient } from './ApiClient';\nimport { apiClientContext } from './apiClientContext';\nexport var ApiClientProvider = function (_a) {\n var camelcaseKeysOptions = _a.camelcaseKeysOptions, children = _a.children, baseUrl = _a.baseUrl, language = _a.language, tenant = _a.tenant, token = _a.token, timeout = _a.timeout;\n var apiClient = useMemo(function () {\n return new ApiClient({\n baseUrl: baseUrl,\n camelcaseKeysOptions: camelcaseKeysOptions,\n language: language,\n tenant: tenant,\n token: token,\n timeout: timeout,\n });\n }, [baseUrl, camelcaseKeysOptions, language, tenant, timeout, token]);\n return React.createElement(apiClientContext.Provider, { value: apiClient }, children);\n};\n\n//# sourceMappingURL=ApiClientProvider.js.map\n","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nimport { Component } from 'react';\nexport var ErrorBoundary = /*#__PURE__*/function (_Component) {\n _inherits(ErrorBoundary, _Component);\n var _super = _createSuper(ErrorBoundary);\n function ErrorBoundary() {\n var _this;\n _classCallCheck(this, ErrorBoundary);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n error: undefined,\n errorInfo: undefined\n });\n return _this;\n }\n _createClass(ErrorBoundary, [{\n key: \"componentDidCatch\",\n value: function componentDidCatch(error, errorInfo) {\n var _this$props = this.props,\n debug = _this$props.debug,\n logger = _this$props.logger;\n this.setState({\n errorInfo: errorInfo\n });\n if (logger) {\n logger.log({\n error: error,\n errorInfo: errorInfo\n });\n }\n if (debug || !logger) {\n console.error({\n error: error,\n errorInfo: errorInfo\n }); // eslint-disable-line no-console -- Used for logging error to console.\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$state = this.state,\n error = _this$state.error,\n errorInfo = _this$state.errorInfo;\n var _this$props2 = this.props,\n children = _this$props2.children,\n fallback = _this$props2.fallback;\n if (error) {\n if (typeof fallback === 'function') {\n var _fallback;\n return (_fallback = fallback({\n error: error,\n errorInfo: errorInfo\n })) !== null && _fallback !== void 0 ? _fallback : null;\n }\n return fallback !== null && fallback !== void 0 ? fallback : null;\n }\n return children;\n }\n }], [{\n key: \"getDerivedStateFromError\",\n value: function getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n }]);\n return ErrorBoundary;\n}(Component);\n//# sourceMappingURL=ErrorBoundary.js.map","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","/**\n * Type guard that checks if variable isn't `null` or `undefined`:\n *\n * ```TypeScript\n * declare const foobar: string | null;\n *\n * if (isNonNullable(foobar)) {\n * // `typeof foobar` is now `string`\n * } else {\n * // `typeof foobar` is now `null`\n * }\n * ```\n *\n * @typeParam T Type of `value`\n * @param value Value being checked\n * @return `true` if `value` is non-nullable\n */\nexport function isNonNullable(value) {\n return value !== undefined && value !== null;\n}\n//# sourceMappingURL=isNonNullable.js.map","'use strict';\nconst mapObj = require('map-obj');\nconst camelCase = require('camelcase');\nconst QuickLru = require('quick-lru');\n\nconst has = (array, key) => array.some(x => {\n\tif (typeof x === 'string') {\n\t\treturn x === key;\n\t}\n\n\tx.lastIndex = 0;\n\treturn x.test(key);\n});\n\nconst cache = new QuickLru({maxSize: 100000});\n\n// Reproduces behavior from `map-obj`\nconst isObject = value =>\n\ttypeof value === 'object' &&\n\tvalue !== null &&\n\t!(value instanceof RegExp) &&\n\t!(value instanceof Error) &&\n\t!(value instanceof Date);\n\nconst camelCaseConvert = (input, options) => {\n\tif (!isObject(input)) {\n\t\treturn input;\n\t}\n\n\toptions = {\n\t\tdeep: false,\n\t\tpascalCase: false,\n\t\t...options\n\t};\n\n\tconst {exclude, pascalCase, stopPaths, deep} = options;\n\n\tconst stopPathsSet = new Set(stopPaths);\n\n\tconst makeMapper = parentPath => (key, value) => {\n\t\tif (deep && isObject(value)) {\n\t\t\tconst path = parentPath === undefined ? key : `${parentPath}.${key}`;\n\n\t\t\tif (!stopPathsSet.has(path)) {\n\t\t\t\tvalue = mapObj(value, makeMapper(path));\n\t\t\t}\n\t\t}\n\n\t\tif (!(exclude && has(exclude, key))) {\n\t\t\tconst cacheKey = pascalCase ? `${key}_` : key;\n\n\t\t\tif (cache.has(cacheKey)) {\n\t\t\t\tkey = cache.get(cacheKey);\n\t\t\t} else {\n\t\t\t\tconst returnValue = camelCase(key, {pascalCase, locale: false});\n\n\t\t\t\tif (key.length < 100) { // Prevent abuse\n\t\t\t\t\tcache.set(cacheKey, returnValue);\n\t\t\t\t}\n\n\t\t\t\tkey = returnValue;\n\t\t\t}\n\t\t}\n\n\t\treturn [key, value];\n\t};\n\n\treturn mapObj(input, makeMapper(undefined));\n};\n\nmodule.exports = (input, options) => {\n\tif (Array.isArray(input)) {\n\t\treturn Object.keys(input).map(key => camelCaseConvert(input[key], options));\n\t}\n\n\treturn camelCaseConvert(input, options);\n};\n","'use strict';\n\nconst UPPERCASE = /[\\p{Lu}]/u;\nconst LOWERCASE = /[\\p{Ll}]/u;\nconst LEADING_CAPITAL = /^[\\p{Lu}](?![\\p{Lu}])/gu;\nconst IDENTIFIER = /([\\p{Alpha}\\p{N}_]|$)/u;\nconst SEPARATORS = /[_.\\- ]+/;\n\nconst LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);\nconst SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');\nconst NUMBERS_AND_IDENTIFIER = new RegExp('\\\\d+' + IDENTIFIER.source, 'gu');\n\nconst preserveCamelCase = (string, toLowerCase, toUpperCase) => {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\n\tfor (let i = 0; i < string.length; i++) {\n\t\tconst character = string[i];\n\n\t\tif (isLastCharLower && UPPERCASE.test(character)) {\n\t\t\tstring = string.slice(0, i) + '-' + string.slice(i);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\ti++;\n\t\t} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {\n\t\t\tstring = string.slice(0, i - 1) + '-' + string.slice(i - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;\n\t\t}\n\t}\n\n\treturn string;\n};\n\nconst preserveConsecutiveUppercase = (input, toLowerCase) => {\n\tLEADING_CAPITAL.lastIndex = 0;\n\n\treturn input.replace(LEADING_CAPITAL, m1 => toLowerCase(m1));\n};\n\nconst postProcess = (input, toUpperCase) => {\n\tSEPARATORS_AND_IDENTIFIER.lastIndex = 0;\n\tNUMBERS_AND_IDENTIFIER.lastIndex = 0;\n\n\treturn input.replace(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier))\n\t\t.replace(NUMBERS_AND_IDENTIFIER, m => toUpperCase(m));\n};\n\nconst camelCase = (input, options) => {\n\tif (!(typeof input === 'string' || Array.isArray(input))) {\n\t\tthrow new TypeError('Expected the input to be `string | string[]`');\n\t}\n\n\toptions = {\n\t\tpascalCase: false,\n\t\tpreserveConsecutiveUppercase: false,\n\t\t...options\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput = input.map(x => x.trim())\n\t\t\t.filter(x => x.length)\n\t\t\t.join('-');\n\t} else {\n\t\tinput = input.trim();\n\t}\n\n\tif (input.length === 0) {\n\t\treturn '';\n\t}\n\n\tconst toLowerCase = options.locale === false ?\n\t\tstring => string.toLowerCase() :\n\t\tstring => string.toLocaleLowerCase(options.locale);\n\tconst toUpperCase = options.locale === false ?\n\t\tstring => string.toUpperCase() :\n\t\tstring => string.toLocaleUpperCase(options.locale);\n\n\tif (input.length === 1) {\n\t\treturn options.pascalCase ? toUpperCase(input) : toLowerCase(input);\n\t}\n\n\tconst hasUpperCase = input !== toLowerCase(input);\n\n\tif (hasUpperCase) {\n\t\tinput = preserveCamelCase(input, toLowerCase, toUpperCase);\n\t}\n\n\tinput = input.replace(LEADING_SEPARATORS, '');\n\n\tif (options.preserveConsecutiveUppercase) {\n\t\tinput = preserveConsecutiveUppercase(input, toLowerCase);\n\t} else {\n\t\tinput = toLowerCase(input);\n\t}\n\n\tif (options.pascalCase) {\n\t\tinput = toUpperCase(input.charAt(0)) + input.slice(1);\n\t}\n\n\treturn postProcess(input, toUpperCase);\n};\n\nmodule.exports = camelCase;\n// TODO: Remove this for the next major release\nmodule.exports.default = camelCase;\n","'use strict';\n\nconst denyList = new Set([\n\t'ENOTFOUND',\n\t'ENETUNREACH',\n\n\t// SSL errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#L301-L328\n\t'UNABLE_TO_GET_ISSUER_CERT',\n\t'UNABLE_TO_GET_CRL',\n\t'UNABLE_TO_DECRYPT_CERT_SIGNATURE',\n\t'UNABLE_TO_DECRYPT_CRL_SIGNATURE',\n\t'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',\n\t'CERT_SIGNATURE_FAILURE',\n\t'CRL_SIGNATURE_FAILURE',\n\t'CERT_NOT_YET_VALID',\n\t'CERT_HAS_EXPIRED',\n\t'CRL_NOT_YET_VALID',\n\t'CRL_HAS_EXPIRED',\n\t'ERROR_IN_CERT_NOT_BEFORE_FIELD',\n\t'ERROR_IN_CERT_NOT_AFTER_FIELD',\n\t'ERROR_IN_CRL_LAST_UPDATE_FIELD',\n\t'ERROR_IN_CRL_NEXT_UPDATE_FIELD',\n\t'OUT_OF_MEM',\n\t'DEPTH_ZERO_SELF_SIGNED_CERT',\n\t'SELF_SIGNED_CERT_IN_CHAIN',\n\t'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',\n\t'UNABLE_TO_VERIFY_LEAF_SIGNATURE',\n\t'CERT_CHAIN_TOO_LONG',\n\t'CERT_REVOKED',\n\t'INVALID_CA',\n\t'PATH_LENGTH_EXCEEDED',\n\t'INVALID_PURPOSE',\n\t'CERT_UNTRUSTED',\n\t'CERT_REJECTED',\n\t'HOSTNAME_MISMATCH'\n]);\n\n// TODO: Use `error?.code` when targeting Node.js 14\nmodule.exports = error => !denyList.has(error && error.code);\n","'use strict';\n\nconst isObject = value => typeof value === 'object' && value !== null;\nconst mapObjectSkip = Symbol('skip');\n\n// Customized for this use-case\nconst isObjectCustom = value =>\n\tisObject(value) &&\n\t!(value instanceof RegExp) &&\n\t!(value instanceof Error) &&\n\t!(value instanceof Date);\n\nconst mapObject = (object, mapper, options, isSeen = new WeakMap()) => {\n\toptions = {\n\t\tdeep: false,\n\t\ttarget: {},\n\t\t...options\n\t};\n\n\tif (isSeen.has(object)) {\n\t\treturn isSeen.get(object);\n\t}\n\n\tisSeen.set(object, options.target);\n\n\tconst {target} = options;\n\tdelete options.target;\n\n\tconst mapArray = array => array.map(element => isObjectCustom(element) ? mapObject(element, mapper, options, isSeen) : element);\n\tif (Array.isArray(object)) {\n\t\treturn mapArray(object);\n\t}\n\n\tfor (const [key, value] of Object.entries(object)) {\n\t\tconst mapResult = mapper(key, value, object);\n\n\t\tif (mapResult === mapObjectSkip) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet [newKey, newValue, {shouldRecurse = true} = {}] = mapResult;\n\n\t\t// Drop `__proto__` keys.\n\t\tif (newKey === '__proto__') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (options.deep && shouldRecurse && isObjectCustom(newValue)) {\n\t\t\tnewValue = Array.isArray(newValue) ?\n\t\t\t\tmapArray(newValue) :\n\t\t\t\tmapObject(newValue, mapper, options, isSeen);\n\t\t}\n\n\t\ttarget[newKey] = newValue;\n\t}\n\n\treturn target;\n};\n\nmodule.exports = (object, mapper, options) => {\n\tif (!isObject(object)) {\n\t\tthrow new TypeError(`Expected an object, got \\`${object}\\` (${typeof object})`);\n\t}\n\n\treturn mapObject(object, mapper, options);\n};\n\nmodule.exports.mapObjectSkip = mapObjectSkip;\n","'use strict';\n\nclass QuickLRU {\n\tconstructor(options = {}) {\n\t\tif (!(options.maxSize && options.maxSize > 0)) {\n\t\t\tthrow new TypeError('`maxSize` must be a number greater than 0');\n\t\t}\n\n\t\tthis.maxSize = options.maxSize;\n\t\tthis.onEviction = options.onEviction;\n\t\tthis.cache = new Map();\n\t\tthis.oldCache = new Map();\n\t\tthis._size = 0;\n\t}\n\n\t_set(key, value) {\n\t\tthis.cache.set(key, value);\n\t\tthis._size++;\n\n\t\tif (this._size >= this.maxSize) {\n\t\t\tthis._size = 0;\n\n\t\t\tif (typeof this.onEviction === 'function') {\n\t\t\t\tfor (const [key, value] of this.oldCache.entries()) {\n\t\t\t\t\tthis.onEviction(key, value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.oldCache = this.cache;\n\t\t\tthis.cache = new Map();\n\t\t}\n\t}\n\n\tget(key) {\n\t\tif (this.cache.has(key)) {\n\t\t\treturn this.cache.get(key);\n\t\t}\n\n\t\tif (this.oldCache.has(key)) {\n\t\t\tconst value = this.oldCache.get(key);\n\t\t\tthis.oldCache.delete(key);\n\t\t\tthis._set(key, value);\n\t\t\treturn value;\n\t\t}\n\t}\n\n\tset(key, value) {\n\t\tif (this.cache.has(key)) {\n\t\t\tthis.cache.set(key, value);\n\t\t} else {\n\t\t\tthis._set(key, value);\n\t\t}\n\n\t\treturn this;\n\t}\n\n\thas(key) {\n\t\treturn this.cache.has(key) || this.oldCache.has(key);\n\t}\n\n\tpeek(key) {\n\t\tif (this.cache.has(key)) {\n\t\t\treturn this.cache.get(key);\n\t\t}\n\n\t\tif (this.oldCache.has(key)) {\n\t\t\treturn this.oldCache.get(key);\n\t\t}\n\t}\n\n\tdelete(key) {\n\t\tconst deleted = this.cache.delete(key);\n\t\tif (deleted) {\n\t\t\tthis._size--;\n\t\t}\n\n\t\treturn this.oldCache.delete(key) || deleted;\n\t}\n\n\tclear() {\n\t\tthis.cache.clear();\n\t\tthis.oldCache.clear();\n\t\tthis._size = 0;\n\t}\n\n\t* keys() {\n\t\tfor (const [key] of this) {\n\t\t\tyield key;\n\t\t}\n\t}\n\n\t* values() {\n\t\tfor (const [, value] of this) {\n\t\t\tyield value;\n\t\t}\n\t}\n\n\t* [Symbol.iterator]() {\n\t\tfor (const item of this.cache) {\n\t\t\tyield item;\n\t\t}\n\n\t\tfor (const item of this.oldCache) {\n\t\t\tconst [key] = item;\n\t\t\tif (!this.cache.has(key)) {\n\t\t\t\tyield item;\n\t\t\t}\n\t\t}\n\t}\n\n\tget size() {\n\t\tlet oldCacheSize = 0;\n\t\tfor (const key of this.oldCache.keys()) {\n\t\t\tif (!this.cache.has(key)) {\n\t\t\t\toldCacheSize++;\n\t\t\t}\n\t\t}\n\n\t\treturn Math.min(this._size + oldCacheSize, this.maxSize);\n\t}\n}\n\nmodule.exports = QuickLRU;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1 arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","import { useEffect, useLayoutEffect, createContext, useContext, useState, createElement, useRef, useCallback, useDebugValue } from 'react';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\n\nvar noop = function () { };\n// Using noop() as the undefined value as undefined can possibly be replaced\n// by something else. Prettier ignore and extra parentheses are necessary here\n// to ensure that tsc doesn't remove the __NOINLINE__ comment.\n// prettier-ignore\nvar UNDEFINED = ( /*#__NOINLINE__*/noop());\nvar OBJECT = Object;\nvar isUndefined = function (v) { return v === UNDEFINED; };\nvar isFunction = function (v) { return typeof v == 'function'; };\nvar mergeObjects = function (a, b) { return OBJECT.assign({}, a, b); };\nvar STR_UNDEFINED = 'undefined';\n// NOTE: Use function to guarantee it's re-evaluated between jsdom and node runtime for tests.\nvar hasWindow = function () { return typeof window != STR_UNDEFINED; };\nvar hasDocument = function () { return typeof document != STR_UNDEFINED; };\nvar hasRequestAnimationFrame = function () {\n return hasWindow() && typeof window['requestAnimationFrame'] != STR_UNDEFINED;\n};\n\n// use WeakMap to store the object->key mapping\n// so the objects can be garbage collected.\n// WeakMap uses a hashtable under the hood, so the lookup\n// complexity is almost O(1).\nvar table = new WeakMap();\n// counter of the key\nvar counter = 0;\n// A stable hash implementation that supports:\n// - Fast and ensures unique hash properties\n// - Handles unserializable values\n// - Handles object key ordering\n// - Generates short results\n//\n// This is not a serialization function, and the result is not guaranteed to be\n// parsible.\nvar stableHash = function (arg) {\n var type = typeof arg;\n var constructor = arg && arg.constructor;\n var isDate = constructor == Date;\n var result;\n var index;\n if (OBJECT(arg) === arg && !isDate && constructor != RegExp) {\n // Object/function, not null/date/regexp. Use WeakMap to store the id first.\n // If it's already hashed, directly return the result.\n result = table.get(arg);\n if (result)\n return result;\n // Store the hash first for circular reference detection before entering the\n // recursive `stableHash` calls.\n // For other objects like set and map, we use this id directly as the hash.\n result = ++counter + '~';\n table.set(arg, result);\n if (constructor == Array) {\n // Array.\n result = '@';\n for (index = 0; index < arg.length; index++) {\n result += stableHash(arg[index]) + ',';\n }\n table.set(arg, result);\n }\n if (constructor == OBJECT) {\n // Object, sort keys.\n result = '#';\n var keys = OBJECT.keys(arg).sort();\n while (!isUndefined((index = keys.pop()))) {\n if (!isUndefined(arg[index])) {\n result += index + ':' + stableHash(arg[index]) + ',';\n }\n }\n table.set(arg, result);\n }\n }\n else {\n result = isDate\n ? arg.toJSON()\n : type == 'symbol'\n ? arg.toString()\n : type == 'string'\n ? JSON.stringify(arg)\n : '' + arg;\n }\n return result;\n};\n\n/**\n * Due to bug https://bugs.chromium.org/p/chromium/issues/detail?id=678075,\n * it's not reliable to detect if the browser is currently online or offline\n * based on `navigator.onLine`.\n * As a work around, we always assume it's online on first load, and change\n * the status upon `online` or `offline` events.\n */\nvar online = true;\nvar isOnline = function () { return online; };\nvar hasWin = hasWindow();\nvar hasDoc = hasDocument();\n// For node and React Native, `add/removeEventListener` doesn't exist on window.\nvar onWindowEvent = hasWin && window.addEventListener\n ? window.addEventListener.bind(window)\n : noop;\nvar onDocumentEvent = hasDoc ? document.addEventListener.bind(document) : noop;\nvar offWindowEvent = hasWin && window.removeEventListener\n ? window.removeEventListener.bind(window)\n : noop;\nvar offDocumentEvent = hasDoc\n ? document.removeEventListener.bind(document)\n : noop;\nvar isVisible = function () {\n var visibilityState = hasDoc && document.visibilityState;\n return isUndefined(visibilityState) || visibilityState !== 'hidden';\n};\nvar initFocus = function (callback) {\n // focus revalidate\n onDocumentEvent('visibilitychange', callback);\n onWindowEvent('focus', callback);\n return function () {\n offDocumentEvent('visibilitychange', callback);\n offWindowEvent('focus', callback);\n };\n};\nvar initReconnect = function (callback) {\n // revalidate on reconnected\n var onOnline = function () {\n online = true;\n callback();\n };\n // nothing to revalidate, just update the status\n var onOffline = function () {\n online = false;\n };\n onWindowEvent('online', onOnline);\n onWindowEvent('offline', onOffline);\n return function () {\n offWindowEvent('online', onOnline);\n offWindowEvent('offline', onOffline);\n };\n};\nvar preset = {\n isOnline: isOnline,\n isVisible: isVisible\n};\nvar defaultConfigOptions = {\n initFocus: initFocus,\n initReconnect: initReconnect\n};\n\nvar IS_SERVER = !hasWindow() || 'Deno' in window;\n// Polyfill requestAnimationFrame\nvar rAF = function (f) {\n return hasRequestAnimationFrame() ? window['requestAnimationFrame'](f) : setTimeout(f, 1);\n};\n// React currently throws a warning when using useLayoutEffect on the server.\n// To get around it, we can conditionally useEffect on the server (no-op) and\n// useLayoutEffect in the browser.\nvar useIsomorphicLayoutEffect = IS_SERVER ? useEffect : useLayoutEffect;\n// This assignment is to extend the Navigator type to use effectiveType.\nvar navigatorConnection = typeof navigator !== 'undefined' &&\n navigator.connection;\n// Adjust the config based on slow connection status (<= 70Kbps).\nvar slowConnection = !IS_SERVER &&\n navigatorConnection &&\n (['slow-2g', '2g'].includes(navigatorConnection.effectiveType) ||\n navigatorConnection.saveData);\n\nvar serialize = function (key) {\n if (isFunction(key)) {\n try {\n key = key();\n }\n catch (err) {\n // dependencies not ready\n key = '';\n }\n }\n var args = [].concat(key);\n // If key is not falsy, or not an empty array, hash it.\n key =\n typeof key == 'string'\n ? key\n : (Array.isArray(key) ? key.length : key)\n ? stableHash(key)\n : '';\n var infoKey = key ? '$swr$' + key : '';\n return [key, args, infoKey];\n};\n\n// Global state used to deduplicate requests and store listeners\nvar SWRGlobalState = new WeakMap();\n\nvar FOCUS_EVENT = 0;\nvar RECONNECT_EVENT = 1;\nvar MUTATE_EVENT = 2;\n\nvar broadcastState = function (cache, key, data, error, isValidating, revalidate, broadcast) {\n if (broadcast === void 0) { broadcast = true; }\n var _a = SWRGlobalState.get(cache), EVENT_REVALIDATORS = _a[0], STATE_UPDATERS = _a[1], FETCH = _a[3];\n var revalidators = EVENT_REVALIDATORS[key];\n var updaters = STATE_UPDATERS[key];\n // Cache was populated, update states of all hooks.\n if (broadcast && updaters) {\n for (var i = 0; i < updaters.length; ++i) {\n updaters[i](data, error, isValidating);\n }\n }\n // If we also need to revalidate, only do it for the first hook.\n if (revalidate) {\n // Invalidate the key by deleting the concurrent request markers so new\n // requests will not be deduped.\n delete FETCH[key];\n if (revalidators && revalidators[0]) {\n return revalidators[0](MUTATE_EVENT).then(function () {\n return cache.get(key);\n });\n }\n }\n return cache.get(key);\n};\n\n// Global timestamp.\nvar __timestamp = 0;\nvar getTimestamp = function () { return ++__timestamp; };\n\nvar internalMutate = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return __awaiter(void 0, void 0, void 0, function () {\n var cache, _key, _data, _opts, options, populateCache, revalidate, rollbackOnError, customOptimisticData, _a, key, keyInfo, _b, MUTATION, data, error, beforeMutationTs, hasCustomOptimisticData, rollbackData, optimisticData, res;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n cache = args[0], _key = args[1], _data = args[2], _opts = args[3];\n options = typeof _opts === 'boolean' ? { revalidate: _opts } : _opts || {};\n populateCache = isUndefined(options.populateCache)\n ? true\n : options.populateCache;\n revalidate = options.revalidate !== false;\n rollbackOnError = options.rollbackOnError !== false;\n customOptimisticData = options.optimisticData;\n _a = serialize(_key), key = _a[0], keyInfo = _a[2];\n if (!key)\n return [2 /*return*/];\n _b = SWRGlobalState.get(cache), MUTATION = _b[2];\n // If there is no new data provided, revalidate the key with current state.\n if (args.length < 3) {\n // Revalidate and broadcast state.\n return [2 /*return*/, broadcastState(cache, key, cache.get(key), UNDEFINED, UNDEFINED, revalidate, true)];\n }\n data = _data;\n beforeMutationTs = getTimestamp();\n MUTATION[key] = [beforeMutationTs, 0];\n hasCustomOptimisticData = !isUndefined(customOptimisticData);\n rollbackData = cache.get(key);\n // Do optimistic data update.\n if (hasCustomOptimisticData) {\n optimisticData = isFunction(customOptimisticData)\n ? customOptimisticData(rollbackData)\n : customOptimisticData;\n cache.set(key, optimisticData);\n broadcastState(cache, key, optimisticData);\n }\n if (isFunction(data)) {\n // `data` is a function, call it passing current cache value.\n try {\n data = data(cache.get(key));\n }\n catch (err) {\n // If it throws an error synchronously, we shouldn't update the cache.\n error = err;\n }\n }\n if (!(data && isFunction(data.then))) return [3 /*break*/, 2];\n return [4 /*yield*/, data.catch(function (err) {\n error = err;\n })\n // Check if other mutations have occurred since we've started this mutation.\n // If there's a race we don't update cache or broadcast the change,\n // just return the data.\n ];\n case 1:\n // This means that the mutation is async, we need to check timestamps to\n // avoid race conditions.\n data = _c.sent();\n // Check if other mutations have occurred since we've started this mutation.\n // If there's a race we don't update cache or broadcast the change,\n // just return the data.\n if (beforeMutationTs !== MUTATION[key][0]) {\n if (error)\n throw error;\n return [2 /*return*/, data];\n }\n else if (error && hasCustomOptimisticData && rollbackOnError) {\n // Rollback. Always populate the cache in this case but without\n // transforming the data.\n populateCache = true;\n data = rollbackData;\n cache.set(key, rollbackData);\n }\n _c.label = 2;\n case 2:\n // If we should write back the cache after request.\n if (populateCache) {\n if (!error) {\n // Transform the result into data.\n if (isFunction(populateCache)) {\n data = populateCache(data, rollbackData);\n }\n // Only update cached data if there's no error. Data can be `undefined` here.\n cache.set(key, data);\n }\n // Always update or reset the error.\n cache.set(keyInfo, mergeObjects(cache.get(keyInfo), { error: error }));\n }\n // Reset the timestamp to mark the mutation has ended.\n MUTATION[key][1] = getTimestamp();\n return [4 /*yield*/, broadcastState(cache, key, data, error, UNDEFINED, revalidate, !!populateCache)\n // Throw error or return data\n ];\n case 3:\n res = _c.sent();\n // Throw error or return data\n if (error)\n throw error;\n return [2 /*return*/, populateCache ? res : data];\n }\n });\n });\n};\n\nvar revalidateAllKeys = function (revalidators, type) {\n for (var key in revalidators) {\n if (revalidators[key][0])\n revalidators[key][0](type);\n }\n};\nvar initCache = function (provider, options) {\n // The global state for a specific provider will be used to deduplicate\n // requests and store listeners. As well as a mutate function that bound to\n // the cache.\n // Provider's global state might be already initialized. Let's try to get the\n // global state associated with the provider first.\n if (!SWRGlobalState.has(provider)) {\n var opts = mergeObjects(defaultConfigOptions, options);\n // If there's no global state bound to the provider, create a new one with the\n // new mutate function.\n var EVENT_REVALIDATORS = {};\n var mutate = internalMutate.bind(UNDEFINED, provider);\n var unmount = noop;\n // Update the state if it's new, or the provider has been extended.\n SWRGlobalState.set(provider, [EVENT_REVALIDATORS, {}, {}, {}, mutate]);\n // This is a new provider, we need to initialize it and setup DOM events\n // listeners for `focus` and `reconnect` actions.\n if (!IS_SERVER) {\n // When listening to the native events for auto revalidations,\n // we intentionally put a delay (setTimeout) here to make sure they are\n // fired after immediate JavaScript executions, which can possibly be\n // React's state updates.\n // This avoids some unnecessary revalidations such as\n // https://github.com/vercel/swr/issues/1680.\n var releaseFocus_1 = opts.initFocus(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, FOCUS_EVENT)));\n var releaseReconnect_1 = opts.initReconnect(setTimeout.bind(UNDEFINED, revalidateAllKeys.bind(UNDEFINED, EVENT_REVALIDATORS, RECONNECT_EVENT)));\n unmount = function () {\n releaseFocus_1 && releaseFocus_1();\n releaseReconnect_1 && releaseReconnect_1();\n // When un-mounting, we need to remove the cache provider from the state\n // storage too because it's a side-effect. Otherwise when re-mounting we\n // will not re-register those event listeners.\n SWRGlobalState.delete(provider);\n };\n }\n // We might want to inject an extra layer on top of `provider` in the future,\n // such as key serialization, auto GC, etc.\n // For now, it's just a `Map` interface without any modifications.\n return [provider, mutate, unmount];\n }\n return [provider, SWRGlobalState.get(provider)[4]];\n};\n\n// error retry\nvar onErrorRetry = function (_, __, config, revalidate, opts) {\n var maxRetryCount = config.errorRetryCount;\n var currentRetryCount = opts.retryCount;\n // Exponential backoff\n var timeout = ~~((Math.random() + 0.5) *\n (1 << (currentRetryCount < 8 ? currentRetryCount : 8))) * config.errorRetryInterval;\n if (!isUndefined(maxRetryCount) && currentRetryCount > maxRetryCount) {\n return;\n }\n setTimeout(revalidate, timeout, opts);\n};\n// Default cache provider\nvar _a = initCache(new Map()), cache = _a[0], mutate = _a[1];\n// Default config\nvar defaultConfig = mergeObjects({\n // events\n onLoadingSlow: noop,\n onSuccess: noop,\n onError: noop,\n onErrorRetry: onErrorRetry,\n onDiscarded: noop,\n // switches\n revalidateOnFocus: true,\n revalidateOnReconnect: true,\n revalidateIfStale: true,\n shouldRetryOnError: true,\n // timeouts\n errorRetryInterval: slowConnection ? 10000 : 5000,\n focusThrottleInterval: 5 * 1000,\n dedupingInterval: 2 * 1000,\n loadingTimeout: slowConnection ? 5000 : 3000,\n // providers\n compare: function (currentData, newData) {\n return stableHash(currentData) == stableHash(newData);\n },\n isPaused: function () { return false; },\n cache: cache,\n mutate: mutate,\n fallback: {}\n}, \n// use web preset by default\npreset);\n\nvar mergeConfigs = function (a, b) {\n // Need to create a new object to avoid mutating the original here.\n var v = mergeObjects(a, b);\n // If two configs are provided, merge their `use` and `fallback` options.\n if (b) {\n var u1 = a.use, f1 = a.fallback;\n var u2 = b.use, f2 = b.fallback;\n if (u1 && u2) {\n v.use = u1.concat(u2);\n }\n if (f1 && f2) {\n v.fallback = mergeObjects(f1, f2);\n }\n }\n return v;\n};\n\nvar SWRConfigContext = createContext({});\nvar SWRConfig$1 = function (props) {\n var value = props.value;\n // Extend parent context values and middleware.\n var extendedConfig = mergeConfigs(useContext(SWRConfigContext), value);\n // Should not use the inherited provider.\n var provider = value && value.provider;\n // Use a lazy initialized state to create the cache on first access.\n var cacheContext = useState(function () {\n return provider\n ? initCache(provider(extendedConfig.cache || cache), value)\n : UNDEFINED;\n })[0];\n // Override the cache if a new provider is given.\n if (cacheContext) {\n extendedConfig.cache = cacheContext[0];\n extendedConfig.mutate = cacheContext[1];\n }\n // Unsubscribe events.\n useIsomorphicLayoutEffect(function () { return (cacheContext ? cacheContext[2] : UNDEFINED); }, []);\n return createElement(SWRConfigContext.Provider, mergeObjects(props, {\n value: extendedConfig\n }));\n};\n\n/**\n * An implementation of state with dependency-tracking.\n */\nvar useStateWithDeps = function (state, unmountedRef) {\n var rerender = useState({})[1];\n var stateRef = useRef(state);\n // If a state property (data, error or isValidating) is accessed by the render\n // function, we mark the property as a dependency so if it is updated again\n // in the future, we trigger a rerender.\n // This is also known as dependency-tracking.\n var stateDependenciesRef = useRef({\n data: false,\n error: false,\n isValidating: false\n });\n /**\n * @param payload To change stateRef, pass the values explicitly to setState:\n * @example\n * ```js\n * setState({\n * isValidating: false\n * data: newData // set data to newData\n * error: undefined // set error to undefined\n * })\n *\n * setState({\n * isValidating: false\n * data: undefined // set data to undefined\n * error: err // set error to err\n * })\n * ```\n */\n var setState = useCallback(function (payload) {\n var shouldRerender = false;\n var currentState = stateRef.current;\n for (var _ in payload) {\n var k = _;\n // If the property has changed, update the state and mark rerender as\n // needed.\n if (currentState[k] !== payload[k]) {\n currentState[k] = payload[k];\n // If the property is accessed by the component, a rerender should be\n // triggered.\n if (stateDependenciesRef.current[k]) {\n shouldRerender = true;\n }\n }\n }\n if (shouldRerender && !unmountedRef.current) {\n rerender({});\n }\n }, \n // config.suspense isn't allowed to change during the lifecycle\n // eslint-disable-next-line react-hooks/exhaustive-deps\n []);\n // Always update the state reference.\n useIsomorphicLayoutEffect(function () {\n stateRef.current = state;\n });\n return [stateRef, stateDependenciesRef.current, setState];\n};\n\nvar normalize = function (args) {\n return isFunction(args[1])\n ? [args[0], args[1], args[2] || {}]\n : [args[0], null, (args[1] === null ? args[2] : args[1]) || {}];\n};\n\nvar useSWRConfig = function () {\n return mergeObjects(defaultConfig, useContext(SWRConfigContext));\n};\n\n// It's tricky to pass generic types as parameters, so we just directly override\n// the types here.\nvar withArgs = function (hook) {\n return function useSWRArgs() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n // Get the default and inherited configuration.\n var fallbackConfig = useSWRConfig();\n // Normalize arguments.\n var _a = normalize(args), key = _a[0], fn = _a[1], _config = _a[2];\n // Merge configurations.\n var config = mergeConfigs(fallbackConfig, _config);\n // Apply middleware\n var next = hook;\n var use = config.use;\n if (use) {\n for (var i = use.length; i-- > 0;) {\n next = use[i](next);\n }\n }\n return next(key, fn || config.fetcher, config);\n };\n};\n\n// Add a callback function to a list of keyed callback functions and return\n// the unsubscribe function.\nvar subscribeCallback = function (key, callbacks, callback) {\n var keyedRevalidators = callbacks[key] || (callbacks[key] = []);\n keyedRevalidators.push(callback);\n return function () {\n var index = keyedRevalidators.indexOf(callback);\n if (index >= 0) {\n // O(1): faster than splice\n keyedRevalidators[index] = keyedRevalidators[keyedRevalidators.length - 1];\n keyedRevalidators.pop();\n }\n };\n};\n\nvar WITH_DEDUPE = { dedupe: true };\nvar useSWRHandler = function (_key, fetcher, config) {\n var cache = config.cache, compare = config.compare, fallbackData = config.fallbackData, suspense = config.suspense, revalidateOnMount = config.revalidateOnMount, refreshInterval = config.refreshInterval, refreshWhenHidden = config.refreshWhenHidden, refreshWhenOffline = config.refreshWhenOffline;\n var _a = SWRGlobalState.get(cache), EVENT_REVALIDATORS = _a[0], STATE_UPDATERS = _a[1], MUTATION = _a[2], FETCH = _a[3];\n // `key` is the identifier of the SWR `data` state, `keyInfo` holds extra\n // states such as `error` and `isValidating` inside,\n // all of them are derived from `_key`.\n // `fnArgs` is an array of arguments parsed from the key, which will be passed\n // to the fetcher.\n var _b = serialize(_key), key = _b[0], fnArgs = _b[1], keyInfo = _b[2];\n // If it's the initial render of this hook.\n var initialMountedRef = useRef(false);\n // If the hook is unmounted already. This will be used to prevent some effects\n // to be called after unmounting.\n var unmountedRef = useRef(false);\n // Refs to keep the key and config.\n var keyRef = useRef(key);\n var fetcherRef = useRef(fetcher);\n var configRef = useRef(config);\n var getConfig = function () { return configRef.current; };\n var isActive = function () { return getConfig().isVisible() && getConfig().isOnline(); };\n var patchFetchInfo = function (info) {\n return cache.set(keyInfo, mergeObjects(cache.get(keyInfo), info));\n };\n // Get the current state that SWR should return.\n var cached = cache.get(key);\n var fallback = isUndefined(fallbackData)\n ? config.fallback[key]\n : fallbackData;\n var data = isUndefined(cached) ? fallback : cached;\n var info = cache.get(keyInfo) || {};\n var error = info.error;\n var isInitialMount = !initialMountedRef.current;\n // - Suspense mode and there's stale data for the initial render.\n // - Not suspense mode and there is no fallback data and `revalidateIfStale` is enabled.\n // - `revalidateIfStale` is enabled but `data` is not defined.\n var shouldRevalidate = function () {\n // If `revalidateOnMount` is set, we take the value directly.\n if (isInitialMount && !isUndefined(revalidateOnMount))\n return revalidateOnMount;\n // If it's paused, we skip revalidation.\n if (getConfig().isPaused())\n return false;\n // Under suspense mode, it will always fetch on render if there is no\n // stale data so no need to revalidate immediately on mount again.\n // If data exists, only revalidate if `revalidateIfStale` is true.\n if (suspense)\n return isUndefined(data) ? false : config.revalidateIfStale;\n // If there is no stale data, we need to revalidate on mount;\n // If `revalidateIfStale` is set to true, we will always revalidate.\n return isUndefined(data) || config.revalidateIfStale;\n };\n // Resolve the current validating state.\n var resolveValidating = function () {\n if (!key || !fetcher)\n return false;\n if (info.isValidating)\n return true;\n // If it's not mounted yet and it should revalidate on mount, revalidate.\n return isInitialMount && shouldRevalidate();\n };\n var isValidating = resolveValidating();\n var _c = useStateWithDeps({\n data: data,\n error: error,\n isValidating: isValidating\n }, unmountedRef), stateRef = _c[0], stateDependencies = _c[1], setState = _c[2];\n // The revalidation function is a carefully crafted wrapper of the original\n // `fetcher`, to correctly handle the many edge cases.\n var revalidate = useCallback(function (revalidateOpts) { return __awaiter(void 0, void 0, void 0, function () {\n var currentFetcher, newData, startAt, loading, opts, shouldStartNewRequest, isCurrentKeyMounted, cleanupState, newState, finishRequestAndUpdateState, mutationInfo, err_1;\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n currentFetcher = fetcherRef.current;\n if (!key ||\n !currentFetcher ||\n unmountedRef.current ||\n getConfig().isPaused()) {\n return [2 /*return*/, false];\n }\n loading = true;\n opts = revalidateOpts || {};\n shouldStartNewRequest = !FETCH[key] || !opts.dedupe;\n isCurrentKeyMounted = function () {\n return !unmountedRef.current &&\n key === keyRef.current &&\n initialMountedRef.current;\n };\n cleanupState = function () {\n // Check if it's still the same request before deleting.\n var requestInfo = FETCH[key];\n if (requestInfo && requestInfo[1] === startAt) {\n delete FETCH[key];\n }\n };\n newState = { isValidating: false };\n finishRequestAndUpdateState = function () {\n patchFetchInfo({ isValidating: false });\n // We can only set state if it's safe (still mounted with the same key).\n if (isCurrentKeyMounted()) {\n setState(newState);\n }\n };\n // Start fetching. Change the `isValidating` state, update the cache.\n patchFetchInfo({\n isValidating: true\n });\n setState({ isValidating: true });\n _b.label = 1;\n case 1:\n _b.trys.push([1, 3, , 4]);\n if (shouldStartNewRequest) {\n // Tell all other hooks to change the `isValidating` state.\n broadcastState(cache, key, stateRef.current.data, stateRef.current.error, true);\n // If no cache being rendered currently (it shows a blank page),\n // we trigger the loading slow event.\n if (config.loadingTimeout && !cache.get(key)) {\n setTimeout(function () {\n if (loading && isCurrentKeyMounted()) {\n getConfig().onLoadingSlow(key, config);\n }\n }, config.loadingTimeout);\n }\n // Start the request and save the timestamp.\n FETCH[key] = [currentFetcher.apply(void 0, fnArgs), getTimestamp()];\n }\n _a = FETCH[key], newData = _a[0], startAt = _a[1];\n return [4 /*yield*/, newData];\n case 2:\n newData = _b.sent();\n if (shouldStartNewRequest) {\n // If the request isn't interrupted, clean it up after the\n // deduplication interval.\n setTimeout(cleanupState, config.dedupingInterval);\n }\n // If there're other ongoing request(s), started after the current one,\n // we need to ignore the current one to avoid possible race conditions:\n // req1------------------>res1 (current one)\n // req2---------------->res2\n // the request that fired later will always be kept.\n // The timestamp maybe be `undefined` or a number\n if (!FETCH[key] || FETCH[key][1] !== startAt) {\n if (shouldStartNewRequest) {\n if (isCurrentKeyMounted()) {\n getConfig().onDiscarded(key);\n }\n }\n return [2 /*return*/, false];\n }\n // Clear error.\n patchFetchInfo({\n error: UNDEFINED\n });\n newState.error = UNDEFINED;\n mutationInfo = MUTATION[key];\n if (!isUndefined(mutationInfo) &&\n // case 1\n (startAt <= mutationInfo[0] ||\n // case 2\n startAt <= mutationInfo[1] ||\n // case 3\n mutationInfo[1] === 0)) {\n finishRequestAndUpdateState();\n if (shouldStartNewRequest) {\n if (isCurrentKeyMounted()) {\n getConfig().onDiscarded(key);\n }\n }\n return [2 /*return*/, false];\n }\n // Deep compare with latest state to avoid extra re-renders.\n // For local state, compare and assign.\n if (!compare(stateRef.current.data, newData)) {\n newState.data = newData;\n }\n else {\n // data and newData are deeply equal\n // it should be safe to broadcast the stale data\n newState.data = stateRef.current.data;\n // At the end of this function, `brocastState` invokes the `onStateUpdate` function,\n // which takes care of avoiding the re-render\n }\n // For global state, it's possible that the key has changed.\n // https://github.com/vercel/swr/pull/1058\n if (!compare(cache.get(key), newData)) {\n cache.set(key, newData);\n }\n // Trigger the successful callback if it's the original request.\n if (shouldStartNewRequest) {\n if (isCurrentKeyMounted()) {\n getConfig().onSuccess(newData, key, config);\n }\n }\n return [3 /*break*/, 4];\n case 3:\n err_1 = _b.sent();\n cleanupState();\n // Not paused, we continue handling the error. Otherwise discard it.\n if (!getConfig().isPaused()) {\n // Get a new error, don't use deep comparison for errors.\n patchFetchInfo({ error: err_1 });\n newState.error = err_1;\n // Error event and retry logic. Only for the actual request, not\n // deduped ones.\n if (shouldStartNewRequest && isCurrentKeyMounted()) {\n getConfig().onError(err_1, key, config);\n if ((typeof config.shouldRetryOnError === 'boolean' &&\n config.shouldRetryOnError) ||\n (isFunction(config.shouldRetryOnError) &&\n config.shouldRetryOnError(err_1))) {\n // When retrying, dedupe is always enabled\n if (isActive()) {\n // If it's active, stop. It will auto revalidate when refocusing\n // or reconnecting.\n getConfig().onErrorRetry(err_1, key, config, revalidate, {\n retryCount: (opts.retryCount || 0) + 1,\n dedupe: true\n });\n }\n }\n }\n }\n return [3 /*break*/, 4];\n case 4:\n // Mark loading as stopped.\n loading = false;\n // Update the current hook's state.\n finishRequestAndUpdateState();\n // Here is the source of the request, need to tell all other hooks to\n // update their states.\n if (isCurrentKeyMounted() && shouldStartNewRequest) {\n broadcastState(cache, key, newState.data, newState.error, false);\n }\n return [2 /*return*/, true];\n }\n });\n }); }, \n // `setState` is immutable, and `eventsCallback`, `fnArgs`, `keyInfo`,\n // and `keyValidating` are depending on `key`, so we can exclude them from\n // the deps array.\n //\n // FIXME:\n // `fn` and `config` might be changed during the lifecycle,\n // but they might be changed every render like this.\n // `useSWR('key', () => fetch('/api/'), { suspense: true })`\n // So we omit the values from the deps array\n // even though it might cause unexpected behaviors.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [key]);\n // Similar to the global mutate, but bound to the current cache and key.\n // `cache` isn't allowed to change during the lifecycle.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n var boundMutate = useCallback(\n // By using `bind` we don't need to modify the size of the rest arguments.\n // Due to https://github.com/microsoft/TypeScript/issues/37181, we have to\n // cast it to any for now.\n internalMutate.bind(UNDEFINED, cache, function () { return keyRef.current; }), \n // eslint-disable-next-line react-hooks/exhaustive-deps\n []);\n // Always update fetcher and config refs.\n useIsomorphicLayoutEffect(function () {\n fetcherRef.current = fetcher;\n configRef.current = config;\n });\n // After mounted or key changed.\n useIsomorphicLayoutEffect(function () {\n if (!key)\n return;\n var keyChanged = key !== keyRef.current;\n var softRevalidate = revalidate.bind(UNDEFINED, WITH_DEDUPE);\n // Expose state updater to global event listeners. So we can update hook's\n // internal state from the outside.\n var onStateUpdate = function (updatedData, updatedError, updatedIsValidating) {\n setState(mergeObjects({\n error: updatedError,\n isValidating: updatedIsValidating\n }, \n // Since `setState` only shallowly compares states, we do a deep\n // comparison here.\n compare(stateRef.current.data, updatedData)\n ? UNDEFINED\n : {\n data: updatedData\n }));\n };\n // Expose revalidators to global event listeners. So we can trigger\n // revalidation from the outside.\n var nextFocusRevalidatedAt = 0;\n var onRevalidate = function (type) {\n if (type == FOCUS_EVENT) {\n var now = Date.now();\n if (getConfig().revalidateOnFocus &&\n now > nextFocusRevalidatedAt &&\n isActive()) {\n nextFocusRevalidatedAt = now + getConfig().focusThrottleInterval;\n softRevalidate();\n }\n }\n else if (type == RECONNECT_EVENT) {\n if (getConfig().revalidateOnReconnect && isActive()) {\n softRevalidate();\n }\n }\n else if (type == MUTATE_EVENT) {\n return revalidate();\n }\n return;\n };\n var unsubUpdate = subscribeCallback(key, STATE_UPDATERS, onStateUpdate);\n var unsubEvents = subscribeCallback(key, EVENT_REVALIDATORS, onRevalidate);\n // Mark the component as mounted and update corresponding refs.\n unmountedRef.current = false;\n keyRef.current = key;\n initialMountedRef.current = true;\n // When `key` updates, reset the state to the initial value\n // and trigger a rerender if necessary.\n if (keyChanged) {\n setState({\n data: data,\n error: error,\n isValidating: isValidating\n });\n }\n // Trigger a revalidation.\n if (shouldRevalidate()) {\n if (isUndefined(data) || IS_SERVER) {\n // Revalidate immediately.\n softRevalidate();\n }\n else {\n // Delay the revalidate if we have data to return so we won't block\n // rendering.\n rAF(softRevalidate);\n }\n }\n return function () {\n // Mark it as unmounted.\n unmountedRef.current = true;\n unsubUpdate();\n unsubEvents();\n };\n }, [key, revalidate]);\n // Polling\n useIsomorphicLayoutEffect(function () {\n var timer;\n function next() {\n // Use the passed interval\n // ...or invoke the function with the updated data to get the interval\n var interval = isFunction(refreshInterval)\n ? refreshInterval(data)\n : refreshInterval;\n // We only start next interval if `refreshInterval` is not 0, and:\n // - `force` is true, which is the start of polling\n // - or `timer` is not 0, which means the effect wasn't canceled\n if (interval && timer !== -1) {\n timer = setTimeout(execute, interval);\n }\n }\n function execute() {\n // Check if it's OK to execute:\n // Only revalidate when the page is visible, online and not errored.\n if (!stateRef.current.error &&\n (refreshWhenHidden || getConfig().isVisible()) &&\n (refreshWhenOffline || getConfig().isOnline())) {\n revalidate(WITH_DEDUPE).then(next);\n }\n else {\n // Schedule next interval to check again.\n next();\n }\n }\n next();\n return function () {\n if (timer) {\n clearTimeout(timer);\n timer = -1;\n }\n };\n }, [refreshInterval, refreshWhenHidden, refreshWhenOffline, revalidate]);\n // Display debug info in React DevTools.\n useDebugValue(data);\n // In Suspense mode, we can't return the empty `data` state.\n // If there is `error`, the `error` needs to be thrown to the error boundary.\n // If there is no `error`, the `revalidation` promise needs to be thrown to\n // the suspense boundary.\n if (suspense && isUndefined(data) && key) {\n // Always update fetcher and config refs even with the Suspense mode.\n fetcherRef.current = fetcher;\n configRef.current = config;\n unmountedRef.current = false;\n throw isUndefined(error) ? revalidate(WITH_DEDUPE) : error;\n }\n return {\n mutate: boundMutate,\n get data() {\n stateDependencies.data = true;\n return data;\n },\n get error() {\n stateDependencies.error = true;\n return error;\n },\n get isValidating() {\n stateDependencies.isValidating = true;\n return isValidating;\n }\n };\n};\nvar SWRConfig = OBJECT.defineProperty(SWRConfig$1, 'default', {\n value: defaultConfig\n});\nvar unstable_serialize = function (key) { return serialize(key)[0]; };\nvar useSWR = withArgs(useSWRHandler);\n\n// useSWR\n\nexport { SWRConfig, useSWR as default, mutate, unstable_serialize, useSWRConfig };\n"],"names":["Name","TokenEventNames","TokenRoutes","TokenSessionStorageKeys","NOT_LOGGED_IN_USER_ID","PUBLIC_ACCESS","USER_ACCESS","e","this","message","prototype","Error","name","r","window","atob","bind","t","String","replace","length","n","o","a","i","c","charAt","fromCharCode","indexOf","decodeURIComponent","charCodeAt","toString","toUpperCase","header","JSON","parse","split","OidcToken","constructor","token","claim","payload","Token","OidcAccessToken","super","isAuthenticatedCustomer","customerId","apiClientContext","createContext","undefined","context","useContext","__assign","Object","assign","s","arguments","p","hasOwnProperty","call","apply","getCustomerProductListTypeProductLists","client","productListType","headers","options","createFetcher","customInstance","url","concat","method","createCustomerProductListTypeProductList","globalSharedProductListDtoBody","data","updateCustomerProductListTypeProductList","productListId","fn","thisArg","getPrototypeOf","kindOf","cache","create","thing","str","slice","toLowerCase","kindOfTest","type","typeOfTest","isArray","Array","isUndefined","isArrayBuffer","isString","isFunction","isNumber","isObject","isPlainObject","val","Symbol","toStringTag","iterator","isDate","isFile","isBlob","isFileList","isURLSearchParams","forEach","obj","allOwnKeys","l","keys","getOwnPropertyNames","len","key","findKey","_key","_global","globalThis","self","global","isContextDefined","isTypedArray","TypedArray","Uint8Array","isHTMLForm","prop","isRegExp","reduceDescriptors","reducer","descriptors","getOwnPropertyDescriptors","reducedDescriptors","descriptor","ret","defineProperties","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","isAsyncFn","isBuffer","isFormData","kind","FormData","append","isArrayBufferView","result","ArrayBuffer","isView","buffer","isBoolean","isStream","pipe","merge","caseless","assignValue","targetKey","extend","b","trim","stripBOM","content","inherits","superConstructor","props","defineProperty","value","toFlatObject","sourceObj","destObj","filter","propFilter","merged","endsWith","searchString","position","lastIndex","toArray","arr","forEachEntry","next","done","pair","matchAll","regExp","matches","exec","push","hasOwnProp","freezeMethods","enumerable","writable","set","toObjectSet","arrayOrString","delimiter","define","toCamelCase","m","p1","p2","noop","toFiniteNumber","defaultValue","Number","isFinite","generateString","size","alphabet","Math","random","isSpecCompliantForm","toJSONObject","stack","visit","source","target","reducedValue","isThenable","then","catch","AxiosError","code","config","request","response","captureStackTrace","utils","toJSON","description","number","fileName","lineNumber","columnNumber","status","from","error","customProps","axiosError","cause","isVisitable","removeBrackets","renderKey","path","dots","map","join","predicates","test","formData","TypeError","metaTokens","indexes","option","visitor","defaultVisitor","useBlob","Blob","convertValue","toISOString","Buffer","stringify","some","isFlatArray","el","index","exposedHelpers","build","pop","encode","charMap","encodeURIComponent","match","AxiosURLSearchParams","params","_pairs","encoder","_encode","buildURL","serializeFn","serialize","serializedParams","hashmarkIndex","handlers","use","fulfilled","rejected","synchronous","runWhen","eject","id","clear","h","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","isBrowser","classes","URLSearchParams","isStandardBrowserEnv","product","navigator","document","isStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","protocols","buildPath","isNumericKey","isLast","arrayToObject","entries","parsePropPath","defaults","transitional","adapter","transformRequest","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","helpers","isNode","toURLEncodedForm","formSerializer","_FormData","env","rawValue","parser","stringifySafely","transformResponse","JSONRequested","responseType","strictJSONParsing","ERR_BAD_RESPONSE","timeout","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","common","ignoreDuplicateOf","$internals","normalizeHeader","normalizeValue","matchHeaderValue","isHeaderNameFilter","AxiosHeaders","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","setHeaders","rawHeaders","parsed","line","substring","parseHeaders","get","tokens","tokensRE","parseTokens","has","matcher","deleted","deleteHeader","normalize","format","normalized","w","char","formatHeader","targets","asStrings","first","computed","accessor","accessors","defineAccessor","accessorName","methodName","arg1","arg2","arg3","configurable","buildAccessors","mapped","headerValue","transformData","fns","isCancel","__CANCEL__","CanceledError","ERR_CANCELED","write","expires","domain","secure","cookie","Date","toGMTString","read","RegExp","remove","now","buildFullPath","baseURL","requestedURL","relativeURL","combineURLs","msie","userAgent","urlParsingNode","createElement","originURL","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","location","requestURL","samplesCount","min","bytes","timestamps","firstSampleTS","head","tail","chunkLength","startedAt","bytesCount","passed","round","progressEventReducer","listener","isDownloadStream","bytesNotified","_speedometer","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","event","knownAdapters","http","xhr","XMLHttpRequest","Promise","resolve","reject","requestData","requestHeaders","onCanceled","cancelToken","unsubscribe","signal","removeEventListener","auth","username","password","unescape","btoa","fullPath","onloadend","responseHeaders","getAllResponseHeaders","ERR_BAD_REQUEST","floor","settle","err","responseText","statusText","open","paramsSerializer","onreadystatechange","readyState","responseURL","setTimeout","onabort","ECONNABORTED","onerror","ERR_NETWORK","ontimeout","timeoutErrorMessage","ETIMEDOUT","xsrfValue","isURLSameOrigin","cookies","setRequestHeader","withCredentials","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","abort","subscribe","aborted","parseProtocol","send","renderReason","reason","isResolvedHandle","adapters","nameOrAdapter","rejectedReasons","reasons","state","throwIfCancellationRequested","throwIfRequested","dispatchRequest","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","configValue","VERSION","validators","deprecatedWarnings","validator","version","formatMessage","opt","desc","opts","ERR_DEPRECATED","console","warn","assertOptions","schema","allowUnknown","ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","Axios","instanceConfig","interceptors","configOrUrl","boolean","function","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","unshift","responseInterceptorChain","promise","chain","newConfig","onFulfilled","onRejected","getUri","generateHTTPMethod","isForm","CancelToken","executor","resolvePromise","_listeners","onfulfilled","_resolve","splice","HttpStatusCode","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","axios","createInstance","defaultConfig","instance","toFormData","Cancel","all","promises","spread","callback","isAxiosError","formToJSON","getAdapter","default","asyncGeneratorStep","gen","_next","_throw","arg","info","_asyncToGenerator","args","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","_objectSpread","_defineProperty","namespace","isNetworkError","Boolean","includes","SAFE_HTTP_METHODS","IDEMPOTENT_HTTP_METHODS","isRetryableError","isIdempotentRequestError","isNetworkOrIdempotentRequestError","noDelay","getCurrentState","currentState","retryCount","_shouldRetry","retries","retryCondition","shouldRetryOrPromise","_err","axiosRetry","defaultOptions","requestInterceptorId","lastRequestTime","responseInterceptorId","_ref","retryDelay","shouldResetTimeout","onRetry","getRequestOptions","_x","_x2","_x3","_x4","shouldRetry","delay","agent","fixConfig","lastRequestDuration","_x5","isSafeRequestError","exponentialDelay","retryNumber","delayFactor","pow","isoDateFormat","isIsoDateString","handleDates","body","_i","_a","applyDateMiddleware","axiosInstance","originalResponse","customQuerySerializer","searchParams","v","BEARER","formatToken","composeToken","__awaiter","_arguments","P","generator","step","__generator","f","y","g","_","label","sent","trys","ops","verb","op","ApiClient","baseUrl","language","tenant","camelcaseKeysOptions","axiosRetryOptions","formattedToken","deep","applyCaseMiddleware","_this","ApiClientProvider","children","apiClient","useMemo","Provider","_defineProperties","toPropertyKey","_assertThisInitialized","ReferenceError","_setPrototypeOf","setPrototypeOf","__proto__","_getPrototypeOf","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","valueOf","_isNativeReflectConstruct","Super","NewTarget","_possibleConstructorReturn","ErrorBoundary","_Component","subClass","superClass","_inherits","Constructor","protoProps","staticProps","_super","_classCallCheck","_len","errorInfo","_this$props","debug","logger","setState","log","_fallback","_this$state","_this$props2","fallback","Component","isNonNullable","mapObj","camelCase","QuickLru","maxSize","camelCaseConvert","input","pascalCase","exclude","stopPaths","stopPathsSet","Set","makeMapper","parentPath","array","x","cacheKey","returnValue","locale","module","exports","UPPERCASE","LOWERCASE","LEADING_CAPITAL","IDENTIFIER","SEPARATORS","LEADING_SEPARATORS","SEPARATORS_AND_IDENTIFIER","NUMBERS_AND_IDENTIFIER","preserveConsecutiveUppercase","string","toLocaleLowerCase","toLocaleUpperCase","isLastCharLower","isLastCharUpper","isLastLastCharUpper","character","preserveCamelCase","m1","identifier","postProcess","denyList","mapObjectSkip","isObjectCustom","mapObject","mapper","isSeen","WeakMap","mapArray","element","mapResult","newKey","newValue","shouldRecurse","QuickLRU","onEviction","Map","oldCache","_size","_set","delete","peek","values","item","oldCacheSize","k","for","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","ref","__self","__source","q","d","defaultProps","$$typeof","_owner","current","jsx","u","z","B","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","C","D","E","refs","updater","F","G","isReactComponent","forceUpdate","H","isPureReactComponent","I","J","K","L","M","O","Q","escape","R","N","A","S","T","_status","_result","U","V","transition","W","ReactCurrentDispatcher","ReactCurrentBatchConfig","Children","count","only","Fragment","Profiler","PureComponent","StrictMode","Suspense","cloneElement","_currentValue","_currentValue2","_threadCount","Consumer","_defaultValue","_globalName","_context","createFactory","createRef","forwardRef","render","isValidElement","lazy","_payload","_init","memo","compare","startTransition","unstable_act","useCallback","useDebugValue","useDeferredValue","useEffect","useId","useImperativeHandle","useInsertionEffect","useLayoutEffect","useReducer","useRef","useState","useSyncExternalStore","useTransition","_arrayLikeToArray","arr2","_slicedToArray","unsupportedIterableToArray","_toConsumableArray","arrayLikeToArray","iter","_toPropertyKey","hint","prim","toPrimitive","res","_typeof","_unsupportedIterableToArray","minLen","hook","UNDEFINED","OBJECT","mergeObjects","STR_UNDEFINED","hasWindow","table","counter","stableHash","sort","online","hasWin","hasDoc","onWindowEvent","onDocumentEvent","offWindowEvent","offDocumentEvent","preset","isOnline","isVisible","visibilityState","defaultConfigOptions","initFocus","initReconnect","onOnline","onOffline","IS_SERVER","rAF","useIsomorphicLayoutEffect","navigatorConnection","connection","slowConnection","effectiveType","saveData","SWRGlobalState","broadcastState","isValidating","revalidate","broadcast","EVENT_REVALIDATORS","STATE_UPDATERS","FETCH","revalidators","updaters","__timestamp","getTimestamp","internalMutate","_data","_opts","populateCache","rollbackOnError","customOptimisticData","keyInfo","_b","MUTATION","beforeMutationTs","hasCustomOptimisticData","rollbackData","optimisticData","_c","revalidateAllKeys","initCache","provider","mutate","unmount","releaseFocus_1","releaseReconnect_1","onLoadingSlow","onSuccess","onError","onErrorRetry","__","maxRetryCount","errorRetryCount","currentRetryCount","errorRetryInterval","onDiscarded","revalidateOnFocus","revalidateOnReconnect","revalidateIfStale","shouldRetryOnError","focusThrottleInterval","dedupingInterval","loadingTimeout","currentData","newData","isPaused","mergeConfigs","u1","f1","u2","f2","SWRConfigContext","subscribeCallback","callbacks","keyedRevalidators","WITH_DEDUPE","dedupe","useSWR","extendedConfig","cacheContext","fetcher","fallbackData","suspense","revalidateOnMount","refreshInterval","refreshWhenHidden","refreshWhenOffline","fnArgs","initialMountedRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","isActive","patchFetchInfo","cached","isInitialMount","shouldRevalidate","rerender","stateRef","stateDependenciesRef","shouldRerender","useStateWithDeps","stateDependencies","revalidateOpts","currentFetcher","startAt","loading","shouldStartNewRequest","isCurrentKeyMounted","cleanupState","newState","finishRequestAndUpdateState","mutationInfo","err_1","requestInfo","boundMutate","keyChanged","softRevalidate","nextFocusRevalidatedAt","unsubUpdate","updatedData","updatedError","updatedIsValidating","unsubEvents","timer","interval","execute","clearTimeout","fallbackConfig","_config"],"sourceRoot":""}