@squidcloud/freshdesk-client 1.0.484 → 1.0.485
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";
|
|
1
|
+
(()=>{"use strict";const e={d:(t,i)=>{if(Array.isArray(i))for(var n=0;n<i.length;){var r=i[n++],s=i[n++];e.o(t,r)?0===s&&n++:0===s?Object.defineProperty(t,r,{enumerable:!0,value:i[n++]}):Object.defineProperty(t,r,{enumerable:!0,get:s})}else for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}};let t={};e.r(t),e.d(t,{FreshdeskClient:()=>c,PRIORITY_LABELS:()=>i,RELATED_TICKETS_MODE_ENUM:()=>s,SOURCE_LABELS:()=>r,STATUS_LABELS:()=>n});const i={1:"Low",2:"Medium",3:"High",4:"Urgent"},n={2:"Open",3:"Pending",4:"Resolved",5:"Closed"},r={1:"Email",2:"Portal",3:"Phone",7:"Chat",8:"Mobihelp",9:"Feedback Widget",10:"Outbound Email"},s=["RESOLVED_OR_CLOSED","ALL","NONE"];class c{constructor(e,t){this.squid=e,this.integrationId=t}async searchTickets(e,t=50){const i={integrationId:this.integrationId,query:e,limit:t};return this.squid.executeFunction("searchFreshdeskTicketsExecutable",i)}async getTicketDetails(e,t="RESOLVED_OR_CLOSED"){const i={integrationId:this.integrationId,ticketId:e,relatedTicketsMode:t};return this.squid.executeFunction("getFreshdeskTicketDetailsExecutable",i)}async createTicket(e,t,i,n){const r={integrationId:this.integrationId,subject:e,description:t,email:i,...n};return this.squid.executeFunction("createFreshdeskTicketExecutable",r)}async updateTicket(e,t){const i={integrationId:this.integrationId,ticketId:e,...t};return this.squid.executeFunction("updateFreshdeskTicketExecutable",i)}async replyToTicket(e,t,i=!1){const n={integrationId:this.integrationId,ticketId:e,body:t,private:i};return this.squid.executeFunction("replyToFreshdeskTicketExecutable",n)}async addNote(e,t,i=!0){const n={integrationId:this.integrationId,ticketId:e,body:t,private:i};return this.squid.executeFunction("addFreshdeskNoteExecutable",n)}async changeStatus(e,t){return this.updateTicket(e,{status:t})}async changePriority(e,t){return this.updateTicket(e,{priority:t})}async resolveTicket(e){return this.changeStatus(e,4)}async closeTicket(e){return this.changeStatus(e,5)}async reopenTicket(e){return this.changeStatus(e,2)}}const a=exports;for(var o in t)a[o]=t[o];t.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squidcloud/freshdesk-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.485",
|
|
4
4
|
"description": "Squid Freshdesk Client - SDK for interacting with the Freshdesk connector",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/freshdesk-client/src/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"assertic": "^1.3.0",
|
|
26
|
-
"@squidcloud/client": "^1.0.
|
|
26
|
+
"@squidcloud/client": "^1.0.485"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=20.0.0"
|