@stashfin/grpc 1.0.16 → 1.0.18
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 +6 -11
- package/ts/customer/getstep.d.ts +34 -0
- package/ts/{user/getUser.js → customer/getstep.js} +18 -61
- package/ts/{user/createUser.d.ts → customer/sendotp.d.ts} +8 -28
- package/ts/{gameengine/getcustomer.js → customer/sendotp.js} +28 -28
- package/ts/{gameengine/getcustomer.d.ts → customer/setmpin.d.ts} +7 -28
- package/ts/{user/createUser.js → customer/setmpin.js} +19 -35
- 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/{user/getUser.d.ts → customer/verifyotp.d.ts} +12 -33
- package/ts/customer/verifyotp.js +191 -0
- package/ts/customer.d.ts +220 -0
- package/ts/customer.js +160 -0
- package/ts/example.d.ts +5 -33
- package/ts/example.js +16 -2
- package/proto/example.proto +0 -19
- package/proto/gameEngine.proto +0 -9
- package/proto/gameengine/getcustomer.proto +0 -12
- package/proto/user/createUser.proto +0 -12
- package/proto/user/getUser.proto +0 -13
- package/proto/user.proto +0 -11
- package/ts/gameEngine.d.ts +0 -29
- package/ts/gameEngine.js +0 -24
- package/ts/user.d.ts +0 -43
- package/ts/user.js +0 -34
package/package.json
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stashfin/grpc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
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
10
|
"publish:minor": "npm version minor && npm run build && cd dist && npm publish --access public"
|
|
11
11
|
},
|
|
12
12
|
"author": "Yogesh Randive",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@grpc/grpc-js": "^1.10.9"
|
|
16
|
-
"protoc": "^1.1.3",
|
|
17
|
-
"ts-proto": "^1.178.0"
|
|
15
|
+
"@grpc/grpc-js": "^1.10.9"
|
|
18
16
|
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"mkdirp": "^3.0.1",
|
|
21
|
-
"rimraf": "^5.0.7"
|
|
22
|
-
}
|
|
17
|
+
"devDependencies": {}
|
|
23
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
|
};
|
|
@@ -1,47 +1,27 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "
|
|
2
|
+
export declare const protobufPackage = "customer.sendotp";
|
|
3
3
|
export interface request {
|
|
4
|
-
|
|
5
|
-
email: string;
|
|
4
|
+
mobile: string;
|
|
6
5
|
}
|
|
7
6
|
export interface response {
|
|
8
|
-
|
|
7
|
+
ismpin: boolean;
|
|
8
|
+
token: string;
|
|
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/sendotp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
@@ -11,14 +11,14 @@ 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.sendotp";
|
|
15
15
|
function createBaserequest() {
|
|
16
|
-
return {
|
|
16
|
+
return { mobile: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.request = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(
|
|
20
|
+
if (message.mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mobile);
|
|
22
22
|
}
|
|
23
23
|
return writer;
|
|
24
24
|
},
|
|
@@ -30,10 +30,10 @@ exports.request = {
|
|
|
30
30
|
const tag = reader.uint32();
|
|
31
31
|
switch (tag >>> 3) {
|
|
32
32
|
case 1:
|
|
33
|
-
if (tag !==
|
|
33
|
+
if (tag !== 10) {
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
|
-
message.
|
|
36
|
+
message.mobile = reader.string();
|
|
37
37
|
continue;
|
|
38
38
|
}
|
|
39
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -44,12 +44,12 @@ exports.request = {
|
|
|
44
44
|
return message;
|
|
45
45
|
},
|
|
46
46
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
47
|
+
return { mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "" };
|
|
48
48
|
},
|
|
49
49
|
toJSON(message) {
|
|
50
50
|
const obj = {};
|
|
51
|
-
if (message.
|
|
52
|
-
obj.
|
|
51
|
+
if (message.mobile !== "") {
|
|
52
|
+
obj.mobile = message.mobile;
|
|
53
53
|
}
|
|
54
54
|
return obj;
|
|
55
55
|
},
|
|
@@ -58,20 +58,20 @@ exports.request = {
|
|
|
58
58
|
},
|
|
59
59
|
fromPartial(object) {
|
|
60
60
|
const message = createBaserequest();
|
|
61
|
-
message.
|
|
61
|
+
message.mobile = object.mobile ?? "";
|
|
62
62
|
return message;
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
function createBaseresponse() {
|
|
66
|
-
return {
|
|
66
|
+
return { ismpin: false, token: "" };
|
|
67
67
|
}
|
|
68
68
|
exports.response = {
|
|
69
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.
|
|
71
|
-
writer.uint32(
|
|
70
|
+
if (message.ismpin !== false) {
|
|
71
|
+
writer.uint32(8).bool(message.ismpin);
|
|
72
72
|
}
|
|
73
|
-
if (message.
|
|
74
|
-
writer.uint32(18).string(message.
|
|
73
|
+
if (message.token !== "") {
|
|
74
|
+
writer.uint32(18).string(message.token);
|
|
75
75
|
}
|
|
76
76
|
return writer;
|
|
77
77
|
},
|
|
@@ -83,16 +83,16 @@ exports.response = {
|
|
|
83
83
|
const tag = reader.uint32();
|
|
84
84
|
switch (tag >>> 3) {
|
|
85
85
|
case 1:
|
|
86
|
-
if (tag !==
|
|
86
|
+
if (tag !== 8) {
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
|
-
message.
|
|
89
|
+
message.ismpin = reader.bool();
|
|
90
90
|
continue;
|
|
91
91
|
case 2:
|
|
92
92
|
if (tag !== 18) {
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
|
-
message.
|
|
95
|
+
message.token = reader.string();
|
|
96
96
|
continue;
|
|
97
97
|
}
|
|
98
98
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -104,17 +104,17 @@ exports.response = {
|
|
|
104
104
|
},
|
|
105
105
|
fromJSON(object) {
|
|
106
106
|
return {
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
|
|
108
|
+
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
109
109
|
};
|
|
110
110
|
},
|
|
111
111
|
toJSON(message) {
|
|
112
112
|
const obj = {};
|
|
113
|
-
if (message.
|
|
114
|
-
obj.
|
|
113
|
+
if (message.ismpin !== false) {
|
|
114
|
+
obj.ismpin = message.ismpin;
|
|
115
115
|
}
|
|
116
|
-
if (message.
|
|
117
|
-
obj.
|
|
116
|
+
if (message.token !== "") {
|
|
117
|
+
obj.token = message.token;
|
|
118
118
|
}
|
|
119
119
|
return obj;
|
|
120
120
|
},
|
|
@@ -123,8 +123,8 @@ exports.response = {
|
|
|
123
123
|
},
|
|
124
124
|
fromPartial(object) {
|
|
125
125
|
const message = createBaseresponse();
|
|
126
|
-
message.
|
|
127
|
-
message.
|
|
126
|
+
message.ismpin = object.ismpin ?? false;
|
|
127
|
+
message.token = object.token ?? "";
|
|
128
128
|
return message;
|
|
129
129
|
},
|
|
130
130
|
};
|
|
@@ -1,47 +1,26 @@
|
|
|
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
|
-
|
|
4
|
+
mpin: string;
|
|
5
5
|
}
|
|
6
6
|
export interface response {
|
|
7
|
-
|
|
8
|
-
email: string;
|
|
7
|
+
ismpin: boolean;
|
|
9
8
|
}
|
|
10
9
|
export declare const request: {
|
|
11
10
|
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
12
11
|
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
13
12
|
fromJSON(object: any): request;
|
|
14
13
|
toJSON(message: request): unknown;
|
|
15
|
-
create<I extends
|
|
16
|
-
|
|
17
|
-
} & {
|
|
18
|
-
id?: number | undefined;
|
|
19
|
-
} & { [K in Exclude<keyof I, "id">]: never; }>(base?: I): request;
|
|
20
|
-
fromPartial<I_1 extends {
|
|
21
|
-
id?: number | undefined;
|
|
22
|
-
} & {
|
|
23
|
-
id?: number | undefined;
|
|
24
|
-
} & { [K_1 in Exclude<keyof I_1, "id">]: never; }>(object: I_1): request;
|
|
14
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
25
16
|
};
|
|
26
17
|
export declare const response: {
|
|
27
18
|
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
28
19
|
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
29
20
|
fromJSON(object: any): response;
|
|
30
21
|
toJSON(message: response): unknown;
|
|
31
|
-
create<I extends
|
|
32
|
-
|
|
33
|
-
email?: string | undefined;
|
|
34
|
-
} & {
|
|
35
|
-
name?: string | undefined;
|
|
36
|
-
email?: string | undefined;
|
|
37
|
-
} & { [K in Exclude<keyof I, keyof response>]: never; }>(base?: I): response;
|
|
38
|
-
fromPartial<I_1 extends {
|
|
39
|
-
name?: string | undefined;
|
|
40
|
-
email?: string | undefined;
|
|
41
|
-
} & {
|
|
42
|
-
name?: string | undefined;
|
|
43
|
-
email?: string | undefined;
|
|
44
|
-
} & { [K_1 in Exclude<keyof I_1, keyof response>]: never; }>(object: I_1): response;
|
|
22
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
45
24
|
};
|
|
46
25
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
47
26
|
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,14 @@ 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 { 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.
|
|
22
|
-
}
|
|
23
|
-
if (message.email !== "") {
|
|
24
|
-
writer.uint32(18).string(message.email);
|
|
20
|
+
if (message.mpin !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mpin);
|
|
25
22
|
}
|
|
26
23
|
return writer;
|
|
27
24
|
},
|
|
@@ -36,13 +33,7 @@ exports.request = {
|
|
|
36
33
|
if (tag !== 10) {
|
|
37
34
|
break;
|
|
38
35
|
}
|
|
39
|
-
message.
|
|
40
|
-
continue;
|
|
41
|
-
case 2:
|
|
42
|
-
if (tag !== 18) {
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
message.email = reader.string();
|
|
36
|
+
message.mpin = reader.string();
|
|
46
37
|
continue;
|
|
47
38
|
}
|
|
48
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -53,18 +44,12 @@ exports.request = {
|
|
|
53
44
|
return message;
|
|
54
45
|
},
|
|
55
46
|
fromJSON(object) {
|
|
56
|
-
return {
|
|
57
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
58
|
-
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
59
|
-
};
|
|
47
|
+
return { mpin: isSet(object.mpin) ? globalThis.String(object.mpin) : "" };
|
|
60
48
|
},
|
|
61
49
|
toJSON(message) {
|
|
62
50
|
const obj = {};
|
|
63
|
-
if (message.
|
|
64
|
-
obj.
|
|
65
|
-
}
|
|
66
|
-
if (message.email !== "") {
|
|
67
|
-
obj.email = message.email;
|
|
51
|
+
if (message.mpin !== "") {
|
|
52
|
+
obj.mpin = message.mpin;
|
|
68
53
|
}
|
|
69
54
|
return obj;
|
|
70
55
|
},
|
|
@@ -73,18 +58,17 @@ exports.request = {
|
|
|
73
58
|
},
|
|
74
59
|
fromPartial(object) {
|
|
75
60
|
const message = createBaserequest();
|
|
76
|
-
message.
|
|
77
|
-
message.email = object.email ?? "";
|
|
61
|
+
message.mpin = object.mpin ?? "";
|
|
78
62
|
return message;
|
|
79
63
|
},
|
|
80
64
|
};
|
|
81
65
|
function createBaseresponse() {
|
|
82
|
-
return {
|
|
66
|
+
return { ismpin: false };
|
|
83
67
|
}
|
|
84
68
|
exports.response = {
|
|
85
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
-
if (message.
|
|
87
|
-
writer.uint32(8).
|
|
70
|
+
if (message.ismpin !== false) {
|
|
71
|
+
writer.uint32(8).bool(message.ismpin);
|
|
88
72
|
}
|
|
89
73
|
return writer;
|
|
90
74
|
},
|
|
@@ -99,7 +83,7 @@ exports.response = {
|
|
|
99
83
|
if (tag !== 8) {
|
|
100
84
|
break;
|
|
101
85
|
}
|
|
102
|
-
message.
|
|
86
|
+
message.ismpin = reader.bool();
|
|
103
87
|
continue;
|
|
104
88
|
}
|
|
105
89
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -110,12 +94,12 @@ exports.response = {
|
|
|
110
94
|
return message;
|
|
111
95
|
},
|
|
112
96
|
fromJSON(object) {
|
|
113
|
-
return {
|
|
97
|
+
return { ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false };
|
|
114
98
|
},
|
|
115
99
|
toJSON(message) {
|
|
116
100
|
const obj = {};
|
|
117
|
-
if (message.
|
|
118
|
-
obj.
|
|
101
|
+
if (message.ismpin !== false) {
|
|
102
|
+
obj.ismpin = message.ismpin;
|
|
119
103
|
}
|
|
120
104
|
return obj;
|
|
121
105
|
},
|
|
@@ -124,7 +108,7 @@ exports.response = {
|
|
|
124
108
|
},
|
|
125
109
|
fromPartial(object) {
|
|
126
110
|
const message = createBaseresponse();
|
|
127
|
-
message.
|
|
111
|
+
message.ismpin = object.ismpin ?? false;
|
|
128
112
|
return message;
|
|
129
113
|
},
|
|
130
114
|
};
|
|
@@ -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 {};
|