@datawheel/bespoke 0.7.3-rc.1 → 0.8.0-rc.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/server.d.ts DELETED
@@ -1,98 +0,0 @@
1
- import * as _auth0_nextjs_auth0 from '@auth0/nextjs-auth0';
2
- import { NextApiRequest, NextApiResponse, NextApiHandler, GetServerSidePropsContext, GetStaticPathsResult, GetStaticPaths, GetStaticProps } from 'next';
3
- import { A as AppStore } from './store-a09ce360.js';
4
- export { a as dbApiFactory, u as useDatabaseApi } from './store-a09ce360.js';
5
- import * as querystring from 'querystring';
6
- export { R as ReportsDB } from './types-76133c94.js';
7
- import 'react';
8
- import 'next/app';
9
- import 'next-redux-wrapper';
10
- import '@reduxjs/toolkit/dist/configureStore';
11
- import '@reduxjs/toolkit';
12
- import './auth-693a652d.js';
13
- import '@auth0/nextjs-auth0/client';
14
- import '@mantine/core';
15
- import 'sequelize';
16
-
17
- declare const _default$1: _auth0_nextjs_auth0.GetSession;
18
-
19
- declare const _default: any;
20
-
21
- /**
22
- *
23
- * @param req Next req
24
- * @param res Next res
25
- * @param settings
26
- * @returns
27
- */
28
- declare const updateCurrentUserAppMetadata: (req: NextApiRequest, res: NextApiResponse, newMetadata: {
29
- [key: string]: string;
30
- }) => Promise<{
31
- [key: string]: string;
32
- }>;
33
-
34
- /**
35
- *
36
- * @param req Next req
37
- * @param res Next res
38
- * @param settings
39
- * @returns
40
- */
41
- declare const updateCurrentUserMetadata: (req: NextApiRequest, res: NextApiResponse, newMetadata: {
42
- [key: string]: string;
43
- }) => Promise<{
44
- [key: string]: string;
45
- }>;
46
-
47
- declare const withApiRoleAuthRequired: (apiRoute: NextApiHandler, allowedRoles: string[]) => NextApiHandler<any>;
48
-
49
- declare const searchUsersByMetadata: (key: string, value: string) => Promise<{
50
- [key: string]: string;
51
- }>;
52
-
53
- /**
54
- * Returns the instance connection to the DB.
55
- * This connection is shared through all items in the running server.
56
- * The function must run synchronously, so async startup operations are set to
57
- * run without `await`ing or monitoring the result.
58
- */
59
- declare const getDB: () => any;
60
-
61
- declare function endpointKey(method: string, path: string): string;
62
- declare function endpointNextJsHandlerFactory(req: NextApiRequest, res: NextApiResponse): Promise<void>;
63
-
64
- declare const reportsCrosswalkEntrypointFn: (crosswalk: any) => (_req: NextApiRequest, res: NextApiResponse) => Promise<void>;
65
-
66
- declare function BespokeManagerServerSideProps(options?: {
67
- preResolve?: (store: AppStore, ctx: GetServerSidePropsContext) => Promise<any>;
68
- postResolve?: (store: AppStore, ctx: GetServerSidePropsContext) => Promise<any>;
69
- /**
70
- * The variable name set in the current filename for Dynamic Routes.
71
- * @see {@link https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes}
72
- */
73
- pathSegmentsKey?: string;
74
- }): _auth0_nextjs_auth0.PageRoute<any, querystring.ParsedUrlQuery>;
75
-
76
- declare function BespokeRendererStaticPaths(options?: {
77
- /**
78
- * Enable nextjs getStaticPaths fallback.
79
- * Setting this to `false` will disable any other page not found at compile time.
80
- * @see {@link https://nextjs.org/docs/api-reference/data-fetching/get-static-paths#fallback-false}
81
- * @default true
82
- */
83
- fallback?: GetStaticPathsResult["fallback"];
84
- /**
85
- * The max amount of high ranking pages to pre-render PER Variant
86
- * @default 50
87
- */
88
- limit?: number;
89
- }): GetStaticPaths;
90
- declare function BespokeRendererStaticProps(options?: {
91
- /**
92
- * The variable name set in the current filename for Dynamic Routes.
93
- * @see {@link https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes}
94
- */
95
- pathSegmentsKey?: string;
96
- }): GetStaticProps;
97
-
98
- export { _default$1 as BespokeGetSession, _default as BespokeHandleAuth, BespokeManagerServerSideProps, BespokeRendererStaticPaths, BespokeRendererStaticProps, searchUsersByMetadata as BespokeSearchUsersByMetadata, updateCurrentUserAppMetadata as BespokeUpdateCurrentUserAppMetadata, updateCurrentUserMetadata as BespokeUpdateCurrentUserMetadata, withApiRoleAuthRequired as BespokeWithApiRoleAuthRequired, reportsCrosswalkEntrypointFn as ReportCrosswalkHandler, endpointKey, endpointNextJsHandlerFactory, getDB };