@alexochihua/protos 1.0.35 → 1.0.37
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/buf.gen.yaml +1 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +65 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js +291 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.d.ts +5 -0
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js +53 -1
- package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js.map +1 -1
- package/dist/generated/kapital/frauds/v1/frauds.d.ts +1 -0
- package/dist/generated/kapital/frauds/v1/frauds.js +12 -0
- package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -1
- package/dist/generated/kapital/payments_methods/v1/payments_methods.d.ts +12 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js +138 -1
- package/dist/generated/kapital/payments_methods/v1/payments_methods.js.map +1 -1
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.d.ts +2 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js +12 -0
- package/dist/generated/kapital/payments_methods/v1/payments_methods_types.js.map +1 -1
- package/dist/generated/kapital/products/v1/catalogs_products.d.ts +92 -0
- package/dist/generated/kapital/products/v1/catalogs_products.js +308 -0
- package/dist/generated/kapital/products/v1/catalogs_products.js.map +1 -0
- package/dist/generated/kapital/products/v1/catalogs_products_types.d.ts +18 -0
- package/dist/generated/kapital/products/v1/catalogs_products_types.js +64 -0
- package/dist/generated/kapital/products/v1/catalogs_products_types.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +15 -1
- package/proto/kapital/fraud_catalogs/v1/fraud_catalogs.proto +26 -0
- package/proto/kapital/fraud_catalogs/v1/fraud_catalogs_types.proto +5 -0
- package/proto/kapital/frauds/v1/frauds.proto +1 -0
- package/proto/kapital/payments_methods/v1/payments_methods.proto +12 -0
- package/proto/kapital/payments_methods/v1/payments_methods_types.proto +2 -0
- package/proto/kapital/products/v1/catalogs_products.proto +37 -0
- package/proto/kapital/products/v1/catalogs_products_types.proto +10 -0
package/buf.gen.yaml
CHANGED
|
@@ -2,7 +2,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
2
2
|
import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
3
|
import { ResponseMeta } from "../../common/v1/meta";
|
|
4
4
|
import { PageRequest, PageResponse } from "../../common/v1/pagination";
|
|
5
|
-
import { CatalogInfo, CatalogItem, CurrencyItem, GeolocationItem, GroupTypeCatalogItem, Label, MtiItem, RuleActionItem } from "./fraud_catalogs_types";
|
|
5
|
+
import { CatalogInfo, CatalogItem, CatCatalogItem, CurrencyItem, GeolocationItem, GroupTypeCatalogItem, Label, MtiItem, RuleActionItem } from "./fraud_catalogs_types";
|
|
6
6
|
export declare const protobufPackage = "kapital.fraud_catalogs.v1";
|
|
7
7
|
export interface GetCatalogListRequest {
|
|
8
8
|
page_request: PageRequest | undefined;
|
|
@@ -137,6 +137,25 @@ export interface ExportCatalogResponse {
|
|
|
137
137
|
file_data: Buffer;
|
|
138
138
|
file_name: string;
|
|
139
139
|
}
|
|
140
|
+
export interface GetCatRuleParametersRequest {
|
|
141
|
+
}
|
|
142
|
+
export interface GetCatRuleParametersResponse {
|
|
143
|
+
meta: ResponseMeta | undefined;
|
|
144
|
+
rule_parameters: CatCatalogItem[];
|
|
145
|
+
}
|
|
146
|
+
export interface GetCatRuleOperatorsRequest {
|
|
147
|
+
rule_parameter?: string | undefined;
|
|
148
|
+
}
|
|
149
|
+
export interface GetCatRuleOperatorsResponse {
|
|
150
|
+
meta: ResponseMeta | undefined;
|
|
151
|
+
rule_operators: CatCatalogItem[];
|
|
152
|
+
}
|
|
153
|
+
export interface GetCatPeriodsRequest {
|
|
154
|
+
}
|
|
155
|
+
export interface GetCatPeriodsResponse {
|
|
156
|
+
meta: ResponseMeta | undefined;
|
|
157
|
+
periods: CatCatalogItem[];
|
|
158
|
+
}
|
|
140
159
|
export declare const GetCatalogListRequest: MessageFns<GetCatalogListRequest>;
|
|
141
160
|
export declare const GetCatalogListResponse: MessageFns<GetCatalogListResponse>;
|
|
142
161
|
export declare const GetCatalogByIdRequest: MessageFns<GetCatalogByIdRequest>;
|
|
@@ -167,6 +186,12 @@ export declare const ExportCatalogRequest: MessageFns<ExportCatalogRequest>;
|
|
|
167
186
|
export declare const GetFraudReasonsRequest: MessageFns<GetFraudReasonsRequest>;
|
|
168
187
|
export declare const GetFraudReasonsResponse: MessageFns<GetFraudReasonsResponse>;
|
|
169
188
|
export declare const ExportCatalogResponse: MessageFns<ExportCatalogResponse>;
|
|
189
|
+
export declare const GetCatRuleParametersRequest: MessageFns<GetCatRuleParametersRequest>;
|
|
190
|
+
export declare const GetCatRuleParametersResponse: MessageFns<GetCatRuleParametersResponse>;
|
|
191
|
+
export declare const GetCatRuleOperatorsRequest: MessageFns<GetCatRuleOperatorsRequest>;
|
|
192
|
+
export declare const GetCatRuleOperatorsResponse: MessageFns<GetCatRuleOperatorsResponse>;
|
|
193
|
+
export declare const GetCatPeriodsRequest: MessageFns<GetCatPeriodsRequest>;
|
|
194
|
+
export declare const GetCatPeriodsResponse: MessageFns<GetCatPeriodsResponse>;
|
|
170
195
|
export type FraudCatalogsServiceService = typeof FraudCatalogsServiceService;
|
|
171
196
|
export declare const FraudCatalogsServiceService: {
|
|
172
197
|
readonly getCatalogList: {
|
|
@@ -304,6 +329,33 @@ export declare const FraudCatalogsServiceService: {
|
|
|
304
329
|
readonly responseSerialize: (value: ExportCatalogResponse) => Buffer;
|
|
305
330
|
readonly responseDeserialize: (value: Buffer) => ExportCatalogResponse;
|
|
306
331
|
};
|
|
332
|
+
readonly getCatRuleParameters: {
|
|
333
|
+
readonly path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetCatRuleParameters";
|
|
334
|
+
readonly requestStream: false;
|
|
335
|
+
readonly responseStream: false;
|
|
336
|
+
readonly requestSerialize: (value: GetCatRuleParametersRequest) => Buffer;
|
|
337
|
+
readonly requestDeserialize: (value: Buffer) => GetCatRuleParametersRequest;
|
|
338
|
+
readonly responseSerialize: (value: GetCatRuleParametersResponse) => Buffer;
|
|
339
|
+
readonly responseDeserialize: (value: Buffer) => GetCatRuleParametersResponse;
|
|
340
|
+
};
|
|
341
|
+
readonly getCatRuleOperators: {
|
|
342
|
+
readonly path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetCatRuleOperators";
|
|
343
|
+
readonly requestStream: false;
|
|
344
|
+
readonly responseStream: false;
|
|
345
|
+
readonly requestSerialize: (value: GetCatRuleOperatorsRequest) => Buffer;
|
|
346
|
+
readonly requestDeserialize: (value: Buffer) => GetCatRuleOperatorsRequest;
|
|
347
|
+
readonly responseSerialize: (value: GetCatRuleOperatorsResponse) => Buffer;
|
|
348
|
+
readonly responseDeserialize: (value: Buffer) => GetCatRuleOperatorsResponse;
|
|
349
|
+
};
|
|
350
|
+
readonly getCatPeriods: {
|
|
351
|
+
readonly path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetCatPeriods";
|
|
352
|
+
readonly requestStream: false;
|
|
353
|
+
readonly responseStream: false;
|
|
354
|
+
readonly requestSerialize: (value: GetCatPeriodsRequest) => Buffer;
|
|
355
|
+
readonly requestDeserialize: (value: Buffer) => GetCatPeriodsRequest;
|
|
356
|
+
readonly responseSerialize: (value: GetCatPeriodsResponse) => Buffer;
|
|
357
|
+
readonly responseDeserialize: (value: Buffer) => GetCatPeriodsResponse;
|
|
358
|
+
};
|
|
307
359
|
};
|
|
308
360
|
export interface FraudCatalogsServiceServer extends UntypedServiceImplementation {
|
|
309
361
|
getCatalogList: handleUnaryCall<GetCatalogListRequest, GetCatalogListResponse>;
|
|
@@ -321,6 +373,9 @@ export interface FraudCatalogsServiceServer extends UntypedServiceImplementation
|
|
|
321
373
|
getRuleActions: handleUnaryCall<GetRuleActionsRequest, GetRuleActionsResponse>;
|
|
322
374
|
getFraudReasons: handleUnaryCall<GetFraudReasonsRequest, GetFraudReasonsResponse>;
|
|
323
375
|
exportCatalog: handleUnaryCall<ExportCatalogRequest, ExportCatalogResponse>;
|
|
376
|
+
getCatRuleParameters: handleUnaryCall<GetCatRuleParametersRequest, GetCatRuleParametersResponse>;
|
|
377
|
+
getCatRuleOperators: handleUnaryCall<GetCatRuleOperatorsRequest, GetCatRuleOperatorsResponse>;
|
|
378
|
+
getCatPeriods: handleUnaryCall<GetCatPeriodsRequest, GetCatPeriodsResponse>;
|
|
324
379
|
}
|
|
325
380
|
export interface FraudCatalogsServiceClient extends Client {
|
|
326
381
|
getCatalogList(request: GetCatalogListRequest, callback: (error: ServiceError | null, response: GetCatalogListResponse) => void): ClientUnaryCall;
|
|
@@ -368,6 +423,15 @@ export interface FraudCatalogsServiceClient extends Client {
|
|
|
368
423
|
exportCatalog(request: ExportCatalogRequest, callback: (error: ServiceError | null, response: ExportCatalogResponse) => void): ClientUnaryCall;
|
|
369
424
|
exportCatalog(request: ExportCatalogRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ExportCatalogResponse) => void): ClientUnaryCall;
|
|
370
425
|
exportCatalog(request: ExportCatalogRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ExportCatalogResponse) => void): ClientUnaryCall;
|
|
426
|
+
getCatRuleParameters(request: GetCatRuleParametersRequest, callback: (error: ServiceError | null, response: GetCatRuleParametersResponse) => void): ClientUnaryCall;
|
|
427
|
+
getCatRuleParameters(request: GetCatRuleParametersRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCatRuleParametersResponse) => void): ClientUnaryCall;
|
|
428
|
+
getCatRuleParameters(request: GetCatRuleParametersRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCatRuleParametersResponse) => void): ClientUnaryCall;
|
|
429
|
+
getCatRuleOperators(request: GetCatRuleOperatorsRequest, callback: (error: ServiceError | null, response: GetCatRuleOperatorsResponse) => void): ClientUnaryCall;
|
|
430
|
+
getCatRuleOperators(request: GetCatRuleOperatorsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCatRuleOperatorsResponse) => void): ClientUnaryCall;
|
|
431
|
+
getCatRuleOperators(request: GetCatRuleOperatorsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCatRuleOperatorsResponse) => void): ClientUnaryCall;
|
|
432
|
+
getCatPeriods(request: GetCatPeriodsRequest, callback: (error: ServiceError | null, response: GetCatPeriodsResponse) => void): ClientUnaryCall;
|
|
433
|
+
getCatPeriods(request: GetCatPeriodsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetCatPeriodsResponse) => void): ClientUnaryCall;
|
|
434
|
+
getCatPeriods(request: GetCatPeriodsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetCatPeriodsResponse) => void): ClientUnaryCall;
|
|
371
435
|
}
|
|
372
436
|
export declare const FraudCatalogsServiceClient: {
|
|
373
437
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): FraudCatalogsServiceClient;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: kapital/fraud_catalogs/v1/fraud_catalogs.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.FraudCatalogsServiceClient = exports.FraudCatalogsServiceService = exports.ExportCatalogResponse = exports.GetFraudReasonsResponse = exports.GetFraudReasonsRequest = exports.ExportCatalogRequest = exports.GetRuleActionsResponse = exports.GetRuleActionsRequest = exports.GetGroupTypeCatalogsResponse = exports.GetGroupTypeCatalogsRequest = exports.GetMtiCatalogResponse = exports.GetMtiCatalogRequest = exports.GetGeolocationsResponse = exports.GetGeolocationsRequest = exports.GetMccCatalogResponse = exports.GetMccCatalogRequest = exports.GetCurrenciesResponse = exports.GetCurrenciesRequest = exports.GetFraudStatusesResponse = exports.GetFraudStatusesRequest = exports.GetResponseCodesResponse = exports.GetResponseCodesRequest = exports.GetCatalogInfoResponse = exports.GetCatalogInfoRequest = exports.DeleteCatalogResponse = exports.DeleteCatalogRequest = exports.CreateUpdateCatalogResponse = exports.CreateUpdateCatalogRequest = exports.GetCatalogByIdResponse = exports.GetCatalogByIdRequest = exports.GetCatalogListResponse = exports.GetCatalogListRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.FraudCatalogsServiceClient = exports.FraudCatalogsServiceService = exports.GetCatPeriodsResponse = exports.GetCatPeriodsRequest = exports.GetCatRuleOperatorsResponse = exports.GetCatRuleOperatorsRequest = exports.GetCatRuleParametersResponse = exports.GetCatRuleParametersRequest = exports.ExportCatalogResponse = exports.GetFraudReasonsResponse = exports.GetFraudReasonsRequest = exports.ExportCatalogRequest = exports.GetRuleActionsResponse = exports.GetRuleActionsRequest = exports.GetGroupTypeCatalogsResponse = exports.GetGroupTypeCatalogsRequest = exports.GetMtiCatalogResponse = exports.GetMtiCatalogRequest = exports.GetGeolocationsResponse = exports.GetGeolocationsRequest = exports.GetMccCatalogResponse = exports.GetMccCatalogRequest = exports.GetCurrenciesResponse = exports.GetCurrenciesRequest = exports.GetFraudStatusesResponse = exports.GetFraudStatusesRequest = exports.GetResponseCodesResponse = exports.GetResponseCodesRequest = exports.GetCatalogInfoResponse = exports.GetCatalogInfoRequest = exports.DeleteCatalogResponse = exports.DeleteCatalogRequest = exports.CreateUpdateCatalogResponse = exports.CreateUpdateCatalogRequest = exports.GetCatalogByIdResponse = exports.GetCatalogByIdRequest = exports.GetCatalogListResponse = exports.GetCatalogListRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
@@ -1767,6 +1767,269 @@ exports.ExportCatalogResponse = {
|
|
|
1767
1767
|
return message;
|
|
1768
1768
|
},
|
|
1769
1769
|
};
|
|
1770
|
+
function createBaseGetCatRuleParametersRequest() {
|
|
1771
|
+
return {};
|
|
1772
|
+
}
|
|
1773
|
+
exports.GetCatRuleParametersRequest = {
|
|
1774
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1775
|
+
return writer;
|
|
1776
|
+
},
|
|
1777
|
+
decode(input, length) {
|
|
1778
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1779
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1780
|
+
const message = createBaseGetCatRuleParametersRequest();
|
|
1781
|
+
while (reader.pos < end) {
|
|
1782
|
+
const tag = reader.uint32();
|
|
1783
|
+
switch (tag >>> 3) {
|
|
1784
|
+
}
|
|
1785
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1786
|
+
break;
|
|
1787
|
+
}
|
|
1788
|
+
reader.skip(tag & 7);
|
|
1789
|
+
}
|
|
1790
|
+
return message;
|
|
1791
|
+
},
|
|
1792
|
+
create(base) {
|
|
1793
|
+
return exports.GetCatRuleParametersRequest.fromPartial(base ?? {});
|
|
1794
|
+
},
|
|
1795
|
+
fromPartial(_) {
|
|
1796
|
+
const message = createBaseGetCatRuleParametersRequest();
|
|
1797
|
+
return message;
|
|
1798
|
+
},
|
|
1799
|
+
};
|
|
1800
|
+
function createBaseGetCatRuleParametersResponse() {
|
|
1801
|
+
return { meta: undefined, rule_parameters: [] };
|
|
1802
|
+
}
|
|
1803
|
+
exports.GetCatRuleParametersResponse = {
|
|
1804
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1805
|
+
if (message.meta !== undefined) {
|
|
1806
|
+
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1807
|
+
}
|
|
1808
|
+
for (const v of message.rule_parameters) {
|
|
1809
|
+
fraud_catalogs_types_1.CatCatalogItem.encode(v, writer.uint32(18).fork()).join();
|
|
1810
|
+
}
|
|
1811
|
+
return writer;
|
|
1812
|
+
},
|
|
1813
|
+
decode(input, length) {
|
|
1814
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1815
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1816
|
+
const message = createBaseGetCatRuleParametersResponse();
|
|
1817
|
+
while (reader.pos < end) {
|
|
1818
|
+
const tag = reader.uint32();
|
|
1819
|
+
switch (tag >>> 3) {
|
|
1820
|
+
case 1: {
|
|
1821
|
+
if (tag !== 10) {
|
|
1822
|
+
break;
|
|
1823
|
+
}
|
|
1824
|
+
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
1825
|
+
continue;
|
|
1826
|
+
}
|
|
1827
|
+
case 2: {
|
|
1828
|
+
if (tag !== 18) {
|
|
1829
|
+
break;
|
|
1830
|
+
}
|
|
1831
|
+
message.rule_parameters.push(fraud_catalogs_types_1.CatCatalogItem.decode(reader, reader.uint32()));
|
|
1832
|
+
continue;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1836
|
+
break;
|
|
1837
|
+
}
|
|
1838
|
+
reader.skip(tag & 7);
|
|
1839
|
+
}
|
|
1840
|
+
return message;
|
|
1841
|
+
},
|
|
1842
|
+
create(base) {
|
|
1843
|
+
return exports.GetCatRuleParametersResponse.fromPartial(base ?? {});
|
|
1844
|
+
},
|
|
1845
|
+
fromPartial(object) {
|
|
1846
|
+
const message = createBaseGetCatRuleParametersResponse();
|
|
1847
|
+
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
1848
|
+
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
1849
|
+
: undefined;
|
|
1850
|
+
message.rule_parameters = object.rule_parameters?.map((e) => fraud_catalogs_types_1.CatCatalogItem.fromPartial(e)) || [];
|
|
1851
|
+
return message;
|
|
1852
|
+
},
|
|
1853
|
+
};
|
|
1854
|
+
function createBaseGetCatRuleOperatorsRequest() {
|
|
1855
|
+
return { rule_parameter: undefined };
|
|
1856
|
+
}
|
|
1857
|
+
exports.GetCatRuleOperatorsRequest = {
|
|
1858
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1859
|
+
if (message.rule_parameter !== undefined) {
|
|
1860
|
+
writer.uint32(10).string(message.rule_parameter);
|
|
1861
|
+
}
|
|
1862
|
+
return writer;
|
|
1863
|
+
},
|
|
1864
|
+
decode(input, length) {
|
|
1865
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1866
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1867
|
+
const message = createBaseGetCatRuleOperatorsRequest();
|
|
1868
|
+
while (reader.pos < end) {
|
|
1869
|
+
const tag = reader.uint32();
|
|
1870
|
+
switch (tag >>> 3) {
|
|
1871
|
+
case 1: {
|
|
1872
|
+
if (tag !== 10) {
|
|
1873
|
+
break;
|
|
1874
|
+
}
|
|
1875
|
+
message.rule_parameter = reader.string();
|
|
1876
|
+
continue;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1880
|
+
break;
|
|
1881
|
+
}
|
|
1882
|
+
reader.skip(tag & 7);
|
|
1883
|
+
}
|
|
1884
|
+
return message;
|
|
1885
|
+
},
|
|
1886
|
+
create(base) {
|
|
1887
|
+
return exports.GetCatRuleOperatorsRequest.fromPartial(base ?? {});
|
|
1888
|
+
},
|
|
1889
|
+
fromPartial(object) {
|
|
1890
|
+
const message = createBaseGetCatRuleOperatorsRequest();
|
|
1891
|
+
message.rule_parameter = object.rule_parameter ?? undefined;
|
|
1892
|
+
return message;
|
|
1893
|
+
},
|
|
1894
|
+
};
|
|
1895
|
+
function createBaseGetCatRuleOperatorsResponse() {
|
|
1896
|
+
return { meta: undefined, rule_operators: [] };
|
|
1897
|
+
}
|
|
1898
|
+
exports.GetCatRuleOperatorsResponse = {
|
|
1899
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1900
|
+
if (message.meta !== undefined) {
|
|
1901
|
+
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1902
|
+
}
|
|
1903
|
+
for (const v of message.rule_operators) {
|
|
1904
|
+
fraud_catalogs_types_1.CatCatalogItem.encode(v, writer.uint32(18).fork()).join();
|
|
1905
|
+
}
|
|
1906
|
+
return writer;
|
|
1907
|
+
},
|
|
1908
|
+
decode(input, length) {
|
|
1909
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1910
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1911
|
+
const message = createBaseGetCatRuleOperatorsResponse();
|
|
1912
|
+
while (reader.pos < end) {
|
|
1913
|
+
const tag = reader.uint32();
|
|
1914
|
+
switch (tag >>> 3) {
|
|
1915
|
+
case 1: {
|
|
1916
|
+
if (tag !== 10) {
|
|
1917
|
+
break;
|
|
1918
|
+
}
|
|
1919
|
+
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
1920
|
+
continue;
|
|
1921
|
+
}
|
|
1922
|
+
case 2: {
|
|
1923
|
+
if (tag !== 18) {
|
|
1924
|
+
break;
|
|
1925
|
+
}
|
|
1926
|
+
message.rule_operators.push(fraud_catalogs_types_1.CatCatalogItem.decode(reader, reader.uint32()));
|
|
1927
|
+
continue;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1931
|
+
break;
|
|
1932
|
+
}
|
|
1933
|
+
reader.skip(tag & 7);
|
|
1934
|
+
}
|
|
1935
|
+
return message;
|
|
1936
|
+
},
|
|
1937
|
+
create(base) {
|
|
1938
|
+
return exports.GetCatRuleOperatorsResponse.fromPartial(base ?? {});
|
|
1939
|
+
},
|
|
1940
|
+
fromPartial(object) {
|
|
1941
|
+
const message = createBaseGetCatRuleOperatorsResponse();
|
|
1942
|
+
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
1943
|
+
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
1944
|
+
: undefined;
|
|
1945
|
+
message.rule_operators = object.rule_operators?.map((e) => fraud_catalogs_types_1.CatCatalogItem.fromPartial(e)) || [];
|
|
1946
|
+
return message;
|
|
1947
|
+
},
|
|
1948
|
+
};
|
|
1949
|
+
function createBaseGetCatPeriodsRequest() {
|
|
1950
|
+
return {};
|
|
1951
|
+
}
|
|
1952
|
+
exports.GetCatPeriodsRequest = {
|
|
1953
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1954
|
+
return writer;
|
|
1955
|
+
},
|
|
1956
|
+
decode(input, length) {
|
|
1957
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1958
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1959
|
+
const message = createBaseGetCatPeriodsRequest();
|
|
1960
|
+
while (reader.pos < end) {
|
|
1961
|
+
const tag = reader.uint32();
|
|
1962
|
+
switch (tag >>> 3) {
|
|
1963
|
+
}
|
|
1964
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1965
|
+
break;
|
|
1966
|
+
}
|
|
1967
|
+
reader.skip(tag & 7);
|
|
1968
|
+
}
|
|
1969
|
+
return message;
|
|
1970
|
+
},
|
|
1971
|
+
create(base) {
|
|
1972
|
+
return exports.GetCatPeriodsRequest.fromPartial(base ?? {});
|
|
1973
|
+
},
|
|
1974
|
+
fromPartial(_) {
|
|
1975
|
+
const message = createBaseGetCatPeriodsRequest();
|
|
1976
|
+
return message;
|
|
1977
|
+
},
|
|
1978
|
+
};
|
|
1979
|
+
function createBaseGetCatPeriodsResponse() {
|
|
1980
|
+
return { meta: undefined, periods: [] };
|
|
1981
|
+
}
|
|
1982
|
+
exports.GetCatPeriodsResponse = {
|
|
1983
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1984
|
+
if (message.meta !== undefined) {
|
|
1985
|
+
meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
|
|
1986
|
+
}
|
|
1987
|
+
for (const v of message.periods) {
|
|
1988
|
+
fraud_catalogs_types_1.CatCatalogItem.encode(v, writer.uint32(18).fork()).join();
|
|
1989
|
+
}
|
|
1990
|
+
return writer;
|
|
1991
|
+
},
|
|
1992
|
+
decode(input, length) {
|
|
1993
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1994
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1995
|
+
const message = createBaseGetCatPeriodsResponse();
|
|
1996
|
+
while (reader.pos < end) {
|
|
1997
|
+
const tag = reader.uint32();
|
|
1998
|
+
switch (tag >>> 3) {
|
|
1999
|
+
case 1: {
|
|
2000
|
+
if (tag !== 10) {
|
|
2001
|
+
break;
|
|
2002
|
+
}
|
|
2003
|
+
message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
|
|
2004
|
+
continue;
|
|
2005
|
+
}
|
|
2006
|
+
case 2: {
|
|
2007
|
+
if (tag !== 18) {
|
|
2008
|
+
break;
|
|
2009
|
+
}
|
|
2010
|
+
message.periods.push(fraud_catalogs_types_1.CatCatalogItem.decode(reader, reader.uint32()));
|
|
2011
|
+
continue;
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2015
|
+
break;
|
|
2016
|
+
}
|
|
2017
|
+
reader.skip(tag & 7);
|
|
2018
|
+
}
|
|
2019
|
+
return message;
|
|
2020
|
+
},
|
|
2021
|
+
create(base) {
|
|
2022
|
+
return exports.GetCatPeriodsResponse.fromPartial(base ?? {});
|
|
2023
|
+
},
|
|
2024
|
+
fromPartial(object) {
|
|
2025
|
+
const message = createBaseGetCatPeriodsResponse();
|
|
2026
|
+
message.meta = (object.meta !== undefined && object.meta !== null)
|
|
2027
|
+
? meta_1.ResponseMeta.fromPartial(object.meta)
|
|
2028
|
+
: undefined;
|
|
2029
|
+
message.periods = object.periods?.map((e) => fraud_catalogs_types_1.CatCatalogItem.fromPartial(e)) || [];
|
|
2030
|
+
return message;
|
|
2031
|
+
},
|
|
2032
|
+
};
|
|
1770
2033
|
exports.FraudCatalogsServiceService = {
|
|
1771
2034
|
getCatalogList: {
|
|
1772
2035
|
path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetCatalogList",
|
|
@@ -1903,6 +2166,33 @@ exports.FraudCatalogsServiceService = {
|
|
|
1903
2166
|
responseSerialize: (value) => Buffer.from(exports.ExportCatalogResponse.encode(value).finish()),
|
|
1904
2167
|
responseDeserialize: (value) => exports.ExportCatalogResponse.decode(value),
|
|
1905
2168
|
},
|
|
2169
|
+
getCatRuleParameters: {
|
|
2170
|
+
path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetCatRuleParameters",
|
|
2171
|
+
requestStream: false,
|
|
2172
|
+
responseStream: false,
|
|
2173
|
+
requestSerialize: (value) => Buffer.from(exports.GetCatRuleParametersRequest.encode(value).finish()),
|
|
2174
|
+
requestDeserialize: (value) => exports.GetCatRuleParametersRequest.decode(value),
|
|
2175
|
+
responseSerialize: (value) => Buffer.from(exports.GetCatRuleParametersResponse.encode(value).finish()),
|
|
2176
|
+
responseDeserialize: (value) => exports.GetCatRuleParametersResponse.decode(value),
|
|
2177
|
+
},
|
|
2178
|
+
getCatRuleOperators: {
|
|
2179
|
+
path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetCatRuleOperators",
|
|
2180
|
+
requestStream: false,
|
|
2181
|
+
responseStream: false,
|
|
2182
|
+
requestSerialize: (value) => Buffer.from(exports.GetCatRuleOperatorsRequest.encode(value).finish()),
|
|
2183
|
+
requestDeserialize: (value) => exports.GetCatRuleOperatorsRequest.decode(value),
|
|
2184
|
+
responseSerialize: (value) => Buffer.from(exports.GetCatRuleOperatorsResponse.encode(value).finish()),
|
|
2185
|
+
responseDeserialize: (value) => exports.GetCatRuleOperatorsResponse.decode(value),
|
|
2186
|
+
},
|
|
2187
|
+
getCatPeriods: {
|
|
2188
|
+
path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetCatPeriods",
|
|
2189
|
+
requestStream: false,
|
|
2190
|
+
responseStream: false,
|
|
2191
|
+
requestSerialize: (value) => Buffer.from(exports.GetCatPeriodsRequest.encode(value).finish()),
|
|
2192
|
+
requestDeserialize: (value) => exports.GetCatPeriodsRequest.decode(value),
|
|
2193
|
+
responseSerialize: (value) => Buffer.from(exports.GetCatPeriodsResponse.encode(value).finish()),
|
|
2194
|
+
responseDeserialize: (value) => exports.GetCatPeriodsResponse.decode(value),
|
|
2195
|
+
},
|
|
1906
2196
|
};
|
|
1907
2197
|
exports.FraudCatalogsServiceClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.FraudCatalogsServiceService, "kapital.fraud_catalogs.v1.FraudCatalogsService");
|
|
1908
2198
|
//# sourceMappingURL=fraud_catalogs.js.map
|