@stashfin/grpc 1.0.18 → 1.0.19
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/customer/setmpin.d.ts +2 -1
- package/ts/customer/setmpin.js +27 -11
package/package.json
CHANGED
package/ts/customer/setmpin.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customer.setmpin";
|
|
3
3
|
export interface request {
|
|
4
|
+
mobile: string;
|
|
4
5
|
mpin: string;
|
|
5
6
|
}
|
|
6
7
|
export interface response {
|
|
7
|
-
|
|
8
|
+
status: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const request: {
|
|
10
11
|
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
package/ts/customer/setmpin.js
CHANGED
|
@@ -13,12 +13,15 @@ exports.response = exports.request = exports.protobufPackage = void 0;
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customer.setmpin";
|
|
15
15
|
function createBaserequest() {
|
|
16
|
-
return { mpin: "" };
|
|
16
|
+
return { mobile: "", mpin: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.request = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mobile);
|
|
22
|
+
}
|
|
20
23
|
if (message.mpin !== "") {
|
|
21
|
-
writer.uint32(
|
|
24
|
+
writer.uint32(18).string(message.mpin);
|
|
22
25
|
}
|
|
23
26
|
return writer;
|
|
24
27
|
},
|
|
@@ -33,6 +36,12 @@ exports.request = {
|
|
|
33
36
|
if (tag !== 10) {
|
|
34
37
|
break;
|
|
35
38
|
}
|
|
39
|
+
message.mobile = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
36
45
|
message.mpin = reader.string();
|
|
37
46
|
continue;
|
|
38
47
|
}
|
|
@@ -44,10 +53,16 @@ exports.request = {
|
|
|
44
53
|
return message;
|
|
45
54
|
},
|
|
46
55
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
56
|
+
return {
|
|
57
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
58
|
+
mpin: isSet(object.mpin) ? globalThis.String(object.mpin) : "",
|
|
59
|
+
};
|
|
48
60
|
},
|
|
49
61
|
toJSON(message) {
|
|
50
62
|
const obj = {};
|
|
63
|
+
if (message.mobile !== "") {
|
|
64
|
+
obj.mobile = message.mobile;
|
|
65
|
+
}
|
|
51
66
|
if (message.mpin !== "") {
|
|
52
67
|
obj.mpin = message.mpin;
|
|
53
68
|
}
|
|
@@ -58,17 +73,18 @@ exports.request = {
|
|
|
58
73
|
},
|
|
59
74
|
fromPartial(object) {
|
|
60
75
|
const message = createBaserequest();
|
|
76
|
+
message.mobile = object.mobile ?? "";
|
|
61
77
|
message.mpin = object.mpin ?? "";
|
|
62
78
|
return message;
|
|
63
79
|
},
|
|
64
80
|
};
|
|
65
81
|
function createBaseresponse() {
|
|
66
|
-
return {
|
|
82
|
+
return { status: false };
|
|
67
83
|
}
|
|
68
84
|
exports.response = {
|
|
69
85
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.
|
|
71
|
-
writer.uint32(8).bool(message.
|
|
86
|
+
if (message.status !== false) {
|
|
87
|
+
writer.uint32(8).bool(message.status);
|
|
72
88
|
}
|
|
73
89
|
return writer;
|
|
74
90
|
},
|
|
@@ -83,7 +99,7 @@ exports.response = {
|
|
|
83
99
|
if (tag !== 8) {
|
|
84
100
|
break;
|
|
85
101
|
}
|
|
86
|
-
message.
|
|
102
|
+
message.status = reader.bool();
|
|
87
103
|
continue;
|
|
88
104
|
}
|
|
89
105
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -94,12 +110,12 @@ exports.response = {
|
|
|
94
110
|
return message;
|
|
95
111
|
},
|
|
96
112
|
fromJSON(object) {
|
|
97
|
-
return {
|
|
113
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
98
114
|
},
|
|
99
115
|
toJSON(message) {
|
|
100
116
|
const obj = {};
|
|
101
|
-
if (message.
|
|
102
|
-
obj.
|
|
117
|
+
if (message.status !== false) {
|
|
118
|
+
obj.status = message.status;
|
|
103
119
|
}
|
|
104
120
|
return obj;
|
|
105
121
|
},
|
|
@@ -108,7 +124,7 @@ exports.response = {
|
|
|
108
124
|
},
|
|
109
125
|
fromPartial(object) {
|
|
110
126
|
const message = createBaseresponse();
|
|
111
|
-
message.
|
|
127
|
+
message.status = object.status ?? false;
|
|
112
128
|
return message;
|
|
113
129
|
},
|
|
114
130
|
};
|