@pushwoosh/rpc-v2-http-api-data 0.2.46 → 0.2.47

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 (2) hide show
  1. package/package.json +1 -1
  2. package/rich_medias.d.ts +12 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.46",
3
+ "version": "0.2.47",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/rich_medias.d.ts CHANGED
@@ -254,9 +254,13 @@ export type CreateNativeRequest = {
254
254
  name?: string;
255
255
  /** Content of native-config.json: json object with displayType and the matching display block. */
256
256
  content?: string;
257
- /** Json object of localizations keyed by language code, e.g. {"en": {...}}. */
257
+ /**
258
+ * Json object of localizations: default texts under the "default" key, extra languages
259
+ * keyed by language code, e.g. {"default": {...}, "de": {...}}. Legacy payloads with the
260
+ * default texts keyed by default_language are accepted and normalized on save.
261
+ */
258
262
  localization?: string;
259
- /** Default language. Must be present in localization. */
263
+ /** Real language code of the default localization, e.g. "en". */
260
264
  defaultLanguage?: string;
261
265
  };
262
266
  export type CreateNativeResponse = {
@@ -270,9 +274,13 @@ export type UpdateNativeRequest = {
270
274
  name?: string;
271
275
  /** Content of native-config.json: json object with displayType and the matching display block. */
272
276
  content?: string;
273
- /** Json object of localizations keyed by language code, e.g. {"en": {...}}. */
277
+ /**
278
+ * Json object of localizations: default texts under the "default" key, extra languages
279
+ * keyed by language code, e.g. {"default": {...}, "de": {...}}. Legacy payloads with the
280
+ * default texts keyed by default_language are accepted and normalized on save.
281
+ */
274
282
  localization?: string;
275
- /** Default language. Must be present in localization. */
283
+ /** Real language code of the default localization, e.g. "en". */
276
284
  defaultLanguage?: string;
277
285
  };
278
286
  export type UpdateNativeResponse = {