@stashfin/grpc 1.2.77 → 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 +1 -1
- package/ts/customers/adduserapps.d.ts +74 -0
- package/ts/customers/adduserapps.js +210 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
package/package.json
CHANGED
|
@@ -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
|
@@ -4,6 +4,7 @@ import { initiateRequest, initiateResponse } from "./customers/aa/initiate";
|
|
|
4
4
|
import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
|
|
5
5
|
import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
|
|
6
6
|
import { addSuspendedCustomerRequest, addSuspendedCustomerResponse } from "./customers/addsuspendedcustomer";
|
|
7
|
+
import { AddUserAppsRequest, AddUserAppsResponse } from "./customers/adduserapps";
|
|
7
8
|
import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
|
|
8
9
|
import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
|
|
9
10
|
import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
|
|
@@ -466,6 +467,15 @@ export declare const customersService: {
|
|
|
466
467
|
readonly responseSerialize: (value: initiateResponse) => Buffer;
|
|
467
468
|
readonly responseDeserialize: (value: Buffer) => initiateResponse;
|
|
468
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
|
+
};
|
|
469
479
|
};
|
|
470
480
|
export interface customersServer extends UntypedServiceImplementation {
|
|
471
481
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -515,6 +525,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
515
525
|
addSuspendedCustomer: handleUnaryCall<addSuspendedCustomerRequest, addSuspendedCustomerResponse>;
|
|
516
526
|
updatelocdisabled: handleUnaryCall<locDisabledRequest, locDisabledResponse>;
|
|
517
527
|
initiateRequest: handleUnaryCall<initiateRequest, initiateResponse>;
|
|
528
|
+
addUserApps: handleUnaryCall<AddUserAppsRequest, AddUserAppsResponse>;
|
|
518
529
|
}
|
|
519
530
|
export interface customersClient extends Client {
|
|
520
531
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -658,6 +669,9 @@ export interface customersClient extends Client {
|
|
|
658
669
|
initiateRequest(request: initiateRequest, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
|
|
659
670
|
initiateRequest(request: initiateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
|
|
660
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;
|
|
661
675
|
}
|
|
662
676
|
export declare const customersClient: {
|
|
663
677
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -13,6 +13,7 @@ const initiate_1 = require("./customers/aa/initiate");
|
|
|
13
13
|
const addaddress_1 = require("./customers/addaddress");
|
|
14
14
|
const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
|
|
15
15
|
const addsuspendedcustomer_1 = require("./customers/addsuspendedcustomer");
|
|
16
|
+
const adduserapps_1 = require("./customers/adduserapps");
|
|
16
17
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
17
18
|
const deleteprofile_1 = require("./customers/deleteprofile");
|
|
18
19
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
@@ -474,5 +475,14 @@ exports.customersService = {
|
|
|
474
475
|
responseSerialize: (value) => Buffer.from(initiate_1.initiateResponse.encode(value).finish()),
|
|
475
476
|
responseDeserialize: (value) => initiate_1.initiateResponse.decode(value),
|
|
476
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
|
+
},
|
|
477
487
|
};
|
|
478
488
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|