add status

This commit is contained in:
2026-01-15 11:08:23 -03:00
parent 0b190cca0d
commit 906dde027c
6 changed files with 27 additions and 18 deletions

View File

@@ -103,6 +103,7 @@ export default function Route({ loaderData: { order } }: Route.ComponentProps) {
<Card className="lg:max-w-4xl mx-auto"> <Card className="lg:max-w-4xl mx-auto">
<CardHeader> <CardHeader>
<CardTitle className="text-2xl">Detalhes do pagamento</CardTitle> <CardTitle className="text-2xl">Detalhes do pagamento</CardTitle>
{status}
<CardDescription> <CardDescription>
<ul className="flex gap-2.5 *:flex *:gap-1 *:items-center [&_svg]:size-3.5"> <ul className="flex gap-2.5 *:flex *:gap-1 *:items-center [&_svg]:size-3.5">
<li> <li>

View File

@@ -1,6 +1,6 @@
/* eslint-disable */ /* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: 7e2e7bff7e69c3350947dfc5bad66ee7) // Generated by Wrangler by running `wrangler types` (hash: 7e2e7bff7e69c3350947dfc5bad66ee7)
// Runtime types generated with workerd@1.20251202.0 2025-04-04 // Runtime types generated with workerd@1.20260111.0 2025-04-04
declare namespace Cloudflare { declare namespace Cloudflare {
interface GlobalProps { interface GlobalProps {
mainModule: typeof import("./workers/app"); mainModule: typeof import("./workers/app");
@@ -493,8 +493,10 @@ interface DurableObjectNamespaceNewUniqueIdOptions {
jurisdiction?: DurableObjectJurisdiction; jurisdiction?: DurableObjectJurisdiction;
} }
type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me"; type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me";
type DurableObjectRoutingMode = "primary-only";
interface DurableObjectNamespaceGetDurableObjectOptions { interface DurableObjectNamespaceGetDurableObjectOptions {
locationHint?: DurableObjectLocationHint; locationHint?: DurableObjectLocationHint;
routingMode?: DurableObjectRoutingMode;
} }
interface DurableObjectClass<_T extends Rpc.DurableObjectBranded | undefined = undefined> { interface DurableObjectClass<_T extends Rpc.DurableObjectBranded | undefined = undefined> {
} }
@@ -2078,6 +2080,8 @@ interface Transformer<I = any, O = any> {
expectedLength?: number; expectedLength?: number;
} }
interface StreamPipeOptions { interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/** /**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
* *
@@ -2096,8 +2100,6 @@ interface StreamPipeOptions {
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/ */
preventClose?: boolean; preventClose?: boolean;
preventAbort?: boolean;
preventCancel?: boolean;
signal?: AbortSignal; signal?: AbortSignal;
} }
type ReadableStreamReadResult<R = any> = { type ReadableStreamReadResult<R = any> = {
@@ -2372,13 +2374,13 @@ declare abstract class TransformStreamDefaultController<O = any> {
terminate(): void; terminate(): void;
} }
interface ReadableWritablePair<R = any, W = any> { interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/** /**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
* *
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/ */
writable: WritableStream<W>; writable: WritableStream<W>;
readable: ReadableStream<R>;
} }
/** /**
* The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink. * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
@@ -3254,7 +3256,7 @@ interface WorkerStubEntrypointOptions {
props?: any; props?: any;
} }
interface WorkerLoader { interface WorkerLoader {
get(name: string, getCode: () => WorkerLoaderWorkerCode | Promise<WorkerLoaderWorkerCode>): WorkerStub; get(name: string | null, getCode: () => WorkerLoaderWorkerCode | Promise<WorkerLoaderWorkerCode>): WorkerStub;
} }
interface WorkerLoaderModule { interface WorkerLoaderModule {
js?: string; js?: string;
@@ -8436,7 +8438,7 @@ type AiOptions = {
* Maximum 5 tags are allowed each request. * Maximum 5 tags are allowed each request.
* Duplicate tags will removed. * Duplicate tags will removed.
*/ */
tags: string[]; tags?: string[];
gateway?: GatewayOptions; gateway?: GatewayOptions;
returnRawResponse?: boolean; returnRawResponse?: boolean;
prefix?: string; prefix?: string;

