UNPKG

gigya-node

Version:
112 lines 4.47 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.IDS = void 0; __exportStar(require("./interfaces/gigya-response"), exports); __exportStar(require("./interfaces/base-params"), exports); var IDS = /** @class */ (function () { function IDS(gigya) { this.gigya = gigya; } /** * This method deletes the specified user's account from Gigya's database. * * @see http://developers.gigya.com/display/GD/ids.deleteAccount+REST */ IDS.prototype.deleteAccount = function (params, options) { return this.gigya.request('ids.deleteAccount', params, options); }; /** * This API retrieves user account data. * * @see http://developers.gigya.com/display/GD/ids.getAccountInfo+REST */ IDS.prototype.getAccountInfo = function (params, options) { return this.gigya.request('ids.getAccountInfo', params, options); }; /** * This API retrieves the counters associated with a user ID (UID). * * @see http://developers.gigya.com/display/GD/ids.getCounters+REST */ IDS.prototype.getCounters = function (params, options) { return this.gigya.request('ids.getCounters', params, options); }; /** * This API returns the counters that were registered for the site using ids.registerCounters. * * @see http://developers.gigya.com/display/GD/ids.getRegisteredCounters+REST */ IDS.prototype.getRegisteredCounters = function (params, options) { return this.gigya.request('ids.getRegisteredCounters', params, options); }; /** * This API retrieves the schema of the Profile object and the Data object (the site specific custom data object) in Gigya's Profile Management. * * @see http://developers.gigya.com/display/GD/ids.getSchema+REST */ IDS.prototype.getSchema = function (params, options) { return this.gigya.request('ids.getSchema', params, options); }; /** * This API increments counters by a specific count and also optionally provides a value for the count. * * @see http://developers.gigya.com/display/GD/ids.incrementCounters+REST */ IDS.prototype.incrementCounters = function (params, options) { return this.gigya.request('ids.incrementCounters', params, options); }; /** * This API registers custom counters that can then be incremented using ids.incrementCounters. * * @see http://developers.gigya.com/display/GD/ids.registerCounters+REST */ IDS.prototype.registerCounters = function (params, options) { return this.gigya.request('ids.registerCounters', params, options); }; /** * Searches and retrieves data from Gigya's Profile Management (IDS) using an SQL-like query. * * @see http://developers.gigya.com/display/GD/ids.search+REST */ IDS.prototype.search = function (params, options) { return this.gigya.request('ids.search', params, options); }; /** * This API sets account data into a user's account. * * @see http://developers.gigya.com/display/GD/ids.setAccountInfo+REST */ IDS.prototype.setAccountInfo = function (params, options) { return this.gigya.request('ids.setAccountInfo', params, options); }; /** * This API allows specifying a schema for Profile Management. * * @see http://developers.gigya.com/display/GD/ids.setSchema+REST */ IDS.prototype.setSchema = function (params, options) { return this.gigya.request('ids.setSchema', params, options); }; /** * This API de-registers counters. * * @see http://developers.gigya.com/display/GD/ids.unregisterCounters+REST */ IDS.prototype.unregisterCounters = function (params, options) { return this.gigya.request('ids.unregisterCounters', params, options); }; return IDS; }()); exports.IDS = IDS; exports.default = IDS; //# sourceMappingURL=ids.js.map