@rxdrag/rxcms-models 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/MailQueryOptions.d.ts +20 -0
- package/dist/classes/MediaQueryOptions.d.ts +14 -0
- package/dist/classes/PageQueryOptions.d.ts +3 -0
- package/dist/classes/ThemeQueryOptions.d.ts +3 -0
- package/dist/classes/WebsiteSettingsQueryOptions.d.ts +8 -0
- package/dist/classes/index.d.ts +1 -1
- package/dist/entries/index.d.ts +1 -1
- package/dist/entries/{websiteMetaEntry.d.ts → mailEntry.d.ts} +1 -1
- package/dist/fields/MailFields.d.ts +18 -0
- package/dist/fields/MediaFields.d.ts +8 -0
- package/dist/fields/PageFields.d.ts +2 -1
- package/dist/fields/ThemeFields.d.ts +2 -1
- package/dist/fields/WebsiteSettingsFields.d.ts +8 -0
- package/dist/fields/index.d.ts +1 -1
- package/dist/index.mjs +685 -491
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/EmailTemplate.d.ts +4 -0
- package/dist/interfaces/EmailTemplates.d.ts +11 -0
- package/dist/interfaces/Mail.d.ts +18 -0
- package/dist/interfaces/MailBoolExp.d.ts +22 -0
- package/dist/interfaces/MailDistinctExp.d.ts +17 -0
- package/dist/interfaces/MailInput.d.ts +19 -0
- package/dist/interfaces/MailOrderBy.d.ts +17 -0
- package/dist/interfaces/MailType.d.ts +18 -0
- package/dist/interfaces/Media.d.ts +10 -0
- package/dist/interfaces/MediaBoolExp.d.ts +6 -0
- package/dist/interfaces/MediaInput.d.ts +6 -0
- package/dist/interfaces/Page.d.ts +2 -0
- package/dist/interfaces/PageBoolExp.d.ts +2 -0
- package/dist/interfaces/PageInput.d.ts +2 -0
- package/dist/interfaces/Theme.d.ts +2 -0
- package/dist/interfaces/ThemeBoolExp.d.ts +2 -0
- package/dist/interfaces/ThemeInput.d.ts +3 -0
- package/dist/interfaces/WebsiteSettings.d.ts +9 -0
- package/dist/interfaces/WebsiteSettingsBoolExp.d.ts +2 -0
- package/dist/interfaces/WebsiteSettingsDistinctExp.d.ts +8 -0
- package/dist/interfaces/WebsiteSettingsInput.d.ts +9 -0
- package/dist/interfaces/WebsiteSettingsOrderBy.d.ts +8 -0
- package/dist/interfaces/index.d.ts +8 -5
- package/package.json +4 -4
- package/dist/classes/WebsiteMetaQueryOptions.d.ts +0 -7
- package/dist/fields/WebsiteMetaFields.d.ts +0 -5
- package/dist/interfaces/WebsiteMeta.d.ts +0 -5
- package/dist/interfaces/WebsiteMetaBoolExp.d.ts +0 -7
- package/dist/interfaces/WebsiteMetaDistinctExp.d.ts +0 -4
- package/dist/interfaces/WebsiteMetaInput.d.ts +0 -6
- package/dist/interfaces/WebsiteMetaOrderBy.d.ts +0 -4
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,11 @@ const aggregateEntities = {
|
|
|
26
26
|
usersAggregate: "User"
|
|
27
27
|
},
|
|
28
28
|
Media: {
|
|
29
|
+
coverOfAggregate: "Post",
|
|
29
30
|
usedByProductsAggregate: "Product",
|
|
31
|
+
ogMetaOfPageAggregate: "Page",
|
|
32
|
+
ogMetaOfProductAggregate: "Product",
|
|
33
|
+
ogMetaOfPostAggregate: "Post",
|
|
30
34
|
attachmentOfAggregate: "Product",
|
|
31
35
|
meidaOfProductAggregate: "ProductCategory"
|
|
32
36
|
},
|
|
@@ -285,49 +289,32 @@ const productCategoryToInput = (entity) => {
|
|
|
285
289
|
products: convertHasManyToInput(entity.products)
|
|
286
290
|
};
|
|
287
291
|
};
|
|
288
|
-
const
|
|
289
|
-
var _a, _b;
|
|
290
|
-
const {
|
|
291
|
-
return {
|
|
292
|
-
...rest,
|
|
293
|
-
children: entity.children ? processHasManyClear({ sync: (_a = entity.children) == null ? void 0 : _a.map((ent) => postCategoryToInput(ent)) }) : void 0,
|
|
294
|
-
posts: entity.posts ? processHasManyClear({ sync: (_b = entity.posts) == null ? void 0 : _b.map((ent) => postToInput(ent)) }) : void 0,
|
|
295
|
-
parent: entity.parent ? processHasOneClear({ sync: postCategoryToInput(entity.parent) }) : void 0
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
const postCategoryToInput = (entity) => {
|
|
299
|
-
const { childrenAggregate, postsAggregate, ...rest } = entity;
|
|
300
|
-
return {
|
|
301
|
-
...rest,
|
|
302
|
-
children: convertHasManyToInput(entity.children),
|
|
303
|
-
posts: convertHasManyToInput(entity.posts),
|
|
304
|
-
parent: convertHasOneToInput(entity.parent)
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
const postToInputCascade = (entity) => {
|
|
308
|
-
var _a;
|
|
309
|
-
const { tagsAggregate, ...rest } = entity;
|
|
292
|
+
const productToInputCascade = (entity) => {
|
|
293
|
+
var _a, _b, _c;
|
|
294
|
+
const { mediasAggregate, tagsAggregate, attachmentsAggregate, ...rest } = entity;
|
|
310
295
|
return {
|
|
311
296
|
...rest,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
297
|
+
category: entity.category ? processHasOneClear({ sync: productCategoryToInput(entity.category) }) : void 0,
|
|
298
|
+
medias: entity.medias ? processHasManyClear({ sync: (_a = entity.medias) == null ? void 0 : _a.map((ent) => mediaToInput(ent)) }) : void 0,
|
|
299
|
+
tags: entity.tags ? processHasManyClear({ sync: (_b = entity.tags) == null ? void 0 : _b.map((ent) => tagToInput(ent)) }) : void 0,
|
|
315
300
|
ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
301
|
+
attachments: entity.attachments ? processHasManyClear({ sync: (_c = entity.attachments) == null ? void 0 : _c.map((ent) => mediaToInput(ent)) }) : void 0,
|
|
302
|
+
draftOf: entity.draftOf ? processHasOneClear({ sync: productToInput(entity.draftOf) }) : void 0,
|
|
303
|
+
creator: entity.creator ? processHasOneClear({ sync: userToInput(entity.creator) }) : void 0,
|
|
304
|
+
draft: entity.draft ? processHasOneClear({ sync: productToInput(entity.draft) }) : void 0
|
|
319
305
|
};
|
|
320
306
|
};
|
|
321
|
-
const
|
|
322
|
-
const { tagsAggregate, ...rest } = entity;
|
|
307
|
+
const productToInput = (entity) => {
|
|
308
|
+
const { mediasAggregate, tagsAggregate, attachmentsAggregate, ...rest } = entity;
|
|
323
309
|
return {
|
|
324
310
|
...rest,
|
|
311
|
+
category: convertHasOneToInput(entity.category),
|
|
312
|
+
medias: convertHasManyToInput(entity.medias),
|
|
325
313
|
tags: convertHasManyToInput(entity.tags),
|
|
326
|
-
author: convertHasOneToInput(entity.author),
|
|
327
|
-
cover: convertHasOneToInput(entity.cover),
|
|
328
314
|
ogImage: convertHasOneToInput(entity.ogImage),
|
|
315
|
+
attachments: convertHasManyToInput(entity.attachments),
|
|
329
316
|
draftOf: convertHasOneToInput(entity.draftOf),
|
|
330
|
-
|
|
317
|
+
creator: convertHasOneToInput(entity.creator),
|
|
331
318
|
draft: convertHasOneToInput(entity.draft)
|
|
332
319
|
};
|
|
333
320
|
};
|
|
@@ -348,56 +335,50 @@ const tagToInput = (entity) => {
|
|
|
348
335
|
products: convertHasManyToInput(entity.products)
|
|
349
336
|
};
|
|
350
337
|
};
|
|
351
|
-
const
|
|
352
|
-
var _a, _b
|
|
353
|
-
const {
|
|
338
|
+
const postCategoryToInputCascade = (entity) => {
|
|
339
|
+
var _a, _b;
|
|
340
|
+
const { childrenAggregate, postsAggregate, ...rest } = entity;
|
|
354
341
|
return {
|
|
355
342
|
...rest,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
|
|
360
|
-
attachments: entity.attachments ? processHasManyClear({ sync: (_c = entity.attachments) == null ? void 0 : _c.map((ent) => mediaToInput(ent)) }) : void 0,
|
|
361
|
-
draftOf: entity.draftOf ? processHasOneClear({ sync: productToInput(entity.draftOf) }) : void 0,
|
|
362
|
-
creator: entity.creator ? processHasOneClear({ sync: userToInput(entity.creator) }) : void 0,
|
|
363
|
-
draft: entity.draft ? processHasOneClear({ sync: productToInput(entity.draft) }) : void 0
|
|
343
|
+
children: entity.children ? processHasManyClear({ sync: (_a = entity.children) == null ? void 0 : _a.map((ent) => postCategoryToInput(ent)) }) : void 0,
|
|
344
|
+
posts: entity.posts ? processHasManyClear({ sync: (_b = entity.posts) == null ? void 0 : _b.map((ent) => postToInput(ent)) }) : void 0,
|
|
345
|
+
parent: entity.parent ? processHasOneClear({ sync: postCategoryToInput(entity.parent) }) : void 0
|
|
364
346
|
};
|
|
365
347
|
};
|
|
366
|
-
const
|
|
367
|
-
const {
|
|
348
|
+
const postCategoryToInput = (entity) => {
|
|
349
|
+
const { childrenAggregate, postsAggregate, ...rest } = entity;
|
|
368
350
|
return {
|
|
369
351
|
...rest,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
ogImage: convertHasOneToInput(entity.ogImage),
|
|
374
|
-
attachments: convertHasManyToInput(entity.attachments),
|
|
375
|
-
draftOf: convertHasOneToInput(entity.draftOf),
|
|
376
|
-
creator: convertHasOneToInput(entity.creator),
|
|
377
|
-
draft: convertHasOneToInput(entity.draft)
|
|
352
|
+
children: convertHasManyToInput(entity.children),
|
|
353
|
+
posts: convertHasManyToInput(entity.posts),
|
|
354
|
+
parent: convertHasOneToInput(entity.parent)
|
|
378
355
|
};
|
|
379
356
|
};
|
|
380
|
-
const
|
|
381
|
-
var _a
|
|
382
|
-
const {
|
|
357
|
+
const postToInputCascade = (entity) => {
|
|
358
|
+
var _a;
|
|
359
|
+
const { tagsAggregate, ...rest } = entity;
|
|
383
360
|
return {
|
|
384
361
|
...rest,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
362
|
+
tags: entity.tags ? processHasManyClear({ sync: (_a = entity.tags) == null ? void 0 : _a.map((ent) => tagToInput(ent)) }) : void 0,
|
|
363
|
+
author: entity.author ? processHasOneClear({ sync: userToInput(entity.author) }) : void 0,
|
|
364
|
+
cover: entity.cover ? processHasOneClear({ sync: mediaToInput(entity.cover) }) : void 0,
|
|
365
|
+
ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
|
|
366
|
+
draftOf: entity.draftOf ? processHasOneClear({ sync: postToInput(entity.draftOf) }) : void 0,
|
|
367
|
+
category: entity.category ? processHasOneClear({ sync: postCategoryToInput(entity.category) }) : void 0,
|
|
368
|
+
draft: entity.draft ? processHasOneClear({ sync: postToInput(entity.draft) }) : void 0
|
|
390
369
|
};
|
|
391
370
|
};
|
|
392
|
-
const
|
|
393
|
-
const {
|
|
371
|
+
const postToInput = (entity) => {
|
|
372
|
+
const { tagsAggregate, ...rest } = entity;
|
|
394
373
|
return {
|
|
395
374
|
...rest,
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
375
|
+
tags: convertHasManyToInput(entity.tags),
|
|
376
|
+
author: convertHasOneToInput(entity.author),
|
|
377
|
+
cover: convertHasOneToInput(entity.cover),
|
|
378
|
+
ogImage: convertHasOneToInput(entity.ogImage),
|
|
379
|
+
draftOf: convertHasOneToInput(entity.draftOf),
|
|
380
|
+
category: convertHasOneToInput(entity.category),
|
|
381
|
+
draft: convertHasOneToInput(entity.draft)
|
|
401
382
|
};
|
|
402
383
|
};
|
|
403
384
|
const websiteTypeToInputCascade = (entity) => {
|
|
@@ -452,7 +433,8 @@ const themeToInputCascade = (entity) => {
|
|
|
452
433
|
return {
|
|
453
434
|
...rest,
|
|
454
435
|
templates: entity.templates ? processHasManyClear({ sync: (_a = entity.templates) == null ? void 0 : _a.map((ent) => templateToInput(ent)) }) : void 0,
|
|
455
|
-
themlateCategories: entity.themlateCategories ? processHasManyClear({ sync: (_b = entity.themlateCategories) == null ? void 0 : _b.map((ent) => templateCategoryToInput(ent)) }) : void 0
|
|
436
|
+
themlateCategories: entity.themlateCategories ? processHasManyClear({ sync: (_b = entity.themlateCategories) == null ? void 0 : _b.map((ent) => templateCategoryToInput(ent)) }) : void 0,
|
|
437
|
+
selectedBy: entity.selectedBy ? processHasOneClear({ sync: websiteToInput(entity.selectedBy) }) : void 0
|
|
456
438
|
};
|
|
457
439
|
};
|
|
458
440
|
const themeToInput = (entity) => {
|
|
@@ -460,19 +442,8 @@ const themeToInput = (entity) => {
|
|
|
460
442
|
return {
|
|
461
443
|
...rest,
|
|
462
444
|
templates: convertHasManyToInput(entity.templates),
|
|
463
|
-
themlateCategories: convertHasManyToInput(entity.themlateCategories)
|
|
464
|
-
|
|
465
|
-
};
|
|
466
|
-
const pageToInputCascade = (entity) => {
|
|
467
|
-
return {
|
|
468
|
-
...entity,
|
|
469
|
-
ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0
|
|
470
|
-
};
|
|
471
|
-
};
|
|
472
|
-
const pageToInput = (entity) => {
|
|
473
|
-
return {
|
|
474
|
-
...entity,
|
|
475
|
-
ogImage: convertHasOneToInput(entity.ogImage)
|
|
445
|
+
themlateCategories: convertHasManyToInput(entity.themlateCategories),
|
|
446
|
+
selectedBy: convertHasOneToInput(entity.selectedBy)
|
|
476
447
|
};
|
|
477
448
|
};
|
|
478
449
|
const websiteToInputCascade = (entity) => {
|
|
@@ -498,6 +469,51 @@ const websiteToInput = (entity) => {
|
|
|
498
469
|
users: convertHasManyToInput(entity.users)
|
|
499
470
|
};
|
|
500
471
|
};
|
|
472
|
+
const pageToInputCascade = (entity) => {
|
|
473
|
+
return {
|
|
474
|
+
...entity,
|
|
475
|
+
ogImage: entity.ogImage ? processHasOneClear({ sync: mediaToInput(entity.ogImage) }) : void 0,
|
|
476
|
+
homeOf: entity.homeOf ? processHasOneClear({ sync: websiteToInput(entity.homeOf) }) : void 0
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
const pageToInput = (entity) => {
|
|
480
|
+
return {
|
|
481
|
+
...entity,
|
|
482
|
+
ogImage: convertHasOneToInput(entity.ogImage),
|
|
483
|
+
homeOf: convertHasOneToInput(entity.homeOf)
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
const mediaToInputCascade = (entity) => {
|
|
487
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
488
|
+
const { file, coverOfAggregate, usedByProductsAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, attachmentOfAggregate, meidaOfProductAggregate, ...rest } = entity;
|
|
489
|
+
return {
|
|
490
|
+
...rest,
|
|
491
|
+
folder: entity.folder ? processHasOneClear({ sync: mediaFolderToInput(entity.folder) }) : void 0,
|
|
492
|
+
coverOf: entity.coverOf ? processHasManyClear({ sync: (_a = entity.coverOf) == null ? void 0 : _a.map((ent) => postToInput(ent)) }) : void 0,
|
|
493
|
+
avatarOfUser: entity.avatarOfUser ? processHasOneClear({ sync: userToInput(entity.avatarOfUser) }) : void 0,
|
|
494
|
+
usedByProducts: entity.usedByProducts ? processHasManyClear({ sync: (_b = entity.usedByProducts) == null ? void 0 : _b.map((ent) => productToInput(ent)) }) : void 0,
|
|
495
|
+
ogMetaOfPage: entity.ogMetaOfPage ? processHasManyClear({ sync: (_c = entity.ogMetaOfPage) == null ? void 0 : _c.map((ent) => pageToInput(ent)) }) : void 0,
|
|
496
|
+
ogMetaOfProduct: entity.ogMetaOfProduct ? processHasManyClear({ sync: (_d = entity.ogMetaOfProduct) == null ? void 0 : _d.map((ent) => productToInput(ent)) }) : void 0,
|
|
497
|
+
ogMetaOfPost: entity.ogMetaOfPost ? processHasManyClear({ sync: (_e = entity.ogMetaOfPost) == null ? void 0 : _e.map((ent) => postToInput(ent)) }) : void 0,
|
|
498
|
+
attachmentOf: entity.attachmentOf ? processHasManyClear({ sync: (_f = entity.attachmentOf) == null ? void 0 : _f.map((ent) => productToInput(ent)) }) : void 0,
|
|
499
|
+
meidaOfProduct: entity.meidaOfProduct ? processHasManyClear({ sync: (_g = entity.meidaOfProduct) == null ? void 0 : _g.map((ent) => productCategoryToInput(ent)) }) : void 0
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
const mediaToInput = (entity) => {
|
|
503
|
+
const { file, coverOfAggregate, usedByProductsAggregate, ogMetaOfPageAggregate, ogMetaOfProductAggregate, ogMetaOfPostAggregate, attachmentOfAggregate, meidaOfProductAggregate, ...rest } = entity;
|
|
504
|
+
return {
|
|
505
|
+
...rest,
|
|
506
|
+
folder: convertHasOneToInput(entity.folder),
|
|
507
|
+
coverOf: convertHasManyToInput(entity.coverOf),
|
|
508
|
+
avatarOfUser: convertHasOneToInput(entity.avatarOfUser),
|
|
509
|
+
usedByProducts: convertHasManyToInput(entity.usedByProducts),
|
|
510
|
+
ogMetaOfPage: convertHasManyToInput(entity.ogMetaOfPage),
|
|
511
|
+
ogMetaOfProduct: convertHasManyToInput(entity.ogMetaOfProduct),
|
|
512
|
+
ogMetaOfPost: convertHasManyToInput(entity.ogMetaOfPost),
|
|
513
|
+
attachmentOf: convertHasManyToInput(entity.attachmentOf),
|
|
514
|
+
meidaOfProduct: convertHasManyToInput(entity.meidaOfProduct)
|
|
515
|
+
};
|
|
516
|
+
};
|
|
501
517
|
const userToInputCascade = (entity) => {
|
|
502
518
|
var _a, _b, _c, _d;
|
|
503
519
|
const { rolesAggregate, productsAggregate, postsAggregate, websitesAggregate, ...rest } = entity;
|
|
@@ -608,6 +624,42 @@ var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
|
608
624
|
MediaType2["document"] = "document";
|
|
609
625
|
return MediaType2;
|
|
610
626
|
})(MediaType || {});
|
|
627
|
+
const MailEntityName = "Mail";
|
|
628
|
+
const MailEntityLabel = "";
|
|
629
|
+
const mailToInputCascade = (entity) => {
|
|
630
|
+
return {
|
|
631
|
+
...entity
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
const mailToInput = (entity) => {
|
|
635
|
+
return {
|
|
636
|
+
...entity
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
var MailDistinctEnum = /* @__PURE__ */ ((MailDistinctEnum2) => {
|
|
640
|
+
MailDistinctEnum2["id"] = "id";
|
|
641
|
+
MailDistinctEnum2["createdAt"] = "createdAt";
|
|
642
|
+
MailDistinctEnum2["updatedAt"] = "updatedAt";
|
|
643
|
+
MailDistinctEnum2["taskId"] = "taskId";
|
|
644
|
+
MailDistinctEnum2["taskName"] = "taskName";
|
|
645
|
+
MailDistinctEnum2["remark"] = "remark";
|
|
646
|
+
MailDistinctEnum2["subject"] = "subject";
|
|
647
|
+
MailDistinctEnum2["message"] = "message";
|
|
648
|
+
MailDistinctEnum2["to"] = "to";
|
|
649
|
+
MailDistinctEnum2["cc"] = "cc";
|
|
650
|
+
MailDistinctEnum2["label"] = "label";
|
|
651
|
+
MailDistinctEnum2["name"] = "name";
|
|
652
|
+
MailDistinctEnum2["company"] = "company";
|
|
653
|
+
MailDistinctEnum2["mailType"] = "mailType";
|
|
654
|
+
return MailDistinctEnum2;
|
|
655
|
+
})(MailDistinctEnum || {});
|
|
656
|
+
var MailType = /* @__PURE__ */ ((MailType2) => {
|
|
657
|
+
MailType2["default"] = "default";
|
|
658
|
+
MailType2["getPrice"] = "getPrice";
|
|
659
|
+
MailType2["findPassword"] = "findPassword";
|
|
660
|
+
MailType2["notice"] = "notice";
|
|
661
|
+
return MailType2;
|
|
662
|
+
})(MailType || {});
|
|
611
663
|
const WebsiteEntityName = "Website";
|
|
612
664
|
const WebsiteEntityLabel = "站点";
|
|
613
665
|
var WebsiteDistinctEnum = /* @__PURE__ */ ((WebsiteDistinctEnum2) => {
|
|
@@ -816,22 +868,6 @@ var EnquiryDistinctEnum = /* @__PURE__ */ ((EnquiryDistinctEnum2) => {
|
|
|
816
868
|
EnquiryDistinctEnum2["remark"] = "remark";
|
|
817
869
|
return EnquiryDistinctEnum2;
|
|
818
870
|
})(EnquiryDistinctEnum || {});
|
|
819
|
-
const WebsiteMetaEntityName = "WebsiteMeta";
|
|
820
|
-
const WebsiteMetaEntityLabel = "";
|
|
821
|
-
const websiteMetaToInputCascade = (entity) => {
|
|
822
|
-
return {
|
|
823
|
-
...entity
|
|
824
|
-
};
|
|
825
|
-
};
|
|
826
|
-
const websiteMetaToInput = (entity) => {
|
|
827
|
-
return {
|
|
828
|
-
...entity
|
|
829
|
-
};
|
|
830
|
-
};
|
|
831
|
-
var WebsiteMetaDistinctEnum = /* @__PURE__ */ ((WebsiteMetaDistinctEnum2) => {
|
|
832
|
-
WebsiteMetaDistinctEnum2["id"] = "id";
|
|
833
|
-
return WebsiteMetaDistinctEnum2;
|
|
834
|
-
})(WebsiteMetaDistinctEnum || {});
|
|
835
871
|
const WebsiteSettingsEntityName = "WebsiteSettings";
|
|
836
872
|
const WebsiteSettingsEntityLabel = "";
|
|
837
873
|
const websiteSettingsToInputCascade = (entity) => {
|
|
@@ -863,6 +899,8 @@ var WebsiteSettingsDistinctEnum = /* @__PURE__ */ ((WebsiteSettingsDistinctEnum2
|
|
|
863
899
|
WebsiteSettingsDistinctEnum2["headerCode"] = "headerCode";
|
|
864
900
|
WebsiteSettingsDistinctEnum2["footerCode"] = "footerCode";
|
|
865
901
|
WebsiteSettingsDistinctEnum2["gaTrackingId"] = "gaTrackingId";
|
|
902
|
+
WebsiteSettingsDistinctEnum2["noticeEmail"] = "noticeEmail";
|
|
903
|
+
WebsiteSettingsDistinctEnum2["emailTemplates"] = "emailTemplates";
|
|
866
904
|
WebsiteSettingsDistinctEnum2["websiteId"] = "websiteId";
|
|
867
905
|
WebsiteSettingsDistinctEnum2["slug"] = "slug";
|
|
868
906
|
WebsiteSettingsDistinctEnum2["description"] = "description";
|
|
@@ -1414,22 +1452,76 @@ class ProductCategoryQueryOptions extends QueryOptions {
|
|
|
1414
1452
|
return this;
|
|
1415
1453
|
}
|
|
1416
1454
|
}
|
|
1417
|
-
class
|
|
1455
|
+
class ProductQueryOptions extends QueryOptions {
|
|
1418
1456
|
constructor(fields, queryArgs) {
|
|
1419
|
-
super(
|
|
1457
|
+
super(ProductEntityName, fields, queryArgs);
|
|
1420
1458
|
}
|
|
1421
1459
|
id() {
|
|
1422
1460
|
this.addField("id");
|
|
1423
1461
|
return this;
|
|
1424
1462
|
}
|
|
1425
|
-
|
|
1426
|
-
this.addField("
|
|
1463
|
+
published() {
|
|
1464
|
+
this.addField("published");
|
|
1465
|
+
return this;
|
|
1466
|
+
}
|
|
1467
|
+
featured() {
|
|
1468
|
+
this.addField("featured");
|
|
1469
|
+
return this;
|
|
1470
|
+
}
|
|
1471
|
+
showInNavMenu() {
|
|
1472
|
+
this.addField("showInNavMenu");
|
|
1427
1473
|
return this;
|
|
1428
1474
|
}
|
|
1429
1475
|
seqValue() {
|
|
1430
1476
|
this.addField("seqValue");
|
|
1431
1477
|
return this;
|
|
1432
1478
|
}
|
|
1479
|
+
/**
|
|
1480
|
+
* 特色
|
|
1481
|
+
*/
|
|
1482
|
+
features() {
|
|
1483
|
+
this.addField("features");
|
|
1484
|
+
return this;
|
|
1485
|
+
}
|
|
1486
|
+
content2() {
|
|
1487
|
+
this.addField("content2");
|
|
1488
|
+
return this;
|
|
1489
|
+
}
|
|
1490
|
+
content3() {
|
|
1491
|
+
this.addField("content3");
|
|
1492
|
+
return this;
|
|
1493
|
+
}
|
|
1494
|
+
shortTitle() {
|
|
1495
|
+
this.addField("shortTitle");
|
|
1496
|
+
return this;
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* 第三方视频url
|
|
1500
|
+
*/
|
|
1501
|
+
externalVideoUrl() {
|
|
1502
|
+
this.addField("externalVideoUrl");
|
|
1503
|
+
return this;
|
|
1504
|
+
}
|
|
1505
|
+
publishedAt() {
|
|
1506
|
+
this.addField("publishedAt");
|
|
1507
|
+
return this;
|
|
1508
|
+
}
|
|
1509
|
+
status() {
|
|
1510
|
+
this.addField("status");
|
|
1511
|
+
return this;
|
|
1512
|
+
}
|
|
1513
|
+
title() {
|
|
1514
|
+
this.addField("title");
|
|
1515
|
+
return this;
|
|
1516
|
+
}
|
|
1517
|
+
content() {
|
|
1518
|
+
this.addField("content");
|
|
1519
|
+
return this;
|
|
1520
|
+
}
|
|
1521
|
+
extends() {
|
|
1522
|
+
this.addField("extends");
|
|
1523
|
+
return this;
|
|
1524
|
+
}
|
|
1433
1525
|
websiteId() {
|
|
1434
1526
|
this.addField("websiteId");
|
|
1435
1527
|
return this;
|
|
@@ -1463,129 +1555,20 @@ class PostCategoryQueryOptions extends QueryOptions {
|
|
|
1463
1555
|
this.addField("remark");
|
|
1464
1556
|
return this;
|
|
1465
1557
|
}
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
this._associations["children"] = new PostCategoryQueryOptions(options);
|
|
1469
|
-
} else {
|
|
1470
|
-
this._associations["children"] = options || new PostCategoryQueryOptions(["id"]);
|
|
1471
|
-
}
|
|
1558
|
+
seoTitle() {
|
|
1559
|
+
this.addField("seoTitle");
|
|
1472
1560
|
return this;
|
|
1473
1561
|
}
|
|
1474
|
-
|
|
1475
|
-
this.
|
|
1562
|
+
seoKeywords() {
|
|
1563
|
+
this.addField("seoKeywords");
|
|
1476
1564
|
return this;
|
|
1477
1565
|
}
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
this._associations["posts"] = new PostQueryOptions(options);
|
|
1481
|
-
} else {
|
|
1482
|
-
this._associations["posts"] = options || new PostQueryOptions(["id"]);
|
|
1483
|
-
}
|
|
1566
|
+
seoDescription() {
|
|
1567
|
+
this.addField("seoDescription");
|
|
1484
1568
|
return this;
|
|
1485
1569
|
}
|
|
1486
|
-
|
|
1487
|
-
this.
|
|
1488
|
-
return this;
|
|
1489
|
-
}
|
|
1490
|
-
parent(options) {
|
|
1491
|
-
if (Array.isArray(options)) {
|
|
1492
|
-
this._associations["parent"] = new PostCategoryQueryOptions(options);
|
|
1493
|
-
} else {
|
|
1494
|
-
this._associations["parent"] = options || new PostCategoryQueryOptions(["id"]);
|
|
1495
|
-
}
|
|
1496
|
-
return this;
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
class PostQueryOptions extends QueryOptions {
|
|
1500
|
-
constructor(fields, queryArgs) {
|
|
1501
|
-
super(PostEntityName, fields, queryArgs);
|
|
1502
|
-
}
|
|
1503
|
-
id() {
|
|
1504
|
-
this.addField("id");
|
|
1505
|
-
return this;
|
|
1506
|
-
}
|
|
1507
|
-
seqValue() {
|
|
1508
|
-
this.addField("seqValue");
|
|
1509
|
-
return this;
|
|
1510
|
-
}
|
|
1511
|
-
/**
|
|
1512
|
-
* 置顶
|
|
1513
|
-
*/
|
|
1514
|
-
pinToTop() {
|
|
1515
|
-
this.addField("pinToTop");
|
|
1516
|
-
return this;
|
|
1517
|
-
}
|
|
1518
|
-
authorEmail() {
|
|
1519
|
-
this.addField("authorEmail");
|
|
1520
|
-
return this;
|
|
1521
|
-
}
|
|
1522
|
-
publishedAt() {
|
|
1523
|
-
this.addField("publishedAt");
|
|
1524
|
-
return this;
|
|
1525
|
-
}
|
|
1526
|
-
status() {
|
|
1527
|
-
this.addField("status");
|
|
1528
|
-
return this;
|
|
1529
|
-
}
|
|
1530
|
-
title() {
|
|
1531
|
-
this.addField("title");
|
|
1532
|
-
return this;
|
|
1533
|
-
}
|
|
1534
|
-
content() {
|
|
1535
|
-
this.addField("content");
|
|
1536
|
-
return this;
|
|
1537
|
-
}
|
|
1538
|
-
extends() {
|
|
1539
|
-
this.addField("extends");
|
|
1540
|
-
return this;
|
|
1541
|
-
}
|
|
1542
|
-
websiteId() {
|
|
1543
|
-
this.addField("websiteId");
|
|
1544
|
-
return this;
|
|
1545
|
-
}
|
|
1546
|
-
slug() {
|
|
1547
|
-
this.addField("slug");
|
|
1548
|
-
return this;
|
|
1549
|
-
}
|
|
1550
|
-
description() {
|
|
1551
|
-
this.addField("description");
|
|
1552
|
-
return this;
|
|
1553
|
-
}
|
|
1554
|
-
/**
|
|
1555
|
-
* 创建时间
|
|
1556
|
-
*/
|
|
1557
|
-
createdAt() {
|
|
1558
|
-
this.addField("createdAt");
|
|
1559
|
-
return this;
|
|
1560
|
-
}
|
|
1561
|
-
/**
|
|
1562
|
-
* 更新时间
|
|
1563
|
-
*/
|
|
1564
|
-
updatedAt() {
|
|
1565
|
-
this.addField("updatedAt");
|
|
1566
|
-
return this;
|
|
1567
|
-
}
|
|
1568
|
-
/**
|
|
1569
|
-
* 备注
|
|
1570
|
-
*/
|
|
1571
|
-
remark() {
|
|
1572
|
-
this.addField("remark");
|
|
1573
|
-
return this;
|
|
1574
|
-
}
|
|
1575
|
-
seoTitle() {
|
|
1576
|
-
this.addField("seoTitle");
|
|
1577
|
-
return this;
|
|
1578
|
-
}
|
|
1579
|
-
seoKeywords() {
|
|
1580
|
-
this.addField("seoKeywords");
|
|
1581
|
-
return this;
|
|
1582
|
-
}
|
|
1583
|
-
seoDescription() {
|
|
1584
|
-
this.addField("seoDescription");
|
|
1585
|
-
return this;
|
|
1586
|
-
}
|
|
1587
|
-
ogTitle() {
|
|
1588
|
-
this.addField("ogTitle");
|
|
1570
|
+
ogTitle() {
|
|
1571
|
+
this.addField("ogTitle");
|
|
1589
1572
|
return this;
|
|
1590
1573
|
}
|
|
1591
1574
|
ogDescription() {
|
|
@@ -1628,6 +1611,26 @@ class PostQueryOptions extends QueryOptions {
|
|
|
1628
1611
|
this.addField("lang");
|
|
1629
1612
|
return this;
|
|
1630
1613
|
}
|
|
1614
|
+
category(options) {
|
|
1615
|
+
if (Array.isArray(options)) {
|
|
1616
|
+
this._associations["category"] = new ProductCategoryQueryOptions(options);
|
|
1617
|
+
} else {
|
|
1618
|
+
this._associations["category"] = options || new ProductCategoryQueryOptions(["id"]);
|
|
1619
|
+
}
|
|
1620
|
+
return this;
|
|
1621
|
+
}
|
|
1622
|
+
medias(options) {
|
|
1623
|
+
if (Array.isArray(options)) {
|
|
1624
|
+
this._associations["medias"] = new MediaQueryOptions(options);
|
|
1625
|
+
} else {
|
|
1626
|
+
this._associations["medias"] = options || new MediaQueryOptions(["id"]);
|
|
1627
|
+
}
|
|
1628
|
+
return this;
|
|
1629
|
+
}
|
|
1630
|
+
mediasAggregate(aggregate) {
|
|
1631
|
+
this._aggregates["mediasAggregate"] = aggregate;
|
|
1632
|
+
return this;
|
|
1633
|
+
}
|
|
1631
1634
|
tags(options) {
|
|
1632
1635
|
if (Array.isArray(options)) {
|
|
1633
1636
|
this._associations["tags"] = new TagQueryOptions(options);
|
|
@@ -1640,51 +1643,47 @@ class PostQueryOptions extends QueryOptions {
|
|
|
1640
1643
|
this._aggregates["tagsAggregate"] = aggregate;
|
|
1641
1644
|
return this;
|
|
1642
1645
|
}
|
|
1643
|
-
|
|
1646
|
+
ogImage(options) {
|
|
1644
1647
|
if (Array.isArray(options)) {
|
|
1645
|
-
this._associations["
|
|
1648
|
+
this._associations["ogImage"] = new MediaQueryOptions(options);
|
|
1646
1649
|
} else {
|
|
1647
|
-
this._associations["
|
|
1650
|
+
this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
|
|
1648
1651
|
}
|
|
1649
1652
|
return this;
|
|
1650
1653
|
}
|
|
1651
|
-
|
|
1654
|
+
attachments(options) {
|
|
1652
1655
|
if (Array.isArray(options)) {
|
|
1653
|
-
this._associations["
|
|
1656
|
+
this._associations["attachments"] = new MediaQueryOptions(options);
|
|
1654
1657
|
} else {
|
|
1655
|
-
this._associations["
|
|
1658
|
+
this._associations["attachments"] = options || new MediaQueryOptions(["id"]);
|
|
1656
1659
|
}
|
|
1657
1660
|
return this;
|
|
1658
1661
|
}
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
this._associations["ogImage"] = new MediaQueryOptions(options);
|
|
1662
|
-
} else {
|
|
1663
|
-
this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
|
|
1664
|
-
}
|
|
1662
|
+
attachmentsAggregate(aggregate) {
|
|
1663
|
+
this._aggregates["attachmentsAggregate"] = aggregate;
|
|
1665
1664
|
return this;
|
|
1666
1665
|
}
|
|
1667
1666
|
draftOf(options) {
|
|
1668
1667
|
if (Array.isArray(options)) {
|
|
1669
|
-
this._associations["draftOf"] = new
|
|
1668
|
+
this._associations["draftOf"] = new ProductQueryOptions(options);
|
|
1670
1669
|
} else {
|
|
1671
|
-
this._associations["draftOf"] = options || new
|
|
1670
|
+
this._associations["draftOf"] = options || new ProductQueryOptions(["id"]);
|
|
1672
1671
|
}
|
|
1673
1672
|
return this;
|
|
1674
1673
|
}
|
|
1675
|
-
|
|
1674
|
+
creator(options) {
|
|
1676
1675
|
if (Array.isArray(options)) {
|
|
1677
|
-
this._associations["
|
|
1676
|
+
this._associations["creator"] = new UserQueryOptions(options);
|
|
1678
1677
|
} else {
|
|
1679
|
-
this._associations["
|
|
1678
|
+
this._associations["creator"] = options || new UserQueryOptions(["id"]);
|
|
1680
1679
|
}
|
|
1681
1680
|
return this;
|
|
1682
1681
|
}
|
|
1683
1682
|
draft(options) {
|
|
1684
1683
|
if (Array.isArray(options)) {
|
|
1685
|
-
this._associations["draft"] = new
|
|
1684
|
+
this._associations["draft"] = new ProductQueryOptions(options);
|
|
1686
1685
|
} else {
|
|
1687
|
-
this._associations["draft"] = options || new
|
|
1686
|
+
this._associations["draft"] = options || new ProductQueryOptions(["id"]);
|
|
1688
1687
|
}
|
|
1689
1688
|
return this;
|
|
1690
1689
|
}
|
|
@@ -1766,54 +1765,109 @@ class TagQueryOptions extends QueryOptions {
|
|
|
1766
1765
|
return this;
|
|
1767
1766
|
}
|
|
1768
1767
|
}
|
|
1769
|
-
class
|
|
1768
|
+
class PostCategoryQueryOptions extends QueryOptions {
|
|
1770
1769
|
constructor(fields, queryArgs) {
|
|
1771
|
-
super(
|
|
1770
|
+
super(PostCategoryEntityName, fields, queryArgs);
|
|
1772
1771
|
}
|
|
1773
1772
|
id() {
|
|
1774
1773
|
this.addField("id");
|
|
1775
1774
|
return this;
|
|
1776
1775
|
}
|
|
1777
|
-
|
|
1778
|
-
this.addField("
|
|
1776
|
+
name() {
|
|
1777
|
+
this.addField("name");
|
|
1779
1778
|
return this;
|
|
1780
1779
|
}
|
|
1781
|
-
|
|
1782
|
-
this.addField("
|
|
1780
|
+
seqValue() {
|
|
1781
|
+
this.addField("seqValue");
|
|
1783
1782
|
return this;
|
|
1784
1783
|
}
|
|
1785
|
-
|
|
1786
|
-
this.addField("
|
|
1784
|
+
websiteId() {
|
|
1785
|
+
this.addField("websiteId");
|
|
1787
1786
|
return this;
|
|
1788
1787
|
}
|
|
1789
|
-
|
|
1790
|
-
this.addField("
|
|
1788
|
+
slug() {
|
|
1789
|
+
this.addField("slug");
|
|
1790
|
+
return this;
|
|
1791
|
+
}
|
|
1792
|
+
description() {
|
|
1793
|
+
this.addField("description");
|
|
1791
1794
|
return this;
|
|
1792
1795
|
}
|
|
1793
1796
|
/**
|
|
1794
|
-
*
|
|
1797
|
+
* 创建时间
|
|
1795
1798
|
*/
|
|
1796
|
-
|
|
1797
|
-
this.addField("
|
|
1799
|
+
createdAt() {
|
|
1800
|
+
this.addField("createdAt");
|
|
1798
1801
|
return this;
|
|
1799
1802
|
}
|
|
1800
|
-
|
|
1801
|
-
|
|
1803
|
+
/**
|
|
1804
|
+
* 更新时间
|
|
1805
|
+
*/
|
|
1806
|
+
updatedAt() {
|
|
1807
|
+
this.addField("updatedAt");
|
|
1802
1808
|
return this;
|
|
1803
1809
|
}
|
|
1804
|
-
|
|
1805
|
-
|
|
1810
|
+
/**
|
|
1811
|
+
* 备注
|
|
1812
|
+
*/
|
|
1813
|
+
remark() {
|
|
1814
|
+
this.addField("remark");
|
|
1806
1815
|
return this;
|
|
1807
1816
|
}
|
|
1808
|
-
|
|
1809
|
-
|
|
1817
|
+
children(options) {
|
|
1818
|
+
if (Array.isArray(options)) {
|
|
1819
|
+
this._associations["children"] = new PostCategoryQueryOptions(options);
|
|
1820
|
+
} else {
|
|
1821
|
+
this._associations["children"] = options || new PostCategoryQueryOptions(["id"]);
|
|
1822
|
+
}
|
|
1823
|
+
return this;
|
|
1824
|
+
}
|
|
1825
|
+
childrenAggregate(aggregate) {
|
|
1826
|
+
this._aggregates["childrenAggregate"] = aggregate;
|
|
1827
|
+
return this;
|
|
1828
|
+
}
|
|
1829
|
+
posts(options) {
|
|
1830
|
+
if (Array.isArray(options)) {
|
|
1831
|
+
this._associations["posts"] = new PostQueryOptions(options);
|
|
1832
|
+
} else {
|
|
1833
|
+
this._associations["posts"] = options || new PostQueryOptions(["id"]);
|
|
1834
|
+
}
|
|
1835
|
+
return this;
|
|
1836
|
+
}
|
|
1837
|
+
postsAggregate(aggregate) {
|
|
1838
|
+
this._aggregates["postsAggregate"] = aggregate;
|
|
1839
|
+
return this;
|
|
1840
|
+
}
|
|
1841
|
+
parent(options) {
|
|
1842
|
+
if (Array.isArray(options)) {
|
|
1843
|
+
this._associations["parent"] = new PostCategoryQueryOptions(options);
|
|
1844
|
+
} else {
|
|
1845
|
+
this._associations["parent"] = options || new PostCategoryQueryOptions(["id"]);
|
|
1846
|
+
}
|
|
1847
|
+
return this;
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
class PostQueryOptions extends QueryOptions {
|
|
1851
|
+
constructor(fields, queryArgs) {
|
|
1852
|
+
super(PostEntityName, fields, queryArgs);
|
|
1853
|
+
}
|
|
1854
|
+
id() {
|
|
1855
|
+
this.addField("id");
|
|
1856
|
+
return this;
|
|
1857
|
+
}
|
|
1858
|
+
seqValue() {
|
|
1859
|
+
this.addField("seqValue");
|
|
1810
1860
|
return this;
|
|
1811
1861
|
}
|
|
1812
1862
|
/**
|
|
1813
|
-
*
|
|
1863
|
+
* 置顶
|
|
1814
1864
|
*/
|
|
1815
|
-
|
|
1816
|
-
this.addField("
|
|
1865
|
+
pinToTop() {
|
|
1866
|
+
this.addField("pinToTop");
|
|
1867
|
+
return this;
|
|
1868
|
+
}
|
|
1869
|
+
authorEmail() {
|
|
1870
|
+
this.addField("authorEmail");
|
|
1817
1871
|
return this;
|
|
1818
1872
|
}
|
|
1819
1873
|
publishedAt() {
|
|
@@ -1925,26 +1979,6 @@ class ProductQueryOptions extends QueryOptions {
|
|
|
1925
1979
|
this.addField("lang");
|
|
1926
1980
|
return this;
|
|
1927
1981
|
}
|
|
1928
|
-
category(options) {
|
|
1929
|
-
if (Array.isArray(options)) {
|
|
1930
|
-
this._associations["category"] = new ProductCategoryQueryOptions(options);
|
|
1931
|
-
} else {
|
|
1932
|
-
this._associations["category"] = options || new ProductCategoryQueryOptions(["id"]);
|
|
1933
|
-
}
|
|
1934
|
-
return this;
|
|
1935
|
-
}
|
|
1936
|
-
medias(options) {
|
|
1937
|
-
if (Array.isArray(options)) {
|
|
1938
|
-
this._associations["medias"] = new MediaQueryOptions(options);
|
|
1939
|
-
} else {
|
|
1940
|
-
this._associations["medias"] = options || new MediaQueryOptions(["id"]);
|
|
1941
|
-
}
|
|
1942
|
-
return this;
|
|
1943
|
-
}
|
|
1944
|
-
mediasAggregate(aggregate) {
|
|
1945
|
-
this._aggregates["mediasAggregate"] = aggregate;
|
|
1946
|
-
return this;
|
|
1947
|
-
}
|
|
1948
1982
|
tags(options) {
|
|
1949
1983
|
if (Array.isArray(options)) {
|
|
1950
1984
|
this._associations["tags"] = new TagQueryOptions(options);
|
|
@@ -1957,154 +1991,54 @@ class ProductQueryOptions extends QueryOptions {
|
|
|
1957
1991
|
this._aggregates["tagsAggregate"] = aggregate;
|
|
1958
1992
|
return this;
|
|
1959
1993
|
}
|
|
1960
|
-
|
|
1961
|
-
if (Array.isArray(options)) {
|
|
1962
|
-
this._associations["ogImage"] = new MediaQueryOptions(options);
|
|
1963
|
-
} else {
|
|
1964
|
-
this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
|
|
1965
|
-
}
|
|
1966
|
-
return this;
|
|
1967
|
-
}
|
|
1968
|
-
attachments(options) {
|
|
1969
|
-
if (Array.isArray(options)) {
|
|
1970
|
-
this._associations["attachments"] = new MediaQueryOptions(options);
|
|
1971
|
-
} else {
|
|
1972
|
-
this._associations["attachments"] = options || new MediaQueryOptions(["id"]);
|
|
1973
|
-
}
|
|
1974
|
-
return this;
|
|
1975
|
-
}
|
|
1976
|
-
attachmentsAggregate(aggregate) {
|
|
1977
|
-
this._aggregates["attachmentsAggregate"] = aggregate;
|
|
1978
|
-
return this;
|
|
1979
|
-
}
|
|
1980
|
-
draftOf(options) {
|
|
1981
|
-
if (Array.isArray(options)) {
|
|
1982
|
-
this._associations["draftOf"] = new ProductQueryOptions(options);
|
|
1983
|
-
} else {
|
|
1984
|
-
this._associations["draftOf"] = options || new ProductQueryOptions(["id"]);
|
|
1985
|
-
}
|
|
1986
|
-
return this;
|
|
1987
|
-
}
|
|
1988
|
-
creator(options) {
|
|
1989
|
-
if (Array.isArray(options)) {
|
|
1990
|
-
this._associations["creator"] = new UserQueryOptions(options);
|
|
1991
|
-
} else {
|
|
1992
|
-
this._associations["creator"] = options || new UserQueryOptions(["id"]);
|
|
1993
|
-
}
|
|
1994
|
-
return this;
|
|
1995
|
-
}
|
|
1996
|
-
draft(options) {
|
|
1994
|
+
author(options) {
|
|
1997
1995
|
if (Array.isArray(options)) {
|
|
1998
|
-
this._associations["
|
|
1996
|
+
this._associations["author"] = new UserQueryOptions(options);
|
|
1999
1997
|
} else {
|
|
2000
|
-
this._associations["
|
|
1998
|
+
this._associations["author"] = options || new UserQueryOptions(["id"]);
|
|
2001
1999
|
}
|
|
2002
2000
|
return this;
|
|
2003
2001
|
}
|
|
2004
|
-
|
|
2005
|
-
class MediaQueryOptions extends QueryOptions {
|
|
2006
|
-
constructor(fields, queryArgs) {
|
|
2007
|
-
super(MediaEntityName, fields, queryArgs);
|
|
2008
|
-
}
|
|
2009
|
-
id() {
|
|
2010
|
-
this.addField("id");
|
|
2011
|
-
return this;
|
|
2012
|
-
}
|
|
2013
|
-
name() {
|
|
2014
|
-
this.addField("name");
|
|
2015
|
-
return this;
|
|
2016
|
-
}
|
|
2017
|
-
size() {
|
|
2018
|
-
this.addField("size");
|
|
2019
|
-
return this;
|
|
2020
|
-
}
|
|
2021
|
-
mimeType() {
|
|
2022
|
-
this.addField("mimeType");
|
|
2023
|
-
return this;
|
|
2024
|
-
}
|
|
2025
|
-
extName() {
|
|
2026
|
-
this.addField("extName");
|
|
2027
|
-
return this;
|
|
2028
|
-
}
|
|
2029
|
-
file(fields) {
|
|
2030
|
-
this.addObjectField("file", fields);
|
|
2031
|
-
return this;
|
|
2032
|
-
}
|
|
2033
|
-
description() {
|
|
2034
|
-
this.addField("description");
|
|
2035
|
-
return this;
|
|
2036
|
-
}
|
|
2037
|
-
createdAt() {
|
|
2038
|
-
this.addField("createdAt");
|
|
2039
|
-
return this;
|
|
2040
|
-
}
|
|
2041
|
-
updatedAt() {
|
|
2042
|
-
this.addField("updatedAt");
|
|
2043
|
-
return this;
|
|
2044
|
-
}
|
|
2045
|
-
mediaType() {
|
|
2046
|
-
this.addField("mediaType");
|
|
2047
|
-
return this;
|
|
2048
|
-
}
|
|
2049
|
-
/**
|
|
2050
|
-
* 网站Id
|
|
2051
|
-
*/
|
|
2052
|
-
websiteId() {
|
|
2053
|
-
this.addField("websiteId");
|
|
2054
|
-
return this;
|
|
2055
|
-
}
|
|
2056
|
-
folder(options) {
|
|
2002
|
+
cover(options) {
|
|
2057
2003
|
if (Array.isArray(options)) {
|
|
2058
|
-
this._associations["
|
|
2004
|
+
this._associations["cover"] = new MediaQueryOptions(options);
|
|
2059
2005
|
} else {
|
|
2060
|
-
this._associations["
|
|
2006
|
+
this._associations["cover"] = options || new MediaQueryOptions(["id"]);
|
|
2061
2007
|
}
|
|
2062
2008
|
return this;
|
|
2063
2009
|
}
|
|
2064
|
-
|
|
2010
|
+
ogImage(options) {
|
|
2065
2011
|
if (Array.isArray(options)) {
|
|
2066
|
-
this._associations["
|
|
2012
|
+
this._associations["ogImage"] = new MediaQueryOptions(options);
|
|
2067
2013
|
} else {
|
|
2068
|
-
this._associations["
|
|
2014
|
+
this._associations["ogImage"] = options || new MediaQueryOptions(["id"]);
|
|
2069
2015
|
}
|
|
2070
2016
|
return this;
|
|
2071
2017
|
}
|
|
2072
|
-
|
|
2018
|
+
draftOf(options) {
|
|
2073
2019
|
if (Array.isArray(options)) {
|
|
2074
|
-
this._associations["
|
|
2020
|
+
this._associations["draftOf"] = new PostQueryOptions(options);
|
|
2075
2021
|
} else {
|
|
2076
|
-
this._associations["
|
|
2022
|
+
this._associations["draftOf"] = options || new PostQueryOptions(["id"]);
|
|
2077
2023
|
}
|
|
2078
2024
|
return this;
|
|
2079
2025
|
}
|
|
2080
|
-
|
|
2081
|
-
this._aggregates["usedByProductsAggregate"] = aggregate;
|
|
2082
|
-
return this;
|
|
2083
|
-
}
|
|
2084
|
-
attachmentOf(options) {
|
|
2026
|
+
category(options) {
|
|
2085
2027
|
if (Array.isArray(options)) {
|
|
2086
|
-
this._associations["
|
|
2028
|
+
this._associations["category"] = new PostCategoryQueryOptions(options);
|
|
2087
2029
|
} else {
|
|
2088
|
-
this._associations["
|
|
2030
|
+
this._associations["category"] = options || new PostCategoryQueryOptions(["id"]);
|
|
2089
2031
|
}
|
|
2090
2032
|
return this;
|
|
2091
2033
|
}
|
|
2092
|
-
|
|
2093
|
-
this._aggregates["attachmentOfAggregate"] = aggregate;
|
|
2094
|
-
return this;
|
|
2095
|
-
}
|
|
2096
|
-
meidaOfProduct(options) {
|
|
2034
|
+
draft(options) {
|
|
2097
2035
|
if (Array.isArray(options)) {
|
|
2098
|
-
this._associations["
|
|
2036
|
+
this._associations["draft"] = new PostQueryOptions(options);
|
|
2099
2037
|
} else {
|
|
2100
|
-
this._associations["
|
|
2038
|
+
this._associations["draft"] = options || new PostQueryOptions(["id"]);
|
|
2101
2039
|
}
|
|
2102
2040
|
return this;
|
|
2103
2041
|
}
|
|
2104
|
-
meidaOfProductAggregate(aggregate) {
|
|
2105
|
-
this._aggregates["meidaOfProductAggregate"] = aggregate;
|
|
2106
|
-
return this;
|
|
2107
|
-
}
|
|
2108
2042
|
}
|
|
2109
2043
|
class WebsiteTypeQueryOptions extends QueryOptions {
|
|
2110
2044
|
constructor(fields, queryArgs) {
|
|
@@ -2350,8 +2284,91 @@ class ThemeQueryOptions extends QueryOptions {
|
|
|
2350
2284
|
this.addField("slug");
|
|
2351
2285
|
return this;
|
|
2352
2286
|
}
|
|
2353
|
-
description() {
|
|
2354
|
-
this.addField("description");
|
|
2287
|
+
description() {
|
|
2288
|
+
this.addField("description");
|
|
2289
|
+
return this;
|
|
2290
|
+
}
|
|
2291
|
+
/**
|
|
2292
|
+
* 创建时间
|
|
2293
|
+
*/
|
|
2294
|
+
createdAt() {
|
|
2295
|
+
this.addField("createdAt");
|
|
2296
|
+
return this;
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* 更新时间
|
|
2300
|
+
*/
|
|
2301
|
+
updatedAt() {
|
|
2302
|
+
this.addField("updatedAt");
|
|
2303
|
+
return this;
|
|
2304
|
+
}
|
|
2305
|
+
/**
|
|
2306
|
+
* 备注
|
|
2307
|
+
*/
|
|
2308
|
+
remark() {
|
|
2309
|
+
this.addField("remark");
|
|
2310
|
+
return this;
|
|
2311
|
+
}
|
|
2312
|
+
templates(options) {
|
|
2313
|
+
if (Array.isArray(options)) {
|
|
2314
|
+
this._associations["templates"] = new TemplateQueryOptions(options);
|
|
2315
|
+
} else {
|
|
2316
|
+
this._associations["templates"] = options || new TemplateQueryOptions(["id"]);
|
|
2317
|
+
}
|
|
2318
|
+
return this;
|
|
2319
|
+
}
|
|
2320
|
+
templatesAggregate(aggregate) {
|
|
2321
|
+
this._aggregates["templatesAggregate"] = aggregate;
|
|
2322
|
+
return this;
|
|
2323
|
+
}
|
|
2324
|
+
themlateCategories(options) {
|
|
2325
|
+
if (Array.isArray(options)) {
|
|
2326
|
+
this._associations["themlateCategories"] = new TemplateCategoryQueryOptions(options);
|
|
2327
|
+
} else {
|
|
2328
|
+
this._associations["themlateCategories"] = options || new TemplateCategoryQueryOptions(["id"]);
|
|
2329
|
+
}
|
|
2330
|
+
return this;
|
|
2331
|
+
}
|
|
2332
|
+
themlateCategoriesAggregate(aggregate) {
|
|
2333
|
+
this._aggregates["themlateCategoriesAggregate"] = aggregate;
|
|
2334
|
+
return this;
|
|
2335
|
+
}
|
|
2336
|
+
selectedBy(options) {
|
|
2337
|
+
if (Array.isArray(options)) {
|
|
2338
|
+
this._associations["selectedBy"] = new WebsiteQueryOptions(options);
|
|
2339
|
+
} else {
|
|
2340
|
+
this._associations["selectedBy"] = options || new WebsiteQueryOptions(["id"]);
|
|
2341
|
+
}
|
|
2342
|
+
return this;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
class WebsiteQueryOptions extends QueryOptions {
|
|
2346
|
+
constructor(fields, queryArgs) {
|
|
2347
|
+
super(WebsiteEntityName, fields, queryArgs);
|
|
2348
|
+
}
|
|
2349
|
+
id() {
|
|
2350
|
+
this.addField("id");
|
|
2351
|
+
return this;
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* 站点名称
|
|
2355
|
+
*/
|
|
2356
|
+
name() {
|
|
2357
|
+
this.addField("name");
|
|
2358
|
+
return this;
|
|
2359
|
+
}
|
|
2360
|
+
/**
|
|
2361
|
+
* 站点备注
|
|
2362
|
+
*/
|
|
2363
|
+
remark() {
|
|
2364
|
+
this.addField("remark");
|
|
2365
|
+
return this;
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* 创建者ID
|
|
2369
|
+
*/
|
|
2370
|
+
createdBy() {
|
|
2371
|
+
this.addField("createdBy");
|
|
2355
2372
|
return this;
|
|
2356
2373
|
}
|
|
2357
2374
|
/**
|
|
@@ -2361,6 +2378,13 @@ class ThemeQueryOptions extends QueryOptions {
|
|
|
2361
2378
|
this.addField("createdAt");
|
|
2362
2379
|
return this;
|
|
2363
2380
|
}
|
|
2381
|
+
/**
|
|
2382
|
+
* 最近打开时间
|
|
2383
|
+
*/
|
|
2384
|
+
lastOpenTime() {
|
|
2385
|
+
this.addField("lastOpenTime");
|
|
2386
|
+
return this;
|
|
2387
|
+
}
|
|
2364
2388
|
/**
|
|
2365
2389
|
* 更新时间
|
|
2366
2390
|
*/
|
|
@@ -2369,34 +2393,54 @@ class ThemeQueryOptions extends QueryOptions {
|
|
|
2369
2393
|
return this;
|
|
2370
2394
|
}
|
|
2371
2395
|
/**
|
|
2372
|
-
*
|
|
2396
|
+
* 更新者ID
|
|
2373
2397
|
*/
|
|
2374
|
-
|
|
2375
|
-
this.addField("
|
|
2398
|
+
updatedBy() {
|
|
2399
|
+
this.addField("updatedBy");
|
|
2376
2400
|
return this;
|
|
2377
2401
|
}
|
|
2378
|
-
|
|
2402
|
+
websiteType(options) {
|
|
2379
2403
|
if (Array.isArray(options)) {
|
|
2380
|
-
this._associations["
|
|
2404
|
+
this._associations["websiteType"] = new WebsiteTypeQueryOptions(options);
|
|
2381
2405
|
} else {
|
|
2382
|
-
this._associations["
|
|
2406
|
+
this._associations["websiteType"] = options || new WebsiteTypeQueryOptions(["id"]);
|
|
2383
2407
|
}
|
|
2384
2408
|
return this;
|
|
2385
2409
|
}
|
|
2386
|
-
|
|
2387
|
-
|
|
2410
|
+
selectedTheme(options) {
|
|
2411
|
+
if (Array.isArray(options)) {
|
|
2412
|
+
this._associations["selectedTheme"] = new ThemeQueryOptions(options);
|
|
2413
|
+
} else {
|
|
2414
|
+
this._associations["selectedTheme"] = options || new ThemeQueryOptions(["id"]);
|
|
2415
|
+
}
|
|
2388
2416
|
return this;
|
|
2389
2417
|
}
|
|
2390
|
-
|
|
2418
|
+
homePage(options) {
|
|
2391
2419
|
if (Array.isArray(options)) {
|
|
2392
|
-
this._associations["
|
|
2420
|
+
this._associations["homePage"] = new PageQueryOptions(options);
|
|
2393
2421
|
} else {
|
|
2394
|
-
this._associations["
|
|
2422
|
+
this._associations["homePage"] = options || new PageQueryOptions(["id"]);
|
|
2395
2423
|
}
|
|
2396
2424
|
return this;
|
|
2397
2425
|
}
|
|
2398
|
-
|
|
2399
|
-
|
|
2426
|
+
owner(options) {
|
|
2427
|
+
if (Array.isArray(options)) {
|
|
2428
|
+
this._associations["owner"] = new UserQueryOptions(options);
|
|
2429
|
+
} else {
|
|
2430
|
+
this._associations["owner"] = options || new UserQueryOptions(["id"]);
|
|
2431
|
+
}
|
|
2432
|
+
return this;
|
|
2433
|
+
}
|
|
2434
|
+
users(options) {
|
|
2435
|
+
if (Array.isArray(options)) {
|
|
2436
|
+
this._associations["users"] = new UserQueryOptions(options);
|
|
2437
|
+
} else {
|
|
2438
|
+
this._associations["users"] = options || new UserQueryOptions(["id"]);
|
|
2439
|
+
}
|
|
2440
|
+
return this;
|
|
2441
|
+
}
|
|
2442
|
+
usersAggregate(aggregate) {
|
|
2443
|
+
this._aggregates["usersAggregate"] = aggregate;
|
|
2400
2444
|
return this;
|
|
2401
2445
|
}
|
|
2402
2446
|
}
|
|
@@ -2521,106 +2565,164 @@ class PageQueryOptions extends QueryOptions {
|
|
|
2521
2565
|
}
|
|
2522
2566
|
return this;
|
|
2523
2567
|
}
|
|
2568
|
+
homeOf(options) {
|
|
2569
|
+
if (Array.isArray(options)) {
|
|
2570
|
+
this._associations["homeOf"] = new WebsiteQueryOptions(options);
|
|
2571
|
+
} else {
|
|
2572
|
+
this._associations["homeOf"] = options || new WebsiteQueryOptions(["id"]);
|
|
2573
|
+
}
|
|
2574
|
+
return this;
|
|
2575
|
+
}
|
|
2524
2576
|
}
|
|
2525
|
-
class
|
|
2577
|
+
class MediaQueryOptions extends QueryOptions {
|
|
2526
2578
|
constructor(fields, queryArgs) {
|
|
2527
|
-
super(
|
|
2579
|
+
super(MediaEntityName, fields, queryArgs);
|
|
2528
2580
|
}
|
|
2529
2581
|
id() {
|
|
2530
2582
|
this.addField("id");
|
|
2531
2583
|
return this;
|
|
2532
2584
|
}
|
|
2533
|
-
/**
|
|
2534
|
-
* 站点名称
|
|
2535
|
-
*/
|
|
2536
2585
|
name() {
|
|
2537
2586
|
this.addField("name");
|
|
2538
2587
|
return this;
|
|
2539
2588
|
}
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
*/
|
|
2543
|
-
remark() {
|
|
2544
|
-
this.addField("remark");
|
|
2589
|
+
size() {
|
|
2590
|
+
this.addField("size");
|
|
2545
2591
|
return this;
|
|
2546
2592
|
}
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
*/
|
|
2550
|
-
createdBy() {
|
|
2551
|
-
this.addField("createdBy");
|
|
2593
|
+
mimeType() {
|
|
2594
|
+
this.addField("mimeType");
|
|
2552
2595
|
return this;
|
|
2553
2596
|
}
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
*/
|
|
2557
|
-
createdAt() {
|
|
2558
|
-
this.addField("createdAt");
|
|
2597
|
+
extName() {
|
|
2598
|
+
this.addField("extName");
|
|
2559
2599
|
return this;
|
|
2560
2600
|
}
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2601
|
+
file(fields) {
|
|
2602
|
+
this.addObjectField("file", fields);
|
|
2603
|
+
return this;
|
|
2604
|
+
}
|
|
2605
|
+
description() {
|
|
2606
|
+
this.addField("description");
|
|
2607
|
+
return this;
|
|
2608
|
+
}
|
|
2609
|
+
createdAt() {
|
|
2610
|
+
this.addField("createdAt");
|
|
2566
2611
|
return this;
|
|
2567
2612
|
}
|
|
2568
|
-
/**
|
|
2569
|
-
* 更新时间
|
|
2570
|
-
*/
|
|
2571
2613
|
updatedAt() {
|
|
2572
2614
|
this.addField("updatedAt");
|
|
2573
2615
|
return this;
|
|
2574
2616
|
}
|
|
2617
|
+
mediaType() {
|
|
2618
|
+
this.addField("mediaType");
|
|
2619
|
+
return this;
|
|
2620
|
+
}
|
|
2575
2621
|
/**
|
|
2576
|
-
*
|
|
2622
|
+
* 网站Id
|
|
2577
2623
|
*/
|
|
2578
|
-
|
|
2579
|
-
this.addField("
|
|
2624
|
+
websiteId() {
|
|
2625
|
+
this.addField("websiteId");
|
|
2580
2626
|
return this;
|
|
2581
2627
|
}
|
|
2582
|
-
|
|
2628
|
+
folder(options) {
|
|
2583
2629
|
if (Array.isArray(options)) {
|
|
2584
|
-
this._associations["
|
|
2630
|
+
this._associations["folder"] = new MediaFolderQueryOptions(options);
|
|
2585
2631
|
} else {
|
|
2586
|
-
this._associations["
|
|
2632
|
+
this._associations["folder"] = options || new MediaFolderQueryOptions(["id"]);
|
|
2587
2633
|
}
|
|
2588
2634
|
return this;
|
|
2589
2635
|
}
|
|
2590
|
-
|
|
2636
|
+
coverOf(options) {
|
|
2591
2637
|
if (Array.isArray(options)) {
|
|
2592
|
-
this._associations["
|
|
2638
|
+
this._associations["coverOf"] = new PostQueryOptions(options);
|
|
2593
2639
|
} else {
|
|
2594
|
-
this._associations["
|
|
2640
|
+
this._associations["coverOf"] = options || new PostQueryOptions(["id"]);
|
|
2595
2641
|
}
|
|
2596
2642
|
return this;
|
|
2597
2643
|
}
|
|
2598
|
-
|
|
2644
|
+
coverOfAggregate(aggregate) {
|
|
2645
|
+
this._aggregates["coverOfAggregate"] = aggregate;
|
|
2646
|
+
return this;
|
|
2647
|
+
}
|
|
2648
|
+
avatarOfUser(options) {
|
|
2599
2649
|
if (Array.isArray(options)) {
|
|
2600
|
-
this._associations["
|
|
2650
|
+
this._associations["avatarOfUser"] = new UserQueryOptions(options);
|
|
2601
2651
|
} else {
|
|
2602
|
-
this._associations["
|
|
2652
|
+
this._associations["avatarOfUser"] = options || new UserQueryOptions(["id"]);
|
|
2603
2653
|
}
|
|
2604
2654
|
return this;
|
|
2605
2655
|
}
|
|
2606
|
-
|
|
2656
|
+
usedByProducts(options) {
|
|
2607
2657
|
if (Array.isArray(options)) {
|
|
2608
|
-
this._associations["
|
|
2658
|
+
this._associations["usedByProducts"] = new ProductQueryOptions(options);
|
|
2609
2659
|
} else {
|
|
2610
|
-
this._associations["
|
|
2660
|
+
this._associations["usedByProducts"] = options || new ProductQueryOptions(["id"]);
|
|
2611
2661
|
}
|
|
2612
2662
|
return this;
|
|
2613
2663
|
}
|
|
2614
|
-
|
|
2664
|
+
usedByProductsAggregate(aggregate) {
|
|
2665
|
+
this._aggregates["usedByProductsAggregate"] = aggregate;
|
|
2666
|
+
return this;
|
|
2667
|
+
}
|
|
2668
|
+
ogMetaOfPage(options) {
|
|
2615
2669
|
if (Array.isArray(options)) {
|
|
2616
|
-
this._associations["
|
|
2670
|
+
this._associations["ogMetaOfPage"] = new PageQueryOptions(options);
|
|
2617
2671
|
} else {
|
|
2618
|
-
this._associations["
|
|
2672
|
+
this._associations["ogMetaOfPage"] = options || new PageQueryOptions(["id"]);
|
|
2619
2673
|
}
|
|
2620
2674
|
return this;
|
|
2621
2675
|
}
|
|
2622
|
-
|
|
2623
|
-
this._aggregates["
|
|
2676
|
+
ogMetaOfPageAggregate(aggregate) {
|
|
2677
|
+
this._aggregates["ogMetaOfPageAggregate"] = aggregate;
|
|
2678
|
+
return this;
|
|
2679
|
+
}
|
|
2680
|
+
ogMetaOfProduct(options) {
|
|
2681
|
+
if (Array.isArray(options)) {
|
|
2682
|
+
this._associations["ogMetaOfProduct"] = new ProductQueryOptions(options);
|
|
2683
|
+
} else {
|
|
2684
|
+
this._associations["ogMetaOfProduct"] = options || new ProductQueryOptions(["id"]);
|
|
2685
|
+
}
|
|
2686
|
+
return this;
|
|
2687
|
+
}
|
|
2688
|
+
ogMetaOfProductAggregate(aggregate) {
|
|
2689
|
+
this._aggregates["ogMetaOfProductAggregate"] = aggregate;
|
|
2690
|
+
return this;
|
|
2691
|
+
}
|
|
2692
|
+
ogMetaOfPost(options) {
|
|
2693
|
+
if (Array.isArray(options)) {
|
|
2694
|
+
this._associations["ogMetaOfPost"] = new PostQueryOptions(options);
|
|
2695
|
+
} else {
|
|
2696
|
+
this._associations["ogMetaOfPost"] = options || new PostQueryOptions(["id"]);
|
|
2697
|
+
}
|
|
2698
|
+
return this;
|
|
2699
|
+
}
|
|
2700
|
+
ogMetaOfPostAggregate(aggregate) {
|
|
2701
|
+
this._aggregates["ogMetaOfPostAggregate"] = aggregate;
|
|
2702
|
+
return this;
|
|
2703
|
+
}
|
|
2704
|
+
attachmentOf(options) {
|
|
2705
|
+
if (Array.isArray(options)) {
|
|
2706
|
+
this._associations["attachmentOf"] = new ProductQueryOptions(options);
|
|
2707
|
+
} else {
|
|
2708
|
+
this._associations["attachmentOf"] = options || new ProductQueryOptions(["id"]);
|
|
2709
|
+
}
|
|
2710
|
+
return this;
|
|
2711
|
+
}
|
|
2712
|
+
attachmentOfAggregate(aggregate) {
|
|
2713
|
+
this._aggregates["attachmentOfAggregate"] = aggregate;
|
|
2714
|
+
return this;
|
|
2715
|
+
}
|
|
2716
|
+
meidaOfProduct(options) {
|
|
2717
|
+
if (Array.isArray(options)) {
|
|
2718
|
+
this._associations["meidaOfProduct"] = new ProductCategoryQueryOptions(options);
|
|
2719
|
+
} else {
|
|
2720
|
+
this._associations["meidaOfProduct"] = options || new ProductCategoryQueryOptions(["id"]);
|
|
2721
|
+
}
|
|
2722
|
+
return this;
|
|
2723
|
+
}
|
|
2724
|
+
meidaOfProductAggregate(aggregate) {
|
|
2725
|
+
this._aggregates["meidaOfProductAggregate"] = aggregate;
|
|
2624
2726
|
return this;
|
|
2625
2727
|
}
|
|
2626
2728
|
}
|
|
@@ -2828,6 +2930,67 @@ class AbilityQueryOptions extends QueryOptions {
|
|
|
2828
2930
|
return this;
|
|
2829
2931
|
}
|
|
2830
2932
|
}
|
|
2933
|
+
class MailQueryOptions extends QueryOptions {
|
|
2934
|
+
constructor(fields, queryArgs) {
|
|
2935
|
+
super(MailEntityName, fields, queryArgs);
|
|
2936
|
+
}
|
|
2937
|
+
id() {
|
|
2938
|
+
this.addField("id");
|
|
2939
|
+
return this;
|
|
2940
|
+
}
|
|
2941
|
+
createdAt() {
|
|
2942
|
+
this.addField("createdAt");
|
|
2943
|
+
return this;
|
|
2944
|
+
}
|
|
2945
|
+
updatedAt() {
|
|
2946
|
+
this.addField("updatedAt");
|
|
2947
|
+
return this;
|
|
2948
|
+
}
|
|
2949
|
+
taskId() {
|
|
2950
|
+
this.addField("taskId");
|
|
2951
|
+
return this;
|
|
2952
|
+
}
|
|
2953
|
+
taskName() {
|
|
2954
|
+
this.addField("taskName");
|
|
2955
|
+
return this;
|
|
2956
|
+
}
|
|
2957
|
+
remark() {
|
|
2958
|
+
this.addField("remark");
|
|
2959
|
+
return this;
|
|
2960
|
+
}
|
|
2961
|
+
subject() {
|
|
2962
|
+
this.addField("subject");
|
|
2963
|
+
return this;
|
|
2964
|
+
}
|
|
2965
|
+
message() {
|
|
2966
|
+
this.addField("message");
|
|
2967
|
+
return this;
|
|
2968
|
+
}
|
|
2969
|
+
to() {
|
|
2970
|
+
this.addField("to");
|
|
2971
|
+
return this;
|
|
2972
|
+
}
|
|
2973
|
+
cc() {
|
|
2974
|
+
this.addField("cc");
|
|
2975
|
+
return this;
|
|
2976
|
+
}
|
|
2977
|
+
label() {
|
|
2978
|
+
this.addField("label");
|
|
2979
|
+
return this;
|
|
2980
|
+
}
|
|
2981
|
+
name() {
|
|
2982
|
+
this.addField("name");
|
|
2983
|
+
return this;
|
|
2984
|
+
}
|
|
2985
|
+
company() {
|
|
2986
|
+
this.addField("company");
|
|
2987
|
+
return this;
|
|
2988
|
+
}
|
|
2989
|
+
mailType() {
|
|
2990
|
+
this.addField("mailType");
|
|
2991
|
+
return this;
|
|
2992
|
+
}
|
|
2993
|
+
}
|
|
2831
2994
|
class LangQueryOptions extends QueryOptions {
|
|
2832
2995
|
constructor(fields, queryArgs) {
|
|
2833
2996
|
super(LangEntityName, fields, queryArgs);
|
|
@@ -3109,15 +3272,6 @@ class EnquiryQueryOptions extends QueryOptions {
|
|
|
3109
3272
|
return this;
|
|
3110
3273
|
}
|
|
3111
3274
|
}
|
|
3112
|
-
class WebsiteMetaQueryOptions extends QueryOptions {
|
|
3113
|
-
constructor(fields, queryArgs) {
|
|
3114
|
-
super(WebsiteMetaEntityName, fields, queryArgs);
|
|
3115
|
-
}
|
|
3116
|
-
id() {
|
|
3117
|
-
this.addField("id");
|
|
3118
|
-
return this;
|
|
3119
|
-
}
|
|
3120
|
-
}
|
|
3121
3275
|
class WebsiteSettingsQueryOptions extends QueryOptions {
|
|
3122
3276
|
constructor(fields, queryArgs) {
|
|
3123
3277
|
super(WebsiteSettingsEntityName, fields, queryArgs);
|
|
@@ -3212,6 +3366,20 @@ class WebsiteSettingsQueryOptions extends QueryOptions {
|
|
|
3212
3366
|
this.addField("gaTrackingId");
|
|
3213
3367
|
return this;
|
|
3214
3368
|
}
|
|
3369
|
+
/**
|
|
3370
|
+
* 通知邮箱
|
|
3371
|
+
*/
|
|
3372
|
+
noticeEmail() {
|
|
3373
|
+
this.addField("noticeEmail");
|
|
3374
|
+
return this;
|
|
3375
|
+
}
|
|
3376
|
+
/**
|
|
3377
|
+
* 邮件模板
|
|
3378
|
+
*/
|
|
3379
|
+
emailTemplates() {
|
|
3380
|
+
this.addField("emailTemplates");
|
|
3381
|
+
return this;
|
|
3382
|
+
}
|
|
3215
3383
|
websiteId() {
|
|
3216
3384
|
this.addField("websiteId");
|
|
3217
3385
|
return this;
|
|
@@ -3314,6 +3482,11 @@ const mediaEntry = {
|
|
|
3314
3482
|
entityLabel: MediaEntityLabel,
|
|
3315
3483
|
toInput: mediaToInput
|
|
3316
3484
|
};
|
|
3485
|
+
const mailEntry = {
|
|
3486
|
+
entityName: MailEntityName,
|
|
3487
|
+
entityLabel: MailEntityLabel,
|
|
3488
|
+
toInput: mailToInput
|
|
3489
|
+
};
|
|
3317
3490
|
const websiteEntry = {
|
|
3318
3491
|
entityName: WebsiteEntityName,
|
|
3319
3492
|
entityLabel: WebsiteEntityLabel,
|
|
@@ -3349,11 +3522,6 @@ const enquiryEntry = {
|
|
|
3349
3522
|
entityLabel: EnquiryEntityLabel,
|
|
3350
3523
|
toInput: enquiryToInput
|
|
3351
3524
|
};
|
|
3352
|
-
const websiteMetaEntry = {
|
|
3353
|
-
entityName: WebsiteMetaEntityName,
|
|
3354
|
-
entityLabel: WebsiteMetaEntityLabel,
|
|
3355
|
-
toInput: websiteMetaToInput
|
|
3356
|
-
};
|
|
3357
3525
|
const websiteSettingsEntry = {
|
|
3358
3526
|
entityName: WebsiteSettingsEntityName,
|
|
3359
3527
|
entityLabel: WebsiteSettingsEntityLabel,
|
|
@@ -3482,15 +3650,42 @@ var MediaFields = /* @__PURE__ */ ((MediaFields2) => {
|
|
|
3482
3650
|
})(MediaFields || {});
|
|
3483
3651
|
var MediaAssciations = /* @__PURE__ */ ((MediaAssciations2) => {
|
|
3484
3652
|
MediaAssciations2["folder"] = "folder";
|
|
3653
|
+
MediaAssciations2["coverOf"] = "coverOf";
|
|
3654
|
+
MediaAssciations2["coverOfAggregate"] = "coverOfAggregate";
|
|
3485
3655
|
MediaAssciations2["avatarOfUser"] = "avatarOfUser";
|
|
3486
3656
|
MediaAssciations2["usedByProducts"] = "usedByProducts";
|
|
3487
3657
|
MediaAssciations2["usedByProductsAggregate"] = "usedByProductsAggregate";
|
|
3658
|
+
MediaAssciations2["ogMetaOfPage"] = "ogMetaOfPage";
|
|
3659
|
+
MediaAssciations2["ogMetaOfPageAggregate"] = "ogMetaOfPageAggregate";
|
|
3660
|
+
MediaAssciations2["ogMetaOfProduct"] = "ogMetaOfProduct";
|
|
3661
|
+
MediaAssciations2["ogMetaOfProductAggregate"] = "ogMetaOfProductAggregate";
|
|
3662
|
+
MediaAssciations2["ogMetaOfPost"] = "ogMetaOfPost";
|
|
3663
|
+
MediaAssciations2["ogMetaOfPostAggregate"] = "ogMetaOfPostAggregate";
|
|
3488
3664
|
MediaAssciations2["attachmentOf"] = "attachmentOf";
|
|
3489
3665
|
MediaAssciations2["attachmentOfAggregate"] = "attachmentOfAggregate";
|
|
3490
3666
|
MediaAssciations2["meidaOfProduct"] = "meidaOfProduct";
|
|
3491
3667
|
MediaAssciations2["meidaOfProductAggregate"] = "meidaOfProductAggregate";
|
|
3492
3668
|
return MediaAssciations2;
|
|
3493
3669
|
})(MediaAssciations || {});
|
|
3670
|
+
var MailFields = /* @__PURE__ */ ((MailFields2) => {
|
|
3671
|
+
MailFields2["id"] = "id";
|
|
3672
|
+
MailFields2["createdAt"] = "createdAt";
|
|
3673
|
+
MailFields2["updatedAt"] = "updatedAt";
|
|
3674
|
+
MailFields2["taskId"] = "taskId";
|
|
3675
|
+
MailFields2["taskName"] = "taskName";
|
|
3676
|
+
MailFields2["remark"] = "remark";
|
|
3677
|
+
MailFields2["subject"] = "subject";
|
|
3678
|
+
MailFields2["message"] = "message";
|
|
3679
|
+
MailFields2["to"] = "to";
|
|
3680
|
+
MailFields2["cc"] = "cc";
|
|
3681
|
+
MailFields2["label"] = "label";
|
|
3682
|
+
MailFields2["name"] = "name";
|
|
3683
|
+
MailFields2["company"] = "company";
|
|
3684
|
+
MailFields2["mailType"] = "mailType";
|
|
3685
|
+
return MailFields2;
|
|
3686
|
+
})(MailFields || {});
|
|
3687
|
+
var MailAssciations = /* @__PURE__ */ ((MailAssciations2) => {
|
|
3688
|
+
})();
|
|
3494
3689
|
var WebsiteFields = /* @__PURE__ */ ((WebsiteFields2) => {
|
|
3495
3690
|
WebsiteFields2["id"] = "id";
|
|
3496
3691
|
WebsiteFields2["name"] = "name";
|
|
@@ -3575,6 +3770,7 @@ var PageFields = /* @__PURE__ */ ((PageFields2) => {
|
|
|
3575
3770
|
})(PageFields || {});
|
|
3576
3771
|
var PageAssciations = /* @__PURE__ */ ((PageAssciations2) => {
|
|
3577
3772
|
PageAssciations2["ogImage"] = "ogImage";
|
|
3773
|
+
PageAssciations2["homeOf"] = "homeOf";
|
|
3578
3774
|
return PageAssciations2;
|
|
3579
3775
|
})(PageAssciations || {});
|
|
3580
3776
|
var PostFields = /* @__PURE__ */ ((PostFields2) => {
|
|
@@ -3697,12 +3893,6 @@ var EnquiryAssciations = /* @__PURE__ */ ((EnquiryAssciations2) => {
|
|
|
3697
3893
|
EnquiryAssciations2["customer"] = "customer";
|
|
3698
3894
|
return EnquiryAssciations2;
|
|
3699
3895
|
})(EnquiryAssciations || {});
|
|
3700
|
-
var WebsiteMetaFields = /* @__PURE__ */ ((WebsiteMetaFields2) => {
|
|
3701
|
-
WebsiteMetaFields2["id"] = "id";
|
|
3702
|
-
return WebsiteMetaFields2;
|
|
3703
|
-
})(WebsiteMetaFields || {});
|
|
3704
|
-
var WebsiteMetaAssciations = /* @__PURE__ */ ((WebsiteMetaAssciations2) => {
|
|
3705
|
-
})();
|
|
3706
3896
|
var WebsiteSettingsFields = /* @__PURE__ */ ((WebsiteSettingsFields2) => {
|
|
3707
3897
|
WebsiteSettingsFields2["id"] = "id";
|
|
3708
3898
|
WebsiteSettingsFields2["smtpConfig"] = "smtpConfig";
|
|
@@ -3722,6 +3912,8 @@ var WebsiteSettingsFields = /* @__PURE__ */ ((WebsiteSettingsFields2) => {
|
|
|
3722
3912
|
WebsiteSettingsFields2["headerCode"] = "headerCode";
|
|
3723
3913
|
WebsiteSettingsFields2["footerCode"] = "footerCode";
|
|
3724
3914
|
WebsiteSettingsFields2["gaTrackingId"] = "gaTrackingId";
|
|
3915
|
+
WebsiteSettingsFields2["noticeEmail"] = "noticeEmail";
|
|
3916
|
+
WebsiteSettingsFields2["emailTemplates"] = "emailTemplates";
|
|
3725
3917
|
WebsiteSettingsFields2["websiteId"] = "websiteId";
|
|
3726
3918
|
WebsiteSettingsFields2["slug"] = "slug";
|
|
3727
3919
|
WebsiteSettingsFields2["description"] = "description";
|
|
@@ -3787,6 +3979,7 @@ var ThemeAssciations = /* @__PURE__ */ ((ThemeAssciations2) => {
|
|
|
3787
3979
|
ThemeAssciations2["templatesAggregate"] = "templatesAggregate";
|
|
3788
3980
|
ThemeAssciations2["themlateCategories"] = "themlateCategories";
|
|
3789
3981
|
ThemeAssciations2["themlateCategoriesAggregate"] = "themlateCategoriesAggregate";
|
|
3982
|
+
ThemeAssciations2["selectedBy"] = "selectedBy";
|
|
3790
3983
|
return ThemeAssciations2;
|
|
3791
3984
|
})(ThemeAssciations || {});
|
|
3792
3985
|
var MediaFolderFields = /* @__PURE__ */ ((MediaFolderFields2) => {
|
|
@@ -3941,6 +4134,13 @@ export {
|
|
|
3941
4134
|
LangEntityName,
|
|
3942
4135
|
LangFields,
|
|
3943
4136
|
LangQueryOptions,
|
|
4137
|
+
MailAssciations,
|
|
4138
|
+
MailDistinctEnum,
|
|
4139
|
+
MailEntityLabel,
|
|
4140
|
+
MailEntityName,
|
|
4141
|
+
MailFields,
|
|
4142
|
+
MailQueryOptions,
|
|
4143
|
+
MailType,
|
|
3944
4144
|
MediaAssciations,
|
|
3945
4145
|
MediaDistinctEnum,
|
|
3946
4146
|
MediaEntityLabel,
|
|
@@ -4041,12 +4241,6 @@ export {
|
|
|
4041
4241
|
WebsiteEntityLabel,
|
|
4042
4242
|
WebsiteEntityName,
|
|
4043
4243
|
WebsiteFields,
|
|
4044
|
-
WebsiteMetaAssciations,
|
|
4045
|
-
WebsiteMetaDistinctEnum,
|
|
4046
|
-
WebsiteMetaEntityLabel,
|
|
4047
|
-
WebsiteMetaEntityName,
|
|
4048
|
-
WebsiteMetaFields,
|
|
4049
|
-
WebsiteMetaQueryOptions,
|
|
4050
4244
|
WebsitePartDistinctEnum,
|
|
4051
4245
|
WebsiteQueryOptions,
|
|
4052
4246
|
WebsiteSettingsAssciations,
|
|
@@ -4077,6 +4271,9 @@ export {
|
|
|
4077
4271
|
langEntry,
|
|
4078
4272
|
langToInput,
|
|
4079
4273
|
langToInputCascade,
|
|
4274
|
+
mailEntry,
|
|
4275
|
+
mailToInput,
|
|
4276
|
+
mailToInputCascade,
|
|
4080
4277
|
mediaEntry,
|
|
4081
4278
|
mediaFolderEntry,
|
|
4082
4279
|
mediaFolderToInput,
|
|
@@ -4120,9 +4317,6 @@ export {
|
|
|
4120
4317
|
userToInput,
|
|
4121
4318
|
userToInputCascade,
|
|
4122
4319
|
websiteEntry,
|
|
4123
|
-
websiteMetaEntry,
|
|
4124
|
-
websiteMetaToInput,
|
|
4125
|
-
websiteMetaToInputCascade,
|
|
4126
4320
|
websiteSettingsEntry,
|
|
4127
4321
|
websiteSettingsToInput,
|
|
4128
4322
|
websiteSettingsToInputCascade,
|