@stashfin/grpc 1.2.113 → 1.2.116

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.113",
3
+ "version": "1.2.116",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,37 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.updateokyctxn";
3
+ export interface updateOkycTxnRequest {
4
+ transactionId?: string | undefined;
5
+ status?: string | undefined;
6
+ type: string;
7
+ }
8
+ export interface updateOkycTxnResponse {
9
+ status: boolean;
10
+ }
11
+ export declare const updateOkycTxnRequest: {
12
+ encode(message: updateOkycTxnRequest, writer?: _m0.Writer): _m0.Writer;
13
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateOkycTxnRequest;
14
+ fromJSON(object: any): updateOkycTxnRequest;
15
+ toJSON(message: updateOkycTxnRequest): unknown;
16
+ create<I extends Exact<DeepPartial<updateOkycTxnRequest>, I>>(base?: I): updateOkycTxnRequest;
17
+ fromPartial<I extends Exact<DeepPartial<updateOkycTxnRequest>, I>>(object: I): updateOkycTxnRequest;
18
+ };
19
+ export declare const updateOkycTxnResponse: {
20
+ encode(message: updateOkycTxnResponse, writer?: _m0.Writer): _m0.Writer;
21
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateOkycTxnResponse;
22
+ fromJSON(object: any): updateOkycTxnResponse;
23
+ toJSON(message: updateOkycTxnResponse): unknown;
24
+ create<I extends Exact<DeepPartial<updateOkycTxnResponse>, I>>(base?: I): updateOkycTxnResponse;
25
+ fromPartial<I extends Exact<DeepPartial<updateOkycTxnResponse>, I>>(object: I): updateOkycTxnResponse;
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,147 @@
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.3
6
+ // source: customers/updateokyctxn.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.updateOkycTxnResponse = exports.updateOkycTxnRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.updateokyctxn";
15
+ function createBaseupdateOkycTxnRequest() {
16
+ return { transactionId: undefined, status: undefined, type: "" };
17
+ }
18
+ exports.updateOkycTxnRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.transactionId !== undefined) {
21
+ writer.uint32(10).string(message.transactionId);
22
+ }
23
+ if (message.status !== undefined) {
24
+ writer.uint32(18).string(message.status);
25
+ }
26
+ if (message.type !== "") {
27
+ writer.uint32(26).string(message.type);
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 = createBaseupdateOkycTxnRequest();
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.transactionId = reader.string();
43
+ continue;
44
+ case 2:
45
+ if (tag !== 18) {
46
+ break;
47
+ }
48
+ message.status = reader.string();
49
+ continue;
50
+ case 3:
51
+ if (tag !== 26) {
52
+ break;
53
+ }
54
+ message.type = 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
+ transactionId: isSet(object.transactionId) ? globalThis.String(object.transactionId) : undefined,
67
+ status: isSet(object.status) ? globalThis.String(object.status) : undefined,
68
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
69
+ };
70
+ },
71
+ toJSON(message) {
72
+ const obj = {};
73
+ if (message.transactionId !== undefined) {
74
+ obj.transactionId = message.transactionId;
75
+ }
76
+ if (message.status !== undefined) {
77
+ obj.status = message.status;
78
+ }
79
+ if (message.type !== "") {
80
+ obj.type = message.type;
81
+ }
82
+ return obj;
83
+ },
84
+ create(base) {
85
+ return exports.updateOkycTxnRequest.fromPartial(base ?? {});
86
+ },
87
+ fromPartial(object) {
88
+ const message = createBaseupdateOkycTxnRequest();
89
+ message.transactionId = object.transactionId ?? undefined;
90
+ message.status = object.status ?? undefined;
91
+ message.type = object.type ?? "";
92
+ return message;
93
+ },
94
+ };
95
+ function createBaseupdateOkycTxnResponse() {
96
+ return { status: false };
97
+ }
98
+ exports.updateOkycTxnResponse = {
99
+ encode(message, writer = minimal_1.default.Writer.create()) {
100
+ if (message.status !== false) {
101
+ writer.uint32(8).bool(message.status);
102
+ }
103
+ return writer;
104
+ },
105
+ decode(input, length) {
106
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
107
+ let end = length === undefined ? reader.len : reader.pos + length;
108
+ const message = createBaseupdateOkycTxnResponse();
109
+ while (reader.pos < end) {
110
+ const tag = reader.uint32();
111
+ switch (tag >>> 3) {
112
+ case 1:
113
+ if (tag !== 8) {
114
+ break;
115
+ }
116
+ message.status = reader.bool();
117
+ continue;
118
+ }
119
+ if ((tag & 7) === 4 || tag === 0) {
120
+ break;
121
+ }
122
+ reader.skipType(tag & 7);
123
+ }
124
+ return message;
125
+ },
126
+ fromJSON(object) {
127
+ return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
128
+ },
129
+ toJSON(message) {
130
+ const obj = {};
131
+ if (message.status !== false) {
132
+ obj.status = message.status;
133
+ }
134
+ return obj;
135
+ },
136
+ create(base) {
137
+ return exports.updateOkycTxnResponse.fromPartial(base ?? {});
138
+ },
139
+ fromPartial(object) {
140
+ const message = createBaseupdateOkycTxnResponse();
141
+ message.status = object.status ?? false;
142
+ return message;
143
+ },
144
+ };
145
+ function isSet(value) {
146
+ return value !== null && value !== undefined;
147
+ }
package/ts/customers.d.ts CHANGED
@@ -37,12 +37,11 @@ import { step7Request, step7Response } from "./customers/step7";
37
37
  import { step8Request, step8Response } from "./customers/step8";
