@stashfin/grpc 1.2.519 → 1.2.521
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
|
@@ -13,9 +13,20 @@ export interface NotificationData {
|
|
|
13
13
|
customer_id: number;
|
|
14
14
|
template_id: string;
|
|
15
15
|
created_at: string;
|
|
16
|
-
body
|
|
16
|
+
body: Body | undefined;
|
|
17
17
|
description?: string | undefined;
|
|
18
18
|
}
|
|
19
|
+
export interface Body {
|
|
20
|
+
notification: Notification | undefined;
|
|
21
|
+
data: Data | undefined;
|
|
22
|
+
}
|
|
23
|
+
export interface Notification {
|
|
24
|
+
body: string;
|
|
25
|
+
title: string;
|
|
26
|
+
}
|
|
27
|
+
export interface Data {
|
|
28
|
+
deep_link: string;
|
|
29
|
+
}
|
|
19
30
|
export declare const getNotificationsRequest: {
|
|
20
31
|
encode(message: getNotificationsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
21
32
|
decode(input: _m0.Reader | Uint8Array, length?: number): getNotificationsRequest;
|
|
@@ -40,6 +51,30 @@ export declare const NotificationData: {
|
|
|
40
51
|
create<I extends Exact<DeepPartial<NotificationData>, I>>(base?: I): NotificationData;
|
|
41
52
|
fromPartial<I extends Exact<DeepPartial<NotificationData>, I>>(object: I): NotificationData;
|
|
42
53
|
};
|
|
54
|
+
export declare const Body: {
|
|
55
|
+
encode(message: Body, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Body;
|
|
57
|
+
fromJSON(object: any): Body;
|
|
58
|
+
toJSON(message: Body): unknown;
|
|
59
|
+
create<I extends Exact<DeepPartial<Body>, I>>(base?: I): Body;
|
|
60
|
+
fromPartial<I extends Exact<DeepPartial<Body>, I>>(object: I): Body;
|
|
61
|
+
};
|
|
62
|
+
export declare const Notification: {
|
|
63
|
+
encode(message: Notification, writer?: _m0.Writer): _m0.Writer;
|
|
64
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Notification;
|
|
65
|
+
fromJSON(object: any): Notification;
|
|
66
|
+
toJSON(message: Notification): unknown;
|
|
67
|
+
create<I extends Exact<DeepPartial<Notification>, I>>(base?: I): Notification;
|
|
68
|
+
fromPartial<I extends Exact<DeepPartial<Notification>, I>>(object: I): Notification;
|
|
69
|
+
};
|
|
70
|
+
export declare const Data: {
|
|
71
|
+
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Data;
|
|
73
|
+
fromJSON(object: any): Data;
|
|
74
|
+
toJSON(message: Data): unknown;
|
|
75
|
+
create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data;
|
|
76
|
+
fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data;
|
|
77
|
+
};
|
|
43
78
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
44
79
|
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 {} ? {
|
|
45
80
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.NotificationData = exports.getNotificationsResponse = exports.getNotificationsRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.Data = exports.Notification = exports.Body = exports.NotificationData = exports.getNotificationsResponse = exports.getNotificationsRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const long_1 = __importDefault(require("long"));
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -163,7 +163,7 @@ exports.NotificationData = {
|
|
|
163
163
|
writer.uint32(34).string(message.created_at);
|
|
164
164
|
}
|
|
165
165
|
if (message.body !== undefined) {
|
|
166
|
-
writer.uint32(42).
|
|
166
|
+
exports.Body.encode(message.body, writer.uint32(42).fork()).ldelim();
|
|
167
167
|
}
|
|
168
168
|
if (message.description !== undefined) {
|
|
169
169
|
writer.uint32(50).string(message.description);
|
|
@@ -205,7 +205,7 @@ exports.NotificationData = {
|
|
|
205
205
|
if (tag !== 42) {
|
|
206
206
|
break;
|
|
207
207
|
}
|
|
208
|
-
message.body = reader.
|
|
208
|
+
message.body = exports.Body.decode(reader, reader.uint32());
|
|
209
209
|
continue;
|
|
210
210
|
case 6:
|
|
211
211
|
if (tag !== 50) {
|
|
@@ -227,7 +227,7 @@ exports.NotificationData = {
|
|
|
227
227
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
228
228
|
template_id: isSet(object.template_id) ? globalThis.String(object.template_id) : "",
|
|
229
229
|
created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
|
|
230
|
-
body: isSet(object.body) ?
|
|
230
|
+
body: isSet(object.body) ? exports.Body.fromJSON(object.body) : undefined,
|
|
231
231
|
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
232
232
|
};
|
|
233
233
|
},
|
|
@@ -246,7 +246,7 @@ exports.NotificationData = {
|
|
|
246
246
|
obj.created_at = message.created_at;
|
|
247
247
|
}
|
|
248
248
|
if (message.body !== undefined) {
|
|
249
|
-
obj.body = message.body;
|
|
249
|
+
obj.body = exports.Body.toJSON(message.body);
|
|
250
250
|
}
|
|
251
251
|
if (message.description !== undefined) {
|
|
252
252
|
obj.description = message.description;
|
|
@@ -262,11 +262,195 @@ exports.NotificationData = {
|
|
|
262
262
|
message.customer_id = object.customer_id ?? 0;
|
|
263
263
|
message.template_id = object.template_id ?? "";
|
|
264
264
|
message.created_at = object.created_at ?? "";
|
|
265
|
-
message.body = object.body
|
|
265
|
+
message.body = (object.body !== undefined && object.body !== null) ? exports.Body.fromPartial(object.body) : undefined;
|
|
266
266
|
message.description = object.description ?? undefined;
|
|
267
267
|
return message;
|
|
268
268
|
},
|
|
269
269
|
};
|
|
270
|
+
function createBaseBody() {
|
|
271
|
+
return { notification: undefined, data: undefined };
|
|
272
|
+
}
|
|
273
|
+
exports.Body = {
|
|
274
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
275
|
+
if (message.notification !== undefined) {
|
|
276
|
+
exports.Notification.encode(message.notification, writer.uint32(10).fork()).ldelim();
|
|
277
|
+
}
|
|
278
|
+
if (message.data !== undefined) {
|
|
279
|
+
exports.Data.encode(message.data, writer.uint32(18).fork()).ldelim();
|
|
280
|
+
}
|
|
281
|
+
return writer;
|
|
282
|
+
},
|
|
283
|
+
decode(input, length) {
|
|
284
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
285
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
286
|
+
const message = createBaseBody();
|
|
287
|
+
while (reader.pos < end) {
|
|
288
|
+
const tag = reader.uint32();
|
|
289
|
+
switch (tag >>> 3) {
|
|
290
|
+
case 1:
|
|
291
|
+
if (tag !== 10) {
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
message.notification = exports.Notification.decode(reader, reader.uint32());
|
|
295
|
+
continue;
|
|
296
|
+
case 2:
|
|
297
|
+
if (tag !== 18) {
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
message.data = exports.Data.decode(reader, reader.uint32());
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
reader.skipType(tag & 7);
|
|
307
|
+
}
|
|
308
|
+
return message;
|
|
309
|
+
},
|
|
310
|
+
fromJSON(object) {
|
|
311
|
+
return {
|
|
312
|
+
notification: isSet(object.notification) ? exports.Notification.fromJSON(object.notification) : undefined,
|
|
313
|
+
data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
|
|
314
|
+
};
|
|
315
|
+
},
|
|
316
|
+
toJSON(message) {
|
|
317
|
+
const obj = {};
|
|
318
|
+
if (message.notification !== undefined) {
|
|
319
|
+
obj.notification = exports.Notification.toJSON(message.notification);
|
|
320
|
+
}
|
|
321
|
+
if (message.data !== undefined) {
|
|
322
|
+
obj.data = exports.Data.toJSON(message.data);
|
|
323
|
+
}
|
|
324
|
+
return obj;
|
|
325
|
+
},
|
|
326
|
+
create(base) {
|
|
327
|
+
return exports.Body.fromPartial(base ?? {});
|
|
328
|
+
},
|
|
329
|
+
fromPartial(object) {
|
|
330
|
+
const message = createBaseBody();
|
|
331
|
+
message.notification = (object.notification !== undefined && object.notification !== null)
|
|
332
|
+
? exports.Notification.fromPartial(object.notification)
|
|
333
|
+
: undefined;
|
|
334
|
+
message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
|
|
335
|
+
return message;
|
|
336
|
+
},
|
|
337
|
+
};
|
|
338
|
+
function createBaseNotification() {
|
|
339
|
+
return { body: "", title: "" };
|
|
340
|
+
}
|
|
341
|
+
exports.Notification = {
|
|
342
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
343
|
+
if (message.body !== "") {
|
|
344
|
+
writer.uint32(10).string(message.body);
|
|
345
|
+
}
|
|
346
|
+
if (message.title !== "") {
|
|
347
|
+
writer.uint32(18).string(message.title);
|
|
348
|
+
}
|
|
349
|
+
return writer;
|
|
350
|
+
},
|
|
351
|
+
decode(input, length) {
|
|
352
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
353
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
354
|
+
const message = createBaseNotification();
|
|
355
|
+
while (reader.pos < end) {
|
|
356
|
+
const tag = reader.uint32();
|
|
357
|
+
switch (tag >>> 3) {
|
|
358
|
+
case 1:
|
|
359
|
+
if (tag !== 10) {
|
|
360
|
+
break;
|
|
361
|
+
}
|
|
362
|
+
message.body = reader.string();
|
|
363
|
+
continue;
|
|
364
|
+
case 2:
|
|
365
|
+
if (tag !== 18) {
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
message.title = reader.string();
|
|
369
|
+
continue;
|
|
370
|
+
}
|
|
371
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
reader.skipType(tag & 7);
|
|
375
|
+
}
|
|
376
|
+
return message;
|
|
377
|
+
},
|
|
378
|
+
fromJSON(object) {
|
|
379
|
+
return {
|
|
380
|
+
body: isSet(object.body) ? globalThis.String(object.body) : "",
|
|
381
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
382
|
+
};
|
|
383
|
+
},
|
|
384
|
+
toJSON(message) {
|
|
385
|
+
const obj = {};
|
|
386
|
+
if (message.body !== "") {
|
|
387
|
+
obj.body = message.body;
|
|
388
|
+
}
|
|
389
|
+
if (message.title !== "") {
|
|
390
|
+
obj.title = message.title;
|
|
391
|
+
}
|
|
392
|
+
return obj;
|
|
393
|
+
},
|
|
394
|
+
create(base) {
|
|
395
|
+
return exports.Notification.fromPartial(base ?? {});
|
|
396
|
+
},
|
|
397
|
+
fromPartial(object) {
|
|
398
|
+
const message = createBaseNotification();
|
|
399
|
+
message.body = object.body ?? "";
|
|
400
|
+
message.title = object.title ?? "";
|
|
401
|
+
return message;
|
|
402
|
+
},
|
|
403
|
+
};
|
|
404
|
+
function createBaseData() {
|
|
405
|
+
return { deep_link: "" };
|
|
406
|
+
}
|
|
407
|
+
exports.Data = {
|
|
408
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
409
|
+
if (message.deep_link !== "") {
|
|
410
|
+
writer.uint32(10).string(message.deep_link);
|
|
411
|
+
}
|
|
412
|
+
return writer;
|
|
413
|
+
},
|
|
414
|
+
decode(input, length) {
|
|
415
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
416
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
417
|
+
const message = createBaseData();
|
|
418
|
+
while (reader.pos < end) {
|
|
419
|
+
const tag = reader.uint32();
|
|
420
|
+
switch (tag >>> 3) {
|
|
421
|
+
case 1:
|
|
422
|
+
if (tag !== 10) {
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
message.deep_link = reader.string();
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
reader.skipType(tag & 7);
|
|
432
|
+
}
|
|
433
|
+
return message;
|
|
434
|
+
},
|
|
435
|
+
fromJSON(object) {
|
|
436
|
+
return { deep_link: isSet(object.deep_link) ? globalThis.String(object.deep_link) : "" };
|
|
437
|
+
},
|
|
438
|
+
toJSON(message) {
|
|
439
|
+
const obj = {};
|
|
440
|
+
if (message.deep_link !== "") {
|
|
441
|
+
obj.deep_link = message.deep_link;
|
|
442
|
+
}
|
|
443
|
+
return obj;
|
|
444
|
+
},
|
|
445
|
+
create(base) {
|
|
446
|
+
return exports.Data.fromPartial(base ?? {});
|
|
447
|
+
},
|
|
448
|
+
fromPartial(object) {
|
|
449
|
+
const message = createBaseData();
|
|
450
|
+
message.deep_link = object.deep_link ?? "";
|
|
451
|
+
return message;
|
|
452
|
+
},
|
|
453
|
+
};
|
|
270
454
|
function longToNumber(long) {
|
|
271
455
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
272
456
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
package/ts/upi/getupinumbers.js
CHANGED
|
@@ -144,13 +144,16 @@ exports.upiNumbersList = {
|
|
|
144
144
|
},
|
|
145
145
|
};
|
|
146
146
|
function createBaseData() {
|
|
147
|
-
return { upinumbers: [] };
|
|
147
|
+
return { upinumbers: [], vpa: undefined };
|
|
148
148
|
}
|
|
149
149
|
exports.Data = {
|
|
150
150
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
151
151
|
for (const v of message.upinumbers) {
|
|
152
152
|
exports.upiNumbersList.encode(v, writer.uint32(10).fork()).ldelim();
|
|
153
153
|
}
|
|
154
|
+
if (message.vpa !== undefined) {
|
|
155
|
+
writer.uint32(18).string(message.vpa);
|
|
156
|
+
}
|
|
154
157
|
return writer;
|
|
155
158
|
},
|
|
156
159
|
decode(input, length) {
|
|
@@ -166,6 +169,12 @@ exports.Data = {
|
|
|
166
169
|
}
|
|
167
170
|
message.upinumbers.push(exports.upiNumbersList.decode(reader, reader.uint32()));
|
|
168
171
|
continue;
|
|
172
|
+
case 2:
|
|
173
|
+
if (tag !== 18) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
message.vpa = reader.string();
|
|
177
|
+
continue;
|
|
169
178
|
}
|
|
170
179
|
if ((tag & 7) === 4 || tag === 0) {
|
|
171
180
|
break;
|
|
@@ -179,6 +188,7 @@ exports.Data = {
|
|
|
179
188
|
upinumbers: globalThis.Array.isArray(object?.upinumbers)
|
|
180
189
|
? object.upinumbers.map((e) => exports.upiNumbersList.fromJSON(e))
|
|
181
190
|
: [],
|
|
191
|
+
vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : undefined,
|
|
182
192
|
};
|
|
183
193
|
},
|
|
184
194
|
toJSON(message) {
|
|
@@ -186,6 +196,9 @@ exports.Data = {
|
|
|
186
196
|
if (message.upinumbers?.length) {
|
|
187
197
|
obj.upinumbers = message.upinumbers.map((e) => exports.upiNumbersList.toJSON(e));
|
|
188
198
|
}
|
|
199
|
+
if (message.vpa !== undefined) {
|
|
200
|
+
obj.vpa = message.vpa;
|
|
201
|
+
}
|
|
189
202
|
return obj;
|
|
190
203
|
},
|
|
191
204
|
create(base) {
|
|
@@ -194,6 +207,7 @@ exports.Data = {
|
|
|
194
207
|
fromPartial(object) {
|
|
195
208
|
const message = createBaseData();
|
|
196
209
|
message.upinumbers = object.upinumbers?.map((e) => exports.upiNumbersList.fromPartial(e)) || [];
|
|
210
|
+
message.vpa = object.vpa ?? undefined;
|
|
197
211
|
return message;
|
|
198
212
|
},
|
|
199
213
|
};
|