@eo-sdk/client 9.3.0-rc.1 → 9.4.0-rc.1

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 (53) hide show
  1. package/app/eo-framework/actions/action.module.d.ts +3 -1
  2. package/app/eo-framework/actions/actions/delete-action/delete/delete.component.d.ts +2 -1
  3. package/app/eo-framework/actions/actions/signature-action/signature/signature.component.d.ts +96 -0
  4. package/app/eo-framework/actions/actions/signature-action/signature-action.component.d.ts +19 -0
  5. package/app/eo-framework/app-shell/app-bar/app-search/app-search.component.d.ts +4 -3
  6. package/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.d.ts +1 -0
  7. package/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.d.ts +1 -0
  8. package/app/eo-framework-core/search/app-search.service.d.ts +5 -0
  9. package/assets/_default/i18n/de.json +23 -6
  10. package/assets/_default/i18n/en.json +35 -18
  11. package/assets/_default/svg/ic_signature.svg +1 -0
  12. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +168 -61
  13. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
  14. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
  15. package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
  16. package/bundles/eo-sdk-client.umd.js +208 -27
  17. package/bundles/eo-sdk-client.umd.js.map +1 -1
  18. package/bundles/eo-sdk-client.umd.min.js +1 -1
  19. package/bundles/eo-sdk-client.umd.min.js.map +1 -1
  20. package/eo-sdk-client.d.ts +12 -10
  21. package/eo-sdk-client.metadata.json +1 -1
  22. package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
  23. package/esm2015/app/eo-framework/actions/action.module.js +9 -3
  24. package/esm2015/app/eo-framework/actions/actions/delete-action/delete/delete.component.js +14 -6
  25. package/esm2015/app/eo-framework/actions/actions/signature-action/signature/signature.component.js +109 -0
  26. package/esm2015/app/eo-framework/actions/actions/signature-action/signature-action.component.js +38 -0
  27. package/esm2015/app/eo-framework/app-shell/app-bar/app-search/app-search.component.js +10 -4
  28. package/esm2015/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.js +3 -2
  29. package/esm2015/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.js +3 -2
  30. package/esm2015/app/eo-framework/object-form/object-form.module.js +2 -2
  31. package/esm2015/app/eo-framework/tree/tree.component.js +2 -2
  32. package/esm2015/app/eo-framework/ui/signature-tab/signature-tab.component.js +3 -3
  33. package/esm2015/app/eo-framework/upload-overlay/upload-overlay.component.js +2 -2
  34. package/esm2015/app/eo-framework-core/search/app-search.service.js +15 -1
  35. package/esm2015/eo-sdk-client.js +13 -11
  36. package/esm2015/projects/eo-sdk/core/lib/eo-core.module.js +3 -1
  37. package/esm2015/projects/eo-sdk/core/lib/service/dms/dms.service.js +6 -2
  38. package/esm2015/projects/eo-sdk/core/lib/service/search/search-query.model.js +64 -62
  39. package/esm2015/projects/eo-sdk/core/lib/service/search/search.service.js +5 -2
  40. package/esm2015/projects/eo-sdk/core/lib/service/signing/signing.service.js +97 -0
  41. package/esm2015/projects/eo-sdk/core/public_api.js +2 -1
  42. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +167 -63
  43. package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
  44. package/fesm2015/eo-sdk-client.js +190 -19
  45. package/fesm2015/eo-sdk-client.js.map +1 -1
  46. package/package.json +2 -2
  47. package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
  48. package/projects/eo-sdk/core/lib/service/dms/dms.service.d.ts +2 -1
  49. package/projects/eo-sdk/core/lib/service/search/search-query.model.d.ts +3 -1
  50. package/projects/eo-sdk/core/lib/service/signing/signing.service.d.ts +83 -0
  51. package/projects/eo-sdk/core/package.json +1 -1
  52. package/projects/eo-sdk/core/public_api.d.ts +1 -0
  53. package/proxy.config.json +5 -0
