@things-factory/oauth2-client 7.0.0-alpha.8 → 7.0.0

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.
Files changed (34) hide show
  1. package/client/pages/oauth2-client/oauth2-client-importer.ts +8 -19
  2. package/client/pages/oauth2-client/oauth2-client-list-page.ts +6 -5
  3. package/client/pages/oauth2-client-register.ts +7 -5
  4. package/client/pages/oauth2-client.ts +58 -30
  5. package/client/pages/oauth2-clients.ts +41 -45
  6. package/dist-client/pages/oauth2-client/oauth2-client-importer.d.ts +1 -0
  7. package/dist-client/pages/oauth2-client/oauth2-client-importer.js +5 -12
  8. package/dist-client/pages/oauth2-client/oauth2-client-importer.js.map +1 -1
  9. package/dist-client/pages/oauth2-client/oauth2-client-list-page.js +6 -5
  10. package/dist-client/pages/oauth2-client/oauth2-client-list-page.js.map +1 -1
  11. package/dist-client/pages/oauth2-client-register.d.ts +1 -0
  12. package/dist-client/pages/oauth2-client-register.js +6 -5
  13. package/dist-client/pages/oauth2-client-register.js.map +1 -1
  14. package/dist-client/pages/oauth2-client.d.ts +1 -0
  15. package/dist-client/pages/oauth2-client.js +58 -30
  16. package/dist-client/pages/oauth2-client.js.map +1 -1
  17. package/dist-client/pages/oauth2-clients.d.ts +2 -1
  18. package/dist-client/pages/oauth2-clients.js +40 -45
  19. package/dist-client/pages/oauth2-clients.js.map +1 -1
  20. package/dist-client/route.js.map +1 -1
  21. package/dist-client/tsconfig.tsbuildinfo +1 -1
  22. package/dist-server/routes.js.map +1 -1
  23. package/dist-server/service/oauth2-client/oauth2-client-mutation.js +2 -2
  24. package/dist-server/service/oauth2-client/oauth2-client-mutation.js.map +1 -1
  25. package/dist-server/service/oauth2-client/oauth2-client-query.js +3 -3
  26. package/dist-server/service/oauth2-client/oauth2-client-query.js.map +1 -1
  27. package/dist-server/service/oauth2-client/oauth2-client-type.js +6 -6
  28. package/dist-server/service/oauth2-client/oauth2-client-type.js.map +1 -1
  29. package/dist-server/service/oauth2-client/oauth2-client.js +5 -5
  30. package/dist-server/service/oauth2-client/oauth2-client.js.map +1 -1
  31. package/dist-server/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +9 -9
  33. package/server/service/oauth2-client/oauth2-client-query.ts +4 -1
  34. package/server/service/oauth2-client/oauth2-client.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/oauth2-client",
3
- "version": "7.0.0-alpha.8",
3
+ "version": "7.0.0",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -27,15 +27,15 @@
27
27
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
28
28
  },
29
29
  "dependencies": {
30
- "@operato/graphql": "^2.0.0-alpha.0",
31
- "@operato/help": "^2.0.0-alpha.0",
32
- "@operato/layout": "^2.0.0-alpha.0",
33
- "@operato/shell": "^2.0.0-alpha.0",
34
- "@operato/utils": "^2.0.0-alpha.0",
35
- "@things-factory/auth-base": "^7.0.0-alpha.8",
36
- "@things-factory/shell": "^7.0.0-alpha.8",
30
+ "@operato/graphql": "^7.0.0",
31
+ "@operato/help": "^7.0.0",
32
+ "@operato/layout": "^7.0.0",
33
+ "@operato/shell": "^7.0.0",
34
+ "@operato/utils": "^7.0.0",
35
+ "@things-factory/auth-base": "^7.0.0",
36
+ "@things-factory/shell": "^7.0.0",
37
37
  "client-oauth2": "^4.3.3",
38
38
  "clipboard": "^2.0.6"
39
39
  },
40
- "gitHead": "b4981ea2721e7eaf4dbd618b6c77316ebc000ee5"
40
+ "gitHead": "00f3917ca132679e3571f3f4fd16f4caf84f488e"
41
41
  }
@@ -18,7 +18,10 @@ export class Oauth2ClientQuery {
18
18
  }
19
19
 
20
20
  @Query(returns => Oauth2ClientList, { description: 'To fetch multiple Oauth2Clients' })
21
- async oauth2Clients(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<Oauth2ClientList> {
21
+ async oauth2Clients(
22
+ @Args(type => ListParam) params: ListParam,
23
+ @Ctx() context: ResolverContext
24
+ ): Promise<Oauth2ClientList> {
22
25
  const { domain } = context.state
23
26
 
24
27
  const queryBuilder = getQueryBuilderFromListParams({
@@ -23,7 +23,7 @@ export class Oauth2Client {
23
23
  readonly id: string
24
24
 
25
25
  @ManyToOne(type => Domain)
26
- @Field({ nullable: true })
26
+ @Field(type => Domain)
27
27
  domain?: Domain
28
28
 
29
29
  @RelationId((oauth2Client: Oauth2Client) => oauth2Client.domain)
@@ -122,14 +122,14 @@ export class Oauth2Client {
122
122
  updatedAt?: Date
123
123
 
124
124
  @ManyToOne(type => User, { nullable: true })
125
- @Field({ nullable: true })
125
+ @Field(type => User, { nullable: true })
126
126
  creator?: User
127
127
 
128
128
  @RelationId((oauth2Client: Oauth2Client) => oauth2Client.creator)
129
129
  creatorId?: string
130
130
 
131
131
  @ManyToOne(type => User, { nullable: true })
132
- @Field({ nullable: true })
132
+ @Field(type => User, { nullable: true })
133
133
  updater?: User
134
134
 
135
135
  @RelationId((oauth2Client: Oauth2Client) => oauth2Client.updater)