View File

@@ -1,6 +1,6 @@
/* eslint-disable */ /* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: c05ef0b4d5ad34d62b7a9ac73fa403af) // Generated by Wrangler by running `wrangler types` (hash: c05ef0b4d5ad34d62b7a9ac73fa403af)
// Runtime types generated with workerd@1.20251202.0 2025-04-04 nodejs_compat // Runtime types generated with workerd@1.20260111.0 2025-04-04 nodejs_compat
declare namespace Cloudflare { declare namespace Cloudflare {
interface GlobalProps { interface GlobalProps {
mainModule: typeof import("./workers/app"); mainModule: typeof import("./workers/app");
@@ -509,8 +509,10 @@ interface DurableObjectNamespaceNewUniqueIdOptions {
jurisdiction?: DurableObjectJurisdiction; jurisdiction?: DurableObjectJurisdiction;
} }
type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me"; type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me";
type DurableObjectRoutingMode = "primary-only";
interface DurableObjectNamespaceGetDurableObjectOptions { interface DurableObjectNamespaceGetDurableObjectOptions {
locationHint?: DurableObjectLocationHint; locationHint?: DurableObjectLocationHint;
routingMode?: DurableObjectRoutingMode;
} }
interface DurableObjectClass<_T extends Rpc.DurableObjectBranded | undefined = undefined> { interface DurableObjectClass<_T extends Rpc.DurableObjectBranded | undefined = undefined> {
} }
@@ -2094,6 +2096,8 @@ interface Transformer<I = any, O = any> {
expectedLength?: number; expectedLength?: number;
} }
interface StreamPipeOptions { interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/** /**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
* *
@@ -2112,8 +2116,6 @@ interface StreamPipeOptions {
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/ */
preventClose?: boolean; preventClose?: boolean;
preventAbort?: boolean;
preventCancel?: boolean;
signal?: AbortSignal; signal?: AbortSignal;
} }
type ReadableStreamReadResult<R = any> = { type ReadableStreamReadResult<R = any> = {
@@ -2388,13 +2390,13 @@ declare abstract class TransformStreamDefaultController<O = any> {
terminate(): void; terminate(): void;
} }
interface ReadableWritablePair<R = any, W = any> { interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/** /**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
* *
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/ */
writable: WritableStream<W>; writable: WritableStream<W>;
readable: ReadableStream<R>;
} }
/** /**
* The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink. * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
@@ -3270,7 +3272,7 @@ interface WorkerStubEntrypointOptions {
props?: any; props?: any;
} }
interface WorkerLoader { interface WorkerLoader {
get(name: string, getCode: () => WorkerLoaderWorkerCode | Promise<WorkerLoaderWorkerCode>): WorkerStub; get(name: string | null, getCode: () => WorkerLoaderWorkerCode | Promise<WorkerLoaderWorkerCode>): WorkerStub;
} }
interface WorkerLoaderModule { interface WorkerLoaderModule {
js?: string; js?: string;
@@ -8452,7 +8454,7 @@ type AiOptions = {
* Maximum 5 tags are allowed each request. * Maximum 5 tags are allowed each request.
* Duplicate tags will removed. * Duplicate tags will removed.
*/ */
tags: string[]; tags?: string[];
gateway?: GatewayOptions; gateway?: GatewayOptions;
returnRawResponse?: boolean; returnRawResponse?: boolean;
prefix?: string; prefix?: string;

View File

