@stashfin/grpc 1.2.287 → 1.2.288

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.287",
3
+ "version": "1.2.288",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,40 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.enach.updateenachtxnstatus";
3
+ export interface updateEnachTxnStatusRequest {
4
+ order_id: string;
5
+ status: string;
6
+ mode?: string | undefined;
7
+ customer_id?: number | undefined;
8
+ clint_id?: string | undefined;
9
+ }
10
+ export interface updateEnachTxnStatusResponse {
11
+ acknowledgement: string;
12
+ order_id: string;
13
+ }
14
+ export declare const updateEnachTxnStatusRequest: {
15
+ encode(message: updateEnachTxnStatusRequest, writer?: _m0.Writer): _m0.Writer;
16
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateEnachTxnStatusRequest;
17
+ fromJSON(object: any): updateEnachTxnStatusRequest;
18
+ toJSON(message: updateEnachTxnStatusRequest): unknown;
19
+ create<I extends Exact<DeepPartial<updateEnachTxnStatusRequest>, I>>(base?: I): updateEnachTxnStatusRequest;
20
+ fromPartial<I extends Exact<DeepPartial<updateEnachTxnStatusRequest>, I>>(object: I): updateEnachTxnStatusRequest;
21
+ };
22
+ export declare const updateEnachTxnStatusResponse: {
23
+ encode(message: updateEnachTxnStatusResponse, writer?: _m0.Writer): _m0.Writer;
24
+ decode(input: _m0.Reader | Uint8Array, length?: number): updateEnachTxnStatusResponse;
25
+ fromJSON(object: any): updateEnachTxnStatusResponse;
26
+ toJSON(message: updateEnachTxnStatusResponse): unknown;
27
+ create<I extends Exact<DeepPartial<updateEnachTxnStatusResponse>, I>>(base?: I): updateEnachTxnStatusResponse;
28
+ fromPartial<I extends Exact<DeepPartial<updateEnachTxnStatusResponse>, I>>(object: I): updateEnachTxnStatusResponse;
29
+ };
30
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
31
+ 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 {} ? {
32
+ [K in keyof T]?: DeepPartial<T[K]>;
33
+ } : Partial<T>;
34
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
35
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
36
+ [K in keyof P]: Exact<P[K], I[K]>;
37
+ } & {
38
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
39
+ };
40
+ export {};
@@ -0,0 +1,205 @@
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.2
6
+ // source: customers/enach/updateenachtxnstatus.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.updateEnachTxnStatusResponse = exports.updateEnachTxnStatusRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const long_1 = __importDefault(require("long"));
14
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
+ exports.protobufPackage = "customers.enach.updateenachtxnstatus";
16
+ function createBaseupdateEnachTxnStatusRequest() {
17
+ return { order_id: "", status: "", mode: undefined, customer_id: undefined, clint_id: undefined };
18
+ }
19
+ exports.updateEnachTxnStatusRequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.order_id !== "") {
22
+ writer.uint32(10).string(message.order_id);
23
+ }
24
+ if (message.status !== "") {
25
+ writer.uint32(18).string(message.status);
26
+ }
27
+ if (message.mode !== undefined) {
28
+ writer.uint32(26).string(message.mode);
29
+ }
30
+ if (message.customer_id !== undefined) {
31
+ writer.uint32(32).int64(message.customer_id);
32
+ }
33
+ if (message.clint_id !== undefined) {
34
+ writer.uint32(42).string(message.clint_id);
35
+ }
36
+ return writer;
37
+ },
38
+ decode(input, length) {
39
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
40
+ let end = length === undefined ? reader.len : reader.pos + length;
41
+ const message = createBaseupdateEnachTxnStatusRequest();
42
+ while (reader.pos < end) {
43
+ const tag = reader.uint32();
44
+ switch (tag >>> 3) {
45
+ case 1:
46
+ if (tag !== 10) {
47
+ break;
48
+ }
49
+ message.order_id = reader.string();
50
+ continue;
51
+ case 2:
52
+ if (tag !== 18) {
53
+ break;
54
+ }
55
+ message.status = reader.string();
56
+ continue;
57
+ case 3:
58
+ if (tag !== 26) {
59
+ break;
60
+ }
61
+ message.mode = reader.string();
62
+ continue;
63
+ case 4:
64
+ if (tag !== 32) {
65
+ break;
66
+ }
67
+ message.customer_id = longToNumber(reader.int64());
68
+ continue;
69
+ case 5:
70
+ if (tag !== 42) {
71
+ break;
72
+ }
73
+ message.clint_id = 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 {
85
+ order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
86
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
87
+ mode: isSet(object.mode) ? globalThis.String(object.mode) : undefined,
88
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
89
+ clint_id: isSet(object.clint_id) ? globalThis.String(object.clint_id) : undefined,
90
+ };
91
+ },
92
+ toJSON(message) {
93
+ const obj = {};
94
+ if (message.order_id !== "") {
95
+ obj.order_id = message.order_id;
96
+ }
97
+ if (message.status !== "") {
98
+ obj.status = message.status;
99
+ }
100
+ if (message.mode !== undefined) {
101
+ obj.mode = message.mode;
102
+ }
103
+ if (message.customer_id !== undefined) {
104
+ obj.customer_id = Math.round(message.customer_id);
105
+ }
106
+ if (message.clint_id !== undefined) {
107
+ obj.clint_id = message.clint_id;
108
+ }
109
+ return obj;
110
+ },
111
+ create(base) {
112
+ return exports.updateEnachTxnStatusRequest.fromPartial(base ?? {});
113
+ },
114
+ fromPartial(object) {
115
+ const message = createBaseupdateEnachTxnStatusRequest();
116
+ message.order_id = object.order_id ?? "";
117
+ message.status = object.status ?? "";
118
+ message.mode = object.mode ?? undefined;
119
+ message.customer_id = object.customer_id ?? undefined;
120
+ message.clint_id = object.clint_id ?? undefined;
121
+ return message;
122
+ },
123
+ };
124
+ function createBaseupdateEnachTxnStatusResponse() {
125
+ return { acknowledgement: "", order_id: "" };
126
+ }
127
+ exports.updateEnachTxnStatusResponse = {
128
+ encode(message, writer = minimal_1.default.Writer.create()) {
129
+ if (message.acknowledgement !== "") {
130
+ writer.uint32(10).string(message.acknowledgement);
131
+ }
132
+ if (message.order_id !== "") {
133
+ writer.uint32(18).string(message.order_id);
134
+ }
135
+ return writer;
136
+ },
137
+ decode(input, length) {
138
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
139
+ let end = length === undefined ? reader.len : reader.pos + length;
140
+ const message = createBaseupdateEnachTxnStatusResponse();
141
+ while (reader.pos < end) {
142
+ const tag = reader.uint32();
143
+ switch (tag >>> 3) {
144
+ case 1:
145
+ if (tag !== 10) {
146
+ break;
147
+ }
148
+ message.acknowledgement = reader.string();
149
+ continue;
150
+ case 2:
151
+ if (tag !== 18) {
152
+ break;
153
+ }
154
+ message.order_id = reader.string();
155
+ continue;
156
+ }
157
+ if ((tag & 7) === 4 || tag === 0) {
158
+ break;
159
+ }
160
+ reader.skipType(tag & 7);
161
+ }
162
+ return message;
163
+ },
164
+ fromJSON(object) {
165
+ return {
166
+ acknowledgement: isSet(object.acknowledgement) ? globalThis.String(object.acknowledgement) : "",
167
+ order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
168
+ };
169
+ },
170
+ toJSON(message) {
171
+ const obj = {};
172
+ if (message.acknowledgement !== "") {
173
+ obj.acknowledgement = message.acknowledgement;
174
+ }
175
+ if (message.order_id !== "") {
176
+ obj.order_id = message.order_id;
177
+ }
178
+ return obj;
179
+ },
180
+ create(base) {
181
+ return exports.updateEnachTxnStatusResponse.fromPartial(base ?? {});
182
+ },
183
+ fromPartial(object) {
184
+ const message = createBaseupdateEnachTxnStatusResponse();
185
+ message.acknowledgement = object.acknowledgement ?? "";
186
+ message.order_id = object.order_id ?? "";
187
+ return message;
188
+ },
189
+ };
190
+ function longToNumber(long) {
191
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
192
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
193
+ }
194
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
195
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
196
+ }
197
+ return long.toNumber();
198
+ }
199
+ if (minimal_1.default.util.Long !== long_1.default) {
200
+ minimal_1.default.util.Long = long_1.default;
201
+ minimal_1.default.configure();
202
+ }
203
+ function isSet(value) {
204
+ return value !== null && value !== undefined;
205
+ }
package/ts/customers.d.ts CHANGED
@@ -26,7 +26,7 @@ import { deleteProfileRequest, deleteProfileResponse } from "./customers/deletep
26
26
  import { disableMpinRequest, disableMpinResponse } from "./customers/disablempin";
