-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2501771
commit 0dac3a8
Showing
524 changed files
with
16,923 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
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 | ||
|
||
publish: | ||
needs: [ compile ] | ||
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} | ||
npm publish --access public | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
node_modules | ||
.DS_Store | ||
/dist | ||
/Client.d.ts | ||
/Client.js | ||
/environments.d.ts | ||
/environments.js | ||
/index.d.ts | ||
/index.js | ||
/api | ||
/core | ||
/errors | ||
/serialization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules | ||
src | ||
.gitignore | ||
.github | ||
.fernignore | ||
.prettierrc.yml | ||
tsconfig.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
tabWidth: 4 | ||
printWidth: 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "@fern-api/squidex", | ||
"version": "0.0.1", | ||
"private": false, | ||
"repository": "https://github.com/fern-squidex/squidex-node", | ||
"main": "./index.js", | ||
"types": "./index.d.ts", | ||
"scripts": { | ||
"format": "prettier --write 'src/**/*.ts'", | ||
"build": "tsc && tsc-alias", | ||
"prepack": "cp -rv dist/. ." | ||
}, | ||
"dependencies": { | ||
"url-join": "4.0.1", | ||
"@types/url-join": "4.0.1", | ||
"js-base64": "3.7.2", | ||
"axios": "0.27.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "17.0.33", | ||
"prettier": "2.7.1", | ||
"tsc-alias": "1.7.1", | ||
"typescript": "4.6.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
|
||
import * as environments from "./environments"; | ||
import * as core from "./core"; | ||
import { Apps } from "./api/resources/apps/client/Client"; | ||
import { Assets } from "./api/resources/assets/client/Client"; | ||
import { Backups } from "./api/resources/backups/client/Client"; | ||
import { Comments } from "./api/resources/comments/client/Client"; | ||
import { Diagnostics } from "./api/resources/diagnostics/client/Client"; | ||
import { EventConsumers } from "./api/resources/eventConsumers/client/Client"; | ||
import { History } from "./api/resources/history/client/Client"; | ||
import { Languages } from "./api/resources/languages/client/Client"; | ||
import { News } from "./api/resources/news/client/Client"; | ||
import { Notifications } from "./api/resources/notifications/client/Client"; | ||
import { Ping } from "./api/resources/ping/client/Client"; | ||
import { Plans } from "./api/resources/plans/client/Client"; | ||
import { Rules } from "./api/resources/rules/client/Client"; | ||
import { Schemas } from "./api/resources/schemas/client/Client"; | ||
import { Search } from "./api/resources/search/client/Client"; | ||
import { Statistics } from "./api/resources/statistics/client/Client"; | ||
import { Teams } from "./api/resources/teams/client/Client"; | ||
import { Templates } from "./api/resources/templates/client/Client"; | ||
import { Translations } from "./api/resources/translations/client/Client"; | ||
import { UserManagement } from "./api/resources/userManagement/client/Client"; | ||
import { Users } from "./api/resources/users/client/Client"; | ||
|
||
export declare namespace SquidexApiClient { | ||
interface Options { | ||
environment?: environments.SquidexApiEnvironment | string; | ||
token?: core.Supplier<core.BearerToken | undefined>; | ||
} | ||
} | ||
|
||
export class SquidexApiClient { | ||
constructor(private readonly options: SquidexApiClient.Options) {} | ||
|
||
private _apps: Apps | undefined; | ||
|
||
public get apps(): Apps { | ||
return (this._apps ??= new Apps(this.options)); | ||
} | ||
|
||
private _assets: Assets | undefined; | ||
|
||
public get assets(): Assets { | ||
return (this._assets ??= new Assets(this.options)); | ||
} | ||
|
||
private _backups: Backups | undefined; | ||
|
||
public get backups(): Backups { | ||
return (this._backups ??= new Backups(this.options)); | ||
} | ||
|
||
private _comments: Comments | undefined; | ||
|
||
public get comments(): Comments { | ||
return (this._comments ??= new Comments(this.options)); | ||
} | ||
|
||
private _diagnostics: Diagnostics | undefined; | ||
|
||
public get diagnostics(): Diagnostics { | ||
return (this._diagnostics ??= new Diagnostics(this.options)); | ||
} | ||
|
||
private _eventConsumers: EventConsumers | undefined; | ||
|
||
public get eventConsumers(): EventConsumers { | ||
return (this._eventConsumers ??= new EventConsumers(this.options)); | ||
} | ||
|
||
private _history: History | undefined; | ||
|
||
public get history(): History { | ||
return (this._history ??= new History(this.options)); | ||
} | ||
|
||
private _languages: Languages | undefined; | ||
|
||
public get languages(): Languages { | ||
return (this._languages ??= new Languages(this.options)); | ||
} | ||
|
||
private _news: News | undefined; | ||
|
||
public get news(): News { | ||
return (this._news ??= new News(this.options)); | ||
} | ||
|
||
private _notifications: Notifications | undefined; | ||
|
||
public get notifications(): Notifications { | ||
return (this._notifications ??= new Notifications(this.options)); | ||
} | ||
|
||
private _ping: Ping | undefined; | ||
|
||
public get ping(): Ping { | ||
return (this._ping ??= new Ping(this.options)); | ||
} | ||
|
||
private _plans: Plans | undefined; | ||
|
||
public get plans(): Plans { | ||
return (this._plans ??= new Plans(this.options)); | ||
} | ||
|
||
private _rules: Rules | undefined; | ||
|
||
public get rules(): Rules { | ||
return (this._rules ??= new Rules(this.options)); | ||
} | ||
|
||
private _schemas: Schemas | undefined; | ||
|
||
public get schemas(): Schemas { | ||
return (this._schemas ??= new Schemas(this.options)); | ||
} | ||
|
||
private _search: Search | undefined; | ||
|
||
public get search(): Search { | ||
return (this._search ??= new Search(this.options)); | ||
} | ||
|
||
private _statistics: Statistics | undefined; | ||
|
||
public get statistics(): Statistics { | ||
return (this._statistics ??= new Statistics(this.options)); | ||
} | ||
|
||
private _teams: Teams | undefined; | ||
|
||
public get teams(): Teams { | ||
return (this._teams ??= new Teams(this.options)); | ||
} | ||
|
||
private _templates: Templates | undefined; | ||
|
||
public get templates(): Templates { | ||
return (this._templates ??= new Templates(this.options)); | ||
} | ||
|
||
private _translations: Translations | undefined; | ||
|
||
public get translations(): Translations { | ||
return (this._translations ??= new Translations(this.options)); | ||
} | ||
|
||
private _userManagement: UserManagement | undefined; | ||
|
||
public get userManagement(): UserManagement { | ||
return (this._userManagement ??= new UserManagement(this.options)); | ||
} | ||
|
||
private _users: Users | undefined; | ||
|
||
public get users(): Users { | ||
return (this._users ??= new Users(this.options)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "./resources"; |
Oops, something went wrong.