Skip to content

Commit

Permalink
Merge branch 'main' into ajiang/consolidate-tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Jun 10, 2024
2 parents c225199 + 297a518 commit e3abbb8
Show file tree
Hide file tree
Showing 291 changed files with 4,183 additions and 3,201 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/deploy-fdr-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,9 @@ jobs:
# which makes steps.has-changed.outputs.RESULT = 'true'
run: npx turbo-ignore ${{ env.PACKAGE_NAME }} || echo "RESULT=true" >> $GITHUB_OUTPUT

- name: 🪴 Generate Fern SDKs
run: |
pnpm fern generate --local --api fdr --group local --log-level debug
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}

- name: 🧪 Build and test
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: |
pnpm turbo codegen build test --filter=${{ env.PACKAGE_NAME }}
pnpm --filter "@fern-platform/fdr" sentry:sourcemaps
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/deploy-fdr-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ jobs:
- name: 📥 Install
uses: ./.github/actions/install

- name: 🪴 Generate Code
run: |
pnpm fern generate --local --api fdr --group local --log-level debug
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}

- name: 🧪 Build and test
run: pnpm turbo build test --filter=${{ env.PACKAGE_NAME }}

Expand Down Expand Up @@ -97,4 +91,4 @@ jobs:
healthchecks:
needs: deploy_prod
uses: ./.github/workflows/healthcheck.yml
secrets: inherit
secrets: inherit
4 changes: 1 addition & 3 deletions .github/workflows/fdr-ete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,4 @@ jobs:
# TODO: re-enable when moving to turbo
# pnpm turbo --filter= docker:local
run: |
cd servers/fdr
pnpm run docker:local
pnpm run test:ete
pnpm --filter=@fern-platform/fdr docker:local test:ete
2 changes: 1 addition & 1 deletion clis/docs-migrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"clean": "rm -rf ./dist && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --passWithNoTests --globals",
"test": "vitest --run --passWithNoTests --globals",
"format": "prettier --write --ignore-unknown --ignore-path ../../shared/.prettierignore \"**\"",
"format:check": "prettier --check --ignore-unknown --ignore-path ../../shared/.prettierignore \"**\"",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../.eslintignore",
Expand Down
11 changes: 1 addition & 10 deletions clis/docs-migrator/src/__test__/outputs/bland/fern/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,9 @@ mintlify dev

### 😎 Publishing Changes

Install our Github App to autopropagate changes from youre repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.
Install our Github App to autopropagate changes from youre repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.

#### Troubleshooting

- Mintlify dev isn't running - Run `mintlify install` it'll re-install dependencies.
- Page loads as a 404 - Make sure you are running in a folder with `mint.json`









Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,3 @@ slug: _snippets/snippet-example
## My Snippet

<Info>This is an example of a reusable snippet</Info>









Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,24 @@ slug: api-reference/batch-endpoint/batch
<ParamField body="base_prompt" type="string" required>
This is the prompt or task used for all the phone calls in the request. Information can be inserted into it surrounding variable names with \{\{curly braces\}\}.

Example:
```json
"You are calling {{business}} to renew their subscription to {{service}} before it expires on {{date}}."
```
Example:

```json
"You are calling {{business}} to renew their subscription to {{service}} before it expires on {{date}}."
```

</ParamField>

<ParamField body="call_data" type="array" required>
Define a list of calls to make and their properties.

Each call in call_data *must* have a `phone_number` property. Properties are case-sensitive.

Example:
Example:

```json
[
{
{
"phone_number": "1234567890",
"business": "ABC co.",
"service": "Netflix",
Expand All @@ -44,24 +47,29 @@ slug: api-reference/batch-endpoint/batch
}
]
```

</ParamField>

<ParamField body="label" type="string">
Adds a user-friendly label to your batch to keep track of it's original intention. This can help differentiate multiple call batches that are part of the same Campaign. Shown when a batch is retreived.
Adds a user-friendly label to your batch to keep track of it's original intention. This can help differentiate
multiple call batches that are part of the same Campaign. Shown when a batch is retreived.
</ParamField>

<ParamField body="campaign_id" type="string">
Use ```campaign_id``` to organize related batches together. This can be set manually or auto-generated through Campaigns.
Use ```campaign_id``` to organize related batches together. This can be set manually or auto-generated through
Campaigns.
</ParamField>

<ParamField body="test_mode" type="boolean" default="false">
When this is set to ```true```, only the first call of ```call_data``` will be dispatched. A common use case is to set the first ```phone_number``` value to your own to confirm everything's set up properly.

Includes additional information in the response when true so that it's easier to find any issues.
Includes additional information in the response when true so that it's easier to find any issues.

</ParamField>

<ParamField body="*">
All other parameters supported by the [Send Call](../../api-v1/post/calls.mdx) endpoint are supported here as well. They will be applied to each call in the batch.
All other parameters supported by the [Send Call](../../api-v1/post/calls.mdx) endpoint are supported here as well. They will
be applied to each call in the batch.
</ParamField>

### Response
Expand All @@ -78,18 +86,9 @@ slug: api-reference/batch-endpoint/batch

```json Response
{
"message": "success",
"batch_id": "3p$7rQ3p9sT5bzmF-gen-batch"
"message": "success",
"batch_id": "3p$7rQ3p9sT5bzmF-gen-batch"
}
```

</ResponseExample>









Loading

0 comments on commit e3abbb8

Please sign in to comment.