@technova-tech/olive-proto-lib 1.2.0

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 (49) hide show
  1. package/accounts/accounts.js +11726 -0
  2. package/admin/admin.js +6902 -0
  3. package/audit/audit.js +984 -0
  4. package/bills/bills.js +2363 -0
  5. package/business/business.js +16432 -0
  6. package/google/protobuf/any.js +113 -0
  7. package/google/protobuf/struct.js +357 -0
  8. package/image/recognition.js +456 -0
  9. package/index.js +46 -0
  10. package/package.json +31 -0
  11. package/pos/transactions.js +2084 -0
  12. package/pos.v1/auth.js +1179 -0
  13. package/pos.v1/card-transactions.js +2473 -0
  14. package/pos.v1/eod.js +2416 -0
  15. package/pos.v1/merchants.js +1552 -0
  16. package/pos.v1/terminal-transactions.js +3792 -0
  17. package/pos.v1/terminal-types.js +3888 -0
  18. package/pos.v1/terminals.js +32605 -0
  19. package/pos.v1/transactions.js +2918 -0
  20. package/shared/response.js +233 -0
  21. package/storage/storage.js +476 -0
  22. package/terminal/terminal.js +12583 -0
  23. package/transfer/transfer.js +3609 -0
  24. package/types/accounts/accounts.d.ts +3943 -0
  25. package/types/admin/admin.d.ts +2348 -0
  26. package/types/audit/audit.d.ts +323 -0
  27. package/types/bills/bills.d.ts +731 -0
  28. package/types/business/business.d.ts +7630 -0
  29. package/types/google/protobuf/any.d.ts +27 -0
  30. package/types/google/protobuf/struct.d.ts +175 -0
  31. package/types/image/recognition.d.ts +147 -0
  32. package/types/index.d.ts +43 -0
  33. package/types/pos/transactions.d.ts +667 -0
  34. package/types/pos.v1/auth.d.ts +374 -0
  35. package/types/pos.v1/card-transactions.d.ts +808 -0
  36. package/types/pos.v1/eod.d.ts +819 -0
  37. package/types/pos.v1/merchants.d.ts +566 -0
  38. package/types/pos.v1/terminal-transactions.d.ts +1342 -0
  39. package/types/pos.v1/terminal-types.d.ts +1215 -0
  40. package/types/pos.v1/terminals.d.ts +11142 -0
  41. package/types/pos.v1/transactions.d.ts +1057 -0
  42. package/types/shared/response.d.ts +65 -0
  43. package/types/storage/storage.d.ts +153 -0
  44. package/types/terminal/terminal.d.ts +5482 -0
  45. package/types/transfer/transfer.d.ts +1148 -0
  46. package/types/users/users.d.ts +4336 -0
  47. package/types/verifications/verifications.d.ts +2952 -0
  48. package/users/users.js +12683 -0
  49. package/verifications/verifications.js +8194 -0
