@burdenoff/microfe-export 2026.1125.1 → 2026.1127.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/export/hooks/useExportQueries.d.ts +12 -12
- package/dist/export/hooks/useExportQueries.js +149 -155
- package/dist/export/hooks/useExportQueries.js.map +1 -1
- package/dist/export/providers/ExportProvider.js +37 -37
- package/dist/export/utils/cn.js +2 -2
- package/dist/export/workspace-v2/NewDownloadDialog.js +1 -1
- package/dist/export/workspace-v2/NewDownloadDialog.js.map +1 -1
- package/dist/export/workspace-v2/SetupsList.js +0 -1
- package/dist/export/workspace-v2/SetupsList.js.map +1 -1
- package/dist/export/workspace-v2/useExportAccess.d.ts +2 -2
- package/dist/export/workspace-v2/useExportAccess.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +0 -42
- package/dist/generated/wspace-operations.js +6 -16
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +4 -1
- package/dist/export/index.js +0 -5
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +0 -23
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +0 -1
- package/dist/node_modules/@apollo/client/errors/utils.js +0 -15
- package/dist/node_modules/@apollo/client/errors/utils.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js +0 -51
- package/dist/node_modules/@apollo/client/link/core/ApolloLink.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js +0 -40
- package/dist/node_modules/@apollo/client/link/subscriptions/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js +0 -33
- package/dist/node_modules/@apollo/client/link/utils/createOperation.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js +0 -5
- package/dist/node_modules/@apollo/client/utilities/caching/sizes.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js +0 -15
- package/dist/node_modules/@apollo/client/utilities/graphql/print.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js +0 -18
- package/dist/node_modules/@apollo/client/utilities/internal/caches.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js +0 -20
- package/dist/node_modules/@apollo/client/utilities/internal/checkDocument.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js +0 -16
- package/dist/node_modules/@apollo/client/utilities/internal/getMainDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/getMemoryInternals.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationDefinition.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js +0 -7
- package/dist/node_modules/@apollo/client/utilities/internal/getOperationName.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js +0 -8
- package/dist/node_modules/@apollo/client/utilities/internal/globals/global.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/globals/maybe.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js +0 -7
- package/dist/node_modules/@apollo/client/utilities/internal/isNonNullObject.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/makeUniqueId.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js +0 -22
- package/dist/node_modules/@apollo/client/utilities/internal/memoize.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js +0 -9
- package/dist/node_modules/@apollo/client/utilities/internal/stringifyForDisplay.js.map +0 -1
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js +0 -56
- package/dist/node_modules/@apollo/client/utilities/invariant/index.js.map +0 -1
- package/dist/node_modules/@apollo/client/version.js +0 -5
- package/dist/node_modules/@apollo/client/version.js.map +0 -1
- package/dist/node_modules/@wry/caches/lib/weak.js +0 -66
- package/dist/node_modules/@wry/caches/lib/weak.js.map +0 -1
- package/dist/node_modules/@wry/trie/lib/index.js +0 -52
- package/dist/node_modules/@wry/trie/lib/index.js.map +0 -1
- package/dist/node_modules/clsx/dist/clsx.js +0 -19
- package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/client.js +0 -279
- package/dist/node_modules/graphql-ws/dist/client.js.map +0 -1
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js +0 -61
- package/dist/node_modules/graphql-ws/dist/common-CGW11Fyb.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +0 -20
- package/dist/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -77
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -116
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -96
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +0 -11
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -15
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -12
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -10
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -10
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -21
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -5
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -12
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -13
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1778
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.js +0 -51
- package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetupsList.js","names":["setupKey","setup","NO_LINKS","SetupsList","tr","useTr","ageText","useAgeText","now","useListClock","run","useOnceAtATime","actions","page","shown","pageSlice","data","setupsList","createLocked","access","createReason","kindsReady","kinds","runLock","canRunSetup","ListView","EmptyState","Archive","LockedButton","Plus","Notice","ListPager","DataRows","RowTile","ageOf","lock","Play","ActionMenu","SlidersHorizontal","Pencil","Trash2"],"sources":["../../../src/export/workspace-v2/SetupsList.tsx"],"sourcesContent":["/**\n * The Saved setups tab (BOFF-15822): one row per setup (an export template)\n * with what it contains and its file type, \"Run now\", and ⋯ to start a\n * download from it with changes, or to delete it.\n *\n * The service keeps no schedule and no \"whose data\" on a setup: Run now\n * downloads the person's own data; for the whole workspace, an admin opens the\n * setup in New download and picks it there. Run now sends only the setup's\n * kinds of data that are offered here, and is locked when none are.\n */\nimport {\n Archive,\n Pencil,\n Play,\n Plus,\n SlidersHorizontal,\n Trash2,\n} from \"lucide-react\";\nimport {\n ActionMenu,\n DataRows,\n EmptyState,\n ListPager,\n ListView,\n LockedButton,\n Notice,\n pageSlice,\n} from \"@burdenoff/fe-libs/ui\";\nimport { useTr } from \"../hooks/useTr\";\nimport type { ExportTemplate } from \"../types\";\nimport { ageOf } from \"./downloadsModel\";\nimport { canRunSetup } from \"./newDownloadModel\";\nimport { RowTile, useAgeText } from \"./DownloadCells\";\nimport type { DownloadActions } from \"./useDownloadActions\";\nimport { SETUPS_LIMIT, type SavedSetups } from \"./useDownloadsData\";\nimport type { DownloadsPageState } from \"./useDownloadsPage\";\nimport type { ExportAccess } from \"./useExportAccess\";\nimport { useListClock } from \"./useListClock\";\nimport { useOnceAtATime } from \"./useOnceAtATime\";\nimport type { OfferedKinds } from \"./useOfferedKinds\";\n\nconst setupKey = (setup: ExportTemplate) => setup.id;\n\n/** Setups have no download links: the list clock only ticks. */\nconst NO_LINKS: readonly [] = [];\n\nexport interface SetupsListProps {\n page: DownloadsPageState;\n data: SavedSetups;\n kinds: OfferedKinds;\n access: ExportAccess;\n actions: DownloadActions;\n}\n\nexport function SetupsList({\n page,\n data,\n kinds,\n access,\n actions,\n}: SetupsListProps) {\n const tr = useTr();\n const ageText = useAgeText();\n // Moves on every minute, so \"Changed\" ages stay true while the tab is open.\n const now = useListClock(NO_LINKS);\n // Once at a time per setup: a second press makes no second download.\n const run = useOnceAtATime(actions.runSetup, setupKey);\n const { setupsList } = page;\n const shown = pageSlice(data.setups, setupsList.page, setupsList.pageSize);\n const createLocked = access.settled && !access.canCreate;\n const createReason = tr(\n \"export.v2.new.createLocked\",\n \"Starting a download needs permission to export in this workspace. Ask a workspace admin.\",\n );\n // Run now needs the kinds offered here: it waits for them, and says when\n // they couldn't load or when none of a setup's kinds is offered.\n const kindsReady = !kinds.loading && !kinds.error;\n const runLock = (setup: ExportTemplate): string | null => {\n if (createLocked) return createReason;\n if (kinds.error)\n return tr(\n \"export.v2.setups.kindsFailed\",\n \"Couldn’t load what can be downloaded here. Try again in a moment.\",\n );\n if (kindsReady && !canRunSetup(setup, kinds.isOffered))\n return tr(\n \"export.v2.setups.nothingHere\",\n \"Nothing in this setup can be downloaded here: its kinds of data belong to another product, or are switched off.\",\n );\n return null;\n };\n\n return (\n <ListView\n count={data.setups.length}\n loading={data.loading}\n error={data.error ?? undefined}\n onRetry={data.refresh}\n errorTitle={tr(\n \"export.v2.setups.failed\",\n \"Couldn’t load your saved setups\",\n )}\n errorDetails={data.error?.message || undefined}\n summary={\n data.setups.length === 1\n ? tr(\"export.v2.setups.countOne\", \"1 saved setup\")\n : tr(\"export.v2.setups.count\", \"{{count}} saved setups\", {\n count: data.setups.length,\n })\n }\n empty={\n <EmptyState\n size=\"page\"\n illustration=\"documents\"\n icon={<Archive aria-hidden=\"true\" />}\n title={tr(\"export.v2.setups.emptyTitle\", \"No saved setups\")}\n description={tr(\n \"export.v2.setups.emptyDescription\",\n \"When you make a download, turn on “Save as a setup” to run it again in one click.\",\n )}\n action={\n <LockedButton\n type=\"button\"\n locked={createLocked}\n reason={createReason}\n icon={Plus}\n onClick={() => page.openNew()}\n >\n {tr(\"export.v2.newDownload\", \"New download\")}\n </LockedButton>\n }\n />\n }\n summaryEnd={\n (data.total ?? 0) > SETUPS_LIMIT ? (\n <Notice tone=\"info\">\n {tr(\n \"export.v2.setups.limit\",\n \"Showing the first {{count}} saved setups.\",\n {\n count: SETUPS_LIMIT,\n },\n )}\n </Notice>\n ) : null\n }\n pager={<ListPager list={setupsList} total={data.setups.length} />}\n >\n <DataRows<ExportTemplate>\n label={tr(\"export.v2.setups.label\", \"Saved setups\")}\n items={shown}\n getId={(setup) => setup.id}\n lead={{\n header: tr(\"export.v2.setups.setup\", \"Setup\"),\n media: () => <RowTile icon={Archive} />,\n title: (setup) => setup.name,\n subtitle: (setup) => setup.description || undefined,\n }}\n columns={[\n {\n id: \"contains\",\n header: tr(\"export.v2.setups.contains\", \"Contains\"),\n width: \"minmax(0,1.4fr)\",\n cell: (setup) => setup.entityTypes.map(kinds.label).join(\", \"),\n },\n {\n id: \"file\",\n header: tr(\"export.v2.list.file\", \"File\"),\n width: \"90px\",\n cell: (setup) => setup.format,\n },\n {\n id: \"changed\",\n header: tr(\"export.v2.setups.changed\", \"Changed\"),\n width: \"130px\",\n cell: (setup) => ageText(ageOf(setup.updatedAt, now)),\n },\n ]}\n actions={(setup) => {\n const lock = runLock(setup);\n return (\n <span className=\"flex items-center justify-end gap-1\">\n <LockedButton\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n locked={lock !== null}\n reason={lock ?? createReason}\n disabled={(lock === null && !kindsReady) || run.busy(setup)}\n aria-busy={run.busy(setup) || undefined}\n icon={Play}\n onClick={() => run.start(setup)}\n aria-label={tr(\"export.v2.setups.runAria\", \"Run {{name}} now\", {\n name: setup.name,\n })}\n >\n {tr(\"export.v2.setups.run\", \"Run now\")}\n </LockedButton>\n <ActionMenu\n placement=\"row\"\n label={tr(\"export.v2.row.menu\", \"Actions for {{name}}\", {\n name: setup.name,\n })}\n items={[\n {\n id: \"open-new\",\n label: tr(\"export.v2.setups.openNew\", \"Run with changes…\"),\n description: tr(\n \"export.v2.setups.openNewHelp\",\n \"Opens New download with this setup filled in\",\n ),\n icon: SlidersHorizontal,\n locked: createLocked,\n lockedReason: createReason,\n onSelect: () => page.openNew(setup.id),\n },\n {\n id: \"edit\",\n label: tr(\"export.v2.setups.edit\", \"Edit…\"),\n icon: Pencil,\n locked: access.settled && !access.canSetups,\n lockedReason: tr(\n \"export.v2.new.setupLocked\",\n \"Saving setups needs permission to manage them in this workspace. Ask a workspace admin.\",\n ),\n onSelect: () => page.openSetup(setup.id),\n },\n {\n id: \"delete\",\n label: tr(\"export.v2.setups.delete\", \"Delete setup…\"),\n icon: Trash2,\n danger: true,\n separatorBefore: true,\n locked: access.settled && !access.canSetups,\n lockedReason: tr(\n \"export.v2.new.setupLocked\",\n \"Saving setups needs permission to manage them in this workspace. Ask a workspace admin.\",\n ),\n onSelect: () => void actions.removeSetup(setup),\n },\n ]}\n />\n </span>\n );\n }}\n />\n </ListView>\n );\n}\n"],"mappings":";;;;;;;;;;;AAyCA,IAAMA,KAAY,MAA0BC,EAAM,IAG5CC,IAAwB,CAAC;AAU/B,SAAgBC,EAAW,EACzB,SACA,SACA,UACA,WACA,cACkB;CAClB,IAAMC,IAAKC,EAAM,GACXC,IAAUC,EAAW,GAErBC,IAAMC,EAAaP,CAAQ,GAE3BQ,IAAMC,EAAeC,EAAQ,UAAUZ,CAAQ,GAC/C,EAAE,kBAAea,GACjBC,IAAQC,EAAUC,EAAK,QAAQC,EAAW,MAAMA,EAAW,QAAQ,GACnEC,IAAeC,EAAO,WAAW,CAACA,EAAO,WACzCC,IAAehB,EACnB,8BACA,0FACF,GAGMiB,IAAa,CAACC,EAAM,WAAW,CAACA,EAAM,OACtCC,KAAW,MACXL,IAAqBE,IACrBE,EAAM,QACDlB,EACL,gCACA,mEACF,IACEiB,KAAc,CAACG,EAAYvB,GAAOqB,EAAM,SAAS,IAC5ClB,EACL,gCACA,iHACF,IACK;CAGT,OACE,kBAACqB,GAAD;EACE,OAAOT,EAAK,OAAO;EACnB,SAASA,EAAK;EACd,OAAOA,EAAK,SAAS,KAAA;EACrB,SAASA,EAAK;EACd,YAAYZ,EACV,2BACA,iCACF;EACA,cAAcY,EAAK,OAAO,WAAW,KAAA;EACrC,SACEA,EAAK,OAAO,WAAW,IACnBZ,EAAG,6BAA6B,eAAe,IAC/CA,EAAG,0BAA0B,0BAA0B,EACrD,OAAOY,EAAK,OAAO,OACrB,CAAC;EAEP,OACE,kBAACU,GAAD;GACE,MAAK;GACL,cAAa;GACb,MAAM,kBAACC,GAAD,EAAS,eAAY,OAAQ,CAAA;GACnC,OAAOvB,EAAG,+BAA+B,iBAAiB;GAC1D,aAAaA,EACX,qCACA,mFACF;GACA,QACE,kBAACwB,GAAD;IACE,MAAK;IACL,QAAQV;IACR,QAAQE;IACR,MAAMS;IACN,eAAehB,EAAK,QAAQ;IAE3B,UAAAT,EAAG,yBAAyB,cAAc;GAC/B,CAAA;EAEjB,CAAA;EAEH,aACGY,EAAK,SAAS,KAAA,MACb,kBAACc,GAAD;GAAQ,MAAK;GACV,UAAA1B,EACC,0BACA,6CACA,EACE,OAAA,IACF,CACF;EACM,CAAA,IACN;EAEN,OAAO,kBAAC2B,GAAD;GAAW,MAAMd;GAAY,OAAOD,EAAK,OAAO;EAAS,CAAA;EAEhE,UAAA,kBAACgB,GAAD;GACE,OAAO5B,EAAG,0BAA0B,cAAc;GAClD,OAAOU;GACP,QAAQ,MAAUb,EAAM;GACxB,MAAM;IACJ,QAAQG,EAAG,0BAA0B,OAAO;IAC5C,aAAa,kBAAC6B,GAAD,EAAS,MAAMN,EAAU,CAAA;IACtC,QAAQ,MAAU1B,EAAM;IACxB,WAAW,MAAUA,EAAM,eAAe,KAAA;GAC5C;GACA,SAAS;IACP;KACE,IAAI;KACJ,QAAQG,EAAG,6BAA6B,UAAU;KAClD,OAAO;KACP,OAAO,MAAUH,EAAM,YAAY,IAAIqB,EAAM,KAAK,CAAC,CAAC,KAAK,IAAI;IAC/D;IACA;KACE,IAAI;KACJ,QAAQlB,EAAG,uBAAuB,MAAM;KACxC,OAAO;KACP,OAAO,MAAUH,EAAM;IACzB;IACA;KACE,IAAI;KACJ,QAAQG,EAAG,4BAA4B,SAAS;KAChD,OAAO;KACP,OAAO,MAAUE,EAAQ4B,EAAMjC,EAAM,WAAWO,CAAG,CAAC;IACtD;GACF;GACA,UAAU,MAAU;IAClB,IAAM2B,IAAOZ,EAAQtB,CAAK;IAC1B,OACE,kBAAC,QAAD;KAAM,WAAU;KAAhB,UAAA,CACE,kBAAC2B,GAAD;MACE,MAAK;MACL,MAAK;MACL,SAAQ;MACR,QAAQO,MAAS;MACjB,QAAQA,KAAQf;MAChB,UAAWe,MAAS,QAAQ,CAACd,KAAeX,EAAI,KAAKT,CAAK;MAC1D,aAAWS,EAAI,KAAKT,CAAK,KAAK,KAAA;MAC9B,MAAMmC;MACN,eAAe1B,EAAI,MAAMT,CAAK;MAC9B,cAAYG,EAAG,4BAA4B,oBAAoB,EAC7D,MAAMH,EAAM,KACd,CAAC;MAEA,UAAAG,EAAG,wBAAwB,SAAS;KACzB,CAAA,GACd,kBAACiC,GAAD;MACE,WAAU;MACV,OAAOjC,EAAG,sBAAsB,wBAAwB,EACtD,MAAMH,EAAM,KACd,CAAC;MACD,OAAO;OACL;QACE,IAAI;QACJ,OAAOG,EAAG,4BAA4B,mBAAmB;QACzD,aAAaA,EACX,gCACA,8CACF;QACA,MAAMkC;QACN,QAAQpB;QACR,cAAcE;QACd,gBAAgBP,EAAK,QAAQZ,EAAM,EAAE;OACvC;OACA;QACE,IAAI;QACJ,OAAOG,EAAG,yBAAyB,OAAO;QAC1C,MAAMmC;QACN,QAAQpB,EAAO,WAAW,CAACA,EAAO;QAClC,cAAcf,EACZ,6BACA,yFACF;QACA,gBAAgBS,EAAK,UAAUZ,EAAM,EAAE;OACzC;OACA;QACE,IAAI;QACJ,OAAOG,EAAG,2BAA2B,eAAe;QACpD,MAAMoC;QACN,QAAQ;QACR,iBAAiB;QACjB,QAAQrB,EAAO,WAAW,CAACA,EAAO;QAClC,cAAcf,EACZ,6BACA,yFACF;QACA,gBAAgB,KAAKQ,EAAQ,YAAYX,CAAK;OAChD;MACF;KACD,CAAA,CACG;;GAEV;EACD,CAAA;CACO,CAAA;AAEd"}
|
|
1
|
+
{"version":3,"file":"SetupsList.js","names":["setupKey","setup","NO_LINKS","SetupsList","tr","useTr","ageText","useAgeText","now","useListClock","run","useOnceAtATime","actions","page","shown","pageSlice","data","setupsList","createLocked","access","createReason","kindsReady","kinds","runLock","canRunSetup","ListView","EmptyState","Archive","LockedButton","Plus","Notice","ListPager","DataRows","RowTile","ageOf","lock","Play","ActionMenu","SlidersHorizontal","Pencil","Trash2"],"sources":["../../../src/export/workspace-v2/SetupsList.tsx"],"sourcesContent":["/**\n * The Saved setups tab (BOFF-15822): one row per setup (an export template)\n * with what it contains and its file type, \"Run now\", and ⋯ to start a\n * download from it with changes, or to delete it.\n *\n * The service keeps no schedule and no \"whose data\" on a setup: Run now\n * downloads the person's own data; for the whole workspace, an admin opens the\n * setup in New download and picks it there. Run now sends only the setup's\n * kinds of data that are offered here, and is locked when none are.\n */\nimport {\n Archive,\n Pencil,\n Play,\n Plus,\n SlidersHorizontal,\n Trash2,\n} from \"lucide-react\";\nimport {\n ActionMenu,\n DataRows,\n EmptyState,\n ListPager,\n ListView,\n LockedButton,\n Notice,\n pageSlice,\n} from \"@burdenoff/fe-libs/ui\";\nimport { useTr } from \"../hooks/useTr\";\nimport type { ExportTemplate } from \"../types\";\nimport { ageOf } from \"./downloadsModel\";\nimport { canRunSetup } from \"./newDownloadModel\";\nimport { RowTile, useAgeText } from \"./DownloadCells\";\nimport type { DownloadActions } from \"./useDownloadActions\";\nimport { SETUPS_LIMIT, type SavedSetups } from \"./useDownloadsData\";\nimport type { DownloadsPageState } from \"./useDownloadsPage\";\nimport type { ExportAccess } from \"./useExportAccess\";\nimport { useListClock } from \"./useListClock\";\nimport { useOnceAtATime } from \"./useOnceAtATime\";\nimport type { OfferedKinds } from \"./useOfferedKinds\";\n\nconst setupKey = (setup: ExportTemplate) => setup.id;\n\n/** Setups have no download links: the list clock only ticks. */\nconst NO_LINKS: readonly [] = [];\n\nexport interface SetupsListProps {\n page: DownloadsPageState;\n data: SavedSetups;\n kinds: OfferedKinds;\n access: ExportAccess;\n actions: DownloadActions;\n}\n\nexport function SetupsList({\n page,\n data,\n kinds,\n access,\n actions,\n}: SetupsListProps) {\n const tr = useTr();\n const ageText = useAgeText();\n // Moves on every minute, so \"Changed\" ages stay true while the tab is open.\n const now = useListClock(NO_LINKS);\n // Once at a time per setup: a second press makes no second download.\n const run = useOnceAtATime(actions.runSetup, setupKey);\n const { setupsList } = page;\n const shown = pageSlice(data.setups, setupsList.page, setupsList.pageSize);\n const createLocked = access.settled && !access.canCreate;\n const createReason = tr(\n \"export.v2.new.createLocked\",\n \"Starting a download needs permission to export in this workspace. Ask a workspace admin.\",\n );\n // Run now needs the kinds offered here: it waits for them, and says when\n // they couldn't load or when none of a setup's kinds is offered.\n const kindsReady = !kinds.loading && !kinds.error;\n const runLock = (setup: ExportTemplate): string | null => {\n if (createLocked) return createReason;\n if (kinds.error)\n return tr(\n \"export.v2.setups.kindsFailed\",\n \"Couldn’t load what can be downloaded here. Try again in a moment.\",\n );\n if (kindsReady && !canRunSetup(setup, kinds.isOffered))\n return tr(\n \"export.v2.setups.nothingHere\",\n \"Nothing in this setup can be downloaded here: its kinds of data belong to another product, or are switched off.\",\n );\n return null;\n };\n\n return (\n <ListView\n count={data.setups.length}\n loading={data.loading}\n error={data.error ?? undefined}\n onRetry={data.refresh}\n errorTitle={tr(\n \"export.v2.setups.failed\",\n \"Couldn’t load your saved setups\",\n )}\n errorDetails={data.error?.message || undefined}\n summary={\n data.setups.length === 1\n ? tr(\"export.v2.setups.countOne\", \"1 saved setup\")\n : tr(\"export.v2.setups.count\", \"{{count}} saved setups\", {\n count: data.setups.length,\n })\n }\n empty={\n <EmptyState\n size=\"page\"\n illustration=\"documents\"\n icon={<Archive aria-hidden=\"true\" />}\n title={tr(\"export.v2.setups.emptyTitle\", \"No saved setups\")}\n description={tr(\n \"export.v2.setups.emptyDescription\",\n \"When you make a download, turn on “Save as a setup” to run it again in one click.\",\n )}\n action={\n <LockedButton\n type=\"button\"\n locked={createLocked}\n reason={createReason}\n icon={Plus}\n onClick={() => page.openNew()}\n >\n {tr(\"export.v2.newDownload\", \"New download\")}\n </LockedButton>\n }\n />\n }\n summaryEnd={\n (data.total ?? 0) > SETUPS_LIMIT ? (\n <Notice tone=\"info\">\n {tr(\n \"export.v2.setups.limit\",\n \"Showing the first {{count}} saved setups.\",\n {\n count: SETUPS_LIMIT,\n },\n )}\n </Notice>\n ) : null\n }\n pager={<ListPager list={setupsList} total={data.setups.length} />}\n >\n <DataRows<ExportTemplate>\n label={tr(\"export.v2.setups.label\", \"Saved setups\")}\n items={shown}\n getId={(setup) => setup.id}\n lead={{\n header: tr(\"export.v2.setups.setup\", \"Setup\"),\n media: () => <RowTile icon={Archive} />,\n title: (setup) => setup.name,\n subtitle: (setup) => setup.description || undefined,\n }}\n columns={[\n {\n id: \"contains\",\n header: tr(\"export.v2.setups.contains\", \"Contains\"),\n width: \"minmax(0,1.4fr)\",\n cell: (setup) => setup.entityTypes.map(kinds.label).join(\", \"),\n },\n {\n id: \"file\",\n header: tr(\"export.v2.list.file\", \"File\"),\n width: \"90px\",\n cell: (setup) => setup.format,\n },\n {\n id: \"changed\",\n header: tr(\"export.v2.setups.changed\", \"Changed\"),\n width: \"130px\",\n cell: (setup) => ageText(ageOf(setup.updatedAt, now)),\n },\n ]}\n actions={(setup) => {\n const lock = runLock(setup);\n return (\n <span className=\"flex items-center justify-end gap-1\">\n <LockedButton\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n locked={lock !== null}\n reason={lock ?? createReason}\n disabled={(lock === null && !kindsReady) || run.busy(setup)}\n aria-busy={run.busy(setup) || undefined}\n icon={Play}\n onClick={() => run.start(setup)}\n aria-label={tr(\"export.v2.setups.runAria\", \"Run {{name}} now\", {\n name: setup.name,\n })}\n >\n {tr(\"export.v2.setups.run\", \"Run now\")}\n </LockedButton>\n <ActionMenu\n placement=\"row\"\n label={tr(\"export.v2.row.menu\", \"Actions for {{name}}\", {\n name: setup.name,\n })}\n items={[\n {\n id: \"open-new\",\n label: tr(\"export.v2.setups.openNew\", \"Run with changes…\"),\n description: tr(\n \"export.v2.setups.openNewHelp\",\n \"Opens New download with this setup filled in\",\n ),\n icon: SlidersHorizontal,\n locked: createLocked,\n lockedReason: createReason,\n onSelect: () => page.openNew(setup.id),\n },\n {\n id: \"edit\",\n label: tr(\"export.v2.setups.edit\", \"Edit…\"),\n icon: Pencil,\n locked: access.settled && !access.canSetups,\n lockedReason: tr(\n \"export.v2.new.setupLocked\",\n \"Saving setups needs permission to manage them in this workspace. Ask a workspace admin.\",\n ),\n onSelect: () => page.openSetup(setup.id),\n },\n {\n id: \"delete\",\n label: tr(\"export.v2.setups.delete\", \"Delete setup…\"),\n icon: Trash2,\n danger: true,\n separatorBefore: true,\n locked: access.settled && !access.canSetups,\n lockedReason: tr(\n \"export.v2.new.setupLocked\",\n \"Saving setups needs permission to manage them in this workspace. Ask a workspace admin.\",\n ),\n onSelect: () => void actions.removeSetup(setup),\n },\n ]}\n />\n </span>\n );\n }}\n />\n </ListView>\n );\n}\n"],"mappings":";;;;;;;;;;AAyCA,IAAMA,KAAY,MAA0BC,EAAM,IAG5CC,IAAwB,CAAC;AAU/B,SAAgBC,EAAW,EACzB,SACA,SACA,UACA,WACA,cACkB;CAClB,IAAMC,IAAKC,EAAM,GACXC,IAAUC,EAAW,GAErBC,IAAMC,EAAaP,CAAQ,GAE3BQ,IAAMC,EAAeC,EAAQ,UAAUZ,CAAQ,GAC/C,EAAE,kBAAea,GACjBC,IAAQC,EAAUC,EAAK,QAAQC,EAAW,MAAMA,EAAW,QAAQ,GACnEC,IAAeC,EAAO,WAAW,CAACA,EAAO,WACzCC,IAAehB,EACnB,8BACA,0FACF,GAGMiB,IAAa,CAACC,EAAM,WAAW,CAACA,EAAM,OACtCC,KAAW,MACXL,IAAqBE,IACrBE,EAAM,QACDlB,EACL,gCACA,mEACF,IACEiB,KAAc,CAACG,EAAYvB,GAAOqB,EAAM,SAAS,IAC5ClB,EACL,gCACA,iHACF,IACK;CAGT,OACE,kBAACqB,GAAD;EACE,OAAOT,EAAK,OAAO;EACnB,SAASA,EAAK;EACd,OAAOA,EAAK,SAAS,KAAA;EACrB,SAASA,EAAK;EACd,YAAYZ,EACV,2BACA,iCACF;EACA,cAAcY,EAAK,OAAO,WAAW,KAAA;EACrC,SACEA,EAAK,OAAO,WAAW,IACnBZ,EAAG,6BAA6B,eAAe,IAC/CA,EAAG,0BAA0B,0BAA0B,EACrD,OAAOY,EAAK,OAAO,OACrB,CAAC;EAEP,OACE,kBAACU,GAAD;GACE,MAAK;GACL,cAAa;GACb,MAAM,kBAACC,GAAD,EAAS,eAAY,OAAQ,CAAA;GACnC,OAAOvB,EAAG,+BAA+B,iBAAiB;GAC1D,aAAaA,EACX,qCACA,mFACF;GACA,QACE,kBAACwB,GAAD;IACE,MAAK;IACL,QAAQV;IACR,QAAQE;IACR,MAAMS;IACN,eAAehB,EAAK,QAAQ;IAE3B,UAAAT,EAAG,yBAAyB,cAAc;GAC/B,CAAA;EAEjB,CAAA;EAEH,aACGY,EAAK,SAAS,KAAA,MACb,kBAACc,GAAD;GAAQ,MAAK;GACV,UAAA1B,EACC,0BACA,6CACA,EACE,OAAA,IACF,CACF;EACM,CAAA,IACN;EAEN,OAAO,kBAAC2B,GAAD;GAAW,MAAMd;GAAY,OAAOD,EAAK,OAAO;EAAS,CAAA;EAEhE,UAAA,kBAACgB,GAAD;GACE,OAAO5B,EAAG,0BAA0B,cAAc;GAClD,OAAOU;GACP,QAAQ,MAAUb,EAAM;GACxB,MAAM;IACJ,QAAQG,EAAG,0BAA0B,OAAO;IAC5C,aAAa,kBAAC6B,GAAD,EAAS,MAAMN,EAAU,CAAA;IACtC,QAAQ,MAAU1B,EAAM;IACxB,WAAW,MAAUA,EAAM,eAAe,KAAA;GAC5C;GACA,SAAS;IACP;KACE,IAAI;KACJ,QAAQG,EAAG,6BAA6B,UAAU;KAClD,OAAO;KACP,OAAO,MAAUH,EAAM,YAAY,IAAIqB,EAAM,KAAK,CAAC,CAAC,KAAK,IAAI;IAC/D;IACA;KACE,IAAI;KACJ,QAAQlB,EAAG,uBAAuB,MAAM;KACxC,OAAO;KACP,OAAO,MAAUH,EAAM;IACzB;IACA;KACE,IAAI;KACJ,QAAQG,EAAG,4BAA4B,SAAS;KAChD,OAAO;KACP,OAAO,MAAUE,EAAQ4B,EAAMjC,EAAM,WAAWO,CAAG,CAAC;IACtD;GACF;GACA,UAAU,MAAU;IAClB,IAAM2B,IAAOZ,EAAQtB,CAAK;IAC1B,OACE,kBAAC,QAAD;KAAM,WAAU;KAAhB,UAAA,CACE,kBAAC2B,GAAD;MACE,MAAK;MACL,MAAK;MACL,SAAQ;MACR,QAAQO,MAAS;MACjB,QAAQA,KAAQf;MAChB,UAAWe,MAAS,QAAQ,CAACd,KAAeX,EAAI,KAAKT,CAAK;MAC1D,aAAWS,EAAI,KAAKT,CAAK,KAAK,KAAA;MAC9B,MAAMmC;MACN,eAAe1B,EAAI,MAAMT,CAAK;MAC9B,cAAYG,EAAG,4BAA4B,oBAAoB,EAC7D,MAAMH,EAAM,KACd,CAAC;MAEA,UAAAG,EAAG,wBAAwB,SAAS;KACzB,CAAA,GACd,kBAACiC,GAAD;MACE,WAAU;MACV,OAAOjC,EAAG,sBAAsB,wBAAwB,EACtD,MAAMH,EAAM,KACd,CAAC;MACD,OAAO;OACL;QACE,IAAI;QACJ,OAAOG,EAAG,4BAA4B,mBAAmB;QACzD,aAAaA,EACX,gCACA,8CACF;QACA,MAAMkC;QACN,QAAQpB;QACR,cAAcE;QACd,gBAAgBP,EAAK,QAAQZ,EAAM,EAAE;OACvC;OACA;QACE,IAAI;QACJ,OAAOG,EAAG,yBAAyB,OAAO;QAC1C,MAAMmC;QACN,QAAQpB,EAAO,WAAW,CAACA,EAAO;QAClC,cAAcf,EACZ,6BACA,yFACF;QACA,gBAAgBS,EAAK,UAAUZ,EAAM,EAAE;OACzC;OACA;QACE,IAAI;QACJ,OAAOG,EAAG,2BAA2B,eAAe;QACpD,MAAMoC;QACN,QAAQ;QACR,iBAAiB;QACjB,QAAQrB,EAAO,WAAW,CAACA,EAAO;QAClC,cAAcf,EACZ,6BACA,yFACF;QACA,gBAAgB,KAAKQ,EAAQ,YAAYX,CAAK;OAChD;MACF;KACD,CAAA,CACG;;GAEV;EACD,CAAA;CACO,CAAA;AAEd"}
|
|
@@ -15,7 +15,7 @@ export interface ExportAccess {
|
|
|
15
15
|
/**
|
|
16
16
|
* The workspace's export permissions, from the shell's permission set (no
|
|
17
17
|
* request of its own). Whether someone may download the whole organization is
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* separate (`useOrganizationExportPermission`): no one may yet, and nothing is
|
|
19
|
+
* asked (BOFF-16327).
|
|
20
20
|
*/
|
|
21
21
|
export declare function useExportAccess(): ExportAccess;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useExportAccess.js","names":["useExportAccess","loading","usePermissionLoading","canCreate","usePermission","canWorkspace","canSetups","canCancel","canDelete"],"sources":["../../../src/export/workspace-v2/useExportAccess.ts"],"sourcesContent":["/**\n * What this person may do on \"Download your data\" (BOFF-15822). Members see\n * what admins can do, locked and told why, never hidden; the export service\n * checks the same permissions (`@rbac` on each call).\n */\nimport {\n usePermission,\n usePermissionLoading,\n} from \"@burdenoff/fe-libs/shared/providers/shell\";\n\nexport interface ExportAccess {\n /** The permissions have loaded: a lock can show. */\n settled: boolean;\n /** Start a download (`export:create`). */\n canCreate: boolean;\n /** Download everyone's data in the workspace (`export:workspace_admin`). */\n canWorkspace: boolean;\n /** Save and delete setups (`export:manage_templates`). */\n canSetups: boolean;\n /** Cancel a download that is preparing (`export:cancel`). */\n canCancel: boolean;\n /** Delete a download (`export:delete`). */\n canDelete: boolean;\n}\n\n/**\n * The workspace's export permissions, from the shell's permission set (no\n * request of its own). Whether someone may download the whole organization is\n *
|
|
1
|
+
{"version":3,"file":"useExportAccess.js","names":["useExportAccess","loading","usePermissionLoading","canCreate","usePermission","canWorkspace","canSetups","canCancel","canDelete"],"sources":["../../../src/export/workspace-v2/useExportAccess.ts"],"sourcesContent":["/**\n * What this person may do on \"Download your data\" (BOFF-15822). Members see\n * what admins can do, locked and told why, never hidden; the export service\n * checks the same permissions (`@rbac` on each call).\n */\nimport {\n usePermission,\n usePermissionLoading,\n} from \"@burdenoff/fe-libs/shared/providers/shell\";\n\nexport interface ExportAccess {\n /** The permissions have loaded: a lock can show. */\n settled: boolean;\n /** Start a download (`export:create`). */\n canCreate: boolean;\n /** Download everyone's data in the workspace (`export:workspace_admin`). */\n canWorkspace: boolean;\n /** Save and delete setups (`export:manage_templates`). */\n canSetups: boolean;\n /** Cancel a download that is preparing (`export:cancel`). */\n canCancel: boolean;\n /** Delete a download (`export:delete`). */\n canDelete: boolean;\n}\n\n/**\n * The workspace's export permissions, from the shell's permission set (no\n * request of its own). Whether someone may download the whole organization is\n * separate (`useOrganizationExportPermission`): no one may yet, and nothing is\n * asked (BOFF-16327).\n */\nexport function useExportAccess(): ExportAccess {\n const loading = usePermissionLoading();\n const canCreate = usePermission(\"export:create\");\n const canWorkspace = usePermission(\"export:workspace_admin\");\n const canSetups = usePermission(\"export:manage_templates\");\n const canCancel = usePermission(\"export:cancel\");\n const canDelete = usePermission(\"export:delete\");\n return {\n settled: !loading,\n canCreate,\n canWorkspace,\n canSetups,\n canCancel,\n canDelete,\n };\n}\n"],"mappings":";;AA+BA,SAAgBA,IAAgC;CAC9C,IAAMC,IAAUC,EAAqB,GAC/BC,IAAYC,EAAc,eAAe,GACzCC,IAAeD,EAAc,wBAAwB,GACrDE,IAAYF,EAAc,yBAAyB,GACnDG,IAAYH,EAAc,eAAe,GACzCI,IAAYJ,EAAc,eAAe;CAC/C,OAAO;EACL,SAAS,CAACH;EACV;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -217,18 +217,6 @@ export type UpdateExportTemplateMutation = {
|
|
|
217
217
|
updatedAt: string;
|
|
218
218
|
};
|
|
219
219
|
};
|
|
220
|
-
export type ExportOrganizationPermissionQueryVariables = Exact<{
|
|
221
|
-
scopeId: string;
|
|
222
|
-
}>;
|
|
223
|
-
export type ExportOrganizationPermissionQuery = {
|
|
224
|
-
myPermissions: {
|
|
225
|
-
scopeId: string;
|
|
226
|
-
permissions: Array<{
|
|
227
|
-
resourceType: string;
|
|
228
|
-
allowedActions: Array<string>;
|
|
229
|
-
}>;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
220
|
export type GetAvailableExportEntitiesQueryVariables = Exact<{
|
|
233
221
|
context: Types.ContextInput;
|
|
234
222
|
pagination?: Types.ExportPaginationInput | null | undefined;
|
|
@@ -643,36 +631,6 @@ export declare function useUpdateExportTemplateMutation(baseOptions?: ApolloReac
|
|
|
643
631
|
export type UpdateExportTemplateMutationHookResult = ReturnType<typeof useUpdateExportTemplateMutation>;
|
|
644
632
|
export type UpdateExportTemplateMutationResult = Apollo.MutationResult<Types.UpdateExportTemplateMutation>;
|
|
645
633
|
export type UpdateExportTemplateMutationOptions = Apollo.BaseMutationOptions<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>;
|
|
646
|
-
export declare const ExportOrganizationPermissionDocument: Apollo.DocumentNode;
|
|
647
|
-
/**
|
|
648
|
-
* __useExportOrganizationPermissionQuery__
|
|
649
|
-
*
|
|
650
|
-
* To run a query within a React component, call `useExportOrganizationPermissionQuery` and pass it any options that fit your needs.
|
|
651
|
-
* When your component renders, `useExportOrganizationPermissionQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
652
|
-
* you can use to render your UI.
|
|
653
|
-
*
|
|
654
|
-
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
655
|
-
*
|
|
656
|
-
* @example
|
|
657
|
-
* const { data, loading, error } = useExportOrganizationPermissionQuery({
|
|
658
|
-
* variables: {
|
|
659
|
-
* scopeId: // value for 'scopeId'
|
|
660
|
-
* },
|
|
661
|
-
* });
|
|
662
|
-
*/
|
|
663
|
-
export declare function useExportOrganizationPermissionQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables> & ({
|
|
664
|
-
variables: Types.ExportOrganizationPermissionQueryVariables;
|
|
665
|
-
skip?: boolean;
|
|
666
|
-
} | {
|
|
667
|
-
skip: boolean;
|
|
668
|
-
})): ApolloReactHooks.useQuery.Result<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables, "complete" | "empty" | "streaming", Types.ExportOrganizationPermissionQueryVariables, undefined>;
|
|
669
|
-
export declare function useExportOrganizationPermissionLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables, "complete" | "empty" | "streaming", undefined>;
|
|
670
|
-
export declare function useExportOrganizationPermissionSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>;
|
|
671
|
-
export declare function useExportOrganizationPermissionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ExportOrganizationPermissionQuery | undefined, Types.ExportOrganizationPermissionQueryVariables>;
|
|
672
|
-
export type ExportOrganizationPermissionQueryHookResult = ReturnType<typeof useExportOrganizationPermissionQuery>;
|
|
673
|
-
export type ExportOrganizationPermissionLazyQueryHookResult = ReturnType<typeof useExportOrganizationPermissionLazyQuery>;
|
|
674
|
-
export type ExportOrganizationPermissionSuspenseQueryHookResult = ReturnType<typeof useExportOrganizationPermissionSuspenseQuery>;
|
|
675
|
-
export type ExportOrganizationPermissionQueryResult = Apollo.QueryResult<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>;
|
|
676
634
|
export declare const GetAvailableExportEntitiesDocument: Apollo.DocumentNode;
|
|
677
635
|
/**
|
|
678
636
|
* __useGetAvailableExportEntitiesQuery__
|
|
@@ -110,16 +110,6 @@ var t = e`
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
`, c = e`
|
|
113
|
-
query ExportOrganizationPermission($scopeId: String!) {
|
|
114
|
-
myPermissions(scopeId: $scopeId) {
|
|
115
|
-
scopeId
|
|
116
|
-
permissions {
|
|
117
|
-
resourceType
|
|
118
|
-
allowedActions
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
`, l = e`
|
|
123
113
|
query GetAvailableExportEntities($context: ContextInput!, $pagination: ExportPaginationInput) {
|
|
124
114
|
getAvailableExportEntities(context: $context, pagination: $pagination) {
|
|
125
115
|
edges {
|
|
@@ -143,7 +133,7 @@ var t = e`
|
|
|
143
133
|
totalCount
|
|
144
134
|
}
|
|
145
135
|
}
|
|
146
|
-
`,
|
|
136
|
+
`, l = e`
|
|
147
137
|
query GetExportJob($context: ContextInput, $id: ID!) {
|
|
148
138
|
getExportJob(context: $context, id: $id) {
|
|
149
139
|
id
|
|
@@ -214,7 +204,7 @@ e`
|
|
|
214
204
|
}
|
|
215
205
|
}
|
|
216
206
|
`;
|
|
217
|
-
var
|
|
207
|
+
var u = e`
|
|
218
208
|
query GetExportTemplate($context: ContextInput, $id: ID!) {
|
|
219
209
|
getExportTemplate(context: $context, id: $id) {
|
|
220
210
|
id
|
|
@@ -234,7 +224,7 @@ var d = e`
|
|
|
234
224
|
updatedBy
|
|
235
225
|
}
|
|
236
226
|
}
|
|
237
|
-
`,
|
|
227
|
+
`, d = e`
|
|
238
228
|
query ListExportTemplates($context: ContextInput!, $pagination: ExportPaginationInput) {
|
|
239
229
|
listExportTemplates(context: $context, pagination: $pagination) {
|
|
240
230
|
edges {
|
|
@@ -263,7 +253,7 @@ var d = e`
|
|
|
263
253
|
totalCount
|
|
264
254
|
}
|
|
265
255
|
}
|
|
266
|
-
`,
|
|
256
|
+
`, f = e`
|
|
267
257
|
query ListExportJobs($filter: ExportJobFilterInput, $pagination: ExportPaginationInput, $context: ContextInput!) {
|
|
268
258
|
listExportJobs(filter: $filter, pagination: $pagination, context: $context) {
|
|
269
259
|
edges {
|
|
@@ -305,7 +295,7 @@ var d = e`
|
|
|
305
295
|
totalCount
|
|
306
296
|
}
|
|
307
297
|
}
|
|
308
|
-
`,
|
|
298
|
+
`, p = e`
|
|
309
299
|
subscription ExportJobProgress($jobId: ID!) {
|
|
310
300
|
exportJobProgress(jobId: $jobId) {
|
|
311
301
|
id
|
|
@@ -346,6 +336,6 @@ var d = e`
|
|
|
346
336
|
}
|
|
347
337
|
}
|
|
348
338
|
`;
|
|
349
|
-
export { t as CancelExportJobDocument, n as CreateExportJobDocument, r as CreateExportTemplateDocument, i as DeleteExportJobDocument, a as DeleteExportTemplateDocument,
|
|
339
|
+
export { t as CancelExportJobDocument, n as CreateExportJobDocument, r as CreateExportTemplateDocument, i as DeleteExportJobDocument, a as DeleteExportTemplateDocument, p as ExportJobProgressDocument, c as GetAvailableExportEntitiesDocument, l as GetExportJobDocument, u as GetExportTemplateDocument, f as ListExportJobsDocument, d as ListExportTemplatesDocument, o as RetryExportJobDocument, s as UpdateExportTemplateDocument };
|
|
350
340
|
|
|
351
341
|
//# sourceMappingURL=wspace-operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wspace-operations.js","names":["CancelExportJobDocument","CreateExportJobDocument","CreateExportTemplateDocument","DeleteExportJobDocument","DeleteExportTemplateDocument","RetryExportJobDocument","UpdateExportTemplateDocument","ExportOrganizationPermissionDocument","GetAvailableExportEntitiesDocument","GetExportJobDocument","GetExportTemplateDocument","ListExportTemplatesDocument","ListExportJobsDocument","ExportJobProgressDocument"],"sources":["../../src/generated/wspace-operations.ts"],"sourcesContent":["// @ts-nocheck\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport * as Types from './wspace-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\n/**\n * Operation context for filtering and scoping data.\n * All fields are optional and can be extended as needed.\n */\nexport type ContextInput = {\n /** App ID for app-level scoping */\n appId?: string | number | null | undefined;\n /** Additional custom context as JSON */\n custom?: Record<string, unknown> | null | undefined;\n /** Project ID for project-level scoping */\n projectId?: string | number | null | undefined;\n /** User ID for user-level scoping */\n userId?: string | number | null | undefined;\n /** Workspace ID for workspace-level scoping */\n workspaceId?: string | number | null | undefined;\n};\n\nexport type CreateExportJobInput = {\n context?: ContextInput | null | undefined;\n dateRangeEnd?: string | null | undefined;\n dateRangeStart?: string | null | undefined;\n description?: string | null | undefined;\n entityFilters?: Record<string, unknown> | null | undefined;\n entityTypes: Array<string>;\n exportScope?: ExportScope | null | undefined;\n format?: ExportFormat | null | undefined;\n includeMedia?: boolean | null | undefined;\n includeMetadata?: boolean | null | undefined;\n name: string;\n organizationId?: string | number | null | undefined;\n templateId?: string | number | null | undefined;\n};\n\nexport type CreateExportTemplateInput = {\n context?: ContextInput | null | undefined;\n description?: string | null | undefined;\n entityFilters?: Record<string, unknown> | null | undefined;\n entityTypes: Array<string>;\n format?: ExportFormat | null | undefined;\n includeMedia?: boolean | null | undefined;\n includeMetadata?: boolean | null | undefined;\n name: string;\n};\n\nexport type ExportArchiveFormat =\n | 'ZIP';\n\nexport type ExportFormat =\n | 'CSV'\n | 'JSON';\n\nexport type ExportJobFilterInput = {\n context?: ContextInput | null | undefined;\n dateFrom?: string | null | undefined;\n dateTo?: string | null | undefined;\n entityTypes?: Array<string> | null | undefined;\n format?: ExportFormat | null | undefined;\n search?: string | null | undefined;\n status?: Array<ExportJobStatus> | null | undefined;\n};\n\nexport type ExportJobStatus =\n | 'CANCELLED'\n | 'COMPLETED'\n | 'CREATED'\n | 'DELETED'\n | 'EXPIRED'\n | 'FAILED'\n | 'QUEUED'\n | 'RUNNING';\n\nexport type ExportPaginationInput = {\n after?: string | null | undefined;\n before?: string | null | undefined;\n first?: number | null | undefined;\n last?: number | null | undefined;\n sortBy?: ExportSortField | null | undefined;\n sortDirection?: SortDirection | null | undefined;\n};\n\nexport type ExportScope =\n | 'INDIVIDUAL'\n | 'ORG_ADMIN'\n | 'WORKSPACE_ADMIN';\n\nexport type ExportSortField =\n | 'CREATED_AT'\n | 'NAME'\n | 'STATUS'\n | 'TOTAL_SIZE_BYTES'\n | 'UPDATED_AT';\n\n/** Standard sort direction */\nexport type SortDirection =\n | 'ASC'\n | 'DESC';\n\nexport type UpdateExportTemplateInput = {\n context?: ContextInput | null | undefined;\n description?: string | null | undefined;\n entityFilters?: Record<string, unknown> | null | undefined;\n entityTypes?: Array<string> | null | undefined;\n format?: ExportFormat | null | undefined;\n includeMedia?: boolean | null | undefined;\n includeMetadata?: boolean | null | undefined;\n isDefault?: boolean | null | undefined;\n name?: string | null | undefined;\n};\n\nexport type CancelExportJobMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type CancelExportJobMutation = { cancelExportJob: { id: string, status: Types.ExportJobStatus, updatedAt: string } };\n\nexport type CreateExportJobMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n input: Types.CreateExportJobInput;\n}>;\n\n\nexport type CreateExportJobMutation = { createExportJob: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, format: Types.ExportFormat, archiveFormat: Types.ExportArchiveFormat, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, entityFilters: Record<string, unknown> | null, includeMedia: boolean, includeMetadata: boolean, dateRangeStart: string | null, dateRangeEnd: string | null, processedEntities: number, totalEntities: number, totalSizeBytes: string, progress: number, templateId: string | null, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type CreateExportTemplateMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n input: Types.CreateExportTemplateInput;\n}>;\n\n\nexport type CreateExportTemplateMutation = { createExportTemplate: { id: string, name: string, description: string | null, entityTypes: Array<string>, format: Types.ExportFormat, entityFilters: Record<string, unknown> | null, includeMedia: boolean, includeMetadata: boolean, isDefault: boolean, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type DeleteExportJobMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type DeleteExportJobMutation = { deleteExportJob: boolean };\n\nexport type DeleteExportTemplateMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type DeleteExportTemplateMutation = { deleteExportTemplate: boolean };\n\nexport type RetryExportJobMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type RetryExportJobMutation = { retryExportJob: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, archiveFormat: Types.ExportArchiveFormat, progress: number, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, format: Types.ExportFormat, processedEntities: number, totalEntities: number, totalSizeBytes: string, templateId: string | null, workspaceId: string, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type UpdateExportTemplateMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n input: Types.UpdateExportTemplateInput;\n}>;\n\n\nexport type UpdateExportTemplateMutation = { updateExportTemplate: { id: string, name: string, description: string | null, entityTypes: Array<string>, format: Types.ExportFormat, isDefault: boolean, workspaceId: string, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type ExportOrganizationPermissionQueryVariables = Exact<{\n scopeId: string;\n}>;\n\n\nexport type ExportOrganizationPermissionQuery = { myPermissions: { scopeId: string, permissions: Array<{ resourceType: string, allowedActions: Array<string> }> } };\n\nexport type GetAvailableExportEntitiesQueryVariables = Exact<{\n context: Types.ContextInput;\n pagination?: Types.ExportPaginationInput | null | undefined;\n}>;\n\n\nexport type GetAvailableExportEntitiesQuery = { getAvailableExportEntities: { totalCount: number, edges: Array<{ cursor: string, node: { entityType: string, displayName: string, description: string | null, enabled: boolean, estimatedSize: string | null, supportsDateRange: boolean, supportsMediaExport: boolean } }>, pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null } } };\n\nexport type GetExportJobQueryVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type GetExportJobQuery = { getExportJob: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, format: Types.ExportFormat, archiveFormat: Types.ExportArchiveFormat, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, entityFilters: Record<string, unknown> | null, includeMedia: boolean, includeMetadata: boolean, dateRangeStart: string | null, dateRangeEnd: string | null, processedEntities: number, totalEntities: number, totalSizeBytes: string, progress: number, errorMessage: string | null, errorCode: string | null, startedAt: string | null, completedAt: string | null, expiresAt: string | null, templateId: string | null, temporalWorkflowId: string | null, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string, updatedBy: string | null, parts: Array<{ id: string, partNumber: number, fileName: string, sizeBytes: string, entityTypes: Array<string>, downloadUrl: string | null, downloadExpiresAt: string | null, checksum: string | null }>, template: { id: string, name: string, description: string | null } | null } | null };\n\nexport type GetExportPartQueryVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type GetExportPartQuery = { getExportPart: { id: string, jobId: string, partNumber: number, fileName: string, sizeBytes: string, entityTypes: Array<string>, downloadUrl: string | null, downloadExpiresAt: string | null, checksum: string | null, createdAt: string } | null };\n\nexport type GetExportTemplateQueryVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type GetExportTemplateQuery = { getExportTemplate: { id: string, name: string, description: string | null, entityTypes: Array<string>, format: Types.ExportFormat, entityFilters: Record<string, unknown> | null, includeMedia: boolean, includeMetadata: boolean, isDefault: boolean, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string, updatedBy: string | null } | null };\n\nexport type ListExportTemplatesQueryVariables = Exact<{\n context: Types.ContextInput;\n pagination?: Types.ExportPaginationInput | null | undefined;\n}>;\n\n\nexport type ListExportTemplatesQuery = { listExportTemplates: { totalCount: number, edges: Array<{ cursor: string, node: { id: string, name: string, description: string | null, entityTypes: Array<string>, format: Types.ExportFormat, isDefault: boolean, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string, updatedBy: string | null } }>, pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null } } };\n\nexport type ListExportJobsQueryVariables = Exact<{\n filter?: Types.ExportJobFilterInput | null | undefined;\n pagination?: Types.ExportPaginationInput | null | undefined;\n context: Types.ContextInput;\n}>;\n\n\nexport type ListExportJobsQuery = { listExportJobs: { totalCount: number, edges: Array<{ cursor: string, node: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, format: Types.ExportFormat, archiveFormat: Types.ExportArchiveFormat, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, progress: number, totalEntities: number, processedEntities: number, totalSizeBytes: string, errorMessage: string | null, startedAt: string | null, completedAt: string | null, expiresAt: string | null, templateId: string | null, workspaceId: string, createdBy: string, createdAt: string, updatedAt: string } }>, pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null } } };\n\nexport type ExportJobProgressSubscriptionVariables = Exact<{\n jobId: string | number;\n}>;\n\n\nexport type ExportJobProgressSubscription = { exportJobProgress: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, format: Types.ExportFormat, archiveFormat: Types.ExportArchiveFormat, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, progress: number, processedEntities: number, totalEntities: number, totalSizeBytes: string, errorMessage: string | null, startedAt: string | null, completedAt: string | null, expiresAt: string | null, templateId: string | null, workspaceId: string, createdBy: string, createdAt: string, updatedAt: string, parts: Array<{ id: string, partNumber: number, fileName: string, sizeBytes: string, entityTypes: Array<string>, downloadUrl: string | null, downloadExpiresAt: string | null, checksum: string | null }> } };\n\n\nexport const CancelExportJobDocument = gql`\n mutation CancelExportJob($context: ContextInput, $id: ID!) {\n cancelExportJob(context: $context, id: $id) {\n id\n status\n updatedAt\n }\n}\n `;\nexport type CancelExportJobMutationFn = Apollo.MutationFunction<Types.CancelExportJobMutation, Types.CancelExportJobMutationVariables>;\n\n/**\n * __useCancelExportJobMutation__\n *\n * To run a mutation, you first call `useCancelExportJobMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCancelExportJobMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [cancelExportJobMutation, { data, loading, error }] = useCancelExportJobMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useCancelExportJobMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CancelExportJobMutation, Types.CancelExportJobMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CancelExportJobMutation, Types.CancelExportJobMutationVariables>(CancelExportJobDocument, options);\n }\nexport type CancelExportJobMutationHookResult = ReturnType<typeof useCancelExportJobMutation>;\nexport type CancelExportJobMutationResult = Apollo.MutationResult<Types.CancelExportJobMutation>;\nexport type CancelExportJobMutationOptions = Apollo.BaseMutationOptions<Types.CancelExportJobMutation, Types.CancelExportJobMutationVariables>;\nexport const CreateExportJobDocument = gql`\n mutation CreateExportJob($context: ContextInput, $input: CreateExportJobInput!) {\n createExportJob(context: $context, input: $input) {\n id\n name\n description\n status\n format\n archiveFormat\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n entityFilters\n includeMedia\n includeMetadata\n dateRangeStart\n dateRangeEnd\n processedEntities\n totalEntities\n totalSizeBytes\n progress\n templateId\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type CreateExportJobMutationFn = Apollo.MutationFunction<Types.CreateExportJobMutation, Types.CreateExportJobMutationVariables>;\n\n/**\n * __useCreateExportJobMutation__\n *\n * To run a mutation, you first call `useCreateExportJobMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCreateExportJobMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [createExportJobMutation, { data, loading, error }] = useCreateExportJobMutation({\n * variables: {\n * context: // value for 'context'\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCreateExportJobMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateExportJobMutation, Types.CreateExportJobMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CreateExportJobMutation, Types.CreateExportJobMutationVariables>(CreateExportJobDocument, options);\n }\nexport type CreateExportJobMutationHookResult = ReturnType<typeof useCreateExportJobMutation>;\nexport type CreateExportJobMutationResult = Apollo.MutationResult<Types.CreateExportJobMutation>;\nexport type CreateExportJobMutationOptions = Apollo.BaseMutationOptions<Types.CreateExportJobMutation, Types.CreateExportJobMutationVariables>;\nexport const CreateExportTemplateDocument = gql`\n mutation CreateExportTemplate($context: ContextInput, $input: CreateExportTemplateInput!) {\n createExportTemplate(context: $context, input: $input) {\n id\n name\n description\n entityTypes\n format\n entityFilters\n includeMedia\n includeMetadata\n isDefault\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type CreateExportTemplateMutationFn = Apollo.MutationFunction<Types.CreateExportTemplateMutation, Types.CreateExportTemplateMutationVariables>;\n\n/**\n * __useCreateExportTemplateMutation__\n *\n * To run a mutation, you first call `useCreateExportTemplateMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCreateExportTemplateMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [createExportTemplateMutation, { data, loading, error }] = useCreateExportTemplateMutation({\n * variables: {\n * context: // value for 'context'\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCreateExportTemplateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateExportTemplateMutation, Types.CreateExportTemplateMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CreateExportTemplateMutation, Types.CreateExportTemplateMutationVariables>(CreateExportTemplateDocument, options);\n }\nexport type CreateExportTemplateMutationHookResult = ReturnType<typeof useCreateExportTemplateMutation>;\nexport type CreateExportTemplateMutationResult = Apollo.MutationResult<Types.CreateExportTemplateMutation>;\nexport type CreateExportTemplateMutationOptions = Apollo.BaseMutationOptions<Types.CreateExportTemplateMutation, Types.CreateExportTemplateMutationVariables>;\nexport const DeleteExportJobDocument = gql`\n mutation DeleteExportJob($context: ContextInput, $id: ID!) {\n deleteExportJob(context: $context, id: $id)\n}\n `;\nexport type DeleteExportJobMutationFn = Apollo.MutationFunction<Types.DeleteExportJobMutation, Types.DeleteExportJobMutationVariables>;\n\n/**\n * __useDeleteExportJobMutation__\n *\n * To run a mutation, you first call `useDeleteExportJobMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useDeleteExportJobMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [deleteExportJobMutation, { data, loading, error }] = useDeleteExportJobMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useDeleteExportJobMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteExportJobMutation, Types.DeleteExportJobMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.DeleteExportJobMutation, Types.DeleteExportJobMutationVariables>(DeleteExportJobDocument, options);\n }\nexport type DeleteExportJobMutationHookResult = ReturnType<typeof useDeleteExportJobMutation>;\nexport type DeleteExportJobMutationResult = Apollo.MutationResult<Types.DeleteExportJobMutation>;\nexport type DeleteExportJobMutationOptions = Apollo.BaseMutationOptions<Types.DeleteExportJobMutation, Types.DeleteExportJobMutationVariables>;\nexport const DeleteExportTemplateDocument = gql`\n mutation DeleteExportTemplate($context: ContextInput, $id: ID!) {\n deleteExportTemplate(context: $context, id: $id)\n}\n `;\nexport type DeleteExportTemplateMutationFn = Apollo.MutationFunction<Types.DeleteExportTemplateMutation, Types.DeleteExportTemplateMutationVariables>;\n\n/**\n * __useDeleteExportTemplateMutation__\n *\n * To run a mutation, you first call `useDeleteExportTemplateMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useDeleteExportTemplateMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [deleteExportTemplateMutation, { data, loading, error }] = useDeleteExportTemplateMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useDeleteExportTemplateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteExportTemplateMutation, Types.DeleteExportTemplateMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.DeleteExportTemplateMutation, Types.DeleteExportTemplateMutationVariables>(DeleteExportTemplateDocument, options);\n }\nexport type DeleteExportTemplateMutationHookResult = ReturnType<typeof useDeleteExportTemplateMutation>;\nexport type DeleteExportTemplateMutationResult = Apollo.MutationResult<Types.DeleteExportTemplateMutation>;\nexport type DeleteExportTemplateMutationOptions = Apollo.BaseMutationOptions<Types.DeleteExportTemplateMutation, Types.DeleteExportTemplateMutationVariables>;\nexport const RetryExportJobDocument = gql`\n mutation RetryExportJob($context: ContextInput, $id: ID!) {\n retryExportJob(context: $context, id: $id) {\n id\n name\n description\n status\n archiveFormat\n progress\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n format\n processedEntities\n totalEntities\n totalSizeBytes\n templateId\n workspaceId\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type RetryExportJobMutationFn = Apollo.MutationFunction<Types.RetryExportJobMutation, Types.RetryExportJobMutationVariables>;\n\n/**\n * __useRetryExportJobMutation__\n *\n * To run a mutation, you first call `useRetryExportJobMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useRetryExportJobMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [retryExportJobMutation, { data, loading, error }] = useRetryExportJobMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useRetryExportJobMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RetryExportJobMutation, Types.RetryExportJobMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.RetryExportJobMutation, Types.RetryExportJobMutationVariables>(RetryExportJobDocument, options);\n }\nexport type RetryExportJobMutationHookResult = ReturnType<typeof useRetryExportJobMutation>;\nexport type RetryExportJobMutationResult = Apollo.MutationResult<Types.RetryExportJobMutation>;\nexport type RetryExportJobMutationOptions = Apollo.BaseMutationOptions<Types.RetryExportJobMutation, Types.RetryExportJobMutationVariables>;\nexport const UpdateExportTemplateDocument = gql`\n mutation UpdateExportTemplate($context: ContextInput, $id: ID!, $input: UpdateExportTemplateInput!) {\n updateExportTemplate(context: $context, id: $id, input: $input) {\n id\n name\n description\n entityTypes\n format\n isDefault\n workspaceId\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type UpdateExportTemplateMutationFn = Apollo.MutationFunction<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>;\n\n/**\n * __useUpdateExportTemplateMutation__\n *\n * To run a mutation, you first call `useUpdateExportTemplateMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUpdateExportTemplateMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [updateExportTemplateMutation, { data, loading, error }] = useUpdateExportTemplateMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * input: // value for 'input'\n * },\n * });\n */\nexport function useUpdateExportTemplateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>(UpdateExportTemplateDocument, options);\n }\nexport type UpdateExportTemplateMutationHookResult = ReturnType<typeof useUpdateExportTemplateMutation>;\nexport type UpdateExportTemplateMutationResult = Apollo.MutationResult<Types.UpdateExportTemplateMutation>;\nexport type UpdateExportTemplateMutationOptions = Apollo.BaseMutationOptions<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>;\nexport const ExportOrganizationPermissionDocument = gql`\n query ExportOrganizationPermission($scopeId: String!) {\n myPermissions(scopeId: $scopeId) {\n scopeId\n permissions {\n resourceType\n allowedActions\n }\n }\n}\n `;\n\n/**\n * __useExportOrganizationPermissionQuery__\n *\n * To run a query within a React component, call `useExportOrganizationPermissionQuery` and pass it any options that fit your needs.\n * When your component renders, `useExportOrganizationPermissionQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useExportOrganizationPermissionQuery({\n * variables: {\n * scopeId: // value for 'scopeId'\n * },\n * });\n */\nexport function useExportOrganizationPermissionQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables> & ({ variables: Types.ExportOrganizationPermissionQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>(ExportOrganizationPermissionDocument, options);\n }\nexport function useExportOrganizationPermissionLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>(ExportOrganizationPermissionDocument, options);\n }\n// @ts-ignore\nexport function useExportOrganizationPermissionSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>;\nexport function useExportOrganizationPermissionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ExportOrganizationPermissionQuery | undefined, Types.ExportOrganizationPermissionQueryVariables>;\nexport function useExportOrganizationPermissionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>(ExportOrganizationPermissionDocument, options);\n }\nexport type ExportOrganizationPermissionQueryHookResult = ReturnType<typeof useExportOrganizationPermissionQuery>;\nexport type ExportOrganizationPermissionLazyQueryHookResult = ReturnType<typeof useExportOrganizationPermissionLazyQuery>;\nexport type ExportOrganizationPermissionSuspenseQueryHookResult = ReturnType<typeof useExportOrganizationPermissionSuspenseQuery>;\nexport type ExportOrganizationPermissionQueryResult = Apollo.QueryResult<Types.ExportOrganizationPermissionQuery, Types.ExportOrganizationPermissionQueryVariables>;\nexport const GetAvailableExportEntitiesDocument = gql`\n query GetAvailableExportEntities($context: ContextInput!, $pagination: ExportPaginationInput) {\n getAvailableExportEntities(context: $context, pagination: $pagination) {\n edges {\n cursor\n node {\n entityType\n displayName\n description\n enabled\n estimatedSize\n supportsDateRange\n supportsMediaExport\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}\n `;\n\n/**\n * __useGetAvailableExportEntitiesQuery__\n *\n * To run a query within a React component, call `useGetAvailableExportEntitiesQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetAvailableExportEntitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetAvailableExportEntitiesQuery({\n * variables: {\n * context: // value for 'context'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useGetAvailableExportEntitiesQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables> & ({ variables: Types.GetAvailableExportEntitiesQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>(GetAvailableExportEntitiesDocument, options);\n }\nexport function useGetAvailableExportEntitiesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>(GetAvailableExportEntitiesDocument, options);\n }\n// @ts-ignore\nexport function useGetAvailableExportEntitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>;\nexport function useGetAvailableExportEntitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetAvailableExportEntitiesQuery | undefined, Types.GetAvailableExportEntitiesQueryVariables>;\nexport function useGetAvailableExportEntitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>(GetAvailableExportEntitiesDocument, options);\n }\nexport type GetAvailableExportEntitiesQueryHookResult = ReturnType<typeof useGetAvailableExportEntitiesQuery>;\nexport type GetAvailableExportEntitiesLazyQueryHookResult = ReturnType<typeof useGetAvailableExportEntitiesLazyQuery>;\nexport type GetAvailableExportEntitiesSuspenseQueryHookResult = ReturnType<typeof useGetAvailableExportEntitiesSuspenseQuery>;\nexport type GetAvailableExportEntitiesQueryResult = Apollo.QueryResult<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>;\nexport const GetExportJobDocument = gql`\n query GetExportJob($context: ContextInput, $id: ID!) {\n getExportJob(context: $context, id: $id) {\n id\n name\n description\n status\n format\n archiveFormat\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n entityFilters\n includeMedia\n includeMetadata\n dateRangeStart\n dateRangeEnd\n parts {\n id\n partNumber\n fileName\n sizeBytes\n entityTypes\n downloadUrl\n downloadExpiresAt\n checksum\n }\n processedEntities\n totalEntities\n totalSizeBytes\n progress\n errorMessage\n errorCode\n startedAt\n completedAt\n expiresAt\n templateId\n template {\n id\n name\n description\n }\n temporalWorkflowId\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n updatedBy\n }\n}\n `;\n\n/**\n * __useGetExportJobQuery__\n *\n * To run a query within a React component, call `useGetExportJobQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetExportJobQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetExportJobQuery({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetExportJobQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables> & ({ variables: Types.GetExportJobQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>(GetExportJobDocument, options);\n }\nexport function useGetExportJobLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>(GetExportJobDocument, options);\n }\n// @ts-ignore\nexport function useGetExportJobSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>;\nexport function useGetExportJobSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportJobQuery | undefined, Types.GetExportJobQueryVariables>;\nexport function useGetExportJobSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>(GetExportJobDocument, options);\n }\nexport type GetExportJobQueryHookResult = ReturnType<typeof useGetExportJobQuery>;\nexport type GetExportJobLazyQueryHookResult = ReturnType<typeof useGetExportJobLazyQuery>;\nexport type GetExportJobSuspenseQueryHookResult = ReturnType<typeof useGetExportJobSuspenseQuery>;\nexport type GetExportJobQueryResult = Apollo.QueryResult<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>;\nexport const GetExportPartDocument = gql`\n query GetExportPart($context: ContextInput, $id: ID!) {\n getExportPart(context: $context, id: $id) {\n id\n jobId\n partNumber\n fileName\n sizeBytes\n entityTypes\n downloadUrl\n downloadExpiresAt\n checksum\n createdAt\n }\n}\n `;\n\n/**\n * __useGetExportPartQuery__\n *\n * To run a query within a React component, call `useGetExportPartQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetExportPartQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetExportPartQuery({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetExportPartQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables> & ({ variables: Types.GetExportPartQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>(GetExportPartDocument, options);\n }\nexport function useGetExportPartLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>(GetExportPartDocument, options);\n }\n// @ts-ignore\nexport function useGetExportPartSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>;\nexport function useGetExportPartSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportPartQuery | undefined, Types.GetExportPartQueryVariables>;\nexport function useGetExportPartSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>(GetExportPartDocument, options);\n }\nexport type GetExportPartQueryHookResult = ReturnType<typeof useGetExportPartQuery>;\nexport type GetExportPartLazyQueryHookResult = ReturnType<typeof useGetExportPartLazyQuery>;\nexport type GetExportPartSuspenseQueryHookResult = ReturnType<typeof useGetExportPartSuspenseQuery>;\nexport type GetExportPartQueryResult = Apollo.QueryResult<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>;\nexport const GetExportTemplateDocument = gql`\n query GetExportTemplate($context: ContextInput, $id: ID!) {\n getExportTemplate(context: $context, id: $id) {\n id\n name\n description\n entityTypes\n format\n entityFilters\n includeMedia\n includeMetadata\n isDefault\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n updatedBy\n }\n}\n `;\n\n/**\n * __useGetExportTemplateQuery__\n *\n * To run a query within a React component, call `useGetExportTemplateQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetExportTemplateQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetExportTemplateQuery({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetExportTemplateQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables> & ({ variables: Types.GetExportTemplateQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>(GetExportTemplateDocument, options);\n }\nexport function useGetExportTemplateLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>(GetExportTemplateDocument, options);\n }\n// @ts-ignore\nexport function useGetExportTemplateSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>;\nexport function useGetExportTemplateSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportTemplateQuery | undefined, Types.GetExportTemplateQueryVariables>;\nexport function useGetExportTemplateSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>(GetExportTemplateDocument, options);\n }\nexport type GetExportTemplateQueryHookResult = ReturnType<typeof useGetExportTemplateQuery>;\nexport type GetExportTemplateLazyQueryHookResult = ReturnType<typeof useGetExportTemplateLazyQuery>;\nexport type GetExportTemplateSuspenseQueryHookResult = ReturnType<typeof useGetExportTemplateSuspenseQuery>;\nexport type GetExportTemplateQueryResult = Apollo.QueryResult<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>;\nexport const ListExportTemplatesDocument = gql`\n query ListExportTemplates($context: ContextInput!, $pagination: ExportPaginationInput) {\n listExportTemplates(context: $context, pagination: $pagination) {\n edges {\n cursor\n node {\n id\n name\n description\n entityTypes\n format\n isDefault\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n updatedBy\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}\n `;\n\n/**\n * __useListExportTemplatesQuery__\n *\n * To run a query within a React component, call `useListExportTemplatesQuery` and pass it any options that fit your needs.\n * When your component renders, `useListExportTemplatesQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useListExportTemplatesQuery({\n * variables: {\n * context: // value for 'context'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useListExportTemplatesQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables> & ({ variables: Types.ListExportTemplatesQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>(ListExportTemplatesDocument, options);\n }\nexport function useListExportTemplatesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>(ListExportTemplatesDocument, options);\n }\n// @ts-ignore\nexport function useListExportTemplatesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>;\nexport function useListExportTemplatesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListExportTemplatesQuery | undefined, Types.ListExportTemplatesQueryVariables>;\nexport function useListExportTemplatesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>(ListExportTemplatesDocument, options);\n }\nexport type ListExportTemplatesQueryHookResult = ReturnType<typeof useListExportTemplatesQuery>;\nexport type ListExportTemplatesLazyQueryHookResult = ReturnType<typeof useListExportTemplatesLazyQuery>;\nexport type ListExportTemplatesSuspenseQueryHookResult = ReturnType<typeof useListExportTemplatesSuspenseQuery>;\nexport type ListExportTemplatesQueryResult = Apollo.QueryResult<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>;\nexport const ListExportJobsDocument = gql`\n query ListExportJobs($filter: ExportJobFilterInput, $pagination: ExportPaginationInput, $context: ContextInput!) {\n listExportJobs(filter: $filter, pagination: $pagination, context: $context) {\n edges {\n cursor\n node {\n id\n name\n description\n status\n format\n archiveFormat\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n progress\n totalEntities\n processedEntities\n totalSizeBytes\n errorMessage\n startedAt\n completedAt\n expiresAt\n templateId\n workspaceId\n createdBy\n createdAt\n updatedAt\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}\n `;\n\n/**\n * __useListExportJobsQuery__\n *\n * To run a query within a React component, call `useListExportJobsQuery` and pass it any options that fit your needs.\n * When your component renders, `useListExportJobsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useListExportJobsQuery({\n * variables: {\n * filter: // value for 'filter'\n * pagination: // value for 'pagination'\n * context: // value for 'context'\n * },\n * });\n */\nexport function useListExportJobsQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables> & ({ variables: Types.ListExportJobsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>(ListExportJobsDocument, options);\n }\nexport function useListExportJobsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>(ListExportJobsDocument, options);\n }\n// @ts-ignore\nexport function useListExportJobsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>;\nexport function useListExportJobsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListExportJobsQuery | undefined, Types.ListExportJobsQueryVariables>;\nexport function useListExportJobsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>(ListExportJobsDocument, options);\n }\nexport type ListExportJobsQueryHookResult = ReturnType<typeof useListExportJobsQuery>;\nexport type ListExportJobsLazyQueryHookResult = ReturnType<typeof useListExportJobsLazyQuery>;\nexport type ListExportJobsSuspenseQueryHookResult = ReturnType<typeof useListExportJobsSuspenseQuery>;\nexport type ListExportJobsQueryResult = Apollo.QueryResult<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>;\nexport const ExportJobProgressDocument = gql`\n subscription ExportJobProgress($jobId: ID!) {\n exportJobProgress(jobId: $jobId) {\n id\n name\n description\n status\n format\n archiveFormat\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n progress\n processedEntities\n totalEntities\n totalSizeBytes\n errorMessage\n startedAt\n completedAt\n expiresAt\n templateId\n workspaceId\n createdBy\n createdAt\n updatedAt\n parts {\n id\n partNumber\n fileName\n sizeBytes\n entityTypes\n downloadUrl\n downloadExpiresAt\n checksum\n }\n }\n}\n `;\n\n/**\n * __useExportJobProgressSubscription__\n *\n * To run a query within a React component, call `useExportJobProgressSubscription` and pass it any options that fit your needs.\n * When your component renders, `useExportJobProgressSubscription` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useExportJobProgressSubscription({\n * variables: {\n * jobId: // value for 'jobId'\n * },\n * });\n */\nexport function useExportJobProgressSubscription(baseOptions: ApolloReactHooks.SubscriptionHookOptions<Types.ExportJobProgressSubscription, Types.ExportJobProgressSubscriptionVariables> & ({ variables: Types.ExportJobProgressSubscriptionVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSubscription<Types.ExportJobProgressSubscription, Types.ExportJobProgressSubscriptionVariables>(ExportJobProgressDocument, options);\n }\nexport type ExportJobProgressSubscriptionHookResult = ReturnType<typeof useExportJobProgressSubscription>;\nexport type ExportJobProgressSubscriptionResult = Apollo.SubscriptionResult<Types.ExportJobProgressSubscription>;"],"mappings":";;;AAiPA,IAAaA,IAA0B,CAAG;;;;;;;;OAoC7BC,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4D7BC,IAA+B,CAAG;;;;;;;;;;;;;;;;;;;OA+ClCC,IAA0B,CAAG;;;;OAgC7BC,IAA+B,CAAG;;;;OAgClCC,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;OAsD5BC,IAA+B,CAAG;;;;;;;;;;;;;;;OA4ClCC,IAAuC,CAAG;;;;;;;;;;OA+C1CC,IAAqC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;OA8DxCC,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FF,CAAG;;;;;;;;;;;;;;;;AAqDxC,IAAaC,IAA4B,CAAG;;;;;;;;;;;;;;;;;;;;OA0D/BC,IAA8B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmEjCC,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiF5BC,IAA4B,CAAG"}
|
|
1
|
+
{"version":3,"file":"wspace-operations.js","names":["CancelExportJobDocument","CreateExportJobDocument","CreateExportTemplateDocument","DeleteExportJobDocument","DeleteExportTemplateDocument","RetryExportJobDocument","UpdateExportTemplateDocument","GetAvailableExportEntitiesDocument","GetExportJobDocument","GetExportTemplateDocument","ListExportTemplatesDocument","ListExportJobsDocument","ExportJobProgressDocument"],"sources":["../../src/generated/wspace-operations.ts"],"sourcesContent":["// @ts-nocheck\n/** Internal type. DO NOT USE DIRECTLY. */\ntype Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\n/** Internal type. DO NOT USE DIRECTLY. */\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\nimport * as Types from './wspace-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\n/**\n * Operation context for filtering and scoping data.\n * All fields are optional and can be extended as needed.\n */\nexport type ContextInput = {\n /** App ID for app-level scoping */\n appId?: string | number | null | undefined;\n /** Additional custom context as JSON */\n custom?: Record<string, unknown> | null | undefined;\n /** Project ID for project-level scoping */\n projectId?: string | number | null | undefined;\n /** User ID for user-level scoping */\n userId?: string | number | null | undefined;\n /** Workspace ID for workspace-level scoping */\n workspaceId?: string | number | null | undefined;\n};\n\nexport type CreateExportJobInput = {\n context?: ContextInput | null | undefined;\n dateRangeEnd?: string | null | undefined;\n dateRangeStart?: string | null | undefined;\n description?: string | null | undefined;\n entityFilters?: Record<string, unknown> | null | undefined;\n entityTypes: Array<string>;\n exportScope?: ExportScope | null | undefined;\n format?: ExportFormat | null | undefined;\n includeMedia?: boolean | null | undefined;\n includeMetadata?: boolean | null | undefined;\n name: string;\n organizationId?: string | number | null | undefined;\n templateId?: string | number | null | undefined;\n};\n\nexport type CreateExportTemplateInput = {\n context?: ContextInput | null | undefined;\n description?: string | null | undefined;\n entityFilters?: Record<string, unknown> | null | undefined;\n entityTypes: Array<string>;\n format?: ExportFormat | null | undefined;\n includeMedia?: boolean | null | undefined;\n includeMetadata?: boolean | null | undefined;\n name: string;\n};\n\nexport type ExportArchiveFormat =\n | 'ZIP';\n\nexport type ExportFormat =\n | 'CSV'\n | 'JSON';\n\nexport type ExportJobFilterInput = {\n context?: ContextInput | null | undefined;\n dateFrom?: string | null | undefined;\n dateTo?: string | null | undefined;\n entityTypes?: Array<string> | null | undefined;\n format?: ExportFormat | null | undefined;\n search?: string | null | undefined;\n status?: Array<ExportJobStatus> | null | undefined;\n};\n\nexport type ExportJobStatus =\n | 'CANCELLED'\n | 'COMPLETED'\n | 'CREATED'\n | 'DELETED'\n | 'EXPIRED'\n | 'FAILED'\n | 'QUEUED'\n | 'RUNNING';\n\nexport type ExportPaginationInput = {\n after?: string | null | undefined;\n before?: string | null | undefined;\n first?: number | null | undefined;\n last?: number | null | undefined;\n sortBy?: ExportSortField | null | undefined;\n sortDirection?: SortDirection | null | undefined;\n};\n\nexport type ExportScope =\n | 'INDIVIDUAL'\n | 'ORG_ADMIN'\n | 'WORKSPACE_ADMIN';\n\nexport type ExportSortField =\n | 'CREATED_AT'\n | 'NAME'\n | 'STATUS'\n | 'TOTAL_SIZE_BYTES'\n | 'UPDATED_AT';\n\n/** Standard sort direction */\nexport type SortDirection =\n | 'ASC'\n | 'DESC';\n\nexport type UpdateExportTemplateInput = {\n context?: ContextInput | null | undefined;\n description?: string | null | undefined;\n entityFilters?: Record<string, unknown> | null | undefined;\n entityTypes?: Array<string> | null | undefined;\n format?: ExportFormat | null | undefined;\n includeMedia?: boolean | null | undefined;\n includeMetadata?: boolean | null | undefined;\n isDefault?: boolean | null | undefined;\n name?: string | null | undefined;\n};\n\nexport type CancelExportJobMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type CancelExportJobMutation = { cancelExportJob: { id: string, status: Types.ExportJobStatus, updatedAt: string } };\n\nexport type CreateExportJobMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n input: Types.CreateExportJobInput;\n}>;\n\n\nexport type CreateExportJobMutation = { createExportJob: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, format: Types.ExportFormat, archiveFormat: Types.ExportArchiveFormat, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, entityFilters: Record<string, unknown> | null, includeMedia: boolean, includeMetadata: boolean, dateRangeStart: string | null, dateRangeEnd: string | null, processedEntities: number, totalEntities: number, totalSizeBytes: string, progress: number, templateId: string | null, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type CreateExportTemplateMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n input: Types.CreateExportTemplateInput;\n}>;\n\n\nexport type CreateExportTemplateMutation = { createExportTemplate: { id: string, name: string, description: string | null, entityTypes: Array<string>, format: Types.ExportFormat, entityFilters: Record<string, unknown> | null, includeMedia: boolean, includeMetadata: boolean, isDefault: boolean, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type DeleteExportJobMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type DeleteExportJobMutation = { deleteExportJob: boolean };\n\nexport type DeleteExportTemplateMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type DeleteExportTemplateMutation = { deleteExportTemplate: boolean };\n\nexport type RetryExportJobMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type RetryExportJobMutation = { retryExportJob: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, archiveFormat: Types.ExportArchiveFormat, progress: number, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, format: Types.ExportFormat, processedEntities: number, totalEntities: number, totalSizeBytes: string, templateId: string | null, workspaceId: string, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type UpdateExportTemplateMutationVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n input: Types.UpdateExportTemplateInput;\n}>;\n\n\nexport type UpdateExportTemplateMutation = { updateExportTemplate: { id: string, name: string, description: string | null, entityTypes: Array<string>, format: Types.ExportFormat, isDefault: boolean, workspaceId: string, createdBy: string, createdAt: string, updatedAt: string } };\n\nexport type GetAvailableExportEntitiesQueryVariables = Exact<{\n context: Types.ContextInput;\n pagination?: Types.ExportPaginationInput | null | undefined;\n}>;\n\n\nexport type GetAvailableExportEntitiesQuery = { getAvailableExportEntities: { totalCount: number, edges: Array<{ cursor: string, node: { entityType: string, displayName: string, description: string | null, enabled: boolean, estimatedSize: string | null, supportsDateRange: boolean, supportsMediaExport: boolean } }>, pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null } } };\n\nexport type GetExportJobQueryVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type GetExportJobQuery = { getExportJob: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, format: Types.ExportFormat, archiveFormat: Types.ExportArchiveFormat, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, entityFilters: Record<string, unknown> | null, includeMedia: boolean, includeMetadata: boolean, dateRangeStart: string | null, dateRangeEnd: string | null, processedEntities: number, totalEntities: number, totalSizeBytes: string, progress: number, errorMessage: string | null, errorCode: string | null, startedAt: string | null, completedAt: string | null, expiresAt: string | null, templateId: string | null, temporalWorkflowId: string | null, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string, updatedBy: string | null, parts: Array<{ id: string, partNumber: number, fileName: string, sizeBytes: string, entityTypes: Array<string>, downloadUrl: string | null, downloadExpiresAt: string | null, checksum: string | null }>, template: { id: string, name: string, description: string | null } | null } | null };\n\nexport type GetExportPartQueryVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type GetExportPartQuery = { getExportPart: { id: string, jobId: string, partNumber: number, fileName: string, sizeBytes: string, entityTypes: Array<string>, downloadUrl: string | null, downloadExpiresAt: string | null, checksum: string | null, createdAt: string } | null };\n\nexport type GetExportTemplateQueryVariables = Exact<{\n context?: Types.ContextInput | null | undefined;\n id: string | number;\n}>;\n\n\nexport type GetExportTemplateQuery = { getExportTemplate: { id: string, name: string, description: string | null, entityTypes: Array<string>, format: Types.ExportFormat, entityFilters: Record<string, unknown> | null, includeMedia: boolean, includeMetadata: boolean, isDefault: boolean, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string, updatedBy: string | null } | null };\n\nexport type ListExportTemplatesQueryVariables = Exact<{\n context: Types.ContextInput;\n pagination?: Types.ExportPaginationInput | null | undefined;\n}>;\n\n\nexport type ListExportTemplatesQuery = { listExportTemplates: { totalCount: number, edges: Array<{ cursor: string, node: { id: string, name: string, description: string | null, entityTypes: Array<string>, format: Types.ExportFormat, isDefault: boolean, workspaceId: string, tenantId: string | null, createdBy: string, createdAt: string, updatedAt: string, updatedBy: string | null } }>, pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null } } };\n\nexport type ListExportJobsQueryVariables = Exact<{\n filter?: Types.ExportJobFilterInput | null | undefined;\n pagination?: Types.ExportPaginationInput | null | undefined;\n context: Types.ContextInput;\n}>;\n\n\nexport type ListExportJobsQuery = { listExportJobs: { totalCount: number, edges: Array<{ cursor: string, node: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, format: Types.ExportFormat, archiveFormat: Types.ExportArchiveFormat, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, progress: number, totalEntities: number, processedEntities: number, totalSizeBytes: string, errorMessage: string | null, startedAt: string | null, completedAt: string | null, expiresAt: string | null, templateId: string | null, workspaceId: string, createdBy: string, createdAt: string, updatedAt: string } }>, pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null } } };\n\nexport type ExportJobProgressSubscriptionVariables = Exact<{\n jobId: string | number;\n}>;\n\n\nexport type ExportJobProgressSubscription = { exportJobProgress: { id: string, name: string, description: string | null, status: Types.ExportJobStatus, format: Types.ExportFormat, archiveFormat: Types.ExportArchiveFormat, archiveFileId: string | null, downloadUrl: string | null, downloadExpiresAt: string | null, exportScope: Types.ExportScope, organizationId: string | null, entityTypes: Array<string>, progress: number, processedEntities: number, totalEntities: number, totalSizeBytes: string, errorMessage: string | null, startedAt: string | null, completedAt: string | null, expiresAt: string | null, templateId: string | null, workspaceId: string, createdBy: string, createdAt: string, updatedAt: string, parts: Array<{ id: string, partNumber: number, fileName: string, sizeBytes: string, entityTypes: Array<string>, downloadUrl: string | null, downloadExpiresAt: string | null, checksum: string | null }> } };\n\n\nexport const CancelExportJobDocument = gql`\n mutation CancelExportJob($context: ContextInput, $id: ID!) {\n cancelExportJob(context: $context, id: $id) {\n id\n status\n updatedAt\n }\n}\n `;\nexport type CancelExportJobMutationFn = Apollo.MutationFunction<Types.CancelExportJobMutation, Types.CancelExportJobMutationVariables>;\n\n/**\n * __useCancelExportJobMutation__\n *\n * To run a mutation, you first call `useCancelExportJobMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCancelExportJobMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [cancelExportJobMutation, { data, loading, error }] = useCancelExportJobMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useCancelExportJobMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CancelExportJobMutation, Types.CancelExportJobMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CancelExportJobMutation, Types.CancelExportJobMutationVariables>(CancelExportJobDocument, options);\n }\nexport type CancelExportJobMutationHookResult = ReturnType<typeof useCancelExportJobMutation>;\nexport type CancelExportJobMutationResult = Apollo.MutationResult<Types.CancelExportJobMutation>;\nexport type CancelExportJobMutationOptions = Apollo.BaseMutationOptions<Types.CancelExportJobMutation, Types.CancelExportJobMutationVariables>;\nexport const CreateExportJobDocument = gql`\n mutation CreateExportJob($context: ContextInput, $input: CreateExportJobInput!) {\n createExportJob(context: $context, input: $input) {\n id\n name\n description\n status\n format\n archiveFormat\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n entityFilters\n includeMedia\n includeMetadata\n dateRangeStart\n dateRangeEnd\n processedEntities\n totalEntities\n totalSizeBytes\n progress\n templateId\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type CreateExportJobMutationFn = Apollo.MutationFunction<Types.CreateExportJobMutation, Types.CreateExportJobMutationVariables>;\n\n/**\n * __useCreateExportJobMutation__\n *\n * To run a mutation, you first call `useCreateExportJobMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCreateExportJobMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [createExportJobMutation, { data, loading, error }] = useCreateExportJobMutation({\n * variables: {\n * context: // value for 'context'\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCreateExportJobMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateExportJobMutation, Types.CreateExportJobMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CreateExportJobMutation, Types.CreateExportJobMutationVariables>(CreateExportJobDocument, options);\n }\nexport type CreateExportJobMutationHookResult = ReturnType<typeof useCreateExportJobMutation>;\nexport type CreateExportJobMutationResult = Apollo.MutationResult<Types.CreateExportJobMutation>;\nexport type CreateExportJobMutationOptions = Apollo.BaseMutationOptions<Types.CreateExportJobMutation, Types.CreateExportJobMutationVariables>;\nexport const CreateExportTemplateDocument = gql`\n mutation CreateExportTemplate($context: ContextInput, $input: CreateExportTemplateInput!) {\n createExportTemplate(context: $context, input: $input) {\n id\n name\n description\n entityTypes\n format\n entityFilters\n includeMedia\n includeMetadata\n isDefault\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type CreateExportTemplateMutationFn = Apollo.MutationFunction<Types.CreateExportTemplateMutation, Types.CreateExportTemplateMutationVariables>;\n\n/**\n * __useCreateExportTemplateMutation__\n *\n * To run a mutation, you first call `useCreateExportTemplateMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useCreateExportTemplateMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [createExportTemplateMutation, { data, loading, error }] = useCreateExportTemplateMutation({\n * variables: {\n * context: // value for 'context'\n * input: // value for 'input'\n * },\n * });\n */\nexport function useCreateExportTemplateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.CreateExportTemplateMutation, Types.CreateExportTemplateMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.CreateExportTemplateMutation, Types.CreateExportTemplateMutationVariables>(CreateExportTemplateDocument, options);\n }\nexport type CreateExportTemplateMutationHookResult = ReturnType<typeof useCreateExportTemplateMutation>;\nexport type CreateExportTemplateMutationResult = Apollo.MutationResult<Types.CreateExportTemplateMutation>;\nexport type CreateExportTemplateMutationOptions = Apollo.BaseMutationOptions<Types.CreateExportTemplateMutation, Types.CreateExportTemplateMutationVariables>;\nexport const DeleteExportJobDocument = gql`\n mutation DeleteExportJob($context: ContextInput, $id: ID!) {\n deleteExportJob(context: $context, id: $id)\n}\n `;\nexport type DeleteExportJobMutationFn = Apollo.MutationFunction<Types.DeleteExportJobMutation, Types.DeleteExportJobMutationVariables>;\n\n/**\n * __useDeleteExportJobMutation__\n *\n * To run a mutation, you first call `useDeleteExportJobMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useDeleteExportJobMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [deleteExportJobMutation, { data, loading, error }] = useDeleteExportJobMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useDeleteExportJobMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteExportJobMutation, Types.DeleteExportJobMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.DeleteExportJobMutation, Types.DeleteExportJobMutationVariables>(DeleteExportJobDocument, options);\n }\nexport type DeleteExportJobMutationHookResult = ReturnType<typeof useDeleteExportJobMutation>;\nexport type DeleteExportJobMutationResult = Apollo.MutationResult<Types.DeleteExportJobMutation>;\nexport type DeleteExportJobMutationOptions = Apollo.BaseMutationOptions<Types.DeleteExportJobMutation, Types.DeleteExportJobMutationVariables>;\nexport const DeleteExportTemplateDocument = gql`\n mutation DeleteExportTemplate($context: ContextInput, $id: ID!) {\n deleteExportTemplate(context: $context, id: $id)\n}\n `;\nexport type DeleteExportTemplateMutationFn = Apollo.MutationFunction<Types.DeleteExportTemplateMutation, Types.DeleteExportTemplateMutationVariables>;\n\n/**\n * __useDeleteExportTemplateMutation__\n *\n * To run a mutation, you first call `useDeleteExportTemplateMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useDeleteExportTemplateMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [deleteExportTemplateMutation, { data, loading, error }] = useDeleteExportTemplateMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useDeleteExportTemplateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.DeleteExportTemplateMutation, Types.DeleteExportTemplateMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.DeleteExportTemplateMutation, Types.DeleteExportTemplateMutationVariables>(DeleteExportTemplateDocument, options);\n }\nexport type DeleteExportTemplateMutationHookResult = ReturnType<typeof useDeleteExportTemplateMutation>;\nexport type DeleteExportTemplateMutationResult = Apollo.MutationResult<Types.DeleteExportTemplateMutation>;\nexport type DeleteExportTemplateMutationOptions = Apollo.BaseMutationOptions<Types.DeleteExportTemplateMutation, Types.DeleteExportTemplateMutationVariables>;\nexport const RetryExportJobDocument = gql`\n mutation RetryExportJob($context: ContextInput, $id: ID!) {\n retryExportJob(context: $context, id: $id) {\n id\n name\n description\n status\n archiveFormat\n progress\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n format\n processedEntities\n totalEntities\n totalSizeBytes\n templateId\n workspaceId\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type RetryExportJobMutationFn = Apollo.MutationFunction<Types.RetryExportJobMutation, Types.RetryExportJobMutationVariables>;\n\n/**\n * __useRetryExportJobMutation__\n *\n * To run a mutation, you first call `useRetryExportJobMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useRetryExportJobMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [retryExportJobMutation, { data, loading, error }] = useRetryExportJobMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useRetryExportJobMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RetryExportJobMutation, Types.RetryExportJobMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.RetryExportJobMutation, Types.RetryExportJobMutationVariables>(RetryExportJobDocument, options);\n }\nexport type RetryExportJobMutationHookResult = ReturnType<typeof useRetryExportJobMutation>;\nexport type RetryExportJobMutationResult = Apollo.MutationResult<Types.RetryExportJobMutation>;\nexport type RetryExportJobMutationOptions = Apollo.BaseMutationOptions<Types.RetryExportJobMutation, Types.RetryExportJobMutationVariables>;\nexport const UpdateExportTemplateDocument = gql`\n mutation UpdateExportTemplate($context: ContextInput, $id: ID!, $input: UpdateExportTemplateInput!) {\n updateExportTemplate(context: $context, id: $id, input: $input) {\n id\n name\n description\n entityTypes\n format\n isDefault\n workspaceId\n createdBy\n createdAt\n updatedAt\n }\n}\n `;\nexport type UpdateExportTemplateMutationFn = Apollo.MutationFunction<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>;\n\n/**\n * __useUpdateExportTemplateMutation__\n *\n * To run a mutation, you first call `useUpdateExportTemplateMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUpdateExportTemplateMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [updateExportTemplateMutation, { data, loading, error }] = useUpdateExportTemplateMutation({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * input: // value for 'input'\n * },\n * });\n */\nexport function useUpdateExportTemplateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>(UpdateExportTemplateDocument, options);\n }\nexport type UpdateExportTemplateMutationHookResult = ReturnType<typeof useUpdateExportTemplateMutation>;\nexport type UpdateExportTemplateMutationResult = Apollo.MutationResult<Types.UpdateExportTemplateMutation>;\nexport type UpdateExportTemplateMutationOptions = Apollo.BaseMutationOptions<Types.UpdateExportTemplateMutation, Types.UpdateExportTemplateMutationVariables>;\nexport const GetAvailableExportEntitiesDocument = gql`\n query GetAvailableExportEntities($context: ContextInput!, $pagination: ExportPaginationInput) {\n getAvailableExportEntities(context: $context, pagination: $pagination) {\n edges {\n cursor\n node {\n entityType\n displayName\n description\n enabled\n estimatedSize\n supportsDateRange\n supportsMediaExport\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}\n `;\n\n/**\n * __useGetAvailableExportEntitiesQuery__\n *\n * To run a query within a React component, call `useGetAvailableExportEntitiesQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetAvailableExportEntitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetAvailableExportEntitiesQuery({\n * variables: {\n * context: // value for 'context'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useGetAvailableExportEntitiesQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables> & ({ variables: Types.GetAvailableExportEntitiesQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>(GetAvailableExportEntitiesDocument, options);\n }\nexport function useGetAvailableExportEntitiesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>(GetAvailableExportEntitiesDocument, options);\n }\n// @ts-ignore\nexport function useGetAvailableExportEntitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>;\nexport function useGetAvailableExportEntitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetAvailableExportEntitiesQuery | undefined, Types.GetAvailableExportEntitiesQueryVariables>;\nexport function useGetAvailableExportEntitiesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>(GetAvailableExportEntitiesDocument, options);\n }\nexport type GetAvailableExportEntitiesQueryHookResult = ReturnType<typeof useGetAvailableExportEntitiesQuery>;\nexport type GetAvailableExportEntitiesLazyQueryHookResult = ReturnType<typeof useGetAvailableExportEntitiesLazyQuery>;\nexport type GetAvailableExportEntitiesSuspenseQueryHookResult = ReturnType<typeof useGetAvailableExportEntitiesSuspenseQuery>;\nexport type GetAvailableExportEntitiesQueryResult = Apollo.QueryResult<Types.GetAvailableExportEntitiesQuery, Types.GetAvailableExportEntitiesQueryVariables>;\nexport const GetExportJobDocument = gql`\n query GetExportJob($context: ContextInput, $id: ID!) {\n getExportJob(context: $context, id: $id) {\n id\n name\n description\n status\n format\n archiveFormat\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n entityFilters\n includeMedia\n includeMetadata\n dateRangeStart\n dateRangeEnd\n parts {\n id\n partNumber\n fileName\n sizeBytes\n entityTypes\n downloadUrl\n downloadExpiresAt\n checksum\n }\n processedEntities\n totalEntities\n totalSizeBytes\n progress\n errorMessage\n errorCode\n startedAt\n completedAt\n expiresAt\n templateId\n template {\n id\n name\n description\n }\n temporalWorkflowId\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n updatedBy\n }\n}\n `;\n\n/**\n * __useGetExportJobQuery__\n *\n * To run a query within a React component, call `useGetExportJobQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetExportJobQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetExportJobQuery({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetExportJobQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables> & ({ variables: Types.GetExportJobQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>(GetExportJobDocument, options);\n }\nexport function useGetExportJobLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>(GetExportJobDocument, options);\n }\n// @ts-ignore\nexport function useGetExportJobSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>;\nexport function useGetExportJobSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportJobQuery | undefined, Types.GetExportJobQueryVariables>;\nexport function useGetExportJobSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>(GetExportJobDocument, options);\n }\nexport type GetExportJobQueryHookResult = ReturnType<typeof useGetExportJobQuery>;\nexport type GetExportJobLazyQueryHookResult = ReturnType<typeof useGetExportJobLazyQuery>;\nexport type GetExportJobSuspenseQueryHookResult = ReturnType<typeof useGetExportJobSuspenseQuery>;\nexport type GetExportJobQueryResult = Apollo.QueryResult<Types.GetExportJobQuery, Types.GetExportJobQueryVariables>;\nexport const GetExportPartDocument = gql`\n query GetExportPart($context: ContextInput, $id: ID!) {\n getExportPart(context: $context, id: $id) {\n id\n jobId\n partNumber\n fileName\n sizeBytes\n entityTypes\n downloadUrl\n downloadExpiresAt\n checksum\n createdAt\n }\n}\n `;\n\n/**\n * __useGetExportPartQuery__\n *\n * To run a query within a React component, call `useGetExportPartQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetExportPartQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetExportPartQuery({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetExportPartQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables> & ({ variables: Types.GetExportPartQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>(GetExportPartDocument, options);\n }\nexport function useGetExportPartLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>(GetExportPartDocument, options);\n }\n// @ts-ignore\nexport function useGetExportPartSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>;\nexport function useGetExportPartSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportPartQuery | undefined, Types.GetExportPartQueryVariables>;\nexport function useGetExportPartSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>(GetExportPartDocument, options);\n }\nexport type GetExportPartQueryHookResult = ReturnType<typeof useGetExportPartQuery>;\nexport type GetExportPartLazyQueryHookResult = ReturnType<typeof useGetExportPartLazyQuery>;\nexport type GetExportPartSuspenseQueryHookResult = ReturnType<typeof useGetExportPartSuspenseQuery>;\nexport type GetExportPartQueryResult = Apollo.QueryResult<Types.GetExportPartQuery, Types.GetExportPartQueryVariables>;\nexport const GetExportTemplateDocument = gql`\n query GetExportTemplate($context: ContextInput, $id: ID!) {\n getExportTemplate(context: $context, id: $id) {\n id\n name\n description\n entityTypes\n format\n entityFilters\n includeMedia\n includeMetadata\n isDefault\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n updatedBy\n }\n}\n `;\n\n/**\n * __useGetExportTemplateQuery__\n *\n * To run a query within a React component, call `useGetExportTemplateQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetExportTemplateQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetExportTemplateQuery({\n * variables: {\n * context: // value for 'context'\n * id: // value for 'id'\n * },\n * });\n */\nexport function useGetExportTemplateQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables> & ({ variables: Types.GetExportTemplateQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>(GetExportTemplateDocument, options);\n }\nexport function useGetExportTemplateLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>(GetExportTemplateDocument, options);\n }\n// @ts-ignore\nexport function useGetExportTemplateSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>;\nexport function useGetExportTemplateSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetExportTemplateQuery | undefined, Types.GetExportTemplateQueryVariables>;\nexport function useGetExportTemplateSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>(GetExportTemplateDocument, options);\n }\nexport type GetExportTemplateQueryHookResult = ReturnType<typeof useGetExportTemplateQuery>;\nexport type GetExportTemplateLazyQueryHookResult = ReturnType<typeof useGetExportTemplateLazyQuery>;\nexport type GetExportTemplateSuspenseQueryHookResult = ReturnType<typeof useGetExportTemplateSuspenseQuery>;\nexport type GetExportTemplateQueryResult = Apollo.QueryResult<Types.GetExportTemplateQuery, Types.GetExportTemplateQueryVariables>;\nexport const ListExportTemplatesDocument = gql`\n query ListExportTemplates($context: ContextInput!, $pagination: ExportPaginationInput) {\n listExportTemplates(context: $context, pagination: $pagination) {\n edges {\n cursor\n node {\n id\n name\n description\n entityTypes\n format\n isDefault\n workspaceId\n tenantId\n createdBy\n createdAt\n updatedAt\n updatedBy\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}\n `;\n\n/**\n * __useListExportTemplatesQuery__\n *\n * To run a query within a React component, call `useListExportTemplatesQuery` and pass it any options that fit your needs.\n * When your component renders, `useListExportTemplatesQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useListExportTemplatesQuery({\n * variables: {\n * context: // value for 'context'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useListExportTemplatesQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables> & ({ variables: Types.ListExportTemplatesQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>(ListExportTemplatesDocument, options);\n }\nexport function useListExportTemplatesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>(ListExportTemplatesDocument, options);\n }\n// @ts-ignore\nexport function useListExportTemplatesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>;\nexport function useListExportTemplatesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListExportTemplatesQuery | undefined, Types.ListExportTemplatesQueryVariables>;\nexport function useListExportTemplatesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>(ListExportTemplatesDocument, options);\n }\nexport type ListExportTemplatesQueryHookResult = ReturnType<typeof useListExportTemplatesQuery>;\nexport type ListExportTemplatesLazyQueryHookResult = ReturnType<typeof useListExportTemplatesLazyQuery>;\nexport type ListExportTemplatesSuspenseQueryHookResult = ReturnType<typeof useListExportTemplatesSuspenseQuery>;\nexport type ListExportTemplatesQueryResult = Apollo.QueryResult<Types.ListExportTemplatesQuery, Types.ListExportTemplatesQueryVariables>;\nexport const ListExportJobsDocument = gql`\n query ListExportJobs($filter: ExportJobFilterInput, $pagination: ExportPaginationInput, $context: ContextInput!) {\n listExportJobs(filter: $filter, pagination: $pagination, context: $context) {\n edges {\n cursor\n node {\n id\n name\n description\n status\n format\n archiveFormat\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n progress\n totalEntities\n processedEntities\n totalSizeBytes\n errorMessage\n startedAt\n completedAt\n expiresAt\n templateId\n workspaceId\n createdBy\n createdAt\n updatedAt\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n totalCount\n }\n}\n `;\n\n/**\n * __useListExportJobsQuery__\n *\n * To run a query within a React component, call `useListExportJobsQuery` and pass it any options that fit your needs.\n * When your component renders, `useListExportJobsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useListExportJobsQuery({\n * variables: {\n * filter: // value for 'filter'\n * pagination: // value for 'pagination'\n * context: // value for 'context'\n * },\n * });\n */\nexport function useListExportJobsQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables> & ({ variables: Types.ListExportJobsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>(ListExportJobsDocument, options);\n }\nexport function useListExportJobsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>(ListExportJobsDocument, options);\n }\n// @ts-ignore\nexport function useListExportJobsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>;\nexport function useListExportJobsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ListExportJobsQuery | undefined, Types.ListExportJobsQueryVariables>;\nexport function useListExportJobsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>(ListExportJobsDocument, options);\n }\nexport type ListExportJobsQueryHookResult = ReturnType<typeof useListExportJobsQuery>;\nexport type ListExportJobsLazyQueryHookResult = ReturnType<typeof useListExportJobsLazyQuery>;\nexport type ListExportJobsSuspenseQueryHookResult = ReturnType<typeof useListExportJobsSuspenseQuery>;\nexport type ListExportJobsQueryResult = Apollo.QueryResult<Types.ListExportJobsQuery, Types.ListExportJobsQueryVariables>;\nexport const ExportJobProgressDocument = gql`\n subscription ExportJobProgress($jobId: ID!) {\n exportJobProgress(jobId: $jobId) {\n id\n name\n description\n status\n format\n archiveFormat\n archiveFileId\n downloadUrl\n downloadExpiresAt\n exportScope\n organizationId\n entityTypes\n progress\n processedEntities\n totalEntities\n totalSizeBytes\n errorMessage\n startedAt\n completedAt\n expiresAt\n templateId\n workspaceId\n createdBy\n createdAt\n updatedAt\n parts {\n id\n partNumber\n fileName\n sizeBytes\n entityTypes\n downloadUrl\n downloadExpiresAt\n checksum\n }\n }\n}\n `;\n\n/**\n * __useExportJobProgressSubscription__\n *\n * To run a query within a React component, call `useExportJobProgressSubscription` and pass it any options that fit your needs.\n * When your component renders, `useExportJobProgressSubscription` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useExportJobProgressSubscription({\n * variables: {\n * jobId: // value for 'jobId'\n * },\n * });\n */\nexport function useExportJobProgressSubscription(baseOptions: ApolloReactHooks.SubscriptionHookOptions<Types.ExportJobProgressSubscription, Types.ExportJobProgressSubscriptionVariables> & ({ variables: Types.ExportJobProgressSubscriptionVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSubscription<Types.ExportJobProgressSubscription, Types.ExportJobProgressSubscriptionVariables>(ExportJobProgressDocument, options);\n }\nexport type ExportJobProgressSubscriptionHookResult = ReturnType<typeof useExportJobProgressSubscription>;\nexport type ExportJobProgressSubscriptionResult = Apollo.SubscriptionResult<Types.ExportJobProgressSubscription>;"],"mappings":";;;AA0OA,IAAaA,IAA0B,CAAG;;;;;;;;OAoC7BC,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4D7BC,IAA+B,CAAG;;;;;;;;;;;;;;;;;;;OA+ClCC,IAA0B,CAAG;;;;OAgC7BC,IAA+B,CAAG;;;;OAgClCC,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;OAsD5BC,IAA+B,CAAG;;;;;;;;;;;;;;;OA4ClCC,IAAqC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;OA8DxCC,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FF,CAAG;;;;;;;;;;;;;;;;AAqDxC,IAAaC,IAA4B,CAAG;;;;;;;;;;;;;;;;;;;;OA0D/BC,IAA8B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmEjCC,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiF5BC,IAA4B,CAAG"}
|
package/dist/index.js
CHANGED
|
@@ -2,5 +2,4 @@ import { useExport as e } from "./export/providers/ExportProvider.js";
|
|
|
2
2
|
import { useExportStore as t } from "./export/store/exportStore.js";
|
|
3
3
|
import { ExportRoot as n } from "./export/ExportRoot.js";
|
|
4
4
|
import { enTranslations as r } from "./translations/en.js";
|
|
5
|
-
import "./export/index.js";
|
|
6
5
|
export { n as ExportRoot, r as enTranslations, e as useExport, t as useExportStore };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-export",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1127.1",
|
|
4
4
|
"description": "Burdenoff Export Microfrontend - Data export management interface",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"package.json",
|
|
9
9
|
"README.md"
|
|
10
10
|
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"**/*.css"
|
|
13
|
+
],
|
|
11
14
|
"imports": {
|
|
12
15
|
"#src/*": "./src/*",
|
|
13
16
|
"#export/*": "./src/export/*"
|
package/dist/export/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ExportRoot as e } from "./ExportRoot.js";
|
|
2
|
-
import { useExport as t } from "./providers/ExportProvider.js";
|
|
3
|
-
import { useExportStore as n } from "./store/exportStore.js";
|
|
4
|
-
import { enTranslations as r } from "../translations/en.js";
|
|
5
|
-
export { e as ExportRoot, r as enTranslations, t as useExport, n as useExportStore };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { brand as e, isBranded as t } from "./utils.js";
|
|
2
|
-
// node_modules/@apollo/client/errors/CombinedGraphQLErrors.js
|
|
3
|
-
function n(e) {
|
|
4
|
-
return e.filter((e) => e).map((e) => e.message || "Error message not found.").join("\n");
|
|
5
|
-
}
|
|
6
|
-
var r = class r extends Error {
|
|
7
|
-
static is(e) {
|
|
8
|
-
return t(e, "CombinedGraphQLErrors");
|
|
9
|
-
}
|
|
10
|
-
static formatMessage = n;
|
|
11
|
-
errors;
|
|
12
|
-
data;
|
|
13
|
-
extensions;
|
|
14
|
-
constructor(t, i = t.errors || []) {
|
|
15
|
-
super(r.formatMessage(i, {
|
|
16
|
-
result: t,
|
|
17
|
-
defaultFormatMessage: n
|
|
18
|
-
})), this.errors = i, this.data = t.data, this.extensions = t.extensions, this.name = "CombinedGraphQLErrors", e(this), Object.setPrototypeOf(this, r.prototype);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export { r as CombinedGraphQLErrors };
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=CombinedGraphQLErrors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CombinedGraphQLErrors.js","names":["defaultFormatMessage","errors","CombinedGraphQLErrors","isBranded","error","result","brand"],"sources":["../../../../../node_modules/@apollo/client/errors/CombinedGraphQLErrors.js"],"sourcesContent":["import { brand, isBranded } from \"./utils.js\";\nfunction defaultFormatMessage(errors) {\n return (errors\n // Handle non-spec-compliant servers: See #1185\n .filter((e) => e)\n .map((e) => e.message || \"Error message not found.\")\n .join(\"\\n\"));\n}\n/**\n * Represents the combined list of GraphQL errors returned from the server in a\n * GraphQL response. This error type is used when your GraphQL operation returns\n * errors in the `errors` field of the response.\n *\n * @remarks\n *\n * When your GraphQL operation encounters errors on the server side (such as\n * resolver errors, validation errors, or syntax errors), the server returns\n * these errors in the `errors` array of the GraphQL response. Apollo Client\n * wraps these errors in a `CombinedGraphQLErrors` object, which provides access\n * to the individual errors while maintaining additional context about the\n * response.\n *\n * @example\n *\n * ```ts\n * import { CombinedGraphQLErrors } from \"@apollo/client/errors\";\n *\n * // Check if an error is a CombinedGraphQLErrors object\n * if (CombinedGraphQLErrors.is(error)) {\n * // Access individual GraphQL errors\n * error.errors.forEach((graphQLError) => {\n * console.log(graphQLError.message);\n * console.log(graphQLError.path);\n * console.log(graphQLError.locations);\n * });\n *\n * // Access the original GraphQL result\n * console.log(error.result);\n * }\n * ```\n */\nexport class CombinedGraphQLErrors extends Error {\n /**\n * A method that determines whether an error is a `CombinedGraphQLErrors`\n * object. This method enables TypeScript to narrow the error type.\n * \n * @example\n * \n * ```ts\n * if (CombinedGraphQLErrors.is(error)) {\n * // TypeScript now knows `error` is a `CombinedGraphQLErrors` object\n * console.log(error.errors);\n * }\n * ```\n */\n static is(error) {\n return isBranded(error, \"CombinedGraphQLErrors\");\n }\n /**\n * A function that formats the error message used for the error's `message`\n * property. Override this method to provide your own formatting.\n * \n * @remarks\n * \n * The `formatMessage` function is called by the `CombinedGraphQLErrors`\n * constructor to provide a formatted message as the `message` property of the\n * `CombinedGraphQLErrors` object. Follow the [\"Providing a custom message\n * formatter\"](https://www.apollographql.com/docs/react/api/errors/CombinedGraphQLErrors#providing-a-custom-message-formatter) guide to learn how to modify the message format.\n * \n * @param errors - The array of GraphQL errors returned from the server in\n * the `errors` field of the response.\n * @param options - Additional context that could be useful when formatting\n * the message.\n */\n static formatMessage = defaultFormatMessage;\n /**\n * The raw list of GraphQL errors returned by the `errors` field in the GraphQL response.\n */\n errors;\n /**\n * Partial data returned in the `data` field of the GraphQL response.\n */\n data;\n /**\n * Extensions returned by the `extensions` field in the GraphQL response.\n */\n extensions;\n constructor(result, errors = result.errors || []) {\n super(CombinedGraphQLErrors.formatMessage(errors, {\n result,\n defaultFormatMessage,\n }));\n this.errors = errors;\n this.data = result.data;\n this.extensions = result.extensions;\n this.name = \"CombinedGraphQLErrors\";\n brand(this);\n Object.setPrototypeOf(this, CombinedGraphQLErrors.prototype);\n }\n}\n//# sourceMappingURL=CombinedGraphQLErrors.js.map\n"],"ignoreList":[0],"mappings":";;AACA,SAASA,EAAqB,GAAQ;CAClC,OAAQC,EAEH,QAAQ,MAAM,CAAC,CAAC,CAChB,KAAK,MAAM,EAAE,WAAW,0BAA0B,CAAC,CACnD,KAAK,IAAI;AAClB;AAkCA,IAAaC,IAAb,MAAaA,UAA8B,MAAM;CAc7C,OAAO,GAAG,GAAO;EACb,OAAOC,EAAUC,GAAO,uBAAuB;CACnD;CAiBA,OAAO,gBAAgBJ;CAIvB;CAIA;CAIA;CACA,YAAY,GAAQ,IAASK,EAAO,UAAU,CAAC,GAAG;EAU9C,AATA,MAAMH,EAAsB,cAAcD,GAAQ;GAC9C;GACA;EACJ,CAAC,CAAC,GACF,KAAK,SAASA,GACd,KAAK,OAAOI,EAAO,MACnB,KAAK,aAAaA,EAAO,YACzB,KAAK,OAAO,yBACZC,EAAM,IAAI,GACV,OAAO,eAAe,MAAMJ,EAAsB,SAAS;CAC/D;AACJ"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// node_modules/@apollo/client/errors/utils.js
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
return typeof e == "object" && !!e && e[Symbol.for("apollo.error")] === t;
|
|
4
|
-
}
|
|
5
|
-
function t(e) {
|
|
6
|
-
Object.defineProperty(e, Symbol.for("apollo.error"), {
|
|
7
|
-
value: e.name,
|
|
8
|
-
enumerable: !1,
|
|
9
|
-
writable: !1,
|
|
10
|
-
configurable: !1
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export { t as brand, e as isBranded };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["isBranded","error","name","brand"],"sources":["../../../../../node_modules/@apollo/client/errors/utils.js"],"sourcesContent":["export function isBranded(error, name) {\n return (typeof error === \"object\" &&\n error !== null &&\n error[Symbol.for(\"apollo.error\")] === name);\n}\nexport function brand(error) {\n Object.defineProperty(error, Symbol.for(\"apollo.error\"), {\n value: error.name,\n enumerable: false,\n writable: false,\n configurable: false,\n });\n}\n//# sourceMappingURL=utils.js.map"],"ignoreList":[0],"mappings":";AAAA,SAAgBA,EAAU,GAAO,GAAM;CACnC,OAAQ,OAAOC,KAAU,cACrBA,KACAA,EAAM,OAAO,IAAI,cAAc,OAAOC;AAC9C;AACA,SAAgBC,EAAM,GAAO;CACzB,OAAO,eAAeF,GAAO,OAAO,IAAI,cAAc,GAAG;EACrD,OAAOA,EAAM;EACb,YAAY;EACZ,UAAU;EACV,cAAc;CAClB,CAAC;AACL"}
|