@aws-amplify/graphql-directives
Version:
Directive definitions for Amplify GraphQL transformers.
63 lines • 2.48 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.V1Directives = exports.DefaultDirectives = exports.V2Directives = exports.AppSyncDirectives = void 0;
__exportStar(require("./directives"), exports);
const directives_1 = require("./directives");
exports.AppSyncDirectives = [
directives_1.AwsApiKeyDirective,
directives_1.AwsAuthDirective,
directives_1.AwsCognitoUserPoolsDirective,
directives_1.AwsIamDirective,
directives_1.AwsLambdaDirective,
directives_1.AwsOidcDirective,
directives_1.AwsSubscribeDirective,
];
exports.V2Directives = [
directives_1.AuthDirective,
directives_1.BelongsToDirective,
directives_1.DefaultDirective,
directives_1.DeprecatedDirective,
directives_1.ConversationDirective,
directives_1.FunctionDirective,
directives_1.GenerationDirective,
directives_1.HasManyDirective,
directives_1.HasOneDirective,
directives_1.HttpDirective,
directives_1.IndexDirective,
directives_1.ManyToManyDirective,
directives_1.MapsToDirective,
directives_1.ModelDirective,
directives_1.PredictionsDirective,
directives_1.PrimaryKeyDirective,
directives_1.RefersToDirective,
directives_1.SearchableDirective,
directives_1.SqlDirective,
directives_1.ValidateDirective,
];
exports.DefaultDirectives = exports.AppSyncDirectives.concat(exports.V2Directives);
exports.V1Directives = [
directives_1.AuthDirectiveV1,
directives_1.ConnectionDirectiveV1,
directives_1.FunctionDirectiveV1,
directives_1.HttpDirectiveV1,
directives_1.KeyDirectiveV1,
directives_1.ModelDirectiveV1,
directives_1.PredictionsDirectiveV1,
directives_1.SearchableDirectiveV1,
directives_1.VersionedDirectiveV1,
];
//# sourceMappingURL=index.js.map