@stashfin/grpc 1.2.751 → 1.2.753

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.751",
3
+ "version": "1.2.753",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -6,12 +6,15 @@ import { getCustomerByIdRequest, getCustomerByIdResponse } from "./eqxcustomers/
6
6
  import { getCustomerByMobileRequest, getCustomerByMobileResponse } from "./eqxcustomers/getcustomerbymobile";
7
7
  import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
8
8
  import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
9
+ import { getlandingHomePageRequest, getlandingHomePageResponse } from "./eqxcustomers/getlandinghomepage";
10
+ import { getlandingTokenRequest, getlandingTokenResponse } from "./eqxcustomers/getlandingtoken";
9
11
  import { getLoanPlansRequest, getLoanPlansResponse } from "./eqxcustomers/getloanplans";
10
12
  import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
11
13
  import { getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse } from "./eqxcustomers/getstashscorecustomerprofile";
12
14
  import { getTnCRequest, getTnCResponse } from "./eqxcustomers/gettnc";
13
15
  import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
14
16
  import { isCustomerRegisteredRequest, isCustomerRegisteredResponse } from "./eqxcustomers/iscustomerregistered";
17
+ import { registerlandingCustomerRequest, registerlandingCustomerResponse } from "./eqxcustomers/registerlandingcustomer";
15
18
  import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
16
19
  import { truecallerLoginRequest, truecallerLoginResponse } from "./eqxcustomers/truecallerlogin";
17
20
  import { updateCustomerRequest, updateCustomerResponse } from "./eqxcustomers/updatecustomer";
@@ -212,6 +215,33 @@ export declare const eqxcustomersService: {
212
215
  readonly responseSerialize: (value: truecallerLoginResponse) => Buffer<ArrayBuffer>;
213
216
  readonly responseDeserialize: (value: Buffer) => truecallerLoginResponse;
214
217
  };
218
+ readonly getlandingToken: {
219
+ readonly path: "/service.eqxcustomers/getlandingToken";
220
+ readonly requestStream: false;
221
+ readonly responseStream: false;
222
+ readonly requestSerialize: (value: getlandingTokenRequest) => Buffer<ArrayBuffer>;
223
+ readonly requestDeserialize: (value: Buffer) => getlandingTokenRequest;
224
+ readonly responseSerialize: (value: getlandingTokenResponse) => Buffer<ArrayBuffer>;
225
+ readonly responseDeserialize: (value: Buffer) => getlandingTokenResponse;
226
+ };
227
+ readonly registerlandingCustomer: {
228
+ readonly path: "/service.eqxcustomers/registerlandingCustomer";
229
+ readonly requestStream: false;
230
+ readonly responseStream: false;
231
+ readonly requestSerialize: (value: registerlandingCustomerRequest) => Buffer<ArrayBuffer>;
232
+ readonly requestDeserialize: (value: Buffer) => registerlandingCustomerRequest;
233
+ readonly responseSerialize: (value: registerlandingCustomerResponse) => Buffer<ArrayBuffer>;
234
+ readonly responseDeserialize: (value: Buffer) => registerlandingCustomerResponse;
235
+ };
236
+ readonly getlandingHomePage: {
237
+ readonly path: "/service.eqxcustomers/getlandingHomePage";
238
+ readonly requestStream: false;
239
+ readonly responseStream: false;
240
+ readonly requestSerialize: (value: getlandingHomePageRequest) => Buffer<ArrayBuffer>;
241
+ readonly requestDeserialize: (value: Buffer) => getlandingHomePageRequest;
242
+ readonly responseSerialize: (value: getlandingHomePageResponse) => Buffer<ArrayBuffer>;
243
+ readonly responseDeserialize: (value: Buffer) => getlandingHomePageResponse;
244
+ };
215
245
  };
