{"version":3,"file":"invalidate-client-cache.mjs","names":[],"sources":["../../../../src/services/documents/helpers/invalidate-client-cache.ts"],"sourcesContent":["import cacheKeys from \"../../../libs/kv/cache-keys.js\";\nimport { invalidateHttpCacheTags } from \"../../../libs/kv/http-cache.js\";\nimport type { ServiceContext } from \"../../../utils/services/types.js\";\n\n/**\n * Invalidate cached client document responses for a collection.\n */\nconst invalidateClientDocumentCache = async (\n\tcontext: ServiceContext,\n\tcollectionKey: string,\n) => {\n\tawait invalidateHttpCacheTags(context, [\n\t\tcacheKeys.http.tags.clientDocuments,\n\t\tcacheKeys.http.tags.clientDocumentsCollection(collectionKey),\n\t]);\n};\n\nexport default invalidateClientDocumentCache;\n"],"mappings":"yHAOA,MAAM,EAAgC,MACrC,EACA,IACI,CACJ,MAAM,EAAwB,EAAS,CACtC,EAAU,KAAK,KAAK,gBACpB,EAAU,KAAK,KAAK,0BAA0B,CAAa,CAC5D,CAAC,CACF"}