@wix/auto_sdk_multilingual_locale-settings 1.0.2 → 1.0.4

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 (132) hide show
  1. package/build/{internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts → index.d.mts} +185 -160
  2. package/build/{internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts → index.d.ts} +185 -160
  3. package/build/index.js +362 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +329 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +55 -0
  8. package/build/internal/index.d.ts +55 -0
  9. package/build/internal/index.js +362 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +329 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +218 -0
  14. package/build/internal/meta.d.ts +218 -0
  15. package/build/internal/meta.js +218 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +189 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts → internal/multilingual-settings-v2-locale-settings-locale-settings.universal-CEiXVHN_.d.mts} +185 -126
  20. package/build/{es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts → internal/multilingual-settings-v2-locale-settings-locale-settings.universal-CEiXVHN_.d.ts} +185 -126
  21. package/build/meta.d.mts +218 -0
  22. package/build/meta.d.ts +218 -0
  23. package/build/meta.js +218 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +189 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/package.json +13 -12
  28. package/build/cjs/index.d.ts +0 -1
  29. package/build/cjs/index.js +0 -18
  30. package/build/cjs/index.js.map +0 -1
  31. package/build/cjs/index.typings.d.ts +0 -1
  32. package/build/cjs/index.typings.js +0 -18
  33. package/build/cjs/index.typings.js.map +0 -1
  34. package/build/cjs/meta.d.ts +0 -1
  35. package/build/cjs/meta.js +0 -18
  36. package/build/cjs/meta.js.map +0 -1
  37. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +0 -2
  38. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +0 -20
  39. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +0 -1
  40. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +0 -11
  41. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +0 -134
  42. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +0 -1
  43. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +0 -15
  44. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +0 -85
  45. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +0 -1
  46. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +0 -4
  47. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +0 -35
  48. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +0 -1
  49. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +0 -715
  50. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +0 -134
  51. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +0 -1
  52. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +0 -261
  53. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +0 -1
  54. package/build/es/index.d.ts +0 -1
  55. package/build/es/index.js +0 -2
  56. package/build/es/index.js.map +0 -1
  57. package/build/es/index.typings.d.ts +0 -1
  58. package/build/es/index.typings.js +0 -2
  59. package/build/es/index.typings.js.map +0 -1
  60. package/build/es/meta.d.ts +0 -1
  61. package/build/es/meta.js +0 -2
  62. package/build/es/meta.js.map +0 -1
  63. package/build/es/package.json +0 -3
  64. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +0 -2
  65. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +0 -10
  66. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +0 -1
  67. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +0 -11
  68. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +0 -128
  69. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +0 -1
  70. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +0 -15
  71. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +0 -56
  72. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +0 -1
  73. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +0 -4
  74. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +0 -22
  75. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +0 -1
  76. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +0 -715
  77. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +0 -131
  78. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +0 -1
  79. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +0 -232
  80. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +0 -10
  91. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +0 -20
  92. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +0 -1
  93. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +0 -11
  94. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +0 -134
  95. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +0 -1
  96. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +0 -15
  97. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +0 -85
  98. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +0 -1
  99. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +0 -37
  100. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +0 -35
  101. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +0 -1
  102. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +0 -715
  103. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +0 -134
  104. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +0 -1
  105. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +0 -261
  106. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +0 -1
  107. package/build/internal/es/index.d.ts +0 -1
  108. package/build/internal/es/index.js +0 -2
  109. package/build/internal/es/index.js.map +0 -1
  110. package/build/internal/es/index.typings.d.ts +0 -1
  111. package/build/internal/es/index.typings.js +0 -2
  112. package/build/internal/es/index.typings.js.map +0 -1
  113. package/build/internal/es/meta.d.ts +0 -1
  114. package/build/internal/es/meta.js +0 -2
  115. package/build/internal/es/meta.js.map +0 -1
  116. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +0 -10
  117. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +0 -10
  118. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +0 -1
  119. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +0 -11
  120. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +0 -128
  121. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +0 -1
  122. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +0 -15
  123. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +0 -56
  124. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +0 -1
  125. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +0 -37
  126. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +0 -22
  127. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +0 -1
  128. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +0 -715
  129. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +0 -131
  130. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +0 -1
  131. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +0 -232
  132. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +0 -1
