@pushwoosh/rpc-v2-http-api-data 0.1.539 → 0.1.541

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,46 @@ 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": "object"
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
+ }
8128
+ },
8129
+ "pushwoosh.rpc_v2.line_presets.ImageCarouselTemplate": {
8130
+ "type": "I",
8131
+ "fields": {
8132
+ "columns": {
8133
+ "type": "pushwoosh.rpc_v2.line_presets.ImageTemplate",
8134
+ "array": true
8135
+ }
8136
+ }
8137
+ },
8098
8138
  "pushwoosh.rpc_v2.line_presets.LinePreset": {
8099
8139
  "type": "I",
8100
8140
  "fields": {
@@ -8117,6 +8157,10 @@ export const data = {
8117
8157
  },
8118
8158
  "updated": {
8119
8159
  "type": "Date"
8160
+ },
8161
+ "localizedTemplate": {
8162
+ "type": "pushwoosh.rpc_v2.line_presets.Template",
8163
+ "mapKeyType": "string"
8120
8164
  }
8121
8165
  }
8122
8166
  },
@@ -8170,6 +8214,10 @@ export const data = {
8170
8214
  "localizedContent": {
8171
8215
  "type": "string",
8172
8216
  "mapKeyType": "string"
8217
+ },
8218
+ "localizedTemplate": {
8219
+ "type": "pushwoosh.rpc_v2.line_presets.Template",
8220
+ "mapKeyType": "string"
8173
8221
  }
8174
8222
  }
8175
8223
  },
@@ -8197,6 +8245,10 @@ export const data = {
8197
8245
  "localizedContent": {
8198
8246
  "type": "string",
8199
8247
  "mapKeyType": "string"
8248
+ },
8249
+ "localizedTemplate": {
8250
+ "type": "pushwoosh.rpc_v2.line_presets.Template",
8251
+ "mapKeyType": "string"
8200
8252
  }
8201
8253
  }
8202
8254
  },
package/line_presets.d.ts CHANGED
@@ -16,6 +16,28 @@ 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: object;
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
+ };
38
+ export type ImageCarouselTemplate = {
39
+ columns: ImageTemplate[];
40
+ };
19
41
  export type LinePreset = {
20
42
  name: string;
21
43
  code: string;
@@ -23,6 +45,7 @@ export type LinePreset = {
23
45
  localizedContent: Record<string, string>;
24
46
  created: Date;
25
47
  updated: Date;
48
+ localizedTemplate: Record<string, Template>;
26
49
  };
27
50
  export type ListLinePresetsResponse = {
28
51
  presets: LinePreset[];
@@ -41,6 +64,7 @@ export type CreateLinePresetRequest = {
41
64
  name?: string;
42
65
  categories?: string[];
43
66
  localizedContent?: Record<string, string>;
67
+ localizedTemplate?: Record<string, Template>;
44
68
  };
45
69
  export type CreateLinePresetResponse = {
46
70
  preset: LinePreset;
@@ -50,6 +74,7 @@ export type UpdateLinePresetRequest = {
50
74
  name?: string;
51
75
  categories?: string[];
52
76
  localizedContent?: Record<string, string>;
77
+ localizedTemplate?: Record<string, Template>;
53
78
  };
54
79
  export type UpdateLinePresetResponse = {
55
80
  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.539",
3
+ "version": "0.1.541",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",