@stashfin/grpc 1.2.698 → 1.2.699
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
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
|
13
13
|
import { updateCustomerRequest, updateCustomerResponse } from "./eqxcustomers/updatecustomer";
|
|
14
14
|
import { updateNotificationRequest, updateNotificationResponse } from "./eqxcustomers/updatenotification";
|
|
15
15
|
import { updatePushIdRequest, updatePushIdResponse } from "./eqxcustomers/updatepushid";
|
|
16
|
+
import { updateSubscriptionStatusRequest, updateSubscriptionStatusResponse } from "./eqxcustomers/updatesubscriptionstatus";
|
|
16
17
|
import { verifyOtpReqeust, verifyOtpResponse } from "./eqxcustomers/verifyotp";
|
|
17
18
|
import { VerifyTokenRequest, VerifyTokenResponse } from "./eqxcustomers/verifytoken";
|
|
18
19
|
export declare const protobufPackage = "service";
|
|
@@ -162,6 +163,15 @@ export declare const eqxcustomersService: {
|
|
|
162
163
|
readonly responseSerialize: (value: getCreditGuidanceResponse) => Buffer;
|
|
163
164
|
readonly responseDeserialize: (value: Buffer) => getCreditGuidanceResponse;
|
|
164
165
|
};
|
|
166
|
+
readonly updateSubscriptionStatus: {
|
|
167
|
+
readonly path: "/service.eqxcustomers/updateSubscriptionStatus";
|
|
168
|
+
readonly requestStream: false;
|
|
169
|
+
readonly responseStream: false;
|
|
170
|
+
readonly requestSerialize: (value: updateSubscriptionStatusRequest) => Buffer;
|
|
171
|
+
readonly requestDeserialize: (value: Buffer) => updateSubscriptionStatusRequest;
|
|
172
|
+
readonly responseSerialize: (value: updateSubscriptionStatusResponse) => Buffer;
|
|
173
|
+
readonly responseDeserialize: (value: Buffer) => updateSubscriptionStatusResponse;
|
|
174
|
+
};
|
|
165
175
|
};
|
|
166
176
|
export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
167
177
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
|
|
@@ -180,6 +190,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
180
190
|
authenticateUser: handleUnaryCall<authenticatUserRequest, authenticatUserResponse>;
|
|
181
191
|
getBankAccountDetails: handleUnaryCall<bankDetailsRequest, bankDetailsResponse>;
|
|
182
192
|
getCreditGuidanceDetails: handleUnaryCall<getCreditGuidanceRequest, getCreditGuidanceResponse>;
|
|
193
|
+
updateSubscriptionStatus: handleUnaryCall<updateSubscriptionStatusRequest, updateSubscriptionStatusResponse>;
|
|
183
194
|
}
|
|
184
195
|
export interface eqxcustomersClient extends Client {
|
|
185
196
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
@@ -230,6 +241,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
230
241
|
getCreditGuidanceDetails(request: getCreditGuidanceRequest, callback: (error: ServiceError | null, response: getCreditGuidanceResponse) => void): ClientUnaryCall;
|
|
231
242
|
getCreditGuidanceDetails(request: getCreditGuidanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCreditGuidanceResponse) => void): ClientUnaryCall;
|
|
232
243
|
getCreditGuidanceDetails(request: getCreditGuidanceRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCreditGuidanceResponse) => void): ClientUnaryCall;
|
|
244
|
+
updateSubscriptionStatus(request: updateSubscriptionStatusRequest, callback: (error: ServiceError | null, response: updateSubscriptionStatusResponse) => void): ClientUnaryCall;
|
|
245
|
+
updateSubscriptionStatus(request: updateSubscriptionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateSubscriptionStatusResponse) => void): ClientUnaryCall;
|
|
246
|
+
updateSubscriptionStatus(request: updateSubscriptionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateSubscriptionStatusResponse) => void): ClientUnaryCall;
|
|
233
247
|
}
|
|
234
248
|
export declare const eqxcustomersClient: {
|
|
235
249
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -22,6 +22,7 @@ const sendotp_1 = require("./eqxcustomers/sendotp");
|
|
|
22
22
|
const updatecustomer_1 = require("./eqxcustomers/updatecustomer");
|
|
23
23
|
const updatenotification_1 = require("./eqxcustomers/updatenotification");
|
|
24
24
|
const updatepushid_1 = require("./eqxcustomers/updatepushid");
|
|
25
|
+
const updatesubscriptionstatus_1 = require("./eqxcustomers/updatesubscriptionstatus");
|
|
25
26
|
const verifyotp_1 = require("./eqxcustomers/verifyotp");
|
|
26
27
|
const verifytoken_1 = require("./eqxcustomers/verifytoken");
|
|
27
28
|
exports.protobufPackage = "service";
|
|
@@ -170,5 +171,14 @@ exports.eqxcustomersService = {
|
|
|
170
171
|
responseSerialize: (value) => Buffer.from(creditguidance_1.getCreditGuidanceResponse.encode(value).finish()),
|
|
171
172
|
responseDeserialize: (value) => creditguidance_1.getCreditGuidanceResponse.decode(value),
|
|
172
173
|
},
|
|
174
|
+
updateSubscriptionStatus: {
|
|
175
|
+
path: "/service.eqxcustomers/updateSubscriptionStatus",
|
|
176
|
+
requestStream: false,
|
|
177
|
+
responseStream: false,
|
|
178
|
+
requestSerialize: (value) => Buffer.from(updatesubscriptionstatus_1.updateSubscriptionStatusRequest.encode(value).finish()),
|
|
179
|
+
requestDeserialize: (value) => updatesubscriptionstatus_1.updateSubscriptionStatusRequest.decode(value),
|
|
180
|
+
responseSerialize: (value) => Buffer.from(updatesubscriptionstatus_1.updateSubscriptionStatusResponse.encode(value).finish()),
|
|
181
|
+
responseDeserialize: (value) => updatesubscriptionstatus_1.updateSubscriptionStatusResponse.decode(value),
|
|
182
|
+
},
|
|
173
183
|
};
|
|
174
184
|
exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.updatesubscriptionstatus";
|
|
3
|
+
export interface updateSubscriptionStatusRequest {
|
|
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 updateSubscriptionStatusResponse {
|
|
11
|
+
acknowledgement: string;
|
|
12
|
+
order_id: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const updateSubscriptionStatusRequest: {
|
|
15
|
+
encode(message: updateSubscriptionStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateSubscriptionStatusRequest;
|
|
17
|
+
fromJSON(object: any): updateSubscriptionStatusRequest;
|
|
18
|
+
toJSON(message: updateSubscriptionStatusRequest): unknown;
|
|
19
|
+
create<I extends Exact<DeepPartial<updateSubscriptionStatusRequest>, I>>(base?: I): updateSubscriptionStatusRequest;
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<updateSubscriptionStatusRequest>, I>>(object: I): updateSubscriptionStatusRequest;
|
|
21
|
+
};
|
|
22
|
+
export declare const updateSubscriptionStatusResponse: {
|
|
23
|
+
encode(message: updateSubscriptionStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateSubscriptionStatusResponse;
|
|
25
|
+
fromJSON(object: any): updateSubscriptionStatusResponse;
|
|
26
|
+
toJSON(message: updateSubscriptionStatusResponse): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<updateSubscriptionStatusResponse>, I>>(base?: I): updateSubscriptionStatusResponse;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<updateSubscriptionStatusResponse>, I>>(object: I): updateSubscriptionStatusResponse;
|
|
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.1
|
|
5
|
+
// protoc v3.20.3
|
|
6
|
+
// source: eqxcustomers/updatesubscriptionstatus.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.updateSubscriptionStatusResponse = exports.updateSubscriptionStatusRequest = 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 = "eqxcustomers.updatesubscriptionstatus";
|
|
16
|
+
function createBaseupdateSubscriptionStatusRequest() {
|
|
17
|
+
return { order_id: "", status: "", mode: undefined, customer_id: undefined, clint_id: undefined };
|
|
18
|
+
}
|
|
19
|
+
exports.updateSubscriptionStatusRequest = {
|
|
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 = createBaseupdateSubscriptionStatusRequest();
|
|
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.updateSubscriptionStatusRequest.fromPartial(base ?? {});
|
|
113
|
+
},
|
|
114
|
+
fromPartial(object) {
|
|
115
|
+
const message = createBaseupdateSubscriptionStatusRequest();
|
|
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 createBaseupdateSubscriptionStatusResponse() {
|
|
125
|
+
return { acknowledgement: "", order_id: "" };
|
|
126
|
+
}
|
|
127
|
+
exports.updateSubscriptionStatusResponse = {
|
|
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 = createBaseupdateSubscriptionStatusResponse();
|
|
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.updateSubscriptionStatusResponse.fromPartial(base ?? {});
|
|
182
|
+
},
|
|
183
|
+
fromPartial(object) {
|
|
184
|
+
const message = createBaseupdateSubscriptionStatusResponse();
|
|
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
|
+
}
|