@vidispine/types 22.4.0-pre.9 → 22.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidispine/types",
3
- "version": "22.4.0-pre.9",
3
+ "version": "22.4.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,18 +9,18 @@
9
9
  "homepage": "https://vidispine.github.io/vdt/",
10
10
  "types": "dist/index.d.ts",
11
11
  "devDependencies": {
12
- "@vidispine/eslint-config-base": "22.4.0-pre.9",
13
- "@vidispine/eslint-config-mdx": "22.4.0-pre.9",
14
- "@vidispine/eslint-config-typescript": "22.4.0-pre.9",
15
- "@vidispine/prettier-config": "22.4.0-pre.9",
16
- "eslint": "8.23.1",
17
- "prettier": "2.7.1",
12
+ "@vidispine/eslint-config-base": "22.4.0",
13
+ "@vidispine/eslint-config-mdx": "22.4.0",
14
+ "@vidispine/eslint-config-typescript": "22.4.0",
15
+ "@vidispine/prettier-config": "22.4.0",
16
+ "eslint": "8.28.0",
17
+ "prettier": "2.8.0",
18
18
  "rimraf": "3.0.2",
19
- "rollup": "2.79.0",
19
+ "rollup": "2.79.1",
20
20
  "rollup-plugin-delete": "2.0.0",
21
- "rollup-plugin-dts": "4.2.2",
22
- "rollup-plugin-typescript2": "0.34.0",
23
- "typescript": "4.8.3"
21
+ "rollup-plugin-dts": "4.2.3",
22
+ "rollup-plugin-typescript2": "0.34.1",
23
+ "typescript": "4.9.3"
24
24
  },
25
25
  "scripts": {
26
26
  "build": "rimraf dist && rollup -c",
package/src/index.ts CHANGED
@@ -251,6 +251,7 @@ export type { ExternalTranscodeJobType } from './models/ExternalTranscodeJobType
251
251
  export type { ExternalTranscoderType } from './models/ExternalTranscoderType';
252
252
  export type { ExternalVideoMediaType } from './models/ExternalVideoMediaType';
253
253
  export type { FacetCountType } from './models/FacetCountType';
254
+ export type { FacetFilterType } from './models/FacetFilterType';
254
255
  export type { FacetRangeType } from './models/FacetRangeType';
255
256
  export type { FacetType } from './models/FacetType';
256
257
  export type { FastStartSettingType } from './models/FastStartSettingType';
@@ -437,6 +438,9 @@ export type { MetadataFieldValueConstraintListDocument } from './models/Metadata
437
438
  export type { MetadataFieldValueConstraintListType } from './models/MetadataFieldValueConstraintListType';
438
439
  export type { MetadataFieldValueConstraintType } from './models/MetadataFieldValueConstraintType';
439
440
  export type { MetadataFieldValueType } from './models/MetadataFieldValueType';
441
+ export type { MetadataGroupSearchDocument } from './models/MetadataGroupSearchDocument';
442
+ export type { MetadataGroupSearchOperatorType } from './models/MetadataGroupSearchOperatorType';
443
+ export type { MetadataGroupSearchType } from './models/MetadataGroupSearchType';
440
444
  export type { MetadataGroupValueType } from './models/MetadataGroupValueType';
441
445
  export type { MetadataListDocument } from './models/MetadataListDocument';
442
446
  export type { MetadataListType } from './models/MetadataListType';
@@ -584,6 +588,7 @@ export type { ResolutionType } from './models/ResolutionType';
584
588
  export type { ResourceDocument } from './models/ResourceDocument';
585
589
  export type { ResourceListDocument } from './models/ResourceListDocument';
586
590
  export type { ResourceListType } from './models/ResourceListType';
591
+ export type { ResourceTagType } from './models/ResourceTagType';
587
592
  export type { ResourceType } from './models/ResourceType';
588
593
  export type { ResourceTypeListDocument } from './models/ResourceTypeListDocument';
589
594
  export type { ResourceTypeListType } from './models/ResourceTypeListType';
@@ -594,9 +599,11 @@ export type { ScheduledRequestListDocument } from './models/ScheduledRequestList
594
599
  export type { ScheduledRequestListType } from './models/ScheduledRequestListType';
595
600
  export type { ScheduledRequestType } from './models/ScheduledRequestType';
596
601
  export type { SearchAclType } from './models/SearchAclType';
602
+ export type { SearchFacetType } from './models/SearchFacetType';
597
603
  export type { SearchFieldType } from './models/SearchFieldType';
598
604
  export type { SearchFilterType } from './models/SearchFilterType';
599
605
  export type { SearchGroupType } from './models/SearchGroupType';
606
+ export type { SearchHighlightType } from './models/SearchHighlightType';
600
607
  export type { SearchHistoryDocument } from './models/SearchHistoryDocument';
601
608
  export type { SearchHistoryListType } from './models/SearchHistoryListType';
602
609
  export type { SearchHistoryType } from './models/SearchHistoryType';
@@ -0,0 +1,7 @@
1
+ import type { FacetRangeType } from './FacetRangeType';
2
+
3
+ export type FacetFilterType = {
4
+ field: string;
5
+ range?: FacetRangeType;
6
+ value?: string;
7
+ };
@@ -9,4 +9,8 @@ export type IndexingConfigurationType = {
9
9
  name: string;
10
10
  fullText: boolean;
11
11
  }>;
12
+ solrPath?: string;
13
+ solrCollection?: string;
14
+ zookeeperHost?: Array<string>;
15
+ elasticsearchPath?: string;
12
16
  };
