@wix/auto_sdk_domains_domain-suggestions 1.0.0

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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.context.d.ts +4 -0
  11. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.context.js +7 -0
  12. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.context.js.map +1 -0
  13. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.http.d.ts +11 -0
  14. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.http.js +72 -0
  15. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.http.js.map +1 -0
  16. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.meta.d.ts +13 -0
  17. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.meta.js +47 -0
  18. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.meta.js.map +1 -0
  19. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.public.d.ts +24 -0
  20. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.public.js +12 -0
  21. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.public.js.map +1 -0
  22. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.types.d.ts +102 -0
  23. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.types.js +3 -0
  24. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.types.js.map +1 -0
  25. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.universal.d.ts +160 -0
  26. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.universal.js +82 -0
  27. package/build/cjs/src/premium-domains-v2-suggestion-domain-suggestions.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.context.d.ts +4 -0
  39. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.context.js +4 -0
  40. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.context.js.map +1 -0
  41. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.http.d.ts +11 -0
  42. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.http.js +68 -0
  43. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.http.js.map +1 -0
  44. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.meta.d.ts +13 -0
  45. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.meta.js +20 -0
  46. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.meta.js.map +1 -0
  47. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.public.d.ts +24 -0
  48. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.public.js +8 -0
  49. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.public.js.map +1 -0
  50. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.types.d.ts +102 -0
  51. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.types.js +2 -0
  52. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.types.js.map +1 -0
  53. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.universal.d.ts +160 -0
  54. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.universal.js +55 -0
  55. package/build/es/src/premium-domains-v2-suggestion-domain-suggestions.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.context.d.ts +4 -0
  66. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.context.js +7 -0
  67. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.context.js.map +1 -0
  68. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.http.d.ts +11 -0
  69. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.http.js +72 -0
  70. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.http.js.map +1 -0
  71. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.meta.d.ts +13 -0
  72. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.meta.js +47 -0
  73. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.meta.js.map +1 -0
  74. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.public.d.ts +24 -0
  75. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.public.js +12 -0
  76. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.public.js.map +1 -0
  77. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.types.d.ts +102 -0
  78. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.types.js +3 -0
  79. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.types.js.map +1 -0
  80. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.universal.d.ts +160 -0
  81. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.universal.js +82 -0
  82. package/build/internal/cjs/src/premium-domains-v2-suggestion-domain-suggestions.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.context.d.ts +4 -0
  93. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.context.js +4 -0
  94. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.context.js.map +1 -0
  95. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.http.d.ts +11 -0
  96. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.http.js +68 -0
  97. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.http.js.map +1 -0
  98. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.meta.d.ts +13 -0
  99. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.meta.js +20 -0
  100. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.meta.js.map +1 -0
  101. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.public.d.ts +24 -0
  102. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.public.js +8 -0
  103. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.public.js.map +1 -0
  104. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.types.d.ts +102 -0
  105. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.types.js +2 -0
  106. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.types.js.map +1 -0
  107. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.universal.d.ts +160 -0
  108. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.universal.js +55 -0
  109. package/build/internal/es/src/premium-domains-v2-suggestion-domain-suggestions.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.suggestDomains = void 0;
