{"version":3,"file":"OpenBadgesRevocationCacheRecord.mjs","names":[],"sources":["../../src/repository/OpenBadgesRevocationCacheRecord.ts"],"sourcesContent":["import type { TagsBase } from '@credo-ts/core'\nimport { BaseRecord, utils } from '@credo-ts/core'\n\nexport type DefaultOpenBadgesRevocationCacheTags = {\n  statusListUrl: string\n}\n\nexport type OpenBadgesRevocationCacheRecordProps = {\n  id?: string\n  createdAt?: Date\n  updatedAt?: Date\n  statusListUrl: string\n  lastUpdatedAt?: Date\n  bitstringBase64?: string\n  tags?: TagsBase\n}\n\nexport class OpenBadgesRevocationCacheRecord\n  extends BaseRecord<DefaultOpenBadgesRevocationCacheTags, TagsBase>\n  implements OpenBadgesRevocationCacheRecordProps\n{\n  public statusListUrl!: string\n  public lastUpdatedAt?: Date\n  public bitstringBase64?: string\n\n  public static readonly type = 'OpenBadgesRevocationCacheRecord'\n  public readonly type = OpenBadgesRevocationCacheRecord.type\n\n  public constructor(props: OpenBadgesRevocationCacheRecordProps) {\n    super()\n    this.id = props.id ?? utils.uuid()\n    this.createdAt = props.createdAt ?? new Date()\n    this.updatedAt = props.updatedAt ?? new Date()\n    this.statusListUrl = props.statusListUrl\n    this.lastUpdatedAt = props.lastUpdatedAt\n    this.bitstringBase64 = props.bitstringBase64\n    this._tags = props.tags ?? {}\n  }\n\n  public getTags(): DefaultOpenBadgesRevocationCacheTags {\n    return { ...this._tags, statusListUrl: this.statusListUrl }\n  }\n}\n\n\n"],"mappings":";;;AAiBA,IAAa,kCAAb,MAAa,wCACH,WAEV;CAQE,AAAO,YAAY,OAA6C;AAC9D,SAAO;OAHO,OAAO,gCAAgC;AAIrD,OAAK,KAAK,MAAM,MAAM,MAAM,MAAM;AAClC,OAAK,YAAY,MAAM,6BAAa,IAAI,MAAM;AAC9C,OAAK,YAAY,MAAM,6BAAa,IAAI,MAAM;AAC9C,OAAK,gBAAgB,MAAM;AAC3B,OAAK,gBAAgB,MAAM;AAC3B,OAAK,kBAAkB,MAAM;AAC7B,OAAK,QAAQ,MAAM,QAAQ,EAAE;;CAG/B,AAAO,UAAgD;AACrD,SAAO;GAAE,GAAG,KAAK;GAAO,eAAe,KAAK;GAAe;;;gCAftC,OAAO"}