Skip to content

Commit

Permalink
axios deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vidz1979 committed Feb 6, 2024
1 parent e430f9a commit a71e218
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 52 deletions.
89 changes: 48 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jrvidotti/chatwoot-sdk",
"version": "1.4.2",
"version": "1.4.3",
"description": "SDK for JS/Typescript for Chatwoot.",
"repository": {
"type": "git",
Expand Down Expand Up @@ -35,10 +35,8 @@
"release-it": "^15.4.1",
"typescript": "^4.9.5"
},
"peerDependencies": {
"axios": ">=0.27 < 2"
},
"dependencies": {
"axios": "^1.6.7",
"form-data": "^4.0.0"
}
}
}
6 changes: 0 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,29 +92,24 @@ export default class ChatwootClient {

constructor({ config }: { config: ChatwootAPIConfig }) {
this.chatwootAPI = config;

this.client = {
contacts: new ContactsApi({ config: config }),
conversations: new ConversationsApi({ config: config }),
messages: new MessagesApi({ config: config }),
};

this.platform = {
accounts: new Accounts({ config: config }),
accountUsers: new AccountUsers({ config: config }),
agentBots: new AgentBots({ config: config }),
users: new Users({ config: config }),
};

this.accountAgentBots = new AccountAgentBots({ config: config });

this.agentBots = new AgentBots({ config: config });
this.agents = new Agents({ config: config });
this.automationRule = new AutomationRules({ config: config });
this.cannedResponses = new CannedResponses({ config: config });
this.contact = new Contact({ config: config });
this.contacts = new Contacts({ config: config });

this.customAttributes = new CustomAttributes({ config: config });
this.conversationAssignment = new ConversationAssignment({ config: config });
this.conversationLabels = new ConversationLabels({ config: config });
Expand All @@ -123,7 +118,6 @@ export default class ChatwootClient {
this.inboxes = new Inboxes({ config: config });
this.integrations = new Integrations({ config: config });
this.messages = new Messages({ config: config });

this.profile = new Profile({ config: config });
this.reports = new Reports({ config: config });
this.teams = new Teams({ config: config });
Expand Down

0 comments on commit a71e218

Please sign in to comment.