@stashfin/grpc 1.2.650 → 1.2.652
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
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "eqxcustomers.getdashboard";
|
|
3
3
|
export interface getDashboardRequest {
|
|
4
|
+
product_page: string;
|
|
4
5
|
}
|
|
5
6
|
export interface getDashboardResponse {
|
|
6
7
|
groups: Block_groups[];
|
|
@@ -27,21 +28,17 @@ export interface Items {
|
|
|
27
28
|
app_version?: string | undefined;
|
|
28
29
|
badge?: string | undefined;
|
|
29
30
|
action_type?: string | undefined;
|
|
30
|
-
items_metadata?:
|
|
31
|
-
[key: string]: any;
|
|
32
|
-
} | undefined;
|
|
31
|
+
items_metadata?: string | undefined;
|
|
33
32
|
item_sequence?: number | undefined;
|
|
34
|
-
rules?:
|
|
35
|
-
[key: string]: any;
|
|
36
|
-
} | undefined;
|
|
33
|
+
rules?: string | undefined;
|
|
37
34
|
}
|
|
38
35
|
export declare const getDashboardRequest: {
|
|
39
|
-
encode(
|
|
36
|
+
encode(message: getDashboardRequest, writer?: _m0.Writer): _m0.Writer;
|
|
40
37
|
decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardRequest;
|
|
41
|
-
fromJSON(
|
|
42
|
-
toJSON(
|
|
38
|
+
fromJSON(object: any): getDashboardRequest;
|
|
39
|
+
toJSON(message: getDashboardRequest): unknown;
|
|
43
40
|
create<I extends Exact<DeepPartial<getDashboardRequest>, I>>(base?: I): getDashboardRequest;
|
|
44
|
-
fromPartial<I extends Exact<DeepPartial<getDashboardRequest>, I>>(
|
|
41
|
+
fromPartial<I extends Exact<DeepPartial<getDashboardRequest>, I>>(object: I): getDashboardRequest;
|
|
45
42
|
};
|
|
46
43
|
export declare const getDashboardResponse: {
|
|
47
44
|
encode(message: getDashboardResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -11,13 +11,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
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
|
-
const struct_1 = require("../google/protobuf/struct");
|
|
15
14
|
exports.protobufPackage = "eqxcustomers.getdashboard";
|
|
16
15
|
function createBasegetDashboardRequest() {
|
|
17
|
-
return {};
|
|
16
|
+
return { product_page: "" };
|
|
18
17
|
}
|
|
19
18
|
exports.getDashboardRequest = {
|
|
20
|
-
encode(
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.product_page !== "") {
|
|
21
|
+
writer.uint32(10).string(message.product_page);
|
|
22
|
+
}
|
|
21
23
|
return writer;
|
|
22
24
|
},
|
|
23
25
|
decode(input, length) {
|
|
@@ -27,6 +29,12 @@ exports.getDashboardRequest = {
|
|
|
27
29
|
while (reader.pos < end) {
|
|
28
30
|
const tag = reader.uint32();
|
|
29
31
|
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.product_page = reader.string();
|
|
37
|
+
continue;
|
|
30
38
|
}
|
|
31
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32
40
|
break;
|
|
@@ -35,18 +43,22 @@ exports.getDashboardRequest = {
|
|
|
35
43
|
}
|
|
36
44
|
return message;
|
|
37
45
|
},
|
|
38
|
-
fromJSON(
|
|
39
|
-
return {};
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { product_page: isSet(object.product_page) ? globalThis.String(object.product_page) : "" };
|
|
40
48
|
},
|
|
41
|
-
toJSON(
|
|
49
|
+
toJSON(message) {
|
|
42
50
|
const obj = {};
|
|
51
|
+
if (message.product_page !== "") {
|
|
52
|
+
obj.product_page = message.product_page;
|
|
53
|
+
}
|
|
43
54
|
return obj;
|
|
44
55
|
},
|
|
45
56
|
create(base) {
|
|
46
57
|
return exports.getDashboardRequest.fromPartial(base ?? {});
|
|
47
58
|
},
|
|
48
|
-
fromPartial(
|
|
59
|
+
fromPartial(object) {
|
|
49
60
|
const message = createBasegetDashboardRequest();
|
|
61
|
+
message.product_page = object.product_page ?? "";
|
|
50
62
|
return message;
|
|
51
63
|
},
|
|
52
64
|
};
|
|
@@ -353,13 +365,13 @@ exports.Items = {
|
|
|
353
365
|
writer.uint32(66).string(message.action_type);
|
|
354
366
|
}
|
|
355
367
|
if (message.items_metadata !== undefined) {
|
|
356
|
-
|
|
368
|
+
writer.uint32(74).string(message.items_metadata);
|
|
357
369
|
}
|
|
358
370
|
if (message.item_sequence !== undefined) {
|
|
359
371
|
writer.uint32(80).int32(message.item_sequence);
|
|
360
372
|
}
|
|
361
373
|
if (message.rules !== undefined) {
|
|
362
|
-
|
|
374
|
+
writer.uint32(90).string(message.rules);
|
|
363
375
|
}
|
|
364
376
|
return writer;
|
|
365
377
|
},
|
|
@@ -422,7 +434,7 @@ exports.Items = {
|
|
|
422
434
|
if (tag !== 74) {
|
|
423
435
|
break;
|
|
424
436
|
}
|
|
425
|
-
message.items_metadata =
|
|
437
|
+
message.items_metadata = reader.string();
|
|
426
438
|
continue;
|
|
427
439
|
case 10:
|
|
428
440
|
if (tag !== 80) {
|
|
@@ -434,7 +446,7 @@ exports.Items = {
|
|
|
434
446
|
if (tag !== 90) {
|
|
435
447
|
break;
|
|
436
448
|
}
|
|
437
|
-
message.rules =
|
|
449
|
+
message.rules = reader.string();
|
|
438
450
|
continue;
|
|
439
451
|
}
|
|
440
452
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -454,9 +466,9 @@ exports.Items = {
|
|
|
454
466
|
app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : undefined,
|
|
455
467
|
badge: isSet(object.badge) ? globalThis.String(object.badge) : undefined,
|
|
456
468
|
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : undefined,
|
|
457
|
-
items_metadata:
|
|
469
|
+
items_metadata: isSet(object.items_metadata) ? globalThis.String(object.items_metadata) : undefined,
|
|
458
470
|
item_sequence: isSet(object.item_sequence) ? globalThis.Number(object.item_sequence) : undefined,
|
|
459
|
-
rules:
|
|
471
|
+
rules: isSet(object.rules) ? globalThis.String(object.rules) : undefined,
|
|
460
472
|
};
|
|
461
473
|
},
|
|
462
474
|
toJSON(message) {
|
|
@@ -515,9 +527,6 @@ exports.Items = {
|
|
|
515
527
|
return message;
|
|
516
528
|
},
|
|
517
529
|
};
|
|
518
|
-
function isObject(value) {
|
|
519
|
-
return typeof value === "object" && value !== null;
|
|
520
|
-
}
|
|
521
530
|
function isSet(value) {
|
|
522
531
|
return value !== null && value !== undefined;
|
|
523
532
|
}
|