@wepublish/api
Version:
API core for we.publish.
71 lines • 2.8 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserConsentFilter = exports.UserConsentInput = exports.UserConsent = void 0;
const tslib_1 = require("tslib");
const graphql_1 = require("@nestjs/graphql");
const api_1 = require("../../../../user-api/src");
const consent_model_1 = require("../consent/consent.model");
let UserConsent = exports.UserConsent = class UserConsent {
};
tslib_1.__decorate([
(0, graphql_1.Field)(),
tslib_1.__metadata("design:type", String)
], UserConsent.prototype, "id", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)(),
tslib_1.__metadata("design:type", Date)
], UserConsent.prototype, "createdAt", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)(),
tslib_1.__metadata("design:type", Date)
], UserConsent.prototype, "modifiedAt", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)(type => consent_model_1.Consent),
tslib_1.__metadata("design:type", consent_model_1.Consent)
], UserConsent.prototype, "consent", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)(type => api_1.User),
tslib_1.__metadata("design:type", Object)
], UserConsent.prototype, "user", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)(),
tslib_1.__metadata("design:type", Boolean)
], UserConsent.prototype, "value", void 0);
exports.UserConsent = UserConsent = tslib_1.__decorate([
(0, graphql_1.ObjectType)()
], UserConsent);
let UserConsentInput = exports.UserConsentInput = class UserConsentInput {
};
tslib_1.__decorate([
(0, graphql_1.Field)(),
tslib_1.__metadata("design:type", String)
], UserConsentInput.prototype, "consentId", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)(),
tslib_1.__metadata("design:type", String)
], UserConsentInput.prototype, "userId", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)(),
tslib_1.__metadata("design:type", Boolean)
], UserConsentInput.prototype, "value", void 0);
exports.UserConsentInput = UserConsentInput = tslib_1.__decorate([
(0, graphql_1.ArgsType)()
], UserConsentInput);
let UserConsentFilter = exports.UserConsentFilter = class UserConsentFilter {
};
tslib_1.__decorate([
(0, graphql_1.Field)({ nullable: true }),
tslib_1.__metadata("design:type", String)
], UserConsentFilter.prototype, "name", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)({ nullable: true }),
tslib_1.__metadata("design:type", String)
], UserConsentFilter.prototype, "slug", void 0);
tslib_1.__decorate([
(0, graphql_1.Field)({ nullable: true }),
tslib_1.__metadata("design:type", Boolean)
], UserConsentFilter.prototype, "value", void 0);
exports.UserConsentFilter = UserConsentFilter = tslib_1.__decorate([
(0, graphql_1.ArgsType)()
], UserConsentFilter);
//# sourceMappingURL=user-consent.model.js.map