Skip to content

Commit

Permalink
Release 6.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 29, 2024
1 parent 8395141 commit 93c8ee8
Show file tree
Hide file tree
Showing 370 changed files with 28,564 additions and 13,881 deletions.
1 change: 1 addition & 0 deletions .fernignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Specify files that shouldn't be modified by Fern
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

28 changes: 0 additions & 28 deletions .github/dependabot.yml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: ci

on: [push]

jobs:
compile:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v3

- name: Compile
run: yarn && yarn build

test:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Set up node
uses: actions/setup-node@v3

- name: Compile
run: yarn && yarn test

publish:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build

- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
if [[ ${GITHUB_REF} == *alpha* ]]; then
npm publish --access public --tag alpha
elif [[ ${GITHUB_REF} == *beta* ]]; then
npm publish --access public --tag beta
else
npm publish --access public
fi
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38 changes: 0 additions & 38 deletions .github/workflows/ci_checks.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/dependabot.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/publish_release.yml

This file was deleted.

5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
node_modules
coverage/
dist/
tmp/

.DS_Store
/dist
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

62 changes: 62 additions & 0 deletions .mock/definition/access-tokens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
imports:
errors: types/errors.yml
headers: types/headers.yml
common: types/common.yml
types:
AccessTokenSchema:
examples:
- name: ResponseExample
value:
accessToken: >-
accessToken_sampleeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2OTY5ODczNTcsImV4cCI6MTY5Njk4NzY1NywiYXVkIjoiYXBwSWRfc2FtcGxlcU5oVmNkWVFZVSIsImlzcyI6Imh0dHBzOi8vc2FuZGJveC1hcGkud2l0aGFib3VuZC5jb20vdjQiLCJzdWIiOiJ1c2VySWRfc2FtcGxlWEdNRm5oT3BlUiJ9.-NrPVQvsnM8vJouyuP5yeFGlYb1xGgR-gS3v87p5BQk
createdAt: '2024-01-01T00:00:00.000Z'
expiresAt: '2024-01-01T00:15:00.000Z'
properties:
accessToken:
type: string
docs: The access token to authenticate your Drop-In UI Components.
createdAt:
type: datetime
docs: The creation date and time of the access token in `ISO 8601` format.
expiresAt:
type: datetime
docs: The expiration date and time of the access token in `ISO 8601` format.
service:
auth: false
display-name: Access Tokens
base-path: ''
endpoints:
create:
docs: Creates an access token for authenticating Drop-In UI Components.
method: POST
display-name: Create an access token
path: /access-tokens
auth: true
request:
name: AccessTokenRequestSchema
headers:
Idempotency-Key: optional<headers.IdempotencyKey>
body:
properties:
expiresIn:
type: integer
docs: The number of seconds until the access token expires.
userId:
type: optional<string>
docs: >-
The unique identifier of the user associated with this access
token.
response:
docs: OK
type: AccessTokenSchema
errors:
- errors.BadRequestErrorSchema
- errors.UnauthorizedErrorSchema
- errors.NotFoundErrorSchema
- errors.InternalServerErrorSchema
examples:
- name: default
request:
expiresIn: 900
response:
body: $AccessTokenSchema.ResponseExample
15 changes: 15 additions & 0 deletions .mock/definition/api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: api
display-name: Abound API
auth: BearerAuthScheme
auth-schemes:
BearerAuthScheme:
scheme: bearer
token:
name: sampleKey
default-environment: Production
environments:
Production: https://production-api.withabound.com
Sandbox: https://sandbox-api.withabound.com
error-discrimination:
strategy: status-code
base-path: /v4
Loading

0 comments on commit 93c8ee8

Please sign in to comment.