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,337 @@
import { errors } from '@strapi/utils';
import type { Modules, Struct, UID } from '@strapi/types';
type PaginatedDocuments = Modules.Documents.PaginatedResult<UID.Schema>;
type SortQuery = Modules.Documents.Params.Sort.StringNotation<UID.Schema> & string;
type Document = Modules.Documents.Document<any>;
type AT_FIELDS = 'updatedAt' | 'createdAt' | 'publishedAt';
type BY_FIELDS = 'createdBy' | 'updatedBy' | 'publishedBy';
export type AvailableLocaleDocument = Pick<Document, 'id' | 'locale' | AT_FIELDS | 'status'>;
export type AvailableStatusDocument = Pick<Document, 'id' | 'documentId' | 'locale' | BY_FIELDS | AT_FIELDS>;
export type DocumentMetadata = {
availableStatus: AvailableStatusDocument[];
availableLocales: AvailableLocaleDocument[];
};
/**
* GET /collection-types/:model
*/
export declare namespace Find {
interface Request {
body: {};
query: {
page?: string;
pageSize?: string;
sort?: SortQuery;
};
}
interface Params {
model: string;
}
interface Response extends PaginatedDocuments {
error?: errors.ApplicationError;
}
}
/**
* GET /collection-types/:model/:id
*/
export declare namespace FindOne {
interface Request {
body: {};
query: {
locale?: string | null;
};
}
interface Params {
model: string;
documentId: Modules.Documents.ID;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* POST /collection-types/:model
*/
export declare namespace Create {
interface Request {
body: Struct.SchemaAttributes;
query: {};
}
interface Params {
model: string;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
export type ProhibitedCloningField = [fieldNames: string[], 'unique' | 'relation'];
/**
* POST /collection-types/:model/auto-clone/:sourceId
*/
export declare namespace AutoClone {
interface Request {
body: {};
query: {};
}
interface Params {
model: string;
sourceId: Modules.Documents.ID;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError<'BadRequestError', string, {
prohibitedFields: ProhibitedCloningField[];
}>;
}
}
/**
* POST /collection-types/:model/clone/:sourceId
*/
export declare namespace Clone {
interface Request {
body: Struct.SchemaAttributes;
query: {
locale?: string | null;
};
}
interface Params {
model: string;
sourceId: Modules.Documents.ID;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* PUT /collection-types/:model/:id
*/
export declare namespace Update {
interface Request {
body: Partial<Document>;
query: {
locale?: string | null;
};
}
interface Params {
model: string;
documentId: Modules.Documents.ID;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* DELETE /collection-types/:model/:id
*/
export declare namespace Delete {
interface Request {
body: {};
query: {
locale?: string | null;
};
}
interface Params {
model: string;
documentId: Modules.Documents.ID;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* POST /collection-types/:model/actions/publish
*/
export declare namespace PublishAndCreate {
interface Request {
body: Partial<Document>;
query: {
locale?: string | null;
};
}
interface Params {
model: string;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* POST /collection-types/:model/:id/actions/publish
*/
export declare namespace Publish {
interface Request {
body: Partial<Document>;
query: {
locale?: string | null;
};
}
interface Params {
model: string;
documentId: Modules.Documents.ID;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* POST /collection-types/:model/:id/actions/unpublish
*
* TODO: Unpublish many locales at once
*/
export declare namespace Unpublish {
interface Request {
body: {
discardDraft?: boolean;
};
query: {
locale?: string | null;
};
}
interface Params {
model: string;
documentId: Modules.Documents.ID;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* POST /collection-types/:model/:id/actions/discard
*/
export declare namespace Discard {
interface Request {
body: {};
query: {
locale?: string | null;
};
}
interface Params {
model: string;
documentId: Modules.Documents.ID;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* POST /collection-types/:model/actions/bulkDelete
*/
export declare namespace BulkDelete {
interface Request {
body: {
documentIds: Modules.Documents.ID[];
};
query: {
locale?: string;
};
}
interface Params {
model: string;
}
interface Response {
data: {
count: number;
};
error?: errors.ApplicationError | errors.YupValidationError;
}
}
/**
* POST /collection-types/:model/actions/bulkPublish
*/
export declare namespace BulkPublish {
interface Request {
body: {
documentIds: Modules.Documents.ID[];
};
query: {
locale?: string | string[] | null;
};
}
interface Params {
model: string;
}
interface Response {
data: {
count: number;
};
error?: errors.ApplicationError | errors.YupValidationError;
}
}
/**
* POST /collection-types/:model/actions/bulkUnpublish
*/
export declare namespace BulkUnpublish {
interface Request {
body: {
documentIds: Modules.Documents.ID[];
};
query: {
locale?: string | string[] | null;
};
}
interface Params {
model: string;
}
interface Response {
data: {
count: number;
};
error?: errors.ApplicationError | errors.YupValidationError;
}
}
/**
* GET /collection-types/:model/:id/actions/countDraftRelations
*/
export declare namespace CountDraftRelations {
interface Request {
body: {};
query: {
locale?: string | null;
};
}
interface Params {
model: string;
}
interface Response {
data: number;
error?: errors.ApplicationError;
}
}
/**
* GET /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;
}
}
export {};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=collection-types.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"collection-types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=collection-types.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"collection-types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,64 @@
import type { Struct } from '@strapi/types';
import type { Configuration, Settings, Metadatas, Layouts } from './content-types';
import { errors } from '@strapi/utils';
export interface Component extends Struct.ComponentSchema {
isDisplayed: boolean;
info: Struct.SchemaInfo;
apiID: string;
}
export interface ComponentConfiguration extends Configuration {
category: string;
isComponent: boolean;
}
/**
* GET /components
*/
export declare namespace FindComponents {
interface Request {
body: {};
query: {};
}
interface Response {
data: Component[];
error?: errors.ApplicationError;
}
}
/**
* GET /components/:uid/configuration
*/
export declare namespace FindComponentConfiguration {
interface Request {
body: {};
query: {};
}
interface Params {
uid: string;
}
interface Response {
data: {
component: ComponentConfiguration;
components: Record<string, ComponentConfiguration>;
};
error?: errors.ApplicationError;
}
}
/**
* PUT /components/:uid/configuration
*/
export declare namespace UpdateComponentConfiguration {
interface Request {
body: {
layouts: Layouts;
metadatas: Metadatas;
settings: Settings;
};
query: {};
}
interface Params {
uid: string;
}
interface Response {
data: ComponentConfiguration;
error?: errors.ApplicationError | errors.YupValidationError;
}
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../shared/contracts/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,eAAe;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE,EAAE,CAAC;KACX;IACD,UAAiB,QAAQ;QACvB,IAAI,EAAE,SAAS,EAAE,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE,EAAE,CAAC;KACX;IAED,UAAiB,MAAM;QACrB,GAAG,EAAE,MAAM,CAAC;KACb;IACD,UAAiB,QAAQ;QACvB,IAAI,EAAE;YACJ,SAAS,EAAE,sBAAsB,CAAC;YAClC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;SACpD,CAAC;QACF,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,4BAA4B,CAAC;IACpD,UAAiB,OAAO;QACtB,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO,CAAC;YACjB,SAAS,EAAE,SAAS,CAAC;YACrB,QAAQ,EAAE,QAAQ,CAAC;SACpB,CAAC;QACF,KAAK,EAAE,EAAE,CAAC;KACX;IAED,UAAiB,MAAM;QACrB,GAAG,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,sBAAsB,CAAC;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC;KAC7D;CACF"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=components.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=components.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"components.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,112 @@
import type { Struct } from '@strapi/types';
import { errors } from '@strapi/utils';
import { ComponentConfiguration } from './components';
export type Settings = {
bulkable: boolean;
filterable: boolean;
searchable: boolean;
pageSize: number;
mainField: string;
defaultSortBy: string;
defaultSortOrder: string;
};
export type Metadatas = {
[key: string]: {
edit: {
label?: string;
description?: string;
placeholder?: string;
visible?: boolean;
editable?: boolean;
};
list: {
label?: string;
mainField?: string;
searchable?: boolean;
sortable?: boolean;
};
};
};
export type Layouts = {
list: string[];
edit: {
name: string;
size: number;
}[][];
};
export type Configuration = {
uid?: string;
settings: Settings;
metadatas: Metadatas;
layouts: Layouts;
options?: object;
};
export interface ContentType extends Struct.ContentTypeSchema {
isDisplayed: boolean;
apiID: string;
}
/**
* GET /content-types
*/
export declare namespace FindContentTypes {
interface Request {
body: {};
query: {};
}
interface Response {
data: ContentType[];
error?: errors.ApplicationError | errors.YupValidationError;
}
}
/**
* GET /content-types-settings
*/
export declare namespace FindContentTypesSettings {
interface Request {
body: {};
query: {};
}
interface Response {
data: Array<{
uid: string;
settings: Settings;
}>;
error?: errors.ApplicationError;
}
}
/**
* GET /content-types/:uid/configuration
*/
export declare namespace FindContentTypeConfiguration {
interface Request {
body: {};
query: {};
}
interface Response {
data: {
contentType: Configuration;
components: Record<string, ComponentConfiguration>;
};
error?: errors.ApplicationError;
}
}
/**
* PUT /content-types/:uid/configuration
*/
export declare namespace UpdateContentTypeConfiguration {
interface Request {
body: {
layouts: Layouts;
metadatas: Metadatas;
settings: Settings;
};
query: {};
}
interface Response {
data: {
contentType: Configuration;
components: Record<string, ComponentConfiguration>;
};
error?: errors.ApplicationError | errors.YupValidationError;
}
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"content-types.d.ts","sourceRoot":"","sources":["../../../shared/contracts/content-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAA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;YACJ,WAAW,EAAE,aAAa,CAAC;YAC3B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;SACpD,CAAC;QACF,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC;KAC7D;CACF"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=content-types.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"content-types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=content-types.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"content-types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,91 @@
import type { Data, Modules, Struct, UID } from '@strapi/types';
import { type errors } from '@strapi/utils';
/**
* Unlike other Content Manager contracts, history versions can't be created via
* a dedicated API endpoint, but only by the history service listening to other actions.
* That's why we directly export the create type here.
*/
export interface CreateHistoryVersion {
contentType: UID.ContentType;
relatedDocumentId: Data.ID;
locale: string | null;
status: 'draft' | 'published' | 'modified' | null;
data: Modules.Documents.AnyDocument;
schema: Struct.SchemaAttributes;
componentsSchemas: Record<`${string}.${string}`, Struct.SchemaAttributes>;
}
export interface Locale {
name: string;
code: string;
}
export interface HistoryVersionDataResponse extends Omit<CreateHistoryVersion, 'locale'> {
id: Data.ID;
createdAt: string;
createdBy?: {
id: Data.ID;
firstname?: string;
lastname?: string;
username?: string;
email: string;
};
locale: Locale | null;
meta: {
unknownAttributes: {
added: Struct.SchemaAttributes;
removed: Struct.SchemaAttributes;
};
};
}
export interface Pagination {
page: number;
pageSize: number;
pageCount: number;
total: number;
}
/**
* GET /content-manager/history-versions
*/
export declare namespace GetHistoryVersions {
interface Request {
state: {
userAbility: {};
};
query: {
contentType: UID.ContentType;
documentId?: Data.ID;
locale?: string;
} & Partial<Pick<Pagination, 'page' | 'pageSize'>>;
}
type Response = {
data: HistoryVersionDataResponse[];
meta: {
pagination: Pagination;
};
error?: never;
} | {
data?: never;
meta?: never;
error: errors.ApplicationError;
};
}
export declare namespace RestoreHistoryVersion {
interface Request {
params: {
versionId: Data.ID;
contentType: UID.ContentType;
};
body: {
contentType: UID.ContentType;
};
}
type Response = {
data: {
documentId: HistoryVersionDataResponse['id'];
};
error?: never;
} | {
data?: never;
meta?: never;
error: errors.ApplicationError;
};
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"history-versions.d.ts","sourceRoot":"","sources":["../../../shared/contracts/history-versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC;IAC7B,iBAAiB,EAAE,IAAI,CAAC,EAAE,CAAC;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,OAAO,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI,CAAC;IAClD,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC,GAAG,MAAM,IAAI,MAAM,EAAE,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;CAC3E;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACtF,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE;QACV,EAAE,EAAE,IAAI,CAAC,EAAE,CAA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B,MAAM,EAAE;YACN,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC;YACnB,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC;SAC9B,CAAC;QACF,IAAI,EAAE;YACJ,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC;SAC9B,CAAC;KACH;IAED,KAAY,QAAQ,GAChB;QACE,IAAI,EAAE;YACJ,UAAU,EAAE,0BAA0B,CAAC,IAAI,CAAC,CAAC;SAC9C,CAAC;QACF,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,GACD;QACE,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAChC,CAAC;CACP"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=history-versions.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"history-versions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=history-versions.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"history-versions.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,25 @@
import type { errors } from '@strapi/utils';
import type { Struct, UID } from '@strapi/types';
export interface RecentDocument {
kind: Struct.ContentTypeKind;
contentTypeUid: UID.ContentType;
contentTypeDisplayName: string;
documentId: string;
locale: string | null;
status?: 'draft' | 'published' | 'modified';
title: string;
updatedAt: Date;
publishedAt?: Date | null;
}
export declare namespace GetRecentDocuments {
interface Request {
body: {};
query: {
action: 'update' | 'publish';
};
}
interface Response {
data: RecentDocument[];
error?: errors.ApplicationError;
}
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"homepage.d.ts","sourceRoot":"","sources":["../../../shared/contracts/homepage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGjD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC;IAC7B,cAAc,EAAE,GAAG,CAAC,WAAW,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,GAAG,WAAW,GAAG,UAAU,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;SAC9B,CAAC;KACH;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF"}

View File

@@ -0,0 +1,10 @@
export * as CollectionTypes from './collection-types';
export * as Components from './components';
export * as ContentTypes from './content-types';
export * as Init from './init';
export * as Relations from './relations';
export * as SingleTypes from './single-types';
export * as UID from './uid';
export * as ReviewWorkflows from './review-workflows';
export * as HistoryVersions from './history-versions';
export * as Preview from './preview';

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../shared/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC"}

View File

@@ -0,0 +1,26 @@
'use strict';
var collectionTypes = require('./collection-types.js');
var components = require('./components.js');
var contentTypes = require('./content-types.js');
var init = require('./init.js');
var relations = require('./relations.js');
var singleTypes = require('./single-types.js');
var uid = require('./uid.js');
var reviewWorkflows = require('./review-workflows.js');
var historyVersions = require('./history-versions.js');
var preview = require('./preview.js');
exports.CollectionTypes = collectionTypes;
exports.Components = components;
exports.ContentTypes = contentTypes;
exports.Init = init;
exports.Relations = relations;
exports.SingleTypes = singleTypes;
exports.UID = uid;
exports.ReviewWorkflows = reviewWorkflows;
exports.HistoryVersions = historyVersions;
exports.Preview = preview;
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}

View File

@@ -0,0 +1,21 @@
import * as collectionTypes from './collection-types.mjs';
export { collectionTypes as CollectionTypes };
import * as components from './components.mjs';
export { components as Components };
import * as contentTypes from './content-types.mjs';
export { contentTypes as ContentTypes };
import * as init from './init.mjs';
export { init as Init };
import * as relations from './relations.mjs';
export { relations as Relations };
import * as singleTypes from './single-types.mjs';
export { singleTypes as SingleTypes };
import * as uid from './uid.mjs';
export { uid as UID };
import * as reviewWorkflows from './review-workflows.mjs';
export { reviewWorkflows as ReviewWorkflows };
import * as historyVersions from './history-versions.mjs';
export { historyVersions as HistoryVersions };
import * as preview from './preview.mjs';
export { preview as Preview };
//# sourceMappingURL=index.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}

View File

@@ -0,0 +1,23 @@
import { errors } from '@strapi/utils';
import { Component } from './components';
import { ContentType } from './content-types';
/**
* GET /init
*/
export declare namespace GetInitData {
interface Request {
body: {};
query: {};
}
interface Response {
data: {
fieldSizes: Record<string, {
default: number;
isResizable: boolean;
}>;
components: Component[];
contentTypes: ContentType[];
};
error?: errors.ApplicationError;
}
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../shared/contracts/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE,EAAE,CAAC;KACX;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE;YACJ,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE;gBAAE,OAAO,EAAE,MAAM,CAAC;gBAAC,WAAW,EAAE,OAAO,CAAA;aAAE,CAAC,CAAC;YACtE,UAAU,EAAE,SAAS,EAAE,CAAC;YACxB,YAAY,EAAE,WAAW,EAAE,CAAC;SAC7B,CAAC;QACF,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=init.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"init.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=init.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"init.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,26 @@
import type { Data, UID } from '@strapi/types';
import { type errors } from '@strapi/utils';
/**
* GET /content-manager/preview/url/:uid
*/
export declare namespace GetPreviewUrl {
interface Request {
params: {
contentType: UID.ContentType;
};
query: {
documentId?: Data.DocumentID;
locale?: string;
status?: 'published' | 'draft';
};
}
type Response = {
data: {
url: string | undefined;
};
error?: never;
} | {
data?: never;
error: errors.ApplicationError | errors.ValidationError | errors.NotFoundError;
};
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../shared/contracts/preview.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,UAAiB,OAAO;QACtB,MAAM,EAAE;YACN,WAAW,EAAE,GAAG,CAAC,WAAW,CAAC;SAC9B,CAAC;QACF,KAAK,EAAE;YACL,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC;YAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;SAChC,CAAC;KACH;IAGD,KAAY,QAAQ,GAChB;QACE,IAAI,EAAE;YACJ,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;SACzB,CAAC;QACF,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,GACD;QACE,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,aAAa,CAAC;KAChF,CAAC;CACP"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=preview.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"preview.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=preview.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"preview.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,69 @@
import type { Modules, Data } from '@strapi/types';
import { errors } from '@strapi/utils';
type PaginationQuery = Modules.EntityService.Params.Pagination.PageNotation;
export interface RelationResult {
documentId: Modules.Documents.ID;
id: number;
status?: Modules.Documents.Params.PublicationStatus.Kind;
locale?: Modules.Documents.Params.Locale.StringNotation;
[key: string]: any;
}
export interface Pagination {
page: NonNullable<PaginationQuery['page']>;
pageSize: NonNullable<PaginationQuery['pageSize']>;
pageCount: number;
total: number;
}
type RelationResponse = {
results: RelationResult[];
pagination: Pagination;
error?: never;
} | {
results?: never;
pagination?: never;
error: errors.ApplicationError | errors.YupValidationError;
};
/**
* GET /relations/:model/:targetField
*/
export declare namespace FindAvailable {
interface Params {
model: string;
targetField: string;
}
interface Request {
body: {};
query: Partial<Pick<Pagination, 'pageSize' | 'page'>> & {
id?: Data.ID;
locale?: Modules.Documents.Params.Locale.StringNotation;
_filter?: string;
_q?: string;
idsToOmit?: Modules.Documents.ID[];
idsToInclude?: Modules.Documents.ID[];
};
}
type Response = RelationResponse;
}
/**
* GET /relations/:model/:id/:targetField
*/
export declare namespace FindExisting {
interface Params {
model: string;
targetField: string;
id?: Data.ID;
}
interface Request {
body: {};
query: Partial<Pick<Pagination, 'pageSize' | 'page'>> & {
locale?: string | null;
_filter?: string;
_q?: string;
status?: Modules.Documents.Params.PublicationStatus.Kind;
idsToOmit?: Modules.Documents.ID[];
idsToInclude?: Modules.Documents.ID[];
};
}
type Response = RelationResponse;
}
export {};

View File

@@ -0,0 +1 @@
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../../shared/contracts/relations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,KAAK,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,YAA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M,CAAC,MAAM,CAAC,cAAc,CAAC;YACxD,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,EAAE,CAAC,EAAE,MAAM,CAAC;YACZ,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;YACnC,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;SACvC,CAAC;KACH;IAED,KAAY,QAAQ,GAAG,gBAAgB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,UAAiB,MAAM;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC;KACd;IAED,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAAC,CAAC,GAAG;YACtD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YACvB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,EAAE,CAAC,EAAE,MAAM,CAAC;YACZ,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC;YACzD,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;YACnC,YAAY,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,CAAC;SACvC,CAAC;KACH;IAED,KAAY,QAAQ,GAAG,gBAAgB,CAAC;CACzC"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=relations.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"relations.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=relations.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"relations.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,77 @@
import type { UID, Modules } from '@strapi/types';
import type { errors } from '@strapi/utils';
type Entity = Modules.EntityService.Result<UID.Schema>;
/**
* /content-manager/<collection-type | single-type>/:model/:id/assignee
*/
declare namespace UpdateAssignee {
interface Request {
body: {
data: {
id: Entity['id'] | null;
};
};
query: {};
}
interface Params {
model: string;
id: Entity['id'];
}
interface Response {
data: Entity;
error?: errors.ApplicationError;
}
}
interface StagePermission extends Omit<Entity, 'createdAt' | 'updatedAt'> {
action: string;
actionParameters: object;
subject?: string | null;
role: number;
}
interface Stage extends Entity {
color: string;
name: string;
permissions?: StagePermission[];
}
/**
* GET /content-manager/<collection-type | single-type>/:model/:id/stages
*/
declare namespace GetStages {
interface Request {
body: {};
query: {};
}
interface Params {
model: string;
id: Entity['id'];
}
interface Response {
data: Stage[];
meta?: {
workflowCount: number;
};
error?: errors.ApplicationError;
}
}
/**
* PUT /content-manager/<collection-type | single-type>/:model/:id/stage
*/
declare namespace UpdateStage {
interface Request {
body: {
data: {
id: Entity['id'];
};
};
query: {};
}
interface Params {
model: string;
id: Entity['id'];
}
interface Response {
data: Entity;
error?: errors.ApplicationError;
}
}
export type { UpdateAssignee, UpdateStage, GetStages, Stage, StagePermission };

View File

@@ -0,0 +1 @@
{"version":3,"file":"review-workflows.d.ts","sourceRoot":"","sources":["../../../shared/contracts/review-workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAEvD;;GAEG;AACH,kBAAU,cAAc,CAAC;IACvB,UAAiB,OAAO;QACtB,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,EAAE,EAAE,MAAM,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K,EAAE,EAAE,CAAC;KACX;IAED,UAAiB,MAAM;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;KAClB;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF;AAED,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=review-workflows.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"review-workflows.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=review-workflows.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"review-workflows.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,112 @@
import type { Modules } from '@strapi/types';
import { errors } from '@strapi/utils';
type Document = Modules.Documents.Document<any>;
type AT_FIELDS = 'updatedAt' | 'createdAt' | 'publishedAt';
type BY_FIELDS = 'createdBy' | 'updatedBy' | 'publishedBy';
type DocumentMetadata = {
availableStatus: Pick<Document, 'id' | BY_FIELDS | AT_FIELDS>[];
availableLocales: Pick<Document, 'id' | 'locale' | 'status' | AT_FIELDS>[];
};
/**
* GET /single-types/:model
*/
export declare namespace Find {
interface Request {
body: {};
query: {
locale: string;
};
}
interface Params {
model: string;
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* PUT /single-types/:model
*/
export declare namespace CreateOrUpdate {
interface Request {
body: Document;
query: {
plugins: {
i18n: {
locale: string;
};
};
};
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* DELETE /single-types/:model
*/
export declare namespace Delete {
interface Request {
body: {};
query: {
locale: string;
};
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* POST /single-types/:model/actions/publish
*/
export declare namespace Publish {
interface Request {
body: {};
query: {
locale: string;
};
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* POST /single-types/:model/actions/unpublish
*/
export declare namespace UnPublish {
interface Request {
body: {
discardDraft?: boolean;
};
query: {
locale: string;
};
}
interface Response {
data: Document;
meta: DocumentMetadata;
error?: errors.ApplicationError;
}
}
/**
* GET /single-types/:model/actions/countDraftRelations
*/
export declare namespace CountDraftRelations {
interface Request {
body: {};
query: {};
}
interface Response {
data: number;
error?: errors.ApplicationError;
}
}
export {};

View File

@@ -0,0 +1 @@
{"version":3,"file":"single-types.d.ts","sourceRoot":"","sources":["../../../shared/contracts/single-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,KAAK,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AAChD,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAC3D,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAC3D,KAAK,gBAAgB,GAAG;IAEtB,eAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,SAAS,GAAG,SAAS,CAAC,EAAE,CAAC;IAEhE,gBAAgB,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC,EAAE,CAAC;CAC5E,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE;YACL,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;KACH;IAED,UAAiB,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AAiB,OAAO;QACtB,IAAI,EAAE;YAGJ,YAAY,CAAC,EAAE,OAAO,CAAC;SACxB,CAAC;QACF,KAAK,EAAE;YACL,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;KACH;IACD,UAAiB,QAAQ;QACvB,IAAI,EAAE,QAAQ,CAAC;QACf,IAAI,EAAE,gBAAgB,CAAC;QACvB,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,UAAiB,OAAO;QACtB,IAAI,EAAE,EAAE,CAAC;QACT,KAAK,EAAE,EAAE,CAAC;KACX;IAED,UAAiB,QAAQ;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC;KACjC;CACF"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=single-types.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"single-types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=single-types.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"single-types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,47 @@
import type { UID, Modules } from '@strapi/types';
import { errors } from '@strapi/utils';
type Entity = Modules.EntityService.Result<UID.Schema>;
/**
* POST /uid/generate
*/
export declare namespace GenerateUID {
interface Request {
body: {
contentTypeUID: string;
data: Entity;
field: string;
};
query: {
locale?: string | null;
};
}
interface Response {
data: string;
error?: errors.ApplicationError | errors.YupValidationError;
}
}
/**
* POST /uid/check-availability
*/
export declare namespace CheckUIDAvailability {
interface Request {
body: {
contentTypeUID: string;
field: string;
value: string;
};
query: {
locale?: string | null;
};
}
type Response = {
isAvailable: boolean;
suggestion: string | null;
error?: never;
} | {
isAvailable?: never;
suggesiton?: never;
error?: errors.ApplicationError | errors.YupValidationError;
};
}
export {};

View File

@@ -0,0 +1 @@
{"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../../../shared/contracts/uid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,KAAK,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAEvD;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,UAAiB,OAAO;QACtB,IAAI,EAAE;YACJ,cAAc,EAAE,MAAM,CAAC;YACvB,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;QACF,KAAK,EAAE;YACL,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACxB,CAAC;KACH;IACD,UAAiB,QAAQ;QACvB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC;KAC7D;CACF;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,UAAiB,OAAO;QACtB,IAAI,EAAE;YACJ,cAAc,EAAE,MAAM,CAAC;YACvB,KAAK,EAAE,MAAM,CAAC;YACd,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;QACF,KAAK,EAAE;YACL,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACxB,CAAC;KACH;IACD,KAAY,QAAQ,GAChB;QACE,WAAW,EAAE,OAAO,CAAC;QACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,GACD;QACE,WAAW,CAAC,EAAE,KAAK,CAAC;QACpB,UAAU,CAAC,EAAE,KAAK,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC;KAC7D,CAAC;CACP"}

View File

@@ -0,0 +1,3 @@
'use strict';
//# sourceMappingURL=uid.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"uid.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1,2 @@
//# sourceMappingURL=uid.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"uid.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}