@stashfin/grpc 1.2.167 → 1.2.169

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.
Files changed (191) hide show
  1. package/package.json +1 -1
  2. package/ts/bureau/getbasicdetails.d.ts +0 -57
  3. package/ts/bureau/getbasicdetails.js +0 -341
  4. package/ts/bureau/getdemogs.d.ts +0 -113
  5. package/ts/bureau/getdemogs.js +0 -611
  6. package/ts/bureau/getreport.d.ts +0 -188
  7. package/ts/bureau/getreport.js +0 -1640
  8. package/ts/bureau.d.ts +0 -56
  9. package/ts/bureau.js +0 -44
  10. package/ts/colender/disburseLoan.d.ts +0 -44
  11. package/ts/colender/disburseLoan.js +0 -256
  12. package/ts/colender/forecloseLoan.d.ts +0 -41
  13. package/ts/colender/forecloseLoan.js +0 -205
  14. package/ts/colender/repayLoan.d.ts +0 -48
  15. package/ts/colender/repayLoan.js +0 -313
  16. package/ts/colender.d.ts +0 -56
  17. package/ts/colender.js +0 -44
  18. package/ts/customers/aa/getbanklist.d.ts +0 -48
  19. package/ts/customers/aa/getbanklist.js +0 -198
  20. package/ts/customers/aa/initiate.d.ts +0 -40
  21. package/ts/customers/aa/initiate.js +0 -209
  22. package/ts/customers/addaddress.d.ts +0 -50
  23. package/ts/customers/addaddress.js +0 -265
  24. package/ts/customers/addbankaccountdetails.d.ts +0 -37
  25. package/ts/customers/addbankaccountdetails.js +0 -147
  26. package/ts/customers/addfathersname.d.ts +0 -35
  27. package/ts/customers/addfathersname.js +0 -117
  28. package/ts/customers/addgstnumber.d.ts +0 -35
  29. package/ts/customers/addgstnumber.js +0 -117
  30. package/ts/customers/addmoredetails.d.ts +0 -60
  31. package/ts/customers/addmoredetails.js +0 -314
  32. package/ts/customers/addsuspendedcustomer.d.ts +0 -36
  33. package/ts/customers/addsuspendedcustomer.js +0 -133
  34. package/ts/customers/adduserapps.d.ts +0 -74
  35. package/ts/customers/adduserapps.js +0 -210
  36. package/ts/customers/bulksms.d.ts +0 -48
  37. package/ts/customers/bulksms.js +0 -201
  38. package/ts/customers/changempin.d.ts +0 -36
  39. package/ts/customers/changempin.js +0 -133
  40. package/ts/customers/createcustomerreference.d.ts +0 -43
  41. package/ts/customers/createcustomerreference.js +0 -226
  42. package/ts/customers/deleteprofile.d.ts +0 -35
  43. package/ts/customers/deleteprofile.js +0 -120
  44. package/ts/customers/disablempin.d.ts +0 -34
  45. package/ts/customers/disablempin.js +0 -104
  46. package/ts/customers/fetchrcprofile.d.ts +0 -45
  47. package/ts/customers/fetchrcprofile.js +0 -271
  48. package/ts/customers/forgotmpin.d.ts +0 -35
  49. package/ts/customers/forgotmpin.js +0 -117
  50. package/ts/customers/forgotmpinverify.d.ts +0 -36
  51. package/ts/customers/forgotmpinverify.js +0 -133
  52. package/ts/customers/getbankaccountdetails.d.ts +0 -37
  53. package/ts/customers/getbankaccountdetails.js +0 -148
  54. package/ts/customers/getbasicinfo.d.ts +0 -56
  55. package/ts/customers/getbasicinfo.js +0 -323
  56. package/ts/customers/getcities.d.ts +0 -47
  57. package/ts/customers/getcities.js +0 -183
  58. package/ts/customers/getcompanyaccdetails.d.ts +0 -37
  59. package/ts/customers/getcompanyaccdetails.js +0 -148
  60. package/ts/customers/getcustomerbyid.d.ts +0 -142
  61. package/ts/customers/getcustomerbyid.js +0 -1521
  62. package/ts/customers/getdashboard.d.ts +0 -88
  63. package/ts/customers/getdashboard.js +0 -574
  64. package/ts/customers/getdashboardmaincard.d.ts +0 -70
  65. package/ts/customers/getdashboardmaincard.js +0 -534
  66. package/ts/customers/getdocuments.d.ts +0 -46
  67. package/ts/customers/getdocuments.js +0 -174
  68. package/ts/customers/getlimit.d.ts +0 -37
  69. package/ts/customers/getlimit.js +0 -148
  70. package/ts/customers/getprofessionalinfo.d.ts +0 -54
  71. package/ts/customers/getprofessionalinfo.js +0 -286
  72. package/ts/customers/getprofile.d.ts +0 -54
  73. package/ts/customers/getprofile.js +0 -296
  74. package/ts/customers/getselfieetxnid.d.ts +0 -34
  75. package/ts/customers/getselfieetxnid.js +0 -104
  76. package/ts/customers/getstates.d.ts +0 -46
  77. package/ts/customers/getstates.js +0 -170
  78. package/ts/customers/getstep.d.ts +0 -69
  79. package/ts/customers/getstep.js +0 -406
  80. package/ts/customers/logout.d.ts +0 -34
  81. package/ts/customers/logout.js +0 -104
  82. package/ts/customers/profilebasic.d.ts +0 -40
  83. package/ts/customers/profilebasic.js +0 -189
  84. package/ts/customers/profileupdatetnc.d.ts +0 -35
  85. package/ts/customers/profileupdatetnc.js +0 -117
  86. package/ts/customers/savebasicdetails.d.ts +0 -47
  87. package/ts/customers/savebasicdetails.js +0 -185
  88. package/ts/customers/saveunlocklimit.d.ts +0 -34
  89. package/ts/customers/saveunlocklimit.js +0 -104
  90. package/ts/customers/sendotp.d.ts +0 -38
  91. package/ts/customers/sendotp.js +0 -165
  92. package/ts/customers/sendotptoemail.d.ts +0 -35
  93. package/ts/customers/sendotptoemail.js +0 -117
  94. package/ts/customers/setmpin.d.ts +0 -36
  95. package/ts/customers/setmpin.js +0 -133
  96. package/ts/customers/skipdlrcscreen.d.ts +0 -35
  97. package/ts/customers/skipdlrcscreen.js +0 -117
  98. package/ts/customers/stepstatic.d.ts +0 -66
  99. package/ts/customers/stepstatic.js +0 -354
  100. package/ts/customers/updatecustomerbyid.d.ts +0 -48
  101. package/ts/customers/updatecustomerbyid.js +0 -201
  102. package/ts/customers/updatedlnumber.d.ts +0 -35
  103. package/ts/customers/updatedlnumber.js +0 -119
  104. package/ts/customers/updatedob.d.ts +0 -35
  105. package/ts/customers/updatedob.js +0 -117
  106. package/ts/customers/updatelocstatus.d.ts +0 -36
  107. package/ts/customers/updatelocstatus.js +0 -133
  108. package/ts/customers/updatemobilesendotp.d.ts +0 -35
  109. package/ts/customers/updatemobilesendotp.js +0 -117
  110. package/ts/customers/updatemobileverifyotp.d.ts +0 -36
  111. package/ts/customers/updatemobileverifyotp.js +0 -133
  112. package/ts/customers/updateokyctxn.d.ts +0 -37
  113. package/ts/customers/updateokyctxn.js +0 -147
  114. package/ts/customers/updateselfieetxn.d.ts +0 -36
  115. package/ts/customers/updateselfieetxn.js +0 -133
  116. package/ts/customers/updatevehiclenumber.d.ts +0 -35
  117. package/ts/customers/updatevehiclenumber.js +0 -117
  118. package/ts/customers/uploaddocuments.d.ts +0 -37
  119. package/ts/customers/uploaddocuments.js +0 -172
  120. package/ts/customers/validatepan.d.ts +0 -45
  121. package/ts/customers/validatepan.js +0 -274
  122. package/ts/customers/verifympin.d.ts +0 -37
  123. package/ts/customers/verifympin.js +0 -149
  124. package/ts/customers/verifyotp.d.ts +0 -41
  125. package/ts/customers/verifyotp.js +0 -205
  126. package/ts/customers/verifyotptoemail.d.ts +0 -35
  127. package/ts/customers/verifyotptoemail.js +0 -117
  128. package/ts/customers.d.ts +0 -796
  129. package/ts/customers.js +0 -572
  130. package/ts/example.d.ts +0 -78
  131. package/ts/example.js +0 -199
  132. package/ts/growth/processchrpayment.d.ts +0 -40
  133. package/ts/growth/processchrpayment.js +0 -205
  134. package/ts/growth.d.ts +0 -28
  135. package/ts/growth.js +0 -24
  136. package/ts/loans/approveloan.d.ts +0 -81
  137. package/ts/loans/approveloan.js +0 -703
  138. package/ts/loans/banklist.d.ts +0 -37
  139. package/ts/loans/banklist.js +0 -148
  140. package/ts/loans/calculateemi.d.ts +0 -57
  141. package/ts/loans/calculateemi.js +0 -340
  142. package/ts/loans/creditlimit.d.ts +0 -51
  143. package/ts/loans/creditlimit.js +0 -381
  144. package/ts/loans/futurepaymentmoredetails.d.ts +0 -50
  145. package/ts/loans/futurepaymentmoredetails.js +0 -230
  146. package/ts/loans/getbilldetails.d.ts +0 -38
  147. package/ts/loans/getbilldetails.js +0 -161
  148. package/ts/loans/getcustomerloanstatus.d.ts +0 -34
  149. package/ts/loans/getcustomerloanstatus.js +0 -104
  150. package/ts/loans/getloanbyid.d.ts +0 -48
  151. package/ts/loans/getloanbyid.js +0 -318
  152. package/ts/loans/getnextdueamount.d.ts +0 -34
  153. package/ts/loans/getnextdueamount.js +0 -104
  154. package/ts/loans/getpendingemiamount.d.ts +0 -34
  155. package/ts/loans/getpendingemiamount.js +0 -104
  156. package/ts/loans/getsummarystaticfields.d.ts +0 -80
  157. package/ts/loans/getsummarystaticfields.js +0 -700
  158. package/ts/loans/loansummary.d.ts +0 -66
  159. package/ts/loans/loansummary.js +0 -593
  160. package/ts/loans/paymentallocation.d.ts +0 -38
  161. package/ts/loans/paymentallocation.js +0 -161
  162. package/ts/loans/paymenthistory.d.ts +0 -47
  163. package/ts/loans/paymenthistory.js +0 -188
  164. package/ts/loans/restructureloan.d.ts +0 -36
  165. package/ts/loans/restructureloan.js +0 -133
  166. package/ts/loans/sendemail.d.ts +0 -35
  167. package/ts/loans/sendemail.js +0 -117
  168. package/ts/loans/sendnocemail.d.ts +0 -35
  169. package/ts/loans/sendnocemail.js +0 -117
  170. package/ts/loans/transactionlist.d.ts +0 -52
  171. package/ts/loans/transactionlist.js +0 -257
  172. package/ts/loans/updateinstallments.d.ts +0 -42
  173. package/ts/loans/updateinstallments.js +0 -226
  174. package/ts/loans/updateloan.d.ts +0 -37
  175. package/ts/loans/updateloan.js +0 -147
  176. package/ts/loans.d.ts +0 -294
  177. package/ts/loans.js +0 -214
  178. package/ts/payments.d.ts +0 -239
  179. package/ts/payments.js +0 -1117
  180. package/ts/stashcash/creditsc.d.ts +0 -54
  181. package/ts/stashcash/creditsc.js +0 -301
  182. package/ts/stashcash/debitsc.d.ts +0 -59
  183. package/ts/stashcash/debitsc.js +0 -380
  184. package/ts/stashcash/getscbalance.d.ts +0 -53
  185. package/ts/stashcash/getscbalance.js +0 -293
  186. package/ts/stashcash/getschistory.d.ts +0 -73
  187. package/ts/stashcash/getschistory.js +0 -479
  188. package/ts/stashcash/reversesc.d.ts +0 -52
  189. package/ts/stashcash/reversesc.js +0 -273
  190. package/ts/stashcash.d.ts +0 -84
  191. package/ts/stashcash.js +0 -64
