medusa-plugin-content 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/medusa-config.d.ts +1 -0
- package/.medusa/server/medusa-config.js +3 -3
- package/.medusa/server/src/admin/index.js +3520 -3409
- package/.medusa/server/src/admin/index.mjs +3520 -3409
- package/.medusa/server/src/api/admin/content/[collectionId]/fields/[fieldId]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/fields/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/items/[itemId]/activity/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/items/[itemId]/links/[linkId]/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/items/[itemId]/links/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/items/[itemId]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/items/[itemId]/tags/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/items/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/relationships/[relId]/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/relationships/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content/[collectionId]/upload/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/content/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content-creators/[id]/activity/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content-creators/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content-creators/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content-tags/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/content-tags/route.d.ts +5 -0
- package/.medusa/server/src/api/content/[slug]/items/[itemSlug]/route.d.ts +3 -0
- package/.medusa/server/src/api/content/[slug]/items/route.d.ts +3 -0
- package/.medusa/server/src/api/content/[slug]/route.d.ts +3 -0
- package/.medusa/server/src/api/content/route.d.ts +3 -0
- package/.medusa/server/src/api/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/validators.d.ts +304 -0
- package/.medusa/server/src/api/validators.js +21 -21
- package/.medusa/server/src/links/content-creator-activity-user.d.ts +2 -0
- package/.medusa/server/src/links/content-item-activity-user.d.ts +2 -0
- package/.medusa/server/src/links/user-content-creator-activity.d.ts +2 -0
- package/.medusa/server/src/links/user-content-item-activity.d.ts +2 -0
- package/.medusa/server/src/modules/content/index.d.ts +134 -0
- package/.medusa/server/src/modules/content/index.js +16 -1
- package/.medusa/server/src/modules/content/migrations/Migration20260411221609.d.ts +5 -0
- package/.medusa/server/src/modules/content/models/content-collection.d.ts +353 -0
- package/.medusa/server/src/modules/content/models/content-creator-activity.d.ts +195 -0
- package/.medusa/server/src/modules/content/models/content-creator.d.ts +191 -0
- package/.medusa/server/src/modules/content/models/content-field.d.ts +346 -0
- package/.medusa/server/src/modules/content/models/content-item-activity.d.ts +213 -0
- package/.medusa/server/src/modules/content/models/content-item.d.ts +211 -0
- package/.medusa/server/src/modules/content/models/content-link.d.ts +344 -0
- package/.medusa/server/src/modules/content/models/content-relationship.d.ts +345 -0
- package/.medusa/server/src/modules/content/models/content-tag.d.ts +206 -0
- package/.medusa/server/src/modules/content/models/customer-activity.d.ts +15 -0
- package/.medusa/server/src/modules/content/service.d.ts +3259 -0
- package/.medusa/server/src/workflows/file.d.ts +14 -0
- package/package.json +47 -38
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminGetContentCollectionFieldType, AdminUpdateContentCollectionFieldType } from '../../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCollectionFieldType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminUpdateContentCollectionFieldType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentCollectionFieldType, AdminDeleteContentCollectionFieldsType, AdminGetContentCollectionFieldsType } from '../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCollectionFieldsType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentCollectionFieldType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest<AdminDeleteContentCollectionFieldsType>, res: MedusaResponse) => Promise<void>;
|
package/.medusa/server/src/api/admin/content/[collectionId]/items/[itemId]/activity/route.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentItemActivityType, AdminDeleteContentItemActivityType, AdminGetContentItemActivityType } from '../../../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentItemActivityType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentItemActivityType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest<AdminDeleteContentItemActivityType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentItemLinkType, AdminGetContentItemLinksType } from '../../../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentItemLinksType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentItemLinkType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminGetContentItemType, AdminUpdateContentItemType } from '../../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentItemType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminUpdateContentItemType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminAddContentTagType, AdminRemoveContentTagsType } from '../../../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminAddContentTagType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest<AdminRemoveContentTagsType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentItemType, AdminDeleteContentItemsType, AdminGetContentItemsType } from '../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentItemsType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentItemType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest<AdminDeleteContentItemsType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminGetContentCollectionRelationshipType } from '../../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCollectionRelationshipType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentCollectionRelationshipType, AdminGetContentCollectionRelationshipsType } from '../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCollectionRelationshipsType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentCollectionRelationshipType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminGetContentCollectionType, AdminUpdateContentCollectionType } from '../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCollectionType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminUpdateContentCollectionType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentCollectionType, AdminDeleteContentCollectionsType, AdminGetContentCollectionsType } from '../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCollectionsType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentCollectionType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest<AdminDeleteContentCollectionsType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentCreatorActivityType, AdminDeleteContentCreatorActivityType, AdminGetContentCreatorActivityType } from '../../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCreatorActivityType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentCreatorActivityType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest<AdminDeleteContentCreatorActivityType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminGetContentCreatorType, AdminUpdateContentCreatorType } from '../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCreatorType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminUpdateContentCreatorType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentCreatorType, AdminDeleteContentCreatorsType, AdminGetContentCreatorsType } from '../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentCreatorsType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentCreatorType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest<AdminDeleteContentCreatorsType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminGetContentTagType, AdminUpdateContentTagType } from '../../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentTagType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminUpdateContentTagType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AuthenticatedMedusaRequest, MedusaResponse } from '@medusajs/framework';
|
|
2
|
+
import { AdminCreateContentTagType, AdminDeleteContentTagsType, AdminGetContentTagsType } from '../../validators';
|
|
3
|
+
export declare const GET: (req: AuthenticatedMedusaRequest<AdminGetContentTagsType>, res: MedusaResponse) => Promise<void>;
|
|
4
|
+
export declare const POST: (req: AuthenticatedMedusaRequest<AdminCreateContentTagType>, res: MedusaResponse) => Promise<void>;
|
|
5
|
+
export declare const DELETE: (req: AuthenticatedMedusaRequest<AdminDeleteContentTagsType>, res: MedusaResponse) => Promise<void>;
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { z } from '@medusajs/framework/zod';
|
|
2
|
+
import { ContentFormat } from '../modules/content/models/content-collection';
|
|
3
|
+
import { ContentRelationshipType } from '../modules/content/models/content-relationship';
|
|
4
|
+
import { ContentStatus } from '../modules/content/models/content-item';
|
|
5
|
+
import { ContentCreatorActivityType } from '../modules/content/models/content-creator-activity';
|
|
6
|
+
import { ContentItemActivityType } from '../modules/content/models/content-item-activity';
|
|
7
|
+
export declare const AdminGetContentCollections: z.ZodObject<{
|
|
8
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
9
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
10
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
11
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
q: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type AdminGetContentCollectionsType = z.infer<typeof AdminGetContentCollections>;
|
|
16
|
+
export declare const AdminGetContentCollection: z.ZodObject<{
|
|
17
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
18
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
19
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
20
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type AdminGetContentCollectionType = z.infer<typeof AdminGetContentCollection>;
|
|
24
|
+
export declare const AdminCreateContentCollection: z.ZodObject<{
|
|
25
|
+
label: z.ZodString;
|
|
26
|
+
slug: z.ZodString;
|
|
27
|
+
format: z.ZodEnum<typeof ContentFormat>;
|
|
28
|
+
prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type AdminCreateContentCollectionType = z.infer<typeof AdminCreateContentCollection>;
|
|
32
|
+
export declare const AdminUpdateContentCollection: z.ZodObject<{
|
|
33
|
+
label: z.ZodOptional<z.ZodString>;
|
|
34
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
35
|
+
prefix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export type AdminUpdateContentCollectionType = z.infer<typeof AdminUpdateContentCollection>;
|
|
39
|
+
export declare const AdminDeleteContentCollections: z.ZodObject<{
|
|
40
|
+
ids: z.ZodArray<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type AdminDeleteContentCollectionsType = z.infer<typeof AdminDeleteContentCollections>;
|
|
43
|
+
export declare const AdminGetContentCollectionFields: z.ZodObject<{
|
|
44
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
45
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
46
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
47
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
48
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type AdminGetContentCollectionFieldsType = z.infer<typeof AdminGetContentCollectionFields>;
|
|
51
|
+
export declare const AdminGetContentCollectionField: z.ZodObject<{
|
|
52
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
53
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
54
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
55
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
56
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type AdminGetContentCollectionFieldType = z.infer<typeof AdminGetContentCollectionField>;
|
|
59
|
+
export declare const AdminCreateContentCollectionField: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
label: z.ZodString;
|
|
62
|
+
field_type: z.ZodString;
|
|
63
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
65
|
+
default_value: z.ZodAny;
|
|
66
|
+
sort_order: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type AdminCreateContentCollectionFieldType = z.infer<typeof AdminCreateContentCollectionField>;
|
|
69
|
+
export declare const AdminUpdateContentCollectionField: z.ZodObject<{
|
|
70
|
+
label: z.ZodOptional<z.ZodString>;
|
|
71
|
+
field_type: z.ZodOptional<z.ZodString>;
|
|
72
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
74
|
+
default_value: z.ZodAny;
|
|
75
|
+
sort_order: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export type AdminUpdateContentCollectionFieldType = z.infer<typeof AdminUpdateContentCollectionField>;
|
|
78
|
+
export declare const AdminDeleteContentCollectionFields: z.ZodObject<{
|
|
79
|
+
ids: z.ZodArray<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export type AdminDeleteContentCollectionFieldsType = z.infer<typeof AdminDeleteContentCollectionFields>;
|
|
82
|
+
export declare const AdminGetContentCollectionRelationships: z.ZodObject<{
|
|
83
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
84
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
85
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
86
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
87
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export type AdminGetContentCollectionRelationshipsType = z.infer<typeof AdminGetContentCollectionRelationships>;
|
|
90
|
+
export declare const AdminGetContentCollectionRelationship: z.ZodObject<{
|
|
91
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
92
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
93
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
94
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
95
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type AdminGetContentCollectionRelationshipType = z.infer<typeof AdminGetContentCollectionRelationship>;
|
|
98
|
+
export declare const AdminCreateContentCollectionRelationship: z.ZodObject<{
|
|
99
|
+
target_collection_id: z.ZodString;
|
|
100
|
+
relationship_type: z.ZodEnum<typeof ContentRelationshipType>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export type AdminCreateContentCollectionRelationshipType = z.infer<typeof AdminCreateContentCollectionRelationship>;
|
|
103
|
+
export declare const AdminGetContentCreators: z.ZodObject<{
|
|
104
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
105
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
106
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
107
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
108
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
109
|
+
q: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type AdminGetContentCreatorsType = z.infer<typeof AdminGetContentCreators>;
|
|
112
|
+
export declare const AdminGetContentCreator: z.ZodObject<{
|
|
113
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
114
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
115
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
116
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
117
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export type AdminGetContentCreatorType = z.infer<typeof AdminGetContentCreator>;
|
|
120
|
+
export declare const AdminCreateContentCreator: z.ZodObject<{
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
124
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export type AdminCreateContentCreatorType = z.infer<typeof AdminCreateContentCreator>;
|
|
127
|
+
export declare const AdminUpdateContentCreator: z.ZodObject<{
|
|
128
|
+
name: z.ZodOptional<z.ZodString>;
|
|
129
|
+
bio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
+
avatar_url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
131
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
export type AdminUpdateContentCreatorType = z.infer<typeof AdminUpdateContentCreator>;
|
|
134
|
+
export declare const AdminDeleteContentCreators: z.ZodObject<{
|
|
135
|
+
ids: z.ZodArray<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export type AdminDeleteContentCreatorsType = z.infer<typeof AdminDeleteContentCreators>;
|
|
138
|
+
export declare const AdminGetContentCreatorActivity: z.ZodObject<{
|
|
139
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
140
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
141
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
142
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
143
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export type AdminGetContentCreatorActivityType = z.infer<typeof AdminGetContentCreatorActivity>;
|
|
146
|
+
export declare const AdminCreateContentCreatorActivity: z.ZodObject<{
|
|
147
|
+
type: z.ZodDefault<z.ZodEnum<typeof ContentCreatorActivityType>>;
|
|
148
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export type AdminCreateContentCreatorActivityType = z.infer<typeof AdminCreateContentCreatorActivity>;
|
|
151
|
+
export declare const AdminDeleteContentCreatorActivity: z.ZodObject<{
|
|
152
|
+
ids: z.ZodArray<z.ZodString>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export type AdminDeleteContentCreatorActivityType = z.infer<typeof AdminDeleteContentCreatorActivity>;
|
|
155
|
+
export declare const AdminGetContentItems: z.ZodObject<{
|
|
156
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
157
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
158
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
159
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
160
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
161
|
+
creator_id: z.ZodOptional<z.ZodString>;
|
|
162
|
+
status: z.ZodOptional<z.ZodEnum<typeof ContentStatus>>;
|
|
163
|
+
q: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export type AdminGetContentItemsType = z.infer<typeof AdminGetContentItems>;
|
|
166
|
+
export declare const AdminGetContentItem: z.ZodObject<{
|
|
167
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
168
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
169
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
170
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
171
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export type AdminGetContentItemType = z.infer<typeof AdminGetContentItem>;
|
|
174
|
+
export declare const AdminCreateContentItem: z.ZodObject<{
|
|
175
|
+
title: z.ZodString;
|
|
176
|
+
slug: z.ZodString;
|
|
177
|
+
creator_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
status: z.ZodOptional<z.ZodEnum<typeof ContentStatus>>;
|
|
180
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
181
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
export type AdminCreateContentItemType = z.infer<typeof AdminCreateContentItem>;
|
|
184
|
+
export declare const AdminUpdateContentItem: z.ZodObject<{
|
|
185
|
+
title: z.ZodOptional<z.ZodString>;
|
|
186
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
187
|
+
creator_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
status: z.ZodOptional<z.ZodEnum<typeof ContentStatus>>;
|
|
190
|
+
published_at: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
191
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
export type AdminUpdateContentItemType = z.infer<typeof AdminUpdateContentItem>;
|
|
194
|
+
export declare const AdminDeleteContentItems: z.ZodObject<{
|
|
195
|
+
ids: z.ZodArray<z.ZodString>;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
export type AdminDeleteContentItemsType = z.infer<typeof AdminDeleteContentItems>;
|
|
198
|
+
export declare const AdminGetContentItemActivity: z.ZodObject<{
|
|
199
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
200
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
201
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
202
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
203
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
export type AdminGetContentItemActivityType = z.infer<typeof AdminGetContentItemActivity>;
|
|
206
|
+
export declare const AdminCreateContentItemActivity: z.ZodObject<{
|
|
207
|
+
type: z.ZodDefault<z.ZodEnum<typeof ContentItemActivityType>>;
|
|
208
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export type AdminCreateContentItemActivityType = z.infer<typeof AdminCreateContentItemActivity>;
|
|
211
|
+
export declare const AdminDeleteContentItemActivity: z.ZodObject<{
|
|
212
|
+
ids: z.ZodArray<z.ZodString>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
export type AdminDeleteContentItemActivityType = z.infer<typeof AdminDeleteContentItemActivity>;
|
|
215
|
+
export declare const AdminGetContentItemLinks: z.ZodObject<{
|
|
216
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
217
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
218
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
219
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
220
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
export type AdminGetContentItemLinksType = z.infer<typeof AdminGetContentItemLinks>;
|
|
223
|
+
export declare const AdminCreateContentItemLink: z.ZodObject<{
|
|
224
|
+
target_item_id: z.ZodString;
|
|
225
|
+
relationship_id: z.ZodString;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
export type AdminCreateContentItemLinkType = z.infer<typeof AdminCreateContentItemLink>;
|
|
228
|
+
export declare const AdminGetContentTags: z.ZodObject<{
|
|
229
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
230
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
231
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
232
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
233
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
234
|
+
item_id: z.ZodOptional<z.ZodString>;
|
|
235
|
+
q: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
export type AdminGetContentTagsType = z.infer<typeof AdminGetContentTags>;
|
|
238
|
+
export declare const AdminGetContentTag: z.ZodObject<{
|
|
239
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
240
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
241
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
242
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
243
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
export type AdminGetContentTagType = z.infer<typeof AdminGetContentTag>;
|
|
246
|
+
export declare const AdminCreateContentTag: z.ZodObject<{
|
|
247
|
+
value: z.ZodString;
|
|
248
|
+
item_id: z.ZodString;
|
|
249
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
export type AdminCreateContentTagType = z.infer<typeof AdminCreateContentTag>;
|
|
252
|
+
export declare const AdminUpdateContentTag: z.ZodObject<{
|
|
253
|
+
value: z.ZodOptional<z.ZodString>;
|
|
254
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
export type AdminUpdateContentTagType = z.infer<typeof AdminUpdateContentTag>;
|
|
257
|
+
export declare const AdminDeleteContentTags: z.ZodObject<{
|
|
258
|
+
ids: z.ZodArray<z.ZodString>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
export type AdminDeleteContentTagsType = z.infer<typeof AdminDeleteContentTags>;
|
|
261
|
+
export declare const AdminAddContentTag: z.ZodObject<{
|
|
262
|
+
value: z.ZodString;
|
|
263
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
export type AdminAddContentTagType = z.infer<typeof AdminAddContentTag>;
|
|
266
|
+
export declare const AdminRemoveContentTags: z.ZodObject<{
|
|
267
|
+
ids: z.ZodArray<z.ZodString>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
export type AdminRemoveContentTagsType = z.infer<typeof AdminRemoveContentTags>;
|
|
270
|
+
export declare const StoreGetContentCollections: z.ZodObject<{
|
|
271
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
272
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
273
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
274
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
275
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
276
|
+
q: z.ZodOptional<z.ZodString>;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
export type StoreGetContentCollectionsType = z.infer<typeof StoreGetContentCollections>;
|
|
279
|
+
export declare const StoreGetContentCollection: z.ZodObject<{
|
|
280
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
281
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
282
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
283
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
284
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
export type StoreGetContentCollectionType = z.infer<typeof StoreGetContentCollection>;
|
|
287
|
+
export declare const StoreGetContentItems: z.ZodObject<{
|
|
288
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
289
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
290
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
291
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
292
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
293
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
294
|
+
q: z.ZodOptional<z.ZodString>;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
export type StoreGetContentItemsType = z.infer<typeof StoreGetContentItems>;
|
|
297
|
+
export declare const StoreGetContentItem: z.ZodObject<{
|
|
298
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
299
|
+
offset: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
300
|
+
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
301
|
+
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
302
|
+
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
export type StoreGetContentItemType = z.infer<typeof StoreGetContentItem>;
|