graphql-transformer-common
Advanced tools
Comparing version 1.1.0-alpha.efcc0c6b to 1.1.0-alpha.f4bb8050
@@ -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) |
@@ -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; |
@@ -5,1 +5,2 @@ export declare function plurality(val: string): string; | ||
export declare function toCamelCase(words: string[]): string; | ||
export declare const NONE_VALUE = "___xamznone____"; |
@@ -27,2 +27,3 @@ "use strict"; | ||
exports.toCamelCase = toCamelCase; | ||
exports.NONE_VALUE = '___xamznone____'; | ||
//# sourceMappingURL=util.js.map |
{ | ||
"name": "graphql-transformer-common", | ||
"version": "1.1.0-alpha.efcc0c6b", | ||
"version": "1.1.0-alpha.f4bb8050", | ||
"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.efcc0c6b", | ||
"graphql-transformer-core": "^1.1.0-alpha.efcc0c6b" | ||
"graphql-mapping-template": "^1.1.0-alpha.f4bb8050", | ||
"graphql-transformer-core": "^1.1.0-alpha.f4bb8050" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -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" | ||
} | ||
} |
@@ -20,1 +20,3 @@ export function plurality(val: string): string { | ||
} | ||
export const NONE_VALUE = '___xamznone____' |
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
63922
44
1266