@stashfin/grpc 1.2.81 → 1.2.83

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.81",
3
+ "version": "1.2.83",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -5,7 +5,8 @@ export interface initiateRequest {
5
5
  phone_number: string;
6
6
  template_type: string;
7
7
  tracking_id: string;
8
- fipIds: string[];
8
+ journey_type: string;
9
+ fip_ids: string[];
9
10
  }
10
11
  export interface initiateResponse {
11
12
  journey_type: string;
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  exports.protobufPackage = "customers.aa.initiate";
16
16
  function createBaseinitiateRequest() {
17
- return { loan_id: 0, phone_number: "", template_type: "", tracking_id: "", fipIds: [] };
17
+ return { loan_id: 0, phone_number: "", template_type: "", tracking_id: "", journey_type: "", fip_ids: [] };
18
18
  }
19
19
  exports.initiateRequest = {
20
20
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -30,8 +30,11 @@ exports.initiateRequest = {
30
30
  if (message.tracking_id !== "") {
31
31
  writer.uint32(34).string(message.tracking_id);
32
32
  }
33
- for (const v of message.fipIds) {
34
- writer.uint32(42).string(v);
33
+ if (message.journey_type !== "") {
34
+ writer.uint32(42).string(message.journey_type);
35
+ }
36
+ for (const v of message.fip_ids) {
37
+ writer.uint32(50).string(v);
35
38
  }
36
39
  return writer;
37
40
  },
@@ -70,7 +73,13 @@ exports.initiateRequest = {
70
73
  if (tag !== 42) {
71
74
  break;
72
75
  }
73
- message.fipIds.push(reader.string());
76
+ message.journey_type = reader.string();
77
+ continue;
78
+ case 6:
79
+ if (tag !== 50) {
80
+ break;
81
+ }
82
+ message.fip_ids.push(reader.string());
74
83
  continue;
75
84
  }
76
85
  if ((tag & 7) === 4 || tag === 0) {
@@ -86,7 +95,8 @@ exports.initiateRequest = {
86
95
  phone_number: isSet(object.phone_number) ? globalThis.String(object.phone_number) : "",
87
96
  template_type: isSet(object.template_type) ? globalThis.String(object.template_type) : "",
88
97
  tracking_id: isSet(object.tracking_id) ? globalThis.String(object.tracking_id) : "",
89
- fipIds: globalThis.Array.isArray(object?.fipIds) ? object.fipIds.map((e) => globalThis.String(e)) : [],
98
+ journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
99
+ fip_ids: globalThis.Array.isArray(object?.fip_ids) ? object.fip_ids.map((e) => globalThis.String(e)) : [],
90
100
  };
91
101
  },
92
102
  toJSON(message) {
@@ -103,8 +113,11 @@ exports.initiateRequest = {
103
113
  if (message.tracking_id !== "") {
104
114
  obj.tracking_id = message.tracking_id;
105
115
  }
106
- if (message.fipIds?.length) {
107
- obj.fipIds = message.fipIds;
116
+ if (message.journey_type !== "") {
117
+ obj.journey_type = message.journey_type;
118
+ }
119
+ if (message.fip_ids?.length) {
120
+ obj.fip_ids = message.fip_ids;
108
121
  }
109
122
  return obj;
110
123
  },
@@ -117,7 +130,8 @@ exports.initiateRequest = {
117
130
  message.phone_number = object.phone_number ?? "";
118
131
  message.template_type = object.template_type ?? "";
119
132
  message.tracking_id = object.tracking_id ?? "";
120
- message.fipIds = object.fipIds?.map((e) => e) || [];
133
+ message.journey_type = object.journey_type ?? "";
134
+ message.fip_ids = object.fip_ids?.map((e) => e) || [];
121
135
  return message;
122
136
  },
123
137
  };
@@ -0,0 +1,35 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.updatelocstatus";
3
+ export interface locStatusRequest {
4
+ loc_disabled: boolean;
5
+ }
6
+ export interface locStatusResponse {
7
+ status: boolean;
8
+ }
9
+ export declare const locStatusRequest: {
10
+ encode(message: locStatusRequest, writer?: _m0.Writer): _m0.Writer;
11
+ decode(input: _m0.Reader | Uint8Array, length?: number): locStatusRequest;
12
+ fromJSON(object: any): locStatusRequest;
13
+ toJSON(message: locStatusRequest): unknown;
14
+ create<I extends Exact<DeepPartial<locStatusRequest>, I>>(base?: I): locStatusRequest;
15
+ fromPartial<I extends Exact<DeepPartial<locStatusRequest>, I>>(object: I): locStatusRequest;
16
+ };
17
+ export declare const locStatusResponse: {
18
+ encode(message: locStatusResponse, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): locStatusResponse;
20
+ fromJSON(object: any): locStatusResponse;
21
+ toJSON(message: locStatusResponse): unknown;
22
+ create<I extends Exact<DeepPartial<locStatusResponse>, I>>(base?: I): locStatusResponse;
23
+ fromPartial<I extends Exact<DeepPartial<locStatusResponse>, I>>(object: I): locStatusResponse;
24
+ };
25
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
26
+ 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 {} ? {
27
+ [K in keyof T]?: DeepPartial<T[K]>;
28
+ } : Partial<T>;
29
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
30
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
31
+ [K in keyof P]: Exact<P[K], I[K]>;
32
+ } & {
33
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
34
+ };
35
+ export {};
@@ -0,0 +1,117 @@
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 v3.20.3
6
+ // source: customers/updatelocstatus.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.locStatusResponse = exports.locStatusRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.updatelocstatus";
15
+ function createBaselocStatusRequest() {
16
+ return { loc_disabled: false };
17
+ }
18
+ exports.locStatusRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.loc_disabled !== false) {
21
+ writer.uint32(8).bool(message.loc_disabled);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaselocStatusRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 8) {
34
+ break;
35
+ }
36
+ message.loc_disabled = reader.bool();
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { loc_disabled: isSet(object.loc_disabled) ? globalThis.Boolean(object.loc_disabled) : false };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.loc_disabled !== false) {
52
+ obj.loc_disabled = message.loc_disabled;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.locStatusRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaselocStatusRequest();
61
+ message.loc_disabled = object.loc_disabled ?? false;
62
+ return message;
63
+ },
64
+ };
65
+ function createBaselocStatusResponse() {
66
+ return { status: false };
67
+ }
68
+ exports.locStatusResponse = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.status !== false) {
71
+ writer.uint32(8).bool(message.status);
72
+ }
73
+ return writer;
74
+ },
75
+ decode(input, length) {
76
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
77
+ let end = length === undefined ? reader.len : reader.pos + length;
78
+ const message = createBaselocStatusResponse();
79
+ while (reader.pos < end) {
80
+ const tag = reader.uint32();
81
+ switch (tag >>> 3) {
82
+ case 1:
83
+ if (tag !== 8) {
84
+ break;
85
+ }
86
+ message.status = reader.bool();
87
+ continue;
88
+ }
89
+ if ((tag & 7) === 4 || tag === 0) {
90
+ break;
91
+ }
92
+ reader.skipType(tag & 7);
93
+ }
94
+ return message;
95
+ },
96
+ fromJSON(object) {
97
+ return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
98
+ },
99
+ toJSON(message) {
100
+ const obj = {};
101
+ if (message.status !== false) {
102
+ obj.status = message.status;
103
+ }
104
+ return obj;
105
+ },
106
+ create(base) {
107
+ return exports.locStatusResponse.fromPartial(base ?? {});
108
+ },
109
+ fromPartial(object) {
110
+ const message = createBaselocStatusResponse();
111
+ message.status = object.status ?? false;
112
+ return message;
113
+ },
114
+ };
115
+ function isSet(value) {
116
+ return value !== null && value !== undefined;
117
+ }
package/ts/customers.d.ts CHANGED
@@ -37,7 +37,7 @@ import { stepstaticRequest, stepstaticResponse } from "./customers/stepstatic";
37
37
  import { updateDigiLockerTxnRequest, updateDigiLockerTxnResponse } from "./customers/updatedigilockertxn";
