From 6df005a21466c69e04bd1f1d191e6fa400ee0c0a Mon Sep 17 00:00:00 2001 From: Austin Shih Date: Sat, 16 Mar 2024 15:55:32 -0700 Subject: [PATCH] Update contentTypes.d.ts --- types/generated/contentTypes.d.ts | 268 +++++++++++++++--------------- 1 file changed, 134 insertions(+), 134 deletions(-) diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index f88dfb2..26ba56b 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -362,6 +362,90 @@ export interface AdminTransferTokenPermission extends Schema.CollectionType { }; } +export interface ApiClosureDateClosureDate extends Schema.CollectionType { + collectionName: 'closure_dates'; + info: { + singularName: 'closure-date'; + pluralName: 'closure-dates'; + displayName: 'Closure Date'; + }; + options: { + draftAndPublish: true; + }; + attributes: { + closure_date: Attribute.Date & Attribute.Required & Attribute.Unique; + createdAt: Attribute.DateTime; + updatedAt: Attribute.DateTime; + publishedAt: Attribute.DateTime; + createdBy: Attribute.Relation< + 'api::closure-date.closure-date', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + updatedBy: Attribute.Relation< + 'api::closure-date.closure-date', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + }; +} + +export interface ApiUpcomingEventUpcomingEvent extends Schema.CollectionType { + collectionName: 'upcoming_events'; + info: { + singularName: 'upcoming-event'; + pluralName: 'upcoming-events'; + displayName: 'Upcoming Event'; + }; + options: { + draftAndPublish: true; + }; + pluginOptions: { + i18n: { + localized: true; + }; + }; + attributes: { + event_date: Attribute.Date & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + event_title: Attribute.String & + Attribute.Required & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; + createdAt: Attribute.DateTime; + updatedAt: Attribute.DateTime; + publishedAt: Attribute.DateTime; + createdBy: Attribute.Relation< + 'api::upcoming-event.upcoming-event', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + updatedBy: Attribute.Relation< + 'api::upcoming-event.upcoming-event', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + localizations: Attribute.Relation< + 'api::upcoming-event.upcoming-event', + 'oneToMany', + 'api::upcoming-event.upcoming-event' + >; + locale: Attribute.String; + }; +} + export interface PluginUploadFile extends Schema.CollectionType { collectionName: 'files'; info: { @@ -590,6 +674,53 @@ export interface PluginContentReleasesReleaseAction }; } +export interface PluginI18NLocale extends Schema.CollectionType { + collectionName: 'i18n_locale'; + info: { + singularName: 'locale'; + pluralName: 'locales'; + collectionName: 'locales'; + displayName: 'Locale'; + description: ''; + }; + options: { + draftAndPublish: false; + }; + pluginOptions: { + 'content-manager': { + visible: false; + }; + 'content-type-builder': { + visible: false; + }; + }; + attributes: { + name: Attribute.String & + Attribute.SetMinMax< + { + min: 1; + max: 50; + }, + number + >; + code: Attribute.String & Attribute.Unique; + createdAt: Attribute.DateTime; + updatedAt: Attribute.DateTime; + createdBy: Attribute.Relation< + 'plugin::i18n.locale', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + updatedBy: Attribute.Relation< + 'plugin::i18n.locale', + 'oneToOne', + 'admin::user' + > & + Attribute.Private; + }; +} + export interface PluginUsersPermissionsPermission extends Schema.CollectionType { collectionName: 'up_permissions'; @@ -741,137 +872,6 @@ export interface PluginUsersPermissionsUser extends Schema.CollectionType { }; } -export interface PluginI18NLocale extends Schema.CollectionType { - collectionName: 'i18n_locale'; - info: { - singularName: 'locale'; - pluralName: 'locales'; - collectionName: 'locales'; - displayName: 'Locale'; - description: ''; - }; - options: { - draftAndPublish: false; - }; - pluginOptions: { - 'content-manager': { - visible: false; - }; - 'content-type-builder': { - visible: false; - }; - }; - attributes: { - name: Attribute.String & - Attribute.SetMinMax< - { - min: 1; - max: 50; - }, - number - >; - code: Attribute.String & Attribute.Unique; - createdAt: Attribute.DateTime; - updatedAt: Attribute.DateTime; - createdBy: Attribute.Relation< - 'plugin::i18n.locale', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - updatedBy: Attribute.Relation< - 'plugin::i18n.locale', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - }; -} - -export interface ApiClosureDateClosureDate extends Schema.CollectionType { - collectionName: 'closure_dates'; - info: { - singularName: 'closure-date'; - pluralName: 'closure-dates'; - displayName: 'Closure Date'; - }; - options: { - draftAndPublish: true; - }; - attributes: { - closure_date: Attribute.Date & Attribute.Required & Attribute.Unique; - createdAt: Attribute.DateTime; - updatedAt: Attribute.DateTime; - publishedAt: Attribute.DateTime; - createdBy: Attribute.Relation< - 'api::closure-date.closure-date', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - updatedBy: Attribute.Relation< - 'api::closure-date.closure-date', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - }; -} - -export interface ApiUpcomingEventUpcomingEvent extends Schema.CollectionType { - collectionName: 'upcoming_events'; - info: { - singularName: 'upcoming-event'; - pluralName: 'upcoming-events'; - displayName: 'Upcoming Event'; - }; - options: { - draftAndPublish: true; - }; - pluginOptions: { - i18n: { - localized: true; - }; - }; - attributes: { - event_date: Attribute.Date & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - event_title: Attribute.String & - Attribute.Required & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - createdAt: Attribute.DateTime; - updatedAt: Attribute.DateTime; - publishedAt: Attribute.DateTime; - createdBy: Attribute.Relation< - 'api::upcoming-event.upcoming-event', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - updatedBy: Attribute.Relation< - 'api::upcoming-event.upcoming-event', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - localizations: Attribute.Relation< - 'api::upcoming-event.upcoming-event', - 'oneToMany', - 'api::upcoming-event.upcoming-event' - >; - locale: Attribute.String; - }; -} - declare module '@strapi/types' { export module Shared { export interface ContentTypes { @@ -882,16 +882,16 @@ declare module '@strapi/types' { 'admin::api-token-permission': AdminApiTokenPermission; 'admin::transfer-token': AdminTransferToken; 'admin::transfer-token-permission': AdminTransferTokenPermission; + 'api::closure-date.closure-date': ApiClosureDateClosureDate; + 'api::upcoming-event.upcoming-event': ApiUpcomingEventUpcomingEvent; 'plugin::upload.file': PluginUploadFile; 'plugin::upload.folder': PluginUploadFolder; 'plugin::content-releases.release': PluginContentReleasesRelease; 'plugin::content-releases.release-action': PluginContentReleasesReleaseAction; + 'plugin::i18n.locale': PluginI18NLocale; 'plugin::users-permissions.permission': PluginUsersPermissionsPermission; 'plugin::users-permissions.role': PluginUsersPermissionsRole; 'plugin::users-permissions.user': PluginUsersPermissionsUser; - 'plugin::i18n.locale': PluginI18NLocale; - 'api::closure-date.closure-date': ApiClosureDateClosureDate; - 'api::upcoming-event.upcoming-event': ApiUpcomingEventUpcomingEvent; } } }