4
+ const premium_domains_v2_suggestion_domain_suggestions_public_js_1 = require("./premium-domains-v2-suggestion-domain-suggestions.public.js");
5
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
+ exports.suggestDomains = (0, rest_modules_1.createRESTModule)(premium_domains_v2_suggestion_domain_suggestions_public_js_1.suggestDomains);
7
+ //# sourceMappingURL=premium-domains-v2-suggestion-domain-suggestions.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium-domains-v2-suggestion-domain-suggestions.context.js","sourceRoot":"","sources":["../../../../src/premium-domains-v2-suggestion-domain-suggestions.context.ts"],"names":[],"mappings":";;;AAAA,6IAAsH;AACtH,gEAAiE;AAGpD,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,2EAAoB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ /**
3
+ * Suggests domains that are available for purchase, based on the provided query input.
4
+ *
5
+ * 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 purchsase.
6
+ *
7
+ * The `tlds` must not include the dot. For example, `com` and not `.com`.
8
+ *
9
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
10
+ */
11
+ export declare function suggestDomains(payload: object): RequestOptionsFactory<any>;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.suggestDomains = void 0;
4
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
+ const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
6
+ function resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl(opts) {
7
+ const domainToMappings = {
8
+ 'www._base_domain_': [
9
+ {
10
+ srcPath: '/domain-search/v2',
11
+ destPath: '/v2',
12
+ },
13
+ {
14
+ srcPath: '/v2/suggest-domains',
15
+ destPath: '/v2/suggest-domains',
16
+ },
17
+ ],
18
+ 'manage._base_domain_': [
19
+ {
20
+ srcPath: '/v2/check-domain-availability',
21
+ destPath: '/v2/check-domain-availability',
22
+ },
23
+ {
24
+ srcPath: '/v2/suggest-domains',
25
+ destPath: '/v2/suggest-domains',
26
+ },
27
+ ],
28
+ 'premium._base_domain_': [
29
+ {
30
+ srcPath: '/v2/check-domain-availability',
31
+ destPath: '/v2/check-domain-availability',
32
+ },
33
+ {
34
+ srcPath: '/v2/suggest-domains',
35
+ destPath: '/v2/suggest-domains',
36
+ },
37
+ ],
38
+ 'www.wixapis.com': [
39
+ {
40
+ srcPath: '/domain-search/v2',
41
+ destPath: '/v2',
42
+ },
43
+ ],
44
+ };
45
+ return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
46
+ }
47
+ const PACKAGE_NAME = '@wix/auto_sdk_domains_domain-suggestions';
48
+ /**
49
+ * Suggests domains that are available for purchase, based on the provided query input.
50
+ *
51
+ * 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 purchsase.
52
+ *
53
+ * The `tlds` must not include the dot. For example, `com` and not `.com`.
54
+ *
55
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
56
+ */
57
+ function suggestDomains(payload) {
58
+ function __suggestDomains({ host }) {
59
+ const metadata = {
60
+ entityFqdn: 'wix.premium.domains.v2.suggestion',
61
+ method: 'GET',
62
+ methodFqn: 'com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains',
63
+ packageName: PACKAGE_NAME,
64
+ url: resolveComWixpressPremiumDomainSearchSuggestV2DomainSearchServiceUrl({ protoPath: '/v2/suggest-domains', data: payload, host }),
65
+ params: (0, rest_modules_1.toURLSearchParams)(payload),
66
+ };
67
+ return metadata;
68
+ }
69
+ return __suggestDomains;
70
+ }
71
+ exports.suggestDomains = suggestDomains;
72
+ //# sourceMappingURL=premium-domains-v2-suggestion-domain-suggestions.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium-domains-v2-suggestion-domain-suggestions.http.js","sourceRoot":"","sources":["../../../../src/premium-domains-v2-suggestion-domain-suggestions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,gEAA2D;AAI3D,SAAS,oEAAoE,CAC3E,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,mBAAmB;gBAC5B,QAAQ,EAAE,KAAK;aAChB;YACD;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,qBAAqB;aAChC;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,+BAA+B;aAC1C;YACD;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,qBAAqB;aAChC;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,+BAA+B;aAC1C;YACD;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,qBAAqB;aAChC;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,mBAAmB;gBAC5B,QAAQ,EAAE,KAAK;aAChB;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,0CAA0C,CAAC;AAEhE;;;;;;;;GAQG;AACH,SAAgB,cAAc,CAAC,OAAe;IAC5C,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAO;QACrC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,mCAAmC;YAC/C,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,kFAAkF;YACpF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,oEAAoE,CACvE,EAAE,SAAS,EAAE,qBAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAC1D;YACD,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;SACnC,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAlBD,wCAkBC"}
@@ -0,0 +1,13 @@
1
+ import * as ambassadorWixPremiumDomainsV2SuggestionTypes from './premium-domains-v2-suggestion-domain-suggestions.types.js';
2
+ import * as ambassadorWixPremiumDomainsV2SuggestionUniversalTypes from './premium-domains-v2-suggestion-domain-suggestions.universal.js';
3
+ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function suggestDomains(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixPremiumDomainsV2SuggestionUniversalTypes.SuggestDomainsRequest, ambassadorWixPremiumDomainsV2SuggestionTypes.SuggestDomainsRequest, ambassadorWixPremiumDomainsV2SuggestionUniversalTypes.SuggestDomainsResponse & ambassadorWixPremiumDomainsV2SuggestionUniversalTypes.SuggestDomainsResponseNonNullableFields, ambassadorWixPremiumDomainsV2SuggestionTypes.SuggestDomainsResponse & ambassadorWixPremiumDomainsV2SuggestionTypes.SuggestDomainsResponseNonNullableFields>;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.suggestDomains = void 0;
27
+ const ambassadorWixPremiumDomainsV2Suggestion = __importStar(require("./premium-domains-v2-suggestion-domain-suggestions.http.js"));
28
+ function suggestDomains() {
29
+ const payload = {};
30
+ const getRequestOptions = ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);
31
+ const getUrl = (context) => {
32
+ const { url } = getRequestOptions(context);
33
+ return url;
34
+ };
35
+ return {
36
+ getUrl,
37
+ httpMethod: 'GET',
38
+ path: '/v2/suggest-domains',
39
+ pathParams: {},
40
+ __requestType: null,
41
+ __originalRequestType: null,
42
+ __responseType: null,
43
+ __originalResponseType: null,
44
+ };
45
+ }
46
+ exports.suggestDomains = suggestDomains;
47
+ //# sourceMappingURL=premium-domains-v2-suggestion-domain-suggestions.meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium-domains-v2-suggestion-domain-suggestions.meta.js","sourceRoot":"","sources":["../../../../src/premium-domains-v2-suggestion-domain-suggestions.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oIAAsH;AAsBtH,SAAgB,cAAc;IAU5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,uCAAuC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAElE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,wCA8BC"}
@@ -0,0 +1,24 @@
1
+ import { HttpClient } from '@wix/sdk-types';
2
+ import { SuggestDomainsOptions, SuggestDomainsResponse, SuggestDomainsResponseNonNullableFields } from './premium-domains-v2-suggestion-domain-suggestions.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function suggestDomains(httpClient: HttpClient): SuggestDomainsSignature;
7
+ interface SuggestDomainsSignature {
8
+ /**
9
+ * Suggests domains that are available for purchase, based on the provided query input.
10
+ *
11
+ * 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 purchsase.
12
+ *
13
+ * The `tlds` must not include the dot. For example, `com` and not `.com`.
14
+ *
15
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
16
+ * @param - Input to base your domain suggestions on. May include
17
+ * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.
18
+ *
19
+ * Min: 3 characters
20
+ * Max: 100 characters
21
+ */
22
+ (query: string, options?: SuggestDomainsOptions | undefined): Promise<SuggestDomainsResponse & SuggestDomainsResponseNonNullableFields>;
23
+ }
24
+ export { CursorPaging, CursorPagingMetadata, Cursors, DomainSuggestion, SuggestDomainsOptions, SuggestDomainsRequest, SuggestDomainsResponse, SuggestDomainsResponseNonNullableFields, } from './premium-domains-v2-suggestion-domain-suggestions.universal.js';
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.suggestDomains = exports.__metadata = void 0;
4
+ const premium_domains_v2_suggestion_domain_suggestions_universal_js_1 = require("./premium-domains-v2-suggestion-domain-suggestions.universal.js");
5
+ exports.__metadata = { PACKAGE_NAME: '@wix/domains' };
6
+ function suggestDomains(httpClient) {
7
+ return (query, options) => (0, premium_domains_v2_suggestion_domain_suggestions_universal_js_1.suggestDomains)(query, options,
8
+ // @ts-ignore
9
+ { httpClient });
10
+ }
11
+ exports.suggestDomains = suggestDomains;
12
+ //# sourceMappingURL=premium-domains-v2-suggestion-domain-suggestions.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium-domains-v2-suggestion-domain-suggestions.public.js","sourceRoot":"","sources":["../../../../src/premium-domains-v2-suggestion-domain-suggestions.public.ts"],"names":[],"mappings":";;;AACA,mJAKyE;AAE5D,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE3D,SAAgB,cAAc,CAC5B,UAAsB;IAEtB,OAAO,CAAC,KAAa,EAAE,OAA+B,EAAE,EAAE,CACxD,IAAA,8EAAuB,EACrB,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,wCAUC"}
@@ -0,0 +1,102 @@
1
+ export interface DomainSuggestion {
2
+ /** Suggested domain name including TLD. */
3
+ domain?: string;
4
+ /** Whether the domain has a higher price due to its perceived value or demand. */
5
+ premium?: boolean;
6
+ }
7
+ export interface SuggestDomainsRequest {
8
+ /**
9
+ * Input to base your domain suggestions on. May include
10
+ * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.
11
+ *
12
+ * Min: 3 characters
13
+ * Max: 100 characters
14
+ */
15
+ query: string;
16
+ /**
17
+ * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must
18
+ * not include the dot. For example, `com`, not `.com`. Not all TLDs can be
19
+ * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.
20
+ * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more
21
+ * information.
22
+ *
23
+ * Max: 10 TLDs
24
+ */
25
+ tlds?: string[];
26
+ /**
27
+ * Number of domain suggestions to return. __Deprecated__: This field will be
28
+ * removed on March 1, 2025. Use `paging.limit` instead.
29
+ *
30
+ * Min: `1`
31
+ * Max: `20`
32
+ * Default: `10`
33
+ * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be
34
+ * removed on March 1, 2025. Use `paging.limit` instead.
35
+ *
36
+ * Min: `1`
37
+ * Max: `20`
38
+ * Default: `10`
39
+ * @replacedBy paging.limit
40
+ * @targetRemovalDate 2025-03-01
41
+ */
42
+ limit?: number | null;
43
+ /** Cursor paging options. */
44
+ paging?: CursorPaging;
45
+ /**
46
+ * Maximum number of characters for the domain name, excluding the TLD.
47
+ *
48
+ * Min: `3`
49
+ * Max: `63`
50
+ * Default: `63`
51
+ */
52
+ maxLength?: number | null;
53
+ }
54
+ export interface CursorPaging {
55
+ /**
56
+ * Maximum number of domains to return in the results.
57
+ *
58
+ * Min: `0`
59
+ * Max: `20`
60
+ */
61
+ limit?: number | null;
62
+ /**
63
+ * Pointer to the next or previous page in the list of results.
64
+ *
65
+ * You can get the relevant cursor token
66
+ * from the `pagingMetadata` object in the previous call's response.
67
+ * Not relevant for the first request.
68
+ */
69
+ cursor?: string | null;
70
+ }
71
+ export interface SuggestDomainsResponse {
72
+ /** List of suggested available domains. */
73
+ suggestions?: DomainSuggestion[];
74
+ /** Metadata about the returned list of suggested domains. */
75
+ pagingMetadata?: CursorPagingMetadata;
76
+ }
77
+ export interface CursorPagingMetadata {
78
+ /** Number of domains returned in the response. */
79
+ count?: number | null;
80
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
81
+ cursors?: Cursors;
82
+ /**
83
+ * Indicates if there are more results after the current page.
84
+ * If `true`, another page of results can be retrieved.
85
+ * If `false`, this is the last page.
86
+ */
87
+ hasNext?: boolean | null;
88
+ }
89
+ export interface Cursors {
90
+ /** Cursor pointing to next page in the list of results. */
91
+ next?: string | null;
92
+ /** Cursor pointing to previous page in the list of results. */
93
+ prev?: string | null;
94
+ }
95
+ interface DomainSuggestionNonNullableFields {
96
+ domain: string;
97
+ premium: boolean;
98
+ }
99
+ export interface SuggestDomainsResponseNonNullableFields {
100
+ suggestions: DomainSuggestionNonNullableFields[];
101
+ }
102
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=premium-domains-v2-suggestion-domain-suggestions.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium-domains-v2-suggestion-domain-suggestions.types.js","sourceRoot":"","sources":["../../../../src/premium-domains-v2-suggestion-domain-suggestions.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,160 @@
1
+ export interface DomainSuggestion {
2
+ /** Suggested domain name including TLD. */
3
+ domain?: string;
4
+ /** Whether the domain has a higher price due to its perceived value or demand. */
5
+ premium?: boolean;
6
+ }
7
+ export interface SuggestDomainsRequest {
8
+ /**
9
+ * Input to base your domain suggestions on. May include
10
+ * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.
11
+ *
12
+ * Min: 3 characters
13
+ * Max: 100 characters
14
+ */
15
+ query: string;
16
+ /**
17
+ * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must
18
+ * not include the dot. For example, `com`, not `.com`. Not all TLDs can be
19
+ * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.
20
+ * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more
21
+ * information.
22
+ *
23
+ * Max: 10 TLDs
24
+ */
25
+ tlds?: string[];
26
+ /**
27
+ * Number of domain suggestions to return. __Deprecated__: This field will be
28
+ * removed on March 1, 2025. Use `paging.limit` instead.
29
+ *
30
+ * Min: `1`
31
+ * Max: `20`
32
+ * Default: `10`
33
+ * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be
34
+ * removed on March 1, 2025. Use `paging.limit` instead.
35
+ *
36
+ * Min: `1`
37
+ * Max: `20`
38
+ * Default: `10`
39
+ * @replacedBy paging.limit
40
+ * @targetRemovalDate 2025-03-01
41
+ */
42
+ limit?: number | null;
43
+ /** Cursor paging options. */
44
+ paging?: CursorPaging;
45
+ /**
46
+ * Maximum number of characters for the domain name, excluding the TLD.
47
+ *
48
+ * Min: `3`
49
+ * Max: `63`
50
+ * Default: `63`
51
+ */
52
+ maxLength?: number | null;
53
+ }
54
+ export interface CursorPaging {
55
+ /**
56
+ * Maximum number of domains to return in the results.
57
+ *
58
+ * Min: `0`
59
+ * Max: `20`
60
+ */
61
+ limit?: number | null;
62
+ /**
63
+ * Pointer to the next or previous page in the list of results.
64
+ *
65
+ * You can get the relevant cursor token
66
+ * from the `pagingMetadata` object in the previous call's response.
67
+ * Not relevant for the first request.
68
+ */
69
+ cursor?: string | null;
70
+ }
71
+ export interface SuggestDomainsResponse {
72
+ /** List of suggested available domains. */
73
+ suggestions?: DomainSuggestion[];
74
+ /** Metadata about the returned list of suggested domains. */
75
+ pagingMetadata?: CursorPagingMetadata;
76
+ }
77
+ export interface CursorPagingMetadata {
78
+ /** Number of domains returned in the response. */
79
+ count?: number | null;
80
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
81
+ cursors?: Cursors;
82
+ /**
83
+ * Indicates if there are more results after the current page.
84
+ * If `true`, another page of results can be retrieved.
85
+ * If `false`, this is the last page.
86
+ */
87
+ hasNext?: boolean | null;
88
+ }
89
+ export interface Cursors {
90
+ /** Cursor pointing to next page in the list of results. */
91
+ next?: string | null;
92
+ /** Cursor pointing to previous page in the list of results. */
93
+ prev?: string | null;
94
+ }
95
+ interface DomainSuggestionNonNullableFields {
96
+ domain: string;
97
+ premium: boolean;
98
+ }
99
+ export interface SuggestDomainsResponseNonNullableFields {
100
+ suggestions: DomainSuggestionNonNullableFields[];
101
+ }
102
+ /**
103
+ * Suggests domains that are available for purchase, based on the provided query input.
104
+ *
105
+ * 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 purchsase.
106
+ *
107
+ * The `tlds` must not include the dot. For example, `com` and not `.com`.
108
+ *
109
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
110
+ * @param query - Input to base your domain suggestions on. May include
111
+ * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.
112
+ *
113
+ * Min: 3 characters
114
+ * Max: 100 characters
115
+ * @public
116
+ * @requiredField query
117
+ * @permissionId DOMAINS.PUBLIC_API_PERMISSION
118
+ * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains
119
+ */
120
+ export declare function suggestDomains(query: string, options?: SuggestDomainsOptions): Promise<SuggestDomainsResponse & SuggestDomainsResponseNonNullableFields>;
121
+ export interface SuggestDomainsOptions {
122
+ /**
123
+ * [Top-level domains](https://en.wikipedia.org/wiki/Top-level_domain). Must
124
+ * not include the dot. For example, `com`, not `.com`. Not all TLDs can be
125
+ * connected to Wix sites. Supported TLDS include `com`, `net`, and `org`.
126
+ * Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more
127
+ * information.
128
+ *
129
+ * Max: 10 TLDs
130
+ */
131
+ tlds?: string[];
132
+ /**
133
+ * Number of domain suggestions to return. __Deprecated__: This field will be
134
+ * removed on March 1, 2025. Use `paging.limit` instead.
135
+ *
136
+ * Min: `1`
137
+ * Max: `20`
138
+ * Default: `10`
139
+ * @deprecated Number of domain suggestions to return. __Deprecated__: This field will be
140
+ * removed on March 1, 2025. Use `paging.limit` instead.
141
+ *
142
+ * Min: `1`
143
+ * Max: `20`
144
+ * Default: `10`
145
+ * @replacedBy paging.limit
146
+ * @targetRemovalDate 2025-03-01
147
+ */
148
+ limit?: number | null;
149
+ /** Cursor paging options. */
150
+ paging?: CursorPaging;
151
+ /**
152
+ * Maximum number of characters for the domain name, excluding the TLD.
153
+ *
154
+ * Min: `3`
155
+ * Max: `63`
156
+ * Default: `63`
157
+ */
158
+ maxLength?: number | null;
159
+ }
160
+ export {};
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.suggestDomains = void 0;
27
+ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
29
+ const ambassadorWixPremiumDomainsV2Suggestion = __importStar(require("./premium-domains-v2-suggestion-domain-suggestions.http.js"));
30
+ /**
31
+ * Suggests domains that are available for purchase, based on the provided query input.
32
+ *
33
+ * 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 purchsase.
34
+ *
35
+ * The `tlds` must not include the dot. For example, `com` and not `.com`.
36
+ *
37
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
38
+ * @param query - Input to base your domain suggestions on. May include
39
+ * letters, numbers, spaces, dots, and hyphens. Must not include the TLD.
40
+ *
41
+ * Min: 3 characters
42
+ * Max: 100 characters
43
+ * @public
44
+ * @requiredField query
45
+ * @permissionId DOMAINS.PUBLIC_API_PERMISSION
46
+ * @fqn com.wixpress.premium.domain.search.suggest.v2.DomainSearchService.SuggestDomains
47
+ */
48
+ async function suggestDomains(query, options) {
49
+ // @ts-ignore
50
+ const { httpClient, sideEffects } = arguments[2];
51
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
52
+ query: query,
53
+ tlds: options?.tlds,
54
+ limit: options?.limit,
55
+ paging: options?.paging,
56
+ maxLength: options?.maxLength,
57
+ });
58
+ const reqOpts = ambassadorWixPremiumDomainsV2Suggestion.suggestDomains(payload);
59
+ sideEffects?.onSiteCall?.();
60
+ try {
61
+ const result = await httpClient.request(reqOpts);
62
+ sideEffects?.onSuccess?.(result);
63
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
64
+ }
65
+ catch (err) {
66
+ const transformedError = (0, transform_error_1.transformError)(err, {
67
+ spreadPathsToArguments: {},
68
+ explicitPathsToArguments: {
69
+ query: '$[0]',
70
+ tlds: '$[1].tlds',
71
+ limit: '$[1].limit',
72
+ paging: '$[1].paging',
73
+ maxLength: '$[1].maxLength',
74
+ },
75
+ singleArgumentUnchanged: false,
76
+ }, ['query', 'options']);
77
+ sideEffects?.onError?.(err);
78
+ throw transformedError;
79
+ }
80
+ }
81
+ exports.suggestDomains = suggestDomains;
82
+ //# sourceMappingURL=premium-domains-v2-suggestion-domain-suggestions.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium-domains-v2-suggestion-domain-suggestions.universal.js","sourceRoot":"","sources":["../../../../src/premium-domains-v2-suggestion-domain-suggestions.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,oIAAsH;AA+GtH;;;;;;;;;;;;;;;;;GAiBG;AACI,KAAK,UAAU,cAAc,CAClC,KAAa,EACb,OAA+B;IAE/B,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,OAAO,EAAE,IAAI;QACnB,KAAK,EAAE,OAAO,EAAE,KAAK;QACrB,MAAM,EAAE,OAAO,EAAE,MAAM;QACvB,SAAS,EAAE,OAAO,EAAE,SAAS;KAC9B,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,uCAAuC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAElE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,KAAK,EAAE,MAAM;gBACb,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,aAAa;gBACrB,SAAS,EAAE,gBAAgB;aAC5B;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AA/CD,wCA+CC"}
@@ -0,0 +1 @@
1
+ export * from './src/premium-domains-v2-suggestion-domain-suggestions.context.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/premium-domains-v2-suggestion-domain-suggestions.context.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/premium-domains-v2-suggestion-domain-suggestions.universal.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/premium-domains-v2-suggestion-domain-suggestions.universal.js';
2
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,qEAAqE,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/premium-domains-v2-suggestion-domain-suggestions.meta.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/premium-domains-v2-suggestion-domain-suggestions.meta.js';
2
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,gEAAgE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { suggestDomains as publicSuggestDomains } from './premium-domains-v2-suggestion-domain-suggestions.public.js';
2
+ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
3
+ export declare const suggestDomains: MaybeContext<BuildRESTFunction<typeof publicSuggestDomains> & typeof publicSuggestDomains>;
4
+ export { DomainSuggestion, SuggestDomainsRequest, CursorPaging, SuggestDomainsResponse, CursorPagingMetadata, Cursors, SuggestDomainsResponseNonNullableFields, SuggestDomainsOptions, } from './premium-domains-v2-suggestion-domain-suggestions.universal.js';
@@ -0,0 +1,4 @@
1
+ import { suggestDomains as publicSuggestDomains } from './premium-domains-v2-suggestion-domain-suggestions.public.js';
2
+ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
+ export const suggestDomains = /*#__PURE__*/ createRESTModule(publicSuggestDomains);
4
+ //# sourceMappingURL=premium-domains-v2-suggestion-domain-suggestions.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium-domains-v2-suggestion-domain-suggestions.context.js","sourceRoot":"","sources":["../../../../src/premium-domains-v2-suggestion-domain-suggestions.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,8DAA8D,CAAC;AACtH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,cAAc,GAEvB,aAAa,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ /**
3
+ * Suggests domains that are available for purchase, based on the provided query input.
4
+ *
5
+ * 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 purchsase.
6
+ *
7
+ * The `tlds` must not include the dot. For example, `com` and not `.com`.
8
+ *
9
+ * > **Important:** This call requires an account level API key and cannot be authenticated with the standard authorization header.
10
+ */
11
+ export declare function suggestDomains(payload: object): RequestOptionsFactory<any>;