Skip to content

Commit 1d58b17

Browse files
committed
Release 0.0.577
0 parents  commit 1d58b17

File tree

663 files changed

+16872
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

663 files changed

+16872
-0
lines changed

.fernignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Specify files that shouldn't be modified by Fern

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ci
2+
3+
on: [push]
4+
5+
jobs:
6+
compile:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v3
12+
13+
- name: Set up node
14+
uses: actions/setup-node@v3
15+
16+
- name: Compile
17+
run: yarn && yarn build
18+
19+
publish:
20+
needs: [ compile ]
21+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout repo
26+
uses: actions/checkout@v3
27+
28+
- name: Set up node
29+
uses: actions/setup-node@v3
30+
31+
- name: Install dependencies
32+
run: yarn install
33+
34+
- name: Build
35+
run: yarn build
36+
37+
- name: Publish to npm
38+
run: |
39+
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
40+
npm publish --access public
41+
env:
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules
2+
.DS_Store
3+
/dist
4+
/Client.d.ts
5+
/Client.js
6+
/environments.d.ts
7+
/environments.js
8+
/index.d.ts
9+
/index.js
10+
/api
11+
/core
12+
/errors
13+
/serialization

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
src
3+
.gitignore
4+
.github
5+
.fernignore
6+
.prettierrc.yml
7+
tsconfig.json
8+
yarn.lock

.prettierrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tabWidth: 4
2+
printWidth: 120

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "imdb",
3+
"version": "0.0.577",
4+
"private": false,
5+
"repository": "https://github.com/revertinc/revert-node-ts",
6+
"main": "./index.js",
7+
"types": "./index.d.ts",
8+
"scripts": {
9+
"format": "prettier --write 'src/**/*.ts'",
10+
"build": "tsc",
11+
"prepack": "cp -rv dist/. ."
12+
},
13+
"dependencies": {
14+
"url-join": "4.0.1",
15+
"@types/url-join": "4.0.1",
16+
"axios": "0.27.2",
17+
"qs": "6.11.2",
18+
"@types/qs": "6.9.8"
19+
},
20+
"devDependencies": {
21+
"@types/node": "17.0.33",
22+
"prettier": "2.7.1",
23+
"typescript": "4.6.4"
24+
}
25+
}

src/Client.ts

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as environments from "./environments";
6+
import * as core from "./core";
7+
import { Chat } from "./api/resources/chat/client/Client";
8+
import { Connection } from "./api/resources/connection/client/Client";
9+
import { Crm } from "./api/resources/crm/client/Client";
10+
import { Internal } from "./api/resources/internal/client/Client";
11+
import { Metadata } from "./api/resources/metadata/client/Client";
12+
import { Ticket } from "./api/resources/ticket/client/Client";
13+
14+
export declare namespace RevertRevertApiClient {
15+
interface Options {
16+
environment?: core.Supplier<environments.RevertRevertApiEnvironment | string>;
17+
}
18+
19+
interface RequestOptions {
20+
timeoutInSeconds?: number;
21+
maxRetries?: number;
22+
}
23+
}
24+
25+
export class RevertRevertApiClient {
26+
constructor(protected readonly _options: RevertRevertApiClient.Options = {}) {}
27+
28+
protected _chat: Chat | undefined;
29+
30+
public get chat(): Chat {
31+
return (this._chat ??= new Chat(this._options));
32+
}
33+
34+
protected _connection: Connection | undefined;
35+
36+
public get connection(): Connection {
37+
return (this._connection ??= new Connection(this._options));
38+
}
39+
40+
protected _crm: Crm | undefined;
41+
42+
public get crm(): Crm {
43+
return (this._crm ??= new Crm(this._options));
44+
}
45+
46+
protected _internal: Internal | undefined;
47+
48+
public get internal(): Internal {
49+
return (this._internal ??= new Internal(this._options));
50+
}
51+
52+
protected _metadata: Metadata | undefined;
53+
54+
public get metadata(): Metadata {
55+
return (this._metadata ??= new Metadata(this._options));
56+
}
57+
58+
protected _ticket: Ticket | undefined;
59+
60+
public get ticket(): Ticket {
61+
return (this._ticket ??= new Ticket(this._options));
62+
}
63+
}

src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./resources";
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as environments from "../../../../environments";
6+
import * as core from "../../../../core";
7+
import { Channels } from "../resources/channels/client/Client";
8+
import { Messages } from "../resources/messages/client/Client";
9+
import { Users } from "../resources/users/client/Client";
10+
11+
export declare namespace Chat {
12+
interface Options {
13+
environment?: core.Supplier<environments.RevertRevertApiEnvironment | string>;
14+
}
15+
16+
interface RequestOptions {
17+
timeoutInSeconds?: number;
18+
maxRetries?: number;
19+
}
20+
}
21+
22+
export class Chat {
23+
constructor(protected readonly _options: Chat.Options = {}) {}
24+
25+
protected _channels: Channels | undefined;
26+
27+
public get channels(): Channels {
28+
return (this._channels ??= new Channels(this._options));
29+
}
30+
31+
protected _messages: Messages | undefined;
32+
33+
public get messages(): Messages {
34+
return (this._messages ??= new Messages(this._options));
35+
}
36+
37+
protected _users: Users | undefined;
38+
39+
public get users(): Users {
40+
return (this._users ??= new Users(this._options));
41+
}
42+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

0 commit comments

Comments
 (0)