digitaluapi

<back to all web services

BatchDataFieldsViewQuery

The following routes are available for this service:
GET/batch_data_fields_view
GET/batch_data_fields_view/{Id}
"use strict";
export class QueryBase {
    /** @param {{Skip?:number,Take?:number,OrderBy?:string,OrderByDesc?:string,Include?:string,Fields?:string,Meta?:{ [index:string]: string; }}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {?number} */
    Skip;
    /** @type {?number} */
    Take;
    /** @type {string} */
    OrderBy;
    /** @type {string} */
    OrderByDesc;
    /** @type {string} */
    Include;
    /** @type {string} */
    Fields;
    /** @type {{ [index:string]: string; }} */
    Meta;
}
/** @typedef T {any} */
export class QueryDb extends QueryBase {
    /** @param {{Skip?:number,Take?:number,OrderBy?:string,OrderByDesc?:string,Include?:string,Fields?:string,Meta?:{ [index:string]: string; }}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
}
export class BatchDataFieldsView {
    /** @param {{Id?:number,BatchId?:number,UploadFieldsId?:number,MappedFieldName?:string,FieldName?:string,Required?:boolean,UploadType?:string,Label?:string,UploadSubtype?:string,IsEnabled?:boolean,SortOrder?:number,Help?:string,Placeholder?:string,DataType?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {?number} */
    Id;
    /** @type {?number} */
    BatchId;
    /** @type {?number} */
    UploadFieldsId;
    /** @type {string} */
    MappedFieldName;
    /** @type {string} */
    FieldName;
    /** @type {boolean} */
    Required;
    /** @type {string} */
    UploadType;
    /** @type {string} */
    Label;
    /** @type {string} */
    UploadSubtype;
    /** @type {boolean} */
    IsEnabled;
    /** @type {?number} */
    SortOrder;
    /** @type {string} */
    Help;
    /** @type {string} */
    Placeholder;
    /** @type {string} */
    DataType;
}
export class BatchDataFieldsViewQuery extends QueryDb {
    /** @param {{Skip?:number,Take?:number,OrderBy?:string,OrderByDesc?:string,Include?:string,Fields?:string,Meta?:{ [index:string]: string; }}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
}
export class CampaignCustomersView {
    /** @param {{Id?:number,Name?:string,Description?:string,CustomersId?:number,FirstName?:string,LastName?:string,IdNumber?:string,PassportNumber?:string,Email?:string,MobileNumber?:string,CustomerUniqueIdentifier?:string,CustomerPublicAccessGuid?:string,CampaignPublicAccessGuid?:string,TenantsId?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {?number} */
    Id;
    /** @type {string} */
    Name;
    /** @type {string} */
    Description;
    /** @type {?number} */
    CustomersId;
    /** @type {string} */
    FirstName;
    /** @type {string} */
    LastName;
    /** @type {string} */
    IdNumber;
    /** @type {string} */
    PassportNumber;
    /** @type {string} */
    Email;
    /** @type {string} */
    MobileNumber;
    /** @type {string} */
    CustomerUniqueIdentifier;
    /** @type {?string} */
    CustomerPublicAccessGuid;
    /** @type {?string} */
    CampaignPublicAccessGuid;
    /** @type {?number} */
    TenantsId;
}
/** @typedef T {any} */
export class QueryResponse {
    /** @param {{Offset?:number,Total?:number,Results?:T[],Meta?:{ [index:string]: string; },ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Offset;
    /** @type {number} */
    Total;
    /** @type {T[]} */
    Results;
    /** @type {{ [index:string]: string; }} */
    Meta;
    /** @type {ResponseStatus} */
    ResponseStatus;
}

JavaScript BatchDataFieldsViewQuery DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /batch_data_fields_view HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Offset":0,"Total":0,"Results":[{"Id":0,"BatchId":0,"UploadFieldsId":0,"MappedFieldName":"String","FieldName":"String","Required":false,"UploadType":"String","Label":"String","UploadSubtype":"String","IsEnabled":false,"SortOrder":0,"Help":"String","Placeholder":"String","DataType":"String"}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}