@ndla/types-backend 1.0.4 → 1.0.6

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.
@@ -100,6 +100,7 @@ export interface IArticleV2DTO {
100
100
  relatedContent: (IRelatedContentLinkDTO | number)[];
101
101
  revisionDate?: string;
102
102
  slug?: string;
103
+ disclaimer?: IDisclaimerDTO;
103
104
  }
104
105
  export interface IAuthorDTO {
105
106
  type: string;
@@ -115,6 +116,10 @@ export interface ICopyrightDTO {
115
116
  validTo?: string;
116
117
  processed: boolean;
117
118
  }
119
+ export interface IDisclaimerDTO {
120
+ disclaimer: string;
121
+ language: string;
122
+ }
118
123
  export interface ILicenseDTO {
119
124
  license: string;
120
125
  description?: string;
@@ -1,3 +1,4 @@
1
+ export type GrepResultDTO = (IGrepKjerneelementDTO | IGrepKompetansemaalSettDTO | IGrepTverrfagligTemaDTO | IGrepKompetansemaalDTO | IGrepLaererplanDTO);
1
2
  export type GrepSort = ("-relevance" | "relevance" | "-title" | "title" | "-code" | "code");
2
3
  export interface IApiTaxonomyContextDTO {
3
4
  publicId: string;
@@ -57,6 +58,10 @@ export interface ICommentDTO {
57
58
  isOpen: boolean;
58
59
  solved: boolean;
59
60
  }
61
+ export interface IDescriptionDTO {
62
+ description: string;
63
+ language: string;
64
+ }
60
65
  export interface IDraftResponsibleDTO {
61
66
  responsibleId: string;
62
67
  lastUpdated: string;
@@ -98,10 +103,44 @@ export interface IDraftSearchParamsDTO {
98
103
  publishedDateTo?: string;
99
104
  resultTypes?: SearchType[];
100
105
  }
101
- export interface IGrepResultDTO {
106
+ export interface IGrepKjerneelementDTO {
107
+ code: string;
108
+ title: ITitleDTO;
109
+ description: IDescriptionDTO;
110
+ laereplan: IGrepLaererplanDTO;
111
+ typename: "GrepKjerneelementDTO";
112
+ }
113
+ export interface IGrepKompetansemaalDTO {
114
+ code: string;
115
+ title: ITitleDTO;
116
+ laereplan: IGrepLaererplanDTO;
117
+ kompetansemaalSett: IGrepReferencedKompetansemaalSettDTO;
118
+ tverrfagligeTemaer: IGrepTverrfagligTemaDTO[];
119
+ kjerneelementer: IGrepReferencedKjerneelementDTO[];
120
+ typename: "GrepKompetansemaalDTO";
121
+ }
122
+ export interface IGrepKompetansemaalSettDTO {
123
+ code: string;
124
+ title: ITitleDTO;
125
+ kompetansemaal: IGrepReferencedKompetansemaalDTO[];
126
+ typename: "GrepKompetansemaalSettDTO";
127
+ }
128
+ export interface IGrepLaererplanDTO {
102
129
  code: string;
103
130
  title: ITitleDTO;
104
- laereplanCode?: string;
131
+ typename: "GrepLaererplanDTO";
132
+ }
133
+ export interface IGrepReferencedKjerneelementDTO {
134
+ code: string;
135
+ title: string;
136
+ }
137
+ export interface IGrepReferencedKompetansemaalDTO {
138
+ code: string;
139
+ title: string;
140
+ }
141
+ export interface IGrepReferencedKompetansemaalSettDTO {
142
+ code: string;
143
+ title: string;
105
144
  }
106
145
  export interface IGrepSearchInputDTO {
107
146
  prefixFilter?: string[];
@@ -117,7 +156,12 @@ export interface IGrepSearchResultsDTO {
117
156
  page: number;
118
157
  pageSize: number;
119
158
  language: string;
120
- results: IGrepResultDTO[];
159
+ results: GrepResultDTO[];
160
+ }
161
+ export interface IGrepTverrfagligTemaDTO {
162
+ code: string;
163
+ title: ITitleDTO;
164
+ typename: "GrepTverrfagligTemaDTO";
121
165
  }
122
166
  export interface IGroupSearchResultDTO {
123
167
  totalCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAiW3C,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,kCAAsB,CAAA;IACtB,gCAAoB,CAAA;IACpB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,wCAA4B,CAAA;IAC5B,sCAA0B,CAAA;IAC1B,8CAAkC,CAAA;IAClC,gDAAoC,CAAA;IACpC,kEAAsD,CAAA;IACtD,oEAAwD,CAAA;IACxD,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,sDAA0C,CAAA;IAC1C,oDAAwC,CAAA;IACxC,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;AAC9B,CAAC,EA7BW,QAAQ,wBAAR,QAAQ,QA6BnB"}
1
+ {"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAsZ3C,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,kCAAsB,CAAA;IACtB,gCAAoB,CAAA;IACpB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,wCAA4B,CAAA;IAC5B,sCAA0B,CAAA;IAC1B,8CAAkC,CAAA;IAClC,gDAAoC,CAAA;IACpC,kEAAsD,CAAA;IACtD,oEAAwD,CAAA;IACxD,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,sDAA0C,CAAA;IAC1C,oDAAwC,CAAA;IACxC,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;AAC9B,CAAC,EA7BW,QAAQ,wBAAR,QAAQ,QA6BnB"}
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3"
29
29
  },
30
- "version": "1.0.4"
30
+ "version": "1.0.6"
31
31
  }