@contember/engine-vimeo-plugin 1.3.4 → 1.4.0-alpha.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/engine-vimeo-plugin",
3
3
  "license": "Apache-2.0",
4
- "version": "1.3.4",
4
+ "version": "1.4.0-alpha.1",
5
5
  "main": "dist/src/index.js",
6
6
  "typings": "dist/src/index.d.ts",
7
7
  "exports": {
@@ -12,8 +12,8 @@
12
12
  "test": "echo 'No tests'"
13
13
  },
14
14
  "dependencies": {
15
- "@contember/engine-plugins": "1.3.4",
16
- "@contember/typesafe": "1.3.4",
15
+ "@contember/engine-plugins": "1.4.0-alpha.1",
16
+ "@contember/typesafe": "1.4.0-alpha.1",
17
17
  "node-fetch": "^2.0"
18
18
  },
19
19
  "devDependencies": {
@@ -5,7 +5,7 @@ import {
5
5
  GraphQLList,
6
6
  GraphQLNonNull,
7
7
  GraphQLObjectType,
8
- GraphQLSchema,
8
+ GraphQLSchemaConfig,
9
9
  GraphQLString,
10
10
  } from 'graphql'
11
11
  import { VimeoService, VimeoServiceFactory } from './VimeoService'
@@ -22,7 +22,7 @@ export class VimeoSchemaContributor implements GraphQLSchemaContributor {
22
22
  private readonly vimeoServiceFactory: VimeoServiceFactory,
23
23
  ) {}
24
24
 
25
- createSchema(context: GraphQLSchemaContributorContext): GraphQLSchema | undefined {
25
+ createSchema(context: GraphQLSchemaContributorContext): GraphQLSchemaConfig | undefined {
26
26
  if (!this.vimeoConfig) {
27
27
  return undefined
28
28
  }
@@ -41,7 +41,7 @@ export class VimeoSchemaContributor implements GraphQLSchemaContributor {
41
41
  const mutation = {
42
42
  generateVimeoUploadUrl: uploadMutation as GraphQLFieldConfig<any, any, any>,
43
43
  }
44
- return new GraphQLSchema({
44
+ return {
45
45
  mutation: new GraphQLObjectType({
46
46
  name: 'Mutation',
47
47
  fields: () => mutation,
@@ -54,7 +54,7 @@ export class VimeoSchemaContributor implements GraphQLSchemaContributor {
54
54
  },
55
55
  }),
56
56
  }),
57
- })
57
+ }
58
58
  }
59
59
 
60
60
  private createMutation(vimeoService: VimeoService): GraphQLFieldConfig<any, any, any> {