@stashfin/grpc 1.2.507 → 1.2.508

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.507",
3
+ "version": "1.2.508",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -2,7 +2,9 @@ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type
2
2
  import { getCustomerByIdRequest, getCustomerByIdResponse } from "./eqxcustomers/getcustomerbyid";
3
3
  import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
4
4
  import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
5
+ import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
5
6
  import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
7
+ import { updateNotificationRequest, updateNotificationResponse } from "./eqxcustomers/updatenotification";
6
8
  import { updatePushIdRequest, updatePushIdResponse } from "./eqxcustomers/updatepushid";
7
9
  import { verifyOtpReqeust, verifyOtpResponse } from "./eqxcustomers/verifyotp";
8
10
  export declare const protobufPackage = "service";
@@ -62,6 +64,24 @@ export declare const eqxcustomersService: {
62
64
  readonly responseSerialize: (value: updatePushIdResponse) => Buffer;
63
65
  readonly responseDeserialize: (value: Buffer) => updatePushIdResponse;
64
66
  };
67
+ readonly getnotifications: {
68
+ readonly path: "/service.eqxcustomers/getnotifications";
69
+ readonly requestStream: false;
70
+ readonly responseStream: false;
71
+ readonly requestSerialize: (value: getNotificationsRequest) => Buffer;
72
+ readonly requestDeserialize: (value: Buffer) => getNotificationsRequest;
73
+ readonly responseSerialize: (value: getNotificationsResponse) => Buffer;
74
+ readonly responseDeserialize: (value: Buffer) => getNotificationsResponse;
75
+ };
76
+ readonly updateNotifications: {
77
+ readonly path: "/service.eqxcustomers/updateNotifications";
78
+ readonly requestStream: false;
79
+ readonly responseStream: false;
80
+ readonly requestSerialize: (value: updateNotificationRequest) => Buffer;
81
+ readonly requestDeserialize: (value: Buffer) => updateNotificationRequest;
82
+ readonly responseSerialize: (value: updateNotificationResponse) => Buffer;
83
+ readonly responseDeserialize: (value: Buffer) => updateNotificationResponse;
84
+ };
65
85
  };
66
86
  export interface eqxcustomersServer extends UntypedServiceImplementation {
67
87
  sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
@@ -70,6 +90,8 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
70
90
  getDashboard: handleUnaryCall<getDashboardRequest, getDashboardResponse>;
71
91
  getDashboardMainCard: handleUnaryCall<getDashboardMainCardRequest, getDashboardMainCardResponse>;
72
92
  updatePushId: handleUnaryCall<updatePushIdRequest, updatePushIdResponse>;
93
+ getnotifications: handleUnaryCall<getNotificationsRequest, getNotificationsResponse>;
94
+ updateNotifications: handleUnaryCall<updateNotificationRequest, updateNotificationResponse>;
73
95
  }
74
96
  export interface eqxcustomersClient extends Client {
75
97
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
@@ -90,6 +112,12 @@ export interface eqxcustomersClient extends Client {
90
112
  updatePushId(request: updatePushIdRequest, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
91
113
  updatePushId(request: updatePushIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
92
114
  updatePushId(request: updatePushIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
115
+ getnotifications(request: getNotificationsRequest, callback: (error: ServiceError | null, response: getNotificationsResponse) => void): ClientUnaryCall;
116
+ getnotifications(request: getNotificationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getNotificationsResponse) => void): ClientUnaryCall;
117
+ getnotifications(request: getNotificationsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getNotificationsResponse) => void): ClientUnaryCall;
118
+ updateNotifications(request: updateNotificationRequest, callback: (error: ServiceError | null, response: updateNotificationResponse) => void): ClientUnaryCall;
119
+ updateNotifications(request: updateNotificationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateNotificationResponse) => void): ClientUnaryCall;
120
+ updateNotifications(request: updateNotificationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateNotificationResponse) => void): ClientUnaryCall;
93
121
  }
