@develit-io/backend-sdk 8.1.0 → 8.2.0

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.d.mts CHANGED
@@ -522,9 +522,9 @@ declare const workflowInstanceStatusSchema: z$1.ZodObject<{
522
522
  waitingForPause: "waitingForPause";
523
523
  }>;
524
524
  error: z$1.ZodOptional<z$1.ZodString>;
525
- output: z$1.ZodOptional<z$1.ZodUnknown>;
525
+ output: z$1.ZodOptional<z$1.ZodObject<{}, z$1.core.$strip>>;
526
526
  }, z$1.core.$strip>;
527
- type WorkflowInstanceStatusSchema = z$1.infer<typeof workflowInstanceStatusSchema>;
527
+ type WorkflowInstanceStatus = z$1.infer<typeof workflowInstanceStatusSchema>;
528
528
 
529
529
  declare const handleActionResponse: <T>({ error, status, message, data, }: {
530
530
  error: boolean;
@@ -840,4 +840,4 @@ type AsyncMethod<TArgs extends unknown[] = unknown[], TResult = unknown> = (...a
840
840
  declare function cloudflareQueue<TArgs extends unknown[] = unknown[], TResult = unknown>(options: WithRetryCounterOptions): (target: unknown, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<AsyncMethod<TArgs, TResult>>) => void;
841
841
 
842
842
  export { DatabaseTransaction, ENVIRONMENT, RPCResponse, USER_ROLES, action, bankAccount, bankAccountMetadataSchema, base, bicSchema, buildMultiFilterConditions, buildRangeFilterConditions, buildSearchConditions, calculateExponentialBackoff, cloudflareQueue, composeWranglerBase, createAuditLogWriter, createInternalError, createSignatureKeyPair, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getSecret, handleAction, handleActionResponse, ibanSchema, isInternalError, paginationQuerySchema, paginationSchema, resolveColumn, service, signPayload, useFetch, useResult, useResultSync, uuidv4, verifyPayloadSignature, workflowInstanceStatusSchema };
843
- export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, AuthUser, BankAccountMetadata, BaseEvent, BuildSearchOptions, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IdempotencyVariables, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, UserRole, UserVariables, ValidatedInput, WorkflowInstanceStatusSchema };
843
+ export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, AuthUser, BankAccountMetadata, BaseEvent, BuildSearchOptions, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IdempotencyVariables, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, UserRole, UserVariables, ValidatedInput, WorkflowInstanceStatus };
package/dist/index.d.ts CHANGED
@@ -522,9 +522,9 @@ declare const workflowInstanceStatusSchema: z$1.ZodObject<{
522
522
  waitingForPause: "waitingForPause";
523
523
  }>;
524
524
  error: z$1.ZodOptional<z$1.ZodString>;
525
- output: z$1.ZodOptional<z$1.ZodUnknown>;
525
+ output: z$1.ZodOptional<z$1.ZodObject<{}, z$1.core.$strip>>;
526
526
  }, z$1.core.$strip>;
527
- type WorkflowInstanceStatusSchema = z$1.infer<typeof workflowInstanceStatusSchema>;
527
+ type WorkflowInstanceStatus = z$1.infer<typeof workflowInstanceStatusSchema>;
528
528
 
529
529
  declare const handleActionResponse: <T>({ error, status, message, data, }: {
530
530
  error: boolean;
@@ -840,4 +840,4 @@ type AsyncMethod<TArgs extends unknown[] = unknown[], TResult = unknown> = (...a
840
840
  declare function cloudflareQueue<TArgs extends unknown[] = unknown[], TResult = unknown>(options: WithRetryCounterOptions): (target: unknown, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<AsyncMethod<TArgs, TResult>>) => void;
841
841
 
842
842
  export { DatabaseTransaction, ENVIRONMENT, RPCResponse, USER_ROLES, action, bankAccount, bankAccountMetadataSchema, base, bicSchema, buildMultiFilterConditions, buildRangeFilterConditions, buildSearchConditions, calculateExponentialBackoff, cloudflareQueue, composeWranglerBase, createAuditLogWriter, createInternalError, createSignatureKeyPair, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getSecret, handleAction, handleActionResponse, ibanSchema, isInternalError, paginationQuerySchema, paginationSchema, resolveColumn, service, signPayload, useFetch, useResult, useResultSync, uuidv4, verifyPayloadSignature, workflowInstanceStatusSchema };
843
- export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, AuthUser, BankAccountMetadata, BaseEvent, BuildSearchOptions, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IdempotencyVariables, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, UserRole, UserVariables, ValidatedInput, WorkflowInstanceStatusSchema };
843
+ export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, AuthUser, BankAccountMetadata, BaseEvent, BuildSearchOptions, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IdempotencyVariables, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, UserRole, UserVariables, ValidatedInput, WorkflowInstanceStatus };
package/dist/index.mjs CHANGED
@@ -206,7 +206,7 @@ const workflowInstanceStatusSchema = z$1.object({
206
206
  "unknown"
207
207
  ]),
208
208
  error: z$1.string().optional(),
209
- output: z$1.unknown().optional()
209
+ output: z$1.object().optional()
210
210
  });
211
211
 
212
212
  const handleActionResponse = ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",