strapi-typed-client 1.0.0
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/LICENSE +21 -0
- package/README.md +83 -0
- package/dist/cli/commands/check.d.ts +27 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/check.js +91 -0
- package/dist/cli/commands/check.js.map +1 -0
- package/dist/cli/commands/generate.d.ts +28 -0
- package/dist/cli/commands/generate.d.ts.map +1 -0
- package/dist/cli/commands/generate.js +129 -0
- package/dist/cli/commands/generate.js.map +1 -0
- package/dist/cli/commands/watch.d.ts +21 -0
- package/dist/cli/commands/watch.d.ts.map +1 -0
- package/dist/cli/commands/watch.js +113 -0
- package/dist/cli/commands/watch.js.map +1 -0
- package/dist/cli/index.d.ts +14 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +40 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/utils/api-client.d.ts +41 -0
- package/dist/cli/utils/api-client.d.ts.map +1 -0
- package/dist/cli/utils/api-client.js +81 -0
- package/dist/cli/utils/api-client.js.map +1 -0
- package/dist/cli/utils/file-writer.d.ts +44 -0
- package/dist/cli/utils/file-writer.d.ts.map +1 -0
- package/dist/cli/utils/file-writer.js +89 -0
- package/dist/cli/utils/file-writer.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +37 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.d.ts +622 -0
- package/dist/client.js +688 -0
- package/dist/core/endpoint-converter.d.ts +26 -0
- package/dist/core/endpoint-converter.d.ts.map +1 -0
- package/dist/core/endpoint-converter.js +161 -0
- package/dist/core/endpoint-converter.js.map +1 -0
- package/dist/core/generator/filters-generator.d.ts +22 -0
- package/dist/core/generator/filters-generator.d.ts.map +1 -0
- package/dist/core/generator/filters-generator.js +236 -0
- package/dist/core/generator/filters-generator.js.map +1 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +11 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/schema-transformer.d.ts +19 -0
- package/dist/core/schema-transformer.d.ts.map +1 -0
- package/dist/core/schema-transformer.js +306 -0
- package/dist/core/schema-transformer.js.map +1 -0
- package/dist/generator/auth-api-generator.d.ts +14 -0
- package/dist/generator/auth-api-generator.d.ts.map +1 -0
- package/dist/generator/auth-api-generator.js +518 -0
- package/dist/generator/auth-api-generator.js.map +1 -0
- package/dist/generator/blocks-types-template.d.ts +134 -0
- package/dist/generator/blocks-types-template.d.ts.map +1 -0
- package/dist/generator/blocks-types-template.js +4 -0
- package/dist/generator/blocks-types-template.js.map +1 -0
- package/dist/generator/client-generator.d.ts +19 -0
- package/dist/generator/client-generator.d.ts.map +1 -0
- package/dist/generator/client-generator.js +707 -0
- package/dist/generator/client-generator.js.map +1 -0
- package/dist/generator/custom-api-generator.d.ts +26 -0
- package/dist/generator/custom-api-generator.d.ts.map +1 -0
- package/dist/generator/custom-api-generator.js +145 -0
- package/dist/generator/custom-api-generator.js.map +1 -0
- package/dist/generator/index-generator.d.ts +4 -0
- package/dist/generator/index-generator.d.ts.map +1 -0
- package/dist/generator/index-generator.js +11 -0
- package/dist/generator/index-generator.js.map +1 -0
- package/dist/generator/index.d.ts +14 -0
- package/dist/generator/index.d.ts.map +1 -0
- package/dist/generator/index.js +94 -0
- package/dist/generator/index.js.map +1 -0
- package/dist/generator/types-generator.d.ts +35 -0
- package/dist/generator/types-generator.d.ts.map +1 -0
- package/dist/generator/types-generator.js +641 -0
- package/dist/generator/types-generator.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/next/index.d.ts +16 -0
- package/dist/next/index.d.ts.map +1 -0
- package/dist/next/index.js +224 -0
- package/dist/next/index.js.map +1 -0
- package/dist/parser/custom-types-parser.d.ts +39 -0
- package/dist/parser/custom-types-parser.d.ts.map +1 -0
- package/dist/parser/custom-types-parser.js +206 -0
- package/dist/parser/custom-types-parser.js.map +1 -0
- package/dist/parser/index.d.ts +23 -0
- package/dist/parser/index.d.ts.map +1 -0
- package/dist/parser/index.js +457 -0
- package/dist/parser/index.js.map +1 -0
- package/dist/parser/routes-parser.d.ts +21 -0
- package/dist/parser/routes-parser.d.ts.map +1 -0
- package/dist/parser/routes-parser.js +184 -0
- package/dist/parser/routes-parser.js.map +1 -0
- package/dist/plugin/admin/src/index.d.ts +16 -0
- package/dist/plugin/admin/src/index.d.ts.map +1 -0
- package/dist/plugin/admin/src/index.js +30 -0
- package/dist/plugin/admin/src/index.js.map +1 -0
- package/dist/plugin/admin/src/pages/HomePage.d.ts +2 -0
- package/dist/plugin/admin/src/pages/HomePage.d.ts.map +1 -0
- package/dist/plugin/admin/src/pages/HomePage.js +273 -0
- package/dist/plugin/admin/src/pages/HomePage.js.map +1 -0
- package/dist/plugin/admin/src/pluginId.d.ts +2 -0
- package/dist/plugin/admin/src/pluginId.d.ts.map +1 -0
- package/dist/plugin/admin/src/pluginId.js +2 -0
- package/dist/plugin/admin/src/pluginId.js.map +1 -0
- package/dist/plugin/index.d.ts +22 -0
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/index.js +22 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/server/src/config/index.d.ts +31 -0
- package/dist/plugin/server/src/config/index.d.ts.map +1 -0
- package/dist/plugin/server/src/config/index.js +35 -0
- package/dist/plugin/server/src/config/index.js.map +1 -0
- package/dist/plugin/server/src/controllers/schema.d.ts +41 -0
- package/dist/plugin/server/src/controllers/schema.d.ts.map +1 -0
- package/dist/plugin/server/src/controllers/schema.js +51 -0
- package/dist/plugin/server/src/controllers/schema.js.map +1 -0
- package/dist/plugin/server/src/index.d.ts +114 -0
- package/dist/plugin/server/src/index.d.ts.map +1 -0
- package/dist/plugin/server/src/index.js +76 -0
- package/dist/plugin/server/src/index.js.map +1 -0
- package/dist/plugin/server/src/routes/index.d.ts +14 -0
- package/dist/plugin/server/src/routes/index.d.ts.map +1 -0
- package/dist/plugin/server/src/routes/index.js +23 -0
- package/dist/plugin/server/src/routes/index.js.map +1 -0
- package/dist/plugin/server/src/services/endpoints.d.ts +36 -0
- package/dist/plugin/server/src/services/endpoints.d.ts.map +1 -0
- package/dist/plugin/server/src/services/endpoints.js +523 -0
- package/dist/plugin/server/src/services/endpoints.js.map +1 -0
- package/dist/plugin/server/src/services/schema.d.ts +25 -0
- package/dist/plugin/server/src/services/schema.d.ts.map +1 -0
- package/dist/plugin/server/src/services/schema.js +164 -0
- package/dist/plugin/server/src/services/schema.js.map +1 -0
- package/dist/schema-meta.ts +7 -0
- package/dist/schema-types.d.ts +104 -0
- package/dist/schema-types.d.ts.map +1 -0
- package/dist/schema-types.js +3 -0
- package/dist/schema-types.js.map +1 -0
- package/dist/shared/constants.d.ts +99 -0
- package/dist/shared/constants.d.ts.map +1 -0
- package/dist/shared/constants.js +89 -0
- package/dist/shared/constants.js.map +1 -0
- package/dist/shared/endpoint-types.d.ts +42 -0
- package/dist/shared/endpoint-types.d.ts.map +1 -0
- package/dist/shared/endpoint-types.js +6 -0
- package/dist/shared/endpoint-types.js.map +1 -0
- package/dist/shared/index.d.ts +12 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +13 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/naming-utils.d.ts +55 -0
- package/dist/shared/naming-utils.d.ts.map +1 -0
- package/dist/shared/naming-utils.js +106 -0
- package/dist/shared/naming-utils.js.map +1 -0
- package/dist/shared/schema-hash.d.ts +39 -0
- package/dist/shared/schema-hash.d.ts.map +1 -0
- package/dist/shared/schema-hash.js +67 -0
- package/dist/shared/schema-hash.js.map +1 -0
- package/dist/shared/strapi-schema-types.d.ts +77 -0
- package/dist/shared/strapi-schema-types.d.ts.map +1 -0
- package/dist/shared/strapi-schema-types.js +10 -0
- package/dist/shared/strapi-schema-types.js.map +1 -0
- package/dist/shared/string-utils.d.ts +68 -0
- package/dist/shared/string-utils.d.ts.map +1 -0
- package/dist/shared/string-utils.js +124 -0
- package/dist/shared/string-utils.js.map +1 -0
- package/dist/transformer/index.d.ts +17 -0
- package/dist/transformer/index.d.ts.map +1 -0
- package/dist/transformer/index.js +83 -0
- package/dist/transformer/index.js.map +1 -0
- package/dist/types.d.ts +3430 -0
- package/dist/types.js +3 -0
- package/package.json +152 -0
- package/strapi-admin.js +2 -0
- package/strapi-server.js +2 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,3430 @@
|
|
|
1
|
+
export interface MediaFile {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
alternativeText: string | null;
|
|
5
|
+
caption: string | null;
|
|
6
|
+
width: number | null;
|
|
7
|
+
height: number | null;
|
|
8
|
+
formats: unknown;
|
|
9
|
+
hash: string;
|
|
10
|
+
ext: string;
|
|
11
|
+
mime: string;
|
|
12
|
+
size: number;
|
|
13
|
+
url: string;
|
|
14
|
+
previewUrl: string | null;
|
|
15
|
+
provider: string;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Main type for Strapi Blocks content
|
|
21
|
+
*/
|
|
22
|
+
export type BlocksContent = Block[];
|
|
23
|
+
/**
|
|
24
|
+
* All possible block types
|
|
25
|
+
*/
|
|
26
|
+
export type Block = ParagraphBlock | HeadingBlock | QuoteBlock | CodeBlock | ListBlock | ImageBlock;
|
|
27
|
+
/**
|
|
28
|
+
* Paragraph block - default text block
|
|
29
|
+
*/
|
|
30
|
+
export interface ParagraphBlock {
|
|
31
|
+
type: 'paragraph';
|
|
32
|
+
children: InlineNode[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Heading block - h1 to h6
|
|
36
|
+
*/
|
|
37
|
+
export interface HeadingBlock {
|
|
38
|
+
type: 'heading';
|
|
39
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
40
|
+
children: InlineNode[];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Quote block - blockquote
|
|
44
|
+
*/
|
|
45
|
+
export interface QuoteBlock {
|
|
46
|
+
type: 'quote';
|
|
47
|
+
children: InlineNode[];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Code block - preformatted code with optional language
|
|
51
|
+
*/
|
|
52
|
+
export interface CodeBlock {
|
|
53
|
+
type: 'code';
|
|
54
|
+
language?: string;
|
|
55
|
+
children: InlineNode[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* List block - ordered or unordered
|
|
59
|
+
*/
|
|
60
|
+
export interface ListBlock {
|
|
61
|
+
type: 'list';
|
|
62
|
+
format: 'ordered' | 'unordered';
|
|
63
|
+
children: ListItemBlock[];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* List item - individual item in a list
|
|
67
|
+
*/
|
|
68
|
+
export interface ListItemBlock {
|
|
69
|
+
type: 'list-item';
|
|
70
|
+
children: InlineNode[];
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Image block - embedded image with optional caption
|
|
74
|
+
*/
|
|
75
|
+
export interface ImageBlock {
|
|
76
|
+
type: 'image';
|
|
77
|
+
image: {
|
|
78
|
+
name: string;
|
|
79
|
+
alternativeText?: string | null;
|
|
80
|
+
url: string;
|
|
81
|
+
caption?: string | null;
|
|
82
|
+
width?: number;
|
|
83
|
+
height?: number;
|
|
84
|
+
formats?: unknown;
|
|
85
|
+
hash: string;
|
|
86
|
+
ext: string;
|
|
87
|
+
mime: string;
|
|
88
|
+
size: number;
|
|
89
|
+
previewUrl?: string | null;
|
|
90
|
+
provider: string;
|
|
91
|
+
createdAt: string;
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
};
|
|
94
|
+
children: InlineNode[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Inline nodes - text formatting and inline elements
|
|
98
|
+
*/
|
|
99
|
+
export type InlineNode = TextNode | LinkInline;
|
|
100
|
+
/**
|
|
101
|
+
* Plain text node with optional formatting
|
|
102
|
+
*/
|
|
103
|
+
export interface TextNode {
|
|
104
|
+
type: 'text';
|
|
105
|
+
text: string;
|
|
106
|
+
bold?: boolean;
|
|
107
|
+
italic?: boolean;
|
|
108
|
+
underline?: boolean;
|
|
109
|
+
strikethrough?: boolean;
|
|
110
|
+
code?: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Inline link
|
|
114
|
+
*/
|
|
115
|
+
export interface LinkInline {
|
|
116
|
+
type: 'link';
|
|
117
|
+
url: string;
|
|
118
|
+
children: TextNode[];
|
|
119
|
+
}
|
|
120
|
+
type _EntityField<T> = Exclude<keyof T & string, '__typename'>;
|
|
121
|
+
type _SortValue<T> = _EntityField<T> | `${_EntityField<T>}:${'asc' | 'desc'}`;
|
|
122
|
+
type _ApplyFields<TFull, TBase, TEntry> = TEntry extends true ? TFull : TEntry extends {
|
|
123
|
+
fields: readonly (infer F)[];
|
|
124
|
+
} ? F extends string ? Pick<TBase, Extract<F | 'id' | 'documentId', keyof TBase>> & Omit<TFull, keyof TBase> : TFull : TFull;
|
|
125
|
+
export interface SharedTab {
|
|
126
|
+
id: number;
|
|
127
|
+
name: string | null;
|
|
128
|
+
isDefault: boolean | null;
|
|
129
|
+
image: MediaFile | null;
|
|
130
|
+
}
|
|
131
|
+
export interface SharedFeature {
|
|
132
|
+
id: number;
|
|
133
|
+
title: string | null;
|
|
134
|
+
description: string | null;
|
|
135
|
+
icon: string | null;
|
|
136
|
+
href: string | null;
|
|
137
|
+
}
|
|
138
|
+
export interface SharedChat {
|
|
139
|
+
id: number;
|
|
140
|
+
description: string | null;
|
|
141
|
+
email: string | null;
|
|
142
|
+
author: string | null;
|
|
143
|
+
created: string | null;
|
|
144
|
+
}
|
|
145
|
+
export interface PlanFeature {
|
|
146
|
+
id: number;
|
|
147
|
+
title: string | null;
|
|
148
|
+
negative: boolean | null;
|
|
149
|
+
}
|
|
150
|
+
export interface ProjectWebConfig {
|
|
151
|
+
id: number;
|
|
152
|
+
rotation: boolean;
|
|
153
|
+
rotation360: boolean;
|
|
154
|
+
autoRotation: boolean;
|
|
155
|
+
grid: boolean;
|
|
156
|
+
gizmo: boolean;
|
|
157
|
+
zoom: boolean;
|
|
158
|
+
}
|
|
159
|
+
export interface ProjectShareConfig {
|
|
160
|
+
id: number;
|
|
161
|
+
model: boolean;
|
|
162
|
+
design: boolean;
|
|
163
|
+
dieline: boolean;
|
|
164
|
+
edit: boolean;
|
|
165
|
+
}
|
|
166
|
+
export interface LandingStatistics {
|
|
167
|
+
id: number;
|
|
168
|
+
title: string | null;
|
|
169
|
+
description: string | null;
|
|
170
|
+
value: string | null;
|
|
171
|
+
}
|
|
172
|
+
export interface LandingSavePublish {
|
|
173
|
+
id: number;
|
|
174
|
+
features: SharedFeature[] | null;
|
|
175
|
+
tabs: SharedTab[] | null;
|
|
176
|
+
}
|
|
177
|
+
export interface LandingProductShowcase {
|
|
178
|
+
id: number;
|
|
179
|
+
title: string | null;
|
|
180
|
+
description: string | null;
|
|
181
|
+
name: string | null;
|
|
182
|
+
image: MediaFile | null;
|
|
183
|
+
features: SharedFeature[] | null;
|
|
184
|
+
}
|
|
185
|
+
export interface LandingMockup {
|
|
186
|
+
id: number;
|
|
187
|
+
name: string;
|
|
188
|
+
webId: string;
|
|
189
|
+
}
|
|
190
|
+
export interface LandingFinishingCard {
|
|
191
|
+
id: number;
|
|
192
|
+
title: string | null;
|
|
193
|
+
description: string | null;
|
|
194
|
+
image: MediaFile | null;
|
|
195
|
+
}
|
|
196
|
+
export interface LandingEditorFeature {
|
|
197
|
+
id: number;
|
|
198
|
+
title: string | null;
|
|
199
|
+
description: string | null;
|
|
200
|
+
image: MediaFile | null;
|
|
201
|
+
}
|
|
202
|
+
export interface LandingCarouselItem {
|
|
203
|
+
id: number;
|
|
204
|
+
title: string | null;
|
|
205
|
+
image: MediaFile | null;
|
|
206
|
+
}
|
|
207
|
+
export interface FaqQuestion {
|
|
208
|
+
id: number;
|
|
209
|
+
title: string;
|
|
210
|
+
answer: BlocksContent | null;
|
|
211
|
+
}
|
|
212
|
+
export interface FaqCategory {
|
|
213
|
+
id: number;
|
|
214
|
+
name: string;
|
|
215
|
+
questions: FaqQuestion[] | null;
|
|
216
|
+
}
|
|
217
|
+
export interface CategorySubcategory {
|
|
218
|
+
id: number;
|
|
219
|
+
name: string;
|
|
220
|
+
items: {
|
|
221
|
+
id: number;
|
|
222
|
+
documentId: string;
|
|
223
|
+
}[];
|
|
224
|
+
}
|
|
225
|
+
export interface AiStudioSubstyle {
|
|
226
|
+
id: number;
|
|
227
|
+
name: string | null;
|
|
228
|
+
description: string | null;
|
|
229
|
+
environmentSpecs: string | null;
|
|
230
|
+
objectsToAdd: string | null;
|
|
231
|
+
}
|
|
232
|
+
export interface AiStudioStyle {
|
|
233
|
+
id: number;
|
|
234
|
+
name: string;
|
|
235
|
+
description: string | null;
|
|
236
|
+
subStyles: AiStudioSubstyle[] | null;
|
|
237
|
+
}
|
|
238
|
+
export interface GuideGuideStep {
|
|
239
|
+
id: number;
|
|
240
|
+
text: string | null;
|
|
241
|
+
title: string | null;
|
|
242
|
+
preview: MediaFile | null;
|
|
243
|
+
image: MediaFile | null;
|
|
244
|
+
}
|
|
245
|
+
export interface GuideContent {
|
|
246
|
+
id: number;
|
|
247
|
+
title: string | null;
|
|
248
|
+
description: string | null;
|
|
249
|
+
steps: GuideGuideStep[] | null;
|
|
250
|
+
}
|
|
251
|
+
export interface SharedTabInput {
|
|
252
|
+
id?: number;
|
|
253
|
+
name?: string | null;
|
|
254
|
+
isDefault?: boolean | null;
|
|
255
|
+
image?: number | null;
|
|
256
|
+
}
|
|
257
|
+
export interface SharedFeatureInput {
|
|
258
|
+
id?: number;
|
|
259
|
+
title?: string | null;
|
|
260
|
+
description?: string | null;
|
|
261
|
+
icon?: string | null;
|
|
262
|
+
href?: string | null;
|
|
263
|
+
}
|
|
264
|
+
export interface SharedChatInput {
|
|
265
|
+
id?: number;
|
|
266
|
+
description?: string | null;
|
|
267
|
+
email?: string | null;
|
|
268
|
+
author?: string | null;
|
|
269
|
+
created?: string | null;
|
|
270
|
+
}
|
|
271
|
+
export interface PlanFeatureInput {
|
|
272
|
+
id?: number;
|
|
273
|
+
title?: string | null;
|
|
274
|
+
negative?: boolean | null;
|
|
275
|
+
}
|
|
276
|
+
export interface ProjectWebConfigInput {
|
|
277
|
+
id?: number;
|
|
278
|
+
rotation?: boolean | null;
|
|
279
|
+
rotation360?: boolean | null;
|
|
280
|
+
autoRotation?: boolean | null;
|
|
281
|
+
grid?: boolean | null;
|
|
282
|
+
gizmo?: boolean | null;
|
|
283
|
+
zoom?: boolean | null;
|
|
284
|
+
}
|
|
285
|
+
export interface ProjectShareConfigInput {
|
|
286
|
+
id?: number;
|
|
287
|
+
model?: boolean | null;
|
|
288
|
+
design?: boolean | null;
|
|
289
|
+
dieline?: boolean | null;
|
|
290
|
+
edit?: boolean | null;
|
|
291
|
+
}
|
|
292
|
+
export interface LandingStatisticsInput {
|
|
293
|
+
id?: number;
|
|
294
|
+
title?: string | null;
|
|
295
|
+
description?: string | null;
|
|
296
|
+
value?: string | null;
|
|
297
|
+
}
|
|
298
|
+
export interface LandingSavePublishInput {
|
|
299
|
+
id?: number;
|
|
300
|
+
features?: SharedFeatureInput[] | null;
|
|
301
|
+
tabs?: SharedTabInput[] | null;
|
|
302
|
+
}
|
|
303
|
+
export interface LandingProductShowcaseInput {
|
|
304
|
+
id?: number;
|
|
305
|
+
title?: string | null;
|
|
306
|
+
description?: string | null;
|
|
307
|
+
name?: string | null;
|
|
308
|
+
image?: number | null;
|
|
309
|
+
features?: SharedFeatureInput[] | null;
|
|
310
|
+
}
|
|
311
|
+
export interface LandingMockupInput {
|
|
312
|
+
id?: number;
|
|
313
|
+
name?: string | null;
|
|
314
|
+
webId?: string | null;
|
|
315
|
+
}
|
|
316
|
+
export interface LandingFinishingCardInput {
|
|
317
|
+
id?: number;
|
|
318
|
+
title?: string | null;
|
|
319
|
+
description?: string | null;
|
|
320
|
+
image?: number | null;
|
|
321
|
+
}
|
|
322
|
+
export interface LandingEditorFeatureInput {
|
|
323
|
+
id?: number;
|
|
324
|
+
title?: string | null;
|
|
325
|
+
description?: string | null;
|
|
326
|
+
image?: number | null;
|
|
327
|
+
}
|
|
328
|
+
export interface LandingCarouselItemInput {
|
|
329
|
+
id?: number;
|
|
330
|
+
title?: string | null;
|
|
331
|
+
image?: number | null;
|
|
332
|
+
}
|
|
333
|
+
export interface FaqQuestionInput {
|
|
334
|
+
id?: number;
|
|
335
|
+
title?: string | null;
|
|
336
|
+
answer?: BlocksContent | null;
|
|
337
|
+
}
|
|
338
|
+
export interface FaqCategoryInput {
|
|
339
|
+
id?: number;
|
|
340
|
+
name?: string | null;
|
|
341
|
+
questions?: FaqQuestionInput[] | null;
|
|
342
|
+
}
|
|
343
|
+
export interface CategorySubcategoryInput {
|
|
344
|
+
id?: number;
|
|
345
|
+
name?: string | null;
|
|
346
|
+
items?: number[] | null;
|
|
347
|
+
}
|
|
348
|
+
export interface AiStudioSubstyleInput {
|
|
349
|
+
id?: number;
|
|
350
|
+
name?: string | null;
|
|
351
|
+
description?: string | null;
|
|
352
|
+
environmentSpecs?: string | null;
|
|
353
|
+
objectsToAdd?: string | null;
|
|
354
|
+
}
|
|
355
|
+
export interface AiStudioStyleInput {
|
|
356
|
+
id?: number;
|
|
357
|
+
name?: string | null;
|
|
358
|
+
description?: string | null;
|
|
359
|
+
subStyles?: AiStudioSubstyleInput[] | null;
|
|
360
|
+
}
|
|
361
|
+
export interface GuideGuideStepInput {
|
|
362
|
+
id?: number;
|
|
363
|
+
text?: string | null;
|
|
364
|
+
title?: string | null;
|
|
365
|
+
preview?: number | null;
|
|
366
|
+
image?: number | null;
|
|
367
|
+
}
|
|
368
|
+
export interface GuideContentInput {
|
|
369
|
+
id?: number;
|
|
370
|
+
title?: string | null;
|
|
371
|
+
description?: string | null;
|
|
372
|
+
steps?: GuideGuideStepInput[] | null;
|
|
373
|
+
}
|
|
374
|
+
export interface Permission {
|
|
375
|
+
readonly __typename?: 'Permission';
|
|
376
|
+
id: number;
|
|
377
|
+
documentId: string;
|
|
378
|
+
createdAt: string;
|
|
379
|
+
updatedAt: string;
|
|
380
|
+
action: string;
|
|
381
|
+
}
|
|
382
|
+
export interface Role {
|
|
383
|
+
readonly __typename?: 'Role';
|
|
384
|
+
id: number;
|
|
385
|
+
documentId: string;
|
|
386
|
+
createdAt: string;
|
|
387
|
+
updatedAt: string;
|
|
388
|
+
name: string;
|
|
389
|
+
description: string | null;
|
|
390
|
+
type: string | null;
|
|
391
|
+
}
|
|
392
|
+
export interface User {
|
|
393
|
+
readonly __typename?: 'User';
|
|
394
|
+
id: number;
|
|
395
|
+
documentId: string;
|
|
396
|
+
createdAt: string;
|
|
397
|
+
updatedAt: string;
|
|
398
|
+
username: string;
|
|
399
|
+
email: string;
|
|
400
|
+
provider: string | null;
|
|
401
|
+
confirmed: boolean | null;
|
|
402
|
+
blocked: boolean | null;
|
|
403
|
+
firstName: string | null;
|
|
404
|
+
lastName: string | null;
|
|
405
|
+
address: string | null;
|
|
406
|
+
city: string | null;
|
|
407
|
+
region: string | null;
|
|
408
|
+
zip: string | null;
|
|
409
|
+
country: string | null;
|
|
410
|
+
stripeCustomerId: string | null;
|
|
411
|
+
isPartner: boolean | null;
|
|
412
|
+
isAdmin: boolean | null;
|
|
413
|
+
tokenBalance: number | null;
|
|
414
|
+
}
|
|
415
|
+
export interface Access {
|
|
416
|
+
readonly __typename?: 'Access';
|
|
417
|
+
id: number;
|
|
418
|
+
documentId: string;
|
|
419
|
+
createdAt: string;
|
|
420
|
+
updatedAt: string;
|
|
421
|
+
startedAt: string | null;
|
|
422
|
+
expiresAt: string | null;
|
|
423
|
+
accessSource: 'individual' | 'team' | 'free';
|
|
424
|
+
}
|
|
425
|
+
export interface AiStudio {
|
|
426
|
+
readonly __typename?: 'AiStudio';
|
|
427
|
+
id: number;
|
|
428
|
+
documentId: string;
|
|
429
|
+
createdAt: string;
|
|
430
|
+
updatedAt: string;
|
|
431
|
+
prompt: string | null;
|
|
432
|
+
}
|
|
433
|
+
export interface Auth {
|
|
434
|
+
readonly __typename?: 'Auth';
|
|
435
|
+
id: number;
|
|
436
|
+
documentId: string;
|
|
437
|
+
createdAt: string;
|
|
438
|
+
updatedAt: string;
|
|
439
|
+
}
|
|
440
|
+
export interface Banner {
|
|
441
|
+
readonly __typename?: 'Banner';
|
|
442
|
+
id: number;
|
|
443
|
+
documentId: string;
|
|
444
|
+
createdAt: string;
|
|
445
|
+
updatedAt: string;
|
|
446
|
+
enabled: boolean;
|
|
447
|
+
href: string;
|
|
448
|
+
color: string;
|
|
449
|
+
}
|
|
450
|
+
export interface Catalog {
|
|
451
|
+
readonly __typename?: 'Catalog';
|
|
452
|
+
id: number;
|
|
453
|
+
documentId: string;
|
|
454
|
+
createdAt: string;
|
|
455
|
+
updatedAt: string;
|
|
456
|
+
}
|
|
457
|
+
export interface Category {
|
|
458
|
+
readonly __typename?: 'Category';
|
|
459
|
+
id: number;
|
|
460
|
+
documentId: string;
|
|
461
|
+
createdAt: string;
|
|
462
|
+
updatedAt: string;
|
|
463
|
+
title: string;
|
|
464
|
+
description: string | null;
|
|
465
|
+
type: string;
|
|
466
|
+
}
|
|
467
|
+
export interface Faq {
|
|
468
|
+
readonly __typename?: 'Faq';
|
|
469
|
+
id: number;
|
|
470
|
+
documentId: string;
|
|
471
|
+
createdAt: string;
|
|
472
|
+
updatedAt: string;
|
|
473
|
+
}
|
|
474
|
+
export interface Gallery {
|
|
475
|
+
readonly __typename?: 'Gallery';
|
|
476
|
+
id: number;
|
|
477
|
+
documentId: string;
|
|
478
|
+
createdAt: string;
|
|
479
|
+
updatedAt: string;
|
|
480
|
+
title: string;
|
|
481
|
+
}
|
|
482
|
+
export interface Guide {
|
|
483
|
+
readonly __typename?: 'Guide';
|
|
484
|
+
id: number;
|
|
485
|
+
documentId: string;
|
|
486
|
+
createdAt: string;
|
|
487
|
+
updatedAt: string;
|
|
488
|
+
title: string;
|
|
489
|
+
slug: string | null;
|
|
490
|
+
description: string | null;
|
|
491
|
+
}
|
|
492
|
+
export interface GuideCategory {
|
|
493
|
+
readonly __typename?: 'GuideCategory';
|
|
494
|
+
id: number;
|
|
495
|
+
documentId: string;
|
|
496
|
+
createdAt: string;
|
|
497
|
+
updatedAt: string;
|
|
498
|
+
name: string;
|
|
499
|
+
slug: string | null;
|
|
500
|
+
}
|
|
501
|
+
export interface GuidePage {
|
|
502
|
+
readonly __typename?: 'GuidePage';
|
|
503
|
+
id: number;
|
|
504
|
+
documentId: string;
|
|
505
|
+
createdAt: string;
|
|
506
|
+
updatedAt: string;
|
|
507
|
+
}
|
|
508
|
+
export interface Item {
|
|
509
|
+
readonly __typename?: 'Item';
|
|
510
|
+
id: number;
|
|
511
|
+
documentId: string;
|
|
512
|
+
createdAt: string;
|
|
513
|
+
updatedAt: string;
|
|
514
|
+
title: string;
|
|
515
|
+
description: string | null;
|
|
516
|
+
isFree: boolean | null;
|
|
517
|
+
run: number;
|
|
518
|
+
type: string;
|
|
519
|
+
subCategory: string;
|
|
520
|
+
isAvailable: boolean | null;
|
|
521
|
+
}
|
|
522
|
+
export interface Landing {
|
|
523
|
+
readonly __typename?: 'Landing';
|
|
524
|
+
id: number;
|
|
525
|
+
documentId: string;
|
|
526
|
+
createdAt: string;
|
|
527
|
+
updatedAt: string;
|
|
528
|
+
}
|
|
529
|
+
export interface Legal {
|
|
530
|
+
readonly __typename?: 'Legal';
|
|
531
|
+
id: number;
|
|
532
|
+
documentId: string;
|
|
533
|
+
createdAt: string;
|
|
534
|
+
updatedAt: string;
|
|
535
|
+
title: string;
|
|
536
|
+
slug: string | null;
|
|
537
|
+
description: BlocksContent | null;
|
|
538
|
+
}
|
|
539
|
+
export interface PartnerCommission {
|
|
540
|
+
readonly __typename?: 'PartnerCommission';
|
|
541
|
+
id: number;
|
|
542
|
+
documentId: string;
|
|
543
|
+
createdAt: string;
|
|
544
|
+
updatedAt: string;
|
|
545
|
+
amount: number | null;
|
|
546
|
+
withdrawalStatus: 'pending' | 'paid' | 'cancelled' | null;
|
|
547
|
+
commissionRate: number | null;
|
|
548
|
+
}
|
|
549
|
+
export interface PartnerProfile {
|
|
550
|
+
readonly __typename?: 'PartnerProfile';
|
|
551
|
+
id: number;
|
|
552
|
+
documentId: string;
|
|
553
|
+
createdAt: string;
|
|
554
|
+
updatedAt: string;
|
|
555
|
+
code: string | null;
|
|
556
|
+
commissionRate: number | null;
|
|
557
|
+
totalEarnings: number | null;
|
|
558
|
+
isActive: boolean | null;
|
|
559
|
+
}
|
|
560
|
+
export interface PartnerSetting {
|
|
561
|
+
readonly __typename?: 'PartnerSetting';
|
|
562
|
+
id: number;
|
|
563
|
+
documentId: string;
|
|
564
|
+
createdAt: string;
|
|
565
|
+
updatedAt: string;
|
|
566
|
+
defaultCommissionRate: number | null;
|
|
567
|
+
}
|
|
568
|
+
export interface Payment {
|
|
569
|
+
readonly __typename?: 'Payment';
|
|
570
|
+
id: number;
|
|
571
|
+
documentId: string;
|
|
572
|
+
createdAt: string;
|
|
573
|
+
updatedAt: string;
|
|
574
|
+
amount: number;
|
|
575
|
+
currency: string | null;
|
|
576
|
+
paymentProvider: 'stripe' | 'yookassa' | null;
|
|
577
|
+
externalPaymentId: string | null;
|
|
578
|
+
metadata: unknown | null;
|
|
579
|
+
}
|
|
580
|
+
export interface Plan {
|
|
581
|
+
readonly __typename?: 'Plan';
|
|
582
|
+
id: number;
|
|
583
|
+
documentId: string;
|
|
584
|
+
createdAt: string;
|
|
585
|
+
updatedAt: string;
|
|
586
|
+
title: string | null;
|
|
587
|
+
type: 'subscription' | 'onetime' | 'api' | null;
|
|
588
|
+
price: number | null;
|
|
589
|
+
duration: number | null;
|
|
590
|
+
description: BlocksContent | null;
|
|
591
|
+
mostPopular: boolean | null;
|
|
592
|
+
pos: number | null;
|
|
593
|
+
allowTeam: boolean | null;
|
|
594
|
+
seatOptions: unknown | null;
|
|
595
|
+
}
|
|
596
|
+
export interface Project {
|
|
597
|
+
readonly __typename?: 'Project';
|
|
598
|
+
id: number;
|
|
599
|
+
documentId: string;
|
|
600
|
+
createdAt: string;
|
|
601
|
+
updatedAt: string;
|
|
602
|
+
title: string;
|
|
603
|
+
modelLink: string | null;
|
|
604
|
+
imageLink: string | null;
|
|
605
|
+
data: unknown;
|
|
606
|
+
type: 'save' | 'share' | 'web';
|
|
607
|
+
}
|
|
608
|
+
export interface ProjectChat {
|
|
609
|
+
readonly __typename?: 'ProjectChat';
|
|
610
|
+
id: number;
|
|
611
|
+
documentId: string;
|
|
612
|
+
createdAt: string;
|
|
613
|
+
updatedAt: string;
|
|
614
|
+
}
|
|
615
|
+
export interface Referral {
|
|
616
|
+
readonly __typename?: 'Referral';
|
|
617
|
+
id: number;
|
|
618
|
+
documentId: string;
|
|
619
|
+
createdAt: string;
|
|
620
|
+
updatedAt: string;
|
|
621
|
+
codeUsed: string | null;
|
|
622
|
+
sourceType: 'code' | 'link' | 'share' | null;
|
|
623
|
+
isConverted: boolean | null;
|
|
624
|
+
}
|
|
625
|
+
export interface Subscription {
|
|
626
|
+
readonly __typename?: 'Subscription';
|
|
627
|
+
id: number;
|
|
628
|
+
documentId: string;
|
|
629
|
+
createdAt: string;
|
|
630
|
+
updatedAt: string;
|
|
631
|
+
subscriptionStatus: 'active' | 'canceled' | 'expired' | 'past_due';
|
|
632
|
+
paymentProvider: 'stripe' | 'yookassa';
|
|
633
|
+
externalSubscriptionId: string | null;
|
|
634
|
+
startedAt: string;
|
|
635
|
+
expiresAt: string | null;
|
|
636
|
+
subscriptionType: 'individual' | 'team';
|
|
637
|
+
maxSeats: number | null;
|
|
638
|
+
}
|
|
639
|
+
export interface Support {
|
|
640
|
+
readonly __typename?: 'Support';
|
|
641
|
+
id: number;
|
|
642
|
+
documentId: string;
|
|
643
|
+
createdAt: string;
|
|
644
|
+
updatedAt: string;
|
|
645
|
+
description: BlocksContent | null;
|
|
646
|
+
}
|
|
647
|
+
export interface SupportCategory {
|
|
648
|
+
readonly __typename?: 'SupportCategory';
|
|
649
|
+
id: number;
|
|
650
|
+
documentId: string;
|
|
651
|
+
createdAt: string;
|
|
652
|
+
updatedAt: string;
|
|
653
|
+
title: string;
|
|
654
|
+
description: string | null;
|
|
655
|
+
slug: string | null;
|
|
656
|
+
}
|
|
657
|
+
export interface SupportCenter {
|
|
658
|
+
readonly __typename?: 'SupportCenter';
|
|
659
|
+
id: number;
|
|
660
|
+
documentId: string;
|
|
661
|
+
createdAt: string;
|
|
662
|
+
updatedAt: string;
|
|
663
|
+
}
|
|
664
|
+
export interface SupportTheme {
|
|
665
|
+
readonly __typename?: 'SupportTheme';
|
|
666
|
+
id: number;
|
|
667
|
+
documentId: string;
|
|
668
|
+
createdAt: string;
|
|
669
|
+
updatedAt: string;
|
|
670
|
+
title: string | null;
|
|
671
|
+
}
|
|
672
|
+
export interface Team {
|
|
673
|
+
readonly __typename?: 'Team';
|
|
674
|
+
id: number;
|
|
675
|
+
documentId: string;
|
|
676
|
+
createdAt: string;
|
|
677
|
+
updatedAt: string;
|
|
678
|
+
name: string;
|
|
679
|
+
}
|
|
680
|
+
export interface TeamInvitation {
|
|
681
|
+
readonly __typename?: 'TeamInvitation';
|
|
682
|
+
id: number;
|
|
683
|
+
documentId: string;
|
|
684
|
+
createdAt: string;
|
|
685
|
+
updatedAt: string;
|
|
686
|
+
email: string | null;
|
|
687
|
+
invitationStatus: 'pending' | 'accepted' | 'cancelled' | null;
|
|
688
|
+
responsedAt: string | null;
|
|
689
|
+
}
|
|
690
|
+
export interface TeamMember {
|
|
691
|
+
readonly __typename?: 'TeamMember';
|
|
692
|
+
id: number;
|
|
693
|
+
documentId: string;
|
|
694
|
+
createdAt: string;
|
|
695
|
+
updatedAt: string;
|
|
696
|
+
role: 'owner' | 'member';
|
|
697
|
+
joinedAt: string;
|
|
698
|
+
}
|
|
699
|
+
export interface TokenTransaction {
|
|
700
|
+
readonly __typename?: 'TokenTransaction';
|
|
701
|
+
id: number;
|
|
702
|
+
documentId: string;
|
|
703
|
+
createdAt: string;
|
|
704
|
+
updatedAt: string;
|
|
705
|
+
type: 'purchase' | 'usage';
|
|
706
|
+
amount: number;
|
|
707
|
+
}
|
|
708
|
+
export interface UserSession {
|
|
709
|
+
readonly __typename?: 'UserSession';
|
|
710
|
+
id: number;
|
|
711
|
+
documentId: string;
|
|
712
|
+
createdAt: string;
|
|
713
|
+
updatedAt: string;
|
|
714
|
+
sessionId: string;
|
|
715
|
+
ipAddress: string | null;
|
|
716
|
+
userAgent: string | null;
|
|
717
|
+
lastActivity: string;
|
|
718
|
+
}
|
|
719
|
+
export interface Website {
|
|
720
|
+
readonly __typename?: 'Website';
|
|
721
|
+
id: number;
|
|
722
|
+
documentId: string;
|
|
723
|
+
createdAt: string;
|
|
724
|
+
updatedAt: string;
|
|
725
|
+
site: string | null;
|
|
726
|
+
paidTill: string | null;
|
|
727
|
+
token: string | null;
|
|
728
|
+
}
|
|
729
|
+
export interface PermissionInput {
|
|
730
|
+
action?: string | null;
|
|
731
|
+
role?: number | null;
|
|
732
|
+
}
|
|
733
|
+
export interface RoleInput {
|
|
734
|
+
name?: string | null;
|
|
735
|
+
description?: string | null;
|
|
736
|
+
type?: string | null;
|
|
737
|
+
permissions?: number[] | null;
|
|
738
|
+
users?: number[] | null;
|
|
739
|
+
}
|
|
740
|
+
export interface UserInput {
|
|
741
|
+
username?: string | null;
|
|
742
|
+
email?: string | null;
|
|
743
|
+
provider?: string | null;
|
|
744
|
+
confirmed?: boolean | null;
|
|
745
|
+
blocked?: boolean | null;
|
|
746
|
+
firstName?: string | null;
|
|
747
|
+
lastName?: string | null;
|
|
748
|
+
address?: string | null;
|
|
749
|
+
city?: string | null;
|
|
750
|
+
region?: string | null;
|
|
751
|
+
zip?: string | null;
|
|
752
|
+
country?: string | null;
|
|
753
|
+
stripeCustomerId?: string | null;
|
|
754
|
+
isPartner?: boolean | null;
|
|
755
|
+
isAdmin?: boolean | null;
|
|
756
|
+
tokenBalance?: number | null;
|
|
757
|
+
role?: number | null;
|
|
758
|
+
supports?: number[] | null;
|
|
759
|
+
access?: number | null;
|
|
760
|
+
session?: number | null;
|
|
761
|
+
projects?: number[] | null;
|
|
762
|
+
websites?: number[] | null;
|
|
763
|
+
referral?: number | null;
|
|
764
|
+
partner?: number | null;
|
|
765
|
+
subscriptions?: number[] | null;
|
|
766
|
+
teamMemberships?: number[] | null;
|
|
767
|
+
payments?: number[] | null;
|
|
768
|
+
tokenTransactions?: number[] | null;
|
|
769
|
+
}
|
|
770
|
+
export interface AccessInput {
|
|
771
|
+
startedAt?: string | null;
|
|
772
|
+
expiresAt?: string | null;
|
|
773
|
+
accessSource?: 'individual' | 'team' | 'free' | null;
|
|
774
|
+
user?: number | null;
|
|
775
|
+
plan?: number | null;
|
|
776
|
+
subscription?: number | null;
|
|
777
|
+
teamMembership?: number | null;
|
|
778
|
+
}
|
|
779
|
+
export interface AiStudioInput {
|
|
780
|
+
prompt?: string | null;
|
|
781
|
+
mainStyles?: AiStudioStyleInput[] | null;
|
|
782
|
+
}
|
|
783
|
+
export interface AuthInput {
|
|
784
|
+
background?: number[] | null;
|
|
785
|
+
}
|
|
786
|
+
export interface BannerInput {
|
|
787
|
+
enabled?: boolean | null;
|
|
788
|
+
href?: string | null;
|
|
789
|
+
color?: string | null;
|
|
790
|
+
image?: number | null;
|
|
791
|
+
}
|
|
792
|
+
export interface CatalogInput {
|
|
793
|
+
categories?: number[] | null;
|
|
794
|
+
}
|
|
795
|
+
export interface CategoryInput {
|
|
796
|
+
title?: string | null;
|
|
797
|
+
description?: string | null;
|
|
798
|
+
type?: string | null;
|
|
799
|
+
image?: number | null;
|
|
800
|
+
items?: number[] | null;
|
|
801
|
+
subcategories?: CategorySubcategoryInput[] | null;
|
|
802
|
+
}
|
|
803
|
+
export interface FaqInput {
|
|
804
|
+
categories?: FaqCategoryInput[] | null;
|
|
805
|
+
}
|
|
806
|
+
export interface GalleryInput {
|
|
807
|
+
title?: string | null;
|
|
808
|
+
image?: number | null;
|
|
809
|
+
category?: number | null;
|
|
810
|
+
}
|
|
811
|
+
export interface GuideInput {
|
|
812
|
+
title?: string | null;
|
|
813
|
+
slug?: string | null;
|
|
814
|
+
description?: string | null;
|
|
815
|
+
image?: number | null;
|
|
816
|
+
content?: GuideContentInput | null;
|
|
817
|
+
}
|
|
818
|
+
export interface GuideCategoryInput {
|
|
819
|
+
name?: string | null;
|
|
820
|
+
slug?: string | null;
|
|
821
|
+
guides?: number[] | null;
|
|
822
|
+
}
|
|
823
|
+
export interface GuidePageInput {
|
|
824
|
+
categories?: number[] | null;
|
|
825
|
+
}
|
|
826
|
+
export interface ItemInput {
|
|
827
|
+
title?: string | null;
|
|
828
|
+
description?: string | null;
|
|
829
|
+
isFree?: boolean | null;
|
|
830
|
+
run?: number | null;
|
|
831
|
+
type?: string | null;
|
|
832
|
+
subCategory?: string | null;
|
|
833
|
+
isAvailable?: boolean | null;
|
|
834
|
+
image?: number | null;
|
|
835
|
+
category?: number | null;
|
|
836
|
+
}
|
|
837
|
+
export interface LandingInput {
|
|
838
|
+
video?: number | null;
|
|
839
|
+
heroSlides?: number[] | null;
|
|
840
|
+
carouselItems?: number[] | null;
|
|
841
|
+
mockups?: LandingMockupInput[] | null;
|
|
842
|
+
finishingCards?: LandingFinishingCardInput[] | null;
|
|
843
|
+
productShowcases?: LandingProductShowcaseInput[] | null;
|
|
844
|
+
editorFeatures?: LandingEditorFeatureInput[] | null;
|
|
845
|
+
savePublishSection?: LandingSavePublishInput | null;
|
|
846
|
+
statistics?: LandingStatisticsInput[] | null;
|
|
847
|
+
}
|
|
848
|
+
export interface LegalInput {
|
|
849
|
+
title?: string | null;
|
|
850
|
+
slug?: string | null;
|
|
851
|
+
description?: BlocksContent | null;
|
|
852
|
+
}
|
|
853
|
+
export interface PartnerCommissionInput {
|
|
854
|
+
amount?: number | null;
|
|
855
|
+
withdrawalStatus?: 'pending' | 'paid' | 'cancelled' | null;
|
|
856
|
+
commissionRate?: number | null;
|
|
857
|
+
partner?: number | null;
|
|
858
|
+
referral?: number | null;
|
|
859
|
+
payment?: number | null;
|
|
860
|
+
}
|
|
861
|
+
export interface PartnerProfileInput {
|
|
862
|
+
code?: string | null;
|
|
863
|
+
commissionRate?: number | null;
|
|
864
|
+
totalEarnings?: number | null;
|
|
865
|
+
isActive?: boolean | null;
|
|
866
|
+
user?: number | null;
|
|
867
|
+
referrals?: number[] | null;
|
|
868
|
+
commissions?: number[] | null;
|
|
869
|
+
}
|
|
870
|
+
export interface PartnerSettingInput {
|
|
871
|
+
defaultCommissionRate?: number | null;
|
|
872
|
+
}
|
|
873
|
+
export interface PaymentInput {
|
|
874
|
+
amount?: number | null;
|
|
875
|
+
currency?: string | null;
|
|
876
|
+
paymentProvider?: 'stripe' | 'yookassa' | null;
|
|
877
|
+
externalPaymentId?: string | null;
|
|
878
|
+
metadata?: unknown | null;
|
|
879
|
+
subscription?: number | null;
|
|
880
|
+
plan?: number | null;
|
|
881
|
+
tokenTransaction?: number | null;
|
|
882
|
+
user?: number | null;
|
|
883
|
+
partnerCommissions?: number[] | null;
|
|
884
|
+
}
|
|
885
|
+
export interface PlanInput {
|
|
886
|
+
title?: string | null;
|
|
887
|
+
type?: 'subscription' | 'onetime' | 'api' | null;
|
|
888
|
+
price?: number | null;
|
|
889
|
+
duration?: number | null;
|
|
890
|
+
description?: BlocksContent | null;
|
|
891
|
+
mostPopular?: boolean | null;
|
|
892
|
+
pos?: number | null;
|
|
893
|
+
allowTeam?: boolean | null;
|
|
894
|
+
seatOptions?: unknown | null;
|
|
895
|
+
subscriptions?: number[] | null;
|
|
896
|
+
payments?: number[] | null;
|
|
897
|
+
features?: PlanFeatureInput[] | null;
|
|
898
|
+
}
|
|
899
|
+
export interface ProjectInput {
|
|
900
|
+
title?: string | null;
|
|
901
|
+
modelLink?: string | null;
|
|
902
|
+
imageLink?: string | null;
|
|
903
|
+
data?: unknown | null;
|
|
904
|
+
type?: 'save' | 'share' | 'web' | null;
|
|
905
|
+
item?: number | null;
|
|
906
|
+
user?: number | null;
|
|
907
|
+
config?: (ProjectWebConfigInput | ProjectShareConfigInput)[] | null;
|
|
908
|
+
}
|
|
909
|
+
export interface ProjectChatInput {
|
|
910
|
+
project?: number | null;
|
|
911
|
+
messages?: SharedChatInput[] | null;
|
|
912
|
+
}
|
|
913
|
+
export interface ReferralInput {
|
|
914
|
+
codeUsed?: string | null;
|
|
915
|
+
sourceType?: 'code' | 'link' | 'share' | null;
|
|
916
|
+
isConverted?: boolean | null;
|
|
917
|
+
partner?: number | null;
|
|
918
|
+
user?: number | null;
|
|
919
|
+
commissions?: number[] | null;
|
|
920
|
+
}
|
|
921
|
+
export interface SubscriptionInput {
|
|
922
|
+
subscriptionStatus?: 'active' | 'canceled' | 'expired' | 'past_due' | null;
|
|
923
|
+
paymentProvider?: 'stripe' | 'yookassa' | null;
|
|
924
|
+
externalSubscriptionId?: string | null;
|
|
925
|
+
startedAt?: string | null;
|
|
926
|
+
expiresAt?: string | null;
|
|
927
|
+
subscriptionType?: 'individual' | 'team' | null;
|
|
928
|
+
maxSeats?: number | null;
|
|
929
|
+
owner?: number | null;
|
|
930
|
+
plan?: number | null;
|
|
931
|
+
team?: number | null;
|
|
932
|
+
payments?: number[] | null;
|
|
933
|
+
accesses?: number[] | null;
|
|
934
|
+
}
|
|
935
|
+
export interface SupportInput {
|
|
936
|
+
description?: BlocksContent | null;
|
|
937
|
+
user?: number | null;
|
|
938
|
+
theme?: number | null;
|
|
939
|
+
}
|
|
940
|
+
export interface SupportCategoryInput {
|
|
941
|
+
title?: string | null;
|
|
942
|
+
description?: string | null;
|
|
943
|
+
slug?: string | null;
|
|
944
|
+
image?: number | null;
|
|
945
|
+
}
|
|
946
|
+
export interface SupportCenterInput {
|
|
947
|
+
categories?: number[] | null;
|
|
948
|
+
}
|
|
949
|
+
export interface SupportThemeInput {
|
|
950
|
+
title?: string | null;
|
|
951
|
+
supports?: number[] | null;
|
|
952
|
+
}
|
|
953
|
+
export interface TeamInput {
|
|
954
|
+
name?: string | null;
|
|
955
|
+
subscription?: number | null;
|
|
956
|
+
members?: number[] | null;
|
|
957
|
+
invitations?: number[] | null;
|
|
958
|
+
}
|
|
959
|
+
export interface TeamInvitationInput {
|
|
960
|
+
email?: string | null;
|
|
961
|
+
invitationStatus?: 'pending' | 'accepted' | 'cancelled' | null;
|
|
962
|
+
responsedAt?: string | null;
|
|
963
|
+
team?: number | null;
|
|
964
|
+
}
|
|
965
|
+
export interface TeamMemberInput {
|
|
966
|
+
role?: 'owner' | 'member' | null;
|
|
967
|
+
joinedAt?: string | null;
|
|
968
|
+
team?: number | null;
|
|
969
|
+
user?: number | null;
|
|
970
|
+
accesses?: number[] | null;
|
|
971
|
+
}
|
|
972
|
+
export interface TokenTransactionInput {
|
|
973
|
+
type?: 'purchase' | 'usage' | null;
|
|
974
|
+
amount?: number | null;
|
|
975
|
+
user?: number | null;
|
|
976
|
+
payment?: number | null;
|
|
977
|
+
}
|
|
978
|
+
export interface UserSessionInput {
|
|
979
|
+
sessionId?: string | null;
|
|
980
|
+
ipAddress?: string | null;
|
|
981
|
+
userAgent?: string | null;
|
|
982
|
+
lastActivity?: string | null;
|
|
983
|
+
user?: number | null;
|
|
984
|
+
}
|
|
985
|
+
export interface WebsiteInput {
|
|
986
|
+
site?: string | null;
|
|
987
|
+
paidTill?: string | null;
|
|
988
|
+
token?: string | null;
|
|
989
|
+
user?: number | null;
|
|
990
|
+
}
|
|
991
|
+
export type SharedTabPopulateParam = {
|
|
992
|
+
image?: true | {
|
|
993
|
+
fields?: (keyof MediaFile & string)[];
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
export type LandingSavePublishPopulateParam = {
|
|
997
|
+
features?: true | {
|
|
998
|
+
fields?: (keyof SharedFeature & string)[];
|
|
999
|
+
};
|
|
1000
|
+
tabs?: true | {
|
|
1001
|
+
fields?: (keyof SharedTab & string)[];
|
|
1002
|
+
populate?: SharedTabPopulateParam | (keyof SharedTabPopulateParam & string)[] | '*';
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
export type LandingProductShowcasePopulateParam = {
|
|
1006
|
+
image?: true | {
|
|
1007
|
+
fields?: (keyof MediaFile & string)[];
|
|
1008
|
+
};
|
|
1009
|
+
features?: true | {
|
|
1010
|
+
fields?: (keyof SharedFeature & string)[];
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
export type LandingFinishingCardPopulateParam = {
|
|
1014
|
+
image?: true | {
|
|
1015
|
+
fields?: (keyof MediaFile & string)[];
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
export type LandingEditorFeaturePopulateParam = {
|
|
1019
|
+
image?: true | {
|
|
1020
|
+
fields?: (keyof MediaFile & string)[];
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
export type LandingCarouselItemPopulateParam = {
|
|
1024
|
+
image?: true | {
|
|
1025
|
+
fields?: (keyof MediaFile & string)[];
|
|
1026
|
+
};
|
|
1027
|
+
};
|
|
1028
|
+
export type FaqCategoryPopulateParam = {
|
|
1029
|
+
questions?: true | {
|
|
1030
|
+
fields?: (keyof FaqQuestion & string)[];
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
export type CategorySubcategoryPopulateParam = {
|
|
1034
|
+
items?: true | {
|
|
1035
|
+
fields?: _EntityField<Item>[];
|
|
1036
|
+
populate?: ItemPopulateParam | (keyof ItemPopulateParam & string)[] | '*';
|
|
1037
|
+
filters?: ItemFilters;
|
|
1038
|
+
sort?: _SortValue<Item> | _SortValue<Item>[];
|
|
1039
|
+
limit?: number;
|
|
1040
|
+
start?: number;
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
export type AiStudioStylePopulateParam = {
|
|
1044
|
+
subStyles?: true | {
|
|
1045
|
+
fields?: (keyof AiStudioSubstyle & string)[];
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
export type GuideGuideStepPopulateParam = {
|
|
1049
|
+
preview?: true | {
|
|
1050
|
+
fields?: (keyof MediaFile & string)[];
|
|
1051
|
+
};
|
|
1052
|
+
image?: true | {
|
|
1053
|
+
fields?: (keyof MediaFile & string)[];
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
export type GuideContentPopulateParam = {
|
|
1057
|
+
steps?: true | {
|
|
1058
|
+
fields?: (keyof GuideGuideStep & string)[];
|
|
1059
|
+
populate?: GuideGuideStepPopulateParam | (keyof GuideGuideStepPopulateParam & string)[] | '*';
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
export type PermissionPopulateParam = {
|
|
1063
|
+
role?: true | {
|
|
1064
|
+
fields?: _EntityField<Role>[];
|
|
1065
|
+
populate?: RolePopulateParam | (keyof RolePopulateParam & string)[] | '*';
|
|
1066
|
+
filters?: RoleFilters;
|
|
1067
|
+
sort?: _SortValue<Role> | _SortValue<Role>[];
|
|
1068
|
+
limit?: number;
|
|
1069
|
+
start?: number;
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
1072
|
+
export type RolePopulateParam = {
|
|
1073
|
+
permissions?: true | {
|
|
1074
|
+
fields?: _EntityField<Permission>[];
|
|
1075
|
+
populate?: PermissionPopulateParam | (keyof PermissionPopulateParam & string)[] | '*';
|
|
1076
|
+
filters?: PermissionFilters;
|
|
1077
|
+
sort?: _SortValue<Permission> | _SortValue<Permission>[];
|
|
1078
|
+
limit?: number;
|
|
1079
|
+
start?: number;
|
|
1080
|
+
};
|
|
1081
|
+
users?: true | {
|
|
1082
|
+
fields?: _EntityField<User>[];
|
|
1083
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1084
|
+
filters?: UserFilters;
|
|
1085
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1086
|
+
limit?: number;
|
|
1087
|
+
start?: number;
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
export type UserPopulateParam = {
|
|
1091
|
+
role?: true | {
|
|
1092
|
+
fields?: _EntityField<Role>[];
|
|
1093
|
+
populate?: RolePopulateParam | (keyof RolePopulateParam & string)[] | '*';
|
|
1094
|
+
filters?: RoleFilters;
|
|
1095
|
+
sort?: _SortValue<Role> | _SortValue<Role>[];
|
|
1096
|
+
limit?: number;
|
|
1097
|
+
start?: number;
|
|
1098
|
+
};
|
|
1099
|
+
supports?: true | {
|
|
1100
|
+
fields?: _EntityField<Support>[];
|
|
1101
|
+
populate?: SupportPopulateParam | (keyof SupportPopulateParam & string)[] | '*';
|
|
1102
|
+
filters?: SupportFilters;
|
|
1103
|
+
sort?: _SortValue<Support> | _SortValue<Support>[];
|
|
1104
|
+
limit?: number;
|
|
1105
|
+
start?: number;
|
|
1106
|
+
};
|
|
1107
|
+
access?: true | {
|
|
1108
|
+
fields?: _EntityField<Access>[];
|
|
1109
|
+
populate?: AccessPopulateParam | (keyof AccessPopulateParam & string)[] | '*';
|
|
1110
|
+
filters?: AccessFilters;
|
|
1111
|
+
sort?: _SortValue<Access> | _SortValue<Access>[];
|
|
1112
|
+
limit?: number;
|
|
1113
|
+
start?: number;
|
|
1114
|
+
};
|
|
1115
|
+
session?: true | {
|
|
1116
|
+
fields?: _EntityField<UserSession>[];
|
|
1117
|
+
populate?: UserSessionPopulateParam | (keyof UserSessionPopulateParam & string)[] | '*';
|
|
1118
|
+
filters?: UserSessionFilters;
|
|
1119
|
+
sort?: _SortValue<UserSession> | _SortValue<UserSession>[];
|
|
1120
|
+
limit?: number;
|
|
1121
|
+
start?: number;
|
|
1122
|
+
};
|
|
1123
|
+
projects?: true | {
|
|
1124
|
+
fields?: _EntityField<Project>[];
|
|
1125
|
+
populate?: ProjectPopulateParam | (keyof ProjectPopulateParam & string)[] | '*';
|
|
1126
|
+
filters?: ProjectFilters;
|
|
1127
|
+
sort?: _SortValue<Project> | _SortValue<Project>[];
|
|
1128
|
+
limit?: number;
|
|
1129
|
+
start?: number;
|
|
1130
|
+
};
|
|
1131
|
+
websites?: true | {
|
|
1132
|
+
fields?: _EntityField<Website>[];
|
|
1133
|
+
populate?: WebsitePopulateParam | (keyof WebsitePopulateParam & string)[] | '*';
|
|
1134
|
+
filters?: WebsiteFilters;
|
|
1135
|
+
sort?: _SortValue<Website> | _SortValue<Website>[];
|
|
1136
|
+
limit?: number;
|
|
1137
|
+
start?: number;
|
|
1138
|
+
};
|
|
1139
|
+
referral?: true | {
|
|
1140
|
+
fields?: _EntityField<Referral>[];
|
|
1141
|
+
populate?: ReferralPopulateParam | (keyof ReferralPopulateParam & string)[] | '*';
|
|
1142
|
+
filters?: ReferralFilters;
|
|
1143
|
+
sort?: _SortValue<Referral> | _SortValue<Referral>[];
|
|
1144
|
+
limit?: number;
|
|
1145
|
+
start?: number;
|
|
1146
|
+
};
|
|
1147
|
+
partner?: true | {
|
|
1148
|
+
fields?: _EntityField<PartnerProfile>[];
|
|
1149
|
+
populate?: PartnerProfilePopulateParam | (keyof PartnerProfilePopulateParam & string)[] | '*';
|
|
1150
|
+
filters?: PartnerProfileFilters;
|
|
1151
|
+
sort?: _SortValue<PartnerProfile> | _SortValue<PartnerProfile>[];
|
|
1152
|
+
limit?: number;
|
|
1153
|
+
start?: number;
|
|
1154
|
+
};
|
|
1155
|
+
subscriptions?: true | {
|
|
1156
|
+
fields?: _EntityField<Subscription>[];
|
|
1157
|
+
populate?: SubscriptionPopulateParam | (keyof SubscriptionPopulateParam & string)[] | '*';
|
|
1158
|
+
filters?: SubscriptionFilters;
|
|
1159
|
+
sort?: _SortValue<Subscription> | _SortValue<Subscription>[];
|
|
1160
|
+
limit?: number;
|
|
1161
|
+
start?: number;
|
|
1162
|
+
};
|
|
1163
|
+
teamMemberships?: true | {
|
|
1164
|
+
fields?: _EntityField<TeamMember>[];
|
|
1165
|
+
populate?: TeamMemberPopulateParam | (keyof TeamMemberPopulateParam & string)[] | '*';
|
|
1166
|
+
filters?: TeamMemberFilters;
|
|
1167
|
+
sort?: _SortValue<TeamMember> | _SortValue<TeamMember>[];
|
|
1168
|
+
limit?: number;
|
|
1169
|
+
start?: number;
|
|
1170
|
+
};
|
|
1171
|
+
payments?: true | {
|
|
1172
|
+
fields?: _EntityField<Payment>[];
|
|
1173
|
+
populate?: PaymentPopulateParam | (keyof PaymentPopulateParam & string)[] | '*';
|
|
1174
|
+
filters?: PaymentFilters;
|
|
1175
|
+
sort?: _SortValue<Payment> | _SortValue<Payment>[];
|
|
1176
|
+
limit?: number;
|
|
1177
|
+
start?: number;
|
|
1178
|
+
};
|
|
1179
|
+
tokenTransactions?: true | {
|
|
1180
|
+
fields?: _EntityField<TokenTransaction>[];
|
|
1181
|
+
populate?: TokenTransactionPopulateParam | (keyof TokenTransactionPopulateParam & string)[] | '*';
|
|
1182
|
+
filters?: TokenTransactionFilters;
|
|
1183
|
+
sort?: _SortValue<TokenTransaction> | _SortValue<TokenTransaction>[];
|
|
1184
|
+
limit?: number;
|
|
1185
|
+
start?: number;
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1188
|
+
export type AccessPopulateParam = {
|
|
1189
|
+
user?: true | {
|
|
1190
|
+
fields?: _EntityField<User>[];
|
|
1191
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1192
|
+
filters?: UserFilters;
|
|
1193
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1194
|
+
limit?: number;
|
|
1195
|
+
start?: number;
|
|
1196
|
+
};
|
|
1197
|
+
plan?: true | {
|
|
1198
|
+
fields?: _EntityField<Plan>[];
|
|
1199
|
+
populate?: PlanPopulateParam | (keyof PlanPopulateParam & string)[] | '*';
|
|
1200
|
+
filters?: PlanFilters;
|
|
1201
|
+
sort?: _SortValue<Plan> | _SortValue<Plan>[];
|
|
1202
|
+
limit?: number;
|
|
1203
|
+
start?: number;
|
|
1204
|
+
};
|
|
1205
|
+
subscription?: true | {
|
|
1206
|
+
fields?: _EntityField<Subscription>[];
|
|
1207
|
+
populate?: SubscriptionPopulateParam | (keyof SubscriptionPopulateParam & string)[] | '*';
|
|
1208
|
+
filters?: SubscriptionFilters;
|
|
1209
|
+
sort?: _SortValue<Subscription> | _SortValue<Subscription>[];
|
|
1210
|
+
limit?: number;
|
|
1211
|
+
start?: number;
|
|
1212
|
+
};
|
|
1213
|
+
teamMembership?: true | {
|
|
1214
|
+
fields?: _EntityField<TeamMember>[];
|
|
1215
|
+
populate?: TeamMemberPopulateParam | (keyof TeamMemberPopulateParam & string)[] | '*';
|
|
1216
|
+
filters?: TeamMemberFilters;
|
|
1217
|
+
sort?: _SortValue<TeamMember> | _SortValue<TeamMember>[];
|
|
1218
|
+
limit?: number;
|
|
1219
|
+
start?: number;
|
|
1220
|
+
};
|
|
1221
|
+
};
|
|
1222
|
+
export type AiStudioPopulateParam = {
|
|
1223
|
+
mainStyles?: true | {
|
|
1224
|
+
fields?: (keyof AiStudioStyle & string)[];
|
|
1225
|
+
populate?: AiStudioStylePopulateParam | (keyof AiStudioStylePopulateParam & string)[] | '*';
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
export type AuthPopulateParam = {
|
|
1229
|
+
background?: true | {
|
|
1230
|
+
fields?: (keyof MediaFile & string)[];
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
export type BannerPopulateParam = {
|
|
1234
|
+
image?: true | {
|
|
1235
|
+
fields?: (keyof MediaFile & string)[];
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
export type CatalogPopulateParam = {
|
|
1239
|
+
categories?: true | {
|
|
1240
|
+
fields?: _EntityField<Category>[];
|
|
1241
|
+
populate?: CategoryPopulateParam | (keyof CategoryPopulateParam & string)[] | '*';
|
|
1242
|
+
filters?: CategoryFilters;
|
|
1243
|
+
sort?: _SortValue<Category> | _SortValue<Category>[];
|
|
1244
|
+
limit?: number;
|
|
1245
|
+
start?: number;
|
|
1246
|
+
};
|
|
1247
|
+
};
|
|
1248
|
+
export type CategoryPopulateParam = {
|
|
1249
|
+
items?: true | {
|
|
1250
|
+
fields?: _EntityField<Item>[];
|
|
1251
|
+
populate?: ItemPopulateParam | (keyof ItemPopulateParam & string)[] | '*';
|
|
1252
|
+
filters?: ItemFilters;
|
|
1253
|
+
sort?: _SortValue<Item> | _SortValue<Item>[];
|
|
1254
|
+
limit?: number;
|
|
1255
|
+
start?: number;
|
|
1256
|
+
};
|
|
1257
|
+
image?: true | {
|
|
1258
|
+
fields?: (keyof MediaFile & string)[];
|
|
1259
|
+
};
|
|
1260
|
+
subcategories?: true | {
|
|
1261
|
+
fields?: (keyof CategorySubcategory & string)[];
|
|
1262
|
+
populate?: CategorySubcategoryPopulateParam | (keyof CategorySubcategoryPopulateParam & string)[] | '*';
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
export type FaqPopulateParam = {
|
|
1266
|
+
categories?: true | {
|
|
1267
|
+
fields?: (keyof FaqCategory & string)[];
|
|
1268
|
+
populate?: FaqCategoryPopulateParam | (keyof FaqCategoryPopulateParam & string)[] | '*';
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
export type GalleryPopulateParam = {
|
|
1272
|
+
category?: true | {
|
|
1273
|
+
fields?: _EntityField<Category>[];
|
|
1274
|
+
populate?: CategoryPopulateParam | (keyof CategoryPopulateParam & string)[] | '*';
|
|
1275
|
+
filters?: CategoryFilters;
|
|
1276
|
+
sort?: _SortValue<Category> | _SortValue<Category>[];
|
|
1277
|
+
limit?: number;
|
|
1278
|
+
start?: number;
|
|
1279
|
+
};
|
|
1280
|
+
image?: true | {
|
|
1281
|
+
fields?: (keyof MediaFile & string)[];
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
export type GuidePopulateParam = {
|
|
1285
|
+
image?: true | {
|
|
1286
|
+
fields?: (keyof MediaFile & string)[];
|
|
1287
|
+
};
|
|
1288
|
+
content?: true | {
|
|
1289
|
+
fields?: (keyof GuideContent & string)[];
|
|
1290
|
+
populate?: GuideContentPopulateParam | (keyof GuideContentPopulateParam & string)[] | '*';
|
|
1291
|
+
};
|
|
1292
|
+
};
|
|
1293
|
+
export type GuideCategoryPopulateParam = {
|
|
1294
|
+
guides?: true | {
|
|
1295
|
+
fields?: _EntityField<Guide>[];
|
|
1296
|
+
populate?: GuidePopulateParam | (keyof GuidePopulateParam & string)[] | '*';
|
|
1297
|
+
filters?: GuideFilters;
|
|
1298
|
+
sort?: _SortValue<Guide> | _SortValue<Guide>[];
|
|
1299
|
+
limit?: number;
|
|
1300
|
+
start?: number;
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
export type GuidePagePopulateParam = {
|
|
1304
|
+
categories?: true | {
|
|
1305
|
+
fields?: _EntityField<GuideCategory>[];
|
|
1306
|
+
populate?: GuideCategoryPopulateParam | (keyof GuideCategoryPopulateParam & string)[] | '*';
|
|
1307
|
+
filters?: GuideCategoryFilters;
|
|
1308
|
+
sort?: _SortValue<GuideCategory> | _SortValue<GuideCategory>[];
|
|
1309
|
+
limit?: number;
|
|
1310
|
+
start?: number;
|
|
1311
|
+
};
|
|
1312
|
+
};
|
|
1313
|
+
export type ItemPopulateParam = {
|
|
1314
|
+
category?: true | {
|
|
1315
|
+
fields?: _EntityField<Category>[];
|
|
1316
|
+
populate?: CategoryPopulateParam | (keyof CategoryPopulateParam & string)[] | '*';
|
|
1317
|
+
filters?: CategoryFilters;
|
|
1318
|
+
sort?: _SortValue<Category> | _SortValue<Category>[];
|
|
1319
|
+
limit?: number;
|
|
1320
|
+
start?: number;
|
|
1321
|
+
};
|
|
1322
|
+
image?: true | {
|
|
1323
|
+
fields?: (keyof MediaFile & string)[];
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
export type LandingPopulateParam = {
|
|
1327
|
+
video?: true | {
|
|
1328
|
+
fields?: (keyof MediaFile & string)[];
|
|
1329
|
+
};
|
|
1330
|
+
heroSlides?: true | {
|
|
1331
|
+
fields?: (keyof MediaFile & string)[];
|
|
1332
|
+
};
|
|
1333
|
+
carouselItems?: true | {
|
|
1334
|
+
fields?: (keyof MediaFile & string)[];
|
|
1335
|
+
};
|
|
1336
|
+
mockups?: true | {
|
|
1337
|
+
fields?: (keyof LandingMockup & string)[];
|
|
1338
|
+
};
|
|
1339
|
+
finishingCards?: true | {
|
|
1340
|
+
fields?: (keyof LandingFinishingCard & string)[];
|
|
1341
|
+
populate?: LandingFinishingCardPopulateParam | (keyof LandingFinishingCardPopulateParam & string)[] | '*';
|
|
1342
|
+
};
|
|
1343
|
+
productShowcases?: true | {
|
|
1344
|
+
fields?: (keyof LandingProductShowcase & string)[];
|
|
1345
|
+
populate?: LandingProductShowcasePopulateParam | (keyof LandingProductShowcasePopulateParam & string)[] | '*';
|
|
1346
|
+
};
|
|
1347
|
+
editorFeatures?: true | {
|
|
1348
|
+
fields?: (keyof LandingEditorFeature & string)[];
|
|
1349
|
+
populate?: LandingEditorFeaturePopulateParam | (keyof LandingEditorFeaturePopulateParam & string)[] | '*';
|
|
1350
|
+
};
|
|
1351
|
+
savePublishSection?: true | {
|
|
1352
|
+
fields?: (keyof LandingSavePublish & string)[];
|
|
1353
|
+
populate?: LandingSavePublishPopulateParam | (keyof LandingSavePublishPopulateParam & string)[] | '*';
|
|
1354
|
+
};
|
|
1355
|
+
statistics?: true | {
|
|
1356
|
+
fields?: (keyof LandingStatistics & string)[];
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
export type PartnerCommissionPopulateParam = {
|
|
1360
|
+
partner?: true | {
|
|
1361
|
+
fields?: _EntityField<PartnerProfile>[];
|
|
1362
|
+
populate?: PartnerProfilePopulateParam | (keyof PartnerProfilePopulateParam & string)[] | '*';
|
|
1363
|
+
filters?: PartnerProfileFilters;
|
|
1364
|
+
sort?: _SortValue<PartnerProfile> | _SortValue<PartnerProfile>[];
|
|
1365
|
+
limit?: number;
|
|
1366
|
+
start?: number;
|
|
1367
|
+
};
|
|
1368
|
+
referral?: true | {
|
|
1369
|
+
fields?: _EntityField<Referral>[];
|
|
1370
|
+
populate?: ReferralPopulateParam | (keyof ReferralPopulateParam & string)[] | '*';
|
|
1371
|
+
filters?: ReferralFilters;
|
|
1372
|
+
sort?: _SortValue<Referral> | _SortValue<Referral>[];
|
|
1373
|
+
limit?: number;
|
|
1374
|
+
start?: number;
|
|
1375
|
+
};
|
|
1376
|
+
payment?: true | {
|
|
1377
|
+
fields?: _EntityField<Payment>[];
|
|
1378
|
+
populate?: PaymentPopulateParam | (keyof PaymentPopulateParam & string)[] | '*';
|
|
1379
|
+
filters?: PaymentFilters;
|
|
1380
|
+
sort?: _SortValue<Payment> | _SortValue<Payment>[];
|
|
1381
|
+
limit?: number;
|
|
1382
|
+
start?: number;
|
|
1383
|
+
};
|
|
1384
|
+
};
|
|
1385
|
+
export type PartnerProfilePopulateParam = {
|
|
1386
|
+
user?: true | {
|
|
1387
|
+
fields?: _EntityField<User>[];
|
|
1388
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1389
|
+
filters?: UserFilters;
|
|
1390
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1391
|
+
limit?: number;
|
|
1392
|
+
start?: number;
|
|
1393
|
+
};
|
|
1394
|
+
referrals?: true | {
|
|
1395
|
+
fields?: _EntityField<Referral>[];
|
|
1396
|
+
populate?: ReferralPopulateParam | (keyof ReferralPopulateParam & string)[] | '*';
|
|
1397
|
+
filters?: ReferralFilters;
|
|
1398
|
+
sort?: _SortValue<Referral> | _SortValue<Referral>[];
|
|
1399
|
+
limit?: number;
|
|
1400
|
+
start?: number;
|
|
1401
|
+
};
|
|
1402
|
+
commissions?: true | {
|
|
1403
|
+
fields?: _EntityField<PartnerCommission>[];
|
|
1404
|
+
populate?: PartnerCommissionPopulateParam | (keyof PartnerCommissionPopulateParam & string)[] | '*';
|
|
1405
|
+
filters?: PartnerCommissionFilters;
|
|
1406
|
+
sort?: _SortValue<PartnerCommission> | _SortValue<PartnerCommission>[];
|
|
1407
|
+
limit?: number;
|
|
1408
|
+
start?: number;
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
export type PaymentPopulateParam = {
|
|
1412
|
+
subscription?: true | {
|
|
1413
|
+
fields?: _EntityField<Subscription>[];
|
|
1414
|
+
populate?: SubscriptionPopulateParam | (keyof SubscriptionPopulateParam & string)[] | '*';
|
|
1415
|
+
filters?: SubscriptionFilters;
|
|
1416
|
+
sort?: _SortValue<Subscription> | _SortValue<Subscription>[];
|
|
1417
|
+
limit?: number;
|
|
1418
|
+
start?: number;
|
|
1419
|
+
};
|
|
1420
|
+
plan?: true | {
|
|
1421
|
+
fields?: _EntityField<Plan>[];
|
|
1422
|
+
populate?: PlanPopulateParam | (keyof PlanPopulateParam & string)[] | '*';
|
|
1423
|
+
filters?: PlanFilters;
|
|
1424
|
+
sort?: _SortValue<Plan> | _SortValue<Plan>[];
|
|
1425
|
+
limit?: number;
|
|
1426
|
+
start?: number;
|
|
1427
|
+
};
|
|
1428
|
+
tokenTransaction?: true | {
|
|
1429
|
+
fields?: _EntityField<TokenTransaction>[];
|
|
1430
|
+
populate?: TokenTransactionPopulateParam | (keyof TokenTransactionPopulateParam & string)[] | '*';
|
|
1431
|
+
filters?: TokenTransactionFilters;
|
|
1432
|
+
sort?: _SortValue<TokenTransaction> | _SortValue<TokenTransaction>[];
|
|
1433
|
+
limit?: number;
|
|
1434
|
+
start?: number;
|
|
1435
|
+
};
|
|
1436
|
+
user?: true | {
|
|
1437
|
+
fields?: _EntityField<User>[];
|
|
1438
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1439
|
+
filters?: UserFilters;
|
|
1440
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1441
|
+
limit?: number;
|
|
1442
|
+
start?: number;
|
|
1443
|
+
};
|
|
1444
|
+
partnerCommissions?: true | {
|
|
1445
|
+
fields?: _EntityField<PartnerCommission>[];
|
|
1446
|
+
populate?: PartnerCommissionPopulateParam | (keyof PartnerCommissionPopulateParam & string)[] | '*';
|
|
1447
|
+
filters?: PartnerCommissionFilters;
|
|
1448
|
+
sort?: _SortValue<PartnerCommission> | _SortValue<PartnerCommission>[];
|
|
1449
|
+
limit?: number;
|
|
1450
|
+
start?: number;
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
export type PlanPopulateParam = {
|
|
1454
|
+
subscriptions?: true | {
|
|
1455
|
+
fields?: _EntityField<Subscription>[];
|
|
1456
|
+
populate?: SubscriptionPopulateParam | (keyof SubscriptionPopulateParam & string)[] | '*';
|
|
1457
|
+
filters?: SubscriptionFilters;
|
|
1458
|
+
sort?: _SortValue<Subscription> | _SortValue<Subscription>[];
|
|
1459
|
+
limit?: number;
|
|
1460
|
+
start?: number;
|
|
1461
|
+
};
|
|
1462
|
+
payments?: true | {
|
|
1463
|
+
fields?: _EntityField<Payment>[];
|
|
1464
|
+
populate?: PaymentPopulateParam | (keyof PaymentPopulateParam & string)[] | '*';
|
|
1465
|
+
filters?: PaymentFilters;
|
|
1466
|
+
sort?: _SortValue<Payment> | _SortValue<Payment>[];
|
|
1467
|
+
limit?: number;
|
|
1468
|
+
start?: number;
|
|
1469
|
+
};
|
|
1470
|
+
features?: true | {
|
|
1471
|
+
fields?: (keyof PlanFeature & string)[];
|
|
1472
|
+
};
|
|
1473
|
+
};
|
|
1474
|
+
export type ProjectPopulateParam = {
|
|
1475
|
+
item?: true | {
|
|
1476
|
+
fields?: _EntityField<Item>[];
|
|
1477
|
+
populate?: ItemPopulateParam | (keyof ItemPopulateParam & string)[] | '*';
|
|
1478
|
+
filters?: ItemFilters;
|
|
1479
|
+
sort?: _SortValue<Item> | _SortValue<Item>[];
|
|
1480
|
+
limit?: number;
|
|
1481
|
+
start?: number;
|
|
1482
|
+
};
|
|
1483
|
+
user?: true | {
|
|
1484
|
+
fields?: _EntityField<User>[];
|
|
1485
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1486
|
+
filters?: UserFilters;
|
|
1487
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1488
|
+
limit?: number;
|
|
1489
|
+
start?: number;
|
|
1490
|
+
};
|
|
1491
|
+
config?: true | {
|
|
1492
|
+
on?: {
|
|
1493
|
+
'project.web-config'?: true | {
|
|
1494
|
+
fields?: (keyof ProjectWebConfig & string)[];
|
|
1495
|
+
};
|
|
1496
|
+
'project.share-config'?: true | {
|
|
1497
|
+
fields?: (keyof ProjectShareConfig & string)[];
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1501
|
+
};
|
|
1502
|
+
export type ProjectChatPopulateParam = {
|
|
1503
|
+
project?: true | {
|
|
1504
|
+
fields?: _EntityField<Project>[];
|
|
1505
|
+
populate?: ProjectPopulateParam | (keyof ProjectPopulateParam & string)[] | '*';
|
|
1506
|
+
filters?: ProjectFilters;
|
|
1507
|
+
sort?: _SortValue<Project> | _SortValue<Project>[];
|
|
1508
|
+
limit?: number;
|
|
1509
|
+
start?: number;
|
|
1510
|
+
};
|
|
1511
|
+
messages?: true | {
|
|
1512
|
+
fields?: (keyof SharedChat & string)[];
|
|
1513
|
+
};
|
|
1514
|
+
};
|
|
1515
|
+
export type ReferralPopulateParam = {
|
|
1516
|
+
partner?: true | {
|
|
1517
|
+
fields?: _EntityField<PartnerProfile>[];
|
|
1518
|
+
populate?: PartnerProfilePopulateParam | (keyof PartnerProfilePopulateParam & string)[] | '*';
|
|
1519
|
+
filters?: PartnerProfileFilters;
|
|
1520
|
+
sort?: _SortValue<PartnerProfile> | _SortValue<PartnerProfile>[];
|
|
1521
|
+
limit?: number;
|
|
1522
|
+
start?: number;
|
|
1523
|
+
};
|
|
1524
|
+
user?: true | {
|
|
1525
|
+
fields?: _EntityField<User>[];
|
|
1526
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1527
|
+
filters?: UserFilters;
|
|
1528
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1529
|
+
limit?: number;
|
|
1530
|
+
start?: number;
|
|
1531
|
+
};
|
|
1532
|
+
commissions?: true | {
|
|
1533
|
+
fields?: _EntityField<PartnerCommission>[];
|
|
1534
|
+
populate?: PartnerCommissionPopulateParam | (keyof PartnerCommissionPopulateParam & string)[] | '*';
|
|
1535
|
+
filters?: PartnerCommissionFilters;
|
|
1536
|
+
sort?: _SortValue<PartnerCommission> | _SortValue<PartnerCommission>[];
|
|
1537
|
+
limit?: number;
|
|
1538
|
+
start?: number;
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
export type SubscriptionPopulateParam = {
|
|
1542
|
+
owner?: true | {
|
|
1543
|
+
fields?: _EntityField<User>[];
|
|
1544
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1545
|
+
filters?: UserFilters;
|
|
1546
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1547
|
+
limit?: number;
|
|
1548
|
+
start?: number;
|
|
1549
|
+
};
|
|
1550
|
+
plan?: true | {
|
|
1551
|
+
fields?: _EntityField<Plan>[];
|
|
1552
|
+
populate?: PlanPopulateParam | (keyof PlanPopulateParam & string)[] | '*';
|
|
1553
|
+
filters?: PlanFilters;
|
|
1554
|
+
sort?: _SortValue<Plan> | _SortValue<Plan>[];
|
|
1555
|
+
limit?: number;
|
|
1556
|
+
start?: number;
|
|
1557
|
+
};
|
|
1558
|
+
team?: true | {
|
|
1559
|
+
fields?: _EntityField<Team>[];
|
|
1560
|
+
populate?: TeamPopulateParam | (keyof TeamPopulateParam & string)[] | '*';
|
|
1561
|
+
filters?: TeamFilters;
|
|
1562
|
+
sort?: _SortValue<Team> | _SortValue<Team>[];
|
|
1563
|
+
limit?: number;
|
|
1564
|
+
start?: number;
|
|
1565
|
+
};
|
|
1566
|
+
payments?: true | {
|
|
1567
|
+
fields?: _EntityField<Payment>[];
|
|
1568
|
+
populate?: PaymentPopulateParam | (keyof PaymentPopulateParam & string)[] | '*';
|
|
1569
|
+
filters?: PaymentFilters;
|
|
1570
|
+
sort?: _SortValue<Payment> | _SortValue<Payment>[];
|
|
1571
|
+
limit?: number;
|
|
1572
|
+
start?: number;
|
|
1573
|
+
};
|
|
1574
|
+
accesses?: true | {
|
|
1575
|
+
fields?: _EntityField<Access>[];
|
|
1576
|
+
populate?: AccessPopulateParam | (keyof AccessPopulateParam & string)[] | '*';
|
|
1577
|
+
filters?: AccessFilters;
|
|
1578
|
+
sort?: _SortValue<Access> | _SortValue<Access>[];
|
|
1579
|
+
limit?: number;
|
|
1580
|
+
start?: number;
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
export type SupportPopulateParam = {
|
|
1584
|
+
user?: true | {
|
|
1585
|
+
fields?: _EntityField<User>[];
|
|
1586
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1587
|
+
filters?: UserFilters;
|
|
1588
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1589
|
+
limit?: number;
|
|
1590
|
+
start?: number;
|
|
1591
|
+
};
|
|
1592
|
+
theme?: true | {
|
|
1593
|
+
fields?: _EntityField<SupportTheme>[];
|
|
1594
|
+
populate?: SupportThemePopulateParam | (keyof SupportThemePopulateParam & string)[] | '*';
|
|
1595
|
+
filters?: SupportThemeFilters;
|
|
1596
|
+
sort?: _SortValue<SupportTheme> | _SortValue<SupportTheme>[];
|
|
1597
|
+
limit?: number;
|
|
1598
|
+
start?: number;
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1601
|
+
export type SupportCategoryPopulateParam = {
|
|
1602
|
+
image?: true | {
|
|
1603
|
+
fields?: (keyof MediaFile & string)[];
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
export type SupportCenterPopulateParam = {
|
|
1607
|
+
categories?: true | {
|
|
1608
|
+
fields?: _EntityField<SupportCategory>[];
|
|
1609
|
+
populate?: SupportCategoryPopulateParam | (keyof SupportCategoryPopulateParam & string)[] | '*';
|
|
1610
|
+
filters?: SupportCategoryFilters;
|
|
1611
|
+
sort?: _SortValue<SupportCategory> | _SortValue<SupportCategory>[];
|
|
1612
|
+
limit?: number;
|
|
1613
|
+
start?: number;
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
export type SupportThemePopulateParam = {
|
|
1617
|
+
supports?: true | {
|
|
1618
|
+
fields?: _EntityField<Support>[];
|
|
1619
|
+
populate?: SupportPopulateParam | (keyof SupportPopulateParam & string)[] | '*';
|
|
1620
|
+
filters?: SupportFilters;
|
|
1621
|
+
sort?: _SortValue<Support> | _SortValue<Support>[];
|
|
1622
|
+
limit?: number;
|
|
1623
|
+
start?: number;
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
export type TeamPopulateParam = {
|
|
1627
|
+
subscription?: true | {
|
|
1628
|
+
fields?: _EntityField<Subscription>[];
|
|
1629
|
+
populate?: SubscriptionPopulateParam | (keyof SubscriptionPopulateParam & string)[] | '*';
|
|
1630
|
+
filters?: SubscriptionFilters;
|
|
1631
|
+
sort?: _SortValue<Subscription> | _SortValue<Subscription>[];
|
|
1632
|
+
limit?: number;
|
|
1633
|
+
start?: number;
|
|
1634
|
+
};
|
|
1635
|
+
members?: true | {
|
|
1636
|
+
fields?: _EntityField<TeamMember>[];
|
|
1637
|
+
populate?: TeamMemberPopulateParam | (keyof TeamMemberPopulateParam & string)[] | '*';
|
|
1638
|
+
filters?: TeamMemberFilters;
|
|
1639
|
+
sort?: _SortValue<TeamMember> | _SortValue<TeamMember>[];
|
|
1640
|
+
limit?: number;
|
|
1641
|
+
start?: number;
|
|
1642
|
+
};
|
|
1643
|
+
invitations?: true | {
|
|
1644
|
+
fields?: _EntityField<TeamInvitation>[];
|
|
1645
|
+
populate?: TeamInvitationPopulateParam | (keyof TeamInvitationPopulateParam & string)[] | '*';
|
|
1646
|
+
filters?: TeamInvitationFilters;
|
|
1647
|
+
sort?: _SortValue<TeamInvitation> | _SortValue<TeamInvitation>[];
|
|
1648
|
+
limit?: number;
|
|
1649
|
+
start?: number;
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
export type TeamInvitationPopulateParam = {
|
|
1653
|
+
team?: true | {
|
|
1654
|
+
fields?: _EntityField<Team>[];
|
|
1655
|
+
populate?: TeamPopulateParam | (keyof TeamPopulateParam & string)[] | '*';
|
|
1656
|
+
filters?: TeamFilters;
|
|
1657
|
+
sort?: _SortValue<Team> | _SortValue<Team>[];
|
|
1658
|
+
limit?: number;
|
|
1659
|
+
start?: number;
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
export type TeamMemberPopulateParam = {
|
|
1663
|
+
team?: true | {
|
|
1664
|
+
fields?: _EntityField<Team>[];
|
|
1665
|
+
populate?: TeamPopulateParam | (keyof TeamPopulateParam & string)[] | '*';
|
|
1666
|
+
filters?: TeamFilters;
|
|
1667
|
+
sort?: _SortValue<Team> | _SortValue<Team>[];
|
|
1668
|
+
limit?: number;
|
|
1669
|
+
start?: number;
|
|
1670
|
+
};
|
|
1671
|
+
user?: true | {
|
|
1672
|
+
fields?: _EntityField<User>[];
|
|
1673
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1674
|
+
filters?: UserFilters;
|
|
1675
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1676
|
+
limit?: number;
|
|
1677
|
+
start?: number;
|
|
1678
|
+
};
|
|
1679
|
+
accesses?: true | {
|
|
1680
|
+
fields?: _EntityField<Access>[];
|
|
1681
|
+
populate?: AccessPopulateParam | (keyof AccessPopulateParam & string)[] | '*';
|
|
1682
|
+
filters?: AccessFilters;
|
|
1683
|
+
sort?: _SortValue<Access> | _SortValue<Access>[];
|
|
1684
|
+
limit?: number;
|
|
1685
|
+
start?: number;
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
export type TokenTransactionPopulateParam = {
|
|
1689
|
+
user?: true | {
|
|
1690
|
+
fields?: _EntityField<User>[];
|
|
1691
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1692
|
+
filters?: UserFilters;
|
|
1693
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1694
|
+
limit?: number;
|
|
1695
|
+
start?: number;
|
|
1696
|
+
};
|
|
1697
|
+
payment?: true | {
|
|
1698
|
+
fields?: _EntityField<Payment>[];
|
|
1699
|
+
populate?: PaymentPopulateParam | (keyof PaymentPopulateParam & string)[] | '*';
|
|
1700
|
+
filters?: PaymentFilters;
|
|
1701
|
+
sort?: _SortValue<Payment> | _SortValue<Payment>[];
|
|
1702
|
+
limit?: number;
|
|
1703
|
+
start?: number;
|
|
1704
|
+
};
|
|
1705
|
+
};
|
|
1706
|
+
export type UserSessionPopulateParam = {
|
|
1707
|
+
user?: true | {
|
|
1708
|
+
fields?: _EntityField<User>[];
|
|
1709
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1710
|
+
filters?: UserFilters;
|
|
1711
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1712
|
+
limit?: number;
|
|
1713
|
+
start?: number;
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
export type WebsitePopulateParam = {
|
|
1717
|
+
user?: true | {
|
|
1718
|
+
fields?: _EntityField<User>[];
|
|
1719
|
+
populate?: UserPopulateParam | (keyof UserPopulateParam & string)[] | '*';
|
|
1720
|
+
filters?: UserFilters;
|
|
1721
|
+
sort?: _SortValue<User> | _SortValue<User>[];
|
|
1722
|
+
limit?: number;
|
|
1723
|
+
start?: number;
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
export type SharedTabGetPayload<P extends {
|
|
1727
|
+
populate?: any;
|
|
1728
|
+
} = {}> = SharedTab & (P extends {
|
|
1729
|
+
populate: infer Pop;
|
|
1730
|
+
} ? Pop extends '*' | true ? {
|
|
1731
|
+
image?: MediaFile;
|
|
1732
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1733
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
1734
|
+
} : {
|
|
1735
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
1736
|
+
} : {});
|
|
1737
|
+
export type LandingSavePublishGetPayload<P extends {
|
|
1738
|
+
populate?: any;
|
|
1739
|
+
} = {}> = LandingSavePublish & (P extends {
|
|
1740
|
+
populate: infer Pop;
|
|
1741
|
+
} ? Pop extends '*' | true ? {
|
|
1742
|
+
features?: SharedFeature[];
|
|
1743
|
+
tabs?: SharedTab[];
|
|
1744
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1745
|
+
features?: 'features' extends Pop[number] ? SharedFeature[] : never;
|
|
1746
|
+
tabs?: 'tabs' extends Pop[number] ? SharedTab[] : never;
|
|
1747
|
+
} : {
|
|
1748
|
+
features?: 'features' extends keyof Pop ? _ApplyFields<SharedFeature, SharedFeature, Pop['features']>[] : never;
|
|
1749
|
+
tabs?: 'tabs' extends keyof Pop ? _ApplyFields<Pop['tabs'] extends {
|
|
1750
|
+
populate: infer NestedPop;
|
|
1751
|
+
} ? SharedTabGetPayload<{
|
|
1752
|
+
populate: NestedPop;
|
|
1753
|
+
}> : SharedTab, SharedTab, Pop['tabs']>[] : never;
|
|
1754
|
+
} : {});
|
|
1755
|
+
export type LandingProductShowcaseGetPayload<P extends {
|
|
1756
|
+
populate?: any;
|
|
1757
|
+
} = {}> = LandingProductShowcase & (P extends {
|
|
1758
|
+
populate: infer Pop;
|
|
1759
|
+
} ? Pop extends '*' | true ? {
|
|
1760
|
+
image?: MediaFile;
|
|
1761
|
+
features?: SharedFeature[];
|
|
1762
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1763
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
1764
|
+
features?: 'features' extends Pop[number] ? SharedFeature[] : never;
|
|
1765
|
+
} : {
|
|
1766
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
1767
|
+
features?: 'features' extends keyof Pop ? _ApplyFields<SharedFeature, SharedFeature, Pop['features']>[] : never;
|
|
1768
|
+
} : {});
|
|
1769
|
+
export type LandingFinishingCardGetPayload<P extends {
|
|
1770
|
+
populate?: any;
|
|
1771
|
+
} = {}> = LandingFinishingCard & (P extends {
|
|
1772
|
+
populate: infer Pop;
|
|
1773
|
+
} ? Pop extends '*' | true ? {
|
|
1774
|
+
image?: MediaFile;
|
|
1775
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1776
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
1777
|
+
} : {
|
|
1778
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
1779
|
+
} : {});
|
|
1780
|
+
export type LandingEditorFeatureGetPayload<P extends {
|
|
1781
|
+
populate?: any;
|
|
1782
|
+
} = {}> = LandingEditorFeature & (P extends {
|
|
1783
|
+
populate: infer Pop;
|
|
1784
|
+
} ? Pop extends '*' | true ? {
|
|
1785
|
+
image?: MediaFile;
|
|
1786
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1787
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
1788
|
+
} : {
|
|
1789
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
1790
|
+
} : {});
|
|
1791
|
+
export type LandingCarouselItemGetPayload<P extends {
|
|
1792
|
+
populate?: any;
|
|
1793
|
+
} = {}> = LandingCarouselItem & (P extends {
|
|
1794
|
+
populate: infer Pop;
|
|
1795
|
+
} ? Pop extends '*' | true ? {
|
|
1796
|
+
image?: MediaFile;
|
|
1797
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1798
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
1799
|
+
} : {
|
|
1800
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
1801
|
+
} : {});
|
|
1802
|
+
export type FaqCategoryGetPayload<P extends {
|
|
1803
|
+
populate?: any;
|
|
1804
|
+
} = {}> = FaqCategory & (P extends {
|
|
1805
|
+
populate: infer Pop;
|
|
1806
|
+
} ? Pop extends '*' | true ? {
|
|
1807
|
+
questions?: FaqQuestion[];
|
|
1808
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1809
|
+
questions?: 'questions' extends Pop[number] ? FaqQuestion[] : never;
|
|
1810
|
+
} : {
|
|
1811
|
+
questions?: 'questions' extends keyof Pop ? _ApplyFields<FaqQuestion, FaqQuestion, Pop['questions']>[] : never;
|
|
1812
|
+
} : {});
|
|
1813
|
+
export type CategorySubcategoryGetPayload<P extends {
|
|
1814
|
+
populate?: any;
|
|
1815
|
+
} = {}> = CategorySubcategory & (P extends {
|
|
1816
|
+
populate: infer Pop;
|
|
1817
|
+
} ? Pop extends '*' | true ? {
|
|
1818
|
+
items?: Item[];
|
|
1819
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1820
|
+
items?: 'items' extends Pop[number] ? Item[] : never;
|
|
1821
|
+
} : {
|
|
1822
|
+
items?: 'items' extends keyof Pop ? _ApplyFields<Pop['items'] extends {
|
|
1823
|
+
populate: infer NestedPop;
|
|
1824
|
+
} ? ItemGetPayload<{
|
|
1825
|
+
populate: NestedPop;
|
|
1826
|
+
}> : Item, Item, Pop['items']>[] : never;
|
|
1827
|
+
} : {});
|
|
1828
|
+
export type AiStudioStyleGetPayload<P extends {
|
|
1829
|
+
populate?: any;
|
|
1830
|
+
} = {}> = AiStudioStyle & (P extends {
|
|
1831
|
+
populate: infer Pop;
|
|
1832
|
+
} ? Pop extends '*' | true ? {
|
|
1833
|
+
subStyles?: AiStudioSubstyle[];
|
|
1834
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1835
|
+
subStyles?: 'subStyles' extends Pop[number] ? AiStudioSubstyle[] : never;
|
|
1836
|
+
} : {
|
|
1837
|
+
subStyles?: 'subStyles' extends keyof Pop ? _ApplyFields<AiStudioSubstyle, AiStudioSubstyle, Pop['subStyles']>[] : never;
|
|
1838
|
+
} : {});
|
|
1839
|
+
export type GuideGuideStepGetPayload<P extends {
|
|
1840
|
+
populate?: any;
|
|
1841
|
+
} = {}> = GuideGuideStep & (P extends {
|
|
1842
|
+
populate: infer Pop;
|
|
1843
|
+
} ? Pop extends '*' | true ? {
|
|
1844
|
+
preview?: MediaFile;
|
|
1845
|
+
image?: MediaFile;
|
|
1846
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1847
|
+
preview?: 'preview' extends Pop[number] ? MediaFile : never;
|
|
1848
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
1849
|
+
} : {
|
|
1850
|
+
preview?: 'preview' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['preview']> : never;
|
|
1851
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
1852
|
+
} : {});
|
|
1853
|
+
export type GuideContentGetPayload<P extends {
|
|
1854
|
+
populate?: any;
|
|
1855
|
+
} = {}> = GuideContent & (P extends {
|
|
1856
|
+
populate: infer Pop;
|
|
1857
|
+
} ? Pop extends '*' | true ? {
|
|
1858
|
+
steps?: GuideGuideStep[];
|
|
1859
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1860
|
+
steps?: 'steps' extends Pop[number] ? GuideGuideStep[] : never;
|
|
1861
|
+
} : {
|
|
1862
|
+
steps?: 'steps' extends keyof Pop ? _ApplyFields<Pop['steps'] extends {
|
|
1863
|
+
populate: infer NestedPop;
|
|
1864
|
+
} ? GuideGuideStepGetPayload<{
|
|
1865
|
+
populate: NestedPop;
|
|
1866
|
+
}> : GuideGuideStep, GuideGuideStep, Pop['steps']>[] : never;
|
|
1867
|
+
} : {});
|
|
1868
|
+
export type PermissionGetPayload<P extends {
|
|
1869
|
+
populate?: any;
|
|
1870
|
+
} = {}> = Permission & (P extends {
|
|
1871
|
+
populate: infer Pop;
|
|
1872
|
+
} ? Pop extends '*' | true ? {
|
|
1873
|
+
role?: Role | null;
|
|
1874
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1875
|
+
role?: 'role' extends Pop[number] ? Role | null : never;
|
|
1876
|
+
} : {
|
|
1877
|
+
role?: 'role' extends keyof Pop ? _ApplyFields<Pop['role'] extends {
|
|
1878
|
+
populate: infer NestedPop;
|
|
1879
|
+
} ? RoleGetPayload<{
|
|
1880
|
+
populate: NestedPop;
|
|
1881
|
+
}> : Role, Role, Pop['role']> | null : never;
|
|
1882
|
+
} : {});
|
|
1883
|
+
export type RoleGetPayload<P extends {
|
|
1884
|
+
populate?: any;
|
|
1885
|
+
} = {}> = Role & (P extends {
|
|
1886
|
+
populate: infer Pop;
|
|
1887
|
+
} ? Pop extends '*' | true ? {
|
|
1888
|
+
permissions?: Permission[];
|
|
1889
|
+
users?: User[];
|
|
1890
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1891
|
+
permissions?: 'permissions' extends Pop[number] ? Permission[] : never;
|
|
1892
|
+
users?: 'users' extends Pop[number] ? User[] : never;
|
|
1893
|
+
} : {
|
|
1894
|
+
permissions?: 'permissions' extends keyof Pop ? _ApplyFields<Pop['permissions'] extends {
|
|
1895
|
+
populate: infer NestedPop;
|
|
1896
|
+
} ? PermissionGetPayload<{
|
|
1897
|
+
populate: NestedPop;
|
|
1898
|
+
}> : Permission, Permission, Pop['permissions']>[] : never;
|
|
1899
|
+
users?: 'users' extends keyof Pop ? _ApplyFields<Pop['users'] extends {
|
|
1900
|
+
populate: infer NestedPop;
|
|
1901
|
+
} ? UserGetPayload<{
|
|
1902
|
+
populate: NestedPop;
|
|
1903
|
+
}> : User, User, Pop['users']>[] : never;
|
|
1904
|
+
} : {});
|
|
1905
|
+
export type UserGetPayload<P extends {
|
|
1906
|
+
populate?: any;
|
|
1907
|
+
} = {}> = User & (P extends {
|
|
1908
|
+
populate: infer Pop;
|
|
1909
|
+
} ? Pop extends '*' | true ? {
|
|
1910
|
+
role?: Role | null;
|
|
1911
|
+
supports?: Support[];
|
|
1912
|
+
access?: Access | null;
|
|
1913
|
+
session?: UserSession | null;
|
|
1914
|
+
projects?: Project[];
|
|
1915
|
+
websites?: Website[];
|
|
1916
|
+
referral?: Referral | null;
|
|
1917
|
+
partner?: PartnerProfile | null;
|
|
1918
|
+
subscriptions?: Subscription[];
|
|
1919
|
+
teamMemberships?: TeamMember[];
|
|
1920
|
+
payments?: Payment[];
|
|
1921
|
+
tokenTransactions?: TokenTransaction[];
|
|
1922
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
1923
|
+
role?: 'role' extends Pop[number] ? Role | null : never;
|
|
1924
|
+
supports?: 'supports' extends Pop[number] ? Support[] : never;
|
|
1925
|
+
access?: 'access' extends Pop[number] ? Access | null : never;
|
|
1926
|
+
session?: 'session' extends Pop[number] ? UserSession | null : never;
|
|
1927
|
+
projects?: 'projects' extends Pop[number] ? Project[] : never;
|
|
1928
|
+
websites?: 'websites' extends Pop[number] ? Website[] : never;
|
|
1929
|
+
referral?: 'referral' extends Pop[number] ? Referral | null : never;
|
|
1930
|
+
partner?: 'partner' extends Pop[number] ? PartnerProfile | null : never;
|
|
1931
|
+
subscriptions?: 'subscriptions' extends Pop[number] ? Subscription[] : never;
|
|
1932
|
+
teamMemberships?: 'teamMemberships' extends Pop[number] ? TeamMember[] : never;
|
|
1933
|
+
payments?: 'payments' extends Pop[number] ? Payment[] : never;
|
|
1934
|
+
tokenTransactions?: 'tokenTransactions' extends Pop[number] ? TokenTransaction[] : never;
|
|
1935
|
+
} : {
|
|
1936
|
+
role?: 'role' extends keyof Pop ? _ApplyFields<Pop['role'] extends {
|
|
1937
|
+
populate: infer NestedPop;
|
|
1938
|
+
} ? RoleGetPayload<{
|
|
1939
|
+
populate: NestedPop;
|
|
1940
|
+
}> : Role, Role, Pop['role']> | null : never;
|
|
1941
|
+
supports?: 'supports' extends keyof Pop ? _ApplyFields<Pop['supports'] extends {
|
|
1942
|
+
populate: infer NestedPop;
|
|
1943
|
+
} ? SupportGetPayload<{
|
|
1944
|
+
populate: NestedPop;
|
|
1945
|
+
}> : Support, Support, Pop['supports']>[] : never;
|
|
1946
|
+
access?: 'access' extends keyof Pop ? _ApplyFields<Pop['access'] extends {
|
|
1947
|
+
populate: infer NestedPop;
|
|
1948
|
+
} ? AccessGetPayload<{
|
|
1949
|
+
populate: NestedPop;
|
|
1950
|
+
}> : Access, Access, Pop['access']> | null : never;
|
|
1951
|
+
session?: 'session' extends keyof Pop ? _ApplyFields<Pop['session'] extends {
|
|
1952
|
+
populate: infer NestedPop;
|
|
1953
|
+
} ? UserSessionGetPayload<{
|
|
1954
|
+
populate: NestedPop;
|
|
1955
|
+
}> : UserSession, UserSession, Pop['session']> | null : never;
|
|
1956
|
+
projects?: 'projects' extends keyof Pop ? _ApplyFields<Pop['projects'] extends {
|
|
1957
|
+
populate: infer NestedPop;
|
|
1958
|
+
} ? ProjectGetPayload<{
|
|
1959
|
+
populate: NestedPop;
|
|
1960
|
+
}> : Project, Project, Pop['projects']>[] : never;
|
|
1961
|
+
websites?: 'websites' extends keyof Pop ? _ApplyFields<Pop['websites'] extends {
|
|
1962
|
+
populate: infer NestedPop;
|
|
1963
|
+
} ? WebsiteGetPayload<{
|
|
1964
|
+
populate: NestedPop;
|
|
1965
|
+
}> : Website, Website, Pop['websites']>[] : never;
|
|
1966
|
+
referral?: 'referral' extends keyof Pop ? _ApplyFields<Pop['referral'] extends {
|
|
1967
|
+
populate: infer NestedPop;
|
|
1968
|
+
} ? ReferralGetPayload<{
|
|
1969
|
+
populate: NestedPop;
|
|
1970
|
+
}> : Referral, Referral, Pop['referral']> | null : never;
|
|
1971
|
+
partner?: 'partner' extends keyof Pop ? _ApplyFields<Pop['partner'] extends {
|
|
1972
|
+
populate: infer NestedPop;
|
|
1973
|
+
} ? PartnerProfileGetPayload<{
|
|
1974
|
+
populate: NestedPop;
|
|
1975
|
+
}> : PartnerProfile, PartnerProfile, Pop['partner']> | null : never;
|
|
1976
|
+
subscriptions?: 'subscriptions' extends keyof Pop ? _ApplyFields<Pop['subscriptions'] extends {
|
|
1977
|
+
populate: infer NestedPop;
|
|
1978
|
+
} ? SubscriptionGetPayload<{
|
|
1979
|
+
populate: NestedPop;
|
|
1980
|
+
}> : Subscription, Subscription, Pop['subscriptions']>[] : never;
|
|
1981
|
+
teamMemberships?: 'teamMemberships' extends keyof Pop ? _ApplyFields<Pop['teamMemberships'] extends {
|
|
1982
|
+
populate: infer NestedPop;
|
|
1983
|
+
} ? TeamMemberGetPayload<{
|
|
1984
|
+
populate: NestedPop;
|
|
1985
|
+
}> : TeamMember, TeamMember, Pop['teamMemberships']>[] : never;
|
|
1986
|
+
payments?: 'payments' extends keyof Pop ? _ApplyFields<Pop['payments'] extends {
|
|
1987
|
+
populate: infer NestedPop;
|
|
1988
|
+
} ? PaymentGetPayload<{
|
|
1989
|
+
populate: NestedPop;
|
|
1990
|
+
}> : Payment, Payment, Pop['payments']>[] : never;
|
|
1991
|
+
tokenTransactions?: 'tokenTransactions' extends keyof Pop ? _ApplyFields<Pop['tokenTransactions'] extends {
|
|
1992
|
+
populate: infer NestedPop;
|
|
1993
|
+
} ? TokenTransactionGetPayload<{
|
|
1994
|
+
populate: NestedPop;
|
|
1995
|
+
}> : TokenTransaction, TokenTransaction, Pop['tokenTransactions']>[] : never;
|
|
1996
|
+
} : {});
|
|
1997
|
+
export type AccessGetPayload<P extends {
|
|
1998
|
+
populate?: any;
|
|
1999
|
+
} = {}> = Access & (P extends {
|
|
2000
|
+
populate: infer Pop;
|
|
2001
|
+
} ? Pop extends '*' | true ? {
|
|
2002
|
+
user?: User | null;
|
|
2003
|
+
plan?: Plan | null;
|
|
2004
|
+
subscription?: Subscription | null;
|
|
2005
|
+
teamMembership?: TeamMember | null;
|
|
2006
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2007
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2008
|
+
plan?: 'plan' extends Pop[number] ? Plan | null : never;
|
|
2009
|
+
subscription?: 'subscription' extends Pop[number] ? Subscription | null : never;
|
|
2010
|
+
teamMembership?: 'teamMembership' extends Pop[number] ? TeamMember | null : never;
|
|
2011
|
+
} : {
|
|
2012
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2013
|
+
populate: infer NestedPop;
|
|
2014
|
+
} ? UserGetPayload<{
|
|
2015
|
+
populate: NestedPop;
|
|
2016
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2017
|
+
plan?: 'plan' extends keyof Pop ? _ApplyFields<Pop['plan'] extends {
|
|
2018
|
+
populate: infer NestedPop;
|
|
2019
|
+
} ? PlanGetPayload<{
|
|
2020
|
+
populate: NestedPop;
|
|
2021
|
+
}> : Plan, Plan, Pop['plan']> | null : never;
|
|
2022
|
+
subscription?: 'subscription' extends keyof Pop ? _ApplyFields<Pop['subscription'] extends {
|
|
2023
|
+
populate: infer NestedPop;
|
|
2024
|
+
} ? SubscriptionGetPayload<{
|
|
2025
|
+
populate: NestedPop;
|
|
2026
|
+
}> : Subscription, Subscription, Pop['subscription']> | null : never;
|
|
2027
|
+
teamMembership?: 'teamMembership' extends keyof Pop ? _ApplyFields<Pop['teamMembership'] extends {
|
|
2028
|
+
populate: infer NestedPop;
|
|
2029
|
+
} ? TeamMemberGetPayload<{
|
|
2030
|
+
populate: NestedPop;
|
|
2031
|
+
}> : TeamMember, TeamMember, Pop['teamMembership']> | null : never;
|
|
2032
|
+
} : {});
|
|
2033
|
+
export type AiStudioGetPayload<P extends {
|
|
2034
|
+
populate?: any;
|
|
2035
|
+
} = {}> = AiStudio & (P extends {
|
|
2036
|
+
populate: infer Pop;
|
|
2037
|
+
} ? Pop extends '*' | true ? {
|
|
2038
|
+
mainStyles?: AiStudioStyle[];
|
|
2039
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2040
|
+
mainStyles?: 'mainStyles' extends Pop[number] ? AiStudioStyle[] : never;
|
|
2041
|
+
} : {
|
|
2042
|
+
mainStyles?: 'mainStyles' extends keyof Pop ? _ApplyFields<Pop['mainStyles'] extends {
|
|
2043
|
+
populate: infer NestedPop;
|
|
2044
|
+
} ? AiStudioStyleGetPayload<{
|
|
2045
|
+
populate: NestedPop;
|
|
2046
|
+
}> : AiStudioStyle, AiStudioStyle, Pop['mainStyles']>[] : never;
|
|
2047
|
+
} : {});
|
|
2048
|
+
export type AuthGetPayload<P extends {
|
|
2049
|
+
populate?: any;
|
|
2050
|
+
} = {}> = Auth & (P extends {
|
|
2051
|
+
populate: infer Pop;
|
|
2052
|
+
} ? Pop extends '*' | true ? {
|
|
2053
|
+
background?: MediaFile[];
|
|
2054
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2055
|
+
background?: 'background' extends Pop[number] ? MediaFile[] : never;
|
|
2056
|
+
} : {
|
|
2057
|
+
background?: 'background' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['background']>[] : never;
|
|
2058
|
+
} : {});
|
|
2059
|
+
export type BannerGetPayload<P extends {
|
|
2060
|
+
populate?: any;
|
|
2061
|
+
} = {}> = Banner & (P extends {
|
|
2062
|
+
populate: infer Pop;
|
|
2063
|
+
} ? Pop extends '*' | true ? {
|
|
2064
|
+
image?: MediaFile;
|
|
2065
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2066
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
2067
|
+
} : {
|
|
2068
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
2069
|
+
} : {});
|
|
2070
|
+
export type CatalogGetPayload<P extends {
|
|
2071
|
+
populate?: any;
|
|
2072
|
+
} = {}> = Catalog & (P extends {
|
|
2073
|
+
populate: infer Pop;
|
|
2074
|
+
} ? Pop extends '*' | true ? {
|
|
2075
|
+
categories?: Category[];
|
|
2076
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2077
|
+
categories?: 'categories' extends Pop[number] ? Category[] : never;
|
|
2078
|
+
} : {
|
|
2079
|
+
categories?: 'categories' extends keyof Pop ? _ApplyFields<Pop['categories'] extends {
|
|
2080
|
+
populate: infer NestedPop;
|
|
2081
|
+
} ? CategoryGetPayload<{
|
|
2082
|
+
populate: NestedPop;
|
|
2083
|
+
}> : Category, Category, Pop['categories']>[] : never;
|
|
2084
|
+
} : {});
|
|
2085
|
+
export type CategoryGetPayload<P extends {
|
|
2086
|
+
populate?: any;
|
|
2087
|
+
} = {}> = Category & (P extends {
|
|
2088
|
+
populate: infer Pop;
|
|
2089
|
+
} ? Pop extends '*' | true ? {
|
|
2090
|
+
items?: Item[];
|
|
2091
|
+
image?: MediaFile;
|
|
2092
|
+
subcategories?: CategorySubcategory[];
|
|
2093
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2094
|
+
items?: 'items' extends Pop[number] ? Item[] : never;
|
|
2095
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
2096
|
+
subcategories?: 'subcategories' extends Pop[number] ? CategorySubcategory[] : never;
|
|
2097
|
+
} : {
|
|
2098
|
+
items?: 'items' extends keyof Pop ? _ApplyFields<Pop['items'] extends {
|
|
2099
|
+
populate: infer NestedPop;
|
|
2100
|
+
} ? ItemGetPayload<{
|
|
2101
|
+
populate: NestedPop;
|
|
2102
|
+
}> : Item, Item, Pop['items']>[] : never;
|
|
2103
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
2104
|
+
subcategories?: 'subcategories' extends keyof Pop ? _ApplyFields<Pop['subcategories'] extends {
|
|
2105
|
+
populate: infer NestedPop;
|
|
2106
|
+
} ? CategorySubcategoryGetPayload<{
|
|
2107
|
+
populate: NestedPop;
|
|
2108
|
+
}> : CategorySubcategory, CategorySubcategory, Pop['subcategories']>[] : never;
|
|
2109
|
+
} : {});
|
|
2110
|
+
export type FaqGetPayload<P extends {
|
|
2111
|
+
populate?: any;
|
|
2112
|
+
} = {}> = Faq & (P extends {
|
|
2113
|
+
populate: infer Pop;
|
|
2114
|
+
} ? Pop extends '*' | true ? {
|
|
2115
|
+
categories?: FaqCategory[];
|
|
2116
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2117
|
+
categories?: 'categories' extends Pop[number] ? FaqCategory[] : never;
|
|
2118
|
+
} : {
|
|
2119
|
+
categories?: 'categories' extends keyof Pop ? _ApplyFields<Pop['categories'] extends {
|
|
2120
|
+
populate: infer NestedPop;
|
|
2121
|
+
} ? FaqCategoryGetPayload<{
|
|
2122
|
+
populate: NestedPop;
|
|
2123
|
+
}> : FaqCategory, FaqCategory, Pop['categories']>[] : never;
|
|
2124
|
+
} : {});
|
|
2125
|
+
export type GalleryGetPayload<P extends {
|
|
2126
|
+
populate?: any;
|
|
2127
|
+
} = {}> = Gallery & (P extends {
|
|
2128
|
+
populate: infer Pop;
|
|
2129
|
+
} ? Pop extends '*' | true ? {
|
|
2130
|
+
category?: Category | null;
|
|
2131
|
+
image?: MediaFile;
|
|
2132
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2133
|
+
category?: 'category' extends Pop[number] ? Category | null : never;
|
|
2134
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
2135
|
+
} : {
|
|
2136
|
+
category?: 'category' extends keyof Pop ? _ApplyFields<Pop['category'] extends {
|
|
2137
|
+
populate: infer NestedPop;
|
|
2138
|
+
} ? CategoryGetPayload<{
|
|
2139
|
+
populate: NestedPop;
|
|
2140
|
+
}> : Category, Category, Pop['category']> | null : never;
|
|
2141
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
2142
|
+
} : {});
|
|
2143
|
+
export type GuideGetPayload<P extends {
|
|
2144
|
+
populate?: any;
|
|
2145
|
+
} = {}> = Guide & (P extends {
|
|
2146
|
+
populate: infer Pop;
|
|
2147
|
+
} ? Pop extends '*' | true ? {
|
|
2148
|
+
image?: MediaFile;
|
|
2149
|
+
content?: GuideContent;
|
|
2150
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2151
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
2152
|
+
content?: 'content' extends Pop[number] ? GuideContent : never;
|
|
2153
|
+
} : {
|
|
2154
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
2155
|
+
content?: 'content' extends keyof Pop ? _ApplyFields<Pop['content'] extends {
|
|
2156
|
+
populate: infer NestedPop;
|
|
2157
|
+
} ? GuideContentGetPayload<{
|
|
2158
|
+
populate: NestedPop;
|
|
2159
|
+
}> : GuideContent, GuideContent, Pop['content']> : never;
|
|
2160
|
+
} : {});
|
|
2161
|
+
export type GuideCategoryGetPayload<P extends {
|
|
2162
|
+
populate?: any;
|
|
2163
|
+
} = {}> = GuideCategory & (P extends {
|
|
2164
|
+
populate: infer Pop;
|
|
2165
|
+
} ? Pop extends '*' | true ? {
|
|
2166
|
+
guides?: Guide[];
|
|
2167
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2168
|
+
guides?: 'guides' extends Pop[number] ? Guide[] : never;
|
|
2169
|
+
} : {
|
|
2170
|
+
guides?: 'guides' extends keyof Pop ? _ApplyFields<Pop['guides'] extends {
|
|
2171
|
+
populate: infer NestedPop;
|
|
2172
|
+
} ? GuideGetPayload<{
|
|
2173
|
+
populate: NestedPop;
|
|
2174
|
+
}> : Guide, Guide, Pop['guides']>[] : never;
|
|
2175
|
+
} : {});
|
|
2176
|
+
export type GuidePageGetPayload<P extends {
|
|
2177
|
+
populate?: any;
|
|
2178
|
+
} = {}> = GuidePage & (P extends {
|
|
2179
|
+
populate: infer Pop;
|
|
2180
|
+
} ? Pop extends '*' | true ? {
|
|
2181
|
+
categories?: GuideCategory[];
|
|
2182
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2183
|
+
categories?: 'categories' extends Pop[number] ? GuideCategory[] : never;
|
|
2184
|
+
} : {
|
|
2185
|
+
categories?: 'categories' extends keyof Pop ? _ApplyFields<Pop['categories'] extends {
|
|
2186
|
+
populate: infer NestedPop;
|
|
2187
|
+
} ? GuideCategoryGetPayload<{
|
|
2188
|
+
populate: NestedPop;
|
|
2189
|
+
}> : GuideCategory, GuideCategory, Pop['categories']>[] : never;
|
|
2190
|
+
} : {});
|
|
2191
|
+
export type ItemGetPayload<P extends {
|
|
2192
|
+
populate?: any;
|
|
2193
|
+
} = {}> = Item & (P extends {
|
|
2194
|
+
populate: infer Pop;
|
|
2195
|
+
} ? Pop extends '*' | true ? {
|
|
2196
|
+
category?: Category | null;
|
|
2197
|
+
image?: MediaFile;
|
|
2198
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2199
|
+
category?: 'category' extends Pop[number] ? Category | null : never;
|
|
2200
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
2201
|
+
} : {
|
|
2202
|
+
category?: 'category' extends keyof Pop ? _ApplyFields<Pop['category'] extends {
|
|
2203
|
+
populate: infer NestedPop;
|
|
2204
|
+
} ? CategoryGetPayload<{
|
|
2205
|
+
populate: NestedPop;
|
|
2206
|
+
}> : Category, Category, Pop['category']> | null : never;
|
|
2207
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
2208
|
+
} : {});
|
|
2209
|
+
export type LandingGetPayload<P extends {
|
|
2210
|
+
populate?: any;
|
|
2211
|
+
} = {}> = Landing & (P extends {
|
|
2212
|
+
populate: infer Pop;
|
|
2213
|
+
} ? Pop extends '*' | true ? {
|
|
2214
|
+
video?: MediaFile;
|
|
2215
|
+
heroSlides?: MediaFile[];
|
|
2216
|
+
carouselItems?: MediaFile[];
|
|
2217
|
+
mockups?: LandingMockup[];
|
|
2218
|
+
finishingCards?: LandingFinishingCard[];
|
|
2219
|
+
productShowcases?: LandingProductShowcase[];
|
|
2220
|
+
editorFeatures?: LandingEditorFeature[];
|
|
2221
|
+
savePublishSection?: LandingSavePublish;
|
|
2222
|
+
statistics?: LandingStatistics[];
|
|
2223
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2224
|
+
video?: 'video' extends Pop[number] ? MediaFile : never;
|
|
2225
|
+
heroSlides?: 'heroSlides' extends Pop[number] ? MediaFile[] : never;
|
|
2226
|
+
carouselItems?: 'carouselItems' extends Pop[number] ? MediaFile[] : never;
|
|
2227
|
+
mockups?: 'mockups' extends Pop[number] ? LandingMockup[] : never;
|
|
2228
|
+
finishingCards?: 'finishingCards' extends Pop[number] ? LandingFinishingCard[] : never;
|
|
2229
|
+
productShowcases?: 'productShowcases' extends Pop[number] ? LandingProductShowcase[] : never;
|
|
2230
|
+
editorFeatures?: 'editorFeatures' extends Pop[number] ? LandingEditorFeature[] : never;
|
|
2231
|
+
savePublishSection?: 'savePublishSection' extends Pop[number] ? LandingSavePublish : never;
|
|
2232
|
+
statistics?: 'statistics' extends Pop[number] ? LandingStatistics[] : never;
|
|
2233
|
+
} : {
|
|
2234
|
+
video?: 'video' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['video']> : never;
|
|
2235
|
+
heroSlides?: 'heroSlides' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['heroSlides']>[] : never;
|
|
2236
|
+
carouselItems?: 'carouselItems' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['carouselItems']>[] : never;
|
|
2237
|
+
mockups?: 'mockups' extends keyof Pop ? _ApplyFields<LandingMockup, LandingMockup, Pop['mockups']>[] : never;
|
|
2238
|
+
finishingCards?: 'finishingCards' extends keyof Pop ? _ApplyFields<Pop['finishingCards'] extends {
|
|
2239
|
+
populate: infer NestedPop;
|
|
2240
|
+
} ? LandingFinishingCardGetPayload<{
|
|
2241
|
+
populate: NestedPop;
|
|
2242
|
+
}> : LandingFinishingCard, LandingFinishingCard, Pop['finishingCards']>[] : never;
|
|
2243
|
+
productShowcases?: 'productShowcases' extends keyof Pop ? _ApplyFields<Pop['productShowcases'] extends {
|
|
2244
|
+
populate: infer NestedPop;
|
|
2245
|
+
} ? LandingProductShowcaseGetPayload<{
|
|
2246
|
+
populate: NestedPop;
|
|
2247
|
+
}> : LandingProductShowcase, LandingProductShowcase, Pop['productShowcases']>[] : never;
|
|
2248
|
+
editorFeatures?: 'editorFeatures' extends keyof Pop ? _ApplyFields<Pop['editorFeatures'] extends {
|
|
2249
|
+
populate: infer NestedPop;
|
|
2250
|
+
} ? LandingEditorFeatureGetPayload<{
|
|
2251
|
+
populate: NestedPop;
|
|
2252
|
+
}> : LandingEditorFeature, LandingEditorFeature, Pop['editorFeatures']>[] : never;
|
|
2253
|
+
savePublishSection?: 'savePublishSection' extends keyof Pop ? _ApplyFields<Pop['savePublishSection'] extends {
|
|
2254
|
+
populate: infer NestedPop;
|
|
2255
|
+
} ? LandingSavePublishGetPayload<{
|
|
2256
|
+
populate: NestedPop;
|
|
2257
|
+
}> : LandingSavePublish, LandingSavePublish, Pop['savePublishSection']> : never;
|
|
2258
|
+
statistics?: 'statistics' extends keyof Pop ? _ApplyFields<LandingStatistics, LandingStatistics, Pop['statistics']>[] : never;
|
|
2259
|
+
} : {});
|
|
2260
|
+
export type PartnerCommissionGetPayload<P extends {
|
|
2261
|
+
populate?: any;
|
|
2262
|
+
} = {}> = PartnerCommission & (P extends {
|
|
2263
|
+
populate: infer Pop;
|
|
2264
|
+
} ? Pop extends '*' | true ? {
|
|
2265
|
+
partner?: PartnerProfile | null;
|
|
2266
|
+
referral?: Referral | null;
|
|
2267
|
+
payment?: Payment | null;
|
|
2268
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2269
|
+
partner?: 'partner' extends Pop[number] ? PartnerProfile | null : never;
|
|
2270
|
+
referral?: 'referral' extends Pop[number] ? Referral | null : never;
|
|
2271
|
+
payment?: 'payment' extends Pop[number] ? Payment | null : never;
|
|
2272
|
+
} : {
|
|
2273
|
+
partner?: 'partner' extends keyof Pop ? _ApplyFields<Pop['partner'] extends {
|
|
2274
|
+
populate: infer NestedPop;
|
|
2275
|
+
} ? PartnerProfileGetPayload<{
|
|
2276
|
+
populate: NestedPop;
|
|
2277
|
+
}> : PartnerProfile, PartnerProfile, Pop['partner']> | null : never;
|
|
2278
|
+
referral?: 'referral' extends keyof Pop ? _ApplyFields<Pop['referral'] extends {
|
|
2279
|
+
populate: infer NestedPop;
|
|
2280
|
+
} ? ReferralGetPayload<{
|
|
2281
|
+
populate: NestedPop;
|
|
2282
|
+
}> : Referral, Referral, Pop['referral']> | null : never;
|
|
2283
|
+
payment?: 'payment' extends keyof Pop ? _ApplyFields<Pop['payment'] extends {
|
|
2284
|
+
populate: infer NestedPop;
|
|
2285
|
+
} ? PaymentGetPayload<{
|
|
2286
|
+
populate: NestedPop;
|
|
2287
|
+
}> : Payment, Payment, Pop['payment']> | null : never;
|
|
2288
|
+
} : {});
|
|
2289
|
+
export type PartnerProfileGetPayload<P extends {
|
|
2290
|
+
populate?: any;
|
|
2291
|
+
} = {}> = PartnerProfile & (P extends {
|
|
2292
|
+
populate: infer Pop;
|
|
2293
|
+
} ? Pop extends '*' | true ? {
|
|
2294
|
+
user?: User | null;
|
|
2295
|
+
referrals?: Referral[];
|
|
2296
|
+
commissions?: PartnerCommission[];
|
|
2297
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2298
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2299
|
+
referrals?: 'referrals' extends Pop[number] ? Referral[] : never;
|
|
2300
|
+
commissions?: 'commissions' extends Pop[number] ? PartnerCommission[] : never;
|
|
2301
|
+
} : {
|
|
2302
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2303
|
+
populate: infer NestedPop;
|
|
2304
|
+
} ? UserGetPayload<{
|
|
2305
|
+
populate: NestedPop;
|
|
2306
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2307
|
+
referrals?: 'referrals' extends keyof Pop ? _ApplyFields<Pop['referrals'] extends {
|
|
2308
|
+
populate: infer NestedPop;
|
|
2309
|
+
} ? ReferralGetPayload<{
|
|
2310
|
+
populate: NestedPop;
|
|
2311
|
+
}> : Referral, Referral, Pop['referrals']>[] : never;
|
|
2312
|
+
commissions?: 'commissions' extends keyof Pop ? _ApplyFields<Pop['commissions'] extends {
|
|
2313
|
+
populate: infer NestedPop;
|
|
2314
|
+
} ? PartnerCommissionGetPayload<{
|
|
2315
|
+
populate: NestedPop;
|
|
2316
|
+
}> : PartnerCommission, PartnerCommission, Pop['commissions']>[] : never;
|
|
2317
|
+
} : {});
|
|
2318
|
+
export type PaymentGetPayload<P extends {
|
|
2319
|
+
populate?: any;
|
|
2320
|
+
} = {}> = Payment & (P extends {
|
|
2321
|
+
populate: infer Pop;
|
|
2322
|
+
} ? Pop extends '*' | true ? {
|
|
2323
|
+
subscription?: Subscription | null;
|
|
2324
|
+
plan?: Plan | null;
|
|
2325
|
+
tokenTransaction?: TokenTransaction | null;
|
|
2326
|
+
user?: User | null;
|
|
2327
|
+
partnerCommissions?: PartnerCommission[];
|
|
2328
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2329
|
+
subscription?: 'subscription' extends Pop[number] ? Subscription | null : never;
|
|
2330
|
+
plan?: 'plan' extends Pop[number] ? Plan | null : never;
|
|
2331
|
+
tokenTransaction?: 'tokenTransaction' extends Pop[number] ? TokenTransaction | null : never;
|
|
2332
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2333
|
+
partnerCommissions?: 'partnerCommissions' extends Pop[number] ? PartnerCommission[] : never;
|
|
2334
|
+
} : {
|
|
2335
|
+
subscription?: 'subscription' extends keyof Pop ? _ApplyFields<Pop['subscription'] extends {
|
|
2336
|
+
populate: infer NestedPop;
|
|
2337
|
+
} ? SubscriptionGetPayload<{
|
|
2338
|
+
populate: NestedPop;
|
|
2339
|
+
}> : Subscription, Subscription, Pop['subscription']> | null : never;
|
|
2340
|
+
plan?: 'plan' extends keyof Pop ? _ApplyFields<Pop['plan'] extends {
|
|
2341
|
+
populate: infer NestedPop;
|
|
2342
|
+
} ? PlanGetPayload<{
|
|
2343
|
+
populate: NestedPop;
|
|
2344
|
+
}> : Plan, Plan, Pop['plan']> | null : never;
|
|
2345
|
+
tokenTransaction?: 'tokenTransaction' extends keyof Pop ? _ApplyFields<Pop['tokenTransaction'] extends {
|
|
2346
|
+
populate: infer NestedPop;
|
|
2347
|
+
} ? TokenTransactionGetPayload<{
|
|
2348
|
+
populate: NestedPop;
|
|
2349
|
+
}> : TokenTransaction, TokenTransaction, Pop['tokenTransaction']> | null : never;
|
|
2350
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2351
|
+
populate: infer NestedPop;
|
|
2352
|
+
} ? UserGetPayload<{
|
|
2353
|
+
populate: NestedPop;
|
|
2354
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2355
|
+
partnerCommissions?: 'partnerCommissions' extends keyof Pop ? _ApplyFields<Pop['partnerCommissions'] extends {
|
|
2356
|
+
populate: infer NestedPop;
|
|
2357
|
+
} ? PartnerCommissionGetPayload<{
|
|
2358
|
+
populate: NestedPop;
|
|
2359
|
+
}> : PartnerCommission, PartnerCommission, Pop['partnerCommissions']>[] : never;
|
|
2360
|
+
} : {});
|
|
2361
|
+
export type PlanGetPayload<P extends {
|
|
2362
|
+
populate?: any;
|
|
2363
|
+
} = {}> = Plan & (P extends {
|
|
2364
|
+
populate: infer Pop;
|
|
2365
|
+
} ? Pop extends '*' | true ? {
|
|
2366
|
+
subscriptions?: Subscription[];
|
|
2367
|
+
payments?: Payment[];
|
|
2368
|
+
features?: PlanFeature[];
|
|
2369
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2370
|
+
subscriptions?: 'subscriptions' extends Pop[number] ? Subscription[] : never;
|
|
2371
|
+
payments?: 'payments' extends Pop[number] ? Payment[] : never;
|
|
2372
|
+
features?: 'features' extends Pop[number] ? PlanFeature[] : never;
|
|
2373
|
+
} : {
|
|
2374
|
+
subscriptions?: 'subscriptions' extends keyof Pop ? _ApplyFields<Pop['subscriptions'] extends {
|
|
2375
|
+
populate: infer NestedPop;
|
|
2376
|
+
} ? SubscriptionGetPayload<{
|
|
2377
|
+
populate: NestedPop;
|
|
2378
|
+
}> : Subscription, Subscription, Pop['subscriptions']>[] : never;
|
|
2379
|
+
payments?: 'payments' extends keyof Pop ? _ApplyFields<Pop['payments'] extends {
|
|
2380
|
+
populate: infer NestedPop;
|
|
2381
|
+
} ? PaymentGetPayload<{
|
|
2382
|
+
populate: NestedPop;
|
|
2383
|
+
}> : Payment, Payment, Pop['payments']>[] : never;
|
|
2384
|
+
features?: 'features' extends keyof Pop ? _ApplyFields<PlanFeature, PlanFeature, Pop['features']>[] : never;
|
|
2385
|
+
} : {});
|
|
2386
|
+
export type ProjectGetPayload<P extends {
|
|
2387
|
+
populate?: any;
|
|
2388
|
+
} = {}> = Project & (P extends {
|
|
2389
|
+
populate: infer Pop;
|
|
2390
|
+
} ? Pop extends '*' | true ? {
|
|
2391
|
+
item?: Item | null;
|
|
2392
|
+
user?: User | null;
|
|
2393
|
+
config?: (ProjectWebConfig | ProjectShareConfig)[];
|
|
2394
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2395
|
+
item?: 'item' extends Pop[number] ? Item | null : never;
|
|
2396
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2397
|
+
config?: 'config' extends Pop[number] ? (ProjectWebConfig | ProjectShareConfig)[] : never;
|
|
2398
|
+
} : {
|
|
2399
|
+
item?: 'item' extends keyof Pop ? _ApplyFields<Pop['item'] extends {
|
|
2400
|
+
populate: infer NestedPop;
|
|
2401
|
+
} ? ItemGetPayload<{
|
|
2402
|
+
populate: NestedPop;
|
|
2403
|
+
}> : Item, Item, Pop['item']> | null : never;
|
|
2404
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2405
|
+
populate: infer NestedPop;
|
|
2406
|
+
} ? UserGetPayload<{
|
|
2407
|
+
populate: NestedPop;
|
|
2408
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2409
|
+
config?: 'config' extends keyof Pop ? (ProjectWebConfig | ProjectShareConfig)[] : never;
|
|
2410
|
+
} : {});
|
|
2411
|
+
export type ProjectChatGetPayload<P extends {
|
|
2412
|
+
populate?: any;
|
|
2413
|
+
} = {}> = ProjectChat & (P extends {
|
|
2414
|
+
populate: infer Pop;
|
|
2415
|
+
} ? Pop extends '*' | true ? {
|
|
2416
|
+
project?: Project | null;
|
|
2417
|
+
messages?: SharedChat[];
|
|
2418
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2419
|
+
project?: 'project' extends Pop[number] ? Project | null : never;
|
|
2420
|
+
messages?: 'messages' extends Pop[number] ? SharedChat[] : never;
|
|
2421
|
+
} : {
|
|
2422
|
+
project?: 'project' extends keyof Pop ? _ApplyFields<Pop['project'] extends {
|
|
2423
|
+
populate: infer NestedPop;
|
|
2424
|
+
} ? ProjectGetPayload<{
|
|
2425
|
+
populate: NestedPop;
|
|
2426
|
+
}> : Project, Project, Pop['project']> | null : never;
|
|
2427
|
+
messages?: 'messages' extends keyof Pop ? _ApplyFields<SharedChat, SharedChat, Pop['messages']>[] : never;
|
|
2428
|
+
} : {});
|
|
2429
|
+
export type ReferralGetPayload<P extends {
|
|
2430
|
+
populate?: any;
|
|
2431
|
+
} = {}> = Referral & (P extends {
|
|
2432
|
+
populate: infer Pop;
|
|
2433
|
+
} ? Pop extends '*' | true ? {
|
|
2434
|
+
partner?: PartnerProfile | null;
|
|
2435
|
+
user?: User | null;
|
|
2436
|
+
commissions?: PartnerCommission[];
|
|
2437
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2438
|
+
partner?: 'partner' extends Pop[number] ? PartnerProfile | null : never;
|
|
2439
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2440
|
+
commissions?: 'commissions' extends Pop[number] ? PartnerCommission[] : never;
|
|
2441
|
+
} : {
|
|
2442
|
+
partner?: 'partner' extends keyof Pop ? _ApplyFields<Pop['partner'] extends {
|
|
2443
|
+
populate: infer NestedPop;
|
|
2444
|
+
} ? PartnerProfileGetPayload<{
|
|
2445
|
+
populate: NestedPop;
|
|
2446
|
+
}> : PartnerProfile, PartnerProfile, Pop['partner']> | null : never;
|
|
2447
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2448
|
+
populate: infer NestedPop;
|
|
2449
|
+
} ? UserGetPayload<{
|
|
2450
|
+
populate: NestedPop;
|
|
2451
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2452
|
+
commissions?: 'commissions' extends keyof Pop ? _ApplyFields<Pop['commissions'] extends {
|
|
2453
|
+
populate: infer NestedPop;
|
|
2454
|
+
} ? PartnerCommissionGetPayload<{
|
|
2455
|
+
populate: NestedPop;
|
|
2456
|
+
}> : PartnerCommission, PartnerCommission, Pop['commissions']>[] : never;
|
|
2457
|
+
} : {});
|
|
2458
|
+
export type SubscriptionGetPayload<P extends {
|
|
2459
|
+
populate?: any;
|
|
2460
|
+
} = {}> = Subscription & (P extends {
|
|
2461
|
+
populate: infer Pop;
|
|
2462
|
+
} ? Pop extends '*' | true ? {
|
|
2463
|
+
owner?: User | null;
|
|
2464
|
+
plan?: Plan | null;
|
|
2465
|
+
team?: Team | null;
|
|
2466
|
+
payments?: Payment[];
|
|
2467
|
+
accesses?: Access[];
|
|
2468
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2469
|
+
owner?: 'owner' extends Pop[number] ? User | null : never;
|
|
2470
|
+
plan?: 'plan' extends Pop[number] ? Plan | null : never;
|
|
2471
|
+
team?: 'team' extends Pop[number] ? Team | null : never;
|
|
2472
|
+
payments?: 'payments' extends Pop[number] ? Payment[] : never;
|
|
2473
|
+
accesses?: 'accesses' extends Pop[number] ? Access[] : never;
|
|
2474
|
+
} : {
|
|
2475
|
+
owner?: 'owner' extends keyof Pop ? _ApplyFields<Pop['owner'] extends {
|
|
2476
|
+
populate: infer NestedPop;
|
|
2477
|
+
} ? UserGetPayload<{
|
|
2478
|
+
populate: NestedPop;
|
|
2479
|
+
}> : User, User, Pop['owner']> | null : never;
|
|
2480
|
+
plan?: 'plan' extends keyof Pop ? _ApplyFields<Pop['plan'] extends {
|
|
2481
|
+
populate: infer NestedPop;
|
|
2482
|
+
} ? PlanGetPayload<{
|
|
2483
|
+
populate: NestedPop;
|
|
2484
|
+
}> : Plan, Plan, Pop['plan']> | null : never;
|
|
2485
|
+
team?: 'team' extends keyof Pop ? _ApplyFields<Pop['team'] extends {
|
|
2486
|
+
populate: infer NestedPop;
|
|
2487
|
+
} ? TeamGetPayload<{
|
|
2488
|
+
populate: NestedPop;
|
|
2489
|
+
}> : Team, Team, Pop['team']> | null : never;
|
|
2490
|
+
payments?: 'payments' extends keyof Pop ? _ApplyFields<Pop['payments'] extends {
|
|
2491
|
+
populate: infer NestedPop;
|
|
2492
|
+
} ? PaymentGetPayload<{
|
|
2493
|
+
populate: NestedPop;
|
|
2494
|
+
}> : Payment, Payment, Pop['payments']>[] : never;
|
|
2495
|
+
accesses?: 'accesses' extends keyof Pop ? _ApplyFields<Pop['accesses'] extends {
|
|
2496
|
+
populate: infer NestedPop;
|
|
2497
|
+
} ? AccessGetPayload<{
|
|
2498
|
+
populate: NestedPop;
|
|
2499
|
+
}> : Access, Access, Pop['accesses']>[] : never;
|
|
2500
|
+
} : {});
|
|
2501
|
+
export type SupportGetPayload<P extends {
|
|
2502
|
+
populate?: any;
|
|
2503
|
+
} = {}> = Support & (P extends {
|
|
2504
|
+
populate: infer Pop;
|
|
2505
|
+
} ? Pop extends '*' | true ? {
|
|
2506
|
+
user?: User | null;
|
|
2507
|
+
theme?: SupportTheme | null;
|
|
2508
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2509
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2510
|
+
theme?: 'theme' extends Pop[number] ? SupportTheme | null : never;
|
|
2511
|
+
} : {
|
|
2512
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2513
|
+
populate: infer NestedPop;
|
|
2514
|
+
} ? UserGetPayload<{
|
|
2515
|
+
populate: NestedPop;
|
|
2516
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2517
|
+
theme?: 'theme' extends keyof Pop ? _ApplyFields<Pop['theme'] extends {
|
|
2518
|
+
populate: infer NestedPop;
|
|
2519
|
+
} ? SupportThemeGetPayload<{
|
|
2520
|
+
populate: NestedPop;
|
|
2521
|
+
}> : SupportTheme, SupportTheme, Pop['theme']> | null : never;
|
|
2522
|
+
} : {});
|
|
2523
|
+
export type SupportCategoryGetPayload<P extends {
|
|
2524
|
+
populate?: any;
|
|
2525
|
+
} = {}> = SupportCategory & (P extends {
|
|
2526
|
+
populate: infer Pop;
|
|
2527
|
+
} ? Pop extends '*' | true ? {
|
|
2528
|
+
image?: MediaFile;
|
|
2529
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2530
|
+
image?: 'image' extends Pop[number] ? MediaFile : never;
|
|
2531
|
+
} : {
|
|
2532
|
+
image?: 'image' extends keyof Pop ? _ApplyFields<MediaFile, MediaFile, Pop['image']> : never;
|
|
2533
|
+
} : {});
|
|
2534
|
+
export type SupportCenterGetPayload<P extends {
|
|
2535
|
+
populate?: any;
|
|
2536
|
+
} = {}> = SupportCenter & (P extends {
|
|
2537
|
+
populate: infer Pop;
|
|
2538
|
+
} ? Pop extends '*' | true ? {
|
|
2539
|
+
categories?: SupportCategory[];
|
|
2540
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2541
|
+
categories?: 'categories' extends Pop[number] ? SupportCategory[] : never;
|
|
2542
|
+
} : {
|
|
2543
|
+
categories?: 'categories' extends keyof Pop ? _ApplyFields<Pop['categories'] extends {
|
|
2544
|
+
populate: infer NestedPop;
|
|
2545
|
+
} ? SupportCategoryGetPayload<{
|
|
2546
|
+
populate: NestedPop;
|
|
2547
|
+
}> : SupportCategory, SupportCategory, Pop['categories']>[] : never;
|
|
2548
|
+
} : {});
|
|
2549
|
+
export type SupportThemeGetPayload<P extends {
|
|
2550
|
+
populate?: any;
|
|
2551
|
+
} = {}> = SupportTheme & (P extends {
|
|
2552
|
+
populate: infer Pop;
|
|
2553
|
+
} ? Pop extends '*' | true ? {
|
|
2554
|
+
supports?: Support[];
|
|
2555
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2556
|
+
supports?: 'supports' extends Pop[number] ? Support[] : never;
|
|
2557
|
+
} : {
|
|
2558
|
+
supports?: 'supports' extends keyof Pop ? _ApplyFields<Pop['supports'] extends {
|
|
2559
|
+
populate: infer NestedPop;
|
|
2560
|
+
} ? SupportGetPayload<{
|
|
2561
|
+
populate: NestedPop;
|
|
2562
|
+
}> : Support, Support, Pop['supports']>[] : never;
|
|
2563
|
+
} : {});
|
|
2564
|
+
export type TeamGetPayload<P extends {
|
|
2565
|
+
populate?: any;
|
|
2566
|
+
} = {}> = Team & (P extends {
|
|
2567
|
+
populate: infer Pop;
|
|
2568
|
+
} ? Pop extends '*' | true ? {
|
|
2569
|
+
subscription?: Subscription | null;
|
|
2570
|
+
members?: TeamMember[];
|
|
2571
|
+
invitations?: TeamInvitation[];
|
|
2572
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2573
|
+
subscription?: 'subscription' extends Pop[number] ? Subscription | null : never;
|
|
2574
|
+
members?: 'members' extends Pop[number] ? TeamMember[] : never;
|
|
2575
|
+
invitations?: 'invitations' extends Pop[number] ? TeamInvitation[] : never;
|
|
2576
|
+
} : {
|
|
2577
|
+
subscription?: 'subscription' extends keyof Pop ? _ApplyFields<Pop['subscription'] extends {
|
|
2578
|
+
populate: infer NestedPop;
|
|
2579
|
+
} ? SubscriptionGetPayload<{
|
|
2580
|
+
populate: NestedPop;
|
|
2581
|
+
}> : Subscription, Subscription, Pop['subscription']> | null : never;
|
|
2582
|
+
members?: 'members' extends keyof Pop ? _ApplyFields<Pop['members'] extends {
|
|
2583
|
+
populate: infer NestedPop;
|
|
2584
|
+
} ? TeamMemberGetPayload<{
|
|
2585
|
+
populate: NestedPop;
|
|
2586
|
+
}> : TeamMember, TeamMember, Pop['members']>[] : never;
|
|
2587
|
+
invitations?: 'invitations' extends keyof Pop ? _ApplyFields<Pop['invitations'] extends {
|
|
2588
|
+
populate: infer NestedPop;
|
|
2589
|
+
} ? TeamInvitationGetPayload<{
|
|
2590
|
+
populate: NestedPop;
|
|
2591
|
+
}> : TeamInvitation, TeamInvitation, Pop['invitations']>[] : never;
|
|
2592
|
+
} : {});
|
|
2593
|
+
export type TeamInvitationGetPayload<P extends {
|
|
2594
|
+
populate?: any;
|
|
2595
|
+
} = {}> = TeamInvitation & (P extends {
|
|
2596
|
+
populate: infer Pop;
|
|
2597
|
+
} ? Pop extends '*' | true ? {
|
|
2598
|
+
team?: Team | null;
|
|
2599
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2600
|
+
team?: 'team' extends Pop[number] ? Team | null : never;
|
|
2601
|
+
} : {
|
|
2602
|
+
team?: 'team' extends keyof Pop ? _ApplyFields<Pop['team'] extends {
|
|
2603
|
+
populate: infer NestedPop;
|
|
2604
|
+
} ? TeamGetPayload<{
|
|
2605
|
+
populate: NestedPop;
|
|
2606
|
+
}> : Team, Team, Pop['team']> | null : never;
|
|
2607
|
+
} : {});
|
|
2608
|
+
export type TeamMemberGetPayload<P extends {
|
|
2609
|
+
populate?: any;
|
|
2610
|
+
} = {}> = TeamMember & (P extends {
|
|
2611
|
+
populate: infer Pop;
|
|
2612
|
+
} ? Pop extends '*' | true ? {
|
|
2613
|
+
team?: Team | null;
|
|
2614
|
+
user?: User | null;
|
|
2615
|
+
accesses?: Access[];
|
|
2616
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2617
|
+
team?: 'team' extends Pop[number] ? Team | null : never;
|
|
2618
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2619
|
+
accesses?: 'accesses' extends Pop[number] ? Access[] : never;
|
|
2620
|
+
} : {
|
|
2621
|
+
team?: 'team' extends keyof Pop ? _ApplyFields<Pop['team'] extends {
|
|
2622
|
+
populate: infer NestedPop;
|
|
2623
|
+
} ? TeamGetPayload<{
|
|
2624
|
+
populate: NestedPop;
|
|
2625
|
+
}> : Team, Team, Pop['team']> | null : never;
|
|
2626
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2627
|
+
populate: infer NestedPop;
|
|
2628
|
+
} ? UserGetPayload<{
|
|
2629
|
+
populate: NestedPop;
|
|
2630
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2631
|
+
accesses?: 'accesses' extends keyof Pop ? _ApplyFields<Pop['accesses'] extends {
|
|
2632
|
+
populate: infer NestedPop;
|
|
2633
|
+
} ? AccessGetPayload<{
|
|
2634
|
+
populate: NestedPop;
|
|
2635
|
+
}> : Access, Access, Pop['accesses']>[] : never;
|
|
2636
|
+
} : {});
|
|
2637
|
+
export type TokenTransactionGetPayload<P extends {
|
|
2638
|
+
populate?: any;
|
|
2639
|
+
} = {}> = TokenTransaction & (P extends {
|
|
2640
|
+
populate: infer Pop;
|
|
2641
|
+
} ? Pop extends '*' | true ? {
|
|
2642
|
+
user?: User | null;
|
|
2643
|
+
payment?: Payment | null;
|
|
2644
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2645
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2646
|
+
payment?: 'payment' extends Pop[number] ? Payment | null : never;
|
|
2647
|
+
} : {
|
|
2648
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2649
|
+
populate: infer NestedPop;
|
|
2650
|
+
} ? UserGetPayload<{
|
|
2651
|
+
populate: NestedPop;
|
|
2652
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2653
|
+
payment?: 'payment' extends keyof Pop ? _ApplyFields<Pop['payment'] extends {
|
|
2654
|
+
populate: infer NestedPop;
|
|
2655
|
+
} ? PaymentGetPayload<{
|
|
2656
|
+
populate: NestedPop;
|
|
2657
|
+
}> : Payment, Payment, Pop['payment']> | null : never;
|
|
2658
|
+
} : {});
|
|
2659
|
+
export type UserSessionGetPayload<P extends {
|
|
2660
|
+
populate?: any;
|
|
2661
|
+
} = {}> = UserSession & (P extends {
|
|
2662
|
+
populate: infer Pop;
|
|
2663
|
+
} ? Pop extends '*' | true ? {
|
|
2664
|
+
user?: User | null;
|
|
2665
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2666
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2667
|
+
} : {
|
|
2668
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2669
|
+
populate: infer NestedPop;
|
|
2670
|
+
} ? UserGetPayload<{
|
|
2671
|
+
populate: NestedPop;
|
|
2672
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2673
|
+
} : {});
|
|
2674
|
+
export type WebsiteGetPayload<P extends {
|
|
2675
|
+
populate?: any;
|
|
2676
|
+
} = {}> = Website & (P extends {
|
|
2677
|
+
populate: infer Pop;
|
|
2678
|
+
} ? Pop extends '*' | true ? {
|
|
2679
|
+
user?: User | null;
|
|
2680
|
+
} : Pop extends readonly (infer _)[] ? {
|
|
2681
|
+
user?: 'user' extends Pop[number] ? User | null : never;
|
|
2682
|
+
} : {
|
|
2683
|
+
user?: 'user' extends keyof Pop ? _ApplyFields<Pop['user'] extends {
|
|
2684
|
+
populate: infer NestedPop;
|
|
2685
|
+
} ? UserGetPayload<{
|
|
2686
|
+
populate: NestedPop;
|
|
2687
|
+
}> : User, User, Pop['user']> | null : never;
|
|
2688
|
+
} : {});
|
|
2689
|
+
/** String filter operators */
|
|
2690
|
+
export interface StringFilterOperators {
|
|
2691
|
+
$eq?: string;
|
|
2692
|
+
$eqi?: string;
|
|
2693
|
+
$ne?: string;
|
|
2694
|
+
$nei?: string;
|
|
2695
|
+
$in?: string[];
|
|
2696
|
+
$notIn?: string[];
|
|
2697
|
+
$contains?: string;
|
|
2698
|
+
$notContains?: string;
|
|
2699
|
+
$containsi?: string;
|
|
2700
|
+
$notContainsi?: string;
|
|
2701
|
+
$startsWith?: string;
|
|
2702
|
+
$startsWithi?: string;
|
|
2703
|
+
$endsWith?: string;
|
|
2704
|
+
$endsWithi?: string;
|
|
2705
|
+
$null?: boolean;
|
|
2706
|
+
$notNull?: boolean;
|
|
2707
|
+
}
|
|
2708
|
+
/** Number filter operators */
|
|
2709
|
+
export interface NumberFilterOperators {
|
|
2710
|
+
$eq?: number;
|
|
2711
|
+
$ne?: number;
|
|
2712
|
+
$lt?: number;
|
|
2713
|
+
$lte?: number;
|
|
2714
|
+
$gt?: number;
|
|
2715
|
+
$gte?: number;
|
|
2716
|
+
$in?: number[];
|
|
2717
|
+
$notIn?: number[];
|
|
2718
|
+
$between?: [number, number];
|
|
2719
|
+
$null?: boolean;
|
|
2720
|
+
$notNull?: boolean;
|
|
2721
|
+
}
|
|
2722
|
+
/** Boolean filter operators */
|
|
2723
|
+
export interface BooleanFilterOperators {
|
|
2724
|
+
$eq?: boolean;
|
|
2725
|
+
$ne?: boolean;
|
|
2726
|
+
$null?: boolean;
|
|
2727
|
+
$notNull?: boolean;
|
|
2728
|
+
}
|
|
2729
|
+
/** Date filter operators (dates are strings in Strapi) */
|
|
2730
|
+
export interface DateFilterOperators {
|
|
2731
|
+
$eq?: string;
|
|
2732
|
+
$ne?: string;
|
|
2733
|
+
$lt?: string;
|
|
2734
|
+
$lte?: string;
|
|
2735
|
+
$gt?: string;
|
|
2736
|
+
$gte?: string;
|
|
2737
|
+
$in?: string[];
|
|
2738
|
+
$notIn?: string[];
|
|
2739
|
+
$between?: [string, string];
|
|
2740
|
+
$null?: boolean;
|
|
2741
|
+
$notNull?: boolean;
|
|
2742
|
+
}
|
|
2743
|
+
/** ID filter operators (for relations) */
|
|
2744
|
+
export interface IdFilterOperators {
|
|
2745
|
+
$eq?: number | string;
|
|
2746
|
+
$ne?: number | string;
|
|
2747
|
+
$in?: (number | string)[];
|
|
2748
|
+
$notIn?: (number | string)[];
|
|
2749
|
+
$null?: boolean;
|
|
2750
|
+
$notNull?: boolean;
|
|
2751
|
+
}
|
|
2752
|
+
/** Relation filter - filter by nested fields */
|
|
2753
|
+
export type RelationFilter<T> = {
|
|
2754
|
+
id?: number | IdFilterOperators;
|
|
2755
|
+
documentId?: string | StringFilterOperators;
|
|
2756
|
+
} & {
|
|
2757
|
+
[K in keyof T]?: T[K] extends string ? string | StringFilterOperators : T[K] extends number ? number | NumberFilterOperators : T[K] extends boolean ? boolean | BooleanFilterOperators : any;
|
|
2758
|
+
};
|
|
2759
|
+
/** Logical operators for combining filters */
|
|
2760
|
+
export interface LogicalOperators<T> {
|
|
2761
|
+
$and?: T[];
|
|
2762
|
+
$or?: T[];
|
|
2763
|
+
$not?: T;
|
|
2764
|
+
}
|
|
2765
|
+
/** Sort direction */
|
|
2766
|
+
export type SortDirection = 'asc' | 'desc';
|
|
2767
|
+
/** Sort option - can be a field name or field:direction */
|
|
2768
|
+
export type SortOption<T> = (keyof T & string) | `${keyof T & string}:${SortDirection}`;
|
|
2769
|
+
/** Typed query parameters */
|
|
2770
|
+
export interface TypedQueryParams<TEntity, TFilters = Record<string, any>, TPopulate = any> {
|
|
2771
|
+
/** Type-safe filters */
|
|
2772
|
+
filters?: TFilters;
|
|
2773
|
+
/** Sort by field(s) */
|
|
2774
|
+
sort?: SortOption<TEntity> | SortOption<TEntity>[];
|
|
2775
|
+
/** Pagination options */
|
|
2776
|
+
pagination?: {
|
|
2777
|
+
page?: number;
|
|
2778
|
+
pageSize?: number;
|
|
2779
|
+
limit?: number;
|
|
2780
|
+
start?: number;
|
|
2781
|
+
};
|
|
2782
|
+
/** Populate relations */
|
|
2783
|
+
populate?: TPopulate;
|
|
2784
|
+
/** Select specific fields */
|
|
2785
|
+
fields?: (keyof TEntity)[];
|
|
2786
|
+
}
|
|
2787
|
+
/** Type-safe filters for Permission */
|
|
2788
|
+
export interface PermissionFilters extends LogicalOperators<PermissionFilters> {
|
|
2789
|
+
id?: number | IdFilterOperators;
|
|
2790
|
+
documentId?: string | StringFilterOperators;
|
|
2791
|
+
action?: string | StringFilterOperators;
|
|
2792
|
+
role?: {
|
|
2793
|
+
id?: number | IdFilterOperators;
|
|
2794
|
+
documentId?: string | StringFilterOperators;
|
|
2795
|
+
[key: string]: any;
|
|
2796
|
+
};
|
|
2797
|
+
}
|
|
2798
|
+
/** Type-safe filters for Role */
|
|
2799
|
+
export interface RoleFilters extends LogicalOperators<RoleFilters> {
|
|
2800
|
+
id?: number | IdFilterOperators;
|
|
2801
|
+
documentId?: string | StringFilterOperators;
|
|
2802
|
+
name?: string | StringFilterOperators;
|
|
2803
|
+
description?: string | StringFilterOperators;
|
|
2804
|
+
type?: string | StringFilterOperators;
|
|
2805
|
+
permissions?: {
|
|
2806
|
+
id?: number | IdFilterOperators;
|
|
2807
|
+
documentId?: string | StringFilterOperators;
|
|
2808
|
+
[key: string]: any;
|
|
2809
|
+
};
|
|
2810
|
+
users?: {
|
|
2811
|
+
id?: number | IdFilterOperators;
|
|
2812
|
+
documentId?: string | StringFilterOperators;
|
|
2813
|
+
[key: string]: any;
|
|
2814
|
+
};
|
|
2815
|
+
}
|
|
2816
|
+
/** Type-safe filters for User */
|
|
2817
|
+
export interface UserFilters extends LogicalOperators<UserFilters> {
|
|
2818
|
+
id?: number | IdFilterOperators;
|
|
2819
|
+
documentId?: string | StringFilterOperators;
|
|
2820
|
+
username?: string | StringFilterOperators;
|
|
2821
|
+
email?: string | StringFilterOperators;
|
|
2822
|
+
provider?: string | StringFilterOperators;
|
|
2823
|
+
confirmed?: boolean | BooleanFilterOperators;
|
|
2824
|
+
blocked?: boolean | BooleanFilterOperators;
|
|
2825
|
+
firstName?: string | StringFilterOperators;
|
|
2826
|
+
lastName?: string | StringFilterOperators;
|
|
2827
|
+
address?: string | StringFilterOperators;
|
|
2828
|
+
city?: string | StringFilterOperators;
|
|
2829
|
+
region?: string | StringFilterOperators;
|
|
2830
|
+
zip?: string | StringFilterOperators;
|
|
2831
|
+
country?: string | StringFilterOperators;
|
|
2832
|
+
stripeCustomerId?: string | StringFilterOperators;
|
|
2833
|
+
isPartner?: boolean | BooleanFilterOperators;
|
|
2834
|
+
isAdmin?: boolean | BooleanFilterOperators;
|
|
2835
|
+
tokenBalance?: number | NumberFilterOperators;
|
|
2836
|
+
role?: {
|
|
2837
|
+
id?: number | IdFilterOperators;
|
|
2838
|
+
documentId?: string | StringFilterOperators;
|
|
2839
|
+
[key: string]: any;
|
|
2840
|
+
};
|
|
2841
|
+
supports?: {
|
|
2842
|
+
id?: number | IdFilterOperators;
|
|
2843
|
+
documentId?: string | StringFilterOperators;
|
|
2844
|
+
[key: string]: any;
|
|
2845
|
+
};
|
|
2846
|
+
access?: {
|
|
2847
|
+
id?: number | IdFilterOperators;
|
|
2848
|
+
documentId?: string | StringFilterOperators;
|
|
2849
|
+
[key: string]: any;
|
|
2850
|
+
};
|
|
2851
|
+
session?: {
|
|
2852
|
+
id?: number | IdFilterOperators;
|
|
2853
|
+
documentId?: string | StringFilterOperators;
|
|
2854
|
+
[key: string]: any;
|
|
2855
|
+
};
|
|
2856
|
+
projects?: {
|
|
2857
|
+
id?: number | IdFilterOperators;
|
|
2858
|
+
documentId?: string | StringFilterOperators;
|
|
2859
|
+
[key: string]: any;
|
|
2860
|
+
};
|
|
2861
|
+
websites?: {
|
|
2862
|
+
id?: number | IdFilterOperators;
|
|
2863
|
+
documentId?: string | StringFilterOperators;
|
|
2864
|
+
[key: string]: any;
|
|
2865
|
+
};
|
|
2866
|
+
referral?: {
|
|
2867
|
+
id?: number | IdFilterOperators;
|
|
2868
|
+
documentId?: string | StringFilterOperators;
|
|
2869
|
+
[key: string]: any;
|
|
2870
|
+
};
|
|
2871
|
+
partner?: {
|
|
2872
|
+
id?: number | IdFilterOperators;
|
|
2873
|
+
documentId?: string | StringFilterOperators;
|
|
2874
|
+
[key: string]: any;
|
|
2875
|
+
};
|
|
2876
|
+
subscriptions?: {
|
|
2877
|
+
id?: number | IdFilterOperators;
|
|
2878
|
+
documentId?: string | StringFilterOperators;
|
|
2879
|
+
[key: string]: any;
|
|
2880
|
+
};
|
|
2881
|
+
teamMemberships?: {
|
|
2882
|
+
id?: number | IdFilterOperators;
|
|
2883
|
+
documentId?: string | StringFilterOperators;
|
|
2884
|
+
[key: string]: any;
|
|
2885
|
+
};
|
|
2886
|
+
payments?: {
|
|
2887
|
+
id?: number | IdFilterOperators;
|
|
2888
|
+
documentId?: string | StringFilterOperators;
|
|
2889
|
+
[key: string]: any;
|
|
2890
|
+
};
|
|
2891
|
+
tokenTransactions?: {
|
|
2892
|
+
id?: number | IdFilterOperators;
|
|
2893
|
+
documentId?: string | StringFilterOperators;
|
|
2894
|
+
[key: string]: any;
|
|
2895
|
+
};
|
|
2896
|
+
}
|
|
2897
|
+
/** Type-safe filters for Access */
|
|
2898
|
+
export interface AccessFilters extends LogicalOperators<AccessFilters> {
|
|
2899
|
+
id?: number | IdFilterOperators;
|
|
2900
|
+
documentId?: string | StringFilterOperators;
|
|
2901
|
+
startedAt?: string | DateFilterOperators;
|
|
2902
|
+
expiresAt?: string | DateFilterOperators;
|
|
2903
|
+
accessSource?: ('individual' | 'team' | 'free') | StringFilterOperators;
|
|
2904
|
+
user?: {
|
|
2905
|
+
id?: number | IdFilterOperators;
|
|
2906
|
+
documentId?: string | StringFilterOperators;
|
|
2907
|
+
[key: string]: any;
|
|
2908
|
+
};
|
|
2909
|
+
plan?: {
|
|
2910
|
+
id?: number | IdFilterOperators;
|
|
2911
|
+
documentId?: string | StringFilterOperators;
|
|
2912
|
+
[key: string]: any;
|
|
2913
|
+
};
|
|
2914
|
+
subscription?: {
|
|
2915
|
+
id?: number | IdFilterOperators;
|
|
2916
|
+
documentId?: string | StringFilterOperators;
|
|
2917
|
+
[key: string]: any;
|
|
2918
|
+
};
|
|
2919
|
+
teamMembership?: {
|
|
2920
|
+
id?: number | IdFilterOperators;
|
|
2921
|
+
documentId?: string | StringFilterOperators;
|
|
2922
|
+
[key: string]: any;
|
|
2923
|
+
};
|
|
2924
|
+
}
|
|
2925
|
+
/** Type-safe filters for AiStudio */
|
|
2926
|
+
export interface AiStudioFilters extends LogicalOperators<AiStudioFilters> {
|
|
2927
|
+
id?: number | IdFilterOperators;
|
|
2928
|
+
documentId?: string | StringFilterOperators;
|
|
2929
|
+
prompt?: string | StringFilterOperators;
|
|
2930
|
+
}
|
|
2931
|
+
/** Type-safe filters for Auth */
|
|
2932
|
+
export interface AuthFilters extends LogicalOperators<AuthFilters> {
|
|
2933
|
+
id?: number | IdFilterOperators;
|
|
2934
|
+
documentId?: string | StringFilterOperators;
|
|
2935
|
+
background?: {
|
|
2936
|
+
id?: number | IdFilterOperators;
|
|
2937
|
+
[key: string]: any;
|
|
2938
|
+
};
|
|
2939
|
+
}
|
|
2940
|
+
/** Type-safe filters for Banner */
|
|
2941
|
+
export interface BannerFilters extends LogicalOperators<BannerFilters> {
|
|
2942
|
+
id?: number | IdFilterOperators;
|
|
2943
|
+
documentId?: string | StringFilterOperators;
|
|
2944
|
+
enabled?: boolean | BooleanFilterOperators;
|
|
2945
|
+
href?: string | StringFilterOperators;
|
|
2946
|
+
color?: string | StringFilterOperators;
|
|
2947
|
+
image?: {
|
|
2948
|
+
id?: number | IdFilterOperators;
|
|
2949
|
+
[key: string]: any;
|
|
2950
|
+
};
|
|
2951
|
+
}
|
|
2952
|
+
/** Type-safe filters for Catalog */
|
|
2953
|
+
export interface CatalogFilters extends LogicalOperators<CatalogFilters> {
|
|
2954
|
+
id?: number | IdFilterOperators;
|
|
2955
|
+
documentId?: string | StringFilterOperators;
|
|
2956
|
+
categories?: {
|
|
2957
|
+
id?: number | IdFilterOperators;
|
|
2958
|
+
documentId?: string | StringFilterOperators;
|
|
2959
|
+
[key: string]: any;
|
|
2960
|
+
};
|
|
2961
|
+
}
|
|
2962
|
+
/** Type-safe filters for Category */
|
|
2963
|
+
export interface CategoryFilters extends LogicalOperators<CategoryFilters> {
|
|
2964
|
+
id?: number | IdFilterOperators;
|
|
2965
|
+
documentId?: string | StringFilterOperators;
|
|
2966
|
+
title?: string | StringFilterOperators;
|
|
2967
|
+
description?: string | StringFilterOperators;
|
|
2968
|
+
type?: string | StringFilterOperators;
|
|
2969
|
+
items?: {
|
|
2970
|
+
id?: number | IdFilterOperators;
|
|
2971
|
+
documentId?: string | StringFilterOperators;
|
|
2972
|
+
[key: string]: any;
|
|
2973
|
+
};
|
|
2974
|
+
image?: {
|
|
2975
|
+
id?: number | IdFilterOperators;
|
|
2976
|
+
[key: string]: any;
|
|
2977
|
+
};
|
|
2978
|
+
}
|
|
2979
|
+
/** Type-safe filters for Faq */
|
|
2980
|
+
export interface FaqFilters extends LogicalOperators<FaqFilters> {
|
|
2981
|
+
id?: number | IdFilterOperators;
|
|
2982
|
+
documentId?: string | StringFilterOperators;
|
|
2983
|
+
}
|
|
2984
|
+
/** Type-safe filters for Gallery */
|
|
2985
|
+
export interface GalleryFilters extends LogicalOperators<GalleryFilters> {
|
|
2986
|
+
id?: number | IdFilterOperators;
|
|
2987
|
+
documentId?: string | StringFilterOperators;
|
|
2988
|
+
title?: string | StringFilterOperators;
|
|
2989
|
+
category?: {
|
|
2990
|
+
id?: number | IdFilterOperators;
|
|
2991
|
+
documentId?: string | StringFilterOperators;
|
|
2992
|
+
[key: string]: any;
|
|
2993
|
+
};
|
|
2994
|
+
image?: {
|
|
2995
|
+
id?: number | IdFilterOperators;
|
|
2996
|
+
[key: string]: any;
|
|
2997
|
+
};
|
|
2998
|
+
}
|
|
2999
|
+
/** Type-safe filters for Guide */
|
|
3000
|
+
export interface GuideFilters extends LogicalOperators<GuideFilters> {
|
|
3001
|
+
id?: number | IdFilterOperators;
|
|
3002
|
+
documentId?: string | StringFilterOperators;
|
|
3003
|
+
title?: string | StringFilterOperators;
|
|
3004
|
+
slug?: string | StringFilterOperators;
|
|
3005
|
+
description?: string | StringFilterOperators;
|
|
3006
|
+
image?: {
|
|
3007
|
+
id?: number | IdFilterOperators;
|
|
3008
|
+
[key: string]: any;
|
|
3009
|
+
};
|
|
3010
|
+
}
|
|
3011
|
+
/** Type-safe filters for GuideCategory */
|
|
3012
|
+
export interface GuideCategoryFilters extends LogicalOperators<GuideCategoryFilters> {
|
|
3013
|
+
id?: number | IdFilterOperators;
|
|
3014
|
+
documentId?: string | StringFilterOperators;
|
|
3015
|
+
name?: string | StringFilterOperators;
|
|
3016
|
+
slug?: string | StringFilterOperators;
|
|
3017
|
+
guides?: {
|
|
3018
|
+
id?: number | IdFilterOperators;
|
|
3019
|
+
documentId?: string | StringFilterOperators;
|
|
3020
|
+
[key: string]: any;
|
|
3021
|
+
};
|
|
3022
|
+
}
|
|
3023
|
+
/** Type-safe filters for GuidePage */
|
|
3024
|
+
export interface GuidePageFilters extends LogicalOperators<GuidePageFilters> {
|
|
3025
|
+
id?: number | IdFilterOperators;
|
|
3026
|
+
documentId?: string | StringFilterOperators;
|
|
3027
|
+
categories?: {
|
|
3028
|
+
id?: number | IdFilterOperators;
|
|
3029
|
+
documentId?: string | StringFilterOperators;
|
|
3030
|
+
[key: string]: any;
|
|
3031
|
+
};
|
|
3032
|
+
}
|
|
3033
|
+
/** Type-safe filters for Item */
|
|
3034
|
+
export interface ItemFilters extends LogicalOperators<ItemFilters> {
|
|
3035
|
+
id?: number | IdFilterOperators;
|
|
3036
|
+
documentId?: string | StringFilterOperators;
|
|
3037
|
+
title?: string | StringFilterOperators;
|
|
3038
|
+
description?: string | StringFilterOperators;
|
|
3039
|
+
isFree?: boolean | BooleanFilterOperators;
|
|
3040
|
+
run?: number | NumberFilterOperators;
|
|
3041
|
+
type?: string | StringFilterOperators;
|
|
3042
|
+
subCategory?: string | StringFilterOperators;
|
|
3043
|
+
isAvailable?: boolean | BooleanFilterOperators;
|
|
3044
|
+
category?: {
|
|
3045
|
+
id?: number | IdFilterOperators;
|
|
3046
|
+
documentId?: string | StringFilterOperators;
|
|
3047
|
+
[key: string]: any;
|
|
3048
|
+
};
|
|
3049
|
+
image?: {
|
|
3050
|
+
id?: number | IdFilterOperators;
|
|
3051
|
+
[key: string]: any;
|
|
3052
|
+
};
|
|
3053
|
+
}
|
|
3054
|
+
/** Type-safe filters for Landing */
|
|
3055
|
+
export interface LandingFilters extends LogicalOperators<LandingFilters> {
|
|
3056
|
+
id?: number | IdFilterOperators;
|
|
3057
|
+
documentId?: string | StringFilterOperators;
|
|
3058
|
+
video?: {
|
|
3059
|
+
id?: number | IdFilterOperators;
|
|
3060
|
+
[key: string]: any;
|
|
3061
|
+
};
|
|
3062
|
+
heroSlides?: {
|
|
3063
|
+
id?: number | IdFilterOperators;
|
|
3064
|
+
[key: string]: any;
|
|
3065
|
+
};
|
|
3066
|
+
carouselItems?: {
|
|
3067
|
+
id?: number | IdFilterOperators;
|
|
3068
|
+
[key: string]: any;
|
|
3069
|
+
};
|
|
3070
|
+
}
|
|
3071
|
+
/** Type-safe filters for Legal */
|
|
3072
|
+
export interface LegalFilters extends LogicalOperators<LegalFilters> {
|
|
3073
|
+
id?: number | IdFilterOperators;
|
|
3074
|
+
documentId?: string | StringFilterOperators;
|
|
3075
|
+
title?: string | StringFilterOperators;
|
|
3076
|
+
slug?: string | StringFilterOperators;
|
|
3077
|
+
description?: any;
|
|
3078
|
+
}
|
|
3079
|
+
/** Type-safe filters for PartnerCommission */
|
|
3080
|
+
export interface PartnerCommissionFilters extends LogicalOperators<PartnerCommissionFilters> {
|
|
3081
|
+
id?: number | IdFilterOperators;
|
|
3082
|
+
documentId?: string | StringFilterOperators;
|
|
3083
|
+
amount?: number | NumberFilterOperators;
|
|
3084
|
+
withdrawalStatus?: ('pending' | 'paid' | 'cancelled') | StringFilterOperators;
|
|
3085
|
+
commissionRate?: number | NumberFilterOperators;
|
|
3086
|
+
partner?: {
|
|
3087
|
+
id?: number | IdFilterOperators;
|
|
3088
|
+
documentId?: string | StringFilterOperators;
|
|
3089
|
+
[key: string]: any;
|
|
3090
|
+
};
|
|
3091
|
+
referral?: {
|
|
3092
|
+
id?: number | IdFilterOperators;
|
|
3093
|
+
documentId?: string | StringFilterOperators;
|
|
3094
|
+
[key: string]: any;
|
|
3095
|
+
};
|
|
3096
|
+
payment?: {
|
|
3097
|
+
id?: number | IdFilterOperators;
|
|
3098
|
+
documentId?: string | StringFilterOperators;
|
|
3099
|
+
[key: string]: any;
|
|
3100
|
+
};
|
|
3101
|
+
}
|
|
3102
|
+
/** Type-safe filters for PartnerProfile */
|
|
3103
|
+
export interface PartnerProfileFilters extends LogicalOperators<PartnerProfileFilters> {
|
|
3104
|
+
id?: number | IdFilterOperators;
|
|
3105
|
+
documentId?: string | StringFilterOperators;
|
|
3106
|
+
code?: string | StringFilterOperators;
|
|
3107
|
+
commissionRate?: number | NumberFilterOperators;
|
|
3108
|
+
totalEarnings?: number | NumberFilterOperators;
|
|
3109
|
+
isActive?: boolean | BooleanFilterOperators;
|
|
3110
|
+
user?: {
|
|
3111
|
+
id?: number | IdFilterOperators;
|
|
3112
|
+
documentId?: string | StringFilterOperators;
|
|
3113
|
+
[key: string]: any;
|
|
3114
|
+
};
|
|
3115
|
+
referrals?: {
|
|
3116
|
+
id?: number | IdFilterOperators;
|
|
3117
|
+
documentId?: string | StringFilterOperators;
|
|
3118
|
+
[key: string]: any;
|
|
3119
|
+
};
|
|
3120
|
+
commissions?: {
|
|
3121
|
+
id?: number | IdFilterOperators;
|
|
3122
|
+
documentId?: string | StringFilterOperators;
|
|
3123
|
+
[key: string]: any;
|
|
3124
|
+
};
|
|
3125
|
+
}
|
|
3126
|
+
/** Type-safe filters for PartnerSetting */
|
|
3127
|
+
export interface PartnerSettingFilters extends LogicalOperators<PartnerSettingFilters> {
|
|
3128
|
+
id?: number | IdFilterOperators;
|
|
3129
|
+
documentId?: string | StringFilterOperators;
|
|
3130
|
+
defaultCommissionRate?: number | NumberFilterOperators;
|
|
3131
|
+
}
|
|
3132
|
+
/** Type-safe filters for Payment */
|
|
3133
|
+
export interface PaymentFilters extends LogicalOperators<PaymentFilters> {
|
|
3134
|
+
id?: number | IdFilterOperators;
|
|
3135
|
+
documentId?: string | StringFilterOperators;
|
|
3136
|
+
amount?: number | NumberFilterOperators;
|
|
3137
|
+
currency?: string | StringFilterOperators;
|
|
3138
|
+
paymentProvider?: ('stripe' | 'yookassa') | StringFilterOperators;
|
|
3139
|
+
externalPaymentId?: string | StringFilterOperators;
|
|
3140
|
+
metadata?: any;
|
|
3141
|
+
subscription?: {
|
|
3142
|
+
id?: number | IdFilterOperators;
|
|
3143
|
+
documentId?: string | StringFilterOperators;
|
|
3144
|
+
[key: string]: any;
|
|
3145
|
+
};
|
|
3146
|
+
plan?: {
|
|
3147
|
+
id?: number | IdFilterOperators;
|
|
3148
|
+
documentId?: string | StringFilterOperators;
|
|
3149
|
+
[key: string]: any;
|
|
3150
|
+
};
|
|
3151
|
+
tokenTransaction?: {
|
|
3152
|
+
id?: number | IdFilterOperators;
|
|
3153
|
+
documentId?: string | StringFilterOperators;
|
|
3154
|
+
[key: string]: any;
|
|
3155
|
+
};
|
|
3156
|
+
user?: {
|
|
3157
|
+
id?: number | IdFilterOperators;
|
|
3158
|
+
documentId?: string | StringFilterOperators;
|
|
3159
|
+
[key: string]: any;
|
|
3160
|
+
};
|
|
3161
|
+
partnerCommissions?: {
|
|
3162
|
+
id?: number | IdFilterOperators;
|
|
3163
|
+
documentId?: string | StringFilterOperators;
|
|
3164
|
+
[key: string]: any;
|
|
3165
|
+
};
|
|
3166
|
+
}
|
|
3167
|
+
/** Type-safe filters for Plan */
|
|
3168
|
+
export interface PlanFilters extends LogicalOperators<PlanFilters> {
|
|
3169
|
+
id?: number | IdFilterOperators;
|
|
3170
|
+
documentId?: string | StringFilterOperators;
|
|
3171
|
+
title?: string | StringFilterOperators;
|
|
3172
|
+
type?: ('subscription' | 'onetime' | 'api') | StringFilterOperators;
|
|
3173
|
+
price?: number | NumberFilterOperators;
|
|
3174
|
+
duration?: number | NumberFilterOperators;
|
|
3175
|
+
description?: any;
|
|
3176
|
+
mostPopular?: boolean | BooleanFilterOperators;
|
|
3177
|
+
pos?: number | NumberFilterOperators;
|
|
3178
|
+
allowTeam?: boolean | BooleanFilterOperators;
|
|
3179
|
+
seatOptions?: any;
|
|
3180
|
+
subscriptions?: {
|
|
3181
|
+
id?: number | IdFilterOperators;
|
|
3182
|
+
documentId?: string | StringFilterOperators;
|
|
3183
|
+
[key: string]: any;
|
|
3184
|
+
};
|
|
3185
|
+
payments?: {
|
|
3186
|
+
id?: number | IdFilterOperators;
|
|
3187
|
+
documentId?: string | StringFilterOperators;
|
|
3188
|
+
[key: string]: any;
|
|
3189
|
+
};
|
|
3190
|
+
}
|
|
3191
|
+
/** Type-safe filters for Project */
|
|
3192
|
+
export interface ProjectFilters extends LogicalOperators<ProjectFilters> {
|
|
3193
|
+
id?: number | IdFilterOperators;
|
|
3194
|
+
documentId?: string | StringFilterOperators;
|
|
3195
|
+
title?: string | StringFilterOperators;
|
|
3196
|
+
modelLink?: string | StringFilterOperators;
|
|
3197
|
+
imageLink?: string | StringFilterOperators;
|
|
3198
|
+
data?: any;
|
|
3199
|
+
type?: ('save' | 'share' | 'web') | StringFilterOperators;
|
|
3200
|
+
item?: {
|
|
3201
|
+
id?: number | IdFilterOperators;
|
|
3202
|
+
documentId?: string | StringFilterOperators;
|
|
3203
|
+
[key: string]: any;
|
|
3204
|
+
};
|
|
3205
|
+
user?: {
|
|
3206
|
+
id?: number | IdFilterOperators;
|
|
3207
|
+
documentId?: string | StringFilterOperators;
|
|
3208
|
+
[key: string]: any;
|
|
3209
|
+
};
|
|
3210
|
+
}
|
|
3211
|
+
/** Type-safe filters for ProjectChat */
|
|
3212
|
+
export interface ProjectChatFilters extends LogicalOperators<ProjectChatFilters> {
|
|
3213
|
+
id?: number | IdFilterOperators;
|
|
3214
|
+
documentId?: string | StringFilterOperators;
|
|
3215
|
+
project?: {
|
|
3216
|
+
id?: number | IdFilterOperators;
|
|
3217
|
+
documentId?: string | StringFilterOperators;
|
|
3218
|
+
[key: string]: any;
|
|
3219
|
+
};
|
|
3220
|
+
}
|
|
3221
|
+
/** Type-safe filters for Referral */
|
|
3222
|
+
export interface ReferralFilters extends LogicalOperators<ReferralFilters> {
|
|
3223
|
+
id?: number | IdFilterOperators;
|
|
3224
|
+
documentId?: string | StringFilterOperators;
|
|
3225
|
+
codeUsed?: string | StringFilterOperators;
|
|
3226
|
+
sourceType?: ('code' | 'link' | 'share') | StringFilterOperators;
|
|
3227
|
+
isConverted?: boolean | BooleanFilterOperators;
|
|
3228
|
+
partner?: {
|
|
3229
|
+
id?: number | IdFilterOperators;
|
|
3230
|
+
documentId?: string | StringFilterOperators;
|
|
3231
|
+
[key: string]: any;
|
|
3232
|
+
};
|
|
3233
|
+
user?: {
|
|
3234
|
+
id?: number | IdFilterOperators;
|
|
3235
|
+
documentId?: string | StringFilterOperators;
|
|
3236
|
+
[key: string]: any;
|
|
3237
|
+
};
|
|
3238
|
+
commissions?: {
|
|
3239
|
+
id?: number | IdFilterOperators;
|
|
3240
|
+
documentId?: string | StringFilterOperators;
|
|
3241
|
+
[key: string]: any;
|
|
3242
|
+
};
|
|
3243
|
+
}
|
|
3244
|
+
/** Type-safe filters for Subscription */
|
|
3245
|
+
export interface SubscriptionFilters extends LogicalOperators<SubscriptionFilters> {
|
|
3246
|
+
id?: number | IdFilterOperators;
|
|
3247
|
+
documentId?: string | StringFilterOperators;
|
|
3248
|
+
subscriptionStatus?: ('active' | 'canceled' | 'expired' | 'past_due') | StringFilterOperators;
|
|
3249
|
+
paymentProvider?: ('stripe' | 'yookassa') | StringFilterOperators;
|
|
3250
|
+
externalSubscriptionId?: string | StringFilterOperators;
|
|
3251
|
+
startedAt?: string | DateFilterOperators;
|
|
3252
|
+
expiresAt?: string | DateFilterOperators;
|
|
3253
|
+
subscriptionType?: ('individual' | 'team') | StringFilterOperators;
|
|
3254
|
+
maxSeats?: number | NumberFilterOperators;
|
|
3255
|
+
owner?: {
|
|
3256
|
+
id?: number | IdFilterOperators;
|
|
3257
|
+
documentId?: string | StringFilterOperators;
|
|
3258
|
+
[key: string]: any;
|
|
3259
|
+
};
|
|
3260
|
+
plan?: {
|
|
3261
|
+
id?: number | IdFilterOperators;
|
|
3262
|
+
documentId?: string | StringFilterOperators;
|
|
3263
|
+
[key: string]: any;
|
|
3264
|
+
};
|
|
3265
|
+
team?: {
|
|
3266
|
+
id?: number | IdFilterOperators;
|
|
3267
|
+
documentId?: string | StringFilterOperators;
|
|
3268
|
+
[key: string]: any;
|
|
3269
|
+
};
|
|
3270
|
+
payments?: {
|
|
3271
|
+
id?: number | IdFilterOperators;
|
|
3272
|
+
documentId?: string | StringFilterOperators;
|
|
3273
|
+
[key: string]: any;
|
|
3274
|
+
};
|
|
3275
|
+
accesses?: {
|
|
3276
|
+
id?: number | IdFilterOperators;
|
|
3277
|
+
documentId?: string | StringFilterOperators;
|
|
3278
|
+
[key: string]: any;
|
|
3279
|
+
};
|
|
3280
|
+
}
|
|
3281
|
+
/** Type-safe filters for Support */
|
|
3282
|
+
export interface SupportFilters extends LogicalOperators<SupportFilters> {
|
|
3283
|
+
id?: number | IdFilterOperators;
|
|
3284
|
+
documentId?: string | StringFilterOperators;
|
|
3285
|
+
description?: any;
|
|
3286
|
+
user?: {
|
|
3287
|
+
id?: number | IdFilterOperators;
|
|
3288
|
+
documentId?: string | StringFilterOperators;
|
|
3289
|
+
[key: string]: any;
|
|
3290
|
+
};
|
|
3291
|
+
theme?: {
|
|
3292
|
+
id?: number | IdFilterOperators;
|
|
3293
|
+
documentId?: string | StringFilterOperators;
|
|
3294
|
+
[key: string]: any;
|
|
3295
|
+
};
|
|
3296
|
+
}
|
|
3297
|
+
/** Type-safe filters for SupportCategory */
|
|
3298
|
+
export interface SupportCategoryFilters extends LogicalOperators<SupportCategoryFilters> {
|
|
3299
|
+
id?: number | IdFilterOperators;
|
|
3300
|
+
documentId?: string | StringFilterOperators;
|
|
3301
|
+
title?: string | StringFilterOperators;
|
|
3302
|
+
description?: string | StringFilterOperators;
|
|
3303
|
+
slug?: string | StringFilterOperators;
|
|
3304
|
+
image?: {
|
|
3305
|
+
id?: number | IdFilterOperators;
|
|
3306
|
+
[key: string]: any;
|
|
3307
|
+
};
|
|
3308
|
+
}
|
|
3309
|
+
/** Type-safe filters for SupportCenter */
|
|
3310
|
+
export interface SupportCenterFilters extends LogicalOperators<SupportCenterFilters> {
|
|
3311
|
+
id?: number | IdFilterOperators;
|
|
3312
|
+
documentId?: string | StringFilterOperators;
|
|
3313
|
+
categories?: {
|
|
3314
|
+
id?: number | IdFilterOperators;
|
|
3315
|
+
documentId?: string | StringFilterOperators;
|
|
3316
|
+
[key: string]: any;
|
|
3317
|
+
};
|
|
3318
|
+
}
|
|
3319
|
+
/** Type-safe filters for SupportTheme */
|
|
3320
|
+
export interface SupportThemeFilters extends LogicalOperators<SupportThemeFilters> {
|
|
3321
|
+
id?: number | IdFilterOperators;
|
|
3322
|
+
documentId?: string | StringFilterOperators;
|
|
3323
|
+
title?: string | StringFilterOperators;
|
|
3324
|
+
supports?: {
|
|
3325
|
+
id?: number | IdFilterOperators;
|
|
3326
|
+
documentId?: string | StringFilterOperators;
|
|
3327
|
+
[key: string]: any;
|
|
3328
|
+
};
|
|
3329
|
+
}
|
|
3330
|
+
/** Type-safe filters for Team */
|
|
3331
|
+
export interface TeamFilters extends LogicalOperators<TeamFilters> {
|
|
3332
|
+
id?: number | IdFilterOperators;
|
|
3333
|
+
documentId?: string | StringFilterOperators;
|
|
3334
|
+
name?: string | StringFilterOperators;
|
|
3335
|
+
subscription?: {
|
|
3336
|
+
id?: number | IdFilterOperators;
|
|
3337
|
+
documentId?: string | StringFilterOperators;
|
|
3338
|
+
[key: string]: any;
|
|
3339
|
+
};
|
|
3340
|
+
members?: {
|
|
3341
|
+
id?: number | IdFilterOperators;
|
|
3342
|
+
documentId?: string | StringFilterOperators;
|
|
3343
|
+
[key: string]: any;
|
|
3344
|
+
};
|
|
3345
|
+
invitations?: {
|
|
3346
|
+
id?: number | IdFilterOperators;
|
|
3347
|
+
documentId?: string | StringFilterOperators;
|
|
3348
|
+
[key: string]: any;
|
|
3349
|
+
};
|
|
3350
|
+
}
|
|
3351
|
+
/** Type-safe filters for TeamInvitation */
|
|
3352
|
+
export interface TeamInvitationFilters extends LogicalOperators<TeamInvitationFilters> {
|
|
3353
|
+
id?: number | IdFilterOperators;
|
|
3354
|
+
documentId?: string | StringFilterOperators;
|
|
3355
|
+
email?: string | StringFilterOperators;
|
|
3356
|
+
invitationStatus?: ('pending' | 'accepted' | 'cancelled') | StringFilterOperators;
|
|
3357
|
+
responsedAt?: string | DateFilterOperators;
|
|
3358
|
+
team?: {
|
|
3359
|
+
id?: number | IdFilterOperators;
|
|
3360
|
+
documentId?: string | StringFilterOperators;
|
|
3361
|
+
[key: string]: any;
|
|
3362
|
+
};
|
|
3363
|
+
}
|
|
3364
|
+
/** Type-safe filters for TeamMember */
|
|
3365
|
+
export interface TeamMemberFilters extends LogicalOperators<TeamMemberFilters> {
|
|
3366
|
+
id?: number | IdFilterOperators;
|
|
3367
|
+
documentId?: string | StringFilterOperators;
|
|
3368
|
+
role?: ('owner' | 'member') | StringFilterOperators;
|
|
3369
|
+
joinedAt?: string | DateFilterOperators;
|
|
3370
|
+
team?: {
|
|
3371
|
+
id?: number | IdFilterOperators;
|
|
3372
|
+
documentId?: string | StringFilterOperators;
|
|
3373
|
+
[key: string]: any;
|
|
3374
|
+
};
|
|
3375
|
+
user?: {
|
|
3376
|
+
id?: number | IdFilterOperators;
|
|
3377
|
+
documentId?: string | StringFilterOperators;
|
|
3378
|
+
[key: string]: any;
|
|
3379
|
+
};
|
|
3380
|
+
accesses?: {
|
|
3381
|
+
id?: number | IdFilterOperators;
|
|
3382
|
+
documentId?: string | StringFilterOperators;
|
|
3383
|
+
[key: string]: any;
|
|
3384
|
+
};
|
|
3385
|
+
}
|
|
3386
|
+
/** Type-safe filters for TokenTransaction */
|
|
3387
|
+
export interface TokenTransactionFilters extends LogicalOperators<TokenTransactionFilters> {
|
|
3388
|
+
id?: number | IdFilterOperators;
|
|
3389
|
+
documentId?: string | StringFilterOperators;
|
|
3390
|
+
type?: ('purchase' | 'usage') | StringFilterOperators;
|
|
3391
|
+
amount?: number | NumberFilterOperators;
|
|
3392
|
+
user?: {
|
|
3393
|
+
id?: number | IdFilterOperators;
|
|
3394
|
+
documentId?: string | StringFilterOperators;
|
|
3395
|
+
[key: string]: any;
|
|
3396
|
+
};
|
|
3397
|
+
payment?: {
|
|
3398
|
+
id?: number | IdFilterOperators;
|
|
3399
|
+
documentId?: string | StringFilterOperators;
|
|
3400
|
+
[key: string]: any;
|
|
3401
|
+
};
|
|
3402
|
+
}
|
|
3403
|
+
/** Type-safe filters for UserSession */
|
|
3404
|
+
export interface UserSessionFilters extends LogicalOperators<UserSessionFilters> {
|
|
3405
|
+
id?: number | IdFilterOperators;
|
|
3406
|
+
documentId?: string | StringFilterOperators;
|
|
3407
|
+
sessionId?: string | StringFilterOperators;
|
|
3408
|
+
ipAddress?: string | StringFilterOperators;
|
|
3409
|
+
userAgent?: string | StringFilterOperators;
|
|
3410
|
+
lastActivity?: string | DateFilterOperators;
|
|
3411
|
+
user?: {
|
|
3412
|
+
id?: number | IdFilterOperators;
|
|
3413
|
+
documentId?: string | StringFilterOperators;
|
|
3414
|
+
[key: string]: any;
|
|
3415
|
+
};
|
|
3416
|
+
}
|
|
3417
|
+
/** Type-safe filters for Website */
|
|
3418
|
+
export interface WebsiteFilters extends LogicalOperators<WebsiteFilters> {
|
|
3419
|
+
id?: number | IdFilterOperators;
|
|
3420
|
+
documentId?: string | StringFilterOperators;
|
|
3421
|
+
site?: string | StringFilterOperators;
|
|
3422
|
+
paidTill?: string | DateFilterOperators;
|
|
3423
|
+
token?: string | StringFilterOperators;
|
|
3424
|
+
user?: {
|
|
3425
|
+
id?: number | IdFilterOperators;
|
|
3426
|
+
documentId?: string | StringFilterOperators;
|
|
3427
|
+
[key: string]: any;
|
|
3428
|
+
};
|
|
3429
|
+
}
|
|
3430
|
+
export {};
|