@stashfin/grpc 1.2.100 → 1.2.101

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.100",
3
+ "version": "1.2.101",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -4,7 +4,7 @@ export interface forgotMpinRequest {
4
4
  mobile: string;
5
5
  }
6
6
  export interface forgotMpinResponse {
7
- id: number;
7
+ status: string;
8
8
  }
9
9
  export declare const forgotMpinRequest: {
10
10
  encode(message: forgotMpinRequest, writer?: _m0.Writer): _m0.Writer;
@@ -63,12 +63,12 @@ exports.forgotMpinRequest = {
63
63
  },
64
64
  };
65
65
  function createBaseforgotMpinResponse() {
66
- return { id: 0 };
66
+ return { status: "" };
67
67
  }
68
68
  exports.forgotMpinResponse = {
69
69
  encode(message, writer = minimal_1.default.Writer.create()) {
70
- if (message.id !== 0) {
71
- writer.uint32(8).int32(message.id);
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(message.status);
72
72
  }
73
73
  return writer;
74
74
  },
@@ -80,10 +80,10 @@ exports.forgotMpinResponse = {
80
80
  const tag = reader.uint32();
81
81
  switch (tag >>> 3) {
82
82
  case 1:
83
- if (tag !== 8) {
83
+ if (tag !== 10) {
84
84
  break;
85
85
  }
86
- message.id = reader.int32();
86
+ message.status = reader.string();
87
87
  continue;
88
88
  }
89
89
  if ((tag & 7) === 4 || tag === 0) {
@@ -94,12 +94,12 @@ exports.forgotMpinResponse = {
94
94
  return message;
95
95
  },
96
96
  fromJSON(object) {
97
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
97
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
98
98
  },
99
99
  toJSON(message) {
100
100
  const obj = {};
101
- if (message.id !== 0) {
102
- obj.id = Math.round(message.id);
101
+ if (message.status !== "") {
102
+ obj.status = message.status;
103
103
  }
104
104
  return obj;
105
105
  },
@@ -108,7 +108,7 @@ exports.forgotMpinResponse = {
108
108
  },
109
109
  fromPartial(object) {
110
110
  const message = createBaseforgotMpinResponse();
111
- message.id = object.id ?? 0;
111
+ message.status = object.status ?? "";
112
112
  return message;
113
113
  },
114
114
  };
@@ -4,7 +4,7 @@ export interface forgotMpinVerifyRequest {
4
4
  otp: string;
5
5
  }
6
6
  export interface forgotMpinVerifyResponse {
7
- success: boolean;
7
+ status: string;
8
8
  }
9
9
  export declare const forgotMpinVerifyRequest: {
10
10
  encode(message: forgotMpinVerifyRequest, writer?: _m0.Writer): _m0.Writer;
@@ -63,12 +63,12 @@ exports.forgotMpinVerifyRequest = {
63
63
  },
64
64
  };
65
65
  function createBaseforgotMpinVerifyResponse() {
66
- return { success: false };
66
+ return { status: "" };
67
67
  }
68
68
  exports.forgotMpinVerifyResponse = {
69
69
  encode(message, writer = minimal_1.default.Writer.create()) {
70
- if (message.success !== false) {
71
- writer.uint32(8).bool(message.success);
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(message.status);
72
72
  }
73
73
  return writer;
74
74
  },
@@ -80,10 +80,10 @@ exports.forgotMpinVerifyResponse = {
80
80
  const tag = reader.uint32();
81
81
  switch (tag >>> 3) {
82
82
  case 1:
83
- if (tag !== 8) {
83
+ if (tag !== 10) {
84
84
  break;
85
85
  }
86
- message.success = reader.bool();
86
+ message.status = reader.string();
87
87
  continue;
88
88
  }
89
89
  if ((tag & 7) === 4 || tag === 0) {
@@ -94,12 +94,12 @@ exports.forgotMpinVerifyResponse = {
94
94
  return message;
95
95
  },
96
96
  fromJSON(object) {
97
- return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
97
+ return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
98
98
  },
99
99
  toJSON(message) {
100
100
  const obj = {};
101
- if (message.success !== false) {
102
- obj.success = message.success;
101
+ if (message.status !== "") {
102
+ obj.status = message.status;
103
103
  }
104
104
  return obj;
105
105
  },
@@ -108,7 +108,7 @@ exports.forgotMpinVerifyResponse = {
108
108
  },
109
109
  fromPartial(object) {
110
110
  const message = createBaseforgotMpinVerifyResponse();
111
- message.success = object.success ?? false;
111
+ message.status = object.status ?? "";
112
112
  return message;
113
113
  },
114
114
  };