UNPKG

@wepublish/api

Version:
87 lines 3.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ImportEventArgs = exports.SingleEventFilter = exports.ImportedEventFilter = exports.ImportedEventsDocument = exports.EventFromSource = exports.ImportedEventSort = void 0; const tslib_1 = require("tslib"); const graphql_1 = require("@nestjs/graphql"); const client_1 = require("@prisma/client"); const api_1 = require("../../../../event-api/src"); const api_2 = require("../../../../utils-api/src"); var ImportedEventSort; (function (ImportedEventSort) { ImportedEventSort["STARTS_AT"] = "STARTS_AT"; ImportedEventSort["ENDS_AT"] = "ENDS_AT"; ImportedEventSort["CREATED_AT"] = "CREATED_AT"; ImportedEventSort["MODIFIED_AT"] = "MODIFIED_AT"; })(ImportedEventSort || (exports.ImportedEventSort = ImportedEventSort = {})); (0, graphql_1.registerEnumType)(ImportedEventSort, { name: 'ImportedEventSort' }); (0, graphql_1.registerEnumType)(client_1.EventStatus, { name: 'EventStatus' }); let EventFromSource = exports.EventFromSource = class EventFromSource extends (0, graphql_1.OmitType)(api_1.Event, ['imageId', 'image']) { }; tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], EventFromSource.prototype, "imageUrl", void 0); exports.EventFromSource = EventFromSource = tslib_1.__decorate([ (0, graphql_1.ObjectType)() ], EventFromSource); let ImportedEventsDocument = exports.ImportedEventsDocument = class ImportedEventsDocument extends (0, api_2.PaginatedType)(EventFromSource) { }; exports.ImportedEventsDocument = ImportedEventsDocument = tslib_1.__decorate([ (0, graphql_1.ObjectType)() ], ImportedEventsDocument); let ImportedEventFilter = exports.ImportedEventFilter = class ImportedEventFilter { }; tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], ImportedEventFilter.prototype, "name", void 0); tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], ImportedEventFilter.prototype, "from", void 0); tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], ImportedEventFilter.prototype, "to", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(type => [String], { nullable: 'itemsAndList' }), tslib_1.__metadata("design:type", Array) ], ImportedEventFilter.prototype, "providers", void 0); tslib_1.__decorate([ (0, graphql_1.Field)({ nullable: true }), tslib_1.__metadata("design:type", String) ], ImportedEventFilter.prototype, "location", void 0); exports.ImportedEventFilter = ImportedEventFilter = tslib_1.__decorate([ (0, graphql_1.InputType)() ], ImportedEventFilter); let SingleEventFilter = exports.SingleEventFilter = class SingleEventFilter { }; tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], SingleEventFilter.prototype, "id", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], SingleEventFilter.prototype, "source", void 0); exports.SingleEventFilter = SingleEventFilter = tslib_1.__decorate([ (0, graphql_1.InputType)() ], SingleEventFilter); let ImportEventArgs = exports.ImportEventArgs = class ImportEventArgs { }; tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], ImportEventArgs.prototype, "id", void 0); tslib_1.__decorate([ (0, graphql_1.Field)(), tslib_1.__metadata("design:type", String) ], ImportEventArgs.prototype, "source", void 0); exports.ImportEventArgs = ImportEventArgs = tslib_1.__decorate([ (0, graphql_1.ArgsType)() ], ImportEventArgs); //# sourceMappingURL=events-import.model.js.map