@stashfin/grpc 1.2.144 → 1.2.145
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
|
@@ -3,9 +3,6 @@ export declare const protobufPackage = "customers.getdashboard";
|
|
|
3
3
|
export interface getDashboardRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getDashboardResponse {
|
|
6
|
-
user_state: string;
|
|
7
|
-
father_name_dialog: boolean;
|
|
8
|
-
current_step: string;
|
|
9
6
|
blocks: Block[];
|
|
10
7
|
}
|
|
11
8
|
export interface Block {
|
|
@@ -50,21 +50,12 @@ exports.getDashboardRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetDashboardResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return { blocks: [] };
|
|
54
54
|
}
|
|
55
55
|
exports.getDashboardResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.user_state !== "") {
|
|
58
|
-
writer.uint32(10).string(message.user_state);
|
|
59
|
-
}
|
|
60
|
-
if (message.father_name_dialog !== false) {
|
|
61
|
-
writer.uint32(16).bool(message.father_name_dialog);
|
|
62
|
-
}
|
|
63
|
-
if (message.current_step !== "") {
|
|
64
|
-
writer.uint32(26).string(message.current_step);
|
|
65
|
-
}
|
|
66
57
|
for (const v of message.blocks) {
|
|
67
|
-
exports.Block.encode(v, writer.uint32(
|
|
58
|
+
exports.Block.encode(v, writer.uint32(10).fork()).ldelim();
|
|
68
59
|
}
|
|
69
60
|
return writer;
|
|
70
61
|
},
|
|
@@ -79,24 +70,6 @@ exports.getDashboardResponse = {
|
|
|
79
70
|
if (tag !== 10) {
|
|
80
71
|
break;
|
|
81
72
|
}
|
|
82
|
-
message.user_state = reader.string();
|
|
83
|
-
continue;
|
|
84
|
-
case 2:
|
|
85
|
-
if (tag !== 16) {
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
message.father_name_dialog = reader.bool();
|
|
89
|
-
continue;
|
|
90
|
-
case 3:
|
|
91
|
-
if (tag !== 26) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
message.current_step = reader.string();
|
|
95
|
-
continue;
|
|
96
|
-
case 4:
|
|
97
|
-
if (tag !== 34) {
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
73
|
message.blocks.push(exports.Block.decode(reader, reader.uint32()));
|
|
101
74
|
continue;
|
|
102
75
|
}
|
|
@@ -108,24 +81,10 @@ exports.getDashboardResponse = {
|
|
|
108
81
|
return message;
|
|
109
82
|
},
|
|
110
83
|
fromJSON(object) {
|
|
111
|
-
return {
|
|
112
|
-
user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
|
|
113
|
-
father_name_dialog: isSet(object.father_name_dialog) ? globalThis.Boolean(object.father_name_dialog) : false,
|
|
114
|
-
current_step: isSet(object.current_step) ? globalThis.String(object.current_step) : "",
|
|
115
|
-
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [],
|
|
116
|
-
};
|
|
84
|
+
return { blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [] };
|
|
117
85
|
},
|
|
118
86
|
toJSON(message) {
|
|
119
87
|
const obj = {};
|
|
120
|
-
if (message.user_state !== "") {
|
|
121
|
-
obj.user_state = message.user_state;
|
|
122
|
-
}
|
|
123
|
-
if (message.father_name_dialog !== false) {
|
|
124
|
-
obj.father_name_dialog = message.father_name_dialog;
|
|
125
|
-
}
|
|
126
|
-
if (message.current_step !== "") {
|
|
127
|
-
obj.current_step = message.current_step;
|
|
128
|
-
}
|
|
129
88
|
if (message.blocks?.length) {
|
|
130
89
|
obj.blocks = message.blocks.map((e) => exports.Block.toJSON(e));
|
|
131
90
|
}
|
|
@@ -136,9 +95,6 @@ exports.getDashboardResponse = {
|
|
|
136
95
|
},
|
|
137
96
|
fromPartial(object) {
|
|
138
97
|
const message = createBasegetDashboardResponse();
|
|
139
|
-
message.user_state = object.user_state ?? "";
|
|
140
|
-
message.father_name_dialog = object.father_name_dialog ?? false;
|
|
141
|
-
message.current_step = object.current_step ?? "";
|
|
142
98
|
message.blocks = object.blocks?.map((e) => exports.Block.fromPartial(e)) || [];
|
|
143
99
|
return message;
|
|
144
100
|
},
|
|
@@ -50,7 +50,7 @@ exports.getDashboardMainCardRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetDashboardMainCardResponse() {
|
|
53
|
-
return { block_name: "", block_code: "", block_data: undefined };
|
|
53
|
+
return { block_name: "", block_code: "", block_data: undefined, user_state: "" };
|
|
54
54
|
}
|
|
55
55
|
exports.getDashboardMainCardResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -63,6 +63,9 @@ exports.getDashboardMainCardResponse = {
|
|
|
63
63
|
if (message.block_data !== undefined) {
|
|
64
64
|
exports.MainCardData.encode(message.block_data, writer.uint32(26).fork()).ldelim();
|
|
65
65
|
}
|
|
66
|
+
if (message.user_state !== "") {
|
|
67
|
+
writer.uint32(34).string(message.user_state);
|
|
68
|
+
}
|
|
66
69
|
return writer;
|
|
67
70
|
},
|
|
68
71
|
decode(input, length) {
|
|
@@ -90,6 +93,12 @@ exports.getDashboardMainCardResponse = {
|
|
|
90
93
|
}
|
|
91
94
|
message.block_data = exports.MainCardData.decode(reader, reader.uint32());
|
|
92
95
|
continue;
|
|
96
|
+
case 4:
|
|
97
|
+
if (tag !== 34) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.user_state = reader.string();
|
|
101
|
+
continue;
|
|
93
102
|
}
|
|
94
103
|
if ((tag & 7) === 4 || tag === 0) {
|
|
95
104
|
break;
|
|
@@ -103,6 +112,7 @@ exports.getDashboardMainCardResponse = {
|
|
|
103
112
|
block_name: isSet(object.block_name) ? globalThis.String(object.block_name) : "",
|
|
104
113
|
block_code: isSet(object.block_code) ? globalThis.String(object.block_code) : "",
|
|
105
114
|
block_data: isSet(object.block_data) ? exports.MainCardData.fromJSON(object.block_data) : undefined,
|
|
115
|
+
user_state: isSet(object.user_state) ? globalThis.String(object.user_state) : "",
|
|
106
116
|
};
|
|
107
117
|
},
|
|
108
118
|
toJSON(message) {
|
|
@@ -116,6 +126,9 @@ exports.getDashboardMainCardResponse = {
|
|
|
116
126
|
if (message.block_data !== undefined) {
|
|
117
127
|
obj.block_data = exports.MainCardData.toJSON(message.block_data);
|
|
118
128
|
}
|
|
129
|
+
if (message.user_state !== "") {
|
|
130
|
+
obj.user_state = message.user_state;
|
|
131
|
+
}
|
|
119
132
|
return obj;
|
|
120
133
|
},
|
|
121
134
|
create(base) {
|
|
@@ -128,6 +141,7 @@ exports.getDashboardMainCardResponse = {
|
|
|
128
141
|
message.block_data = (object.block_data !== undefined && object.block_data !== null)
|
|
129
142
|
? exports.MainCardData.fromPartial(object.block_data)
|
|
130
143
|
: undefined;
|
|
144
|
+
message.user_state = object.user_state ?? "";
|
|
131
145
|
return message;
|
|
132
146
|
},
|
|
133
147
|
};
|