@@ -1,6 +1,6 @@
/* eslint-disable */ /* eslint-disable */
// Generated by Wrangler by running `wrangler types` (hash: 94bfdc7e16675b26364c038a94ff21b3) // Generated by Wrangler by running `wrangler types` (hash: 94bfdc7e16675b26364c038a94ff21b3)
// Runtime types generated with workerd@1.20251202.0 2025-04-04 // Runtime types generated with workerd@1.20260111.0 2025-04-04
declare namespace Cloudflare { declare namespace Cloudflare {
interface GlobalProps { interface GlobalProps {
mainModule: typeof import("./workers/app"); mainModule: typeof import("./workers/app");
@@ -500,8 +500,10 @@ interface DurableObjectNamespaceNewUniqueIdOptions {
jurisdiction?: DurableObjectJurisdiction; jurisdiction?: DurableObjectJurisdiction;
} }
type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me"; type DurableObjectLocationHint = "wnam" | "enam" | "sam" | "weur" | "eeur" | "apac" | "oc" | "afr" | "me";
type DurableObjectRoutingMode = "primary-only";
interface DurableObjectNamespaceGetDurableObjectOptions { interface DurableObjectNamespaceGetDurableObjectOptions {
locationHint?: DurableObjectLocationHint; locationHint?: DurableObjectLocationHint;
routingMode?: DurableObjectRoutingMode;
} }
interface DurableObjectClass<_T extends Rpc.DurableObjectBranded | undefined = undefined> { interface DurableObjectClass<_T extends Rpc.DurableObjectBranded | undefined = undefined> {
} }
@@ -2085,6 +2087,8 @@ interface Transformer<I = any, O = any> {
expectedLength?: number; expectedLength?: number;
} }
interface StreamPipeOptions { interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/** /**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered. * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
* *
@@ -2103,8 +2107,6 @@ interface StreamPipeOptions {
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set. * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/ */
preventClose?: boolean; preventClose?: boolean;
preventAbort?: boolean;
preventCancel?: boolean;
signal?: AbortSignal; signal?: AbortSignal;
} }
type ReadableStreamReadResult<R = any> = { type ReadableStreamReadResult<R = any> = {
@@ -2379,13 +2381,13 @@ declare abstract class TransformStreamDefaultController<O = any> {
terminate(): void; terminate(): void;
} }
interface ReadableWritablePair<R = any, W = any> { interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/** /**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
* *
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/ */
writable: WritableStream<W>; writable: WritableStream<W>;
readable: ReadableStream<R>;
} }
/** /**
* The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink. * The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
@@ -3261,7 +3263,7 @@ interface WorkerStubEntrypointOptions {
props?: any; props?: any;
} }
interface WorkerLoader { interface WorkerLoader {
get(name: string, getCode: () => WorkerLoaderWorkerCode | Promise<WorkerLoaderWorkerCode>): WorkerStub; get(name: string | null, getCode: () => WorkerLoaderWorkerCode | Promise<WorkerLoaderWorkerCode>): WorkerStub;
} }
interface WorkerLoaderModule { interface WorkerLoaderModule {
js?: string; js?: string;
@@ -8443,7 +8445,7 @@ type AiOptions = {
* Maximum 5 tags are allowed each request. * Maximum 5 tags are allowed each request.
* Duplicate tags will removed. * Duplicate tags will removed.
*/ */
tags: string[]; tags?: string[];
gateway?: GatewayOptions; gateway?: GatewayOptions;
returnRawResponse?: boolean; returnRawResponse?: boolean;
prefix?: string; prefix?: string;

1
package-lock.json generated
View File

@@ -7472,6 +7472,7 @@
"@types/react": "^19.2.7", "@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@types/react-router": "^5.1.20", "@types/react-router": "^5.1.20",
"meilisearch": "^0.54.0",
"typescript": "^5.9.3" "typescript": "^5.9.3"
} }
} }

View File

@@ -11,6 +11,7 @@
"@types/react": "^19.2.7", "@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3", "@types/react-dom": "^19.2.3",
"@types/react-router": "^5.1.20", "@types/react-router": "^5.1.20",
"meilisearch": "^0.54.0",
"typescript": "^5.9.3" "typescript": "^5.9.3"
} }
} }