@alexochihua/protos 1.0.34 → 1.0.36

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 (28) hide show
  1. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +87 -1
  2. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js +395 -1
  3. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -1
  4. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.d.ts +5 -0
  5. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js +53 -1
  6. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js.map +1 -1
  7. package/dist/generated/kapital/frauds/v1/frauds.d.ts +2 -0
  8. package/dist/generated/kapital/frauds/v1/frauds.js +31 -1
  9. package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -1
  10. package/dist/generated/kapital/frauds/v1/frauds_types.d.ts +1 -0
  11. package/dist/generated/kapital/frauds/v1/frauds_types.js +12 -0
  12. package/dist/generated/kapital/frauds/v1/frauds_types.js.map +1 -1
  13. package/dist/generated/kapital/products/v1/catalogs_products.d.ts +92 -0
  14. package/dist/generated/kapital/products/v1/catalogs_products.js +308 -0
  15. package/dist/generated/kapital/products/v1/catalogs_products.js.map +1 -0
  16. package/dist/generated/kapital/products/v1/catalogs_products_types.d.ts +18 -0
  17. package/dist/generated/kapital/products/v1/catalogs_products_types.js +64 -0
  18. package/dist/generated/kapital/products/v1/catalogs_products_types.js.map +1 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +4 -1
  21. package/dist/index.js.map +1 -1
  22. package/package.json +15 -1
  23. package/proto/kapital/fraud_catalogs/v1/fraud_catalogs.proto +35 -0
  24. package/proto/kapital/fraud_catalogs/v1/fraud_catalogs_types.proto +5 -0
  25. package/proto/kapital/frauds/v1/frauds.proto +2 -0
  26. package/proto/kapital/frauds/v1/frauds_types.proto +1 -0
  27. package/proto/kapital/products/v1/catalogs_products.proto +37 -0
  28. package/proto/kapital/products/v1/catalogs_products_types.proto +10 -0
@@ -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;
@@ -125,11 +125,37 @@ export interface ExportCatalogRequest {
125
125
  sort_by: string;
126
126
  descending: boolean;
127
127
  }
128
+ export interface GetFraudReasonsRequest {
129
+ }
130
+ export interface GetFraudReasonsResponse {
131
+ meta: ResponseMeta | undefined;
132
+ total: number;
133
+ items: CatalogItem[];
134
+ }
128
135
  export interface ExportCatalogResponse {
129
136
  meta: ResponseMeta | undefined;
130
137
  file_data: Buffer;
131
138
  file_name: string;
132
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
+ }
133
159
  export declare const GetCatalogListRequest: MessageFns<GetCatalogListRequest>;
134
160
  export declare const GetCatalogListResponse: MessageFns<GetCatalogListResponse>;
135
161
  export declare const GetCatalogByIdRequest: MessageFns<GetCatalogByIdRequest>;
@@ -157,7 +183,15 @@ export declare const GetGroupTypeCatalogsResponse: MessageFns<GetGroupTypeCatalo
157
183
  export declare const GetRuleActionsRequest: MessageFns<GetRuleActionsRequest>;
158
184
  export declare const GetRuleActionsResponse: MessageFns<GetRuleActionsResponse>;
159
185
  export declare const ExportCatalogRequest: MessageFns<ExportCatalogRequest>;
186
+ export declare const GetFraudReasonsRequest: MessageFns<GetFraudReasonsRequest>;
187
+ export declare const GetFraudReasonsResponse: MessageFns<GetFraudReasonsResponse>;
160
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>;
161
195
  export type FraudCatalogsServiceService = typeof FraudCatalogsServiceService;
