@nexo-labs/payload-stripe-inventory 1.6.11 → 1.6.12
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/index-BFzOtUiG.d.mts +72 -0
- package/dist/index-BFzOtUiG.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/server/index.d.mts +187 -30
- package/dist/server/index.d.mts.map +1 -1
- package/dist/server/index.mjs +338 -164
- package/dist/server/index.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/index-D-NQPUJO.d.mts +0 -892
- package/dist/index-D-NQPUJO.d.mts.map +0 -1
|
@@ -1,892 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" preserve="true" />
|
|
2
|
-
/// <reference types="react" preserve="true" />
|
|
3
|
-
/// <reference types="react/experimental" preserve="true" />
|
|
4
|
-
/// <reference types="react-dom" preserve="true" />
|
|
5
|
-
/// <reference types="react-dom/experimental" preserve="true" />
|
|
6
|
-
/// <reference types="node" />
|
|
7
|
-
/// <reference types="react" />
|
|
8
|
-
import Stripe from "stripe";
|
|
9
|
-
import { AsyncLocalStorage } from "async_hooks";
|
|
10
|
-
import React$1 from "react";
|
|
11
|
-
import { Agent, IncomingHttpHeaders, IncomingMessage, OutgoingHttpHeaders } from "http";
|
|
12
|
-
import { Agent as Agent$1 } from "https";
|
|
13
|
-
import { ParsedUrlQuery } from "querystring";
|
|
14
|
-
import { Readable } from "stream";
|
|
15
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
16
|
-
|
|
17
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/lib/load-custom-routes.d.ts
|
|
18
|
-
type RouteHas = {
|
|
19
|
-
type: string;
|
|
20
|
-
key: string;
|
|
21
|
-
value?: string;
|
|
22
|
-
} | {
|
|
23
|
-
type: 'host';
|
|
24
|
-
key?: undefined;
|
|
25
|
-
value: string;
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/base-http/index.d.ts
|
|
29
|
-
type FetchMetric = {
|
|
30
|
-
url: string;
|
|
31
|
-
idx: number;
|
|
32
|
-
end: number;
|
|
33
|
-
start: number;
|
|
34
|
-
method: string;
|
|
35
|
-
status: number;
|
|
36
|
-
cacheReason: string;
|
|
37
|
-
cacheStatus: 'hit' | 'miss' | 'skip' | 'hmr';
|
|
38
|
-
cacheWarning?: string;
|
|
39
|
-
};
|
|
40
|
-
declare abstract class BaseNextRequest<Body = any> {
|
|
41
|
-
method: string;
|
|
42
|
-
url: string;
|
|
43
|
-
body: Body;
|
|
44
|
-
protected _cookies: NextApiRequestCookies | undefined;
|
|
45
|
-
abstract headers: IncomingHttpHeaders;
|
|
46
|
-
abstract fetchMetrics: FetchMetric[] | undefined;
|
|
47
|
-
constructor(method: string, url: string, body: Body);
|
|
48
|
-
get cookies(): Partial<{
|
|
49
|
-
[key: string]: string;
|
|
50
|
-
}>;
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/api-utils/index.d.ts
|
|
54
|
-
type NextApiRequestCookies = Partial<{
|
|
55
|
-
[key: string]: string;
|
|
56
|
-
}>;
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/build/analysis/get-page-static-info.d.ts
|
|
59
|
-
type MiddlewareMatcher = {
|
|
60
|
-
regexp: string;
|
|
61
|
-
locale?: false;
|
|
62
|
-
has?: RouteHas[];
|
|
63
|
-
missing?: RouteHas[];
|
|
64
|
-
originalSource: string;
|
|
65
|
-
};
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/route-kind.d.ts
|
|
68
|
-
declare const enum RouteKind {
|
|
69
|
-
/**
|
|
70
|
-
* `PAGES` represents all the React pages that are under `pages/`.
|
|
71
|
-
*/
|
|
72
|
-
PAGES = "PAGES",
|
|
73
|
-
/**
|
|
74
|
-
* `PAGES_API` represents all the API routes under `pages/api/`.
|
|
75
|
-
*/
|
|
76
|
-
PAGES_API = "PAGES_API",
|
|
77
|
-
/**
|
|
78
|
-
* `APP_PAGE` represents all the React pages that are under `app/` with the
|
|
79
|
-
* filename of `page.{j,t}s{,x}`.
|
|
80
|
-
*/
|
|
81
|
-
APP_PAGE = "APP_PAGE",
|
|
82
|
-
/**
|
|
83
|
-
* `APP_ROUTE` represents all the API routes and metadata routes that are under `app/` with the
|
|
84
|
-
* filename of `route.{j,t}s{,x}`.
|
|
85
|
-
*/
|
|
86
|
-
APP_ROUTE = "APP_ROUTE",
|
|
87
|
-
/**
|
|
88
|
-
* `IMAGE` represents all the images that are generated by `next/image`.
|
|
89
|
-
*/
|
|
90
|
-
IMAGE = "IMAGE",
|
|
91
|
-
}
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/response-cache/types.d.ts
|
|
94
|
-
interface ServerComponentsHmrCache {
|
|
95
|
-
get(key: string): CachedFetchData | undefined;
|
|
96
|
-
set(key: string, data: CachedFetchData): void;
|
|
97
|
-
}
|
|
98
|
-
type CachedFetchData = {
|
|
99
|
-
headers: Record<string, string>;
|
|
100
|
-
body: string;
|
|
101
|
-
url: string;
|
|
102
|
-
status?: number;
|
|
103
|
-
};
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/shared/lib/constants.d.ts
|
|
106
|
-
declare const COMPILER_NAMES: {
|
|
107
|
-
readonly client: "client";
|
|
108
|
-
readonly server: "server";
|
|
109
|
-
readonly edgeServer: "edge-server";
|
|
110
|
-
};
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/route-definitions/route-definition.d.ts
|
|
113
|
-
interface RouteDefinition<K extends RouteKind = RouteKind> {
|
|
114
|
-
readonly kind: K;
|
|
115
|
-
readonly bundlePath: string;
|
|
116
|
-
readonly filename: string;
|
|
117
|
-
/**
|
|
118
|
-
* Describes the pathname including all internal modifiers such as
|
|
119
|
-
* intercepting routes, parallel routes and route/page suffixes that are not
|
|
120
|
-
* part of the pathname.
|
|
121
|
-
*/
|
|
122
|
-
readonly page: string;
|
|
123
|
-
/**
|
|
124
|
-
* The pathname (including dynamic placeholders) for a route to resolve.
|
|
125
|
-
*/
|
|
126
|
-
readonly pathname: string;
|
|
127
|
-
}
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/route-matches/route-match.d.ts
|
|
130
|
-
/**
|
|
131
|
-
* RouteMatch is the resolved match for a given request. This will contain all
|
|
132
|
-
* the dynamic parameters used for this route.
|
|
133
|
-
*/
|
|
134
|
-
interface RouteMatch<D extends RouteDefinition = RouteDefinition> {
|
|
135
|
-
readonly definition: D;
|
|
136
|
-
/**
|
|
137
|
-
* params when provided are the dynamic route parameters that were parsed from
|
|
138
|
-
* the incoming request pathname. If a route match is returned without any
|
|
139
|
-
* params, it should be considered a static route.
|
|
140
|
-
*/
|
|
141
|
-
readonly params: Params | undefined;
|
|
142
|
-
}
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/body-streams.d.ts
|
|
145
|
-
interface CloneableBody {
|
|
146
|
-
finalize(): Promise<void>;
|
|
147
|
-
cloneBodyStream(): Readable;
|
|
148
|
-
}
|
|
149
|
-
//#endregion
|
|
150
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/next-devtools/userspace/pages/pages-dev-overlay-setup.d.ts
|
|
151
|
-
type PagesDevOverlayBridgeType = typeof PagesDevOverlayBridge;
|
|
152
|
-
interface PagesDevOverlayBridgeProps {
|
|
153
|
-
children?: React$1.ReactNode;
|
|
154
|
-
}
|
|
155
|
-
declare function PagesDevOverlayBridge({
|
|
156
|
-
children
|
|
157
|
-
}: PagesDevOverlayBridgeProps): react_jsx_runtime0.JSX.Element;
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/request-meta.d.ts
|
|
160
|
-
declare const NEXT_REQUEST_META: unique symbol;
|
|
161
|
-
type NextIncomingMessage = (BaseNextRequest | IncomingMessage) & {
|
|
162
|
-
[NEXT_REQUEST_META]?: RequestMeta;
|
|
163
|
-
};
|
|
164
|
-
interface RequestMeta {
|
|
165
|
-
/**
|
|
166
|
-
* The query that was used to make the request.
|
|
167
|
-
*/
|
|
168
|
-
initQuery?: ParsedUrlQuery;
|
|
169
|
-
/**
|
|
170
|
-
* The URL that was used to make the request.
|
|
171
|
-
*/
|
|
172
|
-
initURL?: string;
|
|
173
|
-
/**
|
|
174
|
-
* The protocol that was used to make the request.
|
|
175
|
-
*/
|
|
176
|
-
initProtocol?: string;
|
|
177
|
-
/**
|
|
178
|
-
* The body that was read from the request. This is used to allow the body to
|
|
179
|
-
* be read multiple times.
|
|
180
|
-
*/
|
|
181
|
-
clonableBody?: CloneableBody;
|
|
182
|
-
/**
|
|
183
|
-
* True when the request matched a locale domain that was configured in the
|
|
184
|
-
* next.config.js file.
|
|
185
|
-
*/
|
|
186
|
-
isLocaleDomain?: boolean;
|
|
187
|
-
/**
|
|
188
|
-
* True when the request had locale information stripped from the pathname
|
|
189
|
-
* part of the URL.
|
|
190
|
-
*/
|
|
191
|
-
didStripLocale?: boolean;
|
|
192
|
-
/**
|
|
193
|
-
* If the request had it's URL rewritten, this is the URL it was rewritten to.
|
|
194
|
-
*/
|
|
195
|
-
rewroteURL?: string;
|
|
196
|
-
/**
|
|
197
|
-
* The cookies that were added by middleware and were added to the response.
|
|
198
|
-
*/
|
|
199
|
-
middlewareCookie?: string[];
|
|
200
|
-
/**
|
|
201
|
-
* The match on the request for a given route.
|
|
202
|
-
*/
|
|
203
|
-
match?: RouteMatch;
|
|
204
|
-
/**
|
|
205
|
-
* The incremental cache to use for the request.
|
|
206
|
-
*/
|
|
207
|
-
incrementalCache?: any;
|
|
208
|
-
/**
|
|
209
|
-
* The server components HMR cache, only for dev.
|
|
210
|
-
*/
|
|
211
|
-
serverComponentsHmrCache?: ServerComponentsHmrCache;
|
|
212
|
-
/**
|
|
213
|
-
* Equals the segment path that was used for the prefetch RSC request.
|
|
214
|
-
*/
|
|
215
|
-
segmentPrefetchRSCRequest?: string;
|
|
216
|
-
/**
|
|
217
|
-
* True when the request is for the prefetch flight data.
|
|
218
|
-
*/
|
|
219
|
-
isPrefetchRSCRequest?: true;
|
|
220
|
-
/**
|
|
221
|
-
* True when the request is for the flight data.
|
|
222
|
-
*/
|
|
223
|
-
isRSCRequest?: true;
|
|
224
|
-
/**
|
|
225
|
-
* A search param set by the Next.js client when performing RSC requests.
|
|
226
|
-
* Because some CDNs do not vary their cache entries on our custom headers,
|
|
227
|
-
* this search param represents a hash of the header values. For any cached
|
|
228
|
-
* RSC request, we should verify that the hash matches before responding.
|
|
229
|
-
* Otherwise this can lead to cache poisoning.
|
|
230
|
-
* TODO: Consider not using custom request headers at all, and instead encode
|
|
231
|
-
* everything into the search param.
|
|
232
|
-
*/
|
|
233
|
-
cacheBustingSearchParam?: string;
|
|
234
|
-
/**
|
|
235
|
-
* True when the request is for the `/_next/data` route using the pages
|
|
236
|
-
* router.
|
|
237
|
-
*/
|
|
238
|
-
isNextDataReq?: true;
|
|
239
|
-
/**
|
|
240
|
-
* Postponed state to use for resumption. If present it's assumed that the
|
|
241
|
-
* request is for a page that has postponed (there are no guarantees that the
|
|
242
|
-
* page actually has postponed though as it would incur an additional cache
|
|
243
|
-
* lookup).
|
|
244
|
-
*/
|
|
245
|
-
postponed?: string;
|
|
246
|
-
/**
|
|
247
|
-
* If provided, this will be called when a response cache entry was generated
|
|
248
|
-
* or looked up in the cache.
|
|
249
|
-
*/
|
|
250
|
-
onCacheEntry?: (cacheEntry: any, requestMeta: any) => Promise<boolean | void> | boolean | void;
|
|
251
|
-
/**
|
|
252
|
-
* The previous revalidate before rendering 404 page for notFound: true
|
|
253
|
-
*/
|
|
254
|
-
notFoundRevalidate?: number | false;
|
|
255
|
-
/**
|
|
256
|
-
* In development, the original source page that returned a 404.
|
|
257
|
-
*/
|
|
258
|
-
developmentNotFoundSourcePage?: string;
|
|
259
|
-
/**
|
|
260
|
-
* The path we routed to and should be invoked
|
|
261
|
-
*/
|
|
262
|
-
invokePath?: string;
|
|
263
|
-
/**
|
|
264
|
-
* The specific page output we should be matching
|
|
265
|
-
*/
|
|
266
|
-
invokeOutput?: string;
|
|
267
|
-
/**
|
|
268
|
-
* The status we are invoking the request with from routing
|
|
269
|
-
*/
|
|
270
|
-
invokeStatus?: number;
|
|
271
|
-
/**
|
|
272
|
-
* The routing error we are invoking with
|
|
273
|
-
*/
|
|
274
|
-
invokeError?: Error;
|
|
275
|
-
/**
|
|
276
|
-
* The query parsed for the invocation
|
|
277
|
-
*/
|
|
278
|
-
invokeQuery?: Record<string, undefined | string | string[]>;
|
|
279
|
-
/**
|
|
280
|
-
* Whether the request is a middleware invocation
|
|
281
|
-
*/
|
|
282
|
-
middlewareInvoke?: boolean;
|
|
283
|
-
/**
|
|
284
|
-
* Whether the request should render the fallback shell or not.
|
|
285
|
-
*/
|
|
286
|
-
renderFallbackShell?: boolean;
|
|
287
|
-
/**
|
|
288
|
-
* Whether the request is for the custom error page.
|
|
289
|
-
*/
|
|
290
|
-
customErrorRender?: true;
|
|
291
|
-
/**
|
|
292
|
-
* Whether to bubble up the NoFallbackError to the caller when a 404 is
|
|
293
|
-
* returned.
|
|
294
|
-
*/
|
|
295
|
-
bubbleNoFallback?: true;
|
|
296
|
-
/**
|
|
297
|
-
* True when the request had locale information inferred from the default
|
|
298
|
-
* locale.
|
|
299
|
-
*/
|
|
300
|
-
localeInferredFromDefault?: true;
|
|
301
|
-
/**
|
|
302
|
-
* The locale that was inferred or explicitly set for the request.
|
|
303
|
-
*/
|
|
304
|
-
locale?: string;
|
|
305
|
-
/**
|
|
306
|
-
* The default locale that was inferred or explicitly set for the request.
|
|
307
|
-
*/
|
|
308
|
-
defaultLocale?: string;
|
|
309
|
-
/**
|
|
310
|
-
* The project dir the server is running in
|
|
311
|
-
*/
|
|
312
|
-
projectDir?: string;
|
|
313
|
-
/**
|
|
314
|
-
* The dist directory the server is currently using
|
|
315
|
-
*/
|
|
316
|
-
distDir?: string;
|
|
317
|
-
/**
|
|
318
|
-
* Whether we are generating the fallback version of the page in dev mode
|
|
319
|
-
*/
|
|
320
|
-
isIsrFallback?: boolean;
|
|
321
|
-
/**
|
|
322
|
-
* The query after resolving routes
|
|
323
|
-
*/
|
|
324
|
-
query?: ParsedUrlQuery;
|
|
325
|
-
/**
|
|
326
|
-
* The params after resolving routes
|
|
327
|
-
*/
|
|
328
|
-
params?: ParsedUrlQuery;
|
|
329
|
-
/**
|
|
330
|
-
* The AMP validator to use in development
|
|
331
|
-
*/
|
|
332
|
-
ampValidator?: (html: string, pathname: string) => Promise<void>;
|
|
333
|
-
/**
|
|
334
|
-
* ErrorOverlay component to use in development for pages router
|
|
335
|
-
*/
|
|
336
|
-
PagesErrorDebug?: PagesDevOverlayBridgeType;
|
|
337
|
-
/**
|
|
338
|
-
* Whether server is in minimal mode (this will be replaced with more
|
|
339
|
-
* specific flags in future)
|
|
340
|
-
*/
|
|
341
|
-
minimalMode?: boolean;
|
|
342
|
-
}
|
|
343
|
-
//#endregion
|
|
344
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/lib/i18n-provider.d.ts
|
|
345
|
-
/**
|
|
346
|
-
* The result of matching a locale aware route.
|
|
347
|
-
*/
|
|
348
|
-
interface LocaleAnalysisResult {
|
|
349
|
-
/**
|
|
350
|
-
* The pathname without the locale prefix (if any).
|
|
351
|
-
*/
|
|
352
|
-
pathname: string;
|
|
353
|
-
/**
|
|
354
|
-
* The detected locale. If no locale was detected, this will be `undefined`.
|
|
355
|
-
*/
|
|
356
|
-
detectedLocale?: string;
|
|
357
|
-
/**
|
|
358
|
-
* True if the locale was inferred from the default locale.
|
|
359
|
-
*/
|
|
360
|
-
inferredFromDefault: boolean;
|
|
361
|
-
}
|
|
362
|
-
type LocaleAnalysisOptions = {
|
|
363
|
-
/**
|
|
364
|
-
* When provided, it will be used as the default locale if the locale
|
|
365
|
-
* cannot be inferred from the pathname.
|
|
366
|
-
*/
|
|
367
|
-
defaultLocale?: string;
|
|
368
|
-
};
|
|
369
|
-
/**
|
|
370
|
-
* The I18NProvider is used to match locale aware routes, detect the locale from
|
|
371
|
-
* the pathname and hostname and normalize the pathname by removing the locale
|
|
372
|
-
* prefix.
|
|
373
|
-
*/
|
|
374
|
-
declare class I18NProvider {
|
|
375
|
-
readonly config: Readonly<I18NConfig>;
|
|
376
|
-
private readonly lowerCaseLocales;
|
|
377
|
-
private readonly lowerCaseDomains?;
|
|
378
|
-
constructor(config: Readonly<I18NConfig>);
|
|
379
|
-
/**
|
|
380
|
-
* Detects the domain locale from the hostname and the detected locale if
|
|
381
|
-
* provided.
|
|
382
|
-
*
|
|
383
|
-
* @param hostname The hostname to detect the domain locale from, this must be lowercased.
|
|
384
|
-
* @param detectedLocale The detected locale to use if the hostname does not match.
|
|
385
|
-
* @returns The domain locale if found, `undefined` otherwise.
|
|
386
|
-
*/
|
|
387
|
-
detectDomainLocale(hostname?: string, detectedLocale?: string): DomainLocale | undefined;
|
|
388
|
-
/**
|
|
389
|
-
* Pulls the pre-computed locale and inference results from the query
|
|
390
|
-
* object.
|
|
391
|
-
*
|
|
392
|
-
* @param req the request object
|
|
393
|
-
* @param pathname the pathname that could contain a locale prefix
|
|
394
|
-
* @returns the locale analysis result
|
|
395
|
-
*/
|
|
396
|
-
fromRequest(req: NextIncomingMessage, pathname: string): LocaleAnalysisResult;
|
|
397
|
-
/**
|
|
398
|
-
* Analyzes the pathname for a locale and returns the pathname without it.
|
|
399
|
-
*
|
|
400
|
-
* @param pathname The pathname that could contain a locale prefix.
|
|
401
|
-
* @param options The options to use when matching the locale.
|
|
402
|
-
* @returns The matched locale and the pathname without the locale prefix
|
|
403
|
-
* (if any).
|
|
404
|
-
*/
|
|
405
|
-
analyze(pathname: string, options?: LocaleAnalysisOptions): LocaleAnalysisResult;
|
|
406
|
-
}
|
|
407
|
-
//#endregion
|
|
408
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/web/next-url.d.ts
|
|
409
|
-
interface Options {
|
|
410
|
-
base?: string | URL;
|
|
411
|
-
headers?: OutgoingHttpHeaders;
|
|
412
|
-
forceLocale?: boolean;
|
|
413
|
-
nextConfig?: {
|
|
414
|
-
basePath?: string;
|
|
415
|
-
i18n?: I18NConfig | null;
|
|
416
|
-
trailingSlash?: boolean;
|
|
417
|
-
};
|
|
418
|
-
i18nProvider?: I18NProvider;
|
|
419
|
-
}
|
|
420
|
-
declare const Internal: unique symbol;
|
|
421
|
-
declare class NextURL {
|
|
422
|
-
private [Internal];
|
|
423
|
-
constructor(input: string | URL, base?: string | URL, opts?: Options);
|
|
424
|
-
constructor(input: string | URL, opts?: Options);
|
|
425
|
-
private analyze;
|
|
426
|
-
private formatPathname;
|
|
427
|
-
private formatSearch;
|
|
428
|
-
get buildId(): string | undefined;
|
|
429
|
-
set buildId(buildId: string | undefined);
|
|
430
|
-
get locale(): string;
|
|
431
|
-
set locale(locale: string);
|
|
432
|
-
get defaultLocale(): string | undefined;
|
|
433
|
-
get domainLocale(): DomainLocale | undefined;
|
|
434
|
-
get searchParams(): URLSearchParams;
|
|
435
|
-
get host(): string;
|
|
436
|
-
set host(value: string);
|
|
437
|
-
get hostname(): string;
|
|
438
|
-
set hostname(value: string);
|
|
439
|
-
get port(): string;
|
|
440
|
-
set port(value: string);
|
|
441
|
-
get protocol(): string;
|
|
442
|
-
set protocol(value: string);
|
|
443
|
-
get href(): string;
|
|
444
|
-
set href(url: string);
|
|
445
|
-
get origin(): string;
|
|
446
|
-
get pathname(): string;
|
|
447
|
-
set pathname(value: string);
|
|
448
|
-
get hash(): string;
|
|
449
|
-
set hash(value: string);
|
|
450
|
-
get search(): string;
|
|
451
|
-
set search(value: string);
|
|
452
|
-
get password(): string;
|
|
453
|
-
set password(value: string);
|
|
454
|
-
get username(): string;
|
|
455
|
-
set username(value: string);
|
|
456
|
-
get basePath(): string;
|
|
457
|
-
set basePath(value: string);
|
|
458
|
-
toString(): string;
|
|
459
|
-
toJSON(): string;
|
|
460
|
-
clone(): NextURL;
|
|
461
|
-
}
|
|
462
|
-
//#endregion
|
|
463
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/compiled/@edge-runtime/cookies/index.d.ts
|
|
464
|
-
/**
|
|
465
|
-
* Basic HTTP cookie parser and serializer for HTTP servers.
|
|
466
|
-
*/
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Additional serialization options
|
|
470
|
-
*/
|
|
471
|
-
interface CookieSerializeOptions {
|
|
472
|
-
/**
|
|
473
|
-
* Specifies the value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.3|Domain Set-Cookie attribute}. By default, no
|
|
474
|
-
* domain is set, and most clients will consider the cookie to apply to only
|
|
475
|
-
* the current domain.
|
|
476
|
-
*/
|
|
477
|
-
domain?: string | undefined;
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Specifies a function that will be used to encode a cookie's value. Since
|
|
481
|
-
* value of a cookie has a limited character set (and must be a simple
|
|
482
|
-
* string), this function can be used to encode a value into a string suited
|
|
483
|
-
* for a cookie's value.
|
|
484
|
-
*
|
|
485
|
-
* The default function is the global `encodeURIComponent`, which will
|
|
486
|
-
* encode a JavaScript string into UTF-8 byte sequences and then URL-encode
|
|
487
|
-
* any that fall outside of the cookie range.
|
|
488
|
-
*/
|
|
489
|
-
encode?(value: string): string;
|
|
490
|
-
|
|
491
|
-
/**
|
|
492
|
-
* Specifies the `Date` object to be the value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.1|`Expires` `Set-Cookie` attribute}. By default,
|
|
493
|
-
* no expiration is set, and most clients will consider this a "non-persistent cookie" and will delete
|
|
494
|
-
* it on a condition like exiting a web browser application.
|
|
495
|
-
*
|
|
496
|
-
* *Note* the {@link https://tools.ietf.org/html/rfc6265#section-5.3|cookie storage model specification}
|
|
497
|
-
* states that if both `expires` and `maxAge` are set, then `maxAge` takes precedence, but it is
|
|
498
|
-
* possible not all clients by obey this, so if both are set, they should
|
|
499
|
-
* point to the same date and time.
|
|
500
|
-
*/
|
|
501
|
-
expires?: Date | undefined;
|
|
502
|
-
/**
|
|
503
|
-
* Specifies the boolean value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.6|`HttpOnly` `Set-Cookie` attribute}.
|
|
504
|
-
* When truthy, the `HttpOnly` attribute is set, otherwise it is not. By
|
|
505
|
-
* default, the `HttpOnly` attribute is not set.
|
|
506
|
-
*
|
|
507
|
-
* *Note* be careful when setting this to true, as compliant clients will
|
|
508
|
-
* not allow client-side JavaScript to see the cookie in `document.cookie`.
|
|
509
|
-
*/
|
|
510
|
-
httpOnly?: boolean | undefined;
|
|
511
|
-
/**
|
|
512
|
-
* Specifies the number (in seconds) to be the value for the `Max-Age`
|
|
513
|
-
* `Set-Cookie` attribute. The given number will be converted to an integer
|
|
514
|
-
* by rounding down. By default, no maximum age is set.
|
|
515
|
-
*
|
|
516
|
-
* *Note* the {@link https://tools.ietf.org/html/rfc6265#section-5.3|cookie storage model specification}
|
|
517
|
-
* states that if both `expires` and `maxAge` are set, then `maxAge` takes precedence, but it is
|
|
518
|
-
* possible not all clients by obey this, so if both are set, they should
|
|
519
|
-
* point to the same date and time.
|
|
520
|
-
*/
|
|
521
|
-
maxAge?: number | undefined;
|
|
522
|
-
/**
|
|
523
|
-
* Specifies the `boolean` value for the [`Partitioned` `Set-Cookie`](rfc-cutler-httpbis-partitioned-cookies)
|
|
524
|
-
* attribute. When truthy, the `Partitioned` attribute is set, otherwise it is not. By default, the
|
|
525
|
-
* `Partitioned` attribute is not set.
|
|
526
|
-
*
|
|
527
|
-
* **note** This is an attribute that has not yet been fully standardized, and may change in the future.
|
|
528
|
-
* This also means many clients may ignore this attribute until they understand it.
|
|
529
|
-
*
|
|
530
|
-
* More information about can be found in [the proposal](https://github.com/privacycg/CHIPS)
|
|
531
|
-
*/
|
|
532
|
-
partitioned?: boolean | undefined;
|
|
533
|
-
/**
|
|
534
|
-
* Specifies the value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.4|`Path` `Set-Cookie` attribute}.
|
|
535
|
-
* By default, the path is considered the "default path".
|
|
536
|
-
*/
|
|
537
|
-
path?: string | undefined;
|
|
538
|
-
/**
|
|
539
|
-
* Specifies the `string` to be the value for the [`Priority` `Set-Cookie` attribute][rfc-west-cookie-priority-00-4.1].
|
|
540
|
-
*
|
|
541
|
-
* - `'low'` will set the `Priority` attribute to `Low`.
|
|
542
|
-
* - `'medium'` will set the `Priority` attribute to `Medium`, the default priority when not set.
|
|
543
|
-
* - `'high'` will set the `Priority` attribute to `High`.
|
|
544
|
-
*
|
|
545
|
-
* More information about the different priority levels can be found in
|
|
546
|
-
* [the specification][rfc-west-cookie-priority-00-4.1].
|
|
547
|
-
*
|
|
548
|
-
* **note** This is an attribute that has not yet been fully standardized, and may change in the future.
|
|
549
|
-
* This also means many clients may ignore this attribute until they understand it.
|
|
550
|
-
*/
|
|
551
|
-
priority?: "low" | "medium" | "high" | undefined;
|
|
552
|
-
/**
|
|
553
|
-
* Specifies the boolean or string to be the value for the {@link https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7|`SameSite` `Set-Cookie` attribute}.
|
|
554
|
-
*
|
|
555
|
-
* - `true` will set the `SameSite` attribute to `Strict` for strict same
|
|
556
|
-
* site enforcement.
|
|
557
|
-
* - `false` will not set the `SameSite` attribute.
|
|
558
|
-
* - `'lax'` will set the `SameSite` attribute to Lax for lax same site
|
|
559
|
-
* enforcement.
|
|
560
|
-
* - `'strict'` will set the `SameSite` attribute to Strict for strict same
|
|
561
|
-
* site enforcement.
|
|
562
|
-
* - `'none'` will set the SameSite attribute to None for an explicit
|
|
563
|
-
* cross-site cookie.
|
|
564
|
-
*
|
|
565
|
-
* More information about the different enforcement levels can be found in {@link https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-03#section-4.1.2.7|the specification}.
|
|
566
|
-
*
|
|
567
|
-
* *note* This is an attribute that has not yet been fully standardized, and may change in the future. This also means many clients may ignore this attribute until they understand it.
|
|
568
|
-
*/
|
|
569
|
-
sameSite?: true | false | "lax" | "strict" | "none" | undefined;
|
|
570
|
-
/**
|
|
571
|
-
* Specifies the boolean value for the {@link https://tools.ietf.org/html/rfc6265#section-5.2.5|`Secure` `Set-Cookie` attribute}. When truthy, the
|
|
572
|
-
* `Secure` attribute is set, otherwise it is not. By default, the `Secure` attribute is not set.
|
|
573
|
-
*
|
|
574
|
-
* *Note* be careful when setting this to `true`, as compliant clients will
|
|
575
|
-
* not send the cookie back to the server in the future if the browser does
|
|
576
|
-
* not have an HTTPS connection.
|
|
577
|
-
*/
|
|
578
|
-
secure?: boolean | undefined;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* {@link https://wicg.github.io/cookie-store/#dictdef-cookielistitem CookieListItem}
|
|
583
|
-
* as specified by W3C.
|
|
584
|
-
*/
|
|
585
|
-
interface CookieListItem extends Pick<CookieSerializeOptions, 'domain' | 'path' | 'secure' | 'sameSite' | 'partitioned'> {
|
|
586
|
-
/** A string with the name of a cookie. */
|
|
587
|
-
name: string;
|
|
588
|
-
/** A string containing the value of the cookie. */
|
|
589
|
-
value: string;
|
|
590
|
-
/** A number of milliseconds or Date interface containing the expires of the cookie. */
|
|
591
|
-
expires?: number | CookieSerializeOptions['expires'];
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* Superset of {@link CookieListItem} extending it with
|
|
595
|
-
* the `httpOnly`, `maxAge` and `priority` properties.
|
|
596
|
-
*/
|
|
597
|
-
type ResponseCookie = CookieListItem & Pick<CookieSerializeOptions, 'httpOnly' | 'maxAge' | 'priority'>;
|
|
598
|
-
/**
|
|
599
|
-
* Subset of {@link CookieListItem}, only containing `name` and `value`
|
|
600
|
-
* since other cookie attributes aren't be available on a `Request`.
|
|
601
|
-
*/
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* A class for manipulating {@link Response} cookies (`Set-Cookie` header).
|
|
605
|
-
* Loose implementation of the experimental [Cookie Store API](https://wicg.github.io/cookie-store/#dictdef-cookie)
|
|
606
|
-
* The main difference is `ResponseCookies` methods do not return a Promise.
|
|
607
|
-
*/
|
|
608
|
-
declare class ResponseCookies {
|
|
609
|
-
constructor(responseHeaders: Headers);
|
|
610
|
-
/**
|
|
611
|
-
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
612
|
-
*/
|
|
613
|
-
get(...args: [key: string] | [options: ResponseCookie]): ResponseCookie | undefined;
|
|
614
|
-
/**
|
|
615
|
-
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
616
|
-
*/
|
|
617
|
-
getAll(...args: [key: string] | [options: ResponseCookie] | []): ResponseCookie[];
|
|
618
|
-
has(name: string): boolean;
|
|
619
|
-
/**
|
|
620
|
-
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
621
|
-
*/
|
|
622
|
-
set(...args: [key: string, value: string, cookie?: Partial<ResponseCookie>] | [options: ResponseCookie]): this;
|
|
623
|
-
/**
|
|
624
|
-
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
625
|
-
*/
|
|
626
|
-
delete(...args: [key: string] | [options: Omit<ResponseCookie, 'value' | 'expires'>]): this;
|
|
627
|
-
toString(): string;
|
|
628
|
-
}
|
|
629
|
-
//#endregion
|
|
630
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/web/spec-extension/response.d.ts
|
|
631
|
-
declare const INTERNALS: unique symbol;
|
|
632
|
-
/**
|
|
633
|
-
* This class extends the [Web `Response` API](https://developer.mozilla.org/docs/Web/API/Response) with additional convenience methods.
|
|
634
|
-
*
|
|
635
|
-
* Read more: [Next.js Docs: `NextResponse`](https://nextjs.org/docs/app/api-reference/functions/next-response)
|
|
636
|
-
*/
|
|
637
|
-
declare class NextResponse<Body = unknown> extends Response {
|
|
638
|
-
[INTERNALS]: {
|
|
639
|
-
cookies: ResponseCookies;
|
|
640
|
-
url?: NextURL;
|
|
641
|
-
body?: Body;
|
|
642
|
-
};
|
|
643
|
-
constructor(body?: BodyInit | null, init?: ResponseInit);
|
|
644
|
-
get cookies(): ResponseCookies;
|
|
645
|
-
static json<JsonBody>(body: JsonBody, init?: ResponseInit): NextResponse<JsonBody>;
|
|
646
|
-
static redirect(url: string | NextURL | URL, init?: number | ResponseInit): NextResponse<unknown>;
|
|
647
|
-
static rewrite(destination: string | NextURL | URL, init?: MiddlewareResponseInit): NextResponse<unknown>;
|
|
648
|
-
static next(init?: MiddlewareResponseInit): NextResponse<unknown>;
|
|
649
|
-
}
|
|
650
|
-
interface ResponseInit extends globalThis.ResponseInit {
|
|
651
|
-
nextConfig?: {
|
|
652
|
-
basePath?: string;
|
|
653
|
-
i18n?: I18NConfig;
|
|
654
|
-
trailingSlash?: boolean;
|
|
655
|
-
};
|
|
656
|
-
url?: string;
|
|
657
|
-
}
|
|
658
|
-
interface ModifiedRequest {
|
|
659
|
-
/**
|
|
660
|
-
* If this is set, the request headers will be overridden with this value.
|
|
661
|
-
*/
|
|
662
|
-
headers?: Headers;
|
|
663
|
-
}
|
|
664
|
-
interface MiddlewareResponseInit extends globalThis.ResponseInit {
|
|
665
|
-
/**
|
|
666
|
-
* These fields will override the request from clients.
|
|
667
|
-
*/
|
|
668
|
-
request?: ModifiedRequest;
|
|
669
|
-
}
|
|
670
|
-
//#endregion
|
|
671
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/client/route-loader.d.ts
|
|
672
|
-
declare global {
|
|
673
|
-
interface Window {
|
|
674
|
-
__BUILD_MANIFEST?: Record<string, string[]>;
|
|
675
|
-
__BUILD_MANIFEST_CB?: Function;
|
|
676
|
-
__MIDDLEWARE_MATCHERS?: MiddlewareMatcher[];
|
|
677
|
-
__MIDDLEWARE_MANIFEST_CB?: Function;
|
|
678
|
-
__REACT_LOADABLE_MANIFEST?: any;
|
|
679
|
-
__DYNAMIC_CSS_MANIFEST?: any;
|
|
680
|
-
__RSC_MANIFEST?: any;
|
|
681
|
-
__RSC_SERVER_MANIFEST?: any;
|
|
682
|
-
__NEXT_FONT_MANIFEST?: any;
|
|
683
|
-
__SUBRESOURCE_INTEGRITY_MANIFEST?: string;
|
|
684
|
-
__INTERCEPTION_ROUTE_REWRITE_MANIFEST?: string;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
//#endregion
|
|
688
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/client/page-loader.d.ts
|
|
689
|
-
declare global {
|
|
690
|
-
interface Window {
|
|
691
|
-
__DEV_MIDDLEWARE_MATCHERS?: MiddlewareMatcher[];
|
|
692
|
-
__DEV_PAGES_MANIFEST?: {
|
|
693
|
-
pages: string[];
|
|
694
|
-
};
|
|
695
|
-
__SSG_MANIFEST_CB?: () => void;
|
|
696
|
-
__SSG_MANIFEST?: Set<string>;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
//#endregion
|
|
700
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/shared/lib/router/router.d.ts
|
|
701
|
-
declare global {
|
|
702
|
-
interface Window {
|
|
703
|
-
__NEXT_DATA__: NEXT_DATA;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
//#endregion
|
|
707
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/shared/lib/loadable.shared-runtime.d.ts
|
|
708
|
-
declare global {
|
|
709
|
-
interface Window {
|
|
710
|
-
__NEXT_PRELOADREADY?: (ids?: (string | number)[]) => Promise<void>;
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
//#endregion
|
|
714
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/request/params.d.ts
|
|
715
|
-
type ParamValue = string | Array<string> | undefined;
|
|
716
|
-
type Params = Record<string, ParamValue>;
|
|
717
|
-
//#endregion
|
|
718
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/types.d.ts
|
|
719
|
-
declare module 'react' {
|
|
720
|
-
interface HtmlHTMLAttributes<T> extends React$1.HTMLAttributes<T> {
|
|
721
|
-
amp?: string;
|
|
722
|
-
}
|
|
723
|
-
interface ImgHTMLAttributes<T> {
|
|
724
|
-
fetchPriority?: 'high' | 'low' | 'auto' | undefined;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
declare global {
|
|
728
|
-
interface Crypto {
|
|
729
|
-
readonly subtle: SubtleCrypto;
|
|
730
|
-
getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T;
|
|
731
|
-
randomUUID(): string;
|
|
732
|
-
}
|
|
733
|
-
var __NEXT_HTTP_AGENT_OPTIONS: {
|
|
734
|
-
keepAlive?: boolean;
|
|
735
|
-
} | undefined;
|
|
736
|
-
var __NEXT_UNDICI_AGENT_SET: boolean;
|
|
737
|
-
var __NEXT_HTTP_AGENT: Agent;
|
|
738
|
-
var __NEXT_HTTPS_AGENT: Agent$1;
|
|
739
|
-
}
|
|
740
|
-
//#endregion
|
|
741
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/shared/lib/utils.d.ts
|
|
742
|
-
type NEXT_DATA = {
|
|
743
|
-
props: Record<string, any>;
|
|
744
|
-
page: string;
|
|
745
|
-
query: ParsedUrlQuery;
|
|
746
|
-
buildId: string;
|
|
747
|
-
assetPrefix?: string;
|
|
748
|
-
runtimeConfig?: {
|
|
749
|
-
[key: string]: any;
|
|
750
|
-
};
|
|
751
|
-
nextExport?: boolean;
|
|
752
|
-
autoExport?: boolean;
|
|
753
|
-
isFallback?: boolean;
|
|
754
|
-
isExperimentalCompile?: boolean;
|
|
755
|
-
dynamicIds?: (string | number)[];
|
|
756
|
-
err?: Error & {
|
|
757
|
-
statusCode?: number;
|
|
758
|
-
source?: typeof COMPILER_NAMES.server | typeof COMPILER_NAMES.edgeServer;
|
|
759
|
-
};
|
|
760
|
-
gsp?: boolean;
|
|
761
|
-
gssp?: boolean;
|
|
762
|
-
customServer?: boolean;
|
|
763
|
-
gip?: boolean;
|
|
764
|
-
appGip?: boolean;
|
|
765
|
-
locale?: string;
|
|
766
|
-
locales?: readonly string[];
|
|
767
|
-
defaultLocale?: string;
|
|
768
|
-
domainLocales?: readonly DomainLocale[];
|
|
769
|
-
scriptLoader?: any[];
|
|
770
|
-
isPreview?: boolean;
|
|
771
|
-
notFoundSrcPage?: string;
|
|
772
|
-
};
|
|
773
|
-
//#endregion
|
|
774
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/server/config-shared.d.ts
|
|
775
|
-
type I18NDomains = readonly DomainLocale[];
|
|
776
|
-
interface I18NConfig {
|
|
777
|
-
defaultLocale: string;
|
|
778
|
-
domains?: I18NDomains;
|
|
779
|
-
localeDetection?: false;
|
|
780
|
-
locales: readonly string[];
|
|
781
|
-
}
|
|
782
|
-
interface DomainLocale {
|
|
783
|
-
defaultLocale: string;
|
|
784
|
-
domain: string;
|
|
785
|
-
http?: true;
|
|
786
|
-
locales?: readonly string[];
|
|
787
|
-
}
|
|
788
|
-
//#endregion
|
|
789
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/dist/compiled/@vercel/og/types.d.ts
|
|
790
|
-
declare module 'react' {
|
|
791
|
-
interface HTMLAttributes<T> {
|
|
792
|
-
/**
|
|
793
|
-
* Specify styles using Tailwind CSS classes. This feature is currently experimental.
|
|
794
|
-
* If `style` prop is also specified, styles generated with `tw` prop will be overridden.
|
|
795
|
-
*
|
|
796
|
-
* Example:
|
|
797
|
-
* - `tw='w-full h-full bg-blue-200'`
|
|
798
|
-
* - `tw='text-9xl'`
|
|
799
|
-
* - `tw='text-[80px]'`
|
|
800
|
-
*
|
|
801
|
-
* @type {string}
|
|
802
|
-
*/
|
|
803
|
-
tw?: string;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
//#endregion
|
|
807
|
-
//#region ../../node_modules/.pnpm/next@15.4.10_@playwright+test@1.57.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.77.4/node_modules/next/server.d.ts
|
|
808
|
-
declare global {
|
|
809
|
-
var AsyncLocalStorage: typeof AsyncLocalStorage;
|
|
810
|
-
}
|
|
811
|
-
//#endregion
|
|
812
|
-
//#region src/types/api.types.d.ts
|
|
813
|
-
interface RouteHandlers {
|
|
814
|
-
GET: (request: Request) => Promise<NextResponse>;
|
|
815
|
-
}
|
|
816
|
-
interface StripeHandlers {
|
|
817
|
-
checkout: RouteHandlers;
|
|
818
|
-
portal: RouteHandlers;
|
|
819
|
-
update: RouteHandlers;
|
|
820
|
-
donation: RouteHandlers;
|
|
821
|
-
}
|
|
822
|
-
//#endregion
|
|
823
|
-
//#region src/types/customer.types.d.ts
|
|
824
|
-
interface Customer {
|
|
825
|
-
stripeId: string;
|
|
826
|
-
email: string;
|
|
827
|
-
inventory: CustomerInventory;
|
|
828
|
-
}
|
|
829
|
-
interface CustomerInventory {
|
|
830
|
-
subscriptions: {
|
|
831
|
-
[key: string]: Stripe.Subscription & {
|
|
832
|
-
permissions: string[];
|
|
833
|
-
};
|
|
834
|
-
};
|
|
835
|
-
products: {
|
|
836
|
-
[key: string]: Stripe.Product & {
|
|
837
|
-
permissions: string[];
|
|
838
|
-
};
|
|
839
|
-
};
|
|
840
|
-
payments: {
|
|
841
|
-
[key: string]: Stripe.PaymentIntent;
|
|
842
|
-
};
|
|
843
|
-
invoices: {
|
|
844
|
-
[key: string]: Stripe.Invoice;
|
|
845
|
-
};
|
|
846
|
-
}
|
|
847
|
-
//#endregion
|
|
848
|
-
//#region src/types/permission.types.d.ts
|
|
849
|
-
interface Permission {
|
|
850
|
-
id: number;
|
|
851
|
-
slug?: string | null;
|
|
852
|
-
singular_name: string;
|
|
853
|
-
updatedAt: string;
|
|
854
|
-
createdAt: string;
|
|
855
|
-
}
|
|
856
|
-
interface WithPermissions {
|
|
857
|
-
permissions?: (number | Permission)[] | null;
|
|
858
|
-
}
|
|
859
|
-
interface Subscription {
|
|
860
|
-
status?: string;
|
|
861
|
-
}
|
|
862
|
-
interface BaseUser<T = any> {
|
|
863
|
-
id: string | number;
|
|
864
|
-
name?: string;
|
|
865
|
-
email?: string;
|
|
866
|
-
customer?: Customer | null;
|
|
867
|
-
roles?: string[];
|
|
868
|
-
inventory?: T;
|
|
869
|
-
[key: string]: any;
|
|
870
|
-
}
|
|
871
|
-
interface User extends BaseUser {}
|
|
872
|
-
//#endregion
|
|
873
|
-
//#region src/types/user-inventory.types.d.ts
|
|
874
|
-
interface UnlockItem {
|
|
875
|
-
collection: string;
|
|
876
|
-
id: number;
|
|
877
|
-
dateUnlocked: Date;
|
|
878
|
-
payload?: any;
|
|
879
|
-
}
|
|
880
|
-
interface FavoriteItem {
|
|
881
|
-
collection: string;
|
|
882
|
-
id: number;
|
|
883
|
-
dateUnlocked: Date;
|
|
884
|
-
payload?: any;
|
|
885
|
-
}
|
|
886
|
-
interface UserInventory {
|
|
887
|
-
unlocks: UnlockItem[];
|
|
888
|
-
favorites: FavoriteItem[];
|
|
889
|
-
}
|
|
890
|
-
//#endregion
|
|
891
|
-
export { Permission as a, WithPermissions as c, RouteHandlers as d, StripeHandlers as f, BaseUser as i, Customer as l, UnlockItem as n, Subscription as o, NextResponse as p, UserInventory as r, User as s, FavoriteItem as t, CustomerInventory as u };
|
|
892
|
-
//# sourceMappingURL=index-D-NQPUJO.d.mts.map
|