@@ -1,88 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- export declare const protobufPackage = "customers.getdashboard";
3
- export interface getDashboardRequest {
4
- }
5
- export interface getDashboardResponse {
6
- blocks: Block[];
7
- }
8
- export interface Block {
9
- block_name: string;
10
- block_title: string;
11
- block_code: string;
12
- block_data: BlockData[];
13
- }
14
- export interface BlockData {
15
- text: string;
16
- sub_text: string;
17
- image_url: string;
18
- video_url: string;
19
- video_length: number;
20
- action_url: string;
21
- landing_page: string;
22
- api_mode: string;
23
- app_version: string;
24
- old_customers: boolean;
25
- is_new: boolean;
26
- action_type: string;
27
- color1: string;
28
- color2: string;
29
- image_trailing: string;
30
- tag: Tag | undefined;
31
- overlay_image: string;
32
- }
33
- export interface Tag {
34
- text: string;
35
- bg_color: string;
36
- text_color: string;
37
- }
38
- export declare const getDashboardRequest: {
39
- encode(_: getDashboardRequest, writer?: _m0.Writer): _m0.Writer;
40
- decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardRequest;
41
- fromJSON(_: any): getDashboardRequest;
42
- toJSON(_: getDashboardRequest): unknown;
43
- create<I extends Exact<DeepPartial<getDashboardRequest>, I>>(base?: I): getDashboardRequest;
44
- fromPartial<I extends Exact<DeepPartial<getDashboardRequest>, I>>(_: I): getDashboardRequest;
45
- };
46
- export declare const getDashboardResponse: {
47
- encode(message: getDashboardResponse, writer?: _m0.Writer): _m0.Writer;
48
- decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardResponse;
49
- fromJSON(object: any): getDashboardResponse;
50
- toJSON(message: getDashboardResponse): unknown;
51
- create<I extends Exact<DeepPartial<getDashboardResponse>, I>>(base?: I): getDashboardResponse;
52
- fromPartial<I extends Exact<DeepPartial<getDashboardResponse>, I>>(object: I): getDashboardResponse;
53
- };
54
- export declare const Block: {
55
- encode(message: Block, writer?: _m0.Writer): _m0.Writer;
56
- decode(input: _m0.Reader | Uint8Array, length?: number): Block;
57
- fromJSON(object: any): Block;
58
- toJSON(message: Block): unknown;
59
- create<I extends Exact<DeepPartial<Block>, I>>(base?: I): Block;
60
- fromPartial<I extends Exact<DeepPartial<Block>, I>>(object: I): Block;
61
- };
62
- export declare const BlockData: {
63
- encode(message: BlockData, writer?: _m0.Writer): _m0.Writer;
64
- decode(input: _m0.Reader | Uint8Array, length?: number): BlockData;
65
- fromJSON(object: any): BlockData;
66
- toJSON(message: BlockData): unknown;
67
- create<I extends Exact<DeepPartial<BlockData>, I>>(base?: I): BlockData;
68
- fromPartial<I extends Exact<DeepPartial<BlockData>, I>>(object: I): BlockData;
69
- };
70
- export declare const Tag: {
71
- encode(message: Tag, writer?: _m0.Writer): _m0.Writer;
72
- decode(input: _m0.Reader | Uint8Array, length?: number): Tag;
73
- fromJSON(object: any): Tag;
74
- toJSON(message: Tag): unknown;
75
- create<I extends Exact<DeepPartial<Tag>, I>>(base?: I): Tag;
76
- fromPartial<I extends Exact<DeepPartial<Tag>, I>>(object: I): Tag;
77
- };
78
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
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 {} ? {
80
- [K in keyof T]?: DeepPartial<T[K]>;
81
- } : Partial<T>;
82
- type KeysOfUnion<T> = T extends T ? keyof T : never;
83
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
84
- [K in keyof P]: Exact<P[K], I[K]>;
85
- } & {
86
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
87
- };
88
- export {};
@@ -1,574 +0,0 @@
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.27.4
6
- // source: customers/getdashboard.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.Tag = exports.BlockData = exports.Block = exports.getDashboardResponse = exports.getDashboardRequest = exports.protobufPackage = void 0;
12
- /* eslint-disable */
13
- const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- exports.protobufPackage = "customers.getdashboard";
15
- function createBasegetDashboardRequest() {
16
- return {};
17
- }
18
- exports.getDashboardRequest = {
19
- encode(_, writer = minimal_1.default.Writer.create()) {
20
- return writer;
21
- },
22
- decode(input, length) {
23
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
- let end = length === undefined ? reader.len : reader.pos + length;
25
- const message = createBasegetDashboardRequest();
26
- while (reader.pos < end) {
27
- const tag = reader.uint32();
28
- switch (tag >>> 3) {
29
- }
30
- if ((tag & 7) === 4 || tag === 0) {
31
- break;
32
- }
33
- reader.skipType(tag & 7);
34
- }
35
- return message;
36
- },
37
- fromJSON(_) {
38
- return {};
39
- },
40
- toJSON(_) {
41
- const obj = {};
42
- return obj;
43
- },
44
- create(base) {
45
- return exports.getDashboardRequest.fromPartial(base ?? {});
46
- },
47
- fromPartial(_) {
48
- const message = createBasegetDashboardRequest();
49
- return message;
50
- },
51
- };
52
- function createBasegetDashboardResponse() {
53
- return { blocks: [] };
54
- }
55
- exports.getDashboardResponse = {
56
- encode(message, writer = minimal_1.default.Writer.create()) {
57
- for (const v of message.blocks) {
58
- exports.Block.encode(v, writer.uint32(10).fork()).ldelim();
59
- }
60
- return writer;
61
- },
62
- decode(input, length) {
63
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
64
- let end = length === undefined ? reader.len : reader.pos + length;
65
- const message = createBasegetDashboardResponse();
66
- while (reader.pos < end) {
67
- const tag = reader.uint32();
68
- switch (tag >>> 3) {
69
- case 1:
70
- if (tag !== 10) {
71
- break;
72
- }
73
- message.blocks.push(exports.Block.decode(reader, reader.uint32()));
74
- continue;
75
- }
76
- if ((tag & 7) === 4 || tag === 0) {
77
- break;
78
- }
79
- reader.skipType(tag & 7);
80
- }
81
- return message;
82
- },
83
- fromJSON(object) {
84
- return { blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => exports.Block.fromJSON(e)) : [] };
85
- },
86
- toJSON(message) {
87
- const obj = {};
88
- if (message.blocks?.length) {
89
- obj.blocks = message.blocks.map((e) => exports.Block.toJSON(e));
90
- }
91
- return obj;
92
- },
93
- create(base) {
94
- return exports.getDashboardResponse.fromPartial(base ?? {});
95
- },
96
- fromPartial(object) {
97
- const message = createBasegetDashboardResponse();
98
- message.blocks = object.blocks?.map((e) => exports.Block.fromPartial(e)) || [];
99
- return message;
100
- },
101
- };
102
- function createBaseBlock() {
103
- return { block_name: "", block_title: "", block_code: "", block_data: [] };
104
- }
105
- exports.Block = {
106
- encode(message, writer = minimal_1.default.Writer.create()) {
107
- if (message.block_name !== "") {
108
- writer.uint32(10).string(message.block_name);
109
- }
110
- if (message.block_title !== "") {
111
- writer.uint32(18).string(message.block_title);
112
- }
113
- if (message.block_code !== "") {
114
- writer.uint32(26).string(message.block_code);
115
- }
116
- for (const v of message.block_data) {
117
- exports.BlockData.encode(v, writer.uint32(34).fork()).ldelim();
118
- }
119
- return writer;
120
- },
121
- decode(input, length) {
122
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
123
- let end = length === undefined ? reader.len : reader.pos + length;
124
- const message = createBaseBlock();
125
- while (reader.pos < end) {
126
- const tag = reader.uint32();
127
- switch (tag >>> 3) {
128
- case 1:
129
- if (tag !== 10) {
130
- break;
131
- }
132
- message.block_name = reader.string();
133
- continue;
134
- case 2:
135
- if (tag !== 18) {
136
- break;
137
- }
138
- message.block_title = reader.string();
139
- continue;
140
- case 3:
141
- if (tag !== 26) {
142
- break;
143
- }
144
- message.block_code = reader.string();
145
- continue;
146
- case 4:
147
- if (tag !== 34) {
148
- break;
149
- }
150
- message.block_data.push(exports.BlockData.decode(reader, reader.uint32()));
151
- continue;
152
- }
153
- if ((tag & 7) === 4 || tag === 0) {
154
- break;
155
- }
156
- reader.skipType(tag & 7);
157
- }
158
- return message;
159
- },
160
- fromJSON(object) {
161
- return {
162
- block_name: isSet(object.block_name) ? globalThis.String(object.block_name) : "",
163
- block_title: isSet(object.block_title) ? globalThis.String(object.block_title) : "",
164
- block_code: isSet(object.block_code) ? globalThis.String(object.block_code) : "",
165
- block_data: globalThis.Array.isArray(object?.block_data)
166
- ? object.block_data.map((e) => exports.BlockData.fromJSON(e))
167
- : [],
168
- };
169
- },
170
- toJSON(message) {
171
- const obj = {};
172
- if (message.block_name !== "") {
173
- obj.block_name = message.block_name;
174
- }
175
- if (message.block_title !== "") {
176
- obj.block_title = message.block_title;
177
- }
178
- if (message.block_code !== "") {
179
- obj.block_code = message.block_code;
180
- }
181
- if (message.block_data?.length) {
182
- obj.block_data = message.block_data.map((e) => exports.BlockData.toJSON(e));
183
- }
184
- return obj;
185
- },
186
- create(base) {
187
- return exports.Block.fromPartial(base ?? {});
188
- },
189
- fromPartial(object) {
190
- const message = createBaseBlock();
191
- message.block_name = object.block_name ?? "";
192
- message.block_title = object.block_title ?? "";
193
- message.block_code = object.block_code ?? "";
194
- message.block_data = object.block_data?.map((e) => exports.BlockData.fromPartial(e)) || [];
195
- return message;
196
- },
197
- };
198
- function createBaseBlockData() {
199
- return {
200
- text: "",
201
- sub_text: "",
202
- image_url: "",
203
- video_url: "",
204
- video_length: 0,
205
- action_url: "",
206
- landing_page: "",
207
- api_mode: "",
208
- app_version: "",
209
- old_customers: false,
210
- is_new: false,
211
- action_type: "",
212
- color1: "",
213
- color2: "",
214
- image_trailing: "",
215
- tag: undefined,
216
- overlay_image: "",
217
- };
218
- }
219
- exports.BlockData = {
220
- encode(message, writer = minimal_1.default.Writer.create()) {
221
- if (message.text !== "") {
222
- writer.uint32(10).string(message.text);
223
- }
224
- if (message.sub_text !== "") {
225
- writer.uint32(18).string(message.sub_text);
226
- }
227
- if (message.image_url !== "") {
228
- writer.uint32(26).string(message.image_url);
229
- }
230
- if (message.video_url !== "") {
231
- writer.uint32(34).string(message.video_url);
232
- }
233
- if (message.video_length !== 0) {
234
- writer.uint32(40).int32(message.video_length);
235
- }
236
- if (message.action_url !== "") {
237
- writer.uint32(50).string(message.action_url);
238
- }
239
- if (message.landing_page !== "") {
240
- writer.uint32(58).string(message.landing_page);
241
- }
242
- if (message.api_mode !== "") {
243
- writer.uint32(66).string(message.api_mode);
244
- }
245
- if (message.app_version !== "") {
246
- writer.uint32(74).string(message.app_version);
247
- }
248
- if (message.old_customers !== false) {
249
- writer.uint32(80).bool(message.old_customers);
250
- }
251
- if (message.is_new !== false) {
252
- writer.uint32(88).bool(message.is_new);
253
- }
254
- if (message.action_type !== "") {
255
- writer.uint32(98).string(message.action_type);
256
- }
257
- if (message.color1 !== "") {
258
- writer.uint32(106).string(message.color1);
259
- }
260
- if (message.color2 !== "") {
261
- writer.uint32(114).string(message.color2);
262
- }
263
- if (message.image_trailing !== "") {
264
- writer.uint32(122).string(message.image_trailing);
265
- }
266
- if (message.tag !== undefined) {
267
- exports.Tag.encode(message.tag, writer.uint32(130).fork()).ldelim();
268
- }
269
- if (message.overlay_image !== "") {
270
- writer.uint32(138).string(message.overlay_image);
271
- }
272
- return writer;
273
- },
274
- decode(input, length) {
275
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
276
- let end = length === undefined ? reader.len : reader.pos + length;
277
- const message = createBaseBlockData();
278
- while (reader.pos < end) {
279
- const tag = reader.uint32();
280
- switch (tag >>> 3) {
281
- case 1:
282
- if (tag !== 10) {
283
- break;
284
- }
285
- message.text = reader.string();
286
- continue;
287
- case 2:
288
- if (tag !== 18) {
289
- break;
290
- }
291
- message.sub_text = reader.string();
292
- continue;
293
- case 3:
294
- if (tag !== 26) {
295
- break;
296
- }
297
- message.image_url = reader.string();
298
- continue;
299
- case 4:
300
- if (tag !== 34) {
301
- break;
302
- }
303
- message.video_url = reader.string();
304
- continue;
305
- case 5:
306
- if (tag !== 40) {
307
- break;
308
- }
309
- message.video_length = reader.int32();
310
- continue;
311
- case 6:
312
- if (tag !== 50) {
313
- break;
314
- }
315
- message.action_url = reader.string();
316
- continue;
317
- case 7:
318
- if (tag !== 58) {
319
- break;
320
- }
321
- message.landing_page = reader.string();
322
- continue;
323
- case 8:
324
- if (tag !== 66) {
325
- break;
326
- }
327
- message.api_mode = reader.string();
328
- continue;
329
- case 9:
330
- if (tag !== 74) {
331
- break;
332
- }
333
- message.app_version = reader.string();
334
- continue;
335
- case 10:
336
- if (tag !== 80) {
337
- break;
338
- }
339
- message.old_customers = reader.bool();
340
- continue;
341
- case 11:
342
- if (tag !== 88) {
343
- break;
344
- }
345
- message.is_new = reader.bool();
346
- continue;
347
- case 12:
348
- if (tag !== 98) {
349
- break;
350
- }
351
- message.action_type = reader.string();
352
- continue;
353
- case 13:
354
- if (tag !== 106) {
355
- break;
356
- }
357
- message.color1 = reader.string();
358
- continue;
359
- case 14:
360
- if (tag !== 114) {
361
- break;
362
- }
363
- message.color2 = reader.string();
364
- continue;
365
- case 15:
366
- if (tag !== 122) {
367
- break;
368
- }
369
- message.image_trailing = reader.string();
370
- continue;
371
- case 16:
372
- if (tag !== 130) {
373
- break;
374
- }
375
- message.tag = exports.Tag.decode(reader, reader.uint32());
376
- continue;
377
- case 17:
378
- if (tag !== 138) {
379
- break;
380
- }
381
- message.overlay_image = reader.string();
382
- continue;
383
- }
384
- if ((tag & 7) === 4 || tag === 0) {
385
- break;
386
- }
387
- reader.skipType(tag & 7);
388
- }
389
- return message;
390
- },
391
- fromJSON(object) {
392
- return {
393
- text: isSet(object.text) ? globalThis.String(object.text) : "",
394
- sub_text: isSet(object.sub_text) ? globalThis.String(object.sub_text) : "",
395
- image_url: isSet(object.image_url) ? globalThis.String(object.image_url) : "",
396
- video_url: isSet(object.video_url) ? globalThis.String(object.video_url) : "",
397
- video_length: isSet(object.video_length) ? globalThis.Number(object.video_length) : 0,
398
- action_url: isSet(object.action_url) ? globalThis.String(object.action_url) : "",
399
- landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) : "",
400
- api_mode: isSet(object.api_mode) ? globalThis.String(object.api_mode) : "",
401
- app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : "",
402
- old_customers: isSet(object.old_customers) ? globalThis.Boolean(object.old_customers) : false,
403
- is_new: isSet(object.is_new) ? globalThis.Boolean(object.is_new) : false,
404
- action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
405
- color1: isSet(object.color1) ? globalThis.String(object.color1) : "",
406
- color2: isSet(object.color2) ? globalThis.String(object.color2) : "",
407
- image_trailing: isSet(object.image_trailing) ? globalThis.String(object.image_trailing) : "",
408
- tag: isSet(object.tag) ? exports.Tag.fromJSON(object.tag) : undefined,
409
- overlay_image: isSet(object.overlay_image) ? globalThis.String(object.overlay_image) : "",
410
- };
411
- },
412
- toJSON(message) {
413
- const obj = {};
414
- if (message.text !== "") {
415
- obj.text = message.text;
416
- }
417
- if (message.sub_text !== "") {
418
- obj.sub_text = message.sub_text;
419
- }
420
- if (message.image_url !== "") {
421
- obj.image_url = message.image_url;
422
- }
423
- if (message.video_url !== "") {
424
- obj.video_url = message.video_url;
425
- }
426
- if (message.video_length !== 0) {
427
- obj.video_length = Math.round(message.video_length);
428
- }
429
- if (message.action_url !== "") {
430
- obj.action_url = message.action_url;
431
- }
432
- if (message.landing_page !== "") {
433
- obj.landing_page = message.landing_page;
434
- }
435
- if (message.api_mode !== "") {
436
- obj.api_mode = message.api_mode;
437
- }
438
- if (message.app_version !== "") {
439
- obj.app_version = message.app_version;
440
- }
441
- if (message.old_customers !== false) {
442
- obj.old_customers = message.old_customers;
443
- }
444
- if (message.is_new !== false) {
445
- obj.is_new = message.is_new;
446
- }
447
- if (message.action_type !== "") {
448
- obj.action_type = message.action_type;
449
- }
450
- if (message.color1 !== "") {
451
- obj.color1 = message.color1;
452
- }
453
- if (message.color2 !== "") {
454
- obj.color2 = message.color2;
455
- }
456
- if (message.image_trailing !== "") {
457
- obj.image_trailing = message.image_trailing;
458
- }
459
- if (message.tag !== undefined) {
460
- obj.tag = exports.Tag.toJSON(message.tag);
461
- }
462
- if (message.overlay_image !== "") {
463
- obj.overlay_image = message.overlay_image;
464
- }
465
- return obj;
466
- },
467
- create(base) {
468
- return exports.BlockData.fromPartial(base ?? {});
469
- },
470
- fromPartial(object) {
471
- const message = createBaseBlockData();
472
- message.text = object.text ?? "";
473
- message.sub_text = object.sub_text ?? "";
474
- message.image_url = object.image_url ?? "";
475
- message.video_url = object.video_url ?? "";
476
- message.video_length = object.video_length ?? 0;
477
- message.action_url = object.action_url ?? "";
478
- message.landing_page = object.landing_page ?? "";
479
- message.api_mode = object.api_mode ?? "";
480
- message.app_version = object.app_version ?? "";
481
- message.old_customers = object.old_customers ?? false;
482
- message.is_new = object.is_new ?? false;
483
- message.action_type = object.action_type ?? "";
484
- message.color1 = object.color1 ?? "";
485
- message.color2 = object.color2 ?? "";
486
- message.image_trailing = object.image_trailing ?? "";
487
- message.tag = (object.tag !== undefined && object.tag !== null) ? exports.Tag.fromPartial(object.tag) : undefined;
488
- message.overlay_image = object.overlay_image ?? "";
489
- return message;
490
- },
491
- };
492
- function createBaseTag() {
493
- return { text: "", bg_color: "", text_color: "" };
494
- }
495
- exports.Tag = {
496
- encode(message, writer = minimal_1.default.Writer.create()) {
497
- if (message.text !== "") {
498
- writer.uint32(10).string(message.text);
499
- }
500
- if (message.bg_color !== "") {
501
- writer.uint32(18).string(message.bg_color);
502
- }
503
- if (message.text_color !== "") {
504
- writer.uint32(26).string(message.text_color);
505
- }
506
- return writer;
507
- },
508
- decode(input, length) {
509
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
510
- let end = length === undefined ? reader.len : reader.pos + length;
511
- const message = createBaseTag();
512
- while (reader.pos < end) {
513
- const tag = reader.uint32();
514
- switch (tag >>> 3) {
515
- case 1:
516
- if (tag !== 10) {
517
- break;
518
- }
519
- message.text = reader.string();
520
- continue;
521
- case 2:
522
- if (tag !== 18) {
523
- break;
524
- }
525
- message.bg_color = reader.string();
526
- continue;
527
- case 3:
528
- if (tag !== 26) {
529
- break;
530
- }
531
- message.text_color = reader.string();
532
- continue;
533
- }
534
- if ((tag & 7) === 4 || tag === 0) {
535
- break;
536
- }
537
- reader.skipType(tag & 7);
538
- }
539
- return message;
540
- },
541
- fromJSON(object) {
542
- return {
543
- text: isSet(object.text) ? globalThis.String(object.text) : "",
544
- bg_color: isSet(object.bg_color) ? globalThis.String(object.bg_color) : "",
545
- text_color: isSet(object.text_color) ? globalThis.String(object.text_color) : "",
546
- };
547
- },
548
- toJSON(message) {
549
- const obj = {};
550
- if (message.text !== "") {
551
- obj.text = message.text;
552
- }
553
- if (message.bg_color !== "") {
554
- obj.bg_color = message.bg_color;
555
- }
556
- if (message.text_color !== "") {
557
- obj.text_color = message.text_color;
558
- }
559
- return obj;
560
- },
561
- create(base) {
562
- return exports.Tag.fromPartial(base ?? {});
563
- },
564
- fromPartial(object) {
565
- const message = createBaseTag();
566
- message.text = object.text ?? "";
567
- message.bg_color = object.bg_color ?? "";
568
- message.text_color = object.text_color ?? "";
569
- return message;
570
- },
571
- };
572
- function isSet(value) {
573
- return value !== null && value !== undefined;
574
- }