@stashfin/grpc 1.0.28 → 1.0.30
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/customer/getprofile.d.ts +38 -0
- package/ts/customer/getprofile.js +162 -0
- package/ts/customer/getstep.d.ts +78 -0
- package/ts/customer/getstep.js +420 -0
- package/ts/customer/profileupdatetnc.d.ts +35 -0
- package/ts/customer/profileupdatetnc.js +117 -0
- package/ts/customer/sendotp.d.ts +36 -0
- package/ts/customer/sendotp.js +133 -0
- package/ts/customer/setmpin.d.ts +36 -0
- package/ts/customer/setmpin.js +133 -0
- package/ts/customer/step1.d.ts +69 -0
- package/ts/customer/step1.js +395 -0
- package/ts/customer/step10.d.ts +73 -0
- package/ts/customer/step10.js +459 -0
- package/ts/customer/step2.d.ts +68 -0
- package/ts/customer/step2.js +381 -0
- package/ts/customer/step7.d.ts +68 -0
- package/ts/customer/step7.js +381 -0
- package/ts/customer/step8.d.ts +69 -0
- package/ts/customer/step8.js +395 -0
- package/ts/customer/step9.d.ts +75 -0
- package/ts/customer/step9.js +489 -0
- package/ts/customer/stepstatic.d.ts +66 -0
- package/ts/customer/stepstatic.js +352 -0
- package/ts/customer/verifympin.d.ts +37 -0
- package/ts/customer/verifympin.js +149 -0
- package/ts/customer/verifyotp.d.ts +39 -0
- package/ts/customer/verifyotp.js +177 -0
- package/ts/customer.d.ts +262 -0
- package/ts/customer.js +190 -0
- package/ts/customers/getprofile.d.ts +16 -16
- package/ts/customers/getprofile.js +11 -11
- package/ts/customers/getstep.d.ts +16 -16
- package/ts/customers/getstep.js +11 -11
- package/ts/customers/profilebasic.d.ts +16 -16
- package/ts/customers/profilebasic.js +11 -11
- package/ts/customers/profileupdatetnc.d.ts +16 -16
- package/ts/customers/profileupdatetnc.js +11 -11
- package/ts/customers/sendemailtoken.d.ts +16 -16
- package/ts/customers/sendemailtoken.js +11 -11
- package/ts/customers/sendotp.d.ts +16 -16
- package/ts/customers/sendotp.js +11 -11
- package/ts/customers/setmpin.d.ts +16 -16
- package/ts/customers/setmpin.js +11 -11
- package/ts/customers/step1.d.ts +25 -25
- package/ts/customers/step1.js +21 -21
- package/ts/customers/step10.d.ts +25 -25
- package/ts/customers/step10.js +21 -21
- package/ts/customers/step2.d.ts +25 -25
- package/ts/customers/step2.js +21 -21
- package/ts/customers/step7.d.ts +25 -25
- package/ts/customers/step7.js +21 -21
- package/ts/customers/step8.d.ts +25 -25
- package/ts/customers/step8.js +21 -21
- package/ts/customers/step9.d.ts +25 -25
- package/ts/customers/step9.js +21 -21
- package/ts/customers/stepstatic.d.ts +25 -25
- package/ts/customers/stepstatic.js +23 -21
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/customers/verifyemail.js +117 -0
- package/ts/customers/verifympin.d.ts +16 -16
- package/ts/customers/verifympin.js +11 -11
- package/ts/customers/verifyotp.d.ts +16 -16
- package/ts/customers/verifyotp.js +11 -11
- package/ts/customers.d.ts +190 -176
- package/ts/customers.js +90 -80
- package/ts/stashcash/debitsc.d.ts +55 -0
- package/ts/stashcash/debitsc.js +315 -0
- package/ts/stashcash/getschistory.d.ts +2 -2
- package/ts/stashcash/getschistory.js +16 -16
- package/ts/stashcash.d.ts +14 -0
- package/ts/stashcash.js +10 -0
|
@@ -196,8 +196,8 @@ function createBaseSCtransaction() {
|
|
|
196
196
|
status: "",
|
|
197
197
|
expiry: "",
|
|
198
198
|
created_at: "",
|
|
199
|
-
is_active:
|
|
200
|
-
is_deleted:
|
|
199
|
+
is_active: false,
|
|
200
|
+
is_deleted: false,
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
203
|
exports.SCtransaction = {
|
|
@@ -235,11 +235,11 @@ exports.SCtransaction = {
|
|
|
235
235
|
if (message.created_at !== "") {
|
|
236
236
|
writer.uint32(90).string(message.created_at);
|
|
237
237
|
}
|
|
238
|
-
if (message.is_active !==
|
|
239
|
-
writer.uint32(
|
|
238
|
+
if (message.is_active !== false) {
|
|
239
|
+
writer.uint32(96).bool(message.is_active);
|
|
240
240
|
}
|
|
241
|
-
if (message.is_deleted !==
|
|
242
|
-
writer.uint32(
|
|
241
|
+
if (message.is_deleted !== false) {
|
|
242
|
+
writer.uint32(104).bool(message.is_deleted);
|
|
243
243
|
}
|
|
244
244
|
return writer;
|
|
245
245
|
},
|
|
@@ -317,16 +317,16 @@ exports.SCtransaction = {
|
|
|
317
317
|
message.created_at = reader.string();
|
|
318
318
|
continue;
|
|
319
319
|
case 12:
|
|
320
|
-
if (tag !==
|
|
320
|
+
if (tag !== 96) {
|
|
321
321
|
break;
|
|
322
322
|
}
|
|
323
|
-
message.is_active = reader.
|
|
323
|
+
message.is_active = reader.bool();
|
|
324
324
|
continue;
|
|
325
325
|
case 13:
|
|
326
|
-
if (tag !==
|
|
326
|
+
if (tag !== 104) {
|
|
327
327
|
break;
|
|
328
328
|
}
|
|
329
|
-
message.is_deleted = reader.
|
|
329
|
+
message.is_deleted = reader.bool();
|
|
330
330
|
continue;
|
|
331
331
|
}
|
|
332
332
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -349,8 +349,8 @@ exports.SCtransaction = {
|
|
|
349
349
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
350
350
|
expiry: isSet(object.expiry) ? globalThis.String(object.expiry) : "",
|
|
351
351
|
created_at: isSet(object.created_at) ? globalThis.String(object.created_at) : "",
|
|
352
|
-
is_active: isSet(object.is_active) ? globalThis.
|
|
353
|
-
is_deleted: isSet(object.is_deleted) ? globalThis.
|
|
352
|
+
is_active: isSet(object.is_active) ? globalThis.Boolean(object.is_active) : false,
|
|
353
|
+
is_deleted: isSet(object.is_deleted) ? globalThis.Boolean(object.is_deleted) : false,
|
|
354
354
|
};
|
|
355
355
|
},
|
|
356
356
|
toJSON(message) {
|
|
@@ -388,10 +388,10 @@ exports.SCtransaction = {
|
|
|
388
388
|
if (message.created_at !== "") {
|
|
389
389
|
obj.created_at = message.created_at;
|
|
390
390
|
}
|
|
391
|
-
if (message.is_active !==
|
|
391
|
+
if (message.is_active !== false) {
|
|
392
392
|
obj.is_active = message.is_active;
|
|
393
393
|
}
|
|
394
|
-
if (message.is_deleted !==
|
|
394
|
+
if (message.is_deleted !== false) {
|
|
395
395
|
obj.is_deleted = message.is_deleted;
|
|
396
396
|
}
|
|
397
397
|
return obj;
|
|
@@ -412,8 +412,8 @@ exports.SCtransaction = {
|
|
|
412
412
|
message.status = object.status ?? "";
|
|
413
413
|
message.expiry = object.expiry ?? "";
|
|
414
414
|
message.created_at = object.created_at ?? "";
|
|
415
|
-
message.is_active = object.is_active ??
|
|
416
|
-
message.is_deleted = object.is_deleted ??
|
|
415
|
+
message.is_active = object.is_active ?? false;
|
|
416
|
+
message.is_deleted = object.is_deleted ?? false;
|
|
417
417
|
return message;
|
|
418
418
|
},
|
|
419
419
|
};
|
package/ts/stashcash.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
2
|
import { request as request1, response as response2 } from "./stashcash/creditsc";
|
|
3
|
+
import { request as request7, response as response8 } from "./stashcash/debitsc";
|
|
3
4
|
import { request, response } from "./stashcash/getscbalance";
|
|
4
5
|
import { request as request5, response as response6 } from "./stashcash/getschistory";
|
|
5
6
|
import { request as request3, response as response4 } from "./stashcash/reversesc";
|
|
@@ -42,12 +43,22 @@ export declare const stashcashService: {
|
|
|
42
43
|
readonly responseSerialize: (value: response6) => Buffer;
|
|
43
44
|
readonly responseDeserialize: (value: Buffer) => response6;
|
|
44
45
|
};
|
|
46
|
+
readonly debitsc: {
|
|
47
|
+
readonly path: "/service.stashcash/debitsc";
|
|
48
|
+
readonly requestStream: false;
|
|
49
|
+
readonly responseStream: false;
|
|
50
|
+
readonly requestSerialize: (value: request7) => Buffer;
|
|
51
|
+
readonly requestDeserialize: (value: Buffer) => request7;
|
|
52
|
+
readonly responseSerialize: (value: response8) => Buffer;
|
|
53
|
+
readonly responseDeserialize: (value: Buffer) => response8;
|
|
54
|
+
};
|
|
45
55
|
};
|
|
46
56
|
export interface stashcashServer extends UntypedServiceImplementation {
|
|
47
57
|
getscbalance: handleUnaryCall<request, response>;
|
|
48
58
|
creditsc: handleUnaryCall<request1, response2>;
|
|
49
59
|
reversesc: handleUnaryCall<request3, response4>;
|
|
50
60
|
getschistory: handleUnaryCall<request5, response6>;
|
|
61
|
+
debitsc: handleUnaryCall<request7, response8>;
|
|
51
62
|
}
|
|
52
63
|
export interface stashcashClient extends Client {
|
|
53
64
|
getscbalance(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
@@ -62,6 +73,9 @@ export interface stashcashClient extends Client {
|
|
|
62
73
|
getschistory(request: request5, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
63
74
|
getschistory(request: request5, metadata: Metadata, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
64
75
|
getschistory(request: request5, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response6) => void): ClientUnaryCall;
|
|
76
|
+
debitsc(request: request7, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
77
|
+
debitsc(request: request7, metadata: Metadata, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
78
|
+
debitsc(request: request7, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response8) => void): ClientUnaryCall;
|
|
65
79
|
}
|
|
66
80
|
export declare const stashcashClient: {
|
|
67
81
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): stashcashClient;
|
package/ts/stashcash.js
CHANGED
|
@@ -9,6 +9,7 @@ exports.stashcashClient = exports.stashcashService = exports.protobufPackage = v
|
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
11
|
const creditsc_1 = require("./stashcash/creditsc");
|
|
12
|
+
const debitsc_1 = require("./stashcash/debitsc");
|
|
12
13
|
const getscbalance_1 = require("./stashcash/getscbalance");
|
|
13
14
|
const getschistory_1 = require("./stashcash/getschistory");
|
|
14
15
|
const reversesc_1 = require("./stashcash/reversesc");
|
|
@@ -50,5 +51,14 @@ exports.stashcashService = {
|
|
|
50
51
|
responseSerialize: (value) => Buffer.from(getschistory_1.response.encode(value).finish()),
|
|
51
52
|
responseDeserialize: (value) => getschistory_1.response.decode(value),
|
|
52
53
|
},
|
|
54
|
+
debitsc: {
|
|
55
|
+
path: "/service.stashcash/debitsc",
|
|
56
|
+
requestStream: false,
|
|
57
|
+
responseStream: false,
|
|
58
|
+
requestSerialize: (value) => Buffer.from(debitsc_1.request.encode(value).finish()),
|
|
59
|
+
requestDeserialize: (value) => debitsc_1.request.decode(value),
|
|
60
|
+
responseSerialize: (value) => Buffer.from(debitsc_1.response.encode(value).finish()),
|
|
61
|
+
responseDeserialize: (value) => debitsc_1.response.decode(value),
|
|
62
|
+
},
|
|
53
63
|
};
|
|
54
64
|
exports.stashcashClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.stashcashService, "service.stashcash");
|