mulink 1.1.2 → 1.1.3

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.
@@ -3459,10 +3459,16 @@ ${actions}`;
3459
3459
  parameterProcessing = "";
3460
3460
  requestOptionsParams = "";
3461
3461
  }
3462
- const parsedInputType = hasRequestBody || hasAnyParams ? schemaName.includes("\n") ? `z.infer<typeof z.object({ body: ${operationName}RequestSchema, params: ${operationName}ParamsSchema })>` : `z.infer<typeof ${schemaName}>` : "void";
3462
+ const parsedInputType = hasRequestBody || hasAnyParams ? schemaName.includes("\n") ? `z.infer<typeof z.object({
3463
+ body: ${operationName}RequestSchema,
3464
+ params: ${operationName}ParamsSchema
3465
+ })>` : `z.infer<typeof ${schemaName}>` : "void";
3463
3466
  const ctxType = requiresAuth || hasRateLimit ? "{ user?: any; ratelimit?: { remaining: number } }" : "any";
3464
3467
  const ctxDeclaration = requiresAuth || hasRateLimit ? `ctx: ${ctxType}` : "ctx?: any";
3465
- const actionArgsType = `{ parsedInput: ${parsedInputType}; ${ctxDeclaration} }`;
3468
+ const actionArgsType = `{
3469
+ parsedInput: ${parsedInputType};
3470
+ ${ctxDeclaration}
3471
+ }`;
3466
3472
  const clientName = requiresAuth || hasRateLimit ? "authActionClient" : "actionClientWithMeta";
3467
3473
  const rateLimitCode = hasRateLimit ? `
3468
3474
  ${this.commentLine("Rate limiting", 6)} const { userAgent, ip } = await getClientInfo()
@@ -3849,6 +3855,7 @@ ${Object.keys(endpointsByTag).map((tag) => `export * from './${toValidIdentifier
3849
3855
  const staleTime = this.getStaleTime(endpoint);
3850
3856
  const pathParameters = endpoint.parameters.filter((parameter) => parameter.in === "path");
3851
3857
  const queryParameters = endpoint.parameters.filter((parameter) => parameter.in === "query");
3858
+ const hasPageParam = queryParameters.some((param) => param.name === "page");
3852
3859
  const hasSearchParams = endpoint.path.includes("search") || endpoint.path.includes("list");
3853
3860
  endpoint.parameters.length > 0;
3854
3861
  const parameterTypes = [];
@@ -3920,7 +3927,8 @@ export function ${hookName.replace("use", "useInfinite")}(${parameterTypes.lengt
3920
3927
  initialPageParam: 1,
3921
3928
  queryFn: async ({ pageParam = 1, signal }: { pageParam?: number; signal?: AbortSignal }) => {
3922
3929
  try {
3923
- const result = await resolveActionResult<${returnType}>(${actionName}(${actionCallParams.replace(queryParamObject, "{ ...searchParams, page: pageParam, limit: searchParams.limit }")}))
3930
+ const paginationParams = ${hasPageParam ? "{ ...searchParams, page: pageParam, limit: searchParams.limit }" : "{ ...searchParams, limit: searchParams.limit }"}
3931
+ const result = await resolveActionResult<${returnType}>(${actionName}(${actionCallParams.replace(queryParamObject, "paginationParams")}))
3924
3932
  return result
3925
3933
  } catch (error) {
3926
3934
  handleActionError(error)
@@ -9731,5 +9739,5 @@ ${errorMessages}`,
9731
9739
  };
9732
9740
 
9733
9741
  export { BridgeCore, BridgeError, BridgeLogger, ConfigurationLoader, FileSystemManager, GenerationError, LogLevel, NextJsCodeGenerator, OpenApiSchemaParser, SchemaParseError, ValidationError, VersionChecker, __name, checkAndNotifyUpdates, createBridgeVersionChecker };
9734
- //# sourceMappingURL=chunk-6C3UQ666.js.map
9735
- //# sourceMappingURL=chunk-6C3UQ666.js.map
9742
+ //# sourceMappingURL=chunk-6SOQENFC.js.map
9743
+ //# sourceMappingURL=chunk-6SOQENFC.js.map