@captureid/datatypes 0.0.5 → 0.0.8

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 (45) hide show
  1. package/esm2022/lib/enums.mjs +30 -23
  2. package/esm2022/lib/model/auth/register-request.mjs +3 -3
  3. package/esm2022/lib/model/common/address-object.mjs +17 -0
  4. package/esm2022/lib/model/common/client-object.mjs +11 -0
  5. package/esm2022/lib/model/common/country.mjs +2 -0
  6. package/esm2022/lib/model/common/currency-object.mjs +19 -0
  7. package/esm2022/lib/model/common/image-object.mjs +21 -0
  8. package/esm2022/lib/model/common/license-object.mjs +19 -0
  9. package/esm2022/lib/model/common/manufacturer-object.mjs +17 -0
  10. package/esm2022/lib/model/common/module-object.mjs +2 -0
  11. package/esm2022/lib/model/common/navigation-object.mjs +2 -0
  12. package/esm2022/lib/model/common/taxes.mjs +2 -0
  13. package/esm2022/lib/model/data-dto.mjs +1 -1
  14. package/esm2022/lib/model/data-object.mjs +4 -1
  15. package/esm2022/lib/model/erp/items/gtin.mjs +2 -0
  16. package/esm2022/lib/model/erp/items/item-object.mjs +15 -0
  17. package/esm2022/lib/model/erp/items/item-properties.mjs +2 -0
  18. package/esm2022/lib/model/erp/items/packaging-object.mjs +18 -0
  19. package/esm2022/lib/model/erp/items/rating-object.mjs +18 -0
  20. package/esm2022/lib/model/print/printer-object.mjs +1 -1
  21. package/esm2022/public-api.mjs +23 -8
  22. package/fesm2022/captureid-datatypes.mjs +287 -149
  23. package/fesm2022/captureid-datatypes.mjs.map +1 -1
  24. package/lib/enums.d.ts +11 -4
  25. package/lib/model/auth/register-request.d.ts +2 -2
  26. package/lib/model/common/address-object.d.ts +33 -0
  27. package/lib/model/common/client-object.d.ts +25 -0
  28. package/lib/model/common/country.d.ts +4 -0
  29. package/lib/model/common/currency-object.d.ts +16 -0
  30. package/lib/model/common/image-object.d.ts +16 -0
  31. package/lib/model/common/license-object.d.ts +16 -0
  32. package/lib/model/common/manufacturer-object.d.ts +14 -0
  33. package/lib/model/common/module-object.d.ts +2 -0
  34. package/lib/model/common/navigation-object.d.ts +2 -0
  35. package/lib/model/common/taxes.d.ts +15 -0
  36. package/lib/model/data-dto.d.ts +2 -2
  37. package/lib/model/data-object.d.ts +2 -1
  38. package/lib/model/erp/items/gtin.d.ts +3 -0
  39. package/lib/model/erp/items/item-object.d.ts +43 -0
  40. package/lib/model/erp/items/item-properties.d.ts +11 -0
  41. package/lib/model/erp/items/packaging-object.d.ts +15 -0
  42. package/lib/model/erp/items/rating-object.d.ts +15 -0
  43. package/lib/model/print/printer-object.d.ts +2 -2
  44. package/package.json +1 -1
  45. 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,7 +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";
46
+ DataType[DataType["CLIENT"] = 28] = "CLIENT";
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";
86
53
  })(DataType || (DataType = {}));
87
54
  var Operators;
88
55
  (function (Operators) {
@@ -185,34 +152,77 @@ var PrinterLanguage;
185
152
  }
186
153
  PrinterLanguage.values = values;
187
154
  })(PrinterLanguage || (PrinterLanguage = {}));
188
- var PrinterVendor;
189
- (function (PrinterVendor) {
190
- PrinterVendor[PrinterVendor["UNKNOWN"] = 0] = "UNKNOWN";
191
- PrinterVendor[PrinterVendor["CITIZEN"] = 1] = "CITIZEN";
192
- PrinterVendor[PrinterVendor["BIXOLON"] = 2] = "BIXOLON";
193
- PrinterVendor[PrinterVendor["BROTHER"] = 3] = "BROTHER";
194
- PrinterVendor[PrinterVendor["ESCPOS"] = 4] = "ESCPOS";
195
- PrinterVendor[PrinterVendor["GOOJPRT"] = 5] = "GOOJPRT";
196
- PrinterVendor[PrinterVendor["HONEYWELL"] = 6] = "HONEYWELL";
197
- PrinterVendor[PrinterVendor["SATO"] = 7] = "SATO";
198
- PrinterVendor[PrinterVendor["ZEBRA"] = 8] = "ZEBRA";
199
- })(PrinterVendor || (PrinterVendor = {}));
200
- (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) {
201
168
  function valueOf(str) {
202
- return PrinterVendor[str];
169
+ return PrinterManufacturer[str];
203
170
  }
204
- PrinterVendor.valueOf = valueOf;
171
+ PrinterManufacturer.valueOf = valueOf;
205
172
  function values() {
206
173
  let res = [];
207
- for (const value in Object.values(PrinterVendor)) {
208
- if (isNaN(Object.values(PrinterVendor)[value]) && typeof (Object.values(PrinterVendor)[value]) !== 'function') {
209
- 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]);
210
177
  }
211
178
  }
