diff --git a/cms-backend/src/api/annual-report/content-types/annual-report/schema.json b/cms-backend/src/api/annual-report/content-types/annual-report/schema.json index 9539630..24a35ec 100644 --- a/cms-backend/src/api/annual-report/content-types/annual-report/schema.json +++ b/cms-backend/src/api/annual-report/content-types/annual-report/schema.json @@ -16,14 +16,15 @@ "type": "integer" }, "file": { + "type": "media", + "multiple": false, + "required": false, "allowedTypes": [ "images", "files", "videos", "audios" - ], - "type": "media", - "multiple": true + ] } } } diff --git a/cms-backend/src/api/risk-report/content-types/risk-report/schema.json b/cms-backend/src/api/risk-report/content-types/risk-report/schema.json index da50978..33d19d5 100644 --- a/cms-backend/src/api/risk-report/content-types/risk-report/schema.json +++ b/cms-backend/src/api/risk-report/content-types/risk-report/schema.json @@ -33,14 +33,15 @@ "type": "integer" }, "file": { + "type": "media", + "multiple": false, + "required": false, "allowedTypes": [ "images", "files", "videos", "audios" - ], - "type": "media", - "multiple": true + ] } } } diff --git a/cms-backend/src/api/treasury-report/content-types/treasury-report/schema.json b/cms-backend/src/api/treasury-report/content-types/treasury-report/schema.json index 09d2ddb..6134ec5 100644 --- a/cms-backend/src/api/treasury-report/content-types/treasury-report/schema.json +++ b/cms-backend/src/api/treasury-report/content-types/treasury-report/schema.json @@ -33,14 +33,15 @@ "type": "integer" }, "file": { + "type": "media", + "multiple": false, + "required": false, "allowedTypes": [ "images", "files", "videos", "audios" - ], - "type": "media", - "multiple": true + ] } } } diff --git a/cms-backend/src/components/r-and-d-page/downloadable-format.json b/cms-backend/src/components/r-and-d-page/downloadable-format.json index 0d44f5a..8750e27 100644 --- a/cms-backend/src/components/r-and-d-page/downloadable-format.json +++ b/cms-backend/src/components/r-and-d-page/downloadable-format.json @@ -1,7 +1,8 @@ { "collectionName": "components_r_and_d_page_downloadable_formats", "info": { - "displayName": "DownloadableFormat" + "displayName": "DownloadableFormat", + "description": "" }, "options": {}, "attributes": { @@ -9,14 +10,15 @@ "type": "string" }, "file": { + "type": "media", + "multiple": false, + "required": false, "allowedTypes": [ "images", "files", "videos", "audios" - ], - "type": "media", - "multiple": true + ] } } } diff --git a/cms-backend/types/generated/components.d.ts b/cms-backend/types/generated/components.d.ts index 9ffc7c5..3cfaa70 100644 --- a/cms-backend/types/generated/components.d.ts +++ b/cms-backend/types/generated/components.d.ts @@ -311,13 +311,11 @@ export interface PnkTokenPageTokenStatDisplay extends Struct.ComponentSchema { export interface RAndDPageDownloadableFormat extends Struct.ComponentSchema { collectionName: 'components_r_and_d_page_downloadable_formats'; info: { + description: ''; displayName: 'DownloadableFormat'; }; attributes: { - file: Schema.Attribute.Media< - 'images' | 'files' | 'videos' | 'audios', - true - >; + file: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>; name: Schema.Attribute.String; }; } diff --git a/cms-backend/types/generated/contentTypes.d.ts b/cms-backend/types/generated/contentTypes.d.ts index d472933..bc3e6eb 100644 --- a/cms-backend/types/generated/contentTypes.d.ts +++ b/cms-backend/types/generated/contentTypes.d.ts @@ -385,10 +385,7 @@ export interface ApiAnnualReportAnnualReport createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - file: Schema.Attribute.Media< - 'images' | 'files' | 'videos' | 'audios', - true - >; + file: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation< 'oneToMany', @@ -2333,10 +2330,7 @@ export interface ApiRiskReportRiskReport extends Struct.CollectionTypeSchema { createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - file: Schema.Attribute.Media< - 'images' | 'files' | 'videos' | 'audios', - true - >; + file: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation< 'oneToMany', @@ -2604,10 +2598,7 @@ export interface ApiTreasuryReportTreasuryReport createdAt: Schema.Attribute.DateTime; createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & Schema.Attribute.Private; - file: Schema.Attribute.Media< - 'images' | 'files' | 'videos' | 'audios', - true - >; + file: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>; locale: Schema.Attribute.String & Schema.Attribute.Private; localizations: Schema.Attribute.Relation< 'oneToMany',