@wix/auto_sdk_multilingual_locale-settings 1.0.2 → 1.0.3

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/{cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts → index.d.mts} +49 -69
  2. package/build/{es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts → index.d.ts} +49 -69
  3. package/build/index.js +356 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +323 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +44 -0
  8. package/build/internal/index.d.ts +44 -0
  9. package/build/internal/index.js +356 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +323 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +211 -0
  14. package/build/internal/meta.d.ts +211 -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.types.d.ts → internal/multilingual-settings-v2-locale-settings-locale-settings.universal-DWm_DkN7.d.mts} +59 -81
  20. package/build/{es/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts → internal/multilingual-settings-v2-locale-settings-locale-settings.universal-DWm_DkN7.d.ts} +59 -81
  21. package/build/meta.d.mts +211 -0
  22. package/build/meta.d.ts +211 -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.js +0 -134
  50. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +0 -1
  51. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +0 -261
  52. package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +0 -1
  53. package/build/es/index.d.ts +0 -1
  54. package/build/es/index.js +0 -2
  55. package/build/es/index.js.map +0 -1
  56. package/build/es/index.typings.d.ts +0 -1
  57. package/build/es/index.typings.js +0 -2
  58. package/build/es/index.typings.js.map +0 -1
  59. package/build/es/meta.d.ts +0 -1
  60. package/build/es/meta.js +0 -2
  61. package/build/es/meta.js.map +0 -1
  62. package/build/es/package.json +0 -3
  63. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +0 -2
  64. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +0 -10
  65. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +0 -1
  66. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +0 -11
  67. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +0 -128
  68. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +0 -1
  69. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +0 -15
  70. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +0 -56
  71. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +0 -1
  72. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +0 -4
  73. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +0 -22
  74. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +0 -1
  75. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +0 -131
  76. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +0 -1
  77. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +0 -232
  78. package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +0 -1
  79. package/build/internal/cjs/index.d.ts +0 -1
  80. package/build/internal/cjs/index.js +0 -18
  81. package/build/internal/cjs/index.js.map +0 -1
  82. package/build/internal/cjs/index.typings.d.ts +0 -1
  83. package/build/internal/cjs/index.typings.js +0 -18
  84. package/build/internal/cjs/index.typings.js.map +0 -1
  85. package/build/internal/cjs/meta.d.ts +0 -1
  86. package/build/internal/cjs/meta.js +0 -18
  87. package/build/internal/cjs/meta.js.map +0 -1
  88. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +0 -10
  89. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +0 -20
  90. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +0 -1
  91. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +0 -11
  92. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +0 -134
  93. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +0 -1
  94. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +0 -15
  95. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +0 -85
  96. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +0 -1
  97. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +0 -37
  98. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +0 -35
  99. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +0 -1
  100. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +0 -715
  101. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +0 -134
  102. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +0 -1
  103. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts +0 -747
  104. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +0 -261
  105. package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +0 -10
  116. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +0 -10
  117. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +0 -1
  118. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +0 -11
  119. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +0 -128
  120. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +0 -1
  121. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +0 -15
  122. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +0 -56
  123. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +0 -1
  124. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +0 -37
  125. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +0 -22
  126. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +0 -1
  127. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +0 -715
  128. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +0 -131
  129. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +0 -1
  130. package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts +0 -747
  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,323 @@
