@stashfin/grpc 1.2.491 → 1.2.493

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.491",
3
+ "version": "1.2.493",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -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
+ }
@@ -52,10 +52,10 @@ export interface Account {
52
52
  CredsAllowed?: CredsAllowedList | undefined;
53
53
  ifsc?: string | undefined;
54
54
  accType?: string | undefined;
55
- defaultCredit?: string | undefined;
55
+ default_credit?: string | undefined;
56
56
  account?: string | undefined;
57
57
  status?: string | undefined;
58
- onboardingType?: string | undefined;
58
+ onboarding_type?: string | undefined;
59
59
  }
60
60
  /** CredsAllowed nested message */
61
61
  export interface CredsAllowedList {
@@ -545,10 +545,10 @@ function createBaseAccount() {
545
545
  CredsAllowed: undefined,
546
546
  ifsc: undefined,
547
547
  accType: undefined,
548
- defaultCredit: undefined,
548
+ default_credit: undefined,
549
549
  account: undefined,
550
550
  status: undefined,
551
- onboardingType: undefined,
551
+ onboarding_type: undefined,
552
552
  };
553
553
  }
554
554
  exports.Account = {
@@ -604,8 +604,8 @@ exports.Account = {
604
604
  if (message.accType !== undefined) {
605
605
  writer.uint32(138).string(message.accType);
606
606
  }
607
- if (message.defaultCredit !== undefined) {
608
- writer.uint32(146).string(message.defaultCredit);
607
+ if (message.default_credit !== undefined) {
608
+ writer.uint32(146).string(message.default_credit);
609
609
  }
610
610
  if (message.account !== undefined) {
611
611
  writer.uint32(154).string(message.account);
@@ -613,8 +613,8 @@ exports.Account = {
613
613
  if (message.status !== undefined) {
614
614
  writer.uint32(162).string(message.status);
615
615
  }
616
- if (message.onboardingType !== undefined) {
617
- writer.uint32(170).string(message.onboardingType);
616
+ if (message.onboarding_type !== undefined) {
617
+ writer.uint32(170).string(message.onboarding_type);
618
618
  }
619
619
  return writer;
620
620
  },
@@ -731,7 +731,7 @@ exports.Account = {
731
731
  if (tag !== 146) {
732
732
  break;
733
733
  }
734
- message.defaultCredit = reader.string();
734
+ message.default_credit = reader.string();
735
735
  continue;
736
736
  case 19:
737
737
  if (tag !== 154) {
@@ -749,7 +749,7 @@ exports.Account = {
749
749
  if (tag !== 170) {
750
750
  break;
751
751
  }
752
- message.onboardingType = reader.string();
752
+ message.onboarding_type = reader.string();
753
753
  continue;
754
754
  }
755
755
  if ((tag & 7) === 4 || tag === 0) {
@@ -778,10 +778,10 @@ exports.Account = {
778
778
  CredsAllowed: isSet(object.CredsAllowed) ? exports.CredsAllowedList.fromJSON(object.CredsAllowed) : undefined,
779
779
  ifsc: isSet(object.ifsc) ? globalThis.String(object.ifsc) : undefined,
780
780
  accType: isSet(object.accType) ? globalThis.String(object.accType) : undefined,
781
- defaultCredit: isSet(object.defaultCredit) ? globalThis.String(object.defaultCredit) : undefined,
781
+ default_credit: isSet(object.default_credit) ? globalThis.String(object.default_credit) : undefined,
782
782
  account: isSet(object.account) ? globalThis.String(object.account) : undefined,
783
783
  status: isSet(object.status) ? globalThis.String(object.status) : undefined,
784
- onboardingType: isSet(object.onboardingType) ? globalThis.String(object.onboardingType) : undefined,
784
+ onboarding_type: isSet(object.onboarding_type) ? globalThis.String(object.onboarding_type) : undefined,
785
785
  };
786
786
  },
787
787
  toJSON(message) {
@@ -837,8 +837,8 @@ exports.Account = {
837
837
  if (message.accType !== undefined) {
838
838
  obj.accType = message.accType;
839
839
  }
840
- if (message.defaultCredit !== undefined) {
841
- obj.defaultCredit = message.defaultCredit;
840
+ if (message.default_credit !== undefined) {
841
+ obj.default_credit = message.default_credit;
842
842
  }
843
843
  if (message.account !== undefined) {
844
844
  obj.account = message.account;
@@ -846,8 +846,8 @@ exports.Account = {
846
846
  if (message.status !== undefined) {
847
847
  obj.status = message.status;
848
848
  }
849
- if (message.onboardingType !== undefined) {
850
- obj.onboardingType = message.onboardingType;
849
+ if (message.onboarding_type !== undefined) {
850
+ obj.onboarding_type = message.onboarding_type;
851
851
  }
852
852
  return obj;
853
853
  },
@@ -875,10 +875,10 @@ exports.Account = {
875
875
  : undefined;
876
876
  message.ifsc = object.ifsc ?? undefined;
877
877
  message.accType = object.accType ?? undefined;
878
- message.defaultCredit = object.defaultCredit ?? undefined;
878
+ message.default_credit = object.default_credit ?? undefined;
879
879
  message.account = object.account ?? undefined;
880
880
  message.status = object.status ?? undefined;
881
- message.onboardingType = object.onboardingType ?? undefined;
881
+ message.onboarding_type = object.onboarding_type ?? undefined;
882
882
  return message;
883
883
  },
884
884
  };