27
27
  import { getTxnStatusRequest, getTxnStatusResponse } from "./customers/enach/gettxnstatus";
28
28
  import { getWebUrlRequest, getWebUrlResponse } from "./customers/enach/getweburl";
29
- import { updateTxnStatusRequest, updateTxnStatusResponse } from "./customers/enach/updatetxnstatus";
29
+ import { updateEnachTxnStatusRequest, updateEnachTxnStatusResponse } from "./customers/enach/updateenachtxnstatus";
30
30
  import { fetchRCProfileRequest, fetchRCProfileResponse } from "./customers/fetchrcprofile";
31
31
  import { getFloatingVideosRequest, getFloatingVideosResponse } from "./customers/floatingvideos";
32
32
  import { forceUpdateRequest, forceUpdateResponse } from "./customers/forceupdate";
@@ -695,10 +695,10 @@ export declare const customersService: {
695
695
  readonly path: "/service.customers/updateEnachTxnStatus";
696
696
  readonly requestStream: false;
697
697
  readonly responseStream: false;
698
- readonly requestSerialize: (value: updateTxnStatusRequest) => Buffer;
699
- readonly requestDeserialize: (value: Buffer) => updateTxnStatusRequest;
700
- readonly responseSerialize: (value: updateTxnStatusResponse) => Buffer;
701
- readonly responseDeserialize: (value: Buffer) => updateTxnStatusResponse;
698
+ readonly requestSerialize: (value: updateEnachTxnStatusRequest) => Buffer;
699
+ readonly requestDeserialize: (value: Buffer) => updateEnachTxnStatusRequest;
700
+ readonly responseSerialize: (value: updateEnachTxnStatusResponse) => Buffer;
701
+ readonly responseDeserialize: (value: Buffer) => updateEnachTxnStatusResponse;
702
702
  };
