graphql-transformer-common
Advanced tools
Comparing version 1.1.0-alpha.2631c6c8 to 1.1.0-alpha.31da634f
@@ -6,2 +6,18 @@ # Change Log | ||
<a name="1.0.28"></a> | ||
## [1.0.28](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.28-beta.0...graphql-transformer-common@1.0.28) (2018-10-18) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.28-beta.0"></a> | ||
## [1.0.28-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.28-beta.0) (2018-10-12) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.12"></a> | ||
@@ -8,0 +24,0 @@ ## [1.0.12](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.11...graphql-transformer-common@1.0.12) (2018-08-23) |
@@ -25,2 +25,3 @@ import { ObjectTypeDefinitionNode, InputValueDefinitionNode, FieldDefinitionNode, TypeNode, SchemaDefinitionNode, OperationTypeNode, OperationTypeDefinitionNode, ObjectTypeExtensionNode, NamedTypeNode, NonNullTypeNode, ListTypeNode, ArgumentNode, DirectiveNode, EnumTypeDefinitionNode, ValueNode } from 'graphql'; | ||
export declare function isListType(type: TypeNode): boolean; | ||
export declare function isNonNullType(type: TypeNode): boolean; | ||
export declare const getDirectiveArgument: (directive: DirectiveNode) => (arg: string, dflt?: any) => any; | ||
@@ -27,0 +28,0 @@ export declare function unwrapNonNull(type: TypeNode): any; |
@@ -101,2 +101,6 @@ "use strict"; | ||
exports.isListType = isListType; | ||
function isNonNullType(type) { | ||
return type.kind === graphql_1.Kind.NON_NULL_TYPE; | ||
} | ||
exports.isNonNullType = isNonNullType; | ||
exports.getDirectiveArgument = function (directive) { return function (arg, dflt) { | ||
@@ -103,0 +107,0 @@ var get = function (s) { return function (arg) { return arg.name.value === s; }; }; |
@@ -8,1 +8,2 @@ export * from './ResourceConstants'; | ||
export * from './nodeUtils'; | ||
export * from './HttpResourceIDs'; |
@@ -13,2 +13,3 @@ "use strict"; | ||
__export(require("./nodeUtils")); | ||
__export(require("./HttpResourceIDs")); | ||
//# sourceMappingURL=index.js.map |
@@ -15,2 +15,5 @@ export declare class ModelResourceIDs { | ||
static NonModelInputObjectName(typeName: string): string; | ||
static UrlParamsInputObjectName(typeName: string, fieldName: string): string; | ||
static HttpQueryInputObjectName(typeName: string, fieldName: string): string; | ||
static HttpBodyInputObjectName(typeName: string, fieldName: string): string; | ||
} |
@@ -51,2 +51,11 @@ "use strict"; | ||
}; | ||
ModelResourceIDs.UrlParamsInputObjectName = function (typeName, fieldName) { | ||
return util_1.graphqlName(util_1.toUpper(typeName) + util_1.toUpper(fieldName) + 'ParamsInput'); | ||
}; | ||
ModelResourceIDs.HttpQueryInputObjectName = function (typeName, fieldName) { | ||
return util_1.graphqlName(util_1.toUpper(typeName) + util_1.toUpper(fieldName) + 'QueryInput'); | ||
}; | ||
ModelResourceIDs.HttpBodyInputObjectName = function (typeName, fieldName) { | ||
return util_1.graphqlName(util_1.toUpper(typeName) + util_1.toUpper(fieldName) + 'BodyInput'); | ||
}; | ||
return ModelResourceIDs; | ||
@@ -53,0 +62,0 @@ }()); |
@@ -56,3 +56,8 @@ export declare class ResourceConstants { | ||
VersionedCondition: string; | ||
IsDynamicGroupAuthorizedVariable: string; | ||
IsLocalDynamicGroupAuthorizedVariable: string; | ||
IsStaticGroupAuthorizedVariable: string; | ||
IsOwnerAuthorizedVariable: string; | ||
IsLocalOwnerAuthorizedVariable: string; | ||
}; | ||
} |
@@ -21,3 +21,3 @@ "use strict"; | ||
AuthCognitoUserPoolNativeClientLogicalID: 'AuthCognitoUserPoolNativeClient', | ||
AuthCognitoUserPoolJSClientLogicalID: 'AuthCognitoUserPoolJSClient' | ||
AuthCognitoUserPoolJSClientLogicalID: 'AuthCognitoUserPoolJSClient', | ||
}; | ||
@@ -71,3 +71,8 @@ ResourceConstants.PARAMETERS = { | ||
AuthCondition: "authCondition", | ||
VersionedCondition: "versionedCondition" | ||
VersionedCondition: "versionedCondition", | ||
IsDynamicGroupAuthorizedVariable: "isDynamicGroupAuthorized", | ||
IsLocalDynamicGroupAuthorizedVariable: "isLocalDynamicGroupAuthorized", | ||
IsStaticGroupAuthorizedVariable: "isStaticGroupAuthorized", | ||
IsOwnerAuthorizedVariable: "isOwnerAuthorized", | ||
IsLocalOwnerAuthorizedVariable: "isLocalOwnerAuthorized" | ||
}; | ||
@@ -74,0 +79,0 @@ return ResourceConstants; |
{ | ||
"name": "graphql-transformer-common", | ||
"version": "1.1.0-alpha.2631c6c8", | ||
"version": "1.1.0-alpha.31da634f", | ||
"description": "Common code and constants for AppSync Transformers", | ||
@@ -21,4 +21,4 @@ "main": "lib/index.js", | ||
"graphql": "^0.13.2", | ||
"graphql-mapping-template": "^1.1.0-alpha.2631c6c8", | ||
"graphql-transformer-core": "^1.1.0-alpha.2631c6c8" | ||
"graphql-mapping-template": "^1.1.0-alpha.31da634f", | ||
"graphql-transformer-core": "^1.1.0-alpha.31da634f" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -102,2 +102,6 @@ import { | ||
export function isNonNullType(type: TypeNode): boolean { | ||
return type.kind === Kind.NON_NULL_TYPE; | ||
} | ||
export const getDirectiveArgument = (directive: DirectiveNode) => (arg: string, dflt?: any) => { | ||
@@ -104,0 +108,0 @@ const get = (s: string) => (arg: ArgumentNode) => arg.name.value === s |
@@ -8,1 +8,2 @@ export * from './ResourceConstants' | ||
export * from './nodeUtils' | ||
export * from './HttpResourceIDs' |
@@ -48,2 +48,11 @@ import { graphqlName, toUpper } from './util' | ||
} | ||
static UrlParamsInputObjectName(typeName: string, fieldName: string) { | ||
return graphqlName(toUpper(typeName) + toUpper(fieldName) + 'ParamsInput') | ||
} | ||
static HttpQueryInputObjectName(typeName: string, fieldName: string) { | ||
return graphqlName(toUpper(typeName) + toUpper(fieldName) + 'QueryInput') | ||
} | ||
static HttpBodyInputObjectName(typeName: string, fieldName: string) { | ||
return graphqlName(toUpper(typeName) + toUpper(fieldName) + 'BodyInput') | ||
} | ||
} |
@@ -0,1 +1,3 @@ | ||
import { graphqlName } from "./util"; | ||
export class ResolverResourceIDs { | ||
@@ -2,0 +4,0 @@ static DynamoDBCreateResolverResourceID(typeName: string): string { |
@@ -21,3 +21,3 @@ export class ResourceConstants { | ||
AuthCognitoUserPoolNativeClientLogicalID: 'AuthCognitoUserPoolNativeClient', | ||
AuthCognitoUserPoolJSClientLogicalID: 'AuthCognitoUserPoolJSClient' | ||
AuthCognitoUserPoolJSClientLogicalID: 'AuthCognitoUserPoolJSClient', | ||
} | ||
@@ -78,4 +78,9 @@ public static PARAMETERS = { | ||
AuthCondition: "authCondition", | ||
VersionedCondition: "versionedCondition" | ||
VersionedCondition: "versionedCondition", | ||
IsDynamicGroupAuthorizedVariable: "isDynamicGroupAuthorized", | ||
IsLocalDynamicGroupAuthorizedVariable: "isLocalDynamicGroupAuthorized", | ||
IsStaticGroupAuthorizedVariable: "isStaticGroupAuthorized", | ||
IsOwnerAuthorizedVariable: "isOwnerAuthorized", | ||
IsLocalOwnerAuthorizedVariable: "isLocalOwnerAuthorized" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63753
44
1264