@@ -0,0 +1,27 @@
1
+ import * as pb_1 from "google-protobuf";
2
+ export declare namespace google.protobuf {
3
+ class Any extends pb_1.Message {
4
+ #private;
5
+ constructor(data?: any[] | {
6
+ typeUrl?: string;
7
+ value?: Uint8Array;
8
+ });
9
+ get typeUrl(): string;
10
+ set typeUrl(value: string);
11
+ get value(): Uint8Array;
12
+ set value(value: Uint8Array);
13
+ static fromObject(data: {
14
+ typeUrl?: string;
15
+ value?: Uint8Array;
16
+ }): Any;
17
+ toObject(): {
18
+ typeUrl?: string | undefined;
19
+ value?: Uint8Array | undefined;
20
+ };
21
+ serialize(): Uint8Array;
22
+ serialize(w: pb_1.BinaryWriter): void;
23
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Any;
24
+ serializeBinary(): Uint8Array;
25
+ static deserializeBinary(bytes: Uint8Array): Any;
26
+ }
27
+ }
@@ -0,0 +1,175 @@
1
+ import * as pb_1 from "google-protobuf";
2
+ export declare namespace google.protobuf {
3
+ enum NullValue {
4
+ NULL_VALUE = 0
5
+ }
6
+ class Struct extends pb_1.Message {
7
+ #private;
8
+ constructor(data?: any[] | {
9
+ fields?: Map<string, Value>;
10
+ });
11
+ get fields(): Map<string, Value>;
12
+ set fields(value: Map<string, Value>);
13
+ static fromObject(data: {
14
+ fields?: {
15
+ [key: string]: ReturnType<typeof Value.prototype.toObject>;
16
+ };
17
+ }): Struct;
18
+ toObject(): {
19
+ fields?: {
20
+ [key: string]: {
21
+ nullValue?: NullValue | undefined;
22
+ numberValue?: number | undefined;
23
+ stringValue?: string | undefined;
24
+ boolValue?: boolean | undefined;
25
+ structValue?: {
26
+ fields?: {
27
+ [key: string]: any;
28
+ } | undefined;
29
+ } | undefined;
30
+ listValue?: {
31
+ values?: any[] | undefined;
32
+ } | undefined;
33
+ };
34
+ } | undefined;
35
+ };
36
+ serialize(): Uint8Array;
37
+ serialize(w: pb_1.BinaryWriter): void;
38
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Struct;
39
+ serializeBinary(): Uint8Array;
40
+ static deserializeBinary(bytes: Uint8Array): Struct;
41
+ }
42
+ class Value extends pb_1.Message {
43
+ #private;
44
+ constructor(data?: any[] | ({} & (({
45
+ nullValue?: NullValue;
46
+ numberValue?: never;
47
+ stringValue?: never;
48
+ boolValue?: never;
49
+ structValue?: never;
50
+ listValue?: never;
51
+ } | {
52
+ nullValue?: never;
53
+ numberValue?: number;
54
+ stringValue?: never;
55
+ boolValue?: never;
56
+ structValue?: never;
57
+ listValue?: never;
58
+ } | {
59
+ nullValue?: never;
60
+ numberValue?: never;
61
+ stringValue?: string;
62
+ boolValue?: never;
63
+ structValue?: never;
64
+ listValue?: never;
65
+ } | {
66
+ nullValue?: never;
67
+ numberValue?: never;
68
+ stringValue?: never;
69
+ boolValue?: boolean;
70
+ structValue?: never;
71
+ listValue?: never;
72
+ } | {
73
+ nullValue?: never;
74
+ numberValue?: never;
75
+ stringValue?: never;
76
+ boolValue?: never;
77
+ structValue?: Struct;
78
+ listValue?: never;
79
+ } | {
80
+ nullValue?: never;
81
+ numberValue?: never;
82
+ stringValue?: never;
83
+ boolValue?: never;
84
+ structValue?: never;
85
+ listValue?: ListValue;
86
+ }))));
87
+ get nullValue(): NullValue;
88
+ set nullValue(value: NullValue);
89
+ get hasNullValue(): boolean;
90
+ get numberValue(): number;
91
+ set numberValue(value: number);
92
+ get hasNumberValue(): boolean;
93
+ get stringValue(): string;
94
+ set stringValue(value: string);
95
+ get hasStringValue(): boolean;
96
+ get boolValue(): boolean;
97
+ set boolValue(value: boolean);
98
+ get hasBoolValue(): boolean;
99
+ get structValue(): Struct;
100
+ set structValue(value: Struct);
101
+ get hasStructValue(): boolean;
102
+ get listValue(): ListValue;
103
+ set listValue(value: ListValue);
104
+ get hasListValue(): boolean;
105
+ get kind(): "none" | "nullValue" | "numberValue" | "stringValue" | "boolValue" | "structValue" | "listValue";
106
+ static fromObject(data: {
107
+ nullValue?: NullValue;
108
+ numberValue?: number;
109
+ stringValue?: string;
110
+ boolValue?: boolean;
111
+ structValue?: ReturnType<typeof Struct.prototype.toObject>;
112
+ listValue?: ReturnType<typeof ListValue.prototype.toObject>;
113
+ }): Value;
114
+ toObject(): {
115
+ nullValue?: NullValue | undefined;
116
+ numberValue?: number | undefined;
117
+ stringValue?: string | undefined;
118
+ boolValue?: boolean | undefined;
119
+ structValue?: {
120
+ fields?: {
121
+ [key: string]: {
122
+ nullValue?: NullValue | undefined;
123
+ numberValue?: number | undefined;
124
+ stringValue?: string | undefined;
125
+ boolValue?: boolean | undefined;
126
+ structValue?: any | undefined;
127
+ listValue?: {
128
+ values?: any[] | undefined;
129
+ } | undefined;
130
+ };
131
+ } | undefined;
132
+ } | undefined;
133
+ listValue?: {
134
+ values?: any[] | undefined;
135
+ } | undefined;
136
+ };
137
+ serialize(): Uint8Array;
138
+ serialize(w: pb_1.BinaryWriter): void;
139
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Value;
140
+ serializeBinary(): Uint8Array;
141
+ static deserializeBinary(bytes: Uint8Array): Value;
142
+ }
143
+ class ListValue extends pb_1.Message {
144
+ #private;
145
+ constructor(data?: any[] | {
146
+ values?: Value[];
147
+ });
148
+ get values(): Value[];
149
+ set values(value: Value[]);
150
+ static fromObject(data: {
151
+ values?: ReturnType<typeof Value.prototype.toObject>[];
152
+ }): ListValue;
153
+ toObject(): {
154
+ values?: {
155
+ nullValue?: NullValue | undefined;
156
+ numberValue?: number | undefined;
157
+ stringValue?: string | undefined;
158
+ boolValue?: boolean | undefined;
159
+ structValue?: {
160
+ fields?: {
161
+ [key: string]: any;
162
+ } | undefined;
163
+ } | undefined;
164
+ listValue?: {
165
+ values?: any[] | undefined;
166
+ } | undefined;
167
+ }[] | undefined;
168
+ };
169
+ serialize(): Uint8Array;
170
+ serialize(w: pb_1.BinaryWriter): void;
171
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListValue;
172
+ serializeBinary(): Uint8Array;
173
+ static deserializeBinary(bytes: Uint8Array): ListValue;
174
+ }
175
+ }
@@ -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,43 @@
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 audit } from './audit/audit';
11
+ import { com as pos_transactions } from './pos/transactions';
12
+ import { com as pov1Transaction } from './pos.v1/transactions';
13
+ import { com as pov1Auth } from './pos.v1/auth';
14
+ import { com as pov1Merchants } from './pos.v1/merchants';
15
+ import { com as pov1Eod } from './pos.v1/eod';
16
+ import { com as pov1TerminalTypes } from './pos.v1/terminal-types';
17
+ import { com as pov1TerminalTransactions } from './pos.v1/terminal-transactions';
18
+ import { com as pov1TerminalCardTransactions } from './pos.v1/card-transactions';
19
+ import { com as pov1Terminals } from './pos.v1/terminals';
20
+ declare const proto: {
21
+ import: {
22
+ admin: typeof admin;
23
+ account: typeof account;
24
+ audit: typeof audit;
25
+ user: typeof user;
26
+ verification: typeof verification;
27
+ bills: typeof bills;
28
+ image: typeof image;
29
+ storage: typeof storage;
30
+ transfer: typeof transfer;
31
+ business: typeof business;
32
+ pos_transactions: typeof pos_transactions;
33
+ pov1Transaction: typeof pov1Transaction;
34
+ pov1Auth: typeof pov1Auth;
35
+ pov1Merchants: typeof pov1Merchants;
36
+ pov1Eod: typeof pov1Eod;
37
+ pov1TerminalTypes: typeof pov1TerminalTypes;
38
+ pov1Terminals: typeof pov1Terminals;
39
+ pov1TerminalTransactions: typeof pov1TerminalTransactions;
40
+ pov1TerminalCardTransactions: typeof pov1TerminalCardTransactions;
41
+ };
42
+ };
43
+ export { proto };