{"version":3,"file":"asset.fixture.cjs","sources":["../../../../../src/schema/public/asset/asset.fixture.ts"],"sourcesContent":["import { keysToCamelCase } from \"zod-to-camel-case\";\n\nimport type { Asset, AssetCamel } from \"@/schema/public/asset/asset.schema\";\n\nexport const assetFixture = ({\n  overrides = {},\n}: {\n  overrides?: Partial<Asset>;\n} = {}): Asset => ({\n  asset_id: 1,\n  asset_uid: \"asset-uid-123\",\n  _state: \"new\",\n  title: \"Sample Asset\",\n  description: \"This is a sample asset for testing.\",\n  asset_type: \"worksheet\",\n  url: \"https://example.com/asset.pdf\",\n  asset_object: {\n    pdf: {\n      bucket_name: \"sample-bucket\",\n      bucket_path: \"path/to/asset.pdf\",\n    },\n    google_drive: {\n      id: \"google-drive-id-123\",\n      url: \"https://drive.google.com/file/d/google-drive-id-123/view\",\n    },\n  },\n  tpc_media_ids: [101, 102],\n  tpc_works_ids: [201, 202],\n  updated_at: \"2024-02-28T08:09:20.247619+00:00\",\n  created_at: \"2024-02-28T08:09:20.247619+00:00\",\n  ...overrides,\n});\n\nexport const assetFixtureCamel = ({\n  overrides = {},\n}: {\n  overrides?: Partial<AssetCamel>;\n} = {}): AssetCamel => ({\n  ...keysToCamelCase(assetFixture()),\n  ...overrides,\n});\n\n// Backwards compatibility exports\nexport const assetsFixture = assetFixture;\nexport const assetsFixtureCamel = assetFixtureCamel;\n"],"names":["assetFixture","overrides","asset_id","asset_uid","_state","title","description","asset_type","url","asset_object","pdf","bucket_name","bucket_path","google_drive","id","tpc_media_ids","tpc_works_ids","updated_at","created_at","assetFixtureCamel","keysToCamelCase","assetsFixture","assetsFixtureCamel"],"mappings":"gDAIO,MAAMA,EAAe,EAC1BC,YAAY,CAAA,GAGV,CAAA,KAAE,CACJC,SAAU,EACVC,UAAW,gBACXC,OAAQ,MACRC,MAAO,eACPC,YAAa,sCACbC,WAAY,YACZC,IAAK,gCACLC,aAAc,CACZC,IAAK,CACHC,YAAa,gBACbC,YAAa,qBAEfC,aAAc,CACZC,GAAI,sBACJN,IAAK,6DAGTO,cAAe,CAAC,IAAK,KACrBC,cAAe,CAAC,IAAK,KACrBC,WAAY,mCACZC,WAAY,sCACTjB,IAGQkB,EAAoB,EAC/BlB,YAAY,CAAA,GAGV,CAAA,KAAE,IACDmB,EAAAA,gBAAgBpB,QAChBC,IAIQoB,EAAgBrB,EAChBsB,EAAqBH"}