@stashfin/grpc 1.2.71 → 1.2.72
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
|
@@ -9,13 +9,13 @@ export interface getCustomerProfileResponse {
|
|
|
9
9
|
profile_image: string;
|
|
10
10
|
email: string;
|
|
11
11
|
profile_completion_status: number;
|
|
12
|
-
action_type: string;
|
|
13
12
|
details: ProfileDetail[];
|
|
14
13
|
}
|
|
15
14
|
export interface ProfileDetail {
|
|
16
15
|
title: string;
|
|
17
16
|
status: boolean;
|
|
18
17
|
redirect_url: string;
|
|
18
|
+
action_type: string;
|
|
19
19
|
}
|
|
20
20
|
export declare const getCustomerProfileRequest: {
|
|
21
21
|
encode(_: getCustomerProfileRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -57,7 +57,6 @@ function createBasegetCustomerProfileResponse() {
|
|
|
57
57
|
profile_image: "",
|
|
58
58
|
email: "",
|
|
59
59
|
profile_completion_status: 0,
|
|
60
|
-
action_type: "",
|
|
61
60
|
details: [],
|
|
62
61
|
};
|
|
63
62
|
}
|
|
@@ -81,11 +80,8 @@ exports.getCustomerProfileResponse = {
|
|
|
81
80
|
if (message.profile_completion_status !== 0) {
|
|
82
81
|
writer.uint32(48).int32(message.profile_completion_status);
|
|
83
82
|
}
|
|
84
|
-
if (message.action_type !== "") {
|
|
85
|
-
writer.uint32(58).string(message.action_type);
|
|
86
|
-
}
|
|
87
83
|
for (const v of message.details) {
|
|
88
|
-
exports.ProfileDetail.encode(v, writer.uint32(
|
|
84
|
+
exports.ProfileDetail.encode(v, writer.uint32(58).fork()).ldelim();
|
|
89
85
|
}
|
|
90
86
|
return writer;
|
|
91
87
|
},
|
|
@@ -136,12 +132,6 @@ exports.getCustomerProfileResponse = {
|
|
|
136
132
|
if (tag !== 58) {
|
|
137
133
|
break;
|
|
138
134
|
}
|
|
139
|
-
message.action_type = reader.string();
|
|
140
|
-
continue;
|
|
141
|
-
case 8:
|
|
142
|
-
if (tag !== 66) {
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
135
|
message.details.push(exports.ProfileDetail.decode(reader, reader.uint32()));
|
|
146
136
|
continue;
|
|
147
137
|
}
|
|
@@ -162,7 +152,6 @@ exports.getCustomerProfileResponse = {
|
|
|
162
152
|
profile_completion_status: isSet(object.profile_completion_status)
|
|
163
153
|
? globalThis.Number(object.profile_completion_status)
|
|
164
154
|
: 0,
|
|
165
|
-
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
|
|
166
155
|
details: globalThis.Array.isArray(object?.details)
|
|
167
156
|
? object.details.map((e) => exports.ProfileDetail.fromJSON(e))
|
|
168
157
|
: [],
|
|
@@ -188,9 +177,6 @@ exports.getCustomerProfileResponse = {
|
|
|
188
177
|
if (message.profile_completion_status !== 0) {
|
|
189
178
|
obj.profile_completion_status = Math.round(message.profile_completion_status);
|
|
190
179
|
}
|
|
191
|
-
if (message.action_type !== "") {
|
|
192
|
-
obj.action_type = message.action_type;
|
|
193
|
-
}
|
|
194
180
|
if (message.details?.length) {
|
|
195
181
|
obj.details = message.details.map((e) => exports.ProfileDetail.toJSON(e));
|
|
196
182
|
}
|
|
@@ -207,13 +193,12 @@ exports.getCustomerProfileResponse = {
|
|
|
207
193
|
message.profile_image = object.profile_image ?? "";
|
|
208
194
|
message.email = object.email ?? "";
|
|
209
195
|
message.profile_completion_status = object.profile_completion_status ?? 0;
|
|
210
|
-
message.action_type = object.action_type ?? "";
|
|
211
196
|
message.details = object.details?.map((e) => exports.ProfileDetail.fromPartial(e)) || [];
|
|
212
197
|
return message;
|
|
213
198
|
},
|
|
214
199
|
};
|
|
215
200
|
function createBaseProfileDetail() {
|
|
216
|
-
return { title: "", status: false, redirect_url: "" };
|
|
201
|
+
return { title: "", status: false, redirect_url: "", action_type: "" };
|
|
217
202
|
}
|
|
218
203
|
exports.ProfileDetail = {
|
|
219
204
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -226,6 +211,9 @@ exports.ProfileDetail = {
|
|
|
226
211
|
if (message.redirect_url !== "") {
|
|
227
212
|
writer.uint32(26).string(message.redirect_url);
|
|
228
213
|
}
|
|
214
|
+
if (message.action_type !== "") {
|
|
215
|
+
writer.uint32(34).string(message.action_type);
|
|
216
|
+
}
|
|
229
217
|
return writer;
|
|
230
218
|
},
|
|
231
219
|
decode(input, length) {
|
|
@@ -253,6 +241,12 @@ exports.ProfileDetail = {
|
|
|
253
241
|
}
|
|
254
242
|
message.redirect_url = reader.string();
|
|
255
243
|
continue;
|
|
244
|
+
case 4:
|
|
245
|
+
if (tag !== 34) {
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
message.action_type = reader.string();
|
|
249
|
+
continue;
|
|
256
250
|
}
|
|
257
251
|
if ((tag & 7) === 4 || tag === 0) {
|
|
258
252
|
break;
|
|
@@ -266,6 +260,7 @@ exports.ProfileDetail = {
|
|
|
266
260
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
267
261
|
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
268
262
|
redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "",
|
|
263
|
+
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
|
|
269
264
|
};
|
|
270
265
|
},
|
|
271
266
|
toJSON(message) {
|
|
@@ -279,6 +274,9 @@ exports.ProfileDetail = {
|
|
|
279
274
|
if (message.redirect_url !== "") {
|
|
280
275
|
obj.redirect_url = message.redirect_url;
|
|
281
276
|
}
|
|
277
|
+
if (message.action_type !== "") {
|
|
278
|
+
obj.action_type = message.action_type;
|
|
279
|
+
}
|
|
282
280
|
return obj;
|
|
283
281
|
},
|
|
284
282
|
create(base) {
|
|
@@ -289,6 +287,7 @@ exports.ProfileDetail = {
|
|
|
289
287
|
message.title = object.title ?? "";
|
|
290
288
|
message.status = object.status ?? false;
|
|
291
289
|
message.redirect_url = object.redirect_url ?? "";
|
|
290
|
+
message.action_type = object.action_type ?? "";
|
|
292
291
|
return message;
|
|
293
292
|
},
|
|
294
293
|
};
|