node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
import type { Data, Modules } from '@strapi/types';
import { errors } from '@strapi/utils';
/**
* POST /i18n/content-manager/actions/get-non-localized-fields - Get the localized fields
*/
export declare namespace GetNonLocalizedFields {
interface Request {
query: {};
body: {
id?: Data.ID;
locale?: string;
model: string;
};
}
/**
* TODO: this should follow the usual `data/error` pattern.
*/
interface Response {
nonLocalizedFields: object;
localizations: Array<{
id: Data.ID;
locale: string;
publishedAt: string | null;
}>;
error?: errors.ApplicationError;
}
}
/**
* GET content-manager/collection-types/:model/actions/countManyEntriesDraftRelations
*/
export declare namespace CountManyEntriesDraftRelations {
interface Request {
body: {};
query: {
documentIds?: Modules.Documents.ID[];
locale?: string | string[] | null;
};
}
interface Params {
model: string;
}
interface Response {
data: number;
error?: errors.ApplicationError;
}
}

View File

@@ -0,0 +1,21 @@
import { errors } from '@strapi/utils';
export interface ISOLocale {
code: string;
name: string;
}
/**
* GET /i18n/iso-locales - Get all the locales
*/
export declare namespace GetISOLocales {
interface Request {
query: {};
body: {};
}
/**
* TODO: this should follow the usual `data/error` pattern.
*/
type Response = ISOLocale[] | {
data: null;
error: errors.ApplicationError;
};
}

View File

@@ -0,0 +1,77 @@
import { errors } from '@strapi/utils';
import { Entity } from './shared';
export interface Locale extends Entity {
code: string;
isDefault: boolean;
name: string;
}
/**
* GET /i18n/locales - Get all the locales
*/
export declare namespace GetLocales {
interface Request {
query: {};
body: {};
}
/**
* TODO: this should follow the usual `data/error` pattern.
*/
type Response = Locale[] | {
data: null;
error: errors.ApplicationError;
};
}
/**
* POST /i18n/locales - Create a single locale
*/
export declare namespace CreateLocale {
interface Request {
query: {};
body: Omit<Locale, keyof Entity>;
}
/**
* TODO: this should follow the usual `data/error` pattern.
*/
type Response = Locale | {
data: null;
error: errors.ApplicationError;
};
}
/**
* DEL /i18n/locales/:id - Delete a single locale
*/
export declare namespace DeleteLocale {
interface Request {
query: {};
body: {};
}
interface Params {
id: Locale['id'];
}
/**
* TODO: this should follow the usual `data/error` pattern.
*/
type Response = Locale | {
data: null;
error: errors.ApplicationError;
};
}
/**
* PUT /i18n/locales/:id - Update a single locale
*/
export declare namespace UpdateLocale {
interface Request {
query: {};
body: Pick<Locale, 'name' | 'isDefault'>;
}
interface Params {
id: Locale['id'];
}
/**
* TODO: this should follow the usual `data/error` pattern.
*/
type Response = Locale | {
data: null;
error: errors.ApplicationError;
};
}

View File

@@ -0,0 +1,6 @@
import type { Data } from '@strapi/types';
export interface Entity {
id: Data.ID;
createdAt: string;
updatedAt: string;
}