@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
package/index.cjs.js
CHANGED
|
@@ -6,33 +6,39 @@ 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$i(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$e(k, v) {
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
17
|
+
}
|
|
15
18
|
class BaseArticleDto {
|
|
16
19
|
id;
|
|
17
20
|
tags;
|
|
18
21
|
createdAt;
|
|
19
22
|
}
|
|
20
|
-
_ts_decorate$
|
|
21
|
-
graphql.Field(()=>graphql.ID)
|
|
23
|
+
_ts_decorate$i([
|
|
24
|
+
graphql.Field(()=>graphql.ID),
|
|
25
|
+
_ts_metadata$e("design:type", String)
|
|
22
26
|
], BaseArticleDto.prototype, "id", void 0);
|
|
23
|
-
_ts_decorate$
|
|
27
|
+
_ts_decorate$i([
|
|
24
28
|
graphql.Field(()=>[
|
|
25
29
|
String
|
|
26
|
-
])
|
|
30
|
+
]),
|
|
31
|
+
_ts_metadata$e("design:type", Array)
|
|
27
32
|
], BaseArticleDto.prototype, "tags", void 0);
|
|
28
|
-
_ts_decorate$
|
|
29
|
-
graphql.Field(()=>Date)
|
|
33
|
+
_ts_decorate$i([
|
|
34
|
+
graphql.Field(()=>Date),
|
|
35
|
+
_ts_metadata$e("design:type", typeof Date === "undefined" ? Object : Date)
|
|
30
36
|
], BaseArticleDto.prototype, "createdAt", void 0);
|
|
31
|
-
BaseArticleDto = _ts_decorate$
|
|
37
|
+
BaseArticleDto = _ts_decorate$i([
|
|
32
38
|
graphql.InterfaceType('BaseArticle')
|
|
33
39
|
], BaseArticleDto);
|
|
34
40
|
|
|
35
|
-
function _ts_decorate$
|
|
41
|
+
function _ts_decorate$h(decorators, target, key, desc) {
|
|
36
42
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
37
43
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
38
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;
|
|
@@ -40,7 +46,7 @@ function _ts_decorate$c(decorators, target, key, desc) {
|
|
|
40
46
|
}
|
|
41
47
|
class ArticleBackstageDto extends BaseArticleDto {
|
|
42
48
|
}
|
|
43
|
-
ArticleBackstageDto = _ts_decorate$
|
|
49
|
+
ArticleBackstageDto = _ts_decorate$h([
|
|
44
50
|
graphql.ObjectType('ArticleBackstage', {
|
|
45
51
|
implements: [
|
|
46
52
|
BaseArticleDto
|
|
@@ -48,12 +54,121 @@ ArticleBackstageDto = _ts_decorate$c([
|
|
|
48
54
|
})
|
|
49
55
|
], ArticleBackstageDto);
|
|
50
56
|
|
|
51
|
-
function _ts_decorate$
|
|
57
|
+
function _ts_decorate$g(decorators, target, key, desc) {
|
|
58
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
59
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
60
|
+
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;
|
|
61
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
62
|
+
}
|
|
63
|
+
function _ts_metadata$d(k, v) {
|
|
64
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
65
|
+
}
|
|
66
|
+
class CreateArticleArgs {
|
|
67
|
+
categoryIds;
|
|
68
|
+
tags;
|
|
69
|
+
multiLanguageContents;
|
|
70
|
+
releasedAt;
|
|
71
|
+
submitted;
|
|
72
|
+
signatureLevel;
|
|
73
|
+
}
|
|
74
|
+
_ts_decorate$g([
|
|
75
|
+
graphql.Field(()=>[
|
|
76
|
+
graphql.ID
|
|
77
|
+
]),
|
|
78
|
+
_ts_metadata$d("design:type", Array)
|
|
79
|
+
], CreateArticleArgs.prototype, "categoryIds", void 0);
|
|
80
|
+
_ts_decorate$g([
|
|
81
|
+
graphql.Field(()=>[
|
|
82
|
+
String
|
|
83
|
+
]),
|
|
84
|
+
_ts_metadata$d("design:type", Array)
|
|
85
|
+
], CreateArticleArgs.prototype, "tags", void 0);
|
|
86
|
+
_ts_decorate$g([
|
|
87
|
+
graphql.Field(()=>[
|
|
88
|
+
ArticleVersionContentInput
|
|
89
|
+
]),
|
|
90
|
+
_ts_metadata$d("design:type", Array)
|
|
91
|
+
], CreateArticleArgs.prototype, "multiLanguageContents", void 0);
|
|
92
|
+
_ts_decorate$g([
|
|
93
|
+
graphql.Field(()=>Date, {
|
|
94
|
+
nullable: true
|
|
95
|
+
}),
|
|
96
|
+
_ts_metadata$d("design:type", Object)
|
|
97
|
+
], CreateArticleArgs.prototype, "releasedAt", void 0);
|
|
98
|
+
_ts_decorate$g([
|
|
99
|
+
graphql.Field(()=>Boolean, {
|
|
100
|
+
nullable: true
|
|
101
|
+
}),
|
|
102
|
+
_ts_metadata$d("design:type", Object)
|
|
103
|
+
], CreateArticleArgs.prototype, "submitted", void 0);
|
|
104
|
+
_ts_decorate$g([
|
|
105
|
+
graphql.Field(()=>String, {
|
|
106
|
+
nullable: true
|
|
107
|
+
}),
|
|
108
|
+
_ts_metadata$d("design:type", Object)
|
|
109
|
+
], CreateArticleArgs.prototype, "signatureLevel", void 0);
|
|
110
|
+
CreateArticleArgs = _ts_decorate$g([
|
|
111
|
+
graphql.ArgsType()
|
|
112
|
+
], CreateArticleArgs);
|
|
113
|
+
class ArticleVersionContentInput {
|
|
114
|
+
language;
|
|
115
|
+
title;
|
|
116
|
+
description;
|
|
117
|
+
content;
|
|
118
|
+
}
|
|
119
|
+
_ts_decorate$g([
|
|
120
|
+
graphql.Field(()=>String, {
|
|
121
|
+
nullable: true
|
|
122
|
+
}),
|
|
123
|
+
_ts_metadata$d("design:type", Object)
|
|
124
|
+
], ArticleVersionContentInput.prototype, "language", void 0);
|
|
125
|
+
_ts_decorate$g([
|
|
126
|
+
graphql.Field(()=>String),
|
|
127
|
+
_ts_metadata$d("design:type", String)
|
|
128
|
+
], ArticleVersionContentInput.prototype, "title", void 0);
|
|
129
|
+
_ts_decorate$g([
|
|
130
|
+
graphql.Field(()=>String, {
|
|
131
|
+
nullable: true
|
|
132
|
+
}),
|
|
133
|
+
_ts_metadata$d("design:type", Object)
|
|
134
|
+
], ArticleVersionContentInput.prototype, "description", void 0);
|
|
135
|
+
_ts_decorate$g([
|
|
136
|
+
graphql.Field(()=>String),
|
|
137
|
+
_ts_metadata$d("design:type", String)
|
|
138
|
+
], ArticleVersionContentInput.prototype, "content", void 0);
|
|
139
|
+
ArticleVersionContentInput = _ts_decorate$g([
|
|
140
|
+
graphql.InputType()
|
|
141
|
+
], ArticleVersionContentInput);
|
|
142
|
+
|
|
143
|
+
function _ts_decorate$f(decorators, target, key, desc) {
|
|
144
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
145
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
146
|
+
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;
|
|
147
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
148
|
+
}
|
|
149
|
+
function _ts_metadata$c(k, v) {
|
|
150
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
151
|
+
}
|
|
152
|
+
class UpdateArticleArgs extends CreateArticleArgs {
|
|
153
|
+
id;
|
|
154
|
+
}
|
|
155
|
+
_ts_decorate$f([
|
|
156
|
+
graphql.Field(()=>graphql.ID),
|
|
157
|
+
_ts_metadata$c("design:type", String)
|
|
158
|
+
], UpdateArticleArgs.prototype, "id", void 0);
|
|
159
|
+
UpdateArticleArgs = _ts_decorate$f([
|
|
160
|
+
graphql.ArgsType()
|
|
161
|
+
], UpdateArticleArgs);
|
|
162
|
+
|
|
163
|
+
function _ts_decorate$e(decorators, target, key, desc) {
|
|
52
164
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
53
165
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
54
166
|
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;
|
|
55
167
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
56
168
|
}
|
|
169
|
+
function _ts_metadata$b(k, v) {
|
|
170
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
171
|
+
}
|
|
57
172
|
function _ts_param$5(paramIndex, decorator) {
|
|
58
173
|
return function(target, key) {
|
|
59
174
|
decorator(target, key, paramIndex);
|
|
@@ -130,26 +245,43 @@ class ArticleMutations {
|
|
|
130
245
|
return this.articleService.withdraw(id);
|
|
131
246
|
}
|
|
132
247
|
}
|
|
133
|
-
_ts_decorate$
|
|
248
|
+
_ts_decorate$e([
|
|
134
249
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
135
250
|
memberBaseNestjsModule.IsPublic(),
|
|
136
251
|
_ts_param$5(0, memberBaseNestjsModule.MemberId()),
|
|
137
|
-
_ts_param$5(1, graphql.Args())
|
|
252
|
+
_ts_param$5(1, graphql.Args()),
|
|
253
|
+
_ts_metadata$b("design:type", Function),
|
|
254
|
+
_ts_metadata$b("design:paramtypes", [
|
|
255
|
+
String,
|
|
256
|
+
typeof CreateArticleArgs === "undefined" ? Object : CreateArticleArgs
|
|
257
|
+
]),
|
|
258
|
+
_ts_metadata$b("design:returntype", Promise)
|
|
138
259
|
], ArticleMutations.prototype, "createArticle", null);
|
|
139
|
-
_ts_decorate$
|
|
260
|
+
_ts_decorate$e([
|
|
140
261
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
141
262
|
memberBaseNestjsModule.IsPublic(),
|
|
142
263
|
_ts_param$5(0, memberBaseNestjsModule.MemberId()),
|
|
143
|
-
_ts_param$5(1, graphql.Args())
|
|
264
|
+
_ts_param$5(1, graphql.Args()),
|
|
265
|
+
_ts_metadata$b("design:type", Function),
|
|
266
|
+
_ts_metadata$b("design:paramtypes", [
|
|
267
|
+
String,
|
|
268
|
+
typeof UpdateArticleArgs === "undefined" ? Object : UpdateArticleArgs
|
|
269
|
+
]),
|
|
270
|
+
_ts_metadata$b("design:returntype", Promise)
|
|
144
271
|
], ArticleMutations.prototype, "updateArticle", null);
|
|
145
|
-
_ts_decorate$
|
|
272
|
+
_ts_decorate$e([
|
|
146
273
|
graphql.Mutation(()=>Boolean),
|
|
147
274
|
memberBaseNestjsModule.IsPublic(),
|
|
148
275
|
_ts_param$5(0, graphql.Args('id', {
|
|
149
276
|
type: ()=>graphql.ID
|
|
150
|
-
}))
|
|
277
|
+
})),
|
|
278
|
+
_ts_metadata$b("design:type", Function),
|
|
279
|
+
_ts_metadata$b("design:paramtypes", [
|
|
280
|
+
String
|
|
281
|
+
]),
|
|
282
|
+
_ts_metadata$b("design:returntype", Promise)
|
|
151
283
|
], ArticleMutations.prototype, "deleteArticle", null);
|
|
152
|
-
_ts_decorate$
|
|
284
|
+
_ts_decorate$e([
|
|
153
285
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
154
286
|
memberBaseNestjsModule.IsPublic(),
|
|
155
287
|
_ts_param$5(0, memberBaseNestjsModule.MemberId()),
|
|
@@ -158,16 +290,28 @@ _ts_decorate$b([
|
|
|
158
290
|
})),
|
|
159
291
|
_ts_param$5(2, graphql.Args('version', {
|
|
160
292
|
type: ()=>graphql.Int
|
|
161
|
-
}))
|
|
293
|
+
})),
|
|
294
|
+
_ts_metadata$b("design:type", Function),
|
|
295
|
+
_ts_metadata$b("design:paramtypes", [
|
|
296
|
+
String,
|
|
297
|
+
String,
|
|
298
|
+
Number
|
|
299
|
+
]),
|
|
300
|
+
_ts_metadata$b("design:returntype", Promise)
|
|
162
301
|
], ArticleMutations.prototype, "submitArticle", null);
|
|
163
|
-
_ts_decorate$
|
|
302
|
+
_ts_decorate$e([
|
|
164
303
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
165
304
|
memberBaseNestjsModule.IsPublic(),
|
|
166
305
|
_ts_param$5(0, graphql.Args('id', {
|
|
167
306
|
type: ()=>graphql.ID
|
|
168
|
-
}))
|
|
307
|
+
})),
|
|
308
|
+
_ts_metadata$b("design:type", Function),
|
|
309
|
+
_ts_metadata$b("design:paramtypes", [
|
|
310
|
+
String
|
|
311
|
+
]),
|
|
312
|
+
_ts_metadata$b("design:returntype", Promise)
|
|
169
313
|
], ArticleMutations.prototype, "approveArticle", null);
|
|
170
|
-
_ts_decorate$
|
|
314
|
+
_ts_decorate$e([
|
|
171
315
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
172
316
|
memberBaseNestjsModule.IsPublic(),
|
|
173
317
|
_ts_param$5(0, graphql.Args('id', {
|
|
@@ -176,9 +320,15 @@ _ts_decorate$b([
|
|
|
176
320
|
_ts_param$5(1, graphql.Args('reason', {
|
|
177
321
|
type: ()=>String,
|
|
178
322
|
nullable: true
|
|
179
|
-
}))
|
|
323
|
+
})),
|
|
324
|
+
_ts_metadata$b("design:type", Function),
|
|
325
|
+
_ts_metadata$b("design:paramtypes", [
|
|
326
|
+
String,
|
|
327
|
+
Object
|
|
328
|
+
]),
|
|
329
|
+
_ts_metadata$b("design:returntype", Promise)
|
|
180
330
|
], ArticleMutations.prototype, "rejectArticle", null);
|
|
181
|
-
_ts_decorate$
|
|
331
|
+
_ts_decorate$e([
|
|
182
332
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
183
333
|
memberBaseNestjsModule.IsPublic(),
|
|
184
334
|
_ts_param$5(0, memberBaseNestjsModule.MemberId()),
|
|
@@ -187,36 +337,114 @@ _ts_decorate$b([
|
|
|
187
337
|
})),
|
|
188
338
|
_ts_param$5(2, graphql.Args('releasedAt', {
|
|
189
339
|
type: ()=>Date
|
|
190
|
-
}))
|
|
340
|
+
})),
|
|
341
|
+
_ts_metadata$b("design:type", Function),
|
|
342
|
+
_ts_metadata$b("design:paramtypes", [
|
|
343
|
+
String,
|
|
344
|
+
String,
|
|
345
|
+
typeof Date === "undefined" ? Object : Date
|
|
346
|
+
]),
|
|
347
|
+
_ts_metadata$b("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
191
348
|
], ArticleMutations.prototype, "releaseArticle", null);
|
|
192
|
-
_ts_decorate$
|
|
349
|
+
_ts_decorate$e([
|
|
193
350
|
graphql.Mutation(()=>ArticleBackstageDto),
|
|
194
351
|
memberBaseNestjsModule.IsPublic(),
|
|
195
352
|
_ts_param$5(0, graphql.Args('id', {
|
|
196
353
|
type: ()=>graphql.ID
|
|
197
|
-
}))
|
|
354
|
+
})),
|
|
355
|
+
_ts_metadata$b("design:type", Function),
|
|
356
|
+
_ts_metadata$b("design:paramtypes", [
|
|
357
|
+
String
|
|
358
|
+
]),
|
|
359
|
+
_ts_metadata$b("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
198
360
|
], ArticleMutations.prototype, "withdrawArticle", null);
|
|
199
|
-
ArticleMutations = _ts_decorate$
|
|
200
|
-
graphql.Resolver()
|
|
361
|
+
ArticleMutations = _ts_decorate$e([
|
|
362
|
+
graphql.Resolver(),
|
|
363
|
+
_ts_metadata$b("design:type", Function),
|
|
364
|
+
_ts_metadata$b("design:paramtypes", [
|
|
365
|
+
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService
|
|
366
|
+
])
|
|
201
367
|
], ArticleMutations);
|
|
202
368
|
|
|
203
|
-
function _ts_decorate$
|
|
369
|
+
function _ts_decorate$d(decorators, target, key, desc) {
|
|
204
370
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
205
371
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
206
372
|
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;
|
|
207
373
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
208
374
|
}
|
|
375
|
+
function _ts_metadata$a(k, v) {
|
|
376
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
377
|
+
}
|
|
378
|
+
class CreateCategoryArgs {
|
|
379
|
+
parentIds;
|
|
380
|
+
multiLanguageNames;
|
|
381
|
+
}
|
|
382
|
+
_ts_decorate$d([
|
|
383
|
+
graphql.Field(()=>[
|
|
384
|
+
graphql.ID
|
|
385
|
+
], {
|
|
386
|
+
nullable: true
|
|
387
|
+
}),
|
|
388
|
+
_ts_metadata$a("design:type", Object)
|
|
389
|
+
], CreateCategoryArgs.prototype, "parentIds", void 0);
|
|
390
|
+
_ts_decorate$d([
|
|
391
|
+
graphql.Field(()=>[
|
|
392
|
+
CategoryMultiLanguageNameInput
|
|
393
|
+
]),
|
|
394
|
+
_ts_metadata$a("design:type", Array)
|
|
395
|
+
], CreateCategoryArgs.prototype, "multiLanguageNames", void 0);
|
|
396
|
+
CreateCategoryArgs = _ts_decorate$d([
|
|
397
|
+
graphql.ArgsType()
|
|
398
|
+
], CreateCategoryArgs);
|
|
399
|
+
class CategoryMultiLanguageNameInput {
|
|
400
|
+
language;
|
|
401
|
+
name;
|
|
402
|
+
}
|
|
403
|
+
_ts_decorate$d([
|
|
404
|
+
graphql.Field(()=>String, {
|
|
405
|
+
nullable: true
|
|
406
|
+
}),
|
|
407
|
+
_ts_metadata$a("design:type", Object)
|
|
408
|
+
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
409
|
+
_ts_decorate$d([
|
|
410
|
+
graphql.Field(()=>String),
|
|
411
|
+
_ts_metadata$a("design:type", String)
|
|
412
|
+
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
413
|
+
CategoryMultiLanguageNameInput = _ts_decorate$d([
|
|
414
|
+
graphql.InputType()
|
|
415
|
+
], CategoryMultiLanguageNameInput);
|
|
416
|
+
class UpdateCategoryArgs extends CreateCategoryArgs {
|
|
417
|
+
id;
|
|
418
|
+
}
|
|
419
|
+
_ts_decorate$d([
|
|
420
|
+
graphql.Field(()=>graphql.ID),
|
|
421
|
+
_ts_metadata$a("design:type", String)
|
|
422
|
+
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
423
|
+
UpdateCategoryArgs = _ts_decorate$d([
|
|
424
|
+
graphql.ArgsType()
|
|
425
|
+
], UpdateCategoryArgs);
|
|
426
|
+
|
|
427
|
+
function _ts_decorate$c(decorators, target, key, desc) {
|
|
428
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
429
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
430
|
+
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;
|
|
431
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
432
|
+
}
|
|
433
|
+
function _ts_metadata$9(k, v) {
|
|
434
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
435
|
+
}
|
|
209
436
|
class BaseCategoryDto {
|
|
210
437
|
id;
|
|
211
438
|
}
|
|
212
|
-
_ts_decorate$
|
|
213
|
-
graphql.Field(()=>graphql.ID)
|
|
439
|
+
_ts_decorate$c([
|
|
440
|
+
graphql.Field(()=>graphql.ID),
|
|
441
|
+
_ts_metadata$9("design:type", String)
|
|
214
442
|
], BaseCategoryDto.prototype, "id", void 0);
|
|
215
|
-
BaseCategoryDto = _ts_decorate$
|
|
443
|
+
BaseCategoryDto = _ts_decorate$c([
|
|
216
444
|
graphql.InterfaceType('BaseCategory')
|
|
217
445
|
], BaseCategoryDto);
|
|
218
446
|
|
|
219
|
-
function _ts_decorate$
|
|
447
|
+
function _ts_decorate$b(decorators, target, key, desc) {
|
|
220
448
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
221
449
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
222
450
|
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;
|
|
@@ -224,7 +452,7 @@ function _ts_decorate$9(decorators, target, key, desc) {
|
|
|
224
452
|
}
|
|
225
453
|
class CategoryBackstageDto extends BaseCategoryDto {
|
|
226
454
|
}
|
|
227
|
-
CategoryBackstageDto = _ts_decorate$
|
|
455
|
+
CategoryBackstageDto = _ts_decorate$b([
|
|
228
456
|
graphql.ObjectType('CategoryBackstage', {
|
|
229
457
|
implements: ()=>[
|
|
230
458
|
BaseCategoryDto
|
|
@@ -232,12 +460,15 @@ CategoryBackstageDto = _ts_decorate$9([
|
|
|
232
460
|
})
|
|
233
461
|
], CategoryBackstageDto);
|
|
234
462
|
|
|
235
|
-
function _ts_decorate$
|
|
463
|
+
function _ts_decorate$a(decorators, target, key, desc) {
|
|
236
464
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
237
465
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
238
466
|
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;
|
|
239
467
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
240
468
|
}
|
|
469
|
+
function _ts_metadata$8(k, v) {
|
|
470
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
471
|
+
}
|
|
241
472
|
function _ts_param$4(paramIndex, decorator) {
|
|
242
473
|
return function(target, key) {
|
|
243
474
|
decorator(target, key, paramIndex);
|
|
@@ -271,27 +502,101 @@ class CategoryMutations {
|
|
|
271
502
|
return true;
|
|
272
503
|
}
|
|
273
504
|
}
|
|
274
|
-
_ts_decorate$
|
|
505
|
+
_ts_decorate$a([
|
|
275
506
|
graphql.Mutation(()=>CategoryBackstageDto),
|
|
276
507
|
memberBaseNestjsModule.IsPublic(),
|
|
277
|
-
_ts_param$4(0, graphql.Args())
|
|
508
|
+
_ts_param$4(0, graphql.Args()),
|
|
509
|
+
_ts_metadata$8("design:type", Function),
|
|
510
|
+
_ts_metadata$8("design:paramtypes", [
|
|
511
|
+
typeof CreateCategoryArgs === "undefined" ? Object : CreateCategoryArgs
|
|
512
|
+
]),
|
|
513
|
+
_ts_metadata$8("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
278
514
|
], CategoryMutations.prototype, "createCategory", null);
|
|
279
|
-
_ts_decorate$
|
|
515
|
+
_ts_decorate$a([
|
|
280
516
|
graphql.Mutation(()=>CategoryBackstageDto),
|
|
281
517
|
memberBaseNestjsModule.IsPublic(),
|
|
282
|
-
_ts_param$4(0, graphql.Args())
|
|
518
|
+
_ts_param$4(0, graphql.Args()),
|
|
519
|
+
_ts_metadata$8("design:type", Function),
|
|
520
|
+
_ts_metadata$8("design:paramtypes", [
|
|
521
|
+
typeof UpdateCategoryArgs === "undefined" ? Object : UpdateCategoryArgs
|
|
522
|
+
]),
|
|
523
|
+
_ts_metadata$8("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
283
524
|
], CategoryMutations.prototype, "updateCategory", null);
|
|
284
|
-
_ts_decorate$
|
|
525
|
+
_ts_decorate$a([
|
|
285
526
|
graphql.Mutation(()=>Boolean),
|
|
286
527
|
memberBaseNestjsModule.IsPublic(),
|
|
287
528
|
_ts_param$4(0, graphql.Args('id', {
|
|
288
529
|
type: ()=>graphql.ID
|
|
289
|
-
}))
|
|
530
|
+
})),
|
|
531
|
+
_ts_metadata$8("design:type", Function),
|
|
532
|
+
_ts_metadata$8("design:paramtypes", [
|
|
533
|
+
String
|
|
534
|
+
]),
|
|
535
|
+
_ts_metadata$8("design:returntype", Promise)
|
|
290
536
|
], CategoryMutations.prototype, "deleteCategory", null);
|
|
291
|
-
CategoryMutations = _ts_decorate$
|
|
292
|
-
graphql.Resolver()
|
|
537
|
+
CategoryMutations = _ts_decorate$a([
|
|
538
|
+
graphql.Resolver(),
|
|
539
|
+
_ts_metadata$8("design:type", Function),
|
|
540
|
+
_ts_metadata$8("design:paramtypes", [
|
|
541
|
+
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
542
|
+
])
|
|
293
543
|
], CategoryMutations);
|
|
294
544
|
|
|
545
|
+
function _ts_decorate$9(decorators, target, key, desc) {
|
|
546
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
547
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
548
|
+
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;
|
|
549
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
550
|
+
}
|
|
551
|
+
function _ts_metadata$7(k, v) {
|
|
552
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
553
|
+
}
|
|
554
|
+
class ArticlesArgs {
|
|
555
|
+
stage;
|
|
556
|
+
categoryIds;
|
|
557
|
+
offset;
|
|
558
|
+
limit;
|
|
559
|
+
searchTerm;
|
|
560
|
+
}
|
|
561
|
+
_ts_decorate$9([
|
|
562
|
+
graphql.Field(()=>cmsBaseNestjsModule.ArticleStage, {
|
|
563
|
+
nullable: true
|
|
564
|
+
}),
|
|
565
|
+
_ts_metadata$7("design:type", Object)
|
|
566
|
+
], ArticlesArgs.prototype, "stage", void 0);
|
|
567
|
+
_ts_decorate$9([
|
|
568
|
+
graphql.Field(()=>[
|
|
569
|
+
String
|
|
570
|
+
], {
|
|
571
|
+
nullable: true
|
|
572
|
+
}),
|
|
573
|
+
_ts_metadata$7("design:type", Object)
|
|
574
|
+
], ArticlesArgs.prototype, "categoryIds", void 0);
|
|
575
|
+
_ts_decorate$9([
|
|
576
|
+
graphql.Field(()=>graphql.Int, {
|
|
577
|
+
nullable: true
|
|
578
|
+
}),
|
|
579
|
+
_ts_metadata$7("design:type", Object)
|
|
580
|
+
], ArticlesArgs.prototype, "offset", void 0);
|
|
581
|
+
_ts_decorate$9([
|
|
582
|
+
graphql.Field(()=>graphql.Int, {
|
|
583
|
+
nullable: true
|
|
584
|
+
}),
|
|
585
|
+
_ts_metadata$7("design:type", Object)
|
|
586
|
+
], ArticlesArgs.prototype, "limit", void 0);
|
|
587
|
+
_ts_decorate$9([
|
|
588
|
+
graphql.Field(()=>String, {
|
|
589
|
+
nullable: true
|
|
590
|
+
}),
|
|
591
|
+
_ts_metadata$7("design:type", Object)
|
|
592
|
+
], ArticlesArgs.prototype, "searchTerm", void 0);
|
|
593
|
+
ArticlesArgs = _ts_decorate$9([
|
|
594
|
+
graphql.ArgsType()
|
|
595
|
+
], ArticlesArgs);
|
|
596
|
+
graphql.registerEnumType(cmsBaseNestjsModule.ArticleStage, {
|
|
597
|
+
name: 'ArticleStage'
|
|
598
|
+
});
|
|
599
|
+
|
|
295
600
|
const Language = common.createParamDecorator(async (data, context)=>{
|
|
296
601
|
const contextType = context.getType();
|
|
297
602
|
let language;
|
|
@@ -314,54 +619,67 @@ const Language = common.createParamDecorator(async (data, context)=>{
|
|
|
314
619
|
return language.split(',')[0].split(';')[0].trim().toLowerCase();
|
|
315
620
|
});
|
|
316
621
|
|
|
317
|
-
function _ts_decorate$
|
|
622
|
+
function _ts_decorate$8(decorators, target, key, desc) {
|
|
318
623
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
319
624
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
320
625
|
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;
|
|
321
626
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
322
627
|
}
|
|
628
|
+
function _ts_metadata$6(k, v) {
|
|
629
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
630
|
+
}
|
|
323
631
|
class Collection {
|
|
324
632
|
total;
|
|
325
633
|
offset;
|
|
326
634
|
limit;
|
|
327
635
|
}
|
|
328
|
-
_ts_decorate$
|
|
329
|
-
graphql.Field(()=>graphql.Int)
|
|
636
|
+
_ts_decorate$8([
|
|
637
|
+
graphql.Field(()=>graphql.Int),
|
|
638
|
+
_ts_metadata$6("design:type", Number)
|
|
330
639
|
], Collection.prototype, "total", void 0);
|
|
331
|
-
_ts_decorate$
|
|
332
|
-
graphql.Field(()=>graphql.Int)
|
|
640
|
+
_ts_decorate$8([
|
|
641
|
+
graphql.Field(()=>graphql.Int),
|
|
642
|
+
_ts_metadata$6("design:type", Number)
|
|
333
643
|
], Collection.prototype, "offset", void 0);
|
|
334
|
-
_ts_decorate$
|
|
335
|
-
graphql.Field(()=>graphql.Int)
|
|
644
|
+
_ts_decorate$8([
|
|
645
|
+
graphql.Field(()=>graphql.Int),
|
|
646
|
+
_ts_metadata$6("design:type", Number)
|
|
336
647
|
], Collection.prototype, "limit", void 0);
|
|
337
|
-
Collection = _ts_decorate$
|
|
648
|
+
Collection = _ts_decorate$8([
|
|
338
649
|
graphql.ObjectType('Collection')
|
|
339
650
|
], Collection);
|
|
340
651
|
|
|
341
|
-
function _ts_decorate$
|
|
652
|
+
function _ts_decorate$7(decorators, target, key, desc) {
|
|
342
653
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
343
654
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
344
655
|
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;
|
|
345
656
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
346
657
|
}
|
|
658
|
+
function _ts_metadata$5(k, v) {
|
|
659
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
660
|
+
}
|
|
347
661
|
class ArticleCollectionDto extends Collection {
|
|
348
662
|
articles;
|
|
349
663
|
}
|
|
350
|
-
_ts_decorate$
|
|
664
|
+
_ts_decorate$7([
|
|
351
665
|
graphql.Field(()=>[
|
|
352
666
|
BaseArticleDto
|
|
353
|
-
])
|
|
667
|
+
]),
|
|
668
|
+
_ts_metadata$5("design:type", Array)
|
|
354
669
|
], ArticleCollectionDto.prototype, "articles", void 0);
|
|
355
|
-
ArticleCollectionDto = _ts_decorate$
|
|
670
|
+
ArticleCollectionDto = _ts_decorate$7([
|
|
356
671
|
graphql.ObjectType('ArticleCollection')
|
|
357
672
|
], ArticleCollectionDto);
|
|
358
673
|
|
|
359
|
-
function _ts_decorate$
|
|
674
|
+
function _ts_decorate$6(decorators, target, key, desc) {
|
|
360
675
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
361
676
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
362
677
|
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;
|
|
363
678
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
364
679
|
}
|
|
680
|
+
function _ts_metadata$4(k, v) {
|
|
681
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
682
|
+
}
|
|
365
683
|
function _ts_param$3(paramIndex, decorator) {
|
|
366
684
|
return function(target, key) {
|
|
367
685
|
decorator(target, key, paramIndex);
|
|
@@ -381,29 +699,87 @@ class ArticleQueries {
|
|
|
381
699
|
return this.articleService.findCollection(args);
|
|
382
700
|
}
|
|
383
701
|
}
|
|
384
|
-
_ts_decorate$
|
|
702
|
+
_ts_decorate$6([
|
|
385
703
|
graphql.Query(()=>BaseArticleDto),
|
|
386
704
|
memberBaseNestjsModule.IsPublic(),
|
|
387
705
|
_ts_param$3(0, graphql.Args('id', {
|
|
388
706
|
type: ()=>graphql.ID
|
|
389
707
|
})),
|
|
390
|
-
_ts_param$3(1, Language())
|
|
708
|
+
_ts_param$3(1, Language()),
|
|
709
|
+
_ts_metadata$4("design:type", Function),
|
|
710
|
+
_ts_metadata$4("design:paramtypes", [
|
|
711
|
+
String,
|
|
712
|
+
String
|
|
713
|
+
]),
|
|
714
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
391
715
|
], ArticleQueries.prototype, "article", null);
|
|
392
|
-
_ts_decorate$
|
|
716
|
+
_ts_decorate$6([
|
|
393
717
|
graphql.Query(()=>ArticleCollectionDto),
|
|
394
718
|
memberBaseNestjsModule.IsPublic(),
|
|
395
|
-
_ts_param$3(0, graphql.Args())
|
|
719
|
+
_ts_param$3(0, graphql.Args()),
|
|
720
|
+
_ts_metadata$4("design:type", Function),
|
|
721
|
+
_ts_metadata$4("design:paramtypes", [
|
|
722
|
+
typeof ArticlesArgs === "undefined" ? Object : ArticlesArgs
|
|
723
|
+
]),
|
|
724
|
+
_ts_metadata$4("design:returntype", Promise)
|
|
396
725
|
], ArticleQueries.prototype, "articles", null);
|
|
397
|
-
ArticleQueries = _ts_decorate$
|
|
398
|
-
graphql.Resolver()
|
|
726
|
+
ArticleQueries = _ts_decorate$6([
|
|
727
|
+
graphql.Resolver(),
|
|
728
|
+
_ts_metadata$4("design:type", Function),
|
|
729
|
+
_ts_metadata$4("design:paramtypes", [
|
|
730
|
+
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService
|
|
731
|
+
])
|
|
399
732
|
], ArticleQueries);
|
|
400
733
|
|
|
734
|
+
function _ts_decorate$5(decorators, target, key, desc) {
|
|
735
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
736
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
737
|
+
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;
|
|
738
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
739
|
+
}
|
|
740
|
+
function _ts_metadata$3(k, v) {
|
|
741
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
742
|
+
}
|
|
743
|
+
class CategoriesArgs {
|
|
744
|
+
parentIds;
|
|
745
|
+
ids;
|
|
746
|
+
searchTerm;
|
|
747
|
+
}
|
|
748
|
+
_ts_decorate$5([
|
|
749
|
+
graphql.Field(()=>[
|
|
750
|
+
String
|
|
751
|
+
], {
|
|
752
|
+
nullable: true
|
|
753
|
+
}),
|
|
754
|
+
_ts_metadata$3("design:type", Object)
|
|
755
|
+
], CategoriesArgs.prototype, "parentIds", void 0);
|
|
756
|
+
_ts_decorate$5([
|
|
757
|
+
graphql.Field(()=>[
|
|
758
|
+
String
|
|
759
|
+
], {
|
|
760
|
+
nullable: true
|
|
761
|
+
}),
|
|
762
|
+
_ts_metadata$3("design:type", Object)
|
|
763
|
+
], CategoriesArgs.prototype, "ids", void 0);
|
|
764
|
+
_ts_decorate$5([
|
|
765
|
+
graphql.Field(()=>String, {
|
|
766
|
+
nullable: true
|
|
767
|
+
}),
|
|
768
|
+
_ts_metadata$3("design:type", Object)
|
|
769
|
+
], CategoriesArgs.prototype, "searchTerm", void 0);
|
|
770
|
+
CategoriesArgs = _ts_decorate$5([
|
|
771
|
+
graphql.ArgsType()
|
|
772
|
+
], CategoriesArgs);
|
|
773
|
+
|
|
401
774
|
function _ts_decorate$4(decorators, target, key, desc) {
|
|
402
775
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
403
776
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
404
777
|
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;
|
|
405
778
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
406
779
|
}
|
|
780
|
+
function _ts_metadata$2(k, v) {
|
|
781
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
782
|
+
}
|
|
407
783
|
function _ts_param$2(paramIndex, decorator) {
|
|
408
784
|
return function(target, key) {
|
|
409
785
|
decorator(target, key, paramIndex);
|
|
@@ -426,17 +802,31 @@ _ts_decorate$4([
|
|
|
426
802
|
memberBaseNestjsModule.IsPublic(),
|
|
427
803
|
_ts_param$2(0, graphql.Args('id', {
|
|
428
804
|
type: ()=>graphql.ID
|
|
429
|
-
}))
|
|
805
|
+
})),
|
|
806
|
+
_ts_metadata$2("design:type", Function),
|
|
807
|
+
_ts_metadata$2("design:paramtypes", [
|
|
808
|
+
String
|
|
809
|
+
]),
|
|
810
|
+
_ts_metadata$2("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
430
811
|
], CategoryQueries.prototype, "category", null);
|
|
431
812
|
_ts_decorate$4([
|
|
432
813
|
graphql.Query(()=>[
|
|
433
814
|
BaseCategoryDto
|
|
434
815
|
]),
|
|
435
816
|
memberBaseNestjsModule.IsPublic(),
|
|
436
|
-
_ts_param$2(0, graphql.Args())
|
|
817
|
+
_ts_param$2(0, graphql.Args()),
|
|
818
|
+
_ts_metadata$2("design:type", Function),
|
|
819
|
+
_ts_metadata$2("design:paramtypes", [
|
|
820
|
+
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs
|
|
821
|
+
]),
|
|
822
|
+
_ts_metadata$2("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
437
823
|
], CategoryQueries.prototype, "categories", null);
|
|
438
824
|
CategoryQueries = _ts_decorate$4([
|
|
439
|
-
graphql.Resolver()
|
|
825
|
+
graphql.Resolver(),
|
|
826
|
+
_ts_metadata$2("design:type", Function),
|
|
827
|
+
_ts_metadata$2("design:paramtypes", [
|
|
828
|
+
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
829
|
+
])
|
|
440
830
|
], CategoryQueries);
|
|
441
831
|
|
|
442
832
|
function _ts_decorate$3(decorators, target, key, desc) {
|
|
@@ -501,6 +891,9 @@ function _ts_decorate$2(decorators, target, key, desc) {
|
|
|
501
891
|
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;
|
|
502
892
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
503
893
|
}
|
|
894
|
+
function _ts_metadata$1(k, v) {
|
|
895
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
896
|
+
}
|
|
504
897
|
function _ts_param$1(paramIndex, decorator) {
|
|
505
898
|
return function(target, key) {
|
|
506
899
|
decorator(target, key, paramIndex);
|
|
@@ -517,12 +910,22 @@ class ArticleResolver {
|
|
|
517
910
|
_ts_decorate$2([
|
|
518
911
|
graphql.ResolveField(()=>String),
|
|
519
912
|
memberBaseNestjsModule.IsPublic(),
|
|
520
|
-
_ts_param$1(0, graphql.Root())
|
|
913
|
+
_ts_param$1(0, graphql.Root()),
|
|
914
|
+
_ts_metadata$1("design:type", Function),
|
|
915
|
+
_ts_metadata$1("design:paramtypes", [
|
|
916
|
+
typeof SingleArticleBaseDto === "undefined" ? Object : SingleArticleBaseDto
|
|
917
|
+
]),
|
|
918
|
+
_ts_metadata$1("design:returntype", String)
|
|
521
919
|
], ArticleResolver.prototype, "title", null);
|
|
522
920
|
_ts_decorate$2([
|
|
523
921
|
graphql.ResolveField(()=>QuadratsContentScalar),
|
|
524
922
|
memberBaseNestjsModule.IsPublic(),
|
|
525
|
-
_ts_param$1(0, graphql.Root())
|
|
923
|
+
_ts_param$1(0, graphql.Root()),
|
|
924
|
+
_ts_metadata$1("design:type", Function),
|
|
925
|
+
_ts_metadata$1("design:paramtypes", [
|
|
926
|
+
typeof SingleArticleBaseDto === "undefined" ? Object : SingleArticleBaseDto
|
|
927
|
+
]),
|
|
928
|
+
_ts_metadata$1("design:returntype", Array)
|
|
526
929
|
], ArticleResolver.prototype, "content", null);
|
|
527
930
|
ArticleResolver = _ts_decorate$2([
|
|
528
931
|
graphql.Resolver(()=>ArticleDto)
|
|
@@ -534,6 +937,9 @@ function _ts_decorate$1(decorators, target, key, desc) {
|
|
|
534
937
|
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;
|
|
535
938
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
536
939
|
}
|
|
940
|
+
function _ts_metadata(k, v) {
|
|
941
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
942
|
+
}
|
|
537
943
|
function _ts_param(paramIndex, decorator) {
|
|
538
944
|
return function(target, key) {
|
|
539
945
|
decorator(target, key, paramIndex);
|
|
@@ -550,14 +956,24 @@ class ArticleBackstageResolver {
|
|
|
550
956
|
_ts_decorate$1([
|
|
551
957
|
graphql.ResolveField(()=>graphql.Int),
|
|
552
958
|
memberBaseNestjsModule.IsPublic(),
|
|
553
|
-
_ts_param(0, graphql.Root())
|
|
959
|
+
_ts_param(0, graphql.Root()),
|
|
960
|
+
_ts_metadata("design:type", Function),
|
|
961
|
+
_ts_metadata("design:paramtypes", [
|
|
962
|
+
typeof SingleArticleBaseDto === "undefined" ? Object : SingleArticleBaseDto
|
|
963
|
+
]),
|
|
964
|
+
_ts_metadata("design:returntype", Number)
|
|
554
965
|
], ArticleBackstageResolver.prototype, "version", null);
|
|
555
966
|
_ts_decorate$1([
|
|
556
967
|
graphql.ResolveField(()=>Date, {
|
|
557
968
|
nullable: true
|
|
558
969
|
}),
|
|
559
970
|
memberBaseNestjsModule.IsPublic(),
|
|
560
|
-
_ts_param(0, graphql.Root())
|
|
971
|
+
_ts_param(0, graphql.Root()),
|
|
972
|
+
_ts_metadata("design:type", Function),
|
|
973
|
+
_ts_metadata("design:paramtypes", [
|
|
974
|
+
typeof SingleArticleBaseDto === "undefined" ? Object : SingleArticleBaseDto
|
|
975
|
+
]),
|
|
976
|
+
_ts_metadata("design:returntype", Object)
|
|
561
977
|
], ArticleBackstageResolver.prototype, "deletedAt", null);
|
|
562
978
|
ArticleBackstageResolver = _ts_decorate$1([
|
|
563
979
|
graphql.Resolver(()=>ArticleBackstageDto)
|