@rxdrag/rxcms-models 0.1.4 → 0.2.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.
Files changed (90) hide show
  1. package/dist/classes/AbilityQueryOptions.d.ts +13 -0
  2. package/dist/classes/CustomerQueryOptions.d.ts +48 -0
  3. package/dist/classes/EnquiryQueryOptions.d.ts +36 -0
  4. package/dist/classes/LangQueryOptions.d.ts +36 -0
  5. package/dist/classes/MediaFolderQueryOptions.d.ts +30 -0
  6. package/dist/classes/MediaQueryOptions.d.ts +32 -0
  7. package/dist/classes/PageQueryOptions.d.ts +44 -0
  8. package/dist/classes/PostCategoryQueryOptions.d.ts +30 -0
  9. package/dist/classes/PostQueryOptions.d.ts +68 -0
  10. package/dist/classes/ProductCategoryQueryOptions.d.ts +30 -0
  11. package/dist/classes/ProductQueryOptions.d.ts +69 -0
  12. package/dist/classes/QueryOptions.d.ts +27 -0
  13. package/dist/classes/RoleQueryOptions.d.ts +16 -0
  14. package/dist/classes/SlugQueryOptions.d.ts +30 -0
  15. package/dist/classes/TagQueryOptions.d.ts +35 -0
  16. package/dist/classes/TemplateCategoryQueryOptions.d.ts +30 -0
  17. package/dist/classes/TemplateQueryOptions.d.ts +33 -0
  18. package/dist/classes/ThemeQueryOptions.d.ts +33 -0
  19. package/dist/classes/UserQueryOptions.d.ts +69 -0
  20. package/dist/classes/WebsiteMetaQueryOptions.d.ts +7 -0
  21. package/dist/classes/WebsiteQueryOptions.d.ts +50 -0
  22. package/dist/classes/WebsiteSettingsQueryOptions.d.ts +32 -0
  23. package/dist/classes/WebsiteTypeQueryOptions.d.ts +33 -0
  24. package/dist/classes/index.d.ts +24 -0
  25. package/dist/classes/metainfo.d.ts +2 -0
  26. package/dist/fields/AbilityFields.d.ts +2 -0
  27. package/dist/fields/CustomerFields.d.ts +3 -1
  28. package/dist/fields/EnquiryFields.d.ts +3 -1
  29. package/dist/fields/LangFields.d.ts +2 -0
  30. package/dist/fields/MediaFields.d.ts +3 -1
  31. package/dist/fields/MediaFolderFields.d.ts +3 -1
  32. package/dist/fields/PageFields.d.ts +10 -3
  33. package/dist/fields/PostCategoryFields.d.ts +3 -1
  34. package/dist/fields/PostFields.d.ts +9 -2
  35. package/dist/fields/ProductCategoryFields.d.ts +3 -1
  36. package/dist/fields/ProductFields.d.ts +9 -2
  37. package/dist/fields/RoleFields.d.ts +3 -1
  38. package/dist/fields/SlugFields.d.ts +3 -1
  39. package/dist/fields/TagFields.d.ts +3 -1
  40. package/dist/fields/TemplateCategoryFields.d.ts +3 -1
  41. package/dist/fields/TemplateFields.d.ts +3 -1
  42. package/dist/fields/ThemeFields.d.ts +3 -1
  43. package/dist/fields/UserFields.d.ts +3 -1
  44. package/dist/fields/WebsiteFields.d.ts +3 -1
  45. package/dist/fields/WebsiteMetaFields.d.ts +2 -0
  46. package/dist/fields/WebsiteSettingsFields.d.ts +2 -0
  47. package/dist/fields/WebsiteTypeFields.d.ts +3 -1
  48. package/dist/fields/index.d.ts +0 -10
  49. package/dist/index.d.ts +1 -0
  50. package/dist/index.mjs +2380 -238
  51. package/dist/index.mjs.map +1 -1
  52. package/dist/interfaces/BaseEntityOrderBy.d.ts +1 -1
  53. package/dist/interfaces/CustomizeMediaOrderBy.d.ts +1 -1
  54. package/dist/interfaces/MediaAddonOrderBy.d.ts +5 -0
  55. package/dist/interfaces/MultiLangableOrderBy.d.ts +1 -1
  56. package/dist/interfaces/OgMeta.d.ts +5 -1
  57. package/dist/interfaces/OgMetaBoolExp.d.ts +5 -1
  58. package/dist/interfaces/OgMetaDistinctExp.d.ts +6 -2
  59. package/dist/interfaces/OgMetaOrderBy.d.ts +6 -2
  60. package/dist/interfaces/Page.d.ts +2 -0
  61. package/dist/interfaces/PageBoolExp.d.ts +2 -0
  62. package/dist/interfaces/PageDistinctExp.d.ts +5 -1
  63. package/dist/interfaces/PageInput.d.ts +2 -0
  64. package/dist/interfaces/PersonOrderBy.d.ts +1 -1
  65. package/dist/interfaces/Post.d.ts +1 -0
  66. package/dist/interfaces/PostBoolExp.d.ts +1 -0
  67. package/dist/interfaces/PostDistinctExp.d.ts +5 -1
  68. package/dist/interfaces/PostInput.d.ts +1 -0
  69. package/dist/interfaces/Product.d.ts +1 -0
  70. package/dist/interfaces/ProductBoolExp.d.ts +1 -0
  71. package/dist/interfaces/ProductDistinctExp.d.ts +5 -1
  72. package/dist/interfaces/ProductInput.d.ts +1 -0
  73. package/dist/interfaces/PublishableDistinctExp.d.ts +5 -1
  74. package/dist/interfaces/PublishableOrderBy.d.ts +1 -1
  75. package/dist/interfaces/SeoMetaOrderBy.d.ts +1 -1
  76. package/dist/interfaces/WebsiteContentDistinctExp.d.ts +5 -1
  77. package/dist/interfaces/WebsiteContentOrderBy.d.ts +1 -1
  78. package/dist/interfaces/WebsitePartOrderBy.d.ts +1 -1
  79. package/dist/interfaces/WebsiteUserOrderBy.d.ts +1 -1
  80. package/package.json +2 -2
  81. package/dist/fields/BaseEntityFields.d.ts +0 -15
  82. package/dist/fields/CustomizeMediaFields.d.ts +0 -7
  83. package/dist/fields/MultiLangableFields.d.ts +0 -4
  84. package/dist/fields/OgMetaFields.d.ts +0 -9
  85. package/dist/fields/PersonFields.d.ts +0 -26
  86. package/dist/fields/PublishableFields.d.ts +0 -35
  87. package/dist/fields/SeoMetaFields.d.ts +0 -6
  88. package/dist/fields/WebsiteContentFields.d.ts +0 -29
  89. package/dist/fields/WebsitePartFields.d.ts +0 -16
  90. package/dist/fields/WebsiteUserFields.d.ts +0 -35
package/dist/index.mjs CHANGED
@@ -1,31 +1,259 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
1
7
  import { processHasManyClear, convertHasManyToInput, processHasOneClear, convertHasOneToInput } from "@rxdrag/entify-hooks";
8
+ const associationsClasses = {
9
+ Product: {
10
+ medias: "MediaAddon"
11
+ },
12
+ Media: {
13
+ usedByProducts: "MediaAddon"
14
+ }
15
+ };
16
+ const aggregateEntities = {
17
+ User: {
18
+ rolesAggregate: "Role",
19
+ productsAggregate: "Product",
20
+ postsAggregate: "Post",
21
+ websitesAggregate: "Website"
22
+ },
23
+ Role: {
24
+ usersAggregate: "User"
25
+ },
26
+ Media: {
27
+ usedByProductsAggregate: "Product"
28
+ },
29
+ Website: {
30
+ usersAggregate: "User"
31
+ },
32
+ WebsiteType: {
33
+ websitesAggregate: "Website"
34
+ },
35
+ Post: {
36
+ tagsAggregate: "Tag"
37
+ },
38
+ Product: {
39
+ mediasAggregate: "Media",
40
+ tagsAggregate: "Tag"
41
+ },
42
+ TemplateCategory: {
43
+ templatesAggregate: "Template"
44
+ },
45
+ Theme: {
46
+ templatesAggregate: "Template",
47
+ themlateCategoriesAggregate: "TemplateCategory"
48
+ },
49
+ MediaFolder: {
50
+ childrenAggregate: "MediaFolder",
51
+ mediasAggregate: "Media"
52
+ },
53
+ PostCategory: {
54
+ childrenAggregate: "PostCategory",
55
+ postsAggregate: "Post"
56
+ },
57
+ Tag: {
58
+ postsAggregate: "Post",
59
+ productsAggregate: "Product"
60
+ },
61
+ Customer: {
62
+ enquiresAggregate: "Enquiry"
63
+ },
64
+ ProductCategory: {
65
+ childrenAggregate: "ProductCategory",
66
+ productsAggregate: "Product"
67
+ }
68
+ };
69
+ class QueryOptions {
70
+ constructor(entityName, fields, queryArgs) {
71
+ __publicField(this, "_fields");
72
+ __publicField(this, "_associations", {});
73
+ __publicField(this, "_objectFields", {});
74
+ __publicField(this, "_aggregates", {});
75
+ __publicField(this, "_queryArgs");
76
+ __publicField(this, "_noQuery");
77
+ __publicField(this, "getFields", () => {
78
+ return this._fields;
79
+ });
80
+ __publicField(this, "getObjectFields", () => {
81
+ return this._objectFields;
82
+ });
83
+ __publicField(this, "getAssociations", () => {
84
+ return this._associations;
85
+ });
86
+ __publicField(this, "getAggegates", () => {
87
+ return this._aggregates;
88
+ });
89
+ __publicField(this, "setAssociations", (association) => {
90
+ this._associations = association || {};
91
+ return this;
92
+ });
93
+ __publicField(this, "getQueryArgs", () => {
94
+ return this._queryArgs;
95
+ });
96
+ __publicField(this, "getNoQuery", () => {
97
+ return this._noQuery;
98
+ });
99
+ __publicField(this, "addField", (...fields) => {
100
+ for (const field of fields) {
101
+ if (!this._fields.includes(field)) {
102
+ this._fields.push(field);
103
+ }
104
+ }
105
+ return this;
106
+ });
107
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
108
+ __publicField(this, "addAssociation", (name, entityName, association) => {
109
+ this._associations[name] = association || new QueryOptions(entityName);
110
+ return this;
111
+ });
112
+ __publicField(this, "addObjectField", (name, fields) => {
113
+ this._objectFields[name] = { fields };
114
+ return this;
115
+ });
116
+ __publicField(this, "addAggregate", (name, aggregate) => {
117
+ this._aggregates[name] = aggregate;
118
+ return this;
119
+ });
120
+ __publicField(this, "setQueryArgs", (queryArgs) => {
121
+ this._queryArgs = queryArgs;
122
+ return this;
123
+ });
124
+ __publicField(this, "setNoQuery", (noQuery) => {
125
+ this._noQuery = noQuery;
126
+ return this;
127
+ });
128
+ __publicField(this, "setFields", (fields) => {
129
+ this._fields = fields;
130
+ return this;
131
+ });
132
+ __publicField(this, "toGqlOptions", () => {
133
+ return this.queryOptionsToGql(this);
134
+ });
135
+ __publicField(this, "queryOptionsToGql", (options, assocationName, ownerEntityName) => {
136
+ var _a, _b;
137
+ let varialbles = [];
138
+ const fields = [...options.getFields()];
139
+ const objectFields = options.getObjectFields();
140
+ const associations = options.getAssociations();
141
+ const aggregates = options.getAggegates();
142
+ for (const key of Object.keys(associations || {})) {
143
+ const association = associations[key];
144
+ const pathName = assocationName ? assocationName + "_" + key : key;
145
+ const { argsStr: subArgsStr, fieldsStr: subFieldsStr, varialbles: subVarialbles } = this.queryOptionsToGql(association, pathName, options.entityName);
146
+ varialbles = [...varialbles, ...subVarialbles];
147
+ const subGql = subArgsStr ? `${key}(${subArgsStr}){${subFieldsStr}}` : `${key}{${subFieldsStr}}`;
148
+ fields.push(subGql);
149
+ }
150
+ for (const key of Object.keys(aggregates || {})) {
151
+ const aggregate = aggregates[key];
152
+ const { count, where } = aggregate;
153
+ if (count) {
154
+ const whereName = assocationName ? assocationName + "_" + key + "_where" : key + "_where";
155
+ const args = where ? `(where:$${whereName})` : "";
156
+ fields.push(`${key}${args}{count}`);
157
+ const typeName = (_a = aggregateEntities[options.entityName]) == null ? void 0 : _a[key];
158
+ if (!typeName) {
159
+ throw new Error(`No association type found for ${options.entityName}.${key}`);
160
+ }
161
+ if (where) {
162
+ varialbles.push({ name: whereName, value: where, type: `${typeName}BoolExp` });
163
+ }
164
+ }
165
+ }
166
+ const querArgs = options.getQueryArgs();
167
+ const argStrs = [];
168
+ if (assocationName) {
169
+ if (querArgs == null ? void 0 : querArgs.where) {
170
+ const whereName = assocationName ? assocationName + "_where" : "where";
171
+ varialbles.push({ name: whereName, value: querArgs == null ? void 0 : querArgs.where, type: `${options.entityName}BoolExp` });
172
+ argStrs.push(`where:$${whereName}`);
173
+ }
174
+ if (querArgs == null ? void 0 : querArgs.limit) {
175
+ const limitName = assocationName ? assocationName + "_limit" : "limit";
176
+ varialbles.push({ name: limitName, value: querArgs == null ? void 0 : querArgs.limit, type: `Int` });
177
+ argStrs.push(`limit:$${limitName}`);
178
+ }
179
+ if (querArgs == null ? void 0 : querArgs.offset) {
180
+ const offsetName = assocationName ? assocationName + "_offset" : "offset";
181
+ varialbles.push({ name: offsetName, value: querArgs == null ? void 0 : querArgs.offset, type: `Int` });
182
+ argStrs.push(`offset:$${offsetName}`);
183
+ }
184
+ if (querArgs == null ? void 0 : querArgs.orderBy) {
185
+ const orderByName = assocationName ? assocationName + "_orderBy" : "orderBy";
186
+ const associationClass = assocationName && ownerEntityName ? (_b = associationsClasses[ownerEntityName]) == null ? void 0 : _b[assocationName] : void 0;
187
+ const orderByTypeName = associationClass ? `${options.entityName}And${associationClass}` : options.entityName;
188
+ varialbles.push({ name: orderByName, value: querArgs == null ? void 0 : querArgs.orderBy, type: `[${orderByTypeName}OrderBy]` });
189
+ argStrs.push(`orderBy:$${orderByName}`);
190
+ }
191
+ if (querArgs == null ? void 0 : querArgs.distinctOn) {
192
+ const distinctOnName = assocationName ? assocationName + "_distinctOn" : "distinctOn";
193
+ varialbles.push({ name: distinctOnName, value: querArgs == null ? void 0 : querArgs.distinctOn, type: `${options.entityName}DistinctExp` });
194
+ argStrs.push(`distinctOn:$${distinctOnName}`);
195
+ }
196
+ }
197
+ const allFields = [
198
+ ...fields,
199
+ ...Object.keys(objectFields).map(
200
+ (key) => {
201
+ const { fields: fields2 } = objectFields[key];
202
+ return `${key}{${fields2.join("\n")}}`;
203
+ }
204
+ )
205
+ ];
206
+ const argsStr = argStrs.join(",");
207
+ const fieldsStr = allFields.join("\n");
208
+ return {
209
+ fields: options.getFields(),
210
+ entityName: options.entityName,
211
+ fieldsStr,
212
+ argsStr,
213
+ varialbles,
214
+ noQuery: options.getNoQuery(),
215
+ limit: querArgs == null ? void 0 : querArgs.limit,
216
+ offset: querArgs == null ? void 0 : querArgs.offset,
217
+ where: querArgs == null ? void 0 : querArgs.where,
218
+ orderBy: querArgs == null ? void 0 : querArgs.orderBy
219
+ };
220
+ });
221
+ this.entityName = entityName;
222
+ this._fields = fields || ["id"];
223
+ this._queryArgs = queryArgs;
224
+ }
225
+ }
2
226
  const UserEntityName = "User";
3
227
  const UserEntityLabel = "";
4
228
  const roleToInputCascade = (entity) => {
5
229
  var _a;
230
+ const { usersAggregate, ...rest } = entity;
6
231
  return {
7
- ...entity,
232
+ ...rest,
8
233
  users: entity.users ? processHasManyClear({ sync: (_a = entity.users) == null ? void 0 : _a.map((ent) => userToInput(ent)) }) : void 0
9
234
  };
10
235
  };
11
236
  const roleToInput = (entity) => {
237
+ const { usersAggregate, ...rest } = entity;
12
238
  return {
13
- ...entity,
239
+ ...rest,
14
240
  users: convertHasManyToInput(entity.users)
15
241
  };
16
242
  };
