@captureid/datatypes 0.0.6 → 0.0.9

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/esm2022/lib/enums.mjs +28 -23
  2. package/esm2022/lib/model/common/address-object.mjs +17 -0
  3. package/esm2022/lib/model/common/client-object.mjs +11 -0
  4. package/esm2022/lib/model/common/country.mjs +2 -0
  5. package/esm2022/lib/model/common/currency-object.mjs +19 -0
  6. package/esm2022/lib/model/common/image-object.mjs +21 -0
  7. package/esm2022/lib/model/common/license-object.mjs +19 -0
  8. package/esm2022/lib/model/common/manufacturer-object.mjs +17 -0
  9. package/esm2022/lib/model/common/module-object.mjs +2 -0
  10. package/esm2022/lib/model/common/navigation-object.mjs +2 -0
  11. package/esm2022/lib/model/common/taxes.mjs +2 -0
  12. package/esm2022/lib/model/data-dto.mjs +1 -1
  13. package/esm2022/lib/model/data-object.mjs +4 -1
  14. package/esm2022/lib/model/erp/items/gtin.mjs +2 -0
  15. package/esm2022/lib/model/erp/items/item-object.mjs +15 -0
  16. package/esm2022/lib/model/erp/items/item-properties.mjs +2 -0
  17. package/esm2022/lib/model/erp/items/packaging-object.mjs +18 -0
  18. package/esm2022/lib/model/erp/items/rating-object.mjs +18 -0
  19. package/esm2022/lib/model/print/printer-object.mjs +1 -1
  20. package/esm2022/public-api.mjs +23 -8
  21. package/fesm2022/captureid-datatypes.mjs +283 -147
  22. package/fesm2022/captureid-datatypes.mjs.map +1 -1
  23. package/lib/enums.d.ts +10 -5
  24. package/lib/model/common/address-object.d.ts +33 -0
  25. package/lib/model/common/client-object.d.ts +25 -0
  26. package/lib/model/common/country.d.ts +4 -0
  27. package/lib/model/common/currency-object.d.ts +16 -0
  28. package/lib/model/common/image-object.d.ts +16 -0
  29. package/lib/model/common/license-object.d.ts +16 -0
  30. package/lib/model/common/manufacturer-object.d.ts +14 -0
  31. package/lib/model/common/module-object.d.ts +2 -0
  32. package/lib/model/common/navigation-object.d.ts +2 -0
  33. package/lib/model/common/taxes.d.ts +15 -0
  34. package/lib/model/data-dto.d.ts +2 -2
  35. package/lib/model/data-object.d.ts +2 -1
  36. package/lib/model/erp/items/gtin.d.ts +3 -0
  37. package/lib/model/erp/items/item-object.d.ts +43 -0
  38. package/lib/model/erp/items/item-properties.d.ts +11 -0
  39. package/lib/model/erp/items/packaging-object.d.ts +15 -0
  40. package/lib/model/erp/items/rating-object.d.ts +15 -0
  41. package/lib/model/print/printer-object.d.ts +2 -2
  42. package/package.json +3 -3
  43. package/public-api.d.ts +22 -7
@@ -13,46 +13,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.3", ngImpor
13
13
  }]
14
14
  }], ctorParameters: () => [] });
15
15
 
16
- class DataVersion {
17
- constructor(major, minor, patch, build) {
18
- this.major = major;
19
- this.minor = minor;
20
- this.patch = patch;
21
- this.build = build;
22
- this.version = major + '.' + minor + '.' + patch + '.' + build;
23
- }
24
- }
25
-
26
- const version$8 = new DataVersion(1, 0, 0, 0);
27
- class DataDto {
28
- constructor(data) {
29
- this.version = version$8;
30
- if (data === undefined) {
31
- this.data = [];
32
- }
33
- else {
34
- this.data = data;
35
- }
36
- }
37
- addEntry(data) {
38
- this.data.push(data);
39
- }
40
- getEntryCount() {
41
- return this.data.length;
42
- }
43
- }
44
-
45
- class DataObject {
46
- constructor(objectid, type, version) {
47
- this.objectid = objectid;
48
- this.type = type;
49
- this.version = version;
50
- }
51
- getEntryCount() {
52
- return this.data === undefined ? 0 : this.data.length;
53
- }
54
- }
55
-
56
16
  var DataType;
