Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 21, 2024
1 parent b09e8c8 commit bad92a2
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 145 deletions.
39 changes: 13 additions & 26 deletions Target/Function/Delete.d.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,20 @@
import type Interface from "../Interface/Delete.js";

/**
* @module Delete
*
*/
declare const _default: Interface;
export default _default;
export declare const Environment: import("zod").ZodObject<
{
Email: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
ID: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
Key: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
},
"strip",
import("zod").ZodTypeAny,
{
Email: string;
ID: string;
Key: string;
},
{
Email?: string | undefined;
ID?: string | undefined;
Key?: string | undefined;
}
>;
export declare const Environment: import("zod").ZodObject<{
Email: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
ID: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
Key: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
}, "strip", import("zod").ZodTypeAny, {
Email: string;
ID: string;
Key: string;
}, {
Email?: string | undefined;
ID?: string | undefined;
Key?: string | undefined;
}>;
2 changes: 1 addition & 1 deletion Target/Function/Delete.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 8 additions & 16 deletions Target/Function/Deployment.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import type { HeadersInit } from "@cloudflare/workers-types/experimental/index.js";

import type Environment from "../Type/Environment.js";

export type Type = {
result: {
created_on: Date;
id: string;
}[];
result: {
created_on: Date;
id: string;
}[];
};
/**
* The function `Deployment` makes an asynchronous request to the Cloudflare API to retrieve deployment
Expand All @@ -19,14 +17,8 @@ export type Type = {
* included in the HTTP request. It should be of type `HeadersInit`, which is a type alias for `Headers
* | string[][] | Record<string, string>`.
*/
declare const _default: (
ID: Environment["ID"],
Project: string,
Header: HeadersInit,
) => Promise<
{
created_on: Date;
id: string;
}[]
>;
declare const _default: (ID: Environment["ID"], Project: string, Header: HeadersInit) => Promise<{
created_on: Date;
id: string;
}[]>;
export default _default;
22 changes: 8 additions & 14 deletions Target/Function/Project.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import type { HeadersInit } from "@cloudflare/workers-types/experimental/index.js";

export type Type = {
result: {
id: string;
name: string;
}[];
result: {
id: string;
name: string;
}[];
};
/**
* The function `Project` makes an asynchronous request to the Cloudflare API to fetch a
Expand All @@ -17,13 +16,8 @@ export type Type = {
* is a type alias for an object that can be used to initialize a `Headers` object. The
* headers can include information such as authentication tokens, content
*/
declare const _default: (
ID: string,
Header: HeadersInit,
) => Promise<
{
id: string;
name: string;
}[]
>;
declare const _default: (ID: string, Header: HeadersInit) => Promise<{
id: string;
name: string;
}[]>;
export default _default;
1 change: 0 additions & 1 deletion Target/Function/Response.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type Interface from "../Interface/Response.js";

/**
* The function `Response` is an asynchronous function that returns a response object with a JSON
* stringified message and a specified status code.
Expand Down
12 changes: 2 additions & 10 deletions Target/Function/Worker.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import type { ExportedHandler } from "@cloudflare/workers-types/experimental/index.js";

import type Environment from "../Type/Environment.js";
export declare const Delete: import("../Interface/Delete.js").default;
declare const _default: ExportedHandler<
{
Email: string;
ID: string;
Key: string;
},
unknown,
unknown
>;
declare const _default: ExportedHandler<Environment>;
export default _default;
31 changes: 15 additions & 16 deletions Target/Interface/Delete.d.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
import type Environment from "../Type/Environment.js";

/**
* @module Delete
*
*/
export default interface Interface {
/**
* The Delete function deletes all deployments associated with a specific project ID using the
* Cloudflare API.
*
* @param Email - The `Email` parameter is the email address associated with the Cloudflare account. It
* is used to authenticate the API request.
*
* @param Key - The `Key` parameter is the authentication key used to access the Cloudflare API. It is
* used to authenticate the request and verify the identity of the user making the request.
*
* @param ID - The ID parameter represents the ID of the Cloudflare account. It is used to identify the
* account for which the deployments need to be deleted.
*
*/
({ Email, Key, ID }: Environment): Promise<any[]>;
/**
* The Delete function deletes all deployments associated with a specific project ID using the
* Cloudflare API.
*
* @param Email - The `Email` parameter is the email address associated with the Cloudflare account. It
* is used to authenticate the API request.
*
* @param Key - The `Key` parameter is the authentication key used to access the Cloudflare API. It is
* used to authenticate the request and verify the identity of the user making the request.
*
* @param ID - The ID parameter represents the ID of the Cloudflare account. It is used to identify the
* account for which the deployments need to be deleted.
*
*/
({ Email, Key, ID }: Environment): Promise<any[]>;
}
3 changes: 1 addition & 2 deletions Target/Interface/Response.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Response } from "@cloudflare/workers-types/experimental/index.js";

/**
* @module Response
*
*/
export default interface Interface {
(Message?: unknown, Status?: number): Promise<Response>;
(Message?: unknown, Status?: number): Promise<Response>;
}
34 changes: 13 additions & 21 deletions Target/Type/Environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
import type Zod from "zod";

/**
* @module Environment
*
*/
export type Type = Zod.infer<typeof Environment>;
export type { Type as default };

declare const Environment: Zod.ZodObject<
{
Email: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
ID: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
Key: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
},
"strip",
Zod.ZodTypeAny,
{
Email: string;
ID: string;
Key: string;
},
{
Email?: string | undefined;
ID?: string | undefined;
Key?: string | undefined;
}
>;
declare const Environment: Zod.ZodObject<{
Email: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
ID: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
Key: Zod.ZodDefault<Zod.ZodOptional<Zod.ZodString>>;
}, "strip", Zod.ZodTypeAny, {
Email: string;
ID: string;
Key: string;
}, {
Email?: string | undefined;
ID?: string | undefined;
Key?: string | undefined;
}>;
60 changes: 22 additions & 38 deletions Target/Variable/Environment.d.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,23 @@
export declare const string: (
params?:
| ({
errorMap?: import("zod").ZodErrorMap | undefined;
invalid_type_error?: string | undefined;
required_error?: string | undefined;
message?: string | undefined;
description?: string | undefined;
} & {
coerce?: true | undefined;
})
| undefined,
) => import("zod").ZodString;
declare const _default: import("zod").ZodObject<
{
Email: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
ID: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
Key: import("zod").ZodDefault<
import("zod").ZodOptional<import("zod").ZodString>
>;
},
"strip",
import("zod").ZodTypeAny,
{
Email: string;
ID: string;
Key: string;
},
{
Email?: string | undefined;
ID?: string | undefined;
Key?: string | undefined;
}
>;
export declare const string: (params?: ({
errorMap?: import("zod").ZodErrorMap | undefined;
invalid_type_error?: string | undefined;
required_error?: string | undefined;
message?: string | undefined;
description?: string | undefined;
} & {
coerce?: true | undefined;
}) | undefined) => import("zod").ZodString;
declare const _default: import("zod").ZodObject<{
Email: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
ID: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
Key: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
}, "strip", import("zod").ZodTypeAny, {
Email: string;
ID: string;
Key: string;
}, {
Email?: string | undefined;
ID?: string | undefined;
Key?: string | undefined;
}>;
export default _default;

0 comments on commit bad92a2

Please sign in to comment.