{"version":3,"file":"ReadSuccess.mjs","names":[],"sources":["../../../src/results/success/ReadSuccess.ts"],"sourcesContent":["import type { Resource } from \"../../Resource\";\nimport { ResourceSuccess } from \"./SuccessResult\";\n\n/**\n * Indicates that the request to read a resource was a success\n */\nexport abstract class ReadSuccess<\n  ResourceType extends Resource,\n> extends ResourceSuccess<ResourceType> {\n  /**\n   * True if the resource was recalled from local memory rather than a recent\n   * request\n   */\n  recalledFromMemory: boolean;\n\n  constructor(resource: ResourceType, recalledFromMemory: boolean) {\n    super(resource);\n    this.recalledFromMemory = recalledFromMemory;\n  }\n}\n\n/**\n * Indicates that the read request was successful, but no resource exists at\n * the provided URI.\n */\nexport class AbsentReadSuccess<\n  ResourceType extends Resource,\n> extends ReadSuccess<ResourceType> {\n  type = \"absentReadSuccess\" as const;\n}\n"],"mappings":";;;;;AAMA,IAAsB,cAAtB,cAEU,gBAA8B;CAOtC,YAAY,UAAwB,oBAA6B;AAC/D,QAAM,SAAS;AACf,OAAK,qBAAqB;;;;;;;AAQ9B,IAAa,oBAAb,cAEU,YAA0B;;;AAClC,OAAA,OAAO"}