@ndla/types-backend 1.0.23 → 1.0.24

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.
@@ -9,6 +9,7 @@ export declare enum ArticleSortEnum {
9
9
  ByIdAsc = "id"
10
10
  }
11
11
  export type Availability = ("everyone" | "teacher");
12
+ export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
12
13
  export interface IArticleContentV2DTO {
13
14
  content: string;
14
15
  language: string;
@@ -103,7 +104,7 @@ export interface IArticleV2DTO {
103
104
  disclaimer?: IDisclaimerDTO;
104
105
  }
105
106
  export interface IAuthorDTO {
106
- type: string;
107
+ type: ContributorType;
107
108
  name: string;
108
109
  }
109
110
  export interface ICopyrightDTO {
@@ -8,6 +8,7 @@ export declare enum AudioSortEnum {
8
8
  ByIdDesc = "-id",
9
9
  ByIdAsc = "id"
10
10
  }
11
+ export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
11
12
  export interface IAudioDTO {
12
13
  url: string;
13
14
  mimeType: string;
@@ -49,7 +50,7 @@ export interface IAudioSummarySearchResultDTO {
49
50
  results: IAudioSummaryDTO[];
50
51
  }
51
52
  export interface IAuthorDTO {
52
- type: string;
53
+ type: ContributorType;
53
54
  name: string;
54
55
  }
55
56
  export interface ICopyrightDTO {
@@ -16,8 +16,9 @@ export declare enum ConceptSortEnum {
16
16
  ByConceptTypeAsc = "conceptType",
17
17
  ByConceptTypeDesc = "-conceptType"
18
18
  }
19
+ export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
19
20
  export interface IAuthorDTO {
20
- type: string;
21
+ type: ContributorType;
21
22
  name: string;
22
23
  }
23
24
  export interface IConceptContent {
@@ -1,4 +1,5 @@
1
1
  export type Availability = ("everyone" | "teacher");
2
+ export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
2
3
  export declare enum DraftSortEnum {
3
4
  ByRelevanceDesc = "-relevance",
4
5
  ByRelevanceAsc = "relevance",
@@ -103,7 +104,7 @@ export interface IArticleTitleDTO {
103
104
  language: string;
104
105
  }
105
106
  export interface IAuthorDTO {
106
- type: string;
107
+ type: ContributorType;
107
108
  name: string;
108
109
  }
109
110
  export interface ICommentDTO {
@@ -1 +1 @@
1
- {"version":3,"file":"draft-api.js","sourceRoot":"","sources":["../draft-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAI3C,IAAY,aASX;AATD,WAAY,aAAa;IACvB,+CAA8B,CAAA;IAC9B,6CAA4B,CAAA;IAC5B,uCAAsB,CAAA;IACtB,qCAAoB,CAAA;IACpB,mDAAkC,CAAA;IAClC,iDAAgC,CAAA;IAChC,iCAAgB,CAAA;IAChB,+BAAc,CAAA;AAChB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
1
+ {"version":3,"file":"draft-api.js","sourceRoot":"","sources":["../draft-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAM3C,IAAY,aASX;AATD,WAAY,aAAa;IACvB,+CAA8B,CAAA;IAC9B,6CAA4B,CAAA;IAC5B,uCAAsB,CAAA;IACtB,qCAAoB,CAAA;IACpB,mDAAkC,CAAA;IAClC,iDAAgC,CAAA;IAChC,iCAAgB,CAAA;IAChB,+BAAc,CAAA;AAChB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
@@ -1,5 +1,6 @@
1
+ export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
1
2
  export interface IAuthorDTO {
2
- type: string;
3
+ type: ContributorType;
3
4
  name: string;
4
5
  }
5
6
  export interface ICopyrightDTO {
@@ -1 +1 @@
1
- {"version":3,"file":"image-api.js","sourceRoot":"","sources":["../image-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAuL3C,IAAY,aASX;AATD,WAAY,aAAa;IACvB,+CAA8B,CAAA;IAC9B,6CAA4B,CAAA;IAC5B,uCAAsB,CAAA;IACtB,qCAAoB,CAAA;IACpB,mDAAkC,CAAA;IAClC,iDAAgC,CAAA;IAChC,iCAAgB,CAAA;IAChB,+BAAc,CAAA;AAChB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
1
+ {"version":3,"file":"image-api.js","sourceRoot":"","sources":["../image-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAyL3C,IAAY,aASX;AATD,WAAY,aAAa;IACvB,+CAA8B,CAAA;IAC9B,6CAA4B,CAAA;IAC5B,uCAAsB,CAAA;IACtB,qCAAoB,CAAA;IACpB,mDAAkC,CAAA;IAClC,iDAAgC,CAAA;IAChC,iCAAgB,CAAA;IAChB,+BAAc,CAAA;AAChB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
@@ -1,5 +1,6 @@
1
+ export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
1
2
  export interface IAuthorDTO {
2
- type: string;
3
+ type: ContributorType;
3
4
  name: string;
4
5
  }
5
6
  export interface IConfigMetaDTO {
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "1.0.23"
30
+ "version": "1.0.24"
31
31
  }