@stashfin/grpc 1.0.17 → 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 +7 -13
- package/ts/customer/getstep.d.ts +34 -0
- package/ts/{user/getUser.js → customer/getstep.js} +18 -61
- package/ts/customer/sendotp.d.ts +4 -24
- package/ts/customer/sendotp.js +1 -1
- package/ts/{user/createUser.d.ts → customer/setmpin.d.ts} +8 -28
- package/ts/{user/createUser.js → customer/setmpin.js} +26 -26
- package/ts/customer/step1.d.ts +69 -0
- package/ts/customer/step1.js +395 -0
- package/ts/customer/step10.d.ts +73 -0
- package/ts/customer/step10.js +459 -0
- package/ts/customer/step2.d.ts +68 -0
- package/ts/customer/step2.js +381 -0
- package/ts/customer/step7.d.ts +68 -0
- package/ts/customer/step7.js +381 -0
- package/ts/customer/step8.d.ts +69 -0
- package/ts/customer/step8.js +395 -0
- package/ts/customer/step9.d.ts +75 -0
- package/ts/customer/step9.js +489 -0
- package/ts/customer/stepstatic.d.ts +66 -0
- package/ts/customer/stepstatic.js +352 -0
- package/ts/customer/verifyotp.d.ts +6 -37
- package/ts/customer/verifyotp.js +26 -12
- package/ts/customer.d.ts +187 -10
- package/ts/customer.js +132 -6
- package/ts/example.d.ts +5 -33
- package/ts/example.js +16 -2
- package/proto/customer/sendotp.proto +0 -12
- package/proto/customer/verifyotp.proto +0 -15
- package/proto/customer.proto +0 -11
- package/proto/example.proto +0 -19
- package/proto/user/createUser.proto +0 -12
- package/proto/user/getUser.proto +0 -13
- package/proto/user.proto +0 -11
- package/ts/user/getUser.d.ts +0 -61
- package/ts/user.d.ts +0 -43
- package/ts/user.js +0 -34
package/package.json
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stashfin/grpc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Grpc proto manger",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"prebuild": "rimraf src/ts && mkdirp src/ts",
|
|
7
|
-
"build": "npx protoc --plugin=$(npm root)/.bin/protoc-gen-ts_proto --ts_proto_out=src/ts --ts_proto_opt=outputServices=grpc-js --ts_proto_opt=esModuleInterop=true -I=src/proto/ src/**/*.proto",
|
|
8
|
-
"postbuild": "tsc --build && cp package.json dist/
|
|
6
|
+
"prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
|
|
7
|
+
"build": "npx protoc --plugin=$(npm root)/.bin/protoc-gen-ts_proto --ts_proto_out=src/ts --ts_proto_opt=outputServices=grpc-js --ts_proto_opt=esModuleInterop=true,snakeToCamel=false -I=src/proto/ src/**/*.proto",
|
|
8
|
+
"postbuild": "tsc --build && cp package.json dist/ ",
|
|
9
9
|
"publish:patch": "npm version patch && npm run build && cd dist && npm publish --access public",
|
|
10
|
-
"publish:minor": "npm version minor && npm run build && cd dist && npm publish --access public"
|
|
11
|
-
"publish:local": "npm run build && cd dist && npm link"
|
|
10
|
+
"publish:minor": "npm version minor && npm run build && cd dist && npm publish --access public"
|
|
12
11
|
},
|
|
13
12
|
"author": "Yogesh Randive",
|
|
14
13
|
"license": "ISC",
|
|
15
14
|
"dependencies": {
|
|
16
|
-
"@grpc/grpc-js": "^1.10.9"
|
|
17
|
-
"protoc": "^1.1.3",
|
|
18
|
-
"ts-proto": "^1.178.0"
|
|
15
|
+
"@grpc/grpc-js": "^1.10.9"
|
|
19
16
|
},
|
|
20
|
-
"devDependencies": {
|
|
21
|
-
"mkdirp": "^3.0.1",
|
|
22
|
-
"rimraf": "^5.0.7"
|
|
23
|
-
}
|
|
17
|
+
"devDependencies": {}
|
|
24
18
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customer.getstep";
|
|
3
|
+
export interface request {
|
|
4
|
+
}
|
|
5
|
+
export interface response {
|
|
6
|
+
step: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const request: {
|
|
9
|
+
encode(_: request, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
11
|
+
fromJSON(_: any): request;
|
|
12
|
+
toJSON(_: request): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(_: I): request;
|
|
15
|
+
};
|
|
16
|
+
export declare const response: {
|
|
17
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
19
|
+
fromJSON(object: any): response;
|
|
20
|
+
toJSON(message: response): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
|
-
// source:
|
|
6
|
+
// source: customer/getstep.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
@@ -11,15 +11,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
exports.response = exports.request = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "
|
|
14
|
+
exports.protobufPackage = "customer.getstep";
|
|
15
15
|
function createBaserequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {};
|
|
17
17
|
}
|
|
18
18
|
exports.request = {
|
|
19
|
-
encode(
|
|
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.request = {
|
|
|
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,38 +34,28 @@ exports.request = {
|
|
|
43
34
|
}
|
|
44
35
|
return message;
|
|
45
36
|
},
|
|
46
|
-
fromJSON(
|
|
47
|
-
return {
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
48
39
|
},
|
|
49
|
-
toJSON(
|
|
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.request.fromPartial(base ?? {});
|
|
58
46
|
},
|
|
59
|
-
fromPartial(
|
|
47
|
+
fromPartial(_) {
|
|
60
48
|
const message = createBaserequest();
|
|
61
|
-
message.id = object.id ?? 0;
|
|
62
49
|
return message;
|
|
63
50
|
},
|
|
64
51
|
};
|
|
65
52
|
function createBaseresponse() {
|
|
66
|
-
return {
|
|
53
|
+
return { step: "" };
|
|
67
54
|
}
|
|
68
55
|
exports.response = {
|
|
69
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.
|
|
71
|
-
writer.uint32(
|
|
72
|
-
}
|
|
73
|
-
if (message.name !== "") {
|
|
74
|
-
writer.uint32(18).string(message.name);
|
|
75
|
-
}
|
|
76
|
-
if (message.email !== "") {
|
|
77
|
-
writer.uint32(26).string(message.email);
|
|
57
|
+
if (message.step !== "") {
|
|
58
|
+
writer.uint32(10).string(message.step);
|
|
78
59
|
}
|
|
79
60
|
return writer;
|
|
80
61
|
},
|
|
@@ -86,22 +67,10 @@ exports.response = {
|
|
|
86
67
|
const tag = reader.uint32();
|
|
87
68
|
switch (tag >>> 3) {
|
|
88
69
|
case 1:
|
|
89
|
-
if (tag !==
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
message.id = reader.int32();
|
|
93
|
-
continue;
|
|
94
|
-
case 2:
|
|
95
|
-
if (tag !== 18) {
|
|
70
|
+
if (tag !== 10) {
|
|
96
71
|
break;
|
|
97
72
|
}
|
|
98
|
-
message.
|
|
99
|
-
continue;
|
|
100
|
-
case 3:
|
|
101
|
-
if (tag !== 26) {
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
message.email = reader.string();
|
|
73
|
+
message.step = reader.string();
|
|
105
74
|
continue;
|
|
106
75
|
}
|
|
107
76
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -112,22 +81,12 @@ exports.response = {
|
|
|
112
81
|
return message;
|
|
113
82
|
},
|
|
114
83
|
fromJSON(object) {
|
|
115
|
-
return {
|
|
116
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
117
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
118
|
-
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
119
|
-
};
|
|
84
|
+
return { step: isSet(object.step) ? globalThis.String(object.step) : "" };
|
|
120
85
|
},
|
|
121
86
|
toJSON(message) {
|
|
122
87
|
const obj = {};
|
|
123
|
-
if (message.
|
|
124
|
-
obj.
|
|
125
|
-
}
|
|
126
|
-
if (message.name !== "") {
|
|
127
|
-
obj.name = message.name;
|
|
128
|
-
}
|
|
129
|
-
if (message.email !== "") {
|
|
130
|
-
obj.email = message.email;
|
|
88
|
+
if (message.step !== "") {
|
|
89
|
+
obj.step = message.step;
|
|
131
90
|
}
|
|
132
91
|
return obj;
|
|
133
92
|
},
|
|
@@ -136,9 +95,7 @@ exports.response = {
|
|
|
136
95
|
},
|
|
137
96
|
fromPartial(object) {
|
|
138
97
|
const message = createBaseresponse();
|
|
139
|
-
message.
|
|
140
|
-
message.name = object.name ?? "";
|
|
141
|
-
message.email = object.email ?? "";
|
|
98
|
+
message.step = object.step ?? "";
|
|
142
99
|
return message;
|
|
143
100
|
},
|
|
144
101
|
};
|
package/ts/customer/sendotp.d.ts
CHANGED
|
@@ -12,36 +12,16 @@ export declare const request: {
|
|
|
12
12
|
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
13
13
|
fromJSON(object: any): request;
|
|
14
14
|
toJSON(message: request): unknown;
|
|
15
|
-
create<I extends
|
|
16
|
-
|
|
17
|
-
} & {
|
|
18
|
-
mobile?: string | undefined;
|
|
19
|
-
} & { [K in Exclude<keyof I, "mobile">]: never; }>(base?: I): request;
|
|
20
|
-
fromPartial<I_1 extends {
|
|
21
|
-
mobile?: string | undefined;
|
|
22
|
-
} & {
|
|
23
|
-
mobile?: string | undefined;
|
|
24
|
-
} & { [K_1 in Exclude<keyof I_1, "mobile">]: never; }>(object: I_1): request;
|
|
15
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
25
17
|
};
|
|
26
18
|
export declare const response: {
|
|
27
19
|
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
28
20
|
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
29
21
|
fromJSON(object: any): response;
|
|
30
22
|
toJSON(message: response): unknown;
|
|
31
|
-
create<I extends
|
|
32
|
-
|
|
33
|
-
token?: string | undefined;
|
|
34
|
-
} & {
|
|
35
|
-
ismpin?: boolean | undefined;
|
|
36
|
-
token?: string | undefined;
|
|
37
|
-
} & { [K in Exclude<keyof I, keyof response>]: never; }>(base?: I): response;
|
|
38
|
-
fromPartial<I_1 extends {
|
|
39
|
-
ismpin?: boolean | undefined;
|
|
40
|
-
token?: string | undefined;
|
|
41
|
-
} & {
|
|
42
|
-
ismpin?: boolean | undefined;
|
|
43
|
-
token?: string | undefined;
|
|
44
|
-
} & { [K_1 in Exclude<keyof I_1, keyof response>]: never; }>(object: I_1): response;
|
|
23
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
45
25
|
};
|
|
46
26
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
47
27
|
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 {} ? {
|
package/ts/customer/sendotp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
6
|
// source: customer/sendotp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -1,47 +1,27 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "
|
|
2
|
+
export declare const protobufPackage = "customer.setmpin";
|
|
3
3
|
export interface request {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
mobile: string;
|
|
5
|
+
mpin: string;
|
|
6
6
|
}
|
|
7
7
|
export interface response {
|
|
8
|
-
|
|
8
|
+
status: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const request: {
|
|
11
11
|
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
12
12
|
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
13
13
|
fromJSON(object: any): request;
|
|
14
14
|
toJSON(message: request): unknown;
|
|
15
|
-
create<I extends
|
|
16
|
-
|
|
17
|
-
email?: string | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
email?: string | undefined;
|
|
21
|
-
} & { [K in Exclude<keyof I, keyof request>]: never; }>(base?: I): request;
|
|
22
|
-
fromPartial<I_1 extends {
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
email?: string | undefined;
|
|
25
|
-
} & {
|
|
26
|
-
name?: string | undefined;
|
|
27
|
-
email?: string | undefined;
|
|
28
|
-
} & { [K_1 in Exclude<keyof I_1, keyof request>]: never; }>(object: I_1): request;
|
|
15
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
29
17
|
};
|
|
30
18
|
export declare const response: {
|
|
31
19
|
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
32
20
|
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
33
21
|
fromJSON(object: any): response;
|
|
34
22
|
toJSON(message: response): unknown;
|
|
35
|
-
create<I extends
|
|
36
|
-
|
|
37
|
-
} & {
|
|
38
|
-
id?: number | undefined;
|
|
39
|
-
} & { [K in Exclude<keyof I, "id">]: never; }>(base?: I): response;
|
|
40
|
-
fromPartial<I_1 extends {
|
|
41
|
-
id?: number | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
id?: number | undefined;
|
|
44
|
-
} & { [K_1 in Exclude<keyof I_1, "id">]: never; }>(object: I_1): response;
|
|
23
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
45
25
|
};
|
|
46
26
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
47
27
|
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 {} ? {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.
|
|
4
|
+
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
|
-
// source:
|
|
6
|
+
// source: customer/setmpin.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
@@ -11,17 +11,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
exports.response = exports.request = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "
|
|
14
|
+
exports.protobufPackage = "customer.setmpin";
|
|
15
15
|
function createBaserequest() {
|
|
16
|
-
return {
|
|
16
|
+
return { mobile: "", mpin: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.request = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
20
|
+
if (message.mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mobile);
|
|
22
22
|
}
|
|
23
|
-
if (message.
|
|
24
|
-
writer.uint32(18).string(message.
|
|
23
|
+
if (message.mpin !== "") {
|
|
24
|
+
writer.uint32(18).string(message.mpin);
|
|
25
25
|
}
|
|
26
26
|
return writer;
|
|
27
27
|
},
|
|
@@ -36,13 +36,13 @@ exports.request = {
|
|
|
36
36
|
if (tag !== 10) {
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
|
-
message.
|
|
39
|
+
message.mobile = reader.string();
|
|
40
40
|
continue;
|
|
41
41
|
case 2:
|
|
42
42
|
if (tag !== 18) {
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
|
-
message.
|
|
45
|
+
message.mpin = reader.string();
|
|
46
46
|
continue;
|
|
47
47
|
}
|
|
48
48
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -54,17 +54,17 @@ exports.request = {
|
|
|
54
54
|
},
|
|
55
55
|
fromJSON(object) {
|
|
56
56
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
58
|
+
mpin: isSet(object.mpin) ? globalThis.String(object.mpin) : "",
|
|
59
59
|
};
|
|
60
60
|
},
|
|
61
61
|
toJSON(message) {
|
|
62
62
|
const obj = {};
|
|
63
|
-
if (message.
|
|
64
|
-
obj.
|
|
63
|
+
if (message.mobile !== "") {
|
|
64
|
+
obj.mobile = message.mobile;
|
|
65
65
|
}
|
|
66
|
-
if (message.
|
|
67
|
-
obj.
|
|
66
|
+
if (message.mpin !== "") {
|
|
67
|
+
obj.mpin = message.mpin;
|
|
68
68
|
}
|
|
69
69
|
return obj;
|
|
70
70
|
},
|
|
@@ -73,18 +73,18 @@ exports.request = {
|
|
|
73
73
|
},
|
|
74
74
|
fromPartial(object) {
|
|
75
75
|
const message = createBaserequest();
|
|
76
|
-
message.
|
|
77
|
-
message.
|
|
76
|
+
message.mobile = object.mobile ?? "";
|
|
77
|
+
message.mpin = object.mpin ?? "";
|
|
78
78
|
return message;
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
81
|
function createBaseresponse() {
|
|
82
|
-
return {
|
|
82
|
+
return { status: false };
|
|
83
83
|
}
|
|
84
84
|
exports.response = {
|
|
85
85
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
-
if (message.
|
|
87
|
-
writer.uint32(8).
|
|
86
|
+
if (message.status !== false) {
|
|
87
|
+
writer.uint32(8).bool(message.status);
|
|
88
88
|
}
|
|
89
89
|
return writer;
|
|
90
90
|
},
|
|
@@ -99,7 +99,7 @@ exports.response = {
|
|
|
99
99
|
if (tag !== 8) {
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
|
-
message.
|
|
102
|
+
message.status = reader.bool();
|
|
103
103
|
continue;
|
|
104
104
|
}
|
|
105
105
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -110,12 +110,12 @@ exports.response = {
|
|
|
110
110
|
return message;
|
|
111
111
|
},
|
|
112
112
|
fromJSON(object) {
|
|
113
|
-
return {
|
|
113
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
114
114
|
},
|
|
115
115
|
toJSON(message) {
|
|
116
116
|
const obj = {};
|
|
117
|
-
if (message.
|
|
118
|
-
obj.
|
|
117
|
+
if (message.status !== false) {
|
|
118
|
+
obj.status = message.status;
|
|
119
119
|
}
|
|
120
120
|
return obj;
|
|
121
121
|
},
|
|
@@ -124,7 +124,7 @@ exports.response = {
|
|
|
124
124
|
},
|
|
125
125
|
fromPartial(object) {
|
|
126
126
|
const message = createBaseresponse();
|
|
127
|
-
message.
|
|
127
|
+
message.status = object.status ?? false;
|
|
128
128
|
return message;
|
|
129
129
|
},
|
|
130
130
|
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customer.step1";
|
|
3
|
+
export interface request {
|
|
4
|
+
full_name: string;
|
|
5
|
+
pan_number: string;
|
|
6
|
+
tnc: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface Validation {
|
|
9
|
+
key: string;
|
|
10
|
+
value: string;
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
13
|
+
export interface response {
|
|
14
|
+
page: string;
|
|
15
|
+
type: string;
|
|
16
|
+
button_text: string;
|
|
17
|
+
data: response_Field[];
|
|
18
|
+
}
|
|
19
|
+
export interface response_Field {
|
|
20
|
+
label: string;
|
|
21
|
+
key: string;
|
|
22
|
+
input_type: string;
|
|
23
|
+
data_type: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
validations: Validation[];
|
|
26
|
+
}
|
|
27
|
+
export declare const request: {
|
|
28
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
29
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
30
|
+
fromJSON(object: any): request;
|
|
31
|
+
toJSON(message: request): unknown;
|
|
32
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
33
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
34
|
+
};
|
|
35
|
+
export declare const Validation: {
|
|
36
|
+
encode(message: Validation, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Validation;
|
|
38
|
+
fromJSON(object: any): Validation;
|
|
39
|
+
toJSON(message: Validation): unknown;
|
|
40
|
+
create<I extends Exact<DeepPartial<Validation>, I>>(base?: I): Validation;
|
|
41
|
+
fromPartial<I extends Exact<DeepPartial<Validation>, I>>(object: I): Validation;
|
|
42
|
+
};
|
|
43
|
+
export declare const response: {
|
|
44
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
45
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
46
|
+
fromJSON(object: any): response;
|
|
47
|
+
toJSON(message: response): unknown;
|
|
48
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
49
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
50
|
+
};
|
|
51
|
+
export declare const response_Field: {
|
|
52
|
+
encode(message: response_Field, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Field;
|
|
54
|
+
fromJSON(object: any): response_Field;
|
|
55
|
+
toJSON(message: response_Field): unknown;
|
|
56
|
+
create<I extends Exact<DeepPartial<response_Field>, I>>(base?: I): response_Field;
|
|
57
|
+
fromPartial<I extends Exact<DeepPartial<response_Field>, I>>(object: I): response_Field;
|
|
58
|
+
};
|
|
59
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
60
|
+
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 {} ? {
|
|
61
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
62
|
+
} : Partial<T>;
|
|
63
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
64
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
65
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
66
|
+
} & {
|
|
67
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
68
|
+
};
|
|
69
|
+
export {};
|