@technova-tech/olive-proto-lib 1.6.3

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 (43) hide show
  1. package/accounts/accounts.js +11606 -0
  2. package/admin/admin.js +4926 -0
  3. package/bills/bills.js +2323 -0
  4. package/business/business.js +16229 -0
  5. package/image/recognition.js +456 -0
  6. package/index.js +44 -0
  7. package/package.json +31 -0
  8. package/pos/transactions.js +2084 -0
  9. package/pos.v1/auth.js +1179 -0
  10. package/pos.v1/card-transactions.js +2473 -0
  11. package/pos.v1/eod.js +2416 -0
  12. package/pos.v1/merchants.js +1552 -0
  13. package/pos.v1/terminal-transactions.js +3752 -0
  14. package/pos.v1/terminal-types.js +3888 -0
  15. package/pos.v1/terminals.js +30668 -0
  16. package/pos.v1/transactions.js +2918 -0
  17. package/shared/response.js +233 -0
  18. package/storage/storage.js +476 -0
  19. package/terminal/terminal.js +12263 -0
  20. package/transfer/transfer.js +3609 -0
  21. package/types/accounts/accounts.d.ts +3909 -0
  22. package/types/admin/admin.d.ts +1724 -0
  23. package/types/bills/bills.d.ts +721 -0
  24. package/types/business/business.d.ts +7569 -0
  25. package/types/image/recognition.d.ts +147 -0
  26. package/types/index.d.ts +41 -0
  27. package/types/pos/transactions.d.ts +667 -0
  28. package/types/pos.v1/auth.d.ts +374 -0
  29. package/types/pos.v1/card-transactions.d.ts +808 -0
  30. package/types/pos.v1/eod.d.ts +819 -0
  31. package/types/pos.v1/merchants.d.ts +566 -0
  32. package/types/pos.v1/terminal-transactions.d.ts +1332 -0
  33. package/types/pos.v1/terminal-types.d.ts +1215 -0
  34. package/types/pos.v1/terminals.d.ts +10546 -0
  35. package/types/pos.v1/transactions.d.ts +1057 -0
  36. package/types/shared/response.d.ts +65 -0
  37. package/types/storage/storage.d.ts +153 -0
  38. package/types/terminal/terminal.d.ts +5384 -0
  39. package/types/transfer/transfer.d.ts +1148 -0
  40. package/types/users/users.d.ts +4086 -0
  41. package/types/verifications/verifications.d.ts +2892 -0
  42. package/users/users.js +11870 -0
  43. package/verifications/verifications.js +7989 -0
