@stashfin/grpc 1.2.465 → 1.2.467

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.465",
3
+ "version": "1.2.467",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,7 +1,6 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "eqxcustomers.getcustomerbyid";
3
3
  export interface getCustomerByIdRequest {
4
- id: number;
5
4
  }
6
5
  export interface getCustomerByIdResponse {
7
6
  id: number;
@@ -16,12 +15,12 @@ export interface getCustomerByIdResponse {
16
15
  refferal_code?: string | undefined;
17
16
  }
18
17
  export declare const getCustomerByIdRequest: {
19
- encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
18
+ encode(_: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
20
19
  decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerByIdRequest;
21
- fromJSON(object: any): getCustomerByIdRequest;
22
- toJSON(message: getCustomerByIdRequest): unknown;
20
+ fromJSON(_: any): getCustomerByIdRequest;
21
+ toJSON(_: getCustomerByIdRequest): unknown;
23
22
  create<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(base?: I): getCustomerByIdRequest;
24
- fromPartial<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(object: I): getCustomerByIdRequest;
23
+ fromPartial<I extends Exact<DeepPartial<getCustomerByIdRequest>, I>>(_: I): getCustomerByIdRequest;
25
24
  };
26
25
  export declare const getCustomerByIdResponse: {
27
26
  encode(message: getCustomerByIdResponse, writer?: _m0.Writer): _m0.Writer;
@@ -13,13 +13,10 @@ exports.getCustomerByIdResponse = exports.getCustomerByIdRequest = exports.proto
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "eqxcustomers.getcustomerbyid";
15
15
  function createBasegetCustomerByIdRequest() {
16
- return { id: 0 };
16
+ return {};
17
17
  }
18
18
  exports.getCustomerByIdRequest = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.id !== 0) {
21
- writer.uint32(8).int32(message.id);
22
- }
19
+ encode(_, writer = minimal_1.default.Writer.create()) {
23
20
  return writer;
24
21
  },
25
22
  decode(input, length) {
@@ -29,12 +26,6 @@ exports.getCustomerByIdRequest = {
29
26
  while (reader.pos < end) {
30
27
  const tag = reader.uint32();
31
28
  switch (tag >>> 3) {
32
- case 1:
33
- if (tag !== 8) {
34
- break;
35
- }
36
- message.id = reader.int32();
37
- continue;
38
29
  }
39
30
  if ((tag & 7) === 4 || tag === 0) {
40
31
  break;
@@ -43,22 +34,18 @@ exports.getCustomerByIdRequest = {
43
34
  }
44
35
  return message;
45
36
  },
46
- fromJSON(object) {
47
- return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
37
+ fromJSON(_) {
38
+ return {};
48
39
  },
49
- toJSON(message) {
40
+ toJSON(_) {
50
41
  const obj = {};
51
- if (message.id !== 0) {
52
- obj.id = Math.round(message.id);
53
- }
54
42
  return obj;
55
43
  },
56
44
  create(base) {
57
45
  return exports.getCustomerByIdRequest.fromPartial(base ?? {});
58
46
  },
59
- fromPartial(object) {
47
+ fromPartial(_) {
60
48
  const message = createBasegetCustomerByIdRequest();
61
- message.id = object.id ?? 0;
62
49
  return message;
63
50
  },
64
51
  };
@@ -15,6 +15,7 @@ export interface addAccountRequest {
15
15
  status: string;
16
16
  is_primary?: string | undefined;
17
17
  is_active?: string | undefined;
18
+ profile_id: string;
18
19
  }
19
20
  export interface addAccountResponse {
20
21
  acc_number: string;
@@ -28,6 +28,7 @@ function createBaseaddAccountRequest() {
28
28
  status: "",
29
29
  is_primary: undefined,
30
30
  is_active: undefined,
31
+ profile_id: "",
31
32
  };
32
33
  }
33
34
  exports.addAccountRequest = {
@@ -74,6 +75,9 @@ exports.addAccountRequest = {
74
75
  if (message.is_active !== undefined) {
75
76
  writer.uint32(114).string(message.is_active);
76
77
  }
78
+ if (message.profile_id !== "") {
79
+ writer.uint32(122).string(message.profile_id);
80
+ }
77
81
  return writer;
78
82
  },
79
83
  decode(input, length) {
@@ -167,6 +171,12 @@ exports.addAccountRequest = {
167
171
  }
168
172
  message.is_active = reader.string();
169
173
  continue;
174
+ case 15:
175
+ if (tag !== 122) {
176
+ break;
177
+ }
178
+ message.profile_id = reader.string();
179
+ continue;
170
180
  }
171
181
  if ((tag & 7) === 4 || tag === 0) {
172
182
  break;
@@ -191,6 +201,7 @@ exports.addAccountRequest = {
191
201
  status: isSet(object.status) ? globalThis.String(object.status) : "",
192
202
  is_primary: isSet(object.is_primary) ? globalThis.String(object.is_primary) : undefined,
193
203
  is_active: isSet(object.is_active) ? globalThis.String(object.is_active) : undefined,
204
+ profile_id: isSet(object.profile_id) ? globalThis.String(object.profile_id) : "",
194
205
  };
195
206
  },
196
207
  toJSON(message) {
@@ -237,6 +248,9 @@ exports.addAccountRequest = {
237
248
  if (message.is_active !== undefined) {
238
249
  obj.is_active = message.is_active;
239
250
  }
251
+ if (message.profile_id !== "") {
252
+ obj.profile_id = message.profile_id;
253
+ }
240
254
  return obj;
241
255
  },
242
256
  create(base) {
@@ -258,6 +272,7 @@ exports.addAccountRequest = {
258
272
  message.status = object.status ?? "";
259
273
  message.is_primary = object.is_primary ?? undefined;
260
274
  message.is_active = object.is_active ?? undefined;
275
+ message.profile_id = object.profile_id ?? "";
261
276
  return message;
262
277
  },
263
278
  };
@@ -136,13 +136,13 @@ exports.checkTransactionStatusResponse = {
136
136
  writer.uint32(42).string(message.payee_vpa);
137
137
  }
138
138
  if (message.payer_name !== "") {
139
- writer.uint32(58).string(message.payer_name);
139
+ writer.uint32(50).string(message.payer_name);
140
140
  }
141
141
  if (message.payer_vpa !== "") {
142
- writer.uint32(66).string(message.payer_vpa);
142
+ writer.uint32(58).string(message.payer_vpa);
143
143
  }
144
144
  if (message.message !== "") {
145
- writer.uint32(74).string(message.message);
145
+ writer.uint32(66).string(message.message);
146
146
  }
147
147
  return writer;
148
148
  },
@@ -183,20 +183,20 @@ exports.checkTransactionStatusResponse = {
183
183
  }
184
184
  message.payee_vpa = reader.string();
185
185
  continue;
186
- case 7:
187
- if (tag !== 58) {
186
+ case 6:
187
+ if (tag !== 50) {
188
188
  break;
189
189
  }
190
190
  message.payer_name = reader.string();
191
191
  continue;
192
- case 8:
193
- if (tag !== 66) {
192
+ case 7:
193
+ if (tag !== 58) {
194
194
  break;
195
195
  }
196
196
  message.payer_vpa = reader.string();
197
197
  continue;
198
- case 9:
199
- if (tag !== 74) {
198
+ case 8:
199
+ if (tag !== 66) {
200
200
  break;
201
201
  }
202
202
  message.message = reader.string();
@@ -4,6 +4,7 @@ export interface updateDeviceBindingRequest {
4
4
  device_id: string;
5
5
  sim_no: string;
6
6
  sim_name?: string | undefined;
7
+ mobile: string;
7
8
  status: string;
8
9
  }
9
10
  export interface updateDeviceBindingResponse {
@@ -13,7 +13,7 @@ exports.updateDeviceBindingResponse = exports.updateDeviceBindingRequest = expor
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.updateDeviceBinding";
15
15
  function createBaseupdateDeviceBindingRequest() {
16
- return { device_id: "", sim_no: "", sim_name: undefined, status: "" };
16
+ return { device_id: "", sim_no: "", sim_name: undefined, mobile: "", status: "" };
17
17
  }
18
18
  exports.updateDeviceBindingRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -26,8 +26,11 @@ exports.updateDeviceBindingRequest = {
26
26
  if (message.sim_name !== undefined) {
27
27
  writer.uint32(26).string(message.sim_name);
28
28
  }
29
+ if (message.mobile !== "") {
30
+ writer.uint32(34).string(message.mobile);
31
+ }
29
32
  if (message.status !== "") {
30
- writer.uint32(34).string(message.status);
33
+ writer.uint32(42).string(message.status);
31
34
  }
32
35
  return writer;
33
36
  },
@@ -60,6 +63,12 @@ exports.updateDeviceBindingRequest = {
60
63
  if (tag !== 34) {
61
64
  break;
62
65
  }
66
+ message.mobile = reader.string();
67
+ continue;
68
+ case 5:
69
+ if (tag !== 42) {
70
+ break;
71
+ }
63
72
  message.status = reader.string();
64
73
  continue;
65
74
  }
@@ -75,6 +84,7 @@ exports.updateDeviceBindingRequest = {
75
84
  device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
76
85
  sim_no: isSet(object.sim_no) ? globalThis.String(object.sim_no) : "",
77
86
  sim_name: isSet(object.sim_name) ? globalThis.String(object.sim_name) : undefined,
87
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
78
88
  status: isSet(object.status) ? globalThis.String(object.status) : "",
79
89
  };
80
90
  },
@@ -89,6 +99,9 @@ exports.updateDeviceBindingRequest = {
89
99
  if (message.sim_name !== undefined) {
90
100
  obj.sim_name = message.sim_name;
91
101
  }
102
+ if (message.mobile !== "") {
103
+ obj.mobile = message.mobile;
104
+ }
92
105
  if (message.status !== "") {
93
106
  obj.status = message.status;
94
107
  }
@@ -102,6 +115,7 @@ exports.updateDeviceBindingRequest = {
102
115
  message.device_id = object.device_id ?? "";
103
116
  message.sim_no = object.sim_no ?? "";
104
117
  message.sim_name = object.sim_name ?? undefined;
118
+ message.mobile = object.mobile ?? "";
105
119
  message.status = object.status ?? "";
106
120
  return message;
107
121
  },