@@ -0,0 +1,218 @@
1
+ import { g as GetLocaleSettingsRequest$1, G as GetLocaleSettingsResponse$1, h as UpdateLocaleSettingsRequest$1, U as UpdateLocaleSettingsResponse$1, i as SetMultilingualModeRequest$1, S as SetMultilingualModeResponse$1 } from './multilingual-settings-v2-locale-settings-locale-settings.universal-CEiXVHN_.mjs';
2
+
3
+ interface LocaleSettings {
4
+ /**
5
+ * Revision number, which increments by 1 each time the locale settings object is updated. To prevent conflicting changes, the existing revision must be passed when updating the locale settings object.
6
+ * @readonly
7
+ */
8
+ revision?: string | null;
9
+ /**
10
+ * Date and time the locale settings were created.
11
+ * @readonly
12
+ */
13
+ createdDate?: Date | null;
14
+ /**
15
+ * Date and time the locale settings were last updated.
16
+ * @readonly
17
+ */
18
+ updatedDate?: Date | null;
19
+ /**
20
+ * Indicates whether multilingual mode is enabled for the site.
21
+ *
22
+ * When set to `true`, you can create secondary locales.
23
+ * @readonly
24
+ */
25
+ multilingualModeEnabled?: boolean | null;
26
+ /**
27
+ * Indicates whether the live site will automatically open in a secondary locale if the
28
+ * site visitor's browser is set to that locale.
29
+ *
30
+ * Default: `false`
31
+ *
32
+ * <blockquote class="caution">
33
+ *
34
+ * __Caution:__
35
+ * Auto-switch can harm SEO by causing duplicate content issues and restricting search engine indexing of different language versions, which limits visibility in search results.
36
+ *
37
+ * </blockquote>
38
+ */
39
+ autoSwitch?: boolean | null;
40
+ /**
41
+ * Defines the default method for how secondary languages appear in the live site's URL.
42
+ * The URL structure can be overridden per locale, using the Locale API.
43
+ *
44
+ * Default: `"SUBDIRECTORY"`
45
+ */
46
+ urlStructure?: UrlStructure;
47
+ /**
48
+ * The site's primary locale.
49
+ * @readonly
50
+ */
51
+ primaryLocale?: Locale;
52
+ }
53
+ /** Enum representing the method for resolving locales in URLs. */
54
+ declare enum UrlStructure {
55
+ /** Undefined resolution method. */
56
+ UNDEFINED_RESOLUTION_METHOD = "UNDEFINED_RESOLUTION_METHOD",
57
+ /** Subdirectory resolution method for the URL structure. For example, `"www.mysite.com/fr"`. */
58
+ SUBDIRECTORY = "SUBDIRECTORY",
59
+ /** Subdomain resolution method for the URL structure. For example, `"fr.mysite.com"`. */
60
+ SUBDOMAIN = "SUBDOMAIN",
61
+ /** Query parameter resolution method for the URL structure. For example, `"www.mysite.com?lang=fr"`. */
62
+ QUERY_PARAM = "QUERY_PARAM"
63
+ }
64
+ interface Locale {
65
+ /**
66
+ * Locale ID. The ID is made up of the language and region codes. For example, `"en-US"`.
67
+ * @maxLength 20
68
+ * @format LANGUAGE_TAG
69
+ * @readonly
70
+ * @immutable
71
+ */
72
+ id?: string | null;
73
+ /**
74
+ * Revision number, which increments by 1 each time the locale is updated. To prevent conflicting changes, the existing revision must be passed when updating the locale object.
75
+ * @readonly
76
+ */
77
+ revision?: string | null;
78
+ /**
79
+ * Date and time the locale was created.
80
+ * @readonly
81
+ */
82
+ createdDate?: Date | null;
83
+ /**
84
+ * Date and time the locale was last updated.
85
+ * @readonly
86
+ */
87
+ updatedDate?: Date | null;
88
+ /**
89
+ * Language code. For example, `"en"` for English.
90
+ * @immutable
91
+ * @format LANGUAGE
92
+ */
93
+ languageCode?: string | null;
94
+ /**
95
+ * Region code. For example, `"UK"` for United Kingdom.
96
+ * @immutable
97
+ * @format COUNTRY
98
+ */
99
+ regionCode?: string | null;
100
+ /** Locale visibility status. */
101
+ visibility?: LocaleVisibility;
102
+ /**
103
+ * Indicates whether the locale is the site's primary locale.
104
+ * @readonly
105
+ */
106
+ primaryLocale?: boolean | null;
107
+ /**
108
+ * Indicates whether the locale is treated as the default for site visitors when no language is specified in the URL of the site.
109
+ * @readonly
110
+ */
111
+ visitorPrimaryLocale?: boolean | null;
112
+ /**
113
+ * Flag as a 3-letter language code based on Wix's supported locales. For example, `"USA"` for the United States flag.
114
+ * @maxLength 3
115
+ */
116
+ flag?: string | null;
117
+ /**
118
+ * Regional format for determining how to display data types such as dates, times, numbers, and currencies. For example, `"en-US"` for US English formatting.
119
+ * @format LANGUAGE_TAG
120
+ */
121
+ regionalFormat?: string | null;
122
+ /**
123
+ * Default URL structure for the locale's live site URL,
124
+ * based on the locale's settings, unless overridden.
125
+ * @readonly
126
+ */
127
+ effectiveUrlStructure?: UrlStructure;
128
+ /** Optional override for the locale's default URL structure. */
129
+ urlStructureOverride?: UrlStructureOverride;
130
+ /**
131
+ * Language code based on Wix's supported locales, used to specify the target language when
132
+ * translatable content is sent for machine translation. For example, `"ES"` for Spanish
133
+ * or `"ZH_TW"` for Traditional Chinese.
134
+ *
135
+ * Default: The locale's `languageCode` value.
136
+ * @format LANGUAGE_TAG
137
+ */
138
+ machineTranslationCode?: string | null;
139
+ /**
140
+ * The locale's `displayName`, unless overridden.
141
+ * @readonly
142
+ * @maxLength 30
143
+ */
144
+ effectiveDisplayName?: string | null;
145
+ /**
146
+ * Default display name for the locale, inferred from the locale ID and region code.
147
+ * @readonly
148
+ * @maxLength 30
149
+ */
150
+ displayName?: string | null;
151
+ /**
152
+ * Optional override for the locale's display name.
153
+ * @maxLength 30
154
+ */
155
+ overrideDisplayName?: string | null;
156
+ }
157
+ /** Enum representing the visibility status of a locale. */
158
+ declare enum LocaleVisibility {
159
+ /** Undefined visibility status. */
160
+ UNDEFINED_LOCALE_STATUS = "UNDEFINED_LOCALE_STATUS",
161
+ /** Locale is hidden from site visitors. */
162
+ HIDDEN = "HIDDEN",
163
+ /** Locale is visible to site visitors. A site can only have up to 100 visible locales. */
164
+ VISIBLE = "VISIBLE"
165
+ }
166
+ /** Message for overriding the default resolution method. */
167
+ interface UrlStructureOverride {
168
+ /** Resolution method that defines the URL structure to use instead of the default. */
169
+ urlStructure?: UrlStructure;
170
+ }
171
+ /** Request message for retrieving multilingual settings */
172
+ interface GetLocaleSettingsRequest {
173
+ }
174
+ /** Response message containing the requested multilingual settings */
175
+ interface GetLocaleSettingsResponse {
176
+ /** Retrieved locale settings. */
177
+ localeSettings?: LocaleSettings;
178
+ }
179
+ /** Request message for updating multilingual settings */
180
+ interface UpdateLocaleSettingsRequest {
181
+ /** Locale settings to update. */
182
+ localeSettings: LocaleSettings;
183
+ }
184
+ /** Response message containing the updated multilingual settings */
185
+ interface UpdateLocaleSettingsResponse {
186
+ /** Updated locale settings. */
187
+ localeSettings?: LocaleSettings;
188
+ }
189
+ /** Request message for setting the multilingual mode */
190
+ interface SetMultilingualModeRequest {
191
+ /**
192
+ * Whether to enable multilingual mode for the site.
193
+ *
194
+ * Default: `false`
195
+ */
196
+ multilingualModeEnabled: boolean;
197
+ }
198
+ /** Response message containing the updated settings after changing the multilingual mode */
199
+ interface SetMultilingualModeResponse {
200
+ /** Updated locale settings. */
201
+ localeSettings?: LocaleSettings;
202
+ }
203
+
204
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
205
+ getUrl: (context: any) => string;
206
+ httpMethod: K;
207
+ path: string;
208
+ pathParams: M;
209
+ __requestType: T;
210
+ __originalRequestType: S;
211
+ __responseType: Q;
212
+ __originalResponseType: R;
213
+ };
214
+ declare function getLocaleSettings(): __PublicMethodMetaInfo<'GET', {}, GetLocaleSettingsRequest$1, GetLocaleSettingsRequest, GetLocaleSettingsResponse$1, GetLocaleSettingsResponse>;
215
+ declare function updateLocaleSettings(): __PublicMethodMetaInfo<'PATCH', {}, UpdateLocaleSettingsRequest$1, UpdateLocaleSettingsRequest, UpdateLocaleSettingsResponse$1, UpdateLocaleSettingsResponse>;
216
+ declare function setMultilingualMode(): __PublicMethodMetaInfo<'POST', {}, SetMultilingualModeRequest$1, SetMultilingualModeRequest, SetMultilingualModeResponse$1, SetMultilingualModeResponse>;
217
+
218
+ export { type __PublicMethodMetaInfo, getLocaleSettings, setMultilingualMode, updateLocaleSettings };
@@ -0,0 +1,218 @@
1
+ import { g as GetLocaleSettingsRequest$1, G as GetLocaleSettingsResponse$1, h as UpdateLocaleSettingsRequest$1, U as UpdateLocaleSettingsResponse$1, i as SetMultilingualModeRequest$1, S as SetMultilingualModeResponse$1 } from './multilingual-settings-v2-locale-settings-locale-settings.universal-CEiXVHN_.js';
2
+
3
+ interface LocaleSettings {
4
+ /**
5
+ * Revision number, which increments by 1 each time the locale settings object is updated. To prevent conflicting changes, the existing revision must be passed when updating the locale settings object.
6
+ * @readonly
7
+ */
8
+ revision?: string | null;
9
+ /**
10
+ * Date and time the locale settings were created.
11
+ * @readonly
12
+ */
13
+ createdDate?: Date | null;
14
+ /**
15
+ * Date and time the locale settings were last updated.
16
+ * @readonly
17
+ */
18
+ updatedDate?: Date | null;
19
+ /**
20
+ * Indicates whether multilingual mode is enabled for the site.
21
+ *
22
+ * When set to `true`, you can create secondary locales.
23
+ * @readonly
24
+ */
25
+ multilingualModeEnabled?: boolean | null;
26
+ /**
27
+ * Indicates whether the live site will automatically open in a secondary locale if the
28
+ * site visitor's browser is set to that locale.
29
+ *
30
+ * Default: `false`
31
+ *
32
+ * <blockquote class="caution">
33
+ *
34
+ * __Caution:__
35
+ * Auto-switch can harm SEO by causing duplicate content issues and restricting search engine indexing of different language versions, which limits visibility in search results.
36
+ *
37
+ * </blockquote>
38
+ */
39
+ autoSwitch?: boolean | null;
40
+ /**
41
+ * Defines the default method for how secondary languages appear in the live site's URL.
42
+ * The URL structure can be overridden per locale, using the Locale API.
43
+ *
44
+ * Default: `"SUBDIRECTORY"`
45
+ */
46
+ urlStructure?: UrlStructure;
47
+ /**
48
+ * The site's primary locale.
49
+ * @readonly
50
+ */
51
+ primaryLocale?: Locale;
52
+ }
53
+ /** Enum representing the method for resolving locales in URLs. */
54
+ declare enum UrlStructure {
55
+ /** Undefined resolution method. */
56
+ UNDEFINED_RESOLUTION_METHOD = "UNDEFINED_RESOLUTION_METHOD",
57
+ /** Subdirectory resolution method for the URL structure. For example, `"www.mysite.com/fr"`. */
58
+ SUBDIRECTORY = "SUBDIRECTORY",
59
+ /** Subdomain resolution method for the URL structure. For example, `"fr.mysite.com"`. */
60
+ SUBDOMAIN = "SUBDOMAIN",
61
+ /** Query parameter resolution method for the URL structure. For example, `"www.mysite.com?lang=fr"`. */
62
+ QUERY_PARAM = "QUERY_PARAM"
63
+ }
64
+ interface Locale {
65
+ /**
66
+ * Locale ID. The ID is made up of the language and region codes. For example, `"en-US"`.
67
+ * @maxLength 20
68
+ * @format LANGUAGE_TAG
69
+ * @readonly
70
+ * @immutable
71
+ */
72
+ id?: string | null;
73
+ /**
74
+ * Revision number, which increments by 1 each time the locale is updated. To prevent conflicting changes, the existing revision must be passed when updating the locale object.
75
+ * @readonly
76
+ */
77
+ revision?: string | null;
78
+ /**
79
+ * Date and time the locale was created.
80
+ * @readonly
81
+ */
82
+ createdDate?: Date | null;
83
+ /**
84
+ * Date and time the locale was last updated.
85
+ * @readonly
86
+ */
87
+ updatedDate?: Date | null;
88
+ /**
89
+ * Language code. For example, `"en"` for English.
90
+ * @immutable
91
+ * @format LANGUAGE
92
+ */
93
+ languageCode?: string | null;
94
+ /**
95
+ * Region code. For example, `"UK"` for United Kingdom.
96
+ * @immutable
97
+ * @format COUNTRY
98
+ */
99
+ regionCode?: string | null;
100
+ /** Locale visibility status. */
101
+ visibility?: LocaleVisibility;
102
+ /**
103
+ * Indicates whether the locale is the site's primary locale.
104
+ * @readonly
105
+ */
106
+ primaryLocale?: boolean | null;
107
+ /**
108
+ * Indicates whether the locale is treated as the default for site visitors when no language is specified in the URL of the site.
109
+ * @readonly
110
+ */
111
+ visitorPrimaryLocale?: boolean | null;
112
+ /**
113
+ * Flag as a 3-letter language code based on Wix's supported locales. For example, `"USA"` for the United States flag.
114
+ * @maxLength 3
115
+ */
116
+ flag?: string | null;
117
+ /**
118
+ * Regional format for determining how to display data types such as dates, times, numbers, and currencies. For example, `"en-US"` for US English formatting.
119
+ * @format LANGUAGE_TAG
120
+ */
121
+ regionalFormat?: string | null;
122
+ /**
123
+ * Default URL structure for the locale's live site URL,
124
+ * based on the locale's settings, unless overridden.
125
+ * @readonly
126
+ */
127
+ effectiveUrlStructure?: UrlStructure;
128
+ /** Optional override for the locale's default URL structure. */
129
+ urlStructureOverride?: UrlStructureOverride;
130
+ /**
131
+ * Language code based on Wix's supported locales, used to specify the target language when
132
+ * translatable content is sent for machine translation. For example, `"ES"` for Spanish
133
+ * or `"ZH_TW"` for Traditional Chinese.
134
+ *
135
+ * Default: The locale's `languageCode` value.
136
+ * @format LANGUAGE_TAG
137
+ */
138
+ machineTranslationCode?: string | null;
139
+ /**
140
+ * The locale's `displayName`, unless overridden.
141
+ * @readonly
142
+ * @maxLength 30
143
+ */
144
+ effectiveDisplayName?: string | null;
145
+ /**
146
+ * Default display name for the locale, inferred from the locale ID and region code.
147
+ * @readonly
148
+ * @maxLength 30
149
+ */
150
+ displayName?: string | null;
151
+ /**
152
+ * Optional override for the locale's display name.
153
+ * @maxLength 30
154
+ */
155
+ overrideDisplayName?: string | null;
156
+ }
157
+ /** Enum representing the visibility status of a locale. */
158
+ declare enum LocaleVisibility {
159
+ /** Undefined visibility status. */
160
+ UNDEFINED_LOCALE_STATUS = "UNDEFINED_LOCALE_STATUS",
161
+ /** Locale is hidden from site visitors. */
162
+ HIDDEN = "HIDDEN",
163
+ /** Locale is visible to site visitors. A site can only have up to 100 visible locales. */
164
+ VISIBLE = "VISIBLE"
165
+ }
166
+ /** Message for overriding the default resolution method. */
167
+ interface UrlStructureOverride {
168
+ /** Resolution method that defines the URL structure to use instead of the default. */
169
+ urlStructure?: UrlStructure;
170
+ }
171
+ /** Request message for retrieving multilingual settings */
172
+ interface GetLocaleSettingsRequest {
173
+ }
174
+ /** Response message containing the requested multilingual settings */
175
+ interface GetLocaleSettingsResponse {
176
+ /** Retrieved locale settings. */
177
+ localeSettings?: LocaleSettings;
178
+ }
179
+ /** Request message for updating multilingual settings */
180
+ interface UpdateLocaleSettingsRequest {
181
+ /** Locale settings to update. */
182
+ localeSettings: LocaleSettings;
183
+ }
184
+ /** Response message containing the updated multilingual settings */
185
+ interface UpdateLocaleSettingsResponse {
186
+ /** Updated locale settings. */
187
+ localeSettings?: LocaleSettings;
188
+ }
189
+ /** Request message for setting the multilingual mode */
190
+ interface SetMultilingualModeRequest {
191
+ /**
192
+ * Whether to enable multilingual mode for the site.
193
+ *
194
+ * Default: `false`
195
+ */
196
+ multilingualModeEnabled: boolean;
197
+ }
198
+ /** Response message containing the updated settings after changing the multilingual mode */
199
+ interface SetMultilingualModeResponse {
200
+ /** Updated locale settings. */
201
+ localeSettings?: LocaleSettings;
202
+ }
203
+
204
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
205
+ getUrl: (context: any) => string;
206
+ httpMethod: K;
207
+ path: string;
208
+ pathParams: M;
209
+ __requestType: T;
210
+ __originalRequestType: S;
211
+ __responseType: Q;
212
+ __originalResponseType: R;
213
+ };
214
+ declare function getLocaleSettings(): __PublicMethodMetaInfo<'GET', {}, GetLocaleSettingsRequest$1, GetLocaleSettingsRequest, GetLocaleSettingsResponse$1, GetLocaleSettingsResponse>;
215
+ declare function updateLocaleSettings(): __PublicMethodMetaInfo<'PATCH', {}, UpdateLocaleSettingsRequest$1, UpdateLocaleSettingsRequest, UpdateLocaleSettingsResponse$1, UpdateLocaleSettingsResponse>;
216
+ declare function setMultilingualMode(): __PublicMethodMetaInfo<'POST', {}, SetMultilingualModeRequest$1, SetMultilingualModeRequest, SetMultilingualModeResponse$1, SetMultilingualModeResponse>;
217
+
218
+ export { type __PublicMethodMetaInfo, getLocaleSettings, setMultilingualMode, updateLocaleSettings };
@@ -0,0 +1,218 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ getLocaleSettings: () => getLocaleSettings2,
24
+ setMultilingualMode: () => setMultilingualMode2,
25
+ updateLocaleSettings: () => updateLocaleSettings2
26
+ });
27
+ module.exports = __toCommonJS(meta_exports);
28
+
29
+ // src/multilingual-settings-v2-locale-settings-locale-settings.http.ts
30
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
31
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
32
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
33
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
34
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
35
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
36
+ function resolveWixMultilingualSettingsV2SettingsServiceUrl(opts) {
37
+ const domainToMappings = {
38
+ "manage._base_domain_": [
39
+ {
40
+ srcPath: "/_api/settings",
41
+ destPath: ""
42
+ }
43
+ ]
44
+ };
45
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
46
+ }
47
+ var PACKAGE_NAME = "@wix/auto_sdk_multilingual_locale-settings";
48
+ function getLocaleSettings(payload) {
49
+ function __getLocaleSettings({ host }) {
50
+ const metadata = {
51
+ entityFqdn: "wix.multilingual.settings.v2.locale_settings",
52
+ method: "GET",
53
+ methodFqn: "wix.multilingual.settings.v2.SettingsService.GetLocaleSettings",
54
+ packageName: PACKAGE_NAME,
55
+ url: resolveWixMultilingualSettingsV2SettingsServiceUrl({
56
+ protoPath: "/v2/settings",
57
+ data: payload,
58
+ host
59
+ }),
60
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
61
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
62
+ {
63
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
64
+ paths: [
65
+ { path: "localeSettings.createdDate" },
66
+ { path: "localeSettings.updatedDate" },
67
+ { path: "localeSettings.primaryLocale.createdDate" },
68
+ { path: "localeSettings.primaryLocale.updatedDate" }
69
+ ]
70
+ }
71
+ ])
72
+ };
73
+ return metadata;
74
+ }
75
+ return __getLocaleSettings;
76
+ }
77
+ function updateLocaleSettings(payload) {
78
+ function __updateLocaleSettings({ host }) {
79
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
80
+ {
81
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
82
+ paths: [{ path: "fieldMask" }]
83
+ },
84
+ {
85
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
86
+ paths: [
87
+ { path: "localeSettings.createdDate" },
88
+ { path: "localeSettings.updatedDate" },
89
+ { path: "localeSettings.primaryLocale.createdDate" },
90
+ { path: "localeSettings.primaryLocale.updatedDate" }
91
+ ]
92
+ }
93
+ ]);
94
+ const metadata = {
95
+ entityFqdn: "wix.multilingual.settings.v2.locale_settings",
96
+ method: "PATCH",
97
+ methodFqn: "wix.multilingual.settings.v2.SettingsService.UpdateLocaleSettings",
98
+ packageName: PACKAGE_NAME,
99
+ url: resolveWixMultilingualSettingsV2SettingsServiceUrl({
100
+ protoPath: "/v2/settings",
101
+ data: serializedData,
102
+ host
103
+ }),
104
+ data: serializedData,
105
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
106
+ {
107
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
108
+ paths: [
109
+ { path: "localeSettings.createdDate" },
110
+ { path: "localeSettings.updatedDate" },
111
+ { path: "localeSettings.primaryLocale.createdDate" },
112
+ { path: "localeSettings.primaryLocale.updatedDate" }
113
+ ]
114
+ }
115
+ ])
116
+ };
117
+ return metadata;
118
+ }
119
+ return __updateLocaleSettings;
120
+ }
121
+ function setMultilingualMode(payload) {
122
+ function __setMultilingualMode({ host }) {
123
+ const metadata = {
124
+ entityFqdn: "wix.multilingual.settings.v2.locale_settings",
125
+ method: "POST",
126
+ methodFqn: "wix.multilingual.settings.v2.SettingsService.SetMultilingualMode",
127
+ packageName: PACKAGE_NAME,
128
+ url: resolveWixMultilingualSettingsV2SettingsServiceUrl({
129
+ protoPath: "/v2/settings/mode",
130
+ data: payload,
131
+ host
132
+ }),
133
+ data: payload,
134
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
135
+ {
136
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
137
+ paths: [
138
+ { path: "localeSettings.createdDate" },
139
+ { path: "localeSettings.updatedDate" },
140
+ { path: "localeSettings.primaryLocale.createdDate" },
141
+ { path: "localeSettings.primaryLocale.updatedDate" }
142
+ ]
143
+ }
144
+ ])
145
+ };
146
+ return metadata;
147
+ }
148
+ return __setMultilingualMode;
149
+ }
150
+
151
+ // src/multilingual-settings-v2-locale-settings-locale-settings.meta.ts
152
+ function getLocaleSettings2() {
153
+ const payload = {};
154
+ const getRequestOptions = getLocaleSettings(
155
+ payload
156
+ );
157
+ const getUrl = (context) => {
158
+ const { url } = getRequestOptions(context);
159
+ return url;
160
+ };
161
+ return {
162
+ getUrl,
163
+ httpMethod: "GET",
164
+ path: "/v2/settings",
165
+ pathParams: {},
166
+ __requestType: null,
167
+ __originalRequestType: null,
168
+ __responseType: null,
169
+ __originalResponseType: null
170
+ };
171
+ }
172
+ function updateLocaleSettings2() {
173
+ const payload = {};
174
+ const getRequestOptions = updateLocaleSettings(
175
+ payload
176
+ );
177
+ const getUrl = (context) => {
178
+ const { url } = getRequestOptions(context);
179
+ return url;
180
+ };
181
+ return {
182
+ getUrl,
183
+ httpMethod: "PATCH",
184
+ path: "/v2/settings",
185
+ pathParams: {},
186
+ __requestType: null,
187
+ __originalRequestType: null,
188
+ __responseType: null,
189
+ __originalResponseType: null
190
+ };
191
+ }
192
+ function setMultilingualMode2() {
193
+ const payload = {};
194
+ const getRequestOptions = setMultilingualMode(
195
+ payload
196
+ );
197
+ const getUrl = (context) => {
198
+ const { url } = getRequestOptions(context);
199
+ return url;
200
+ };
201
+ return {
202
+ getUrl,
203
+ httpMethod: "POST",
204
+ path: "/v2/settings/mode",
205
+ pathParams: {},
206
+ __requestType: null,
207
+ __originalRequestType: null,
208
+ __responseType: null,
209
+ __originalResponseType: null
210
+ };
211
+ }
212
+ // Annotate the CommonJS export names for ESM import in node:
213
+ 0 && (module.exports = {
214
+ getLocaleSettings,
215
+ setMultilingualMode,
216
+ updateLocaleSettings
217
+ });
218
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../meta.ts","../../src/multilingual-settings-v2-locale-settings-locale-settings.http.ts","../../src/multilingual-settings-v2-locale-settings-locale-settings.meta.ts"],"sourcesContent":["export * from './src/multilingual-settings-v2-locale-settings-locale-settings.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixMultilingualSettingsV2SettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/settings',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_multilingual_locale-settings';\n\n/** Retrieves a site's locale settings. */\nexport function getLocaleSettings(payload: object): RequestOptionsFactory<any> {\n function __getLocaleSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.multilingual.settings.v2.locale_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.multilingual.settings.v2.SettingsService.GetLocaleSettings',\n packageName: PACKAGE_NAME,\n url: resolveWixMultilingualSettingsV2SettingsServiceUrl({\n protoPath: '/v2/settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'localeSettings.createdDate' },\n { path: 'localeSettings.updatedDate' },\n { path: 'localeSettings.primaryLocale.createdDate' },\n { path: 'localeSettings.primaryLocale.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getLocaleSettings;\n}\n\n/** Updates a site's locale settings. */\nexport function updateLocaleSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateLocaleSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'localeSettings.createdDate' },\n { path: 'localeSettings.updatedDate' },\n { path: 'localeSettings.primaryLocale.createdDate' },\n { path: 'localeSettings.primaryLocale.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.multilingual.settings.v2.locale_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.multilingual.settings.v2.SettingsService.UpdateLocaleSettings',\n packageName: PACKAGE_NAME,\n url: resolveWixMultilingualSettingsV2SettingsServiceUrl({\n protoPath: '/v2/settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'localeSettings.createdDate' },\n { path: 'localeSettings.updatedDate' },\n { path: 'localeSettings.primaryLocale.createdDate' },\n { path: 'localeSettings.primaryLocale.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateLocaleSettings;\n}\n\n/**\n * Sets a site's multilingual mode.\n *\n * When multilingual mode is enabled, you can create secondary locales.\n *\n * To disable multilingual mode, all secondary locales must first be removed. This action removes all translated content from your site. Disabling multilingual mode will also reset the locale settings to their default values.\n *\n * <blockquote class=\"important\">\n * <strong>Important:</strong>\n *\n * You can only call this method on sites where a Wix user has installed the [Wix Multilingual app](https://www.wix.com/app-market/wix-multilingual?searchLocation=home).\n *\n * </blockquote>\n */\nexport function setMultilingualMode(\n payload: object\n): RequestOptionsFactory<any> {\n function __setMultilingualMode({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.multilingual.settings.v2.locale_settings',\n method: 'POST' as any,\n methodFqn:\n 'wix.multilingual.settings.v2.SettingsService.SetMultilingualMode',\n packageName: PACKAGE_NAME,\n url: resolveWixMultilingualSettingsV2SettingsServiceUrl({\n protoPath: '/v2/settings/mode',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'localeSettings.createdDate' },\n { path: 'localeSettings.updatedDate' },\n { path: 'localeSettings.primaryLocale.createdDate' },\n { path: 'localeSettings.primaryLocale.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setMultilingualMode;\n}\n","import * as ambassadorWixMultilingualSettingsV2LocaleSettings from './multilingual-settings-v2-locale-settings-locale-settings.http.js';\nimport * as ambassadorWixMultilingualSettingsV2LocaleSettingsTypes from './multilingual-settings-v2-locale-settings-locale-settings.types.js';\nimport * as ambassadorWixMultilingualSettingsV2LocaleSettingsUniversalTypes from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function getLocaleSettings(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixMultilingualSettingsV2LocaleSettingsUniversalTypes.GetLocaleSettingsRequest,\n ambassadorWixMultilingualSettingsV2LocaleSettingsTypes.GetLocaleSettingsRequest,\n ambassadorWixMultilingualSettingsV2LocaleSettingsUniversalTypes.GetLocaleSettingsResponse,\n ambassadorWixMultilingualSettingsV2LocaleSettingsTypes.GetLocaleSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMultilingualSettingsV2LocaleSettings.getLocaleSettings(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateLocaleSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixMultilingualSettingsV2LocaleSettingsUniversalTypes.UpdateLocaleSettingsRequest,\n ambassadorWixMultilingualSettingsV2LocaleSettingsTypes.UpdateLocaleSettingsRequest,\n ambassadorWixMultilingualSettingsV2LocaleSettingsUniversalTypes.UpdateLocaleSettingsResponse,\n ambassadorWixMultilingualSettingsV2LocaleSettingsTypes.UpdateLocaleSettingsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMultilingualSettingsV2LocaleSettings.updateLocaleSettings(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/settings',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setMultilingualMode(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixMultilingualSettingsV2LocaleSettingsUniversalTypes.SetMultilingualModeRequest,\n ambassadorWixMultilingualSettingsV2LocaleSettingsTypes.SetMultilingualModeRequest,\n ambassadorWixMultilingualSettingsV2LocaleSettingsUniversalTypes.SetMultilingualModeResponse,\n ambassadorWixMultilingualSettingsV2LocaleSettingsTypes.SetMultilingualModeResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixMultilingualSettingsV2LocaleSettings.setMultilingualMode(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/settings/mode',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":"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","names":["getLocaleSettings","setMultilingualMode","updateLocaleSettings","import_timestamp","import_rest_modules","payload","getLocaleSettings","updateLocaleSettings","setMultilingualMode"]}