38
38
  import { step9Request, step9Response } from "./customers/step9";
39
39
  import { stepstaticRequest, stepstaticResponse } from "./customers/stepstatic";
40
- import { updateDigiLockerTxnRequest, updateDigiLockerTxnResponse } from "./customers/updatedigilockertxn";
41
40
  import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
42
- import { updateHypervergeTxnRequest, updateHypervergeTxnResponse } from "./customers/updatehypervergetxn";
43
41
  import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus";
44
42
  import { updateMobileSendOtpRequest, updateMobileSendOtpResponse } from "./customers/updatemobilesendotp";
45
43
  import { updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse } from "./customers/updatemobileverifyotp";
44
+ import { updateOkycTxnRequest, updateOkycTxnResponse } from "./customers/updateokyctxn";
46
45
  import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
47
46
  import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
48
47
  import { verifyOtpReqeust, verifyOtpResponse } from "./customers/verifyotp";
@@ -383,23 +382,14 @@ export declare const customersService: {
383
382
  readonly responseSerialize: (value: getDocumentsResponse) => Buffer;
384
383
  readonly responseDeserialize: (value: Buffer) => getDocumentsResponse;
385
384
  };
386
- readonly updateDigiLockerTxn: {
387
- readonly path: "/service.customers/updateDigiLockerTxn";
385
+ readonly updateOkycTxn: {
386
+ readonly path: "/service.customers/updateOkycTxn";
388
387
  readonly requestStream: false;
389
388
  readonly responseStream: false;
390
- readonly requestSerialize: (value: updateDigiLockerTxnRequest) => Buffer;
391
- readonly requestDeserialize: (value: Buffer) => updateDigiLockerTxnRequest;
392
- readonly responseSerialize: (value: updateDigiLockerTxnResponse) => Buffer;
393
- readonly responseDeserialize: (value: Buffer) => updateDigiLockerTxnResponse;
394
- };
395
- readonly updateHypervergeTxn: {
396
- readonly path: "/service.customers/updateHypervergeTxn";
397
- readonly requestStream: false;
398
- readonly responseStream: false;
399
- readonly requestSerialize: (value: updateHypervergeTxnRequest) => Buffer;
400
- readonly requestDeserialize: (value: Buffer) => updateHypervergeTxnRequest;
401
- readonly responseSerialize: (value: updateHypervergeTxnResponse) => Buffer;
402
- readonly responseDeserialize: (value: Buffer) => updateHypervergeTxnResponse;
389
+ readonly requestSerialize: (value: updateOkycTxnRequest) => Buffer;
390
+ readonly requestDeserialize: (value: Buffer) => updateOkycTxnRequest;
391
+ readonly responseSerialize: (value: updateOkycTxnResponse) => Buffer;
392
+ readonly responseDeserialize: (value: Buffer) => updateOkycTxnResponse;
403
393
  };
404
394
  readonly addAddress: {
405
395
  readonly path: "/service.customers/addAddress";
@@ -575,8 +565,7 @@ export interface customersServer extends UntypedServiceImplementation {
575
565
  getAllStates: handleUnaryCall<getAllStatesRequest, getAllStatesResponse>;
576
566
  getCitiesByStateId: handleUnaryCall<getCitiesRequest, getCitiesResponse>;
577
567
  getDocumentList: handleUnaryCall<getDocumentsRequest, getDocumentsResponse>;
578
- updateDigiLockerTxn: handleUnaryCall<updateDigiLockerTxnRequest, updateDigiLockerTxnResponse>;
579
- updateHypervergeTxn: handleUnaryCall<updateHypervergeTxnRequest, updateHypervergeTxnResponse>;
568
+ updateOkycTxn: handleUnaryCall<updateOkycTxnRequest, updateOkycTxnResponse>;
580
569
  addAddress: handleUnaryCall<addAddressRequest, addAddressResponse>;
581
570
  getKycWebUrl: handleUnaryCall<getKycWebUrlRequest, getKycWebUrlResponse>;
582
571
  updateDob: handleUnaryCall<updateDOBRequest, updateDOBResponse>;
@@ -705,12 +694,9 @@ export interface customersClient extends Client {
705
694
  getDocumentList(request: getDocumentsRequest, callback: (error: ServiceError | null, response: getDocumentsResponse) => void): ClientUnaryCall;
706
695
  getDocumentList(request: getDocumentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getDocumentsResponse) => void): ClientUnaryCall;
707
696
  getDocumentList(request: getDocumentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getDocumentsResponse) => void): ClientUnaryCall;
708
- updateDigiLockerTxn(request: updateDigiLockerTxnRequest, callback: (error: ServiceError | null, response: updateDigiLockerTxnResponse) => void): ClientUnaryCall;
709
- updateDigiLockerTxn(request: updateDigiLockerTxnRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateDigiLockerTxnResponse) => void): ClientUnaryCall;
710
- updateDigiLockerTxn(request: updateDigiLockerTxnRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateDigiLockerTxnResponse) => void): ClientUnaryCall;
711
- updateHypervergeTxn(request: updateHypervergeTxnRequest, callback: (error: ServiceError | null, response: updateHypervergeTxnResponse) => void): ClientUnaryCall;
712
- updateHypervergeTxn(request: updateHypervergeTxnRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateHypervergeTxnResponse) => void): ClientUnaryCall;
713
- updateHypervergeTxn(request: updateHypervergeTxnRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateHypervergeTxnResponse) => void): ClientUnaryCall;
697
+ updateOkycTxn(request: updateOkycTxnRequest, callback: (error: ServiceError | null, response: updateOkycTxnResponse) => void): ClientUnaryCall;
698
+ updateOkycTxn(request: updateOkycTxnRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateOkycTxnResponse) => void): ClientUnaryCall;
699
+ updateOkycTxn(request: updateOkycTxnRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateOkycTxnResponse) => void): ClientUnaryCall;
714
700
  addAddress(request: addAddressRequest, callback: (error: ServiceError | null, response: addAddressResponse) => void): ClientUnaryCall;
