@rytass/cms-base-nestjs-graphql-module 0.0.24 → 0.0.25
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 +5 -2
- package/dto/backstage-article.args.d.ts +2 -1
- package/dto/backstage-article.args.js +11 -1
- package/dto/categories.args.d.ts +3 -0
- package/dto/categories.args.js +20 -1
- package/dto/category-multi-language-name.dto.d.ts +4 -0
- package/dto/category-multi-language-name.dto.js +28 -0
- package/index.cjs.js +596 -473
- package/package.json +2 -2
- package/resolvers/backstage-category.resolver.d.ts +8 -0
- package/resolvers/backstage-category.resolver.js +76 -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$y(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$w(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$y([
|
|
29
29
|
graphql.Field(()=>graphql.ID),
|
|
30
|
-
_ts_metadata$
|
|
30
|
+
_ts_metadata$w("design:type", String)
|
|
31
31
|
], BaseArticleDto.prototype, "id", void 0);
|
|
32
|
-
_ts_decorate$
|
|
32
|
+
_ts_decorate$y([
|
|
33
33
|
graphql.Field(()=>[
|
|
34
34
|
String
|
|
35
35
|
]),
|
|
36
|
-
_ts_metadata$
|
|
36
|
+
_ts_metadata$w("design:type", Array)
|
|
37
37
|
], BaseArticleDto.prototype, "tags", void 0);
|
|
38
|
-
_ts_decorate$
|
|
38
|
+
_ts_decorate$y([
|
|
39
39
|
graphql.Field(()=>Date),
|
|
40
|
-
_ts_metadata$
|
|
40
|
+
_ts_metadata$w("design:type", typeof Date === "undefined" ? Object : Date)
|
|
41
41
|
], BaseArticleDto.prototype, "createdAt", void 0);
|
|
42
|
-
_ts_decorate$
|
|
42
|
+
_ts_decorate$y([
|
|
43
43
|
graphql.Field(()=>Date),
|
|
44
|
-
_ts_metadata$
|
|
44
|
+
_ts_metadata$w("design:type", typeof Date === "undefined" ? Object : Date)
|
|
45
45
|
], BaseArticleDto.prototype, "updatedAt", void 0);
|
|
46
|
-
_ts_decorate$
|
|
46
|
+
_ts_decorate$y([
|
|
47
47
|
graphql.Field(()=>Date, {
|
|
48
48
|
nullable: true
|
|
49
49
|
}),
|
|
50
|
-
_ts_metadata$
|
|
50
|
+
_ts_metadata$w("design:type", Object)
|
|
51
51
|
], BaseArticleDto.prototype, "releasedAt", void 0);
|
|
52
|
-
BaseArticleDto = _ts_decorate$
|
|
52
|
+
BaseArticleDto = _ts_decorate$y([
|
|
53
53
|
graphql.ObjectType('BaseArticle')
|
|
54
54
|
], BaseArticleDto);
|
|
55
55
|
|
|
56
|
-
function _ts_decorate$
|
|
56
|
+
function _ts_decorate$x(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$v(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,23 +67,23 @@ class BackstageArticleDto extends BaseArticleDto {
|
|
|
67
67
|
deletedAt;
|
|
68
68
|
submittedAt;
|
|
69
69
|
}
|
|
70
|
-
_ts_decorate$
|
|
70
|
+
_ts_decorate$x([
|
|
71
71
|
graphql.Field(()=>graphql.Int),
|
|
72
|
-
_ts_metadata$
|
|
72
|
+
_ts_metadata$v("design:type", Number)
|
|
73
73
|
], BackstageArticleDto.prototype, "version", void 0);
|
|
74
|
-
_ts_decorate$
|
|
74
|
+
_ts_decorate$x([
|
|
75
75
|
graphql.Field(()=>Date, {
|
|
76
76
|
nullable: true
|
|
77
77
|
}),
|
|
78
|
-
_ts_metadata$
|
|
78
|
+
_ts_metadata$v("design:type", Object)
|
|
79
79
|
], BackstageArticleDto.prototype, "deletedAt", void 0);
|
|
80
|
-
_ts_decorate$
|
|
80
|
+
_ts_decorate$x([
|
|
81
81
|
graphql.Field(()=>Date, {
|
|
82
82
|
nullable: true
|
|
83
83
|
}),
|
|
84
|
-
_ts_metadata$
|
|
84
|
+
_ts_metadata$v("design:type", Object)
|
|
85
85
|
], BackstageArticleDto.prototype, "submittedAt", void 0);
|
|
86
|
-
BackstageArticleDto = _ts_decorate$
|
|
86
|
+
BackstageArticleDto = _ts_decorate$x([
|
|
87
87
|
graphql.ObjectType('BackstageArticle')
|
|
88
88
|
], BackstageArticleDto);
|
|
89
89
|
|
|
@@ -130,13 +130,13 @@ const QuadratsContentScalar = new graphql$1.GraphQLScalarType({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
-
function _ts_decorate$
|
|
133
|
+
function _ts_decorate$w(decorators, target, key, desc) {
|
|
134
134
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
135
135
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
136
136
|
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;
|
|
137
137
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
138
138
|
}
|
|
139
|
-
function _ts_metadata$
|
|
139
|
+
function _ts_metadata$u(k, v) {
|
|
140
140
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
141
141
|
}
|
|
142
142
|
class ArticleVersionContentInput {
|
|
@@ -145,37 +145,37 @@ class ArticleVersionContentInput {
|
|
|
145
145
|
description;
|
|
146
146
|
content;
|
|
147
147
|
}
|
|
148
|
-
_ts_decorate$
|
|
148
|
+
_ts_decorate$w([
|
|
149
149
|
graphql.Field(()=>String, {
|
|
150
150
|
nullable: true
|
|
151
151
|
}),
|
|
152
|
-
_ts_metadata$
|
|
152
|
+
_ts_metadata$u("design:type", Object)
|
|
153
153
|
], ArticleVersionContentInput.prototype, "language", void 0);
|
|
154
|
-
_ts_decorate$
|
|
154
|
+
_ts_decorate$w([
|
|
155
155
|
graphql.Field(()=>String),
|
|
156
|
-
_ts_metadata$
|
|
156
|
+
_ts_metadata$u("design:type", String)
|
|
157
157
|
], ArticleVersionContentInput.prototype, "title", void 0);
|
|
158
|
-
_ts_decorate$
|
|
158
|
+
_ts_decorate$w([
|
|
159
159
|
graphql.Field(()=>String, {
|
|
160
160
|
nullable: true
|
|
161
161
|
}),
|
|
162
|
-
_ts_metadata$
|
|
162
|
+
_ts_metadata$u("design:type", Object)
|
|
163
163
|
], ArticleVersionContentInput.prototype, "description", void 0);
|
|
164
|
-
_ts_decorate$
|
|
164
|
+
_ts_decorate$w([
|
|
165
165
|
graphql.Field(()=>QuadratsContentScalar),
|
|
166
|
-
_ts_metadata$
|
|
166
|
+
_ts_metadata$u("design:type", Array)
|
|
167
167
|
], ArticleVersionContentInput.prototype, "content", void 0);
|
|
168
|
-
ArticleVersionContentInput = _ts_decorate$
|
|
168
|
+
ArticleVersionContentInput = _ts_decorate$w([
|
|
169
169
|
graphql.InputType('ArticleVersionContentInput')
|
|
170
170
|
], ArticleVersionContentInput);
|
|
171
171
|
|
|
172
|
-
function _ts_decorate$
|
|
172
|
+
function _ts_decorate$v(decorators, target, key, desc) {
|
|
173
173
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
174
174
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
175
175
|
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;
|
|
176
176
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
177
177
|
}
|
|
178
|
-
function _ts_metadata$
|
|
178
|
+
function _ts_metadata$t(k, v) {
|
|
179
179
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
180
180
|
}
|
|
181
181
|
class CreateArticleArgs {
|
|
@@ -186,63 +186,63 @@ class CreateArticleArgs {
|
|
|
186
186
|
submitted;
|
|
187
187
|
signatureLevel;
|
|
188
188
|
}
|
|
189
|
-
_ts_decorate$
|
|
189
|
+
_ts_decorate$v([
|
|
190
190
|
graphql.Field(()=>[
|
|
191
191
|
graphql.ID
|
|
192
192
|
]),
|
|
193
|
-
_ts_metadata$
|
|
193
|
+
_ts_metadata$t("design:type", Array)
|
|
194
194
|
], CreateArticleArgs.prototype, "categoryIds", void 0);
|
|
195
|
-
_ts_decorate$
|
|
195
|
+
_ts_decorate$v([
|
|
196
196
|
graphql.Field(()=>[
|
|
197
197
|
String
|
|
198
198
|
]),
|
|
199
|
-
_ts_metadata$
|
|
199
|
+
_ts_metadata$t("design:type", Array)
|
|
200
200
|
], CreateArticleArgs.prototype, "tags", void 0);
|
|
201
|
-
_ts_decorate$
|
|
201
|
+
_ts_decorate$v([
|
|
202
202
|
graphql.Field(()=>[
|
|
203
203
|
ArticleVersionContentInput
|
|
204
204
|
]),
|
|
205
|
-
_ts_metadata$
|
|
205
|
+
_ts_metadata$t("design:type", Array)
|
|
206
206
|
], CreateArticleArgs.prototype, "multiLanguageContents", void 0);
|
|
207
|
-
_ts_decorate$
|
|
207
|
+
_ts_decorate$v([
|
|
208
208
|
graphql.Field(()=>Date, {
|
|
209
209
|
nullable: true
|
|
210
210
|
}),
|
|
211
|
-
_ts_metadata$
|
|
211
|
+
_ts_metadata$t("design:type", Object)
|
|
212
212
|
], CreateArticleArgs.prototype, "releasedAt", void 0);
|
|
213
|
-
_ts_decorate$
|
|
213
|
+
_ts_decorate$v([
|
|
214
214
|
graphql.Field(()=>Boolean, {
|
|
215
215
|
nullable: true
|
|
216
216
|
}),
|
|
217
|
-
_ts_metadata$
|
|
217
|
+
_ts_metadata$t("design:type", Object)
|
|
218
218
|
], CreateArticleArgs.prototype, "submitted", void 0);
|
|
219
|
-
_ts_decorate$
|
|
219
|
+
_ts_decorate$v([
|
|
220
220
|
graphql.Field(()=>String, {
|
|
221
221
|
nullable: true
|
|
222
222
|
}),
|
|
223
|
-
_ts_metadata$
|
|
223
|
+
_ts_metadata$t("design:type", Object)
|
|
224
224
|
], CreateArticleArgs.prototype, "signatureLevel", void 0);
|
|
225
|
-
CreateArticleArgs = _ts_decorate$
|
|
225
|
+
CreateArticleArgs = _ts_decorate$v([
|
|
226
226
|
graphql.ArgsType()
|
|
227
227
|
], CreateArticleArgs);
|
|
228
228
|
|
|
229
|
-
function _ts_decorate$
|
|
229
|
+
function _ts_decorate$u(decorators, target, key, desc) {
|
|
230
230
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
231
231
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
232
232
|
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;
|
|
233
233
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
234
234
|
}
|
|
235
|
-
function _ts_metadata$
|
|
235
|
+
function _ts_metadata$s(k, v) {
|
|
236
236
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
237
237
|
}
|
|
238
238
|
class UpdateArticleArgs extends CreateArticleArgs {
|
|
239
239
|
id;
|
|
240
240
|
}
|
|
241
|
-
_ts_decorate$
|
|
241
|
+
_ts_decorate$u([
|
|
242
242
|
graphql.Field(()=>graphql.ID),
|
|
243
|
-
_ts_metadata$
|
|
243
|
+
_ts_metadata$s("design:type", String)
|
|
244
244
|
], UpdateArticleArgs.prototype, "id", void 0);
|
|
245
|
-
UpdateArticleArgs = _ts_decorate$
|
|
245
|
+
UpdateArticleArgs = _ts_decorate$u([
|
|
246
246
|
graphql.ArgsType()
|
|
247
247
|
], UpdateArticleArgs);
|
|
248
248
|
|
|
@@ -268,16 +268,16 @@ var BaseResource = /*#__PURE__*/ function(BaseResource) {
|
|
|
268
268
|
return BaseResource;
|
|
269
269
|
}({});
|
|
270
270
|
|
|
271
|
-
function _ts_decorate$
|
|
271
|
+
function _ts_decorate$t(decorators, target, key, desc) {
|
|
272
272
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
273
273
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
274
274
|
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;
|
|
275
275
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
276
276
|
}
|
|
277
|
-
function _ts_metadata$
|
|
277
|
+
function _ts_metadata$r(k, v) {
|
|
278
278
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
279
279
|
}
|
|
280
|
-
function _ts_param$
|
|
280
|
+
function _ts_param$9(paramIndex, decorator) {
|
|
281
281
|
return function(target, key) {
|
|
282
282
|
decorator(target, key, paramIndex);
|
|
283
283
|
};
|
|
@@ -372,7 +372,7 @@ class ArticleMutations {
|
|
|
372
372
|
return this.articleService.withdraw(id, version);
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
_ts_decorate$
|
|
375
|
+
_ts_decorate$t([
|
|
376
376
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
377
377
|
memberBaseNestjsModule.AllowActions([
|
|
378
378
|
[
|
|
@@ -380,16 +380,16 @@ _ts_decorate$r([
|
|
|
380
380
|
BaseAction.CREATE
|
|
381
381
|
]
|
|
382
382
|
]),
|
|
383
|
-
_ts_param$
|
|
384
|
-
_ts_param$
|
|
385
|
-
_ts_metadata$
|
|
386
|
-
_ts_metadata$
|
|
383
|
+
_ts_param$9(0, memberBaseNestjsModule.MemberId()),
|
|
384
|
+
_ts_param$9(1, graphql.Args()),
|
|
385
|
+
_ts_metadata$r("design:type", Function),
|
|
386
|
+
_ts_metadata$r("design:paramtypes", [
|
|
387
387
|
String,
|
|
388
388
|
typeof CreateArticleArgs === "undefined" ? Object : CreateArticleArgs
|
|
389
389
|
]),
|
|
390
|
-
_ts_metadata$
|
|
390
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
391
391
|
], ArticleMutations.prototype, "createArticle", null);
|
|
392
|
-
_ts_decorate$
|
|
392
|
+
_ts_decorate$t([
|
|
393
393
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
394
394
|
memberBaseNestjsModule.AllowActions([
|
|
395
395
|
[
|
|
@@ -397,16 +397,16 @@ _ts_decorate$r([
|
|
|
397
397
|
BaseAction.UPDATE
|
|
398
398
|
]
|
|
399
399
|
]),
|
|
400
|
-
_ts_param$
|
|
401
|
-
_ts_param$
|
|
402
|
-
_ts_metadata$
|
|
403
|
-
_ts_metadata$
|
|
400
|
+
_ts_param$9(0, memberBaseNestjsModule.MemberId()),
|
|
401
|
+
_ts_param$9(1, graphql.Args()),
|
|
402
|
+
_ts_metadata$r("design:type", Function),
|
|
403
|
+
_ts_metadata$r("design:paramtypes", [
|
|
404
404
|
String,
|
|
405
405
|
typeof UpdateArticleArgs === "undefined" ? Object : UpdateArticleArgs
|
|
406
406
|
]),
|
|
407
|
-
_ts_metadata$
|
|
407
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
408
408
|
], ArticleMutations.prototype, "updateArticle", null);
|
|
409
|
-
_ts_decorate$
|
|
409
|
+
_ts_decorate$t([
|
|
410
410
|
graphql.Mutation(()=>Boolean),
|
|
411
411
|
memberBaseNestjsModule.AllowActions([
|
|
412
412
|
[
|
|
@@ -414,16 +414,16 @@ _ts_decorate$r([
|
|
|
414
414
|
BaseAction.DELETE
|
|
415
415
|
]
|
|
416
416
|
]),
|
|
417
|
-
_ts_param$
|
|
417
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
418
418
|
type: ()=>graphql.ID
|
|
419
419
|
})),
|
|
420
|
-
_ts_metadata$
|
|
421
|
-
_ts_metadata$
|
|
420
|
+
_ts_metadata$r("design:type", Function),
|
|
421
|
+
_ts_metadata$r("design:paramtypes", [
|
|
422
422
|
String
|
|
423
423
|
]),
|
|
424
|
-
_ts_metadata$
|
|
424
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
425
425
|
], ArticleMutations.prototype, "deleteArticle", null);
|
|
426
|
-
_ts_decorate$
|
|
426
|
+
_ts_decorate$t([
|
|
427
427
|
graphql.Mutation(()=>Boolean),
|
|
428
428
|
memberBaseNestjsModule.AllowActions([
|
|
429
429
|
[
|
|
@@ -431,20 +431,20 @@ _ts_decorate$r([
|
|
|
431
431
|
BaseAction.DELETE_VERSION
|
|
432
432
|
]
|
|
433
433
|
]),
|
|
434
|
-
_ts_param$
|
|
434
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
435
435
|
type: ()=>graphql.ID
|
|
436
436
|
})),
|
|
437
|
-
_ts_param$
|
|
437
|
+
_ts_param$9(1, graphql.Args('version', {
|
|
438
438
|
type: ()=>graphql.Int
|
|
439
439
|
})),
|
|
440
|
-
_ts_metadata$
|
|
441
|
-
_ts_metadata$
|
|
440
|
+
_ts_metadata$r("design:type", Function),
|
|
441
|
+
_ts_metadata$r("design:paramtypes", [
|
|
442
442
|
String,
|
|
443
443
|
Number
|
|
444
444
|
]),
|
|
445
|
-
_ts_metadata$
|
|
445
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
446
446
|
], ArticleMutations.prototype, "deleteArticleVersion", null);
|
|
447
|
-
_ts_decorate$
|
|
447
|
+
_ts_decorate$t([
|
|
448
448
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
449
449
|
memberBaseNestjsModule.AllowActions([
|
|
450
450
|
[
|
|
@@ -452,18 +452,18 @@ _ts_decorate$r([
|
|
|
452
452
|
BaseAction.SUBMIT
|
|
453
453
|
]
|
|
454
454
|
]),
|
|
455
|
-
_ts_param$
|
|
456
|
-
_ts_param$
|
|
455
|
+
_ts_param$9(0, memberBaseNestjsModule.MemberId()),
|
|
456
|
+
_ts_param$9(1, graphql.Args('id', {
|
|
457
457
|
type: ()=>graphql.ID
|
|
458
458
|
})),
|
|
459
|
-
_ts_metadata$
|
|
460
|
-
_ts_metadata$
|
|
459
|
+
_ts_metadata$r("design:type", Function),
|
|
460
|
+
_ts_metadata$r("design:paramtypes", [
|
|
461
461
|
String,
|
|
462
462
|
String
|
|
463
463
|
]),
|
|
464
|
-
_ts_metadata$
|
|
464
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
465
465
|
], ArticleMutations.prototype, "submitArticle", null);
|
|
466
|
-
_ts_decorate$
|
|
466
|
+
_ts_decorate$t([
|
|
467
467
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
468
468
|
memberBaseNestjsModule.AllowActions([
|
|
469
469
|
[
|
|
@@ -471,18 +471,18 @@ _ts_decorate$r([
|
|
|
471
471
|
BaseAction.PUT_BACK
|
|
472
472
|
]
|
|
473
473
|
]),
|
|
474
|
-
_ts_param$
|
|
475
|
-
_ts_param$
|
|
474
|
+
_ts_param$9(0, memberBaseNestjsModule.MemberId()),
|
|
475
|
+
_ts_param$9(1, graphql.Args('id', {
|
|
476
476
|
type: ()=>graphql.ID
|
|
477
477
|
})),
|
|
478
|
-
_ts_metadata$
|
|
479
|
-
_ts_metadata$
|
|
478
|
+
_ts_metadata$r("design:type", Function),
|
|
479
|
+
_ts_metadata$r("design:paramtypes", [
|
|
480
480
|
String,
|
|
481
481
|
String
|
|
482
482
|
]),
|
|
483
|
-
_ts_metadata$
|
|
483
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
484
484
|
], ArticleMutations.prototype, "putBackArticle", null);
|
|
485
|
-
_ts_decorate$
|
|
485
|
+
_ts_decorate$t([
|
|
486
486
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
487
487
|
memberBaseNestjsModule.AllowActions([
|
|
488
488
|
[
|
|
@@ -490,21 +490,21 @@ _ts_decorate$r([
|
|
|
490
490
|
BaseAction.APPROVE
|
|
491
491
|
]
|
|
492
492
|
]),
|
|
493
|
-
_ts_param$
|
|
493
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
494
494
|
type: ()=>graphql.ID
|
|
495
495
|
})),
|
|
496
|
-
_ts_param$
|
|
496
|
+
_ts_param$9(1, graphql.Args('version', {
|
|
497
497
|
type: ()=>graphql.Int,
|
|
498
498
|
nullable: true
|
|
499
499
|
})),
|
|
500
|
-
_ts_metadata$
|
|
501
|
-
_ts_metadata$
|
|
500
|
+
_ts_metadata$r("design:type", Function),
|
|
501
|
+
_ts_metadata$r("design:paramtypes", [
|
|
502
502
|
String,
|
|
503
503
|
Object
|
|
504
504
|
]),
|
|
505
|
-
_ts_metadata$
|
|
505
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
506
506
|
], ArticleMutations.prototype, "approveArticle", null);
|
|
507
|
-
_ts_decorate$
|
|
507
|
+
_ts_decorate$t([
|
|
508
508
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
509
509
|
memberBaseNestjsModule.AllowActions([
|
|
510
510
|
[
|
|
@@ -512,21 +512,21 @@ _ts_decorate$r([
|
|
|
512
512
|
BaseAction.REJECT
|
|
513
513
|
]
|
|
514
514
|
]),
|
|
515
|
-
_ts_param$
|
|
515
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
516
516
|
type: ()=>graphql.ID
|
|
517
517
|
})),
|
|
518
|
-
_ts_param$
|
|
518
|
+
_ts_param$9(1, graphql.Args('reason', {
|
|
519
519
|
type: ()=>String,
|
|
520
520
|
nullable: true
|
|
521
521
|
})),
|
|
522
|
-
_ts_metadata$
|
|
523
|
-
_ts_metadata$
|
|
522
|
+
_ts_metadata$r("design:type", Function),
|
|
523
|
+
_ts_metadata$r("design:paramtypes", [
|
|
524
524
|
String,
|
|
525
525
|
Object
|
|
526
526
|
]),
|
|
527
|
-
_ts_metadata$
|
|
527
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
528
528
|
], ArticleMutations.prototype, "rejectArticle", null);
|
|
529
|
-
_ts_decorate$
|
|
529
|
+
_ts_decorate$t([
|
|
530
530
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
531
531
|
memberBaseNestjsModule.AllowActions([
|
|
532
532
|
[
|
|
@@ -534,27 +534,27 @@ _ts_decorate$r([
|
|
|
534
534
|
BaseAction.RELEASE
|
|
535
535
|
]
|
|
536
536
|
]),
|
|
537
|
-
_ts_param$
|
|
538
|
-
_ts_param$
|
|
537
|
+
_ts_param$9(0, memberBaseNestjsModule.MemberId()),
|
|
538
|
+
_ts_param$9(1, graphql.Args('id', {
|
|
539
539
|
type: ()=>graphql.ID
|
|
540
540
|
})),
|
|
541
|
-
_ts_param$
|
|
541
|
+
_ts_param$9(2, graphql.Args('releasedAt', {
|
|
542
542
|
type: ()=>Date
|
|
543
543
|
})),
|
|
544
|
-
_ts_param$
|
|
544
|
+
_ts_param$9(3, graphql.Args('version', {
|
|
545
545
|
type: ()=>graphql.Int,
|
|
546
546
|
nullable: true
|
|
547
547
|
})),
|
|
548
|
-
_ts_metadata$
|
|
549
|
-
_ts_metadata$
|
|
548
|
+
_ts_metadata$r("design:type", Function),
|
|
549
|
+
_ts_metadata$r("design:paramtypes", [
|
|
550
550
|
String,
|
|
551
551
|
String,
|
|
552
552
|
typeof Date === "undefined" ? Object : Date,
|
|
553
553
|
Object
|
|
554
554
|
]),
|
|
555
|
-
_ts_metadata$
|
|
555
|
+
_ts_metadata$r("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
556
556
|
], ArticleMutations.prototype, "releaseArticle", null);
|
|
557
|
-
_ts_decorate$
|
|
557
|
+
_ts_decorate$t([
|
|
558
558
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
559
559
|
memberBaseNestjsModule.AllowActions([
|
|
560
560
|
[
|
|
@@ -562,94 +562,94 @@ _ts_decorate$r([
|
|
|
562
562
|
BaseAction.WITHDRAW
|
|
563
563
|
]
|
|
564
564
|
]),
|
|
565
|
-
_ts_param$
|
|
565
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
566
566
|
type: ()=>graphql.ID
|
|
567
567
|
})),
|
|
568
|
-
_ts_param$
|
|
568
|
+
_ts_param$9(1, graphql.Args('version', {
|
|
569
569
|
type: ()=>graphql.Int
|
|
570
570
|
})),
|
|
571
|
-
_ts_metadata$
|
|
572
|
-
_ts_metadata$
|
|
571
|
+
_ts_metadata$r("design:type", Function),
|
|
572
|
+
_ts_metadata$r("design:paramtypes", [
|
|
573
573
|
String,
|
|
574
574
|
Number
|
|
575
575
|
]),
|
|
576
|
-
_ts_metadata$
|
|
576
|
+
_ts_metadata$r("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
577
577
|
], ArticleMutations.prototype, "withdrawArticle", null);
|
|
578
|
-
ArticleMutations = _ts_decorate$
|
|
578
|
+
ArticleMutations = _ts_decorate$t([
|
|
579
579
|
graphql.Resolver(),
|
|
580
|
-
_ts_param$
|
|
581
|
-
_ts_metadata$
|
|
582
|
-
_ts_metadata$
|
|
580
|
+
_ts_param$9(0, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
581
|
+
_ts_metadata$r("design:type", Function),
|
|
582
|
+
_ts_metadata$r("design:paramtypes", [
|
|
583
583
|
Boolean,
|
|
584
584
|
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService
|
|
585
585
|
])
|
|
586
586
|
], ArticleMutations);
|
|
587
587
|
|
|
588
|
-
function _ts_decorate$
|
|
588
|
+
function _ts_decorate$s(decorators, target, key, desc) {
|
|
589
589
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
590
590
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
591
591
|
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;
|
|
592
592
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
593
593
|
}
|
|
594
|
-
function _ts_metadata$
|
|
594
|
+
function _ts_metadata$q(k, v) {
|
|
595
595
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
596
596
|
}
|
|
597
597
|
class CategoryMultiLanguageNameInput {
|
|
598
598
|
language;
|
|
599
599
|
name;
|
|
600
600
|
}
|
|
601
|
-
_ts_decorate$
|
|
601
|
+
_ts_decorate$s([
|
|
602
602
|
graphql.Field(()=>String, {
|
|
603
603
|
nullable: true
|
|
604
604
|
}),
|
|
605
|
-
_ts_metadata$
|
|
605
|
+
_ts_metadata$q("design:type", Object)
|
|
606
606
|
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
607
|
-
_ts_decorate$
|
|
607
|
+
_ts_decorate$s([
|
|
608
608
|
graphql.Field(()=>String),
|
|
609
|
-
_ts_metadata$
|
|
609
|
+
_ts_metadata$q("design:type", String)
|
|
610
610
|
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
611
|
-
CategoryMultiLanguageNameInput = _ts_decorate$
|
|
611
|
+
CategoryMultiLanguageNameInput = _ts_decorate$s([
|
|
612
612
|
graphql.InputType('CategoryMultiLanguageNameInput')
|
|
613
613
|
], CategoryMultiLanguageNameInput);
|
|
614
614
|
|
|
615
|
-
function _ts_decorate$
|
|
615
|
+
function _ts_decorate$r(decorators, target, key, desc) {
|
|
616
616
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
617
617
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
618
618
|
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;
|
|
619
619
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
620
620
|
}
|
|
621
|
-
function _ts_metadata$
|
|
621
|
+
function _ts_metadata$p(k, v) {
|
|
622
622
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
623
623
|
}
|
|
624
624
|
class CreateCategoryArgs {
|
|
625
625
|
parentIds;
|
|
626
626
|
multiLanguageNames;
|
|
627
627
|
}
|
|
628
|
-
_ts_decorate$
|
|
628
|
+
_ts_decorate$r([
|
|
629
629
|
graphql.Field(()=>[
|
|
630
630
|
graphql.ID
|
|
631
631
|
], {
|
|
632
632
|
nullable: true
|
|
633
633
|
}),
|
|
634
|
-
_ts_metadata$
|
|
634
|
+
_ts_metadata$p("design:type", Object)
|
|
635
635
|
], CreateCategoryArgs.prototype, "parentIds", void 0);
|
|
636
|
-
_ts_decorate$
|
|
636
|
+
_ts_decorate$r([
|
|
637
637
|
graphql.Field(()=>[
|
|
638
638
|
CategoryMultiLanguageNameInput
|
|
639
639
|
]),
|
|
640
|
-
_ts_metadata$
|
|
640
|
+
_ts_metadata$p("design:type", Array)
|
|
641
641
|
], CreateCategoryArgs.prototype, "multiLanguageNames", void 0);
|
|
642
|
-
CreateCategoryArgs = _ts_decorate$
|
|
642
|
+
CreateCategoryArgs = _ts_decorate$r([
|
|
643
643
|
graphql.ArgsType()
|
|
644
644
|
], CreateCategoryArgs);
|
|
645
645
|
|
|
646
|
-
function _ts_decorate$
|
|
646
|
+
function _ts_decorate$q(decorators, target, key, desc) {
|
|
647
647
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
648
648
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
649
649
|
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;
|
|
650
650
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
651
651
|
}
|
|
652
|
-
function _ts_metadata$
|
|
652
|
+
function _ts_metadata$o(k, v) {
|
|
653
653
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
654
654
|
}
|
|
655
655
|
class BaseCategoryDto {
|
|
@@ -657,23 +657,23 @@ class BaseCategoryDto {
|
|
|
657
657
|
createdAt;
|
|
658
658
|
updatedAt;
|
|
659
659
|
}
|
|
660
|
-
_ts_decorate$
|
|
660
|
+
_ts_decorate$q([
|
|
661
661
|
graphql.Field(()=>graphql.ID),
|
|
662
|
-
_ts_metadata$
|
|
662
|
+
_ts_metadata$o("design:type", String)
|
|
663
663
|
], BaseCategoryDto.prototype, "id", void 0);
|
|
664
|
-
_ts_decorate$
|
|
664
|
+
_ts_decorate$q([
|
|
665
665
|
graphql.Field(()=>Date),
|
|
666
|
-
_ts_metadata$
|
|
666
|
+
_ts_metadata$o("design:type", typeof Date === "undefined" ? Object : Date)
|
|
667
667
|
], BaseCategoryDto.prototype, "createdAt", void 0);
|
|
668
|
-
_ts_decorate$
|
|
668
|
+
_ts_decorate$q([
|
|
669
669
|
graphql.Field(()=>Date),
|
|
670
|
-
_ts_metadata$
|
|
670
|
+
_ts_metadata$o("design:type", typeof Date === "undefined" ? Object : Date)
|
|
671
671
|
], BaseCategoryDto.prototype, "updatedAt", void 0);
|
|
672
|
-
BaseCategoryDto = _ts_decorate$
|
|
672
|
+
BaseCategoryDto = _ts_decorate$q([
|
|
673
673
|
graphql.ObjectType('BaseCategory')
|
|
674
674
|
], BaseCategoryDto);
|
|
675
675
|
|
|
676
|
-
function _ts_decorate$
|
|
676
|
+
function _ts_decorate$p(decorators, target, key, desc) {
|
|
677
677
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
678
678
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
679
679
|
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;
|
|
@@ -681,40 +681,40 @@ function _ts_decorate$n(decorators, target, key, desc) {
|
|
|
681
681
|
}
|
|
682
682
|
class BackstageCategoryDto extends BaseCategoryDto {
|
|
683
683
|
}
|
|
684
|
-
BackstageCategoryDto = _ts_decorate$
|
|
684
|
+
BackstageCategoryDto = _ts_decorate$p([
|
|
685
685
|
graphql.ObjectType('BackstageCategory')
|
|
686
686
|
], BackstageCategoryDto);
|
|
687
687
|
|
|
688
|
-
function _ts_decorate$
|
|
688
|
+
function _ts_decorate$o(decorators, target, key, desc) {
|
|
689
689
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
690
690
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
691
691
|
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;
|
|
692
692
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
693
693
|
}
|
|
694
|
-
function _ts_metadata$
|
|
694
|
+
function _ts_metadata$n(k, v) {
|
|
695
695
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
696
696
|
}
|
|
697
697
|
class UpdateCategoryArgs extends CreateCategoryArgs {
|
|
698
698
|
id;
|
|
699
699
|
}
|
|
700
|
-
_ts_decorate$
|
|
700
|
+
_ts_decorate$o([
|
|
701
701
|
graphql.Field(()=>graphql.ID),
|
|
702
|
-
_ts_metadata$
|
|
702
|
+
_ts_metadata$n("design:type", String)
|
|
703
703
|
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
704
|
-
UpdateCategoryArgs = _ts_decorate$
|
|
704
|
+
UpdateCategoryArgs = _ts_decorate$o([
|
|
705
705
|
graphql.ArgsType()
|
|
706
706
|
], UpdateCategoryArgs);
|
|
707
707
|
|
|
708
|
-
function _ts_decorate$
|
|
708
|
+
function _ts_decorate$n(decorators, target, key, desc) {
|
|
709
709
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
710
710
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
711
711
|
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;
|
|
712
712
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
713
713
|
}
|
|
714
|
-
function _ts_metadata$
|
|
714
|
+
function _ts_metadata$m(k, v) {
|
|
715
715
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
716
716
|
}
|
|
717
|
-
function _ts_param$
|
|
717
|
+
function _ts_param$8(paramIndex, decorator) {
|
|
718
718
|
return function(target, key) {
|
|
719
719
|
decorator(target, key, paramIndex);
|
|
720
720
|
};
|
|
@@ -761,7 +761,7 @@ class CategoryMutations {
|
|
|
761
761
|
return true;
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
_ts_decorate$
|
|
764
|
+
_ts_decorate$n([
|
|
765
765
|
graphql.Mutation(()=>BackstageCategoryDto),
|
|
766
766
|
memberBaseNestjsModule.AllowActions([
|
|
767
767
|
[
|
|
@@ -769,14 +769,14 @@ _ts_decorate$l([
|
|
|
769
769
|
BaseAction.CREATE
|
|
770
770
|
]
|
|
771
771
|
]),
|
|
772
|
-
_ts_param$
|
|
773
|
-
_ts_metadata$
|
|
774
|
-
_ts_metadata$
|
|
772
|
+
_ts_param$8(0, graphql.Args()),
|
|
773
|
+
_ts_metadata$m("design:type", Function),
|
|
774
|
+
_ts_metadata$m("design:paramtypes", [
|
|
775
775
|
typeof CreateCategoryArgs === "undefined" ? Object : CreateCategoryArgs
|
|
776
776
|
]),
|
|
777
|
-
_ts_metadata$
|
|
777
|
+
_ts_metadata$m("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
778
778
|
], CategoryMutations.prototype, "createCategory", null);
|
|
779
|
-
_ts_decorate$
|
|
779
|
+
_ts_decorate$n([
|
|
780
780
|
graphql.Mutation(()=>BackstageCategoryDto),
|
|
781
781
|
memberBaseNestjsModule.AllowActions([
|
|
782
782
|
[
|
|
@@ -784,14 +784,14 @@ _ts_decorate$l([
|
|
|
784
784
|
BaseAction.UPDATE
|
|
785
785
|
]
|
|
786
786
|
]),
|
|
787
|
-
_ts_param$
|
|
788
|
-
_ts_metadata$
|
|
789
|
-
_ts_metadata$
|
|
787
|
+
_ts_param$8(0, graphql.Args()),
|
|
788
|
+
_ts_metadata$m("design:type", Function),
|
|
789
|
+
_ts_metadata$m("design:paramtypes", [
|
|
790
790
|
typeof UpdateCategoryArgs === "undefined" ? Object : UpdateCategoryArgs
|
|
791
791
|
]),
|
|
792
|
-
_ts_metadata$
|
|
792
|
+
_ts_metadata$m("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
793
793
|
], CategoryMutations.prototype, "updateCategory", null);
|
|
794
|
-
_ts_decorate$
|
|
794
|
+
_ts_decorate$n([
|
|
795
795
|
graphql.Mutation(()=>Boolean),
|
|
796
796
|
memberBaseNestjsModule.AllowActions([
|
|
797
797
|
[
|
|
@@ -799,32 +799,32 @@ _ts_decorate$l([
|
|
|
799
799
|
BaseAction.DELETE
|
|
800
800
|
]
|
|
801
801
|
]),
|
|
802
|
-
_ts_param$
|
|
802
|
+
_ts_param$8(0, graphql.Args('id', {
|
|
803
803
|
type: ()=>graphql.ID
|
|
804
804
|
})),
|
|
805
|
-
_ts_metadata$
|
|
806
|
-
_ts_metadata$
|
|
805
|
+
_ts_metadata$m("design:type", Function),
|
|
806
|
+
_ts_metadata$m("design:paramtypes", [
|
|
807
807
|
String
|
|
808
808
|
]),
|
|
809
|
-
_ts_metadata$
|
|
809
|
+
_ts_metadata$m("design:returntype", Promise)
|
|
810
810
|
], CategoryMutations.prototype, "deleteCategory", null);
|
|
811
|
-
CategoryMutations = _ts_decorate$
|
|
811
|
+
CategoryMutations = _ts_decorate$n([
|
|
812
812
|
graphql.Resolver(),
|
|
813
|
-
_ts_param$
|
|
814
|
-
_ts_metadata$
|
|
815
|
-
_ts_metadata$
|
|
813
|
+
_ts_param$8(0, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
814
|
+
_ts_metadata$m("design:type", Function),
|
|
815
|
+
_ts_metadata$m("design:paramtypes", [
|
|
816
816
|
Boolean,
|
|
817
817
|
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
818
818
|
])
|
|
819
819
|
], CategoryMutations);
|
|
820
820
|
|
|
821
|
-
function _ts_decorate$
|
|
821
|
+
function _ts_decorate$m(decorators, target, key, desc) {
|
|
822
822
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
823
823
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
824
824
|
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;
|
|
825
825
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
826
826
|
}
|
|
827
|
-
function _ts_metadata$
|
|
827
|
+
function _ts_metadata$l(k, v) {
|
|
828
828
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
829
829
|
}
|
|
830
830
|
class ArticlesArgs {
|
|
@@ -833,33 +833,33 @@ class ArticlesArgs {
|
|
|
833
833
|
limit;
|
|
834
834
|
searchTerm;
|
|
835
835
|
}
|
|
836
|
-
_ts_decorate$
|
|
836
|
+
_ts_decorate$m([
|
|
837
837
|
graphql.Field(()=>[
|
|
838
838
|
String
|
|
839
839
|
], {
|
|
840
840
|
nullable: true
|
|
841
841
|
}),
|
|
842
|
-
_ts_metadata$
|
|
842
|
+
_ts_metadata$l("design:type", Object)
|
|
843
843
|
], ArticlesArgs.prototype, "categoryIds", void 0);
|
|
844
|
-
_ts_decorate$
|
|
844
|
+
_ts_decorate$m([
|
|
845
845
|
graphql.Field(()=>graphql.Int, {
|
|
846
846
|
nullable: true
|
|
847
847
|
}),
|
|
848
|
-
_ts_metadata$
|
|
848
|
+
_ts_metadata$l("design:type", Object)
|
|
849
849
|
], ArticlesArgs.prototype, "offset", void 0);
|
|
850
|
-
_ts_decorate$
|
|
850
|
+
_ts_decorate$m([
|
|
851
851
|
graphql.Field(()=>graphql.Int, {
|
|
852
852
|
nullable: true
|
|
853
853
|
}),
|
|
854
|
-
_ts_metadata$
|
|
854
|
+
_ts_metadata$l("design:type", Object)
|
|
855
855
|
], ArticlesArgs.prototype, "limit", void 0);
|
|
856
|
-
_ts_decorate$
|
|
856
|
+
_ts_decorate$m([
|
|
857
857
|
graphql.Field(()=>String, {
|
|
858
858
|
nullable: true
|
|
859
859
|
}),
|
|
860
|
-
_ts_metadata$
|
|
860
|
+
_ts_metadata$l("design:type", Object)
|
|
861
861
|
], ArticlesArgs.prototype, "searchTerm", void 0);
|
|
862
|
-
ArticlesArgs = _ts_decorate$
|
|
862
|
+
ArticlesArgs = _ts_decorate$m([
|
|
863
863
|
graphql.ArgsType()
|
|
864
864
|
], ArticlesArgs);
|
|
865
865
|
|
|
@@ -891,13 +891,13 @@ const Language = common.createParamDecorator(async (data, context)=>{
|
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
|
|
894
|
-
function _ts_decorate$
|
|
894
|
+
function _ts_decorate$l(decorators, target, key, desc) {
|
|
895
895
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
896
896
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
897
897
|
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;
|
|
898
898
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
899
899
|
}
|
|
900
|
-
function _ts_metadata$
|
|
900
|
+
function _ts_metadata$k(k, v) {
|
|
901
901
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
902
902
|
}
|
|
903
903
|
class Collection {
|
|
@@ -905,29 +905,29 @@ class Collection {
|
|
|
905
905
|
offset;
|
|
906
906
|
limit;
|
|
907
907
|
}
|
|
908
|
-
_ts_decorate$
|
|
908
|
+
_ts_decorate$l([
|
|
909
909
|
graphql.Field(()=>graphql.Int),
|
|
910
|
-
_ts_metadata$
|
|
910
|
+
_ts_metadata$k("design:type", Number)
|
|
911
911
|
], Collection.prototype, "total", void 0);
|
|
912
|
-
_ts_decorate$
|
|
912
|
+
_ts_decorate$l([
|
|
913
913
|
graphql.Field(()=>graphql.Int),
|
|
914
|
-
_ts_metadata$
|
|
914
|
+
_ts_metadata$k("design:type", Number)
|
|
915
915
|
], Collection.prototype, "offset", void 0);
|
|
916
|
-
_ts_decorate$
|
|
916
|
+
_ts_decorate$l([
|
|
917
917
|
graphql.Field(()=>graphql.Int),
|
|
918
|
-
_ts_metadata$
|
|
918
|
+
_ts_metadata$k("design:type", Number)
|
|
919
919
|
], Collection.prototype, "limit", void 0);
|
|
920
|
-
Collection = _ts_decorate$
|
|
920
|
+
Collection = _ts_decorate$l([
|
|
921
921
|
graphql.ObjectType('Collection')
|
|
922
922
|
], Collection);
|
|
923
923
|
|
|
924
|
-
function _ts_decorate$
|
|
924
|
+
function _ts_decorate$k(decorators, target, key, desc) {
|
|
925
925
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
926
926
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
927
927
|
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;
|
|
928
928
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
929
929
|
}
|
|
930
|
-
function _ts_metadata$
|
|
930
|
+
function _ts_metadata$j(k, v) {
|
|
931
931
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
932
932
|
}
|
|
933
933
|
class ArticleDto extends BaseArticleDto {
|
|
@@ -935,101 +935,111 @@ class ArticleDto extends BaseArticleDto {
|
|
|
935
935
|
description;
|
|
936
936
|
content;
|
|
937
937
|
}
|
|
938
|
-
_ts_decorate$
|
|
938
|
+
_ts_decorate$k([
|
|
939
939
|
graphql.Field(()=>String),
|
|
940
|
-
_ts_metadata$
|
|
940
|
+
_ts_metadata$j("design:type", String)
|
|
941
941
|
], ArticleDto.prototype, "title", void 0);
|
|
942
|
-
_ts_decorate$
|
|
942
|
+
_ts_decorate$k([
|
|
943
943
|
graphql.Field(()=>String, {
|
|
944
944
|
nullable: true
|
|
945
945
|
}),
|
|
946
|
-
_ts_metadata$
|
|
946
|
+
_ts_metadata$j("design:type", Object)
|
|
947
947
|
], ArticleDto.prototype, "description", void 0);
|
|
948
|
-
_ts_decorate$
|
|
948
|
+
_ts_decorate$k([
|
|
949
949
|
graphql.Field(()=>QuadratsContentScalar),
|
|
950
|
-
_ts_metadata$
|
|
950
|
+
_ts_metadata$j("design:type", Array)
|
|
951
951
|
], ArticleDto.prototype, "content", void 0);
|
|
952
|
-
ArticleDto = _ts_decorate$
|
|
952
|
+
ArticleDto = _ts_decorate$k([
|
|
953
953
|
graphql.ObjectType('Article')
|
|
954
954
|
], ArticleDto);
|
|
955
955
|
|
|
956
|
-
function _ts_decorate$
|
|
956
|
+
function _ts_decorate$j(decorators, target, key, desc) {
|
|
957
957
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
958
958
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
959
959
|
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;
|
|
960
960
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
961
961
|
}
|
|
962
|
-
function _ts_metadata$
|
|
962
|
+
function _ts_metadata$i(k, v) {
|
|
963
963
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
964
964
|
}
|
|
965
965
|
class ArticleCollectionDto extends Collection {
|
|
966
966
|
articles;
|
|
967
967
|
}
|
|
968
|
-
_ts_decorate$
|
|
968
|
+
_ts_decorate$j([
|
|
969
969
|
graphql.Field(()=>[
|
|
970
970
|
ArticleDto
|
|
971
971
|
]),
|
|
972
|
-
_ts_metadata$
|
|
972
|
+
_ts_metadata$i("design:type", Array)
|
|
973
973
|
], ArticleCollectionDto.prototype, "articles", void 0);
|
|
974
|
-
ArticleCollectionDto = _ts_decorate$
|
|
974
|
+
ArticleCollectionDto = _ts_decorate$j([
|
|
975
975
|
graphql.ObjectType('ArticleCollection')
|
|
976
976
|
], ArticleCollectionDto);
|
|
977
977
|
|
|
978
|
-
function _ts_decorate$
|
|
978
|
+
function _ts_decorate$i(decorators, target, key, desc) {
|
|
979
979
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
980
980
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
981
981
|
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;
|
|
982
982
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
983
983
|
}
|
|
984
|
-
function _ts_metadata$
|
|
984
|
+
function _ts_metadata$h(k, v) {
|
|
985
985
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
986
986
|
}
|
|
987
987
|
class BackstageArticleCollectionDto extends Collection {
|
|
988
988
|
articles;
|
|
989
989
|
}
|
|
990
|
-
_ts_decorate$
|
|
990
|
+
_ts_decorate$i([
|
|
991
991
|
graphql.Field(()=>[
|
|
992
992
|
BackstageArticleDto
|
|
993
993
|
]),
|
|
994
|
-
_ts_metadata$
|
|
994
|
+
_ts_metadata$h("design:type", Array)
|
|
995
995
|
], BackstageArticleCollectionDto.prototype, "articles", void 0);
|
|
996
|
-
BackstageArticleCollectionDto = _ts_decorate$
|
|
996
|
+
BackstageArticleCollectionDto = _ts_decorate$i([
|
|
997
997
|
graphql.ObjectType('BackstageArticleCollection')
|
|
998
998
|
], BackstageArticleCollectionDto);
|
|
999
999
|
|
|
1000
|
-
function _ts_decorate$
|
|
1000
|
+
function _ts_decorate$h(decorators, target, key, desc) {
|
|
1001
1001
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1002
1002
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1003
1003
|
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;
|
|
1004
1004
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1005
1005
|
}
|
|
1006
|
-
function _ts_metadata$
|
|
1006
|
+
function _ts_metadata$g(k, v) {
|
|
1007
1007
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1008
1008
|
}
|
|
1009
1009
|
class BackstageArticleArgs extends ArticlesArgs {
|
|
1010
1010
|
stage;
|
|
1011
|
+
sorter;
|
|
1011
1012
|
}
|
|
1012
|
-
_ts_decorate$
|
|
1013
|
+
_ts_decorate$h([
|
|
1013
1014
|
graphql.Field(()=>cmsBaseNestjsModule.ArticleStage),
|
|
1014
|
-
_ts_metadata$
|
|
1015
|
+
_ts_metadata$g("design:type", typeof cmsBaseNestjsModule.ArticleStage === "undefined" ? Object : cmsBaseNestjsModule.ArticleStage)
|
|
1015
1016
|
], BackstageArticleArgs.prototype, "stage", void 0);
|
|
1016
|
-
|
|
1017
|
+
_ts_decorate$h([
|
|
1018
|
+
graphql.Field(()=>cmsBaseNestjsModule.ArticleSorter, {
|
|
1019
|
+
nullable: true
|
|
1020
|
+
}),
|
|
1021
|
+
_ts_metadata$g("design:type", Object)
|
|
1022
|
+
], BackstageArticleArgs.prototype, "sorter", void 0);
|
|
1023
|
+
BackstageArticleArgs = _ts_decorate$h([
|
|
1017
1024
|
graphql.ArgsType()
|
|
1018
1025
|
], BackstageArticleArgs);
|
|
1019
1026
|
graphql.registerEnumType(cmsBaseNestjsModule.ArticleStage, {
|
|
1020
1027
|
name: 'ArticleStage'
|
|
1021
1028
|
});
|
|
1029
|
+
graphql.registerEnumType(cmsBaseNestjsModule.ArticleSorter, {
|
|
1030
|
+
name: 'ArticleSorter'
|
|
1031
|
+
});
|
|
1022
1032
|
|
|
1023
|
-
function _ts_decorate$
|
|
1033
|
+
function _ts_decorate$g(decorators, target, key, desc) {
|
|
1024
1034
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1025
1035
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1026
1036
|
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;
|
|
1027
1037
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1028
1038
|
}
|
|
1029
|
-
function _ts_metadata$
|
|
1039
|
+
function _ts_metadata$f(k, v) {
|
|
1030
1040
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1031
1041
|
}
|
|
1032
|
-
function _ts_param$
|
|
1042
|
+
function _ts_param$7(paramIndex, decorator) {
|
|
1033
1043
|
return function(target, key) {
|
|
1034
1044
|
decorator(target, key, paramIndex);
|
|
1035
1045
|
};
|
|
@@ -1063,33 +1073,33 @@ class ArticleQueries {
|
|
|
1063
1073
|
return this.articleService.findCollection(args);
|
|
1064
1074
|
}
|
|
1065
1075
|
}
|
|
1066
|
-
_ts_decorate$
|
|
1076
|
+
_ts_decorate$g([
|
|
1067
1077
|
graphql.Query(()=>ArticleDto),
|
|
1068
1078
|
memberBaseNestjsModule.IsPublic(),
|
|
1069
|
-
_ts_param$
|
|
1079
|
+
_ts_param$7(0, graphql.Args('id', {
|
|
1070
1080
|
type: ()=>graphql.ID
|
|
1071
1081
|
})),
|
|
1072
|
-
_ts_param$
|
|
1073
|
-
_ts_metadata$
|
|
1074
|
-
_ts_metadata$
|
|
1082
|
+
_ts_param$7(1, Language()),
|
|
1083
|
+
_ts_metadata$f("design:type", Function),
|
|
1084
|
+
_ts_metadata$f("design:paramtypes", [
|
|
1075
1085
|
String,
|
|
1076
1086
|
String
|
|
1077
1087
|
]),
|
|
1078
|
-
_ts_metadata$
|
|
1088
|
+
_ts_metadata$f("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1079
1089
|
], ArticleQueries.prototype, "article", null);
|
|
1080
|
-
_ts_decorate$
|
|
1090
|
+
_ts_decorate$g([
|
|
1081
1091
|
graphql.Query(()=>ArticleCollectionDto),
|
|
1082
1092
|
memberBaseNestjsModule.IsPublic(),
|
|
1083
|
-
_ts_param$
|
|
1084
|
-
_ts_param$
|
|
1085
|
-
_ts_metadata$
|
|
1086
|
-
_ts_metadata$
|
|
1093
|
+
_ts_param$7(0, graphql.Args()),
|
|
1094
|
+
_ts_param$7(1, Language()),
|
|
1095
|
+
_ts_metadata$f("design:type", Function),
|
|
1096
|
+
_ts_metadata$f("design:paramtypes", [
|
|
1087
1097
|
typeof ArticlesArgs === "undefined" ? Object : ArticlesArgs,
|
|
1088
1098
|
String
|
|
1089
1099
|
]),
|
|
1090
|
-
_ts_metadata$
|
|
1100
|
+
_ts_metadata$f("design:returntype", Promise)
|
|
1091
1101
|
], ArticleQueries.prototype, "articles", null);
|
|
1092
|
-
_ts_decorate$
|
|
1102
|
+
_ts_decorate$g([
|
|
1093
1103
|
graphql.Query(()=>BackstageArticleDto),
|
|
1094
1104
|
memberBaseNestjsModule.AllowActions([
|
|
1095
1105
|
[
|
|
@@ -1097,21 +1107,21 @@ _ts_decorate$e([
|
|
|
1097
1107
|
BaseAction.READ
|
|
1098
1108
|
]
|
|
1099
1109
|
]),
|
|
1100
|
-
_ts_param$
|
|
1110
|
+
_ts_param$7(0, graphql.Args('id', {
|
|
1101
1111
|
type: ()=>graphql.ID
|
|
1102
1112
|
})),
|
|
1103
|
-
_ts_param$
|
|
1113
|
+
_ts_param$7(1, graphql.Args('version', {
|
|
1104
1114
|
type: ()=>graphql.Int,
|
|
1105
1115
|
nullable: true
|
|
1106
1116
|
})),
|
|
1107
|
-
_ts_metadata$
|
|
1108
|
-
_ts_metadata$
|
|
1117
|
+
_ts_metadata$f("design:type", Function),
|
|
1118
|
+
_ts_metadata$f("design:paramtypes", [
|
|
1109
1119
|
String,
|
|
1110
1120
|
Object
|
|
1111
1121
|
]),
|
|
1112
|
-
_ts_metadata$
|
|
1122
|
+
_ts_metadata$f("design:returntype", Promise)
|
|
1113
1123
|
], ArticleQueries.prototype, "backstageArticle", null);
|
|
1114
|
-
_ts_decorate$
|
|
1124
|
+
_ts_decorate$g([
|
|
1115
1125
|
graphql.Query(()=>BackstageArticleCollectionDto),
|
|
1116
1126
|
memberBaseNestjsModule.AllowActions([
|
|
1117
1127
|
[
|
|
@@ -1119,93 +1129,111 @@ _ts_decorate$e([
|
|
|
1119
1129
|
BaseAction.LIST
|
|
1120
1130
|
]
|
|
1121
1131
|
]),
|
|
1122
|
-
_ts_param$
|
|
1123
|
-
_ts_metadata$
|
|
1124
|
-
_ts_metadata$
|
|
1132
|
+
_ts_param$7(0, graphql.Args()),
|
|
1133
|
+
_ts_metadata$f("design:type", Function),
|
|
1134
|
+
_ts_metadata$f("design:paramtypes", [
|
|
1125
1135
|
typeof BackstageArticleArgs === "undefined" ? Object : BackstageArticleArgs
|
|
1126
1136
|
]),
|
|
1127
|
-
_ts_metadata$
|
|
1137
|
+
_ts_metadata$f("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1128
1138
|
], ArticleQueries.prototype, "backstageArticles", null);
|
|
1129
|
-
ArticleQueries = _ts_decorate$
|
|
1139
|
+
ArticleQueries = _ts_decorate$g([
|
|
1130
1140
|
graphql.Resolver(),
|
|
1131
|
-
_ts_param$
|
|
1132
|
-
_ts_metadata$
|
|
1133
|
-
_ts_metadata$
|
|
1141
|
+
_ts_param$7(1, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
1142
|
+
_ts_metadata$f("design:type", Function),
|
|
1143
|
+
_ts_metadata$f("design:paramtypes", [
|
|
1134
1144
|
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService,
|
|
1135
1145
|
Boolean
|
|
1136
1146
|
])
|
|
1137
1147
|
], ArticleQueries);
|
|
1138
1148
|
|
|
1139
|
-
function _ts_decorate$
|
|
1149
|
+
function _ts_decorate$f(decorators, target, key, desc) {
|
|
1140
1150
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1141
1151
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1142
1152
|
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;
|
|
1143
1153
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1144
1154
|
}
|
|
1145
|
-
function _ts_metadata$
|
|
1155
|
+
function _ts_metadata$e(k, v) {
|
|
1146
1156
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1147
1157
|
}
|
|
1148
1158
|
class CategoriesArgs {
|
|
1149
1159
|
parentIds;
|
|
1150
1160
|
ids;
|
|
1151
1161
|
searchTerm;
|
|
1162
|
+
fromTop;
|
|
1163
|
+
sorter;
|
|
1152
1164
|
}
|
|
1153
|
-
_ts_decorate$
|
|
1165
|
+
_ts_decorate$f([
|
|
1154
1166
|
graphql.Field(()=>[
|
|
1155
1167
|
String
|
|
1156
1168
|
], {
|
|
1157
1169
|
nullable: true
|
|
1158
1170
|
}),
|
|
1159
|
-
_ts_metadata$
|
|
1171
|
+
_ts_metadata$e("design:type", Object)
|
|
1160
1172
|
], CategoriesArgs.prototype, "parentIds", void 0);
|
|
1161
|
-
_ts_decorate$
|
|
1173
|
+
_ts_decorate$f([
|
|
1162
1174
|
graphql.Field(()=>[
|
|
1163
1175
|
String
|
|
1164
1176
|
], {
|
|
1165
1177
|
nullable: true
|
|
1166
1178
|
}),
|
|
1167
|
-
_ts_metadata$
|
|
1179
|
+
_ts_metadata$e("design:type", Object)
|
|
1168
1180
|
], CategoriesArgs.prototype, "ids", void 0);
|
|
1169
|
-
_ts_decorate$
|
|
1181
|
+
_ts_decorate$f([
|
|
1170
1182
|
graphql.Field(()=>String, {
|
|
1171
1183
|
nullable: true
|
|
1172
1184
|
}),
|
|
1173
|
-
_ts_metadata$
|
|
1185
|
+
_ts_metadata$e("design:type", Object)
|
|
1174
1186
|
], CategoriesArgs.prototype, "searchTerm", void 0);
|
|
1175
|
-
|
|
1187
|
+
_ts_decorate$f([
|
|
1188
|
+
graphql.Field(()=>Boolean, {
|
|
1189
|
+
description: 'If true, return only top level categories',
|
|
1190
|
+
nullable: true
|
|
1191
|
+
}),
|
|
1192
|
+
_ts_metadata$e("design:type", Object)
|
|
1193
|
+
], CategoriesArgs.prototype, "fromTop", void 0);
|
|
1194
|
+
_ts_decorate$f([
|
|
1195
|
+
graphql.Field(()=>cmsBaseNestjsModule.CategorySorter, {
|
|
1196
|
+
nullable: true
|
|
1197
|
+
}),
|
|
1198
|
+
_ts_metadata$e("design:type", Object)
|
|
1199
|
+
], CategoriesArgs.prototype, "sorter", void 0);
|
|
1200
|
+
CategoriesArgs = _ts_decorate$f([
|
|
1176
1201
|
graphql.ArgsType()
|
|
1177
1202
|
], CategoriesArgs);
|
|
1203
|
+
graphql.registerEnumType(cmsBaseNestjsModule.CategorySorter, {
|
|
1204
|
+
name: 'CategorySorter'
|
|
1205
|
+
});
|
|
1178
1206
|
|
|
1179
|
-
function _ts_decorate$
|
|
1207
|
+
function _ts_decorate$e(decorators, target, key, desc) {
|
|
1180
1208
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1181
1209
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1182
1210
|
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;
|
|
1183
1211
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1184
1212
|
}
|
|
1185
|
-
function _ts_metadata$
|
|
1213
|
+
function _ts_metadata$d(k, v) {
|
|
1186
1214
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1187
1215
|
}
|
|
1188
1216
|
class CategoryDto extends BaseCategoryDto {
|
|
1189
1217
|
name;
|
|
1190
1218
|
}
|
|
1191
|
-
_ts_decorate$
|
|
1219
|
+
_ts_decorate$e([
|
|
1192
1220
|
graphql.Field(()=>String),
|
|
1193
|
-
_ts_metadata$
|
|
1221
|
+
_ts_metadata$d("design:type", String)
|
|
1194
1222
|
], CategoryDto.prototype, "name", void 0);
|
|
1195
|
-
CategoryDto = _ts_decorate$
|
|
1223
|
+
CategoryDto = _ts_decorate$e([
|
|
1196
1224
|
graphql.ObjectType('Category')
|
|
1197
1225
|
], CategoryDto);
|
|
1198
1226
|
|
|
1199
|
-
function _ts_decorate$
|
|
1227
|
+
function _ts_decorate$d(decorators, target, key, desc) {
|
|
1200
1228
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1201
1229
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1202
1230
|
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;
|
|
1203
1231
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1204
1232
|
}
|
|
1205
|
-
function _ts_metadata$
|
|
1233
|
+
function _ts_metadata$c(k, v) {
|
|
1206
1234
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1207
1235
|
}
|
|
1208
|
-
function _ts_param$
|
|
1236
|
+
function _ts_param$6(paramIndex, decorator) {
|
|
1209
1237
|
return function(target, key) {
|
|
1210
1238
|
decorator(target, key, paramIndex);
|
|
1211
1239
|
};
|
|
@@ -1236,35 +1264,35 @@ class CategoryQueries {
|
|
|
1236
1264
|
return this.categoryService.findAll(args);
|
|
1237
1265
|
}
|
|
1238
1266
|
}
|
|
1239
|
-
_ts_decorate$
|
|
1267
|
+
_ts_decorate$d([
|
|
1240
1268
|
graphql.Query(()=>CategoryDto),
|
|
1241
1269
|
memberBaseNestjsModule.IsPublic(),
|
|
1242
|
-
_ts_param$
|
|
1270
|
+
_ts_param$6(0, graphql.Args('id', {
|
|
1243
1271
|
type: ()=>graphql.ID
|
|
1244
1272
|
})),
|
|
1245
|
-
_ts_param$
|
|
1246
|
-
_ts_metadata$
|
|
1247
|
-
_ts_metadata$
|
|
1273
|
+
_ts_param$6(1, Language()),
|
|
1274
|
+
_ts_metadata$c("design:type", Function),
|
|
1275
|
+
_ts_metadata$c("design:paramtypes", [
|
|
1248
1276
|
String,
|
|
1249
1277
|
String
|
|
1250
1278
|
]),
|
|
1251
|
-
_ts_metadata$
|
|
1279
|
+
_ts_metadata$c("design:returntype", Promise)
|
|
1252
1280
|
], CategoryQueries.prototype, "category", null);
|
|
1253
|
-
_ts_decorate$
|
|
1281
|
+
_ts_decorate$d([
|
|
1254
1282
|
graphql.Query(()=>[
|
|
1255
1283
|
CategoryDto
|
|
1256
1284
|
]),
|
|
1257
1285
|
memberBaseNestjsModule.IsPublic(),
|
|
1258
|
-
_ts_param$
|
|
1259
|
-
_ts_param$
|
|
1260
|
-
_ts_metadata$
|
|
1261
|
-
_ts_metadata$
|
|
1286
|
+
_ts_param$6(0, graphql.Args()),
|
|
1287
|
+
_ts_param$6(1, Language()),
|
|
1288
|
+
_ts_metadata$c("design:type", Function),
|
|
1289
|
+
_ts_metadata$c("design:paramtypes", [
|
|
1262
1290
|
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs,
|
|
1263
1291
|
String
|
|
1264
1292
|
]),
|
|
1265
|
-
_ts_metadata$
|
|
1293
|
+
_ts_metadata$c("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1266
1294
|
], CategoryQueries.prototype, "categories", null);
|
|
1267
|
-
_ts_decorate$
|
|
1295
|
+
_ts_decorate$d([
|
|
1268
1296
|
graphql.Query(()=>BackstageCategoryDto),
|
|
1269
1297
|
memberBaseNestjsModule.AllowActions([
|
|
1270
1298
|
[
|
|
@@ -1272,16 +1300,16 @@ _ts_decorate$b([
|
|
|
1272
1300
|
BaseAction.READ
|
|
1273
1301
|
]
|
|
1274
1302
|
]),
|
|
1275
|
-
_ts_param$
|
|
1303
|
+
_ts_param$6(0, graphql.Args('id', {
|
|
1276
1304
|
type: ()=>graphql.ID
|
|
1277
1305
|
})),
|
|
1278
|
-
_ts_metadata$
|
|
1279
|
-
_ts_metadata$
|
|
1306
|
+
_ts_metadata$c("design:type", Function),
|
|
1307
|
+
_ts_metadata$c("design:paramtypes", [
|
|
1280
1308
|
String
|
|
1281
1309
|
]),
|
|
1282
|
-
_ts_metadata$
|
|
1310
|
+
_ts_metadata$c("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1283
1311
|
], CategoryQueries.prototype, "backstageCategory", null);
|
|
1284
|
-
_ts_decorate$
|
|
1312
|
+
_ts_decorate$d([
|
|
1285
1313
|
graphql.Query(()=>[
|
|
1286
1314
|
BackstageCategoryDto
|
|
1287
1315
|
]),
|
|
@@ -1291,33 +1319,33 @@ _ts_decorate$b([
|
|
|
1291
1319
|
BaseAction.LIST
|
|
1292
1320
|
]
|
|
1293
1321
|
]),
|
|
1294
|
-
_ts_param$
|
|
1295
|
-
_ts_metadata$
|
|
1296
|
-
_ts_metadata$
|
|
1322
|
+
_ts_param$6(0, graphql.Args()),
|
|
1323
|
+
_ts_metadata$c("design:type", Function),
|
|
1324
|
+
_ts_metadata$c("design:paramtypes", [
|
|
1297
1325
|
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs
|
|
1298
1326
|
]),
|
|
1299
|
-
_ts_metadata$
|
|
1327
|
+
_ts_metadata$c("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1300
1328
|
], CategoryQueries.prototype, "backstageCategories", null);
|
|
1301
|
-
CategoryQueries = _ts_decorate$
|
|
1329
|
+
CategoryQueries = _ts_decorate$d([
|
|
1302
1330
|
graphql.Resolver(),
|
|
1303
|
-
_ts_param$
|
|
1304
|
-
_ts_metadata$
|
|
1305
|
-
_ts_metadata$
|
|
1331
|
+
_ts_param$6(0, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
1332
|
+
_ts_metadata$c("design:type", Function),
|
|
1333
|
+
_ts_metadata$c("design:paramtypes", [
|
|
1306
1334
|
Boolean,
|
|
1307
1335
|
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
1308
1336
|
])
|
|
1309
1337
|
], CategoryQueries);
|
|
1310
1338
|
|
|
1311
|
-
function _ts_decorate$
|
|
1339
|
+
function _ts_decorate$c(decorators, target, key, desc) {
|
|
1312
1340
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1313
1341
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1314
1342
|
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;
|
|
1315
1343
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1316
1344
|
}
|
|
1317
|
-
function _ts_metadata$
|
|
1345
|
+
function _ts_metadata$b(k, v) {
|
|
1318
1346
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1319
1347
|
}
|
|
1320
|
-
function _ts_param$
|
|
1348
|
+
function _ts_param$5(paramIndex, decorator) {
|
|
1321
1349
|
return function(target, key) {
|
|
1322
1350
|
decorator(target, key, paramIndex);
|
|
1323
1351
|
};
|
|
@@ -1349,25 +1377,25 @@ class MemberDataLoader {
|
|
|
1349
1377
|
}
|
|
1350
1378
|
loader;
|
|
1351
1379
|
}
|
|
1352
|
-
MemberDataLoader = _ts_decorate$
|
|
1380
|
+
MemberDataLoader = _ts_decorate$c([
|
|
1353
1381
|
common.Injectable(),
|
|
1354
|
-
_ts_param$
|
|
1355
|
-
_ts_metadata$
|
|
1356
|
-
_ts_metadata$
|
|
1382
|
+
_ts_param$5(0, common.Inject(memberBaseNestjsModule.RESOLVED_MEMBER_REPO)),
|
|
1383
|
+
_ts_metadata$b("design:type", Function),
|
|
1384
|
+
_ts_metadata$b("design:paramtypes", [
|
|
1357
1385
|
typeof typeorm.Repository === "undefined" ? Object : typeorm.Repository
|
|
1358
1386
|
])
|
|
1359
1387
|
], MemberDataLoader);
|
|
1360
1388
|
|
|
1361
|
-
function _ts_decorate$
|
|
1389
|
+
function _ts_decorate$b(decorators, target, key, desc) {
|
|
1362
1390
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1363
1391
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1364
1392
|
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;
|
|
1365
1393
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1366
1394
|
}
|
|
1367
|
-
function _ts_metadata$
|
|
1395
|
+
function _ts_metadata$a(k, v) {
|
|
1368
1396
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1369
1397
|
}
|
|
1370
|
-
function _ts_param$
|
|
1398
|
+
function _ts_param$4(paramIndex, decorator) {
|
|
1371
1399
|
return function(target, key) {
|
|
1372
1400
|
decorator(target, key, paramIndex);
|
|
1373
1401
|
};
|
|
@@ -1407,50 +1435,50 @@ class ArticleDataLoader {
|
|
|
1407
1435
|
}
|
|
1408
1436
|
categoriesLoader;
|
|
1409
1437
|
}
|
|
1410
|
-
ArticleDataLoader = _ts_decorate$
|
|
1438
|
+
ArticleDataLoader = _ts_decorate$b([
|
|
1411
1439
|
common.Injectable(),
|
|
1412
|
-
_ts_param$
|
|
1413
|
-
_ts_metadata$
|
|
1414
|
-
_ts_metadata$
|
|
1440
|
+
_ts_param$4(0, common.Inject(cmsBaseNestjsModule.RESOLVED_ARTICLE_REPO)),
|
|
1441
|
+
_ts_metadata$a("design:type", Function),
|
|
1442
|
+
_ts_metadata$a("design:paramtypes", [
|
|
1415
1443
|
typeof typeorm.Repository === "undefined" ? Object : typeorm.Repository
|
|
1416
1444
|
])
|
|
1417
1445
|
], ArticleDataLoader);
|
|
1418
1446
|
|
|
1419
|
-
function _ts_decorate$
|
|
1447
|
+
function _ts_decorate$a(decorators, target, key, desc) {
|
|
1420
1448
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1421
1449
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1422
1450
|
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;
|
|
1423
1451
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1424
1452
|
}
|
|
1425
|
-
function _ts_metadata$
|
|
1453
|
+
function _ts_metadata$9(k, v) {
|
|
1426
1454
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1427
1455
|
}
|
|
1428
1456
|
class UserDto {
|
|
1429
1457
|
id;
|
|
1430
1458
|
account;
|
|
1431
1459
|
}
|
|
1432
|
-
_ts_decorate$
|
|
1460
|
+
_ts_decorate$a([
|
|
1433
1461
|
graphql.Field(()=>graphql.ID),
|
|
1434
|
-
_ts_metadata$
|
|
1462
|
+
_ts_metadata$9("design:type", String)
|
|
1435
1463
|
], UserDto.prototype, "id", void 0);
|
|
1436
|
-
_ts_decorate$
|
|
1464
|
+
_ts_decorate$a([
|
|
1437
1465
|
graphql.Field(()=>String),
|
|
1438
|
-
_ts_metadata$
|
|
1466
|
+
_ts_metadata$9("design:type", String)
|
|
1439
1467
|
], UserDto.prototype, "account", void 0);
|
|
1440
|
-
UserDto = _ts_decorate$
|
|
1468
|
+
UserDto = _ts_decorate$a([
|
|
1441
1469
|
graphql.ObjectType('User')
|
|
1442
1470
|
], UserDto);
|
|
1443
1471
|
|
|
1444
|
-
function _ts_decorate$
|
|
1472
|
+
function _ts_decorate$9(decorators, target, key, desc) {
|
|
1445
1473
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1446
1474
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1447
1475
|
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;
|
|
1448
1476
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1449
1477
|
}
|
|
1450
|
-
function _ts_metadata$
|
|
1478
|
+
function _ts_metadata$8(k, v) {
|
|
1451
1479
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1452
1480
|
}
|
|
1453
|
-
function _ts_param$
|
|
1481
|
+
function _ts_param$3(paramIndex, decorator) {
|
|
1454
1482
|
return function(target, key) {
|
|
1455
1483
|
decorator(target, key, paramIndex);
|
|
1456
1484
|
};
|
|
@@ -1477,60 +1505,60 @@ class ArticleResolver {
|
|
|
1477
1505
|
});
|
|
1478
1506
|
}
|
|
1479
1507
|
}
|
|
1480
|
-
_ts_decorate$
|
|
1508
|
+
_ts_decorate$9([
|
|
1481
1509
|
graphql.ResolveField(()=>String),
|
|
1482
1510
|
memberBaseNestjsModule.IsPublic(),
|
|
1483
|
-
_ts_param$
|
|
1484
|
-
_ts_metadata$
|
|
1485
|
-
_ts_metadata$
|
|
1511
|
+
_ts_param$3(0, graphql.Root()),
|
|
1512
|
+
_ts_metadata$8("design:type", Function),
|
|
1513
|
+
_ts_metadata$8("design:paramtypes", [
|
|
1486
1514
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1487
1515
|
]),
|
|
1488
|
-
_ts_metadata$
|
|
1516
|
+
_ts_metadata$8("design:returntype", String)
|
|
1489
1517
|
], ArticleResolver.prototype, "articleId", null);
|
|
1490
|
-
_ts_decorate$
|
|
1518
|
+
_ts_decorate$9([
|
|
1491
1519
|
graphql.ResolveField(()=>UserDto, {
|
|
1492
1520
|
nullable: true
|
|
1493
1521
|
}),
|
|
1494
1522
|
memberBaseNestjsModule.IsPublic(),
|
|
1495
|
-
_ts_param$
|
|
1496
|
-
_ts_metadata$
|
|
1497
|
-
_ts_metadata$
|
|
1523
|
+
_ts_param$3(0, graphql.Root()),
|
|
1524
|
+
_ts_metadata$8("design:type", Function),
|
|
1525
|
+
_ts_metadata$8("design:paramtypes", [
|
|
1498
1526
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1499
1527
|
]),
|
|
1500
|
-
_ts_metadata$
|
|
1528
|
+
_ts_metadata$8("design:returntype", Object)
|
|
1501
1529
|
], ArticleResolver.prototype, "releasedBy", null);
|
|
1502
|
-
_ts_decorate$
|
|
1530
|
+
_ts_decorate$9([
|
|
1503
1531
|
graphql.ResolveField(()=>[
|
|
1504
1532
|
CategoryDto
|
|
1505
1533
|
]),
|
|
1506
1534
|
memberBaseNestjsModule.IsPublic(),
|
|
1507
|
-
_ts_param$
|
|
1508
|
-
_ts_param$
|
|
1509
|
-
_ts_metadata$
|
|
1510
|
-
_ts_metadata$
|
|
1535
|
+
_ts_param$3(0, graphql.Root()),
|
|
1536
|
+
_ts_param$3(1, Language()),
|
|
1537
|
+
_ts_metadata$8("design:type", Function),
|
|
1538
|
+
_ts_metadata$8("design:paramtypes", [
|
|
1511
1539
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto,
|
|
1512
1540
|
String
|
|
1513
1541
|
]),
|
|
1514
|
-
_ts_metadata$
|
|
1542
|
+
_ts_metadata$8("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1515
1543
|
], ArticleResolver.prototype, "categories", null);
|
|
1516
|
-
ArticleResolver = _ts_decorate$
|
|
1544
|
+
ArticleResolver = _ts_decorate$9([
|
|
1517
1545
|
graphql.Resolver(()=>ArticleDto),
|
|
1518
|
-
_ts_param$
|
|
1519
|
-
_ts_metadata$
|
|
1520
|
-
_ts_metadata$
|
|
1546
|
+
_ts_param$3(2, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
1547
|
+
_ts_metadata$8("design:type", Function),
|
|
1548
|
+
_ts_metadata$8("design:paramtypes", [
|
|
1521
1549
|
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader,
|
|
1522
1550
|
typeof ArticleDataLoader === "undefined" ? Object : ArticleDataLoader,
|
|
1523
1551
|
Boolean
|
|
1524
1552
|
])
|
|
1525
1553
|
], ArticleResolver);
|
|
1526
1554
|
|
|
1527
|
-
function _ts_decorate$
|
|
1555
|
+
function _ts_decorate$8(decorators, target, key, desc) {
|
|
1528
1556
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1529
1557
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1530
1558
|
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;
|
|
1531
1559
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1532
1560
|
}
|
|
1533
|
-
function _ts_metadata$
|
|
1561
|
+
function _ts_metadata$7(k, v) {
|
|
1534
1562
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1535
1563
|
}
|
|
1536
1564
|
class ArticleMultiLanguageContentDto {
|
|
@@ -1539,35 +1567,35 @@ class ArticleMultiLanguageContentDto {
|
|
|
1539
1567
|
description;
|
|
1540
1568
|
content;
|
|
1541
1569
|
}
|
|
1542
|
-
_ts_decorate$
|
|
1570
|
+
_ts_decorate$8([
|
|
1543
1571
|
graphql.Field(()=>String),
|
|
1544
|
-
_ts_metadata$
|
|
1572
|
+
_ts_metadata$7("design:type", String)
|
|
1545
1573
|
], ArticleMultiLanguageContentDto.prototype, "language", void 0);
|
|
1546
|
-
_ts_decorate$
|
|
1574
|
+
_ts_decorate$8([
|
|
1547
1575
|
graphql.Field(()=>String),
|
|
1548
|
-
_ts_metadata$
|
|
1576
|
+
_ts_metadata$7("design:type", String)
|
|
1549
1577
|
], ArticleMultiLanguageContentDto.prototype, "title", void 0);
|
|
1550
|
-
_ts_decorate$
|
|
1578
|
+
_ts_decorate$8([
|
|
1551
1579
|
graphql.Field(()=>String, {
|
|
1552
1580
|
nullable: true
|
|
1553
1581
|
}),
|
|
1554
|
-
_ts_metadata$
|
|
1582
|
+
_ts_metadata$7("design:type", Object)
|
|
1555
1583
|
], ArticleMultiLanguageContentDto.prototype, "description", void 0);
|
|
1556
|
-
_ts_decorate$
|
|
1584
|
+
_ts_decorate$8([
|
|
1557
1585
|
graphql.Field(()=>QuadratsContentScalar),
|
|
1558
|
-
_ts_metadata$
|
|
1586
|
+
_ts_metadata$7("design:type", Array)
|
|
1559
1587
|
], ArticleMultiLanguageContentDto.prototype, "content", void 0);
|
|
1560
|
-
ArticleMultiLanguageContentDto = _ts_decorate$
|
|
1588
|
+
ArticleMultiLanguageContentDto = _ts_decorate$8([
|
|
1561
1589
|
graphql.ObjectType('ArticleMultiLanguageContent')
|
|
1562
1590
|
], ArticleMultiLanguageContentDto);
|
|
1563
1591
|
|
|
1564
|
-
function _ts_decorate$
|
|
1592
|
+
function _ts_decorate$7(decorators, target, key, desc) {
|
|
1565
1593
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1566
1594
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1567
1595
|
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;
|
|
1568
1596
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1569
1597
|
}
|
|
1570
|
-
function _ts_metadata$
|
|
1598
|
+
function _ts_metadata$6(k, v) {
|
|
1571
1599
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1572
1600
|
}
|
|
1573
1601
|
class ArticleStageVersionDto {
|
|
@@ -1578,51 +1606,51 @@ class ArticleStageVersionDto {
|
|
|
1578
1606
|
scheduled;
|
|
1579
1607
|
released;
|
|
1580
1608
|
}
|
|
1581
|
-
_ts_decorate$
|
|
1609
|
+
_ts_decorate$7([
|
|
1582
1610
|
graphql.Field(()=>graphql.ID),
|
|
1583
|
-
_ts_metadata$
|
|
1611
|
+
_ts_metadata$6("design:type", String)
|
|
1584
1612
|
], ArticleStageVersionDto.prototype, "id", void 0);
|
|
1585
|
-
_ts_decorate$
|
|
1613
|
+
_ts_decorate$7([
|
|
1586
1614
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1587
1615
|
nullable: true
|
|
1588
1616
|
}),
|
|
1589
|
-
_ts_metadata$
|
|
1617
|
+
_ts_metadata$6("design:type", Object)
|
|
1590
1618
|
], ArticleStageVersionDto.prototype, "draft", void 0);
|
|
1591
|
-
_ts_decorate$
|
|
1619
|
+
_ts_decorate$7([
|
|
1592
1620
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1593
1621
|
nullable: true
|
|
1594
1622
|
}),
|
|
1595
|
-
_ts_metadata$
|
|
1623
|
+
_ts_metadata$6("design:type", Object)
|
|
1596
1624
|
], ArticleStageVersionDto.prototype, "reviewing", void 0);
|
|
1597
|
-
_ts_decorate$
|
|
1625
|
+
_ts_decorate$7([
|
|
1598
1626
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1599
1627
|
nullable: true
|
|
1600
1628
|
}),
|
|
1601
|
-
_ts_metadata$
|
|
1629
|
+
_ts_metadata$6("design:type", Object)
|
|
1602
1630
|
], ArticleStageVersionDto.prototype, "verified", void 0);
|
|
1603
|
-
_ts_decorate$
|
|
1631
|
+
_ts_decorate$7([
|
|
1604
1632
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1605
1633
|
nullable: true
|
|
1606
1634
|
}),
|
|
1607
|
-
_ts_metadata$
|
|
1635
|
+
_ts_metadata$6("design:type", Object)
|
|
1608
1636
|
], ArticleStageVersionDto.prototype, "scheduled", void 0);
|
|
1609
|
-
_ts_decorate$
|
|
1637
|
+
_ts_decorate$7([
|
|
1610
1638
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1611
1639
|
nullable: true
|
|
1612
1640
|
}),
|
|
1613
|
-
_ts_metadata$
|
|
1641
|
+
_ts_metadata$6("design:type", Object)
|
|
1614
1642
|
], ArticleStageVersionDto.prototype, "released", void 0);
|
|
1615
|
-
ArticleStageVersionDto = _ts_decorate$
|
|
1643
|
+
ArticleStageVersionDto = _ts_decorate$7([
|
|
1616
1644
|
graphql.ObjectType('ArticleStageVersion')
|
|
1617
1645
|
], ArticleStageVersionDto);
|
|
1618
1646
|
|
|
1619
|
-
function _ts_decorate$
|
|
1647
|
+
function _ts_decorate$6(decorators, target, key, desc) {
|
|
1620
1648
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1621
1649
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1622
1650
|
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;
|
|
1623
1651
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1624
1652
|
}
|
|
1625
|
-
function _ts_metadata$
|
|
1653
|
+
function _ts_metadata$5(k, v) {
|
|
1626
1654
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1627
1655
|
}
|
|
1628
1656
|
class ArticleSignatureDto {
|
|
@@ -1631,41 +1659,41 @@ class ArticleSignatureDto {
|
|
|
1631
1659
|
result;
|
|
1632
1660
|
rejectReason;
|
|
1633
1661
|
}
|
|
1634
|
-
_ts_decorate$
|
|
1662
|
+
_ts_decorate$6([
|
|
1635
1663
|
graphql.Field(()=>graphql.ID),
|
|
1636
|
-
_ts_metadata$
|
|
1664
|
+
_ts_metadata$5("design:type", String)
|
|
1637
1665
|
], ArticleSignatureDto.prototype, "id", void 0);
|
|
1638
|
-
_ts_decorate$
|
|
1666
|
+
_ts_decorate$6([
|
|
1639
1667
|
graphql.Field(()=>Date),
|
|
1640
|
-
_ts_metadata$
|
|
1668
|
+
_ts_metadata$5("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1641
1669
|
], ArticleSignatureDto.prototype, "signedAt", void 0);
|
|
1642
|
-
_ts_decorate$
|
|
1670
|
+
_ts_decorate$6([
|
|
1643
1671
|
graphql.Field(()=>cmsBaseNestjsModule.ArticleSignatureResult),
|
|
1644
|
-
_ts_metadata$
|
|
1672
|
+
_ts_metadata$5("design:type", typeof cmsBaseNestjsModule.ArticleSignatureResult === "undefined" ? Object : cmsBaseNestjsModule.ArticleSignatureResult)
|
|
1645
1673
|
], ArticleSignatureDto.prototype, "result", void 0);
|
|
1646
|
-
_ts_decorate$
|
|
1674
|
+
_ts_decorate$6([
|
|
1647
1675
|
graphql.Field(()=>String, {
|
|
1648
1676
|
nullable: true
|
|
1649
1677
|
}),
|
|
1650
|
-
_ts_metadata$
|
|
1678
|
+
_ts_metadata$5("design:type", Object)
|
|
1651
1679
|
], ArticleSignatureDto.prototype, "rejectReason", void 0);
|
|
1652
|
-
ArticleSignatureDto = _ts_decorate$
|
|
1680
|
+
ArticleSignatureDto = _ts_decorate$6([
|
|
1653
1681
|
graphql.ObjectType('ArticleSignature')
|
|
1654
1682
|
], ArticleSignatureDto);
|
|
1655
1683
|
graphql.registerEnumType(cmsBaseNestjsModule.ArticleSignatureResult, {
|
|
1656
1684
|
name: 'ArticleSignatureResult'
|
|
1657
1685
|
});
|
|
1658
1686
|
|
|
1659
|
-
function _ts_decorate$
|
|
1687
|
+
function _ts_decorate$5(decorators, target, key, desc) {
|
|
1660
1688
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1661
1689
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1662
1690
|
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;
|
|
1663
1691
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1664
1692
|
}
|
|
1665
|
-
function _ts_metadata$
|
|
1693
|
+
function _ts_metadata$4(k, v) {
|
|
1666
1694
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1667
1695
|
}
|
|
1668
|
-
function _ts_param$
|
|
1696
|
+
function _ts_param$2(paramIndex, decorator) {
|
|
1669
1697
|
return function(target, key) {
|
|
1670
1698
|
decorator(target, key, paramIndex);
|
|
1671
1699
|
};
|
|
@@ -1764,169 +1792,169 @@ class BackstageArticleResolver {
|
|
|
1764
1792
|
};
|
|
1765
1793
|
}
|
|
1766
1794
|
}
|
|
1767
|
-
_ts_decorate$
|
|
1795
|
+
_ts_decorate$5([
|
|
1768
1796
|
graphql.ResolveField(()=>graphql.ID),
|
|
1769
1797
|
memberBaseNestjsModule.Authenticated(),
|
|
1770
|
-
_ts_param$
|
|
1771
|
-
_ts_metadata$
|
|
1772
|
-
_ts_metadata$
|
|
1798
|
+
_ts_param$2(0, graphql.Root()),
|
|
1799
|
+
_ts_metadata$4("design:type", Function),
|
|
1800
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1773
1801
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1774
1802
|
]),
|
|
1775
|
-
_ts_metadata$
|
|
1803
|
+
_ts_metadata$4("design:returntype", String)
|
|
1776
1804
|
], BackstageArticleResolver.prototype, "id", null);
|
|
1777
|
-
_ts_decorate$
|
|
1805
|
+
_ts_decorate$5([
|
|
1778
1806
|
graphql.ResolveField(()=>String),
|
|
1779
1807
|
memberBaseNestjsModule.Authenticated(),
|
|
1780
|
-
_ts_param$
|
|
1781
|
-
_ts_metadata$
|
|
1782
|
-
_ts_metadata$
|
|
1808
|
+
_ts_param$2(0, graphql.Root()),
|
|
1809
|
+
_ts_metadata$4("design:type", Function),
|
|
1810
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1783
1811
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1784
1812
|
]),
|
|
1785
|
-
_ts_metadata$
|
|
1813
|
+
_ts_metadata$4("design:returntype", String)
|
|
1786
1814
|
], BackstageArticleResolver.prototype, "articleId", null);
|
|
1787
|
-
_ts_decorate$
|
|
1815
|
+
_ts_decorate$5([
|
|
1788
1816
|
graphql.ResolveField(()=>UserDto, {
|
|
1789
1817
|
nullable: true
|
|
1790
1818
|
}),
|
|
1791
1819
|
memberBaseNestjsModule.Authenticated(),
|
|
1792
|
-
_ts_param$
|
|
1793
|
-
_ts_metadata$
|
|
1794
|
-
_ts_metadata$
|
|
1820
|
+
_ts_param$2(0, graphql.Root()),
|
|
1821
|
+
_ts_metadata$4("design:type", Function),
|
|
1822
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1795
1823
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1796
1824
|
]),
|
|
1797
|
-
_ts_metadata$
|
|
1825
|
+
_ts_metadata$4("design:returntype", Object)
|
|
1798
1826
|
], BackstageArticleResolver.prototype, "submittedBy", null);
|
|
1799
|
-
_ts_decorate$
|
|
1827
|
+
_ts_decorate$5([
|
|
1800
1828
|
graphql.ResolveField(()=>UserDto, {
|
|
1801
1829
|
nullable: true
|
|
1802
1830
|
}),
|
|
1803
1831
|
memberBaseNestjsModule.Authenticated(),
|
|
1804
|
-
_ts_param$
|
|
1805
|
-
_ts_metadata$
|
|
1806
|
-
_ts_metadata$
|
|
1832
|
+
_ts_param$2(0, graphql.Root()),
|
|
1833
|
+
_ts_metadata$4("design:type", Function),
|
|
1834
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1807
1835
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1808
1836
|
]),
|
|
1809
|
-
_ts_metadata$
|
|
1837
|
+
_ts_metadata$4("design:returntype", Object)
|
|
1810
1838
|
], BackstageArticleResolver.prototype, "lastEditor", null);
|
|
1811
|
-
_ts_decorate$
|
|
1839
|
+
_ts_decorate$5([
|
|
1812
1840
|
graphql.ResolveField(()=>UserDto, {
|
|
1813
1841
|
nullable: true
|
|
1814
1842
|
}),
|
|
1815
1843
|
memberBaseNestjsModule.Authenticated(),
|
|
1816
|
-
_ts_param$
|
|
1817
|
-
_ts_metadata$
|
|
1818
|
-
_ts_metadata$
|
|
1844
|
+
_ts_param$2(0, graphql.Root()),
|
|
1845
|
+
_ts_metadata$4("design:type", Function),
|
|
1846
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1819
1847
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1820
1848
|
]),
|
|
1821
|
-
_ts_metadata$
|
|
1849
|
+
_ts_metadata$4("design:returntype", Object)
|
|
1822
1850
|
], BackstageArticleResolver.prototype, "releasedBy", null);
|
|
1823
|
-
_ts_decorate$
|
|
1851
|
+
_ts_decorate$5([
|
|
1824
1852
|
graphql.ResolveField(()=>[
|
|
1825
1853
|
CategoryDto
|
|
1826
1854
|
]),
|
|
1827
1855
|
memberBaseNestjsModule.Authenticated(),
|
|
1828
|
-
_ts_param$
|
|
1829
|
-
_ts_param$
|
|
1830
|
-
_ts_metadata$
|
|
1831
|
-
_ts_metadata$
|
|
1856
|
+
_ts_param$2(0, graphql.Root()),
|
|
1857
|
+
_ts_param$2(1, Language()),
|
|
1858
|
+
_ts_metadata$4("design:type", Function),
|
|
1859
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1832
1860
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto,
|
|
1833
1861
|
String
|
|
1834
1862
|
]),
|
|
1835
|
-
_ts_metadata$
|
|
1863
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1836
1864
|
], BackstageArticleResolver.prototype, "categories", null);
|
|
1837
|
-
_ts_decorate$
|
|
1865
|
+
_ts_decorate$5([
|
|
1838
1866
|
graphql.ResolveField(()=>String),
|
|
1839
1867
|
memberBaseNestjsModule.Authenticated(),
|
|
1840
|
-
_ts_param$
|
|
1841
|
-
_ts_metadata$
|
|
1842
|
-
_ts_metadata$
|
|
1868
|
+
_ts_param$2(0, graphql.Root()),
|
|
1869
|
+
_ts_metadata$4("design:type", Function),
|
|
1870
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1843
1871
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1844
1872
|
]),
|
|
1845
|
-
_ts_metadata$
|
|
1873
|
+
_ts_metadata$4("design:returntype", String)
|
|
1846
1874
|
], BackstageArticleResolver.prototype, "title", null);
|
|
1847
|
-
_ts_decorate$
|
|
1875
|
+
_ts_decorate$5([
|
|
1848
1876
|
graphql.ResolveField(()=>String, {
|
|
1849
1877
|
nullable: true
|
|
1850
1878
|
}),
|
|
1851
1879
|
memberBaseNestjsModule.Authenticated(),
|
|
1852
|
-
_ts_param$
|
|
1853
|
-
_ts_metadata$
|
|
1854
|
-
_ts_metadata$
|
|
1880
|
+
_ts_param$2(0, graphql.Root()),
|
|
1881
|
+
_ts_metadata$4("design:type", Function),
|
|
1882
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1855
1883
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1856
1884
|
]),
|
|
1857
|
-
_ts_metadata$
|
|
1885
|
+
_ts_metadata$4("design:returntype", Object)
|
|
1858
1886
|
], BackstageArticleResolver.prototype, "description", null);
|
|
1859
|
-
_ts_decorate$
|
|
1887
|
+
_ts_decorate$5([
|
|
1860
1888
|
graphql.ResolveField(()=>QuadratsContentScalar),
|
|
1861
1889
|
memberBaseNestjsModule.Authenticated(),
|
|
1862
|
-
_ts_param$
|
|
1863
|
-
_ts_metadata$
|
|
1864
|
-
_ts_metadata$
|
|
1890
|
+
_ts_param$2(0, graphql.Root()),
|
|
1891
|
+
_ts_metadata$4("design:type", Function),
|
|
1892
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1865
1893
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1866
1894
|
]),
|
|
1867
|
-
_ts_metadata$
|
|
1895
|
+
_ts_metadata$4("design:returntype", Array)
|
|
1868
1896
|
], BackstageArticleResolver.prototype, "content", null);
|
|
1869
|
-
_ts_decorate$
|
|
1897
|
+
_ts_decorate$5([
|
|
1870
1898
|
graphql.ResolveField(()=>[
|
|
1871
1899
|
ArticleMultiLanguageContentDto
|
|
1872
1900
|
]),
|
|
1873
1901
|
memberBaseNestjsModule.Authenticated(),
|
|
1874
|
-
_ts_param$
|
|
1875
|
-
_ts_metadata$
|
|
1876
|
-
_ts_metadata$
|
|
1902
|
+
_ts_param$2(0, graphql.Root()),
|
|
1903
|
+
_ts_metadata$4("design:type", Function),
|
|
1904
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1877
1905
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1878
1906
|
]),
|
|
1879
|
-
_ts_metadata$
|
|
1907
|
+
_ts_metadata$4("design:returntype", Array)
|
|
1880
1908
|
], BackstageArticleResolver.prototype, "multiLanguageContents", null);
|
|
1881
|
-
_ts_decorate$
|
|
1909
|
+
_ts_decorate$5([
|
|
1882
1910
|
graphql.ResolveField(()=>[
|
|
1883
1911
|
BackstageArticleDto
|
|
1884
1912
|
]),
|
|
1885
1913
|
memberBaseNestjsModule.Authenticated(),
|
|
1886
|
-
_ts_param$
|
|
1887
|
-
_ts_metadata$
|
|
1888
|
-
_ts_metadata$
|
|
1914
|
+
_ts_param$2(0, graphql.Root()),
|
|
1915
|
+
_ts_metadata$4("design:type", Function),
|
|
1916
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1889
1917
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1890
1918
|
]),
|
|
1891
|
-
_ts_metadata$
|
|
1919
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1892
1920
|
], BackstageArticleResolver.prototype, "versions", null);
|
|
1893
|
-
_ts_decorate$
|
|
1921
|
+
_ts_decorate$5([
|
|
1894
1922
|
graphql.ResolveField(()=>cmsBaseNestjsModule.ArticleStage),
|
|
1895
1923
|
memberBaseNestjsModule.Authenticated(),
|
|
1896
|
-
_ts_param$
|
|
1897
|
-
_ts_metadata$
|
|
1898
|
-
_ts_metadata$
|
|
1924
|
+
_ts_param$2(0, graphql.Root()),
|
|
1925
|
+
_ts_metadata$4("design:type", Function),
|
|
1926
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1899
1927
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1900
1928
|
]),
|
|
1901
|
-
_ts_metadata$
|
|
1929
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1902
1930
|
], BackstageArticleResolver.prototype, "stage", null);
|
|
1903
|
-
_ts_decorate$
|
|
1931
|
+
_ts_decorate$5([
|
|
1904
1932
|
graphql.ResolveField(()=>[
|
|
1905
1933
|
ArticleSignatureDto
|
|
1906
1934
|
]),
|
|
1907
1935
|
memberBaseNestjsModule.Authenticated(),
|
|
1908
|
-
_ts_param$
|
|
1909
|
-
_ts_metadata$
|
|
1910
|
-
_ts_metadata$
|
|
1936
|
+
_ts_param$2(0, graphql.Root()),
|
|
1937
|
+
_ts_metadata$4("design:type", Function),
|
|
1938
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1911
1939
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1912
1940
|
]),
|
|
1913
|
-
_ts_metadata$
|
|
1941
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1914
1942
|
], BackstageArticleResolver.prototype, "signatures", null);
|
|
1915
|
-
_ts_decorate$
|
|
1943
|
+
_ts_decorate$5([
|
|
1916
1944
|
graphql.ResolveField(()=>ArticleStageVersionDto),
|
|
1917
1945
|
memberBaseNestjsModule.Authenticated(),
|
|
1918
|
-
_ts_param$
|
|
1919
|
-
_ts_metadata$
|
|
1920
|
-
_ts_metadata$
|
|
1946
|
+
_ts_param$2(0, graphql.Root()),
|
|
1947
|
+
_ts_metadata$4("design:type", Function),
|
|
1948
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1921
1949
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1922
1950
|
]),
|
|
1923
|
-
_ts_metadata$
|
|
1951
|
+
_ts_metadata$4("design:returntype", Promise)
|
|
1924
1952
|
], BackstageArticleResolver.prototype, "stageVersions", null);
|
|
1925
|
-
BackstageArticleResolver = _ts_decorate$
|
|
1953
|
+
BackstageArticleResolver = _ts_decorate$5([
|
|
1926
1954
|
graphql.Resolver(()=>BackstageArticleDto),
|
|
1927
|
-
_ts_param$
|
|
1928
|
-
_ts_metadata$
|
|
1929
|
-
_ts_metadata$
|
|
1955
|
+
_ts_param$2(2, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
1956
|
+
_ts_metadata$4("design:type", Function),
|
|
1957
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1930
1958
|
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader,
|
|
1931
1959
|
typeof ArticleDataLoader === "undefined" ? Object : ArticleDataLoader,
|
|
1932
1960
|
Boolean,
|
|
@@ -1936,41 +1964,41 @@ BackstageArticleResolver = _ts_decorate$3([
|
|
|
1936
1964
|
])
|
|
1937
1965
|
], BackstageArticleResolver);
|
|
1938
1966
|
|
|
1939
|
-
function _ts_decorate$
|
|
1967
|
+
function _ts_decorate$4(decorators, target, key, desc) {
|
|
1940
1968
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1941
1969
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1942
1970
|
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;
|
|
1943
1971
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1944
1972
|
}
|
|
1945
|
-
function _ts_metadata$
|
|
1973
|
+
function _ts_metadata$3(k, v) {
|
|
1946
1974
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1947
1975
|
}
|
|
1948
1976
|
class ArticleSignatureStepDto {
|
|
1949
1977
|
id;
|
|
1950
1978
|
name;
|
|
1951
1979
|
}
|
|
1952
|
-
_ts_decorate$
|
|
1980
|
+
_ts_decorate$4([
|
|
1953
1981
|
graphql.Field(()=>graphql.ID),
|
|
1954
|
-
_ts_metadata$
|
|
1982
|
+
_ts_metadata$3("design:type", String)
|
|
1955
1983
|
], ArticleSignatureStepDto.prototype, "id", void 0);
|
|
1956
|
-
_ts_decorate$
|
|
1984
|
+
_ts_decorate$4([
|
|
1957
1985
|
graphql.Field(()=>String),
|
|
1958
|
-
_ts_metadata$
|
|
1986
|
+
_ts_metadata$3("design:type", String)
|
|
1959
1987
|
], ArticleSignatureStepDto.prototype, "name", void 0);
|
|
1960
|
-
ArticleSignatureStepDto = _ts_decorate$
|
|
1988
|
+
ArticleSignatureStepDto = _ts_decorate$4([
|
|
1961
1989
|
graphql.ObjectType('ArticleSignatureStep')
|
|
1962
1990
|
], ArticleSignatureStepDto);
|
|
1963
1991
|
|
|
1964
|
-
function _ts_decorate$
|
|
1992
|
+
function _ts_decorate$3(decorators, target, key, desc) {
|
|
1965
1993
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1966
1994
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1967
1995
|
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;
|
|
1968
1996
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1969
1997
|
}
|
|
1970
|
-
function _ts_metadata(k, v) {
|
|
1998
|
+
function _ts_metadata$2(k, v) {
|
|
1971
1999
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1972
2000
|
}
|
|
1973
|
-
function _ts_param(paramIndex, decorator) {
|
|
2001
|
+
function _ts_param$1(paramIndex, decorator) {
|
|
1974
2002
|
return function(target, key) {
|
|
1975
2003
|
decorator(target, key, paramIndex);
|
|
1976
2004
|
};
|
|
@@ -1990,35 +2018,128 @@ class ArticleSignatureResolver {
|
|
|
1990
2018
|
};
|
|
1991
2019
|
}
|
|
1992
2020
|
}
|
|
1993
|
-
_ts_decorate$
|
|
2021
|
+
_ts_decorate$3([
|
|
1994
2022
|
graphql.ResolveField(()=>UserDto, {
|
|
1995
2023
|
nullable: true
|
|
1996
2024
|
}),
|
|
1997
2025
|
memberBaseNestjsModule.Authenticated(),
|
|
2026
|
+
_ts_param$1(0, graphql.Root()),
|
|
2027
|
+
_ts_metadata$2("design:type", Function),
|
|
2028
|
+
_ts_metadata$2("design:paramtypes", [
|
|
2029
|
+
typeof cmsBaseNestjsModule.ArticleSignatureEntity === "undefined" ? Object : cmsBaseNestjsModule.ArticleSignatureEntity
|
|
2030
|
+
]),
|
|
2031
|
+
_ts_metadata$2("design:returntype", Object)
|
|
2032
|
+
], ArticleSignatureResolver.prototype, "signer", null);
|
|
2033
|
+
_ts_decorate$3([
|
|
2034
|
+
graphql.ResolveField(()=>ArticleSignatureStepDto),
|
|
2035
|
+
memberBaseNestjsModule.Authenticated(),
|
|
2036
|
+
_ts_param$1(0, graphql.Root()),
|
|
2037
|
+
_ts_metadata$2("design:type", Function),
|
|
2038
|
+
_ts_metadata$2("design:paramtypes", [
|
|
2039
|
+
typeof cmsBaseNestjsModule.ArticleSignatureEntity === "undefined" ? Object : cmsBaseNestjsModule.ArticleSignatureEntity
|
|
2040
|
+
]),
|
|
2041
|
+
_ts_metadata$2("design:returntype", typeof ArticleSignatureStepDto === "undefined" ? Object : ArticleSignatureStepDto)
|
|
2042
|
+
], ArticleSignatureResolver.prototype, "step", null);
|
|
2043
|
+
ArticleSignatureResolver = _ts_decorate$3([
|
|
2044
|
+
graphql.Resolver(()=>ArticleSignatureDto),
|
|
2045
|
+
_ts_metadata$2("design:type", Function),
|
|
2046
|
+
_ts_metadata$2("design:paramtypes", [
|
|
2047
|
+
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader
|
|
2048
|
+
])
|
|
2049
|
+
], ArticleSignatureResolver);
|
|
2050
|
+
|
|
2051
|
+
function _ts_decorate$2(decorators, target, key, desc) {
|
|
2052
|
+
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
2053
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2054
|
+
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;
|
|
2055
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2056
|
+
}
|
|
2057
|
+
function _ts_metadata$1(k, v) {
|
|
2058
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2059
|
+
}
|
|
2060
|
+
class CategoryMultiLanguageNameDto {
|
|
2061
|
+
language;
|
|
2062
|
+
name;
|
|
2063
|
+
}
|
|
2064
|
+
_ts_decorate$2([
|
|
2065
|
+
graphql.Field(()=>String),
|
|
2066
|
+
_ts_metadata$1("design:type", String)
|
|
2067
|
+
], CategoryMultiLanguageNameDto.prototype, "language", void 0);
|
|
2068
|
+
_ts_decorate$2([
|
|
2069
|
+
graphql.Field(()=>String),
|
|
2070
|
+
_ts_metadata$1("design:type", String)
|
|
2071
|
+
], CategoryMultiLanguageNameDto.prototype, "name", void 0);
|
|
2072
|
+
CategoryMultiLanguageNameDto = _ts_decorate$2([
|
|
2073
|
+
graphql.ObjectType('CategoryMultiLanguageName')
|
|
2074
|
+
], CategoryMultiLanguageNameDto);
|
|
2075
|
+
|
|
2076
|
+
function _ts_decorate$1(decorators, target, key, desc) {
|
|
2077
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2078
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2079
|
+
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;
|
|
2080
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2081
|
+
}
|
|
2082
|
+
function _ts_metadata(k, v) {
|
|
2083
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2084
|
+
}
|
|
2085
|
+
function _ts_param(paramIndex, decorator) {
|
|
2086
|
+
return function(target, key) {
|
|
2087
|
+
decorator(target, key, paramIndex);
|
|
2088
|
+
};
|
|
2089
|
+
}
|
|
2090
|
+
class BackstageCategoryResolver {
|
|
2091
|
+
multiLanguage;
|
|
2092
|
+
constructor(multiLanguage){
|
|
2093
|
+
this.multiLanguage = multiLanguage;
|
|
2094
|
+
}
|
|
2095
|
+
name(category) {
|
|
2096
|
+
if ('name' in category && !this.multiLanguage) {
|
|
2097
|
+
return category.name;
|
|
2098
|
+
}
|
|
2099
|
+
throw new common.BadRequestException('Name field is not available in multi-language mode.');
|
|
2100
|
+
}
|
|
2101
|
+
multiLanguageNames(category) {
|
|
2102
|
+
if ('multiLanguageNames' in category) {
|
|
2103
|
+
return category.multiLanguageNames;
|
|
2104
|
+
}
|
|
2105
|
+
return [
|
|
2106
|
+
{
|
|
2107
|
+
language: cmsBaseNestjsModule.DEFAULT_LANGUAGE,
|
|
2108
|
+
name: category.name
|
|
2109
|
+
}
|
|
2110
|
+
];
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
_ts_decorate$1([
|
|
2114
|
+
graphql.ResolveField(()=>String),
|
|
2115
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1998
2116
|
_ts_param(0, graphql.Root()),
|
|
1999
2117
|
_ts_metadata("design:type", Function),
|
|
2000
2118
|
_ts_metadata("design:paramtypes", [
|
|
2001
|
-
typeof
|
|
2119
|
+
typeof CategoryBaseDto === "undefined" ? Object : CategoryBaseDto
|
|
2002
2120
|
]),
|
|
2003
|
-
_ts_metadata("design:returntype",
|
|
2004
|
-
],
|
|
2121
|
+
_ts_metadata("design:returntype", String)
|
|
2122
|
+
], BackstageCategoryResolver.prototype, "name", null);
|
|
2005
2123
|
_ts_decorate$1([
|
|
2006
|
-
graphql.ResolveField(()=>
|
|
2124
|
+
graphql.ResolveField(()=>[
|
|
2125
|
+
CategoryMultiLanguageNameDto
|
|
2126
|
+
]),
|
|
2007
2127
|
memberBaseNestjsModule.Authenticated(),
|
|
2008
2128
|
_ts_param(0, graphql.Root()),
|
|
2009
2129
|
_ts_metadata("design:type", Function),
|
|
2010
2130
|
_ts_metadata("design:paramtypes", [
|
|
2011
|
-
typeof
|
|
2131
|
+
typeof CategoryBaseDto === "undefined" ? Object : CategoryBaseDto
|
|
2012
2132
|
]),
|
|
2013
|
-
_ts_metadata("design:returntype",
|
|
2014
|
-
],
|
|
2015
|
-
|
|
2016
|
-
graphql.Resolver(()=>
|
|
2133
|
+
_ts_metadata("design:returntype", Array)
|
|
2134
|
+
], BackstageCategoryResolver.prototype, "multiLanguageNames", null);
|
|
2135
|
+
BackstageCategoryResolver = _ts_decorate$1([
|
|
2136
|
+
graphql.Resolver(()=>BackstageCategoryDto),
|
|
2137
|
+
_ts_param(0, common.Inject(cmsBaseNestjsModule.MULTIPLE_LANGUAGE_MODE)),
|
|
2017
2138
|
_ts_metadata("design:type", Function),
|
|
2018
2139
|
_ts_metadata("design:paramtypes", [
|
|
2019
|
-
|
|
2140
|
+
Boolean
|
|
2020
2141
|
])
|
|
2021
|
-
],
|
|
2142
|
+
], BackstageCategoryResolver);
|
|
2022
2143
|
|
|
2023
2144
|
function _ts_decorate(decorators, target, key, desc) {
|
|
2024
2145
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -2046,7 +2167,8 @@ class CMSBaseGraphQLModule {
|
|
|
2046
2167
|
ArticleQueries,
|
|
2047
2168
|
ArticleMutations,
|
|
2048
2169
|
CategoryQueries,
|
|
2049
|
-
CategoryMutations
|
|
2170
|
+
CategoryMutations,
|
|
2171
|
+
BackstageCategoryResolver
|
|
2050
2172
|
]
|
|
2051
2173
|
};
|
|
2052
2174
|
}
|
|
@@ -2068,7 +2190,8 @@ class CMSBaseGraphQLModule {
|
|
|
2068
2190
|
ArticleQueries,
|
|
2069
2191
|
ArticleMutations,
|
|
2070
2192
|
CategoryQueries,
|
|
2071
|
-
CategoryMutations
|
|
2193
|
+
CategoryMutations,
|
|
2194
|
+
BackstageCategoryResolver
|
|
2072
2195
|
]
|
|
2073
2196
|
};
|
|
2074
2197
|
}
|