"use strict";
export class SendGridWebHooksData {
/** @param {{email?:string,timestamp?:number,SmtpId?:string,Event?:string,Category?:string[],Sg_Event_Id?:string,Sg_Message_Id?:string,Useragent?:string,Ip?:string,Url?:string,Asm_Group_id?:string,OurUniqueId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
email;
/** @type {number} */
timestamp;
/** @type {string} */
SmtpId;
/** @type {string} */
Event;
/** @type {string[]} */
Category;
/** @type {string} */
Sg_Event_Id;
/** @type {string} */
Sg_Message_Id;
/** @type {string} */
Useragent;
/** @type {string} */
Ip;
/** @type {string} */
Url;
/** @type {string} */
Asm_Group_id;
/** @type {string} */
OurUniqueId;
}
export class SendGridWebHook extends Array {
constructor(init) { super(init); Object.assign(this, init) }
}
JavaScript SendGridWebHook DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/SendGridWebHook HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
[
]
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}