UNPKG

@sourceloop/ctrl-plane-tenant-management-service

Version:

Tenant Management microservice for SaaS control plane

97 lines 3.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TenantOnboardDTO = void 0; const tslib_1 = require("tslib"); const openapi_v3_1 = require("@loopback/openapi-v3"); const repository_1 = require("@loopback/repository"); const contact_model_1 = require("../contact.model"); let TenantOnboardDTO = class TenantOnboardDTO extends repository_1.Model { constructor(data) { super(data); } }; exports.TenantOnboardDTO = TenantOnboardDTO; tslib_1.__decorate([ (0, repository_1.property)({ type: 'object', description: 'metadata for the contact to be created, it is required when tenant is created without a lead', jsonSchema: (0, openapi_v3_1.getJsonSchema)(contact_model_1.Contact, { exclude: ['tenantId', 'id'], }), }), tslib_1.__metadata("design:type", Object) ], TenantOnboardDTO.prototype, "contact", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, }), tslib_1.__metadata("design:type", String) ], TenantOnboardDTO.prototype, "name", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', description: 'address of the tenant owners', }), tslib_1.__metadata("design:type", String) ], TenantOnboardDTO.prototype, "address", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', description: 'city of the tenant owner', }), tslib_1.__metadata("design:type", String) ], TenantOnboardDTO.prototype, "city", void 0); tslib_1.__decorate([ (0, repository_1.property)({ description: 'state of the tenant owner', type: 'string', }), tslib_1.__metadata("design:type", String) ], TenantOnboardDTO.prototype, "state", void 0); tslib_1.__decorate([ (0, repository_1.property)({ description: 'zip code of the tenant owner', type: 'string', }), tslib_1.__metadata("design:type", String) ], TenantOnboardDTO.prototype, "zip", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', description: 'country of the tenant owner', }), tslib_1.__metadata("design:type", String) ], TenantOnboardDTO.prototype, "country", void 0); tslib_1.__decorate([ (0, repository_1.property)({ type: 'string', required: true, jsonSchema: { pattern: '^[a-z0-9]+$', maxLength: 10, }, }), tslib_1.__metadata("design:type", String) ], TenantOnboardDTO.prototype, "key", void 0); tslib_1.__decorate([ (0, repository_1.property)({ required: true, jsonSchema: { type: 'array', uniqueItems: true, items: { type: 'string', format: 'hostname', }, }, }), tslib_1.__metadata("design:type", Array) ], TenantOnboardDTO.prototype, "domains", void 0); exports.TenantOnboardDTO = TenantOnboardDTO = tslib_1.__decorate([ (0, repository_1.model)({ description: 'model describing payload used to create and onboard a tenant', }), tslib_1.__metadata("design:paramtypes", [Object]) ], TenantOnboardDTO); //# sourceMappingURL=tenant-onboard-dto.model.js.map