{"_id":"wbb-desk-director","_rev":"32-b7124d01282142410106c33b974d6a89","name":"wbb-desk-director","dist-tags":{"latest":"0.0.17"},"versions":{"0.0.17":{"name":"wbb-desk-director","version":"0.0.17","keywords":["wbb-logicdialog"],"author":{"name":"WBB Developers","email":"andy@wbb.ai"},"_id":"wbb-desk-director@0.0.17","maintainers":[{"name":"webuildbots","email":"developers@webuildbots.ai"}],"wbb":{"icon":"https://www.deskdirector.com/hubfs/deskdirector-logo.svg","name":"Desk Director","tags":["Desk Director"],"handlers":{"add-note":{"config":[{"key":"domain","type":"string","label":"Domain","tooltip":"The domain used to access your instance of Desk Director. This can be found in the URL E.G. 'https://{domain}.deskdirector.com'","required":true,"sensitive":false},{"key":"ticketId","type":"string","label":"Ticket ID","tooltip":"The ID of the ticket, if not fetched through a form. Mainly used by `fetch-tickets`","required":false,"sensitive":false},{"key":"idForm","type":"string","label":"Ticket Id Form","tooltip":"Name of the 'question' used to prompt the user for the id of a ticket, formatted in camelCase. Defaults to 'deskDirectorTicketId', not used if triggered through `fetch-tickets` or `fetch-ticket-details`","required":false,"sensitive":false},{"key":"noteForm","type":"string","label":"Note Form","tooltip":"Name of the 'question' used to prompt the user for the note to add to a ticket, formatted in camelCase. If triggered through `fetch-tickets` or `fetch-ticket-details` this will always be the default of 'deskDirectorTicketNote'","required":false,"sensitive":false},{"key":"nextResponse","type":"reference","label":"Next Response","tooltip":"The Response shown when the note is successfully added to ticket, defaults to 'menu'","required":false,"sensitive":false},{"key":"unset","type":"boolean","label":"Reset Form","tooltip":"Resets the form used if checked","required":false,"sensitive":false},{"key":"noTicketResponse","type":"reference","label":"No Ticket Response","tooltip":"The Response shown when no ticket is found, takes priority over 'No Ticket Message'","required":false,"sensitive":false},{"key":"noTicketMessage","type":"string","label":"No Ticket Message","tooltip":"The message displayed when no ticket is found.","required":false,"sensitive":false}]},"authenticate":{"config":[{"key":"domain","type":"string","label":"Domain","tooltip":"The domain used to access your instance of Desk Director. This can be found in the URL E.G. 'https://{domain}.deskdirector.com'","required":true,"sensitive":false},{"key":"unset","type":"boolean","label":"Reset Form","tooltip":"If checked, unsets the email form on success","required":false,"sensitive":false},{"key":"successResponse","type":"reference","label":"Success Response","tooltip":"The Response shown to the user once authenticated. Defaults to 'Desk Director Fetch Tickets'","required":false,"sensitive":false},{"key":"authFailureResponse","type":"reference","label":"Failure Response","tooltip":"The Response shown to the user if authentication fails. Defaults to 'Desk Director Auth Fail'","required":false,"sensitive":false},{"key":"noEmailResponse","type":"reference","label":"No Email Response","tooltip":"The Response shown to the user if the 'No Email Access' choice was picked. Defaults to 'Desk Director No Email'","required":false,"sensitive":false}]},"close-ticket":{"config":[{"key":"domain","type":"string","label":"Domain","tooltip":"The domain used to access your instance of Desk Director. This can be found in the URL E.G. 'https://{domain}.deskdirector.com'","required":true,"sensitive":false},{"key":"ticketId","type":"string","label":"Ticket ID","tooltip":"The ID of the ticket, if not fetched through a form. Mainly used by `fetch-tickets`","required":false,"sensitive":false},{"key":"idForm","type":"string","label":"Ticket Id Form","tooltip":"Name of the 'question' used to prompt the user for the id of a ticket, formatted in camelCase. Defaults to 'deskDirectorTicketId', not used if triggered through `fetch-tickets` or `fetch-ticket-details`","required":false,"sensitive":false},{"key":"noteForm","type":"string","label":"Note Form","tooltip":"Name of the 'question' used to prompt the user for the note to add to a ticket, formatted in camelCase. If triggered through `fetch-tickets` or `fetch-ticket-details` this will always be the default of 'deskDirectorOptionalNote'","required":false,"sensitive":false},{"key":"nextResponse","type":"reference","label":"Next Response","tooltip":"The Response shown when the ticket is successfully closed, defaults to 'menu'","required":false,"sensitive":false},{"key":"unset","type":"boolean","label":"Reset Form","tooltip":"Resets the form used if checked","required":false,"sensitive":false},{"key":"noTicketResponse","type":"reference","label":"No Ticket Response","tooltip":"The Response shown when no ticket is found, takes priority over 'No Ticket Message'","required":false,"sensitive":false},{"key":"noTicketMessage","type":"string","label":"No Ticket Message","tooltip":"The message displayed when no ticket is found.","required":false,"sensitive":false}]},"create-ticket":{"config":[{"key":"domain","type":"string","label":"Domain","tooltip":"The domain used to access your instance of Desk Director. This can be found in the URL E.G. 'https://{domain}.deskdirector.com'","required":true,"sensitive":false},{"key":"successResponse","type":"reference","label":"Success Response","tooltip":"The Response shown to the user, after ticket has been successfully created. Defaults to 'menu'","required":false,"sensitive":false},{"key":"errorResponse","type":"string","label":"Error Response","tooltip":"The Response shown to the user, if an error occurs while creating ticket. Defaults to 'Desk Director Error'","required":false,"sensitive":false},{"key":"unset","type":"boolean","label":"Reset Form","tooltip":"If checked, the form used to raise the ticket will be reset on completion","required":false,"sensitive":false,"dependencies":[]},{"key":"additionalBody","type":"any","label":"Additional Body","tooltip":"This JSON Object is appended to the body of the API call to Desk Director. This can be used to add additional information to a ticket. Using Template Strings, these can be set dynamically, consult the Documentation for more details on Template Strings","required":false,"sensitive":false}]},"fetch-tickets":{"config":[{"key":"domain","type":"string","label":"Domain","tooltip":"The domain used to access your instance of Desk Director. This can be found in the URL E.G. 'https://{domain}.deskdirector.com'","required":true,"sensitive":false},{"key":"apiKey","type":"string","label":"API Key","tooltip":"API Key generated through Desk Director, required to fetch a Contact if a seperate user's email is found in a form for the function","required":false,"sensitive":false},{"key":"emailField","type":"string","label":"Email Form","tooltip":"Name of the question asking the Email of the contact to find tickets for, defaults to 'deskDirectorEmail'","required":false,"sensitive":false},{"key":"statusFilter","type":"string","label":"Status Filter","tooltip":"The name of the status to optionally filter tickets with. This can be a partial match, for example the filter 'closed' will match both status 'Closed - Resolved' and 'Closed - No Contact'","required":false,"sensitive":false},{"key":"category","type":"string","label":"Category","tooltip":"Used to query tickets based on category field","required":false,"sensitive":false},{"key":"raisedByUser","type":"boolean","label":"Raised By User","tooltip":"If checked, will only fetch tickets assigned to the authenticated user, or the user matching the provided email.","required":false,"sensitive":false},{"key":"ticketsMessage","type":"string","label":"Tickets Found Message","tooltip":"Message to display above the fetched list of tickets. Defaults to 'Here are your tickets:'","required":false,"sensitive":false,"dependencies":[]},{"key":"nextResponse","type":"reference","label":"Next Response","tooltip":"The Response shown when the user clicks the button to continue the conversation, at the end of the list. This carries over to the Response shown when a user clicks See Details on a ticket. Defaults to 'menu'","required":false,"sensitive":false,"dependencies":[]},{"key":"nextResponseChoice","type":"string","label":"Next Response Choice Text","tooltip":"The text on the button to continue the conversation.","required":true,"sensitive":false,"dependencies":["nextResponse"]},{"key":"errorResponse","type":"string","label":"Error Response","tooltip":"The Response shown to the user, if an error occurs while creating ticket. Defaults to 'Desk Director Error","required":false,"sensitive":false},{"key":"noTicketsMessage","type":"string","label":"No Tickets Found Message","tooltip":"The message displayed when no tickets are found for the user","required":false,"sensitive":false,"dependencies":[]},{"key":"noTicketsResponse","type":"reference","label":"No Tickets Found Response","tooltip":"The Response shown when no tickets are found for the user. This takes priority over 'No Tickets Found Message'","required":false,"sensitive":false,"dependencies":[]},{"key":"unset","type":"boolean","label":"Reset Form","tooltip":"If checked, resets any forms used to find tickets.","required":false,"sensitive":false},{"key":"ticketLimit","type":"number","label":"Ticket Limit","tooltip":"Maximum number of tickets to display. Defaults to 100","required":false,"sensitive":false,"dependencies":[]},{"key":"closed","type":"boolean","label":"Fetch Closed","tooltip":"If checked, will only fetch closed tickets. If unchecked, only open tickets are fetched","required":false,"sensitive":false,"dependencies":[]},{"key":"allowApproval","type":"boolean","label":"Allow Approvals","tooltip":"If checked, will add an Approve button to each ticket item the authenticated user is allowed to approve.","required":false,"sensitive":false,"dependencies":[]},{"key":"approveResponse","type":"response","label":"Approval Response","tooltip":"The Response to show the user when they have successfully approved a ticket.","required":false,"sensitive":false,"dependencies":["allowApproval"]},{"key":"closeResponse","type":"response","label":"Close Response","tooltip":"The Response to show the user when they have successfully closed a ticket.","required":false,"sensitive":false,"dependencies":[]},{"key":"viewDetailsInPortal","type":"boolean","label":"View Details In Portal","tooltip":"If checked, View Details button is replaced by View in Portal, redirecting the user to the ticket in the Desk Director portal.","required":false,"sensitive":false,"dependencies":[]},{"key":"addNote","type":"boolean","label":"Add Note","tooltip":"If checked, will add button to add a note to the ticket item","required":false,"sensitive":false,"dependencies":[]}]},"approve-ticket":{"config":[{"key":"domain","type":"string","label":"Domain","tooltip":"The domain used to access your instance of Desk Director. This can be found in the URL E.G. 'https://{domain}.deskdirector.com'","required":true,"sensitive":false},{"key":"ticketId","type":"string","label":"Ticket ID","tooltip":"The ID of the ticket, if not fetched through a form. Mainly used by `fetch-tickets`","required":false,"sensitive":false},{"key":"idForm","type":"string","label":"Ticket Id Form","tooltip":"Name of the 'question' used to prompt the user for the id of a ticket, formatted in camelCase. Defaults to 'deskDirectorTicketId', not used if triggered through `fetch-tickets` or `fetch-ticket-details`","required":false,"sensitive":false},{"key":"noteForm","type":"string","label":"Note Form","tooltip":"Name of the 'question' used to prompt the user for the note to add to a ticket, formatted in camelCase. If triggered through `fetch-tickets` or `fetch-ticket-details` this will always be the default of 'deskDirectorTicketNote'","required":false,"sensitive":false},{"key":"nextResponse","type":"reference","label":"Next Response","tooltip":"The Response shown when the note is successfully added to ticket, defaults to 'menu'","required":false,"sensitive":false},{"key":"unset","type":"boolean","label":"Reset Form","tooltip":"Resets the form used if checked","required":false,"sensitive":false},{"key":"errorResponse","type":"reference","label":"Error Response","tooltip":"The Response shown when no ticket is found, or if the approval fails for any reason.","required":false,"sensitive":false}]},"create-ticket-form":{"config":[{"key":"domain","type":"string","label":"Domain","tooltip":"The domain used to access your instance of Desk Director. This can be found in the URL E.G. 'https://{domain}.deskdirector.com'","required":true,"sensitive":false},{"key":"formId","type":"string","label":"Form Id","tooltip":"The entityId of the form to raise ticket with","required":true,"sensitive":false},{"key":"submitResponse","type":"reference","label":"Submit Response","tooltip":"The Response shown to the user, after ticket has been successfully submitted. Defaults to 'menu'","required":false,"sensitive":false},{"key":"noSubmitResponse","type":"reference","label":"Cancel Response","tooltip":"The Response shown to the user, if ticket is not submitted by user. Defaults to 'menu'","required":false,"sensitive":false},{"key":"noFormResponse","type":"reference","label":"No Form Response","tooltip":"The Response shown to the user, if no form with the supplied id can be found. Defaults to 'Desk Director Error'","required":false,"sensitive":false},{"key":"errorResponse","type":"reference","label":"Error Response","tooltip":"The Response shown to the user, if an error occurs while creating ticket. Defaults to 'Desk Director Error'","required":false,"sensitive":false}]},"fetch-ticket-details":{"config":[{"key":"domain","type":"string","label":"Domain","tooltip":"The domain used to access your instance of Desk Director. This can be found in the URL E.G. 'https://{domain}.deskdirector.com'","required":true,"sensitive":false},{"key":"ticketId","type":"string","label":"Ticket ID","tooltip":"The ID of the ticket, if not fetched through a form. Mainly used by `fetch-tickets`","required":false,"sensitive":false},{"key":"idForm","type":"string","label":"Ticket Id Form","tooltip":"Name of the 'question' used to prompt the user for the id of a ticket, formatted in camelCase. Defaults to 'deskDirectorTicketId'","required":false,"sensitive":false},{"key":"nextResponse","type":"reference","label":"Next Response","tooltip":"The Response shown when the user clicks the 'Next' button, defaults to 'menu'","required":false,"sensitive":false},{"key":"nextResponseChoice","type":"string","label":"Next Response Choice","tooltip":"The text on the 'next' response button, only used if 'nextResponse' is used. Defaults to 'Next'","required":false,"sensitive":false},{"key":"unset","type":"boolean","label":"Reset Form","tooltip":"Resets the form used if checked","required":false,"sensitive":false},{"key":"allowApproval","type":"boolean","label":"Allow Approvals","tooltip":"If checked, will add an Approve if the ticket is pending approval and the user has the permissions.","required":false,"sensitive":false,"dependencies":[]},{"key":"addNote","type":"boolean","label":"Add Note","tooltip":"If checked, will add button to add a note to the list of options","required":false,"sensitive":false,"dependencies":[]},{"key":"approveResponse","type":"response","label":"Approval Response","tooltip":"The Response to show the user when they have successfully approved a ticket.","required":false,"sensitive":false,"dependencies":["allowApproval"]},{"key":"closeResponse","type":"response","label":"Close Response","tooltip":"The Response to show the user when they have successfully closed a ticket.","required":false,"sensitive":false,"dependencies":[]},{"key":"noTicketResponse","type":"reference","label":"No Ticket Response","tooltip":"The Response shown when no ticket is found, takes priority over 'No Ticket Message'","required":false,"sensitive":false},{"key":"noTicketMessage","type":"string","label":"No Ticket Message","tooltip":"The message displayed when no ticket is found.","required":false,"sensitive":false}]}},"resources":["desk-director-responses.json"]},"dist":{"shasum":"4ed9f34ed6a7ff5176e288922c99d83d01038cb9","tarball":"https://registry.npmjs.org/wbb-desk-director/-/wbb-desk-director-0.0.17.tgz","fileCount":25,"integrity":"sha512-RBiLkmoDzmzFSvAG9GvfXqQmdf/mAN4rnJvcBSOJgeODfGC5CMWpvFfROkKm7FPO3FzEyET6ij3buRRB19INnQ==","signatures":[{"sig":"MEQCIBZa0706ljEPXdWv1rebpjfOBfQSITcMC2eGH6CJ+QlgAiAlAE881AqSdnWbKYyDwjnr9suuvR4Pq1Id3EXRQZd8uw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":117245},"main":"index.js","husky":{"hooks":{"pre-commit":"pretty-quick --staged --bail && npm run lint-and-fix-staged"}},"gitHead":"650829992afb9f3985db2eaf0e69e45d892050b0","scripts":{"lint":"eslint . --ext .ts","debug":"node --inspect node_modules/.bin/functions-framework --source=.webpack --target=handler","start":"functions-framework --source=.build/src/handlers --target=handler","watch":"tsc -w","format":"prettier --config .prettierrc 'src/**/*.ts' --write","build_code":"npx webpack --config ./webpack.config.js","deploy-dev":"gcloud auth activate-service-account --project=intelagent-stage --key-file=./intelagent-stage.json && npm run build_code && cd .webpack && gcloud functions deploy wbb-desk-director --source=. --entry-point handler --runtime nodejs18 --trigger-http --allow-unauthenticated --region europe-west2 --env-vars-file ../env-stage.yaml","deploy-prod":"gcloud auth activate-service-account --project=intelagent-prod --key-file=./intelagent-prod.json && npm run build_code && cd .webpack && gcloud functions deploy wbb-desk-director --source=. --entry-point handler --runtime nodejs18 --trigger-http --allow-unauthenticated --region europe-west2 --env-vars-file ../env.yaml","check-updates":"ncu","lint-and-fix-staged":"eslint . --fix --cache --ext .ts"},"_npmUser":{"name":"webuildbots","email":"developers@webuildbots.ai"},"_npmVersion":"9.5.0","description":"This integration allows a user to Authenticate and Create and View tickets with Desk Director.","directories":{},"lint-staged":{"*.{ts,tsx}":["eslint","jest --passWithNoTests"]},"_nodeVersion":"18.14.2","dependencies":{"md5":"^2.3.0","dotenv":"^16.0.0","request":"^2.88.2","deepmerge":"^4.2.2","wbb-logger":"^1.1.0","webpack-cli":"^4.9.2","@sentry/node":"5.30","jsonwebtoken":"^8.5.1","is-date-object":"^1.0.5","request-promise":"^4.2.6","@webpack-cli/init":"^1.1.3","http-status-codes":"^2.1.4","google-spreadsheet":"^3.1.15","source-map-support":"^0.5.19","@sentry/webpack-plugin":"^1.14.2","@types/source-map-support":"^0.5.3","@webuildbots/webuildbots-sdk":"^11.3.0","@google-cloud/functions-framework":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nock":"^13.0.5","husky":"^4.3.0","eslint":"^7.10.0","ts-node":"^9.1.1","webpack":"^5.89.0","prettier":"^2.1.2","ts-loader":"^8.0.4","@types/md5":"^2.3.0","typescript":"4.1.3","@types/jest":"^26.0.14","@types/node":"^14.11.2","lint-staged":"^10.4.0","pretty-quick":"^3.1.0","@types/nodemailer":"^6.4.0","npm-check-updates":"^9.0.3","@types/jsonwebtoken":"^8.5.0","copy-webpack-plugin":"^6.4.1","@types/request-promise":"^4.1.46","eslint-config-prettier":"^6.12.0","eslint-plugin-prettier":"^3.1.4","webpack-node-externals":"^2.5.2","@serverless/event-mocks":"^1.1.1","@types/google-spreadsheet":"^3.0.2","@typescript-eslint/parser":"^4.15.2","fork-ts-checker-webpack-plugin":"^5.2.0","@typescript-eslint/eslint-plugin":"^4.15.2"},"_npmOperationalInternal":{"tmp":"tmp/wbb-desk-director_0.0.17_1730210433441_0.4434300805328917","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-06-09T14:16:14.843Z","modified":"2024-10-31T10:31:32.650Z","0.0.1":"2023-06-09T14:16:15.017Z","0.0.2":"2023-06-09T14:22:50.731Z","0.0.3":"2023-06-13T08:33:30.542Z","0.0.4":"2023-06-13T12:02:56.409Z","0.0.5":"2023-06-13T13:38:19.118Z","0.0.6":"2023-06-13T15:03:53.229Z","0.0.7":"2023-06-20T14:41:44.234Z","0.0.8":"2023-06-21T08:35:08.490Z","0.0.9":"2023-06-22T12:47:14.249Z","0.0.10":"2023-07-05T12:39:25.284Z","0.0.11":"2023-07-06T10:50:54.965Z","0.0.12":"2023-07-07T10:04:32.073Z","0.0.13":"2023-08-07T15:10:23.652Z","0.0.14":"2023-09-25T15:24:09.685Z","0.0.15":"2023-09-26T10:52:22.877Z","0.0.16":"2023-09-27T08:47:59.181Z","0.0.17":"2024-10-29T14:00:33.775Z"},"author":{"name":"WBB Developers","email":"andy@wbb.ai"},"keywords":["wbb-logicdialog"],"description":"This integration allows a user to Authenticate and Create and View tickets with Desk Director.","maintainers":[{"name":"webuildbots","email":"developers@webuildbots.ai"}],"readme":"","readmeFilename":""}