Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feat-dashboard-play…
Browse files Browse the repository at this point in the history
…ground-ui
  • Loading branch information
grutt committed Feb 13, 2024
2 parents 6c9f450 + f8e9c8b commit 0626c66
Show file tree
Hide file tree
Showing 117 changed files with 6,407 additions and 709 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dump.rdb
*.csr
*.pfx
*.cert
generated
.next
.venv

node_modules

Expand Down
4 changes: 4 additions & 0 deletions api-contracts/dispatcher/dispatcher.proto
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,8 @@ message WorkflowEvent {

// the event payload
string eventPayload = 6;

// whether this is the last event for the workflow run - server
// will hang up the connection but clients might want to case
bool hangup = 7;
}
1 change: 1 addition & 0 deletions api-contracts/workflows/workflows.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ message CreateWorkflowStepOpts {
string timeout = 3; // (optional) the step timeout
string inputs = 4; // (optional) the step inputs, assuming string representation of JSON
repeated string parents = 5; // (optional) the step parents. if none are passed in, this is a root step
string user_data = 6; // (optional) the custom step user data, assuming string representation of JSON
}

// ListWorkflowsRequest is the request for ListWorkflows.
Expand Down
2 changes: 1 addition & 1 deletion api/v1/server/handlers/step-runs/rerun.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (t *StepRunService) StepRunUpdateRerun(ctx echo.Context, request gen.StepRu
}

