@things-factory/i18n-base 7.0.1-alpha.82 → 7.0.1-alpha.85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/i18n-base",
3
- "version": "7.0.1-alpha.82",
3
+ "version": "7.0.1-alpha.85",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -31,5 +31,5 @@
31
31
  "@things-factory/auth-base": "^7.0.1-alpha.81",
32
32
  "@things-factory/shell": "^7.0.1-alpha.71"
33
33
  },
34
- "gitHead": "9e5a8101c23f6e6cfffd17fcfad44154e26aa0bd"
34
+ "gitHead": "647b4a150e347697da6b711aa57062edd2997230"
35
35
  }
@@ -18,7 +18,7 @@ function clearCache(subdomain: string) {
18
18
  @Resolver(Terminology)
19
19
  export class TerminologyMutation {
20
20
  @Directive('@transaction')
21
- @Directive('@privilege(category: "terminology", privilege: "mutation")')
21
+ @Directive('@privilege(category: "terminology", privilege: "mutation", domainOwnerGranted: true)')
22
22
  @Mutation(returns => Terminology, { description: 'To create new Terminology' })
23
23
  async createTerminology(@Arg('terminology') terminology: NewTerminology, @Ctx() context: any): Promise<Terminology> {
24
24
  const { domain, user, tx } = context.state
@@ -36,7 +36,7 @@ export class TerminologyMutation {
36
36
  }
37
37
 
38
38
  @Directive('@transaction')
39
- @Directive('@privilege(category: "terminology", privilege: "mutation")')
39
+ @Directive('@privilege(category: "terminology", privilege: "mutation", domainOwnerGranted: true)')
40
40
  @Mutation(returns => Terminology, { description: 'To modify Terminology information' })
41
41
  async updateTerminology(
42
42
  @Arg('id') id: string,
@@ -62,7 +62,7 @@ export class TerminologyMutation {
62
62
  }
63
63
 
64
64
  @Directive('@transaction')
65
- @Directive('@privilege(category: "terminology", privilege: "mutation")')
65
+ @Directive('@privilege(category: "terminology", privilege: "mutation", domainOwnerGranted: true)')
66
66
  @Mutation(returns => [Terminology], { description: "To modify multiple Terminologies' information" })
67
67
  async updateMultipleTerminologies(
68
68
  @Arg('patches', type => [TerminologyPatch]) patches: TerminologyPatch[],
@@ -121,7 +121,7 @@ export class TerminologyMutation {
121
121
  }
122
122
 
123
123
  @Directive('@transaction')
124
- @Directive('@privilege(category: "terminology", privilege: "mutation")')
124
+ @Directive('@privilege(category: "terminology", privilege: "mutation", domainOwnerGranted: true)')
125
125
  @Mutation(returns => Boolean, { description: 'To delete Terminology' })
126
126
  async deleteTerminology(@Arg('id') id: string, @Ctx() context: any): Promise<boolean> {
127
127
  const { domain, tx } = context.state
@@ -134,7 +134,7 @@ export class TerminologyMutation {
134
134
  }
135
135
 
136
136
  @Directive('@transaction')
137
- @Directive('@privilege(category: "terminology", privilege: "mutation")')
137
+ @Directive('@privilege(category: "terminology", privilege: "mutation", domainOwnerGranted: true)')
138
138
  @Mutation(returns => Boolean, { description: 'To delete multiple Terminologies' })
139
139
  async deleteTerminologies(@Arg('ids', type => [String]) ids: string[], @Ctx() context: any): Promise<boolean> {
140
140
  const { domain, tx } = context.state
@@ -150,7 +150,7 @@ export class TerminologyMutation {
150
150
  }
151
151
 
152
152
  @Directive('@transaction')
153
- @Directive('@privilege(category: "terminology", privilege: "mutation")')
153
+ @Directive('@privilege(category: "terminology", privilege: "mutation", domainOwnerGranted: true)')
154
154
  @Mutation(returns => Boolean, { description: 'To import multiple Terminologies' })
155
155
  async importTerminologies(
156
156
  @Arg('terminologies', type => [TerminologyPatch]) terminologies: TerminologyPatch[],
@@ -3,5 +3,6 @@
3
3
  "field.category": "category",
4
4
  "field.display": "display",
5
5
  "field.locale": "locale",
6
+ "text.clearing-cache": "clearing cache",
6
7
  "title.terminology": "terminology"
7
8
  }
@@ -3,5 +3,6 @@
3
3
  "field.category": "カテゴリー",
4
4
  "field.display": "表示",
5
5
  "field.locale": "ロケール",
6
+ "text.clearing-cache": "キャッシュをクリア",
6
7
  "title.terminology": "用語"
7
8
  }
@@ -3,5 +3,6 @@
3
3
  "field.category": "카테고리",
4
4
  "field.display": "표시",
5
5
  "field.locale": "로케일",
6
+ "text.clearing-cache": "캐시클리어",
6
7
  "title.terminology": "용어"
7
8
  }
@@ -3,5 +3,6 @@
3
3
  "field.category": "kategori",
4
4
  "field.display": "paparan",
5
5
  "field.locale": "lokaliti",
6
+ "text.clearing-cache": "sedang mengosongkan cache",
6
7
  "title.terminology": "istilah"
7
8
  }
@@ -3,5 +3,6 @@
3
3
  "field.category": "类别",
4
4
  "field.display": "显示",
5
5
  "field.locale": "语言环境",
6
+ "text.clearing-cache": "正在清除缓存",
6
7
  "title.terminology": "术语"
7
8
  }