@stashfin/grpc 1.2.72 → 1.2.78

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.72",
3
+ "version": "1.2.78",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,43 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.aa.initiate";
3
+ export interface initiateRequest {
4
+ loan_id: number;
5
+ phone_number: string;
6
+ template_type: string;
7
+ tracking_id: string;
8
+ fipIds: string[];
9
+ }
10
+ export interface initiateResponse {
11
+ journey_type: string;
12
+ mon_reference_id: string;
13
+ und_reference_id: string;
14
+ mon_redirection_url: string;
15
+ und_redirection_url: string;
16
+ }
17
+ export declare const initiateRequest: {
18
+ encode(message: initiateRequest, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): initiateRequest;
20
+ fromJSON(object: any): initiateRequest;
21
+ toJSON(message: initiateRequest): unknown;
22
+ create<I extends Exact<DeepPartial<initiateRequest>, I>>(base?: I): initiateRequest;
23
+ fromPartial<I extends Exact<DeepPartial<initiateRequest>, I>>(object: I): initiateRequest;
24
+ };
25
+ export declare const initiateResponse: {
26
+ encode(message: initiateResponse, writer?: _m0.Writer): _m0.Writer;
27
+ decode(input: _m0.Reader | Uint8Array, length?: number): initiateResponse;
28
+ fromJSON(object: any): initiateResponse;
29
+ toJSON(message: initiateResponse): unknown;
30
+ create<I extends Exact<DeepPartial<initiateResponse>, I>>(base?: I): initiateResponse;
31
+ fromPartial<I extends Exact<DeepPartial<initiateResponse>, I>>(object: I): initiateResponse;
32
+ };
33
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
34
+ 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 {} ? {
35
+ [K in keyof T]?: DeepPartial<T[K]>;
36
+ } : Partial<T>;
37
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
38
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
39
+ [K in keyof P]: Exact<P[K], I[K]>;
40
+ } & {
41
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
42
+ };
43
+ export {};
@@ -0,0 +1,253 @@
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 v3.20.3
6
+ // source: customers/aa/initiate.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.initiateResponse = exports.initiateRequest = 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.aa.initiate";
16
+ function createBaseinitiateRequest() {
17
+ return { loan_id: 0, phone_number: "", template_type: "", tracking_id: "", fipIds: [] };
18
+ }
19
+ exports.initiateRequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.loan_id !== 0) {
22
+ writer.uint32(8).int64(message.loan_id);
23
+ }
24
+ if (message.phone_number !== "") {
25
+ writer.uint32(18).string(message.phone_number);
26
+ }
27
+ if (message.template_type !== "") {
28
+ writer.uint32(26).string(message.template_type);
29
+ }
30
+ if (message.tracking_id !== "") {
31
+ writer.uint32(34).string(message.tracking_id);
32
+ }
33
+ for (const v of message.fipIds) {
34
+ writer.uint32(42).string(v);
35
+ }
36
+ return writer;
37
+ },
38
+ decode(input, length) {
39
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
40
+ let end = length === undefined ? reader.len : reader.pos + length;
41
+ const message = createBaseinitiateRequest();
42
+ while (reader.pos < end) {
43
+ const tag = reader.uint32();
44
+ switch (tag >>> 3) {
45
+ case 1:
46
+ if (tag !== 8) {
47
+ break;
48
+ }
49
+ message.loan_id = longToNumber(reader.int64());
50
+ continue;
51
+ case 2:
52
+ if (tag !== 18) {
53
+ break;
54
+ }
55
+ message.phone_number = reader.string();
56
+ continue;
57
+ case 3:
58
+ if (tag !== 26) {
59
+ break;
60
+ }
61
+ message.template_type = reader.string();
62
+ continue;
63
+ case 4:
64
+ if (tag !== 34) {
65
+ break;
66
+ }
67
+ message.tracking_id = reader.string();
68
+ continue;
69
+ case 5:
70
+ if (tag !== 42) {
71
+ break;
72
+ }
73
+ message.fipIds.push(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 {
85
+ loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
86
+ phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
87
+ template_type: isSet(object.template_type) ? globalThis.String(object.template_type) : "",
88
+ tracking_id: isSet(object.tracking_id) ? globalThis.String(object.tracking_id) : "",
89
+ fipIds: globalThis.Array.isArray(object?.fipIds) ? object.fipIds.map((e) => globalThis.String(e)) : [],
90
+ };
91
+ },
92
+ toJSON(message) {
93
+ const obj = {};
94
+ if (message.loan_id !== 0) {
95
+ obj.loan_id = Math.round(message.loan_id);
96
+ }
97
+ if (message.phone_number !== "") {
98
+ obj.phone_number = message.phone_number;
99
+ }
100
+ if (message.template_type !== "") {
101
+ obj.template_type = message.template_type;
102
+ }
103
+ if (message.tracking_id !== "") {
104
+ obj.tracking_id = message.tracking_id;
105
+ }
106
+ if (message.fipIds?.length) {
107
+ obj.fipIds = message.fipIds;
108
+ }
109
+ return obj;
110
+ },
111
+ create(base) {
112
+ return exports.initiateRequest.fromPartial(base ?? {});
113
+ },
114
+ fromPartial(object) {
115
+ const message = createBaseinitiateRequest();
116
+ message.loan_id = object.loan_id ?? 0;
117
+ message.phone_number = object.phone_number ?? "";
118
+ message.template_type = object.template_type ?? "";
119
+ message.tracking_id = object.tracking_id ?? "";
120
+ message.fipIds = object.fipIds?.map((e) => e) || [];
121
+ return message;
122
+ },
123
+ };
124
+ function createBaseinitiateResponse() {
125
+ return {
126
+ journey_type: "",
127
+ mon_reference_id: "",
128
+ und_reference_id: "",
129
+ mon_redirection_url: "",
130
+ und_redirection_url: "",
131
+ };
132
+ }
133
+ exports.initiateResponse = {
134
+ encode(message, writer = minimal_1.default.Writer.create()) {
135
+ if (message.journey_type !== "") {
136
+ writer.uint32(10).string(message.journey_type);
137
+ }
138
+ if (message.mon_reference_id !== "") {
139
+ writer.uint32(18).string(message.mon_reference_id);
140
+ }
141
+ if (message.und_reference_id !== "") {
142
+ writer.uint32(26).string(message.und_reference_id);
143
+ }
144
+ if (message.mon_redirection_url !== "") {
145
+ writer.uint32(34).string(message.mon_redirection_url);
146
+ }
147
+ if (message.und_redirection_url !== "") {
148
+ writer.uint32(42).string(message.und_redirection_url);
149
+ }
150
+ return writer;
151
+ },
152
+ decode(input, length) {
153
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
154
+ let end = length === undefined ? reader.len : reader.pos + length;
155
+ const message = createBaseinitiateResponse();
156
+ while (reader.pos < end) {
157
+ const tag = reader.uint32();
158
+ switch (tag >>> 3) {
159
+ case 1:
160
+ if (tag !== 10) {
161
+ break;
162
+ }
163
+ message.journey_type = reader.string();
164
+ continue;
165
+ case 2:
166
+ if (tag !== 18) {
167
+ break;
168
+ }
169
+ message.mon_reference_id = reader.string();
170
+ continue;
171
+ case 3:
172
+ if (tag !== 26) {
173
+ break;
174
+ }
175
+ message.und_reference_id = reader.string();
176
+ continue;
177
+ case 4:
178
+ if (tag !== 34) {
179
+ break;
180
+ }
181
+ message.mon_redirection_url = reader.string();
182
+ continue;
183
+ case 5:
184
+ if (tag !== 42) {
185
+ break;
186
+ }
187
+ message.und_redirection_url = reader.string();
188
+ continue;
189
+ }
190
+ if ((tag & 7) === 4 || tag === 0) {
191
+ break;
192
+ }
193
+ reader.skipType(tag & 7);
194
+ }
195
+ return message;
196
+ },
197
+ fromJSON(object) {
198
+ return {
199
+ journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
200
+ mon_reference_id: isSet(object.mon_reference_id) ? globalThis.String(object.mon_reference_id) : "",
201
+ und_reference_id: isSet(object.und_reference_id) ? globalThis.String(object.und_reference_id) : "",
202
+ mon_redirection_url: isSet(object.mon_redirection_url) ? globalThis.String(object.mon_redirection_url) : "",
203
+ und_redirection_url: isSet(object.und_redirection_url) ? globalThis.String(object.und_redirection_url) : "",
204
+ };
205
+ },
206
+ toJSON(message) {
207
+ const obj = {};
208
+ if (message.journey_type !== "") {
209
+ obj.journey_type = message.journey_type;
210
+ }
211
+ if (message.mon_reference_id !== "") {
212
+ obj.mon_reference_id = message.mon_reference_id;
213
+ }
214
+ if (message.und_reference_id !== "") {
215
+ obj.und_reference_id = message.und_reference_id;
216
+ }
217
+ if (message.mon_redirection_url !== "") {
218
+ obj.mon_redirection_url = message.mon_redirection_url;
219
+ }
220
+ if (message.und_redirection_url !== "") {
221
+ obj.und_redirection_url = message.und_redirection_url;
222
+ }
223
+ return obj;
224
+ },
225
+ create(base) {
226
+ return exports.initiateResponse.fromPartial(base ?? {});
227
+ },
228
+ fromPartial(object) {
229
+ const message = createBaseinitiateResponse();
230
+ message.journey_type = object.journey_type ?? "";
231
+ message.mon_reference_id = object.mon_reference_id ?? "";
232
+ message.und_reference_id = object.und_reference_id ?? "";
233
+ message.mon_redirection_url = object.mon_redirection_url ?? "";
234
+ message.und_redirection_url = object.und_redirection_url ?? "";
235
+ return message;
236
+ },
237
+ };
238
+ function longToNumber(long) {
239
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
240
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
241
+ }
242
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
243
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
244
+ }
245
+ return long.toNumber();
246
+ }
247
+ if (minimal_1.default.util.Long !== long_1.default) {
248
+ minimal_1.default.util.Long = long_1.default;
249
+ minimal_1.default.configure();
250
+ }
251
+ function isSet(value) {
252
+ return value !== null && value !== undefined;
253
+ }
@@ -0,0 +1,74 @@
1
+ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
+ import _m0 from "protobufjs/minimal";
3
+ export declare const protobufPackage = "customers.adduserapps";
4
+ export interface UserApp {
5
+ app_name: string;
6
+ app_id: string;
7
+ app_category: string;
8
+ }
9
+ export interface AddUserAppsRequest {
10
+ apps: UserApp[];
11
+ }
12
+ export interface AddUserAppsResponse {
13
+ status: boolean;
14
+ }
15
+ export declare const UserApp: {
16
+ encode(message: UserApp, writer?: _m0.Writer): _m0.Writer;
17
+ decode(input: _m0.Reader | Uint8Array, length?: number): UserApp;
18
+ fromJSON(object: any): UserApp;
19
+ toJSON(message: UserApp): unknown;
20
+ create<I extends Exact<DeepPartial<UserApp>, I>>(base?: I): UserApp;
21
+ fromPartial<I extends Exact<DeepPartial<UserApp>, I>>(object: I): UserApp;
22
+ };
23
+ export declare const AddUserAppsRequest: {
24
+ encode(message: AddUserAppsRequest, writer?: _m0.Writer): _m0.Writer;
25
+ decode(input: _m0.Reader | Uint8Array, length?: number): AddUserAppsRequest;
26
+ fromJSON(object: any): AddUserAppsRequest;
27
+ toJSON(message: AddUserAppsRequest): unknown;
28
+ create<I extends Exact<DeepPartial<AddUserAppsRequest>, I>>(base?: I): AddUserAppsRequest;
29
+ fromPartial<I extends Exact<DeepPartial<AddUserAppsRequest>, I>>(object: I): AddUserAppsRequest;
30
+ };
31
+ export declare const AddUserAppsResponse: {
32
+ encode(message: AddUserAppsResponse, writer?: _m0.Writer): _m0.Writer;
33
+ decode(input: _m0.Reader | Uint8Array, length?: number): AddUserAppsResponse;
34
+ fromJSON(object: any): AddUserAppsResponse;
35
+ toJSON(message: AddUserAppsResponse): unknown;
36
+ create<I extends Exact<DeepPartial<AddUserAppsResponse>, I>>(base?: I): AddUserAppsResponse;
37
+ fromPartial<I extends Exact<DeepPartial<AddUserAppsResponse>, I>>(object: I): AddUserAppsResponse;
38
+ };
39
+ export type UserAppsServiceService = typeof UserAppsServiceService;
40
+ export declare const UserAppsServiceService: {
41
+ readonly addUserApps: {
42
+ readonly path: "/customers.adduserapps.UserAppsService/AddUserApps";
43
+ readonly requestStream: false;
44
+ readonly responseStream: false;
45
+ readonly requestSerialize: (value: AddUserAppsRequest) => Buffer;
46
+ readonly requestDeserialize: (value: Buffer) => AddUserAppsRequest;
47
+ readonly responseSerialize: (value: AddUserAppsResponse) => Buffer;
48
+ readonly responseDeserialize: (value: Buffer) => AddUserAppsResponse;
49
+ };
50
+ };
51
+ export interface UserAppsServiceServer extends UntypedServiceImplementation {
52
+ addUserApps: handleUnaryCall<AddUserAppsRequest, AddUserAppsResponse>;
53
+ }
54
+ export interface UserAppsServiceClient extends Client {
55
+ addUserApps(request: AddUserAppsRequest, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
56
+ addUserApps(request: AddUserAppsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
57
+ addUserApps(request: AddUserAppsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
58
+ }
59
+ export declare const UserAppsServiceClient: {
60
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): UserAppsServiceClient;
61
+ service: typeof UserAppsServiceService;
62
+ serviceName: string;
63
+ };
64
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
65
+ 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 {} ? {
66
+ [K in keyof T]?: DeepPartial<T[K]>;
67
+ } : Partial<T>;
68
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
69
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
70
+ [K in keyof P]: Exact<P[K], I[K]>;
71
+ } & {
72
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
73
+ };
74
+ export {};
@@ -0,0 +1,210 @@
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 v3.20.3
6
+ // source: customers/adduserapps.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.UserAppsServiceClient = exports.UserAppsServiceService = exports.AddUserAppsResponse = exports.AddUserAppsRequest = exports.UserApp = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const grpc_js_1 = require("@grpc/grpc-js");
14
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
+ exports.protobufPackage = "customers.adduserapps";
16
+ function createBaseUserApp() {
17
+ return { app_name: "", app_id: "", app_category: "" };
18
+ }
19
+ exports.UserApp = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.app_name !== "") {
22
+ writer.uint32(10).string(message.app_name);
23
+ }
24
+ if (message.app_id !== "") {
25
+ writer.uint32(18).string(message.app_id);
26
+ }
27
+ if (message.app_category !== "") {
28
+ writer.uint32(26).string(message.app_category);
29
+ }
30
+ return writer;
31
+ },
32
+ decode(input, length) {
33
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
34
+ let end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBaseUserApp();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1:
40
+ if (tag !== 10) {
41
+ break;
42
+ }
43
+ message.app_name = reader.string();
44
+ continue;
45
+ case 2:
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+ message.app_id = reader.string();
50
+ continue;
51
+ case 3:
52
+ if (tag !== 26) {
53
+ break;
54
+ }
55
+ message.app_category = reader.string();
56
+ continue;
57
+ }
58
+ if ((tag & 7) === 4 || tag === 0) {
59
+ break;
60
+ }
61
+ reader.skipType(tag & 7);
62
+ }
63
+ return message;
64
+ },
65
+ fromJSON(object) {
66
+ return {
67
+ app_name: isSet(object.app_name) ? globalThis.String(object.app_name) : "",
68
+ app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
69
+ app_category: isSet(object.app_category) ? globalThis.String(object.app_category) : "",
70
+ };
71
+ },
72
+ toJSON(message) {
73
+ const obj = {};
74
+ if (message.app_name !== "") {
75
+ obj.app_name = message.app_name;
76
+ }
77
+ if (message.app_id !== "") {
78
+ obj.app_id = message.app_id;
79
+ }
80
+ if (message.app_category !== "") {
81
+ obj.app_category = message.app_category;
82
+ }
83
+ return obj;
84
+ },
85
+ create(base) {
86
+ return exports.UserApp.fromPartial(base ?? {});
87
+ },
88
+ fromPartial(object) {
89
+ const message = createBaseUserApp();
90
+ message.app_name = object.app_name ?? "";
91
+ message.app_id = object.app_id ?? "";
92
+ message.app_category = object.app_category ?? "";
93
+ return message;
94
+ },
95
+ };
96
+ function createBaseAddUserAppsRequest() {
97
+ return { apps: [] };
98
+ }
99
+ exports.AddUserAppsRequest = {
100
+ encode(message, writer = minimal_1.default.Writer.create()) {
101
+ for (const v of message.apps) {
102
+ exports.UserApp.encode(v, writer.uint32(10).fork()).ldelim();
103
+ }
104
+ return writer;
105
+ },
106
+ decode(input, length) {
107
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
108
+ let end = length === undefined ? reader.len : reader.pos + length;
109
+ const message = createBaseAddUserAppsRequest();
110
+ while (reader.pos < end) {
111
+ const tag = reader.uint32();
112
+ switch (tag >>> 3) {
113
+ case 1:
114
+ if (tag !== 10) {
115
+ break;
116
+ }
117
+ message.apps.push(exports.UserApp.decode(reader, reader.uint32()));
118
+ continue;
119
+ }
120
+ if ((tag & 7) === 4 || tag === 0) {
121
+ break;
122
+ }
123
+ reader.skipType(tag & 7);
124
+ }
125
+ return message;
126
+ },
127
+ fromJSON(object) {
128
+ return { apps: globalThis.Array.isArray(object?.apps) ? object.apps.map((e) => exports.UserApp.fromJSON(e)) : [] };
129
+ },
130
+ toJSON(message) {
131
+ const obj = {};
132
+ if (message.apps?.length) {
133
+ obj.apps = message.apps.map((e) => exports.UserApp.toJSON(e));
134
+ }
135
+ return obj;
136
+ },
137
+ create(base) {
138
+ return exports.AddUserAppsRequest.fromPartial(base ?? {});
139
+ },
140
+ fromPartial(object) {
141
+ const message = createBaseAddUserAppsRequest();
142
+ message.apps = object.apps?.map((e) => exports.UserApp.fromPartial(e)) || [];
143
+ return message;
144
+ },
145
+ };
146
+ function createBaseAddUserAppsResponse() {
147
+ return { status: false };
148
+ }
149
+ exports.AddUserAppsResponse = {
150
+ encode(message, writer = minimal_1.default.Writer.create()) {
151
+ if (message.status !== false) {
152
+ writer.uint32(8).bool(message.status);
153
+ }
154
+ return writer;
155
+ },
156
+ decode(input, length) {
157
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
158
+ let end = length === undefined ? reader.len : reader.pos + length;
159
+ const message = createBaseAddUserAppsResponse();
160
+ while (reader.pos < end) {
161
+ const tag = reader.uint32();
162
+ switch (tag >>> 3) {
163
+ case 1:
164
+ if (tag !== 8) {
165
+ break;
166
+ }
167
+ message.status = reader.bool();
168
+ continue;
169
+ }
170
+ if ((tag & 7) === 4 || tag === 0) {
171
+ break;
172
+ }
173
+ reader.skipType(tag & 7);
174
+ }
175
+ return message;
176
+ },
177
+ fromJSON(object) {
178
+ return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
179
+ },
180
+ toJSON(message) {
181
+ const obj = {};
182
+ if (message.status !== false) {
183
+ obj.status = message.status;
184
+ }
185
+ return obj;
186
+ },
187
+ create(base) {
188
+ return exports.AddUserAppsResponse.fromPartial(base ?? {});
189
+ },
190
+ fromPartial(object) {
191
+ const message = createBaseAddUserAppsResponse();
192
+ message.status = object.status ?? false;
193
+ return message;
194
+ },
195
+ };
196
+ exports.UserAppsServiceService = {
197
+ addUserApps: {
198
+ path: "/customers.adduserapps.UserAppsService/AddUserApps",
199
+ requestStream: false,
200
+ responseStream: false,
201
+ requestSerialize: (value) => Buffer.from(exports.AddUserAppsRequest.encode(value).finish()),
202
+ requestDeserialize: (value) => exports.AddUserAppsRequest.decode(value),
203
+ responseSerialize: (value) => Buffer.from(exports.AddUserAppsResponse.encode(value).finish()),
204
+ responseDeserialize: (value) => exports.AddUserAppsResponse.decode(value),
205
+ },
206
+ };
207
+ exports.UserAppsServiceClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.UserAppsServiceService, "customers.adduserapps.UserAppsService");
208
+ function isSet(value) {
209
+ return value !== null && value !== undefined;
210
+ }
package/ts/customers.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
2
  import { getBankListRequest, getBankListResponse } from "./customers/aa/getbanklist";
