@rytass/cms-base-nestjs-graphql-module 0.0.21 → 0.0.22

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/index.cjs.js CHANGED
@@ -346,8 +346,8 @@ class ArticleMutations {
346
346
  version: version ?? undefined
347
347
  });
348
348
  }
349
- withdrawArticle(id) {
350
- return this.articleService.withdraw(id);
349
+ withdrawArticle(id, version) {
350
+ return this.articleService.withdraw(id, version);
351
351
  }
352
352
  }
353
353
  _ts_decorate$r([
@@ -493,9 +493,13 @@ _ts_decorate$r([
493
493
  _ts_param$8(0, graphql.Args('id', {
494
494
  type: ()=>graphql.ID
495
495
  })),
496
+ _ts_param$8(1, graphql.Args('version', {
497
+ type: ()=>graphql.Int
498
+ })),
496
499
  _ts_metadata$p("design:type", Function),
497
500
  _ts_metadata$p("design:paramtypes", [
498
- String
501
+ String,
502
+ Number
499
503
  ]),
500
504
  _ts_metadata$p("design:returntype", typeof Promise === "undefined" ? Object : Promise)
501
505
  ], ArticleMutations.prototype, "withdrawArticle", null);
@@ -16,5 +16,5 @@ export declare class ArticleMutations {
16
16
  approveArticle(id: string, version?: number | null): Promise<BackstageArticleDto>;
17
17
  rejectArticle(id: string, reason?: string | null): Promise<BackstageArticleDto>;
18
18
  releaseArticle(userId: string, id: string, releasedAt: Date, version?: number | null): Promise<BackstageArticleDto>;
19
- withdrawArticle(id: string): Promise<BackstageArticleDto>;
19
+ withdrawArticle(id: string, version: number): Promise<BackstageArticleDto>;
20
20
  }
@@ -106,8 +106,8 @@ class ArticleMutations {
106
106
  version: version ?? undefined
107
107
  });
108
108
  }
109
- withdrawArticle(id) {
110
- return this.articleService.withdraw(id);
109
+ withdrawArticle(id, version) {
110
+ return this.articleService.withdraw(id, version);
111
111
  }
112
112
  }
113
113
  _ts_decorate([
@@ -253,9 +253,13 @@ _ts_decorate([
253
253
  _ts_param(0, Args('id', {
254
254
  type: ()=>ID
255
255
  })),
256
+ _ts_param(1, Args('version', {
257
+ type: ()=>Int
258
+ })),
256
259
  _ts_metadata("design:type", Function),
257
260
  _ts_metadata("design:paramtypes", [
258
- String
261
+ String,
262
+ Number
259
263
  ]),
260
264
  _ts_metadata("design:returntype", typeof Promise === "undefined" ? Object : Promise)
261
265
  ], ArticleMutations.prototype, "withdrawArticle", null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rytass/cms-base-nestjs-graphql-module",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "Rytass Content Management System NestJS Base GraphQL Module",
5
5
  "keywords": [
6
6
  "rytass",
@@ -26,7 +26,7 @@
26
26
  "typeorm": "*"
27
27
  },
28
28
  "dependencies": {
29
- "@rytass/cms-base-nestjs-module": "^0.1.92",
29
+ "@rytass/cms-base-nestjs-module": "^0.1.93",
30
30
  "@rytass/member-base-nestjs-module": "^0.1.65",
31
31
  "dataloader": "^2.2.2",
32
32
  "lru-cache": "^11.0.2"