94
122
  export declare const eqxcustomersClient: {
95
123
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
package/ts/eqxcustomer.js CHANGED
@@ -11,7 +11,9 @@ const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const getcustomerbyid_1 = require("./eqxcustomers/getcustomerbyid");
12
12
  const getdashboard_1 = require("./eqxcustomers/getdashboard");
13
13
  const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
14
+ const getnotifications_1 = require("./eqxcustomers/getnotifications");
14
15
  const sendotp_1 = require("./eqxcustomers/sendotp");
16
+ const updatenotification_1 = require("./eqxcustomers/updatenotification");
15
17
  const updatepushid_1 = require("./eqxcustomers/updatepushid");
16
18
  const verifyotp_1 = require("./eqxcustomers/verifyotp");
17
19
  exports.protobufPackage = "service";
@@ -70,5 +72,23 @@ exports.eqxcustomersService = {
70
72
  responseSerialize: (value) => Buffer.from(updatepushid_1.updatePushIdResponse.encode(value).finish()),
71
73
  responseDeserialize: (value) => updatepushid_1.updatePushIdResponse.decode(value),
72
74
  },
75
+ getnotifications: {
76
+ path: "/service.eqxcustomers/getnotifications",
77
+ requestStream: false,
78
+ responseStream: false,
79
+ requestSerialize: (value) => Buffer.from(getnotifications_1.getNotificationsRequest.encode(value).finish()),
80
+ requestDeserialize: (value) => getnotifications_1.getNotificationsRequest.decode(value),
81
+ responseSerialize: (value) => Buffer.from(getnotifications_1.getNotificationsResponse.encode(value).finish()),
82
+ responseDeserialize: (value) => getnotifications_1.getNotificationsResponse.decode(value),
83
+ },
84
+ updateNotifications: {
85
+ path: "/service.eqxcustomers/updateNotifications",
86
+ requestStream: false,
87
+ responseStream: false,
88
+ requestSerialize: (value) => Buffer.from(updatenotification_1.updateNotificationRequest.encode(value).finish()),
89
+ requestDeserialize: (value) => updatenotification_1.updateNotificationRequest.decode(value),
90
+ responseSerialize: (value) => Buffer.from(updatenotification_1.updateNotificationResponse.encode(value).finish()),
91
+ responseDeserialize: (value) => updatenotification_1.updateNotificationResponse.decode(value),
92
+ },
73
93
  };
74
94
  exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