3
+ import { initiateRequest, initiateResponse } from "./customers/aa/initiate";
3
4
  import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
4
5
  import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
5
6
  import { addSuspendedCustomerRequest, addSuspendedCustomerResponse } from "./customers/addsuspendedcustomer";
7
+ import { AddUserAppsRequest, AddUserAppsResponse } from "./customers/adduserapps";
6
8
  import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
7
9
  import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
8
10
  import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
@@ -456,6 +458,24 @@ export declare const customersService: {
456
458
  readonly responseSerialize: (value: locDisabledResponse) => Buffer;
457
459
  readonly responseDeserialize: (value: Buffer) => locDisabledResponse;
458
460
  };
461
+ readonly initiateRequest: {
462
+ readonly path: "/service.customers/initiateRequest";
463
+ readonly requestStream: false;
464
+ readonly responseStream: false;
465
+ readonly requestSerialize: (value: initiateRequest) => Buffer;
466
+ readonly requestDeserialize: (value: Buffer) => initiateRequest;
467
+ readonly responseSerialize: (value: initiateResponse) => Buffer;
468
+ readonly responseDeserialize: (value: Buffer) => initiateResponse;
469
+ };
470
+ readonly addUserApps: {
471
+ readonly path: "/service.customers/addUserApps";
472
+ readonly requestStream: false;
473
+ readonly responseStream: false;
474
+ readonly requestSerialize: (value: AddUserAppsRequest) => Buffer;
475
+ readonly requestDeserialize: (value: Buffer) => AddUserAppsRequest;
476
+ readonly responseSerialize: (value: AddUserAppsResponse) => Buffer;
477
+ readonly responseDeserialize: (value: Buffer) => AddUserAppsResponse;
478
+ };
459
479
  };
