@ndla/types-backend 0.2.20 → 0.2.22

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.
@@ -95,12 +95,13 @@ export interface IAuthor {
95
95
  }
96
96
  export interface ICopyright {
97
97
  license: ILicense;
98
- origin: string;
98
+ origin?: string;
99
99
  creators: IAuthor[];
100
100
  processors: IAuthor[];
101
101
  rightsholders: IAuthor[];
102
102
  validFrom?: string;
103
103
  validTo?: string;
104
+ processed: boolean;
104
105
  }
105
106
  export interface ILicense {
106
107
  license: string;
@@ -50,6 +50,7 @@ export interface ICopyright {
50
50
  rightsholders: IAuthor[];
51
51
  validFrom?: string;
52
52
  validTo?: string;
53
+ processed: boolean;
53
54
  }
54
55
  export interface ICoverPhoto {
55
56
  id: string;
@@ -7,7 +7,7 @@ export interface IConcept {
7
7
  revision: number;
8
8
  title: IConceptTitle;
9
9
  content?: IConceptContent;
10
- copyright?: ICopyright;
10
+ copyright?: IDraftCopyright;
11
11
  source?: string;
12
12
  metaImage?: IConceptMetaImage;
13
13
  tags?: IConceptTags;
@@ -72,7 +72,7 @@ export interface IConceptSummary {
72
72
  status: IStatus;
73
73
  updatedBy: string[];
74
74
  license?: string;
75
- copyright?: ICopyright;
75
+ copyright?: IDraftCopyright;
76
76
  visualElement?: IVisualElement;
77
77
  articleIds: number[];
78
78
  source?: string;
@@ -87,15 +87,6 @@ export interface IConceptTitle {
87
87
  title: string;
88
88
  language: string;
89
89
  }
90
- export interface ICopyright {
91
- license?: ILicense;
92
- origin?: string;
93
- creators: IAuthor[];
94
- processors: IAuthor[];
95
- rightsholders: IAuthor[];
96
- validFrom?: string;
97
- validTo?: string;
98
- }
99
90
  export interface IDraftConceptSearchParams {
100
91
  query?: string;
101
92
  language?: string;
@@ -114,6 +105,16 @@ export interface IDraftConceptSearchParams {
114
105
  responsibleIds: string[];
115
106
  conceptType?: string;
116
107
  }
108
+ export interface IDraftCopyright {
109
+ license?: ILicense;
110
+ origin?: string;
111
+ creators: IAuthor[];
112
+ processors: IAuthor[];
113
+ rightsholders: IAuthor[];
114
+ validFrom?: string;
115
+ validTo?: string;
116
+ processed: boolean;
117
+ }
117
118
  export interface IGlossData {
118
119
  gloss: string;
119
120
  wordClass: string;
@@ -139,8 +140,7 @@ export interface INewConcept {
139
140
  language: string;
140
141
  title: string;
141
142
  content?: string;
142
- copyright?: ICopyright;
143
- source?: string;
143
+ copyright?: IDraftCopyright;
144
144
  metaImage?: INewConceptMetaImage;
145
145
  tags?: string[];
146
146
  subjectIds?: string[];
@@ -175,8 +175,7 @@ export interface IUpdatedConcept {
175
175
  title?: string;
176
176
  content?: string;
177
177
  metaImage?: (null | INewConceptMetaImage);
178
- copyright?: ICopyright;
179
- source?: string;
178
+ copyright?: IDraftCopyright;
180
179
  tags?: string[];
181
180
  subjectIds?: string[];
182
181
  articleIds?: number[];
@@ -6,7 +6,7 @@ export interface IArticle {
6
6
  status: IStatus;
7
7
  title?: IArticleTitle;
8
8
  content?: IArticleContent;
9
- copyright?: ICopyright;
9
+ copyright?: IDraftCopyright;
10
10
  tags?: IArticleTag;
11
11
  requiredLibraries: IRequiredLibrary[];
12
12
  visualElement?: IVisualElement;
@@ -84,7 +84,7 @@ export interface IComment {
84
84
  updated: string;
85
85
  isOpen: boolean;
86
86
  }
87
- export interface ICopyright {
87
+ export interface IDraftCopyright {
88
88
  license?: ILicense;
89
89
  origin?: string;
90
90
  creators: IAuthor[];
@@ -92,6 +92,7 @@ export interface ICopyright {
92
92
  rightsholders: IAuthor[];
93
93
  validFrom?: string;
94
94
  validTo?: string;
95
+ processed: boolean;
95
96
  }
96
97
  export interface IDraftResponsible {
97
98
  responsibleId: string;
@@ -124,7 +125,7 @@ export interface INewArticle {
124
125
  metaDescription?: string;
125
126
  metaImage?: INewArticleMetaImage;
126
127
  visualElement?: string;
127
- copyright?: ICopyright;
128
+ copyright?: IDraftCopyright;
128
129
  requiredLibraries: IRequiredLibrary[];
129
130
  articleType: string;
130
131
  notes: string[];
@@ -192,7 +193,7 @@ export interface IUpdatedArticle {
192
193
  metaDescription?: string;
193
194
  metaImage?: (null | INewArticleMetaImage);
194
195
  visualElement?: string;
195
- copyright?: ICopyright;
196
+ copyright?: IDraftCopyright;
196
197
  requiredLibraries?: IRequiredLibrary[];
197
198
  articleType?: string;
198
199
  notes?: string[];
@@ -4,13 +4,13 @@ export interface IAuthor {
4
4
  }
5
5
  export interface ICopyright {
6
6
  license: ILicense;
7
- origin: string;
7
+ origin?: string;
8
8
  creators: IAuthor[];
9
9
  processors: IAuthor[];
10
10
  rightsholders: IAuthor[];
11
- agreementId?: number;
12
11
  validFrom?: string;
13
12
  validTo?: string;
13
+ processed: boolean;
14
14
  }
15
15
  export interface IEditorNote {
16
16
  timestamp: string;
@@ -102,7 +102,7 @@ export interface IImageTitle {
102
102
  }
103
103
  export interface ILicense {
104
104
  license: string;
105
- description: string;
105
+ description?: string;
106
106
  url?: string;
107
107
  }
108
108
  export interface INewImageMetaInformationV2 {
package/package.json CHANGED
@@ -26,5 +26,5 @@
26
26
  "devDependencies": {
27
27
  "typescript": "^5.0.2"
28
28
  },
29
- "version": "0.2.20"
29
+ "version": "0.2.22"
30
30
  }