216
246
  export interface eqxcustomersServer extends UntypedServiceImplementation {
217
247
  sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
@@ -235,6 +265,9 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
235
265
  getLoanPlans: handleUnaryCall<getLoanPlansRequest, getLoanPlansResponse>;
236
266
  getTnC: handleUnaryCall<getTnCRequest, getTnCResponse>;
237
267
  truecallerLogin: handleUnaryCall<truecallerLoginRequest, truecallerLoginResponse>;
268
+ getlandingToken: handleUnaryCall<getlandingTokenRequest, getlandingTokenResponse>;
269
+ registerlandingCustomer: handleUnaryCall<registerlandingCustomerRequest, registerlandingCustomerResponse>;
270
+ getlandingHomePage: handleUnaryCall<getlandingHomePageRequest, getlandingHomePageResponse>;
238
271
  }
239
272
  export interface eqxcustomersClient extends Client {
240
273
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
@@ -300,6 +333,15 @@ export interface eqxcustomersClient extends Client {
300
333
  truecallerLogin(request: truecallerLoginRequest, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
301
334
  truecallerLogin(request: truecallerLoginRequest, metadata: Metadata, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
302
335
  truecallerLogin(request: truecallerLoginRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
336
+ getlandingToken(request: getlandingTokenRequest, callback: (error: ServiceError | null, response: getlandingTokenResponse) => void): ClientUnaryCall;
337
+ getlandingToken(request: getlandingTokenRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getlandingTokenResponse) => void): ClientUnaryCall;
338
+ getlandingToken(request: getlandingTokenRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getlandingTokenResponse) => void): ClientUnaryCall;
339
+ registerlandingCustomer(request: registerlandingCustomerRequest, callback: (error: ServiceError | null, response: registerlandingCustomerResponse) => void): ClientUnaryCall;
340
+ registerlandingCustomer(request: registerlandingCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: registerlandingCustomerResponse) => void): ClientUnaryCall;
341
+ registerlandingCustomer(request: registerlandingCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: registerlandingCustomerResponse) => void): ClientUnaryCall;
342
+ getlandingHomePage(request: getlandingHomePageRequest, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
343
+ getlandingHomePage(request: getlandingHomePageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
344
+ getlandingHomePage(request: getlandingHomePageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
303
345
  }
304
346
  export declare const eqxcustomersClient: {
305
347
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
package/ts/eqxcustomer.js CHANGED
@@ -15,12 +15,15 @@ const getcustomerbyid_1 = require("./eqxcustomers/getcustomerbyid");
15
15
  const getcustomerbymobile_1 = require("./eqxcustomers/getcustomerbymobile");
16
16
  const getdashboard_1 = require("./eqxcustomers/getdashboard");
17
17
  const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
18
+ const getlandinghomepage_1 = require("./eqxcustomers/getlandinghomepage");
19
+ const getlandingtoken_1 = require("./eqxcustomers/getlandingtoken");
18
20
  const getloanplans_1 = require("./eqxcustomers/getloanplans");
19
21
  const getnotifications_1 = require("./eqxcustomers/getnotifications");
20
22
  const getstashscorecustomerprofile_1 = require("./eqxcustomers/getstashscorecustomerprofile");
21
23
  const gettnc_1 = require("./eqxcustomers/gettnc");
22
24
  const gettokens_1 = require("./eqxcustomers/gettokens");
23
25
  const iscustomerregistered_1 = require("./eqxcustomers/iscustomerregistered");
26
+ const registerlandingcustomer_1 = require("./eqxcustomers/registerlandingcustomer");
24
27
  const sendotp_1 = require("./eqxcustomers/sendotp");
25
28
  const truecallerlogin_1 = require("./eqxcustomers/truecallerlogin");
26
29
  const updatecustomer_1 = require("./eqxcustomers/updatecustomer");
@@ -220,5 +223,32 @@ exports.eqxcustomersService = {
220
223
  responseSerialize: (value) => Buffer.from(truecallerlogin_1.truecallerLoginResponse.encode(value).finish()),
221
224
  responseDeserialize: (value) => truecallerlogin_1.truecallerLoginResponse.decode(value),
222
225
  },
226
+ getlandingToken: {
227
+ path: "/service.eqxcustomers/getlandingToken",
228
+ requestStream: false,
229
+ responseStream: false,
230
+ requestSerialize: (value) => Buffer.from(getlandingtoken_1.getlandingTokenRequest.encode(value).finish()),
231
+ requestDeserialize: (value) => getlandingtoken_1.getlandingTokenRequest.decode(value),
232
+ responseSerialize: (value) => Buffer.from(getlandingtoken_1.getlandingTokenResponse.encode(value).finish()),
233
+ responseDeserialize: (value) => getlandingtoken_1.getlandingTokenResponse.decode(value),
234
+ },
235
+ registerlandingCustomer: {
236
+ path: "/service.eqxcustomers/registerlandingCustomer",
237
+ requestStream: false,
238
+ responseStream: false,
239
+ requestSerialize: (value) => Buffer.from(registerlandingcustomer_1.registerlandingCustomerRequest.encode(value).finish()),
240
+ requestDeserialize: (value) => registerlandingcustomer_1.registerlandingCustomerRequest.decode(value),
241
+ responseSerialize: (value) => Buffer.from(registerlandingcustomer_1.registerlandingCustomerResponse.encode(value).finish()),
242
+ responseDeserialize: (value) => registerlandingcustomer_1.registerlandingCustomerResponse.decode(value),
243
+ },
244
+ getlandingHomePage: {
245
+ path: "/service.eqxcustomers/getlandingHomePage",
246
+ requestStream: false,
247
+ responseStream: false,
248
+ requestSerialize: (value) => Buffer.from(getlandinghomepage_1.getlandingHomePageRequest.encode(value).finish()),
249
+ requestDeserialize: (value) => getlandinghomepage_1.getlandingHomePageRequest.decode(value),
250
+ responseSerialize: (value) => Buffer.from(getlandinghomepage_1.getlandingHomePageResponse.encode(value).finish()),
251
+ responseDeserialize: (value) => getlandinghomepage_1.getlandingHomePageResponse.decode(value),
252
+ },
223
253
  };
224
254
  exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
@@ -0,0 +1,181 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.getlandinghomepage";
3
+ export interface getlandingHomePageRequest {
4
+ landing_auth_token: string;
5
+ landing_device_id: string;
6
+ device_version: string;
7
+ customer_id?: string | undefined;
8
+ }
9
+ export interface SupportFlags {
10
+ click_to_call: number;
11
+ ym_chat: number;
12
+ custom_support_option?: string | undefined;
13
+ }
14
+ export interface FeatureFlagsOutput {
15
+ is_fip: boolean;
16
+ popup_pages: string[];
17
+ credit_shield_enable: boolean;
18
+ pcr_enable: boolean;
19
+ fcp_enabled: boolean;
20
+ status: string;
21
+ snooze_my_emi: number;
22
+ loc_disable_display: boolean;
23
+ delete_my_account: boolean;
24
+ support_flags: SupportFlags | undefined;
25
+ }
26
+ export interface CustomerBankDetails {
27
+ account_number: string;
28
+ ifsc_code: string;
29
+ bank_name: string;
30
+ }
31
+ export interface BlockData {
32
+ text: string;
33
+ amount_text?: string | undefined;
34
+ sub_text: string;
35
+ action_button_text: string;
36
+ action: string;
37
+ action_type: string;
38
+ total_loc?: string | undefined;
39
+ used_loc?: string | undefined;
40
+ available_sp_loc: number;
41
+ can_reload_card: boolean;
42
+ disbursed_amount?: string | undefined;
43
+ remaining_emi: string;
44
+ balance_emi_amount: number;
45
+ comment: string;
46
+ comment2: string;
47
+ landing_page: string;
48
+ timer: string;
49
+ image: string;
50
+ loc_error: string;
51
+ show_button: boolean;
52
+ total_stash_cash: string;
53
+ supp_title: string;
54
+ supp_loc_status: number;
55
+ supp_sub_title: string;
56
+ heading_1: string;
57
+ heading_2: string;
58
+ }
59
+ export interface Block {
60
+ block_name: string;
61
+ block_code: string;
62
+ rank: number;
63
+ block_data: BlockData | undefined;
64
+ }
65
+ export interface WebBlocks {
66
+ show_web_journey_popup: boolean;
67
+ approve_amount: string;
68
+ loan_status: string;
69
+ }
70
+ export interface HomeFeed {
71
+ user_state: string;
72
+ mf_state: string;
73
+ father_name_dialog: boolean;
74
+ blocks: Block[];
75
+ web_blocks?: WebBlocks | undefined;
76
+ }
77
+ export interface LandingPageData {
78
+ user_state: string;
79
+ mf_state: string;
80
+ father_name_dialog: boolean;
81
+ blocks: Block[];
82
+ web_blocks?: WebBlocks | undefined;
83
+ customer_feature_flag: FeatureFlagsOutput | undefined;
84
+ customer_bank_details?: CustomerBankDetails | undefined;
85
+ }
86
+ export interface getlandingHomePageResponse {
87
+ success: boolean;
88
+ data: LandingPageData | undefined;
89
+ error_message?: string | undefined;
90
+ }
91
+ export declare const getlandingHomePageRequest: {
92
+ encode(message: getlandingHomePageRequest, writer?: _m0.Writer): _m0.Writer;
93
+ decode(input: _m0.Reader | Uint8Array, length?: number): getlandingHomePageRequest;
94
+ fromJSON(object: any): getlandingHomePageRequest;
95
+ toJSON(message: getlandingHomePageRequest): unknown;
96
+ create<I extends Exact<DeepPartial<getlandingHomePageRequest>, I>>(base?: I): getlandingHomePageRequest;
97
+ fromPartial<I extends Exact<DeepPartial<getlandingHomePageRequest>, I>>(object: I): getlandingHomePageRequest;
98
+ };
99
+ export declare const SupportFlags: {
100
+ encode(message: SupportFlags, writer?: _m0.Writer): _m0.Writer;
101
+ decode(input: _m0.Reader | Uint8Array, length?: number): SupportFlags;
102
+ fromJSON(object: any): SupportFlags;
103
+ toJSON(message: SupportFlags): unknown;
104
+ create<I extends Exact<DeepPartial<SupportFlags>, I>>(base?: I): SupportFlags;
105
+ fromPartial<I extends Exact<DeepPartial<SupportFlags>, I>>(object: I): SupportFlags;
106
+ };
107
+ export declare const FeatureFlagsOutput: {
108
+ encode(message: FeatureFlagsOutput, writer?: _m0.Writer): _m0.Writer;
109
+ decode(input: _m0.Reader | Uint8Array, length?: number): FeatureFlagsOutput;
110
+ fromJSON(object: any): FeatureFlagsOutput;
111
+ toJSON(message: FeatureFlagsOutput): unknown;
112
+ create<I extends Exact<DeepPartial<FeatureFlagsOutput>, I>>(base?: I): FeatureFlagsOutput;
113
+ fromPartial<I extends Exact<DeepPartial<FeatureFlagsOutput>, I>>(object: I): FeatureFlagsOutput;
114
+ };
115
+ export declare const CustomerBankDetails: {
116
+ encode(message: CustomerBankDetails, writer?: _m0.Writer): _m0.Writer;
117
+ decode(input: _m0.Reader | Uint8Array, length?: number): CustomerBankDetails;
118
+ fromJSON(object: any): CustomerBankDetails;
119
+ toJSON(message: CustomerBankDetails): unknown;
120
+ create<I extends Exact<DeepPartial<CustomerBankDetails>, I>>(base?: I): CustomerBankDetails;
121
+ fromPartial<I extends Exact<DeepPartial<CustomerBankDetails>, I>>(object: I): CustomerBankDetails;
122
+ };
123
+ export declare const BlockData: {
124
+ encode(message: BlockData, writer?: _m0.Writer): _m0.Writer;
125
+ decode(input: _m0.Reader | Uint8Array, length?: number): BlockData;
126
+ fromJSON(object: any): BlockData;
127
+ toJSON(message: BlockData): unknown;
128
+ create<I extends Exact<DeepPartial<BlockData>, I>>(base?: I): BlockData;
129
+ fromPartial<I extends Exact<DeepPartial<BlockData>, I>>(object: I): BlockData;
130
+ };
131
+ export declare const Block: {
132
+ encode(message: Block, writer?: _m0.Writer): _m0.Writer;
133
+ decode(input: _m0.Reader | Uint8Array, length?: number): Block;
134
+ fromJSON(object: any): Block;
135
+ toJSON(message: Block): unknown;
136
+ create<I extends Exact<DeepPartial<Block>, I>>(base?: I): Block;
137
+ fromPartial<I extends Exact<DeepPartial<Block>, I>>(object: I): Block;
138
+ };
139
+ export declare const WebBlocks: {
140
+ encode(message: WebBlocks, writer?: _m0.Writer): _m0.Writer;
141
+ decode(input: _m0.Reader | Uint8Array, length?: number): WebBlocks;
142
+ fromJSON(object: any): WebBlocks;
143
+ toJSON(message: WebBlocks): unknown;
144
+ create<I extends Exact<DeepPartial<WebBlocks>, I>>(base?: I): WebBlocks;
145
+ fromPartial<I extends Exact<DeepPartial<WebBlocks>, I>>(object: I): WebBlocks;
146
+ };
147
+ export declare const HomeFeed: {
148
+ encode(message: HomeFeed, writer?: _m0.Writer): _m0.Writer;
149
+ decode(input: _m0.Reader | Uint8Array, length?: number): HomeFeed;
150
+ fromJSON(object: any): HomeFeed;
151
+ toJSON(message: HomeFeed): unknown;
152
+ create<I extends Exact<DeepPartial<HomeFeed>, I>>(base?: I): HomeFeed;
153
+ fromPartial<I extends Exact<DeepPartial<HomeFeed>, I>>(object: I): HomeFeed;
154
+ };
155
+ export declare const LandingPageData: {
156
+ encode(message: LandingPageData, writer?: _m0.Writer): _m0.Writer;
157
+ decode(input: _m0.Reader | Uint8Array, length?: number): LandingPageData;
158
+ fromJSON(object: any): LandingPageData;
159
+ toJSON(message: LandingPageData): unknown;
160
+ create<I extends Exact<DeepPartial<LandingPageData>, I>>(base?: I): LandingPageData;
161
+ fromPartial<I extends Exact<DeepPartial<LandingPageData>, I>>(object: I): LandingPageData;
162
+ };
163
+ export declare const getlandingHomePageResponse: {
164
+ encode(message: getlandingHomePageResponse, writer?: _m0.Writer): _m0.Writer;
165
+ decode(input: _m0.Reader | Uint8Array, length?: number): getlandingHomePageResponse;
166
+ fromJSON(object: any): getlandingHomePageResponse;
167
+ toJSON(message: getlandingHomePageResponse): unknown;
168
+ create<I extends Exact<DeepPartial<getlandingHomePageResponse>, I>>(base?: I): getlandingHomePageResponse;
169
+ fromPartial<I extends Exact<DeepPartial<getlandingHomePageResponse>, I>>(object: I): getlandingHomePageResponse;
170
+ };
171
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
172
+ 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 {} ? {
173
+ [K in keyof T]?: DeepPartial<T[K]>;
174
+ } : Partial<T>;
175
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
176
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
177
+ [K in keyof P]: Exact<P[K], I[K]>;
178
+ } & {
179
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
180
+ };
181
+ export {};