@stashfin/grpc 1.0.23 → 1.0.25
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 +1 -1
- package/ts/{customer → customers}/getprofile.d.ts +1 -1
- package/ts/{customer → customers}/getprofile.js +2 -2
- package/ts/{customer → customers}/getstep.d.ts +1 -1
- package/ts/{customer → customers}/getstep.js +2 -2
- package/ts/customers/profilebasic.d.ts +38 -0
- package/ts/customers/profilebasic.js +161 -0
- package/ts/{customer → customers}/profileupdatetnc.d.ts +1 -1
- package/ts/{customer → customers}/profileupdatetnc.js +2 -2
- package/ts/customers/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/{customer → customers}/sendotp.d.ts +1 -1
- package/ts/{customer → customers}/sendotp.js +2 -2
- package/ts/{customer → customers}/setmpin.d.ts +1 -1
- package/ts/{customer → customers}/setmpin.js +2 -2
- package/ts/{customer → customers}/step1.d.ts +1 -1
- package/ts/{customer → customers}/step1.js +2 -2
- package/ts/{customer → customers}/step10.d.ts +1 -1
- package/ts/{customer → customers}/step10.js +2 -2
- package/ts/{customer → customers}/step2.d.ts +1 -1
- package/ts/{customer → customers}/step2.js +2 -2
- package/ts/{customer → customers}/step7.d.ts +1 -1
- package/ts/{customer → customers}/step7.js +2 -2
- package/ts/{customer → customers}/step8.d.ts +1 -1
- package/ts/{customer → customers}/step8.js +2 -2
- package/ts/{customer → customers}/step9.d.ts +1 -1
- package/ts/{customer → customers}/step9.js +2 -2
- package/ts/{customer → customers}/stepstatic.d.ts +1 -1
- package/ts/{customer → customers}/stepstatic.js +2 -2
- package/ts/{customer → customers}/verifympin.d.ts +1 -1
- package/ts/{customer → customers}/verifympin.js +2 -2
- package/ts/{customer → customers}/verifyotp.d.ts +1 -1
- package/ts/{customer → customers}/verifyotp.js +5 -5
- package/ts/{customer.d.ts → customers.d.ts} +148 -120
- package/ts/{customer.js → customers.js} +57 -37
- package/ts/example.d.ts +3 -3
- package/ts/example.js +4 -4
|
@@ -3,29 +3,31 @@
|
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.180.0
|
|
5
5
|
// protoc v3.20.3
|
|
6
|
-
// source:
|
|
6
|
+
// source: customers.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.customersClient = exports.customersService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
-
const getprofile_1 = require("./
|
|
12
|
-
const getstep_1 = require("./
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
const getprofile_1 = require("./customers/getprofile");
|
|
12
|
+
const getstep_1 = require("./customers/getstep");
|
|
13
|
+
const profilebasic_1 = require("./customers/profilebasic");
|
|
14
|
+
const profileupdatetnc_1 = require("./customers/profileupdatetnc");
|
|
15
|
+
const sendemailtoken_1 = require("./customers/sendemailtoken");
|
|
16
|
+
const sendotp_1 = require("./customers/sendotp");
|
|
17
|
+
const setmpin_1 = require("./customers/setmpin");
|
|
18
|
+
const step1_1 = require("./customers/step1");
|
|
19
|
+
const step10_1 = require("./customers/step10");
|
|
20
|
+
const step2_1 = require("./customers/step2");
|
|
21
|
+
const step7_1 = require("./customers/step7");
|
|
22
|
+
const step8_1 = require("./customers/step8");
|
|
23
|
+
const step9_1 = require("./customers/step9");
|
|
24
|
+
const stepstatic_1 = require("./customers/stepstatic");
|
|
25
|
+
const verifympin_1 = require("./customers/verifympin");
|
|
26
|
+
const verifyotp_1 = require("./customers/verifyotp");
|
|
27
|
+
exports.protobufPackage = "service";
|
|
28
|
+
exports.customersService = {
|
|
27
29
|
sendOtp: {
|
|
28
|
-
path: "/
|
|
30
|
+
path: "/service.customers/sendOtp",
|
|
29
31
|
requestStream: false,
|
|
30
32
|
responseStream: false,
|
|
31
33
|
requestSerialize: (value) => Buffer.from(sendotp_1.request.encode(value).finish()),
|
|
@@ -34,7 +36,7 @@ exports.CustomerService = {
|
|
|
34
36
|
responseDeserialize: (value) => sendotp_1.response.decode(value),
|
|
35
37
|
},
|
|
36
38
|
verifyOtp: {
|
|
37
|
-
path: "/
|
|
39
|
+
path: "/service.customers/verifyOtp",
|
|
38
40
|
requestStream: false,
|
|
39
41
|
responseStream: false,
|
|
40
42
|
requestSerialize: (value) => Buffer.from(verifyotp_1.request.encode(value).finish()),
|
|
@@ -43,7 +45,7 @@ exports.CustomerService = {
|
|
|
43
45
|
responseDeserialize: (value) => verifyotp_1.response.decode(value),
|
|
44
46
|
},
|
|
45
47
|
setmpin: {
|
|
46
|
-
path: "/
|
|
48
|
+
path: "/service.customers/setmpin",
|
|
47
49
|
requestStream: false,
|
|
48
50
|
responseStream: false,
|
|
49
51
|
requestSerialize: (value) => Buffer.from(setmpin_1.request.encode(value).finish()),
|
|
@@ -52,7 +54,7 @@ exports.CustomerService = {
|
|
|
52
54
|
responseDeserialize: (value) => setmpin_1.response.decode(value),
|
|
53
55
|
},
|
|
54
56
|
verifyMpin: {
|
|
55
|
-
path: "/
|
|
57
|
+
path: "/service.customers/verifyMpin",
|
|
56
58
|
requestStream: false,
|
|
57
59
|
responseStream: false,
|
|
58
60
|
requestSerialize: (value) => Buffer.from(verifympin_1.request.encode(value).finish()),
|
|
@@ -61,7 +63,7 @@ exports.CustomerService = {
|
|
|
61
63
|
responseDeserialize: (value) => verifympin_1.response.decode(value),
|
|
62
64
|
},
|
|
63
65
|
profileUpdatetnc: {
|
|
64
|
-
path: "/
|
|
66
|
+
path: "/service.customers/profileUpdatetnc",
|
|
65
67
|
requestStream: false,
|
|
66
68
|
responseStream: false,
|
|
67
69
|
requestSerialize: (value) => Buffer.from(profileupdatetnc_1.request.encode(value).finish()),
|
|
@@ -69,8 +71,17 @@ exports.CustomerService = {
|
|
|
69
71
|
responseSerialize: (value) => Buffer.from(profileupdatetnc_1.response.encode(value).finish()),
|
|
70
72
|
responseDeserialize: (value) => profileupdatetnc_1.response.decode(value),
|
|
71
73
|
},
|
|
74
|
+
updateProfileBasic: {
|
|
75
|
+
path: "/service.customers/updateProfileBasic",
|
|
76
|
+
requestStream: false,
|
|
77
|
+
responseStream: false,
|
|
78
|
+
requestSerialize: (value) => Buffer.from(profilebasic_1.request.encode(value).finish()),
|
|
79
|
+
requestDeserialize: (value) => profilebasic_1.request.decode(value),
|
|
80
|
+
responseSerialize: (value) => Buffer.from(profilebasic_1.response.encode(value).finish()),
|
|
81
|
+
responseDeserialize: (value) => profilebasic_1.response.decode(value),
|
|
82
|
+
},
|
|
72
83
|
getProfile: {
|
|
73
|
-
path: "/
|
|
84
|
+
path: "/service.customers/getProfile",
|
|
74
85
|
requestStream: false,
|
|
75
86
|
responseStream: false,
|
|
76
87
|
requestSerialize: (value) => Buffer.from(getprofile_1.request.encode(value).finish()),
|
|
@@ -79,7 +90,7 @@ exports.CustomerService = {
|
|
|
79
90
|
responseDeserialize: (value) => getprofile_1.response.decode(value),
|
|
80
91
|
},
|
|
81
92
|
getstep: {
|
|
82
|
-
path: "/
|
|
93
|
+
path: "/service.customers/getstep",
|
|
83
94
|
requestStream: false,
|
|
84
95
|
responseStream: false,
|
|
85
96
|
requestSerialize: (value) => Buffer.from(getstep_1.request.encode(value).finish()),
|
|
@@ -88,7 +99,7 @@ exports.CustomerService = {
|
|
|
88
99
|
responseDeserialize: (value) => getstep_1.response.decode(value),
|
|
89
100
|
},
|
|
90
101
|
step1: {
|
|
91
|
-
path: "/
|
|
102
|
+
path: "/service.customers/step1",
|
|
92
103
|
requestStream: false,
|
|
93
104
|
responseStream: false,
|
|
94
105
|
requestSerialize: (value) => Buffer.from(step1_1.request.encode(value).finish()),
|
|
@@ -97,7 +108,7 @@ exports.CustomerService = {
|
|
|
97
108
|
responseDeserialize: (value) => step1_1.response.decode(value),
|
|
98
109
|
},
|
|
99
110
|
step2: {
|
|
100
|
-
path: "/
|
|
111
|
+
path: "/service.customers/step2",
|
|
101
112
|
requestStream: false,
|
|
102
113
|
responseStream: false,
|
|
103
114
|
requestSerialize: (value) => Buffer.from(step2_1.request.encode(value).finish()),
|
|
@@ -106,7 +117,7 @@ exports.CustomerService = {
|
|
|
106
117
|
responseDeserialize: (value) => step2_1.response.decode(value),
|
|
107
118
|
},
|
|
108
119
|
step3: {
|
|
109
|
-
path: "/
|
|
120
|
+
path: "/service.customers/step3",
|
|
110
121
|
requestStream: false,
|
|
111
122
|
responseStream: false,
|
|
112
123
|
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
@@ -115,7 +126,7 @@ exports.CustomerService = {
|
|
|
115
126
|
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
116
127
|
},
|
|
117
128
|
step4: {
|
|
118
|
-
path: "/
|
|
129
|
+
path: "/service.customers/step4",
|
|
119
130
|
requestStream: false,
|
|
120
131
|
responseStream: false,
|
|
121
132
|
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
@@ -124,7 +135,7 @@ exports.CustomerService = {
|
|
|
124
135
|
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
125
136
|
},
|
|
126
137
|
step5: {
|
|
127
|
-
path: "/
|
|
138
|
+
path: "/service.customers/step5",
|
|
128
139
|
requestStream: false,
|
|
129
140
|
responseStream: false,
|
|
130
141
|
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
@@ -133,7 +144,7 @@ exports.CustomerService = {
|
|
|
133
144
|
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
134
145
|
},
|
|
135
146
|
step6: {
|
|
136
|
-
path: "/
|
|
147
|
+
path: "/service.customers/step6",
|
|
137
148
|
requestStream: false,
|
|
138
149
|
responseStream: false,
|
|
139
150
|
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
@@ -142,7 +153,7 @@ exports.CustomerService = {
|
|
|
142
153
|
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
143
154
|
},
|
|
144
155
|
step7: {
|
|
145
|
-
path: "/
|
|
156
|
+
path: "/service.customers/step7",
|
|
146
157
|
requestStream: false,
|
|
147
158
|
responseStream: false,
|
|
148
159
|
requestSerialize: (value) => Buffer.from(step7_1.request.encode(value).finish()),
|
|
@@ -151,7 +162,7 @@ exports.CustomerService = {
|
|
|
151
162
|
responseDeserialize: (value) => step7_1.response.decode(value),
|
|
152
163
|
},
|
|
153
164
|
step8: {
|
|
154
|
-
path: "/
|
|
165
|
+
path: "/service.customers/step8",
|
|
155
166
|
requestStream: false,
|
|
156
167
|
responseStream: false,
|
|
157
168
|
requestSerialize: (value) => Buffer.from(step8_1.request.encode(value).finish()),
|
|
@@ -160,7 +171,7 @@ exports.CustomerService = {
|
|
|
160
171
|
responseDeserialize: (value) => step8_1.response.decode(value),
|
|
161
172
|
},
|
|
162
173
|
step9: {
|
|
163
|
-
path: "/
|
|
174
|
+
path: "/service.customers/step9",
|
|
164
175
|
requestStream: false,
|
|
165
176
|
responseStream: false,
|
|
166
177
|
requestSerialize: (value) => Buffer.from(step9_1.request.encode(value).finish()),
|
|
@@ -169,7 +180,7 @@ exports.CustomerService = {
|
|
|
169
180
|
responseDeserialize: (value) => step9_1.response.decode(value),
|
|
170
181
|
},
|
|
171
182
|
step10: {
|
|
172
|
-
path: "/
|
|
183
|
+
path: "/service.customers/step10",
|
|
173
184
|
requestStream: false,
|
|
174
185
|
responseStream: false,
|
|
175
186
|
requestSerialize: (value) => Buffer.from(step10_1.request.encode(value).finish()),
|
|
@@ -178,7 +189,7 @@ exports.CustomerService = {
|
|
|
178
189
|
responseDeserialize: (value) => step10_1.response.decode(value),
|
|
179
190
|
},
|
|
180
191
|
step11: {
|
|
181
|
-
path: "/
|
|
192
|
+
path: "/service.customers/step11",
|
|
182
193
|
requestStream: false,
|
|
183
194
|
responseStream: false,
|
|
184
195
|
requestSerialize: (value) => Buffer.from(stepstatic_1.request.encode(value).finish()),
|
|
@@ -186,5 +197,14 @@ exports.CustomerService = {
|
|
|
186
197
|
responseSerialize: (value) => Buffer.from(stepstatic_1.response.encode(value).finish()),
|
|
187
198
|
responseDeserialize: (value) => stepstatic_1.response.decode(value),
|
|
188
199
|
},
|
|
200
|
+
sendEmailToken: {
|
|
201
|
+
path: "/service.customers/sendEmailToken",
|
|
202
|
+
requestStream: false,
|
|
203
|
+
responseStream: false,
|
|
204
|
+
requestSerialize: (value) => Buffer.from(sendemailtoken_1.request.encode(value).finish()),
|
|
205
|
+
requestDeserialize: (value) => sendemailtoken_1.request.decode(value),
|
|
206
|
+
responseSerialize: (value) => Buffer.from(sendemailtoken_1.response.encode(value).finish()),
|
|
207
|
+
responseDeserialize: (value) => sendemailtoken_1.response.decode(value),
|
|
208
|
+
},
|
|
189
209
|
};
|
|
190
|
-
exports.
|
|
210
|
+
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/example.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
export declare const protobufPackage = "
|
|
3
|
+
export declare const protobufPackage = "service";
|
|
4
4
|
export interface ExampleRequest {
|
|
5
5
|
name: string;
|
|
6
6
|
id: number;
|
|
@@ -30,7 +30,7 @@ export declare const ExampleResponse: {
|
|
|
30
30
|
export type ExampleService = typeof ExampleService;
|
|
31
31
|
export declare const ExampleService: {
|
|
32
32
|
readonly getExample: {
|
|
33
|
-
readonly path: "/
|
|
33
|
+
readonly path: "/service.Example/GetExample";
|
|
34
34
|
readonly requestStream: false;
|
|
35
35
|
readonly responseStream: false;
|
|
36
36
|
readonly requestSerialize: (value: ExampleRequest) => Buffer;
|
|
@@ -39,7 +39,7 @@ export declare const ExampleService: {
|
|
|
39
39
|
readonly responseDeserialize: (value: Buffer) => ExampleResponse;
|
|
40
40
|
};
|
|
41
41
|
readonly setExample: {
|
|
42
|
-
readonly path: "/
|
|
42
|
+
readonly path: "/service.Example/SetExample";
|
|
43
43
|
readonly requestStream: false;
|
|
44
44
|
readonly responseStream: false;
|
|
45
45
|
readonly requestSerialize: (value: ExampleRequest) => Buffer;
|
package/ts/example.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.ExampleClient = exports.ExampleService = exports.ExampleResponse = expor
|
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
-
exports.protobufPackage = "
|
|
15
|
+
exports.protobufPackage = "service";
|
|
16
16
|
function createBaseExampleRequest() {
|
|
17
17
|
return { name: "", id: 0 };
|
|
18
18
|
}
|
|
@@ -175,7 +175,7 @@ exports.ExampleResponse = {
|
|
|
175
175
|
};
|
|
176
176
|
exports.ExampleService = {
|
|
177
177
|
getExample: {
|
|
178
|
-
path: "/
|
|
178
|
+
path: "/service.Example/GetExample",
|
|
179
179
|
requestStream: false,
|
|
180
180
|
responseStream: false,
|
|
181
181
|
requestSerialize: (value) => Buffer.from(exports.ExampleRequest.encode(value).finish()),
|
|
@@ -184,7 +184,7 @@ exports.ExampleService = {
|
|
|
184
184
|
responseDeserialize: (value) => exports.ExampleResponse.decode(value),
|
|
185
185
|
},
|
|
186
186
|
setExample: {
|
|
187
|
-
path: "/
|
|
187
|
+
path: "/service.Example/SetExample",
|
|
188
188
|
requestStream: false,
|
|
189
189
|
responseStream: false,
|
|
190
190
|
requestSerialize: (value) => Buffer.from(exports.ExampleRequest.encode(value).finish()),
|
|
@@ -193,7 +193,7 @@ exports.ExampleService = {
|
|
|
193
193
|
responseDeserialize: (value) => exports.ExampleResponse.decode(value),
|
|
194
194
|
},
|
|
195
195
|
};
|
|
196
|
-
exports.ExampleClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.ExampleService, "
|
|
196
|
+
exports.ExampleClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.ExampleService, "service.Example");
|
|
197
197
|
function isSet(value) {
|
|
198
198
|
return value !== null && value !== undefined;
|
|
199
199
|
}
|