@@ -7,6 +7,42 @@ const connectorConfig = {
77} ;
88exports . connectorConfig = connectorConfig ;
99
10+ const listMoviesRef = ( dc ) => {
11+ const { dc : dcInstance } = validateArgs ( connectorConfig , dc , undefined ) ;
12+ dcInstance . _useGeneratedSdk ( ) ;
13+ return queryRef ( dcInstance , 'ListMovies' ) ;
14+ }
15+ listMoviesRef . operationName = 'ListMovies' ;
16+ exports . listMoviesRef = listMoviesRef ;
17+
18+ exports . listMovies = function listMovies ( dc ) {
19+ return executeQuery ( listMoviesRef ( dc ) ) ;
20+ } ;
21+
22+ const getMovieByIdRef = ( dcOrVars , vars ) => {
23+ const { dc : dcInstance , vars : inputVars } = validateArgs ( connectorConfig , dcOrVars , vars , true ) ;
24+ dcInstance . _useGeneratedSdk ( ) ;
25+ return queryRef ( dcInstance , 'GetMovieById' , inputVars ) ;
26+ }
27+ getMovieByIdRef . operationName = 'GetMovieById' ;
28+ exports . getMovieByIdRef = getMovieByIdRef ;
29+
30+ exports . getMovieById = function getMovieById ( dcOrVars , vars ) {
31+ return executeQuery ( getMovieByIdRef ( dcOrVars , vars ) ) ;
32+ } ;
33+
34+ const getMetaRef = ( dc ) => {
35+ const { dc : dcInstance } = validateArgs ( connectorConfig , dc , undefined ) ;
36+ dcInstance . _useGeneratedSdk ( ) ;
37+ return queryRef ( dcInstance , 'GetMeta' ) ;
38+ }
39+ getMetaRef . operationName = 'GetMeta' ;
40+ exports . getMetaRef = getMetaRef ;
41+
42+ exports . getMeta = function getMeta ( dc ) {
43+ return executeQuery ( getMetaRef ( dc ) ) ;
44+ } ;
45+
1046const createMovieRef = ( dcOrVars , vars ) => {
1147 const { dc : dcInstance , vars : inputVars } = validateArgs ( connectorConfig , dcOrVars , vars , true ) ;
1248 dcInstance . _useGeneratedSdk ( ) ;
@@ -66,39 +102,3 @@ exports.deleteMetaRef = deleteMetaRef;
66102exports . deleteMeta = function deleteMeta ( dcOrVars , vars ) {
67103 return executeMutation ( deleteMetaRef ( dcOrVars , vars ) ) ;
68104} ;
69-
70- const listMoviesRef = ( dc ) => {
71- const { dc : dcInstance } = validateArgs ( connectorConfig , dc , undefined ) ;
72- dcInstance . _useGeneratedSdk ( ) ;
73- return queryRef ( dcInstance , 'ListMovies' ) ;
74- }
75- listMoviesRef . operationName = 'ListMovies' ;
76- exports . listMoviesRef = listMoviesRef ;
77-
78- exports . listMovies = function listMovies ( dc ) {
79- return executeQuery ( listMoviesRef ( dc ) ) ;
80- } ;
81-
82- const getMovieByIdRef = ( dcOrVars , vars ) => {
83- const { dc : dcInstance , vars : inputVars } = validateArgs ( connectorConfig , dcOrVars , vars , true ) ;
84- dcInstance . _useGeneratedSdk ( ) ;
85- return queryRef ( dcInstance , 'GetMovieById' , inputVars ) ;
86- }
87- getMovieByIdRef . operationName = 'GetMovieById' ;
88- exports . getMovieByIdRef = getMovieByIdRef ;
89-
90- exports . getMovieById = function getMovieById ( dcOrVars , vars ) {
91- return executeQuery ( getMovieByIdRef ( dcOrVars , vars ) ) ;
92- } ;
93-
94- const getMetaRef = ( dc ) => {
95- const { dc : dcInstance } = validateArgs ( connectorConfig , dc , undefined ) ;
96- dcInstance . _useGeneratedSdk ( ) ;
97- return queryRef ( dcInstance , 'GetMeta' ) ;
98- }
99- getMetaRef . operationName = 'GetMeta' ;
100- exports . getMetaRef = getMetaRef ;
101-
102- exports . getMeta = function getMeta ( dc ) {
103- return executeQuery ( getMetaRef ( dc ) ) ;
104- } ;
0 commit comments