@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.
- package/app/eo-framework/actions/action.module.d.ts +3 -1
- package/app/eo-framework/actions/actions/delete-action/delete/delete.component.d.ts +2 -1
- package/app/eo-framework/actions/actions/signature-action/signature/signature.component.d.ts +96 -0
- package/app/eo-framework/actions/actions/signature-action/signature-action.component.d.ts +19 -0
- package/app/eo-framework/app-shell/app-bar/app-search/app-search.component.d.ts +4 -3
- package/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.d.ts +1 -0
- package/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.d.ts +1 -0
- package/app/eo-framework-core/search/app-search.service.d.ts +5 -0
- package/assets/_default/i18n/de.json +23 -6
- package/assets/_default/i18n/en.json +35 -18
- package/assets/_default/svg/ic_signature.svg +1 -0
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +168 -61
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
- package/bundles/eo-sdk-client.umd.js +208 -27
- package/bundles/eo-sdk-client.umd.js.map +1 -1
- package/bundles/eo-sdk-client.umd.min.js +1 -1
- package/bundles/eo-sdk-client.umd.min.js.map +1 -1
- package/eo-sdk-client.d.ts +12 -10
- package/eo-sdk-client.metadata.json +1 -1
- package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
- package/esm2015/app/eo-framework/actions/action.module.js +9 -3
- package/esm2015/app/eo-framework/actions/actions/delete-action/delete/delete.component.js +14 -6
- package/esm2015/app/eo-framework/actions/actions/signature-action/signature/signature.component.js +109 -0
- package/esm2015/app/eo-framework/actions/actions/signature-action/signature-action.component.js +38 -0
- package/esm2015/app/eo-framework/app-shell/app-bar/app-search/app-search.component.js +10 -4
- package/esm2015/app/eo-framework/object-form/object-form/form-element-table/form-element-table.component.js +3 -2
- package/esm2015/app/eo-framework/object-form/object-form/form-element-table/row-edit/row-edit.component.js +3 -2
- package/esm2015/app/eo-framework/object-form/object-form.module.js +2 -2
- package/esm2015/app/eo-framework/tree/tree.component.js +2 -2
- package/esm2015/app/eo-framework/ui/signature-tab/signature-tab.component.js +3 -3
- package/esm2015/app/eo-framework/upload-overlay/upload-overlay.component.js +2 -2
- package/esm2015/app/eo-framework-core/search/app-search.service.js +15 -1
- package/esm2015/eo-sdk-client.js +13 -11
- package/esm2015/projects/eo-sdk/core/lib/eo-core.module.js +3 -1
- package/esm2015/projects/eo-sdk/core/lib/service/dms/dms.service.js +6 -2
- package/esm2015/projects/eo-sdk/core/lib/service/search/search-query.model.js +64 -62
- package/esm2015/projects/eo-sdk/core/lib/service/search/search.service.js +5 -2
- package/esm2015/projects/eo-sdk/core/lib/service/signing/signing.service.js +97 -0
- package/esm2015/projects/eo-sdk/core/public_api.js +2 -1
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +167 -63
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +190 -19
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/eo-sdk-client-projects-eo-sdk-core.metadata.json +1 -1
- package/projects/eo-sdk/core/lib/service/dms/dms.service.d.ts +2 -1
- package/projects/eo-sdk/core/lib/service/search/search-query.model.d.ts +3 -1
- package/projects/eo-sdk/core/lib/service/signing/signing.service.d.ts +83 -0
- package/projects/eo-sdk/core/package.json +1 -1
- package/projects/eo-sdk/core/public_api.d.ts +1 -0
- 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 ===
|
|
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:
|
|
491
|
-
CREATOR:
|
|
492
|
-
CREATED:
|
|
493
|
-
MODIFIER:
|
|
494
|
-
MODIFIED:
|
|
495
|
-
FILESIZE:
|
|
496
|
-
FILENAME:
|
|
497
|
-
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:
|
|
504
|
-
YESTERDAY:
|
|
505
|
-
THIS_WEEK:
|
|
506
|
-
LAST_WEEK:
|
|
507
|
-
THIS_MONTH:
|
|
508
|
-
LAST_MONTH:
|
|
509
|
-
THIS_YEAR:
|
|
510
|
-
LAST_YEAR:
|
|
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:
|
|
517
|
-
MAIL:
|
|
518
|
-
WORD:
|
|
519
|
-
IMAGE:
|
|
520
|
-
OCTET_STREAM:
|
|
521
|
-
TXT:
|
|
522
|
-
EXCEL:
|
|
523
|
-
POWERPOINT:
|
|
524
|
-
VIDEO:
|
|
525
|
-
HTML:
|
|
526
|
-
AUDIO:
|
|
527
|
-
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
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
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:
|
|
541
|
-
TOGGLED_EXPERTMODE:
|
|
542
|
-
TERM_SET:
|
|
543
|
-
TYPES_SET:
|
|
544
|
-
CONTEXT_FOLDER_SET:
|
|
545
|
-
TOGGLED_FILTER:
|
|
546
|
-
ADDED_FILTER:
|
|
547
|
-
REMOVED_FILTER:
|
|
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 =
|
|
554
|
+
SearchQuery.DEFAULT_SEARCH_MODE = 'idxs';
|
|
553
555
|
/**
|
|
554
556
|
* Search mode for Full test Search
|
|
555
557
|
*/
|
|
556
|
-
SearchQuery.FULLTEXT_SEARCH_MODE =
|
|
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
|
|
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(
|
|
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(
|
|
697
|
+
? new common.DatePipe('en').transform(value, 'yyyy-MM-ddTZ')
|
|
696
698
|
: this.transformDate.time
|
|
697
|
-
? new Date(value).toISOString().slice(0, 16) +
|
|
698
|
-
: new common.DatePipe(
|
|
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:
|
|
756
|
+
EQUAL: 'eq',
|
|
755
757
|
/** match (for string with classification "path6666") */
|
|
756
|
-
MATCH:
|
|
758
|
+
MATCH: 'match',
|
|
757
759
|
/** match at least one of the provided values (value has to be an array) */
|
|
758
|
-
IN:
|
|
760
|
+
IN: 'in',
|
|
759
761
|
/** greater than */
|
|
760
|
-
GREATER_THAN:
|
|
762
|
+
GREATER_THAN: 'gt',
|
|
761
763
|
/** greater than or equal */
|
|
762
|
-
GREATER_OR_EQUAL:
|
|
763
|
-
LESS_THAN:
|
|
764
|
-
LESS_OR_EQUAL:
|
|
765
|
-
INTERVAL:
|
|
766
|
-
INTERVAL_INCLUDE_BOTH:
|
|
767
|
-
INTERVAL_INCLUDE_TO:
|
|
768
|
-
INTERVAL_INCLUDE_FROM:
|
|
769
|
-
RANGE:
|
|
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>®</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;
|