@stashfin/grpc 1.2.43 → 1.2.44

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,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.43",
3
+ "version": "1.2.44",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -5,6 +5,7 @@ export interface sendOtpRequest {
5
5
  device_id: string;
6
6
  }
7
7
  export interface sendOtpRespone {
8
+ ismpin: boolean;
8
9
  token: string;
9
10
  is_device_registered: boolean;
10
11
  }
@@ -79,10 +79,13 @@ exports.sendOtpRequest = {
79
79
  },
80
80
  };
81
81
  function createBasesendOtpRespone() {
82
- return { token: "", is_device_registered: false };
82
+ return { ismpin: false, token: "", is_device_registered: false };
83
83
  }
84
84
  exports.sendOtpRespone = {
85
85
  encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.ismpin !== false) {
87
+ writer.uint32(8).bool(message.ismpin);
88
+ }
86
89
  if (message.token !== "") {
87
90
  writer.uint32(18).string(message.token);
88
91
  }
@@ -98,6 +101,12 @@ exports.sendOtpRespone = {
98
101
  while (reader.pos < end) {
99
102
  const tag = reader.uint32();
100
103
  switch (tag >>> 3) {
104
+ case 1:
105
+ if (tag !== 8) {
106
+ break;
107
+ }
108
+ message.ismpin = reader.bool();
109
+ continue;
101
110
  case 2:
102
111
  if (tag !== 18) {
103
112
  break;
@@ -120,6 +129,7 @@ exports.sendOtpRespone = {
120
129
  },
121
130
  fromJSON(object) {
122
131
  return {
132
+ ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
123
133
  token: isSet(object.token) ? globalThis.String(object.token) : "",
124
134
  is_device_registered: isSet(object.is_device_registered)
125
135
  ? globalThis.Boolean(object.is_device_registered)
@@ -128,6 +138,9 @@ exports.sendOtpRespone = {
128
138
  },
129
139
  toJSON(message) {
130
140
  const obj = {};
141
+ if (message.ismpin !== false) {
142
+ obj.ismpin = message.ismpin;
143
+ }
131
144
  if (message.token !== "") {
132
145
  obj.token = message.token;
133
146
  }
@@ -141,6 +154,7 @@ exports.sendOtpRespone = {
141
154
  },
142
155
  fromPartial(object) {
143
156
  const message = createBasesendOtpRespone();
157
+ message.ismpin = object.ismpin ?? false;
144
158
  message.token = object.token ?? "";
145
159
  message.is_device_registered = object.is_device_registered ?? false;
146
160
  return message;
@@ -8,6 +8,7 @@ export interface verifyOtpReqeust {
8
8
  tnc: boolean;
9
9
  }
10
10
  export interface verifyOtpResponse {
11
+ ismpin: boolean;
11
12
  jwttoken: string;
12
13
  }
13
14
  export declare const verifyOtpReqeust: {
@@ -121,10 +121,13 @@ exports.verifyOtpReqeust = {
121
121
  },
122
122
  };
123
123
  function createBaseverifyOtpResponse() {
124
- return { jwttoken: "" };
124
+ return { ismpin: false, jwttoken: "" };
125
125
  }
126
126
  exports.verifyOtpResponse = {
127
127
  encode(message, writer = minimal_1.default.Writer.create()) {
128
+ if (message.ismpin !== false) {
129
+ writer.uint32(8).bool(message.ismpin);
130
+ }
128
131
  if (message.jwttoken !== "") {
129
132
  writer.uint32(18).string(message.jwttoken);
130
133
  }
@@ -137,6 +140,12 @@ exports.verifyOtpResponse = {
137
140
  while (reader.pos < end) {
138
141
  const tag = reader.uint32();
139
142
  switch (tag >>> 3) {
143
+ case 1:
144
+ if (tag !== 8) {
145
+ break;
146
+ }
147
+ message.ismpin = reader.bool();
148
+ continue;
140
149
  case 2:
141
150
  if (tag !== 18) {
142
151
  break;
@@ -152,10 +161,16 @@ exports.verifyOtpResponse = {
152
161
  return message;
153
162
  },
154
163
  fromJSON(object) {
155
- return { jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "" };
164
+ return {
165
+ ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
166
+ jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "",
167
+ };
156
168
  },
157
169
  toJSON(message) {
158
170
  const obj = {};
171
+ if (message.ismpin !== false) {
172
+ obj.ismpin = message.ismpin;
173
+ }
159
174
  if (message.jwttoken !== "") {
160
175
  obj.jwttoken = message.jwttoken;
161
176
  }
@@ -166,6 +181,7 @@ exports.verifyOtpResponse = {
166
181
  },
167
182
  fromPartial(object) {
168
183
  const message = createBaseverifyOtpResponse();
184
+ message.ismpin = object.ismpin ?? false;
169
185
  message.jwttoken = object.jwttoken ?? "";
170
186
  return message;
171
187
  },