@gen3/core 0.12.43 → 0.12.44

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/cjs/index.js CHANGED
@@ -6010,7 +6010,7 @@ function getRemoteSupportServiceRegistry(logger) {
6010
6010
  const ZENDESK_MAX_SUBJECT_LENGTH = 255;
6011
6011
  const ZENDESK_DOMAIN = process.env.NEXT_PUBLIC_GEN3_ZENDESK_API || 'https://<SUBDOMAIN_NAME>.zendesk.com';
6012
6012
  const createZendeskTicket = async ({ subject, fullName, email, contents }, configuration)=>{
6013
- const { zendeskSubdomainName } = configuration;
6013
+ const { zendeskSubdomainName, custom_fields } = configuration;
6014
6014
  try {
6015
6015
  let zendeskTicketCreationURL = `${ZENDESK_DOMAIN}/api/v2/requests`;
6016
6016
  if (zendeskSubdomainName) {
@@ -6037,7 +6037,8 @@ const createZendeskTicket = async ({ subject, fullName, email, contents }, confi
6037
6037
  requester: {
6038
6038
  name: fullName,
6039
6039
  email
6040
- }
6040
+ },
6041
+ custom_fields
6041
6042
  }
6042
6043
  })
6043
6044
  }).then((response)=>{
@@ -6121,11 +6122,6 @@ const requestorApi = gen3Api.injectEndpoints({
6121
6122
  query: (queryBody)=>({
6122
6123
  url: `${GEN3_REQUESTOR_API}/request`,
6123
6124
  method: 'POST',
6124
- credentials: 'include',
6125
- headers: {
6126
- Accept: 'application/json',
6127
- 'Content-Type': 'application/json'
6128
- },
6129
6125
  body: JSON.stringify(queryBody)
6130
6126
  })
6131
6127
  })