@rytass/cms-base-nestjs-graphql-module 0.0.4 → 0.0.6
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/dto/article-version-content.input.d.ts +6 -0
- package/dto/article-version-content.input.js +42 -0
- package/dto/article.dto.js +1 -1
- package/dto/base-article.dto.js +4 -1
- package/dto/base-category.dto.js +4 -1
- package/dto/category-backstage.dto.js +1 -5
- package/dto/category-multi-language-name.input.d.ts +4 -0
- package/dto/category-multi-language-name.input.js +30 -0
- package/dto/create-article.args.d.ts +1 -6
- package/dto/create-article.args.js +3 -31
- package/dto/create-category.args.d.ts +1 -7
- package/dto/create-category.args.js +3 -29
- package/dto/update-category.args.d.ts +4 -0
- package/dto/update-category.args.js +24 -0
- package/index.cjs.js +182 -150
- package/mutations/category.mutations.d.ts +2 -1
- package/mutations/category.mutations.js +2 -1
- package/package.json +1 -1
- package/dto/category-multi-language-name.dto.d.ts +0 -4
- /package/{data-loaders → dataloaders}/article-stage.dataloader.d.ts +0 -0
- /package/{data-loaders → dataloaders}/article.dataloader.d.ts +0 -0
- /package/{data-loaders → dataloaders}/category.dataloader.d.ts +0 -0
- /package/{data-loaders → dataloaders}/members.dataloader.d.ts +0 -0
- /package/{quadrats-element.scalar.d.ts → scalars/quadrats-element.scalar.d.ts} +0 -0
- /package/{quadrats-element.scalar.js → scalars/quadrats-element.scalar.js} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Field, InputType } from '@nestjs/graphql';
|
|
2
|
+
|
|
3
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
4
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
5
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
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;
|
|
7
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
+
}
|
|
9
|
+
function _ts_metadata(k, v) {
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
|
+
}
|
|
12
|
+
class ArticleVersionContentInput {
|
|
13
|
+
language;
|
|
14
|
+
title;
|
|
15
|
+
description;
|
|
16
|
+
content;
|
|
17
|
+
}
|
|
18
|
+
_ts_decorate([
|
|
19
|
+
Field(()=>String, {
|
|
20
|
+
nullable: true
|
|
21
|
+
}),
|
|
22
|
+
_ts_metadata("design:type", Object)
|
|
23
|
+
], ArticleVersionContentInput.prototype, "language", void 0);
|
|
24
|
+
_ts_decorate([
|
|
25
|
+
Field(()=>String),
|
|
26
|
+
_ts_metadata("design:type", String)
|
|
27
|
+
], ArticleVersionContentInput.prototype, "title", void 0);
|
|
28
|
+
_ts_decorate([
|
|
29
|
+
Field(()=>String, {
|
|
30
|
+
nullable: true
|
|
31
|
+
}),
|
|
32
|
+
_ts_metadata("design:type", Object)
|
|
33
|
+
], ArticleVersionContentInput.prototype, "description", void 0);
|
|
34
|
+
_ts_decorate([
|
|
35
|
+
Field(()=>String),
|
|
36
|
+
_ts_metadata("design:type", String)
|
|
37
|
+
], ArticleVersionContentInput.prototype, "content", void 0);
|
|
38
|
+
ArticleVersionContentInput = _ts_decorate([
|
|
39
|
+
InputType('ArticleVersionContentInput')
|
|
40
|
+
], ArticleVersionContentInput);
|
|
41
|
+
|
|
42
|
+
export { ArticleVersionContentInput };
|
package/dto/article.dto.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Field, ObjectType } from '@nestjs/graphql';
|
|
2
2
|
import { BaseArticleDto } from './base-article.dto.js';
|
|
3
|
-
import { QuadratsContentScalar } from '../quadrats-element.scalar.js';
|
|
3
|
+
import { QuadratsContentScalar } from '../scalars/quadrats-element.scalar.js';
|
|
4
4
|
|
|
5
5
|
function _ts_decorate(decorators, target, key, desc) {
|
|
6
6
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
package/dto/base-article.dto.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field, ID } from '@nestjs/graphql';
|
|
1
|
+
import { Field, ID, ObjectType } from '@nestjs/graphql';
|
|
2
2
|
|
|
3
3
|
function _ts_decorate(decorators, target, key, desc) {
|
|
4
4
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
@@ -28,5 +28,8 @@ _ts_decorate([
|
|
|
28
28
|
Field(()=>Date),
|
|
29
29
|
_ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
30
30
|
], BaseArticleDto.prototype, "createdAt", void 0);
|
|
31
|
+
BaseArticleDto = _ts_decorate([
|
|
32
|
+
ObjectType('BaseArticle')
|
|
33
|
+
], BaseArticleDto);
|
|
31
34
|
|
|
32
35
|
export { BaseArticleDto };
|
package/dto/base-category.dto.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field, ID } from '@nestjs/graphql';
|
|
1
|
+
import { Field, ID, ObjectType } from '@nestjs/graphql';
|
|
2
2
|
|
|
3
3
|
function _ts_decorate(decorators, target, key, desc) {
|
|
4
4
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
@@ -26,5 +26,8 @@ _ts_decorate([
|
|
|
26
26
|
Field(()=>Date),
|
|
27
27
|
_ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
28
28
|
], BaseCategoryDto.prototype, "updatedAt", void 0);
|
|
29
|
+
BaseCategoryDto = _ts_decorate([
|
|
30
|
+
ObjectType('BaseCategory')
|
|
31
|
+
], BaseCategoryDto);
|
|
29
32
|
|
|
30
33
|
export { BaseCategoryDto };
|
|
@@ -10,11 +10,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
10
10
|
class CategoryBackstageDto extends BaseCategoryDto {
|
|
11
11
|
}
|
|
12
12
|
CategoryBackstageDto = _ts_decorate([
|
|
13
|
-
ObjectType('CategoryBackstage'
|
|
14
|
-
implements: ()=>[
|
|
15
|
-
BaseCategoryDto
|
|
16
|
-
]
|
|
17
|
-
})
|
|
13
|
+
ObjectType('CategoryBackstage')
|
|
18
14
|
], CategoryBackstageDto);
|
|
19
15
|
|
|
20
16
|
export { CategoryBackstageDto };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Field, InputType } from '@nestjs/graphql';
|
|
2
|
+
|
|
3
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
4
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
5
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
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;
|
|
7
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
+
}
|
|
9
|
+
function _ts_metadata(k, v) {
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
|
+
}
|
|
12
|
+
class CategoryMultiLanguageNameInput {
|
|
13
|
+
language;
|
|
14
|
+
name;
|
|
15
|
+
}
|
|
16
|
+
_ts_decorate([
|
|
17
|
+
Field(()=>String, {
|
|
18
|
+
nullable: true
|
|
19
|
+
}),
|
|
20
|
+
_ts_metadata("design:type", Object)
|
|
21
|
+
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
22
|
+
_ts_decorate([
|
|
23
|
+
Field(()=>String),
|
|
24
|
+
_ts_metadata("design:type", String)
|
|
25
|
+
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
26
|
+
CategoryMultiLanguageNameInput = _ts_decorate([
|
|
27
|
+
InputType('CategoryMultiLanguageNameInput')
|
|
28
|
+
], CategoryMultiLanguageNameInput);
|
|
29
|
+
|
|
30
|
+
export { CategoryMultiLanguageNameInput };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ArticleVersionContentInput } from './article-version-content.input';
|
|
1
2
|
export declare class CreateArticleArgs {
|
|
2
3
|
categoryIds: string[];
|
|
3
4
|
tags: string[];
|
|
@@ -6,9 +7,3 @@ export declare class CreateArticleArgs {
|
|
|
6
7
|
submitted?: boolean | null;
|
|
7
8
|
signatureLevel?: string | null;
|
|
8
9
|
}
|
|
9
|
-
export declare class ArticleVersionContentInput {
|
|
10
|
-
language?: string | null;
|
|
11
|
-
title: string;
|
|
12
|
-
description?: string | null;
|
|
13
|
-
content: string;
|
|
14
|
-
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Field, ID, ArgsType
|
|
1
|
+
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
2
|
+
import { ArticleVersionContentInput } from './article-version-content.input.js';
|
|
2
3
|
|
|
3
4
|
function _ts_decorate(decorators, target, key, desc) {
|
|
4
5
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
@@ -56,34 +57,5 @@ _ts_decorate([
|
|
|
56
57
|
CreateArticleArgs = _ts_decorate([
|
|
57
58
|
ArgsType()
|
|
58
59
|
], CreateArticleArgs);
|
|
59
|
-
class ArticleVersionContentInput {
|
|
60
|
-
language;
|
|
61
|
-
title;
|
|
62
|
-
description;
|
|
63
|
-
content;
|
|
64
|
-
}
|
|
65
|
-
_ts_decorate([
|
|
66
|
-
Field(()=>String, {
|
|
67
|
-
nullable: true
|
|
68
|
-
}),
|
|
69
|
-
_ts_metadata("design:type", Object)
|
|
70
|
-
], ArticleVersionContentInput.prototype, "language", void 0);
|
|
71
|
-
_ts_decorate([
|
|
72
|
-
Field(()=>String),
|
|
73
|
-
_ts_metadata("design:type", String)
|
|
74
|
-
], ArticleVersionContentInput.prototype, "title", void 0);
|
|
75
|
-
_ts_decorate([
|
|
76
|
-
Field(()=>String, {
|
|
77
|
-
nullable: true
|
|
78
|
-
}),
|
|
79
|
-
_ts_metadata("design:type", Object)
|
|
80
|
-
], ArticleVersionContentInput.prototype, "description", void 0);
|
|
81
|
-
_ts_decorate([
|
|
82
|
-
Field(()=>String),
|
|
83
|
-
_ts_metadata("design:type", String)
|
|
84
|
-
], ArticleVersionContentInput.prototype, "content", void 0);
|
|
85
|
-
ArticleVersionContentInput = _ts_decorate([
|
|
86
|
-
InputType()
|
|
87
|
-
], ArticleVersionContentInput);
|
|
88
60
|
|
|
89
|
-
export {
|
|
61
|
+
export { CreateArticleArgs };
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
+
import { CategoryMultiLanguageNameInput } from './category-multi-language-name.input';
|
|
1
2
|
export declare class CreateCategoryArgs {
|
|
2
3
|
parentIds?: string[] | null;
|
|
3
4
|
multiLanguageNames: CategoryMultiLanguageNameInput[];
|
|
4
5
|
}
|
|
5
|
-
export declare class CategoryMultiLanguageNameInput {
|
|
6
|
-
language?: string | null;
|
|
7
|
-
name: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class UpdateCategoryArgs extends CreateCategoryArgs {
|
|
10
|
-
id: string;
|
|
11
|
-
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Field, ID, ArgsType
|
|
1
|
+
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
2
|
+
import { CategoryMultiLanguageNameInput } from './category-multi-language-name.input.js';
|
|
2
3
|
|
|
3
4
|
function _ts_decorate(decorators, target, key, desc) {
|
|
4
5
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
@@ -30,32 +31,5 @@ _ts_decorate([
|
|
|
30
31
|
CreateCategoryArgs = _ts_decorate([
|
|
31
32
|
ArgsType()
|
|
32
33
|
], CreateCategoryArgs);
|
|
33
|
-
class CategoryMultiLanguageNameInput {
|
|
34
|
-
language;
|
|
35
|
-
name;
|
|
36
|
-
}
|
|
37
|
-
_ts_decorate([
|
|
38
|
-
Field(()=>String, {
|
|
39
|
-
nullable: true
|
|
40
|
-
}),
|
|
41
|
-
_ts_metadata("design:type", Object)
|
|
42
|
-
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
43
|
-
_ts_decorate([
|
|
44
|
-
Field(()=>String),
|
|
45
|
-
_ts_metadata("design:type", String)
|
|
46
|
-
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
47
|
-
CategoryMultiLanguageNameInput = _ts_decorate([
|
|
48
|
-
InputType()
|
|
49
|
-
], CategoryMultiLanguageNameInput);
|
|
50
|
-
class UpdateCategoryArgs extends CreateCategoryArgs {
|
|
51
|
-
id;
|
|
52
|
-
}
|
|
53
|
-
_ts_decorate([
|
|
54
|
-
Field(()=>ID),
|
|
55
|
-
_ts_metadata("design:type", String)
|
|
56
|
-
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
57
|
-
UpdateCategoryArgs = _ts_decorate([
|
|
58
|
-
ArgsType()
|
|
59
|
-
], UpdateCategoryArgs);
|
|
60
34
|
|
|
61
|
-
export {
|
|
35
|
+
export { CreateCategoryArgs };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
2
|
+
import { CreateCategoryArgs } from './create-category.args.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 UpdateCategoryArgs extends CreateCategoryArgs {
|
|
14
|
+
id;
|
|
15
|
+
}
|
|
16
|
+
_ts_decorate([
|
|
17
|
+
Field(()=>ID),
|
|
18
|
+
_ts_metadata("design:type", String)
|
|
19
|
+
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
20
|
+
UpdateCategoryArgs = _ts_decorate([
|
|
21
|
+
ArgsType()
|
|
22
|
+
], UpdateCategoryArgs);
|
|
23
|
+
|
|
24
|
+
export { UpdateCategoryArgs };
|
package/index.cjs.js
CHANGED
|
@@ -6,13 +6,13 @@ var graphql = require('@nestjs/graphql');
|
|
|
6
6
|
var memberBaseNestjsModule = require('@rytass/member-base-nestjs-module');
|
|
7
7
|
var graphql$1 = require('graphql');
|
|
8
8
|
|
|
9
|
-
function _ts_decorate$
|
|
9
|
+
function _ts_decorate$l(decorators, target, key, desc) {
|
|
10
10
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
11
11
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
12
12
|
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;
|
|
13
13
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
14
14
|
}
|
|
15
|
-
function _ts_metadata$
|
|
15
|
+
function _ts_metadata$j(k, v) {
|
|
16
16
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17
17
|
}
|
|
18
18
|
class BaseArticleDto {
|
|
@@ -20,55 +20,97 @@ class BaseArticleDto {
|
|
|
20
20
|
tags;
|
|
21
21
|
createdAt;
|
|
22
22
|
}
|
|
23
|
-
_ts_decorate$
|
|
23
|
+
_ts_decorate$l([
|
|
24
24
|
graphql.Field(()=>graphql.ID),
|
|
25
|
-
_ts_metadata$
|
|
25
|
+
_ts_metadata$j("design:type", String)
|
|
26
26
|
], BaseArticleDto.prototype, "id", void 0);
|
|
27
|
-
_ts_decorate$
|
|
27
|
+
_ts_decorate$l([
|
|
28
28
|
graphql.Field(()=>[
|
|
29
29
|
String
|
|
30
30
|
]),
|
|
31
|
-
_ts_metadata$
|
|
31
|
+
_ts_metadata$j("design:type", Array)
|
|
32
32
|
], BaseArticleDto.prototype, "tags", void 0);
|
|
33
|
-
_ts_decorate$
|
|
33
|
+
_ts_decorate$l([
|
|
34
34
|
graphql.Field(()=>Date),
|
|
35
|
-
_ts_metadata$
|
|
35
|
+
_ts_metadata$j("design:type", typeof Date === "undefined" ? Object : Date)
|
|
36
36
|
], BaseArticleDto.prototype, "createdAt", void 0);
|
|
37
|
+
BaseArticleDto = _ts_decorate$l([
|
|
38
|
+
graphql.ObjectType('BaseArticle')
|
|
39
|
+
], BaseArticleDto);
|
|
37
40
|
|
|
38
|
-
function _ts_decorate$
|
|
41
|
+
function _ts_decorate$k(decorators, target, key, desc) {
|
|
39
42
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
40
43
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
41
44
|
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;
|
|
42
45
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
43
46
|
}
|
|
44
|
-
function _ts_metadata$
|
|
47
|
+
function _ts_metadata$i(k, v) {
|
|
45
48
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
46
49
|
}
|
|
47
50
|
class ArticleBackstageDto extends BaseArticleDto {
|
|
48
51
|
version;
|
|
49
52
|
deletedAt;
|
|
50
53
|
}
|
|
51
|
-
_ts_decorate$
|
|
54
|
+
_ts_decorate$k([
|
|
52
55
|
graphql.Field(()=>graphql.Int),
|
|
53
|
-
_ts_metadata$
|
|
56
|
+
_ts_metadata$i("design:type", Number)
|
|
54
57
|
], ArticleBackstageDto.prototype, "version", void 0);
|
|
55
|
-
_ts_decorate$
|
|
58
|
+
_ts_decorate$k([
|
|
56
59
|
graphql.Field(()=>Date, {
|
|
57
60
|
nullable: true
|
|
58
61
|
}),
|
|
59
|
-
_ts_metadata$
|
|
62
|
+
_ts_metadata$i("design:type", Object)
|
|
60
63
|
], ArticleBackstageDto.prototype, "deletedAt", void 0);
|
|
61
|
-
ArticleBackstageDto = _ts_decorate$
|
|
64
|
+
ArticleBackstageDto = _ts_decorate$k([
|
|
62
65
|
graphql.ObjectType('ArticleBackstage')
|
|
63
66
|
], ArticleBackstageDto);
|
|
64
67
|
|
|
65
|
-
function _ts_decorate$
|
|
68
|
+
function _ts_decorate$j(decorators, target, key, desc) {
|
|
66
69
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
67
70
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
68
71
|
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;
|
|
69
72
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
73
|
}
|
|
71
|
-
function _ts_metadata$
|
|
74
|
+
function _ts_metadata$h(k, v) {
|
|
75
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
76
|
+
}
|
|
77
|
+
class ArticleVersionContentInput {
|
|
78
|
+
language;
|
|
79
|
+
title;
|
|
80
|
+
description;
|
|
81
|
+
content;
|
|
82
|
+
}
|
|
83
|
+
_ts_decorate$j([
|
|
84
|
+
graphql.Field(()=>String, {
|
|
85
|
+
nullable: true
|
|
86
|
+
}),
|
|
87
|
+
_ts_metadata$h("design:type", Object)
|
|
88
|
+
], ArticleVersionContentInput.prototype, "language", void 0);
|
|
89
|
+
_ts_decorate$j([
|
|
90
|
+
graphql.Field(()=>String),
|
|
91
|
+
_ts_metadata$h("design:type", String)
|
|
92
|
+
], ArticleVersionContentInput.prototype, "title", void 0);
|
|
93
|
+
_ts_decorate$j([
|
|
94
|
+
graphql.Field(()=>String, {
|
|
95
|
+
nullable: true
|
|
96
|
+
}),
|
|
97
|
+
_ts_metadata$h("design:type", Object)
|
|
98
|
+
], ArticleVersionContentInput.prototype, "description", void 0);
|
|
99
|
+
_ts_decorate$j([
|
|
100
|
+
graphql.Field(()=>String),
|
|
101
|
+
_ts_metadata$h("design:type", String)
|
|
102
|
+
], ArticleVersionContentInput.prototype, "content", void 0);
|
|
103
|
+
ArticleVersionContentInput = _ts_decorate$j([
|
|
104
|
+
graphql.InputType('ArticleVersionContentInput')
|
|
105
|
+
], ArticleVersionContentInput);
|
|
106
|
+
|
|
107
|
+
function _ts_decorate$i(decorators, target, key, desc) {
|
|
108
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
109
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
110
|
+
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;
|
|
111
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
112
|
+
}
|
|
113
|
+
function _ts_metadata$g(k, v) {
|
|
72
114
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
73
115
|
}
|
|
74
116
|
class CreateArticleArgs {
|
|
@@ -79,102 +121,73 @@ class CreateArticleArgs {
|
|
|
79
121
|
submitted;
|
|
80
122
|
signatureLevel;
|
|
81
123
|
}
|
|
82
|
-
_ts_decorate$
|
|
124
|
+
_ts_decorate$i([
|
|
83
125
|
graphql.Field(()=>[
|
|
84
126
|
graphql.ID
|
|
85
127
|
]),
|
|
86
|
-
_ts_metadata$
|
|
128
|
+
_ts_metadata$g("design:type", Array)
|
|
87
129
|
], CreateArticleArgs.prototype, "categoryIds", void 0);
|
|
88
|
-
_ts_decorate$
|
|
130
|
+
_ts_decorate$i([
|
|
89
131
|
graphql.Field(()=>[
|
|
90
132
|
String
|
|
91
133
|
]),
|
|
92
|
-
_ts_metadata$
|
|
134
|
+
_ts_metadata$g("design:type", Array)
|
|
93
135
|
], CreateArticleArgs.prototype, "tags", void 0);
|
|
94
|
-
_ts_decorate$
|
|
136
|
+
_ts_decorate$i([
|
|
95
137
|
graphql.Field(()=>[
|
|
96
138
|
ArticleVersionContentInput
|
|
97
139
|
]),
|
|
98
|
-
_ts_metadata$
|
|
140
|
+
_ts_metadata$g("design:type", Array)
|
|
99
141
|
], CreateArticleArgs.prototype, "multiLanguageContents", void 0);
|
|
100
|
-
_ts_decorate$
|
|
142
|
+
_ts_decorate$i([
|
|
101
143
|
graphql.Field(()=>Date, {
|
|
102
144
|
nullable: true
|
|
103
145
|
}),
|
|
104
|
-
_ts_metadata$
|
|
146
|
+
_ts_metadata$g("design:type", Object)
|
|
105
147
|
], CreateArticleArgs.prototype, "releasedAt", void 0);
|
|
106
|
-
_ts_decorate$
|
|
148
|
+
_ts_decorate$i([
|
|
107
149
|
graphql.Field(()=>Boolean, {
|
|
108
150
|
nullable: true
|
|
109
151
|
}),
|
|
110
|
-
_ts_metadata$
|
|
152
|
+
_ts_metadata$g("design:type", Object)
|
|
111
153
|
], CreateArticleArgs.prototype, "submitted", void 0);
|
|
112
|
-
_ts_decorate$
|
|
154
|
+
_ts_decorate$i([
|
|
113
155
|
graphql.Field(()=>String, {
|
|
114
156
|
nullable: true
|
|
115
157
|
}),
|
|
116
|
-
_ts_metadata$
|
|
158
|
+
_ts_metadata$g("design:type", Object)
|
|
117
159
|
], CreateArticleArgs.prototype, "signatureLevel", void 0);
|
|
118
|
-
CreateArticleArgs = _ts_decorate$
|
|
160
|
+
CreateArticleArgs = _ts_decorate$i([
|
|
119
161
|
graphql.ArgsType()
|
|
120
162
|
], CreateArticleArgs);
|
|
121
|
-
class ArticleVersionContentInput {
|
|
122
|
-
language;
|
|
123
|
-
title;
|
|
124
|
-
description;
|
|
125
|
-
content;
|
|
126
|
-
}
|
|
127
|
-
_ts_decorate$g([
|
|
128
|
-
graphql.Field(()=>String, {
|
|
129
|
-
nullable: true
|
|
130
|
-
}),
|
|
131
|
-
_ts_metadata$e("design:type", Object)
|
|
132
|
-
], ArticleVersionContentInput.prototype, "language", void 0);
|
|
133
|
-
_ts_decorate$g([
|
|
134
|
-
graphql.Field(()=>String),
|
|
135
|
-
_ts_metadata$e("design:type", String)
|
|
136
|
-
], ArticleVersionContentInput.prototype, "title", void 0);
|
|
137
|
-
_ts_decorate$g([
|
|
138
|
-
graphql.Field(()=>String, {
|
|
139
|
-
nullable: true
|
|
140
|
-
}),
|
|
141
|
-
_ts_metadata$e("design:type", Object)
|
|
142
|
-
], ArticleVersionContentInput.prototype, "description", void 0);
|
|
143
|
-
_ts_decorate$g([
|
|
144
|
-
graphql.Field(()=>String),
|
|
145
|
-
_ts_metadata$e("design:type", String)
|
|
146
|
-
], ArticleVersionContentInput.prototype, "content", void 0);
|
|
147
|
-
ArticleVersionContentInput = _ts_decorate$g([
|
|
148
|
-
graphql.InputType()
|
|
149
|
-
], ArticleVersionContentInput);
|
|
150
163
|
|
|
151
|
-
function _ts_decorate$
|
|
164
|
+
function _ts_decorate$h(decorators, target, key, desc) {
|
|
152
165
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
153
166
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
154
167
|
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;
|
|
155
168
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
156
169
|
}
|
|
157
|
-
function _ts_metadata$
|
|
170
|
+
function _ts_metadata$f(k, v) {
|
|
158
171
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
159
172
|
}
|
|
160
173
|
class UpdateArticleArgs extends CreateArticleArgs {
|
|
161
174
|
id;
|
|
162
175
|
}
|
|
163
|
-
_ts_decorate$
|
|
176
|
+
_ts_decorate$h([
|
|
164
177
|
graphql.Field(()=>graphql.ID),
|
|
165
|
-
_ts_metadata$
|
|
178
|
+
_ts_metadata$f("design:type", String)
|
|
166
179
|
], UpdateArticleArgs.prototype, "id", void 0);
|
|
167
|
-
UpdateArticleArgs = _ts_decorate$
|
|
180
|
+
UpdateArticleArgs = _ts_decorate$h([
|
|
168
181
|
graphql.ArgsType()
|
|
169
182
|
], UpdateArticleArgs);
|
|
170
183
|
|
|
171
|
-
function _ts_decorate$
|
|
184
|
+
function _ts_decorate$g(decorators, target, key, desc) {
|
|
172
185
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
173
186
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
174
187
|
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;
|
|
175
188
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
176
189
|
}
|
|
177
|
-
function _ts_metadata$
|
|
190
|
+
function _ts_metadata$e(k, v) {
|
|
178
191
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
179
192
|
}
|
|
180
193
|
function _ts_param$3(paramIndex, decorator) {
|
|
@@ -253,43 +266,43 @@ class ArticleMutations {
|
|
|
253
266
|
return this.articleService.withdraw(id);
|
|
254
267
|
}
|
|
255
268
|
}
|
|
256
|
-
_ts_decorate$
|
|
269
|
+
_ts_decorate$g([
|
|
257
270
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
258
271
|
memberBaseNestjsModule.IsPublic(),
|
|
259
272
|
_ts_param$3(0, memberBaseNestjsModule.MemberId()),
|
|
260
273
|
_ts_param$3(1, graphql.Args()),
|
|
261
|
-
_ts_metadata$
|
|
262
|
-
_ts_metadata$
|
|
274
|
+
_ts_metadata$e("design:type", Function),
|
|
275
|
+
_ts_metadata$e("design:paramtypes", [
|
|
263
276
|
String,
|
|
264
277
|
typeof CreateArticleArgs === "undefined" ? Object : CreateArticleArgs
|
|
265
278
|
]),
|
|
266
|
-
_ts_metadata$
|
|
279
|
+
_ts_metadata$e("design:returntype", Promise)
|
|
267
280
|
], ArticleMutations.prototype, "createArticle", null);
|
|
268
|
-
_ts_decorate$
|
|
281
|
+
_ts_decorate$g([
|
|
269
282
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
270
283
|
memberBaseNestjsModule.IsPublic(),
|
|
271
284
|
_ts_param$3(0, memberBaseNestjsModule.MemberId()),
|
|
272
285
|
_ts_param$3(1, graphql.Args()),
|
|
273
|
-
_ts_metadata$
|
|
274
|
-
_ts_metadata$
|
|
286
|
+
_ts_metadata$e("design:type", Function),
|
|
287
|
+
_ts_metadata$e("design:paramtypes", [
|
|
275
288
|
String,
|
|
276
289
|
typeof UpdateArticleArgs === "undefined" ? Object : UpdateArticleArgs
|
|
277
290
|
]),
|
|
278
|
-
_ts_metadata$
|
|
291
|
+
_ts_metadata$e("design:returntype", Promise)
|
|
279
292
|
], ArticleMutations.prototype, "updateArticle", null);
|
|
280
|
-
_ts_decorate$
|
|
293
|
+
_ts_decorate$g([
|
|
281
294
|
graphql.Mutation(()=>Boolean),
|
|
282
295
|
memberBaseNestjsModule.IsPublic(),
|
|
283
296
|
_ts_param$3(0, graphql.Args('id', {
|
|
284
297
|
type: ()=>graphql.ID
|
|
285
298
|
})),
|
|
286
|
-
_ts_metadata$
|
|
287
|
-
_ts_metadata$
|
|
299
|
+
_ts_metadata$e("design:type", Function),
|
|
300
|
+
_ts_metadata$e("design:paramtypes", [
|
|
288
301
|
String
|
|
289
302
|
]),
|
|
290
|
-
_ts_metadata$
|
|
303
|
+
_ts_metadata$e("design:returntype", Promise)
|
|
291
304
|
], ArticleMutations.prototype, "deleteArticle", null);
|
|
292
|
-
_ts_decorate$
|
|
305
|
+
_ts_decorate$g([
|
|
293
306
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
294
307
|
memberBaseNestjsModule.IsPublic(),
|
|
295
308
|
_ts_param$3(0, memberBaseNestjsModule.MemberId()),
|
|
@@ -299,27 +312,27 @@ _ts_decorate$e([
|
|
|
299
312
|
_ts_param$3(2, graphql.Args('version', {
|
|
300
313
|
type: ()=>graphql.Int
|
|
301
314
|
})),
|
|
302
|
-
_ts_metadata$
|
|
303
|
-
_ts_metadata$
|
|
315
|
+
_ts_metadata$e("design:type", Function),
|
|
316
|
+
_ts_metadata$e("design:paramtypes", [
|
|
304
317
|
String,
|
|
305
318
|
String,
|
|
306
319
|
Number
|
|
307
320
|
]),
|
|
308
|
-
_ts_metadata$
|
|
321
|
+
_ts_metadata$e("design:returntype", Promise)
|
|
309
322
|
], ArticleMutations.prototype, "submitArticle", null);
|
|
310
|
-
_ts_decorate$
|
|
323
|
+
_ts_decorate$g([
|
|
311
324
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
312
325
|
memberBaseNestjsModule.IsPublic(),
|
|
313
326
|
_ts_param$3(0, graphql.Args('id', {
|
|
314
327
|
type: ()=>graphql.ID
|
|
315
328
|
})),
|
|
316
|
-
_ts_metadata$
|
|
317
|
-
_ts_metadata$
|
|
329
|
+
_ts_metadata$e("design:type", Function),
|
|
330
|
+
_ts_metadata$e("design:paramtypes", [
|
|
318
331
|
String
|
|
319
332
|
]),
|
|
320
|
-
_ts_metadata$
|
|
333
|
+
_ts_metadata$e("design:returntype", Promise)
|
|
321
334
|
], ArticleMutations.prototype, "approveArticle", null);
|
|
322
|
-
_ts_decorate$
|
|
335
|
+
_ts_decorate$g([
|
|
323
336
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
324
337
|
memberBaseNestjsModule.IsPublic(),
|
|
325
338
|
_ts_param$3(0, graphql.Args('id', {
|
|
@@ -329,14 +342,14 @@ _ts_decorate$e([
|
|
|
329
342
|
type: ()=>String,
|
|
330
343
|
nullable: true
|
|
331
344
|
})),
|
|
332
|
-
_ts_metadata$
|
|
333
|
-
_ts_metadata$
|
|
345
|
+
_ts_metadata$e("design:type", Function),
|
|
346
|
+
_ts_metadata$e("design:paramtypes", [
|
|
334
347
|
String,
|
|
335
348
|
Object
|
|
336
349
|
]),
|
|
337
|
-
_ts_metadata$
|
|
350
|
+
_ts_metadata$e("design:returntype", Promise)
|
|
338
351
|
], ArticleMutations.prototype, "rejectArticle", null);
|
|
339
|
-
_ts_decorate$
|
|
352
|
+
_ts_decorate$g([
|
|
340
353
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
341
354
|
memberBaseNestjsModule.IsPublic(),
|
|
342
355
|
_ts_param$3(0, memberBaseNestjsModule.MemberId()),
|
|
@@ -346,99 +359,99 @@ _ts_decorate$e([
|
|
|
346
359
|
_ts_param$3(2, graphql.Args('releasedAt', {
|
|
347
360
|
type: ()=>Date
|
|
348
361
|
})),
|
|
349
|
-
_ts_metadata$
|
|
350
|
-
_ts_metadata$
|
|
362
|
+
_ts_metadata$e("design:type", Function),
|
|
363
|
+
_ts_metadata$e("design:paramtypes", [
|
|
351
364
|
String,
|
|
352
365
|
String,
|
|
353
366
|
typeof Date === "undefined" ? Object : Date
|
|
354
367
|
]),
|
|
355
|
-
_ts_metadata$
|
|
368
|
+
_ts_metadata$e("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
356
369
|
], ArticleMutations.prototype, "releaseArticle", null);
|
|
357
|
-
_ts_decorate$
|
|
370
|
+
_ts_decorate$g([
|
|
358
371
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
359
372
|
memberBaseNestjsModule.IsPublic(),
|
|
360
373
|
_ts_param$3(0, graphql.Args('id', {
|
|
361
374
|
type: ()=>graphql.ID
|
|
362
375
|
})),
|
|
363
|
-
_ts_metadata$
|
|
364
|
-
_ts_metadata$
|
|
376
|
+
_ts_metadata$e("design:type", Function),
|
|
377
|
+
_ts_metadata$e("design:paramtypes", [
|
|
365
378
|
String
|
|
366
379
|
]),
|
|
367
|
-
_ts_metadata$
|
|
380
|
+
_ts_metadata$e("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
368
381
|
], ArticleMutations.prototype, "withdrawArticle", null);
|
|
369
|
-
ArticleMutations = _ts_decorate$
|
|
382
|
+
ArticleMutations = _ts_decorate$g([
|
|
370
383
|
graphql.Resolver(),
|
|
371
|
-
_ts_metadata$
|
|
372
|
-
_ts_metadata$
|
|
384
|
+
_ts_metadata$e("design:type", Function),
|
|
385
|
+
_ts_metadata$e("design:paramtypes", [
|
|
373
386
|
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService
|
|
374
387
|
])
|
|
375
388
|
], ArticleMutations);
|
|
376
389
|
|
|
377
|
-
function _ts_decorate$
|
|
390
|
+
function _ts_decorate$f(decorators, target, key, desc) {
|
|
378
391
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
379
392
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
380
393
|
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;
|
|
381
394
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
382
395
|
}
|
|
383
|
-
function _ts_metadata$
|
|
396
|
+
function _ts_metadata$d(k, v) {
|
|
397
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
398
|
+
}
|
|
399
|
+
class CategoryMultiLanguageNameInput {
|
|
400
|
+
language;
|
|
401
|
+
name;
|
|
402
|
+
}
|
|
403
|
+
_ts_decorate$f([
|
|
404
|
+
graphql.Field(()=>String, {
|
|
405
|
+
nullable: true
|
|
406
|
+
}),
|
|
407
|
+
_ts_metadata$d("design:type", Object)
|
|
408
|
+
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
409
|
+
_ts_decorate$f([
|
|
410
|
+
graphql.Field(()=>String),
|
|
411
|
+
_ts_metadata$d("design:type", String)
|
|
412
|
+
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
413
|
+
CategoryMultiLanguageNameInput = _ts_decorate$f([
|
|
414
|
+
graphql.InputType('CategoryMultiLanguageNameInput')
|
|
415
|
+
], CategoryMultiLanguageNameInput);
|
|
416
|
+
|
|
417
|
+
function _ts_decorate$e(decorators, target, key, desc) {
|
|
418
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
419
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
420
|
+
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;
|
|
421
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
422
|
+
}
|
|
423
|
+
function _ts_metadata$c(k, v) {
|
|
384
424
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
385
425
|
}
|
|
386
426
|
class CreateCategoryArgs {
|
|
387
427
|
parentIds;
|
|
388
428
|
multiLanguageNames;
|
|
389
429
|
}
|
|
390
|
-
_ts_decorate$
|
|
430
|
+
_ts_decorate$e([
|
|
391
431
|
graphql.Field(()=>[
|
|
392
432
|
graphql.ID
|
|
393
433
|
], {
|
|
394
434
|
nullable: true
|
|
395
435
|
}),
|
|
396
|
-
_ts_metadata$
|
|
436
|
+
_ts_metadata$c("design:type", Object)
|
|
397
437
|
], CreateCategoryArgs.prototype, "parentIds", void 0);
|
|
398
|
-
_ts_decorate$
|
|
438
|
+
_ts_decorate$e([
|
|
399
439
|
graphql.Field(()=>[
|
|
400
440
|
CategoryMultiLanguageNameInput
|
|
401
441
|
]),
|
|
402
|
-
_ts_metadata$
|
|
442
|
+
_ts_metadata$c("design:type", Array)
|
|
403
443
|
], CreateCategoryArgs.prototype, "multiLanguageNames", void 0);
|
|
404
|
-
CreateCategoryArgs = _ts_decorate$
|
|
444
|
+
CreateCategoryArgs = _ts_decorate$e([
|
|
405
445
|
graphql.ArgsType()
|
|
406
446
|
], CreateCategoryArgs);
|
|
407
|
-
class CategoryMultiLanguageNameInput {
|
|
408
|
-
language;
|
|
409
|
-
name;
|
|
410
|
-
}
|
|
411
|
-
_ts_decorate$d([
|
|
412
|
-
graphql.Field(()=>String, {
|
|
413
|
-
nullable: true
|
|
414
|
-
}),
|
|
415
|
-
_ts_metadata$b("design:type", Object)
|
|
416
|
-
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
417
|
-
_ts_decorate$d([
|
|
418
|
-
graphql.Field(()=>String),
|
|
419
|
-
_ts_metadata$b("design:type", String)
|
|
420
|
-
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
421
|
-
CategoryMultiLanguageNameInput = _ts_decorate$d([
|
|
422
|
-
graphql.InputType()
|
|
423
|
-
], CategoryMultiLanguageNameInput);
|
|
424
|
-
class UpdateCategoryArgs extends CreateCategoryArgs {
|
|
425
|
-
id;
|
|
426
|
-
}
|
|
427
|
-
_ts_decorate$d([
|
|
428
|
-
graphql.Field(()=>graphql.ID),
|
|
429
|
-
_ts_metadata$b("design:type", String)
|
|
430
|
-
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
431
|
-
UpdateCategoryArgs = _ts_decorate$d([
|
|
432
|
-
graphql.ArgsType()
|
|
433
|
-
], UpdateCategoryArgs);
|
|
434
447
|
|
|
435
|
-
function _ts_decorate$
|
|
448
|
+
function _ts_decorate$d(decorators, target, key, desc) {
|
|
436
449
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
437
450
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
438
451
|
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;
|
|
439
452
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
440
453
|
}
|
|
441
|
-
function _ts_metadata$
|
|
454
|
+
function _ts_metadata$b(k, v) {
|
|
442
455
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
443
456
|
}
|
|
444
457
|
class BaseCategoryDto {
|
|
@@ -446,20 +459,23 @@ class BaseCategoryDto {
|
|
|
446
459
|
createdAt;
|
|
447
460
|
updatedAt;
|
|
448
461
|
}
|
|
449
|
-
_ts_decorate$
|
|
462
|
+
_ts_decorate$d([
|
|
450
463
|
graphql.Field(()=>graphql.ID),
|
|
451
|
-
_ts_metadata$
|
|
464
|
+
_ts_metadata$b("design:type", String)
|
|
452
465
|
], BaseCategoryDto.prototype, "id", void 0);
|
|
453
|
-
_ts_decorate$
|
|
466
|
+
_ts_decorate$d([
|
|
454
467
|
graphql.Field(()=>Date),
|
|
455
|
-
_ts_metadata$
|
|
468
|
+
_ts_metadata$b("design:type", typeof Date === "undefined" ? Object : Date)
|
|
456
469
|
], BaseCategoryDto.prototype, "createdAt", void 0);
|
|
457
|
-
_ts_decorate$
|
|
470
|
+
_ts_decorate$d([
|
|
458
471
|
graphql.Field(()=>Date),
|
|
459
|
-
_ts_metadata$
|
|
472
|
+
_ts_metadata$b("design:type", typeof Date === "undefined" ? Object : Date)
|
|
460
473
|
], BaseCategoryDto.prototype, "updatedAt", void 0);
|
|
474
|
+
BaseCategoryDto = _ts_decorate$d([
|
|
475
|
+
graphql.ObjectType('BaseCategory')
|
|
476
|
+
], BaseCategoryDto);
|
|
461
477
|
|
|
462
|
-
function _ts_decorate$
|
|
478
|
+
function _ts_decorate$c(decorators, target, key, desc) {
|
|
463
479
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
464
480
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
465
481
|
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;
|
|
@@ -467,14 +483,30 @@ function _ts_decorate$b(decorators, target, key, desc) {
|
|
|
467
483
|
}
|
|
468
484
|
class CategoryBackstageDto extends BaseCategoryDto {
|
|
469
485
|
}
|
|
470
|
-
CategoryBackstageDto = _ts_decorate$
|
|
471
|
-
graphql.ObjectType('CategoryBackstage'
|
|
472
|
-
implements: ()=>[
|
|
473
|
-
BaseCategoryDto
|
|
474
|
-
]
|
|
475
|
-
})
|
|
486
|
+
CategoryBackstageDto = _ts_decorate$c([
|
|
487
|
+
graphql.ObjectType('CategoryBackstage')
|
|
476
488
|
], CategoryBackstageDto);
|
|
477
489
|
|
|
490
|
+
function _ts_decorate$b(decorators, target, key, desc) {
|
|
491
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
492
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
493
|
+
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;
|
|
494
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
495
|
+
}
|
|
496
|
+
function _ts_metadata$a(k, v) {
|
|
497
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
498
|
+
}
|
|
499
|
+
class UpdateCategoryArgs extends CreateCategoryArgs {
|
|
500
|
+
id;
|
|
501
|
+
}
|
|
502
|
+
_ts_decorate$b([
|
|
503
|
+
graphql.Field(()=>graphql.ID),
|
|
504
|
+
_ts_metadata$a("design:type", String)
|
|
505
|
+
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
506
|
+
UpdateCategoryArgs = _ts_decorate$b([
|
|
507
|
+
graphql.ArgsType()
|
|
508
|
+
], UpdateCategoryArgs);
|
|
509
|
+
|
|
478
510
|
function _ts_decorate$a(decorators, target, key, desc) {
|
|
479
511
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
480
512
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CategoryBaseService } from '@rytass/cms-base-nestjs-module';
|
|
2
|
-
import { CreateCategoryArgs
|
|
2
|
+
import { CreateCategoryArgs } from '../dto/create-category.args';
|
|
3
3
|
import { CategoryBackstageDto } from '../dto/category-backstage.dto';
|
|
4
|
+
import { UpdateCategoryArgs } from '../dto/update-category.args';
|
|
4
5
|
export declare class CategoryMutations {
|
|
5
6
|
private readonly categoryService;
|
|
6
7
|
constructor(categoryService: CategoryBaseService);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Mutation, Args, ID, Resolver } from '@nestjs/graphql';
|
|
2
2
|
import { CategoryBaseService } from '@rytass/cms-base-nestjs-module';
|
|
3
|
-
import { CreateCategoryArgs
|
|
3
|
+
import { CreateCategoryArgs } from '../dto/create-category.args.js';
|
|
4
4
|
import { IsPublic } from '@rytass/member-base-nestjs-module';
|
|
5
5
|
import { CategoryBackstageDto } from '../dto/category-backstage.dto.js';
|
|
6
|
+
import { UpdateCategoryArgs } from '../dto/update-category.args.js';
|
|
6
7
|
|
|
7
8
|
function _ts_decorate(decorators, target, key, desc) {
|
|
8
9
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|