UNPKG

@sphereon/ssi-sdk.data-store

Version:

57 lines 3.08 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Oid4vcStateEntity = void 0; const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config"); const typeorm_1 = require("typeorm"); let Oid4vcStateEntity = class Oid4vcStateEntity extends typeorm_1.BaseEntity { }; exports.Oid4vcStateEntity = Oid4vcStateEntity; __decorate([ (0, typeorm_1.PrimaryColumn)({ name: 'id', type: 'varchar', nullable: false }), __metadata("design:type", String) ], Oid4vcStateEntity.prototype, "id", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'lookup_ids', type: 'array', nullable: true }), __metadata("design:type", Array) ], Oid4vcStateEntity.prototype, "lookups", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'state_id', type: 'varchar', nullable: true }), __metadata("design:type", String) ], Oid4vcStateEntity.prototype, "stateId", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'correlation_id', type: 'varchar', nullable: true }), __metadata("design:type", String) ], Oid4vcStateEntity.prototype, "correlationId", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'state', type: 'json', nullable: false }), __metadata("design:type", Object) ], Oid4vcStateEntity.prototype, "state", void 0); __decorate([ (0, typeorm_1.CreateDateColumn)({ name: 'created_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }), __metadata("design:type", Date) ], Oid4vcStateEntity.prototype, "createdAt", void 0); __decorate([ (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', nullable: false, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }), __metadata("design:type", Date) ], Oid4vcStateEntity.prototype, "updatedAt", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'expires_at', nullable: true, type: (0, ssi_sdk_agent_config_1.typeOrmDateTime)() }), __metadata("design:type", Date) ], Oid4vcStateEntity.prototype, "expiresAt", void 0); __decorate([ (0, typeorm_1.Column)({ name: 'tenant_id', type: 'varchar', nullable: true }), __metadata("design:type", String) ], Oid4vcStateEntity.prototype, "tenantId", void 0); exports.Oid4vcStateEntity = Oid4vcStateEntity = __decorate([ (0, typeorm_1.Entity)('Oid4vcStateEntity') ], Oid4vcStateEntity); //# sourceMappingURL=Oid4vcStateEntity.js.map