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