@stashfin/grpc 1.2.653 → 1.2.654

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.653",
3
+ "version": "1.2.654",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,168 @@
1
+ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
+ import { getCustomerByIdRequest, getCustomerByIdResponse } from "./eqxcustomers/getcustomerbyid";
3
+ import { getCustomerByMobileRequest, getCustomerByMobileResponse } from "./eqxcustomers/getcustomerbymobile";
4
+ import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
5
+ import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
6
+ import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
7
+ import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
8
+ import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
9
+ import { updateNotificationRequest, updateNotificationResponse } from "./eqxcustomers/updatenotification";
10
+ import { updatePushIdRequest, updatePushIdResponse } from "./eqxcustomers/updatepushid";
11
+ import { verifyOtpReqeust, verifyOtpResponse } from "./eqxcustomers/verifyotp";
12
+ import { VerifyTokenRequest, VerifyTokenResponse } from "./eqxcustomers/verifytoken";
13
+ export declare const protobufPackage = "service";
14
+ export type deveqxcustomersService = typeof deveqxcustomersService;
15
+ export declare const deveqxcustomersService: {
16
+ readonly sendOtp: {
17
+ readonly path: "/service.deveqxcustomers/sendOtp";
18
+ readonly requestStream: false;
19
+ readonly responseStream: false;
20
+ readonly requestSerialize: (value: sendOtpRequest) => Buffer;
21
+ readonly requestDeserialize: (value: Buffer) => sendOtpRequest;
22
+ readonly responseSerialize: (value: sendOtpResponse) => Buffer;
23
+ readonly responseDeserialize: (value: Buffer) => sendOtpResponse;
24
+ };
25
+ readonly verifyOtp: {
26
+ readonly path: "/service.deveqxcustomers/verifyOtp";
27
+ readonly requestStream: false;
28
+ readonly responseStream: false;
29
+ readonly requestSerialize: (value: verifyOtpReqeust) => Buffer;
30
+ readonly requestDeserialize: (value: Buffer) => verifyOtpReqeust;
31
+ readonly responseSerialize: (value: verifyOtpResponse) => Buffer;
32
+ readonly responseDeserialize: (value: Buffer) => verifyOtpResponse;
33
+ };
34
+ readonly getUserById: {
35
+ readonly path: "/service.deveqxcustomers/getUserById";
36
+ readonly requestStream: false;
37
+ readonly responseStream: false;
38
+ readonly requestSerialize: (value: getCustomerByIdRequest) => Buffer;
39
+ readonly requestDeserialize: (value: Buffer) => getCustomerByIdRequest;
40
+ readonly responseSerialize: (value: getCustomerByIdResponse) => Buffer;
41
+ readonly responseDeserialize: (value: Buffer) => getCustomerByIdResponse;
42
+ };
43
+ readonly getDashboard: {
44
+ readonly path: "/service.deveqxcustomers/getDashboard";
45
+ readonly requestStream: false;
46
+ readonly responseStream: false;
47
+ readonly requestSerialize: (value: getDashboardRequest) => Buffer;
48
+ readonly requestDeserialize: (value: Buffer) => getDashboardRequest;
49
+ readonly responseSerialize: (value: getDashboardResponse) => Buffer;
50
+ readonly responseDeserialize: (value: Buffer) => getDashboardResponse;
51
+ };
52
+ readonly getDashboardMainCard: {
53
+ readonly path: "/service.deveqxcustomers/getDashboardMainCard";
54
+ readonly requestStream: false;
55
+ readonly responseStream: false;
56
+ readonly requestSerialize: (value: getDashboardMainCardRequest) => Buffer;
57
+ readonly requestDeserialize: (value: Buffer) => getDashboardMainCardRequest;
58
+ readonly responseSerialize: (value: getDashboardMainCardResponse) => Buffer;
59
+ readonly responseDeserialize: (value: Buffer) => getDashboardMainCardResponse;
60
+ };
61
+ readonly updatePushId: {
62
+ readonly path: "/service.deveqxcustomers/updatePushId";
63
+ readonly requestStream: false;
64
+ readonly responseStream: false;
65
+ readonly requestSerialize: (value: updatePushIdRequest) => Buffer;
66
+ readonly requestDeserialize: (value: Buffer) => updatePushIdRequest;
67
+ readonly responseSerialize: (value: updatePushIdResponse) => Buffer;
68
+ readonly responseDeserialize: (value: Buffer) => updatePushIdResponse;
69
+ };
70
+ readonly getnotifications: {
71
+ readonly path: "/service.deveqxcustomers/getnotifications";
72
+ readonly requestStream: false;
73
+ readonly responseStream: false;
74
+ readonly requestSerialize: (value: getNotificationsRequest) => Buffer;
75
+ readonly requestDeserialize: (value: Buffer) => getNotificationsRequest;
76
+ readonly responseSerialize: (value: getNotificationsResponse) => Buffer;
77
+ readonly responseDeserialize: (value: Buffer) => getNotificationsResponse;
78
+ };
79
+ readonly updateNotifications: {
80
+ readonly path: "/service.deveqxcustomers/updateNotifications";
81
+ readonly requestStream: false;
82
+ readonly responseStream: false;
83
+ readonly requestSerialize: (value: updateNotificationRequest) => Buffer;
84
+ readonly requestDeserialize: (value: Buffer) => updateNotificationRequest;
85
+ readonly responseSerialize: (value: updateNotificationResponse) => Buffer;
86
+ readonly responseDeserialize: (value: Buffer) => updateNotificationResponse;
87
+ };
88
+ readonly verifyToken: {
89
+ readonly path: "/service.deveqxcustomers/VerifyToken";
90
+ readonly requestStream: false;
91
+ readonly responseStream: false;
92
+ readonly requestSerialize: (value: VerifyTokenRequest) => Buffer;
93
+ readonly requestDeserialize: (value: Buffer) => VerifyTokenRequest;
94
+ readonly responseSerialize: (value: VerifyTokenResponse) => Buffer;
95
+ readonly responseDeserialize: (value: Buffer) => VerifyTokenResponse;
96
+ };
97
+ readonly getTokens: {
98
+ readonly path: "/service.deveqxcustomers/getTokens";
99
+ readonly requestStream: false;
100
+ readonly responseStream: false;
101
+ readonly requestSerialize: (value: getTokensRequest) => Buffer;
102
+ readonly requestDeserialize: (value: Buffer) => getTokensRequest;
103
+ readonly responseSerialize: (value: getTokensResponse) => Buffer;
104
+ readonly responseDeserialize: (value: Buffer) => getTokensResponse;
105
+ };
106
+ readonly getCustomerByMobile: {
107
+ readonly path: "/service.deveqxcustomers/getCustomerByMobile";
108
+ readonly requestStream: false;
109
+ readonly responseStream: false;
110
+ readonly requestSerialize: (value: getCustomerByMobileRequest) => Buffer;
111
+ readonly requestDeserialize: (value: Buffer) => getCustomerByMobileRequest;
112
+ readonly responseSerialize: (value: getCustomerByMobileResponse) => Buffer;
113
+ readonly responseDeserialize: (value: Buffer) => getCustomerByMobileResponse;
114
+ };
115
+ };
116
+ export interface deveqxcustomersServer extends UntypedServiceImplementation {
117
+ sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
118
+ verifyOtp: handleUnaryCall<verifyOtpReqeust, verifyOtpResponse>;
119
+ getUserById: handleUnaryCall<getCustomerByIdRequest, getCustomerByIdResponse>;
120
+ getDashboard: handleUnaryCall<getDashboardRequest, getDashboardResponse>;
121
+ getDashboardMainCard: handleUnaryCall<getDashboardMainCardRequest, getDashboardMainCardResponse>;
122
+ updatePushId: handleUnaryCall<updatePushIdRequest, updatePushIdResponse>;
123
+ getnotifications: handleUnaryCall<getNotificationsRequest, getNotificationsResponse>;
124
+ updateNotifications: handleUnaryCall<updateNotificationRequest, updateNotificationResponse>;
125
+ verifyToken: handleUnaryCall<VerifyTokenRequest, VerifyTokenResponse>;
126
+ getTokens: handleUnaryCall<getTokensRequest, getTokensResponse>;
127
+ getCustomerByMobile: handleUnaryCall<getCustomerByMobileRequest, getCustomerByMobileResponse>;
128
+ }
129
+ export interface deveqxcustomersClient extends Client {
130
+ sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
131
+ sendOtp(request: sendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
132
+ sendOtp(request: sendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
133
+ verifyOtp(request: verifyOtpReqeust, callback: (error: ServiceError | null, response: verifyOtpResponse) => void): ClientUnaryCall;
134
+ verifyOtp(request: verifyOtpReqeust, metadata: Metadata, callback: (error: ServiceError | null, response: verifyOtpResponse) => void): ClientUnaryCall;
135
+ verifyOtp(request: verifyOtpReqeust, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: verifyOtpResponse) => void): ClientUnaryCall;
136
+ getUserById(request: getCustomerByIdRequest, callback: (error: ServiceError | null, response: getCustomerByIdResponse) => void): ClientUnaryCall;
137
+ getUserById(request: getCustomerByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerByIdResponse) => void): ClientUnaryCall;
138
+ getUserById(request: getCustomerByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerByIdResponse) => void): ClientUnaryCall;
139
+ getDashboard(request: getDashboardRequest, callback: (error: ServiceError | null, response: getDashboardResponse) => void): ClientUnaryCall;
140
+ getDashboard(request: getDashboardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getDashboardResponse) => void): ClientUnaryCall;
141
+ getDashboard(request: getDashboardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getDashboardResponse) => void): ClientUnaryCall;
142
+ getDashboardMainCard(request: getDashboardMainCardRequest, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
143
+ getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
144
+ getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
145
+ updatePushId(request: updatePushIdRequest, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
146
+ updatePushId(request: updatePushIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
147
+ updatePushId(request: updatePushIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
148
+ getnotifications(request: getNotificationsRequest, callback: (error: ServiceError | null, response: getNotificationsResponse) => void): ClientUnaryCall;
149
+ getnotifications(request: getNotificationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getNotificationsResponse) => void): ClientUnaryCall;
150
+ getnotifications(request: getNotificationsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getNotificationsResponse) => void): ClientUnaryCall;
151
+ updateNotifications(request: updateNotificationRequest, callback: (error: ServiceError | null, response: updateNotificationResponse) => void): ClientUnaryCall;
152
+ updateNotifications(request: updateNotificationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateNotificationResponse) => void): ClientUnaryCall;
153
+ updateNotifications(request: updateNotificationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateNotificationResponse) => void): ClientUnaryCall;
154
+ verifyToken(request: VerifyTokenRequest, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
155
+ verifyToken(request: VerifyTokenRequest, metadata: Metadata, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
156
+ verifyToken(request: VerifyTokenRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
157
+ getTokens(request: getTokensRequest, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
158
+ getTokens(request: getTokensRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
159
+ getTokens(request: getTokensRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
160
+ getCustomerByMobile(request: getCustomerByMobileRequest, callback: (error: ServiceError | null, response: getCustomerByMobileResponse) => void): ClientUnaryCall;
161
+ getCustomerByMobile(request: getCustomerByMobileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerByMobileResponse) => void): ClientUnaryCall;
162
+ getCustomerByMobile(request: getCustomerByMobileRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerByMobileResponse) => void): ClientUnaryCall;
163
+ }
164
+ export declare const deveqxcustomersClient: {
165
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): deveqxcustomersClient;
166
+ service: typeof deveqxcustomersService;
167
+ serviceName: string;
168
+ };
@@ -0,0 +1,124 @@
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.29.3
6
+ // source: deveqxcustomers.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.deveqxcustomersClient = exports.deveqxcustomersService = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const grpc_js_1 = require("@grpc/grpc-js");
11
+ const getcustomerbyid_1 = require("./eqxcustomers/getcustomerbyid");
12
+ const getcustomerbymobile_1 = require("./eqxcustomers/getcustomerbymobile");
13
+ const getdashboard_1 = require("./eqxcustomers/getdashboard");
14
+ const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
15
+ const getnotifications_1 = require("./eqxcustomers/getnotifications");
16
+ const gettokens_1 = require("./eqxcustomers/gettokens");
17
+ const sendotp_1 = require("./eqxcustomers/sendotp");
18
+ const updatenotification_1 = require("./eqxcustomers/updatenotification");
19
+ const updatepushid_1 = require("./eqxcustomers/updatepushid");
20
+ const verifyotp_1 = require("./eqxcustomers/verifyotp");
21
+ const verifytoken_1 = require("./eqxcustomers/verifytoken");
22
+ exports.protobufPackage = "service";
23
+ exports.deveqxcustomersService = {
24
+ sendOtp: {
25
+ path: "/service.deveqxcustomers/sendOtp",
26
+ requestStream: false,
27
+ responseStream: false,
28
+ requestSerialize: (value) => Buffer.from(sendotp_1.sendOtpRequest.encode(value).finish()),
29
+ requestDeserialize: (value) => sendotp_1.sendOtpRequest.decode(value),
30
+ responseSerialize: (value) => Buffer.from(sendotp_1.sendOtpResponse.encode(value).finish()),
31
+ responseDeserialize: (value) => sendotp_1.sendOtpResponse.decode(value),
32
+ },
33
+ verifyOtp: {
34
+ path: "/service.deveqxcustomers/verifyOtp",
35
+ requestStream: false,
36
+ responseStream: false,
37
+ requestSerialize: (value) => Buffer.from(verifyotp_1.verifyOtpReqeust.encode(value).finish()),
38
+ requestDeserialize: (value) => verifyotp_1.verifyOtpReqeust.decode(value),
39
+ responseSerialize: (value) => Buffer.from(verifyotp_1.verifyOtpResponse.encode(value).finish()),
40
+ responseDeserialize: (value) => verifyotp_1.verifyOtpResponse.decode(value),
41
+ },
42
+ getUserById: {
43
+ path: "/service.deveqxcustomers/getUserById",
44
+ requestStream: false,
45
+ responseStream: false,
46
+ requestSerialize: (value) => Buffer.from(getcustomerbyid_1.getCustomerByIdRequest.encode(value).finish()),
47
+ requestDeserialize: (value) => getcustomerbyid_1.getCustomerByIdRequest.decode(value),
48
+ responseSerialize: (value) => Buffer.from(getcustomerbyid_1.getCustomerByIdResponse.encode(value).finish()),
49
+ responseDeserialize: (value) => getcustomerbyid_1.getCustomerByIdResponse.decode(value),
50
+ },
51
+ getDashboard: {
52
+ path: "/service.deveqxcustomers/getDashboard",
53
+ requestStream: false,
54
+ responseStream: false,
55
+ requestSerialize: (value) => Buffer.from(getdashboard_1.getDashboardRequest.encode(value).finish()),
56
+ requestDeserialize: (value) => getdashboard_1.getDashboardRequest.decode(value),
57
+ responseSerialize: (value) => Buffer.from(getdashboard_1.getDashboardResponse.encode(value).finish()),
58
+ responseDeserialize: (value) => getdashboard_1.getDashboardResponse.decode(value),
59
+ },
60
+ getDashboardMainCard: {
61
+ path: "/service.deveqxcustomers/getDashboardMainCard",
62
+ requestStream: false,
63
+ responseStream: false,
64
+ requestSerialize: (value) => Buffer.from(getdashboardmaincard_1.getDashboardMainCardRequest.encode(value).finish()),
65
+ requestDeserialize: (value) => getdashboardmaincard_1.getDashboardMainCardRequest.decode(value),
66
+ responseSerialize: (value) => Buffer.from(getdashboardmaincard_1.getDashboardMainCardResponse.encode(value).finish()),
67
+ responseDeserialize: (value) => getdashboardmaincard_1.getDashboardMainCardResponse.decode(value),
68
+ },
69
+ updatePushId: {
70
+ path: "/service.deveqxcustomers/updatePushId",
71
+ requestStream: false,
72
+ responseStream: false,
73
+ requestSerialize: (value) => Buffer.from(updatepushid_1.updatePushIdRequest.encode(value).finish()),
74
+ requestDeserialize: (value) => updatepushid_1.updatePushIdRequest.decode(value),
75
+ responseSerialize: (value) => Buffer.from(updatepushid_1.updatePushIdResponse.encode(value).finish()),
76
+ responseDeserialize: (value) => updatepushid_1.updatePushIdResponse.decode(value),
77
+ },
78
+ getnotifications: {
79
+ path: "/service.deveqxcustomers/getnotifications",
80
+ requestStream: false,
81
+ responseStream: false,
82
+ requestSerialize: (value) => Buffer.from(getnotifications_1.getNotificationsRequest.encode(value).finish()),
83
+ requestDeserialize: (value) => getnotifications_1.getNotificationsRequest.decode(value),
84
+ responseSerialize: (value) => Buffer.from(getnotifications_1.getNotificationsResponse.encode(value).finish()),
85
+ responseDeserialize: (value) => getnotifications_1.getNotificationsResponse.decode(value),
86
+ },
87
+ updateNotifications: {
88
+ path: "/service.deveqxcustomers/updateNotifications",
89
+ requestStream: false,
90
+ responseStream: false,
91
+ requestSerialize: (value) => Buffer.from(updatenotification_1.updateNotificationRequest.encode(value).finish()),
92
+ requestDeserialize: (value) => updatenotification_1.updateNotificationRequest.decode(value),
93
+ responseSerialize: (value) => Buffer.from(updatenotification_1.updateNotificationResponse.encode(value).finish()),
94
+ responseDeserialize: (value) => updatenotification_1.updateNotificationResponse.decode(value),
95
+ },
96
+ verifyToken: {
97
+ path: "/service.deveqxcustomers/VerifyToken",
98
+ requestStream: false,
99
+ responseStream: false,
100
+ requestSerialize: (value) => Buffer.from(verifytoken_1.VerifyTokenRequest.encode(value).finish()),
101
+ requestDeserialize: (value) => verifytoken_1.VerifyTokenRequest.decode(value),
102
+ responseSerialize: (value) => Buffer.from(verifytoken_1.VerifyTokenResponse.encode(value).finish()),
103
+ responseDeserialize: (value) => verifytoken_1.VerifyTokenResponse.decode(value),
104
+ },
105
+ getTokens: {
106
+ path: "/service.deveqxcustomers/getTokens",
107
+ requestStream: false,
108
+ responseStream: false,
109
+ requestSerialize: (value) => Buffer.from(gettokens_1.getTokensRequest.encode(value).finish()),
110
+ requestDeserialize: (value) => gettokens_1.getTokensRequest.decode(value),
111
+ responseSerialize: (value) => Buffer.from(gettokens_1.getTokensResponse.encode(value).finish()),
112
+ responseDeserialize: (value) => gettokens_1.getTokensResponse.decode(value),
113
+ },
114
+ getCustomerByMobile: {
115
+ path: "/service.deveqxcustomers/getCustomerByMobile",
116
+ requestStream: false,
117
+ responseStream: false,
118
+ requestSerialize: (value) => Buffer.from(getcustomerbymobile_1.getCustomerByMobileRequest.encode(value).finish()),
119
+ requestDeserialize: (value) => getcustomerbymobile_1.getCustomerByMobileRequest.decode(value),
120
+ responseSerialize: (value) => Buffer.from(getcustomerbymobile_1.getCustomerByMobileResponse.encode(value).finish()),
121
+ responseDeserialize: (value) => getcustomerbymobile_1.getCustomerByMobileResponse.decode(value),
122
+ },
123
+ };
124
+ exports.deveqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.deveqxcustomersService, "service.deveqxcustomers");