{"version":3,"sources":["jsdelivr-header.js","/npm/@wix/auto_sdk_restaurants_pos-tpa@1.0.35/index.ts","/npm/@wix/auto_sdk_restaurants_pos-tpa@1.0.35/src/restaurants-postpaapi-v1-configuration-pos-tpa.universal.ts","/npm/@wix/auto_sdk_restaurants_pos-tpa@1.0.35/src/restaurants-postpaapi-v1-configuration-pos-tpa.http.ts","/npm/@wix/auto_sdk_restaurants_pos-tpa@1.0.35/src/restaurants-postpaapi-v1-configuration-pos-tpa.public.ts","/npm/@wix/auto_sdk_restaurants_pos-tpa@1.0.35/src/restaurants-postpaapi-v1-configuration-pos-tpa.context.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,8iBCNA,cAAA,GAAA,SAAA,cAAA,CAAA,kBAAA,IAAA,mBAAA,wBAAA,IAAA,yBAAA,iBAAA,IAAA,kBAAA,mBAAA,IAAA,sBAAA,OAAA,QAAA,aAAA,eCAA,IAAA,uBAAoD,QAAA,oCACpD,8BAGO,QAAA,2CCJP,oBAAkC,QAAA,iCAClC,qBAA2B,QAAA,iCAI3B,SAAS,8DACP,GAmCA,SAAO,qBAAA,YAAW,OAAO,OAAO,EAAM,CAAE,iBAjCf,CACvB,uBAAwB,CACtB,CACE,QAAS,+BACT,SAAU,qBAGd,gEAAiE,CAC/D,CACE,QAAS,4BACT,SAAU,qBAGd,kBAAmB,CACjB,CACE,QAAS,kCACT,SAAU,wBAGd,kBAAmB,CACjB,CACE,QAAS,kCACT,SAAU,wBAGd,qBAAsB,CACpB,CACE,QAAS,oCACT,SAAU,wBAMlB,CAEA,IAAM,aAAe,oCAGd,SAAS,iBAAiB,GAsB/B,OArBA,UAA4B,KAAE,IAkB5B,MAjBiB,CACf,WAAY,6CACZ,OAAQ,MACR,UACE,2EACF,YAAa,aACb,iBAAkB,CAChB,wBAAwB,GAE1B,IAAK,8DAA8D,CACjE,UAAW,0CACX,KAAM,EACN,SAEF,QAAA,EAAQ,oBAAA,mBAAkB,GAI9B,CAGF,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AA,iCAIpB,mBAGK,EAAA,qBAAA,kBAAiB,mBAEtB,qBAGK,EAAA,qBAAA,kBAAiB,qBAEtB,oBAGK,EAAA,qBAAA,kBAAiB,oBAEtB,0BAGK,EAAA,qBAAA,kBAAiB","file":"/npm/@wix/auto_sdk_restaurants_pos-tpa@1.0.35/build/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@wix/auto_sdk_restaurants_pos-tpa@1.0.35/build/cjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export * from './src/restaurants-postpaapi-v1-configuration-pos-tpa.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixRestaurantsPostpaapiV1Configuration from './restaurants-postpaapi-v1-configuration-pos-tpa.http.js';\n\nexport interface Configuration {\n  /**\n   * Configuration ID for the location on the Wix site.\n   * @format GUID\n   */\n  _id?: string | null;\n  /**\n   * The corresponding Wix location for the configuration, as defined for the Wix site using the Business Info's [Locations](https://dev.wix.com/api/rest/business-info/locations) and/or [Site Properties](https://dev.wix.com/api/rest/business-info/site-properties) APIs,\n   * or using [Dashboard Settings](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fsettings/business-info).\n   */\n  location?: Location;\n  /**\n   * Restaurant catalog ID.\n   * @format GUID\n   */\n  catalogId?: string;\n  /** Whether a configuration is archived. */\n  archived?: boolean;\n  /** Whether a configuration is enabled. */\n  enabled?: boolean;\n  /**\n   * URL linking to the POS integration settings in the Dashboard\n   * if an online POS ordering app is installed.\n   */\n  integrationSettingsUrl?: string | null;\n}\n\nexport interface Location {\n  /** The Wix location [name](https://dev.wix.com/api/rest/business-info/locations/location-object). */\n  name?: string;\n}\n\nexport interface GetConfigurationRequest {\n  /**\n   * Configuration ID.\n   * @format GUID\n   */\n  _id: string;\n}\n\nexport interface GetConfigurationResponse {\n  /** The merchant's location configuration on Wix. */\n  configuration?: Configuration;\n}\n\nexport interface ListConfigurationsRequest {}\n\nexport interface ListConfigurationsResponse {\n  /** The merchant's configurations (locations) on Wix. */\n  configurations?: Configuration[];\n}\n\nexport interface DisconnectAccountRequest {\n  /**\n   * The app's definition ID.\n   * @format GUID\n   */\n  appDefId?: string;\n  /** The ID for the account between the merchant and the POS service provider. */\n  accountId: string;\n}\n\nexport interface DisconnectAccountResponse {}\n\nexport interface DisconnectConfigurationRequest {\n  /**\n   * The ID of the merchant's location configuration on Wix.\n   * @format GUID\n   */\n  configurationId: string;\n}\n\nexport interface DisconnectConfigurationResponse {}\n\n/**\n * This endpoint gets a location configuration by ID on the Wix site.\n * @param _id - Configuration ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId WIX_RESTAURANTS.READ_POS\n * @applicableIdentity APP\n * @returns The merchant's location configuration on Wix.\n * @fqn com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.GetConfiguration\n */\nexport async function getConfiguration(\n  _id: string\n): Promise<\n  NonNullablePaths<\n    Configuration,\n    `location.name` | `catalogId` | `archived` | `enabled`,\n    3\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n  const reqOpts =\n    ambassadorWixRestaurantsPostpaapiV1Configuration.getConfiguration(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.configuration!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { id: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * This endpoint retrieves a list of location configurations on the Wix site.\n * @internal\n * @documentationMaturity preview\n * @permissionId WIX_RESTAURANTS.READ_POS\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.ListConfigurations\n */\nexport async function listConfigurations(): Promise<\n  NonNullablePaths<\n    ListConfigurationsResponse,\n    | `configurations`\n    | `configurations.${number}.location.name`\n    | `configurations.${number}.catalogId`\n    | `configurations.${number}.archived`\n    | `configurations.${number}.enabled`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts =\n    ambassadorWixRestaurantsPostpaapiV1Configuration.listConfigurations(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * This endpoint disconnects the account between the merchant and the POS service provider.\n *\n * The account is not deleted. You can reconnect to the account using the POS integration settings in the Dashboard.\n *\n * Call the [List Account IDs](https://dev.wix.com/api/rest/wix-restaurants/point-of-sale-integration/pos-connectivity-spi/list-account-ids) SPI endpoint to retrieve a list of existing account IDs.\n * @param accountId - The ID for the account between the merchant and the POS service provider.\n * @internal\n * @documentationMaturity preview\n * @requiredField accountId\n * @permissionId WIX_RESTAURANTS.WRITE_POS\n * @fqn com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.DisconnectAccount\n */\nexport async function disconnectAccount(\n  accountId: string,\n  options?: DisconnectAccountOptions\n): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    accountId: accountId,\n    appDefId: options?.appDefId,\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsPostpaapiV1Configuration.disconnectAccount(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          accountId: '$[0]',\n          appDefId: '$[1].appDefId',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['accountId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface DisconnectAccountOptions {\n  /**\n   * The app's definition ID.\n   * @format GUID\n   */\n  appDefId?: string;\n}\n\n/**\n * This endpoint disconnects the Wix location configuration from a POS service provider's location.\n *\n * The configuration is not deleted. You can reconnect to the configuration using the POS integration settings in the Dashboard.\n *\n * Call the [List Configurations](https://dev.wix.com/api/rest/wix-restaurants/point-of-sale-integration/pos-connectivity-api/list-configurations) SPI endpoint to retrieve a list of existing configuration IDs.\n * @param configurationId - The ID of the merchant's location configuration on Wix.\n * @internal\n * @documentationMaturity preview\n * @requiredField configurationId\n * @permissionId WIX_RESTAURANTS.WRITE_POS\n * @fqn com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.DisconnectConfiguration\n */\nexport async function disconnectConfiguration(\n  configurationId: string\n): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    configurationId: configurationId,\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsPostpaapiV1Configuration.disconnectConfiguration(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { configurationId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['configurationId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRestaurantsPostpaapiRestaurantsPosTpaApiUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/restaurants/v1/pos-spi-host',\n        destPath: '/v1/pos-spi-host',\n      },\n    ],\n    'com.wixpress.restaurants.restaurants-pos-spi-host.wixapps.net': [\n      {\n        srcPath: '/restaurants-pos-spi-host',\n        destPath: '/v1/pos-spi-host',\n      },\n    ],\n    'www.wixapps.com': [\n      {\n        srcPath: '/restaurants/v1/pos-integration',\n        destPath: '/v1/pos-integration',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/restaurants/v1/pos-integration',\n        destPath: '/v1/pos-integration',\n      },\n    ],\n    'users._base_domain': [\n      {\n        srcPath: '/_api/restaurants/v1/pos-spi-host',\n        destPath: '/v1/pos-spi-host',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_pos-tpa';\n\n/** This endpoint gets a location configuration by ID on the Wix site. */\nexport function getConfiguration(payload: object): RequestOptionsFactory<any> {\n  function __getConfiguration({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.postpaapi.v1.configuration',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.GetConfiguration',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsPostpaapiRestaurantsPosTpaApiUrl({\n        protoPath: '/v1/pos-integration/configurations/{id}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getConfiguration;\n}\n\n/** This endpoint retrieves a list of location configurations on the Wix site. */\nexport function listConfigurations(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __listConfigurations({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.postpaapi.v1.configuration',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.ListConfigurations',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsPostpaapiRestaurantsPosTpaApiUrl({\n        protoPath: '/v1/pos-integration/configurations',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __listConfigurations;\n}\n\n/**\n * This endpoint disconnects the account between the merchant and the POS service provider.\n *\n * The account is not deleted. You can reconnect to the account using the POS integration settings in the Dashboard.\n *\n * Call the [List Account IDs](https://dev.wix.com/api/rest/wix-restaurants/point-of-sale-integration/pos-connectivity-spi/list-account-ids) SPI endpoint to retrieve a list of existing account IDs.\n */\nexport function disconnectAccount(payload: object): RequestOptionsFactory<any> {\n  function __disconnectAccount({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.postpaapi.v1.configuration',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.DisconnectAccount',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsPostpaapiRestaurantsPosTpaApiUrl({\n        protoPath: '/v1/pos-integration/accounts/{accountId}/disconnect',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __disconnectAccount;\n}\n\n/**\n * This endpoint disconnects the Wix location configuration from a POS service provider's location.\n *\n * The configuration is not deleted. You can reconnect to the configuration using the POS integration settings in the Dashboard.\n *\n * Call the [List Configurations](https://dev.wix.com/api/rest/wix-restaurants/point-of-sale-integration/pos-connectivity-api/list-configurations) SPI endpoint to retrieve a list of existing configuration IDs.\n */\nexport function disconnectConfiguration(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __disconnectConfiguration({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.postpaapi.v1.configuration',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.restaurants.postpaapi.RestaurantsPosTpaApi.DisconnectConfiguration',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsPostpaapiRestaurantsPosTpaApiUrl({\n        protoPath:\n          '/v1/pos-integration/configurations/{configurationId}/disconnect',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __disconnectConfiguration;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  Configuration,\n  DisconnectAccountOptions,\n  ListConfigurationsResponse,\n  disconnectAccount as universalDisconnectAccount,\n  disconnectConfiguration as universalDisconnectConfiguration,\n  getConfiguration as universalGetConfiguration,\n  listConfigurations as universalListConfigurations,\n} from './restaurants-postpaapi-v1-configuration-pos-tpa.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/restaurants' };\n\n/** @internal */\nexport function getConfiguration(\n  httpClient: HttpClient\n): GetConfigurationSignature {\n  return (_id: string) =>\n    universalGetConfiguration(\n      _id,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetConfigurationSignature {\n  /**\n   * This endpoint gets a location configuration by ID on the Wix site.\n   * @param - Configuration ID.\n   * @returns The merchant's location configuration on Wix.\n   */\n  (_id: string): Promise<\n    NonNullablePaths<\n      Configuration,\n      `location.name` | `catalogId` | `archived` | `enabled`,\n      3\n    >\n  >;\n}\n\n/** @internal */\nexport function listConfigurations(\n  httpClient: HttpClient\n): ListConfigurationsSignature {\n  return () =>\n    universalListConfigurations(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ListConfigurationsSignature {\n  /**\n   * This endpoint retrieves a list of location configurations on the Wix site.\n   */\n  (): Promise<\n    NonNullablePaths<\n      ListConfigurationsResponse,\n      | `configurations`\n      | `configurations.${number}.location.name`\n      | `configurations.${number}.catalogId`\n      | `configurations.${number}.archived`\n      | `configurations.${number}.enabled`,\n      5\n    >\n  >;\n}\n\n/** @internal */\nexport function disconnectAccount(\n  httpClient: HttpClient\n): DisconnectAccountSignature {\n  return (accountId: string, options?: DisconnectAccountOptions) =>\n    universalDisconnectAccount(\n      accountId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DisconnectAccountSignature {\n  /**\n   * This endpoint disconnects the account between the merchant and the POS service provider.\n   *\n   * The account is not deleted. You can reconnect to the account using the POS integration settings in the Dashboard.\n   *\n   * Call the [List Account IDs](https://dev.wix.com/api/rest/wix-restaurants/point-of-sale-integration/pos-connectivity-spi/list-account-ids) SPI endpoint to retrieve a list of existing account IDs.\n   * @param - The ID for the account between the merchant and the POS service provider.\n   */\n  (accountId: string, options?: DisconnectAccountOptions): Promise<void>;\n}\n\n/** @internal */\nexport function disconnectConfiguration(\n  httpClient: HttpClient\n): DisconnectConfigurationSignature {\n  return (configurationId: string) =>\n    universalDisconnectConfiguration(\n      configurationId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DisconnectConfigurationSignature {\n  /**\n   * This endpoint disconnects the Wix location configuration from a POS service provider's location.\n   *\n   * The configuration is not deleted. You can reconnect to the configuration using the POS integration settings in the Dashboard.\n   *\n   * Call the [List Configurations](https://dev.wix.com/api/rest/wix-restaurants/point-of-sale-integration/pos-connectivity-api/list-configurations) SPI endpoint to retrieve a list of existing configuration IDs.\n   * @param - The ID of the merchant's location configuration on Wix.\n   */\n  (configurationId: string): Promise<void>;\n}\n\nexport {\n  Configuration,\n  DisconnectAccountOptions,\n  DisconnectAccountRequest,\n  DisconnectAccountResponse,\n  DisconnectConfigurationRequest,\n  DisconnectConfigurationResponse,\n  GetConfigurationRequest,\n  GetConfigurationResponse,\n  ListConfigurationsRequest,\n  ListConfigurationsResponse,\n  Location,\n} from './restaurants-postpaapi-v1-configuration-pos-tpa.universal.js';\n","import {\n  getConfiguration as publicGetConfiguration,\n  listConfigurations as publicListConfigurations,\n  disconnectAccount as publicDisconnectAccount,\n  disconnectConfiguration as publicDisconnectConfiguration,\n} from './restaurants-postpaapi-v1-configuration-pos-tpa.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const getConfiguration: MaybeContext<\n  BuildRESTFunction<typeof publicGetConfiguration> &\n    typeof publicGetConfiguration\n> = /*#__PURE__*/ createRESTModule(publicGetConfiguration);\n/** @internal */\nexport const listConfigurations: MaybeContext<\n  BuildRESTFunction<typeof publicListConfigurations> &\n    typeof publicListConfigurations\n> = /*#__PURE__*/ createRESTModule(publicListConfigurations);\n/** @internal */\nexport const disconnectAccount: MaybeContext<\n  BuildRESTFunction<typeof publicDisconnectAccount> &\n    typeof publicDisconnectAccount\n> = /*#__PURE__*/ createRESTModule(publicDisconnectAccount);\n/** @internal */\nexport const disconnectConfiguration: MaybeContext<\n  BuildRESTFunction<typeof publicDisconnectConfiguration> &\n    typeof publicDisconnectConfiguration\n> = /*#__PURE__*/ createRESTModule(publicDisconnectConfiguration);\n\nexport {\n  Configuration,\n  Location,\n  GetConfigurationRequest,\n  GetConfigurationResponse,\n  ListConfigurationsRequest,\n  ListConfigurationsResponse,\n  DisconnectAccountRequest,\n  DisconnectAccountResponse,\n  DisconnectConfigurationRequest,\n  DisconnectConfigurationResponse,\n  DisconnectAccountOptions,\n} from './restaurants-postpaapi-v1-configuration-pos-tpa.universal.js';\n"]}