@stashfin/grpc 1.2.462 → 1.2.463

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/ts/upi.d.ts +14 -0
  3. package/ts/upi.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.462",
3
+ "version": "1.2.463",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
package/ts/upi.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
2
  import { addAccountRequest, addAccountResponse } from "./upi/addaccount";
3
+ import { getAccountsByProviderRequest, getAccountsByProviderResponse } from "./upi/getaccountsbyprovider";
3
4
  import { getAvailableVPARequest, getAvailableVPAResponse } from "./upi/getavailablevpa";
4
5
  import { getListedAccountProvidersRequest, getListedAccountProvidersResponse } from "./upi/getlistedaccountproviders";
5
6
  import { getProfileRequest, getProfileResponse } from "./upi/getprofile";
@@ -72,6 +73,15 @@ export declare const upiService: {
72
73
  readonly responseSerialize: (value: validateVPAResponse) => Buffer;
73
74
  readonly responseDeserialize: (value: Buffer) => validateVPAResponse;
74
75
  };
76
+ readonly getAccountsByProvider: {
77
+ readonly path: "/service.upi/getAccountsByProvider";
78
+ readonly requestStream: false;
79
+ readonly responseStream: false;
80
+ readonly requestSerialize: (value: getAccountsByProviderRequest) => Buffer;
81
+ readonly requestDeserialize: (value: Buffer) => getAccountsByProviderRequest;
82
+ readonly responseSerialize: (value: getAccountsByProviderResponse) => Buffer;
83
+ readonly responseDeserialize: (value: Buffer) => getAccountsByProviderResponse;
84
+ };
75
85
  };
76
86
  export interface upiServer extends UntypedServiceImplementation {
77
87
  getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
@@ -81,6 +91,7 @@ export interface upiServer extends UntypedServiceImplementation {
81
91
  addAccount: handleUnaryCall<addAccountRequest, addAccountResponse>;
82
92
  getProfile: handleUnaryCall<getProfileRequest, getProfileResponse>;
83
93
  validateVpa: handleUnaryCall<validateVPARequest, validateVPAResponse>;
94
+ getAccountsByProvider: handleUnaryCall<getAccountsByProviderRequest, getAccountsByProviderResponse>;
84
95
  }
85
96
  export interface upiClient extends Client {
86
97
  getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
@@ -104,6 +115,9 @@ export interface upiClient extends Client {
104
115
  validateVpa(request: validateVPARequest, callback: (error: ServiceError | null, response: validateVPAResponse) => void): ClientUnaryCall;
105
116
  validateVpa(request: validateVPARequest, metadata: Metadata, callback: (error: ServiceError | null, response: validateVPAResponse) => void): ClientUnaryCall;
106
117
  validateVpa(request: validateVPARequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: validateVPAResponse) => void): ClientUnaryCall;
118
+ getAccountsByProvider(request: getAccountsByProviderRequest, callback: (error: ServiceError | null, response: getAccountsByProviderResponse) => void): ClientUnaryCall;
119
+ getAccountsByProvider(request: getAccountsByProviderRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAccountsByProviderResponse) => void): ClientUnaryCall;
120
+ getAccountsByProvider(request: getAccountsByProviderRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAccountsByProviderResponse) => void): ClientUnaryCall;
107
121
  }
108
122
  export declare const upiClient: {
109
123
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
package/ts/upi.js CHANGED
@@ -9,6 +9,7 @@ exports.upiClient = exports.upiService = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const addaccount_1 = require("./upi/addaccount");
12
+ const getaccountsbyprovider_1 = require("./upi/getaccountsbyprovider");
12
13
  const getavailablevpa_1 = require("./upi/getavailablevpa");
13
14
  const getlistedaccountproviders_1 = require("./upi/getlistedaccountproviders");
14
15
  const getprofile_1 = require("./upi/getprofile");
@@ -80,5 +81,14 @@ exports.upiService = {
80
81
  responseSerialize: (value) => Buffer.from(validatevpa_1.validateVPAResponse.encode(value).finish()),
81
82
  responseDeserialize: (value) => validatevpa_1.validateVPAResponse.decode(value),
82
83
  },
84
+ getAccountsByProvider: {
85
+ path: "/service.upi/getAccountsByProvider",
86
+ requestStream: false,
87
+ responseStream: false,
88
+ requestSerialize: (value) => Buffer.from(getaccountsbyprovider_1.getAccountsByProviderRequest.encode(value).finish()),
89
+ requestDeserialize: (value) => getaccountsbyprovider_1.getAccountsByProviderRequest.decode(value),
90
+ responseSerialize: (value) => Buffer.from(getaccountsbyprovider_1.getAccountsByProviderResponse.encode(value).finish()),
91
+ responseDeserialize: (value) => getaccountsbyprovider_1.getAccountsByProviderResponse.decode(value),
92
+ },
83
93
  };
84
94
  exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");