@stashfin/grpc 1.2.422 → 1.2.426
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/getstep.d.ts +5 -4
- package/ts/customers/getstep.js +19 -6
- package/ts/customers/lamf/applylamf.d.ts +34 -0
- package/ts/customers/lamf/applylamf.js +104 -0
- package/ts/customers.d.ts +11 -11
- package/ts/customers.js +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.getstep";
|
|
3
3
|
export interface getstepRequest {
|
|
4
|
+
banner_code?: string | undefined;
|
|
4
5
|
}
|
|
5
6
|
export interface getstepResponse {
|
|
6
7
|
route: string;
|
|
@@ -25,12 +26,12 @@ export interface Validation {
|
|
|
25
26
|
message: string;
|
|
26
27
|
}
|
|
27
28
|
export declare const getstepRequest: {
|
|
28
|
-
encode(
|
|
29
|
+
encode(message: getstepRequest, writer?: _m0.Writer): _m0.Writer;
|
|
29
30
|
decode(input: _m0.Reader | Uint8Array, length?: number): getstepRequest;
|
|
30
|
-
fromJSON(
|
|
31
|
-
toJSON(
|
|
31
|
+
fromJSON(object: any): getstepRequest;
|
|
32
|
+
toJSON(message: getstepRequest): unknown;
|
|
32
33
|
create<I extends Exact<DeepPartial<getstepRequest>, I>>(base?: I): getstepRequest;
|
|
33
|
-
fromPartial<I extends Exact<DeepPartial<getstepRequest>, I>>(
|
|
34
|
+
fromPartial<I extends Exact<DeepPartial<getstepRequest>, I>>(object: I): getstepRequest;
|
|
34
35
|
};
|
|
35
36
|
export declare const getstepResponse: {
|
|
36
37
|
encode(message: getstepResponse, writer?: _m0.Writer): _m0.Writer;
|
package/ts/customers/getstep.js
CHANGED
|
@@ -13,10 +13,13 @@ exports.Validation = exports.getstepResponse_Field = exports.getstepResponse = e
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getstep";
|
|
15
15
|
function createBasegetstepRequest() {
|
|
16
|
-
return {};
|
|
16
|
+
return { banner_code: undefined };
|
|
17
17
|
}
|
|
18
18
|
exports.getstepRequest = {
|
|
19
|
-
encode(
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.banner_code !== undefined) {
|
|
21
|
+
writer.uint32(10).string(message.banner_code);
|
|
22
|
+
}
|
|
20
23
|
return writer;
|
|
21
24
|
},
|
|
22
25
|
decode(input, length) {
|
|
@@ -26,6 +29,12 @@ exports.getstepRequest = {
|
|
|
26
29
|
while (reader.pos < end) {
|
|
27
30
|
const tag = reader.uint32();
|
|
28
31
|
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.banner_code = reader.string();
|
|
37
|
+
continue;
|
|
29
38
|
}
|
|
30
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
31
40
|
break;
|
|
@@ -34,18 +43,22 @@ exports.getstepRequest = {
|
|
|
34
43
|
}
|
|
35
44
|
return message;
|
|
36
45
|
},
|
|
37
|
-
fromJSON(
|
|
38
|
-
return {};
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { banner_code: isSet(object.banner_code) ? globalThis.String(object.banner_code) : undefined };
|
|
39
48
|
},
|
|
40
|
-
toJSON(
|
|
49
|
+
toJSON(message) {
|
|
41
50
|
const obj = {};
|
|
51
|
+
if (message.banner_code !== undefined) {
|
|
52
|
+
obj.banner_code = message.banner_code;
|
|
53
|
+
}
|
|
42
54
|
return obj;
|
|
43
55
|
},
|
|
44
56
|
create(base) {
|
|
45
57
|
return exports.getstepRequest.fromPartial(base ?? {});
|
|
46
58
|
},
|
|
47
|
-
fromPartial(
|
|
59
|
+
fromPartial(object) {
|
|
48
60
|
const message = createBasegetstepRequest();
|
|
61
|
+
message.banner_code = object.banner_code ?? undefined;
|
|
49
62
|
return message;
|
|
50
63
|
},
|
|
51
64
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.lamf.applylamf";
|
|
3
|
+
export interface applyLamfRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface applyLamfResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const applyLamfRequest: {
|
|
9
|
+
encode(_: applyLamfRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): applyLamfRequest;
|
|
11
|
+
fromJSON(_: any): applyLamfRequest;
|
|
12
|
+
toJSON(_: applyLamfRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<applyLamfRequest>, I>>(base?: I): applyLamfRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<applyLamfRequest>, I>>(_: I): applyLamfRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const applyLamfResponse: {
|
|
17
|
+
encode(message: applyLamfResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): applyLamfResponse;
|
|
19
|
+
fromJSON(object: any): applyLamfResponse;
|
|
20
|
+
toJSON(message: applyLamfResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<applyLamfResponse>, I>>(base?: I): applyLamfResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<applyLamfResponse>, I>>(object: I): applyLamfResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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/lamf/applylamf.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.applyLamfResponse = exports.applyLamfRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.lamf.applylamf";
|
|
15
|
+
function createBaseapplyLamfRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.applyLamfRequest = {
|
|
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 = createBaseapplyLamfRequest();
|
|
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.applyLamfRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseapplyLamfRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseapplyLamfResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.applyLamfResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== "") {
|
|
58
|
+
writer.uint32(10).string(message.status);
|
|
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 = createBaseapplyLamfResponse();
|
|
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.status = reader.string();
|
|
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 { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== "") {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.applyLamfResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseapplyLamfResponse();
|
|
98
|
+
message.status = object.status ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -71,9 +71,9 @@ import { getAllStatesRequest, getAllStatesResponse } from "./customers/getstates
|
|
|
71
71
|
import { getstepRequest, getstepResponse } from "./customers/getstep";
|
|
72
72
|
import { getSyncStatusRequest, getSyncStatusResponse } from "./customers/getsyncstatus";
|
|
73
73
|
import { getVaNumberRequest, getVaNumberResponse } from "./customers/getvanumber";
|
|
74
|
+
import { applyLamfRequest, applyLamfResponse } from "./customers/lamf/applylamf";
|
|
74
75
|
import { sendLamfOtpRequest, sendLamfOtpResponse } from "./customers/lamf/sendlamfotp";
|
|
75
76
|
import { sendLamfPledgeOtpRequest, sendLamfPledgeOtpResponse } from "./customers/lamf/sendlamfpledgeotp";
|
|
76
|
-
import { updateLamfJourneyRequest, updateLamfJourneyResponse } from "./customers/lamf/updatelamfjourney";
|
|
77
77
|
import { verifyLamfOtpRequest, verifyLamfOtpResponse } from "./customers/lamf/verifylamfotp";
|
|
78
78
|
import { verifyLamfPledgeOtpRequest, verifyLamfPledgeOtpResponse } from "./customers/lamf/verifylamfpledgeotp";
|
|
79
79
|
import { logoutRequest, logoutResponse } from "./customers/logout";
|
|
@@ -1152,14 +1152,14 @@ export declare const customersService: {
|
|
|
1152
1152
|
readonly responseSerialize: (value: verifyLamfPledgeOtpResponse) => Buffer;
|
|
1153
1153
|
readonly responseDeserialize: (value: Buffer) => verifyLamfPledgeOtpResponse;
|
|
1154
1154
|
};
|
|
1155
|
-
readonly
|
|
1156
|
-
readonly path: "/service.customers/
|
|
1155
|
+
readonly applyLamf: {
|
|
1156
|
+
readonly path: "/service.customers/applyLamf";
|
|
1157
1157
|
readonly requestStream: false;
|
|
1158
1158
|
readonly responseStream: false;
|
|
1159
|
-
readonly requestSerialize: (value:
|
|
1160
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
1161
|
-
readonly responseSerialize: (value:
|
|
1162
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
1159
|
+
readonly requestSerialize: (value: applyLamfRequest) => Buffer;
|
|
1160
|
+
readonly requestDeserialize: (value: Buffer) => applyLamfRequest;
|
|
1161
|
+
readonly responseSerialize: (value: applyLamfResponse) => Buffer;
|
|
1162
|
+
readonly responseDeserialize: (value: Buffer) => applyLamfResponse;
|
|
1163
1163
|
};
|
|
1164
1164
|
readonly updateSanctionAmount: {
|
|
1165
1165
|
readonly path: "/service.customers/updateSanctionAmount";
|
|
@@ -1296,7 +1296,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1296
1296
|
verifyLamfOtp: handleUnaryCall<verifyLamfOtpRequest, verifyLamfOtpResponse>;
|
|
1297
1297
|
sendLamfPledgeOtp: handleUnaryCall<sendLamfPledgeOtpRequest, sendLamfPledgeOtpResponse>;
|
|
1298
1298
|
verifyLamfPledgeOtp: handleUnaryCall<verifyLamfPledgeOtpRequest, verifyLamfPledgeOtpResponse>;
|
|
1299
|
-
|
|
1299
|
+
applyLamf: handleUnaryCall<applyLamfRequest, applyLamfResponse>;
|
|
1300
1300
|
updateSanctionAmount: handleUnaryCall<updateSanctionAmountRequest, updateSanctionAmountResponse>;
|
|
1301
1301
|
getMessengerMode: handleUnaryCall<getMessengerModeRequest, getMessengerModeResponse>;
|
|
1302
1302
|
}
|
|
@@ -1646,9 +1646,9 @@ export interface customersClient extends Client {
|
|
|
1646
1646
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1647
1647
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1648
1648
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1649
|
+
applyLamf(request: applyLamfRequest, callback: (error: ServiceError | null, response: applyLamfResponse) => void): ClientUnaryCall;
|
|
1650
|
+
applyLamf(request: applyLamfRequest, metadata: Metadata, callback: (error: ServiceError | null, response: applyLamfResponse) => void): ClientUnaryCall;
|
|
1651
|
+
applyLamf(request: applyLamfRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: applyLamfResponse) => void): ClientUnaryCall;
|
|
1652
1652
|
updateSanctionAmount(request: updateSanctionAmountRequest, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1653
1653
|
updateSanctionAmount(request: updateSanctionAmountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1654
1654
|
updateSanctionAmount(request: updateSanctionAmountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
package/ts/customers.js
CHANGED
|
@@ -80,9 +80,9 @@ const getstates_1 = require("./customers/getstates");
|
|
|
80
80
|
const getstep_1 = require("./customers/getstep");
|
|
81
81
|
const getsyncstatus_1 = require("./customers/getsyncstatus");
|
|
82
82
|
const getvanumber_1 = require("./customers/getvanumber");
|
|
83
|
+
const applylamf_1 = require("./customers/lamf/applylamf");
|
|
83
84
|
const sendlamfotp_1 = require("./customers/lamf/sendlamfotp");
|
|
84
85
|
const sendlamfpledgeotp_1 = require("./customers/lamf/sendlamfpledgeotp");
|
|
85
|
-
const updatelamfjourney_1 = require("./customers/lamf/updatelamfjourney");
|
|
86
86
|
const verifylamfotp_1 = require("./customers/lamf/verifylamfotp");
|
|
87
87
|
const verifylamfpledgeotp_1 = require("./customers/lamf/verifylamfpledgeotp");
|
|
88
88
|
const logout_1 = require("./customers/logout");
|
|
@@ -1160,14 +1160,14 @@ exports.customersService = {
|
|
|
1160
1160
|
responseSerialize: (value) => Buffer.from(verifylamfpledgeotp_1.verifyLamfPledgeOtpResponse.encode(value).finish()),
|
|
1161
1161
|
responseDeserialize: (value) => verifylamfpledgeotp_1.verifyLamfPledgeOtpResponse.decode(value),
|
|
1162
1162
|
},
|
|
1163
|
-
|
|
1164
|
-
path: "/service.customers/
|
|
1163
|
+
applyLamf: {
|
|
1164
|
+
path: "/service.customers/applyLamf",
|
|
1165
1165
|
requestStream: false,
|
|
1166
1166
|
responseStream: false,
|
|
1167
|
-
requestSerialize: (value) => Buffer.from(
|
|
1168
|
-
requestDeserialize: (value) =>
|
|
1169
|
-
responseSerialize: (value) => Buffer.from(
|
|
1170
|
-
responseDeserialize: (value) =>
|
|
1167
|
+
requestSerialize: (value) => Buffer.from(applylamf_1.applyLamfRequest.encode(value).finish()),
|
|
1168
|
+
requestDeserialize: (value) => applylamf_1.applyLamfRequest.decode(value),
|
|
1169
|
+
responseSerialize: (value) => Buffer.from(applylamf_1.applyLamfResponse.encode(value).finish()),
|
|
1170
|
+
responseDeserialize: (value) => applylamf_1.applyLamfResponse.decode(value),
|
|
1171
1171
|
},
|
|
1172
1172
|
updateSanctionAmount: {
|
|
1173
1173
|
path: "/service.customers/updateSanctionAmount",
|