@stashfin/grpc 1.2.679 → 1.2.681
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/growth.d.ts +0 -84
- package/ts/growth.js +0 -60
- package/ts/rewards/getoffers.d.ts +1 -0
- package/ts/rewards/getoffers.js +15 -0
package/package.json
CHANGED
package/ts/growth.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
-
import { chrplansstatusrequest, chrplanstatusresponse } from "./growth/checkplanstatus";
|
|
3
|
-
import { chrattachplanrequest, chrattachplanresponse } from "./growth/getattachplandetails";
|
|
4
|
-
import { paymentstatusrequest, paymentstatusresponse } from "./growth/getchrpaymentstatus";
|
|
5
|
-
import { chrPlansRequest, chrPlansResponse } from "./growth/getchrplans";
|
|
6
|
-
import { credithealthreportrequest, credithealthreportresponse } from "./growth/getcredithealthreport";
|
|
7
|
-
import { initiatepaymentrequest, initiatepaymentresponse } from "./growth/initiatepayment";
|
|
8
2
|
import { notifychrrequest, notifychrresponse } from "./growth/notifychrpayment";
|
|
9
3
|
export declare const protobufPackage = "service";
|
|
10
4
|
export type growthService = typeof growthService;
|
|
@@ -18,92 +12,14 @@ export declare const growthService: {
|
|
|
18
12
|
readonly responseSerialize: (value: notifychrresponse) => Buffer;
|
|
19
13
|
readonly responseDeserialize: (value: Buffer) => notifychrresponse;
|
|
20
14
|
};
|
|
21
|
-
readonly checkplanstatus: {
|
|
22
|
-
readonly path: "/service.growth/checkplanstatus";
|
|
23
|
-
readonly requestStream: false;
|
|
24
|
-
readonly responseStream: false;
|
|
25
|
-
readonly requestSerialize: (value: chrplansstatusrequest) => Buffer;
|
|
26
|
-
readonly requestDeserialize: (value: Buffer) => chrplansstatusrequest;
|
|
27
|
-
readonly responseSerialize: (value: chrplanstatusresponse) => Buffer;
|
|
28
|
-
readonly responseDeserialize: (value: Buffer) => chrplanstatusresponse;
|
|
29
|
-
};
|
|
30
|
-
readonly getattachplandetails: {
|
|
31
|
-
readonly path: "/service.growth/getattachplandetails";
|
|
32
|
-
readonly requestStream: false;
|
|
33
|
-
readonly responseStream: false;
|
|
34
|
-
readonly requestSerialize: (value: chrattachplanrequest) => Buffer;
|
|
35
|
-
readonly requestDeserialize: (value: Buffer) => chrattachplanrequest;
|
|
36
|
-
readonly responseSerialize: (value: chrattachplanresponse) => Buffer;
|
|
37
|
-
readonly responseDeserialize: (value: Buffer) => chrattachplanresponse;
|
|
38
|
-
};
|
|
39
|
-
readonly getchrplans: {
|
|
40
|
-
readonly path: "/service.growth/getchrplans";
|
|
41
|
-
readonly requestStream: false;
|
|
42
|
-
readonly responseStream: false;
|
|
43
|
-
readonly requestSerialize: (value: chrPlansRequest) => Buffer;
|
|
44
|
-
readonly requestDeserialize: (value: Buffer) => chrPlansRequest;
|
|
45
|
-
readonly responseSerialize: (value: chrPlansResponse) => Buffer;
|
|
46
|
-
readonly responseDeserialize: (value: Buffer) => chrPlansResponse;
|
|
47
|
-
};
|
|
48
|
-
readonly getcredithealthreport: {
|
|
49
|
-
readonly path: "/service.growth/getcredithealthreport";
|
|
50
|
-
readonly requestStream: false;
|
|
51
|
-
readonly responseStream: false;
|
|
52
|
-
readonly requestSerialize: (value: credithealthreportrequest) => Buffer;
|
|
53
|
-
readonly requestDeserialize: (value: Buffer) => credithealthreportrequest;
|
|
54
|
-
readonly responseSerialize: (value: credithealthreportresponse) => Buffer;
|
|
55
|
-
readonly responseDeserialize: (value: Buffer) => credithealthreportresponse;
|
|
56
|
-
};
|
|
57
|
-
readonly initiatepayment: {
|
|
58
|
-
readonly path: "/service.growth/initiatepayment";
|
|
59
|
-
readonly requestStream: false;
|
|
60
|
-
readonly responseStream: false;
|
|
61
|
-
readonly requestSerialize: (value: initiatepaymentrequest) => Buffer;
|
|
62
|
-
readonly requestDeserialize: (value: Buffer) => initiatepaymentrequest;
|
|
63
|
-
readonly responseSerialize: (value: initiatepaymentresponse) => Buffer;
|
|
64
|
-
readonly responseDeserialize: (value: Buffer) => initiatepaymentresponse;
|
|
65
|
-
};
|
|
66
|
-
readonly getchrpaymentstatus: {
|
|
67
|
-
readonly path: "/service.growth/getchrpaymentstatus";
|
|
68
|
-
readonly requestStream: false;
|
|
69
|
-
readonly responseStream: false;
|
|
70
|
-
readonly requestSerialize: (value: paymentstatusrequest) => Buffer;
|
|
71
|
-
readonly requestDeserialize: (value: Buffer) => paymentstatusrequest;
|
|
72
|
-
readonly responseSerialize: (value: paymentstatusresponse) => Buffer;
|
|
73
|
-
readonly responseDeserialize: (value: Buffer) => paymentstatusresponse;
|
|
74
|
-
};
|
|
75
15
|
};
|
|
76
16
|
export interface growthServer extends UntypedServiceImplementation {
|
|
77
17
|
notifychrpayment: handleUnaryCall<notifychrrequest, notifychrresponse>;
|
|
78
|
-
checkplanstatus: handleUnaryCall<chrplansstatusrequest, chrplanstatusresponse>;
|
|
79
|
-
getattachplandetails: handleUnaryCall<chrattachplanrequest, chrattachplanresponse>;
|
|
80
|
-
getchrplans: handleUnaryCall<chrPlansRequest, chrPlansResponse>;
|
|
81
|
-
getcredithealthreport: handleUnaryCall<credithealthreportrequest, credithealthreportresponse>;
|
|
82
|
-
initiatepayment: handleUnaryCall<initiatepaymentrequest, initiatepaymentresponse>;
|
|
83
|
-
getchrpaymentstatus: handleUnaryCall<paymentstatusrequest, paymentstatusresponse>;
|
|
84
18
|
}
|
|
85
19
|
export interface growthClient extends Client {
|
|
86
20
|
notifychrpayment(request: notifychrrequest, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
|
|
87
21
|
notifychrpayment(request: notifychrrequest, metadata: Metadata, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
|
|
88
22
|
notifychrpayment(request: notifychrrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: notifychrresponse) => void): ClientUnaryCall;
|
|
89
|
-
checkplanstatus(request: chrplansstatusrequest, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
|
|
90
|
-
checkplanstatus(request: chrplansstatusrequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
|
|
91
|
-
checkplanstatus(request: chrplansstatusrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrplanstatusresponse) => void): ClientUnaryCall;
|
|
92
|
-
getattachplandetails(request: chrattachplanrequest, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
|
|
93
|
-
getattachplandetails(request: chrattachplanrequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
|
|
94
|
-
getattachplandetails(request: chrattachplanrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrattachplanresponse) => void): ClientUnaryCall;
|
|
95
|
-
getchrplans(request: chrPlansRequest, callback: (error: ServiceError | null, response: chrPlansResponse) => void): ClientUnaryCall;
|
|
96
|
-
getchrplans(request: chrPlansRequest, metadata: Metadata, callback: (error: ServiceError | null, response: chrPlansResponse) => void): ClientUnaryCall;
|
|
97
|
-
getchrplans(request: chrPlansRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: chrPlansResponse) => void): ClientUnaryCall;
|
|
98
|
-
getcredithealthreport(request: credithealthreportrequest, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
|
|
99
|
-
getcredithealthreport(request: credithealthreportrequest, metadata: Metadata, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
|
|
100
|
-
getcredithealthreport(request: credithealthreportrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: credithealthreportresponse) => void): ClientUnaryCall;
|
|
101
|
-
initiatepayment(request: initiatepaymentrequest, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
|
|
102
|
-
initiatepayment(request: initiatepaymentrequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
|
|
103
|
-
initiatepayment(request: initiatepaymentrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
|
|
104
|
-
getchrpaymentstatus(request: paymentstatusrequest, callback: (error: ServiceError | null, response: paymentstatusresponse) => void): ClientUnaryCall;
|
|
105
|
-
getchrpaymentstatus(request: paymentstatusrequest, metadata: Metadata, callback: (error: ServiceError | null, response: paymentstatusresponse) => void): ClientUnaryCall;
|
|
106
|
-
getchrpaymentstatus(request: paymentstatusrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: paymentstatusresponse) => void): ClientUnaryCall;
|
|
107
23
|
}
|
|
108
24
|
export declare const growthClient: {
|
|
109
25
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): growthClient;
|
package/ts/growth.js
CHANGED
|
@@ -8,12 +8,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.growthClient = exports.growthService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
-
const checkplanstatus_1 = require("./growth/checkplanstatus");
|
|
12
|
-
const getattachplandetails_1 = require("./growth/getattachplandetails");
|
|
13
|
-
const getchrpaymentstatus_1 = require("./growth/getchrpaymentstatus");
|
|
14
|
-
const getchrplans_1 = require("./growth/getchrplans");
|
|
15
|
-
const getcredithealthreport_1 = require("./growth/getcredithealthreport");
|
|
16
|
-
const initiatepayment_1 = require("./growth/initiatepayment");
|
|
17
11
|
const notifychrpayment_1 = require("./growth/notifychrpayment");
|
|
18
12
|
exports.protobufPackage = "service";
|
|
19
13
|
exports.growthService = {
|
|
@@ -26,59 +20,5 @@ exports.growthService = {
|
|
|
26
20
|
responseSerialize: (value) => Buffer.from(notifychrpayment_1.notifychrresponse.encode(value).finish()),
|
|
27
21
|
responseDeserialize: (value) => notifychrpayment_1.notifychrresponse.decode(value),
|
|
28
22
|
},
|
|
29
|
-
checkplanstatus: {
|
|
30
|
-
path: "/service.growth/checkplanstatus",
|
|
31
|
-
requestStream: false,
|
|
32
|
-
responseStream: false,
|
|
33
|
-
requestSerialize: (value) => Buffer.from(checkplanstatus_1.chrplansstatusrequest.encode(value).finish()),
|
|
34
|
-
requestDeserialize: (value) => checkplanstatus_1.chrplansstatusrequest.decode(value),
|
|
35
|
-
responseSerialize: (value) => Buffer.from(checkplanstatus_1.chrplanstatusresponse.encode(value).finish()),
|
|
36
|
-
responseDeserialize: (value) => checkplanstatus_1.chrplanstatusresponse.decode(value),
|
|
37
|
-
},
|
|
38
|
-
getattachplandetails: {
|
|
39
|
-
path: "/service.growth/getattachplandetails",
|
|
40
|
-
requestStream: false,
|
|
41
|
-
responseStream: false,
|
|
42
|
-
requestSerialize: (value) => Buffer.from(getattachplandetails_1.chrattachplanrequest.encode(value).finish()),
|
|
43
|
-
requestDeserialize: (value) => getattachplandetails_1.chrattachplanrequest.decode(value),
|
|
44
|
-
responseSerialize: (value) => Buffer.from(getattachplandetails_1.chrattachplanresponse.encode(value).finish()),
|
|
45
|
-
responseDeserialize: (value) => getattachplandetails_1.chrattachplanresponse.decode(value),
|
|
46
|
-
},
|
|
47
|
-
getchrplans: {
|
|
48
|
-
path: "/service.growth/getchrplans",
|
|
49
|
-
requestStream: false,
|
|
50
|
-
responseStream: false,
|
|
51
|
-
requestSerialize: (value) => Buffer.from(getchrplans_1.chrPlansRequest.encode(value).finish()),
|
|
52
|
-
requestDeserialize: (value) => getchrplans_1.chrPlansRequest.decode(value),
|
|
53
|
-
responseSerialize: (value) => Buffer.from(getchrplans_1.chrPlansResponse.encode(value).finish()),
|
|
54
|
-
responseDeserialize: (value) => getchrplans_1.chrPlansResponse.decode(value),
|
|
55
|
-
},
|
|
56
|
-
getcredithealthreport: {
|
|
57
|
-
path: "/service.growth/getcredithealthreport",
|
|
58
|
-
requestStream: false,
|
|
59
|
-
responseStream: false,
|
|
60
|
-
requestSerialize: (value) => Buffer.from(getcredithealthreport_1.credithealthreportrequest.encode(value).finish()),
|
|
61
|
-
requestDeserialize: (value) => getcredithealthreport_1.credithealthreportrequest.decode(value),
|
|
62
|
-
responseSerialize: (value) => Buffer.from(getcredithealthreport_1.credithealthreportresponse.encode(value).finish()),
|
|
63
|
-
responseDeserialize: (value) => getcredithealthreport_1.credithealthreportresponse.decode(value),
|
|
64
|
-
},
|
|
65
|
-
initiatepayment: {
|
|
66
|
-
path: "/service.growth/initiatepayment",
|
|
67
|
-
requestStream: false,
|
|
68
|
-
responseStream: false,
|
|
69
|
-
requestSerialize: (value) => Buffer.from(initiatepayment_1.initiatepaymentrequest.encode(value).finish()),
|
|
70
|
-
requestDeserialize: (value) => initiatepayment_1.initiatepaymentrequest.decode(value),
|
|
71
|
-
responseSerialize: (value) => Buffer.from(initiatepayment_1.initiatepaymentresponse.encode(value).finish()),
|
|
72
|
-
responseDeserialize: (value) => initiatepayment_1.initiatepaymentresponse.decode(value),
|
|
73
|
-
},
|
|
74
|
-
getchrpaymentstatus: {
|
|
75
|
-
path: "/service.growth/getchrpaymentstatus",
|
|
76
|
-
requestStream: false,
|
|
77
|
-
responseStream: false,
|
|
78
|
-
requestSerialize: (value) => Buffer.from(getchrpaymentstatus_1.paymentstatusrequest.encode(value).finish()),
|
|
79
|
-
requestDeserialize: (value) => getchrpaymentstatus_1.paymentstatusrequest.decode(value),
|
|
80
|
-
responseSerialize: (value) => Buffer.from(getchrpaymentstatus_1.paymentstatusresponse.encode(value).finish()),
|
|
81
|
-
responseDeserialize: (value) => getchrpaymentstatus_1.paymentstatusresponse.decode(value),
|
|
82
|
-
},
|
|
83
23
|
};
|
|
84
24
|
exports.growthClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.growthService, "service.growth");
|
package/ts/rewards/getoffers.js
CHANGED
|
@@ -202,6 +202,7 @@ function createBaseOffer() {
|
|
|
202
202
|
stats: undefined,
|
|
203
203
|
validity: undefined,
|
|
204
204
|
sub_title: undefined,
|
|
205
|
+
offer_code: undefined,
|
|
205
206
|
};
|
|
206
207
|
}
|
|
207
208
|
exports.Offer = {
|
|
@@ -293,6 +294,9 @@ exports.Offer = {
|
|
|
293
294
|
if (message.sub_title !== undefined) {
|
|
294
295
|
writer.uint32(234).string(message.sub_title);
|
|
295
296
|
}
|
|
297
|
+
if (message.offer_code !== undefined) {
|
|
298
|
+
writer.uint32(242).string(message.offer_code);
|
|
299
|
+
}
|
|
296
300
|
return writer;
|
|
297
301
|
},
|
|
298
302
|
decode(input, length) {
|
|
@@ -476,6 +480,12 @@ exports.Offer = {
|
|
|
476
480
|
}
|
|
477
481
|
message.sub_title = reader.string();
|
|
478
482
|
continue;
|
|
483
|
+
case 30:
|
|
484
|
+
if (tag !== 242) {
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
message.offer_code = reader.string();
|
|
488
|
+
continue;
|
|
479
489
|
}
|
|
480
490
|
if ((tag & 7) === 4 || tag === 0) {
|
|
481
491
|
break;
|
|
@@ -515,6 +525,7 @@ exports.Offer = {
|
|
|
515
525
|
stats: isSet(object.stats) ? exports.Stats.fromJSON(object.stats) : undefined,
|
|
516
526
|
validity: isSet(object.validity) ? globalThis.String(object.validity) : undefined,
|
|
517
527
|
sub_title: isSet(object.sub_title) ? globalThis.String(object.sub_title) : undefined,
|
|
528
|
+
offer_code: isSet(object.offer_code) ? globalThis.String(object.offer_code) : undefined,
|
|
518
529
|
};
|
|
519
530
|
},
|
|
520
531
|
toJSON(message) {
|
|
@@ -606,6 +617,9 @@ exports.Offer = {
|
|
|
606
617
|
if (message.sub_title !== undefined) {
|
|
607
618
|
obj.sub_title = message.sub_title;
|
|
608
619
|
}
|
|
620
|
+
if (message.offer_code !== undefined) {
|
|
621
|
+
obj.offer_code = message.offer_code;
|
|
622
|
+
}
|
|
609
623
|
return obj;
|
|
610
624
|
},
|
|
611
625
|
create(base) {
|
|
@@ -644,6 +658,7 @@ exports.Offer = {
|
|
|
644
658
|
message.stats = (object.stats !== undefined && object.stats !== null) ? exports.Stats.fromPartial(object.stats) : undefined;
|
|
645
659
|
message.validity = object.validity ?? undefined;
|
|
646
660
|
message.sub_title = object.sub_title ?? undefined;
|
|
661
|
+
message.offer_code = object.offer_code ?? undefined;
|
|
647
662
|
return message;
|
|
648
663
|
},
|
|
649
664
|
};
|