From 3ba5f3b94b8b3f4199394d2e74214931ca1df155 Mon Sep 17 00:00:00 2001 From: Rick Rothenberg Date: Mon, 7 Jan 2019 05:49:35 -0700 Subject: [PATCH 1/8] Basic CRUD for resource sets --- index.js | 103 +++++++++++++++++++++++++++++++++++++++++++++-- wrapper.mustache | 3 +- 2 files changed, 102 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index b3ee396..9ca18c4 100644 --- a/index.js +++ b/index.js @@ -57,6 +57,8 @@ class ServerlessPlugin { } }; + const triggerVariables = []; + for (let key of Object.keys(functions)) { for (let event of functions[key].events) { if (event.instance) { @@ -83,6 +85,7 @@ class ServerlessPlugin { if (!resources[event.instance.resource].Properties) { throw new Error(`Resource '${event.instance.resource}' is in error: The Properties object is missing`); } + triggerVariables.push(event.instance.resource); const handler = functions[key].handler.split('.'); const module = modules.find(module => module.name === handler[0]); if (module) { @@ -159,7 +162,7 @@ class ServerlessPlugin { } if (resource[1].Properties.id) { const instance = await this.platform.getInstanceById(resource[1].Properties.id).run(); - variables.push({name: resource[0], type: hub, token: instance.token}); + variables.push({name: resource[0], type: hub, token: instance.token, id: resource[1].Properties.id}); } else { variables.push({name: resource[0], type: hub}); } @@ -176,7 +179,7 @@ class ServerlessPlugin { throw new Error(result.message); } const instance = await this.platform.getInstanceById(resource[1].Properties.id).run(); - variables.push({name: resource[0], type: elementKey, token: instance.token}); + variables.push({name: resource[0], type: elementKey, token: instance.token, id: resource[1].Properties.id}); } else { result = await sdkifier.generateElementSdk(elementKey, null, accountProperties.baseUrl, authHeader, null, 'sdks'); if (!result.success) { @@ -187,6 +190,65 @@ class ServerlessPlugin { } } + const resourceSetsTableName = `${service.service}-${provider.stage}-resource-sets` + provider.iamRoleStatements.push({ + Effect: 'Allow', + Action: ['dynamodb:PutItem', 'dynamodb:Query', 'dynamodb:DeleteItem', 'dynamodb:GetItem'], + Resource: `arn:aws:dynamodb:*:*:table/${resourceSetsTableName}` + }) + provider.iamRoleStatements.push({ + Effect: 'Allow', + Action: ['dynamodb:Query'], + Resource: `arn:aws:dynamodb:*:*:table/${resourceSetsTableName}/index/*` + }) + + resources.resourceSets = { + Type: 'AWS::DynamoDB::Table', + Properties: { + AttributeDefinitions: [ + { + AttributeName: 'userToken', + AttributeType: 'S' + }, + { + AttributeName: 'id', + AttributeType: 'S' + } + ], + BillingMode: 'PAY_PER_REQUEST', + GlobalSecondaryIndexes: triggerVariables.map(variable => {return { + IndexName: `${variable}-index`, + KeySchema: [ + { + AttributeName: `${variable}_id`, + KeyType: 'HASH' + } + ], + Projection: { + ProjectionType: 'ALL' + } + }}), + KeySchema: [ + { + AttributeName: 'userToken', + KeyType: 'HASH' + }, + { + AttributeName: 'id', + KeyType: 'RANGE' + } + ], + TableName: resourceSetsTableName + } + }; + + for (let variable of triggerVariables) { + resources.resourceSets.Properties.AttributeDefinitions.push({ + AttributeName: `${variable}_id`, + AttributeType: 'N' + }) + } + if (!service.package) { service.package = {} } @@ -212,6 +274,38 @@ class ServerlessPlugin { ] } + functions.resourceSetCRUD = { + handler: 'wrapper.resourceSetCRUD', + name: `${service.service}-${provider.stage}-resource-set-crud`, + timeout: 30, + memorySize: 128, + environment: { + ORG_TOKEN: accountProperties.orgToken, + TRIGGER_VARIABLES: JSON.stringify(triggerVariables), + VARIABLES: JSON.stringify(variables.map(variable => variable.name)), + TABLE_NAME: resourceSetsTableName, + BASE_URL: accountProperties.baseUrl, + DEFAULTS: JSON.stringify(variables.filter(variable => variable.id).reduce((result, variable) => { + result[variable.name] = Number(variable.id) + return result + }, {})) + }, + events: [ + { + http: { + path: 'resource-sets', + method: 'ANY' + } + }, + { + http: { + path: 'resource-sets/{id}', + method: 'ANY' + } + } + ] + } + // Once processed, the resources with Cloud Elements types should be removed as they're not valid const ceResources = Object.keys(resources).filter(key => resources[key].Type.startsWith('CE::')); for (let ceResource of ceResources) { @@ -268,7 +362,10 @@ class ServerlessPlugin { if (event.http && event.http.id) { this.serverless.cli.log(`setting instance ${event.http.id} callback url to ${endpoint}/${event.http.path}`); await this.platform.updateInstanceById(event.http.id, { - configuration: {'event.notification.callback.url': `${endpoint}/${event.http.path}`} + configuration: { + 'event.notification.callback.url': `${endpoint}/${event.http.path}`, + 'event.notification.enabled': 'true' + } }).run(); } } diff --git a/wrapper.mustache b/wrapper.mustache index f1566c8..a18043a 100644 --- a/wrapper.mustache +++ b/wrapper.mustache @@ -21,4 +21,5 @@ {{/modules}} const runtime = require('serverless-cloud-elements-runtime'); -module.exports.resume = runtime.resume; \ No newline at end of file +module.exports.resume = runtime.resume; +module.exports.resourceSetCRUD = runtime.resourceSetCRUD; \ No newline at end of file From dc5fc5b9187a2a44bfcb96c50f4a983cfece1eaf Mon Sep 17 00:00:00 2001 From: Rick Rothenberg Date: Sun, 24 Feb 2019 00:28:13 -0700 Subject: [PATCH 2/8] Refactor config generation --- configurator.mustache | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/configurator.mustache b/configurator.mustache index 597432a..1c82f80 100644 --- a/configurator.mustache +++ b/configurator.mustache @@ -4,7 +4,7 @@ import {platformSDK} from './sdks/platformSDK' import { {{&type}}SDK } from './sdks/{{&type}}SDK' {{/variables}} -const {register} = require('serverless-cloud-elements-runtime') +const {register, buildConfig} = require('serverless-cloud-elements-runtime') interface Configuration { {{#variables}} @@ -39,11 +39,18 @@ if (body) { body = typeof body === 'object' ? body : JSON.parse(body); const trigger = body.message; } -const config = { + +const config = buildConfig(input[0].path, body && body.message && body.message.instanceId, '{{&baseUrl}}', +'{{&authHeader}}', [ {{#variables}} - {{&name}}: new {{&type}}SDK('{{&baseUrl}}', '{{&authHeader}}{{#token}}, Element {{&token}}{{/token}}'), + { + name: '{{&name}}', + type: '{{&type}}', + token: '{{&token}}', + id: '{{&id}}' + } {{/variables}} -}; +null]) {{#variables}} register({{&type}}SDK, obj => new {{&type}}SDK(obj.domain.replace('/elements/api-v2', ''), obj.authorizationHeader)) From 519c179e43454b58a281781f74e4ff2e7ef24042 Mon Sep 17 00:00:00 2001 From: Rick Rothenberg Date: Sat, 2 Mar 2019 10:16:05 -0700 Subject: [PATCH 3/8] Finished code for resource-sets --- configurator.mustache | 17 ++++++++++++----- example/contactSync.js | 32 +++++++++++++++++--------------- index.js | 6 +++++- 3 files changed, 34 insertions(+), 21 deletions(-) diff --git a/configurator.mustache b/configurator.mustache index 1c82f80..f83220a 100644 --- a/configurator.mustache +++ b/configurator.mustache @@ -33,15 +33,21 @@ instanceId: number, instanceName: string } -export function configurator(input: any) : {trigger: Trigger, config: Configuration, platform: platformSDK, done: any} { +export async function configurator(input: any) : {trigger: Trigger, config: Configuration, platform: platformSDK, done: any} { let body = input[0].body; +let trigger if (body) { body = typeof body === 'object' ? body : JSON.parse(body); -const trigger = body.message; +trigger = body.message; } -const config = buildConfig(input[0].path, body && body.message && body.message.instanceId, '{{&baseUrl}}', -'{{&authHeader}}', [ +const config = await buildConfig( +input[1], +input[0].path, +body && body.message && body.message.instanceId, +'{{&baseUrl}}', +'{{&authHeader}}', +[ {{#variables}} { name: '{{&name}}', @@ -50,7 +56,8 @@ const config = buildConfig(input[0].path, body && body.message && body.message.i id: '{{&id}}' } {{/variables}} -null]) +null +]) {{#variables}} register({{&type}}SDK, obj => new {{&type}}SDK(obj.domain.replace('/elements/api-v2', ''), obj.authorizationHeader)) diff --git a/example/contactSync.js b/example/contactSync.js index a624f10..60dfb0f 100644 --- a/example/contactSync.js +++ b/example/contactSync.js @@ -1,25 +1,27 @@ const {configurator} = require('./configurator'); async function syncContact(myContact, dest, total) { - const foundContacts = await dest.getByObjectName('myContact').where(`Email='${myContact.Email}'`).run(); - if (foundContacts.length === 1) { - await dest.replaceObjectNameByObjectId('myContact', foundContacts[0].Id, myContact).run(); - console.log(`${foundContacts[0].Id} updated`); - } else { - const newContact = await dest.createByObjectName('myContact', myContact).run(); - console.log(`${newContact.Id} created`); - } + const foundContacts = await dest.getByObjectName('myContact').where(`Email='${myContact.Email}'`).run(); + $checkpoint('syncingContact', total); + if (foundContacts.length === 1) { + await dest.replaceObjectNameByObjectId('myContact', foundContacts[0].Id, myContact).run(); + console.log(`${foundContacts[0].Id} updated`); + } else { + const newContact = await dest.createByObjectName('myContact', myContact).run(); + console.log(`${newContact.Id} created`); + } } async function eventHandler() { - const {trigger, config} = configurator(arguments); - for (let i = 0; i < trigger.events.length; i++) { - const event = trigger.events[i]; - const myContact = await config.source.getMyContactById(event.objectId).run(); - if (myContact.Email) { - await syncContact(myContact, config.dest, trigger.events.length); + const {trigger, config} = await configurator(arguments); + $checkpoint('eventReceived'); + for (let i = 0; i < trigger.events.length; i++) { + const event = trigger.events[i]; + const myContact = await config.source.getMyContactById(event.objectId).run(); + if (myContact.Email) { + await syncContact(myContact, config.dest, trigger.events.length); + } } - } } module.exports.eventHandler = eventHandler; diff --git a/index.js b/index.js index 9ca18c4..0e23efb 100644 --- a/index.js +++ b/index.js @@ -274,6 +274,11 @@ class ServerlessPlugin { ] } + if (!provider.environment) { + provider.environment = {} + } + provider.environment.RESOURCE_SETS_TABLE_NAME = resourceSetsTableName + functions.resourceSetCRUD = { handler: 'wrapper.resourceSetCRUD', name: `${service.service}-${provider.stage}-resource-set-crud`, @@ -283,7 +288,6 @@ class ServerlessPlugin { ORG_TOKEN: accountProperties.orgToken, TRIGGER_VARIABLES: JSON.stringify(triggerVariables), VARIABLES: JSON.stringify(variables.map(variable => variable.name)), - TABLE_NAME: resourceSetsTableName, BASE_URL: accountProperties.baseUrl, DEFAULTS: JSON.stringify(variables.filter(variable => variable.id).reduce((result, variable) => { result[variable.name] = Number(variable.id) From e01272cb32224bd80a9258af18eb73564f7ae9d0 Mon Sep 17 00:00:00 2001 From: Rick Rothenberg Date: Fri, 15 Mar 2019 07:36:01 -0600 Subject: [PATCH 4/8] Use new sdkifier --- index.js | 8 +- platformSDK.js | 8138 -------------------------- platformSDK.ts | 14457 ----------------------------------------------- 3 files changed, 4 insertions(+), 22599 deletions(-) delete mode 100644 platformSDK.js delete mode 100644 platformSDK.ts diff --git a/index.js b/index.js index 0e23efb..48b9ff8 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ const fs = require('fs'); const sdkifier = require('ce-sdkifier'); const mustache = require('mustache'); const tsc = require('typescript'); -const {platformSDK} = require('./platformSDK') +const {platformSDK} = require('ce-sdkifier/src/core/platformSDK') const babel = require('babel-core') class ServerlessPlugin { @@ -161,7 +161,7 @@ class ServerlessPlugin { throw new Error(`Resource '${resource[0]}' is in error: The Properties object is missing`); } if (resource[1].Properties.id) { - const instance = await this.platform.getInstanceById(resource[1].Properties.id).run(); + const instance = await this.platform.getInstanceById(resource[1].Properties.id); variables.push({name: resource[0], type: hub, token: instance.token, id: resource[1].Properties.id}); } else { variables.push({name: resource[0], type: hub}); @@ -178,7 +178,7 @@ class ServerlessPlugin { if (!result.success) { throw new Error(result.message); } - const instance = await this.platform.getInstanceById(resource[1].Properties.id).run(); + const instance = await this.platform.getInstanceById(resource[1].Properties.id); variables.push({name: resource[0], type: elementKey, token: instance.token, id: resource[1].Properties.id}); } else { result = await sdkifier.generateElementSdk(elementKey, null, accountProperties.baseUrl, authHeader, null, 'sdks'); @@ -370,7 +370,7 @@ class ServerlessPlugin { 'event.notification.callback.url': `${endpoint}/${event.http.path}`, 'event.notification.enabled': 'true' } - }).run(); + }); } } } diff --git a/platformSDK.js b/platformSDK.js deleted file mode 100644 index bc2476b..0000000 --- a/platformSDK.js +++ /dev/null @@ -1,8138 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); - } - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -exports.__esModule = true; -var request = require("superagent"); -var platformSDKMethodParameters = /** @class */ (function () { - function platformSDKMethodParameters(superThis, method, path) { - this.superThis = superThis; - this.method = method; - this.path = path; - this.queryParameters = {}; - this.headers = {}; - this.form = {}; - } - return platformSDKMethodParameters; -}()); -var getAccountsParameters = /** @class */ (function (_super) { - __extends(getAccountsParameters, _super); - function getAccountsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAccountsParameters.prototype.where = function (where) { - this.queryParameters['where'] = where; - return this; - }; - getAccountsParameters.prototype.offset = function (offset) { - this.queryParameters['offset'] = offset; - return this; - }; - getAccountsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAccountsParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getAccountsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsParameters; -}(platformSDKMethodParameters)); -; -var createAccountParameters = /** @class */ (function (_super) { - __extends(createAccountParameters, _super); - function createAccountParameters(superThis, method, path, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = body; - return _this; - } - createAccountParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createAccountParameters; -}(platformSDKMethodParameters)); -; -var getAccountsInstancesParameters = /** @class */ (function (_super) { - __extends(getAccountsInstancesParameters, _super); - function getAccountsInstancesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAccountsInstancesParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAccountsInstancesParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAccountsInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsInstancesParameters; -}(platformSDKMethodParameters)); -; -var deleteAccountsObjectsDefinitionsParameters = /** @class */ (function (_super) { - __extends(deleteAccountsObjectsDefinitionsParameters, _super); - function deleteAccountsObjectsDefinitionsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - deleteAccountsObjectsDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteAccountsObjectsDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var getAccountsObjectsDefinitionsParameters = /** @class */ (function (_super) { - __extends(getAccountsObjectsDefinitionsParameters, _super); - function getAccountsObjectsDefinitionsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAccountsObjectsDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsObjectsDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var createAccountObjectDefinitionParameters = /** @class */ (function (_super) { - __extends(createAccountObjectDefinitionParameters, _super); - function createAccountObjectDefinitionParameters(superThis, method, path, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = body; - return _this; - } - createAccountObjectDefinitionParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createAccountObjectDefinitionParameters; -}(platformSDKMethodParameters)); -; -var deleteAccountsObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(deleteAccountsObjectsObjectNameDefinitionsParameters, _super); - function deleteAccountsObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteAccountsObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteAccountsObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var getAccountsObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(getAccountsObjectsObjectNameDefinitionsParameters, _super); - function getAccountsObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getAccountsObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var createAccountObjectObjectNameDefinitionParameters = /** @class */ (function (_super) { - __extends(createAccountObjectObjectNameDefinitionParameters, _super); - function createAccountObjectObjectNameDefinitionParameters(superThis, method, path, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - createAccountObjectObjectNameDefinitionParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createAccountObjectObjectNameDefinitionParameters; -}(platformSDKMethodParameters)); -; -var replaceAccountsObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(replaceAccountsObjectsObjectNameDefinitionsParameters, _super); - function replaceAccountsObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - replaceAccountsObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceAccountsObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var getAccountsFormulasInstancesParameters = /** @class */ (function (_super) { - __extends(getAccountsFormulasInstancesParameters, _super); - function getAccountsFormulasInstancesParameters(superThis, method, path, accountId, formulaId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{accountId}', "" + accountId); - _this.path = _this.path.replace('{formulaId}', "" + formulaId); - return _this; - } - getAccountsFormulasInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsFormulasInstancesParameters; -}(platformSDKMethodParameters)); -; -var deleteAccountByIdParameters = /** @class */ (function (_super) { - __extends(deleteAccountByIdParameters, _super); - function deleteAccountByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteAccountByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteAccountByIdParameters; -}(platformSDKMethodParameters)); -; -var getAccountByIdParameters = /** @class */ (function (_super) { - __extends(getAccountByIdParameters, _super); - function getAccountByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getAccountByIdParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getAccountByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountByIdParameters; -}(platformSDKMethodParameters)); -; -var updateAccountByIdParameters = /** @class */ (function (_super) { - __extends(updateAccountByIdParameters, _super); - function updateAccountByIdParameters(superThis, method, path, id, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = body; - return _this; - } - updateAccountByIdParameters.prototype.permanent = function (permanent) { - this.queryParameters['permanent'] = permanent; - return this; - }; - updateAccountByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateAccountByIdParameters; -}(platformSDKMethodParameters)); -; -var replaceAccountByIdParameters = /** @class */ (function (_super) { - __extends(replaceAccountByIdParameters, _super); - function replaceAccountByIdParameters(superThis, method, path, id, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = body; - return _this; - } - replaceAccountByIdParameters.prototype.permanent = function (permanent) { - this.queryParameters['permanent'] = permanent; - return this; - }; - replaceAccountByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceAccountByIdParameters; -}(platformSDKMethodParameters)); -; -var deleteAccountsElementsTransformationsParameters = /** @class */ (function (_super) { - __extends(deleteAccountsElementsTransformationsParameters, _super); - function deleteAccountsElementsTransformationsParameters(superThis, method, path, id, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - deleteAccountsElementsTransformationsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteAccountsElementsTransformationsParameters; -}(platformSDKMethodParameters)); -; -var getAccountsElementsTransformationsParameters = /** @class */ (function (_super) { - __extends(getAccountsElementsTransformationsParameters, _super); - function getAccountsElementsTransformationsParameters(superThis, method, path, id, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getAccountsElementsTransformationsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsElementsTransformationsParameters; -}(platformSDKMethodParameters)); -; -var deleteAccountsElementsTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(deleteAccountsElementsTransformationByObjectNameParameters, _super); - function deleteAccountsElementsTransformationByObjectNameParameters(superThis, method, path, id, keyOrId, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteAccountsElementsTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteAccountsElementsTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var getAccountsElementsTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(getAccountsElementsTransformationByObjectNameParameters, _super); - function getAccountsElementsTransformationByObjectNameParameters(superThis, method, path, id, keyOrId, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getAccountsElementsTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsElementsTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var createAccountElementTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(createAccountElementTransformationByObjectNameParameters, _super); - function createAccountElementTransformationByObjectNameParameters(superThis, method, path, id, keyOrId, objectName, transformation) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = transformation; - return _this; - } - createAccountElementTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createAccountElementTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var replaceAccountsElementsTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(replaceAccountsElementsTransformationByObjectNameParameters, _super); - function replaceAccountsElementsTransformationByObjectNameParameters(superThis, method, path, id, keyOrId, objectName, transformation) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = transformation; - return _this; - } - replaceAccountsElementsTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceAccountsElementsTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var getAccountsInstances2Parameters = /** @class */ (function (_super) { - __extends(getAccountsInstances2Parameters, _super); - function getAccountsInstances2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getAccountsInstances2Parameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAccountsInstances2Parameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAccountsInstances2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsInstances2Parameters; -}(platformSDKMethodParameters)); -; -var deleteAccountsObjectsDefinitions2Parameters = /** @class */ (function (_super) { - __extends(deleteAccountsObjectsDefinitions2Parameters, _super); - function deleteAccountsObjectsDefinitions2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteAccountsObjectsDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteAccountsObjectsDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var getAccountsObjectsDefinitions2Parameters = /** @class */ (function (_super) { - __extends(getAccountsObjectsDefinitions2Parameters, _super); - function getAccountsObjectsDefinitions2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getAccountsObjectsDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsObjectsDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var createAccountObjectDefinition2Parameters = /** @class */ (function (_super) { - __extends(createAccountObjectDefinition2Parameters, _super); - function createAccountObjectDefinition2Parameters(superThis, method, path, id, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = body; - return _this; - } - createAccountObjectDefinition2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createAccountObjectDefinition2Parameters; -}(platformSDKMethodParameters)); -; -var deleteAccountsObjectsObjectNameDefinitions2Parameters = /** @class */ (function (_super) { - __extends(deleteAccountsObjectsObjectNameDefinitions2Parameters, _super); - function deleteAccountsObjectsObjectNameDefinitions2Parameters(superThis, method, path, id, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteAccountsObjectsObjectNameDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteAccountsObjectsObjectNameDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var getAccountsObjectsObjectNameDefinitions2Parameters = /** @class */ (function (_super) { - __extends(getAccountsObjectsObjectNameDefinitions2Parameters, _super); - function getAccountsObjectsObjectNameDefinitions2Parameters(superThis, method, path, id, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getAccountsObjectsObjectNameDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsObjectsObjectNameDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var createAccountObjectObjectNameDefinition2Parameters = /** @class */ (function (_super) { - __extends(createAccountObjectObjectNameDefinition2Parameters, _super); - function createAccountObjectObjectNameDefinition2Parameters(superThis, method, path, id, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - createAccountObjectObjectNameDefinition2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createAccountObjectObjectNameDefinition2Parameters; -}(platformSDKMethodParameters)); -; -var replaceAccountsObjectsObjectNameDefinitions2Parameters = /** @class */ (function (_super) { - __extends(replaceAccountsObjectsObjectNameDefinitions2Parameters, _super); - function replaceAccountsObjectsObjectNameDefinitions2Parameters(superThis, method, path, id, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - replaceAccountsObjectsObjectNameDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceAccountsObjectsObjectNameDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var getAccountsUsersParameters = /** @class */ (function (_super) { - __extends(getAccountsUsersParameters, _super); - function getAccountsUsersParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getAccountsUsersParameters.prototype.where = function (where) { - this.queryParameters['where'] = where; - return this; - }; - getAccountsUsersParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAccountsUsersParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAccountsUsersParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getAccountsUsersParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsUsersParameters; -}(platformSDKMethodParameters)); -; -var createAccountUserParameters = /** @class */ (function (_super) { - __extends(createAccountUserParameters, _super); - function createAccountUserParameters(superThis, method, path, id, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = body; - return _this; - } - createAccountUserParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createAccountUserParameters; -}(platformSDKMethodParameters)); -; -var getAccountsUserByEmailOrIdParameters = /** @class */ (function (_super) { - __extends(getAccountsUserByEmailOrIdParameters, _super); - function getAccountsUserByEmailOrIdParameters(superThis, method, path, id, emailOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{emailOrId}', "" + emailOrId); - return _this; - } - getAccountsUserByEmailOrIdParameters.prototype.elementsUserPassword = function (elementsUserPassword) { - this.headers['Elements-User-Password'] = elementsUserPassword; - return this; - }; - getAccountsUserByEmailOrIdParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getAccountsUserByEmailOrIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAccountsUserByEmailOrIdParameters; -}(platformSDKMethodParameters)); -; -var updateAccountsUserByUserIdParameters = /** @class */ (function (_super) { - __extends(updateAccountsUserByUserIdParameters, _super); - function updateAccountsUserByUserIdParameters(superThis, method, path, id, userId, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{userId}', "" + userId); - _this._body = body; - return _this; - } - updateAccountsUserByUserIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateAccountsUserByUserIdParameters; -}(platformSDKMethodParameters)); -; -var replaceAccountsUserByUserIdParameters = /** @class */ (function (_super) { - __extends(replaceAccountsUserByUserIdParameters, _super); - function replaceAccountsUserByUserIdParameters(superThis, method, path, id, userId, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{userId}', "" + userId); - _this._body = body; - return _this; - } - replaceAccountsUserByUserIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceAccountsUserByUserIdParameters; -}(platformSDKMethodParameters)); -; -var deleteAccountsUserByUserIdParameters = /** @class */ (function (_super) { - __extends(deleteAccountsUserByUserIdParameters, _super); - function deleteAccountsUserByUserIdParameters(superThis, method, path, id, userId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{userId}', "" + userId); - return _this; - } - deleteAccountsUserByUserIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteAccountsUserByUserIdParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsParameters = /** @class */ (function (_super) { - __extends(getAuditLogsParameters, _super); - function getAuditLogsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsAuthenticationParameters = /** @class */ (function (_super) { - __extends(getAuditLogsAuthenticationParameters, _super); - function getAuditLogsAuthenticationParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsAuthenticationParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsAuthenticationParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsAuthenticationParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsAuthenticationParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsAuthenticationParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsAuthenticationParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsAuthenticationParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsAuthenticationParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsCommonResourcesParameters = /** @class */ (function (_super) { - __extends(getAuditLogsCommonResourcesParameters, _super); - function getAuditLogsCommonResourcesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsCommonResourcesParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsCommonResourcesParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsCommonResourcesParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsCommonResourcesParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsCommonResourcesParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsCommonResourcesParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsCommonResourcesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsCommonResourcesParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsCommonResourceByCommonResourceNameParameters = /** @class */ (function (_super) { - __extends(getAuditLogsCommonResourceByCommonResourceNameParameters, _super); - function getAuditLogsCommonResourceByCommonResourceNameParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsCommonResourceByCommonResourceNameParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsCommonResourceByCommonResourceNameParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsCommonResourceByCommonResourceNameParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsCommonResourceByCommonResourceNameParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsCommonResourceByCommonResourceNameParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsCommonResourceByCommonResourceNameParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsCommonResourceByCommonResourceNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsCommonResourceByCommonResourceNameParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsElementInstancesParameters = /** @class */ (function (_super) { - __extends(getAuditLogsElementInstancesParameters, _super); - function getAuditLogsElementInstancesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsElementInstancesParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsElementInstancesParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsElementInstancesParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsElementInstancesParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsElementInstancesParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsElementInstancesParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsElementInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsElementInstancesParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsElementInstanceByElementInstanceIdParameters = /** @class */ (function (_super) { - __extends(getAuditLogsElementInstanceByElementInstanceIdParameters, _super); - function getAuditLogsElementInstanceByElementInstanceIdParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsElementInstanceByElementInstanceIdParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsElementInstanceByElementInstanceIdParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsElementInstanceByElementInstanceIdParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsElementInstanceByElementInstanceIdParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsElementInstanceByElementInstanceIdParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsElementInstanceByElementInstanceIdParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsElementInstanceByElementInstanceIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsElementInstanceByElementInstanceIdParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsElementsParameters = /** @class */ (function (_super) { - __extends(getAuditLogsElementsParameters, _super); - function getAuditLogsElementsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsElementsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsElementsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsElementsParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsElementsParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsElementsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsElementsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsElementsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsElementsParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsElementByElementIdParameters = /** @class */ (function (_super) { - __extends(getAuditLogsElementByElementIdParameters, _super); - function getAuditLogsElementByElementIdParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsElementByElementIdParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsElementByElementIdParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsElementByElementIdParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsElementByElementIdParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsElementByElementIdParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsElementByElementIdParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsElementByElementIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsElementByElementIdParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsFormulaInstancesParameters = /** @class */ (function (_super) { - __extends(getAuditLogsFormulaInstancesParameters, _super); - function getAuditLogsFormulaInstancesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsFormulaInstancesParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsFormulaInstancesParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsFormulaInstancesParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsFormulaInstancesParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsFormulaInstancesParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsFormulaInstancesParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsFormulaInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsFormulaInstancesParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsFormulasParameters = /** @class */ (function (_super) { - __extends(getAuditLogsFormulasParameters, _super); - function getAuditLogsFormulasParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsFormulasParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsFormulasParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsFormulasParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsFormulasParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsFormulasParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsFormulasParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsFormulasParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsFormulasParameters; -}(platformSDKMethodParameters)); -; -var getAuditLogsFormulaByEntityIdParameters = /** @class */ (function (_super) { - __extends(getAuditLogsFormulaByEntityIdParameters, _super); - function getAuditLogsFormulaByEntityIdParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getAuditLogsFormulaByEntityIdParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getAuditLogsFormulaByEntityIdParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getAuditLogsFormulaByEntityIdParameters.prototype.userId = function (userId) { - this.queryParameters['userId'] = userId; - return this; - }; - getAuditLogsFormulaByEntityIdParameters.prototype.accountId = function (accountId) { - this.queryParameters['accountId'] = accountId; - return this; - }; - getAuditLogsFormulaByEntityIdParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getAuditLogsFormulaByEntityIdParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getAuditLogsFormulaByEntityIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getAuditLogsFormulaByEntityIdParameters; -}(platformSDKMethodParameters)); -; -var createAuthenticationPasswordParameters = /** @class */ (function (_super) { - __extends(createAuthenticationPasswordParameters, _super); - function createAuthenticationPasswordParameters(superThis, method, path, passwordReset) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = passwordReset; - return _this; - } - createAuthenticationPasswordParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createAuthenticationPasswordParameters; -}(platformSDKMethodParameters)); -; -var createCustomerIdentityProviderParameters = /** @class */ (function (_super) { - __extends(createCustomerIdentityProviderParameters, _super); - function createCustomerIdentityProviderParameters(superThis, method, path, identityProvider) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = identityProvider; - return _this; - } - createCustomerIdentityProviderParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createCustomerIdentityProviderParameters; -}(platformSDKMethodParameters)); -; -var getCustomersIdentityProvidersParameters = /** @class */ (function (_super) { - __extends(getCustomersIdentityProvidersParameters, _super); - function getCustomersIdentityProvidersParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getCustomersIdentityProvidersParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getCustomersIdentityProvidersParameters; -}(platformSDKMethodParameters)); -; -var getCustomersIdentityProviderByIdParameters = /** @class */ (function (_super) { - __extends(getCustomersIdentityProviderByIdParameters, _super); - function getCustomersIdentityProviderByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getCustomersIdentityProviderByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getCustomersIdentityProviderByIdParameters; -}(platformSDKMethodParameters)); -; -var deleteCustomersIdentityProviderByIdParameters = /** @class */ (function (_super) { - __extends(deleteCustomersIdentityProviderByIdParameters, _super); - function deleteCustomersIdentityProviderByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteCustomersIdentityProviderByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteCustomersIdentityProviderByIdParameters; -}(platformSDKMethodParameters)); -; -var getCustomersMeParameters = /** @class */ (function (_super) { - __extends(getCustomersMeParameters, _super); - function getCustomersMeParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getCustomersMeParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getCustomersMeParameters; -}(platformSDKMethodParameters)); -; -var getCustomersOrganizationsParameters = /** @class */ (function (_super) { - __extends(getCustomersOrganizationsParameters, _super); - function getCustomersOrganizationsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getCustomersOrganizationsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getCustomersOrganizationsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getCustomersOrganizationsParameters.prototype.where = function (where) { - this.queryParameters['where'] = where; - return this; - }; - getCustomersOrganizationsParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getCustomersOrganizationsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getCustomersOrganizationsParameters; -}(platformSDKMethodParameters)); -; -var getCustomersOrganizationByIdParameters = /** @class */ (function (_super) { - __extends(getCustomersOrganizationByIdParameters, _super); - function getCustomersOrganizationByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getCustomersOrganizationByIdParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getCustomersOrganizationByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getCustomersOrganizationByIdParameters; -}(platformSDKMethodParameters)); -; -var deleteCustomersOrganizationByIdParameters = /** @class */ (function (_super) { - __extends(deleteCustomersOrganizationByIdParameters, _super); - function deleteCustomersOrganizationByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteCustomersOrganizationByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteCustomersOrganizationByIdParameters; -}(platformSDKMethodParameters)); -; -var createCustomerSignupParameters = /** @class */ (function (_super) { - __extends(createCustomerSignupParameters, _super); - function createCustomerSignupParameters(superThis, method, path, customerSignup) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = customerSignup; - return _this; - } - createCustomerSignupParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createCustomerSignupParameters; -}(platformSDKMethodParameters)); -; -var createElementParameters = /** @class */ (function (_super) { - __extends(createElementParameters, _super); - function createElementParameters(superThis, method, path, element) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = element; - return _this; - } - createElementParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementParameters; -}(platformSDKMethodParameters)); -; -var getElementsKeysParameters = /** @class */ (function (_super) { - __extends(getElementsKeysParameters, _super); - function getElementsKeysParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getElementsKeysParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getElementsKeysParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getElementsKeysParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsKeysParameters; -}(platformSDKMethodParameters)); -; -var getElementsDocsParameters = /** @class */ (function (_super) { - __extends(getElementsDocsParameters, _super); - function getElementsDocsParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsDocsParameters.prototype.operationId = function (operationId) { - this.queryParameters['operationId'] = operationId; - return this; - }; - getElementsDocsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsDocsParameters; -}(platformSDKMethodParameters)); -; -var getElementsMetadataParameters = /** @class */ (function (_super) { - __extends(getElementsMetadataParameters, _super); - function getElementsMetadataParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsMetadataParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsMetadataParameters; -}(platformSDKMethodParameters)); -; -var deleteElementByKeyOrIdParameters = /** @class */ (function (_super) { - __extends(deleteElementByKeyOrIdParameters, _super); - function deleteElementByKeyOrIdParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - deleteElementByKeyOrIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementByKeyOrIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementByKeyOrIdParameters = /** @class */ (function (_super) { - __extends(replaceElementByKeyOrIdParameters, _super); - function replaceElementByKeyOrIdParameters(superThis, method, path, keyOrId, element) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this._body = element; - return _this; - } - replaceElementByKeyOrIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementByKeyOrIdParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsActiveParameters = /** @class */ (function (_super) { - __extends(deleteElementsActiveParameters, _super); - function deleteElementsActiveParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - deleteElementsActiveParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsActiveParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsActiveParameters = /** @class */ (function (_super) { - __extends(replaceElementsActiveParameters, _super); - function replaceElementsActiveParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - replaceElementsActiveParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsActiveParameters; -}(platformSDKMethodParameters)); -; -var createElementCloneParameters = /** @class */ (function (_super) { - __extends(createElementCloneParameters, _super); - function createElementCloneParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - createElementCloneParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementCloneParameters; -}(platformSDKMethodParameters)); -; -var getElementsConfigurationParameters = /** @class */ (function (_super) { - __extends(getElementsConfigurationParameters, _super); - function getElementsConfigurationParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getElementsConfigurationParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsConfigurationParameters; -}(platformSDKMethodParameters)); -; -var createElementConfigurationParameters = /** @class */ (function (_super) { - __extends(createElementConfigurationParameters, _super); - function createElementConfigurationParameters(superThis, method, path, keyOrId, configuration) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this._body = configuration; - return _this; - } - createElementConfigurationParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementConfigurationParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsConfigurationByConfigurationKeyParameters = /** @class */ (function (_super) { - __extends(deleteElementsConfigurationByConfigurationKeyParameters, _super); - function deleteElementsConfigurationByConfigurationKeyParameters(superThis, method, path, keyOrId, configurationKey) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{configurationKey}', "" + configurationKey); - return _this; - } - deleteElementsConfigurationByConfigurationKeyParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsConfigurationByConfigurationKeyParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsConfigurationByConfigurationKeyParameters = /** @class */ (function (_super) { - __extends(replaceElementsConfigurationByConfigurationKeyParameters, _super); - function replaceElementsConfigurationByConfigurationKeyParameters(superThis, method, path, keyOrId, configurationKey, configuration) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{configurationKey}', "" + configurationKey); - _this._body = configuration; - return _this; - } - replaceElementsConfigurationByConfigurationKeyParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsConfigurationByConfigurationKeyParameters; -}(platformSDKMethodParameters)); -; -var getElementsExportParameters = /** @class */ (function (_super) { - __extends(getElementsExportParameters, _super); - function getElementsExportParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getElementsExportParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsExportParameters; -}(platformSDKMethodParameters)); -; -var getElementsHooksParameters = /** @class */ (function (_super) { - __extends(getElementsHooksParameters, _super); - function getElementsHooksParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getElementsHooksParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsHooksParameters; -}(platformSDKMethodParameters)); -; -var createElementHookParameters = /** @class */ (function (_super) { - __extends(createElementHookParameters, _super); - function createElementHookParameters(superThis, method, path, keyOrId, model) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this._body = model; - return _this; - } - createElementHookParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementHookParameters; -}(platformSDKMethodParameters)); -; -var getElementsHookByHookIdParameters = /** @class */ (function (_super) { - __extends(getElementsHookByHookIdParameters, _super); - function getElementsHookByHookIdParameters(superThis, method, path, keyOrId, hookId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{hookId}', "" + hookId); - return _this; - } - getElementsHookByHookIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsHookByHookIdParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsHookByHookIdParameters = /** @class */ (function (_super) { - __extends(deleteElementsHookByHookIdParameters, _super); - function deleteElementsHookByHookIdParameters(superThis, method, path, keyOrId, hookId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{hookId}', "" + hookId); - return _this; - } - deleteElementsHookByHookIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsHookByHookIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsHookByHookIdParameters = /** @class */ (function (_super) { - __extends(replaceElementsHookByHookIdParameters, _super); - function replaceElementsHookByHookIdParameters(superThis, method, path, keyOrId, hookId, parameter) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{hookId}', "" + hookId); - _this._body = parameter; - return _this; - } - replaceElementsHookByHookIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsHookByHookIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsInstancesParameters = /** @class */ (function (_super) { - __extends(getElementsInstancesParameters, _super); - function getElementsInstancesParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getElementsInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsInstancesParameters; -}(platformSDKMethodParameters)); -; -var createElementInstanceParameters = /** @class */ (function (_super) { - __extends(createElementInstanceParameters, _super); - function createElementInstanceParameters(superThis, method, path, keyOrId, elementInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this._body = elementInstance; - return _this; - } - createElementInstanceParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementInstanceParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsInstanceByIdParameters = /** @class */ (function (_super) { - __extends(deleteElementsInstanceByIdParameters, _super); - function deleteElementsInstanceByIdParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteElementsInstanceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsInstanceByIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsInstanceByIdParameters = /** @class */ (function (_super) { - __extends(getElementsInstanceByIdParameters, _super); - function getElementsInstanceByIdParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsInstanceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsInstanceByIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsInstanceByIdParameters = /** @class */ (function (_super) { - __extends(replaceElementsInstanceByIdParameters, _super); - function replaceElementsInstanceByIdParameters(superThis, method, path, keyOrId, id, elementInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = elementInstance; - return _this; - } - replaceElementsInstanceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsInstanceByIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsOauthTokenParameters = /** @class */ (function (_super) { - __extends(getElementsOauthTokenParameters, _super); - function getElementsOauthTokenParameters(superThis, method, path, keyOrId, apiKey, apiSecret, callbackUrl) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.queryParameters['apiKey'] = apiKey; - _this.queryParameters['apiSecret'] = apiSecret; - _this.queryParameters['callbackUrl'] = callbackUrl; - return _this; - } - getElementsOauthTokenParameters.prototype.scope = function (scope) { - this.queryParameters['scope'] = scope; - return this; - }; - getElementsOauthTokenParameters.prototype.state = function (state) { - this.queryParameters['state'] = state; - return this; - }; - getElementsOauthTokenParameters.prototype.siteAddress = function (siteAddress) { - this.queryParameters['siteAddress'] = siteAddress; - return this; - }; - getElementsOauthTokenParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsOauthTokenParameters; -}(platformSDKMethodParameters)); -; -var getElementsOauthUrlParameters = /** @class */ (function (_super) { - __extends(getElementsOauthUrlParameters, _super); - function getElementsOauthUrlParameters(superThis, method, path, keyOrId, apiKey, apiSecret, callbackUrl) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.queryParameters['apiKey'] = apiKey; - _this.queryParameters['apiSecret'] = apiSecret; - _this.queryParameters['callbackUrl'] = callbackUrl; - return _this; - } - getElementsOauthUrlParameters.prototype.scope = function (scope) { - this.queryParameters['scope'] = scope; - return this; - }; - getElementsOauthUrlParameters.prototype.state = function (state) { - this.queryParameters['state'] = state; - return this; - }; - getElementsOauthUrlParameters.prototype.callbackProxy = function (callbackProxy) { - this.queryParameters['callbackProxy'] = callbackProxy; - return this; - }; - getElementsOauthUrlParameters.prototype.requestToken = function (requestToken) { - this.queryParameters['requestToken'] = requestToken; - return this; - }; - getElementsOauthUrlParameters.prototype.siteAddress = function (siteAddress) { - this.queryParameters['siteAddress'] = siteAddress; - return this; - }; - getElementsOauthUrlParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsOauthUrlParameters; -}(platformSDKMethodParameters)); -; -var createElementOauthUrlParameters = /** @class */ (function (_super) { - __extends(createElementOauthUrlParameters, _super); - function createElementOauthUrlParameters(superThis, method, path, keyOrId, oauthInfo) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this._body = oauthInfo; - return _this; - } - createElementOauthUrlParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementOauthUrlParameters; -}(platformSDKMethodParameters)); -; -var getElementsObjectsParameters = /** @class */ (function (_super) { - __extends(getElementsObjectsParameters, _super); - function getElementsObjectsParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getElementsObjectsParameters.prototype.accountOnly = function (accountOnly) { - this.queryParameters['accountOnly'] = accountOnly; - return this; - }; - getElementsObjectsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsObjectsParameters; -}(platformSDKMethodParameters)); -; -var createElementObjectParameters = /** @class */ (function (_super) { - __extends(createElementObjectParameters, _super); - function createElementObjectParameters(superThis, method, path, keyOrId, object) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this._body = object; - return _this; - } - createElementObjectParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementObjectParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsObjectByIdParameters = /** @class */ (function (_super) { - __extends(deleteElementsObjectByIdParameters, _super); - function deleteElementsObjectByIdParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteElementsObjectByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsObjectByIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsObjectByIdParameters = /** @class */ (function (_super) { - __extends(replaceElementsObjectByIdParameters, _super); - function replaceElementsObjectByIdParameters(superThis, method, path, keyOrId, id, object) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = object; - return _this; - } - replaceElementsObjectByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsObjectByIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsObjectByIdParameters = /** @class */ (function (_super) { - __extends(getElementsObjectByIdParameters, _super); - function getElementsObjectByIdParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsObjectByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsObjectByIdParameters; -}(platformSDKMethodParameters)); -; -var createElementObjectFieldParameters = /** @class */ (function (_super) { - __extends(createElementObjectFieldParameters, _super); - function createElementObjectFieldParameters(superThis, method, path, keyOrId, id, field) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = field; - return _this; - } - createElementObjectFieldParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementObjectFieldParameters; -}(platformSDKMethodParameters)); -; -var getElementsObjectsFieldsParameters = /** @class */ (function (_super) { - __extends(getElementsObjectsFieldsParameters, _super); - function getElementsObjectsFieldsParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsObjectsFieldsParameters.prototype.accountOnly = function (accountOnly) { - this.queryParameters['accountOnly'] = accountOnly; - return this; - }; - getElementsObjectsFieldsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsObjectsFieldsParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsObjectsFieldByFieldIdParameters = /** @class */ (function (_super) { - __extends(deleteElementsObjectsFieldByFieldIdParameters, _super); - function deleteElementsObjectsFieldByFieldIdParameters(superThis, method, path, keyOrId, id, fieldId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{fieldId}', "" + fieldId); - return _this; - } - deleteElementsObjectsFieldByFieldIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsObjectsFieldByFieldIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsObjectsFieldByFieldIdParameters = /** @class */ (function (_super) { - __extends(replaceElementsObjectsFieldByFieldIdParameters, _super); - function replaceElementsObjectsFieldByFieldIdParameters(superThis, method, path, keyOrId, id, fieldId, object) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{fieldId}', "" + fieldId); - _this._body = object; - return _this; - } - replaceElementsObjectsFieldByFieldIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsObjectsFieldByFieldIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsObjectsFieldByFieldIdParameters = /** @class */ (function (_super) { - __extends(getElementsObjectsFieldByFieldIdParameters, _super); - function getElementsObjectsFieldByFieldIdParameters(superThis, method, path, keyOrId, id, fieldId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{fieldId}', "" + fieldId); - return _this; - } - getElementsObjectsFieldByFieldIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsObjectsFieldByFieldIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsParametersParameters = /** @class */ (function (_super) { - __extends(getElementsParametersParameters, _super); - function getElementsParametersParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getElementsParametersParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsParametersParameters; -}(platformSDKMethodParameters)); -; -var createElementParameterParameters = /** @class */ (function (_super) { - __extends(createElementParameterParameters, _super); - function createElementParameterParameters(superThis, method, path, keyOrId, parameter) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this._body = parameter; - return _this; - } - createElementParameterParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementParameterParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsParameterByIdParameters = /** @class */ (function (_super) { - __extends(deleteElementsParameterByIdParameters, _super); - function deleteElementsParameterByIdParameters(superThis, method, path, keyOrId, id, parameter) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = parameter; - return _this; - } - deleteElementsParameterByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsParameterByIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsParameterByIdParameters = /** @class */ (function (_super) { - __extends(replaceElementsParameterByIdParameters, _super); - function replaceElementsParameterByIdParameters(superThis, method, path, keyOrId, id, parameter) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = parameter; - return _this; - } - replaceElementsParameterByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsParameterByIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsResourcesParameters = /** @class */ (function (_super) { - __extends(getElementsResourcesParameters, _super); - function getElementsResourcesParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getElementsResourcesParameters.prototype.accountOnly = function (accountOnly) { - this.queryParameters['accountOnly'] = accountOnly; - return this; - }; - getElementsResourcesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsResourcesParameters; -}(platformSDKMethodParameters)); -; -var createElementResourceParameters = /** @class */ (function (_super) { - __extends(createElementResourceParameters, _super); - function createElementResourceParameters(superThis, method, path, keyOrId, resource) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this._body = resource; - return _this; - } - createElementResourceParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementResourceParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsResourceByIdParameters = /** @class */ (function (_super) { - __extends(deleteElementsResourceByIdParameters, _super); - function deleteElementsResourceByIdParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteElementsResourceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsResourceByIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsResourceByIdParameters = /** @class */ (function (_super) { - __extends(replaceElementsResourceByIdParameters, _super); - function replaceElementsResourceByIdParameters(superThis, method, path, keyOrId, id, resource) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = resource; - return _this; - } - replaceElementsResourceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsResourceByIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsResourceByIdParameters = /** @class */ (function (_super) { - __extends(getElementsResourceByIdParameters, _super); - function getElementsResourceByIdParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsResourceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsResourceByIdParameters; -}(platformSDKMethodParameters)); -; -var getElementsResourcesHooksParameters = /** @class */ (function (_super) { - __extends(getElementsResourcesHooksParameters, _super); - function getElementsResourcesHooksParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsResourcesHooksParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsResourcesHooksParameters; -}(platformSDKMethodParameters)); -; -var createElementResourceHookParameters = /** @class */ (function (_super) { - __extends(createElementResourceHookParameters, _super); - function createElementResourceHookParameters(superThis, method, path, keyOrId, id, model) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = model; - return _this; - } - createElementResourceHookParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementResourceHookParameters; -}(platformSDKMethodParameters)); -; -var getElementsResourcesHookByHookIdParameters = /** @class */ (function (_super) { - __extends(getElementsResourcesHookByHookIdParameters, _super); - function getElementsResourcesHookByHookIdParameters(superThis, method, path, keyOrId, id, hookId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{hookId}', "" + hookId); - return _this; - } - getElementsResourcesHookByHookIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsResourcesHookByHookIdParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsResourcesHookByHookIdParameters = /** @class */ (function (_super) { - __extends(deleteElementsResourcesHookByHookIdParameters, _super); - function deleteElementsResourcesHookByHookIdParameters(superThis, method, path, keyOrId, id, hookId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{hookId}', "" + hookId); - return _this; - } - deleteElementsResourcesHookByHookIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsResourcesHookByHookIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsResourcesHookByHookIdParameters = /** @class */ (function (_super) { - __extends(replaceElementsResourcesHookByHookIdParameters, _super); - function replaceElementsResourcesHookByHookIdParameters(superThis, method, path, keyOrId, id, hookId, parameter) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{hookId}', "" + hookId); - _this._body = parameter; - return _this; - } - replaceElementsResourcesHookByHookIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsResourcesHookByHookIdParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsResourcesModelsParameters = /** @class */ (function (_super) { - __extends(deleteElementsResourcesModelsParameters, _super); - function deleteElementsResourcesModelsParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteElementsResourcesModelsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsResourcesModelsParameters; -}(platformSDKMethodParameters)); -; -var getElementsResourcesModelsParameters = /** @class */ (function (_super) { - __extends(getElementsResourcesModelsParameters, _super); - function getElementsResourcesModelsParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsResourcesModelsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsResourcesModelsParameters; -}(platformSDKMethodParameters)); -; -var createElementResourceModelParameters = /** @class */ (function (_super) { - __extends(createElementResourceModelParameters, _super); - function createElementResourceModelParameters(superThis, method, path, keyOrId, id, model) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = model; - return _this; - } - createElementResourceModelParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementResourceModelParameters; -}(platformSDKMethodParameters)); -; -var getElementsResourcesParametersParameters = /** @class */ (function (_super) { - __extends(getElementsResourcesParametersParameters, _super); - function getElementsResourcesParametersParameters(superThis, method, path, keyOrId, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getElementsResourcesParametersParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getElementsResourcesParametersParameters; -}(platformSDKMethodParameters)); -; -var createElementResourceParameterParameters = /** @class */ (function (_super) { - __extends(createElementResourceParameterParameters, _super); - function createElementResourceParameterParameters(superThis, method, path, keyOrId, id, parameter) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this._body = parameter; - return _this; - } - createElementResourceParameterParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createElementResourceParameterParameters; -}(platformSDKMethodParameters)); -; -var deleteElementsResourcesParameterByParameterIdParameters = /** @class */ (function (_super) { - __extends(deleteElementsResourcesParameterByParameterIdParameters, _super); - function deleteElementsResourcesParameterByParameterIdParameters(superThis, method, path, keyOrId, id, parameterId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{parameterId}', "" + parameterId); - return _this; - } - deleteElementsResourcesParameterByParameterIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteElementsResourcesParameterByParameterIdParameters; -}(platformSDKMethodParameters)); -; -var replaceElementsResourcesParameterByParameterIdParameters = /** @class */ (function (_super) { - __extends(replaceElementsResourcesParameterByParameterIdParameters, _super); - function replaceElementsResourcesParameterByParameterIdParameters(superThis, method, path, keyOrId, id, parameterId, parameter) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{parameterId}', "" + parameterId); - _this._body = parameter; - return _this; - } - replaceElementsResourcesParameterByParameterIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceElementsResourcesParameterByParameterIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulasParameters = /** @class */ (function (_super) { - __extends(getFormulasParameters, _super); - function getFormulasParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getFormulasParameters.prototype.includeSystem = function (includeSystem) { - this.queryParameters['includeSystem'] = includeSystem; - return this; - }; - getFormulasParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getFormulasParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getFormulasParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasParameters; -}(platformSDKMethodParameters)); -; -var createFormulaParameters = /** @class */ (function (_super) { - __extends(createFormulaParameters, _super); - function createFormulaParameters(superThis, method, path, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = body; - return _this; - } - createFormulaParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createFormulaParameters; -}(platformSDKMethodParameters)); -; -var getFormulasAnalyticsParameters = /** @class */ (function (_super) { - __extends(getFormulasAnalyticsParameters, _super); - function getFormulasAnalyticsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getFormulasAnalyticsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getFormulasAnalyticsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getFormulasAnalyticsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getFormulasAnalyticsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getFormulasAnalyticsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasAnalyticsParameters; -}(platformSDKMethodParameters)); -; -var getFormulasAnalyticsAccountsParameters = /** @class */ (function (_super) { - __extends(getFormulasAnalyticsAccountsParameters, _super); - function getFormulasAnalyticsAccountsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getFormulasAnalyticsAccountsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getFormulasAnalyticsAccountsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getFormulasAnalyticsAccountsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getFormulasAnalyticsAccountsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getFormulasAnalyticsAccountsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasAnalyticsAccountsParameters; -}(platformSDKMethodParameters)); -; -var getFormulasAnalyticsInstancesParameters = /** @class */ (function (_super) { - __extends(getFormulasAnalyticsInstancesParameters, _super); - function getFormulasAnalyticsInstancesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getFormulasAnalyticsInstancesParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getFormulasAnalyticsInstancesParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getFormulasAnalyticsInstancesParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getFormulasAnalyticsInstancesParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getFormulasAnalyticsInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasAnalyticsInstancesParameters; -}(platformSDKMethodParameters)); -; -var getFormulasAnalyticsStatusesParameters = /** @class */ (function (_super) { - __extends(getFormulasAnalyticsStatusesParameters, _super); - function getFormulasAnalyticsStatusesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getFormulasAnalyticsStatusesParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getFormulasAnalyticsStatusesParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getFormulasAnalyticsStatusesParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getFormulasAnalyticsStatusesParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getFormulasAnalyticsStatusesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasAnalyticsStatusesParameters; -}(platformSDKMethodParameters)); -; -var getFormulasAnalyticsStatusesNowParameters = /** @class */ (function (_super) { - __extends(getFormulasAnalyticsStatusesNowParameters, _super); - function getFormulasAnalyticsStatusesNowParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getFormulasAnalyticsStatusesNowParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getFormulasAnalyticsStatusesNowParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasAnalyticsStatusesNowParameters; -}(platformSDKMethodParameters)); -; -var getFormulasAnalyticsStepsParameters = /** @class */ (function (_super) { - __extends(getFormulasAnalyticsStepsParameters, _super); - function getFormulasAnalyticsStepsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getFormulasAnalyticsStepsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getFormulasAnalyticsStepsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getFormulasAnalyticsStepsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getFormulasAnalyticsStepsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getFormulasAnalyticsStepsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasAnalyticsStepsParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesParameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesParameters, _super); - function getFormulasInstancesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getFormulasInstancesParameters.prototype.elementInstanceId = function (elementInstanceId) { - this.queryParameters['elementInstanceId'] = elementInstanceId; - return this; - }; - getFormulasInstancesParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getFormulasInstancesParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getFormulasInstancesParameters.prototype.searchText = function (searchText) { - this.queryParameters['searchText'] = searchText; - return this; - }; - getFormulasInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesExecutionsStepsValuesParameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesExecutionsStepsValuesParameters, _super); - function getFormulasInstancesExecutionsStepsValuesParameters(superThis, method, path, stepExecutionId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{stepExecutionId}', "" + stepExecutionId); - return _this; - } - getFormulasInstancesExecutionsStepsValuesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesExecutionsStepsValuesParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesExecutionByExecutionIdParameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesExecutionByExecutionIdParameters, _super); - function getFormulasInstancesExecutionByExecutionIdParameters(superThis, method, path, executionId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{executionId}', "" + executionId); - return _this; - } - getFormulasInstancesExecutionByExecutionIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesExecutionByExecutionIdParameters; -}(platformSDKMethodParameters)); -; -var updateFormulasInstancesExecutionByExecutionIdParameters = /** @class */ (function (_super) { - __extends(updateFormulasInstancesExecutionByExecutionIdParameters, _super); - function updateFormulasInstancesExecutionByExecutionIdParameters(superThis, method, path, executionId, status) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{executionId}', "" + executionId); - _this._body = status; - return _this; - } - updateFormulasInstancesExecutionByExecutionIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateFormulasInstancesExecutionByExecutionIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesExecutionsErrorsParameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesExecutionsErrorsParameters, _super); - function getFormulasInstancesExecutionsErrorsParameters(superThis, method, path, executionId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{executionId}', "" + executionId); - return _this; - } - getFormulasInstancesExecutionsErrorsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesExecutionsErrorsParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesExecutionsStepsParameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesExecutionsStepsParameters, _super); - function getFormulasInstancesExecutionsStepsParameters(superThis, method, path, executionId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{executionId}', "" + executionId); - return _this; - } - getFormulasInstancesExecutionsStepsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getFormulasInstancesExecutionsStepsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getFormulasInstancesExecutionsStepsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesExecutionsStepsParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstanceByInstanceIdParameters = /** @class */ (function (_super) { - __extends(getFormulasInstanceByInstanceIdParameters, _super); - function getFormulasInstanceByInstanceIdParameters(superThis, method, path, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - getFormulasInstanceByInstanceIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstanceByInstanceIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesExecutionsParameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesExecutionsParameters, _super); - function getFormulasInstancesExecutionsParameters(superThis, method, path, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - getFormulasInstancesExecutionsParameters.prototype.eventId = function (eventId) { - this.queryParameters['eventId'] = eventId; - return this; - }; - getFormulasInstancesExecutionsParameters.prototype.objectId = function (objectId) { - this.queryParameters['objectId'] = objectId; - return this; - }; - getFormulasInstancesExecutionsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getFormulasInstancesExecutionsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getFormulasInstancesExecutionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesExecutionsParameters; -}(platformSDKMethodParameters)); -; -var createFormulaInstanceExecutionParameters = /** @class */ (function (_super) { - __extends(createFormulaInstanceExecutionParameters, _super); - function createFormulaInstanceExecutionParameters(superThis, method, path, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - createFormulaInstanceExecutionParameters.prototype.trigger = function (trigger) { - if (this.queryParameters['trigger'] !== undefined) { - this._body = this.queryParameters['trigger']; - } - return this; - }; - createFormulaInstanceExecutionParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createFormulaInstanceExecutionParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesExecutionsErrors2Parameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesExecutionsErrors2Parameters, _super); - function getFormulasInstancesExecutionsErrors2Parameters(superThis, method, path, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - getFormulasInstancesExecutionsErrors2Parameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getFormulasInstancesExecutionsErrors2Parameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getFormulasInstancesExecutionsErrors2Parameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getFormulasInstancesExecutionsErrors2Parameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getFormulasInstancesExecutionsErrors2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesExecutionsErrors2Parameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesExecutionsErrors2_1Parameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesExecutionsErrors2_1Parameters, _super); - function getFormulasInstancesExecutionsErrors2_1Parameters(superThis, method, path, formulaId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{formulaId}', "" + formulaId); - return _this; - } - getFormulasInstancesExecutionsErrors2_1Parameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getFormulasInstancesExecutionsErrors2_1Parameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getFormulasInstancesExecutionsErrors2_1Parameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getFormulasInstancesExecutionsErrors2_1Parameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getFormulasInstancesExecutionsErrors2_1Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesExecutionsErrors2_1Parameters; -}(platformSDKMethodParameters)); -; -var deleteFormulaByIdParameters = /** @class */ (function (_super) { - __extends(deleteFormulaByIdParameters, _super); - function deleteFormulaByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteFormulaByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteFormulaByIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulaByIdParameters = /** @class */ (function (_super) { - __extends(getFormulaByIdParameters, _super); - function getFormulaByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getFormulaByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulaByIdParameters; -}(platformSDKMethodParameters)); -; -var replaceFormulaByIdParameters = /** @class */ (function (_super) { - __extends(replaceFormulaByIdParameters, _super); - function replaceFormulaByIdParameters(superThis, method, path, id, formula) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = formula; - return _this; - } - replaceFormulaByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceFormulaByIdParameters; -}(platformSDKMethodParameters)); -; -var updateFormulaByIdParameters = /** @class */ (function (_super) { - __extends(updateFormulaByIdParameters, _super); - function updateFormulaByIdParameters(superThis, method, path, id, formula) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = formula; - return _this; - } - updateFormulaByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateFormulaByIdParameters; -}(platformSDKMethodParameters)); -; -var createFormulaConfigurationParameters = /** @class */ (function (_super) { - __extends(createFormulaConfigurationParameters, _super); - function createFormulaConfigurationParameters(superThis, method, path, id, configuration) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = configuration; - return _this; - } - createFormulaConfigurationParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createFormulaConfigurationParameters; -}(platformSDKMethodParameters)); -; -var deleteFormulasConfigurationByConfigurationIdParameters = /** @class */ (function (_super) { - __extends(deleteFormulasConfigurationByConfigurationIdParameters, _super); - function deleteFormulasConfigurationByConfigurationIdParameters(superThis, method, path, id, configurationId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{configurationId}', "" + configurationId); - return _this; - } - deleteFormulasConfigurationByConfigurationIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteFormulasConfigurationByConfigurationIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulasConfigurationByConfigurationIdParameters = /** @class */ (function (_super) { - __extends(getFormulasConfigurationByConfigurationIdParameters, _super); - function getFormulasConfigurationByConfigurationIdParameters(superThis, method, path, id, configurationId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{configurationId}', "" + configurationId); - return _this; - } - getFormulasConfigurationByConfigurationIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasConfigurationByConfigurationIdParameters; -}(platformSDKMethodParameters)); -; -var replaceFormulasConfigurationByConfigurationIdParameters = /** @class */ (function (_super) { - __extends(replaceFormulasConfigurationByConfigurationIdParameters, _super); - function replaceFormulasConfigurationByConfigurationIdParameters(superThis, method, path, id, configurationId, configuration) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{configurationId}', "" + configurationId); - _this._body = configuration; - return _this; - } - replaceFormulasConfigurationByConfigurationIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceFormulasConfigurationByConfigurationIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulasExportParameters = /** @class */ (function (_super) { - __extends(getFormulasExportParameters, _super); - function getFormulasExportParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getFormulasExportParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasExportParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstances2Parameters = /** @class */ (function (_super) { - __extends(getFormulasInstances2Parameters, _super); - function getFormulasInstances2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getFormulasInstances2Parameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getFormulasInstances2Parameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getFormulasInstances2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstances2Parameters; -}(platformSDKMethodParameters)); -; -var createFormulaInstanceParameters = /** @class */ (function (_super) { - __extends(createFormulaInstanceParameters, _super); - function createFormulaInstanceParameters(superThis, method, path, id, formulaInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = formulaInstance; - return _this; - } - createFormulaInstanceParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createFormulaInstanceParameters; -}(platformSDKMethodParameters)); -; -var deleteFormulasInstanceByInstanceIdParameters = /** @class */ (function (_super) { - __extends(deleteFormulasInstanceByInstanceIdParameters, _super); - function deleteFormulasInstanceByInstanceIdParameters(superThis, method, path, id, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - deleteFormulasInstanceByInstanceIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteFormulasInstanceByInstanceIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstanceByInstanceId2Parameters = /** @class */ (function (_super) { - __extends(getFormulasInstanceByInstanceId2Parameters, _super); - function getFormulasInstanceByInstanceId2Parameters(superThis, method, path, id, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - getFormulasInstanceByInstanceId2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstanceByInstanceId2Parameters; -}(platformSDKMethodParameters)); -; -var replaceFormulasInstanceByInstanceIdParameters = /** @class */ (function (_super) { - __extends(replaceFormulasInstanceByInstanceIdParameters, _super); - function replaceFormulasInstanceByInstanceIdParameters(superThis, method, path, id, instanceId, formulaInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - _this._body = formulaInstance; - return _this; - } - replaceFormulasInstanceByInstanceIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceFormulasInstanceByInstanceIdParameters; -}(platformSDKMethodParameters)); -; -var replaceFormulasInstancesActiveParameters = /** @class */ (function (_super) { - __extends(replaceFormulasInstancesActiveParameters, _super); - function replaceFormulasInstancesActiveParameters(superThis, method, path, id, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - replaceFormulasInstancesActiveParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceFormulasInstancesActiveParameters; -}(platformSDKMethodParameters)); -; -var deleteFormulasInstancesActiveParameters = /** @class */ (function (_super) { - __extends(deleteFormulasInstancesActiveParameters, _super); - function deleteFormulasInstancesActiveParameters(superThis, method, path, id, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - deleteFormulasInstancesActiveParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteFormulasInstancesActiveParameters; -}(platformSDKMethodParameters)); -; -var getFormulasInstancesExecutions2Parameters = /** @class */ (function (_super) { - __extends(getFormulasInstancesExecutions2Parameters, _super); - function getFormulasInstancesExecutions2Parameters(superThis, method, path, id, instanceId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{instanceId}', "" + instanceId); - return _this; - } - getFormulasInstancesExecutions2Parameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getFormulasInstancesExecutions2Parameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getFormulasInstancesExecutions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasInstancesExecutions2Parameters; -}(platformSDKMethodParameters)); -; -var getFormulasStepsParameters = /** @class */ (function (_super) { - __extends(getFormulasStepsParameters, _super); - function getFormulasStepsParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getFormulasStepsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasStepsParameters; -}(platformSDKMethodParameters)); -; -var createFormulaStepParameters = /** @class */ (function (_super) { - __extends(createFormulaStepParameters, _super); - function createFormulaStepParameters(superThis, method, path, id, step) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = step; - return _this; - } - createFormulaStepParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createFormulaStepParameters; -}(platformSDKMethodParameters)); -; -var deleteFormulasStepByStepIdParameters = /** @class */ (function (_super) { - __extends(deleteFormulasStepByStepIdParameters, _super); - function deleteFormulasStepByStepIdParameters(superThis, method, path, id, stepId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{stepId}', "" + stepId); - return _this; - } - deleteFormulasStepByStepIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteFormulasStepByStepIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulasStepByStepIdParameters = /** @class */ (function (_super) { - __extends(getFormulasStepByStepIdParameters, _super); - function getFormulasStepByStepIdParameters(superThis, method, path, id, stepId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{stepId}', "" + stepId); - return _this; - } - getFormulasStepByStepIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasStepByStepIdParameters; -}(platformSDKMethodParameters)); -; -var replaceFormulasStepByStepIdParameters = /** @class */ (function (_super) { - __extends(replaceFormulasStepByStepIdParameters, _super); - function replaceFormulasStepByStepIdParameters(superThis, method, path, id, stepId, step) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{stepId}', "" + stepId); - _this._body = step; - return _this; - } - replaceFormulasStepByStepIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceFormulasStepByStepIdParameters; -}(platformSDKMethodParameters)); -; -var createFormulaTriggerParameters = /** @class */ (function (_super) { - __extends(createFormulaTriggerParameters, _super); - function createFormulaTriggerParameters(superThis, method, path, id, trigger) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = trigger; - return _this; - } - createFormulaTriggerParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createFormulaTriggerParameters; -}(platformSDKMethodParameters)); -; -var deleteFormulasTriggerByTriggerIdParameters = /** @class */ (function (_super) { - __extends(deleteFormulasTriggerByTriggerIdParameters, _super); - function deleteFormulasTriggerByTriggerIdParameters(superThis, method, path, id, triggerId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{triggerId}', "" + triggerId); - return _this; - } - deleteFormulasTriggerByTriggerIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteFormulasTriggerByTriggerIdParameters; -}(platformSDKMethodParameters)); -; -var getFormulasTriggerByTriggerIdParameters = /** @class */ (function (_super) { - __extends(getFormulasTriggerByTriggerIdParameters, _super); - function getFormulasTriggerByTriggerIdParameters(superThis, method, path, id, triggerId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{triggerId}', "" + triggerId); - return _this; - } - getFormulasTriggerByTriggerIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getFormulasTriggerByTriggerIdParameters; -}(platformSDKMethodParameters)); -; -var replaceFormulasTriggerByTriggerIdParameters = /** @class */ (function (_super) { - __extends(replaceFormulasTriggerByTriggerIdParameters, _super); - function replaceFormulasTriggerByTriggerIdParameters(superThis, method, path, id, triggerId, trigger) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{triggerId}', "" + triggerId); - _this._body = trigger; - return _this; - } - replaceFormulasTriggerByTriggerIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceFormulasTriggerByTriggerIdParameters; -}(platformSDKMethodParameters)); -; -var getHubsParameters = /** @class */ (function (_super) { - __extends(getHubsParameters, _super); - function getHubsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getHubsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getHubsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getHubsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getHubsParameters; -}(platformSDKMethodParameters)); -; -var createHubParameters = /** @class */ (function (_super) { - __extends(createHubParameters, _super); - function createHubParameters(superThis, method, path, hub) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = hub; - return _this; - } - createHubParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createHubParameters; -}(platformSDKMethodParameters)); -; -var getHubsKeysParameters = /** @class */ (function (_super) { - __extends(getHubsKeysParameters, _super); - function getHubsKeysParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getHubsKeysParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getHubsKeysParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getHubsKeysParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getHubsKeysParameters; -}(platformSDKMethodParameters)); -; -var deleteHubByKeyParameters = /** @class */ (function (_super) { - __extends(deleteHubByKeyParameters, _super); - function deleteHubByKeyParameters(superThis, method, path, key) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{key}', "" + key); - return _this; - } - deleteHubByKeyParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteHubByKeyParameters; -}(platformSDKMethodParameters)); -; -var getHubByKeyParameters = /** @class */ (function (_super) { - __extends(getHubByKeyParameters, _super); - function getHubByKeyParameters(superThis, method, path, key) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{key}', "" + key); - return _this; - } - getHubByKeyParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getHubByKeyParameters; -}(platformSDKMethodParameters)); -; -var getHubsElementsParameters = /** @class */ (function (_super) { - __extends(getHubsElementsParameters, _super); - function getHubsElementsParameters(superThis, method, path, key) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{key}', "" + key); - return _this; - } - getHubsElementsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getHubsElementsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getHubsElementsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getHubsElementsParameters; -}(platformSDKMethodParameters)); -; -var getInstancesParameters = /** @class */ (function (_super) { - __extends(getInstancesParameters, _super); - function getInstancesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesParameters.prototype.tags = function (tags) { - this.queryParameters['tags[]'] = tags; - return this; - }; - getInstancesParameters.prototype.searchText = function (searchText) { - this.queryParameters['searchText'] = searchText; - return this; - }; - getInstancesParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getInstancesParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getInstancesParameters.prototype.hydrate = function (hydrate) { - this.queryParameters['hydrate'] = hydrate; - return this; - }; - getInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesParameters; -}(platformSDKMethodParameters)); -; -var createInstanceParameters = /** @class */ (function (_super) { - __extends(createInstanceParameters, _super); - function createInstanceParameters(superThis, method, path, elementInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = elementInstance; - return _this; - } - createInstanceParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createInstanceParameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesParameters = /** @class */ (function (_super) { - __extends(deleteInstancesParameters, _super); - function deleteInstancesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - deleteInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesParameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesParameters = /** @class */ (function (_super) { - __extends(replaceInstancesParameters, _super); - function replaceInstancesParameters(superThis, method, path, elementInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = elementInstance; - return _this; - } - replaceInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesParameters; -}(platformSDKMethodParameters)); -; -var updateInstancesParameters = /** @class */ (function (_super) { - __extends(updateInstancesParameters, _super); - function updateInstancesParameters(superThis, method, path, elementInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = elementInstance; - return _this; - } - updateInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateInstancesParameters; -}(platformSDKMethodParameters)); -; -var getInstancesConfigurationParameters = /** @class */ (function (_super) { - __extends(getInstancesConfigurationParameters, _super); - function getInstancesConfigurationParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesConfigurationParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesConfigurationParameters; -}(platformSDKMethodParameters)); -; -var getInstancesConfigurationByConfigIdParameters = /** @class */ (function (_super) { - __extends(getInstancesConfigurationByConfigIdParameters, _super); - function getInstancesConfigurationByConfigIdParameters(superThis, method, path, configId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{configId}', "" + configId); - return _this; - } - getInstancesConfigurationByConfigIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesConfigurationByConfigIdParameters; -}(platformSDKMethodParameters)); -; -var updateInstancesConfigurationByConfigIdParameters = /** @class */ (function (_super) { - __extends(updateInstancesConfigurationByConfigIdParameters, _super); - function updateInstancesConfigurationByConfigIdParameters(superThis, method, path, configId, config) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{configId}', "" + configId); - _this._body = config; - return _this; - } - updateInstancesConfigurationByConfigIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateInstancesConfigurationByConfigIdParameters; -}(platformSDKMethodParameters)); -; -var getInstancesDocsParameters = /** @class */ (function (_super) { - __extends(getInstancesDocsParameters, _super); - function getInstancesDocsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesDocsParameters.prototype.operationId = function (operationId) { - this.queryParameters['operationId'] = operationId; - return this; - }; - getInstancesDocsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesDocsParameters; -}(platformSDKMethodParameters)); -; -var getInstancesDocByOperationIdParameters = /** @class */ (function (_super) { - __extends(getInstancesDocByOperationIdParameters, _super); - function getInstancesDocByOperationIdParameters(superThis, method, path, operationId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{operationId}', "" + operationId); - return _this; - } - getInstancesDocByOperationIdParameters.prototype.discovery = function (discovery) { - this.queryParameters['discovery'] = discovery; - return this; - }; - getInstancesDocByOperationIdParameters.prototype.basic = function (basic) { - this.queryParameters['basic'] = basic; - return this; - }; - getInstancesDocByOperationIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesDocByOperationIdParameters; -}(platformSDKMethodParameters)); -; -var getInstancesDocsDefinitionsParameters = /** @class */ (function (_super) { - __extends(getInstancesDocsDefinitionsParameters, _super); - function getInstancesDocsDefinitionsParameters(superThis, method, path, operationId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{operationId}', "" + operationId); - return _this; - } - getInstancesDocsDefinitionsParameters.prototype.discovery = function (discovery) { - this.queryParameters['discovery'] = discovery; - return this; - }; - getInstancesDocsDefinitionsParameters.prototype.resolveReferences = function (resolveReferences) { - this.queryParameters['resolveReferences'] = resolveReferences; - return this; - }; - getInstancesDocsDefinitionsParameters.prototype.basic = function (basic) { - this.queryParameters['basic'] = basic; - return this; - }; - getInstancesDocsDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesDocsDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesEnabledParameters = /** @class */ (function (_super) { - __extends(replaceInstancesEnabledParameters, _super); - function replaceInstancesEnabledParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - replaceInstancesEnabledParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesEnabledParameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesEnabledParameters = /** @class */ (function (_super) { - __extends(deleteInstancesEnabledParameters, _super); - function deleteInstancesEnabledParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - deleteInstancesEnabledParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesEnabledParameters; -}(platformSDKMethodParameters)); -; -var getInstancesEventsParameters = /** @class */ (function (_super) { - __extends(getInstancesEventsParameters, _super); - function getInstancesEventsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesEventsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesEventsParameters; -}(platformSDKMethodParameters)); -; -var getInstancesEventsAnalyticsParameters = /** @class */ (function (_super) { - __extends(getInstancesEventsAnalyticsParameters, _super); - function getInstancesEventsAnalyticsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesEventsAnalyticsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getInstancesEventsAnalyticsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getInstancesEventsAnalyticsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getInstancesEventsAnalyticsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getInstancesEventsAnalyticsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesEventsAnalyticsParameters; -}(platformSDKMethodParameters)); -; -var getInstancesEventsAnalyticsAccountsParameters = /** @class */ (function (_super) { - __extends(getInstancesEventsAnalyticsAccountsParameters, _super); - function getInstancesEventsAnalyticsAccountsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesEventsAnalyticsAccountsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getInstancesEventsAnalyticsAccountsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getInstancesEventsAnalyticsAccountsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getInstancesEventsAnalyticsAccountsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getInstancesEventsAnalyticsAccountsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesEventsAnalyticsAccountsParameters; -}(platformSDKMethodParameters)); -; -var getInstancesEventsAnalyticsInstancesParameters = /** @class */ (function (_super) { - __extends(getInstancesEventsAnalyticsInstancesParameters, _super); - function getInstancesEventsAnalyticsInstancesParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesEventsAnalyticsInstancesParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getInstancesEventsAnalyticsInstancesParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getInstancesEventsAnalyticsInstancesParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getInstancesEventsAnalyticsInstancesParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getInstancesEventsAnalyticsInstancesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesEventsAnalyticsInstancesParameters; -}(platformSDKMethodParameters)); -; -var getInstancesEventsDispositionsParameters = /** @class */ (function (_super) { - __extends(getInstancesEventsDispositionsParameters, _super); - function getInstancesEventsDispositionsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesEventsDispositionsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getInstancesEventsDispositionsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getInstancesEventsDispositionsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getInstancesEventsDispositionsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getInstancesEventsDispositionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesEventsDispositionsParameters; -}(platformSDKMethodParameters)); -; -var getInstancesEventByEventIdParameters = /** @class */ (function (_super) { - __extends(getInstancesEventByEventIdParameters, _super); - function getInstancesEventByEventIdParameters(superThis, method, path, eventId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{eventId}', "" + eventId); - return _this; - } - getInstancesEventByEventIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesEventByEventIdParameters; -}(platformSDKMethodParameters)); -; -var getInstancesObjectsDefinitionsParameters = /** @class */ (function (_super) { - __extends(getInstancesObjectsDefinitionsParameters, _super); - function getInstancesObjectsDefinitionsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesObjectsDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesObjectsDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(deleteInstancesObjectsObjectNameDefinitionsParameters, _super); - function deleteInstancesObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteInstancesObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var getInstancesObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(getInstancesObjectsObjectNameDefinitionsParameters, _super); - function getInstancesObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getInstancesObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var createInstanceObjectObjectNameDefinitionParameters = /** @class */ (function (_super) { - __extends(createInstanceObjectObjectNameDefinitionParameters, _super); - function createInstanceObjectObjectNameDefinitionParameters(superThis, method, path, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - createInstanceObjectObjectNameDefinitionParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createInstanceObjectObjectNameDefinitionParameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(replaceInstancesObjectsObjectNameDefinitionsParameters, _super); - function replaceInstancesObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - replaceInstancesObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesTraceLoggingParameters = /** @class */ (function (_super) { - __extends(replaceInstancesTraceLoggingParameters, _super); - function replaceInstancesTraceLoggingParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - replaceInstancesTraceLoggingParameters.prototype.config = function (config) { - if (this.queryParameters['config'] !== undefined) { - this._body = this.queryParameters['config']; - } - return this; - }; - replaceInstancesTraceLoggingParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesTraceLoggingParameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesTraceLoggingParameters = /** @class */ (function (_super) { - __extends(deleteInstancesTraceLoggingParameters, _super); - function deleteInstancesTraceLoggingParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - deleteInstancesTraceLoggingParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesTraceLoggingParameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesTransformationsParameters = /** @class */ (function (_super) { - __extends(deleteInstancesTransformationsParameters, _super); - function deleteInstancesTransformationsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - deleteInstancesTransformationsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesTransformationsParameters; -}(platformSDKMethodParameters)); -; -var getInstancesTransformationsParameters = /** @class */ (function (_super) { - __extends(getInstancesTransformationsParameters, _super); - function getInstancesTransformationsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getInstancesTransformationsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesTransformationsParameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(deleteInstancesTransformationByObjectNameParameters, _super); - function deleteInstancesTransformationByObjectNameParameters(superThis, method, path, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteInstancesTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var getInstancesTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(getInstancesTransformationByObjectNameParameters, _super); - function getInstancesTransformationByObjectNameParameters(superThis, method, path, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getInstancesTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var createInstanceTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(createInstanceTransformationByObjectNameParameters, _super); - function createInstanceTransformationByObjectNameParameters(superThis, method, path, objectName, transformation) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = transformation; - return _this; - } - createInstanceTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createInstanceTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(replaceInstancesTransformationByObjectNameParameters, _super); - function replaceInstancesTransformationByObjectNameParameters(superThis, method, path, objectName, transformation) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = transformation; - return _this; - } - replaceInstancesTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var deleteInstanceByIdParameters = /** @class */ (function (_super) { - __extends(deleteInstanceByIdParameters, _super); - function deleteInstanceByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteInstanceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstanceByIdParameters; -}(platformSDKMethodParameters)); -; -var getInstanceByIdParameters = /** @class */ (function (_super) { - __extends(getInstanceByIdParameters, _super); - function getInstanceByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getInstanceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstanceByIdParameters; -}(platformSDKMethodParameters)); -; -var replaceInstanceByIdParameters = /** @class */ (function (_super) { - __extends(replaceInstanceByIdParameters, _super); - function replaceInstanceByIdParameters(superThis, method, path, id, elementInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = elementInstance; - return _this; - } - replaceInstanceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstanceByIdParameters; -}(platformSDKMethodParameters)); -; -var updateInstanceByIdParameters = /** @class */ (function (_super) { - __extends(updateInstanceByIdParameters, _super); - function updateInstanceByIdParameters(superThis, method, path, id, elementInstance) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = elementInstance; - return _this; - } - updateInstanceByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateInstanceByIdParameters; -}(platformSDKMethodParameters)); -; -var getInstancesConfiguration2Parameters = /** @class */ (function (_super) { - __extends(getInstancesConfiguration2Parameters, _super); - function getInstancesConfiguration2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getInstancesConfiguration2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesConfiguration2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesConfigurationByConfigId2Parameters = /** @class */ (function (_super) { - __extends(getInstancesConfigurationByConfigId2Parameters, _super); - function getInstancesConfigurationByConfigId2Parameters(superThis, method, path, id, configId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{configId}', "" + configId); - return _this; - } - getInstancesConfigurationByConfigId2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesConfigurationByConfigId2Parameters; -}(platformSDKMethodParameters)); -; -var updateInstancesConfigurationByConfigId2Parameters = /** @class */ (function (_super) { - __extends(updateInstancesConfigurationByConfigId2Parameters, _super); - function updateInstancesConfigurationByConfigId2Parameters(superThis, method, path, id, configId, config) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{configId}', "" + configId); - _this._body = config; - return _this; - } - updateInstancesConfigurationByConfigId2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateInstancesConfigurationByConfigId2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesDocs2Parameters = /** @class */ (function (_super) { - __extends(getInstancesDocs2Parameters, _super); - function getInstancesDocs2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getInstancesDocs2Parameters.prototype.operationId = function (operationId) { - this.queryParameters['operationId'] = operationId; - return this; - }; - getInstancesDocs2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesDocs2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesDocByOperationId2Parameters = /** @class */ (function (_super) { - __extends(getInstancesDocByOperationId2Parameters, _super); - function getInstancesDocByOperationId2Parameters(superThis, method, path, id, operationId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{operationId}', "" + operationId); - return _this; - } - getInstancesDocByOperationId2Parameters.prototype.discovery = function (discovery) { - this.queryParameters['discovery'] = discovery; - return this; - }; - getInstancesDocByOperationId2Parameters.prototype.basic = function (basic) { - this.queryParameters['basic'] = basic; - return this; - }; - getInstancesDocByOperationId2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesDocByOperationId2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesDocsDefinitions2Parameters = /** @class */ (function (_super) { - __extends(getInstancesDocsDefinitions2Parameters, _super); - function getInstancesDocsDefinitions2Parameters(superThis, method, path, id, operationId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{operationId}', "" + operationId); - return _this; - } - getInstancesDocsDefinitions2Parameters.prototype.discovery = function (discovery) { - this.queryParameters['discovery'] = discovery; - return this; - }; - getInstancesDocsDefinitions2Parameters.prototype.resolveReferences = function (resolveReferences) { - this.queryParameters['resolveReferences'] = resolveReferences; - return this; - }; - getInstancesDocsDefinitions2Parameters.prototype.basic = function (basic) { - this.queryParameters['basic'] = basic; - return this; - }; - getInstancesDocsDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesDocsDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesEnabled2Parameters = /** @class */ (function (_super) { - __extends(replaceInstancesEnabled2Parameters, _super); - function replaceInstancesEnabled2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - replaceInstancesEnabled2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesEnabled2Parameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesEnabled2Parameters = /** @class */ (function (_super) { - __extends(deleteInstancesEnabled2Parameters, _super); - function deleteInstancesEnabled2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteInstancesEnabled2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesEnabled2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesEvents2Parameters = /** @class */ (function (_super) { - __extends(getInstancesEvents2Parameters, _super); - function getInstancesEvents2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getInstancesEvents2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesEvents2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesEventByEventId2Parameters = /** @class */ (function (_super) { - __extends(getInstancesEventByEventId2Parameters, _super); - function getInstancesEventByEventId2Parameters(superThis, method, path, id, eventId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{eventId}', "" + eventId); - return _this; - } - getInstancesEventByEventId2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesEventByEventId2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesObjectsDefinitions2Parameters = /** @class */ (function (_super) { - __extends(getInstancesObjectsDefinitions2Parameters, _super); - function getInstancesObjectsDefinitions2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getInstancesObjectsDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesObjectsDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesObjectsObjectNameDefinitions2Parameters = /** @class */ (function (_super) { - __extends(deleteInstancesObjectsObjectNameDefinitions2Parameters, _super); - function deleteInstancesObjectsObjectNameDefinitions2Parameters(superThis, method, path, id, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteInstancesObjectsObjectNameDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesObjectsObjectNameDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesObjectsObjectNameDefinitions2Parameters = /** @class */ (function (_super) { - __extends(getInstancesObjectsObjectNameDefinitions2Parameters, _super); - function getInstancesObjectsObjectNameDefinitions2Parameters(superThis, method, path, id, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getInstancesObjectsObjectNameDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesObjectsObjectNameDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var createInstanceObjectObjectNameDefinition2Parameters = /** @class */ (function (_super) { - __extends(createInstanceObjectObjectNameDefinition2Parameters, _super); - function createInstanceObjectObjectNameDefinition2Parameters(superThis, method, path, id, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - createInstanceObjectObjectNameDefinition2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createInstanceObjectObjectNameDefinition2Parameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesObjectsObjectNameDefinitions2Parameters = /** @class */ (function (_super) { - __extends(replaceInstancesObjectsObjectNameDefinitions2Parameters, _super); - function replaceInstancesObjectsObjectNameDefinitions2Parameters(superThis, method, path, id, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - replaceInstancesObjectsObjectNameDefinitions2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesObjectsObjectNameDefinitions2Parameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesTraceLogging2Parameters = /** @class */ (function (_super) { - __extends(replaceInstancesTraceLogging2Parameters, _super); - function replaceInstancesTraceLogging2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - replaceInstancesTraceLogging2Parameters.prototype.config = function (config) { - if (this.queryParameters['config'] !== undefined) { - this._body = this.queryParameters['config']; - } - return this; - }; - replaceInstancesTraceLogging2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesTraceLogging2Parameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesTraceLogging2Parameters = /** @class */ (function (_super) { - __extends(deleteInstancesTraceLogging2Parameters, _super); - function deleteInstancesTraceLogging2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteInstancesTraceLogging2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesTraceLogging2Parameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesTransformations2Parameters = /** @class */ (function (_super) { - __extends(deleteInstancesTransformations2Parameters, _super); - function deleteInstancesTransformations2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteInstancesTransformations2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesTransformations2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesTransformations2Parameters = /** @class */ (function (_super) { - __extends(getInstancesTransformations2Parameters, _super); - function getInstancesTransformations2Parameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getInstancesTransformations2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesTransformations2Parameters; -}(platformSDKMethodParameters)); -; -var deleteInstancesTransformationByObjectName2Parameters = /** @class */ (function (_super) { - __extends(deleteInstancesTransformationByObjectName2Parameters, _super); - function deleteInstancesTransformationByObjectName2Parameters(superThis, method, path, id, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteInstancesTransformationByObjectName2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteInstancesTransformationByObjectName2Parameters; -}(platformSDKMethodParameters)); -; -var getInstancesTransformationByObjectName2Parameters = /** @class */ (function (_super) { - __extends(getInstancesTransformationByObjectName2Parameters, _super); - function getInstancesTransformationByObjectName2Parameters(superThis, method, path, id, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getInstancesTransformationByObjectName2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getInstancesTransformationByObjectName2Parameters; -}(platformSDKMethodParameters)); -; -var createInstanceTransformationByObjectName2Parameters = /** @class */ (function (_super) { - __extends(createInstanceTransformationByObjectName2Parameters, _super); - function createInstanceTransformationByObjectName2Parameters(superThis, method, path, id, objectName, transformation) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = transformation; - return _this; - } - createInstanceTransformationByObjectName2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createInstanceTransformationByObjectName2Parameters; -}(platformSDKMethodParameters)); -; -var replaceInstancesTransformationByObjectName2Parameters = /** @class */ (function (_super) { - __extends(replaceInstancesTransformationByObjectName2Parameters, _super); - function replaceInstancesTransformationByObjectName2Parameters(superThis, method, path, id, objectName, transformation) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = transformation; - return _this; - } - replaceInstancesTransformationByObjectName2Parameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceInstancesTransformationByObjectName2Parameters; -}(platformSDKMethodParameters)); -; -var getJobsParameters = /** @class */ (function (_super) { - __extends(getJobsParameters, _super); - function getJobsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getJobsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getJobsParameters; -}(platformSDKMethodParameters)); -; -var createJobParameters = /** @class */ (function (_super) { - __extends(createJobParameters, _super); - function createJobParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - createJobParameters.prototype.body = function (body) { - if (this.queryParameters['body'] !== undefined) { - this._body = this.queryParameters['body']; - } - return this; - }; - createJobParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createJobParameters; -}(platformSDKMethodParameters)); -; -var getJobsExecutionsParameters = /** @class */ (function (_super) { - __extends(getJobsExecutionsParameters, _super); - function getJobsExecutionsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getJobsExecutionsParameters.prototype.page = function (page) { - this.queryParameters['page'] = page; - return this; - }; - getJobsExecutionsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getJobsExecutionsParameters.prototype.elementKeys = function (elementKeys) { - this.queryParameters['elementKeys[]'] = elementKeys; - return this; - }; - getJobsExecutionsParameters.prototype.startTime = function (startTime) { - this.queryParameters['startTime'] = startTime; - return this; - }; - getJobsExecutionsParameters.prototype.endTime = function (endTime) { - this.queryParameters['endTime'] = endTime; - return this; - }; - getJobsExecutionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getJobsExecutionsParameters; -}(platformSDKMethodParameters)); -; -var deleteJobByIdParameters = /** @class */ (function (_super) { - __extends(deleteJobByIdParameters, _super); - function deleteJobByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteJobByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteJobByIdParameters; -}(platformSDKMethodParameters)); -; -var getJobByIdParameters = /** @class */ (function (_super) { - __extends(getJobByIdParameters, _super); - function getJobByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getJobByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getJobByIdParameters; -}(platformSDKMethodParameters)); -; -var replaceJobsDisableParameters = /** @class */ (function (_super) { - __extends(replaceJobsDisableParameters, _super); - function replaceJobsDisableParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - replaceJobsDisableParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceJobsDisableParameters; -}(platformSDKMethodParameters)); -; -var replaceJobsEnableParameters = /** @class */ (function (_super) { - __extends(replaceJobsEnableParameters, _super); - function replaceJobsEnableParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - replaceJobsEnableParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceJobsEnableParameters; -}(platformSDKMethodParameters)); -; -var getJobsHistoryParameters = /** @class */ (function (_super) { - __extends(getJobsHistoryParameters, _super); - function getJobsHistoryParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getJobsHistoryParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getJobsHistoryParameters; -}(platformSDKMethodParameters)); -; -var getJobsHistoryByHistoryIdParameters = /** @class */ (function (_super) { - __extends(getJobsHistoryByHistoryIdParameters, _super); - function getJobsHistoryByHistoryIdParameters(superThis, method, path, id, historyId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{historyId}', "" + historyId); - return _this; - } - getJobsHistoryByHistoryIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getJobsHistoryByHistoryIdParameters; -}(platformSDKMethodParameters)); -; -var updateJobsRescheduleParameters = /** @class */ (function (_super) { - __extends(updateJobsRescheduleParameters, _super); - function updateJobsRescheduleParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - updateJobsRescheduleParameters.prototype.body = function (body) { - if (this.queryParameters['body'] !== undefined) { - this._body = this.queryParameters['body']; - } - return this; - }; - updateJobsRescheduleParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateJobsRescheduleParameters; -}(platformSDKMethodParameters)); -; -var getMetricsApiParameters = /** @class */ (function (_super) { - __extends(getMetricsApiParameters, _super); - function getMetricsApiParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsApiParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsApiParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsApiParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsApiParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsApiParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsApiParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsApiParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsApiParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsApiParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsApiParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsApiParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsApiParameters; -}(platformSDKMethodParameters)); -; -var getMetricsBulkJobsParameters = /** @class */ (function (_super) { - __extends(getMetricsBulkJobsParameters, _super); - function getMetricsBulkJobsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsBulkJobsParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsBulkJobsParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsBulkJobsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsBulkJobsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsBulkJobsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsBulkJobsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsBulkJobsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsBulkJobsParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsBulkJobsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsBulkJobsParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsBulkJobsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsBulkJobsParameters; -}(platformSDKMethodParameters)); -; -var getMetricsElementInstancesCreatedParameters = /** @class */ (function (_super) { - __extends(getMetricsElementInstancesCreatedParameters, _super); - function getMetricsElementInstancesCreatedParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsElementInstancesCreatedParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsElementInstancesCreatedParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsElementInstancesCreatedParameters; -}(platformSDKMethodParameters)); -; -var getMetricsElementsCreatedParameters = /** @class */ (function (_super) { - __extends(getMetricsElementsCreatedParameters, _super); - function getMetricsElementsCreatedParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsElementsCreatedParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsElementsCreatedParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsElementsCreatedParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsElementsCreatedParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsElementsCreatedParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsElementsCreatedParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsElementsCreatedParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsElementsCreatedParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsElementsCreatedParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsElementsCreatedParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsElementsCreatedParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsElementsCreatedParameters; -}(platformSDKMethodParameters)); -; -var getMetricsEventsParameters = /** @class */ (function (_super) { - __extends(getMetricsEventsParameters, _super); - function getMetricsEventsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsEventsParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsEventsParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsEventsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsEventsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsEventsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsEventsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsEventsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsEventsParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsEventsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsEventsParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsEventsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsEventsParameters; -}(platformSDKMethodParameters)); -; -var getMetricsFormulaExecutionsParameters = /** @class */ (function (_super) { - __extends(getMetricsFormulaExecutionsParameters, _super); - function getMetricsFormulaExecutionsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsFormulaExecutionsParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsFormulaExecutionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsFormulaExecutionsParameters; -}(platformSDKMethodParameters)); -; -var getMetricsFormulasCreatedParameters = /** @class */ (function (_super) { - __extends(getMetricsFormulasCreatedParameters, _super); - function getMetricsFormulasCreatedParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsFormulasCreatedParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsFormulasCreatedParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsFormulasCreatedParameters; -}(platformSDKMethodParameters)); -; -var getMetricsHubApiParameters = /** @class */ (function (_super) { - __extends(getMetricsHubApiParameters, _super); - function getMetricsHubApiParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsHubApiParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsHubApiParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsHubApiParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsHubApiParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsHubApiParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsHubApiParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsHubApiParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsHubApiParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsHubApiParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsHubApiParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsHubApiParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsHubApiParameters; -}(platformSDKMethodParameters)); -; -var getMetricsHubsCreatedParameters = /** @class */ (function (_super) { - __extends(getMetricsHubsCreatedParameters, _super); - function getMetricsHubsCreatedParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsHubsCreatedParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsHubsCreatedParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsHubsCreatedParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsHubsCreatedParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsHubsCreatedParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsHubsCreatedParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsHubsCreatedParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsHubsCreatedParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsHubsCreatedParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsHubsCreatedParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsHubsCreatedParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsHubsCreatedParameters; -}(platformSDKMethodParameters)); -; -var getMetricsVdrsCreatedParameters = /** @class */ (function (_super) { - __extends(getMetricsVdrsCreatedParameters, _super); - function getMetricsVdrsCreatedParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsVdrsCreatedParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsVdrsCreatedParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsVdrsCreatedParameters; -}(platformSDKMethodParameters)); -; -var getMetricsVdrsInvokedParameters = /** @class */ (function (_super) { - __extends(getMetricsVdrsInvokedParameters, _super); - function getMetricsVdrsInvokedParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getMetricsVdrsInvokedParameters.prototype.customerIds = function (customerIds) { - this.queryParameters['customerIds[]'] = customerIds; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.orgIds = function (orgIds) { - this.queryParameters['orgIds[]'] = orgIds; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.agg = function (agg) { - this.queryParameters['agg'] = agg; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.emptyIntervals = function (emptyIntervals) { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - }; - getMetricsVdrsInvokedParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getMetricsVdrsInvokedParameters; -}(platformSDKMethodParameters)); -; -var createOrganizationParameters = /** @class */ (function (_super) { - __extends(createOrganizationParameters, _super); - function createOrganizationParameters(superThis, method, path, organization) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = organization; - return _this; - } - createOrganizationParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createOrganizationParameters; -}(platformSDKMethodParameters)); -; -var deleteOrganizationsElementsTransformationsParameters = /** @class */ (function (_super) { - __extends(deleteOrganizationsElementsTransformationsParameters, _super); - function deleteOrganizationsElementsTransformationsParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - deleteOrganizationsElementsTransformationsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteOrganizationsElementsTransformationsParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsElementsTransformationsParameters = /** @class */ (function (_super) { - __extends(getOrganizationsElementsTransformationsParameters, _super); - function getOrganizationsElementsTransformationsParameters(superThis, method, path, keyOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - return _this; - } - getOrganizationsElementsTransformationsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsElementsTransformationsParameters; -}(platformSDKMethodParameters)); -; -var deleteOrganizationsElementsTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(deleteOrganizationsElementsTransformationByObjectNameParameters, _super); - function deleteOrganizationsElementsTransformationByObjectNameParameters(superThis, method, path, keyOrId, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteOrganizationsElementsTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteOrganizationsElementsTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsElementsTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(getOrganizationsElementsTransformationByObjectNameParameters, _super); - function getOrganizationsElementsTransformationByObjectNameParameters(superThis, method, path, keyOrId, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getOrganizationsElementsTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsElementsTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var createOrganizationElementTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(createOrganizationElementTransformationByObjectNameParameters, _super); - function createOrganizationElementTransformationByObjectNameParameters(superThis, method, path, keyOrId, objectName, transformation) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = transformation; - return _this; - } - createOrganizationElementTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createOrganizationElementTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var replaceOrganizationsElementsTransformationByObjectNameParameters = /** @class */ (function (_super) { - __extends(replaceOrganizationsElementsTransformationByObjectNameParameters, _super); - function replaceOrganizationsElementsTransformationByObjectNameParameters(superThis, method, path, keyOrId, objectName, transformation) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{keyOrId}', "" + keyOrId); - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = transformation; - return _this; - } - replaceOrganizationsElementsTransformationByObjectNameParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceOrganizationsElementsTransformationByObjectNameParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsMeParameters = /** @class */ (function (_super) { - __extends(getOrganizationsMeParameters, _super); - function getOrganizationsMeParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getOrganizationsMeParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsMeParameters; -}(platformSDKMethodParameters)); -; -var replaceOrganizationsMeParameters = /** @class */ (function (_super) { - __extends(replaceOrganizationsMeParameters, _super); - function replaceOrganizationsMeParameters(superThis, method, path, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = body; - return _this; - } - replaceOrganizationsMeParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceOrganizationsMeParameters; -}(platformSDKMethodParameters)); -; -var deleteOrganizationsObjectsDefinitionsParameters = /** @class */ (function (_super) { - __extends(deleteOrganizationsObjectsDefinitionsParameters, _super); - function deleteOrganizationsObjectsDefinitionsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - deleteOrganizationsObjectsDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteOrganizationsObjectsDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsObjectsDefinitionsParameters = /** @class */ (function (_super) { - __extends(getOrganizationsObjectsDefinitionsParameters, _super); - function getOrganizationsObjectsDefinitionsParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getOrganizationsObjectsDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsObjectsDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var createOrganizationObjectDefinitionParameters = /** @class */ (function (_super) { - __extends(createOrganizationObjectDefinitionParameters, _super); - function createOrganizationObjectDefinitionParameters(superThis, method, path, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = body; - return _this; - } - createOrganizationObjectDefinitionParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createOrganizationObjectDefinitionParameters; -}(platformSDKMethodParameters)); -; -var deleteOrganizationsObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(deleteOrganizationsObjectsObjectNameDefinitionsParameters, _super); - function deleteOrganizationsObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - deleteOrganizationsObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteOrganizationsObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(getOrganizationsObjectsObjectNameDefinitionsParameters, _super); - function getOrganizationsObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - return _this; - } - getOrganizationsObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var createOrganizationObjectObjectNameDefinitionParameters = /** @class */ (function (_super) { - __extends(createOrganizationObjectObjectNameDefinitionParameters, _super); - function createOrganizationObjectObjectNameDefinitionParameters(superThis, method, path, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - createOrganizationObjectObjectNameDefinitionParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createOrganizationObjectObjectNameDefinitionParameters; -}(platformSDKMethodParameters)); -; -var replaceOrganizationsObjectsObjectNameDefinitionsParameters = /** @class */ (function (_super) { - __extends(replaceOrganizationsObjectsObjectNameDefinitionsParameters, _super); - function replaceOrganizationsObjectsObjectNameDefinitionsParameters(superThis, method, path, objectName, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{objectName}', "" + objectName); - _this._body = body; - return _this; - } - replaceOrganizationsObjectsObjectNameDefinitionsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceOrganizationsObjectsObjectNameDefinitionsParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsUsersParameters = /** @class */ (function (_super) { - __extends(getOrganizationsUsersParameters, _super); - function getOrganizationsUsersParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getOrganizationsUsersParameters.prototype.where = function (where) { - this.queryParameters['where'] = where; - return this; - }; - getOrganizationsUsersParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getOrganizationsUsersParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getOrganizationsUsersParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getOrganizationsUsersParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsUsersParameters; -}(platformSDKMethodParameters)); -; -var createOrganizationUserParameters = /** @class */ (function (_super) { - __extends(createOrganizationUserParameters, _super); - function createOrganizationUserParameters(superThis, method, path, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this._body = body; - return _this; - } - createOrganizationUserParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createOrganizationUserParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsUserByEmailOrIdParameters = /** @class */ (function (_super) { - __extends(getOrganizationsUserByEmailOrIdParameters, _super); - function getOrganizationsUserByEmailOrIdParameters(superThis, method, path, emailOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{emailOrId}', "" + emailOrId); - return _this; - } - getOrganizationsUserByEmailOrIdParameters.prototype.elementsUserPassword = function (elementsUserPassword) { - this.headers['Elements-User-Password'] = elementsUserPassword; - return this; - }; - getOrganizationsUserByEmailOrIdParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getOrganizationsUserByEmailOrIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsUserByEmailOrIdParameters; -}(platformSDKMethodParameters)); -; -var deleteOrganizationsUserByIdParameters = /** @class */ (function (_super) { - __extends(deleteOrganizationsUserByIdParameters, _super); - function deleteOrganizationsUserByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteOrganizationsUserByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteOrganizationsUserByIdParameters; -}(platformSDKMethodParameters)); -; -var updateOrganizationsUserByIdParameters = /** @class */ (function (_super) { - __extends(updateOrganizationsUserByIdParameters, _super); - function updateOrganizationsUserByIdParameters(superThis, method, path, id, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = body; - return _this; - } - updateOrganizationsUserByIdParameters.prototype.permanent = function (permanent) { - this.queryParameters['permanent'] = permanent; - return this; - }; - updateOrganizationsUserByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateOrganizationsUserByIdParameters; -}(platformSDKMethodParameters)); -; -var createOrganizationAccountParameters = /** @class */ (function (_super) { - __extends(createOrganizationAccountParameters, _super); - function createOrganizationAccountParameters(superThis, method, path, id, account) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = account; - return _this; - } - createOrganizationAccountParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return createOrganizationAccountParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsAccountsParameters = /** @class */ (function (_super) { - __extends(getOrganizationsAccountsParameters, _super); - function getOrganizationsAccountsParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getOrganizationsAccountsParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getOrganizationsAccountsParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getOrganizationsAccountsParameters.prototype.where = function (where) { - this.queryParameters['where'] = where; - return this; - }; - getOrganizationsAccountsParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getOrganizationsAccountsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsAccountsParameters; -}(platformSDKMethodParameters)); -; -var getOrganizationsAccountByAccountIdParameters = /** @class */ (function (_super) { - __extends(getOrganizationsAccountByAccountIdParameters, _super); - function getOrganizationsAccountByAccountIdParameters(superThis, method, path, id, accountId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this.path = _this.path.replace('{accountId}', "" + accountId); - return _this; - } - getOrganizationsAccountByAccountIdParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getOrganizationsAccountByAccountIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getOrganizationsAccountByAccountIdParameters; -}(platformSDKMethodParameters)); -; -var getUsageParameters = /** @class */ (function (_super) { - __extends(getUsageParameters, _super); - function getUsageParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getUsageParameters.prototype.hub = function (hub) { - this.queryParameters['hub'] = hub; - return this; - }; - getUsageParameters.prototype.keys = function (keys) { - this.queryParameters['keys[]'] = keys; - return this; - }; - getUsageParameters.prototype.tags = function (tags) { - this.queryParameters['tags[]'] = tags; - return this; - }; - getUsageParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getUsageParameters.prototype.status = function (status) { - this.queryParameters['status'] = status; - return this; - }; - getUsageParameters.prototype.from = function (from) { - this.queryParameters['from'] = from; - return this; - }; - getUsageParameters.prototype.to = function (to) { - this.queryParameters['to'] = to; - return this; - }; - getUsageParameters.prototype.searchText = function (searchText) { - this.queryParameters['searchText'] = searchText; - return this; - }; - getUsageParameters.prototype.pageOffset = function (pageOffset) { - this.queryParameters['pageOffset'] = pageOffset; - return this; - }; - getUsageParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getUsageParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getUsageParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUsageParameters; -}(platformSDKMethodParameters)); -; -var getUsageAnalyticsActivityParameters = /** @class */ (function (_super) { - __extends(getUsageAnalyticsActivityParameters, _super); - function getUsageAnalyticsActivityParameters(superThis, method, path, from, to) { - var _this = _super.call(this, superThis, method, path) || this; - _this.queryParameters['from'] = from; - _this.queryParameters['to'] = to; - return _this; - } - getUsageAnalyticsActivityParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getUsageAnalyticsActivityParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getUsageAnalyticsActivityParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUsageAnalyticsActivityParameters; -}(platformSDKMethodParameters)); -; -var getUsageAnalyticsActivityElementsParameters = /** @class */ (function (_super) { - __extends(getUsageAnalyticsActivityElementsParameters, _super); - function getUsageAnalyticsActivityElementsParameters(superThis, method, path, from, to) { - var _this = _super.call(this, superThis, method, path) || this; - _this.queryParameters['from'] = from; - _this.queryParameters['to'] = to; - return _this; - } - getUsageAnalyticsActivityElementsParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getUsageAnalyticsActivityElementsParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getUsageAnalyticsActivityElementsParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUsageAnalyticsActivityElementsParameters; -}(platformSDKMethodParameters)); -; -var getUsageAnalyticsStatusesParameters = /** @class */ (function (_super) { - __extends(getUsageAnalyticsStatusesParameters, _super); - function getUsageAnalyticsStatusesParameters(superThis, method, path, from, to) { - var _this = _super.call(this, superThis, method, path) || this; - _this.queryParameters['from'] = from; - _this.queryParameters['to'] = to; - return _this; - } - getUsageAnalyticsStatusesParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getUsageAnalyticsStatusesParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getUsageAnalyticsStatusesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUsageAnalyticsStatusesParameters; -}(platformSDKMethodParameters)); -; -var getUsageAnalyticsTimesParameters = /** @class */ (function (_super) { - __extends(getUsageAnalyticsTimesParameters, _super); - function getUsageAnalyticsTimesParameters(superThis, method, path, from, to) { - var _this = _super.call(this, superThis, method, path) || this; - _this.queryParameters['from'] = from; - _this.queryParameters['to'] = to; - return _this; - } - getUsageAnalyticsTimesParameters.prototype.interval = function (interval) { - this.queryParameters['interval'] = interval; - return this; - }; - getUsageAnalyticsTimesParameters.prototype.accountIds = function (accountIds) { - this.queryParameters['accountIds[]'] = accountIds; - return this; - }; - getUsageAnalyticsTimesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUsageAnalyticsTimesParameters; -}(platformSDKMethodParameters)); -; -var getUsageByIdParameters = /** @class */ (function (_super) { - __extends(getUsageByIdParameters, _super); - function getUsageByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getUsageByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUsageByIdParameters; -}(platformSDKMethodParameters)); -; -var getUsersParameters = /** @class */ (function (_super) { - __extends(getUsersParameters, _super); - function getUsersParameters(superThis, method, path) { - return _super.call(this, superThis, method, path) || this; - } - getUsersParameters.prototype.where = function (where) { - this.queryParameters['where'] = where; - return this; - }; - getUsersParameters.prototype.nextPage = function (nextPage) { - this.queryParameters['nextPage'] = nextPage; - return this; - }; - getUsersParameters.prototype.pageSize = function (pageSize) { - this.queryParameters['pageSize'] = pageSize; - return this; - }; - getUsersParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getUsersParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUsersParameters; -}(platformSDKMethodParameters)); -; -var getUserByEmailOrIdParameters = /** @class */ (function (_super) { - __extends(getUserByEmailOrIdParameters, _super); - function getUserByEmailOrIdParameters(superThis, method, path, emailOrId) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{emailOrId}', "" + emailOrId); - return _this; - } - getUserByEmailOrIdParameters.prototype.elementsUserPassword = function (elementsUserPassword) { - this.headers['Elements-User-Password'] = elementsUserPassword; - return this; - }; - getUserByEmailOrIdParameters.prototype.includeInactive = function (includeInactive) { - this.queryParameters['includeInactive'] = includeInactive; - return this; - }; - getUserByEmailOrIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUserByEmailOrIdParameters; -}(platformSDKMethodParameters)); -; -var deleteUserByIdParameters = /** @class */ (function (_super) { - __extends(deleteUserByIdParameters, _super); - function deleteUserByIdParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - deleteUserByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteUserByIdParameters; -}(platformSDKMethodParameters)); -; -var updateUserByIdParameters = /** @class */ (function (_super) { - __extends(updateUserByIdParameters, _super); - function updateUserByIdParameters(superThis, method, path, id, body) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - _this._body = body; - return _this; - } - updateUserByIdParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return updateUserByIdParameters; -}(platformSDKMethodParameters)); -; -var getUsersRolesParameters = /** @class */ (function (_super) { - __extends(getUsersRolesParameters, _super); - function getUsersRolesParameters(superThis, method, path, id) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{id}', "" + id); - return _this; - } - getUsersRolesParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return getUsersRolesParameters; -}(platformSDKMethodParameters)); -; -var deleteUsersRoleByRoleKeyParameters = /** @class */ (function (_super) { - __extends(deleteUsersRoleByRoleKeyParameters, _super); - function deleteUsersRoleByRoleKeyParameters(superThis, method, path, userId, roleKey) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{userId}', "" + userId); - _this.path = _this.path.replace('{roleKey}', "" + roleKey); - return _this; - } - deleteUsersRoleByRoleKeyParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return deleteUsersRoleByRoleKeyParameters; -}(platformSDKMethodParameters)); -; -var replaceUsersRoleByRoleKeyParameters = /** @class */ (function (_super) { - __extends(replaceUsersRoleByRoleKeyParameters, _super); - function replaceUsersRoleByRoleKeyParameters(superThis, method, path, userId, roleKey) { - var _this = _super.call(this, superThis, method, path) || this; - _this.path = _this.path.replace('{userId}', "" + userId); - _this.path = _this.path.replace('{roleKey}', "" + roleKey); - return _this; - } - replaceUsersRoleByRoleKeyParameters.prototype.run = function () { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(function (r) { return r.body; }); - }; - return replaceUsersRoleByRoleKeyParameters; -}(platformSDKMethodParameters)); -; -/** - * - * @class platformSDK - * @param {(string)} [domainOrOptions] - The project domain. - */ -var platformSDK = /** @class */ (function () { - function platformSDK(baseUrl, authorizationHeader, logger) { - this.domain = "https://console.cloud-elements.com/elements/api-v2"; - this.logger = { - log: function (msg) { return console.log(msg); } - }; - this.errorHandlers = []; - this.authorizationHeader = null; - if (baseUrl) { - this.domain = baseUrl + "/elements/api-v2"; - } - if (logger) { - this.logger = logger; - } - if (authorizationHeader) { - this.authorizationHeader = authorizationHeader; - } - } - platformSDK.prototype.getDomain = function () { - return this.domain; - }; - platformSDK.prototype.addErrorHandler = function (handler) { - this.errorHandlers.push(handler); - }; - platformSDK.prototype.post = function (path, body, headers, queryParameters, form) { - return this.request('POST', path, body, headers, queryParameters, form); - }; - platformSDK.prototype.put = function (path, body, headers, queryParameters, form) { - return this.request('PUT', path, body, headers, queryParameters, form); - }; - platformSDK.prototype.patch = function (path, body, headers, queryParameters, form) { - return this.request('PATCH', path, body, headers, queryParameters, form); - }; - platformSDK.prototype["delete"] = function (path, body, headers, queryParameters, form) { - return this.request('DELETE', path, body, headers, queryParameters, form); - }; - platformSDK.prototype.get = function (path, body, headers, queryParameters, form) { - return this.request('GET', path, body, headers, queryParameters, form); - }; - platformSDK.prototype.request = function (method, path, body, headers, queryParameters, form) { - var _this = this; - return new Promise(function (resolve, reject) { - if (!body) { - body = {}; - } - if (!headers) { - headers = {}; - } - if (!queryParameters) { - queryParameters = {}; - } - if (!form) { - form = {}; - } - if (_this.authorizationHeader && _this.authorizationHeader.length > 0) { - headers.authorization = _this.authorizationHeader; - } - var url = _this.domain + path; - if (_this.logger) { - _this.logger.log("Call " + method + " " + url); - } - var req = request(method, url).query(queryParameters); - Object.keys(headers).forEach(function (key) { - req.set(key, headers[key]); - }); - if (body) { - req.send(body); - } - if (typeof (body) === 'object' && !(body.constructor.name === 'Buffer')) { - req.set('Content-Type', 'application/json'); - } - if (Object.keys(form).length > 0) { - req.type('form'); - req.send(form); - } - req.end(function (error, response) { - if (error || !response.ok) { - reject(error); - _this.errorHandlers.forEach(function (handler) { return handler(error); }); - } - else { - resolve(response); - } - }); - }); - }; - /** - * Retrieve accounts (identified by your organization secret). The provided user secret must be that of the default admin user for the organization. - * @method - * @name platformSDK#getAccounts - */ - platformSDK.prototype.getAccounts = function () { - return new getAccountsParameters(this, 'GET', '/accounts'); - }; - /** - * Create a sub-account (identified by your organization secret). The provided user secret must be that of the default admin user for the organization. - * @method - * @name platformSDK#createAccount - * @param {} body - The account to create

The required fields are:
  • externalId - An external account identifier, typically an email address

Optional fields are:
  • name - The name of the account
  • description - A description of the account

Upon success, the created object will be returned. - */ - platformSDK.prototype.createAccount = function (body) { - return new createAccountParameters(this, 'POST', '/accounts', body); - }; - /** - * Finds all instances for the default users' account - * @method - * @name platformSDK#getAccountsInstances - */ - platformSDK.prototype.getAccountsInstances = function () { - return new getAccountsInstancesParameters(this, 'GET', '/accounts/instances'); - }; - /** - * Delete all object definitions within the default users' account. If no object definitions exist then this will result in an error response. - * @method - * @name platformSDK#deleteAccountsObjectsDefinitions - */ - platformSDK.prototype.deleteAccountsObjectsDefinitions = function () { - return new deleteAccountsObjectsDefinitionsParameters(this, 'DELETE', '/accounts/objects/definitions'); - }; - /** - * Retrieve all of the object definitions within the users' default account. Specifying an object definition that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsObjectsDefinitions - */ - platformSDK.prototype.getAccountsObjectsDefinitions = function () { - return new getAccountsObjectsDefinitionsParameters(this, 'GET', '/accounts/objects/definitions'); - }; - /** - * Create multiple object definitions within this users' default account. The definitions allow you to define what an object looks like within an account. - * @method - * @name platformSDK#createAccountObjectDefinition - * @param {} body - The object definitions to create - */ - platformSDK.prototype.createAccountObjectDefinition = function (body) { - return new createAccountObjectDefinitionParameters(this, 'POST', '/accounts/objects/definitions', body); - }; - /** - * Delete an object definition associated with an objectName within the default users' account. Specifying an object name that does not have an object definition will result in an error response. - * @method - * @name platformSDK#deleteAccountsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.deleteAccountsObjectsObjectNameDefinitions = function (objectName) { - return new deleteAccountsObjectsObjectNameDefinitionsParameters(this, 'DELETE', '/accounts/objects/{objectName}/definitions', objectName); - }; - /** - * Retrieve a specific object definition associated with an objectName within the default users' account. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getAccountsObjectsObjectNameDefinitions = function (objectName) { - return new getAccountsObjectsObjectNameDefinitionsParameters(this, 'GET', '/accounts/objects/{objectName}/definitions', objectName); - }; - /** - * Create a new object definition associated with an objectName within the users' default account. The definitions allow you to define what an object looks like within an account. - * @method - * @name platformSDK#createAccountObjectObjectNameDefinition - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.createAccountObjectObjectNameDefinition = function (objectName, body) { - return new createAccountObjectObjectNameDefinitionParameters(this, 'POST', '/accounts/objects/{objectName}/definitions', objectName, body); - }; - /** - * Update a specific object's definition associated with an objectName within the default users' account. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceAccountsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.replaceAccountsObjectsObjectNameDefinitions = function (objectName, body) { - return new replaceAccountsObjectsObjectNameDefinitionsParameters(this, 'PUT', '/accounts/objects/{objectName}/definitions', objectName, body); - }; - /** - * List formula instances for an account by formula ID - * @method - * @name platformSDK#getAccountsFormulasInstances - * @param {integer} accountId - The account ID - * @param {integer} formulaId - The formula ID - */ - platformSDK.prototype.getAccountsFormulasInstances = function (accountId, formulaId) { - return new getAccountsFormulasInstancesParameters(this, 'GET', '/accounts/{accountId}/formulas/{formulaId}/instances', accountId, formulaId); - }; - /** - * Delete an account by ID. The provided user secret must be that of the default admin user for the organization or customer. WARNING: Deleting an account will delete all users contained within that account along with all of those users' element and formula instances'. - * @method - * @name platformSDK#deleteAccountById - * @param {integer} id - The ID of the account - */ - platformSDK.prototype.deleteAccountById = function (id) { - return new deleteAccountByIdParameters(this, 'DELETE', '/accounts/{id}', id); - }; - /** - * Retrieve an account by ID. The provided user secret must be that of the default admin user for the organization. - * @method - * @name platformSDK#getAccountById - * @param {integer} id - The ID of the account - */ - platformSDK.prototype.getAccountById = function (id) { - return new getAccountByIdParameters(this, 'GET', '/accounts/{id}', id); - }; - /** - * Update an account (identified by your organization secret). The provided user secret must be that of the admin user for the organization. WARNING: If updating the 'active' field to false, the scheduled jobs for all of the account's users will be deleted. - * @method - * @name platformSDK#updateAccountById - * @param {integer} id - The ID of the account - * @param {} body - The updated account information

The fields that can be updated are:
  • externalId - An external account identifier, typically an email address
  • name - The name of the account
  • description - A description of the account

Upon success, the updated object will be returned. - */ - platformSDK.prototype.updateAccountById = function (id, body) { - return new updateAccountByIdParameters(this, 'PATCH', '/accounts/{id}', id, body); - }; - /** - * Replace the data for an account by ID. The provided user secret must be that of the admin user for the organization or customer. WARNING: If updating the 'active' field to false, the scheduled jobs for all of the account's users will be deleted. - * @method - * @name platformSDK#replaceAccountById - * @param {integer} id - The ID of the account - * @param {} body - The updated account information. - */ - platformSDK.prototype.replaceAccountById = function (id, body) { - return new replaceAccountByIdParameters(this, 'PUT', '/accounts/{id}', id, body); - }; - /** - * Delete the default transformation for all elements of a certain type for this account. - * @method - * @name platformSDK#deleteAccountsElementsTransformations - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - */ - platformSDK.prototype.deleteAccountsElementsTransformations = function (id, keyOrId) { - return new deleteAccountsElementsTransformationsParameters(this, 'DELETE', '/accounts/{id}/elements/{keyOrId}/transformations', id, keyOrId); - }; - /** - * Retrieve the default transformation for all elements of a certain type for this account. - * @method - * @name platformSDK#getAccountsElementsTransformations - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - */ - platformSDK.prototype.getAccountsElementsTransformations = function (id, keyOrId) { - return new getAccountsElementsTransformationsParameters(this, 'GET', '/accounts/{id}/elements/{keyOrId}/transformations', id, keyOrId); - }; - /** - * Delete the default transformation for an object for all elements of a certain type for this account. - * @method - * @name platformSDK#deleteAccountsElementsTransformationByObjectName - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The object name - */ - platformSDK.prototype.deleteAccountsElementsTransformationByObjectName = function (id, keyOrId, objectName) { - return new deleteAccountsElementsTransformationByObjectNameParameters(this, 'DELETE', '/accounts/{id}/elements/{keyOrId}/transformations/{objectName}', id, keyOrId, objectName); - }; - /** - * Retrieve the default transformation for an object for all elements of a certain type for this account. - * @method - * @name platformSDK#getAccountsElementsTransformationByObjectName - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getAccountsElementsTransformationByObjectName = function (id, keyOrId, objectName) { - return new getAccountsElementsTransformationByObjectNameParameters(this, 'GET', '/accounts/{id}/elements/{keyOrId}/transformations/{objectName}', id, keyOrId, objectName); - }; - /** - * Create a default transformation for an object for all elements of a certain type for this account. - * @method - * @name platformSDK#createAccountElementTransformationByObjectName - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation - */ - platformSDK.prototype.createAccountElementTransformationByObjectName = function (id, keyOrId, objectName, transformation) { - return new createAccountElementTransformationByObjectNameParameters(this, 'POST', '/accounts/{id}/elements/{keyOrId}/transformations/{objectName}', id, keyOrId, objectName, transformation); - }; - /** - * Update the default transformation for an object for all elements of a certain type for this account. - * @method - * @name platformSDK#replaceAccountsElementsTransformationByObjectName - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation - */ - platformSDK.prototype.replaceAccountsElementsTransformationByObjectName = function (id, keyOrId, objectName, transformation) { - return new replaceAccountsElementsTransformationByObjectNameParameters(this, 'PUT', '/accounts/{id}/elements/{keyOrId}/transformations/{objectName}', id, keyOrId, objectName, transformation); - }; - /** - * Finds all instances for the specified account - * @method - * @name platformSDK#getAccountsInstances2 - * @param {integer} id - The ID of the account - */ - platformSDK.prototype.getAccountsInstances2 = function (id) { - return new getAccountsInstances2Parameters(this, 'GET', '/accounts/{id}/instances', id); - }; - /** - * Delete all object definitions within a specific account. If no object definitions exist then this will result in an error response. - * @method - * @name platformSDK#deleteAccountsObjectsDefinitions2 - * @param {integer} id - The ID of the account - */ - platformSDK.prototype.deleteAccountsObjectsDefinitions2 = function (id) { - return new deleteAccountsObjectsDefinitions2Parameters(this, 'DELETE', '/accounts/{id}/objects/definitions', id); - }; - /** - * Retrieve all of the object definitions within a specific account. If no object definitions exist, then this will result in an error response. - * @method - * @name platformSDK#getAccountsObjectsDefinitions2 - * @param {integer} id - The ID of the account - */ - platformSDK.prototype.getAccountsObjectsDefinitions2 = function (id) { - return new getAccountsObjectsDefinitions2Parameters(this, 'GET', '/accounts/{id}/objects/definitions', id); - }; - /** - * Create multiple object definitions for a specific account. The definitions allow you to define what an object looks like within an account. - * @method - * @name platformSDK#createAccountObjectDefinition2 - * @param {integer} id - The ID of the account - * @param {} body - The object definitions to create - */ - platformSDK.prototype.createAccountObjectDefinition2 = function (id, body) { - return new createAccountObjectDefinition2Parameters(this, 'POST', '/accounts/{id}/objects/definitions', id, body); - }; - /** - * Delete an object definition associated with an objectName for a specific account. Specifying an object name that does not have an object definition will result in an error response. - * @method - * @name platformSDK#deleteAccountsObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the account - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.deleteAccountsObjectsObjectNameDefinitions2 = function (id, objectName) { - return new deleteAccountsObjectsObjectNameDefinitions2Parameters(this, 'DELETE', '/accounts/{id}/objects/{objectName}/definitions', id, objectName); - }; - /** - * Retrieve a specific object definition associated with an objectName within a specific account. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the account - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getAccountsObjectsObjectNameDefinitions2 = function (id, objectName) { - return new getAccountsObjectsObjectNameDefinitions2Parameters(this, 'GET', '/accounts/{id}/objects/{objectName}/definitions', id, objectName); - }; - /** - * Create a new object definition associated with an objectName within a specific account. The definitions allow you to define what an object looks like within an account. - * @method - * @name platformSDK#createAccountObjectObjectNameDefinition2 - * @param {integer} id - The ID of the account - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.createAccountObjectObjectNameDefinition2 = function (id, objectName, body) { - return new createAccountObjectObjectNameDefinition2Parameters(this, 'POST', '/accounts/{id}/objects/{objectName}/definitions', id, objectName, body); - }; - /** - * Update a specific object's definition associated with an objectName within a specific account. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceAccountsObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the account - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.replaceAccountsObjectsObjectNameDefinitions2 = function (id, objectName, body) { - return new replaceAccountsObjectsObjectNameDefinitions2Parameters(this, 'PUT', '/accounts/{id}/objects/{objectName}/definitions', id, objectName, body); - }; - /** - * Find users within an account associated by an ID. Specifying a user within an account associated with a given ID that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsUsers - * @param {integer} id - The ID of the account - */ - platformSDK.prototype.getAccountsUsers = function (id) { - return new getAccountsUsersParameters(this, 'GET', '/accounts/{id}/users', id); - }; - /** - * Create a user within an account associated by an ID. - * @method - * @name platformSDK#createAccountUser - * @param {integer} id - The ID of the account under which the user should be created - * @param {} body - The user to create

The required fields are:
  • email - The user's email address
  • firstName - The user's first name
  • lastName - The user's last name

Upon success, the created object will be returned. - */ - platformSDK.prototype.createAccountUser = function (id, body) { - return new createAccountUserParameters(this, 'POST', '/accounts/{id}/users', id, body); - }; - /** - * Retrieve an account user by name or ID within an account associated by an ID. Specifying a user associated with a given emailOrID or account associated with a given ID that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsUserByEmailOrId - * @param {integer} id - The ID of the account - * @param {string} emailOrId - The email address or numeric ID of the user - */ - platformSDK.prototype.getAccountsUserByEmailOrId = function (id, emailOrId) { - return new getAccountsUserByEmailOrIdParameters(this, 'GET', '/accounts/{id}/users/{emailOrId}', id, emailOrId); - }; - /** - * Update an account user by ID within an account associated by an ID. WARNING: If updating the 'active' field to false, all of the scheduled jobs for the user will be deleted. - * @method - * @name platformSDK#updateAccountsUserByUserId - * @param {integer} id - The ID of the account - * @param {integer} userId - The ID of the user - * @param {} body - The updated user information - */ - platformSDK.prototype.updateAccountsUserByUserId = function (id, userId, body) { - return new updateAccountsUserByUserIdParameters(this, 'PATCH', '/accounts/{id}/users/{userId}', id, userId, body); - }; - /** - * Replace the data for an account user by ID within an account associated by an ID. WARNING: If updating the 'active' field to false, all of the scheduled jobs for the user will be deleted. - * @method - * @name platformSDK#replaceAccountsUserByUserId - * @param {integer} id - The ID of the account - * @param {integer} userId - The ID of the user - * @param {} body - The updated user information - */ - platformSDK.prototype.replaceAccountsUserByUserId = function (id, userId, body) { - return new replaceAccountsUserByUserIdParameters(this, 'PUT', '/accounts/{id}/users/{userId}', id, userId, body); - }; - /** - * Delete an account user by ID within an account associated by an ID. WARNING: this action will irreversibly delete all jobs, and formula and element instances associated with the user. - * @method - * @name platformSDK#deleteAccountsUserByUserId - * @param {integer} id - The ID of the account - * @param {integer} userId - The ID of the user - */ - platformSDK.prototype.deleteAccountsUserByUserId = function (id, userId) { - return new deleteAccountsUserByUserIdParameters(this, 'DELETE', '/accounts/{id}/users/{userId}', id, userId); - }; - /** - * Retrieve a list of logged API requests that identify the request, the user who made the request, the time that they made the request, and more. - * @method - * @name platformSDK#getAuditLogs - */ - platformSDK.prototype.getAuditLogs = function () { - return new getAuditLogsParameters(this, 'GET', '/audit-logs'); - }; - /** - * Retrieve a list of logged authentication API requests. - * @method - * @name platformSDK#getAuditLogsAuthentication - */ - platformSDK.prototype.getAuditLogsAuthentication = function () { - return new getAuditLogsAuthenticationParameters(this, 'GET', '/audit-logs/authentication'); - }; - /** - * Retrieve a list of logged common resource and transformations API requests. - * @method - * @name platformSDK#getAuditLogsCommonResources - */ - platformSDK.prototype.getAuditLogsCommonResources = function () { - return new getAuditLogsCommonResourcesParameters(this, 'GET', '/audit-logs/common-resources'); - }; - /** - * Retrieve a list of logged common resource and transformations API requests by the name of the common resource. - * @method - * @name platformSDK#getAuditLogsCommonResourceByCommonResourceName - */ - platformSDK.prototype.getAuditLogsCommonResourceByCommonResourceName = function () { - return new getAuditLogsCommonResourceByCommonResourceNameParameters(this, 'GET', '/audit-logs/common-resources/{commonResourceName}'); - }; - /** - * Retrieve a list of logged element instance API requests. - * @method - * @name platformSDK#getAuditLogsElementInstances - */ - platformSDK.prototype.getAuditLogsElementInstances = function () { - return new getAuditLogsElementInstancesParameters(this, 'GET', '/audit-logs/element-instances'); - }; - /** - * Retrieve a list of logged element instance API requests by element instance ID. - * @method - * @name platformSDK#getAuditLogsElementInstanceByElementInstanceId - */ - platformSDK.prototype.getAuditLogsElementInstanceByElementInstanceId = function () { - return new getAuditLogsElementInstanceByElementInstanceIdParameters(this, 'GET', '/audit-logs/element-instances/{elementInstanceId}'); - }; - /** - * Retrieve a list of logged element API requests. Requests include element creation and element extension requests. - * @method - * @name platformSDK#getAuditLogsElements - */ - platformSDK.prototype.getAuditLogsElements = function () { - return new getAuditLogsElementsParameters(this, 'GET', '/audit-logs/elements'); - }; - /** - * Retrieve a list of logged element API requests by element ID. - * @method - * @name platformSDK#getAuditLogsElementByElementId - */ - platformSDK.prototype.getAuditLogsElementByElementId = function () { - return new getAuditLogsElementByElementIdParameters(this, 'GET', '/audit-logs/elements/{elementId}'); - }; - /** - * Retrieve a list of logged formula instance API requests. - * @method - * @name platformSDK#getAuditLogsFormulaInstances - */ - platformSDK.prototype.getAuditLogsFormulaInstances = function () { - return new getAuditLogsFormulaInstancesParameters(this, 'GET', '/audit-logs/formula-instances'); - }; - /** - * Retrieve a list of logged formula template API requests. - * @method - * @name platformSDK#getAuditLogsFormulas - */ - platformSDK.prototype.getAuditLogsFormulas = function () { - return new getAuditLogsFormulasParameters(this, 'GET', '/audit-logs/formulas'); - }; - /** - * Retrieve a list of logged formula template API requests by the Entity ID associated with the object affected. Entity IDs include step ids, trigger ids, and configuration ids. - * @method - * @name platformSDK#getAuditLogsFormulaByEntityId - */ - platformSDK.prototype.getAuditLogsFormulaByEntityId = function () { - return new getAuditLogsFormulaByEntityIdParameters(this, 'GET', '/audit-logs/formulas/{entityId}'); - }; - /** - * Reset the user's password. - * @method - * @name platformSDK#createAuthenticationPassword - * @param {} passwordReset - The new password. - */ - platformSDK.prototype.createAuthenticationPassword = function (passwordReset) { - return new createAuthenticationPasswordParameters(this, 'POST', '/authentication/passwords', passwordReset); - }; - /** - * Create a new identity provider within a customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#createCustomerIdentityProvider - * @param {} identityProvider - The identity provider data - */ - platformSDK.prototype.createCustomerIdentityProvider = function (identityProvider) { - return new createCustomerIdentityProviderParameters(this, 'POST', '/customers/identity-providers', identityProvider); - }; - /** - * Get all of the identity providers within a customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#getCustomersIdentityProviders - */ - platformSDK.prototype.getCustomersIdentityProviders = function () { - return new getCustomersIdentityProvidersParameters(this, 'GET', '/customers/identity-providers'); - }; - /** - * Get a specific identity provider within a customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#getCustomersIdentityProviderById - * @param {string} id - The ID of the identity provider record - */ - platformSDK.prototype.getCustomersIdentityProviderById = function (id) { - return new getCustomersIdentityProviderByIdParameters(this, 'GET', '/customers/identity-providers/{id}', id); - }; - /** - * Delete an identity provider within a customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#deleteCustomersIdentityProviderById - * @param {string} id - The ID of the identity provider record - */ - platformSDK.prototype.deleteCustomersIdentityProviderById = function (id) { - return new deleteCustomersIdentityProviderByIdParameters(this, 'DELETE', '/customers/identity-providers/{id}', id); - }; - /** - * Get details of the current user's customer. - * @method - * @name platformSDK#getCustomersMe - */ - platformSDK.prototype.getCustomersMe = function () { - return new getCustomersMeParameters(this, 'GET', '/customers/me'); - }; - /** - * Get all of the organizations for the current user's customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#getCustomersOrganizations - */ - platformSDK.prototype.getCustomersOrganizations = function () { - return new getCustomersOrganizationsParameters(this, 'GET', '/customers/organizations'); - }; - /** - * Get a specific organization within the current user's customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#getCustomersOrganizationById - * @param {integer} id - The ID of the organization - */ - platformSDK.prototype.getCustomersOrganizationById = function (id) { - return new getCustomersOrganizationByIdParameters(this, 'GET', '/customers/organizations/{id}', id); - }; - /** - * Delete a specific organization within the current user's customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#deleteCustomersOrganizationById - * @param {integer} id - The ID of the organization - */ - platformSDK.prototype.deleteCustomersOrganizationById = function (id) { - return new deleteCustomersOrganizationByIdParameters(this, 'DELETE', '/customers/organizations/{id}', id); - }; - /** - * Create a new user within a customer. The organization and account will also be created, if existing IDs are not provided. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#createCustomerSignup - * @param {} customerSignup - The customer sign up data - */ - platformSDK.prototype.createCustomerSignup = function (customerSignup) { - return new createCustomerSignupParameters(this, 'POST', '/customers/signup', customerSignup); - }; - /** - * Create a new element. - * @method - * @name platformSDK#createElement - * @param {} element - The element - */ - platformSDK.prototype.createElement = function (element) { - return new createElementParameters(this, 'POST', '/elements', element); - }; - /** - * Retrieve all available elements keys. - * @method - * @name platformSDK#getElementsKeys - */ - platformSDK.prototype.getElementsKeys = function () { - return new getElementsKeysParameters(this, 'GET', '/elements/keys'); - }; - /** - * Swagger 2.0 schema for the element. - * @method - * @name platformSDK#getElementsDocs - * @param {string} id - The ID of the element - */ - platformSDK.prototype.getElementsDocs = function (id) { - return new getElementsDocsParameters(this, 'GET', '/elements/{id}/docs', id); - }; - /** - * Retrieve the metadata for the specified element. - * @method - * @name platformSDK#getElementsMetadata - * @param {integer} id - The element ID - */ - platformSDK.prototype.getElementsMetadata = function (id) { - return new getElementsMetadataParameters(this, 'GET', '/elements/{id}/metadata', id); - }; - /** - * Delete an element. - * @method - * @name platformSDK#deleteElementByKeyOrId - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - platformSDK.prototype.deleteElementByKeyOrId = function (keyOrId) { - return new deleteElementByKeyOrIdParameters(this, 'DELETE', '/elements/{keyOrId}', keyOrId); - }; - /** - * Update an element associated with an element key. - * @method - * @name platformSDK#replaceElementByKeyOrId - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {} element - The element - */ - platformSDK.prototype.replaceElementByKeyOrId = function (keyOrId, element) { - return new replaceElementByKeyOrIdParameters(this, 'PUT', '/elements/{keyOrId}', keyOrId, element); - }; - /** - * De-activate an element, which will remove it from your elements catalog. - * @method - * @name platformSDK#deleteElementsActive - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - platformSDK.prototype.deleteElementsActive = function (keyOrId) { - return new deleteElementsActiveParameters(this, 'DELETE', '/elements/{keyOrId}/active', keyOrId); - }; - /** - * Activate an element to publish it in your elements catalog. - * @method - * @name platformSDK#replaceElementsActive - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - platformSDK.prototype.replaceElementsActive = function (keyOrId) { - return new replaceElementsActiveParameters(this, 'PUT', '/elements/{keyOrId}/active', keyOrId); - }; - /** - * Clone an element - * @method - * @name platformSDK#createElementClone - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - platformSDK.prototype.createElementClone = function (keyOrId) { - return new createElementCloneParameters(this, 'POST', '/elements/{keyOrId}/clone', keyOrId); - }; - /** - * Retrieve a specific element configuration associated with an element key. Specifying an element associated with an element key that does not exist results in an error response. - * @method - * @name platformSDK#getElementsConfiguration - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - platformSDK.prototype.getElementsConfiguration = function (keyOrId) { - return new getElementsConfigurationParameters(this, 'GET', '/elements/{keyOrId}/configuration', keyOrId); - }; - /** - * Create a new configuration value for an element - * @method - * @name platformSDK#createElementConfiguration - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {} configuration - The configuration to create - */ - platformSDK.prototype.createElementConfiguration = function (keyOrId, configuration) { - return new createElementConfigurationParameters(this, 'POST', '/elements/{keyOrId}/configuration', keyOrId, configuration); - }; - /** - * Delete a configuration value for an element - * @method - * @name platformSDK#deleteElementsConfigurationByConfigurationKey - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {string} configurationKey - The configuration key - */ - platformSDK.prototype.deleteElementsConfigurationByConfigurationKey = function (keyOrId, configurationKey) { - return new deleteElementsConfigurationByConfigurationKeyParameters(this, 'DELETE', '/elements/{keyOrId}/configuration/{configurationKey}', keyOrId, configurationKey); - }; - /** - * Update an existing configuration value for an element - * @method - * @name platformSDK#replaceElementsConfigurationByConfigurationKey - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {string} configurationKey - The configuration key - * @param {} configuration - The configuration object - */ - platformSDK.prototype.replaceElementsConfigurationByConfigurationKey = function (keyOrId, configurationKey, configuration) { - return new replaceElementsConfigurationByConfigurationKeyParameters(this, 'PUT', '/elements/{keyOrId}/configuration/{configurationKey}', keyOrId, configurationKey, configuration); - }; - /** - * Downloads a specific element JSON data in a file associated with an element key. Specifying an element associated with an element key that does not exist results in an error response. - * @method - * @name platformSDK#getElementsExport - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - platformSDK.prototype.getElementsExport = function (keyOrId) { - return new getElementsExportParameters(this, 'GET', '/elements/{keyOrId}/export', keyOrId); - }; - /** - * Retrieve the hooks that exists for a element - * @method - * @name platformSDK#getElementsHooks - * @param {string} keyOrId - The element key - */ - platformSDK.prototype.getElementsHooks = function (keyOrId) { - return new getElementsHooksParameters(this, 'GET', '/elements/{keyOrId}/hooks', keyOrId); - }; - /** - * Create a new hook for a element - * @method - * @name platformSDK#createElementHook - * @param {string} keyOrId - The element key - * @param {} model - The element Hook - */ - platformSDK.prototype.createElementHook = function (keyOrId, model) { - return new createElementHookParameters(this, 'POST', '/elements/{keyOrId}/hooks', keyOrId, model); - }; - /** - * Get an existing hook for an custom element - * @method - * @name platformSDK#getElementsHookByHookId - * @param {string} keyOrId - The element key - * @param {string} hookId - The Hook ID - */ - platformSDK.prototype.getElementsHookByHookId = function (keyOrId, hookId) { - return new getElementsHookByHookIdParameters(this, 'GET', '/elements/{keyOrId}/hooks/{hookId}', keyOrId, hookId); - }; - /** - * Delete one of the hooks for a element - * @method - * @name platformSDK#deleteElementsHookByHookId - * @param {string} keyOrId - The element key - * @param {string} hookId - The hook ID - */ - platformSDK.prototype.deleteElementsHookByHookId = function (keyOrId, hookId) { - return new deleteElementsHookByHookIdParameters(this, 'DELETE', '/elements/{keyOrId}/hooks/{hookId}', keyOrId, hookId); - }; - /** - * Update an existing Hook for an element - * @method - * @name platformSDK#replaceElementsHookByHookId - * @param {string} keyOrId - The element key - * @param {string} hookId - The hook ID - * @param {} parameter - The hook - */ - platformSDK.prototype.replaceElementsHookByHookId = function (keyOrId, hookId, parameter) { - return new replaceElementsHookByHookIdParameters(this, 'PUT', '/elements/{keyOrId}/hooks/{hookId}', keyOrId, hookId, parameter); - }; - /** - * Retrieve all element instances from a specified path. The instances go through Cloud Elements to your console. Specifying an instance that does not exist results in an error response. - * @method - * @name platformSDK#getElementsInstances - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - platformSDK.prototype.getElementsInstances = function (keyOrId) { - return new getElementsInstancesParameters(this, 'GET', '/elements/{keyOrId}/instances', keyOrId); - }; - /** - * Create a new element instance in your console. Instance creation will flow through Cloud Elements to your console. - * @method - * @name platformSDK#createElementInstance - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {} elementInstance - The element instance to create - */ - platformSDK.prototype.createElementInstance = function (keyOrId, elementInstance) { - return new createElementInstanceParameters(this, 'POST', '/elements/{keyOrId}/instances', keyOrId, elementInstance); - }; - /** - * Delete an instance associated with a given ID from your console. Specifying an instance associated with a given ID that does not exist will result in an error message. - * @method - * @name platformSDK#deleteElementsInstanceById - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.deleteElementsInstanceById = function (keyOrId, id) { - return new deleteElementsInstanceByIdParameters(this, 'DELETE', '/elements/{keyOrId}/instances/{id}', keyOrId, id); - }; - /** - * Retrieve an element instance associated with a given ID from a specified path. The instance goes through Cloud Elements to your console. Specifying an instance with an associated ID that does not exist results in an error response. - * @method - * @name platformSDK#getElementsInstanceById - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.getElementsInstanceById = function (keyOrId, id) { - return new getElementsInstanceByIdParameters(this, 'GET', '/elements/{keyOrId}/instances/{id}', keyOrId, id); - }; - /** - * Update an instance associated with a given ID from your console. Specifying an instance associated with an ID that does not exist will result in an error message. - * @method - * @name platformSDK#replaceElementsInstanceById - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {integer} id - The ID of the element instance - * @param {} elementInstance - The fields of the element instance to update - */ - platformSDK.prototype.replaceElementsInstanceById = function (keyOrId, id, elementInstance) { - return new replaceElementsInstanceByIdParameters(this, 'PUT', '/elements/{keyOrId}/instances/{id}', keyOrId, id, elementInstance); - }; - /** - * Retrieve the OAuth 1 request token. Not applicable with OAuth 2 Elements. - * @method - * @name platformSDK#getElementsOauthToken - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {string} apiKey - The OAuth API key - * @param {string} apiSecret - The OAuth API secret - * @param {string} callbackUrl - The OAuth callback URL - */ - platformSDK.prototype.getElementsOauthToken = function (keyOrId, apiKey, apiSecret, callbackUrl) { - return new getElementsOauthTokenParameters(this, 'GET', '/elements/{keyOrId}/oauth/token', keyOrId, apiKey, apiSecret, callbackUrl); - }; - /** - * Retrieve the OAuth 2 redirect URL associated with the specified element. Specifying an element key associated with an element that does not exist results in an error response. - * @method - * @name platformSDK#getElementsOauthUrl - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {string} apiKey - The OAuth API key - * @param {string} apiSecret - The OAuth API secret (note: For HubSpot, this is the Portal ID.) - * @param {string} callbackUrl - The OAuth callback URL - */ - platformSDK.prototype.getElementsOauthUrl = function (keyOrId, apiKey, apiSecret, callbackUrl) { - return new getElementsOauthUrlParameters(this, 'GET', '/elements/{keyOrId}/oauth/url', keyOrId, apiKey, apiSecret, callbackUrl); - }; - /** - * Retrieve the OAuth 2 redirect URL associated with the specified element. Specifying an element key associated with an element that does not exist results in an error response. - * @method - * @name platformSDK#createElementOauthUrl - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {} oauthInfo - The data for generating the OAuth redirect URL - */ - platformSDK.prototype.createElementOauthUrl = function (keyOrId, oauthInfo) { - return new createElementOauthUrlParameters(this, 'POST', '/elements/{keyOrId}/oauth/url', keyOrId, oauthInfo); - }; - /** - * Retrieve all of the objects that exist for a custom element - * @method - * @name platformSDK#getElementsObjects - * @param {string} keyOrId - The element key - */ - platformSDK.prototype.getElementsObjects = function (keyOrId) { - return new getElementsObjectsParameters(this, 'GET', '/elements/{keyOrId}/objects', keyOrId); - }; - /** - * Create a new object for a element - * @method - * @name platformSDK#createElementObject - * @param {string} keyOrId - The element key - * @param {} object - The Object - */ - platformSDK.prototype.createElementObject = function (keyOrId, object) { - return new createElementObjectParameters(this, 'POST', '/elements/{keyOrId}/objects', keyOrId, object); - }; - /** - * Delete a object for a custom element - * @method - * @name platformSDK#deleteElementsObjectById - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - */ - platformSDK.prototype.deleteElementsObjectById = function (keyOrId, id) { - return new deleteElementsObjectByIdParameters(this, 'DELETE', '/elements/{keyOrId}/objects/{id}', keyOrId, id); - }; - /** - * Update an existing object for an element - * @method - * @name platformSDK#replaceElementsObjectById - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {} object - The Object - */ - platformSDK.prototype.replaceElementsObjectById = function (keyOrId, id, object) { - return new replaceElementsObjectByIdParameters(this, 'PUT', '/elements/{keyOrId}/objects/{id}', keyOrId, id, object); - }; - /** - * Get an existing object for an element - * @method - * @name platformSDK#getElementsObjectById - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - */ - platformSDK.prototype.getElementsObjectById = function (keyOrId, id) { - return new getElementsObjectByIdParameters(this, 'GET', '/elements/{keyOrId}/objects/{id}', keyOrId, id); - }; - /** - * Create a Field for an element Object - * @method - * @name platformSDK#createElementObjectField - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {} field - The Field - */ - platformSDK.prototype.createElementObjectField = function (keyOrId, id, field) { - return new createElementObjectFieldParameters(this, 'POST', '/elements/{keyOrId}/objects/{id}/fields', keyOrId, id, field); - }; - /** - * Retrieve all of the fields that exist for a element object - * @method - * @name platformSDK#getElementsObjectsFields - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - */ - platformSDK.prototype.getElementsObjectsFields = function (keyOrId, id) { - return new getElementsObjectsFieldsParameters(this, 'GET', '/elements/{keyOrId}/objects/{id}/fields', keyOrId, id); - }; - /** - * Delete a field for an element object - * @method - * @name platformSDK#deleteElementsObjectsFieldByFieldId - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {string} fieldId - The Field Id - */ - platformSDK.prototype.deleteElementsObjectsFieldByFieldId = function (keyOrId, id, fieldId) { - return new deleteElementsObjectsFieldByFieldIdParameters(this, 'DELETE', '/elements/{keyOrId}/objects/{id}/fields/{fieldId}', keyOrId, id, fieldId); - }; - /** - * Update an existing field for an element object - * @method - * @name platformSDK#replaceElementsObjectsFieldByFieldId - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {string} fieldId - The Field Id - * @param {} object - The Field - */ - platformSDK.prototype.replaceElementsObjectsFieldByFieldId = function (keyOrId, id, fieldId, object) { - return new replaceElementsObjectsFieldByFieldIdParameters(this, 'PUT', '/elements/{keyOrId}/objects/{id}/fields/{fieldId}', keyOrId, id, fieldId, object); - }; - /** - * Get an existing field for an element object - * @method - * @name platformSDK#getElementsObjectsFieldByFieldId - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {string} fieldId - The Field Id - */ - platformSDK.prototype.getElementsObjectsFieldByFieldId = function (keyOrId, id, fieldId) { - return new getElementsObjectsFieldByFieldIdParameters(this, 'GET', '/elements/{keyOrId}/objects/{id}/fields/{fieldId}', keyOrId, id, fieldId); - }; - /** - * Retrieve all of the default parameters for an element - * @method - * @name platformSDK#getElementsParameters - * @param {string} keyOrId - The element key - */ - platformSDK.prototype.getElementsParameters = function (keyOrId) { - return new getElementsParametersParameters(this, 'GET', '/elements/{keyOrId}/parameters', keyOrId); - }; - /** - * Create a new default parameter for an element - * @method - * @name platformSDK#createElementParameter - * @param {string} keyOrId - The element key - * @param {} parameter - The default parameter - */ - platformSDK.prototype.createElementParameter = function (keyOrId, parameter) { - return new createElementParameterParameters(this, 'POST', '/elements/{keyOrId}/parameters', keyOrId, parameter); - }; - /** - * Delete a default parameter for an element - * @method - * @name platformSDK#deleteElementsParameterById - * @param {string} keyOrId - The element key - * @param {string} id - The ID of the parameter - * @param {} parameter - The default parameter - */ - platformSDK.prototype.deleteElementsParameterById = function (keyOrId, id, parameter) { - return new deleteElementsParameterByIdParameters(this, 'DELETE', '/elements/{keyOrId}/parameters/{id}', keyOrId, id, parameter); - }; - /** - * Update a default parameter for an element - * @method - * @name platformSDK#replaceElementsParameterById - * @param {string} keyOrId - The element key - * @param {string} id - The ID of the parameter - * @param {} parameter - The default parameter - */ - platformSDK.prototype.replaceElementsParameterById = function (keyOrId, id, parameter) { - return new replaceElementsParameterByIdParameters(this, 'PUT', '/elements/{keyOrId}/parameters/{id}', keyOrId, id, parameter); - }; - /** - * Retrieve all of the resources that exist for a custom element - * @method - * @name platformSDK#getElementsResources - * @param {string} keyOrId - The element key - */ - platformSDK.prototype.getElementsResources = function (keyOrId) { - return new getElementsResourcesParameters(this, 'GET', '/elements/{keyOrId}/resources', keyOrId); - }; - /** - * Create a new resource for a custom element - * @method - * @name platformSDK#createElementResource - * @param {string} keyOrId - The element key - * @param {} resource - The resource - */ - platformSDK.prototype.createElementResource = function (keyOrId, resource) { - return new createElementResourceParameters(this, 'POST', '/elements/{keyOrId}/resources', keyOrId, resource); - }; - /** - * Delete a resource for a custom element - * @method - * @name platformSDK#deleteElementsResourceById - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - platformSDK.prototype.deleteElementsResourceById = function (keyOrId, id) { - return new deleteElementsResourceByIdParameters(this, 'DELETE', '/elements/{keyOrId}/resources/{id}', keyOrId, id); - }; - /** - * Update an existing resource for an element - * @method - * @name platformSDK#replaceElementsResourceById - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {} resource - The resource - */ - platformSDK.prototype.replaceElementsResourceById = function (keyOrId, id, resource) { - return new replaceElementsResourceByIdParameters(this, 'PUT', '/elements/{keyOrId}/resources/{id}', keyOrId, id, resource); - }; - /** - * Get an existing resource for an element - * @method - * @name platformSDK#getElementsResourceById - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - platformSDK.prototype.getElementsResourceById = function (keyOrId, id) { - return new getElementsResourceByIdParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}', keyOrId, id); - }; - /** - * Retrieve the hooks that exists for a custom element's resource - * @method - * @name platformSDK#getElementsResourcesHooks - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - platformSDK.prototype.getElementsResourcesHooks = function (keyOrId, id) { - return new getElementsResourcesHooksParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}/hooks', keyOrId, id); - }; - /** - * Create a new hook for a custom element's resource - * @method - * @name platformSDK#createElementResourceHook - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {} model - The resource Hook - */ - platformSDK.prototype.createElementResourceHook = function (keyOrId, id, model) { - return new createElementResourceHookParameters(this, 'POST', '/elements/{keyOrId}/resources/{id}/hooks', keyOrId, id, model); - }; - /** - * Get an existing hook for an custom element's resource - * @method - * @name platformSDK#getElementsResourcesHookByHookId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} hookId - The Hook ID - */ - platformSDK.prototype.getElementsResourcesHookByHookId = function (keyOrId, id, hookId) { - return new getElementsResourcesHookByHookIdParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}/hooks/{hookId}', keyOrId, id, hookId); - }; - /** - * Delete one of the hooks for a custom element's resource - * @method - * @name platformSDK#deleteElementsResourcesHookByHookId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} hookId - The hook ID - */ - platformSDK.prototype.deleteElementsResourcesHookByHookId = function (keyOrId, id, hookId) { - return new deleteElementsResourcesHookByHookIdParameters(this, 'DELETE', '/elements/{keyOrId}/resources/{id}/hooks/{hookId}', keyOrId, id, hookId); - }; - /** - * Update an existing Hook for an element's resource - * @method - * @name platformSDK#replaceElementsResourcesHookByHookId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} hookId - The hook ID - * @param {} parameter - The hook - */ - platformSDK.prototype.replaceElementsResourcesHookByHookId = function (keyOrId, id, hookId, parameter) { - return new replaceElementsResourcesHookByHookIdParameters(this, 'PUT', '/elements/{keyOrId}/resources/{id}/hooks/{hookId}', keyOrId, id, hookId, parameter); - }; - /** - * Delete the model for this custom element's resource - * @method - * @name platformSDK#deleteElementsResourcesModels - * @param {string} keyOrId - The element key - * @param {integer} id - The resource ID - */ - platformSDK.prototype.deleteElementsResourcesModels = function (keyOrId, id) { - return new deleteElementsResourcesModelsParameters(this, 'DELETE', '/elements/{keyOrId}/resources/{id}/models', keyOrId, id); - }; - /** - * Retrieve the models that exists for a custom element's resource - * @method - * @name platformSDK#getElementsResourcesModels - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - platformSDK.prototype.getElementsResourcesModels = function (keyOrId, id) { - return new getElementsResourcesModelsParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}/models', keyOrId, id); - }; - /** - * Create a new model for a custom element's resource - * @method - * @name platformSDK#createElementResourceModel - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {} model - The model - */ - platformSDK.prototype.createElementResourceModel = function (keyOrId, id, model) { - return new createElementResourceModelParameters(this, 'POST', '/elements/{keyOrId}/resources/{id}/models', keyOrId, id, model); - }; - /** - * Retrieve all of the parameters for a resource - * @method - * @name platformSDK#getElementsResourcesParameters - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - platformSDK.prototype.getElementsResourcesParameters = function (keyOrId, id) { - return new getElementsResourcesParametersParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}/parameters', keyOrId, id); - }; - /** - * Create a new parameter for a custom element's resource - * @method - * @name platformSDK#createElementResourceParameter - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {} parameter - The parameter - */ - platformSDK.prototype.createElementResourceParameter = function (keyOrId, id, parameter) { - return new createElementResourceParameterParameters(this, 'POST', '/elements/{keyOrId}/resources/{id}/parameters', keyOrId, id, parameter); - }; - /** - * Delete one of the parameters for a custom element's resource - * @method - * @name platformSDK#deleteElementsResourcesParameterByParameterId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} parameterId - The parameter ID - */ - platformSDK.prototype.deleteElementsResourcesParameterByParameterId = function (keyOrId, id, parameterId) { - return new deleteElementsResourcesParameterByParameterIdParameters(this, 'DELETE', '/elements/{keyOrId}/resources/{id}/parameters/{parameterId}', keyOrId, id, parameterId); - }; - /** - * Update an existing parameters for an element's resource - * @method - * @name platformSDK#replaceElementsResourcesParameterByParameterId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} parameterId - The parameter ID - * @param {} parameter - The parameter - */ - platformSDK.prototype.replaceElementsResourcesParameterByParameterId = function (keyOrId, id, parameterId, parameter) { - return new replaceElementsResourcesParameterByParameterIdParameters(this, 'PUT', '/elements/{keyOrId}/resources/{id}/parameters/{parameterId}', keyOrId, id, parameterId, parameter); - }; - /** - * Retrieve a list of all formula templates. - * @method - * @name platformSDK#getFormulas - */ - platformSDK.prototype.getFormulas = function () { - return new getFormulasParameters(this, 'GET', '/formulas'); - }; - /** - * Create a new formula template. - * @method - * @name platformSDK#createFormula - * @param {} body - The formula template. - */ - platformSDK.prototype.createFormula = function (body) { - return new createFormulaParameters(this, 'POST', '/formulas', body); - }; - /** - * Retrieve the number of formula executions within a given date/time range - * @method - * @name platformSDK#getFormulasAnalytics - */ - platformSDK.prototype.getFormulasAnalytics = function () { - return new getFormulasAnalyticsParameters(this, 'GET', '/formulas/analytics'); - }; - /** - * Retrieve the status analytics of formula step executions within a given date/time range, aggregated by account ID. This API is really only useful for organization admins where more than one account exists. - * @method - * @name platformSDK#getFormulasAnalyticsAccounts - */ - platformSDK.prototype.getFormulasAnalyticsAccounts = function () { - return new getFormulasAnalyticsAccountsParameters(this, 'GET', '/formulas/analytics/accounts'); - }; - /** - * Retrieve the status analytics of formula step executions within a given date/time range, aggregated by formula instance ID. - * @method - * @name platformSDK#getFormulasAnalyticsInstances - */ - platformSDK.prototype.getFormulasAnalyticsInstances = function () { - return new getFormulasAnalyticsInstancesParameters(this, 'GET', '/formulas/analytics/instances'); - }; - /** - * Retrieve the status analytics of formula executions within a given date/time range - * @method - * @name platformSDK#getFormulasAnalyticsStatuses - */ - platformSDK.prototype.getFormulasAnalyticsStatuses = function () { - return new getFormulasAnalyticsStatusesParameters(this, 'GET', '/formulas/analytics/statuses'); - }; - /** - * Retrieve the current status counts of formula executions. If any executions are in a 'retry' status, a list of those execution IDs will be returned, along with the retry attempt that will be executed next. - * @method - * @name platformSDK#getFormulasAnalyticsStatusesNow - */ - platformSDK.prototype.getFormulasAnalyticsStatusesNow = function () { - return new getFormulasAnalyticsStatusesNowParameters(this, 'GET', '/formulas/analytics/statuses/now'); - }; - /** - * Retrieve the analytics (execution time, execution delay, etc.) of formula step executions within a given date/time range - * @method - * @name platformSDK#getFormulasAnalyticsSteps - */ - platformSDK.prototype.getFormulasAnalyticsSteps = function () { - return new getFormulasAnalyticsStepsParameters(this, 'GET', '/formulas/analytics/steps'); - }; - /** - * Retrieve all instances of all formula templates. - * @method - * @name platformSDK#getFormulasInstances - */ - platformSDK.prototype.getFormulasInstances = function () { - return new getFormulasInstancesParameters(this, 'GET', '/formulas/instances'); - }; - /** - * Retrieve all step execution values for a formula step execution. - * @method - * @name platformSDK#getFormulasInstancesExecutionsStepsValues - * @param {integer} stepExecutionId - The ID of the step execution. - */ - platformSDK.prototype.getFormulasInstancesExecutionsStepsValues = function (stepExecutionId) { - return new getFormulasInstancesExecutionsStepsValuesParameters(this, 'GET', '/formulas/instances/executions/steps/{stepExecutionId}/values', stepExecutionId); - }; - /** - * Retrieve a formula instance executions. - * @method - * @name platformSDK#getFormulasInstancesExecutionByExecutionId - * @param {integer} executionId - The ID of the formula instance execution. - */ - platformSDK.prototype.getFormulasInstancesExecutionByExecutionId = function (executionId) { - return new getFormulasInstancesExecutionByExecutionIdParameters(this, 'GET', '/formulas/instances/executions/{executionId}', executionId); - }; - /** - * Cancel a formula instance execution - * @method - * @name platformSDK#updateFormulasInstancesExecutionByExecutionId - * @param {integer} executionId - The ID of the formula instance execution. - * @param {} status - The change in status you want to effect, currently only 'cancel' is supported - */ - platformSDK.prototype.updateFormulasInstancesExecutionByExecutionId = function (executionId, status) { - return new updateFormulasInstancesExecutionByExecutionIdParameters(this, 'PATCH', '/formulas/instances/executions/{executionId}', executionId, status); - }; - /** - * Retrieve all step execution errors for a formula execution. - * @method - * @name platformSDK#getFormulasInstancesExecutionsErrors - * @param {integer} executionId - The ID of the execution. - */ - platformSDK.prototype.getFormulasInstancesExecutionsErrors = function (executionId) { - return new getFormulasInstancesExecutionsErrorsParameters(this, 'GET', '/formulas/instances/executions/{executionId}/errors', executionId); - }; - /** - * Retrieve all step executions for a formula execution. - * @method - * @name platformSDK#getFormulasInstancesExecutionsSteps - * @param {integer} executionId - The ID of the execution. - */ - platformSDK.prototype.getFormulasInstancesExecutionsSteps = function (executionId) { - return new getFormulasInstancesExecutionsStepsParameters(this, 'GET', '/formulas/instances/executions/{executionId}/steps', executionId); - }; - /** - * Retrieve a formula instance. - * @method - * @name platformSDK#getFormulasInstanceByInstanceId - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.getFormulasInstanceByInstanceId = function (instanceId) { - return new getFormulasInstanceByInstanceIdParameters(this, 'GET', '/formulas/instances/{instanceId}', instanceId); - }; - /** - * Retrieve all executions for a formula instance. - * @method - * @name platformSDK#getFormulasInstancesExecutions - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.getFormulasInstancesExecutions = function (instanceId) { - return new getFormulasInstancesExecutionsParameters(this, 'GET', '/formulas/instances/{instanceId}/executions', instanceId); - }; - /** - * Manually kickoff a formula instance from the given JSON trigger payload - * @method - * @name platformSDK#createFormulaInstanceExecution - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.createFormulaInstanceExecution = function (instanceId) { - return new createFormulaInstanceExecutionParameters(this, 'POST', '/formulas/instances/{instanceId}/executions', instanceId); - }; - /** - * Retrieve all executions that have a step execution error, for a formula instance. - * @method - * @name platformSDK#getFormulasInstancesExecutionsErrors2 - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.getFormulasInstancesExecutionsErrors2 = function (instanceId) { - return new getFormulasInstancesExecutionsErrors2Parameters(this, 'GET', '/formulas/instances/{instanceId}/executions/errors', instanceId); - }; - /** - * Retrieve all executions with a step execution error for all formula instances of a formula. - * @method - * @name platformSDK#getFormulasInstancesExecutionsErrors2_1 - * @param {integer} formulaId - The ID of the formula. - */ - platformSDK.prototype.getFormulasInstancesExecutionsErrors2_1 = function (formulaId) { - return new getFormulasInstancesExecutionsErrors2_1Parameters(this, 'GET', '/formulas/{formulaId}/instances/executions/errors', formulaId); - }; - /** - * Delete a specific formula template. - * @method - * @name platformSDK#deleteFormulaById - * @param {integer} id - The ID of the formula template. - */ - platformSDK.prototype.deleteFormulaById = function (id) { - return new deleteFormulaByIdParameters(this, 'DELETE', '/formulas/{id}', id); - }; - /** - * Retrieve a specific formula template. - * @method - * @name platformSDK#getFormulaById - * @param {integer} id - The ID of the formula template. - */ - platformSDK.prototype.getFormulaById = function (id) { - return new getFormulaByIdParameters(this, 'GET', '/formulas/{id}', id); - }; - /** - * Replace a specific formula template with the provided template. - * @method - * @name platformSDK#replaceFormulaById - * @param {integer} id - The ID of the formula template. - * @param {} formula - The formula template. - */ - platformSDK.prototype.replaceFormulaById = function (id, formula) { - return new replaceFormulaByIdParameters(this, 'PUT', '/formulas/{id}', id, formula); - }; - /** - * Partially update a formula template's metadata. - * @method - * @name platformSDK#updateFormulaById - * @param {integer} id - The ID of the formula template. - * @param {} formula - The formula template. - */ - platformSDK.prototype.updateFormulaById = function (id, formula) { - return new updateFormulaByIdParameters(this, 'PATCH', '/formulas/{id}', id, formula); - }; - /** - * Create a new formula configuration. - * @method - * @name platformSDK#createFormulaConfiguration - * @param {integer} id - The ID of the formula template. - * @param {} configuration - The formula configuration. - */ - platformSDK.prototype.createFormulaConfiguration = function (id, configuration) { - return new createFormulaConfigurationParameters(this, 'POST', '/formulas/{id}/configuration', id, configuration); - }; - /** - * Delete a formula configuration. - * @method - * @name platformSDK#deleteFormulasConfigurationByConfigurationId - * @param {integer} id - The ID of the formula template. - * @param {integer} configurationId - The ID of the formula configuration. - */ - platformSDK.prototype.deleteFormulasConfigurationByConfigurationId = function (id, configurationId) { - return new deleteFormulasConfigurationByConfigurationIdParameters(this, 'DELETE', '/formulas/{id}/configuration/{configurationId}', id, configurationId); - }; - /** - * Retrieve a formula configuration. - * @method - * @name platformSDK#getFormulasConfigurationByConfigurationId - * @param {integer} id - The ID of the formula template. - * @param {integer} configurationId - The ID of the formula configuration. - */ - platformSDK.prototype.getFormulasConfigurationByConfigurationId = function (id, configurationId) { - return new getFormulasConfigurationByConfigurationIdParameters(this, 'GET', '/formulas/{id}/configuration/{configurationId}', id, configurationId); - }; - /** - * Update a formula configuration. - * @method - * @name platformSDK#replaceFormulasConfigurationByConfigurationId - * @param {integer} id - The ID of the formula template. - * @param {integer} configurationId - The ID of the formula configuration. - * @param {} configuration - The formula configuration. - */ - platformSDK.prototype.replaceFormulasConfigurationByConfigurationId = function (id, configurationId, configuration) { - return new replaceFormulasConfigurationByConfigurationIdParameters(this, 'PUT', '/formulas/{id}/configuration/{configurationId}', id, configurationId, configuration); - }; - /** - * Export a formula template as a JSON file. - * @method - * @name platformSDK#getFormulasExport - * @param {integer} id - The ID of the formula template. - */ - platformSDK.prototype.getFormulasExport = function (id) { - return new getFormulasExportParameters(this, 'GET', '/formulas/{id}/export', id); - }; - /** - * Retrieve a list of all instances associated with a particular formula template. - * @method - * @name platformSDK#getFormulasInstances2 - * @param {integer} id - The ID of the formula template. - */ - platformSDK.prototype.getFormulasInstances2 = function (id) { - return new getFormulasInstances2Parameters(this, 'GET', '/formulas/{id}/instances', id); - }; - /** - * Create an instance of a formula template. - * @method - * @name platformSDK#createFormulaInstance - * @param {integer} id - The ID of the formula template. - * @param {} formulaInstance - The formula instance. - */ - platformSDK.prototype.createFormulaInstance = function (id, formulaInstance) { - return new createFormulaInstanceParameters(this, 'POST', '/formulas/{id}/instances', id, formulaInstance); - }; - /** - * Delete a specific formula instance of a specific formula template. - * @method - * @name platformSDK#deleteFormulasInstanceByInstanceId - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.deleteFormulasInstanceByInstanceId = function (id, instanceId) { - return new deleteFormulasInstanceByInstanceIdParameters(this, 'DELETE', '/formulas/{id}/instances/{instanceId}', id, instanceId); - }; - /** - * Retrieve a specific instance of a specific formula template. - * @method - * @name platformSDK#getFormulasInstanceByInstanceId2 - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.getFormulasInstanceByInstanceId2 = function (id, instanceId) { - return new getFormulasInstanceByInstanceId2Parameters(this, 'GET', '/formulas/{id}/instances/{instanceId}', id, instanceId); - }; - /** - * Replace a specific formula instance of a specific formula template with the provided instance. - * @method - * @name platformSDK#replaceFormulasInstanceByInstanceId - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - * @param {} formulaInstance - The formula instance. - */ - platformSDK.prototype.replaceFormulasInstanceByInstanceId = function (id, instanceId, formulaInstance) { - return new replaceFormulasInstanceByInstanceIdParameters(this, 'PUT', '/formulas/{id}/instances/{instanceId}', id, instanceId, formulaInstance); - }; - /** - * Activate a formula instance. - * @method - * @name platformSDK#replaceFormulasInstancesActive - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.replaceFormulasInstancesActive = function (id, instanceId) { - return new replaceFormulasInstancesActiveParameters(this, 'PUT', '/formulas/{id}/instances/{instanceId}/active', id, instanceId); - }; - /** - * Deactivate a formula instance. - * @method - * @name platformSDK#deleteFormulasInstancesActive - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.deleteFormulasInstancesActive = function (id, instanceId) { - return new deleteFormulasInstancesActiveParameters(this, 'DELETE', '/formulas/{id}/instances/{instanceId}/active', id, instanceId); - }; - /** - * Retrieve the executions of a specific formula instance of a specific formula template. - * @method - * @name platformSDK#getFormulasInstancesExecutions2 - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - platformSDK.prototype.getFormulasInstancesExecutions2 = function (id, instanceId) { - return new getFormulasInstancesExecutions2Parameters(this, 'GET', '/formulas/{id}/instances/{instanceId}/executions', id, instanceId); - }; - /** - * Retrieve all formula steps. - * @method - * @name platformSDK#getFormulasSteps - * @param {integer} id - The ID of the formula template. - */ - platformSDK.prototype.getFormulasSteps = function (id) { - return new getFormulasStepsParameters(this, 'GET', '/formulas/{id}/steps', id); - }; - /** - * Create a new formula step. - * @method - * @name platformSDK#createFormulaStep - * @param {integer} id - The ID of the formula template. - * @param {} step - The formula step. - */ - platformSDK.prototype.createFormulaStep = function (id, step) { - return new createFormulaStepParameters(this, 'POST', '/formulas/{id}/steps', id, step); - }; - /** - * Delete a formula step. - * @method - * @name platformSDK#deleteFormulasStepByStepId - * @param {integer} id - The ID of the formula template. - * @param {integer} stepId - The ID of the formula step. - */ - platformSDK.prototype.deleteFormulasStepByStepId = function (id, stepId) { - return new deleteFormulasStepByStepIdParameters(this, 'DELETE', '/formulas/{id}/steps/{stepId}', id, stepId); - }; - /** - * Retrieve a formula step. - * @method - * @name platformSDK#getFormulasStepByStepId - * @param {integer} id - The ID of the formula template. - * @param {integer} stepId - The ID of the formula step. - */ - platformSDK.prototype.getFormulasStepByStepId = function (id, stepId) { - return new getFormulasStepByStepIdParameters(this, 'GET', '/formulas/{id}/steps/{stepId}', id, stepId); - }; - /** - * Update a formula step. - * @method - * @name platformSDK#replaceFormulasStepByStepId - * @param {integer} id - The ID of the formula template. - * @param {integer} stepId - The ID of the formula step. - * @param {} step - The formula step. - */ - platformSDK.prototype.replaceFormulasStepByStepId = function (id, stepId, step) { - return new replaceFormulasStepByStepIdParameters(this, 'PUT', '/formulas/{id}/steps/{stepId}', id, stepId, step); - }; - /** - * Create a new formula trigger. - * @method - * @name platformSDK#createFormulaTrigger - * @param {integer} id - The ID of the formula template. - * @param {} trigger - The formula trigger. - */ - platformSDK.prototype.createFormulaTrigger = function (id, trigger) { - return new createFormulaTriggerParameters(this, 'POST', '/formulas/{id}/triggers', id, trigger); - }; - /** - * Delete a formula trigger. - * @method - * @name platformSDK#deleteFormulasTriggerByTriggerId - * @param {integer} id - The ID of the formula template. - * @param {integer} triggerId - The ID of the formula trigger. - */ - platformSDK.prototype.deleteFormulasTriggerByTriggerId = function (id, triggerId) { - return new deleteFormulasTriggerByTriggerIdParameters(this, 'DELETE', '/formulas/{id}/triggers/{triggerId}', id, triggerId); - }; - /** - * Retrieve a formula trigger. - * @method - * @name platformSDK#getFormulasTriggerByTriggerId - * @param {integer} id - The ID of the formula template. - * @param {integer} triggerId - The ID of the formula trigger. - */ - platformSDK.prototype.getFormulasTriggerByTriggerId = function (id, triggerId) { - return new getFormulasTriggerByTriggerIdParameters(this, 'GET', '/formulas/{id}/triggers/{triggerId}', id, triggerId); - }; - /** - * Update a formula trigger. - * @method - * @name platformSDK#replaceFormulasTriggerByTriggerId - * @param {integer} id - The ID of the formula template. - * @param {integer} triggerId - The ID of the formula trigger. - * @param {} trigger - The formula trigger. - */ - platformSDK.prototype.replaceFormulasTriggerByTriggerId = function (id, triggerId, trigger) { - return new replaceFormulasTriggerByTriggerIdParameters(this, 'PUT', '/formulas/{id}/triggers/{triggerId}', id, triggerId, trigger); - }; - /** - * Retrieve all available element hubs. - * @method - * @name platformSDK#getHubs - */ - platformSDK.prototype.getHubs = function () { - return new getHubsParameters(this, 'GET', '/hubs'); - }; - /** - * Create a new hub. - * @method - * @name platformSDK#createHub - * @param {} hub - The hub - */ - platformSDK.prototype.createHub = function (hub) { - return new createHubParameters(this, 'POST', '/hubs', hub); - }; - /** - * Retrieve all available element hub keys. - * @method - * @name platformSDK#getHubsKeys - */ - platformSDK.prototype.getHubsKeys = function () { - return new getHubsKeysParameters(this, 'GET', '/hubs/keys'); - }; - /** - * Delete a hub. - * @method - * @name platformSDK#deleteHubByKey - * @param {string} key - The elements hub key (i.e. 'documents', 'crm', etc.) - */ - platformSDK.prototype.deleteHubByKey = function (key) { - return new deleteHubByKeyParameters(this, 'DELETE', '/hubs/{key}', key); - }; - /** - * Retrieve the details about a specific hub. - * @method - * @name platformSDK#getHubByKey - * @param {string} key - The elements hub key (i.e. 'documents', 'crm', etc.) - */ - platformSDK.prototype.getHubByKey = function (key) { - return new getHubByKeyParameters(this, 'GET', '/hubs/{key}', key); - }; - /** - * Retrieve all available elements for a specific hub. - * @method - * @name platformSDK#getHubsElements - * @param {string} key - The elements hub key (i.e. 'documents', 'crm', etc.) - */ - platformSDK.prototype.getHubsElements = function (key) { - return new getHubsElementsParameters(this, 'GET', '/hubs/{key}/elements', key); - }; - /** - * Retrieve all element instances from a specified path. The instances go through Cloud Elements to your console. Specifying an instance that does not exist results in an error response. - * @method - * @name platformSDK#getInstances - */ - platformSDK.prototype.getInstances = function () { - return new getInstancesParameters(this, 'GET', '/instances'); - }; - /** - * Create a new element instance in your console. Instance creation will flow through Cloud Elements to your console. - * @method - * @name platformSDK#createInstance - * @param {} elementInstance - The element instance to create - */ - platformSDK.prototype.createInstance = function (elementInstance) { - return new createInstanceParameters(this, 'POST', '/instances', elementInstance); - }; - /** - * Delete an instance associated with an instance token in authorization header. Specifying an instance associated with a given token that does not exist will result in an error message. - * @method - * @name platformSDK#deleteInstances - */ - platformSDK.prototype.deleteInstances = function () { - return new deleteInstancesParameters(this, 'DELETE', '/instances'); - }; - /** - * Update an instance associated with a given token in authorization header. Specifying an instance associated with an token that does not exist will result in an error message. - * @method - * @name platformSDK#replaceInstances - * @param {} elementInstance - The fields of the element instance to update - */ - platformSDK.prototype.replaceInstances = function (elementInstance) { - return new replaceInstancesParameters(this, 'PUT', '/instances', elementInstance); - }; - /** - * Update an instance partially associated with a given token in authorization header. Specifying an instance associated with an token that does not exist will result in an error message. - * @method - * @name platformSDK#updateInstances - * @param {} elementInstance - The fields of the element instance to update - */ - platformSDK.prototype.updateInstances = function (elementInstance) { - return new updateInstancesParameters(this, 'PATCH', '/instances', elementInstance); - }; - /** - * Retrieve configuration for an element instance with an associated token in authorization header - * @method - * @name platformSDK#getInstancesConfiguration - */ - platformSDK.prototype.getInstancesConfiguration = function () { - return new getInstancesConfigurationParameters(this, 'GET', '/instances/configuration'); - }; - /** - * Retrieve configuration for an element instance with an associated token in authorization header - * @method - * @name platformSDK#getInstancesConfigurationByConfigId - * @param {integer} configId - The ID of the element instance config - */ - platformSDK.prototype.getInstancesConfigurationByConfigId = function (configId) { - return new getInstancesConfigurationByConfigIdParameters(this, 'GET', '/instances/configuration/{configId}', configId); - }; - /** - * Update configuration for an element instance with an associated token in authorization header - * @method - * @name platformSDK#updateInstancesConfigurationByConfigId - * @param {integer} configId - The ID of the element instance config - * @param {} config - The updated element instance config - */ - platformSDK.prototype.updateInstancesConfigurationByConfigId = function (configId, config) { - return new updateInstancesConfigurationByConfigIdParameters(this, 'PATCH', '/instances/configuration/{configId}', configId, config); - }; - /** - * Retrieve an instance specific swagger documentation with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesDocs - */ - platformSDK.prototype.getInstancesDocs = function () { - return new getInstancesDocsParameters(this, 'GET', '/instances/docs'); - }; - /** - * Retrieve an instance specific swagger documentation for an operation with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesDocByOperationId - * @param {string} operationId - The id of the operation for which swagger docs is returned - */ - platformSDK.prototype.getInstancesDocByOperationId = function (operationId) { - return new getInstancesDocByOperationIdParameters(this, 'GET', '/instances/docs/{operationId}', operationId); - }; - /** - * Retrieve an definitionation for an operation id with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesDocsDefinitions - * @param {string} operationId - The id of the operation for which swagger docs is returned - */ - platformSDK.prototype.getInstancesDocsDefinitions = function (operationId) { - return new getInstancesDocsDefinitionsParameters(this, 'GET', '/instances/docs/{operationId}/definitions', operationId); - }; - /** - * Enable an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#replaceInstancesEnabled - */ - platformSDK.prototype.replaceInstancesEnabled = function () { - return new replaceInstancesEnabledParameters(this, 'PUT', '/instances/enabled'); - }; - /** - * Disable an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#deleteInstancesEnabled - */ - platformSDK.prototype.deleteInstancesEnabled = function () { - return new deleteInstancesEnabledParameters(this, 'DELETE', '/instances/enabled'); - }; - /** - * Retrieve events for all element instances or for an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesEvents - */ - platformSDK.prototype.getInstancesEvents = function () { - return new getInstancesEventsParameters(this, 'GET', '/instances/events'); - }; - /** - * Retrieve the number of events within a given date/time range for all element instances within the specified account(s). - * @method - * @name platformSDK#getInstancesEventsAnalytics - */ - platformSDK.prototype.getInstancesEventsAnalytics = function () { - return new getInstancesEventsAnalyticsParameters(this, 'GET', '/instances/events/analytics'); - }; - /** - * Retrieve the number of events within a given date/time range, aggregated by account ID. This API is really only useful for organization admins where more than one account exists. - * @method - * @name platformSDK#getInstancesEventsAnalyticsAccounts - */ - platformSDK.prototype.getInstancesEventsAnalyticsAccounts = function () { - return new getInstancesEventsAnalyticsAccountsParameters(this, 'GET', '/instances/events/analytics/accounts'); - }; - /** - * Retrieve the number of events within a given date/time range, aggregated by element instance ID. - * @method - * @name platformSDK#getInstancesEventsAnalyticsInstances - */ - platformSDK.prototype.getInstancesEventsAnalyticsInstances = function () { - return new getInstancesEventsAnalyticsInstancesParameters(this, 'GET', '/instances/events/analytics/instances'); - }; - /** - * Retrieve events for all element instances or for an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesEventsDispositions - */ - platformSDK.prototype.getInstancesEventsDispositions = function () { - return new getInstancesEventsDispositionsParameters(this, 'GET', '/instances/events/dispositions'); - }; - /** - * Retrieve an event for all element instances or for an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesEventByEventId - * @param {integer} eventId - The ID of the event - */ - platformSDK.prototype.getInstancesEventByEventId = function (eventId) { - return new getInstancesEventByEventIdParameters(this, 'GET', '/instances/events/{eventId}', eventId); - }; - /** - * Retrieve all of the object definitions within a specific instance with an associated instance token in authorization header. If no object definitions exist, then this will result in an error response. - * @method - * @name platformSDK#getInstancesObjectsDefinitions - */ - platformSDK.prototype.getInstancesObjectsDefinitions = function () { - return new getInstancesObjectsDefinitionsParameters(this, 'GET', '/instances/objects/definitions'); - }; - /** - * Delete an object definition associated with an objectName for a specific instance with an associated instance token in authorization header. Specifying an object name that does not have an object definition will result in an error response. - * @method - * @name platformSDK#deleteInstancesObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.deleteInstancesObjectsObjectNameDefinitions = function (objectName) { - return new deleteInstancesObjectsObjectNameDefinitionsParameters(this, 'DELETE', '/instances/objects/{objectName}/definitions', objectName); - }; - /** - * Retrieve a specific object definition associated with an objectName within a specific instance with an associated instance token in authorization header. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#getInstancesObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getInstancesObjectsObjectNameDefinitions = function (objectName) { - return new getInstancesObjectsObjectNameDefinitionsParameters(this, 'GET', '/instances/objects/{objectName}/definitions', objectName); - }; - /** - * Create a new object definition associated with an objectName within a specific instance with an associated instance token in authorization header. The definitions allow you to define what an object looks like within an instance. - * @method - * @name platformSDK#createInstanceObjectObjectNameDefinition - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.createInstanceObjectObjectNameDefinition = function (objectName, body) { - return new createInstanceObjectObjectNameDefinitionParameters(this, 'POST', '/instances/objects/{objectName}/definitions', objectName, body); - }; - /** - * Update a specific object's definition associated with an objectName within a specific instance with an associated instance token in authorization header. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceInstancesObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.replaceInstancesObjectsObjectNameDefinitions = function (objectName, body) { - return new replaceInstancesObjectsObjectNameDefinitionsParameters(this, 'PUT', '/instances/objects/{objectName}/definitions', objectName, body); - }; - /** - * Temporarily enable trace-level usage logging for an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#replaceInstancesTraceLogging - */ - platformSDK.prototype.replaceInstancesTraceLogging = function () { - return new replaceInstancesTraceLoggingParameters(this, 'PUT', '/instances/trace-logging'); - }; - /** - * Disable trace-level usage logging for an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#deleteInstancesTraceLogging - */ - platformSDK.prototype.deleteInstancesTraceLogging = function () { - return new deleteInstancesTraceLoggingParameters(this, 'DELETE', '/instances/trace-logging'); - }; - /** - * Delete the transformation for an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#deleteInstancesTransformations - */ - platformSDK.prototype.deleteInstancesTransformations = function () { - return new deleteInstancesTransformationsParameters(this, 'DELETE', '/instances/transformations'); - }; - /** - * Retrieve an element instance transformation with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesTransformations - */ - platformSDK.prototype.getInstancesTransformations = function () { - return new getInstancesTransformationsParameters(this, 'GET', '/instances/transformations'); - }; - /** - * Delete the transformation for an element instance for a specific object with an associated instance token in authorization header - * @method - * @name platformSDK#deleteInstancesTransformationByObjectName - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.deleteInstancesTransformationByObjectName = function (objectName) { - return new deleteInstancesTransformationByObjectNameParameters(this, 'DELETE', '/instances/transformations/{objectName}', objectName); - }; - /** - * Retrieve an element instance transformation for a specific object with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesTransformationByObjectName - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getInstancesTransformationByObjectName = function (objectName) { - return new getInstancesTransformationByObjectNameParameters(this, 'GET', '/instances/transformations/{objectName}', objectName); - }; - /** - * Create a transformation for an element instance for a specific object - * @method - * @name platformSDK#createInstanceTransformationByObjectName - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation to create - */ - platformSDK.prototype.createInstanceTransformationByObjectName = function (objectName, transformation) { - return new createInstanceTransformationByObjectNameParameters(this, 'POST', '/instances/transformations/{objectName}', objectName, transformation); - }; - /** - * Update the transformation for an element instance for a specific object with an associated instance token in authorization header - * @method - * @name platformSDK#replaceInstancesTransformationByObjectName - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation to update - */ - platformSDK.prototype.replaceInstancesTransformationByObjectName = function (objectName, transformation) { - return new replaceInstancesTransformationByObjectNameParameters(this, 'PUT', '/instances/transformations/{objectName}', objectName, transformation); - }; - /** - * Delete an instance associated with a given ID from your console. Specifying an instance associated with a given ID that does not exist will result in an error message. - * @method - * @name platformSDK#deleteInstanceById - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.deleteInstanceById = function (id) { - return new deleteInstanceByIdParameters(this, 'DELETE', '/instances/{id}', id); - }; - /** - * Retrieve an element instance associated with a given ID from a specified path. The instance goes through Cloud Elements to your console. Specifying an instance with an associated ID that does not exist results in an error response. - * @method - * @name platformSDK#getInstanceById - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.getInstanceById = function (id) { - return new getInstanceByIdParameters(this, 'GET', '/instances/{id}', id); - }; - /** - * Update an instance associated with a given ID from your console. Specifying an instance associated with an ID that does not exist will result in an error message. - * @method - * @name platformSDK#replaceInstanceById - * @param {integer} id - The ID of the element instance - * @param {} elementInstance - The fields of the element instance to update - */ - platformSDK.prototype.replaceInstanceById = function (id, elementInstance) { - return new replaceInstanceByIdParameters(this, 'PUT', '/instances/{id}', id, elementInstance); - }; - /** - * Update an instance partially associated with a given ID from your console. Specifying an instance associated with an ID that does not exist will result in an error message. - * @method - * @name platformSDK#updateInstanceById - * @param {integer} id - The ID of the element instance - * @param {} elementInstance - The fields of the element instance to update - */ - platformSDK.prototype.updateInstanceById = function (id, elementInstance) { - return new updateInstanceByIdParameters(this, 'PATCH', '/instances/{id}', id, elementInstance); - }; - /** - * Retrieve configuration for an element instance - * @method - * @name platformSDK#getInstancesConfiguration2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.getInstancesConfiguration2 = function (id) { - return new getInstancesConfiguration2Parameters(this, 'GET', '/instances/{id}/configuration', id); - }; - /** - * Retrieve configuration for an element instance - * @method - * @name platformSDK#getInstancesConfigurationByConfigId2 - * @param {integer} id - The ID of the element instance - * @param {integer} configId - The ID of the element instance config - */ - platformSDK.prototype.getInstancesConfigurationByConfigId2 = function (id, configId) { - return new getInstancesConfigurationByConfigId2Parameters(this, 'GET', '/instances/{id}/configuration/{configId}', id, configId); - }; - /** - * Update configuration for an element instance - * @method - * @name platformSDK#updateInstancesConfigurationByConfigId2 - * @param {integer} id - The ID of the element instance - * @param {integer} configId - The ID of the element instance config - * @param {} config - The updated element instance config - */ - platformSDK.prototype.updateInstancesConfigurationByConfigId2 = function (id, configId, config) { - return new updateInstancesConfigurationByConfigId2Parameters(this, 'PATCH', '/instances/{id}/configuration/{configId}', id, configId, config); - }; - /** - * Retrieve an instance specific swagger documentation - * @method - * @name platformSDK#getInstancesDocs2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.getInstancesDocs2 = function (id) { - return new getInstancesDocs2Parameters(this, 'GET', '/instances/{id}/docs', id); - }; - /** - * Retrieve an instance specific swagger documentation - * @method - * @name platformSDK#getInstancesDocByOperationId2 - * @param {integer} id - The ID of the element instance - * @param {string} operationId - The id of the operation for which swagger docs is returned - */ - platformSDK.prototype.getInstancesDocByOperationId2 = function (id, operationId) { - return new getInstancesDocByOperationId2Parameters(this, 'GET', '/instances/{id}/docs/{operationId}', id, operationId); - }; - /** - * Retrieve an instance specific swagger documentation - * @method - * @name platformSDK#getInstancesDocsDefinitions2 - * @param {integer} id - The ID of the element instance - * @param {string} operationId - The id of the operation for which swagger docs is returned - */ - platformSDK.prototype.getInstancesDocsDefinitions2 = function (id, operationId) { - return new getInstancesDocsDefinitions2Parameters(this, 'GET', '/instances/{id}/docs/{operationId}/definitions', id, operationId); - }; - /** - * Enable an element instance - * @method - * @name platformSDK#replaceInstancesEnabled2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.replaceInstancesEnabled2 = function (id) { - return new replaceInstancesEnabled2Parameters(this, 'PUT', '/instances/{id}/enabled', id); - }; - /** - * Disable an element instance - * @method - * @name platformSDK#deleteInstancesEnabled2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.deleteInstancesEnabled2 = function (id) { - return new deleteInstancesEnabled2Parameters(this, 'DELETE', '/instances/{id}/enabled', id); - }; - /** - * Retrieve events for an element instance - * @method - * @name platformSDK#getInstancesEvents2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.getInstancesEvents2 = function (id) { - return new getInstancesEvents2Parameters(this, 'GET', '/instances/{id}/events', id); - }; - /** - * Retrieve an event for an element instance - * @method - * @name platformSDK#getInstancesEventByEventId2 - * @param {integer} id - The ID of the element instance - * @param {integer} eventId - The ID of the event - */ - platformSDK.prototype.getInstancesEventByEventId2 = function (id, eventId) { - return new getInstancesEventByEventId2Parameters(this, 'GET', '/instances/{id}/events/{eventId}', id, eventId); - }; - /** - * Retrieve all of the object definitions within a specific instance. If no object definitions exist, then this will result in an error response. - * @method - * @name platformSDK#getInstancesObjectsDefinitions2 - * @param {integer} id - The ID of the instance - */ - platformSDK.prototype.getInstancesObjectsDefinitions2 = function (id) { - return new getInstancesObjectsDefinitions2Parameters(this, 'GET', '/instances/{id}/objects/definitions', id); - }; - /** - * Delete an object definition associated with an objectName for a specific instance. Specifying an object name that does not have an object definition will result in an error response. - * @method - * @name platformSDK#deleteInstancesObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the instance - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.deleteInstancesObjectsObjectNameDefinitions2 = function (id, objectName) { - return new deleteInstancesObjectsObjectNameDefinitions2Parameters(this, 'DELETE', '/instances/{id}/objects/{objectName}/definitions', id, objectName); - }; - /** - * Retrieve a specific object definition associated with an objectName within a specific instance. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#getInstancesObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the instance - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getInstancesObjectsObjectNameDefinitions2 = function (id, objectName) { - return new getInstancesObjectsObjectNameDefinitions2Parameters(this, 'GET', '/instances/{id}/objects/{objectName}/definitions', id, objectName); - }; - /** - * Create a new object definition associated with an objectName within a specific instance. The definitions allow you to define what an object looks like within an instance. - * @method - * @name platformSDK#createInstanceObjectObjectNameDefinition2 - * @param {integer} id - The ID of the instance - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.createInstanceObjectObjectNameDefinition2 = function (id, objectName, body) { - return new createInstanceObjectObjectNameDefinition2Parameters(this, 'POST', '/instances/{id}/objects/{objectName}/definitions', id, objectName, body); - }; - /** - * Update a specific object's definition associated with an objectName within a specific instance. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceInstancesObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the instance - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.replaceInstancesObjectsObjectNameDefinitions2 = function (id, objectName, body) { - return new replaceInstancesObjectsObjectNameDefinitions2Parameters(this, 'PUT', '/instances/{id}/objects/{objectName}/definitions', id, objectName, body); - }; - /** - * Temporarily enable trace-level usage logging for an element instance - * @method - * @name platformSDK#replaceInstancesTraceLogging2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.replaceInstancesTraceLogging2 = function (id) { - return new replaceInstancesTraceLogging2Parameters(this, 'PUT', '/instances/{id}/trace-logging', id); - }; - /** - * Disable trace-level usage logging for an element instance - * @method - * @name platformSDK#deleteInstancesTraceLogging2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.deleteInstancesTraceLogging2 = function (id) { - return new deleteInstancesTraceLogging2Parameters(this, 'DELETE', '/instances/{id}/trace-logging', id); - }; - /** - * Delete the transformation for an element instance - * @method - * @name platformSDK#deleteInstancesTransformations2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.deleteInstancesTransformations2 = function (id) { - return new deleteInstancesTransformations2Parameters(this, 'DELETE', '/instances/{id}/transformations', id); - }; - /** - * Retrieve an element instance transformation - * @method - * @name platformSDK#getInstancesTransformations2 - * @param {integer} id - The ID of the element instance - */ - platformSDK.prototype.getInstancesTransformations2 = function (id) { - return new getInstancesTransformations2Parameters(this, 'GET', '/instances/{id}/transformations', id); - }; - /** - * Delete the transformation for an element instance for a specific object - * @method - * @name platformSDK#deleteInstancesTransformationByObjectName2 - * @param {integer} id - The ID of the element instance - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.deleteInstancesTransformationByObjectName2 = function (id, objectName) { - return new deleteInstancesTransformationByObjectName2Parameters(this, 'DELETE', '/instances/{id}/transformations/{objectName}', id, objectName); - }; - /** - * Retrieve an element instance transformation for a specific object - * @method - * @name platformSDK#getInstancesTransformationByObjectName2 - * @param {integer} id - The ID of the element instance - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getInstancesTransformationByObjectName2 = function (id, objectName) { - return new getInstancesTransformationByObjectName2Parameters(this, 'GET', '/instances/{id}/transformations/{objectName}', id, objectName); - }; - /** - * Create a transformation for an element instance for a specific object - * @method - * @name platformSDK#createInstanceTransformationByObjectName2 - * @param {integer} id - The ID of the element instance - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation to create - */ - platformSDK.prototype.createInstanceTransformationByObjectName2 = function (id, objectName, transformation) { - return new createInstanceTransformationByObjectName2Parameters(this, 'POST', '/instances/{id}/transformations/{objectName}', id, objectName, transformation); - }; - /** - * Update the transformation for an element instance for a specific object - * @method - * @name platformSDK#replaceInstancesTransformationByObjectName2 - * @param {integer} id - The ID of the element instance - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation to update - */ - platformSDK.prototype.replaceInstancesTransformationByObjectName2 = function (id, objectName, transformation) { - return new replaceInstancesTransformationByObjectName2Parameters(this, 'PUT', '/instances/{id}/transformations/{objectName}', id, objectName, transformation); - }; - /** - * Get a list of all configured jobs. - * @method - * @name platformSDK#getJobs - */ - platformSDK.prototype.getJobs = function () { - return new getJobsParameters(this, 'GET', '/jobs'); - }; - /** - * Create a new job. - * @method - * @name platformSDK#createJob - */ - platformSDK.prototype.createJob = function () { - return new createJobParameters(this, 'POST', '/jobs'); - }; - /** - * Get a list of the previous job executions. - * @method - * @name platformSDK#getJobsExecutions - */ - platformSDK.prototype.getJobsExecutions = function () { - return new getJobsExecutionsParameters(this, 'GET', '/jobs/executions'); - }; - /** - * Delete a specific job. - * @method - * @name platformSDK#deleteJobById - * @param {string} id - The ID of the job. - */ - platformSDK.prototype.deleteJobById = function (id) { - return new deleteJobByIdParameters(this, 'DELETE', '/jobs/{id}', id); - }; - /** - * Get information about a specific job. - * @method - * @name platformSDK#getJobById - * @param {string} id - The ID of the job. - */ - platformSDK.prototype.getJobById = function (id) { - return new getJobByIdParameters(this, 'GET', '/jobs/{id}', id); - }; - /** - * Disable a job. - * @method - * @name platformSDK#replaceJobsDisable - * @param {string} id - The ID of the job. - */ - platformSDK.prototype.replaceJobsDisable = function (id) { - return new replaceJobsDisableParameters(this, 'PUT', '/jobs/{id}/disable', id); - }; - /** - * Enable a job. - * @method - * @name platformSDK#replaceJobsEnable - * @param {string} id - The ID of the job. - */ - platformSDK.prototype.replaceJobsEnable = function (id) { - return new replaceJobsEnableParameters(this, 'PUT', '/jobs/{id}/enable', id); - }; - /** - * Get a list of history records for a specific job. - * @method - * @name platformSDK#getJobsHistory - * @param {string} id - The ID of the job. - */ - platformSDK.prototype.getJobsHistory = function (id) { - return new getJobsHistoryParameters(this, 'GET', '/jobs/{id}/history', id); - }; - /** - * Get a specific history record for a specific job. - * @method - * @name platformSDK#getJobsHistoryByHistoryId - * @param {string} id - The ID of the job. - * @param {integer} historyId - The ID of the History record. - */ - platformSDK.prototype.getJobsHistoryByHistoryId = function (id, historyId) { - return new getJobsHistoryByHistoryIdParameters(this, 'GET', '/jobs/{id}/history/{historyId}', id, historyId); - }; - /** - * Update a job's CRON string and reschedule it. - * @method - * @name platformSDK#updateJobsReschedule - * @param {string} id - The ID of the job. - */ - platformSDK.prototype.updateJobsReschedule = function (id) { - return new updateJobsRescheduleParameters(this, 'PATCH', '/jobs/{id}/reschedule', id); - }; - /** - * Retrieve the API metrics for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsApi - */ - platformSDK.prototype.getMetricsApi = function () { - return new getMetricsApiParameters(this, 'GET', '/metrics/api'); - }; - /** - * Retrieve the metrics of number of bulk jobs executed for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsBulkJobs - */ - platformSDK.prototype.getMetricsBulkJobs = function () { - return new getMetricsBulkJobsParameters(this, 'GET', '/metrics/bulk-jobs'); - }; - /** - * Retrieve the element instance creation API metrics for the accounts provided, split up by element key. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsElementInstancesCreated - */ - platformSDK.prototype.getMetricsElementInstancesCreated = function () { - return new getMetricsElementInstancesCreatedParameters(this, 'GET', '/metrics/element-instances-created'); - }; - /** - * Retrieve the metrics of number of custom elements created for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsElementsCreated - */ - platformSDK.prototype.getMetricsElementsCreated = function () { - return new getMetricsElementsCreatedParameters(this, 'GET', '/metrics/elements-created'); - }; - /** - * Retrieve the metrics of number of events received for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsEvents - */ - platformSDK.prototype.getMetricsEvents = function () { - return new getMetricsEventsParameters(this, 'GET', '/metrics/events'); - }; - /** - * Retrieve the metrics of number of formulas executions for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsFormulaExecutions - */ - platformSDK.prototype.getMetricsFormulaExecutions = function () { - return new getMetricsFormulaExecutionsParameters(this, 'GET', '/metrics/formula-executions'); - }; - /** - * Retrieve the metrics of number of formulas created for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsFormulasCreated - */ - platformSDK.prototype.getMetricsFormulasCreated = function () { - return new getMetricsFormulasCreatedParameters(this, 'GET', '/metrics/formulas-created'); - }; - /** - * Retrieve the API metrics for the accounts provided, split up by hub. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsHubApi - */ - platformSDK.prototype.getMetricsHubApi = function () { - return new getMetricsHubApiParameters(this, 'GET', '/metrics/hub-api'); - }; - /** - * Retrieve the hubs created metrics for the accounts provided, split up by hub. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsHubsCreated - */ - platformSDK.prototype.getMetricsHubsCreated = function () { - return new getMetricsHubsCreatedParameters(this, 'GET', '/metrics/hubs-created'); - }; - /** - * Retrieve the metrics of number of VDRs created for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsVdrsCreated - */ - platformSDK.prototype.getMetricsVdrsCreated = function () { - return new getMetricsVdrsCreatedParameters(this, 'GET', '/metrics/vdrs-created'); - }; - /** - * Retrieve the metrics of number of calls using VDRs for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsVdrsInvoked - */ - platformSDK.prototype.getMetricsVdrsInvoked = function () { - return new getMetricsVdrsInvokedParameters(this, 'GET', '/metrics/vdrs-invoked'); - }; - /** - * Create a new organization within the user's customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#createOrganization - * @param {} organization - The organization to create. - */ - platformSDK.prototype.createOrganization = function (organization) { - return new createOrganizationParameters(this, 'POST', '/organizations', organization); - }; - /** - * Delete the default transformation for an element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#deleteOrganizationsElementsTransformations - * @param {string} keyOrId - The element key or ID - */ - platformSDK.prototype.deleteOrganizationsElementsTransformations = function (keyOrId) { - return new deleteOrganizationsElementsTransformationsParameters(this, 'DELETE', '/organizations/elements/{keyOrId}/transformations', keyOrId); - }; - /** - * Retrieve the default transformation for a specific element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#getOrganizationsElementsTransformations - * @param {string} keyOrId - The element key or ID - */ - platformSDK.prototype.getOrganizationsElementsTransformations = function (keyOrId) { - return new getOrganizationsElementsTransformationsParameters(this, 'GET', '/organizations/elements/{keyOrId}/transformations', keyOrId); - }; - /** - * Delete the default transformation for an object for a specific element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#deleteOrganizationsElementsTransformationByObjectName - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.deleteOrganizationsElementsTransformationByObjectName = function (keyOrId, objectName) { - return new deleteOrganizationsElementsTransformationByObjectNameParameters(this, 'DELETE', '/organizations/elements/{keyOrId}/transformations/{objectName}', keyOrId, objectName); - }; - /** - * Retrieve the default transformation for an object for a specific element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#getOrganizationsElementsTransformationByObjectName - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getOrganizationsElementsTransformationByObjectName = function (keyOrId, objectName) { - return new getOrganizationsElementsTransformationByObjectNameParameters(this, 'GET', '/organizations/elements/{keyOrId}/transformations/{objectName}', keyOrId, objectName); - }; - /** - * Create a default transformation for a specific object for all elements with the given key, within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#createOrganizationElementTransformationByObjectName - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation - */ - platformSDK.prototype.createOrganizationElementTransformationByObjectName = function (keyOrId, objectName, transformation) { - return new createOrganizationElementTransformationByObjectNameParameters(this, 'POST', '/organizations/elements/{keyOrId}/transformations/{objectName}', keyOrId, objectName, transformation); - }; - /** - * Update the default transformation for an object for a specific element element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#replaceOrganizationsElementsTransformationByObjectName - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation - */ - platformSDK.prototype.replaceOrganizationsElementsTransformationByObjectName = function (keyOrId, objectName, transformation) { - return new replaceOrganizationsElementsTransformationByObjectNameParameters(this, 'PUT', '/organizations/elements/{keyOrId}/transformations/{objectName}', keyOrId, objectName, transformation); - }; - /** - * Retrieve the user's organization - * @method - * @name platformSDK#getOrganizationsMe - */ - platformSDK.prototype.getOrganizationsMe = function () { - return new getOrganizationsMeParameters(this, 'GET', '/organizations/me'); - }; - /** - * Update the user's organization metadata - * @method - * @name platformSDK#replaceOrganizationsMe - * @param {} body - The organization metadata to update. The only field that can be updated is 'name'. - */ - platformSDK.prototype.replaceOrganizationsMe = function (body) { - return new replaceOrganizationsMeParameters(this, 'PUT', '/organizations/me', body); - }; - /** - * Delete all object definitions within an organization. - * @method - * @name platformSDK#deleteOrganizationsObjectsDefinitions - */ - platformSDK.prototype.deleteOrganizationsObjectsDefinitions = function () { - return new deleteOrganizationsObjectsDefinitionsParameters(this, 'DELETE', '/organizations/objects/definitions'); - }; - /** - * Retrieve all of the object definitions within an organization. - * @method - * @name platformSDK#getOrganizationsObjectsDefinitions - */ - platformSDK.prototype.getOrganizationsObjectsDefinitions = function () { - return new getOrganizationsObjectsDefinitionsParameters(this, 'GET', '/organizations/objects/definitions'); - }; - /** - * Create multiple object definitions within an organization. The definitions allow you to define what an object looks like within an organization. - * @method - * @name platformSDK#createOrganizationObjectDefinition - * @param {} body - The object definitions to create - */ - platformSDK.prototype.createOrganizationObjectDefinition = function (body) { - return new createOrganizationObjectDefinitionParameters(this, 'POST', '/organizations/objects/definitions', body); - }; - /** - * Delete an object definition associated with a specific objectName within an organization. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#deleteOrganizationsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.deleteOrganizationsObjectsObjectNameDefinitions = function (objectName) { - return new deleteOrganizationsObjectsObjectNameDefinitionsParameters(this, 'DELETE', '/organizations/objects/{objectName}/definitions', objectName); - }; - /** - * Retrieve a specific object definition associated with an objectName within an organization. - * @method - * @name platformSDK#getOrganizationsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - platformSDK.prototype.getOrganizationsObjectsObjectNameDefinitions = function (objectName) { - return new getOrganizationsObjectsObjectNameDefinitionsParameters(this, 'GET', '/organizations/objects/{objectName}/definitions', objectName); - }; - /** - * Create a new object definition associated with an objectName within an organization. The definitions allow you to define what an object looks like within an organization. - * @method - * @name platformSDK#createOrganizationObjectObjectNameDefinition - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.createOrganizationObjectObjectNameDefinition = function (objectName, body) { - return new createOrganizationObjectObjectNameDefinitionParameters(this, 'POST', '/organizations/objects/{objectName}/definitions', objectName, body); - }; - /** - * Update a specific object's definition associated with a specific objectName within an organization. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceOrganizationsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - platformSDK.prototype.replaceOrganizationsObjectsObjectNameDefinitions = function (objectName, body) { - return new replaceOrganizationsObjectsObjectNameDefinitionsParameters(this, 'PUT', '/organizations/objects/{objectName}/definitions', objectName, body); - }; - /** - * Find users within your default organizational account. The CEQL search expression or the where clause, without the WHERE keyword, in a typical SQL query. For example, to search for users containing the name 'greg', the search expression will be where name=‘greg’. When this parameter is omitted, all accounts are returned in a paginated fashion. - * @method - * @name platformSDK#getOrganizationsUsers - */ - platformSDK.prototype.getOrganizationsUsers = function () { - return new getOrganizationsUsersParameters(this, 'GET', '/organizations/users'); - }; - /** - * Create a user under the default organization account - * @method - * @name platformSDK#createOrganizationUser - * @param {} body - The user to create

The required fields are:
  • email - The user's email address
  • firstName - The user's first name
  • lastName - The user's last name

Upon success, the created object will be returned. - */ - platformSDK.prototype.createOrganizationUser = function (body) { - return new createOrganizationUserParameters(this, 'POST', '/organizations/users', body); - }; - /** - * Retrieve a user associated with an email or ID within the default organization. Specifying a user associated with a given emailOrId that does not exist will result in an error response. - * @method - * @name platformSDK#getOrganizationsUserByEmailOrId - * @param {string} emailOrId - The email address or numeric ID of the user - */ - platformSDK.prototype.getOrganizationsUserByEmailOrId = function (emailOrId) { - return new getOrganizationsUserByEmailOrIdParameters(this, 'GET', '/organizations/users/{emailOrId:.+}', emailOrId); - }; - /** - * Delete a user associated with an ID within your organization. WARNING: This action will irreversibly delete all jobs, and formula and element instances associated with the user. - * @method - * @name platformSDK#deleteOrganizationsUserById - * @param {integer} id - The ID of the user - */ - platformSDK.prototype.deleteOrganizationsUserById = function (id) { - return new deleteOrganizationsUserByIdParameters(this, 'DELETE', '/organizations/users/{id}', id); - }; - /** - * Update a user associated with an ID within your organization. WARNING: If updating the 'active' field to false, all of the scheduled jobs for the user will be deleted. - * @method - * @name platformSDK#updateOrganizationsUserById - * @param {integer} id - The ID of the user - * @param {} body - The updated user information - */ - platformSDK.prototype.updateOrganizationsUserById = function (id, body) { - return new updateOrganizationsUserByIdParameters(this, 'PATCH', '/organizations/users/{id}', id, body); - }; - /** - * Create a new account within an organization. NOTE: Only a user with the 'org-admin' privilege within the organization, or the 'customer-admin' privilege within the customer is able to use this API. - * @method - * @name platformSDK#createOrganizationAccount - * @param {integer} id - The ID of the organization - * @param {} account - The account to create. - */ - platformSDK.prototype.createOrganizationAccount = function (id, account) { - return new createOrganizationAccountParameters(this, 'POST', '/organizations/{id}/accounts', id, account); - }; - /** - * Retrieve all the accounts within an organization. NOTE: Only a user with the 'org-admin' privilege within the organization, or the 'customer-admin' privilege within the customer is able to use this API. - * @method - * @name platformSDK#getOrganizationsAccounts - * @param {integer} id - The ID of the organization - */ - platformSDK.prototype.getOrganizationsAccounts = function (id) { - return new getOrganizationsAccountsParameters(this, 'GET', '/organizations/{id}/accounts', id); - }; - /** - * Retrieve an account within an organization NOTE: Only a user with the 'org-admin' privilege within the organization, or the 'customer-admin' privilege within the customer is able to use this API. - * @method - * @name platformSDK#getOrganizationsAccountByAccountId - * @param {integer} id - The ID of the organization - * @param {integer} accountId - The ID of the account - */ - platformSDK.prototype.getOrganizationsAccountByAccountId = function (id, accountId) { - return new getOrganizationsAccountByAccountIdParameters(this, 'GET', '/organizations/{id}/accounts/{accountId}', id, accountId); - }; - /** - * Retrieve the usage logs for your account. - * @method - * @name platformSDK#getUsage - */ - platformSDK.prototype.getUsage = function () { - return new getUsageParameters(this, 'GET', '/usage'); - }; - /** - * Retrieve the number of element API calls within a given date/time range - * @method - * @name platformSDK#getUsageAnalyticsActivity - * @param {string} from - Start time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - * @param {string} to - End time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - */ - platformSDK.prototype.getUsageAnalyticsActivity = function (from, to) { - return new getUsageAnalyticsActivityParameters(this, 'GET', '/usage/analytics/activity', from, to); - }; - /** - * Retrieve the number of element API calls for each element within a given date/time range - * @method - * @name platformSDK#getUsageAnalyticsActivityElements - * @param {string} from - Start time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - * @param {string} to - End time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - */ - platformSDK.prototype.getUsageAnalyticsActivityElements = function (from, to) { - return new getUsageAnalyticsActivityElementsParameters(this, 'GET', '/usage/analytics/activity/elements', from, to); - }; - /** - * Retrieve the number of successes and failures of element API calls within a given date/time range. - * @method - * @name platformSDK#getUsageAnalyticsStatuses - * @param {string} from - Start time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - * @param {string} to - End time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - */ - platformSDK.prototype.getUsageAnalyticsStatuses = function (from, to) { - return new getUsageAnalyticsStatusesParameters(this, 'GET', '/usage/analytics/statuses', from, to); - }; - /** - * Retrieve the response times of element API calls within a given date/time range - * @method - * @name platformSDK#getUsageAnalyticsTimes - * @param {string} from - Start time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - * @param {string} to - End time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - */ - platformSDK.prototype.getUsageAnalyticsTimes = function (from, to) { - return new getUsageAnalyticsTimesParameters(this, 'GET', '/usage/analytics/times', from, to); - }; - /** - * Retrieve the usage record by id - * @method - * @name platformSDK#getUsageById - * @param {string} id - The ID of log record - */ - platformSDK.prototype.getUsageById = function (id) { - return new getUsageByIdParameters(this, 'GET', '/usage/{id}', id); - }; - /** - * Retrieve users within your account or organization. Find users within your account or organization, using the provided CEQL search expression or the where clause, without the WHERE keyword, in a typical SQL query. For example, to search for users containing the name 'greg', the search expression will be where name='greg'. When this parameter is omitted, all accounts are returned in a paginated fashion. - * @method - * @name platformSDK#getUsers - */ - platformSDK.prototype.getUsers = function () { - return new getUsersParameters(this, 'GET', '/users'); - }; - /** - * Retrieve a user associated with a given email or ID within your account or organization. Specifying a user associated with a given email or ID that does not exist will result in an error response. - * @method - * @name platformSDK#getUserByEmailOrId - * @param {string} emailOrId - The email address or numeric ID of the user - */ - platformSDK.prototype.getUserByEmailOrId = function (emailOrId) { - return new getUserByEmailOrIdParameters(this, 'GET', '/users/{emailOrId}', emailOrId); - }; - /** - * Delete a user associated with a given ID within your account or organization. WARNING: This action will delete all formula and element instances associated with the user, and is irreversible. Specifying a user associated with a given ID that does not exist will result in an error response. - * @method - * @name platformSDK#deleteUserById - * @param {integer} id - The ID of the user - */ - platformSDK.prototype.deleteUserById = function (id) { - return new deleteUserByIdParameters(this, 'DELETE', '/users/{id}', id); - }; - /** - * Update a user associated with a given email or ID within your account or organization. Specifying a user associated with a given email or ID that does not exist will result in an error response. - * @method - * @name platformSDK#updateUserById - * @param {integer} id - The ID of the user - * @param {} body - The updated user information - */ - platformSDK.prototype.updateUserById = function (id, body) { - return new updateUserByIdParameters(this, 'PATCH', '/users/{id}', id, body); - }; - /** - * Retrieve the roles that a user has been granted. This will return the effective roles, meaning the role could have been granted at the user level OR at the account level. - * @method - * @name platformSDK#getUsersRoles - * @param {number} id - The ID of the user. - */ - platformSDK.prototype.getUsersRoles = function (id) { - return new getUsersRolesParameters(this, 'GET', '/users/{id}/roles', id); - }; - /** - * Revoke a role from a user. This will only remove roles granted directly to the user, and will not affect roles that may have been granted at the account level. - * @method - * @name platformSDK#deleteUsersRoleByRoleKey - * @param {number} userId - The ID of the user from which the role will be revoked. - * @param {string} roleKey - The key of the role to revoke (org-admin, org, or admin) - */ - platformSDK.prototype.deleteUsersRoleByRoleKey = function (userId, roleKey) { - return new deleteUsersRoleByRoleKeyParameters(this, 'DELETE', '/users/{userId}/roles/{roleKey}', userId, roleKey); - }; - /** - * Grant a role to a user. - * @method - * @name platformSDK#replaceUsersRoleByRoleKey - * @param {number} userId - The ID of the user to which the role will be granted. - * @param {string} roleKey - The key of the role to grant (org-admin, org, or admin) - */ - platformSDK.prototype.replaceUsersRoleByRoleKey = function (userId, roleKey) { - return new replaceUsersRoleByRoleKeyParameters(this, 'PUT', '/users/{userId}/roles/{roleKey}', userId, roleKey); - }; - return platformSDK; -}()); -exports.platformSDK = platformSDK; diff --git a/platformSDK.ts b/platformSDK.ts deleted file mode 100644 index c7a4830..0000000 --- a/platformSDK.ts +++ /dev/null @@ -1,14457 +0,0 @@ -import * as request from "superagent"; -import { - SuperAgentStatic -} from "superagent"; - -type CallbackHandler = (err: any, res ? : request.Response) => void; -type Authentication = - - { - 'type' ? : string - - } - -; -type Configuration = - - { - 'description' ? : string - - 'key': string - - 'name': string - - 'type': "value" | "elementInstance" - - } - -; -type DefaultTransformations = - - { - 'name' ? : string - - 'vendorName' ? : string - - } - -; -type ObjectMetadata = - - { - '<objectName>' ? : ObjectMetadataFields - - } - -; -type ObjectMetadataFields = - - { - 'fields' ? : - - Array < - Field - - > - } - -; -type Field = - - { - 'path' ? : string - - 'type' ? : string - - } - -; -type ConfigurationPropertyMap = - - { - '<replace_your_config_property_name>' ? : string - - } - -; -type CreateElement = - - { - 'authentication' ? : Authentication - - 'configuration' ? : - - Array < - Configuration - - > - 'description' ? : string - - 'hub' ? : string - - 'image' ? : string - - 'name' ? : string - - 'parameters' ? : - - Array < - Parameter - - > - 'resources' ? : - - Array < - Resource - - > - } - -; -type DefaultParameter = - - { - 'name' ? : string - - 'type' ? : string - - 'vendorName' ? : string - - 'vendorType' ? : string - - } - -; -type Element = - - { - 'active' ? : boolean - - 'authenticationType' ? : string - - 'configDescription' ? : string - - 'createdDate' ? : number - - 'deleted' ? : boolean - - 'description' ? : string - - 'existingAccountDescription' ? : string - - 'id' ? : number - - 'image' ? : string - - 'key' ? : string - - 'name' ? : string - - 'signupURL' ? : string - - 'trialAccount' ? : boolean - - 'trialAccountDescription' ? : string - - 'typeOauth' ? : boolean - - 'updatedDate' ? : number - - } - -; -type ElementConfig = - - { - 'active' ? : boolean - - 'companyConfig' ? : boolean - - 'configDataType' ? : string - - 'defaultValue' ? : string - - 'description' ? : string - - 'internal' ? : boolean - - 'key' ? : string - - 'mandatory' ? : boolean - - 'name' ? : string - - 'resellerConfig' ? : boolean - - } - -; -type ElementConfigs = - - { - 'configuration' ? : - - Array < - ElementConfig - - > - 'providerData' ? : - - Array < - ElementConfig - - > - } - -; -type ElementInstance = - - { - 'cacheTimeToLive' ? : number - - 'cachingEnabled': boolean - - 'disabled' ? : boolean - - 'element' ? : Element - - 'id' ? : number - - 'maxCacheSize' ? : number - - 'name' ? : string - - 'token' ? : - - {} - - 'valid' ? : boolean - - } - -; -type ElementMetadata = - - { - 'description' ? : string - - 'events' ? : EventMetadata - - 'id' ? : number - - 'key' ? : string - - 'name' ? : string - - } - -; -type EventMetadata = - - { - 'methods' ? : - - Array < string - - > - 'polling' ? : EventMethodMetadata - - 'supported' ? : boolean - - 'webhook' ? : EventMethodMetadata - - } - -; -type EventMethodMetadata = - - { - '<resourceName>' ? : EventResourceMetadata - - } - -; -type EventResourceMetadata = - - { - 'eventTypes' ? : - - Array < string - - > - 'pollUrl' ? : string - - } - -; -type Model = - - { - 'name' ? : string - - 'swagger' ? : - - {} - - } - -; -type OAuthInfo = - - { - 'apiKey' ? : string - - 'apiSecret' ? : string - - 'callbackUrl' ? : string - - 'scope' ? : string - - 'siteAddress' ? : string - - 'state' ? : string - - 'isOAuthProxy' ? : boolean - - 'oauthProxyName' ? : string - - 'requestToken' ? : string - - } - -; -type OAuthRedirect = - - { - 'element' ? : string - - 'oauthUrl' ? : string - - } - -; -type OAuthToken = - - { - 'secret' ? : string - - 'token' ? : string - - } - -; -type Parameter = - - { - 'dataType' ? : string - - 'description' ? : string - - 'name' ? : string - - 'required' ? : boolean - - 'type' ? : string - - 'vendorDataType' ? : string - - 'vendorName' ? : string - - 'vendorType' ? : string - - } - -; -type ProviderPropertyMap = - - { - '<replace_your_provider_property_name>' ? : string - - } - -; -type User = - - { - 'accountExpired' ? : boolean - - 'accountLocked' ? : boolean - - 'accountNonExpired' ? : boolean - - 'accountNonLocked' ? : boolean - - 'activationCode' ? : string - - 'active' ? : boolean - - 'city' ? : string - - 'country' ? : string - - 'createdDate' ? : string - - 'credentialsExpired' ? : boolean - - 'credentialsNonExpired' ? : boolean - - 'email' ? : string - - 'emailValid' ? : boolean - - 'enabled' ? : boolean - - 'firstName' ? : string - - 'fullName' ? : string - - 'id' ? : number - - 'lastName' ? : string - - 'phone' ? : string - - 'postalCode' ? : string - - 'secret' ? : string - - 'stateprovince' ? : string - - 'street1' ? : string - - 'street2' ? : string - - } - -; -type Resource = - - { - 'description' ? : string - - 'operationId' ? : string - - 'method' ? : string - - 'parameters' ? : - - Array < - Parameter - - > - 'path' ? : string - - 'vendorMethod' ? : string - - 'vendorPath' ? : string - - 'rootKey' ? : string - - 'paginationType' ? : string - - 'nextResource' ? : string - - 'object' ? : ResourceObject - - } - -; -type BulkStatus = - - { - 'batchId' ? : number - - 'message' ? : string - - 'numOfLeadsProcessed' ? : number - - 'numOfRowsFailed' ? : number - - 'numOfRowsWithWarning' ? : number - - 'status' ? : string - - } - -; -type BulkLoad = - - { - 'id' ? : number - - 'status' ? : string - - } - -; -type BulkQuery = - - { - 'id' ? : number - - 'status' ? : string - - } - -; -type Pong = - - { - 'dateTime' ? : string - - 'endpoint' ? : string - - } - -; -type ModelDate = - - { - 'value' ? : string - - } - -; -type ResourceField = - - { - 'request' ? : boolean - - 'response' ? : boolean - - 'required' ? : boolean - - 'id' ? : number - - 'name' ? : string - - 'displayName' ? : string - - 'sampleValue' ? : string - - 'description' ? : string - - 'objectId' ? : number - - 'type' ? : string - - 'format' ? : string - - 'mask' ? : string - - 'ownerAccountId' ? : number - - 'primaryKey' ? : boolean - - 'readOnly' ? : boolean - - 'hidden' ? : boolean - - 'createdDate' ? : string - - 'updatedDate' ? : string - - 'referenceObjectId' ? : number - - 'reference' ? : ResourceObject - - } - -; -type Hook = - - { - 'body' ? : string - - 'elementId' ? : number - - 'id' ? : number - - 'isLegacy' ? : boolean - - 'mimeType' ? : string - - 'type' ? : string - - } - -; -type Object = - - { - 'name' ? : string - - 'primaryKeyName' ? : string - - 'createdDateName' ? : string - - 'createdDateFormat' ? : string - - 'updatedDateName' ? : string - - 'updatedDateFormat' ? : string - - 'ownerAccountId' ? : number - - 'bulkDownloadEnabled' ? : boolean - - 'bulkUploadEnabled' ? : boolean - - 'eventsEnabled' ? : boolean - - 'fields' ? : - - Array < - Field - - > - } - -; -type ResourceObject = - - { - 'name' ? : string - - 'primaryKeyName' ? : string - - 'createdDateName' ? : string - - 'createdDateFormat' ? : string - - 'updatedDateName' ? : string - - 'updatedDateFormat' ? : string - - 'ownerAccountId' ? : number - - 'bulkDownloadEnabled' ? : boolean - - 'bulkUploadEnabled' ? : boolean - - 'eventsEnabled' ? : boolean - - 'fields' ? : - - Array < - ResourceField - - > - } - -; -type AccountAnalyticsRecord = - - { - 'accountId' ? : number - - 'success' ? : number - - 'failed' ? : number - - 'count' ? : number - - } - -; -type InstanceAnalyticsRecord = - - { - 'instanceId' ? : number - - 'count' ? : number - - } - -; -type AccountAnalyticsEntry = - - { - 'records' ? : - - Array < - AccountAnalyticsRecord - - > - 'total' ? : number - - 'timestamp' ? : string - - } - -; -type InstanceAnalyticsEntry = - - { - 'records' ? : - - Array < - InstanceAnalyticsRecord - - > - 'total' ? : number - - 'timestamp' ? : string - - } - -; -type AnalyticsEntry = - - { - 'count' ? : number - - 'timestamp' ? : string - - } - -; -type ConfigurationProperty = - - { - '<key>' ? : string - - } - -; -type Definition = - - { - 'fields' ? : - - Array < - Field - - > - } - -; -type Dictionary = - - { - '<object_name>' ? : Definition - - 'level' ? : string - - } - -; -type ElementInstanceConfig = - - { - 'active' ? : boolean - - 'description' ? : string - - 'hideFromConsole' ? : boolean - - 'id' ? : number - - 'key' ? : string - - 'name' ? : string - - 'propertyValue' ? : string - - 'required' ? : boolean - - 'type' ? : string - - } - -; -type ElementInstanceConfigUpdate = - - { - 'propertyValue' ? : string - - } - -; -type Transformation = - - { - 'configuration' ? : - - Array < - Configuration - - > - 'fields' ? : - - Array < - TransformationField - - > - 'level' ? : string - - 'startDate' ? : string - - 'vendorName' ? : string - - } - -; -type TransformationField = - - { - 'configuration' ? : - - Array < - Configuration - - > - 'path' ? : string - - 'type' ? : string - - 'vendorPath' ? : string - - 'vendorType' ? : string - - } - -; -type TraceLoggingConfig = - - { - 'duration' ? : number - - } - -; -type TransformationLibrary = - - { - '<object_name>' ? : Transformation - - } - -; -type EventElementInstance = - - { - 'eventId' ? : string - - 'elementInstanceId' ? : number - - 'notificationId' ? : number - - 'notifiedData' ? : string - - 'createdDate' ? : string - - 'updatedDate' ? : string - - } - -; -type Event = - - { - 'id' ? : string - - 'eventElementInstances' ? : - - Array < - EventElementInstance - - > - 'providerData' ? : string - - 'notifiedData' ? : - - Array < - - {} - - > - 'eventDate' ? : string - - 'status' ? : string - - } - -; -type Customer_GET = - - { - 'environment' ? : string - - 'createdDate' ? : string - - 'name' ? : string - - 'organizations' ? : - - Array < - Organization_GET - - > - 'active' ? : boolean - - 'id' ? : number - - 'updatedDate' ? : string - - 'contacts' ? : - - Array < - CustomerContact - - > - 'status' ? : string - - } - -; -type CustomerContact = - - { - 'country' ? : string - - 'createdDate' ? : string - - 'phone' ? : string - - 'city' ? : string - - 'postalCode' ? : string - - 'customerId' ? : number - - 'name' ? : string - - 'street1' ? : string - - 'id' ? : number - - 'street2' ? : string - - 'updatedDate' ? : string - - 'email' ? : string - - } - -; -type Organization_POST = - - { - 'environment' ? : "production" | "test" - - 'name' ? : string - - 'externalId' ? : string - - 'status' ? : "paid" | "trial" - - } - -; -type Organization_GET = - - { - 'environment' ? : "production" | "test" - - 'canCreatePeer' ? : boolean - - 'twoFactorAuthEnabled' ? : boolean - - 'tierId' ? : number - - 'name' ? : string - - 'customerId' ? : number - - 'active' ? : boolean - - 'externalId' ? : string - - 'id' ? : number - - 'secret' ? : string - - 'vdrVersion' ? : string - - 'status' ? : "paid" | "trial" - - 'street1' ? : string - - 'city' ? : string - - 'state' ? : string - - 'postalCode' ? : string - - 'country' ? : string - - } - -; -type Account_POST = - - { - 'name' ? : string - - 'externalId' ? : string - - 'description' ? : string - - } - -; -type Account_GET = - - { - 'companyId' ? : number - - 'createdDate' ? : string - - 'name' ? : string - - 'customerId' ? : number - - 'customerName' ? : string - - 'active' ? : boolean - - 'description' ? : string - - 'externalId' ? : string - - 'id' ? : number - - 'defaultAccount' ? : boolean - - 'type' ? : string - - } - -; -type User_POST = - - { - 'firstName' ? : string - - 'lastName' ? : string - - 'roles' ? : - - Array < - roles_POST - - > - 'externalId' ? : string - - } - -; -type roles_POST = - - { - 'key' ? : string - - } - -; -type IdentityProvider_POST = - - { - 'ssoUrl': string - - 'entityId': string - - 'logonProtocolBinding' ? : "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - - 'logoutUrl' ? : string - - 'logoutProtocolBinding' ? : "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - - 'logoutResponseUrl' ? : string - - 'idFormat' ? : string - - 'signingCert': string - - 'signatureAlgorithm' ? : "rsa-sha1" | "rsa-sha256" | "rsa-sha384" | "rsa-sha512" - - } - -; -type IdentityProvider_GET = - - { - 'id' ? : number - - 'ssoUrl': string - - 'entityId': string - - 'logonProtocolBinding' ? : "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - - 'logoutUrl' ? : string - - 'logoutProtocolBinding' ? : "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" - - 'logoutResponseUrl' ? : string - - 'idFormat' ? : string - - 'signingCert': string - - 'signatureAlgorithm' ? : "rsa-sha1" | "rsa-sha256" | "rsa-sha384" | "rsa-sha512" - - 'createdDate' ? : string - - } - -; -type CustomerSignup_POST = - - { - 'organization' ? : Organization_POST - - 'account' ? : Account_POST - - 'user' ? : User_POST - - } - -; -type CustomerSignup_GET = - - { - 'organization' ? : Organization_GET - - 'account' ? : Account_GET - - 'user' ? : User_GET - - } - -; -type User_GET = - - { - 'accountLocked' ? : boolean - - 'lastName' ? : string - - 'roles' ? : - - Array < - roles_GET - - > - 'credentialsNonExpired' ? : boolean - - 'active' ? : boolean - - 'externalId' ? : string - - 'fullName' ? : string - - 'secret' ? : string - - 'userSecretKeystring' ? : string - - 'enabled' ? : boolean - - 'firstName' ? : string - - 'emailValid' ? : boolean - - 'accountExpired' ? : boolean - - 'accountNonExpired' ? : boolean - - 'id' ? : number - - 'credentialsExpired' ? : boolean - - 'email' ? : string - - 'accountNonLocked' ? : boolean - - } - -; -type privileges_GET = - - { - 'hide' ? : boolean - - 'createdDate' ? : string - - 'name' ? : string - - 'active' ? : boolean - - 'description' ? : string - - 'id' ? : number - - 'category' ? : string - - 'key' ? : string - - } - -; -type roles_GET = - - { - 'privileges' ? : - - Array < - privileges_GET - - > - 'hide' ? : boolean - - 'name' ? : string - - 'active' ? : boolean - - 'description' ? : string - - 'id' ? : number - - 'key' ? : string - - } - -; -type Organization = - - { - 'id' ? : number - - 'name' ? : string - - 'createdDate' ? : string - - } - -; -type Account = - - { - 'active' ? : boolean - - 'companyId' ? : number - - 'createdDate' ? : number - - 'defaultAccount' ? : boolean - - 'description' ? : string - - 'externalId' ? : string - - 'id' ? : number - - 'name' ? : string - - 'type' ? : string - - 'updatedDate' ? : number - - } - -; -type DefinitionField = - - { - 'path' ? : string - - 'type' ? : string - - } - -; -type TransformationMetadata = - - { - 'account' ? : TransformationAccount - - 'element' ? : TransformationElement - - 'level' ? : string - - 'name' ? : string - - } - -; -type Account_PUT = - - { - 'active' ? : boolean - - 'description' ? : string - - 'externalId' ? : string - - 'name' ? : string - - } - -; -type FormulaInstance = - - { - 'active' ? : boolean - - 'configuration' ? : FormulaInstanceConfiguration - - 'settings' ? : FormulaInstanceSettings - - 'createdDate' ? : string - - 'formula': FormulaInstanceFormula - - 'name': string - - 'updatedDate' ? : string - - } - -; -type TransformationAccount = - - { - 'defaultAccount' ? : boolean - - 'externalId' ? : string - - 'id' ? : string - - } - -; -type TransformationElement = - - { - 'hub' ? : string - - 'id' ? : number - - 'image' ? : string - - 'key' ? : string - - 'name' ? : string - - 'trialAccount' ? : boolean - - 'typeOauth' ? : boolean - - } - -; -type Role_PUT = - - { - 'key' ? : string - - } - -; -type User_PUT = - - { - 'country' ? : string - - 'lastName' ? : string - - 'city' ? : string - - 'postalCode' ? : string - - 'roles' ? : - - Array < - Role_PUT - - > - 'stateProvince' ? : string - - 'active' ? : boolean - - 'externalId' ? : string - - 'firstName' ? : string - - 'phone' ? : string - - 'street1' ? : string - - 'street2' ? : string - - 'email' ? : string - - } - -; -type Role = - - { - 'active' ? : boolean - - 'description' ? : string - - 'features' ? : - - Array < - Feature - - > - 'id' ? : number - - 'key' ? : string - - 'name' ? : string - - } - -; -type Feature = - - { - 'active' ? : boolean - - 'createdDate' ? : string - - 'description' ? : string - - 'id' ? : number - - 'readOnly' ? : boolean - - 'name' ? : string - - } - -; -type PasswordReset_POST = - - { - 'password' ? : string - - } - -; -type Privilege = - - { - 'hide' ? : boolean - - 'createdDate' ? : string - - 'name' ? : string - - 'active' ? : boolean - - 'description' ? : string - - 'id' ? : number - - 'category' ? : string - - 'key' ? : string - - } - -; -type AuthenticatedUser_GET = - - { - 'lastName' ? : string - - 'registeredForTwoFactor' ? : boolean - - 'twoFactor' ? : boolean - - 'organizationName' ? : string - - 'accountName' ? : string - - 'roles' ? : - - Array < - AuthenticatedUserRole - - > - 'lastLoginDate' ? : string - - 'organizationAdmin' ? : boolean - - 'token' ? : string - - 'organizationId' ? : number - - 'accountId' ? : number - - 'firstName' ? : string - - 'createdDate' ? : string - - 'inIntelligenceRole' ? : boolean - - 'id' ? : number - - 'sysAdmin' ? : boolean - - 'accountAdmin' ? : boolean - - 'username' ? : string - - } - -; -type AuthenticatedUserRole = - - { - 'features' ? : - - Array < - Feature - - > - 'privileges' ? : - - Array < - Privilege - - > - 'hide' ? : boolean - - 'name' ? : string - - 'active' ? : boolean - - 'description' ? : string - - 'id' ? : number - - 'key' ? : string - - } - -; -type Hub = - - { - 'description' ? : string - - 'id' ? : number - - 'key' ? : string - - 'name' ? : string - - } - -; -type ApiMetric = - - { - 'count' ? : number - - 'id' ? : number - - 'interval' ? : string - - 'externalId' ? : string - - 'metrics' ? : - - Array < - ApiMetricsMetrics - - > - } - -; -type ApiMetrics = - - Array < - ApiMetric - - > -; -type ApiMetricsDetail = - - { - 'count' ? : number - - 'type' ? : string - - } - -; -type ApiMetricsMetrics = - - { - 'count' ? : number - - 'details' ? : - - Array < - ApiMetricsDetail - - > - 'timestamp' ? : string - - } - -; -type HubMetric = - - { - 'count' ? : number - - 'id' ? : number - - 'interval' ? : string - - 'externalId' ? : string - - 'metrics' ? : - - Array < - HubMetricsMetrics - - > - } - -; -type HubMetrics = - - Array < - HubMetric - - > -; -type HubMetricsDetail = - - { - 'count' ? : number - - 'hub' ? : string - - } - -; -type HubMetricsMetrics = - - { - 'count' ? : number - - 'details' ? : - - Array < - HubMetricsDetail - - > - 'timestamp' ? : string - - } - -; -type ElementInstancesCreatedMetric = - - { - 'count' ? : number - - 'id' ? : number - - 'interval' ? : string - - 'externalId' ? : string - - 'metrics' ? : - - Array < - ElementInstancesCreatedMetricsMetrics - - > - } - -; -type ElementInstancesCreatedMetrics = - - Array < - ElementInstancesCreatedMetric - - > -; -type ElementInstancesCreatedMetricsDetail = - - { - 'count' ? : number - - 'elementKey' ? : string - - } - -; -type ElementInstancesCreatedMetricsMetrics = - - { - 'count' ? : number - - 'details' ? : - - Array < - ElementInstancesCreatedMetricsDetail - - > - 'timestamp' ? : string - - } - -; -type BulkMetric = - - { - 'count' ? : number - - 'id' ? : number - - 'interval' ? : string - - 'externalId' ? : string - - 'metrics' ? : - - Array < - BulkMetricsMetrics - - > - } - -; -type BulkMetrics = - - Array < - BulkMetric - - > -; -type BulkMetricsDetail = - - { - 'count' ? : number - - 'direction' ? : string - - 'records' ? : number - - } - -; -type BulkMetricsMetrics = - - { - 'count' ? : number - - 'details' ? : - - Array < - BulkMetricsDetail - - > - 'timestamp' ? : string - - } - -; -type Metric = - - { - 'count' ? : number - - 'id' ? : number - - 'interval' ? : string - - 'externalId' ? : string - - 'metrics' ? : - - Array < - MetricsMetrics - - > - } - -; -type Metrics = - - Array < - Metric - - > -; -type MetricsMetrics = - - { - 'count' ? : number - - 'timestamp' ? : string - - } - -; -type ActivityElementEntry = - - { - '<elementKey>' ? : number - - 'count' ? : number - - 'timestamp' ? : string - - } - -; -type ActivityEntry = - - { - 'count' ? : number - - 'timestamp' ? : string - - } - -; -type StatusEntry = - - { - 'count' ? : number - - 'failed' ? : number - - 'success' ? : number - - 'timestamp' ? : string - - } - -; -type TimesEntry = - - { - 'avg' ? : number - - 'count' ? : number - - 'max' ? : number - - 'min' ? : number - - 'timestamp' ? : string - - } - -; -type TrafficEntry = - - { - 'accountId' ? : number - - 'companyId' ? : number - - 'elementKey' ? : string - - 'elementName' ? : string - - 'elementTags' ? : string - - 'id' ? : string - - 'instanceName' ? : string - - 'processTime' ? : number - - 'requestIP' ? : number - - 'requestStatus' ? : string - - 'requestURI' ? : string - - 'usageDate' ? : string - - 'userId' ? : number - - } - -; -type AnalyticsPercentiles = - - { - '1.0' ? : number - - '5.0' ? : number - - '25.0' ? : number - - '50.0' ? : number - - '75.0' ? : number - - '95.0' ? : number - - '99.0' ? : number - - } - -; -type AnalyticEntry = - - { - 'avg' ? : number - - 'sum' ? : number - - 'percentiles' ? : AnalyticsPercentiles - - } - -; -type StatusAnalyticsEntry = - - { - 'success' ? : number - - 'failed' ? : number - - 'timestamp' ? : string - - } - -; -type StatusNowEntry = - - { - 'accountId' ? : number - - 'success' ? : number - - 'failed' ? : number - - 'pending' ? : number - - 'canceled' ? : number - - 'unknown' ? : number - - 'retries' ? : - - Array < - StatusRetryRecord - - > - } - -; -type StatusRetryRecord = - - { - 'executionId' ? : number - - 'retry' ? : number - - } - -; -type StepAnalyticsEntry = - - { - 'count' ? : number - - 'timestamp' ? : string - - 'executionTime' ? : AnalyticEntry - - 'executionDelay' ? : AnalyticEntry - - 'contextSize' ? : AnalyticEntry - - } - -; -type AllInstancesFormula = - - { - 'accountId' ? : number - - 'active' ? : boolean - - 'configuration' ? : - - Array < - GetConfiguration - - > - 'createdDate' ? : string - - 'description' ? : string - - 'id' ? : number - - 'name': string - - 'updatedDate' ? : string - - 'userId' ? : number - - } - -; -type CreateConfiguration = - - { - 'description' ? : string - - 'key': string - - 'name': string - - 'type': "value" | "elementInstance" - - } - -; -type CreateFormula = - - { - 'active' ? : boolean - - 'configuration' ? : - - Array < - Configuration - - > - 'description' ? : string - - 'name': string - - 'steps' ? : - - Array < - Step - - > - 'triggers' ? : - - Array < - Trigger - - > - } - -; -type CreateFormulaInstance = - - { - 'active' ? : boolean - - 'configuration' ? : FormulaInstanceConfiguration - - 'settings' ? : FormulaInstanceSettings - - 'name': string - - } - -; -type CreateStep = - - { - 'name': string - - 'onFailure' ? : - - Array < string - - > - 'onSuccess' ? : - - Array < string - - > - 'properties' ? : Properties - - 'type': "request" | "elementRequest" | "transform" | "filter" | "script" - - } - -; -type CreateTrigger = - - { - 'cron' ? : string - - } - -; -type FormulaExecution = - - { - 'createdDate' ? : string - - 'formulaInstanceId' ? : number - - 'status' ? : "failed" | "success" | "pending" | "queued" | "cancelled" | "unknown" - - 'id' ? : number - - 'updatedDate' ? : string - - } - -; -type FormulaExecutionBody = - - {} - -; -type FormulaInstanceConfiguration = - - { - '<key>' ? : string - - } - -; -type FormulaInstanceSettings = - - { - 'notification.email' ? : string - - 'notification.webhook.url' ? : string - - 'api' ? : string - - } - -; -type FormulaInstanceFormula = - - { - 'active' ? : boolean - - 'id': number - - } - -; -type FormulaInstanceStatus = - - { - 'status': "cancelled" - - } - -; -type GetAllFormulaInstances = - - { - 'active' ? : boolean - - 'configuration' ? : FormulaInstanceConfiguration - - 'settings' ? : FormulaInstanceSettings - - 'createdDate' ? : string - - 'formula': AllInstancesFormula - - 'id' ? : number - - 'name': string - - 'updatedDate' ? : string - - } - -; -type GetAllFormulaExecutionErrors = - - { - 'id' ? : number - - 'formula' ? : FormulaInstanceFormula - - 'executions' ? : - - Array < - GetAllInstanceExecutionErrors - - > - } - -; -type GetAllInstanceExecutionErrors = - - { - 'status' ? : "failed" | "success" | "pending" | "queued" | "unknown" - - 'createdDate' ? : string - - 'id' ? : number - - 'updatedDate' ? : string - - 'stepExecutions' ? : - - Array < - StepExecution - - > - } - -; -type GetConfiguration = - - { - 'description' ? : string - - 'id': number - - 'key': string - - 'name': string - - 'type': "value" | "elementInstance" - - } - -; -type GetFormula = - - { - 'accountId' ? : number - - 'active' ? : boolean - - 'configuration' ? : - - Array < - GetConfiguration - - > - 'createdDate' ? : string - - 'description' ? : string - - 'id' ? : number - - 'name': string - - 'steps' ? : - - Array < - GetStep - - > - 'triggers' ? : - - Array < - GetTrigger - - > - 'updatedDate' ? : string - - 'userId' ? : number - - } - -; -type GetFormulaSlim = - - { - 'accountId' ? : number - - 'active' ? : boolean - - 'createdDate' ? : string - - 'description' ? : string - - 'id': number - - 'name': string - - 'updatedDate' ? : string - - 'userId' ? : number - - } - -; -type GetFormulaExecution = - - { - 'createdDate' ? : string - - 'formulaInstanceId' ? : number - - 'id' ? : number - - 'status' ? : "failed" | "success" | "pending" | "queued" | "unknown" - - 'stepExecutions' ? : - - Array < - StepExecution - - > - 'updatedDate' ? : string - - } - -; -type GetFormulaFormulaInstance = - - { - 'active' ? : boolean - - 'configuration' ? : FormulaInstanceConfiguration - - 'settings' ? : FormulaInstanceSettings - - 'createdDate' ? : string - - 'formula': GetInstanceFormula - - 'id' ? : number - - 'name': string - - 'updatedDate' ? : string - - } - -; -type GetFormulaInstance = - - { - 'active' ? : boolean - - 'configuration' ? : FormulaInstanceConfiguration - - 'settings' ? : FormulaInstanceSettings - - 'createdDate' ? : string - - 'formula': FormulaInstanceFormula - - 'id' ? : number - - 'name': string - - 'updatedDate' ? : string - - } - -; -type GetInstanceFormula = - - { - 'accountId' ? : number - - 'active' ? : boolean - - 'createdDate' ? : string - - 'description' ? : string - - 'id': number - - 'name' ? : string - - 'updatedDate' ? : string - - 'userId' ? : number - - } - -; -type GetStep = - - { - 'id': number - - 'name': string - - 'onFailure' ? : - - Array < string - - > - 'onSuccess' ? : - - Array < string - - > - 'properties' ? : Properties - - 'type': "request" | "elementRequest" | "transform" | "filter" | "script" - - } - -; -type GetTrigger = - - { - 'async' ? : boolean - - 'id' ? : number - - 'onFailure' ? : - - Array < string - - > - 'onSuccess': - - Array < string - - > - 'properties': Properties - - 'type': "elementRequest" | "request" | "event" - - } - -; -type Properties = - - { - 'api' ? : string - - 'body' ? : string - - 'elementInstanceId' ? : string - - 'headers' ? : string - - 'method' ? : "GET" | "POST" | "PATCH" | "PUT" | "DELETE" - - 'mimeType' ? : string - - 'path' ? : string - - 'query' ? : string - - } - -; -type Step = - - { - 'name': string - - 'onFailure' ? : - - Array < string - - > - 'onSuccess' ? : - - Array < string - - > - 'properties' ? : Properties - - 'type': "request" | "elementRequest" | "transform" | "filter" | "script" - - } - -; -type StepExecution = - - { - 'createdDate' ? : string - - 'id' ? : number - - 'status' ? : "pending" | "queued" | "success" | "failed" | "unknown" - - 'stepExecutionValues' ? : - - Array < - StepExecutionValue - - > - 'stepName' ? : string - - 'updatedDate' ? : string - - } - -; -type StepExecutionValue = - - { - 'id' ? : string - - 'key' ? : string - - 'value' ? : string - - } - -; -type Trigger = - - { - 'calendarName' ? : - - {} - - 'mayFireAgain' ? : boolean - - 'nextFireTime' ? : number - - 'description' ? : - - {} - - 'startTime' ? : number - - 'id' ? : string - - 'endTime' ? : - - {} - - 'state' ? : string - - 'priority' ? : number - - } - -; -type UpdateFormula = - - { - 'active' ? : boolean - - 'configuration' ? : - - Array < - Configuration - - > - 'description' ? : string - - 'name': string - - 'steps' ? : - - Array < - Step - - > - 'triggers' ? : - - Array < - Trigger - - > - } - -; -type PartialUpdateFormula = - - { - 'active' ? : boolean - - 'description' ? : string - - 'name' ? : string - - } - -; -type Createjob = - - { - 'instanceId' ? : string - - 'name' ? : string - - 'description' ? : string - - 'method' ? : string - - 'body' ? : CreateJobBody - - 'headers' ? : CreateJobHeaders - - 'query' ? : CreateJobQuery - - 'uri' ? : string - - 'trigger' ? : CreateTrigger - - } - -; -type CreateJobBody = - - { - 'name' ? : string - - 'firstName' ? : string - - 'lastName' ? : string - - } - -; -type CreateJobHeaders = - - { - 'SampleHeader' ? : string - - } - -; -type CreateJobQuery = - - { - 'page' ? : number - - 'pageSize' ? : number - - 'where' ? : string - - } - -; -type CreatedJob = - - { - 'schedule' ? : string - - 'name' ? : string - - 'id' ? : string - - } - -; -type Reschedule = - - { - 'trigger' ? : CreateTrigger - - } - -; -type JobHistory = - - { - 'job_class_name' ? : string - - 'company_id' ? : number - - 'created_dt' ? : number - - 'job_group' ? : string - - 'job_history_id' ? : number - - 'end_time' ? : number - - 'description' ? : string - - 'external_id' ? : - - {} - - 'job_state' ? : string - - 'start_time' ? : number - - 'account_id' ? : number - - 'instance_id' ? : number - - 'job_name' ? : string - - 'user_id' ? : number - - 'updated_dt' ? : number - - 'job_data' ? : string - - 'job_error_message' ? : - - {} - - } - -; -type JobHistories = - - Array < - JobHistory - - > -; -type JobExecution = - - { - 'job_class_name' ? : string - - 'start_time' ? : number - - 'job_name' ? : string - - 'job_group' ? : string - - 'job_history_id' ? : number - - 'end_time' ? : number - - 'job_data' ? : string - - 'description' ? : string - - 'job_error_message' ? : - - {} - - 'element_key' ? : - - {} - - 'job_state' ? : string - - } - -; -type JobExecutions = - - Array < - JobExecution - - > -; -type Job = - - { - 'disallowConcurrent' ? : boolean - - 'data' ? : Data - - 'name' ? : string - - 'description' ? : string - - 'id' ? : string - - 'trigger' ? : Trigger - - } - -; -type Jobs = - - Array < - Job - - > -; -type Data = - - { - 'elementKey' ? : string - - 'topic' ? : string - - 'id' ? : number - - } - -; -type audit_logs = - - { - 'instance_id' ? : number - - 'account_id' ? : number - - 'method' ? : string - - 'user_id' ? : number - - 'org_id' ? : number - - 'resource_uri' ? : string - - 'id' ? : string - - 'ip_address' ? : string - - 'entity_id' ? : string - - 'timestamp' ? : string - - 'status' ? : number - - } - -; - -type Logger = { - log: (line: string) => any -}; - -class platformSDKMethodParameters { - protected _body: any; - protected headers: any; - protected queryParameters: any; - protected form: any; - constructor(public superThis: platformSDK, protected method: string, protected path: string) { - this.queryParameters = {}; - this.headers = {}; - this.form = {}; - } -} - -class getAccountsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - where(where: string - - ): getAccountsParameters { - this.queryParameters['where'] = where; - return this; - } - offset(offset: number - - ): getAccountsParameters { - this.queryParameters['offset'] = offset; - return this; - } - pageSize(pageSize: number - - ): getAccountsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - includeInactive(includeInactive: boolean - - ): getAccountsParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - - Array < - Account - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createAccountParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, body: - Account - - ) { - super(superThis, method, path); - this._body = body; - } - run(): Promise < - Account - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - nextPage(nextPage: string - - ): getAccountsInstancesParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAccountsInstancesParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - ElementInstance - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteAccountsObjectsDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsObjectsDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - Dictionary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createAccountObjectDefinitionParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, body: - Dictionary - - ) { - super(superThis, method, path); - this._body = body; - } - run(): Promise < - Dictionary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteAccountsObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createAccountObjectObjectNameDefinitionParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceAccountsObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsFormulasInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, accountId: number - - , formulaId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{accountId}', `${accountId}`); - this.path = this.path.replace('{formulaId}', `${formulaId}`); - } - run(): Promise < - FormulaInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteAccountByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - includeInactive(includeInactive: boolean - - ): getAccountByIdParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - Account - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateAccountByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , body: - Account - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = body; - } - permanent(permanent: boolean - - ): updateAccountByIdParameters { - this.queryParameters['permanent'] = permanent; - return this; - } - run(): Promise < - Account - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceAccountByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , body: - Account_PUT - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = body; - } - permanent(permanent: boolean - - ): replaceAccountByIdParameters { - this.queryParameters['permanent'] = permanent; - return this; - } - run(): Promise < - Account - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteAccountsElementsTransformationsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsElementsTransformationsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < - TransformationLibrary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteAccountsElementsTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , keyOrId: string - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsElementsTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , keyOrId: string - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createAccountElementTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , keyOrId: string - - , objectName: string - - , transformation: - Transformation - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = transformation; - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceAccountsElementsTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , keyOrId: string - - , objectName: string - - , transformation: - Transformation - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = transformation; - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsInstances2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - nextPage(nextPage: string - - ): getAccountsInstances2Parameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAccountsInstances2Parameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - ElementInstance - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteAccountsObjectsDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsObjectsDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - Dictionary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createAccountObjectDefinition2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , body: - Dictionary - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = body; - } - run(): Promise < - Dictionary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteAccountsObjectsObjectNameDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsObjectsObjectNameDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createAccountObjectObjectNameDefinition2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceAccountsObjectsObjectNameDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsUsersParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - where(where: string - - ): getAccountsUsersParameters { - this.queryParameters['where'] = where; - return this; - } - nextPage(nextPage: string - - ): getAccountsUsersParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAccountsUsersParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - includeInactive(includeInactive: boolean - - ): getAccountsUsersParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - - Array < - User - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createAccountUserParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , body: - User - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = body; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAccountsUserByEmailOrIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , emailOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{emailOrId}', `${emailOrId}`); - } - elementsUserPassword(elementsUserPassword: string - - ): getAccountsUserByEmailOrIdParameters { - this.headers['Elements-User-Password'] = elementsUserPassword; - return this; - } - includeInactive(includeInactive: boolean - - ): getAccountsUserByEmailOrIdParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateAccountsUserByUserIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , userId: number - - , body: - User - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{userId}', `${userId}`); - this._body = body; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceAccountsUserByUserIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , userId: number - - , body: - User_PUT - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{userId}', `${userId}`); - this._body = body; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteAccountsUserByUserIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , userId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{userId}', `${userId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsAuthenticationParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsAuthenticationParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsAuthenticationParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsAuthenticationParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsAuthenticationParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsAuthenticationParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsAuthenticationParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsCommonResourcesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsCommonResourcesParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsCommonResourcesParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsCommonResourcesParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsCommonResourcesParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsCommonResourcesParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsCommonResourcesParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsCommonResourceByCommonResourceNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsCommonResourceByCommonResourceNameParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsCommonResourceByCommonResourceNameParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsCommonResourceByCommonResourceNameParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsCommonResourceByCommonResourceNameParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsCommonResourceByCommonResourceNameParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsCommonResourceByCommonResourceNameParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsElementInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsElementInstancesParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsElementInstancesParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsElementInstancesParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsElementInstancesParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsElementInstancesParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsElementInstancesParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsElementInstanceByElementInstanceIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsElementInstanceByElementInstanceIdParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsElementInstanceByElementInstanceIdParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsElementInstanceByElementInstanceIdParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsElementInstanceByElementInstanceIdParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsElementInstanceByElementInstanceIdParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsElementInstanceByElementInstanceIdParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsElementsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsElementsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsElementsParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsElementsParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsElementsParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsElementsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsElementsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsElementByElementIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsElementByElementIdParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsElementByElementIdParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsElementByElementIdParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsElementByElementIdParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsElementByElementIdParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsElementByElementIdParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsFormulaInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsFormulaInstancesParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsFormulaInstancesParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsFormulaInstancesParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsFormulaInstancesParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsFormulaInstancesParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsFormulaInstancesParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsFormulasParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsFormulasParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsFormulasParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsFormulasParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsFormulasParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsFormulasParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsFormulasParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getAuditLogsFormulaByEntityIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getAuditLogsFormulaByEntityIdParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getAuditLogsFormulaByEntityIdParameters { - this.queryParameters['to'] = to; - return this; - } - userId(userId: string - - ): getAuditLogsFormulaByEntityIdParameters { - this.queryParameters['userId'] = userId; - return this; - } - accountId(accountId: string - - ): getAuditLogsFormulaByEntityIdParameters { - this.queryParameters['accountId'] = accountId; - return this; - } - nextPage(nextPage: string - - ): getAuditLogsFormulaByEntityIdParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getAuditLogsFormulaByEntityIdParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - audit_logs - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createAuthenticationPasswordParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, passwordReset: - PasswordReset_POST - - ) { - super(superThis, method, path); - this._body = passwordReset; - } - run(): Promise < - AuthenticatedUser_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createCustomerIdentityProviderParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, identityProvider: - IdentityProvider_POST - - ) { - super(superThis, method, path); - this._body = identityProvider; - } - run(): Promise < - IdentityProvider_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getCustomersIdentityProvidersParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - - Array < - IdentityProvider_GET - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getCustomersIdentityProviderByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - IdentityProvider_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteCustomersIdentityProviderByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getCustomersMeParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - Customer_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getCustomersOrganizationsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - nextPage(nextPage: string - - ): getCustomersOrganizationsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getCustomersOrganizationsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - where(where: string - - ): getCustomersOrganizationsParameters { - this.queryParameters['where'] = where; - return this; - } - includeInactive(includeInactive: boolean - - ): getCustomersOrganizationsParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - - Array < - Organization_GET - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getCustomersOrganizationByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - includeInactive(includeInactive: boolean - - ): getCustomersOrganizationByIdParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - Organization_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteCustomersOrganizationByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createCustomerSignupParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, customerSignup: - CustomerSignup_POST - - ) { - super(superThis, method, path); - this._body = customerSignup; - } - run(): Promise < - CustomerSignup_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, element: - CreateElement - - ) { - super(superThis, method, path); - this._body = element; - } - run(): Promise < - Element - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsKeysParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - nextPage(nextPage: string - - ): getElementsKeysParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getElementsKeysParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < string - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsDocsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - operationId(operationId: string - - ): getElementsDocsParameters { - this.queryParameters['operationId'] = operationId; - return this; - } - run(): Promise < - Swagger - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsMetadataParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - ElementMetadata - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementByKeyOrIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementByKeyOrIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , element: - CreateElement - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this._body = element; - } - run(): Promise < - Element - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsActiveParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsActiveParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementCloneParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < - Element - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsConfigurationParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < - ElementConfigs - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementConfigurationParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , configuration: - Configuration - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this._body = configuration; - } - run(): Promise < - Configuration - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsConfigurationByConfigurationKeyParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , configurationKey: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{configurationKey}', `${configurationKey}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsConfigurationByConfigurationKeyParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , configurationKey: string - - , configuration: - Configuration - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{configurationKey}', `${configurationKey}`); - this._body = configuration; - } - run(): Promise < - Configuration - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsExportParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < - - {} - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsHooksParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < - - Array < - Hook - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementHookParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , model: - Hook - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this._body = model; - } - run(): Promise < - Hook - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsHookByHookIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , hookId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{hookId}', `${hookId}`); - } - run(): Promise < - Hook - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsHookByHookIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , hookId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{hookId}', `${hookId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsHookByHookIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , hookId: string - - , parameter: - Hook - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{hookId}', `${hookId}`); - this._body = parameter; - } - run(): Promise < - Hook - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < - - Array < - ElementInstance - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementInstanceParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , elementInstance: - ElementInstance - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this._body = elementInstance; - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsInstanceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsInstanceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsInstanceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: number - - , elementInstance: - ElementInstance - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = elementInstance; - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsOauthTokenParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , apiKey: string - - , apiSecret: string - - , callbackUrl: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.queryParameters['apiKey'] = apiKey; - this.queryParameters['apiSecret'] = apiSecret; - this.queryParameters['callbackUrl'] = callbackUrl; - } - scope(scope: string - - ): getElementsOauthTokenParameters { - this.queryParameters['scope'] = scope; - return this; - } - state(state: string - - ): getElementsOauthTokenParameters { - this.queryParameters['state'] = state; - return this; - } - siteAddress(siteAddress: string - - ): getElementsOauthTokenParameters { - this.queryParameters['siteAddress'] = siteAddress; - return this; - } - run(): Promise < - OAuthToken - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsOauthUrlParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , apiKey: string - - , apiSecret: string - - , callbackUrl: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.queryParameters['apiKey'] = apiKey; - this.queryParameters['apiSecret'] = apiSecret; - this.queryParameters['callbackUrl'] = callbackUrl; - } - scope(scope: string - - ): getElementsOauthUrlParameters { - this.queryParameters['scope'] = scope; - return this; - } - state(state: string - - ): getElementsOauthUrlParameters { - this.queryParameters['state'] = state; - return this; - } - callbackProxy(callbackProxy: boolean - - ): getElementsOauthUrlParameters { - this.queryParameters['callbackProxy'] = callbackProxy; - return this; - } - requestToken(requestToken: string - - ): getElementsOauthUrlParameters { - this.queryParameters['requestToken'] = requestToken; - return this; - } - siteAddress(siteAddress: string - - ): getElementsOauthUrlParameters { - this.queryParameters['siteAddress'] = siteAddress; - return this; - } - run(): Promise < - OAuthRedirect - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementOauthUrlParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , oauthInfo: - OAuthInfo - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this._body = oauthInfo; - } - run(): Promise < - OAuthRedirect - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsObjectsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - accountOnly(accountOnly: boolean - - ): getElementsObjectsParameters { - this.queryParameters['accountOnly'] = accountOnly; - return this; - } - run(): Promise < - - Array < - Object - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementObjectParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , object: - Object - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this._body = object; - } - run(): Promise < - Object - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsObjectByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsObjectByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , object: - Object - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = object; - } - run(): Promise < - Object - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsObjectByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - Object - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementObjectFieldParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , field: - Field - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = field; - } - run(): Promise < - Field - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsObjectsFieldsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - accountOnly(accountOnly: boolean - - ): getElementsObjectsFieldsParameters { - this.queryParameters['accountOnly'] = accountOnly; - return this; - } - run(): Promise < - - Array < - Field - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsObjectsFieldByFieldIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , fieldId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{fieldId}', `${fieldId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsObjectsFieldByFieldIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , fieldId: string - - , object: - Field - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{fieldId}', `${fieldId}`); - this._body = object; - } - run(): Promise < - Field - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsObjectsFieldByFieldIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , fieldId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{fieldId}', `${fieldId}`); - } - run(): Promise < - Field - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsParametersParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < - - Array < - DefaultParameter - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementParameterParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , parameter: - DefaultParameter - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this._body = parameter; - } - run(): Promise < - DefaultParameter - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsParameterByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , parameter: - DefaultParameter - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = parameter; - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsParameterByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , parameter: - DefaultParameter - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = parameter; - } - run(): Promise < - DefaultParameter - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsResourcesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - accountOnly(accountOnly: boolean - - ): getElementsResourcesParameters { - this.queryParameters['accountOnly'] = accountOnly; - return this; - } - run(): Promise < - - Array < - Resource - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementResourceParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , resource: - Resource - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this._body = resource; - } - run(): Promise < - Resource - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsResourceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsResourceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , resource: - Resource - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = resource; - } - run(): Promise < - Resource - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsResourceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - Resource - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsResourcesHooksParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - - Array < - Hook - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementResourceHookParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , model: - Hook - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = model; - } - run(): Promise < - Hook - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsResourcesHookByHookIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , hookId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{hookId}', `${hookId}`); - } - run(): Promise < - Hook - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsResourcesHookByHookIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , hookId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{hookId}', `${hookId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsResourcesHookByHookIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , hookId: string - - , parameter: - Hook - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{hookId}', `${hookId}`); - this._body = parameter; - } - run(): Promise < - Hook - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsResourcesModelsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsResourcesModelsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - Model - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementResourceModelParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , model: - Model - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = model; - } - run(): Promise < - Model - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getElementsResourcesParametersParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - - Array < - Parameter - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createElementResourceParameterParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , parameter: - Parameter - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this._body = parameter; - } - run(): Promise < - Parameter - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteElementsResourcesParameterByParameterIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , parameterId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{parameterId}', `${parameterId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceElementsResourcesParameterByParameterIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , id: string - - , parameterId: string - - , parameter: - Parameter - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{parameterId}', `${parameterId}`); - this._body = parameter; - } - run(): Promise < - Parameter - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - includeSystem(includeSystem: boolean - - ): getFormulasParameters { - this.queryParameters['includeSystem'] = includeSystem; - return this; - } - nextPage(nextPage: string - - ): getFormulasParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getFormulasParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - GetFormula - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createFormulaParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, body: - CreateFormula - - ) { - super(superThis, method, path); - this._body = body; - } - run(): Promise < - GetFormula - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasAnalyticsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getFormulasAnalyticsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getFormulasAnalyticsParameters { - this.queryParameters['to'] = to; - return this; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getFormulasAnalyticsParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getFormulasAnalyticsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - AnalyticsEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasAnalyticsAccountsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getFormulasAnalyticsAccountsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getFormulasAnalyticsAccountsParameters { - this.queryParameters['to'] = to; - return this; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getFormulasAnalyticsAccountsParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getFormulasAnalyticsAccountsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - AccountAnalyticsEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasAnalyticsInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getFormulasAnalyticsInstancesParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getFormulasAnalyticsInstancesParameters { - this.queryParameters['to'] = to; - return this; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getFormulasAnalyticsInstancesParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getFormulasAnalyticsInstancesParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - InstanceAnalyticsEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasAnalyticsStatusesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getFormulasAnalyticsStatusesParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getFormulasAnalyticsStatusesParameters { - this.queryParameters['to'] = to; - return this; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getFormulasAnalyticsStatusesParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getFormulasAnalyticsStatusesParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - StatusAnalyticsEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasAnalyticsStatusesNowParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - accountIds(accountIds: - - Array < number - - > - ): getFormulasAnalyticsStatusesNowParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - StatusNowEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasAnalyticsStepsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getFormulasAnalyticsStepsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getFormulasAnalyticsStepsParameters { - this.queryParameters['to'] = to; - return this; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getFormulasAnalyticsStepsParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getFormulasAnalyticsStepsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - StepAnalyticsEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - elementInstanceId(elementInstanceId: number - - ): getFormulasInstancesParameters { - this.queryParameters['elementInstanceId'] = elementInstanceId; - return this; - } - nextPage(nextPage: string - - ): getFormulasInstancesParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getFormulasInstancesParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - searchText(searchText: string - - ): getFormulasInstancesParameters { - this.queryParameters['searchText'] = searchText; - return this; - } - run(): Promise < - GetAllFormulaInstances - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesExecutionsStepsValuesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, stepExecutionId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{stepExecutionId}', `${stepExecutionId}`); - } - run(): Promise < - - Array < - StepExecutionValue - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesExecutionByExecutionIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, executionId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{executionId}', `${executionId}`); - } - run(): Promise < - FormulaExecution - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateFormulasInstancesExecutionByExecutionIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, executionId: number - - , status: - FormulaInstanceStatus - - ) { - super(superThis, method, path); - this.path = this.path.replace('{executionId}', `${executionId}`); - this._body = status; - } - run(): Promise < - FormulaExecution - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesExecutionsErrorsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, executionId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{executionId}', `${executionId}`); - } - run(): Promise < - - Array < - StepExecution - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesExecutionsStepsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, executionId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{executionId}', `${executionId}`); - } - nextPage(nextPage: string - - ): getFormulasInstancesExecutionsStepsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getFormulasInstancesExecutionsStepsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - StepExecution - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstanceByInstanceIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - run(): Promise < - GetAllFormulaInstances - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesExecutionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - eventId(eventId: string - - ): getFormulasInstancesExecutionsParameters { - this.queryParameters['eventId'] = eventId; - return this; - } - objectId(objectId: string - - ): getFormulasInstancesExecutionsParameters { - this.queryParameters['objectId'] = objectId; - return this; - } - nextPage(nextPage: string - - ): getFormulasInstancesExecutionsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getFormulasInstancesExecutionsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - FormulaExecution - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createFormulaInstanceExecutionParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - trigger(trigger: - FormulaExecutionBody - - ): createFormulaInstanceExecutionParameters { - if (this.queryParameters['trigger'] !== undefined) { - this._body = this.queryParameters['trigger']; - } - return this; - } - run(): Promise < - - Array < - FormulaExecution - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesExecutionsErrors2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - nextPage(nextPage: string - - ): getFormulasInstancesExecutionsErrors2Parameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getFormulasInstancesExecutionsErrors2Parameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - from(from: string - - ): getFormulasInstancesExecutionsErrors2Parameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getFormulasInstancesExecutionsErrors2Parameters { - this.queryParameters['to'] = to; - return this; - } - run(): Promise < - - Array < - GetAllInstanceExecutionErrors - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesExecutionsErrors2_1Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, formulaId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{formulaId}', `${formulaId}`); - } - nextPage(nextPage: string - - ): getFormulasInstancesExecutionsErrors2_1Parameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getFormulasInstancesExecutionsErrors2_1Parameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - from(from: string - - ): getFormulasInstancesExecutionsErrors2_1Parameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getFormulasInstancesExecutionsErrors2_1Parameters { - this.queryParameters['to'] = to; - return this; - } - run(): Promise < - - Array < - GetAllFormulaExecutionErrors - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteFormulaByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulaByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - GetFormula - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceFormulaByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , formula: - UpdateFormula - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = formula; - } - run(): Promise < - GetFormula - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateFormulaByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , formula: - PartialUpdateFormula - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = formula; - } - run(): Promise < - GetFormulaSlim - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createFormulaConfigurationParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , configuration: - CreateConfiguration - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = configuration; - } - run(): Promise < - GetConfiguration - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteFormulasConfigurationByConfigurationIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , configurationId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{configurationId}', `${configurationId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasConfigurationByConfigurationIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , configurationId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{configurationId}', `${configurationId}`); - } - run(): Promise < - GetConfiguration - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceFormulasConfigurationByConfigurationIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , configurationId: number - - , configuration: - CreateConfiguration - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{configurationId}', `${configurationId}`); - this._body = configuration; - } - run(): Promise < - GetConfiguration - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasExportParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < string - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstances2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - nextPage(nextPage: string - - ): getFormulasInstances2Parameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getFormulasInstances2Parameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - GetFormulaInstance - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createFormulaInstanceParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , formulaInstance: - CreateFormulaInstance - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = formulaInstance; - } - run(): Promise < - FormulaInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteFormulasInstanceByInstanceIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstanceByInstanceId2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - run(): Promise < - GetFormulaFormulaInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceFormulasInstanceByInstanceIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , instanceId: number - - , formulaInstance: - CreateFormulaInstance - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - this._body = formulaInstance; - } - run(): Promise < - GetFormulaInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceFormulasInstancesActiveParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteFormulasInstancesActiveParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasInstancesExecutions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , instanceId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{instanceId}', `${instanceId}`); - } - nextPage(nextPage: string - - ): getFormulasInstancesExecutions2Parameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getFormulasInstancesExecutions2Parameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - FormulaExecution - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasStepsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - - Array < - GetStep - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createFormulaStepParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , step: - CreateStep - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = step; - } - run(): Promise < - GetStep - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteFormulasStepByStepIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , stepId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{stepId}', `${stepId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasStepByStepIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , stepId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{stepId}', `${stepId}`); - } - run(): Promise < - GetStep - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceFormulasStepByStepIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , stepId: number - - , step: - CreateStep - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{stepId}', `${stepId}`); - this._body = step; - } - run(): Promise < - GetStep - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createFormulaTriggerParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , trigger: - CreateTrigger - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = trigger; - } - run(): Promise < - GetTrigger - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteFormulasTriggerByTriggerIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , triggerId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{triggerId}', `${triggerId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getFormulasTriggerByTriggerIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , triggerId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{triggerId}', `${triggerId}`); - } - run(): Promise < - GetTrigger - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceFormulasTriggerByTriggerIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , triggerId: number - - , trigger: - CreateTrigger - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{triggerId}', `${triggerId}`); - this._body = trigger; - } - run(): Promise < - GetTrigger - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getHubsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - nextPage(nextPage: string - - ): getHubsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getHubsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - Hub - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createHubParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, hub: - Hub - - ) { - super(superThis, method, path); - this._body = hub; - } - run(): Promise < - Hub - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getHubsKeysParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - nextPage(nextPage: string - - ): getHubsKeysParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getHubsKeysParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < string - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteHubByKeyParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, key: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{key}', `${key}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getHubByKeyParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, key: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{key}', `${key}`); - } - run(): Promise < - Hub - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getHubsElementsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, key: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{key}', `${key}`); - } - nextPage(nextPage: string - - ): getHubsElementsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getHubsElementsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - Element - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - tags(tags: - - Array < string - - > - ): getInstancesParameters { - this.queryParameters['tags[]'] = tags; - return this; - } - searchText(searchText: string - - ): getInstancesParameters { - this.queryParameters['searchText'] = searchText; - return this; - } - nextPage(nextPage: string - - ): getInstancesParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getInstancesParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - hydrate(hydrate: boolean - - ): getInstancesParameters { - this.queryParameters['hydrate'] = hydrate; - return this; - } - run(): Promise < - - Array < - ElementInstance - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createInstanceParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, elementInstance: - ElementInstance - - ) { - super(superThis, method, path); - this._body = elementInstance; - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, elementInstance: - ElementInstance - - ) { - super(superThis, method, path); - this._body = elementInstance; - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, elementInstance: - ElementInstance - - ) { - super(superThis, method, path); - this._body = elementInstance; - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesConfigurationParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - - Array < - ElementInstanceConfig - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesConfigurationByConfigIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, configId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{configId}', `${configId}`); - } - run(): Promise < - ElementInstanceConfig - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateInstancesConfigurationByConfigIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, configId: number - - , config: - ElementInstanceConfigUpdate - - ) { - super(superThis, method, path); - this.path = this.path.replace('{configId}', `${configId}`); - this._body = config; - } - run(): Promise < - ElementInstanceConfig - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesDocsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - operationId(operationId: string - - ): getInstancesDocsParameters { - this.queryParameters['operationId'] = operationId; - return this; - } - run(): Promise < - - {} - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesDocByOperationIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, operationId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{operationId}', `${operationId}`); - } - discovery(discovery: boolean - - ): getInstancesDocByOperationIdParameters { - this.queryParameters['discovery'] = discovery; - return this; - } - basic(basic: boolean - - ): getInstancesDocByOperationIdParameters { - this.queryParameters['basic'] = basic; - return this; - } - run(): Promise < - - {} - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesDocsDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, operationId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{operationId}', `${operationId}`); - } - discovery(discovery: boolean - - ): getInstancesDocsDefinitionsParameters { - this.queryParameters['discovery'] = discovery; - return this; - } - resolveReferences(resolveReferences: boolean - - ): getInstancesDocsDefinitionsParameters { - this.queryParameters['resolveReferences'] = resolveReferences; - return this; - } - basic(basic: boolean - - ): getInstancesDocsDefinitionsParameters { - this.queryParameters['basic'] = basic; - return this; - } - run(): Promise < - - {} - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesEnabledParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesEnabledParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesEventsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - - Array < - Event - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesEventsAnalyticsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getInstancesEventsAnalyticsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getInstancesEventsAnalyticsParameters { - this.queryParameters['to'] = to; - return this; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getInstancesEventsAnalyticsParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getInstancesEventsAnalyticsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - AnalyticsEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesEventsAnalyticsAccountsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getInstancesEventsAnalyticsAccountsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getInstancesEventsAnalyticsAccountsParameters { - this.queryParameters['to'] = to; - return this; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getInstancesEventsAnalyticsAccountsParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getInstancesEventsAnalyticsAccountsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - AccountAnalyticsEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesEventsAnalyticsInstancesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getInstancesEventsAnalyticsInstancesParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getInstancesEventsAnalyticsInstancesParameters { - this.queryParameters['to'] = to; - return this; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getInstancesEventsAnalyticsInstancesParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getInstancesEventsAnalyticsInstancesParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - InstanceAnalyticsEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesEventsDispositionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - from(from: string - - ): getInstancesEventsDispositionsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getInstancesEventsDispositionsParameters { - this.queryParameters['to'] = to; - return this; - } - nextPage(nextPage: string - - ): getInstancesEventsDispositionsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getInstancesEventsDispositionsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - run(): Promise < - - Array < - Event - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesEventByEventIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, eventId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{eventId}', `${eventId}`); - } - run(): Promise < - Event - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesObjectsDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - Dictionary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createInstanceObjectObjectNameDefinitionParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesTraceLoggingParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - config(config: - TraceLoggingConfig - - ): replaceInstancesTraceLoggingParameters { - if (this.queryParameters['config'] !== undefined) { - this._body = this.queryParameters['config']; - } - return this; - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesTraceLoggingParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesTransformationsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesTransformationsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - TransformationLibrary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createInstanceTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - , transformation: - Transformation - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = transformation; - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - , transformation: - Transformation - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = transformation; - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstanceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstanceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstanceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , elementInstance: - ElementInstance - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = elementInstance; - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateInstanceByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , elementInstance: - ElementInstance - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = elementInstance; - } - run(): Promise < - ElementInstance - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesConfiguration2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - - Array < - ElementInstanceConfig - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesConfigurationByConfigId2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , configId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{configId}', `${configId}`); - } - run(): Promise < - ElementInstanceConfig - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateInstancesConfigurationByConfigId2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , configId: number - - , config: - ElementInstanceConfigUpdate - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{configId}', `${configId}`); - this._body = config; - } - run(): Promise < - ElementInstanceConfig - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesDocs2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - operationId(operationId: string - - ): getInstancesDocs2Parameters { - this.queryParameters['operationId'] = operationId; - return this; - } - run(): Promise < - - {} - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesDocByOperationId2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , operationId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{operationId}', `${operationId}`); - } - discovery(discovery: boolean - - ): getInstancesDocByOperationId2Parameters { - this.queryParameters['discovery'] = discovery; - return this; - } - basic(basic: boolean - - ): getInstancesDocByOperationId2Parameters { - this.queryParameters['basic'] = basic; - return this; - } - run(): Promise < - - {} - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesDocsDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , operationId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{operationId}', `${operationId}`); - } - discovery(discovery: boolean - - ): getInstancesDocsDefinitions2Parameters { - this.queryParameters['discovery'] = discovery; - return this; - } - resolveReferences(resolveReferences: boolean - - ): getInstancesDocsDefinitions2Parameters { - this.queryParameters['resolveReferences'] = resolveReferences; - return this; - } - basic(basic: boolean - - ): getInstancesDocsDefinitions2Parameters { - this.queryParameters['basic'] = basic; - return this; - } - run(): Promise < - - {} - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesEnabled2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesEnabled2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesEvents2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - - Array < - Event - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesEventByEventId2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , eventId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{eventId}', `${eventId}`); - } - run(): Promise < - Event - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesObjectsDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - Dictionary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesObjectsObjectNameDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesObjectsObjectNameDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createInstanceObjectObjectNameDefinition2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesObjectsObjectNameDefinitions2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesTraceLogging2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - config(config: - TraceLoggingConfig - - ): replaceInstancesTraceLogging2Parameters { - if (this.queryParameters['config'] !== undefined) { - this._body = this.queryParameters['config']; - } - return this; - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesTraceLogging2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesTransformations2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesTransformations2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - TransformationLibrary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteInstancesTransformationByObjectName2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getInstancesTransformationByObjectName2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createInstanceTransformationByObjectName2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - , transformation: - Transformation - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = transformation; - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceInstancesTransformationByObjectName2Parameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , objectName: string - - , transformation: - Transformation - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = transformation; - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getJobsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - Jobs - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createJobParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - body(body: - Createjob - - ): createJobParameters { - if (this.queryParameters['body'] !== undefined) { - this._body = this.queryParameters['body']; - } - return this; - } - run(): Promise < - CreatedJob - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getJobsExecutionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - page(page: number - - ): getJobsExecutionsParameters { - this.queryParameters['page'] = page; - return this; - } - pageSize(pageSize: number - - ): getJobsExecutionsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - elementKeys(elementKeys: string - - ): getJobsExecutionsParameters { - this.queryParameters['elementKeys[]'] = elementKeys; - return this; - } - startTime(startTime: string - - ): getJobsExecutionsParameters { - this.queryParameters['startTime'] = startTime; - return this; - } - endTime(endTime: string - - ): getJobsExecutionsParameters { - this.queryParameters['endTime'] = endTime; - return this; - } - run(): Promise < - JobExecutions - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteJobByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getJobByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - Job - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceJobsDisableParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceJobsEnableParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getJobsHistoryParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - JobHistories - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getJobsHistoryByHistoryIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - , historyId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{historyId}', `${historyId}`); - } - run(): Promise < - JobHistory - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateJobsRescheduleParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - body(body: - Reschedule - - ): updateJobsRescheduleParameters { - if (this.queryParameters['body'] !== undefined) { - this._body = this.queryParameters['body']; - } - return this; - } - run(): Promise < - CreatedJob - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsApiParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsApiParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsApiParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsApiParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsApiParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsApiParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsApiParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsApiParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsApiParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsApiParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsApiParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - ApiMetrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsBulkJobsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsBulkJobsParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsBulkJobsParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsBulkJobsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsBulkJobsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsBulkJobsParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsBulkJobsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsBulkJobsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsBulkJobsParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsBulkJobsParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsBulkJobsParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - BulkMetrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsElementInstancesCreatedParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsElementInstancesCreatedParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - ElementInstancesCreatedMetrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsElementsCreatedParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsElementsCreatedParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsElementsCreatedParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsElementsCreatedParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsElementsCreatedParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsElementsCreatedParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsElementsCreatedParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsElementsCreatedParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsElementsCreatedParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsElementsCreatedParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsElementsCreatedParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - Metrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsEventsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsEventsParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsEventsParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsEventsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsEventsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsEventsParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsEventsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsEventsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsEventsParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsEventsParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsEventsParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - Metrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsFormulaExecutionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsFormulaExecutionsParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - Metrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsFormulasCreatedParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsFormulasCreatedParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsFormulasCreatedParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsFormulasCreatedParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsFormulasCreatedParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsFormulasCreatedParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsFormulasCreatedParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsFormulasCreatedParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsFormulasCreatedParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsFormulasCreatedParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsFormulasCreatedParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - Metrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsHubApiParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsHubApiParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsHubApiParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsHubApiParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsHubApiParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsHubApiParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsHubApiParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsHubApiParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsHubApiParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsHubApiParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsHubApiParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - HubMetrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsHubsCreatedParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsHubsCreatedParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsHubsCreatedParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsHubsCreatedParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsHubsCreatedParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsHubsCreatedParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsHubsCreatedParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsHubsCreatedParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsHubsCreatedParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsHubsCreatedParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsHubsCreatedParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - HubMetrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsVdrsCreatedParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsVdrsCreatedParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsVdrsCreatedParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsVdrsCreatedParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsVdrsCreatedParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsVdrsCreatedParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsVdrsCreatedParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsVdrsCreatedParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsVdrsCreatedParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsVdrsCreatedParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsVdrsCreatedParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - Metrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getMetricsVdrsInvokedParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - customerIds(customerIds: - - Array < number - - > - ): getMetricsVdrsInvokedParameters { - this.queryParameters['customerIds[]'] = customerIds; - return this; - } - orgIds(orgIds: - - Array < number - - > - ): getMetricsVdrsInvokedParameters { - this.queryParameters['orgIds[]'] = orgIds; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getMetricsVdrsInvokedParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - from(from: string - - ): getMetricsVdrsInvokedParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getMetricsVdrsInvokedParameters { - this.queryParameters['to'] = to; - return this; - } - pageSize(pageSize: number - - ): getMetricsVdrsInvokedParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getMetricsVdrsInvokedParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - agg(agg: "account" | "org" - - ): getMetricsVdrsInvokedParameters { - this.queryParameters['agg'] = agg; - return this; - } - interval(interval: "second" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year" - - ): getMetricsVdrsInvokedParameters { - this.queryParameters['interval'] = interval; - return this; - } - emptyIntervals(emptyIntervals: boolean - - ): getMetricsVdrsInvokedParameters { - this.queryParameters['emptyIntervals'] = emptyIntervals; - return this; - } - run(): Promise < - - Array < - Metrics - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createOrganizationParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, organization: - Organization_POST - - ) { - super(superThis, method, path); - this._body = organization; - } - run(): Promise < - Organization_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteOrganizationsElementsTransformationsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsElementsTransformationsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - } - run(): Promise < - TransformationLibrary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteOrganizationsElementsTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsElementsTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createOrganizationElementTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , objectName: string - - , transformation: - Transformation - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = transformation; - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceOrganizationsElementsTransformationByObjectNameParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, keyOrId: string - - , objectName: string - - , transformation: - Transformation - - ) { - super(superThis, method, path); - this.path = this.path.replace('{keyOrId}', `${keyOrId}`); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = transformation; - } - run(): Promise < - Transformation - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsMeParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - Organization - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceOrganizationsMeParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, body: - Organization - - ) { - super(superThis, method, path); - this._body = body; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteOrganizationsObjectsDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsObjectsDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - run(): Promise < - Dictionary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createOrganizationObjectDefinitionParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, body: - Dictionary - - ) { - super(superThis, method, path); - this._body = body; - } - run(): Promise < - Dictionary - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteOrganizationsObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createOrganizationObjectObjectNameDefinitionParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceOrganizationsObjectsObjectNameDefinitionsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, objectName: string - - , body: - Definition - - ) { - super(superThis, method, path); - this.path = this.path.replace('{objectName}', `${objectName}`); - this._body = body; - } - run(): Promise < - Definition - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsUsersParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - where(where: string - - ): getOrganizationsUsersParameters { - this.queryParameters['where'] = where; - return this; - } - nextPage(nextPage: string - - ): getOrganizationsUsersParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getOrganizationsUsersParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - includeInactive(includeInactive: boolean - - ): getOrganizationsUsersParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - - Array < - User - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createOrganizationUserParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, body: - User - - ) { - super(superThis, method, path); - this._body = body; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsUserByEmailOrIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, emailOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{emailOrId}', `${emailOrId}`); - } - elementsUserPassword(elementsUserPassword: string - - ): getOrganizationsUserByEmailOrIdParameters { - this.headers['Elements-User-Password'] = elementsUserPassword; - return this; - } - includeInactive(includeInactive: boolean - - ): getOrganizationsUserByEmailOrIdParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteOrganizationsUserByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateOrganizationsUserByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , body: - User - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = body; - } - permanent(permanent: boolean - - ): updateOrganizationsUserByIdParameters { - this.queryParameters['permanent'] = permanent; - return this; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class createOrganizationAccountParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , account: - Account_POST - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = account; - } - run(): Promise < - Account_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsAccountsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - nextPage(nextPage: string - - ): getOrganizationsAccountsParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getOrganizationsAccountsParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - where(where: string - - ): getOrganizationsAccountsParameters { - this.queryParameters['where'] = where; - return this; - } - includeInactive(includeInactive: boolean - - ): getOrganizationsAccountsParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - - Array < - Account_GET - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getOrganizationsAccountByAccountIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , accountId: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this.path = this.path.replace('{accountId}', `${accountId}`); - } - includeInactive(includeInactive: boolean - - ): getOrganizationsAccountByAccountIdParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - Account_GET - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUsageParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - hub(hub: string - - ): getUsageParameters { - this.queryParameters['hub'] = hub; - return this; - } - keys(keys: - - Array < string - - > - ): getUsageParameters { - this.queryParameters['keys[]'] = keys; - return this; - } - tags(tags: - - Array < string - - > - ): getUsageParameters { - this.queryParameters['tags[]'] = tags; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getUsageParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - status(status: "SUCCESS" | "FAILED" - - ): getUsageParameters { - this.queryParameters['status'] = status; - return this; - } - from(from: string - - ): getUsageParameters { - this.queryParameters['from'] = from; - return this; - } - to(to: string - - ): getUsageParameters { - this.queryParameters['to'] = to; - return this; - } - searchText(searchText: string - - ): getUsageParameters { - this.queryParameters['searchText'] = searchText; - return this; - } - pageOffset(pageOffset: number - - ): getUsageParameters { - this.queryParameters['pageOffset'] = pageOffset; - return this; - } - pageSize(pageSize: number - - ): getUsageParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - nextPage(nextPage: string - - ): getUsageParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - run(): Promise < - - Array < - TrafficEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUsageAnalyticsActivityParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, from: string - - , to: string - - ) { - super(superThis, method, path); - this.queryParameters['from'] = from; - this.queryParameters['to'] = to; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getUsageAnalyticsActivityParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getUsageAnalyticsActivityParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - ActivityEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUsageAnalyticsActivityElementsParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, from: string - - , to: string - - ) { - super(superThis, method, path); - this.queryParameters['from'] = from; - this.queryParameters['to'] = to; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getUsageAnalyticsActivityElementsParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getUsageAnalyticsActivityElementsParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - ActivityElementEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUsageAnalyticsStatusesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, from: string - - , to: string - - ) { - super(superThis, method, path); - this.queryParameters['from'] = from; - this.queryParameters['to'] = to; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getUsageAnalyticsStatusesParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getUsageAnalyticsStatusesParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - StatusEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUsageAnalyticsTimesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, from: string - - , to: string - - ) { - super(superThis, method, path); - this.queryParameters['from'] = from; - this.queryParameters['to'] = to; - } - interval(interval: "year" | "quarter" | "month" | "week" | "day" | "hour" | "minute" | "second" - - ): getUsageAnalyticsTimesParameters { - this.queryParameters['interval'] = interval; - return this; - } - accountIds(accountIds: - - Array < number - - > - ): getUsageAnalyticsTimesParameters { - this.queryParameters['accountIds[]'] = accountIds; - return this; - } - run(): Promise < - - Array < - TimesEntry - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUsageByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - TrafficEntry - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUsersParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string) { - super(superThis, method, path); - } - where(where: string - - ): getUsersParameters { - this.queryParameters['where'] = where; - return this; - } - nextPage(nextPage: string - - ): getUsersParameters { - this.queryParameters['nextPage'] = nextPage; - return this; - } - pageSize(pageSize: number - - ): getUsersParameters { - this.queryParameters['pageSize'] = pageSize; - return this; - } - includeInactive(includeInactive: boolean - - ): getUsersParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - - Array < - User - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUserByEmailOrIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, emailOrId: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{emailOrId}', `${emailOrId}`); - } - elementsUserPassword(elementsUserPassword: string - - ): getUserByEmailOrIdParameters { - this.headers['Elements-User-Password'] = elementsUserPassword; - return this; - } - includeInactive(includeInactive: boolean - - ): getUserByEmailOrIdParameters { - this.queryParameters['includeInactive'] = includeInactive; - return this; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteUserByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class updateUserByIdParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - , body: - User - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - this._body = body; - } - run(): Promise < - User - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class getUsersRolesParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, id: number - - ) { - super(superThis, method, path); - this.path = this.path.replace('{id}', `${id}`); - } - run(): Promise < - - Array < - Role - - > - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class deleteUsersRoleByRoleKeyParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, userId: number - - , roleKey: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{userId}', `${userId}`); - this.path = this.path.replace('{roleKey}', `${roleKey}`); - } - run(): Promise < > { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; -class replaceUsersRoleByRoleKeyParameters extends platformSDKMethodParameters { - constructor(superThis: platformSDK, method: string, path: string, userId: number - - , roleKey: string - - ) { - super(superThis, method, path); - this.path = this.path.replace('{userId}', `${userId}`); - this.path = this.path.replace('{roleKey}', `${roleKey}`); - } - run(): Promise < - Role - - > - { - return this.superThis.request(this.method, this.path, this._body, this.headers, this.queryParameters, this.form) - .then(r => r.body) - } -}; - -/** - * - * @class platformSDK - * @param {(string)} [domainOrOptions] - The project domain. - */ -export class platformSDK { - - private domain: string = "https://console.cloud-elements.com/elements/api-v2"; - private logger: Logger = { - log: msg => console.log(msg) - }; - private errorHandlers: CallbackHandler[] = []; - private authorizationHeader: string = null; - - constructor(baseUrl ? : string, authorizationHeader ? : string, logger ? : Logger) { - if (baseUrl) { - this.domain = `${baseUrl}/elements/api-v2`; - } - if (logger) { - this.logger = logger; - } - if (authorizationHeader) { - this.authorizationHeader = authorizationHeader; - } - } - - getDomain() { - return this.domain; - } - - addErrorHandler(handler: CallbackHandler) { - this.errorHandlers.push(handler); - } - - public post(path: string, body ? : any, headers ? : any, queryParameters ? : any, form ? : any): Promise < request.Response > { - return this.request('POST', path, body, headers, queryParameters, form) - } - - public put(path: string, body ? : any, headers ? : any, queryParameters ? : any, form ? : any): Promise < request.Response > { - return this.request('PUT', path, body, headers, queryParameters, form) - } - - public patch(path: string, body ? : any, headers ? : any, queryParameters ? : any, form ? : any): Promise < request.Response > { - return this.request('PATCH', path, body, headers, queryParameters, form) - } - - public delete(path: string, body ? : any, headers ? : any, queryParameters ? : any, form ? : any): Promise < request.Response > { - return this.request('DELETE', path, body, headers, queryParameters, form) - } - - public get(path: string, body ? : any, headers ? : any, queryParameters ? : any, form ? : any): Promise < request.Response > { - return this.request('GET', path, body, headers, queryParameters, form) - } - - public request(method: string, path: string, body ? : any, headers ? : any, queryParameters ? : any, form ? : any): - Promise < request.Response > { - return new Promise((resolve, reject) => { - if (!body) { - body = {} - } - if (!headers) { - headers = {} - } - if (!queryParameters) { - queryParameters = {} - } - if (!form) { - form = {} - } - if (this.authorizationHeader && this.authorizationHeader.length > 0) { - headers.authorization = this.authorizationHeader - } - let url: string = this.domain + path; - if (this.logger) { - this.logger.log(`Call ${method} ${url}`); - } - - let req = (request as SuperAgentStatic)(method, url).query(queryParameters); - - Object.keys(headers).forEach(key => { - req.set(key, headers[key]); - }); - - if (body) { - req.send(body); - } - - if (typeof(body) === 'object' && !(body.constructor.name === 'Buffer')) { - req.set('Content-Type', 'application/json'); - } - - if (Object.keys(form).length > 0) { - req.type('form'); - req.send(form); - } - - req.end((error, response) => { - if (error || !response.ok) { - reject(error); - this.errorHandlers.forEach(handler => handler(error)); - } else { - resolve(response); - } - }); - }); - } - - /** - * Retrieve accounts (identified by your organization secret). The provided user secret must be that of the default admin user for the organization. - * @method - * @name platformSDK#getAccounts - */ - getAccounts(): getAccountsParameters { - return new getAccountsParameters(this, 'GET', '/accounts'); - } - - /** - * Create a sub-account (identified by your organization secret). The provided user secret must be that of the default admin user for the organization. - * @method - * @name platformSDK#createAccount - * @param {} body - The account to create

The required fields are:
  • externalId - An external account identifier, typically an email address

Optional fields are:
  • name - The name of the account
  • description - A description of the account

Upon success, the created object will be returned. - */ - createAccount( - body: - Account - - , - ): createAccountParameters { - return new createAccountParameters(this, 'POST', '/accounts', body); - } - - /** - * Finds all instances for the default users' account - * @method - * @name platformSDK#getAccountsInstances - */ - getAccountsInstances(): getAccountsInstancesParameters { - return new getAccountsInstancesParameters(this, 'GET', '/accounts/instances'); - } - - /** - * Delete all object definitions within the default users' account. If no object definitions exist then this will result in an error response. - * @method - * @name platformSDK#deleteAccountsObjectsDefinitions - */ - deleteAccountsObjectsDefinitions(): deleteAccountsObjectsDefinitionsParameters { - return new deleteAccountsObjectsDefinitionsParameters(this, 'DELETE', '/accounts/objects/definitions'); - } - - /** - * Retrieve all of the object definitions within the users' default account. Specifying an object definition that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsObjectsDefinitions - */ - getAccountsObjectsDefinitions(): getAccountsObjectsDefinitionsParameters { - return new getAccountsObjectsDefinitionsParameters(this, 'GET', '/accounts/objects/definitions'); - } - - /** - * Create multiple object definitions within this users' default account. The definitions allow you to define what an object looks like within an account. - * @method - * @name platformSDK#createAccountObjectDefinition - * @param {} body - The object definitions to create - */ - createAccountObjectDefinition( - body: - Dictionary - - , - ): createAccountObjectDefinitionParameters { - return new createAccountObjectDefinitionParameters(this, 'POST', '/accounts/objects/definitions', body); - } - - /** - * Delete an object definition associated with an objectName within the default users' account. Specifying an object name that does not have an object definition will result in an error response. - * @method - * @name platformSDK#deleteAccountsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - deleteAccountsObjectsObjectNameDefinitions( - objectName: string - - , - ): deleteAccountsObjectsObjectNameDefinitionsParameters { - return new deleteAccountsObjectsObjectNameDefinitionsParameters(this, 'DELETE', '/accounts/objects/{objectName}/definitions', objectName); - } - - /** - * Retrieve a specific object definition associated with an objectName within the default users' account. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - getAccountsObjectsObjectNameDefinitions( - objectName: string - - , - ): getAccountsObjectsObjectNameDefinitionsParameters { - return new getAccountsObjectsObjectNameDefinitionsParameters(this, 'GET', '/accounts/objects/{objectName}/definitions', objectName); - } - - /** - * Create a new object definition associated with an objectName within the users' default account. The definitions allow you to define what an object looks like within an account. - * @method - * @name platformSDK#createAccountObjectObjectNameDefinition - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - createAccountObjectObjectNameDefinition( - objectName: string - - , - body: - Definition - - , - ): createAccountObjectObjectNameDefinitionParameters { - return new createAccountObjectObjectNameDefinitionParameters(this, 'POST', '/accounts/objects/{objectName}/definitions', objectName, body); - } - - /** - * Update a specific object's definition associated with an objectName within the default users' account. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceAccountsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - replaceAccountsObjectsObjectNameDefinitions( - objectName: string - - , - body: - Definition - - , - ): replaceAccountsObjectsObjectNameDefinitionsParameters { - return new replaceAccountsObjectsObjectNameDefinitionsParameters(this, 'PUT', '/accounts/objects/{objectName}/definitions', objectName, body); - } - - /** - * List formula instances for an account by formula ID - * @method - * @name platformSDK#getAccountsFormulasInstances - * @param {integer} accountId - The account ID - * @param {integer} formulaId - The formula ID - */ - getAccountsFormulasInstances( - accountId: number - - , - formulaId: number - - , - ): getAccountsFormulasInstancesParameters { - return new getAccountsFormulasInstancesParameters(this, 'GET', '/accounts/{accountId}/formulas/{formulaId}/instances', accountId, formulaId); - } - - /** - * Delete an account by ID. The provided user secret must be that of the default admin user for the organization or customer. WARNING: Deleting an account will delete all users contained within that account along with all of those users' element and formula instances'. - * @method - * @name platformSDK#deleteAccountById - * @param {integer} id - The ID of the account - */ - deleteAccountById( - id: number - - , - ): deleteAccountByIdParameters { - return new deleteAccountByIdParameters(this, 'DELETE', '/accounts/{id}', id); - } - - /** - * Retrieve an account by ID. The provided user secret must be that of the default admin user for the organization. - * @method - * @name platformSDK#getAccountById - * @param {integer} id - The ID of the account - */ - getAccountById( - id: number - - , - ): getAccountByIdParameters { - return new getAccountByIdParameters(this, 'GET', '/accounts/{id}', id); - } - - /** - * Update an account (identified by your organization secret). The provided user secret must be that of the admin user for the organization. WARNING: If updating the 'active' field to false, the scheduled jobs for all of the account's users will be deleted. - * @method - * @name platformSDK#updateAccountById - * @param {integer} id - The ID of the account - * @param {} body - The updated account information

The fields that can be updated are:
  • externalId - An external account identifier, typically an email address
  • name - The name of the account
  • description - A description of the account

Upon success, the updated object will be returned. - */ - updateAccountById( - id: number - - , - body: - Account - - , - ): updateAccountByIdParameters { - return new updateAccountByIdParameters(this, 'PATCH', '/accounts/{id}', id, body); - } - - /** - * Replace the data for an account by ID. The provided user secret must be that of the admin user for the organization or customer. WARNING: If updating the 'active' field to false, the scheduled jobs for all of the account's users will be deleted. - * @method - * @name platformSDK#replaceAccountById - * @param {integer} id - The ID of the account - * @param {} body - The updated account information. - */ - replaceAccountById( - id: number - - , - body: - Account_PUT - - , - ): replaceAccountByIdParameters { - return new replaceAccountByIdParameters(this, 'PUT', '/accounts/{id}', id, body); - } - - /** - * Delete the default transformation for all elements of a certain type for this account. - * @method - * @name platformSDK#deleteAccountsElementsTransformations - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - */ - deleteAccountsElementsTransformations( - id: number - - , - keyOrId: string - - , - ): deleteAccountsElementsTransformationsParameters { - return new deleteAccountsElementsTransformationsParameters(this, 'DELETE', '/accounts/{id}/elements/{keyOrId}/transformations', id, keyOrId); - } - - /** - * Retrieve the default transformation for all elements of a certain type for this account. - * @method - * @name platformSDK#getAccountsElementsTransformations - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - */ - getAccountsElementsTransformations( - id: number - - , - keyOrId: string - - , - ): getAccountsElementsTransformationsParameters { - return new getAccountsElementsTransformationsParameters(this, 'GET', '/accounts/{id}/elements/{keyOrId}/transformations', id, keyOrId); - } - - /** - * Delete the default transformation for an object for all elements of a certain type for this account. - * @method - * @name platformSDK#deleteAccountsElementsTransformationByObjectName - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The object name - */ - deleteAccountsElementsTransformationByObjectName( - id: number - - , - keyOrId: string - - , - objectName: string - - , - ): deleteAccountsElementsTransformationByObjectNameParameters { - return new deleteAccountsElementsTransformationByObjectNameParameters(this, 'DELETE', '/accounts/{id}/elements/{keyOrId}/transformations/{objectName}', id, keyOrId, objectName); - } - - /** - * Retrieve the default transformation for an object for all elements of a certain type for this account. - * @method - * @name platformSDK#getAccountsElementsTransformationByObjectName - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - */ - getAccountsElementsTransformationByObjectName( - id: number - - , - keyOrId: string - - , - objectName: string - - , - ): getAccountsElementsTransformationByObjectNameParameters { - return new getAccountsElementsTransformationByObjectNameParameters(this, 'GET', '/accounts/{id}/elements/{keyOrId}/transformations/{objectName}', id, keyOrId, objectName); - } - - /** - * Create a default transformation for an object for all elements of a certain type for this account. - * @method - * @name platformSDK#createAccountElementTransformationByObjectName - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation - */ - createAccountElementTransformationByObjectName( - id: number - - , - keyOrId: string - - , - objectName: string - - , - transformation: - Transformation - - , - ): createAccountElementTransformationByObjectNameParameters { - return new createAccountElementTransformationByObjectNameParameters(this, 'POST', '/accounts/{id}/elements/{keyOrId}/transformations/{objectName}', id, keyOrId, objectName, transformation); - } - - /** - * Update the default transformation for an object for all elements of a certain type for this account. - * @method - * @name platformSDK#replaceAccountsElementsTransformationByObjectName - * @param {integer} id - The ID of the account - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation - */ - replaceAccountsElementsTransformationByObjectName( - id: number - - , - keyOrId: string - - , - objectName: string - - , - transformation: - Transformation - - , - ): replaceAccountsElementsTransformationByObjectNameParameters { - return new replaceAccountsElementsTransformationByObjectNameParameters(this, 'PUT', '/accounts/{id}/elements/{keyOrId}/transformations/{objectName}', id, keyOrId, objectName, transformation); - } - - /** - * Finds all instances for the specified account - * @method - * @name platformSDK#getAccountsInstances2 - * @param {integer} id - The ID of the account - */ - getAccountsInstances2( - id: number - - , - ): getAccountsInstances2Parameters { - return new getAccountsInstances2Parameters(this, 'GET', '/accounts/{id}/instances', id); - } - - /** - * Delete all object definitions within a specific account. If no object definitions exist then this will result in an error response. - * @method - * @name platformSDK#deleteAccountsObjectsDefinitions2 - * @param {integer} id - The ID of the account - */ - deleteAccountsObjectsDefinitions2( - id: number - - , - ): deleteAccountsObjectsDefinitions2Parameters { - return new deleteAccountsObjectsDefinitions2Parameters(this, 'DELETE', '/accounts/{id}/objects/definitions', id); - } - - /** - * Retrieve all of the object definitions within a specific account. If no object definitions exist, then this will result in an error response. - * @method - * @name platformSDK#getAccountsObjectsDefinitions2 - * @param {integer} id - The ID of the account - */ - getAccountsObjectsDefinitions2( - id: number - - , - ): getAccountsObjectsDefinitions2Parameters { - return new getAccountsObjectsDefinitions2Parameters(this, 'GET', '/accounts/{id}/objects/definitions', id); - } - - /** - * Create multiple object definitions for a specific account. The definitions allow you to define what an object looks like within an account. - * @method - * @name platformSDK#createAccountObjectDefinition2 - * @param {integer} id - The ID of the account - * @param {} body - The object definitions to create - */ - createAccountObjectDefinition2( - id: number - - , - body: - Dictionary - - , - ): createAccountObjectDefinition2Parameters { - return new createAccountObjectDefinition2Parameters(this, 'POST', '/accounts/{id}/objects/definitions', id, body); - } - - /** - * Delete an object definition associated with an objectName for a specific account. Specifying an object name that does not have an object definition will result in an error response. - * @method - * @name platformSDK#deleteAccountsObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the account - * @param {string} objectName - The name of the object - */ - deleteAccountsObjectsObjectNameDefinitions2( - id: number - - , - objectName: string - - , - ): deleteAccountsObjectsObjectNameDefinitions2Parameters { - return new deleteAccountsObjectsObjectNameDefinitions2Parameters(this, 'DELETE', '/accounts/{id}/objects/{objectName}/definitions', id, objectName); - } - - /** - * Retrieve a specific object definition associated with an objectName within a specific account. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the account - * @param {string} objectName - The name of the object - */ - getAccountsObjectsObjectNameDefinitions2( - id: number - - , - objectName: string - - , - ): getAccountsObjectsObjectNameDefinitions2Parameters { - return new getAccountsObjectsObjectNameDefinitions2Parameters(this, 'GET', '/accounts/{id}/objects/{objectName}/definitions', id, objectName); - } - - /** - * Create a new object definition associated with an objectName within a specific account. The definitions allow you to define what an object looks like within an account. - * @method - * @name platformSDK#createAccountObjectObjectNameDefinition2 - * @param {integer} id - The ID of the account - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - createAccountObjectObjectNameDefinition2( - id: number - - , - objectName: string - - , - body: - Definition - - , - ): createAccountObjectObjectNameDefinition2Parameters { - return new createAccountObjectObjectNameDefinition2Parameters(this, 'POST', '/accounts/{id}/objects/{objectName}/definitions', id, objectName, body); - } - - /** - * Update a specific object's definition associated with an objectName within a specific account. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceAccountsObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the account - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - replaceAccountsObjectsObjectNameDefinitions2( - id: number - - , - objectName: string - - , - body: - Definition - - , - ): replaceAccountsObjectsObjectNameDefinitions2Parameters { - return new replaceAccountsObjectsObjectNameDefinitions2Parameters(this, 'PUT', '/accounts/{id}/objects/{objectName}/definitions', id, objectName, body); - } - - /** - * Find users within an account associated by an ID. Specifying a user within an account associated with a given ID that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsUsers - * @param {integer} id - The ID of the account - */ - getAccountsUsers( - id: number - - , - ): getAccountsUsersParameters { - return new getAccountsUsersParameters(this, 'GET', '/accounts/{id}/users', id); - } - - /** - * Create a user within an account associated by an ID. - * @method - * @name platformSDK#createAccountUser - * @param {integer} id - The ID of the account under which the user should be created - * @param {} body - The user to create

The required fields are:
  • email - The user's email address
  • firstName - The user's first name
  • lastName - The user's last name

Upon success, the created object will be returned. - */ - createAccountUser( - id: number - - , - body: - User - - , - ): createAccountUserParameters { - return new createAccountUserParameters(this, 'POST', '/accounts/{id}/users', id, body); - } - - /** - * Retrieve an account user by name or ID within an account associated by an ID. Specifying a user associated with a given emailOrID or account associated with a given ID that does not exist will result in an error response. - * @method - * @name platformSDK#getAccountsUserByEmailOrId - * @param {integer} id - The ID of the account - * @param {string} emailOrId - The email address or numeric ID of the user - */ - getAccountsUserByEmailOrId( - id: number - - , - emailOrId: string - - , - ): getAccountsUserByEmailOrIdParameters { - return new getAccountsUserByEmailOrIdParameters(this, 'GET', '/accounts/{id}/users/{emailOrId}', id, emailOrId); - } - - /** - * Update an account user by ID within an account associated by an ID. WARNING: If updating the 'active' field to false, all of the scheduled jobs for the user will be deleted. - * @method - * @name platformSDK#updateAccountsUserByUserId - * @param {integer} id - The ID of the account - * @param {integer} userId - The ID of the user - * @param {} body - The updated user information - */ - updateAccountsUserByUserId( - id: number - - , - userId: number - - , - body: - User - - , - ): updateAccountsUserByUserIdParameters { - return new updateAccountsUserByUserIdParameters(this, 'PATCH', '/accounts/{id}/users/{userId}', id, userId, body); - } - - /** - * Replace the data for an account user by ID within an account associated by an ID. WARNING: If updating the 'active' field to false, all of the scheduled jobs for the user will be deleted. - * @method - * @name platformSDK#replaceAccountsUserByUserId - * @param {integer} id - The ID of the account - * @param {integer} userId - The ID of the user - * @param {} body - The updated user information - */ - replaceAccountsUserByUserId( - id: number - - , - userId: number - - , - body: - User_PUT - - , - ): replaceAccountsUserByUserIdParameters { - return new replaceAccountsUserByUserIdParameters(this, 'PUT', '/accounts/{id}/users/{userId}', id, userId, body); - } - - /** - * Delete an account user by ID within an account associated by an ID. WARNING: this action will irreversibly delete all jobs, and formula and element instances associated with the user. - * @method - * @name platformSDK#deleteAccountsUserByUserId - * @param {integer} id - The ID of the account - * @param {integer} userId - The ID of the user - */ - deleteAccountsUserByUserId( - id: number - - , - userId: number - - , - ): deleteAccountsUserByUserIdParameters { - return new deleteAccountsUserByUserIdParameters(this, 'DELETE', '/accounts/{id}/users/{userId}', id, userId); - } - - /** - * Retrieve a list of logged API requests that identify the request, the user who made the request, the time that they made the request, and more. - * @method - * @name platformSDK#getAuditLogs - */ - getAuditLogs(): getAuditLogsParameters { - return new getAuditLogsParameters(this, 'GET', '/audit-logs'); - } - - /** - * Retrieve a list of logged authentication API requests. - * @method - * @name platformSDK#getAuditLogsAuthentication - */ - getAuditLogsAuthentication(): getAuditLogsAuthenticationParameters { - return new getAuditLogsAuthenticationParameters(this, 'GET', '/audit-logs/authentication'); - } - - /** - * Retrieve a list of logged common resource and transformations API requests. - * @method - * @name platformSDK#getAuditLogsCommonResources - */ - getAuditLogsCommonResources(): getAuditLogsCommonResourcesParameters { - return new getAuditLogsCommonResourcesParameters(this, 'GET', '/audit-logs/common-resources'); - } - - /** - * Retrieve a list of logged common resource and transformations API requests by the name of the common resource. - * @method - * @name platformSDK#getAuditLogsCommonResourceByCommonResourceName - */ - getAuditLogsCommonResourceByCommonResourceName(): getAuditLogsCommonResourceByCommonResourceNameParameters { - return new getAuditLogsCommonResourceByCommonResourceNameParameters(this, 'GET', '/audit-logs/common-resources/{commonResourceName}'); - } - - /** - * Retrieve a list of logged element instance API requests. - * @method - * @name platformSDK#getAuditLogsElementInstances - */ - getAuditLogsElementInstances(): getAuditLogsElementInstancesParameters { - return new getAuditLogsElementInstancesParameters(this, 'GET', '/audit-logs/element-instances'); - } - - /** - * Retrieve a list of logged element instance API requests by element instance ID. - * @method - * @name platformSDK#getAuditLogsElementInstanceByElementInstanceId - */ - getAuditLogsElementInstanceByElementInstanceId(): getAuditLogsElementInstanceByElementInstanceIdParameters { - return new getAuditLogsElementInstanceByElementInstanceIdParameters(this, 'GET', '/audit-logs/element-instances/{elementInstanceId}'); - } - - /** - * Retrieve a list of logged element API requests. Requests include element creation and element extension requests. - * @method - * @name platformSDK#getAuditLogsElements - */ - getAuditLogsElements(): getAuditLogsElementsParameters { - return new getAuditLogsElementsParameters(this, 'GET', '/audit-logs/elements'); - } - - /** - * Retrieve a list of logged element API requests by element ID. - * @method - * @name platformSDK#getAuditLogsElementByElementId - */ - getAuditLogsElementByElementId(): getAuditLogsElementByElementIdParameters { - return new getAuditLogsElementByElementIdParameters(this, 'GET', '/audit-logs/elements/{elementId}'); - } - - /** - * Retrieve a list of logged formula instance API requests. - * @method - * @name platformSDK#getAuditLogsFormulaInstances - */ - getAuditLogsFormulaInstances(): getAuditLogsFormulaInstancesParameters { - return new getAuditLogsFormulaInstancesParameters(this, 'GET', '/audit-logs/formula-instances'); - } - - /** - * Retrieve a list of logged formula template API requests. - * @method - * @name platformSDK#getAuditLogsFormulas - */ - getAuditLogsFormulas(): getAuditLogsFormulasParameters { - return new getAuditLogsFormulasParameters(this, 'GET', '/audit-logs/formulas'); - } - - /** - * Retrieve a list of logged formula template API requests by the Entity ID associated with the object affected. Entity IDs include step ids, trigger ids, and configuration ids. - * @method - * @name platformSDK#getAuditLogsFormulaByEntityId - */ - getAuditLogsFormulaByEntityId(): getAuditLogsFormulaByEntityIdParameters { - return new getAuditLogsFormulaByEntityIdParameters(this, 'GET', '/audit-logs/formulas/{entityId}'); - } - - /** - * Reset the user's password. - * @method - * @name platformSDK#createAuthenticationPassword - * @param {} passwordReset - The new password. - */ - createAuthenticationPassword( - passwordReset: - PasswordReset_POST - - , - ): createAuthenticationPasswordParameters { - return new createAuthenticationPasswordParameters(this, 'POST', '/authentication/passwords', passwordReset); - } - - /** - * Create a new identity provider within a customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#createCustomerIdentityProvider - * @param {} identityProvider - The identity provider data - */ - createCustomerIdentityProvider( - identityProvider: - IdentityProvider_POST - - , - ): createCustomerIdentityProviderParameters { - return new createCustomerIdentityProviderParameters(this, 'POST', '/customers/identity-providers', identityProvider); - } - - /** - * Get all of the identity providers within a customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#getCustomersIdentityProviders - */ - getCustomersIdentityProviders(): getCustomersIdentityProvidersParameters { - return new getCustomersIdentityProvidersParameters(this, 'GET', '/customers/identity-providers'); - } - - /** - * Get a specific identity provider within a customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#getCustomersIdentityProviderById - * @param {string} id - The ID of the identity provider record - */ - getCustomersIdentityProviderById( - id: string - - , - ): getCustomersIdentityProviderByIdParameters { - return new getCustomersIdentityProviderByIdParameters(this, 'GET', '/customers/identity-providers/{id}', id); - } - - /** - * Delete an identity provider within a customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#deleteCustomersIdentityProviderById - * @param {string} id - The ID of the identity provider record - */ - deleteCustomersIdentityProviderById( - id: string - - , - ): deleteCustomersIdentityProviderByIdParameters { - return new deleteCustomersIdentityProviderByIdParameters(this, 'DELETE', '/customers/identity-providers/{id}', id); - } - - /** - * Get details of the current user's customer. - * @method - * @name platformSDK#getCustomersMe - */ - getCustomersMe(): getCustomersMeParameters { - return new getCustomersMeParameters(this, 'GET', '/customers/me'); - } - - /** - * Get all of the organizations for the current user's customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#getCustomersOrganizations - */ - getCustomersOrganizations(): getCustomersOrganizationsParameters { - return new getCustomersOrganizationsParameters(this, 'GET', '/customers/organizations'); - } - - /** - * Get a specific organization within the current user's customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#getCustomersOrganizationById - * @param {integer} id - The ID of the organization - */ - getCustomersOrganizationById( - id: number - - , - ): getCustomersOrganizationByIdParameters { - return new getCustomersOrganizationByIdParameters(this, 'GET', '/customers/organizations/{id}', id); - } - - /** - * Delete a specific organization within the current user's customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#deleteCustomersOrganizationById - * @param {integer} id - The ID of the organization - */ - deleteCustomersOrganizationById( - id: number - - , - ): deleteCustomersOrganizationByIdParameters { - return new deleteCustomersOrganizationByIdParameters(this, 'DELETE', '/customers/organizations/{id}', id); - } - - /** - * Create a new user within a customer. The organization and account will also be created, if existing IDs are not provided. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#createCustomerSignup - * @param {} customerSignup - The customer sign up data - */ - createCustomerSignup( - customerSignup: - CustomerSignup_POST - - , - ): createCustomerSignupParameters { - return new createCustomerSignupParameters(this, 'POST', '/customers/signup', customerSignup); - } - - /** - * Create a new element. - * @method - * @name platformSDK#createElement - * @param {} element - The element - */ - createElement( - element: - CreateElement - - , - ): createElementParameters { - return new createElementParameters(this, 'POST', '/elements', element); - } - - /** - * Retrieve all available elements keys. - * @method - * @name platformSDK#getElementsKeys - */ - getElementsKeys(): getElementsKeysParameters { - return new getElementsKeysParameters(this, 'GET', '/elements/keys'); - } - - /** - * Swagger 2.0 schema for the element. - * @method - * @name platformSDK#getElementsDocs - * @param {string} id - The ID of the element - */ - getElementsDocs( - id: string - - , - ): getElementsDocsParameters { - return new getElementsDocsParameters(this, 'GET', '/elements/{id}/docs', id); - } - - /** - * Retrieve the metadata for the specified element. - * @method - * @name platformSDK#getElementsMetadata - * @param {integer} id - The element ID - */ - getElementsMetadata( - id: number - - , - ): getElementsMetadataParameters { - return new getElementsMetadataParameters(this, 'GET', '/elements/{id}/metadata', id); - } - - /** - * Delete an element. - * @method - * @name platformSDK#deleteElementByKeyOrId - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - deleteElementByKeyOrId( - keyOrId: string - - , - ): deleteElementByKeyOrIdParameters { - return new deleteElementByKeyOrIdParameters(this, 'DELETE', '/elements/{keyOrId}', keyOrId); - } - - /** - * Update an element associated with an element key. - * @method - * @name platformSDK#replaceElementByKeyOrId - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {} element - The element - */ - replaceElementByKeyOrId( - keyOrId: string - - , - element: - CreateElement - - , - ): replaceElementByKeyOrIdParameters { - return new replaceElementByKeyOrIdParameters(this, 'PUT', '/elements/{keyOrId}', keyOrId, element); - } - - /** - * De-activate an element, which will remove it from your elements catalog. - * @method - * @name platformSDK#deleteElementsActive - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - deleteElementsActive( - keyOrId: string - - , - ): deleteElementsActiveParameters { - return new deleteElementsActiveParameters(this, 'DELETE', '/elements/{keyOrId}/active', keyOrId); - } - - /** - * Activate an element to publish it in your elements catalog. - * @method - * @name platformSDK#replaceElementsActive - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - replaceElementsActive( - keyOrId: string - - , - ): replaceElementsActiveParameters { - return new replaceElementsActiveParameters(this, 'PUT', '/elements/{keyOrId}/active', keyOrId); - } - - /** - * Clone an element - * @method - * @name platformSDK#createElementClone - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - createElementClone( - keyOrId: string - - , - ): createElementCloneParameters { - return new createElementCloneParameters(this, 'POST', '/elements/{keyOrId}/clone', keyOrId); - } - - /** - * Retrieve a specific element configuration associated with an element key. Specifying an element associated with an element key that does not exist results in an error response. - * @method - * @name platformSDK#getElementsConfiguration - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - getElementsConfiguration( - keyOrId: string - - , - ): getElementsConfigurationParameters { - return new getElementsConfigurationParameters(this, 'GET', '/elements/{keyOrId}/configuration', keyOrId); - } - - /** - * Create a new configuration value for an element - * @method - * @name platformSDK#createElementConfiguration - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {} configuration - The configuration to create - */ - createElementConfiguration( - keyOrId: string - - , - configuration: - Configuration - - , - ): createElementConfigurationParameters { - return new createElementConfigurationParameters(this, 'POST', '/elements/{keyOrId}/configuration', keyOrId, configuration); - } - - /** - * Delete a configuration value for an element - * @method - * @name platformSDK#deleteElementsConfigurationByConfigurationKey - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {string} configurationKey - The configuration key - */ - deleteElementsConfigurationByConfigurationKey( - keyOrId: string - - , - configurationKey: string - - , - ): deleteElementsConfigurationByConfigurationKeyParameters { - return new deleteElementsConfigurationByConfigurationKeyParameters(this, 'DELETE', '/elements/{keyOrId}/configuration/{configurationKey}', keyOrId, configurationKey); - } - - /** - * Update an existing configuration value for an element - * @method - * @name platformSDK#replaceElementsConfigurationByConfigurationKey - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {string} configurationKey - The configuration key - * @param {} configuration - The configuration object - */ - replaceElementsConfigurationByConfigurationKey( - keyOrId: string - - , - configurationKey: string - - , - configuration: - Configuration - - , - ): replaceElementsConfigurationByConfigurationKeyParameters { - return new replaceElementsConfigurationByConfigurationKeyParameters(this, 'PUT', '/elements/{keyOrId}/configuration/{configurationKey}', keyOrId, configurationKey, configuration); - } - - /** - * Downloads a specific element JSON data in a file associated with an element key. Specifying an element associated with an element key that does not exist results in an error response. - * @method - * @name platformSDK#getElementsExport - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - getElementsExport( - keyOrId: string - - , - ): getElementsExportParameters { - return new getElementsExportParameters(this, 'GET', '/elements/{keyOrId}/export', keyOrId); - } - - /** - * Retrieve the hooks that exists for a element - * @method - * @name platformSDK#getElementsHooks - * @param {string} keyOrId - The element key - */ - getElementsHooks( - keyOrId: string - - , - ): getElementsHooksParameters { - return new getElementsHooksParameters(this, 'GET', '/elements/{keyOrId}/hooks', keyOrId); - } - - /** - * Create a new hook for a element - * @method - * @name platformSDK#createElementHook - * @param {string} keyOrId - The element key - * @param {} model - The element Hook - */ - createElementHook( - keyOrId: string - - , - model: - Hook - - , - ): createElementHookParameters { - return new createElementHookParameters(this, 'POST', '/elements/{keyOrId}/hooks', keyOrId, model); - } - - /** - * Get an existing hook for an custom element - * @method - * @name platformSDK#getElementsHookByHookId - * @param {string} keyOrId - The element key - * @param {string} hookId - The Hook ID - */ - getElementsHookByHookId( - keyOrId: string - - , - hookId: string - - , - ): getElementsHookByHookIdParameters { - return new getElementsHookByHookIdParameters(this, 'GET', '/elements/{keyOrId}/hooks/{hookId}', keyOrId, hookId); - } - - /** - * Delete one of the hooks for a element - * @method - * @name platformSDK#deleteElementsHookByHookId - * @param {string} keyOrId - The element key - * @param {string} hookId - The hook ID - */ - deleteElementsHookByHookId( - keyOrId: string - - , - hookId: string - - , - ): deleteElementsHookByHookIdParameters { - return new deleteElementsHookByHookIdParameters(this, 'DELETE', '/elements/{keyOrId}/hooks/{hookId}', keyOrId, hookId); - } - - /** - * Update an existing Hook for an element - * @method - * @name platformSDK#replaceElementsHookByHookId - * @param {string} keyOrId - The element key - * @param {string} hookId - The hook ID - * @param {} parameter - The hook - */ - replaceElementsHookByHookId( - keyOrId: string - - , - hookId: string - - , - parameter: - Hook - - , - ): replaceElementsHookByHookIdParameters { - return new replaceElementsHookByHookIdParameters(this, 'PUT', '/elements/{keyOrId}/hooks/{hookId}', keyOrId, hookId, parameter); - } - - /** - * Retrieve all element instances from a specified path. The instances go through Cloud Elements to your console. Specifying an instance that does not exist results in an error response. - * @method - * @name platformSDK#getElementsInstances - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - */ - getElementsInstances( - keyOrId: string - - , - ): getElementsInstancesParameters { - return new getElementsInstancesParameters(this, 'GET', '/elements/{keyOrId}/instances', keyOrId); - } - - /** - * Create a new element instance in your console. Instance creation will flow through Cloud Elements to your console. - * @method - * @name platformSDK#createElementInstance - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {} elementInstance - The element instance to create - */ - createElementInstance( - keyOrId: string - - , - elementInstance: - ElementInstance - - , - ): createElementInstanceParameters { - return new createElementInstanceParameters(this, 'POST', '/elements/{keyOrId}/instances', keyOrId, elementInstance); - } - - /** - * Delete an instance associated with a given ID from your console. Specifying an instance associated with a given ID that does not exist will result in an error message. - * @method - * @name platformSDK#deleteElementsInstanceById - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {integer} id - The ID of the element instance - */ - deleteElementsInstanceById( - keyOrId: string - - , - id: number - - , - ): deleteElementsInstanceByIdParameters { - return new deleteElementsInstanceByIdParameters(this, 'DELETE', '/elements/{keyOrId}/instances/{id}', keyOrId, id); - } - - /** - * Retrieve an element instance associated with a given ID from a specified path. The instance goes through Cloud Elements to your console. Specifying an instance with an associated ID that does not exist results in an error response. - * @method - * @name platformSDK#getElementsInstanceById - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {integer} id - The ID of the element instance - */ - getElementsInstanceById( - keyOrId: string - - , - id: number - - , - ): getElementsInstanceByIdParameters { - return new getElementsInstanceByIdParameters(this, 'GET', '/elements/{keyOrId}/instances/{id}', keyOrId, id); - } - - /** - * Update an instance associated with a given ID from your console. Specifying an instance associated with an ID that does not exist will result in an error message. - * @method - * @name platformSDK#replaceElementsInstanceById - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {integer} id - The ID of the element instance - * @param {} elementInstance - The fields of the element instance to update - */ - replaceElementsInstanceById( - keyOrId: string - - , - id: number - - , - elementInstance: - ElementInstance - - , - ): replaceElementsInstanceByIdParameters { - return new replaceElementsInstanceByIdParameters(this, 'PUT', '/elements/{keyOrId}/instances/{id}', keyOrId, id, elementInstance); - } - - /** - * Retrieve the OAuth 1 request token. Not applicable with OAuth 2 Elements. - * @method - * @name platformSDK#getElementsOauthToken - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {string} apiKey - The OAuth API key - * @param {string} apiSecret - The OAuth API secret - * @param {string} callbackUrl - The OAuth callback URL - */ - getElementsOauthToken( - keyOrId: string - - , - apiKey: string - - , - apiSecret: string - - , - callbackUrl: string - - , - ): getElementsOauthTokenParameters { - return new getElementsOauthTokenParameters(this, 'GET', '/elements/{keyOrId}/oauth/token', keyOrId, apiKey, apiSecret, callbackUrl); - } - - /** - * Retrieve the OAuth 2 redirect URL associated with the specified element. Specifying an element key associated with an element that does not exist results in an error response. - * @method - * @name platformSDK#getElementsOauthUrl - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {string} apiKey - The OAuth API key - * @param {string} apiSecret - The OAuth API secret (note: For HubSpot, this is the Portal ID.) - * @param {string} callbackUrl - The OAuth callback URL - */ - getElementsOauthUrl( - keyOrId: string - - , - apiKey: string - - , - apiSecret: string - - , - callbackUrl: string - - , - ): getElementsOauthUrlParameters { - return new getElementsOauthUrlParameters(this, 'GET', '/elements/{keyOrId}/oauth/url', keyOrId, apiKey, apiSecret, callbackUrl); - } - - /** - * Retrieve the OAuth 2 redirect URL associated with the specified element. Specifying an element key associated with an element that does not exist results in an error response. - * @method - * @name platformSDK#createElementOauthUrl - * @param {string} keyOrId - The element key (i.e. 'dropbox', 'sfdc', etc.) or ID - * @param {} oauthInfo - The data for generating the OAuth redirect URL - */ - createElementOauthUrl( - keyOrId: string - - , - oauthInfo: - OAuthInfo - - , - ): createElementOauthUrlParameters { - return new createElementOauthUrlParameters(this, 'POST', '/elements/{keyOrId}/oauth/url', keyOrId, oauthInfo); - } - - /** - * Retrieve all of the objects that exist for a custom element - * @method - * @name platformSDK#getElementsObjects - * @param {string} keyOrId - The element key - */ - getElementsObjects( - keyOrId: string - - , - ): getElementsObjectsParameters { - return new getElementsObjectsParameters(this, 'GET', '/elements/{keyOrId}/objects', keyOrId); - } - - /** - * Create a new object for a element - * @method - * @name platformSDK#createElementObject - * @param {string} keyOrId - The element key - * @param {} object - The Object - */ - createElementObject( - keyOrId: string - - , - object: - Object - - , - ): createElementObjectParameters { - return new createElementObjectParameters(this, 'POST', '/elements/{keyOrId}/objects', keyOrId, object); - } - - /** - * Delete a object for a custom element - * @method - * @name platformSDK#deleteElementsObjectById - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - */ - deleteElementsObjectById( - keyOrId: string - - , - id: string - - , - ): deleteElementsObjectByIdParameters { - return new deleteElementsObjectByIdParameters(this, 'DELETE', '/elements/{keyOrId}/objects/{id}', keyOrId, id); - } - - /** - * Update an existing object for an element - * @method - * @name platformSDK#replaceElementsObjectById - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {} object - The Object - */ - replaceElementsObjectById( - keyOrId: string - - , - id: string - - , - object: - Object - - , - ): replaceElementsObjectByIdParameters { - return new replaceElementsObjectByIdParameters(this, 'PUT', '/elements/{keyOrId}/objects/{id}', keyOrId, id, object); - } - - /** - * Get an existing object for an element - * @method - * @name platformSDK#getElementsObjectById - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - */ - getElementsObjectById( - keyOrId: string - - , - id: string - - , - ): getElementsObjectByIdParameters { - return new getElementsObjectByIdParameters(this, 'GET', '/elements/{keyOrId}/objects/{id}', keyOrId, id); - } - - /** - * Create a Field for an element Object - * @method - * @name platformSDK#createElementObjectField - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {} field - The Field - */ - createElementObjectField( - keyOrId: string - - , - id: string - - , - field: - Field - - , - ): createElementObjectFieldParameters { - return new createElementObjectFieldParameters(this, 'POST', '/elements/{keyOrId}/objects/{id}/fields', keyOrId, id, field); - } - - /** - * Retrieve all of the fields that exist for a element object - * @method - * @name platformSDK#getElementsObjectsFields - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - */ - getElementsObjectsFields( - keyOrId: string - - , - id: string - - , - ): getElementsObjectsFieldsParameters { - return new getElementsObjectsFieldsParameters(this, 'GET', '/elements/{keyOrId}/objects/{id}/fields', keyOrId, id); - } - - /** - * Delete a field for an element object - * @method - * @name platformSDK#deleteElementsObjectsFieldByFieldId - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {string} fieldId - The Field Id - */ - deleteElementsObjectsFieldByFieldId( - keyOrId: string - - , - id: string - - , - fieldId: string - - , - ): deleteElementsObjectsFieldByFieldIdParameters { - return new deleteElementsObjectsFieldByFieldIdParameters(this, 'DELETE', '/elements/{keyOrId}/objects/{id}/fields/{fieldId}', keyOrId, id, fieldId); - } - - /** - * Update an existing field for an element object - * @method - * @name platformSDK#replaceElementsObjectsFieldByFieldId - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {string} fieldId - The Field Id - * @param {} object - The Field - */ - replaceElementsObjectsFieldByFieldId( - keyOrId: string - - , - id: string - - , - fieldId: string - - , - object: - Field - - , - ): replaceElementsObjectsFieldByFieldIdParameters { - return new replaceElementsObjectsFieldByFieldIdParameters(this, 'PUT', '/elements/{keyOrId}/objects/{id}/fields/{fieldId}', keyOrId, id, fieldId, object); - } - - /** - * Get an existing field for an element object - * @method - * @name platformSDK#getElementsObjectsFieldByFieldId - * @param {string} keyOrId - The element key - * @param {string} id - The Object Id - * @param {string} fieldId - The Field Id - */ - getElementsObjectsFieldByFieldId( - keyOrId: string - - , - id: string - - , - fieldId: string - - , - ): getElementsObjectsFieldByFieldIdParameters { - return new getElementsObjectsFieldByFieldIdParameters(this, 'GET', '/elements/{keyOrId}/objects/{id}/fields/{fieldId}', keyOrId, id, fieldId); - } - - /** - * Retrieve all of the default parameters for an element - * @method - * @name platformSDK#getElementsParameters - * @param {string} keyOrId - The element key - */ - getElementsParameters( - keyOrId: string - - , - ): getElementsParametersParameters { - return new getElementsParametersParameters(this, 'GET', '/elements/{keyOrId}/parameters', keyOrId); - } - - /** - * Create a new default parameter for an element - * @method - * @name platformSDK#createElementParameter - * @param {string} keyOrId - The element key - * @param {} parameter - The default parameter - */ - createElementParameter( - keyOrId: string - - , - parameter: - DefaultParameter - - , - ): createElementParameterParameters { - return new createElementParameterParameters(this, 'POST', '/elements/{keyOrId}/parameters', keyOrId, parameter); - } - - /** - * Delete a default parameter for an element - * @method - * @name platformSDK#deleteElementsParameterById - * @param {string} keyOrId - The element key - * @param {string} id - The ID of the parameter - * @param {} parameter - The default parameter - */ - deleteElementsParameterById( - keyOrId: string - - , - id: string - - , - parameter: - DefaultParameter - - , - ): deleteElementsParameterByIdParameters { - return new deleteElementsParameterByIdParameters(this, 'DELETE', '/elements/{keyOrId}/parameters/{id}', keyOrId, id, parameter); - } - - /** - * Update a default parameter for an element - * @method - * @name platformSDK#replaceElementsParameterById - * @param {string} keyOrId - The element key - * @param {string} id - The ID of the parameter - * @param {} parameter - The default parameter - */ - replaceElementsParameterById( - keyOrId: string - - , - id: string - - , - parameter: - DefaultParameter - - , - ): replaceElementsParameterByIdParameters { - return new replaceElementsParameterByIdParameters(this, 'PUT', '/elements/{keyOrId}/parameters/{id}', keyOrId, id, parameter); - } - - /** - * Retrieve all of the resources that exist for a custom element - * @method - * @name platformSDK#getElementsResources - * @param {string} keyOrId - The element key - */ - getElementsResources( - keyOrId: string - - , - ): getElementsResourcesParameters { - return new getElementsResourcesParameters(this, 'GET', '/elements/{keyOrId}/resources', keyOrId); - } - - /** - * Create a new resource for a custom element - * @method - * @name platformSDK#createElementResource - * @param {string} keyOrId - The element key - * @param {} resource - The resource - */ - createElementResource( - keyOrId: string - - , - resource: - Resource - - , - ): createElementResourceParameters { - return new createElementResourceParameters(this, 'POST', '/elements/{keyOrId}/resources', keyOrId, resource); - } - - /** - * Delete a resource for a custom element - * @method - * @name platformSDK#deleteElementsResourceById - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - deleteElementsResourceById( - keyOrId: string - - , - id: string - - , - ): deleteElementsResourceByIdParameters { - return new deleteElementsResourceByIdParameters(this, 'DELETE', '/elements/{keyOrId}/resources/{id}', keyOrId, id); - } - - /** - * Update an existing resource for an element - * @method - * @name platformSDK#replaceElementsResourceById - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {} resource - The resource - */ - replaceElementsResourceById( - keyOrId: string - - , - id: string - - , - resource: - Resource - - , - ): replaceElementsResourceByIdParameters { - return new replaceElementsResourceByIdParameters(this, 'PUT', '/elements/{keyOrId}/resources/{id}', keyOrId, id, resource); - } - - /** - * Get an existing resource for an element - * @method - * @name platformSDK#getElementsResourceById - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - getElementsResourceById( - keyOrId: string - - , - id: string - - , - ): getElementsResourceByIdParameters { - return new getElementsResourceByIdParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}', keyOrId, id); - } - - /** - * Retrieve the hooks that exists for a custom element's resource - * @method - * @name platformSDK#getElementsResourcesHooks - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - getElementsResourcesHooks( - keyOrId: string - - , - id: string - - , - ): getElementsResourcesHooksParameters { - return new getElementsResourcesHooksParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}/hooks', keyOrId, id); - } - - /** - * Create a new hook for a custom element's resource - * @method - * @name platformSDK#createElementResourceHook - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {} model - The resource Hook - */ - createElementResourceHook( - keyOrId: string - - , - id: string - - , - model: - Hook - - , - ): createElementResourceHookParameters { - return new createElementResourceHookParameters(this, 'POST', '/elements/{keyOrId}/resources/{id}/hooks', keyOrId, id, model); - } - - /** - * Get an existing hook for an custom element's resource - * @method - * @name platformSDK#getElementsResourcesHookByHookId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} hookId - The Hook ID - */ - getElementsResourcesHookByHookId( - keyOrId: string - - , - id: string - - , - hookId: string - - , - ): getElementsResourcesHookByHookIdParameters { - return new getElementsResourcesHookByHookIdParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}/hooks/{hookId}', keyOrId, id, hookId); - } - - /** - * Delete one of the hooks for a custom element's resource - * @method - * @name platformSDK#deleteElementsResourcesHookByHookId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} hookId - The hook ID - */ - deleteElementsResourcesHookByHookId( - keyOrId: string - - , - id: string - - , - hookId: string - - , - ): deleteElementsResourcesHookByHookIdParameters { - return new deleteElementsResourcesHookByHookIdParameters(this, 'DELETE', '/elements/{keyOrId}/resources/{id}/hooks/{hookId}', keyOrId, id, hookId); - } - - /** - * Update an existing Hook for an element's resource - * @method - * @name platformSDK#replaceElementsResourcesHookByHookId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} hookId - The hook ID - * @param {} parameter - The hook - */ - replaceElementsResourcesHookByHookId( - keyOrId: string - - , - id: string - - , - hookId: string - - , - parameter: - Hook - - , - ): replaceElementsResourcesHookByHookIdParameters { - return new replaceElementsResourcesHookByHookIdParameters(this, 'PUT', '/elements/{keyOrId}/resources/{id}/hooks/{hookId}', keyOrId, id, hookId, parameter); - } - - /** - * Delete the model for this custom element's resource - * @method - * @name platformSDK#deleteElementsResourcesModels - * @param {string} keyOrId - The element key - * @param {integer} id - The resource ID - */ - deleteElementsResourcesModels( - keyOrId: string - - , - id: number - - , - ): deleteElementsResourcesModelsParameters { - return new deleteElementsResourcesModelsParameters(this, 'DELETE', '/elements/{keyOrId}/resources/{id}/models', keyOrId, id); - } - - /** - * Retrieve the models that exists for a custom element's resource - * @method - * @name platformSDK#getElementsResourcesModels - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - getElementsResourcesModels( - keyOrId: string - - , - id: string - - , - ): getElementsResourcesModelsParameters { - return new getElementsResourcesModelsParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}/models', keyOrId, id); - } - - /** - * Create a new model for a custom element's resource - * @method - * @name platformSDK#createElementResourceModel - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {} model - The model - */ - createElementResourceModel( - keyOrId: string - - , - id: string - - , - model: - Model - - , - ): createElementResourceModelParameters { - return new createElementResourceModelParameters(this, 'POST', '/elements/{keyOrId}/resources/{id}/models', keyOrId, id, model); - } - - /** - * Retrieve all of the parameters for a resource - * @method - * @name platformSDK#getElementsResourcesParameters - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - */ - getElementsResourcesParameters( - keyOrId: string - - , - id: string - - , - ): getElementsResourcesParametersParameters { - return new getElementsResourcesParametersParameters(this, 'GET', '/elements/{keyOrId}/resources/{id}/parameters', keyOrId, id); - } - - /** - * Create a new parameter for a custom element's resource - * @method - * @name platformSDK#createElementResourceParameter - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {} parameter - The parameter - */ - createElementResourceParameter( - keyOrId: string - - , - id: string - - , - parameter: - Parameter - - , - ): createElementResourceParameterParameters { - return new createElementResourceParameterParameters(this, 'POST', '/elements/{keyOrId}/resources/{id}/parameters', keyOrId, id, parameter); - } - - /** - * Delete one of the parameters for a custom element's resource - * @method - * @name platformSDK#deleteElementsResourcesParameterByParameterId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} parameterId - The parameter ID - */ - deleteElementsResourcesParameterByParameterId( - keyOrId: string - - , - id: string - - , - parameterId: string - - , - ): deleteElementsResourcesParameterByParameterIdParameters { - return new deleteElementsResourcesParameterByParameterIdParameters(this, 'DELETE', '/elements/{keyOrId}/resources/{id}/parameters/{parameterId}', keyOrId, id, parameterId); - } - - /** - * Update an existing parameters for an element's resource - * @method - * @name platformSDK#replaceElementsResourcesParameterByParameterId - * @param {string} keyOrId - The element key - * @param {string} id - The resource ID - * @param {string} parameterId - The parameter ID - * @param {} parameter - The parameter - */ - replaceElementsResourcesParameterByParameterId( - keyOrId: string - - , - id: string - - , - parameterId: string - - , - parameter: - Parameter - - , - ): replaceElementsResourcesParameterByParameterIdParameters { - return new replaceElementsResourcesParameterByParameterIdParameters(this, 'PUT', '/elements/{keyOrId}/resources/{id}/parameters/{parameterId}', keyOrId, id, parameterId, parameter); - } - - /** - * Retrieve a list of all formula templates. - * @method - * @name platformSDK#getFormulas - */ - getFormulas(): getFormulasParameters { - return new getFormulasParameters(this, 'GET', '/formulas'); - } - - /** - * Create a new formula template. - * @method - * @name platformSDK#createFormula - * @param {} body - The formula template. - */ - createFormula( - body: - CreateFormula - - , - ): createFormulaParameters { - return new createFormulaParameters(this, 'POST', '/formulas', body); - } - - /** - * Retrieve the number of formula executions within a given date/time range - * @method - * @name platformSDK#getFormulasAnalytics - */ - getFormulasAnalytics(): getFormulasAnalyticsParameters { - return new getFormulasAnalyticsParameters(this, 'GET', '/formulas/analytics'); - } - - /** - * Retrieve the status analytics of formula step executions within a given date/time range, aggregated by account ID. This API is really only useful for organization admins where more than one account exists. - * @method - * @name platformSDK#getFormulasAnalyticsAccounts - */ - getFormulasAnalyticsAccounts(): getFormulasAnalyticsAccountsParameters { - return new getFormulasAnalyticsAccountsParameters(this, 'GET', '/formulas/analytics/accounts'); - } - - /** - * Retrieve the status analytics of formula step executions within a given date/time range, aggregated by formula instance ID. - * @method - * @name platformSDK#getFormulasAnalyticsInstances - */ - getFormulasAnalyticsInstances(): getFormulasAnalyticsInstancesParameters { - return new getFormulasAnalyticsInstancesParameters(this, 'GET', '/formulas/analytics/instances'); - } - - /** - * Retrieve the status analytics of formula executions within a given date/time range - * @method - * @name platformSDK#getFormulasAnalyticsStatuses - */ - getFormulasAnalyticsStatuses(): getFormulasAnalyticsStatusesParameters { - return new getFormulasAnalyticsStatusesParameters(this, 'GET', '/formulas/analytics/statuses'); - } - - /** - * Retrieve the current status counts of formula executions. If any executions are in a 'retry' status, a list of those execution IDs will be returned, along with the retry attempt that will be executed next. - * @method - * @name platformSDK#getFormulasAnalyticsStatusesNow - */ - getFormulasAnalyticsStatusesNow(): getFormulasAnalyticsStatusesNowParameters { - return new getFormulasAnalyticsStatusesNowParameters(this, 'GET', '/formulas/analytics/statuses/now'); - } - - /** - * Retrieve the analytics (execution time, execution delay, etc.) of formula step executions within a given date/time range - * @method - * @name platformSDK#getFormulasAnalyticsSteps - */ - getFormulasAnalyticsSteps(): getFormulasAnalyticsStepsParameters { - return new getFormulasAnalyticsStepsParameters(this, 'GET', '/formulas/analytics/steps'); - } - - /** - * Retrieve all instances of all formula templates. - * @method - * @name platformSDK#getFormulasInstances - */ - getFormulasInstances(): getFormulasInstancesParameters { - return new getFormulasInstancesParameters(this, 'GET', '/formulas/instances'); - } - - /** - * Retrieve all step execution values for a formula step execution. - * @method - * @name platformSDK#getFormulasInstancesExecutionsStepsValues - * @param {integer} stepExecutionId - The ID of the step execution. - */ - getFormulasInstancesExecutionsStepsValues( - stepExecutionId: number - - , - ): getFormulasInstancesExecutionsStepsValuesParameters { - return new getFormulasInstancesExecutionsStepsValuesParameters(this, 'GET', '/formulas/instances/executions/steps/{stepExecutionId}/values', stepExecutionId); - } - - /** - * Retrieve a formula instance executions. - * @method - * @name platformSDK#getFormulasInstancesExecutionByExecutionId - * @param {integer} executionId - The ID of the formula instance execution. - */ - getFormulasInstancesExecutionByExecutionId( - executionId: number - - , - ): getFormulasInstancesExecutionByExecutionIdParameters { - return new getFormulasInstancesExecutionByExecutionIdParameters(this, 'GET', '/formulas/instances/executions/{executionId}', executionId); - } - - /** - * Cancel a formula instance execution - * @method - * @name platformSDK#updateFormulasInstancesExecutionByExecutionId - * @param {integer} executionId - The ID of the formula instance execution. - * @param {} status - The change in status you want to effect, currently only 'cancel' is supported - */ - updateFormulasInstancesExecutionByExecutionId( - executionId: number - - , - status: - FormulaInstanceStatus - - , - ): updateFormulasInstancesExecutionByExecutionIdParameters { - return new updateFormulasInstancesExecutionByExecutionIdParameters(this, 'PATCH', '/formulas/instances/executions/{executionId}', executionId, status); - } - - /** - * Retrieve all step execution errors for a formula execution. - * @method - * @name platformSDK#getFormulasInstancesExecutionsErrors - * @param {integer} executionId - The ID of the execution. - */ - getFormulasInstancesExecutionsErrors( - executionId: number - - , - ): getFormulasInstancesExecutionsErrorsParameters { - return new getFormulasInstancesExecutionsErrorsParameters(this, 'GET', '/formulas/instances/executions/{executionId}/errors', executionId); - } - - /** - * Retrieve all step executions for a formula execution. - * @method - * @name platformSDK#getFormulasInstancesExecutionsSteps - * @param {integer} executionId - The ID of the execution. - */ - getFormulasInstancesExecutionsSteps( - executionId: number - - , - ): getFormulasInstancesExecutionsStepsParameters { - return new getFormulasInstancesExecutionsStepsParameters(this, 'GET', '/formulas/instances/executions/{executionId}/steps', executionId); - } - - /** - * Retrieve a formula instance. - * @method - * @name platformSDK#getFormulasInstanceByInstanceId - * @param {integer} instanceId - The ID of the formula instance. - */ - getFormulasInstanceByInstanceId( - instanceId: number - - , - ): getFormulasInstanceByInstanceIdParameters { - return new getFormulasInstanceByInstanceIdParameters(this, 'GET', '/formulas/instances/{instanceId}', instanceId); - } - - /** - * Retrieve all executions for a formula instance. - * @method - * @name platformSDK#getFormulasInstancesExecutions - * @param {integer} instanceId - The ID of the formula instance. - */ - getFormulasInstancesExecutions( - instanceId: number - - , - ): getFormulasInstancesExecutionsParameters { - return new getFormulasInstancesExecutionsParameters(this, 'GET', '/formulas/instances/{instanceId}/executions', instanceId); - } - - /** - * Manually kickoff a formula instance from the given JSON trigger payload - * @method - * @name platformSDK#createFormulaInstanceExecution - * @param {integer} instanceId - The ID of the formula instance. - */ - createFormulaInstanceExecution( - instanceId: number - - , - ): createFormulaInstanceExecutionParameters { - return new createFormulaInstanceExecutionParameters(this, 'POST', '/formulas/instances/{instanceId}/executions', instanceId); - } - - /** - * Retrieve all executions that have a step execution error, for a formula instance. - * @method - * @name platformSDK#getFormulasInstancesExecutionsErrors2 - * @param {integer} instanceId - The ID of the formula instance. - */ - getFormulasInstancesExecutionsErrors2( - instanceId: number - - , - ): getFormulasInstancesExecutionsErrors2Parameters { - return new getFormulasInstancesExecutionsErrors2Parameters(this, 'GET', '/formulas/instances/{instanceId}/executions/errors', instanceId); - } - - /** - * Retrieve all executions with a step execution error for all formula instances of a formula. - * @method - * @name platformSDK#getFormulasInstancesExecutionsErrors2_1 - * @param {integer} formulaId - The ID of the formula. - */ - getFormulasInstancesExecutionsErrors2_1( - formulaId: number - - , - ): getFormulasInstancesExecutionsErrors2_1Parameters { - return new getFormulasInstancesExecutionsErrors2_1Parameters(this, 'GET', '/formulas/{formulaId}/instances/executions/errors', formulaId); - } - - /** - * Delete a specific formula template. - * @method - * @name platformSDK#deleteFormulaById - * @param {integer} id - The ID of the formula template. - */ - deleteFormulaById( - id: number - - , - ): deleteFormulaByIdParameters { - return new deleteFormulaByIdParameters(this, 'DELETE', '/formulas/{id}', id); - } - - /** - * Retrieve a specific formula template. - * @method - * @name platformSDK#getFormulaById - * @param {integer} id - The ID of the formula template. - */ - getFormulaById( - id: number - - , - ): getFormulaByIdParameters { - return new getFormulaByIdParameters(this, 'GET', '/formulas/{id}', id); - } - - /** - * Replace a specific formula template with the provided template. - * @method - * @name platformSDK#replaceFormulaById - * @param {integer} id - The ID of the formula template. - * @param {} formula - The formula template. - */ - replaceFormulaById( - id: number - - , - formula: - UpdateFormula - - , - ): replaceFormulaByIdParameters { - return new replaceFormulaByIdParameters(this, 'PUT', '/formulas/{id}', id, formula); - } - - /** - * Partially update a formula template's metadata. - * @method - * @name platformSDK#updateFormulaById - * @param {integer} id - The ID of the formula template. - * @param {} formula - The formula template. - */ - updateFormulaById( - id: number - - , - formula: - PartialUpdateFormula - - , - ): updateFormulaByIdParameters { - return new updateFormulaByIdParameters(this, 'PATCH', '/formulas/{id}', id, formula); - } - - /** - * Create a new formula configuration. - * @method - * @name platformSDK#createFormulaConfiguration - * @param {integer} id - The ID of the formula template. - * @param {} configuration - The formula configuration. - */ - createFormulaConfiguration( - id: number - - , - configuration: - CreateConfiguration - - , - ): createFormulaConfigurationParameters { - return new createFormulaConfigurationParameters(this, 'POST', '/formulas/{id}/configuration', id, configuration); - } - - /** - * Delete a formula configuration. - * @method - * @name platformSDK#deleteFormulasConfigurationByConfigurationId - * @param {integer} id - The ID of the formula template. - * @param {integer} configurationId - The ID of the formula configuration. - */ - deleteFormulasConfigurationByConfigurationId( - id: number - - , - configurationId: number - - , - ): deleteFormulasConfigurationByConfigurationIdParameters { - return new deleteFormulasConfigurationByConfigurationIdParameters(this, 'DELETE', '/formulas/{id}/configuration/{configurationId}', id, configurationId); - } - - /** - * Retrieve a formula configuration. - * @method - * @name platformSDK#getFormulasConfigurationByConfigurationId - * @param {integer} id - The ID of the formula template. - * @param {integer} configurationId - The ID of the formula configuration. - */ - getFormulasConfigurationByConfigurationId( - id: number - - , - configurationId: number - - , - ): getFormulasConfigurationByConfigurationIdParameters { - return new getFormulasConfigurationByConfigurationIdParameters(this, 'GET', '/formulas/{id}/configuration/{configurationId}', id, configurationId); - } - - /** - * Update a formula configuration. - * @method - * @name platformSDK#replaceFormulasConfigurationByConfigurationId - * @param {integer} id - The ID of the formula template. - * @param {integer} configurationId - The ID of the formula configuration. - * @param {} configuration - The formula configuration. - */ - replaceFormulasConfigurationByConfigurationId( - id: number - - , - configurationId: number - - , - configuration: - CreateConfiguration - - , - ): replaceFormulasConfigurationByConfigurationIdParameters { - return new replaceFormulasConfigurationByConfigurationIdParameters(this, 'PUT', '/formulas/{id}/configuration/{configurationId}', id, configurationId, configuration); - } - - /** - * Export a formula template as a JSON file. - * @method - * @name platformSDK#getFormulasExport - * @param {integer} id - The ID of the formula template. - */ - getFormulasExport( - id: number - - , - ): getFormulasExportParameters { - return new getFormulasExportParameters(this, 'GET', '/formulas/{id}/export', id); - } - - /** - * Retrieve a list of all instances associated with a particular formula template. - * @method - * @name platformSDK#getFormulasInstances2 - * @param {integer} id - The ID of the formula template. - */ - getFormulasInstances2( - id: number - - , - ): getFormulasInstances2Parameters { - return new getFormulasInstances2Parameters(this, 'GET', '/formulas/{id}/instances', id); - } - - /** - * Create an instance of a formula template. - * @method - * @name platformSDK#createFormulaInstance - * @param {integer} id - The ID of the formula template. - * @param {} formulaInstance - The formula instance. - */ - createFormulaInstance( - id: number - - , - formulaInstance: - CreateFormulaInstance - - , - ): createFormulaInstanceParameters { - return new createFormulaInstanceParameters(this, 'POST', '/formulas/{id}/instances', id, formulaInstance); - } - - /** - * Delete a specific formula instance of a specific formula template. - * @method - * @name platformSDK#deleteFormulasInstanceByInstanceId - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - deleteFormulasInstanceByInstanceId( - id: number - - , - instanceId: number - - , - ): deleteFormulasInstanceByInstanceIdParameters { - return new deleteFormulasInstanceByInstanceIdParameters(this, 'DELETE', '/formulas/{id}/instances/{instanceId}', id, instanceId); - } - - /** - * Retrieve a specific instance of a specific formula template. - * @method - * @name platformSDK#getFormulasInstanceByInstanceId2 - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - getFormulasInstanceByInstanceId2( - id: number - - , - instanceId: number - - , - ): getFormulasInstanceByInstanceId2Parameters { - return new getFormulasInstanceByInstanceId2Parameters(this, 'GET', '/formulas/{id}/instances/{instanceId}', id, instanceId); - } - - /** - * Replace a specific formula instance of a specific formula template with the provided instance. - * @method - * @name platformSDK#replaceFormulasInstanceByInstanceId - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - * @param {} formulaInstance - The formula instance. - */ - replaceFormulasInstanceByInstanceId( - id: number - - , - instanceId: number - - , - formulaInstance: - CreateFormulaInstance - - , - ): replaceFormulasInstanceByInstanceIdParameters { - return new replaceFormulasInstanceByInstanceIdParameters(this, 'PUT', '/formulas/{id}/instances/{instanceId}', id, instanceId, formulaInstance); - } - - /** - * Activate a formula instance. - * @method - * @name platformSDK#replaceFormulasInstancesActive - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - replaceFormulasInstancesActive( - id: number - - , - instanceId: number - - , - ): replaceFormulasInstancesActiveParameters { - return new replaceFormulasInstancesActiveParameters(this, 'PUT', '/formulas/{id}/instances/{instanceId}/active', id, instanceId); - } - - /** - * Deactivate a formula instance. - * @method - * @name platformSDK#deleteFormulasInstancesActive - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - deleteFormulasInstancesActive( - id: number - - , - instanceId: number - - , - ): deleteFormulasInstancesActiveParameters { - return new deleteFormulasInstancesActiveParameters(this, 'DELETE', '/formulas/{id}/instances/{instanceId}/active', id, instanceId); - } - - /** - * Retrieve the executions of a specific formula instance of a specific formula template. - * @method - * @name platformSDK#getFormulasInstancesExecutions2 - * @param {integer} id - The ID of the formula template. - * @param {integer} instanceId - The ID of the formula instance. - */ - getFormulasInstancesExecutions2( - id: number - - , - instanceId: number - - , - ): getFormulasInstancesExecutions2Parameters { - return new getFormulasInstancesExecutions2Parameters(this, 'GET', '/formulas/{id}/instances/{instanceId}/executions', id, instanceId); - } - - /** - * Retrieve all formula steps. - * @method - * @name platformSDK#getFormulasSteps - * @param {integer} id - The ID of the formula template. - */ - getFormulasSteps( - id: number - - , - ): getFormulasStepsParameters { - return new getFormulasStepsParameters(this, 'GET', '/formulas/{id}/steps', id); - } - - /** - * Create a new formula step. - * @method - * @name platformSDK#createFormulaStep - * @param {integer} id - The ID of the formula template. - * @param {} step - The formula step. - */ - createFormulaStep( - id: number - - , - step: - CreateStep - - , - ): createFormulaStepParameters { - return new createFormulaStepParameters(this, 'POST', '/formulas/{id}/steps', id, step); - } - - /** - * Delete a formula step. - * @method - * @name platformSDK#deleteFormulasStepByStepId - * @param {integer} id - The ID of the formula template. - * @param {integer} stepId - The ID of the formula step. - */ - deleteFormulasStepByStepId( - id: number - - , - stepId: number - - , - ): deleteFormulasStepByStepIdParameters { - return new deleteFormulasStepByStepIdParameters(this, 'DELETE', '/formulas/{id}/steps/{stepId}', id, stepId); - } - - /** - * Retrieve a formula step. - * @method - * @name platformSDK#getFormulasStepByStepId - * @param {integer} id - The ID of the formula template. - * @param {integer} stepId - The ID of the formula step. - */ - getFormulasStepByStepId( - id: number - - , - stepId: number - - , - ): getFormulasStepByStepIdParameters { - return new getFormulasStepByStepIdParameters(this, 'GET', '/formulas/{id}/steps/{stepId}', id, stepId); - } - - /** - * Update a formula step. - * @method - * @name platformSDK#replaceFormulasStepByStepId - * @param {integer} id - The ID of the formula template. - * @param {integer} stepId - The ID of the formula step. - * @param {} step - The formula step. - */ - replaceFormulasStepByStepId( - id: number - - , - stepId: number - - , - step: - CreateStep - - , - ): replaceFormulasStepByStepIdParameters { - return new replaceFormulasStepByStepIdParameters(this, 'PUT', '/formulas/{id}/steps/{stepId}', id, stepId, step); - } - - /** - * Create a new formula trigger. - * @method - * @name platformSDK#createFormulaTrigger - * @param {integer} id - The ID of the formula template. - * @param {} trigger - The formula trigger. - */ - createFormulaTrigger( - id: number - - , - trigger: - CreateTrigger - - , - ): createFormulaTriggerParameters { - return new createFormulaTriggerParameters(this, 'POST', '/formulas/{id}/triggers', id, trigger); - } - - /** - * Delete a formula trigger. - * @method - * @name platformSDK#deleteFormulasTriggerByTriggerId - * @param {integer} id - The ID of the formula template. - * @param {integer} triggerId - The ID of the formula trigger. - */ - deleteFormulasTriggerByTriggerId( - id: number - - , - triggerId: number - - , - ): deleteFormulasTriggerByTriggerIdParameters { - return new deleteFormulasTriggerByTriggerIdParameters(this, 'DELETE', '/formulas/{id}/triggers/{triggerId}', id, triggerId); - } - - /** - * Retrieve a formula trigger. - * @method - * @name platformSDK#getFormulasTriggerByTriggerId - * @param {integer} id - The ID of the formula template. - * @param {integer} triggerId - The ID of the formula trigger. - */ - getFormulasTriggerByTriggerId( - id: number - - , - triggerId: number - - , - ): getFormulasTriggerByTriggerIdParameters { - return new getFormulasTriggerByTriggerIdParameters(this, 'GET', '/formulas/{id}/triggers/{triggerId}', id, triggerId); - } - - /** - * Update a formula trigger. - * @method - * @name platformSDK#replaceFormulasTriggerByTriggerId - * @param {integer} id - The ID of the formula template. - * @param {integer} triggerId - The ID of the formula trigger. - * @param {} trigger - The formula trigger. - */ - replaceFormulasTriggerByTriggerId( - id: number - - , - triggerId: number - - , - trigger: - CreateTrigger - - , - ): replaceFormulasTriggerByTriggerIdParameters { - return new replaceFormulasTriggerByTriggerIdParameters(this, 'PUT', '/formulas/{id}/triggers/{triggerId}', id, triggerId, trigger); - } - - /** - * Retrieve all available element hubs. - * @method - * @name platformSDK#getHubs - */ - getHubs(): getHubsParameters { - return new getHubsParameters(this, 'GET', '/hubs'); - } - - /** - * Create a new hub. - * @method - * @name platformSDK#createHub - * @param {} hub - The hub - */ - createHub( - hub: - Hub - - , - ): createHubParameters { - return new createHubParameters(this, 'POST', '/hubs', hub); - } - - /** - * Retrieve all available element hub keys. - * @method - * @name platformSDK#getHubsKeys - */ - getHubsKeys(): getHubsKeysParameters { - return new getHubsKeysParameters(this, 'GET', '/hubs/keys'); - } - - /** - * Delete a hub. - * @method - * @name platformSDK#deleteHubByKey - * @param {string} key - The elements hub key (i.e. 'documents', 'crm', etc.) - */ - deleteHubByKey( - key: string - - , - ): deleteHubByKeyParameters { - return new deleteHubByKeyParameters(this, 'DELETE', '/hubs/{key}', key); - } - - /** - * Retrieve the details about a specific hub. - * @method - * @name platformSDK#getHubByKey - * @param {string} key - The elements hub key (i.e. 'documents', 'crm', etc.) - */ - getHubByKey( - key: string - - , - ): getHubByKeyParameters { - return new getHubByKeyParameters(this, 'GET', '/hubs/{key}', key); - } - - /** - * Retrieve all available elements for a specific hub. - * @method - * @name platformSDK#getHubsElements - * @param {string} key - The elements hub key (i.e. 'documents', 'crm', etc.) - */ - getHubsElements( - key: string - - , - ): getHubsElementsParameters { - return new getHubsElementsParameters(this, 'GET', '/hubs/{key}/elements', key); - } - - /** - * Retrieve all element instances from a specified path. The instances go through Cloud Elements to your console. Specifying an instance that does not exist results in an error response. - * @method - * @name platformSDK#getInstances - */ - getInstances(): getInstancesParameters { - return new getInstancesParameters(this, 'GET', '/instances'); - } - - /** - * Create a new element instance in your console. Instance creation will flow through Cloud Elements to your console. - * @method - * @name platformSDK#createInstance - * @param {} elementInstance - The element instance to create - */ - createInstance( - elementInstance: - ElementInstance - - , - ): createInstanceParameters { - return new createInstanceParameters(this, 'POST', '/instances', elementInstance); - } - - /** - * Delete an instance associated with an instance token in authorization header. Specifying an instance associated with a given token that does not exist will result in an error message. - * @method - * @name platformSDK#deleteInstances - */ - deleteInstances(): deleteInstancesParameters { - return new deleteInstancesParameters(this, 'DELETE', '/instances'); - } - - /** - * Update an instance associated with a given token in authorization header. Specifying an instance associated with an token that does not exist will result in an error message. - * @method - * @name platformSDK#replaceInstances - * @param {} elementInstance - The fields of the element instance to update - */ - replaceInstances( - elementInstance: - ElementInstance - - , - ): replaceInstancesParameters { - return new replaceInstancesParameters(this, 'PUT', '/instances', elementInstance); - } - - /** - * Update an instance partially associated with a given token in authorization header. Specifying an instance associated with an token that does not exist will result in an error message. - * @method - * @name platformSDK#updateInstances - * @param {} elementInstance - The fields of the element instance to update - */ - updateInstances( - elementInstance: - ElementInstance - - , - ): updateInstancesParameters { - return new updateInstancesParameters(this, 'PATCH', '/instances', elementInstance); - } - - /** - * Retrieve configuration for an element instance with an associated token in authorization header - * @method - * @name platformSDK#getInstancesConfiguration - */ - getInstancesConfiguration(): getInstancesConfigurationParameters { - return new getInstancesConfigurationParameters(this, 'GET', '/instances/configuration'); - } - - /** - * Retrieve configuration for an element instance with an associated token in authorization header - * @method - * @name platformSDK#getInstancesConfigurationByConfigId - * @param {integer} configId - The ID of the element instance config - */ - getInstancesConfigurationByConfigId( - configId: number - - , - ): getInstancesConfigurationByConfigIdParameters { - return new getInstancesConfigurationByConfigIdParameters(this, 'GET', '/instances/configuration/{configId}', configId); - } - - /** - * Update configuration for an element instance with an associated token in authorization header - * @method - * @name platformSDK#updateInstancesConfigurationByConfigId - * @param {integer} configId - The ID of the element instance config - * @param {} config - The updated element instance config - */ - updateInstancesConfigurationByConfigId( - configId: number - - , - config: - ElementInstanceConfigUpdate - - , - ): updateInstancesConfigurationByConfigIdParameters { - return new updateInstancesConfigurationByConfigIdParameters(this, 'PATCH', '/instances/configuration/{configId}', configId, config); - } - - /** - * Retrieve an instance specific swagger documentation with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesDocs - */ - getInstancesDocs(): getInstancesDocsParameters { - return new getInstancesDocsParameters(this, 'GET', '/instances/docs'); - } - - /** - * Retrieve an instance specific swagger documentation for an operation with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesDocByOperationId - * @param {string} operationId - The id of the operation for which swagger docs is returned - */ - getInstancesDocByOperationId( - operationId: string - - , - ): getInstancesDocByOperationIdParameters { - return new getInstancesDocByOperationIdParameters(this, 'GET', '/instances/docs/{operationId}', operationId); - } - - /** - * Retrieve an definitionation for an operation id with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesDocsDefinitions - * @param {string} operationId - The id of the operation for which swagger docs is returned - */ - getInstancesDocsDefinitions( - operationId: string - - , - ): getInstancesDocsDefinitionsParameters { - return new getInstancesDocsDefinitionsParameters(this, 'GET', '/instances/docs/{operationId}/definitions', operationId); - } - - /** - * Enable an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#replaceInstancesEnabled - */ - replaceInstancesEnabled(): replaceInstancesEnabledParameters { - return new replaceInstancesEnabledParameters(this, 'PUT', '/instances/enabled'); - } - - /** - * Disable an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#deleteInstancesEnabled - */ - deleteInstancesEnabled(): deleteInstancesEnabledParameters { - return new deleteInstancesEnabledParameters(this, 'DELETE', '/instances/enabled'); - } - - /** - * Retrieve events for all element instances or for an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesEvents - */ - getInstancesEvents(): getInstancesEventsParameters { - return new getInstancesEventsParameters(this, 'GET', '/instances/events'); - } - - /** - * Retrieve the number of events within a given date/time range for all element instances within the specified account(s). - * @method - * @name platformSDK#getInstancesEventsAnalytics - */ - getInstancesEventsAnalytics(): getInstancesEventsAnalyticsParameters { - return new getInstancesEventsAnalyticsParameters(this, 'GET', '/instances/events/analytics'); - } - - /** - * Retrieve the number of events within a given date/time range, aggregated by account ID. This API is really only useful for organization admins where more than one account exists. - * @method - * @name platformSDK#getInstancesEventsAnalyticsAccounts - */ - getInstancesEventsAnalyticsAccounts(): getInstancesEventsAnalyticsAccountsParameters { - return new getInstancesEventsAnalyticsAccountsParameters(this, 'GET', '/instances/events/analytics/accounts'); - } - - /** - * Retrieve the number of events within a given date/time range, aggregated by element instance ID. - * @method - * @name platformSDK#getInstancesEventsAnalyticsInstances - */ - getInstancesEventsAnalyticsInstances(): getInstancesEventsAnalyticsInstancesParameters { - return new getInstancesEventsAnalyticsInstancesParameters(this, 'GET', '/instances/events/analytics/instances'); - } - - /** - * Retrieve events for all element instances or for an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesEventsDispositions - */ - getInstancesEventsDispositions(): getInstancesEventsDispositionsParameters { - return new getInstancesEventsDispositionsParameters(this, 'GET', '/instances/events/dispositions'); - } - - /** - * Retrieve an event for all element instances or for an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesEventByEventId - * @param {integer} eventId - The ID of the event - */ - getInstancesEventByEventId( - eventId: number - - , - ): getInstancesEventByEventIdParameters { - return new getInstancesEventByEventIdParameters(this, 'GET', '/instances/events/{eventId}', eventId); - } - - /** - * Retrieve all of the object definitions within a specific instance with an associated instance token in authorization header. If no object definitions exist, then this will result in an error response. - * @method - * @name platformSDK#getInstancesObjectsDefinitions - */ - getInstancesObjectsDefinitions(): getInstancesObjectsDefinitionsParameters { - return new getInstancesObjectsDefinitionsParameters(this, 'GET', '/instances/objects/definitions'); - } - - /** - * Delete an object definition associated with an objectName for a specific instance with an associated instance token in authorization header. Specifying an object name that does not have an object definition will result in an error response. - * @method - * @name platformSDK#deleteInstancesObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - deleteInstancesObjectsObjectNameDefinitions( - objectName: string - - , - ): deleteInstancesObjectsObjectNameDefinitionsParameters { - return new deleteInstancesObjectsObjectNameDefinitionsParameters(this, 'DELETE', '/instances/objects/{objectName}/definitions', objectName); - } - - /** - * Retrieve a specific object definition associated with an objectName within a specific instance with an associated instance token in authorization header. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#getInstancesObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - getInstancesObjectsObjectNameDefinitions( - objectName: string - - , - ): getInstancesObjectsObjectNameDefinitionsParameters { - return new getInstancesObjectsObjectNameDefinitionsParameters(this, 'GET', '/instances/objects/{objectName}/definitions', objectName); - } - - /** - * Create a new object definition associated with an objectName within a specific instance with an associated instance token in authorization header. The definitions allow you to define what an object looks like within an instance. - * @method - * @name platformSDK#createInstanceObjectObjectNameDefinition - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - createInstanceObjectObjectNameDefinition( - objectName: string - - , - body: - Definition - - , - ): createInstanceObjectObjectNameDefinitionParameters { - return new createInstanceObjectObjectNameDefinitionParameters(this, 'POST', '/instances/objects/{objectName}/definitions', objectName, body); - } - - /** - * Update a specific object's definition associated with an objectName within a specific instance with an associated instance token in authorization header. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceInstancesObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - replaceInstancesObjectsObjectNameDefinitions( - objectName: string - - , - body: - Definition - - , - ): replaceInstancesObjectsObjectNameDefinitionsParameters { - return new replaceInstancesObjectsObjectNameDefinitionsParameters(this, 'PUT', '/instances/objects/{objectName}/definitions', objectName, body); - } - - /** - * Temporarily enable trace-level usage logging for an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#replaceInstancesTraceLogging - */ - replaceInstancesTraceLogging(): replaceInstancesTraceLoggingParameters { - return new replaceInstancesTraceLoggingParameters(this, 'PUT', '/instances/trace-logging'); - } - - /** - * Disable trace-level usage logging for an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#deleteInstancesTraceLogging - */ - deleteInstancesTraceLogging(): deleteInstancesTraceLoggingParameters { - return new deleteInstancesTraceLoggingParameters(this, 'DELETE', '/instances/trace-logging'); - } - - /** - * Delete the transformation for an element instance with an associated instance token in authorization header - * @method - * @name platformSDK#deleteInstancesTransformations - */ - deleteInstancesTransformations(): deleteInstancesTransformationsParameters { - return new deleteInstancesTransformationsParameters(this, 'DELETE', '/instances/transformations'); - } - - /** - * Retrieve an element instance transformation with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesTransformations - */ - getInstancesTransformations(): getInstancesTransformationsParameters { - return new getInstancesTransformationsParameters(this, 'GET', '/instances/transformations'); - } - - /** - * Delete the transformation for an element instance for a specific object with an associated instance token in authorization header - * @method - * @name platformSDK#deleteInstancesTransformationByObjectName - * @param {string} objectName - The name of the object - */ - deleteInstancesTransformationByObjectName( - objectName: string - - , - ): deleteInstancesTransformationByObjectNameParameters { - return new deleteInstancesTransformationByObjectNameParameters(this, 'DELETE', '/instances/transformations/{objectName}', objectName); - } - - /** - * Retrieve an element instance transformation for a specific object with an associated instance token in authorization header - * @method - * @name platformSDK#getInstancesTransformationByObjectName - * @param {string} objectName - The name of the object - */ - getInstancesTransformationByObjectName( - objectName: string - - , - ): getInstancesTransformationByObjectNameParameters { - return new getInstancesTransformationByObjectNameParameters(this, 'GET', '/instances/transformations/{objectName}', objectName); - } - - /** - * Create a transformation for an element instance for a specific object - * @method - * @name platformSDK#createInstanceTransformationByObjectName - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation to create - */ - createInstanceTransformationByObjectName( - objectName: string - - , - transformation: - Transformation - - , - ): createInstanceTransformationByObjectNameParameters { - return new createInstanceTransformationByObjectNameParameters(this, 'POST', '/instances/transformations/{objectName}', objectName, transformation); - } - - /** - * Update the transformation for an element instance for a specific object with an associated instance token in authorization header - * @method - * @name platformSDK#replaceInstancesTransformationByObjectName - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation to update - */ - replaceInstancesTransformationByObjectName( - objectName: string - - , - transformation: - Transformation - - , - ): replaceInstancesTransformationByObjectNameParameters { - return new replaceInstancesTransformationByObjectNameParameters(this, 'PUT', '/instances/transformations/{objectName}', objectName, transformation); - } - - /** - * Delete an instance associated with a given ID from your console. Specifying an instance associated with a given ID that does not exist will result in an error message. - * @method - * @name platformSDK#deleteInstanceById - * @param {integer} id - The ID of the element instance - */ - deleteInstanceById( - id: number - - , - ): deleteInstanceByIdParameters { - return new deleteInstanceByIdParameters(this, 'DELETE', '/instances/{id}', id); - } - - /** - * Retrieve an element instance associated with a given ID from a specified path. The instance goes through Cloud Elements to your console. Specifying an instance with an associated ID that does not exist results in an error response. - * @method - * @name platformSDK#getInstanceById - * @param {integer} id - The ID of the element instance - */ - getInstanceById( - id: number - - , - ): getInstanceByIdParameters { - return new getInstanceByIdParameters(this, 'GET', '/instances/{id}', id); - } - - /** - * Update an instance associated with a given ID from your console. Specifying an instance associated with an ID that does not exist will result in an error message. - * @method - * @name platformSDK#replaceInstanceById - * @param {integer} id - The ID of the element instance - * @param {} elementInstance - The fields of the element instance to update - */ - replaceInstanceById( - id: number - - , - elementInstance: - ElementInstance - - , - ): replaceInstanceByIdParameters { - return new replaceInstanceByIdParameters(this, 'PUT', '/instances/{id}', id, elementInstance); - } - - /** - * Update an instance partially associated with a given ID from your console. Specifying an instance associated with an ID that does not exist will result in an error message. - * @method - * @name platformSDK#updateInstanceById - * @param {integer} id - The ID of the element instance - * @param {} elementInstance - The fields of the element instance to update - */ - updateInstanceById( - id: number - - , - elementInstance: - ElementInstance - - , - ): updateInstanceByIdParameters { - return new updateInstanceByIdParameters(this, 'PATCH', '/instances/{id}', id, elementInstance); - } - - /** - * Retrieve configuration for an element instance - * @method - * @name platformSDK#getInstancesConfiguration2 - * @param {integer} id - The ID of the element instance - */ - getInstancesConfiguration2( - id: number - - , - ): getInstancesConfiguration2Parameters { - return new getInstancesConfiguration2Parameters(this, 'GET', '/instances/{id}/configuration', id); - } - - /** - * Retrieve configuration for an element instance - * @method - * @name platformSDK#getInstancesConfigurationByConfigId2 - * @param {integer} id - The ID of the element instance - * @param {integer} configId - The ID of the element instance config - */ - getInstancesConfigurationByConfigId2( - id: number - - , - configId: number - - , - ): getInstancesConfigurationByConfigId2Parameters { - return new getInstancesConfigurationByConfigId2Parameters(this, 'GET', '/instances/{id}/configuration/{configId}', id, configId); - } - - /** - * Update configuration for an element instance - * @method - * @name platformSDK#updateInstancesConfigurationByConfigId2 - * @param {integer} id - The ID of the element instance - * @param {integer} configId - The ID of the element instance config - * @param {} config - The updated element instance config - */ - updateInstancesConfigurationByConfigId2( - id: number - - , - configId: number - - , - config: - ElementInstanceConfigUpdate - - , - ): updateInstancesConfigurationByConfigId2Parameters { - return new updateInstancesConfigurationByConfigId2Parameters(this, 'PATCH', '/instances/{id}/configuration/{configId}', id, configId, config); - } - - /** - * Retrieve an instance specific swagger documentation - * @method - * @name platformSDK#getInstancesDocs2 - * @param {integer} id - The ID of the element instance - */ - getInstancesDocs2( - id: number - - , - ): getInstancesDocs2Parameters { - return new getInstancesDocs2Parameters(this, 'GET', '/instances/{id}/docs', id); - } - - /** - * Retrieve an instance specific swagger documentation - * @method - * @name platformSDK#getInstancesDocByOperationId2 - * @param {integer} id - The ID of the element instance - * @param {string} operationId - The id of the operation for which swagger docs is returned - */ - getInstancesDocByOperationId2( - id: number - - , - operationId: string - - , - ): getInstancesDocByOperationId2Parameters { - return new getInstancesDocByOperationId2Parameters(this, 'GET', '/instances/{id}/docs/{operationId}', id, operationId); - } - - /** - * Retrieve an instance specific swagger documentation - * @method - * @name platformSDK#getInstancesDocsDefinitions2 - * @param {integer} id - The ID of the element instance - * @param {string} operationId - The id of the operation for which swagger docs is returned - */ - getInstancesDocsDefinitions2( - id: number - - , - operationId: string - - , - ): getInstancesDocsDefinitions2Parameters { - return new getInstancesDocsDefinitions2Parameters(this, 'GET', '/instances/{id}/docs/{operationId}/definitions', id, operationId); - } - - /** - * Enable an element instance - * @method - * @name platformSDK#replaceInstancesEnabled2 - * @param {integer} id - The ID of the element instance - */ - replaceInstancesEnabled2( - id: number - - , - ): replaceInstancesEnabled2Parameters { - return new replaceInstancesEnabled2Parameters(this, 'PUT', '/instances/{id}/enabled', id); - } - - /** - * Disable an element instance - * @method - * @name platformSDK#deleteInstancesEnabled2 - * @param {integer} id - The ID of the element instance - */ - deleteInstancesEnabled2( - id: number - - , - ): deleteInstancesEnabled2Parameters { - return new deleteInstancesEnabled2Parameters(this, 'DELETE', '/instances/{id}/enabled', id); - } - - /** - * Retrieve events for an element instance - * @method - * @name platformSDK#getInstancesEvents2 - * @param {integer} id - The ID of the element instance - */ - getInstancesEvents2( - id: number - - , - ): getInstancesEvents2Parameters { - return new getInstancesEvents2Parameters(this, 'GET', '/instances/{id}/events', id); - } - - /** - * Retrieve an event for an element instance - * @method - * @name platformSDK#getInstancesEventByEventId2 - * @param {integer} id - The ID of the element instance - * @param {integer} eventId - The ID of the event - */ - getInstancesEventByEventId2( - id: number - - , - eventId: number - - , - ): getInstancesEventByEventId2Parameters { - return new getInstancesEventByEventId2Parameters(this, 'GET', '/instances/{id}/events/{eventId}', id, eventId); - } - - /** - * Retrieve all of the object definitions within a specific instance. If no object definitions exist, then this will result in an error response. - * @method - * @name platformSDK#getInstancesObjectsDefinitions2 - * @param {integer} id - The ID of the instance - */ - getInstancesObjectsDefinitions2( - id: number - - , - ): getInstancesObjectsDefinitions2Parameters { - return new getInstancesObjectsDefinitions2Parameters(this, 'GET', '/instances/{id}/objects/definitions', id); - } - - /** - * Delete an object definition associated with an objectName for a specific instance. Specifying an object name that does not have an object definition will result in an error response. - * @method - * @name platformSDK#deleteInstancesObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the instance - * @param {string} objectName - The name of the object - */ - deleteInstancesObjectsObjectNameDefinitions2( - id: number - - , - objectName: string - - , - ): deleteInstancesObjectsObjectNameDefinitions2Parameters { - return new deleteInstancesObjectsObjectNameDefinitions2Parameters(this, 'DELETE', '/instances/{id}/objects/{objectName}/definitions', id, objectName); - } - - /** - * Retrieve a specific object definition associated with an objectName within a specific instance. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#getInstancesObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the instance - * @param {string} objectName - The name of the object - */ - getInstancesObjectsObjectNameDefinitions2( - id: number - - , - objectName: string - - , - ): getInstancesObjectsObjectNameDefinitions2Parameters { - return new getInstancesObjectsObjectNameDefinitions2Parameters(this, 'GET', '/instances/{id}/objects/{objectName}/definitions', id, objectName); - } - - /** - * Create a new object definition associated with an objectName within a specific instance. The definitions allow you to define what an object looks like within an instance. - * @method - * @name platformSDK#createInstanceObjectObjectNameDefinition2 - * @param {integer} id - The ID of the instance - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - createInstanceObjectObjectNameDefinition2( - id: number - - , - objectName: string - - , - body: - Definition - - , - ): createInstanceObjectObjectNameDefinition2Parameters { - return new createInstanceObjectObjectNameDefinition2Parameters(this, 'POST', '/instances/{id}/objects/{objectName}/definitions', id, objectName, body); - } - - /** - * Update a specific object's definition associated with an objectName within a specific instance. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceInstancesObjectsObjectNameDefinitions2 - * @param {integer} id - The ID of the instance - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - replaceInstancesObjectsObjectNameDefinitions2( - id: number - - , - objectName: string - - , - body: - Definition - - , - ): replaceInstancesObjectsObjectNameDefinitions2Parameters { - return new replaceInstancesObjectsObjectNameDefinitions2Parameters(this, 'PUT', '/instances/{id}/objects/{objectName}/definitions', id, objectName, body); - } - - /** - * Temporarily enable trace-level usage logging for an element instance - * @method - * @name platformSDK#replaceInstancesTraceLogging2 - * @param {integer} id - The ID of the element instance - */ - replaceInstancesTraceLogging2( - id: number - - , - ): replaceInstancesTraceLogging2Parameters { - return new replaceInstancesTraceLogging2Parameters(this, 'PUT', '/instances/{id}/trace-logging', id); - } - - /** - * Disable trace-level usage logging for an element instance - * @method - * @name platformSDK#deleteInstancesTraceLogging2 - * @param {integer} id - The ID of the element instance - */ - deleteInstancesTraceLogging2( - id: number - - , - ): deleteInstancesTraceLogging2Parameters { - return new deleteInstancesTraceLogging2Parameters(this, 'DELETE', '/instances/{id}/trace-logging', id); - } - - /** - * Delete the transformation for an element instance - * @method - * @name platformSDK#deleteInstancesTransformations2 - * @param {integer} id - The ID of the element instance - */ - deleteInstancesTransformations2( - id: number - - , - ): deleteInstancesTransformations2Parameters { - return new deleteInstancesTransformations2Parameters(this, 'DELETE', '/instances/{id}/transformations', id); - } - - /** - * Retrieve an element instance transformation - * @method - * @name platformSDK#getInstancesTransformations2 - * @param {integer} id - The ID of the element instance - */ - getInstancesTransformations2( - id: number - - , - ): getInstancesTransformations2Parameters { - return new getInstancesTransformations2Parameters(this, 'GET', '/instances/{id}/transformations', id); - } - - /** - * Delete the transformation for an element instance for a specific object - * @method - * @name platformSDK#deleteInstancesTransformationByObjectName2 - * @param {integer} id - The ID of the element instance - * @param {string} objectName - The name of the object - */ - deleteInstancesTransformationByObjectName2( - id: number - - , - objectName: string - - , - ): deleteInstancesTransformationByObjectName2Parameters { - return new deleteInstancesTransformationByObjectName2Parameters(this, 'DELETE', '/instances/{id}/transformations/{objectName}', id, objectName); - } - - /** - * Retrieve an element instance transformation for a specific object - * @method - * @name platformSDK#getInstancesTransformationByObjectName2 - * @param {integer} id - The ID of the element instance - * @param {string} objectName - The name of the object - */ - getInstancesTransformationByObjectName2( - id: number - - , - objectName: string - - , - ): getInstancesTransformationByObjectName2Parameters { - return new getInstancesTransformationByObjectName2Parameters(this, 'GET', '/instances/{id}/transformations/{objectName}', id, objectName); - } - - /** - * Create a transformation for an element instance for a specific object - * @method - * @name platformSDK#createInstanceTransformationByObjectName2 - * @param {integer} id - The ID of the element instance - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation to create - */ - createInstanceTransformationByObjectName2( - id: number - - , - objectName: string - - , - transformation: - Transformation - - , - ): createInstanceTransformationByObjectName2Parameters { - return new createInstanceTransformationByObjectName2Parameters(this, 'POST', '/instances/{id}/transformations/{objectName}', id, objectName, transformation); - } - - /** - * Update the transformation for an element instance for a specific object - * @method - * @name platformSDK#replaceInstancesTransformationByObjectName2 - * @param {integer} id - The ID of the element instance - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation to update - */ - replaceInstancesTransformationByObjectName2( - id: number - - , - objectName: string - - , - transformation: - Transformation - - , - ): replaceInstancesTransformationByObjectName2Parameters { - return new replaceInstancesTransformationByObjectName2Parameters(this, 'PUT', '/instances/{id}/transformations/{objectName}', id, objectName, transformation); - } - - /** - * Get a list of all configured jobs. - * @method - * @name platformSDK#getJobs - */ - getJobs(): getJobsParameters { - return new getJobsParameters(this, 'GET', '/jobs'); - } - - /** - * Create a new job. - * @method - * @name platformSDK#createJob - */ - createJob(): createJobParameters { - return new createJobParameters(this, 'POST', '/jobs'); - } - - /** - * Get a list of the previous job executions. - * @method - * @name platformSDK#getJobsExecutions - */ - getJobsExecutions(): getJobsExecutionsParameters { - return new getJobsExecutionsParameters(this, 'GET', '/jobs/executions'); - } - - /** - * Delete a specific job. - * @method - * @name platformSDK#deleteJobById - * @param {string} id - The ID of the job. - */ - deleteJobById( - id: string - - , - ): deleteJobByIdParameters { - return new deleteJobByIdParameters(this, 'DELETE', '/jobs/{id}', id); - } - - /** - * Get information about a specific job. - * @method - * @name platformSDK#getJobById - * @param {string} id - The ID of the job. - */ - getJobById( - id: string - - , - ): getJobByIdParameters { - return new getJobByIdParameters(this, 'GET', '/jobs/{id}', id); - } - - /** - * Disable a job. - * @method - * @name platformSDK#replaceJobsDisable - * @param {string} id - The ID of the job. - */ - replaceJobsDisable( - id: string - - , - ): replaceJobsDisableParameters { - return new replaceJobsDisableParameters(this, 'PUT', '/jobs/{id}/disable', id); - } - - /** - * Enable a job. - * @method - * @name platformSDK#replaceJobsEnable - * @param {string} id - The ID of the job. - */ - replaceJobsEnable( - id: string - - , - ): replaceJobsEnableParameters { - return new replaceJobsEnableParameters(this, 'PUT', '/jobs/{id}/enable', id); - } - - /** - * Get a list of history records for a specific job. - * @method - * @name platformSDK#getJobsHistory - * @param {string} id - The ID of the job. - */ - getJobsHistory( - id: string - - , - ): getJobsHistoryParameters { - return new getJobsHistoryParameters(this, 'GET', '/jobs/{id}/history', id); - } - - /** - * Get a specific history record for a specific job. - * @method - * @name platformSDK#getJobsHistoryByHistoryId - * @param {string} id - The ID of the job. - * @param {integer} historyId - The ID of the History record. - */ - getJobsHistoryByHistoryId( - id: string - - , - historyId: number - - , - ): getJobsHistoryByHistoryIdParameters { - return new getJobsHistoryByHistoryIdParameters(this, 'GET', '/jobs/{id}/history/{historyId}', id, historyId); - } - - /** - * Update a job's CRON string and reschedule it. - * @method - * @name platformSDK#updateJobsReschedule - * @param {string} id - The ID of the job. - */ - updateJobsReschedule( - id: string - - , - ): updateJobsRescheduleParameters { - return new updateJobsRescheduleParameters(this, 'PATCH', '/jobs/{id}/reschedule', id); - } - - /** - * Retrieve the API metrics for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsApi - */ - getMetricsApi(): getMetricsApiParameters { - return new getMetricsApiParameters(this, 'GET', '/metrics/api'); - } - - /** - * Retrieve the metrics of number of bulk jobs executed for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsBulkJobs - */ - getMetricsBulkJobs(): getMetricsBulkJobsParameters { - return new getMetricsBulkJobsParameters(this, 'GET', '/metrics/bulk-jobs'); - } - - /** - * Retrieve the element instance creation API metrics for the accounts provided, split up by element key. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsElementInstancesCreated - */ - getMetricsElementInstancesCreated(): getMetricsElementInstancesCreatedParameters { - return new getMetricsElementInstancesCreatedParameters(this, 'GET', '/metrics/element-instances-created'); - } - - /** - * Retrieve the metrics of number of custom elements created for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsElementsCreated - */ - getMetricsElementsCreated(): getMetricsElementsCreatedParameters { - return new getMetricsElementsCreatedParameters(this, 'GET', '/metrics/elements-created'); - } - - /** - * Retrieve the metrics of number of events received for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsEvents - */ - getMetricsEvents(): getMetricsEventsParameters { - return new getMetricsEventsParameters(this, 'GET', '/metrics/events'); - } - - /** - * Retrieve the metrics of number of formulas executions for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsFormulaExecutions - */ - getMetricsFormulaExecutions(): getMetricsFormulaExecutionsParameters { - return new getMetricsFormulaExecutionsParameters(this, 'GET', '/metrics/formula-executions'); - } - - /** - * Retrieve the metrics of number of formulas created for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsFormulasCreated - */ - getMetricsFormulasCreated(): getMetricsFormulasCreatedParameters { - return new getMetricsFormulasCreatedParameters(this, 'GET', '/metrics/formulas-created'); - } - - /** - * Retrieve the API metrics for the accounts provided, split up by hub. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsHubApi - */ - getMetricsHubApi(): getMetricsHubApiParameters { - return new getMetricsHubApiParameters(this, 'GET', '/metrics/hub-api'); - } - - /** - * Retrieve the hubs created metrics for the accounts provided, split up by hub. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsHubsCreated - */ - getMetricsHubsCreated(): getMetricsHubsCreatedParameters { - return new getMetricsHubsCreatedParameters(this, 'GET', '/metrics/hubs-created'); - } - - /** - * Retrieve the metrics of number of VDRs created for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsVdrsCreated - */ - getMetricsVdrsCreated(): getMetricsVdrsCreatedParameters { - return new getMetricsVdrsCreatedParameters(this, 'GET', '/metrics/vdrs-created'); - } - - /** - * Retrieve the metrics of number of calls using VDRs for the accounts provided. Any customer or organization IDs provided will be used to identify accounts within those entities. - * @method - * @name platformSDK#getMetricsVdrsInvoked - */ - getMetricsVdrsInvoked(): getMetricsVdrsInvokedParameters { - return new getMetricsVdrsInvokedParameters(this, 'GET', '/metrics/vdrs-invoked'); - } - - /** - * Create a new organization within the user's customer. NOTE: This API requires the 'customer-admin' privilege. - * @method - * @name platformSDK#createOrganization - * @param {} organization - The organization to create. - */ - createOrganization( - organization: - Organization_POST - - , - ): createOrganizationParameters { - return new createOrganizationParameters(this, 'POST', '/organizations', organization); - } - - /** - * Delete the default transformation for an element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#deleteOrganizationsElementsTransformations - * @param {string} keyOrId - The element key or ID - */ - deleteOrganizationsElementsTransformations( - keyOrId: string - - , - ): deleteOrganizationsElementsTransformationsParameters { - return new deleteOrganizationsElementsTransformationsParameters(this, 'DELETE', '/organizations/elements/{keyOrId}/transformations', keyOrId); - } - - /** - * Retrieve the default transformation for a specific element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#getOrganizationsElementsTransformations - * @param {string} keyOrId - The element key or ID - */ - getOrganizationsElementsTransformations( - keyOrId: string - - , - ): getOrganizationsElementsTransformationsParameters { - return new getOrganizationsElementsTransformationsParameters(this, 'GET', '/organizations/elements/{keyOrId}/transformations', keyOrId); - } - - /** - * Delete the default transformation for an object for a specific element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#deleteOrganizationsElementsTransformationByObjectName - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - */ - deleteOrganizationsElementsTransformationByObjectName( - keyOrId: string - - , - objectName: string - - , - ): deleteOrganizationsElementsTransformationByObjectNameParameters { - return new deleteOrganizationsElementsTransformationByObjectNameParameters(this, 'DELETE', '/organizations/elements/{keyOrId}/transformations/{objectName}', keyOrId, objectName); - } - - /** - * Retrieve the default transformation for an object for a specific element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#getOrganizationsElementsTransformationByObjectName - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - */ - getOrganizationsElementsTransformationByObjectName( - keyOrId: string - - , - objectName: string - - , - ): getOrganizationsElementsTransformationByObjectNameParameters { - return new getOrganizationsElementsTransformationByObjectNameParameters(this, 'GET', '/organizations/elements/{keyOrId}/transformations/{objectName}', keyOrId, objectName); - } - - /** - * Create a default transformation for a specific object for all elements with the given key, within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#createOrganizationElementTransformationByObjectName - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation - */ - createOrganizationElementTransformationByObjectName( - keyOrId: string - - , - objectName: string - - , - transformation: - Transformation - - , - ): createOrganizationElementTransformationByObjectNameParameters { - return new createOrganizationElementTransformationByObjectNameParameters(this, 'POST', '/organizations/elements/{keyOrId}/transformations/{objectName}', keyOrId, objectName, transformation); - } - - /** - * Update the default transformation for an object for a specific element element within an organization. The key field denotes the element being referenced in the API call, i.e. dropbox. - * @method - * @name platformSDK#replaceOrganizationsElementsTransformationByObjectName - * @param {string} keyOrId - The element key or ID - * @param {string} objectName - The name of the object - * @param {} transformation - The transformation - */ - replaceOrganizationsElementsTransformationByObjectName( - keyOrId: string - - , - objectName: string - - , - transformation: - Transformation - - , - ): replaceOrganizationsElementsTransformationByObjectNameParameters { - return new replaceOrganizationsElementsTransformationByObjectNameParameters(this, 'PUT', '/organizations/elements/{keyOrId}/transformations/{objectName}', keyOrId, objectName, transformation); - } - - /** - * Retrieve the user's organization - * @method - * @name platformSDK#getOrganizationsMe - */ - getOrganizationsMe(): getOrganizationsMeParameters { - return new getOrganizationsMeParameters(this, 'GET', '/organizations/me'); - } - - /** - * Update the user's organization metadata - * @method - * @name platformSDK#replaceOrganizationsMe - * @param {} body - The organization metadata to update. The only field that can be updated is 'name'. - */ - replaceOrganizationsMe( - body: - Organization - - , - ): replaceOrganizationsMeParameters { - return new replaceOrganizationsMeParameters(this, 'PUT', '/organizations/me', body); - } - - /** - * Delete all object definitions within an organization. - * @method - * @name platformSDK#deleteOrganizationsObjectsDefinitions - */ - deleteOrganizationsObjectsDefinitions(): deleteOrganizationsObjectsDefinitionsParameters { - return new deleteOrganizationsObjectsDefinitionsParameters(this, 'DELETE', '/organizations/objects/definitions'); - } - - /** - * Retrieve all of the object definitions within an organization. - * @method - * @name platformSDK#getOrganizationsObjectsDefinitions - */ - getOrganizationsObjectsDefinitions(): getOrganizationsObjectsDefinitionsParameters { - return new getOrganizationsObjectsDefinitionsParameters(this, 'GET', '/organizations/objects/definitions'); - } - - /** - * Create multiple object definitions within an organization. The definitions allow you to define what an object looks like within an organization. - * @method - * @name platformSDK#createOrganizationObjectDefinition - * @param {} body - The object definitions to create - */ - createOrganizationObjectDefinition( - body: - Dictionary - - , - ): createOrganizationObjectDefinitionParameters { - return new createOrganizationObjectDefinitionParameters(this, 'POST', '/organizations/objects/definitions', body); - } - - /** - * Delete an object definition associated with a specific objectName within an organization. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#deleteOrganizationsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - deleteOrganizationsObjectsObjectNameDefinitions( - objectName: string - - , - ): deleteOrganizationsObjectsObjectNameDefinitionsParameters { - return new deleteOrganizationsObjectsObjectNameDefinitionsParameters(this, 'DELETE', '/organizations/objects/{objectName}/definitions', objectName); - } - - /** - * Retrieve a specific object definition associated with an objectName within an organization. - * @method - * @name platformSDK#getOrganizationsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - */ - getOrganizationsObjectsObjectNameDefinitions( - objectName: string - - , - ): getOrganizationsObjectsObjectNameDefinitionsParameters { - return new getOrganizationsObjectsObjectNameDefinitionsParameters(this, 'GET', '/organizations/objects/{objectName}/definitions', objectName); - } - - /** - * Create a new object definition associated with an objectName within an organization. The definitions allow you to define what an object looks like within an organization. - * @method - * @name platformSDK#createOrganizationObjectObjectNameDefinition - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - createOrganizationObjectObjectNameDefinition( - objectName: string - - , - body: - Definition - - , - ): createOrganizationObjectObjectNameDefinitionParameters { - return new createOrganizationObjectObjectNameDefinitionParameters(this, 'POST', '/organizations/objects/{objectName}/definitions', objectName, body); - } - - /** - * Update a specific object's definition associated with a specific objectName within an organization. Specifying an object definition associated with a given objectName that does not exist will result in an error response. - * @method - * @name platformSDK#replaceOrganizationsObjectsObjectNameDefinitions - * @param {string} objectName - The name of the object - * @param {} body - The object definition - */ - replaceOrganizationsObjectsObjectNameDefinitions( - objectName: string - - , - body: - Definition - - , - ): replaceOrganizationsObjectsObjectNameDefinitionsParameters { - return new replaceOrganizationsObjectsObjectNameDefinitionsParameters(this, 'PUT', '/organizations/objects/{objectName}/definitions', objectName, body); - } - - /** - * Find users within your default organizational account. The CEQL search expression or the where clause, without the WHERE keyword, in a typical SQL query. For example, to search for users containing the name 'greg', the search expression will be where name=‘greg’. When this parameter is omitted, all accounts are returned in a paginated fashion. - * @method - * @name platformSDK#getOrganizationsUsers - */ - getOrganizationsUsers(): getOrganizationsUsersParameters { - return new getOrganizationsUsersParameters(this, 'GET', '/organizations/users'); - } - - /** - * Create a user under the default organization account - * @method - * @name platformSDK#createOrganizationUser - * @param {} body - The user to create

The required fields are:
  • email - The user's email address
  • firstName - The user's first name
  • lastName - The user's last name

Upon success, the created object will be returned. - */ - createOrganizationUser( - body: - User - - , - ): createOrganizationUserParameters { - return new createOrganizationUserParameters(this, 'POST', '/organizations/users', body); - } - - /** - * Retrieve a user associated with an email or ID within the default organization. Specifying a user associated with a given emailOrId that does not exist will result in an error response. - * @method - * @name platformSDK#getOrganizationsUserByEmailOrId - * @param {string} emailOrId - The email address or numeric ID of the user - */ - getOrganizationsUserByEmailOrId( - emailOrId: string - - , - ): getOrganizationsUserByEmailOrIdParameters { - return new getOrganizationsUserByEmailOrIdParameters(this, 'GET', '/organizations/users/{emailOrId:.+}', emailOrId); - } - - /** - * Delete a user associated with an ID within your organization. WARNING: This action will irreversibly delete all jobs, and formula and element instances associated with the user. - * @method - * @name platformSDK#deleteOrganizationsUserById - * @param {integer} id - The ID of the user - */ - deleteOrganizationsUserById( - id: number - - , - ): deleteOrganizationsUserByIdParameters { - return new deleteOrganizationsUserByIdParameters(this, 'DELETE', '/organizations/users/{id}', id); - } - - /** - * Update a user associated with an ID within your organization. WARNING: If updating the 'active' field to false, all of the scheduled jobs for the user will be deleted. - * @method - * @name platformSDK#updateOrganizationsUserById - * @param {integer} id - The ID of the user - * @param {} body - The updated user information - */ - updateOrganizationsUserById( - id: number - - , - body: - User - - , - ): updateOrganizationsUserByIdParameters { - return new updateOrganizationsUserByIdParameters(this, 'PATCH', '/organizations/users/{id}', id, body); - } - - /** - * Create a new account within an organization. NOTE: Only a user with the 'org-admin' privilege within the organization, or the 'customer-admin' privilege within the customer is able to use this API. - * @method - * @name platformSDK#createOrganizationAccount - * @param {integer} id - The ID of the organization - * @param {} account - The account to create. - */ - createOrganizationAccount( - id: number - - , - account: - Account_POST - - , - ): createOrganizationAccountParameters { - return new createOrganizationAccountParameters(this, 'POST', '/organizations/{id}/accounts', id, account); - } - - /** - * Retrieve all the accounts within an organization. NOTE: Only a user with the 'org-admin' privilege within the organization, or the 'customer-admin' privilege within the customer is able to use this API. - * @method - * @name platformSDK#getOrganizationsAccounts - * @param {integer} id - The ID of the organization - */ - getOrganizationsAccounts( - id: number - - , - ): getOrganizationsAccountsParameters { - return new getOrganizationsAccountsParameters(this, 'GET', '/organizations/{id}/accounts', id); - } - - /** - * Retrieve an account within an organization NOTE: Only a user with the 'org-admin' privilege within the organization, or the 'customer-admin' privilege within the customer is able to use this API. - * @method - * @name platformSDK#getOrganizationsAccountByAccountId - * @param {integer} id - The ID of the organization - * @param {integer} accountId - The ID of the account - */ - getOrganizationsAccountByAccountId( - id: number - - , - accountId: number - - , - ): getOrganizationsAccountByAccountIdParameters { - return new getOrganizationsAccountByAccountIdParameters(this, 'GET', '/organizations/{id}/accounts/{accountId}', id, accountId); - } - - /** - * Retrieve the usage logs for your account. - * @method - * @name platformSDK#getUsage - */ - getUsage(): getUsageParameters { - return new getUsageParameters(this, 'GET', '/usage'); - } - - /** - * Retrieve the number of element API calls within a given date/time range - * @method - * @name platformSDK#getUsageAnalyticsActivity - * @param {string} from - Start time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - * @param {string} to - End time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - */ - getUsageAnalyticsActivity( - from: string - - , - to: string - - , - ): getUsageAnalyticsActivityParameters { - return new getUsageAnalyticsActivityParameters(this, 'GET', '/usage/analytics/activity', from, to); - } - - /** - * Retrieve the number of element API calls for each element within a given date/time range - * @method - * @name platformSDK#getUsageAnalyticsActivityElements - * @param {string} from - Start time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - * @param {string} to - End time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - */ - getUsageAnalyticsActivityElements( - from: string - - , - to: string - - , - ): getUsageAnalyticsActivityElementsParameters { - return new getUsageAnalyticsActivityElementsParameters(this, 'GET', '/usage/analytics/activity/elements', from, to); - } - - /** - * Retrieve the number of successes and failures of element API calls within a given date/time range. - * @method - * @name platformSDK#getUsageAnalyticsStatuses - * @param {string} from - Start time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - * @param {string} to - End time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - */ - getUsageAnalyticsStatuses( - from: string - - , - to: string - - , - ): getUsageAnalyticsStatusesParameters { - return new getUsageAnalyticsStatusesParameters(this, 'GET', '/usage/analytics/statuses', from, to); - } - - /** - * Retrieve the response times of element API calls within a given date/time range - * @method - * @name platformSDK#getUsageAnalyticsTimes - * @param {string} from - Start time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - * @param {string} to - End time in ISO 8601 format, e.g. '2014-04-14T00:00:00-4:00'. An unspecified time zone defaults to UTC. - */ - getUsageAnalyticsTimes( - from: string - - , - to: string - - , - ): getUsageAnalyticsTimesParameters { - return new getUsageAnalyticsTimesParameters(this, 'GET', '/usage/analytics/times', from, to); - } - - /** - * Retrieve the usage record by id - * @method - * @name platformSDK#getUsageById - * @param {string} id - The ID of log record - */ - getUsageById( - id: string - - , - ): getUsageByIdParameters { - return new getUsageByIdParameters(this, 'GET', '/usage/{id}', id); - } - - /** - * Retrieve users within your account or organization. Find users within your account or organization, using the provided CEQL search expression or the where clause, without the WHERE keyword, in a typical SQL query. For example, to search for users containing the name 'greg', the search expression will be where name='greg'. When this parameter is omitted, all accounts are returned in a paginated fashion. - * @method - * @name platformSDK#getUsers - */ - getUsers(): getUsersParameters { - return new getUsersParameters(this, 'GET', '/users'); - } - - /** - * Retrieve a user associated with a given email or ID within your account or organization. Specifying a user associated with a given email or ID that does not exist will result in an error response. - * @method - * @name platformSDK#getUserByEmailOrId - * @param {string} emailOrId - The email address or numeric ID of the user - */ - getUserByEmailOrId( - emailOrId: string - - , - ): getUserByEmailOrIdParameters { - return new getUserByEmailOrIdParameters(this, 'GET', '/users/{emailOrId}', emailOrId); - } - - /** - * Delete a user associated with a given ID within your account or organization. WARNING: This action will delete all formula and element instances associated with the user, and is irreversible. Specifying a user associated with a given ID that does not exist will result in an error response. - * @method - * @name platformSDK#deleteUserById - * @param {integer} id - The ID of the user - */ - deleteUserById( - id: number - - , - ): deleteUserByIdParameters { - return new deleteUserByIdParameters(this, 'DELETE', '/users/{id}', id); - } - - /** - * Update a user associated with a given email or ID within your account or organization. Specifying a user associated with a given email or ID that does not exist will result in an error response. - * @method - * @name platformSDK#updateUserById - * @param {integer} id - The ID of the user - * @param {} body - The updated user information - */ - updateUserById( - id: number - - , - body: - User - - , - ): updateUserByIdParameters { - return new updateUserByIdParameters(this, 'PATCH', '/users/{id}', id, body); - } - - /** - * Retrieve the roles that a user has been granted. This will return the effective roles, meaning the role could have been granted at the user level OR at the account level. - * @method - * @name platformSDK#getUsersRoles - * @param {number} id - The ID of the user. - */ - getUsersRoles( - id: number - - , - ): getUsersRolesParameters { - return new getUsersRolesParameters(this, 'GET', '/users/{id}/roles', id); - } - - /** - * Revoke a role from a user. This will only remove roles granted directly to the user, and will not affect roles that may have been granted at the account level. - * @method - * @name platformSDK#deleteUsersRoleByRoleKey - * @param {number} userId - The ID of the user from which the role will be revoked. - * @param {string} roleKey - The key of the role to revoke (org-admin, org, or admin) - */ - deleteUsersRoleByRoleKey( - userId: number - - , - roleKey: string - - , - ): deleteUsersRoleByRoleKeyParameters { - return new deleteUsersRoleByRoleKeyParameters(this, 'DELETE', '/users/{userId}/roles/{roleKey}', userId, roleKey); - } - - /** - * Grant a role to a user. - * @method - * @name platformSDK#replaceUsersRoleByRoleKey - * @param {number} userId - The ID of the user to which the role will be granted. - * @param {string} roleKey - The key of the role to grant (org-admin, org, or admin) - */ - replaceUsersRoleByRoleKey( - userId: number - - , - roleKey: string - - , - ): replaceUsersRoleByRoleKeyParameters { - return new replaceUsersRoleByRoleKeyParameters(this, 'PUT', '/users/{userId}/roles/{roleKey}', userId, roleKey); - } -} \ No newline at end of file From a2b9eb7b1bc9f6f713d84c3f931fafd191350348 Mon Sep 17 00:00:00 2001 From: Rick Rothenberg Date: Sun, 17 Mar 2019 12:20:45 -0600 Subject: [PATCH 5/8] Improve debug logging --- index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/index.js b/index.js index 48b9ff8..1e523e5 100644 --- a/index.js +++ b/index.js @@ -25,6 +25,12 @@ class ServerlessPlugin { return this.beforePackage() } + logDebug(message) { + if (process.env.SLS_DEBUG === '*') { + this.serverless.cli.log(message) + } + } + async beforePackage() { let variables = []; let modules = []; @@ -149,10 +155,12 @@ class ServerlessPlugin { authHeader = `User ${accountProperties.userToken}, Organization ${accountProperties.orgToken}`; } this.platform = new platformSDK(accountProperties.baseUrl, authHeader); + this.logDebug('generating platform SDK') let result = await sdkifier.generatePlatformSdk(accountProperties.baseUrl, authHeader, null, 'sdks') for (let resource of Object.entries(resources)) { if (resource[1].Type.startsWith('CE::Hub::')) { const hub = resource[1].Type.substr(9); + this.logDebug(`generating ${hub} SDK`) result = await sdkifier.generateHubSdk(hub, accountProperties.baseUrl, authHeader, null, 'sdks'); if (!result.success) { throw new Error(result.message); @@ -169,6 +177,7 @@ class ServerlessPlugin { } else if (resource[1].Type.startsWith('CE::Element::')) { const elementKey = resource[1].Type.substr(13); if (resource[1].Properties.id) { + this.logDebug(`generating ${elementKey} SDK`) result = await sdkifier.generateInstanceSdk( resource[1].Properties.id, accountProperties.baseUrl, @@ -181,6 +190,7 @@ class ServerlessPlugin { const instance = await this.platform.getInstanceById(resource[1].Properties.id); variables.push({name: resource[0], type: elementKey, token: instance.token, id: resource[1].Properties.id}); } else { + this.logDebug(`generating ${elementKey} SDK`) result = await sdkifier.generateElementSdk(elementKey, null, accountProperties.baseUrl, authHeader, null, 'sdks'); if (!result.success) { throw new Error(result.message); From 73ae10ca4a03ccc34dc6cf9468613dac922f0e5d Mon Sep 17 00:00:00 2001 From: Rick Rothenberg Date: Sun, 17 Mar 2019 12:24:06 -0600 Subject: [PATCH 6/8] Update version --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index df954aa..a31bcd0 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { "name": "serverless-cloud-elements-plugin", - "version": "0.1.6", + "version": "0.2.1", "description": "Experimental Serverless Framework plugin that facilitates integration using Cloud Elements", "author": "Rick Rothenberg", "license": "MIT", "dependencies": { "babel-core": "^6.26.3", "babel-preset-env": "^1.7.0", - "ce-sdkifier": "^0.9.5", + "ce-sdkifier": "^0.10.1", "mustache": "^2.3.2", "typescript": "^3.0.3" } From 685c40d66e75d5c3411f8639e0dfa469410602cc Mon Sep 17 00:00:00 2001 From: Rick Rothenberg Date: Sun, 17 Mar 2019 17:37:29 -0600 Subject: [PATCH 7/8] Fix minor annoyances --- configurator.mustache | 10 +++++- index.js | 74 ++++++++++++++++++++++++++++--------------- 2 files changed, 58 insertions(+), 26 deletions(-) diff --git a/configurator.mustache b/configurator.mustache index f83220a..98eb58c 100644 --- a/configurator.mustache +++ b/configurator.mustache @@ -67,5 +67,13 @@ const platform = new platformSDK('{{&baseUrl}}', '{{&authHeader}}'); const done = response => input[2](null, {statusCode: 200, body: JSON.stringify(response)}); -return {trigger, config, platform, done} +const result = {trigger, config, platform, done} + +if (config) { + for (let key of Object.keys(config)) { + result[key] = config[key] + } +} + +return result } \ No newline at end of file diff --git a/index.js b/index.js index 1e523e5..bd2abf0 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ class ServerlessPlugin { 'before:package:initialize': this.beforePackage.bind(this), 'after:deploy:finalize': this.afterDeploy.bind(this), 'before:invoke:invoke': this.beforeInvoke.bind(this), - 'before:invoke:local:invoke': this.beforeInvoke.bind(this), + 'before:invoke:local:invoke': this.beforeInvokeLocal.bind(this), }; } @@ -22,7 +22,19 @@ class ServerlessPlugin { if (!validFunctions.includes(this.options.function)) { throw `Function "${this.options.function}" doesn't exist in this Service. Valid values: ${validFunctions.join(', ')}` } - return this.beforePackage() + return this.prep(false) + } + + async beforeInvokeLocal() { + const validFunctions = Object.keys(this.serverless.service.functions) + if (!validFunctions.includes(this.options.function)) { + throw `Function "${this.options.function}" doesn't exist in this Service. Valid values: ${validFunctions.join(', ')}` + } + return this.prep(true) + } + + async beforePackage() { + return this.prep(true) } logDebug(message) { @@ -31,7 +43,7 @@ class ServerlessPlugin { } } - async beforePackage() { + async prep(buildSdks) { let variables = []; let modules = []; const service = this.serverless.service; @@ -155,16 +167,43 @@ class ServerlessPlugin { authHeader = `User ${accountProperties.userToken}, Organization ${accountProperties.orgToken}`; } this.platform = new platformSDK(accountProperties.baseUrl, authHeader); - this.logDebug('generating platform SDK') - let result = await sdkifier.generatePlatformSdk(accountProperties.baseUrl, authHeader, null, 'sdks') + if (this.options.sdks !== false && buildSdks) { + this.logDebug('generating platform SDK') + let result = await sdkifier.generatePlatformSdk(accountProperties.baseUrl, authHeader, null, 'sdks') + for (let resource of Object.entries(resources)) { + if (resource[1].Type.startsWith('CE::Hub::')) { + const hub = resource[1].Type.substr(9); + this.logDebug(`generating ${hub} SDK`) + result = await sdkifier.generateHubSdk(hub, accountProperties.baseUrl, authHeader, null, 'sdks'); + if (!result.success) { + throw new Error(result.message); + } + } else if (resource[1].Type.startsWith('CE::Element::')) { + const elementKey = resource[1].Type.substr(13); + if (resource[1].Properties.id) { + this.logDebug(`generating ${elementKey} SDK`) + result = await sdkifier.generateInstanceSdk( + resource[1].Properties.id, + accountProperties.baseUrl, + authHeader, + elementKey + 'SDK', + 'sdks'); + if (!result.success) { + throw new Error(result.message); + } + } else { + this.logDebug(`generating ${elementKey} SDK`) + result = await sdkifier.generateElementSdk(elementKey, null, accountProperties.baseUrl, authHeader, null, 'sdks'); + if (!result.success) { + throw new Error(result.message); + } + } + } + } + } for (let resource of Object.entries(resources)) { if (resource[1].Type.startsWith('CE::Hub::')) { const hub = resource[1].Type.substr(9); - this.logDebug(`generating ${hub} SDK`) - result = await sdkifier.generateHubSdk(hub, accountProperties.baseUrl, authHeader, null, 'sdks'); - if (!result.success) { - throw new Error(result.message); - } if (!resource[1].Properties) { throw new Error(`Resource '${resource[0]}' is in error: The Properties object is missing`); } @@ -177,24 +216,9 @@ class ServerlessPlugin { } else if (resource[1].Type.startsWith('CE::Element::')) { const elementKey = resource[1].Type.substr(13); if (resource[1].Properties.id) { - this.logDebug(`generating ${elementKey} SDK`) - result = await sdkifier.generateInstanceSdk( - resource[1].Properties.id, - accountProperties.baseUrl, - authHeader, - elementKey + 'SDK', - 'sdks'); - if (!result.success) { - throw new Error(result.message); - } const instance = await this.platform.getInstanceById(resource[1].Properties.id); variables.push({name: resource[0], type: elementKey, token: instance.token, id: resource[1].Properties.id}); } else { - this.logDebug(`generating ${elementKey} SDK`) - result = await sdkifier.generateElementSdk(elementKey, null, accountProperties.baseUrl, authHeader, null, 'sdks'); - if (!result.success) { - throw new Error(result.message); - } variables.push({name: resource[0], type: elementKey}); } } From 28ebfcbb414e0692946fa12433364f13ee75271c Mon Sep 17 00:00:00 2001 From: Rick Rothenberg Date: Mon, 15 Apr 2019 03:10:34 -0600 Subject: [PATCH 8/8] checkpoint --- configurator.mustache | 6 +- example/contactSync.js | 32 +- index.js | 404 +++++++++++----------- package-lock.json | 752 ++++------------------------------------- wrapper.mustache | 2 +- 5 files changed, 294 insertions(+), 902 deletions(-) diff --git a/configurator.mustache b/configurator.mustache index 98eb58c..1dac6c4 100644 --- a/configurator.mustache +++ b/configurator.mustache @@ -70,9 +70,9 @@ const done = response => input[2](null, {statusCode: 200, body: JSON.stringify(r const result = {trigger, config, platform, done} if (config) { - for (let key of Object.keys(config)) { - result[key] = config[key] - } +for (let key of Object.keys(config)) { +result[key] = config[key] +} } return result diff --git a/example/contactSync.js b/example/contactSync.js index 60dfb0f..2eab473 100644 --- a/example/contactSync.js +++ b/example/contactSync.js @@ -1,27 +1,21 @@ const {configurator} = require('./configurator'); -async function syncContact(myContact, dest, total) { - const foundContacts = await dest.getByObjectName('myContact').where(`Email='${myContact.Email}'`).run(); - $checkpoint('syncingContact', total); - if (foundContacts.length === 1) { - await dest.replaceObjectNameByObjectId('myContact', foundContacts[0].Id, myContact).run(); - console.log(`${foundContacts[0].Id} updated`); - } else { - const newContact = await dest.createByObjectName('myContact', myContact).run(); - console.log(`${newContact.Id} created`); - } -} - async function eventHandler() { - const {trigger, config} = await configurator(arguments); - $checkpoint('eventReceived'); - for (let i = 0; i < trigger.events.length; i++) { - const event = trigger.events[i]; - const myContact = await config.source.getMyContactById(event.objectId).run(); - if (myContact.Email) { - await syncContact(myContact, config.dest, trigger.events.length); + const {trigger, source, dest} = await configurator(arguments); + $checkpoint('eventReceived'); + for (let event of trigger.events) { + const myContact = await source.getMyContactById(event.objectId); + if (myContact.Email) { + const foundContacts = await dest.getByObjectName('myContact').where(`Email='${myContact.Email}'`); + if (foundContacts.length === 1) { + await dest.replaceObjectNameByObjectId('myContact', foundContacts[0].Id, myContact); + console.log(`${foundContacts[0].Id} updated`); + } else { + const newContact = await dest.createByObjectName('myContact', myContact); + console.log(`${newContact.Id} created`); } } + } } module.exports.eventHandler = eventHandler; diff --git a/index.js b/index.js index bd2abf0..8a5689b 100644 --- a/index.js +++ b/index.js @@ -17,19 +17,20 @@ class ServerlessPlugin { }; } - async beforeInvoke() { + validateFunction() { const validFunctions = Object.keys(this.serverless.service.functions) if (!validFunctions.includes(this.options.function)) { throw `Function "${this.options.function}" doesn't exist in this Service. Valid values: ${validFunctions.join(', ')}` } + } + + async beforeInvoke() { + this.validateFunction() return this.prep(false) } async beforeInvokeLocal() { - const validFunctions = Object.keys(this.serverless.service.functions) - if (!validFunctions.includes(this.options.function)) { - throw `Function "${this.options.function}" doesn't exist in this Service. Valid values: ${validFunctions.join(', ')}` - } + this.validateFunction() return this.prep(true) } @@ -43,21 +44,43 @@ class ServerlessPlugin { } } - async prep(buildSdks) { - let variables = []; - let modules = []; - const service = this.serverless.service; - const provider = service.provider; - const functions = service.functions; - const resources = service.resources.Resources; - if (!provider.runtime) { - provider.runtime = 'nodejs8.10'; + async prepSdks(accountProperties, authHeader, resources) { + this.logDebug('generating platform SDK') + this.platform = new platformSDK(accountProperties.baseUrl, authHeader); + for (let resource of Object.entries(resources)) { + if (resource[1].Type.startsWith('CE::Hub::')) { + const hub = resource[1].Type.substr(9); + this.logDebug(`generating ${hub} SDK`) + const result = await sdkifier.generateHubSdk(hub, accountProperties.baseUrl, authHeader, null, 'sdks'); + if (!result.success) { + throw new Error(result.message); + } + } else if (resource[1].Type.startsWith('CE::Element::')) { + const elementKey = resource[1].Type.substr(13); + this.logDebug(`generating ${elementKey} SDK`) + if (resource[1].Properties.id) { + const result = await sdkifier.generateInstanceSdk( + resource[1].Properties.id, + accountProperties.baseUrl, + authHeader, + elementKey + 'SDK', + 'sdks'); + if (!result.success) { + throw new Error(result.message); + } + } else { + const result = await sdkifier.generateElementSdk(elementKey, null, accountProperties.baseUrl, authHeader, null, 'sdks'); + if (!result.success) { + throw new Error(result.message); + } + } + } } + } + + async prepCheckpoints(service, provider, resources, functions, modules) { const dlqName = `${service.service}-dead-letter-queue` const dlqRef = 'deadLetterQueue' - if (!provider.iamRoleStatements) { - provider.iamRoleStatements = []; - } provider.iamRoleStatements.push({ Effect: 'Allow', Action: ['sqs:sendMessage', 'sqs:receiveMessage', 'sqs:deleteMessage'], @@ -74,156 +97,68 @@ class ServerlessPlugin { QueueName: dlqName } }; - - const triggerVariables = []; - for (let key of Object.keys(functions)) { - for (let event of functions[key].events) { - if (event.instance) { - if (!functions[key].timeout) { - functions[key].timeout = 30; + const queueName = `${functions[key].name}-queue` + const queueRef = `${key}Queue` + functions[key].events.push({ + sqs: { + arn: { + 'Fn::GetAtt': [ + queueRef, + 'Arn' + ] } - if (!functions[key].memorySize) { - functions[key].memorySize = 128; - } - if (!functions[key].environment) { - functions[key].environment = {}; - } - if (event.instance.maxCheckpointRetries) { - functions[key].environment.SCEP_MAX_CHECKPOINT_RETRIES = event.instance.maxCheckpointRetries; - } else { - functions[key].environment.SCEP_MAX_CHECKPOINT_RETRIES = 1; - } - if (!event.instance.resource) { - throw new Error(`Function '${key}' is in error: An instance event must specify a resource`); - } - if (!resources[event.instance.resource]) { - throw new Error(`Function '${key}' is in error: The referenced resource (${event.instance.resource}) does not exist`); - } - if (!resources[event.instance.resource].Properties) { - throw new Error(`Resource '${event.instance.resource}' is in error: The Properties object is missing`); - } - triggerVariables.push(event.instance.resource); - const handler = functions[key].handler.split('.'); - const module = modules.find(module => module.name === handler[0]); - if (module) { - if (!module.handlers.includes(handler[1])) { - module.handlers.push(handler[1]); - } - } else { - modules.push({name: handler[0], handlers: [handler[1]]}); - } - functions[key].handler = `wrapper.${handler.join('_')}`; - event.http = { - path: `event/${event.instance.resource}`, - method: 'POST', - id: resources[event.instance.resource].Properties.id - } - const queueName = `${functions[key].name}-queue` - const queueRef = `${key}Queue` - functions[key].events.push({ - sqs: { - arn: { - 'Fn::GetAtt': [ - queueRef, - 'Arn' - ] - } - } - }); - provider.iamRoleStatements.push({ - Effect: 'Allow', - Action: ['sqs:sendMessage'], - Resource: { - 'Fn::GetAtt': [ - queueRef, - 'Arn' - ] - } - }) - resources[queueRef] = { - Type: 'AWS::SQS::Queue', - Properties: { - QueueName: queueName - } - }; - delete event.instance } - } - } - const account = Object.entries(resources).find(entry => entry[1].Type === 'CE::Account'); - if (!account) { - throw new Error('Missing account resource (Type is CE::Account)'); - } - const accountProperties = account[1].Properties; - if (!accountProperties) { - throw new Error(`Resource '${account[0]}' is in error: The Properties object is missing`); - } - if (!fs.existsSync(process.cwd() + '/sdks')) { - fs.mkdirSync(process.cwd() + '/sdks'); - } - let authHeader; - if (accountProperties.userToken && accountProperties.orgToken) { - authHeader = `User ${accountProperties.userToken}, Organization ${accountProperties.orgToken}`; - } - this.platform = new platformSDK(accountProperties.baseUrl, authHeader); - if (this.options.sdks !== false && buildSdks) { - this.logDebug('generating platform SDK') - let result = await sdkifier.generatePlatformSdk(accountProperties.baseUrl, authHeader, null, 'sdks') - for (let resource of Object.entries(resources)) { - if (resource[1].Type.startsWith('CE::Hub::')) { - const hub = resource[1].Type.substr(9); - this.logDebug(`generating ${hub} SDK`) - result = await sdkifier.generateHubSdk(hub, accountProperties.baseUrl, authHeader, null, 'sdks'); - if (!result.success) { - throw new Error(result.message); - } - } else if (resource[1].Type.startsWith('CE::Element::')) { - const elementKey = resource[1].Type.substr(13); - if (resource[1].Properties.id) { - this.logDebug(`generating ${elementKey} SDK`) - result = await sdkifier.generateInstanceSdk( - resource[1].Properties.id, - accountProperties.baseUrl, - authHeader, - elementKey + 'SDK', - 'sdks'); - if (!result.success) { - throw new Error(result.message); - } - } else { - this.logDebug(`generating ${elementKey} SDK`) - result = await sdkifier.generateElementSdk(elementKey, null, accountProperties.baseUrl, authHeader, null, 'sdks'); - if (!result.success) { - throw new Error(result.message); - } - } - } - } - } - for (let resource of Object.entries(resources)) { - if (resource[1].Type.startsWith('CE::Hub::')) { - const hub = resource[1].Type.substr(9); - if (!resource[1].Properties) { - throw new Error(`Resource '${resource[0]}' is in error: The Properties object is missing`); + }); + provider.iamRoleStatements.push({ + Effect: 'Allow', + Action: ['sqs:sendMessage'], + Resource: { + 'Fn::GetAtt': [ + queueRef, + 'Arn' + ] } - if (resource[1].Properties.id) { - const instance = await this.platform.getInstanceById(resource[1].Properties.id); - variables.push({name: resource[0], type: hub, token: instance.token, id: resource[1].Properties.id}); - } else { - variables.push({name: resource[0], type: hub}); + }) + resources[queueRef] = { + Type: 'AWS::SQS::Queue', + Properties: { + QueueName: queueName } - } else if (resource[1].Type.startsWith('CE::Element::')) { - const elementKey = resource[1].Type.substr(13); - if (resource[1].Properties.id) { - const instance = await this.platform.getInstanceById(resource[1].Properties.id); - variables.push({name: resource[0], type: elementKey, token: instance.token, id: resource[1].Properties.id}); + } + for (let event of functions[key].events) { + if (event.maxCheckpointRetries) { + functions[key].environment.SCEP_MAX_CHECKPOINT_RETRIES = event.maxCheckpointRetries; + delete event.maxCheckpointRetries } else { - variables.push({name: resource[0], type: elementKey}); + functions[key].environment.SCEP_MAX_CHECKPOINT_RETRIES = 1; } } } + // Add endpoint for resuming an execution that's in the DLQ + functions.resume = { + handler: 'wrapper.resume', + name: `${service.service}-${provider.stage}-resume`, + timeout: 30, + memorySize: 128, + events: [ + { + http: { + path: 'resume', + method: 'post' + } + } + ] + } + for (let module of modules) { + const preprocessed = babel.transformFileSync(process.cwd() + '/' + module.name + '.js', {presets: ['env'], sourceMaps: 'inline'}) + const processed = babel.transform(preprocessed.code, {plugins: [__dirname + '/checkpoint.plugin.js'], sourceMaps: 'inline'}) + fs.writeFileSync(process.cwd() + '/' + module.name + '.babelized.js', processed.code); + module.name = module.name + '.babelized' + } + } + async prepResourceSets(service, provider, resources, triggerVariables, variables, accountProperties, functions) { const resourceSetsTableName = `${service.service}-${provider.stage}-resource-sets` provider.iamRoleStatements.push({ Effect: 'Allow', @@ -282,35 +217,6 @@ class ServerlessPlugin { AttributeType: 'N' }) } - - if (!service.package) { - service.package = {} - } - if (!service.package.exclude) { - service.package.exclude = [] - } - service.package.exclude.push('node_modules/serverless-cloud-elements-plugin/node_modules/**') - service.package.exclude.push('node_modules/serverless-cloud-elements-runtime/node_modules/**') - - // Add endpoint for resuming an execution that's in the DLQ - functions.resume = { - handler: 'wrapper.resume', - name: `${service.service}-${provider.stage}-resume`, - timeout: 30, - memorySize: 128, - events: [ - { - http: { - path: 'resume', - method: 'post' - } - } - ] - } - - if (!provider.environment) { - provider.environment = {} - } provider.environment.RESOURCE_SETS_TABLE_NAME = resourceSetsTableName functions.resourceSetCRUD = { @@ -323,6 +229,7 @@ class ServerlessPlugin { TRIGGER_VARIABLES: JSON.stringify(triggerVariables), VARIABLES: JSON.stringify(variables.map(variable => variable.name)), BASE_URL: accountProperties.baseUrl, + // TODO this may not work for value variables DEFAULTS: JSON.stringify(variables.filter(variable => variable.id).reduce((result, variable) => { result[variable.name] = Number(variable.id) return result @@ -343,6 +250,125 @@ class ServerlessPlugin { } ] } + } + + async prep(buildSdks) { + let variables = []; + let modules = []; + const service = this.serverless.service; + const provider = service.provider; + const functions = service.functions; + if (!service.resources) { + service.resources = {} + } + if (!service.resources.Resources) { + service.resources.Resources = {} + } + const resources = service.resources.Resources; + + if (!provider.runtime) { + provider.runtime = 'nodejs8.10'; + } + if (!provider.iamRoleStatements) { + provider.iamRoleStatements = []; + } + if (!provider.environment) { + provider.environment = {} + } + if (!service.package) { + service.package = {} + } + if (!service.package.exclude) { + service.package.exclude = [] + } + + if (!provider.runtime) { + provider.runtime = 'nodejs8.10'; + } + + const triggerVariables = []; + + for (let key of Object.keys(functions)) { + if (!functions[key].timeout) { + functions[key].timeout = 30; + } + if (!functions[key].memorySize) { + functions[key].memorySize = 128; + } + if (!functions[key].environment) { + functions[key].environment = {}; + } + const handler = functions[key].handler.split('.'); + const module = modules.find(module => module.name === handler[0]); + if (module) { + if (!module.handlers.includes(handler[1])) { + module.handlers.push(handler[1]); + } + } else { + modules.push({name: handler[0], handlers: [handler[1]]}); + } + functions[key].handler = `wrapper.${handler.join('_')}`; + for (let event of functions[key].events) { + if (event.instance) { + if (!event.instance.resource) { + throw new Error(`Function '${key}' is in error: An instance event must specify a resource`); + } + if (!resources[event.instance.resource]) { + throw new Error(`Function '${key}' is in error: The referenced resource (${event.instance.resource}) does not exist`); + } + triggerVariables.push(event.instance.resource); + event.http = { + path: `event/${event.instance.resource}`, + method: 'POST', + id: resources[event.instance.resource].Properties.id + } + delete event.instance + } + } + } + const account = Object.entries(resources).find(entry => entry[1].Type === 'CE::Account'); + const accountProperties = account && account[1] ? account[1].Properties : {} + let authHeader; + if (accountProperties && accountProperties.userToken && accountProperties.orgToken) { + authHeader = `User ${accountProperties.userToken}, Organization ${accountProperties.orgToken}`; + } + + if (this.options.sdks !== false && buildSdks) { + await this.prepSdks(accountProperties, authHeader, resources) + } + // TODO value variables also need to be saved in variables so that the configurator can populate and expose them + // TODO But instance variables need to be called out for the configurator template for proper processing + for (let resource of Object.entries(resources)) { + if (resource[1].Type.startsWith('CE::Hub::')) { + const hub = resource[1].Type.substr(9); + if (this.platform && resource[1].Properties && resource[1].Properties.id) { + const instance = await this.platform.getInstanceById(resource[1].Properties.id); + variables.push({name: resource[0], type: hub, token: instance.token, id: resource[1].Properties.id}); + } else { + variables.push({name: resource[0], type: hub}); + } + } else if (resource[1].Type.startsWith('CE::Element::')) { + const elementKey = resource[1].Type.substr(13); + if (this.platform && resource[1].Properties && resource[1].Properties.id) { + const instance = await this.platform.getInstanceById(resource[1].Properties.id); + variables.push({name: resource[0], type: elementKey, token: instance.token, id: resource[1].Properties.id}); + } else { + variables.push({name: resource[0], type: elementKey}); + } + } + } + + if (this.options.resourceSets !== false) { + this.prepResourceSets(service, provider, resources, triggerVariables, variables, accountProperties, functions) + } + + service.package.exclude.push('node_modules/serverless-cloud-elements-plugin/node_modules/**') + service.package.exclude.push('node_modules/serverless-cloud-elements-plugin/example/**') + service.package.exclude.push('node_modules/serverless-cloud-elements-runtime/node_modules/**') + + if (this.options.checkpoints !== false) { + this.prepCheckpoints(service, provider, resources, functions, modules) + } // Once processed, the resources with Cloud Elements types should be removed as they're not valid const ceResources = Object.keys(resources).filter(key => resources[key].Type.startsWith('CE::')); @@ -376,12 +402,6 @@ class ServerlessPlugin { fs.writeFileSync(process.cwd() + '/configurator.ts', configurator); fs.writeFileSync(process.cwd() + '/configurator.js', tsCompilerOutput.outputText); fs.writeFileSync(process.cwd() + '/wrapper.js', wrapper); - - for (let module of modules) { - const preprocessed = babel.transformFileSync(process.cwd() + '/' + module.name + '.js', {presets: ['env'], sourceMaps: 'inline'}) - const processed = babel.transform(preprocessed.code, {plugins: [__dirname + '/checkpoint.plugin.js'], sourceMaps: 'inline'}) - fs.writeFileSync(process.cwd() + '/' + module.name + '.babelized.js', processed.code); - } } async afterDeploy() { diff --git a/package-lock.json b/package-lock.json index 45739ad..547b4a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,36 +1,14 @@ { "name": "serverless-cloud-elements-plugin", - "version": "0.1.6", + "version": "0.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { - "@types/node": { - "version": "10.12.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.10.tgz", - "integrity": "sha512-8xZEYckCbUVgK8Eg7lf5Iy4COKJ5uXlnIOnePN0WUwSQggy9tolM+tDJf7wMOnT/JT/W9xDYIaYggt3mRV2O5w==" - }, - "@types/semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-41qEJgBH/TWgo5NFSvBCJ1qkoi3Q6ONSF2avrHq1LVEZfYpdHmj0y9SuTK+u9ZhG1sYQKBL1AWXKyLWP4RaUoQ==" - }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, - "ajv": { - "version": "6.5.5", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.5.tgz", - "integrity": "sha512-7q7gtRQDJSyuEHjuVgHoUa2VuemFiCMrfQc9Tc08XTAc4Zj/5U1buQJ0HU6i7fKjXU09SVgSmxa4sLvuvS8Iyg==", - "optional": true, - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", @@ -41,43 +19,11 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "optional": true, - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" - }, - "async": { - "version": "1.0.0", - "resolved": "http://registry.npmjs.org/async/-/async-1.0.0.tgz", - "integrity": "sha1-+PwEyjoTeErenhZBr5hXjPvWR6k=", - "optional": true - }, "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "optional": true - }, - "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "optional": true - }, "babel-code-frame": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", @@ -643,15 +589,6 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "optional": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -670,34 +607,23 @@ "electron-to-chromium": "^1.3.47" } }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "optional": true - }, "caniuse-lite": { "version": "1.0.30000907", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000907.tgz", "integrity": "sha512-No5sQ/OB2Nmka8MNOOM6nJx+Hxt6MQ6h7t7kgJFu9oTuwjykyKRSBP/+i/QAyFHxeHB+ddE0Da1CG5ihx9oehQ==" }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "optional": true - }, "ce-sdkifier": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/ce-sdkifier/-/ce-sdkifier-0.9.5.tgz", - "integrity": "sha512-HvQQl72t6Orlk6bpsL+HGZErLxPPVACuiuZ5NPQXk67OspS+zIJPCW10sw+FwG0CZa/9U20LnQfgS42qVaWrhg==", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/ce-sdkifier/-/ce-sdkifier-0.10.1.tgz", + "integrity": "sha512-OTR6gOgHTVlgTpgd/TwDk8WIUpdbFfTrULzZwlFPNc4fnJotNJI4iMXg9HriLllfO53jyqrn5+JntcdWaNYGGg==", "requires": { "colors": "^1.3.2", "commander": "^2.15.1", "js-beautify": "^1.5.1", "jshint": "^2.9.6", - "lodash": "^4.17.10", + "lodash": "^4.17.11", "mustache": "2.2.1", + "pluralize": "^7.0.0", "promptly": "^3.0.3", "superagent": "^3.8.2", "typescript": "^3.0.1" @@ -705,7 +631,7 @@ "dependencies": { "mustache": { "version": "2.2.1", - "resolved": "http://registry.npmjs.org/mustache/-/mustache-2.2.1.tgz", + "resolved": "https://registry.npmjs.org/mustache/-/mustache-2.2.1.tgz", "integrity": "sha1-LEDKIcJ49TFQaCvPkJDkGjM5uHY=" } } @@ -732,9 +658,9 @@ } }, "colors": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.2.tgz", - "integrity": "sha512-rhP0JSBGYvpcNQj4s5AdShMeE5ahMop96cTeDl/v9qQQm2fYClE2QXZRi8wLzc+GmXSxdIqqbOIAhyObEXDbfQ==" + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz", + "integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==" }, "combined-stream": { "version": "1.0.7", @@ -745,9 +671,9 @@ } }, "commander": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", - "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==" + "version": "2.20.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", + "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==" }, "component-emitter": { "version": "1.2.1", @@ -759,50 +685,6 @@ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "optional": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "optional": true - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, "config-chain": { "version": "1.1.12", "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz", @@ -843,21 +725,6 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, - "cycle": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/cycle/-/cycle-1.0.3.tgz", - "integrity": "sha1-IegLK+hYD5i0aPN5QwZisEbDStI=", - "optional": true - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "optional": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, "date-now": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", @@ -885,19 +752,14 @@ } }, "dom-serializer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", - "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz", + "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==", "requires": { - "domelementtype": "~1.1.1", - "entities": "~1.1.1" + "domelementtype": "^1.3.0", + "entities": "^1.1.1" }, "dependencies": { - "domelementtype": { - "version": "1.1.3", - "resolved": "http://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", - "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=" - }, "entities": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", @@ -906,9 +768,9 @@ } }, "domelementtype": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.2.1.tgz", - "integrity": "sha512-SQVCLFS2E7G5CRCMdn6K9bIhRj1bS6QBWZfF0TUPh4V/BbqrQ619IdSS3/izn0FZ+9l+uODzaZjb08fjOfablA==" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" }, "domhandler": { "version": "2.3.0", @@ -927,25 +789,13 @@ "domelementtype": "1" } }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "optional": true, - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, "editorconfig": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.2.tgz", - "integrity": "sha512-GWjSI19PVJAM9IZRGOS+YKI8LN+/sjkSjNyvxL5ucqP9/IqtYNXBaQ/6c/hkPNYQHyOHra2KoXZI/JVpuqwmcQ==", + "version": "0.15.3", + "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz", + "integrity": "sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==", "requires": { - "@types/node": "^10.11.7", - "@types/semver": "^5.5.0", "commander": "^2.19.0", - "lru-cache": "^4.1.3", + "lru-cache": "^4.1.5", "semver": "^5.6.0", "sigmund": "^1.0.1" } @@ -957,15 +807,9 @@ }, "entities": { "version": "1.0.0", - "resolved": "http://registry.npmjs.org/entities/-/entities-1.0.0.tgz", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=" }, - "es6-promise": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.5.tgz", - "integrity": "sha512-n6wvpdE43VFtJq+lUDYDBFUwV8TZbuGXLV4D6wKafg13ldznKsyEvatubnmUe31zcvelSzOHF+XbaT+Bl9ObDg==", - "optional": true - }, "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", @@ -986,56 +830,6 @@ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, - "extract-zip": { - "version": "1.6.7", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz", - "integrity": "sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=", - "optional": true, - "requires": { - "concat-stream": "1.6.2", - "debug": "2.6.9", - "mkdirp": "0.5.1", - "yauzl": "2.4.1" - } - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" - }, - "eyes": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", - "integrity": "sha1-Ys8SAjTGg3hdkCNIqADvPgzCC8A=", - "optional": true - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "optional": true - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "optional": true - }, - "fd-slicer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", - "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", - "optional": true, - "requires": { - "pend": "~1.2.0" - } - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "optional": true - }, "form-data": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", @@ -1051,31 +845,11 @@ "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz", "integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg==" }, - "fs-extra": { - "version": "1.0.0", - "resolved": "http://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", - "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", - "optional": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0", - "klaw": "^1.0.0" - } - }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "optional": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, "glob": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", @@ -1094,28 +868,6 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==" }, - "graceful-fs": { - "version": "4.1.15", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", - "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", - "optional": true - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "optional": true - }, - "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", - "optional": true, - "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" - } - }, "has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", @@ -1124,16 +876,6 @@ "ansi-regex": "^2.0.0" } }, - "hasha": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-2.2.0.tgz", - "integrity": "sha1-eNfL/B5tZjA/55g3NlmEUXsvbuE=", - "optional": true, - "requires": { - "is-stream": "^1.0.1", - "pinkie-promise": "^2.0.0" - } - }, "home-or-tmp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", @@ -1145,7 +887,7 @@ }, "htmlparser2": { "version": "3.8.3", - "resolved": "http://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", "requires": { "domelementtype": "1", @@ -1155,17 +897,6 @@ "readable-stream": "1.1" } }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "optional": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -1201,41 +932,19 @@ "number-is-nan": "^1.0.0" } }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "optional": true - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "optional": true - }, "isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "optional": true - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" - }, "js-beautify": { - "version": "1.8.8", - "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.8.8.tgz", - "integrity": "sha512-qVNq7ZZ7ZbLdzorvSlRDadS0Rh5oyItaE95v6I4wbbuSiijxn7SnnsV6dvKlcXuO2jX7lK8tn9fBulx34K/Ejg==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.9.1.tgz", + "integrity": "sha512-oxxvVZdOdUfzk8IOLBF2XUZvl2GoBEfA+b0of4u2EBY/46NlXasi8JdFvazA5lCrf9/lQhTjyVy2QCUW7iq0MQ==", "requires": { - "config-chain": "~1.1.5", - "editorconfig": "^0.15.0", + "config-chain": "^1.1.12", + "editorconfig": "^0.15.2", + "glob": "^7.1.3", "mkdirp": "~0.5.0", "nopt": "~4.0.1" } @@ -1245,93 +954,31 @@ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" - }, "jsesc": { "version": "1.3.0", "resolved": "http://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=" }, "jshint": { - "version": "2.9.6", - "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.9.6.tgz", - "integrity": "sha512-KO9SIAKTlJQOM4lE64GQUtGBRpTOuvbrRrSZw3AhUxMNG266nX9hK2cKA4SBhXOj0irJGyNyGSLT62HGOVDEOA==", + "version": "2.10.2", + "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.10.2.tgz", + "integrity": "sha512-e7KZgCSXMJxznE/4WULzybCMNXNAd/bf5TSrvVEq78Q/K8ZwFpmBqQeDtNiHc3l49nV4E/+YeHU/JZjSUIrLAA==", "requires": { "cli": "~1.0.0", "console-browserify": "1.1.x", "exit": "0.1.x", "htmlparser2": "3.8.x", - "lodash": "~4.17.10", + "lodash": "~4.17.11", "minimatch": "~3.0.2", - "phantom": "~4.0.1", - "phantomjs-prebuilt": "~2.1.7", "shelljs": "0.3.x", - "strip-json-comments": "1.0.x", - "unicode-5.2.0": "^0.7.5" + "strip-json-comments": "1.0.x" } }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "optional": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "optional": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "optional": true - }, "json5": { "version": "0.5.1", "resolved": "http://registry.npmjs.org/json5/-/json5-0.5.1.tgz", "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=" }, - "jsonfile": { - "version": "2.4.0", - "resolved": "http://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "optional": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "optional": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "kew": { - "version": "0.7.0", - "resolved": "http://registry.npmjs.org/kew/-/kew-0.7.0.tgz", - "integrity": "sha1-edk9LTM2PW/dKXCzNdkUGtWR15s=", - "optional": true - }, - "klaw": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", - "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", - "optional": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, "lodash": { "version": "4.17.11", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", @@ -1346,12 +993,12 @@ } }, "lru-cache": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.4.tgz", - "integrity": "sha512-EPstzZ23znHUVLKj+lcXO1KvZkrlw+ZirdwvOmnAnA/1PB4ggyXJ77LRkCqkff+ShQ+cqoxCxLQOh4cKITO5iA==", + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", "requires": { "pseudomap": "^1.0.2", - "yallist": "^3.0.2" + "yallist": "^2.1.2" } }, "methods": { @@ -1365,16 +1012,16 @@ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" }, "mime-db": { - "version": "1.37.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", - "integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==" + "version": "1.38.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", + "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==" }, "mime-types": { - "version": "2.1.21", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", - "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", + "version": "2.1.22", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", + "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", "requires": { - "mime-db": "~1.37.0" + "mime-db": "~1.38.0" } }, "minimatch": { @@ -1409,9 +1056,9 @@ "integrity": "sha512-KpMNwdQsYz3O/SBS1qJ/o3sqUJ5wSb8gb0pul8CO0S56b9Y2ALm8zCfsjPXsqGFfoNBkDwZuZIAjhsZI03gYVQ==" }, "mute-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", - "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=" + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" }, "nopt": { "version": "4.0.1", @@ -1427,12 +1074,6 @@ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, - "oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "optional": true - }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -1465,65 +1106,15 @@ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, - "pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", - "optional": true - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "optional": true - }, - "phantom": { - "version": "4.0.12", - "resolved": "https://registry.npmjs.org/phantom/-/phantom-4.0.12.tgz", - "integrity": "sha512-Tz82XhtPmwCk1FFPmecy7yRGZG2btpzY2KI9fcoPT7zT9det0CcMyfBFPp1S8DqzsnQnm8ZYEfdy528mwVtksA==", - "optional": true, - "requires": { - "phantomjs-prebuilt": "^2.1.16", - "split": "^1.0.1", - "winston": "^2.4.0" - } - }, - "phantomjs-prebuilt": { - "version": "2.1.16", - "resolved": "https://registry.npmjs.org/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.16.tgz", - "integrity": "sha1-79ISpKOWbTZHaE6ouniFSb4q7+8=", - "optional": true, - "requires": { - "es6-promise": "^4.0.3", - "extract-zip": "^1.6.5", - "fs-extra": "^1.0.0", - "hasha": "^2.2.0", - "kew": "^0.7.0", - "progress": "^1.1.8", - "request": "^2.81.0", - "request-progress": "^2.0.1", - "which": "^1.2.10" - } - }, "pify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "optional": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "optional": true, - "requires": { - "pinkie": "^2.0.0" - } + "pluralize": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", + "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==" }, "private": { "version": "0.1.8", @@ -1535,12 +1126,6 @@ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" }, - "progress": { - "version": "1.1.8", - "resolved": "http://registry.npmjs.org/progress/-/progress-1.1.8.tgz", - "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", - "optional": true - }, "promptly": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/promptly/-/promptly-3.0.3.tgz", @@ -1560,22 +1145,10 @@ "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" }, - "psl": { - "version": "1.1.29", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", - "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==", - "optional": true - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "optional": true - }, "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" }, "read": { "version": "1.0.7", @@ -1587,7 +1160,7 @@ }, "readable-stream": { "version": "1.1.14", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", "requires": { "core-util-is": "~1.0.0", @@ -1654,53 +1227,11 @@ "is-finite": "^1.0.0" } }, - "request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", - "optional": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - } - }, - "request-progress": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-2.0.1.tgz", - "integrity": "sha1-XTa7V5YcZzqlt4jbyBQf3yO0Tgg=", - "optional": true, - "requires": { - "throttleit": "^1.0.0" - } - }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, "semver": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", @@ -1708,7 +1239,7 @@ }, "shelljs": { "version": "0.3.0", - "resolved": "http://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=" }, "sigmund": { @@ -1734,38 +1265,6 @@ "source-map": "^0.5.6" } }, - "split": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", - "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", - "optional": true, - "requires": { - "through": "2" - } - }, - "sshpk": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.15.2.tgz", - "integrity": "sha512-Ra/OXQtuh0/enyl4ETZAfTaeksa6BXks5ZcjpSUNrjBr0DvrJKX+1fsKDPpT9TBXgHAFsa4510aNVgI8g/+SzA==", - "optional": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "stack-trace": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", - "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=", - "optional": true - }, "string_decoder": { "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", @@ -1821,7 +1320,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "requires": { "core-util-is": "~1.0.0", @@ -1848,156 +1347,35 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" }, - "throttleit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz", - "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=", - "optional": true - }, - "through": { - "version": "2.3.8", - "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "optional": true - }, "to-fast-properties": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=" }, - "tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "optional": true, - "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "optional": true - } - } - }, "trim-right": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "optional": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" - }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "optional": true - }, "typescript": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.0.3.tgz", "integrity": "sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg==" }, - "unicode-5.2.0": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/unicode-5.2.0/-/unicode-5.2.0-0.7.5.tgz", - "integrity": "sha512-KVGLW1Bri30x00yv4HNM8kBxoqFXr0Sbo55735nvrlsx4PYBZol3UtoWgO492fSwmsetzPEZzy73rbU8OGXJcA==" - }, - "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "optional": true, - "requires": { - "punycode": "^2.1.0" - } - }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, - "uuid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", - "optional": true - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "optional": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "optional": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "winston": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/winston/-/winston-2.4.4.tgz", - "integrity": "sha512-NBo2Pepn4hK4V01UfcWcDlmiVTs7VTB1h7bgnB0rgP146bYhMxX0ypCz3lBOfNxCO4Zuek7yeT+y/zM1OfMw4Q==", - "optional": true, - "requires": { - "async": "~1.0.0", - "colors": "1.0.x", - "cycle": "1.0.x", - "eyes": "0.1.x", - "isstream": "0.1.x", - "stack-trace": "0.0.x" - }, - "dependencies": { - "colors": { - "version": "1.0.3", - "resolved": "http://registry.npmjs.org/colors/-/colors-1.0.3.tgz", - "integrity": "sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=", - "optional": true - } - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, "yallist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", - "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==" - }, - "yauzl": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", - "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=", - "optional": true, - "requires": { - "fd-slicer": "~1.0.1" - } + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" } } } diff --git a/wrapper.mustache b/wrapper.mustache index a18043a..07661b8 100644 --- a/wrapper.mustache +++ b/wrapper.mustache @@ -1,5 +1,5 @@ {{#modules}} - const {{name}} = require('./{{name}}.babelized'); + const {{name}} = require('./{{name}}'); {{#handlers}} module.exports.{{name}}_{{.}} = async function (event, context, callback) {