57
17
  (function (DataType) {
58
18
  DataType[DataType["UNKNOWN"] = 0] = "UNKNOWN";
@@ -73,7 +33,7 @@ var DataType;
73
33
  DataType[DataType["MODULE"] = 15] = "MODULE";
74
34
  DataType[DataType["PRODUCT_CATEGORY"] = 16] = "PRODUCT_CATEGORY";
75
35
  DataType[DataType["PRODUCT_SUBCATEGORY"] = 17] = "PRODUCT_SUBCATEGORY";
76
- DataType[DataType["PRODUCT"] = 18] = "PRODUCT";
36
+ DataType[DataType["ITEM"] = 18] = "ITEM";
77
37
  DataType[DataType["ADDRESS"] = 19] = "ADDRESS";
78
38
  DataType[DataType["LOCATION"] = 20] = "LOCATION";
79
39
  DataType[DataType["ACCESSPOINT"] = 21] = "ACCESSPOINT";
@@ -82,9 +42,14 @@ var DataType;
82
42
  DataType[DataType["PAYMENTTERMINAL"] = 24] = "PAYMENTTERMINAL";
83
43
  DataType[DataType["ESLPOOL"] = 25] = "ESLPOOL";
84
44
  DataType[DataType["VERIFICATIONTOKEN"] = 26] = "VERIFICATIONTOKEN";
85
- DataType[DataType["UserProfile"] = 27] = "UserProfile";
45
+ DataType[DataType["USERPROFILE"] = 27] = "USERPROFILE";
86
46
  DataType[DataType["CLIENT"] = 28] = "CLIENT";
87
47
  DataType[DataType["LICENSE"] = 29] = "LICENSE";
48
+ DataType[DataType["IMAGE"] = 30] = "IMAGE";
49
+ DataType[DataType["MANUFACTURER"] = 31] = "MANUFACTURER";
50
+ DataType[DataType["RATING"] = 32] = "RATING";
51
+ DataType[DataType["PACKAGING"] = 33] = "PACKAGING";
52
+ DataType[DataType["CURRENCY"] = 34] = "CURRENCY";
88
53
  })(DataType || (DataType = {}));
89
54
  var Operators;
90
55
  (function (Operators) {
@@ -187,34 +152,77 @@ var PrinterLanguage;
187
152
  }
188
153
  PrinterLanguage.values = values;
189
154
  })(PrinterLanguage || (PrinterLanguage = {}));
