@stashfin/grpc 1.2.443 → 1.2.448

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.
@@ -1,381 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v1.181.0
5
- // protoc v3.20.3
6
- // source: customers/step2.proto
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.step2Response_Field = exports.step2Response = exports.Validation = exports.step2Request = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "customers.step2";
15
- function createBasestep2Request() {
16
- return { pincode: "", dob: "" };
17
- }
18
- exports.step2Request = {
19
- encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.pincode !== "") {
21
- writer.uint32(10).string(message.pincode);
22
- }
23
- if (message.dob !== "") {
24
- writer.uint32(18).string(message.dob);
25
- }
26
- return writer;
27
- },
28
- decode(input, length) {
29
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
- let end = length === undefined ? reader.len : reader.pos + length;
31
- const message = createBasestep2Request();
32
- while (reader.pos < end) {
33
- const tag = reader.uint32();
34
- switch (tag >>> 3) {
35
- case 1:
36
- if (tag !== 10) {
37
- break;
38
- }
39
- message.pincode = reader.string();
40
- continue;
41
- case 2:
42
- if (tag !== 18) {
43
- break;
44
- }
45
- message.dob = reader.string();
46
- continue;
47
- }
48
- if ((tag & 7) === 4 || tag === 0) {
49
- break;
50
- }
51
- reader.skipType(tag & 7);
52
- }
53
- return message;
54
- },
55
- fromJSON(object) {
56
- return {
57
- pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
58
- dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
59
- };
60
- },
61
- toJSON(message) {
62
- const obj = {};
63
- if (message.pincode !== "") {
64
- obj.pincode = message.pincode;
65
- }
66
- if (message.dob !== "") {
67
- obj.dob = message.dob;
68
- }
69
- return obj;
70
- },
71
- create(base) {
72
- return exports.step2Request.fromPartial(base ?? {});
73
- },
74
- fromPartial(object) {
75
- const message = createBasestep2Request();
76
- message.pincode = object.pincode ?? "";
77
- message.dob = object.dob ?? "";
78
- return message;
79
- },
80
- };
81
- function createBaseValidation() {
82
- return { key: "", value: "", message: "" };
83
- }
84
- exports.Validation = {
85
- encode(message, writer = minimal_1.default.Writer.create()) {
86
- if (message.key !== "") {
87
- writer.uint32(10).string(message.key);
88
- }
89
- if (message.value !== "") {
90
- writer.uint32(18).string(message.value);
91
- }
92
- if (message.message !== "") {
93
- writer.uint32(26).string(message.message);
94
- }
95
- return writer;
96
- },
97
- decode(input, length) {
98
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
99
- let end = length === undefined ? reader.len : reader.pos + length;
100
- const message = createBaseValidation();
101
- while (reader.pos < end) {
102
- const tag = reader.uint32();
103
- switch (tag >>> 3) {
104
- case 1:
105
- if (tag !== 10) {
106
- break;
107
- }
108
- message.key = reader.string();
109
- continue;
110
- case 2:
111
- if (tag !== 18) {
112
- break;
113
- }
114
- message.value = reader.string();
115
- continue;
116
- case 3:
117
- if (tag !== 26) {
118
- break;
119
- }
120
- message.message = reader.string();
121
- continue;
122
- }
123
- if ((tag & 7) === 4 || tag === 0) {
124
- break;
125
- }
126
- reader.skipType(tag & 7);
127
- }
128
- return message;
129
- },
130
- fromJSON(object) {
131
- return {
132
- key: isSet(object.key) ? globalThis.String(object.key) : "",
133
- value: isSet(object.value) ? globalThis.String(object.value) : "",
134
- message: isSet(object.message) ? globalThis.String(object.message) : "",
135
- };
136
- },
137
- toJSON(message) {
138
- const obj = {};
139
- if (message.key !== "") {
140
- obj.key = message.key;
141
- }
142
- if (message.value !== "") {
143
- obj.value = message.value;
144
- }
145
- if (message.message !== "") {
146
- obj.message = message.message;
147
- }
148
- return obj;
149
- },
150
- create(base) {
151
- return exports.Validation.fromPartial(base ?? {});
152
- },
153
- fromPartial(object) {
154
- const message = createBaseValidation();
155
- message.key = object.key ?? "";
156
- message.value = object.value ?? "";
157
- message.message = object.message ?? "";
158
- return message;
159
- },
160
- };
161
- function createBasestep2Response() {
162
- return { page: "", type: "", button_text: "", data: [] };
163
- }
164
- exports.step2Response = {
165
- encode(message, writer = minimal_1.default.Writer.create()) {
166
- if (message.page !== "") {
167
- writer.uint32(10).string(message.page);
168
- }
169
- if (message.type !== "") {
170
- writer.uint32(18).string(message.type);
171
- }
172
- if (message.button_text !== "") {
173
- writer.uint32(26).string(message.button_text);
174
- }
175
- for (const v of message.data) {
176
- exports.step2Response_Field.encode(v, writer.uint32(34).fork()).ldelim();
177
- }
178
- return writer;
179
- },
180
- decode(input, length) {
181
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
182
- let end = length === undefined ? reader.len : reader.pos + length;
183
- const message = createBasestep2Response();
184
- while (reader.pos < end) {
185
- const tag = reader.uint32();
186
- switch (tag >>> 3) {
187
- case 1:
188
- if (tag !== 10) {
189
- break;
190
- }
191
- message.page = reader.string();
192
- continue;
193
- case 2:
194
- if (tag !== 18) {
195
- break;
196
- }
197
- message.type = reader.string();
198
- continue;
199
- case 3:
200
- if (tag !== 26) {
201
- break;
202
- }
203
- message.button_text = reader.string();
204
- continue;
205
- case 4:
206
- if (tag !== 34) {
207
- break;
208
- }
209
- message.data.push(exports.step2Response_Field.decode(reader, reader.uint32()));
210
- continue;
211
- }
212
- if ((tag & 7) === 4 || tag === 0) {
213
- break;
214
- }
215
- reader.skipType(tag & 7);
216
- }
217
- return message;
218
- },
219
- fromJSON(object) {
220
- return {
221
- page: isSet(object.page) ? globalThis.String(object.page) : "",
222
- type: isSet(object.type) ? globalThis.String(object.type) : "",
223
- button_text: isSet(object.button_text) ? globalThis.String(object.button_text) : "",
224
- data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.step2Response_Field.fromJSON(e)) : [],
225
- };
226
- },
227
- toJSON(message) {
228
- const obj = {};
229
- if (message.page !== "") {
230
- obj.page = message.page;
231
- }
232
- if (message.type !== "") {
233
- obj.type = message.type;
234
- }
235
- if (message.button_text !== "") {
236
- obj.button_text = message.button_text;
237
- }
238
- if (message.data?.length) {
239
- obj.data = message.data.map((e) => exports.step2Response_Field.toJSON(e));
240
- }
241
- return obj;
242
- },
243
- create(base) {
244
- return exports.step2Response.fromPartial(base ?? {});
245
- },
246
- fromPartial(object) {
247
- const message = createBasestep2Response();
248
- message.page = object.page ?? "";
249
- message.type = object.type ?? "";
250
- message.button_text = object.button_text ?? "";
251
- message.data = object.data?.map((e) => exports.step2Response_Field.fromPartial(e)) || [];
252
- return message;
253
- },
254
- };
255
- function createBasestep2Response_Field() {
256
- return { label: "", key: "", input_type: "", data_type: "", icon: "", validations: [] };
257
- }
258
- exports.step2Response_Field = {
259
- encode(message, writer = minimal_1.default.Writer.create()) {
260
- if (message.label !== "") {
261
- writer.uint32(10).string(message.label);
262
- }
263
- if (message.key !== "") {
264
- writer.uint32(18).string(message.key);
265
- }
266
- if (message.input_type !== "") {
267
- writer.uint32(26).string(message.input_type);
268
- }
269
- if (message.data_type !== "") {
270
- writer.uint32(34).string(message.data_type);
271
- }
272
- if (message.icon !== "") {
273
- writer.uint32(42).string(message.icon);
274
- }
275
- for (const v of message.validations) {
276
- exports.Validation.encode(v, writer.uint32(58).fork()).ldelim();
277
- }
278
- return writer;
279
- },
280
- decode(input, length) {
281
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
282
- let end = length === undefined ? reader.len : reader.pos + length;
283
- const message = createBasestep2Response_Field();
284
- while (reader.pos < end) {
285
- const tag = reader.uint32();
286
- switch (tag >>> 3) {
287
- case 1:
288
- if (tag !== 10) {
289
- break;
290
- }
291
- message.label = reader.string();
292
- continue;
293
- case 2:
294
- if (tag !== 18) {
295
- break;
296
- }
297
- message.key = reader.string();
298
- continue;
299
- case 3:
300
- if (tag !== 26) {
301
- break;
302
- }
303
- message.input_type = reader.string();
304
- continue;
305
- case 4:
306
- if (tag !== 34) {
307
- break;
308
- }
309
- message.data_type = reader.string();
310
- continue;
311
- case 5:
312
- if (tag !== 42) {
313
- break;
314
- }
315
- message.icon = reader.string();
316
- continue;
317
- case 7:
318
- if (tag !== 58) {
319
- break;
320
- }
321
- message.validations.push(exports.Validation.decode(reader, reader.uint32()));
322
- continue;
323
- }
324
- if ((tag & 7) === 4 || tag === 0) {
325
- break;
326
- }
327
- reader.skipType(tag & 7);
328
- }
329
- return message;
330
- },
331
- fromJSON(object) {
332
- return {
333
- label: isSet(object.label) ? globalThis.String(object.label) : "",
334
- key: isSet(object.key) ? globalThis.String(object.key) : "",
335
- input_type: isSet(object.input_type) ? globalThis.String(object.input_type) : "",
336
- data_type: isSet(object.data_type) ? globalThis.String(object.data_type) : "",
337
- icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
338
- validations: globalThis.Array.isArray(object?.validations)
339
- ? object.validations.map((e) => exports.Validation.fromJSON(e))
340
- : [],
341
- };
342
- },
343
- toJSON(message) {
344
- const obj = {};
345
- if (message.label !== "") {
346
- obj.label = message.label;
347
- }
348
- if (message.key !== "") {
349
- obj.key = message.key;
350
- }
351
- if (message.input_type !== "") {
352
- obj.input_type = message.input_type;
353
- }
354
- if (message.data_type !== "") {
355
- obj.data_type = message.data_type;
356
- }
357
- if (message.icon !== "") {
358
- obj.icon = message.icon;
359
- }
360
- if (message.validations?.length) {
361
- obj.validations = message.validations.map((e) => exports.Validation.toJSON(e));
362
- }
363
- return obj;
364
- },
365
- create(base) {
366
- return exports.step2Response_Field.fromPartial(base ?? {});
367
- },
368
- fromPartial(object) {
369
- const message = createBasestep2Response_Field();
370
- message.label = object.label ?? "";
371
- message.key = object.key ?? "";
372
- message.input_type = object.input_type ?? "";
373
- message.data_type = object.data_type ?? "";
374
- message.icon = object.icon ?? "";
375
- message.validations = object.validations?.map((e) => exports.Validation.fromPartial(e)) || [];
376
- return message;
377
- },
378
- };
379
- function isSet(value) {
380
- return value !== null && value !== undefined;
381
- }
@@ -1,68 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "customers.step7";
3
- export interface step7Request {
4
- bank_account_number: string;
5
- ifsc_code: string;
6
- }
7
- export interface Validation {
8
- key: string;
9
- value: string;
10
- message: string;
11
- }
12
- export interface step7Response {
13
- page: string;
14
- type: string;
15
- button_text: string;
16
- data: step7Response_Field[];
17
- }
18
- export interface step7Response_Field {
19
- label: string;
20
- key: string;
21
- input_type: string;
22
- data_type: string;
23
- icon: string;
24
- validations: Validation[];
25
- }
26
- export declare const step7Request: {
27
- encode(message: step7Request, writer?: _m0.Writer): _m0.Writer;
28
- decode(input: _m0.Reader | Uint8Array, length?: number): step7Request;
29
- fromJSON(object: any): step7Request;
30
- toJSON(message: step7Request): unknown;
31
- create<I extends Exact<DeepPartial<step7Request>, I>>(base?: I): step7Request;
32
- fromPartial<I extends Exact<DeepPartial<step7Request>, I>>(object: I): step7Request;
33
- };
34
- export declare const Validation: {
35
- encode(message: Validation, writer?: _m0.Writer): _m0.Writer;
36
- decode(input: _m0.Reader | Uint8Array, length?: number): Validation;
37
- fromJSON(object: any): Validation;
38
- toJSON(message: Validation): unknown;
39
- create<I extends Exact<DeepPartial<Validation>, I>>(base?: I): Validation;
40
- fromPartial<I extends Exact<DeepPartial<Validation>, I>>(object: I): Validation;
41
- };
42
- export declare const step7Response: {
43
- encode(message: step7Response, writer?: _m0.Writer): _m0.Writer;
44
- decode(input: _m0.Reader | Uint8Array, length?: number): step7Response;
45
- fromJSON(object: any): step7Response;
46
- toJSON(message: step7Response): unknown;
47
- create<I extends Exact<DeepPartial<step7Response>, I>>(base?: I): step7Response;
48
- fromPartial<I extends Exact<DeepPartial<step7Response>, I>>(object: I): step7Response;
49
- };
50
- export declare const step7Response_Field: {
51
- encode(message: step7Response_Field, writer?: _m0.Writer): _m0.Writer;
52
- decode(input: _m0.Reader | Uint8Array, length?: number): step7Response_Field;
53
- fromJSON(object: any): step7Response_Field;
54
- toJSON(message: step7Response_Field): unknown;
55
- create<I extends Exact<DeepPartial<step7Response_Field>, I>>(base?: I): step7Response_Field;
56
- fromPartial<I extends Exact<DeepPartial<step7Response_Field>, I>>(object: I): step7Response_Field;
57
- };
58
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
59
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
60
- [K in keyof T]?: DeepPartial<T[K]>;
61
- } : Partial<T>;
62
- type KeysOfUnion<T> = T extends T ? keyof T : never;
63
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
64
- [K in keyof P]: Exact<P[K], I[K]>;
65
- } & {
66
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
67
- };
68
- export {};