@stashfin/grpc 1.2.490 → 1.2.492
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 +1 -1
- package/ts/eqxcustomer.d.ts +14 -0
- package/ts/eqxcustomer.js +10 -0
- package/ts/eqxcustomers/updatepushid.d.ts +36 -0
- package/ts/eqxcustomers/updatepushid.js +133 -0
package/package.json
CHANGED
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { getCustomerByIdRequest, getCustomerByIdResponse } from "./eqxcustomers/
|
|
|
3
3
|
import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
|
|
4
4
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
|
|
5
5
|
import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
6
|
+
import { updatePushIdRequest, updatePushIdResponse } from "./eqxcustomers/updatepushid";
|
|
6
7
|
import { verifyOtpReqeust, verifyOtpResponse } from "./eqxcustomers/verifyotp";
|
|
7
8
|
export declare const protobufPackage = "service";
|
|
8
9
|
export type eqxcustomersService = typeof eqxcustomersService;
|
|
@@ -52,6 +53,15 @@ export declare const eqxcustomersService: {
|
|
|
52
53
|
readonly responseSerialize: (value: getDashboardMainCardResponse) => Buffer;
|
|
53
54
|
readonly responseDeserialize: (value: Buffer) => getDashboardMainCardResponse;
|
|
54
55
|
};
|
|
56
|
+
readonly updatePushId: {
|
|
57
|
+
readonly path: "/service.eqxcustomers/updatePushId";
|
|
58
|
+
readonly requestStream: false;
|
|
59
|
+
readonly responseStream: false;
|
|
60
|
+
readonly requestSerialize: (value: updatePushIdRequest) => Buffer;
|
|
61
|
+
readonly requestDeserialize: (value: Buffer) => updatePushIdRequest;
|
|
62
|
+
readonly responseSerialize: (value: updatePushIdResponse) => Buffer;
|
|
63
|
+
readonly responseDeserialize: (value: Buffer) => updatePushIdResponse;
|
|
64
|
+
};
|
|
55
65
|
};
|
|
56
66
|
export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
57
67
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
|
|
@@ -59,6 +69,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
59
69
|
getUserById: handleUnaryCall<getCustomerByIdRequest, getCustomerByIdResponse>;
|
|
60
70
|
getDashboard: handleUnaryCall<getDashboardRequest, getDashboardResponse>;
|
|
61
71
|
getDashboardMainCard: handleUnaryCall<getDashboardMainCardRequest, getDashboardMainCardResponse>;
|
|
72
|
+
updatePushId: handleUnaryCall<updatePushIdRequest, updatePushIdResponse>;
|
|
62
73
|
}
|
|
63
74
|
export interface eqxcustomersClient extends Client {
|
|
64
75
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
@@ -76,6 +87,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
76
87
|
getDashboardMainCard(request: getDashboardMainCardRequest, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
77
88
|
getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
78
89
|
getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
90
|
+
updatePushId(request: updatePushIdRequest, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
|
|
91
|
+
updatePushId(request: updatePushIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
|
|
92
|
+
updatePushId(request: updatePushIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updatePushIdResponse) => void): ClientUnaryCall;
|
|
79
93
|
}
|
|
80
94
|
export declare const eqxcustomersClient: {
|
|
81
95
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -12,6 +12,7 @@ const getcustomerbyid_1 = require("./eqxcustomers/getcustomerbyid");
|
|
|
12
12
|
const getdashboard_1 = require("./eqxcustomers/getdashboard");
|
|
13
13
|
const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
|
|
14
14
|
const sendotp_1 = require("./eqxcustomers/sendotp");
|
|
15
|
+
const updatepushid_1 = require("./eqxcustomers/updatepushid");
|
|
15
16
|
const verifyotp_1 = require("./eqxcustomers/verifyotp");
|
|
16
17
|
exports.protobufPackage = "service";
|
|
17
18
|
exports.eqxcustomersService = {
|
|
@@ -60,5 +61,14 @@ exports.eqxcustomersService = {
|
|
|
60
61
|
responseSerialize: (value) => Buffer.from(getdashboardmaincard_1.getDashboardMainCardResponse.encode(value).finish()),
|
|
61
62
|
responseDeserialize: (value) => getdashboardmaincard_1.getDashboardMainCardResponse.decode(value),
|
|
62
63
|
},
|
|
64
|
+
updatePushId: {
|
|
65
|
+
path: "/service.eqxcustomers/updatePushId",
|
|
66
|
+
requestStream: false,
|
|
67
|
+
responseStream: false,
|
|
68
|
+
requestSerialize: (value) => Buffer.from(updatepushid_1.updatePushIdRequest.encode(value).finish()),
|
|
69
|
+
requestDeserialize: (value) => updatepushid_1.updatePushIdRequest.decode(value),
|
|
70
|
+
responseSerialize: (value) => Buffer.from(updatepushid_1.updatePushIdResponse.encode(value).finish()),
|
|
71
|
+
responseDeserialize: (value) => updatepushid_1.updatePushIdResponse.decode(value),
|
|
72
|
+
},
|
|
63
73
|
};
|
|
64
74
|
exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.updatePushId";
|
|
3
|
+
export interface updatePushIdRequest {
|
|
4
|
+
push_id: string;
|
|
5
|
+
}
|
|
6
|
+
export interface updatePushIdResponse {
|
|
7
|
+
message: string;
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const updatePushIdRequest: {
|
|
11
|
+
encode(message: updatePushIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updatePushIdRequest;
|
|
13
|
+
fromJSON(object: any): updatePushIdRequest;
|
|
14
|
+
toJSON(message: updatePushIdRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<updatePushIdRequest>, I>>(base?: I): updatePushIdRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<updatePushIdRequest>, I>>(object: I): updatePushIdRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const updatePushIdResponse: {
|
|
19
|
+
encode(message: updatePushIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updatePushIdResponse;
|
|
21
|
+
fromJSON(object: any): updatePushIdResponse;
|
|
22
|
+
toJSON(message: updatePushIdResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<updatePushIdResponse>, I>>(base?: I): updatePushIdResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<updatePushIdResponse>, I>>(object: I): updatePushIdResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
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.29.1
|
|
6
|
+
// source: eqxcustomers/updatepushid.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.updatePushIdResponse = exports.updatePushIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.updatePushId";
|
|
15
|
+
function createBaseupdatePushIdRequest() {
|
|
16
|
+
return { push_id: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.updatePushIdRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.push_id !== "") {
|
|
21
|
+
writer.uint32(10).string(message.push_id);
|
|
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 = createBaseupdatePushIdRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.push_id = reader.string();
|
|
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 { push_id: isSet(object.push_id) ? globalThis.String(object.push_id) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.push_id !== "") {
|
|
52
|
+
obj.push_id = message.push_id;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.updatePushIdRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBaseupdatePushIdRequest();
|
|
61
|
+
message.push_id = object.push_id ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBaseupdatePushIdResponse() {
|
|
66
|
+
return { message: "", status: "" };
|
|
67
|
+
}
|
|
68
|
+
exports.updatePushIdResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.message !== "") {
|
|
71
|
+
writer.uint32(10).string(message.message);
|
|
72
|
+
}
|
|
73
|
+
if (message.status !== "") {
|
|
74
|
+
writer.uint32(18).string(message.status);
|
|
75
|
+
}
|
|
76
|
+
return writer;
|
|
77
|
+
},
|
|
78
|
+
decode(input, length) {
|
|
79
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
80
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
81
|
+
const message = createBaseupdatePushIdResponse();
|
|
82
|
+
while (reader.pos < end) {
|
|
83
|
+
const tag = reader.uint32();
|
|
84
|
+
switch (tag >>> 3) {
|
|
85
|
+
case 1:
|
|
86
|
+
if (tag !== 10) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
message.message = reader.string();
|
|
90
|
+
continue;
|
|
91
|
+
case 2:
|
|
92
|
+
if (tag !== 18) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
message.status = reader.string();
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
reader.skipType(tag & 7);
|
|
102
|
+
}
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
fromJSON(object) {
|
|
106
|
+
return {
|
|
107
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
108
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
toJSON(message) {
|
|
112
|
+
const obj = {};
|
|
113
|
+
if (message.message !== "") {
|
|
114
|
+
obj.message = message.message;
|
|
115
|
+
}
|
|
116
|
+
if (message.status !== "") {
|
|
117
|
+
obj.status = message.status;
|
|
118
|
+
}
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
create(base) {
|
|
122
|
+
return exports.updatePushIdResponse.fromPartial(base ?? {});
|
|
123
|
+
},
|
|
124
|
+
fromPartial(object) {
|
|
125
|
+
const message = createBaseupdatePushIdResponse();
|
|
126
|
+
message.message = object.message ?? "";
|
|
127
|
+
message.status = object.status ?? "";
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
function isSet(value) {
|
|
132
|
+
return value !== null && value !== undefined;
|
|
133
|
+
}
|