UNPKG

@onehilltech/blueprint

Version:

lightweight, simple, elegant framework for building mean applications

75 lines (56 loc) 2.53 kB
/* * Copyright (c) 2018 One Hill Technologies, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ module.exports = exports = require ('./-framework'); const {BO, computed, Mixin, PropertyDescriptor } = require ('base-object'); exports.computed = computed; exports.Mixin = Mixin; exports.BO = exports.BlueprintObject = BO; exports.PropertyDescriptor = PropertyDescriptor; const { AsyncListener, Listener, Events } = require ('./messaging'); exports.Loader = require ('./loader'); // message framework classes exports.AsyncListener = AsyncListener; exports.Listener = Listener; exports.Events = Events; exports.Controller = require ('./controller'); exports.ResourceController = require ('./resource-controller'); exports.barrier = require ('./barrier'); exports.BlueprintError = require ('./error'); exports.HttpError = require ('./http-error'); exports.BadRequestError = require ('./bad-request-error'); exports.ForbiddenError = require ('./forbidden-error'); exports.NotFoundError = require ('./not-found-error'); exports.UnauthorizedError = require ('./unauthorized-error'); exports.InternalServerError = require ('./internal-server-error'); exports.Policy = require ('./policy'); exports.Router = require ('./router'); exports.Protocol = require ('./server/protocol'); // built-in actions exports.Action = require ('./action'); exports.ViewAction = require ('./view-action'); exports.SingleViewAction = require ('./single-view-action'); exports.UploadAction = require ('./upload-action'); exports.SingleFileUploadAction = require ('./single-file-upload-action'); exports.ArrayUploadAction = require ('./array-upload-action'); exports.FieldsUploadAction = require ('./fields-upload-action'); exports.TextOnlyUploadAction = require ('./text-only-upload-action'); exports.Service = require ('./service'); // policy builders exports.policies = require ('./policies'); // computed/bound attributes const { service, model } = require ('./properties'); exports.service = service; exports.model = model;