@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/ts/customer.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { request as request5, response as response6 } from "./customer/getstep";
|
|
3
3
|
import { request, response } from "./customer/sendotp";
|
|
4
|
+
import { request as request3, response as response4 } from "./customer/setmpin";
|
|
5
|
+
import { request as request7, response as response8 } from "./customer/step1";
|
|
6
|
+
import { request as request19, response as response20 } from "./customer/step10";
|
|
7
|
+
import { request as request9, response as response10 } from "./customer/step2";
|
|
8
|
+
import { request as request13, response as response14 } from "./customer/step7";
|
|
9
|
+
import { request as request15, response as response16 } from "./customer/step8";
|
|
10
|
+
import { request as request17, response as response18 } from "./customer/step9";
|
|
11
|
+
import { request as request11, response as response12 } from "./customer/stepstatic";
|
|
4
12
|
import { request as request1, response as response2 } from "./customer/verifyotp";
|
|
5
13
|
export declare const protobufPackage = "customer";
|
|
6
|
-
export type
|
|
7
|
-
export declare const
|
|
14
|
+
export type CustomerService = typeof CustomerService;
|
|
15
|
+
export declare const CustomerService: {
|
|
8
16
|
readonly sendOtp: {
|
|
9
|
-
readonly path: "/customer.
|
|
17
|
+
readonly path: "/customer.Customer/sendOtp";
|
|
10
18
|
readonly requestStream: false;
|
|
11
19
|
readonly responseStream: false;
|
|
12
20
|
readonly requestSerialize: (value: request) => Buffer;
|
|
@@ -15,7 +23,7 @@ export declare const CustomerServiceService: {
|
|
|
15
23
|
readonly responseDeserialize: (value: Buffer) => response;
|
|
16
24
|
};
|
|
17
25
|
readonly verifyOtp: {
|
|
18
|
-
readonly path: "/customer.
|
|
26
|
+
readonly path: "/customer.Customer/verifyOtp";
|
|
19
27
|
readonly requestStream: false;
|
|
20
28
|
readonly responseStream: false;
|
|
21
29
|
readonly requestSerialize: (value: request1) => Buffer;
|
|
@@ -23,21 +31,190 @@ export declare const CustomerServiceService: {
|
|
|
23
31
|
readonly responseSerialize: (value: response2) => Buffer;
|
|
24
32
|
readonly responseDeserialize: (value: Buffer) => response2;
|
|
25
33
|
};
|
|
34
|
+
readonly setmpin: {
|
|
35
|
+
readonly path: "/customer.Customer/setmpin";
|
|
36
|
+
readonly requestStream: false;
|
|
37
|
+
readonly responseStream: false;
|
|
38
|
+
readonly requestSerialize: (value: request3) => Buffer;
|
|
39
|
+
readonly requestDeserialize: (value: Buffer) => request3;
|
|
40
|
+
readonly responseSerialize: (value: response4) => Buffer;
|
|
41
|
+
readonly responseDeserialize: (value: Buffer) => response4;
|
|
42
|
+
};
|
|
43
|
+
readonly getstep: {
|
|
44
|
+
readonly path: "/customer.Customer/getstep";
|
|
45
|
+
readonly requestStream: false;
|
|
46
|
+
readonly responseStream: false;
|
|
47
|
+
readonly requestSerialize: (value: request5) => Buffer;
|
|
48
|
+
readonly requestDeserialize: (value: Buffer) => request5;
|
|
49
|
+
readonly responseSerialize: (value: response6) => Buffer;
|
|
50
|
+
readonly responseDeserialize: (value: Buffer) => response6;
|
|
51
|
+
};
|
|
52
|
+
readonly step1: {
|
|
53
|
+
readonly path: "/customer.Customer/step1";
|
|
54
|
+
readonly requestStream: false;
|
|
55
|
+
readonly responseStream: false;
|
|
56
|
+
readonly requestSerialize: (value: request7) => Buffer;
|
|
57
|
+
readonly requestDeserialize: (value: Buffer) => request7;
|
|
58
|
+
readonly responseSerialize: (value: response8) => Buffer;
|
|
59
|
+
readonly responseDeserialize: (value: Buffer) => response8;
|
|
60
|
+
};
|
|
61
|
+
readonly step2: {
|
|
62
|
+
readonly path: "/customer.Customer/step2";
|
|
63
|
+
readonly requestStream: false;
|
|
64
|
+
readonly responseStream: false;
|
|
65
|
+
readonly requestSerialize: (value: request9) => Buffer;
|
|
66
|
+
readonly requestDeserialize: (value: Buffer) => request9;
|
|
67
|
+
readonly responseSerialize: (value: response10) => Buffer;
|
|
68
|
+
readonly responseDeserialize: (value: Buffer) => response10;
|
|
69
|
+
};
|
|
70
|
+
readonly step3: {
|
|
71
|
+
readonly path: "/customer.Customer/step3";
|
|
72
|
+
readonly requestStream: false;
|
|
73
|
+
readonly responseStream: false;
|
|
74
|
+
readonly requestSerialize: (value: request11) => Buffer;
|
|
75
|
+
readonly requestDeserialize: (value: Buffer) => request11;
|
|
76
|
+
readonly responseSerialize: (value: response12) => Buffer;
|
|
77
|
+
readonly responseDeserialize: (value: Buffer) => response12;
|
|
78
|
+
};
|
|
79
|
+
readonly step4: {
|
|
80
|
+
readonly path: "/customer.Customer/step4";
|
|
81
|
+
readonly requestStream: false;
|
|
82
|
+
readonly responseStream: false;
|
|
83
|
+
readonly requestSerialize: (value: request11) => Buffer;
|
|
84
|
+
readonly requestDeserialize: (value: Buffer) => request11;
|
|
85
|
+
readonly responseSerialize: (value: response12) => Buffer;
|
|
86
|
+
readonly responseDeserialize: (value: Buffer) => response12;
|
|
87
|
+
};
|
|
88
|
+
readonly step5: {
|
|
89
|
+
readonly path: "/customer.Customer/step5";
|
|
90
|
+
readonly requestStream: false;
|
|
91
|
+
readonly responseStream: false;
|
|
92
|
+
readonly requestSerialize: (value: request11) => Buffer;
|
|
93
|
+
readonly requestDeserialize: (value: Buffer) => request11;
|
|
94
|
+
readonly responseSerialize: (value: response12) => Buffer;
|
|
95
|
+
readonly responseDeserialize: (value: Buffer) => response12;
|
|
96
|
+
};
|
|
97
|
+
readonly step6: {
|
|
98
|
+
readonly path: "/customer.Customer/step6";
|
|
99
|
+
readonly requestStream: false;
|
|
100
|
+
readonly responseStream: false;
|
|
101
|
+
readonly requestSerialize: (value: request11) => Buffer;
|
|
102
|
+
readonly requestDeserialize: (value: Buffer) => request11;
|
|
103
|
+
readonly responseSerialize: (value: response12) => Buffer;
|
|
104
|
+
readonly responseDeserialize: (value: Buffer) => response12;
|
|
105
|
+
};
|
|
106
|
+
readonly step7: {
|
|
107
|
+
readonly path: "/customer.Customer/step7";
|
|
108
|
+
readonly requestStream: false;
|
|
109
|
+
readonly responseStream: false;
|
|
110
|
+
readonly requestSerialize: (value: request13) => Buffer;
|
|
111
|
+
readonly requestDeserialize: (value: Buffer) => request13;
|
|
112
|
+
readonly responseSerialize: (value: response14) => Buffer;
|
|
113
|
+
readonly responseDeserialize: (value: Buffer) => response14;
|
|
114
|
+
};
|
|
115
|
+
readonly step8: {
|
|
116
|
+
readonly path: "/customer.Customer/step8";
|
|
117
|
+
readonly requestStream: false;
|
|
118
|
+
readonly responseStream: false;
|
|
119
|
+
readonly requestSerialize: (value: request15) => Buffer;
|
|
120
|
+
readonly requestDeserialize: (value: Buffer) => request15;
|
|
121
|
+
readonly responseSerialize: (value: response16) => Buffer;
|
|
122
|
+
readonly responseDeserialize: (value: Buffer) => response16;
|
|
123
|
+
};
|
|
124
|
+
readonly step9: {
|
|
125
|
+
readonly path: "/customer.Customer/step9";
|
|
126
|
+
readonly requestStream: false;
|
|
127
|
+
readonly responseStream: false;
|
|
128
|
+
readonly requestSerialize: (value: request17) => Buffer;
|
|
129
|
+
readonly requestDeserialize: (value: Buffer) => request17;
|
|
130
|
+
readonly responseSerialize: (value: response18) => Buffer;
|
|
131
|
+
readonly responseDeserialize: (value: Buffer) => response18;
|
|
132
|
+
};
|
|
133
|
+
readonly step10: {
|
|
134
|
+
readonly path: "/customer.Customer/step10";
|
|
135
|
+
readonly requestStream: false;
|
|
136
|
+
readonly responseStream: false;
|
|
137
|
+
readonly requestSerialize: (value: request19) => Buffer;
|
|
138
|
+
readonly requestDeserialize: (value: Buffer) => request19;
|
|
139
|
+
readonly responseSerialize: (value: response20) => Buffer;
|
|
140
|
+
readonly responseDeserialize: (value: Buffer) => response20;
|
|
141
|
+
};
|
|
142
|
+
readonly step11: {
|
|
143
|
+
readonly path: "/customer.Customer/step11";
|
|
144
|
+
readonly requestStream: false;
|
|
145
|
+
readonly responseStream: false;
|
|
146
|
+
readonly requestSerialize: (value: request11) => Buffer;
|
|
147
|
+
readonly requestDeserialize: (value: Buffer) => request11;
|
|
148
|
+
readonly responseSerialize: (value: response12) => Buffer;
|
|
149
|
+
readonly responseDeserialize: (value: Buffer) => response12;
|
|
150
|
+
};
|
|
26
151
|
};
|
|
27
|
-
export interface
|
|
152
|
+
export interface CustomerServer extends UntypedServiceImplementation {
|
|
28
153
|
sendOtp: handleUnaryCall<request, response>;
|
|
29
154
|
verifyOtp: handleUnaryCall<request1, response2>;
|
|
155
|
+
setmpin: handleUnaryCall<request3, response4>;
|
|
156
|
+
getstep: handleUnaryCall<request5, response6>;
|
|
157
|
+
step1: handleUnaryCall<request7, response8>;
|
|
158
|
+
step2: handleUnaryCall<request9, response10>;
|
|
159
|
+
step3: handleUnaryCall<request11, response12>;
|
|
160
|
+
step4: handleUnaryCall<request11, response12>;
|
|
161
|
+
step5: handleUnaryCall<request11, response12>;
|
|
162
|
+
step6: handleUnaryCall<request11, response12>;
|
|
163
|
+
step7: handleUnaryCall<request13, response14>;
|
|
164
|
+
step8: handleUnaryCall<request15, response16>;
|
|
165
|
+
step9: handleUnaryCall<request17, response18>;
|
|
166
|
+
step10: handleUnaryCall<request19, response20>;
|
|
167
|
+
step11: handleUnaryCall<request11, response12>;
|
|
30
168
|
}
|
|
31
|
-
export interface
|
|
169
|
+
export interface CustomerClient extends Client {
|
|
32
170
|
sendOtp(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
33
171
|
sendOtp(request: request, metadata: Metadata, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
34
172
|
sendOtp(request: request, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
35
173
|
verifyOtp(request: request1, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
|
|
36
174
|
verifyOtp(request: request1, metadata: Metadata, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
|
|
37
175
|
verifyOtp(request: request1, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response2) => void): ClientUnaryCall;
|
|
176
|
+
setmpin(request: request3, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
|
|
177
|
+
setmpin(request: request3, metadata: Metadata, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
|
|
178
|
+
setmpin(request: request3, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response4) => void): ClientUnaryCall;
|
|
179
|
+
getstep(request: request5, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
180
|
+
getstep(request: request5, metadata: Metadata, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
181
|
+
getstep(request: request5, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
182
|
+
step1(request: request7, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
183
|
+
step1(request: request7, metadata: Metadata, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
184
|
+
step1(request: request7, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
185
|
+
step2(request: request9, callback: (error: ServiceError | null, response: response10) => void): ClientUnaryCall;
|
|
186
|
+
step2(request: request9, metadata: Metadata, callback: (error: ServiceError | null, response: response10) => void): ClientUnaryCall;
|
|
187
|
+
step2(request: request9, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response10) => void): ClientUnaryCall;
|
|
188
|
+
step3(request: request11, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
189
|
+
step3(request: request11, metadata: Metadata, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
190
|
+
step3(request: request11, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
191
|
+
step4(request: request11, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
192
|
+
step4(request: request11, metadata: Metadata, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
193
|
+
step4(request: request11, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
194
|
+
step5(request: request11, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
195
|
+
step5(request: request11, metadata: Metadata, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
196
|
+
step5(request: request11, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
197
|
+
step6(request: request11, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
198
|
+
step6(request: request11, metadata: Metadata, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
199
|
+
step6(request: request11, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
200
|
+
step7(request: request13, callback: (error: ServiceError | null, response: response14) => void): ClientUnaryCall;
|
|
201
|
+
step7(request: request13, metadata: Metadata, callback: (error: ServiceError | null, response: response14) => void): ClientUnaryCall;
|
|
202
|
+
step7(request: request13, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response14) => void): ClientUnaryCall;
|
|
203
|
+
step8(request: request15, callback: (error: ServiceError | null, response: response16) => void): ClientUnaryCall;
|
|
204
|
+
step8(request: request15, metadata: Metadata, callback: (error: ServiceError | null, response: response16) => void): ClientUnaryCall;
|
|
205
|
+
step8(request: request15, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response16) => void): ClientUnaryCall;
|
|
206
|
+
step9(request: request17, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
|
|
207
|
+
step9(request: request17, metadata: Metadata, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
|
|
208
|
+
step9(request: request17, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response18) => void): ClientUnaryCall;
|
|
209
|
+
step10(request: request19, callback: (error: ServiceError | null, response: response20) => void): ClientUnaryCall;
|
|
210
|
+
step10(request: request19, metadata: Metadata, callback: (error: ServiceError | null, response: response20) => void): ClientUnaryCall;
|
|
211
|
+
step10(request: request19, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response20) => void): ClientUnaryCall;
|
|
212
|
+
step11(request: request11, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
213
|
+
step11(request: request11, metadata: Metadata, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
214
|
+
step11(request: request11, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response12) => void): ClientUnaryCall;
|
|
38
215
|
}
|
|
39
|
-
export declare const
|
|
40
|
-
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>):
|
|
41
|
-
service: typeof
|
|
216
|
+
export declare const CustomerClient: {
|
|
217
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): CustomerClient;
|
|
218
|
+
service: typeof CustomerService;
|
|
42
219
|
serviceName: string;
|
|
43
220
|
};
|
package/ts/customer.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
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.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.CustomerClient = exports.CustomerService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const getstep_1 = require("./customer/getstep");
|
|
11
12
|
const sendotp_1 = require("./customer/sendotp");
|
|
13
|
+
const setmpin_1 = require("./customer/setmpin");
|
|
14
|
+
const step1_1 = require("./customer/step1");
|
|
15
|
+
const step10_1 = require("./customer/step10");
|
|
16
|
+
const step2_1 = require("./customer/step2");
|
|
17
|
+
const step7_1 = require("./customer/step7");
|
|
18
|
+
const step8_1 = require("./customer/step8");
|
|
19
|
+
const step9_1 = require("./customer/step9");
|
|
20
|
+
const stepstatic_1 = require("./customer/stepstatic");
|
|
12
21
|
const verifyotp_1 = require("./customer/verifyotp");
|
|
13
22
|
exports.protobufPackage = "customer";
|
|
14
|
-
exports.
|
|
23
|
+
exports.CustomerService = {
|
|
15
24
|
sendOtp: {
|
|
16
|
-
path: "/customer.
|
|
25
|
+
path: "/customer.Customer/sendOtp",
|
|
17
26
|
requestStream: false,
|
|
18
27
|
responseStream: false,
|
|
19
28
|
requestSerialize: (value) => Buffer.from(sendotp_1.request.encode(value).finish()),
|
|
@@ -22,7 +31,7 @@ exports.CustomerServiceService = {
|
|
|
22
31
|
responseDeserialize: (value) => sendotp_1.response.decode(value),
|
|
23
32
|
},
|
|
24
33
|
verifyOtp: {
|
|
25
|
-
path: "/customer.
|
|
34
|
+
path: "/customer.Customer/verifyOtp",
|
|
26
35
|
requestStream: false,
|
|
27
36
|
responseStream: false,
|
|
28
37
|
requestSerialize: (value) => Buffer.from(verifyotp_1.request.encode(value).finish()),
|
|
@@ -30,5 +39,122 @@ exports.CustomerServiceService = {
|
|
|
30
39
|
responseSerialize: (value) => Buffer.from(verifyotp_1.response.encode(value).finish()),
|
|
31
40
|
responseDeserialize: (value) => verifyotp_1.response.decode(value),
|
|
32
41
|
},
|
|
42
|
+
setmpin: {
|
|
43
|
+
path: "/customer.Customer/setmpin",
|
|
44
|
+
requestStream: false,
|
|
45
|
+
responseStream: false,
|
|
46
|
+
requestSerialize: (value) => Buffer.from(setmpin_1.request.encode(value).finish()),
|
|
47
|
+
requestDeserialize: (value) => setmpin_1.request.decode(value),
|
|
48
|
+
responseSerialize: (value) => Buffer.from(setmpin_1.response.encode(value).finish()),
|
|
49
|
+
responseDeserialize: (value) => setmpin_1.response.decode(value),
|
|
50
|
+
},
|
|
51
|
+
getstep: {
|
|
52
|
+
path: "/customer.Customer/getstep",
|
|
53
|
+
requestStream: false,
|
|
54
|
+
responseStream: false,
|
|
55
|
+
requestSerialize: (value) => Buffer.from(getstep_1.request.encode(value).finish()),
|
|
56
|
+
requestDeserialize: (value) => getstep_1.request.decode(value),
|
|
57
|
+
responseSerialize: (value) => Buffer.from(getstep_1.response.encode(value).finish()),
|
|
58
|
+
responseDeserialize: (value) => getstep_1.response.decode(value),
|
|
59
|
+
},
|
|
60
|
+
step1: {
|
|
61
|
+
path: "/customer.Customer/step1",
|
|
62
|
+
requestStream: false,
|
|
63
|
+
responseStream: false,
|
|
64
|
+
requestSerialize: (value) => Buffer.from(step1_1.request.encode(value).finish()),
|
|
65
|
+
requestDeserialize: (value) => step1_1.request.decode(value),
|
|
66
|
+
responseSerialize: (value) => Buffer.from(step1_1.response.encode(value).finish()),
|
|
67
|
+
responseDeserialize: (value) => step1_1.response.decode(value),
|
|
68
|
+
},
|
|
69
|
+
step2: {
|
|
70
|
+
path: "/customer.Customer/step2",
|
|
71
|
+
requestStream: false,
|
|
72
|
+
responseStream: false,
|
|
73
|
+
requestSerialize: (value) => Buffer.from(step2_1.request.encode(value).finish()),
|
|
74
|
+
requestDeserialize: (value) => step2_1.request.decode(value),
|
|
75
|
+
responseSerialize: (value) => Buffer.from(step2_1.response.encode(value).finish()),
|
|
76
|
+
responseDeserialize: (value) => step2_1.response.decode(value),
|
|
77
|
+
},
|
|
78
|
+
step3: {
|
|
79
|
+
path: "/customer.Customer/step3",
|
|
80
|
+
requestStream: false,
|
|
81
|
+
responseStream: false,
|
|
82
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
83
|
+
requestDeserialize: (value) => stepstatic_1.request.decode(value),
|
|
84
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
|
|
85
|
+
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
86
|
+
},
|
|
87
|
+
step4: {
|
|
88
|
+
path: "/customer.Customer/step4",
|
|
89
|
+
requestStream: false,
|
|
90
|
+
responseStream: false,
|
|
91
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
92
|
+
requestDeserialize: (value) => stepstatic_1.request.decode(value),
|
|
93
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
|
|
94
|
+
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
95
|
+
},
|
|
96
|
+
step5: {
|
|
97
|
+
path: "/customer.Customer/step5",
|
|
98
|
+
requestStream: false,
|
|
99
|
+
responseStream: false,
|
|
100
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
101
|
+
requestDeserialize: (value) => stepstatic_1.request.decode(value),
|
|
102
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
|
|
103
|
+
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
104
|
+
},
|
|
105
|
+
step6: {
|
|
106
|
+
path: "/customer.Customer/step6",
|
|
107
|
+
requestStream: false,
|
|
108
|
+
responseStream: false,
|
|
109
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
110
|
+
requestDeserialize: (value) => stepstatic_1.request.decode(value),
|
|
111
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
|
|
112
|
+
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
113
|
+
},
|
|
114
|
+
step7: {
|
|
115
|
+
path: "/customer.Customer/step7",
|
|
116
|
+
requestStream: false,
|
|
117
|
+
responseStream: false,
|
|
118
|
+
requestSerialize: (value) => Buffer.from(step7_1.request.encode(value).finish()),
|
|
119
|
+
requestDeserialize: (value) => step7_1.request.decode(value),
|
|
120
|
+
responseSerialize: (value) => Buffer.from(step7_1.response.encode(value).finish()),
|
|
121
|
+
responseDeserialize: (value) => step7_1.response.decode(value),
|
|
122
|
+
},
|
|
123
|
+
step8: {
|
|
124
|
+
path: "/customer.Customer/step8",
|
|
125
|
+
requestStream: false,
|
|
126
|
+
responseStream: false,
|
|
127
|
+
requestSerialize: (value) => Buffer.from(step8_1.request.encode(value).finish()),
|
|
128
|
+
requestDeserialize: (value) => step8_1.request.decode(value),
|
|
129
|
+
responseSerialize: (value) => Buffer.from(step8_1.response.encode(value).finish()),
|
|
130
|
+
responseDeserialize: (value) => step8_1.response.decode(value),
|
|
131
|
+
},
|
|
132
|
+
step9: {
|
|
133
|
+
path: "/customer.Customer/step9",
|
|
134
|
+
requestStream: false,
|
|
135
|
+
responseStream: false,
|
|
136
|
+
requestSerialize: (value) => Buffer.from(step9_1.request.encode(value).finish()),
|
|
137
|
+
requestDeserialize: (value) => step9_1.request.decode(value),
|
|
138
|
+
responseSerialize: (value) => Buffer.from(step9_1.response.encode(value).finish()),
|
|
139
|
+
responseDeserialize: (value) => step9_1.response.decode(value),
|
|
140
|
+
},
|
|
141
|
+
step10: {
|
|
142
|
+
path: "/customer.Customer/step10",
|
|
143
|
+
requestStream: false,
|
|
144
|
+
responseStream: false,
|
|
145
|
+
requestSerialize: (value) => Buffer.from(step10_1.request.encode(value).finish()),
|
|
146
|
+
requestDeserialize: (value) => step10_1.request.decode(value),
|
|
147
|
+
responseSerialize: (value) => Buffer.from(step10_1.response.encode(value).finish()),
|
|
148
|
+
responseDeserialize: (value) => step10_1.response.decode(value),
|
|
149
|
+
},
|
|
150
|
+
step11: {
|
|
151
|
+
path: "/customer.Customer/step11",
|
|
152
|
+
requestStream: false,
|
|
153
|
+
responseStream: false,
|
|
154
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
155
|
+
requestDeserialize: (value) => stepstatic_1.request.decode(value),
|
|
156
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
|
|
157
|
+
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
158
|
+
},
|
|
33
159
|
};
|
|
34
|
-
exports.
|
|
160
|
+
exports.CustomerClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.CustomerService, "customer.Customer");
|
package/ts/example.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
2
|
import _m0 from "protobufjs/minimal";
|
|
4
3
|
export declare const protobufPackage = "exampleService";
|
|
@@ -10,50 +9,23 @@ export interface ExampleResponse {
|
|
|
10
9
|
message: string;
|
|
11
10
|
id: number;
|
|
12
11
|
name: string;
|
|
12
|
+
status: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const ExampleRequest: {
|
|
15
15
|
encode(message: ExampleRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
16
|
decode(input: _m0.Reader | Uint8Array, length?: number): ExampleRequest;
|
|
17
17
|
fromJSON(object: any): ExampleRequest;
|
|
18
18
|
toJSON(message: ExampleRequest): unknown;
|
|
19
|
-
create<I extends
|
|
20
|
-
|
|
21
|
-
id?: number | undefined;
|
|
22
|
-
} & {
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
id?: number | undefined;
|
|
25
|
-
} & { [K in Exclude<keyof I, keyof ExampleRequest>]: never; }>(base?: I): ExampleRequest;
|
|
26
|
-
fromPartial<I_1 extends {
|
|
27
|
-
name?: string | undefined;
|
|
28
|
-
id?: number | undefined;
|
|
29
|
-
} & {
|
|
30
|
-
name?: string | undefined;
|
|
31
|
-
id?: number | undefined;
|
|
32
|
-
} & { [K_1 in Exclude<keyof I_1, keyof ExampleRequest>]: never; }>(object: I_1): ExampleRequest;
|
|
19
|
+
create<I extends Exact<DeepPartial<ExampleRequest>, I>>(base?: I): ExampleRequest;
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<ExampleRequest>, I>>(object: I): ExampleRequest;
|
|
33
21
|
};
|
|
34
22
|
export declare const ExampleResponse: {
|
|
35
23
|
encode(message: ExampleResponse, writer?: _m0.Writer): _m0.Writer;
|
|
36
24
|
decode(input: _m0.Reader | Uint8Array, length?: number): ExampleResponse;
|
|
37
25
|
fromJSON(object: any): ExampleResponse;
|
|
38
26
|
toJSON(message: ExampleResponse): unknown;
|
|
39
|
-
create<I extends
|
|
40
|
-
|
|
41
|
-
id?: number | undefined;
|
|
42
|
-
name?: string | undefined;
|
|
43
|
-
} & {
|
|
44
|
-
message?: string | undefined;
|
|
45
|
-
id?: number | undefined;
|
|
46
|
-
name?: string | undefined;
|
|
47
|
-
} & { [K in Exclude<keyof I, keyof ExampleResponse>]: never; }>(base?: I): ExampleResponse;
|
|
48
|
-
fromPartial<I_1 extends {
|
|
49
|
-
message?: string | undefined;
|
|
50
|
-
id?: number | undefined;
|
|
51
|
-
name?: string | undefined;
|
|
52
|
-
} & {
|
|
53
|
-
message?: string | undefined;
|
|
54
|
-
id?: number | undefined;
|
|
55
|
-
name?: string | undefined;
|
|
56
|
-
} & { [K_1 in Exclude<keyof I_1, keyof ExampleResponse>]: never; }>(object: I_1): ExampleResponse;
|
|
27
|
+
create<I extends Exact<DeepPartial<ExampleResponse>, I>>(base?: I): ExampleResponse;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<ExampleResponse>, I>>(object: I): ExampleResponse;
|
|
57
29
|
};
|
|
58
30
|
export type ExampleService = typeof ExampleService;
|
|
59
31
|
export declare const ExampleService: {
|
package/ts/example.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: example.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -80,7 +80,7 @@ exports.ExampleRequest = {
|
|
|
80
80
|
},
|
|
81
81
|
};
|
|
82
82
|
function createBaseExampleResponse() {
|
|
83
|
-
return { message: "", id: 0, name: "" };
|
|
83
|
+
return { message: "", id: 0, name: "", status: "" };
|
|
84
84
|
}
|
|
85
85
|
exports.ExampleResponse = {
|
|
86
86
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -93,6 +93,9 @@ exports.ExampleResponse = {
|
|
|
93
93
|
if (message.name !== "") {
|
|
94
94
|
writer.uint32(26).string(message.name);
|
|
95
95
|
}
|
|
96
|
+
if (message.status !== "") {
|
|
97
|
+
writer.uint32(34).string(message.status);
|
|
98
|
+
}
|
|
96
99
|
return writer;
|
|
97
100
|
},
|
|
98
101
|
decode(input, length) {
|
|
@@ -120,6 +123,12 @@ exports.ExampleResponse = {
|
|
|
120
123
|
}
|
|
121
124
|
message.name = reader.string();
|
|
122
125
|
continue;
|
|
126
|
+
case 4:
|
|
127
|
+
if (tag !== 34) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
message.status = reader.string();
|
|
131
|
+
continue;
|
|
123
132
|
}
|
|
124
133
|
if ((tag & 7) === 4 || tag === 0) {
|
|
125
134
|
break;
|
|
@@ -133,6 +142,7 @@ exports.ExampleResponse = {
|
|
|
133
142
|
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
134
143
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
135
144
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
145
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
136
146
|
};
|
|
137
147
|
},
|
|
138
148
|
toJSON(message) {
|
|
@@ -146,6 +156,9 @@ exports.ExampleResponse = {
|
|
|
146
156
|
if (message.name !== "") {
|
|
147
157
|
obj.name = message.name;
|
|
148
158
|
}
|
|
159
|
+
if (message.status !== "") {
|
|
160
|
+
obj.status = message.status;
|
|
161
|
+
}
|
|
149
162
|
return obj;
|
|
150
163
|
},
|
|
151
164
|
create(base) {
|
|
@@ -156,6 +169,7 @@ exports.ExampleResponse = {
|
|
|
156
169
|
message.message = object.message ?? "";
|
|
157
170
|
message.id = object.id ?? 0;
|
|
158
171
|
message.name = object.name ?? "";
|
|
172
|
+
message.status = object.status ?? "";
|
|
159
173
|
return message;
|
|
160
174
|
},
|
|
161
175
|
};
|
package/proto/customer.proto
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package customer;
|
|
4
|
-
|
|
5
|
-
import "customer/sendotp.proto";
|
|
6
|
-
import "customer/verifyotp.proto";
|
|
7
|
-
|
|
8
|
-
service CustomerService {
|
|
9
|
-
rpc sendOtp(.customer.sendotp.request) returns (.customer.sendotp.response) {}
|
|
10
|
-
rpc verifyOtp(.customer.verifyotp.request) returns (.customer.verifyotp.response) {}
|
|
11
|
-
}
|
package/proto/example.proto
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package exampleService;
|
|
4
|
-
|
|
5
|
-
service Example {
|
|
6
|
-
rpc GetExample (ExampleRequest) returns (ExampleResponse);
|
|
7
|
-
rpc SetExample (ExampleRequest) returns (ExampleResponse);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
message ExampleRequest {
|
|
11
|
-
string name = 1;
|
|
12
|
-
int32 id = 2;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
message ExampleResponse {
|
|
16
|
-
string message = 1;
|
|
17
|
-
int32 id = 2 ;
|
|
18
|
-
string name = 3;
|
|
19
|
-
}
|
package/proto/user/getUser.proto
DELETED
package/proto/user.proto
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
package userservice;
|
|
4
|
-
|
|
5
|
-
import "user/getUser.proto";
|
|
6
|
-
import "user/createUser.proto";
|
|
7
|
-
|
|
8
|
-
service UserService {
|
|
9
|
-
rpc get(.user.get.request) returns (.user.get.response) {}
|
|
10
|
-
rpc create(.user.create.request) returns (.user.create.response) {}
|
|
11
|
-
}
|