@farm.js/core 0.1.0-beta.11 → 0.1.0-beta.13
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/{chunk-5EVQFRL2.mjs → chunk-3WIRO3N7.mjs} +2 -2
- package/dist/chunk-3WIRO3N7.mjs.map +1 -0
- package/dist/chunk-53MVSX3R.mjs +168 -0
- package/dist/chunk-53MVSX3R.mjs.map +1 -0
- package/dist/{chunk-AW6I64AP.mjs → chunk-6ZXIQSXE.mjs} +16 -1
- package/dist/chunk-6ZXIQSXE.mjs.map +1 -0
- package/dist/chunk-7ZVN3YZI.mjs +333 -0
- package/dist/chunk-7ZVN3YZI.mjs.map +1 -0
- package/dist/{chunk-7N62DNSO.mjs → chunk-H3TE3LOV.mjs} +2 -2
- package/dist/{chunk-QTZZ2ISQ.mjs → chunk-KLA67WKG.mjs} +1 -1
- package/dist/chunk-KLA67WKG.mjs.map +1 -0
- package/dist/{chunk-K5ZTUF22.mjs → chunk-L2PE36GQ.mjs} +7 -3
- package/dist/chunk-L2PE36GQ.mjs.map +1 -0
- package/dist/{chunk-4LND3PXF.mjs → chunk-OPHK6OJN.mjs} +513 -48
- package/dist/chunk-OPHK6OJN.mjs.map +1 -0
- package/dist/chunk-USLFXFFH.mjs +46 -0
- package/dist/chunk-USLFXFFH.mjs.map +1 -0
- package/dist/{chunk-4677KXB7.mjs → chunk-VSDZEB5M.mjs} +368 -103
- package/dist/chunk-VSDZEB5M.mjs.map +1 -0
- package/dist/{chunk-77BOAQHI.mjs → chunk-Z3YG4OZT.mjs} +725 -147
- package/dist/chunk-Z3YG4OZT.mjs.map +1 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +1 -1
- package/dist/{devtools-A22KUJZT.mjs → devtools-GAZ7F3KL.mjs} +4 -3
- package/dist/{devtools-A22KUJZT.mjs.map → devtools-GAZ7F3KL.mjs.map} +1 -1
- package/dist/docs.cjs +622 -124
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.mjs +5 -3
- package/dist/font.cjs +19 -2
- package/dist/font.cjs.map +1 -1
- package/dist/font.mjs +7 -3
- package/dist/index.cjs +2206 -680
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +27 -19
- package/dist/index.mjs.map +1 -1
- package/dist/internal/build-runtime.cjs +2033 -516
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.mjs +13 -10
- package/dist/internal/client-runtime.cjs +169 -2
- package/dist/internal/client-runtime.cjs.map +1 -1
- package/dist/internal/client-runtime.mjs +170 -2
- package/dist/internal/client-runtime.mjs.map +1 -1
- package/dist/internal/config-runtime.cjs +22 -0
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.mjs +3 -2
- package/dist/internal/metadata-image-runtime.cjs +199 -0
- package/dist/internal/metadata-image-runtime.cjs.map +1 -0
- package/dist/internal/metadata-image-runtime.mjs +8 -0
- package/dist/internal/metadata-image-runtime.mjs.map +1 -0
- package/dist/internal/production-runtime.cjs +310 -0
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.mjs +10 -0
- package/dist/internal/production-runtime.mjs.map +1 -1
- package/dist/navigation.cjs.map +1 -1
- package/dist/navigation.mjs +2 -2
- package/dist/plugin.cjs +1521 -339
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.mjs +9 -5
- package/dist/server.cjs +1634 -410
- package/dist/server.cjs.map +1 -1
- package/dist/server.mjs +17 -19
- package/dist/server.mjs.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +1575 -349
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +9 -5
- package/package.json +10 -1
- package/dist/after.d.mts +0 -25
- package/dist/after.d.ts +0 -25
- package/dist/agent-runtime.d.mts +0 -94
- package/dist/agent-runtime.d.ts +0 -94
- package/dist/api/route-manager.d.mts +0 -66
- package/dist/api/route-manager.d.ts +0 -66
- package/dist/api/runtime.d.mts +0 -3
- package/dist/api/runtime.d.ts +0 -3
- package/dist/api.d.mts +0 -48
- package/dist/api.d.ts +0 -48
- package/dist/app-BNE2FoZ4.d.mts +0 -302
- package/dist/app-DRGUmJ3s.d.ts +0 -302
- package/dist/app-markdown.d.mts +0 -22
- package/dist/app-markdown.d.ts +0 -22
- package/dist/cache.d.mts +0 -192
- package/dist/cache.d.ts +0 -192
- package/dist/chunk-4677KXB7.mjs.map +0 -1
- package/dist/chunk-4LND3PXF.mjs.map +0 -1
- package/dist/chunk-5EVQFRL2.mjs.map +0 -1
- package/dist/chunk-77BOAQHI.mjs.map +0 -1
- package/dist/chunk-AW6I64AP.mjs.map +0 -1
- package/dist/chunk-K5ZTUF22.mjs.map +0 -1
- package/dist/chunk-QM746KUO.mjs +0 -56
- package/dist/chunk-QM746KUO.mjs.map +0 -1
- package/dist/chunk-QTZZ2ISQ.mjs.map +0 -1
- package/dist/client-BT1mFQas.d.mts +0 -447
- package/dist/client-Nn0q4eO4.d.ts +0 -447
- package/dist/client-cache-CIlyBlmx.d.ts +0 -6
- package/dist/client-cache-D-EZ7XVW.d.mts +0 -6
- package/dist/client-plugins-Bc5jHcNr.d.ts +0 -1927
- package/dist/client-plugins-jsk-ZLzJ.d.mts +0 -1927
- package/dist/client-plugins.d.mts +0 -22
- package/dist/client-plugins.d.ts +0 -22
- package/dist/client.d.mts +0 -447
- package/dist/client.d.ts +0 -447
- package/dist/config.d.mts +0 -29
- package/dist/config.d.ts +0 -29
- package/dist/cron.d.mts +0 -78
- package/dist/cron.d.ts +0 -78
- package/dist/deferred.d.mts +0 -42
- package/dist/deferred.d.ts +0 -42
- package/dist/deployment.d.mts +0 -34
- package/dist/deployment.d.ts +0 -34
- package/dist/docs.d.mts +0 -69
- package/dist/docs.d.ts +0 -69
- package/dist/env-types.d.mts +0 -12
- package/dist/env-types.d.ts +0 -12
- package/dist/env.d.mts +0 -45
- package/dist/env.d.ts +0 -45
- package/dist/environment/vite.d.mts +0 -22
- package/dist/environment/vite.d.ts +0 -22
- package/dist/environment.d.mts +0 -18
- package/dist/environment.d.ts +0 -18
- package/dist/font.d.mts +0 -70
- package/dist/font.d.ts +0 -70
- package/dist/headers.d.mts +0 -22
- package/dist/headers.d.ts +0 -22
- package/dist/i18n/client.d.mts +0 -32
- package/dist/i18n/client.d.ts +0 -32
- package/dist/i18n/index.d.mts +0 -20
- package/dist/i18n/index.d.ts +0 -20
- package/dist/i18n/server.d.mts +0 -30
- package/dist/i18n/server.d.ts +0 -30
- package/dist/image/server.d.mts +0 -37
- package/dist/image/server.d.ts +0 -37
- package/dist/image/sharp.d.mts +0 -7
- package/dist/image/sharp.d.ts +0 -7
- package/dist/image-config-Duob7wER.d.mts +0 -50
- package/dist/image-config-Duob7wER.d.ts +0 -50
- package/dist/image.d.mts +0 -39
- package/dist/image.d.ts +0 -39
- package/dist/index.d.mts +0 -455
- package/dist/index.d.ts +0 -455
- package/dist/integration-api-CHT2OKAf.d.mts +0 -93
- package/dist/integration-api-CHT2OKAf.d.ts +0 -93
- package/dist/integrations.d.mts +0 -22
- package/dist/integrations.d.ts +0 -22
- package/dist/internal/build-runtime.d.mts +0 -39
- package/dist/internal/build-runtime.d.ts +0 -39
- package/dist/internal/client-runtime.d.mts +0 -2
- package/dist/internal/client-runtime.d.ts +0 -2
- package/dist/internal/config-runtime.d.mts +0 -39
- package/dist/internal/config-runtime.d.ts +0 -39
- package/dist/internal/production-node-env.d.mts +0 -12
- package/dist/internal/production-node-env.d.ts +0 -12
- package/dist/internal/production-runtime.d.mts +0 -41
- package/dist/internal/production-runtime.d.ts +0 -41
- package/dist/markdown.d.mts +0 -60
- package/dist/markdown.d.ts +0 -60
- package/dist/metadata-7ffpT3jr.d.mts +0 -22
- package/dist/metadata-JHn-8eht.d.ts +0 -22
- package/dist/middleware.d.mts +0 -164
- package/dist/middleware.d.ts +0 -164
- package/dist/navigation-errors-Dvwpzaer.d.mts +0 -13
- package/dist/navigation-errors-Dvwpzaer.d.ts +0 -13
- package/dist/navigation.d.mts +0 -14
- package/dist/navigation.d.ts +0 -14
- package/dist/observability.d.mts +0 -335
- package/dist/observability.d.ts +0 -335
- package/dist/params-BALtrRim.d.ts +0 -15
- package/dist/params-ry-lxqmy.d.mts +0 -15
- package/dist/plugin-BJDf43dc.d.mts +0 -165
- package/dist/plugin-BJDf43dc.d.ts +0 -165
- package/dist/plugin.d.mts +0 -22
- package/dist/plugin.d.ts +0 -22
- package/dist/production-runtime-9KG7GuvW.d.ts +0 -79
- package/dist/production-runtime-B-fweKts.d.mts +0 -79
- package/dist/production-runtime-C_B79w2P.d.mts +0 -28
- package/dist/production-runtime-DDEM1D2q.d.ts +0 -28
- package/dist/query/client.d.mts +0 -61
- package/dist/query/client.d.ts +0 -61
- package/dist/query/index.d.mts +0 -90
- package/dist/query/index.d.ts +0 -90
- package/dist/query/parsers.d.mts +0 -25
- package/dist/query/parsers.d.ts +0 -25
- package/dist/query/server.d.mts +0 -55
- package/dist/query/server.d.ts +0 -55
- package/dist/request-Dsq4kGW0.d.mts +0 -6
- package/dist/request-udtobOLv.d.ts +0 -6
- package/dist/request.d.mts +0 -2
- package/dist/request.d.ts +0 -2
- package/dist/resolver-DJqjLMg_.d.mts +0 -14
- package/dist/resolver-IH4RmPEl.d.ts +0 -14
- package/dist/route-runtime-DoOHzCAD.d.mts +0 -38
- package/dist/route-runtime-DoOHzCAD.d.ts +0 -38
- package/dist/router.d.mts +0 -36
- package/dist/router.d.ts +0 -36
- package/dist/routes.d.mts +0 -224
- package/dist/routes.d.ts +0 -224
- package/dist/runtime-9nQjVM7X.d.mts +0 -206
- package/dist/runtime-Cxpq6xZN.d.mts +0 -27
- package/dist/runtime-DgeS2skB.d.ts +0 -206
- package/dist/runtime-bv63eUiO.d.ts +0 -27
- package/dist/server-action-security.d.mts +0 -43
- package/dist/server-action-security.d.ts +0 -43
- package/dist/server-fn-client.d.mts +0 -32
- package/dist/server-fn-client.d.ts +0 -32
- package/dist/server-fn.d.mts +0 -93
- package/dist/server-fn.d.ts +0 -93
- package/dist/server-plugins.d.mts +0 -55
- package/dist/server-plugins.d.ts +0 -55
- package/dist/server-query-client.d.mts +0 -50
- package/dist/server-query-client.d.ts +0 -50
- package/dist/server-query.d.mts +0 -36
- package/dist/server-query.d.ts +0 -36
- package/dist/server.d.mts +0 -48
- package/dist/server.d.ts +0 -48
- package/dist/storage.d.mts +0 -52
- package/dist/storage.d.ts +0 -52
- package/dist/testing.d.mts +0 -101
- package/dist/testing.d.ts +0 -101
- package/dist/transport-BmbGTXA5.d.mts +0 -49
- package/dist/transport-BmbGTXA5.d.ts +0 -49
- package/dist/types-BMxWr97v.d.mts +0 -81
- package/dist/types-BMxWr97v.d.ts +0 -81
- package/dist/types-C9N-nk5R.d.mts +0 -53
- package/dist/types-C9N-nk5R.d.ts +0 -53
- package/dist/types-D1A6-XvH.d.mts +0 -73
- package/dist/types-D1A6-XvH.d.ts +0 -73
- package/dist/utils-CA0z0c-2.d.ts +0 -23
- package/dist/utils-mYVkSOt2.d.mts +0 -23
- package/dist/version.d.mts +0 -3
- package/dist/version.d.ts +0 -3
- package/dist/vite.d.mts +0 -22
- package/dist/vite.d.ts +0 -22
- package/dist/workflows.d.mts +0 -110
- package/dist/workflows.d.ts +0 -110
- /package/dist/{chunk-7N62DNSO.mjs.map → chunk-H3TE3LOV.mjs.map} +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
type FarmIntegrationAPIMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
|
|
2
|
-
type FarmIntegrationAPIBodyFormat = "json" | "form" | "none";
|
|
3
|
-
type FarmIntegrationAPIResponseFormat = "json" | "text" | "response";
|
|
4
|
-
interface FarmIntegrationAPIOperation<TBody = never, TQuery = never, TResponse = unknown, TServer extends boolean = false, TMethod extends FarmIntegrationAPIMethod = FarmIntegrationAPIMethod> {
|
|
5
|
-
readonly kind: "farm-integration-api-operation";
|
|
6
|
-
path: string;
|
|
7
|
-
method: TMethod;
|
|
8
|
-
bodyFormat?: FarmIntegrationAPIBodyFormat;
|
|
9
|
-
responseFormat?: FarmIntegrationAPIResponseFormat;
|
|
10
|
-
headers?: Record<string, string>;
|
|
11
|
-
credentials?: RequestCredentials;
|
|
12
|
-
isServer?: TServer;
|
|
13
|
-
__pathless?: boolean;
|
|
14
|
-
__types?: {
|
|
15
|
-
body: TBody;
|
|
16
|
-
query: TQuery;
|
|
17
|
-
response: TResponse;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
type FarmIntegrationAPI = {
|
|
21
|
-
[key: string]: FarmIntegrationAPI | FarmIntegrationAPIOperation<any, any, any, any, any>;
|
|
22
|
-
};
|
|
23
|
-
type FarmIntegrationRouteOperationCarrier<TPath extends string = string, TOperation extends FarmIntegrationAPIOperation<any, any, any, any, any> = FarmIntegrationAPIOperation<any, any, any, any, any>> = {
|
|
24
|
-
path: TPath;
|
|
25
|
-
__operation: TOperation;
|
|
26
|
-
};
|
|
27
|
-
type IntegrationAPIBuilderOptions<TServer extends boolean = false> = Omit<FarmIntegrationAPIOperation<any, any, any, TServer>, "kind" | "method" | "path" | "__pathless" | "__types">;
|
|
28
|
-
declare function defineIntegrationAPIOperation<TBody = never, TQuery = never, TResponse = unknown, TServer extends boolean = false, TMethod extends FarmIntegrationAPIMethod = FarmIntegrationAPIMethod>(operation: Omit<FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, TMethod>, "kind" | "__types">): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, TMethod>;
|
|
29
|
-
declare function defineIntegrationAPI<TAPI extends FarmIntegrationAPI>(api: TAPI): TAPI;
|
|
30
|
-
declare function get<TResponse = unknown, TServer extends boolean = false>(path: string, options?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, never, TResponse, TServer, "GET">;
|
|
31
|
-
declare function get<TQuery = never, TResponse = unknown, TServer extends boolean = false>(path: string, options?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "GET">;
|
|
32
|
-
declare function get<TResponse = unknown, TServer extends boolean = false>(options?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, never, TResponse, TServer, "GET">;
|
|
33
|
-
declare function get<TQuery = never, TResponse = unknown, TServer extends boolean = false>(options?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "GET">;
|
|
34
|
-
type RouteOperationsToAPI<TOperations extends readonly FarmIntegrationAPIOperation<any, any, any, any, any>[]> = {
|
|
35
|
-
[TMethod in Lowercase<TOperations[number]["method"] & string>]: Extract<TOperations[number], {
|
|
36
|
-
method: Uppercase<TMethod>;
|
|
37
|
-
}>;
|
|
38
|
-
};
|
|
39
|
-
type StripRouteClientPrefix<TPath extends string> = TPath extends `/api/${string}/${infer TRest}` ? TRest : TPath extends `/${string}/${infer TRest}` ? TRest : TPath extends `/${infer TRest}` ? TRest : TPath;
|
|
40
|
-
type NormalizeRouteSegment<TSegment extends string> = TSegment extends `[...${infer TName}]` ? TName : TSegment extends `[${infer TName}]` ? TName : TSegment extends `${infer TName}(${string}` ? TName : CamelCaseRouteSegment<TSegment>;
|
|
41
|
-
type CamelCaseRouteSegment<TSegment extends string> = TSegment extends `${infer THead}-${infer TTail}` ? `${THead}${Capitalize<CamelCaseRouteSegment<TTail>>}` : TSegment;
|
|
42
|
-
type RouteNamespaceFromPath<TPath extends string, TOperation extends FarmIntegrationAPIOperation<any, any, any, any, any>> = TPath extends `${infer THead}/${infer TTail}` ? {
|
|
43
|
-
[TKey in NormalizeRouteSegment<THead>]: RouteNamespaceFromPath<TTail, TOperation>;
|
|
44
|
-
} : {
|
|
45
|
-
[TKey in NormalizeRouteSegment<TPath>]: {
|
|
46
|
-
[TMethod in Lowercase<TOperation["method"] & string>]: TOperation;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
type UnionToIntersection<TUnion> = (TUnion extends unknown ? (value: TUnion) => void : never) extends (value: infer TIntersection) => void ? TIntersection : never;
|
|
50
|
-
type ExpandRecursively<TValue> = TValue extends (...args: any[]) => any ? TValue : TValue extends object ? {
|
|
51
|
-
[TKey in keyof TValue]: ExpandRecursively<TValue[TKey]>;
|
|
52
|
-
} : TValue;
|
|
53
|
-
type RoutesToAPI<TRoutes extends readonly FarmIntegrationRouteOperationCarrier<string, any>[]> = ExpandRecursively<UnionToIntersection<TRoutes[number] extends FarmIntegrationRouteOperationCarrier<infer TPath, infer TOperation> ? RouteNamespaceFromPath<StripRouteClientPrefix<TPath>, TOperation> : never>>;
|
|
54
|
-
type InferIntegrationAPIFromRoutes<TRoutes extends readonly FarmIntegrationRouteOperationCarrier<string, any>[]> = RoutesToAPI<TRoutes>;
|
|
55
|
-
declare function route<TAPI extends FarmIntegrationAPI>(path: string, definition: TAPI): TAPI;
|
|
56
|
-
declare function route<TOperations extends readonly FarmIntegrationAPIOperation<any, any, any, any, any>[]>(path: string, ...operations: TOperations): RouteOperationsToAPI<TOperations>;
|
|
57
|
-
declare function fromRoutes<TRoutes extends readonly FarmIntegrationRouteOperationCarrier<string, any>[]>(routes: TRoutes): RoutesToAPI<TRoutes>;
|
|
58
|
-
declare const api: {
|
|
59
|
-
get: typeof get;
|
|
60
|
-
route: typeof route;
|
|
61
|
-
fromRoutes: typeof fromRoutes;
|
|
62
|
-
post<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "POST">;
|
|
63
|
-
put<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PUT">;
|
|
64
|
-
patch<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PATCH">;
|
|
65
|
-
delete<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "DELETE">;
|
|
66
|
-
options<TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "OPTIONS">;
|
|
67
|
-
head<TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "HEAD">;
|
|
68
|
-
form: {
|
|
69
|
-
post<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "POST">;
|
|
70
|
-
put<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PUT">;
|
|
71
|
-
patch<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PATCH">;
|
|
72
|
-
delete<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "DELETE">;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
declare const endpoint: {
|
|
76
|
-
get: typeof get;
|
|
77
|
-
route: typeof route;
|
|
78
|
-
fromRoutes: typeof fromRoutes;
|
|
79
|
-
post<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "POST">;
|
|
80
|
-
put<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PUT">;
|
|
81
|
-
patch<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PATCH">;
|
|
82
|
-
delete<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "DELETE">;
|
|
83
|
-
options<TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "OPTIONS">;
|
|
84
|
-
head<TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "HEAD">;
|
|
85
|
-
form: {
|
|
86
|
-
post<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "POST">;
|
|
87
|
-
put<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PUT">;
|
|
88
|
-
patch<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PATCH">;
|
|
89
|
-
delete<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "DELETE">;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export { type FarmIntegrationAPI as F, type InferIntegrationAPIFromRoutes as I, type FarmIntegrationAPIOperation as a, api as b, defineIntegrationAPIOperation as c, defineIntegrationAPI as d, type FarmIntegrationAPIBodyFormat as e, type FarmIntegrationAPIMethod as f, type FarmIntegrationAPIResponseFormat as g, type FarmIntegrationRouteOperationCarrier as h, endpoint as i };
|
package/dist/integrations.d.mts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { F as FarmIntegrationAPI, e as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIMethod, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, b as api, d as defineIntegrationAPI, c as defineIntegrationAPIOperation } from './integration-api-CHT2OKAf.mjs';
|
|
3
|
-
export { b_ as DefinedIntegration, bh as FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY, W as FarmIntegration, b2 as FarmIntegrationCategory, bl as FarmIntegrationConfigContext, bm as FarmIntegrationConfigDefinition, bn as FarmIntegrationConfigInput, bs as FarmIntegrationData, bC as FarmIntegrationDocumentNavigation, bU as FarmIntegrationEndpointValue, bV as FarmIntegrationEndpoints, bX as FarmIntegrationEndpointsFactory, bW as FarmIntegrationEndpointsFactoryContext, bt as FarmIntegrationHandlerContext, be as FarmIntegrationInputSchema, bq as FarmIntegrationLifecycleContext, br as FarmIntegrationLifecycleHook, bo as FarmIntegrationLifecycleLogLevel, bp as FarmIntegrationLifecycleLogger, bN as FarmIntegrationLogEvent, bM as FarmIntegrationLogPhase, bO as FarmIntegrationLogger, bz as FarmIntegrationMiddleware, bB as FarmIntegrationProvider, bA as FarmIntegrationProviderProps, bg as FarmIntegrationRequestContextStore, bw as FarmIntegrationRoute, bk as FarmIntegrationRouteArgs, bi as FarmIntegrationRouteDb, bR as FarmIntegrationRouteFactory, bv as FarmIntegrationRouteHook, bu as FarmIntegrationRouteHookContext, b9 as FarmIntegrationRouteInput, bf as FarmIntegrationRouteInputSchemas, b7 as FarmIntegrationRouteInputSource, b6 as FarmIntegrationRouteMethod, by as FarmIntegrationRouteMiddleware, b4 as FarmIntegrationRouteParamValue, b5 as FarmIntegrationRouteParams, bj as FarmIntegrationRouteStorageArgs, bT as FarmIntegrationRoutesFactory, bS as FarmIntegrationRoutesFactoryContext, bK as FarmIntegrationSchema, bG as FarmIntegrationSchemaConstraint, bF as FarmIntegrationSchemaField, bD as FarmIntegrationSchemaFieldType, bH as FarmIntegrationSchemaModel, bI as FarmIntegrationSchemaModelExtension, bJ as FarmIntegrationSchemaModelOverride, bE as FarmIntegrationSchemaReference, b3 as FarmIntegrationSlot, bd as FarmIntegrationStandardValidationResult, bb as FarmIntegrationValidationErrorLike, ba as FarmIntegrationValidationIssue, b8 as FarmIntegrationValidationPathSegment, bc as FarmIntegrationValidationResult, bP as FarmIntegrationsUserConfig, bx as FarmTypedIntegrationRoute, bY as createIntegrationRoute, b$ as defineIntegration, bL as defineIntegrationSchema, cb as dispatchIntegrationRequest, bQ as getFarmIntegrationPluginServerRuntime, c3 as getIntegrationDocumentNavigationMatchers, c2 as getIntegrationProviders, c4 as getIntegrationSchemas, ca as getRegisteredIntegrationAPIManifest, c5 as getRegisteredIntegrationRuntime, c7 as getRegisteredIntegrationSchemas, c6 as getRegisteredIntegrations, bZ as integrationRoute, c0 as isFarmIntegration, c8 as matchIntegrationRoute, c9 as matchRegisteredIntegrationRoute, c1 as resolveIntegrationPlugins } from './client-plugins-jsk-ZLzJ.mjs';
|
|
4
|
-
import './plugin-BJDf43dc.mjs';
|
|
5
|
-
import 'http';
|
|
6
|
-
import './types-D1A6-XvH.mjs';
|
|
7
|
-
import 'db0';
|
|
8
|
-
import 'unstorage';
|
|
9
|
-
import '@farming-labs/orm';
|
|
10
|
-
import './types-C9N-nk5R.mjs';
|
|
11
|
-
import '@farming-labs/docs';
|
|
12
|
-
import './markdown.mjs';
|
|
13
|
-
import './observability.mjs';
|
|
14
|
-
import 'vite';
|
|
15
|
-
import './workflows.mjs';
|
|
16
|
-
import './cron.mjs';
|
|
17
|
-
import './env.mjs';
|
|
18
|
-
import './server-action-security.mjs';
|
|
19
|
-
import './image-config-Duob7wER.mjs';
|
|
20
|
-
import './types-BMxWr97v.mjs';
|
|
21
|
-
import './cache.mjs';
|
|
22
|
-
import './route-runtime-DoOHzCAD.mjs';
|
package/dist/integrations.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { F as FarmIntegrationAPI, e as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIMethod, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, b as api, d as defineIntegrationAPI, c as defineIntegrationAPIOperation } from './integration-api-CHT2OKAf.js';
|
|
3
|
-
export { b_ as DefinedIntegration, bh as FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY, W as FarmIntegration, b2 as FarmIntegrationCategory, bl as FarmIntegrationConfigContext, bm as FarmIntegrationConfigDefinition, bn as FarmIntegrationConfigInput, bs as FarmIntegrationData, bC as FarmIntegrationDocumentNavigation, bU as FarmIntegrationEndpointValue, bV as FarmIntegrationEndpoints, bX as FarmIntegrationEndpointsFactory, bW as FarmIntegrationEndpointsFactoryContext, bt as FarmIntegrationHandlerContext, be as FarmIntegrationInputSchema, bq as FarmIntegrationLifecycleContext, br as FarmIntegrationLifecycleHook, bo as FarmIntegrationLifecycleLogLevel, bp as FarmIntegrationLifecycleLogger, bN as FarmIntegrationLogEvent, bM as FarmIntegrationLogPhase, bO as FarmIntegrationLogger, bz as FarmIntegrationMiddleware, bB as FarmIntegrationProvider, bA as FarmIntegrationProviderProps, bg as FarmIntegrationRequestContextStore, bw as FarmIntegrationRoute, bk as FarmIntegrationRouteArgs, bi as FarmIntegrationRouteDb, bR as FarmIntegrationRouteFactory, bv as FarmIntegrationRouteHook, bu as FarmIntegrationRouteHookContext, b9 as FarmIntegrationRouteInput, bf as FarmIntegrationRouteInputSchemas, b7 as FarmIntegrationRouteInputSource, b6 as FarmIntegrationRouteMethod, by as FarmIntegrationRouteMiddleware, b4 as FarmIntegrationRouteParamValue, b5 as FarmIntegrationRouteParams, bj as FarmIntegrationRouteStorageArgs, bT as FarmIntegrationRoutesFactory, bS as FarmIntegrationRoutesFactoryContext, bK as FarmIntegrationSchema, bG as FarmIntegrationSchemaConstraint, bF as FarmIntegrationSchemaField, bD as FarmIntegrationSchemaFieldType, bH as FarmIntegrationSchemaModel, bI as FarmIntegrationSchemaModelExtension, bJ as FarmIntegrationSchemaModelOverride, bE as FarmIntegrationSchemaReference, b3 as FarmIntegrationSlot, bd as FarmIntegrationStandardValidationResult, bb as FarmIntegrationValidationErrorLike, ba as FarmIntegrationValidationIssue, b8 as FarmIntegrationValidationPathSegment, bc as FarmIntegrationValidationResult, bP as FarmIntegrationsUserConfig, bx as FarmTypedIntegrationRoute, bY as createIntegrationRoute, b$ as defineIntegration, bL as defineIntegrationSchema, cb as dispatchIntegrationRequest, bQ as getFarmIntegrationPluginServerRuntime, c3 as getIntegrationDocumentNavigationMatchers, c2 as getIntegrationProviders, c4 as getIntegrationSchemas, ca as getRegisteredIntegrationAPIManifest, c5 as getRegisteredIntegrationRuntime, c7 as getRegisteredIntegrationSchemas, c6 as getRegisteredIntegrations, bZ as integrationRoute, c0 as isFarmIntegration, c8 as matchIntegrationRoute, c9 as matchRegisteredIntegrationRoute, c1 as resolveIntegrationPlugins } from './client-plugins-Bc5jHcNr.js';
|
|
4
|
-
import './plugin-BJDf43dc.js';
|
|
5
|
-
import 'http';
|
|
6
|
-
import './types-D1A6-XvH.js';
|
|
7
|
-
import 'db0';
|
|
8
|
-
import 'unstorage';
|
|
9
|
-
import '@farming-labs/orm';
|
|
10
|
-
import './types-C9N-nk5R.js';
|
|
11
|
-
import '@farming-labs/docs';
|
|
12
|
-
import './markdown.js';
|
|
13
|
-
import './observability.js';
|
|
14
|
-
import 'vite';
|
|
15
|
-
import './workflows.js';
|
|
16
|
-
import './cron.js';
|
|
17
|
-
import './env.js';
|
|
18
|
-
import './server-action-security.js';
|
|
19
|
-
import './image-config-Duob7wER.js';
|
|
20
|
-
import './types-BMxWr97v.js';
|
|
21
|
-
import './cache.js';
|
|
22
|
-
import './route-runtime-DoOHzCAD.js';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { aU as ResolvedFarmConfig } from '../client-plugins-jsk-ZLzJ.mjs';
|
|
2
|
-
export { a5 as loadConfig, a4 as resolveConfig, a6 as resolveDeployConfig } from '../client-plugins-jsk-ZLzJ.mjs';
|
|
3
|
-
import { FarmProductionViteRuntime } from './config-runtime.mjs';
|
|
4
|
-
export { l as logger } from '../utils-mYVkSOt2.mjs';
|
|
5
|
-
import '../plugin-BJDf43dc.mjs';
|
|
6
|
-
import 'react';
|
|
7
|
-
import 'http';
|
|
8
|
-
import '../types-D1A6-XvH.mjs';
|
|
9
|
-
import 'db0';
|
|
10
|
-
import 'unstorage';
|
|
11
|
-
import '../integration-api-CHT2OKAf.mjs';
|
|
12
|
-
import '@farming-labs/orm';
|
|
13
|
-
import '../types-C9N-nk5R.mjs';
|
|
14
|
-
import '@farming-labs/docs';
|
|
15
|
-
import '../markdown.mjs';
|
|
16
|
-
import '../observability.mjs';
|
|
17
|
-
import 'vite';
|
|
18
|
-
import '../workflows.mjs';
|
|
19
|
-
import '../cron.mjs';
|
|
20
|
-
import '../env.mjs';
|
|
21
|
-
import '../server-action-security.mjs';
|
|
22
|
-
import '../image-config-Duob7wER.mjs';
|
|
23
|
-
import '../types-BMxWr97v.mjs';
|
|
24
|
-
import '../cache.mjs';
|
|
25
|
-
import '../route-runtime-DoOHzCAD.mjs';
|
|
26
|
-
|
|
27
|
-
interface BuildOptions {
|
|
28
|
-
preset?: string;
|
|
29
|
-
root?: string;
|
|
30
|
-
universal?: boolean;
|
|
31
|
-
/** @internal Production Vite preload started by the CLI. */
|
|
32
|
-
productionVite?: FarmProductionViteRuntime | Promise<FarmProductionViteRuntime>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Build Farm.js application for production
|
|
36
|
-
*/
|
|
37
|
-
declare function build(config: ResolvedFarmConfig, options?: BuildOptions): Promise<void>;
|
|
38
|
-
|
|
39
|
-
export { build };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { aU as ResolvedFarmConfig } from '../client-plugins-Bc5jHcNr.js';
|
|
2
|
-
export { a5 as loadConfig, a4 as resolveConfig, a6 as resolveDeployConfig } from '../client-plugins-Bc5jHcNr.js';
|
|
3
|
-
import { FarmProductionViteRuntime } from './config-runtime.js';
|
|
4
|
-
export { l as logger } from '../utils-CA0z0c-2.js';
|
|
5
|
-
import '../plugin-BJDf43dc.js';
|
|
6
|
-
import 'react';
|
|
7
|
-
import 'http';
|
|
8
|
-
import '../types-D1A6-XvH.js';
|
|
9
|
-
import 'db0';
|
|
10
|
-
import 'unstorage';
|
|
11
|
-
import '../integration-api-CHT2OKAf.js';
|
|
12
|
-
import '@farming-labs/orm';
|
|
13
|
-
import '../types-C9N-nk5R.js';
|
|
14
|
-
import '@farming-labs/docs';
|
|
15
|
-
import '../markdown.js';
|
|
16
|
-
import '../observability.js';
|
|
17
|
-
import 'vite';
|
|
18
|
-
import '../workflows.js';
|
|
19
|
-
import '../cron.js';
|
|
20
|
-
import '../env.js';
|
|
21
|
-
import '../server-action-security.js';
|
|
22
|
-
import '../image-config-Duob7wER.js';
|
|
23
|
-
import '../types-BMxWr97v.js';
|
|
24
|
-
import '../cache.js';
|
|
25
|
-
import '../route-runtime-DoOHzCAD.js';
|
|
26
|
-
|
|
27
|
-
interface BuildOptions {
|
|
28
|
-
preset?: string;
|
|
29
|
-
root?: string;
|
|
30
|
-
universal?: boolean;
|
|
31
|
-
/** @internal Production Vite preload started by the CLI. */
|
|
32
|
-
productionVite?: FarmProductionViteRuntime | Promise<FarmProductionViteRuntime>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Build Farm.js application for production
|
|
36
|
-
*/
|
|
37
|
-
declare function build(config: ResolvedFarmConfig, options?: BuildOptions): Promise<void>;
|
|
38
|
-
|
|
39
|
-
export { build };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export { a5 as loadConfig, a4 as resolveConfig, a6 as resolveDeployConfig } from '../client-plugins-jsk-ZLzJ.mjs';
|
|
2
|
-
import { build, createServer, loadEnv } from 'vite';
|
|
3
|
-
export { l as logger } from '../utils-mYVkSOt2.mjs';
|
|
4
|
-
import '../plugin-BJDf43dc.mjs';
|
|
5
|
-
import 'react';
|
|
6
|
-
import 'http';
|
|
7
|
-
import '../types-D1A6-XvH.mjs';
|
|
8
|
-
import 'db0';
|
|
9
|
-
import 'unstorage';
|
|
10
|
-
import '../integration-api-CHT2OKAf.mjs';
|
|
11
|
-
import '@farming-labs/orm';
|
|
12
|
-
import '../types-C9N-nk5R.mjs';
|
|
13
|
-
import '@farming-labs/docs';
|
|
14
|
-
import '../markdown.mjs';
|
|
15
|
-
import '../observability.mjs';
|
|
16
|
-
import '../workflows.mjs';
|
|
17
|
-
import '../cron.mjs';
|
|
18
|
-
import '../env.mjs';
|
|
19
|
-
import '../server-action-security.mjs';
|
|
20
|
-
import '../image-config-Duob7wER.mjs';
|
|
21
|
-
import '../types-BMxWr97v.mjs';
|
|
22
|
-
import '../cache.mjs';
|
|
23
|
-
import '../route-runtime-DoOHzCAD.mjs';
|
|
24
|
-
|
|
25
|
-
type FarmProductionViteBuilder = "rollup" | "rolldown";
|
|
26
|
-
interface FarmProductionViteRuntime {
|
|
27
|
-
build: typeof build;
|
|
28
|
-
createServer: typeof createServer;
|
|
29
|
-
loadEnv: typeof loadEnv;
|
|
30
|
-
builder: FarmProductionViteBuilder;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Prefer Vite's Rolldown-powered production builder on supported Node releases.
|
|
34
|
-
* Vite 5 remains the compatibility path for Node 18, --no-optional installs,
|
|
35
|
-
* and projects that explicitly request Rollup.
|
|
36
|
-
*/
|
|
37
|
-
declare function loadFarmProductionVite(): Promise<FarmProductionViteRuntime>;
|
|
38
|
-
|
|
39
|
-
export { type FarmProductionViteRuntime, loadFarmProductionVite };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export { a5 as loadConfig, a4 as resolveConfig, a6 as resolveDeployConfig } from '../client-plugins-Bc5jHcNr.js';
|
|
2
|
-
import { build, createServer, loadEnv } from 'vite';
|
|
3
|
-
export { l as logger } from '../utils-CA0z0c-2.js';
|
|
4
|
-
import '../plugin-BJDf43dc.js';
|
|
5
|
-
import 'react';
|
|
6
|
-
import 'http';
|
|
7
|
-
import '../types-D1A6-XvH.js';
|
|
8
|
-
import 'db0';
|
|
9
|
-
import 'unstorage';
|
|
10
|
-
import '../integration-api-CHT2OKAf.js';
|
|
11
|
-
import '@farming-labs/orm';
|
|
12
|
-
import '../types-C9N-nk5R.js';
|
|
13
|
-
import '@farming-labs/docs';
|
|
14
|
-
import '../markdown.js';
|
|
15
|
-
import '../observability.js';
|
|
16
|
-
import '../workflows.js';
|
|
17
|
-
import '../cron.js';
|
|
18
|
-
import '../env.js';
|
|
19
|
-
import '../server-action-security.js';
|
|
20
|
-
import '../image-config-Duob7wER.js';
|
|
21
|
-
import '../types-BMxWr97v.js';
|
|
22
|
-
import '../cache.js';
|
|
23
|
-
import '../route-runtime-DoOHzCAD.js';
|
|
24
|
-
|
|
25
|
-
type FarmProductionViteBuilder = "rollup" | "rolldown";
|
|
26
|
-
interface FarmProductionViteRuntime {
|
|
27
|
-
build: typeof build;
|
|
28
|
-
createServer: typeof createServer;
|
|
29
|
-
loadEnv: typeof loadEnv;
|
|
30
|
-
builder: FarmProductionViteBuilder;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Prefer Vite's Rolldown-powered production builder on supported Node releases.
|
|
34
|
-
* Vite 5 remains the compatibility path for Node 18, --no-optional installs,
|
|
35
|
-
* and projects that explicitly request Rollup.
|
|
36
|
-
*/
|
|
37
|
-
declare function loadFarmProductionVite(): Promise<FarmProductionViteRuntime>;
|
|
38
|
-
|
|
39
|
-
export { type FarmProductionViteRuntime, loadFarmProductionVite };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Keep overlapping production operations on the production condition.
|
|
3
|
-
*
|
|
4
|
-
* The state lives on `globalThis` so independently loaded CJS/ESM copies of
|
|
5
|
-
* Farm share one refcount. The first entrant captures the caller's value and
|
|
6
|
-
* only the last operation to settle restores it.
|
|
7
|
-
*
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
declare function withProductionNodeEnv<T>(operation: () => T | PromiseLike<T>): Promise<T>;
|
|
11
|
-
|
|
12
|
-
export { withProductionNodeEnv };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Keep overlapping production operations on the production condition.
|
|
3
|
-
*
|
|
4
|
-
* The state lives on `globalThis` so independently loaded CJS/ESM copies of
|
|
5
|
-
* Farm share one refcount. The first entrant captures the caller's value and
|
|
6
|
-
* only the last operation to settle restores it.
|
|
7
|
-
*
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
declare function withProductionNodeEnv<T>(operation: () => T | PromiseLike<T>): Promise<T>;
|
|
11
|
-
|
|
12
|
-
export { withProductionNodeEnv };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export { _runWithAfterRequest } from '../after.mjs';
|
|
2
|
-
export { _ as _runWithCurrentRequest, g as getCurrentRequest } from '../request-Dsq4kGW0.mjs';
|
|
3
|
-
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.mjs';
|
|
4
|
-
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-DJqjLMg_.mjs';
|
|
5
|
-
export { localizeFarmHref, localizeFarmPathname, stripFarmLocaleFromPathname } from '../i18n/index.mjs';
|
|
6
|
-
export { a as addMetadataImageReference, m as mergeMetadata, r as renderMetadataHead } from '../metadata-7ffpT3jr.mjs';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner } from '../production-runtime-B-fweKts.mjs';
|
|
8
|
-
export { g as getFarmRedirectError, i as isFarmNotFoundError, a as isFarmRedirectError } from '../navigation-errors-Dvwpzaer.mjs';
|
|
9
|
-
export { configureFarmObservability, emitFarmEvent } from '../observability.mjs';
|
|
10
|
-
import { F as FarmConfig, e as FarmContextFactoryInput } from '../client-plugins-jsk-ZLzJ.mjs';
|
|
11
|
-
import 'node:http';
|
|
12
|
-
import '../types-BMxWr97v.mjs';
|
|
13
|
-
import '../plugin-BJDf43dc.mjs';
|
|
14
|
-
import 'react';
|
|
15
|
-
import 'http';
|
|
16
|
-
import '../types-D1A6-XvH.mjs';
|
|
17
|
-
import 'db0';
|
|
18
|
-
import 'unstorage';
|
|
19
|
-
import '../integration-api-CHT2OKAf.mjs';
|
|
20
|
-
import '@farming-labs/orm';
|
|
21
|
-
import '../types-C9N-nk5R.mjs';
|
|
22
|
-
import '@farming-labs/docs';
|
|
23
|
-
import '../markdown.mjs';
|
|
24
|
-
import 'vite';
|
|
25
|
-
import '../workflows.mjs';
|
|
26
|
-
import '../cron.mjs';
|
|
27
|
-
import '../env.mjs';
|
|
28
|
-
import '../server-action-security.mjs';
|
|
29
|
-
import '../image-config-Duob7wER.mjs';
|
|
30
|
-
import '../route-runtime-DoOHzCAD.mjs';
|
|
31
|
-
|
|
32
|
-
declare const FARM_ROUTE_CONTEXT_SYMBOL: unique symbol;
|
|
33
|
-
type FarmRouteContextCarrier<TContext = unknown> = {
|
|
34
|
-
[FARM_ROUTE_CONTEXT_SYMBOL]?: TContext;
|
|
35
|
-
};
|
|
36
|
-
declare function resolveFarmRouteContext(config: Pick<FarmConfig, "context">, input: FarmContextFactoryInput): Promise<unknown>;
|
|
37
|
-
declare function withFarmRouteContext<TProps extends object, TContext>(props: TProps, context: TContext | undefined): TProps & FarmRouteContextCarrier<TContext>;
|
|
38
|
-
|
|
39
|
-
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
40
|
-
|
|
41
|
-
export { appendFarmLinkHeader, resolveFarmRouteContext, withFarmRouteContext };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export { _runWithAfterRequest } from '../after.js';
|
|
2
|
-
export { _ as _runWithCurrentRequest, g as getCurrentRequest } from '../request-udtobOLv.js';
|
|
3
|
-
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.js';
|
|
4
|
-
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-IH4RmPEl.js';
|
|
5
|
-
export { localizeFarmHref, localizeFarmPathname, stripFarmLocaleFromPathname } from '../i18n/index.js';
|
|
6
|
-
export { a as addMetadataImageReference, m as mergeMetadata, r as renderMetadataHead } from '../metadata-JHn-8eht.js';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner } from '../production-runtime-9KG7GuvW.js';
|
|
8
|
-
export { g as getFarmRedirectError, i as isFarmNotFoundError, a as isFarmRedirectError } from '../navigation-errors-Dvwpzaer.js';
|
|
9
|
-
export { configureFarmObservability, emitFarmEvent } from '../observability.js';
|
|
10
|
-
import { F as FarmConfig, e as FarmContextFactoryInput } from '../client-plugins-Bc5jHcNr.js';
|
|
11
|
-
import 'node:http';
|
|
12
|
-
import '../types-BMxWr97v.js';
|
|
13
|
-
import '../plugin-BJDf43dc.js';
|
|
14
|
-
import 'react';
|
|
15
|
-
import 'http';
|
|
16
|
-
import '../types-D1A6-XvH.js';
|
|
17
|
-
import 'db0';
|
|
18
|
-
import 'unstorage';
|
|
19
|
-
import '../integration-api-CHT2OKAf.js';
|
|
20
|
-
import '@farming-labs/orm';
|
|
21
|
-
import '../types-C9N-nk5R.js';
|
|
22
|
-
import '@farming-labs/docs';
|
|
23
|
-
import '../markdown.js';
|
|
24
|
-
import 'vite';
|
|
25
|
-
import '../workflows.js';
|
|
26
|
-
import '../cron.js';
|
|
27
|
-
import '../env.js';
|
|
28
|
-
import '../server-action-security.js';
|
|
29
|
-
import '../image-config-Duob7wER.js';
|
|
30
|
-
import '../route-runtime-DoOHzCAD.js';
|
|
31
|
-
|
|
32
|
-
declare const FARM_ROUTE_CONTEXT_SYMBOL: unique symbol;
|
|
33
|
-
type FarmRouteContextCarrier<TContext = unknown> = {
|
|
34
|
-
[FARM_ROUTE_CONTEXT_SYMBOL]?: TContext;
|
|
35
|
-
};
|
|
36
|
-
declare function resolveFarmRouteContext(config: Pick<FarmConfig, "context">, input: FarmContextFactoryInput): Promise<unknown>;
|
|
37
|
-
declare function withFarmRouteContext<TProps extends object, TContext>(props: TProps, context: TContext | undefined): TProps & FarmRouteContextCarrier<TContext>;
|
|
38
|
-
|
|
39
|
-
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
40
|
-
|
|
41
|
-
export { appendFarmLinkHeader, resolveFarmRouteContext, withFarmRouteContext };
|
package/dist/markdown.d.mts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
type FarmMarkdownRouteInput = string | {
|
|
2
|
-
route: string;
|
|
3
|
-
title?: string;
|
|
4
|
-
cache?: number | false;
|
|
5
|
-
};
|
|
6
|
-
interface FarmMarkdownUserConfig {
|
|
7
|
-
/**
|
|
8
|
-
* Enable generated markdown representations for React pages.
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Routes that may expose generated markdown. Every page is exposed by default.
|
|
14
|
-
*/
|
|
15
|
-
expose?: boolean | FarmMarkdownRouteInput[];
|
|
16
|
-
/** @deprecated Use `expose`. */
|
|
17
|
-
routes?: FarmMarkdownRouteInput[];
|
|
18
|
-
cache?: number | false;
|
|
19
|
-
includeMetadata?: boolean;
|
|
20
|
-
}
|
|
21
|
-
interface FarmMarkdownResolvedRoute {
|
|
22
|
-
route: string;
|
|
23
|
-
title?: string;
|
|
24
|
-
cache?: number | false;
|
|
25
|
-
}
|
|
26
|
-
interface FarmMarkdownResolvedConfig {
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
expose: true | FarmMarkdownResolvedRoute[];
|
|
29
|
-
cache: number | false;
|
|
30
|
-
includeMetadata: boolean;
|
|
31
|
-
}
|
|
32
|
-
interface FarmMarkdownMirrorTarget {
|
|
33
|
-
pathname: string;
|
|
34
|
-
route: FarmMarkdownResolvedRoute | null;
|
|
35
|
-
}
|
|
36
|
-
interface ResolveMarkdownMirrorTargetOptions {
|
|
37
|
-
accept?: string | null;
|
|
38
|
-
}
|
|
39
|
-
interface CreateMarkdownMirrorResponseOptions {
|
|
40
|
-
request: Request;
|
|
41
|
-
config?: FarmMarkdownResolvedConfig;
|
|
42
|
-
routeExists?: (pathname: string) => boolean;
|
|
43
|
-
renderPage: (request: Request) => Response | Promise<Response>;
|
|
44
|
-
}
|
|
45
|
-
interface ApplyMarkdownNegotiationHeadersOptions {
|
|
46
|
-
config?: FarmMarkdownResolvedConfig;
|
|
47
|
-
pathname: string;
|
|
48
|
-
}
|
|
49
|
-
declare function resolveMarkdownConfig(config: FarmMarkdownUserConfig | boolean | undefined): FarmMarkdownResolvedConfig;
|
|
50
|
-
declare function resolveMarkdownMirrorTarget(config: FarmMarkdownResolvedConfig | undefined, pathname: string, options?: ResolveMarkdownMirrorTargetOptions): FarmMarkdownMirrorTarget | null;
|
|
51
|
-
declare function createMarkdownMirrorResponse(options: CreateMarkdownMirrorResponseOptions): Promise<Response | null>;
|
|
52
|
-
declare function applyMarkdownNegotiationHeaders(response: Response, options: ApplyMarkdownNegotiationHeadersOptions): Response;
|
|
53
|
-
declare function htmlToMarkdown(html: string, options?: {
|
|
54
|
-
title?: string;
|
|
55
|
-
sourcePath?: string;
|
|
56
|
-
includeMetadata?: boolean;
|
|
57
|
-
}): string;
|
|
58
|
-
declare function requestAcceptsMarkdown(accept: string | null | undefined): boolean;
|
|
59
|
-
|
|
60
|
-
export { type ApplyMarkdownNegotiationHeadersOptions, type CreateMarkdownMirrorResponseOptions, type FarmMarkdownMirrorTarget, type FarmMarkdownResolvedConfig, type FarmMarkdownResolvedRoute, type FarmMarkdownRouteInput, type FarmMarkdownUserConfig, type ResolveMarkdownMirrorTargetOptions, applyMarkdownNegotiationHeaders, createMarkdownMirrorResponse, htmlToMarkdown, requestAcceptsMarkdown, resolveMarkdownConfig, resolveMarkdownMirrorTarget };
|
package/dist/markdown.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
type FarmMarkdownRouteInput = string | {
|
|
2
|
-
route: string;
|
|
3
|
-
title?: string;
|
|
4
|
-
cache?: number | false;
|
|
5
|
-
};
|
|
6
|
-
interface FarmMarkdownUserConfig {
|
|
7
|
-
/**
|
|
8
|
-
* Enable generated markdown representations for React pages.
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Routes that may expose generated markdown. Every page is exposed by default.
|
|
14
|
-
*/
|
|
15
|
-
expose?: boolean | FarmMarkdownRouteInput[];
|
|
16
|
-
/** @deprecated Use `expose`. */
|
|
17
|
-
routes?: FarmMarkdownRouteInput[];
|
|
18
|
-
cache?: number | false;
|
|
19
|
-
includeMetadata?: boolean;
|
|
20
|
-
}
|
|
21
|
-
interface FarmMarkdownResolvedRoute {
|
|
22
|
-
route: string;
|
|
23
|
-
title?: string;
|
|
24
|
-
cache?: number | false;
|
|
25
|
-
}
|
|
26
|
-
interface FarmMarkdownResolvedConfig {
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
expose: true | FarmMarkdownResolvedRoute[];
|
|
29
|
-
cache: number | false;
|
|
30
|
-
includeMetadata: boolean;
|
|
31
|
-
}
|
|
32
|
-
interface FarmMarkdownMirrorTarget {
|
|
33
|
-
pathname: string;
|
|
34
|
-
route: FarmMarkdownResolvedRoute | null;
|
|
35
|
-
}
|
|
36
|
-
interface ResolveMarkdownMirrorTargetOptions {
|
|
37
|
-
accept?: string | null;
|
|
38
|
-
}
|
|
39
|
-
interface CreateMarkdownMirrorResponseOptions {
|
|
40
|
-
request: Request;
|
|
41
|
-
config?: FarmMarkdownResolvedConfig;
|
|
42
|
-
routeExists?: (pathname: string) => boolean;
|
|
43
|
-
renderPage: (request: Request) => Response | Promise<Response>;
|
|
44
|
-
}
|
|
45
|
-
interface ApplyMarkdownNegotiationHeadersOptions {
|
|
46
|
-
config?: FarmMarkdownResolvedConfig;
|
|
47
|
-
pathname: string;
|
|
48
|
-
}
|
|
49
|
-
declare function resolveMarkdownConfig(config: FarmMarkdownUserConfig | boolean | undefined): FarmMarkdownResolvedConfig;
|
|
50
|
-
declare function resolveMarkdownMirrorTarget(config: FarmMarkdownResolvedConfig | undefined, pathname: string, options?: ResolveMarkdownMirrorTargetOptions): FarmMarkdownMirrorTarget | null;
|
|
51
|
-
declare function createMarkdownMirrorResponse(options: CreateMarkdownMirrorResponseOptions): Promise<Response | null>;
|
|
52
|
-
declare function applyMarkdownNegotiationHeaders(response: Response, options: ApplyMarkdownNegotiationHeadersOptions): Response;
|
|
53
|
-
declare function htmlToMarkdown(html: string, options?: {
|
|
54
|
-
title?: string;
|
|
55
|
-
sourcePath?: string;
|
|
56
|
-
includeMetadata?: boolean;
|
|
57
|
-
}): string;
|
|
58
|
-
declare function requestAcceptsMarkdown(accept: string | null | undefined): boolean;
|
|
59
|
-
|
|
60
|
-
export { type ApplyMarkdownNegotiationHeadersOptions, type CreateMarkdownMirrorResponseOptions, type FarmMarkdownMirrorTarget, type FarmMarkdownResolvedConfig, type FarmMarkdownResolvedRoute, type FarmMarkdownRouteInput, type FarmMarkdownUserConfig, type ResolveMarkdownMirrorTargetOptions, applyMarkdownNegotiationHeaders, createMarkdownMirrorResponse, htmlToMarkdown, requestAcceptsMarkdown, resolveMarkdownConfig, resolveMarkdownMirrorTarget };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { s as Metadata } from './client-plugins-jsk-ZLzJ.mjs';
|
|
2
|
-
|
|
3
|
-
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
|
-
interface FarmMetadataImageReference {
|
|
5
|
-
kind: MetadataImageKind;
|
|
6
|
-
href: string;
|
|
7
|
-
alt?: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
contentType?: string;
|
|
11
|
-
}
|
|
12
|
-
interface RenderedMetadataHead {
|
|
13
|
-
title: string;
|
|
14
|
-
tags: string;
|
|
15
|
-
hasFavicon: boolean;
|
|
16
|
-
}
|
|
17
|
-
type MetadataRecord = Metadata & Record<string, any>;
|
|
18
|
-
declare function mergeMetadata(base: MetadataRecord | undefined, next: MetadataRecord | undefined): MetadataRecord;
|
|
19
|
-
declare function addMetadataImageReference(metadata: MetadataRecord, reference: FarmMetadataImageReference): MetadataRecord;
|
|
20
|
-
declare function renderMetadataHead(metadata: MetadataRecord | undefined): RenderedMetadataHead;
|
|
21
|
-
|
|
22
|
-
export { type MetadataImageKind as M, addMetadataImageReference as a, mergeMetadata as m, renderMetadataHead as r };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { s as Metadata } from './client-plugins-Bc5jHcNr.js';
|
|
2
|
-
|
|
3
|
-
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
|
-
interface FarmMetadataImageReference {
|
|
5
|
-
kind: MetadataImageKind;
|
|
6
|
-
href: string;
|
|
7
|
-
alt?: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
contentType?: string;
|
|
11
|
-
}
|
|
12
|
-
interface RenderedMetadataHead {
|
|
13
|
-
title: string;
|
|
14
|
-
tags: string;
|
|
15
|
-
hasFavicon: boolean;
|
|
16
|
-
}
|
|
17
|
-
type MetadataRecord = Metadata & Record<string, any>;
|
|
18
|
-
declare function mergeMetadata(base: MetadataRecord | undefined, next: MetadataRecord | undefined): MetadataRecord;
|
|
19
|
-
declare function addMetadataImageReference(metadata: MetadataRecord, reference: FarmMetadataImageReference): MetadataRecord;
|
|
20
|
-
declare function renderMetadataHead(metadata: MetadataRecord | undefined): RenderedMetadataHead;
|
|
21
|
-
|
|
22
|
-
export { type MetadataImageKind as M, addMetadataImageReference as a, mergeMetadata as m, renderMetadataHead as r };
|