@ndla/types-backend 0.2.19 → 0.2.20

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.
@@ -99,7 +99,6 @@ export interface ICopyright {
99
99
  creators: IAuthor[];
100
100
  processors: IAuthor[];
101
101
  rightsholders: IAuthor[];
102
- agreementId?: number;
103
102
  validFrom?: string;
104
103
  validTo?: string;
105
104
  }
@@ -48,7 +48,6 @@ export interface ICopyright {
48
48
  creators: IAuthor[];
49
49
  processors: IAuthor[];
50
50
  rightsholders: IAuthor[];
51
- agreementId?: number;
52
51
  validFrom?: string;
53
52
  validTo?: string;
54
53
  }
@@ -93,7 +93,6 @@ export interface ICopyright {
93
93
  creators: IAuthor[];
94
94
  processors: IAuthor[];
95
95
  rightsholders: IAuthor[];
96
- agreementId?: number;
97
96
  validFrom?: string;
98
97
  validTo?: string;
99
98
  }
@@ -1,25 +1,4 @@
1
1
  export type Availability = ("decoder" | "encoder" | "everyone" | "teacher");
2
- export interface IAgreement {
3
- id: number;
4
- title: string;
5
- content: string;
6
- copyright: ICopyright;
7
- created: string;
8
- updated: string;
9
- updatedBy: string;
10
- }
11
- export interface IAgreementSearchResult {
12
- totalCount: number;
13
- page?: number;
14
- pageSize: number;
15
- language: string;
16
- results: IAgreementSummary[];
17
- }
18
- export interface IAgreementSummary {
19
- id: number;
20
- title: string;
21
- license: string;
22
- }
23
2
  export interface IArticle {
24
3
  id: number;
25
4
  oldNdlaUrl?: string;
@@ -111,7 +90,6 @@ export interface ICopyright {
111
90
  creators: IAuthor[];
112
91
  processors: IAuthor[];
113
92
  rightsholders: IAuthor[];
114
- agreementId?: number;
115
93
  validFrom?: string;
116
94
  validTo?: string;
117
95
  }
@@ -136,21 +114,6 @@ export interface ILicense {
136
114
  description?: string;
137
115
  url?: string;
138
116
  }
139
- export interface INewAgreement {
140
- title: string;
141
- content: string;
142
- copyright: INewAgreementCopyright;
143
- }
144
- export interface INewAgreementCopyright {
145
- license?: ILicense;
146
- origin?: string;
147
- creators: IAuthor[];
148
- processors: IAuthor[];
149
- rightsholders: IAuthor[];
150
- agreementId?: number;
151
- validFrom?: string;
152
- validTo?: string;
153
- }
154
117
  export interface INewArticle {
155
118
  language: string;
156
119
  title: string;
@@ -217,11 +180,6 @@ export interface ITagsSearchResult {
217
180
  language: string;
218
181
  results: string[];
219
182
  }
220
- export interface IUpdatedAgreement {
221
- title?: string;
222
- content?: string;
223
- copyright?: INewAgreementCopyright;
224
- }
225
183
  export interface IUpdatedArticle {
226
184
  revision: number;
227
185
  language?: string;
package/package.json CHANGED
@@ -26,5 +26,5 @@
26
26
  "devDependencies": {
27
27
  "typescript": "^5.0.2"
28
28
  },
29
- "version": "0.2.19"
29
+ "version": "0.2.20"
30
30
  }