@stashfin/grpc 1.2.782 → 1.2.783

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.782",
3
+ "version": "1.2.783",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,7 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "kyc.ckycfetchrecord";
3
3
  export interface ckycFetchRecordRequest {
4
- customer_id: string;
4
+ customer_id: number;
5
5
  otp: string;
6
6
  loan_id: number;
7
7
  transaction_id: string;
@@ -13,12 +13,12 @@ exports.ckycFetchRecordResponse = exports.ckycFetchRecordRequest = exports.proto
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "kyc.ckycfetchrecord";
15
15
  function createBaseckycFetchRecordRequest() {
16
- return { customer_id: "", otp: "", loan_id: 0, transaction_id: "" };
16
+ return { customer_id: 0, otp: "", loan_id: 0, transaction_id: "" };
17
17
  }
18
18
  exports.ckycFetchRecordRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.customer_id !== "") {
21
- writer.uint32(10).string(message.customer_id);
20
+ if (message.customer_id !== 0) {
21
+ writer.uint32(8).int32(message.customer_id);
22
22
  }
23
23
  if (message.otp !== "") {
24
24
  writer.uint32(18).string(message.otp);
@@ -39,10 +39,10 @@ exports.ckycFetchRecordRequest = {
39
39
  const tag = reader.uint32();
40
40
  switch (tag >>> 3) {
41
41
  case 1:
42
- if (tag !== 10) {
42
+ if (tag !== 8) {
43
43
  break;
44
44
  }
45
- message.customer_id = reader.string();
45
+ message.customer_id = reader.int32();
46
46
  continue;
47
47
  case 2:
48
48
  if (tag !== 18) {
@@ -72,7 +72,7 @@ exports.ckycFetchRecordRequest = {
72
72
  },
73
73
  fromJSON(object) {
74
74
  return {
75
- customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : "",
75
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
76
76
  otp: isSet(object.otp) ? globalThis.String(object.otp) : "",
77
77
  loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
78
78
  transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
@@ -80,8 +80,8 @@ exports.ckycFetchRecordRequest = {
80
80
  },
81
81
  toJSON(message) {
82
82
  const obj = {};
83
- if (message.customer_id !== "") {
84
- obj.customer_id = message.customer_id;
83
+ if (message.customer_id !== 0) {
84
+ obj.customer_id = Math.round(message.customer_id);
85
85
  }
86
86
  if (message.otp !== "") {
87
87
  obj.otp = message.otp;
@@ -99,7 +99,7 @@ exports.ckycFetchRecordRequest = {
99
99
  },
100
100
  fromPartial(object) {
101
101
  const message = createBaseckycFetchRecordRequest();
102
- message.customer_id = object.customer_id ?? "";
102
+ message.customer_id = object.customer_id ?? 0;
103
103
  message.otp = object.otp ?? "";
104
104
  message.loan_id = object.loan_id ?? 0;
105
105
  message.transaction_id = object.transaction_id ?? "";
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "kyc.ckycresendotp";
3
+ export interface ckycResendOtpRequest {
4
+ customer_id: number;
5
+ transaction_id: string;
6
+ }
7
+ export interface ckycResendOtpResponse {
8
+ message: string;
9
+ status: string;
10
+ }
11
+ export declare const ckycResendOtpRequest: {
12
+ encode(message: ckycResendOtpRequest, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): ckycResendOtpRequest;
14
+ fromJSON(object: any): ckycResendOtpRequest;
15
+ toJSON(message: ckycResendOtpRequest): unknown;
16
+ create<I extends Exact<DeepPartial<ckycResendOtpRequest>, I>>(base?: I): ckycResendOtpRequest;
17
+ fromPartial<I extends Exact<DeepPartial<ckycResendOtpRequest>, I>>(object: I): ckycResendOtpRequest;
18
+ };
19
+ export declare const ckycResendOtpResponse: {
20
+ encode(message: ckycResendOtpResponse, writer?: _m0.Writer): _m0.Writer;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number): ckycResendOtpResponse;
22
+ fromJSON(object: any): ckycResendOtpResponse;
23
+ toJSON(message: ckycResendOtpResponse): unknown;
24
+ create<I extends Exact<DeepPartial<ckycResendOtpResponse>, I>>(base?: I): ckycResendOtpResponse;
25
+ fromPartial<I extends Exact<DeepPartial<ckycResendOtpResponse>, I>>(object: I): ckycResendOtpResponse;
26
+ };
27
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28
+ 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 {} ? {
29
+ [K in keyof T]?: DeepPartial<T[K]>;
30
+ } : Partial<T>;
31
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
32
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
33
+ [K in keyof P]: Exact<P[K], I[K]>;
34
+ } & {
35
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
36
+ };
37
+ export {};
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
+ // source: kyc/ckycresendotp.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.ckycResendOtpResponse = exports.ckycResendOtpRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "kyc.ckycresendotp";
15
+ function createBaseckycResendOtpRequest() {
16
+ return { customer_id: 0, transaction_id: "" };
17
+ }
18
+ exports.ckycResendOtpRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.customer_id !== 0) {
21
+ writer.uint32(8).int32(message.customer_id);
22
+ }
23
+ if (message.transaction_id !== "") {
24
+ writer.uint32(18).string(message.transaction_id);
25
+ }
26
+ return writer;
27
+ },
28
+ decode(input, length) {
29
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
+ let end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = createBaseckycResendOtpRequest();
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1:
36
+ if (tag !== 8) {
37
+ break;
38
+ }
39
+ message.customer_id = reader.int32();
40
+ continue;
41
+ case 2:
42
+ if (tag !== 18) {
43
+ break;
44
+ }
45
+ message.transaction_id = reader.string();
46
+ continue;
47
+ }
48
+ if ((tag & 7) === 4 || tag === 0) {
49
+ break;
50
+ }
51
+ reader.skipType(tag & 7);
52
+ }
53
+ return message;
54
+ },
55
+ fromJSON(object) {
56
+ return {
57
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
58
+ transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
59
+ };
60
+ },
61
+ toJSON(message) {
62
+ const obj = {};
63
+ if (message.customer_id !== 0) {
64
+ obj.customer_id = Math.round(message.customer_id);
65
+ }
66
+ if (message.transaction_id !== "") {
67
+ obj.transaction_id = message.transaction_id;
68
+ }
69
+ return obj;
70
+ },
71
+ create(base) {
72
+ return exports.ckycResendOtpRequest.fromPartial(base ?? {});
73
+ },
74
+ fromPartial(object) {
75
+ const message = createBaseckycResendOtpRequest();
76
+ message.customer_id = object.customer_id ?? 0;
77
+ message.transaction_id = object.transaction_id ?? "";
78
+ return message;
79
+ },
80
+ };
81
+ function createBaseckycResendOtpResponse() {
82
+ return { message: "", status: "" };
83
+ }
84
+ exports.ckycResendOtpResponse = {
85
+ encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.message !== "") {
87
+ writer.uint32(10).string(message.message);
88
+ }
89
+ if (message.status !== "") {
90
+ writer.uint32(18).string(message.status);
91
+ }
92
+ return writer;
93
+ },
94
+ decode(input, length) {
95
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
96
+ let end = length === undefined ? reader.len : reader.pos + length;
97
+ const message = createBaseckycResendOtpResponse();
98
+ while (reader.pos < end) {
99
+ const tag = reader.uint32();
100
+ switch (tag >>> 3) {
101
+ case 1:
102
+ if (tag !== 10) {
103
+ break;
104
+ }
105
+ message.message = reader.string();
106
+ continue;
107
+ case 2:
108
+ if (tag !== 18) {
109
+ break;
110
+ }
111
+ message.status = reader.string();
112
+ continue;
113
+ }
114
+ if ((tag & 7) === 4 || tag === 0) {
115
+ break;
116
+ }
117
+ reader.skipType(tag & 7);
118
+ }
119
+ return message;
120
+ },
121
+ fromJSON(object) {
122
+ return {
123
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
124
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
125
+ };
126
+ },
127
+ toJSON(message) {
128
+ const obj = {};
129
+ if (message.message !== "") {
130
+ obj.message = message.message;
131
+ }
132
+ if (message.status !== "") {
133
+ obj.status = message.status;
134
+ }
135
+ return obj;
136
+ },
137
+ create(base) {
138
+ return exports.ckycResendOtpResponse.fromPartial(base ?? {});
139
+ },
140
+ fromPartial(object) {
141
+ const message = createBaseckycResendOtpResponse();
142
+ message.message = object.message ?? "";
143
+ message.status = object.status ?? "";
144
+ return message;
145
+ },
146
+ };
147
+ function isSet(value) {
148
+ return value !== null && value !== undefined;
149
+ }
package/ts/kyc.d.ts CHANGED
@@ -3,6 +3,7 @@ import { amlDetailsRequest, amlDetailsResponse } from "./kyc/amldetails";
3
3
  import { authbridgeRequest, authbridgeResponse } from "./kyc/authbridgepancomprehend";
4
4
  import { bureauWpRequest, bureauWpResponse } from "./kyc/bureauidwhatsapp";
5
5
  import { ckycFetchRecordRequest, ckycFetchRecordResponse } from "./kyc/ckycfetchrecord";
6
+ import { ckycResendOtpRequest, ckycResendOtpResponse } from "./kyc/ckycresendotp";
6
7
  import { CkycV1SearchRequest, CkycV1SearchResponse } from "./kyc/ckycsearchv1";
7
8
  import { faceMatchRequest, faceMatchResponse } from "./kyc/facematch";
8
9
  import { fetchAadhaarByPanRequest, fetchAadhaarByPanResponse } from "./kyc/fetchaadhaarbypan";
@@ -132,6 +133,15 @@ export declare const kycService: {
132
133
  readonly responseSerialize: (value: ckycFetchRecordResponse) => Buffer;
133
134
  readonly responseDeserialize: (value: Buffer) => ckycFetchRecordResponse;
134
135
  };
136
+ readonly ckycResendOtp: {
137
+ readonly path: "/service.kyc/ckycResendOtp";
138
+ readonly requestStream: false;
139
+ readonly responseStream: false;
140
+ readonly requestSerialize: (value: ckycResendOtpRequest) => Buffer;
141
+ readonly requestDeserialize: (value: Buffer) => ckycResendOtpRequest;
142
+ readonly responseSerialize: (value: ckycResendOtpResponse) => Buffer;
143
+ readonly responseDeserialize: (value: Buffer) => ckycResendOtpResponse;
144
+ };
135
145
  };
136
146
  export interface kycServer extends UntypedServiceImplementation {
137
147
  fetchUanList: handleUnaryCall<fetchUanListRequest, fetchUanListResponse>;
@@ -147,6 +157,7 @@ export interface kycServer extends UntypedServiceImplementation {
147
157
  getOkycLinkHyperverge: handleUnaryCall<okyclinkHypervergeRequest, okyclinkHypervergeResponse>;
148
158
  searchCkyc: handleUnaryCall<CkycV1SearchRequest, CkycV1SearchResponse>;
149
159
  ckycFetchRecord: handleUnaryCall<ckycFetchRecordRequest, ckycFetchRecordResponse>;
160
+ ckycResendOtp: handleUnaryCall<ckycResendOtpRequest, ckycResendOtpResponse>;
150
161
  }
151
162
  export interface kycClient extends Client {
152
163
  fetchUanList(request: fetchUanListRequest, callback: (error: ServiceError | null, response: fetchUanListResponse) => void): ClientUnaryCall;
@@ -188,6 +199,9 @@ export interface kycClient extends Client {
188
199
  ckycFetchRecord(request: ckycFetchRecordRequest, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
189
200
  ckycFetchRecord(request: ckycFetchRecordRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
190
201
  ckycFetchRecord(request: ckycFetchRecordRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ckycFetchRecordResponse) => void): ClientUnaryCall;
202
+ ckycResendOtp(request: ckycResendOtpRequest, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
203
+ ckycResendOtp(request: ckycResendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
204
+ ckycResendOtp(request: ckycResendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ckycResendOtpResponse) => void): ClientUnaryCall;
191
205
  }
192
206
  export declare const kycClient: {
193
207
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): kycClient;
package/ts/kyc.js CHANGED
@@ -12,6 +12,7 @@ const amldetails_1 = require("./kyc/amldetails");
12
12
  const authbridgepancomprehend_1 = require("./kyc/authbridgepancomprehend");
13
13
  const bureauidwhatsapp_1 = require("./kyc/bureauidwhatsapp");
14
14
  const ckycfetchrecord_1 = require("./kyc/ckycfetchrecord");
15
+ const ckycresendotp_1 = require("./kyc/ckycresendotp");
15
16
  const ckycsearchv1_1 = require("./kyc/ckycsearchv1");
16
17
  const facematch_1 = require("./kyc/facematch");
17
18
  const fetchaadhaarbypan_1 = require("./kyc/fetchaadhaarbypan");
@@ -140,5 +141,14 @@ exports.kycService = {
140
141
  responseSerialize: (value) => Buffer.from(ckycfetchrecord_1.ckycFetchRecordResponse.encode(value).finish()),
141
142
  responseDeserialize: (value) => ckycfetchrecord_1.ckycFetchRecordResponse.decode(value),
142
143
  },
144
+ ckycResendOtp: {
145
+ path: "/service.kyc/ckycResendOtp",
146
+ requestStream: false,
147
+ responseStream: false,
148
+ requestSerialize: (value) => Buffer.from(ckycresendotp_1.ckycResendOtpRequest.encode(value).finish()),
149
+ requestDeserialize: (value) => ckycresendotp_1.ckycResendOtpRequest.decode(value),
150
+ responseSerialize: (value) => Buffer.from(ckycresendotp_1.ckycResendOtpResponse.encode(value).finish()),
151
+ responseDeserialize: (value) => ckycresendotp_1.ckycResendOtpResponse.decode(value),
152
+ },
143
153
  };
144
154
  exports.kycClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.kycService, "service.kyc");