lib/WixClient.js
function WixActivityData() {
    /**
     * Information about the Activity
     * @typedef {Object} WixActivityData.ActivityDetails
     * @property {?String} additionalInfoUrl Url linking to more specific contextual information about the activity for use in the Dashboard
     * @property {?string} summary A short description about the activity for use in the Dashboard
     */

    /**
     * The id of the Activity
     * @member WixActivityData#id
     * @type {string}
     */

    /**
     * A timestamp to indicate when this Activity took place
     * @member
     * @type {Date}
     */
    this.createdAt = new Date().toISOString();

    /**
     * The URL where the activity was performed
     * @member
     * @type {String}
     */
    this.activityLocationUrl = null;

    /**
     * Information about the Activity
     * @member
     * @type {WixActivityData.ActivityDetails}
     */
    this.activityDetails = {summary : null, additionalInfoUrl : null};

    /**
     * The type of Activity
     * @member
     * @type {string}
     */
    this.activityType = null;

    /**
     * Schema information about the Activity
     * @member
     * @type {Object}
     */
    this.activityInfo = null;
    /**
     * @private
     */
    this.init = function(obj) {
        this.activityType = { name: obj.activityType };
        this.activityDetails = obj.activityDetails;
        this.activityInfo = obj.activityInfo;
        this.id = obj.id;
        this.activityLocationUrl = obj.activityLocationUrl;
        this.createdAt = obj.createdAt;
        return this;
    };
}
function WixActivityData() {
    /**
     * Information about the Activity
     * @typedef {Object} WixActivityData.ActivityDetails
     * @property {?String} additionalInfoUrl Url linking to more specific contextual information about the activity for use in the Dashboard
     * @property {?string} summary A short description about the activity for use in the Dashboard
     */

    /**
     * The id of the Activity
     * @member WixActivityData#id
     * @type {string}
     */

    /**
     * A timestamp to indicate when this Activity took place
     * @member
     * @type {Date}
     */
    this.createdAt = new Date().toISOString();

    /**
     * The URL where the activity was performed
     * @member
     * @type {String}
     */
    this.activityLocationUrl = null;

    /**
     * Information about the Activity
     * @member
     * @type {WixActivityData.ActivityDetails}
     */
    this.activityDetails = {summary : null, additionalInfoUrl : null};

    /**
     * The type of Activity
     * @member
     * @type {string}
     */
    this.activityType = null;

    /**
     * Schema information about the Activity
     * @member
     * @type {Object}
     */
    this.activityInfo = null;
    /**
     * @private
     */
    this.init = function(obj) {
        this.activityType = { name: obj.activityType };
        this.activityDetails = obj.activityDetails;
        this.activityInfo = obj.activityInfo;
        this.id = obj.id;
        this.activityLocationUrl = obj.activityLocationUrl;
        this.createdAt = obj.createdAt;
        return this;
    };
}
function WixActivityData ( ) { /**
     * Information about the Activity
     * @typedef {Object} WixActivityData.ActivityDetails
     * @property {?String} additionalInfoUrl Url linking to more specific contextual information about the activity for use in the Dashboard
     * @property {?string} summary A short description about the activity for use in the Dashboard
     */ /**
     * The id of the Activity
     * @member WixActivityData#id
     * @type {string}
     */ /**
     * A timestamp to indicate when this Activity took place
     * @member
     * @type {Date}
     */ this . createdAt = new Date ( ) . toISOString ( ) ; /**
     * The URL where the activity was performed
     * @member
     * @type {String}
     */ this . activityLocationUrl = null ; /**
     * Information about the Activity
     * @member
     * @type {WixActivityData.ActivityDetails}
     */ this . activityDetails = { summary : null , additionalInfoUrl : null } ; /**
     * The type of Activity
     * @member
     * @type {string}
     */ this . activityType = null ; /**
     * Schema information about the Activity
     * @member
     * @type {Object}
     */ this . activityInfo = null ; /**
     * @private
     */ this . init = function ( obj ) { this . activityType = { name : obj . activityType } ; this . activityDetails = obj . activityDetails ; this . activityInfo = obj . activityInfo ; this . id = obj . id ; this . activityLocationUrl = obj . activityLocationUrl ; this . createdAt = obj . createdAt ; return this ; } ; }
Represents an Activity in the Wix ecosystem
@constructor
@alias WixActivityData
@class
Represents an Activity in the Wix ecosystem