Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const unmarshalCron = (data: unknown) => {
args: data.args,
containerId: data.container_id,
id: data.id,
name: data.name,
schedule: data.schedule,
status: data.status,
} as Cron
Expand Down Expand Up @@ -290,6 +291,7 @@ export const marshalCreateCronRequest = (
): Record<string, unknown> => ({
args: request.args,
container_id: request.containerId,
name: request.name,
schedule: request.schedule,
})

Expand Down Expand Up @@ -364,6 +366,7 @@ export const marshalUpdateCronRequest = (
): Record<string, unknown> => ({
args: request.args,
container_id: request.containerId,
name: request.name,
schedule: request.schedule,
})

Expand Down
3 changes: 3 additions & 0 deletions packages/clients/src/api/container/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export interface Cron {
schedule: string
args?: Record<string, unknown>
status: CronStatus
name: string
}

/** Domain */
Expand Down Expand Up @@ -364,6 +365,7 @@ export type CreateCronRequest = {
containerId: string
schedule: string
args?: Record<string, unknown>
name?: string
}

export type UpdateCronRequest = {
Expand All @@ -373,6 +375,7 @@ export type UpdateCronRequest = {
containerId?: string
schedule?: string
args?: Record<string, unknown>
name?: string
}

export type DeleteCronRequest = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export const unmarshalCron = (data: unknown) => {
args: data.args,
functionId: data.function_id,
id: data.id,
name: data.name,
schedule: data.schedule,
status: data.status,
} as Cron
Expand Down Expand Up @@ -635,6 +636,7 @@ export const marshalCreateCronRequest = (
): Record<string, unknown> => ({
args: request.args,
function_id: request.functionId,
name: request.name,
schedule: request.schedule,
})

Expand Down Expand Up @@ -787,6 +789,7 @@ export const marshalUpdateCronRequest = (
): Record<string, unknown> => ({
args: request.args,
function_id: request.functionId,
name: request.name,
schedule: request.schedule,
})

Expand Down
3 changes: 3 additions & 0 deletions packages/clients/src/api/function/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export interface Cron {
schedule: string
args?: Record<string, unknown>
status: CronStatus
name: string
}

/** Domain */
Expand Down Expand Up @@ -597,6 +598,7 @@ export type CreateCronRequest = {
functionId: string
schedule: string
args?: Record<string, unknown>
name?: string
}

export type UpdateCronRequest = {
Expand All @@ -606,6 +608,7 @@ export type UpdateCronRequest = {
functionId?: string
schedule?: string
args?: Record<string, unknown>
name?: string
}

export type DeleteCronRequest = {
Expand Down