@rytass/cms-base-nestjs-graphql-module 0.0.14 → 0.0.15

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.
@@ -4,8 +4,8 @@ import { ArticleMutations } from './mutations/article.mutations.js';
4
4
  import { CategoryMutations } from './mutations/category.mutations.js';
5
5
  import { ArticleQueries } from './queries/article.queries.js';
6
6
  import { CategoryQueries } from './queries/category.queries.js';
7
- import { MemberDataLoader } from './dataloaders/members.dataloader.js';
8
- import { ArticleDataLoader } from './dataloaders/article.dataloader.js';
7
+ import { MemberDataLoader } from './data-loaders/members.dataloader.js';
8
+ import { ArticleDataLoader } from './data-loaders/article.dataloader.js';
9
9
  import { ArticleResolver } from './resolvers/article.resolver.js';
10
10
  import { BackstageArticleResolver } from './resolvers/backstage-article.resolver.js';
11
11
 
@@ -0,0 +1,7 @@
1
+ import type { QuadratsElement } from '@quadrats/core';
2
+ export declare class ArticleMultiLanguageContentDto {
3
+ language: string;
4
+ title: string;
5
+ description: string | null;
6
+ content: QuadratsElement[];
7
+ }
@@ -0,0 +1,41 @@
1
+ import { Field, ObjectType } from '@nestjs/graphql';
2
+ import { QuadratsContentScalar } from '../scalars/quadrats-element.scalar.js';
3
+
4
+ function _ts_decorate(decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
7
+ else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
8
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
9
+ }
10
+ function _ts_metadata(k, v) {
11
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
12
+ }
13
+ class ArticleMultiLanguageContentDto {
14
+ language;
15
+ title;
16
+ description;
17
+ content;
18
+ }
19
+ _ts_decorate([
20
+ Field(()=>String),
21
+ _ts_metadata("design:type", String)
22
+ ], ArticleMultiLanguageContentDto.prototype, "language", void 0);
23
+ _ts_decorate([
24
+ Field(()=>String),
25
+ _ts_metadata("design:type", String)
26
+ ], ArticleMultiLanguageContentDto.prototype, "title", void 0);
27
+ _ts_decorate([
28
+ Field(()=>String, {
29
+ nullable: true
30
+ }),
31
+ _ts_metadata("design:type", Object)
32
+ ], ArticleMultiLanguageContentDto.prototype, "description", void 0);
33
+ _ts_decorate([
34
+ Field(()=>QuadratsContentScalar),
35
+ _ts_metadata("design:type", Array)
36
+ ], ArticleMultiLanguageContentDto.prototype, "content", void 0);
37
+ ArticleMultiLanguageContentDto = _ts_decorate([
38
+ ObjectType('ArticleMultiLanguageContent')
39
+ ], ArticleMultiLanguageContentDto);
40
+
41
+ export { ArticleMultiLanguageContentDto };
@@ -2,5 +2,6 @@ import { BaseArticleDto } from './base-article.dto';
2
2
  import type { QuadratsElement } from '@quadrats/core';
3
3
  export declare class ArticleDto extends BaseArticleDto {
4
4
  title: string;
5
+ description: string | null;
5
6
  content: QuadratsElement[];
6
7
  }
@@ -13,12 +13,19 @@ function _ts_metadata(k, v) {
13
13
  }
14
14
  class ArticleDto extends BaseArticleDto {
15
15
  title;
16
+ description;
16
17
  content;
17
18
  }
18
19
  _ts_decorate([
19
20
  Field(()=>String),
20
21
  _ts_metadata("design:type", String)
21
22
  ], ArticleDto.prototype, "title", void 0);
23
+ _ts_decorate([
24
+ Field(()=>String, {
25
+ nullable: true
26
+ }),
27
+ _ts_metadata("design:type", Object)
28
+ ], ArticleDto.prototype, "description", void 0);
22
29
  _ts_decorate([
23
30
  Field(()=>QuadratsContentScalar),
24
31
  _ts_metadata("design:type", Array)