@wix/auto_sdk_multilingual_locale-settings 1.0.4 → 1.0.6
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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +2 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +20 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +1 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +20 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +143 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +1 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +15 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +85 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +1 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +4 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +35 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +1 -0
- package/build/{internal/multilingual-settings-v2-locale-settings-locale-settings.universal-CEiXVHN_.d.ts → cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts} +61 -61
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +148 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +1 -0
- package/build/{index.d.mts → cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts} +49 -51
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +286 -0
- package/build/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +2 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +10 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +1 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +20 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +137 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +1 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +15 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +56 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +1 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +4 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +22 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +1 -0
- package/build/{internal/multilingual-settings-v2-locale-settings-locale-settings.universal-CEiXVHN_.d.mts → es/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts} +61 -61
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +145 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +1 -0
- package/build/{index.d.ts → es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts} +49 -51
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +257 -0
- package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +10 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +20 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +1 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +20 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +143 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +1 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +15 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +85 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +1 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +48 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +35 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +1 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +772 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +148 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +1 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts +824 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +286 -0
- package/build/internal/cjs/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.d.ts +10 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js +10 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.context.js.map +1 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.d.ts +20 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js +137 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.http.js.map +1 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.d.ts +15 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js +56 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.meta.js.map +1 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.d.ts +48 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js +22 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.public.js.map +1 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.d.ts +772 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js +145 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.types.js.map +1 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.d.ts +824 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js +257 -0
- package/build/internal/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map +1 -0
- package/package.json +13 -14
- package/build/index.js +0 -362
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -329
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -55
- package/build/internal/index.d.ts +0 -55
- package/build/internal/index.js +0 -362
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -329
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -218
- package/build/internal/meta.d.ts +0 -218
- package/build/internal/meta.js +0 -218
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -189
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -218
- package/build/meta.d.ts +0 -218
- package/build/meta.js +0 -218
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -189
- package/build/meta.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface LocaleSettings {
|
|
1
|
+
export interface LocaleSettings {
|
|
2
2
|
/**
|
|
3
3
|
* 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.
|
|
4
4
|
* @readonly
|
|
@@ -49,7 +49,7 @@ interface LocaleSettings {
|
|
|
49
49
|
primaryLocale?: Locale;
|
|
50
50
|
}
|
|
51
51
|
/** Enum representing the method for resolving locales in URLs. */
|
|
52
|
-
declare enum UrlStructure {
|
|
52
|
+
export declare enum UrlStructure {
|
|
53
53
|
/** Undefined resolution method. */
|
|
54
54
|
UNDEFINED_RESOLUTION_METHOD = "UNDEFINED_RESOLUTION_METHOD",
|
|
55
55
|
/** Subdirectory resolution method for the URL structure. For example, `"www.mysite.com/fr"`. */
|
|
@@ -59,7 +59,7 @@ declare enum UrlStructure {
|
|
|
59
59
|
/** Query parameter resolution method for the URL structure. For example, `"www.mysite.com?lang=fr"`. */
|
|
60
60
|
QUERY_PARAM = "QUERY_PARAM"
|
|
61
61
|
}
|
|
62
|
-
interface Locale {
|
|
62
|
+
export interface Locale {
|
|
63
63
|
/**
|
|
64
64
|
* Locale ID. The ID is made up of the language and region codes. For example, `"en-US"`.
|
|
65
65
|
* @maxLength 20
|
|
@@ -153,7 +153,7 @@ interface Locale {
|
|
|
153
153
|
overrideDisplayName?: string | null;
|
|
154
154
|
}
|
|
155
155
|
/** Enum representing the visibility status of a locale. */
|
|
156
|
-
declare enum LocaleVisibility {
|
|
156
|
+
export declare enum LocaleVisibility {
|
|
157
157
|
/** Undefined visibility status. */
|
|
158
158
|
UNDEFINED_LOCALE_STATUS = "UNDEFINED_LOCALE_STATUS",
|
|
159
159
|
/** Locale is hidden from site visitors. */
|
|
@@ -162,37 +162,37 @@ declare enum LocaleVisibility {
|
|
|
162
162
|
VISIBLE = "VISIBLE"
|
|
163
163
|
}
|
|
164
164
|
/** Message for overriding the default resolution method. */
|
|
165
|
-
interface UrlStructureOverride {
|
|
165
|
+
export interface UrlStructureOverride {
|
|
166
166
|
/** Resolution method that defines the URL structure to use instead of the default. */
|
|
167
167
|
urlStructure?: UrlStructure;
|
|
168
168
|
}
|
|
169
169
|
/** Payload for the event triggered when the multilingual_mode value changes */
|
|
170
|
-
interface MultilingualModeUpdated {
|
|
170
|
+
export interface MultilingualModeUpdated {
|
|
171
171
|
/** The primary locale when `multilingualModeEnabled` is updated. */
|
|
172
172
|
primaryLocale?: Locale;
|
|
173
173
|
/** Indicates whether the multilingual mode is enabled on the site. */
|
|
174
174
|
multilingualModeEnabled?: boolean;
|
|
175
175
|
}
|
|
176
176
|
/** Request message for retrieving multilingual settings */
|
|
177
|
-
interface GetLocaleSettingsRequest {
|
|
177
|
+
export interface GetLocaleSettingsRequest {
|
|
178
178
|
}
|
|
179
179
|
/** Response message containing the requested multilingual settings */
|
|
180
|
-
interface GetLocaleSettingsResponse {
|
|
180
|
+
export interface GetLocaleSettingsResponse {
|
|
181
181
|
/** Retrieved locale settings. */
|
|
182
182
|
localeSettings?: LocaleSettings;
|
|
183
183
|
}
|
|
184
184
|
/** Request message for updating multilingual settings */
|
|
185
|
-
interface UpdateLocaleSettingsRequest {
|
|
185
|
+
export interface UpdateLocaleSettingsRequest {
|
|
186
186
|
/** Locale settings to update. */
|
|
187
187
|
localeSettings: LocaleSettings;
|
|
188
188
|
}
|
|
189
189
|
/** Response message containing the updated multilingual settings */
|
|
190
|
-
interface UpdateLocaleSettingsResponse {
|
|
190
|
+
export interface UpdateLocaleSettingsResponse {
|
|
191
191
|
/** Updated locale settings. */
|
|
192
192
|
localeSettings?: LocaleSettings;
|
|
193
193
|
}
|
|
194
194
|
/** Request message for setting the multilingual mode */
|
|
195
|
-
interface SetMultilingualModeRequest {
|
|
195
|
+
export interface SetMultilingualModeRequest {
|
|
196
196
|
/**
|
|
197
197
|
* Whether to enable multilingual mode for the site.
|
|
198
198
|
*
|
|
@@ -201,11 +201,11 @@ interface SetMultilingualModeRequest {
|
|
|
201
201
|
multilingualModeEnabled: boolean;
|
|
202
202
|
}
|
|
203
203
|
/** Response message containing the updated settings after changing the multilingual mode */
|
|
204
|
-
interface SetMultilingualModeResponse {
|
|
204
|
+
export interface SetMultilingualModeResponse {
|
|
205
205
|
/** Updated locale settings. */
|
|
206
206
|
localeSettings?: LocaleSettings;
|
|
207
207
|
}
|
|
208
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
208
|
+
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
209
209
|
createdEvent?: EntityCreatedEvent;
|
|
210
210
|
updatedEvent?: EntityUpdatedEvent;
|
|
211
211
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -248,19 +248,19 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
248
248
|
entityEventSequence?: string | null;
|
|
249
249
|
}
|
|
250
250
|
/** @oneof */
|
|
251
|
-
interface DomainEventBodyOneOf {
|
|
251
|
+
export interface DomainEventBodyOneOf {
|
|
252
252
|
createdEvent?: EntityCreatedEvent;
|
|
253
253
|
updatedEvent?: EntityUpdatedEvent;
|
|
254
254
|
deletedEvent?: EntityDeletedEvent;
|
|
255
255
|
actionEvent?: ActionEvent;
|
|
256
256
|
}
|
|
257
|
-
interface EntityCreatedEvent {
|
|
257
|
+
export interface EntityCreatedEvent {
|
|
258
258
|
entity?: string;
|
|
259
259
|
}
|
|
260
|
-
interface RestoreInfo {
|
|
260
|
+
export interface RestoreInfo {
|
|
261
261
|
deletedDate?: Date | null;
|
|
262
262
|
}
|
|
263
|
-
interface EntityUpdatedEvent {
|
|
263
|
+
export interface EntityUpdatedEvent {
|
|
264
264
|
/**
|
|
265
265
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
266
266
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -268,16 +268,16 @@ interface EntityUpdatedEvent {
|
|
|
268
268
|
*/
|
|
269
269
|
currentEntity?: string;
|
|
270
270
|
}
|
|
271
|
-
interface EntityDeletedEvent {
|
|
271
|
+
export interface EntityDeletedEvent {
|
|
272
272
|
/** Entity that was deleted */
|
|
273
273
|
deletedEntity?: string | null;
|
|
274
274
|
}
|
|
275
|
-
interface ActionEvent {
|
|
275
|
+
export interface ActionEvent {
|
|
276
276
|
body?: string;
|
|
277
277
|
}
|
|
278
|
-
interface Empty {
|
|
278
|
+
export interface Empty {
|
|
279
279
|
}
|
|
280
|
-
interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
280
|
+
export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
281
281
|
/** Emitted on a meta site creation. */
|
|
282
282
|
siteCreated?: SiteCreated;
|
|
283
283
|
/** Emitted on a meta site transfer completion. */
|
|
@@ -335,7 +335,7 @@ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
|
|
|
335
335
|
assets?: Asset[];
|
|
336
336
|
}
|
|
337
337
|
/** @oneof */
|
|
338
|
-
interface MetaSiteSpecialEventPayloadOneOf {
|
|
338
|
+
export interface MetaSiteSpecialEventPayloadOneOf {
|
|
339
339
|
/** Emitted on a meta site creation. */
|
|
340
340
|
siteCreated?: SiteCreated;
|
|
341
341
|
/** Emitted on a meta site transfer completion. */
|
|
@@ -377,7 +377,7 @@ interface MetaSiteSpecialEventPayloadOneOf {
|
|
|
377
377
|
/** Site is marked as PurgedExternally */
|
|
378
378
|
sitePurgedExternally?: SitePurgedExternally;
|
|
379
379
|
}
|
|
380
|
-
interface Asset {
|
|
380
|
+
export interface Asset {
|
|
381
381
|
/**
|
|
382
382
|
* An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).
|
|
383
383
|
* @maxLength 36
|
|
@@ -391,14 +391,14 @@ interface Asset {
|
|
|
391
391
|
/** An application state. */
|
|
392
392
|
state?: State;
|
|
393
393
|
}
|
|
394
|
-
declare enum State {
|
|
394
|
+
export declare enum State {
|
|
395
395
|
UNKNOWN = "UNKNOWN",
|
|
396
396
|
ENABLED = "ENABLED",
|
|
397
397
|
DISABLED = "DISABLED",
|
|
398
398
|
PENDING = "PENDING",
|
|
399
399
|
DEMO = "DEMO"
|
|
400
400
|
}
|
|
401
|
-
interface SiteCreated {
|
|
401
|
+
export interface SiteCreated {
|
|
402
402
|
/**
|
|
403
403
|
* A template identifier (empty if not created from a template).
|
|
404
404
|
* @maxLength 36
|
|
@@ -427,7 +427,7 @@ interface SiteCreated {
|
|
|
427
427
|
/** A namespace. */
|
|
428
428
|
namespace?: Namespace;
|
|
429
429
|
}
|
|
430
|
-
declare enum SiteCreatedContext {
|
|
430
|
+
export declare enum SiteCreatedContext {
|
|
431
431
|
/** A valid option, we don't expose all reasons why site might be created. */
|
|
432
432
|
OTHER = "OTHER",
|
|
433
433
|
/** A meta site was created from template. */
|
|
@@ -441,7 +441,7 @@ declare enum SiteCreatedContext {
|
|
|
441
441
|
/** deprecated A meta site was created for Flash editor. */
|
|
442
442
|
FLASH = "FLASH"
|
|
443
443
|
}
|
|
444
|
-
declare enum Namespace {
|
|
444
|
+
export declare enum Namespace {
|
|
445
445
|
UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
|
|
446
446
|
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
447
447
|
WIX = "WIX",
|
|
@@ -524,7 +524,7 @@ declare enum Namespace {
|
|
|
524
524
|
MIMIR = "MIMIR"
|
|
525
525
|
}
|
|
526
526
|
/** Site transferred to another user. */
|
|
527
|
-
interface SiteTransferred {
|
|
527
|
+
export interface SiteTransferred {
|
|
528
528
|
/**
|
|
529
529
|
* A previous owner id (user that transfers meta site).
|
|
530
530
|
* @format GUID
|
|
@@ -537,11 +537,11 @@ interface SiteTransferred {
|
|
|
537
537
|
newOwnerId?: string;
|
|
538
538
|
}
|
|
539
539
|
/** Soft deletion of the meta site. Could be restored. */
|
|
540
|
-
interface SiteDeleted {
|
|
540
|
+
export interface SiteDeleted {
|
|
541
541
|
/** A deletion context. */
|
|
542
542
|
deleteContext?: DeleteContext;
|
|
543
543
|
}
|
|
544
|
-
interface DeleteContext {
|
|
544
|
+
export interface DeleteContext {
|
|
545
545
|
/** When the meta site was deleted. */
|
|
546
546
|
dateDeleted?: Date | null;
|
|
547
547
|
/** A status. */
|
|
@@ -557,7 +557,7 @@ interface DeleteContext {
|
|
|
557
557
|
*/
|
|
558
558
|
initiatorId?: string | null;
|
|
559
559
|
}
|
|
560
|
-
declare enum DeleteStatus {
|
|
560
|
+
export declare enum DeleteStatus {
|
|
561
561
|
UNKNOWN = "UNKNOWN",
|
|
562
562
|
TRASH = "TRASH",
|
|
563
563
|
DELETED = "DELETED",
|
|
@@ -565,12 +565,12 @@ declare enum DeleteStatus {
|
|
|
565
565
|
PURGED_EXTERNALLY = "PURGED_EXTERNALLY"
|
|
566
566
|
}
|
|
567
567
|
/** Restoration of the meta site. */
|
|
568
|
-
interface SiteUndeleted {
|
|
568
|
+
export interface SiteUndeleted {
|
|
569
569
|
}
|
|
570
570
|
/** First publish of a meta site. Or subsequent publish after unpublish. */
|
|
571
|
-
interface SitePublished {
|
|
571
|
+
export interface SitePublished {
|
|
572
572
|
}
|
|
573
|
-
interface SiteUnpublished {
|
|
573
|
+
export interface SiteUnpublished {
|
|
574
574
|
/**
|
|
575
575
|
* A list of URLs previously associated with the meta site.
|
|
576
576
|
* @maxLength 4000
|
|
@@ -578,9 +578,9 @@ interface SiteUnpublished {
|
|
|
578
578
|
*/
|
|
579
579
|
urls?: string[];
|
|
580
580
|
}
|
|
581
|
-
interface SiteMarkedAsTemplate {
|
|
581
|
+
export interface SiteMarkedAsTemplate {
|
|
582
582
|
}
|
|
583
|
-
interface SiteMarkedAsWixSite {
|
|
583
|
+
export interface SiteMarkedAsWixSite {
|
|
584
584
|
}
|
|
585
585
|
/**
|
|
586
586
|
* Represents a service provisioned a site.
|
|
@@ -597,7 +597,7 @@ interface SiteMarkedAsWixSite {
|
|
|
597
597
|
* changes made to the original template afterward.
|
|
598
598
|
* To ensure this, the TPA on the template gets a new instance_id.
|
|
599
599
|
*/
|
|
600
|
-
interface ServiceProvisioned {
|
|
600
|
+
export interface ServiceProvisioned {
|
|
601
601
|
/**
|
|
602
602
|
* Either UUID or EmbeddedServiceType.
|
|
603
603
|
* @maxLength 36
|
|
@@ -624,7 +624,7 @@ interface ServiceProvisioned {
|
|
|
624
624
|
*/
|
|
625
625
|
originMetaSiteId?: string | null;
|
|
626
626
|
}
|
|
627
|
-
interface ServiceRemoved {
|
|
627
|
+
export interface ServiceRemoved {
|
|
628
628
|
/**
|
|
629
629
|
* Either UUID or EmbeddedServiceType.
|
|
630
630
|
* @maxLength 36
|
|
@@ -642,7 +642,7 @@ interface ServiceRemoved {
|
|
|
642
642
|
version?: string | null;
|
|
643
643
|
}
|
|
644
644
|
/** Rename of the site. Meaning, free public url has been changed as well. */
|
|
645
|
-
interface SiteRenamed {
|
|
645
|
+
export interface SiteRenamed {
|
|
646
646
|
/**
|
|
647
647
|
* A new meta site name (URL slug).
|
|
648
648
|
* @maxLength 20
|
|
@@ -659,21 +659,21 @@ interface SiteRenamed {
|
|
|
659
659
|
*
|
|
660
660
|
* Could not be restored. Therefore it's desirable to cleanup data.
|
|
661
661
|
*/
|
|
662
|
-
interface SiteHardDeleted {
|
|
662
|
+
export interface SiteHardDeleted {
|
|
663
663
|
/** A deletion context. */
|
|
664
664
|
deleteContext?: DeleteContext;
|
|
665
665
|
}
|
|
666
|
-
interface NamespaceChanged {
|
|
666
|
+
export interface NamespaceChanged {
|
|
667
667
|
/** A previous namespace. */
|
|
668
668
|
oldNamespace?: Namespace;
|
|
669
669
|
/** A new namespace. */
|
|
670
670
|
newNamespace?: Namespace;
|
|
671
671
|
}
|
|
672
672
|
/** Assigned Studio editor */
|
|
673
|
-
interface StudioAssigned {
|
|
673
|
+
export interface StudioAssigned {
|
|
674
674
|
}
|
|
675
675
|
/** Unassigned Studio editor */
|
|
676
|
-
interface StudioUnassigned {
|
|
676
|
+
export interface StudioUnassigned {
|
|
677
677
|
}
|
|
678
678
|
/**
|
|
679
679
|
* Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.
|
|
@@ -683,13 +683,13 @@ interface StudioUnassigned {
|
|
|
683
683
|
*
|
|
684
684
|
* https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service
|
|
685
685
|
*/
|
|
686
|
-
interface SiteUrlChanged {
|
|
686
|
+
export interface SiteUrlChanged {
|
|
687
687
|
}
|
|
688
688
|
/**
|
|
689
689
|
* Used at the end of the deletion flow for both draft sites and when a user deletes a site.
|
|
690
690
|
* Consumed by other teams to remove relevant data.
|
|
691
691
|
*/
|
|
692
|
-
interface SitePurgedExternally {
|
|
692
|
+
export interface SitePurgedExternally {
|
|
693
693
|
/**
|
|
694
694
|
* @maxLength 2048
|
|
695
695
|
* @maxSize 100
|
|
@@ -698,7 +698,7 @@ interface SitePurgedExternally {
|
|
|
698
698
|
*/
|
|
699
699
|
appDefId?: string[];
|
|
700
700
|
}
|
|
701
|
-
interface MessageEnvelope {
|
|
701
|
+
export interface MessageEnvelope {
|
|
702
702
|
/**
|
|
703
703
|
* App instance ID.
|
|
704
704
|
* @format GUID
|
|
@@ -714,7 +714,7 @@ interface MessageEnvelope {
|
|
|
714
714
|
/** Stringify payload. */
|
|
715
715
|
data?: string;
|
|
716
716
|
}
|
|
717
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
717
|
+
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
718
718
|
/**
|
|
719
719
|
* ID of a site visitor that has not logged in to the site.
|
|
720
720
|
* @format GUID
|
|
@@ -739,7 +739,7 @@ interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
739
739
|
identityType?: WebhookIdentityType;
|
|
740
740
|
}
|
|
741
741
|
/** @oneof */
|
|
742
|
-
interface IdentificationDataIdOneOf {
|
|
742
|
+
export interface IdentificationDataIdOneOf {
|
|
743
743
|
/**
|
|
744
744
|
* ID of a site visitor that has not logged in to the site.
|
|
745
745
|
* @format GUID
|
|
@@ -761,12 +761,10 @@ interface IdentificationDataIdOneOf {
|
|
|
761
761
|
*/
|
|
762
762
|
appId?: string;
|
|
763
763
|
}
|
|
764
|
-
declare enum WebhookIdentityType {
|
|
764
|
+
export declare enum WebhookIdentityType {
|
|
765
765
|
UNKNOWN = "UNKNOWN",
|
|
766
766
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
767
767
|
MEMBER = "MEMBER",
|
|
768
768
|
WIX_USER = "WIX_USER",
|
|
769
769
|
APP = "APP"
|
|
770
770
|
}
|
|
771
|
-
|
|
772
|
-
export { type ActionEvent, type Asset, type DeleteContext, DeleteStatus, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetLocaleSettingsRequest, type GetLocaleSettingsResponse, type IdentificationData, type IdentificationDataIdOneOf, type Locale, type LocaleSettings, LocaleVisibility, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MultilingualModeUpdated, Namespace, type NamespaceChanged, type RestoreInfo, type ServiceProvisioned, type ServiceRemoved, type SetMultilingualModeRequest, type SetMultilingualModeResponse, type SiteCreated, SiteCreatedContext, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, State, type StudioAssigned, type StudioUnassigned, type UpdateLocaleSettingsRequest, type UpdateLocaleSettingsResponse, UrlStructure, type UrlStructureOverride, WebhookIdentityType };
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
+
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
3
|
+
import * as ambassadorWixMultilingualSettingsV2LocaleSettings from './multilingual-settings-v2-locale-settings-locale-settings.http.js';
|
|
4
|
+
/** Enum representing the method for resolving locales in URLs. */
|
|
5
|
+
export var UrlStructure;
|
|
6
|
+
(function (UrlStructure) {
|
|
7
|
+
/** Undefined resolution method. */
|
|
8
|
+
UrlStructure["UNDEFINED_RESOLUTION_METHOD"] = "UNDEFINED_RESOLUTION_METHOD";
|
|
9
|
+
/** Subdirectory resolution method for the URL structure. For example, `"www.mysite.com/fr"`. */
|
|
10
|
+
UrlStructure["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
11
|
+
/** Subdomain resolution method for the URL structure. For example, `"fr.mysite.com"`. */
|
|
12
|
+
UrlStructure["SUBDOMAIN"] = "SUBDOMAIN";
|
|
13
|
+
/** Query parameter resolution method for the URL structure. For example, `"www.mysite.com?lang=fr"`. */
|
|
14
|
+
UrlStructure["QUERY_PARAM"] = "QUERY_PARAM";
|
|
15
|
+
})(UrlStructure || (UrlStructure = {}));
|
|
16
|
+
/** Enum representing the visibility status of a locale. */
|
|
17
|
+
export var LocaleVisibility;
|
|
18
|
+
(function (LocaleVisibility) {
|
|
19
|
+
/** Undefined visibility status. */
|
|
20
|
+
LocaleVisibility["UNDEFINED_LOCALE_STATUS"] = "UNDEFINED_LOCALE_STATUS";
|
|
21
|
+
/** Locale is hidden from site visitors. */
|
|
22
|
+
LocaleVisibility["HIDDEN"] = "HIDDEN";
|
|
23
|
+
/** Locale is visible to site visitors. A site can only have up to 100 visible locales. */
|
|
24
|
+
LocaleVisibility["VISIBLE"] = "VISIBLE";
|
|
25
|
+
})(LocaleVisibility || (LocaleVisibility = {}));
|
|
26
|
+
export var State;
|
|
27
|
+
(function (State) {
|
|
28
|
+
State["UNKNOWN"] = "UNKNOWN";
|
|
29
|
+
State["ENABLED"] = "ENABLED";
|
|
30
|
+
State["DISABLED"] = "DISABLED";
|
|
31
|
+
State["PENDING"] = "PENDING";
|
|
32
|
+
State["DEMO"] = "DEMO";
|
|
33
|
+
})(State || (State = {}));
|
|
34
|
+
export var SiteCreatedContext;
|
|
35
|
+
(function (SiteCreatedContext) {
|
|
36
|
+
/** A valid option, we don't expose all reasons why site might be created. */
|
|
37
|
+
SiteCreatedContext["OTHER"] = "OTHER";
|
|
38
|
+
/** A meta site was created from template. */
|
|
39
|
+
SiteCreatedContext["FROM_TEMPLATE"] = "FROM_TEMPLATE";
|
|
40
|
+
/** A meta site was created by copying of the transfferred meta site. */
|
|
41
|
+
SiteCreatedContext["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
|
|
42
|
+
/** A copy of existing meta site. */
|
|
43
|
+
SiteCreatedContext["DUPLICATE"] = "DUPLICATE";
|
|
44
|
+
/** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
|
|
45
|
+
SiteCreatedContext["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
|
|
46
|
+
/** deprecated A meta site was created for Flash editor. */
|
|
47
|
+
SiteCreatedContext["FLASH"] = "FLASH";
|
|
48
|
+
})(SiteCreatedContext || (SiteCreatedContext = {}));
|
|
49
|
+
export var Namespace;
|
|
50
|
+
(function (Namespace) {
|
|
51
|
+
Namespace["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
52
|
+
/** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
|
|
53
|
+
Namespace["WIX"] = "WIX";
|
|
54
|
+
/** 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. */
|
|
55
|
+
Namespace["SHOUT_OUT"] = "SHOUT_OUT";
|
|
56
|
+
/** 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. */
|
|
57
|
+
Namespace["ALBUMS"] = "ALBUMS";
|
|
58
|
+
/** 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. */
|
|
59
|
+
Namespace["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
60
|
+
/** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
61
|
+
Namespace["HOTELS"] = "HOTELS";
|
|
62
|
+
/** 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. */
|
|
63
|
+
Namespace["CLUBS"] = "CLUBS";
|
|
64
|
+
/** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
65
|
+
Namespace["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
66
|
+
/** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
67
|
+
Namespace["DEV_SITE"] = "DEV_SITE";
|
|
68
|
+
/** 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. */
|
|
69
|
+
Namespace["LOGOS"] = "LOGOS";
|
|
70
|
+
/** 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. */
|
|
71
|
+
Namespace["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
72
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
73
|
+
Namespace["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
74
|
+
/** MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
75
|
+
Namespace["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
76
|
+
/**
|
|
77
|
+
* A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
|
|
78
|
+
*
|
|
79
|
+
* Meta site with this namespace will *not* be shown in a user's site list by default.
|
|
80
|
+
*/
|
|
81
|
+
Namespace["HTML_DRAFT"] = "HTML_DRAFT";
|
|
82
|
+
/**
|
|
83
|
+
* the user-journey for Fitness users who want to start from managing their business instead of designing their website.
|
|
84
|
+
* Will be accessible from Site List and will not have a website app.
|
|
85
|
+
* Once the user attaches a site, the site will become a regular wixsite.
|
|
86
|
+
*/
|
|
87
|
+
Namespace["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
88
|
+
/** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
|
|
89
|
+
Namespace["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
90
|
+
/** It is to be used in the Business First efforts. */
|
|
91
|
+
Namespace["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
92
|
+
/** Bookings business flow with no site. */
|
|
93
|
+
Namespace["ANYWHERE"] = "ANYWHERE";
|
|
94
|
+
/** Namespace for Headless Backoffice with no editor */
|
|
95
|
+
Namespace["HEADLESS"] = "HEADLESS";
|
|
96
|
+
/**
|
|
97
|
+
* Namespace for master site that will exist in parent account that will be referenced by subaccounts
|
|
98
|
+
* The site will be used for account level CSM feature for enterprise
|
|
99
|
+
*/
|
|
100
|
+
Namespace["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
101
|
+
/** Rise.ai Siteless account management for Gift Cards and Store Credit. */
|
|
102
|
+
Namespace["RISE"] = "RISE";
|
|
103
|
+
/**
|
|
104
|
+
* As part of the branded app new funnel, users now can create a meta site that will be branded app first.
|
|
105
|
+
* There's a blank site behind the scene but it's blank).
|
|
106
|
+
* The Mobile company will be the owner of this namespace.
|
|
107
|
+
*/
|
|
108
|
+
Namespace["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
109
|
+
/** Nownia.com Siteless account management for Ai Scheduling Assistant. */
|
|
110
|
+
Namespace["NOWNIA"] = "NOWNIA";
|
|
111
|
+
/**
|
|
112
|
+
* UGC Templates are templates that are created by users for personal use and to sale to other users.
|
|
113
|
+
* The Partners company owns this namespace.
|
|
114
|
+
*/
|
|
115
|
+
Namespace["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
116
|
+
/** Codux Headless Sites */
|
|
117
|
+
Namespace["CODUX"] = "CODUX";
|
|
118
|
+
/** Bobb - AI Design Creator. */
|
|
119
|
+
Namespace["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
120
|
+
/**
|
|
121
|
+
* Shared Blog Site is a unique single site across Enterprise account,
|
|
122
|
+
* This site will hold all Blog posts related to the Marketing product.
|
|
123
|
+
*/
|
|
124
|
+
Namespace["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
125
|
+
/** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
126
|
+
Namespace["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
127
|
+
/** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
|
|
128
|
+
Namespace["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
129
|
+
/** MIMIR - Siteless account for MIMIR Ai Job runner. */
|
|
130
|
+
Namespace["MIMIR"] = "MIMIR";
|
|
131
|
+
})(Namespace || (Namespace = {}));
|
|
132
|
+
export var DeleteStatus;
|
|
133
|
+
(function (DeleteStatus) {
|
|
134
|
+
DeleteStatus["UNKNOWN"] = "UNKNOWN";
|
|
135
|
+
DeleteStatus["TRASH"] = "TRASH";
|
|
136
|
+
DeleteStatus["DELETED"] = "DELETED";
|
|
137
|
+
DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
|
|
138
|
+
DeleteStatus["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
139
|
+
})(DeleteStatus || (DeleteStatus = {}));
|
|
140
|
+
export var WebhookIdentityType;
|
|
141
|
+
(function (WebhookIdentityType) {
|
|
142
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
143
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
144
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
145
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
146
|
+
WebhookIdentityType["APP"] = "APP";
|
|
147
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
148
|
+
/**
|
|
149
|
+
* Retrieves a site's locale settings.
|
|
150
|
+
* @internal
|
|
151
|
+
* @documentationMaturity preview
|
|
152
|
+
* @permissionId WIX_MULTILINGUAL.SETTINGS_READ
|
|
153
|
+
* @returns Response message containing the requested multilingual settings
|
|
154
|
+
* @fqn wix.multilingual.settings.v2.SettingsService.GetLocaleSettings
|
|
155
|
+
*/
|
|
156
|
+
export async function getLocaleSettings() {
|
|
157
|
+
// @ts-ignore
|
|
158
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
159
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
160
|
+
const reqOpts = ambassadorWixMultilingualSettingsV2LocaleSettings.getLocaleSettings(payload);
|
|
161
|
+
sideEffects?.onSiteCall?.();
|
|
162
|
+
try {
|
|
163
|
+
const result = await httpClient.request(reqOpts);
|
|
164
|
+
sideEffects?.onSuccess?.(result);
|
|
165
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
166
|
+
}
|
|
167
|
+
catch (err) {
|
|
168
|
+
const transformedError = sdkTransformError(err, {
|
|
169
|
+
spreadPathsToArguments: {},
|
|
170
|
+
explicitPathsToArguments: {},
|
|
171
|
+
singleArgumentUnchanged: false,
|
|
172
|
+
}, []);
|
|
173
|
+
sideEffects?.onError?.(err);
|
|
174
|
+
throw transformedError;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Updates a site's locale settings.
|
|
179
|
+
* @param localeSettings - Locale settings to update.
|
|
180
|
+
* @internal
|
|
181
|
+
* @documentationMaturity preview
|
|
182
|
+
* @requiredField localeSettings
|
|
183
|
+
* @requiredField localeSettings.revision
|
|
184
|
+
* @permissionId WIX_MULTILINGUAL.SETTINGS_UPDATE
|
|
185
|
+
* @returns Response message containing the updated multilingual settings
|
|
186
|
+
* @fqn wix.multilingual.settings.v2.SettingsService.UpdateLocaleSettings
|
|
187
|
+
*/
|
|
188
|
+
export async function updateLocaleSettings(localeSettings) {
|
|
189
|
+
// @ts-ignore
|
|
190
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
191
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
192
|
+
localeSettings: localeSettings,
|
|
193
|
+
});
|
|
194
|
+
const reqOpts = ambassadorWixMultilingualSettingsV2LocaleSettings.updateLocaleSettings(payload);
|
|
195
|
+
sideEffects?.onSiteCall?.();
|
|
196
|
+
try {
|
|
197
|
+
const result = await httpClient.request(reqOpts);
|
|
198
|
+
sideEffects?.onSuccess?.(result);
|
|
199
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
200
|
+
}
|
|
201
|
+
catch (err) {
|
|
202
|
+
const transformedError = sdkTransformError(err, {
|
|
203
|
+
spreadPathsToArguments: {},
|
|
204
|
+
explicitPathsToArguments: { localeSettings: '$[0]' },
|
|
205
|
+
singleArgumentUnchanged: false,
|
|
206
|
+
}, ['localeSettings']);
|
|
207
|
+
sideEffects?.onError?.(err);
|
|
208
|
+
throw transformedError;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Sets a site's multilingual mode.
|
|
213
|
+
*
|
|
214
|
+
* When multilingual mode is enabled, you can create secondary locales.
|
|
215
|
+
*
|
|
216
|
+
* 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.
|
|
217
|
+
*
|
|
218
|
+
* <blockquote class="important">
|
|
219
|
+
* <strong>Important:</strong>
|
|
220
|
+
*
|
|
221
|
+
* 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).
|
|
222
|
+
*
|
|
223
|
+
* </blockquote>
|
|
224
|
+
* @param multilingualModeEnabled - Whether to enable multilingual mode for the site.
|
|
225
|
+
*
|
|
226
|
+
* Default: `false`
|
|
227
|
+
* @internal
|
|
228
|
+
* @documentationMaturity preview
|
|
229
|
+
* @requiredField multilingualModeEnabled
|
|
230
|
+
* @permissionId WIX_MULTILINGUAL.SETTINGS_SET_MODE
|
|
231
|
+
* @returns Response message containing the updated settings after changing the multilingual mode
|
|
232
|
+
* @fqn wix.multilingual.settings.v2.SettingsService.SetMultilingualMode
|
|
233
|
+
*/
|
|
234
|
+
export async function setMultilingualMode(multilingualModeEnabled) {
|
|
235
|
+
// @ts-ignore
|
|
236
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
237
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
238
|
+
multilingualModeEnabled: multilingualModeEnabled,
|
|
239
|
+
});
|
|
240
|
+
const reqOpts = ambassadorWixMultilingualSettingsV2LocaleSettings.setMultilingualMode(payload);
|
|
241
|
+
sideEffects?.onSiteCall?.();
|
|
242
|
+
try {
|
|
243
|
+
const result = await httpClient.request(reqOpts);
|
|
244
|
+
sideEffects?.onSuccess?.(result);
|
|
245
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
246
|
+
}
|
|
247
|
+
catch (err) {
|
|
248
|
+
const transformedError = sdkTransformError(err, {
|
|
249
|
+
spreadPathsToArguments: {},
|
|
250
|
+
explicitPathsToArguments: { multilingualModeEnabled: '$[0]' },
|
|
251
|
+
singleArgumentUnchanged: false,
|
|
252
|
+
}, ['multilingualModeEnabled']);
|
|
253
|
+
sideEffects?.onError?.(err);
|
|
254
|
+
throw transformedError;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=multilingual-settings-v2-locale-settings-locale-settings.universal.js.map
|
package/build/es/src/multilingual-settings-v2-locale-settings-locale-settings.universal.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multilingual-settings-v2-locale-settings-locale-settings.universal.js","sourceRoot":"","sources":["../../../src/multilingual-settings-v2-locale-settings-locale-settings.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,iDAAiD,MAAM,oEAAoE,CAAC;AAqDxI,kEAAkE;AAClE,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,mCAAmC;IACnC,2EAA2D,CAAA;IAC3D,gGAAgG;IAChG,6CAA6B,CAAA;IAC7B,yFAAyF;IACzF,uCAAuB,CAAA;IACvB,wGAAwG;IACxG,2CAA2B,CAAA;AAC7B,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAgGD,2DAA2D;AAC3D,MAAM,CAAN,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,mCAAmC;IACnC,uEAAmD,CAAA;IACnD,2CAA2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strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/multilingual-settings-v2-locale-settings-locale-settings.context.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4GAA0F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/multilingual-settings-v2-locale-settings-locale-settings.universal.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/multilingual-settings-v2-locale-settings-locale-settings.universal.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.typings.js.map
|