// update step run
_, err = t.config.Repository.StepRun().UpdateStepRun(tenant.ID, stepRun.ID, &repository.UpdateStepRunOpts{
_, _, err = t.config.Repository.StepRun().UpdateStepRun(tenant.ID, stepRun.ID, &repository.UpdateStepRunOpts{
Input: inputBytes,
Status: repository.StepRunStatusPtr(db.StepRunStatusPending),
IsRerun: true,
Expand Down
5 changes: 3 additions & 2 deletions frontend/docs/pages/home/typescript-sdk/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"setup": "Setup",
"creating-a-workflow": "Creating a Workflow",
"creating-a-worker": "Creating a Worker",
"pushing-events": "Pushing Events"
}
"pushing-events": "Pushing Events",
"api": "API"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
[@hatchet-dev/typescript-sdk](../README.md) / [Exports](../modules.md) / [APIContracts](../modules/APIContracts.md) / APIError

# Interface: APIError

[APIContracts](../modules/APIContracts.md).APIError

## Table of contents

### Properties

- [code](APIContracts.APIError.md#code)
- [description](APIContracts.APIError.md#description)
- [docs\_link](APIContracts.APIError.md#docs_link)
- [field](APIContracts.APIError.md#field)

## Properties

### code

`Optional` **code**: `number`

a custom Hatchet error code

**`Format`**

uint64

**`Example`**

```ts
1400
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:34](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L34)

___

### description

**description**: `string`

a description for this error

**`Example`**

```ts
"A descriptive error message"
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:44](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L44)

___

### docs\_link

`Optional` **docs\_link**: `string`

a link to the documentation for this error, if it exists

**`Example`**

```ts
"github.com/hatchet-dev/hatchet"
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:49](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L49)

___

### field

`Optional` **field**: `string`

the field that this error is associated with, if applicable

**`Example`**

```ts
"name"
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:39](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L39)
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[@hatchet-dev/typescript-sdk](../README.md) / [Exports](../modules.md) / [APIContracts](../modules/APIContracts.md) / APIErrors

# Interface: APIErrors

[APIContracts](../modules/APIContracts.md).APIErrors

## Table of contents

### Properties

- [errors](APIContracts.APIErrors.md#errors)

## Properties

### errors

**errors**: [`APIError`](APIContracts.APIError.md)[]

#### Defined in

[src/clients/rest/generated/data-contracts.ts:25](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L25)
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[@hatchet-dev/typescript-sdk](../README.md) / [Exports](../modules.md) / [APIContracts](../modules/APIContracts.md) / APIMeta

# Interface: APIMeta

[APIContracts](../modules/APIContracts.md).APIMeta

## Table of contents

### Properties

- [auth](APIContracts.APIMeta.md#auth)

## Properties

### auth

`Optional` **auth**: [`APIMetaAuth`](APIContracts.APIMetaAuth.md)

#### Defined in

[src/clients/rest/generated/data-contracts.ts:13](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L13)
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[@hatchet-dev/typescript-sdk](../README.md) / [Exports](../modules.md) / [APIContracts](../modules/APIContracts.md) / APIMetaAuth

# Interface: APIMetaAuth

[APIContracts](../modules/APIContracts.md).APIMetaAuth

## Table of contents

### Properties

- [schemes](APIContracts.APIMetaAuth.md#schemes)

## Properties

### schemes

`Optional` **schemes**: `string`[]

the supported types of authentication

**`Example`**

```ts
["basic","google"]
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:21](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L21)
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
[@hatchet-dev/typescript-sdk](../README.md) / [Exports](../modules.md) / [APIContracts](../modules/APIContracts.md) / APIResourceMeta

# Interface: APIResourceMeta

[APIContracts](../modules/APIContracts.md).APIResourceMeta

## Table of contents

### Properties

- [createdAt](APIContracts.APIResourceMeta.md#createdat)
- [id](APIContracts.APIResourceMeta.md#id)
- [updatedAt](APIContracts.APIResourceMeta.md#updatedat)

## Properties

### createdAt

**createdAt**: `string`

the time that this resource was created

**`Format`**

date-time

**`Example`**

```ts
"2022-12-13T20:06:48.888Z"
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:88](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L88)

___

### id

**id**: `string`

the id of this resource, in UUID format

**`Format`**

uuid

**`Min Length`**

36

**`Max Length`**

36

**`Example`**

```ts
"bb214807-246e-43a5-a25d-41761d1cff9e"
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:82](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L82)

___

### updatedAt

**updatedAt**: `string`

the time that this resource was last updated

**`Format`**

date-time

**`Example`**

```ts
"2022-12-13T20:06:48.888Z"
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:94](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L94)
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[@hatchet-dev/typescript-sdk](../README.md) / [Exports](../modules.md) / [APIContracts](../modules/APIContracts.md) / APIToken

# Interface: APIToken

[APIContracts](../modules/APIContracts.md).APIToken

## Table of contents

### Properties

- [expiresAt](APIContracts.APIToken.md#expiresat)
- [metadata](APIContracts.APIToken.md#metadata)
- [name](APIContracts.APIToken.md#name)

## Properties

### expiresAt

**expiresAt**: `string`

When the API token expires.

**`Format`**

date-time

#### Defined in

[src/clients/rest/generated/data-contracts.ts:553](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L553)

___

### metadata

**metadata**: [`APIResourceMeta`](APIContracts.APIResourceMeta.md)

#### Defined in

[src/clients/rest/generated/data-contracts.ts:543](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L543)

___

### name

**name**: `string`

The name of the API token.

**`Max Length`**

255

#### Defined in

[src/clients/rest/generated/data-contracts.ts:548](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L548)
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[@hatchet-dev/typescript-sdk](../README.md) / [Exports](../modules.md) / [APIContracts](../modules/APIContracts.md) / AcceptInviteRequest

# Interface: AcceptInviteRequest

[APIContracts](../modules/APIContracts.md).AcceptInviteRequest

## Table of contents

### Properties

- [invite](APIContracts.AcceptInviteRequest.md#invite)

## Properties

### invite

**invite**: `string`

**`Min Length`**

36

**`Max Length`**

36

**`Example`**

```ts
"bb214807-246e-43a5-a25d-41761d1cff9e"
```

#### Defined in

[src/clients/rest/generated/data-contracts.ts:216](https://github.com/hatchet-dev/hatchet/blob/af21f67/typescript-sdk/src/clients/rest/generated/data-contracts.ts#L216)
Loading

0 comments on commit 0626c66

Please sign in to comment.