@stashfin/grpc 1.2.811 → 1.2.812
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
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
|
24
24
|
import { truecallerLoginRequest, truecallerLoginResponse } from "./eqxcustomers/truecallerlogin";
|
|
25
25
|
import { updateCustomerRequest, updateCustomerResponse } from "./eqxcustomers/updatecustomer";
|
|
26
26
|
import { updateCustomerBasicDetailsRequest, updateCustomerBasicDetailsResponse } from "./eqxcustomers/updatecustomerbasicdetails";
|
|
27
|
+
import { updateCustomerCategoryRequest, updateCustomerCategoryResponse } from "./eqxcustomers/updatecustomercategory";
|
|
27
28
|
import { updateCustomerDeviceDetailsRequest, updateCustomerDeviceDetailsResponse } from "./eqxcustomers/updatedevicedetails";
|
|
28
29
|
import { updateNotificationRequest, updateNotificationResponse } from "./eqxcustomers/updatenotification";
|
|
29
30
|
import { updatePushIdRequest, updatePushIdResponse } from "./eqxcustomers/updatepushid";
|
|
@@ -249,6 +250,15 @@ export declare const eqxcustomersService: {
|
|
|
249
250
|
readonly responseSerialize: (value: CustomerDeviceInfoResponse) => Buffer;
|
|
250
251
|
readonly responseDeserialize: (value: Buffer) => CustomerDeviceInfoResponse;
|
|
251
252
|
};
|
|
253
|
+
readonly updateCustomerCategory: {
|
|
254
|
+
readonly path: "/service.eqxcustomers/updateCustomerCategory";
|
|
255
|
+
readonly requestStream: false;
|
|
256
|
+
readonly responseStream: false;
|
|
257
|
+
readonly requestSerialize: (value: updateCustomerCategoryRequest) => Buffer;
|
|
258
|
+
readonly requestDeserialize: (value: Buffer) => updateCustomerCategoryRequest;
|
|
259
|
+
readonly responseSerialize: (value: updateCustomerCategoryResponse) => Buffer;
|
|
260
|
+
readonly responseDeserialize: (value: Buffer) => updateCustomerCategoryResponse;
|
|
261
|
+
};
|
|
252
262
|
readonly getLendingSyncedInfo: {
|
|
253
263
|
readonly path: "/service.eqxcustomers/getLendingSyncedInfo";
|
|
254
264
|
readonly requestStream: false;
|
|
@@ -338,6 +348,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
338
348
|
getlendingHomePage: handleUnaryCall<getlendingHomePageRequest, getlendingHomePageResponse>;
|
|
339
349
|
getLendingCustomerAppsInfo: handleUnaryCall<CustomerAppsInfoRequest, CustomerAppsInfoResponse>;
|
|
340
350
|
getLendingCustomerDeviceInfo: handleUnaryCall<CustomerDeviceInfoRequest, CustomerDeviceInfoResponse>;
|
|
351
|
+
updateCustomerCategory: handleUnaryCall<updateCustomerCategoryRequest, updateCustomerCategoryResponse>;
|
|
341
352
|
getLendingSyncedInfo: handleUnaryCall<getLendingSyncedInfoRequest, getLendingSyncedInfoResponse>;
|
|
342
353
|
getLendingRefreshToken: handleUnaryCall<getLendingRefreshTokenRequest, getLendingRefreshTokenResponse>;
|
|
343
354
|
getCustomerByVpa: handleUnaryCall<getCustomerByVpaRequest, getCustomerByVpaResponse>;
|
|
@@ -419,6 +430,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
419
430
|
getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
|
|
420
431
|
getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
|
|
421
432
|
getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
|
|
433
|
+
updateCustomerCategory(request: updateCustomerCategoryRequest, callback: (error: ServiceError | null, response: updateCustomerCategoryResponse) => void): ClientUnaryCall;
|
|
434
|
+
updateCustomerCategory(request: updateCustomerCategoryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCustomerCategoryResponse) => void): ClientUnaryCall;
|
|
435
|
+
updateCustomerCategory(request: updateCustomerCategoryRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCustomerCategoryResponse) => void): ClientUnaryCall;
|
|
422
436
|
getLendingSyncedInfo(request: getLendingSyncedInfoRequest, callback: (error: ServiceError | null, response: getLendingSyncedInfoResponse) => void): ClientUnaryCall;
|
|
423
437
|
getLendingSyncedInfo(request: getLendingSyncedInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getLendingSyncedInfoResponse) => void): ClientUnaryCall;
|
|
424
438
|
getLendingSyncedInfo(request: getLendingSyncedInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getLendingSyncedInfoResponse) => void): ClientUnaryCall;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -33,6 +33,7 @@ const sendotp_1 = require("./eqxcustomers/sendotp");
|
|
|
33
33
|
const truecallerlogin_1 = require("./eqxcustomers/truecallerlogin");
|
|
34
34
|
const updatecustomer_1 = require("./eqxcustomers/updatecustomer");
|
|
35
35
|
const updatecustomerbasicdetails_1 = require("./eqxcustomers/updatecustomerbasicdetails");
|
|
36
|
+
const updatecustomercategory_1 = require("./eqxcustomers/updatecustomercategory");
|
|
36
37
|
const updatedevicedetails_1 = require("./eqxcustomers/updatedevicedetails");
|
|
37
38
|
const updatenotification_1 = require("./eqxcustomers/updatenotification");
|
|
38
39
|
const updatepushid_1 = require("./eqxcustomers/updatepushid");
|
|
@@ -257,6 +258,15 @@ exports.eqxcustomersService = {
|
|
|
257
258
|
responseSerialize: (value) => Buffer.from(getlendingcustomerdeviceInfo_1.CustomerDeviceInfoResponse.encode(value).finish()),
|
|
258
259
|
responseDeserialize: (value) => getlendingcustomerdeviceInfo_1.CustomerDeviceInfoResponse.decode(value),
|
|
259
260
|
},
|
|
261
|
+
updateCustomerCategory: {
|
|
262
|
+
path: "/service.eqxcustomers/updateCustomerCategory",
|
|
263
|
+
requestStream: false,
|
|
264
|
+
responseStream: false,
|
|
265
|
+
requestSerialize: (value) => Buffer.from(updatecustomercategory_1.updateCustomerCategoryRequest.encode(value).finish()),
|
|
266
|
+
requestDeserialize: (value) => updatecustomercategory_1.updateCustomerCategoryRequest.decode(value),
|
|
267
|
+
responseSerialize: (value) => Buffer.from(updatecustomercategory_1.updateCustomerCategoryResponse.encode(value).finish()),
|
|
268
|
+
responseDeserialize: (value) => updatecustomercategory_1.updateCustomerCategoryResponse.decode(value),
|
|
269
|
+
},
|
|
260
270
|
getLendingSyncedInfo: {
|
|
261
271
|
path: "/service.eqxcustomers/getLendingSyncedInfo",
|
|
262
272
|
requestStream: false,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.updatecustomercategory";
|
|
3
|
+
export interface updateCustomerCategoryRequest {
|
|
4
|
+
category: string;
|
|
5
|
+
customer_id: number;
|
|
6
|
+
}
|
|
7
|
+
export interface updateCustomerCategoryResponse {
|
|
8
|
+
status: boolean;
|
|
9
|
+
message?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const updateCustomerCategoryRequest: {
|
|
12
|
+
encode(message: updateCustomerCategoryRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCustomerCategoryRequest;
|
|
14
|
+
fromJSON(object: any): updateCustomerCategoryRequest;
|
|
15
|
+
toJSON(message: updateCustomerCategoryRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<updateCustomerCategoryRequest>, I>>(base?: I): updateCustomerCategoryRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<updateCustomerCategoryRequest>, I>>(object: I): updateCustomerCategoryRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const updateCustomerCategoryResponse: {
|
|
20
|
+
encode(message: updateCustomerCategoryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCustomerCategoryResponse;
|
|
22
|
+
fromJSON(object: any): updateCustomerCategoryResponse;
|
|
23
|
+
toJSON(message: updateCustomerCategoryResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<updateCustomerCategoryResponse>, I>>(base?: I): updateCustomerCategoryResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<updateCustomerCategoryResponse>, I>>(object: I): updateCustomerCategoryResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,163 @@
|
|
|
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 v6.31.1
|
|
6
|
+
// source: eqxcustomers/updatecustomercategory.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.updateCustomerCategoryResponse = exports.updateCustomerCategoryRequest = 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 = "eqxcustomers.updatecustomercategory";
|
|
16
|
+
function createBaseupdateCustomerCategoryRequest() {
|
|
17
|
+
return { category: "", customer_id: 0 };
|
|
18
|
+
}
|
|
19
|
+
exports.updateCustomerCategoryRequest = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.category !== "") {
|
|
22
|
+
writer.uint32(10).string(message.category);
|
|
23
|
+
}
|
|
24
|
+
if (message.customer_id !== 0) {
|
|
25
|
+
writer.uint32(16).int64(message.customer_id);
|
|
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 = createBaseupdateCustomerCategoryRequest();
|
|
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.category = reader.string();
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 16) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.customer_id = longToNumber(reader.int64());
|
|
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
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
59
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.category !== "") {
|
|
65
|
+
obj.category = message.category;
|
|
66
|
+
}
|
|
67
|
+
if (message.customer_id !== 0) {
|
|
68
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.updateCustomerCategoryRequest.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBaseupdateCustomerCategoryRequest();
|
|
77
|
+
message.category = object.category ?? "";
|
|
78
|
+
message.customer_id = object.customer_id ?? 0;
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function createBaseupdateCustomerCategoryResponse() {
|
|
83
|
+
return { status: false, message: undefined };
|
|
84
|
+
}
|
|
85
|
+
exports.updateCustomerCategoryResponse = {
|
|
86
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
87
|
+
if (message.status !== false) {
|
|
88
|
+
writer.uint32(8).bool(message.status);
|
|
89
|
+
}
|
|
90
|
+
if (message.message !== undefined) {
|
|
91
|
+
writer.uint32(18).string(message.message);
|
|
92
|
+
}
|
|
93
|
+
return writer;
|
|
94
|
+
},
|
|
95
|
+
decode(input, length) {
|
|
96
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
97
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
98
|
+
const message = createBaseupdateCustomerCategoryResponse();
|
|
99
|
+
while (reader.pos < end) {
|
|
100
|
+
const tag = reader.uint32();
|
|
101
|
+
switch (tag >>> 3) {
|
|
102
|
+
case 1:
|
|
103
|
+
if (tag !== 8) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
message.status = reader.bool();
|
|
107
|
+
continue;
|
|
108
|
+
case 2:
|
|
109
|
+
if (tag !== 18) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.message = reader.string();
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
reader.skipType(tag & 7);
|
|
119
|
+
}
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
fromJSON(object) {
|
|
123
|
+
return {
|
|
124
|
+
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
125
|
+
message: isSet(object.message) ? globalThis.String(object.message) : undefined,
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
toJSON(message) {
|
|
129
|
+
const obj = {};
|
|
130
|
+
if (message.status !== false) {
|
|
131
|
+
obj.status = message.status;
|
|
132
|
+
}
|
|
133
|
+
if (message.message !== undefined) {
|
|
134
|
+
obj.message = message.message;
|
|
135
|
+
}
|
|
136
|
+
return obj;
|
|
137
|
+
},
|
|
138
|
+
create(base) {
|
|
139
|
+
return exports.updateCustomerCategoryResponse.fromPartial(base ?? {});
|
|
140
|
+
},
|
|
141
|
+
fromPartial(object) {
|
|
142
|
+
const message = createBaseupdateCustomerCategoryResponse();
|
|
143
|
+
message.status = object.status ?? false;
|
|
144
|
+
message.message = object.message ?? undefined;
|
|
145
|
+
return message;
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
function longToNumber(long) {
|
|
149
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
150
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
151
|
+
}
|
|
152
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
153
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
154
|
+
}
|
|
155
|
+
return long.toNumber();
|
|
156
|
+
}
|
|
157
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
158
|
+
minimal_1.default.util.Long = long_1.default;
|
|
159
|
+
minimal_1.default.configure();
|
|
160
|
+
}
|
|
161
|
+
function isSet(value) {
|
|
162
|
+
return value !== null && value !== undefined;
|
|
163
|
+
}
|