212
179
  return res;
213
180
  }
214
- PrinterVendor.values = values;
215
- })(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
+ }
216
226
 
217
227
  class FilterEntry {
218
228
  constructor(fieldname, value, type) {
@@ -238,62 +248,6 @@ class Filter {
238
248
  }
239
249
  }
240
250
 
241
- const version$7 = new DataVersion(1, 0, 0, 0);
242
- class Label {
243
- constructor() {
244
- }
245
- }
246
- class LabelObject extends DataObject {
247
- constructor(data) {
248
- super('', DataType.LABEL, version$7);
249
- this.data = data;
250
- }
251
- }
252
-
253
- const version$6 = new DataVersion(1, 0, 0, 0);
254
- class Variables {
255
- constructor(key, value) {
256
- }
257
- }
258
- class PrintData {
259
- constructor() {
260
- }
261
- }
262
- class PrintLabelObject extends DataObject {
263
- constructor(data) {
264
- super('', DataType.LABELPRINT, version$6);
265
- this.data = data;
266
- }
267
- }
268
-
269
- const version$5 = new DataVersion(1, 0, 0, 0);
270
- class PrinterProperties {
271
- constructor() {
272
- }
273
- }
274
- class Printer {
275
- constructor() {
276
- }
277
- }
278
- class PrinterObject extends DataObject {
279
- constructor(data) {
280
- super('', DataType.PRINTER, version$5);
281
- this.data = data;
282
- }
283
- }
284
-
285
- const version$4 = new DataVersion(1, 0, 0, 0);
286
- class Queue {
287
- constructor() {
288
- }
289
- }
290
- class QueueObject extends DataObject {
291
- constructor(data) {
292
- super('', DataType.QUEUE, version$4);
293
- this.data = data;
294
- }
295
- }
296
-
297
251
  class AuthRequest {
298
252
  constructor(email, password) {
299
253
  this.email = email;
@@ -305,9 +259,9 @@ class AuthResponse {
305
259
  }
306
260
 
307
261
  class RegisterRequest {
308
- constructor(fristname, lastname, email, password, role, use2fa) {
262
+ constructor(firstname, lastname, email, password, role, use2fa) {
309
263
  this.use2fa = true;
310
- this.fristname = fristname;
264
+ this.firstname = firstname;
311
265
  this.lastname = lastname;
312
266
  this.email = email;
313
267
  this.password = password;
@@ -323,41 +277,17 @@ class VerifyRequest {
323
277
  }
324
278
  }
325
279
 
326
- const version$3 = new DataVersion(1, 0, 0, 0);
280
+ const version$g = new DataVersion(1, 0, 0, 0);
327
281
  class AuthenticationData {
328
282
  }
329
283
  class AuthenticationObject extends DataObject {
330
284
  constructor(data) {
331
- super('', DataType.AUTHENTICATION, version$3);
332
- this.data = data;
333
- }
334
- }
335
-
336
- const version$2 = new DataVersion(1, 0, 0, 0);
337
- class ShelfLabel {
338
- constructor() {
339
- }
340
- }
341
- class EslObject extends DataObject {
342
- constructor(data) {
343
- super('', DataType.SHELFLABEL, version$2);
285
+ super('', DataType.AUTHENTICATION, version$g);
344
286
  this.data = data;
345
287
  }
346
288
  }
347
289
 
348
- const version$1 = new DataVersion(1, 0, 0, 0);
349
- class ESLPool {
350
- constructor() {
351
- }
352
- }
353
- class EslPoolObject extends DataObject {
354
- constructor(data) {
355
- super('', DataType.ESLPOOL, version$1);
356
- this.data = data;
357
- }
358
- }
359
-
360
- const version = new DataVersion(1, 0, 0, 0);
290
+ const version$f = new DataVersion(1, 0, 0, 0);
361
291
  class User {
362
292
  constructor(id, firstname, lastname, email, role, phone, mobile, city, zipcode, street, no, country, state, dateOfBirth, avatarImg, context) {
363
293
  this.firstname = firstname;
@@ -379,7 +309,7 @@ class User {
379
309
  }
380
310
  class UserObject extends DataObject {
381
311
  constructor(data) {
382
- super('', DataType.USER, version);
312
+ super('', DataType.USER, version$f);
383
313
  this.data = data;
384
314
  }
385
315
  }
@@ -409,6 +339,214 @@ var Context;
409
339
  Context.values = values;
410
340
  })(Context || (Context = {}));
411
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
+
412
550
  /*
413
551
  * Public API Surface of captureid-datatypes
414
552
  */
@@ -417,5 +555,5 @@ var Context;
417
555
  * Generated bundle index. Do not edit.
418
556
  */
419
557
 
420
- 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 };
421
559
  //# sourceMappingURL=captureid-datatypes.mjs.map