@stashfin/grpc 1.2.367 → 1.2.368
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/customers/accidentprotectionplan.d.ts +52 -0
- package/ts/customers/accidentprotectionplan.js +256 -0
- package/ts/customers/enach/updatetxnstatus.d.ts +4 -1
- package/ts/customers/enach/updatetxnstatus.js +64 -8
- package/ts/customers/restoreaccount.d.ts +36 -0
- package/ts/customers/{skipdlrcscreen.js → restoreaccount.js} +46 -30
- package/ts/customers/verifyotp.d.ts +1 -0
- package/ts/customers/verifyotp.js +15 -1
- package/ts/customers.d.ts +28 -0
- package/ts/customers.js +20 -0
- package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
- package/ts/{customers/verifyemail.js → loans/getvirtualaccountnumber.js} +32 -32
- package/ts/customers/getrpdlink.d.ts +0 -40
- package/ts/customers/getrpdlink.js +0 -190
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/skipdlrcscreen.d.ts +0 -35
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/google/protobuf/timestamp.d.ts +0 -127
- package/ts/google/protobuf/timestamp.js +0 -97
package/package.json
CHANGED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.accidentprotectionplan";
|
|
3
|
+
export interface Benefit {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
}
|
|
8
|
+
export interface getPocketPersonalAccidentProtectionPlanRequest {
|
|
9
|
+
}
|
|
10
|
+
export interface getPocketPersonalAccidentProtectionPlanResponse {
|
|
11
|
+
title: string;
|
|
12
|
+
benefits: Benefit[];
|
|
13
|
+
terms_description: string;
|
|
14
|
+
terms_link: string;
|
|
15
|
+
button_name: string;
|
|
16
|
+
status: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Benefit: {
|
|
19
|
+
encode(message: Benefit, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Benefit;
|
|
21
|
+
fromJSON(object: any): Benefit;
|
|
22
|
+
toJSON(message: Benefit): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<Benefit>, I>>(base?: I): Benefit;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<Benefit>, I>>(object: I): Benefit;
|
|
25
|
+
};
|
|
26
|
+
export declare const getPocketPersonalAccidentProtectionPlanRequest: {
|
|
27
|
+
encode(_: getPocketPersonalAccidentProtectionPlanRequest, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getPocketPersonalAccidentProtectionPlanRequest;
|
|
29
|
+
fromJSON(_: any): getPocketPersonalAccidentProtectionPlanRequest;
|
|
30
|
+
toJSON(_: getPocketPersonalAccidentProtectionPlanRequest): unknown;
|
|
31
|
+
create<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanRequest>, I>>(base?: I): getPocketPersonalAccidentProtectionPlanRequest;
|
|
32
|
+
fromPartial<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanRequest>, I>>(_: I): getPocketPersonalAccidentProtectionPlanRequest;
|
|
33
|
+
};
|
|
34
|
+
export declare const getPocketPersonalAccidentProtectionPlanResponse: {
|
|
35
|
+
encode(message: getPocketPersonalAccidentProtectionPlanResponse, writer?: _m0.Writer): _m0.Writer;
|
|
36
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getPocketPersonalAccidentProtectionPlanResponse;
|
|
37
|
+
fromJSON(object: any): getPocketPersonalAccidentProtectionPlanResponse;
|
|
38
|
+
toJSON(message: getPocketPersonalAccidentProtectionPlanResponse): unknown;
|
|
39
|
+
create<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanResponse>, I>>(base?: I): getPocketPersonalAccidentProtectionPlanResponse;
|
|
40
|
+
fromPartial<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanResponse>, I>>(object: I): getPocketPersonalAccidentProtectionPlanResponse;
|
|
41
|
+
};
|
|
42
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
43
|
+
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 {} ? {
|
|
44
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
45
|
+
} : Partial<T>;
|
|
46
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
47
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
48
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
49
|
+
} & {
|
|
50
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
51
|
+
};
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,256 @@
|
|
|
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.28.3
|
|
6
|
+
// source: customers/accidentprotectionplan.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.getPocketPersonalAccidentProtectionPlanResponse = exports.getPocketPersonalAccidentProtectionPlanRequest = exports.Benefit = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.accidentprotectionplan";
|
|
15
|
+
function createBaseBenefit() {
|
|
16
|
+
return { title: "", description: "", icon: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.Benefit = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.title !== "") {
|
|
21
|
+
writer.uint32(10).string(message.title);
|
|
22
|
+
}
|
|
23
|
+
if (message.description !== "") {
|
|
24
|
+
writer.uint32(18).string(message.description);
|
|
25
|
+
}
|
|
26
|
+
if (message.icon !== "") {
|
|
27
|
+
writer.uint32(26).string(message.icon);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseBenefit();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 10) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.title = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.description = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.icon = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromJSON(object) {
|
|
65
|
+
return {
|
|
66
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
67
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
68
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.title !== "") {
|
|
74
|
+
obj.title = message.title;
|
|
75
|
+
}
|
|
76
|
+
if (message.description !== "") {
|
|
77
|
+
obj.description = message.description;
|
|
78
|
+
}
|
|
79
|
+
if (message.icon !== "") {
|
|
80
|
+
obj.icon = message.icon;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.Benefit.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseBenefit();
|
|
89
|
+
message.title = object.title ?? "";
|
|
90
|
+
message.description = object.description ?? "";
|
|
91
|
+
message.icon = object.icon ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBasegetPocketPersonalAccidentProtectionPlanRequest() {
|
|
96
|
+
return {};
|
|
97
|
+
}
|
|
98
|
+
exports.getPocketPersonalAccidentProtectionPlanRequest = {
|
|
99
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
return writer;
|
|
101
|
+
},
|
|
102
|
+
decode(input, length) {
|
|
103
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
104
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
105
|
+
const message = createBasegetPocketPersonalAccidentProtectionPlanRequest();
|
|
106
|
+
while (reader.pos < end) {
|
|
107
|
+
const tag = reader.uint32();
|
|
108
|
+
switch (tag >>> 3) {
|
|
109
|
+
}
|
|
110
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
reader.skipType(tag & 7);
|
|
114
|
+
}
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
fromJSON(_) {
|
|
118
|
+
return {};
|
|
119
|
+
},
|
|
120
|
+
toJSON(_) {
|
|
121
|
+
const obj = {};
|
|
122
|
+
return obj;
|
|
123
|
+
},
|
|
124
|
+
create(base) {
|
|
125
|
+
return exports.getPocketPersonalAccidentProtectionPlanRequest.fromPartial(base ?? {});
|
|
126
|
+
},
|
|
127
|
+
fromPartial(_) {
|
|
128
|
+
const message = createBasegetPocketPersonalAccidentProtectionPlanRequest();
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
function createBasegetPocketPersonalAccidentProtectionPlanResponse() {
|
|
133
|
+
return { title: "", benefits: [], terms_description: "", terms_link: "", button_name: "", status: "" };
|
|
134
|
+
}
|
|
135
|
+
exports.getPocketPersonalAccidentProtectionPlanResponse = {
|
|
136
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
137
|
+
if (message.title !== "") {
|
|
138
|
+
writer.uint32(10).string(message.title);
|
|
139
|
+
}
|
|
140
|
+
for (const v of message.benefits) {
|
|
141
|
+
exports.Benefit.encode(v, writer.uint32(18).fork()).ldelim();
|
|
142
|
+
}
|
|
143
|
+
if (message.terms_description !== "") {
|
|
144
|
+
writer.uint32(26).string(message.terms_description);
|
|
145
|
+
}
|
|
146
|
+
if (message.terms_link !== "") {
|
|
147
|
+
writer.uint32(34).string(message.terms_link);
|
|
148
|
+
}
|
|
149
|
+
if (message.button_name !== "") {
|
|
150
|
+
writer.uint32(42).string(message.button_name);
|
|
151
|
+
}
|
|
152
|
+
if (message.status !== "") {
|
|
153
|
+
writer.uint32(50).string(message.status);
|
|
154
|
+
}
|
|
155
|
+
return writer;
|
|
156
|
+
},
|
|
157
|
+
decode(input, length) {
|
|
158
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
159
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
160
|
+
const message = createBasegetPocketPersonalAccidentProtectionPlanResponse();
|
|
161
|
+
while (reader.pos < end) {
|
|
162
|
+
const tag = reader.uint32();
|
|
163
|
+
switch (tag >>> 3) {
|
|
164
|
+
case 1:
|
|
165
|
+
if (tag !== 10) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
message.title = reader.string();
|
|
169
|
+
continue;
|
|
170
|
+
case 2:
|
|
171
|
+
if (tag !== 18) {
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
message.benefits.push(exports.Benefit.decode(reader, reader.uint32()));
|
|
175
|
+
continue;
|
|
176
|
+
case 3:
|
|
177
|
+
if (tag !== 26) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
message.terms_description = reader.string();
|
|
181
|
+
continue;
|
|
182
|
+
case 4:
|
|
183
|
+
if (tag !== 34) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
message.terms_link = reader.string();
|
|
187
|
+
continue;
|
|
188
|
+
case 5:
|
|
189
|
+
if (tag !== 42) {
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
message.button_name = reader.string();
|
|
193
|
+
continue;
|
|
194
|
+
case 6:
|
|
195
|
+
if (tag !== 50) {
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
message.status = reader.string();
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
reader.skipType(tag & 7);
|
|
205
|
+
}
|
|
206
|
+
return message;
|
|
207
|
+
},
|
|
208
|
+
fromJSON(object) {
|
|
209
|
+
return {
|
|
210
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
211
|
+
benefits: globalThis.Array.isArray(object?.benefits) ? object.benefits.map((e) => exports.Benefit.fromJSON(e)) : [],
|
|
212
|
+
terms_description: isSet(object.terms_description) ? globalThis.String(object.terms_description) : "",
|
|
213
|
+
terms_link: isSet(object.terms_link) ? globalThis.String(object.terms_link) : "",
|
|
214
|
+
button_name: isSet(object.button_name) ? globalThis.String(object.button_name) : "",
|
|
215
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
216
|
+
};
|
|
217
|
+
},
|
|
218
|
+
toJSON(message) {
|
|
219
|
+
const obj = {};
|
|
220
|
+
if (message.title !== "") {
|
|
221
|
+
obj.title = message.title;
|
|
222
|
+
}
|
|
223
|
+
if (message.benefits?.length) {
|
|
224
|
+
obj.benefits = message.benefits.map((e) => exports.Benefit.toJSON(e));
|
|
225
|
+
}
|
|
226
|
+
if (message.terms_description !== "") {
|
|
227
|
+
obj.terms_description = message.terms_description;
|
|
228
|
+
}
|
|
229
|
+
if (message.terms_link !== "") {
|
|
230
|
+
obj.terms_link = message.terms_link;
|
|
231
|
+
}
|
|
232
|
+
if (message.button_name !== "") {
|
|
233
|
+
obj.button_name = message.button_name;
|
|
234
|
+
}
|
|
235
|
+
if (message.status !== "") {
|
|
236
|
+
obj.status = message.status;
|
|
237
|
+
}
|
|
238
|
+
return obj;
|
|
239
|
+
},
|
|
240
|
+
create(base) {
|
|
241
|
+
return exports.getPocketPersonalAccidentProtectionPlanResponse.fromPartial(base ?? {});
|
|
242
|
+
},
|
|
243
|
+
fromPartial(object) {
|
|
244
|
+
const message = createBasegetPocketPersonalAccidentProtectionPlanResponse();
|
|
245
|
+
message.title = object.title ?? "";
|
|
246
|
+
message.benefits = object.benefits?.map((e) => exports.Benefit.fromPartial(e)) || [];
|
|
247
|
+
message.terms_description = object.terms_description ?? "";
|
|
248
|
+
message.terms_link = object.terms_link ?? "";
|
|
249
|
+
message.button_name = object.button_name ?? "";
|
|
250
|
+
message.status = object.status ?? "";
|
|
251
|
+
return message;
|
|
252
|
+
},
|
|
253
|
+
};
|
|
254
|
+
function isSet(value) {
|
|
255
|
+
return value !== null && value !== undefined;
|
|
256
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.enach.updatetxnstatus";
|
|
3
3
|
export interface updateTxnStatusRequest {
|
|
4
|
-
|
|
4
|
+
order_id: string;
|
|
5
5
|
status: string;
|
|
6
|
+
mode?: string | undefined;
|
|
7
|
+
customer_id?: number | undefined;
|
|
8
|
+
clint_id?: string | undefined;
|
|
6
9
|
}
|
|
7
10
|
export interface updateTxnStatusResponse {
|
|
8
11
|
status: string;
|
|
@@ -10,19 +10,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.updateTxnStatusResponse = exports.updateTxnStatusRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
13
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
15
|
exports.protobufPackage = "customers.enach.updatetxnstatus";
|
|
15
16
|
function createBaseupdateTxnStatusRequest() {
|
|
16
|
-
return {
|
|
17
|
+
return { order_id: "", status: "", mode: undefined, customer_id: undefined, clint_id: undefined };
|
|
17
18
|
}
|
|
18
19
|
exports.updateTxnStatusRequest = {
|
|
19
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
21
|
+
if (message.order_id !== "") {
|
|
22
|
+
writer.uint32(10).string(message.order_id);
|
|
22
23
|
}
|
|
23
24
|
if (message.status !== "") {
|
|
24
25
|
writer.uint32(18).string(message.status);
|
|
25
26
|
}
|
|
27
|
+
if (message.mode !== undefined) {
|
|
28
|
+
writer.uint32(26).string(message.mode);
|
|
29
|
+
}
|
|
30
|
+
if (message.customer_id !== undefined) {
|
|
31
|
+
writer.uint32(32).int64(message.customer_id);
|
|
32
|
+
}
|
|
33
|
+
if (message.clint_id !== undefined) {
|
|
34
|
+
writer.uint32(42).string(message.clint_id);
|
|
35
|
+
}
|
|
26
36
|
return writer;
|
|
27
37
|
},
|
|
28
38
|
decode(input, length) {
|
|
@@ -36,7 +46,7 @@ exports.updateTxnStatusRequest = {
|
|
|
36
46
|
if (tag !== 10) {
|
|
37
47
|
break;
|
|
38
48
|
}
|
|
39
|
-
message.
|
|
49
|
+
message.order_id = reader.string();
|
|
40
50
|
continue;
|
|
41
51
|
case 2:
|
|
42
52
|
if (tag !== 18) {
|
|
@@ -44,6 +54,24 @@ exports.updateTxnStatusRequest = {
|
|
|
44
54
|
}
|
|
45
55
|
message.status = reader.string();
|
|
46
56
|
continue;
|
|
57
|
+
case 3:
|
|
58
|
+
if (tag !== 26) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
message.mode = reader.string();
|
|
62
|
+
continue;
|
|
63
|
+
case 4:
|
|
64
|
+
if (tag !== 32) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
message.customer_id = longToNumber(reader.int64());
|
|
68
|
+
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.clint_id = reader.string();
|
|
74
|
+
continue;
|
|
47
75
|
}
|
|
48
76
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
77
|
break;
|
|
@@ -54,18 +82,30 @@ exports.updateTxnStatusRequest = {
|
|
|
54
82
|
},
|
|
55
83
|
fromJSON(object) {
|
|
56
84
|
return {
|
|
57
|
-
|
|
85
|
+
order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
|
|
58
86
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
87
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : undefined,
|
|
88
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
|
|
89
|
+
clint_id: isSet(object.clint_id) ? globalThis.String(object.clint_id) : undefined,
|
|
59
90
|
};
|
|
60
91
|
},
|
|
61
92
|
toJSON(message) {
|
|
62
93
|
const obj = {};
|
|
63
|
-
if (message.
|
|
64
|
-
obj.
|
|
94
|
+
if (message.order_id !== "") {
|
|
95
|
+
obj.order_id = message.order_id;
|
|
65
96
|
}
|
|
66
97
|
if (message.status !== "") {
|
|
67
98
|
obj.status = message.status;
|
|
68
99
|
}
|
|
100
|
+
if (message.mode !== undefined) {
|
|
101
|
+
obj.mode = message.mode;
|
|
102
|
+
}
|
|
103
|
+
if (message.customer_id !== undefined) {
|
|
104
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
105
|
+
}
|
|
106
|
+
if (message.clint_id !== undefined) {
|
|
107
|
+
obj.clint_id = message.clint_id;
|
|
108
|
+
}
|
|
69
109
|
return obj;
|
|
70
110
|
},
|
|
71
111
|
create(base) {
|
|
@@ -73,8 +113,11 @@ exports.updateTxnStatusRequest = {
|
|
|
73
113
|
},
|
|
74
114
|
fromPartial(object) {
|
|
75
115
|
const message = createBaseupdateTxnStatusRequest();
|
|
76
|
-
message.
|
|
116
|
+
message.order_id = object.order_id ?? "";
|
|
77
117
|
message.status = object.status ?? "";
|
|
118
|
+
message.mode = object.mode ?? undefined;
|
|
119
|
+
message.customer_id = object.customer_id ?? undefined;
|
|
120
|
+
message.clint_id = object.clint_id ?? undefined;
|
|
78
121
|
return message;
|
|
79
122
|
},
|
|
80
123
|
};
|
|
@@ -128,6 +171,19 @@ exports.updateTxnStatusResponse = {
|
|
|
128
171
|
return message;
|
|
129
172
|
},
|
|
130
173
|
};
|
|
174
|
+
function longToNumber(long) {
|
|
175
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
176
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
177
|
+
}
|
|
178
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
179
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
180
|
+
}
|
|
181
|
+
return long.toNumber();
|
|
182
|
+
}
|
|
183
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
184
|
+
minimal_1.default.util.Long = long_1.default;
|
|
185
|
+
minimal_1.default.configure();
|
|
186
|
+
}
|
|
131
187
|
function isSet(value) {
|
|
132
188
|
return value !== null && value !== undefined;
|
|
133
189
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.restoreaccount";
|
|
3
|
+
export interface restoreAccountRequest {
|
|
4
|
+
mobile: string;
|
|
5
|
+
deleted_token: string;
|
|
6
|
+
}
|
|
7
|
+
export interface restoreAccountResponse {
|
|
8
|
+
jwttoken: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const restoreAccountRequest: {
|
|
11
|
+
encode(message: restoreAccountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): restoreAccountRequest;
|
|
13
|
+
fromJSON(object: any): restoreAccountRequest;
|
|
14
|
+
toJSON(message: restoreAccountRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<restoreAccountRequest>, I>>(base?: I): restoreAccountRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<restoreAccountRequest>, I>>(object: I): restoreAccountRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const restoreAccountResponse: {
|
|
19
|
+
encode(message: restoreAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): restoreAccountResponse;
|
|
21
|
+
fromJSON(object: any): restoreAccountResponse;
|
|
22
|
+
toJSON(message: restoreAccountResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<restoreAccountResponse>, I>>(base?: I): restoreAccountResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<restoreAccountResponse>, I>>(object: I): restoreAccountResponse;
|
|
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 {};
|
|
@@ -2,30 +2,33 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
6
|
-
// source: customers/
|
|
5
|
+
// protoc v5.28.3
|
|
6
|
+
// source: customers/restoreaccount.proto
|
|
7
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.
|
|
11
|
+
exports.restoreAccountResponse = exports.restoreAccountRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "customers.
|
|
15
|
-
function
|
|
16
|
-
return {
|
|
14
|
+
exports.protobufPackage = "customers.restoreaccount";
|
|
15
|
+
function createBaserestoreAccountRequest() {
|
|
16
|
+
return { mobile: "", deleted_token: "" };
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.restoreAccountRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
20
|
+
if (message.mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mobile);
|
|
22
|
+
}
|
|
23
|
+
if (message.deleted_token !== "") {
|
|
24
|
+
writer.uint32(18).string(message.deleted_token);
|
|
22
25
|
}
|
|
23
26
|
return writer;
|
|
24
27
|
},
|
|
25
28
|
decode(input, length) {
|
|
26
29
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
30
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message =
|
|
31
|
+
const message = createBaserestoreAccountRequest();
|
|
29
32
|
while (reader.pos < end) {
|
|
30
33
|
const tag = reader.uint32();
|
|
31
34
|
switch (tag >>> 3) {
|
|
@@ -33,7 +36,13 @@ exports.skipDlRcScreenRequest = {
|
|
|
33
36
|
if (tag !== 10) {
|
|
34
37
|
break;
|
|
35
38
|
}
|
|
36
|
-
message.
|
|
39
|
+
message.mobile = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.deleted_token = reader.string();
|
|
37
46
|
continue;
|
|
38
47
|
}
|
|
39
48
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -44,38 +53,45 @@ exports.skipDlRcScreenRequest = {
|
|
|
44
53
|
return message;
|
|
45
54
|
},
|
|
46
55
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
56
|
+
return {
|
|
57
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
58
|
+
deleted_token: isSet(object.deleted_token) ? globalThis.String(object.deleted_token) : "",
|
|
59
|
+
};
|
|
48
60
|
},
|
|
49
61
|
toJSON(message) {
|
|
50
62
|
const obj = {};
|
|
51
|
-
if (message.
|
|
52
|
-
obj.
|
|
63
|
+
if (message.mobile !== "") {
|
|
64
|
+
obj.mobile = message.mobile;
|
|
65
|
+
}
|
|
66
|
+
if (message.deleted_token !== "") {
|
|
67
|
+
obj.deleted_token = message.deleted_token;
|
|
53
68
|
}
|
|
54
69
|
return obj;
|
|
55
70
|
},
|
|
56
71
|
create(base) {
|
|
57
|
-
return exports.
|
|
72
|
+
return exports.restoreAccountRequest.fromPartial(base ?? {});
|
|
58
73
|
},
|
|
59
74
|
fromPartial(object) {
|
|
60
|
-
const message =
|
|
61
|
-
message.
|
|
75
|
+
const message = createBaserestoreAccountRequest();
|
|
76
|
+
message.mobile = object.mobile ?? "";
|
|
77
|
+
message.deleted_token = object.deleted_token ?? "";
|
|
62
78
|
return message;
|
|
63
79
|
},
|
|
64
80
|
};
|
|
65
|
-
function
|
|
66
|
-
return {
|
|
81
|
+
function createBaserestoreAccountResponse() {
|
|
82
|
+
return { jwttoken: "" };
|
|
67
83
|
}
|
|
68
|
-
exports.
|
|
84
|
+
exports.restoreAccountResponse = {
|
|
69
85
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.
|
|
71
|
-
writer.uint32(10).string(message.
|
|
86
|
+
if (message.jwttoken !== "") {
|
|
87
|
+
writer.uint32(10).string(message.jwttoken);
|
|
72
88
|
}
|
|
73
89
|
return writer;
|
|
74
90
|
},
|
|
75
91
|
decode(input, length) {
|
|
76
92
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
93
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message =
|
|
94
|
+
const message = createBaserestoreAccountResponse();
|
|
79
95
|
while (reader.pos < end) {
|
|
80
96
|
const tag = reader.uint32();
|
|
81
97
|
switch (tag >>> 3) {
|
|
@@ -83,7 +99,7 @@ exports.skipDlRcScreenResponse = {
|
|
|
83
99
|
if (tag !== 10) {
|
|
84
100
|
break;
|
|
85
101
|
}
|
|
86
|
-
message.
|
|
102
|
+
message.jwttoken = reader.string();
|
|
87
103
|
continue;
|
|
88
104
|
}
|
|
89
105
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -94,21 +110,21 @@ exports.skipDlRcScreenResponse = {
|
|
|
94
110
|
return message;
|
|
95
111
|
},
|
|
96
112
|
fromJSON(object) {
|
|
97
|
-
return {
|
|
113
|
+
return { jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "" };
|
|
98
114
|
},
|
|
99
115
|
toJSON(message) {
|
|
100
116
|
const obj = {};
|
|
101
|
-
if (message.
|
|
102
|
-
obj.
|
|
117
|
+
if (message.jwttoken !== "") {
|
|
118
|
+
obj.jwttoken = message.jwttoken;
|
|
103
119
|
}
|
|
104
120
|
return obj;
|
|
105
121
|
},
|
|
106
122
|
create(base) {
|
|
107
|
-
return exports.
|
|
123
|
+
return exports.restoreAccountResponse.fromPartial(base ?? {});
|
|
108
124
|
},
|
|
109
125
|
fromPartial(object) {
|
|
110
|
-
const message =
|
|
111
|
-
message.
|
|
126
|
+
const message = createBaserestoreAccountResponse();
|
|
127
|
+
message.jwttoken = object.jwttoken ?? "";
|
|
112
128
|
return message;
|
|
113
129
|
},
|
|
114
130
|
};
|