715
701
  addAddress(request: addAddressRequest, metadata: Metadata, callback: (error: ServiceError | null, response: addAddressResponse) => void): ClientUnaryCall;
716
702
  addAddress(request: addAddressRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: addAddressResponse) => void): ClientUnaryCall;
package/ts/customers.js CHANGED
@@ -46,12 +46,11 @@ const step7_1 = require("./customers/step7");
46
46
  const step8_1 = require("./customers/step8");
47
47
  const step9_1 = require("./customers/step9");
48
48
  const stepstatic_1 = require("./customers/stepstatic");
49
- const updatedigilockertxn_1 = require("./customers/updatedigilockertxn");
50
49
  const updatedob_1 = require("./customers/updatedob");
51
- const updatehypervergetxn_1 = require("./customers/updatehypervergetxn");
52
50
  const updatelocstatus_1 = require("./customers/updatelocstatus");
53
51
  const updatemobilesendotp_1 = require("./customers/updatemobilesendotp");
54
52
  const updatemobileverifyotp_1 = require("./customers/updatemobileverifyotp");
53
+ const updateokyctxn_1 = require("./customers/updateokyctxn");
55
54
  const validatepan_1 = require("./customers/validatepan");
56
55
  const verifympin_1 = require("./customers/verifympin");
57
56
  const verifyotp_1 = require("./customers/verifyotp");
@@ -391,23 +390,14 @@ exports.customersService = {
391
390
  responseSerialize: (value) => Buffer.from(getdocuments_1.getDocumentsResponse.encode(value).finish()),
392
391
  responseDeserialize: (value) => getdocuments_1.getDocumentsResponse.decode(value),
393
392
  },
394
- updateDigiLockerTxn: {
395
- path: "/service.customers/updateDigiLockerTxn",
393
+ updateOkycTxn: {
394
+ path: "/service.customers/updateOkycTxn",
396
395
  requestStream: false,
397
396
  responseStream: false,
398
- requestSerialize: (value) => Buffer.from(updatedigilockertxn_1.updateDigiLockerTxnRequest.encode(value).finish()),
399
- requestDeserialize: (value) => updatedigilockertxn_1.updateDigiLockerTxnRequest.decode(value),
400
- responseSerialize: (value) => Buffer.from(updatedigilockertxn_1.updateDigiLockerTxnResponse.encode(value).finish()),
401
- responseDeserialize: (value) => updatedigilockertxn_1.updateDigiLockerTxnResponse.decode(value),
402
- },
403
- updateHypervergeTxn: {
404
- path: "/service.customers/updateHypervergeTxn",
405
- requestStream: false,
406
- responseStream: false,
407
- requestSerialize: (value) => Buffer.from(updatehypervergetxn_1.updateHypervergeTxnRequest.encode(value).finish()),
408
- requestDeserialize: (value) => updatehypervergetxn_1.updateHypervergeTxnRequest.decode(value),
409
- responseSerialize: (value) => Buffer.from(updatehypervergetxn_1.updateHypervergeTxnResponse.encode(value).finish()),
410
- responseDeserialize: (value) => updatehypervergetxn_1.updateHypervergeTxnResponse.decode(value),
397
+ requestSerialize: (value) => Buffer.from(updateokyctxn_1.updateOkycTxnRequest.encode(value).finish()),
398
+ requestDeserialize: (value) => updateokyctxn_1.updateOkycTxnRequest.decode(value),
399
+ responseSerialize: (value) => Buffer.from(updateokyctxn_1.updateOkycTxnResponse.encode(value).finish()),
400
+ responseDeserialize: (value) => updateokyctxn_1.updateOkycTxnResponse.decode(value),
411
401
  },
412
402
  addAddress: {
413
403
  path: "/service.customers/addAddress",