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