{"version":3,"file":"OpenBadgesServiceDescriptionRecord.mjs","names":[],"sources":["../../src/repository/OpenBadgesServiceDescriptionRecord.ts"],"sourcesContent":["import type { TagsBase } from '@credo-ts/core'\nimport { BaseRecord, utils } from '@credo-ts/core'\n\nexport type DefaultOpenBadgesServiceDescriptionTags = {\n  discoveryUrl: string\n}\n\nexport type OpenBadgesServiceDescriptionRecordProps = {\n  id?: string\n  createdAt?: Date\n  updatedAt?: Date\n  discoveryUrl: string\n  serviceDescription: unknown\n  tags?: TagsBase\n}\n\nexport class OpenBadgesServiceDescriptionRecord\n  extends BaseRecord<DefaultOpenBadgesServiceDescriptionTags, TagsBase>\n  implements OpenBadgesServiceDescriptionRecordProps\n{\n  public discoveryUrl!: string\n  public serviceDescription!: unknown\n\n  public static readonly type = 'OpenBadgesServiceDescriptionRecord'\n  public readonly type = OpenBadgesServiceDescriptionRecord.type\n\n  public constructor(props: OpenBadgesServiceDescriptionRecordProps) {\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.discoveryUrl = props.discoveryUrl\n    this.serviceDescription = props.serviceDescription\n    this._tags = props.tags ?? {}\n  }\n\n  public getTags(): DefaultOpenBadgesServiceDescriptionTags {\n    return { ...this._tags, discoveryUrl: this.discoveryUrl }\n  }\n}\n\n\n"],"mappings":";;;AAgBA,IAAa,qCAAb,MAAa,2CACH,WAEV;CAOE,AAAO,YAAY,OAAgD;AACjE,SAAO;OAHO,OAAO,mCAAmC;AAIxD,OAAK,KAAK,MAAM,MAAM,MAAM,MAAM;AAClC,OAAK,YAAY,MAAM,6BAAa,IAAI,MAAM;AAC9C,OAAK,YAAY,MAAM,6BAAa,IAAI,MAAM;AAC9C,OAAK,eAAe,MAAM;AAC1B,OAAK,qBAAqB,MAAM;AAChC,OAAK,QAAQ,MAAM,QAAQ,EAAE;;CAG/B,AAAO,UAAmD;AACxD,SAAO;GAAE,GAAG,KAAK;GAAO,cAAc,KAAK;GAAc;;;mCAdpC,OAAO"}