Skip to content

Commit a71e218

Browse files
committed
axios deps
1 parent e430f9a commit a71e218

File tree

3 files changed

+51
-52
lines changed

3 files changed

+51
-52
lines changed

package-lock.json

+48-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jrvidotti/chatwoot-sdk",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"description": "SDK for JS/Typescript for Chatwoot.",
55
"repository": {
66
"type": "git",
@@ -35,10 +35,8 @@
3535
"release-it": "^15.4.1",
3636
"typescript": "^4.9.5"
3737
},
38-
"peerDependencies": {
39-
"axios": ">=0.27 < 2"
40-
},
4138
"dependencies": {
39+
"axios": "^1.6.7",
4240
"form-data": "^4.0.0"
4341
}
44-
}
42+
}

src/index.ts

-6
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,24 @@ export default class ChatwootClient {
9292

9393
constructor({ config }: { config: ChatwootAPIConfig }) {
9494
this.chatwootAPI = config;
95-
9695
this.client = {
9796
contacts: new ContactsApi({ config: config }),
9897
conversations: new ConversationsApi({ config: config }),
9998
messages: new MessagesApi({ config: config }),
10099
};
101-
102100
this.platform = {
103101
accounts: new Accounts({ config: config }),
104102
accountUsers: new AccountUsers({ config: config }),
105103
agentBots: new AgentBots({ config: config }),
106104
users: new Users({ config: config }),
107105
};
108-
109106
this.accountAgentBots = new AccountAgentBots({ config: config });
110-
111107
this.agentBots = new AgentBots({ config: config });
112108
this.agents = new Agents({ config: config });
113109
this.automationRule = new AutomationRules({ config: config });
114110
this.cannedResponses = new CannedResponses({ config: config });
115111
this.contact = new Contact({ config: config });
116112
this.contacts = new Contacts({ config: config });
117-
118113
this.customAttributes = new CustomAttributes({ config: config });
119114
this.conversationAssignment = new ConversationAssignment({ config: config });
120115
this.conversationLabels = new ConversationLabels({ config: config });
@@ -123,7 +118,6 @@ export default class ChatwootClient {
123118
this.inboxes = new Inboxes({ config: config });
124119
this.integrations = new Integrations({ config: config });
125120
this.messages = new Messages({ config: config });
126-
127121
this.profile = new Profile({ config: config });
128122
this.reports = new Reports({ config: config });
129123
this.teams = new Teams({ config: config });

0 commit comments

Comments
 (0)