@pushwoosh/rpc-v2-http-api-data 0.1.540 → 0.1.542

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/data.js CHANGED
@@ -8095,6 +8095,63 @@ export const data = {
8095
8095
  }
8096
8096
  }
8097
8097
  },
8098
+ "pushwoosh.rpc_v2.line_presets.Template": {
8099
+ "type": "I",
8100
+ "fields": {
8101
+ "image": {
8102
+ "type": "pushwoosh.rpc_v2.line_presets.ImageTemplate"
8103
+ },
8104
+ "imageCarousel": {
8105
+ "type": "pushwoosh.rpc_v2.line_presets.ImageCarouselTemplate"
8106
+ },
8107
+ "raw": {
8108
+ "type": "pushwoosh.rpc_v2.line_presets.RawTemplate"
8109
+ }
8110
+ },
8111
+ "oneofs": {
8112
+ "kind": {
8113
+ "oneof": [
8114
+ "image",
8115
+ "imageCarousel",
8116
+ "raw"
8117
+ ]
8118
+ }
8119
+ }
8120
+ },
8121
+ "pushwoosh.rpc_v2.line_presets.ImageTemplate": {
8122
+ "type": "I",
8123
+ "fields": {
8124
+ "imageUrl": {
8125
+ "type": "string"
8126
+ },
8127
+ "previewImageUrl": {
8128
+ "type": "string"
8129
+ }
8130
+ }
8131
+ },
8132
+ "pushwoosh.rpc_v2.line_presets.ImageCarouselTemplate": {
8133
+ "type": "I",
8134
+ "fields": {
8135
+ "altText": {
8136
+ "type": "string"
8137
+ },
8138
+ "columns": {
8139
+ "type": "pushwoosh.rpc_v2.line_presets.ImageTemplate",
8140
+ "array": true
8141
+ }
8142
+ }
8143
+ },
8144
+ "pushwoosh.rpc_v2.line_presets.RawTemplate": {
8145
+ "type": "I",
8146
+ "fields": {
8147
+ "altText": {
8148
+ "type": "string"
8149
+ },
8150
+ "content": {
8151
+ "type": "object"
8152
+ }
8153
+ }
8154
+ },
8098
8155
  "pushwoosh.rpc_v2.line_presets.LinePreset": {
8099
8156
  "type": "I",
8100
8157
  "fields": {
@@ -8117,6 +8174,10 @@ export const data = {
8117
8174
  },
8118
8175
  "updated": {
8119
8176
  "type": "Date"
8177
+ },
8178
+ "localizedTemplate": {
8179
+ "type": "pushwoosh.rpc_v2.line_presets.Template",
8180
+ "mapKeyType": "string"
8120
8181
  }
8121
8182
  }
8122
8183
  },
@@ -8170,6 +8231,10 @@ export const data = {
8170
8231
  "localizedContent": {
8171
8232
  "type": "string",
8172
8233
  "mapKeyType": "string"
8234
+ },
8235
+ "localizedTemplate": {
8236
+ "type": "pushwoosh.rpc_v2.line_presets.Template",
8237
+ "mapKeyType": "string"
8173
8238
  }
8174
8239
  }
8175
8240
  },
@@ -8197,6 +8262,10 @@ export const data = {
8197
8262
  "localizedContent": {
8198
8263
  "type": "string",
8199
8264
  "mapKeyType": "string"
8265
+ },
8266
+ "localizedTemplate": {
8267
+ "type": "pushwoosh.rpc_v2.line_presets.Template",
8268
+ "mapKeyType": "string"
8200
8269
  }
8201
8270
  }
8202
8271
  },
package/line_presets.d.ts CHANGED
@@ -16,6 +16,34 @@ export type ListLinePresetsRequest = {
16
16
  searchByName?: string;
17
17
  searchByCategory?: string[];
18
18
  };
19
+ export type Template_kind_image = {
20
+ type: 'image';
21
+ data: ImageTemplate;
22
+ };
23
+ export type Template_kind_imageCarousel = {
24
+ type: 'imageCarousel';
25
+ data: ImageCarouselTemplate;
26
+ };
27
+ export type Template_kind_raw = {
28
+ type: 'raw';
29
+ data: RawTemplate;
30
+ };
31
+ export type Template_kind = Template_kind_image | Template_kind_imageCarousel | Template_kind_raw;
32
+ export type Template = {
33
+ kind: Template_kind;
34
+ };
35
+ export type ImageTemplate = {
36
+ imageUrl: string;
37
+ previewImageUrl: string;
38
+ };
39
+ export type ImageCarouselTemplate = {
40
+ altText: string;
41
+ columns: ImageTemplate[];
42
+ };
43
+ export type RawTemplate = {
44
+ altText: string;
45
+ content: object;
46
+ };
19
47
  export type LinePreset = {
20
48
  name: string;
21
49
  code: string;
@@ -23,6 +51,7 @@ export type LinePreset = {
23
51
  localizedContent: Record<string, string>;
24
52
  created: Date;
25
53
  updated: Date;
54
+ localizedTemplate: Record<string, Template>;
26
55
  };
27
56
  export type ListLinePresetsResponse = {
28
57
  presets: LinePreset[];
@@ -41,6 +70,7 @@ export type CreateLinePresetRequest = {
41
70
  name?: string;
42
71
  categories?: string[];
43
72
  localizedContent?: Record<string, string>;
73
+ localizedTemplate?: Record<string, Template>;
44
74
  };
45
75
  export type CreateLinePresetResponse = {
46
76
  preset: LinePreset;
@@ -50,6 +80,7 @@ export type UpdateLinePresetRequest = {
50
80
  name?: string;
51
81
  categories?: string[];
52
82
  localizedContent?: Record<string, string>;
83
+ localizedTemplate?: Record<string, Template>;
53
84
  };
54
85
  export type UpdateLinePresetResponse = {
55
86
  preset: LinePreset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.540",
3
+ "version": "0.1.542",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",