@@ -0,0 +1,85 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.getnotifications";
3
+ export interface getNotificationsRequest {
4
+ pageNo: number;
5
+ limit: number;
6
+ }
7
+ export interface getNotificationsResponse {
8
+ status: string;
9
+ data: NotificationData[];
10
+ }
11
+ export interface NotificationData {
12
+ id: number;
13
+ customer_id: number;
14
+ template_id: string;
15
+ channel: string;
16
+ template_data?: TemplateData | undefined;
17
+ status: number;
18
+ message: string;
19
+ created_at: string;
20
+ updated_at?: string | undefined;
21
+ request_id?: string | undefined;
22
+ expiry_date?: string | undefined;
23
+ is_deleted?: boolean | undefined;
24
+ }
25
+ export interface TemplateData {
26
+ date: number;
27
+ note: string;
28
+ type: string;
29
+ seqNo: string;
30
+ amount: number;
31
+ refUrl: string;
32
+ status: string;
33
+ payeeVa: string;
34
+ payerVa: string;
35
+ direction: string;
36
+ payeeName: string;
37
+ expireAfter: string;
38
+ payeeMccCode: string;
39
+ payeeMccType: string;
40
+ upiTranlogId: number;
41
+ payeeVerifiedMerchant: string;
42
+ }
43
+ export declare const getNotificationsRequest: {
44
+ encode(message: getNotificationsRequest, writer?: _m0.Writer): _m0.Writer;
45
+ decode(input: _m0.Reader | Uint8Array, length?: number): getNotificationsRequest;
46
+ fromJSON(object: any): getNotificationsRequest;
47
+ toJSON(message: getNotificationsRequest): unknown;
48
+ create<I extends Exact<DeepPartial<getNotificationsRequest>, I>>(base?: I): getNotificationsRequest;
49
+ fromPartial<I extends Exact<DeepPartial<getNotificationsRequest>, I>>(object: I): getNotificationsRequest;
50
+ };
51
+ export declare const getNotificationsResponse: {
52
+ encode(message: getNotificationsResponse, writer?: _m0.Writer): _m0.Writer;
53
+ decode(input: _m0.Reader | Uint8Array, length?: number): getNotificationsResponse;
54
+ fromJSON(object: any): getNotificationsResponse;
55
+ toJSON(message: getNotificationsResponse): unknown;
56
+ create<I extends Exact<DeepPartial<getNotificationsResponse>, I>>(base?: I): getNotificationsResponse;
57
+ fromPartial<I extends Exact<DeepPartial<getNotificationsResponse>, I>>(object: I): getNotificationsResponse;
58
+ };
59
+ export declare const NotificationData: {
60
+ encode(message: NotificationData, writer?: _m0.Writer): _m0.Writer;
61
+ decode(input: _m0.Reader | Uint8Array, length?: number): NotificationData;
62
+ fromJSON(object: any): NotificationData;
63
+ toJSON(message: NotificationData): unknown;
64
+ create<I extends Exact<DeepPartial<NotificationData>, I>>(base?: I): NotificationData;
65
+ fromPartial<I extends Exact<DeepPartial<NotificationData>, I>>(object: I): NotificationData;
66
+ };
67
+ export declare const TemplateData: {
68
+ encode(message: TemplateData, writer?: _m0.Writer): _m0.Writer;
69
+ decode(input: _m0.Reader | Uint8Array, length?: number): TemplateData;
70
+ fromJSON(object: any): TemplateData;
71
+ toJSON(message: TemplateData): unknown;
72
+ create<I extends Exact<DeepPartial<TemplateData>, I>>(base?: I): TemplateData;
73
+ fromPartial<I extends Exact<DeepPartial<TemplateData>, I>>(object: I): TemplateData;
74
+ };
75
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
76
+ 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 {} ? {
77
+ [K in keyof T]?: DeepPartial<T[K]>;
78
+ } : Partial<T>;
79
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
80
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
81
+ [K in keyof P]: Exact<P[K], I[K]>;
82
+ } & {
83
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
84
+ };
85
+ export {};
@@ -0,0 +1,663 @@
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.1
6
+ // source: eqxcustomers/getnotifications.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.TemplateData = exports.NotificationData = exports.getNotificationsResponse = exports.getNotificationsRequest = 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.getnotifications";
16
+ function createBasegetNotificationsRequest() {
17
+ return { pageNo: 0, limit: 0 };
18
+ }
19
+ exports.getNotificationsRequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.pageNo !== 0) {
22
+ writer.uint32(8).int64(message.pageNo);
23
+ }
24
+ if (message.limit !== 0) {
25
+ writer.uint32(16).int64(message.limit);
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 = createBasegetNotificationsRequest();
33
+ while (reader.pos < end) {
34
+ const tag = reader.uint32();
35
+ switch (tag >>> 3) {
36
+ case 1:
37
+ if (tag !== 8) {
38
+ break;
39
+ }
40
+ message.pageNo = longToNumber(reader.int64());
41
+ continue;
42
+ case 2:
43
+ if (tag !== 16) {
44
+ break;
45
+ }
46
+ message.limit = 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
+ pageNo: isSet(object.pageNo) ? globalThis.Number(object.pageNo) : 0,
59
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
60
+ };
61
+ },
62
+ toJSON(message) {
63
+ const obj = {};
64
+ if (message.pageNo !== 0) {
65
+ obj.pageNo = Math.round(message.pageNo);
66
+ }
67
+ if (message.limit !== 0) {
68
+ obj.limit = Math.round(message.limit);
69
+ }
70
+ return obj;
71
+ },
72
+ create(base) {
73
+ return exports.getNotificationsRequest.fromPartial(base ?? {});
74
+ },
75
+ fromPartial(object) {
76
+ const message = createBasegetNotificationsRequest();
77
+ message.pageNo = object.pageNo ?? 0;
78
+ message.limit = object.limit ?? 0;
79
+ return message;
80
+ },
81
+ };
82
+ function createBasegetNotificationsResponse() {
83
+ return { status: "", data: [] };
84
+ }
85
+ exports.getNotificationsResponse = {
86
+ encode(message, writer = minimal_1.default.Writer.create()) {
87
+ if (message.status !== "") {
88
+ writer.uint32(10).string(message.status);
89
+ }
90
+ for (const v of message.data) {
91
+ exports.NotificationData.encode(v, writer.uint32(18).fork()).ldelim();
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 = createBasegetNotificationsResponse();
99
+ while (reader.pos < end) {
100
+ const tag = reader.uint32();
101
+ switch (tag >>> 3) {
102
+ case 1:
103
+ if (tag !== 10) {
104
+ break;
105
+ }
106
+ message.status = reader.string();
107
+ continue;
108
+ case 2:
109
+ if (tag !== 18) {
110
+ break;
111
+ }
112
+ message.data.push(exports.NotificationData.decode(reader, reader.uint32()));
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.String(object.status) : "",
125
+ data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.NotificationData.fromJSON(e)) : [],
126
+ };
127
+ },
128
+ toJSON(message) {
129
+ const obj = {};
130
+ if (message.status !== "") {
131
+ obj.status = message.status;
132
+ }
133
+ if (message.data?.length) {
134
+ obj.data = message.data.map((e) => exports.NotificationData.toJSON(e));
135
+ }
136
+ return obj;
137
+ },
138
+ create(base) {
139
+ return exports.getNotificationsResponse.fromPartial(base ?? {});
140
+ },
141
+ fromPartial(object) {
142
+ const message = createBasegetNotificationsResponse();
143
+ message.status = object.status ?? "";
144
+ message.data = object.data?.map((e) => exports.NotificationData.fromPartial(e)) || [];
145
+ return message;
146
+ },
147
+ };
148
+ function createBaseNotificationData() {
149
+ return {
150
+ id: 0,
151
+ customer_id: 0,
152
+ template_id: "",
153
+ channel: "",
154
+ template_data: undefined,
155
+ status: 0,
156
+ message: "",
157
+ created_at: "",
158
+ updated_at: undefined,
159
+ request_id: undefined,
160
+ expiry_date: undefined,
161
+ is_deleted: undefined,
162
+ };
163
+ }
164
+ exports.NotificationData = {
165
+ encode(message, writer = minimal_1.default.Writer.create()) {
166
+ if (message.id !== 0) {
167
+ writer.uint32(8).int64(message.id);
168
+ }
169
+ if (message.customer_id !== 0) {
170
+ writer.uint32(16).int64(message.customer_id);
171
+ }
172
+ if (message.template_id !== "") {
173
+ writer.uint32(26).string(message.template_id);
174
+ }
175
+ if (message.channel !== "") {
176
+ writer.uint32(34).string(message.channel);
177
+ }
178
+ if (message.template_data !== undefined) {
179
+ exports.TemplateData.encode(message.template_data, writer.uint32(42).fork()).ldelim();
180
+ }
181
+ if (message.status !== 0) {
182
+ writer.uint32(48).int32(message.status);
183
+ }
184
+ if (message.message !== "") {
185
+ writer.uint32(58).string(message.message);
186
+ }
187
+ if (message.created_at !== "") {
188
+ writer.uint32(66).string(message.created_at);
189
+ }
190
+ if (message.updated_at !== undefined) {
191
+ writer.uint32(74).string(message.updated_at);
192
+ }
193
+ if (message.request_id !== undefined) {
194
+ writer.uint32(82).string(message.request_id);
195
+ }
196
+ if (message.expiry_date !== undefined) {
197
+ writer.uint32(90).string(message.expiry_date);
198
+ }
199
+ if (message.is_deleted !== undefined) {
200
+ writer.uint32(96).bool(message.is_deleted);
201
+ }
202
+ return writer;
203
+ },
204
+ decode(input, length) {
205
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
206
+ let end = length === undefined ? reader.len : reader.pos + length;
207
+ const message = createBaseNotificationData();
208
+ while (reader.pos < end) {
209
+ const tag = reader.uint32();
210
+ switch (tag >>> 3) {
211
+ case 1:
212
+ if (tag !== 8) {
213
+ break;
214
+ }
215
+ message.id = longToNumber(reader.int64());
216
+ continue;
217
+ case 2:
218
+ if (tag !== 16) {
219
+ break;
220
+ }
221
+ message.customer_id = longToNumber(reader.int64());
222
+ continue;
223
+ case 3:
224
+ if (tag !== 26) {
225
+ break;
226
+ }
227
+ message.template_id = reader.string();
228
+ continue;
229
+ case 4:
230
+ if (tag !== 34) {
231
+ break;
232
+ }
233
+ message.channel = reader.string();
234
+ continue;
235
+ case 5:
236
+ if (tag !== 42) {
237
+ break;
238
+ }
239
+ message.template_data = exports.TemplateData.decode(reader, reader.uint32());
240
+ continue;
241
+ case 6:
242
+ if (tag !== 48) {
243
+ break;
244
+ }
245
+ message.status = reader.int32();
246
+ continue;
247
+ case 7:
248
+ if (tag !== 58) {
249
+ break;
250
+ }
251
+ message.message = reader.string();
252
+ continue;
253
+ case 8:
254
+ if (tag !== 66) {
255
+ break;
256
+ }
257
+ message.created_at = reader.string();
258
+ continue;
259
+ case 9:
260
+ if (tag !== 74) {
261
+ break;
262
+ }
263
+ message.updated_at = reader.string();
264
+ continue;
265
+ case 10:
266
+ if (tag !== 82) {
267
+ break;
268
+ }
269
+ message.request_id = reader.string();
270
+ continue;
271
+ case 11:
272
+ if (tag !== 90) {
273
+ break;
274
+ }
275
+ message.expiry_date = reader.string();
276
+ continue;
277
+ case 12:
278
+ if (tag !== 96) {
279
+ break;
280
+ }
281
+ message.is_deleted = reader.bool();
282
+ continue;
283
+ }
284
+ if ((tag & 7) === 4 || tag === 0) {
285
+ break;
286
+ }
287
+ reader.skipType(tag & 7);
288
+ }
289
+ return message;
290
+ },
291
+ fromJSON(object) {
292
+ return {
293
+ id: isSet(object.id) ? globalThis.Number(object.id) : 0,
294
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
295
+ template_id: isSet(object.template_id) ? globalThis.String(object.template_id) : "",
296
+ channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
297
+ template_data: isSet(object.template_data) ? exports.TemplateData.fromJSON(object.template_data) : undefined,
298
+ status: isSet(object.status) ? globalThis.Number(object.status) : 0,
299
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
300
+ created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
301
+ updated_at: isSet(object.updated_at) ? globalThis.String(object.updated_at) : undefined,
302
+ request_id: isSet(object.request_id) ? globalThis.String(object.request_id) : undefined,
303
+ expiry_date: isSet(object.expiry_date) ? globalThis.String(object.expiry_date) : undefined,
304
+ is_deleted: isSet(object.is_deleted) ? globalThis.Boolean(object.is_deleted) : undefined,
305
+ };
306
+ },
307
+ toJSON(message) {
308
+ const obj = {};
309
+ if (message.id !== 0) {
310
+ obj.id = Math.round(message.id);
311
+ }
312
+ if (message.customer_id !== 0) {
313
+ obj.customer_id = Math.round(message.customer_id);
314
+ }
315
+ if (message.template_id !== "") {
316
+ obj.template_id = message.template_id;
317
+ }
318
+ if (message.channel !== "") {
319
+ obj.channel = message.channel;
320
+ }
321
+ if (message.template_data !== undefined) {
322
+ obj.template_data = exports.TemplateData.toJSON(message.template_data);
323
+ }
324
+ if (message.status !== 0) {
325
+ obj.status = Math.round(message.status);
326
+ }
327
+ if (message.message !== "") {
328
+ obj.message = message.message;
329
+ }
330
+ if (message.created_at !== "") {
331
+ obj.created_at = message.created_at;
332
+ }
333
+ if (message.updated_at !== undefined) {
334
+ obj.updated_at = message.updated_at;
335
+ }
336
+ if (message.request_id !== undefined) {
337
+ obj.request_id = message.request_id;
338
+ }
339
+ if (message.expiry_date !== undefined) {
340
+ obj.expiry_date = message.expiry_date;
341
+ }
342
+ if (message.is_deleted !== undefined) {
343
+ obj.is_deleted = message.is_deleted;
344
+ }
345
+ return obj;
346
+ },
347
+ create(base) {
348
+ return exports.NotificationData.fromPartial(base ?? {});
349
+ },
350
+ fromPartial(object) {
351
+ const message = createBaseNotificationData();
352
+ message.id = object.id ?? 0;
353
+ message.customer_id = object.customer_id ?? 0;
354
+ message.template_id = object.template_id ?? "";
355
+ message.channel = object.channel ?? "";
356
+ message.template_data = (object.template_data !== undefined && object.template_data !== null)
357
+ ? exports.TemplateData.fromPartial(object.template_data)
358
+ : undefined;
359
+ message.status = object.status ?? 0;
360
+ message.message = object.message ?? "";
361
+ message.created_at = object.created_at ?? "";
362
+ message.updated_at = object.updated_at ?? undefined;
363
+ message.request_id = object.request_id ?? undefined;
364
+ message.expiry_date = object.expiry_date ?? undefined;
365
+ message.is_deleted = object.is_deleted ?? undefined;
366
+ return message;
367
+ },
368
+ };
369
+ function createBaseTemplateData() {
370
+ return {
371
+ date: 0,
372
+ note: "",
373
+ type: "",
374
+ seqNo: "",
375
+ amount: 0,
376
+ refUrl: "",
377
+ status: "",
378
+ payeeVa: "",
379
+ payerVa: "",
380
+ direction: "",
381
+ payeeName: "",
382
+ expireAfter: "",
383
+ payeeMccCode: "",
384
+ payeeMccType: "",
385
+ upiTranlogId: 0,
386
+ payeeVerifiedMerchant: "",
387
+ };
388
+ }
389
+ exports.TemplateData = {
390
+ encode(message, writer = minimal_1.default.Writer.create()) {
391
+ if (message.date !== 0) {
392
+ writer.uint32(8).int64(message.date);
393
+ }
394
+ if (message.note !== "") {
395
+ writer.uint32(18).string(message.note);
396
+ }
397
+ if (message.type !== "") {
398
+ writer.uint32(26).string(message.type);
399
+ }
400
+ if (message.seqNo !== "") {
401
+ writer.uint32(34).string(message.seqNo);
402
+ }
403
+ if (message.amount !== 0) {
404
+ writer.uint32(40).int32(message.amount);
405
+ }
406
+ if (message.refUrl !== "") {
407
+ writer.uint32(50).string(message.refUrl);
408
+ }
409
+ if (message.status !== "") {
410
+ writer.uint32(58).string(message.status);
411
+ }
412
+ if (message.payeeVa !== "") {
413
+ writer.uint32(66).string(message.payeeVa);
414
+ }
415
+ if (message.payerVa !== "") {
416
+ writer.uint32(74).string(message.payerVa);
417
+ }
418
+ if (message.direction !== "") {
419
+ writer.uint32(82).string(message.direction);
420
+ }
421
+ if (message.payeeName !== "") {
422
+ writer.uint32(90).string(message.payeeName);
423
+ }
424
+ if (message.expireAfter !== "") {
425
+ writer.uint32(98).string(message.expireAfter);
426
+ }
427
+ if (message.payeeMccCode !== "") {
428
+ writer.uint32(106).string(message.payeeMccCode);
429
+ }
430
+ if (message.payeeMccType !== "") {
431
+ writer.uint32(114).string(message.payeeMccType);
432
+ }
433
+ if (message.upiTranlogId !== 0) {
434
+ writer.uint32(120).int64(message.upiTranlogId);
435
+ }
436
+ if (message.payeeVerifiedMerchant !== "") {
437
+ writer.uint32(130).string(message.payeeVerifiedMerchant);
438
+ }
439
+ return writer;
440
+ },
441
+ decode(input, length) {
442
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
443
+ let end = length === undefined ? reader.len : reader.pos + length;
444
+ const message = createBaseTemplateData();
445
+ while (reader.pos < end) {
446
+ const tag = reader.uint32();
447
+ switch (tag >>> 3) {
448
+ case 1:
449
+ if (tag !== 8) {
450
+ break;
451
+ }
452
+ message.date = longToNumber(reader.int64());
453
+ continue;
454
+ case 2:
455
+ if (tag !== 18) {
456
+ break;
457
+ }
458
+ message.note = reader.string();
459
+ continue;
460
+ case 3:
461
+ if (tag !== 26) {
462
+ break;
463
+ }
464
+ message.type = reader.string();
465
+ continue;
466
+ case 4:
467
+ if (tag !== 34) {
468
+ break;
469
+ }
470
+ message.seqNo = reader.string();
471
+ continue;
472
+ case 5:
473
+ if (tag !== 40) {
474
+ break;
475
+ }
476
+ message.amount = reader.int32();
477
+ continue;
478
+ case 6:
479
+ if (tag !== 50) {
480
+ break;
481
+ }
482
+ message.refUrl = reader.string();
483
+ continue;
484
+ case 7:
485
+ if (tag !== 58) {
486
+ break;
487
+ }
488
+ message.status = reader.string();
489
+ continue;
490
+ case 8:
491
+ if (tag !== 66) {
492
+ break;
493
+ }
494
+ message.payeeVa = reader.string();
495
+ continue;
496
+ case 9:
497
+ if (tag !== 74) {
498
+ break;
499
+ }
500
+ message.payerVa = reader.string();
501
+ continue;
502
+ case 10:
503
+ if (tag !== 82) {
504
+ break;
505
+ }
506
+ message.direction = reader.string();
507
+ continue;
508
+ case 11:
509
+ if (tag !== 90) {
510
+ break;
511
+ }
512
+ message.payeeName = reader.string();
513
+ continue;
514
+ case 12:
515
+ if (tag !== 98) {
516
+ break;
517
+ }
518
+ message.expireAfter = reader.string();
519
+ continue;
520
+ case 13:
521
+ if (tag !== 106) {
522
+ break;
523
+ }
524
+ message.payeeMccCode = reader.string();
525
+ continue;
526
+ case 14:
527
+ if (tag !== 114) {
528
+ break;
529
+ }
530
+ message.payeeMccType = reader.string();
531
+ continue;
532
+ case 15:
533
+ if (tag !== 120) {
534
+ break;
535
+ }
536
+ message.upiTranlogId = longToNumber(reader.int64());
537
+ continue;
538
+ case 16:
539
+ if (tag !== 130) {
540
+ break;
541
+ }
542
+ message.payeeVerifiedMerchant = reader.string();
543
+ continue;
544
+ }
545
+ if ((tag & 7) === 4 || tag === 0) {
546
+ break;
547
+ }
548
+ reader.skipType(tag & 7);
549
+ }
550
+ return message;
551
+ },
552
+ fromJSON(object) {
553
+ return {
554
+ date: isSet(object.date) ? globalThis.Number(object.date) : 0,
555
+ note: isSet(object.note) ? globalThis.String(object.note) : "",
556
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
557
+ seqNo: isSet(object.seqNo) ? globalThis.String(object.seqNo) : "",
558
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
559
+ refUrl: isSet(object.refUrl) ? globalThis.String(object.refUrl) : "",
560
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
561
+ payeeVa: isSet(object.payeeVa) ? globalThis.String(object.payeeVa) : "",
562
+ payerVa: isSet(object.payerVa) ? globalThis.String(object.payerVa) : "",
563
+ direction: isSet(object.direction) ? globalThis.String(object.direction) : "",
564
+ payeeName: isSet(object.payeeName) ? globalThis.String(object.payeeName) : "",
565
+ expireAfter: isSet(object.expireAfter) ? globalThis.String(object.expireAfter) : "",
566
+ payeeMccCode: isSet(object.payeeMccCode) ? globalThis.String(object.payeeMccCode) : "",
567
+ payeeMccType: isSet(object.payeeMccType) ? globalThis.String(object.payeeMccType) : "",
568
+ upiTranlogId: isSet(object.upiTranlogId) ? globalThis.Number(object.upiTranlogId) : 0,
569
+ payeeVerifiedMerchant: isSet(object.payeeVerifiedMerchant) ? globalThis.String(object.payeeVerifiedMerchant) : "",
570
+ };
571
+ },
572
+ toJSON(message) {
573
+ const obj = {};
574
+ if (message.date !== 0) {
575
+ obj.date = Math.round(message.date);
576
+ }
577
+ if (message.note !== "") {
578
+ obj.note = message.note;
579
+ }
580
+ if (message.type !== "") {
581
+ obj.type = message.type;
582
+ }
583
+ if (message.seqNo !== "") {
584
+ obj.seqNo = message.seqNo;
585
+ }
586
+ if (message.amount !== 0) {
587
+ obj.amount = Math.round(message.amount);
588
+ }
589
+ if (message.refUrl !== "") {
590
+ obj.refUrl = message.refUrl;
591
+ }
592
+ if (message.status !== "") {
593
+ obj.status = message.status;
594
+ }
595
+ if (message.payeeVa !== "") {
596
+ obj.payeeVa = message.payeeVa;
597
+ }
598
+ if (message.payerVa !== "") {
599
+ obj.payerVa = message.payerVa;
600
+ }
601
+ if (message.direction !== "") {
602
+ obj.direction = message.direction;
603
+ }
604
+ if (message.payeeName !== "") {
605
+ obj.payeeName = message.payeeName;
606
+ }
607
+ if (message.expireAfter !== "") {
608
+ obj.expireAfter = message.expireAfter;
609
+ }
610
+ if (message.payeeMccCode !== "") {
611
+ obj.payeeMccCode = message.payeeMccCode;
612
+ }
613
+ if (message.payeeMccType !== "") {
614
+ obj.payeeMccType = message.payeeMccType;
615
+ }
616
+ if (message.upiTranlogId !== 0) {
617
+ obj.upiTranlogId = Math.round(message.upiTranlogId);
618
+ }
619
+ if (message.payeeVerifiedMerchant !== "") {
620
+ obj.payeeVerifiedMerchant = message.payeeVerifiedMerchant;
621
+ }
622
+ return obj;
623
+ },
624
+ create(base) {
625
+ return exports.TemplateData.fromPartial(base ?? {});
626
+ },
627
+ fromPartial(object) {
628
+ const message = createBaseTemplateData();
629
+ message.date = object.date ?? 0;
630
+ message.note = object.note ?? "";
631
+ message.type = object.type ?? "";
632
+ message.seqNo = object.seqNo ?? "";
633
+ message.amount = object.amount ?? 0;
634
+ message.refUrl = object.refUrl ?? "";
635
+ message.status = object.status ?? "";
636
+ message.payeeVa = object.payeeVa ?? "";
637
+ message.payerVa = object.payerVa ?? "";
638
+ message.direction = object.direction ?? "";
639
+ message.payeeName = object.payeeName ?? "";
640
+ message.expireAfter = object.expireAfter ?? "";
641
+ message.payeeMccCode = object.payeeMccCode ?? "";
642
+ message.payeeMccType = object.payeeMccType ?? "";
643
+ message.upiTranlogId = object.upiTranlogId ?? 0;
644
+ message.payeeVerifiedMerchant = object.payeeVerifiedMerchant ?? "";
645
+ return message;
646
+ },
647
+ };
648
+ function longToNumber(long) {
649
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
650
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
651
+ }
652
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
653
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
654
+ }
655
+ return long.toNumber();
656
+ }
657
+ if (minimal_1.default.util.Long !== long_1.default) {
658
+ minimal_1.default.util.Long = long_1.default;
659
+ minimal_1.default.configure();
660
+ }
661
+ function isSet(value) {
662
+ return value !== null && value !== undefined;
663
+ }
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.updatenotification";
3
+ export interface updateNotificationRequest {
4
+ notificationId: number;
5
+ }
6
+ export interface updateNotificationResponse {
7
+ status: string;
8
+ message: string;
9
+ }
10
+ export declare const updateNotificationRequest: {
11
+ encode(message: updateNotificationRequest, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateNotificationRequest;
13
+ fromJSON(object: any): updateNotificationRequest;
14
+ toJSON(message: updateNotificationRequest): unknown;
15
+ create<I extends Exact<DeepPartial<updateNotificationRequest>, I>>(base?: I): updateNotificationRequest;
16
+ fromPartial<I extends Exact<DeepPartial<updateNotificationRequest>, I>>(object: I): updateNotificationRequest;
17
+ };
18
+ export declare const updateNotificationResponse: {
19
+ encode(message: updateNotificationResponse, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateNotificationResponse;
21
+ fromJSON(object: any): updateNotificationResponse;
22
+ toJSON(message: updateNotificationResponse): unknown;
23
+ create<I extends Exact<DeepPartial<updateNotificationResponse>, I>>(base?: I): updateNotificationResponse;
24
+ fromPartial<I extends Exact<DeepPartial<updateNotificationResponse>, I>>(object: I): updateNotificationResponse;
25
+ };
26
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
+ 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 {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export {};
@@ -0,0 +1,147 @@
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.1
6
+ // source: eqxcustomers/updatenotification.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.updateNotificationResponse = exports.updateNotificationRequest = 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.updatenotification";
16
+ function createBaseupdateNotificationRequest() {
17
+ return { notificationId: 0 };
18
+ }
19
+ exports.updateNotificationRequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.notificationId !== 0) {
22
+ writer.uint32(8).int64(message.notificationId);
23
+ }
24
+ return writer;
25
+ },
26
+ decode(input, length) {
27
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
28
+ let end = length === undefined ? reader.len : reader.pos + length;
29
+ const message = createBaseupdateNotificationRequest();
30
+ while (reader.pos < end) {
31
+ const tag = reader.uint32();
32
+ switch (tag >>> 3) {
33
+ case 1:
34
+ if (tag !== 8) {
35
+ break;
36
+ }
37
+ message.notificationId = longToNumber(reader.int64());
38
+ continue;
39
+ }
40
+ if ((tag & 7) === 4 || tag === 0) {
41
+ break;
42
+ }
43
+ reader.skipType(tag & 7);
44
+ }
45
+ return message;
46
+ },
47
+ fromJSON(object) {
48
+ return { notificationId: isSet(object.notificationId) ? globalThis.Number(object.notificationId) : 0 };
49
+ },
50
+ toJSON(message) {
51
+ const obj = {};
52
+ if (message.notificationId !== 0) {
53
+ obj.notificationId = Math.round(message.notificationId);
54
+ }
55
+ return obj;
56
+ },
57
+ create(base) {
58
+ return exports.updateNotificationRequest.fromPartial(base ?? {});
59
+ },
60
+ fromPartial(object) {
61
+ const message = createBaseupdateNotificationRequest();
62
+ message.notificationId = object.notificationId ?? 0;
63
+ return message;
64
+ },
65
+ };
66
+ function createBaseupdateNotificationResponse() {
67
+ return { status: "", message: "" };
68
+ }
69
+ exports.updateNotificationResponse = {
70
+ encode(message, writer = minimal_1.default.Writer.create()) {
71
+ if (message.status !== "") {
72
+ writer.uint32(10).string(message.status);
73
+ }
74
+ if (message.message !== "") {
75
+ writer.uint32(18).string(message.message);
76
+ }
77
+ return writer;
78
+ },
79
+ decode(input, length) {
80
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
81
+ let end = length === undefined ? reader.len : reader.pos + length;
82
+ const message = createBaseupdateNotificationResponse();
83
+ while (reader.pos < end) {
84
+ const tag = reader.uint32();
85
+ switch (tag >>> 3) {
86
+ case 1:
87
+ if (tag !== 10) {
88
+ break;
89
+ }
90
+ message.status = reader.string();
91
+ continue;
92
+ case 2:
93
+ if (tag !== 18) {
94
+ break;
95
+ }
96
+ message.message = reader.string();
97
+ continue;
98
+ }
99
+ if ((tag & 7) === 4 || tag === 0) {
100
+ break;
101
+ }
102
+ reader.skipType(tag & 7);
103
+ }
104
+ return message;
105
+ },
106
+ fromJSON(object) {
107
+ return {
108
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
109
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
110
+ };
111
+ },
112
+ toJSON(message) {
113
+ const obj = {};
114
+ if (message.status !== "") {
115
+ obj.status = message.status;
116
+ }
117
+ if (message.message !== "") {
118
+ obj.message = message.message;
119
+ }
120
+ return obj;
121
+ },
122
+ create(base) {
123
+ return exports.updateNotificationResponse.fromPartial(base ?? {});
124
+ },
125
+ fromPartial(object) {
126
+ const message = createBaseupdateNotificationResponse();
127
+ message.status = object.status ?? "";
128
+ message.message = object.message ?? "";
129
+ return message;
130
+ },
131
+ };
132
+ function longToNumber(long) {
133
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
134
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
135
+ }
136
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
137
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
138
+ }
139
+ return long.toNumber();
140
+ }
141
+ if (minimal_1.default.util.Long !== long_1.default) {
142
+ minimal_1.default.util.Long = long_1.default;
143
+ minimal_1.default.configure();
144
+ }
145
+ function isSet(value) {
146
+ return value !== null && value !== undefined;
147
+ }