@@ -0,0 +1,147 @@
1
+ /// <reference types="node" />
2
+ import * as pb_1 from "google-protobuf";
3
+ import * as grpc_1 from "@grpc/grpc-js";
4
+ export declare namespace com.pkg.image {
5
+ export class ValidationErrors extends pb_1.Message {
6
+ #private;
7
+ constructor(data?: any[] | {
8
+ field?: string;
9
+ message?: string;
10
+ });
11
+ get field(): string;
12
+ set field(value: string);
13
+ get message(): string;
14
+ set message(value: string);
15
+ static fromObject(data: {
16
+ field?: string;
17
+ message?: string;
18
+ }): ValidationErrors;
19
+ toObject(): {
20
+ field?: string | undefined;
21
+ message?: string | undefined;
22
+ };
23
+ serialize(): Uint8Array;
24
+ serialize(w: pb_1.BinaryWriter): void;
25
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ValidationErrors;
26
+ serializeBinary(): Uint8Array;
27
+ static deserializeBinary(bytes: Uint8Array): ValidationErrors;
28
+ }
29
+ export class CompareFacesRequest extends pb_1.Message {
30
+ #private;
31
+ constructor(data?: any[] | {
32
+ first?: string;
33
+ second?: string;
34
+ });
35
+ get first(): string;
36
+ set first(value: string);
37
+ get second(): string;
38
+ set second(value: string);
39
+ static fromObject(data: {
40
+ first?: string;
41
+ second?: string;
42
+ }): CompareFacesRequest;
43
+ toObject(): {
44
+ first?: string | undefined;
45
+ second?: string | undefined;
46
+ };
47
+ serialize(): Uint8Array;
48
+ serialize(w: pb_1.BinaryWriter): void;
49
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CompareFacesRequest;
50
+ serializeBinary(): Uint8Array;
51
+ static deserializeBinary(bytes: Uint8Array): CompareFacesRequest;
52
+ }
53
+ export class CompareFacesData extends pb_1.Message {
54
+ #private;
55
+ constructor(data?: any[] | {
56
+ similarity?: number;
57
+ });
58
+ get similarity(): number;
59
+ set similarity(value: number);
60
+ static fromObject(data: {
61
+ similarity?: number;
62
+ }): CompareFacesData;
63
+ toObject(): {
64
+ similarity?: number | undefined;
65
+ };
66
+ serialize(): Uint8Array;
67
+ serialize(w: pb_1.BinaryWriter): void;
68
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CompareFacesData;
69
+ serializeBinary(): Uint8Array;
70
+ static deserializeBinary(bytes: Uint8Array): CompareFacesData;
71
+ }
72
+ export class CompareFacesResponse extends pb_1.Message {
73
+ #private;
74
+ constructor(data?: any[] | {
75
+ status?: string;
76
+ data?: CompareFacesData;
77
+ error?: string;
78
+ message?: string;
79
+ validationErrors?: ValidationErrors[];
80
+ success?: boolean;
81
+ });
82
+ get status(): string;
83
+ set status(value: string);
84
+ get data(): CompareFacesData;
85
+ set data(value: CompareFacesData);
86
+ get hasData(): boolean;
87
+ get error(): string;
88
+ set error(value: string);
89
+ get message(): string;
90
+ set message(value: string);
91
+ get validationErrors(): ValidationErrors[];
92
+ set validationErrors(value: ValidationErrors[]);
93
+ get success(): boolean;
94
+ set success(value: boolean);
95
+ static fromObject(data: {
96
+ status?: string;
97
+ data?: ReturnType<typeof CompareFacesData.prototype.toObject>;
98
+ error?: string;
99
+ message?: string;
100
+ validationErrors?: ReturnType<typeof ValidationErrors.prototype.toObject>[];
101
+ success?: boolean;
102
+ }): CompareFacesResponse;
103
+ toObject(): {
104
+ status?: string | undefined;
105
+ data?: {
106
+ similarity?: number | undefined;
107
+ } | undefined;
108
+ error?: string | undefined;
109
+ message?: string | undefined;
110
+ validationErrors?: {
111
+ field?: string | undefined;
112
+ message?: string | undefined;
113
+ }[] | undefined;
114
+ success?: boolean | undefined;
115
+ };
116
+ serialize(): Uint8Array;
117
+ serialize(w: pb_1.BinaryWriter): void;
118
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CompareFacesResponse;
119
+ serializeBinary(): Uint8Array;
120
+ static deserializeBinary(bytes: Uint8Array): CompareFacesResponse;
121
+ }
122
+ interface GrpcPromiseServiceInterface<P, R> {
123
+ (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
124
+ (message: P, options?: grpc_1.CallOptions): Promise<R>;
125
+ }
126
+ export abstract class UnimplementedImageRecognitionService {
127
+ static definition: {
128
+ CompareFaces: {
129
+ path: string;
130
+ requestStream: boolean;
131
+ responseStream: boolean;
132
+ requestSerialize: (message: CompareFacesRequest) => Buffer;
133
+ requestDeserialize: (bytes: Buffer) => CompareFacesRequest;
134
+ responseSerialize: (message: CompareFacesResponse) => Buffer;
135
+ responseDeserialize: (bytes: Buffer) => CompareFacesResponse;
136
+ };
137
+ };
138
+ [method: string]: grpc_1.UntypedHandleCall;
139
+ abstract CompareFaces(call: grpc_1.ServerUnaryCall<CompareFacesRequest, CompareFacesResponse>, callback: grpc_1.sendUnaryData<CompareFacesResponse>): void;
140
+ }
141
+ const ImageRecognitionClient_base: grpc_1.ServiceClientConstructor;
142
+ export class ImageRecognitionClient extends ImageRecognitionClient_base {
143
+ constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>);
144
+ CompareFaces: GrpcPromiseServiceInterface<CompareFacesRequest, CompareFacesResponse>;
145
+ }
146
+ export {};
147
+ }
@@ -0,0 +1,41 @@
1
+ import { com as account } from './accounts/accounts';
2
+ import { com as admin } from './admin/admin';
3
+ import { com as user } from './users/users';
4
+ import { com as verification } from './verifications/verifications';
5
+ import { com as bills } from './bills/bills';
6
+ import { com as image } from './image/recognition';
7
+ import { com as storage } from './storage/storage';
8
+ import { com as transfer } from './transfer/transfer';
9
+ import { com as business } from './business/business';
10
+ import { com as pos_transactions } from './pos/transactions';
11
+ import { com as pov1Transaction } from './pos.v1/transactions';
12
+ import { com as pov1Auth } from './pos.v1/auth';
13
+ import { com as pov1Merchants } from './pos.v1/merchants';
14
+ import { com as pov1Eod } from './pos.v1/eod';
15
+ import { com as pov1TerminalTypes } from './pos.v1/terminal-types';
16
+ import { com as pov1TerminalTransactions } from './pos.v1/terminal-transactions';
17
+ import { com as pov1TerminalCardTransactions } from './pos.v1/card-transactions';
18
+ import { com as pov1Terminals } from './pos.v1/terminals';
19
+ declare const proto: {
20
+ import: {
21
+ admin: typeof admin;
22
+ account: typeof account;
23
+ user: typeof user;
24
+ verification: typeof verification;
25
+ bills: typeof bills;
26
+ image: typeof image;
27
+ storage: typeof storage;
28
+ transfer: typeof transfer;
29
+ business: typeof business;
30
+ pos_transactions: typeof pos_transactions;
31
+ pov1Transaction: typeof pov1Transaction;
32
+ pov1Auth: typeof pov1Auth;
33
+ pov1Merchants: typeof pov1Merchants;
34
+ pov1Eod: typeof pov1Eod;
35
+ pov1TerminalTypes: typeof pov1TerminalTypes;
36
+ pov1Terminals: typeof pov1Terminals;
37
+ pov1TerminalTransactions: typeof pov1TerminalTransactions;
38
+ pov1TerminalCardTransactions: typeof pov1TerminalCardTransactions;
39
+ };
40
+ };
41
+ export { proto };