@stashfin/grpc 1.2.452 → 1.2.453
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/package.json +1 -1
- package/ts/eqxcustomers/getdashboard.d.ts +42 -30
- package/ts/eqxcustomers/getdashboard.js +211 -144
package/package.json
CHANGED
|
@@ -3,33 +3,37 @@ export declare const protobufPackage = "eqxcustomers.getdashboard";
|
|
|
3
3
|
export interface getDashboardRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getDashboardResponse {
|
|
6
|
+
groups: Block_groups[];
|
|
7
|
+
}
|
|
8
|
+
export interface Block_groups {
|
|
9
|
+
group_name: string;
|
|
10
|
+
seq_no?: number | undefined;
|
|
6
11
|
blocks: Block[];
|
|
7
12
|
}
|
|
8
13
|
export interface Block {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
group: string;
|
|
13
|
-
block_data: BlockData[];
|
|
14
|
+
block_name: string;
|
|
15
|
+
seq_no?: number | undefined;
|
|
16
|
+
items: Items[];
|
|
14
17
|
}
|
|
15
|
-
export interface
|
|
16
|
-
text
|
|
17
|
-
sub_text
|
|
18
|
-
image_url
|
|
19
|
-
video_url
|
|
20
|
-
video_length
|
|
21
|
-
action_url
|
|
22
|
-
landing_page
|
|
23
|
-
api_mode
|
|
24
|
-
app_version
|
|
25
|
-
old_customers
|
|
26
|
-
is_new
|
|
27
|
-
action_type
|
|
28
|
-
color1
|
|
29
|
-
color2
|
|
30
|
-
image_trailing
|
|
31
|
-
tag
|
|
32
|
-
overlay_image
|
|
18
|
+
export interface Items {
|
|
19
|
+
text?: string | undefined;
|
|
20
|
+
sub_text?: string | undefined;
|
|
21
|
+
image_url?: string | undefined;
|
|
22
|
+
video_url?: string | undefined;
|
|
23
|
+
video_length?: number | undefined;
|
|
24
|
+
action_url?: string | undefined;
|
|
25
|
+
landing_page?: string | undefined;
|
|
26
|
+
api_mode?: string | undefined;
|
|
27
|
+
app_version?: string | undefined;
|
|
28
|
+
old_customers?: boolean | undefined;
|
|
29
|
+
is_new?: boolean | undefined;
|
|
30
|
+
action_type?: string | undefined;
|
|
31
|
+
color1?: string | undefined;
|
|
32
|
+
color2?: string | undefined;
|
|
33
|
+
image_trailing?: string | undefined;
|
|
34
|
+
tag?: Tag | undefined;
|
|
35
|
+
overlay_image?: string | undefined;
|
|
36
|
+
title?: string | undefined;
|
|
33
37
|
}
|
|
34
38
|
export interface Tag {
|
|
35
39
|
text: string;
|
|
@@ -52,6 +56,14 @@ export declare const getDashboardResponse: {
|
|
|
52
56
|
create<I extends Exact<DeepPartial<getDashboardResponse>, I>>(base?: I): getDashboardResponse;
|
|
53
57
|
fromPartial<I extends Exact<DeepPartial<getDashboardResponse>, I>>(object: I): getDashboardResponse;
|
|
54
58
|
};
|
|
59
|
+
export declare const Block_groups: {
|
|
60
|
+
encode(message: Block_groups, writer?: _m0.Writer): _m0.Writer;
|
|
61
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Block_groups;
|
|
62
|
+
fromJSON(object: any): Block_groups;
|
|
63
|
+
toJSON(message: Block_groups): unknown;
|
|
64
|
+
create<I extends Exact<DeepPartial<Block_groups>, I>>(base?: I): Block_groups;
|
|
65
|
+
fromPartial<I extends Exact<DeepPartial<Block_groups>, I>>(object: I): Block_groups;
|
|
66
|
+
};
|
|
55
67
|
export declare const Block: {
|
|
56
68
|
encode(message: Block, writer?: _m0.Writer): _m0.Writer;
|
|
57
69
|
decode(input: _m0.Reader | Uint8Array, length?: number): Block;
|
|
@@ -60,13 +72,13 @@ export declare const Block: {
|
|
|
60
72
|
create<I extends Exact<DeepPartial<Block>, I>>(base?: I): Block;
|
|
61
73
|
fromPartial<I extends Exact<DeepPartial<Block>, I>>(object: I): Block;
|
|
62
74
|
};
|
|
63
|
-
export declare const
|
|
64
|
-
encode(message:
|
|
65
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
66
|
-
fromJSON(object: any):
|
|
67
|
-
toJSON(message:
|
|
68
|
-
create<I extends Exact<DeepPartial<
|
|
69
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
75
|
+
export declare const Items: {
|
|
76
|
+
encode(message: Items, writer?: _m0.Writer): _m0.Writer;
|
|
77
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Items;
|
|
78
|
+
fromJSON(object: any): Items;
|
|
79
|
+
toJSON(message: Items): unknown;
|
|
80
|
+
create<I extends Exact<DeepPartial<Items>, I>>(base?: I): Items;
|
|
81
|
+
fromPartial<I extends Exact<DeepPartial<Items>, I>>(object: I): Items;
|
|
70
82
|
};
|
|
71
83
|
export declare const Tag: {
|
|
72
84
|
encode(message: Tag, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.Tag = exports.
|
|
11
|
+
exports.Tag = exports.Items = exports.Block = exports.Block_groups = exports.getDashboardResponse = exports.getDashboardRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "eqxcustomers.getdashboard";
|
|
@@ -50,12 +50,12 @@ exports.getDashboardRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetDashboardResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return { groups: [] };
|
|
54
54
|
}
|
|
55
55
|
exports.getDashboardResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
for (const v of message.
|
|
58
|
-
exports.
|
|
57
|
+
for (const v of message.groups) {
|
|
58
|
+
exports.Block_groups.encode(v, writer.uint32(10).fork()).ldelim();
|
|
59
59
|
}
|
|
60
60
|
return writer;
|
|
61
61
|
},
|
|
@@ -70,7 +70,7 @@ exports.getDashboardResponse = {
|
|
|
70
70
|
if (tag !== 10) {
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
73
|
-
message.
|
|
73
|
+
message.groups.push(exports.Block_groups.decode(reader, reader.uint32()));
|
|
74
74
|
continue;
|
|
75
75
|
}
|
|
76
76
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -81,12 +81,14 @@ exports.getDashboardResponse = {
|
|
|
81
81
|
return message;
|
|
82
82
|
},
|
|
83
83
|
fromJSON(object) {
|
|
84
|
-
return {
|
|
84
|
+
return {
|
|
85
|
+
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e) => exports.Block_groups.fromJSON(e)) : [],
|
|
86
|
+
};
|
|
85
87
|
},
|
|
86
88
|
toJSON(message) {
|
|
87
89
|
const obj = {};
|
|
88
|
-
if (message.
|
|
89
|
-
obj.
|
|
90
|
+
if (message.groups?.length) {
|
|
91
|
+
obj.groups = message.groups.map((e) => exports.Block_groups.toJSON(e));
|
|
90
92
|
}
|
|
91
93
|
return obj;
|
|
92
94
|
},
|
|
@@ -95,36 +97,30 @@ exports.getDashboardResponse = {
|
|
|
95
97
|
},
|
|
96
98
|
fromPartial(object) {
|
|
97
99
|
const message = createBasegetDashboardResponse();
|
|
98
|
-
message.
|
|
100
|
+
message.groups = object.groups?.map((e) => exports.Block_groups.fromPartial(e)) || [];
|
|
99
101
|
return message;
|
|
100
102
|
},
|
|
101
103
|
};
|
|
102
|
-
function
|
|
103
|
-
return {
|
|
104
|
+
function createBaseBlock_groups() {
|
|
105
|
+
return { group_name: "", seq_no: undefined, blocks: [] };
|
|
104
106
|
}
|
|
105
|
-
exports.
|
|
107
|
+
exports.Block_groups = {
|
|
106
108
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
107
|
-
if (message.
|
|
108
|
-
writer.uint32(10).string(message.
|
|
109
|
-
}
|
|
110
|
-
if (message.title !== "") {
|
|
111
|
-
writer.uint32(18).string(message.title);
|
|
112
|
-
}
|
|
113
|
-
if (message.code !== "") {
|
|
114
|
-
writer.uint32(26).string(message.code);
|
|
109
|
+
if (message.group_name !== "") {
|
|
110
|
+
writer.uint32(10).string(message.group_name);
|
|
115
111
|
}
|
|
116
|
-
if (message.
|
|
117
|
-
writer.uint32(
|
|
112
|
+
if (message.seq_no !== undefined) {
|
|
113
|
+
writer.uint32(16).int32(message.seq_no);
|
|
118
114
|
}
|
|
119
|
-
for (const v of message.
|
|
120
|
-
exports.
|
|
115
|
+
for (const v of message.blocks) {
|
|
116
|
+
exports.Block.encode(v, writer.uint32(26).fork()).ldelim();
|
|
121
117
|
}
|
|
122
118
|
return writer;
|
|
123
119
|
},
|
|
124
120
|
decode(input, length) {
|
|
125
121
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
126
122
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
-
const message =
|
|
123
|
+
const message = createBaseBlock_groups();
|
|
128
124
|
while (reader.pos < end) {
|
|
129
125
|
const tag = reader.uint32();
|
|
130
126
|
switch (tag >>> 3) {
|
|
@@ -132,31 +128,99 @@ exports.Block = {
|
|
|
132
128
|
if (tag !== 10) {
|
|
133
129
|
break;
|
|
134
130
|
}
|
|
135
|
-
message.
|
|
131
|
+
message.group_name = reader.string();
|
|
136
132
|
continue;
|
|
137
133
|
case 2:
|
|
138
|
-
if (tag !==
|
|
134
|
+
if (tag !== 16) {
|
|
139
135
|
break;
|
|
140
136
|
}
|
|
141
|
-
message.
|
|
137
|
+
message.seq_no = reader.int32();
|
|
142
138
|
continue;
|
|
143
139
|
case 3:
|
|
144
140
|
if (tag !== 26) {
|
|
145
141
|
break;
|
|
146
142
|
}
|
|
147
|
-
message.
|
|
143
|
+
message.blocks.push(exports.Block.decode(reader, reader.uint32()));
|
|
148
144
|
continue;
|
|
149
|
-
|
|
150
|
-
|
|
145
|
+
}
|
|
146
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
reader.skipType(tag & 7);
|
|
150
|
+
}
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
fromJSON(object) {
|
|
154
|
+
return {
|
|
155
|
+
group_name: isSet(object.group_name) ? globalThis.String(object.group_name) : "",
|
|
156
|
+
seq_no: isSet(object.seq_no) ? globalThis.Number(object.seq_no) : undefined,
|
|
157
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [],
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
toJSON(message) {
|
|
161
|
+
const obj = {};
|
|
162
|
+
if (message.group_name !== "") {
|
|
163
|
+
obj.group_name = message.group_name;
|
|
164
|
+
}
|
|
165
|
+
if (message.seq_no !== undefined) {
|
|
166
|
+
obj.seq_no = Math.round(message.seq_no);
|
|
167
|
+
}
|
|
168
|
+
if (message.blocks?.length) {
|
|
169
|
+
obj.blocks = message.blocks.map((e) => exports.Block.toJSON(e));
|
|
170
|
+
}
|
|
171
|
+
return obj;
|
|
172
|
+
},
|
|
173
|
+
create(base) {
|
|
174
|
+
return exports.Block_groups.fromPartial(base ?? {});
|
|
175
|
+
},
|
|
176
|
+
fromPartial(object) {
|
|
177
|
+
const message = createBaseBlock_groups();
|
|
178
|
+
message.group_name = object.group_name ?? "";
|
|
179
|
+
message.seq_no = object.seq_no ?? undefined;
|
|
180
|
+
message.blocks = object.blocks?.map((e) => exports.Block.fromPartial(e)) || [];
|
|
181
|
+
return message;
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
function createBaseBlock() {
|
|
185
|
+
return { block_name: "", seq_no: undefined, items: [] };
|
|
186
|
+
}
|
|
187
|
+
exports.Block = {
|
|
188
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
189
|
+
if (message.block_name !== "") {
|
|
190
|
+
writer.uint32(10).string(message.block_name);
|
|
191
|
+
}
|
|
192
|
+
if (message.seq_no !== undefined) {
|
|
193
|
+
writer.uint32(16).int32(message.seq_no);
|
|
194
|
+
}
|
|
195
|
+
for (const v of message.items) {
|
|
196
|
+
exports.Items.encode(v, writer.uint32(26).fork()).ldelim();
|
|
197
|
+
}
|
|
198
|
+
return writer;
|
|
199
|
+
},
|
|
200
|
+
decode(input, length) {
|
|
201
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
203
|
+
const message = createBaseBlock();
|
|
204
|
+
while (reader.pos < end) {
|
|
205
|
+
const tag = reader.uint32();
|
|
206
|
+
switch (tag >>> 3) {
|
|
207
|
+
case 1:
|
|
208
|
+
if (tag !== 10) {
|
|
151
209
|
break;
|
|
152
210
|
}
|
|
153
|
-
message.
|
|
211
|
+
message.block_name = reader.string();
|
|
154
212
|
continue;
|
|
155
|
-
case
|
|
156
|
-
if (tag !==
|
|
213
|
+
case 2:
|
|
214
|
+
if (tag !== 16) {
|
|
157
215
|
break;
|
|
158
216
|
}
|
|
159
|
-
message.
|
|
217
|
+
message.seq_no = reader.int32();
|
|
218
|
+
continue;
|
|
219
|
+
case 3:
|
|
220
|
+
if (tag !== 26) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.items.push(exports.Items.decode(reader, reader.uint32()));
|
|
160
224
|
continue;
|
|
161
225
|
}
|
|
162
226
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -168,31 +232,21 @@ exports.Block = {
|
|
|
168
232
|
},
|
|
169
233
|
fromJSON(object) {
|
|
170
234
|
return {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
group: isSet(object.group) ? globalThis.String(object.group) : "",
|
|
175
|
-
block_data: globalThis.Array.isArray(object?.block_data)
|
|
176
|
-
? object.block_data.map((e) => exports.BlockData.fromJSON(e))
|
|
177
|
-
: [],
|
|
235
|
+
block_name: isSet(object.block_name) ? globalThis.String(object.block_name) : "",
|
|
236
|
+
seq_no: isSet(object.seq_no) ? globalThis.Number(object.seq_no) : undefined,
|
|
237
|
+
items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => exports.Items.fromJSON(e)) : [],
|
|
178
238
|
};
|
|
179
239
|
},
|
|
180
240
|
toJSON(message) {
|
|
181
241
|
const obj = {};
|
|
182
|
-
if (message.
|
|
183
|
-
obj.
|
|
184
|
-
}
|
|
185
|
-
if (message.title !== "") {
|
|
186
|
-
obj.title = message.title;
|
|
242
|
+
if (message.block_name !== "") {
|
|
243
|
+
obj.block_name = message.block_name;
|
|
187
244
|
}
|
|
188
|
-
if (message.
|
|
189
|
-
obj.
|
|
245
|
+
if (message.seq_no !== undefined) {
|
|
246
|
+
obj.seq_no = Math.round(message.seq_no);
|
|
190
247
|
}
|
|
191
|
-
if (message.
|
|
192
|
-
obj.
|
|
193
|
-
}
|
|
194
|
-
if (message.block_data?.length) {
|
|
195
|
-
obj.block_data = message.block_data.map((e) => exports.BlockData.toJSON(e));
|
|
248
|
+
if (message.items?.length) {
|
|
249
|
+
obj.items = message.items.map((e) => exports.Items.toJSON(e));
|
|
196
250
|
}
|
|
197
251
|
return obj;
|
|
198
252
|
},
|
|
@@ -201,94 +255,96 @@ exports.Block = {
|
|
|
201
255
|
},
|
|
202
256
|
fromPartial(object) {
|
|
203
257
|
const message = createBaseBlock();
|
|
204
|
-
message.
|
|
205
|
-
message.
|
|
206
|
-
message.
|
|
207
|
-
message.group = object.group ?? "";
|
|
208
|
-
message.block_data = object.block_data?.map((e) => exports.BlockData.fromPartial(e)) || [];
|
|
258
|
+
message.block_name = object.block_name ?? "";
|
|
259
|
+
message.seq_no = object.seq_no ?? undefined;
|
|
260
|
+
message.items = object.items?.map((e) => exports.Items.fromPartial(e)) || [];
|
|
209
261
|
return message;
|
|
210
262
|
},
|
|
211
263
|
};
|
|
212
|
-
function
|
|
264
|
+
function createBaseItems() {
|
|
213
265
|
return {
|
|
214
|
-
text:
|
|
215
|
-
sub_text:
|
|
216
|
-
image_url:
|
|
217
|
-
video_url:
|
|
218
|
-
video_length:
|
|
219
|
-
action_url:
|
|
220
|
-
landing_page:
|
|
221
|
-
api_mode:
|
|
222
|
-
app_version:
|
|
223
|
-
old_customers:
|
|
224
|
-
is_new:
|
|
225
|
-
action_type:
|
|
226
|
-
color1:
|
|
227
|
-
color2:
|
|
228
|
-
image_trailing:
|
|
266
|
+
text: undefined,
|
|
267
|
+
sub_text: undefined,
|
|
268
|
+
image_url: undefined,
|
|
269
|
+
video_url: undefined,
|
|
270
|
+
video_length: undefined,
|
|
271
|
+
action_url: undefined,
|
|
272
|
+
landing_page: undefined,
|
|
273
|
+
api_mode: undefined,
|
|
274
|
+
app_version: undefined,
|
|
275
|
+
old_customers: undefined,
|
|
276
|
+
is_new: undefined,
|
|
277
|
+
action_type: undefined,
|
|
278
|
+
color1: undefined,
|
|
279
|
+
color2: undefined,
|
|
280
|
+
image_trailing: undefined,
|
|
229
281
|
tag: undefined,
|
|
230
|
-
overlay_image:
|
|
282
|
+
overlay_image: undefined,
|
|
283
|
+
title: undefined,
|
|
231
284
|
};
|
|
232
285
|
}
|
|
233
|
-
exports.
|
|
286
|
+
exports.Items = {
|
|
234
287
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
235
|
-
if (message.text !==
|
|
288
|
+
if (message.text !== undefined) {
|
|
236
289
|
writer.uint32(10).string(message.text);
|
|
237
290
|
}
|
|
238
|
-
if (message.sub_text !==
|
|
291
|
+
if (message.sub_text !== undefined) {
|
|
239
292
|
writer.uint32(18).string(message.sub_text);
|
|
240
293
|
}
|
|
241
|
-
if (message.image_url !==
|
|
294
|
+
if (message.image_url !== undefined) {
|
|
242
295
|
writer.uint32(26).string(message.image_url);
|
|
243
296
|
}
|
|
244
|
-
if (message.video_url !==
|
|
297
|
+
if (message.video_url !== undefined) {
|
|
245
298
|
writer.uint32(34).string(message.video_url);
|
|
246
299
|
}
|
|
247
|
-
if (message.video_length !==
|
|
300
|
+
if (message.video_length !== undefined) {
|
|
248
301
|
writer.uint32(40).int32(message.video_length);
|
|
249
302
|
}
|
|
250
|
-
if (message.action_url !==
|
|
303
|
+
if (message.action_url !== undefined) {
|
|
251
304
|
writer.uint32(50).string(message.action_url);
|
|
252
305
|
}
|
|
253
|
-
if (message.landing_page !==
|
|
306
|
+
if (message.landing_page !== undefined) {
|
|
254
307
|
writer.uint32(58).string(message.landing_page);
|
|
255
308
|
}
|
|
256
|
-
if (message.api_mode !==
|
|
309
|
+
if (message.api_mode !== undefined) {
|
|
257
310
|
writer.uint32(66).string(message.api_mode);
|
|
258
311
|
}
|
|
259
|
-
if (message.app_version !==
|
|
312
|
+
if (message.app_version !== undefined) {
|
|
260
313
|
writer.uint32(74).string(message.app_version);
|
|
261
314
|
}
|
|
262
|
-
if (message.old_customers !==
|
|
315
|
+
if (message.old_customers !== undefined) {
|
|
263
316
|
writer.uint32(80).bool(message.old_customers);
|
|
264
317
|
}
|
|
265
|
-
if (message.is_new !==
|
|
318
|
+
if (message.is_new !== undefined) {
|
|
266
319
|
writer.uint32(88).bool(message.is_new);
|
|
267
320
|
}
|
|
268
|
-
if (message.action_type !==
|
|
321
|
+
if (message.action_type !== undefined) {
|
|
269
322
|
writer.uint32(98).string(message.action_type);
|
|
270
323
|
}
|
|
271
|
-
if (message.color1 !==
|
|
324
|
+
if (message.color1 !== undefined) {
|
|
272
325
|
writer.uint32(106).string(message.color1);
|
|
273
326
|
}
|
|
274
|
-
if (message.color2 !==
|
|
327
|
+
if (message.color2 !== undefined) {
|
|
275
328
|
writer.uint32(114).string(message.color2);
|
|
276
329
|
}
|
|
277
|
-
if (message.image_trailing !==
|
|
330
|
+
if (message.image_trailing !== undefined) {
|
|
278
331
|
writer.uint32(122).string(message.image_trailing);
|
|
279
332
|
}
|
|
280
333
|
if (message.tag !== undefined) {
|
|
281
334
|
exports.Tag.encode(message.tag, writer.uint32(130).fork()).ldelim();
|
|
282
335
|
}
|
|
283
|
-
if (message.overlay_image !==
|
|
336
|
+
if (message.overlay_image !== undefined) {
|
|
284
337
|
writer.uint32(138).string(message.overlay_image);
|
|
285
338
|
}
|
|
339
|
+
if (message.title !== undefined) {
|
|
340
|
+
writer.uint32(146).string(message.title);
|
|
341
|
+
}
|
|
286
342
|
return writer;
|
|
287
343
|
},
|
|
288
344
|
decode(input, length) {
|
|
289
345
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
290
346
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
291
|
-
const message =
|
|
347
|
+
const message = createBaseItems();
|
|
292
348
|
while (reader.pos < end) {
|
|
293
349
|
const tag = reader.uint32();
|
|
294
350
|
switch (tag >>> 3) {
|
|
@@ -394,6 +450,12 @@ exports.BlockData = {
|
|
|
394
450
|
}
|
|
395
451
|
message.overlay_image = reader.string();
|
|
396
452
|
continue;
|
|
453
|
+
case 18:
|
|
454
|
+
if (tag !== 146) {
|
|
455
|
+
break;
|
|
456
|
+
}
|
|
457
|
+
message.title = reader.string();
|
|
458
|
+
continue;
|
|
397
459
|
}
|
|
398
460
|
if ((tag & 7) === 4 || tag === 0) {
|
|
399
461
|
break;
|
|
@@ -404,102 +466,107 @@ exports.BlockData = {
|
|
|
404
466
|
},
|
|
405
467
|
fromJSON(object) {
|
|
406
468
|
return {
|
|
407
|
-
text: isSet(object.text) ? globalThis.String(object.text) :
|
|
408
|
-
sub_text: isSet(object.sub_text) ? globalThis.String(object.sub_text) :
|
|
409
|
-
image_url: isSet(object.image_url) ? globalThis.String(object.image_url) :
|
|
410
|
-
video_url: isSet(object.video_url) ? globalThis.String(object.video_url) :
|
|
411
|
-
video_length: isSet(object.video_length) ? globalThis.Number(object.video_length) :
|
|
412
|
-
action_url: isSet(object.action_url) ? globalThis.String(object.action_url) :
|
|
413
|
-
landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) :
|
|
414
|
-
api_mode: isSet(object.api_mode) ? globalThis.String(object.api_mode) :
|
|
415
|
-
app_version: isSet(object.app_version) ? globalThis.String(object.app_version) :
|
|
416
|
-
old_customers: isSet(object.old_customers) ? globalThis.Boolean(object.old_customers) :
|
|
417
|
-
is_new: isSet(object.is_new) ? globalThis.Boolean(object.is_new) :
|
|
418
|
-
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) :
|
|
419
|
-
color1: isSet(object.color1) ? globalThis.String(object.color1) :
|
|
420
|
-
color2: isSet(object.color2) ? globalThis.String(object.color2) :
|
|
421
|
-
image_trailing: isSet(object.image_trailing) ? globalThis.String(object.image_trailing) :
|
|
469
|
+
text: isSet(object.text) ? globalThis.String(object.text) : undefined,
|
|
470
|
+
sub_text: isSet(object.sub_text) ? globalThis.String(object.sub_text) : undefined,
|
|
471
|
+
image_url: isSet(object.image_url) ? globalThis.String(object.image_url) : undefined,
|
|
472
|
+
video_url: isSet(object.video_url) ? globalThis.String(object.video_url) : undefined,
|
|
473
|
+
video_length: isSet(object.video_length) ? globalThis.Number(object.video_length) : undefined,
|
|
474
|
+
action_url: isSet(object.action_url) ? globalThis.String(object.action_url) : undefined,
|
|
475
|
+
landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) : undefined,
|
|
476
|
+
api_mode: isSet(object.api_mode) ? globalThis.String(object.api_mode) : undefined,
|
|
477
|
+
app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : undefined,
|
|
478
|
+
old_customers: isSet(object.old_customers) ? globalThis.Boolean(object.old_customers) : undefined,
|
|
479
|
+
is_new: isSet(object.is_new) ? globalThis.Boolean(object.is_new) : undefined,
|
|
480
|
+
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : undefined,
|
|
481
|
+
color1: isSet(object.color1) ? globalThis.String(object.color1) : undefined,
|
|
482
|
+
color2: isSet(object.color2) ? globalThis.String(object.color2) : undefined,
|
|
483
|
+
image_trailing: isSet(object.image_trailing) ? globalThis.String(object.image_trailing) : undefined,
|
|
422
484
|
tag: isSet(object.tag) ? exports.Tag.fromJSON(object.tag) : undefined,
|
|
423
|
-
overlay_image: isSet(object.overlay_image) ? globalThis.String(object.overlay_image) :
|
|
485
|
+
overlay_image: isSet(object.overlay_image) ? globalThis.String(object.overlay_image) : undefined,
|
|
486
|
+
title: isSet(object.title) ? globalThis.String(object.title) : undefined,
|
|
424
487
|
};
|
|
425
488
|
},
|
|
426
489
|
toJSON(message) {
|
|
427
490
|
const obj = {};
|
|
428
|
-
if (message.text !==
|
|
491
|
+
if (message.text !== undefined) {
|
|
429
492
|
obj.text = message.text;
|
|
430
493
|
}
|
|
431
|
-
if (message.sub_text !==
|
|
494
|
+
if (message.sub_text !== undefined) {
|
|
432
495
|
obj.sub_text = message.sub_text;
|
|
433
496
|
}
|
|
434
|
-
if (message.image_url !==
|
|
497
|
+
if (message.image_url !== undefined) {
|
|
435
498
|
obj.image_url = message.image_url;
|
|
436
499
|
}
|
|
437
|
-
if (message.video_url !==
|
|
500
|
+
if (message.video_url !== undefined) {
|
|
438
501
|
obj.video_url = message.video_url;
|
|
439
502
|
}
|
|
440
|
-
if (message.video_length !==
|
|
503
|
+
if (message.video_length !== undefined) {
|
|
441
504
|
obj.video_length = Math.round(message.video_length);
|
|
442
505
|
}
|
|
443
|
-
if (message.action_url !==
|
|
506
|
+
if (message.action_url !== undefined) {
|
|
444
507
|
obj.action_url = message.action_url;
|
|
445
508
|
}
|
|
446
|
-
if (message.landing_page !==
|
|
509
|
+
if (message.landing_page !== undefined) {
|
|
447
510
|
obj.landing_page = message.landing_page;
|
|
448
511
|
}
|
|
449
|
-
if (message.api_mode !==
|
|
512
|
+
if (message.api_mode !== undefined) {
|
|
450
513
|
obj.api_mode = message.api_mode;
|
|
451
514
|
}
|
|
452
|
-
if (message.app_version !==
|
|
515
|
+
if (message.app_version !== undefined) {
|
|
453
516
|
obj.app_version = message.app_version;
|
|
454
517
|
}
|
|
455
|
-
if (message.old_customers !==
|
|
518
|
+
if (message.old_customers !== undefined) {
|
|
456
519
|
obj.old_customers = message.old_customers;
|
|
457
520
|
}
|
|
458
|
-
if (message.is_new !==
|
|
521
|
+
if (message.is_new !== undefined) {
|
|
459
522
|
obj.is_new = message.is_new;
|
|
460
523
|
}
|
|
461
|
-
if (message.action_type !==
|
|
524
|
+
if (message.action_type !== undefined) {
|
|
462
525
|
obj.action_type = message.action_type;
|
|
463
526
|
}
|
|
464
|
-
if (message.color1 !==
|
|
527
|
+
if (message.color1 !== undefined) {
|
|
465
528
|
obj.color1 = message.color1;
|
|
466
529
|
}
|
|
467
|
-
if (message.color2 !==
|
|
530
|
+
if (message.color2 !== undefined) {
|
|
468
531
|
obj.color2 = message.color2;
|
|
469
532
|
}
|
|
470
|
-
if (message.image_trailing !==
|
|
533
|
+
if (message.image_trailing !== undefined) {
|
|
471
534
|
obj.image_trailing = message.image_trailing;
|
|
472
535
|
}
|
|
473
536
|
if (message.tag !== undefined) {
|
|
474
537
|
obj.tag = exports.Tag.toJSON(message.tag);
|
|
475
538
|
}
|
|
476
|
-
if (message.overlay_image !==
|
|
539
|
+
if (message.overlay_image !== undefined) {
|
|
477
540
|
obj.overlay_image = message.overlay_image;
|
|
478
541
|
}
|
|
542
|
+
if (message.title !== undefined) {
|
|
543
|
+
obj.title = message.title;
|
|
544
|
+
}
|
|
479
545
|
return obj;
|
|
480
546
|
},
|
|
481
547
|
create(base) {
|
|
482
|
-
return exports.
|
|
548
|
+
return exports.Items.fromPartial(base ?? {});
|
|
483
549
|
},
|
|
484
550
|
fromPartial(object) {
|
|
485
|
-
const message =
|
|
486
|
-
message.text = object.text ??
|
|
487
|
-
message.sub_text = object.sub_text ??
|
|
488
|
-
message.image_url = object.image_url ??
|
|
489
|
-
message.video_url = object.video_url ??
|
|
490
|
-
message.video_length = object.video_length ??
|
|
491
|
-
message.action_url = object.action_url ??
|
|
492
|
-
message.landing_page = object.landing_page ??
|
|
493
|
-
message.api_mode = object.api_mode ??
|
|
494
|
-
message.app_version = object.app_version ??
|
|
495
|
-
message.old_customers = object.old_customers ??
|
|
496
|
-
message.is_new = object.is_new ??
|
|
497
|
-
message.action_type = object.action_type ??
|
|
498
|
-
message.color1 = object.color1 ??
|
|
499
|
-
message.color2 = object.color2 ??
|
|
500
|
-
message.image_trailing = object.image_trailing ??
|
|
551
|
+
const message = createBaseItems();
|
|
552
|
+
message.text = object.text ?? undefined;
|
|
553
|
+
message.sub_text = object.sub_text ?? undefined;
|
|
554
|
+
message.image_url = object.image_url ?? undefined;
|
|
555
|
+
message.video_url = object.video_url ?? undefined;
|
|
556
|
+
message.video_length = object.video_length ?? undefined;
|
|
557
|
+
message.action_url = object.action_url ?? undefined;
|
|
558
|
+
message.landing_page = object.landing_page ?? undefined;
|
|
559
|
+
message.api_mode = object.api_mode ?? undefined;
|
|
560
|
+
message.app_version = object.app_version ?? undefined;
|
|
561
|
+
message.old_customers = object.old_customers ?? undefined;
|
|
562
|
+
message.is_new = object.is_new ?? undefined;
|
|
563
|
+
message.action_type = object.action_type ?? undefined;
|
|
564
|
+
message.color1 = object.color1 ?? undefined;
|
|
565
|
+
message.color2 = object.color2 ?? undefined;
|
|
566
|
+
message.image_trailing = object.image_trailing ?? undefined;
|
|
501
567
|
message.tag = (object.tag !== undefined && object.tag !== null) ? exports.Tag.fromPartial(object.tag) : undefined;
|
|
502
|
-
message.overlay_image = object.overlay_image ??
|
|
568
|
+
message.overlay_image = object.overlay_image ?? undefined;
|
|
569
|
+
message.title = object.title ?? undefined;
|
|
503
570
|
return message;
|
|
504
571
|
},
|
|
505
572
|
};
|