@@ -1,13 +1,15 @@
1
1
  import type { AutocompleteRequestType } from './AutocompleteRequestType';
2
2
  import type { CollectionCriterionType } from './CollectionCriterionType';
3
3
  import type { CriterionType } from './CriterionType';
4
- import type { FacetRangeType } from './FacetRangeType';
4
+ import type { FacetFilterType } from './FacetFilterType';
5
5
  import type { ItemCriterionType } from './ItemCriterionType';
6
6
  import type { ItemSearchTextValueType } from './ItemSearchTextValueType';
7
7
  import type { SearchAclType } from './SearchAclType';
8
+ import type { SearchFacetType } from './SearchFacetType';
8
9
  import type { SearchFieldType } from './SearchFieldType';
9
10
  import type { SearchFilterType } from './SearchFilterType';
10
11
  import type { SearchGroupType } from './SearchGroupType';
12
+ import type { SearchHighlightType } from './SearchHighlightType';
11
13
  import type { SearchIntervalsType } from './SearchIntervalsType';
12
14
  import type { SearchOperatorType } from './SearchOperatorType';
13
15
  import type { ShapeCriterionType } from './ShapeCriterionType';
@@ -27,30 +29,13 @@ export type ItemSearchType = {
27
29
  item?: ItemCriterionType;
28
30
  shape?: ShapeCriterionType;
29
31
  file?: CriterionType;
30
- facetFilter?: Array<{
31
- field: string;
32
- range?: FacetRangeType;
33
- value?: string;
34
- }>;
35
- facet?: Array<{
36
- field: string;
37
- range?: Array<FacetRangeType>;
38
- exclude?: Array<string>;
39
- count?: boolean;
40
- minCount?: number;
41
- maxResults?: number;
42
- name?: string;
43
- }>;
32
+ facetFilter?: Array<FacetFilterType>;
33
+ facet?: Array<SearchFacetType>;
44
34
  sort?: Array<{
45
35
  field: string;
46
36
  order: SortingOrderType;
47
37
  }>;
48
- highlight?: {
49
- field?: Array<string>;
50
- matchingOnly?: boolean;
51
- prefix?: string;
52
- suffix?: string;
53
- };
38
+ highlight?: SearchHighlightType;
54
39
  suggestion?: SuggestionSearchType;
55
40
  autocomplete?: Array<AutocompleteRequestType>;
56
41
  cursor?: string;
@@ -0,0 +1,3 @@
1
+ import type { MetadataGroupSearchType } from './MetadataGroupSearchType';
2
+
3
+ export type MetadataGroupSearchDocument = MetadataGroupSearchType;
@@ -0,0 +1,10 @@
1
+ import type { ItemSearchTextValueType } from './ItemSearchTextValueType';
2
+ import type { SearchFieldType } from './SearchFieldType';
3
+ import type { SearchOperationType } from './SearchOperationType';
4
+
5
+ export type MetadataGroupSearchOperatorType = {
6
+ text?: Array<ItemSearchTextValueType>;
7
+ operator?: Array<MetadataGroupSearchOperatorType>;
8
+ field?: Array<SearchFieldType>;
9
+ operation: SearchOperationType;
10
+ };
@@ -0,0 +1,22 @@
1
+ import type { FacetFilterType } from './FacetFilterType';
2
+ import type { ItemSearchTextValueType } from './ItemSearchTextValueType';
3
+ import type { MetadataGroupSearchOperatorType } from './MetadataGroupSearchOperatorType';
4
+ import type { SearchFacetType } from './SearchFacetType';
5
+ import type { SearchFieldType } from './SearchFieldType';
6
+ import type { SearchFilterType } from './SearchFilterType';
7
+ import type { SearchHighlightType } from './SearchHighlightType';
8
+ import type { SortingOrderType } from './SortingOrderType';
9
+
10
+ export type MetadataGroupSearchType = {
11
+ text?: Array<ItemSearchTextValueType>;
12
+ field?: Array<SearchFieldType>;
13
+ operator?: MetadataGroupSearchOperatorType;
14
+ filter?: Array<SearchFilterType>;
15
+ facetFilter?: Array<FacetFilterType>;
16
+ facet?: Array<SearchFacetType>;
17
+ highlight?: SearchHighlightType;
18
+ sort?: Array<{
19
+ field: string;
20
+ order: SortingOrderType;
21
+ }>;
22
+ };
@@ -1,7 +1,7 @@
1
- import { MetadataFieldValueType } from './MetadataFieldValueType';
2
-
3
1
  import type { KeyValuePairType } from './KeyValuePairType';
2
+ import type { MetadataFieldValueType } from './MetadataFieldValueType';
4
3
  import type { MetadataReferencedType } from './MetadataReferencedType';
4
+ import type { MetadataReferenceType } from './MetadataReferenceType';
5
5
  import type { MetadataValueAttributes } from './MetadataValueAttributes';
6
6
 
7
7
  export type MetadataGroupValueType = MetadataValueAttributes & {
@@ -9,9 +9,9 @@ export type MetadataGroupValueType = MetadataValueAttributes & {
9
9
  id?: Array<string>;
10
10
  referenced?: MetadataReferencedType;
11
11
  data?: Array<KeyValuePairType>;
12
+ field?: Array<MetadataFieldValueType>;
13
+ group?: Array<MetadataGroupValueType>;
14
+ reference?: MetadataReferenceType;
12
15
  inheritance?: string;
13
16
  cycle?: boolean;
14
- } & {
15
- group?: MetadataGroupValueType[];
16
- field?: MetadataFieldValueType[];
17
17
  };
@@ -0,0 +1,6 @@
1
+ import type { KeyValuePairType } from './KeyValuePairType';
2
+
3
+ export type ResourceTagType = KeyValuePairType & {
4
+ sourceName?: string;
5
+ sourceType?: string;
6
+ };
@@ -0,0 +1,11 @@
1
+ import type { FacetRangeType } from './FacetRangeType';
2
+
3
+ export type SearchFacetType = {
4
+ field: string;
5
+ range?: Array<FacetRangeType>;
6
+ exclude?: Array<string>;
7
+ count?: boolean;
8
+ minCount?: number;
9
+ maxResults?: number;
10
+ name?: string;
11
+ };
@@ -1,6 +1,10 @@
1
+ import type { SearchFieldType } from './SearchFieldType';
1
2
  import type { SearchOperatorType } from './SearchOperatorType';
2
3
 
3
4
  export type SearchGroupType = {
4
5
  name?: string;
5
6
  operator?: SearchOperatorType;
7
+ field?: Array<SearchFieldType>;
8
+ group?: Array<SearchGroupType>;
9
+ reference?: string;
6
10
  };
@@ -0,0 +1,6 @@
1
+ export type SearchHighlightType = {
2
+ field?: Array<string>;
3
+ matchingOnly?: boolean;
4
+ prefix?: string;
5
+ suffix?: string;
6
+ };
@@ -3,6 +3,10 @@ export type SearchResultEntryTimespanType = {
3
3
  name: string;
4
4
  value?: Array<string>;
5
5
  }>;
6
+ group?: Array<{
7
+ name: string;
8
+ id?: string;
9
+ }>;
6
10
  start: string;
7
11
  end: string;
8
12
  };
@@ -1,3 +1,4 @@
1
+ import type { ResourceTagType } from './ResourceTagType';
1
2
  import type { SimpleMetadataType } from './SimpleMetadataType';
2
3
  import type { SiteIdType } from './SiteIdType';
3
4
 
@@ -14,10 +15,5 @@ export type StorageMethodType = {
14
15
  failureMessage?: string;
15
16
  type?: string;
16
17
  metadata?: SimpleMetadataType;
17
- resourceTag?: Array<{
18
- key: string;
19
- value: string;
20
- sourceName?: string;
21
- sourceType?: string;
22
- }>;
18
+ resourceTag?: Array<ResourceTagType>;
23
19
  };
@@ -1,3 +1,4 @@
1
+ import type { ResourceTagType } from './ResourceTagType';
1
2
  import type { SimpleMetadataType } from './SimpleMetadataType';
2
3
  import type { SiteIdType } from './SiteIdType';
3
4
  import type { StorageFileSequenceType } from './StorageFileSequenceType';
@@ -26,10 +27,5 @@ export type StorageType = {
26
27
  archiveScript?: string;
27
28
  sequence?: Array<StorageFileSequenceType>;
28
29
  sequenceTimeout?: number;
29
- resourceTag?: Array<{
30
- key: string;
31
- value: string;
32
- sourceName?: string;
33
- sourceType?: string;
34
- }>;
30
+ resourceTag?: Array<ResourceTagType>;
35
31
  };
@@ -13,5 +13,8 @@ export type TaskDefinitionType = {
13
13
  critical?: boolean;
14
14
  script?: string;
15
15
  metadata?: SimpleMetadataType;
16
+ bean?: string;
17
+ method?: string;
18
+ plugin?: boolean;
16
19
  id?: number;
17
20
  };
@@ -1,4 +1,5 @@
1
1
  import type { JobStatusType } from './JobStatusType';
2
+ import type { KeyValuePairType } from './KeyValuePairType';
2
3
  import type { TranscoderConfigurationType } from './TranscoderConfigurationType';
3
4
  import type { TranscoderDirectAccess } from './TranscoderDirectAccess';
4
5
 
@@ -15,4 +16,5 @@ export type TranscoderType = {
15
16
  transcoder?: Array<TranscoderType>;
16
17
  weight?: number;
17
18
  maxJob?: number;
19
+ resourceTag?: Array<KeyValuePairType>;
18
20
  };
@@ -1,17 +0,0 @@
1
- // import { MetadataFieldValueType } from './MetadataFieldValueType';
2
-
3
- // import type { KeyValuePairType } from './KeyValuePairType';
4
- // import type { MetadataReferencedType } from './MetadataReferencedType';
5
- // import type { MetadataValueAttributes } from './MetadataValueAttributes';
6
-
7
- // export type MetadataGroupValueType = MetadataValueAttributes & {
8
- // name?: string;
9
- // id?: Array<string>;
10
- // referenced?: MetadataReferencedType;
11
- // data?: Array<KeyValuePairType>;
12
- // inheritance?: string;
13
- // cycle?: boolean;
14
- // } & {
15
- // group?: MetadataGroupValueType[];
16
- // field?: MetadataFieldValueType[];
17
- // };
@@ -1,3 +0,0 @@
1
- Currently these modifications are manually created for the models to map with the vidicore models
2
-
3
- After generating new models, replace the models with these if they are still needed