@stashfin/grpc 1.2.178 → 1.2.181
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
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getappsubmittedscreen";
|
|
3
|
+
export interface getAppSubmittedRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getAppSubmittedResponse {
|
|
6
|
+
text: string;
|
|
7
|
+
description: string;
|
|
8
|
+
do_more: doMore[];
|
|
9
|
+
}
|
|
10
|
+
export interface doMore {
|
|
11
|
+
icon: string;
|
|
12
|
+
text: string;
|
|
13
|
+
description: string;
|
|
14
|
+
action: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const getAppSubmittedRequest: {
|
|
17
|
+
encode(_: getAppSubmittedRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getAppSubmittedRequest;
|
|
19
|
+
fromJSON(_: any): getAppSubmittedRequest;
|
|
20
|
+
toJSON(_: getAppSubmittedRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getAppSubmittedRequest>, I>>(base?: I): getAppSubmittedRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getAppSubmittedRequest>, I>>(_: I): getAppSubmittedRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const getAppSubmittedResponse: {
|
|
25
|
+
encode(message: getAppSubmittedResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getAppSubmittedResponse;
|
|
27
|
+
fromJSON(object: any): getAppSubmittedResponse;
|
|
28
|
+
toJSON(message: getAppSubmittedResponse): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<getAppSubmittedResponse>, I>>(base?: I): getAppSubmittedResponse;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<getAppSubmittedResponse>, I>>(object: I): getAppSubmittedResponse;
|
|
31
|
+
};
|
|
32
|
+
export declare const doMore: {
|
|
33
|
+
encode(message: doMore, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): doMore;
|
|
35
|
+
fromJSON(object: any): doMore;
|
|
36
|
+
toJSON(message: doMore): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<doMore>, I>>(base?: I): doMore;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<doMore>, I>>(object: I): doMore;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.28.0
|
|
6
|
+
// source: customers/getappsubmittedscreen.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.doMore = exports.getAppSubmittedResponse = exports.getAppSubmittedRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getappsubmittedscreen";
|
|
15
|
+
function createBasegetAppSubmittedRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getAppSubmittedRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetAppSubmittedRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getAppSubmittedRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetAppSubmittedRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetAppSubmittedResponse() {
|
|
53
|
+
return { text: "", description: "", do_more: [] };
|
|
54
|
+
}
|
|
55
|
+
exports.getAppSubmittedResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.text !== "") {
|
|
58
|
+
writer.uint32(10).string(message.text);
|
|
59
|
+
}
|
|
60
|
+
if (message.description !== "") {
|
|
61
|
+
writer.uint32(18).string(message.description);
|
|
62
|
+
}
|
|
63
|
+
for (const v of message.do_more) {
|
|
64
|
+
exports.doMore.encode(v, writer.uint32(26).fork()).ldelim();
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBasegetAppSubmittedResponse();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
if (tag !== 10) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.text = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
case 2:
|
|
82
|
+
if (tag !== 18) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.description = reader.string();
|
|
86
|
+
continue;
|
|
87
|
+
case 3:
|
|
88
|
+
if (tag !== 26) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.do_more.push(exports.doMore.decode(reader, reader.uint32()));
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
reader.skipType(tag & 7);
|
|
98
|
+
}
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
fromJSON(object) {
|
|
102
|
+
return {
|
|
103
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
104
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
105
|
+
do_more: globalThis.Array.isArray(object?.do_more) ? object.do_more.map((e) => exports.doMore.fromJSON(e)) : [],
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
toJSON(message) {
|
|
109
|
+
const obj = {};
|
|
110
|
+
if (message.text !== "") {
|
|
111
|
+
obj.text = message.text;
|
|
112
|
+
}
|
|
113
|
+
if (message.description !== "") {
|
|
114
|
+
obj.description = message.description;
|
|
115
|
+
}
|
|
116
|
+
if (message.do_more?.length) {
|
|
117
|
+
obj.do_more = message.do_more.map((e) => exports.doMore.toJSON(e));
|
|
118
|
+
}
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
create(base) {
|
|
122
|
+
return exports.getAppSubmittedResponse.fromPartial(base ?? {});
|
|
123
|
+
},
|
|
124
|
+
fromPartial(object) {
|
|
125
|
+
const message = createBasegetAppSubmittedResponse();
|
|
126
|
+
message.text = object.text ?? "";
|
|
127
|
+
message.description = object.description ?? "";
|
|
128
|
+
message.do_more = object.do_more?.map((e) => exports.doMore.fromPartial(e)) || [];
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
function createBasedoMore() {
|
|
133
|
+
return { icon: "", text: "", description: "", action: "" };
|
|
134
|
+
}
|
|
135
|
+
exports.doMore = {
|
|
136
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
137
|
+
if (message.icon !== "") {
|
|
138
|
+
writer.uint32(10).string(message.icon);
|
|
139
|
+
}
|
|
140
|
+
if (message.text !== "") {
|
|
141
|
+
writer.uint32(18).string(message.text);
|
|
142
|
+
}
|
|
143
|
+
if (message.description !== "") {
|
|
144
|
+
writer.uint32(26).string(message.description);
|
|
145
|
+
}
|
|
146
|
+
if (message.action !== "") {
|
|
147
|
+
writer.uint32(34).string(message.action);
|
|
148
|
+
}
|
|
149
|
+
return writer;
|
|
150
|
+
},
|
|
151
|
+
decode(input, length) {
|
|
152
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
153
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
154
|
+
const message = createBasedoMore();
|
|
155
|
+
while (reader.pos < end) {
|
|
156
|
+
const tag = reader.uint32();
|
|
157
|
+
switch (tag >>> 3) {
|
|
158
|
+
case 1:
|
|
159
|
+
if (tag !== 10) {
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
message.icon = reader.string();
|
|
163
|
+
continue;
|
|
164
|
+
case 2:
|
|
165
|
+
if (tag !== 18) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
message.text = reader.string();
|
|
169
|
+
continue;
|
|
170
|
+
case 3:
|
|
171
|
+
if (tag !== 26) {
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
message.description = reader.string();
|
|
175
|
+
continue;
|
|
176
|
+
case 4:
|
|
177
|
+
if (tag !== 34) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
message.action = reader.string();
|
|
181
|
+
continue;
|
|
182
|
+
}
|
|
183
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
reader.skipType(tag & 7);
|
|
187
|
+
}
|
|
188
|
+
return message;
|
|
189
|
+
},
|
|
190
|
+
fromJSON(object) {
|
|
191
|
+
return {
|
|
192
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
193
|
+
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
194
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
195
|
+
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
toJSON(message) {
|
|
199
|
+
const obj = {};
|
|
200
|
+
if (message.icon !== "") {
|
|
201
|
+
obj.icon = message.icon;
|
|
202
|
+
}
|
|
203
|
+
if (message.text !== "") {
|
|
204
|
+
obj.text = message.text;
|
|
205
|
+
}
|
|
206
|
+
if (message.description !== "") {
|
|
207
|
+
obj.description = message.description;
|
|
208
|
+
}
|
|
209
|
+
if (message.action !== "") {
|
|
210
|
+
obj.action = message.action;
|
|
211
|
+
}
|
|
212
|
+
return obj;
|
|
213
|
+
},
|
|
214
|
+
create(base) {
|
|
215
|
+
return exports.doMore.fromPartial(base ?? {});
|
|
216
|
+
},
|
|
217
|
+
fromPartial(object) {
|
|
218
|
+
const message = createBasedoMore();
|
|
219
|
+
message.icon = object.icon ?? "";
|
|
220
|
+
message.text = object.text ?? "";
|
|
221
|
+
message.description = object.description ?? "";
|
|
222
|
+
message.action = object.action ?? "";
|
|
223
|
+
return message;
|
|
224
|
+
},
|
|
225
|
+
};
|
|
226
|
+
function isSet(value) {
|
|
227
|
+
return value !== null && value !== undefined;
|
|
228
|
+
}
|
|
@@ -63,12 +63,12 @@ exports.saveLimitRequest = {
|
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
function createBasesaveLimitResponse() {
|
|
66
|
-
return {
|
|
66
|
+
return { next_step: "" };
|
|
67
67
|
}
|
|
68
68
|
exports.saveLimitResponse = {
|
|
69
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.
|
|
71
|
-
writer.uint32(10).string(message.
|
|
70
|
+
if (message.next_step !== "") {
|
|
71
|
+
writer.uint32(10).string(message.next_step);
|
|
72
72
|
}
|
|
73
73
|
return writer;
|
|
74
74
|
},
|
|
@@ -83,7 +83,7 @@ exports.saveLimitResponse = {
|
|
|
83
83
|
if (tag !== 10) {
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
|
-
message.
|
|
86
|
+
message.next_step = reader.string();
|
|
87
87
|
continue;
|
|
88
88
|
}
|
|
89
89
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -94,12 +94,12 @@ exports.saveLimitResponse = {
|
|
|
94
94
|
return message;
|
|
95
95
|
},
|
|
96
96
|
fromJSON(object) {
|
|
97
|
-
return {
|
|
97
|
+
return { next_step: isSet(object.next_step) ? globalThis.String(object.next_step) : "" };
|
|
98
98
|
},
|
|
99
99
|
toJSON(message) {
|
|
100
100
|
const obj = {};
|
|
101
|
-
if (message.
|
|
102
|
-
obj.
|
|
101
|
+
if (message.next_step !== "") {
|
|
102
|
+
obj.next_step = message.next_step;
|
|
103
103
|
}
|
|
104
104
|
return obj;
|
|
105
105
|
},
|
|
@@ -108,7 +108,7 @@ exports.saveLimitResponse = {
|
|
|
108
108
|
},
|
|
109
109
|
fromPartial(object) {
|
|
110
110
|
const message = createBasesaveLimitResponse();
|
|
111
|
-
message.
|
|
111
|
+
message.next_step = object.next_step ?? "";
|
|
112
112
|
return message;
|
|
113
113
|
},
|
|
114
114
|
};
|
package/ts/customers.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { fetchRCProfileRequest, fetchRCProfileResponse } from "./customers/fetch
|
|
|
17
17
|
import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
|
|
18
18
|
import { forgotMpinVerifyRequest, forgotMpinVerifyResponse } from "./customers/forgotmpinverify";
|
|
19
19
|
import { getAddressRequest, getAddressResponse } from "./customers/getaddresslist";
|
|
20
|
+
import { getAppSubmittedRequest, getAppSubmittedResponse } from "./customers/getappsubmittedscreen";
|
|
20
21
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
21
22
|
import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
|
|
22
23
|
import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
|
|
@@ -591,6 +592,15 @@ export declare const customersService: {
|
|
|
591
592
|
readonly responseSerialize: (value: getAddressResponse) => Buffer;
|
|
592
593
|
readonly responseDeserialize: (value: Buffer) => getAddressResponse;
|
|
593
594
|
};
|
|
595
|
+
readonly getAppSubmittedScreen: {
|
|
596
|
+
readonly path: "/service.customers/getAppSubmittedScreen";
|
|
597
|
+
readonly requestStream: false;
|
|
598
|
+
readonly responseStream: false;
|
|
599
|
+
readonly requestSerialize: (value: getAppSubmittedRequest) => Buffer;
|
|
600
|
+
readonly requestDeserialize: (value: Buffer) => getAppSubmittedRequest;
|
|
601
|
+
readonly responseSerialize: (value: getAppSubmittedResponse) => Buffer;
|
|
602
|
+
readonly responseDeserialize: (value: Buffer) => getAppSubmittedResponse;
|
|
603
|
+
};
|
|
594
604
|
};
|
|
595
605
|
export interface customersServer extends UntypedServiceImplementation {
|
|
596
606
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -653,6 +663,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
653
663
|
getOccupationList: handleUnaryCall<getOccupationListRequest, getOccupationListResponse>;
|
|
654
664
|
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
655
665
|
getAddressList: handleUnaryCall<getAddressRequest, getAddressResponse>;
|
|
666
|
+
getAppSubmittedScreen: handleUnaryCall<getAppSubmittedRequest, getAppSubmittedResponse>;
|
|
656
667
|
}
|
|
657
668
|
export interface customersClient extends Client {
|
|
658
669
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -833,6 +844,9 @@ export interface customersClient extends Client {
|
|
|
833
844
|
getAddressList(request: getAddressRequest, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
834
845
|
getAddressList(request: getAddressRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
835
846
|
getAddressList(request: getAddressRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
847
|
+
getAppSubmittedScreen(request: getAppSubmittedRequest, callback: (error: ServiceError | null, response: getAppSubmittedResponse) => void): ClientUnaryCall;
|
|
848
|
+
getAppSubmittedScreen(request: getAppSubmittedRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAppSubmittedResponse) => void): ClientUnaryCall;
|
|
849
|
+
getAppSubmittedScreen(request: getAppSubmittedRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAppSubmittedResponse) => void): ClientUnaryCall;
|
|
836
850
|
}
|
|
837
851
|
export declare const customersClient: {
|
|
838
852
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -26,6 +26,7 @@ const fetchrcprofile_1 = require("./customers/fetchrcprofile");
|
|
|
26
26
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
27
27
|
const forgotmpinverify_1 = require("./customers/forgotmpinverify");
|
|
28
28
|
const getaddresslist_1 = require("./customers/getaddresslist");
|
|
29
|
+
const getappsubmittedscreen_1 = require("./customers/getappsubmittedscreen");
|
|
29
30
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
30
31
|
const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
31
32
|
const getcities_1 = require("./customers/getcities");
|
|
@@ -599,5 +600,14 @@ exports.customersService = {
|
|
|
599
600
|
responseSerialize: (value) => Buffer.from(getaddresslist_1.getAddressResponse.encode(value).finish()),
|
|
600
601
|
responseDeserialize: (value) => getaddresslist_1.getAddressResponse.decode(value),
|
|
601
602
|
},
|
|
603
|
+
getAppSubmittedScreen: {
|
|
604
|
+
path: "/service.customers/getAppSubmittedScreen",
|
|
605
|
+
requestStream: false,
|
|
606
|
+
responseStream: false,
|
|
607
|
+
requestSerialize: (value) => Buffer.from(getappsubmittedscreen_1.getAppSubmittedRequest.encode(value).finish()),
|
|
608
|
+
requestDeserialize: (value) => getappsubmittedscreen_1.getAppSubmittedRequest.decode(value),
|
|
609
|
+
responseSerialize: (value) => Buffer.from(getappsubmittedscreen_1.getAppSubmittedResponse.encode(value).finish()),
|
|
610
|
+
responseDeserialize: (value) => getappsubmittedscreen_1.getAppSubmittedResponse.decode(value),
|
|
611
|
+
},
|
|
602
612
|
};
|
|
603
613
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|