@stashfin/grpc 1.2.295 → 1.2.297
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
|
@@ -57,6 +57,7 @@ function createBasegetCustomerProfileResponse() {
|
|
|
57
57
|
profile_image: "",
|
|
58
58
|
email: "",
|
|
59
59
|
profile_completion_status: 0,
|
|
60
|
+
category: "",
|
|
60
61
|
details: [],
|
|
61
62
|
};
|
|
62
63
|
}
|
|
@@ -80,8 +81,11 @@ exports.getCustomerProfileResponse = {
|
|
|
80
81
|
if (message.profile_completion_status !== 0) {
|
|
81
82
|
writer.uint32(48).int32(message.profile_completion_status);
|
|
82
83
|
}
|
|
84
|
+
if (message.category !== "") {
|
|
85
|
+
writer.uint32(58).string(message.category);
|
|
86
|
+
}
|
|
83
87
|
for (const v of message.details) {
|
|
84
|
-
exports.ProfileDetail.encode(v, writer.uint32(
|
|
88
|
+
exports.ProfileDetail.encode(v, writer.uint32(66).fork()).ldelim();
|
|
85
89
|
}
|
|
86
90
|
return writer;
|
|
87
91
|
},
|
|
@@ -132,6 +136,12 @@ exports.getCustomerProfileResponse = {
|
|
|
132
136
|
if (tag !== 58) {
|
|
133
137
|
break;
|
|
134
138
|
}
|
|
139
|
+
message.category = reader.string();
|
|
140
|
+
continue;
|
|
141
|
+
case 8:
|
|
142
|
+
if (tag !== 66) {
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
135
145
|
message.details.push(exports.ProfileDetail.decode(reader, reader.uint32()));
|
|
136
146
|
continue;
|
|
137
147
|
}
|
|
@@ -152,6 +162,7 @@ exports.getCustomerProfileResponse = {
|
|
|
152
162
|
profile_completion_status: isSet(object.profile_completion_status)
|
|
153
163
|
? globalThis.Number(object.profile_completion_status)
|
|
154
164
|
: 0,
|
|
165
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
155
166
|
details: globalThis.Array.isArray(object?.details)
|
|
156
167
|
? object.details.map((e) => exports.ProfileDetail.fromJSON(e))
|
|
157
168
|
: [],
|
|
@@ -177,6 +188,9 @@ exports.getCustomerProfileResponse = {
|
|
|
177
188
|
if (message.profile_completion_status !== 0) {
|
|
178
189
|
obj.profile_completion_status = Math.round(message.profile_completion_status);
|
|
179
190
|
}
|
|
191
|
+
if (message.category !== "") {
|
|
192
|
+
obj.category = message.category;
|
|
193
|
+
}
|
|
180
194
|
if (message.details?.length) {
|
|
181
195
|
obj.details = message.details.map((e) => exports.ProfileDetail.toJSON(e));
|
|
182
196
|
}
|
|
@@ -193,6 +207,7 @@ exports.getCustomerProfileResponse = {
|
|
|
193
207
|
message.profile_image = object.profile_image ?? "";
|
|
194
208
|
message.email = object.email ?? "";
|
|
195
209
|
message.profile_completion_status = object.profile_completion_status ?? 0;
|
|
210
|
+
message.category = object.category ?? "";
|
|
196
211
|
message.details = object.details?.map((e) => exports.ProfileDetail.fromPartial(e)) || [];
|
|
197
212
|
return message;
|
|
198
213
|
},
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updatecongratulationstep";
|
|
3
|
+
export interface updateCongratulationStepRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface updateCongratulationStepResponse {
|
|
6
|
+
status: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const updateCongratulationStepRequest: {
|
|
9
|
+
encode(_: updateCongratulationStepRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCongratulationStepRequest;
|
|
11
|
+
fromJSON(_: any): updateCongratulationStepRequest;
|
|
12
|
+
toJSON(_: updateCongratulationStepRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<updateCongratulationStepRequest>, I>>(base?: I): updateCongratulationStepRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<updateCongratulationStepRequest>, I>>(_: I): updateCongratulationStepRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const updateCongratulationStepResponse: {
|
|
17
|
+
encode(message: updateCongratulationStepResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCongratulationStepResponse;
|
|
19
|
+
fromJSON(object: any): updateCongratulationStepResponse;
|
|
20
|
+
toJSON(message: updateCongratulationStepResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<updateCongratulationStepResponse>, I>>(base?: I): updateCongratulationStepResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<updateCongratulationStepResponse>, I>>(object: I): updateCongratulationStepResponse;
|
|
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/updatecongratulationstep.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.updateCongratulationStepResponse = exports.updateCongratulationStepRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updatecongratulationstep";
|
|
15
|
+
function createBaseupdateCongratulationStepRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.updateCongratulationStepRequest = {
|
|
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 = createBaseupdateCongratulationStepRequest();
|
|
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.updateCongratulationStepRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseupdateCongratulationStepRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseupdateCongratulationStepResponse() {
|
|
53
|
+
return { status: false };
|
|
54
|
+
}
|
|
55
|
+
exports.updateCongratulationStepResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== false) {
|
|
58
|
+
writer.uint32(8).bool(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 = createBaseupdateCongratulationStepResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 8) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.bool();
|
|
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.Boolean(object.status) : false };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== false) {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.updateCongratulationStepResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseupdateCongratulationStepResponse();
|
|
98
|
+
message.status = object.status ?? false;
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ import { sendEmailOtpRequest, sendEmailOtpResponse } from "./customers/sendotpto
|
|
|
71
71
|
import { setMpinRequest, setMpinResponse } from "./customers/setmpin";
|
|
72
72
|
import { skipScreenRequest, skipScreenResponse } from "./customers/skipscreen";
|
|
73
73
|
import { updateCategoryRequest, updateCategoryResponse } from "./customers/updatecategory";
|
|
74
|
+
import { updateCongratulationStepRequest, updateCongratulationStepResponse } from "./customers/updatecongratulationstep";
|
|
74
75
|
import { updateCustomerByIdRequest, updateCustomerByIdResponse } from "./customers/updatecustomerbyid";
|
|
75
76
|
import { updateDlNumberRequest, updateDlNumberResponse } from "./customers/updatedlnumber";
|
|
76
77
|
import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
|
|
@@ -880,6 +881,15 @@ export declare const customersService: {
|
|
|
880
881
|
readonly responseSerialize: (value: saveCustomerAppsResponse) => Buffer;
|
|
881
882
|
readonly responseDeserialize: (value: Buffer) => saveCustomerAppsResponse;
|
|
882
883
|
};
|
|
884
|
+
readonly updateCongratulationStep: {
|
|
885
|
+
readonly path: "/service.customers/updateCongratulationStep";
|
|
886
|
+
readonly requestStream: false;
|
|
887
|
+
readonly responseStream: false;
|
|
888
|
+
readonly requestSerialize: (value: updateCongratulationStepRequest) => Buffer;
|
|
889
|
+
readonly requestDeserialize: (value: Buffer) => updateCongratulationStepRequest;
|
|
890
|
+
readonly responseSerialize: (value: updateCongratulationStepResponse) => Buffer;
|
|
891
|
+
readonly responseDeserialize: (value: Buffer) => updateCongratulationStepResponse;
|
|
892
|
+
};
|
|
883
893
|
};
|
|
884
894
|
export interface customersServer extends UntypedServiceImplementation {
|
|
885
895
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -970,6 +980,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
970
980
|
getCbRejectedData: handleUnaryCall<getCbRejectedDataRequest, getCbRejectedDataResponse>;
|
|
971
981
|
forceUpdate: handleUnaryCall<forceUpdateRequest, forceUpdateResponse>;
|
|
972
982
|
saveCustomerAppsList: handleUnaryCall<saveCustomerAppsRequest, saveCustomerAppsResponse>;
|
|
983
|
+
updateCongratulationStep: handleUnaryCall<updateCongratulationStepRequest, updateCongratulationStepResponse>;
|
|
973
984
|
}
|
|
974
985
|
export interface customersClient extends Client {
|
|
975
986
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1236,6 +1247,9 @@ export interface customersClient extends Client {
|
|
|
1236
1247
|
saveCustomerAppsList(request: saveCustomerAppsRequest, callback: (error: ServiceError | null, response: saveCustomerAppsResponse) => void): ClientUnaryCall;
|
|
1237
1248
|
saveCustomerAppsList(request: saveCustomerAppsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: saveCustomerAppsResponse) => void): ClientUnaryCall;
|
|
1238
1249
|
saveCustomerAppsList(request: saveCustomerAppsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: saveCustomerAppsResponse) => void): ClientUnaryCall;
|
|
1250
|
+
updateCongratulationStep(request: updateCongratulationStepRequest, callback: (error: ServiceError | null, response: updateCongratulationStepResponse) => void): ClientUnaryCall;
|
|
1251
|
+
updateCongratulationStep(request: updateCongratulationStepRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCongratulationStepResponse) => void): ClientUnaryCall;
|
|
1252
|
+
updateCongratulationStep(request: updateCongratulationStepRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCongratulationStepResponse) => void): ClientUnaryCall;
|
|
1239
1253
|
}
|
|
1240
1254
|
export declare const customersClient: {
|
|
1241
1255
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -80,6 +80,7 @@ const sendotptoemail_1 = require("./customers/sendotptoemail");
|
|
|
80
80
|
const setmpin_1 = require("./customers/setmpin");
|
|
81
81
|
const skipscreen_1 = require("./customers/skipscreen");
|
|
82
82
|
const updatecategory_1 = require("./customers/updatecategory");
|
|
83
|
+
const updatecongratulationstep_1 = require("./customers/updatecongratulationstep");
|
|
83
84
|
const updatecustomerbyid_1 = require("./customers/updatecustomerbyid");
|
|
84
85
|
const updatedlnumber_1 = require("./customers/updatedlnumber");
|
|
85
86
|
const updatedob_1 = require("./customers/updatedob");
|
|
@@ -888,5 +889,14 @@ exports.customersService = {
|
|
|
888
889
|
responseSerialize: (value) => Buffer.from(saveappslist_1.saveCustomerAppsResponse.encode(value).finish()),
|
|
889
890
|
responseDeserialize: (value) => saveappslist_1.saveCustomerAppsResponse.decode(value),
|
|
890
891
|
},
|
|
892
|
+
updateCongratulationStep: {
|
|
893
|
+
path: "/service.customers/updateCongratulationStep",
|
|
894
|
+
requestStream: false,
|
|
895
|
+
responseStream: false,
|
|
896
|
+
requestSerialize: (value) => Buffer.from(updatecongratulationstep_1.updateCongratulationStepRequest.encode(value).finish()),
|
|
897
|
+
requestDeserialize: (value) => updatecongratulationstep_1.updateCongratulationStepRequest.decode(value),
|
|
898
|
+
responseSerialize: (value) => Buffer.from(updatecongratulationstep_1.updateCongratulationStepResponse.encode(value).finish()),
|
|
899
|
+
responseDeserialize: (value) => updatecongratulationstep_1.updateCongratulationStepResponse.decode(value),
|
|
900
|
+
},
|
|
891
901
|
};
|
|
892
902
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|