1
+ // src/multilingual-settings-v2-locale-settings-locale-settings.universal.ts
2
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
+ import {
4
+ renameKeysFromSDKRequestToRESTRequest,
5
+ renameKeysFromRESTResponseToSDKResponse
6
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
7
+
8
+ // src/multilingual-settings-v2-locale-settings-locale-settings.http.ts
9
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
10
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
11
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
12
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
13
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
14
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
15
+ function resolveWixMultilingualSettingsV2SettingsServiceUrl(opts) {
16
+ const domainToMappings = {
17
+ "manage._base_domain_": [
18
+ {
19
+ srcPath: "/_api/settings",
20
+ destPath: ""
21
+ }
22
+ ]
23
+ };
24
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
25
+ }
26
+ var PACKAGE_NAME = "@wix/auto_sdk_multilingual_locale-settings";
27
+ function getLocaleSettings(payload) {
28
+ function __getLocaleSettings({ host }) {
29
+ const metadata = {
30
+ entityFqdn: "wix.multilingual.settings.v2.locale_settings",
31
+ method: "GET",
32
+ methodFqn: "wix.multilingual.settings.v2.SettingsService.GetLocaleSettings",
33
+ packageName: PACKAGE_NAME,
34
+ url: resolveWixMultilingualSettingsV2SettingsServiceUrl({
35
+ protoPath: "/v2/settings",
36
+ data: payload,
37
+ host
38
+ }),
39
+ params: toURLSearchParams(payload),
40
+ transformResponse: (payload2) => transformPaths(payload2, [
41
+ {
42
+ transformFn: transformRESTTimestampToSDKTimestamp,
43
+ paths: [
44
+ { path: "localeSettings.createdDate" },
45
+ { path: "localeSettings.updatedDate" },
46
+ { path: "localeSettings.primaryLocale.createdDate" },
47
+ { path: "localeSettings.primaryLocale.updatedDate" }
48
+ ]
49
+ }
50
+ ])
51
+ };
52
+ return metadata;
53
+ }
54
+ return __getLocaleSettings;
55
+ }
56
+ function updateLocaleSettings(payload) {
57
+ function __updateLocaleSettings({ host }) {
58
+ const serializedData = transformPaths(payload, [
59
+ {
60
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
61
+ paths: [{ path: "fieldMask" }]
62
+ },
63
+ {
64
+ transformFn: transformSDKTimestampToRESTTimestamp,
65
+ paths: [
66
+ { path: "localeSettings.createdDate" },
67
+ { path: "localeSettings.updatedDate" },
68
+ { path: "localeSettings.primaryLocale.createdDate" },
69
+ { path: "localeSettings.primaryLocale.updatedDate" }
70
+ ]
71
+ }
72
+ ]);
73
+ const metadata = {
74
+ entityFqdn: "wix.multilingual.settings.v2.locale_settings",
75
+ method: "PATCH",
76
+ methodFqn: "wix.multilingual.settings.v2.SettingsService.UpdateLocaleSettings",
77
+ packageName: PACKAGE_NAME,
78
+ url: resolveWixMultilingualSettingsV2SettingsServiceUrl({
79
+ protoPath: "/v2/settings",
80
+ data: serializedData,
81
+ host
82
+ }),
83
+ data: serializedData,
84
+ transformResponse: (payload2) => transformPaths(payload2, [
85
+ {
86
+ transformFn: transformRESTTimestampToSDKTimestamp,
87
+ paths: [
88
+ { path: "localeSettings.createdDate" },
89
+ { path: "localeSettings.updatedDate" },
90
+ { path: "localeSettings.primaryLocale.createdDate" },
91
+ { path: "localeSettings.primaryLocale.updatedDate" }
92
+ ]
93
+ }
94
+ ])
95
+ };
96
+ return metadata;
97
+ }
98
+ return __updateLocaleSettings;
99
+ }
100
+ function setMultilingualMode(payload) {
101
+ function __setMultilingualMode({ host }) {
102
+ const metadata = {
103
+ entityFqdn: "wix.multilingual.settings.v2.locale_settings",
104
+ method: "PATCH",
105
+ methodFqn: "wix.multilingual.settings.v2.SettingsService.SetMultilingualMode",
106
+ packageName: PACKAGE_NAME,
107
+ url: resolveWixMultilingualSettingsV2SettingsServiceUrl({
108
+ protoPath: "/v2/settings/mode",
109
+ data: payload,
110
+ host
111
+ }),
112
+ data: payload,
113
+ transformResponse: (payload2) => transformPaths(payload2, [
114
+ {
115
+ transformFn: transformRESTTimestampToSDKTimestamp,
116
+ paths: [
117
+ { path: "localeSettings.createdDate" },
118
+ { path: "localeSettings.updatedDate" },
119
+ { path: "localeSettings.primaryLocale.createdDate" },
120
+ { path: "localeSettings.primaryLocale.updatedDate" }
121
+ ]
122
+ }
123
+ ])
124
+ };
125
+ return metadata;
126
+ }
127
+ return __setMultilingualMode;
128
+ }
129
+
130
+ // src/multilingual-settings-v2-locale-settings-locale-settings.universal.ts
131
+ var UrlStructure = /* @__PURE__ */ ((UrlStructure2) => {
132
+ UrlStructure2["UNDEFINED_RESOLUTION_METHOD"] = "UNDEFINED_RESOLUTION_METHOD";
133
+ UrlStructure2["SUBDIRECTORY"] = "SUBDIRECTORY";
134
+ UrlStructure2["SUBDOMAIN"] = "SUBDOMAIN";
135
+ UrlStructure2["QUERY_PARAM"] = "QUERY_PARAM";
136
+ return UrlStructure2;
137
+ })(UrlStructure || {});
138
+ var LocaleVisibility = /* @__PURE__ */ ((LocaleVisibility2) => {
139
+ LocaleVisibility2["UNDEFINED_LOCALE_STATUS"] = "UNDEFINED_LOCALE_STATUS";
140
+ LocaleVisibility2["HIDDEN"] = "HIDDEN";
141
+ LocaleVisibility2["VISIBLE"] = "VISIBLE";
142
+ return LocaleVisibility2;
143
+ })(LocaleVisibility || {});
144
+ var State = /* @__PURE__ */ ((State2) => {
145
+ State2["UNKNOWN"] = "UNKNOWN";
146
+ State2["ENABLED"] = "ENABLED";
147
+ State2["DISABLED"] = "DISABLED";
148
+ State2["PENDING"] = "PENDING";
149
+ State2["DEMO"] = "DEMO";
150
+ return State2;
151
+ })(State || {});
152
+ var SiteCreatedContext = /* @__PURE__ */ ((SiteCreatedContext2) => {
153
+ SiteCreatedContext2["OTHER"] = "OTHER";
154
+ SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
155
+ SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
156
+ SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
157
+ SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
158
+ SiteCreatedContext2["FLASH"] = "FLASH";
159
+ return SiteCreatedContext2;
160
+ })(SiteCreatedContext || {});
161
+ var Namespace = /* @__PURE__ */ ((Namespace2) => {
162
+ Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
163
+ Namespace2["WIX"] = "WIX";
164
+ Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
165
+ Namespace2["ALBUMS"] = "ALBUMS";
166
+ Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
167
+ Namespace2["HOTELS"] = "HOTELS";
168
+ Namespace2["CLUBS"] = "CLUBS";
169
+ Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
170
+ Namespace2["DEV_SITE"] = "DEV_SITE";
171
+ Namespace2["LOGOS"] = "LOGOS";
172
+ Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
173
+ Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
174
+ Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
175
+ Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
176
+ Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
177
+ Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
178
+ Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
179
+ Namespace2["ANYWHERE"] = "ANYWHERE";
180
+ Namespace2["HEADLESS"] = "HEADLESS";
181
+ Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
182
+ Namespace2["RISE"] = "RISE";
183
+ Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
184
+ Namespace2["NOWNIA"] = "NOWNIA";
185
+ Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
186
+ Namespace2["CODUX"] = "CODUX";
187
+ return Namespace2;
188
+ })(Namespace || {});
189
+ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
190
+ DeleteStatus2["UNKNOWN"] = "UNKNOWN";
191
+ DeleteStatus2["TRASH"] = "TRASH";
192
+ DeleteStatus2["DELETED"] = "DELETED";
193
+ DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
194
+ return DeleteStatus2;
195
+ })(DeleteStatus || {});
196
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
197
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
198
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
199
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
200
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
201
+ WebhookIdentityType2["APP"] = "APP";
202
+ return WebhookIdentityType2;
203
+ })(WebhookIdentityType || {});
204
+ async function getLocaleSettings2() {
205
+ const { httpClient, sideEffects } = arguments[0];
206
+ const payload = renameKeysFromSDKRequestToRESTRequest({});
207
+ const reqOpts = getLocaleSettings(
208
+ payload
209
+ );
210
+ sideEffects?.onSiteCall?.();
211
+ try {
212
+ const result = await httpClient.request(reqOpts);
213
+ sideEffects?.onSuccess?.(result);
214
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
215
+ } catch (err) {
216
+ const transformedError = sdkTransformError(
217
+ err,
218
+ {
219
+ spreadPathsToArguments: {},
220
+ explicitPathsToArguments: {},
221
+ singleArgumentUnchanged: false
222
+ },
223
+ []
224
+ );
225
+ sideEffects?.onError?.(err);
226
+ throw transformedError;
227
+ }
228
+ }
229
+ async function updateLocaleSettings2(localeSettings) {
230
+ const { httpClient, sideEffects } = arguments[1];
231
+ const payload = renameKeysFromSDKRequestToRESTRequest({
232
+ localeSettings
233
+ });
234
+ const reqOpts = updateLocaleSettings(
235
+ payload
236
+ );
237
+ sideEffects?.onSiteCall?.();
238
+ try {
239
+ const result = await httpClient.request(reqOpts);
240
+ sideEffects?.onSuccess?.(result);
241
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
242
+ } catch (err) {
243
+ const transformedError = sdkTransformError(
244
+ err,
245
+ {
246
+ spreadPathsToArguments: {},
247
+ explicitPathsToArguments: { localeSettings: "$[0]" },
248
+ singleArgumentUnchanged: false
249
+ },
250
+ ["localeSettings"]
251
+ );
252
+ sideEffects?.onError?.(err);
253
+ throw transformedError;
254
+ }
255
+ }
256
+ async function setMultilingualMode2(multilingualModeEnabled) {
257
+ const { httpClient, sideEffects } = arguments[1];
258
+ const payload = renameKeysFromSDKRequestToRESTRequest({
259
+ multilingualModeEnabled
260
+ });
261
+ const reqOpts = setMultilingualMode(
262
+ payload
263
+ );
264
+ sideEffects?.onSiteCall?.();
265
+ try {
266
+ const result = await httpClient.request(reqOpts);
267
+ sideEffects?.onSuccess?.(result);
268
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
269
+ } catch (err) {
270
+ const transformedError = sdkTransformError(
271
+ err,
272
+ {
273
+ spreadPathsToArguments: {},
274
+ explicitPathsToArguments: { multilingualModeEnabled: "$[0]" },
275
+ singleArgumentUnchanged: false
276
+ },
277
+ ["multilingualModeEnabled"]
278
+ );
279
+ sideEffects?.onError?.(err);
280
+ throw transformedError;
281
+ }
282
+ }
283
+
284
+ // src/multilingual-settings-v2-locale-settings-locale-settings.public.ts
285
+ function getLocaleSettings3(httpClient) {
286
+ return () => getLocaleSettings2(
287
+ // @ts-ignore
288
+ { httpClient }
289
+ );
290
+ }
291
+ function updateLocaleSettings3(httpClient) {
292
+ return (localeSettings) => updateLocaleSettings2(
293
+ localeSettings,
294
+ // @ts-ignore
295
+ { httpClient }
296
+ );
297
+ }
298
+ function setMultilingualMode3(httpClient) {
299
+ return (multilingualModeEnabled) => setMultilingualMode2(
300
+ multilingualModeEnabled,
301
+ // @ts-ignore
302
+ { httpClient }
303
+ );
304
+ }
305
+
306
+ // src/multilingual-settings-v2-locale-settings-locale-settings.context.ts
307
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
308
+ var getLocaleSettings4 = /* @__PURE__ */ createRESTModule(getLocaleSettings3);
309
+ var updateLocaleSettings4 = /* @__PURE__ */ createRESTModule(updateLocaleSettings3);
310
+ var setMultilingualMode4 = /* @__PURE__ */ createRESTModule(setMultilingualMode3);
311
+ export {
312
+ DeleteStatus,
313
+ LocaleVisibility,
314
+ Namespace,
315
+ SiteCreatedContext,
316
+ State,
317
+ UrlStructure,
318
+ WebhookIdentityType,
319
+ getLocaleSettings4 as getLocaleSettings,
320
+ setMultilingualMode4 as setMultilingualMode,
321
+ updateLocaleSettings4 as updateLocaleSettings
322
+ };
323
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/multilingual-settings-v2-locale-settings-locale-settings.universal.ts","../src/multilingual-settings-v2-locale-settings-locale-settings.http.ts","../src/multilingual-settings-v2-locale-settings-locale-settings.public.ts","../src/multilingual-settings-v2-locale-settings-locale-settings.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 ambassadorWixMultilingualSettingsV2LocaleSettings from './multilingual-settings-v2-locale-settings-locale-settings.http.js';\n\n/**\n * Settings is a 'single entity per tenant' entity with META-SITE tenancy.\n * This means that Settings is active for every site, not only sites that have multilingual functionality installed.\n */\nexport interface LocaleSettings {\n /**\n * Settings lifecycle begins at site creation and cannot be manually created or deleted.\n * It's created automatically for each site.\n * Revision number, used for optimistic locking\n * @readonly\n */\n revision?: string | null;\n /**\n * Timestamp of when the Settings entity was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Timestamp of the last update to the Settings entity\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Indicates whether multilingual mode is enabled for the site.\n * When false, the user can change the main language.\n * When true, the main language cannot be changed.\n * Changing this value may have significant implications for the site's content and structure.\n * @readonly\n */\n multilingualModeEnabled?: boolean | null;\n /**\n * When true, the live site will automatically open in a secondary language\n * if it detects that the user's browser is set to that language.\n */\n autoSwitch?: boolean | null;\n /**\n * Defines how secondary languages will be resolved in the URL of the live site by default.\n * This can be overridden per locale.\n */\n urlStructure?: UrlStructure;\n /**\n * The primary locale of the site, materialized from the locales service.\n * @readonly\n */\n primaryLocale?: Locale;\n}\n\n/** Enum representing the method for resolving locales in URLs. */\nexport enum UrlStructure {\n /** Value not specified */\n UNDEFINED_RESOLUTION_METHOD = 'UNDEFINED_RESOLUTION_METHOD',\n /** www.mysite.com/fr */\n SUBDIRECTORY = 'SUBDIRECTORY',\n /** fr.mysite.com */\n SUBDOMAIN = 'SUBDOMAIN',\n /** www.mysite.com?lang=fr */\n QUERY_PARAM = 'QUERY_PARAM',\n}\n\n/** Every locale created will be validated using the IETF BCP 47 standard using framework validation. */\nexport interface Locale {\n /**\n * Locale ID. The ID is calculated from the language + region (+ script for future use).\n * @maxLength 20\n * @format LANGUAGE_TAG\n * @readonly\n * @immutable\n */\n _id?: string | null;\n /**\n * Revision number for optimistic locking.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Locale was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the Locale was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Language code (e.g., \"en\" for English).\n * @immutable\n * @format LANGUAGE\n */\n languageCode?: string | null;\n /**\n * Region code (e.g., \"US\" for United States).\n * @immutable\n * @format COUNTRY\n */\n regionCode?: string | null;\n /**\n * HIDDEN - locale will be available for the user to see it in editor and preview but won't be available for UoU\n * VISIBLE - locale will be available for the user to see it in editor and preview and be available for UoU to view the site in the specific locale, the URL of the page will indicate the locale according to the `effective_resolution_method` (e.g. www.mysite.com/es)\n */\n visibility?: LocaleVisibility;\n /**\n * Indicates if the language is the primary user-facing language in the Business Manager.\n * @readonly\n */\n primaryLocale?: boolean | null;\n /**\n * Indicates if the language is the primary visitor-facing language in the live site.\n * @readonly\n */\n visitorPrimaryLocale?: boolean | null;\n /**\n * Flag code (e.g., \"US\" for United States flag).\n * @maxLength 3\n */\n flag?: string | null;\n /**\n * Date and number format (e.g., \"en-US\" for US English formatting).\n * @format LANGUAGE_TAG\n */\n regionalFormat?: string | null;\n /**\n * The final and calculated specific locale resolution method.\n * This is taken by default from the settings unless there is an active override.\n * @readonly\n */\n effectiveUrlStructure?: UrlStructure;\n /** Override for the default resolution method, if needed. */\n urlStructureOverride?: UrlStructureOverride;\n /**\n * Machine translation code, can be overridden. By default, it has the value of language_code.\n * Add example for override needs (ZH_TW | ZH_CN)\n * @format LANGUAGE_TAG\n */\n machineTranslationCode?: string | null;\n /**\n * Calculated display name. This will equal override_name if it exists, or localized_name as default.\n * @readonly\n * @maxLength 30\n */\n effectiveDisplayName?: string | null;\n /**\n * Localized name inferred from the ID using the locale data set.\n * @readonly\n * @maxLength 30\n */\n displayName?: string | null;\n /**\n * User-defined override name for the locale.\n * @maxLength 30\n */\n overrideDisplayName?: string | null;\n}\n\n/** Enum representing the visibility status of a locale. */\nexport enum LocaleVisibility {\n /** Value not specified */\n UNDEFINED_LOCALE_STATUS = 'UNDEFINED_LOCALE_STATUS',\n /** Locale was added to site but was not activated */\n HIDDEN = 'HIDDEN',\n /** Locale was added to site and activated */\n VISIBLE = 'VISIBLE',\n}\n\n/** Message for overriding the default resolution method. */\nexport interface UrlStructureOverride {\n /** The specific resolution method to use instead of the default. */\n urlStructure?: UrlStructure;\n}\n\n/** Payload for the event triggered when the multilingual_mode value changes */\nexport interface MultilingualModeUpdated {\n /** The primary locale when multilingual mode is enabled or disabled */\n primaryLocale?: Locale;\n /** Indicates whether multilingual mode is enabled or disabled */\n multilingualModeEnabled?: boolean;\n}\n\n/** Request message for retrieving multilingual settings */\nexport interface GetLocaleSettingsRequest {}\n\n/** Response message containing the requested multilingual settings */\nexport interface GetLocaleSettingsResponse {\n /** The requested Settings entity */\n localeSettings?: LocaleSettings;\n}\n\n/** Request message for updating multilingual settings */\nexport interface UpdateLocaleSettingsRequest {\n /** Settings to be updated, may be partial */\n localeSettings: LocaleSettings;\n}\n\n/** Response message containing the updated multilingual settings */\nexport interface UpdateLocaleSettingsResponse {\n /** The updated Settings entity */\n localeSettings?: LocaleSettings;\n}\n\n/** Request message for setting the multilingual mode */\nexport interface SetMultilingualModeRequest {\n /** The new value of multilingual_mode to be set */\n multilingualModeEnabled: boolean;\n}\n\n/** Response message containing the updated settings after changing the multilingual mode */\nexport interface SetMultilingualModeResponse {\n /** The current Settings entity after the change */\n localeSettings?: LocaleSettings;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /**\n * Unique event ID.\n * Allows clients to ignore duplicate webhooks.\n */\n _id?: string;\n /**\n * Assumes actions are also always typed to an entity_type\n * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n */\n entityFqdn?: string;\n /**\n * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n * This is although the created/updated/deleted notion is duplication of the oneof types\n * Example: created/updated/deleted/started/completed/email_opened\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number defining the order of updates to the underlying entity.\n * For example, given that some entity was updated at 16:00 and than again at 16:01,\n * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n * To do so, you will need to persist this number on your end, and compare the sequence number from the\n * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: State;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContext;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: Namespace;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n}\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatus;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n}\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: Namespace;\n /** A new namespace. */\n newNamespace?: Namespace;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityType;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\ntype LocaleSettingsNonNullablePaths =\n | `urlStructure`\n | `primaryLocale.visibility`\n | `primaryLocale.effectiveUrlStructure`\n | `primaryLocale.urlStructureOverride.urlStructure`;\n\n/**\n * Retrieves the current multilingual settings for a site.\n * @internal\n * @documentationMaturity preview\n * @permissionId WIX_MULTILINGUAL.SETTINGS_READ\n * @returns Response message containing the requested multilingual settings\n * @fqn wix.multilingual.settings.v2.SettingsService.GetLocaleSettings\n */\nexport async function getLocaleSettings(): Promise<\n NonNullablePaths<\n GetLocaleSettingsResponse,\n {\n [P in LocaleSettingsNonNullablePaths]: `localeSettings.${P}`;\n }[LocaleSettingsNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixMultilingualSettingsV2LocaleSettings.getLocaleSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates the multilingual settings for a site.\n * @param localeSettings - Settings to be updated, may be partial\n * @internal\n * @documentationMaturity preview\n * @requiredField localeSettings\n * @requiredField localeSettings.revision\n * @permissionId WIX_MULTILINGUAL.SETTINGS_UPDATE\n * @returns Response message containing the updated multilingual settings\n * @fqn wix.multilingual.settings.v2.SettingsService.UpdateLocaleSettings\n */\nexport async function updateLocaleSettings(\n localeSettings: NonNullablePaths<LocaleSettings, `revision`>\n): Promise<\n NonNullablePaths<\n UpdateLocaleSettingsResponse,\n {\n [P in LocaleSettingsNonNullablePaths]: `localeSettings.${P}`;\n }[LocaleSettingsNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n localeSettings: localeSettings,\n });\n\n const reqOpts =\n ambassadorWixMultilingualSettingsV2LocaleSettings.updateLocaleSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { localeSettings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['localeSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Custom action to update the multilingual mode with strict validation on the state.\n * Once the value is set to true, the user can add more secondary languages and change the default settings.\n * To change the value to false, the site must not have any secondary languages, and the settings value will be restored to default.\n * @param multilingualModeEnabled - The new value of multilingual_mode to be set\n * @internal\n * @documentationMaturity preview\n * @requiredField multilingualModeEnabled\n * @permissionId WIX_MULTILINGUAL.SETTINGS_SET_MODE\n * @returns Response message containing the updated settings after changing the multilingual mode\n * @fqn wix.multilingual.settings.v2.SettingsService.SetMultilingualMode\n */\nexport async function setMultilingualMode(\n multilingualModeEnabled: boolean\n): Promise<\n NonNullablePaths<\n SetMultilingualModeResponse,\n {\n [P in LocaleSettingsNonNullablePaths]: `localeSettings.${P}`;\n }[LocaleSettingsNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n multilingualModeEnabled: multilingualModeEnabled,\n });\n\n const reqOpts =\n ambassadorWixMultilingualSettingsV2LocaleSettings.setMultilingualMode(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { multilingualModeEnabled: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['multilingualModeEnabled']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\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 the current multilingual settings for a site. */\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 the multilingual settings for a site. */\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 * Custom action to update the multilingual mode with strict validation on the state.\n * Once the value is set to true, the user can add more secondary languages and change the default settings.\n * To change the value to false, the site must not have any secondary languages, and the settings value will be restored to default.\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: 'PATCH' 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 { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n GetLocaleSettingsResponse,\n LocaleSettings,\n SetMultilingualModeResponse,\n UpdateLocaleSettingsResponse,\n getLocaleSettings as universalGetLocaleSettings,\n setMultilingualMode as universalSetMultilingualMode,\n updateLocaleSettings as universalUpdateLocaleSettings,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/multilingual' };\n\n/** @internal */\nexport function getLocaleSettings(\n httpClient: HttpClient\n): GetLocaleSettingsSignature {\n return () =>\n universalGetLocaleSettings(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetLocaleSettingsSignature {\n /**\n * Retrieves the current multilingual settings for a site.\n * @returns Response message containing the requested multilingual settings\n */\n (): Promise<GetLocaleSettingsResponse>;\n}\n\n/** @internal */\nexport function updateLocaleSettings(\n httpClient: HttpClient\n): UpdateLocaleSettingsSignature {\n return (localeSettings: NonNullablePaths<LocaleSettings, `revision`>) =>\n universalUpdateLocaleSettings(\n localeSettings,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateLocaleSettingsSignature {\n /**\n * Updates the multilingual settings for a site.\n * @param - Settings to be updated, may be partial\n * @returns Response message containing the updated multilingual settings\n */\n (localeSettings: LocaleSettings): Promise<UpdateLocaleSettingsResponse>;\n}\n\n/** @internal */\nexport function setMultilingualMode(\n httpClient: HttpClient\n): SetMultilingualModeSignature {\n return (multilingualModeEnabled: boolean) =>\n universalSetMultilingualMode(\n multilingualModeEnabled,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SetMultilingualModeSignature {\n /**\n * Custom action to update the multilingual mode with strict validation on the state.\n * Once the value is set to true, the user can add more secondary languages and change the default settings.\n * To change the value to false, the site must not have any secondary languages, and the settings value will be restored to default.\n * @param - The new value of multilingual_mode to be set\n * @returns Response message containing the updated settings after changing the multilingual mode\n */\n (multilingualModeEnabled: boolean): Promise<SetMultilingualModeResponse>;\n}\n\nexport {\n ActionEvent,\n Asset,\n DeleteContext,\n DeleteStatus,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n GetLocaleSettingsRequest,\n GetLocaleSettingsResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n Locale,\n LocaleSettings,\n LocaleVisibility,\n MessageEnvelope,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n MultilingualModeUpdated,\n Namespace,\n NamespaceChanged,\n RestoreInfo,\n ServiceProvisioned,\n ServiceRemoved,\n SetMultilingualModeRequest,\n SetMultilingualModeResponse,\n SiteCreated,\n SiteCreatedContext,\n SiteDeleted,\n SiteHardDeleted,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n SitePublished,\n SiteRenamed,\n SiteTransferred,\n SiteUndeleted,\n SiteUnpublished,\n State,\n StudioAssigned,\n StudioUnassigned,\n UpdateLocaleSettingsRequest,\n UpdateLocaleSettingsResponse,\n UrlStructure,\n UrlStructureOverride,\n WebhookIdentityType,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\n","import {\n getLocaleSettings as publicGetLocaleSettings,\n updateLocaleSettings as publicUpdateLocaleSettings,\n setMultilingualMode as publicSetMultilingualMode,\n} from './multilingual-settings-v2-locale-settings-locale-settings.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\n/** @internal */\nexport const getLocaleSettings: MaybeContext<\n BuildRESTFunction<typeof publicGetLocaleSettings> &\n typeof publicGetLocaleSettings\n> = /*#__PURE__*/ createRESTModule(publicGetLocaleSettings);\n/** @internal */\nexport const updateLocaleSettings: MaybeContext<\n BuildRESTFunction<typeof publicUpdateLocaleSettings> &\n typeof publicUpdateLocaleSettings\n> = /*#__PURE__*/ createRESTModule(publicUpdateLocaleSettings);\n/** @internal */\nexport const setMultilingualMode: MaybeContext<\n BuildRESTFunction<typeof publicSetMultilingualMode> &\n typeof publicSetMultilingualMode\n> = /*#__PURE__*/ createRESTModule(publicSetMultilingualMode);\n\nexport {\n UrlStructure,\n LocaleVisibility,\n State,\n SiteCreatedContext,\n Namespace,\n DeleteStatus,\n WebhookIdentityType,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\nexport {\n LocaleSettings,\n Locale,\n UrlStructureOverride,\n MultilingualModeUpdated,\n GetLocaleSettingsRequest,\n GetLocaleSettingsResponse,\n UpdateLocaleSettingsRequest,\n UpdateLocaleSettingsResponse,\n SetMultilingualModeRequest,\n SetMultilingualModeResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Asset,\n SiteCreated,\n SiteTransferred,\n SiteDeleted,\n DeleteContext,\n SiteUndeleted,\n SitePublished,\n SiteUnpublished,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n ServiceProvisioned,\n ServiceRemoved,\n SiteRenamed,\n SiteHardDeleted,\n NamespaceChanged,\n StudioAssigned,\n StudioUnassigned,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n} from './multilingual-settings-v2-locale-settings-locale-settings.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,kBAAkB,SAA6C;AAC7E,WAAS,oBAAoB,EAAE,KAAK,GAAQ;AAC1C,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,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,CAAC;AAED,QAAM,UAC8C;AAAA,IAChD;AAAA,EACF;AAEF,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,EAAE,yBAAyB,OAAO;AAAA,QAC5D,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,yBAAyB;AAAA,IAC5B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AEh4BO,SAASC,mBACd,YAC4B;AAC5B,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAWO,SAASC,sBACd,YAC+B;AAC/B,SAAO,CAAC,mBACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAYO,SAASC,qBACd,YAC8B;AAC9B,SAAO,CAAC,4BACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC1DA,SAAS,wBAAwB;AAI1B,IAAMC,qBAGK,iCAAiBA,kBAAuB;AAEnD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AAEtD,IAAMC,uBAGK,iCAAiBA,oBAAyB;","names":["payload","UrlStructure","LocaleVisibility","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","getLocaleSettings","updateLocaleSettings","setMultilingualMode","getLocaleSettings","updateLocaleSettings","setMultilingualMode","getLocaleSettings","updateLocaleSettings","setMultilingualMode"]}
@@ -0,0 +1,44 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { G as GetLocaleSettingsResponse, L as LocaleSettings, U as UpdateLocaleSettingsResponse, S as SetMultilingualModeResponse } from './multilingual-settings-v2-locale-settings-locale-settings.universal-DWm_DkN7.mjs';
3
+ export { A as ActionEvent, q as Asset, u as DeleteContext, D as DeleteStatus, j as DomainEvent, k as DomainEventBodyOneOf, n as Empty, E as EntityCreatedEvent, m as EntityDeletedEvent, l as EntityUpdatedEvent, g as GetLocaleSettingsRequest, P as IdentificationData, Q as IdentificationDataIdOneOf, e as Locale, b as LocaleVisibility, O as MessageEnvelope, o as MetaSiteSpecialEvent, p as MetaSiteSpecialEventPayloadOneOf, M as MultilingualModeUpdated, N as Namespace, I as NamespaceChanged, R as RestoreInfo, B as ServiceProvisioned, C as ServiceRemoved, i as SetMultilingualModeRequest, r as SiteCreated, d as SiteCreatedContext, t as SiteDeleted, H as SiteHardDeleted, y as SiteMarkedAsTemplate, z as SiteMarkedAsWixSite, w as SitePublished, F as SiteRenamed, s as SiteTransferred, v as SiteUndeleted, x as SiteUnpublished, c as State, J as StudioAssigned, K as StudioUnassigned, h as UpdateLocaleSettingsRequest, a as UrlStructure, f as UrlStructureOverride, W as WebhookIdentityType } from './multilingual-settings-v2-locale-settings-locale-settings.universal-DWm_DkN7.mjs';
4
+
5
+ /** @internal */
6
+ declare function getLocaleSettings$1(httpClient: HttpClient): GetLocaleSettingsSignature;
7
+ interface GetLocaleSettingsSignature {
8
+ /**
9
+ * Retrieves the current multilingual settings for a site.
10
+ * @returns Response message containing the requested multilingual settings
11
+ */
12
+ (): Promise<GetLocaleSettingsResponse>;
13
+ }
14
+ /** @internal */
15
+ declare function updateLocaleSettings$1(httpClient: HttpClient): UpdateLocaleSettingsSignature;
16
+ interface UpdateLocaleSettingsSignature {
17
+ /**
18
+ * Updates the multilingual settings for a site.
19
+ * @param - Settings to be updated, may be partial
20
+ * @returns Response message containing the updated multilingual settings
21
+ */
22
+ (localeSettings: LocaleSettings): Promise<UpdateLocaleSettingsResponse>;
23
+ }
24
+ /** @internal */
25
+ declare function setMultilingualMode$1(httpClient: HttpClient): SetMultilingualModeSignature;
26
+ interface SetMultilingualModeSignature {
27
+ /**
28
+ * Custom action to update the multilingual mode with strict validation on the state.
29
+ * Once the value is set to true, the user can add more secondary languages and change the default settings.
30
+ * To change the value to false, the site must not have any secondary languages, and the settings value will be restored to default.
31
+ * @param - The new value of multilingual_mode to be set
32
+ * @returns Response message containing the updated settings after changing the multilingual mode
33
+ */
34
+ (multilingualModeEnabled: boolean): Promise<SetMultilingualModeResponse>;
35
+ }
36
+
37
+ /** @internal */
38
+ declare const getLocaleSettings: MaybeContext<BuildRESTFunction<typeof getLocaleSettings$1> & typeof getLocaleSettings$1>;
39
+ /** @internal */
40
+ declare const updateLocaleSettings: MaybeContext<BuildRESTFunction<typeof updateLocaleSettings$1> & typeof updateLocaleSettings$1>;
41
+ /** @internal */
42
+ declare const setMultilingualMode: MaybeContext<BuildRESTFunction<typeof setMultilingualMode$1> & typeof setMultilingualMode$1>;
43
+
44
+ export { GetLocaleSettingsResponse, LocaleSettings, SetMultilingualModeResponse, UpdateLocaleSettingsResponse, getLocaleSettings, setMultilingualMode, updateLocaleSettings };
@@ -0,0 +1,44 @@
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { G as GetLocaleSettingsResponse, L as LocaleSettings, U as UpdateLocaleSettingsResponse, S as SetMultilingualModeResponse } from './multilingual-settings-v2-locale-settings-locale-settings.universal-DWm_DkN7.js';
3
+ export { A as ActionEvent, q as Asset, u as DeleteContext, D as DeleteStatus, j as DomainEvent, k as DomainEventBodyOneOf, n as Empty, E as EntityCreatedEvent, m as EntityDeletedEvent, l as EntityUpdatedEvent, g as GetLocaleSettingsRequest, P as IdentificationData, Q as IdentificationDataIdOneOf, e as Locale, b as LocaleVisibility, O as MessageEnvelope, o as MetaSiteSpecialEvent, p as MetaSiteSpecialEventPayloadOneOf, M as MultilingualModeUpdated, N as Namespace, I as NamespaceChanged, R as RestoreInfo, B as ServiceProvisioned, C as ServiceRemoved, i as SetMultilingualModeRequest, r as SiteCreated, d as SiteCreatedContext, t as SiteDeleted, H as SiteHardDeleted, y as SiteMarkedAsTemplate, z as SiteMarkedAsWixSite, w as SitePublished, F as SiteRenamed, s as SiteTransferred, v as SiteUndeleted, x as SiteUnpublished, c as State, J as StudioAssigned, K as StudioUnassigned, h as UpdateLocaleSettingsRequest, a as UrlStructure, f as UrlStructureOverride, W as WebhookIdentityType } from './multilingual-settings-v2-locale-settings-locale-settings.universal-DWm_DkN7.js';
4
+
5
+ /** @internal */
6
+ declare function getLocaleSettings$1(httpClient: HttpClient): GetLocaleSettingsSignature;
7
+ interface GetLocaleSettingsSignature {
8
+ /**
9
+ * Retrieves the current multilingual settings for a site.
10
+ * @returns Response message containing the requested multilingual settings
11
+ */
12
+ (): Promise<GetLocaleSettingsResponse>;
13
+ }
14
+ /** @internal */
15
+ declare function updateLocaleSettings$1(httpClient: HttpClient): UpdateLocaleSettingsSignature;
16
+ interface UpdateLocaleSettingsSignature {
17
+ /**
18
+ * Updates the multilingual settings for a site.
19
+ * @param - Settings to be updated, may be partial
20
+ * @returns Response message containing the updated multilingual settings
21
+ */
22
+ (localeSettings: LocaleSettings): Promise<UpdateLocaleSettingsResponse>;
23
+ }
24
+ /** @internal */
25
+ declare function setMultilingualMode$1(httpClient: HttpClient): SetMultilingualModeSignature;
26
+ interface SetMultilingualModeSignature {
27
+ /**
28
+ * Custom action to update the multilingual mode with strict validation on the state.
29
+ * Once the value is set to true, the user can add more secondary languages and change the default settings.
30
+ * To change the value to false, the site must not have any secondary languages, and the settings value will be restored to default.
31
+ * @param - The new value of multilingual_mode to be set
32
+ * @returns Response message containing the updated settings after changing the multilingual mode
33
+ */
34
+ (multilingualModeEnabled: boolean): Promise<SetMultilingualModeResponse>;
35
+ }
36
+
37
+ /** @internal */
38
+ declare const getLocaleSettings: MaybeContext<BuildRESTFunction<typeof getLocaleSettings$1> & typeof getLocaleSettings$1>;
39
+ /** @internal */
40
+ declare const updateLocaleSettings: MaybeContext<BuildRESTFunction<typeof updateLocaleSettings$1> & typeof updateLocaleSettings$1>;
41
+ /** @internal */
42
+ declare const setMultilingualMode: MaybeContext<BuildRESTFunction<typeof setMultilingualMode$1> & typeof setMultilingualMode$1>;
43
+
44
+ export { GetLocaleSettingsResponse, LocaleSettings, SetMultilingualModeResponse, UpdateLocaleSettingsResponse, getLocaleSettings, setMultilingualMode, updateLocaleSettings };