17
243
  const mediaFolderToInputCascade = (entity) => {
18
244
  var _a, _b;
245
+ const { childrenAggregate, mediasAggregate, ...rest } = entity;
19
246
  return {
20
- ...entity,
247
+ ...rest,
21
248
  children: entity.children ? processHasManyClear({ sync: (_a = entity.children) == null ? void 0 : _a.map((ent) => mediaFolderToInput(ent)) }) : void 0,
22
249
  parent: entity.parent ? processHasOneClear({ sync: mediaFolderToInput(entity.parent) }) : void 0,
23
250
  medias: entity.medias ? processHasManyClear({ sync: (_b = entity.medias) == null ? void 0 : _b.map((ent) => mediaToInput(ent)) }) : void 0
24
251
  };
25
252
  };
26
253
  const mediaFolderToInput = (entity) => {
254
+ const { childrenAggregate, mediasAggregate, ...rest } = entity;
27
255
  return {
28
- ...entity,
256
+ ...rest,
29
257
  children: convertHasManyToInput(entity.children),
30
258
  parent: convertHasOneToInput(entity.parent),
31
259
  medias: convertHasManyToInput(entity.medias)
@@ -33,16 +261,18 @@ const mediaFolderToInput = (entity) => {
33
261
  };
34
262
  const productCategoryToInputCascade = (entity) => {
35
263
  var _a, _b;
264
+ const { childrenAggregate, productsAggregate, ...rest } = entity;
36
265
  return {
37
- ...entity,
266
+ ...rest,
38
267
  children: entity.children ? processHasManyClear({ sync: (_a = entity.children) == null ? void 0 : _a.map((ent) => productCategoryToInput(ent)) }) : void 0,
39
268
  parent: entity.parent ? processHasOneClear({ sync: productCategoryToInput(entity.parent) }) : void 0,
40
269
  products: entity.products ? processHasManyClear({ sync: (_b = entity.products) == null ? void 0 : _b.map((ent) => productToInput(ent)) }) : void 0
41
270
  };
42
271
  };
43
272
  const productCategoryToInput = (entity) => {
273
+ const { childrenAggregate, productsAggregate, ...rest } = entity;
44
274
  return {
45
- ...entity,
275
+ ...rest,
46
276
  children: convertHasManyToInput(entity.children),
47
277
  parent: convertHasOneToInput(entity.parent),
48
278
  products: convertHasManyToInput(entity.products)
@@ -50,31 +280,35 @@ const productCategoryToInput = (entity) => {
50
280
  };
51
281
  const tagToInputCascade = (entity) => {
52
282
  var _a, _b;
283
+ const { postsAggregate, productsAggregate, ...rest } = entity;
53
284
  return {
54
- ...entity,
285
+ ...rest,
55
286
  posts: entity.posts ? processHasManyClear({ sync: (_a = entity.posts) == null ? void 0 : _a.map((ent) => postToInput(ent)) }) : void 0,
56
287
  products: entity.products ? processHasManyClear({ sync: (_b = entity.products) == null ? void 0 : _b.map((ent) => productToInput(ent)) }) : void 0
57
288
  };
58
289
  };
59
290
  const tagToInput = (entity) => {
291
+ const { postsAggregate, productsAggregate, ...rest } = entity;
60
292
  return {
61
- ...entity,
293
+ ...rest,
62
294
  posts: convertHasManyToInput(entity.posts),
63
295
  products: convertHasManyToInput(entity.products)
64
296
  };
65
297
  };
66
298
  const postCategoryToInputCascade = (entity) => {
67
299
  var _a, _b;
300
+ const { childrenAggregate, postsAggregate, ...rest } = entity;
68
301
  return {
69
- ...entity,
302
+ ...rest,
70
303
  children: entity.children ? processHasManyClear({ sync: (_a = entity.children) == null ? void 0 : _a.map((ent) => postCategoryToInput(ent)) }) : void 0,
71
304
  posts: entity.posts ? processHasManyClear({ sync: (_b = entity.posts) == null ? void 0 : _b.map((ent) => postToInput(ent)) }) : void 0,
72
305
  parent: entity.parent ? processHasOneClear({ sync: postCategoryToInput(entity.parent) }) : void 0
73
306
  };
74
307
  };
75
308
  const postCategoryToInput = (entity) => {
309
+ const { childrenAggregate, postsAggregate, ...rest } = entity;
76
310
  return {
77
- ...entity,
311
+ ...rest,
78
312
  children: convertHasManyToInput(entity.children),
79
313
  posts: convertHasManyToInput(entity.posts),
80
314
  parent: convertHasOneToInput(entity.parent)
@@ -82,35 +316,41 @@ const postCategoryToInput = (entity) => {
82
316
  };
83
317
  const postToInputCascade = (entity) => {
84
318
  var _a;
319
+ const { tagsAggregate, ...rest } = entity;
85
320
  return {
86
- ...entity,
321
+ ...rest,
87
322
  slug: entity.slug ? processHasOneClear({ sync: slugToInput(entity.slug) }) : void 0,
88
323
  tags: entity.tags ? processHasManyClear({ sync: (_a = entity.tags) == null ? void 0 : _a.map((ent) => tagToInput(ent)) }) : void 0,
89
324
  author: entity.author ? processHasOneClear({ sync: userToInput(entity.author) }) : void 0,
90
325
  cover: entity.cover ? processHasOneClear({ sync: mediaToInput(entity.cover) }) : void 0,
326
+ ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
91
327
  category: entity.category ? processHasOneClear({ sync: postCategoryToInput(entity.category) }) : void 0
92
328
  };
93
329
  };
94
330
  const postToInput = (entity) => {
331
+ const { tagsAggregate, ...rest } = entity;
95
332
  return {
96
- ...entity,
333
+ ...rest,
97
334
  slug: convertHasOneToInput(entity.slug),
98
335
  tags: convertHasManyToInput(entity.tags),
99
336
  author: convertHasOneToInput(entity.author),
100
337
  cover: convertHasOneToInput(entity.cover),
338
+ ogImage: convertHasOneToInput(entity.ogImage),
101
339
  category: convertHasOneToInput(entity.category)
102
340
  };
103
341
  };
104
342
  const pageToInputCascade = (entity) => {
105
343
  return {
106
344
  ...entity,
107
- slug: entity.slug ? processHasOneClear({ sync: slugToInput(entity.slug) }) : void 0
345
+ slug: entity.slug ? processHasOneClear({ sync: slugToInput(entity.slug) }) : void 0,
346
+ ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0
108
347
  };
109
348
  };
110
349
  const pageToInput = (entity) => {
111
350
  return {
112
351
  ...entity,
113
- slug: convertHasOneToInput(entity.slug)
352
+ slug: convertHasOneToInput(entity.slug),
353
+ ogImage: convertHasOneToInput(entity.ogImage)
114
354
  };
115
355
  };
116
356
  const slugToInputCascade = (entity) => {
@@ -131,28 +371,32 @@ const slugToInput = (entity) => {
131
371
  };
132
372
  const productToInputCascade = (entity) => {
133
373
  var _a, _b;
374
+ const { mediasAggregate, tagsAggregate, ...rest } = entity;
134
375
  return {
135
- ...entity,
376
+ ...rest,
136
377
  category: entity.category ? processHasOneClear({ sync: productCategoryToInput(entity.category) }) : void 0,
137
378
  medias: entity.medias ? processHasManyClear({ sync: (_a = entity.medias) == null ? void 0 : _a.map((ent) => mediaToInput(ent)) }) : void 0,
138
379
  slug: entity.slug ? processHasOneClear({ sync: slugToInput(entity.slug) }) : void 0,
139
380
  tags: entity.tags ? processHasManyClear({ sync: (_b = entity.tags) == null ? void 0 : _b.map((ent) => tagToInput(ent)) }) : void 0,
381
+ ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
140
382
  creator: entity.creator ? processHasOneClear({ sync: userToInput(entity.creator) }) : void 0
141
383
  };
142
384
  };
143
385
  const productToInput = (entity) => {
386
+ const { mediasAggregate, tagsAggregate, ...rest } = entity;
144
387
  return {
145
- ...entity,
388
+ ...rest,
146
389
  category: convertHasOneToInput(entity.category),
147
390
  medias: convertHasManyToInput(entity.medias),
148
391
  slug: convertHasOneToInput(entity.slug),
149
392
  tags: convertHasManyToInput(entity.tags),
393
+ ogImage: convertHasOneToInput(entity.ogImage),
150
394
  creator: convertHasOneToInput(entity.creator)
151
395
  };
152
396
  };
153
397
  const mediaToInputCascade = (entity) => {
154
398
  var _a;
155
- const { file, ...rest } = entity;
399
+ const { file, usedByProductsAggregate, ...rest } = entity;
156
400
  return {
157
401
  ...rest,
158
402
  folder: entity.folder ? processHasOneClear({ sync: mediaFolderToInput(entity.folder) }) : void 0,
@@ -161,7 +405,7 @@ const mediaToInputCascade = (entity) => {
161
405
  };
162
406
  };
163
407
  const mediaToInput = (entity) => {
164
- const { file, ...rest } = entity;
408
+ const { file, usedByProductsAggregate, ...rest } = entity;
165
409
  return {
166
410
  ...rest,
167
411
  folder: convertHasOneToInput(entity.folder),
@@ -171,28 +415,32 @@ const mediaToInput = (entity) => {
171
415
  };
172
416
  const websiteTypeToInputCascade = (entity) => {
173
417
  var _a;
418
+ const { websitesAggregate, ...rest } = entity;
174
419
  return {
175
- ...entity,
420
+ ...rest,
176
421
  websites: entity.websites ? processHasManyClear({ sync: (_a = entity.websites) == null ? void 0 : _a.map((ent) => websiteToInput(ent)) }) : void 0
177
422
  };
178
423
  };
179
424
  const websiteTypeToInput = (entity) => {
425
+ const { websitesAggregate, ...rest } = entity;
180
426
  return {
181
- ...entity,
427
+ ...rest,
182
428
  websites: convertHasManyToInput(entity.websites)
183
429
  };
184
430
  };
185
431
  const templateCategoryToInputCascade = (entity) => {
186
432
  var _a;
433
+ const { templatesAggregate, ...rest } = entity;
187
434
  return {
188
- ...entity,
435
+ ...rest,
189
436
  templates: entity.templates ? processHasManyClear({ sync: (_a = entity.templates) == null ? void 0 : _a.map((ent) => templateToInput(ent)) }) : void 0,
190
437
  theme: entity.theme ? processHasOneClear({ sync: themeToInput(entity.theme) }) : void 0
191
438
  };
192
439
  };
193
440
  const templateCategoryToInput = (entity) => {
441
+ const { templatesAggregate, ...rest } = entity;
194
442
  return {
195
- ...entity,
443
+ ...rest,
196
444
  templates: convertHasManyToInput(entity.templates),
197
445
  theme: convertHasOneToInput(entity.theme)
198
446
  };
@@ -213,23 +461,26 @@ const templateToInput = (entity) => {
213
461
  };
214
462
  const themeToInputCascade = (entity) => {
215
463
  var _a, _b;
464
+ const { templatesAggregate, themlateCategoriesAggregate, ...rest } = entity;
216
465
  return {
217
- ...entity,
466
+ ...rest,
218
467
  templates: entity.templates ? processHasManyClear({ sync: (_a = entity.templates) == null ? void 0 : _a.map((ent) => templateToInput(ent)) }) : void 0,
219
468
  themlateCategories: entity.themlateCategories ? processHasManyClear({ sync: (_b = entity.themlateCategories) == null ? void 0 : _b.map((ent) => templateCategoryToInput(ent)) }) : void 0
220
469
  };
221
470
  };
222
471
  const themeToInput = (entity) => {
472
+ const { templatesAggregate, themlateCategoriesAggregate, ...rest } = entity;
223
473
  return {
224
- ...entity,
474
+ ...rest,
225
475
  templates: convertHasManyToInput(entity.templates),
226
476
  themlateCategories: convertHasManyToInput(entity.themlateCategories)
227
477
  };
228
478
  };
229
479
  const websiteToInputCascade = (entity) => {
230
480
  var _a;
481
+ const { usersAggregate, ...rest } = entity;
231
482
  return {
232
- ...entity,
483
+ ...rest,
233
484
  websiteType: entity.websiteType ? processHasOneClear({ sync: websiteTypeToInput(entity.websiteType) }) : void 0,
234
485
  selectedTheme: entity.selectedTheme ? processHasOneClear({ sync: themeToInput(entity.selectedTheme) }) : void 0,
235
486
  homePage: entity.homePage ? processHasOneClear({ sync: pageToInput(entity.homePage) }) : void 0,
@@ -238,8 +489,9 @@ const websiteToInputCascade = (entity) => {
238
489
  };
239
490
  };
240
491
  const websiteToInput = (entity) => {
492
+ const { usersAggregate, ...rest } = entity;
241
493
  return {
242
- ...entity,
494
+ ...rest,
243
495
  websiteType: convertHasOneToInput(entity.websiteType),
244
496
  selectedTheme: convertHasOneToInput(entity.selectedTheme),
245
497
  homePage: convertHasOneToInput(entity.homePage),
@@ -249,8 +501,9 @@ const websiteToInput = (entity) => {
249
501
  };
250
502
  const userToInputCascade = (entity) => {
251
503
  var _a, _b, _c, _d;
504
+ const { rolesAggregate, productsAggregate, postsAggregate, websitesAggregate, ...rest } = entity;
252
505
  return {
253
- ...entity,
506
+ ...rest,
254
507
  roles: entity.roles ? processHasManyClear({ sync: (_a = entity.roles) == null ? void 0 : _a.map((ent) => roleToInput(ent)) }) : void 0,
255
508
  avatar: entity.avatar ? processHasOneClear({ sync: mediaToInput(entity.avatar) }) : void 0,
256
509
  products: entity.products ? processHasManyClear({ sync: (_b = entity.products) == null ? void 0 : _b.map((ent) => productToInput(ent)) }) : void 0,
@@ -260,8 +513,9 @@ const userToInputCascade = (entity) => {
260
513
  };
261
514
  };
262
515
  const userToInput = (entity) => {
516
+ const { rolesAggregate, productsAggregate, postsAggregate, websitesAggregate, ...rest } = entity;
263
517
  return {
264
- ...entity,
518
+ ...rest,
265
519
  roles: convertHasManyToInput(entity.roles),
266
520
  avatar: convertHasOneToInput(entity.avatar),
267
521
  products: convertHasManyToInput(entity.products),
@@ -424,10 +678,14 @@ var PageDistinctEnum = /* @__PURE__ */ ((PageDistinctEnum2) => {
424
678
  PageDistinctEnum2["seoDescription"] = "seoDescription";
425
679
  PageDistinctEnum2["ogTitle"] = "ogTitle";
426
680
  PageDistinctEnum2["ogDescription"] = "ogDescription";
427
- PageDistinctEnum2["ogImageUrl"] = "ogImageUrl";
428
681
  PageDistinctEnum2["ogUrl"] = "ogUrl";
429
682
  PageDistinctEnum2["ogSiteName"] = "ogSiteName";
430
683
  PageDistinctEnum2["ogType"] = "ogType";
684
+ PageDistinctEnum2["xCard"] = "xCard";
685
+ PageDistinctEnum2["xSite"] = "xSite";
686
+ PageDistinctEnum2["xTitle"] = "xTitle";
687
+ PageDistinctEnum2["xDescription"] = "xDescription";
688
+ PageDistinctEnum2["xUrl"] = "xUrl";
431
689
  PageDistinctEnum2["lang"] = "lang";
432
690
  return PageDistinctEnum2;
433
691
  })(PageDistinctEnum || {});
@@ -454,10 +712,14 @@ var PostDistinctEnum = /* @__PURE__ */ ((PostDistinctEnum2) => {
454
712
  PostDistinctEnum2["seoDescription"] = "seoDescription";
455
713
  PostDistinctEnum2["ogTitle"] = "ogTitle";
456
714
  PostDistinctEnum2["ogDescription"] = "ogDescription";
457
- PostDistinctEnum2["ogImageUrl"] = "ogImageUrl";
458
715
  PostDistinctEnum2["ogUrl"] = "ogUrl";
459
716
  PostDistinctEnum2["ogSiteName"] = "ogSiteName";
460
717
  PostDistinctEnum2["ogType"] = "ogType";
718
+ PostDistinctEnum2["xCard"] = "xCard";
719
+ PostDistinctEnum2["xSite"] = "xSite";
720
+ PostDistinctEnum2["xTitle"] = "xTitle";
721
+ PostDistinctEnum2["xDescription"] = "xDescription";
722
+ PostDistinctEnum2["xUrl"] = "xUrl";
461
723
  PostDistinctEnum2["lang"] = "lang";
462
724
  return PostDistinctEnum2;
463
725
  })(PostDistinctEnum || {});
@@ -485,10 +747,14 @@ var ProductDistinctEnum = /* @__PURE__ */ ((ProductDistinctEnum2) => {
485
747
  ProductDistinctEnum2["seoDescription"] = "seoDescription";
486
748
  ProductDistinctEnum2["ogTitle"] = "ogTitle";
487
749
  ProductDistinctEnum2["ogDescription"] = "ogDescription";
488
- ProductDistinctEnum2["ogImageUrl"] = "ogImageUrl";
489
750
  ProductDistinctEnum2["ogUrl"] = "ogUrl";
490
751
  ProductDistinctEnum2["ogSiteName"] = "ogSiteName";
491
752
  ProductDistinctEnum2["ogType"] = "ogType";
753
+ ProductDistinctEnum2["xCard"] = "xCard";
754
+ ProductDistinctEnum2["xSite"] = "xSite";
755
+ ProductDistinctEnum2["xTitle"] = "xTitle";
756
+ ProductDistinctEnum2["xDescription"] = "xDescription";
757
+ ProductDistinctEnum2["xUrl"] = "xUrl";
492
758
  ProductDistinctEnum2["lang"] = "lang";
493
759
  return ProductDistinctEnum2;
494
760
  })(ProductDistinctEnum || {});
@@ -507,14 +773,16 @@ const EnquiryEntityName = "Enquiry";
507
773
  const EnquiryEntityLabel = "";
508
774
  const customerToInputCascade = (entity) => {
509
775
  var _a;
776
+ const { enquiresAggregate, ...rest } = entity;
510
777
  return {
511
- ...entity,
778
+ ...rest,
512
779
  enquires: entity.enquires ? processHasManyClear({ sync: (_a = entity.enquires) == null ? void 0 : _a.map((ent) => enquiryToInput(ent)) }) : void 0
513
780
  };
514
781
  };
515
782
  const customerToInput = (entity) => {
783
+ const { enquiresAggregate, ...rest } = entity;
516
784
  return {
517
- ...entity,
785
+ ...rest,
518
786
  enquires: convertHasManyToInput(entity.enquires)
519
787
  };
520
788
  };
@@ -748,6 +1016,1886 @@ var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
748
1016
  ComponentType2["RichText"] = "RichText";
749
1017
  return ComponentType2;
750
1018
  })(ComponentType || {});
1019
+ class RoleQueryOptions extends QueryOptions {
1020
+ constructor(fields, queryArgs) {
1021
+ super(RoleEntityName, fields, queryArgs);
1022
+ }
1023
+ id() {
1024
+ this.addField("id");
1025
+ return this;
1026
+ }
1027
+ name() {
1028
+ this.addField("name");
1029
+ return this;
1030
+ }
1031
+ description() {
1032
+ this.addField("description");
1033
+ return this;
1034
+ }
1035
+ createdAt() {
1036
+ this.addField("createdAt");
1037
+ return this;
1038
+ }
1039
+ updatedAt() {
1040
+ this.addField("updatedAt");
1041
+ return this;
1042
+ }
1043
+ users(options) {
1044
+ if (Array.isArray(options)) {
1045
+ this._associations["users"] = new UserQueryOptions(options);
1046
+ } else {
1047
+ this._associations["users"] = options || new UserQueryOptions(["id"]);
1048
+ }
1049
+ return this;
1050
+ }
1051
+ usersAggregate(aggregate) {
1052
+ this._aggregates["usersAggregate"] = aggregate;
1053
+ return this;
1054
+ }
1055
+ }
1056
+ class MediaFolderQueryOptions extends QueryOptions {
1057
+ constructor(fields, queryArgs) {
1058
+ super(MediaFolderEntityName, fields, queryArgs);
1059
+ }
1060
+ id() {
1061
+ this.addField("id");
1062
+ return this;
1063
+ }
1064
+ name() {
1065
+ this.addField("name");
1066
+ return this;
1067
+ }
1068
+ seqValue() {
1069
+ this.addField("seqValue");
1070
+ return this;
1071
+ }
1072
+ websiteId() {
1073
+ this.addField("websiteId");
1074
+ return this;
1075
+ }
1076
+ /**
1077
+ * 创建时间
1078
+ */
1079
+ createdAt() {
1080
+ this.addField("createdAt");
1081
+ return this;
1082
+ }
1083
+ /**
1084
+ * 更新时间
1085
+ */
1086
+ updatedAt() {
1087
+ this.addField("updatedAt");
1088
+ return this;
1089
+ }
1090
+ /**
1091
+ * 备注
1092
+ */
1093
+ remark() {
1094
+ this.addField("remark");
1095
+ return this;
1096
+ }
1097
+ children(options) {
1098
+ if (Array.isArray(options)) {
1099
+ this._associations["children"] = new MediaFolderQueryOptions(options);
1100
+ } else {
1101
+ this._associations["children"] = options || new MediaFolderQueryOptions(["id"]);
1102
+ }
1103
+ return this;
1104
+ }
1105
+ childrenAggregate(aggregate) {
1106
+ this._aggregates["childrenAggregate"] = aggregate;
1107
+ return this;
1108
+ }
1109
+ parent(options) {
1110
+ if (Array.isArray(options)) {
1111
+ this._associations["parent"] = new MediaFolderQueryOptions(options);
1112
+ } else {
1113
+ this._associations["parent"] = options || new MediaFolderQueryOptions(["id"]);
1114
+ }
1115
+ return this;
1116
+ }
1117
+ medias(options) {
1118
+ if (Array.isArray(options)) {
1119
+ this._associations["medias"] = new MediaQueryOptions(options);
1120
+ } else {
1121
+ this._associations["medias"] = options || new MediaQueryOptions(["id"]);
1122
+ }
1123
+ return this;
1124
+ }
1125
+ mediasAggregate(aggregate) {
1126
+ this._aggregates["mediasAggregate"] = aggregate;
1127
+ return this;
1128
+ }
1129
+ }
1130
+ class ProductCategoryQueryOptions extends QueryOptions {
1131
+ constructor(fields, queryArgs) {
1132
+ super(ProductCategoryEntityName, fields, queryArgs);
1133
+ }
1134
+ id() {
1135
+ this.addField("id");
1136
+ return this;
1137
+ }
1138
+ name() {
1139
+ this.addField("name");
1140
+ return this;
1141
+ }
1142
+ seqValue() {
1143
+ this.addField("seqValue");
1144
+ return this;
1145
+ }
1146
+ websiteId() {
1147
+ this.addField("websiteId");
1148
+ return this;
1149
+ }
1150
+ /**
1151
+ * 创建时间
1152
+ */
1153
+ createdAt() {
1154
+ this.addField("createdAt");
1155
+ return this;
1156
+ }
1157
+ /**
1158
+ * 更新时间
1159
+ */
1160
+ updatedAt() {
1161
+ this.addField("updatedAt");
1162
+ return this;
1163
+ }
1164
+ /**
1165
+ * 备注
1166
+ */
1167
+ remark() {
1168
+ this.addField("remark");
1169
+ return this;
1170
+ }
1171
+ children(options) {
1172
+ if (Array.isArray(options)) {
1173
+ this._associations["children"] = new ProductCategoryQueryOptions(options);
1174
+ } else {
1175
+ this._associations["children"] = options || new ProductCategoryQueryOptions(["id"]);
1176
+ }
1177
+ return this;
1178
+ }
1179
+ childrenAggregate(aggregate) {
1180
+ this._aggregates["childrenAggregate"] = aggregate;
1181
+ return this;
1182
+ }
1183
+ parent(options) {
1184
+ if (Array.isArray(options)) {
1185
+ this._associations["parent"] = new ProductCategoryQueryOptions(options);
1186
+ } else {
1187
+ this._associations["parent"] = options || new ProductCategoryQueryOptions(["id"]);
1188
+ }
1189
+ return this;
1190
+ }
1191
+ products(options) {
1192
+ if (Array.isArray(options)) {
1193
+ this._associations["products"] = new ProductQueryOptions(options);
1194
+ } else {
1195
+ this._associations["products"] = options || new ProductQueryOptions(["id"]);
1196
+ }
1197
+ return this;
1198
+ }
1199
+ productsAggregate(aggregate) {
1200
+ this._aggregates["productsAggregate"] = aggregate;
1201
+ return this;
1202
+ }
1203
+ }
1204
+ class TagQueryOptions extends QueryOptions {
1205
+ constructor(fields, queryArgs) {
1206
+ super(TagEntityName, fields, queryArgs);
1207
+ }
1208
+ id() {
1209
+ this.addField("id");
1210
+ return this;
1211
+ }
1212
+ /**
1213
+ * 名称
1214
+ */
1215
+ name() {
1216
+ this.addField("name");
1217
+ return this;
1218
+ }
1219
+ color() {
1220
+ this.addField("color");
1221
+ return this;
1222
+ }
1223
+ websiteId() {
1224
+ this.addField("websiteId");
1225
+ return this;
1226
+ }
1227
+ /**
1228
+ * 创建时间
1229
+ */
1230
+ createdAt() {
1231
+ this.addField("createdAt");
1232
+ return this;
1233
+ }
1234
+ /**
1235
+ * 更新时间
1236
+ */
1237
+ updatedAt() {
1238
+ this.addField("updatedAt");
1239
+ return this;
1240
+ }
1241
+ /**
1242
+ * 备注
1243
+ */
1244
+ remark() {
1245
+ this.addField("remark");
1246
+ return this;
1247
+ }
1248
+ posts(options) {
1249
+ if (Array.isArray(options)) {
1250
+ this._associations["posts"] = new PostQueryOptions(options);
1251
+ } else {
1252
+ this._associations["posts"] = options || new PostQueryOptions(["id"]);
1253
+ }
1254
+ return this;
1255
+ }
1256
+ postsAggregate(aggregate) {
1257
+ this._aggregates["postsAggregate"] = aggregate;
1258
+ return this;
1259
+ }
1260
+ products(options) {
1261
+ if (Array.isArray(options)) {
1262
+ this._associations["products"] = new ProductQueryOptions(options);
1263
+ } else {
1264
+ this._associations["products"] = options || new ProductQueryOptions(["id"]);
1265
+ }
1266
+ return this;
1267
+ }
1268
+ productsAggregate(aggregate) {
1269
+ this._aggregates["productsAggregate"] = aggregate;
1270
+ return this;
1271
+ }
1272
+ }
1273
+ class PostCategoryQueryOptions extends QueryOptions {
1274
+ constructor(fields, queryArgs) {
1275
+ super(PostCategoryEntityName, fields, queryArgs);
1276
+ }
1277
+ id() {
1278
+ this.addField("id");
1279
+ return this;
1280
+ }
1281
+ name() {
1282
+ this.addField("name");
1283
+ return this;
1284
+ }
1285
+ seqValue() {
1286
+ this.addField("seqValue");
1287
+ return this;
1288
+ }
1289
+ websiteId() {
1290
+ this.addField("websiteId");
1291
+ return this;
1292
+ }
1293
+ /**
1294
+ * 创建时间
1295
+ */
1296
+ createdAt() {
1297
+ this.addField("createdAt");
1298
+ return this;
1299
+ }
1300
+ /**
1301
+ * 更新时间
1302
+ */
1303
+ updatedAt() {
1304
+ this.addField("updatedAt");
1305
+ return this;
1306
+ }
1307
+ /**
1308
+ * 备注
1309
+ */
1310
+ remark() {
1311
+ this.addField("remark");
1312
+ return this;
1313
+ }
1314
+ children(options) {
1315
+ if (Array.isArray(options)) {
1316
+ this._associations["children"] = new PostCategoryQueryOptions(options);
1317
+ } else {
1318
+ this._associations["children"] = options || new PostCategoryQueryOptions(["id"]);
1319
+ }
1320
+ return this;
1321
+ }
1322
+ childrenAggregate(aggregate) {
1323
+ this._aggregates["childrenAggregate"] = aggregate;
1324
+ return this;
1325
+ }
1326
+ posts(options) {
1327
+ if (Array.isArray(options)) {
1328
+ this._associations["posts"] = new PostQueryOptions(options);
1329
+ } else {
1330
+ this._associations["posts"] = options || new PostQueryOptions(["id"]);
1331
+ }
1332
+ return this;
1333
+ }
1334
+ postsAggregate(aggregate) {
1335
+ this._aggregates["postsAggregate"] = aggregate;
1336
+ return this;
1337
+ }
1338
+ parent(options) {
1339
+ if (Array.isArray(options)) {
1340
+ this._associations["parent"] = new PostCategoryQueryOptions(options);
1341
+ } else {
1342
+ this._associations["parent"] = options || new PostCategoryQueryOptions(["id"]);
1343
+ }
1344
+ return this;
1345
+ }
1346
+ }
1347
+ class PostQueryOptions extends QueryOptions {
1348
+ constructor(fields, queryArgs) {
1349
+ super(PostEntityName, fields, queryArgs);
1350
+ }
1351
+ id() {
1352
+ this.addField("id");
1353
+ return this;
1354
+ }
1355
+ seqValue() {
1356
+ this.addField("seqValue");
1357
+ return this;
1358
+ }
1359
+ /**
1360
+ * 置顶
1361
+ */
1362
+ pinToTop() {
1363
+ this.addField("pinToTop");
1364
+ return this;
1365
+ }
1366
+ authorEmail() {
1367
+ this.addField("authorEmail");
1368
+ return this;
1369
+ }
1370
+ summary() {
1371
+ this.addField("summary");
1372
+ return this;
1373
+ }
1374
+ /**
1375
+ * 发布的内容
1376
+ */
1377
+ publishedContent() {
1378
+ this.addField("publishedContent");
1379
+ return this;
1380
+ }
1381
+ publishedAt() {
1382
+ this.addField("publishedAt");
1383
+ return this;
1384
+ }
1385
+ status() {
1386
+ this.addField("status");
1387
+ return this;
1388
+ }
1389
+ title() {
1390
+ this.addField("title");
1391
+ return this;
1392
+ }
1393
+ content() {
1394
+ this.addField("content");
1395
+ return this;
1396
+ }
1397
+ extends() {
1398
+ this.addField("extends");
1399
+ return this;
1400
+ }
1401
+ websiteId() {
1402
+ this.addField("websiteId");
1403
+ return this;
1404
+ }
1405
+ /**
1406
+ * 创建时间
1407
+ */
1408
+ createdAt() {
1409
+ this.addField("createdAt");
1410
+ return this;
1411
+ }
1412
+ /**
1413
+ * 更新时间
1414
+ */
1415
+ updatedAt() {
1416
+ this.addField("updatedAt");
1417
+ return this;
1418
+ }
1419
+ /**
1420
+ * 备注
1421
+ */
1422
+ remark() {
1423
+ this.addField("remark");
1424
+ return this;
1425
+ }
1426
+ seoTitle() {
1427
+ this.addField("seoTitle");
1428
+ return this;
1429
+ }
1430
+ seoKeywords() {
1431
+ this.addField("seoKeywords");
1432
+ return this;
1433
+ }
1434
+ seoDescription() {
1435
+ this.addField("seoDescription");
1436
+ return this;
1437
+ }
1438
+ ogTitle() {
1439
+ this.addField("ogTitle");
1440
+ return this;
1441
+ }
1442
+ ogDescription() {
1443
+ this.addField("ogDescription");
1444
+ return this;
1445
+ }
1446
+ ogUrl() {
1447
+ this.addField("ogUrl");
1448
+ return this;
1449
+ }
1450
+ ogSiteName() {
1451
+ this.addField("ogSiteName");
1452
+ return this;
1453
+ }
1454
+ ogType() {
1455
+ this.addField("ogType");
1456
+ return this;
1457
+ }
1458
+ xCard() {
1459
+ this.addField("xCard");
1460
+ return this;
1461
+ }
1462
+ xSite() {
1463
+ this.addField("xSite");
1464
+ return this;
1465
+ }
1466
+ xTitle() {
1467
+ this.addField("xTitle");
1468
+ return this;
1469
+ }
1470
+ xDescription() {
1471
+ this.addField("xDescription");
1472
+ return this;
1473
+ }
1474
+ xUrl() {
1475
+ this.addField("xUrl");
1476
+ return this;
1477
+ }
1478
+ lang() {
1479
+ this.addField("lang");
1480
+ return this;
1481
+ }
1482
+ slug(options) {
1483
+ if (Array.isArray(options)) {
1484
+ this._associations["slug"] = new SlugQueryOptions(options);
1485
+ } else {
1486
+ this._associations["slug"] = options || new SlugQueryOptions(["id"]);
1487
+ }
1488
+ return this;
1489
+ }
1490
+ tags(options) {
1491
+ if (Array.isArray(options)) {
1492
+ this._associations["tags"] = new TagQueryOptions(options);
1493
+ } else {
1494
+ this._associations["tags"] = options || new TagQueryOptions(["id"]);
1495
+ }
1496
+ return this;
1497
+ }
1498
+ tagsAggregate(aggregate) {
1499
+ this._aggregates["tagsAggregate"] = aggregate;
1500
+ return this;
1501
+ }
1502
+ author(options) {
1503
+ if (Array.isArray(options)) {
1504
+ this._associations["author"] = new UserQueryOptions(options);
1505
+ } else {
1506
+ this._associations["author"] = options || new UserQueryOptions(["id"]);
1507
+ }
1508
+ return this;
1509
+ }
1510
+ cover(options) {
1511
+ if (Array.isArray(options)) {
1512
+ this._associations["cover"] = new MediaQueryOptions(options);
1513
+ } else {
1514
+ this._associations["cover"] = options || new MediaQueryOptions(["id"]);
1515
+ }
1516
+ return this;
1517
+ }
1518
+ ogImage(options) {
1519
+ if (Array.isArray(options)) {
1520
+ this._associations["ogImage"] = new MediaQueryOptions(options);
1521
+ } else {
1522
+ this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
1523
+ }
1524
+ return this;
1525
+ }
1526
+ category(options) {
1527
+ if (Array.isArray(options)) {
1528
+ this._associations["category"] = new PostCategoryQueryOptions(options);
1529
+ } else {
1530
+ this._associations["category"] = options || new PostCategoryQueryOptions(["id"]);
1531
+ }
1532
+ return this;
1533
+ }
1534
+ }
1535
+ class PageQueryOptions extends QueryOptions {
1536
+ constructor(fields, queryArgs) {
1537
+ super(PageEntityName, fields, queryArgs);
1538
+ }
1539
+ id() {
1540
+ this.addField("id");
1541
+ return this;
1542
+ }
1543
+ title() {
1544
+ this.addField("title");
1545
+ return this;
1546
+ }
1547
+ content() {
1548
+ this.addField("content");
1549
+ return this;
1550
+ }
1551
+ /**
1552
+ * 备注
1553
+ */
1554
+ remark() {
1555
+ this.addField("remark");
1556
+ return this;
1557
+ }
1558
+ langAbbr() {
1559
+ this.addField("langAbbr");
1560
+ return this;
1561
+ }
1562
+ extends() {
1563
+ this.addField("extends");
1564
+ return this;
1565
+ }
1566
+ websiteId() {
1567
+ this.addField("websiteId");
1568
+ return this;
1569
+ }
1570
+ /**
1571
+ * 创建时间
1572
+ */
1573
+ createdAt() {
1574
+ this.addField("createdAt");
1575
+ return this;
1576
+ }
1577
+ /**
1578
+ * 更新时间
1579
+ */
1580
+ updatedAt() {
1581
+ this.addField("updatedAt");
1582
+ return this;
1583
+ }
1584
+ seoTitle() {
1585
+ this.addField("seoTitle");
1586
+ return this;
1587
+ }
1588
+ seoKeywords() {
1589
+ this.addField("seoKeywords");
1590
+ return this;
1591
+ }
1592
+ seoDescription() {
1593
+ this.addField("seoDescription");
1594
+ return this;
1595
+ }
1596
+ ogTitle() {
1597
+ this.addField("ogTitle");
1598
+ return this;
1599
+ }
1600
+ ogDescription() {
1601
+ this.addField("ogDescription");
1602
+ return this;
1603
+ }
1604
+ ogUrl() {
1605
+ this.addField("ogUrl");
1606
+ return this;
1607
+ }
1608
+ ogSiteName() {
1609
+ this.addField("ogSiteName");
1610
+ return this;
1611
+ }
1612
+ ogType() {
1613
+ this.addField("ogType");
1614
+ return this;
1615
+ }
1616
+ xCard() {
1617
+ this.addField("xCard");
1618
+ return this;
1619
+ }
1620
+ xSite() {
1621
+ this.addField("xSite");
1622
+ return this;
1623
+ }
1624
+ xTitle() {
1625
+ this.addField("xTitle");
1626
+ return this;
1627
+ }
1628
+ xDescription() {
1629
+ this.addField("xDescription");
1630
+ return this;
1631
+ }
1632
+ xUrl() {
1633
+ this.addField("xUrl");
1634
+ return this;
1635
+ }
1636
+ lang() {
1637
+ this.addField("lang");
1638
+ return this;
1639
+ }
1640
+ slug(options) {
1641
+ if (Array.isArray(options)) {
1642
+ this._associations["slug"] = new SlugQueryOptions(options);
1643
+ } else {
1644
+ this._associations["slug"] = options || new SlugQueryOptions(["id"]);
1645
+ }
1646
+ return this;
1647
+ }
1648
+ ogImage(options) {
1649
+ if (Array.isArray(options)) {
1650
+ this._associations["ogImage"] = new MediaQueryOptions(options);
1651
+ } else {
1652
+ this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
1653
+ }
1654
+ return this;
1655
+ }
1656
+ }
1657
+ class SlugQueryOptions extends QueryOptions {
1658
+ constructor(fields, queryArgs) {
1659
+ super(SlugEntityName, fields, queryArgs);
1660
+ }
1661
+ id() {
1662
+ this.addField("id");
1663
+ return this;
1664
+ }
1665
+ uniqueName() {
1666
+ this.addField("uniqueName");
1667
+ return this;
1668
+ }
1669
+ websiteId() {
1670
+ this.addField("websiteId");
1671
+ return this;
1672
+ }
1673
+ /**
1674
+ * 创建时间
1675
+ */
1676
+ createdAt() {
1677
+ this.addField("createdAt");
1678
+ return this;
1679
+ }
1680
+ /**
1681
+ * 更新时间
1682
+ */
1683
+ updatedAt() {
1684
+ this.addField("updatedAt");
1685
+ return this;
1686
+ }
1687
+ /**
1688
+ * 备注
1689
+ */
1690
+ remark() {
1691
+ this.addField("remark");
1692
+ return this;
1693
+ }
1694
+ post(options) {
1695
+ if (Array.isArray(options)) {
1696
+ this._associations["post"] = new PostQueryOptions(options);
1697
+ } else {
1698
+ this._associations["post"] = options || new PostQueryOptions(["id"]);
1699
+ }
1700
+ return this;
1701
+ }
1702
+ product(options) {
1703
+ if (Array.isArray(options)) {
1704
+ this._associations["product"] = new ProductQueryOptions(options);
1705
+ } else {
1706
+ this._associations["product"] = options || new ProductQueryOptions(["id"]);
1707
+ }
1708
+ return this;
1709
+ }
1710
+ page(options) {
1711
+ if (Array.isArray(options)) {
1712
+ this._associations["page"] = new PageQueryOptions(options);
1713
+ } else {
1714
+ this._associations["page"] = options || new PageQueryOptions(["id"]);
1715
+ }
1716
+ return this;
1717
+ }
1718
+ }
1719
+ class ProductQueryOptions extends QueryOptions {
1720
+ constructor(fields, queryArgs) {
1721
+ super(ProductEntityName, fields, queryArgs);
1722
+ }
1723
+ id() {
1724
+ this.addField("id");
1725
+ return this;
1726
+ }
1727
+ published() {
1728
+ this.addField("published");
1729
+ return this;
1730
+ }
1731
+ summary() {
1732
+ this.addField("summary");
1733
+ return this;
1734
+ }
1735
+ featured() {
1736
+ this.addField("featured");
1737
+ return this;
1738
+ }
1739
+ showInNavMenu() {
1740
+ this.addField("showInNavMenu");
1741
+ return this;
1742
+ }
1743
+ seqValue() {
1744
+ this.addField("seqValue");
1745
+ return this;
1746
+ }
1747
+ /**
1748
+ * 发布的内容
1749
+ */
1750
+ publishedContent() {
1751
+ this.addField("publishedContent");
1752
+ return this;
1753
+ }
1754
+ publishedAt() {
1755
+ this.addField("publishedAt");
1756
+ return this;
1757
+ }
1758
+ status() {
1759
+ this.addField("status");
1760
+ return this;
1761
+ }
1762
+ title() {
1763
+ this.addField("title");
1764
+ return this;
1765
+ }
1766
+ content() {
1767
+ this.addField("content");
1768
+ return this;
1769
+ }
1770
+ extends() {
1771
+ this.addField("extends");
1772
+ return this;
1773
+ }
1774
+ websiteId() {
1775
+ this.addField("websiteId");
1776
+ return this;
1777
+ }
1778
+ /**
1779
+ * 创建时间
1780
+ */
1781
+ createdAt() {
1782
+ this.addField("createdAt");
1783
+ return this;
1784
+ }
1785
+ /**
1786
+ * 更新时间
1787
+ */
1788
+ updatedAt() {
1789
+ this.addField("updatedAt");
1790
+ return this;
1791
+ }
1792
+ /**
1793
+ * 备注
1794
+ */
1795
+ remark() {
1796
+ this.addField("remark");
1797
+ return this;
1798
+ }
1799
+ seoTitle() {
1800
+ this.addField("seoTitle");
1801
+ return this;
1802
+ }
1803
+ seoKeywords() {
1804
+ this.addField("seoKeywords");
1805
+ return this;
1806
+ }
1807
+ seoDescription() {
1808
+ this.addField("seoDescription");
1809
+ return this;
1810
+ }
1811
+ ogTitle() {
1812
+ this.addField("ogTitle");
1813
+ return this;
1814
+ }
1815
+ ogDescription() {
1816
+ this.addField("ogDescription");
1817
+ return this;
1818
+ }
1819
+ ogUrl() {
1820
+ this.addField("ogUrl");
1821
+ return this;
1822
+ }
1823
+ ogSiteName() {
1824
+ this.addField("ogSiteName");
1825
+ return this;
1826
+ }
1827
+ ogType() {
1828
+ this.addField("ogType");
1829
+ return this;
1830
+ }
1831
+ xCard() {
1832
+ this.addField("xCard");
1833
+ return this;
1834
+ }
1835
+ xSite() {
1836
+ this.addField("xSite");
1837
+ return this;
1838
+ }
1839
+ xTitle() {
1840
+ this.addField("xTitle");
1841
+ return this;
1842
+ }
1843
+ xDescription() {
1844
+ this.addField("xDescription");
1845
+ return this;
1846
+ }
1847
+ xUrl() {
1848
+ this.addField("xUrl");
1849
+ return this;
1850
+ }
1851
+ lang() {
1852
+ this.addField("lang");
1853
+ return this;
1854
+ }
1855
+ category(options) {
1856
+ if (Array.isArray(options)) {
1857
+ this._associations["category"] = new ProductCategoryQueryOptions(options);
1858
+ } else {
1859
+ this._associations["category"] = options || new ProductCategoryQueryOptions(["id"]);
1860
+ }
1861
+ return this;
1862
+ }
1863
+ medias(options) {
1864
+ if (Array.isArray(options)) {
1865
+ this._associations["medias"] = new MediaQueryOptions(options);
1866
+ } else {
1867
+ this._associations["medias"] = options || new MediaQueryOptions(["id"]);
1868
+ }
1869
+ return this;
1870
+ }
1871
+ mediasAggregate(aggregate) {
1872
+ this._aggregates["mediasAggregate"] = aggregate;
1873
+ return this;
1874
+ }
1875
+ slug(options) {
1876
+ if (Array.isArray(options)) {
1877
+ this._associations["slug"] = new SlugQueryOptions(options);
1878
+ } else {
1879
+ this._associations["slug"] = options || new SlugQueryOptions(["id"]);
1880
+ }
1881
+ return this;
1882
+ }
1883
+ tags(options) {
1884
+ if (Array.isArray(options)) {
1885
+ this._associations["tags"] = new TagQueryOptions(options);
1886
+ } else {
1887
+ this._associations["tags"] = options || new TagQueryOptions(["id"]);
1888
+ }
1889
+ return this;
1890
+ }
1891
+ tagsAggregate(aggregate) {
1892
+ this._aggregates["tagsAggregate"] = aggregate;
1893
+ return this;
1894
+ }
1895
+ ogImage(options) {
1896
+ if (Array.isArray(options)) {
1897
+ this._associations["ogImage"] = new MediaQueryOptions(options);
1898
+ } else {
1899
+ this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
1900
+ }
1901
+ return this;
1902
+ }
1903
+ creator(options) {
1904
+ if (Array.isArray(options)) {
1905
+ this._associations["creator"] = new UserQueryOptions(options);
1906
+ } else {
1907
+ this._associations["creator"] = options || new UserQueryOptions(["id"]);
1908
+ }
1909
+ return this;
1910
+ }
1911
+ }
1912
+ class MediaQueryOptions extends QueryOptions {
1913
+ constructor(fields, queryArgs) {
1914
+ super(MediaEntityName, fields, queryArgs);
1915
+ }
1916
+ id() {
1917
+ this.addField("id");
1918
+ return this;
1919
+ }
1920
+ name() {
1921
+ this.addField("name");
1922
+ return this;
1923
+ }
1924
+ size() {
1925
+ this.addField("size");
1926
+ return this;
1927
+ }
1928
+ mimeType() {
1929
+ this.addField("mimeType");
1930
+ return this;
1931
+ }
1932
+ extName() {
1933
+ this.addField("extName");
1934
+ return this;
1935
+ }
1936
+ file(fields) {
1937
+ this.addObjectField("file", fields);
1938
+ return this;
1939
+ }
1940
+ description() {
1941
+ this.addField("description");
1942
+ return this;
1943
+ }
1944
+ createdAt() {
1945
+ this.addField("createdAt");
1946
+ return this;
1947
+ }
1948
+ updatedAt() {
1949
+ this.addField("updatedAt");
1950
+ return this;
1951
+ }
1952
+ mediaType() {
1953
+ this.addField("mediaType");
1954
+ return this;
1955
+ }
1956
+ /**
1957
+ * 网站Id
1958
+ */
1959
+ websiteId() {
1960
+ this.addField("websiteId");
1961
+ return this;
1962
+ }
1963
+ folder(options) {
1964
+ if (Array.isArray(options)) {
1965
+ this._associations["folder"] = new MediaFolderQueryOptions(options);
1966
+ } else {
1967
+ this._associations["folder"] = options || new MediaFolderQueryOptions(["id"]);
1968
+ }
1969
+ return this;
1970
+ }
1971
+ avatarOfUser(options) {
1972
+ if (Array.isArray(options)) {
1973
+ this._associations["avatarOfUser"] = new UserQueryOptions(options);
1974
+ } else {
1975
+ this._associations["avatarOfUser"] = options || new UserQueryOptions(["id"]);
1976
+ }
1977
+ return this;
1978
+ }
1979
+ usedByProducts(options) {
1980
+ if (Array.isArray(options)) {
1981
+ this._associations["usedByProducts"] = new ProductQueryOptions(options);
1982
+ } else {
1983
+ this._associations["usedByProducts"] = options || new ProductQueryOptions(["id"]);
1984
+ }
1985
+ return this;
1986
+ }
1987
+ usedByProductsAggregate(aggregate) {
1988
+ this._aggregates["usedByProductsAggregate"] = aggregate;
1989
+ return this;
1990
+ }
1991
+ }
1992
+ class WebsiteTypeQueryOptions extends QueryOptions {
1993
+ constructor(fields, queryArgs) {
1994
+ super(WebsiteTypeEntityName, fields, queryArgs);
1995
+ }
1996
+ id() {
1997
+ this.addField("id");
1998
+ return this;
1999
+ }
2000
+ /**
2001
+ * 网站类型名称
2002
+ */
2003
+ name() {
2004
+ this.addField("name");
2005
+ return this;
2006
+ }
2007
+ /**
2008
+ * 显示名称
2009
+ */
2010
+ displayName() {
2011
+ this.addField("displayName");
2012
+ return this;
2013
+ }
2014
+ pricePerMonth() {
2015
+ this.addField("pricePerMonth");
2016
+ return this;
2017
+ }
2018
+ pricePerYear() {
2019
+ this.addField("pricePerYear");
2020
+ return this;
2021
+ }
2022
+ /**
2023
+ * 备注
2024
+ */
2025
+ remark() {
2026
+ this.addField("remark");
2027
+ return this;
2028
+ }
2029
+ createdAt() {
2030
+ this.addField("createdAt");
2031
+ return this;
2032
+ }
2033
+ updatedAt() {
2034
+ this.addField("updatedAt");
2035
+ return this;
2036
+ }
2037
+ status() {
2038
+ this.addField("status");
2039
+ return this;
2040
+ }
2041
+ /**
2042
+ * 等级
2043
+ */
2044
+ level() {
2045
+ this.addField("level");
2046
+ return this;
2047
+ }
2048
+ websites(options) {
2049
+ if (Array.isArray(options)) {
2050
+ this._associations["websites"] = new WebsiteQueryOptions(options);
2051
+ } else {
2052
+ this._associations["websites"] = options || new WebsiteQueryOptions(["id"]);
2053
+ }
2054
+ return this;
2055
+ }
2056
+ websitesAggregate(aggregate) {
2057
+ this._aggregates["websitesAggregate"] = aggregate;
2058
+ return this;
2059
+ }
2060
+ }
2061
+ class TemplateCategoryQueryOptions extends QueryOptions {
2062
+ constructor(fields, queryArgs) {
2063
+ super(TemplateCategoryEntityName, fields, queryArgs);
2064
+ }
2065
+ id() {
2066
+ this.addField("id");
2067
+ return this;
2068
+ }
2069
+ name() {
2070
+ this.addField("name");
2071
+ return this;
2072
+ }
2073
+ seqValue() {
2074
+ this.addField("seqValue");
2075
+ return this;
2076
+ }
2077
+ websiteId() {
2078
+ this.addField("websiteId");
2079
+ return this;
2080
+ }
2081
+ /**
2082
+ * 创建时间
2083
+ */
2084
+ createdAt() {
2085
+ this.addField("createdAt");
2086
+ return this;
2087
+ }
2088
+ /**
2089
+ * 更新时间
2090
+ */
2091
+ updatedAt() {
2092
+ this.addField("updatedAt");
2093
+ return this;
2094
+ }
2095
+ /**
2096
+ * 备注
2097
+ */
2098
+ remark() {
2099
+ this.addField("remark");
2100
+ return this;
2101
+ }
2102
+ templates(options) {
2103
+ if (Array.isArray(options)) {
2104
+ this._associations["templates"] = new TemplateQueryOptions(options);
2105
+ } else {
2106
+ this._associations["templates"] = options || new TemplateQueryOptions(["id"]);
2107
+ }
2108
+ return this;
2109
+ }
2110
+ templatesAggregate(aggregate) {
2111
+ this._aggregates["templatesAggregate"] = aggregate;
2112
+ return this;
2113
+ }
2114
+ theme(options) {
2115
+ if (Array.isArray(options)) {
2116
+ this._associations["theme"] = new ThemeQueryOptions(options);
2117
+ } else {
2118
+ this._associations["theme"] = options || new ThemeQueryOptions(["id"]);
2119
+ }
2120
+ return this;
2121
+ }
2122
+ }
2123
+ class TemplateQueryOptions extends QueryOptions {
2124
+ constructor(fields, queryArgs) {
2125
+ super(TemplateEntityName, fields, queryArgs);
2126
+ }
2127
+ id() {
2128
+ this.addField("id");
2129
+ return this;
2130
+ }
2131
+ name() {
2132
+ this.addField("name");
2133
+ return this;
2134
+ }
2135
+ seqValue() {
2136
+ this.addField("seqValue");
2137
+ return this;
2138
+ }
2139
+ content() {
2140
+ this.addField("content");
2141
+ return this;
2142
+ }
2143
+ /**
2144
+ * 模板类型
2145
+ */
2146
+ templateType() {
2147
+ this.addField("templateType");
2148
+ return this;
2149
+ }
2150
+ websiteId() {
2151
+ this.addField("websiteId");
2152
+ return this;
2153
+ }
2154
+ /**
2155
+ * 创建时间
2156
+ */
2157
+ createdAt() {
2158
+ this.addField("createdAt");
2159
+ return this;
2160
+ }
2161
+ /**
2162
+ * 更新时间
2163
+ */
2164
+ updatedAt() {
2165
+ this.addField("updatedAt");
2166
+ return this;
2167
+ }
2168
+ /**
2169
+ * 备注
2170
+ */
2171
+ remark() {
2172
+ this.addField("remark");
2173
+ return this;
2174
+ }
2175
+ category(options) {
2176
+ if (Array.isArray(options)) {
2177
+ this._associations["category"] = new TemplateCategoryQueryOptions(options);
2178
+ } else {
2179
+ this._associations["category"] = options || new TemplateCategoryQueryOptions(["id"]);
2180
+ }
2181
+ return this;
2182
+ }
2183
+ theme(options) {
2184
+ if (Array.isArray(options)) {
2185
+ this._associations["theme"] = new ThemeQueryOptions(options);
2186
+ } else {
2187
+ this._associations["theme"] = options || new ThemeQueryOptions(["id"]);
2188
+ }
2189
+ return this;
2190
+ }
2191
+ }
2192
+ class ThemeQueryOptions extends QueryOptions {
2193
+ constructor(fields, queryArgs) {
2194
+ super(ThemeEntityName, fields, queryArgs);
2195
+ }
2196
+ id() {
2197
+ this.addField("id");
2198
+ return this;
2199
+ }
2200
+ name() {
2201
+ this.addField("name");
2202
+ return this;
2203
+ }
2204
+ styles() {
2205
+ this.addField("styles");
2206
+ return this;
2207
+ }
2208
+ settings() {
2209
+ this.addField("settings");
2210
+ return this;
2211
+ }
2212
+ websiteId() {
2213
+ this.addField("websiteId");
2214
+ return this;
2215
+ }
2216
+ /**
2217
+ * 创建时间
2218
+ */
2219
+ createdAt() {
2220
+ this.addField("createdAt");
2221
+ return this;
2222
+ }
2223
+ /**
2224
+ * 更新时间
2225
+ */
2226
+ updatedAt() {
2227
+ this.addField("updatedAt");
2228
+ return this;
2229
+ }
2230
+ /**
2231
+ * 备注
2232
+ */
2233
+ remark() {
2234
+ this.addField("remark");
2235
+ return this;
2236
+ }
2237
+ templates(options) {
2238
+ if (Array.isArray(options)) {
2239
+ this._associations["templates"] = new TemplateQueryOptions(options);
2240
+ } else {
2241
+ this._associations["templates"] = options || new TemplateQueryOptions(["id"]);
2242
+ }
2243
+ return this;
2244
+ }
2245
+ templatesAggregate(aggregate) {
2246
+ this._aggregates["templatesAggregate"] = aggregate;
2247
+ return this;
2248
+ }
2249
+ themlateCategories(options) {
2250
+ if (Array.isArray(options)) {
2251
+ this._associations["themlateCategories"] = new TemplateCategoryQueryOptions(options);
2252
+ } else {
2253
+ this._associations["themlateCategories"] = options || new TemplateCategoryQueryOptions(["id"]);
2254
+ }
2255
+ return this;
2256
+ }
2257
+ themlateCategoriesAggregate(aggregate) {
2258
+ this._aggregates["themlateCategoriesAggregate"] = aggregate;
2259
+ return this;
2260
+ }
2261
+ }
2262
+ class WebsiteQueryOptions extends QueryOptions {
2263
+ constructor(fields, queryArgs) {
2264
+ super(WebsiteEntityName, fields, queryArgs);
2265
+ }
2266
+ id() {
2267
+ this.addField("id");
2268
+ return this;
2269
+ }
2270
+ /**
2271
+ * 站点名称
2272
+ */
2273
+ name() {
2274
+ this.addField("name");
2275
+ return this;
2276
+ }
2277
+ /**
2278
+ * 站点备注
2279
+ */
2280
+ remark() {
2281
+ this.addField("remark");
2282
+ return this;
2283
+ }
2284
+ /**
2285
+ * 创建者ID
2286
+ */
2287
+ createdBy() {
2288
+ this.addField("createdBy");
2289
+ return this;
2290
+ }
2291
+ /**
2292
+ * 创建时间
2293
+ */
2294
+ createdAt() {
2295
+ this.addField("createdAt");
2296
+ return this;
2297
+ }
2298
+ /**
2299
+ * 最近打开时间
2300
+ */
2301
+ lastOpenTime() {
2302
+ this.addField("lastOpenTime");
2303
+ return this;
2304
+ }
2305
+ /**
2306
+ * 更新时间
2307
+ */
2308
+ updatedAt() {
2309
+ this.addField("updatedAt");
2310
+ return this;
2311
+ }
2312
+ /**
2313
+ * 更新者ID
2314
+ */
2315
+ updatedBy() {
2316
+ this.addField("updatedBy");
2317
+ return this;
2318
+ }
2319
+ websiteType(options) {
2320
+ if (Array.isArray(options)) {
2321
+ this._associations["websiteType"] = new WebsiteTypeQueryOptions(options);
2322
+ } else {
2323
+ this._associations["websiteType"] = options || new WebsiteTypeQueryOptions(["id"]);
2324
+ }
2325
+ return this;
2326
+ }
2327
+ selectedTheme(options) {
2328
+ if (Array.isArray(options)) {
2329
+ this._associations["selectedTheme"] = new ThemeQueryOptions(options);
2330
+ } else {
2331
+ this._associations["selectedTheme"] = options || new ThemeQueryOptions(["id"]);
2332
+ }
2333
+ return this;
2334
+ }
2335
+ homePage(options) {
2336
+ if (Array.isArray(options)) {
2337
+ this._associations["homePage"] = new PageQueryOptions(options);
2338
+ } else {
2339
+ this._associations["homePage"] = options || new PageQueryOptions(["id"]);
2340
+ }
2341
+ return this;
2342
+ }
2343
+ owner(options) {
2344
+ if (Array.isArray(options)) {
2345
+ this._associations["owner"] = new UserQueryOptions(options);
2346
+ } else {
2347
+ this._associations["owner"] = options || new UserQueryOptions(["id"]);
2348
+ }
2349
+ return this;
2350
+ }
2351
+ users(options) {
2352
+ if (Array.isArray(options)) {
2353
+ this._associations["users"] = new UserQueryOptions(options);
2354
+ } else {
2355
+ this._associations["users"] = options || new UserQueryOptions(["id"]);
2356
+ }
2357
+ return this;
2358
+ }
2359
+ usersAggregate(aggregate) {
2360
+ this._aggregates["usersAggregate"] = aggregate;
2361
+ return this;
2362
+ }
2363
+ }
2364
+ class UserQueryOptions extends QueryOptions {
2365
+ constructor(fields, queryArgs) {
2366
+ super(UserEntityName, fields, queryArgs);
2367
+ }
2368
+ id() {
2369
+ this.addField("id");
2370
+ return this;
2371
+ }
2372
+ loginName() {
2373
+ this.addField("loginName");
2374
+ return this;
2375
+ }
2376
+ name() {
2377
+ this.addField("name");
2378
+ return this;
2379
+ }
2380
+ mobileNumber() {
2381
+ this.addField("mobileNumber");
2382
+ return this;
2383
+ }
2384
+ isSupperAdmin() {
2385
+ this.addField("isSupperAdmin");
2386
+ return this;
2387
+ }
2388
+ password() {
2389
+ this.addField("password");
2390
+ return this;
2391
+ }
2392
+ createdAt() {
2393
+ this.addField("createdAt");
2394
+ return this;
2395
+ }
2396
+ updatedAt() {
2397
+ this.addField("updatedAt");
2398
+ return this;
2399
+ }
2400
+ /**
2401
+ * 职位
2402
+ */
2403
+ postion() {
2404
+ this.addField("postion");
2405
+ return this;
2406
+ }
2407
+ /**
2408
+ * 自我介绍
2409
+ */
2410
+ profile() {
2411
+ this.addField("profile");
2412
+ return this;
2413
+ }
2414
+ userType() {
2415
+ this.addField("userType");
2416
+ return this;
2417
+ }
2418
+ /**
2419
+ * 邮箱
2420
+ */
2421
+ email() {
2422
+ this.addField("email");
2423
+ return this;
2424
+ }
2425
+ /**
2426
+ * 电话
2427
+ */
2428
+ tel() {
2429
+ this.addField("tel");
2430
+ return this;
2431
+ }
2432
+ /**
2433
+ * 电话2
2434
+ */
2435
+ tel2() {
2436
+ this.addField("tel2");
2437
+ return this;
2438
+ }
2439
+ mobile() {
2440
+ this.addField("mobile");
2441
+ return this;
2442
+ }
2443
+ whatsApp() {
2444
+ this.addField("whatsApp");
2445
+ return this;
2446
+ }
2447
+ linkedIn() {
2448
+ this.addField("linkedIn");
2449
+ return this;
2450
+ }
2451
+ twitter() {
2452
+ this.addField("twitter");
2453
+ return this;
2454
+ }
2455
+ facebook() {
2456
+ this.addField("facebook");
2457
+ return this;
2458
+ }
2459
+ instagram() {
2460
+ this.addField("instagram");
2461
+ return this;
2462
+ }
2463
+ /**
2464
+ * 简介
2465
+ */
2466
+ summary() {
2467
+ this.addField("summary");
2468
+ return this;
2469
+ }
2470
+ roles(options) {
2471
+ if (Array.isArray(options)) {
2472
+ this._associations["roles"] = new RoleQueryOptions(options);
2473
+ } else {
2474
+ this._associations["roles"] = options || new RoleQueryOptions(["id"]);
2475
+ }
2476
+ return this;
2477
+ }
2478
+ rolesAggregate(aggregate) {
2479
+ this._aggregates["rolesAggregate"] = aggregate;
2480
+ return this;
2481
+ }
2482
+ avatar(options) {
2483
+ if (Array.isArray(options)) {
2484
+ this._associations["avatar"] = new MediaQueryOptions(options);
2485
+ } else {
2486
+ this._associations["avatar"] = options || new MediaQueryOptions(["id"]);
2487
+ }
2488
+ return this;
2489
+ }
2490
+ products(options) {
2491
+ if (Array.isArray(options)) {
2492
+ this._associations["products"] = new ProductQueryOptions(options);
2493
+ } else {
2494
+ this._associations["products"] = options || new ProductQueryOptions(["id"]);
2495
+ }
2496
+ return this;
2497
+ }
2498
+ productsAggregate(aggregate) {
2499
+ this._aggregates["productsAggregate"] = aggregate;
2500
+ return this;
2501
+ }
2502
+ posts(options) {
2503
+ if (Array.isArray(options)) {
2504
+ this._associations["posts"] = new PostQueryOptions(options);
2505
+ } else {
2506
+ this._associations["posts"] = options || new PostQueryOptions(["id"]);
2507
+ }
2508
+ return this;
2509
+ }
2510
+ postsAggregate(aggregate) {
2511
+ this._aggregates["postsAggregate"] = aggregate;
2512
+ return this;
2513
+ }
2514
+ websites(options) {
2515
+ if (Array.isArray(options)) {
2516
+ this._associations["websites"] = new WebsiteQueryOptions(options);
2517
+ } else {
2518
+ this._associations["websites"] = options || new WebsiteQueryOptions(["id"]);
2519
+ }
2520
+ return this;
2521
+ }
2522
+ websitesAggregate(aggregate) {
2523
+ this._aggregates["websitesAggregate"] = aggregate;
2524
+ return this;
2525
+ }
2526
+ belongsTo(options) {
2527
+ if (Array.isArray(options)) {
2528
+ this._associations["belongsTo"] = new WebsiteQueryOptions(options);
2529
+ } else {
2530
+ this._associations["belongsTo"] = options || new WebsiteQueryOptions(["id"]);
2531
+ }
2532
+ return this;
2533
+ }
2534
+ }
2535
+ class AbilityQueryOptions extends QueryOptions {
2536
+ constructor(fields, queryArgs) {
2537
+ super(AbilityEntityName, fields, queryArgs);
2538
+ }
2539
+ id() {
2540
+ this.addField("id");
2541
+ return this;
2542
+ }
2543
+ entityUuid() {
2544
+ this.addField("entityUuid");
2545
+ return this;
2546
+ }
2547
+ columnUuid() {
2548
+ this.addField("columnUuid");
2549
+ return this;
2550
+ }
2551
+ can() {
2552
+ this.addField("can");
2553
+ return this;
2554
+ }
2555
+ expression() {
2556
+ this.addField("expression");
2557
+ return this;
2558
+ }
2559
+ abilityType() {
2560
+ this.addField("abilityType");
2561
+ return this;
2562
+ }
2563
+ roleId() {
2564
+ this.addField("roleId");
2565
+ return this;
2566
+ }
2567
+ }
2568
+ class LangQueryOptions extends QueryOptions {
2569
+ constructor(fields, queryArgs) {
2570
+ super(LangEntityName, fields, queryArgs);
2571
+ }
2572
+ id() {
2573
+ this.addField("id");
2574
+ return this;
2575
+ }
2576
+ /**
2577
+ * 缩写
2578
+ */
2579
+ abbr() {
2580
+ this.addField("abbr");
2581
+ return this;
2582
+ }
2583
+ /**
2584
+ * 英文名称
2585
+ */
2586
+ enName() {
2587
+ this.addField("enName");
2588
+ return this;
2589
+ }
2590
+ /**
2591
+ * 本地名称
2592
+ */
2593
+ localName() {
2594
+ this.addField("localName");
2595
+ return this;
2596
+ }
2597
+ /**
2598
+ * 国旗图标
2599
+ */
2600
+ icon() {
2601
+ this.addField("icon");
2602
+ return this;
2603
+ }
2604
+ /**
2605
+ * 备注
2606
+ */
2607
+ remark() {
2608
+ this.addField("remark");
2609
+ return this;
2610
+ }
2611
+ websiteId() {
2612
+ this.addField("websiteId");
2613
+ return this;
2614
+ }
2615
+ /**
2616
+ * 创建时间
2617
+ */
2618
+ createdAt() {
2619
+ this.addField("createdAt");
2620
+ return this;
2621
+ }
2622
+ /**
2623
+ * 更新时间
2624
+ */
2625
+ updatedAt() {
2626
+ this.addField("updatedAt");
2627
+ return this;
2628
+ }
2629
+ }
2630
+ class CustomerQueryOptions extends QueryOptions {
2631
+ constructor(fields, queryArgs) {
2632
+ super(CustomerEntityName, fields, queryArgs);
2633
+ }
2634
+ id() {
2635
+ this.addField("id");
2636
+ return this;
2637
+ }
2638
+ websiteId() {
2639
+ this.addField("websiteId");
2640
+ return this;
2641
+ }
2642
+ /**
2643
+ * 创建时间
2644
+ */
2645
+ createdAt() {
2646
+ this.addField("createdAt");
2647
+ return this;
2648
+ }
2649
+ /**
2650
+ * 更新时间
2651
+ */
2652
+ updatedAt() {
2653
+ this.addField("updatedAt");
2654
+ return this;
2655
+ }
2656
+ /**
2657
+ * 备注
2658
+ */
2659
+ remark() {
2660
+ this.addField("remark");
2661
+ return this;
2662
+ }
2663
+ /**
2664
+ * 邮箱
2665
+ */
2666
+ email() {
2667
+ this.addField("email");
2668
+ return this;
2669
+ }
2670
+ /**
2671
+ * 电话
2672
+ */
2673
+ tel() {
2674
+ this.addField("tel");
2675
+ return this;
2676
+ }
2677
+ /**
2678
+ * 电话2
2679
+ */
2680
+ tel2() {
2681
+ this.addField("tel2");
2682
+ return this;
2683
+ }
2684
+ name() {
2685
+ this.addField("name");
2686
+ return this;
2687
+ }
2688
+ mobile() {
2689
+ this.addField("mobile");
2690
+ return this;
2691
+ }
2692
+ whatsApp() {
2693
+ this.addField("whatsApp");
2694
+ return this;
2695
+ }
2696
+ linkedIn() {
2697
+ this.addField("linkedIn");
2698
+ return this;
2699
+ }
2700
+ twitter() {
2701
+ this.addField("twitter");
2702
+ return this;
2703
+ }
2704
+ facebook() {
2705
+ this.addField("facebook");
2706
+ return this;
2707
+ }
2708
+ instagram() {
2709
+ this.addField("instagram");
2710
+ return this;
2711
+ }
2712
+ /**
2713
+ * 简介
2714
+ */
2715
+ summary() {
2716
+ this.addField("summary");
2717
+ return this;
2718
+ }
2719
+ enquires(options) {
2720
+ if (Array.isArray(options)) {
2721
+ this._associations["enquires"] = new EnquiryQueryOptions(options);
2722
+ } else {
2723
+ this._associations["enquires"] = options || new EnquiryQueryOptions(["id"]);
2724
+ }
2725
+ return this;
2726
+ }
2727
+ enquiresAggregate(aggregate) {
2728
+ this._aggregates["enquiresAggregate"] = aggregate;
2729
+ return this;
2730
+ }
2731
+ }
2732
+ class EnquiryQueryOptions extends QueryOptions {
2733
+ constructor(fields, queryArgs) {
2734
+ super(EnquiryEntityName, fields, queryArgs);
2735
+ }
2736
+ id() {
2737
+ this.addField("id");
2738
+ return this;
2739
+ }
2740
+ title() {
2741
+ this.addField("title");
2742
+ return this;
2743
+ }
2744
+ company() {
2745
+ this.addField("company");
2746
+ return this;
2747
+ }
2748
+ name() {
2749
+ this.addField("name");
2750
+ return this;
2751
+ }
2752
+ email() {
2753
+ this.addField("email");
2754
+ return this;
2755
+ }
2756
+ message() {
2757
+ this.addField("message");
2758
+ return this;
2759
+ }
2760
+ fromUrl() {
2761
+ this.addField("fromUrl");
2762
+ return this;
2763
+ }
2764
+ formIp() {
2765
+ this.addField("formIp");
2766
+ return this;
2767
+ }
2768
+ userAgent() {
2769
+ this.addField("userAgent");
2770
+ return this;
2771
+ }
2772
+ /**
2773
+ * 来源cta
2774
+ */
2775
+ fromCta() {
2776
+ this.addField("fromCta");
2777
+ return this;
2778
+ }
2779
+ read() {
2780
+ this.addField("read");
2781
+ return this;
2782
+ }
2783
+ websiteId() {
2784
+ this.addField("websiteId");
2785
+ return this;
2786
+ }
2787
+ /**
2788
+ * 创建时间
2789
+ */
2790
+ createdAt() {
2791
+ this.addField("createdAt");
2792
+ return this;
2793
+ }
2794
+ /**
2795
+ * 更新时间
2796
+ */
2797
+ updatedAt() {
2798
+ this.addField("updatedAt");
2799
+ return this;
2800
+ }
2801
+ /**
2802
+ * 备注
2803
+ */
2804
+ remark() {
2805
+ this.addField("remark");
2806
+ return this;
2807
+ }
2808
+ customer(options) {
2809
+ if (Array.isArray(options)) {
2810
+ this._associations["customer"] = new CustomerQueryOptions(options);
2811
+ } else {
2812
+ this._associations["customer"] = options || new CustomerQueryOptions(["id"]);
2813
+ }
2814
+ return this;
2815
+ }
2816
+ }
2817
+ class WebsiteMetaQueryOptions extends QueryOptions {
2818
+ constructor(fields, queryArgs) {
2819
+ super(WebsiteMetaEntityName, fields, queryArgs);
2820
+ }
2821
+ id() {
2822
+ this.addField("id");
2823
+ return this;
2824
+ }
2825
+ }
2826
+ class WebsiteSettingsQueryOptions extends QueryOptions {
2827
+ constructor(fields, queryArgs) {
2828
+ super(WebsiteSettingsEntityName, fields, queryArgs);
2829
+ }
2830
+ id() {
2831
+ this.addField("id");
2832
+ return this;
2833
+ }
2834
+ /**
2835
+ * 邮件配置
2836
+ */
2837
+ smtpConfig() {
2838
+ this.addField("smtpConfig");
2839
+ return this;
2840
+ }
2841
+ contact() {
2842
+ this.addField("contact");
2843
+ return this;
2844
+ }
2845
+ address() {
2846
+ this.addField("address");
2847
+ return this;
2848
+ }
2849
+ email() {
2850
+ this.addField("email");
2851
+ return this;
2852
+ }
2853
+ tel() {
2854
+ this.addField("tel");
2855
+ return this;
2856
+ }
2857
+ fax() {
2858
+ this.addField("fax");
2859
+ return this;
2860
+ }
2861
+ wechat() {
2862
+ this.addField("wechat");
2863
+ return this;
2864
+ }
2865
+ whatsapp() {
2866
+ this.addField("whatsapp");
2867
+ return this;
2868
+ }
2869
+ mobile() {
2870
+ this.addField("mobile");
2871
+ return this;
2872
+ }
2873
+ websiteId() {
2874
+ this.addField("websiteId");
2875
+ return this;
2876
+ }
2877
+ /**
2878
+ * 创建时间
2879
+ */
2880
+ createdAt() {
2881
+ this.addField("createdAt");
2882
+ return this;
2883
+ }
2884
+ /**
2885
+ * 更新时间
2886
+ */
2887
+ updatedAt() {
2888
+ this.addField("updatedAt");
2889
+ return this;
2890
+ }
2891
+ /**
2892
+ * 备注
2893
+ */
2894
+ remark() {
2895
+ this.addField("remark");
2896
+ return this;
2897
+ }
2898
+ }
751
2899
  const userEntry = {
752
2900
  entityName: UserEntityName,
753
2901
  entityLabel: UserEntityLabel,
@@ -880,28 +3028,34 @@ var UserFields = /* @__PURE__ */ ((UserFields2) => {
880
3028
  UserFields2["facebook"] = "facebook";
881
3029
  UserFields2["instagram"] = "instagram";
882
3030
  UserFields2["summary"] = "summary";
883
- UserFields2["roles"] = "roles";
884
- UserFields2["rolesAggregate"] = "rolesAggregate";
885
- UserFields2["avatar"] = "avatar";
886
- UserFields2["products"] = "products";
887
- UserFields2["productsAggregate"] = "productsAggregate";
888
- UserFields2["posts"] = "posts";
889
- UserFields2["postsAggregate"] = "postsAggregate";
890
- UserFields2["websites"] = "websites";
891
- UserFields2["websitesAggregate"] = "websitesAggregate";
892
- UserFields2["belongsTo"] = "belongsTo";
893
3031
  return UserFields2;
894
3032
  })(UserFields || {});
3033
+ var UserAssciations = /* @__PURE__ */ ((UserAssciations2) => {
3034
+ UserAssciations2["roles"] = "roles";
3035
+ UserAssciations2["rolesAggregate"] = "rolesAggregate";
3036
+ UserAssciations2["avatar"] = "avatar";
3037
+ UserAssciations2["products"] = "products";
3038
+ UserAssciations2["productsAggregate"] = "productsAggregate";
3039
+ UserAssciations2["posts"] = "posts";
3040
+ UserAssciations2["postsAggregate"] = "postsAggregate";
3041
+ UserAssciations2["websites"] = "websites";
3042
+ UserAssciations2["websitesAggregate"] = "websitesAggregate";
3043
+ UserAssciations2["belongsTo"] = "belongsTo";
3044
+ return UserAssciations2;
3045
+ })(UserAssciations || {});
895
3046
  var RoleFields = /* @__PURE__ */ ((RoleFields2) => {
896
3047
  RoleFields2["id"] = "id";
897
3048
  RoleFields2["name"] = "name";
898
3049
  RoleFields2["description"] = "description";
899
3050
  RoleFields2["createdAt"] = "createdAt";
900
3051
  RoleFields2["updatedAt"] = "updatedAt";
901
- RoleFields2["users"] = "users";
902
- RoleFields2["usersAggregate"] = "usersAggregate";
903
3052
  return RoleFields2;
904
3053
  })(RoleFields || {});
3054
+ var RoleAssciations = /* @__PURE__ */ ((RoleAssciations2) => {
3055
+ RoleAssciations2["users"] = "users";
3056
+ RoleAssciations2["usersAggregate"] = "usersAggregate";
3057
+ return RoleAssciations2;
3058
+ })(RoleAssciations || {});
905
3059
  var AbilityFields = /* @__PURE__ */ ((AbilityFields2) => {
906
3060
  AbilityFields2["id"] = "id";
907
3061
  AbilityFields2["entityUuid"] = "entityUuid";
@@ -912,6 +3066,8 @@ var AbilityFields = /* @__PURE__ */ ((AbilityFields2) => {
912
3066
  AbilityFields2["roleId"] = "roleId";
913
3067
  return AbilityFields2;
914
3068
  })(AbilityFields || {});
3069
+ var AbilityAssciations = /* @__PURE__ */ ((AbilityAssciations2) => {
3070
+ })();
915
3071
  var MediaFields = /* @__PURE__ */ ((MediaFields2) => {
916
3072
  MediaFields2["id"] = "id";
917
3073
  MediaFields2["name"] = "name";
@@ -924,12 +3080,15 @@ var MediaFields = /* @__PURE__ */ ((MediaFields2) => {
924
3080
  MediaFields2["updatedAt"] = "updatedAt";
925
3081
  MediaFields2["mediaType"] = "mediaType";
926
3082
  MediaFields2["websiteId"] = "websiteId";
927
- MediaFields2["folder"] = "folder";
928
- MediaFields2["avatarOfUser"] = "avatarOfUser";
929
- MediaFields2["usedByProducts"] = "usedByProducts";
930
- MediaFields2["usedByProductsAggregate"] = "usedByProductsAggregate";
931
3083
  return MediaFields2;
932
3084
  })(MediaFields || {});
3085
+ var MediaAssciations = /* @__PURE__ */ ((MediaAssciations2) => {
3086
+ MediaAssciations2["folder"] = "folder";
3087
+ MediaAssciations2["avatarOfUser"] = "avatarOfUser";
3088
+ MediaAssciations2["usedByProducts"] = "usedByProducts";
3089
+ MediaAssciations2["usedByProductsAggregate"] = "usedByProductsAggregate";
3090
+ return MediaAssciations2;
3091
+ })(MediaAssciations || {});
933
3092
  var WebsiteFields = /* @__PURE__ */ ((WebsiteFields2) => {
934
3093
  WebsiteFields2["id"] = "id";
935
3094
  WebsiteFields2["name"] = "name";
@@ -939,14 +3098,17 @@ var WebsiteFields = /* @__PURE__ */ ((WebsiteFields2) => {
939
3098
  WebsiteFields2["lastOpenTime"] = "lastOpenTime";
940
3099
  WebsiteFields2["updatedAt"] = "updatedAt";
941
3100
  WebsiteFields2["updatedBy"] = "updatedBy";
942
- WebsiteFields2["websiteType"] = "websiteType";
943
- WebsiteFields2["selectedTheme"] = "selectedTheme";
944
- WebsiteFields2["homePage"] = "homePage";
945
- WebsiteFields2["owner"] = "owner";
946
- WebsiteFields2["users"] = "users";
947
- WebsiteFields2["usersAggregate"] = "usersAggregate";
948
3101
  return WebsiteFields2;
949
3102
  })(WebsiteFields || {});
3103
+ var WebsiteAssciations = /* @__PURE__ */ ((WebsiteAssciations2) => {
3104
+ WebsiteAssciations2["websiteType"] = "websiteType";
3105
+ WebsiteAssciations2["selectedTheme"] = "selectedTheme";
3106
+ WebsiteAssciations2["homePage"] = "homePage";
3107
+ WebsiteAssciations2["owner"] = "owner";
3108
+ WebsiteAssciations2["users"] = "users";
3109
+ WebsiteAssciations2["usersAggregate"] = "usersAggregate";
3110
+ return WebsiteAssciations2;
3111
+ })(WebsiteAssciations || {});
950
3112
  var LangFields = /* @__PURE__ */ ((LangFields2) => {
951
3113
  LangFields2["id"] = "id";
952
3114
  LangFields2["abbr"] = "abbr";
@@ -959,6 +3121,8 @@ var LangFields = /* @__PURE__ */ ((LangFields2) => {
959
3121
  LangFields2["updatedAt"] = "updatedAt";
960
3122
  return LangFields2;
961
3123
  })(LangFields || {});
3124
+ var LangAssciations = /* @__PURE__ */ ((LangAssciations2) => {
3125
+ })();
962
3126
  var WebsiteTypeFields = /* @__PURE__ */ ((WebsiteTypeFields2) => {
963
3127
  WebsiteTypeFields2["id"] = "id";
964
3128
  WebsiteTypeFields2["name"] = "name";
@@ -970,10 +3134,13 @@ var WebsiteTypeFields = /* @__PURE__ */ ((WebsiteTypeFields2) => {
970
3134
  WebsiteTypeFields2["updatedAt"] = "updatedAt";
971
3135
  WebsiteTypeFields2["status"] = "status";
972
3136
  WebsiteTypeFields2["level"] = "level";
973
- WebsiteTypeFields2["websites"] = "websites";
974
- WebsiteTypeFields2["websitesAggregate"] = "websitesAggregate";
975
3137
  return WebsiteTypeFields2;
976
3138
  })(WebsiteTypeFields || {});
3139
+ var WebsiteTypeAssciations = /* @__PURE__ */ ((WebsiteTypeAssciations2) => {
3140
+ WebsiteTypeAssciations2["websites"] = "websites";
3141
+ WebsiteTypeAssciations2["websitesAggregate"] = "websitesAggregate";
3142
+ return WebsiteTypeAssciations2;
3143
+ })(WebsiteTypeAssciations || {});
977
3144
  var PageFields = /* @__PURE__ */ ((PageFields2) => {
978
3145
  PageFields2["id"] = "id";
979
3146
  PageFields2["title"] = "title";
@@ -989,14 +3156,22 @@ var PageFields = /* @__PURE__ */ ((PageFields2) => {
989
3156
  PageFields2["seoDescription"] = "seoDescription";
990
3157
  PageFields2["ogTitle"] = "ogTitle";
991
3158
  PageFields2["ogDescription"] = "ogDescription";
992
- PageFields2["ogImageUrl"] = "ogImageUrl";
993
3159
  PageFields2["ogUrl"] = "ogUrl";
994
3160
  PageFields2["ogSiteName"] = "ogSiteName";
995
3161
  PageFields2["ogType"] = "ogType";
3162
+ PageFields2["xCard"] = "xCard";
3163
+ PageFields2["xSite"] = "xSite";
3164
+ PageFields2["xTitle"] = "xTitle";
3165
+ PageFields2["xDescription"] = "xDescription";
3166
+ PageFields2["xUrl"] = "xUrl";
996
3167
  PageFields2["lang"] = "lang";
997
- PageFields2["slug"] = "slug";
998
3168
  return PageFields2;
999
3169
  })(PageFields || {});
3170
+ var PageAssciations = /* @__PURE__ */ ((PageAssciations2) => {
3171
+ PageAssciations2["slug"] = "slug";
3172
+ PageAssciations2["ogImage"] = "ogImage";
3173
+ return PageAssciations2;
3174
+ })(PageAssciations || {});
1000
3175
  var PostFields = /* @__PURE__ */ ((PostFields2) => {
1001
3176
  PostFields2["id"] = "id";
1002
3177
  PostFields2["seqValue"] = "seqValue";
@@ -1018,19 +3193,27 @@ var PostFields = /* @__PURE__ */ ((PostFields2) => {
1018
3193
  PostFields2["seoDescription"] = "seoDescription";
1019
3194
  PostFields2["ogTitle"] = "ogTitle";
1020
3195
  PostFields2["ogDescription"] = "ogDescription";
1021
- PostFields2["ogImageUrl"] = "ogImageUrl";
1022
3196
  PostFields2["ogUrl"] = "ogUrl";
1023
3197
  PostFields2["ogSiteName"] = "ogSiteName";
1024
3198
  PostFields2["ogType"] = "ogType";
3199
+ PostFields2["xCard"] = "xCard";
3200
+ PostFields2["xSite"] = "xSite";
3201
+ PostFields2["xTitle"] = "xTitle";
3202
+ PostFields2["xDescription"] = "xDescription";
3203
+ PostFields2["xUrl"] = "xUrl";
1025
3204
  PostFields2["lang"] = "lang";
1026
- PostFields2["slug"] = "slug";
1027
- PostFields2["tags"] = "tags";
1028
- PostFields2["tagsAggregate"] = "tagsAggregate";
1029
- PostFields2["author"] = "author";
1030
- PostFields2["cover"] = "cover";
1031
- PostFields2["category"] = "category";
1032
3205
  return PostFields2;
1033
3206
  })(PostFields || {});
3207
+ var PostAssciations = /* @__PURE__ */ ((PostAssciations2) => {
3208
+ PostAssciations2["slug"] = "slug";
3209
+ PostAssciations2["tags"] = "tags";
3210
+ PostAssciations2["tagsAggregate"] = "tagsAggregate";
3211
+ PostAssciations2["author"] = "author";
3212
+ PostAssciations2["cover"] = "cover";
3213
+ PostAssciations2["ogImage"] = "ogImage";
3214
+ PostAssciations2["category"] = "category";
3215
+ return PostAssciations2;
3216
+ })(PostAssciations || {});
1034
3217
  var ProductFields = /* @__PURE__ */ ((ProductFields2) => {
1035
3218
  ProductFields2["id"] = "id";
1036
3219
  ProductFields2["published"] = "published";
@@ -1053,20 +3236,28 @@ var ProductFields = /* @__PURE__ */ ((ProductFields2) => {
1053
3236
  ProductFields2["seoDescription"] = "seoDescription";
1054
3237
  ProductFields2["ogTitle"] = "ogTitle";
1055
3238
  ProductFields2["ogDescription"] = "ogDescription";
1056
- ProductFields2["ogImageUrl"] = "ogImageUrl";
1057
3239
  ProductFields2["ogUrl"] = "ogUrl";
1058
3240
  ProductFields2["ogSiteName"] = "ogSiteName";
1059
3241
  ProductFields2["ogType"] = "ogType";
3242
+ ProductFields2["xCard"] = "xCard";
3243
+ ProductFields2["xSite"] = "xSite";
3244
+ ProductFields2["xTitle"] = "xTitle";
3245
+ ProductFields2["xDescription"] = "xDescription";
3246
+ ProductFields2["xUrl"] = "xUrl";
1060
3247
  ProductFields2["lang"] = "lang";
1061
- ProductFields2["category"] = "category";
1062
- ProductFields2["medias"] = "medias";
1063
- ProductFields2["mediasAggregate"] = "mediasAggregate";
1064
- ProductFields2["slug"] = "slug";
1065
- ProductFields2["tags"] = "tags";
1066
- ProductFields2["tagsAggregate"] = "tagsAggregate";
1067
- ProductFields2["creator"] = "creator";
1068
3248
  return ProductFields2;
1069
3249
  })(ProductFields || {});
3250
+ var ProductAssciations = /* @__PURE__ */ ((ProductAssciations2) => {
3251
+ ProductAssciations2["category"] = "category";
3252
+ ProductAssciations2["medias"] = "medias";
3253
+ ProductAssciations2["mediasAggregate"] = "mediasAggregate";
3254
+ ProductAssciations2["slug"] = "slug";
3255
+ ProductAssciations2["tags"] = "tags";
3256
+ ProductAssciations2["tagsAggregate"] = "tagsAggregate";
3257
+ ProductAssciations2["ogImage"] = "ogImage";
3258
+ ProductAssciations2["creator"] = "creator";
3259
+ return ProductAssciations2;
3260
+ })(ProductAssciations || {});
1070
3261
  var SlugFields = /* @__PURE__ */ ((SlugFields2) => {
1071
3262
  SlugFields2["id"] = "id";
1072
3263
  SlugFields2["uniqueName"] = "uniqueName";
@@ -1074,11 +3265,14 @@ var SlugFields = /* @__PURE__ */ ((SlugFields2) => {
1074
3265
  SlugFields2["createdAt"] = "createdAt";
1075
3266
  SlugFields2["updatedAt"] = "updatedAt";
1076
3267
  SlugFields2["remark"] = "remark";
1077
- SlugFields2["post"] = "post";
1078
- SlugFields2["product"] = "product";
1079
- SlugFields2["page"] = "page";
1080
3268
  return SlugFields2;
1081
3269
  })(SlugFields || {});
3270
+ var SlugAssciations = /* @__PURE__ */ ((SlugAssciations2) => {
3271
+ SlugAssciations2["post"] = "post";
3272
+ SlugAssciations2["product"] = "product";
3273
+ SlugAssciations2["page"] = "page";
3274
+ return SlugAssciations2;
3275
+ })(SlugAssciations || {});
1082
3276
  var EnquiryFields = /* @__PURE__ */ ((EnquiryFields2) => {
1083
3277
  EnquiryFields2["id"] = "id";
1084
3278
  EnquiryFields2["title"] = "title";
@@ -1095,13 +3289,18 @@ var EnquiryFields = /* @__PURE__ */ ((EnquiryFields2) => {
1095
3289
  EnquiryFields2["createdAt"] = "createdAt";
1096
3290
  EnquiryFields2["updatedAt"] = "updatedAt";
1097
3291
  EnquiryFields2["remark"] = "remark";
1098
- EnquiryFields2["customer"] = "customer";
1099
3292
  return EnquiryFields2;
1100
3293
  })(EnquiryFields || {});
3294
+ var EnquiryAssciations = /* @__PURE__ */ ((EnquiryAssciations2) => {
3295
+ EnquiryAssciations2["customer"] = "customer";
3296
+ return EnquiryAssciations2;
3297
+ })(EnquiryAssciations || {});
1101
3298
  var WebsiteMetaFields = /* @__PURE__ */ ((WebsiteMetaFields2) => {
1102
3299
  WebsiteMetaFields2["id"] = "id";
1103
3300
  return WebsiteMetaFields2;
1104
3301
  })(WebsiteMetaFields || {});
3302
+ var WebsiteMetaAssciations = /* @__PURE__ */ ((WebsiteMetaAssciations2) => {
3303
+ })();
1105
3304
  var WebsiteSettingsFields = /* @__PURE__ */ ((WebsiteSettingsFields2) => {
1106
3305
  WebsiteSettingsFields2["id"] = "id";
1107
3306
  WebsiteSettingsFields2["smtpConfig"] = "smtpConfig";
@@ -1119,6 +3318,8 @@ var WebsiteSettingsFields = /* @__PURE__ */ ((WebsiteSettingsFields2) => {
1119
3318
  WebsiteSettingsFields2["remark"] = "remark";
1120
3319
  return WebsiteSettingsFields2;
1121
3320
  })(WebsiteSettingsFields || {});
3321
+ var WebsiteSettingsAssciations = /* @__PURE__ */ ((WebsiteSettingsAssciations2) => {
3322
+ })();
1122
3323
  var TemplateFields = /* @__PURE__ */ ((TemplateFields2) => {
1123
3324
  TemplateFields2["id"] = "id";
1124
3325
  TemplateFields2["name"] = "name";
@@ -1129,10 +3330,13 @@ var TemplateFields = /* @__PURE__ */ ((TemplateFields2) => {
1129
3330
  TemplateFields2["createdAt"] = "createdAt";
1130
3331
  TemplateFields2["updatedAt"] = "updatedAt";
1131
3332
  TemplateFields2["remark"] = "remark";
1132
- TemplateFields2["category"] = "category";
1133
- TemplateFields2["theme"] = "theme";
1134
3333
  return TemplateFields2;
1135
3334
  })(TemplateFields || {});
3335
+ var TemplateAssciations = /* @__PURE__ */ ((TemplateAssciations2) => {
3336
+ TemplateAssciations2["category"] = "category";
3337
+ TemplateAssciations2["theme"] = "theme";
3338
+ return TemplateAssciations2;
3339
+ })(TemplateAssciations || {});
1136
3340
  var TemplateCategoryFields = /* @__PURE__ */ ((TemplateCategoryFields2) => {
1137
3341
  TemplateCategoryFields2["id"] = "id";
1138
3342
  TemplateCategoryFields2["name"] = "name";
@@ -1141,11 +3345,14 @@ var TemplateCategoryFields = /* @__PURE__ */ ((TemplateCategoryFields2) => {
1141
3345
  TemplateCategoryFields2["createdAt"] = "createdAt";
1142
3346
  TemplateCategoryFields2["updatedAt"] = "updatedAt";
1143
3347
  TemplateCategoryFields2["remark"] = "remark";
1144
- TemplateCategoryFields2["templates"] = "templates";
1145
- TemplateCategoryFields2["templatesAggregate"] = "templatesAggregate";
1146
- TemplateCategoryFields2["theme"] = "theme";
1147
3348
  return TemplateCategoryFields2;
1148
3349
  })(TemplateCategoryFields || {});
3350
+ var TemplateCategoryAssciations = /* @__PURE__ */ ((TemplateCategoryAssciations2) => {
3351
+ TemplateCategoryAssciations2["templates"] = "templates";
3352
+ TemplateCategoryAssciations2["templatesAggregate"] = "templatesAggregate";
3353
+ TemplateCategoryAssciations2["theme"] = "theme";
3354
+ return TemplateCategoryAssciations2;
3355
+ })(TemplateCategoryAssciations || {});
1149
3356
  var ThemeFields = /* @__PURE__ */ ((ThemeFields2) => {
1150
3357
  ThemeFields2["id"] = "id";
1151
3358
  ThemeFields2["name"] = "name";
@@ -1155,12 +3362,15 @@ var ThemeFields = /* @__PURE__ */ ((ThemeFields2) => {
1155
3362
  ThemeFields2["createdAt"] = "createdAt";
1156
3363
  ThemeFields2["updatedAt"] = "updatedAt";
1157
3364
  ThemeFields2["remark"] = "remark";
1158
- ThemeFields2["templates"] = "templates";
1159
- ThemeFields2["templatesAggregate"] = "templatesAggregate";
1160
- ThemeFields2["themlateCategories"] = "themlateCategories";
1161
- ThemeFields2["themlateCategoriesAggregate"] = "themlateCategoriesAggregate";
1162
3365
  return ThemeFields2;
1163
3366
  })(ThemeFields || {});
3367
+ var ThemeAssciations = /* @__PURE__ */ ((ThemeAssciations2) => {
3368
+ ThemeAssciations2["templates"] = "templates";
3369
+ ThemeAssciations2["templatesAggregate"] = "templatesAggregate";
3370
+ ThemeAssciations2["themlateCategories"] = "themlateCategories";
3371
+ ThemeAssciations2["themlateCategoriesAggregate"] = "themlateCategoriesAggregate";
3372
+ return ThemeAssciations2;
3373
+ })(ThemeAssciations || {});
1164
3374
  var MediaFolderFields = /* @__PURE__ */ ((MediaFolderFields2) => {
1165
3375
  MediaFolderFields2["id"] = "id";
1166
3376
  MediaFolderFields2["name"] = "name";
@@ -1169,42 +3379,16 @@ var MediaFolderFields = /* @__PURE__ */ ((MediaFolderFields2) => {
1169
3379
  MediaFolderFields2["createdAt"] = "createdAt";
1170
3380
  MediaFolderFields2["updatedAt"] = "updatedAt";
1171
3381
  MediaFolderFields2["remark"] = "remark";
1172
- MediaFolderFields2["children"] = "children";
1173
- MediaFolderFields2["childrenAggregate"] = "childrenAggregate";
1174
- MediaFolderFields2["parent"] = "parent";
1175
- MediaFolderFields2["medias"] = "medias";
1176
- MediaFolderFields2["mediasAggregate"] = "mediasAggregate";
1177
3382
  return MediaFolderFields2;
1178
3383
  })(MediaFolderFields || {});
1179
- var WebsitePartFields = /* @__PURE__ */ ((WebsitePartFields2) => {
1180
- WebsitePartFields2["id"] = "id";
1181
- WebsitePartFields2["websiteId"] = "websiteId";
1182
- WebsitePartFields2["createdAt"] = "createdAt";
1183
- WebsitePartFields2["updatedAt"] = "updatedAt";
1184
- WebsitePartFields2["remark"] = "remark";
1185
- return WebsitePartFields2;
1186
- })(WebsitePartFields || {});
1187
- var WebsiteContentFields = /* @__PURE__ */ ((WebsiteContentFields2) => {
1188
- WebsiteContentFields2["id"] = "id";
1189
- WebsiteContentFields2["title"] = "title";
1190
- WebsiteContentFields2["content"] = "content";
1191
- WebsiteContentFields2["extends"] = "extends";
1192
- WebsiteContentFields2["websiteId"] = "websiteId";
1193
- WebsiteContentFields2["createdAt"] = "createdAt";
1194
- WebsiteContentFields2["updatedAt"] = "updatedAt";
1195
- WebsiteContentFields2["remark"] = "remark";
1196
- WebsiteContentFields2["seoTitle"] = "seoTitle";
1197
- WebsiteContentFields2["seoKeywords"] = "seoKeywords";
1198
- WebsiteContentFields2["seoDescription"] = "seoDescription";
1199
- WebsiteContentFields2["ogTitle"] = "ogTitle";
1200
- WebsiteContentFields2["ogDescription"] = "ogDescription";
1201
- WebsiteContentFields2["ogImageUrl"] = "ogImageUrl";
1202
- WebsiteContentFields2["ogUrl"] = "ogUrl";
1203
- WebsiteContentFields2["ogSiteName"] = "ogSiteName";
1204
- WebsiteContentFields2["ogType"] = "ogType";
1205
- WebsiteContentFields2["lang"] = "lang";
1206
- return WebsiteContentFields2;
1207
- })(WebsiteContentFields || {});
3384
+ var MediaFolderAssciations = /* @__PURE__ */ ((MediaFolderAssciations2) => {
3385
+ MediaFolderAssciations2["children"] = "children";
3386
+ MediaFolderAssciations2["childrenAggregate"] = "childrenAggregate";
3387
+ MediaFolderAssciations2["parent"] = "parent";
3388
+ MediaFolderAssciations2["medias"] = "medias";
3389
+ MediaFolderAssciations2["mediasAggregate"] = "mediasAggregate";
3390
+ return MediaFolderAssciations2;
3391
+ })(MediaFolderAssciations || {});
1208
3392
  var PostCategoryFields = /* @__PURE__ */ ((PostCategoryFields2) => {
1209
3393
  PostCategoryFields2["id"] = "id";
1210
3394
  PostCategoryFields2["name"] = "name";
@@ -1213,13 +3397,16 @@ var PostCategoryFields = /* @__PURE__ */ ((PostCategoryFields2) => {
1213
3397
  PostCategoryFields2["createdAt"] = "createdAt";
1214
3398
  PostCategoryFields2["updatedAt"] = "updatedAt";
1215
3399
  PostCategoryFields2["remark"] = "remark";
1216
- PostCategoryFields2["children"] = "children";
1217
- PostCategoryFields2["childrenAggregate"] = "childrenAggregate";
1218
- PostCategoryFields2["posts"] = "posts";
1219
- PostCategoryFields2["postsAggregate"] = "postsAggregate";
1220
- PostCategoryFields2["parent"] = "parent";
1221
3400
  return PostCategoryFields2;
1222
3401
  })(PostCategoryFields || {});
3402
+ var PostCategoryAssciations = /* @__PURE__ */ ((PostCategoryAssciations2) => {
3403
+ PostCategoryAssciations2["children"] = "children";
3404
+ PostCategoryAssciations2["childrenAggregate"] = "childrenAggregate";
3405
+ PostCategoryAssciations2["posts"] = "posts";
3406
+ PostCategoryAssciations2["postsAggregate"] = "postsAggregate";
3407
+ PostCategoryAssciations2["parent"] = "parent";
3408
+ return PostCategoryAssciations2;
3409
+ })(PostCategoryAssciations || {});
1223
3410
  var TagFields = /* @__PURE__ */ ((TagFields2) => {
1224
3411
  TagFields2["id"] = "id";
1225
3412
  TagFields2["name"] = "name";
@@ -1228,68 +3415,15 @@ var TagFields = /* @__PURE__ */ ((TagFields2) => {
1228
3415
  TagFields2["createdAt"] = "createdAt";
1229
3416
  TagFields2["updatedAt"] = "updatedAt";
1230
3417
  TagFields2["remark"] = "remark";
1231
- TagFields2["posts"] = "posts";
1232
- TagFields2["postsAggregate"] = "postsAggregate";
1233
- TagFields2["products"] = "products";
1234
- TagFields2["productsAggregate"] = "productsAggregate";
1235
3418
  return TagFields2;
1236
3419
  })(TagFields || {});
1237
- var SeoMetaFields = /* @__PURE__ */ ((SeoMetaFields2) => {
1238
- SeoMetaFields2["id"] = "id";
1239
- SeoMetaFields2["seoTitle"] = "seoTitle";
1240
- SeoMetaFields2["seoKeywords"] = "seoKeywords";
1241
- SeoMetaFields2["seoDescription"] = "seoDescription";
1242
- return SeoMetaFields2;
1243
- })(SeoMetaFields || {});
1244
- var OgMetaFields = /* @__PURE__ */ ((OgMetaFields2) => {
1245
- OgMetaFields2["id"] = "id";
1246
- OgMetaFields2["ogTitle"] = "ogTitle";
1247
- OgMetaFields2["ogDescription"] = "ogDescription";
1248
- OgMetaFields2["ogImageUrl"] = "ogImageUrl";
1249
- OgMetaFields2["ogUrl"] = "ogUrl";
1250
- OgMetaFields2["ogSiteName"] = "ogSiteName";
1251
- OgMetaFields2["ogType"] = "ogType";
1252
- return OgMetaFields2;
1253
- })(OgMetaFields || {});
1254
- var PublishableFields = /* @__PURE__ */ ((PublishableFields2) => {
1255
- PublishableFields2["id"] = "id";
1256
- PublishableFields2["publishedContent"] = "publishedContent";
1257
- PublishableFields2["publishedAt"] = "publishedAt";
1258
- PublishableFields2["status"] = "status";
1259
- PublishableFields2["title"] = "title";
1260
- PublishableFields2["content"] = "content";
1261
- PublishableFields2["extends"] = "extends";
1262
- PublishableFields2["websiteId"] = "websiteId";
1263
- PublishableFields2["createdAt"] = "createdAt";
1264
- PublishableFields2["updatedAt"] = "updatedAt";
1265
- PublishableFields2["remark"] = "remark";
1266
- PublishableFields2["seoTitle"] = "seoTitle";
1267
- PublishableFields2["seoKeywords"] = "seoKeywords";
1268
- PublishableFields2["seoDescription"] = "seoDescription";
1269
- PublishableFields2["ogTitle"] = "ogTitle";
1270
- PublishableFields2["ogDescription"] = "ogDescription";
1271
- PublishableFields2["ogImageUrl"] = "ogImageUrl";
1272
- PublishableFields2["ogUrl"] = "ogUrl";
1273
- PublishableFields2["ogSiteName"] = "ogSiteName";
1274
- PublishableFields2["ogType"] = "ogType";
1275
- PublishableFields2["lang"] = "lang";
1276
- return PublishableFields2;
1277
- })(PublishableFields || {});
1278
- var PersonFields = /* @__PURE__ */ ((PersonFields2) => {
1279
- PersonFields2["id"] = "id";
1280
- PersonFields2["email"] = "email";
1281
- PersonFields2["tel"] = "tel";
1282
- PersonFields2["tel2"] = "tel2";
1283
- PersonFields2["name"] = "name";
1284
- PersonFields2["mobile"] = "mobile";
1285
- PersonFields2["whatsApp"] = "whatsApp";
1286
- PersonFields2["linkedIn"] = "linkedIn";
1287
- PersonFields2["twitter"] = "twitter";
1288
- PersonFields2["facebook"] = "facebook";
1289
- PersonFields2["instagram"] = "instagram";
1290
- PersonFields2["summary"] = "summary";
1291
- return PersonFields2;
1292
- })(PersonFields || {});
3420
+ var TagAssciations = /* @__PURE__ */ ((TagAssciations2) => {
3421
+ TagAssciations2["posts"] = "posts";
3422
+ TagAssciations2["postsAggregate"] = "postsAggregate";
3423
+ TagAssciations2["products"] = "products";
3424
+ TagAssciations2["productsAggregate"] = "productsAggregate";
3425
+ return TagAssciations2;
3426
+ })(TagAssciations || {});
1293
3427
  var CustomerFields = /* @__PURE__ */ ((CustomerFields2) => {
1294
3428
  CustomerFields2["id"] = "id";
1295
3429
  CustomerFields2["websiteId"] = "websiteId";
@@ -1307,45 +3441,13 @@ var CustomerFields = /* @__PURE__ */ ((CustomerFields2) => {
1307
3441
  CustomerFields2["facebook"] = "facebook";
1308
3442
  CustomerFields2["instagram"] = "instagram";
1309
3443
  CustomerFields2["summary"] = "summary";
1310
- CustomerFields2["enquires"] = "enquires";
1311
- CustomerFields2["enquiresAggregate"] = "enquiresAggregate";
1312
3444
  return CustomerFields2;
1313
3445
  })(CustomerFields || {});
1314
- var BaseEntityFields = /* @__PURE__ */ ((BaseEntityFields2) => {
1315
- BaseEntityFields2["id"] = "id";
1316
- BaseEntityFields2["createdAt"] = "createdAt";
1317
- BaseEntityFields2["updatedAt"] = "updatedAt";
1318
- BaseEntityFields2["remark"] = "remark";
1319
- return BaseEntityFields2;
1320
- })(BaseEntityFields || {});
1321
- var MultiLangableFields = /* @__PURE__ */ ((MultiLangableFields2) => {
1322
- MultiLangableFields2["id"] = "id";
1323
- MultiLangableFields2["lang"] = "lang";
1324
- return MultiLangableFields2;
1325
- })(MultiLangableFields || {});
1326
- var WebsiteUserFields = /* @__PURE__ */ ((WebsiteUserFields2) => {
1327
- WebsiteUserFields2["id"] = "id";
1328
- WebsiteUserFields2["postion"] = "postion";
1329
- WebsiteUserFields2["profile"] = "profile";
1330
- WebsiteUserFields2["userType"] = "userType";
1331
- WebsiteUserFields2["email"] = "email";
1332
- WebsiteUserFields2["tel"] = "tel";
1333
- WebsiteUserFields2["tel2"] = "tel2";
1334
- WebsiteUserFields2["name"] = "name";
1335
- WebsiteUserFields2["mobile"] = "mobile";
1336
- WebsiteUserFields2["whatsApp"] = "whatsApp";
1337
- WebsiteUserFields2["linkedIn"] = "linkedIn";
1338
- WebsiteUserFields2["twitter"] = "twitter";
1339
- WebsiteUserFields2["facebook"] = "facebook";
1340
- WebsiteUserFields2["instagram"] = "instagram";
1341
- WebsiteUserFields2["summary"] = "summary";
1342
- return WebsiteUserFields2;
1343
- })(WebsiteUserFields || {});
1344
- var CustomizeMediaFields = /* @__PURE__ */ ((CustomizeMediaFields2) => {
1345
- CustomizeMediaFields2["id"] = "id";
1346
- CustomizeMediaFields2["websiteId"] = "websiteId";
1347
- return CustomizeMediaFields2;
1348
- })(CustomizeMediaFields || {});
3446
+ var CustomerAssciations = /* @__PURE__ */ ((CustomerAssciations2) => {
3447
+ CustomerAssciations2["enquires"] = "enquires";
3448
+ CustomerAssciations2["enquiresAggregate"] = "enquiresAggregate";
3449
+ return CustomerAssciations2;
3450
+ })(CustomerAssciations || {});
1349
3451
  var ProductCategoryFields = /* @__PURE__ */ ((ProductCategoryFields2) => {
1350
3452
  ProductCategoryFields2["id"] = "id";
1351
3453
  ProductCategoryFields2["name"] = "name";
@@ -1354,123 +3456,163 @@ var ProductCategoryFields = /* @__PURE__ */ ((ProductCategoryFields2) => {
1354
3456
  ProductCategoryFields2["createdAt"] = "createdAt";
1355
3457
  ProductCategoryFields2["updatedAt"] = "updatedAt";
1356
3458
  ProductCategoryFields2["remark"] = "remark";
1357
- ProductCategoryFields2["children"] = "children";
1358
- ProductCategoryFields2["childrenAggregate"] = "childrenAggregate";
1359
- ProductCategoryFields2["parent"] = "parent";
1360
- ProductCategoryFields2["products"] = "products";
1361
- ProductCategoryFields2["productsAggregate"] = "productsAggregate";
1362
3459
  return ProductCategoryFields2;
1363
3460
  })(ProductCategoryFields || {});
3461
+ var ProductCategoryAssciations = /* @__PURE__ */ ((ProductCategoryAssciations2) => {
3462
+ ProductCategoryAssciations2["children"] = "children";
3463
+ ProductCategoryAssciations2["childrenAggregate"] = "childrenAggregate";
3464
+ ProductCategoryAssciations2["parent"] = "parent";
3465
+ ProductCategoryAssciations2["products"] = "products";
3466
+ ProductCategoryAssciations2["productsAggregate"] = "productsAggregate";
3467
+ return ProductCategoryAssciations2;
3468
+ })(ProductCategoryAssciations || {});
1364
3469
  export {
3470
+ AbilityAssciations,
1365
3471
  AbilityDistinctEnum,
1366
3472
  AbilityEntityLabel,
1367
3473
  AbilityEntityName,
1368
3474
  AbilityFields,
3475
+ AbilityQueryOptions,
1369
3476
  AbilityType,
1370
- BaseEntityFields,
1371
3477
  ComponentType,
3478
+ CustomerAssciations,
1372
3479
  CustomerDistinctEnum,
1373
3480
  CustomerEntityLabel,
1374
3481
  CustomerEntityName,
1375
3482
  CustomerFields,
1376
- CustomizeMediaFields,
3483
+ CustomerQueryOptions,
3484
+ EnquiryAssciations,
1377
3485
  EnquiryDistinctEnum,
1378
3486
  EnquiryEntityLabel,
1379
3487
  EnquiryEntityName,
1380
3488
  EnquiryFields,
3489
+ EnquiryQueryOptions,
1381
3490
  ExtendFieldType,
3491
+ LangAssciations,
1382
3492
  LangDistinctEnum,
1383
3493
  LangEntityLabel,
1384
3494
  LangEntityName,
1385
3495
  LangFields,
3496
+ LangQueryOptions,
3497
+ MediaAssciations,
1386
3498
  MediaDistinctEnum,
1387
3499
  MediaEntityLabel,
1388
3500
  MediaEntityName,
1389
3501
  MediaFields,
3502
+ MediaFolderAssciations,
1390
3503
  MediaFolderDistinctEnum,
1391
3504
  MediaFolderEntityLabel,
1392
3505
  MediaFolderEntityName,
1393
3506
  MediaFolderFields,
3507
+ MediaFolderQueryOptions,
3508
+ MediaQueryOptions,
1394
3509
  MediaType,
1395
- MultiLangableFields,
1396
- OgMetaFields,
3510
+ PageAssciations,
1397
3511
  PageDistinctEnum,
1398
3512
  PageEntityLabel,
1399
3513
  PageEntityName,
1400
3514
  PageFields,
1401
- PersonFields,
3515
+ PageQueryOptions,
3516
+ PostAssciations,
3517
+ PostCategoryAssciations,
1402
3518
  PostCategoryDistinctEnum,
1403
3519
  PostCategoryEntityLabel,
1404
3520
  PostCategoryEntityName,
1405
3521
  PostCategoryFields,
3522
+ PostCategoryQueryOptions,
1406
3523
  PostDistinctEnum,
1407
3524
  PostEntityLabel,
1408
3525
  PostEntityName,
1409
3526
  PostFields,
3527
+ PostQueryOptions,
3528
+ ProductAssciations,
3529
+ ProductCategoryAssciations,
1410
3530
  ProductCategoryDistinctEnum,
1411
3531
  ProductCategoryEntityLabel,
1412
3532
  ProductCategoryEntityName,
1413
3533
  ProductCategoryFields,
3534
+ ProductCategoryQueryOptions,
1414
3535
  ProductDistinctEnum,
1415
3536
  ProductEntityLabel,
1416
3537
  ProductEntityName,
1417
3538
  ProductFields,
1418
- PublishableFields,
3539
+ ProductQueryOptions,
1419
3540
  PublishableStatus,
3541
+ QueryOptions,
3542
+ RoleAssciations,
1420
3543
  RoleDistinctEnum,
1421
3544
  RoleEntityLabel,
1422
3545
  RoleEntityName,
1423
3546
  RoleFields,
1424
- SeoMetaFields,
3547
+ RoleQueryOptions,
3548
+ SlugAssciations,
1425
3549
  SlugDistinctEnum,
1426
3550
  SlugEntityLabel,
1427
3551
  SlugEntityName,
1428
3552
  SlugFields,
3553
+ SlugQueryOptions,
3554
+ TagAssciations,
1429
3555
  TagDistinctEnum,
1430
3556
  TagEntityLabel,
1431
3557
  TagEntityName,
1432
3558
  TagFields,
3559
+ TagQueryOptions,
3560
+ TemplateAssciations,
3561
+ TemplateCategoryAssciations,
1433
3562
  TemplateCategoryDistinctEnum,
1434
3563
  TemplateCategoryEntityLabel,
1435
3564
  TemplateCategoryEntityName,
1436
3565
  TemplateCategoryFields,
3566
+ TemplateCategoryQueryOptions,
1437
3567
  TemplateDistinctEnum,
1438
3568
  TemplateEntityLabel,
1439
3569
  TemplateEntityName,
1440
3570
  TemplateFields,
3571
+ TemplateQueryOptions,
1441
3572
  TemplateType,
3573
+ ThemeAssciations,
1442
3574
  ThemeDistinctEnum,
1443
3575
  ThemeEntityLabel,
1444
3576
  ThemeEntityName,
1445
3577
  ThemeFields,
3578
+ ThemeQueryOptions,
3579
+ UserAssciations,
1446
3580
  UserDistinctEnum,
1447
3581
  UserEntityLabel,
1448
3582
  UserEntityName,
1449
3583
  UserFields,
3584
+ UserQueryOptions,
1450
3585
  UserType,
1451
- WebsiteContentFields,
3586
+ WebsiteAssciations,
1452
3587
  WebsiteDistinctEnum,
1453
3588
  WebsiteEntityLabel,
1454
3589
  WebsiteEntityName,
1455
3590
  WebsiteFields,
3591
+ WebsiteMetaAssciations,
1456
3592
  WebsiteMetaDistinctEnum,
1457
3593
  WebsiteMetaEntityLabel,
1458
3594
  WebsiteMetaEntityName,
1459
3595
  WebsiteMetaFields,
1460
- WebsitePartFields,
3596
+ WebsiteMetaQueryOptions,
3597
+ WebsiteQueryOptions,
3598
+ WebsiteSettingsAssciations,
1461
3599
  WebsiteSettingsDistinctEnum,
1462
3600
  WebsiteSettingsEntityLabel,
1463
3601
  WebsiteSettingsEntityName,
1464
3602
  WebsiteSettingsFields,
3603
+ WebsiteSettingsQueryOptions,
3604
+ WebsiteTypeAssciations,
1465
3605
  WebsiteTypeDistinctEnum,
1466
3606
  WebsiteTypeEntityLabel,
1467
3607
  WebsiteTypeEntityName,
1468
3608
  WebsiteTypeFields,
3609
+ WebsiteTypeQueryOptions,
1469
3610
  WebsiteTypeStatus,
1470
- WebsiteUserFields,
1471
3611
  abilityEntry,
1472
3612
  abilityToInput,
1473
3613
  abilityToInputCascade,
3614
+ aggregateEntities,
3615
+ associationsClasses,
1474
3616
  customerEntry,
1475
3617
  customerToInput,
1476
3618
  customerToInputCascade,