@stashfin/grpc 1.2.82 → 1.2.84
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
|
@@ -2,9 +2,6 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "customers.aa.initiate";
|
|
3
3
|
export interface initiateRequest {
|
|
4
4
|
loan_id: number;
|
|
5
|
-
phone_number: string;
|
|
6
|
-
template_type: string;
|
|
7
|
-
tracking_id: string;
|
|
8
5
|
journey_type: string;
|
|
9
6
|
fip_ids: string[];
|
|
10
7
|
}
|
|
@@ -14,27 +14,18 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "customers.aa.initiate";
|
|
16
16
|
function createBaseinitiateRequest() {
|
|
17
|
-
return { loan_id: 0,
|
|
17
|
+
return { loan_id: 0, journey_type: "", fip_ids: [] };
|
|
18
18
|
}
|
|
19
19
|
exports.initiateRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
21
|
if (message.loan_id !== 0) {
|
|
22
22
|
writer.uint32(8).int64(message.loan_id);
|
|
23
23
|
}
|
|
24
|
-
if (message.phone_number !== "") {
|
|
25
|
-
writer.uint32(18).string(message.phone_number);
|
|
26
|
-
}
|
|
27
|
-
if (message.template_type !== "") {
|
|
28
|
-
writer.uint32(26).string(message.template_type);
|
|
29
|
-
}
|
|
30
|
-
if (message.tracking_id !== "") {
|
|
31
|
-
writer.uint32(34).string(message.tracking_id);
|
|
32
|
-
}
|
|
33
24
|
if (message.journey_type !== "") {
|
|
34
|
-
writer.uint32(
|
|
25
|
+
writer.uint32(18).string(message.journey_type);
|
|
35
26
|
}
|
|
36
27
|
for (const v of message.fip_ids) {
|
|
37
|
-
writer.uint32(
|
|
28
|
+
writer.uint32(26).string(v);
|
|
38
29
|
}
|
|
39
30
|
return writer;
|
|
40
31
|
},
|
|
@@ -55,30 +46,12 @@ exports.initiateRequest = {
|
|
|
55
46
|
if (tag !== 18) {
|
|
56
47
|
break;
|
|
57
48
|
}
|
|
58
|
-
message.
|
|
49
|
+
message.journey_type = reader.string();
|
|
59
50
|
continue;
|
|
60
51
|
case 3:
|
|
61
52
|
if (tag !== 26) {
|
|
62
53
|
break;
|
|
63
54
|
}
|
|
64
|
-
message.template_type = reader.string();
|
|
65
|
-
continue;
|
|
66
|
-
case 4:
|
|
67
|
-
if (tag !== 34) {
|
|
68
|
-
break;
|
|
69
|
-
}
|
|
70
|
-
message.tracking_id = reader.string();
|
|
71
|
-
continue;
|
|
72
|
-
case 5:
|
|
73
|
-
if (tag !== 42) {
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
message.journey_type = reader.string();
|
|
77
|
-
continue;
|
|
78
|
-
case 6:
|
|
79
|
-
if (tag !== 50) {
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
55
|
message.fip_ids.push(reader.string());
|
|
83
56
|
continue;
|
|
84
57
|
}
|
|
@@ -92,9 +65,6 @@ exports.initiateRequest = {
|
|
|
92
65
|
fromJSON(object) {
|
|
93
66
|
return {
|
|
94
67
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
95
|
-
phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
96
|
-
template_type: isSet(object.template_type) ? globalThis.String(object.template_type) : "",
|
|
97
|
-
tracking_id: isSet(object.tracking_id) ? globalThis.String(object.tracking_id) : "",
|
|
98
68
|
journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
|
|
99
69
|
fip_ids: globalThis.Array.isArray(object?.fip_ids) ? object.fip_ids.map((e) => globalThis.String(e)) : [],
|
|
100
70
|
};
|
|
@@ -104,15 +74,6 @@ exports.initiateRequest = {
|
|
|
104
74
|
if (message.loan_id !== 0) {
|
|
105
75
|
obj.loan_id = Math.round(message.loan_id);
|
|
106
76
|
}
|
|
107
|
-
if (message.phone_number !== "") {
|
|
108
|
-
obj.phone_number = message.phone_number;
|
|
109
|
-
}
|
|
110
|
-
if (message.template_type !== "") {
|
|
111
|
-
obj.template_type = message.template_type;
|
|
112
|
-
}
|
|
113
|
-
if (message.tracking_id !== "") {
|
|
114
|
-
obj.tracking_id = message.tracking_id;
|
|
115
|
-
}
|
|
116
77
|
if (message.journey_type !== "") {
|
|
117
78
|
obj.journey_type = message.journey_type;
|
|
118
79
|
}
|
|
@@ -127,9 +88,6 @@ exports.initiateRequest = {
|
|
|
127
88
|
fromPartial(object) {
|
|
128
89
|
const message = createBaseinitiateRequest();
|
|
129
90
|
message.loan_id = object.loan_id ?? 0;
|
|
130
|
-
message.phone_number = object.phone_number ?? "";
|
|
131
|
-
message.template_type = object.template_type ?? "";
|
|
132
|
-
message.tracking_id = object.tracking_id ?? "";
|
|
133
91
|
message.journey_type = object.journey_type ?? "";
|
|
134
92
|
message.fip_ids = object.fip_ids?.map((e) => e) || [];
|
|
135
93
|
return message;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updatelocstatus";
|
|
3
|
+
export interface locStatusRequest {
|
|
4
|
+
loc_disabled: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface locStatusResponse {
|
|
7
|
+
status: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const locStatusRequest: {
|
|
10
|
+
encode(message: locStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): locStatusRequest;
|
|
12
|
+
fromJSON(object: any): locStatusRequest;
|
|
13
|
+
toJSON(message: locStatusRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<locStatusRequest>, I>>(base?: I): locStatusRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<locStatusRequest>, I>>(object: I): locStatusRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const locStatusResponse: {
|
|
18
|
+
encode(message: locStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): locStatusResponse;
|
|
20
|
+
fromJSON(object: any): locStatusResponse;
|
|
21
|
+
toJSON(message: locStatusResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<locStatusResponse>, I>>(base?: I): locStatusResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<locStatusResponse>, I>>(object: I): locStatusResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: customers/updatelocstatus.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.locStatusResponse = exports.locStatusRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updatelocstatus";
|
|
15
|
+
function createBaselocStatusRequest() {
|
|
16
|
+
return { loc_disabled: false };
|
|
17
|
+
}
|
|
18
|
+
exports.locStatusRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loc_disabled !== false) {
|
|
21
|
+
writer.uint32(8).bool(message.loc_disabled);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaselocStatusRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.loc_disabled = reader.bool();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { loc_disabled: isSet(object.loc_disabled) ? globalThis.Boolean(object.loc_disabled) : false };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.loc_disabled !== false) {
|
|
52
|
+
obj.loc_disabled = message.loc_disabled;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.locStatusRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBaselocStatusRequest();
|
|
61
|
+
message.loc_disabled = object.loc_disabled ?? false;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBaselocStatusResponse() {
|
|
66
|
+
return { status: false };
|
|
67
|
+
}
|
|
68
|
+
exports.locStatusResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.status !== false) {
|
|
71
|
+
writer.uint32(8).bool(message.status);
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBaselocStatusResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 8) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.status = reader.bool();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.status !== false) {
|
|
102
|
+
obj.status = message.status;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.locStatusResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBaselocStatusResponse();
|
|
111
|
+
message.status = object.status ?? false;
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ import { stepstaticRequest, stepstaticResponse } from "./customers/stepstatic";
|
|
|
37
37
|
import { updateDigiLockerTxnRequest, updateDigiLockerTxnResponse } from "./customers/updatedigilockertxn";
|
|
38
38
|
import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
|
|
39
39
|
import { updateHypervergeTxnRequest, updateHypervergeTxnResponse } from "./customers/updatehypervergetxn";
|
|
40
|
-
import {
|
|
40
|
+
import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus";
|
|
41
41
|
import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
|
|
42
42
|
import { verifyEmailRequest, verifyEmailResponse } from "./customers/verifyemail";
|
|
43
43
|
import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
|
|
@@ -459,14 +459,14 @@ export declare const customersService: {
|
|
|
459
459
|
readonly responseSerialize: (value: addSuspendedCustomerResponse) => Buffer;
|
|
460
460
|
readonly responseDeserialize: (value: Buffer) => addSuspendedCustomerResponse;
|
|
461
461
|
};
|
|
462
|
-
readonly
|
|
463
|
-
readonly path: "/service.customers/
|
|
462
|
+
readonly updatelocStatus: {
|
|
463
|
+
readonly path: "/service.customers/updatelocStatus";
|
|
464
464
|
readonly requestStream: false;
|
|
465
465
|
readonly responseStream: false;
|
|
466
|
-
readonly requestSerialize: (value:
|
|
467
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
468
|
-
readonly responseSerialize: (value:
|
|
469
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
466
|
+
readonly requestSerialize: (value: locStatusRequest) => Buffer;
|
|
467
|
+
readonly requestDeserialize: (value: Buffer) => locStatusRequest;
|
|
468
|
+
readonly responseSerialize: (value: locStatusResponse) => Buffer;
|
|
469
|
+
readonly responseDeserialize: (value: Buffer) => locStatusResponse;
|
|
470
470
|
};
|
|
471
471
|
readonly initiateRequest: {
|
|
472
472
|
readonly path: "/service.customers/initiateRequest";
|
|
@@ -534,7 +534,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
534
534
|
deleteProfile: handleUnaryCall<deleteProfileRequest, deleteProfileResponse>;
|
|
535
535
|
getBankList: handleUnaryCall<getBankListRequest, getBankListResponse>;
|
|
536
536
|
addSuspendedCustomer: handleUnaryCall<addSuspendedCustomerRequest, addSuspendedCustomerResponse>;
|
|
537
|
-
|
|
537
|
+
updatelocStatus: handleUnaryCall<locStatusRequest, locStatusResponse>;
|
|
538
538
|
initiateRequest: handleUnaryCall<initiateRequest, initiateResponse>;
|
|
539
539
|
addUserApps: handleUnaryCall<AddUserAppsRequest, AddUserAppsResponse>;
|
|
540
540
|
}
|
|
@@ -677,9 +677,9 @@ export interface customersClient extends Client {
|
|
|
677
677
|
addSuspendedCustomer(request: addSuspendedCustomerRequest, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
|
|
678
678
|
addSuspendedCustomer(request: addSuspendedCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
|
|
679
679
|
addSuspendedCustomer(request: addSuspendedCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
680
|
+
updatelocStatus(request: locStatusRequest, callback: (error: ServiceError | null, response: locStatusResponse) => void): ClientUnaryCall;
|
|
681
|
+
updatelocStatus(request: locStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: locStatusResponse) => void): ClientUnaryCall;
|
|
682
|
+
updatelocStatus(request: locStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: locStatusResponse) => void): ClientUnaryCall;
|
|
683
683
|
initiateRequest(request: initiateRequest, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
|
|
684
684
|
initiateRequest(request: initiateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
|
|
685
685
|
initiateRequest(request: initiateRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
|
package/ts/customers.js
CHANGED
|
@@ -46,7 +46,7 @@ const stepstatic_1 = require("./customers/stepstatic");
|
|
|
46
46
|
const updatedigilockertxn_1 = require("./customers/updatedigilockertxn");
|
|
47
47
|
const updatedob_1 = require("./customers/updatedob");
|
|
48
48
|
const updatehypervergetxn_1 = require("./customers/updatehypervergetxn");
|
|
49
|
-
const
|
|
49
|
+
const updatelocstatus_1 = require("./customers/updatelocstatus");
|
|
50
50
|
const validatepan_1 = require("./customers/validatepan");
|
|
51
51
|
const verifyemail_1 = require("./customers/verifyemail");
|
|
52
52
|
const verifympin_1 = require("./customers/verifympin");
|
|
@@ -467,14 +467,14 @@ exports.customersService = {
|
|
|
467
467
|
responseSerialize: (value) => Buffer.from(addsuspendedcustomer_1.addSuspendedCustomerResponse.encode(value).finish()),
|
|
468
468
|
responseDeserialize: (value) => addsuspendedcustomer_1.addSuspendedCustomerResponse.decode(value),
|
|
469
469
|
},
|
|
470
|
-
|
|
471
|
-
path: "/service.customers/
|
|
470
|
+
updatelocStatus: {
|
|
471
|
+
path: "/service.customers/updatelocStatus",
|
|
472
472
|
requestStream: false,
|
|
473
473
|
responseStream: false,
|
|
474
|
-
requestSerialize: (value) => Buffer.from(
|
|
475
|
-
requestDeserialize: (value) =>
|
|
476
|
-
responseSerialize: (value) => Buffer.from(
|
|
477
|
-
responseDeserialize: (value) =>
|
|
474
|
+
requestSerialize: (value) => Buffer.from(updatelocstatus_1.locStatusRequest.encode(value).finish()),
|
|
475
|
+
requestDeserialize: (value) => updatelocstatus_1.locStatusRequest.decode(value),
|
|
476
|
+
responseSerialize: (value) => Buffer.from(updatelocstatus_1.locStatusResponse.encode(value).finish()),
|
|
477
|
+
responseDeserialize: (value) => updatelocstatus_1.locStatusResponse.decode(value),
|
|
478
478
|
},
|
|
479
479
|
initiateRequest: {
|
|
480
480
|
path: "/service.customers/initiateRequest",
|