@stashfin/grpc 1.2.667 → 1.2.668
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/rewards/getoffers.d.ts +5 -0
- package/ts/rewards/getoffers.js +83 -1
package/package.json
CHANGED
|
@@ -38,6 +38,8 @@ export interface Offer {
|
|
|
38
38
|
updated_at?: string | undefined;
|
|
39
39
|
created_by?: string | undefined;
|
|
40
40
|
stats?: Stats | undefined;
|
|
41
|
+
validity?: string | undefined;
|
|
42
|
+
sub_title?: string | undefined;
|
|
41
43
|
}
|
|
42
44
|
export interface Rule {
|
|
43
45
|
data: RulesData[];
|
|
@@ -52,6 +54,9 @@ export interface Metadata {
|
|
|
52
54
|
title?: string | undefined;
|
|
53
55
|
eligibilityCriteria?: string | undefined;
|
|
54
56
|
steps: string[];
|
|
57
|
+
tnc: string[];
|
|
58
|
+
eligibility: string[];
|
|
59
|
+
minimun_investment?: string | undefined;
|
|
55
60
|
}
|
|
56
61
|
export interface Stats {
|
|
57
62
|
count: number;
|
package/ts/rewards/getoffers.js
CHANGED
|
@@ -200,6 +200,8 @@ function createBaseOffer() {
|
|
|
200
200
|
updated_at: undefined,
|
|
201
201
|
created_by: undefined,
|
|
202
202
|
stats: undefined,
|
|
203
|
+
validity: undefined,
|
|
204
|
+
sub_title: undefined,
|
|
203
205
|
};
|
|
204
206
|
}
|
|
205
207
|
exports.Offer = {
|
|
@@ -285,6 +287,12 @@ exports.Offer = {
|
|
|
285
287
|
if (message.stats !== undefined) {
|
|
286
288
|
exports.Stats.encode(message.stats, writer.uint32(218).fork()).ldelim();
|
|
287
289
|
}
|
|
290
|
+
if (message.validity !== undefined) {
|
|
291
|
+
writer.uint32(226).string(message.validity);
|
|
292
|
+
}
|
|
293
|
+
if (message.sub_title !== undefined) {
|
|
294
|
+
writer.uint32(234).string(message.sub_title);
|
|
295
|
+
}
|
|
288
296
|
return writer;
|
|
289
297
|
},
|
|
290
298
|
decode(input, length) {
|
|
@@ -456,6 +464,18 @@ exports.Offer = {
|
|
|
456
464
|
}
|
|
457
465
|
message.stats = exports.Stats.decode(reader, reader.uint32());
|
|
458
466
|
continue;
|
|
467
|
+
case 28:
|
|
468
|
+
if (tag !== 226) {
|
|
469
|
+
break;
|
|
470
|
+
}
|
|
471
|
+
message.validity = reader.string();
|
|
472
|
+
continue;
|
|
473
|
+
case 29:
|
|
474
|
+
if (tag !== 234) {
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
message.sub_title = reader.string();
|
|
478
|
+
continue;
|
|
459
479
|
}
|
|
460
480
|
if ((tag & 7) === 4 || tag === 0) {
|
|
461
481
|
break;
|
|
@@ -493,6 +513,8 @@ exports.Offer = {
|
|
|
493
513
|
updated_at: isSet(object.updated_at) ? globalThis.String(object.updated_at) : undefined,
|
|
494
514
|
created_by: isSet(object.created_by) ? globalThis.String(object.created_by) : undefined,
|
|
495
515
|
stats: isSet(object.stats) ? exports.Stats.fromJSON(object.stats) : undefined,
|
|
516
|
+
validity: isSet(object.validity) ? globalThis.String(object.validity) : undefined,
|
|
517
|
+
sub_title: isSet(object.sub_title) ? globalThis.String(object.sub_title) : undefined,
|
|
496
518
|
};
|
|
497
519
|
},
|
|
498
520
|
toJSON(message) {
|
|
@@ -578,6 +600,12 @@ exports.Offer = {
|
|
|
578
600
|
if (message.stats !== undefined) {
|
|
579
601
|
obj.stats = exports.Stats.toJSON(message.stats);
|
|
580
602
|
}
|
|
603
|
+
if (message.validity !== undefined) {
|
|
604
|
+
obj.validity = message.validity;
|
|
605
|
+
}
|
|
606
|
+
if (message.sub_title !== undefined) {
|
|
607
|
+
obj.sub_title = message.sub_title;
|
|
608
|
+
}
|
|
581
609
|
return obj;
|
|
582
610
|
},
|
|
583
611
|
create(base) {
|
|
@@ -614,6 +642,8 @@ exports.Offer = {
|
|
|
614
642
|
message.updated_at = object.updated_at ?? undefined;
|
|
615
643
|
message.created_by = object.created_by ?? undefined;
|
|
616
644
|
message.stats = (object.stats !== undefined && object.stats !== null) ? exports.Stats.fromPartial(object.stats) : undefined;
|
|
645
|
+
message.validity = object.validity ?? undefined;
|
|
646
|
+
message.sub_title = object.sub_title ?? undefined;
|
|
617
647
|
return message;
|
|
618
648
|
},
|
|
619
649
|
};
|
|
@@ -748,7 +778,15 @@ exports.RulesData = {
|
|
|
748
778
|
},
|
|
749
779
|
};
|
|
750
780
|
function createBaseMetadata() {
|
|
751
|
-
return {
|
|
781
|
+
return {
|
|
782
|
+
icon: undefined,
|
|
783
|
+
title: undefined,
|
|
784
|
+
eligibilityCriteria: undefined,
|
|
785
|
+
steps: [],
|
|
786
|
+
tnc: [],
|
|
787
|
+
eligibility: [],
|
|
788
|
+
minimun_investment: undefined,
|
|
789
|
+
};
|
|
752
790
|
}
|
|
753
791
|
exports.Metadata = {
|
|
754
792
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -764,6 +802,15 @@ exports.Metadata = {
|
|
|
764
802
|
for (const v of message.steps) {
|
|
765
803
|
writer.uint32(34).string(v);
|
|
766
804
|
}
|
|
805
|
+
for (const v of message.tnc) {
|
|
806
|
+
writer.uint32(42).string(v);
|
|
807
|
+
}
|
|
808
|
+
for (const v of message.eligibility) {
|
|
809
|
+
writer.uint32(50).string(v);
|
|
810
|
+
}
|
|
811
|
+
if (message.minimun_investment !== undefined) {
|
|
812
|
+
writer.uint32(58).string(message.minimun_investment);
|
|
813
|
+
}
|
|
767
814
|
return writer;
|
|
768
815
|
},
|
|
769
816
|
decode(input, length) {
|
|
@@ -797,6 +844,24 @@ exports.Metadata = {
|
|
|
797
844
|
}
|
|
798
845
|
message.steps.push(reader.string());
|
|
799
846
|
continue;
|
|
847
|
+
case 5:
|
|
848
|
+
if (tag !== 42) {
|
|
849
|
+
break;
|
|
850
|
+
}
|
|
851
|
+
message.tnc.push(reader.string());
|
|
852
|
+
continue;
|
|
853
|
+
case 6:
|
|
854
|
+
if (tag !== 50) {
|
|
855
|
+
break;
|
|
856
|
+
}
|
|
857
|
+
message.eligibility.push(reader.string());
|
|
858
|
+
continue;
|
|
859
|
+
case 7:
|
|
860
|
+
if (tag !== 58) {
|
|
861
|
+
break;
|
|
862
|
+
}
|
|
863
|
+
message.minimun_investment = reader.string();
|
|
864
|
+
continue;
|
|
800
865
|
}
|
|
801
866
|
if ((tag & 7) === 4 || tag === 0) {
|
|
802
867
|
break;
|
|
@@ -813,6 +878,11 @@ exports.Metadata = {
|
|
|
813
878
|
? globalThis.String(object.eligibilityCriteria)
|
|
814
879
|
: undefined,
|
|
815
880
|
steps: globalThis.Array.isArray(object?.steps) ? object.steps.map((e) => globalThis.String(e)) : [],
|
|
881
|
+
tnc: globalThis.Array.isArray(object?.tnc) ? object.tnc.map((e) => globalThis.String(e)) : [],
|
|
882
|
+
eligibility: globalThis.Array.isArray(object?.eligibility)
|
|
883
|
+
? object.eligibility.map((e) => globalThis.String(e))
|
|
884
|
+
: [],
|
|
885
|
+
minimun_investment: isSet(object.minimun_investment) ? globalThis.String(object.minimun_investment) : undefined,
|
|
816
886
|
};
|
|
817
887
|
},
|
|
818
888
|
toJSON(message) {
|
|
@@ -829,6 +899,15 @@ exports.Metadata = {
|
|
|
829
899
|
if (message.steps?.length) {
|
|
830
900
|
obj.steps = message.steps;
|
|
831
901
|
}
|
|
902
|
+
if (message.tnc?.length) {
|
|
903
|
+
obj.tnc = message.tnc;
|
|
904
|
+
}
|
|
905
|
+
if (message.eligibility?.length) {
|
|
906
|
+
obj.eligibility = message.eligibility;
|
|
907
|
+
}
|
|
908
|
+
if (message.minimun_investment !== undefined) {
|
|
909
|
+
obj.minimun_investment = message.minimun_investment;
|
|
910
|
+
}
|
|
832
911
|
return obj;
|
|
833
912
|
},
|
|
834
913
|
create(base) {
|
|
@@ -840,6 +919,9 @@ exports.Metadata = {
|
|
|
840
919
|
message.title = object.title ?? undefined;
|
|
841
920
|
message.eligibilityCriteria = object.eligibilityCriteria ?? undefined;
|
|
842
921
|
message.steps = object.steps?.map((e) => e) || [];
|
|
922
|
+
message.tnc = object.tnc?.map((e) => e) || [];
|
|
923
|
+
message.eligibility = object.eligibility?.map((e) => e) || [];
|
|
924
|
+
message.minimun_investment = object.minimun_investment ?? undefined;
|
|
843
925
|
return message;
|
|
844
926
|
},
|
|
845
927
|
};
|