@rytass/cms-base-nestjs-graphql-module 0.0.2 → 0.0.3
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-collection.dto.js +5 -1
- package/dto/articles.args.js +59 -0
- package/dto/base-article.dto.js +9 -3
- package/dto/base-category.dto.js +5 -1
- package/dto/categories.args.js +43 -0
- package/dto/collection.dto.js +9 -3
- package/dto/create-article.args.js +89 -0
- package/dto/create-category.args.js +61 -0
- package/dto/update-article.args.js +24 -0
- package/index.cjs.js +486 -70
- package/mutations/article.mutations.js +66 -10
- package/mutations/category.mutations.js +28 -4
- package/package.json +3 -3
- package/queries/article.queries.js +23 -4
- package/queries/category.queries.js +22 -3
- package/resolvers/article-backstage.resolver.d.ts +1 -1
- package/resolvers/article-backstage.resolver.js +15 -2
- package/resolvers/article.resolver.d.ts +1 -1
- package/resolvers/article.resolver.js +15 -2
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { DEFAULT_LANGUAGE } from '@rytass/cms-base-nestjs-module';
|
|
1
|
+
import { ArticleBaseService, DEFAULT_LANGUAGE } from '@rytass/cms-base-nestjs-module';
|
|
2
2
|
import { Mutation, Args, ID, Int, Resolver } from '@nestjs/graphql';
|
|
3
3
|
import { ArticleBackstageDto } from '../dto/article-backstage.dto.js';
|
|
4
|
+
import { CreateArticleArgs } from '../dto/create-article.args.js';
|
|
4
5
|
import { IsPublic, MemberId } from '@rytass/member-base-nestjs-module';
|
|
6
|
+
import { UpdateArticleArgs } from '../dto/update-article.args.js';
|
|
5
7
|
|
|
6
8
|
function _ts_decorate(decorators, target, key, desc) {
|
|
7
9
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -9,6 +11,9 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
9
11
|
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;
|
|
10
12
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
13
|
}
|
|
14
|
+
function _ts_metadata(k, v) {
|
|
15
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
16
|
+
}
|
|
12
17
|
function _ts_param(paramIndex, decorator) {
|
|
13
18
|
return function(target, key) {
|
|
14
19
|
decorator(target, key, paramIndex);
|
|
@@ -89,20 +94,37 @@ _ts_decorate([
|
|
|
89
94
|
Mutation(()=>ArticleBackstageDto),
|
|
90
95
|
IsPublic(),
|
|
91
96
|
_ts_param(0, MemberId()),
|
|
92
|
-
_ts_param(1, Args())
|
|
97
|
+
_ts_param(1, Args()),
|
|
98
|
+
_ts_metadata("design:type", Function),
|
|
99
|
+
_ts_metadata("design:paramtypes", [
|
|
100
|
+
String,
|
|
101
|
+
typeof CreateArticleArgs === "undefined" ? Object : CreateArticleArgs
|
|
102
|
+
]),
|
|
103
|
+
_ts_metadata("design:returntype", Promise)
|
|
93
104
|
], ArticleMutations.prototype, "createArticle", null);
|
|
94
105
|
_ts_decorate([
|
|
95
106
|
Mutation(()=>ArticleBackstageDto),
|
|
96
107
|
IsPublic(),
|
|
97
108
|
_ts_param(0, MemberId()),
|
|
98
|
-
_ts_param(1, Args())
|
|
109
|
+
_ts_param(1, Args()),
|
|
110
|
+
_ts_metadata("design:type", Function),
|
|
111
|
+
_ts_metadata("design:paramtypes", [
|
|
112
|
+
String,
|
|
113
|
+
typeof UpdateArticleArgs === "undefined" ? Object : UpdateArticleArgs
|
|
114
|
+
]),
|
|
115
|
+
_ts_metadata("design:returntype", Promise)
|
|
99
116
|
], ArticleMutations.prototype, "updateArticle", null);
|
|
100
117
|
_ts_decorate([
|
|
101
118
|
Mutation(()=>Boolean),
|
|
102
119
|
IsPublic(),
|
|
103
120
|
_ts_param(0, Args('id', {
|
|
104
121
|
type: ()=>ID
|
|
105
|
-
}))
|
|
122
|
+
})),
|
|
123
|
+
_ts_metadata("design:type", Function),
|
|
124
|
+
_ts_metadata("design:paramtypes", [
|
|
125
|
+
String
|
|
126
|
+
]),
|
|
127
|
+
_ts_metadata("design:returntype", Promise)
|
|
106
128
|
], ArticleMutations.prototype, "deleteArticle", null);
|
|
107
129
|
_ts_decorate([
|
|
108
130
|
Mutation(()=>ArticleBackstageDto),
|
|
@@ -113,14 +135,26 @@ _ts_decorate([
|
|
|
113
135
|
})),
|
|
114
136
|
_ts_param(2, Args('version', {
|
|
115
137
|
type: ()=>Int
|
|
116
|
-
}))
|
|
138
|
+
})),
|
|
139
|
+
_ts_metadata("design:type", Function),
|
|
140
|
+
_ts_metadata("design:paramtypes", [
|
|
141
|
+
String,
|
|
142
|
+
String,
|
|
143
|
+
Number
|
|
144
|
+
]),
|
|
145
|
+
_ts_metadata("design:returntype", Promise)
|
|
117
146
|
], ArticleMutations.prototype, "submitArticle", null);
|
|
118
147
|
_ts_decorate([
|
|
119
148
|
Mutation(()=>ArticleBackstageDto),
|
|
120
149
|
IsPublic(),
|
|
121
150
|
_ts_param(0, Args('id', {
|
|
122
151
|
type: ()=>ID
|
|
123
|
-
}))
|
|
152
|
+
})),
|
|
153
|
+
_ts_metadata("design:type", Function),
|
|
154
|
+
_ts_metadata("design:paramtypes", [
|
|
155
|
+
String
|
|
156
|
+
]),
|
|
157
|
+
_ts_metadata("design:returntype", Promise)
|
|
124
158
|
], ArticleMutations.prototype, "approveArticle", null);
|
|
125
159
|
_ts_decorate([
|
|
126
160
|
Mutation(()=>ArticleBackstageDto),
|
|
@@ -131,7 +165,13 @@ _ts_decorate([
|
|
|
131
165
|
_ts_param(1, Args('reason', {
|
|
132
166
|
type: ()=>String,
|
|
133
167
|
nullable: true
|
|
134
|
-
}))
|
|
168
|
+
})),
|
|
169
|
+
_ts_metadata("design:type", Function),
|
|
170
|
+
_ts_metadata("design:paramtypes", [
|
|
171
|
+
String,
|
|
172
|
+
Object
|
|
173
|
+
]),
|
|
174
|
+
_ts_metadata("design:returntype", Promise)
|
|
135
175
|
], ArticleMutations.prototype, "rejectArticle", null);
|
|
136
176
|
_ts_decorate([
|
|
137
177
|
Mutation(()=>ArticleBackstageDto),
|
|
@@ -142,17 +182,33 @@ _ts_decorate([
|
|
|
142
182
|
})),
|
|
143
183
|
_ts_param(2, Args('releasedAt', {
|
|
144
184
|
type: ()=>Date
|
|
145
|
-
}))
|
|
185
|
+
})),
|
|
186
|
+
_ts_metadata("design:type", Function),
|
|
187
|
+
_ts_metadata("design:paramtypes", [
|
|
188
|
+
String,
|
|
189
|
+
String,
|
|
190
|
+
typeof Date === "undefined" ? Object : Date
|
|
191
|
+
]),
|
|
192
|
+
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
146
193
|
], ArticleMutations.prototype, "releaseArticle", null);
|
|
147
194
|
_ts_decorate([
|
|
148
195
|
Mutation(()=>ArticleBackstageDto),
|
|
149
196
|
IsPublic(),
|
|
150
197
|
_ts_param(0, Args('id', {
|
|
151
198
|
type: ()=>ID
|
|
152
|
-
}))
|
|
199
|
+
})),
|
|
200
|
+
_ts_metadata("design:type", Function),
|
|
201
|
+
_ts_metadata("design:paramtypes", [
|
|
202
|
+
String
|
|
203
|
+
]),
|
|
204
|
+
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
153
205
|
], ArticleMutations.prototype, "withdrawArticle", null);
|
|
154
206
|
ArticleMutations = _ts_decorate([
|
|
155
|
-
Resolver()
|
|
207
|
+
Resolver(),
|
|
208
|
+
_ts_metadata("design:type", Function),
|
|
209
|
+
_ts_metadata("design:paramtypes", [
|
|
210
|
+
typeof ArticleBaseService === "undefined" ? Object : ArticleBaseService
|
|
211
|
+
])
|
|
156
212
|
], ArticleMutations);
|
|
157
213
|
|
|
158
214
|
export { ArticleMutations };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Mutation, Args, ID, Resolver } from '@nestjs/graphql';
|
|
2
|
+
import { CategoryBaseService } from '@rytass/cms-base-nestjs-module';
|
|
3
|
+
import { CreateCategoryArgs, UpdateCategoryArgs } from '../dto/create-category.args.js';
|
|
2
4
|
import { IsPublic } from '@rytass/member-base-nestjs-module';
|
|
3
5
|
import { CategoryBackstageDto } from '../dto/category-backstage.dto.js';
|
|
4
6
|
|
|
@@ -8,6 +10,9 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
8
10
|
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;
|
|
9
11
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
12
|
}
|
|
13
|
+
function _ts_metadata(k, v) {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
15
|
+
}
|
|
11
16
|
function _ts_param(paramIndex, decorator) {
|
|
12
17
|
return function(target, key) {
|
|
13
18
|
decorator(target, key, paramIndex);
|
|
@@ -44,22 +49,41 @@ class CategoryMutations {
|
|
|
44
49
|
_ts_decorate([
|
|
45
50
|
Mutation(()=>CategoryBackstageDto),
|
|
46
51
|
IsPublic(),
|
|
47
|
-
_ts_param(0, Args())
|
|
52
|
+
_ts_param(0, Args()),
|
|
53
|
+
_ts_metadata("design:type", Function),
|
|
54
|
+
_ts_metadata("design:paramtypes", [
|
|
55
|
+
typeof CreateCategoryArgs === "undefined" ? Object : CreateCategoryArgs
|
|
56
|
+
]),
|
|
57
|
+
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
48
58
|
], CategoryMutations.prototype, "createCategory", null);
|
|
49
59
|
_ts_decorate([
|
|
50
60
|
Mutation(()=>CategoryBackstageDto),
|
|
51
61
|
IsPublic(),
|
|
52
|
-
_ts_param(0, Args())
|
|
62
|
+
_ts_param(0, Args()),
|
|
63
|
+
_ts_metadata("design:type", Function),
|
|
64
|
+
_ts_metadata("design:paramtypes", [
|
|
65
|
+
typeof UpdateCategoryArgs === "undefined" ? Object : UpdateCategoryArgs
|
|
66
|
+
]),
|
|
67
|
+
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
53
68
|
], CategoryMutations.prototype, "updateCategory", null);
|
|
54
69
|
_ts_decorate([
|
|
55
70
|
Mutation(()=>Boolean),
|
|
56
71
|
IsPublic(),
|
|
57
72
|
_ts_param(0, Args('id', {
|
|
58
73
|
type: ()=>ID
|
|
59
|
-
}))
|
|
74
|
+
})),
|
|
75
|
+
_ts_metadata("design:type", Function),
|
|
76
|
+
_ts_metadata("design:paramtypes", [
|
|
77
|
+
String
|
|
78
|
+
]),
|
|
79
|
+
_ts_metadata("design:returntype", Promise)
|
|
60
80
|
], CategoryMutations.prototype, "deleteCategory", null);
|
|
61
81
|
CategoryMutations = _ts_decorate([
|
|
62
|
-
Resolver()
|
|
82
|
+
Resolver(),
|
|
83
|
+
_ts_metadata("design:type", Function),
|
|
84
|
+
_ts_metadata("design:paramtypes", [
|
|
85
|
+
typeof CategoryBaseService === "undefined" ? Object : CategoryBaseService
|
|
86
|
+
])
|
|
63
87
|
], CategoryMutations);
|
|
64
88
|
|
|
65
89
|
export { CategoryMutations };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rytass/cms-base-nestjs-graphql-module",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Rytass Content Management System NestJS Base GraphQL Module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rytass",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"typeorm": "*"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@rytass/cms-base-nestjs-module": "^0.1.
|
|
30
|
-
"@rytass/member-base-nestjs-module": "^0.1.
|
|
29
|
+
"@rytass/cms-base-nestjs-module": "^0.1.83",
|
|
30
|
+
"@rytass/member-base-nestjs-module": "^0.1.64",
|
|
31
31
|
"dataloader": "^2.2.2",
|
|
32
32
|
"lru-cache": "^11.0.2"
|
|
33
33
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Query, Args, ID, Resolver } from '@nestjs/graphql';
|
|
2
|
-
import { DEFAULT_LANGUAGE } from '@rytass/cms-base-nestjs-module';
|
|
2
|
+
import { ArticleBaseService, DEFAULT_LANGUAGE } from '@rytass/cms-base-nestjs-module';
|
|
3
|
+
import { ArticlesArgs } from '../dto/articles.args.js';
|
|
3
4
|
import { IsPublic } from '@rytass/member-base-nestjs-module';
|
|
4
5
|
import { Language } from '../decorators/language.decorator.js';
|
|
5
6
|
import { ArticleCollectionDto } from '../dto/article-collection.dto.js';
|
|
@@ -11,6 +12,9 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
11
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;
|
|
12
13
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13
14
|
}
|
|
15
|
+
function _ts_metadata(k, v) {
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17
|
+
}
|
|
14
18
|
function _ts_param(paramIndex, decorator) {
|
|
15
19
|
return function(target, key) {
|
|
16
20
|
decorator(target, key, paramIndex);
|
|
@@ -36,15 +40,30 @@ _ts_decorate([
|
|
|
36
40
|
_ts_param(0, Args('id', {
|
|
37
41
|
type: ()=>ID
|
|
38
42
|
})),
|
|
39
|
-
_ts_param(1, Language())
|
|
43
|
+
_ts_param(1, Language()),
|
|
44
|
+
_ts_metadata("design:type", Function),
|
|
45
|
+
_ts_metadata("design:paramtypes", [
|
|
46
|
+
String,
|
|
47
|
+
String
|
|
48
|
+
]),
|
|
49
|
+
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
40
50
|
], ArticleQueries.prototype, "article", null);
|
|
41
51
|
_ts_decorate([
|
|
42
52
|
Query(()=>ArticleCollectionDto),
|
|
43
53
|
IsPublic(),
|
|
44
|
-
_ts_param(0, Args())
|
|
54
|
+
_ts_param(0, Args()),
|
|
55
|
+
_ts_metadata("design:type", Function),
|
|
56
|
+
_ts_metadata("design:paramtypes", [
|
|
57
|
+
typeof ArticlesArgs === "undefined" ? Object : ArticlesArgs
|
|
58
|
+
]),
|
|
59
|
+
_ts_metadata("design:returntype", Promise)
|
|
45
60
|
], ArticleQueries.prototype, "articles", null);
|
|
46
61
|
ArticleQueries = _ts_decorate([
|
|
47
|
-
Resolver()
|
|
62
|
+
Resolver(),
|
|
63
|
+
_ts_metadata("design:type", Function),
|
|
64
|
+
_ts_metadata("design:paramtypes", [
|
|
65
|
+
typeof ArticleBaseService === "undefined" ? Object : ArticleBaseService
|
|
66
|
+
])
|
|
48
67
|
], ArticleQueries);
|
|
49
68
|
|
|
50
69
|
export { ArticleQueries };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Query, Args, ID, Resolver } from '@nestjs/graphql';
|
|
2
|
+
import { CategoryBaseService } from '@rytass/cms-base-nestjs-module';
|
|
3
|
+
import { CategoriesArgs } from '../dto/categories.args.js';
|
|
2
4
|
import { IsPublic } from '@rytass/member-base-nestjs-module';
|
|
3
5
|
import { BaseCategoryDto } from '../dto/base-category.dto.js';
|
|
4
6
|
|
|
@@ -8,6 +10,9 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
8
10
|
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;
|
|
9
11
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
12
|
}
|
|
13
|
+
function _ts_metadata(k, v) {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
15
|
+
}
|
|
11
16
|
function _ts_param(paramIndex, decorator) {
|
|
12
17
|
return function(target, key) {
|
|
13
18
|
decorator(target, key, paramIndex);
|
|
@@ -30,17 +35,31 @@ _ts_decorate([
|
|
|
30
35
|
IsPublic(),
|
|
31
36
|
_ts_param(0, Args('id', {
|
|
32
37
|
type: ()=>ID
|
|
33
|
-
}))
|
|
38
|
+
})),
|
|
39
|
+
_ts_metadata("design:type", Function),
|
|
40
|
+
_ts_metadata("design:paramtypes", [
|
|
41
|
+
String
|
|
42
|
+
]),
|
|
43
|
+
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
34
44
|
], CategoryQueries.prototype, "category", null);
|
|
35
45
|
_ts_decorate([
|
|
36
46
|
Query(()=>[
|
|
37
47
|
BaseCategoryDto
|
|
38
48
|
]),
|
|
39
49
|
IsPublic(),
|
|
40
|
-
_ts_param(0, Args())
|
|
50
|
+
_ts_param(0, Args()),
|
|
51
|
+
_ts_metadata("design:type", Function),
|
|
52
|
+
_ts_metadata("design:paramtypes", [
|
|
53
|
+
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs
|
|
54
|
+
]),
|
|
55
|
+
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
41
56
|
], CategoryQueries.prototype, "categories", null);
|
|
42
57
|
CategoryQueries = _ts_decorate([
|
|
43
|
-
Resolver()
|
|
58
|
+
Resolver(),
|
|
59
|
+
_ts_metadata("design:type", Function),
|
|
60
|
+
_ts_metadata("design:paramtypes", [
|
|
61
|
+
typeof CategoryBaseService === "undefined" ? Object : CategoryBaseService
|
|
62
|
+
])
|
|
44
63
|
], CategoryQueries);
|
|
45
64
|
|
|
46
65
|
export { CategoryQueries };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SingleArticleBaseDto } from '@rytass/cms-base-nestjs-module';
|
|
1
|
+
import type { SingleArticleBaseDto } from '@rytass/cms-base-nestjs-module';
|
|
2
2
|
export declare class ArticleBackstageResolver {
|
|
3
3
|
version(article: SingleArticleBaseDto): number;
|
|
4
4
|
deletedAt(article: SingleArticleBaseDto): Date | null;
|
|
@@ -8,6 +8,9 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
8
8
|
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;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
}
|
|
11
|
+
function _ts_metadata(k, v) {
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
13
|
+
}
|
|
11
14
|
function _ts_param(paramIndex, decorator) {
|
|
12
15
|
return function(target, key) {
|
|
13
16
|
decorator(target, key, paramIndex);
|
|
@@ -24,14 +27,24 @@ class ArticleBackstageResolver {
|
|
|
24
27
|
_ts_decorate([
|
|
25
28
|
ResolveField(()=>Int),
|
|
26
29
|
IsPublic(),
|
|
27
|
-
_ts_param(0, Root())
|
|
30
|
+
_ts_param(0, Root()),
|
|
31
|
+
_ts_metadata("design:type", Function),
|
|
32
|
+
_ts_metadata("design:paramtypes", [
|
|
33
|
+
typeof SingleArticleBaseDto === "undefined" ? Object : SingleArticleBaseDto
|
|
34
|
+
]),
|
|
35
|
+
_ts_metadata("design:returntype", Number)
|
|
28
36
|
], ArticleBackstageResolver.prototype, "version", null);
|
|
29
37
|
_ts_decorate([
|
|
30
38
|
ResolveField(()=>Date, {
|
|
31
39
|
nullable: true
|
|
32
40
|
}),
|
|
33
41
|
IsPublic(),
|
|
34
|
-
_ts_param(0, Root())
|
|
42
|
+
_ts_param(0, Root()),
|
|
43
|
+
_ts_metadata("design:type", Function),
|
|
44
|
+
_ts_metadata("design:paramtypes", [
|
|
45
|
+
typeof SingleArticleBaseDto === "undefined" ? Object : SingleArticleBaseDto
|
|
46
|
+
]),
|
|
47
|
+
_ts_metadata("design:returntype", Object)
|
|
35
48
|
], ArticleBackstageResolver.prototype, "deletedAt", null);
|
|
36
49
|
ArticleBackstageResolver = _ts_decorate([
|
|
37
50
|
Resolver(()=>ArticleBackstageDto)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SingleArticleBaseDto } from '@rytass/cms-base-nestjs-module';
|
|
1
|
+
import type { SingleArticleBaseDto } from '@rytass/cms-base-nestjs-module';
|
|
2
2
|
import { QuadratsElement } from '@quadrats/core';
|
|
3
3
|
export declare class ArticleResolver {
|
|
4
4
|
title(article: SingleArticleBaseDto): string;
|
|
@@ -9,6 +9,9 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
9
9
|
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;
|
|
10
10
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
11
|
}
|
|
12
|
+
function _ts_metadata(k, v) {
|
|
13
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
14
|
+
}
|
|
12
15
|
function _ts_param(paramIndex, decorator) {
|
|
13
16
|
return function(target, key) {
|
|
14
17
|
decorator(target, key, paramIndex);
|
|
@@ -25,12 +28,22 @@ class ArticleResolver {
|
|
|
25
28
|
_ts_decorate([
|
|
26
29
|
ResolveField(()=>String),
|
|
27
30
|
IsPublic(),
|
|
28
|
-
_ts_param(0, Root())
|
|
31
|
+
_ts_param(0, Root()),
|
|
32
|
+
_ts_metadata("design:type", Function),
|
|
33
|
+
_ts_metadata("design:paramtypes", [
|
|
34
|
+
typeof SingleArticleBaseDto === "undefined" ? Object : SingleArticleBaseDto
|
|
35
|
+
]),
|
|
36
|
+
_ts_metadata("design:returntype", String)
|
|
29
37
|
], ArticleResolver.prototype, "title", null);
|
|
30
38
|
_ts_decorate([
|
|
31
39
|
ResolveField(()=>QuadratsContentScalar),
|
|
32
40
|
IsPublic(),
|
|
33
|
-
_ts_param(0, Root())
|
|
41
|
+
_ts_param(0, Root()),
|
|
42
|
+
_ts_metadata("design:type", Function),
|
|
43
|
+
_ts_metadata("design:paramtypes", [
|
|
44
|
+
typeof SingleArticleBaseDto === "undefined" ? Object : SingleArticleBaseDto
|
|
45
|
+
]),
|
|
46
|
+
_ts_metadata("design:returntype", Array)
|
|
34
47
|
], ArticleResolver.prototype, "content", null);
|
|
35
48
|
ArticleResolver = _ts_decorate([
|
|
36
49
|
Resolver(()=>ArticleDto)
|