@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.
- package/accounts/accounts.js +11726 -0
- package/admin/admin.js +6902 -0
- package/audit/audit.js +984 -0
- package/bills/bills.js +2363 -0
- package/business/business.js +16432 -0
- package/google/protobuf/any.js +113 -0
- package/google/protobuf/struct.js +357 -0
- package/image/recognition.js +456 -0
- package/index.js +46 -0
- package/package.json +31 -0
- package/pos/transactions.js +2084 -0
- package/pos.v1/auth.js +1179 -0
- package/pos.v1/card-transactions.js +2473 -0
- package/pos.v1/eod.js +2416 -0
- package/pos.v1/merchants.js +1552 -0
- package/pos.v1/terminal-transactions.js +3792 -0
- package/pos.v1/terminal-types.js +3888 -0
- package/pos.v1/terminals.js +32605 -0
- package/pos.v1/transactions.js +2918 -0
- package/shared/response.js +233 -0
- package/storage/storage.js +476 -0
- package/terminal/terminal.js +12583 -0
- package/transfer/transfer.js +3609 -0
- package/types/accounts/accounts.d.ts +3943 -0
- package/types/admin/admin.d.ts +2348 -0
- package/types/audit/audit.d.ts +323 -0
- package/types/bills/bills.d.ts +731 -0
- package/types/business/business.d.ts +7630 -0
- package/types/google/protobuf/any.d.ts +27 -0
- package/types/google/protobuf/struct.d.ts +175 -0
- package/types/image/recognition.d.ts +147 -0
- package/types/index.d.ts +43 -0
- package/types/pos/transactions.d.ts +667 -0
- package/types/pos.v1/auth.d.ts +374 -0
- package/types/pos.v1/card-transactions.d.ts +808 -0
- package/types/pos.v1/eod.d.ts +819 -0
- package/types/pos.v1/merchants.d.ts +566 -0
- package/types/pos.v1/terminal-transactions.d.ts +1342 -0
- package/types/pos.v1/terminal-types.d.ts +1215 -0
- package/types/pos.v1/terminals.d.ts +11142 -0
- package/types/pos.v1/transactions.d.ts +1057 -0
- package/types/shared/response.d.ts +65 -0
- package/types/storage/storage.d.ts +153 -0
- package/types/terminal/terminal.d.ts +5482 -0
- package/types/transfer/transfer.d.ts +1148 -0
- package/types/users/users.d.ts +4336 -0
- package/types/verifications/verifications.d.ts +2952 -0
- package/users/users.js +12683 -0
- package/verifications/verifications.js +8194 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.com = void 0;
|
|
27
|
+
const pb_1 = __importStar(require("google-protobuf"));
|
|
28
|
+
const grpc_1 = __importStar(require("@grpc/grpc-js"));
|
|
29
|
+
var com;
|
|
30
|
+
(function (com) {
|
|
31
|
+
var pkg;
|
|
32
|
+
(function (pkg) {
|
|
33
|
+
var image;
|
|
34
|
+
(function (image) {
|
|
35
|
+
class ValidationErrors extends pb_1.Message {
|
|
36
|
+
#one_of_decls = [];
|
|
37
|
+
constructor(data) {
|
|
38
|
+
super();
|
|
39
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
40
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
41
|
+
if ("field" in data && data.field != undefined) {
|
|
42
|
+
this.field = data.field;
|
|
43
|
+
}
|
|
44
|
+
if ("message" in data && data.message != undefined) {
|
|
45
|
+
this.message = data.message;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
get field() {
|
|
50
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
51
|
+
}
|
|
52
|
+
set field(value) {
|
|
53
|
+
pb_1.Message.setField(this, 1, value);
|
|
54
|
+
}
|
|
55
|
+
get message() {
|
|
56
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
57
|
+
}
|
|
58
|
+
set message(value) {
|
|
59
|
+
pb_1.Message.setField(this, 2, value);
|
|
60
|
+
}
|
|
61
|
+
static fromObject(data) {
|
|
62
|
+
const message = new ValidationErrors({});
|
|
63
|
+
if (data.field != null) {
|
|
64
|
+
message.field = data.field;
|
|
65
|
+
}
|
|
66
|
+
if (data.message != null) {
|
|
67
|
+
message.message = data.message;
|
|
68
|
+
}
|
|
69
|
+
return message;
|
|
70
|
+
}
|
|
71
|
+
toObject() {
|
|
72
|
+
const data = {};
|
|
73
|
+
if (this.field != null) {
|
|
74
|
+
data.field = this.field;
|
|
75
|
+
}
|
|
76
|
+
if (this.message != null) {
|
|
77
|
+
data.message = this.message;
|
|
78
|
+
}
|
|
79
|
+
return data;
|
|
80
|
+
}
|
|
81
|
+
serialize(w) {
|
|
82
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
83
|
+
if (this.field.length)
|
|
84
|
+
writer.writeString(1, this.field);
|
|
85
|
+
if (this.message.length)
|
|
86
|
+
writer.writeString(2, this.message);
|
|
87
|
+
if (!w)
|
|
88
|
+
return writer.getResultBuffer();
|
|
89
|
+
}
|
|
90
|
+
static deserialize(bytes) {
|
|
91
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ValidationErrors();
|
|
92
|
+
while (reader.nextField()) {
|
|
93
|
+
if (reader.isEndGroup())
|
|
94
|
+
break;
|
|
95
|
+
switch (reader.getFieldNumber()) {
|
|
96
|
+
case 1:
|
|
97
|
+
message.field = reader.readString();
|
|
98
|
+
break;
|
|
99
|
+
case 2:
|
|
100
|
+
message.message = reader.readString();
|
|
101
|
+
break;
|
|
102
|
+
default: reader.skipField();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return message;
|
|
106
|
+
}
|
|
107
|
+
serializeBinary() {
|
|
108
|
+
return this.serialize();
|
|
109
|
+
}
|
|
110
|
+
static deserializeBinary(bytes) {
|
|
111
|
+
return ValidationErrors.deserialize(bytes);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
image.ValidationErrors = ValidationErrors;
|
|
115
|
+
class CompareFacesRequest extends pb_1.Message {
|
|
116
|
+
#one_of_decls = [];
|
|
117
|
+
constructor(data) {
|
|
118
|
+
super();
|
|
119
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
120
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
121
|
+
if ("first" in data && data.first != undefined) {
|
|
122
|
+
this.first = data.first;
|
|
123
|
+
}
|
|
124
|
+
if ("second" in data && data.second != undefined) {
|
|
125
|
+
this.second = data.second;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
get first() {
|
|
130
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
131
|
+
}
|
|
132
|
+
set first(value) {
|
|
133
|
+
pb_1.Message.setField(this, 1, value);
|
|
134
|
+
}
|
|
135
|
+
get second() {
|
|
136
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
137
|
+
}
|
|
138
|
+
set second(value) {
|
|
139
|
+
pb_1.Message.setField(this, 2, value);
|
|
140
|
+
}
|
|
141
|
+
static fromObject(data) {
|
|
142
|
+
const message = new CompareFacesRequest({});
|
|
143
|
+
if (data.first != null) {
|
|
144
|
+
message.first = data.first;
|
|
145
|
+
}
|
|
146
|
+
if (data.second != null) {
|
|
147
|
+
message.second = data.second;
|
|
148
|
+
}
|
|
149
|
+
return message;
|
|
150
|
+
}
|
|
151
|
+
toObject() {
|
|
152
|
+
const data = {};
|
|
153
|
+
if (this.first != null) {
|
|
154
|
+
data.first = this.first;
|
|
155
|
+
}
|
|
156
|
+
if (this.second != null) {
|
|
157
|
+
data.second = this.second;
|
|
158
|
+
}
|
|
159
|
+
return data;
|
|
160
|
+
}
|
|
161
|
+
serialize(w) {
|
|
162
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
163
|
+
if (this.first.length)
|
|
164
|
+
writer.writeString(1, this.first);
|
|
165
|
+
if (this.second.length)
|
|
166
|
+
writer.writeString(2, this.second);
|
|
167
|
+
if (!w)
|
|
168
|
+
return writer.getResultBuffer();
|
|
169
|
+
}
|
|
170
|
+
static deserialize(bytes) {
|
|
171
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CompareFacesRequest();
|
|
172
|
+
while (reader.nextField()) {
|
|
173
|
+
if (reader.isEndGroup())
|
|
174
|
+
break;
|
|
175
|
+
switch (reader.getFieldNumber()) {
|
|
176
|
+
case 1:
|
|
177
|
+
message.first = reader.readString();
|
|
178
|
+
break;
|
|
179
|
+
case 2:
|
|
180
|
+
message.second = reader.readString();
|
|
181
|
+
break;
|
|
182
|
+
default: reader.skipField();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return message;
|
|
186
|
+
}
|
|
187
|
+
serializeBinary() {
|
|
188
|
+
return this.serialize();
|
|
189
|
+
}
|
|
190
|
+
static deserializeBinary(bytes) {
|
|
191
|
+
return CompareFacesRequest.deserialize(bytes);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
image.CompareFacesRequest = CompareFacesRequest;
|
|
195
|
+
class CompareFacesData extends pb_1.Message {
|
|
196
|
+
#one_of_decls = [];
|
|
197
|
+
constructor(data) {
|
|
198
|
+
super();
|
|
199
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
200
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
201
|
+
if ("similarity" in data && data.similarity != undefined) {
|
|
202
|
+
this.similarity = data.similarity;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
get similarity() {
|
|
207
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
208
|
+
}
|
|
209
|
+
set similarity(value) {
|
|
210
|
+
pb_1.Message.setField(this, 1, value);
|
|
211
|
+
}
|
|
212
|
+
static fromObject(data) {
|
|
213
|
+
const message = new CompareFacesData({});
|
|
214
|
+
if (data.similarity != null) {
|
|
215
|
+
message.similarity = data.similarity;
|
|
216
|
+
}
|
|
217
|
+
return message;
|
|
218
|
+
}
|
|
219
|
+
toObject() {
|
|
220
|
+
const data = {};
|
|
221
|
+
if (this.similarity != null) {
|
|
222
|
+
data.similarity = this.similarity;
|
|
223
|
+
}
|
|
224
|
+
return data;
|
|
225
|
+
}
|
|
226
|
+
serialize(w) {
|
|
227
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
228
|
+
if (this.similarity != 0)
|
|
229
|
+
writer.writeDouble(1, this.similarity);
|
|
230
|
+
if (!w)
|
|
231
|
+
return writer.getResultBuffer();
|
|
232
|
+
}
|
|
233
|
+
static deserialize(bytes) {
|
|
234
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CompareFacesData();
|
|
235
|
+
while (reader.nextField()) {
|
|
236
|
+
if (reader.isEndGroup())
|
|
237
|
+
break;
|
|
238
|
+
switch (reader.getFieldNumber()) {
|
|
239
|
+
case 1:
|
|
240
|
+
message.similarity = reader.readDouble();
|
|
241
|
+
break;
|
|
242
|
+
default: reader.skipField();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return message;
|
|
246
|
+
}
|
|
247
|
+
serializeBinary() {
|
|
248
|
+
return this.serialize();
|
|
249
|
+
}
|
|
250
|
+
static deserializeBinary(bytes) {
|
|
251
|
+
return CompareFacesData.deserialize(bytes);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
image.CompareFacesData = CompareFacesData;
|
|
255
|
+
class CompareFacesResponse extends pb_1.Message {
|
|
256
|
+
#one_of_decls = [];
|
|
257
|
+
constructor(data) {
|
|
258
|
+
super();
|
|
259
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], this.#one_of_decls);
|
|
260
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
261
|
+
if ("status" in data && data.status != undefined) {
|
|
262
|
+
this.status = data.status;
|
|
263
|
+
}
|
|
264
|
+
if ("data" in data && data.data != undefined) {
|
|
265
|
+
this.data = data.data;
|
|
266
|
+
}
|
|
267
|
+
if ("error" in data && data.error != undefined) {
|
|
268
|
+
this.error = data.error;
|
|
269
|
+
}
|
|
270
|
+
if ("message" in data && data.message != undefined) {
|
|
271
|
+
this.message = data.message;
|
|
272
|
+
}
|
|
273
|
+
if ("validationErrors" in data && data.validationErrors != undefined) {
|
|
274
|
+
this.validationErrors = data.validationErrors;
|
|
275
|
+
}
|
|
276
|
+
if ("success" in data && data.success != undefined) {
|
|
277
|
+
this.success = data.success;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
get status() {
|
|
282
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
283
|
+
}
|
|
284
|
+
set status(value) {
|
|
285
|
+
pb_1.Message.setField(this, 1, value);
|
|
286
|
+
}
|
|
287
|
+
get data() {
|
|
288
|
+
return pb_1.Message.getWrapperField(this, CompareFacesData, 2);
|
|
289
|
+
}
|
|
290
|
+
set data(value) {
|
|
291
|
+
pb_1.Message.setWrapperField(this, 2, value);
|
|
292
|
+
}
|
|
293
|
+
get hasData() {
|
|
294
|
+
return pb_1.Message.getField(this, 2) != null;
|
|
295
|
+
}
|
|
296
|
+
get error() {
|
|
297
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
298
|
+
}
|
|
299
|
+
set error(value) {
|
|
300
|
+
pb_1.Message.setField(this, 3, value);
|
|
301
|
+
}
|
|
302
|
+
get message() {
|
|
303
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
304
|
+
}
|
|
305
|
+
set message(value) {
|
|
306
|
+
pb_1.Message.setField(this, 4, value);
|
|
307
|
+
}
|
|
308
|
+
get validationErrors() {
|
|
309
|
+
return pb_1.Message.getRepeatedWrapperField(this, ValidationErrors, 5);
|
|
310
|
+
}
|
|
311
|
+
set validationErrors(value) {
|
|
312
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
313
|
+
}
|
|
314
|
+
get success() {
|
|
315
|
+
return pb_1.Message.getFieldWithDefault(this, 6, false);
|
|
316
|
+
}
|
|
317
|
+
set success(value) {
|
|
318
|
+
pb_1.Message.setField(this, 6, value);
|
|
319
|
+
}
|
|
320
|
+
static fromObject(data) {
|
|
321
|
+
const message = new CompareFacesResponse({});
|
|
322
|
+
if (data.status != null) {
|
|
323
|
+
message.status = data.status;
|
|
324
|
+
}
|
|
325
|
+
if (data.data != null) {
|
|
326
|
+
message.data = CompareFacesData.fromObject(data.data);
|
|
327
|
+
}
|
|
328
|
+
if (data.error != null) {
|
|
329
|
+
message.error = data.error;
|
|
330
|
+
}
|
|
331
|
+
if (data.message != null) {
|
|
332
|
+
message.message = data.message;
|
|
333
|
+
}
|
|
334
|
+
if (data.validationErrors != null) {
|
|
335
|
+
message.validationErrors = data.validationErrors.map(item => ValidationErrors.fromObject(item));
|
|
336
|
+
}
|
|
337
|
+
if (data.success != null) {
|
|
338
|
+
message.success = data.success;
|
|
339
|
+
}
|
|
340
|
+
return message;
|
|
341
|
+
}
|
|
342
|
+
toObject() {
|
|
343
|
+
const data = {};
|
|
344
|
+
if (this.status != null) {
|
|
345
|
+
data.status = this.status;
|
|
346
|
+
}
|
|
347
|
+
if (this.data != null) {
|
|
348
|
+
data.data = this.data.toObject();
|
|
349
|
+
}
|
|
350
|
+
if (this.error != null) {
|
|
351
|
+
data.error = this.error;
|
|
352
|
+
}
|
|
353
|
+
if (this.message != null) {
|
|
354
|
+
data.message = this.message;
|
|
355
|
+
}
|
|
356
|
+
if (this.validationErrors != null) {
|
|
357
|
+
data.validationErrors = this.validationErrors.map((item) => item.toObject());
|
|
358
|
+
}
|
|
359
|
+
if (this.success != null) {
|
|
360
|
+
data.success = this.success;
|
|
361
|
+
}
|
|
362
|
+
return data;
|
|
363
|
+
}
|
|
364
|
+
serialize(w) {
|
|
365
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
366
|
+
if (this.status.length)
|
|
367
|
+
writer.writeString(1, this.status);
|
|
368
|
+
if (this.hasData)
|
|
369
|
+
writer.writeMessage(2, this.data, () => this.data.serialize(writer));
|
|
370
|
+
if (this.error.length)
|
|
371
|
+
writer.writeString(3, this.error);
|
|
372
|
+
if (this.message.length)
|
|
373
|
+
writer.writeString(4, this.message);
|
|
374
|
+
if (this.validationErrors.length)
|
|
375
|
+
writer.writeRepeatedMessage(5, this.validationErrors, (item) => item.serialize(writer));
|
|
376
|
+
if (this.success != false)
|
|
377
|
+
writer.writeBool(6, this.success);
|
|
378
|
+
if (!w)
|
|
379
|
+
return writer.getResultBuffer();
|
|
380
|
+
}
|
|
381
|
+
static deserialize(bytes) {
|
|
382
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CompareFacesResponse();
|
|
383
|
+
while (reader.nextField()) {
|
|
384
|
+
if (reader.isEndGroup())
|
|
385
|
+
break;
|
|
386
|
+
switch (reader.getFieldNumber()) {
|
|
387
|
+
case 1:
|
|
388
|
+
message.status = reader.readString();
|
|
389
|
+
break;
|
|
390
|
+
case 2:
|
|
391
|
+
reader.readMessage(message.data, () => message.data = CompareFacesData.deserialize(reader));
|
|
392
|
+
break;
|
|
393
|
+
case 3:
|
|
394
|
+
message.error = reader.readString();
|
|
395
|
+
break;
|
|
396
|
+
case 4:
|
|
397
|
+
message.message = reader.readString();
|
|
398
|
+
break;
|
|
399
|
+
case 5:
|
|
400
|
+
reader.readMessage(message.validationErrors, () => pb_1.Message.addToRepeatedWrapperField(message, 5, ValidationErrors.deserialize(reader), ValidationErrors));
|
|
401
|
+
break;
|
|
402
|
+
case 6:
|
|
403
|
+
message.success = reader.readBool();
|
|
404
|
+
break;
|
|
405
|
+
default: reader.skipField();
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return message;
|
|
409
|
+
}
|
|
410
|
+
serializeBinary() {
|
|
411
|
+
return this.serialize();
|
|
412
|
+
}
|
|
413
|
+
static deserializeBinary(bytes) {
|
|
414
|
+
return CompareFacesResponse.deserialize(bytes);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
image.CompareFacesResponse = CompareFacesResponse;
|
|
418
|
+
class UnimplementedImageRecognitionService {
|
|
419
|
+
static definition = {
|
|
420
|
+
CompareFaces: {
|
|
421
|
+
path: "/com.pkg.image.ImageRecognition/CompareFaces",
|
|
422
|
+
requestStream: false,
|
|
423
|
+
responseStream: false,
|
|
424
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
425
|
+
requestDeserialize: (bytes) => CompareFacesRequest.deserialize(new Uint8Array(bytes)),
|
|
426
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
427
|
+
responseDeserialize: (bytes) => CompareFacesResponse.deserialize(new Uint8Array(bytes))
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
image.UnimplementedImageRecognitionService = UnimplementedImageRecognitionService;
|
|
432
|
+
class ImageRecognitionClient extends grpc_1.makeGenericClientConstructor(UnimplementedImageRecognitionService.definition, "ImageRecognition", {}) {
|
|
433
|
+
constructor(address, credentials, options) {
|
|
434
|
+
super(address, credentials, options);
|
|
435
|
+
}
|
|
436
|
+
CompareFaces = (message, metadata, options) => {
|
|
437
|
+
if (!metadata) {
|
|
438
|
+
metadata = new grpc_1.Metadata;
|
|
439
|
+
}
|
|
440
|
+
if (!options) {
|
|
441
|
+
options = {};
|
|
442
|
+
}
|
|
443
|
+
return new Promise((resolve, reject) => super.CompareFaces(message, metadata, options, (error, response) => {
|
|
444
|
+
if (error) {
|
|
445
|
+
reject(error);
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
resolve(response);
|
|
449
|
+
}
|
|
450
|
+
}));
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
image.ImageRecognitionClient = ImageRecognitionClient;
|
|
454
|
+
})(image = pkg.image || (pkg.image = {}));
|
|
455
|
+
})(pkg = com.pkg || (com.pkg = {}));
|
|
456
|
+
})(com || (exports.com = com = {}));
|
package/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proto = void 0;
|
|
4
|
+
const accounts_1 = require("./accounts/accounts");
|
|
5
|
+
const admin_1 = require("./admin/admin");
|
|
6
|
+
const users_1 = require("./users/users");
|
|
7
|
+
const verifications_1 = require("./verifications/verifications");
|
|
8
|
+
const bills_1 = require("./bills/bills");
|
|
9
|
+
const recognition_1 = require("./image/recognition");
|
|
10
|
+
const storage_1 = require("./storage/storage");
|
|
11
|
+
const transfer_1 = require("./transfer/transfer");
|
|
12
|
+
const business_1 = require("./business/business");
|
|
13
|
+
const audit_1 = require("./audit/audit");
|
|
14
|
+
const transactions_1 = require("./pos/transactions");
|
|
15
|
+
const transactions_2 = require("./pos.v1/transactions");
|
|
16
|
+
const auth_1 = require("./pos.v1/auth");
|
|
17
|
+
const merchants_1 = require("./pos.v1/merchants");
|
|
18
|
+
const eod_1 = require("./pos.v1/eod");
|
|
19
|
+
const terminal_types_1 = require("./pos.v1/terminal-types");
|
|
20
|
+
const terminal_transactions_1 = require("./pos.v1/terminal-transactions");
|
|
21
|
+
const card_transactions_1 = require("./pos.v1/card-transactions");
|
|
22
|
+
const terminals_1 = require("./pos.v1/terminals");
|
|
23
|
+
const proto = {
|
|
24
|
+
import: {
|
|
25
|
+
admin: admin_1.com,
|
|
26
|
+
account: accounts_1.com,
|
|
27
|
+
audit: audit_1.com,
|
|
28
|
+
user: users_1.com,
|
|
29
|
+
verification: verifications_1.com,
|
|
30
|
+
bills: bills_1.com,
|
|
31
|
+
image: recognition_1.com,
|
|
32
|
+
storage: storage_1.com,
|
|
33
|
+
transfer: transfer_1.com,
|
|
34
|
+
business: business_1.com,
|
|
35
|
+
pos_transactions: transactions_1.com,
|
|
36
|
+
pov1Transaction: transactions_2.com,
|
|
37
|
+
pov1Auth: auth_1.com,
|
|
38
|
+
pov1Merchants: merchants_1.com,
|
|
39
|
+
pov1Eod: eod_1.com,
|
|
40
|
+
pov1TerminalTypes: terminal_types_1.com,
|
|
41
|
+
pov1Terminals: terminals_1.com,
|
|
42
|
+
pov1TerminalTransactions: terminal_transactions_1.com,
|
|
43
|
+
pov1TerminalCardTransactions: card_transactions_1.com,
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
exports.proto = proto;
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@technova-tech/olive-proto-lib",
|
|
3
|
+
"description": "Olive MFB Proto Library",
|
|
4
|
+
"author": "Technova Technologies",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "index",
|
|
7
|
+
"types": "types",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "rm -rf src && mkdir src && protoc --plugin=protoc-gen-ts=$PWD/node_modules/.bin/protoc-gen-ts --ts_out=src --ts_opt=unary_rpc_promise=true --ts_opt=target=node --ts_opt=json_names -I=proto -I=node_modules/google-protobuf proto/**/*.proto",
|
|
10
|
+
"build:next": "rm -rf src && mkdir src && protoc-25.3.0 --plugin=protoc-gen-ts=$PWD/node_modules/.bin/protoc-gen-ts --ts_out=src --ts_opt=unary_rpc_promise=true --ts_opt=target=node --ts_opt=json_names -I=proto -I=node_modules/google-protobuf proto/**/*.proto",
|
|
11
|
+
"compile": "tsc -p tsconfig.json"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"version": "1.2.0",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/google-protobuf": "^3.15.12",
|
|
17
|
+
"protoc-gen-ts": "^0.8.7",
|
|
18
|
+
"protolint": "^0.47.5",
|
|
19
|
+
"ts-proto": "^1.167.8",
|
|
20
|
+
"tsconfig-paths": "^4.2.0",
|
|
21
|
+
"typescript": "^5.4.3"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@grpc/grpc-js": "^1.10.1",
|
|
25
|
+
"google-protobuf": "^3.21.2"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git@github.com:technova-technologies/olive-proto.git"
|
|
30
|
+
}
|
|
31
|
+
}
|