162
196
  export declare const FraudCatalogsServiceService: {
163
197
  readonly getCatalogList: {
@@ -277,6 +311,15 @@ export declare const FraudCatalogsServiceService: {
277
311
  readonly responseSerialize: (value: GetRuleActionsResponse) => Buffer;
278
312
  readonly responseDeserialize: (value: Buffer) => GetRuleActionsResponse;
279
313
  };
314
+ readonly getFraudReasons: {
315
+ readonly path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetFraudReasons";
316
+ readonly requestStream: false;
317
+ readonly responseStream: false;
318
+ readonly requestSerialize: (value: GetFraudReasonsRequest) => Buffer;
319
+ readonly requestDeserialize: (value: Buffer) => GetFraudReasonsRequest;
320
+ readonly responseSerialize: (value: GetFraudReasonsResponse) => Buffer;
321
+ readonly responseDeserialize: (value: Buffer) => GetFraudReasonsResponse;
322
+ };
280
323
  readonly exportCatalog: {
281
324
  readonly path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/ExportCatalog";
282
325
  readonly requestStream: false;
@@ -286,6 +329,33 @@ export declare const FraudCatalogsServiceService: {
286
329
  readonly responseSerialize: (value: ExportCatalogResponse) => Buffer;
287
330
  readonly responseDeserialize: (value: Buffer) => ExportCatalogResponse;
288
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
+ };
289
359
  };
290
360
  export interface FraudCatalogsServiceServer extends UntypedServiceImplementation {
291
361
  getCatalogList: handleUnaryCall<GetCatalogListRequest, GetCatalogListResponse>;
@@ -301,7 +371,11 @@ export interface FraudCatalogsServiceServer extends UntypedServiceImplementation
301
371
  getMtiCatalog: handleUnaryCall<GetMtiCatalogRequest, GetMtiCatalogResponse>;
302
372
  getGroupTypeCatalogs: handleUnaryCall<GetGroupTypeCatalogsRequest, GetGroupTypeCatalogsResponse>;
303
373
  getRuleActions: handleUnaryCall<GetRuleActionsRequest, GetRuleActionsResponse>;
374
+ getFraudReasons: handleUnaryCall<GetFraudReasonsRequest, GetFraudReasonsResponse>;
304
375
  exportCatalog: handleUnaryCall<ExportCatalogRequest, ExportCatalogResponse>;
376
+ getCatRuleParameters: handleUnaryCall<GetCatRuleParametersRequest, GetCatRuleParametersResponse>;
377
+ getCatRuleOperators: handleUnaryCall<GetCatRuleOperatorsRequest, GetCatRuleOperatorsResponse>;
378
+ getCatPeriods: handleUnaryCall<GetCatPeriodsRequest, GetCatPeriodsResponse>;
305
379
  }
306
380
  export interface FraudCatalogsServiceClient extends Client {
307
381
  getCatalogList(request: GetCatalogListRequest, callback: (error: ServiceError | null, response: GetCatalogListResponse) => void): ClientUnaryCall;
@@ -343,9 +417,21 @@ export interface FraudCatalogsServiceClient extends Client {
343
417
  getRuleActions(request: GetRuleActionsRequest, callback: (error: ServiceError | null, response: GetRuleActionsResponse) => void): ClientUnaryCall;
344
418
  getRuleActions(request: GetRuleActionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetRuleActionsResponse) => void): ClientUnaryCall;
345
419
  getRuleActions(request: GetRuleActionsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetRuleActionsResponse) => void): ClientUnaryCall;
420
+ getFraudReasons(request: GetFraudReasonsRequest, callback: (error: ServiceError | null, response: GetFraudReasonsResponse) => void): ClientUnaryCall;
421
+ getFraudReasons(request: GetFraudReasonsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetFraudReasonsResponse) => void): ClientUnaryCall;
422
+ getFraudReasons(request: GetFraudReasonsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetFraudReasonsResponse) => void): ClientUnaryCall;
346
423
  exportCatalog(request: ExportCatalogRequest, callback: (error: ServiceError | null, response: ExportCatalogResponse) => void): ClientUnaryCall;
347
424
  exportCatalog(request: ExportCatalogRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ExportCatalogResponse) => void): ClientUnaryCall;
348
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;
349
435
  }
350
436
  export declare const FraudCatalogsServiceClient: {
351
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.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");
@@ -1607,6 +1607,101 @@ exports.ExportCatalogRequest = {
1607
1607
  return message;
1608
1608
  },
1609
1609
  };