703
703
  readonly cBSignup: {
704
704
  readonly path: "/service.customers/cBSignup";
@@ -949,7 +949,7 @@ export interface customersServer extends UntypedServiceImplementation {
949
949
  getPaymentSummary: handleUnaryCall<getPaymentSummaryRequest, getPaymentSummaryResponse>;
950
950
  getEnachUrl: handleUnaryCall<getWebUrlRequest, getWebUrlResponse>;
951
951
  getEnachTxnStatus: handleUnaryCall<getTxnStatusRequest, getTxnStatusResponse>;
952
- updateEnachTxnStatus: handleUnaryCall<updateTxnStatusRequest, updateTxnStatusResponse>;
952
+ updateEnachTxnStatus: handleUnaryCall<updateEnachTxnStatusRequest, updateEnachTxnStatusResponse>;
953
953
  cBSignup: handleUnaryCall<cBSignupRequest, cBSignupResponse>;
954
954
  payNow: handleUnaryCall<payNowRequest, payNowResponse>;
955
955
  getPdBankList: handleUnaryCall<getPdBankListRequest, getPdBankListResponse>;
@@ -1173,9 +1173,9 @@ export interface customersClient extends Client {
1173
1173
  getEnachTxnStatus(request: getTxnStatusRequest, callback: (error: ServiceError | null, response: getTxnStatusResponse) => void): ClientUnaryCall;
1174
1174
  getEnachTxnStatus(request: getTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getTxnStatusResponse) => void): ClientUnaryCall;
1175
1175
  getEnachTxnStatus(request: getTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTxnStatusResponse) => void): ClientUnaryCall;
1176
- updateEnachTxnStatus(request: updateTxnStatusRequest, callback: (error: ServiceError | null, response: updateTxnStatusResponse) => void): ClientUnaryCall;
1177
- updateEnachTxnStatus(request: updateTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateTxnStatusResponse) => void): ClientUnaryCall;
1178
- updateEnachTxnStatus(request: updateTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateTxnStatusResponse) => void): ClientUnaryCall;
1176
+ updateEnachTxnStatus(request: updateEnachTxnStatusRequest, callback: (error: ServiceError | null, response: updateEnachTxnStatusResponse) => void): ClientUnaryCall;
1177
+ updateEnachTxnStatus(request: updateEnachTxnStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateEnachTxnStatusResponse) => void): ClientUnaryCall;
1178
+ updateEnachTxnStatus(request: updateEnachTxnStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateEnachTxnStatusResponse) => void): ClientUnaryCall;
1179
1179
  cBSignup(request: cBSignupRequest, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
1180
1180
  cBSignup(request: cBSignupRequest, metadata: Metadata, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
1181
1181
  cBSignup(request: cBSignupRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: cBSignupResponse) => void): ClientUnaryCall;
package/ts/customers.js CHANGED
@@ -35,7 +35,7 @@ const deleteprofile_1 = require("./customers/deleteprofile");
35
35
  const disablempin_1 = require("./customers/disablempin");
36
36
  const gettxnstatus_1 = require("./customers/enach/gettxnstatus");
37
37
  const getweburl_1 = require("./customers/enach/getweburl");
38
- const updatetxnstatus_1 = require("./customers/enach/updatetxnstatus");
38
+ const updateenachtxnstatus_1 = require("./customers/enach/updateenachtxnstatus");
39
39
  const fetchrcprofile_1 = require("./customers/fetchrcprofile");
40
40
  const floatingvideos_1 = require("./customers/floatingvideos");
41
41
  const forceupdate_1 = require("./customers/forceupdate");
@@ -703,10 +703,10 @@ exports.customersService = {
703
703
  path: "/service.customers/updateEnachTxnStatus",
704
704
  requestStream: false,
705
705
  responseStream: false,
706
- requestSerialize: (value) => Buffer.from(updatetxnstatus_1.updateTxnStatusRequest.encode(value).finish()),
707
- requestDeserialize: (value) => updatetxnstatus_1.updateTxnStatusRequest.decode(value),
708
- responseSerialize: (value) => Buffer.from(updatetxnstatus_1.updateTxnStatusResponse.encode(value).finish()),
709
- responseDeserialize: (value) => updatetxnstatus_1.updateTxnStatusResponse.decode(value),
706
+ requestSerialize: (value) => Buffer.from(updateenachtxnstatus_1.updateEnachTxnStatusRequest.encode(value).finish()),
707
+ requestDeserialize: (value) => updateenachtxnstatus_1.updateEnachTxnStatusRequest.decode(value),
708
+ responseSerialize: (value) => Buffer.from(updateenachtxnstatus_1.updateEnachTxnStatusResponse.encode(value).finish()),
709
+ responseDeserialize: (value) => updateenachtxnstatus_1.updateEnachTxnStatusResponse.decode(value),
710
710
  },
711
711
  cBSignup: {
712
712
  path: "/service.customers/cBSignup",