190
- var PrinterVendor;
191
- (function (PrinterVendor) {
192
- PrinterVendor[PrinterVendor["UNKNOWN"] = 0] = "UNKNOWN";
193
- PrinterVendor[PrinterVendor["CITIZEN"] = 1] = "CITIZEN";
194
- PrinterVendor[PrinterVendor["BIXOLON"] = 2] = "BIXOLON";
195
- PrinterVendor[PrinterVendor["BROTHER"] = 3] = "BROTHER";
196
- PrinterVendor[PrinterVendor["ESCPOS"] = 4] = "ESCPOS";
197
- PrinterVendor[PrinterVendor["GOOJPRT"] = 5] = "GOOJPRT";
198
- PrinterVendor[PrinterVendor["HONEYWELL"] = 6] = "HONEYWELL";
199
- PrinterVendor[PrinterVendor["SATO"] = 7] = "SATO";
200
- PrinterVendor[PrinterVendor["ZEBRA"] = 8] = "ZEBRA";
201
- })(PrinterVendor || (PrinterVendor = {}));
202
- (function (PrinterVendor) {
155
+ var PrinterManufacturer;
156
+ (function (PrinterManufacturer) {
157
+ PrinterManufacturer[PrinterManufacturer["UNKNOWN"] = 0] = "UNKNOWN";
158
+ PrinterManufacturer[PrinterManufacturer["CITIZEN"] = 1] = "CITIZEN";
159
+ PrinterManufacturer[PrinterManufacturer["BIXOLON"] = 2] = "BIXOLON";
160
+ PrinterManufacturer[PrinterManufacturer["BROTHER"] = 3] = "BROTHER";
161
+ PrinterManufacturer[PrinterManufacturer["ESCPOS"] = 4] = "ESCPOS";
162
+ PrinterManufacturer[PrinterManufacturer["GOOJPRT"] = 5] = "GOOJPRT";
163
+ PrinterManufacturer[PrinterManufacturer["HONEYWELL"] = 6] = "HONEYWELL";
164
+ PrinterManufacturer[PrinterManufacturer["SATO"] = 7] = "SATO";
165
+ PrinterManufacturer[PrinterManufacturer["ZEBRA"] = 8] = "ZEBRA";
166
+ })(PrinterManufacturer || (PrinterManufacturer = {}));
167
+ (function (PrinterManufacturer) {
203
168
  function valueOf(str) {
204
- return PrinterVendor[str];
169
+ return PrinterManufacturer[str];
205
170
  }
206
- PrinterVendor.valueOf = valueOf;
171
+ PrinterManufacturer.valueOf = valueOf;
207
172
  function values() {
208
173
  let res = [];
209
- for (const value in Object.values(PrinterVendor)) {
210
- if (isNaN(Object.values(PrinterVendor)[value]) && typeof (Object.values(PrinterVendor)[value]) !== 'function') {
211
- res.push(Object.values(PrinterVendor)[value]);
174
+ for (const value in Object.values(PrinterManufacturer)) {
175
+ if (isNaN(Object.values(PrinterManufacturer)[value]) && typeof (Object.values(PrinterManufacturer)[value]) !== 'function') {
176
+ res.push(Object.values(PrinterManufacturer)[value]);
212
177
  }
213
178
  }
214
179
  return res;
215
180
  }
216
- PrinterVendor.values = values;
217
- })(PrinterVendor || (PrinterVendor = {}));
181
+ PrinterManufacturer.values = values;
182
+ })(PrinterManufacturer || (PrinterManufacturer = {}));
183
+
184
+ class DataVersion {
185
+ constructor(major, minor, patch, build) {
186
+ this.major = major;
187
+ this.minor = minor;
188
+ this.patch = patch;
189
+ this.build = build;
190
+ this.version = major + '.' + minor + '.' + patch + '.' + build;
191
+ }
192
+ }
193
+
194
+ const version$h = new DataVersion(1, 0, 0, 0);
195
+ class DataDto {
196
+ constructor(data) {
197
+ this.version = version$h;
198
+ if (data === undefined) {
199
+ this.data = [];
200
+ }
201
+ else {
202
+ this.data = data;
203
+ }
204
+ }
205
+ addEntry(data) {
206
+ this.data.push(data);
207
+ }
208
+ getEntryCount() {
209
+ return this.data.length;
210
+ }
211
+ }
212
+
213
+ class DataObject {
214
+ constructor(objectid, type, version) {
215
+ this.objectid = objectid;
216
+ this.type = type;
217
+ this.version = version;
218
+ }
219
+ addEntry(data) {
220
+ this.data.push(data);
221
+ }
222
+ getEntryCount() {
223
+ return this.data === undefined ? 0 : this.data.length;
224
+ }
225
+ }
218
226
 
219
227
  class FilterEntry {
220
228
  constructor(fieldname, value, type) {
@@ -240,62 +248,6 @@ class Filter {
240
248
  }
241
249
  }
242
250
 
243
- const version$7 = new DataVersion(1, 0, 0, 0);
244
- class Label {
245
- constructor() {
246
- }
247
- }
248
- class LabelObject extends DataObject {
249
- constructor(data) {
250
- super('', DataType.LABEL, version$7);
251
- this.data = data;
252
- }
253
- }
254
-
255
- const version$6 = new DataVersion(1, 0, 0, 0);
256
- class Variables {
257
- constructor(key, value) {
258
- }
259
- }
260
- class PrintData {
261
- constructor() {
262
- }
263
- }
264
- class PrintLabelObject extends DataObject {
265
- constructor(data) {
266
- super('', DataType.LABELPRINT, version$6);
267
- this.data = data;
268
- }
269
- }
270
-
271
- const version$5 = new DataVersion(1, 0, 0, 0);
272
- class PrinterProperties {
273
- constructor() {
274
- }
275
- }
276
- class Printer {
277
- constructor() {
278
- }
279
- }
280
- class PrinterObject extends DataObject {
281
- constructor(data) {
282
- super('', DataType.PRINTER, version$5);
283
- this.data = data;
284
- }
285
- }
286
-
287
- const version$4 = new DataVersion(1, 0, 0, 0);
288
- class Queue {
289
- constructor() {
290
- }
291
- }
292
- class QueueObject extends DataObject {
293
- constructor(data) {
294
- super('', DataType.QUEUE, version$4);
295
- this.data = data;
296
- }
297
- }
298
-
299
251
  class AuthRequest {
300
252
  constructor(email, password) {
301
253
  this.email = email;
@@ -325,41 +277,17 @@ class VerifyRequest {
325
277
  }
326
278
  }
327
279
 
328
- const version$3 = new DataVersion(1, 0, 0, 0);
280
+ const version$g = new DataVersion(1, 0, 0, 0);
329
281
  class AuthenticationData {
330
282
  }
331
283
  class AuthenticationObject extends DataObject {
332
284
  constructor(data) {
333
- super('', DataType.AUTHENTICATION, version$3);
334
- this.data = data;
335
- }
336
- }
337
-
338
- const version$2 = new DataVersion(1, 0, 0, 0);
339
- class ShelfLabel {
340
- constructor() {
341
- }
342
- }
343
- class EslObject extends DataObject {
344
- constructor(data) {
345
- super('', DataType.SHELFLABEL, version$2);
346
- this.data = data;
347
- }
348
- }
349
-
350
- const version$1 = new DataVersion(1, 0, 0, 0);
351
- class ESLPool {
352
- constructor() {
353
- }
354
- }
355
- class EslPoolObject extends DataObject {
356
- constructor(data) {
357
- super('', DataType.ESLPOOL, version$1);
285
+ super('', DataType.AUTHENTICATION, version$g);
358
286
  this.data = data;
359
287
  }
360
288
  }
361
289
 
362
- const version = new DataVersion(1, 0, 0, 0);
290
+ const version$f = new DataVersion(1, 0, 0, 0);
363
291
  class User {
364
292
  constructor(id, firstname, lastname, email, role, phone, mobile, city, zipcode, street, no, country, state, dateOfBirth, avatarImg, context) {
365
293
  this.firstname = firstname;
@@ -381,7 +309,7 @@ class User {
381
309
  }
382
310
  class UserObject extends DataObject {
383
311
  constructor(data) {
384
- super('', DataType.USER, version);
312
+ super('', DataType.USER, version$f);
385
313
  this.data = data;
386
314
  }
387
315
  }
@@ -411,6 +339,214 @@ var Context;
411
339
  Context.values = values;
412
340
  })(Context || (Context = {}));
413
341
 
342
+ const version$e = new DataVersion(1, 0, 0, 0);
343
+ class Manufactutrer {
344
+ constructor(id, name) {
345
+ this.id = id;
346
+ this.name = name;
347
+ }
348
+ }
349
+ class ManufacturerObject extends DataObject {
350
+ constructor(data) {
351
+ super('', DataType.MANUFACTURER, version$e);
352
+ this.data = data;
353
+ }
354
+ }
355
+
356
+ const version$d = new DataVersion(1, 0, 0, 0);
357
+ class License {
358
+ constructor(id, companyid, licensekey, validuntil) {
359
+ this.id = id;
360
+ this.companyid = companyid;
361
+ this.licensekey = licensekey;
362
+ this.validuntil = validuntil;
363
+ }
364
+ }
365
+ class LicenseObject extends DataObject {
366
+ constructor(data) {
367
+ super('', DataType.LICENSE, version$d);
368
+ this.data = data;
369
+ }
370
+ }
371
+
372
+ const version$c = new DataVersion(1, 0, 0, 0);
373
+ class AddressType {
374
+ }
375
+ class AddressToCompany {
376
+ }
377
+ class Address {
378
+ }
379
+ class AddressObject extends DataObject {
380
+ constructor(data) {
381
+ super('', DataType.ADDRESS, version$c);
382
+ this.data = data;
383
+ }
384
+ }
385
+
386
+ const version$b = new DataVersion(1, 0, 0, 0);
387
+ class ClientObject extends DataObject {
388
+ constructor(data) {
389
+ super('', DataType.CLIENT, version$b);
390
+ this.data = data;
391
+ }
392
+ }
393
+
394
+ const version$a = new DataVersion(1, 0, 0, 0);
395
+ class Currency {
396
+ constructor(id, name, isocode, symbol) {
397
+ this.id = id;
398
+ this.name = name;
399
+ this.isocode = isocode;
400
+ this.symbol = symbol;
401
+ }
402
+ }
403
+ class CurrencyObject extends DataObject {
404
+ constructor(data) {
405
+ super('', DataType.CURRENCY, version$a);
406
+ this.data = data;
407
+ }
408
+ }
409
+
410
+ const version$9 = new DataVersion(1, 0, 0, 0);
411
+ class Image {
412
+ constructor(width, height, blob) {
413
+ this.width = width;
414
+ this.height = height;
415
+ this.blob = blob;
416
+ }
417
+ }
418
+ class ImageObject extends DataObject {
419
+ constructor(data) {
420
+ super('', DataType.IMAGE, version$9);
421
+ this.data = data;
422
+ }
423
+ getEntryCount() {
424
+ return this.data.length;
425
+ }
426
+ }
427
+
428
+ const version$8 = new DataVersion(1, 0, 0, 0);
429
+ class Item {
430
+ constructor() {
431
+ }
432
+ }
433
+ class ItemObject extends DataObject {
434
+ constructor(data) {
435
+ super('', DataType.ITEM, version$8);
436
+ this.data = data;
437
+ }
438
+ }
439
+
440
+ const version$7 = new DataVersion(1, 0, 0, 0);
441
+ class Packaging {
442
+ constructor(id, name, dimensions) {
443
+ this.id = id;
444
+ this.name = name;
445
+ this.dimensions = dimensions;
446
+ }
447
+ }
448
+ class PackagingObject extends DataObject {
449
+ constructor(data) {
450
+ super('', DataType.PACKAGING, version$7);
451
+ this.data = data;
452
+ }
453
+ }
454
+
455
+ const version$6 = new DataVersion(1, 0, 0, 0);
456
+ class Rating {
457
+ constructor(id, value, comment) {
458
+ this.id = id;
459
+ this.value = value;
460
+ this.comment = comment;
461
+ }
462
+ }
463
+ class RatingObject extends DataObject {
464
+ constructor(data) {
465
+ super('', DataType.RATING, version$6);
466
+ this.data = data;
467
+ }
468
+ }
469
+
470
+ const version$5 = new DataVersion(1, 0, 0, 0);
471
+ class ShelfLabel {
472
+ constructor() {
473
+ }
474
+ }
475
+ class EslObject extends DataObject {
476
+ constructor(data) {
477
+ super('', DataType.SHELFLABEL, version$5);
478
+ this.data = data;
479
+ }
480
+ }
481
+
482
+ const version$4 = new DataVersion(1, 0, 0, 0);
483
+ class ESLPool {
484
+ constructor() {
485
+ }
486
+ }
487
+ class EslPoolObject extends DataObject {
488
+ constructor(data) {
489
+ super('', DataType.ESLPOOL, version$4);
490
+ this.data = data;
491
+ }
492
+ }
493
+
494
+ const version$3 = new DataVersion(1, 0, 0, 0);
495
+ class Label {
496
+ constructor() {
497
+ }
498
+ }
499
+ class LabelObject extends DataObject {
500
+ constructor(data) {
501
+ super('', DataType.LABEL, version$3);
502
+ this.data = data;
503
+ }
504
+ }
505
+
506
+ const version$2 = new DataVersion(1, 0, 0, 0);
507
+ class Variables {
508
+ constructor(key, value) {
509
+ }
510
+ }
511
+ class PrintData {
512
+ constructor() {
513
+ }
514
+ }
515
+ class PrintLabelObject extends DataObject {
516
+ constructor(data) {
517
+ super('', DataType.LABELPRINT, version$2);
518
+ this.data = data;
519
+ }
520
+ }
521
+
522
+ const version$1 = new DataVersion(1, 0, 0, 0);
523
+ class PrinterProperties {
524
+ constructor() {
525
+ }
526
+ }
527
+ class Printer {
528
+ constructor() {
529
+ }
530
+ }
531
+ class PrinterObject extends DataObject {
532
+ constructor(data) {
533
+ super('', DataType.PRINTER, version$1);
534
+ this.data = data;
535
+ }
536
+ }
537
+
538
+ const version = new DataVersion(1, 0, 0, 0);
539
+ class Queue {
540
+ constructor() {
541
+ }
542
+ }
543
+ class QueueObject extends DataObject {
544
+ constructor(data) {
545
+ super('', DataType.QUEUE, version);
546
+ this.data = data;
547
+ }
548
+ }
549
+
414
550
  /*
415
551
  * Public API Surface of captureid-datatypes
416
552
  */
@@ -419,5 +555,5 @@ var Context;
419
555
  * Generated bundle index. Do not edit.
420
556
  */
421
557
 
422
- export { AuthRequest, AuthResponse, AuthenticationData, AuthenticationObject, CaptureidDatatypesService, Context, DataDto, DataObject, DataType, DataVersion, DatabaseEventType, ESLPool, EslObject, EslPoolObject, Filter, FilterEntries, FilterEntry, Label, LabelObject, ModuleType, Operators, PrintData, PrintLabelObject, Printer, PrinterLanguage, PrinterObject, PrinterProperties, PrinterVendor, Queue, QueueObject, RegisterRequest, RegistrationState, ShelfLabel, User, UserObject, Variables, VerifyRequest };
558
+ export { Address, AddressObject, AddressToCompany, AddressType, AuthRequest, AuthResponse, AuthenticationData, AuthenticationObject, CaptureidDatatypesService, ClientObject, Context, Currency, CurrencyObject, DataDto, DataObject, DataType, DataVersion, DatabaseEventType, ESLPool, EslObject, EslPoolObject, Filter, FilterEntries, FilterEntry, Image, ImageObject, Item, ItemObject, Label, LabelObject, License, LicenseObject, ManufacturerObject, Manufactutrer, ModuleType, Operators, Packaging, PackagingObject, PrintData, PrintLabelObject, Printer, PrinterLanguage, PrinterManufacturer, PrinterObject, PrinterProperties, Queue, QueueObject, Rating, RatingObject, RegisterRequest, RegistrationState, ShelfLabel, User, UserObject, Variables, VerifyRequest };
423
559
  //# sourceMappingURL=captureid-datatypes.mjs.map