{"version":3,"sources":["../../src/app-settings-v1-settings-app-settings.http.ts","../../src/app-settings-v1-settings-app-settings.types.ts","../../src/app-settings-v1-settings-app-settings.meta.ts"],"sourcesContent":["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 resolveComWixFedSettingsAppSettingsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/_api/app-settings-service/v1/settings/components',\n        destPath: '/api/v1/settings/components',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/app-settings-service',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/app-settings-service',\n        destPath: '/private/api',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/dev/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/app-settings-service',\n        destPath: '/private/api',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/dev/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/app-settings-service',\n        destPath: '/private/api',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/dev/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/_api/app-settings-service/v1/settings/components',\n        destPath: '/api/v1/settings/components',\n      },\n      {\n        srcPath: '/_api/app-settings-service/v1/settings/instances',\n        destPath: '/api/v1/settings/instances',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'progallery._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'ecom._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'bookings.wixapps.net': [\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'scheduler._base_domain_': [\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'progallery.wixapps.net': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'support._base_domain_': [\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'social-blog._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/settings',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/user-preferences',\n        destPath: '/api/v1/userPreferences',\n      },\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'addresses.wixapps.net': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n    ],\n    'vibe._base_domain_': [\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'manage.base44.com': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'payments.base44.com': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n    'platform.rise.ai': [\n      {\n        srcPath: '/_api/app-settings-service',\n        destPath: '/api',\n      },\n      {\n        srcPath: '/_api/wix-user-preferences-webapp',\n        destPath: '/api/v1/userPreferences',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_app-settings_app-settings';\n\n/** Set component settings by componentId */\nexport function setComponentSettings(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __setComponentSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.app_settings.v1.settings',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wix.fed.settings.AppSettingsService.SetComponentSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixFedSettingsAppSettingsServiceUrl({\n        protoPath: '/api/v1/settings/components/{componentId}',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __setComponentSettings;\n}\n\n/** Get component settings by componentId */\nexport function getComponentSettings(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getComponentSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.app_settings.v1.settings',\n      method: 'GET' as any,\n      methodFqn: 'com.wix.fed.settings.AppSettingsService.GetComponentSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixFedSettingsAppSettingsServiceUrl({\n        protoPath: '/api/v1/settings/components/{componentId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getComponentSettings;\n}\n\n/** Set global settings by instanceId (extracted from Authorization) */\nexport function setGlobalSettings(payload: object): RequestOptionsFactory<any> {\n  function __setGlobalSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.app_settings.v1.settings',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wix.fed.settings.AppSettingsService.SetGlobalSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixFedSettingsAppSettingsServiceUrl({\n        protoPath: '/api/v1/settings/instances',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __setGlobalSettings;\n}\n\n/** Get global settings by instanceId (extracted from Authorization) */\nexport function getGlobalSettings(payload: object): RequestOptionsFactory<any> {\n  function __getGlobalSettings({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.app_settings.v1.settings',\n      method: 'GET' as any,\n      methodFqn: 'com.wix.fed.settings.AppSettingsService.GetGlobalSettings',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixFedSettingsAppSettingsServiceUrl({\n        protoPath: '/api/v1/settings/instances',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getGlobalSettings;\n}\n","export interface AppSettings {\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The app global settings */\n  settings?: Record<string, any> | null;\n  /** Translatable textual assets - not using a collection because this type only the get flow (which should return a single value) */\n  translations?: Record<string, string>;\n}\n\n/** The state of the settings (Saved or Published) */\nexport enum State {\n  /** Not relevant */\n  NR = 'NR',\n  SAVED = 'SAVED',\n  PUBLISHED = 'PUBLISHED',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'NR' | 'SAVED' | 'PUBLISHED';\n\n/** The host in which the settings are displayed */\nexport enum Host {\n  NA = 'NA',\n  VIEWER = 'VIEWER',\n  BUSINESS_MANAGER = 'BUSINESS_MANAGER',\n  ONE_APP = 'ONE_APP',\n}\n\n/** @enumType */\nexport type HostWithLiterals =\n  | Host\n  | 'NA'\n  | 'VIEWER'\n  | 'BUSINESS_MANAGER'\n  | 'ONE_APP';\n\nexport interface SetComponentSettingsRequest {\n  /**\n   * The component Id\n   * @maxLength 36\n   */\n  componentId: string | null;\n  /** The data we'd like to store for this component */\n  settings?: Record<string, any> | null;\n  /** The state to set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD ** */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states to set in */\n  states?: StateWithLiterals[];\n}\n\n/** The translated language that contains the key and its translations */\nexport interface TranslatedLanguage {\n  /** The key of the translations' language */\n  languageKey?: LanguageKey;\n  /** Key-value pair mapping of textual assets */\n  translations?: Record<string, string>;\n}\n\n/** The language key of the saved multilingual data */\nexport interface LanguageKey {\n  /** e.g. en */\n  languageCode?: string;\n  /** e.g. us */\n  regionCode?: string;\n  /** default: '' */\n  scriptVariant?: string;\n}\n\nexport interface SetComponentSettingsResponse {\n  /** Echo of the component settings */\n  settings?: Record<string, any> | null;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface SetComponentSettingsForMigrationRequest {\n  /**\n   * The component Id\n   * @maxLength 36\n   */\n  componentId?: string | null;\n  /** The data we'd like to store for this component */\n  settings?: Record<string, any> | null;\n  /** The state to set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD ** */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states to set in */\n  states?: StateWithLiterals[];\n  /**\n   * The appDefId for migration\n   * @format GUID\n   */\n  appDefId?: string;\n  /**\n   * The instanceId for migration (msid)\n   * @format GUID\n   */\n  instanceId?: string;\n}\n\nexport interface SetComponentSettingsForMigrationResponse {\n  /** Echo of the component settings */\n  settings?: Record<string, any> | null;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface GetComponentSettingsRequest {\n  /**\n   * The component we want data for. Component ids can be from the site or oneApp\n   * @minLength 1\n   * @maxLength 36\n   */\n  componentId: string | null;\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n  /** Whether it is critical to get Global Settings as well */\n  includeGlobalSettings?: boolean;\n}\n\nexport interface GetComponentSettingsResponse {\n  /** Component settings for the requested component id */\n  settings?: Record<string, any> | null;\n  /** The data state of the response */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** based on x-wix-language or fallback */\n  translations?: Record<string, string>;\n  /** Optional. The global app settings */\n  globalSettings?: AppSettings;\n}\n\nexport interface BulkGetComponentSettingsRequest {\n  /**\n   * The component we want data for. Component ids can be from the site or oneApp\n   * @minLength 1\n   * @maxLength 36\n   * @minSize 1\n   * @maxSize 100\n   */\n  componentIds?: string[];\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n}\n\nexport interface BulkGetComponentSettingsResponse {\n  componentSettings?: ComponentSettings[];\n}\n\nexport interface ComponentSettings {\n  /**\n   * @minLength 1\n   * @maxLength 36\n   */\n  componentId?: string;\n  /** Component settings for the requested component id */\n  settings?: Record<string, any> | null;\n  /** The data state of the response */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** based on x-wix-language or fallback */\n  translations?: Record<string, string>;\n}\n\nexport interface SetGlobalSettingsRequest {\n  /** The global settings for the app */\n  settings?: Record<string, any> | null;\n  /** Any components we would like to set */\n  componentSettings?: SetComponentSettingsItem[];\n  /** The state this is set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD ** */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface SetComponentSettingsItem {\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /**\n   * The component we want data for. Component ids can be from the site or oneApp\n   * @minLength 1\n   * @maxLength 36\n   */\n  componentId?: string | null;\n  /** The component settings */\n  settings?: Record<string, any> | null;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n}\n\nexport interface SetGlobalSettingsResponse {\n  /** The data we have not for the App */\n  settings?: Record<string, any> | null;\n  /** The data we have for the components */\n  componentSettings?: SetComponentSettingsItem[];\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface GetGlobalSettingsRequest {\n  /** The requested state, default is published */\n  state?: StateWithLiterals;\n  /** Allow to filter by host to get only components for that host */\n  host?: HostWithLiterals;\n  /** If component settings data should also be returned */\n  includeComponentSettings?: boolean;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n}\n\nexport interface GetGlobalSettingsResponse {\n  /** The state of the app */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The global app settings */\n  settings?: Record<string, any> | null;\n  /** Optional. All components listed. may include components from the site or oneApp */\n  componentSettings?: GetComponentSettingsItem[];\n  /** based on x-wix-language or fallback */\n  translations?: Record<string, string>;\n}\n\nexport interface GetComponentSettingsItem {\n  /** The state of the component */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /**\n   * The component we want data for. Component ids can be from the site or oneApp\n   * @minLength 1\n   * @maxLength 36\n   */\n  componentId?: string | null;\n  /** The component settings */\n  settings?: Record<string, any> | null;\n  /** Translatable textual assets - not using a collection because this type only the get flow (which should return a single value) */\n  translations?: Record<string, string>;\n}\n\nexport interface SetGlobalSettingsForMigrationRequest {\n  /** The global settings for the app */\n  settings?: Record<string, any> | null;\n  /** Any components we would like to set */\n  componentSettings?: SetComponentSettingsItem[];\n  /** The state this is set in. ** THIS IS A DEPRECATED FIELD, PLEASE USE THE \"states\" FIELD ** */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n  /**\n   * The appDefId for migration\n   * @format GUID\n   */\n  appDefId?: string;\n  /**\n   * The instanceId for migration (msid)\n   * @format GUID\n   */\n  instanceId?: string;\n}\n\nexport interface SetGlobalSettingsForMigrationResponse {\n  /** The data we have not for the App */\n  settings?: Record<string, any> | null;\n  /** The data we have for the components */\n  componentSettings?: SetComponentSettingsItem[];\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** Translatable textual assets (pass empty key as default) */\n  translations?: TranslatedLanguage[];\n  /** The states this was set in */\n  states?: StateWithLiterals[];\n}\n\nexport interface GetGlobalSettingsForMigrationRequest {\n  /** The requested state, default is published */\n  state?: StateWithLiterals;\n  /** Allow to filter by host to get only components for that host */\n  host?: HostWithLiterals;\n  /** If component settings data should also be returned */\n  includeComponentSettings?: boolean;\n  /** The language key of the translation (allow filtering translations explicitly) */\n  languageKey?: LanguageKey;\n  /**\n   * The appDefId for migration\n   * @format GUID\n   */\n  appDefId?: string;\n  /**\n   * The instanceId for migration (msid)\n   * @format GUID\n   */\n  instanceId?: string;\n}\n\nexport interface GetGlobalSettingsForMigrationResponse {\n  /** The state of the app */\n  state?: StateWithLiterals;\n  /** Where this data is relevant */\n  host?: HostWithLiterals;\n  /** The global app settings */\n  settings?: Record<string, any> | null;\n  /** Optional. All components listed. may include components from the site or oneApp */\n  componentSettings?: GetComponentSettingsItem[];\n  /** Translatable textual assets (returns unfiltered global translations when languageKey is omitted) */\n  translations?: TranslatedLanguage[];\n}\n\nexport interface GetRequest {\n  /**\n   * id of app-scoped settings\n   * @format GUID\n   */\n  externalAppId?: string | null;\n  /**\n   * id of component-scoped settings\n   * @format GUID\n   */\n  externalComponentId?: string | null;\n  /** desired fields to retrieve on either GetResponse.app_settings or GetResponse.component_settings */\n  fields?: string[];\n}\n\nexport interface GetResponse {\n  /** app-scoped settings; */\n  appSettings?: Record<string, any> | null;\n  /** component-scoped settings; */\n  componentSettings?: Record<string, any> | null;\n}\n\nexport interface SetRequest {\n  /**\n   * id of settings snapshot\n   * @format GUID\n   */\n  externalId?: string | null;\n  /** scope of settings to store */\n  scope?: ScopeWithLiterals;\n  /** settings themselves; */\n  data?: Record<string, any> | null;\n}\n\n/** scope of settings when creating/updating; */\nexport enum Scope {\n  /** multiple instances of a tpa can share same settings; */\n  APP = 'APP',\n  /** scoped to a single component of an app; */\n  COMPONENT = 'COMPONENT',\n}\n\n/** @enumType */\nexport type ScopeWithLiterals = Scope | 'APP' | 'COMPONENT';\n\nexport interface SetResponse {}\n\nexport interface UpdateRequest {\n  /**\n   * id of settings snapshot\n   * @format GUID\n   */\n  externalId?: string | null;\n  /** scope of settings to update */\n  scope?: ScopeWithLiterals;\n  /** changed fields in provided data */\n  fields?: string[];\n  /** data itself */\n  data?: Record<string, any> | null;\n}\n\nexport interface UpdateResponse {\n  /** new if of stored settings snapshot */\n  newExternalId?: string | null;\n}\n","import * as ambassadorWixAppSettingsV1Settings from './app-settings-v1-settings-app-settings.http.js';\nimport * as ambassadorWixAppSettingsV1SettingsTypes from './app-settings-v1-settings-app-settings.types.js';\nimport * as ambassadorWixAppSettingsV1SettingsUniversalTypes from './app-settings-v1-settings-app-settings.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function setComponentSettings(): __PublicMethodMetaInfo<\n  'PATCH',\n  { componentId: string },\n  ambassadorWixAppSettingsV1SettingsUniversalTypes.SetComponentSettingsRequest,\n  ambassadorWixAppSettingsV1SettingsTypes.SetComponentSettingsRequest,\n  ambassadorWixAppSettingsV1SettingsUniversalTypes.SetComponentSettingsResponse,\n  ambassadorWixAppSettingsV1SettingsTypes.SetComponentSettingsResponse\n> {\n  const payload = { componentId: ':componentId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixAppSettingsV1Settings.setComponentSettings(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/api/v1/settings/components/{componentId}',\n    pathParams: { componentId: 'componentId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getComponentSettings(): __PublicMethodMetaInfo<\n  'GET',\n  { componentId: string },\n  ambassadorWixAppSettingsV1SettingsUniversalTypes.GetComponentSettingsRequest,\n  ambassadorWixAppSettingsV1SettingsTypes.GetComponentSettingsRequest,\n  ambassadorWixAppSettingsV1SettingsUniversalTypes.GetComponentSettingsResponse,\n  ambassadorWixAppSettingsV1SettingsTypes.GetComponentSettingsResponse\n> {\n  const payload = { componentId: ':componentId' } as any;\n\n  const getRequestOptions =\n    ambassadorWixAppSettingsV1Settings.getComponentSettings(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/api/v1/settings/components/{componentId}',\n    pathParams: { componentId: 'componentId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function setGlobalSettings(): __PublicMethodMetaInfo<\n  'PATCH',\n  {},\n  ambassadorWixAppSettingsV1SettingsUniversalTypes.SetGlobalSettingsRequest,\n  ambassadorWixAppSettingsV1SettingsTypes.SetGlobalSettingsRequest,\n  ambassadorWixAppSettingsV1SettingsUniversalTypes.SetGlobalSettingsResponse,\n  ambassadorWixAppSettingsV1SettingsTypes.SetGlobalSettingsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAppSettingsV1Settings.setGlobalSettings(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PATCH',\n    path: '/api/v1/settings/instances',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getGlobalSettings(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixAppSettingsV1SettingsUniversalTypes.GetGlobalSettingsRequest,\n  ambassadorWixAppSettingsV1SettingsTypes.GetGlobalSettingsRequest,\n  ambassadorWixAppSettingsV1SettingsUniversalTypes.GetGlobalSettingsResponse,\n  ambassadorWixAppSettingsV1SettingsTypes.GetGlobalSettingsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixAppSettingsV1Settings.getGlobalSettings(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/api/v1/settings/instances',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  AppSettings as AppSettingsOriginal,\n  State as StateOriginal,\n  StateWithLiterals as StateWithLiteralsOriginal,\n  Host as HostOriginal,\n  HostWithLiterals as HostWithLiteralsOriginal,\n  SetComponentSettingsRequest as SetComponentSettingsRequestOriginal,\n  TranslatedLanguage as TranslatedLanguageOriginal,\n  LanguageKey as LanguageKeyOriginal,\n  SetComponentSettingsResponse as SetComponentSettingsResponseOriginal,\n  SetComponentSettingsForMigrationRequest as SetComponentSettingsForMigrationRequestOriginal,\n  SetComponentSettingsForMigrationResponse as SetComponentSettingsForMigrationResponseOriginal,\n  GetComponentSettingsRequest as GetComponentSettingsRequestOriginal,\n  GetComponentSettingsResponse as GetComponentSettingsResponseOriginal,\n  BulkGetComponentSettingsRequest as BulkGetComponentSettingsRequestOriginal,\n  BulkGetComponentSettingsResponse as BulkGetComponentSettingsResponseOriginal,\n  ComponentSettings as ComponentSettingsOriginal,\n  SetGlobalSettingsRequest as SetGlobalSettingsRequestOriginal,\n  SetComponentSettingsItem as SetComponentSettingsItemOriginal,\n  SetGlobalSettingsResponse as SetGlobalSettingsResponseOriginal,\n  GetGlobalSettingsRequest as GetGlobalSettingsRequestOriginal,\n  GetGlobalSettingsResponse as GetGlobalSettingsResponseOriginal,\n  GetComponentSettingsItem as GetComponentSettingsItemOriginal,\n  SetGlobalSettingsForMigrationRequest as SetGlobalSettingsForMigrationRequestOriginal,\n  SetGlobalSettingsForMigrationResponse as SetGlobalSettingsForMigrationResponseOriginal,\n  GetGlobalSettingsForMigrationRequest as GetGlobalSettingsForMigrationRequestOriginal,\n  GetGlobalSettingsForMigrationResponse as GetGlobalSettingsForMigrationResponseOriginal,\n  GetRequest as GetRequestOriginal,\n  GetResponse as GetResponseOriginal,\n  SetRequest as SetRequestOriginal,\n  Scope as ScopeOriginal,\n  ScopeWithLiterals as ScopeWithLiteralsOriginal,\n  SetResponse as SetResponseOriginal,\n  UpdateRequest as UpdateRequestOriginal,\n  UpdateResponse as UpdateResponseOriginal,\n} from './app-settings-v1-settings-app-settings.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,8CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,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AAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC+B,kBAAkB,OAAO;AAE9D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["State","Host","Scope","setComponentSettings","getComponentSettings","setGlobalSettings","getGlobalSettings"]}