@stashfin/grpc 1.2.331 → 1.2.333
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/cb/updatecbstandalonejourney.d.ts +34 -0
- package/ts/customers/cb/updatecbstandalonejourney.js +104 -0
- package/ts/customers/getcustomerdetailsbymobile.d.ts +42 -0
- package/ts/customers/getcustomerdetailsbymobile.js +219 -0
- package/ts/customers/getprofile.d.ts +1 -0
- package/ts/customers/getprofile.js +16 -1
- package/ts/customers.d.ts +47 -6
- package/ts/customers.js +31 -2
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.cb.updatecbstandalonejourney";
|
|
3
|
+
export interface updateCbStandAloneJourneyRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface updateCbStandAloneJourneyResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const updateCbStandAloneJourneyRequest: {
|
|
9
|
+
encode(_: updateCbStandAloneJourneyRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCbStandAloneJourneyRequest;
|
|
11
|
+
fromJSON(_: any): updateCbStandAloneJourneyRequest;
|
|
12
|
+
toJSON(_: updateCbStandAloneJourneyRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<updateCbStandAloneJourneyRequest>, I>>(base?: I): updateCbStandAloneJourneyRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<updateCbStandAloneJourneyRequest>, I>>(_: I): updateCbStandAloneJourneyRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const updateCbStandAloneJourneyResponse: {
|
|
17
|
+
encode(message: updateCbStandAloneJourneyResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCbStandAloneJourneyResponse;
|
|
19
|
+
fromJSON(object: any): updateCbStandAloneJourneyResponse;
|
|
20
|
+
toJSON(message: updateCbStandAloneJourneyResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<updateCbStandAloneJourneyResponse>, I>>(base?: I): updateCbStandAloneJourneyResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<updateCbStandAloneJourneyResponse>, I>>(object: I): updateCbStandAloneJourneyResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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/cb/updatecbstandalonejourney.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.updateCbStandAloneJourneyResponse = exports.updateCbStandAloneJourneyRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.cb.updatecbstandalonejourney";
|
|
15
|
+
function createBaseupdateCbStandAloneJourneyRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.updateCbStandAloneJourneyRequest = {
|
|
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 = createBaseupdateCbStandAloneJourneyRequest();
|
|
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.updateCbStandAloneJourneyRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseupdateCbStandAloneJourneyRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseupdateCbStandAloneJourneyResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.updateCbStandAloneJourneyResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== "") {
|
|
58
|
+
writer.uint32(10).string(message.status);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBaseupdateCbStandAloneJourneyResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== "") {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.updateCbStandAloneJourneyResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseupdateCbStandAloneJourneyResponse();
|
|
98
|
+
message.status = object.status ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getcustomerdetailsbymobile";
|
|
3
|
+
export interface getCustomerDetailsRequest {
|
|
4
|
+
mobile: string;
|
|
5
|
+
dob: string;
|
|
6
|
+
}
|
|
7
|
+
export interface getCustomerDetailsResponse {
|
|
8
|
+
customerId: number;
|
|
9
|
+
first_name: string;
|
|
10
|
+
middle_name: string;
|
|
11
|
+
last_name: string;
|
|
12
|
+
mobile: string;
|
|
13
|
+
/** Date of birth in the format YYYY-MM-DD */
|
|
14
|
+
dob: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const getCustomerDetailsRequest: {
|
|
17
|
+
encode(message: getCustomerDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerDetailsRequest;
|
|
19
|
+
fromJSON(object: any): getCustomerDetailsRequest;
|
|
20
|
+
toJSON(message: getCustomerDetailsRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<getCustomerDetailsRequest>, I>>(base?: I): getCustomerDetailsRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerDetailsRequest>, I>>(object: I): getCustomerDetailsRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const getCustomerDetailsResponse: {
|
|
25
|
+
encode(message: getCustomerDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerDetailsResponse;
|
|
27
|
+
fromJSON(object: any): getCustomerDetailsResponse;
|
|
28
|
+
toJSON(message: getCustomerDetailsResponse): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<getCustomerDetailsResponse>, I>>(base?: I): getCustomerDetailsResponse;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerDetailsResponse>, I>>(object: I): getCustomerDetailsResponse;
|
|
31
|
+
};
|
|
32
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
33
|
+
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 {} ? {
|
|
34
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
35
|
+
} : Partial<T>;
|
|
36
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
37
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
38
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
39
|
+
} & {
|
|
40
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,219 @@
|
|
|
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/getcustomerdetailsbymobile.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.getCustomerDetailsResponse = exports.getCustomerDetailsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "customers.getcustomerdetailsbymobile";
|
|
16
|
+
function createBasegetCustomerDetailsRequest() {
|
|
17
|
+
return { mobile: "", dob: "" };
|
|
18
|
+
}
|
|
19
|
+
exports.getCustomerDetailsRequest = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.mobile !== "") {
|
|
22
|
+
writer.uint32(10).string(message.mobile);
|
|
23
|
+
}
|
|
24
|
+
if (message.dob !== "") {
|
|
25
|
+
writer.uint32(18).string(message.dob);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBasegetCustomerDetailsRequest();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
if (tag !== 10) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.mobile = reader.string();
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 18) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.dob = reader.string();
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
return {
|
|
58
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
59
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.mobile !== "") {
|
|
65
|
+
obj.mobile = message.mobile;
|
|
66
|
+
}
|
|
67
|
+
if (message.dob !== "") {
|
|
68
|
+
obj.dob = message.dob;
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.getCustomerDetailsRequest.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBasegetCustomerDetailsRequest();
|
|
77
|
+
message.mobile = object.mobile ?? "";
|
|
78
|
+
message.dob = object.dob ?? "";
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function createBasegetCustomerDetailsResponse() {
|
|
83
|
+
return { customerId: 0, first_name: "", middle_name: "", last_name: "", mobile: "", dob: "" };
|
|
84
|
+
}
|
|
85
|
+
exports.getCustomerDetailsResponse = {
|
|
86
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
87
|
+
if (message.customerId !== 0) {
|
|
88
|
+
writer.uint32(8).int64(message.customerId);
|
|
89
|
+
}
|
|
90
|
+
if (message.first_name !== "") {
|
|
91
|
+
writer.uint32(18).string(message.first_name);
|
|
92
|
+
}
|
|
93
|
+
if (message.middle_name !== "") {
|
|
94
|
+
writer.uint32(26).string(message.middle_name);
|
|
95
|
+
}
|
|
96
|
+
if (message.last_name !== "") {
|
|
97
|
+
writer.uint32(34).string(message.last_name);
|
|
98
|
+
}
|
|
99
|
+
if (message.mobile !== "") {
|
|
100
|
+
writer.uint32(42).string(message.mobile);
|
|
101
|
+
}
|
|
102
|
+
if (message.dob !== "") {
|
|
103
|
+
writer.uint32(50).string(message.dob);
|
|
104
|
+
}
|
|
105
|
+
return writer;
|
|
106
|
+
},
|
|
107
|
+
decode(input, length) {
|
|
108
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
109
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
110
|
+
const message = createBasegetCustomerDetailsResponse();
|
|
111
|
+
while (reader.pos < end) {
|
|
112
|
+
const tag = reader.uint32();
|
|
113
|
+
switch (tag >>> 3) {
|
|
114
|
+
case 1:
|
|
115
|
+
if (tag !== 8) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.customerId = longToNumber(reader.int64());
|
|
119
|
+
continue;
|
|
120
|
+
case 2:
|
|
121
|
+
if (tag !== 18) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
message.first_name = reader.string();
|
|
125
|
+
continue;
|
|
126
|
+
case 3:
|
|
127
|
+
if (tag !== 26) {
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
message.middle_name = reader.string();
|
|
131
|
+
continue;
|
|
132
|
+
case 4:
|
|
133
|
+
if (tag !== 34) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
message.last_name = reader.string();
|
|
137
|
+
continue;
|
|
138
|
+
case 5:
|
|
139
|
+
if (tag !== 42) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
message.mobile = reader.string();
|
|
143
|
+
continue;
|
|
144
|
+
case 6:
|
|
145
|
+
if (tag !== 50) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.dob = reader.string();
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
reader.skipType(tag & 7);
|
|
155
|
+
}
|
|
156
|
+
return message;
|
|
157
|
+
},
|
|
158
|
+
fromJSON(object) {
|
|
159
|
+
return {
|
|
160
|
+
customerId: isSet(object.customerId) ? globalThis.Number(object.customerId) : 0,
|
|
161
|
+
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : "",
|
|
162
|
+
middle_name: isSet(object.middle_name) ? globalThis.String(object.middle_name) : "",
|
|
163
|
+
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : "",
|
|
164
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
165
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
166
|
+
};
|
|
167
|
+
},
|
|
168
|
+
toJSON(message) {
|
|
169
|
+
const obj = {};
|
|
170
|
+
if (message.customerId !== 0) {
|
|
171
|
+
obj.customerId = Math.round(message.customerId);
|
|
172
|
+
}
|
|
173
|
+
if (message.first_name !== "") {
|
|
174
|
+
obj.first_name = message.first_name;
|
|
175
|
+
}
|
|
176
|
+
if (message.middle_name !== "") {
|
|
177
|
+
obj.middle_name = message.middle_name;
|
|
178
|
+
}
|
|
179
|
+
if (message.last_name !== "") {
|
|
180
|
+
obj.last_name = message.last_name;
|
|
181
|
+
}
|
|
182
|
+
if (message.mobile !== "") {
|
|
183
|
+
obj.mobile = message.mobile;
|
|
184
|
+
}
|
|
185
|
+
if (message.dob !== "") {
|
|
186
|
+
obj.dob = message.dob;
|
|
187
|
+
}
|
|
188
|
+
return obj;
|
|
189
|
+
},
|
|
190
|
+
create(base) {
|
|
191
|
+
return exports.getCustomerDetailsResponse.fromPartial(base ?? {});
|
|
192
|
+
},
|
|
193
|
+
fromPartial(object) {
|
|
194
|
+
const message = createBasegetCustomerDetailsResponse();
|
|
195
|
+
message.customerId = object.customerId ?? 0;
|
|
196
|
+
message.first_name = object.first_name ?? "";
|
|
197
|
+
message.middle_name = object.middle_name ?? "";
|
|
198
|
+
message.last_name = object.last_name ?? "";
|
|
199
|
+
message.mobile = object.mobile ?? "";
|
|
200
|
+
message.dob = object.dob ?? "";
|
|
201
|
+
return message;
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
function longToNumber(long) {
|
|
205
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
206
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
207
|
+
}
|
|
208
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
209
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
210
|
+
}
|
|
211
|
+
return long.toNumber();
|
|
212
|
+
}
|
|
213
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
214
|
+
minimal_1.default.util.Long = long_1.default;
|
|
215
|
+
minimal_1.default.configure();
|
|
216
|
+
}
|
|
217
|
+
function isSet(value) {
|
|
218
|
+
return value !== null && value !== undefined;
|
|
219
|
+
}
|
|
@@ -58,6 +58,7 @@ function createBasegetCustomerProfileResponse() {
|
|
|
58
58
|
email: "",
|
|
59
59
|
profile_completion_status: 0,
|
|
60
60
|
category: "",
|
|
61
|
+
pincode: "",
|
|
61
62
|
details: [],
|
|
62
63
|
};
|
|
63
64
|
}
|
|
@@ -84,8 +85,11 @@ exports.getCustomerProfileResponse = {
|
|
|
84
85
|
if (message.category !== "") {
|
|
85
86
|
writer.uint32(58).string(message.category);
|
|
86
87
|
}
|
|
88
|
+
if (message.pincode !== "") {
|
|
89
|
+
writer.uint32(66).string(message.pincode);
|
|
90
|
+
}
|
|
87
91
|
for (const v of message.details) {
|
|
88
|
-
exports.ProfileDetail.encode(v, writer.uint32(
|
|
92
|
+
exports.ProfileDetail.encode(v, writer.uint32(74).fork()).ldelim();
|
|
89
93
|
}
|
|
90
94
|
return writer;
|
|
91
95
|
},
|
|
@@ -142,6 +146,12 @@ exports.getCustomerProfileResponse = {
|
|
|
142
146
|
if (tag !== 66) {
|
|
143
147
|
break;
|
|
144
148
|
}
|
|
149
|
+
message.pincode = reader.string();
|
|
150
|
+
continue;
|
|
151
|
+
case 9:
|
|
152
|
+
if (tag !== 74) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
145
155
|
message.details.push(exports.ProfileDetail.decode(reader, reader.uint32()));
|
|
146
156
|
continue;
|
|
147
157
|
}
|
|
@@ -163,6 +173,7 @@ exports.getCustomerProfileResponse = {
|
|
|
163
173
|
? globalThis.Number(object.profile_completion_status)
|
|
164
174
|
: 0,
|
|
165
175
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
176
|
+
pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
|
|
166
177
|
details: globalThis.Array.isArray(object?.details)
|
|
167
178
|
? object.details.map((e) => exports.ProfileDetail.fromJSON(e))
|
|
168
179
|
: [],
|
|
@@ -191,6 +202,9 @@ exports.getCustomerProfileResponse = {
|
|
|
191
202
|
if (message.category !== "") {
|
|
192
203
|
obj.category = message.category;
|
|
193
204
|
}
|
|
205
|
+
if (message.pincode !== "") {
|
|
206
|
+
obj.pincode = message.pincode;
|
|
207
|
+
}
|
|
194
208
|
if (message.details?.length) {
|
|
195
209
|
obj.details = message.details.map((e) => exports.ProfileDetail.toJSON(e));
|
|
196
210
|
}
|
|
@@ -208,6 +222,7 @@ exports.getCustomerProfileResponse = {
|
|
|
208
222
|
message.email = object.email ?? "";
|
|
209
223
|
message.profile_completion_status = object.profile_completion_status ?? 0;
|
|
210
224
|
message.category = object.category ?? "";
|
|
225
|
+
message.pincode = object.pincode ?? "";
|
|
211
226
|
message.details = object.details?.map((e) => exports.ProfileDetail.fromPartial(e)) || [];
|
|
212
227
|
return message;
|
|
213
228
|
},
|
package/ts/customers.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { getPaymentSummaryRequest, getPaymentSummaryResponse } from "./customers
|
|
|
19
19
|
import { lessCsImproveRequest, lessCsImproveResponse } from "./customers/cb/lesscsimprove";
|
|
20
20
|
import { moreCsImproveRequest, moreCsImproveResponse } from "./customers/cb/morecsimprove";
|
|
21
21
|
import { saveCreditBuilderRequest, saveCreditBuilderResponse } from "./customers/cb/savecreditbuilder";
|
|
22
|
+
import { updateCbStandAloneJourneyRequest, updateCbStandAloneJourneyResponse } from "./customers/cb/updatecbstandalonejourney";
|
|
22
23
|
import { updateCBTxnStatusRequest, updateCBTxnStatusResponse } from "./customers/cb/updatecbtxnstatus";
|
|
23
24
|
import { changeMpinRequest, changeMpinResponse } from "./customers/changempin";
|
|
24
25
|
import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
|
|
@@ -45,6 +46,7 @@ import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasici
|
|
|
45
46
|
import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
|
|
46
47
|
import { getCompanyAccDetailsRequest, getCompanyAccDetailsResponse } from "./customers/getcompanyaccdetails";
|
|
47
48
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
|
|
49
|
+
import { getCustomerDetailsRequest, getCustomerDetailsResponse } from "./customers/getcustomerdetailsbymobile";
|
|
48
50
|
import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
|
|
49
51
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
|
|
50
52
|
import { getDocumentsRequest, getDocumentsResponse } from "./customers/getdocuments";
|
|
@@ -816,8 +818,17 @@ export declare const customersService: {
|
|
|
816
818
|
readonly responseSerialize: (value: updateCategoryResponse) => Buffer;
|
|
817
819
|
readonly responseDeserialize: (value: Buffer) => updateCategoryResponse;
|
|
818
820
|
};
|
|
819
|
-
readonly
|
|
820
|
-
readonly path: "/service.customers/
|
|
821
|
+
readonly getFreedomPaymentOptions: {
|
|
822
|
+
readonly path: "/service.customers/getFreedomPaymentOptions";
|
|
823
|
+
readonly requestStream: false;
|
|
824
|
+
readonly responseStream: false;
|
|
825
|
+
readonly requestSerialize: (value: paymentOptionRequest) => Buffer;
|
|
826
|
+
readonly requestDeserialize: (value: Buffer) => paymentOptionRequest;
|
|
827
|
+
readonly responseSerialize: (value: paymentOptionResponse) => Buffer;
|
|
828
|
+
readonly responseDeserialize: (value: Buffer) => paymentOptionResponse;
|
|
829
|
+
};
|
|
830
|
+
readonly getCbPaymentOptions: {
|
|
831
|
+
readonly path: "/service.customers/getCbPaymentOptions";
|
|
821
832
|
readonly requestStream: false;
|
|
822
833
|
readonly responseStream: false;
|
|
823
834
|
readonly requestSerialize: (value: paymentOptionRequest) => Buffer;
|
|
@@ -960,6 +971,24 @@ export declare const customersService: {
|
|
|
960
971
|
readonly responseSerialize: (value: syncDecisionEngineResponse) => Buffer;
|
|
961
972
|
readonly responseDeserialize: (value: Buffer) => syncDecisionEngineResponse;
|
|
962
973
|
};
|
|
974
|
+
readonly updateCbStandAloneJourney: {
|
|
975
|
+
readonly path: "/service.customers/updateCbStandAloneJourney";
|
|
976
|
+
readonly requestStream: false;
|
|
977
|
+
readonly responseStream: false;
|
|
978
|
+
readonly requestSerialize: (value: updateCbStandAloneJourneyRequest) => Buffer;
|
|
979
|
+
readonly requestDeserialize: (value: Buffer) => updateCbStandAloneJourneyRequest;
|
|
980
|
+
readonly responseSerialize: (value: updateCbStandAloneJourneyResponse) => Buffer;
|
|
981
|
+
readonly responseDeserialize: (value: Buffer) => updateCbStandAloneJourneyResponse;
|
|
982
|
+
};
|
|
983
|
+
readonly getCustomerDetailsbyMobile: {
|
|
984
|
+
readonly path: "/service.customers/getCustomerDetailsbyMobile";
|
|
985
|
+
readonly requestStream: false;
|
|
986
|
+
readonly responseStream: false;
|
|
987
|
+
readonly requestSerialize: (value: getCustomerDetailsRequest) => Buffer;
|
|
988
|
+
readonly requestDeserialize: (value: Buffer) => getCustomerDetailsRequest;
|
|
989
|
+
readonly responseSerialize: (value: getCustomerDetailsResponse) => Buffer;
|
|
990
|
+
readonly responseDeserialize: (value: Buffer) => getCustomerDetailsResponse;
|
|
991
|
+
};
|
|
963
992
|
};
|
|
964
993
|
export interface customersServer extends UntypedServiceImplementation {
|
|
965
994
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1042,7 +1071,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1042
1071
|
getFreedomTxnStatus: handleUnaryCall<getFreedomTxnStatusRequest, getFreedomTxnStatusResponse>;
|
|
1043
1072
|
updateFreedomTxnStatus: handleUnaryCall<updateFreedomTxnStatusRequest, updateFreedomTxnStatusResponse>;
|
|
1044
1073
|
updateCategory: handleUnaryCall<updateCategoryRequest, updateCategoryResponse>;
|
|
1045
|
-
|
|
1074
|
+
getFreedomPaymentOptions: handleUnaryCall<paymentOptionRequest, paymentOptionResponse>;
|
|
1075
|
+
getCbPaymentOptions: handleUnaryCall<paymentOptionRequest, paymentOptionResponse>;
|
|
1046
1076
|
getAaTxnStatus: handleUnaryCall<getAATransactionStatusRequest, getAATransactionStatusResponse>;
|
|
1047
1077
|
getCreditBuilder: handleUnaryCall<getCreditBuilderRequest, getCreditBuilderResponse>;
|
|
1048
1078
|
lessCsImprove: handleUnaryCall<lessCsImproveRequest, lessCsImproveResponse>;
|
|
@@ -1058,6 +1088,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1058
1088
|
createVaNumber: handleUnaryCall<createVaNumberRequest, createVaNumberResponse>;
|
|
1059
1089
|
deleteDocument: handleUnaryCall<deleteDocumentRequest, deleteDocumentResponse>;
|
|
1060
1090
|
syncDecisionEngine: handleUnaryCall<syncDecisionEngineRequest, syncDecisionEngineResponse>;
|
|
1091
|
+
updateCbStandAloneJourney: handleUnaryCall<updateCbStandAloneJourneyRequest, updateCbStandAloneJourneyResponse>;
|
|
1092
|
+
getCustomerDetailsbyMobile: handleUnaryCall<getCustomerDetailsRequest, getCustomerDetailsResponse>;
|
|
1061
1093
|
}
|
|
1062
1094
|
export interface customersClient extends Client {
|
|
1063
1095
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1300,9 +1332,12 @@ export interface customersClient extends Client {
|
|
|
1300
1332
|
updateCategory(request: updateCategoryRequest, callback: (error: ServiceError | null, response: updateCategoryResponse) => void): ClientUnaryCall;
|
|
1301
1333
|
updateCategory(request: updateCategoryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCategoryResponse) => void): ClientUnaryCall;
|
|
1302
1334
|
updateCategory(request: updateCategoryRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCategoryResponse) => void): ClientUnaryCall;
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1335
|
+
getFreedomPaymentOptions(request: paymentOptionRequest, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1336
|
+
getFreedomPaymentOptions(request: paymentOptionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1337
|
+
getFreedomPaymentOptions(request: paymentOptionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1338
|
+
getCbPaymentOptions(request: paymentOptionRequest, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1339
|
+
getCbPaymentOptions(request: paymentOptionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1340
|
+
getCbPaymentOptions(request: paymentOptionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
|
|
1306
1341
|
getAaTxnStatus(request: getAATransactionStatusRequest, callback: (error: ServiceError | null, response: getAATransactionStatusResponse) => void): ClientUnaryCall;
|
|
1307
1342
|
getAaTxnStatus(request: getAATransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAATransactionStatusResponse) => void): ClientUnaryCall;
|
|
1308
1343
|
getAaTxnStatus(request: getAATransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAATransactionStatusResponse) => void): ClientUnaryCall;
|
|
@@ -1348,6 +1383,12 @@ export interface customersClient extends Client {
|
|
|
1348
1383
|
syncDecisionEngine(request: syncDecisionEngineRequest, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1349
1384
|
syncDecisionEngine(request: syncDecisionEngineRequest, metadata: Metadata, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1350
1385
|
syncDecisionEngine(request: syncDecisionEngineRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: syncDecisionEngineResponse) => void): ClientUnaryCall;
|
|
1386
|
+
updateCbStandAloneJourney(request: updateCbStandAloneJourneyRequest, callback: (error: ServiceError | null, response: updateCbStandAloneJourneyResponse) => void): ClientUnaryCall;
|
|
1387
|
+
updateCbStandAloneJourney(request: updateCbStandAloneJourneyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCbStandAloneJourneyResponse) => void): ClientUnaryCall;
|
|
1388
|
+
updateCbStandAloneJourney(request: updateCbStandAloneJourneyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCbStandAloneJourneyResponse) => void): ClientUnaryCall;
|
|
1389
|
+
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1390
|
+
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1391
|
+
getCustomerDetailsbyMobile(request: getCustomerDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerDetailsResponse) => void): ClientUnaryCall;
|
|
1351
1392
|
}
|
|
1352
1393
|
export declare const customersClient: {
|
|
1353
1394
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -28,6 +28,7 @@ const getpaymentsummary_1 = require("./customers/cb/getpaymentsummary");
|
|
|
28
28
|
const lesscsimprove_1 = require("./customers/cb/lesscsimprove");
|
|
29
29
|
const morecsimprove_1 = require("./customers/cb/morecsimprove");
|
|
30
30
|
const savecreditbuilder_1 = require("./customers/cb/savecreditbuilder");
|
|
31
|
+
const updatecbstandalonejourney_1 = require("./customers/cb/updatecbstandalonejourney");
|
|
31
32
|
const updatecbtxnstatus_1 = require("./customers/cb/updatecbtxnstatus");
|
|
32
33
|
const changempin_1 = require("./customers/changempin");
|
|
33
34
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
@@ -54,6 +55,7 @@ const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
|
54
55
|
const getcities_1 = require("./customers/getcities");
|
|
55
56
|
const getcompanyaccdetails_1 = require("./customers/getcompanyaccdetails");
|
|
56
57
|
const getcustomerbyid_1 = require("./customers/getcustomerbyid");
|
|
58
|
+
const getcustomerdetailsbymobile_1 = require("./customers/getcustomerdetailsbymobile");
|
|
57
59
|
const getdashboard_1 = require("./customers/getdashboard");
|
|
58
60
|
const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
59
61
|
const getdocuments_1 = require("./customers/getdocuments");
|
|
@@ -824,8 +826,17 @@ exports.customersService = {
|
|
|
824
826
|
responseSerialize: (value) => Buffer.from(updatecategory_1.updateCategoryResponse.encode(value).finish()),
|
|
825
827
|
responseDeserialize: (value) => updatecategory_1.updateCategoryResponse.decode(value),
|
|
826
828
|
},
|
|
827
|
-
|
|
828
|
-
path: "/service.customers/
|
|
829
|
+
getFreedomPaymentOptions: {
|
|
830
|
+
path: "/service.customers/getFreedomPaymentOptions",
|
|
831
|
+
requestStream: false,
|
|
832
|
+
responseStream: false,
|
|
833
|
+
requestSerialize: (value) => Buffer.from(getpaymentoptions_1.paymentOptionRequest.encode(value).finish()),
|
|
834
|
+
requestDeserialize: (value) => getpaymentoptions_1.paymentOptionRequest.decode(value),
|
|
835
|
+
responseSerialize: (value) => Buffer.from(getpaymentoptions_1.paymentOptionResponse.encode(value).finish()),
|
|
836
|
+
responseDeserialize: (value) => getpaymentoptions_1.paymentOptionResponse.decode(value),
|
|
837
|
+
},
|
|
838
|
+
getCbPaymentOptions: {
|
|
839
|
+
path: "/service.customers/getCbPaymentOptions",
|
|
829
840
|
requestStream: false,
|
|
830
841
|
responseStream: false,
|
|
831
842
|
requestSerialize: (value) => Buffer.from(getpaymentoptions_1.paymentOptionRequest.encode(value).finish()),
|
|
@@ -968,5 +979,23 @@ exports.customersService = {
|
|
|
968
979
|
responseSerialize: (value) => Buffer.from(syncdecisionengine_1.syncDecisionEngineResponse.encode(value).finish()),
|
|
969
980
|
responseDeserialize: (value) => syncdecisionengine_1.syncDecisionEngineResponse.decode(value),
|
|
970
981
|
},
|
|
982
|
+
updateCbStandAloneJourney: {
|
|
983
|
+
path: "/service.customers/updateCbStandAloneJourney",
|
|
984
|
+
requestStream: false,
|
|
985
|
+
responseStream: false,
|
|
986
|
+
requestSerialize: (value) => Buffer.from(updatecbstandalonejourney_1.updateCbStandAloneJourneyRequest.encode(value).finish()),
|
|
987
|
+
requestDeserialize: (value) => updatecbstandalonejourney_1.updateCbStandAloneJourneyRequest.decode(value),
|
|
988
|
+
responseSerialize: (value) => Buffer.from(updatecbstandalonejourney_1.updateCbStandAloneJourneyResponse.encode(value).finish()),
|
|
989
|
+
responseDeserialize: (value) => updatecbstandalonejourney_1.updateCbStandAloneJourneyResponse.decode(value),
|
|
990
|
+
},
|
|
991
|
+
getCustomerDetailsbyMobile: {
|
|
992
|
+
path: "/service.customers/getCustomerDetailsbyMobile",
|
|
993
|
+
requestStream: false,
|
|
994
|
+
responseStream: false,
|
|
995
|
+
requestSerialize: (value) => Buffer.from(getcustomerdetailsbymobile_1.getCustomerDetailsRequest.encode(value).finish()),
|
|
996
|
+
requestDeserialize: (value) => getcustomerdetailsbymobile_1.getCustomerDetailsRequest.decode(value),
|
|
997
|
+
responseSerialize: (value) => Buffer.from(getcustomerdetailsbymobile_1.getCustomerDetailsResponse.encode(value).finish()),
|
|
998
|
+
responseDeserialize: (value) => getcustomerdetailsbymobile_1.getCustomerDetailsResponse.decode(value),
|
|
999
|
+
},
|
|
971
1000
|
};
|
|
972
1001
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|