38
38
  import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
39
39
  import { updateHypervergeTxnRequest, updateHypervergeTxnResponse } from "./customers/updatehypervergetxn";
40
- import { locDisabledRequest, locDisabledResponse } from "./customers/updatelocdisabled";
40
+ import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus";
41
41
  import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
42
42
  import { verifyEmailRequest, verifyEmailResponse } from "./customers/verifyemail";
43
43
  import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
@@ -459,14 +459,14 @@ export declare const customersService: {
459
459
  readonly responseSerialize: (value: addSuspendedCustomerResponse) => Buffer;
460
460
  readonly responseDeserialize: (value: Buffer) => addSuspendedCustomerResponse;
461
461
  };
462
- readonly updatelocdisabled: {
463
- readonly path: "/service.customers/updatelocdisabled";
462
+ readonly updatelocStatus: {
463
+ readonly path: "/service.customers/updatelocStatus";
464
464
  readonly requestStream: false;
465
465
  readonly responseStream: false;
466
- readonly requestSerialize: (value: locDisabledRequest) => Buffer;
467
- readonly requestDeserialize: (value: Buffer) => locDisabledRequest;
468
- readonly responseSerialize: (value: locDisabledResponse) => Buffer;
469
- readonly responseDeserialize: (value: Buffer) => locDisabledResponse;
466
+ readonly requestSerialize: (value: locStatusRequest) => Buffer;
467
+ readonly requestDeserialize: (value: Buffer) => locStatusRequest;
468
+ readonly responseSerialize: (value: locStatusResponse) => Buffer;
469
+ readonly responseDeserialize: (value: Buffer) => locStatusResponse;
470
470
  };
471
471
  readonly initiateRequest: {
472
472
  readonly path: "/service.customers/initiateRequest";
@@ -534,7 +534,7 @@ export interface customersServer extends UntypedServiceImplementation {
534
534
  deleteProfile: handleUnaryCall<deleteProfileRequest, deleteProfileResponse>;
535
535
  getBankList: handleUnaryCall<getBankListRequest, getBankListResponse>;
536
536
  addSuspendedCustomer: handleUnaryCall<addSuspendedCustomerRequest, addSuspendedCustomerResponse>;
537
- updatelocdisabled: handleUnaryCall<locDisabledRequest, locDisabledResponse>;
537
+ updatelocStatus: handleUnaryCall<locStatusRequest, locStatusResponse>;
538
538
  initiateRequest: handleUnaryCall<initiateRequest, initiateResponse>;
539
539
  addUserApps: handleUnaryCall<AddUserAppsRequest, AddUserAppsResponse>;
540
540
  }
@@ -677,9 +677,9 @@ export interface customersClient extends Client {
677
677
  addSuspendedCustomer(request: addSuspendedCustomerRequest, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
678
678
  addSuspendedCustomer(request: addSuspendedCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
679
679
  addSuspendedCustomer(request: addSuspendedCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: addSuspendedCustomerResponse) => void): ClientUnaryCall;
680
- updatelocdisabled(request: locDisabledRequest, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
681
- updatelocdisabled(request: locDisabledRequest, metadata: Metadata, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
682
- updatelocdisabled(request: locDisabledRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: locDisabledResponse) => void): ClientUnaryCall;
680
+ updatelocStatus(request: locStatusRequest, callback: (error: ServiceError | null, response: locStatusResponse) => void): ClientUnaryCall;
681
+ updatelocStatus(request: locStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: locStatusResponse) => void): ClientUnaryCall;
682
+ updatelocStatus(request: locStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: locStatusResponse) => void): ClientUnaryCall;
683
683
  initiateRequest(request: initiateRequest, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
684
684
  initiateRequest(request: initiateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
685
685
  initiateRequest(request: initiateRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiateResponse) => void): ClientUnaryCall;
package/ts/customers.js CHANGED
@@ -46,7 +46,7 @@ const stepstatic_1 = require("./customers/stepstatic");
46
46
  const updatedigilockertxn_1 = require("./customers/updatedigilockertxn");
47
47
  const updatedob_1 = require("./customers/updatedob");
48
48
  const updatehypervergetxn_1 = require("./customers/updatehypervergetxn");
49
- const updatelocdisabled_1 = require("./customers/updatelocdisabled");
49
+ const updatelocstatus_1 = require("./customers/updatelocstatus");
50
50
  const validatepan_1 = require("./customers/validatepan");
51
51
  const verifyemail_1 = require("./customers/verifyemail");
52
52
  const verifympin_1 = require("./customers/verifympin");
@@ -467,14 +467,14 @@ exports.customersService = {
467
467
  responseSerialize: (value) => Buffer.from(addsuspendedcustomer_1.addSuspendedCustomerResponse.encode(value).finish()),
468
468
  responseDeserialize: (value) => addsuspendedcustomer_1.addSuspendedCustomerResponse.decode(value),
469
469
  },
470
- updatelocdisabled: {
471
- path: "/service.customers/updatelocdisabled",
470
+ updatelocStatus: {
471
+ path: "/service.customers/updatelocStatus",
472
472
  requestStream: false,
473
473
  responseStream: false,
474
- requestSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledRequest.encode(value).finish()),
475
- requestDeserialize: (value) => updatelocdisabled_1.locDisabledRequest.decode(value),
476
- responseSerialize: (value) => Buffer.from(updatelocdisabled_1.locDisabledResponse.encode(value).finish()),
477
- responseDeserialize: (value) => updatelocdisabled_1.locDisabledResponse.decode(value),
474
+ requestSerialize: (value) => Buffer.from(updatelocstatus_1.locStatusRequest.encode(value).finish()),
475
+ requestDeserialize: (value) => updatelocstatus_1.locStatusRequest.decode(value),
476
+ responseSerialize: (value) => Buffer.from(updatelocstatus_1.locStatusResponse.encode(value).finish()),
477
+ responseDeserialize: (value) => updatelocstatus_1.locStatusResponse.decode(value),
478
478
  },
479
479
  initiateRequest: {
480
480
  path: "/service.customers/initiateRequest",