graphql-transformer-common
Advanced tools
Comparing version 1.1.0-alpha.e0406dc1 to 1.1.0-alpha.e09ffec2
@@ -6,2 +6,90 @@ # Change Log | ||
<a name="1.0.33"></a> | ||
## [1.0.33](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.33-beta.0...graphql-transformer-common@1.0.33) (2018-11-09) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.33-beta.0"></a> | ||
## [1.0.33-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.33-beta.0) (2018-11-09) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.32"></a> | ||
## [1.0.32](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.32-beta.0...graphql-transformer-common@1.0.32) (2018-11-05) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.32-beta.0"></a> | ||
## [1.0.32-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.32-beta.0) (2018-11-05) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.31"></a> | ||
## [1.0.31](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.31) (2018-11-02) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.30"></a> | ||
## [1.0.30](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.30-beta.0...graphql-transformer-common@1.0.30) (2018-11-02) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.30-beta.0"></a> | ||
## [1.0.30-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.30-beta.0) (2018-11-02) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.29"></a> | ||
## [1.0.29](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.29-beta.0...graphql-transformer-common@1.0.29) (2018-10-23) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<a name="1.0.29-beta.0"></a> | ||
## [1.0.29-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-common@1.0.12...graphql-transformer-common@1.0.29-beta.0) (2018-10-23) | ||
**Note:** Version bump only for package graphql-transformer-common | ||
<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 +96,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.e0406dc1", | ||
"version": "1.1.0-alpha.e09ffec2", | ||
"description": "Common code and constants for AppSync Transformers", | ||
@@ -8,2 +8,3 @@ "main": "lib/index.js", | ||
"test": "jest", | ||
"test-ci": "jest --ci -i", | ||
"build": "tsc", | ||
@@ -22,4 +23,4 @@ "clean": "rm -rf ./lib" | ||
"graphql": "^0.13.2", | ||
"graphql-mapping-template": "^1.1.0-alpha.e0406dc1", | ||
"graphql-transformer-core": "^1.1.0-alpha.e0406dc1" | ||
"graphql-mapping-template": "^1.1.0-alpha.e09ffec2", | ||
"graphql-transformer-core": "^1.1.0-alpha.e09ffec2" | ||
}, | ||
@@ -26,0 +27,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
66234
44
1266
2