@twin.org/api-tenant-processor
Version:
API Tenant Processor for converting and api key to a tenant id.
45 lines • 1.09 kB
JavaScript
// Copyright 2025 IOTA Stiftung.
// SPDX-License-Identifier: Apache-2.0.
import { entity, property } from "@twin.org/entity";
/**
* Class defining the storage for node tenants.
*/
let Tenant = class Tenant {
/**
* The unique identifier for the tenant.
*/
id;
/**
* The api key for the tenant.
*/
apiKey;
/**
* The label of the tenant.
*/
label;
/**
* The date the tenant was created.
*/
dateCreated;
};
__decorate([
property({ type: "string", isPrimary: true }),
__metadata("design:type", String)
], Tenant.prototype, "id", void 0);
__decorate([
property({ type: "string" }),
__metadata("design:type", String)
], Tenant.prototype, "apiKey", void 0);
__decorate([
property({ type: "string" }),
__metadata("design:type", String)
], Tenant.prototype, "label", void 0);
__decorate([
property({ type: "string" }),
__metadata("design:type", String)
], Tenant.prototype, "dateCreated", void 0);
Tenant = __decorate([
entity()
], Tenant);
export { Tenant };
//# sourceMappingURL=tenant.js.map