@rytass/cms-base-nestjs-graphql-module 0.0.23 → 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/constants/enum/base-action.enum.d.ts +14 -0
- package/constants/enum/base-action.enum.js +17 -0
- package/constants/enum/base-resource.enum.d.ts +4 -0
- package/constants/enum/base-resource.enum.js +7 -0
- 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 +772 -519
- package/mutations/article.mutations.js +63 -11
- package/mutations/category.mutations.d.ts +3 -1
- package/mutations/category.mutations.js +50 -16
- package/package.json +2 -2
- package/queries/article.queries.js +15 -3
- package/queries/category.queries.d.ts +2 -1
- package/queries/category.queries.js +29 -9
- package/resolvers/article-signature.resolver.js +3 -3
- package/resolvers/backstage-article.resolver.js +15 -15
- 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,76 +186,98 @@ 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
|
|
|
249
|
-
|
|
249
|
+
var BaseAction = /*#__PURE__*/ function(BaseAction) {
|
|
250
|
+
BaseAction["LIST"] = "LIST";
|
|
251
|
+
BaseAction["READ"] = "READ";
|
|
252
|
+
BaseAction["CREATE"] = "CREATE";
|
|
253
|
+
BaseAction["UPDATE"] = "UPDATE";
|
|
254
|
+
BaseAction["DELETE"] = "DELETE";
|
|
255
|
+
BaseAction["DELETE_VERSION"] = "DELETE_VERSION";
|
|
256
|
+
BaseAction["SUBMIT"] = "SUBMIT";
|
|
257
|
+
BaseAction["PUT_BACK"] = "PUT_BACK";
|
|
258
|
+
BaseAction["APPROVE"] = "APPROVE";
|
|
259
|
+
BaseAction["REJECT"] = "REJECT";
|
|
260
|
+
BaseAction["RELEASE"] = "RELEASE";
|
|
261
|
+
BaseAction["WITHDRAW"] = "WITHDRAW";
|
|
262
|
+
return BaseAction;
|
|
263
|
+
}({});
|
|
264
|
+
|
|
265
|
+
var BaseResource = /*#__PURE__*/ function(BaseResource) {
|
|
266
|
+
BaseResource["ARTICLE"] = "ARTICLE";
|
|
267
|
+
BaseResource["CATEGORY"] = "CATEGORY";
|
|
268
|
+
return BaseResource;
|
|
269
|
+
}({});
|
|
270
|
+
|
|
271
|
+
function _ts_decorate$t(decorators, target, key, desc) {
|
|
250
272
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
251
273
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
252
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;
|
|
253
275
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
254
276
|
}
|
|
255
|
-
function _ts_metadata$
|
|
277
|
+
function _ts_metadata$r(k, v) {
|
|
256
278
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
257
279
|
}
|
|
258
|
-
function _ts_param$
|
|
280
|
+
function _ts_param$9(paramIndex, decorator) {
|
|
259
281
|
return function(target, key) {
|
|
260
282
|
decorator(target, key, paramIndex);
|
|
261
283
|
};
|
|
@@ -350,234 +372,284 @@ class ArticleMutations {
|
|
|
350
372
|
return this.articleService.withdraw(id, version);
|
|
351
373
|
}
|
|
352
374
|
}
|
|
353
|
-
_ts_decorate$
|
|
375
|
+
_ts_decorate$t([
|
|
354
376
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
355
|
-
memberBaseNestjsModule.
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
377
|
+
memberBaseNestjsModule.AllowActions([
|
|
378
|
+
[
|
|
379
|
+
BaseResource.ARTICLE,
|
|
380
|
+
BaseAction.CREATE
|
|
381
|
+
]
|
|
382
|
+
]),
|
|
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", [
|
|
360
387
|
String,
|
|
361
388
|
typeof CreateArticleArgs === "undefined" ? Object : CreateArticleArgs
|
|
362
389
|
]),
|
|
363
|
-
_ts_metadata$
|
|
390
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
364
391
|
], ArticleMutations.prototype, "createArticle", null);
|
|
365
|
-
_ts_decorate$
|
|
392
|
+
_ts_decorate$t([
|
|
366
393
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
367
|
-
memberBaseNestjsModule.
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
394
|
+
memberBaseNestjsModule.AllowActions([
|
|
395
|
+
[
|
|
396
|
+
BaseResource.ARTICLE,
|
|
397
|
+
BaseAction.UPDATE
|
|
398
|
+
]
|
|
399
|
+
]),
|
|
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", [
|
|
372
404
|
String,
|
|
373
405
|
typeof UpdateArticleArgs === "undefined" ? Object : UpdateArticleArgs
|
|
374
406
|
]),
|
|
375
|
-
_ts_metadata$
|
|
407
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
376
408
|
], ArticleMutations.prototype, "updateArticle", null);
|
|
377
|
-
_ts_decorate$
|
|
409
|
+
_ts_decorate$t([
|
|
378
410
|
graphql.Mutation(()=>Boolean),
|
|
379
|
-
memberBaseNestjsModule.
|
|
380
|
-
|
|
411
|
+
memberBaseNestjsModule.AllowActions([
|
|
412
|
+
[
|
|
413
|
+
BaseResource.ARTICLE,
|
|
414
|
+
BaseAction.DELETE
|
|
415
|
+
]
|
|
416
|
+
]),
|
|
417
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
381
418
|
type: ()=>graphql.ID
|
|
382
419
|
})),
|
|
383
|
-
_ts_metadata$
|
|
384
|
-
_ts_metadata$
|
|
420
|
+
_ts_metadata$r("design:type", Function),
|
|
421
|
+
_ts_metadata$r("design:paramtypes", [
|
|
385
422
|
String
|
|
386
423
|
]),
|
|
387
|
-
_ts_metadata$
|
|
424
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
388
425
|
], ArticleMutations.prototype, "deleteArticle", null);
|
|
389
|
-
_ts_decorate$
|
|
426
|
+
_ts_decorate$t([
|
|
390
427
|
graphql.Mutation(()=>Boolean),
|
|
391
|
-
memberBaseNestjsModule.
|
|
392
|
-
|
|
428
|
+
memberBaseNestjsModule.AllowActions([
|
|
429
|
+
[
|
|
430
|
+
BaseResource.ARTICLE,
|
|
431
|
+
BaseAction.DELETE_VERSION
|
|
432
|
+
]
|
|
433
|
+
]),
|
|
434
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
393
435
|
type: ()=>graphql.ID
|
|
394
436
|
})),
|
|
395
|
-
_ts_param$
|
|
437
|
+
_ts_param$9(1, graphql.Args('version', {
|
|
396
438
|
type: ()=>graphql.Int
|
|
397
439
|
})),
|
|
398
|
-
_ts_metadata$
|
|
399
|
-
_ts_metadata$
|
|
440
|
+
_ts_metadata$r("design:type", Function),
|
|
441
|
+
_ts_metadata$r("design:paramtypes", [
|
|
400
442
|
String,
|
|
401
443
|
Number
|
|
402
444
|
]),
|
|
403
|
-
_ts_metadata$
|
|
445
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
404
446
|
], ArticleMutations.prototype, "deleteArticleVersion", null);
|
|
405
|
-
_ts_decorate$
|
|
447
|
+
_ts_decorate$t([
|
|
406
448
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
407
|
-
memberBaseNestjsModule.
|
|
408
|
-
|
|
409
|
-
|
|
449
|
+
memberBaseNestjsModule.AllowActions([
|
|
450
|
+
[
|
|
451
|
+
BaseResource.ARTICLE,
|
|
452
|
+
BaseAction.SUBMIT
|
|
453
|
+
]
|
|
454
|
+
]),
|
|
455
|
+
_ts_param$9(0, memberBaseNestjsModule.MemberId()),
|
|
456
|
+
_ts_param$9(1, graphql.Args('id', {
|
|
410
457
|
type: ()=>graphql.ID
|
|
411
458
|
})),
|
|
412
|
-
_ts_metadata$
|
|
413
|
-
_ts_metadata$
|
|
459
|
+
_ts_metadata$r("design:type", Function),
|
|
460
|
+
_ts_metadata$r("design:paramtypes", [
|
|
414
461
|
String,
|
|
415
462
|
String
|
|
416
463
|
]),
|
|
417
|
-
_ts_metadata$
|
|
464
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
418
465
|
], ArticleMutations.prototype, "submitArticle", null);
|
|
419
|
-
_ts_decorate$
|
|
466
|
+
_ts_decorate$t([
|
|
420
467
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
421
|
-
memberBaseNestjsModule.
|
|
422
|
-
|
|
423
|
-
|
|
468
|
+
memberBaseNestjsModule.AllowActions([
|
|
469
|
+
[
|
|
470
|
+
BaseResource.ARTICLE,
|
|
471
|
+
BaseAction.PUT_BACK
|
|
472
|
+
]
|
|
473
|
+
]),
|
|
474
|
+
_ts_param$9(0, memberBaseNestjsModule.MemberId()),
|
|
475
|
+
_ts_param$9(1, graphql.Args('id', {
|
|
424
476
|
type: ()=>graphql.ID
|
|
425
477
|
})),
|
|
426
|
-
_ts_metadata$
|
|
427
|
-
_ts_metadata$
|
|
478
|
+
_ts_metadata$r("design:type", Function),
|
|
479
|
+
_ts_metadata$r("design:paramtypes", [
|
|
428
480
|
String,
|
|
429
481
|
String
|
|
430
482
|
]),
|
|
431
|
-
_ts_metadata$
|
|
483
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
432
484
|
], ArticleMutations.prototype, "putBackArticle", null);
|
|
433
|
-
_ts_decorate$
|
|
485
|
+
_ts_decorate$t([
|
|
434
486
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
435
|
-
memberBaseNestjsModule.
|
|
436
|
-
|
|
487
|
+
memberBaseNestjsModule.AllowActions([
|
|
488
|
+
[
|
|
489
|
+
BaseResource.ARTICLE,
|
|
490
|
+
BaseAction.APPROVE
|
|
491
|
+
]
|
|
492
|
+
]),
|
|
493
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
437
494
|
type: ()=>graphql.ID
|
|
438
495
|
})),
|
|
439
|
-
_ts_param$
|
|
496
|
+
_ts_param$9(1, graphql.Args('version', {
|
|
440
497
|
type: ()=>graphql.Int,
|
|
441
498
|
nullable: true
|
|
442
499
|
})),
|
|
443
|
-
_ts_metadata$
|
|
444
|
-
_ts_metadata$
|
|
500
|
+
_ts_metadata$r("design:type", Function),
|
|
501
|
+
_ts_metadata$r("design:paramtypes", [
|
|
445
502
|
String,
|
|
446
503
|
Object
|
|
447
504
|
]),
|
|
448
|
-
_ts_metadata$
|
|
505
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
449
506
|
], ArticleMutations.prototype, "approveArticle", null);
|
|
450
|
-
_ts_decorate$
|
|
507
|
+
_ts_decorate$t([
|
|
451
508
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
452
|
-
memberBaseNestjsModule.
|
|
453
|
-
|
|
509
|
+
memberBaseNestjsModule.AllowActions([
|
|
510
|
+
[
|
|
511
|
+
BaseResource.ARTICLE,
|
|
512
|
+
BaseAction.REJECT
|
|
513
|
+
]
|
|
514
|
+
]),
|
|
515
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
454
516
|
type: ()=>graphql.ID
|
|
455
517
|
})),
|
|
456
|
-
_ts_param$
|
|
518
|
+
_ts_param$9(1, graphql.Args('reason', {
|
|
457
519
|
type: ()=>String,
|
|
458
520
|
nullable: true
|
|
459
521
|
})),
|
|
460
|
-
_ts_metadata$
|
|
461
|
-
_ts_metadata$
|
|
522
|
+
_ts_metadata$r("design:type", Function),
|
|
523
|
+
_ts_metadata$r("design:paramtypes", [
|
|
462
524
|
String,
|
|
463
525
|
Object
|
|
464
526
|
]),
|
|
465
|
-
_ts_metadata$
|
|
527
|
+
_ts_metadata$r("design:returntype", Promise)
|
|
466
528
|
], ArticleMutations.prototype, "rejectArticle", null);
|
|
467
|
-
_ts_decorate$
|
|
529
|
+
_ts_decorate$t([
|
|
468
530
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
469
|
-
memberBaseNestjsModule.
|
|
470
|
-
|
|
471
|
-
|
|
531
|
+
memberBaseNestjsModule.AllowActions([
|
|
532
|
+
[
|
|
533
|
+
BaseResource.ARTICLE,
|
|
534
|
+
BaseAction.RELEASE
|
|
535
|
+
]
|
|
536
|
+
]),
|
|
537
|
+
_ts_param$9(0, memberBaseNestjsModule.MemberId()),
|
|
538
|
+
_ts_param$9(1, graphql.Args('id', {
|
|
472
539
|
type: ()=>graphql.ID
|
|
473
540
|
})),
|
|
474
|
-
_ts_param$
|
|
541
|
+
_ts_param$9(2, graphql.Args('releasedAt', {
|
|
475
542
|
type: ()=>Date
|
|
476
543
|
})),
|
|
477
|
-
_ts_param$
|
|
544
|
+
_ts_param$9(3, graphql.Args('version', {
|
|
478
545
|
type: ()=>graphql.Int,
|
|
479
546
|
nullable: true
|
|
480
547
|
})),
|
|
481
|
-
_ts_metadata$
|
|
482
|
-
_ts_metadata$
|
|
548
|
+
_ts_metadata$r("design:type", Function),
|
|
549
|
+
_ts_metadata$r("design:paramtypes", [
|
|
483
550
|
String,
|
|
484
551
|
String,
|
|
485
552
|
typeof Date === "undefined" ? Object : Date,
|
|
486
553
|
Object
|
|
487
554
|
]),
|
|
488
|
-
_ts_metadata$
|
|
555
|
+
_ts_metadata$r("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
489
556
|
], ArticleMutations.prototype, "releaseArticle", null);
|
|
490
|
-
_ts_decorate$
|
|
557
|
+
_ts_decorate$t([
|
|
491
558
|
graphql.Mutation(()=>BackstageArticleDto),
|
|
492
|
-
memberBaseNestjsModule.
|
|
493
|
-
|
|
559
|
+
memberBaseNestjsModule.AllowActions([
|
|
560
|
+
[
|
|
561
|
+
BaseResource.ARTICLE,
|
|
562
|
+
BaseAction.WITHDRAW
|
|
563
|
+
]
|
|
564
|
+
]),
|
|
565
|
+
_ts_param$9(0, graphql.Args('id', {
|
|
494
566
|
type: ()=>graphql.ID
|
|
495
567
|
})),
|
|
496
|
-
_ts_param$
|
|
568
|
+
_ts_param$9(1, graphql.Args('version', {
|
|
497
569
|
type: ()=>graphql.Int
|
|
498
570
|
})),
|
|
499
|
-
_ts_metadata$
|
|
500
|
-
_ts_metadata$
|
|
571
|
+
_ts_metadata$r("design:type", Function),
|
|
572
|
+
_ts_metadata$r("design:paramtypes", [
|
|
501
573
|
String,
|
|
502
574
|
Number
|
|
503
575
|
]),
|
|
504
|
-
_ts_metadata$
|
|
576
|
+
_ts_metadata$r("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
505
577
|
], ArticleMutations.prototype, "withdrawArticle", null);
|
|
506
|
-
ArticleMutations = _ts_decorate$
|
|
578
|
+
ArticleMutations = _ts_decorate$t([
|
|
507
579
|
graphql.Resolver(),
|
|
508
|
-
_ts_param$
|
|
509
|
-
_ts_metadata$
|
|
510
|
-
_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", [
|
|
511
583
|
Boolean,
|
|
512
584
|
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService
|
|
513
585
|
])
|
|
514
586
|
], ArticleMutations);
|
|
515
587
|
|
|
516
|
-
function _ts_decorate$
|
|
588
|
+
function _ts_decorate$s(decorators, target, key, desc) {
|
|
517
589
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
518
590
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
519
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;
|
|
520
592
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
521
593
|
}
|
|
522
|
-
function _ts_metadata$
|
|
594
|
+
function _ts_metadata$q(k, v) {
|
|
523
595
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
524
596
|
}
|
|
525
597
|
class CategoryMultiLanguageNameInput {
|
|
526
598
|
language;
|
|
527
599
|
name;
|
|
528
600
|
}
|
|
529
|
-
_ts_decorate$
|
|
601
|
+
_ts_decorate$s([
|
|
530
602
|
graphql.Field(()=>String, {
|
|
531
603
|
nullable: true
|
|
532
604
|
}),
|
|
533
|
-
_ts_metadata$
|
|
605
|
+
_ts_metadata$q("design:type", Object)
|
|
534
606
|
], CategoryMultiLanguageNameInput.prototype, "language", void 0);
|
|
535
|
-
_ts_decorate$
|
|
607
|
+
_ts_decorate$s([
|
|
536
608
|
graphql.Field(()=>String),
|
|
537
|
-
_ts_metadata$
|
|
609
|
+
_ts_metadata$q("design:type", String)
|
|
538
610
|
], CategoryMultiLanguageNameInput.prototype, "name", void 0);
|
|
539
|
-
CategoryMultiLanguageNameInput = _ts_decorate$
|
|
611
|
+
CategoryMultiLanguageNameInput = _ts_decorate$s([
|
|
540
612
|
graphql.InputType('CategoryMultiLanguageNameInput')
|
|
541
613
|
], CategoryMultiLanguageNameInput);
|
|
542
614
|
|
|
543
|
-
function _ts_decorate$
|
|
615
|
+
function _ts_decorate$r(decorators, target, key, desc) {
|
|
544
616
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
545
617
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
546
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;
|
|
547
619
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
548
620
|
}
|
|
549
|
-
function _ts_metadata$
|
|
621
|
+
function _ts_metadata$p(k, v) {
|
|
550
622
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
551
623
|
}
|
|
552
624
|
class CreateCategoryArgs {
|
|
553
625
|
parentIds;
|
|
554
626
|
multiLanguageNames;
|
|
555
627
|
}
|
|
556
|
-
_ts_decorate$
|
|
628
|
+
_ts_decorate$r([
|
|
557
629
|
graphql.Field(()=>[
|
|
558
630
|
graphql.ID
|
|
559
631
|
], {
|
|
560
632
|
nullable: true
|
|
561
633
|
}),
|
|
562
|
-
_ts_metadata$
|
|
634
|
+
_ts_metadata$p("design:type", Object)
|
|
563
635
|
], CreateCategoryArgs.prototype, "parentIds", void 0);
|
|
564
|
-
_ts_decorate$
|
|
636
|
+
_ts_decorate$r([
|
|
565
637
|
graphql.Field(()=>[
|
|
566
638
|
CategoryMultiLanguageNameInput
|
|
567
639
|
]),
|
|
568
|
-
_ts_metadata$
|
|
640
|
+
_ts_metadata$p("design:type", Array)
|
|
569
641
|
], CreateCategoryArgs.prototype, "multiLanguageNames", void 0);
|
|
570
|
-
CreateCategoryArgs = _ts_decorate$
|
|
642
|
+
CreateCategoryArgs = _ts_decorate$r([
|
|
571
643
|
graphql.ArgsType()
|
|
572
644
|
], CreateCategoryArgs);
|
|
573
645
|
|
|
574
|
-
function _ts_decorate$
|
|
646
|
+
function _ts_decorate$q(decorators, target, key, desc) {
|
|
575
647
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
576
648
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
577
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;
|
|
578
650
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
579
651
|
}
|
|
580
|
-
function _ts_metadata$
|
|
652
|
+
function _ts_metadata$o(k, v) {
|
|
581
653
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
582
654
|
}
|
|
583
655
|
class BaseCategoryDto {
|
|
@@ -585,23 +657,23 @@ class BaseCategoryDto {
|
|
|
585
657
|
createdAt;
|
|
586
658
|
updatedAt;
|
|
587
659
|
}
|
|
588
|
-
_ts_decorate$
|
|
660
|
+
_ts_decorate$q([
|
|
589
661
|
graphql.Field(()=>graphql.ID),
|
|
590
|
-
_ts_metadata$
|
|
662
|
+
_ts_metadata$o("design:type", String)
|
|
591
663
|
], BaseCategoryDto.prototype, "id", void 0);
|
|
592
|
-
_ts_decorate$
|
|
664
|
+
_ts_decorate$q([
|
|
593
665
|
graphql.Field(()=>Date),
|
|
594
|
-
_ts_metadata$
|
|
666
|
+
_ts_metadata$o("design:type", typeof Date === "undefined" ? Object : Date)
|
|
595
667
|
], BaseCategoryDto.prototype, "createdAt", void 0);
|
|
596
|
-
_ts_decorate$
|
|
668
|
+
_ts_decorate$q([
|
|
597
669
|
graphql.Field(()=>Date),
|
|
598
|
-
_ts_metadata$
|
|
670
|
+
_ts_metadata$o("design:type", typeof Date === "undefined" ? Object : Date)
|
|
599
671
|
], BaseCategoryDto.prototype, "updatedAt", void 0);
|
|
600
|
-
BaseCategoryDto = _ts_decorate$
|
|
672
|
+
BaseCategoryDto = _ts_decorate$q([
|
|
601
673
|
graphql.ObjectType('BaseCategory')
|
|
602
674
|
], BaseCategoryDto);
|
|
603
675
|
|
|
604
|
-
function _ts_decorate$
|
|
676
|
+
function _ts_decorate$p(decorators, target, key, desc) {
|
|
605
677
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
606
678
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
607
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;
|
|
@@ -609,65 +681,79 @@ function _ts_decorate$n(decorators, target, key, desc) {
|
|
|
609
681
|
}
|
|
610
682
|
class BackstageCategoryDto extends BaseCategoryDto {
|
|
611
683
|
}
|
|
612
|
-
BackstageCategoryDto = _ts_decorate$
|
|
684
|
+
BackstageCategoryDto = _ts_decorate$p([
|
|
613
685
|
graphql.ObjectType('BackstageCategory')
|
|
614
686
|
], BackstageCategoryDto);
|
|
615
687
|
|
|
616
|
-
function _ts_decorate$
|
|
688
|
+
function _ts_decorate$o(decorators, target, key, desc) {
|
|
617
689
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
618
690
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
619
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;
|
|
620
692
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
621
693
|
}
|
|
622
|
-
function _ts_metadata$
|
|
694
|
+
function _ts_metadata$n(k, v) {
|
|
623
695
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
624
696
|
}
|
|
625
697
|
class UpdateCategoryArgs extends CreateCategoryArgs {
|
|
626
698
|
id;
|
|
627
699
|
}
|
|
628
|
-
_ts_decorate$
|
|
700
|
+
_ts_decorate$o([
|
|
629
701
|
graphql.Field(()=>graphql.ID),
|
|
630
|
-
_ts_metadata$
|
|
702
|
+
_ts_metadata$n("design:type", String)
|
|
631
703
|
], UpdateCategoryArgs.prototype, "id", void 0);
|
|
632
|
-
UpdateCategoryArgs = _ts_decorate$
|
|
704
|
+
UpdateCategoryArgs = _ts_decorate$o([
|
|
633
705
|
graphql.ArgsType()
|
|
634
706
|
], UpdateCategoryArgs);
|
|
635
707
|
|
|
636
|
-
function _ts_decorate$
|
|
708
|
+
function _ts_decorate$n(decorators, target, key, desc) {
|
|
637
709
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
638
710
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
639
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;
|
|
640
712
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
641
713
|
}
|
|
642
|
-
function _ts_metadata$
|
|
714
|
+
function _ts_metadata$m(k, v) {
|
|
643
715
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
644
716
|
}
|
|
645
|
-
function _ts_param$
|
|
717
|
+
function _ts_param$8(paramIndex, decorator) {
|
|
646
718
|
return function(target, key) {
|
|
647
719
|
decorator(target, key, paramIndex);
|
|
648
720
|
};
|
|
649
721
|
}
|
|
650
722
|
class CategoryMutations {
|
|
723
|
+
multiLanguage;
|
|
651
724
|
categoryService;
|
|
652
|
-
constructor(categoryService){
|
|
725
|
+
constructor(multiLanguage, categoryService){
|
|
726
|
+
this.multiLanguage = multiLanguage;
|
|
653
727
|
this.categoryService = categoryService;
|
|
654
728
|
}
|
|
729
|
+
resolveCreateCategoryArgs(args) {
|
|
730
|
+
const basePayload = {
|
|
731
|
+
parentIds: args.parentIds
|
|
732
|
+
};
|
|
733
|
+
if (!this.multiLanguage) {
|
|
734
|
+
const [content] = args.multiLanguageNames;
|
|
735
|
+
return {
|
|
736
|
+
...basePayload,
|
|
737
|
+
name: content.name
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
const multiLanguageNames = Object.fromEntries(args.multiLanguageNames.map((name)=>[
|
|
741
|
+
name.language,
|
|
742
|
+
name.name
|
|
743
|
+
]));
|
|
744
|
+
return {
|
|
745
|
+
...basePayload,
|
|
746
|
+
multiLanguageNames
|
|
747
|
+
};
|
|
748
|
+
}
|
|
655
749
|
createCategory(args) {
|
|
656
750
|
return this.categoryService.create({
|
|
657
|
-
...args
|
|
658
|
-
multiLanguageNames: Object.fromEntries(args.multiLanguageNames.map((name)=>[
|
|
659
|
-
name.language,
|
|
660
|
-
name.name
|
|
661
|
-
]))
|
|
751
|
+
...this.resolveCreateCategoryArgs(args)
|
|
662
752
|
});
|
|
663
753
|
}
|
|
664
754
|
updateCategory(args) {
|
|
665
755
|
return this.categoryService.update(args.id, {
|
|
666
|
-
...args
|
|
667
|
-
multiLanguageNames: Object.fromEntries(args.multiLanguageNames.map((name)=>[
|
|
668
|
-
name.language,
|
|
669
|
-
name.name
|
|
670
|
-
]))
|
|
756
|
+
...this.resolveCreateCategoryArgs(args)
|
|
671
757
|
});
|
|
672
758
|
}
|
|
673
759
|
async deleteCategory(id) {
|
|
@@ -675,53 +761,70 @@ class CategoryMutations {
|
|
|
675
761
|
return true;
|
|
676
762
|
}
|
|
677
763
|
}
|
|
678
|
-
_ts_decorate$
|
|
764
|
+
_ts_decorate$n([
|
|
679
765
|
graphql.Mutation(()=>BackstageCategoryDto),
|
|
680
|
-
memberBaseNestjsModule.
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
766
|
+
memberBaseNestjsModule.AllowActions([
|
|
767
|
+
[
|
|
768
|
+
BaseResource.CATEGORY,
|
|
769
|
+
BaseAction.CREATE
|
|
770
|
+
]
|
|
771
|
+
]),
|
|
772
|
+
_ts_param$8(0, graphql.Args()),
|
|
773
|
+
_ts_metadata$m("design:type", Function),
|
|
774
|
+
_ts_metadata$m("design:paramtypes", [
|
|
684
775
|
typeof CreateCategoryArgs === "undefined" ? Object : CreateCategoryArgs
|
|
685
776
|
]),
|
|
686
|
-
_ts_metadata$
|
|
777
|
+
_ts_metadata$m("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
687
778
|
], CategoryMutations.prototype, "createCategory", null);
|
|
688
|
-
_ts_decorate$
|
|
779
|
+
_ts_decorate$n([
|
|
689
780
|
graphql.Mutation(()=>BackstageCategoryDto),
|
|
690
|
-
memberBaseNestjsModule.
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
781
|
+
memberBaseNestjsModule.AllowActions([
|
|
782
|
+
[
|
|
783
|
+
BaseResource.CATEGORY,
|
|
784
|
+
BaseAction.UPDATE
|
|
785
|
+
]
|
|
786
|
+
]),
|
|
787
|
+
_ts_param$8(0, graphql.Args()),
|
|
788
|
+
_ts_metadata$m("design:type", Function),
|
|
789
|
+
_ts_metadata$m("design:paramtypes", [
|
|
694
790
|
typeof UpdateCategoryArgs === "undefined" ? Object : UpdateCategoryArgs
|
|
695
791
|
]),
|
|
696
|
-
_ts_metadata$
|
|
792
|
+
_ts_metadata$m("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
697
793
|
], CategoryMutations.prototype, "updateCategory", null);
|
|
698
|
-
_ts_decorate$
|
|
794
|
+
_ts_decorate$n([
|
|
699
795
|
graphql.Mutation(()=>Boolean),
|
|
700
|
-
memberBaseNestjsModule.
|
|
701
|
-
|
|
796
|
+
memberBaseNestjsModule.AllowActions([
|
|
797
|
+
[
|
|
798
|
+
BaseResource.CATEGORY,
|
|
799
|
+
BaseAction.DELETE
|
|
800
|
+
]
|
|
801
|
+
]),
|
|
802
|
+
_ts_param$8(0, graphql.Args('id', {
|
|
702
803
|
type: ()=>graphql.ID
|
|
703
804
|
})),
|
|
704
|
-
_ts_metadata$
|
|
705
|
-
_ts_metadata$
|
|
805
|
+
_ts_metadata$m("design:type", Function),
|
|
806
|
+
_ts_metadata$m("design:paramtypes", [
|
|
706
807
|
String
|
|
707
808
|
]),
|
|
708
|
-
_ts_metadata$
|
|
809
|
+
_ts_metadata$m("design:returntype", Promise)
|
|
709
810
|
], CategoryMutations.prototype, "deleteCategory", null);
|
|
710
|
-
CategoryMutations = _ts_decorate$
|
|
811
|
+
CategoryMutations = _ts_decorate$n([
|
|
711
812
|
graphql.Resolver(),
|
|
712
|
-
|
|
713
|
-
_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
|
+
Boolean,
|
|
714
817
|
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
715
818
|
])
|
|
716
819
|
], CategoryMutations);
|
|
717
820
|
|
|
718
|
-
function _ts_decorate$
|
|
821
|
+
function _ts_decorate$m(decorators, target, key, desc) {
|
|
719
822
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
720
823
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
721
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;
|
|
722
825
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
723
826
|
}
|
|
724
|
-
function _ts_metadata$
|
|
827
|
+
function _ts_metadata$l(k, v) {
|
|
725
828
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
726
829
|
}
|
|
727
830
|
class ArticlesArgs {
|
|
@@ -730,33 +833,33 @@ class ArticlesArgs {
|
|
|
730
833
|
limit;
|
|
731
834
|
searchTerm;
|
|
732
835
|
}
|
|
733
|
-
_ts_decorate$
|
|
836
|
+
_ts_decorate$m([
|
|
734
837
|
graphql.Field(()=>[
|
|
735
838
|
String
|
|
736
839
|
], {
|
|
737
840
|
nullable: true
|
|
738
841
|
}),
|
|
739
|
-
_ts_metadata$
|
|
842
|
+
_ts_metadata$l("design:type", Object)
|
|
740
843
|
], ArticlesArgs.prototype, "categoryIds", void 0);
|
|
741
|
-
_ts_decorate$
|
|
844
|
+
_ts_decorate$m([
|
|
742
845
|
graphql.Field(()=>graphql.Int, {
|
|
743
846
|
nullable: true
|
|
744
847
|
}),
|
|
745
|
-
_ts_metadata$
|
|
848
|
+
_ts_metadata$l("design:type", Object)
|
|
746
849
|
], ArticlesArgs.prototype, "offset", void 0);
|
|
747
|
-
_ts_decorate$
|
|
850
|
+
_ts_decorate$m([
|
|
748
851
|
graphql.Field(()=>graphql.Int, {
|
|
749
852
|
nullable: true
|
|
750
853
|
}),
|
|
751
|
-
_ts_metadata$
|
|
854
|
+
_ts_metadata$l("design:type", Object)
|
|
752
855
|
], ArticlesArgs.prototype, "limit", void 0);
|
|
753
|
-
_ts_decorate$
|
|
856
|
+
_ts_decorate$m([
|
|
754
857
|
graphql.Field(()=>String, {
|
|
755
858
|
nullable: true
|
|
756
859
|
}),
|
|
757
|
-
_ts_metadata$
|
|
860
|
+
_ts_metadata$l("design:type", Object)
|
|
758
861
|
], ArticlesArgs.prototype, "searchTerm", void 0);
|
|
759
|
-
ArticlesArgs = _ts_decorate$
|
|
862
|
+
ArticlesArgs = _ts_decorate$m([
|
|
760
863
|
graphql.ArgsType()
|
|
761
864
|
], ArticlesArgs);
|
|
762
865
|
|
|
@@ -788,13 +891,13 @@ const Language = common.createParamDecorator(async (data, context)=>{
|
|
|
788
891
|
}
|
|
789
892
|
});
|
|
790
893
|
|
|
791
|
-
function _ts_decorate$
|
|
894
|
+
function _ts_decorate$l(decorators, target, key, desc) {
|
|
792
895
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
793
896
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
794
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;
|
|
795
898
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
796
899
|
}
|
|
797
|
-
function _ts_metadata$
|
|
900
|
+
function _ts_metadata$k(k, v) {
|
|
798
901
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
799
902
|
}
|
|
800
903
|
class Collection {
|
|
@@ -802,29 +905,29 @@ class Collection {
|
|
|
802
905
|
offset;
|
|
803
906
|
limit;
|
|
804
907
|
}
|
|
805
|
-
_ts_decorate$
|
|
908
|
+
_ts_decorate$l([
|
|
806
909
|
graphql.Field(()=>graphql.Int),
|
|
807
|
-
_ts_metadata$
|
|
910
|
+
_ts_metadata$k("design:type", Number)
|
|
808
911
|
], Collection.prototype, "total", void 0);
|
|
809
|
-
_ts_decorate$
|
|
912
|
+
_ts_decorate$l([
|
|
810
913
|
graphql.Field(()=>graphql.Int),
|
|
811
|
-
_ts_metadata$
|
|
914
|
+
_ts_metadata$k("design:type", Number)
|
|
812
915
|
], Collection.prototype, "offset", void 0);
|
|
813
|
-
_ts_decorate$
|
|
916
|
+
_ts_decorate$l([
|
|
814
917
|
graphql.Field(()=>graphql.Int),
|
|
815
|
-
_ts_metadata$
|
|
918
|
+
_ts_metadata$k("design:type", Number)
|
|
816
919
|
], Collection.prototype, "limit", void 0);
|
|
817
|
-
Collection = _ts_decorate$
|
|
920
|
+
Collection = _ts_decorate$l([
|
|
818
921
|
graphql.ObjectType('Collection')
|
|
819
922
|
], Collection);
|
|
820
923
|
|
|
821
|
-
function _ts_decorate$
|
|
924
|
+
function _ts_decorate$k(decorators, target, key, desc) {
|
|
822
925
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
823
926
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
824
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;
|
|
825
928
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
826
929
|
}
|
|
827
|
-
function _ts_metadata$
|
|
930
|
+
function _ts_metadata$j(k, v) {
|
|
828
931
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
829
932
|
}
|
|
830
933
|
class ArticleDto extends BaseArticleDto {
|
|
@@ -832,101 +935,111 @@ class ArticleDto extends BaseArticleDto {
|
|
|
832
935
|
description;
|
|
833
936
|
content;
|
|
834
937
|
}
|
|
835
|
-
_ts_decorate$
|
|
938
|
+
_ts_decorate$k([
|
|
836
939
|
graphql.Field(()=>String),
|
|
837
|
-
_ts_metadata$
|
|
940
|
+
_ts_metadata$j("design:type", String)
|
|
838
941
|
], ArticleDto.prototype, "title", void 0);
|
|
839
|
-
_ts_decorate$
|
|
942
|
+
_ts_decorate$k([
|
|
840
943
|
graphql.Field(()=>String, {
|
|
841
944
|
nullable: true
|
|
842
945
|
}),
|
|
843
|
-
_ts_metadata$
|
|
946
|
+
_ts_metadata$j("design:type", Object)
|
|
844
947
|
], ArticleDto.prototype, "description", void 0);
|
|
845
|
-
_ts_decorate$
|
|
948
|
+
_ts_decorate$k([
|
|
846
949
|
graphql.Field(()=>QuadratsContentScalar),
|
|
847
|
-
_ts_metadata$
|
|
950
|
+
_ts_metadata$j("design:type", Array)
|
|
848
951
|
], ArticleDto.prototype, "content", void 0);
|
|
849
|
-
ArticleDto = _ts_decorate$
|
|
952
|
+
ArticleDto = _ts_decorate$k([
|
|
850
953
|
graphql.ObjectType('Article')
|
|
851
954
|
], ArticleDto);
|
|
852
955
|
|
|
853
|
-
function _ts_decorate$
|
|
956
|
+
function _ts_decorate$j(decorators, target, key, desc) {
|
|
854
957
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
855
958
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
856
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;
|
|
857
960
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
858
961
|
}
|
|
859
|
-
function _ts_metadata$
|
|
962
|
+
function _ts_metadata$i(k, v) {
|
|
860
963
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
861
964
|
}
|
|
862
965
|
class ArticleCollectionDto extends Collection {
|
|
863
966
|
articles;
|
|
864
967
|
}
|
|
865
|
-
_ts_decorate$
|
|
968
|
+
_ts_decorate$j([
|
|
866
969
|
graphql.Field(()=>[
|
|
867
970
|
ArticleDto
|
|
868
971
|
]),
|
|
869
|
-
_ts_metadata$
|
|
972
|
+
_ts_metadata$i("design:type", Array)
|
|
870
973
|
], ArticleCollectionDto.prototype, "articles", void 0);
|
|
871
|
-
ArticleCollectionDto = _ts_decorate$
|
|
974
|
+
ArticleCollectionDto = _ts_decorate$j([
|
|
872
975
|
graphql.ObjectType('ArticleCollection')
|
|
873
976
|
], ArticleCollectionDto);
|
|
874
977
|
|
|
875
|
-
function _ts_decorate$
|
|
978
|
+
function _ts_decorate$i(decorators, target, key, desc) {
|
|
876
979
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
877
980
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
878
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;
|
|
879
982
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
880
983
|
}
|
|
881
|
-
function _ts_metadata$
|
|
984
|
+
function _ts_metadata$h(k, v) {
|
|
882
985
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
883
986
|
}
|
|
884
987
|
class BackstageArticleCollectionDto extends Collection {
|
|
885
988
|
articles;
|
|
886
989
|
}
|
|
887
|
-
_ts_decorate$
|
|
990
|
+
_ts_decorate$i([
|
|
888
991
|
graphql.Field(()=>[
|
|
889
992
|
BackstageArticleDto
|
|
890
993
|
]),
|
|
891
|
-
_ts_metadata$
|
|
994
|
+
_ts_metadata$h("design:type", Array)
|
|
892
995
|
], BackstageArticleCollectionDto.prototype, "articles", void 0);
|
|
893
|
-
BackstageArticleCollectionDto = _ts_decorate$
|
|
996
|
+
BackstageArticleCollectionDto = _ts_decorate$i([
|
|
894
997
|
graphql.ObjectType('BackstageArticleCollection')
|
|
895
998
|
], BackstageArticleCollectionDto);
|
|
896
999
|
|
|
897
|
-
function _ts_decorate$
|
|
1000
|
+
function _ts_decorate$h(decorators, target, key, desc) {
|
|
898
1001
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
899
1002
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
900
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;
|
|
901
1004
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
902
1005
|
}
|
|
903
|
-
function _ts_metadata$
|
|
1006
|
+
function _ts_metadata$g(k, v) {
|
|
904
1007
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
905
1008
|
}
|
|
906
1009
|
class BackstageArticleArgs extends ArticlesArgs {
|
|
907
1010
|
stage;
|
|
1011
|
+
sorter;
|
|
908
1012
|
}
|
|
909
|
-
_ts_decorate$
|
|
1013
|
+
_ts_decorate$h([
|
|
910
1014
|
graphql.Field(()=>cmsBaseNestjsModule.ArticleStage),
|
|
911
|
-
_ts_metadata$
|
|
1015
|
+
_ts_metadata$g("design:type", typeof cmsBaseNestjsModule.ArticleStage === "undefined" ? Object : cmsBaseNestjsModule.ArticleStage)
|
|
912
1016
|
], BackstageArticleArgs.prototype, "stage", void 0);
|
|
913
|
-
|
|
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([
|
|
914
1024
|
graphql.ArgsType()
|
|
915
1025
|
], BackstageArticleArgs);
|
|
916
1026
|
graphql.registerEnumType(cmsBaseNestjsModule.ArticleStage, {
|
|
917
1027
|
name: 'ArticleStage'
|
|
918
1028
|
});
|
|
1029
|
+
graphql.registerEnumType(cmsBaseNestjsModule.ArticleSorter, {
|
|
1030
|
+
name: 'ArticleSorter'
|
|
1031
|
+
});
|
|
919
1032
|
|
|
920
|
-
function _ts_decorate$
|
|
1033
|
+
function _ts_decorate$g(decorators, target, key, desc) {
|
|
921
1034
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
922
1035
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
923
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;
|
|
924
1037
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
925
1038
|
}
|
|
926
|
-
function _ts_metadata$
|
|
1039
|
+
function _ts_metadata$f(k, v) {
|
|
927
1040
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
928
1041
|
}
|
|
929
|
-
function _ts_param$
|
|
1042
|
+
function _ts_param$7(paramIndex, decorator) {
|
|
930
1043
|
return function(target, key) {
|
|
931
1044
|
decorator(target, key, paramIndex);
|
|
932
1045
|
};
|
|
@@ -960,155 +1073,188 @@ class ArticleQueries {
|
|
|
960
1073
|
return this.articleService.findCollection(args);
|
|
961
1074
|
}
|
|
962
1075
|
}
|
|
963
|
-
_ts_decorate$
|
|
1076
|
+
_ts_decorate$g([
|
|
964
1077
|
graphql.Query(()=>ArticleDto),
|
|
965
1078
|
memberBaseNestjsModule.IsPublic(),
|
|
966
|
-
_ts_param$
|
|
1079
|
+
_ts_param$7(0, graphql.Args('id', {
|
|
967
1080
|
type: ()=>graphql.ID
|
|
968
1081
|
})),
|
|
969
|
-
_ts_param$
|
|
970
|
-
_ts_metadata$
|
|
971
|
-
_ts_metadata$
|
|
1082
|
+
_ts_param$7(1, Language()),
|
|
1083
|
+
_ts_metadata$f("design:type", Function),
|
|
1084
|
+
_ts_metadata$f("design:paramtypes", [
|
|
972
1085
|
String,
|
|
973
1086
|
String
|
|
974
1087
|
]),
|
|
975
|
-
_ts_metadata$
|
|
1088
|
+
_ts_metadata$f("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
976
1089
|
], ArticleQueries.prototype, "article", null);
|
|
977
|
-
_ts_decorate$
|
|
1090
|
+
_ts_decorate$g([
|
|
978
1091
|
graphql.Query(()=>ArticleCollectionDto),
|
|
979
1092
|
memberBaseNestjsModule.IsPublic(),
|
|
980
|
-
_ts_param$
|
|
981
|
-
_ts_param$
|
|
982
|
-
_ts_metadata$
|
|
983
|
-
_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", [
|
|
984
1097
|
typeof ArticlesArgs === "undefined" ? Object : ArticlesArgs,
|
|
985
1098
|
String
|
|
986
1099
|
]),
|
|
987
|
-
_ts_metadata$
|
|
1100
|
+
_ts_metadata$f("design:returntype", Promise)
|
|
988
1101
|
], ArticleQueries.prototype, "articles", null);
|
|
989
|
-
_ts_decorate$
|
|
1102
|
+
_ts_decorate$g([
|
|
990
1103
|
graphql.Query(()=>BackstageArticleDto),
|
|
991
|
-
memberBaseNestjsModule.
|
|
992
|
-
|
|
1104
|
+
memberBaseNestjsModule.AllowActions([
|
|
1105
|
+
[
|
|
1106
|
+
BaseResource.ARTICLE,
|
|
1107
|
+
BaseAction.READ
|
|
1108
|
+
]
|
|
1109
|
+
]),
|
|
1110
|
+
_ts_param$7(0, graphql.Args('id', {
|
|
993
1111
|
type: ()=>graphql.ID
|
|
994
1112
|
})),
|
|
995
|
-
_ts_param$
|
|
1113
|
+
_ts_param$7(1, graphql.Args('version', {
|
|
996
1114
|
type: ()=>graphql.Int,
|
|
997
1115
|
nullable: true
|
|
998
1116
|
})),
|
|
999
|
-
_ts_metadata$
|
|
1000
|
-
_ts_metadata$
|
|
1117
|
+
_ts_metadata$f("design:type", Function),
|
|
1118
|
+
_ts_metadata$f("design:paramtypes", [
|
|
1001
1119
|
String,
|
|
1002
1120
|
Object
|
|
1003
1121
|
]),
|
|
1004
|
-
_ts_metadata$
|
|
1122
|
+
_ts_metadata$f("design:returntype", Promise)
|
|
1005
1123
|
], ArticleQueries.prototype, "backstageArticle", null);
|
|
1006
|
-
_ts_decorate$
|
|
1124
|
+
_ts_decorate$g([
|
|
1007
1125
|
graphql.Query(()=>BackstageArticleCollectionDto),
|
|
1008
|
-
memberBaseNestjsModule.
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1126
|
+
memberBaseNestjsModule.AllowActions([
|
|
1127
|
+
[
|
|
1128
|
+
BaseResource.ARTICLE,
|
|
1129
|
+
BaseAction.LIST
|
|
1130
|
+
]
|
|
1131
|
+
]),
|
|
1132
|
+
_ts_param$7(0, graphql.Args()),
|
|
1133
|
+
_ts_metadata$f("design:type", Function),
|
|
1134
|
+
_ts_metadata$f("design:paramtypes", [
|
|
1012
1135
|
typeof BackstageArticleArgs === "undefined" ? Object : BackstageArticleArgs
|
|
1013
1136
|
]),
|
|
1014
|
-
_ts_metadata$
|
|
1137
|
+
_ts_metadata$f("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1015
1138
|
], ArticleQueries.prototype, "backstageArticles", null);
|
|
1016
|
-
ArticleQueries = _ts_decorate$
|
|
1139
|
+
ArticleQueries = _ts_decorate$g([
|
|
1017
1140
|
graphql.Resolver(),
|
|
1018
|
-
_ts_param$
|
|
1019
|
-
_ts_metadata$
|
|
1020
|
-
_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", [
|
|
1021
1144
|
typeof cmsBaseNestjsModule.ArticleBaseService === "undefined" ? Object : cmsBaseNestjsModule.ArticleBaseService,
|
|
1022
1145
|
Boolean
|
|
1023
1146
|
])
|
|
1024
1147
|
], ArticleQueries);
|
|
1025
1148
|
|
|
1026
|
-
function _ts_decorate$
|
|
1149
|
+
function _ts_decorate$f(decorators, target, key, desc) {
|
|
1027
1150
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1028
1151
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1029
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;
|
|
1030
1153
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1031
1154
|
}
|
|
1032
|
-
function _ts_metadata$
|
|
1155
|
+
function _ts_metadata$e(k, v) {
|
|
1033
1156
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1034
1157
|
}
|
|
1035
1158
|
class CategoriesArgs {
|
|
1036
1159
|
parentIds;
|
|
1037
1160
|
ids;
|
|
1038
1161
|
searchTerm;
|
|
1162
|
+
fromTop;
|
|
1163
|
+
sorter;
|
|
1039
1164
|
}
|
|
1040
|
-
_ts_decorate$
|
|
1165
|
+
_ts_decorate$f([
|
|
1041
1166
|
graphql.Field(()=>[
|
|
1042
1167
|
String
|
|
1043
1168
|
], {
|
|
1044
1169
|
nullable: true
|
|
1045
1170
|
}),
|
|
1046
|
-
_ts_metadata$
|
|
1171
|
+
_ts_metadata$e("design:type", Object)
|
|
1047
1172
|
], CategoriesArgs.prototype, "parentIds", void 0);
|
|
1048
|
-
_ts_decorate$
|
|
1173
|
+
_ts_decorate$f([
|
|
1049
1174
|
graphql.Field(()=>[
|
|
1050
1175
|
String
|
|
1051
1176
|
], {
|
|
1052
1177
|
nullable: true
|
|
1053
1178
|
}),
|
|
1054
|
-
_ts_metadata$
|
|
1179
|
+
_ts_metadata$e("design:type", Object)
|
|
1055
1180
|
], CategoriesArgs.prototype, "ids", void 0);
|
|
1056
|
-
_ts_decorate$
|
|
1181
|
+
_ts_decorate$f([
|
|
1057
1182
|
graphql.Field(()=>String, {
|
|
1058
1183
|
nullable: true
|
|
1059
1184
|
}),
|
|
1060
|
-
_ts_metadata$
|
|
1185
|
+
_ts_metadata$e("design:type", Object)
|
|
1061
1186
|
], CategoriesArgs.prototype, "searchTerm", void 0);
|
|
1062
|
-
|
|
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([
|
|
1063
1201
|
graphql.ArgsType()
|
|
1064
1202
|
], CategoriesArgs);
|
|
1203
|
+
graphql.registerEnumType(cmsBaseNestjsModule.CategorySorter, {
|
|
1204
|
+
name: 'CategorySorter'
|
|
1205
|
+
});
|
|
1065
1206
|
|
|
1066
|
-
function _ts_decorate$
|
|
1207
|
+
function _ts_decorate$e(decorators, target, key, desc) {
|
|
1067
1208
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1068
1209
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1069
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;
|
|
1070
1211
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1071
1212
|
}
|
|
1072
|
-
function _ts_metadata$
|
|
1213
|
+
function _ts_metadata$d(k, v) {
|
|
1073
1214
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1074
1215
|
}
|
|
1075
1216
|
class CategoryDto extends BaseCategoryDto {
|
|
1076
1217
|
name;
|
|
1077
1218
|
}
|
|
1078
|
-
_ts_decorate$
|
|
1219
|
+
_ts_decorate$e([
|
|
1079
1220
|
graphql.Field(()=>String),
|
|
1080
|
-
_ts_metadata$
|
|
1221
|
+
_ts_metadata$d("design:type", String)
|
|
1081
1222
|
], CategoryDto.prototype, "name", void 0);
|
|
1082
|
-
CategoryDto = _ts_decorate$
|
|
1223
|
+
CategoryDto = _ts_decorate$e([
|
|
1083
1224
|
graphql.ObjectType('Category')
|
|
1084
1225
|
], CategoryDto);
|
|
1085
1226
|
|
|
1086
|
-
function _ts_decorate$
|
|
1227
|
+
function _ts_decorate$d(decorators, target, key, desc) {
|
|
1087
1228
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1088
1229
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1089
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;
|
|
1090
1231
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1091
1232
|
}
|
|
1092
|
-
function _ts_metadata$
|
|
1233
|
+
function _ts_metadata$c(k, v) {
|
|
1093
1234
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1094
1235
|
}
|
|
1095
|
-
function _ts_param$
|
|
1236
|
+
function _ts_param$6(paramIndex, decorator) {
|
|
1096
1237
|
return function(target, key) {
|
|
1097
1238
|
decorator(target, key, paramIndex);
|
|
1098
1239
|
};
|
|
1099
1240
|
}
|
|
1100
1241
|
class CategoryQueries {
|
|
1242
|
+
multiLanguage;
|
|
1101
1243
|
categoryService;
|
|
1102
|
-
constructor(categoryService){
|
|
1244
|
+
constructor(multiLanguage, categoryService){
|
|
1245
|
+
this.multiLanguage = multiLanguage;
|
|
1103
1246
|
this.categoryService = categoryService;
|
|
1104
1247
|
}
|
|
1105
|
-
category(id, language = cmsBaseNestjsModule.DEFAULT_LANGUAGE) {
|
|
1106
|
-
|
|
1248
|
+
async category(id, language = cmsBaseNestjsModule.DEFAULT_LANGUAGE) {
|
|
1249
|
+
if (this.multiLanguage) {
|
|
1250
|
+
return this.categoryService.findById(id, language);
|
|
1251
|
+
}
|
|
1252
|
+
return this.categoryService.findById(id);
|
|
1107
1253
|
}
|
|
1108
1254
|
categories(args, language = cmsBaseNestjsModule.DEFAULT_LANGUAGE) {
|
|
1109
1255
|
return this.categoryService.findAll({
|
|
1110
1256
|
...args,
|
|
1111
|
-
language
|
|
1257
|
+
language: this.multiLanguage ? language : null
|
|
1112
1258
|
});
|
|
1113
1259
|
}
|
|
1114
1260
|
backstageCategory(id) {
|
|
@@ -1118,76 +1264,88 @@ class CategoryQueries {
|
|
|
1118
1264
|
return this.categoryService.findAll(args);
|
|
1119
1265
|
}
|
|
1120
1266
|
}
|
|
1121
|
-
_ts_decorate$
|
|
1267
|
+
_ts_decorate$d([
|
|
1122
1268
|
graphql.Query(()=>CategoryDto),
|
|
1123
1269
|
memberBaseNestjsModule.IsPublic(),
|
|
1124
|
-
_ts_param$
|
|
1270
|
+
_ts_param$6(0, graphql.Args('id', {
|
|
1125
1271
|
type: ()=>graphql.ID
|
|
1126
1272
|
})),
|
|
1127
|
-
_ts_param$
|
|
1128
|
-
_ts_metadata$
|
|
1129
|
-
_ts_metadata$
|
|
1273
|
+
_ts_param$6(1, Language()),
|
|
1274
|
+
_ts_metadata$c("design:type", Function),
|
|
1275
|
+
_ts_metadata$c("design:paramtypes", [
|
|
1130
1276
|
String,
|
|
1131
1277
|
String
|
|
1132
1278
|
]),
|
|
1133
|
-
_ts_metadata$
|
|
1279
|
+
_ts_metadata$c("design:returntype", Promise)
|
|
1134
1280
|
], CategoryQueries.prototype, "category", null);
|
|
1135
|
-
_ts_decorate$
|
|
1281
|
+
_ts_decorate$d([
|
|
1136
1282
|
graphql.Query(()=>[
|
|
1137
1283
|
CategoryDto
|
|
1138
1284
|
]),
|
|
1139
1285
|
memberBaseNestjsModule.IsPublic(),
|
|
1140
|
-
_ts_param$
|
|
1141
|
-
_ts_param$
|
|
1142
|
-
_ts_metadata$
|
|
1143
|
-
_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", [
|
|
1144
1290
|
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs,
|
|
1145
1291
|
String
|
|
1146
1292
|
]),
|
|
1147
|
-
_ts_metadata$
|
|
1293
|
+
_ts_metadata$c("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1148
1294
|
], CategoryQueries.prototype, "categories", null);
|
|
1149
|
-
_ts_decorate$
|
|
1295
|
+
_ts_decorate$d([
|
|
1150
1296
|
graphql.Query(()=>BackstageCategoryDto),
|
|
1151
|
-
memberBaseNestjsModule.
|
|
1152
|
-
|
|
1297
|
+
memberBaseNestjsModule.AllowActions([
|
|
1298
|
+
[
|
|
1299
|
+
BaseResource.CATEGORY,
|
|
1300
|
+
BaseAction.READ
|
|
1301
|
+
]
|
|
1302
|
+
]),
|
|
1303
|
+
_ts_param$6(0, graphql.Args('id', {
|
|
1153
1304
|
type: ()=>graphql.ID
|
|
1154
1305
|
})),
|
|
1155
|
-
_ts_metadata$
|
|
1156
|
-
_ts_metadata$
|
|
1306
|
+
_ts_metadata$c("design:type", Function),
|
|
1307
|
+
_ts_metadata$c("design:paramtypes", [
|
|
1157
1308
|
String
|
|
1158
1309
|
]),
|
|
1159
|
-
_ts_metadata$
|
|
1310
|
+
_ts_metadata$c("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1160
1311
|
], CategoryQueries.prototype, "backstageCategory", null);
|
|
1161
|
-
_ts_decorate$
|
|
1312
|
+
_ts_decorate$d([
|
|
1162
1313
|
graphql.Query(()=>[
|
|
1163
1314
|
BackstageCategoryDto
|
|
1164
1315
|
]),
|
|
1165
|
-
memberBaseNestjsModule.
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1316
|
+
memberBaseNestjsModule.AllowActions([
|
|
1317
|
+
[
|
|
1318
|
+
BaseResource.CATEGORY,
|
|
1319
|
+
BaseAction.LIST
|
|
1320
|
+
]
|
|
1321
|
+
]),
|
|
1322
|
+
_ts_param$6(0, graphql.Args()),
|
|
1323
|
+
_ts_metadata$c("design:type", Function),
|
|
1324
|
+
_ts_metadata$c("design:paramtypes", [
|
|
1169
1325
|
typeof CategoriesArgs === "undefined" ? Object : CategoriesArgs
|
|
1170
1326
|
]),
|
|
1171
|
-
_ts_metadata$
|
|
1327
|
+
_ts_metadata$c("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1172
1328
|
], CategoryQueries.prototype, "backstageCategories", null);
|
|
1173
|
-
CategoryQueries = _ts_decorate$
|
|
1329
|
+
CategoryQueries = _ts_decorate$d([
|
|
1174
1330
|
graphql.Resolver(),
|
|
1175
|
-
|
|
1176
|
-
_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", [
|
|
1334
|
+
Boolean,
|
|
1177
1335
|
typeof cmsBaseNestjsModule.CategoryBaseService === "undefined" ? Object : cmsBaseNestjsModule.CategoryBaseService
|
|
1178
1336
|
])
|
|
1179
1337
|
], CategoryQueries);
|
|
1180
1338
|
|
|
1181
|
-
function _ts_decorate$
|
|
1339
|
+
function _ts_decorate$c(decorators, target, key, desc) {
|
|
1182
1340
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1183
1341
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1184
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;
|
|
1185
1343
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1186
1344
|
}
|
|
1187
|
-
function _ts_metadata$
|
|
1345
|
+
function _ts_metadata$b(k, v) {
|
|
1188
1346
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1189
1347
|
}
|
|
1190
|
-
function _ts_param$
|
|
1348
|
+
function _ts_param$5(paramIndex, decorator) {
|
|
1191
1349
|
return function(target, key) {
|
|
1192
1350
|
decorator(target, key, paramIndex);
|
|
1193
1351
|
};
|
|
@@ -1219,25 +1377,25 @@ class MemberDataLoader {
|
|
|
1219
1377
|
}
|
|
1220
1378
|
loader;
|
|
1221
1379
|
}
|
|
1222
|
-
MemberDataLoader = _ts_decorate$
|
|
1380
|
+
MemberDataLoader = _ts_decorate$c([
|
|
1223
1381
|
common.Injectable(),
|
|
1224
|
-
_ts_param$
|
|
1225
|
-
_ts_metadata$
|
|
1226
|
-
_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", [
|
|
1227
1385
|
typeof typeorm.Repository === "undefined" ? Object : typeorm.Repository
|
|
1228
1386
|
])
|
|
1229
1387
|
], MemberDataLoader);
|
|
1230
1388
|
|
|
1231
|
-
function _ts_decorate$
|
|
1389
|
+
function _ts_decorate$b(decorators, target, key, desc) {
|
|
1232
1390
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1233
1391
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1234
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;
|
|
1235
1393
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1236
1394
|
}
|
|
1237
|
-
function _ts_metadata$
|
|
1395
|
+
function _ts_metadata$a(k, v) {
|
|
1238
1396
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1239
1397
|
}
|
|
1240
|
-
function _ts_param$
|
|
1398
|
+
function _ts_param$4(paramIndex, decorator) {
|
|
1241
1399
|
return function(target, key) {
|
|
1242
1400
|
decorator(target, key, paramIndex);
|
|
1243
1401
|
};
|
|
@@ -1277,50 +1435,50 @@ class ArticleDataLoader {
|
|
|
1277
1435
|
}
|
|
1278
1436
|
categoriesLoader;
|
|
1279
1437
|
}
|
|
1280
|
-
ArticleDataLoader = _ts_decorate$
|
|
1438
|
+
ArticleDataLoader = _ts_decorate$b([
|
|
1281
1439
|
common.Injectable(),
|
|
1282
|
-
_ts_param$
|
|
1283
|
-
_ts_metadata$
|
|
1284
|
-
_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", [
|
|
1285
1443
|
typeof typeorm.Repository === "undefined" ? Object : typeorm.Repository
|
|
1286
1444
|
])
|
|
1287
1445
|
], ArticleDataLoader);
|
|
1288
1446
|
|
|
1289
|
-
function _ts_decorate$
|
|
1447
|
+
function _ts_decorate$a(decorators, target, key, desc) {
|
|
1290
1448
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1291
1449
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1292
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;
|
|
1293
1451
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1294
1452
|
}
|
|
1295
|
-
function _ts_metadata$
|
|
1453
|
+
function _ts_metadata$9(k, v) {
|
|
1296
1454
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1297
1455
|
}
|
|
1298
1456
|
class UserDto {
|
|
1299
1457
|
id;
|
|
1300
1458
|
account;
|
|
1301
1459
|
}
|
|
1302
|
-
_ts_decorate$
|
|
1460
|
+
_ts_decorate$a([
|
|
1303
1461
|
graphql.Field(()=>graphql.ID),
|
|
1304
|
-
_ts_metadata$
|
|
1462
|
+
_ts_metadata$9("design:type", String)
|
|
1305
1463
|
], UserDto.prototype, "id", void 0);
|
|
1306
|
-
_ts_decorate$
|
|
1464
|
+
_ts_decorate$a([
|
|
1307
1465
|
graphql.Field(()=>String),
|
|
1308
|
-
_ts_metadata$
|
|
1466
|
+
_ts_metadata$9("design:type", String)
|
|
1309
1467
|
], UserDto.prototype, "account", void 0);
|
|
1310
|
-
UserDto = _ts_decorate$
|
|
1468
|
+
UserDto = _ts_decorate$a([
|
|
1311
1469
|
graphql.ObjectType('User')
|
|
1312
1470
|
], UserDto);
|
|
1313
1471
|
|
|
1314
|
-
function _ts_decorate$
|
|
1472
|
+
function _ts_decorate$9(decorators, target, key, desc) {
|
|
1315
1473
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1316
1474
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1317
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;
|
|
1318
1476
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1319
1477
|
}
|
|
1320
|
-
function _ts_metadata$
|
|
1478
|
+
function _ts_metadata$8(k, v) {
|
|
1321
1479
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1322
1480
|
}
|
|
1323
|
-
function _ts_param$
|
|
1481
|
+
function _ts_param$3(paramIndex, decorator) {
|
|
1324
1482
|
return function(target, key) {
|
|
1325
1483
|
decorator(target, key, paramIndex);
|
|
1326
1484
|
};
|
|
@@ -1347,60 +1505,60 @@ class ArticleResolver {
|
|
|
1347
1505
|
});
|
|
1348
1506
|
}
|
|
1349
1507
|
}
|
|
1350
|
-
_ts_decorate$
|
|
1508
|
+
_ts_decorate$9([
|
|
1351
1509
|
graphql.ResolveField(()=>String),
|
|
1352
1510
|
memberBaseNestjsModule.IsPublic(),
|
|
1353
|
-
_ts_param$
|
|
1354
|
-
_ts_metadata$
|
|
1355
|
-
_ts_metadata$
|
|
1511
|
+
_ts_param$3(0, graphql.Root()),
|
|
1512
|
+
_ts_metadata$8("design:type", Function),
|
|
1513
|
+
_ts_metadata$8("design:paramtypes", [
|
|
1356
1514
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1357
1515
|
]),
|
|
1358
|
-
_ts_metadata$
|
|
1516
|
+
_ts_metadata$8("design:returntype", String)
|
|
1359
1517
|
], ArticleResolver.prototype, "articleId", null);
|
|
1360
|
-
_ts_decorate$
|
|
1518
|
+
_ts_decorate$9([
|
|
1361
1519
|
graphql.ResolveField(()=>UserDto, {
|
|
1362
1520
|
nullable: true
|
|
1363
1521
|
}),
|
|
1364
1522
|
memberBaseNestjsModule.IsPublic(),
|
|
1365
|
-
_ts_param$
|
|
1366
|
-
_ts_metadata$
|
|
1367
|
-
_ts_metadata$
|
|
1523
|
+
_ts_param$3(0, graphql.Root()),
|
|
1524
|
+
_ts_metadata$8("design:type", Function),
|
|
1525
|
+
_ts_metadata$8("design:paramtypes", [
|
|
1368
1526
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1369
1527
|
]),
|
|
1370
|
-
_ts_metadata$
|
|
1528
|
+
_ts_metadata$8("design:returntype", Object)
|
|
1371
1529
|
], ArticleResolver.prototype, "releasedBy", null);
|
|
1372
|
-
_ts_decorate$
|
|
1530
|
+
_ts_decorate$9([
|
|
1373
1531
|
graphql.ResolveField(()=>[
|
|
1374
1532
|
CategoryDto
|
|
1375
1533
|
]),
|
|
1376
1534
|
memberBaseNestjsModule.IsPublic(),
|
|
1377
|
-
_ts_param$
|
|
1378
|
-
_ts_param$
|
|
1379
|
-
_ts_metadata$
|
|
1380
|
-
_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", [
|
|
1381
1539
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto,
|
|
1382
1540
|
String
|
|
1383
1541
|
]),
|
|
1384
|
-
_ts_metadata$
|
|
1542
|
+
_ts_metadata$8("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1385
1543
|
], ArticleResolver.prototype, "categories", null);
|
|
1386
|
-
ArticleResolver = _ts_decorate$
|
|
1544
|
+
ArticleResolver = _ts_decorate$9([
|
|
1387
1545
|
graphql.Resolver(()=>ArticleDto),
|
|
1388
|
-
_ts_param$
|
|
1389
|
-
_ts_metadata$
|
|
1390
|
-
_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", [
|
|
1391
1549
|
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader,
|
|
1392
1550
|
typeof ArticleDataLoader === "undefined" ? Object : ArticleDataLoader,
|
|
1393
1551
|
Boolean
|
|
1394
1552
|
])
|
|
1395
1553
|
], ArticleResolver);
|
|
1396
1554
|
|
|
1397
|
-
function _ts_decorate$
|
|
1555
|
+
function _ts_decorate$8(decorators, target, key, desc) {
|
|
1398
1556
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1399
1557
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1400
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;
|
|
1401
1559
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1402
1560
|
}
|
|
1403
|
-
function _ts_metadata$
|
|
1561
|
+
function _ts_metadata$7(k, v) {
|
|
1404
1562
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1405
1563
|
}
|
|
1406
1564
|
class ArticleMultiLanguageContentDto {
|
|
@@ -1409,35 +1567,35 @@ class ArticleMultiLanguageContentDto {
|
|
|
1409
1567
|
description;
|
|
1410
1568
|
content;
|
|
1411
1569
|
}
|
|
1412
|
-
_ts_decorate$
|
|
1570
|
+
_ts_decorate$8([
|
|
1413
1571
|
graphql.Field(()=>String),
|
|
1414
|
-
_ts_metadata$
|
|
1572
|
+
_ts_metadata$7("design:type", String)
|
|
1415
1573
|
], ArticleMultiLanguageContentDto.prototype, "language", void 0);
|
|
1416
|
-
_ts_decorate$
|
|
1574
|
+
_ts_decorate$8([
|
|
1417
1575
|
graphql.Field(()=>String),
|
|
1418
|
-
_ts_metadata$
|
|
1576
|
+
_ts_metadata$7("design:type", String)
|
|
1419
1577
|
], ArticleMultiLanguageContentDto.prototype, "title", void 0);
|
|
1420
|
-
_ts_decorate$
|
|
1578
|
+
_ts_decorate$8([
|
|
1421
1579
|
graphql.Field(()=>String, {
|
|
1422
1580
|
nullable: true
|
|
1423
1581
|
}),
|
|
1424
|
-
_ts_metadata$
|
|
1582
|
+
_ts_metadata$7("design:type", Object)
|
|
1425
1583
|
], ArticleMultiLanguageContentDto.prototype, "description", void 0);
|
|
1426
|
-
_ts_decorate$
|
|
1584
|
+
_ts_decorate$8([
|
|
1427
1585
|
graphql.Field(()=>QuadratsContentScalar),
|
|
1428
|
-
_ts_metadata$
|
|
1586
|
+
_ts_metadata$7("design:type", Array)
|
|
1429
1587
|
], ArticleMultiLanguageContentDto.prototype, "content", void 0);
|
|
1430
|
-
ArticleMultiLanguageContentDto = _ts_decorate$
|
|
1588
|
+
ArticleMultiLanguageContentDto = _ts_decorate$8([
|
|
1431
1589
|
graphql.ObjectType('ArticleMultiLanguageContent')
|
|
1432
1590
|
], ArticleMultiLanguageContentDto);
|
|
1433
1591
|
|
|
1434
|
-
function _ts_decorate$
|
|
1592
|
+
function _ts_decorate$7(decorators, target, key, desc) {
|
|
1435
1593
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1436
1594
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1437
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;
|
|
1438
1596
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1439
1597
|
}
|
|
1440
|
-
function _ts_metadata$
|
|
1598
|
+
function _ts_metadata$6(k, v) {
|
|
1441
1599
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1442
1600
|
}
|
|
1443
1601
|
class ArticleStageVersionDto {
|
|
@@ -1448,51 +1606,51 @@ class ArticleStageVersionDto {
|
|
|
1448
1606
|
scheduled;
|
|
1449
1607
|
released;
|
|
1450
1608
|
}
|
|
1451
|
-
_ts_decorate$
|
|
1609
|
+
_ts_decorate$7([
|
|
1452
1610
|
graphql.Field(()=>graphql.ID),
|
|
1453
|
-
_ts_metadata$
|
|
1611
|
+
_ts_metadata$6("design:type", String)
|
|
1454
1612
|
], ArticleStageVersionDto.prototype, "id", void 0);
|
|
1455
|
-
_ts_decorate$
|
|
1613
|
+
_ts_decorate$7([
|
|
1456
1614
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1457
1615
|
nullable: true
|
|
1458
1616
|
}),
|
|
1459
|
-
_ts_metadata$
|
|
1617
|
+
_ts_metadata$6("design:type", Object)
|
|
1460
1618
|
], ArticleStageVersionDto.prototype, "draft", void 0);
|
|
1461
|
-
_ts_decorate$
|
|
1619
|
+
_ts_decorate$7([
|
|
1462
1620
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1463
1621
|
nullable: true
|
|
1464
1622
|
}),
|
|
1465
|
-
_ts_metadata$
|
|
1623
|
+
_ts_metadata$6("design:type", Object)
|
|
1466
1624
|
], ArticleStageVersionDto.prototype, "reviewing", void 0);
|
|
1467
|
-
_ts_decorate$
|
|
1625
|
+
_ts_decorate$7([
|
|
1468
1626
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1469
1627
|
nullable: true
|
|
1470
1628
|
}),
|
|
1471
|
-
_ts_metadata$
|
|
1629
|
+
_ts_metadata$6("design:type", Object)
|
|
1472
1630
|
], ArticleStageVersionDto.prototype, "verified", void 0);
|
|
1473
|
-
_ts_decorate$
|
|
1631
|
+
_ts_decorate$7([
|
|
1474
1632
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1475
1633
|
nullable: true
|
|
1476
1634
|
}),
|
|
1477
|
-
_ts_metadata$
|
|
1635
|
+
_ts_metadata$6("design:type", Object)
|
|
1478
1636
|
], ArticleStageVersionDto.prototype, "scheduled", void 0);
|
|
1479
|
-
_ts_decorate$
|
|
1637
|
+
_ts_decorate$7([
|
|
1480
1638
|
graphql.Field(()=>BackstageArticleDto, {
|
|
1481
1639
|
nullable: true
|
|
1482
1640
|
}),
|
|
1483
|
-
_ts_metadata$
|
|
1641
|
+
_ts_metadata$6("design:type", Object)
|
|
1484
1642
|
], ArticleStageVersionDto.prototype, "released", void 0);
|
|
1485
|
-
ArticleStageVersionDto = _ts_decorate$
|
|
1643
|
+
ArticleStageVersionDto = _ts_decorate$7([
|
|
1486
1644
|
graphql.ObjectType('ArticleStageVersion')
|
|
1487
1645
|
], ArticleStageVersionDto);
|
|
1488
1646
|
|
|
1489
|
-
function _ts_decorate$
|
|
1647
|
+
function _ts_decorate$6(decorators, target, key, desc) {
|
|
1490
1648
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1491
1649
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1492
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;
|
|
1493
1651
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1494
1652
|
}
|
|
1495
|
-
function _ts_metadata$
|
|
1653
|
+
function _ts_metadata$5(k, v) {
|
|
1496
1654
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1497
1655
|
}
|
|
1498
1656
|
class ArticleSignatureDto {
|
|
@@ -1501,41 +1659,41 @@ class ArticleSignatureDto {
|
|
|
1501
1659
|
result;
|
|
1502
1660
|
rejectReason;
|
|
1503
1661
|
}
|
|
1504
|
-
_ts_decorate$
|
|
1662
|
+
_ts_decorate$6([
|
|
1505
1663
|
graphql.Field(()=>graphql.ID),
|
|
1506
|
-
_ts_metadata$
|
|
1664
|
+
_ts_metadata$5("design:type", String)
|
|
1507
1665
|
], ArticleSignatureDto.prototype, "id", void 0);
|
|
1508
|
-
_ts_decorate$
|
|
1666
|
+
_ts_decorate$6([
|
|
1509
1667
|
graphql.Field(()=>Date),
|
|
1510
|
-
_ts_metadata$
|
|
1668
|
+
_ts_metadata$5("design:type", typeof Date === "undefined" ? Object : Date)
|
|
1511
1669
|
], ArticleSignatureDto.prototype, "signedAt", void 0);
|
|
1512
|
-
_ts_decorate$
|
|
1670
|
+
_ts_decorate$6([
|
|
1513
1671
|
graphql.Field(()=>cmsBaseNestjsModule.ArticleSignatureResult),
|
|
1514
|
-
_ts_metadata$
|
|
1672
|
+
_ts_metadata$5("design:type", typeof cmsBaseNestjsModule.ArticleSignatureResult === "undefined" ? Object : cmsBaseNestjsModule.ArticleSignatureResult)
|
|
1515
1673
|
], ArticleSignatureDto.prototype, "result", void 0);
|
|
1516
|
-
_ts_decorate$
|
|
1674
|
+
_ts_decorate$6([
|
|
1517
1675
|
graphql.Field(()=>String, {
|
|
1518
1676
|
nullable: true
|
|
1519
1677
|
}),
|
|
1520
|
-
_ts_metadata$
|
|
1678
|
+
_ts_metadata$5("design:type", Object)
|
|
1521
1679
|
], ArticleSignatureDto.prototype, "rejectReason", void 0);
|
|
1522
|
-
ArticleSignatureDto = _ts_decorate$
|
|
1680
|
+
ArticleSignatureDto = _ts_decorate$6([
|
|
1523
1681
|
graphql.ObjectType('ArticleSignature')
|
|
1524
1682
|
], ArticleSignatureDto);
|
|
1525
1683
|
graphql.registerEnumType(cmsBaseNestjsModule.ArticleSignatureResult, {
|
|
1526
1684
|
name: 'ArticleSignatureResult'
|
|
1527
1685
|
});
|
|
1528
1686
|
|
|
1529
|
-
function _ts_decorate$
|
|
1687
|
+
function _ts_decorate$5(decorators, target, key, desc) {
|
|
1530
1688
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1531
1689
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1532
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;
|
|
1533
1691
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1534
1692
|
}
|
|
1535
|
-
function _ts_metadata$
|
|
1693
|
+
function _ts_metadata$4(k, v) {
|
|
1536
1694
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1537
1695
|
}
|
|
1538
|
-
function _ts_param$
|
|
1696
|
+
function _ts_param$2(paramIndex, decorator) {
|
|
1539
1697
|
return function(target, key) {
|
|
1540
1698
|
decorator(target, key, paramIndex);
|
|
1541
1699
|
};
|
|
@@ -1634,169 +1792,169 @@ class BackstageArticleResolver {
|
|
|
1634
1792
|
};
|
|
1635
1793
|
}
|
|
1636
1794
|
}
|
|
1637
|
-
_ts_decorate$
|
|
1795
|
+
_ts_decorate$5([
|
|
1638
1796
|
graphql.ResolveField(()=>graphql.ID),
|
|
1639
|
-
memberBaseNestjsModule.
|
|
1640
|
-
_ts_param$
|
|
1641
|
-
_ts_metadata$
|
|
1642
|
-
_ts_metadata$
|
|
1797
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1798
|
+
_ts_param$2(0, graphql.Root()),
|
|
1799
|
+
_ts_metadata$4("design:type", Function),
|
|
1800
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1643
1801
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1644
1802
|
]),
|
|
1645
|
-
_ts_metadata$
|
|
1803
|
+
_ts_metadata$4("design:returntype", String)
|
|
1646
1804
|
], BackstageArticleResolver.prototype, "id", null);
|
|
1647
|
-
_ts_decorate$
|
|
1805
|
+
_ts_decorate$5([
|
|
1648
1806
|
graphql.ResolveField(()=>String),
|
|
1649
|
-
memberBaseNestjsModule.
|
|
1650
|
-
_ts_param$
|
|
1651
|
-
_ts_metadata$
|
|
1652
|
-
_ts_metadata$
|
|
1807
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1808
|
+
_ts_param$2(0, graphql.Root()),
|
|
1809
|
+
_ts_metadata$4("design:type", Function),
|
|
1810
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1653
1811
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1654
1812
|
]),
|
|
1655
|
-
_ts_metadata$
|
|
1813
|
+
_ts_metadata$4("design:returntype", String)
|
|
1656
1814
|
], BackstageArticleResolver.prototype, "articleId", null);
|
|
1657
|
-
_ts_decorate$
|
|
1815
|
+
_ts_decorate$5([
|
|
1658
1816
|
graphql.ResolveField(()=>UserDto, {
|
|
1659
1817
|
nullable: true
|
|
1660
1818
|
}),
|
|
1661
|
-
memberBaseNestjsModule.
|
|
1662
|
-
_ts_param$
|
|
1663
|
-
_ts_metadata$
|
|
1664
|
-
_ts_metadata$
|
|
1819
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1820
|
+
_ts_param$2(0, graphql.Root()),
|
|
1821
|
+
_ts_metadata$4("design:type", Function),
|
|
1822
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1665
1823
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1666
1824
|
]),
|
|
1667
|
-
_ts_metadata$
|
|
1825
|
+
_ts_metadata$4("design:returntype", Object)
|
|
1668
1826
|
], BackstageArticleResolver.prototype, "submittedBy", null);
|
|
1669
|
-
_ts_decorate$
|
|
1827
|
+
_ts_decorate$5([
|
|
1670
1828
|
graphql.ResolveField(()=>UserDto, {
|
|
1671
1829
|
nullable: true
|
|
1672
1830
|
}),
|
|
1673
|
-
memberBaseNestjsModule.
|
|
1674
|
-
_ts_param$
|
|
1675
|
-
_ts_metadata$
|
|
1676
|
-
_ts_metadata$
|
|
1831
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1832
|
+
_ts_param$2(0, graphql.Root()),
|
|
1833
|
+
_ts_metadata$4("design:type", Function),
|
|
1834
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1677
1835
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1678
1836
|
]),
|
|
1679
|
-
_ts_metadata$
|
|
1837
|
+
_ts_metadata$4("design:returntype", Object)
|
|
1680
1838
|
], BackstageArticleResolver.prototype, "lastEditor", null);
|
|
1681
|
-
_ts_decorate$
|
|
1839
|
+
_ts_decorate$5([
|
|
1682
1840
|
graphql.ResolveField(()=>UserDto, {
|
|
1683
1841
|
nullable: true
|
|
1684
1842
|
}),
|
|
1685
|
-
memberBaseNestjsModule.
|
|
1686
|
-
_ts_param$
|
|
1687
|
-
_ts_metadata$
|
|
1688
|
-
_ts_metadata$
|
|
1843
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1844
|
+
_ts_param$2(0, graphql.Root()),
|
|
1845
|
+
_ts_metadata$4("design:type", Function),
|
|
1846
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1689
1847
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1690
1848
|
]),
|
|
1691
|
-
_ts_metadata$
|
|
1849
|
+
_ts_metadata$4("design:returntype", Object)
|
|
1692
1850
|
], BackstageArticleResolver.prototype, "releasedBy", null);
|
|
1693
|
-
_ts_decorate$
|
|
1851
|
+
_ts_decorate$5([
|
|
1694
1852
|
graphql.ResolveField(()=>[
|
|
1695
1853
|
CategoryDto
|
|
1696
1854
|
]),
|
|
1697
|
-
memberBaseNestjsModule.
|
|
1698
|
-
_ts_param$
|
|
1699
|
-
_ts_param$
|
|
1700
|
-
_ts_metadata$
|
|
1701
|
-
_ts_metadata$
|
|
1855
|
+
memberBaseNestjsModule.Authenticated(),
|
|
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", [
|
|
1702
1860
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto,
|
|
1703
1861
|
String
|
|
1704
1862
|
]),
|
|
1705
|
-
_ts_metadata$
|
|
1863
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1706
1864
|
], BackstageArticleResolver.prototype, "categories", null);
|
|
1707
|
-
_ts_decorate$
|
|
1865
|
+
_ts_decorate$5([
|
|
1708
1866
|
graphql.ResolveField(()=>String),
|
|
1709
|
-
memberBaseNestjsModule.
|
|
1710
|
-
_ts_param$
|
|
1711
|
-
_ts_metadata$
|
|
1712
|
-
_ts_metadata$
|
|
1867
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1868
|
+
_ts_param$2(0, graphql.Root()),
|
|
1869
|
+
_ts_metadata$4("design:type", Function),
|
|
1870
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1713
1871
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1714
1872
|
]),
|
|
1715
|
-
_ts_metadata$
|
|
1873
|
+
_ts_metadata$4("design:returntype", String)
|
|
1716
1874
|
], BackstageArticleResolver.prototype, "title", null);
|
|
1717
|
-
_ts_decorate$
|
|
1875
|
+
_ts_decorate$5([
|
|
1718
1876
|
graphql.ResolveField(()=>String, {
|
|
1719
1877
|
nullable: true
|
|
1720
1878
|
}),
|
|
1721
|
-
memberBaseNestjsModule.
|
|
1722
|
-
_ts_param$
|
|
1723
|
-
_ts_metadata$
|
|
1724
|
-
_ts_metadata$
|
|
1879
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1880
|
+
_ts_param$2(0, graphql.Root()),
|
|
1881
|
+
_ts_metadata$4("design:type", Function),
|
|
1882
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1725
1883
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1726
1884
|
]),
|
|
1727
|
-
_ts_metadata$
|
|
1885
|
+
_ts_metadata$4("design:returntype", Object)
|
|
1728
1886
|
], BackstageArticleResolver.prototype, "description", null);
|
|
1729
|
-
_ts_decorate$
|
|
1887
|
+
_ts_decorate$5([
|
|
1730
1888
|
graphql.ResolveField(()=>QuadratsContentScalar),
|
|
1731
|
-
memberBaseNestjsModule.
|
|
1732
|
-
_ts_param$
|
|
1733
|
-
_ts_metadata$
|
|
1734
|
-
_ts_metadata$
|
|
1889
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1890
|
+
_ts_param$2(0, graphql.Root()),
|
|
1891
|
+
_ts_metadata$4("design:type", Function),
|
|
1892
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1735
1893
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1736
1894
|
]),
|
|
1737
|
-
_ts_metadata$
|
|
1895
|
+
_ts_metadata$4("design:returntype", Array)
|
|
1738
1896
|
], BackstageArticleResolver.prototype, "content", null);
|
|
1739
|
-
_ts_decorate$
|
|
1897
|
+
_ts_decorate$5([
|
|
1740
1898
|
graphql.ResolveField(()=>[
|
|
1741
1899
|
ArticleMultiLanguageContentDto
|
|
1742
1900
|
]),
|
|
1743
|
-
memberBaseNestjsModule.
|
|
1744
|
-
_ts_param$
|
|
1745
|
-
_ts_metadata$
|
|
1746
|
-
_ts_metadata$
|
|
1901
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1902
|
+
_ts_param$2(0, graphql.Root()),
|
|
1903
|
+
_ts_metadata$4("design:type", Function),
|
|
1904
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1747
1905
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1748
1906
|
]),
|
|
1749
|
-
_ts_metadata$
|
|
1907
|
+
_ts_metadata$4("design:returntype", Array)
|
|
1750
1908
|
], BackstageArticleResolver.prototype, "multiLanguageContents", null);
|
|
1751
|
-
_ts_decorate$
|
|
1909
|
+
_ts_decorate$5([
|
|
1752
1910
|
graphql.ResolveField(()=>[
|
|
1753
1911
|
BackstageArticleDto
|
|
1754
1912
|
]),
|
|
1755
|
-
memberBaseNestjsModule.
|
|
1756
|
-
_ts_param$
|
|
1757
|
-
_ts_metadata$
|
|
1758
|
-
_ts_metadata$
|
|
1913
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1914
|
+
_ts_param$2(0, graphql.Root()),
|
|
1915
|
+
_ts_metadata$4("design:type", Function),
|
|
1916
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1759
1917
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1760
1918
|
]),
|
|
1761
|
-
_ts_metadata$
|
|
1919
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1762
1920
|
], BackstageArticleResolver.prototype, "versions", null);
|
|
1763
|
-
_ts_decorate$
|
|
1921
|
+
_ts_decorate$5([
|
|
1764
1922
|
graphql.ResolveField(()=>cmsBaseNestjsModule.ArticleStage),
|
|
1765
|
-
memberBaseNestjsModule.
|
|
1766
|
-
_ts_param$
|
|
1767
|
-
_ts_metadata$
|
|
1768
|
-
_ts_metadata$
|
|
1923
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1924
|
+
_ts_param$2(0, graphql.Root()),
|
|
1925
|
+
_ts_metadata$4("design:type", Function),
|
|
1926
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1769
1927
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1770
1928
|
]),
|
|
1771
|
-
_ts_metadata$
|
|
1929
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1772
1930
|
], BackstageArticleResolver.prototype, "stage", null);
|
|
1773
|
-
_ts_decorate$
|
|
1931
|
+
_ts_decorate$5([
|
|
1774
1932
|
graphql.ResolveField(()=>[
|
|
1775
1933
|
ArticleSignatureDto
|
|
1776
1934
|
]),
|
|
1777
|
-
memberBaseNestjsModule.
|
|
1778
|
-
_ts_param$
|
|
1779
|
-
_ts_metadata$
|
|
1780
|
-
_ts_metadata$
|
|
1935
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1936
|
+
_ts_param$2(0, graphql.Root()),
|
|
1937
|
+
_ts_metadata$4("design:type", Function),
|
|
1938
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1781
1939
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1782
1940
|
]),
|
|
1783
|
-
_ts_metadata$
|
|
1941
|
+
_ts_metadata$4("design:returntype", typeof Promise === "undefined" ? Object : Promise)
|
|
1784
1942
|
], BackstageArticleResolver.prototype, "signatures", null);
|
|
1785
|
-
_ts_decorate$
|
|
1943
|
+
_ts_decorate$5([
|
|
1786
1944
|
graphql.ResolveField(()=>ArticleStageVersionDto),
|
|
1787
|
-
memberBaseNestjsModule.
|
|
1788
|
-
_ts_param$
|
|
1789
|
-
_ts_metadata$
|
|
1790
|
-
_ts_metadata$
|
|
1945
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1946
|
+
_ts_param$2(0, graphql.Root()),
|
|
1947
|
+
_ts_metadata$4("design:type", Function),
|
|
1948
|
+
_ts_metadata$4("design:paramtypes", [
|
|
1791
1949
|
typeof ArticleBaseDto === "undefined" ? Object : ArticleBaseDto
|
|
1792
1950
|
]),
|
|
1793
|
-
_ts_metadata$
|
|
1951
|
+
_ts_metadata$4("design:returntype", Promise)
|
|
1794
1952
|
], BackstageArticleResolver.prototype, "stageVersions", null);
|
|
1795
|
-
BackstageArticleResolver = _ts_decorate$
|
|
1953
|
+
BackstageArticleResolver = _ts_decorate$5([
|
|
1796
1954
|
graphql.Resolver(()=>BackstageArticleDto),
|
|
1797
|
-
_ts_param$
|
|
1798
|
-
_ts_metadata$
|
|
1799
|
-
_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", [
|
|
1800
1958
|
typeof MemberDataLoader === "undefined" ? Object : MemberDataLoader,
|
|
1801
1959
|
typeof ArticleDataLoader === "undefined" ? Object : ArticleDataLoader,
|
|
1802
1960
|
Boolean,
|
|
@@ -1806,41 +1964,41 @@ BackstageArticleResolver = _ts_decorate$3([
|
|
|
1806
1964
|
])
|
|
1807
1965
|
], BackstageArticleResolver);
|
|
1808
1966
|
|
|
1809
|
-
function _ts_decorate$
|
|
1967
|
+
function _ts_decorate$4(decorators, target, key, desc) {
|
|
1810
1968
|
var c = arguments.length, r = c < 3 ? target : desc, d;
|
|
1811
1969
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1812
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;
|
|
1813
1971
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1814
1972
|
}
|
|
1815
|
-
function _ts_metadata$
|
|
1973
|
+
function _ts_metadata$3(k, v) {
|
|
1816
1974
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1817
1975
|
}
|
|
1818
1976
|
class ArticleSignatureStepDto {
|
|
1819
1977
|
id;
|
|
1820
1978
|
name;
|
|
1821
1979
|
}
|
|
1822
|
-
_ts_decorate$
|
|
1980
|
+
_ts_decorate$4([
|
|
1823
1981
|
graphql.Field(()=>graphql.ID),
|
|
1824
|
-
_ts_metadata$
|
|
1982
|
+
_ts_metadata$3("design:type", String)
|
|
1825
1983
|
], ArticleSignatureStepDto.prototype, "id", void 0);
|
|
1826
|
-
_ts_decorate$
|
|
1984
|
+
_ts_decorate$4([
|
|
1827
1985
|
graphql.Field(()=>String),
|
|
1828
|
-
_ts_metadata$
|
|
1986
|
+
_ts_metadata$3("design:type", String)
|
|
1829
1987
|
], ArticleSignatureStepDto.prototype, "name", void 0);
|
|
1830
|
-
ArticleSignatureStepDto = _ts_decorate$
|
|
1988
|
+
ArticleSignatureStepDto = _ts_decorate$4([
|
|
1831
1989
|
graphql.ObjectType('ArticleSignatureStep')
|
|
1832
1990
|
], ArticleSignatureStepDto);
|
|
1833
1991
|
|
|
1834
|
-
function _ts_decorate$
|
|
1992
|
+
function _ts_decorate$3(decorators, target, key, desc) {
|
|
1835
1993
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1836
1994
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1837
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;
|
|
1838
1996
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1839
1997
|
}
|
|
1840
|
-
function _ts_metadata(k, v) {
|
|
1998
|
+
function _ts_metadata$2(k, v) {
|
|
1841
1999
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
1842
2000
|
}
|
|
1843
|
-
function _ts_param(paramIndex, decorator) {
|
|
2001
|
+
function _ts_param$1(paramIndex, decorator) {
|
|
1844
2002
|
return function(target, key) {
|
|
1845
2003
|
decorator(target, key, paramIndex);
|
|
1846
2004
|
};
|
|
@@ -1860,35 +2018,128 @@ class ArticleSignatureResolver {
|
|
|
1860
2018
|
};
|
|
1861
2019
|
}
|
|
1862
2020
|
}
|
|
1863
|
-
_ts_decorate$
|
|
2021
|
+
_ts_decorate$3([
|
|
1864
2022
|
graphql.ResolveField(()=>UserDto, {
|
|
1865
2023
|
nullable: true
|
|
1866
2024
|
}),
|
|
1867
|
-
memberBaseNestjsModule.
|
|
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(),
|
|
1868
2116
|
_ts_param(0, graphql.Root()),
|
|
1869
2117
|
_ts_metadata("design:type", Function),
|
|
1870
2118
|
_ts_metadata("design:paramtypes", [
|
|
1871
|
-
typeof
|
|
2119
|
+
typeof CategoryBaseDto === "undefined" ? Object : CategoryBaseDto
|
|
1872
2120
|
]),
|
|
1873
|
-
_ts_metadata("design:returntype",
|
|
1874
|
-
],
|
|
2121
|
+
_ts_metadata("design:returntype", String)
|
|
2122
|
+
], BackstageCategoryResolver.prototype, "name", null);
|
|
1875
2123
|
_ts_decorate$1([
|
|
1876
|
-
graphql.ResolveField(()=>
|
|
1877
|
-
|
|
2124
|
+
graphql.ResolveField(()=>[
|
|
2125
|
+
CategoryMultiLanguageNameDto
|
|
2126
|
+
]),
|
|
2127
|
+
memberBaseNestjsModule.Authenticated(),
|
|
1878
2128
|
_ts_param(0, graphql.Root()),
|
|
1879
2129
|
_ts_metadata("design:type", Function),
|
|
1880
2130
|
_ts_metadata("design:paramtypes", [
|
|
1881
|
-
typeof
|
|
2131
|
+
typeof CategoryBaseDto === "undefined" ? Object : CategoryBaseDto
|
|
1882
2132
|
]),
|
|
1883
|
-
_ts_metadata("design:returntype",
|
|
1884
|
-
],
|
|
1885
|
-
|
|
1886
|
-
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)),
|
|
1887
2138
|
_ts_metadata("design:type", Function),
|
|
1888
2139
|
_ts_metadata("design:paramtypes", [
|
|
1889
|
-
|
|
2140
|
+
Boolean
|
|
1890
2141
|
])
|
|
1891
|
-
],
|
|
2142
|
+
], BackstageCategoryResolver);
|
|
1892
2143
|
|
|
1893
2144
|
function _ts_decorate(decorators, target, key, desc) {
|
|
1894
2145
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -1916,7 +2167,8 @@ class CMSBaseGraphQLModule {
|
|
|
1916
2167
|
ArticleQueries,
|
|
1917
2168
|
ArticleMutations,
|
|
1918
2169
|
CategoryQueries,
|
|
1919
|
-
CategoryMutations
|
|
2170
|
+
CategoryMutations,
|
|
2171
|
+
BackstageCategoryResolver
|
|
1920
2172
|
]
|
|
1921
2173
|
};
|
|
1922
2174
|
}
|
|
@@ -1938,7 +2190,8 @@ class CMSBaseGraphQLModule {
|
|
|
1938
2190
|
ArticleQueries,
|
|
1939
2191
|
ArticleMutations,
|
|
1940
2192
|
CategoryQueries,
|
|
1941
|
-
CategoryMutations
|
|
2193
|
+
CategoryMutations,
|
|
2194
|
+
BackstageCategoryResolver
|
|
1942
2195
|
]
|
|
1943
2196
|
};
|
|
1944
2197
|
}
|