@@ -416,7 +416,7 @@
416
416
  var queryJson = {};
417
417
  // add type filters
418
418
  if (this.types.length > 0) {
419
- queryJson.types = this.types.map(function (t) { return typeof t === "string" ? t : t.name; });
419
+ queryJson.types = this.types.map(function (t) { return typeof t === 'string' ? t : t.name; });
420
420
  }
421
421
  // add context folder type filters
422
422
  if (this.contextFolderTypes.length > 0) {
@@ -487,73 +487,75 @@
487
487
  * Base Parameters for a Search Query
488
488
  */
489
489
  SearchQuery.BASE_PARAMS = {
490
- TYPE: "type",
491
- CREATOR: "creator",
492
- CREATED: "created",
493
- MODIFIER: "modifier",
494
- MODIFIED: "modified",
495
- FILESIZE: "filesize",
496
- FILENAME: "filename",
497
- MIMETYPEGROUP: "mimetypegroup"
490
+ TYPE: 'type',
491
+ CREATOR: 'creator',
492
+ CREATED: 'created',
493
+ MODIFIER: 'modifier',
494
+ MODIFIED: 'modified',
495
+ FILESIZE: 'filesize',
496
+ FILENAME: 'filename',
497
+ MIMETYPEGROUP: 'mimetypegroup',
498
+ FOLDER: 'folder'
498
499
  };
499
500
  /**
500
501
  * Time period buckets property names
501
502
  */
502
503
  SearchQuery.TIME_PERIOD_BUCKETS = {
503
- TODAY: "today",
504
- YESTERDAY: "yesterday",
505
- THIS_WEEK: "thisweek",
506
- LAST_WEEK: "lastweek",
507
- THIS_MONTH: "thismonth",
508
- LAST_MONTH: "lastmonth",
509
- THIS_YEAR: "thisyear",
510
- LAST_YEAR: "lastyear"
504
+ TODAY: 'today',
505
+ YESTERDAY: 'yesterday',
506
+ THIS_WEEK: 'thisweek',
507
+ LAST_WEEK: 'lastweek',
508
+ THIS_MONTH: 'thismonth',
509
+ LAST_MONTH: 'lastmonth',
510
+ THIS_YEAR: 'thisyear',
511
+ LAST_YEAR: 'lastyear'
511
512
  };
512
513
  /**
513
514
  * mimetype buckets property names
514
515
  */
515
516
  SearchQuery.MIMETYPEGROUP_BUCKETS = {
516
- PDF: "pdf",
517
- MAIL: "mail",
518
- WORD: "word",
519
- IMAGE: "image",
520
- OCTET_STREAM: "octet-stream",
521
- TXT: "txt",
522
- EXCEL: "excel",
523
- POWERPOINT: "powerpoint",
524
- VIDEO: "video",
525
- HTML: "html",
526
- AUDIO: "audio",
527
- ZIP: "zip"
517
+ PDF: 'pdf',
518
+ MAIL: 'mail',
519
+ WORD: 'word',
520
+ IMAGE: 'image',
521
+ OCTET_STREAM: 'octet-stream',
522
+ TXT: 'txt',
523
+ EXCEL: 'excel',
524
+ POWERPOINT: 'powerpoint',
525
+ VIDEO: 'video',
526
+ HTML: 'html',
527
+ AUDIO: 'audio',
528
+ ZIP: 'zip'
528
529
  };
529
530
  /**
530
531
  * filesize buckets property names
531
532
  */
532
533
  SearchQuery.FILE_SIZE_BUCKETS = {
533
- LT1MB: "lt1MB",
534
- LT10MB: "lt10MB",
535
- LT100MB: "lt100MB",
536
- GT100MB: "gt100MB"
534
+ NONE: 'none',
535
+ LT1MB: 'lt1MB',
536
+ LT10MB: 'lt10MB',
537
+ LT100MB: 'lt100MB',
538
+ GT100MB: 'gt100MB'
537
539
  };
538
540
  // list of things that may have changed the current query
539
541
  SearchQuery.UPDATE_CAUSE = {
540
- TOGGLED_TYPE: "cause.type.toggled",
541
- TOGGLED_EXPERTMODE: "cause.expertmode.toggled",
542
- TERM_SET: "cause.term.set",
543
- TYPES_SET: "cause.types.set",
544
- CONTEXT_FOLDER_SET: "cause.contextfolder.set",
545
- TOGGLED_FILTER: "cause.filter.toggled",
546
- ADDED_FILTER: "cause.filter.added",
547
- REMOVED_FILTER: "cause.filter.removed",
542
+ TOGGLED_TYPE: 'cause.type.toggled',
543
+ TOGGLED_EXPERTMODE: 'cause.expertmode.toggled',
544
+ TERM_SET: 'cause.term.set',
545
+ TYPES_SET: 'cause.types.set',
546
+ CONTEXT_FOLDER_SET: 'cause.contextfolder.set',
547
+ TOGGLED_FILTER: 'cause.filter.toggled',
548
+ ADDED_FILTER: 'cause.filter.added',
549
+ REMOVED_FILTER: 'cause.filter.removed',
548
550
  };
549
551
  /**
550
552
  * Detault Search mode Index
551
553
  */
552
- SearchQuery.DEFAULT_SEARCH_MODE = "idxs";
554
+ SearchQuery.DEFAULT_SEARCH_MODE = 'idxs';
553
555
  /**
554
556
  * Search mode for Full test Search
555
557
  */
556
- SearchQuery.FULLTEXT_SEARCH_MODE = "fts";
558
+ SearchQuery.FULLTEXT_SEARCH_MODE = 'fts';
557
559
  /**
558
560
  * @ignore
559
561
  * Creates the Model of Sort Options
@@ -620,7 +622,7 @@
620
622
  });
621
623
  SearchState.prototype.addAggregations = function (type, key, value, agg) {
622
624
  switch (type) {
623
- case "contexttype": {
625
+ case 'contexttype': {
624
626
  this.aggregations.contextType.set(key, value);
625
627
  break;
626
628
  }
@@ -655,7 +657,7 @@
655
657
  value: value,
656
658
  from: agg.from,
657
659
  to: agg.to || Infinity,
658
- label: key.replace("gt", "> ").replace("lt", "< ")
660
+ label: key.replace('gt', '> ').replace('lt', '< ')
659
661
  });
660
662
  break;
661
663
  }
@@ -692,10 +694,10 @@
692
694
  SearchFilter.prototype.formatDate = function (value) {
693
695
  return this.transformDate && value
694
696
  ? this.transformDate.timezone
695
- ? new common.DatePipe("en").transform(value, "yyyy-MM-ddTZ")
697
+ ? new common.DatePipe('en').transform(value, 'yyyy-MM-ddTZ')
696
698
  : this.transformDate.time
697
- ? new Date(value).toISOString().slice(0, 16) + "Z"
698
- : new common.DatePipe("en").transform(value, "yyyy-MM-dd")
699
+ ? new Date(value).toISOString().slice(0, 16) + 'Z'
700
+ : new common.DatePipe('en').transform(value, 'yyyy-MM-dd')
699
701
  : value;
700
702
  };
701
703
  SearchFilter.prototype.toQuery = function () {
@@ -751,22 +753,22 @@
751
753
  */
752
754
  SearchFilter.OPERATOR = {
753
755
  /** equal */
754
- EQUAL: "eq",
756
+ EQUAL: 'eq',
755
757
  /** match (for string with classification "path6666") */
756
- MATCH: "match",
758
+ MATCH: 'match',
757
759
  /** match at least one of the provided values (value has to be an array) */
758
- IN: "in",
760
+ IN: 'in',
759
761
  /** greater than */
760
- GREATER_THAN: "gt",
762
+ GREATER_THAN: 'gt',
761
763
  /** greater than or equal */
762
- GREATER_OR_EQUAL: "gte",
763
- LESS_THAN: "lt",
764
- LESS_OR_EQUAL: "lte",
765
- INTERVAL: "gtlt",
766
- INTERVAL_INCLUDE_BOTH: "gtelte",
767
- INTERVAL_INCLUDE_TO: "gtlte",
768
- INTERVAL_INCLUDE_FROM: "gtelt",
769
- RANGE: "rg" // aggegation ranges
764
+ GREATER_OR_EQUAL: 'gte',
765
+ LESS_THAN: 'lt',
766
+ LESS_OR_EQUAL: 'lte',
767
+ INTERVAL: 'gtlt',
768
+ INTERVAL_INCLUDE_BOTH: 'gtelte',
769
+ INTERVAL_INCLUDE_TO: 'gtlte',
770
+ INTERVAL_INCLUDE_FROM: 'gtelt',
771
+ RANGE: 'rg' // aggegation ranges
770
772
  };
771
773
 
772
774
  /**
@@ -4951,8 +4953,10 @@
4951
4953
  * @param id The id of the dms object to be deleted.
4952
4954
  * @param type Type of object
4953
4955
  * @param hardDelete If object should really be deleted or only put into the recycle bin
4956
+ * @param force If object should be forced to be deleted, even if it is used inside of a process. Default: false
4954
4957
  */
4955
- DmsService.prototype.deleteDmsObject = function (id, type, hardDelete) {
4958
+ DmsService.prototype.deleteDmsObject = function (id, type, hardDelete, force) {
4959
+ if (force === void 0) { force = false; }
4956
4960
  var url = "/dms/" + id;
4957
4961
  var params = {};
4958
4962
  if (type && type.length > 0) {
@@ -4961,6 +4965,9 @@
4961
4965
  if (hardDelete) {
4962
4966
  params['harddelete'] = hardDelete;
4963
4967
  }
4968
+ if (force) {
4969
+ params['forcedelete'] = force;
4970
+ }
4964
4971
  return this.backend.del(Utils.buildUri(url, params));
4965
4972
  };
4966
4973
  /**
@@ -5613,6 +5620,9 @@
5613
5620
  : [];
5614
5621
  aggregations.forEach(function (aggregation) {
5615
5622
  var key = aggregation.key, doc_count = aggregation.doc_count, contextfoldertype = aggregation.contextfoldertype;
5623
+ if (baseParam === 'filesize') {
5624
+ doc_count = aggregation['filter#documents'].doc_count;
5625
+ }
5616
5626
  state.addAggregations(baseParam, key, doc_count, aggregation);
5617
5627
  /**
5618
5628
  * type aggregations may also contain buckets for their context types
@@ -6546,6 +6556,101 @@
6546
6556
  { type: AuthService }
6547
6557
  ]; };
6548
6558
 
6559
+ /**
6560
+ * Collection of Signing Services
6561
+ */
6562
+ var SigningService = /** @class */ (function () {
6563
+ function SigningService(backend, translate) {
6564
+ this.backend = backend;
6565
+ this.translate = translate;
6566
+ }
6567
+ /**
6568
+ * Sign the document of a DMS Object
6569
+ * @param id the id of the dms object
6570
+ * @param signingData the signing informations
6571
+ * @returns Observable<any>
6572
+ */
6573
+ SigningService.prototype.signDocument = function (id, signingData) {
6574
+ var uri = "/request/" + id;
6575
+ return this.backend.post(uri, signingData, '/signing');
6576
+ };
6577
+ SigningService.prototype.getLocalizedSigningForm = function () {
6578
+ return {
6579
+ 'size': 'small',
6580
+ 'readonly': false,
6581
+ 'name': 'yuvsigners',
6582
+ 'qname': 'yuvsigning.yuvsigners',
6583
+ 'hitname': 'yuvsigning.yuvsigners',
6584
+ 'label': 'Signers',
6585
+ 'type': 'TABLE',
6586
+ 'indexname': 'tab_yuvsigning_yuvsigners',
6587
+ 'required': false,
6588
+ 'elements': [
6589
+ {
6590
+ 'readonly': false,
6591
+ 'name': 'yuvsignerorder',
6592
+ 'qname': 'yuvsigning.yuvsigners.yuvsignerorder',
6593
+ 'hitname': 'yuvsigning.yuvsigners.yuvsignerorder',
6594
+ 'label': this.translate.instant('eo.action.signature.yuvsigners.yuvsignerorder'),
6595
+ 'type': 'NUMBER',
6596
+ 'indexname': 'num_yuvsignerorder',
6597
+ 'scale': 0,
6598
+ 'precision': 10,
6599
+ 'grouping': false,
6600
+ 'selectedforenrichment': false,
6601
+ 'required': false,
6602
+ 'sortable': true,
6603
+ 'searchable': true
6604
+ },
6605
+ {
6606
+ 'size': 'small',
6607
+ 'multiline': false,
6608
+ 'readonly': false,
6609
+ 'name': 'yuvsignername',
6610
+ 'qname': 'yuvsigning.yuvsigners.yuvsignername',
6611
+ 'hitname': 'yuvsigning.yuvsigners.yuvsignername',
6612
+ 'label': this.translate.instant('eo.action.signature.yuvsigners.yuvsignername'),
6613
+ 'type': 'STRING',
6614
+ 'indexname': 'str_yuvsignername',
6615
+ 'autocomplete': true,
6616
+ 'selectedforenrichment': false,
6617
+ 'maxlen': 50,
6618
+ 'minlen': 0,
6619
+ 'required': false,
6620
+ 'sortable': true,
6621
+ 'searchable': true
6622
+ },
6623
+ {
6624
+ 'size': 'small',
6625
+ 'multiline': false,
6626
+ 'readonly': false,
6627
+ 'name': 'yuvsigneremail',
6628
+ 'qname': 'yuvsigning.yuvsigners.yuvsigneremail',
6629
+ 'hitname': 'yuvsigning.yuvsigners.yuvsigneremail',
6630
+ 'label': this.translate.instant('eo.action.signature.yuvsigners.yuvsigneremail'),
6631
+ 'type': 'STRING',
6632
+ 'indexname': 'str_yuvsigneremail',
6633
+ 'autocomplete': true,
6634
+ 'selectedforenrichment': false,
6635
+ 'maxlen': 200,
6636
+ 'minlen': 0,
6637
+ 'required': false,
6638
+ 'sortable': true,
6639
+ 'searchable': true
6640
+ }
6641
+ ]
6642
+ };
6643
+ };
6644
+ return SigningService;
6645
+ }());
6646
+ SigningService.decorators = [
6647
+ { type: i0.Injectable }
6648
+ ];
6649
+ SigningService.ctorParameters = function () { return [
6650
+ { type: BackendService },
6651
+ { type: core.TranslateService }
6652
+ ]; };
6653
+
6549
6654
  /**
6550
6655
  * Main module for connecting an app to an yuuvis<sup>&reg;</sup> RAD backend. To use it just import int in your app module:
6551
6656
  *
@@ -6622,6 +6727,7 @@
6622
6727
  SystemService,
6623
6728
  AppCacheService,
6624
6729
  DmsService,
6730
+ SigningService,
6625
6731
  Config,
6626
6732
  PrepareService,
6627
6733
  InboxService,
@@ -6735,6 +6841,7 @@
6735
6841
  exports.SearchResult = SearchResult;
6736
6842
  exports.SearchService = SearchService;
6737
6843
  exports.SearchState = SearchState;
6844
+ exports.SigningService = SigningService;
6738
6845
  exports.SortOption = SortOption;
6739
6846
  exports.StoredQueriesService = StoredQueriesService;
6740
6847
  exports.StoredQuery = StoredQuery;