@rytass/cms-base-nestjs-graphql-module 0.0.16 → 0.0.18
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 +3 -0
- package/dto/article-signature-step.dto.d.ts +4 -0
- package/dto/article-signature-step.dto.js +28 -0
- package/dto/article-signature.dto.d.ts +7 -0
- package/dto/article-signature.dto.js +44 -0
- package/dto/article-stage-version.dto.d.ts +9 -0
- package/dto/article-stage-version.dto.js +59 -0
- package/index.cjs.js +599 -378
- package/package.json +2 -2
- package/resolvers/article-signature.resolver.d.ts +10 -0
- package/resolvers/article-signature.resolver.js +68 -0
- package/resolvers/backstage-article.resolver.d.ts +6 -2
- package/resolvers/backstage-article.resolver.js +44 -3
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$w(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$u(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$w([
|
|
29
29
|
graphql.Field(()=>graphql.ID),
|
|
30
|
-
_ts_metadata$
|
|
30
|
+
_ts_metadata$u("design:type", String)
|
|
31
31
|
], BaseArticleDto.prototype, "id", void 0);
|
|
32
|
-
_ts_decorate$
|
|
32
|
+
_ts_decorate$w([
|
|
33
33
|
graphql.Field(()=>[
|
|
34
34
|
String
|
|
35
35
|
]),
|
|
36
|
-
_ts_metadata$
|
|
36
|
+
_ts_metadata$u("design:type", Array)
|
|
37
37
|
], BaseArticleDto.prototype, "tags", void 0);
|
|
38
|
-
_ts_decorate$
|
|
38
|
+
_ts_decorate$w([
|
|
39
39
|
graphql.Field(()=>Date),
|
|
40
|
-
_ts_metadata$
|
|
40
|
+
_ts_metadata$u("design:type", typeof Date === "undefined" ? Object : Date)
|
|
41
41
|
], BaseArticleDto.prototype, "createdAt", void 0);
|
|
42
|
-
_ts_decorate$
|
|
42
|
+
_ts_decorate$w([
|
|
43
43
|
graphql.Field(()=>Date),
|
|
44
|
-
_ts_metadata$
|
|
44
|
+
_ts_metadata$u("design:type", typeof Date === "undefined" ? Object : Date)
|
|
45
45
|
], BaseArticleDto.prototype, "updatedAt", void 0);
|
|
46
|
-
_ts_decorate$
|
|
46
|
+
_ts_decorate$w([
|
|
47
47
|
graphql.Field(()=>Date, {
|
|
48
48
|
nullable: true
|
|
49
49
|
}),
|
|
50
|
-
_ts_metadata$
|
|
50
|
+
_ts_metadata$u("design:type", Object)
|
|
51
51
|
], BaseArticleDto.prototype, "releasedAt", void 0);
|
|
52
|
-
BaseArticleDto = _ts_decorate$
|
|
52
|
+
BaseArticleDto = _ts_decorate$w([
|
|
53
53
|
graphql.ObjectType('BaseArticle')
|
|
54
54
|
], BaseArticleDto);
|
|
55
55
|
|
|
56
|
-
function _ts_decorate$
|
|
56
|
+
function _ts_decorate$v(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$t(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$v([
|
|
71
71
|
graphql.Field(()=>graphql.Int),
|
|
72
|
-
_ts_metadata$
|
|
72
|
+
_ts_metadata$t("design:type", Number)
|
|
73
73
|
], BackstageArticleDto.prototype, "version", void 0);
|
|
74
|
-
_ts_decorate$
|
|
74
|
+
_ts_decorate$v([
|
|
75
75
|
graphql.Field(()=>Date, {
|
|
76
76
|
nullable: true
|
|
77
77
|
}),
|
|
78
|
-
_ts_metadata$
|
|
78
|
+
_ts_metadata$t("design:type", Object)
|
|
79
79
|
], BackstageArticleDto.prototype, "deletedAt", void 0);
|
|
80
|
-
_ts_decorate$
|
|
80
|
+
_ts_decorate$v([
|
|
81
81
|
graphql.Field(()=>Date, {
|
|
82
82
|
nullable: true
|
|
83
83
|
}),
|
|
84
|
-
_ts_metadata$
|
|
84
|
+
_ts_metadata$t("design:type", Object)
|
|
85
85
|
], BackstageArticleDto.prototype, "submittedAt", void 0);
|
|
86
|
-
BackstageArticleDto = _ts_decorate$
|
|
86
|
+
BackstageArticleDto = _ts_decorate$v([
|
|
87
87
|
graphql.ObjectType('BackstageArticle')
|
|
88
88
|
], BackstageArticleDto);
|
|
89
89
|
|
|
90
|
-
function _ts_decorate$
|
|
90
|
+
function _ts_decorate$u(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$s(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$u([
|
|
106
106
|
graphql.Field(()=>String, {
|
|
107
107
|
nullable: true
|
|
108
108
|
}),
|
|
109
|
-
_ts_metadata$
|
|
109
|
+
_ts_metadata$s("design:type", Object)
|
|
110
110
|
], ArticleVersionContentInput.prototype, "language", void 0);
|
|
111
|
-
_ts_decorate$
|
|
111
|
+
_ts_decorate$u([
|
|
112
112
|
graphql.Field(()=>String),
|
|
113
|
-
_ts_metadata$
|
|
113
|
+
_ts_metadata$s("design:type", String)
|
|
114
114
|
], ArticleVersionContentInput.prototype, "title", void 0);
|
|
115
|
-
_ts_decorate$
|
|
115
|
+
_ts_decorate$u([
|
|
116
116
|
graphql.Field(()=>String, {
|
|
117
117
|
nullable: true
|
|
118
118
|
}),
|
|
119
|
-
_ts_metadata$
|
|
119
|
+
_ts_metadata$s("design:type", Object)
|
|
120
120
|
], ArticleVersionContentInput.prototype, "description", void 0);
|
|
121
|
-
_ts_decorate$
|
|
121
|
+
_ts_decorate$u([
|
|
122
122
|
graphql.Field(()=>String),
|
|
123
|
-
_ts_metadata$
|
|
123
|
+
_ts_metadata$s("design:type", String)
|
|
124
124
|
], ArticleVersionContentInput.prototype, "content", void 0);
|
|
125
|
-
ArticleVersionContentInput = _ts_decorate$
|
|
125
|
+
ArticleVersionContentInput = _ts_decorate$u([
|
|
126
126
|
graphql.InputType('ArticleVersionContentInput')
|
|
127
127
|
], ArticleVersionContentInput);
|
|
128
128
|
|
|
129
|
-
function _ts_decorate$
|
|
129
|
+
function _ts_decorate$t(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$r(k, v) {
|
|
136
136
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
137
137
|
}
|
|
138
138
|
class CreateArticleArgs {
|
|
@@ -143,76 +143,76 @@ class CreateArticleArgs {
|
|
|
143
143
|
submitted;
|
|
144
144
|
signatureLevel;
|
|
145
145
|
}
|
|
146
|
-
_ts_decorate$
|
|
146
|
+
_ts_decorate$t([
|
|
147
147
|
graphql.Field(()=>[
|
|
148
148
|
graphql.ID
|
|
149
149
|
]),
|
|
150
|
-
_ts_metadata$
|
|
150
|
+
_ts_metadata$r("design:type", Array)
|
|
151
151
|
], CreateArticleArgs.prototype, "categoryIds", void 0);
|
|
152
|
-
_ts_decorate$
|
|
152
|
+
_ts_decorate$t([
|
|
153
153
|
graphql.Field(()=>[
|
|
154
154
|
String
|
|
155
155
|
]),
|
|
156
|
-
_ts_metadata$
|
|
156
|
+
_ts_metadata$r("design:type", Array)
|
|
157
157
|
], CreateArticleArgs.prototype, "tags", void 0);
|
|
158
|
-
_ts_decorate$
|
|
158
|
+
_ts_decorate$t([
|
|
159
159
|
graphql.Field(()=>[
|
|
160
160
|
ArticleVersionContentInput
|
|
161
161
|
]),
|
|
162
|
-
_ts_metadata$
|
|
162
|
+
_ts_metadata$r("design:type", Array)
|
|
163
163
|
], CreateArticleArgs.prototype, "multiLanguageContents", void 0);
|
|
164
|
-
_ts_decorate$
|
|
164
|
+
_ts_decorate$t([
|
|
165
165
|
graphql.Field(()=>Date, {
|
|
166
166
|
nullable: true
|
|
167
167
|
}),
|
|
168
|
-
_ts_metadata$
|
|
168
|
+
_ts_metadata$r("design:type", Object)
|
|
169
169
|
], CreateArticleArgs.prototype, "releasedAt", void 0);
|
|
170
|
-
_ts_decorate$
|
|
170
|
+
_ts_decorate$t([
|
|
171
171
|
graphql.Field(()=>Boolean, {
|
|
172
172
|
nullable: true
|
|
173
173
|
}),
|
|
174
|
-
_ts_metadata$
|
|
174
|
+
_ts_metadata$r("design:type", Object)
|
|
175
175
|
], CreateArticleArgs.prototype, "submitted", void 0);
|
|
176
|
-
_ts_decorate$
|
|
176
|
+
_ts_decorate$t([
|
|
177
177
|
graphql.Field(()=>String, {
|
|
178
178
|
nullable: true
|
|
179
179
|
}),
|
|
180
|
-
_ts_metadata$
|
|
180
|
+
_ts_metadata$r("design:type", Object)
|
|
181
181
|
], CreateArticleArgs.prototype, "signatureLevel", void 0);
|
|
182
|
-
CreateArticleArgs = _ts_decorate$
|
|
182
|
+
CreateArticleArgs = _ts_decorate$t([
|
|
183
183
|
graphql.ArgsType()
|
|
184
184
|
], CreateArticleArgs);
|
|
185
185
|
|
|
186
|
-
function _ts_decorate$
|
|
186
|
+
function _ts_decorate$s(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$q(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$s([
|
|
199
199
|
graphql.Field(()=>graphql.ID),
|
|
200
|
-
_ts_metadata$
|
|
200
|
+
_ts_metadata$q("design:type", String)
|
|
201
201
|
], UpdateArticleArgs.prototype, "id", void 0);
|
|
202
|
-
UpdateArticleArgs = _ts_decorate$
|
|
202
|
+
UpdateArticleArgs = _ts_decorate$s([
|
|
203
203
|
graphql.ArgsType()
|
|
204
204
|
], UpdateArticleArgs);
|
|
205
205
|
|
|
206
|
-
function _ts_decorate$
|
|
206
|
+
function _ts_decorate$r(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$p(k, v) {
|
|
213
213
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
214
214
|
}
|
|
215
|
-
function _ts_param$
|
|
215
|
+
function _ts_param$8(paramIndex, decorator) {
|
|
216
216
|
return function(target, key) {
|
|
217
217
|
decorator(target, key, paramIndex);
|
|
218
218
|
};
|
|
@@ -288,192 +288,192 @@ class ArticleMutations {
|
|
|
288
288
|
return this.articleService.withdraw(id);
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
_ts_decorate$
|
|
291
|
+
_ts_decorate$r([
|
|
292
292
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
293
293
|
memberBaseNestjsModule.IsPublic(),
|
|
294
|
-
_ts_param$
|
|
295
|
-
_ts_param$
|
|
296
|
-
_ts_metadata$
|
|
297
|
-
_ts_metadata$
|
|
294
|
+
_ts_param$8(0, memberBaseNestjsModule.MemberId()),
|
|
295
|
+
_ts_param$8(1, graphql.Args()),
|
|
296
|
+
_ts_metadata$p("design:type", Function),
|
|
297
|
+
_ts_metadata$p("design:paramtypes", [
|
|
298
298
|
String,
|
|
299
299
|
typeof CreateArticleArgs === "undefined" ? Object : CreateArticleArgs
|
|
300
300
|
]),
|
|
301
|
-
_ts_metadata$
|
|
301
|
+
_ts_metadata$p("design:returntype", Promise)
|
|
302
302
|
], ArticleMutations.prototype, "createArticle", null);
|
|
303
|
-
_ts_decorate$
|
|
303
|
+
_ts_decorate$r([
|
|
304
304
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
305
305
|
memberBaseNestjsModule.IsPublic(),
|
|
306
|
-
_ts_param$
|
|
307
|
-
_ts_param$
|
|
308
|
-
_ts_metadata$
|
|
309
|
-
_ts_metadata$
|
|
306
|
+
_ts_param$8(0, memberBaseNestjsModule.MemberId()),
|
|
307
|
+
_ts_param$8(1, graphql.Args()),
|
|
308
|
+
_ts_metadata$p("design:type", Function),
|
|
309
|
+
_ts_metadata$p("design:paramtypes", [
|
|
310
310
|
String,
|
|
311
311
|
typeof UpdateArticleArgs === "undefined" ? Object : UpdateArticleArgs
|
|
312
312
|
]),
|
|
313
|
-
_ts_metadata$
|
|
313
|
+
_ts_metadata$p("design:returntype", Promise)
|
|
314
314
|
], ArticleMutations.prototype, "updateArticle", null);
|
|
315
|
-
_ts_decorate$
|
|
315
|
+
_ts_decorate$r([
|
|
316
316
|
graphql.Mutation(()=>Boolean),
|
|
317
317
|
memberBaseNestjsModule.IsPublic(),
|
|
318
|
-
_ts_param$
|
|
318
|
+
_ts_param$8(0, graphql.Args('id', {
|
|
319
319
|
type: ()=>graphql.ID
|
|
320
320
|
})),
|
|
321
|
-
_ts_metadata$
|
|
322
|
-
_ts_metadata$
|
|
321
|
+
_ts_metadata$p("design:type", Function),
|
|
322
|
+
_ts_metadata$p("design:paramtypes", [
|
|
323
323
|
String
|
|
324
324
|
]),
|
|
325
|
-
_ts_metadata$
|
|
325
|
+
_ts_metadata$p("design:returntype", Promise)
|
|
326
326
|
], ArticleMutations.prototype, "deleteArticle", null);
|
|
327
|
-
_ts_decorate$
|
|
327
|
+
_ts_decorate$r([
|
|
328
328
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
329
329
|
memberBaseNestjsModule.IsPublic(),
|
|
330
|
-
_ts_param$
|
|
331
|
-
_ts_param$
|
|
330
|
+
_ts_param$8(0, memberBaseNestjsModule.MemberId()),
|
|
331
|
+
_ts_param$8(1, graphql.Args('id', {
|
|
332
332
|
type: ()=>graphql.ID
|
|
333
333
|
})),
|
|
334
|
-
_ts_param$
|
|
334
|
+
_ts_param$8(2, graphql.Args('version', {
|
|
335
335
|
type: ()=>graphql.Int
|
|
336
336
|
})),
|
|
337
|
-
_ts_metadata$
|
|
338
|
-
_ts_metadata$
|
|
337
|
+
_ts_metadata$p("design:type", Function),
|
|
338
|
+
_ts_metadata$p("design:paramtypes", [
|
|
339
339
|
String,
|
|
340
340
|
String,
|
|
341
341
|
Number
|
|
342
342
|
]),
|
|
343
|
-
_ts_metadata$
|
|
343
|
+
_ts_metadata$p("design:returntype", Promise)
|
|
344
344
|
], ArticleMutations.prototype, "submitArticle", null);
|
|
345
|
-
_ts_decorate$
|
|
345
|
+
_ts_decorate$r([
|
|
346
346
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
347
347
|
memberBaseNestjsModule.IsPublic(),
|
|
348
|
-
_ts_param$
|
|
348
|
+
_ts_param$8(0, graphql.Args('id', {
|
|
349
349
|
type: ()=>graphql.ID
|
|
350
350
|
})),
|
|
351
|
-
_ts_metadata$
|
|
352
|
-
_ts_metadata$
|
|
351
|
+
_ts_metadata$p("design:type", Function),
|
|
352
|
+
_ts_metadata$p("design:paramtypes", [
|
|
353
353
|
String
|
|
354
354
|
]),
|
|
355
|
-
_ts_metadata$
|
|
355
|
+
_ts_metadata$p("design:returntype", Promise)
|
|
356
356
|
], ArticleMutations.prototype, "approveArticle", null);
|
|
357
|
-
_ts_decorate$
|
|
357
|
+
_ts_decorate$r([
|
|
358
358
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
359
359
|
memberBaseNestjsModule.IsPublic(),
|
|
360
|
-
_ts_param$
|
|
360
|
+
_ts_param$8(0, graphql.Args('id', {
|
|
361
361
|
type: ()=>graphql.ID
|
|
362
362
|
})),
|
|
363
|
-
_ts_param$
|
|
363
|
+
_ts_param$8(1, graphql.Args('reason', {
|
|
364
364
|
type: ()=>String,
|
|
365
365
|
nullable: true
|
|
366
366
|
})),
|
|
367
|
-
_ts_metadata$
|
|
368
|
-
_ts_metadata$
|
|
367
|
+
_ts_metadata$p("design:type", Function),
|
|
368
|
+
_ts_metadata$p("design:paramtypes", [
|
|
369
369
|
String,
|
|
370
370
|
Object
|
|
371
371
|
]),
|
|
372
|
-
_ts_metadata$
|
|
372
|
+
_ts_metadata$p("design:returntype", Promise)
|
|
373
373
|
], ArticleMutations.prototype, "rejectArticle", null);
|
|
374
|
-
_ts_decorate$
|
|
374
|
+
_ts_decorate$r([
|
|
375
375
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
376
376
|
memberBaseNestjsModule.IsPublic(),
|
|
377
|
-
_ts_param$
|
|
378
|
-
_ts_param$
|
|
377
|
+
_ts_param$8(0, memberBaseNestjsModule.MemberId()),
|
|
378
|
+
_ts_param$8(1, graphql.Args('id', {
|
|
379
379
|
type: ()=>graphql.ID
|
|
380
380
|
})),
|
|
381
|
-
_ts_param$
|
|
381
|
+
_ts_param$8(2, graphql.Args('releasedAt', {
|
|
382
382
|
type: ()=>Date
|
|
383
383
|
})),
|
|
384
|
-
_ts_metadata$
|
|
385
|
-
_ts_metadata$
|
|
384
|
+
_ts_metadata$p("design:type", Function),
|
|
385
|
+
_ts_metadata$p("design:paramtypes", [
|
|
386
386
|
String,
|
|
387
387
|
String,
|
|
388
388
|
typeof Date === "undefined" ? Object : Date
|
|
389
389
|
]),
|
|
390
|
-
_ts_metadata$
|
|
390
|
+
_ts_metadata$p("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
391
391
|
], ArticleMutations.prototype, "releaseArticle", null);
|
|
392
|
-
_ts_decorate$
|
|
392
|
+
_ts_decorate$r([
|
|
393
393
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
394
394
|
memberBaseNestjsModule.IsPublic(),
|
|
395
|
-
_ts_param$
|
|
395
|
+
_ts_param$8(0, graphql.Args('id', {
|
|
396
396
|
type: ()=>graphql.ID
|
|
397
397
|
})),
|
|
398
|
-
_ts_metadata$
|
|
399
|
-
_ts_metadata$
|
|
398
|
+
_ts_metadata$p("design:type", Function),
|
|
399
|
+
_ts_metadata$p("design:paramtypes", [
|
|
400
400
|
String
|
|
401
401
|
]),
|
|
402
|
-
_ts_metadata$
|
|
402
|
+
_ts_metadata$p("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
403
403
|
], ArticleMutations.prototype, "withdrawArticle", null);
|
|
404
|
-
ArticleMutations = _ts_decorate$
|
|
404
|
+
ArticleMutations = _ts_decorate$r([
|
|
405
405
|
graphql.Resolver(),
|
|
406
|
-
_ts_metadata$
|
|
407
|
-
_ts_metadata$
|
|
406
|
+
_ts_metadata$p("design:type", Function),
|
|
407
|
+
_ts_metadata$p("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$q(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$o(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$q([
|
|
426
426
|
graphql.Field(()=>String, {
|
|
427
427
|
nullable: true
|
|
428
428
|
}),
|
|
429
|
-
_ts_metadata$
|
|
429
|
+
_ts_metadata$o("design:type", Object)
|
|
430
430
|
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
431
|
-
_ts_decorate$
|
|
431
|
+
_ts_decorate$q([
|
|
432
432
|
graphql.Field(()=>String),
|
|
433
|
-
_ts_metadata$
|
|
433
|
+
_ts_metadata$o("design:type", String)
|
|
434
434
|
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
435
|
-
CategoryMultiLanguageNameInput = _ts_decorate$
|
|
435
|
+
CategoryMultiLanguageNameInput = _ts_decorate$q([
|
|
436
436
|
graphql.InputType('CategoryMultiLanguageNameInput')
|
|
437
437
|
], CategoryMultiLanguageNameInput);
|
|
438
438
|
|
|
439
|
-
function _ts_decorate$
|
|
439
|
+
function _ts_decorate$p(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$n(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$p([
|
|
453
453
|
graphql.Field(()=>[
|
|
454
454
|
graphql.ID
|
|
455
455
|
], {
|
|
456
456
|
nullable: true
|
|
457
457
|
}),
|
|
458
|
-
_ts_metadata$
|
|
458
|
+
_ts_metadata$n("design:type", Object)
|
|
459
459
|
], CreateCategoryArgs.prototype, "parentIds", void 0);
|
|
460
|
-
_ts_decorate$
|
|
460
|
+
_ts_decorate$p([
|
|
461
461
|
graphql.Field(()=>[
|
|
462
462
|
CategoryMultiLanguageNameInput
|
|
463
463
|
]),
|
|
464
|
-
_ts_metadata$
|
|
464
|
+
_ts_metadata$n("design:type", Array)
|
|
465
465
|
], CreateCategoryArgs.prototype, "multiLanguageNames", void 0);
|
|
466
|
-
CreateCategoryArgs = _ts_decorate$
|
|
466
|
+
CreateCategoryArgs = _ts_decorate$p([
|
|
467
467
|
graphql.ArgsType()
|
|
468
468
|
], CreateCategoryArgs);
|
|
469
469
|
|
|
470
|
-
function _ts_decorate$
|
|
470
|
+
function _ts_decorate$o(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$m(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$o([
|
|
485
485
|
graphql.Field(()=>graphql.ID),
|
|
486
|
-
_ts_metadata$
|
|
486
|
+
_ts_metadata$m("design:type", String)
|
|
487
487
|
], BaseCategoryDto.prototype, "id", void 0);
|
|
488
|
-
_ts_decorate$
|
|
488
|
+
_ts_decorate$o([
|
|
489
489
|
graphql.Field(()=>Date),
|
|
490
|
-
_ts_metadata$
|
|
490
|
+
_ts_metadata$m("design:type", typeof Date === "undefined" ? Object : Date)
|
|
491
491
|
], BaseCategoryDto.prototype, "createdAt", void 0);
|
|
492
|
-
_ts_decorate$
|
|
492
|
+
_ts_decorate$o([
|
|
493
493
|
graphql.Field(()=>Date),
|
|
494
|
-
_ts_metadata$
|
|
494
|
+
_ts_metadata$m("design:type", typeof Date === "undefined" ? Object : Date)
|
|
495
495
|
], BaseCategoryDto.prototype, "updatedAt", void 0);
|
|
496
|
-
BaseCategoryDto = _ts_decorate$
|
|
496
|
+
BaseCategoryDto = _ts_decorate$o([
|
|
497
497
|
graphql.ObjectType('BaseCategory')
|
|
498
498
|
], BaseCategoryDto);
|
|
499
499
|
|
|
500
|
-
function _ts_decorate$
|
|
500
|
+
function _ts_decorate$n(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,40 +505,40 @@ function _ts_decorate$j(decorators, target, key, desc) {
|
|
|
505
505
|
}
|
|
506
506
|
class BackstageCategoryDto extends BaseCategoryDto {
|
|
507
507
|
}
|
|
508
|
-
BackstageCategoryDto = _ts_decorate$
|
|
508
|
+
BackstageCategoryDto = _ts_decorate$n([
|
|
509
509
|
graphql.ObjectType('BackstageCategory')
|
|
510
510
|
], BackstageCategoryDto);
|
|
511
511
|
|
|
512
|
-
function _ts_decorate$
|
|
512
|
+
function _ts_decorate$m(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$l(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$m([
|
|
525
525
|
graphql.Field(()=>graphql.ID),
|
|
526
|
-
_ts_metadata$
|
|
526
|
+
_ts_metadata$l("design:type", String)
|
|
527
527
|
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
528
|
-
UpdateCategoryArgs = _ts_decorate$
|
|
528
|
+
UpdateCategoryArgs = _ts_decorate$m([
|
|
529
529
|
graphql.ArgsType()
|
|
530
530
|
], UpdateCategoryArgs);
|
|
531
531
|
|
|
532
|
-
function _ts_decorate$
|
|
532
|
+
function _ts_decorate$l(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$k(k, v) {
|
|
539
539
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
540
540
|
}
|
|
541
|
-
function _ts_param$
|
|
541
|
+
function _ts_param$7(paramIndex, decorator) {
|
|
542
542
|
return function(target, key) {
|
|
543
543
|
decorator(target, key, paramIndex);
|
|
544
544
|
};
|
|
@@ -571,53 +571,53 @@ class CategoryMutations {
|
|
|
571
571
|
return true;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
_ts_decorate$
|
|
574
|
+
_ts_decorate$l([
|
|
575
575
|
graphql.Mutation(()=>BackstageCategoryDto),
|
|
576
576
|
memberBaseNestjsModule.IsPublic(),
|
|
577
|
-
_ts_param$
|
|
578
|
-
_ts_metadata$
|
|
579
|
-
_ts_metadata$
|
|
577
|
+
_ts_param$7(0, graphql.Args()),
|
|
578
|
+
_ts_metadata$k("design:type", Function),
|
|
579
|
+
_ts_metadata$k("design:paramtypes", [
|
|
580
580
|
typeof CreateCategoryArgs === "undefined" ? Object : CreateCategoryArgs
|
|
581
581
|
]),
|
|
582
|
-
_ts_metadata$
|
|
582
|
+
_ts_metadata$k("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
583
583
|
], CategoryMutations.prototype, "createCategory", null);
|
|
584
|
-
_ts_decorate$
|
|
584
|
+
_ts_decorate$l([
|
|
585
585
|
graphql.Mutation(()=>BackstageCategoryDto),
|
|
586
586
|
memberBaseNestjsModule.IsPublic(),
|
|
587
|
-
_ts_param$
|
|
588
|
-
_ts_metadata$
|
|
589
|
-
_ts_metadata$
|
|
587
|
+
_ts_param$7(0, graphql.Args()),
|
|
588
|
+
_ts_metadata$k("design:type", Function),
|
|
589
|
+
_ts_metadata$k("design:paramtypes", [
|
|
590
590
|
typeof UpdateCategoryArgs === "undefined" ? Object : UpdateCategoryArgs
|
|
591
591
|
]),
|
|
592
|
-
_ts_metadata$
|
|
592
|
+
_ts_metadata$k("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
593
593
|
], CategoryMutations.prototype, "updateCategory", null);
|
|
594
|
-
_ts_decorate$
|
|
594
|
+
_ts_decorate$l([
|
|
595
595
|
graphql.Mutation(()=>Boolean),
|
|
596
596
|
memberBaseNestjsModule.IsPublic(),
|
|
597
|
-
_ts_param$
|
|
597
|
+
_ts_param$7(0, graphql.Args('id', {
|
|
598
598
|
type: ()=>graphql.ID
|
|
599
599
|
})),
|
|
600
|
-
_ts_metadata$
|
|
601
|
-
_ts_metadata$
|
|
600
|
+
_ts_metadata$k("design:type", Function),
|
|
601
|
+
_ts_metadata$k("design:paramtypes", [
|
|
602
602
|
String
|
|
603
603
|
]),
|
|
604
|
-
_ts_metadata$
|
|
604
|
+
_ts_metadata$k("design:returntype", Promise)
|
|
605
605
|
], CategoryMutations.prototype, "deleteCategory", null);
|
|
606
|
-
CategoryMutations = _ts_decorate$
|
|
606
|
+
CategoryMutations = _ts_decorate$l([
|
|
607
607
|
graphql.Resolver(),
|
|
608
|
-
_ts_metadata$
|
|
609
|
-
_ts_metadata$
|
|
608
|
+
_ts_metadata$k("design:type", Function),
|
|
609
|
+
_ts_metadata$k("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$k(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$j(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$k([
|
|
630
630
|
graphql.Field(()=>[
|
|
631
631
|
String
|
|
632
632
|
], {
|
|
633
633
|
nullable: true
|
|
634
634
|
}),
|
|
635
|
-
_ts_metadata$
|
|
635
|
+
_ts_metadata$j("design:type", Object)
|
|
636
636
|
], ArticlesArgs.prototype, "categoryIds", void 0);
|
|
637
|
-
_ts_decorate$
|
|
637
|
+
_ts_decorate$k([
|
|
638
638
|
graphql.Field(()=>graphql.Int, {
|
|
639
639
|
nullable: true
|
|
640
640
|
}),
|
|
641
|
-
_ts_metadata$
|
|
641
|
+
_ts_metadata$j("design:type", Object)
|
|
642
642
|
], ArticlesArgs.prototype, "offset", void 0);
|
|
643
|
-
_ts_decorate$
|
|
643
|
+
_ts_decorate$k([
|
|
644
644
|
graphql.Field(()=>graphql.Int, {
|
|
645
645
|
nullable: true
|
|
646
646
|
}),
|
|
647
|
-
_ts_metadata$
|
|
647
|
+
_ts_metadata$j("design:type", Object)
|
|
648
648
|
], ArticlesArgs.prototype, "limit", void 0);
|
|
649
|
-
_ts_decorate$
|
|
649
|
+
_ts_decorate$k([
|
|
650
650
|
graphql.Field(()=>String, {
|
|
651
651
|
nullable: true
|
|
652
652
|
}),
|
|
653
|
-
_ts_metadata$
|
|
653
|
+
_ts_metadata$j("design:type", Object)
|
|
654
654
|
], ArticlesArgs.prototype, "searchTerm", void 0);
|
|
655
|
-
ArticlesArgs = _ts_decorate$
|
|
655
|
+
ArticlesArgs = _ts_decorate$k([
|
|
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$j(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$i(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$j([
|
|
702
702
|
graphql.Field(()=>graphql.Int),
|
|
703
|
-
_ts_metadata$
|
|
703
|
+
_ts_metadata$i("design:type", Number)
|
|
704
704
|
], Collection.prototype, "total", void 0);
|
|
705
|
-
_ts_decorate$
|
|
705
|
+
_ts_decorate$j([
|
|
706
706
|
graphql.Field(()=>graphql.Int),
|
|
707
|
-
_ts_metadata$
|
|
707
|
+
_ts_metadata$i("design:type", Number)
|
|
708
708
|
], Collection.prototype, "offset", void 0);
|
|
709
|
-
_ts_decorate$
|
|
709
|
+
_ts_decorate$j([
|
|
710
710
|
graphql.Field(()=>graphql.Int),
|
|
711
|
-
_ts_metadata$
|
|
711
|
+
_ts_metadata$i("design:type", Number)
|
|
712
712
|
], Collection.prototype, "limit", void 0);
|
|
713
|
-
Collection = _ts_decorate$
|
|
713
|
+
Collection = _ts_decorate$j([
|
|
714
714
|
graphql.ObjectType('Collection')
|
|
715
715
|
], Collection);
|
|
716
716
|
|
|
@@ -754,13 +754,13 @@ const QuadratsContentScalar = new graphql$1.GraphQLScalarType({
|
|
|
754
754
|
}
|
|
755
755
|
});
|
|
756
756
|
|
|
757
|
-
function _ts_decorate$
|
|
757
|
+
function _ts_decorate$i(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$h(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 {
|
|
@@ -768,101 +768,101 @@ class ArticleDto extends BaseArticleDto {
|
|
|
768
768
|
description;
|
|
769
769
|
content;
|
|
770
770
|
}
|
|
771
|
-
_ts_decorate$
|
|
771
|
+
_ts_decorate$i([
|
|
772
772
|
graphql.Field(()=>String),
|
|
773
|
-
_ts_metadata$
|
|
773
|
+
_ts_metadata$h("design:type", String)
|
|
774
774
|
], ArticleDto.prototype, "title", void 0);
|
|
775
|
-
_ts_decorate$
|
|
775
|
+
_ts_decorate$i([
|
|
776
776
|
graphql.Field(()=>String, {
|
|
777
777
|
nullable: true
|
|
778
778
|
}),
|
|
779
|
-
_ts_metadata$
|
|
779
|
+
_ts_metadata$h("design:type", Object)
|
|
780
780
|
], ArticleDto.prototype, "description", void 0);
|
|
781
|
-
_ts_decorate$
|
|
781
|
+
_ts_decorate$i([
|
|
782
782
|
graphql.Field(()=>QuadratsContentScalar),
|
|
783
|
-
_ts_metadata$
|
|
783
|
+
_ts_metadata$h("design:type", Array)
|
|
784
784
|
], ArticleDto.prototype, "content", void 0);
|
|
785
|
-
ArticleDto = _ts_decorate$
|
|
785
|
+
ArticleDto = _ts_decorate$i([
|
|
786
786
|
graphql.ObjectType('Article')
|
|
787
787
|
], ArticleDto);
|
|
788
788
|
|
|
789
|
-
function _ts_decorate$
|
|
789
|
+
function _ts_decorate$h(decorators, target, key, desc) {
|
|
790
790
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
791
791
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
792
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;
|
|
793
793
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
794
794
|
}
|
|
795
|
-
function _ts_metadata$
|
|
795
|
+
function _ts_metadata$g(k, v) {
|
|
796
796
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
797
797
|
}
|
|
798
798
|
class ArticleCollectionDto extends Collection {
|
|
799
799
|
articles;
|
|
800
800
|
}
|
|
801
|
-
_ts_decorate$
|
|
801
|
+
_ts_decorate$h([
|
|
802
802
|
graphql.Field(()=>[
|
|
803
803
|
ArticleDto
|
|
804
804
|
]),
|
|
805
|
-
_ts_metadata$
|
|
805
|
+
_ts_metadata$g("design:type", Array)
|
|
806
806
|
], ArticleCollectionDto.prototype, "articles", void 0);
|
|
807
|
-
ArticleCollectionDto = _ts_decorate$
|
|
807
|
+
ArticleCollectionDto = _ts_decorate$h([
|
|
808
808
|
graphql.ObjectType('ArticleCollection')
|
|
809
809
|
], ArticleCollectionDto);
|
|
810
810
|
|
|
811
|
-
function _ts_decorate$
|
|
811
|
+
function _ts_decorate$g(decorators, target, key, desc) {
|
|
812
812
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
813
813
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
814
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;
|
|
815
815
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
816
816
|
}
|
|
817
|
-
function _ts_metadata$
|
|
817
|
+
function _ts_metadata$f(k, v) {
|
|
818
818
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
819
819
|
}
|
|
820
820
|
class BackstageArticleCollectionDto extends Collection {
|
|
821
821
|
articles;
|
|
822
822
|
}
|
|
823
|
-
_ts_decorate$
|
|
823
|
+
_ts_decorate$g([
|
|
824
824
|
graphql.Field(()=>[
|
|
825
825
|
BackstageArticleDto
|
|
826
826
|
]),
|
|
827
|
-
_ts_metadata$
|
|
827
|
+
_ts_metadata$f("design:type", Array)
|
|
828
828
|
], BackstageArticleCollectionDto.prototype, "articles", void 0);
|
|
829
|
-
BackstageArticleCollectionDto = _ts_decorate$
|
|
829
|
+
BackstageArticleCollectionDto = _ts_decorate$g([
|
|
830
830
|
graphql.ObjectType('BackstageArticleCollection')
|
|
831
831
|
], BackstageArticleCollectionDto);
|
|
832
832
|
|
|
833
|
-
function _ts_decorate$
|
|
833
|
+
function _ts_decorate$f(decorators, target, key, desc) {
|
|
834
834
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
835
835
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
836
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;
|
|
837
837
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
838
838
|
}
|
|
839
|
-
function _ts_metadata$
|
|
839
|
+
function _ts_metadata$e(k, v) {
|
|
840
840
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
841
841
|
}
|
|
842
842
|
class BackstageArticleArgs extends ArticlesArgs {
|
|
843
843
|
stage;
|
|
844
844
|
}
|
|
845
|
-
_ts_decorate$
|
|
845
|
+
_ts_decorate$f([
|
|
846
846
|
graphql.Field(()=>cmsBaseNestjsModule.ArticleStage),
|
|
847
|
-
_ts_metadata$
|
|
847
|
+
_ts_metadata$e("design:type", typeof cmsBaseNestjsModule.ArticleStage === "undefined" ? Object : cmsBaseNestjsModule.ArticleStage)
|
|
848
848
|
], BackstageArticleArgs.prototype, "stage", void 0);
|
|
849
|
-
BackstageArticleArgs = _ts_decorate$
|
|
849
|
+
BackstageArticleArgs = _ts_decorate$f([
|
|
850
850
|
graphql.ArgsType()
|
|
851
851
|
], BackstageArticleArgs);
|
|
852
852
|
graphql.registerEnumType(cmsBaseNestjsModule.ArticleStage, {
|
|
853
853
|
name: 'ArticleStage'
|
|
854
854
|
});
|
|
855
855
|
|
|
856
|
-
function _ts_decorate$
|
|
856
|
+
function _ts_decorate$e(decorators, target, key, desc) {
|
|
857
857
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
858
858
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
859
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;
|
|
860
860
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
861
861
|
}
|
|
862
|
-
function _ts_metadata$
|
|
862
|
+
function _ts_metadata$d(k, v) {
|
|
863
863
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
864
864
|
}
|
|
865
|
-
function _ts_param$
|
|
865
|
+
function _ts_param$6(paramIndex, decorator) {
|
|
866
866
|
return function(target, key) {
|
|
867
867
|
decorator(target, key, paramIndex);
|
|
868
868
|
};
|
|
@@ -896,76 +896,76 @@ class ArticleQueries {
|
|
|
896
896
|
return this.articleService.findCollection(args);
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
|
-
_ts_decorate$
|
|
899
|
+
_ts_decorate$e([
|
|
900
900
|
graphql.Query(()=>ArticleDto),
|
|
901
901
|
memberBaseNestjsModule.IsPublic(),
|
|
902
|
-
_ts_param$
|
|
902
|
+
_ts_param$6(0, graphql.Args('id', {
|
|
903
903
|
type: ()=>graphql.ID
|
|
904
904
|
})),
|
|
905
|
-
_ts_param$
|
|
906
|
-
_ts_metadata$
|
|
907
|
-
_ts_metadata$
|
|
905
|
+
_ts_param$6(1, Language()),
|
|
906
|
+
_ts_metadata$d("design:type", Function),
|
|
907
|
+
_ts_metadata$d("design:paramtypes", [
|
|
908
908
|
String,
|
|
909
909
|
String
|
|
910
910
|
]),
|
|
911
|
-
_ts_metadata$
|
|
911
|
+
_ts_metadata$d("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
912
912
|
], ArticleQueries.prototype, "article", null);
|
|
913
|
-
_ts_decorate$
|
|
913
|
+
_ts_decorate$e([
|
|
914
914
|
graphql.Query(()=>ArticleCollectionDto),
|
|
915
915
|
memberBaseNestjsModule.IsPublic(),
|
|
916
|
-
_ts_param$
|
|
917
|
-
_ts_param$
|
|
918
|
-
_ts_metadata$
|
|
919
|
-
_ts_metadata$
|
|
916
|
+
_ts_param$6(0, graphql.Args()),
|
|
917
|
+
_ts_param$6(1, Language()),
|
|
918
|
+
_ts_metadata$d("design:type", Function),
|
|
919
|
+
_ts_metadata$d("design:paramtypes", [
|
|
920
920
|
typeof ArticlesArgs === "undefined" ? Object : ArticlesArgs,
|
|
921
921
|
String
|
|
922
922
|
]),
|
|
923
|
-
_ts_metadata$
|
|
923
|
+
_ts_metadata$d("design:returntype", Promise)
|
|
924
924
|
], ArticleQueries.prototype, "articles", null);
|
|
925
|
-
_ts_decorate$
|
|
925
|
+
_ts_decorate$e([
|
|
926
926
|
graphql.Query(()=>BackstageArticleDto),
|
|
927
927
|
memberBaseNestjsModule.IsPublic(),
|
|
928
|
-
_ts_param$
|
|
928
|
+
_ts_param$6(0, graphql.Args('id', {
|
|
929
929
|
type: ()=>graphql.ID
|
|
930
930
|
})),
|
|
931
|
-
_ts_param$
|
|
931
|
+
_ts_param$6(1, graphql.Args('version', {
|
|
932
932
|
type: ()=>graphql.Int,
|
|
933
933
|
nullable: true
|
|
934
934
|
})),
|
|
935
|
-
_ts_metadata$
|
|
936
|
-
_ts_metadata$
|
|
935
|
+
_ts_metadata$d("design:type", Function),
|
|
936
|
+
_ts_metadata$d("design:paramtypes", [
|
|
937
937
|
String,
|
|
938
938
|
Object
|
|
939
939
|
]),
|
|
940
|
-
_ts_metadata$
|
|
940
|
+
_ts_metadata$d("design:returntype", Promise)
|
|
941
941
|
], ArticleQueries.prototype, "backstageArticle", null);
|
|
942
|
-
_ts_decorate$
|
|
942
|
+
_ts_decorate$e([
|
|
943
943
|
graphql.Query(()=>BackstageArticleCollectionDto),
|
|
944
944
|
memberBaseNestjsModule.IsPublic(),
|
|
945
|
-
_ts_param$
|
|
946
|
-
_ts_metadata$
|
|
947
|
-
_ts_metadata$
|
|
945
|
+
_ts_param$6(0, graphql.Args()),
|
|
946
|
+
_ts_metadata$d("design:type", Function),
|
|
947
|
+
_ts_metadata$d("design:paramtypes", [
|
|
948
948
|
typeof BackstageArticleArgs === "undefined" ? Object : BackstageArticleArgs
|
|
949
949
|
]),
|
|
950
|
-
_ts_metadata$
|
|
950
|
+
_ts_metadata$d("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
951
951
|
], ArticleQueries.prototype, "backstageArticles", null);
|
|
952
|
-
ArticleQueries = _ts_decorate$
|
|
952
|
+
ArticleQueries = _ts_decorate$e([
|
|
953
953
|
graphql.Resolver(),
|
|
954
|
-
_ts_param$
|
|
955
|
-
_ts_metadata$
|
|
956
|
-
_ts_metadata$
|
|
954
|
+
_ts_param$6(1, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
955
|
+
_ts_metadata$d("design:type", Function),
|
|
956
|
+
_ts_metadata$d("design:paramtypes", [
|
|
957
957
|
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService,
|
|
958
958
|
Boolean
|
|
959
959
|
])
|
|
960
960
|
], ArticleQueries);
|
|
961
961
|
|
|
962
|
-
function _ts_decorate$
|
|
962
|
+
function _ts_decorate$d(decorators, target, key, desc) {
|
|
963
963
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
964
964
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
965
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;
|
|
966
966
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
967
967
|
}
|
|
968
|
-
function _ts_metadata$
|
|
968
|
+
function _ts_metadata$c(k, v) {
|
|
969
969
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
970
970
|
}
|
|
971
971
|
class CategoriesArgs {
|
|
@@ -973,62 +973,62 @@ class CategoriesArgs {
|
|
|
973
973
|
ids;
|
|
974
974
|
searchTerm;
|
|
975
975
|
}
|
|
976
|
-
_ts_decorate$
|
|
976
|
+
_ts_decorate$d([
|
|
977
977
|
graphql.Field(()=>[
|
|
978
978
|
String
|
|
979
979
|
], {
|
|
980
980
|
nullable: true
|
|
981
981
|
}),
|
|
982
|
-
_ts_metadata$
|
|
982
|
+
_ts_metadata$c("design:type", Object)
|
|
983
983
|
], CategoriesArgs.prototype, "parentIds", void 0);
|
|
984
|
-
_ts_decorate$
|
|
984
|
+
_ts_decorate$d([
|
|
985
985
|
graphql.Field(()=>[
|
|
986
986
|
String
|
|
987
987
|
], {
|
|
988
988
|
nullable: true
|
|
989
989
|
}),
|
|
990
|
-
_ts_metadata$
|
|
990
|
+
_ts_metadata$c("design:type", Object)
|
|
991
991
|
], CategoriesArgs.prototype, "ids", void 0);
|
|
992
|
-
_ts_decorate$
|
|
992
|
+
_ts_decorate$d([
|
|
993
993
|
graphql.Field(()=>String, {
|
|
994
994
|
nullable: true
|
|
995
995
|
}),
|
|
996
|
-
_ts_metadata$
|
|
996
|
+
_ts_metadata$c("design:type", Object)
|
|
997
997
|
], CategoriesArgs.prototype, "searchTerm", void 0);
|
|
998
|
-
CategoriesArgs = _ts_decorate$
|
|
998
|
+
CategoriesArgs = _ts_decorate$d([
|
|
999
999
|
graphql.ArgsType()
|
|
1000
1000
|
], CategoriesArgs);
|
|
1001
1001
|
|
|
1002
|
-
function _ts_decorate$
|
|
1002
|
+
function _ts_decorate$c(decorators, target, key, desc) {
|
|
1003
1003
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1004
1004
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1005
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;
|
|
1006
1006
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1007
1007
|
}
|
|
1008
|
-
function _ts_metadata$
|
|
1008
|
+
function _ts_metadata$b(k, v) {
|
|
1009
1009
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1010
1010
|
}
|
|
1011
1011
|
class CategoryDto extends BaseCategoryDto {
|
|
1012
1012
|
name;
|
|
1013
1013
|
}
|
|
1014
|
-
_ts_decorate$
|
|
1014
|
+
_ts_decorate$c([
|
|
1015
1015
|
graphql.Field(()=>String),
|
|
1016
|
-
_ts_metadata$
|
|
1016
|
+
_ts_metadata$b("design:type", String)
|
|
1017
1017
|
], CategoryDto.prototype, "name", void 0);
|
|
1018
|
-
CategoryDto = _ts_decorate$
|
|
1018
|
+
CategoryDto = _ts_decorate$c([
|
|
1019
1019
|
graphql.ObjectType('Category')
|
|
1020
1020
|
], CategoryDto);
|
|
1021
1021
|
|
|
1022
|
-
function _ts_decorate$
|
|
1022
|
+
function _ts_decorate$b(decorators, target, key, desc) {
|
|
1023
1023
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1024
1024
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1025
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;
|
|
1026
1026
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1027
1027
|
}
|
|
1028
|
-
function _ts_metadata$
|
|
1028
|
+
function _ts_metadata$a(k, v) {
|
|
1029
1029
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1030
1030
|
}
|
|
1031
|
-
function _ts_param$
|
|
1031
|
+
function _ts_param$5(paramIndex, decorator) {
|
|
1032
1032
|
return function(target, key) {
|
|
1033
1033
|
decorator(target, key, paramIndex);
|
|
1034
1034
|
};
|
|
@@ -1054,76 +1054,76 @@ class CategoryQueries {
|
|
|
1054
1054
|
return this.categoryService.findAll(args);
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
-
_ts_decorate$
|
|
1057
|
+
_ts_decorate$b([
|
|
1058
1058
|
graphql.Query(()=>CategoryDto),
|
|
1059
1059
|
memberBaseNestjsModule.IsPublic(),
|
|
1060
|
-
_ts_param$
|
|
1060
|
+
_ts_param$5(0, graphql.Args('id', {
|
|
1061
1061
|
type: ()=>graphql.ID
|
|
1062
1062
|
})),
|
|
1063
|
-
_ts_param$
|
|
1064
|
-
_ts_metadata$
|
|
1065
|
-
_ts_metadata$
|
|
1063
|
+
_ts_param$5(1, Language()),
|
|
1064
|
+
_ts_metadata$a("design:type", Function),
|
|
1065
|
+
_ts_metadata$a("design:paramtypes", [
|
|
1066
1066
|
String,
|
|
1067
1067
|
String
|
|
1068
1068
|
]),
|
|
1069
|
-
_ts_metadata$
|
|
1069
|
+
_ts_metadata$a("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1070
1070
|
], CategoryQueries.prototype, "category", null);
|
|
1071
|
-
_ts_decorate$
|
|
1071
|
+
_ts_decorate$b([
|
|
1072
1072
|
graphql.Query(()=>[
|
|
1073
1073
|
CategoryDto
|
|
1074
1074
|
]),
|
|
1075
1075
|
memberBaseNestjsModule.IsPublic(),
|
|
1076
|
-
_ts_param$
|
|
1077
|
-
_ts_param$
|
|
1078
|
-
_ts_metadata$
|
|
1079
|
-
_ts_metadata$
|
|
1076
|
+
_ts_param$5(0, graphql.Args()),
|
|
1077
|
+
_ts_param$5(1, Language()),
|
|
1078
|
+
_ts_metadata$a("design:type", Function),
|
|
1079
|
+
_ts_metadata$a("design:paramtypes", [
|
|
1080
1080
|
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs,
|
|
1081
1081
|
String
|
|
1082
1082
|
]),
|
|
1083
|
-
_ts_metadata$
|
|
1083
|
+
_ts_metadata$a("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1084
1084
|
], CategoryQueries.prototype, "categories", null);
|
|
1085
|
-
_ts_decorate$
|
|
1085
|
+
_ts_decorate$b([
|
|
1086
1086
|
graphql.Query(()=>BackstageCategoryDto),
|
|
1087
1087
|
memberBaseNestjsModule.IsPublic(),
|
|
1088
|
-
_ts_param$
|
|
1088
|
+
_ts_param$5(0, graphql.Args('id', {
|
|
1089
1089
|
type: ()=>graphql.ID
|
|
1090
1090
|
})),
|
|
1091
|
-
_ts_metadata$
|
|
1092
|
-
_ts_metadata$
|
|
1091
|
+
_ts_metadata$a("design:type", Function),
|
|
1092
|
+
_ts_metadata$a("design:paramtypes", [
|
|
1093
1093
|
String
|
|
1094
1094
|
]),
|
|
1095
|
-
_ts_metadata$
|
|
1095
|
+
_ts_metadata$a("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1096
1096
|
], CategoryQueries.prototype, "backstageCategory", null);
|
|
1097
|
-
_ts_decorate$
|
|
1097
|
+
_ts_decorate$b([
|
|
1098
1098
|
graphql.Query(()=>[
|
|
1099
1099
|
BackstageCategoryDto
|
|
1100
1100
|
]),
|
|
1101
1101
|
memberBaseNestjsModule.IsPublic(),
|
|
1102
|
-
_ts_param$
|
|
1103
|
-
_ts_metadata$
|
|
1104
|
-
_ts_metadata$
|
|
1102
|
+
_ts_param$5(0, graphql.Args()),
|
|
1103
|
+
_ts_metadata$a("design:type", Function),
|
|
1104
|
+
_ts_metadata$a("design:paramtypes", [
|
|
1105
1105
|
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs
|
|
1106
1106
|
]),
|
|
1107
|
-
_ts_metadata$
|
|
1107
|
+
_ts_metadata$a("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1108
1108
|
], CategoryQueries.prototype, "backstageCategories", null);
|
|
1109
|
-
CategoryQueries = _ts_decorate$
|
|
1109
|
+
CategoryQueries = _ts_decorate$b([
|
|
1110
1110
|
graphql.Resolver(),
|
|
1111
|
-
_ts_metadata$
|
|
1112
|
-
_ts_metadata$
|
|
1111
|
+
_ts_metadata$a("design:type", Function),
|
|
1112
|
+
_ts_metadata$a("design:paramtypes", [
|
|
1113
1113
|
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
1114
1114
|
])
|
|
1115
1115
|
], CategoryQueries);
|
|
1116
1116
|
|
|
1117
|
-
function _ts_decorate$
|
|
1117
|
+
function _ts_decorate$a(decorators, target, key, desc) {
|
|
1118
1118
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1119
1119
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1120
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;
|
|
1121
1121
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1122
1122
|
}
|
|
1123
|
-
function _ts_metadata$
|
|
1123
|
+
function _ts_metadata$9(k, v) {
|
|
1124
1124
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1125
1125
|
}
|
|
1126
|
-
function _ts_param$
|
|
1126
|
+
function _ts_param$4(paramIndex, decorator) {
|
|
1127
1127
|
return function(target, key) {
|
|
1128
1128
|
decorator(target, key, paramIndex);
|
|
1129
1129
|
};
|
|
@@ -1155,25 +1155,25 @@ class MemberDataLoader {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
loader;
|
|
1157
1157
|
}
|
|
1158
|
-
MemberDataLoader = _ts_decorate$
|
|
1158
|
+
MemberDataLoader = _ts_decorate$a([
|
|
1159
1159
|
common.Injectable(),
|
|
1160
|
-
_ts_param$
|
|
1161
|
-
_ts_metadata$
|
|
1162
|
-
_ts_metadata$
|
|
1160
|
+
_ts_param$4(0, common.Inject(memberBaseNestjsModule.RESOLVED_MEMBER_REPO)),
|
|
1161
|
+
_ts_metadata$9("design:type", Function),
|
|
1162
|
+
_ts_metadata$9("design:paramtypes", [
|
|
1163
1163
|
typeof typeorm.Repository === "undefined" ? Object : typeorm.Repository
|
|
1164
1164
|
])
|
|
1165
1165
|
], MemberDataLoader);
|
|
1166
1166
|
|
|
1167
|
-
function _ts_decorate$
|
|
1167
|
+
function _ts_decorate$9(decorators, target, key, desc) {
|
|
1168
1168
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1169
1169
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1170
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;
|
|
1171
1171
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1172
1172
|
}
|
|
1173
|
-
function _ts_metadata$
|
|
1173
|
+
function _ts_metadata$8(k, v) {
|
|
1174
1174
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1175
1175
|
}
|
|
1176
|
-
function _ts_param$
|
|
1176
|
+
function _ts_param$3(paramIndex, decorator) {
|
|
1177
1177
|
return function(target, key) {
|
|
1178
1178
|
decorator(target, key, paramIndex);
|
|
1179
1179
|
};
|
|
@@ -1213,50 +1213,50 @@ class ArticleDataLoader {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
categoriesLoader;
|
|
1215
1215
|
}
|
|
1216
|
-
ArticleDataLoader = _ts_decorate$
|
|
1216
|
+
ArticleDataLoader = _ts_decorate$9([
|
|
1217
1217
|
common.Injectable(),
|
|
1218
|
-
_ts_param$
|
|
1219
|
-
_ts_metadata$
|
|
1220
|
-
_ts_metadata$
|
|
1218
|
+
_ts_param$3(0, common.Inject(cmsBaseNestjsModule.RESOLVED_ARTICLE_REPO)),
|
|
1219
|
+
_ts_metadata$8("design:type", Function),
|
|
1220
|
+
_ts_metadata$8("design:paramtypes", [
|
|
1221
1221
|
typeof typeorm.Repository === "undefined" ? Object : typeorm.Repository
|
|
1222
1222
|
])
|
|
1223
1223
|
], ArticleDataLoader);
|
|
1224
1224
|
|
|
1225
|
-
function _ts_decorate$
|
|
1225
|
+
function _ts_decorate$8(decorators, target, key, desc) {
|
|
1226
1226
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1227
1227
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1228
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;
|
|
1229
1229
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1230
1230
|
}
|
|
1231
|
-
function _ts_metadata$
|
|
1231
|
+
function _ts_metadata$7(k, v) {
|
|
1232
1232
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1233
1233
|
}
|
|
1234
1234
|
class UserDto {
|
|
1235
1235
|
id;
|
|
1236
1236
|
account;
|
|
1237
1237
|
}
|
|
1238
|
-
_ts_decorate$
|
|
1238
|
+
_ts_decorate$8([
|
|
1239
1239
|
graphql.Field(()=>graphql.ID),
|
|
1240
|
-
_ts_metadata$
|
|
1240
|
+
_ts_metadata$7("design:type", String)
|
|
1241
1241
|
], UserDto.prototype, "id", void 0);
|
|
1242
|
-
_ts_decorate$
|
|
1242
|
+
_ts_decorate$8([
|
|
1243
1243
|
graphql.Field(()=>String),
|
|
1244
|
-
_ts_metadata$
|
|
1244
|
+
_ts_metadata$7("design:type", String)
|
|
1245
1245
|
], UserDto.prototype, "account", void 0);
|
|
1246
|
-
UserDto = _ts_decorate$
|
|
1246
|
+
UserDto = _ts_decorate$8([
|
|
1247
1247
|
graphql.ObjectType('User')
|
|
1248
1248
|
], UserDto);
|
|
1249
1249
|
|
|
1250
|
-
function _ts_decorate$
|
|
1250
|
+
function _ts_decorate$7(decorators, target, key, desc) {
|
|
1251
1251
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1252
1252
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1253
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;
|
|
1254
1254
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1255
1255
|
}
|
|
1256
|
-
function _ts_metadata$
|
|
1256
|
+
function _ts_metadata$6(k, v) {
|
|
1257
1257
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1258
1258
|
}
|
|
1259
|
-
function _ts_param$
|
|
1259
|
+
function _ts_param$2(paramIndex, decorator) {
|
|
1260
1260
|
return function(target, key) {
|
|
1261
1261
|
decorator(target, key, paramIndex);
|
|
1262
1262
|
};
|
|
@@ -1280,50 +1280,50 @@ class ArticleResolver {
|
|
|
1280
1280
|
});
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
|
-
_ts_decorate$
|
|
1283
|
+
_ts_decorate$7([
|
|
1284
1284
|
graphql.ResolveField(()=>UserDto, {
|
|
1285
1285
|
nullable: true
|
|
1286
1286
|
}),
|
|
1287
1287
|
memberBaseNestjsModule.IsPublic(),
|
|
1288
|
-
_ts_param$
|
|
1289
|
-
_ts_metadata$
|
|
1290
|
-
_ts_metadata$
|
|
1288
|
+
_ts_param$2(0, graphql.Root()),
|
|
1289
|
+
_ts_metadata$6("design:type", Function),
|
|
1290
|
+
_ts_metadata$6("design:paramtypes", [
|
|
1291
1291
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1292
1292
|
]),
|
|
1293
|
-
_ts_metadata$
|
|
1293
|
+
_ts_metadata$6("design:returntype", Object)
|
|
1294
1294
|
], ArticleResolver.prototype, "releasedBy", null);
|
|
1295
|
-
_ts_decorate$
|
|
1295
|
+
_ts_decorate$7([
|
|
1296
1296
|
graphql.ResolveField(()=>[
|
|
1297
1297
|
CategoryDto
|
|
1298
1298
|
]),
|
|
1299
1299
|
memberBaseNestjsModule.IsPublic(),
|
|
1300
|
-
_ts_param$
|
|
1301
|
-
_ts_param$
|
|
1302
|
-
_ts_metadata$
|
|
1303
|
-
_ts_metadata$
|
|
1300
|
+
_ts_param$2(0, graphql.Root()),
|
|
1301
|
+
_ts_param$2(1, Language()),
|
|
1302
|
+
_ts_metadata$6("design:type", Function),
|
|
1303
|
+
_ts_metadata$6("design:paramtypes", [
|
|
1304
1304
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto,
|
|
1305
1305
|
String
|
|
1306
1306
|
]),
|
|
1307
|
-
_ts_metadata$
|
|
1307
|
+
_ts_metadata$6("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1308
1308
|
], ArticleResolver.prototype, "categories", null);
|
|
1309
|
-
ArticleResolver = _ts_decorate$
|
|
1309
|
+
ArticleResolver = _ts_decorate$7([
|
|
1310
1310
|
graphql.Resolver(()=>ArticleDto),
|
|
1311
|
-
_ts_param$
|
|
1312
|
-
_ts_metadata$
|
|
1313
|
-
_ts_metadata$
|
|
1311
|
+
_ts_param$2(2, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
1312
|
+
_ts_metadata$6("design:type", Function),
|
|
1313
|
+
_ts_metadata$6("design:paramtypes", [
|
|
1314
1314
|
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader,
|
|
1315
1315
|
typeof ArticleDataLoader === "undefined" ? Object : ArticleDataLoader,
|
|
1316
1316
|
Boolean
|
|
1317
1317
|
])
|
|
1318
1318
|
], ArticleResolver);
|
|
1319
1319
|
|
|
1320
|
-
function _ts_decorate$
|
|
1320
|
+
function _ts_decorate$6(decorators, target, key, desc) {
|
|
1321
1321
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1322
1322
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1323
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
1324
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1325
1325
|
}
|
|
1326
|
-
function _ts_metadata$
|
|
1326
|
+
function _ts_metadata$5(k, v) {
|
|
1327
1327
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1328
1328
|
}
|
|
1329
1329
|
class ArticleMultiLanguageContentDto {
|
|
@@ -1332,38 +1332,93 @@ class ArticleMultiLanguageContentDto {
|
|
|
1332
1332
|
description;
|
|
1333
1333
|
content;
|
|
1334
1334
|
}
|
|
1335
|
-
_ts_decorate$
|
|
1335
|
+
_ts_decorate$6([
|
|
1336
1336
|
graphql.Field(()=>String),
|
|
1337
|
-
_ts_metadata$
|
|
1337
|
+
_ts_metadata$5("design:type", String)
|
|
1338
1338
|
], ArticleMultiLanguageContentDto.prototype, "language", void 0);
|
|
1339
|
-
_ts_decorate$
|
|
1339
|
+
_ts_decorate$6([
|
|
1340
1340
|
graphql.Field(()=>String),
|
|
1341
|
-
_ts_metadata$
|
|
1341
|
+
_ts_metadata$5("design:type", String)
|
|
1342
1342
|
], ArticleMultiLanguageContentDto.prototype, "title", void 0);
|
|
1343
|
-
_ts_decorate$
|
|
1343
|
+
_ts_decorate$6([
|
|
1344
1344
|
graphql.Field(()=>String, {
|
|
1345
1345
|
nullable: true
|
|
1346
1346
|
}),
|
|
1347
|
-
_ts_metadata$
|
|
1347
|
+
_ts_metadata$5("design:type", Object)
|
|
1348
1348
|
], ArticleMultiLanguageContentDto.prototype, "description", void 0);
|
|
1349
|
-
_ts_decorate$
|
|
1349
|
+
_ts_decorate$6([
|
|
1350
1350
|
graphql.Field(()=>QuadratsContentScalar),
|
|
1351
|
-
_ts_metadata$
|
|
1351
|
+
_ts_metadata$5("design:type", Array)
|
|
1352
1352
|
], ArticleMultiLanguageContentDto.prototype, "content", void 0);
|
|
1353
|
-
ArticleMultiLanguageContentDto = _ts_decorate$
|
|
1353
|
+
ArticleMultiLanguageContentDto = _ts_decorate$6([
|
|
1354
1354
|
graphql.ObjectType('ArticleMultiLanguageContent')
|
|
1355
1355
|
], ArticleMultiLanguageContentDto);
|
|
1356
1356
|
|
|
1357
|
-
function _ts_decorate$
|
|
1357
|
+
function _ts_decorate$5(decorators, target, key, desc) {
|
|
1358
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1359
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1360
|
+
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;
|
|
1361
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1362
|
+
}
|
|
1363
|
+
function _ts_metadata$4(k, v) {
|
|
1364
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1365
|
+
}
|
|
1366
|
+
class ArticleStageVersionDto {
|
|
1367
|
+
id;
|
|
1368
|
+
draft;
|
|
1369
|
+
reviewing;
|
|
1370
|
+
verified;
|
|
1371
|
+
scheduled;
|
|
1372
|
+
released;
|
|
1373
|
+
}
|
|
1374
|
+
_ts_decorate$5([
|
|
1375
|
+
graphql.Field(()=>graphql.ID),
|
|
1376
|
+
_ts_metadata$4("design:type", String)
|
|
1377
|
+
], ArticleStageVersionDto.prototype, "id", void 0);
|
|
1378
|
+
_ts_decorate$5([
|
|
1379
|
+
graphql.Field(()=>BackstageArticleDto, {
|
|
1380
|
+
nullable: true
|
|
1381
|
+
}),
|
|
1382
|
+
_ts_metadata$4("design:type", Object)
|
|
1383
|
+
], ArticleStageVersionDto.prototype, "draft", void 0);
|
|
1384
|
+
_ts_decorate$5([
|
|
1385
|
+
graphql.Field(()=>BackstageArticleDto, {
|
|
1386
|
+
nullable: true
|
|
1387
|
+
}),
|
|
1388
|
+
_ts_metadata$4("design:type", Object)
|
|
1389
|
+
], ArticleStageVersionDto.prototype, "reviewing", void 0);
|
|
1390
|
+
_ts_decorate$5([
|
|
1391
|
+
graphql.Field(()=>BackstageArticleDto, {
|
|
1392
|
+
nullable: true
|
|
1393
|
+
}),
|
|
1394
|
+
_ts_metadata$4("design:type", Object)
|
|
1395
|
+
], ArticleStageVersionDto.prototype, "verified", void 0);
|
|
1396
|
+
_ts_decorate$5([
|
|
1397
|
+
graphql.Field(()=>BackstageArticleDto, {
|
|
1398
|
+
nullable: true
|
|
1399
|
+
}),
|
|
1400
|
+
_ts_metadata$4("design:type", Object)
|
|
1401
|
+
], ArticleStageVersionDto.prototype, "scheduled", void 0);
|
|
1402
|
+
_ts_decorate$5([
|
|
1403
|
+
graphql.Field(()=>BackstageArticleDto, {
|
|
1404
|
+
nullable: true
|
|
1405
|
+
}),
|
|
1406
|
+
_ts_metadata$4("design:type", Object)
|
|
1407
|
+
], ArticleStageVersionDto.prototype, "released", void 0);
|
|
1408
|
+
ArticleStageVersionDto = _ts_decorate$5([
|
|
1409
|
+
graphql.ObjectType('ArticleStageVersion')
|
|
1410
|
+
], ArticleStageVersionDto);
|
|
1411
|
+
|
|
1412
|
+
function _ts_decorate$4(decorators, target, key, desc) {
|
|
1358
1413
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1359
1414
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1360
1415
|
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;
|
|
1361
1416
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1362
1417
|
}
|
|
1363
|
-
function _ts_metadata(k, v) {
|
|
1418
|
+
function _ts_metadata$3(k, v) {
|
|
1364
1419
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1365
1420
|
}
|
|
1366
|
-
function _ts_param(paramIndex, decorator) {
|
|
1421
|
+
function _ts_param$1(paramIndex, decorator) {
|
|
1367
1422
|
return function(target, key) {
|
|
1368
1423
|
decorator(target, key, paramIndex);
|
|
1369
1424
|
};
|
|
@@ -1373,11 +1428,13 @@ class BackstageArticleResolver {
|
|
|
1373
1428
|
articleDataloader;
|
|
1374
1429
|
multiLanguage;
|
|
1375
1430
|
articleVersionDataLoader;
|
|
1376
|
-
|
|
1431
|
+
moduleArticleDataLoader;
|
|
1432
|
+
constructor(memberDataloader, articleDataloader, multiLanguage, articleVersionDataLoader, moduleArticleDataLoader){
|
|
1377
1433
|
this.memberDataloader = memberDataloader;
|
|
1378
1434
|
this.articleDataloader = articleDataloader;
|
|
1379
1435
|
this.multiLanguage = multiLanguage;
|
|
1380
1436
|
this.articleVersionDataLoader = articleVersionDataLoader;
|
|
1437
|
+
this.moduleArticleDataLoader = moduleArticleDataLoader;
|
|
1381
1438
|
}
|
|
1382
1439
|
submittedBy(article) {
|
|
1383
1440
|
return article.submittedBy ? this.memberDataloader.loader.load(article.submittedBy) : null;
|
|
@@ -1428,125 +1485,287 @@ class BackstageArticleResolver {
|
|
|
1428
1485
|
versions(article) {
|
|
1429
1486
|
return this.articleVersionDataLoader.versionsLoader.load(article.id);
|
|
1430
1487
|
}
|
|
1488
|
+
stage(article) {
|
|
1489
|
+
return this.moduleArticleDataLoader.stageLoader.load({
|
|
1490
|
+
id: article.id,
|
|
1491
|
+
version: article.version
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
async stageVersion(article) {
|
|
1495
|
+
const versions = await this.articleVersionDataLoader.stageVersionsLoader.load(article.id);
|
|
1496
|
+
return {
|
|
1497
|
+
id: article.id,
|
|
1498
|
+
draft: versions[cmsBaseNestjsModule.ArticleStage.DRAFT] ?? null,
|
|
1499
|
+
reviewing: versions[cmsBaseNestjsModule.ArticleStage.REVIEWING] ?? null,
|
|
1500
|
+
verified: versions[cmsBaseNestjsModule.ArticleStage.VERIFIED] ?? null,
|
|
1501
|
+
scheduled: versions[cmsBaseNestjsModule.ArticleStage.SCHEDULED] ?? null,
|
|
1502
|
+
released: versions[cmsBaseNestjsModule.ArticleStage.RELEASED] ?? null
|
|
1503
|
+
};
|
|
1504
|
+
}
|
|
1431
1505
|
}
|
|
1432
|
-
_ts_decorate$
|
|
1506
|
+
_ts_decorate$4([
|
|
1433
1507
|
graphql.ResolveField(()=>UserDto, {
|
|
1434
1508
|
nullable: true
|
|
1435
1509
|
}),
|
|
1436
1510
|
memberBaseNestjsModule.IsPublic(),
|
|
1437
|
-
_ts_param(0, graphql.Root()),
|
|
1438
|
-
_ts_metadata("design:type", Function),
|
|
1439
|
-
_ts_metadata("design:paramtypes", [
|
|
1511
|
+
_ts_param$1(0, graphql.Root()),
|
|
1512
|
+
_ts_metadata$3("design:type", Function),
|
|
1513
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1440
1514
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1441
1515
|
]),
|
|
1442
|
-
_ts_metadata("design:returntype", Object)
|
|
1516
|
+
_ts_metadata$3("design:returntype", Object)
|
|
1443
1517
|
], BackstageArticleResolver.prototype, "submittedBy", null);
|
|
1444
|
-
_ts_decorate$
|
|
1518
|
+
_ts_decorate$4([
|
|
1445
1519
|
graphql.ResolveField(()=>UserDto, {
|
|
1446
1520
|
nullable: true
|
|
1447
1521
|
}),
|
|
1448
1522
|
memberBaseNestjsModule.IsPublic(),
|
|
1449
|
-
_ts_param(0, graphql.Root()),
|
|
1450
|
-
_ts_metadata("design:type", Function),
|
|
1451
|
-
_ts_metadata("design:paramtypes", [
|
|
1523
|
+
_ts_param$1(0, graphql.Root()),
|
|
1524
|
+
_ts_metadata$3("design:type", Function),
|
|
1525
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1452
1526
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1453
1527
|
]),
|
|
1454
|
-
_ts_metadata("design:returntype", Object)
|
|
1528
|
+
_ts_metadata$3("design:returntype", Object)
|
|
1455
1529
|
], BackstageArticleResolver.prototype, "lastEditor", null);
|
|
1456
|
-
_ts_decorate$
|
|
1530
|
+
_ts_decorate$4([
|
|
1457
1531
|
graphql.ResolveField(()=>UserDto, {
|
|
1458
1532
|
nullable: true
|
|
1459
1533
|
}),
|
|
1460
1534
|
memberBaseNestjsModule.IsPublic(),
|
|
1461
|
-
_ts_param(0, graphql.Root()),
|
|
1462
|
-
_ts_metadata("design:type", Function),
|
|
1463
|
-
_ts_metadata("design:paramtypes", [
|
|
1535
|
+
_ts_param$1(0, graphql.Root()),
|
|
1536
|
+
_ts_metadata$3("design:type", Function),
|
|
1537
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1464
1538
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1465
1539
|
]),
|
|
1466
|
-
_ts_metadata("design:returntype", Object)
|
|
1540
|
+
_ts_metadata$3("design:returntype", Object)
|
|
1467
1541
|
], BackstageArticleResolver.prototype, "releasedBy", null);
|
|
1468
|
-
_ts_decorate$
|
|
1542
|
+
_ts_decorate$4([
|
|
1469
1543
|
graphql.ResolveField(()=>[
|
|
1470
1544
|
CategoryDto
|
|
1471
1545
|
]),
|
|
1472
1546
|
memberBaseNestjsModule.IsPublic(),
|
|
1473
|
-
_ts_param(0, graphql.Root()),
|
|
1474
|
-
_ts_param(1, Language()),
|
|
1475
|
-
_ts_metadata("design:type", Function),
|
|
1476
|
-
_ts_metadata("design:paramtypes", [
|
|
1547
|
+
_ts_param$1(0, graphql.Root()),
|
|
1548
|
+
_ts_param$1(1, Language()),
|
|
1549
|
+
_ts_metadata$3("design:type", Function),
|
|
1550
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1477
1551
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto,
|
|
1478
1552
|
String
|
|
1479
1553
|
]),
|
|
1480
|
-
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1554
|
+
_ts_metadata$3("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1481
1555
|
], BackstageArticleResolver.prototype, "categories", null);
|
|
1482
|
-
_ts_decorate$
|
|
1556
|
+
_ts_decorate$4([
|
|
1483
1557
|
graphql.ResolveField(()=>String),
|
|
1484
1558
|
memberBaseNestjsModule.IsPublic(),
|
|
1485
|
-
_ts_param(0, graphql.Root()),
|
|
1486
|
-
_ts_metadata("design:type", Function),
|
|
1487
|
-
_ts_metadata("design:paramtypes", [
|
|
1559
|
+
_ts_param$1(0, graphql.Root()),
|
|
1560
|
+
_ts_metadata$3("design:type", Function),
|
|
1561
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1488
1562
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1489
1563
|
]),
|
|
1490
|
-
_ts_metadata("design:returntype", String)
|
|
1564
|
+
_ts_metadata$3("design:returntype", String)
|
|
1491
1565
|
], BackstageArticleResolver.prototype, "title", null);
|
|
1492
|
-
_ts_decorate$
|
|
1566
|
+
_ts_decorate$4([
|
|
1493
1567
|
graphql.ResolveField(()=>String, {
|
|
1494
1568
|
nullable: true
|
|
1495
1569
|
}),
|
|
1496
1570
|
memberBaseNestjsModule.IsPublic(),
|
|
1497
|
-
_ts_param(0, graphql.Root()),
|
|
1498
|
-
_ts_metadata("design:type", Function),
|
|
1499
|
-
_ts_metadata("design:paramtypes", [
|
|
1571
|
+
_ts_param$1(0, graphql.Root()),
|
|
1572
|
+
_ts_metadata$3("design:type", Function),
|
|
1573
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1500
1574
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1501
1575
|
]),
|
|
1502
|
-
_ts_metadata("design:returntype", Object)
|
|
1576
|
+
_ts_metadata$3("design:returntype", Object)
|
|
1503
1577
|
], BackstageArticleResolver.prototype, "description", null);
|
|
1504
|
-
_ts_decorate$
|
|
1578
|
+
_ts_decorate$4([
|
|
1505
1579
|
graphql.ResolveField(()=>QuadratsContentScalar),
|
|
1506
1580
|
memberBaseNestjsModule.IsPublic(),
|
|
1507
|
-
_ts_param(0, graphql.Root()),
|
|
1508
|
-
_ts_metadata("design:type", Function),
|
|
1509
|
-
_ts_metadata("design:paramtypes", [
|
|
1581
|
+
_ts_param$1(0, graphql.Root()),
|
|
1582
|
+
_ts_metadata$3("design:type", Function),
|
|
1583
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1510
1584
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1511
1585
|
]),
|
|
1512
|
-
_ts_metadata("design:returntype", Array)
|
|
1586
|
+
_ts_metadata$3("design:returntype", Array)
|
|
1513
1587
|
], BackstageArticleResolver.prototype, "content", null);
|
|
1514
|
-
_ts_decorate$
|
|
1588
|
+
_ts_decorate$4([
|
|
1515
1589
|
graphql.ResolveField(()=>[
|
|
1516
1590
|
ArticleMultiLanguageContentDto
|
|
1517
1591
|
]),
|
|
1518
1592
|
memberBaseNestjsModule.IsPublic(),
|
|
1519
|
-
_ts_param(0, graphql.Root()),
|
|
1520
|
-
_ts_metadata("design:type", Function),
|
|
1521
|
-
_ts_metadata("design:paramtypes", [
|
|
1593
|
+
_ts_param$1(0, graphql.Root()),
|
|
1594
|
+
_ts_metadata$3("design:type", Function),
|
|
1595
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1522
1596
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1523
1597
|
]),
|
|
1524
|
-
_ts_metadata("design:returntype", Array)
|
|
1598
|
+
_ts_metadata$3("design:returntype", Array)
|
|
1525
1599
|
], BackstageArticleResolver.prototype, "multiLanguageContents", null);
|
|
1526
|
-
_ts_decorate$
|
|
1600
|
+
_ts_decorate$4([
|
|
1527
1601
|
graphql.ResolveField(()=>[
|
|
1528
1602
|
BackstageArticleDto
|
|
1529
1603
|
]),
|
|
1530
1604
|
memberBaseNestjsModule.IsPublic(),
|
|
1531
|
-
_ts_param(0, graphql.Root()),
|
|
1532
|
-
_ts_metadata("design:type", Function),
|
|
1533
|
-
_ts_metadata("design:paramtypes", [
|
|
1605
|
+
_ts_param$1(0, graphql.Root()),
|
|
1606
|
+
_ts_metadata$3("design:type", Function),
|
|
1607
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1534
1608
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1535
1609
|
]),
|
|
1536
|
-
_ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1610
|
+
_ts_metadata$3("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1537
1611
|
], BackstageArticleResolver.prototype, "versions", null);
|
|
1538
|
-
|
|
1612
|
+
_ts_decorate$4([
|
|
1613
|
+
graphql.ResolveField(()=>cmsBaseNestjsModule.ArticleStage),
|
|
1614
|
+
memberBaseNestjsModule.IsPublic(),
|
|
1615
|
+
_ts_param$1(0, graphql.Root()),
|
|
1616
|
+
_ts_metadata$3("design:type", Function),
|
|
1617
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1618
|
+
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1619
|
+
]),
|
|
1620
|
+
_ts_metadata$3("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1621
|
+
], BackstageArticleResolver.prototype, "stage", null);
|
|
1622
|
+
_ts_decorate$4([
|
|
1623
|
+
graphql.ResolveField(()=>ArticleStageVersionDto),
|
|
1624
|
+
memberBaseNestjsModule.IsPublic(),
|
|
1625
|
+
_ts_param$1(0, graphql.Root()),
|
|
1626
|
+
_ts_metadata$3("design:type", Function),
|
|
1627
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1628
|
+
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1629
|
+
]),
|
|
1630
|
+
_ts_metadata$3("design:returntype", Promise)
|
|
1631
|
+
], BackstageArticleResolver.prototype, "stageVersion", null);
|
|
1632
|
+
BackstageArticleResolver = _ts_decorate$4([
|
|
1539
1633
|
graphql.Resolver(()=>BackstageArticleDto),
|
|
1540
|
-
_ts_param(2, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
1541
|
-
_ts_metadata("design:type", Function),
|
|
1542
|
-
_ts_metadata("design:paramtypes", [
|
|
1634
|
+
_ts_param$1(2, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
1635
|
+
_ts_metadata$3("design:type", Function),
|
|
1636
|
+
_ts_metadata$3("design:paramtypes", [
|
|
1543
1637
|
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader,
|
|
1544
1638
|
typeof ArticleDataLoader === "undefined" ? Object : ArticleDataLoader,
|
|
1545
1639
|
Boolean,
|
|
1546
|
-
typeof cmsBaseNestjsModule.ArticleVersionDataLoader === "undefined" ? Object : cmsBaseNestjsModule.ArticleVersionDataLoader
|
|
1640
|
+
typeof cmsBaseNestjsModule.ArticleVersionDataLoader === "undefined" ? Object : cmsBaseNestjsModule.ArticleVersionDataLoader,
|
|
1641
|
+
typeof cmsBaseNestjsModule.ArticleDataLoader === "undefined" ? Object : cmsBaseNestjsModule.ArticleDataLoader
|
|
1547
1642
|
])
|
|
1548
1643
|
], BackstageArticleResolver);
|
|
1549
1644
|
|
|
1645
|
+
function _ts_decorate$3(decorators, target, key, desc) {
|
|
1646
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1647
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1648
|
+
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;
|
|
1649
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1650
|
+
}
|
|
1651
|
+
function _ts_metadata$2(k, v) {
|
|
1652
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1653
|
+
}
|
|
1654
|
+
class ArticleSignatureDto {
|
|
1655
|
+
id;
|
|
1656
|
+
signedAt;
|
|
1657
|
+
result;
|
|
1658
|
+
rejectReason;
|
|
1659
|
+
}
|
|
1660
|
+
_ts_decorate$3([
|
|
1661
|
+
graphql.Field(()=>graphql.ID),
|
|
1662
|
+
_ts_metadata$2("design:type", String)
|
|
1663
|
+
], ArticleSignatureDto.prototype, "id", void 0);
|
|
1664
|
+
_ts_decorate$3([
|
|
1665
|
+
graphql.Field(()=>Date),
|
|
1666
|
+
_ts_metadata$2("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1667
|
+
], ArticleSignatureDto.prototype, "signedAt", void 0);
|
|
1668
|
+
_ts_decorate$3([
|
|
1669
|
+
graphql.Field(()=>cmsBaseNestjsModule.ArticleSignatureResult),
|
|
1670
|
+
_ts_metadata$2("design:type", typeof cmsBaseNestjsModule.ArticleSignatureResult === "undefined" ? Object : cmsBaseNestjsModule.ArticleSignatureResult)
|
|
1671
|
+
], ArticleSignatureDto.prototype, "result", void 0);
|
|
1672
|
+
_ts_decorate$3([
|
|
1673
|
+
graphql.Field(()=>String, {
|
|
1674
|
+
nullable: true
|
|
1675
|
+
}),
|
|
1676
|
+
_ts_metadata$2("design:type", Object)
|
|
1677
|
+
], ArticleSignatureDto.prototype, "rejectReason", void 0);
|
|
1678
|
+
ArticleSignatureDto = _ts_decorate$3([
|
|
1679
|
+
graphql.ObjectType('ArticleSignature')
|
|
1680
|
+
], ArticleSignatureDto);
|
|
1681
|
+
graphql.registerEnumType(cmsBaseNestjsModule.ArticleSignatureResult, {
|
|
1682
|
+
name: 'ArticleSignatureResult'
|
|
1683
|
+
});
|
|
1684
|
+
|
|
1685
|
+
function _ts_decorate$2(decorators, target, key, desc) {
|
|
1686
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1687
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1688
|
+
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;
|
|
1689
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1690
|
+
}
|
|
1691
|
+
function _ts_metadata$1(k, v) {
|
|
1692
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1693
|
+
}
|
|
1694
|
+
class ArticleSignatureStepDto {
|
|
1695
|
+
id;
|
|
1696
|
+
name;
|
|
1697
|
+
}
|
|
1698
|
+
_ts_decorate$2([
|
|
1699
|
+
graphql.Field(()=>graphql.ID),
|
|
1700
|
+
_ts_metadata$1("design:type", String)
|
|
1701
|
+
], ArticleSignatureStepDto.prototype, "id", void 0);
|
|
1702
|
+
_ts_decorate$2([
|
|
1703
|
+
graphql.Field(()=>String),
|
|
1704
|
+
_ts_metadata$1("design:type", String)
|
|
1705
|
+
], ArticleSignatureStepDto.prototype, "name", void 0);
|
|
1706
|
+
ArticleSignatureStepDto = _ts_decorate$2([
|
|
1707
|
+
graphql.ObjectType('ArticleSignatureStep')
|
|
1708
|
+
], ArticleSignatureStepDto);
|
|
1709
|
+
|
|
1710
|
+
function _ts_decorate$1(decorators, target, key, desc) {
|
|
1711
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1712
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1713
|
+
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;
|
|
1714
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1715
|
+
}
|
|
1716
|
+
function _ts_metadata(k, v) {
|
|
1717
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1718
|
+
}
|
|
1719
|
+
function _ts_param(paramIndex, decorator) {
|
|
1720
|
+
return function(target, key) {
|
|
1721
|
+
decorator(target, key, paramIndex);
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
class ArticleSignatureResolver {
|
|
1725
|
+
memberDataloader;
|
|
1726
|
+
constructor(memberDataloader){
|
|
1727
|
+
this.memberDataloader = memberDataloader;
|
|
1728
|
+
}
|
|
1729
|
+
signer(signature) {
|
|
1730
|
+
return signature.signerId ? this.memberDataloader.loader.load(signature.signerId) : null;
|
|
1731
|
+
}
|
|
1732
|
+
step(signature) {
|
|
1733
|
+
return signature.signatureLevel ?? {
|
|
1734
|
+
id: cmsBaseNestjsModule.DEFAULT_SIGNATURE_LEVEL,
|
|
1735
|
+
name: cmsBaseNestjsModule.DEFAULT_SIGNATURE_LEVEL
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
_ts_decorate$1([
|
|
1740
|
+
graphql.ResolveField(()=>UserDto, {
|
|
1741
|
+
nullable: true
|
|
1742
|
+
}),
|
|
1743
|
+
memberBaseNestjsModule.IsPublic(),
|
|
1744
|
+
_ts_param(0, graphql.Root()),
|
|
1745
|
+
_ts_metadata("design:type", Function),
|
|
1746
|
+
_ts_metadata("design:paramtypes", [
|
|
1747
|
+
typeof cmsBaseNestjsModule.ArticleSignatureEntity === "undefined" ? Object : cmsBaseNestjsModule.ArticleSignatureEntity
|
|
1748
|
+
]),
|
|
1749
|
+
_ts_metadata("design:returntype", Object)
|
|
1750
|
+
], ArticleSignatureResolver.prototype, "signer", null);
|
|
1751
|
+
_ts_decorate$1([
|
|
1752
|
+
graphql.ResolveField(()=>ArticleSignatureStepDto),
|
|
1753
|
+
memberBaseNestjsModule.IsPublic(),
|
|
1754
|
+
_ts_param(0, graphql.Root()),
|
|
1755
|
+
_ts_metadata("design:type", Function),
|
|
1756
|
+
_ts_metadata("design:paramtypes", [
|
|
1757
|
+
typeof cmsBaseNestjsModule.ArticleSignatureEntity === "undefined" ? Object : cmsBaseNestjsModule.ArticleSignatureEntity
|
|
1758
|
+
]),
|
|
1759
|
+
_ts_metadata("design:returntype", typeof ArticleSignatureStepDto === "undefined" ? Object : ArticleSignatureStepDto)
|
|
1760
|
+
], ArticleSignatureResolver.prototype, "step", null);
|
|
1761
|
+
ArticleSignatureResolver = _ts_decorate$1([
|
|
1762
|
+
graphql.Resolver(()=>ArticleSignatureDto),
|
|
1763
|
+
_ts_metadata("design:type", Function),
|
|
1764
|
+
_ts_metadata("design:paramtypes", [
|
|
1765
|
+
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader
|
|
1766
|
+
])
|
|
1767
|
+
], ArticleSignatureResolver);
|
|
1768
|
+
|
|
1550
1769
|
function _ts_decorate(decorators, target, key, desc) {
|
|
1551
1770
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1552
1771
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1569,6 +1788,7 @@ class CMSBaseGraphQLModule {
|
|
|
1569
1788
|
ArticleDataLoader,
|
|
1570
1789
|
ArticleResolver,
|
|
1571
1790
|
BackstageArticleResolver,
|
|
1791
|
+
ArticleSignatureResolver,
|
|
1572
1792
|
ArticleQueries,
|
|
1573
1793
|
ArticleMutations,
|
|
1574
1794
|
CategoryQueries,
|
|
@@ -1590,6 +1810,7 @@ class CMSBaseGraphQLModule {
|
|
|
1590
1810
|
ArticleDataLoader,
|
|
1591
1811
|
ArticleResolver,
|
|
1592
1812
|
BackstageArticleResolver,
|
|
1813
|
+
ArticleSignatureResolver,
|
|
1593
1814
|
ArticleQueries,
|
|
1594
1815
|
ArticleMutations,
|
|
1595
1816
|
CategoryQueries,
|