460
480
  export interface customersServer extends UntypedServiceImplementation {
461
481
  sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
@@ -504,6 +524,8 @@ export interface customersServer extends UntypedServiceImplementation {
504
524
  getBankList: handleUnaryCall<getBankListRequest, getBankListResponse>;
505
525
  addSuspendedCustomer: handleUnaryCall<addSuspendedCustomerRequest, addSuspendedCustomerResponse>;
506
526
  updatelocdisabled: handleUnaryCall<locDisabledRequest, locDisabledResponse>;
527
+ initiateRequest: handleUnaryCall<initiateRequest, initiateResponse>;
528
+ addUserApps: handleUnaryCall<AddUserAppsRequest, AddUserAppsResponse>;
507
529
  }
508
530
  export interface customersClient extends Client {
509
531
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
@@ -644,6 +666,12 @@ export interface customersClient extends Client {
644
666
  updatelocdisabled(request: locDisabledRequest, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
645
667
  updatelocdisabled(request: locDisabledRequest, metadata: Metadata, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
646
668
  updatelocdisabled(request: locDisabledRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
669
+ initiateRequest(request: initiateRequest, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
670
+ initiateRequest(request: initiateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
671
+ initiateRequest(request: initiateRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
672
+ addUserApps(request: AddUserAppsRequest, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
673
+ addUserApps(request: AddUserAppsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
674
+ addUserApps(request: AddUserAppsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
647
675
  }
648
676
  export declare const customersClient: {
649
677
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
package/ts/customers.js CHANGED
@@ -9,9 +9,11 @@ exports.customersClient = exports.customersService = exports.protobufPackage = v
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const getbanklist_1 = require("./customers/aa/getbanklist");
12
+ const initiate_1 = require("./customers/aa/initiate");
12
13
  const addaddress_1 = require("./customers/addaddress");
13
14
  const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
14
15
  const addsuspendedcustomer_1 = require("./customers/addsuspendedcustomer");
16
+ const adduserapps_1 = require("./customers/adduserapps");
15
17
  const createcustomerreference_1 = require("./customers/createcustomerreference");
16
18
  const deleteprofile_1 = require("./customers/deleteprofile");
17
19
  const forgotmpin_1 = require("./customers/forgotmpin");
@@ -464,5 +466,23 @@ exports.customersService = {
464
466
  responseSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledResponse.encode(value).finish()),
465
467
  responseDeserialize: (value) => updatelocdisabled_1.locDisabledResponse.decode(value),
466
468
  },
469
+ initiateRequest: {
470
+ path: "/service.customers/initiateRequest",
471
+ requestStream: false,
472
+ responseStream: false,
473
+ requestSerialize: (value) => Buffer.from(initiate_1.initiateRequest.encode(value).finish()),
474
+ requestDeserialize: (value) => initiate_1.initiateRequest.decode(value),
475
+ responseSerialize: (value) => Buffer.from(initiate_1.initiateResponse.encode(value).finish()),
476
+ responseDeserialize: (value) => initiate_1.initiateResponse.decode(value),
477
+ },
478
+ addUserApps: {
479
+ path: "/service.customers/addUserApps",
480
+ requestStream: false,
481
+ responseStream: false,
482
+ requestSerialize: (value) => Buffer.from(adduserapps_1.AddUserAppsRequest.encode(value).finish()),
483
+ requestDeserialize: (value) => adduserapps_1.AddUserAppsRequest.decode(value),
484
+ responseSerialize: (value) => Buffer.from(adduserapps_1.AddUserAppsResponse.encode(value).finish()),
485
+ responseDeserialize: (value) => adduserapps_1.AddUserAppsResponse.decode(value),
486
+ },
467
487
  };
468
488
  exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");