@rytass/cms-base-nestjs-graphql-module 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms-base-graphql.module.js +2 -2
- package/dto/article-multi-language-content.dto.d.ts +7 -0
- package/dto/article-multi-language-content.dto.js +41 -0
- package/dto/article.dto.d.ts +1 -0
- package/dto/article.dto.js +7 -0
- package/index.cjs.js +385 -266
- package/package.json +2 -2
- package/queries/article.queries.js +2 -2
- package/resolvers/article.resolver.d.ts +2 -2
- package/resolvers/article.resolver.js +2 -2
- package/resolvers/backstage-article.resolver.d.ts +8 -2
- package/resolvers/backstage-article.resolver.js +80 -3
- /package/{dataloaders → data-loaders}/article.dataloader.d.ts +0 -0
- /package/{dataloaders → data-loaders}/article.dataloader.js +0 -0
- /package/{dataloaders → data-loaders}/members.dataloader.d.ts +0 -0
- /package/{dataloaders → data-loaders}/members.dataloader.js +0 -0
package/index.cjs.js
CHANGED
|
@@ -9,13 +9,13 @@ var DataLoader = require('dataloader');
|
|
|
9
9
|
var lruCache = require('lru-cache');
|
|
10
10
|
var typeorm = require('typeorm');
|
|
11
11
|
|
|
12
|
-
function _ts_decorate$
|
|
12
|
+
function _ts_decorate$s(decorators, target, key, desc) {
|
|
13
13
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
14
14
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
15
15
|
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;
|
|
16
16
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17
17
|
}
|
|
18
|
-
function _ts_metadata$
|
|
18
|
+
function _ts_metadata$q(k, v) {
|
|
19
19
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
20
|
}
|
|
21
21
|
class BaseArticleDto {
|
|
@@ -25,41 +25,41 @@ class BaseArticleDto {
|
|
|
25
25
|
updatedAt;
|
|
26
26
|
releasedAt;
|
|
27
27
|
}
|
|
28
|
-
_ts_decorate$
|
|
28
|
+
_ts_decorate$s([
|
|
29
29
|
graphql.Field(()=>graphql.ID),
|
|
30
|
-
_ts_metadata$
|
|
30
|
+
_ts_metadata$q("design:type", String)
|
|
31
31
|
], BaseArticleDto.prototype, "id", void 0);
|
|
32
|
-
_ts_decorate$
|
|
32
|
+
_ts_decorate$s([
|
|
33
33
|
graphql.Field(()=>[
|
|
34
34
|
String
|
|
35
35
|
]),
|
|
36
|
-
_ts_metadata$
|
|
36
|
+
_ts_metadata$q("design:type", Array)
|
|
37
37
|
], BaseArticleDto.prototype, "tags", void 0);
|
|
38
|
-
_ts_decorate$
|
|
38
|
+
_ts_decorate$s([
|
|
39
39
|
graphql.Field(()=>Date),
|
|
40
|
-
_ts_metadata$
|
|
40
|
+
_ts_metadata$q("design:type", typeof Date === "undefined" ? Object : Date)
|
|
41
41
|
], BaseArticleDto.prototype, "createdAt", void 0);
|
|
42
|
-
_ts_decorate$
|
|
42
|
+
_ts_decorate$s([
|
|
43
43
|
graphql.Field(()=>Date),
|
|
44
|
-
_ts_metadata$
|
|
44
|
+
_ts_metadata$q("design:type", typeof Date === "undefined" ? Object : Date)
|
|
45
45
|
], BaseArticleDto.prototype, "updatedAt", void 0);
|
|
46
|
-
_ts_decorate$
|
|
46
|
+
_ts_decorate$s([
|
|
47
47
|
graphql.Field(()=>Date, {
|
|
48
48
|
nullable: true
|
|
49
49
|
}),
|
|
50
|
-
_ts_metadata$
|
|
50
|
+
_ts_metadata$q("design:type", Object)
|
|
51
51
|
], BaseArticleDto.prototype, "releasedAt", void 0);
|
|
52
|
-
BaseArticleDto = _ts_decorate$
|
|
52
|
+
BaseArticleDto = _ts_decorate$s([
|
|
53
53
|
graphql.ObjectType('BaseArticle')
|
|
54
54
|
], BaseArticleDto);
|
|
55
55
|
|
|
56
|
-
function _ts_decorate$
|
|
56
|
+
function _ts_decorate$r(decorators, target, key, desc) {
|
|
57
57
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
58
58
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
59
59
|
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;
|
|
60
60
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
61
61
|
}
|
|
62
|
-
function _ts_metadata$
|
|
62
|
+
function _ts_metadata$p(k, v) {
|
|
63
63
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
64
64
|
}
|
|
65
65
|
class BackstageArticleDto extends BaseArticleDto {
|
|
@@ -67,33 +67,33 @@ class BackstageArticleDto extends BaseArticleDto {
|
|
|
67
67
|
deletedAt;
|
|
68
68
|
submittedAt;
|
|
69
69
|
}
|
|
70
|
-
_ts_decorate$
|
|
70
|
+
_ts_decorate$r([
|
|
71
71
|
graphql.Field(()=>graphql.Int),
|
|
72
|
-
_ts_metadata$
|
|
72
|
+
_ts_metadata$p("design:type", Number)
|
|
73
73
|
], BackstageArticleDto.prototype, "version", void 0);
|
|
74
|
-
_ts_decorate$
|
|
74
|
+
_ts_decorate$r([
|
|
75
75
|
graphql.Field(()=>Date, {
|
|
76
76
|
nullable: true
|
|
77
77
|
}),
|
|
78
|
-
_ts_metadata$
|
|
78
|
+
_ts_metadata$p("design:type", Object)
|
|
79
79
|
], BackstageArticleDto.prototype, "deletedAt", void 0);
|
|
80
|
-
_ts_decorate$
|
|
80
|
+
_ts_decorate$r([
|
|
81
81
|
graphql.Field(()=>Date, {
|
|
82
82
|
nullable: true
|
|
83
83
|
}),
|
|
84
|
-
_ts_metadata$
|
|
84
|
+
_ts_metadata$p("design:type", Object)
|
|
85
85
|
], BackstageArticleDto.prototype, "submittedAt", void 0);
|
|
86
|
-
BackstageArticleDto = _ts_decorate$
|
|
86
|
+
BackstageArticleDto = _ts_decorate$r([
|
|
87
87
|
graphql.ObjectType('BackstageArticle')
|
|
88
88
|
], BackstageArticleDto);
|
|
89
89
|
|
|
90
|
-
function _ts_decorate$
|
|
90
|
+
function _ts_decorate$q(decorators, target, key, desc) {
|
|
91
91
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
92
92
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
93
93
|
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;
|
|
94
94
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
95
95
|
}
|
|
96
|
-
function _ts_metadata$
|
|
96
|
+
function _ts_metadata$o(k, v) {
|
|
97
97
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
98
98
|
}
|
|
99
99
|
class ArticleVersionContentInput {
|
|
@@ -102,37 +102,37 @@ class ArticleVersionContentInput {
|
|
|
102
102
|
description;
|
|
103
103
|
content;
|
|
104
104
|
}
|
|
105
|
-
_ts_decorate$
|
|
105
|
+
_ts_decorate$q([
|
|
106
106
|
graphql.Field(()=>String, {
|
|
107
107
|
nullable: true
|
|
108
108
|
}),
|
|
109
|
-
_ts_metadata$
|
|
109
|
+
_ts_metadata$o("design:type", Object)
|
|
110
110
|
], ArticleVersionContentInput.prototype, "language", void 0);
|
|
111
|
-
_ts_decorate$
|
|
111
|
+
_ts_decorate$q([
|
|
112
112
|
graphql.Field(()=>String),
|
|
113
|
-
_ts_metadata$
|
|
113
|
+
_ts_metadata$o("design:type", String)
|
|
114
114
|
], ArticleVersionContentInput.prototype, "title", void 0);
|
|
115
|
-
_ts_decorate$
|
|
115
|
+
_ts_decorate$q([
|
|
116
116
|
graphql.Field(()=>String, {
|
|
117
117
|
nullable: true
|
|
118
118
|
}),
|
|
119
|
-
_ts_metadata$
|
|
119
|
+
_ts_metadata$o("design:type", Object)
|
|
120
120
|
], ArticleVersionContentInput.prototype, "description", void 0);
|
|
121
|
-
_ts_decorate$
|
|
121
|
+
_ts_decorate$q([
|
|
122
122
|
graphql.Field(()=>String),
|
|
123
|
-
_ts_metadata$
|
|
123
|
+
_ts_metadata$o("design:type", String)
|
|
124
124
|
], ArticleVersionContentInput.prototype, "content", void 0);
|
|
125
|
-
ArticleVersionContentInput = _ts_decorate$
|
|
125
|
+
ArticleVersionContentInput = _ts_decorate$q([
|
|
126
126
|
graphql.InputType('ArticleVersionContentInput')
|
|
127
127
|
], ArticleVersionContentInput);
|
|
128
128
|
|
|
129
|
-
function _ts_decorate$
|
|
129
|
+
function _ts_decorate$p(decorators, target, key, desc) {
|
|
130
130
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
131
131
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
132
132
|
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;
|
|
133
133
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
134
134
|
}
|
|
135
|
-
function _ts_metadata$
|
|
135
|
+
function _ts_metadata$n(k, v) {
|
|
136
136
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
137
137
|
}
|
|
138
138
|
class CreateArticleArgs {
|
|
@@ -143,73 +143,73 @@ class CreateArticleArgs {
|
|
|
143
143
|
submitted;
|
|
144
144
|
signatureLevel;
|
|
145
145
|
}
|
|
146
|
-
_ts_decorate$
|
|
146
|
+
_ts_decorate$p([
|
|
147
147
|
graphql.Field(()=>[
|
|
148
148
|
graphql.ID
|
|
149
149
|
]),
|
|
150
|
-
_ts_metadata$
|
|
150
|
+
_ts_metadata$n("design:type", Array)
|
|
151
151
|
], CreateArticleArgs.prototype, "categoryIds", void 0);
|
|
152
|
-
_ts_decorate$
|
|
152
|
+
_ts_decorate$p([
|
|
153
153
|
graphql.Field(()=>[
|
|
154
154
|
String
|
|
155
155
|
]),
|
|
156
|
-
_ts_metadata$
|
|
156
|
+
_ts_metadata$n("design:type", Array)
|
|
157
157
|
], CreateArticleArgs.prototype, "tags", void 0);
|
|
158
|
-
_ts_decorate$
|
|
158
|
+
_ts_decorate$p([
|
|
159
159
|
graphql.Field(()=>[
|
|
160
160
|
ArticleVersionContentInput
|
|
161
161
|
]),
|
|
162
|
-
_ts_metadata$
|
|
162
|
+
_ts_metadata$n("design:type", Array)
|
|
163
163
|
], CreateArticleArgs.prototype, "multiLanguageContents", void 0);
|
|
164
|
-
_ts_decorate$
|
|
164
|
+
_ts_decorate$p([
|
|
165
165
|
graphql.Field(()=>Date, {
|
|
166
166
|
nullable: true
|
|
167
167
|
}),
|
|
168
|
-
_ts_metadata$
|
|
168
|
+
_ts_metadata$n("design:type", Object)
|
|
169
169
|
], CreateArticleArgs.prototype, "releasedAt", void 0);
|
|
170
|
-
_ts_decorate$
|
|
170
|
+
_ts_decorate$p([
|
|
171
171
|
graphql.Field(()=>Boolean, {
|
|
172
172
|
nullable: true
|
|
173
173
|
}),
|
|
174
|
-
_ts_metadata$
|
|
174
|
+
_ts_metadata$n("design:type", Object)
|
|
175
175
|
], CreateArticleArgs.prototype, "submitted", void 0);
|
|
176
|
-
_ts_decorate$
|
|
176
|
+
_ts_decorate$p([
|
|
177
177
|
graphql.Field(()=>String, {
|
|
178
178
|
nullable: true
|
|
179
179
|
}),
|
|
180
|
-
_ts_metadata$
|
|
180
|
+
_ts_metadata$n("design:type", Object)
|
|
181
181
|
], CreateArticleArgs.prototype, "signatureLevel", void 0);
|
|
182
|
-
CreateArticleArgs = _ts_decorate$
|
|
182
|
+
CreateArticleArgs = _ts_decorate$p([
|
|
183
183
|
graphql.ArgsType()
|
|
184
184
|
], CreateArticleArgs);
|
|
185
185
|
|
|
186
|
-
function _ts_decorate$
|
|
186
|
+
function _ts_decorate$o(decorators, target, key, desc) {
|
|
187
187
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
188
188
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
189
189
|
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;
|
|
190
190
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
191
191
|
}
|
|
192
|
-
function _ts_metadata$
|
|
192
|
+
function _ts_metadata$m(k, v) {
|
|
193
193
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
194
194
|
}
|
|
195
195
|
class UpdateArticleArgs extends CreateArticleArgs {
|
|
196
196
|
id;
|
|
197
197
|
}
|
|
198
|
-
_ts_decorate$
|
|
198
|
+
_ts_decorate$o([
|
|
199
199
|
graphql.Field(()=>graphql.ID),
|
|
200
|
-
_ts_metadata$
|
|
200
|
+
_ts_metadata$m("design:type", String)
|
|
201
201
|
], UpdateArticleArgs.prototype, "id", void 0);
|
|
202
|
-
UpdateArticleArgs = _ts_decorate$
|
|
202
|
+
UpdateArticleArgs = _ts_decorate$o([
|
|
203
203
|
graphql.ArgsType()
|
|
204
204
|
], UpdateArticleArgs);
|
|
205
205
|
|
|
206
|
-
function _ts_decorate$
|
|
206
|
+
function _ts_decorate$n(decorators, target, key, desc) {
|
|
207
207
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
208
208
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
209
209
|
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;
|
|
210
210
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
211
211
|
}
|
|
212
|
-
function _ts_metadata$
|
|
212
|
+
function _ts_metadata$l(k, v) {
|
|
213
213
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
214
214
|
}
|
|
215
215
|
function _ts_param$7(paramIndex, decorator) {
|
|
@@ -288,43 +288,43 @@ class ArticleMutations {
|
|
|
288
288
|
return this.articleService.withdraw(id);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
_ts_decorate$
|
|
291
|
+
_ts_decorate$n([
|
|
292
292
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
293
293
|
memberBaseNestjsModule.IsPublic(),
|
|
294
294
|
_ts_param$7(0, memberBaseNestjsModule.MemberId()),
|
|
295
295
|
_ts_param$7(1, graphql.Args()),
|
|
296
|
-
_ts_metadata$
|
|
297
|
-
_ts_metadata$
|
|
296
|
+
_ts_metadata$l("design:type", Function),
|
|
297
|
+
_ts_metadata$l("design:paramtypes", [
|
|
298
298
|
String,
|
|
299
299
|
typeof CreateArticleArgs === "undefined" ? Object : CreateArticleArgs
|
|
300
300
|
]),
|
|
301
|
-
_ts_metadata$
|
|
301
|
+
_ts_metadata$l("design:returntype", Promise)
|
|
302
302
|
], ArticleMutations.prototype, "createArticle", null);
|
|
303
|
-
_ts_decorate$
|
|
303
|
+
_ts_decorate$n([
|
|
304
304
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
305
305
|
memberBaseNestjsModule.IsPublic(),
|
|
306
306
|
_ts_param$7(0, memberBaseNestjsModule.MemberId()),
|
|
307
307
|
_ts_param$7(1, graphql.Args()),
|
|
308
|
-
_ts_metadata$
|
|
309
|
-
_ts_metadata$
|
|
308
|
+
_ts_metadata$l("design:type", Function),
|
|
309
|
+
_ts_metadata$l("design:paramtypes", [
|
|
310
310
|
String,
|
|
311
311
|
typeof UpdateArticleArgs === "undefined" ? Object : UpdateArticleArgs
|
|
312
312
|
]),
|
|
313
|
-
_ts_metadata$
|
|
313
|
+
_ts_metadata$l("design:returntype", Promise)
|
|
314
314
|
], ArticleMutations.prototype, "updateArticle", null);
|
|
315
|
-
_ts_decorate$
|
|
315
|
+
_ts_decorate$n([
|
|
316
316
|
graphql.Mutation(()=>Boolean),
|
|
317
317
|
memberBaseNestjsModule.IsPublic(),
|
|
318
318
|
_ts_param$7(0, graphql.Args('id', {
|
|
319
319
|
type: ()=>graphql.ID
|
|
320
320
|
})),
|
|
321
|
-
_ts_metadata$
|
|
322
|
-
_ts_metadata$
|
|
321
|
+
_ts_metadata$l("design:type", Function),
|
|
322
|
+
_ts_metadata$l("design:paramtypes", [
|
|
323
323
|
String
|
|
324
324
|
]),
|
|
325
|
-
_ts_metadata$
|
|
325
|
+
_ts_metadata$l("design:returntype", Promise)
|
|
326
326
|
], ArticleMutations.prototype, "deleteArticle", null);
|
|
327
|
-
_ts_decorate$
|
|
327
|
+
_ts_decorate$n([
|
|
328
328
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
329
329
|
memberBaseNestjsModule.IsPublic(),
|
|
330
330
|
_ts_param$7(0, memberBaseNestjsModule.MemberId()),
|
|
@@ -334,27 +334,27 @@ _ts_decorate$m([
|
|
|
334
334
|
_ts_param$7(2, graphql.Args('version', {
|
|
335
335
|
type: ()=>graphql.Int
|
|
336
336
|
})),
|
|
337
|
-
_ts_metadata$
|
|
338
|
-
_ts_metadata$
|
|
337
|
+
_ts_metadata$l("design:type", Function),
|
|
338
|
+
_ts_metadata$l("design:paramtypes", [
|
|
339
339
|
String,
|
|
340
340
|
String,
|
|
341
341
|
Number
|
|
342
342
|
]),
|
|
343
|
-
_ts_metadata$
|
|
343
|
+
_ts_metadata$l("design:returntype", Promise)
|
|
344
344
|
], ArticleMutations.prototype, "submitArticle", null);
|
|
345
|
-
_ts_decorate$
|
|
345
|
+
_ts_decorate$n([
|
|
346
346
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
347
347
|
memberBaseNestjsModule.IsPublic(),
|
|
348
348
|
_ts_param$7(0, graphql.Args('id', {
|
|
349
349
|
type: ()=>graphql.ID
|
|
350
350
|
})),
|
|
351
|
-
_ts_metadata$
|
|
352
|
-
_ts_metadata$
|
|
351
|
+
_ts_metadata$l("design:type", Function),
|
|
352
|
+
_ts_metadata$l("design:paramtypes", [
|
|
353
353
|
String
|
|
354
354
|
]),
|
|
355
|
-
_ts_metadata$
|
|
355
|
+
_ts_metadata$l("design:returntype", Promise)
|
|
356
356
|
], ArticleMutations.prototype, "approveArticle", null);
|
|
357
|
-
_ts_decorate$
|
|
357
|
+
_ts_decorate$n([
|
|
358
358
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
359
359
|
memberBaseNestjsModule.IsPublic(),
|
|
360
360
|
_ts_param$7(0, graphql.Args('id', {
|
|
@@ -364,14 +364,14 @@ _ts_decorate$m([
|
|
|
364
364
|
type: ()=>String,
|
|
365
365
|
nullable: true
|
|
366
366
|
})),
|
|
367
|
-
_ts_metadata$
|
|
368
|
-
_ts_metadata$
|
|
367
|
+
_ts_metadata$l("design:type", Function),
|
|
368
|
+
_ts_metadata$l("design:paramtypes", [
|
|
369
369
|
String,
|
|
370
370
|
Object
|
|
371
371
|
]),
|
|
372
|
-
_ts_metadata$
|
|
372
|
+
_ts_metadata$l("design:returntype", Promise)
|
|
373
373
|
], ArticleMutations.prototype, "rejectArticle", null);
|
|
374
|
-
_ts_decorate$
|
|
374
|
+
_ts_decorate$n([
|
|
375
375
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
376
376
|
memberBaseNestjsModule.IsPublic(),
|
|
377
377
|
_ts_param$7(0, memberBaseNestjsModule.MemberId()),
|
|
@@ -381,99 +381,99 @@ _ts_decorate$m([
|
|
|
381
381
|
_ts_param$7(2, graphql.Args('releasedAt', {
|
|
382
382
|
type: ()=>Date
|
|
383
383
|
})),
|
|
384
|
-
_ts_metadata$
|
|
385
|
-
_ts_metadata$
|
|
384
|
+
_ts_metadata$l("design:type", Function),
|
|
385
|
+
_ts_metadata$l("design:paramtypes", [
|
|
386
386
|
String,
|
|
387
387
|
String,
|
|
388
388
|
typeof Date === "undefined" ? Object : Date
|
|
389
389
|
]),
|
|
390
|
-
_ts_metadata$
|
|
390
|
+
_ts_metadata$l("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
391
391
|
], ArticleMutations.prototype, "releaseArticle", null);
|
|
392
|
-
_ts_decorate$
|
|
392
|
+
_ts_decorate$n([
|
|
393
393
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
394
394
|
memberBaseNestjsModule.IsPublic(),
|
|
395
395
|
_ts_param$7(0, graphql.Args('id', {
|
|
396
396
|
type: ()=>graphql.ID
|
|
397
397
|
})),
|
|
398
|
-
_ts_metadata$
|
|
399
|
-
_ts_metadata$
|
|
398
|
+
_ts_metadata$l("design:type", Function),
|
|
399
|
+
_ts_metadata$l("design:paramtypes", [
|
|
400
400
|
String
|
|
401
401
|
]),
|
|
402
|
-
_ts_metadata$
|
|
402
|
+
_ts_metadata$l("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
403
403
|
], ArticleMutations.prototype, "withdrawArticle", null);
|
|
404
|
-
ArticleMutations = _ts_decorate$
|
|
404
|
+
ArticleMutations = _ts_decorate$n([
|
|
405
405
|
graphql.Resolver(),
|
|
406
|
-
_ts_metadata$
|
|
407
|
-
_ts_metadata$
|
|
406
|
+
_ts_metadata$l("design:type", Function),
|
|
407
|
+
_ts_metadata$l("design:paramtypes", [
|
|
408
408
|
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService
|
|
409
409
|
])
|
|
410
410
|
], ArticleMutations);
|
|
411
411
|
|
|
412
|
-
function _ts_decorate$
|
|
412
|
+
function _ts_decorate$m(decorators, target, key, desc) {
|
|
413
413
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
414
414
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
415
415
|
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;
|
|
416
416
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
417
417
|
}
|
|
418
|
-
function _ts_metadata$
|
|
418
|
+
function _ts_metadata$k(k, v) {
|
|
419
419
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
420
420
|
}
|
|
421
421
|
class CategoryMultiLanguageNameInput {
|
|
422
422
|
language;
|
|
423
423
|
name;
|
|
424
424
|
}
|
|
425
|
-
_ts_decorate$
|
|
425
|
+
_ts_decorate$m([
|
|
426
426
|
graphql.Field(()=>String, {
|
|
427
427
|
nullable: true
|
|
428
428
|
}),
|
|
429
|
-
_ts_metadata$
|
|
429
|
+
_ts_metadata$k("design:type", Object)
|
|
430
430
|
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
431
|
-
_ts_decorate$
|
|
431
|
+
_ts_decorate$m([
|
|
432
432
|
graphql.Field(()=>String),
|
|
433
|
-
_ts_metadata$
|
|
433
|
+
_ts_metadata$k("design:type", String)
|
|
434
434
|
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
435
|
-
CategoryMultiLanguageNameInput = _ts_decorate$
|
|
435
|
+
CategoryMultiLanguageNameInput = _ts_decorate$m([
|
|
436
436
|
graphql.InputType('CategoryMultiLanguageNameInput')
|
|
437
437
|
], CategoryMultiLanguageNameInput);
|
|
438
438
|
|
|
439
|
-
function _ts_decorate$
|
|
439
|
+
function _ts_decorate$l(decorators, target, key, desc) {
|
|
440
440
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
441
441
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
442
442
|
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;
|
|
443
443
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
444
444
|
}
|
|
445
|
-
function _ts_metadata$
|
|
445
|
+
function _ts_metadata$j(k, v) {
|
|
446
446
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
447
447
|
}
|
|
448
448
|
class CreateCategoryArgs {
|
|
449
449
|
parentIds;
|
|
450
450
|
multiLanguageNames;
|
|
451
451
|
}
|
|
452
|
-
_ts_decorate$
|
|
452
|
+
_ts_decorate$l([
|
|
453
453
|
graphql.Field(()=>[
|
|
454
454
|
graphql.ID
|
|
455
455
|
], {
|
|
456
456
|
nullable: true
|
|
457
457
|
}),
|
|
458
|
-
_ts_metadata$
|
|
458
|
+
_ts_metadata$j("design:type", Object)
|
|
459
459
|
], CreateCategoryArgs.prototype, "parentIds", void 0);
|
|
460
|
-
_ts_decorate$
|
|
460
|
+
_ts_decorate$l([
|
|
461
461
|
graphql.Field(()=>[
|
|
462
462
|
CategoryMultiLanguageNameInput
|
|
463
463
|
]),
|
|
464
|
-
_ts_metadata$
|
|
464
|
+
_ts_metadata$j("design:type", Array)
|
|
465
465
|
], CreateCategoryArgs.prototype, "multiLanguageNames", void 0);
|
|
466
|
-
CreateCategoryArgs = _ts_decorate$
|
|
466
|
+
CreateCategoryArgs = _ts_decorate$l([
|
|
467
467
|
graphql.ArgsType()
|
|
468
468
|
], CreateCategoryArgs);
|
|
469
469
|
|
|
470
|
-
function _ts_decorate$
|
|
470
|
+
function _ts_decorate$k(decorators, target, key, desc) {
|
|
471
471
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
472
472
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
473
473
|
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;
|
|
474
474
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
475
475
|
}
|
|
476
|
-
function _ts_metadata$
|
|
476
|
+
function _ts_metadata$i(k, v) {
|
|
477
477
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
478
478
|
}
|
|
479
479
|
class BaseCategoryDto {
|
|
@@ -481,23 +481,23 @@ class BaseCategoryDto {
|
|
|
481
481
|
createdAt;
|
|
482
482
|
updatedAt;
|
|
483
483
|
}
|
|
484
|
-
_ts_decorate$
|
|
484
|
+
_ts_decorate$k([
|
|
485
485
|
graphql.Field(()=>graphql.ID),
|
|
486
|
-
_ts_metadata$
|
|
486
|
+
_ts_metadata$i("design:type", String)
|
|
487
487
|
], BaseCategoryDto.prototype, "id", void 0);
|
|
488
|
-
_ts_decorate$
|
|
488
|
+
_ts_decorate$k([
|
|
489
489
|
graphql.Field(()=>Date),
|
|
490
|
-
_ts_metadata$
|
|
490
|
+
_ts_metadata$i("design:type", typeof Date === "undefined" ? Object : Date)
|
|
491
491
|
], BaseCategoryDto.prototype, "createdAt", void 0);
|
|
492
|
-
_ts_decorate$
|
|
492
|
+
_ts_decorate$k([
|
|
493
493
|
graphql.Field(()=>Date),
|
|
494
|
-
_ts_metadata$
|
|
494
|
+
_ts_metadata$i("design:type", typeof Date === "undefined" ? Object : Date)
|
|
495
495
|
], BaseCategoryDto.prototype, "updatedAt", void 0);
|
|
496
|
-
BaseCategoryDto = _ts_decorate$
|
|
496
|
+
BaseCategoryDto = _ts_decorate$k([
|
|
497
497
|
graphql.ObjectType('BaseCategory')
|
|
498
498
|
], BaseCategoryDto);
|
|
499
499
|
|
|
500
|
-
function _ts_decorate$
|
|
500
|
+
function _ts_decorate$j(decorators, target, key, desc) {
|
|
501
501
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
502
502
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
503
503
|
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;
|
|
@@ -505,37 +505,37 @@ function _ts_decorate$i(decorators, target, key, desc) {
|
|
|
505
505
|
}
|
|
506
506
|
class BackstageCategoryDto extends BaseCategoryDto {
|
|
507
507
|
}
|
|
508
|
-
BackstageCategoryDto = _ts_decorate$
|
|
508
|
+
BackstageCategoryDto = _ts_decorate$j([
|
|
509
509
|
graphql.ObjectType('BackstageCategory')
|
|
510
510
|
], BackstageCategoryDto);
|
|
511
511
|
|
|
512
|
-
function _ts_decorate$
|
|
512
|
+
function _ts_decorate$i(decorators, target, key, desc) {
|
|
513
513
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
514
514
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
515
515
|
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;
|
|
516
516
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
517
517
|
}
|
|
518
|
-
function _ts_metadata$
|
|
518
|
+
function _ts_metadata$h(k, v) {
|
|
519
519
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
520
520
|
}
|
|
521
521
|
class UpdateCategoryArgs extends CreateCategoryArgs {
|
|
522
522
|
id;
|
|
523
523
|
}
|
|
524
|
-
_ts_decorate$
|
|
524
|
+
_ts_decorate$i([
|
|
525
525
|
graphql.Field(()=>graphql.ID),
|
|
526
|
-
_ts_metadata$
|
|
526
|
+
_ts_metadata$h("design:type", String)
|
|
527
527
|
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
528
|
-
UpdateCategoryArgs = _ts_decorate$
|
|
528
|
+
UpdateCategoryArgs = _ts_decorate$i([
|
|
529
529
|
graphql.ArgsType()
|
|
530
530
|
], UpdateCategoryArgs);
|
|
531
531
|
|
|
532
|
-
function _ts_decorate$
|
|
532
|
+
function _ts_decorate$h(decorators, target, key, desc) {
|
|
533
533
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
534
534
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
535
535
|
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;
|
|
536
536
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
537
537
|
}
|
|
538
|
-
function _ts_metadata$
|
|
538
|
+
function _ts_metadata$g(k, v) {
|
|
539
539
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
540
540
|
}
|
|
541
541
|
function _ts_param$6(paramIndex, decorator) {
|
|
@@ -571,53 +571,53 @@ class CategoryMutations {
|
|
|
571
571
|
return true;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
_ts_decorate$
|
|
574
|
+
_ts_decorate$h([
|
|
575
575
|
graphql.Mutation(()=>BackstageCategoryDto),
|
|
576
576
|
memberBaseNestjsModule.IsPublic(),
|
|
577
577
|
_ts_param$6(0, graphql.Args()),
|
|
578
|
-
_ts_metadata$
|
|
579
|
-
_ts_metadata$
|
|
578
|
+
_ts_metadata$g("design:type", Function),
|
|
579
|
+
_ts_metadata$g("design:paramtypes", [
|
|
580
580
|
typeof CreateCategoryArgs === "undefined" ? Object : CreateCategoryArgs
|
|
581
581
|
]),
|
|
582
|
-
_ts_metadata$
|
|
582
|
+
_ts_metadata$g("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
583
583
|
], CategoryMutations.prototype, "createCategory", null);
|
|
584
|
-
_ts_decorate$
|
|
584
|
+
_ts_decorate$h([
|
|
585
585
|
graphql.Mutation(()=>BackstageCategoryDto),
|
|
586
586
|
memberBaseNestjsModule.IsPublic(),
|
|
587
587
|
_ts_param$6(0, graphql.Args()),
|
|
588
|
-
_ts_metadata$
|
|
589
|
-
_ts_metadata$
|
|
588
|
+
_ts_metadata$g("design:type", Function),
|
|
589
|
+
_ts_metadata$g("design:paramtypes", [
|
|
590
590
|
typeof UpdateCategoryArgs === "undefined" ? Object : UpdateCategoryArgs
|
|
591
591
|
]),
|
|
592
|
-
_ts_metadata$
|
|
592
|
+
_ts_metadata$g("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
593
593
|
], CategoryMutations.prototype, "updateCategory", null);
|
|
594
|
-
_ts_decorate$
|
|
594
|
+
_ts_decorate$h([
|
|
595
595
|
graphql.Mutation(()=>Boolean),
|
|
596
596
|
memberBaseNestjsModule.IsPublic(),
|
|
597
597
|
_ts_param$6(0, graphql.Args('id', {
|
|
598
598
|
type: ()=>graphql.ID
|
|
599
599
|
})),
|
|
600
|
-
_ts_metadata$
|
|
601
|
-
_ts_metadata$
|
|
600
|
+
_ts_metadata$g("design:type", Function),
|
|
601
|
+
_ts_metadata$g("design:paramtypes", [
|
|
602
602
|
String
|
|
603
603
|
]),
|
|
604
|
-
_ts_metadata$
|
|
604
|
+
_ts_metadata$g("design:returntype", Promise)
|
|
605
605
|
], CategoryMutations.prototype, "deleteCategory", null);
|
|
606
|
-
CategoryMutations = _ts_decorate$
|
|
606
|
+
CategoryMutations = _ts_decorate$h([
|
|
607
607
|
graphql.Resolver(),
|
|
608
|
-
_ts_metadata$
|
|
609
|
-
_ts_metadata$
|
|
608
|
+
_ts_metadata$g("design:type", Function),
|
|
609
|
+
_ts_metadata$g("design:paramtypes", [
|
|
610
610
|
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
611
611
|
])
|
|
612
612
|
], CategoryMutations);
|
|
613
613
|
|
|
614
|
-
function _ts_decorate$
|
|
614
|
+
function _ts_decorate$g(decorators, target, key, desc) {
|
|
615
615
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
616
616
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
617
617
|
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;
|
|
618
618
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
619
619
|
}
|
|
620
|
-
function _ts_metadata$
|
|
620
|
+
function _ts_metadata$f(k, v) {
|
|
621
621
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
622
622
|
}
|
|
623
623
|
class ArticlesArgs {
|
|
@@ -626,33 +626,33 @@ class ArticlesArgs {
|
|
|
626
626
|
limit;
|
|
627
627
|
searchTerm;
|
|
628
628
|
}
|
|
629
|
-
_ts_decorate$
|
|
629
|
+
_ts_decorate$g([
|
|
630
630
|
graphql.Field(()=>[
|
|
631
631
|
String
|
|
632
632
|
], {
|
|
633
633
|
nullable: true
|
|
634
634
|
}),
|
|
635
|
-
_ts_metadata$
|
|
635
|
+
_ts_metadata$f("design:type", Object)
|
|
636
636
|
], ArticlesArgs.prototype, "categoryIds", void 0);
|
|
637
|
-
_ts_decorate$
|
|
637
|
+
_ts_decorate$g([
|
|
638
638
|
graphql.Field(()=>graphql.Int, {
|
|
639
639
|
nullable: true
|
|
640
640
|
}),
|
|
641
|
-
_ts_metadata$
|
|
641
|
+
_ts_metadata$f("design:type", Object)
|
|
642
642
|
], ArticlesArgs.prototype, "offset", void 0);
|
|
643
|
-
_ts_decorate$
|
|
643
|
+
_ts_decorate$g([
|
|
644
644
|
graphql.Field(()=>graphql.Int, {
|
|
645
645
|
nullable: true
|
|
646
646
|
}),
|
|
647
|
-
_ts_metadata$
|
|
647
|
+
_ts_metadata$f("design:type", Object)
|
|
648
648
|
], ArticlesArgs.prototype, "limit", void 0);
|
|
649
|
-
_ts_decorate$
|
|
649
|
+
_ts_decorate$g([
|
|
650
650
|
graphql.Field(()=>String, {
|
|
651
651
|
nullable: true
|
|
652
652
|
}),
|
|
653
|
-
_ts_metadata$
|
|
653
|
+
_ts_metadata$f("design:type", Object)
|
|
654
654
|
], ArticlesArgs.prototype, "searchTerm", void 0);
|
|
655
|
-
ArticlesArgs = _ts_decorate$
|
|
655
|
+
ArticlesArgs = _ts_decorate$g([
|
|
656
656
|
graphql.ArgsType()
|
|
657
657
|
], ArticlesArgs);
|
|
658
658
|
|
|
@@ -684,13 +684,13 @@ const Language = common.createParamDecorator(async (data, context)=>{
|
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
|
|
687
|
-
function _ts_decorate$
|
|
687
|
+
function _ts_decorate$f(decorators, target, key, desc) {
|
|
688
688
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
689
689
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
690
690
|
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;
|
|
691
691
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
692
692
|
}
|
|
693
|
-
function _ts_metadata$
|
|
693
|
+
function _ts_metadata$e(k, v) {
|
|
694
694
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
695
695
|
}
|
|
696
696
|
class Collection {
|
|
@@ -698,19 +698,19 @@ class Collection {
|
|
|
698
698
|
offset;
|
|
699
699
|
limit;
|
|
700
700
|
}
|
|
701
|
-
_ts_decorate$
|
|
701
|
+
_ts_decorate$f([
|
|
702
702
|
graphql.Field(()=>graphql.Int),
|
|
703
|
-
_ts_metadata$
|
|
703
|
+
_ts_metadata$e("design:type", Number)
|
|
704
704
|
], Collection.prototype, "total", void 0);
|
|
705
|
-
_ts_decorate$
|
|
705
|
+
_ts_decorate$f([
|
|
706
706
|
graphql.Field(()=>graphql.Int),
|
|
707
|
-
_ts_metadata$
|
|
707
|
+
_ts_metadata$e("design:type", Number)
|
|
708
708
|
], Collection.prototype, "offset", void 0);
|
|
709
|
-
_ts_decorate$
|
|
709
|
+
_ts_decorate$f([
|
|
710
710
|
graphql.Field(()=>graphql.Int),
|
|
711
|
-
_ts_metadata$
|
|
711
|
+
_ts_metadata$e("design:type", Number)
|
|
712
712
|
], Collection.prototype, "limit", void 0);
|
|
713
|
-
Collection = _ts_decorate$
|
|
713
|
+
Collection = _ts_decorate$f([
|
|
714
714
|
graphql.ObjectType('Collection')
|
|
715
715
|
], Collection);
|
|
716
716
|
|
|
@@ -754,105 +754,112 @@ const QuadratsContentScalar = new graphql$1.GraphQLScalarType({
|
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
756
|
|
|
757
|
-
function _ts_decorate$
|
|
757
|
+
function _ts_decorate$e(decorators, target, key, desc) {
|
|
758
758
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
759
759
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
760
760
|
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;
|
|
761
761
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
762
762
|
}
|
|
763
|
-
function _ts_metadata$
|
|
763
|
+
function _ts_metadata$d(k, v) {
|
|
764
764
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
765
765
|
}
|
|
766
766
|
class ArticleDto extends BaseArticleDto {
|
|
767
767
|
title;
|
|
768
|
+
description;
|
|
768
769
|
content;
|
|
769
770
|
}
|
|
770
|
-
_ts_decorate$
|
|
771
|
+
_ts_decorate$e([
|
|
771
772
|
graphql.Field(()=>String),
|
|
772
|
-
_ts_metadata$
|
|
773
|
+
_ts_metadata$d("design:type", String)
|
|
773
774
|
], ArticleDto.prototype, "title", void 0);
|
|
774
|
-
_ts_decorate$
|
|
775
|
+
_ts_decorate$e([
|
|
776
|
+
graphql.Field(()=>String, {
|
|
777
|
+
nullable: true
|
|
778
|
+
}),
|
|
779
|
+
_ts_metadata$d("design:type", Object)
|
|
780
|
+
], ArticleDto.prototype, "description", void 0);
|
|
781
|
+
_ts_decorate$e([
|
|
775
782
|
graphql.Field(()=>QuadratsContentScalar),
|
|
776
|
-
_ts_metadata$
|
|
783
|
+
_ts_metadata$d("design:type", Array)
|
|
777
784
|
], ArticleDto.prototype, "content", void 0);
|
|
778
|
-
ArticleDto = _ts_decorate$
|
|
785
|
+
ArticleDto = _ts_decorate$e([
|
|
779
786
|
graphql.ObjectType('Article')
|
|
780
787
|
], ArticleDto);
|
|
781
788
|
|
|
782
|
-
function _ts_decorate$
|
|
789
|
+
function _ts_decorate$d(decorators, target, key, desc) {
|
|
783
790
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
784
791
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
785
792
|
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;
|
|
786
793
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
787
794
|
}
|
|
788
|
-
function _ts_metadata$
|
|
795
|
+
function _ts_metadata$c(k, v) {
|
|
789
796
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
790
797
|
}
|
|
791
798
|
class ArticleCollectionDto extends Collection {
|
|
792
799
|
articles;
|
|
793
800
|
}
|
|
794
|
-
_ts_decorate$
|
|
801
|
+
_ts_decorate$d([
|
|
795
802
|
graphql.Field(()=>[
|
|
796
803
|
ArticleDto
|
|
797
804
|
]),
|
|
798
|
-
_ts_metadata$
|
|
805
|
+
_ts_metadata$c("design:type", Array)
|
|
799
806
|
], ArticleCollectionDto.prototype, "articles", void 0);
|
|
800
|
-
ArticleCollectionDto = _ts_decorate$
|
|
807
|
+
ArticleCollectionDto = _ts_decorate$d([
|
|
801
808
|
graphql.ObjectType('ArticleCollection')
|
|
802
809
|
], ArticleCollectionDto);
|
|
803
810
|
|
|
804
|
-
function _ts_decorate$
|
|
811
|
+
function _ts_decorate$c(decorators, target, key, desc) {
|
|
805
812
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
806
813
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
807
814
|
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;
|
|
808
815
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
809
816
|
}
|
|
810
|
-
function _ts_metadata$
|
|
817
|
+
function _ts_metadata$b(k, v) {
|
|
811
818
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
812
819
|
}
|
|
813
820
|
class BackstageArticleCollectionDto extends Collection {
|
|
814
821
|
articles;
|
|
815
822
|
}
|
|
816
|
-
_ts_decorate$
|
|
823
|
+
_ts_decorate$c([
|
|
817
824
|
graphql.Field(()=>[
|
|
818
825
|
BackstageArticleDto
|
|
819
826
|
]),
|
|
820
|
-
_ts_metadata$
|
|
827
|
+
_ts_metadata$b("design:type", Array)
|
|
821
828
|
], BackstageArticleCollectionDto.prototype, "articles", void 0);
|
|
822
|
-
BackstageArticleCollectionDto = _ts_decorate$
|
|
829
|
+
BackstageArticleCollectionDto = _ts_decorate$c([
|
|
823
830
|
graphql.ObjectType('BackstageArticleCollection')
|
|
824
831
|
], BackstageArticleCollectionDto);
|
|
825
832
|
|
|
826
|
-
function _ts_decorate$
|
|
833
|
+
function _ts_decorate$b(decorators, target, key, desc) {
|
|
827
834
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
828
835
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
829
836
|
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;
|
|
830
837
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
831
838
|
}
|
|
832
|
-
function _ts_metadata$
|
|
839
|
+
function _ts_metadata$a(k, v) {
|
|
833
840
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
834
841
|
}
|
|
835
842
|
class BackstageArticleArgs extends ArticlesArgs {
|
|
836
843
|
stage;
|
|
837
844
|
}
|
|
838
|
-
_ts_decorate$
|
|
845
|
+
_ts_decorate$b([
|
|
839
846
|
graphql.Field(()=>cmsBaseNestjsModule.ArticleStage),
|
|
840
|
-
_ts_metadata$
|
|
847
|
+
_ts_metadata$a("design:type", typeof cmsBaseNestjsModule.ArticleStage === "undefined" ? Object : cmsBaseNestjsModule.ArticleStage)
|
|
841
848
|
], BackstageArticleArgs.prototype, "stage", void 0);
|
|
842
|
-
BackstageArticleArgs = _ts_decorate$
|
|
849
|
+
BackstageArticleArgs = _ts_decorate$b([
|
|
843
850
|
graphql.ArgsType()
|
|
844
851
|
], BackstageArticleArgs);
|
|
845
852
|
graphql.registerEnumType(cmsBaseNestjsModule.ArticleStage, {
|
|
846
853
|
name: 'ArticleStage'
|
|
847
854
|
});
|
|
848
855
|
|
|
849
|
-
function _ts_decorate$
|
|
856
|
+
function _ts_decorate$a(decorators, target, key, desc) {
|
|
850
857
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
851
858
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
852
859
|
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;
|
|
853
860
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
854
861
|
}
|
|
855
|
-
function _ts_metadata$
|
|
862
|
+
function _ts_metadata$9(k, v) {
|
|
856
863
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
857
864
|
}
|
|
858
865
|
function _ts_param$5(paramIndex, decorator) {
|
|
@@ -880,7 +887,7 @@ class ArticleQueries {
|
|
|
880
887
|
language: this.multiLanguage ? language ?? cmsBaseNestjsModule.DEFAULT_LANGUAGE : undefined
|
|
881
888
|
});
|
|
882
889
|
}
|
|
883
|
-
backstageArticle(id, version) {
|
|
890
|
+
async backstageArticle(id, version) {
|
|
884
891
|
return this.articleService.findById(id, {
|
|
885
892
|
version
|
|
886
893
|
});
|
|
@@ -889,33 +896,33 @@ class ArticleQueries {
|
|
|
889
896
|
return this.articleService.findCollection(args);
|
|
890
897
|
}
|
|
891
898
|
}
|
|
892
|
-
_ts_decorate$
|
|
899
|
+
_ts_decorate$a([
|
|
893
900
|
graphql.Query(()=>ArticleDto),
|
|
894
901
|
memberBaseNestjsModule.IsPublic(),
|
|
895
902
|
_ts_param$5(0, graphql.Args('id', {
|
|
896
903
|
type: ()=>graphql.ID
|
|
897
904
|
})),
|
|
898
905
|
_ts_param$5(1, Language()),
|
|
899
|
-
_ts_metadata$
|
|
900
|
-
_ts_metadata$
|
|
906
|
+
_ts_metadata$9("design:type", Function),
|
|
907
|
+
_ts_metadata$9("design:paramtypes", [
|
|
901
908
|
String,
|
|
902
909
|
String
|
|
903
910
|
]),
|
|
904
|
-
_ts_metadata$
|
|
911
|
+
_ts_metadata$9("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
905
912
|
], ArticleQueries.prototype, "article", null);
|
|
906
|
-
_ts_decorate$
|
|
913
|
+
_ts_decorate$a([
|
|
907
914
|
graphql.Query(()=>ArticleCollectionDto),
|
|
908
915
|
memberBaseNestjsModule.IsPublic(),
|
|
909
916
|
_ts_param$5(0, graphql.Args()),
|
|
910
917
|
_ts_param$5(1, Language()),
|
|
911
|
-
_ts_metadata$
|
|
912
|
-
_ts_metadata$
|
|
918
|
+
_ts_metadata$9("design:type", Function),
|
|
919
|
+
_ts_metadata$9("design:paramtypes", [
|
|
913
920
|
typeof ArticlesArgs === "undefined" ? Object : ArticlesArgs,
|
|
914
921
|
String
|
|
915
922
|
]),
|
|
916
|
-
_ts_metadata$
|
|
923
|
+
_ts_metadata$9("design:returntype", Promise)
|
|
917
924
|
], ArticleQueries.prototype, "articles", null);
|
|
918
|
-
_ts_decorate$
|
|
925
|
+
_ts_decorate$a([
|
|
919
926
|
graphql.Query(()=>BackstageArticleDto),
|
|
920
927
|
memberBaseNestjsModule.IsPublic(),
|
|
921
928
|
_ts_param$5(0, graphql.Args('id', {
|
|
@@ -925,40 +932,40 @@ _ts_decorate$9([
|
|
|
925
932
|
type: ()=>graphql.Int,
|
|
926
933
|
nullable: true
|
|
927
934
|
})),
|
|
928
|
-
_ts_metadata$
|
|
929
|
-
_ts_metadata$
|
|
935
|
+
_ts_metadata$9("design:type", Function),
|
|
936
|
+
_ts_metadata$9("design:paramtypes", [
|
|
930
937
|
String,
|
|
931
938
|
Object
|
|
932
939
|
]),
|
|
933
|
-
_ts_metadata$
|
|
940
|
+
_ts_metadata$9("design:returntype", Promise)
|
|
934
941
|
], ArticleQueries.prototype, "backstageArticle", null);
|
|
935
|
-
_ts_decorate$
|
|
942
|
+
_ts_decorate$a([
|
|
936
943
|
graphql.Query(()=>BackstageArticleCollectionDto),
|
|
937
944
|
memberBaseNestjsModule.IsPublic(),
|
|
938
945
|
_ts_param$5(0, graphql.Args()),
|
|
939
|
-
_ts_metadata$
|
|
940
|
-
_ts_metadata$
|
|
946
|
+
_ts_metadata$9("design:type", Function),
|
|
947
|
+
_ts_metadata$9("design:paramtypes", [
|
|
941
948
|
typeof BackstageArticleArgs === "undefined" ? Object : BackstageArticleArgs
|
|
942
949
|
]),
|
|
943
|
-
_ts_metadata$
|
|
950
|
+
_ts_metadata$9("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
944
951
|
], ArticleQueries.prototype, "backstageArticles", null);
|
|
945
|
-
ArticleQueries = _ts_decorate$
|
|
952
|
+
ArticleQueries = _ts_decorate$a([
|
|
946
953
|
graphql.Resolver(),
|
|
947
954
|
_ts_param$5(1, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
948
|
-
_ts_metadata$
|
|
949
|
-
_ts_metadata$
|
|
955
|
+
_ts_metadata$9("design:type", Function),
|
|
956
|
+
_ts_metadata$9("design:paramtypes", [
|
|
950
957
|
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService,
|
|
951
958
|
Boolean
|
|
952
959
|
])
|
|
953
960
|
], ArticleQueries);
|
|
954
961
|
|
|
955
|
-
function _ts_decorate$
|
|
962
|
+
function _ts_decorate$9(decorators, target, key, desc) {
|
|
956
963
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
957
964
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
958
965
|
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;
|
|
959
966
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
960
967
|
}
|
|
961
|
-
function _ts_metadata$
|
|
968
|
+
function _ts_metadata$8(k, v) {
|
|
962
969
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
963
970
|
}
|
|
964
971
|
class CategoriesArgs {
|
|
@@ -966,59 +973,59 @@ class CategoriesArgs {
|
|
|
966
973
|
ids;
|
|
967
974
|
searchTerm;
|
|
968
975
|
}
|
|
969
|
-
_ts_decorate$
|
|
976
|
+
_ts_decorate$9([
|
|
970
977
|
graphql.Field(()=>[
|
|
971
978
|
String
|
|
972
979
|
], {
|
|
973
980
|
nullable: true
|
|
974
981
|
}),
|
|
975
|
-
_ts_metadata$
|
|
982
|
+
_ts_metadata$8("design:type", Object)
|
|
976
983
|
], CategoriesArgs.prototype, "parentIds", void 0);
|
|
977
|
-
_ts_decorate$
|
|
984
|
+
_ts_decorate$9([
|
|
978
985
|
graphql.Field(()=>[
|
|
979
986
|
String
|
|
980
987
|
], {
|
|
981
988
|
nullable: true
|
|
982
989
|
}),
|
|
983
|
-
_ts_metadata$
|
|
990
|
+
_ts_metadata$8("design:type", Object)
|
|
984
991
|
], CategoriesArgs.prototype, "ids", void 0);
|
|
985
|
-
_ts_decorate$
|
|
992
|
+
_ts_decorate$9([
|
|
986
993
|
graphql.Field(()=>String, {
|
|
987
994
|
nullable: true
|
|
988
995
|
}),
|
|
989
|
-
_ts_metadata$
|
|
996
|
+
_ts_metadata$8("design:type", Object)
|
|
990
997
|
], CategoriesArgs.prototype, "searchTerm", void 0);
|
|
991
|
-
CategoriesArgs = _ts_decorate$
|
|
998
|
+
CategoriesArgs = _ts_decorate$9([
|
|
992
999
|
graphql.ArgsType()
|
|
993
1000
|
], CategoriesArgs);
|
|
994
1001
|
|
|
995
|
-
function _ts_decorate$
|
|
1002
|
+
function _ts_decorate$8(decorators, target, key, desc) {
|
|
996
1003
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
997
1004
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
998
1005
|
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;
|
|
999
1006
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1000
1007
|
}
|
|
1001
|
-
function _ts_metadata$
|
|
1008
|
+
function _ts_metadata$7(k, v) {
|
|
1002
1009
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1003
1010
|
}
|
|
1004
1011
|
class CategoryDto extends BaseCategoryDto {
|
|
1005
1012
|
name;
|
|
1006
1013
|
}
|
|
1007
|
-
_ts_decorate$
|
|
1014
|
+
_ts_decorate$8([
|
|
1008
1015
|
graphql.Field(()=>String),
|
|
1009
|
-
_ts_metadata$
|
|
1016
|
+
_ts_metadata$7("design:type", String)
|
|
1010
1017
|
], CategoryDto.prototype, "name", void 0);
|
|
1011
|
-
CategoryDto = _ts_decorate$
|
|
1018
|
+
CategoryDto = _ts_decorate$8([
|
|
1012
1019
|
graphql.ObjectType('Category')
|
|
1013
1020
|
], CategoryDto);
|
|
1014
1021
|
|
|
1015
|
-
function _ts_decorate$
|
|
1022
|
+
function _ts_decorate$7(decorators, target, key, desc) {
|
|
1016
1023
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1017
1024
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1018
1025
|
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;
|
|
1019
1026
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1020
1027
|
}
|
|
1021
|
-
function _ts_metadata$
|
|
1028
|
+
function _ts_metadata$6(k, v) {
|
|
1022
1029
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1023
1030
|
}
|
|
1024
1031
|
function _ts_param$4(paramIndex, decorator) {
|
|
@@ -1047,73 +1054,73 @@ class CategoryQueries {
|
|
|
1047
1054
|
return this.categoryService.findAll(args);
|
|
1048
1055
|
}
|
|
1049
1056
|
}
|
|
1050
|
-
_ts_decorate$
|
|
1057
|
+
_ts_decorate$7([
|
|
1051
1058
|
graphql.Query(()=>CategoryDto),
|
|
1052
1059
|
memberBaseNestjsModule.IsPublic(),
|
|
1053
1060
|
_ts_param$4(0, graphql.Args('id', {
|
|
1054
1061
|
type: ()=>graphql.ID
|
|
1055
1062
|
})),
|
|
1056
1063
|
_ts_param$4(1, Language()),
|
|
1057
|
-
_ts_metadata$
|
|
1058
|
-
_ts_metadata$
|
|
1064
|
+
_ts_metadata$6("design:type", Function),
|
|
1065
|
+
_ts_metadata$6("design:paramtypes", [
|
|
1059
1066
|
String,
|
|
1060
1067
|
String
|
|
1061
1068
|
]),
|
|
1062
|
-
_ts_metadata$
|
|
1069
|
+
_ts_metadata$6("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1063
1070
|
], CategoryQueries.prototype, "category", null);
|
|
1064
|
-
_ts_decorate$
|
|
1071
|
+
_ts_decorate$7([
|
|
1065
1072
|
graphql.Query(()=>[
|
|
1066
1073
|
CategoryDto
|
|
1067
1074
|
]),
|
|
1068
1075
|
memberBaseNestjsModule.IsPublic(),
|
|
1069
1076
|
_ts_param$4(0, graphql.Args()),
|
|
1070
1077
|
_ts_param$4(1, Language()),
|
|
1071
|
-
_ts_metadata$
|
|
1072
|
-
_ts_metadata$
|
|
1078
|
+
_ts_metadata$6("design:type", Function),
|
|
1079
|
+
_ts_metadata$6("design:paramtypes", [
|
|
1073
1080
|
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs,
|
|
1074
1081
|
String
|
|
1075
1082
|
]),
|
|
1076
|
-
_ts_metadata$
|
|
1083
|
+
_ts_metadata$6("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1077
1084
|
], CategoryQueries.prototype, "categories", null);
|
|
1078
|
-
_ts_decorate$
|
|
1085
|
+
_ts_decorate$7([
|
|
1079
1086
|
graphql.Query(()=>BackstageCategoryDto),
|
|
1080
1087
|
memberBaseNestjsModule.IsPublic(),
|
|
1081
1088
|
_ts_param$4(0, graphql.Args('id', {
|
|
1082
1089
|
type: ()=>graphql.ID
|
|
1083
1090
|
})),
|
|
1084
|
-
_ts_metadata$
|
|
1085
|
-
_ts_metadata$
|
|
1091
|
+
_ts_metadata$6("design:type", Function),
|
|
1092
|
+
_ts_metadata$6("design:paramtypes", [
|
|
1086
1093
|
String
|
|
1087
1094
|
]),
|
|
1088
|
-
_ts_metadata$
|
|
1095
|
+
_ts_metadata$6("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1089
1096
|
], CategoryQueries.prototype, "backstageCategory", null);
|
|
1090
|
-
_ts_decorate$
|
|
1097
|
+
_ts_decorate$7([
|
|
1091
1098
|
graphql.Query(()=>[
|
|
1092
1099
|
BackstageCategoryDto
|
|
1093
1100
|
]),
|
|
1094
1101
|
memberBaseNestjsModule.IsPublic(),
|
|
1095
1102
|
_ts_param$4(0, graphql.Args()),
|
|
1096
|
-
_ts_metadata$
|
|
1097
|
-
_ts_metadata$
|
|
1103
|
+
_ts_metadata$6("design:type", Function),
|
|
1104
|
+
_ts_metadata$6("design:paramtypes", [
|
|
1098
1105
|
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs
|
|
1099
1106
|
]),
|
|
1100
|
-
_ts_metadata$
|
|
1107
|
+
_ts_metadata$6("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1101
1108
|
], CategoryQueries.prototype, "backstageCategories", null);
|
|
1102
|
-
CategoryQueries = _ts_decorate$
|
|
1109
|
+
CategoryQueries = _ts_decorate$7([
|
|
1103
1110
|
graphql.Resolver(),
|
|
1104
|
-
_ts_metadata$
|
|
1105
|
-
_ts_metadata$
|
|
1111
|
+
_ts_metadata$6("design:type", Function),
|
|
1112
|
+
_ts_metadata$6("design:paramtypes", [
|
|
1106
1113
|
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
1107
1114
|
])
|
|
1108
1115
|
], CategoryQueries);
|
|
1109
1116
|
|
|
1110
|
-
function _ts_decorate$
|
|
1117
|
+
function _ts_decorate$6(decorators, target, key, desc) {
|
|
1111
1118
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1112
1119
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1113
1120
|
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;
|
|
1114
1121
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1115
1122
|
}
|
|
1116
|
-
function _ts_metadata$
|
|
1123
|
+
function _ts_metadata$5(k, v) {
|
|
1117
1124
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1118
1125
|
}
|
|
1119
1126
|
function _ts_param$3(paramIndex, decorator) {
|
|
@@ -1148,22 +1155,22 @@ class MemberDataLoader {
|
|
|
1148
1155
|
}
|
|
1149
1156
|
loader;
|
|
1150
1157
|
}
|
|
1151
|
-
MemberDataLoader = _ts_decorate$
|
|
1158
|
+
MemberDataLoader = _ts_decorate$6([
|
|
1152
1159
|
common.Injectable(),
|
|
1153
1160
|
_ts_param$3(0, common.Inject(memberBaseNestjsModule.RESOLVED_MEMBER_REPO)),
|
|
1154
|
-
_ts_metadata$
|
|
1155
|
-
_ts_metadata$
|
|
1161
|
+
_ts_metadata$5("design:type", Function),
|
|
1162
|
+
_ts_metadata$5("design:paramtypes", [
|
|
1156
1163
|
typeof typeorm.Repository === "undefined" ? Object : typeorm.Repository
|
|
1157
1164
|
])
|
|
1158
1165
|
], MemberDataLoader);
|
|
1159
1166
|
|
|
1160
|
-
function _ts_decorate$
|
|
1167
|
+
function _ts_decorate$5(decorators, target, key, desc) {
|
|
1161
1168
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1162
1169
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1163
1170
|
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;
|
|
1164
1171
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1165
1172
|
}
|
|
1166
|
-
function _ts_metadata$
|
|
1173
|
+
function _ts_metadata$4(k, v) {
|
|
1167
1174
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1168
1175
|
}
|
|
1169
1176
|
function _ts_param$2(paramIndex, decorator) {
|
|
@@ -1206,47 +1213,47 @@ class ArticleDataLoader {
|
|
|
1206
1213
|
}
|
|
1207
1214
|
categoriesLoader;
|
|
1208
1215
|
}
|
|
1209
|
-
ArticleDataLoader = _ts_decorate$
|
|
1216
|
+
ArticleDataLoader = _ts_decorate$5([
|
|
1210
1217
|
common.Injectable(),
|
|
1211
1218
|
_ts_param$2(0, common.Inject(cmsBaseNestjsModule.RESOLVED_ARTICLE_REPO)),
|
|
1212
|
-
_ts_metadata$
|
|
1213
|
-
_ts_metadata$
|
|
1219
|
+
_ts_metadata$4("design:type", Function),
|
|
1220
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1214
1221
|
typeof typeorm.Repository === "undefined" ? Object : typeorm.Repository
|
|
1215
1222
|
])
|
|
1216
1223
|
], ArticleDataLoader);
|
|
1217
1224
|
|
|
1218
|
-
function _ts_decorate$
|
|
1225
|
+
function _ts_decorate$4(decorators, target, key, desc) {
|
|
1219
1226
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1220
1227
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1221
1228
|
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;
|
|
1222
1229
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1223
1230
|
}
|
|
1224
|
-
function _ts_metadata$
|
|
1231
|
+
function _ts_metadata$3(k, v) {
|
|
1225
1232
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1226
1233
|
}
|
|
1227
1234
|
class UserDto {
|
|
1228
1235
|
id;
|
|
1229
1236
|
account;
|
|
1230
1237
|
}
|
|
1231
|
-
_ts_decorate$
|
|
1238
|
+
_ts_decorate$4([
|
|
1232
1239
|
graphql.Field(()=>graphql.ID),
|
|
1233
|
-
_ts_metadata$
|
|
1240
|
+
_ts_metadata$3("design:type", String)
|
|
1234
1241
|
], UserDto.prototype, "id", void 0);
|
|
1235
|
-
_ts_decorate$
|
|
1242
|
+
_ts_decorate$4([
|
|
1236
1243
|
graphql.Field(()=>String),
|
|
1237
|
-
_ts_metadata$
|
|
1244
|
+
_ts_metadata$3("design:type", String)
|
|
1238
1245
|
], UserDto.prototype, "account", void 0);
|
|
1239
|
-
UserDto = _ts_decorate$
|
|
1246
|
+
UserDto = _ts_decorate$4([
|
|
1240
1247
|
graphql.ObjectType('User')
|
|
1241
1248
|
], UserDto);
|
|
1242
1249
|
|
|
1243
|
-
function _ts_decorate$
|
|
1250
|
+
function _ts_decorate$3(decorators, target, key, desc) {
|
|
1244
1251
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1245
1252
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1246
1253
|
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;
|
|
1247
1254
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1248
1255
|
}
|
|
1249
|
-
function _ts_metadata$
|
|
1256
|
+
function _ts_metadata$2(k, v) {
|
|
1250
1257
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1251
1258
|
}
|
|
1252
1259
|
function _ts_param$1(paramIndex, decorator) {
|
|
@@ -1273,43 +1280,80 @@ class ArticleResolver {
|
|
|
1273
1280
|
});
|
|
1274
1281
|
}
|
|
1275
1282
|
}
|
|
1276
|
-
_ts_decorate$
|
|
1283
|
+
_ts_decorate$3([
|
|
1277
1284
|
graphql.ResolveField(()=>UserDto, {
|
|
1278
1285
|
nullable: true
|
|
1279
1286
|
}),
|
|
1280
1287
|
memberBaseNestjsModule.IsPublic(),
|
|
1281
1288
|
_ts_param$1(0, graphql.Root()),
|
|
1282
|
-
_ts_metadata$
|
|
1283
|
-
_ts_metadata$
|
|
1289
|
+
_ts_metadata$2("design:type", Function),
|
|
1290
|
+
_ts_metadata$2("design:paramtypes", [
|
|
1284
1291
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1285
1292
|
]),
|
|
1286
|
-
_ts_metadata$
|
|
1293
|
+
_ts_metadata$2("design:returntype", Object)
|
|
1287
1294
|
], ArticleResolver.prototype, "releasedBy", null);
|
|
1288
|
-
_ts_decorate$
|
|
1295
|
+
_ts_decorate$3([
|
|
1289
1296
|
graphql.ResolveField(()=>[
|
|
1290
1297
|
CategoryDto
|
|
1291
1298
|
]),
|
|
1292
1299
|
memberBaseNestjsModule.IsPublic(),
|
|
1293
1300
|
_ts_param$1(0, graphql.Root()),
|
|
1294
1301
|
_ts_param$1(1, Language()),
|
|
1295
|
-
_ts_metadata$
|
|
1296
|
-
_ts_metadata$
|
|
1302
|
+
_ts_metadata$2("design:type", Function),
|
|
1303
|
+
_ts_metadata$2("design:paramtypes", [
|
|
1297
1304
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto,
|
|
1298
1305
|
String
|
|
1299
1306
|
]),
|
|
1300
|
-
_ts_metadata$
|
|
1307
|
+
_ts_metadata$2("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1301
1308
|
], ArticleResolver.prototype, "categories", null);
|
|
1302
|
-
ArticleResolver = _ts_decorate$
|
|
1309
|
+
ArticleResolver = _ts_decorate$3([
|
|
1303
1310
|
graphql.Resolver(()=>ArticleDto),
|
|
1304
1311
|
_ts_param$1(2, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
1305
|
-
_ts_metadata$
|
|
1306
|
-
_ts_metadata$
|
|
1312
|
+
_ts_metadata$2("design:type", Function),
|
|
1313
|
+
_ts_metadata$2("design:paramtypes", [
|
|
1307
1314
|
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader,
|
|
1308
1315
|
typeof ArticleDataLoader === "undefined" ? Object : ArticleDataLoader,
|
|
1309
1316
|
Boolean
|
|
1310
1317
|
])
|
|
1311
1318
|
], ArticleResolver);
|
|
1312
1319
|
|
|
1320
|
+
function _ts_decorate$2(decorators, target, key, desc) {
|
|
1321
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1322
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1323
|
+
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;
|
|
1324
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1325
|
+
}
|
|
1326
|
+
function _ts_metadata$1(k, v) {
|
|
1327
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1328
|
+
}
|
|
1329
|
+
class ArticleMultiLanguageContentDto {
|
|
1330
|
+
language;
|
|
1331
|
+
title;
|
|
1332
|
+
description;
|
|
1333
|
+
content;
|
|
1334
|
+
}
|
|
1335
|
+
_ts_decorate$2([
|
|
1336
|
+
graphql.Field(()=>String),
|
|
1337
|
+
_ts_metadata$1("design:type", String)
|
|
1338
|
+
], ArticleMultiLanguageContentDto.prototype, "language", void 0);
|
|
1339
|
+
_ts_decorate$2([
|
|
1340
|
+
graphql.Field(()=>String),
|
|
1341
|
+
_ts_metadata$1("design:type", String)
|
|
1342
|
+
], ArticleMultiLanguageContentDto.prototype, "title", void 0);
|
|
1343
|
+
_ts_decorate$2([
|
|
1344
|
+
graphql.Field(()=>String, {
|
|
1345
|
+
nullable: true
|
|
1346
|
+
}),
|
|
1347
|
+
_ts_metadata$1("design:type", Object)
|
|
1348
|
+
], ArticleMultiLanguageContentDto.prototype, "description", void 0);
|
|
1349
|
+
_ts_decorate$2([
|
|
1350
|
+
graphql.Field(()=>QuadratsContentScalar),
|
|
1351
|
+
_ts_metadata$1("design:type", Array)
|
|
1352
|
+
], ArticleMultiLanguageContentDto.prototype, "content", void 0);
|
|
1353
|
+
ArticleMultiLanguageContentDto = _ts_decorate$2([
|
|
1354
|
+
graphql.ObjectType('ArticleMultiLanguageContent')
|
|
1355
|
+
], ArticleMultiLanguageContentDto);
|
|
1356
|
+
|
|
1313
1357
|
function _ts_decorate$1(decorators, target, key, desc) {
|
|
1314
1358
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1315
1359
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1348,6 +1392,37 @@ class BackstageArticleResolver {
|
|
|
1348
1392
|
language: this.multiLanguage ? language : cmsBaseNestjsModule.DEFAULT_LANGUAGE
|
|
1349
1393
|
});
|
|
1350
1394
|
}
|
|
1395
|
+
title(article) {
|
|
1396
|
+
if ('title' in article && !this.multiLanguage) {
|
|
1397
|
+
return article.title;
|
|
1398
|
+
}
|
|
1399
|
+
throw new common.BadRequestException('Title field is not available in multi-language mode.');
|
|
1400
|
+
}
|
|
1401
|
+
description(article) {
|
|
1402
|
+
if ('description' in article && !this.multiLanguage) {
|
|
1403
|
+
return article.description ?? null;
|
|
1404
|
+
}
|
|
1405
|
+
throw new common.BadRequestException('Description field is not available in multi-language mode.');
|
|
1406
|
+
}
|
|
1407
|
+
content(article) {
|
|
1408
|
+
if ('content' in article && !this.multiLanguage) {
|
|
1409
|
+
return article.content;
|
|
1410
|
+
}
|
|
1411
|
+
throw new common.BadRequestException('Content field is not available in multi-language mode.');
|
|
1412
|
+
}
|
|
1413
|
+
multiLanguageContents(article) {
|
|
1414
|
+
if ('multiLanguageContents' in article) {
|
|
1415
|
+
return article.multiLanguageContents;
|
|
1416
|
+
}
|
|
1417
|
+
return [
|
|
1418
|
+
{
|
|
1419
|
+
language: cmsBaseNestjsModule.DEFAULT_LANGUAGE,
|
|
1420
|
+
title: article.title,
|
|
1421
|
+
description: article.description,
|
|
1422
|
+
content: article.content
|
|
1423
|
+
}
|
|
1424
|
+
];
|
|
1425
|
+
}
|
|
1351
1426
|
}
|
|
1352
1427
|
_ts_decorate$1([
|
|
1353
1428
|
graphql.ResolveField(()=>UserDto, {
|
|
@@ -1399,6 +1474,50 @@ _ts_decorate$1([
|
|
|
1399
1474
|
]),
|
|
1400
1475
|
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1401
1476
|
], BackstageArticleResolver.prototype, "categories", null);
|
|
1477
|
+
_ts_decorate$1([
|
|
1478
|
+
graphql.ResolveField(()=>String),
|
|
1479
|
+
memberBaseNestjsModule.IsPublic(),
|
|
1480
|
+
_ts_param(0, graphql.Root()),
|
|
1481
|
+
_ts_metadata("design:type", Function),
|
|
1482
|
+
_ts_metadata("design:paramtypes", [
|
|
1483
|
+
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1484
|
+
]),
|
|
1485
|
+
_ts_metadata("design:returntype", String)
|
|
1486
|
+
], BackstageArticleResolver.prototype, "title", null);
|
|
1487
|
+
_ts_decorate$1([
|
|
1488
|
+
graphql.ResolveField(()=>String, {
|
|
1489
|
+
nullable: true
|
|
1490
|
+
}),
|
|
1491
|
+
memberBaseNestjsModule.IsPublic(),
|
|
1492
|
+
_ts_param(0, graphql.Root()),
|
|
1493
|
+
_ts_metadata("design:type", Function),
|
|
1494
|
+
_ts_metadata("design:paramtypes", [
|
|
1495
|
+
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1496
|
+
]),
|
|
1497
|
+
_ts_metadata("design:returntype", Object)
|
|
1498
|
+
], BackstageArticleResolver.prototype, "description", null);
|
|
1499
|
+
_ts_decorate$1([
|
|
1500
|
+
graphql.ResolveField(()=>QuadratsContentScalar),
|
|
1501
|
+
memberBaseNestjsModule.IsPublic(),
|
|
1502
|
+
_ts_param(0, graphql.Root()),
|
|
1503
|
+
_ts_metadata("design:type", Function),
|
|
1504
|
+
_ts_metadata("design:paramtypes", [
|
|
1505
|
+
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1506
|
+
]),
|
|
1507
|
+
_ts_metadata("design:returntype", Array)
|
|
1508
|
+
], BackstageArticleResolver.prototype, "content", null);
|
|
1509
|
+
_ts_decorate$1([
|
|
1510
|
+
graphql.ResolveField(()=>[
|
|
1511
|
+
ArticleMultiLanguageContentDto
|
|
1512
|
+
]),
|
|
1513
|
+
memberBaseNestjsModule.IsPublic(),
|
|
1514
|
+
_ts_param(0, graphql.Root()),
|
|
1515
|
+
_ts_metadata("design:type", Function),
|
|
1516
|
+
_ts_metadata("design:paramtypes", [
|
|
1517
|
+
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1518
|
+
]),
|
|
1519
|
+
_ts_metadata("design:returntype", Array)
|
|
1520
|
+
], BackstageArticleResolver.prototype, "multiLanguageContents", null);
|
|
1402
1521
|
BackstageArticleResolver = _ts_decorate$1([
|
|
1403
1522
|
graphql.Resolver(()=>BackstageArticleDto),
|
|
1404
1523
|
_ts_param(2, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|