Skip to content

Commit

Permalink
Update contentTypes.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin2Shih committed Mar 16, 2024
1 parent 640fb4e commit 6df005a
Showing 1 changed file with 134 additions and 134 deletions.
268 changes: 134 additions & 134 deletions types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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 {
Expand All @@ -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;
}
}
}

0 comments on commit 6df005a

Please sign in to comment.