@stashfin/grpc 1.2.307 → 1.2.309
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/customers/getsyncstatus.d.ts +35 -0
- package/ts/customers/getsyncstatus.js +120 -0
- package/ts/customers/getvanumber.d.ts +35 -0
- package/ts/customers/getvanumber.js +117 -0
- package/ts/customers/updatesyncstatus.d.ts +36 -0
- package/ts/customers/updatesyncstatus.js +133 -0
- package/ts/customers.d.ts +42 -0
- package/ts/customers.js +30 -0
- package/ts/growth/getchrpaymentstatus.d.ts +49 -0
- package/ts/growth/getchrpaymentstatus.js +213 -0
- package/ts/growth/initiatepayment.d.ts +1 -0
- package/ts/growth/initiatepayment.js +18 -2
- package/ts/growth.d.ts +14 -0
- package/ts/growth.js +10 -0
- package/ts/loans/getchrdetails.d.ts +52 -0
- package/ts/loans/getchrdetails.js +256 -0
- package/ts/loans/loansummary.d.ts +13 -1
- package/ts/loans/loansummary.js +78 -10
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getsyncstatus";
|
|
3
|
+
export interface getSyncStatusRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getSyncStatusResponse {
|
|
6
|
+
sms_sync: boolean;
|
|
7
|
+
app_sync: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const getSyncStatusRequest: {
|
|
10
|
+
encode(_: getSyncStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSyncStatusRequest;
|
|
12
|
+
fromJSON(_: any): getSyncStatusRequest;
|
|
13
|
+
toJSON(_: getSyncStatusRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getSyncStatusRequest>, I>>(base?: I): getSyncStatusRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getSyncStatusRequest>, I>>(_: I): getSyncStatusRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getSyncStatusResponse: {
|
|
18
|
+
encode(message: getSyncStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSyncStatusResponse;
|
|
20
|
+
fromJSON(object: any): getSyncStatusResponse;
|
|
21
|
+
toJSON(message: getSyncStatusResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getSyncStatusResponse>, I>>(base?: I): getSyncStatusResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getSyncStatusResponse>, I>>(object: I): getSyncStatusResponse;
|
|
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,120 @@
|
|
|
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.2
|
|
6
|
+
// source: customers/getsyncstatus.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.getSyncStatusResponse = exports.getSyncStatusRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getsyncstatus";
|
|
15
|
+
function createBasegetSyncStatusRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getSyncStatusRequest = {
|
|
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 = createBasegetSyncStatusRequest();
|
|
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.getSyncStatusRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetSyncStatusRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetSyncStatusResponse() {
|
|
53
|
+
return { sms_sync: false, app_sync: false };
|
|
54
|
+
}
|
|
55
|
+
exports.getSyncStatusResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.sms_sync !== false) {
|
|
58
|
+
writer.uint32(8).bool(message.sms_sync);
|
|
59
|
+
}
|
|
60
|
+
if (message.app_sync !== false) {
|
|
61
|
+
writer.uint32(16).bool(message.app_sync);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
67
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBasegetSyncStatusResponse();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1:
|
|
73
|
+
if (tag !== 8) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.sms_sync = reader.bool();
|
|
77
|
+
continue;
|
|
78
|
+
case 2:
|
|
79
|
+
if (tag !== 16) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.app_sync = reader.bool();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
reader.skipType(tag & 7);
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromJSON(object) {
|
|
93
|
+
return {
|
|
94
|
+
sms_sync: isSet(object.sms_sync) ? globalThis.Boolean(object.sms_sync) : false,
|
|
95
|
+
app_sync: isSet(object.app_sync) ? globalThis.Boolean(object.app_sync) : false,
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
toJSON(message) {
|
|
99
|
+
const obj = {};
|
|
100
|
+
if (message.sms_sync !== false) {
|
|
101
|
+
obj.sms_sync = message.sms_sync;
|
|
102
|
+
}
|
|
103
|
+
if (message.app_sync !== false) {
|
|
104
|
+
obj.app_sync = message.app_sync;
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
create(base) {
|
|
109
|
+
return exports.getSyncStatusResponse.fromPartial(base ?? {});
|
|
110
|
+
},
|
|
111
|
+
fromPartial(object) {
|
|
112
|
+
const message = createBasegetSyncStatusResponse();
|
|
113
|
+
message.sms_sync = object.sms_sync ?? false;
|
|
114
|
+
message.app_sync = object.app_sync ?? false;
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
function isSet(value) {
|
|
119
|
+
return value !== null && value !== undefined;
|
|
120
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getvanumber";
|
|
3
|
+
export interface getVaNumberRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getVaNumberResponse {
|
|
7
|
+
va_number: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const getVaNumberRequest: {
|
|
10
|
+
encode(message: getVaNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getVaNumberRequest;
|
|
12
|
+
fromJSON(object: any): getVaNumberRequest;
|
|
13
|
+
toJSON(message: getVaNumberRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getVaNumberRequest>, I>>(base?: I): getVaNumberRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getVaNumberRequest>, I>>(object: I): getVaNumberRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getVaNumberResponse: {
|
|
18
|
+
encode(message: getVaNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getVaNumberResponse;
|
|
20
|
+
fromJSON(object: any): getVaNumberResponse;
|
|
21
|
+
toJSON(message: getVaNumberResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getVaNumberResponse>, I>>(base?: I): getVaNumberResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getVaNumberResponse>, I>>(object: I): getVaNumberResponse;
|
|
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 v5.28.2
|
|
6
|
+
// source: customers/getvanumber.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.getVaNumberResponse = exports.getVaNumberRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getvanumber";
|
|
15
|
+
function createBasegetVaNumberRequest() {
|
|
16
|
+
return { customer_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.getVaNumberRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
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 = createBasegetVaNumberRequest();
|
|
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.customer_id = reader.int32();
|
|
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 { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.customer_id !== 0) {
|
|
52
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.getVaNumberRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasegetVaNumberRequest();
|
|
61
|
+
message.customer_id = object.customer_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasegetVaNumberResponse() {
|
|
66
|
+
return { va_number: "" };
|
|
67
|
+
}
|
|
68
|
+
exports.getVaNumberResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.va_number !== "") {
|
|
71
|
+
writer.uint32(10).string(message.va_number);
|
|
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 = createBasegetVaNumberResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.va_number = reader.string();
|
|
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 { va_number: isSet(object.va_number) ? globalThis.String(object.va_number) : "" };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.va_number !== "") {
|
|
102
|
+
obj.va_number = message.va_number;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.getVaNumberResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBasegetVaNumberResponse();
|
|
111
|
+
message.va_number = object.va_number ?? "";
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updatesyncstatus";
|
|
3
|
+
export interface updateSyncStatusRequest {
|
|
4
|
+
sms_sync: boolean;
|
|
5
|
+
app_sync: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface updateSyncStatusResponse {
|
|
8
|
+
status: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const updateSyncStatusRequest: {
|
|
11
|
+
encode(message: updateSyncStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateSyncStatusRequest;
|
|
13
|
+
fromJSON(object: any): updateSyncStatusRequest;
|
|
14
|
+
toJSON(message: updateSyncStatusRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<updateSyncStatusRequest>, I>>(base?: I): updateSyncStatusRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<updateSyncStatusRequest>, I>>(object: I): updateSyncStatusRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const updateSyncStatusResponse: {
|
|
19
|
+
encode(message: updateSyncStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateSyncStatusResponse;
|
|
21
|
+
fromJSON(object: any): updateSyncStatusResponse;
|
|
22
|
+
toJSON(message: updateSyncStatusResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<updateSyncStatusResponse>, I>>(base?: I): updateSyncStatusResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<updateSyncStatusResponse>, I>>(object: I): updateSyncStatusResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
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.2
|
|
6
|
+
// source: customers/updatesyncstatus.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.updateSyncStatusResponse = exports.updateSyncStatusRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updatesyncstatus";
|
|
15
|
+
function createBaseupdateSyncStatusRequest() {
|
|
16
|
+
return { sms_sync: false, app_sync: false };
|
|
17
|
+
}
|
|
18
|
+
exports.updateSyncStatusRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.sms_sync !== false) {
|
|
21
|
+
writer.uint32(8).bool(message.sms_sync);
|
|
22
|
+
}
|
|
23
|
+
if (message.app_sync !== false) {
|
|
24
|
+
writer.uint32(16).bool(message.app_sync);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseupdateSyncStatusRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 8) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.sms_sync = reader.bool();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 16) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.app_sync = reader.bool();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
sms_sync: isSet(object.sms_sync) ? globalThis.Boolean(object.sms_sync) : false,
|
|
58
|
+
app_sync: isSet(object.app_sync) ? globalThis.Boolean(object.app_sync) : false,
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.sms_sync !== false) {
|
|
64
|
+
obj.sms_sync = message.sms_sync;
|
|
65
|
+
}
|
|
66
|
+
if (message.app_sync !== false) {
|
|
67
|
+
obj.app_sync = message.app_sync;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.updateSyncStatusRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseupdateSyncStatusRequest();
|
|
76
|
+
message.sms_sync = object.sms_sync ?? false;
|
|
77
|
+
message.app_sync = object.app_sync ?? false;
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseupdateSyncStatusResponse() {
|
|
82
|
+
return { status: false };
|
|
83
|
+
}
|
|
84
|
+
exports.updateSyncStatusResponse = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.status !== false) {
|
|
87
|
+
writer.uint32(8).bool(message.status);
|
|
88
|
+
}
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = createBaseupdateSyncStatusResponse();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 8) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.status = reader.bool();
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
114
|
+
},
|
|
115
|
+
toJSON(message) {
|
|
116
|
+
const obj = {};
|
|
117
|
+
if (message.status !== false) {
|
|
118
|
+
obj.status = message.status;
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.updateSyncStatusResponse.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaseupdateSyncStatusResponse();
|
|
127
|
+
message.status = object.status ?? false;
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -54,6 +54,8 @@ import { getCustomerProfileRequest, getCustomerProfileResponse } from "./custome
|
|
|
54
54
|
import { getSelfieeTxnIdRequest, getSelfieeTxnIdResponse } from "./customers/getselfieetxnid";
|
|
55
55
|
import { getAllStatesRequest, getAllStatesResponse } from "./customers/getstates";
|
|
56
56
|
import { getstepRequest, getstepResponse } from "./customers/getstep";
|
|
57
|
+
import { getSyncStatusRequest, getSyncStatusResponse } from "./customers/getsyncstatus";
|
|
58
|
+
import { getVaNumberRequest, getVaNumberResponse } from "./customers/getvanumber";
|
|
57
59
|
import { logoutRequest, logoutResponse } from "./customers/logout";
|
|
58
60
|
import { getPdBankListRequest, getPdBankListResponse } from "./customers/pd/getbanklist";
|
|
59
61
|
import { validateBankAccountRequest, validateBankAccountResponse } from "./customers/pd/validatebankaccount";
|
|
@@ -81,6 +83,7 @@ import { updateMobileSendOtpRequest, updateMobileSendOtpResponse } from "./custo
|
|
|
81
83
|
import { updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse } from "./customers/updatemobileverifyotp";
|
|
82
84
|
import { updateOkycTxnRequest, updateOkycTxnResponse } from "./customers/updateokyctxn";
|
|
83
85
|
import { updateSelfieeTxnRequest, updateSelfieeTxnResponse } from "./customers/updateselfieetxn";
|
|
86
|
+
import { updateSyncStatusRequest, updateSyncStatusResponse } from "./customers/updatesyncstatus";
|
|
84
87
|
import { updateVehicleNumberRequest, updateVehicleNumberResponse } from "./customers/updatevehiclenumber";
|
|
85
88
|
import { uploadDocumentsRequest, uploadDocumentsResponse } from "./customers/uploaddocuments";
|
|
86
89
|
import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
|
|
@@ -900,6 +903,33 @@ export declare const customersService: {
|
|
|
900
903
|
readonly responseSerialize: (value: submitUploadedDocumentsResponse) => Buffer;
|
|
901
904
|
readonly responseDeserialize: (value: Buffer) => submitUploadedDocumentsResponse;
|
|
902
905
|
};
|
|
906
|
+
readonly getVaNumber: {
|
|
907
|
+
readonly path: "/service.customers/getVaNumber";
|
|
908
|
+
readonly requestStream: false;
|
|
909
|
+
readonly responseStream: false;
|
|
910
|
+
readonly requestSerialize: (value: getVaNumberRequest) => Buffer;
|
|
911
|
+
readonly requestDeserialize: (value: Buffer) => getVaNumberRequest;
|
|
912
|
+
readonly responseSerialize: (value: getVaNumberResponse) => Buffer;
|
|
913
|
+
readonly responseDeserialize: (value: Buffer) => getVaNumberResponse;
|
|
914
|
+
};
|
|
915
|
+
readonly getSyncStatus: {
|
|
916
|
+
readonly path: "/service.customers/getSyncStatus";
|
|
917
|
+
readonly requestStream: false;
|
|
918
|
+
readonly responseStream: false;
|
|
919
|
+
readonly requestSerialize: (value: getSyncStatusRequest) => Buffer;
|
|
920
|
+
readonly requestDeserialize: (value: Buffer) => getSyncStatusRequest;
|
|
921
|
+
readonly responseSerialize: (value: getSyncStatusResponse) => Buffer;
|
|
922
|
+
readonly responseDeserialize: (value: Buffer) => getSyncStatusResponse;
|
|
923
|
+
};
|
|
924
|
+
readonly updateSyncStatus: {
|
|
925
|
+
readonly path: "/service.customers/updateSyncStatus";
|
|
926
|
+
readonly requestStream: false;
|
|
927
|
+
readonly responseStream: false;
|
|
928
|
+
readonly requestSerialize: (value: updateSyncStatusRequest) => Buffer;
|
|
929
|
+
readonly requestDeserialize: (value: Buffer) => updateSyncStatusRequest;
|
|
930
|
+
readonly responseSerialize: (value: updateSyncStatusResponse) => Buffer;
|
|
931
|
+
readonly responseDeserialize: (value: Buffer) => updateSyncStatusResponse;
|
|
932
|
+
};
|
|
903
933
|
};
|
|
904
934
|
export interface customersServer extends UntypedServiceImplementation {
|
|
905
935
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -992,6 +1022,9 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
992
1022
|
saveCustomerAppsList: handleUnaryCall<saveCustomerAppsRequest, saveCustomerAppsResponse>;
|
|
993
1023
|
updateCongratulationStep: handleUnaryCall<updateCongratulationStepRequest, updateCongratulationStepResponse>;
|
|
994
1024
|
submitUploadedDocuments: handleUnaryCall<submitUploadedDocumentsRequest, submitUploadedDocumentsResponse>;
|
|
1025
|
+
getVaNumber: handleUnaryCall<getVaNumberRequest, getVaNumberResponse>;
|
|
1026
|
+
getSyncStatus: handleUnaryCall<getSyncStatusRequest, getSyncStatusResponse>;
|
|
1027
|
+
updateSyncStatus: handleUnaryCall<updateSyncStatusRequest, updateSyncStatusResponse>;
|
|
995
1028
|
}
|
|
996
1029
|
export interface customersClient extends Client {
|
|
997
1030
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1264,6 +1297,15 @@ export interface customersClient extends Client {
|
|
|
1264
1297
|
submitUploadedDocuments(request: submitUploadedDocumentsRequest, callback: (error: ServiceError | null, response: submitUploadedDocumentsResponse) => void): ClientUnaryCall;
|
|
1265
1298
|
submitUploadedDocuments(request: submitUploadedDocumentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: submitUploadedDocumentsResponse) => void): ClientUnaryCall;
|
|
1266
1299
|
submitUploadedDocuments(request: submitUploadedDocumentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: submitUploadedDocumentsResponse) => void): ClientUnaryCall;
|
|
1300
|
+
getVaNumber(request: getVaNumberRequest, callback: (error: ServiceError | null, response: getVaNumberResponse) => void): ClientUnaryCall;
|
|
1301
|
+
getVaNumber(request: getVaNumberRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getVaNumberResponse) => void): ClientUnaryCall;
|
|
1302
|
+
getVaNumber(request: getVaNumberRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getVaNumberResponse) => void): ClientUnaryCall;
|
|
1303
|
+
getSyncStatus(request: getSyncStatusRequest, callback: (error: ServiceError | null, response: getSyncStatusResponse) => void): ClientUnaryCall;
|
|
1304
|
+
getSyncStatus(request: getSyncStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getSyncStatusResponse) => void): ClientUnaryCall;
|
|
1305
|
+
getSyncStatus(request: getSyncStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getSyncStatusResponse) => void): ClientUnaryCall;
|
|
1306
|
+
updateSyncStatus(request: updateSyncStatusRequest, callback: (error: ServiceError | null, response: updateSyncStatusResponse) => void): ClientUnaryCall;
|
|
1307
|
+
updateSyncStatus(request: updateSyncStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateSyncStatusResponse) => void): ClientUnaryCall;
|
|
1308
|
+
updateSyncStatus(request: updateSyncStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateSyncStatusResponse) => void): ClientUnaryCall;
|
|
1267
1309
|
}
|
|
1268
1310
|
export declare const customersClient: {
|
|
1269
1311
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -63,6 +63,8 @@ const getprofile_1 = require("./customers/getprofile");
|
|
|
63
63
|
const getselfieetxnid_1 = require("./customers/getselfieetxnid");
|
|
64
64
|
const getstates_1 = require("./customers/getstates");
|
|
65
65
|
const getstep_1 = require("./customers/getstep");
|
|
66
|
+
const getsyncstatus_1 = require("./customers/getsyncstatus");
|
|
67
|
+
const getvanumber_1 = require("./customers/getvanumber");
|
|
66
68
|
const logout_1 = require("./customers/logout");
|
|
67
69
|
const getbanklist_2 = require("./customers/pd/getbanklist");
|
|
68
70
|
const validatebankaccount_1 = require("./customers/pd/validatebankaccount");
|
|
@@ -90,6 +92,7 @@ const updatemobilesendotp_1 = require("./customers/updatemobilesendotp");
|
|
|
90
92
|
const updatemobileverifyotp_1 = require("./customers/updatemobileverifyotp");
|
|
91
93
|
const updateokyctxn_1 = require("./customers/updateokyctxn");
|
|
92
94
|
const updateselfieetxn_1 = require("./customers/updateselfieetxn");
|
|
95
|
+
const updatesyncstatus_1 = require("./customers/updatesyncstatus");
|
|
93
96
|
const updatevehiclenumber_1 = require("./customers/updatevehiclenumber");
|
|
94
97
|
const uploaddocuments_1 = require("./customers/uploaddocuments");
|
|
95
98
|
const validatepan_1 = require("./customers/validatepan");
|
|
@@ -908,5 +911,32 @@ exports.customersService = {
|
|
|
908
911
|
responseSerialize: (value) => Buffer.from(submituploadeddocuments_1.submitUploadedDocumentsResponse.encode(value).finish()),
|
|
909
912
|
responseDeserialize: (value) => submituploadeddocuments_1.submitUploadedDocumentsResponse.decode(value),
|
|
910
913
|
},
|
|
914
|
+
getVaNumber: {
|
|
915
|
+
path: "/service.customers/getVaNumber",
|
|
916
|
+
requestStream: false,
|
|
917
|
+
responseStream: false,
|
|
918
|
+
requestSerialize: (value) => Buffer.from(getvanumber_1.getVaNumberRequest.encode(value).finish()),
|
|
919
|
+
requestDeserialize: (value) => getvanumber_1.getVaNumberRequest.decode(value),
|
|
920
|
+
responseSerialize: (value) => Buffer.from(getvanumber_1.getVaNumberResponse.encode(value).finish()),
|
|
921
|
+
responseDeserialize: (value) => getvanumber_1.getVaNumberResponse.decode(value),
|
|
922
|
+
},
|
|
923
|
+
getSyncStatus: {
|
|
924
|
+
path: "/service.customers/getSyncStatus",
|
|
925
|
+
requestStream: false,
|
|
926
|
+
responseStream: false,
|
|
927
|
+
requestSerialize: (value) => Buffer.from(getsyncstatus_1.getSyncStatusRequest.encode(value).finish()),
|
|
928
|
+
requestDeserialize: (value) => getsyncstatus_1.getSyncStatusRequest.decode(value),
|
|
929
|
+
responseSerialize: (value) => Buffer.from(getsyncstatus_1.getSyncStatusResponse.encode(value).finish()),
|
|
930
|
+
responseDeserialize: (value) => getsyncstatus_1.getSyncStatusResponse.decode(value),
|
|
931
|
+
},
|
|
932
|
+
updateSyncStatus: {
|
|
933
|
+
path: "/service.customers/updateSyncStatus",
|
|
934
|
+
requestStream: false,
|
|
935
|
+
responseStream: false,
|
|
936
|
+
requestSerialize: (value) => Buffer.from(updatesyncstatus_1.updateSyncStatusRequest.encode(value).finish()),
|
|
937
|
+
requestDeserialize: (value) => updatesyncstatus_1.updateSyncStatusRequest.decode(value),
|
|
938
|
+
responseSerialize: (value) => Buffer.from(updatesyncstatus_1.updateSyncStatusResponse.encode(value).finish()),
|
|
939
|
+
responseDeserialize: (value) => updatesyncstatus_1.updateSyncStatusResponse.decode(value),
|
|
940
|
+
},
|
|
911
941
|
};
|
|
912
942
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "growth.getchrpaymentstatus";
|
|
3
|
+
export interface paymentstatusrequest {
|
|
4
|
+
txn_id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface paymentstatus {
|
|
7
|
+
txn_status: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface paymentstatusresponse {
|
|
10
|
+
status: string;
|
|
11
|
+
statusCode: number;
|
|
12
|
+
data: paymentstatus | undefined;
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const paymentstatusrequest: {
|
|
16
|
+
encode(message: paymentstatusrequest, writer?: _m0.Writer): _m0.Writer;
|
|
17
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): paymentstatusrequest;
|
|
18
|
+
fromJSON(object: any): paymentstatusrequest;
|
|
19
|
+
toJSON(message: paymentstatusrequest): unknown;
|
|
20
|
+
create<I extends Exact<DeepPartial<paymentstatusrequest>, I>>(base?: I): paymentstatusrequest;
|
|
21
|
+
fromPartial<I extends Exact<DeepPartial<paymentstatusrequest>, I>>(object: I): paymentstatusrequest;
|
|
22
|
+
};
|
|
23
|
+
export declare const paymentstatus: {
|
|
24
|
+
encode(message: paymentstatus, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): paymentstatus;
|
|
26
|
+
fromJSON(object: any): paymentstatus;
|
|
27
|
+
toJSON(message: paymentstatus): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<paymentstatus>, I>>(base?: I): paymentstatus;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<paymentstatus>, I>>(object: I): paymentstatus;
|
|
30
|
+
};
|
|
31
|
+
export declare const paymentstatusresponse: {
|
|
32
|
+
encode(message: paymentstatusresponse, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): paymentstatusresponse;
|
|
34
|
+
fromJSON(object: any): paymentstatusresponse;
|
|
35
|
+
toJSON(message: paymentstatusresponse): unknown;
|
|
36
|
+
create<I extends Exact<DeepPartial<paymentstatusresponse>, I>>(base?: I): paymentstatusresponse;
|
|
37
|
+
fromPartial<I extends Exact<DeepPartial<paymentstatusresponse>, I>>(object: I): paymentstatusresponse;
|
|
38
|
+
};
|
|
39
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
40
|
+
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 {} ? {
|
|
41
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
42
|
+
} : Partial<T>;
|
|
43
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
44
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
45
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
46
|
+
} & {
|
|
47
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
48
|
+
};
|
|
49
|
+
export {};
|