change: add publish unpublish scheduling (beta-plugin)

This commit is contained in:
Julian Krauser 2025-03-29 14:45:23 +01:00
parent 9032335344
commit 2ecc8d52ea
5 changed files with 81 additions and 2 deletions

View file

@ -697,6 +697,40 @@ export interface PluginI18NLocale extends Struct.CollectionTypeSchema {
};
}
export interface PluginPublisherAction extends Struct.CollectionTypeSchema {
collectionName: "actions";
info: {
displayName: "actions";
pluralName: "actions";
singularName: "action";
};
options: {
comment: "";
draftAndPublish: false;
};
pluginOptions: {
"content-manager": {
visible: false;
};
"content-type-builder": {
visible: false;
};
};
attributes: {
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
entityId: Schema.Attribute.String;
entitySlug: Schema.Attribute.String;
executeAt: Schema.Attribute.DateTime;
locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation<"oneToMany", "plugin::publisher.action"> & Schema.Attribute.Private;
mode: Schema.Attribute.String;
publishedAt: Schema.Attribute.DateTime;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
};
}
export interface PluginReviewWorkflowsWorkflow extends Struct.CollectionTypeSchema {
collectionName: "strapi_workflows";
info: {
@ -1006,6 +1040,7 @@ declare module "@strapi/strapi" {
"plugin::content-releases.release": PluginContentReleasesRelease;
"plugin::content-releases.release-action": PluginContentReleasesReleaseAction;
"plugin::i18n.locale": PluginI18NLocale;
"plugin::publisher.action": PluginPublisherAction;
"plugin::review-workflows.workflow": PluginReviewWorkflowsWorkflow;
"plugin::review-workflows.workflow-stage": PluginReviewWorkflowsWorkflowStage;
"plugin::upload.file": PluginUploadFile;