@wix/auto_sdk_domains_domain-suggestions 1.0.30 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ interface SuggestDomainsSignature {
18
18
  * Min: 1 characters
19
19
  * Max: 100 characters
20
20
  */
21
- (query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 4>>;
21
+ (query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 2>>;
22
22
  }
23
23
 
24
24
  declare const suggestDomains: MaybeContext<BuildRESTFunction<typeof suggestDomains$1> & typeof suggestDomains$1>;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.public.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.context.ts"],"sourcesContent":["export * from './src/premium-domains-v2-suggestion-domain-suggestions.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 ambassadorWixPremiumDomainsV2Suggestion from './premium-domains-v2-suggestion-domain-suggestions.http.js';\n\nexport interface DomainSuggestion {\n /**\n * Suggested domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /** Whether the domain has a higher price due to its perceived value or demand. */\n premium?: boolean;\n}\n\nexport interface SuggestDomainsRequest {\n /**\n * Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n query: string;\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\n /**\n * When set to `true`, domains with a higher price due to their perceived\n * value or demand are excluded from suggestions.\n *\n * Default: `false`\n * @internal\n */\n excludePremiumDomains?: boolean;\n /**\n * When set to `true`, only one suggestion per unique SLD\n * (second-level domain, the part before the TLD) is returned.\n * For example, if both `daniel.com` and `daniel.net` are available,\n * only the first one encountered is included.\n *\n * Default: `false`\n * @internal\n */\n uniqueSldsOnly?: boolean;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of domains to return in the results.\n *\n * Min: `0`\n * Max: `20`\n * @min 1\n * @max 20\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 10000\n */\n cursor?: string | null;\n}\n\nexport interface SuggestDomainsResponse {\n /** List of suggested available domains. */\n suggestions?: DomainSuggestion[];\n /** Metadata about the returned list of suggested domains. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of domains returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param query - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @public\n * @requiredField query\n * @permissionId DOMAINS.PUBLIC_API_PERMISSION\n * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains\n */\nexport async function suggestDomains(\n query: string,\n options?: SuggestDomainsOptions\n): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n tlds: options?.tlds,\n limit: options?.limit,\n paging: options?.paging,\n maxLength: options?.maxLength,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);\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 query: '$[0]',\n tlds: '$[1].tlds',\n limit: '$[1].limit',\n paging: '$[1].paging',\n maxLength: '$[1].maxLength',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SuggestDomainsOptions {\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\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 resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function suggestDomains(payload: object): RequestOptionsFactory<any> {\n function __suggestDomains({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v2.suggestion',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n { protoPath: '/v2/suggest-domains', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __suggestDomains;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n SuggestDomainsOptions,\n SuggestDomainsResponse,\n suggestDomains as universalSuggestDomains,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function suggestDomains(\n httpClient: HttpClient\n): SuggestDomainsSignature {\n return (query: string, options?: SuggestDomainsOptions) =>\n universalSuggestDomains(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SuggestDomainsSignature {\n /**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n */\n (query: string, options?: SuggestDomainsOptions): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 4\n >\n >;\n}\n\nexport {\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DomainSuggestion,\n SuggestDomainsOptions,\n SuggestDomainsRequest,\n SuggestDomainsResponse,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n","import { suggestDomains as publicSuggestDomains } from './premium-domains-v2-suggestion-domain-suggestions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const suggestDomains: MaybeContext<\n BuildRESTFunction<typeof publicSuggestDomains> & typeof publicSuggestDomains\n> = /*#__PURE__*/ createRESTModule(publicSuggestDomains);\n\nexport {\n DomainSuggestion,\n SuggestDomainsRequest,\n CursorPaging,\n SuggestDomainsResponse,\n CursorPagingMetadata,\n Cursors,\n SuggestDomainsOptions,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,M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jB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE5MO,SAASC,gBACd,YACyB;AACzB,SAAO,CAAC,OAAe,YACrBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClBA,IAAAC,uBAAiC;AAG1B,IAAMC,kBAEK,2DAAiBA,eAAoB;","names":["suggestDomains","import_rest_modules","suggestDomains","sdkTransformError","suggestDomains","import_rest_modules","suggestDomains"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.public.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.context.ts"],"sourcesContent":["export * from './src/premium-domains-v2-suggestion-domain-suggestions.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 ambassadorWixPremiumDomainsV2Suggestion from './premium-domains-v2-suggestion-domain-suggestions.http.js';\n\nexport interface DomainSuggestion {\n /**\n * Suggested domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /** Whether the domain has a higher price due to its perceived value or demand. */\n premium?: boolean;\n}\n\nexport interface SuggestDomainsRequest {\n /**\n * Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n query: string;\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\n /**\n * When set to `true`, domains with a higher price due to their perceived\n * value or demand are excluded from suggestions.\n *\n * Default: `false`\n * @internal\n */\n excludePremiumDomains?: boolean;\n /**\n * When set to `true`, only one suggestion per unique SLD\n * (second-level domain, the part before the TLD) is returned.\n * For example, if both `daniel.com` and `daniel.net` are available,\n * only the first one encountered is included.\n *\n * Default: `false`\n * @internal\n */\n uniqueSldsOnly?: boolean;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of domains to return in the results.\n *\n * Min: `0`\n * Max: `50`\n * @min 1\n * @max 50\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 10000\n */\n cursor?: string | null;\n}\n\nexport interface SuggestDomainsResponse {\n /** List of suggested available domains. */\n suggestions?: DomainSuggestion[];\n /** Metadata about the returned list of suggested domains. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of domains returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param query - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @public\n * @requiredField query\n * @permissionId DOMAINS.PUBLIC_API_PERMISSION\n * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains\n */\nexport async function suggestDomains(\n query: string,\n options?: SuggestDomainsOptions\n): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n tlds: options?.tlds,\n limit: options?.limit,\n paging: options?.paging,\n maxLength: options?.maxLength,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);\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 query: '$[0]',\n tlds: '$[1].tlds',\n limit: '$[1].limit',\n paging: '$[1].paging',\n maxLength: '$[1].maxLength',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SuggestDomainsOptions {\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\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 resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function suggestDomains(payload: object): RequestOptionsFactory<any> {\n function __suggestDomains({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v2.suggestion',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n { protoPath: '/v2/suggest-domains', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __suggestDomains;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n SuggestDomainsOptions,\n SuggestDomainsResponse,\n suggestDomains as universalSuggestDomains,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function suggestDomains(\n httpClient: HttpClient\n): SuggestDomainsSignature {\n return (query: string, options?: SuggestDomainsOptions) =>\n universalSuggestDomains(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SuggestDomainsSignature {\n /**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n */\n (query: string, options?: SuggestDomainsOptions): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 2\n >\n >;\n}\n\nexport {\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DomainSuggestion,\n SuggestDomainsOptions,\n SuggestDomainsRequest,\n SuggestDomainsResponse,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n","import { suggestDomains as publicSuggestDomains } from './premium-domains-v2-suggestion-domain-suggestions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const suggestDomains: MaybeContext<\n BuildRESTFunction<typeof publicSuggestDomains> & typeof publicSuggestDomains\n> = /*#__PURE__*/ createRESTModule(publicSuggestDomains);\n\nexport {\n DomainSuggestion,\n SuggestDomainsRequest,\n CursorPaging,\n SuggestDomainsResponse,\n CursorPagingMetadata,\n Cursors,\n SuggestDomainsOptions,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAA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B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE5MO,SAASC,gBACd,YACyB;AACzB,SAAO,CAAC,OAAe,YACrBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClBA,IAAAC,uBAAiC;AAG1B,IAAMC,kBAEK,2DAAiBA,eAAoB;","names":["suggestDomains","import_rest_modules","suggestDomains","sdkTransformError","suggestDomains","import_rest_modules","suggestDomains"]}
@@ -69,9 +69,9 @@ interface CursorPaging {
69
69
  * Maximum number of domains to return in the results.
70
70
  *
71
71
  * Min: `0`
72
- * Max: `20`
72
+ * Max: `50`
73
73
  * @min 1
74
- * @max 20
74
+ * @max 50
75
75
  */
76
76
  limit?: number | null;
77
77
  /**
@@ -126,7 +126,7 @@ interface Cursors {
126
126
  * @permissionId DOMAINS.PUBLIC_API_PERMISSION
127
127
  * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains
128
128
  */
129
- declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 4>>;
129
+ declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 2>>;
130
130
  interface SuggestDomainsOptions {
131
131
  /**
132
132
  * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.typings.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts"],"sourcesContent":["export * from './src/premium-domains-v2-suggestion-domain-suggestions.universal.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 ambassadorWixPremiumDomainsV2Suggestion from './premium-domains-v2-suggestion-domain-suggestions.http.js';\n\nexport interface DomainSuggestion {\n /**\n * Suggested domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /** Whether the domain has a higher price due to its perceived value or demand. */\n premium?: boolean;\n}\n\nexport interface SuggestDomainsRequest {\n /**\n * Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n query: string;\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\n /**\n * When set to `true`, domains with a higher price due to their perceived\n * value or demand are excluded from suggestions.\n *\n * Default: `false`\n * @internal\n */\n excludePremiumDomains?: boolean;\n /**\n * When set to `true`, only one suggestion per unique SLD\n * (second-level domain, the part before the TLD) is returned.\n * For example, if both `daniel.com` and `daniel.net` are available,\n * only the first one encountered is included.\n *\n * Default: `false`\n * @internal\n */\n uniqueSldsOnly?: boolean;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of domains to return in the results.\n *\n * Min: `0`\n * Max: `20`\n * @min 1\n * @max 20\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 10000\n */\n cursor?: string | null;\n}\n\nexport interface SuggestDomainsResponse {\n /** List of suggested available domains. */\n suggestions?: DomainSuggestion[];\n /** Metadata about the returned list of suggested domains. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of domains returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param query - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @public\n * @requiredField query\n * @permissionId DOMAINS.PUBLIC_API_PERMISSION\n * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains\n */\nexport async function suggestDomains(\n query: string,\n options?: SuggestDomainsOptions\n): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n tlds: options?.tlds,\n limit: options?.limit,\n paging: options?.paging,\n maxLength: options?.maxLength,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);\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 query: '$[0]',\n tlds: '$[1].tlds',\n limit: '$[1].limit',\n paging: '$[1].paging',\n maxLength: '$[1].maxLength',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SuggestDomainsOptions {\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\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 resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function suggestDomains(payload: object): RequestOptionsFactory<any> {\n function __suggestDomains({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v2.suggestion',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n { protoPath: '/v2/suggest-domains', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __suggestDomains;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,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,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;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,mBAAmB;AAAA,MACjB;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,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,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AChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH,EAAE,WAAW,uBAAuB,MAAM,SAAS,KAAK;AAAA,MAC1D;AAAA,MACA,YAAQ,uCAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ADFA,eAAsBC,gBACpB,OACA,SASA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,IACA,MAAM,SAAS;AAAA,IACf,OAAO,SAAS;AAAA,IAChB,QAAQ,SAAS;AAAA,IACjB,WAAW,SAAS;AAAA,EACtB,CAAC;AAED,QAAM,UACoC,eAAe,OAAO;AAEhE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["suggestDomains","import_rest_modules","suggestDomains","sdkTransformError"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts"],"sourcesContent":["export * from './src/premium-domains-v2-suggestion-domain-suggestions.universal.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 ambassadorWixPremiumDomainsV2Suggestion from './premium-domains-v2-suggestion-domain-suggestions.http.js';\n\nexport interface DomainSuggestion {\n /**\n * Suggested domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /** Whether the domain has a higher price due to its perceived value or demand. */\n premium?: boolean;\n}\n\nexport interface SuggestDomainsRequest {\n /**\n * Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n query: string;\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\n /**\n * When set to `true`, domains with a higher price due to their perceived\n * value or demand are excluded from suggestions.\n *\n * Default: `false`\n * @internal\n */\n excludePremiumDomains?: boolean;\n /**\n * When set to `true`, only one suggestion per unique SLD\n * (second-level domain, the part before the TLD) is returned.\n * For example, if both `daniel.com` and `daniel.net` are available,\n * only the first one encountered is included.\n *\n * Default: `false`\n * @internal\n */\n uniqueSldsOnly?: boolean;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of domains to return in the results.\n *\n * Min: `0`\n * Max: `50`\n * @min 1\n * @max 50\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 10000\n */\n cursor?: string | null;\n}\n\nexport interface SuggestDomainsResponse {\n /** List of suggested available domains. */\n suggestions?: DomainSuggestion[];\n /** Metadata about the returned list of suggested domains. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of domains returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param query - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @public\n * @requiredField query\n * @permissionId DOMAINS.PUBLIC_API_PERMISSION\n * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains\n */\nexport async function suggestDomains(\n query: string,\n options?: SuggestDomainsOptions\n): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n tlds: options?.tlds,\n limit: options?.limit,\n paging: options?.paging,\n maxLength: options?.maxLength,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);\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 query: '$[0]',\n tlds: '$[1].tlds',\n limit: '$[1].limit',\n paging: '$[1].paging',\n maxLength: '$[1].maxLength',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SuggestDomainsOptions {\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\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 resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function suggestDomains(payload: object): RequestOptionsFactory<any> {\n function __suggestDomains({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v2.suggestion',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n { protoPath: '/v2/suggest-domains', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __suggestDomains;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAAA;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,IAAAC,uBAA2B;AAI3B,SAAS,qEACP,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,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;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,mBAAmB;AAAA,MACjB;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,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,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IACpD;AAAA,IACA,MAAM,SAAS;AAAA,IACf,OAAO,SAAS;AAAA,IAChB,QAAQ,SAAS;AAAA,IACjB,WAAW,SAAS;AAAA,EACtB,CAAC;AAED,QAAM,UACoC,eAAe,OAAO;AAEhE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAC;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["suggestDomains","import_rest_modules","suggestDomains","sdkTransformError"]}
@@ -70,9 +70,9 @@ interface CursorPaging {
70
70
  * Maximum number of domains to return in the results.
71
71
  *
72
72
  * Min: `0`
73
- * Max: `20`
73
+ * Max: `50`
74
74
  * @min 1
75
- * @max 20
75
+ * @max 50
76
76
  */
77
77
  limit?: number | null;
78
78
  /**
@@ -18,7 +18,7 @@ interface SuggestDomainsSignature {
18
18
  * Min: 1 characters
19
19
  * Max: 100 characters
20
20
  */
21
- (query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 4>>;
21
+ (query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 2>>;
22
22
  }
23
23
 
24
24
  declare const suggestDomains: MaybeContext<BuildRESTFunction<typeof suggestDomains$1> & typeof suggestDomains$1>;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.public.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.context.ts"],"sourcesContent":["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 ambassadorWixPremiumDomainsV2Suggestion from './premium-domains-v2-suggestion-domain-suggestions.http.js';\n\nexport interface DomainSuggestion {\n /**\n * Suggested domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /** Whether the domain has a higher price due to its perceived value or demand. */\n premium?: boolean;\n}\n\nexport interface SuggestDomainsRequest {\n /**\n * Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n query: string;\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\n /**\n * When set to `true`, domains with a higher price due to their perceived\n * value or demand are excluded from suggestions.\n *\n * Default: `false`\n * @internal\n */\n excludePremiumDomains?: boolean;\n /**\n * When set to `true`, only one suggestion per unique SLD\n * (second-level domain, the part before the TLD) is returned.\n * For example, if both `daniel.com` and `daniel.net` are available,\n * only the first one encountered is included.\n *\n * Default: `false`\n * @internal\n */\n uniqueSldsOnly?: boolean;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of domains to return in the results.\n *\n * Min: `0`\n * Max: `20`\n * @min 1\n * @max 20\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 10000\n */\n cursor?: string | null;\n}\n\nexport interface SuggestDomainsResponse {\n /** List of suggested available domains. */\n suggestions?: DomainSuggestion[];\n /** Metadata about the returned list of suggested domains. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of domains returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param query - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @public\n * @requiredField query\n * @permissionId DOMAINS.PUBLIC_API_PERMISSION\n * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains\n */\nexport async function suggestDomains(\n query: string,\n options?: SuggestDomainsOptions\n): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n tlds: options?.tlds,\n limit: options?.limit,\n paging: options?.paging,\n maxLength: options?.maxLength,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);\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 query: '$[0]',\n tlds: '$[1].tlds',\n limit: '$[1].limit',\n paging: '$[1].paging',\n maxLength: '$[1].maxLength',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SuggestDomainsOptions {\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\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 resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function suggestDomains(payload: object): RequestOptionsFactory<any> {\n function __suggestDomains({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v2.suggestion',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n { protoPath: '/v2/suggest-domains', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __suggestDomains;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n SuggestDomainsOptions,\n SuggestDomainsResponse,\n suggestDomains as universalSuggestDomains,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function suggestDomains(\n httpClient: HttpClient\n): SuggestDomainsSignature {\n return (query: string, options?: SuggestDomainsOptions) =>\n universalSuggestDomains(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SuggestDomainsSignature {\n /**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n */\n (query: string, options?: SuggestDomainsOptions): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 4\n >\n >;\n}\n\nexport {\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DomainSuggestion,\n SuggestDomainsOptions,\n SuggestDomainsRequest,\n SuggestDomainsResponse,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n","import { suggestDomains as publicSuggestDomains } from './premium-domains-v2-suggestion-domain-suggestions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const suggestDomains: MaybeContext<\n BuildRESTFunction<typeof publicSuggestDomains> & typeof publicSuggestDomains\n> = /*#__PURE__*/ createRESTModule(publicSuggestDomains);\n\nexport {\n DomainSuggestion,\n SuggestDomainsRequest,\n CursorPaging,\n SuggestDomainsResponse,\n CursorPagingMetadata,\n Cursors,\n SuggestDomainsOptions,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,qEACP,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,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;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,mBAAmB;AAAA,MACjB;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,wB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A,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH,EAAE,WAAW,uBAAuB,MAAM,SAAS,KAAK;AAAA,MAC1D;AAAA,MACA,QAAQ,kBAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ADFA,eAAsBA,gBACpB,OACA,SASA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,IACA,MAAM,SAAS;AAAA,IACf,OAAO,SAAS;AAAA,IAChB,QAAQ,SAAS;AAAA,IACjB,WAAW,SAAS;AAAA,EACtB,CAAC;AAED,QAAM,UACoC,eAAe,OAAO;AAEhE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE5MO,SAASC,gBACd,YACyB;AACzB,SAAO,CAAC,OAAe,YACrBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClBA,SAAS,wBAAwB;AAG1B,IAAMC,kBAEK,iCAAiBA,eAAoB;","names":["suggestDomains","suggestDomains","suggestDomains"]}
1
+ {"version":3,"sources":["../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.public.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.context.ts"],"sourcesContent":["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 ambassadorWixPremiumDomainsV2Suggestion from './premium-domains-v2-suggestion-domain-suggestions.http.js';\n\nexport interface DomainSuggestion {\n /**\n * Suggested domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /** Whether the domain has a higher price due to its perceived value or demand. */\n premium?: boolean;\n}\n\nexport interface SuggestDomainsRequest {\n /**\n * Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n query: string;\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\n /**\n * When set to `true`, domains with a higher price due to their perceived\n * value or demand are excluded from suggestions.\n *\n * Default: `false`\n * @internal\n */\n excludePremiumDomains?: boolean;\n /**\n * When set to `true`, only one suggestion per unique SLD\n * (second-level domain, the part before the TLD) is returned.\n * For example, if both `daniel.com` and `daniel.net` are available,\n * only the first one encountered is included.\n *\n * Default: `false`\n * @internal\n */\n uniqueSldsOnly?: boolean;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of domains to return in the results.\n *\n * Min: `0`\n * Max: `50`\n * @min 1\n * @max 50\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 10000\n */\n cursor?: string | null;\n}\n\nexport interface SuggestDomainsResponse {\n /** List of suggested available domains. */\n suggestions?: DomainSuggestion[];\n /** Metadata about the returned list of suggested domains. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of domains returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param query - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @public\n * @requiredField query\n * @permissionId DOMAINS.PUBLIC_API_PERMISSION\n * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains\n */\nexport async function suggestDomains(\n query: string,\n options?: SuggestDomainsOptions\n): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n tlds: options?.tlds,\n limit: options?.limit,\n paging: options?.paging,\n maxLength: options?.maxLength,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);\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 query: '$[0]',\n tlds: '$[1].tlds',\n limit: '$[1].limit',\n paging: '$[1].paging',\n maxLength: '$[1].maxLength',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SuggestDomainsOptions {\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\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 resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function suggestDomains(payload: object): RequestOptionsFactory<any> {\n function __suggestDomains({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v2.suggestion',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n { protoPath: '/v2/suggest-domains', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __suggestDomains;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n SuggestDomainsOptions,\n SuggestDomainsResponse,\n suggestDomains as universalSuggestDomains,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function suggestDomains(\n httpClient: HttpClient\n): SuggestDomainsSignature {\n return (query: string, options?: SuggestDomainsOptions) =>\n universalSuggestDomains(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SuggestDomainsSignature {\n /**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n */\n (query: string, options?: SuggestDomainsOptions): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 2\n >\n >;\n}\n\nexport {\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DomainSuggestion,\n SuggestDomainsOptions,\n SuggestDomainsRequest,\n SuggestDomainsResponse,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n","import { suggestDomains as publicSuggestDomains } from './premium-domains-v2-suggestion-domain-suggestions.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const suggestDomains: MaybeContext<\n BuildRESTFunction<typeof publicSuggestDomains> & typeof publicSuggestDomains\n> = /*#__PURE__*/ createRESTModule(publicSuggestDomains);\n\nexport {\n DomainSuggestion,\n SuggestDomainsRequest,\n CursorPaging,\n SuggestDomainsResponse,\n CursorPagingMetadata,\n Cursors,\n SuggestDomainsOptions,\n} from './premium-domains-v2-suggestion-domain-suggestions.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,qEACP,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,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;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,mBAAmB;AAAA,MACjB;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,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ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C1B;AAAA,MACA,KAAK;AAAA,QACH,EAAE,WAAW,uBAAuB,MAAM,SAAS,KAAK;AAAA,MAC1D;AAAA,MACA,QAAQ,kBAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ADFA,eAAsBA,gBACpB,OACA,SASA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,IACA,MAAM,SAAS;AAAA,IACf,OAAO,SAAS;AAAA,IAChB,QAAQ,SAAS;AAAA,IACjB,WAAW,SAAS;AAAA,EACtB,CAAC;AAED,QAAM,UACoC,eAAe,OAAO;AAEhE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AE5MO,SAASC,gBACd,YACyB;AACzB,SAAO,CAAC,OAAe,YACrBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClBA,SAAS,wBAAwB;AAG1B,IAAMC,kBAEK,iCAAiBA,eAAoB;","names":["suggestDomains","suggestDomains","suggestDomains"]}
@@ -69,9 +69,9 @@ interface CursorPaging {
69
69
  * Maximum number of domains to return in the results.
70
70
  *
71
71
  * Min: `0`
72
- * Max: `20`
72
+ * Max: `50`
73
73
  * @min 1
74
- * @max 20
74
+ * @max 50
75
75
  */
76
76
  limit?: number | null;
77
77
  /**
@@ -126,7 +126,7 @@ interface Cursors {
126
126
  * @permissionId DOMAINS.PUBLIC_API_PERMISSION
127
127
  * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains
128
128
  */
129
- declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 4>>;
129
+ declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 2>>;
130
130
  interface SuggestDomainsOptions {
131
131
  /**
132
132
  * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts"],"sourcesContent":["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 ambassadorWixPremiumDomainsV2Suggestion from './premium-domains-v2-suggestion-domain-suggestions.http.js';\n\nexport interface DomainSuggestion {\n /**\n * Suggested domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /** Whether the domain has a higher price due to its perceived value or demand. */\n premium?: boolean;\n}\n\nexport interface SuggestDomainsRequest {\n /**\n * Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n query: string;\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\n /**\n * When set to `true`, domains with a higher price due to their perceived\n * value or demand are excluded from suggestions.\n *\n * Default: `false`\n * @internal\n */\n excludePremiumDomains?: boolean;\n /**\n * When set to `true`, only one suggestion per unique SLD\n * (second-level domain, the part before the TLD) is returned.\n * For example, if both `daniel.com` and `daniel.net` are available,\n * only the first one encountered is included.\n *\n * Default: `false`\n * @internal\n */\n uniqueSldsOnly?: boolean;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of domains to return in the results.\n *\n * Min: `0`\n * Max: `20`\n * @min 1\n * @max 20\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 10000\n */\n cursor?: string | null;\n}\n\nexport interface SuggestDomainsResponse {\n /** List of suggested available domains. */\n suggestions?: DomainSuggestion[];\n /** Metadata about the returned list of suggested domains. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of domains returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param query - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @public\n * @requiredField query\n * @permissionId DOMAINS.PUBLIC_API_PERMISSION\n * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains\n */\nexport async function suggestDomains(\n query: string,\n options?: SuggestDomainsOptions\n): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n tlds: options?.tlds,\n limit: options?.limit,\n paging: options?.paging,\n maxLength: options?.maxLength,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);\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 query: '$[0]',\n tlds: '$[1].tlds',\n limit: '$[1].limit',\n paging: '$[1].paging',\n maxLength: '$[1].maxLength',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SuggestDomainsOptions {\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\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 resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function suggestDomains(payload: object): RequestOptionsFactory<any> {\n function __suggestDomains({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v2.suggestion',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n { protoPath: '/v2/suggest-domains', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __suggestDomains;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,qEACP,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,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,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B;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["suggestDomains"]}
1
+ {"version":3,"sources":["../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts","../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts"],"sourcesContent":["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 ambassadorWixPremiumDomainsV2Suggestion from './premium-domains-v2-suggestion-domain-suggestions.http.js';\n\nexport interface DomainSuggestion {\n /**\n * Suggested domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /** Whether the domain has a higher price due to its perceived value or demand. */\n premium?: boolean;\n}\n\nexport interface SuggestDomainsRequest {\n /**\n * Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @minLength 1\n * @maxLength 100\n */\n query: string;\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\n /**\n * When set to `true`, domains with a higher price due to their perceived\n * value or demand are excluded from suggestions.\n *\n * Default: `false`\n * @internal\n */\n excludePremiumDomains?: boolean;\n /**\n * When set to `true`, only one suggestion per unique SLD\n * (second-level domain, the part before the TLD) is returned.\n * For example, if both `daniel.com` and `daniel.net` are available,\n * only the first one encountered is included.\n *\n * Default: `false`\n * @internal\n */\n uniqueSldsOnly?: boolean;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of domains to return in the results.\n *\n * Min: `0`\n * Max: `50`\n * @min 1\n * @max 50\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 10000\n */\n cursor?: string | null;\n}\n\nexport interface SuggestDomainsResponse {\n /** List of suggested available domains. */\n suggestions?: DomainSuggestion[];\n /** Metadata about the returned list of suggested domains. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of domains returned in the response. */\n count?: number | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n * @param query - Input to base your domain suggestions on. May include\n * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.\n *\n * Min: 1 characters\n * Max: 100 characters\n * @public\n * @requiredField query\n * @permissionId DOMAINS.PUBLIC_API_PERMISSION\n * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains\n */\nexport async function suggestDomains(\n query: string,\n options?: SuggestDomainsOptions\n): Promise<\n NonNullablePaths<\n SuggestDomainsResponse,\n | `suggestions`\n | `suggestions.${number}.domain`\n | `suggestions.${number}.premium`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n tlds: options?.tlds,\n limit: options?.limit,\n paging: options?.paging,\n maxLength: options?.maxLength,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);\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 query: '$[0]',\n tlds: '$[1].tlds',\n limit: '$[1].limit',\n paging: '$[1].paging',\n maxLength: '$[1].maxLength',\n },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SuggestDomainsOptions {\n /**\n * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must\n * not include the dot. For example, `com`, not `.com`. Not all TLDs can be\n * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.\n * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more\n * information.\n *\n * Max: 10 TLDs\n * @maxSize 10\n * @maxLength 63\n */\n tlds?: string[];\n /**\n * Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @min 1\n * @max 20\n * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be\n * removed on March 1, 2025. Use `paging.limit` instead.\n *\n * Min: `1`\n * Max: `20`\n * Default: `10`\n * @replacedBy paging.limit\n * @targetRemovalDate 2025-03-01\n */\n limit?: number | null;\n /** Cursor paging options. */\n paging?: CursorPaging;\n /**\n * Maximum number of characters for the domain name, excluding the TLD.\n *\n * Min: `3`\n * Max: `63`\n * Default: `63`\n * @min 3\n * @max 63\n */\n maxLength?: number | null;\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 resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www._base_domain_': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'premium._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/domain-search/v2',\n destPath: '/v2',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n {\n srcPath: '/premium/domains/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/v2/check-domain-availability',\n destPath: '/v2/check-domain-availability',\n },\n {\n srcPath: '/v2/suggest-domains',\n destPath: '/v2/suggest-domains',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';\n\n/**\n * Suggests domains that are available for purchase, based on the provided query input.\n *\n * You may use this endpoint to get inspired and then call [Check Domain Availability()](/domainAvailability/check-domain-availability) to check whether a specific variation of the suggestions is also available for purchase.\n *\n * The `tlds` must not include the dot. For example, `com` and not `.com`.\n *\n * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.\n */\nexport function suggestDomains(payload: object): RequestOptionsFactory<any> {\n function __suggestDomains({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v2.suggestion',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(\n { protoPath: '/v2/suggest-domains', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __suggestDomains;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAI3B,SAAS,qEACP,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,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;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,mBAAmB;AAAA,MACjB;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,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,Q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B,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK;AAAA,QACH,EAAE,WAAW,uBAAuB,MAAM,SAAS,KAAK;AAAA,MAC1D;AAAA,MACA,QAAQ,kBAAkB,OAAO;AAAA,IACnC;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;;;ADFA,eAAsBA,gBACpB,OACA,SASA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,IACA,MAAM,SAAS;AAAA,IACf,OAAO,SAAS;AAAA,IAChB,QAAQ,SAAS;AAAA,IACjB,WAAW,SAAS;AAAA,EACtB,CAAC;AAED,QAAM,UACoC,eAAe,OAAO;AAEhE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,MAAM;AAAA,UACN,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS,SAAS;AAAA,IACrB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["suggestDomains"]}
@@ -70,9 +70,9 @@ interface CursorPaging {
70
70
  * Maximum number of domains to return in the results.
71
71
  *
72
72
  * Min: `0`
73
- * Max: `20`
73
+ * Max: `50`
74
74
  * @min 1
75
- * @max 20
75
+ * @max 50
76
76
  */
77
77
  limit?: number | null;
78
78
  /**
@@ -18,7 +18,7 @@ interface SuggestDomainsSignature {
18
18
  * Min: 1 characters
19
19
  * Max: 100 characters
20
20
  */
21
- (query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 4>>;
21
+ (query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 2>>;
22
22
  }
23
23
 
24
24
  declare const suggestDomains: MaybeContext<BuildRESTFunction<typeof suggestDomains$1> & typeof suggestDomains$1>;
@@ -87,9 +87,9 @@ interface CursorPaging {
87
87
  * Maximum number of domains to return in the results.
88
88
  *
89
89
  * Min: `0`
90
- * Max: `20`
90
+ * Max: `50`
91
91
  * @min 1
92
- * @max 20
92
+ * @max 50
93
93
  */
94
94
  limit?: number | null;
95
95
  /**
@@ -144,7 +144,7 @@ interface Cursors {
144
144
  * @permissionId DOMAINS.PUBLIC_API_PERMISSION
145
145
  * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains
146
146
  */
147
- declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 4>>;
147
+ declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 2>>;
148
148
  interface SuggestDomainsOptions {
149
149
  /**
150
150
  * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must
@@ -88,9 +88,9 @@ interface CursorPaging {
88
88
  * Maximum number of domains to return in the results.
89
89
  *
90
90
  * Min: `0`
91
- * Max: `20`
91
+ * Max: `50`
92
92
  * @min 1
93
- * @max 20
93
+ * @max 50
94
94
  */
95
95
  limit?: number | null;
96
96
  /**
@@ -18,7 +18,7 @@ interface SuggestDomainsSignature {
18
18
  * Min: 1 characters
19
19
  * Max: 100 characters
20
20
  */
21
- (query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 4>>;
21
+ (query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 2>>;
22
22
  }
23
23
 
24
24
  declare const suggestDomains: MaybeContext<BuildRESTFunction<typeof suggestDomains$1> & typeof suggestDomains$1>;
@@ -87,9 +87,9 @@ interface CursorPaging {
87
87
  * Maximum number of domains to return in the results.
88
88
  *
89
89
  * Min: `0`
90
- * Max: `20`
90
+ * Max: `50`
91
91
  * @min 1
92
- * @max 20
92
+ * @max 50
93
93
  */
94
94
  limit?: number | null;
95
95
  /**
@@ -144,7 +144,7 @@ interface Cursors {
144
144
  * @permissionId DOMAINS.PUBLIC_API_PERMISSION
145
145
  * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains
146
146
  */
147
- declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 4>>;
147
+ declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<NonNullablePaths<SuggestDomainsResponse, `suggestions` | `suggestions.${number}.domain` | `suggestions.${number}.premium`, 2>>;
148
148
  interface SuggestDomainsOptions {
149
149
  /**
150
150
  * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must
@@ -88,9 +88,9 @@ interface CursorPaging {
88
88
  * Maximum number of domains to return in the results.
89
89
  *
90
90
  * Min: `0`
91
- * Max: `20`
91
+ * Max: `50`
92
92
  * @min 1
93
- * @max 20
93
+ * @max 50
94
94
  */
95
95
  limit?: number | null;
96
96
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_domains_domain-suggestions",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.premium.domains.v2.suggestion"
51
51
  }
52
52
  },
53
- "falconPackageHash": "6fc20df12cb1e6490ac83f7f0cc9a407eb5ac3a867601a5b93e5d1fc"
53
+ "falconPackageHash": "191561726d38abb7721b98266d2e965ccce0855a77129c140e020a39"
54
54
  }