1610
+ function createBaseGetFraudReasonsRequest() {
1611
+ return {};
1612
+ }
1613
+ exports.GetFraudReasonsRequest = {
1614
+ encode(_, writer = new wire_1.BinaryWriter()) {
1615
+ return writer;
1616
+ },
1617
+ decode(input, length) {
1618
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1619
+ const end = length === undefined ? reader.len : reader.pos + length;
1620
+ const message = createBaseGetFraudReasonsRequest();
1621
+ while (reader.pos < end) {
1622
+ const tag = reader.uint32();
1623
+ switch (tag >>> 3) {
1624
+ }
1625
+ if ((tag & 7) === 4 || tag === 0) {
1626
+ break;
1627
+ }
1628
+ reader.skip(tag & 7);
1629
+ }
1630
+ return message;
1631
+ },
1632
+ create(base) {
1633
+ return exports.GetFraudReasonsRequest.fromPartial(base ?? {});
1634
+ },
1635
+ fromPartial(_) {
1636
+ const message = createBaseGetFraudReasonsRequest();
1637
+ return message;
1638
+ },
1639
+ };
1640
+ function createBaseGetFraudReasonsResponse() {
1641
+ return { meta: undefined, total: 0, items: [] };
1642
+ }
1643
+ exports.GetFraudReasonsResponse = {
1644
+ encode(message, writer = new wire_1.BinaryWriter()) {
1645
+ if (message.meta !== undefined) {
1646
+ meta_1.ResponseMeta.encode(message.meta, writer.uint32(10).fork()).join();
1647
+ }
1648
+ if (message.total !== 0) {
1649
+ writer.uint32(16).int32(message.total);
1650
+ }
1651
+ for (const v of message.items) {
1652
+ fraud_catalogs_types_1.CatalogItem.encode(v, writer.uint32(26).fork()).join();
1653
+ }
1654
+ return writer;
1655
+ },
1656
+ decode(input, length) {
1657
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1658
+ const end = length === undefined ? reader.len : reader.pos + length;
1659
+ const message = createBaseGetFraudReasonsResponse();
1660
+ while (reader.pos < end) {
1661
+ const tag = reader.uint32();
1662
+ switch (tag >>> 3) {
1663
+ case 1: {
1664
+ if (tag !== 10) {
1665
+ break;
1666
+ }
1667
+ message.meta = meta_1.ResponseMeta.decode(reader, reader.uint32());
1668
+ continue;
1669
+ }
1670
+ case 2: {
1671
+ if (tag !== 16) {
1672
+ break;
1673
+ }
1674
+ message.total = reader.int32();
1675
+ continue;
1676
+ }
1677
+ case 3: {
1678
+ if (tag !== 26) {
1679
+ break;
1680
+ }
1681
+ message.items.push(fraud_catalogs_types_1.CatalogItem.decode(reader, reader.uint32()));
1682
+ continue;
1683
+ }
1684
+ }
1685
+ if ((tag & 7) === 4 || tag === 0) {
1686
+ break;
1687
+ }
1688
+ reader.skip(tag & 7);
1689
+ }
1690
+ return message;
1691
+ },
1692
+ create(base) {
1693
+ return exports.GetFraudReasonsResponse.fromPartial(base ?? {});
1694
+ },
1695
+ fromPartial(object) {
1696
+ const message = createBaseGetFraudReasonsResponse();
1697
+ message.meta = (object.meta !== undefined && object.meta !== null)
1698
+ ? meta_1.ResponseMeta.fromPartial(object.meta)
1699
+ : undefined;
1700
+ message.total = object.total ?? 0;
1701
+ message.items = object.items?.map((e) => fraud_catalogs_types_1.CatalogItem.fromPartial(e)) || [];
1702
+ return message;
1703
+ },
1704
+ };
1610
1705
  function createBaseExportCatalogResponse() {
1611
1706
  return { meta: undefined, file_data: Buffer.alloc(0), file_name: "" };
1612
1707
  }
@@ -1672,6 +1767,269 @@ exports.ExportCatalogResponse = {
1672
1767
  return message;
1673
1768
  },
1674
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
+ };
1675
2033
  exports.FraudCatalogsServiceService = {
1676
2034
  getCatalogList: {
1677
2035
  path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetCatalogList",
@@ -1790,6 +2148,15 @@ exports.FraudCatalogsServiceService = {
1790
2148
  responseSerialize: (value) => Buffer.from(exports.GetRuleActionsResponse.encode(value).finish()),
1791
2149
  responseDeserialize: (value) => exports.GetRuleActionsResponse.decode(value),
1792
2150
  },
2151
+ getFraudReasons: {
2152
+ path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/GetFraudReasons",
2153
+ requestStream: false,
2154
+ responseStream: false,
2155
+ requestSerialize: (value) => Buffer.from(exports.GetFraudReasonsRequest.encode(value).finish()),
2156
+ requestDeserialize: (value) => exports.GetFraudReasonsRequest.decode(value),
2157
+ responseSerialize: (value) => Buffer.from(exports.GetFraudReasonsResponse.encode(value).finish()),
2158
+ responseDeserialize: (value) => exports.GetFraudReasonsResponse.decode(value),
2159
+ },
1793
2160
  exportCatalog: {
1794
2161
  path: "/kapital.fraud_catalogs.v1.FraudCatalogsService/ExportCatalog",
1795
2162
  requestStream: false,
@@ -1799,6 +2166,33 @@ exports.FraudCatalogsServiceService = {
1799
2166
  responseSerialize: (value) => Buffer.from(exports.ExportCatalogResponse.encode(value).finish()),
1800
2167
  responseDeserialize: (value) => exports.ExportCatalogResponse.decode(value),
1801
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
+ },
1802
2196
  };
1803
2197
  exports.FraudCatalogsServiceClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.FraudCatalogsServiceService, "kapital.fraud_catalogs.v1.FraudCatalogsService");
1804
2198
  //# sourceMappingURL=fraud_catalogs.js.map